Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .fern/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,5 @@
"files": ["dist/**/*.js", "dist/**/*.d.ts", "!dist/**/*.js.map", "!dist/**/*.test.*", "README.md"]
}
},
"sdkVersion": "1.3.0"
"sdkVersion": "1.3.1"
}
1 change: 1 addition & 0 deletions .fernignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ src/version.ts
src/webhooks.ts
src/wrapper.ts
tests/unit/webhooks.test.ts
changelog.md
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
## 1.3.1 - 2026-01-13
* SDK regeneration
* Unable to analyze changes with AI, incrementing PATCH version.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@schematichq/schematic-typescript-node",
"version": "1.3.0",
"version": "1.3.1",
"private": false,
"repository": {
"type": "git",
Expand Down
173 changes: 170 additions & 3 deletions reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -1000,7 +1000,6 @@ await client.billing.upsertBillingCoupon({
await client.billing.upsertBillingCustomer({
email: "email",
externalId: "external_id",
failedToImport: true,
meta: {
"key": "value"
},
Expand Down Expand Up @@ -1055,7 +1054,6 @@ await client.billing.upsertBillingCustomer({

```typescript
await client.billing.listCustomersWithSubscriptions({
failedToImport: true,
name: "name",
providerType: "schematic",
q: "q",
Expand Down Expand Up @@ -1111,7 +1109,6 @@ await client.billing.listCustomersWithSubscriptions({

```typescript
await client.billing.countCustomers({
failedToImport: true,
name: "name",
providerType: "schematic",
q: "q",
Expand Down Expand Up @@ -2758,6 +2755,61 @@ await client.credits.grantBillingCreditsToCompany({
</dl>


</dd>
</dl>
</details>

<details><summary><code>client.credits.<a href="/src/api/resources/credits/client/Client.ts">countCompanyGrants</a>({ ...params }) -> Schematic.CountCompanyGrantsResponse</code></summary>
<dl>
<dd>

#### 🔌 Usage

<dl>
<dd>

<dl>
<dd>

```typescript
await client.credits.countCompanyGrants({
companyId: "company_id",
order: "created_at",
dir: "asc",
limit: 1,
offset: 1
});

```
</dd>
</dl>
</dd>
</dl>

#### ⚙️ Parameters

<dl>
<dd>

<dl>
<dd>

**request:** `Schematic.CountCompanyGrantsRequest`

</dd>
</dl>

<dl>
<dd>

**requestOptions:** `CreditsClient.RequestOptions`

</dd>
</dl>
</dd>
</dl>


</dd>
</dl>
</details>
Expand Down Expand Up @@ -9162,6 +9214,121 @@ await client.features.countFlags({
</dl>


</dd>
</dl>
</details>

## planbundle
<details><summary><code>client.planbundle.<a href="/src/api/resources/planbundle/client/Client.ts">createPlanBundle</a>({ ...params }) -> Schematic.CreatePlanBundleResponse</code></summary>
<dl>
<dd>

#### 🔌 Usage

<dl>
<dd>

<dl>
<dd>

```typescript
await client.planbundle.createPlanBundle({
entitlements: [{
action: "create"
}]
});

```
</dd>
</dl>
</dd>
</dl>

#### ⚙️ Parameters

<dl>
<dd>

<dl>
<dd>

**request:** `Schematic.CreatePlanBundleRequestBody`

</dd>
</dl>

<dl>
<dd>

**requestOptions:** `PlanbundleClient.RequestOptions`

</dd>
</dl>
</dd>
</dl>


</dd>
</dl>
</details>

<details><summary><code>client.planbundle.<a href="/src/api/resources/planbundle/client/Client.ts">updatePlanBundle</a>(plan_bundle_id, { ...params }) -> Schematic.UpdatePlanBundleResponse</code></summary>
<dl>
<dd>

#### 🔌 Usage

<dl>
<dd>

<dl>
<dd>

```typescript
await client.planbundle.updatePlanBundle("plan_bundle_id", {
entitlements: [{
action: "create"
}]
});

```
</dd>
</dl>
</dd>
</dl>

#### ⚙️ Parameters

<dl>
<dd>

<dl>
<dd>

**plan_bundle_id:** `string` — plan_bundle_id

</dd>
</dl>

<dl>
<dd>

**request:** `Schematic.UpdatePlanBundleRequestBody`

</dd>
</dl>

<dl>
<dd>

**requestOptions:** `PlanbundleClient.RequestOptions`

</dd>
</dl>
</dd>
</dl>


</dd>
</dl>
</details>
Expand Down
4 changes: 2 additions & 2 deletions src/BaseClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ export function normalizeClientOptions<T extends BaseClientOptions = BaseClientO
{
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@schematichq/schematic-typescript-node",
"X-Fern-SDK-Version": "1.3.0",
"User-Agent": "@schematichq/schematic-typescript-node/1.3.0",
"X-Fern-SDK-Version": "1.3.1",
"User-Agent": "@schematichq/schematic-typescript-node/1.3.1",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down
6 changes: 6 additions & 0 deletions src/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { DataexportsClient } from "./api/resources/dataexports/client/Client";
import { EntitlementsClient } from "./api/resources/entitlements/client/Client";
import { EventsClient } from "./api/resources/events/client/Client";
import { FeaturesClient } from "./api/resources/features/client/Client";
import { PlanbundleClient } from "./api/resources/planbundle/client/Client";
import { PlangroupsClient } from "./api/resources/plangroups/client/Client";
import { PlansClient } from "./api/resources/plans/client/Client";
import { WebhooksClient } from "./api/resources/webhooks/client/Client";
Expand Down Expand Up @@ -41,6 +42,7 @@ export class SchematicClient {
protected _dataexports: DataexportsClient | undefined;
protected _events: EventsClient | undefined;
protected _features: FeaturesClient | undefined;
protected _planbundle: PlanbundleClient | undefined;
protected _plangroups: PlangroupsClient | undefined;
protected _accesstokens: AccesstokensClient | undefined;
protected _webhooks: WebhooksClient | undefined;
Expand Down Expand Up @@ -93,6 +95,10 @@ export class SchematicClient {
return (this._features ??= new FeaturesClient(this._options));
}

public get planbundle(): PlanbundleClient {
return (this._planbundle ??= new PlanbundleClient(this._options));
}

public get plangroups(): PlangroupsClient {
return (this._plangroups ??= new PlangroupsClient(this._options));
}
Expand Down
15 changes: 2 additions & 13 deletions src/api/resources/billing/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,6 @@ export class BillingClient {
* await client.billing.upsertBillingCustomer({
* email: "email",
* externalId: "external_id",
* failedToImport: true,
* meta: {
* "key": "value"
* },
Expand Down Expand Up @@ -467,7 +466,6 @@ export class BillingClient {
*
* @example
* await client.billing.listCustomersWithSubscriptions({
* failedToImport: true,
* name: "name",
* providerType: "schematic",
* q: "q",
Expand All @@ -486,7 +484,7 @@ export class BillingClient {
request: Schematic.ListCustomersWithSubscriptionsRequest = {},
requestOptions?: BillingClient.RequestOptions,
): Promise<core.WithRawResponse<Schematic.ListCustomersWithSubscriptionsResponse>> {
const { companyIds, failedToImport, name, providerType, q, limit, offset } = request;
const { companyIds, name, providerType, q, limit, offset } = request;
const _queryParams: Record<string, string | string[] | object | object[] | null> = {};
if (companyIds != null) {
if (Array.isArray(companyIds)) {
Expand All @@ -496,10 +494,6 @@ export class BillingClient {
}
}

if (failedToImport != null) {
_queryParams.failed_to_import = failedToImport.toString();
}

if (name != null) {
_queryParams.name = name;
}
Expand Down Expand Up @@ -638,7 +632,6 @@ export class BillingClient {
*
* @example
* await client.billing.countCustomers({
* failedToImport: true,
* name: "name",
* providerType: "schematic",
* q: "q",
Expand All @@ -657,7 +650,7 @@ export class BillingClient {
request: Schematic.CountCustomersRequest = {},
requestOptions?: BillingClient.RequestOptions,
): Promise<core.WithRawResponse<Schematic.CountCustomersResponse>> {
const { companyIds, failedToImport, name, providerType, q, limit, offset } = request;
const { companyIds, name, providerType, q, limit, offset } = request;
const _queryParams: Record<string, string | string[] | object | object[] | null> = {};
if (companyIds != null) {
if (Array.isArray(companyIds)) {
Expand All @@ -667,10 +660,6 @@ export class BillingClient {
}
}

if (failedToImport != null) {
_queryParams.failed_to_import = failedToImport.toString();
}

if (name != null) {
_queryParams.name = name;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import type * as Schematic from "../../../../index";
*/
export interface CountBillingProductsRequest {
ids?: string | string[];
/** Filter products that are active */
/** Filter products that are active. Defaults to true if not specified */
isActive?: boolean;
name?: string;
priceUsageType?: Schematic.BillingPriceUsageType;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import type * as Schematic from "../../../../index";
/**
* @example
* {
* failedToImport: true,
* name: "name",
* providerType: "schematic",
* q: "q",
Expand All @@ -15,7 +14,6 @@ import type * as Schematic from "../../../../index";
*/
export interface CountCustomersRequest {
companyIds?: string | string[];
failedToImport?: boolean;
name?: string;
providerType?: Schematic.BillingProviderType;
q?: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import type * as Schematic from "../../../../index";
* {
* email: "email",
* externalId: "external_id",
* failedToImport: true,
* meta: {
* "key": "value"
* },
Expand All @@ -19,7 +18,6 @@ export interface CreateBillingCustomerRequestBody {
defaultPaymentMethodId?: string;
email: string;
externalId: string;
failedToImport: boolean;
meta: Record<string, string>;
name: string;
providerType?: Schematic.BillingProviderType;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import type * as Schematic from "../../../../index";
*/
export interface ListBillingProductsRequest {
ids?: string | string[];
/** Filter products that are active */
/** Filter products that are active. Defaults to true if not specified */
isActive?: boolean;
name?: string;
priceUsageType?: Schematic.BillingPriceUsageType;
Expand Down
Loading
Loading