@stigg/typescript 0.1.0-alpha.21 → 0.1.0-alpha.23

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 (112) hide show
  1. package/CHANGELOG.md +37 -0
  2. package/package.json +1 -1
  3. package/resources/v1/addons/addons.d.mts +493 -970
  4. package/resources/v1/addons/addons.d.mts.map +1 -1
  5. package/resources/v1/addons/addons.d.ts +493 -970
  6. package/resources/v1/addons/addons.d.ts.map +1 -1
  7. package/resources/v1/addons/addons.js +0 -6
  8. package/resources/v1/addons/addons.js.map +1 -1
  9. package/resources/v1/addons/addons.mjs +0 -6
  10. package/resources/v1/addons/addons.mjs.map +1 -1
  11. package/resources/v1/addons/entitlements.d.mts +28 -0
  12. package/resources/v1/addons/entitlements.d.mts.map +1 -1
  13. package/resources/v1/addons/entitlements.d.ts +28 -0
  14. package/resources/v1/addons/entitlements.d.ts.map +1 -1
  15. package/resources/v1/addons/index.d.mts +1 -1
  16. package/resources/v1/addons/index.d.mts.map +1 -1
  17. package/resources/v1/addons/index.d.ts +1 -1
  18. package/resources/v1/addons/index.d.ts.map +1 -1
  19. package/resources/v1/addons/index.js.map +1 -1
  20. package/resources/v1/addons/index.mjs.map +1 -1
  21. package/resources/v1/coupons.d.mts +3 -3
  22. package/resources/v1/coupons.d.ts +3 -3
  23. package/resources/v1/customers/customers.d.mts +935 -5
  24. package/resources/v1/customers/customers.d.mts.map +1 -1
  25. package/resources/v1/customers/customers.d.ts +935 -5
  26. package/resources/v1/customers/customers.d.ts.map +1 -1
  27. package/resources/v1/customers/customers.js +7 -0
  28. package/resources/v1/customers/customers.js.map +1 -1
  29. package/resources/v1/customers/customers.mjs +7 -0
  30. package/resources/v1/customers/customers.mjs.map +1 -1
  31. package/resources/v1/customers/index.d.mts +1 -1
  32. package/resources/v1/customers/index.d.mts.map +1 -1
  33. package/resources/v1/customers/index.d.ts +1 -1
  34. package/resources/v1/customers/index.d.ts.map +1 -1
  35. package/resources/v1/customers/index.js.map +1 -1
  36. package/resources/v1/customers/index.mjs.map +1 -1
  37. package/resources/v1/events/credits/credits.d.mts +1 -1
  38. package/resources/v1/events/credits/credits.d.mts.map +1 -1
  39. package/resources/v1/events/credits/credits.d.ts +1 -1
  40. package/resources/v1/events/credits/credits.d.ts.map +1 -1
  41. package/resources/v1/events/credits/credits.js.map +1 -1
  42. package/resources/v1/events/credits/credits.mjs.map +1 -1
  43. package/resources/v1/events/credits/grants.d.mts +1 -1
  44. package/resources/v1/events/credits/grants.d.ts +1 -1
  45. package/resources/v1/features.d.mts +9 -0
  46. package/resources/v1/features.d.mts.map +1 -1
  47. package/resources/v1/features.d.ts +9 -0
  48. package/resources/v1/features.d.ts.map +1 -1
  49. package/resources/v1/index.d.mts +3 -3
  50. package/resources/v1/index.d.mts.map +1 -1
  51. package/resources/v1/index.d.ts +3 -3
  52. package/resources/v1/index.d.ts.map +1 -1
  53. package/resources/v1/index.js.map +1 -1
  54. package/resources/v1/index.mjs.map +1 -1
  55. package/resources/v1/plans/entitlements.d.mts +28 -0
  56. package/resources/v1/plans/entitlements.d.mts.map +1 -1
  57. package/resources/v1/plans/entitlements.d.ts +28 -0
  58. package/resources/v1/plans/entitlements.d.ts.map +1 -1
  59. package/resources/v1/plans/index.d.mts +1 -1
  60. package/resources/v1/plans/index.d.mts.map +1 -1
  61. package/resources/v1/plans/index.d.ts +1 -1
  62. package/resources/v1/plans/index.d.ts.map +1 -1
  63. package/resources/v1/plans/index.js.map +1 -1
  64. package/resources/v1/plans/index.mjs.map +1 -1
  65. package/resources/v1/plans/plans.d.mts +392 -391
  66. package/resources/v1/plans/plans.d.mts.map +1 -1
  67. package/resources/v1/plans/plans.d.ts +392 -391
  68. package/resources/v1/plans/plans.d.ts.map +1 -1
  69. package/resources/v1/plans/plans.js +0 -7
  70. package/resources/v1/plans/plans.js.map +1 -1
  71. package/resources/v1/plans/plans.mjs +0 -7
  72. package/resources/v1/plans/plans.mjs.map +1 -1
  73. package/resources/v1/products.d.mts +9 -5
  74. package/resources/v1/products.d.mts.map +1 -1
  75. package/resources/v1/products.d.ts +9 -5
  76. package/resources/v1/products.d.ts.map +1 -1
  77. package/resources/v1/subscriptions/subscriptions.d.mts +31 -21
  78. package/resources/v1/subscriptions/subscriptions.d.mts.map +1 -1
  79. package/resources/v1/subscriptions/subscriptions.d.ts +31 -21
  80. package/resources/v1/subscriptions/subscriptions.d.ts.map +1 -1
  81. package/resources/v1/subscriptions/subscriptions.js.map +1 -1
  82. package/resources/v1/subscriptions/subscriptions.mjs.map +1 -1
  83. package/resources/v1/usage.d.mts +1 -1
  84. package/resources/v1/usage.d.ts +1 -1
  85. package/resources/v1/v1.d.mts +6 -6
  86. package/resources/v1/v1.d.mts.map +1 -1
  87. package/resources/v1/v1.d.ts +6 -6
  88. package/resources/v1/v1.d.ts.map +1 -1
  89. package/resources/v1/v1.js.map +1 -1
  90. package/resources/v1/v1.mjs.map +1 -1
  91. package/src/resources/v1/addons/addons.ts +1111 -2508
  92. package/src/resources/v1/addons/entitlements.ts +33 -0
  93. package/src/resources/v1/addons/index.ts +0 -3
  94. package/src/resources/v1/coupons.ts +3 -3
  95. package/src/resources/v1/customers/customers.ts +2064 -4
  96. package/src/resources/v1/customers/index.ts +2 -0
  97. package/src/resources/v1/events/credits/credits.ts +3 -1
  98. package/src/resources/v1/events/credits/grants.ts +1 -1
  99. package/src/resources/v1/features.ts +9 -0
  100. package/src/resources/v1/index.ts +2 -4
  101. package/src/resources/v1/plans/entitlements.ts +33 -0
  102. package/src/resources/v1/plans/index.ts +0 -1
  103. package/src/resources/v1/plans/plans.ts +924 -930
  104. package/src/resources/v1/products.ts +9 -5
  105. package/src/resources/v1/subscriptions/subscriptions.ts +28 -22
  106. package/src/resources/v1/usage.ts +1 -1
  107. package/src/resources/v1/v1.ts +4 -8
  108. package/src/version.ts +1 -1
  109. package/version.d.mts +1 -1
  110. package/version.d.ts +1 -1
  111. package/version.js +1 -1
  112. package/version.mjs +1 -1
