@stigg/typescript 0.1.0-alpha.4 → 0.1.0-alpha.7

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 (177) hide show
  1. package/CHANGELOG.md +53 -0
  2. package/README.md +9 -0
  3. package/client.d.mts +4 -6
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +4 -6
  6. package/client.d.ts.map +1 -1
  7. package/client.js +16 -21
  8. package/client.js.map +1 -1
  9. package/client.mjs +16 -21
  10. package/client.mjs.map +1 -1
  11. package/internal/parse.d.mts.map +1 -1
  12. package/internal/parse.d.ts.map +1 -1
  13. package/internal/parse.js +5 -0
  14. package/internal/parse.js.map +1 -1
  15. package/internal/parse.mjs +5 -0
  16. package/internal/parse.mjs.map +1 -1
  17. package/internal/qs/formats.d.mts +7 -0
  18. package/internal/qs/formats.d.mts.map +1 -0
  19. package/internal/qs/formats.d.ts +7 -0
  20. package/internal/qs/formats.d.ts.map +1 -0
  21. package/internal/qs/formats.js +13 -0
  22. package/internal/qs/formats.js.map +1 -0
  23. package/internal/qs/formats.mjs +9 -0
  24. package/internal/qs/formats.mjs.map +1 -0
  25. package/internal/qs/index.d.mts +10 -0
  26. package/internal/qs/index.d.mts.map +1 -0
  27. package/internal/qs/index.d.ts +10 -0
  28. package/internal/qs/index.d.ts.map +1 -0
  29. package/internal/qs/index.js +14 -0
  30. package/internal/qs/index.js.map +1 -0
  31. package/internal/qs/index.mjs +10 -0
  32. package/internal/qs/index.mjs.map +1 -0
  33. package/internal/qs/stringify.d.mts +3 -0
  34. package/internal/qs/stringify.d.mts.map +1 -0
  35. package/internal/qs/stringify.d.ts +3 -0
  36. package/internal/qs/stringify.d.ts.map +1 -0
  37. package/internal/qs/stringify.js +277 -0
  38. package/internal/qs/stringify.js.map +1 -0
  39. package/internal/qs/stringify.mjs +274 -0
  40. package/internal/qs/stringify.mjs.map +1 -0
  41. package/internal/qs/types.d.mts +57 -0
  42. package/internal/qs/types.d.mts.map +1 -0
  43. package/internal/qs/types.d.ts +57 -0
  44. package/internal/qs/types.d.ts.map +1 -0
  45. package/internal/qs/types.js +3 -0
  46. package/internal/qs/types.js.map +1 -0
  47. package/internal/qs/types.mjs +2 -0
  48. package/internal/qs/types.mjs.map +1 -0
  49. package/internal/qs/utils.d.mts +15 -0
  50. package/internal/qs/utils.d.mts.map +1 -0
  51. package/internal/qs/utils.d.ts +15 -0
  52. package/internal/qs/utils.d.ts.map +1 -0
  53. package/internal/qs/utils.js +230 -0
  54. package/internal/qs/utils.js.map +1 -0
  55. package/internal/qs/utils.mjs +217 -0
  56. package/internal/qs/utils.mjs.map +1 -0
  57. package/package.json +1 -1
  58. package/resources/v1/coupons.d.mts +49 -7
  59. package/resources/v1/coupons.d.mts.map +1 -1
  60. package/resources/v1/coupons.d.ts +49 -7
  61. package/resources/v1/coupons.d.ts.map +1 -1
  62. package/resources/v1/coupons.js +4 -3
  63. package/resources/v1/coupons.js.map +1 -1
  64. package/resources/v1/coupons.mjs +4 -3
  65. package/resources/v1/coupons.mjs.map +1 -1
  66. package/resources/v1/customers/customers.d.mts +72 -8
  67. package/resources/v1/customers/customers.d.mts.map +1 -1
  68. package/resources/v1/customers/customers.d.ts +72 -8
  69. package/resources/v1/customers/customers.d.ts.map +1 -1
  70. package/resources/v1/customers/customers.js +18 -7
  71. package/resources/v1/customers/customers.js.map +1 -1
  72. package/resources/v1/customers/customers.mjs +18 -7
  73. package/resources/v1/customers/customers.mjs.map +1 -1
  74. package/resources/v1/customers/index.d.mts +1 -1
  75. package/resources/v1/customers/index.d.mts.map +1 -1
  76. package/resources/v1/customers/index.d.ts +1 -1
  77. package/resources/v1/customers/index.d.ts.map +1 -1
  78. package/resources/v1/customers/index.js.map +1 -1
  79. package/resources/v1/customers/index.mjs.map +1 -1
  80. package/resources/v1/customers/payment-method.d.mts +4 -2
  81. package/resources/v1/customers/payment-method.d.mts.map +1 -1
  82. package/resources/v1/customers/payment-method.d.ts +4 -2
  83. package/resources/v1/customers/payment-method.d.ts.map +1 -1
  84. package/resources/v1/customers/payment-method.js +4 -2
  85. package/resources/v1/customers/payment-method.js.map +1 -1
  86. package/resources/v1/customers/payment-method.mjs +4 -2
  87. package/resources/v1/customers/payment-method.mjs.map +1 -1
  88. package/resources/v1/customers/promotional-entitlements.d.mts +4 -2
  89. package/resources/v1/customers/promotional-entitlements.d.mts.map +1 -1
  90. package/resources/v1/customers/promotional-entitlements.d.ts +4 -2
  91. package/resources/v1/customers/promotional-entitlements.d.ts.map +1 -1
  92. package/resources/v1/customers/promotional-entitlements.js +4 -2
  93. package/resources/v1/customers/promotional-entitlements.js.map +1 -1
  94. package/resources/v1/customers/promotional-entitlements.mjs +4 -2
  95. package/resources/v1/customers/promotional-entitlements.mjs.map +1 -1
  96. package/resources/v1/events.d.mts +2 -1
  97. package/resources/v1/events.d.mts.map +1 -1
  98. package/resources/v1/events.d.ts +2 -1
  99. package/resources/v1/events.d.ts.map +1 -1
  100. package/resources/v1/events.js +2 -1
  101. package/resources/v1/events.js.map +1 -1
  102. package/resources/v1/events.mjs +2 -1
  103. package/resources/v1/events.mjs.map +1 -1
  104. package/resources/v1/index.d.mts +2 -1
  105. package/resources/v1/index.d.mts.map +1 -1
  106. package/resources/v1/index.d.ts +2 -1
  107. package/resources/v1/index.d.ts.map +1 -1
  108. package/resources/v1/index.js +3 -1
  109. package/resources/v1/index.js.map +1 -1
  110. package/resources/v1/index.mjs +1 -0
  111. package/resources/v1/index.mjs.map +1 -1
  112. package/resources/v1/products.d.mts +126 -0
  113. package/resources/v1/products.d.mts.map +1 -0
  114. package/resources/v1/products.d.ts +126 -0
  115. package/resources/v1/products.d.ts.map +1 -0
  116. package/resources/v1/products.js +19 -0
  117. package/resources/v1/products.js.map +1 -0
  118. package/resources/v1/products.mjs +15 -0
  119. package/resources/v1/products.mjs.map +1 -0
  120. package/resources/v1/subscriptions/future-update.d.mts +3 -2
  121. package/resources/v1/subscriptions/future-update.d.mts.map +1 -1
  122. package/resources/v1/subscriptions/future-update.d.ts +3 -2
  123. package/resources/v1/subscriptions/future-update.d.ts.map +1 -1
  124. package/resources/v1/subscriptions/future-update.js +3 -2
  125. package/resources/v1/subscriptions/future-update.js.map +1 -1
  126. package/resources/v1/subscriptions/future-update.mjs +3 -2
  127. package/resources/v1/subscriptions/future-update.mjs.map +1 -1
  128. package/resources/v1/subscriptions/subscriptions.d.mts +158 -34
  129. package/resources/v1/subscriptions/subscriptions.d.mts.map +1 -1
  130. package/resources/v1/subscriptions/subscriptions.d.ts +158 -34
  131. package/resources/v1/subscriptions/subscriptions.d.ts.map +1 -1
  132. package/resources/v1/subscriptions/subscriptions.js +20 -10
  133. package/resources/v1/subscriptions/subscriptions.js.map +1 -1
  134. package/resources/v1/subscriptions/subscriptions.mjs +20 -10
  135. package/resources/v1/subscriptions/subscriptions.mjs.map +1 -1
  136. package/resources/v1/usage.d.mts +3 -2
  137. package/resources/v1/usage.d.mts.map +1 -1
  138. package/resources/v1/usage.d.ts +3 -2
  139. package/resources/v1/usage.d.ts.map +1 -1
  140. package/resources/v1/usage.js +3 -2
  141. package/resources/v1/usage.js.map +1 -1
  142. package/resources/v1/usage.mjs +3 -2
  143. package/resources/v1/usage.mjs.map +1 -1
  144. package/resources/v1/v1.d.mts +6 -2
  145. package/resources/v1/v1.d.mts.map +1 -1
  146. package/resources/v1/v1.d.ts +6 -2
  147. package/resources/v1/v1.d.ts.map +1 -1
  148. package/resources/v1/v1.js +4 -0
  149. package/resources/v1/v1.js.map +1 -1
  150. package/resources/v1/v1.mjs +4 -0
  151. package/resources/v1/v1.mjs.map +1 -1
  152. package/src/client.ts +23 -26
  153. package/src/internal/parse.ts +6 -0
  154. package/src/internal/qs/LICENSE.md +13 -0
  155. package/src/internal/qs/README.md +3 -0
  156. package/src/internal/qs/formats.ts +10 -0
  157. package/src/internal/qs/index.ts +13 -0
  158. package/src/internal/qs/stringify.ts +385 -0
  159. package/src/internal/qs/types.ts +71 -0
  160. package/src/internal/qs/utils.ts +265 -0
  161. package/src/resources/v1/coupons.ts +57 -9
  162. package/src/resources/v1/customers/customers.ts +97 -8
  163. package/src/resources/v1/customers/index.ts +3 -0
  164. package/src/resources/v1/customers/payment-method.ts +4 -2
  165. package/src/resources/v1/customers/promotional-entitlements.ts +4 -2
  166. package/src/resources/v1/events.ts +2 -1
  167. package/src/resources/v1/index.ts +9 -0
  168. package/src/resources/v1/products.ts +162 -0
  169. package/src/resources/v1/subscriptions/future-update.ts +3 -2
  170. package/src/resources/v1/subscriptions/subscriptions.ts +218 -36
  171. package/src/resources/v1/usage.ts +3 -2
  172. package/src/resources/v1/v1.ts +22 -0
  173. package/src/version.ts +1 -1
  174. package/version.d.mts +1 -1
  175. package/version.d.ts +1 -1
  176. package/version.js +1 -1
  177. package/version.mjs +1 -1
