@stigg/typescript 0.1.0-beta.10 → 0.1.0-beta.14

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 (83) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/package.json +1 -1
  3. package/resources/v1/addons/addons.d.mts +167 -193
  4. package/resources/v1/addons/addons.d.mts.map +1 -1
  5. package/resources/v1/addons/addons.d.ts +167 -193
  6. package/resources/v1/addons/addons.d.ts.map +1 -1
  7. package/resources/v1/addons/addons.js +1 -4
  8. package/resources/v1/addons/addons.js.map +1 -1
  9. package/resources/v1/addons/addons.mjs +1 -4
  10. package/resources/v1/addons/addons.mjs.map +1 -1
  11. package/resources/v1/addons/index.d.mts +1 -1
  12. package/resources/v1/addons/index.d.mts.map +1 -1
  13. package/resources/v1/addons/index.d.ts +1 -1
  14. package/resources/v1/addons/index.d.ts.map +1 -1
  15. package/resources/v1/customers/customers.d.mts +5 -5
  16. package/resources/v1/customers/customers.d.mts.map +1 -1
  17. package/resources/v1/customers/customers.d.ts +5 -5
  18. package/resources/v1/customers/customers.d.ts.map +1 -1
  19. package/resources/v1/customers/customers.js.map +1 -1
  20. package/resources/v1/customers/customers.mjs.map +1 -1
  21. package/resources/v1/customers/integrations.d.mts +3 -3
  22. package/resources/v1/customers/integrations.d.mts.map +1 -1
  23. package/resources/v1/customers/integrations.d.ts +3 -3
  24. package/resources/v1/customers/integrations.d.ts.map +1 -1
  25. package/resources/v1/customers/payment-method.d.mts +1 -1
  26. package/resources/v1/customers/payment-method.d.mts.map +1 -1
  27. package/resources/v1/customers/payment-method.d.ts +1 -1
  28. package/resources/v1/customers/payment-method.d.ts.map +1 -1
  29. package/resources/v1/index.d.mts +2 -2
  30. package/resources/v1/index.d.mts.map +1 -1
  31. package/resources/v1/index.d.ts +2 -2
  32. package/resources/v1/index.d.ts.map +1 -1
  33. package/resources/v1/index.js.map +1 -1
  34. package/resources/v1/index.mjs.map +1 -1
  35. package/resources/v1/plans/index.d.mts +1 -1
  36. package/resources/v1/plans/index.d.mts.map +1 -1
  37. package/resources/v1/plans/index.d.ts +1 -1
  38. package/resources/v1/plans/index.d.ts.map +1 -1
  39. package/resources/v1/plans/index.js.map +1 -1
  40. package/resources/v1/plans/index.mjs.map +1 -1
  41. package/resources/v1/plans/plans.d.mts +333 -6
  42. package/resources/v1/plans/plans.d.mts.map +1 -1
  43. package/resources/v1/plans/plans.d.ts +333 -6
  44. package/resources/v1/plans/plans.d.ts.map +1 -1
  45. package/resources/v1/plans/plans.js.map +1 -1
  46. package/resources/v1/plans/plans.mjs.map +1 -1
  47. package/resources/v1/v1.d.mts +4 -4
  48. package/resources/v1/v1.d.mts.map +1 -1
  49. package/resources/v1/v1.d.ts +4 -4
  50. package/resources/v1/v1.d.ts.map +1 -1
  51. package/resources/v1/v1.js.map +1 -1
  52. package/resources/v1/v1.mjs.map +1 -1
  53. package/resources/v1-beta/customers/customers.d.mts +2 -2
  54. package/resources/v1-beta/customers/customers.d.mts.map +1 -1
  55. package/resources/v1-beta/customers/customers.d.ts +2 -2
  56. package/resources/v1-beta/customers/customers.d.ts.map +1 -1
  57. package/resources/v1-beta/customers/entities.d.mts +45 -34
  58. package/resources/v1-beta/customers/entities.d.mts.map +1 -1
  59. package/resources/v1-beta/customers/entities.d.ts +45 -34
  60. package/resources/v1-beta/customers/entities.d.ts.map +1 -1
  61. package/resources/v1-beta/customers/entities.js +2 -2
  62. package/resources/v1-beta/customers/entities.mjs +2 -2
  63. package/resources/v1-beta/customers/index.d.mts +1 -1
  64. package/resources/v1-beta/customers/index.d.mts.map +1 -1
  65. package/resources/v1-beta/customers/index.d.ts +1 -1
  66. package/resources/v1-beta/customers/index.d.ts.map +1 -1
  67. package/src/resources/v1/addons/addons.ts +458 -487
  68. package/src/resources/v1/addons/index.ts +2 -2
  69. package/src/resources/v1/customers/customers.ts +15 -5
  70. package/src/resources/v1/customers/integrations.ts +8 -2
  71. package/src/resources/v1/customers/payment-method.ts +3 -1
  72. package/src/resources/v1/index.ts +6 -2
  73. package/src/resources/v1/plans/index.ts +4 -0
  74. package/src/resources/v1/plans/plans.ts +1100 -8
  75. package/src/resources/v1/v1.ts +12 -4
  76. package/src/resources/v1-beta/customers/customers.ts +4 -4
  77. package/src/resources/v1-beta/customers/entities.ts +50 -38
  78. package/src/resources/v1-beta/customers/index.ts +2 -2
  79. package/src/version.ts +1 -1
  80. package/version.d.mts +1 -1
  81. package/version.d.ts +1 -1
  82. package/version.js +1 -1
  83. package/version.mjs +1 -1
