@salable/sdk 1.0.39 → 1.0.41

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.
@@ -5,7 +5,7 @@ import { type BaseRequestBuilder, type RequestConfiguration, type RequestInforma
5
5
  */
6
6
  export interface ItemsRequestBuilder extends BaseRequestBuilder<ItemsRequestBuilder> {
7
7
  /**
8
- * Add, remove or replace items on a subscription.
8
+ * Add, remove or replace items on a subscription. Key quantity metadata by line item slug.
9
9
  * @param body The request body
10
10
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
11
11
  * @throws {ErrorResponseBody} error when the service returns a 400 status code
@@ -18,7 +18,7 @@ export interface ItemsRequestBuilder extends BaseRequestBuilder<ItemsRequestBuil
18
18
  */
19
19
  put(body: UpdateSubscriptionItemsRequestSchema, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<void>;
20
20
  /**
21
- * Add, remove or replace items on a subscription.
21
+ * Add, remove or replace items on a subscription. Key quantity metadata by line item slug.
22
22
  * @param body The request body
23
23
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
24
24
  * @returns {RequestInformation}
@@ -3411,10 +3411,18 @@ export interface CreateWebhookRequestResponseSchema_data extends Parsable {
3411
3411
  * The createdAt property
3412
3412
  */
3413
3413
  createdAt?: string | null;
3414
+ /**
3415
+ * The description property
3416
+ */
3417
+ description?: string | null;
3414
3418
  /**
3415
3419
  * The id property
3416
3420
  */
3417
3421
  id?: string | null;
3422
+ /**
3423
+ * The name property
3424
+ */
3425
+ name?: string | null;
3418
3426
  /**
3419
3427
  * The organisation property
3420
3428
  */
@@ -3433,10 +3441,18 @@ export interface CreateWebhookRequestResponseSchema_data extends Parsable {
3433
3441
  url?: string | null;
3434
3442
  }
3435
3443
  export interface CreateWebhookRequestSchema extends Parsable {
3444
+ /**
3445
+ * The description property
3446
+ */
3447
+ description?: string | null;
3436
3448
  /**
3437
3449
  * The events property
3438
3450
  */
3439
3451
  events?: CreateWebhookRequestSchema_events[] | null;
3452
+ /**
3453
+ * The name property
3454
+ */
3455
+ name?: string | null;
3440
3456
  /**
3441
3457
  * The url property
3442
3458
  */
@@ -7402,10 +7418,18 @@ export interface GetEventDetailSchema_data_destinations_data_webhook extends Par
7402
7418
  * The createdAt property
7403
7419
  */
7404
7420
  createdAt?: string | null;
7421
+ /**
7422
+ * The description property
7423
+ */
7424
+ description?: string | null;
7405
7425
  /**
7406
7426
  * The id property
7407
7427
  */
7408
7428
  id?: string | null;
7429
+ /**
7430
+ * The name property
7431
+ */
7432
+ name?: string | null;
7409
7433
  /**
7410
7434
  * The organisation property
7411
7435
  */
@@ -13409,6 +13433,10 @@ export interface GetWebhookDetailSchema_data extends AdditionalDataHolder, Parsa
13409
13433
  * The createdAt property
13410
13434
  */
13411
13435
  createdAt?: string | null;
13436
+ /**
13437
+ * The description property
13438
+ */
13439
+ description?: string | null;
13412
13440
  /**
13413
13441
  * The destinations property
13414
13442
  */
@@ -13421,6 +13449,10 @@ export interface GetWebhookDetailSchema_data extends AdditionalDataHolder, Parsa
13421
13449
  * The id property
13422
13450
  */
13423
13451
  id?: string | null;
13452
+ /**
13453
+ * The name property
13454
+ */
13455
+ name?: string | null;
13424
13456
  /**
13425
13457
  * The organisation property
13426
13458
  */
@@ -13588,6 +13620,10 @@ export interface GetWebhookListSchema_data extends AdditionalDataHolder, Parsabl
13588
13620
  * The createdAt property
13589
13621
  */
13590
13622
  createdAt?: string | null;
13623
+ /**
13624
+ * The description property
13625
+ */
13626
+ description?: string | null;
13591
13627
  /**
13592
13628
  * The eventTypes property
13593
13629
  */
@@ -13596,6 +13632,10 @@ export interface GetWebhookListSchema_data extends AdditionalDataHolder, Parsabl
13596
13632
  * The id property
13597
13633
  */
13598
13634
  id?: string | null;
13635
+ /**
13636
+ * The name property
13637
+ */
13638
+ name?: string | null;
13599
13639
  /**
13600
13640
  * The organisation property
13601
13641
  */
@@ -17787,7 +17827,7 @@ export interface UpdateSubscriptionItemsRequestSchema_itemsMember2 extends Parsa
17787
17827
  */
17788
17828
  grantee?: string | null;
17789
17829
  /**
17790
- * Per-line-item quantity overrides, keyed by line item ID.
17830
+ * Per-line-item quantity overrides, keyed by line item slug. (Deprecated: line item IDs are also accepted for existing integrations; new integrations should use slugs.)
17791
17831
  */
17792
17832
  metadata?: UpdateSubscriptionItemsRequestSchema_itemsMember2_metadata | null;
17793
17833
  /**
@@ -17796,7 +17836,7 @@ export interface UpdateSubscriptionItemsRequestSchema_itemsMember2 extends Parsa
17796
17836
  planId?: string | null;
17797
17837
  }
17798
17838
  /**
17799
- * Per-line-item quantity overrides, keyed by line item ID.
17839
+ * Per-line-item quantity overrides, keyed by line item slug. (Deprecated: line item IDs are also accepted for existing integrations; new integrations should use slugs.)
17800
17840
  */
17801
17841
  export interface UpdateSubscriptionItemsRequestSchema_itemsMember2_metadata extends AdditionalDataHolder, Parsable {
17802
17842
  }
@@ -17806,7 +17846,7 @@ export interface UpdateSubscriptionItemsRequestSchema_itemsMember3 extends Parsa
17806
17846
  */
17807
17847
  action?: string | null;
17808
17848
  /**
17809
- * Per-line-item quantity overrides, keyed by line item ID.
17849
+ * Per-line-item quantity overrides, keyed by line item slug. (Deprecated: line item IDs are also accepted for existing integrations; new integrations should use slugs.)
17810
17850
  */
17811
17851
  metadata?: UpdateSubscriptionItemsRequestSchema_itemsMember3_metadata | null;
17812
17852
  /**
@@ -17819,7 +17859,7 @@ export interface UpdateSubscriptionItemsRequestSchema_itemsMember3 extends Parsa
17819
17859
  planId?: string | null;
17820
17860
  }
17821
17861
  /**
17822
- * Per-line-item quantity overrides, keyed by line item ID.
17862
+ * Per-line-item quantity overrides, keyed by line item slug. (Deprecated: line item IDs are also accepted for existing integrations; new integrations should use slugs.)
17823
17863
  */
17824
17864
  export interface UpdateSubscriptionItemsRequestSchema_itemsMember3_metadata extends AdditionalDataHolder, Parsable {
17825
17865
  }
@@ -17836,10 +17876,18 @@ export interface UpdateSubscriptionPlanLineItemSchema extends Parsable {
17836
17876
  }
17837
17877
  export type UpdateSubscriptionPlanLineItemSchema_proration = (typeof UpdateSubscriptionPlanLineItemSchema_prorationObject)[keyof typeof UpdateSubscriptionPlanLineItemSchema_prorationObject];
17838
17878
  export interface UpdateWebhookRequestSchema extends Parsable {
17879
+ /**
17880
+ * The description property
17881
+ */
17882
+ description?: string | null;
17839
17883
  /**
17840
17884
  * The events property
17841
17885
  */
17842
17886
  events?: UpdateWebhookRequestSchema_events[] | null;
17887
+ /**
17888
+ * The name property
17889
+ */
17890
+ name?: string | null;
17843
17891
  /**
17844
17892
  * The url property
17845
17893
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salable/sdk",
3
- "version": "1.0.39",
3
+ "version": "1.0.41",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.es.js",