@@ -0,0 +1,126 @@
1
+ import { APIResource } from "../../core/resource.mjs";
2
+ import { MyCursorIDPage, type MyCursorIDPageParams, PagePromise } from "../../core/pagination.mjs";
3
+ import { RequestOptions } from "../../internal/request-options.mjs";
4
+ export declare class Products extends APIResource {
5
+ /**
6
+ * Retrieves a paginated list of products in the environment.
7
+ */
8
+ listProducts(query?: ProductListProductsParams | null | undefined, options?: RequestOptions): PagePromise<ProductListProductsResponsesMyCursorIDPage, ProductListProductsResponse>;
9
+ }
10
+ export type ProductListProductsResponsesMyCursorIDPage = MyCursorIDPage<ProductListProductsResponse>;
11
+ /**
12
+ * Product configuration object
13
+ */
14
+ export interface ProductListProductsResponse {
15
+ /**
16
+ * The unique identifier for the entity
17
+ */
18
+ id: string;
19
+ /**
20
+ * Timestamp of when the record was created
21
+ */
22
+ createdAt: string;
23
+ /**
24
+ * Description of the product
25
+ */
26
+ description: string | null;
27
+ /**
28
+ * Display name of the product
29
+ */
30
+ displayName: string;
31
+ /**
32
+ * Metadata associated with the entity
33
+ */
34
+ metadata: {
35
+ [key: string]: string;
36
+ };
37
+ /**
38
+ * Indicates if multiple subscriptions to this product are allowed
39
+ */
40
+ multipleSubscriptions: boolean;
41
+ /**
42
+ * The status of the product
43
+ */
44
+ status: 'PUBLISHED' | 'ARCHIVED';
45
+ /**
46
+ * Timestamp of when the record was last updated
47
+ */
48
+ updatedAt: string;
49
+ /**
50
+ * Product behavior settings for subscription lifecycle management.
51
+ */
52
+ productSettings?: ProductListProductsResponse.ProductSettings;
53
+ }
54
+ export declare namespace ProductListProductsResponse {
55
+ /**
56
+ * Product behavior settings for subscription lifecycle management.
57
+ */
58
+ interface ProductSettings {
59
+ /**
60
+ * Time when the subscription will be cancelled
61
+ */
62
+ subscriptionCancellationTime: 'END_OF_BILLING_PERIOD' | 'IMMEDIATE' | 'SPECIFIC_DATE';
63
+ /**
64
+ * Setup for the end of the subscription
65
+ */
66
+ subscriptionEndSetup: 'DOWNGRADE_TO_FREE' | 'CANCEL_SUBSCRIPTION';
67
+ /**
68
+ * Setup for the start of the subscription
69
+ */
70
+ subscriptionStartSetup: 'PLAN_SELECTION' | 'TRIAL_PERIOD' | 'FREE_PLAN';
71
+ /**
72
+ * ID of the plan to downgrade to at the end of the billing period
73
+ */
74
+ downgradePlanId?: string | null;
75
+ /**
76
+ * Indicates if the subscription should be prorated at the end of the billing
77
+ * period
78
+ */
79
+ prorateAtEndOfBillingPeriod?: boolean | null;
80
+ /**
81
+ * ID of the plan to start the subscription with
82
+ */
83
+ subscriptionStartPlanId?: string | null;
84
+ }
85
+ }
86
+ export interface ProductListProductsParams extends MyCursorIDPageParams {
87
+ /**
88
+ * Filter by entity ID
89
+ */
90
+ id?: string;
91
+ /**
92
+ * Filter by creation date using range operators: gt, gte, lt, lte
93
+ */
94
+ createdAt?: ProductListProductsParams.CreatedAt;
95
+ /**
96
+ * Filter by product status. Supports comma-separated values for multiple statuses
97
+ */
98
+ status?: string;
99
+ }
100
+ export declare namespace ProductListProductsParams {
101
+ /**
102
+ * Filter by creation date using range operators: gt, gte, lt, lte
103
+ */
104
+ interface CreatedAt {
105
+ /**
106
+ * Greater than the specified createdAt value
107
+ */
108
+ gt?: string;
109
+ /**
110
+ * Greater than or equal to the specified createdAt value
111
+ */
112
+ gte?: string;
113
+ /**
114
+ * Less than the specified createdAt value
115
+ */
116
+ lt?: string;
117
+ /**
118
+ * Less than or equal to the specified createdAt value
119
+ */
120
+ lte?: string;
121
+ }
122
+ }
123
+ export declare namespace Products {
124
+ export { type ProductListProductsResponse as ProductListProductsResponse, type ProductListProductsResponsesMyCursorIDPage as ProductListProductsResponsesMyCursorIDPage, type ProductListProductsParams as ProductListProductsParams, };
125
+ }
126
+ //# sourceMappingURL=products.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"products.d.mts","sourceRoot":"","sources":["../../src/resources/v1/products.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,cAAc,EAAE,KAAK,oBAAoB,EAAE,WAAW,EAAE;OAC1D,EAAE,cAAc,EAAE;AAEzB,qBAAa,QAAS,SAAQ,WAAW;IACvC;;OAEG;IACH,YAAY,CACV,KAAK,GAAE,yBAAyB,GAAG,IAAI,GAAG,SAAc,EACxD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,0CAA0C,EAAE,2BAA2B,CAAC;CAMxF;AAED,MAAM,MAAM,0CAA0C,GAAG,cAAc,CAAC,2BAA2B,CAAC,CAAC;AAErG;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3B;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,QAAQ,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;IAEpC;;OAEG;IACH,qBAAqB,EAAE,OAAO,CAAC;IAE/B;;OAEG;IACH,MAAM,EAAE,WAAW,GAAG,UAAU,CAAC;IAEjC;;OAEG;IACH,SAAS,EA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Resource } from "../../core/resource.js";
2
+ import { MyCursorIDPage, type MyCursorIDPageParams, PagePromise } from "../../core/pagination.js";
3
+ import { RequestOptions } from "../../internal/request-options.js";
4
+ export declare class Products extends APIResource {
5
+ /**
6
+ * Retrieves a paginated list of products in the environment.
7
+ */
8
+ listProducts(query?: ProductListProductsParams | null | undefined, options?: RequestOptions): PagePromise<ProductListProductsResponsesMyCursorIDPage, ProductListProductsResponse>;
9
+ }
10
+ export type ProductListProductsResponsesMyCursorIDPage = MyCursorIDPage<ProductListProductsResponse>;
11
+ /**
12
+ * Product configuration object
13
+ */
14
+ export interface ProductListProductsResponse {
15
+ /**
16
+ * The unique identifier for the entity
17
+ */
18
+ id: string;
19
+ /**
20
+ * Timestamp of when the record was created
21
+ */
22
+ createdAt: string;
23
+ /**
24
+ * Description of the product
25
+ */
26
+ description: string | null;
27
+ /**
28
+ * Display name of the product
29
+ */
30
+ displayName: string;
31
+ /**
32
+ * Metadata associated with the entity
33
+ */
34
+ metadata: {
35
+ [key: string]: string;
36
+ };
37
+ /**
38
+ * Indicates if multiple subscriptions to this product are allowed
39
+ */
40
+ multipleSubscriptions: boolean;
41
+ /**
42
+ * The status of the product
43
+ */
44
+ status: 'PUBLISHED' | 'ARCHIVED';
45
+ /**
46
+ * Timestamp of when the record was last updated
47
+ */
48
+ updatedAt: string;
49
+ /**
50
+ * Product behavior settings for subscription lifecycle management.
51
+ */
52
+ productSettings?: ProductListProductsResponse.ProductSettings;
53
+ }
54
+ export declare namespace ProductListProductsResponse {
55
+ /**
56
+ * Product behavior settings for subscription lifecycle management.
57
+ */
58
+ interface ProductSettings {
59
+ /**
60
+ * Time when the subscription will be cancelled
61
+ */
62
+ subscriptionCancellationTime: 'END_OF_BILLING_PERIOD' | 'IMMEDIATE' | 'SPECIFIC_DATE';
63
+ /**
64
+ * Setup for the end of the subscription
65
+ */
66
+ subscriptionEndSetup: 'DOWNGRADE_TO_FREE' | 'CANCEL_SUBSCRIPTION';
67
+ /**
68
+ * Setup for the start of the subscription
69
+ */
70
+ subscriptionStartSetup: 'PLAN_SELECTION' | 'TRIAL_PERIOD' | 'FREE_PLAN';
71
+ /**
72
+ * ID of the plan to downgrade to at the end of the billing period
73
+ */
74
+ downgradePlanId?: string | null;
75
+ /**
76
+ * Indicates if the subscription should be prorated at the end of the billing
77
+ * period
78
+ */
79
+ prorateAtEndOfBillingPeriod?: boolean | null;
80
+ /**
81
+ * ID of the plan to start the subscription with
82
+ */
83
+ subscriptionStartPlanId?: string | null;
84
+ }
85
+ }
86
+ export interface ProductListProductsParams extends MyCursorIDPageParams {
87
+ /**
88
+ * Filter by entity ID
89
+ */
90
+ id?: string;
91
+ /**
92
+ * Filter by creation date using range operators: gt, gte, lt, lte
93
+ */
94
+ createdAt?: ProductListProductsParams.CreatedAt;
95
+ /**
96
+ * Filter by product status. Supports comma-separated values for multiple statuses
97
+ */
98
+ status?: string;
99
+ }
100
+ export declare namespace ProductListProductsParams {
101
+ /**
102
+ * Filter by creation date using range operators: gt, gte, lt, lte
103
+ */
104
+ interface CreatedAt {
105
+ /**
106
+ * Greater than the specified createdAt value
107
+ */
108
+ gt?: string;
109
+ /**
110
+ * Greater than or equal to the specified createdAt value
111
+ */
112
+ gte?: string;
113
+ /**
114
+ * Less than the specified createdAt value
115
+ */
116
+ lt?: string;
117
+ /**
118
+ * Less than or equal to the specified createdAt value
119
+ */
120
+ lte?: string;
121
+ }
122
+ }
123
+ export declare namespace Products {
124
+ export { type ProductListProductsResponse as ProductListProductsResponse, type ProductListProductsResponsesMyCursorIDPage as ProductListProductsResponsesMyCursorIDPage, type ProductListProductsParams as ProductListProductsParams, };
125
+ }
126
+ //# sourceMappingURL=products.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"products.d.ts","sourceRoot":"","sources":["../../src/resources/v1/products.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,cAAc,EAAE,KAAK,oBAAoB,EAAE,WAAW,EAAE;OAC1D,EAAE,cAAc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,IAAI,CAAC;KACzC;CACF;AAED,MAAM,WAAW,yBAA0B,SAAQ,oBAAoB;IACrE;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,SAAS,CAAC,EAAE,yBAAyB,CAAC,SAAS,CAAC;IAEhD;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,yBAAiB,yBAAyB,CAAC;IACzC;;OAEG;IACH,UAAiB,SAAS;QACxB;;WAEG;QACH,EAAE,CAAC,EAAE,MAAM,CAAC;QAEZ;;WAEG;QACH,GAAG,CAAC,EAAE,MAAM,CAAC;QAEb;;WAEG;QACH,EAAE,CAAC,EAAE,MAAM,CAAC;QAEZ;;WAEG;QACH,GAAG,CAAC,EAAE,MAAM,CAAC;KACd;CACF;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,0CAA0C,IAAI,0CAA0C,EAC7F,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;CACH"}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.Products = void 0;
5
+ const resource_1 = require("../../core/resource.js");
6
+ const pagination_1 = require("../../core/pagination.js");
7
+ class Products extends resource_1.APIResource {
8
+ /**
9
+ * Retrieves a paginated list of products in the environment.
10
+ */
11
+ listProducts(query = {}, options) {
12
+ return this._client.getAPIList('/api/v1/products', (pagination_1.MyCursorIDPage), {
13
+ query,
14
+ ...options,
15
+ });
16
+ }
17
+ }
18
+ exports.Products = Products;
19
+ //# sourceMappingURL=products.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"products.js","sourceRoot":"","sources":["../../src/resources/v1/products.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAClD,yDAA+F;AAG/F,MAAa,QAAS,SAAQ,sBAAW;IACvC;;OAEG;IACH,YAAY,CACV,QAAsD,EAAE,EACxD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,kBAAkB,EAAE,CAAA,2BAA2C,CAAA,EAAE;YAC9F,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF;AAbD,4BAaC"}
@@ -0,0 +1,15 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../../core/resource.mjs";
3
+ import { MyCursorIDPage } from "../../core/pagination.mjs";
4
+ export class Products extends APIResource {
5
+ /**
6
+ * Retrieves a paginated list of products in the environment.
7
+ */
8
+ listProducts(query = {}, options) {
9
+ return this._client.getAPIList('/api/v1/products', (MyCursorIDPage), {
10
+ query,
11
+ ...options,
12
+ });
13
+ }
14
+ }
15
+ //# sourceMappingURL=products.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"products.mjs","sourceRoot":"","sources":["../../src/resources/v1/products.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,EAAE,cAAc,EAA0C;AAGjE,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;OAEG;IACH,YAAY,CACV,QAAsD,EAAE,EACxD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,kBAAkB,EAAE,CAAA,cAA2C,CAAA,EAAE;YAC9F,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -3,11 +3,12 @@ import { APIPromise } from "../../../core/api-promise.mjs";
3
3
  import { RequestOptions } from "../../../internal/request-options.mjs";
