@stigg/typescript 0.1.0-alpha.26 → 0.1.0-alpha.28

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 (75) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/internal/utils/env.js +2 -2
  3. package/internal/utils/env.js.map +1 -1
  4. package/internal/utils/env.mjs +2 -2
  5. package/internal/utils/env.mjs.map +1 -1
  6. package/package.json +1 -1
  7. package/resources/internal/beta/beta.d.mts +2 -2
  8. package/resources/internal/beta/beta.d.mts.map +1 -1
  9. package/resources/internal/beta/beta.d.ts +2 -2
  10. package/resources/internal/beta/beta.d.ts.map +1 -1
  11. package/resources/internal/beta/beta.js.map +1 -1
  12. package/resources/internal/beta/beta.mjs.map +1 -1
  13. package/resources/internal/beta/event-queues.d.mts +10 -154
  14. package/resources/internal/beta/event-queues.d.mts.map +1 -1
  15. package/resources/internal/beta/event-queues.d.ts +10 -154
  16. package/resources/internal/beta/event-queues.d.ts.map +1 -1
  17. package/resources/internal/beta/event-queues.js.map +1 -1
  18. package/resources/internal/beta/event-queues.mjs.map +1 -1
  19. package/resources/internal/beta/index.d.mts +1 -1
  20. package/resources/internal/beta/index.d.mts.map +1 -1
  21. package/resources/internal/beta/index.d.ts +1 -1
  22. package/resources/internal/beta/index.d.ts.map +1 -1
  23. package/resources/internal/beta/index.js.map +1 -1
  24. package/resources/internal/beta/index.mjs.map +1 -1
  25. package/resources/v1/customers/customers.d.mts +83 -3
  26. package/resources/v1/customers/customers.d.mts.map +1 -1
  27. package/resources/v1/customers/customers.d.ts +83 -3
  28. package/resources/v1/customers/customers.d.ts.map +1 -1
  29. package/resources/v1/customers/customers.js +5 -0
  30. package/resources/v1/customers/customers.js.map +1 -1
  31. package/resources/v1/customers/customers.mjs +5 -0
  32. package/resources/v1/customers/customers.mjs.map +1 -1
  33. package/resources/v1/customers/index.d.mts +2 -2
  34. package/resources/v1/customers/index.d.mts.map +1 -1
  35. package/resources/v1/customers/index.d.ts +2 -2
  36. package/resources/v1/customers/index.d.ts.map +1 -1
  37. package/resources/v1/customers/index.js.map +1 -1
  38. package/resources/v1/customers/index.mjs.map +1 -1
  39. package/resources/v1/customers/integrations.d.mts +6 -305
  40. package/resources/v1/customers/integrations.d.mts.map +1 -1
  41. package/resources/v1/customers/integrations.d.ts +6 -305
  42. package/resources/v1/customers/integrations.d.ts.map +1 -1
  43. package/resources/v1/customers/integrations.js.map +1 -1
  44. package/resources/v1/customers/integrations.mjs.map +1 -1
  45. package/resources/v1/index.d.mts +1 -1
  46. package/resources/v1/index.d.mts.map +1 -1
  47. package/resources/v1/index.d.ts +1 -1
  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/usage.d.mts +0 -5
  52. package/resources/v1/usage.d.mts.map +1 -1
  53. package/resources/v1/usage.d.ts +0 -5
  54. package/resources/v1/usage.d.ts.map +1 -1
  55. package/resources/v1/v1.d.mts +2 -2
  56. package/resources/v1/v1.d.mts.map +1 -1
  57. package/resources/v1/v1.d.ts +2 -2
  58. package/resources/v1/v1.d.ts.map +1 -1
  59. package/resources/v1/v1.js.map +1 -1
  60. package/resources/v1/v1.mjs.map +1 -1
  61. package/src/internal/utils/env.ts +2 -2
  62. package/src/resources/internal/beta/beta.ts +2 -8
  63. package/src/resources/internal/beta/event-queues.ts +10 -266
  64. package/src/resources/internal/beta/index.ts +1 -4
  65. package/src/resources/v1/customers/customers.ts +106 -8
  66. package/src/resources/v1/customers/index.ts +1 -4
  67. package/src/resources/v1/customers/integrations.ts +5 -408
  68. package/src/resources/v1/index.ts +1 -0
  69. package/src/resources/v1/usage.ts +0 -6
  70. package/src/resources/v1/v1.ts +2 -0
  71. package/src/version.ts +1 -1
  72. package/version.d.mts +1 -1
  73. package/version.d.ts +1 -1
  74. package/version.js +1 -1
  75. package/version.mjs +1 -1
