@salable/sdk 1.0.3 → 1.0.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/dist/index.es.js +69 -0
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +69 -0
- package/dist/index.js.map +1 -1
- package/dist/sdk/api/ai/conversations/index.d.ts +3 -0
- package/dist/sdk/api/ai/messages/index.d.ts +3 -0
- package/dist/sdk/api/apiKeys/index.d.ts +3 -0
- package/dist/sdk/api/carts/index.d.ts +6 -0
- package/dist/sdk/api/currencyOptions/index.d.ts +3 -0
- package/dist/sdk/api/destinations/index.d.ts +3 -0
- package/dist/sdk/api/entitlements/index.d.ts +3 -0
- package/dist/sdk/api/eventAttempts/index.d.ts +3 -0
- package/dist/sdk/api/events/index.d.ts +3 -0
- package/dist/sdk/api/grantees/index.d.ts +3 -0
- package/dist/sdk/api/groups/index.d.ts +3 -0
- package/dist/sdk/api/lineItems/index.d.ts +3 -0
- package/dist/sdk/api/meters/index.d.ts +3 -0
- package/dist/sdk/api/owners/index.d.ts +3 -0
- package/dist/sdk/api/paymentIntegrations/index.d.ts +3 -0
- package/dist/sdk/api/plans/index.d.ts +3 -0
- package/dist/sdk/api/prices/index.d.ts +3 -0
- package/dist/sdk/api/products/copyToLiveMode/index.d.ts +35 -0
- package/dist/sdk/api/products/exportEscaped/item/index.d.ts +2 -2
- package/dist/sdk/api/products/importEscaped/index.d.ts +2 -2
- package/dist/sdk/api/products/index.d.ts +28 -5
- package/dist/sdk/api/products/item/archive/index.d.ts +2 -2
- package/dist/sdk/api/products/item/index.d.ts +10 -7
- package/dist/sdk/api/receipts/index.d.ts +3 -0
- package/dist/sdk/api/subscriptionPlans/index.d.ts +3 -0
- package/dist/sdk/api/subscriptions/index.d.ts +3 -0
- package/dist/sdk/api/tierTags/index.d.ts +3 -0
- package/dist/sdk/api/tiers/index.d.ts +3 -0
- package/dist/sdk/api/usageRecords/index.d.ts +3 -0
- package/dist/sdk/models/index.d.ts +70 -14
- package/package.json +1 -1
|
@@ -150,6 +150,18 @@ export interface CheckEntitlementsSchema_data_entitlements extends AdditionalDat
|
|
|
150
150
|
value?: string | null;
|
|
151
151
|
}
|
|
152
152
|
export type CheckEntitlementsSchema_data_entitlements_type = string;
|
|
153
|
+
export interface CopyProductToLiveModeRequestSchema extends Parsable {
|
|
154
|
+
/**
|
|
155
|
+
* The ID of the test mode product to copy to live mode.
|
|
156
|
+
*/
|
|
157
|
+
id?: string | null;
|
|
158
|
+
}
|
|
159
|
+
export interface CopyToLiveModeSchema extends Parsable {
|
|
160
|
+
/**
|
|
161
|
+
* The id property
|
|
162
|
+
*/
|
|
163
|
+
id?: string | null;
|
|
164
|
+
}
|
|
153
165
|
export interface CreateAccountSessionResponseSchema extends Parsable {
|
|
154
166
|
/**
|
|
155
167
|
* The data property
|
|
@@ -386,6 +398,18 @@ export declare function createCheckEntitlementsSchema_dataFromDiscriminatorValue
|
|
|
386
398
|
* @returns {CheckEntitlementsSchema}
|
|
387
399
|
*/
|
|
388
400
|
export declare function createCheckEntitlementsSchemaFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
401
|
+
/**
|
|
402
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
403
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
404
|
+
* @returns {CopyProductToLiveModeRequestSchema}
|
|
405
|
+
*/
|
|
406
|
+
export declare function createCopyProductToLiveModeRequestSchemaFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
407
|
+
/**
|
|
408
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
409
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
410
|
+
* @returns {CopyToLiveModeSchema}
|
|
411
|
+
*/
|
|
412
|
+
export declare function createCopyToLiveModeSchemaFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
389
413
|
/**
|
|
390
414
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
391
415
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
@@ -2520,7 +2544,7 @@ export interface CreateGranteeResponseSchema_data extends Parsable {
|
|
|
2520
2544
|
}
|
|
2521
2545
|
export interface CreateGroupRequestSchema extends Parsable {
|
|
2522
2546
|
/**
|
|
2523
|
-
*
|
|
2547
|
+
* Create new or connect existing grantees to the group. To connect an existing grantee use it's granteeId value.
|
|
2524
2548
|
*/
|
|
2525
2549
|
grantees?: CreateGroupRequestSchema_grantees[] | null;
|
|
2526
2550
|
/**
|
|
@@ -2538,7 +2562,7 @@ export interface CreateGroupRequestSchema_grantees extends Parsable {
|
|
|
2538
2562
|
*/
|
|
2539
2563
|
granteeId?: string | null;
|
|
2540
2564
|
/**
|
|
2541
|
-
*
|
|
2565
|
+
* Name of the grantee, only applicable when creating new grantees.
|
|
2542
2566
|
*/
|
|
2543
2567
|
name?: string | null;
|
|
2544
2568
|
}
|
|
@@ -2747,7 +2771,7 @@ export interface CreateProductRequestSchema extends Parsable {
|
|
|
2747
2771
|
*/
|
|
2748
2772
|
isActive?: boolean | null;
|
|
2749
2773
|
/**
|
|
2750
|
-
* The name
|
|
2774
|
+
* The name of the product.
|
|
2751
2775
|
*/
|
|
2752
2776
|
name?: string | null;
|
|
2753
2777
|
}
|
|
@@ -3200,6 +3224,18 @@ export declare function deserializeIntoCheckEntitlementsSchema_data(checkEntitle
|
|
|
3200
3224
|
* @returns {Record<string, (node: ParseNode) => void>}
|
|
3201
3225
|
*/
|
|
3202
3226
|
export declare function deserializeIntoCheckEntitlementsSchema_data_entitlements(checkEntitlementsSchema_data_entitlements?: Partial<CheckEntitlementsSchema_data_entitlements> | undefined): Record<string, (node: ParseNode) => void>;
|
|
3227
|
+
/**
|
|
3228
|
+
* The deserialization information for the current model
|
|
3229
|
+
* @param CopyProductToLiveModeRequestSchema The instance to deserialize into.
|
|
3230
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
3231
|
+
*/
|
|
3232
|
+
export declare function deserializeIntoCopyProductToLiveModeRequestSchema(copyProductToLiveModeRequestSchema?: Partial<CopyProductToLiveModeRequestSchema> | undefined): Record<string, (node: ParseNode) => void>;
|
|
3233
|
+
/**
|
|
3234
|
+
* The deserialization information for the current model
|
|
3235
|
+
* @param CopyToLiveModeSchema The instance to deserialize into.
|
|
3236
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
3237
|
+
*/
|
|
3238
|
+
export declare function deserializeIntoCopyToLiveModeSchema(copyToLiveModeSchema?: Partial<CopyToLiveModeSchema> | undefined): Record<string, (node: ParseNode) => void>;
|
|
3203
3239
|
/**
|
|
3204
3240
|
* The deserialization information for the current model
|
|
3205
3241
|
* @param CreateAccountSessionResponseSchema The instance to deserialize into.
|
|
@@ -14172,6 +14208,20 @@ export declare function serializeCheckEntitlementsSchema_data_entitlements(write
|
|
|
14172
14208
|
* @param writer Serialization writer to use to serialize this model
|
|
14173
14209
|
*/
|
|
14174
14210
|
export declare function serializeCheckEntitlementsSchema_data_entitlements_type(writer: SerializationWriter, key: string, checkEntitlementsSchema_data_entitlements_type: Parsable | CheckEntitlementsSchema_data_entitlements_type | undefined, isSerializingDerivedType?: boolean): void;
|
|
14211
|
+
/**
|
|
14212
|
+
* Serializes information the current object
|
|
14213
|
+
* @param CopyProductToLiveModeRequestSchema The instance to serialize from.
|
|
14214
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
14215
|
+
* @param writer Serialization writer to use to serialize this model
|
|
14216
|
+
*/
|
|
14217
|
+
export declare function serializeCopyProductToLiveModeRequestSchema(writer: SerializationWriter, copyProductToLiveModeRequestSchema?: Partial<CopyProductToLiveModeRequestSchema> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
14218
|
+
/**
|
|
14219
|
+
* Serializes information the current object
|
|
14220
|
+
* @param CopyToLiveModeSchema The instance to serialize from.
|
|
14221
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
14222
|
+
* @param writer Serialization writer to use to serialize this model
|
|
14223
|
+
*/
|
|
14224
|
+
export declare function serializeCopyToLiveModeSchema(writer: SerializationWriter, copyToLiveModeSchema?: Partial<CopyToLiveModeSchema> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
14175
14225
|
/**
|
|
14176
14226
|
* Serializes information the current object
|
|
14177
14227
|
* @param CreateAccountSessionResponseSchema The instance to serialize from.
|
|
@@ -17292,49 +17342,52 @@ export interface UpdatePlanResponseSchema_data extends Parsable {
|
|
|
17292
17342
|
}
|
|
17293
17343
|
export interface UpdateProductRequestSchema extends Parsable {
|
|
17294
17344
|
/**
|
|
17295
|
-
*
|
|
17345
|
+
* Whether the product is active. When `false`, the product and its plans will not be available for new subscriptions.
|
|
17296
17346
|
*/
|
|
17297
17347
|
isActive?: boolean | null;
|
|
17298
17348
|
/**
|
|
17299
|
-
* The name
|
|
17349
|
+
* The name of the product.
|
|
17300
17350
|
*/
|
|
17301
17351
|
name?: string | null;
|
|
17302
17352
|
/**
|
|
17303
|
-
*
|
|
17353
|
+
* Product settings to update.
|
|
17304
17354
|
*/
|
|
17305
17355
|
settings?: UpdateProductRequestSchema_settings | null;
|
|
17306
17356
|
}
|
|
17357
|
+
/**
|
|
17358
|
+
* Product settings to update.
|
|
17359
|
+
*/
|
|
17307
17360
|
export interface UpdateProductRequestSchema_settings extends Parsable {
|
|
17308
17361
|
/**
|
|
17309
|
-
*
|
|
17362
|
+
* Whether to allow customers to enter promotional codes during checkout.
|
|
17310
17363
|
*/
|
|
17311
17364
|
allowPromoCodes?: boolean | null;
|
|
17312
17365
|
/**
|
|
17313
|
-
*
|
|
17366
|
+
* Whether to enable automatic tax calculation based on customer location.
|
|
17314
17367
|
*/
|
|
17315
17368
|
automaticTax?: boolean | null;
|
|
17316
17369
|
/**
|
|
17317
|
-
*
|
|
17370
|
+
* URL to redirect customers to if they abandon checkout.
|
|
17318
17371
|
*/
|
|
17319
17372
|
cancelUrl?: string | null;
|
|
17320
17373
|
/**
|
|
17321
|
-
*
|
|
17374
|
+
* Controls whether to prefill the customer's saved card details at checkout. One of `none`, `always`, `choice`.
|
|
17322
17375
|
*/
|
|
17323
17376
|
cardPrefillPreference?: UpdateProductRequestSchema_settings_cardPrefillPreference | null;
|
|
17324
17377
|
/**
|
|
17325
|
-
*
|
|
17378
|
+
* Whether to collect the customer's billing address during checkout.
|
|
17326
17379
|
*/
|
|
17327
17380
|
collectBillingAddress?: boolean | null;
|
|
17328
17381
|
/**
|
|
17329
|
-
*
|
|
17382
|
+
* Whether to collect the customer's shipping address during checkout.
|
|
17330
17383
|
*/
|
|
17331
17384
|
collectShippingAddress?: boolean | null;
|
|
17332
17385
|
/**
|
|
17333
|
-
*
|
|
17386
|
+
* Whether customers with past due subscriptions retain their entitlements.
|
|
17334
17387
|
*/
|
|
17335
17388
|
pastDueEntitlements?: boolean | null;
|
|
17336
17389
|
/**
|
|
17337
|
-
*
|
|
17390
|
+
* URL to redirect customers to after a successful checkout.
|
|
17338
17391
|
*/
|
|
17339
17392
|
successUrl?: string | null;
|
|
17340
17393
|
}
|
|
@@ -18135,6 +18188,9 @@ export declare const UpdateLineItemRequestSchemaMember3_tiersModeObject: {
|
|
|
18135
18188
|
readonly Graduated: "graduated";
|
|
18136
18189
|
readonly Volume: "volume";
|
|
18137
18190
|
};
|
|
18191
|
+
/**
|
|
18192
|
+
* Controls whether to prefill the customer's saved card details at checkout. One of `none`, `always`, `choice`.
|
|
18193
|
+
*/
|
|
18138
18194
|
export declare const UpdateProductRequestSchema_settings_cardPrefillPreferenceObject: {
|
|
18139
18195
|
readonly None: "none";
|
|
18140
18196
|
readonly Always: "always";
|