4
4
  export declare class FutureUpdate extends APIResource {
5
5
  /**
6
- * Cancel pending payment update
6
+ * Cancels a subscription update that is pending payment completion.
7
7
  */
8
8
  cancelPendingPayment(id: string, options?: RequestOptions): APIPromise<CancelSubscription>;
9
9
  /**
10
- * Cancel scheduled update
10
+ * Cancels a scheduled subscription update, such as a future downgrade or plan
11
+ * change.
11
12
  */
12
13
  cancelSchedule(id: string, options?: RequestOptions): APIPromise<CancelSubscription>;
13
14
  }
@@ -1 +1 @@
1
- {"version":3,"file":"future-update.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/subscriptions/future-update.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;OAEG;IACH,oBAAoB,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;IAI1F;;OAEG;IACH,cAAc,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;CAGrF;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,kBAAkB,CAAC,IAAI,CAAC;CAC/B;AAED,yBAAiB,kBAAkB,CAAC;IAClC,UAAiB,IAAI;QACnB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;KACZ;CACF;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EAAE,KAAK,kBAAkB,IAAI,kBAAkB,EAAE,CAAC;CAC1D"}
1
+ {"version":3,"file":"future-update.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/subscriptions/future-update.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;OAEG;IACH,oBAAoB,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;IAI1F;;;OAGG;IACH,cAAc,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;CAGrF;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,kBAAkB,CAAC,IAAI,CAAC;CAC/B;AAED,yBAAiB,kBAAkB,CAAC;IAClC,UAAiB,IAAI;QACnB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;KACZ;CACF;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EAAE,KAAK,kBAAkB,IAAI,kBAAkB,EAAE,CAAC;CAC1D"}
@@ -3,11 +3,12 @@ import { APIPromise } from "../../../core/api-promise.js";
3
3
  import { RequestOptions } from "../../../internal/request-options.js";
