@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.
- package/CHANGELOG.md +32 -0
- package/package.json +1 -1
- package/resources/v1/addons/addons.d.mts +167 -193
- package/resources/v1/addons/addons.d.mts.map +1 -1
- package/resources/v1/addons/addons.d.ts +167 -193
- package/resources/v1/addons/addons.d.ts.map +1 -1
- package/resources/v1/addons/addons.js +1 -4
- package/resources/v1/addons/addons.js.map +1 -1
- package/resources/v1/addons/addons.mjs +1 -4
- package/resources/v1/addons/addons.mjs.map +1 -1
- package/resources/v1/addons/index.d.mts +1 -1
- package/resources/v1/addons/index.d.mts.map +1 -1
- package/resources/v1/addons/index.d.ts +1 -1
- package/resources/v1/addons/index.d.ts.map +1 -1
- package/resources/v1/customers/customers.d.mts +5 -5
- package/resources/v1/customers/customers.d.mts.map +1 -1
- package/resources/v1/customers/customers.d.ts +5 -5
- package/resources/v1/customers/customers.d.ts.map +1 -1
- package/resources/v1/customers/customers.js.map +1 -1
- package/resources/v1/customers/customers.mjs.map +1 -1
- package/resources/v1/customers/integrations.d.mts +3 -3
- package/resources/v1/customers/integrations.d.mts.map +1 -1
- package/resources/v1/customers/integrations.d.ts +3 -3
- package/resources/v1/customers/integrations.d.ts.map +1 -1
- package/resources/v1/customers/payment-method.d.mts +1 -1
- package/resources/v1/customers/payment-method.d.mts.map +1 -1
- package/resources/v1/customers/payment-method.d.ts +1 -1
- package/resources/v1/customers/payment-method.d.ts.map +1 -1
- package/resources/v1/index.d.mts +2 -2
- package/resources/v1/index.d.mts.map +1 -1
- package/resources/v1/index.d.ts +2 -2
- package/resources/v1/index.d.ts.map +1 -1
- package/resources/v1/index.js.map +1 -1
- package/resources/v1/index.mjs.map +1 -1
- package/resources/v1/plans/index.d.mts +1 -1
- package/resources/v1/plans/index.d.mts.map +1 -1
- package/resources/v1/plans/index.d.ts +1 -1
- package/resources/v1/plans/index.d.ts.map +1 -1
- package/resources/v1/plans/index.js.map +1 -1
- package/resources/v1/plans/index.mjs.map +1 -1
- package/resources/v1/plans/plans.d.mts +333 -6
- package/resources/v1/plans/plans.d.mts.map +1 -1
- package/resources/v1/plans/plans.d.ts +333 -6
- package/resources/v1/plans/plans.d.ts.map +1 -1
- package/resources/v1/plans/plans.js.map +1 -1
- package/resources/v1/plans/plans.mjs.map +1 -1
- package/resources/v1/v1.d.mts +4 -4
- package/resources/v1/v1.d.mts.map +1 -1
- package/resources/v1/v1.d.ts +4 -4
- package/resources/v1/v1.d.ts.map +1 -1
- package/resources/v1/v1.js.map +1 -1
- package/resources/v1/v1.mjs.map +1 -1
- package/resources/v1-beta/customers/customers.d.mts +2 -2
- package/resources/v1-beta/customers/customers.d.mts.map +1 -1
- package/resources/v1-beta/customers/customers.d.ts +2 -2
- package/resources/v1-beta/customers/customers.d.ts.map +1 -1
- package/resources/v1-beta/customers/entities.d.mts +45 -34
- package/resources/v1-beta/customers/entities.d.mts.map +1 -1
- package/resources/v1-beta/customers/entities.d.ts +45 -34
- package/resources/v1-beta/customers/entities.d.ts.map +1 -1
- package/resources/v1-beta/customers/entities.js +2 -2
- package/resources/v1-beta/customers/entities.mjs +2 -2
- package/resources/v1-beta/customers/index.d.mts +1 -1
- package/resources/v1-beta/customers/index.d.mts.map +1 -1
- package/resources/v1-beta/customers/index.d.ts +1 -1
- package/resources/v1-beta/customers/index.d.ts.map +1 -1
- package/src/resources/v1/addons/addons.ts +458 -487
- package/src/resources/v1/addons/index.ts +2 -2
- package/src/resources/v1/customers/customers.ts +15 -5
- package/src/resources/v1/customers/integrations.ts +8 -2
- package/src/resources/v1/customers/payment-method.ts +3 -1
- package/src/resources/v1/index.ts +6 -2
- package/src/resources/v1/plans/index.ts +4 -0
- package/src/resources/v1/plans/plans.ts +1100 -8
- package/src/resources/v1/v1.ts +12 -4
- package/src/resources/v1-beta/customers/customers.ts +4 -4
- package/src/resources/v1-beta/customers/entities.ts +50 -38
- package/src/resources/v1-beta/customers/index.ts +2 -2
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/src/resources/v1/v1.ts
CHANGED
|
@@ -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
|
|
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
|
-
|
|
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
|
|
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<
|
|
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
|
|
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<
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
1
|
+
export const VERSION = '0.1.0-beta.14'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|