@stigg/typescript 0.1.0-alpha.25 → 0.1.0-alpha.27
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 +46 -0
- package/client.d.mts +3 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +3 -0
- package/client.d.ts.map +1 -1
- package/client.js +3 -0
- package/client.js.map +1 -1
- package/client.mjs +3 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/index.d.mts +1 -0
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/internal/beta/beta.d.mts +10 -0
- package/resources/internal/beta/beta.d.mts.map +1 -0
- package/resources/internal/beta/beta.d.ts +10 -0
- package/resources/internal/beta/beta.d.ts.map +1 -0
- package/resources/internal/beta/beta.js +17 -0
- package/resources/internal/beta/beta.js.map +1 -0
- package/resources/internal/beta/beta.mjs +12 -0
- package/resources/internal/beta/beta.mjs.map +1 -0
- package/resources/internal/beta/event-queues.d.mts +171 -0
- package/resources/internal/beta/event-queues.d.mts.map +1 -0
- package/resources/internal/beta/event-queues.d.ts +171 -0
- package/resources/internal/beta/event-queues.d.ts.map +1 -0
- package/resources/internal/beta/event-queues.js +40 -0
- package/resources/internal/beta/event-queues.js.map +1 -0
- package/resources/internal/beta/event-queues.mjs +36 -0
- package/resources/internal/beta/event-queues.mjs.map +1 -0
- package/resources/internal/beta/index.d.mts +3 -0
- package/resources/internal/beta/index.d.mts.map +1 -0
- package/resources/internal/beta/index.d.ts +3 -0
- package/resources/internal/beta/index.d.ts.map +1 -0
- package/resources/internal/beta/index.js +9 -0
- package/resources/internal/beta/index.js.map +1 -0
- package/resources/internal/beta/index.mjs +4 -0
- package/resources/internal/beta/index.mjs.map +1 -0
- package/resources/internal/beta.d.mts +2 -0
- package/resources/internal/beta.d.mts.map +1 -0
- package/resources/internal/beta.d.ts +2 -0
- package/resources/internal/beta.d.ts.map +1 -0
- package/resources/internal/beta.js +6 -0
- package/resources/internal/beta.js.map +1 -0
- package/resources/internal/beta.mjs +3 -0
- package/resources/internal/beta.mjs.map +1 -0
- package/resources/internal/index.d.mts +3 -0
- package/resources/internal/index.d.mts.map +1 -0
- package/resources/internal/index.d.ts +3 -0
- package/resources/internal/index.d.ts.map +1 -0
- package/resources/internal/index.js +9 -0
- package/resources/internal/index.js.map +1 -0
- package/resources/internal/index.mjs +4 -0
- package/resources/internal/index.mjs.map +1 -0
- package/resources/internal/internal.d.mts +10 -0
- package/resources/internal/internal.d.mts.map +1 -0
- package/resources/internal/internal.d.ts +10 -0
- package/resources/internal/internal.d.ts.map +1 -0
- package/resources/internal/internal.js +17 -0
- package/resources/internal/internal.js.map +1 -0
- package/resources/internal/internal.mjs +12 -0
- package/resources/internal/internal.mjs.map +1 -0
- package/resources/internal.d.mts +2 -0
- package/resources/internal.d.mts.map +1 -0
- package/resources/internal.d.ts +2 -0
- package/resources/internal.d.ts.map +1 -0
- package/resources/internal.js +6 -0
- package/resources/internal.js.map +1 -0
- package/resources/internal.mjs +3 -0
- package/resources/internal.mjs.map +1 -0
- package/resources/v1/customers/customers.d.mts +80 -1
- package/resources/v1/customers/customers.d.mts.map +1 -1
- package/resources/v1/customers/customers.d.ts +80 -1
- package/resources/v1/customers/customers.d.ts.map +1 -1
- package/resources/v1/customers/customers.js +4 -0
- package/resources/v1/customers/customers.js.map +1 -1
- package/resources/v1/customers/customers.mjs +4 -0
- package/resources/v1/customers/customers.mjs.map +1 -1
- package/resources/v1/customers/index.d.mts +2 -1
- package/resources/v1/customers/index.d.mts.map +1 -1
- package/resources/v1/customers/index.d.ts +2 -1
- package/resources/v1/customers/index.d.ts.map +1 -1
- package/resources/v1/customers/index.js +3 -1
- package/resources/v1/customers/index.js.map +1 -1
- package/resources/v1/customers/index.mjs +1 -0
- package/resources/v1/customers/index.mjs.map +1 -1
- package/resources/v1/customers/integrations.d.mts +142 -0
- package/resources/v1/customers/integrations.d.mts.map +1 -0
- package/resources/v1/customers/integrations.d.ts +142 -0
- package/resources/v1/customers/integrations.d.ts.map +1 -0
- package/resources/v1/customers/integrations.js +50 -0
- package/resources/v1/customers/integrations.js.map +1 -0
- package/resources/v1/customers/integrations.mjs +46 -0
- package/resources/v1/customers/integrations.mjs.map +1 -0
- 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/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/client.ts +5 -0
- package/src/resources/index.ts +1 -0
- package/src/resources/internal/beta/beta.ts +27 -0
- package/src/resources/internal/beta/event-queues.ts +540 -0
- package/src/resources/internal/beta/index.ts +10 -0
- package/src/resources/internal/beta.ts +3 -0
- package/src/resources/internal/index.ts +4 -0
- package/src/resources/internal/internal.ts +15 -0
- package/src/resources/internal.ts +3 -0
- package/src/resources/v1/customers/customers.ts +125 -0
- package/src/resources/v1/customers/index.ts +11 -0
- package/src/resources/v1/customers/integrations.ts +241 -0
- package/src/resources/v1/index.ts +1 -0
- 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
|
@@ -1,6 +1,17 @@
|
|
|
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 IntegrationsAPI from './integrations';
|
|
5
|
+
import {
|
|
6
|
+
IntegrationLinkParams,
|
|
7
|
+
IntegrationListParams,
|
|
8
|
+
IntegrationListResponse,
|
|
9
|
+
IntegrationListResponsesMyCursorIDPage,
|
|
10
|
+
IntegrationRetrieveParams,
|
|
11
|
+
IntegrationUnlinkParams,
|
|
12
|
+
IntegrationUpdateParams,
|
|
13
|
+
Integrations,
|
|
14
|
+
} from './integrations';
|
|
4
15
|
import * as PaymentMethodAPI from './payment-method';
|
|
5
16
|
import { PaymentMethod, PaymentMethodAttachParams } from './payment-method';
|
|
6
17
|
import * as PromotionalEntitlementsAPI from './promotional-entitlements';
|
|
@@ -23,6 +34,7 @@ export class Customers extends APIResource {
|
|
|
23
34
|
paymentMethod: PaymentMethodAPI.PaymentMethod = new PaymentMethodAPI.PaymentMethod(this._client);
|
|
24
35
|
promotionalEntitlements: PromotionalEntitlementsAPI.PromotionalEntitlements =
|
|
25
36
|
new PromotionalEntitlementsAPI.PromotionalEntitlements(this._client);
|
|
37
|
+
integrations: IntegrationsAPI.Integrations = new IntegrationsAPI.Integrations(this._client);
|
|
26
38
|
|
|
27
39
|
/**
|
|
28
40
|
* Retrieves a customer by their unique identifier, including billing information
|
|
@@ -116,6 +128,106 @@ export type CustomerListResponsesMyCursorIDPage = MyCursorIDPage<CustomerListRes
|
|
|
116
128
|
|
|
117
129
|
export type CustomerListResourcesResponsesMyCursorIDPage = MyCursorIDPage<CustomerListResourcesResponse>;
|
|
118
130
|
|
|
131
|
+
/**
|
|
132
|
+
* Response object
|
|
133
|
+
*/
|
|
134
|
+
export interface CustomerIntegrationResponse {
|
|
135
|
+
/**
|
|
136
|
+
* External billing or CRM integration link
|
|
137
|
+
*/
|
|
138
|
+
data: CustomerIntegrationResponse.Data;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
export namespace CustomerIntegrationResponse {
|
|
142
|
+
/**
|
|
143
|
+
* External billing or CRM integration link
|
|
144
|
+
*/
|
|
145
|
+
export interface Data {
|
|
146
|
+
/**
|
|
147
|
+
* Integration details
|
|
148
|
+
*/
|
|
149
|
+
id: string;
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* Synced entity id
|
|
153
|
+
*/
|
|
154
|
+
syncedEntityId: string | null;
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* The vendor identifier of integration
|
|
158
|
+
*/
|
|
159
|
+
vendorIdentifier:
|
|
160
|
+
| 'AUTH0'
|
|
161
|
+
| 'ZUORA'
|
|
162
|
+
| 'STRIPE'
|
|
163
|
+
| 'HUBSPOT'
|
|
164
|
+
| 'AWS_MARKETPLACE'
|
|
165
|
+
| 'SNOWFLAKE'
|
|
166
|
+
| 'SALESFORCE'
|
|
167
|
+
| 'BIG_QUERY'
|
|
168
|
+
| 'OPEN_FGA'
|
|
169
|
+
| 'APP_STORE';
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* Price billing sync revision data containing billing ID, link URL, and price
|
|
173
|
+
* group package billing ID
|
|
174
|
+
*/
|
|
175
|
+
syncData?:
|
|
176
|
+
| Data.SyncRevisionPriceBillingData
|
|
177
|
+
| Data.SyncRevisionBillingData
|
|
178
|
+
| Data.SyncRevisionMarketplaceData
|
|
179
|
+
| null;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
export namespace Data {
|
|
183
|
+
/**
|
|
184
|
+
* Price billing sync revision data containing billing ID, link URL, and price
|
|
185
|
+
* group package billing ID
|
|
186
|
+
*/
|
|
187
|
+
export interface SyncRevisionPriceBillingData {
|
|
188
|
+
/**
|
|
189
|
+
* Billing integration id
|
|
190
|
+
*/
|
|
191
|
+
billingId: string;
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* Billing integration url
|
|
195
|
+
*/
|
|
196
|
+
billingLinkUrl: string;
|
|
197
|
+
|
|
198
|
+
/**
|
|
199
|
+
* Price group package billing id
|
|
200
|
+
*/
|
|
201
|
+
priceGroupPackageBillingId: string;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
/**
|
|
205
|
+
* Billing sync revision data containing billing ID and link URL
|
|
206
|
+
*/
|
|
207
|
+
export interface SyncRevisionBillingData {
|
|
208
|
+
/**
|
|
209
|
+
* Billing integration id
|
|
210
|
+
*/
|
|
211
|
+
billingId: string;
|
|
212
|
+
|
|
213
|
+
/**
|
|
214
|
+
* Billing integration url
|
|
215
|
+
*/
|
|
216
|
+
billingLinkUrl: string;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
/**
|
|
220
|
+
* Marketplace sync revision data containing dimensions
|
|
221
|
+
*/
|
|
222
|
+
export interface SyncRevisionMarketplaceData {
|
|
223
|
+
/**
|
|
224
|
+
* Dimensions of the marketplace sync revision
|
|
225
|
+
*/
|
|
226
|
+
dimensions: string;
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
|
|
119
231
|
/**
|
|
120
232
|
* Response object
|
|
121
233
|
*/
|
|
@@ -2732,9 +2844,11 @@ export interface CustomerRetrieveEntitlementsParams {
|
|
|
2732
2844
|
|
|
2733
2845
|
Customers.PaymentMethod = PaymentMethod;
|
|
2734
2846
|
Customers.PromotionalEntitlements = PromotionalEntitlements;
|
|
2847
|
+
Customers.Integrations = Integrations;
|
|
2735
2848
|
|
|
2736
2849
|
export declare namespace Customers {
|
|
2737
2850
|
export {
|
|
2851
|
+
type CustomerIntegrationResponse as CustomerIntegrationResponse,
|
|
2738
2852
|
type CustomerResponse as CustomerResponse,
|
|
2739
2853
|
type CustomerListResponse as CustomerListResponse,
|
|
2740
2854
|
type CustomerImportResponse as CustomerImportResponse,
|
|
@@ -2762,4 +2876,15 @@ export declare namespace Customers {
|
|
|
2762
2876
|
type PromotionalEntitlementListParams as PromotionalEntitlementListParams,
|
|
2763
2877
|
type PromotionalEntitlementRevokeParams as PromotionalEntitlementRevokeParams,
|
|
2764
2878
|
};
|
|
2879
|
+
|
|
2880
|
+
export {
|
|
2881
|
+
Integrations as Integrations,
|
|
2882
|
+
type IntegrationListResponse as IntegrationListResponse,
|
|
2883
|
+
type IntegrationListResponsesMyCursorIDPage as IntegrationListResponsesMyCursorIDPage,
|
|
2884
|
+
type IntegrationRetrieveParams as IntegrationRetrieveParams,
|
|
2885
|
+
type IntegrationUpdateParams as IntegrationUpdateParams,
|
|
2886
|
+
type IntegrationListParams as IntegrationListParams,
|
|
2887
|
+
type IntegrationLinkParams as IntegrationLinkParams,
|
|
2888
|
+
type IntegrationUnlinkParams as IntegrationUnlinkParams,
|
|
2889
|
+
};
|
|
2765
2890
|
}
|
|
@@ -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,
|
|
@@ -16,6 +17,16 @@ export {
|
|
|
16
17
|
type CustomerListResponsesMyCursorIDPage,
|
|
17
18
|
type CustomerListResourcesResponsesMyCursorIDPage,
|
|
18
19
|
} from './customers';
|
|
20
|
+
export {
|
|
21
|
+
Integrations,
|
|
22
|
+
type IntegrationListResponse,
|
|
23
|
+
type IntegrationRetrieveParams,
|
|
24
|
+
type IntegrationUpdateParams,
|
|
25
|
+
type IntegrationListParams,
|
|
26
|
+
type IntegrationLinkParams,
|
|
27
|
+
type IntegrationUnlinkParams,
|
|
28
|
+
type IntegrationListResponsesMyCursorIDPage,
|
|
29
|
+
} from './integrations';
|
|
19
30
|
export { PaymentMethod, type PaymentMethodAttachParams } from './payment-method';
|
|
20
31
|
export {
|
|
21
32
|
PromotionalEntitlements,
|
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../../core/resource';
|
|
4
|
+
import * as CustomersAPI from './customers';
|
|
5
|
+
import { APIPromise } from '../../../core/api-promise';
|
|
6
|
+
import { MyCursorIDPage, type MyCursorIDPageParams, PagePromise } from '../../../core/pagination';
|
|
7
|
+
import { RequestOptions } from '../../../internal/request-options';
|
|
8
|
+
import { path } from '../../../internal/utils/path';
|
|
9
|
+
|
|
10
|
+
export class Integrations extends APIResource {
|
|
11
|
+
/**
|
|
12
|
+
* Retrieves a specific integration for a customer by integration ID.
|
|
13
|
+
*/
|
|
14
|
+
retrieve(
|
|
15
|
+
integrationID: string,
|
|
16
|
+
params: IntegrationRetrieveParams,
|
|
17
|
+
options?: RequestOptions,
|
|
18
|
+
): APIPromise<CustomersAPI.CustomerIntegrationResponse> {
|
|
19
|
+
const { id } = params;
|
|
20
|
+
return this._client.get(path`/api/v1/customers/${id}/integrations/${integrationID}`, options);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Updates a customer's integration link, such as changing the synced external
|
|
25
|
+
* entity ID.
|
|
26
|
+
*/
|
|
27
|
+
update(
|
|
28
|
+
integrationID: string,
|
|
29
|
+
params: IntegrationUpdateParams,
|
|
30
|
+
options?: RequestOptions,
|
|
31
|
+
): APIPromise<CustomersAPI.CustomerIntegrationResponse> {
|
|
32
|
+
const { id, ...body } = params;
|
|
33
|
+
return this._client.patch(path`/api/v1/customers/${id}/integrations/${integrationID}`, {
|
|
34
|
+
body,
|
|
35
|
+
...options,
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Retrieves a paginated list of a customer's external integrations (billing, CRM,
|
|
41
|
+
* etc.).
|
|
42
|
+
*/
|
|
43
|
+
list(
|
|
44
|
+
id: string,
|
|
45
|
+
query: IntegrationListParams | null | undefined = {},
|
|
46
|
+
options?: RequestOptions,
|
|
47
|
+
): PagePromise<IntegrationListResponsesMyCursorIDPage, IntegrationListResponse> {
|
|
48
|
+
return this._client.getAPIList(
|
|
49
|
+
path`/api/v1/customers/${id}/integrations`,
|
|
50
|
+
MyCursorIDPage<IntegrationListResponse>,
|
|
51
|
+
{ query, ...options },
|
|
52
|
+
);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Links a customer to an external integration by specifying the vendor and
|
|
57
|
+
* external entity ID.
|
|
58
|
+
*/
|
|
59
|
+
link(
|
|
60
|
+
id: string,
|
|
61
|
+
body: IntegrationLinkParams,
|
|
62
|
+
options?: RequestOptions,
|
|
63
|
+
): APIPromise<CustomersAPI.CustomerIntegrationResponse> {
|
|
64
|
+
return this._client.post(path`/api/v1/customers/${id}/integrations`, { body, ...options });
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Removes the link between a customer and an external integration.
|
|
69
|
+
*/
|
|
70
|
+
unlink(
|
|
71
|
+
integrationID: string,
|
|
72
|
+
params: IntegrationUnlinkParams,
|
|
73
|
+
options?: RequestOptions,
|
|
74
|
+
): APIPromise<CustomersAPI.CustomerIntegrationResponse> {
|
|
75
|
+
const { id } = params;
|
|
76
|
+
return this._client.delete(path`/api/v1/customers/${id}/integrations/${integrationID}`, options);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export type IntegrationListResponsesMyCursorIDPage = MyCursorIDPage<IntegrationListResponse>;
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* External billing or CRM integration link
|
|
84
|
+
*/
|
|
85
|
+
export interface IntegrationListResponse {
|
|
86
|
+
/**
|
|
87
|
+
* Integration details
|
|
88
|
+
*/
|
|
89
|
+
id: string;
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Synced entity id
|
|
93
|
+
*/
|
|
94
|
+
syncedEntityId: string | null;
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* The vendor identifier of integration
|
|
98
|
+
*/
|
|
99
|
+
vendorIdentifier:
|
|
100
|
+
| 'AUTH0'
|
|
101
|
+
| 'ZUORA'
|
|
102
|
+
| 'STRIPE'
|
|
103
|
+
| 'HUBSPOT'
|
|
104
|
+
| 'AWS_MARKETPLACE'
|
|
105
|
+
| 'SNOWFLAKE'
|
|
106
|
+
| 'SALESFORCE'
|
|
107
|
+
| 'BIG_QUERY'
|
|
108
|
+
| 'OPEN_FGA'
|
|
109
|
+
| 'APP_STORE';
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* Price billing sync revision data containing billing ID, link URL, and price
|
|
113
|
+
* group package billing ID
|
|
114
|
+
*/
|
|
115
|
+
syncData?:
|
|
116
|
+
| IntegrationListResponse.SyncRevisionPriceBillingData
|
|
117
|
+
| IntegrationListResponse.SyncRevisionBillingData
|
|
118
|
+
| IntegrationListResponse.SyncRevisionMarketplaceData
|
|
119
|
+
| null;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export namespace IntegrationListResponse {
|
|
123
|
+
/**
|
|
124
|
+
* Price billing sync revision data containing billing ID, link URL, and price
|
|
125
|
+
* group package billing ID
|
|
126
|
+
*/
|
|
127
|
+
export interface SyncRevisionPriceBillingData {
|
|
128
|
+
/**
|
|
129
|
+
* Billing integration id
|
|
130
|
+
*/
|
|
131
|
+
billingId: string;
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* Billing integration url
|
|
135
|
+
*/
|
|
136
|
+
billingLinkUrl: string;
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* Price group package billing id
|
|
140
|
+
*/
|
|
141
|
+
priceGroupPackageBillingId: string;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* Billing sync revision data containing billing ID and link URL
|
|
146
|
+
*/
|
|
147
|
+
export interface SyncRevisionBillingData {
|
|
148
|
+
/**
|
|
149
|
+
* Billing integration id
|
|
150
|
+
*/
|
|
151
|
+
billingId: string;
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* Billing integration url
|
|
155
|
+
*/
|
|
156
|
+
billingLinkUrl: string;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* Marketplace sync revision data containing dimensions
|
|
161
|
+
*/
|
|
162
|
+
export interface SyncRevisionMarketplaceData {
|
|
163
|
+
/**
|
|
164
|
+
* Dimensions of the marketplace sync revision
|
|
165
|
+
*/
|
|
166
|
+
dimensions: string;
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
export interface IntegrationRetrieveParams {
|
|
171
|
+
/**
|
|
172
|
+
* Customer slug
|
|
173
|
+
*/
|
|
174
|
+
id: string;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
export interface IntegrationUpdateParams {
|
|
178
|
+
/**
|
|
179
|
+
* Path param: Customer slug
|
|
180
|
+
*/
|
|
181
|
+
id: string;
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* Body param: Synced entity id
|
|
185
|
+
*/
|
|
186
|
+
syncedEntityId: string | null;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
export interface IntegrationListParams extends MyCursorIDPageParams {
|
|
190
|
+
/**
|
|
191
|
+
* Filter by vendor identifier. Supports comma-separated values for multiple
|
|
192
|
+
* vendors (e.g., STRIPE,HUBSPOT)
|
|
193
|
+
*/
|
|
194
|
+
vendorIdentifier?: string;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
export interface IntegrationLinkParams {
|
|
198
|
+
/**
|
|
199
|
+
* Integration details
|
|
200
|
+
*/
|
|
201
|
+
id: string;
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* Synced entity id
|
|
205
|
+
*/
|
|
206
|
+
syncedEntityId: string;
|
|
207
|
+
|
|
208
|
+
/**
|
|
209
|
+
* The vendor identifier of integration
|
|
210
|
+
*/
|
|
211
|
+
vendorIdentifier:
|
|
212
|
+
| 'AUTH0'
|
|
213
|
+
| 'ZUORA'
|
|
214
|
+
| 'STRIPE'
|
|
215
|
+
| 'HUBSPOT'
|
|
216
|
+
| 'AWS_MARKETPLACE'
|
|
217
|
+
| 'SNOWFLAKE'
|
|
218
|
+
| 'SALESFORCE'
|
|
219
|
+
| 'BIG_QUERY'
|
|
220
|
+
| 'OPEN_FGA'
|
|
221
|
+
| 'APP_STORE';
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
export interface IntegrationUnlinkParams {
|
|
225
|
+
/**
|
|
226
|
+
* Customer slug
|
|
227
|
+
*/
|
|
228
|
+
id: string;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
export declare namespace Integrations {
|
|
232
|
+
export {
|
|
233
|
+
type IntegrationListResponse as IntegrationListResponse,
|
|
234
|
+
type IntegrationListResponsesMyCursorIDPage as IntegrationListResponsesMyCursorIDPage,
|
|
235
|
+
type IntegrationRetrieveParams as IntegrationRetrieveParams,
|
|
236
|
+
type IntegrationUpdateParams as IntegrationUpdateParams,
|
|
237
|
+
type IntegrationListParams as IntegrationListParams,
|
|
238
|
+
type IntegrationLinkParams as IntegrationLinkParams,
|
|
239
|
+
type IntegrationUnlinkParams as IntegrationUnlinkParams,
|
|
240
|
+
};
|
|
241
|
+
}
|
package/src/resources/v1/v1.ts
CHANGED
|
@@ -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.
|
|
1
|
+
export const VERSION = '0.1.0-alpha.27'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.1.0-alpha.
|
|
1
|
+
export declare const VERSION = "0.1.0-alpha.27";
|
|
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.
|
|
1
|
+
export declare const VERSION = "0.1.0-alpha.27";
|
|
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.
|
|
4
|
+
exports.VERSION = '0.1.0-alpha.27'; // 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.
|
|
1
|
+
export const VERSION = '0.1.0-alpha.27'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|