4
4
  export declare class FutureUpdate extends APIResource {
5
5
  /**
6
- * Cancel pending payment update
6
+ * Cancels a subscription update that is pending payment completion.
7
7
  */
8
8
  cancelPendingPayment(id: string, options?: RequestOptions): APIPromise<CancelSubscription>;
9
9
  /**
10
- * Cancel scheduled update
10
+ * Cancels a scheduled subscription update, such as a future downgrade or plan
11
+ * change.
11
12
  */
12
13
  cancelSchedule(id: string, options?: RequestOptions): APIPromise<CancelSubscription>;
13
14
  }
@@ -1 +1 @@
1
- {"version":3,"file":"future-update.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/subscriptions/future-update.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;OAEG;IACH,oBAAoB,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;IAI1F;;OAEG;IACH,cAAc,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;CAGrF;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,kBAAkB,CAAC,IAAI,CAAC;CAC/B;AAED,yBAAiB,kBAAkB,CAAC;IAClC,UAAiB,IAAI;QACnB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;KACZ;CACF;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EAAE,KAAK,kBAAkB,IAAI,kBAAkB,EAAE,CAAC;CAC1D"}
1
+ {"version":3,"file":"future-update.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/subscriptions/future-update.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;OAEG;IACH,oBAAoB,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;IAI1F;;;OAGG;IACH,cAAc,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;CAGrF;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,kBAAkB,CAAC,IAAI,CAAC;CAC/B;AAED,yBAAiB,kBAAkB,CAAC;IAClC,UAAiB,IAAI;QACnB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;KACZ;CACF;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EAAE,KAAK,kBAAkB,IAAI,kBAAkB,EAAE,CAAC;CAC1D"}
@@ -6,13 +6,14 @@ const resource_1 = require("../../../core/resource.js");
6
6
  const path_1 = require("../../../internal/utils/path.js");
