@schematichq/schematic-typescript-node 1.4.3 → 1.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/dist/BaseClient.d.ts +1 -1
- package/dist/Client.d.ts +11 -0
- package/dist/api/resources/accesstokens/exports.d.ts +2 -0
- package/dist/api/resources/accounts/client/Client.d.ts +10 -10
- package/dist/api/resources/accounts/client/requests/CountApiKeysRequest.d.ts +2 -2
- package/dist/api/resources/accounts/client/requests/CountAuditLogsRequest.d.ts +2 -2
- package/dist/api/resources/accounts/client/requests/ListApiKeysRequest.d.ts +2 -2
- package/dist/api/resources/accounts/client/requests/ListAuditLogsRequest.d.ts +2 -2
- package/dist/api/resources/accounts/client/requests/ListEnvironmentsRequest.d.ts +2 -2
- package/dist/api/resources/accounts/exports.d.ts +2 -0
- package/dist/api/resources/billing/client/Client.d.ts +34 -34
- package/dist/api/resources/billing/client/requests/CountBillingProductsRequest.d.ts +2 -2
- package/dist/api/resources/billing/client/requests/CountCustomersRequest.d.ts +2 -2
- package/dist/api/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +1 -1
- package/dist/api/resources/billing/client/requests/CreateBillingSubscriptionRequestBody.d.ts +3 -3
- package/dist/api/resources/billing/client/requests/CreateCouponRequestBody.d.ts +4 -4
- package/dist/api/resources/billing/client/requests/CreateInvoiceRequestBody.d.ts +4 -4
- package/dist/api/resources/billing/client/requests/ListBillingPricesRequest.d.ts +3 -3
- package/dist/api/resources/billing/client/requests/ListBillingProductPricesRequest.d.ts +3 -3
- package/dist/api/resources/billing/client/requests/ListBillingProductsRequest.d.ts +2 -2
- package/dist/api/resources/billing/client/requests/ListCouponsRequest.d.ts +2 -2
- package/dist/api/resources/billing/client/requests/ListCustomersWithSubscriptionsRequest.d.ts +2 -2
- package/dist/api/resources/billing/client/requests/ListInvoicesRequest.d.ts +2 -2
- package/dist/api/resources/billing/client/requests/ListMetersRequest.d.ts +2 -2
- package/dist/api/resources/billing/client/requests/ListPaymentMethodsRequest.d.ts +2 -2
- package/dist/api/resources/billing/exports.d.ts +2 -0
- package/dist/api/resources/checkout/client/Client.d.ts +8 -8
- package/dist/api/resources/checkout/exports.d.ts +2 -0
- package/dist/api/resources/companies/client/Client.d.ts +34 -28
- package/dist/api/resources/companies/client/requests/CountCompaniesRequest.d.ts +2 -2
- package/dist/api/resources/companies/client/requests/CountEntityKeyDefinitionsRequest.d.ts +2 -2
- package/dist/api/resources/companies/client/requests/CountEntityTraitDefinitionsRequest.d.ts +2 -2
- package/dist/api/resources/companies/client/requests/CountPlanTraitsRequest.d.ts +2 -2
- package/dist/api/resources/companies/client/requests/CountUsersRequest.d.ts +2 -2
- package/dist/api/resources/companies/client/requests/GetActiveCompanySubscriptionRequest.d.ts +2 -2
- package/dist/api/resources/companies/client/requests/GetEntityTraitValuesRequest.d.ts +2 -2
- package/dist/api/resources/companies/client/requests/ListCompaniesRequest.d.ts +2 -2
- package/dist/api/resources/companies/client/requests/ListCompanyMembershipsRequest.d.ts +2 -2
- package/dist/api/resources/companies/client/requests/ListEntityKeyDefinitionsRequest.d.ts +2 -2
- package/dist/api/resources/companies/client/requests/ListEntityTraitDefinitionsRequest.d.ts +2 -2
- package/dist/api/resources/companies/client/requests/ListPlanChangesRequest.d.ts +2 -2
- package/dist/api/resources/companies/client/requests/ListPlanTraitsRequest.d.ts +2 -2
- package/dist/api/resources/companies/client/requests/ListUsersRequest.d.ts +2 -2
- package/dist/api/resources/companies/exports.d.ts +2 -0
- package/dist/api/resources/components/client/Client.d.ts +4 -4
- package/dist/api/resources/components/client/requests/CountComponentsRequest.d.ts +2 -2
- package/dist/api/resources/components/client/requests/ListComponentsRequest.d.ts +2 -2
- package/dist/api/resources/components/exports.d.ts +2 -0
- package/dist/api/resources/componentspublic/exports.d.ts +2 -0
- package/dist/api/resources/credits/client/Client.d.ts +32 -32
- package/dist/api/resources/credits/client/requests/CountBillingCreditsGrantsRequest.d.ts +2 -2
- package/dist/api/resources/credits/client/requests/CountBillingCreditsRequest.d.ts +2 -2
- package/dist/api/resources/credits/client/requests/CountBillingPlanCreditGrantsRequest.d.ts +2 -2
- package/dist/api/resources/credits/client/requests/CountCompanyGrantsRequest.d.ts +2 -2
- package/dist/api/resources/credits/client/requests/CountCreditBundlesRequest.d.ts +2 -2
- package/dist/api/resources/credits/client/requests/CountCreditEventLedgerRequest.d.ts +2 -2
- package/dist/api/resources/credits/client/requests/CountCreditLedgerRequest.d.ts +2 -2
- package/dist/api/resources/credits/client/requests/CreateCompanyCreditGrant.d.ts +1 -1
- package/dist/api/resources/credits/client/requests/CreateCreditBundleRequestBody.d.ts +1 -1
- package/dist/api/resources/credits/client/requests/GetEnrichedCreditLedgerRequest.d.ts +2 -2
- package/dist/api/resources/credits/client/requests/ListBillingCreditsRequest.d.ts +2 -2
- package/dist/api/resources/credits/client/requests/ListBillingPlanCreditGrantsRequest.d.ts +2 -2
- package/dist/api/resources/credits/client/requests/ListCompanyGrantsRequest.d.ts +2 -2
- package/dist/api/resources/credits/client/requests/ListCreditBundlesRequest.d.ts +2 -2
- package/dist/api/resources/credits/client/requests/ListCreditEventLedgerRequest.d.ts +2 -2
- package/dist/api/resources/credits/client/requests/ListGrantsForCreditRequest.d.ts +2 -2
- package/dist/api/resources/credits/client/requests/UpdateCreditBundleDetailsRequestBody.d.ts +1 -1
- package/dist/api/resources/credits/exports.d.ts +2 -0
- package/dist/api/resources/dataexports/exports.d.ts +2 -0
- package/dist/api/resources/entitlements/client/Client.d.ts +20 -20
- package/dist/api/resources/entitlements/client/requests/CountCompanyOverridesRequest.d.ts +2 -2
- package/dist/api/resources/entitlements/client/requests/CountFeatureCompaniesRequest.d.ts +2 -2
- package/dist/api/resources/entitlements/client/requests/CountFeatureUsageRequest.d.ts +2 -2
- package/dist/api/resources/entitlements/client/requests/CountFeatureUsersRequest.d.ts +2 -2
- package/dist/api/resources/entitlements/client/requests/CountPlanEntitlementsRequest.d.ts +2 -2
- package/dist/api/resources/entitlements/client/requests/ListCompanyOverridesRequest.d.ts +2 -2
- package/dist/api/resources/entitlements/client/requests/ListFeatureCompaniesRequest.d.ts +2 -2
- package/dist/api/resources/entitlements/client/requests/ListFeatureUsageRequest.d.ts +2 -2
- package/dist/api/resources/entitlements/client/requests/ListFeatureUsersRequest.d.ts +2 -2
- package/dist/api/resources/entitlements/client/requests/ListPlanEntitlementsRequest.d.ts +2 -2
- package/dist/api/resources/entitlements/exports.d.ts +2 -0
- package/dist/api/resources/events/client/Client.d.ts +4 -4
- package/dist/api/resources/events/client/requests/GetEventSummariesRequest.d.ts +2 -2
- package/dist/api/resources/events/client/requests/ListEventsRequest.d.ts +2 -2
- package/dist/api/resources/events/exports.d.ts +2 -0
- package/dist/api/resources/features/client/Client.d.ts +9 -9
- package/dist/api/resources/features/client/requests/CountFeaturesRequest.d.ts +2 -2
- package/dist/api/resources/features/client/requests/CountFlagsRequest.d.ts +2 -2
- package/dist/api/resources/features/client/requests/ListFeaturesRequest.d.ts +2 -2
- package/dist/api/resources/features/client/requests/ListFlagsRequest.d.ts +2 -2
- package/dist/api/resources/features/client/requests/UpdateFlagRulesRequestBody.d.ts +1 -1
- package/dist/api/resources/features/exports.d.ts +2 -0
- package/dist/api/resources/planbundle/exports.d.ts +2 -0
- package/dist/api/resources/plangroups/exports.d.ts +2 -0
- package/dist/api/resources/planmigrations/client/Client.d.ts +8 -8
- package/dist/api/resources/planmigrations/client/requests/CountCompanyMigrationsRequest.d.ts +2 -2
- package/dist/api/resources/planmigrations/client/requests/CountMigrationsRequest.d.ts +2 -2
- package/dist/api/resources/planmigrations/client/requests/ListCompanyMigrationsRequest.d.ts +2 -2
- package/dist/api/resources/planmigrations/client/requests/ListMigrationsRequest.d.ts +2 -2
- package/dist/api/resources/planmigrations/exports.d.ts +2 -0
- package/dist/api/resources/plans/client/Client.d.ts +6 -4
- package/dist/api/resources/plans/client/requests/CountPlansRequest.d.ts +5 -2
- package/dist/api/resources/plans/client/requests/ListPlansRequest.d.ts +5 -2
- package/dist/api/resources/plans/exports.d.ts +2 -0
- package/dist/api/resources/plans/types/CountPlansParams.d.ts +2 -0
- package/dist/api/resources/plans/types/ListPlansParams.d.ts +2 -0
- package/dist/api/resources/scheduledcheckout/client/Client.d.ts +2 -2
- package/dist/api/resources/scheduledcheckout/client/requests/ListScheduledCheckoutsRequest.d.ts +2 -2
- package/dist/api/resources/scheduledcheckout/exports.d.ts +2 -0
- package/dist/api/resources/webhooks/client/Client.d.ts +8 -8
- package/dist/api/resources/webhooks/client/requests/CountWebhookEventsRequest.d.ts +2 -2
- package/dist/api/resources/webhooks/client/requests/CountWebhooksRequest.d.ts +2 -2
- package/dist/api/resources/webhooks/client/requests/ListWebhookEventsRequest.d.ts +2 -2
- package/dist/api/resources/webhooks/client/requests/ListWebhooksRequest.d.ts +2 -2
- package/dist/api/resources/webhooks/exports.d.ts +2 -0
- package/dist/api/types/CaptureRawEvent.d.ts +1 -1
- package/dist/api/types/ConditionGroupResponseData.d.ts +0 -1
- package/dist/api/types/ConditionGroupView.d.ts +0 -1
- package/dist/api/types/ConditionResponseData.d.ts +0 -1
- package/dist/api/types/ConditionView.d.ts +0 -1
- package/dist/api/types/DataEventPayload.d.ts +7 -0
- package/dist/api/types/ManagePlanRequest.d.ts +1 -0
- package/dist/api/types/PlanSelection.d.ts +1 -0
- package/dist/api/types/RuleView.d.ts +0 -1
- package/dist/api/types/RulesEngineSchemaVersion.d.ts +1 -1
- package/dist/api/types/WebScheduledDowngradeWebhookOutput.d.ts +10 -0
- package/dist/api/types/WebhookRequestType.d.ts +1 -0
- package/dist/api/types/index.d.ts +2 -0
- package/dist/auth/HeaderAuthProvider.d.ts +14 -10
- package/dist/core/fetcher/BinaryResponse.d.ts +1 -1
- package/dist/core/fetcher/EndpointSupplier.d.ts +2 -2
- package/dist/core/fetcher/Fetcher.d.ts +1 -2
- package/dist/core/fetcher/index.d.ts +2 -0
- package/dist/core/fetcher/makePassthroughRequest.d.ts +49 -0
- package/dist/core/fetcher/makeRequest.d.ts +6 -1
- package/dist/core/headers.d.ts +2 -2
- package/dist/core/schemas/builders/record/index.d.ts +2 -2
- package/dist/core/schemas/builders/record/record.d.ts +2 -1
- package/dist/core/schemas/builders/record/types.d.ts +2 -0
- package/dist/datastream/merge.d.ts +30 -0
- package/dist/index.js +3 -3
- package/dist/serialization/resources/plans/types/CountPlansParams.d.ts +1 -0
- package/dist/serialization/resources/plans/types/ListPlansParams.d.ts +1 -0
- package/dist/serialization/types/CaptureRawEvent.d.ts +1 -1
- package/dist/serialization/types/ConditionGroupResponseData.d.ts +0 -1
- package/dist/serialization/types/ConditionGroupView.d.ts +0 -1
- package/dist/serialization/types/ConditionResponseData.d.ts +0 -1
- package/dist/serialization/types/ConditionView.d.ts +0 -1
- package/dist/serialization/types/DataEventPayload.d.ts +13 -0
- package/dist/serialization/types/ManagePlanRequest.d.ts +1 -0
- package/dist/serialization/types/PlanSelection.d.ts +1 -0
- package/dist/serialization/types/RuleView.d.ts +0 -1
- package/dist/serialization/types/RulesEngineSchemaVersion.d.ts +1 -1
- package/dist/serialization/types/WebScheduledDowngradeWebhookOutput.d.ts +17 -0
- package/dist/serialization/types/WebhookRequestType.d.ts +1 -1
- package/dist/serialization/types/index.d.ts +2 -0
- package/dist/wasm/rulesengine.d.ts +10 -0
- package/dist/wasm/rulesengine.js +193 -0
- package/dist/wasm/rulesengine_bg.wasm +0 -0
- package/dist/wasm/rulesengine_bg.wasm.d.ts +25 -0
- package/package.json +4 -4
package/LICENSE
CHANGED
package/dist/BaseClient.d.ts
CHANGED
package/dist/Client.d.ts
CHANGED
|
@@ -81,4 +81,15 @@ export declare class SchematicClient {
|
|
|
81
81
|
*/
|
|
82
82
|
deletePlanAudiencesPlanAudienceId(plan_audience_id: string, requestOptions?: SchematicClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
83
83
|
private __deletePlanAudiencesPlanAudienceId;
|
|
84
|
+
/**
|
|
85
|
+
* Make a passthrough request using the SDK's configured auth, retry, logging, etc.
|
|
86
|
+
* This is useful for making requests to endpoints not yet supported in the SDK.
|
|
87
|
+
* The input can be a URL string, URL object, or Request object. Relative paths are resolved against the configured base URL.
|
|
88
|
+
*
|
|
89
|
+
* @param {Request | string | URL} input - The URL, path, or Request object.
|
|
90
|
+
* @param {RequestInit} init - Standard fetch RequestInit options.
|
|
91
|
+
* @param {core.PassthroughRequest.RequestOptions} requestOptions - Per-request overrides (timeout, retries, headers, abort signal).
|
|
92
|
+
* @returns {Promise<Response>} A standard Response object.
|
|
93
|
+
*/
|
|
94
|
+
fetch(input: Request | string | URL, init?: RequestInit, requestOptions?: core.PassthroughRequest.RequestOptions): Promise<Response>;
|
|
84
95
|
}
|
|
@@ -24,8 +24,8 @@ export declare class AccountsClient {
|
|
|
24
24
|
* await client.accounts.listApiKeys({
|
|
25
25
|
* environmentId: "environment_id",
|
|
26
26
|
* requireEnvironment: true,
|
|
27
|
-
* limit:
|
|
28
|
-
* offset:
|
|
27
|
+
* limit: 1000000,
|
|
28
|
+
* offset: 1000000
|
|
29
29
|
* })
|
|
30
30
|
*/
|
|
31
31
|
listApiKeys(request: Schematic.ListApiKeysRequest, requestOptions?: AccountsClient.RequestOptions): core.HttpResponsePromise<Schematic.ListApiKeysResponse>;
|
|
@@ -106,8 +106,8 @@ export declare class AccountsClient {
|
|
|
106
106
|
* await client.accounts.countApiKeys({
|
|
107
107
|
* environmentId: "environment_id",
|
|
108
108
|
* requireEnvironment: true,
|
|
109
|
-
* limit:
|
|
110
|
-
* offset:
|
|
109
|
+
* limit: 1000000,
|
|
110
|
+
* offset: 1000000
|
|
111
111
|
* })
|
|
112
112
|
*/
|
|
113
113
|
countApiKeys(request: Schematic.CountApiKeysRequest, requestOptions?: AccountsClient.RequestOptions): core.HttpResponsePromise<Schematic.CountApiKeysResponse>;
|
|
@@ -129,8 +129,8 @@ export declare class AccountsClient {
|
|
|
129
129
|
* environmentId: "environment_id",
|
|
130
130
|
* q: "q",
|
|
131
131
|
* startTime: new Date("2024-01-15T09:30:00.000Z"),
|
|
132
|
-
* limit:
|
|
133
|
-
* offset:
|
|
132
|
+
* limit: 1000000,
|
|
133
|
+
* offset: 1000000
|
|
134
134
|
* })
|
|
135
135
|
*/
|
|
136
136
|
listAuditLogs(request?: Schematic.ListAuditLogsRequest, requestOptions?: AccountsClient.RequestOptions): core.HttpResponsePromise<Schematic.ListAuditLogsResponse>;
|
|
@@ -166,8 +166,8 @@ export declare class AccountsClient {
|
|
|
166
166
|
* environmentId: "environment_id",
|
|
167
167
|
* q: "q",
|
|
168
168
|
* startTime: new Date("2024-01-15T09:30:00.000Z"),
|
|
169
|
-
* limit:
|
|
170
|
-
* offset:
|
|
169
|
+
* limit: 1000000,
|
|
170
|
+
* offset: 1000000
|
|
171
171
|
* })
|
|
172
172
|
*/
|
|
173
173
|
countAuditLogs(request?: Schematic.CountAuditLogsRequest, requestOptions?: AccountsClient.RequestOptions): core.HttpResponsePromise<Schematic.CountAuditLogsResponse>;
|
|
@@ -184,8 +184,8 @@ export declare class AccountsClient {
|
|
|
184
184
|
*
|
|
185
185
|
* @example
|
|
186
186
|
* await client.accounts.listEnvironments({
|
|
187
|
-
* limit:
|
|
188
|
-
* offset:
|
|
187
|
+
* limit: 1000000,
|
|
188
|
+
* offset: 1000000
|
|
189
189
|
* })
|
|
190
190
|
*/
|
|
191
191
|
listEnvironments(request?: Schematic.ListEnvironmentsRequest, requestOptions?: AccountsClient.RequestOptions): core.HttpResponsePromise<Schematic.ListEnvironmentsResponse>;
|
|
@@ -7,8 +7,8 @@ import type * as Schematic from "../../../../index";
|
|
|
7
7
|
* environmentId: "environment_id",
|
|
8
8
|
* q: "q",
|
|
9
9
|
* startTime: new Date("2024-01-15T09:30:00.000Z"),
|
|
10
|
-
* limit:
|
|
11
|
-
* offset:
|
|
10
|
+
* limit: 1000000,
|
|
11
|
+
* offset: 1000000
|
|
12
12
|
* }
|
|
13
13
|
*/
|
|
14
14
|
export interface CountAuditLogsRequest {
|
|
@@ -7,8 +7,8 @@ import type * as Schematic from "../../../../index";
|
|
|
7
7
|
* environmentId: "environment_id",
|
|
8
8
|
* q: "q",
|
|
9
9
|
* startTime: new Date("2024-01-15T09:30:00.000Z"),
|
|
10
|
-
* limit:
|
|
11
|
-
* offset:
|
|
10
|
+
* limit: 1000000,
|
|
11
|
+
* offset: 1000000
|
|
12
12
|
* }
|
|
13
13
|
*/
|
|
14
14
|
export interface ListAuditLogsRequest {
|
|
@@ -24,8 +24,8 @@ export declare class BillingClient {
|
|
|
24
24
|
* await client.billing.listCoupons({
|
|
25
25
|
* isActive: true,
|
|
26
26
|
* q: "q",
|
|
27
|
-
* limit:
|
|
28
|
-
* offset:
|
|
27
|
+
* limit: 1000000,
|
|
28
|
+
* offset: 1000000
|
|
29
29
|
* })
|
|
30
30
|
*/
|
|
31
31
|
listCoupons(request?: Schematic.ListCouponsRequest, requestOptions?: BillingClient.RequestOptions): core.HttpResponsePromise<Schematic.ListCouponsResponse>;
|
|
@@ -42,14 +42,14 @@ export declare class BillingClient {
|
|
|
42
42
|
*
|
|
43
43
|
* @example
|
|
44
44
|
* await client.billing.upsertBillingCoupon({
|
|
45
|
-
* amountOff:
|
|
45
|
+
* amountOff: 1000000,
|
|
46
46
|
* duration: "duration",
|
|
47
|
-
* durationInMonths:
|
|
47
|
+
* durationInMonths: 1000000,
|
|
48
48
|
* externalId: "external_id",
|
|
49
|
-
* maxRedemptions:
|
|
49
|
+
* maxRedemptions: 1000000,
|
|
50
50
|
* name: "name",
|
|
51
51
|
* percentOff: 1.1,
|
|
52
|
-
* timesRedeemed:
|
|
52
|
+
* timesRedeemed: 1000000
|
|
53
53
|
* })
|
|
54
54
|
*/
|
|
55
55
|
upsertBillingCoupon(request: Schematic.CreateCouponRequestBody, requestOptions?: BillingClient.RequestOptions): core.HttpResponsePromise<Schematic.UpsertBillingCouponResponse>;
|
|
@@ -91,8 +91,8 @@ export declare class BillingClient {
|
|
|
91
91
|
* name: "name",
|
|
92
92
|
* providerType: "schematic",
|
|
93
93
|
* q: "q",
|
|
94
|
-
* limit:
|
|
95
|
-
* offset:
|
|
94
|
+
* limit: 1000000,
|
|
95
|
+
* offset: 1000000
|
|
96
96
|
* })
|
|
97
97
|
*/
|
|
98
98
|
listCustomersWithSubscriptions(request?: Schematic.ListCustomersWithSubscriptionsRequest, requestOptions?: BillingClient.RequestOptions): core.HttpResponsePromise<Schematic.ListCustomersWithSubscriptionsResponse>;
|
|
@@ -112,8 +112,8 @@ export declare class BillingClient {
|
|
|
112
112
|
* name: "name",
|
|
113
113
|
* providerType: "schematic",
|
|
114
114
|
* q: "q",
|
|
115
|
-
* limit:
|
|
116
|
-
* offset:
|
|
115
|
+
* limit: 1000000,
|
|
116
|
+
* offset: 1000000
|
|
117
117
|
* })
|
|
118
118
|
*/
|
|
119
119
|
countCustomers(request?: Schematic.CountCustomersRequest, requestOptions?: BillingClient.RequestOptions): core.HttpResponsePromise<Schematic.CountCustomersResponse>;
|
|
@@ -133,8 +133,8 @@ export declare class BillingClient {
|
|
|
133
133
|
* companyId: "company_id",
|
|
134
134
|
* customerExternalId: "customer_external_id",
|
|
135
135
|
* subscriptionExternalId: "subscription_external_id",
|
|
136
|
-
* limit:
|
|
137
|
-
* offset:
|
|
136
|
+
* limit: 1000000,
|
|
137
|
+
* offset: 1000000
|
|
138
138
|
* })
|
|
139
139
|
*/
|
|
140
140
|
listInvoices(request: Schematic.ListInvoicesRequest, requestOptions?: BillingClient.RequestOptions): core.HttpResponsePromise<Schematic.ListInvoicesResponse>;
|
|
@@ -151,13 +151,13 @@ export declare class BillingClient {
|
|
|
151
151
|
*
|
|
152
152
|
* @example
|
|
153
153
|
* await client.billing.upsertInvoice({
|
|
154
|
-
* amountDue:
|
|
155
|
-
* amountPaid:
|
|
156
|
-
* amountRemaining:
|
|
154
|
+
* amountDue: 1000000,
|
|
155
|
+
* amountPaid: 1000000,
|
|
156
|
+
* amountRemaining: 1000000,
|
|
157
157
|
* collectionMethod: "collection_method",
|
|
158
158
|
* currency: "currency",
|
|
159
159
|
* customerExternalId: "customer_external_id",
|
|
160
|
-
* subtotal:
|
|
160
|
+
* subtotal: 1000000
|
|
161
161
|
* })
|
|
162
162
|
*/
|
|
163
163
|
upsertInvoice(request: Schematic.CreateInvoiceRequestBody, requestOptions?: BillingClient.RequestOptions): core.HttpResponsePromise<Schematic.UpsertInvoiceResponse>;
|
|
@@ -175,8 +175,8 @@ export declare class BillingClient {
|
|
|
175
175
|
* @example
|
|
176
176
|
* await client.billing.listMeters({
|
|
177
177
|
* displayName: "display_name",
|
|
178
|
-
* limit:
|
|
179
|
-
* offset:
|
|
178
|
+
* limit: 1000000,
|
|
179
|
+
* offset: 1000000
|
|
180
180
|
* })
|
|
181
181
|
*/
|
|
182
182
|
listMeters(request?: Schematic.ListMetersRequest, requestOptions?: BillingClient.RequestOptions): core.HttpResponsePromise<Schematic.ListMetersResponse>;
|
|
@@ -215,8 +215,8 @@ export declare class BillingClient {
|
|
|
215
215
|
* await client.billing.listPaymentMethods({
|
|
216
216
|
* companyId: "company_id",
|
|
217
217
|
* customerExternalId: "customer_external_id",
|
|
218
|
-
* limit:
|
|
219
|
-
* offset:
|
|
218
|
+
* limit: 1000000,
|
|
219
|
+
* offset: 1000000
|
|
220
220
|
* })
|
|
221
221
|
*/
|
|
222
222
|
listPaymentMethods(request: Schematic.ListPaymentMethodsRequest, requestOptions?: BillingClient.RequestOptions): core.HttpResponsePromise<Schematic.ListPaymentMethodsResponse>;
|
|
@@ -256,15 +256,15 @@ export declare class BillingClient {
|
|
|
256
256
|
* forTrialExpiryPlan: true,
|
|
257
257
|
* interval: "interval",
|
|
258
258
|
* isActive: true,
|
|
259
|
-
* price:
|
|
259
|
+
* price: 1000000,
|
|
260
260
|
* productId: "product_id",
|
|
261
261
|
* providerType: "schematic",
|
|
262
262
|
* q: "q",
|
|
263
263
|
* tiersMode: "graduated",
|
|
264
264
|
* usageType: "licensed",
|
|
265
265
|
* withMeter: true,
|
|
266
|
-
* limit:
|
|
267
|
-
* offset:
|
|
266
|
+
* limit: 1000000,
|
|
267
|
+
* offset: 1000000
|
|
268
268
|
* })
|
|
269
269
|
*/
|
|
270
270
|
listBillingPrices(request?: Schematic.ListBillingPricesRequest, requestOptions?: BillingClient.RequestOptions): core.HttpResponsePromise<Schematic.ListBillingPricesResponse>;
|
|
@@ -286,7 +286,7 @@ export declare class BillingClient {
|
|
|
286
286
|
* externalAccountId: "external_account_id",
|
|
287
287
|
* interval: "interval",
|
|
288
288
|
* isActive: true,
|
|
289
|
-
* price:
|
|
289
|
+
* price: 1000000,
|
|
290
290
|
* priceExternalId: "price_external_id",
|
|
291
291
|
* priceTiers: [{
|
|
292
292
|
* priceExternalId: "price_external_id"
|
|
@@ -328,15 +328,15 @@ export declare class BillingClient {
|
|
|
328
328
|
* forTrialExpiryPlan: true,
|
|
329
329
|
* interval: "interval",
|
|
330
330
|
* isActive: true,
|
|
331
|
-
* price:
|
|
331
|
+
* price: 1000000,
|
|
332
332
|
* productId: "product_id",
|
|
333
333
|
* providerType: "schematic",
|
|
334
334
|
* q: "q",
|
|
335
335
|
* tiersMode: "graduated",
|
|
336
336
|
* usageType: "licensed",
|
|
337
337
|
* withMeter: true,
|
|
338
|
-
* limit:
|
|
339
|
-
* offset:
|
|
338
|
+
* limit: 1000000,
|
|
339
|
+
* offset: 1000000
|
|
340
340
|
* })
|
|
341
341
|
*/
|
|
342
342
|
listBillingProductPrices(request?: Schematic.ListBillingProductPricesRequest, requestOptions?: BillingClient.RequestOptions): core.HttpResponsePromise<Schematic.ListBillingProductPricesResponse>;
|
|
@@ -395,8 +395,8 @@ export declare class BillingClient {
|
|
|
395
395
|
* withPricesOnly: true,
|
|
396
396
|
* withZeroPrice: true,
|
|
397
397
|
* withoutLinkedToPlan: true,
|
|
398
|
-
* limit:
|
|
399
|
-
* offset:
|
|
398
|
+
* limit: 1000000,
|
|
399
|
+
* offset: 1000000
|
|
400
400
|
* })
|
|
401
401
|
*/
|
|
402
402
|
listBillingProducts(request?: Schematic.ListBillingProductsRequest, requestOptions?: BillingClient.RequestOptions): core.HttpResponsePromise<Schematic.ListBillingProductsResponse>;
|
|
@@ -422,8 +422,8 @@ export declare class BillingClient {
|
|
|
422
422
|
* withPricesOnly: true,
|
|
423
423
|
* withZeroPrice: true,
|
|
424
424
|
* withoutLinkedToPlan: true,
|
|
425
|
-
* limit:
|
|
426
|
-
* offset:
|
|
425
|
+
* limit: 1000000,
|
|
426
|
+
* offset: 1000000
|
|
427
427
|
* })
|
|
428
428
|
*/
|
|
429
429
|
countBillingProducts(request?: Schematic.CountBillingProductsRequest, requestOptions?: BillingClient.RequestOptions): core.HttpResponsePromise<Schematic.CountBillingProductsResponse>;
|
|
@@ -453,14 +453,14 @@ export declare class BillingClient {
|
|
|
453
453
|
* productExternalIds: [{
|
|
454
454
|
* currency: "currency",
|
|
455
455
|
* interval: "interval",
|
|
456
|
-
* price:
|
|
456
|
+
* price: 1000000,
|
|
457
457
|
* priceExternalId: "price_external_id",
|
|
458
458
|
* productExternalId: "product_external_id",
|
|
459
|
-
* quantity:
|
|
459
|
+
* quantity: 1000000,
|
|
460
460
|
* usageType: "licensed"
|
|
461
461
|
* }],
|
|
462
462
|
* subscriptionExternalId: "subscription_external_id",
|
|
463
|
-
* totalPrice:
|
|
463
|
+
* totalPrice: 1000000
|
|
464
464
|
* })
|
|
465
465
|
*/
|
|
466
466
|
upsertBillingSubscription(request: Schematic.CreateBillingSubscriptionRequestBody, requestOptions?: BillingClient.RequestOptions): core.HttpResponsePromise<Schematic.UpsertBillingSubscriptionResponse>;
|
|
@@ -11,8 +11,8 @@ import type * as Schematic from "../../../../index";
|
|
|
11
11
|
* withPricesOnly: true,
|
|
12
12
|
* withZeroPrice: true,
|
|
13
13
|
* withoutLinkedToPlan: true,
|
|
14
|
-
* limit:
|
|
15
|
-
* offset:
|
|
14
|
+
* limit: 1000000,
|
|
15
|
+
* offset: 1000000
|
|
16
16
|
* }
|
|
17
17
|
*/
|
|
18
18
|
export interface CountBillingProductsRequest {
|
|
@@ -7,7 +7,7 @@ import type * as Schematic from "../../../../index";
|
|
|
7
7
|
* externalAccountId: "external_account_id",
|
|
8
8
|
* interval: "interval",
|
|
9
9
|
* isActive: true,
|
|
10
|
-
* price:
|
|
10
|
+
* price: 1000000,
|
|
11
11
|
* priceExternalId: "price_external_id",
|
|
12
12
|
* priceTiers: [{
|
|
13
13
|
* priceExternalId: "price_external_id"
|
package/dist/api/resources/billing/client/requests/CreateBillingSubscriptionRequestBody.d.ts
CHANGED
|
@@ -15,14 +15,14 @@ import type * as Schematic from "../../../../index";
|
|
|
15
15
|
* productExternalIds: [{
|
|
16
16
|
* currency: "currency",
|
|
17
17
|
* interval: "interval",
|
|
18
|
-
* price:
|
|
18
|
+
* price: 1000000,
|
|
19
19
|
* priceExternalId: "price_external_id",
|
|
20
20
|
* productExternalId: "product_external_id",
|
|
21
|
-
* quantity:
|
|
21
|
+
* quantity: 1000000,
|
|
22
22
|
* usageType: "licensed"
|
|
23
23
|
* }],
|
|
24
24
|
* subscriptionExternalId: "subscription_external_id",
|
|
25
|
-
* totalPrice:
|
|
25
|
+
* totalPrice: 1000000
|
|
26
26
|
* }
|
|
27
27
|
*/
|
|
28
28
|
export interface CreateBillingSubscriptionRequestBody {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @example
|
|
3
3
|
* {
|
|
4
|
-
* amountOff:
|
|
4
|
+
* amountOff: 1000000,
|
|
5
5
|
* duration: "duration",
|
|
6
|
-
* durationInMonths:
|
|
6
|
+
* durationInMonths: 1000000,
|
|
7
7
|
* externalId: "external_id",
|
|
8
|
-
* maxRedemptions:
|
|
8
|
+
* maxRedemptions: 1000000,
|
|
9
9
|
* name: "name",
|
|
10
10
|
* percentOff: 1.1,
|
|
11
|
-
* timesRedeemed:
|
|
11
|
+
* timesRedeemed: 1000000
|
|
12
12
|
* }
|
|
13
13
|
*/
|
|
14
14
|
export interface CreateCouponRequestBody {
|
|
@@ -2,13 +2,13 @@ import type * as Schematic from "../../../../index";
|
|
|
2
2
|
/**
|
|
3
3
|
* @example
|
|
4
4
|
* {
|
|
5
|
-
* amountDue:
|
|
6
|
-
* amountPaid:
|
|
7
|
-
* amountRemaining:
|
|
5
|
+
* amountDue: 1000000,
|
|
6
|
+
* amountPaid: 1000000,
|
|
7
|
+
* amountRemaining: 1000000,
|
|
8
8
|
* collectionMethod: "collection_method",
|
|
9
9
|
* currency: "currency",
|
|
10
10
|
* customerExternalId: "customer_external_id",
|
|
11
|
-
* subtotal:
|
|
11
|
+
* subtotal: 1000000
|
|
12
12
|
* }
|
|
13
13
|
*/
|
|
14
14
|
export interface CreateInvoiceRequestBody {
|
|
@@ -6,15 +6,15 @@ import type * as Schematic from "../../../../index";
|
|
|
6
6
|
* forTrialExpiryPlan: true,
|
|
7
7
|
* interval: "interval",
|
|
8
8
|
* isActive: true,
|
|
9
|
-
* price:
|
|
9
|
+
* price: 1000000,
|
|
10
10
|
* productId: "product_id",
|
|
11
11
|
* providerType: "schematic",
|
|
12
12
|
* q: "q",
|
|
13
13
|
* tiersMode: "graduated",
|
|
14
14
|
* usageType: "licensed",
|
|
15
15
|
* withMeter: true,
|
|
16
|
-
* limit:
|
|
17
|
-
* offset:
|
|
16
|
+
* limit: 1000000,
|
|
17
|
+
* offset: 1000000
|
|
18
18
|
* }
|
|
19
19
|
*/
|
|
20
20
|
export interface ListBillingPricesRequest {
|
|
@@ -6,15 +6,15 @@ import type * as Schematic from "../../../../index";
|
|
|
6
6
|
* forTrialExpiryPlan: true,
|
|
7
7
|
* interval: "interval",
|
|
8
8
|
* isActive: true,
|
|
9
|
-
* price:
|
|
9
|
+
* price: 1000000,
|
|
10
10
|
* productId: "product_id",
|
|
11
11
|
* providerType: "schematic",
|
|
12
12
|
* q: "q",
|
|
13
13
|
* tiersMode: "graduated",
|
|
14
14
|
* usageType: "licensed",
|
|
15
15
|
* withMeter: true,
|
|
16
|
-
* limit:
|
|
17
|
-
* offset:
|
|
16
|
+
* limit: 1000000,
|
|
17
|
+
* offset: 1000000
|
|
18
18
|
* }
|
|
19
19
|
*/
|
|
20
20
|
export interface ListBillingProductPricesRequest {
|
|
@@ -11,8 +11,8 @@ import type * as Schematic from "../../../../index";
|
|
|
11
11
|
* withPricesOnly: true,
|
|
12
12
|
* withZeroPrice: true,
|
|
13
13
|
* withoutLinkedToPlan: true,
|
|
14
|
-
* limit:
|
|
15
|
-
* offset:
|
|
14
|
+
* limit: 1000000,
|
|
15
|
+
* offset: 1000000
|
|
16
16
|
* }
|
|
17
17
|
*/
|
|
18
18
|
export interface ListBillingProductsRequest {
|
|
@@ -29,13 +29,13 @@ export declare class CheckoutClient {
|
|
|
29
29
|
* companyId: "company_id",
|
|
30
30
|
* creditBundles: [{
|
|
31
31
|
* bundleId: "bundle_id",
|
|
32
|
-
* quantity:
|
|
32
|
+
* quantity: 1000000
|
|
33
33
|
* }],
|
|
34
34
|
* newPlanId: "new_plan_id",
|
|
35
35
|
* newPriceId: "new_price_id",
|
|
36
36
|
* payInAdvance: [{
|
|
37
37
|
* priceId: "price_id",
|
|
38
|
-
* quantity:
|
|
38
|
+
* quantity: 1000000
|
|
39
39
|
* }],
|
|
40
40
|
* skipTrial: true
|
|
41
41
|
* })
|
|
@@ -78,13 +78,13 @@ export declare class CheckoutClient {
|
|
|
78
78
|
* companyId: "company_id",
|
|
79
79
|
* creditBundles: [{
|
|
80
80
|
* bundleId: "bundle_id",
|
|
81
|
-
* quantity:
|
|
81
|
+
* quantity: 1000000
|
|
82
82
|
* }],
|
|
83
83
|
* newPlanId: "new_plan_id",
|
|
84
84
|
* newPriceId: "new_price_id",
|
|
85
85
|
* payInAdvance: [{
|
|
86
86
|
* priceId: "price_id",
|
|
87
|
-
* quantity:
|
|
87
|
+
* quantity: 1000000
|
|
88
88
|
* }],
|
|
89
89
|
* skipTrial: true
|
|
90
90
|
* })
|
|
@@ -109,11 +109,11 @@ export declare class CheckoutClient {
|
|
|
109
109
|
* companyId: "company_id",
|
|
110
110
|
* creditBundles: [{
|
|
111
111
|
* bundleId: "bundle_id",
|
|
112
|
-
* quantity:
|
|
112
|
+
* quantity: 1000000
|
|
113
113
|
* }],
|
|
114
114
|
* payInAdvanceEntitlements: [{
|
|
115
115
|
* priceId: "price_id",
|
|
116
|
-
* quantity:
|
|
116
|
+
* quantity: 1000000
|
|
117
117
|
* }]
|
|
118
118
|
* })
|
|
119
119
|
*/
|
|
@@ -137,11 +137,11 @@ export declare class CheckoutClient {
|
|
|
137
137
|
* companyId: "company_id",
|
|
138
138
|
* creditBundles: [{
|
|
139
139
|
* bundleId: "bundle_id",
|
|
140
|
-
* quantity:
|
|
140
|
+
* quantity: 1000000
|
|
141
141
|
* }],
|
|
142
142
|
* payInAdvanceEntitlements: [{
|
|
143
143
|
* priceId: "price_id",
|
|
144
|
-
* quantity:
|
|
144
|
+
* quantity: 1000000
|
|
145
145
|
* }]
|
|
146
146
|
* })
|
|
147
147
|
*/
|