@@ -47,6 +47,8 @@ import {
47
47
  Addon,
48
48
  AddonCreateParams,
49
49
  AddonListChargesParams,
50
+ AddonListChargesResponse,
51
+ AddonListChargesResponsesMyCursorIDPage,
50
52
  AddonListParams,
51
53
  AddonListResponse,
52
54
  AddonListResponsesMyCursorIDPage,
@@ -55,8 +57,6 @@ import {
55
57
  AddonRemoveDraftResponse,
56
58
  AddonUpdateParams,
57
59
  Addons,
58
- ChargeList,
59
- ChargeListDataMyCursorIDPage,
60
60
  } from './addons/addons';
61
61
  import * as CreditsAPI from './credits/credits';
62
62
  import {
@@ -94,7 +94,11 @@ import {
94
94
  Plan,
95
95
  PlanCreateParams,
96
96
  PlanListChargesParams,
97
+ PlanListChargesResponse,
98
+ PlanListChargesResponsesMyCursorIDPage,
97
99
  PlanListOverageChargesParams,
100
+ PlanListOverageChargesResponse,
101
+ PlanListOverageChargesResponsesMyCursorIDPage,
98
102
  PlanListParams,
99
103
  PlanListResponse,
100
104
  PlanListResponsesMyCursorIDPage,
@@ -228,12 +232,12 @@ export declare namespace V1 {
228
232
  export {
229
233
  Addons as Addons,
230
234
  type Addon as Addon,
231
- type ChargeList as ChargeList,
232
235
  type AddonListResponse as AddonListResponse,
236
+ type AddonListChargesResponse as AddonListChargesResponse,
233
237
  type AddonPublishResponse as AddonPublishResponse,
234
238
  type AddonRemoveDraftResponse as AddonRemoveDraftResponse,
235
239
  type AddonListResponsesMyCursorIDPage as AddonListResponsesMyCursorIDPage,
236
- type ChargeListDataMyCursorIDPage as ChargeListDataMyCursorIDPage,
240
+ type AddonListChargesResponsesMyCursorIDPage as AddonListChargesResponsesMyCursorIDPage,
237
241
  type AddonCreateParams as AddonCreateParams,
238
242
  type AddonUpdateParams as AddonUpdateParams,
239
243
  type AddonListParams as AddonListParams,
@@ -245,9 +249,13 @@ export declare namespace V1 {
245
249
  Plans as Plans,
246
250
  type Plan as Plan,
247
251
  type PlanListResponse as PlanListResponse,
252
+ type PlanListChargesResponse as PlanListChargesResponse,
253
+ type PlanListOverageChargesResponse as PlanListOverageChargesResponse,
248
254
  type PlanPublishResponse as PlanPublishResponse,
249
255
  type PlanRemoveDraftResponse as PlanRemoveDraftResponse,
250
256
  type PlanListResponsesMyCursorIDPage as PlanListResponsesMyCursorIDPage,
257
+ type PlanListChargesResponsesMyCursorIDPage as PlanListChargesResponsesMyCursorIDPage,
258
+ type PlanListOverageChargesResponsesMyCursorIDPage as PlanListOverageChargesResponsesMyCursorIDPage,
251
259
  type PlanCreateParams as PlanCreateParams,
252
260
  type PlanUpdateParams as PlanUpdateParams,
253
261
  type PlanListParams as PlanListParams,
@@ -14,14 +14,14 @@ import * as EntitiesAPI from './entities';
14
14
  import {
15
15
  Entities,
16
16
  EntityArchiveParams,
17
- EntityIDsActionResponseDto,
18
- EntityIDsRequestDto,
17
+ EntityArchiveResponse,
19
18
  EntityListParams,
20
19
  EntityListResponse,
21
20
  EntityListResponsesMyCursorIDPage,
22
21
  EntityRetrieveParams,
23
22
  EntityRetrieveResponse,
24
23
  EntityUnarchiveParams,
24
+ EntityUnarchiveResponse,
25
25
  EntityUpsertParams,
26
26
  EntityUpsertResponse,
27
27
  } from './entities';
@@ -47,10 +47,10 @@ export declare namespace Customers {
47
47
 
48
48
  export {
49
49
  Entities as Entities,
50
- type EntityIDsActionResponseDto as EntityIDsActionResponseDto,
51
- type EntityIDsRequestDto as EntityIDsRequestDto,
52
50
  type EntityRetrieveResponse as EntityRetrieveResponse,
53
51
  type EntityListResponse as EntityListResponse,
52
+ type EntityArchiveResponse as EntityArchiveResponse,
53
+ type EntityUnarchiveResponse as EntityUnarchiveResponse,
54
54
  type EntityUpsertResponse as EntityUpsertResponse,
55
55
  type EntityListResponsesMyCursorIDPage as EntityListResponsesMyCursorIDPage,
56
56
  type EntityRetrieveParams as EntityRetrieveParams,
@@ -57,7 +57,7 @@ export class Entities extends APIResource {
57
57
  *
58
58
  * @example
59
59
  * ```ts
60
- * const entityIDsActionResponseDto =
60
+ * const response =
61
61
  * await client.v1Beta.customers.entities.archive('id', {
62
62
  * ids: ['user-7f3a0c1d', 'user-c4d1b2e9'],
63
63
  * });
@@ -67,7 +67,7 @@ export class Entities extends APIResource {
67
67
  id: string,
68
68
  body: EntityArchiveParams,
69
69
  options?: RequestOptions,
70
- ): APIPromise<EntityIDsActionResponseDto> {
70
+ ): APIPromise<EntityArchiveResponse> {
71
71
  return this._client.post(path`/api/v1-beta/customers/${id}/entities/archive`, { body, ...options });
72
72
  }
73
73
 
@@ -76,7 +76,7 @@ export class Entities extends APIResource {
76
76
  *
77
77
  * @example
78
78
  * ```ts
79
- * const entityIDsActionResponseDto =
79
+ * const response =
80
80
  * await client.v1Beta.customers.entities.unarchive('id', {
81
81
  * ids: ['user-7f3a0c1d', 'user-c4d1b2e9'],
82
82
  * });
@@ -86,7 +86,7 @@ export class Entities extends APIResource {
86
86
  id: string,
87
87
  body: EntityUnarchiveParams,
88
88
  options?: RequestOptions,
89
- ): APIPromise<EntityIDsActionResponseDto> {
89
+ ): APIPromise<EntityUnarchiveResponse> {
90
90
  return this._client.post(path`/api/v1-beta/customers/${id}/entities/unarchive`, { body, ...options });
91
91
  }
92
92
 
@@ -120,38 +120,6 @@ export class Entities extends APIResource {
120
120
 
121
121
  export type EntityListResponsesMyCursorIDPage = MyCursorIDPage<EntityListResponse>;
122
122
 
123
- /**
124
- * Wrapped response echoing the ids that were acted on by an archive/unarchive call
125
- */
126
- export interface EntityIDsActionResponseDto {
127
- /**
128
- * List of entity identifiers that were acted on
129
- */
130
- data: EntityIDsActionResponseDto.Data;
131
- }
132
-
133
- export namespace EntityIDsActionResponseDto {
134
- /**
135
- * List of entity identifiers that were acted on
136
- */
137
- export interface Data {
138
- /**
139
- * Entity identifiers to act on
140
- */
141
- ids: Array<string>;
142
- }
143
- }
144
-
145
- /**
146
- * List of entity identifiers to act on in bulk (1-100 entries)
147
- */
148
- export interface EntityIDsRequestDto {
149
- /**
150
- * Entity identifiers to act on
151
- */
152
- ids: Array<string>;
153
- }
154
-
155
123
  /**
156
124
  * Response object
157
125
  */
@@ -234,6 +202,50 @@ export interface EntityListResponse {
234
202
  updatedAt: string;
235
203
  }
236
204
 
205
+ /**
206
+ * Wrapped response echoing the ids that were acted on by an archive/unarchive call
207
+ */
208
+ export interface EntityArchiveResponse {
209
+ /**
210
+ * List of entity identifiers that were acted on
211
+ */
212
+ data: EntityArchiveResponse.Data;
213
+ }
214
+
215
+ export namespace EntityArchiveResponse {
216
+ /**
217
+ * List of entity identifiers that were acted on
218
+ */
219
+ export interface Data {
220
+ /**
221
+ * Entity identifiers to act on
222
+ */
223
+ ids: Array<string>;
224
+ }
225
+ }
226
+
227
+ /**
228
+ * Wrapped response echoing the ids that were acted on by an archive/unarchive call
229
+ */
230
+ export interface EntityUnarchiveResponse {
231
+ /**
232
+ * List of entity identifiers that were acted on
233
+ */
234
+ data: EntityUnarchiveResponse.Data;
235
+ }
236
+
237
+ export namespace EntityUnarchiveResponse {
238
+ /**
239
+ * List of entity identifiers that were acted on
240
+ */
241
+ export interface Data {
242
+ /**
243
+ * Entity identifiers to act on
244
+ */
245
+ ids: Array<string>;
246
+ }
247
+ }
248
+
237
249
  /**
238
250
  * List of entities created or updated by an upsert request
239
251
  */
@@ -345,10 +357,10 @@ export namespace EntityUpsertParams {
345
357
 
346
358
  export declare namespace Entities {
347
359
  export {
348
- type EntityIDsActionResponseDto as EntityIDsActionResponseDto,
349
- type EntityIDsRequestDto as EntityIDsRequestDto,
350
360
  type EntityRetrieveResponse as EntityRetrieveResponse,
351
361
  type EntityListResponse as EntityListResponse,
362
+ type EntityArchiveResponse as EntityArchiveResponse,
363
+ type EntityUnarchiveResponse as EntityUnarchiveResponse,
352
364
  type EntityUpsertResponse as EntityUpsertResponse,
353
365
  type EntityListResponsesMyCursorIDPage as EntityListResponsesMyCursorIDPage,
354
366
  type EntityRetrieveParams as EntityRetrieveParams,
@@ -11,10 +11,10 @@ export {
11
11
  export { Customers } from './customers';
12
12
  export {
13
13
  Entities,
14
- type EntityIDsActionResponseDto,
15
- type EntityIDsRequestDto,
16
14
  type EntityRetrieveResponse,
17
15
  type EntityListResponse,
16
+ type EntityArchiveResponse,
17
+ type EntityUnarchiveResponse,
18
18
  type EntityUpsertResponse,
19
19
  type EntityRetrieveParams,
20
20
  type EntityListParams,
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.1.0-beta.10'; // x-release-please-version
1
+ export const VERSION = '0.1.0-beta.14'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.1.0-beta.10";
1
+ export declare const VERSION = "0.1.0-beta.14";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.1.0-beta.10";
1
+ export declare const VERSION = "0.1.0-beta.14";
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-beta.10'; // x-release-please-version
4
+ exports.VERSION = '0.1.0-beta.14'; // 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-beta.10'; // x-release-please-version
1
+ export const VERSION = '0.1.0-beta.14'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map