@schematichq/schematic-typescript-node 1.3.0 → 1.3.1
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/dist/Client.d.ts +3 -0
- package/dist/api/resources/billing/client/Client.d.ts +0 -3
- package/dist/api/resources/billing/client/requests/CountBillingProductsRequest.d.ts +1 -1
- package/dist/api/resources/billing/client/requests/CountCustomersRequest.d.ts +0 -2
- package/dist/api/resources/billing/client/requests/CreateBillingCustomerRequestBody.d.ts +0 -2
- package/dist/api/resources/billing/client/requests/ListBillingProductsRequest.d.ts +1 -1
- package/dist/api/resources/billing/client/requests/ListCustomersWithSubscriptionsRequest.d.ts +0 -2
- package/dist/api/resources/billing/types/CountBillingProductsParams.d.ts +1 -1
- package/dist/api/resources/billing/types/CountCustomersParams.d.ts +0 -1
- package/dist/api/resources/billing/types/ListBillingProductsParams.d.ts +1 -1
- package/dist/api/resources/billing/types/ListCustomersWithSubscriptionsParams.d.ts +0 -1
- package/dist/api/resources/credits/client/Client.d.ts +21 -0
- package/dist/api/resources/credits/client/requests/CountCompanyGrantsRequest.d.ts +20 -0
- package/dist/api/resources/credits/client/requests/index.d.ts +1 -2
- package/dist/api/resources/credits/types/CountCompanyGrantsParams.d.ts +13 -0
- package/dist/api/resources/credits/types/CountCompanyGrantsResponse.d.ts +6 -0
- package/dist/api/resources/credits/types/index.d.ts +2 -0
- package/dist/api/resources/index.d.ts +3 -0
- package/dist/api/resources/planbundle/client/Client.d.ts +52 -0
- package/dist/api/resources/planbundle/client/index.d.ts +1 -0
- package/dist/api/resources/planbundle/client/requests/CreatePlanBundleRequestBody.d.ts +16 -0
- package/dist/api/resources/planbundle/client/requests/UpdatePlanBundleRequestBody.d.ts +16 -0
- package/dist/api/resources/planbundle/client/requests/index.d.ts +2 -0
- package/dist/api/resources/planbundle/index.d.ts +2 -0
- package/dist/api/resources/planbundle/types/CreatePlanBundleResponse.d.ts +6 -0
- package/dist/api/resources/planbundle/types/UpdatePlanBundleResponse.d.ts +6 -0
- package/dist/api/resources/planbundle/types/index.d.ts +2 -0
- package/dist/api/resources/plans/client/requests/index.d.ts +0 -3
- package/dist/api/types/BillingCreditGrantResponseData.d.ts +2 -0
- package/dist/api/types/BillingCustomerResponseData.d.ts +0 -1
- package/dist/api/types/BillingCustomerWithSubscriptionsResponseData.d.ts +0 -1
- package/dist/api/types/CompanyPlanDetailResponseData.d.ts +1 -0
- package/dist/api/types/CompanyPlanWithBillingSubView.d.ts +1 -0
- package/dist/api/{resources/credits/client/requests → types}/CreateBillingPlanCreditGrantRequestBody.d.ts +1 -11
- package/dist/api/types/CreateEntitlementInBundleRequestBody.d.ts +29 -0
- package/dist/api/types/CreateEntitlementInBundleRequestBodyMetricPeriod.d.ts +7 -0
- package/dist/api/types/CreateEntitlementInBundleRequestBodyMetricPeriodMonthReset.d.ts +5 -0
- package/dist/api/types/CreatePlanRequestBody.d.ts +7 -0
- package/dist/api/types/CreditCompanyGrantView.d.ts +2 -0
- package/dist/api/types/DeleteBillingPlanCreditGrantRequestBody.d.ts +3 -0
- package/dist/api/types/EventDetailResponseData.d.ts +1 -1
- package/dist/api/types/EventResponseData.d.ts +1 -1
- package/dist/api/types/PlanBundleAction.d.ts +6 -0
- package/dist/api/types/PlanBundleCreditGrantRequestBody.d.ts +8 -0
- package/dist/api/types/PlanBundleEntitlementRequestBody.d.ts +6 -0
- package/dist/api/types/PlanBundleResponseData.d.ts +8 -0
- package/dist/api/types/PlanChangeSubscriptionAction.d.ts +1 -0
- package/dist/api/types/PlanDetailResponseData.d.ts +1 -0
- package/dist/api/types/PlanGroupPlanDetailResponseData.d.ts +1 -0
- package/dist/api/types/PlanVersionResponseData.d.ts +14 -0
- package/dist/api/types/PlanVersionStatus.d.ts +6 -0
- package/dist/api/types/RawEventResponseData.d.ts +1 -1
- package/dist/api/{resources/credits/client/requests → types}/UpdateBillingPlanCreditGrantRequestBody.d.ts +1 -8
- package/dist/api/{resources/plans/client/requests → types}/UpdatePlanRequestBody.d.ts +0 -6
- package/dist/api/{resources/plans/client/requests → types}/UpsertBillingProductRequestBody.d.ts +1 -8
- package/dist/api/types/WebhookRequestType.d.ts +2 -0
- package/dist/api/types/index.d.ts +15 -0
- package/dist/index.js +3 -3
- package/dist/serialization/resources/billing/client/requests/CreateBillingCustomerRequestBody.d.ts +0 -1
- package/dist/serialization/resources/billing/types/CountCustomersParams.d.ts +0 -1
- package/dist/serialization/resources/billing/types/ListCustomersWithSubscriptionsParams.d.ts +0 -1
- package/dist/serialization/resources/credits/client/requests/index.d.ts +0 -2
- package/dist/serialization/resources/credits/types/CountCompanyGrantsParams.d.ts +15 -0
- package/dist/serialization/resources/credits/types/CountCompanyGrantsResponse.d.ts +12 -0
- package/dist/serialization/resources/credits/types/index.d.ts +2 -0
- package/dist/serialization/resources/index.d.ts +3 -0
- package/dist/serialization/resources/planbundle/client/index.d.ts +1 -0
- package/dist/serialization/resources/planbundle/client/requests/CreatePlanBundleRequestBody.d.ts +18 -0
- package/dist/serialization/resources/planbundle/client/requests/UpdatePlanBundleRequestBody.d.ts +18 -0
- package/dist/serialization/resources/planbundle/client/requests/index.d.ts +2 -0
- package/dist/serialization/resources/planbundle/index.d.ts +2 -0
- package/dist/serialization/resources/planbundle/types/CreatePlanBundleResponse.d.ts +11 -0
- package/dist/serialization/resources/planbundle/types/UpdatePlanBundleResponse.d.ts +11 -0
- package/dist/serialization/resources/planbundle/types/index.d.ts +2 -0
- package/dist/serialization/resources/plans/client/requests/index.d.ts +0 -3
- package/dist/serialization/types/BillingCreditGrantResponseData.d.ts +3 -0
- package/dist/serialization/types/BillingCustomerResponseData.d.ts +0 -1
- package/dist/serialization/types/BillingCustomerWithSubscriptionsResponseData.d.ts +0 -1
- package/dist/serialization/types/CompanyPlanDetailResponseData.d.ts +2 -0
- package/dist/serialization/types/CompanyPlanWithBillingSubView.d.ts +1 -0
- package/dist/serialization/{resources/credits/client/requests → types}/CreateBillingPlanCreditGrantRequestBody.d.ts +10 -10
- package/dist/serialization/types/CreateEntitlementInBundleRequestBody.d.ts +39 -0
- package/dist/serialization/types/CreateEntitlementInBundleRequestBodyMetricPeriod.d.ts +7 -0
- package/dist/serialization/types/CreateEntitlementInBundleRequestBodyMetricPeriodMonthReset.d.ts +7 -0
- package/dist/serialization/types/CreatePlanRequestBody.d.ts +13 -0
- package/dist/serialization/types/CreditCompanyGrantView.d.ts +3 -0
- package/dist/serialization/types/DeleteBillingPlanCreditGrantRequestBody.d.ts +9 -0
- package/dist/serialization/types/EventDetailResponseData.d.ts +1 -1
- package/dist/serialization/types/EventResponseData.d.ts +1 -1
- package/dist/serialization/types/PlanBundleAction.d.ts +7 -0
- package/dist/serialization/types/PlanBundleCreditGrantRequestBody.d.ts +17 -0
- package/dist/serialization/types/PlanBundleEntitlementRequestBody.d.ts +13 -0
- package/dist/serialization/types/PlanBundleResponseData.d.ts +18 -0
- package/dist/serialization/types/PlanChangeSubscriptionAction.d.ts +1 -1
- package/dist/serialization/types/PlanDetailResponseData.d.ts +2 -0
- package/dist/serialization/types/PlanGroupPlanDetailResponseData.d.ts +2 -0
- package/dist/serialization/types/PlanVersionResponseData.d.ts +21 -0
- package/dist/serialization/types/PlanVersionStatus.d.ts +7 -0
- package/dist/serialization/types/RawEventResponseData.d.ts +1 -1
- package/dist/serialization/{resources/credits/client/requests → types}/UpdateBillingPlanCreditGrantRequestBody.d.ts +10 -10
- package/dist/serialization/types/UpdatePlanRequestBody.d.ts +11 -0
- package/dist/serialization/{resources/plans/client/requests → types}/UpsertBillingProductRequestBody.d.ts +5 -5
- package/dist/serialization/types/WebhookRequestType.d.ts +1 -1
- package/dist/serialization/types/index.d.ts +15 -0
- package/dist/wrapper.d.ts +10 -1
- package/package.json +1 -1
- package/dist/api/resources/plans/client/requests/CreatePlanRequestBody.d.ts +0 -15
- package/dist/serialization/resources/plans/client/requests/CreatePlanRequestBody.d.ts +0 -13
- package/dist/serialization/resources/plans/client/requests/UpdatePlanRequestBody.d.ts +0 -11
|
@@ -1,11 +1,4 @@
|
|
|
1
|
-
import type * as Schematic from "
|
|
2
|
-
/**
|
|
3
|
-
* @example
|
|
4
|
-
* {
|
|
5
|
-
* resetCadence: "daily",
|
|
6
|
-
* resetStart: "billing_period"
|
|
7
|
-
* }
|
|
8
|
-
*/
|
|
1
|
+
import type * as Schematic from "../index";
|
|
9
2
|
export interface UpdateBillingPlanCreditGrantRequestBody {
|
|
10
3
|
applyToExisting?: boolean;
|
|
11
4
|
autoTopupAmount?: number;
|
package/dist/api/{resources/plans/client/requests → types}/UpsertBillingProductRequestBody.d.ts
RENAMED
|
@@ -1,11 +1,4 @@
|
|
|
1
|
-
import type * as Schematic from "
|
|
2
|
-
/**
|
|
3
|
-
* @example
|
|
4
|
-
* {
|
|
5
|
-
* chargeType: "free",
|
|
6
|
-
* isTrialable: true
|
|
7
|
-
* }
|
|
8
|
-
*/
|
|
1
|
+
import type * as Schematic from "../index";
|
|
9
2
|
export interface UpsertBillingProductRequestBody {
|
|
10
3
|
billingProductId?: string;
|
|
11
4
|
chargeType: Schematic.ChargeType;
|
|
@@ -34,5 +34,7 @@ export declare const WebhookRequestType: {
|
|
|
34
34
|
readonly UserCreated: "user.created";
|
|
35
35
|
readonly UserDeleted: "user.deleted";
|
|
36
36
|
readonly UserUpdated: "user.updated";
|
|
37
|
+
readonly AutoTopupHardFailure: "auto.topup.hard.failure";
|
|
38
|
+
readonly AutoTopupRetryExceeded: "auto.topup.retry.exceeded";
|
|
37
39
|
};
|
|
38
40
|
export type WebhookRequestType = (typeof WebhookRequestType)[keyof typeof WebhookRequestType];
|
|
@@ -87,7 +87,11 @@ export * from "./ConditionMetricPeriodMonthReset";
|
|
|
87
87
|
export * from "./ConditionOperator";
|
|
88
88
|
export * from "./CountResponse";
|
|
89
89
|
export * from "./CouponRequestBody";
|
|
90
|
+
export * from "./CreateBillingPlanCreditGrantRequestBody";
|
|
90
91
|
export * from "./CreateBillingPriceTierRequestBody";
|
|
92
|
+
export * from "./CreateEntitlementInBundleRequestBody";
|
|
93
|
+
export * from "./CreateEntitlementInBundleRequestBodyMetricPeriod";
|
|
94
|
+
export * from "./CreateEntitlementInBundleRequestBodyMetricPeriodMonthReset";
|
|
91
95
|
export * from "./CreateEntitlementReqCommon";
|
|
92
96
|
export * from "./CreateEntitlementReqCommonMetricPeriod";
|
|
93
97
|
export * from "./CreateEntitlementReqCommonMetricPeriodMonthReset";
|
|
@@ -102,6 +106,7 @@ export * from "./CreateOrUpdateConditionRequestBodyOperator";
|
|
|
102
106
|
export * from "./CreateOrUpdateFlagRequestBody";
|
|
103
107
|
export * from "./CreateOrUpdateRuleRequestBody";
|
|
104
108
|
export * from "./CreateOrUpdateRuleRequestBodyRuleType";
|
|
109
|
+
export * from "./CreatePlanRequestBody";
|
|
105
110
|
export * from "./CreatePriceTierRequestBody";
|
|
106
111
|
export * from "./CreditAutoTopupAmountType";
|
|
107
112
|
export * from "./CreditBundlePurchaseResponseData";
|
|
@@ -123,6 +128,7 @@ export * from "./DataExportOutputFileType";
|
|
|
123
128
|
export * from "./DataExportResponseData";
|
|
124
129
|
export * from "./DataExportStatus";
|
|
125
130
|
export * from "./DataExportType";
|
|
131
|
+
export * from "./DeleteBillingPlanCreditGrantRequestBody";
|
|
126
132
|
export * from "./DeleteResponse";
|
|
127
133
|
export * from "./DuplicatePlanEntitlementsResponseResponseData";
|
|
128
134
|
export * from "./EntitlementPriceBehavior";
|
|
@@ -176,6 +182,10 @@ export * from "./MeterRequestBody";
|
|
|
176
182
|
export * from "./OrderedPlansInGroup";
|
|
177
183
|
export * from "./PaymentMethodRequestBody";
|
|
178
184
|
export * from "./PaymentMethodResponseData";
|
|
185
|
+
export * from "./PlanBundleAction";
|
|
186
|
+
export * from "./PlanBundleCreditGrantRequestBody";
|
|
187
|
+
export * from "./PlanBundleEntitlementRequestBody";
|
|
188
|
+
export * from "./PlanBundleResponseData";
|
|
179
189
|
export * from "./PlanChangeAction";
|
|
180
190
|
export * from "./PlanChangeActorType";
|
|
181
191
|
export * from "./PlanChangeBasePlanAction";
|
|
@@ -197,6 +207,8 @@ export * from "./PlanSelection";
|
|
|
197
207
|
export * from "./PlanSnapshotView";
|
|
198
208
|
export * from "./PlanTraitResponseData";
|
|
199
209
|
export * from "./PlanType";
|
|
210
|
+
export * from "./PlanVersionResponseData";
|
|
211
|
+
export * from "./PlanVersionStatus";
|
|
200
212
|
export * from "./PreviewObject";
|
|
201
213
|
export * from "./PreviewObjectResponseData";
|
|
202
214
|
export * from "./PreviewSubscriptionChangeResponseData";
|
|
@@ -252,13 +264,16 @@ export * from "./TraitDefinition";
|
|
|
252
264
|
export * from "./TraitDefinitionComparableType";
|
|
253
265
|
export * from "./TraitType";
|
|
254
266
|
export * from "./UpdateAddOnRequestBody";
|
|
267
|
+
export * from "./UpdateBillingPlanCreditGrantRequestBody";
|
|
255
268
|
export * from "./UpdateCreditBundleRequestBody";
|
|
256
269
|
export * from "./UpdateEntitlementReqCommon";
|
|
257
270
|
export * from "./UpdateEntitlementReqCommonMetricPeriod";
|
|
258
271
|
export * from "./UpdateEntitlementReqCommonMetricPeriodMonthReset";
|
|
259
272
|
export * from "./UpdatePayInAdvanceRequestBody";
|
|
273
|
+
export * from "./UpdatePlanRequestBody";
|
|
260
274
|
export * from "./UpdatePlanTraitTraitRequestBody";
|
|
261
275
|
export * from "./UpdateRuleRequestBody";
|
|
276
|
+
export * from "./UpsertBillingProductRequestBody";
|
|
262
277
|
export * from "./UpsertCompanyRequestBody";
|
|
263
278
|
export * from "./UpsertTraitRequestBody";
|
|
264
279
|
export * from "./UpsertUserRequestBody";
|