@@ -262,14 +262,14 @@ export interface ProductCreateProductParams {
262
262
  id: string;
263
263
 
264
264
  /**
265
- * Description of the product
265
+ * Display name of the product
266
266
  */
267
- description?: string | null;
267
+ displayName: string;
268
268
 
269
269
  /**
270
- * Display name of the product
270
+ * Description of the product
271
271
  */
272
- displayName?: string;
272
+ description?: string | null;
273
273
 
274
274
  /**
275
275
  * Additional metadata for the product
@@ -286,7 +286,7 @@ export interface ProductDuplicateProductParams {
286
286
  /**
287
287
  * The unique identifier for the entity
288
288
  */
289
- id: string;
289
+ targetId: string;
290
290
 
291
291
  /**
292
292
  * Description of the product
@@ -394,6 +394,10 @@ export namespace ProductUpdateProductParams {
394
394
  */
395
395
  downgradePlanId?: string | null;
396
396
 
397
+ /**
398
+ * Indicates if the subscription should be prorated at the end of the billing
399
+ * period
400
+ */
397
401
  prorateAtEndOfBillingPeriod?: boolean | null;
398
402
 
399
403
  /**
@@ -898,7 +898,7 @@ export namespace Subscription {
898
898
  amount: number;
899
899
 
900
900
  /**
901
- * The price currency
901
+ * ISO 4217 currency code
902
902
  */
903
903
  currency:
904
904
  | 'usd'
@@ -1029,7 +1029,7 @@ export namespace Subscription {
1029
1029
  amount: number;
1030
1030
 
1031
1031
  /**
1032
- * The price currency
1032
+ * ISO 4217 currency code
1033
1033
  */
1034
1034
  currency:
1035
1035
  | 'usd'
@@ -1954,7 +1954,7 @@ export namespace SubscriptionListResponse {
1954
1954
  amount: number;
1955
1955
 
1956
1956
  /**
1957
- * The price currency
1957
+ * ISO 4217 currency code
1958
1958
  */
1959
1959
  currency:
1960
1960
  | 'usd'
@@ -2085,7 +2085,7 @@ export namespace SubscriptionListResponse {
2085
2085
  amount: number;
2086
2086
 
2087
2087
  /**
2088
- * The price currency
2088
+ * ISO 4217 currency code
2089
2089
  */
2090
2090
  currency:
2091
2091
  | 'usd'
@@ -2715,6 +2715,11 @@ export namespace SubscriptionProvisionResponse {
2715
2715
 
2716
2716
  export namespace UnionObjectVariant0 {
2717
2717
  export interface Feature {
2718
+ /**
2719
+ * The unique reference ID of the entitlement.
2720
+ */
2721
+ id: string;
2722
+
2718
2723
  /**
2719
2724
  * The human-readable name of the entitlement, shown in UI elements.
2720
2725
  */
@@ -2729,11 +2734,6 @@ export namespace SubscriptionProvisionResponse {
2729
2734
  * The type of feature associated with the entitlement.
2730
2735
  */
2731
2736
  featureType: 'BOOLEAN' | 'NUMBER' | 'ENUM';
2732
-
2733
- /**
2734
- * The unique reference ID of the entitlement.
2735
- */
2736
- refId: string;
2737
2737
  }
2738
2738
  }
2739
2739
 
@@ -2805,14 +2805,14 @@ export namespace SubscriptionProvisionResponse {
2805
2805
  displayName: string;
2806
2806
 
2807
2807
  /**
2808
- * Additional metadata associated with the currency.
2808
+ * A description of the currency.
2809
2809
  */
2810
- additionalMetaData?: unknown;
2810
+ description?: string | null;
2811
2811
 
2812
2812
  /**
2813
- * A description of the currency.
2813
+ * Additional metadata associated with the currency.
2814
2814
  */
2815
- description?: string | null;
2815
+ metadata?: { [key: string]: string } | null;
2816
2816
 
2817
2817
  /**
2818
2818
  * The plural form of the currency unit.
@@ -3601,7 +3601,7 @@ export namespace SubscriptionProvisionResponse {
3601
3601
  amount: number;
3602
3602
 
3603
3603
  /**
3604
- * The price currency
3604
+ * ISO 4217 currency code
3605
3605
  */
3606
3606
  currency:
3607
3607
  | 'usd'
@@ -3732,7 +3732,7 @@ export namespace SubscriptionProvisionResponse {
3732
3732
  amount: number;
3733
3733
 
3734
3734
  /**
3735
- * The price currency
3735
+ * ISO 4217 currency code
3736
3736
  */
3737
3737
  currency:
3738
3738
  | 'usd'
@@ -3945,6 +3945,9 @@ export namespace SubscriptionUpdateParams {
3945
3945
 
3946
3946
  configuration?: AppliedCoupon.Configuration;
3947
3947
 
3948
+ /**
3949
+ * Stigg coupon ID
3950
+ */
3948
3951
  couponId?: string;
3949
3952
 
3950
3953
  discount?: AppliedCoupon.Discount;
@@ -3983,7 +3986,7 @@ export namespace SubscriptionUpdateParams {
3983
3986
  amount: number;
3984
3987
 
3985
3988
  /**
3986
- * The price currency
3989
+ * ISO 4217 currency code
3987
3990
  */
3988
3991
  currency:
3989
3992
  | 'usd'
@@ -4127,7 +4130,7 @@ export namespace SubscriptionUpdateParams {
4127
4130
  /**
4128
4131
  * Additional metadata for the subscription
4129
4132
  */
4130
- metadata?: { [key: string]: unknown };
4133
+ metadata?: { [key: string]: string };
4131
4134
 
4132
4135
  prorationBehavior?: 'INVOICE_IMMEDIATELY' | 'CREATE_PRORATIONS' | 'NONE';
4133
4136
 
@@ -4976,7 +4979,7 @@ export namespace SubscriptionPreviewParams {
4976
4979
  amount: number;
4977
4980
 
4978
4981
  /**
4979
- * The price currency
4982
+ * ISO 4217 currency code
4980
4983
  */
4981
4984
  currency:
4982
4985
  | 'usd'
@@ -5151,7 +5154,7 @@ export namespace SubscriptionPreviewParams {
5151
5154
  /**
5152
5155
  * Additional billing metadata
5153
5156
  */
5154
- metadata?: unknown;
5157
+ metadata?: { [key: string]: string };
5155
5158
 
5156
5159
  /**
5157
5160
  * Proration behavior
@@ -5455,7 +5458,7 @@ export namespace SubscriptionProvisionParams {
5455
5458
  amount: number;
5456
5459
 
5457
5460
  /**
5458
- * The price currency
5461
+ * ISO 4217 currency code
5459
5462
  */
5460
5463
  currency:
5461
5464
  | 'usd'
@@ -5653,6 +5656,9 @@ export namespace SubscriptionProvisionParams {
5653
5656
  state?: string;
5654
5657
  }
5655
5658
 
5659
+ /**
5660
+ * Tax identifier with type and value for customer tax exemptions.
5661
+ */
5656
5662
  export interface TaxID {
5657
5663
  /**
5658
5664
  * The type of tax exemption identifier, such as VAT.
@@ -6192,7 +6198,7 @@ export namespace SubscriptionProvisionParams {
6192
6198
  amount: number;
6193
6199
 
6194
6200
  /**
6195
- * The price currency
6201
+ * ISO 4217 currency code
6196
6202
  */
6197
6203
  currency:
6198
6204
  | 'usd'
@@ -6323,7 +6329,7 @@ export namespace SubscriptionProvisionParams {
6323
6329
  amount: number;
6324
6330
 
6325
6331
  /**
6326
- * The price currency
6332
+ * ISO 4217 currency code
6327
6333
  */
6328
6334
  currency:
6329
6335
  | 'usd'
@@ -218,7 +218,7 @@ export interface UsageHistoryParams {
218
218
  endDate?: string;
219
219
 
220
220
  /**
221
- * Query param
221
+ * Query param: Criteria by which to group the usage history
222
222
  */
223
223
  groupBy?: string;
224
224
 
@@ -50,11 +50,8 @@ import {
50
50
  AddonPublishParams,
51
51
  AddonPublishResponse,
52
52
  AddonRemoveDraftResponse,
53
- AddonSetPricingParams,
54
53
  AddonUpdateParams,
55
54
  Addons,
56
- SetPackagePricing,
57
- SetPackagePricingResponse,
58
55
  } from './addons/addons';
59
56
  import * as CustomersAPI from './customers/customers';
60
57
  import {
@@ -68,6 +65,8 @@ import {
68
65
  CustomerListResponsesMyCursorIDPage,
69
66
  CustomerProvisionParams,
70
67
  CustomerResponse,
68
+ CustomerRetrieveEntitlementsParams,
69
+ CustomerRetrieveEntitlementsResponse,
71
70
  CustomerUpdateParams,
72
71
  Customers,
73
72
  } from './customers/customers';
@@ -83,7 +82,6 @@ import {
83
82
  PlanPublishParams,
84
83
  PlanPublishResponse,
85
84
  PlanRemoveDraftResponse,
86
- PlanSetPricingParams,
87
85
  PlanUpdateParams,
88
86
  Plans,
89
87
  } from './plans/plans';
@@ -136,6 +134,7 @@ export declare namespace V1 {
136
134
  type CustomerListResponse as CustomerListResponse,
137
135
  type CustomerImportResponse as CustomerImportResponse,
138
136
  type CustomerListResourcesResponse as CustomerListResourcesResponse,
137
+ type CustomerRetrieveEntitlementsResponse as CustomerRetrieveEntitlementsResponse,
139
138
  type CustomerListResponsesMyCursorIDPage as CustomerListResponsesMyCursorIDPage,
140
139
  type CustomerListResourcesResponsesMyCursorIDPage as CustomerListResourcesResponsesMyCursorIDPage,
141
140
  type CustomerUpdateParams as CustomerUpdateParams,
@@ -143,6 +142,7 @@ export declare namespace V1 {
143
142
  type CustomerImportParams as CustomerImportParams,
144
143
  type CustomerListResourcesParams as CustomerListResourcesParams,
145
144
  type CustomerProvisionParams as CustomerProvisionParams,
145
+ type CustomerRetrieveEntitlementsParams as CustomerRetrieveEntitlementsParams,
146
146
  };
147
147
 
148
148
  export {
@@ -193,8 +193,6 @@ export declare namespace V1 {
193
193
  export {
194
194
  Addons as Addons,
195
195
  type Addon as Addon,
196
- type SetPackagePricing as SetPackagePricing,
197
- type SetPackagePricingResponse as SetPackagePricingResponse,
198
196
  type AddonListResponse as AddonListResponse,
199
197
  type AddonPublishResponse as AddonPublishResponse,
200
198
  type AddonRemoveDraftResponse as AddonRemoveDraftResponse,
@@ -203,7 +201,6 @@ export declare namespace V1 {
203
201
  type AddonUpdateParams as AddonUpdateParams,
204
202
  type AddonListParams as AddonListParams,
205
203
  type AddonPublishParams as AddonPublishParams,
206
- type AddonSetPricingParams as AddonSetPricingParams,
207
204
  };
208
205
 
209
206
  export {
@@ -217,7 +214,6 @@ export declare namespace V1 {
217
214
  type PlanUpdateParams as PlanUpdateParams,
218
215
  type PlanListParams as PlanListParams,
219
216
  type PlanPublishParams as PlanPublishParams,
220
- type PlanSetPricingParams as PlanSetPricingParams,
221
217
  };
222
218
 
223
219
  export {
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.1.0-alpha.21'; // x-release-please-version
1
+ export const VERSION = '0.1.0-alpha.23'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.1.0-alpha.21";
1
+ export declare const VERSION = "0.1.0-alpha.23";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.1.0-alpha.21";
1
+ export declare const VERSION = "0.1.0-alpha.23";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '0.1.0-alpha.21'; // x-release-please-version
4
+ exports.VERSION = '0.1.0-alpha.23'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.1.0-alpha.21'; // x-release-please-version
1
+ export const VERSION = '0.1.0-alpha.23'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map