@usethrottle/api-client 5.20.0 → 5.21.0
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/dist/generated/index.d.ts +1 -0
- package/dist/generated/index.d.ts.map +1 -1
- package/dist/generated/index.js +1 -0
- package/dist/generated/index.js.map +1 -1
- package/dist/generated/services/CustomerGroupsService.d.ts +297 -0
- package/dist/generated/services/CustomerGroupsService.d.ts.map +1 -0
- package/dist/generated/services/CustomerGroupsService.js +182 -0
- package/dist/generated/services/CustomerGroupsService.js.map +1 -0
- package/dist/generated/services/CustomersService.d.ts +179 -1
- package/dist/generated/services/CustomersService.d.ts.map +1 -1
- package/dist/generated/services/CustomersService.js +59 -1
- package/dist/generated/services/CustomersService.js.map +1 -1
- package/dist/generated/services/DefaultService.d.ts +5 -4
- package/dist/generated/services/DefaultService.d.ts.map +1 -1
- package/dist/generated/services/DefaultService.js +8 -4
- package/dist/generated/services/DefaultService.js.map +1 -1
- package/dist/generated/services/DiscountsService.d.ts +56 -0
- package/dist/generated/services/DiscountsService.d.ts.map +1 -1
- package/dist/generated/services/DiscountsService.js.map +1 -1
- package/dist/generated/services/OrdersService.d.ts +152 -0
- package/dist/generated/services/OrdersService.d.ts.map +1 -1
- package/dist/generated/services/OrdersService.js +56 -0
- package/dist/generated/services/OrdersService.js.map +1 -1
- package/dist/generated/services/PaymentsService.d.ts +152 -0
- package/dist/generated/services/PaymentsService.d.ts.map +1 -1
- package/dist/generated/services/PaymentsService.js +57 -1
- package/dist/generated/services/PaymentsService.js.map +1 -1
- package/dist/generated/services/QuotesService.d.ts +212 -0
- package/dist/generated/services/QuotesService.d.ts.map +1 -1
- package/dist/generated/services/QuotesService.js +81 -0
- package/dist/generated/services/QuotesService.js.map +1 -1
- package/dist/generated/services/SubscriptionsService.d.ts +152 -0
- package/dist/generated/services/SubscriptionsService.d.ts.map +1 -1
- package/dist/generated/services/SubscriptionsService.js +56 -0
- package/dist/generated/services/SubscriptionsService.js.map +1 -1
- package/dist/generated/services/WebhooksOutboundService.d.ts +3 -3
- package/dist/generated/services/WebhooksOutboundService.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -17,6 +17,7 @@ export { CartsService } from './services/CartsService.js';
|
|
|
17
17
|
export { CheckoutService } from './services/CheckoutService.js';
|
|
18
18
|
export { CheckoutSessionsService } from './services/CheckoutSessionsService.js';
|
|
19
19
|
export { ConnectorsService } from './services/ConnectorsService.js';
|
|
20
|
+
export { CustomerGroupsService } from './services/CustomerGroupsService.js';
|
|
20
21
|
export { CustomerInvoicesService } from './services/CustomerInvoicesService.js';
|
|
21
22
|
export { CustomersService } from './services/CustomersService.js';
|
|
22
23
|
export { DefaultService } from './services/DefaultService.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/generated/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC7E,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,YAAY,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAEvD,YAAY,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AAC3E,YAAY,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE/D,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,+BAA+B,EAAE,MAAM,+CAA+C,CAAC;AAChG,OAAO,EAAE,gCAAgC,EAAE,MAAM,gDAAgD,CAAC;AAClG,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AACxE,OAAO,EAAE,YAAY,EAAE,MA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C"}
|
package/dist/generated/index.js
CHANGED
|
@@ -18,6 +18,7 @@ export { CartsService } from './services/CartsService.js';
|
|
|
18
18
|
export { CheckoutService } from './services/CheckoutService.js';
|
|
19
19
|
export { CheckoutSessionsService } from './services/CheckoutSessionsService.js';
|
|
20
20
|
export { ConnectorsService } from './services/ConnectorsService.js';
|
|
21
|
+
export { CustomerGroupsService } from './services/CustomerGroupsService.js';
|
|
21
22
|
export { CustomerInvoicesService } from './services/CustomerInvoicesService.js';
|
|
22
23
|
export { CustomersService } from './services/CustomersService.js';
|
|
23
24
|
export { DefaultService } from './services/DefaultService.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/generated/index.ts"],"names":[],"mappings":"AAAA,+DAA+D;AAC/D,0BAA0B;AAC1B,oBAAoB;AACpB,oBAAoB;AACpB,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC7E,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAM5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,+BAA+B,EAAE,MAAM,+CAA+C,CAAC;AAChG,OAAO,EAAE,gCAAgC,EAAE,MAAM,gDAAgD,CAAC;AAClG,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AACxE,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D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A6B,CAAC;AAC5D,OAAO,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAC1E,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AACxE,OAAO,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AAC5E,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAC1E,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,sBAAsB,EAAE,MAAM,sCAAsC,CAAC;AAC9E,OAAO,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAChF,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAAE,4BAA4B,EAAE,MAAM,4CAA4C,CAAC;AAC1F,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC"}
|
|
@@ -0,0 +1,297 @@
|
|
|
1
|
+
import type { CancelablePromise } from '../core/CancelablePromise.js';
|
|
2
|
+
export declare class CustomerGroupsService {
|
|
3
|
+
/**
|
|
4
|
+
* List every customer group of the environment (at most 50), sorted by name ignoring case, then id. No pagination.
|
|
5
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
6
|
+
* @returns any Default Response
|
|
7
|
+
* @throws ApiError
|
|
8
|
+
*/
|
|
9
|
+
static getApiV1CustomerGroups(xThrottleEnvironmentId?: string): CancelablePromise<{
|
|
10
|
+
data?: Array<{
|
|
11
|
+
id: string;
|
|
12
|
+
name: string;
|
|
13
|
+
kind: 'fixed' | 'percent';
|
|
14
|
+
/**
|
|
15
|
+
* Percent off list price in basis points (10000 = free). `null` for a fixed group.
|
|
16
|
+
*/
|
|
17
|
+
percentBps: number | null;
|
|
18
|
+
enabled: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Starts at 1; moves when kind, percentBps or enabled changes (not on a rename).
|
|
21
|
+
*/
|
|
22
|
+
version: number;
|
|
23
|
+
memberCount: number;
|
|
24
|
+
/**
|
|
25
|
+
* Discounts that name this group.
|
|
26
|
+
*/
|
|
27
|
+
discountCount: number;
|
|
28
|
+
createdAt: string;
|
|
29
|
+
updatedAt: string;
|
|
30
|
+
}>;
|
|
31
|
+
meta?: {
|
|
32
|
+
/**
|
|
33
|
+
* `req_<uuid>`, or a client-supplied id matching `^[A-Za-z0-9_-]{8,128}$`.
|
|
34
|
+
*/
|
|
35
|
+
requestId?: string;
|
|
36
|
+
limit?: 50;
|
|
37
|
+
};
|
|
38
|
+
}>;
|
|
39
|
+
/**
|
|
40
|
+
* Create a customer group. Errors: 409 customer_group_name_taken (names are unique ignoring case), 409 customer_group_limit_reached (details.limit = 50).
|
|
41
|
+
* @param requestBody
|
|
42
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
43
|
+
* @returns any Default Response
|
|
44
|
+
* @throws ApiError
|
|
45
|
+
*/
|
|
46
|
+
static postApiV1CustomerGroups(requestBody: {
|
|
47
|
+
/**
|
|
48
|
+
* Trimmed before the uniqueness check.
|
|
49
|
+
*/
|
|
50
|
+
name: string;
|
|
51
|
+
kind: 'fixed' | 'percent';
|
|
52
|
+
/**
|
|
53
|
+
* Required iff kind is percent.
|
|
54
|
+
*/
|
|
55
|
+
percentBps?: number | null;
|
|
56
|
+
enabled?: boolean;
|
|
57
|
+
}, xThrottleEnvironmentId?: string): CancelablePromise<{
|
|
58
|
+
data?: {
|
|
59
|
+
id: string;
|
|
60
|
+
name: string;
|
|
61
|
+
kind: 'fixed' | 'percent';
|
|
62
|
+
/**
|
|
63
|
+
* Percent off list price in basis points (10000 = free). `null` for a fixed group.
|
|
64
|
+
*/
|
|
65
|
+
percentBps: number | null;
|
|
66
|
+
enabled: boolean;
|
|
67
|
+
/**
|
|
68
|
+
* Starts at 1; moves when kind, percentBps or enabled changes (not on a rename).
|
|
69
|
+
*/
|
|
70
|
+
version: number;
|
|
71
|
+
memberCount: number;
|
|
72
|
+
/**
|
|
73
|
+
* Discounts that name this group.
|
|
74
|
+
*/
|
|
75
|
+
discountCount: number;
|
|
76
|
+
createdAt: string;
|
|
77
|
+
updatedAt: string;
|
|
78
|
+
};
|
|
79
|
+
meta?: {
|
|
80
|
+
/**
|
|
81
|
+
* `req_<uuid>`, or a client-supplied id matching `^[A-Za-z0-9_-]{8,128}$`.
|
|
82
|
+
*/
|
|
83
|
+
requestId?: string;
|
|
84
|
+
pagination?: {
|
|
85
|
+
cursor?: string | null;
|
|
86
|
+
hasMore?: boolean;
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
}>;
|
|
90
|
+
/**
|
|
91
|
+
* Look up the groups of up to 100 customers. Customers in no group, unknown customers and other-environment ids are left out. Its own rate bucket per key and environment. Cache-Control: no-store.
|
|
92
|
+
* @param requestBody
|
|
93
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
94
|
+
* @returns any Default Response
|
|
95
|
+
* @throws ApiError
|
|
96
|
+
*/
|
|
97
|
+
static postApiV1CustomerGroupsLookup(requestBody: {
|
|
98
|
+
/**
|
|
99
|
+
* 1 to 100 customer ids; duplicates count once.
|
|
100
|
+
*/
|
|
101
|
+
customerIds: Array<string>;
|
|
102
|
+
}, xThrottleEnvironmentId?: string): CancelablePromise<{
|
|
103
|
+
data?: {
|
|
104
|
+
memberships?: Array<{
|
|
105
|
+
customerId?: string;
|
|
106
|
+
groupId?: string;
|
|
107
|
+
}>;
|
|
108
|
+
groups?: Array<{
|
|
109
|
+
id?: string;
|
|
110
|
+
kind?: 'fixed' | 'percent';
|
|
111
|
+
percentBps?: number | null;
|
|
112
|
+
enabled?: boolean;
|
|
113
|
+
version?: number;
|
|
114
|
+
}>;
|
|
115
|
+
};
|
|
116
|
+
meta?: {
|
|
117
|
+
/**
|
|
118
|
+
* `req_<uuid>`, or a client-supplied id matching `^[A-Za-z0-9_-]{8,128}$`.
|
|
119
|
+
*/
|
|
120
|
+
requestId?: string;
|
|
121
|
+
pagination?: {
|
|
122
|
+
cursor?: string | null;
|
|
123
|
+
hasMore?: boolean;
|
|
124
|
+
};
|
|
125
|
+
};
|
|
126
|
+
}>;
|
|
127
|
+
/**
|
|
128
|
+
* Get a customer group. Another environment's id answers 404 not_found.
|
|
129
|
+
* @param id Customer group id (UUID).
|
|
130
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
131
|
+
* @returns any Default Response
|
|
132
|
+
* @throws ApiError
|
|
133
|
+
*/
|
|
134
|
+
static getApiV1CustomerGroups1(id: string, xThrottleEnvironmentId?: string): CancelablePromise<{
|
|
135
|
+
data?: {
|
|
136
|
+
id: string;
|
|
137
|
+
name: string;
|
|
138
|
+
kind: 'fixed' | 'percent';
|
|
139
|
+
/**
|
|
140
|
+
* Percent off list price in basis points (10000 = free). `null` for a fixed group.
|
|
141
|
+
*/
|
|
142
|
+
percentBps: number | null;
|
|
143
|
+
enabled: boolean;
|
|
144
|
+
/**
|
|
145
|
+
* Starts at 1; moves when kind, percentBps or enabled changes (not on a rename).
|
|
146
|
+
*/
|
|
147
|
+
version: number;
|
|
148
|
+
memberCount: number;
|
|
149
|
+
/**
|
|
150
|
+
* Discounts that name this group.
|
|
151
|
+
*/
|
|
152
|
+
discountCount: number;
|
|
153
|
+
createdAt: string;
|
|
154
|
+
updatedAt: string;
|
|
155
|
+
};
|
|
156
|
+
meta?: {
|
|
157
|
+
/**
|
|
158
|
+
* `req_<uuid>`, or a client-supplied id matching `^[A-Za-z0-9_-]{8,128}$`.
|
|
159
|
+
*/
|
|
160
|
+
requestId?: string;
|
|
161
|
+
pagination?: {
|
|
162
|
+
cursor?: string | null;
|
|
163
|
+
hasMore?: boolean;
|
|
164
|
+
};
|
|
165
|
+
};
|
|
166
|
+
}>;
|
|
167
|
+
/**
|
|
168
|
+
* Update a customer group. Switching to percent needs percentBps; switching to fixed clears it. A no-op PATCH writes nothing and emits nothing.
|
|
169
|
+
* @param id Customer group id (UUID).
|
|
170
|
+
* @param requestBody
|
|
171
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
172
|
+
* @returns any Default Response
|
|
173
|
+
* @throws ApiError
|
|
174
|
+
*/
|
|
175
|
+
static patchApiV1CustomerGroups(id: string, requestBody: {
|
|
176
|
+
name?: string;
|
|
177
|
+
kind?: 'fixed' | 'percent';
|
|
178
|
+
percentBps?: number | null;
|
|
179
|
+
enabled?: boolean;
|
|
180
|
+
}, xThrottleEnvironmentId?: string): CancelablePromise<{
|
|
181
|
+
data?: {
|
|
182
|
+
id: string;
|
|
183
|
+
name: string;
|
|
184
|
+
kind: 'fixed' | 'percent';
|
|
185
|
+
/**
|
|
186
|
+
* Percent off list price in basis points (10000 = free). `null` for a fixed group.
|
|
187
|
+
*/
|
|
188
|
+
percentBps: number | null;
|
|
189
|
+
enabled: boolean;
|
|
190
|
+
/**
|
|
191
|
+
* Starts at 1; moves when kind, percentBps or enabled changes (not on a rename).
|
|
192
|
+
*/
|
|
193
|
+
version: number;
|
|
194
|
+
memberCount: number;
|
|
195
|
+
/**
|
|
196
|
+
* Discounts that name this group.
|
|
197
|
+
*/
|
|
198
|
+
discountCount: number;
|
|
199
|
+
createdAt: string;
|
|
200
|
+
updatedAt: string;
|
|
201
|
+
};
|
|
202
|
+
meta?: {
|
|
203
|
+
/**
|
|
204
|
+
* `req_<uuid>`, or a client-supplied id matching `^[A-Za-z0-9_-]{8,128}$`.
|
|
205
|
+
*/
|
|
206
|
+
requestId?: string;
|
|
207
|
+
pagination?: {
|
|
208
|
+
cursor?: string | null;
|
|
209
|
+
hasMore?: boolean;
|
|
210
|
+
};
|
|
211
|
+
};
|
|
212
|
+
}>;
|
|
213
|
+
/**
|
|
214
|
+
* Delete a customer group and its memberships. 409 customer_group_in_use (details.discounts) while a discount names it.
|
|
215
|
+
* @param id Customer group id (UUID).
|
|
216
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
217
|
+
* @returns any Default Response
|
|
218
|
+
* @throws ApiError
|
|
219
|
+
*/
|
|
220
|
+
static deleteApiV1CustomerGroups(id: string, xThrottleEnvironmentId?: string): CancelablePromise<{
|
|
221
|
+
data?: {
|
|
222
|
+
id?: string;
|
|
223
|
+
deleted?: boolean;
|
|
224
|
+
removedMemberCount?: number;
|
|
225
|
+
};
|
|
226
|
+
meta?: {
|
|
227
|
+
/**
|
|
228
|
+
* `req_<uuid>`, or a client-supplied id matching `^[A-Za-z0-9_-]{8,128}$`.
|
|
229
|
+
*/
|
|
230
|
+
requestId?: string;
|
|
231
|
+
pagination?: {
|
|
232
|
+
cursor?: string | null;
|
|
233
|
+
hasMore?: boolean;
|
|
234
|
+
};
|
|
235
|
+
};
|
|
236
|
+
}>;
|
|
237
|
+
/**
|
|
238
|
+
* Move customers into this group (out of any other). All or nothing: an id that is not a customer of this environment answers 422 customer_not_found (details.customerIds).
|
|
239
|
+
* @param id Customer group id (UUID).
|
|
240
|
+
* @param requestBody
|
|
241
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
242
|
+
* @returns any Default Response
|
|
243
|
+
* @throws ApiError
|
|
244
|
+
*/
|
|
245
|
+
static postApiV1CustomerGroupsMembers(id: string, requestBody: {
|
|
246
|
+
/**
|
|
247
|
+
* 1 to 100 customer ids; duplicates count once.
|
|
248
|
+
*/
|
|
249
|
+
customerIds: Array<string>;
|
|
250
|
+
}, xThrottleEnvironmentId?: string): CancelablePromise<{
|
|
251
|
+
data?: {
|
|
252
|
+
added?: number;
|
|
253
|
+
moved?: number;
|
|
254
|
+
unchanged?: number;
|
|
255
|
+
};
|
|
256
|
+
meta?: {
|
|
257
|
+
/**
|
|
258
|
+
* `req_<uuid>`, or a client-supplied id matching `^[A-Za-z0-9_-]{8,128}$`.
|
|
259
|
+
*/
|
|
260
|
+
requestId?: string;
|
|
261
|
+
pagination?: {
|
|
262
|
+
cursor?: string | null;
|
|
263
|
+
hasMore?: boolean;
|
|
264
|
+
};
|
|
265
|
+
};
|
|
266
|
+
}>;
|
|
267
|
+
/**
|
|
268
|
+
* Remove customers from this group; non-members count as unchanged. Unknown ids answer 422 customer_not_found.
|
|
269
|
+
* @param id Customer group id (UUID).
|
|
270
|
+
* @param requestBody
|
|
271
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
272
|
+
* @returns any Default Response
|
|
273
|
+
* @throws ApiError
|
|
274
|
+
*/
|
|
275
|
+
static postApiV1CustomerGroupsMembersRemove(id: string, requestBody: {
|
|
276
|
+
/**
|
|
277
|
+
* 1 to 100 customer ids; duplicates count once.
|
|
278
|
+
*/
|
|
279
|
+
customerIds: Array<string>;
|
|
280
|
+
}, xThrottleEnvironmentId?: string): CancelablePromise<{
|
|
281
|
+
data?: {
|
|
282
|
+
removed?: number;
|
|
283
|
+
unchanged?: number;
|
|
284
|
+
};
|
|
285
|
+
meta?: {
|
|
286
|
+
/**
|
|
287
|
+
* `req_<uuid>`, or a client-supplied id matching `^[A-Za-z0-9_-]{8,128}$`.
|
|
288
|
+
*/
|
|
289
|
+
requestId?: string;
|
|
290
|
+
pagination?: {
|
|
291
|
+
cursor?: string | null;
|
|
292
|
+
hasMore?: boolean;
|
|
293
|
+
};
|
|
294
|
+
};
|
|
295
|
+
}>;
|
|
296
|
+
}
|
|
297
|
+
//# sourceMappingURL=CustomerGroupsService.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CustomerGroupsService.d.ts","sourceRoot":"","sources":["../../../src/generated/services/CustomerGroupsService.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAGtE,qBAAa,qBAAqB;IAC9B;;;;;OAKG;WACW,sBAAsB,CAChC,sBAAsB,CAAC,EAAE,MAAM,GAChC,iBAAiB,CAAC;QACjB,IAAI,CAAC,EAAE,KAAK,CAAC;YACT,EAAE,EAAE,MAAM,CAAC;YACX,IAAI,EAAE,MAAM,CAAC;YACb,IAAI,EAAE,OAAO,GAAG,SAAS,CAAC;YAC1B;;eAEG;YACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;YAC1B,OAAO,EAAE,OAAO,CAAC;YACjB;;eAEG;YACH,OAAO,EAAE,MAAM,CAAC;YAChB,WAAW,EAAE,MAAM,CAAC;YACpB;;eAEG;YACH,aAAa,EAAE,MAAM,CAAC;YACtB,SAAS,EAAE,MAAM,CAAC;YAClB,SAAS,EAAE,MAAM,CAAC;SACrB,CAAC,CAAC;QACH,IAAI,CAAC,EAAE;YACH;;eAEG;YACH,SAAS,CAAC,EAAE,MAAM,CAAC;YACnB,KAAK,CAAC,EAAE,EAAE,CAAC;SACd,CAAC;KACL,CAAC;IASF;;;;;;OAMG;WACW,uBAAuB,CACjC,WAAW,EAAE;QACT;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,OAAO,GAA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OG;WACW,8BAA8B,CACxC,EAAE,EAAE,MAAM,EACV,WAAW,EAAE;QACT;;WAEG;QACH,WAAW,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;KAC9B,EACD,sBAAsB,CAAC,EAAE,MAAM,GAChC,iBAAiB,CAAC;QACjB,IAAI,CAAC,EAAE;YACH,KAAK,CAAC,EAAE,MAAM,CAAC;YACf,KAAK,CAAC,EAAE,MAAM,CAAC;YACf,SAAS,CAAC,EAAE,MAAM,CAAC;SACtB,CAAC;QACF,IAAI,CAAC,EAAE;YACH;;eAEG;YACH,SAAS,CAAC,EAAE,MAAM,CAAC;YACnB,UAAU,CAAC,EAAE;gBACT,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;gBACvB,OAAO,CAAC,EAAE,OAAO,CAAC;aACrB,CAAC;SACL,CAAC;KACL,CAAC;IAkBF;;;;;;;OAOG;WACW,oCAAoC,CAC9C,EAAE,EAAE,MAAM,EACV,WAAW,EAAE;QACT;;WAEG;QACH,WAAW,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;KAC9B,EACD,sBAAsB,CAAC,EAAE,MAAM,GAChC,iBAAiB,CAAC;QACjB,IAAI,CAAC,EAAE;YACH,OAAO,CAAC,EAAE,MAAM,CAAC;YACjB,SAAS,CAAC,EAAE,MAAM,CAAC;SACtB,CAAC;QACF,IAAI,CAAC,EAAE;YACH;;eAEG;YACH,SAAS,CAAC,EAAE,MAAM,CAAC;YACnB,UAAU,CAAC,EAAE;gBACT,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;gBACvB,OAAO,CAAC,EAAE,OAAO,CAAC;aACrB,CAAC;SACL,CAAC;KACL,CAAC;CAkBL"}
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
import { OpenAPI } from '../core/OpenAPI.js';
|
|
2
|
+
import { request as __request } from '../core/request.js';
|
|
3
|
+
export class CustomerGroupsService {
|
|
4
|
+
/**
|
|
5
|
+
* List every customer group of the environment (at most 50), sorted by name ignoring case, then id. No pagination.
|
|
6
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
7
|
+
* @returns any Default Response
|
|
8
|
+
* @throws ApiError
|
|
9
|
+
*/
|
|
10
|
+
static getApiV1CustomerGroups(xThrottleEnvironmentId) {
|
|
11
|
+
return __request(OpenAPI, {
|
|
12
|
+
method: 'GET',
|
|
13
|
+
url: '/api/v1/customer-groups',
|
|
14
|
+
headers: {
|
|
15
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
16
|
+
},
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Create a customer group. Errors: 409 customer_group_name_taken (names are unique ignoring case), 409 customer_group_limit_reached (details.limit = 50).
|
|
21
|
+
* @param requestBody
|
|
22
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
23
|
+
* @returns any Default Response
|
|
24
|
+
* @throws ApiError
|
|
25
|
+
*/
|
|
26
|
+
static postApiV1CustomerGroups(requestBody, xThrottleEnvironmentId) {
|
|
27
|
+
return __request(OpenAPI, {
|
|
28
|
+
method: 'POST',
|
|
29
|
+
url: '/api/v1/customer-groups',
|
|
30
|
+
headers: {
|
|
31
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
32
|
+
},
|
|
33
|
+
body: requestBody,
|
|
34
|
+
mediaType: 'application/json',
|
|
35
|
+
errors: {
|
|
36
|
+
409: `\`customer_group_name_taken\`: another group of this environment has this name (ignoring case). \`customer_group_limit_reached\`: the environment already has 50 groups (\`details.limit\`).`,
|
|
37
|
+
},
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Look up the groups of up to 100 customers. Customers in no group, unknown customers and other-environment ids are left out. Its own rate bucket per key and environment. Cache-Control: no-store.
|
|
42
|
+
* @param requestBody
|
|
43
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
44
|
+
* @returns any Default Response
|
|
45
|
+
* @throws ApiError
|
|
46
|
+
*/
|
|
47
|
+
static postApiV1CustomerGroupsLookup(requestBody, xThrottleEnvironmentId) {
|
|
48
|
+
return __request(OpenAPI, {
|
|
49
|
+
method: 'POST',
|
|
50
|
+
url: '/api/v1/customer-groups/lookup',
|
|
51
|
+
headers: {
|
|
52
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
53
|
+
},
|
|
54
|
+
body: requestBody,
|
|
55
|
+
mediaType: 'application/json',
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Get a customer group. Another environment's id answers 404 not_found.
|
|
60
|
+
* @param id Customer group id (UUID).
|
|
61
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
62
|
+
* @returns any Default Response
|
|
63
|
+
* @throws ApiError
|
|
64
|
+
*/
|
|
65
|
+
static getApiV1CustomerGroups1(id, xThrottleEnvironmentId) {
|
|
66
|
+
return __request(OpenAPI, {
|
|
67
|
+
method: 'GET',
|
|
68
|
+
url: '/api/v1/customer-groups/{id}',
|
|
69
|
+
path: {
|
|
70
|
+
'id': id,
|
|
71
|
+
},
|
|
72
|
+
headers: {
|
|
73
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
74
|
+
},
|
|
75
|
+
errors: {
|
|
76
|
+
404: `\`not_found\`: no such customer group in this environment (another environment's id, or not a UUID).`,
|
|
77
|
+
},
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Update a customer group. Switching to percent needs percentBps; switching to fixed clears it. A no-op PATCH writes nothing and emits nothing.
|
|
82
|
+
* @param id Customer group id (UUID).
|
|
83
|
+
* @param requestBody
|
|
84
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
85
|
+
* @returns any Default Response
|
|
86
|
+
* @throws ApiError
|
|
87
|
+
*/
|
|
88
|
+
static patchApiV1CustomerGroups(id, requestBody, xThrottleEnvironmentId) {
|
|
89
|
+
return __request(OpenAPI, {
|
|
90
|
+
method: 'PATCH',
|
|
91
|
+
url: '/api/v1/customer-groups/{id}',
|
|
92
|
+
path: {
|
|
93
|
+
'id': id,
|
|
94
|
+
},
|
|
95
|
+
headers: {
|
|
96
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
97
|
+
},
|
|
98
|
+
body: requestBody,
|
|
99
|
+
mediaType: 'application/json',
|
|
100
|
+
errors: {
|
|
101
|
+
404: `\`not_found\`: no such customer group in this environment (another environment's id, or not a UUID).`,
|
|
102
|
+
409: `\`customer_group_name_taken\`: another group of this environment has this name (ignoring case).`,
|
|
103
|
+
},
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Delete a customer group and its memberships. 409 customer_group_in_use (details.discounts) while a discount names it.
|
|
108
|
+
* @param id Customer group id (UUID).
|
|
109
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
110
|
+
* @returns any Default Response
|
|
111
|
+
* @throws ApiError
|
|
112
|
+
*/
|
|
113
|
+
static deleteApiV1CustomerGroups(id, xThrottleEnvironmentId) {
|
|
114
|
+
return __request(OpenAPI, {
|
|
115
|
+
method: 'DELETE',
|
|
116
|
+
url: '/api/v1/customer-groups/{id}',
|
|
117
|
+
path: {
|
|
118
|
+
'id': id,
|
|
119
|
+
},
|
|
120
|
+
headers: {
|
|
121
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
122
|
+
},
|
|
123
|
+
errors: {
|
|
124
|
+
404: `\`not_found\`: no such customer group in this environment (another environment's id, or not a UUID).`,
|
|
125
|
+
409: `\`customer_group_in_use\`: one or more discounts name this group (\`details.discounts\`); nothing changed.`,
|
|
126
|
+
},
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* Move customers into this group (out of any other). All or nothing: an id that is not a customer of this environment answers 422 customer_not_found (details.customerIds).
|
|
131
|
+
* @param id Customer group id (UUID).
|
|
132
|
+
* @param requestBody
|
|
133
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
134
|
+
* @returns any Default Response
|
|
135
|
+
* @throws ApiError
|
|
136
|
+
*/
|
|
137
|
+
static postApiV1CustomerGroupsMembers(id, requestBody, xThrottleEnvironmentId) {
|
|
138
|
+
return __request(OpenAPI, {
|
|
139
|
+
method: 'POST',
|
|
140
|
+
url: '/api/v1/customer-groups/{id}/members',
|
|
141
|
+
path: {
|
|
142
|
+
'id': id,
|
|
143
|
+
},
|
|
144
|
+
headers: {
|
|
145
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
146
|
+
},
|
|
147
|
+
body: requestBody,
|
|
148
|
+
mediaType: 'application/json',
|
|
149
|
+
errors: {
|
|
150
|
+
404: `\`not_found\`: no such customer group in this environment (another environment's id, or not a UUID).`,
|
|
151
|
+
422: `\`customer_not_found\`: one or more ids are not customers of this environment (\`details.customerIds\`); nothing changed.`,
|
|
152
|
+
},
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* Remove customers from this group; non-members count as unchanged. Unknown ids answer 422 customer_not_found.
|
|
157
|
+
* @param id Customer group id (UUID).
|
|
158
|
+
* @param requestBody
|
|
159
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
160
|
+
* @returns any Default Response
|
|
161
|
+
* @throws ApiError
|
|
162
|
+
*/
|
|
163
|
+
static postApiV1CustomerGroupsMembersRemove(id, requestBody, xThrottleEnvironmentId) {
|
|
164
|
+
return __request(OpenAPI, {
|
|
165
|
+
method: 'POST',
|
|
166
|
+
url: '/api/v1/customer-groups/{id}/members/remove',
|
|
167
|
+
path: {
|
|
168
|
+
'id': id,
|
|
169
|
+
},
|
|
170
|
+
headers: {
|
|
171
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
172
|
+
},
|
|
173
|
+
body: requestBody,
|
|
174
|
+
mediaType: 'application/json',
|
|
175
|
+
errors: {
|
|
176
|
+
404: `\`not_found\`: no such customer group in this environment (another environment's id, or not a UUID).`,
|
|
177
|
+
422: `\`customer_not_found\`: one or more ids are not customers of this environment (\`details.customerIds\`); nothing changed.`,
|
|
178
|
+
},
|
|
179
|
+
});
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
//# sourceMappingURL=CustomerGroupsService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CustomerGroupsService.js","sourceRoot":"","sources":["../../../src/generated/services/CustomerGroupsService.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC1D,MAAM,OAAO,qBAAqB;IAC9B;;;;;OAKG;IACI,MAAM,CAAC,sBAAsB,CAChC,sBAA+B;QA+B/B,OAAO,SAAS,CAAC,OAAO,EAAE;YACtB,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,yBAAyB;YAC9B,OAAO,EAAE;gBACL,2BAA2B,EAAE,sBAAsB;aACtD;SACJ,CAAC,CAAC;IACP,CAAC;IACD;;;;;;OAMG;IACI,MAAM,CAAC,uBAAuB,CACjC,WAWC,EACD,sBAA+B;QAkC/B,OAAO,SAAS,CAAC,OAAO,EAAE;YACtB,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,yBAAyB;YAC9B,OAAO,EAAE;gBACL,2BAA2B,EAAE,sBA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