7
7
  class FutureUpdate extends resource_1.APIResource {
8
8
  /**
9
- * Cancel pending payment update
9
+ * Cancels a subscription update that is pending payment completion.
10
10
  */
11
11
  cancelPendingPayment(id, options) {
12
12
  return this._client.delete((0, path_1.path) `/api/v1/subscriptions/${id}/future-update/pending-payment`, options);
13
13
  }
14
14
  /**
15
- * Cancel scheduled update
15
+ * Cancels a scheduled subscription update, such as a future downgrade or plan
16
+ * change.
16
17
  */
17
18
  cancelSchedule(id, options) {
18
19
  return this._client.delete((0, path_1.path) `/api/v1/subscriptions/${id}/future-update/schedule`, options);
@@ -1 +1 @@
1
- {"version":3,"file":"future-update.js","sourceRoot":"","sources":["../../../src/resources/v1/subscriptions/future-update.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAGrD,0DAAoD;AAEpD,MAAa,YAAa,SAAQ,sBAAW;IAC3C;;OAEG;IACH,oBAAoB,CAAC,EAAU,EAAE,OAAwB;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,yBAAyB,EAAE,gCAAgC,EAAE,OAAO,CAAC,CAAC;IACvG,CAAC;IAED;;OAEG;IACH,cAAc,CAAC,EAAU,EAAE,OAAwB;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,yBAAyB,EAAE,yBAAyB,EAAE,OAAO,CAAC,CAAC;IAChG,CAAC;CACF;AAdD,oCAcC"}
1
+ {"version":3,"file":"future-update.js","sourceRoot":"","sources":["../../../src/resources/v1/subscriptions/future-update.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAGrD,0DAAoD;AAEpD,MAAa,YAAa,SAAQ,sBAAW;IAC3C;;OAEG;IACH,oBAAoB,CAAC,EAAU,EAAE,OAAwB;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,yBAAyB,EAAE,gCAAgC,EAAE,OAAO,CAAC,CAAC;IACvG,CAAC;IAED;;;OAGG;IACH,cAAc,CAAC,EAAU,EAAE,OAAwB;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,yBAAyB,EAAE,yBAAyB,EAAE,OAAO,CAAC,CAAC;IAChG,CAAC;CACF;AAfD,oCAeC"}
@@ -3,13 +3,14 @@ import { APIResource } from "../../../core/resource.mjs";
3
3
  import { path } from "../../../internal/utils/path.mjs";
4
4
  export class FutureUpdate extends APIResource {
5
5
  /**
6
- * Cancel pending payment update
6
+ * Cancels a subscription update that is pending payment completion.
7
7
  */
8
8
  cancelPendingPayment(id, options) {
9
9
  return this._client.delete(path `/api/v1/subscriptions/${id}/future-update/pending-payment`, options);
10
10
  }
11
11
  /**
12
- * Cancel scheduled update
12
+ * Cancels a scheduled subscription update, such as a future downgrade or plan
13
+ * change.
13
14
  */
14
15
  cancelSchedule(id, options) {
15
16
  return this._client.delete(path `/api/v1/subscriptions/${id}/future-update/schedule`, options);
@@ -1 +1 @@
1
- {"version":3,"file":"future-update.mjs","sourceRoot":"","sources":["../../../src/resources/v1/subscriptions/future-update.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,YAAa,SAAQ,WAAW;IAC3C;;OAEG;IACH,oBAAoB,CAAC,EAAU,EAAE,OAAwB;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,yBAAyB,EAAE,gCAAgC,EAAE,OAAO,CAAC,CAAC;IACvG,CAAC;IAED;;OAEG;IACH,cAAc,CAAC,EAAU,EAAE,OAAwB;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,yBAAyB,EAAE,yBAAyB,EAAE,OAAO,CAAC,CAAC;IAChG,CAAC;CACF"}
1
+ {"version":3,"file":"future-update.mjs","sourceRoot":"","sources":["../../../src/resources/v1/subscriptions/future-update.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,YAAa,SAAQ,WAAW;IAC3C;;OAEG;IACH,oBAAoB,CAAC,EAAU,EAAE,OAAwB;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,yBAAyB,EAAE,gCAAgC,EAAE,OAAO,CAAC,CAAC;IACvG,CAAC;IAED;;;OAGG;IACH,cAAc,CAAC,EAAU,EAAE,OAAwB;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,yBAAyB,EAAE,yBAAyB,EAAE,OAAO,CAAC,CAAC;IAChG,CAAC;CACF"}