@@ -1,6 +1,7 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  import { APIResource } from '../../../core/resource';
4
+ import * as CustomersAPI from './customers';
4
5
  import { APIPromise } from '../../../core/api-promise';
5
6
  import { MyCursorIDPage, type MyCursorIDPageParams, PagePromise } from '../../../core/pagination';
6
7
  import { RequestOptions } from '../../../internal/request-options';
@@ -14,7 +15,7 @@ export class Integrations extends APIResource {
14
15
  integrationID: string,
15
16
  params: IntegrationRetrieveParams,
16
17
  options?: RequestOptions,
17
- ): APIPromise<IntegrationRetrieveResponse> {
18
+ ): APIPromise<CustomersAPI.CustomerIntegrationResponse> {
18
19
  const { id } = params;
19
20
  return this._client.get(path`/api/v1/customers/${id}/integrations/${integrationID}`, options);
20
21
  }
@@ -27,7 +28,7 @@ export class Integrations extends APIResource {
27
28
  integrationID: string,
28
29
  params: IntegrationUpdateParams,
29
30
  options?: RequestOptions,
30
- ): APIPromise<IntegrationUpdateResponse> {
31
+ ): APIPromise<CustomersAPI.CustomerIntegrationResponse> {
31
32
  const { id, ...body } = params;
32
33
  return this._client.patch(path`/api/v1/customers/${id}/integrations/${integrationID}`, {
33
34
  body,
@@ -59,7 +60,7 @@ export class Integrations extends APIResource {
59
60
  id: string,
60
61
  body: IntegrationLinkParams,
61
62
  options?: RequestOptions,
62
- ): APIPromise<IntegrationLinkResponse> {
63
+ ): APIPromise<CustomersAPI.CustomerIntegrationResponse> {
63
64
  return this._client.post(path`/api/v1/customers/${id}/integrations`, { body, ...options });
64
65
  }
65
66
 
@@ -70,7 +71,7 @@ export class Integrations extends APIResource {
70
71
  integrationID: string,
71
72
  params: IntegrationUnlinkParams,
72
73
  options?: RequestOptions,
73
- ): APIPromise<IntegrationUnlinkResponse> {
74
+ ): APIPromise<CustomersAPI.CustomerIntegrationResponse> {
74
75
  const { id } = params;
75
76
  return this._client.delete(path`/api/v1/customers/${id}/integrations/${integrationID}`, options);
76
77
  }
@@ -78,206 +79,6 @@ export class Integrations extends APIResource {
78
79
 
79
80
  export type IntegrationListResponsesMyCursorIDPage = MyCursorIDPage<IntegrationListResponse>;
80
81
 
81
- /**
82
- * Response object
83
- */
84
- export interface IntegrationRetrieveResponse {
85
- /**
86
- * External billing or CRM integration link
87
- */
88
- data: IntegrationRetrieveResponse.Data;
89
- }
90
-
91
- export namespace IntegrationRetrieveResponse {
92
- /**
93
- * External billing or CRM integration link
94
- */
95
- export interface Data {
96
- /**
97
- * Integration details
98
- */
99
- id: string;
100
-
101
- /**
102
- * Synced entity id
103
- */
104
- syncedEntityId: string | null;
105
-
106
- /**
107
- * The vendor identifier of integration
108
- */
109
- vendorIdentifier:
110
- | 'AUTH0'
111
- | 'ZUORA'
112
- | 'STRIPE'
113
- | 'HUBSPOT'
114
- | 'AWS_MARKETPLACE'
115
- | 'SNOWFLAKE'
116
- | 'SALESFORCE'
117
- | 'BIG_QUERY'
118
- | 'OPEN_FGA'
119
- | 'APP_STORE';
120
-
121
- /**
122
- * Price billing sync revision data containing billing ID, link URL, and price
123
- * group package billing ID
124
- */
125
- syncData?:
126
- | Data.SyncRevisionPriceBillingData
127
- | Data.SyncRevisionBillingData
128
- | Data.SyncRevisionMarketplaceData
129
- | null;
130
- }
131
-
132
- export namespace Data {
133
- /**
134
- * Price billing sync revision data containing billing ID, link URL, and price
135
- * group package billing ID
136
- */
137
- export interface SyncRevisionPriceBillingData {
138
- /**
139
- * Billing integration id
140
- */
141
- billingId: string;
142
-
143
- /**
144
- * Billing integration url
145
- */
146
- billingLinkUrl: string;
147
-
148
- /**
149
- * Price group package billing id
150
- */
151
- priceGroupPackageBillingId: string;
152
- }
153
-
154
- /**
155
- * Billing sync revision data containing billing ID and link URL
156
- */
157
- export interface SyncRevisionBillingData {
158
- /**
159
- * Billing integration id
160
- */
161
- billingId: string;
162
-
163
- /**
164
- * Billing integration url
165
- */
166
- billingLinkUrl: string;
167
- }
168
-
169
- /**
170
- * Marketplace sync revision data containing dimensions
171
- */
172
- export interface SyncRevisionMarketplaceData {
173
- /**
174
- * Dimensions of the marketplace sync revision
175
- */
176
- dimensions: string;
177
- }
178
- }
179
- }
180
-
181
- /**
182
- * Response object
183
- */
184
- export interface IntegrationUpdateResponse {
185
- /**
186
- * External billing or CRM integration link
187
- */
188
- data: IntegrationUpdateResponse.Data;
189
- }
190
-
191
- export namespace IntegrationUpdateResponse {
192
- /**
193
- * External billing or CRM integration link
194
- */
195
- export interface Data {
196
- /**
197
- * Integration details
198
- */
199
- id: string;
200
-
201
- /**
202
- * Synced entity id
203
- */
204
- syncedEntityId: string | null;
205
-
206
- /**
207
- * The vendor identifier of integration
208
- */
209
- vendorIdentifier:
210
- | 'AUTH0'
211
- | 'ZUORA'
212
- | 'STRIPE'
213
- | 'HUBSPOT'
214
- | 'AWS_MARKETPLACE'
215
- | 'SNOWFLAKE'
216
- | 'SALESFORCE'
217
- | 'BIG_QUERY'
218
- | 'OPEN_FGA'
219
- | 'APP_STORE';
220
-
221
- /**
222
- * Price billing sync revision data containing billing ID, link URL, and price
223
- * group package billing ID
224
- */
225
- syncData?:
226
- | Data.SyncRevisionPriceBillingData
227
- | Data.SyncRevisionBillingData
228
- | Data.SyncRevisionMarketplaceData
229
- | null;
230
- }
231
-
232
- export namespace Data {
233
- /**
234
- * Price billing sync revision data containing billing ID, link URL, and price
235
- * group package billing ID
236
- */
237
- export interface SyncRevisionPriceBillingData {
238
- /**
239
- * Billing integration id
240
- */
241
- billingId: string;
242
-
243
- /**
244
- * Billing integration url
245
- */
246
- billingLinkUrl: string;
247
-
248
- /**
249
- * Price group package billing id
250
- */
251
- priceGroupPackageBillingId: string;
252
- }
253
-
254
- /**
255
- * Billing sync revision data containing billing ID and link URL
256
- */
257
- export interface SyncRevisionBillingData {
258
- /**
259
- * Billing integration id
260
- */
261
- billingId: string;
262
-
263
- /**
264
- * Billing integration url
265
- */
266
- billingLinkUrl: string;
267
- }
268
-
269
- /**
270
- * Marketplace sync revision data containing dimensions
271
- */
272
- export interface SyncRevisionMarketplaceData {
273
- /**
274
- * Dimensions of the marketplace sync revision
275
- */
276
- dimensions: string;
277
- }
278
- }
279
- }
280
-
281
82
  /**
282
83
  * External billing or CRM integration link
283
84
  */
@@ -366,206 +167,6 @@ export namespace IntegrationListResponse {
366
167
  }
367
168
  }
368
169
 
369
- /**
370
- * Response object
371
- */
372
- export interface IntegrationLinkResponse {
373
- /**
374
- * External billing or CRM integration link
375
- */
376
- data: IntegrationLinkResponse.Data;
377
- }
378
-
379
- export namespace IntegrationLinkResponse {
380
- /**
381
- * External billing or CRM integration link
382
- */
383
- export interface Data {
384
- /**
385
- * Integration details
386
- */
387
- id: string;
388
-
389
- /**
390
- * Synced entity id
391
- */
392
- syncedEntityId: string | null;
393
-
394
- /**
395
- * The vendor identifier of integration
396
- */
397
- vendorIdentifier:
398
- | 'AUTH0'
399
- | 'ZUORA'
400
- | 'STRIPE'
401
- | 'HUBSPOT'
402
- | 'AWS_MARKETPLACE'
403
- | 'SNOWFLAKE'
404
- | 'SALESFORCE'
405
- | 'BIG_QUERY'
406
- | 'OPEN_FGA'
407
- | 'APP_STORE';
408
-
409
- /**
410
- * Price billing sync revision data containing billing ID, link URL, and price
411
- * group package billing ID
412
- */
413
- syncData?:
414
- | Data.SyncRevisionPriceBillingData
415
- | Data.SyncRevisionBillingData
416
- | Data.SyncRevisionMarketplaceData
417
- | null;
418
- }
419
-
420
- export namespace Data {
421
- /**
422
- * Price billing sync revision data containing billing ID, link URL, and price
423
- * group package billing ID
424
- */
425
- export interface SyncRevisionPriceBillingData {
426
- /**
427
- * Billing integration id
428
- */
429
- billingId: string;
430
-
431
- /**
432
- * Billing integration url
433
- */
434
- billingLinkUrl: string;
435
-
436
- /**
437
- * Price group package billing id
438
- */
439
- priceGroupPackageBillingId: string;
440
- }
441
-
442
- /**
443
- * Billing sync revision data containing billing ID and link URL
444
- */
445
- export interface SyncRevisionBillingData {
446
- /**
447
- * Billing integration id
448
- */
449
- billingId: string;
450
-
451
- /**
452
- * Billing integration url
453
- */
454
- billingLinkUrl: string;
455
- }
456
-
457
- /**
458
- * Marketplace sync revision data containing dimensions
459
- */
460
- export interface SyncRevisionMarketplaceData {
461
- /**
462
- * Dimensions of the marketplace sync revision
463
- */
464
- dimensions: string;
465
- }
466
- }
467
- }
468
-
469
- /**
470
- * Response object
471
- */
472
- export interface IntegrationUnlinkResponse {
473
- /**
474
- * External billing or CRM integration link
475
- */
476
- data: IntegrationUnlinkResponse.Data;
477
- }
478
-
479
- export namespace IntegrationUnlinkResponse {
480
- /**
481
- * External billing or CRM integration link
482
- */
483
- export interface Data {
484
- /**
485
- * Integration details
486
- */
487
- id: string;
488
-
489
- /**
490
- * Synced entity id
491
- */
492
- syncedEntityId: string | null;
493
-
494
- /**
495
- * The vendor identifier of integration
496
- */
497
- vendorIdentifier:
498
- | 'AUTH0'
499
- | 'ZUORA'
500
- | 'STRIPE'
501
- | 'HUBSPOT'
502
- | 'AWS_MARKETPLACE'
503
- | 'SNOWFLAKE'
504
- | 'SALESFORCE'
505
- | 'BIG_QUERY'
506
- | 'OPEN_FGA'
507
- | 'APP_STORE';
508
-
509
- /**
510
- * Price billing sync revision data containing billing ID, link URL, and price
511
- * group package billing ID
512
- */
513
- syncData?:
514
- | Data.SyncRevisionPriceBillingData
515
- | Data.SyncRevisionBillingData
516
- | Data.SyncRevisionMarketplaceData
517
- | null;
518
- }
519
-
520
- export namespace Data {
521
- /**
522
- * Price billing sync revision data containing billing ID, link URL, and price
523
- * group package billing ID
524
- */
525
- export interface SyncRevisionPriceBillingData {
526
- /**
527
- * Billing integration id
528
- */
529
- billingId: string;
530
-
531
- /**
532
- * Billing integration url
533
- */
534
- billingLinkUrl: string;
535
-
536
- /**
537
- * Price group package billing id
538
- */
539
- priceGroupPackageBillingId: string;
540
- }
541
-
542
- /**
543
- * Billing sync revision data containing billing ID and link URL
544
- */
545
- export interface SyncRevisionBillingData {
546
- /**
547
- * Billing integration id
548
- */
549
- billingId: string;
550
-
551
- /**
552
- * Billing integration url
553
- */
554
- billingLinkUrl: string;
555
- }
556
-
557
- /**
558
- * Marketplace sync revision data containing dimensions
559
- */
560
- export interface SyncRevisionMarketplaceData {
561
- /**
562
- * Dimensions of the marketplace sync revision
563
- */
564
- dimensions: string;
565
- }
566
- }
567
- }
568
-
569
170
  export interface IntegrationRetrieveParams {
570
171
  /**
571
172
  * Customer slug
@@ -629,11 +230,7 @@ export interface IntegrationUnlinkParams {
629
230
 
630
231
  export declare namespace Integrations {
631
232
  export {
632
- type IntegrationRetrieveResponse as IntegrationRetrieveResponse,
633
- type IntegrationUpdateResponse as IntegrationUpdateResponse,
634
233
  type IntegrationListResponse as IntegrationListResponse,
635
- type IntegrationLinkResponse as IntegrationLinkResponse,
636
- type IntegrationUnlinkResponse as IntegrationUnlinkResponse,
637
234
  type IntegrationListResponsesMyCursorIDPage as IntegrationListResponsesMyCursorIDPage,
638
235
  type IntegrationRetrieveParams as IntegrationRetrieveParams,
639
236
  type IntegrationUpdateParams as IntegrationUpdateParams,
@@ -23,6 +23,7 @@ export {
23
23
  } from './coupons';
24
24
  export {
25
25
  Customers,
26
+ type CustomerIntegrationResponse,
26
27
  type CustomerResponse,
27
28
  type CustomerListResponse,
28
29
  type CustomerImportResponse,
@@ -222,12 +222,6 @@ export interface UsageHistoryParams {
222
222
  */
223
223
  groupBy?: string;
224
224
 
225
- /**
226
- * Query param: When true, includes usage data from the most recent cancelled or
227
- * expired subscription
228
- */
229
- includeInactiveSubscriptions?: boolean;
230
-
231
225
  /**
232
226
  * Query param: Resource id
233
227
  */
@@ -57,6 +57,7 @@ import * as CustomersAPI from './customers/customers';
57
57
  import {
58
58
  CustomerImportParams,
59
59
  CustomerImportResponse,
60
+ CustomerIntegrationResponse,
60
61
  CustomerListParams,
61
62
  CustomerListResourcesParams,
62
63
  CustomerListResourcesResponse,
@@ -130,6 +131,7 @@ V1.Products = Products;
130
131
  export declare namespace V1 {
131
132
  export {
132
133
  Customers as Customers,
134
+ type CustomerIntegrationResponse as CustomerIntegrationResponse,
133
135
  type CustomerResponse as CustomerResponse,
134
136
  type CustomerListResponse as CustomerListResponse,
135
137
  type CustomerImportResponse as CustomerImportResponse,
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.1.0-alpha.26'; // x-release-please-version
1
+ export const VERSION = '0.1.0-alpha.28'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.1.0-alpha.26";
1
+ export declare const VERSION = "0.1.0-alpha.28";
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.26";
1
+ export declare const VERSION = "0.1.0-alpha.28";
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.26'; // x-release-please-version
4
+ exports.VERSION = '0.1.0-alpha.28'; // 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.26'; // x-release-please-version
1
+ export const VERSION = '0.1.0-alpha.28'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map