@stigg/typescript 0.1.0-alpha.22 → 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 (106) hide show
  1. package/CHANGELOG.md +21 -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/customers/customers.d.mts +155 -5
  22. package/resources/v1/customers/customers.d.mts.map +1 -1
  23. package/resources/v1/customers/customers.d.ts +155 -5
  24. package/resources/v1/customers/customers.d.ts.map +1 -1
  25. package/resources/v1/customers/customers.js +7 -0
  26. package/resources/v1/customers/customers.js.map +1 -1
  27. package/resources/v1/customers/customers.mjs +7 -0
  28. package/resources/v1/customers/customers.mjs.map +1 -1
  29. package/resources/v1/customers/index.d.mts +1 -1
  30. package/resources/v1/customers/index.d.mts.map +1 -1
  31. package/resources/v1/customers/index.d.ts +1 -1
  32. package/resources/v1/customers/index.d.ts.map +1 -1
  33. package/resources/v1/customers/index.js.map +1 -1
  34. package/resources/v1/customers/index.mjs.map +1 -1
  35. package/resources/v1/events/credits/credits.d.mts +1 -1
  36. package/resources/v1/events/credits/credits.d.mts.map +1 -1
  37. package/resources/v1/events/credits/credits.d.ts +1 -1
  38. package/resources/v1/events/credits/credits.d.ts.map +1 -1
  39. package/resources/v1/events/credits/credits.js.map +1 -1
  40. package/resources/v1/events/credits/credits.mjs.map +1 -1
  41. package/resources/v1/features.d.mts +9 -0
  42. package/resources/v1/features.d.mts.map +1 -1
  43. package/resources/v1/features.d.ts +9 -0
  44. package/resources/v1/features.d.ts.map +1 -1
  45. package/resources/v1/index.d.mts +3 -3
  46. package/resources/v1/index.d.mts.map +1 -1
  47. package/resources/v1/index.d.ts +3 -3
  48. package/resources/v1/index.d.ts.map +1 -1
  49. package/resources/v1/index.js.map +1 -1
  50. package/resources/v1/index.mjs.map +1 -1
  51. package/resources/v1/plans/entitlements.d.mts +28 -0
  52. package/resources/v1/plans/entitlements.d.mts.map +1 -1
  53. package/resources/v1/plans/entitlements.d.ts +28 -0
  54. package/resources/v1/plans/entitlements.d.ts.map +1 -1
  55. package/resources/v1/plans/index.d.mts +1 -1
  56. package/resources/v1/plans/index.d.mts.map +1 -1
  57. package/resources/v1/plans/index.d.ts +1 -1
  58. package/resources/v1/plans/index.d.ts.map +1 -1
  59. package/resources/v1/plans/index.js.map +1 -1
  60. package/resources/v1/plans/index.mjs.map +1 -1
  61. package/resources/v1/plans/plans.d.mts +392 -391
  62. package/resources/v1/plans/plans.d.mts.map +1 -1
  63. package/resources/v1/plans/plans.d.ts +392 -391
  64. package/resources/v1/plans/plans.d.ts.map +1 -1
  65. package/resources/v1/plans/plans.js +0 -7
  66. package/resources/v1/plans/plans.js.map +1 -1
  67. package/resources/v1/plans/plans.mjs +0 -7
  68. package/resources/v1/plans/plans.mjs.map +1 -1
  69. package/resources/v1/products.d.mts +5 -1
  70. package/resources/v1/products.d.mts.map +1 -1
  71. package/resources/v1/products.d.ts +5 -1
  72. package/resources/v1/products.d.ts.map +1 -1
  73. package/resources/v1/subscriptions/subscriptions.d.mts +17 -10
  74. package/resources/v1/subscriptions/subscriptions.d.mts.map +1 -1
  75. package/resources/v1/subscriptions/subscriptions.d.ts +17 -10
  76. package/resources/v1/subscriptions/subscriptions.d.ts.map +1 -1
  77. package/resources/v1/subscriptions/subscriptions.js.map +1 -1
  78. package/resources/v1/subscriptions/subscriptions.mjs.map +1 -1
  79. package/resources/v1/usage.d.mts +1 -1
  80. package/resources/v1/usage.d.ts +1 -1
  81. package/resources/v1/v1.d.mts +6 -6
  82. package/resources/v1/v1.d.mts.map +1 -1
  83. package/resources/v1/v1.d.ts +6 -6
  84. package/resources/v1/v1.d.ts.map +1 -1
  85. package/resources/v1/v1.js.map +1 -1
  86. package/resources/v1/v1.mjs.map +1 -1
  87. package/src/resources/v1/addons/addons.ts +1111 -2508
  88. package/src/resources/v1/addons/entitlements.ts +33 -0
  89. package/src/resources/v1/addons/index.ts +0 -3
  90. package/src/resources/v1/customers/customers.ts +228 -4
  91. package/src/resources/v1/customers/index.ts +2 -0
  92. package/src/resources/v1/events/credits/credits.ts +3 -1
  93. package/src/resources/v1/features.ts +9 -0
  94. package/src/resources/v1/index.ts +2 -4
  95. package/src/resources/v1/plans/entitlements.ts +33 -0
  96. package/src/resources/v1/plans/index.ts +0 -1
  97. package/src/resources/v1/plans/plans.ts +924 -930
  98. package/src/resources/v1/products.ts +5 -1
  99. package/src/resources/v1/subscriptions/subscriptions.ts +14 -11
  100. package/src/resources/v1/usage.ts +1 -1
  101. package/src/resources/v1/v1.ts +4 -8
  102. package/src/version.ts +1 -1
  103. package/version.d.mts +1 -1
  104. package/version.d.ts +1 -1
  105. package/version.js +1 -1
  106. package/version.mjs +1 -1
@@ -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
  /**
@@ -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.
@@ -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;
@@ -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
 
@@ -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
@@ -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.22'; // 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.22";
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.22";
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.22'; // 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.22'; // x-release-please-version
1
+ export const VERSION = '0.1.0-alpha.23'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map