@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.
- package/CHANGELOG.md +41 -0
- package/internal/utils/env.js +2 -2
- package/internal/utils/env.js.map +1 -1
- package/internal/utils/env.mjs +2 -2
- package/internal/utils/env.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/internal/beta/beta.d.mts +2 -2
- package/resources/internal/beta/beta.d.mts.map +1 -1
- package/resources/internal/beta/beta.d.ts +2 -2
- package/resources/internal/beta/beta.d.ts.map +1 -1
- package/resources/internal/beta/beta.js.map +1 -1
- package/resources/internal/beta/beta.mjs.map +1 -1
- package/resources/internal/beta/event-queues.d.mts +10 -154
- package/resources/internal/beta/event-queues.d.mts.map +1 -1
- package/resources/internal/beta/event-queues.d.ts +10 -154
- package/resources/internal/beta/event-queues.d.ts.map +1 -1
- package/resources/internal/beta/event-queues.js.map +1 -1
- package/resources/internal/beta/event-queues.mjs.map +1 -1
- package/resources/internal/beta/index.d.mts +1 -1
- package/resources/internal/beta/index.d.mts.map +1 -1
- package/resources/internal/beta/index.d.ts +1 -1
- package/resources/internal/beta/index.d.ts.map +1 -1
- package/resources/internal/beta/index.js.map +1 -1
- package/resources/internal/beta/index.mjs.map +1 -1
- package/resources/v1/customers/customers.d.mts +83 -3
- package/resources/v1/customers/customers.d.mts.map +1 -1
- package/resources/v1/customers/customers.d.ts +83 -3
- package/resources/v1/customers/customers.d.ts.map +1 -1
- package/resources/v1/customers/customers.js +5 -0
- package/resources/v1/customers/customers.js.map +1 -1
- package/resources/v1/customers/customers.mjs +5 -0
- package/resources/v1/customers/customers.mjs.map +1 -1
- package/resources/v1/customers/index.d.mts +2 -2
- package/resources/v1/customers/index.d.mts.map +1 -1
- package/resources/v1/customers/index.d.ts +2 -2
- package/resources/v1/customers/index.d.ts.map +1 -1
- package/resources/v1/customers/index.js.map +1 -1
- package/resources/v1/customers/index.mjs.map +1 -1
- package/resources/v1/customers/integrations.d.mts +6 -305
- package/resources/v1/customers/integrations.d.mts.map +1 -1
- package/resources/v1/customers/integrations.d.ts +6 -305
- package/resources/v1/customers/integrations.d.ts.map +1 -1
- package/resources/v1/customers/integrations.js.map +1 -1
- package/resources/v1/customers/integrations.mjs.map +1 -1
- package/resources/v1/index.d.mts +1 -1
- package/resources/v1/index.d.mts.map +1 -1
- package/resources/v1/index.d.ts +1 -1
- 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/usage.d.mts +0 -5
- package/resources/v1/usage.d.mts.map +1 -1
- package/resources/v1/usage.d.ts +0 -5
- package/resources/v1/usage.d.ts.map +1 -1
- package/resources/v1/v1.d.mts +2 -2
- package/resources/v1/v1.d.mts.map +1 -1
- package/resources/v1/v1.d.ts +2 -2
- 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/src/internal/utils/env.ts +2 -2
- package/src/resources/internal/beta/beta.ts +2 -8
- package/src/resources/internal/beta/event-queues.ts +10 -266
- package/src/resources/internal/beta/index.ts +1 -4
- package/src/resources/v1/customers/customers.ts +106 -8
- package/src/resources/v1/customers/index.ts +1 -4
- package/src/resources/v1/customers/integrations.ts +5 -408
- package/src/resources/v1/index.ts +1 -0
- package/src/resources/v1/usage.ts +0 -6
- package/src/resources/v1/v1.ts +2 -0
- 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
|
@@ -9,10 +9,10 @@
|
|
|
9
9
|
*/
|
|
10
10
|
export const readEnv = (env: string): string | undefined => {
|
|
11
11
|
if (typeof (globalThis as any).process !== 'undefined') {
|
|
12
|
-
return (globalThis as any).process.env?.[env]?.trim()
|
|
12
|
+
return (globalThis as any).process.env?.[env]?.trim() || undefined;
|
|
13
13
|
}
|
|
14
14
|
if (typeof (globalThis as any).Deno !== 'undefined') {
|
|
15
|
-
return (globalThis as any).Deno.env?.get?.(env)?.trim();
|
|
15
|
+
return (globalThis as any).Deno.env?.get?.(env)?.trim() || undefined;
|
|
16
16
|
}
|
|
17
17
|
return undefined;
|
|
18
18
|
};
|
|
@@ -3,13 +3,10 @@
|
|
|
3
3
|
import { APIResource } from '../../../core/resource';
|
|
4
4
|
import * as EventQueuesAPI from './event-queues';
|
|
5
5
|
import {
|
|
6
|
-
EventQueueDeleteResponse,
|
|
7
6
|
EventQueueListResponse,
|
|
8
7
|
EventQueueProvisionParams,
|
|
9
|
-
|
|
10
|
-
EventQueueRetrieveResponse,
|
|
8
|
+
EventQueueResponse,
|
|
11
9
|
EventQueueUpdateParams,
|
|
12
|
-
EventQueueUpdateResponse,
|
|
13
10
|
EventQueues,
|
|
14
11
|
} from './event-queues';
|
|
15
12
|
|
|
@@ -22,11 +19,8 @@ Beta.EventQueues = EventQueues;
|
|
|
22
19
|
export declare namespace Beta {
|
|
23
20
|
export {
|
|
24
21
|
EventQueues as EventQueues,
|
|
25
|
-
type
|
|
26
|
-
type EventQueueUpdateResponse as EventQueueUpdateResponse,
|
|
22
|
+
type EventQueueResponse as EventQueueResponse,
|
|
27
23
|
type EventQueueListResponse as EventQueueListResponse,
|
|
28
|
-
type EventQueueDeleteResponse as EventQueueDeleteResponse,
|
|
29
|
-
type EventQueueProvisionResponse as EventQueueProvisionResponse,
|
|
30
24
|
type EventQueueUpdateParams as EventQueueUpdateParams,
|
|
31
25
|
type EventQueueProvisionParams as EventQueueProvisionParams,
|
|
32
26
|
};
|
|
@@ -9,7 +9,7 @@ export class EventQueues extends APIResource {
|
|
|
9
9
|
/**
|
|
10
10
|
* Get event queue by queue name
|
|
11
11
|
*/
|
|
12
|
-
retrieve(queueName: string, options?: RequestOptions): APIPromise<
|
|
12
|
+
retrieve(queueName: string, options?: RequestOptions): APIPromise<EventQueueResponse> {
|
|
13
13
|
return this._client.get(path`/internal/beta/event-queues/${queueName}`, options);
|
|
14
14
|
}
|
|
15
15
|
|
|
@@ -20,7 +20,7 @@ export class EventQueues extends APIResource {
|
|
|
20
20
|
queueName: string,
|
|
21
21
|
body: EventQueueUpdateParams,
|
|
22
22
|
options?: RequestOptions,
|
|
23
|
-
): APIPromise<
|
|
23
|
+
): APIPromise<EventQueueResponse> {
|
|
24
24
|
return this._client.patch(path`/internal/beta/event-queues/${queueName}`, { body, ...options });
|
|
25
25
|
}
|
|
26
26
|
|
|
@@ -34,17 +34,14 @@ export class EventQueues extends APIResource {
|
|
|
34
34
|
/**
|
|
35
35
|
* Delete an event queue and tear down its infrastructure
|
|
36
36
|
*/
|
|
37
|
-
delete(queueName: string, options?: RequestOptions): APIPromise<
|
|
37
|
+
delete(queueName: string, options?: RequestOptions): APIPromise<EventQueueResponse> {
|
|
38
38
|
return this._client.delete(path`/internal/beta/event-queues/${queueName}`, options);
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
/**
|
|
42
42
|
* Provision SQS queue, SNS subscriptions, and IAM role for the current environment
|
|
43
43
|
*/
|
|
44
|
-
provision(
|
|
45
|
-
body: EventQueueProvisionParams,
|
|
46
|
-
options?: RequestOptions,
|
|
47
|
-
): APIPromise<EventQueueProvisionResponse> {
|
|
44
|
+
provision(body: EventQueueProvisionParams, options?: RequestOptions): APIPromise<EventQueueResponse> {
|
|
48
45
|
return this._client.post('/internal/beta/event-queues/provision', { body, ...options });
|
|
49
46
|
}
|
|
50
47
|
}
|
|
@@ -52,98 +49,14 @@ export class EventQueues extends APIResource {
|
|
|
52
49
|
/**
|
|
53
50
|
* Response object
|
|
54
51
|
*/
|
|
55
|
-
export interface
|
|
56
|
-
/**
|
|
57
|
-
* Event queue provisioning status and details
|
|
58
|
-
*/
|
|
59
|
-
data: EventQueueRetrieveResponse.Data;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
export namespace EventQueueRetrieveResponse {
|
|
63
|
-
/**
|
|
64
|
-
* Event queue provisioning status and details
|
|
65
|
-
*/
|
|
66
|
-
export interface Data {
|
|
67
|
-
/**
|
|
68
|
-
* Timestamp of when the record was created
|
|
69
|
-
*/
|
|
70
|
-
createdAt: string;
|
|
71
|
-
|
|
72
|
-
/**
|
|
73
|
-
* Unique queue identifier
|
|
74
|
-
*/
|
|
75
|
-
queueName: string;
|
|
76
|
-
|
|
77
|
-
/**
|
|
78
|
-
* AWS region where the queue is deployed
|
|
79
|
-
*/
|
|
80
|
-
region:
|
|
81
|
-
| 'us-east-1'
|
|
82
|
-
| 'us-east-2'
|
|
83
|
-
| 'us-west-1'
|
|
84
|
-
| 'us-west-2'
|
|
85
|
-
| 'ca-central-1'
|
|
86
|
-
| 'eu-west-1'
|
|
87
|
-
| 'eu-west-2'
|
|
88
|
-
| 'eu-west-3'
|
|
89
|
-
| 'eu-central-1'
|
|
90
|
-
| 'eu-central-2'
|
|
91
|
-
| 'eu-north-1'
|
|
92
|
-
| 'eu-south-1'
|
|
93
|
-
| 'eu-south-2'
|
|
94
|
-
| 'ap-southeast-1'
|
|
95
|
-
| 'ap-southeast-2'
|
|
96
|
-
| 'ap-southeast-3'
|
|
97
|
-
| 'ap-northeast-1'
|
|
98
|
-
| 'ap-northeast-2'
|
|
99
|
-
| 'ap-northeast-3'
|
|
100
|
-
| 'ap-south-1'
|
|
101
|
-
| 'ap-south-2'
|
|
102
|
-
| 'ap-east-1'
|
|
103
|
-
| 'sa-east-1'
|
|
104
|
-
| 'af-south-1'
|
|
105
|
-
| 'me-south-1'
|
|
106
|
-
| 'me-central-1'
|
|
107
|
-
| 'il-central-1';
|
|
108
|
-
|
|
109
|
-
/**
|
|
110
|
-
* Current provisioning status
|
|
111
|
-
*/
|
|
112
|
-
status: 'PROVISIONING' | 'ACTIVE' | 'FAILED' | 'DEPROVISIONING';
|
|
113
|
-
|
|
114
|
-
/**
|
|
115
|
-
* Timestamp of when the record was last updated
|
|
116
|
-
*/
|
|
117
|
-
updatedAt: string;
|
|
118
|
-
|
|
119
|
-
/**
|
|
120
|
-
* SQS queue URL
|
|
121
|
-
*/
|
|
122
|
-
queueUrl?: string | null;
|
|
123
|
-
|
|
124
|
-
/**
|
|
125
|
-
* IAM role ARN for queue access
|
|
126
|
-
*/
|
|
127
|
-
roleArn?: string | null;
|
|
128
|
-
|
|
129
|
-
/**
|
|
130
|
-
* Queue suffix for disambiguation
|
|
131
|
-
*/
|
|
132
|
-
suffix?: string | null;
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
/**
|
|
137
|
-
* Response object
|
|
138
|
-
*/
|
|
139
|
-
export interface EventQueueUpdateResponse {
|
|
52
|
+
export interface EventQueueResponse {
|
|
140
53
|
/**
|
|
141
54
|
* Event queue provisioning status and details
|
|
142
55
|
*/
|
|
143
|
-
data:
|
|
56
|
+
data: EventQueueResponse.Data;
|
|
144
57
|
}
|
|
145
58
|
|
|
146
|
-
export namespace
|
|
59
|
+
export namespace EventQueueResponse {
|
|
147
60
|
/**
|
|
148
61
|
* Event queue provisioning status and details
|
|
149
62
|
*/
|
|
@@ -319,174 +232,6 @@ export namespace EventQueueListResponse {
|
|
|
319
232
|
}
|
|
320
233
|
}
|
|
321
234
|
|
|
322
|
-
/**
|
|
323
|
-
* Response object
|
|
324
|
-
*/
|
|
325
|
-
export interface EventQueueDeleteResponse {
|
|
326
|
-
/**
|
|
327
|
-
* Event queue provisioning status and details
|
|
328
|
-
*/
|
|
329
|
-
data: EventQueueDeleteResponse.Data;
|
|
330
|
-
}
|
|
331
|
-
|
|
332
|
-
export namespace EventQueueDeleteResponse {
|
|
333
|
-
/**
|
|
334
|
-
* Event queue provisioning status and details
|
|
335
|
-
*/
|
|
336
|
-
export interface Data {
|
|
337
|
-
/**
|
|
338
|
-
* Timestamp of when the record was created
|
|
339
|
-
*/
|
|
340
|
-
createdAt: string;
|
|
341
|
-
|
|
342
|
-
/**
|
|
343
|
-
* Unique queue identifier
|
|
344
|
-
*/
|
|
345
|
-
queueName: string;
|
|
346
|
-
|
|
347
|
-
/**
|
|
348
|
-
* AWS region where the queue is deployed
|
|
349
|
-
*/
|
|
350
|
-
region:
|
|
351
|
-
| 'us-east-1'
|
|
352
|
-
| 'us-east-2'
|
|
353
|
-
| 'us-west-1'
|
|
354
|
-
| 'us-west-2'
|
|
355
|
-
| 'ca-central-1'
|
|
356
|
-
| 'eu-west-1'
|
|
357
|
-
| 'eu-west-2'
|
|
358
|
-
| 'eu-west-3'
|
|
359
|
-
| 'eu-central-1'
|
|
360
|
-
| 'eu-central-2'
|
|
361
|
-
| 'eu-north-1'
|
|
362
|
-
| 'eu-south-1'
|
|
363
|
-
| 'eu-south-2'
|
|
364
|
-
| 'ap-southeast-1'
|
|
365
|
-
| 'ap-southeast-2'
|
|
366
|
-
| 'ap-southeast-3'
|
|
367
|
-
| 'ap-northeast-1'
|
|
368
|
-
| 'ap-northeast-2'
|
|
369
|
-
| 'ap-northeast-3'
|
|
370
|
-
| 'ap-south-1'
|
|
371
|
-
| 'ap-south-2'
|
|
372
|
-
| 'ap-east-1'
|
|
373
|
-
| 'sa-east-1'
|
|
374
|
-
| 'af-south-1'
|
|
375
|
-
| 'me-south-1'
|
|
376
|
-
| 'me-central-1'
|
|
377
|
-
| 'il-central-1';
|
|
378
|
-
|
|
379
|
-
/**
|
|
380
|
-
* Current provisioning status
|
|
381
|
-
*/
|
|
382
|
-
status: 'PROVISIONING' | 'ACTIVE' | 'FAILED' | 'DEPROVISIONING';
|
|
383
|
-
|
|
384
|
-
/**
|
|
385
|
-
* Timestamp of when the record was last updated
|
|
386
|
-
*/
|
|
387
|
-
updatedAt: string;
|
|
388
|
-
|
|
389
|
-
/**
|
|
390
|
-
* SQS queue URL
|
|
391
|
-
*/
|
|
392
|
-
queueUrl?: string | null;
|
|
393
|
-
|
|
394
|
-
/**
|
|
395
|
-
* IAM role ARN for queue access
|
|
396
|
-
*/
|
|
397
|
-
roleArn?: string | null;
|
|
398
|
-
|
|
399
|
-
/**
|
|
400
|
-
* Queue suffix for disambiguation
|
|
401
|
-
*/
|
|
402
|
-
suffix?: string | null;
|
|
403
|
-
}
|
|
404
|
-
}
|
|
405
|
-
|
|
406
|
-
/**
|
|
407
|
-
* Response object
|
|
408
|
-
*/
|
|
409
|
-
export interface EventQueueProvisionResponse {
|
|
410
|
-
/**
|
|
411
|
-
* Event queue provisioning status and details
|
|
412
|
-
*/
|
|
413
|
-
data: EventQueueProvisionResponse.Data;
|
|
414
|
-
}
|
|
415
|
-
|
|
416
|
-
export namespace EventQueueProvisionResponse {
|
|
417
|
-
/**
|
|
418
|
-
* Event queue provisioning status and details
|
|
419
|
-
*/
|
|
420
|
-
export interface Data {
|
|
421
|
-
/**
|
|
422
|
-
* Timestamp of when the record was created
|
|
423
|
-
*/
|
|
424
|
-
createdAt: string;
|
|
425
|
-
|
|
426
|
-
/**
|
|
427
|
-
* Unique queue identifier
|
|
428
|
-
*/
|
|
429
|
-
queueName: string;
|
|
430
|
-
|
|
431
|
-
/**
|
|
432
|
-
* AWS region where the queue is deployed
|
|
433
|
-
*/
|
|
434
|
-
region:
|
|
435
|
-
| 'us-east-1'
|
|
436
|
-
| 'us-east-2'
|
|
437
|
-
| 'us-west-1'
|
|
438
|
-
| 'us-west-2'
|
|
439
|
-
| 'ca-central-1'
|
|
440
|
-
| 'eu-west-1'
|
|
441
|
-
| 'eu-west-2'
|
|
442
|
-
| 'eu-west-3'
|
|
443
|
-
| 'eu-central-1'
|
|
444
|
-
| 'eu-central-2'
|
|
445
|
-
| 'eu-north-1'
|
|
446
|
-
| 'eu-south-1'
|
|
447
|
-
| 'eu-south-2'
|
|
448
|
-
| 'ap-southeast-1'
|
|
449
|
-
| 'ap-southeast-2'
|
|
450
|
-
| 'ap-southeast-3'
|
|
451
|
-
| 'ap-northeast-1'
|
|
452
|
-
| 'ap-northeast-2'
|
|
453
|
-
| 'ap-northeast-3'
|
|
454
|
-
| 'ap-south-1'
|
|
455
|
-
| 'ap-south-2'
|
|
456
|
-
| 'ap-east-1'
|
|
457
|
-
| 'sa-east-1'
|
|
458
|
-
| 'af-south-1'
|
|
459
|
-
| 'me-south-1'
|
|
460
|
-
| 'me-central-1'
|
|
461
|
-
| 'il-central-1';
|
|
462
|
-
|
|
463
|
-
/**
|
|
464
|
-
* Current provisioning status
|
|
465
|
-
*/
|
|
466
|
-
status: 'PROVISIONING' | 'ACTIVE' | 'FAILED' | 'DEPROVISIONING';
|
|
467
|
-
|
|
468
|
-
/**
|
|
469
|
-
* Timestamp of when the record was last updated
|
|
470
|
-
*/
|
|
471
|
-
updatedAt: string;
|
|
472
|
-
|
|
473
|
-
/**
|
|
474
|
-
* SQS queue URL
|
|
475
|
-
*/
|
|
476
|
-
queueUrl?: string | null;
|
|
477
|
-
|
|
478
|
-
/**
|
|
479
|
-
* IAM role ARN for queue access
|
|
480
|
-
*/
|
|
481
|
-
roleArn?: string | null;
|
|
482
|
-
|
|
483
|
-
/**
|
|
484
|
-
* Queue suffix for disambiguation
|
|
485
|
-
*/
|
|
486
|
-
suffix?: string | null;
|
|
487
|
-
}
|
|
488
|
-
}
|
|
489
|
-
|
|
490
235
|
export interface EventQueueUpdateParams {
|
|
491
236
|
allowedAssumeRoleArns?: Array<string>;
|
|
492
237
|
|
|
@@ -583,6 +328,7 @@ export interface EventQueueUpdateParams {
|
|
|
583
328
|
| 'EDGE_API_PACKAGE_ENTITLEMENTS_DATA_RESYNC'
|
|
584
329
|
| 'EDGE_API_PRODUCT_CACHE_DATA_RESYNC'
|
|
585
330
|
| 'EDGE_API_PLAN_CACHE_DATA_RESYNC'
|
|
331
|
+
| 'EDGE_API_CUSTOM_CURRENCY_CACHE_DATA_RESYNC'
|
|
586
332
|
| 'REPLAY_WEBHOOK_EVENT'
|
|
587
333
|
| 'SUBSCRIPTIONS_MIGRATED'
|
|
588
334
|
| 'SUBSCRIPTIONS_MIGRATION_TRIGGERED'
|
|
@@ -749,6 +495,7 @@ export interface EventQueueProvisionParams {
|
|
|
749
495
|
| 'EDGE_API_PACKAGE_ENTITLEMENTS_DATA_RESYNC'
|
|
750
496
|
| 'EDGE_API_PRODUCT_CACHE_DATA_RESYNC'
|
|
751
497
|
| 'EDGE_API_PLAN_CACHE_DATA_RESYNC'
|
|
498
|
+
| 'EDGE_API_CUSTOM_CURRENCY_CACHE_DATA_RESYNC'
|
|
752
499
|
| 'REPLAY_WEBHOOK_EVENT'
|
|
753
500
|
| 'SUBSCRIPTIONS_MIGRATED'
|
|
754
501
|
| 'SUBSCRIPTIONS_MIGRATION_TRIGGERED'
|
|
@@ -787,11 +534,8 @@ export interface EventQueueProvisionParams {
|
|
|
787
534
|
|
|
788
535
|
export declare namespace EventQueues {
|
|
789
536
|
export {
|
|
790
|
-
type
|
|
791
|
-
type EventQueueUpdateResponse as EventQueueUpdateResponse,
|
|
537
|
+
type EventQueueResponse as EventQueueResponse,
|
|
792
538
|
type EventQueueListResponse as EventQueueListResponse,
|
|
793
|
-
type EventQueueDeleteResponse as EventQueueDeleteResponse,
|
|
794
|
-
type EventQueueProvisionResponse as EventQueueProvisionResponse,
|
|
795
539
|
type EventQueueUpdateParams as EventQueueUpdateParams,
|
|
796
540
|
type EventQueueProvisionParams as EventQueueProvisionParams,
|
|
797
541
|
};
|
|
@@ -3,11 +3,8 @@
|
|
|
3
3
|
export { Beta } from './beta';
|
|
4
4
|
export {
|
|
5
5
|
EventQueues,
|
|
6
|
-
type
|
|
7
|
-
type EventQueueUpdateResponse,
|
|
6
|
+
type EventQueueResponse,
|
|
8
7
|
type EventQueueListResponse,
|
|
9
|
-
type EventQueueDeleteResponse,
|
|
10
|
-
type EventQueueProvisionResponse,
|
|
11
8
|
type EventQueueUpdateParams,
|
|
12
9
|
type EventQueueProvisionParams,
|
|
13
10
|
} from './event-queues';
|
|
@@ -4,16 +4,12 @@ import { APIResource } from '../../../core/resource';
|
|
|
4
4
|
import * as IntegrationsAPI from './integrations';
|
|
5
5
|
import {
|
|
6
6
|
IntegrationLinkParams,
|
|
7
|
-
IntegrationLinkResponse,
|
|
8
7
|
IntegrationListParams,
|
|
9
8
|
IntegrationListResponse,
|
|
10
9
|
IntegrationListResponsesMyCursorIDPage,
|
|
11
10
|
IntegrationRetrieveParams,
|
|
12
|
-
IntegrationRetrieveResponse,
|
|
13
11
|
IntegrationUnlinkParams,
|
|
14
|
-
IntegrationUnlinkResponse,
|
|
15
12
|
IntegrationUpdateParams,
|
|
16
|
-
IntegrationUpdateResponse,
|
|
17
13
|
Integrations,
|
|
18
14
|
} from './integrations';
|
|
19
15
|
import * as PaymentMethodAPI from './payment-method';
|
|
@@ -111,6 +107,11 @@ export class Customers extends APIResource {
|
|
|
111
107
|
/**
|
|
112
108
|
* Retrieves the effective entitlements for a customer or resource, including
|
|
113
109
|
* feature and credit entitlements.
|
|
110
|
+
*
|
|
111
|
+
* **Warning:** This REST API endpoint lacks built-in client-side caching, fallback
|
|
112
|
+
* mechanisms, and low-latency guarantees. It is not recommended for hot-path
|
|
113
|
+
* entitlement checks. For production use, consider using the Stigg Node Server SDK
|
|
114
|
+
* with caching or the Sidecar for low-latency cached responses.
|
|
114
115
|
*/
|
|
115
116
|
retrieveEntitlements(
|
|
116
117
|
id: string,
|
|
@@ -132,6 +133,106 @@ export type CustomerListResponsesMyCursorIDPage = MyCursorIDPage<CustomerListRes
|
|
|
132
133
|
|
|
133
134
|
export type CustomerListResourcesResponsesMyCursorIDPage = MyCursorIDPage<CustomerListResourcesResponse>;
|
|
134
135
|
|
|
136
|
+
/**
|
|
137
|
+
* Response object
|
|
138
|
+
*/
|
|
139
|
+
export interface CustomerIntegrationResponse {
|
|
140
|
+
/**
|
|
141
|
+
* External billing or CRM integration link
|
|
142
|
+
*/
|
|
143
|
+
data: CustomerIntegrationResponse.Data;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
export namespace CustomerIntegrationResponse {
|
|
147
|
+
/**
|
|
148
|
+
* External billing or CRM integration link
|
|
149
|
+
*/
|
|
150
|
+
export interface Data {
|
|
151
|
+
/**
|
|
152
|
+
* Integration details
|
|
153
|
+
*/
|
|
154
|
+
id: string;
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* Synced entity id
|
|
158
|
+
*/
|
|
159
|
+
syncedEntityId: string | null;
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* The vendor identifier of integration
|
|
163
|
+
*/
|
|
164
|
+
vendorIdentifier:
|
|
165
|
+
| 'AUTH0'
|
|
166
|
+
| 'ZUORA'
|
|
167
|
+
| 'STRIPE'
|
|
168
|
+
| 'HUBSPOT'
|
|
169
|
+
| 'AWS_MARKETPLACE'
|
|
170
|
+
| 'SNOWFLAKE'
|
|
171
|
+
| 'SALESFORCE'
|
|
172
|
+
| 'BIG_QUERY'
|
|
173
|
+
| 'OPEN_FGA'
|
|
174
|
+
| 'APP_STORE';
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* Price billing sync revision data containing billing ID, link URL, and price
|
|
178
|
+
* group package billing ID
|
|
179
|
+
*/
|
|
180
|
+
syncData?:
|
|
181
|
+
| Data.SyncRevisionPriceBillingData
|
|
182
|
+
| Data.SyncRevisionBillingData
|
|
183
|
+
| Data.SyncRevisionMarketplaceData
|
|
184
|
+
| null;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
export namespace Data {
|
|
188
|
+
/**
|
|
189
|
+
* Price billing sync revision data containing billing ID, link URL, and price
|
|
190
|
+
* group package billing ID
|
|
191
|
+
*/
|
|
192
|
+
export interface SyncRevisionPriceBillingData {
|
|
193
|
+
/**
|
|
194
|
+
* Billing integration id
|
|
195
|
+
*/
|
|
196
|
+
billingId: string;
|
|
197
|
+
|
|
198
|
+
/**
|
|
199
|
+
* Billing integration url
|
|
200
|
+
*/
|
|
201
|
+
billingLinkUrl: string;
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* Price group package billing id
|
|
205
|
+
*/
|
|
206
|
+
priceGroupPackageBillingId: string;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
/**
|
|
210
|
+
* Billing sync revision data containing billing ID and link URL
|
|
211
|
+
*/
|
|
212
|
+
export interface SyncRevisionBillingData {
|
|
213
|
+
/**
|
|
214
|
+
* Billing integration id
|
|
215
|
+
*/
|
|
216
|
+
billingId: string;
|
|
217
|
+
|
|
218
|
+
/**
|
|
219
|
+
* Billing integration url
|
|
220
|
+
*/
|
|
221
|
+
billingLinkUrl: string;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
/**
|
|
225
|
+
* Marketplace sync revision data containing dimensions
|
|
226
|
+
*/
|
|
227
|
+
export interface SyncRevisionMarketplaceData {
|
|
228
|
+
/**
|
|
229
|
+
* Dimensions of the marketplace sync revision
|
|
230
|
+
*/
|
|
231
|
+
dimensions: string;
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
|
|
135
236
|
/**
|
|
136
237
|
* Response object
|
|
137
238
|
*/
|
|
@@ -2752,6 +2853,7 @@ Customers.Integrations = Integrations;
|
|
|
2752
2853
|
|
|
2753
2854
|
export declare namespace Customers {
|
|
2754
2855
|
export {
|
|
2856
|
+
type CustomerIntegrationResponse as CustomerIntegrationResponse,
|
|
2755
2857
|
type CustomerResponse as CustomerResponse,
|
|
2756
2858
|
type CustomerListResponse as CustomerListResponse,
|
|
2757
2859
|
type CustomerImportResponse as CustomerImportResponse,
|
|
@@ -2782,11 +2884,7 @@ export declare namespace Customers {
|
|
|
2782
2884
|
|
|
2783
2885
|
export {
|
|
2784
2886
|
Integrations as Integrations,
|
|
2785
|
-
type IntegrationRetrieveResponse as IntegrationRetrieveResponse,
|
|
2786
|
-
type IntegrationUpdateResponse as IntegrationUpdateResponse,
|
|
2787
2887
|
type IntegrationListResponse as IntegrationListResponse,
|
|
2788
|
-
type IntegrationLinkResponse as IntegrationLinkResponse,
|
|
2789
|
-
type IntegrationUnlinkResponse as IntegrationUnlinkResponse,
|
|
2790
2888
|
type IntegrationListResponsesMyCursorIDPage as IntegrationListResponsesMyCursorIDPage,
|
|
2791
2889
|
type IntegrationRetrieveParams as IntegrationRetrieveParams,
|
|
2792
2890
|
type IntegrationUpdateParams as IntegrationUpdateParams,
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
export {
|
|
4
4
|
Customers,
|
|
5
|
+
type CustomerIntegrationResponse,
|
|
5
6
|
type CustomerResponse,
|
|
6
7
|
type CustomerListResponse,
|
|
7
8
|
type CustomerImportResponse,
|
|
@@ -18,11 +19,7 @@ export {
|
|
|
18
19
|
} from './customers';
|
|
19
20
|
export {
|
|
20
21
|
Integrations,
|
|
21
|
-
type IntegrationRetrieveResponse,
|
|
22
|
-
type IntegrationUpdateResponse,
|
|
23
22
|
type IntegrationListResponse,
|
|
24
|
-
type IntegrationLinkResponse,
|
|
25
|
-
type IntegrationUnlinkResponse,
|
|
26
23
|
type IntegrationRetrieveParams,
|
|
27
24
|
type IntegrationUpdateParams,
|
|
28
25
|
type IntegrationListParams,
|