@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.
Files changed (35) hide show
  1. package/dist/index.es.js +69 -0
  2. package/dist/index.es.js.map +1 -1
  3. package/dist/index.js +69 -0
  4. package/dist/index.js.map +1 -1
  5. package/dist/sdk/api/ai/conversations/index.d.ts +3 -0
  6. package/dist/sdk/api/ai/messages/index.d.ts +3 -0
  7. package/dist/sdk/api/apiKeys/index.d.ts +3 -0
  8. package/dist/sdk/api/carts/index.d.ts +6 -0
  9. package/dist/sdk/api/currencyOptions/index.d.ts +3 -0
  10. package/dist/sdk/api/destinations/index.d.ts +3 -0
  11. package/dist/sdk/api/entitlements/index.d.ts +3 -0
  12. package/dist/sdk/api/eventAttempts/index.d.ts +3 -0
  13. package/dist/sdk/api/events/index.d.ts +3 -0
  14. package/dist/sdk/api/grantees/index.d.ts +3 -0
  15. package/dist/sdk/api/groups/index.d.ts +3 -0
  16. package/dist/sdk/api/lineItems/index.d.ts +3 -0
  17. package/dist/sdk/api/meters/index.d.ts +3 -0
  18. package/dist/sdk/api/owners/index.d.ts +3 -0
  19. package/dist/sdk/api/paymentIntegrations/index.d.ts +3 -0
  20. package/dist/sdk/api/plans/index.d.ts +3 -0
  21. package/dist/sdk/api/prices/index.d.ts +3 -0
  22. package/dist/sdk/api/products/copyToLiveMode/index.d.ts +35 -0
  23. package/dist/sdk/api/products/exportEscaped/item/index.d.ts +2 -2
  24. package/dist/sdk/api/products/importEscaped/index.d.ts +2 -2
  25. package/dist/sdk/api/products/index.d.ts +28 -5
  26. package/dist/sdk/api/products/item/archive/index.d.ts +2 -2
  27. package/dist/sdk/api/products/item/index.d.ts +10 -7
  28. package/dist/sdk/api/receipts/index.d.ts +3 -0
  29. package/dist/sdk/api/subscriptionPlans/index.d.ts +3 -0
  30. package/dist/sdk/api/subscriptions/index.d.ts +3 -0
  31. package/dist/sdk/api/tierTags/index.d.ts +3 -0
  32. package/dist/sdk/api/tiers/index.d.ts +3 -0
  33. package/dist/sdk/api/usageRecords/index.d.ts +3 -0
  34. package/dist/sdk/models/index.d.ts +70 -14
  35. 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
- * The grantees property
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
- * The name property
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 property
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
- * The isActive property
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 property
17349
+ * The name of the product.
17300
17350
  */
17301
17351
  name?: string | null;
17302
17352
  /**
17303
- * The settings property
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
- * The allowPromoCodes property
17362
+ * Whether to allow customers to enter promotional codes during checkout.
17310
17363
  */
17311
17364
  allowPromoCodes?: boolean | null;
17312
17365
  /**
17313
- * The automaticTax property
17366
+ * Whether to enable automatic tax calculation based on customer location.
17314
17367
  */
17315
17368
  automaticTax?: boolean | null;
17316
17369
  /**
17317
- * The cancelUrl property
17370
+ * URL to redirect customers to if they abandon checkout.
17318
17371
  */
17319
17372
  cancelUrl?: string | null;
17320
17373
  /**
17321
- * The cardPrefillPreference property
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
- * The collectBillingAddress property
17378
+ * Whether to collect the customer's billing address during checkout.
17326
17379
  */
17327
17380
  collectBillingAddress?: boolean | null;
17328
17381
  /**
17329
- * The collectShippingAddress property
17382
+ * Whether to collect the customer's shipping address during checkout.
17330
17383
  */
17331
17384
  collectShippingAddress?: boolean | null;
17332
17385
  /**
17333
- * The pastDueEntitlements property
17386
+ * Whether customers with past due subscriptions retain their entitlements.
17334
17387
  */
17335
17388
  pastDueEntitlements?: boolean | null;
17336
17389
  /**
17337
- * The successUrl property
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";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salable/sdk",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.es.js",