@swishapp/api-client 0.41.0 → 0.43.0-unstable.20260305130147
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/README.md +55 -0
- package/dist/{client.d.ts → 2026-01/client.d.ts} +19 -8
- package/dist/2026-01/index.d.ts +3 -0
- package/dist/2026-01/index.js +7 -0
- package/dist/{openapi → 2026-01/openapi}/client/index.d.ts +2 -1
- package/dist/{openapi → 2026-01/openapi}/client/types.gen.d.ts +2 -9
- package/dist/{openapi → 2026-01/openapi}/client/utils.gen.d.ts +1 -1
- package/dist/{openapi → 2026-01/openapi}/core/bodySerializer.gen.d.ts +12 -4
- package/dist/{openapi → 2026-01/openapi}/core/params.gen.d.ts +10 -0
- package/dist/2026-01/openapi/core/queryKeySerializer.gen.d.ts +18 -0
- package/dist/2026-01/openapi/index.d.ts +2 -0
- package/dist/{openapi → 2026-01/openapi}/sdk.gen.d.ts +14 -4
- package/dist/{openapi → 2026-01/openapi}/types.gen.d.ts +775 -20
- package/dist/{types.d.ts → 2026-01/types.d.ts} +1 -2
- package/dist/2026-04/client.d.ts +143 -0
- package/dist/2026-04/index.d.ts +3 -0
- package/dist/2026-04/index.js +7 -0
- package/dist/2026-04/openapi/client/client.gen.d.ts +2 -0
- package/dist/2026-04/openapi/client/index.d.ts +8 -0
- package/dist/2026-04/openapi/client/types.gen.d.ts +117 -0
- package/dist/2026-04/openapi/client/utils.gen.d.ts +33 -0
- package/dist/2026-04/openapi/client.gen.d.ts +12 -0
- package/dist/2026-04/openapi/core/auth.gen.d.ts +18 -0
- package/dist/2026-04/openapi/core/bodySerializer.gen.d.ts +25 -0
- package/dist/2026-04/openapi/core/params.gen.d.ts +43 -0
- package/dist/2026-04/openapi/core/pathSerializer.gen.d.ts +33 -0
- package/dist/2026-04/openapi/core/queryKeySerializer.gen.d.ts +18 -0
- package/dist/2026-04/openapi/core/serverSentEvents.gen.d.ts +71 -0
- package/dist/2026-04/openapi/core/types.gen.d.ts +78 -0
- package/dist/2026-04/openapi/core/utils.gen.d.ts +19 -0
- package/dist/2026-04/openapi/index.d.ts +2 -0
- package/dist/2026-04/openapi/sdk.gen.d.ts +279 -0
- package/dist/2026-04/openapi/types.gen.d.ts +4502 -0
- package/dist/2026-04/types.d.ts +57 -0
- package/dist/index.d.ts +1 -3
- package/dist/index.js +6 -4
- package/dist/unstable/client.d.ts +143 -0
- package/dist/unstable/index.d.ts +3 -0
- package/dist/unstable/index.js +7 -0
- package/dist/unstable/openapi/client/client.gen.d.ts +2 -0
- package/dist/unstable/openapi/client/index.d.ts +8 -0
- package/dist/unstable/openapi/client/types.gen.d.ts +117 -0
- package/dist/unstable/openapi/client/utils.gen.d.ts +33 -0
- package/dist/unstable/openapi/client.gen.d.ts +12 -0
- package/dist/unstable/openapi/core/auth.gen.d.ts +18 -0
- package/dist/unstable/openapi/core/bodySerializer.gen.d.ts +25 -0
- package/dist/unstable/openapi/core/params.gen.d.ts +43 -0
- package/dist/unstable/openapi/core/pathSerializer.gen.d.ts +33 -0
- package/dist/unstable/openapi/core/queryKeySerializer.gen.d.ts +18 -0
- package/dist/unstable/openapi/core/serverSentEvents.gen.d.ts +71 -0
- package/dist/unstable/openapi/core/types.gen.d.ts +78 -0
- package/dist/unstable/openapi/core/utils.gen.d.ts +19 -0
- package/dist/unstable/openapi/index.d.ts +2 -0
- package/dist/unstable/openapi/sdk.gen.d.ts +279 -0
- package/dist/unstable/openapi/types.gen.d.ts +4502 -0
- package/dist/unstable/types.d.ts +57 -0
- package/package.json +52 -22
- package/dist/openapi/index.d.ts +0 -2
- /package/dist/{openapi → 2026-01/openapi}/client/client.gen.d.ts +0 -0
- /package/dist/{openapi → 2026-01/openapi}/client.gen.d.ts +0 -0
- /package/dist/{openapi → 2026-01/openapi}/core/auth.gen.d.ts +0 -0
- /package/dist/{openapi → 2026-01/openapi}/core/pathSerializer.gen.d.ts +0 -0
- /package/dist/{openapi → 2026-01/openapi}/core/serverSentEvents.gen.d.ts +0 -0
- /package/dist/{openapi → 2026-01/openapi}/core/types.gen.d.ts +0 -0
- /package/dist/{openapi → 2026-01/openapi}/core/utils.gen.d.ts +0 -0
|
@@ -0,0 +1,4502 @@
|
|
|
1
|
+
export type ClientOptions = {
|
|
2
|
+
baseUrl: 'https://swish.app/api/2026-04' | (string & {});
|
|
3
|
+
};
|
|
4
|
+
export type CreateItem = {
|
|
5
|
+
/**
|
|
6
|
+
* The Shopify ID of the product
|
|
7
|
+
*/
|
|
8
|
+
productId: number;
|
|
9
|
+
/**
|
|
10
|
+
* The Shopify ID of the variant (required when source is 'cart')
|
|
11
|
+
*/
|
|
12
|
+
variantId?: number;
|
|
13
|
+
/**
|
|
14
|
+
* The quantity of the item
|
|
15
|
+
*/
|
|
16
|
+
quantity?: number;
|
|
17
|
+
/**
|
|
18
|
+
* Tags associated with the item (must contain only lowercase letters, numbers, hyphens or underscores)
|
|
19
|
+
*/
|
|
20
|
+
tags?: Array<string>;
|
|
21
|
+
/**
|
|
22
|
+
* Source of the item save (e.g., 'cart' for items saved from cart)
|
|
23
|
+
*/
|
|
24
|
+
source?: 'cart';
|
|
25
|
+
};
|
|
26
|
+
export type PreviewImage = {
|
|
27
|
+
/**
|
|
28
|
+
* Unique identifier for the image
|
|
29
|
+
*/
|
|
30
|
+
id: string;
|
|
31
|
+
/**
|
|
32
|
+
* Alt text for the image
|
|
33
|
+
*/
|
|
34
|
+
altText: string;
|
|
35
|
+
/**
|
|
36
|
+
* URL of the image
|
|
37
|
+
*/
|
|
38
|
+
url: string;
|
|
39
|
+
/**
|
|
40
|
+
* Thumbhash for the image
|
|
41
|
+
*/
|
|
42
|
+
thumbhash: string;
|
|
43
|
+
};
|
|
44
|
+
export type ListDetail = {
|
|
45
|
+
/**
|
|
46
|
+
* The ID of the list
|
|
47
|
+
*/
|
|
48
|
+
id: string;
|
|
49
|
+
/**
|
|
50
|
+
* The name of the list
|
|
51
|
+
*/
|
|
52
|
+
name: string;
|
|
53
|
+
/**
|
|
54
|
+
* The date and time the list was created
|
|
55
|
+
*/
|
|
56
|
+
createdAt: string;
|
|
57
|
+
/**
|
|
58
|
+
* The date and time the list was updated
|
|
59
|
+
*/
|
|
60
|
+
updatedAt: string;
|
|
61
|
+
/**
|
|
62
|
+
* The access level of the list
|
|
63
|
+
*/
|
|
64
|
+
access: 'private' | 'public';
|
|
65
|
+
/**
|
|
66
|
+
* The type of the list
|
|
67
|
+
*/
|
|
68
|
+
type?: 'user' | 'smart' | 'shared';
|
|
69
|
+
/**
|
|
70
|
+
* The number of items in the list
|
|
71
|
+
*/
|
|
72
|
+
itemCount: number;
|
|
73
|
+
/**
|
|
74
|
+
* Array of preview image objects for the first 4 items in the list
|
|
75
|
+
*/
|
|
76
|
+
previewImages: Array<PreviewImage>;
|
|
77
|
+
/**
|
|
78
|
+
* Array of item IDs in the list
|
|
79
|
+
*/
|
|
80
|
+
itemIds: Array<string>;
|
|
81
|
+
};
|
|
82
|
+
export type List = {
|
|
83
|
+
/**
|
|
84
|
+
* The ID of the list
|
|
85
|
+
*/
|
|
86
|
+
id: string;
|
|
87
|
+
/**
|
|
88
|
+
* The name of the list
|
|
89
|
+
*/
|
|
90
|
+
name: string;
|
|
91
|
+
/**
|
|
92
|
+
* The date and time the list was created
|
|
93
|
+
*/
|
|
94
|
+
createdAt: string;
|
|
95
|
+
/**
|
|
96
|
+
* The date and time the list was updated
|
|
97
|
+
*/
|
|
98
|
+
updatedAt: string;
|
|
99
|
+
/**
|
|
100
|
+
* The access level of the list
|
|
101
|
+
*/
|
|
102
|
+
access: 'private' | 'public';
|
|
103
|
+
/**
|
|
104
|
+
* The type of the list
|
|
105
|
+
*/
|
|
106
|
+
type?: 'user' | 'smart' | 'shared';
|
|
107
|
+
};
|
|
108
|
+
export type Error = {
|
|
109
|
+
/**
|
|
110
|
+
* The error message
|
|
111
|
+
*/
|
|
112
|
+
message: string;
|
|
113
|
+
/**
|
|
114
|
+
* The error type
|
|
115
|
+
*/
|
|
116
|
+
error: string;
|
|
117
|
+
/**
|
|
118
|
+
* The HTTP status code of the error
|
|
119
|
+
*/
|
|
120
|
+
statusCode: number;
|
|
121
|
+
/**
|
|
122
|
+
* The ID of the request that caused the error
|
|
123
|
+
*/
|
|
124
|
+
requestId: string;
|
|
125
|
+
};
|
|
126
|
+
export type ErrorResponse = {
|
|
127
|
+
/**
|
|
128
|
+
* Error details
|
|
129
|
+
*/
|
|
130
|
+
error: Error;
|
|
131
|
+
};
|
|
132
|
+
export type PageInfo = {
|
|
133
|
+
/**
|
|
134
|
+
* The cursor for the next page
|
|
135
|
+
*/
|
|
136
|
+
next: string | null;
|
|
137
|
+
/**
|
|
138
|
+
* The cursor for the previous page
|
|
139
|
+
*/
|
|
140
|
+
previous: string | null;
|
|
141
|
+
/**
|
|
142
|
+
* The total number of items across all pages
|
|
143
|
+
*/
|
|
144
|
+
totalCount: number;
|
|
145
|
+
};
|
|
146
|
+
export type PaginatedResponse = {
|
|
147
|
+
/**
|
|
148
|
+
* Response data
|
|
149
|
+
*/
|
|
150
|
+
data: {
|
|
151
|
+
[key: string]: unknown;
|
|
152
|
+
};
|
|
153
|
+
pageInfo: PageInfo;
|
|
154
|
+
};
|
|
155
|
+
export type Response = {
|
|
156
|
+
/**
|
|
157
|
+
* Response data
|
|
158
|
+
*/
|
|
159
|
+
data: {
|
|
160
|
+
[key: string]: unknown;
|
|
161
|
+
};
|
|
162
|
+
};
|
|
163
|
+
export type CreateList = {
|
|
164
|
+
/**
|
|
165
|
+
* The name of the list
|
|
166
|
+
*/
|
|
167
|
+
name: string;
|
|
168
|
+
/**
|
|
169
|
+
* Items to add to the list when creating it
|
|
170
|
+
*/
|
|
171
|
+
items?: Array<CreateItem>;
|
|
172
|
+
};
|
|
173
|
+
export type UpdateList = {
|
|
174
|
+
/**
|
|
175
|
+
* The name of the list
|
|
176
|
+
*/
|
|
177
|
+
name?: string;
|
|
178
|
+
/**
|
|
179
|
+
* The access level of the list
|
|
180
|
+
*/
|
|
181
|
+
access?: 'private' | 'public';
|
|
182
|
+
};
|
|
183
|
+
export type SetListItemsOrder = {
|
|
184
|
+
/**
|
|
185
|
+
* The list of item IDs to reorder
|
|
186
|
+
*/
|
|
187
|
+
itemIds: Array<string>;
|
|
188
|
+
};
|
|
189
|
+
export type AddItemsToList = {
|
|
190
|
+
/**
|
|
191
|
+
* The list of item IDs to add to the list
|
|
192
|
+
*/
|
|
193
|
+
itemIds: Array<string>;
|
|
194
|
+
};
|
|
195
|
+
export type ItemCount = {
|
|
196
|
+
/**
|
|
197
|
+
* The total number of items
|
|
198
|
+
*/
|
|
199
|
+
count: number;
|
|
200
|
+
};
|
|
201
|
+
export type ItemDetail = {
|
|
202
|
+
/**
|
|
203
|
+
* The ID of the item
|
|
204
|
+
*/
|
|
205
|
+
id: string;
|
|
206
|
+
/**
|
|
207
|
+
* The Shopify ID of the product
|
|
208
|
+
*/
|
|
209
|
+
productId: number;
|
|
210
|
+
/**
|
|
211
|
+
* The Shopify ID of the variant
|
|
212
|
+
*/
|
|
213
|
+
variantId: number | null;
|
|
214
|
+
/**
|
|
215
|
+
* The quantity of the item in the list
|
|
216
|
+
*/
|
|
217
|
+
quantity: number;
|
|
218
|
+
/**
|
|
219
|
+
* The date and time the item was created
|
|
220
|
+
*/
|
|
221
|
+
createdAt: string;
|
|
222
|
+
/**
|
|
223
|
+
* The date and time the item was updated
|
|
224
|
+
*/
|
|
225
|
+
updatedAt: string;
|
|
226
|
+
/**
|
|
227
|
+
* Item metadata
|
|
228
|
+
*/
|
|
229
|
+
metadata?: {
|
|
230
|
+
[key: string]: unknown;
|
|
231
|
+
} | null;
|
|
232
|
+
/**
|
|
233
|
+
* The list IDs the item is associated with
|
|
234
|
+
*/
|
|
235
|
+
listIds: Array<string>;
|
|
236
|
+
};
|
|
237
|
+
export type Item = {
|
|
238
|
+
/**
|
|
239
|
+
* The ID of the item
|
|
240
|
+
*/
|
|
241
|
+
id: string;
|
|
242
|
+
/**
|
|
243
|
+
* The Shopify ID of the product
|
|
244
|
+
*/
|
|
245
|
+
productId: number;
|
|
246
|
+
/**
|
|
247
|
+
* The Shopify ID of the variant
|
|
248
|
+
*/
|
|
249
|
+
variantId: number | null;
|
|
250
|
+
/**
|
|
251
|
+
* The quantity of the item in the list
|
|
252
|
+
*/
|
|
253
|
+
quantity: number;
|
|
254
|
+
/**
|
|
255
|
+
* The date and time the item was created
|
|
256
|
+
*/
|
|
257
|
+
createdAt: string;
|
|
258
|
+
/**
|
|
259
|
+
* The date and time the item was updated
|
|
260
|
+
*/
|
|
261
|
+
updatedAt: string;
|
|
262
|
+
/**
|
|
263
|
+
* Item metadata
|
|
264
|
+
*/
|
|
265
|
+
metadata?: {
|
|
266
|
+
[key: string]: unknown;
|
|
267
|
+
} | null;
|
|
268
|
+
};
|
|
269
|
+
export type ItemReference = {
|
|
270
|
+
/**
|
|
271
|
+
* The ID of the item
|
|
272
|
+
*/
|
|
273
|
+
id: string;
|
|
274
|
+
};
|
|
275
|
+
export type DeleteItems = {
|
|
276
|
+
itemIds: Array<ItemReference>;
|
|
277
|
+
};
|
|
278
|
+
export type UpdateItem = {
|
|
279
|
+
/**
|
|
280
|
+
* The Shopify ID of the product
|
|
281
|
+
*/
|
|
282
|
+
productId?: number;
|
|
283
|
+
/**
|
|
284
|
+
* The Shopify ID of the variant
|
|
285
|
+
*/
|
|
286
|
+
variantId?: number;
|
|
287
|
+
/**
|
|
288
|
+
* The quantity of the item
|
|
289
|
+
*/
|
|
290
|
+
quantity?: number;
|
|
291
|
+
};
|
|
292
|
+
export type SetItemLists = {
|
|
293
|
+
/**
|
|
294
|
+
* The ID of the item to set the lists for
|
|
295
|
+
*/
|
|
296
|
+
listIds: Array<string>;
|
|
297
|
+
};
|
|
298
|
+
export type NotificationSettings = {
|
|
299
|
+
/**
|
|
300
|
+
* Price drop notifications enabled
|
|
301
|
+
*/
|
|
302
|
+
priceDrop: boolean;
|
|
303
|
+
/**
|
|
304
|
+
* Back in stock notifications enabled
|
|
305
|
+
*/
|
|
306
|
+
backInStock: boolean;
|
|
307
|
+
/**
|
|
308
|
+
* Low in stock notifications enabled
|
|
309
|
+
*/
|
|
310
|
+
lowInStock: boolean;
|
|
311
|
+
};
|
|
312
|
+
export type MarketingConsent = {
|
|
313
|
+
/**
|
|
314
|
+
* Email marketing consent
|
|
315
|
+
*/
|
|
316
|
+
email?: boolean;
|
|
317
|
+
/**
|
|
318
|
+
* Phone marketing consent
|
|
319
|
+
*/
|
|
320
|
+
phone?: boolean;
|
|
321
|
+
};
|
|
322
|
+
export type UpdateProfile = {
|
|
323
|
+
/**
|
|
324
|
+
* About text (metafield)
|
|
325
|
+
*/
|
|
326
|
+
about?: string;
|
|
327
|
+
/**
|
|
328
|
+
* Notification preferences (metafield)
|
|
329
|
+
*/
|
|
330
|
+
notifications?: NotificationSettings;
|
|
331
|
+
/**
|
|
332
|
+
* Marketing consent preferences
|
|
333
|
+
*/
|
|
334
|
+
marketingConsent?: MarketingConsent;
|
|
335
|
+
};
|
|
336
|
+
export type Profile = {
|
|
337
|
+
/**
|
|
338
|
+
* The customer GID
|
|
339
|
+
*/
|
|
340
|
+
id: string;
|
|
341
|
+
/**
|
|
342
|
+
* Display name (defaults to customer name from Shopify)
|
|
343
|
+
*/
|
|
344
|
+
displayName: string;
|
|
345
|
+
/**
|
|
346
|
+
* Email address (nullable)
|
|
347
|
+
*/
|
|
348
|
+
email?: {
|
|
349
|
+
[key: string]: unknown;
|
|
350
|
+
} | null;
|
|
351
|
+
/**
|
|
352
|
+
* About text
|
|
353
|
+
*/
|
|
354
|
+
about: string;
|
|
355
|
+
/**
|
|
356
|
+
* Notification preferences
|
|
357
|
+
*/
|
|
358
|
+
notifications: NotificationSettings;
|
|
359
|
+
/**
|
|
360
|
+
* Marketing consent preferences
|
|
361
|
+
*/
|
|
362
|
+
marketingConsent: MarketingConsent;
|
|
363
|
+
};
|
|
364
|
+
export type CreateProfileTokenResult = {
|
|
365
|
+
/**
|
|
366
|
+
* A Swish API token for the profile
|
|
367
|
+
*/
|
|
368
|
+
token: string;
|
|
369
|
+
/**
|
|
370
|
+
* The profile associated with the token
|
|
371
|
+
*/
|
|
372
|
+
profile: string;
|
|
373
|
+
};
|
|
374
|
+
export type IdentifyProfile = {
|
|
375
|
+
/**
|
|
376
|
+
* The email of the profile to identify
|
|
377
|
+
*/
|
|
378
|
+
email: string;
|
|
379
|
+
/**
|
|
380
|
+
* The phone number of the profile to identify
|
|
381
|
+
*/
|
|
382
|
+
phone: string;
|
|
383
|
+
};
|
|
384
|
+
export type CreateProfileToken = {
|
|
385
|
+
/**
|
|
386
|
+
* A customer GID to create a token for.
|
|
387
|
+
*/
|
|
388
|
+
customer?: string;
|
|
389
|
+
/**
|
|
390
|
+
* A session GID to link to the customer.
|
|
391
|
+
*/
|
|
392
|
+
session?: string;
|
|
393
|
+
};
|
|
394
|
+
export type Analytics = {
|
|
395
|
+
/**
|
|
396
|
+
* The timeframe for this data point (e.g., "2024-01-01 - 2024-01-10")
|
|
397
|
+
*/
|
|
398
|
+
timeframe: string;
|
|
399
|
+
/**
|
|
400
|
+
* Total number of events for this timeframe
|
|
401
|
+
*/
|
|
402
|
+
total: number;
|
|
403
|
+
};
|
|
404
|
+
export type TrackingEventItem = {
|
|
405
|
+
/**
|
|
406
|
+
* Swish item ID
|
|
407
|
+
*/
|
|
408
|
+
iid?: string;
|
|
409
|
+
/**
|
|
410
|
+
* Product ID
|
|
411
|
+
*/
|
|
412
|
+
pid?: string;
|
|
413
|
+
/**
|
|
414
|
+
* Product name
|
|
415
|
+
*/
|
|
416
|
+
pnm?: string;
|
|
417
|
+
/**
|
|
418
|
+
* Product variant ID
|
|
419
|
+
*/
|
|
420
|
+
pvi?: string;
|
|
421
|
+
/**
|
|
422
|
+
* Product variant name
|
|
423
|
+
*/
|
|
424
|
+
pvn?: string;
|
|
425
|
+
/**
|
|
426
|
+
* Vendor name
|
|
427
|
+
*/
|
|
428
|
+
ven?: string;
|
|
429
|
+
/**
|
|
430
|
+
* Image URL
|
|
431
|
+
*/
|
|
432
|
+
img?: string;
|
|
433
|
+
/**
|
|
434
|
+
* Variant SKU
|
|
435
|
+
*/
|
|
436
|
+
sku?: string;
|
|
437
|
+
/**
|
|
438
|
+
* Product taxonomy category
|
|
439
|
+
*/
|
|
440
|
+
pcg?: string;
|
|
441
|
+
/**
|
|
442
|
+
* Product type
|
|
443
|
+
*/
|
|
444
|
+
pty?: string;
|
|
445
|
+
/**
|
|
446
|
+
* Product list index/position
|
|
447
|
+
*/
|
|
448
|
+
pli?: number;
|
|
449
|
+
/**
|
|
450
|
+
* Coupon code
|
|
451
|
+
*/
|
|
452
|
+
cpn?: string;
|
|
453
|
+
/**
|
|
454
|
+
* Price
|
|
455
|
+
*/
|
|
456
|
+
prc?: number;
|
|
457
|
+
/**
|
|
458
|
+
* Compare at price
|
|
459
|
+
*/
|
|
460
|
+
cap?: number;
|
|
461
|
+
/**
|
|
462
|
+
* Quantity
|
|
463
|
+
*/
|
|
464
|
+
qty?: number;
|
|
465
|
+
/**
|
|
466
|
+
* Discount amount
|
|
467
|
+
*/
|
|
468
|
+
dsc?: number;
|
|
469
|
+
};
|
|
470
|
+
export type TrackingEventRequest = {
|
|
471
|
+
/**
|
|
472
|
+
* Event name
|
|
473
|
+
*/
|
|
474
|
+
evn: string;
|
|
475
|
+
/**
|
|
476
|
+
* Currency code
|
|
477
|
+
*/
|
|
478
|
+
ccy?: string;
|
|
479
|
+
/**
|
|
480
|
+
* Monetary value associated with the event
|
|
481
|
+
*/
|
|
482
|
+
val?: number;
|
|
483
|
+
/**
|
|
484
|
+
* Transaction ID
|
|
485
|
+
*/
|
|
486
|
+
tid?: string;
|
|
487
|
+
/**
|
|
488
|
+
* Channel
|
|
489
|
+
*/
|
|
490
|
+
chn?: string;
|
|
491
|
+
/**
|
|
492
|
+
* Surface where the event occurred
|
|
493
|
+
*/
|
|
494
|
+
sur?: string;
|
|
495
|
+
/**
|
|
496
|
+
* Content section
|
|
497
|
+
*/
|
|
498
|
+
cnt?: string;
|
|
499
|
+
/**
|
|
500
|
+
* Campaign identifier
|
|
501
|
+
*/
|
|
502
|
+
cmp?: string;
|
|
503
|
+
/**
|
|
504
|
+
* Market ID
|
|
505
|
+
*/
|
|
506
|
+
mrk?: string;
|
|
507
|
+
/**
|
|
508
|
+
* Region
|
|
509
|
+
*/
|
|
510
|
+
reg?: string;
|
|
511
|
+
/**
|
|
512
|
+
* Language code
|
|
513
|
+
*/
|
|
514
|
+
lng?: string;
|
|
515
|
+
/**
|
|
516
|
+
* Product list ID (Shopify collection ID)
|
|
517
|
+
*/
|
|
518
|
+
pls?: string;
|
|
519
|
+
/**
|
|
520
|
+
* Product list name
|
|
521
|
+
*/
|
|
522
|
+
pln?: string;
|
|
523
|
+
/**
|
|
524
|
+
* Swish list ID
|
|
525
|
+
*/
|
|
526
|
+
lid?: string;
|
|
527
|
+
/**
|
|
528
|
+
* Swish list name
|
|
529
|
+
*/
|
|
530
|
+
lnm?: string;
|
|
531
|
+
/**
|
|
532
|
+
* Source of the event
|
|
533
|
+
*/
|
|
534
|
+
src?: string;
|
|
535
|
+
/**
|
|
536
|
+
* Array of items associated with the event
|
|
537
|
+
*/
|
|
538
|
+
itm?: Array<TrackingEventItem>;
|
|
539
|
+
};
|
|
540
|
+
export type OrderProductVariant = {
|
|
541
|
+
/**
|
|
542
|
+
* The product variant ID
|
|
543
|
+
*/
|
|
544
|
+
id: string;
|
|
545
|
+
/**
|
|
546
|
+
* The product variant title
|
|
547
|
+
*/
|
|
548
|
+
title: string;
|
|
549
|
+
/**
|
|
550
|
+
* Whether the product variant is available for sale
|
|
551
|
+
*/
|
|
552
|
+
availableForSale: boolean;
|
|
553
|
+
/**
|
|
554
|
+
* The image of the variant
|
|
555
|
+
*/
|
|
556
|
+
image: PreviewImage | null;
|
|
557
|
+
};
|
|
558
|
+
export type OrderProduct = {
|
|
559
|
+
/**
|
|
560
|
+
* The product ID
|
|
561
|
+
*/
|
|
562
|
+
id: string;
|
|
563
|
+
/**
|
|
564
|
+
* The product title
|
|
565
|
+
*/
|
|
566
|
+
title: string;
|
|
567
|
+
};
|
|
568
|
+
export type Money = {
|
|
569
|
+
/**
|
|
570
|
+
* The currency code
|
|
571
|
+
*/
|
|
572
|
+
currencyCode: string;
|
|
573
|
+
/**
|
|
574
|
+
* The amount
|
|
575
|
+
*/
|
|
576
|
+
amount: number;
|
|
577
|
+
};
|
|
578
|
+
export type OrderLineItem = {
|
|
579
|
+
/**
|
|
580
|
+
* The order line item ID
|
|
581
|
+
*/
|
|
582
|
+
id: string;
|
|
583
|
+
/**
|
|
584
|
+
* The title of the product combined with title of the variant.
|
|
585
|
+
*/
|
|
586
|
+
title: string;
|
|
587
|
+
/**
|
|
588
|
+
* The product variant associated to the line item.
|
|
589
|
+
*/
|
|
590
|
+
variant: OrderProductVariant | null;
|
|
591
|
+
/**
|
|
592
|
+
* The product associated with the line item.
|
|
593
|
+
*/
|
|
594
|
+
product: OrderProduct | null;
|
|
595
|
+
/**
|
|
596
|
+
* The quantity of items in the line item
|
|
597
|
+
*/
|
|
598
|
+
quantity: number;
|
|
599
|
+
/**
|
|
600
|
+
* The original total price for this order item
|
|
601
|
+
*/
|
|
602
|
+
originalTotalPrice: Money;
|
|
603
|
+
/**
|
|
604
|
+
* Whether the line item requires shipping
|
|
605
|
+
*/
|
|
606
|
+
requiresShipping: boolean;
|
|
607
|
+
/**
|
|
608
|
+
* The unfulfilled quantity of the line item
|
|
609
|
+
*/
|
|
610
|
+
unfulfilledQuantity: number;
|
|
611
|
+
};
|
|
612
|
+
export type TrackingInfo = {
|
|
613
|
+
/**
|
|
614
|
+
* The tracking company
|
|
615
|
+
*/
|
|
616
|
+
company: {
|
|
617
|
+
[key: string]: unknown;
|
|
618
|
+
};
|
|
619
|
+
/**
|
|
620
|
+
* The tracking number
|
|
621
|
+
*/
|
|
622
|
+
number: {
|
|
623
|
+
[key: string]: unknown;
|
|
624
|
+
};
|
|
625
|
+
/**
|
|
626
|
+
* The tracking URL
|
|
627
|
+
*/
|
|
628
|
+
url: {
|
|
629
|
+
[key: string]: unknown;
|
|
630
|
+
};
|
|
631
|
+
};
|
|
632
|
+
export type Fulfillment = {
|
|
633
|
+
/**
|
|
634
|
+
* The fulfillment ID
|
|
635
|
+
*/
|
|
636
|
+
id: string;
|
|
637
|
+
/**
|
|
638
|
+
* The date and time when the fulfillment was delivered
|
|
639
|
+
*/
|
|
640
|
+
deliveredAt: {
|
|
641
|
+
[key: string]: unknown;
|
|
642
|
+
} | null;
|
|
643
|
+
/**
|
|
644
|
+
* The display status of this fulfillment.
|
|
645
|
+
*/
|
|
646
|
+
displayStatus: 'ATTEMPTED_DELIVERY' | 'CANCELED' | 'CARRIER_PICKED_UP' | 'CONFIRMED' | 'DELIVERED' | 'FAILURE' | 'FULFILLED' | 'IN_TRANSIT' | 'MARKED_AS_FULFILLED' | 'NOT_DELIVERED' | 'OUT_FOR_DELIVERY' | 'PICKED_UP' | 'READY_FOR_PICKUP' | 'SUBMITTED';
|
|
647
|
+
/**
|
|
648
|
+
* The date and time when the fulfillment is estimated to be delivered
|
|
649
|
+
*/
|
|
650
|
+
estimatedDeliveryAt: {
|
|
651
|
+
[key: string]: unknown;
|
|
652
|
+
} | null;
|
|
653
|
+
/**
|
|
654
|
+
* The date and time when the fulfillment is in transit
|
|
655
|
+
*/
|
|
656
|
+
inTransitAt: {
|
|
657
|
+
[key: string]: unknown;
|
|
658
|
+
} | null;
|
|
659
|
+
/**
|
|
660
|
+
* The total quantity of the fulfillment
|
|
661
|
+
*/
|
|
662
|
+
totalQuantity: number;
|
|
663
|
+
/**
|
|
664
|
+
* The tracking information
|
|
665
|
+
*/
|
|
666
|
+
trackingInfo: Array<TrackingInfo>;
|
|
667
|
+
/**
|
|
668
|
+
* The line items in the fulfillment
|
|
669
|
+
*/
|
|
670
|
+
lineItems: Array<OrderLineItem>;
|
|
671
|
+
};
|
|
672
|
+
export type OrderDetail = {
|
|
673
|
+
/**
|
|
674
|
+
* The order ID
|
|
675
|
+
*/
|
|
676
|
+
id: string;
|
|
677
|
+
/**
|
|
678
|
+
* The order name
|
|
679
|
+
*/
|
|
680
|
+
name: string;
|
|
681
|
+
/**
|
|
682
|
+
* The date and time when the order was processed
|
|
683
|
+
*/
|
|
684
|
+
processedAt: string;
|
|
685
|
+
/**
|
|
686
|
+
* The total quantity of items in the order
|
|
687
|
+
*/
|
|
688
|
+
totalQuantity: number;
|
|
689
|
+
/**
|
|
690
|
+
* The total price of the order
|
|
691
|
+
*/
|
|
692
|
+
totalPrice: Money;
|
|
693
|
+
/**
|
|
694
|
+
* The main fulfillment status of the order
|
|
695
|
+
*/
|
|
696
|
+
displayStatus: 'FULFILLED' | 'IN_PROGRESS' | 'PARTIALLY_FULFILLED' | 'UNFULFILLED';
|
|
697
|
+
/**
|
|
698
|
+
* Array of fulfillments
|
|
699
|
+
*/
|
|
700
|
+
fulfillments: Array<Fulfillment>;
|
|
701
|
+
/**
|
|
702
|
+
* Array of unfulfilled line items
|
|
703
|
+
*/
|
|
704
|
+
unfulfilledLineItems: Array<OrderLineItem>;
|
|
705
|
+
};
|
|
706
|
+
export type Order = {
|
|
707
|
+
/**
|
|
708
|
+
* The order ID
|
|
709
|
+
*/
|
|
710
|
+
id: string;
|
|
711
|
+
/**
|
|
712
|
+
* The order number
|
|
713
|
+
*/
|
|
714
|
+
name: string;
|
|
715
|
+
/**
|
|
716
|
+
* The date and time when the order was processed
|
|
717
|
+
*/
|
|
718
|
+
processedAt: string;
|
|
719
|
+
/**
|
|
720
|
+
* Human-readable display status
|
|
721
|
+
*/
|
|
722
|
+
displayStatus: 'FULFILLED' | 'IN_PROGRESS' | 'PARTIALLY_FULFILLED' | 'UNFULFILLED';
|
|
723
|
+
/**
|
|
724
|
+
* The total quantity of items in the order
|
|
725
|
+
*/
|
|
726
|
+
totalQuantity: number;
|
|
727
|
+
/**
|
|
728
|
+
* The total price of the order
|
|
729
|
+
*/
|
|
730
|
+
totalPrice: Money;
|
|
731
|
+
/**
|
|
732
|
+
* Preview images from the order line items
|
|
733
|
+
*/
|
|
734
|
+
previewImages: Array<PreviewImage>;
|
|
735
|
+
};
|
|
736
|
+
export type SaveSharedList = {
|
|
737
|
+
/**
|
|
738
|
+
* The ID of the list to save as shared
|
|
739
|
+
*/
|
|
740
|
+
listId: string;
|
|
741
|
+
};
|
|
742
|
+
export type NotificationUnreadCount = {
|
|
743
|
+
/**
|
|
744
|
+
* The total number of unread notifications
|
|
745
|
+
*/
|
|
746
|
+
count: number;
|
|
747
|
+
};
|
|
748
|
+
export type MarkAsRead = {
|
|
749
|
+
/**
|
|
750
|
+
* Array of notification IDs to mark as read
|
|
751
|
+
*/
|
|
752
|
+
notificationIds: Array<string>;
|
|
753
|
+
};
|
|
754
|
+
export type ProductCategory = {
|
|
755
|
+
id: string;
|
|
756
|
+
name: string;
|
|
757
|
+
};
|
|
758
|
+
export type NotificationMoney = {
|
|
759
|
+
amount: string;
|
|
760
|
+
currencyCode: string;
|
|
761
|
+
};
|
|
762
|
+
export type ProductPriceRange = {
|
|
763
|
+
maxVariantPrice: NotificationMoney;
|
|
764
|
+
minVariantPrice: NotificationMoney;
|
|
765
|
+
};
|
|
766
|
+
export type Image = {
|
|
767
|
+
id: string;
|
|
768
|
+
url: string;
|
|
769
|
+
altText?: {
|
|
770
|
+
[key: string]: unknown;
|
|
771
|
+
} | null;
|
|
772
|
+
thumbhash?: {
|
|
773
|
+
[key: string]: unknown;
|
|
774
|
+
} | null;
|
|
775
|
+
};
|
|
776
|
+
export type ProductVariantsCount = {
|
|
777
|
+
count: number;
|
|
778
|
+
};
|
|
779
|
+
export type NotificationProduct = {
|
|
780
|
+
id: string;
|
|
781
|
+
availableForSale: boolean;
|
|
782
|
+
onlineStoreUrl?: {
|
|
783
|
+
[key: string]: unknown;
|
|
784
|
+
} | null;
|
|
785
|
+
handle: string;
|
|
786
|
+
productType: {
|
|
787
|
+
[key: string]: unknown;
|
|
788
|
+
} | null;
|
|
789
|
+
tags: Array<string>;
|
|
790
|
+
title: string;
|
|
791
|
+
category?: ProductCategory | null;
|
|
792
|
+
compareAtPriceRange?: ProductPriceRange | null;
|
|
793
|
+
featuredImage?: Image | null;
|
|
794
|
+
priceRange: ProductPriceRange;
|
|
795
|
+
variantsCount?: ProductVariantsCount | null;
|
|
796
|
+
};
|
|
797
|
+
export type ProductOption = {
|
|
798
|
+
name: string;
|
|
799
|
+
value: string;
|
|
800
|
+
};
|
|
801
|
+
export type NotificationVariant = {
|
|
802
|
+
id: string;
|
|
803
|
+
availableForSale: boolean;
|
|
804
|
+
currentlyNotInStock: boolean;
|
|
805
|
+
sku?: {
|
|
806
|
+
[key: string]: unknown;
|
|
807
|
+
} | null;
|
|
808
|
+
title: string;
|
|
809
|
+
compareAtPrice?: NotificationMoney | null;
|
|
810
|
+
image?: Image | null;
|
|
811
|
+
price: NotificationMoney;
|
|
812
|
+
selectedOptions: Array<ProductOption>;
|
|
813
|
+
};
|
|
814
|
+
export type NotificationContext = {
|
|
815
|
+
/**
|
|
816
|
+
* The market identifier
|
|
817
|
+
*/
|
|
818
|
+
market?: {
|
|
819
|
+
[key: string]: unknown;
|
|
820
|
+
} | null;
|
|
821
|
+
/**
|
|
822
|
+
* The country code
|
|
823
|
+
*/
|
|
824
|
+
country?: {
|
|
825
|
+
[key: string]: unknown;
|
|
826
|
+
} | null;
|
|
827
|
+
/**
|
|
828
|
+
* The language code
|
|
829
|
+
*/
|
|
830
|
+
language?: {
|
|
831
|
+
[key: string]: unknown;
|
|
832
|
+
} | null;
|
|
833
|
+
};
|
|
834
|
+
export type Notification = {
|
|
835
|
+
/**
|
|
836
|
+
* The ID of the notification
|
|
837
|
+
*/
|
|
838
|
+
id: string;
|
|
839
|
+
/**
|
|
840
|
+
* The type of notification. Use this to look up localized title and message on the client.
|
|
841
|
+
*/
|
|
842
|
+
type: 'saved_product_price_drop' | 'saved_product_back_in_stock' | 'saved_product_low_in_stock' | 'subscribed_product_price_drop' | 'subscribed_product_back_in_stock' | 'subscribed_product_low_in_stock';
|
|
843
|
+
/**
|
|
844
|
+
* The product data associated with the notification
|
|
845
|
+
*/
|
|
846
|
+
product: NotificationProduct;
|
|
847
|
+
/**
|
|
848
|
+
* The variant data associated with the notification
|
|
849
|
+
*/
|
|
850
|
+
variant?: NotificationVariant | null;
|
|
851
|
+
/**
|
|
852
|
+
* Context for localization (market/country/language)
|
|
853
|
+
*/
|
|
854
|
+
context: NotificationContext | null;
|
|
855
|
+
/**
|
|
856
|
+
* Metadata associated with the notification
|
|
857
|
+
*/
|
|
858
|
+
metadata: {
|
|
859
|
+
[key: string]: unknown;
|
|
860
|
+
} | null;
|
|
861
|
+
/**
|
|
862
|
+
* Whether the notification has been read
|
|
863
|
+
*/
|
|
864
|
+
read: boolean;
|
|
865
|
+
/**
|
|
866
|
+
* The date and time the notification was created
|
|
867
|
+
*/
|
|
868
|
+
createdAt: string;
|
|
869
|
+
/**
|
|
870
|
+
* The date and time the notification was last updated
|
|
871
|
+
*/
|
|
872
|
+
updatedAt: string;
|
|
873
|
+
};
|
|
874
|
+
export type SubscriptionQuery = {
|
|
875
|
+
/**
|
|
876
|
+
* Filter subscriptions by type
|
|
877
|
+
*/
|
|
878
|
+
type?: 'back_in_stock';
|
|
879
|
+
/**
|
|
880
|
+
* Filter subscriptions by status
|
|
881
|
+
*/
|
|
882
|
+
status?: 'active' | 'cancelled' | 'fulfilled';
|
|
883
|
+
/**
|
|
884
|
+
* Filter subscriptions by product ID
|
|
885
|
+
*/
|
|
886
|
+
productId?: string;
|
|
887
|
+
/**
|
|
888
|
+
* Number of subscriptions to return
|
|
889
|
+
*/
|
|
890
|
+
limit?: number;
|
|
891
|
+
/**
|
|
892
|
+
* The page cursor for pagination
|
|
893
|
+
*/
|
|
894
|
+
page?: string;
|
|
895
|
+
};
|
|
896
|
+
export type UpdateSubscription = {
|
|
897
|
+
/**
|
|
898
|
+
* The status of the subscription
|
|
899
|
+
*/
|
|
900
|
+
status?: 'active' | 'cancelled' | 'fulfilled';
|
|
901
|
+
/**
|
|
902
|
+
* The Shopify variant ID
|
|
903
|
+
*/
|
|
904
|
+
variantId?: {
|
|
905
|
+
[key: string]: unknown;
|
|
906
|
+
} | null;
|
|
907
|
+
};
|
|
908
|
+
export type CreateSubscription = {
|
|
909
|
+
/**
|
|
910
|
+
* The contact information for the subscription (phone or email)
|
|
911
|
+
*/
|
|
912
|
+
contact: string;
|
|
913
|
+
/**
|
|
914
|
+
* The Shopify product ID
|
|
915
|
+
*/
|
|
916
|
+
productId: string;
|
|
917
|
+
/**
|
|
918
|
+
* The Shopify variant ID
|
|
919
|
+
*/
|
|
920
|
+
variantId?: string;
|
|
921
|
+
/**
|
|
922
|
+
* The type of subscription
|
|
923
|
+
*/
|
|
924
|
+
type: 'back_in_stock';
|
|
925
|
+
/**
|
|
926
|
+
* The channel for the subscription
|
|
927
|
+
*/
|
|
928
|
+
channel: 'email' | 'sms' | 'whatsapp';
|
|
929
|
+
/**
|
|
930
|
+
* The market for the subscription
|
|
931
|
+
*/
|
|
932
|
+
market?: string;
|
|
933
|
+
/**
|
|
934
|
+
* The country for the subscription
|
|
935
|
+
*/
|
|
936
|
+
country?: string;
|
|
937
|
+
/**
|
|
938
|
+
* The language for the subscription
|
|
939
|
+
*/
|
|
940
|
+
language?: string;
|
|
941
|
+
};
|
|
942
|
+
export type Subscription = {
|
|
943
|
+
/**
|
|
944
|
+
* The ID of the subscription
|
|
945
|
+
*/
|
|
946
|
+
id: string;
|
|
947
|
+
/**
|
|
948
|
+
* The contact information for the subscription (phone or email)
|
|
949
|
+
*/
|
|
950
|
+
contact: string;
|
|
951
|
+
/**
|
|
952
|
+
* The Shopify product ID
|
|
953
|
+
*/
|
|
954
|
+
productId: string;
|
|
955
|
+
/**
|
|
956
|
+
* The Shopify variant ID
|
|
957
|
+
*/
|
|
958
|
+
variantId?: {
|
|
959
|
+
[key: string]: unknown;
|
|
960
|
+
} | null;
|
|
961
|
+
/**
|
|
962
|
+
* The type of subscription
|
|
963
|
+
*/
|
|
964
|
+
type: 'back_in_stock';
|
|
965
|
+
/**
|
|
966
|
+
* The channel for the subscription
|
|
967
|
+
*/
|
|
968
|
+
channel: 'email' | 'sms' | 'whatsapp';
|
|
969
|
+
/**
|
|
970
|
+
* The status of the subscription
|
|
971
|
+
*/
|
|
972
|
+
status: 'active' | 'cancelled' | 'fulfilled';
|
|
973
|
+
/**
|
|
974
|
+
* The date and time the subscription was created
|
|
975
|
+
*/
|
|
976
|
+
createdAt: string;
|
|
977
|
+
/**
|
|
978
|
+
* The date and time the subscription was last updated
|
|
979
|
+
*/
|
|
980
|
+
updatedAt: string;
|
|
981
|
+
/**
|
|
982
|
+
* The date and time the subscription was cancelled
|
|
983
|
+
*/
|
|
984
|
+
cancelledAt?: {
|
|
985
|
+
[key: string]: unknown;
|
|
986
|
+
} | null;
|
|
987
|
+
/**
|
|
988
|
+
* The date and time the subscription was fulfilled
|
|
989
|
+
*/
|
|
990
|
+
fulfilledAt?: {
|
|
991
|
+
[key: string]: unknown;
|
|
992
|
+
} | null;
|
|
993
|
+
/**
|
|
994
|
+
* The date and time the last notification was sent
|
|
995
|
+
*/
|
|
996
|
+
lastNotificationAt?: {
|
|
997
|
+
[key: string]: unknown;
|
|
998
|
+
} | null;
|
|
999
|
+
/**
|
|
1000
|
+
* The market for the subscription
|
|
1001
|
+
*/
|
|
1002
|
+
market?: {
|
|
1003
|
+
[key: string]: unknown;
|
|
1004
|
+
} | null;
|
|
1005
|
+
/**
|
|
1006
|
+
* The country for the subscription
|
|
1007
|
+
*/
|
|
1008
|
+
country?: {
|
|
1009
|
+
[key: string]: unknown;
|
|
1010
|
+
} | null;
|
|
1011
|
+
/**
|
|
1012
|
+
* The language for the subscription
|
|
1013
|
+
*/
|
|
1014
|
+
language?: {
|
|
1015
|
+
[key: string]: unknown;
|
|
1016
|
+
} | null;
|
|
1017
|
+
};
|
|
1018
|
+
export type ListControllerFindData = {
|
|
1019
|
+
body?: never;
|
|
1020
|
+
path?: never;
|
|
1021
|
+
query?: {
|
|
1022
|
+
/**
|
|
1023
|
+
* The page cursor
|
|
1024
|
+
*/
|
|
1025
|
+
page?: string;
|
|
1026
|
+
/**
|
|
1027
|
+
* Number of lists/items to return
|
|
1028
|
+
*/
|
|
1029
|
+
limit?: number;
|
|
1030
|
+
/**
|
|
1031
|
+
* The sort order of the lists
|
|
1032
|
+
*/
|
|
1033
|
+
sort?: 'recently_updated' | 'custom';
|
|
1034
|
+
};
|
|
1035
|
+
url: '/lists';
|
|
1036
|
+
};
|
|
1037
|
+
export type ListControllerFindErrors = {
|
|
1038
|
+
/**
|
|
1039
|
+
* Bad Request
|
|
1040
|
+
*/
|
|
1041
|
+
400: ErrorResponse & {
|
|
1042
|
+
error?: Error & {
|
|
1043
|
+
message?: string;
|
|
1044
|
+
error?: string;
|
|
1045
|
+
statusCode?: number;
|
|
1046
|
+
requestId?: string;
|
|
1047
|
+
};
|
|
1048
|
+
};
|
|
1049
|
+
/**
|
|
1050
|
+
* Unauthorized
|
|
1051
|
+
*/
|
|
1052
|
+
401: ErrorResponse & {
|
|
1053
|
+
error?: Error & {
|
|
1054
|
+
message?: string;
|
|
1055
|
+
error?: string;
|
|
1056
|
+
statusCode?: number;
|
|
1057
|
+
requestId?: string;
|
|
1058
|
+
};
|
|
1059
|
+
};
|
|
1060
|
+
/**
|
|
1061
|
+
* Forbidden
|
|
1062
|
+
*/
|
|
1063
|
+
403: ErrorResponse & {
|
|
1064
|
+
error?: Error & {
|
|
1065
|
+
message?: string;
|
|
1066
|
+
error?: string;
|
|
1067
|
+
statusCode?: number;
|
|
1068
|
+
requestId?: string;
|
|
1069
|
+
};
|
|
1070
|
+
};
|
|
1071
|
+
/**
|
|
1072
|
+
* Not Found
|
|
1073
|
+
*/
|
|
1074
|
+
404: ErrorResponse & {
|
|
1075
|
+
error?: Error & {
|
|
1076
|
+
message?: string;
|
|
1077
|
+
error?: string;
|
|
1078
|
+
statusCode?: number;
|
|
1079
|
+
requestId?: string;
|
|
1080
|
+
};
|
|
1081
|
+
};
|
|
1082
|
+
/**
|
|
1083
|
+
* Internal Server Error
|
|
1084
|
+
*/
|
|
1085
|
+
500: ErrorResponse & {
|
|
1086
|
+
error?: Error & {
|
|
1087
|
+
message?: string;
|
|
1088
|
+
error?: string;
|
|
1089
|
+
statusCode?: number;
|
|
1090
|
+
requestId?: string;
|
|
1091
|
+
};
|
|
1092
|
+
};
|
|
1093
|
+
};
|
|
1094
|
+
export type ListControllerFindError = ListControllerFindErrors[keyof ListControllerFindErrors];
|
|
1095
|
+
export type ListControllerFindResponses = {
|
|
1096
|
+
/**
|
|
1097
|
+
* Returns all lists as paginated response
|
|
1098
|
+
*/
|
|
1099
|
+
200: PaginatedResponse & {
|
|
1100
|
+
data?: Array<ListDetail>;
|
|
1101
|
+
};
|
|
1102
|
+
};
|
|
1103
|
+
export type ListControllerFindResponse = ListControllerFindResponses[keyof ListControllerFindResponses];
|
|
1104
|
+
export type ListControllerCreateData = {
|
|
1105
|
+
body: CreateList;
|
|
1106
|
+
path?: never;
|
|
1107
|
+
query?: never;
|
|
1108
|
+
url: '/lists';
|
|
1109
|
+
};
|
|
1110
|
+
export type ListControllerCreateErrors = {
|
|
1111
|
+
/**
|
|
1112
|
+
* Bad Request
|
|
1113
|
+
*/
|
|
1114
|
+
400: ErrorResponse & {
|
|
1115
|
+
error?: Error & {
|
|
1116
|
+
message?: string;
|
|
1117
|
+
error?: string;
|
|
1118
|
+
statusCode?: number;
|
|
1119
|
+
requestId?: string;
|
|
1120
|
+
};
|
|
1121
|
+
};
|
|
1122
|
+
/**
|
|
1123
|
+
* Unauthorized
|
|
1124
|
+
*/
|
|
1125
|
+
401: ErrorResponse & {
|
|
1126
|
+
error?: Error & {
|
|
1127
|
+
message?: string;
|
|
1128
|
+
error?: string;
|
|
1129
|
+
statusCode?: number;
|
|
1130
|
+
requestId?: string;
|
|
1131
|
+
};
|
|
1132
|
+
};
|
|
1133
|
+
/**
|
|
1134
|
+
* Forbidden
|
|
1135
|
+
*/
|
|
1136
|
+
403: ErrorResponse & {
|
|
1137
|
+
error?: Error & {
|
|
1138
|
+
message?: string;
|
|
1139
|
+
error?: string;
|
|
1140
|
+
statusCode?: number;
|
|
1141
|
+
requestId?: string;
|
|
1142
|
+
};
|
|
1143
|
+
};
|
|
1144
|
+
/**
|
|
1145
|
+
* Not Found
|
|
1146
|
+
*/
|
|
1147
|
+
404: ErrorResponse & {
|
|
1148
|
+
error?: Error & {
|
|
1149
|
+
message?: string;
|
|
1150
|
+
error?: string;
|
|
1151
|
+
statusCode?: number;
|
|
1152
|
+
requestId?: string;
|
|
1153
|
+
};
|
|
1154
|
+
};
|
|
1155
|
+
/**
|
|
1156
|
+
* Internal Server Error
|
|
1157
|
+
*/
|
|
1158
|
+
500: ErrorResponse & {
|
|
1159
|
+
error?: Error & {
|
|
1160
|
+
message?: string;
|
|
1161
|
+
error?: string;
|
|
1162
|
+
statusCode?: number;
|
|
1163
|
+
requestId?: string;
|
|
1164
|
+
};
|
|
1165
|
+
};
|
|
1166
|
+
};
|
|
1167
|
+
export type ListControllerCreateError = ListControllerCreateErrors[keyof ListControllerCreateErrors];
|
|
1168
|
+
export type ListControllerCreateResponses = {
|
|
1169
|
+
/**
|
|
1170
|
+
* The list has been successfully created.
|
|
1171
|
+
*/
|
|
1172
|
+
201: Response & {
|
|
1173
|
+
data?: List;
|
|
1174
|
+
};
|
|
1175
|
+
};
|
|
1176
|
+
export type ListControllerCreateResponse = ListControllerCreateResponses[keyof ListControllerCreateResponses];
|
|
1177
|
+
export type ListControllerDeleteByIdData = {
|
|
1178
|
+
body?: never;
|
|
1179
|
+
path: {
|
|
1180
|
+
/**
|
|
1181
|
+
* The ID of the list
|
|
1182
|
+
*/
|
|
1183
|
+
listId: string;
|
|
1184
|
+
};
|
|
1185
|
+
query?: never;
|
|
1186
|
+
url: '/lists/{listId}';
|
|
1187
|
+
};
|
|
1188
|
+
export type ListControllerDeleteByIdErrors = {
|
|
1189
|
+
/**
|
|
1190
|
+
* Bad Request
|
|
1191
|
+
*/
|
|
1192
|
+
400: ErrorResponse & {
|
|
1193
|
+
error?: Error & {
|
|
1194
|
+
message?: string;
|
|
1195
|
+
error?: string;
|
|
1196
|
+
statusCode?: number;
|
|
1197
|
+
requestId?: string;
|
|
1198
|
+
};
|
|
1199
|
+
};
|
|
1200
|
+
/**
|
|
1201
|
+
* Unauthorized
|
|
1202
|
+
*/
|
|
1203
|
+
401: ErrorResponse & {
|
|
1204
|
+
error?: Error & {
|
|
1205
|
+
message?: string;
|
|
1206
|
+
error?: string;
|
|
1207
|
+
statusCode?: number;
|
|
1208
|
+
requestId?: string;
|
|
1209
|
+
};
|
|
1210
|
+
};
|
|
1211
|
+
/**
|
|
1212
|
+
* Forbidden
|
|
1213
|
+
*/
|
|
1214
|
+
403: ErrorResponse & {
|
|
1215
|
+
error?: Error & {
|
|
1216
|
+
message?: string;
|
|
1217
|
+
error?: string;
|
|
1218
|
+
statusCode?: number;
|
|
1219
|
+
requestId?: string;
|
|
1220
|
+
};
|
|
1221
|
+
};
|
|
1222
|
+
/**
|
|
1223
|
+
* Not Found
|
|
1224
|
+
*/
|
|
1225
|
+
404: ErrorResponse & {
|
|
1226
|
+
error?: Error & {
|
|
1227
|
+
message?: string;
|
|
1228
|
+
error?: string;
|
|
1229
|
+
statusCode?: number;
|
|
1230
|
+
requestId?: string;
|
|
1231
|
+
};
|
|
1232
|
+
};
|
|
1233
|
+
/**
|
|
1234
|
+
* Internal Server Error
|
|
1235
|
+
*/
|
|
1236
|
+
500: ErrorResponse & {
|
|
1237
|
+
error?: Error & {
|
|
1238
|
+
message?: string;
|
|
1239
|
+
error?: string;
|
|
1240
|
+
statusCode?: number;
|
|
1241
|
+
requestId?: string;
|
|
1242
|
+
};
|
|
1243
|
+
};
|
|
1244
|
+
};
|
|
1245
|
+
export type ListControllerDeleteByIdError = ListControllerDeleteByIdErrors[keyof ListControllerDeleteByIdErrors];
|
|
1246
|
+
export type ListControllerDeleteByIdResponses = {
|
|
1247
|
+
/**
|
|
1248
|
+
* The list has been successfully deleted.
|
|
1249
|
+
*/
|
|
1250
|
+
200: Response & {
|
|
1251
|
+
data?: List;
|
|
1252
|
+
};
|
|
1253
|
+
};
|
|
1254
|
+
export type ListControllerDeleteByIdResponse = ListControllerDeleteByIdResponses[keyof ListControllerDeleteByIdResponses];
|
|
1255
|
+
export type ListControllerFindByIdData = {
|
|
1256
|
+
body?: never;
|
|
1257
|
+
path: {
|
|
1258
|
+
/**
|
|
1259
|
+
* The ID of the list
|
|
1260
|
+
*/
|
|
1261
|
+
listId: string;
|
|
1262
|
+
};
|
|
1263
|
+
query?: never;
|
|
1264
|
+
url: '/lists/{listId}';
|
|
1265
|
+
};
|
|
1266
|
+
export type ListControllerFindByIdErrors = {
|
|
1267
|
+
/**
|
|
1268
|
+
* Bad Request
|
|
1269
|
+
*/
|
|
1270
|
+
400: ErrorResponse & {
|
|
1271
|
+
error?: Error & {
|
|
1272
|
+
message?: string;
|
|
1273
|
+
error?: string;
|
|
1274
|
+
statusCode?: number;
|
|
1275
|
+
requestId?: string;
|
|
1276
|
+
};
|
|
1277
|
+
};
|
|
1278
|
+
/**
|
|
1279
|
+
* Unauthorized
|
|
1280
|
+
*/
|
|
1281
|
+
401: ErrorResponse & {
|
|
1282
|
+
error?: Error & {
|
|
1283
|
+
message?: string;
|
|
1284
|
+
error?: string;
|
|
1285
|
+
statusCode?: number;
|
|
1286
|
+
requestId?: string;
|
|
1287
|
+
};
|
|
1288
|
+
};
|
|
1289
|
+
/**
|
|
1290
|
+
* Forbidden
|
|
1291
|
+
*/
|
|
1292
|
+
403: ErrorResponse & {
|
|
1293
|
+
error?: Error & {
|
|
1294
|
+
message?: string;
|
|
1295
|
+
error?: string;
|
|
1296
|
+
statusCode?: number;
|
|
1297
|
+
requestId?: string;
|
|
1298
|
+
};
|
|
1299
|
+
};
|
|
1300
|
+
/**
|
|
1301
|
+
* Not Found
|
|
1302
|
+
*/
|
|
1303
|
+
404: ErrorResponse & {
|
|
1304
|
+
error?: Error & {
|
|
1305
|
+
message?: string;
|
|
1306
|
+
error?: string;
|
|
1307
|
+
statusCode?: number;
|
|
1308
|
+
requestId?: string;
|
|
1309
|
+
};
|
|
1310
|
+
};
|
|
1311
|
+
/**
|
|
1312
|
+
* Internal Server Error
|
|
1313
|
+
*/
|
|
1314
|
+
500: ErrorResponse & {
|
|
1315
|
+
error?: Error & {
|
|
1316
|
+
message?: string;
|
|
1317
|
+
error?: string;
|
|
1318
|
+
statusCode?: number;
|
|
1319
|
+
requestId?: string;
|
|
1320
|
+
};
|
|
1321
|
+
};
|
|
1322
|
+
};
|
|
1323
|
+
export type ListControllerFindByIdError = ListControllerFindByIdErrors[keyof ListControllerFindByIdErrors];
|
|
1324
|
+
export type ListControllerFindByIdResponses = {
|
|
1325
|
+
/**
|
|
1326
|
+
* The list has been successfully retrieved.
|
|
1327
|
+
*/
|
|
1328
|
+
200: Response & {
|
|
1329
|
+
data?: ListDetail;
|
|
1330
|
+
};
|
|
1331
|
+
};
|
|
1332
|
+
export type ListControllerFindByIdResponse = ListControllerFindByIdResponses[keyof ListControllerFindByIdResponses];
|
|
1333
|
+
export type ListControllerUpdateByIdData = {
|
|
1334
|
+
body: UpdateList;
|
|
1335
|
+
path: {
|
|
1336
|
+
/**
|
|
1337
|
+
* The ID of the list
|
|
1338
|
+
*/
|
|
1339
|
+
listId: string;
|
|
1340
|
+
};
|
|
1341
|
+
query?: never;
|
|
1342
|
+
url: '/lists/{listId}';
|
|
1343
|
+
};
|
|
1344
|
+
export type ListControllerUpdateByIdErrors = {
|
|
1345
|
+
/**
|
|
1346
|
+
* Bad Request
|
|
1347
|
+
*/
|
|
1348
|
+
400: ErrorResponse & {
|
|
1349
|
+
error?: Error & {
|
|
1350
|
+
message?: string;
|
|
1351
|
+
error?: string;
|
|
1352
|
+
statusCode?: number;
|
|
1353
|
+
requestId?: string;
|
|
1354
|
+
};
|
|
1355
|
+
};
|
|
1356
|
+
/**
|
|
1357
|
+
* Unauthorized
|
|
1358
|
+
*/
|
|
1359
|
+
401: ErrorResponse & {
|
|
1360
|
+
error?: Error & {
|
|
1361
|
+
message?: string;
|
|
1362
|
+
error?: string;
|
|
1363
|
+
statusCode?: number;
|
|
1364
|
+
requestId?: string;
|
|
1365
|
+
};
|
|
1366
|
+
};
|
|
1367
|
+
/**
|
|
1368
|
+
* Forbidden
|
|
1369
|
+
*/
|
|
1370
|
+
403: ErrorResponse & {
|
|
1371
|
+
error?: Error & {
|
|
1372
|
+
message?: string;
|
|
1373
|
+
error?: string;
|
|
1374
|
+
statusCode?: number;
|
|
1375
|
+
requestId?: string;
|
|
1376
|
+
};
|
|
1377
|
+
};
|
|
1378
|
+
/**
|
|
1379
|
+
* Not Found
|
|
1380
|
+
*/
|
|
1381
|
+
404: ErrorResponse & {
|
|
1382
|
+
error?: Error & {
|
|
1383
|
+
message?: string;
|
|
1384
|
+
error?: string;
|
|
1385
|
+
statusCode?: number;
|
|
1386
|
+
requestId?: string;
|
|
1387
|
+
};
|
|
1388
|
+
};
|
|
1389
|
+
/**
|
|
1390
|
+
* Internal Server Error
|
|
1391
|
+
*/
|
|
1392
|
+
500: ErrorResponse & {
|
|
1393
|
+
error?: Error & {
|
|
1394
|
+
message?: string;
|
|
1395
|
+
error?: string;
|
|
1396
|
+
statusCode?: number;
|
|
1397
|
+
requestId?: string;
|
|
1398
|
+
};
|
|
1399
|
+
};
|
|
1400
|
+
};
|
|
1401
|
+
export type ListControllerUpdateByIdError = ListControllerUpdateByIdErrors[keyof ListControllerUpdateByIdErrors];
|
|
1402
|
+
export type ListControllerUpdateByIdResponses = {
|
|
1403
|
+
/**
|
|
1404
|
+
* The list has been successfully updated.
|
|
1405
|
+
*/
|
|
1406
|
+
200: Response & {
|
|
1407
|
+
data?: List;
|
|
1408
|
+
};
|
|
1409
|
+
};
|
|
1410
|
+
export type ListControllerUpdateByIdResponse = ListControllerUpdateByIdResponses[keyof ListControllerUpdateByIdResponses];
|
|
1411
|
+
export type ListControllerSetListItemsOrderData = {
|
|
1412
|
+
body: SetListItemsOrder;
|
|
1413
|
+
path: {
|
|
1414
|
+
/**
|
|
1415
|
+
* The ID of the list
|
|
1416
|
+
*/
|
|
1417
|
+
listId: string;
|
|
1418
|
+
};
|
|
1419
|
+
query?: never;
|
|
1420
|
+
url: '/lists/{listId}/items/order';
|
|
1421
|
+
};
|
|
1422
|
+
export type ListControllerSetListItemsOrderErrors = {
|
|
1423
|
+
/**
|
|
1424
|
+
* Bad Request
|
|
1425
|
+
*/
|
|
1426
|
+
400: ErrorResponse & {
|
|
1427
|
+
error?: Error & {
|
|
1428
|
+
message?: string;
|
|
1429
|
+
error?: string;
|
|
1430
|
+
statusCode?: number;
|
|
1431
|
+
requestId?: string;
|
|
1432
|
+
};
|
|
1433
|
+
};
|
|
1434
|
+
/**
|
|
1435
|
+
* Unauthorized
|
|
1436
|
+
*/
|
|
1437
|
+
401: ErrorResponse & {
|
|
1438
|
+
error?: Error & {
|
|
1439
|
+
message?: string;
|
|
1440
|
+
error?: string;
|
|
1441
|
+
statusCode?: number;
|
|
1442
|
+
requestId?: string;
|
|
1443
|
+
};
|
|
1444
|
+
};
|
|
1445
|
+
/**
|
|
1446
|
+
* Forbidden
|
|
1447
|
+
*/
|
|
1448
|
+
403: ErrorResponse & {
|
|
1449
|
+
error?: Error & {
|
|
1450
|
+
message?: string;
|
|
1451
|
+
error?: string;
|
|
1452
|
+
statusCode?: number;
|
|
1453
|
+
requestId?: string;
|
|
1454
|
+
};
|
|
1455
|
+
};
|
|
1456
|
+
/**
|
|
1457
|
+
* Not Found
|
|
1458
|
+
*/
|
|
1459
|
+
404: ErrorResponse & {
|
|
1460
|
+
error?: Error & {
|
|
1461
|
+
message?: string;
|
|
1462
|
+
error?: string;
|
|
1463
|
+
statusCode?: number;
|
|
1464
|
+
requestId?: string;
|
|
1465
|
+
};
|
|
1466
|
+
};
|
|
1467
|
+
/**
|
|
1468
|
+
* Internal Server Error
|
|
1469
|
+
*/
|
|
1470
|
+
500: ErrorResponse & {
|
|
1471
|
+
error?: Error & {
|
|
1472
|
+
message?: string;
|
|
1473
|
+
error?: string;
|
|
1474
|
+
statusCode?: number;
|
|
1475
|
+
requestId?: string;
|
|
1476
|
+
};
|
|
1477
|
+
};
|
|
1478
|
+
};
|
|
1479
|
+
export type ListControllerSetListItemsOrderError = ListControllerSetListItemsOrderErrors[keyof ListControllerSetListItemsOrderErrors];
|
|
1480
|
+
export type ListControllerSetListItemsOrderResponses = {
|
|
1481
|
+
/**
|
|
1482
|
+
* The list items have been successfully reordered.
|
|
1483
|
+
*/
|
|
1484
|
+
200: Response & {
|
|
1485
|
+
data?: List;
|
|
1486
|
+
};
|
|
1487
|
+
};
|
|
1488
|
+
export type ListControllerSetListItemsOrderResponse = ListControllerSetListItemsOrderResponses[keyof ListControllerSetListItemsOrderResponses];
|
|
1489
|
+
export type ListControllerAddItemsToListData = {
|
|
1490
|
+
body: AddItemsToList;
|
|
1491
|
+
path: {
|
|
1492
|
+
listId: string;
|
|
1493
|
+
};
|
|
1494
|
+
query?: never;
|
|
1495
|
+
url: '/lists/{listId}/items';
|
|
1496
|
+
};
|
|
1497
|
+
export type ListControllerAddItemsToListErrors = {
|
|
1498
|
+
/**
|
|
1499
|
+
* Bad Request
|
|
1500
|
+
*/
|
|
1501
|
+
400: ErrorResponse & {
|
|
1502
|
+
error?: Error & {
|
|
1503
|
+
message?: string;
|
|
1504
|
+
error?: string;
|
|
1505
|
+
statusCode?: number;
|
|
1506
|
+
requestId?: string;
|
|
1507
|
+
};
|
|
1508
|
+
};
|
|
1509
|
+
/**
|
|
1510
|
+
* Unauthorized
|
|
1511
|
+
*/
|
|
1512
|
+
401: ErrorResponse & {
|
|
1513
|
+
error?: Error & {
|
|
1514
|
+
message?: string;
|
|
1515
|
+
error?: string;
|
|
1516
|
+
statusCode?: number;
|
|
1517
|
+
requestId?: string;
|
|
1518
|
+
};
|
|
1519
|
+
};
|
|
1520
|
+
/**
|
|
1521
|
+
* Forbidden
|
|
1522
|
+
*/
|
|
1523
|
+
403: ErrorResponse & {
|
|
1524
|
+
error?: Error & {
|
|
1525
|
+
message?: string;
|
|
1526
|
+
error?: string;
|
|
1527
|
+
statusCode?: number;
|
|
1528
|
+
requestId?: string;
|
|
1529
|
+
};
|
|
1530
|
+
};
|
|
1531
|
+
/**
|
|
1532
|
+
* Not Found
|
|
1533
|
+
*/
|
|
1534
|
+
404: ErrorResponse & {
|
|
1535
|
+
error?: Error & {
|
|
1536
|
+
message?: string;
|
|
1537
|
+
error?: string;
|
|
1538
|
+
statusCode?: number;
|
|
1539
|
+
requestId?: string;
|
|
1540
|
+
};
|
|
1541
|
+
};
|
|
1542
|
+
/**
|
|
1543
|
+
* Internal Server Error
|
|
1544
|
+
*/
|
|
1545
|
+
500: ErrorResponse & {
|
|
1546
|
+
error?: Error & {
|
|
1547
|
+
message?: string;
|
|
1548
|
+
error?: string;
|
|
1549
|
+
statusCode?: number;
|
|
1550
|
+
requestId?: string;
|
|
1551
|
+
};
|
|
1552
|
+
};
|
|
1553
|
+
};
|
|
1554
|
+
export type ListControllerAddItemsToListError = ListControllerAddItemsToListErrors[keyof ListControllerAddItemsToListErrors];
|
|
1555
|
+
export type ListControllerAddItemsToListResponses = {
|
|
1556
|
+
/**
|
|
1557
|
+
* Items have been successfully added to the list.
|
|
1558
|
+
*/
|
|
1559
|
+
200: Response & {
|
|
1560
|
+
data?: ListDetail;
|
|
1561
|
+
};
|
|
1562
|
+
};
|
|
1563
|
+
export type ListControllerAddItemsToListResponse = ListControllerAddItemsToListResponses[keyof ListControllerAddItemsToListResponses];
|
|
1564
|
+
export type ListControllerRemoveItemFromListData = {
|
|
1565
|
+
body?: never;
|
|
1566
|
+
path: {
|
|
1567
|
+
/**
|
|
1568
|
+
* The ID of the list
|
|
1569
|
+
*/
|
|
1570
|
+
listId: string;
|
|
1571
|
+
/**
|
|
1572
|
+
* The ID of the item to remove from the list
|
|
1573
|
+
*/
|
|
1574
|
+
itemId: string;
|
|
1575
|
+
};
|
|
1576
|
+
query?: never;
|
|
1577
|
+
url: '/lists/{listId}/items/{itemId}';
|
|
1578
|
+
};
|
|
1579
|
+
export type ListControllerRemoveItemFromListErrors = {
|
|
1580
|
+
/**
|
|
1581
|
+
* Bad Request
|
|
1582
|
+
*/
|
|
1583
|
+
400: ErrorResponse & {
|
|
1584
|
+
error?: Error & {
|
|
1585
|
+
message?: string;
|
|
1586
|
+
error?: string;
|
|
1587
|
+
statusCode?: number;
|
|
1588
|
+
requestId?: string;
|
|
1589
|
+
};
|
|
1590
|
+
};
|
|
1591
|
+
/**
|
|
1592
|
+
* Unauthorized
|
|
1593
|
+
*/
|
|
1594
|
+
401: ErrorResponse & {
|
|
1595
|
+
error?: Error & {
|
|
1596
|
+
message?: string;
|
|
1597
|
+
error?: string;
|
|
1598
|
+
statusCode?: number;
|
|
1599
|
+
requestId?: string;
|
|
1600
|
+
};
|
|
1601
|
+
};
|
|
1602
|
+
/**
|
|
1603
|
+
* Forbidden
|
|
1604
|
+
*/
|
|
1605
|
+
403: ErrorResponse & {
|
|
1606
|
+
error?: Error & {
|
|
1607
|
+
message?: string;
|
|
1608
|
+
error?: string;
|
|
1609
|
+
statusCode?: number;
|
|
1610
|
+
requestId?: string;
|
|
1611
|
+
};
|
|
1612
|
+
};
|
|
1613
|
+
/**
|
|
1614
|
+
* Not Found
|
|
1615
|
+
*/
|
|
1616
|
+
404: ErrorResponse & {
|
|
1617
|
+
error?: Error & {
|
|
1618
|
+
message?: string;
|
|
1619
|
+
error?: string;
|
|
1620
|
+
statusCode?: number;
|
|
1621
|
+
requestId?: string;
|
|
1622
|
+
};
|
|
1623
|
+
};
|
|
1624
|
+
/**
|
|
1625
|
+
* Internal Server Error
|
|
1626
|
+
*/
|
|
1627
|
+
500: ErrorResponse & {
|
|
1628
|
+
error?: Error & {
|
|
1629
|
+
message?: string;
|
|
1630
|
+
error?: string;
|
|
1631
|
+
statusCode?: number;
|
|
1632
|
+
requestId?: string;
|
|
1633
|
+
};
|
|
1634
|
+
};
|
|
1635
|
+
};
|
|
1636
|
+
export type ListControllerRemoveItemFromListError = ListControllerRemoveItemFromListErrors[keyof ListControllerRemoveItemFromListErrors];
|
|
1637
|
+
export type ListControllerRemoveItemFromListResponses = {
|
|
1638
|
+
/**
|
|
1639
|
+
* The item has been successfully removed from the list.
|
|
1640
|
+
*/
|
|
1641
|
+
204: void;
|
|
1642
|
+
};
|
|
1643
|
+
export type ListControllerRemoveItemFromListResponse = ListControllerRemoveItemFromListResponses[keyof ListControllerRemoveItemFromListResponses];
|
|
1644
|
+
export type ItemControllerDeleteData = {
|
|
1645
|
+
body: DeleteItems;
|
|
1646
|
+
path?: never;
|
|
1647
|
+
query?: never;
|
|
1648
|
+
url: '/items';
|
|
1649
|
+
};
|
|
1650
|
+
export type ItemControllerDeleteErrors = {
|
|
1651
|
+
/**
|
|
1652
|
+
* Bad Request
|
|
1653
|
+
*/
|
|
1654
|
+
400: ErrorResponse & {
|
|
1655
|
+
error?: Error & {
|
|
1656
|
+
message?: string;
|
|
1657
|
+
error?: string;
|
|
1658
|
+
statusCode?: number;
|
|
1659
|
+
requestId?: string;
|
|
1660
|
+
};
|
|
1661
|
+
};
|
|
1662
|
+
/**
|
|
1663
|
+
* Unauthorized
|
|
1664
|
+
*/
|
|
1665
|
+
401: ErrorResponse & {
|
|
1666
|
+
error?: Error & {
|
|
1667
|
+
message?: string;
|
|
1668
|
+
error?: string;
|
|
1669
|
+
statusCode?: number;
|
|
1670
|
+
requestId?: string;
|
|
1671
|
+
};
|
|
1672
|
+
};
|
|
1673
|
+
/**
|
|
1674
|
+
* Forbidden
|
|
1675
|
+
*/
|
|
1676
|
+
403: ErrorResponse & {
|
|
1677
|
+
error?: Error & {
|
|
1678
|
+
message?: string;
|
|
1679
|
+
error?: string;
|
|
1680
|
+
statusCode?: number;
|
|
1681
|
+
requestId?: string;
|
|
1682
|
+
};
|
|
1683
|
+
};
|
|
1684
|
+
/**
|
|
1685
|
+
* Not Found
|
|
1686
|
+
*/
|
|
1687
|
+
404: ErrorResponse & {
|
|
1688
|
+
error?: Error & {
|
|
1689
|
+
message?: string;
|
|
1690
|
+
error?: string;
|
|
1691
|
+
statusCode?: number;
|
|
1692
|
+
requestId?: string;
|
|
1693
|
+
};
|
|
1694
|
+
};
|
|
1695
|
+
/**
|
|
1696
|
+
* Internal Server Error
|
|
1697
|
+
*/
|
|
1698
|
+
500: ErrorResponse & {
|
|
1699
|
+
error?: Error & {
|
|
1700
|
+
message?: string;
|
|
1701
|
+
error?: string;
|
|
1702
|
+
statusCode?: number;
|
|
1703
|
+
requestId?: string;
|
|
1704
|
+
};
|
|
1705
|
+
};
|
|
1706
|
+
};
|
|
1707
|
+
export type ItemControllerDeleteError = ItemControllerDeleteErrors[keyof ItemControllerDeleteErrors];
|
|
1708
|
+
export type ItemControllerDeleteResponses = {
|
|
1709
|
+
/**
|
|
1710
|
+
* The items have been successfully deleted.
|
|
1711
|
+
*/
|
|
1712
|
+
200: Response & {
|
|
1713
|
+
data?: Array<Item>;
|
|
1714
|
+
};
|
|
1715
|
+
};
|
|
1716
|
+
export type ItemControllerDeleteResponse = ItemControllerDeleteResponses[keyof ItemControllerDeleteResponses];
|
|
1717
|
+
export type ItemControllerFindData = {
|
|
1718
|
+
body?: never;
|
|
1719
|
+
path?: never;
|
|
1720
|
+
query?: {
|
|
1721
|
+
/**
|
|
1722
|
+
* The page cursor
|
|
1723
|
+
*/
|
|
1724
|
+
page?: string;
|
|
1725
|
+
/**
|
|
1726
|
+
* Number of lists/items to return
|
|
1727
|
+
*/
|
|
1728
|
+
limit?: number;
|
|
1729
|
+
/**
|
|
1730
|
+
* Item search query
|
|
1731
|
+
*/
|
|
1732
|
+
query?: string;
|
|
1733
|
+
/**
|
|
1734
|
+
* List ID to filter items by specific list
|
|
1735
|
+
*/
|
|
1736
|
+
listId?: string;
|
|
1737
|
+
/**
|
|
1738
|
+
* The sort order of the items
|
|
1739
|
+
*/
|
|
1740
|
+
sort?: 'recently_saved' | 'custom';
|
|
1741
|
+
};
|
|
1742
|
+
url: '/items';
|
|
1743
|
+
};
|
|
1744
|
+
export type ItemControllerFindErrors = {
|
|
1745
|
+
/**
|
|
1746
|
+
* Bad Request
|
|
1747
|
+
*/
|
|
1748
|
+
400: ErrorResponse & {
|
|
1749
|
+
error?: Error & {
|
|
1750
|
+
message?: string;
|
|
1751
|
+
error?: string;
|
|
1752
|
+
statusCode?: number;
|
|
1753
|
+
requestId?: string;
|
|
1754
|
+
};
|
|
1755
|
+
};
|
|
1756
|
+
/**
|
|
1757
|
+
* Unauthorized
|
|
1758
|
+
*/
|
|
1759
|
+
401: ErrorResponse & {
|
|
1760
|
+
error?: Error & {
|
|
1761
|
+
message?: string;
|
|
1762
|
+
error?: string;
|
|
1763
|
+
statusCode?: number;
|
|
1764
|
+
requestId?: string;
|
|
1765
|
+
};
|
|
1766
|
+
};
|
|
1767
|
+
/**
|
|
1768
|
+
* Forbidden
|
|
1769
|
+
*/
|
|
1770
|
+
403: ErrorResponse & {
|
|
1771
|
+
error?: Error & {
|
|
1772
|
+
message?: string;
|
|
1773
|
+
error?: string;
|
|
1774
|
+
statusCode?: number;
|
|
1775
|
+
requestId?: string;
|
|
1776
|
+
};
|
|
1777
|
+
};
|
|
1778
|
+
/**
|
|
1779
|
+
* Not Found
|
|
1780
|
+
*/
|
|
1781
|
+
404: ErrorResponse & {
|
|
1782
|
+
error?: Error & {
|
|
1783
|
+
message?: string;
|
|
1784
|
+
error?: string;
|
|
1785
|
+
statusCode?: number;
|
|
1786
|
+
requestId?: string;
|
|
1787
|
+
};
|
|
1788
|
+
};
|
|
1789
|
+
/**
|
|
1790
|
+
* Internal Server Error
|
|
1791
|
+
*/
|
|
1792
|
+
500: ErrorResponse & {
|
|
1793
|
+
error?: Error & {
|
|
1794
|
+
message?: string;
|
|
1795
|
+
error?: string;
|
|
1796
|
+
statusCode?: number;
|
|
1797
|
+
requestId?: string;
|
|
1798
|
+
};
|
|
1799
|
+
};
|
|
1800
|
+
};
|
|
1801
|
+
export type ItemControllerFindError = ItemControllerFindErrors[keyof ItemControllerFindErrors];
|
|
1802
|
+
export type ItemControllerFindResponses = {
|
|
1803
|
+
/**
|
|
1804
|
+
* Returns all items as paginated response
|
|
1805
|
+
*/
|
|
1806
|
+
200: PaginatedResponse & {
|
|
1807
|
+
data?: Array<Item>;
|
|
1808
|
+
};
|
|
1809
|
+
};
|
|
1810
|
+
export type ItemControllerFindResponse = ItemControllerFindResponses[keyof ItemControllerFindResponses];
|
|
1811
|
+
export type ItemControllerCreateData = {
|
|
1812
|
+
body: CreateItem;
|
|
1813
|
+
headers?: {
|
|
1814
|
+
/**
|
|
1815
|
+
* The language for the user (e.g., 'en', 'de', 'fr')
|
|
1816
|
+
*/
|
|
1817
|
+
language?: string;
|
|
1818
|
+
/**
|
|
1819
|
+
* The country for the user (e.g., 'US', 'DE', 'FR')
|
|
1820
|
+
*/
|
|
1821
|
+
country?: string;
|
|
1822
|
+
/**
|
|
1823
|
+
* The market for the user (e.g. 1234567 )
|
|
1824
|
+
*/
|
|
1825
|
+
market?: string;
|
|
1826
|
+
};
|
|
1827
|
+
path?: never;
|
|
1828
|
+
query?: never;
|
|
1829
|
+
url: '/items';
|
|
1830
|
+
};
|
|
1831
|
+
export type ItemControllerCreateErrors = {
|
|
1832
|
+
/**
|
|
1833
|
+
* Bad Request
|
|
1834
|
+
*/
|
|
1835
|
+
400: ErrorResponse & {
|
|
1836
|
+
error?: Error & {
|
|
1837
|
+
message?: string;
|
|
1838
|
+
error?: string;
|
|
1839
|
+
statusCode?: number;
|
|
1840
|
+
requestId?: string;
|
|
1841
|
+
};
|
|
1842
|
+
};
|
|
1843
|
+
/**
|
|
1844
|
+
* Unauthorized
|
|
1845
|
+
*/
|
|
1846
|
+
401: ErrorResponse & {
|
|
1847
|
+
error?: Error & {
|
|
1848
|
+
message?: string;
|
|
1849
|
+
error?: string;
|
|
1850
|
+
statusCode?: number;
|
|
1851
|
+
requestId?: string;
|
|
1852
|
+
};
|
|
1853
|
+
};
|
|
1854
|
+
/**
|
|
1855
|
+
* Forbidden
|
|
1856
|
+
*/
|
|
1857
|
+
403: ErrorResponse & {
|
|
1858
|
+
error?: Error & {
|
|
1859
|
+
message?: string;
|
|
1860
|
+
error?: string;
|
|
1861
|
+
statusCode?: number;
|
|
1862
|
+
requestId?: string;
|
|
1863
|
+
};
|
|
1864
|
+
};
|
|
1865
|
+
/**
|
|
1866
|
+
* Not Found
|
|
1867
|
+
*/
|
|
1868
|
+
404: ErrorResponse & {
|
|
1869
|
+
error?: Error & {
|
|
1870
|
+
message?: string;
|
|
1871
|
+
error?: string;
|
|
1872
|
+
statusCode?: number;
|
|
1873
|
+
requestId?: string;
|
|
1874
|
+
};
|
|
1875
|
+
};
|
|
1876
|
+
/**
|
|
1877
|
+
* Internal Server Error
|
|
1878
|
+
*/
|
|
1879
|
+
500: ErrorResponse & {
|
|
1880
|
+
error?: Error & {
|
|
1881
|
+
message?: string;
|
|
1882
|
+
error?: string;
|
|
1883
|
+
statusCode?: number;
|
|
1884
|
+
requestId?: string;
|
|
1885
|
+
};
|
|
1886
|
+
};
|
|
1887
|
+
};
|
|
1888
|
+
export type ItemControllerCreateError = ItemControllerCreateErrors[keyof ItemControllerCreateErrors];
|
|
1889
|
+
export type ItemControllerCreateResponses = {
|
|
1890
|
+
/**
|
|
1891
|
+
* The item has been successfully created.
|
|
1892
|
+
*/
|
|
1893
|
+
201: Response & {
|
|
1894
|
+
data?: Item;
|
|
1895
|
+
};
|
|
1896
|
+
};
|
|
1897
|
+
export type ItemControllerCreateResponse = ItemControllerCreateResponses[keyof ItemControllerCreateResponses];
|
|
1898
|
+
export type ItemControllerCountData = {
|
|
1899
|
+
body?: never;
|
|
1900
|
+
path?: never;
|
|
1901
|
+
query?: never;
|
|
1902
|
+
url: '/items/count';
|
|
1903
|
+
};
|
|
1904
|
+
export type ItemControllerCountErrors = {
|
|
1905
|
+
/**
|
|
1906
|
+
* Bad Request
|
|
1907
|
+
*/
|
|
1908
|
+
400: ErrorResponse & {
|
|
1909
|
+
error?: Error & {
|
|
1910
|
+
message?: string;
|
|
1911
|
+
error?: string;
|
|
1912
|
+
statusCode?: number;
|
|
1913
|
+
requestId?: string;
|
|
1914
|
+
};
|
|
1915
|
+
};
|
|
1916
|
+
/**
|
|
1917
|
+
* Unauthorized
|
|
1918
|
+
*/
|
|
1919
|
+
401: ErrorResponse & {
|
|
1920
|
+
error?: Error & {
|
|
1921
|
+
message?: string;
|
|
1922
|
+
error?: string;
|
|
1923
|
+
statusCode?: number;
|
|
1924
|
+
requestId?: string;
|
|
1925
|
+
};
|
|
1926
|
+
};
|
|
1927
|
+
/**
|
|
1928
|
+
* Forbidden
|
|
1929
|
+
*/
|
|
1930
|
+
403: ErrorResponse & {
|
|
1931
|
+
error?: Error & {
|
|
1932
|
+
message?: string;
|
|
1933
|
+
error?: string;
|
|
1934
|
+
statusCode?: number;
|
|
1935
|
+
requestId?: string;
|
|
1936
|
+
};
|
|
1937
|
+
};
|
|
1938
|
+
/**
|
|
1939
|
+
* Not Found
|
|
1940
|
+
*/
|
|
1941
|
+
404: ErrorResponse & {
|
|
1942
|
+
error?: Error & {
|
|
1943
|
+
message?: string;
|
|
1944
|
+
error?: string;
|
|
1945
|
+
statusCode?: number;
|
|
1946
|
+
requestId?: string;
|
|
1947
|
+
};
|
|
1948
|
+
};
|
|
1949
|
+
/**
|
|
1950
|
+
* Internal Server Error
|
|
1951
|
+
*/
|
|
1952
|
+
500: ErrorResponse & {
|
|
1953
|
+
error?: Error & {
|
|
1954
|
+
message?: string;
|
|
1955
|
+
error?: string;
|
|
1956
|
+
statusCode?: number;
|
|
1957
|
+
requestId?: string;
|
|
1958
|
+
};
|
|
1959
|
+
};
|
|
1960
|
+
};
|
|
1961
|
+
export type ItemControllerCountError = ItemControllerCountErrors[keyof ItemControllerCountErrors];
|
|
1962
|
+
export type ItemControllerCountResponses = {
|
|
1963
|
+
/**
|
|
1964
|
+
* Returns the total count of items
|
|
1965
|
+
*/
|
|
1966
|
+
200: Response & {
|
|
1967
|
+
data?: ItemCount;
|
|
1968
|
+
};
|
|
1969
|
+
};
|
|
1970
|
+
export type ItemControllerCountResponse = ItemControllerCountResponses[keyof ItemControllerCountResponses];
|
|
1971
|
+
export type ItemControllerDeleteByIdData = {
|
|
1972
|
+
body?: never;
|
|
1973
|
+
path: {
|
|
1974
|
+
/**
|
|
1975
|
+
* The ID of the item
|
|
1976
|
+
*/
|
|
1977
|
+
itemId: string;
|
|
1978
|
+
};
|
|
1979
|
+
query?: never;
|
|
1980
|
+
url: '/items/{itemId}';
|
|
1981
|
+
};
|
|
1982
|
+
export type ItemControllerDeleteByIdErrors = {
|
|
1983
|
+
/**
|
|
1984
|
+
* Bad Request
|
|
1985
|
+
*/
|
|
1986
|
+
400: ErrorResponse & {
|
|
1987
|
+
error?: Error & {
|
|
1988
|
+
message?: string;
|
|
1989
|
+
error?: string;
|
|
1990
|
+
statusCode?: number;
|
|
1991
|
+
requestId?: string;
|
|
1992
|
+
};
|
|
1993
|
+
};
|
|
1994
|
+
/**
|
|
1995
|
+
* Unauthorized
|
|
1996
|
+
*/
|
|
1997
|
+
401: ErrorResponse & {
|
|
1998
|
+
error?: Error & {
|
|
1999
|
+
message?: string;
|
|
2000
|
+
error?: string;
|
|
2001
|
+
statusCode?: number;
|
|
2002
|
+
requestId?: string;
|
|
2003
|
+
};
|
|
2004
|
+
};
|
|
2005
|
+
/**
|
|
2006
|
+
* Forbidden
|
|
2007
|
+
*/
|
|
2008
|
+
403: ErrorResponse & {
|
|
2009
|
+
error?: Error & {
|
|
2010
|
+
message?: string;
|
|
2011
|
+
error?: string;
|
|
2012
|
+
statusCode?: number;
|
|
2013
|
+
requestId?: string;
|
|
2014
|
+
};
|
|
2015
|
+
};
|
|
2016
|
+
/**
|
|
2017
|
+
* Not Found
|
|
2018
|
+
*/
|
|
2019
|
+
404: ErrorResponse & {
|
|
2020
|
+
error?: Error & {
|
|
2021
|
+
message?: string;
|
|
2022
|
+
error?: string;
|
|
2023
|
+
statusCode?: number;
|
|
2024
|
+
requestId?: string;
|
|
2025
|
+
};
|
|
2026
|
+
};
|
|
2027
|
+
/**
|
|
2028
|
+
* Internal Server Error
|
|
2029
|
+
*/
|
|
2030
|
+
500: ErrorResponse & {
|
|
2031
|
+
error?: Error & {
|
|
2032
|
+
message?: string;
|
|
2033
|
+
error?: string;
|
|
2034
|
+
statusCode?: number;
|
|
2035
|
+
requestId?: string;
|
|
2036
|
+
};
|
|
2037
|
+
};
|
|
2038
|
+
};
|
|
2039
|
+
export type ItemControllerDeleteByIdError = ItemControllerDeleteByIdErrors[keyof ItemControllerDeleteByIdErrors];
|
|
2040
|
+
export type ItemControllerDeleteByIdResponses = {
|
|
2041
|
+
/**
|
|
2042
|
+
* The item has been successfully deleted.
|
|
2043
|
+
*/
|
|
2044
|
+
200: Response & {
|
|
2045
|
+
data?: Item;
|
|
2046
|
+
};
|
|
2047
|
+
};
|
|
2048
|
+
export type ItemControllerDeleteByIdResponse = ItemControllerDeleteByIdResponses[keyof ItemControllerDeleteByIdResponses];
|
|
2049
|
+
export type ItemControllerFindByIdData = {
|
|
2050
|
+
body?: never;
|
|
2051
|
+
path: {
|
|
2052
|
+
/**
|
|
2053
|
+
* The ID of the item
|
|
2054
|
+
*/
|
|
2055
|
+
itemId: string;
|
|
2056
|
+
};
|
|
2057
|
+
query?: never;
|
|
2058
|
+
url: '/items/{itemId}';
|
|
2059
|
+
};
|
|
2060
|
+
export type ItemControllerFindByIdErrors = {
|
|
2061
|
+
/**
|
|
2062
|
+
* Bad Request
|
|
2063
|
+
*/
|
|
2064
|
+
400: ErrorResponse & {
|
|
2065
|
+
error?: Error & {
|
|
2066
|
+
message?: string;
|
|
2067
|
+
error?: string;
|
|
2068
|
+
statusCode?: number;
|
|
2069
|
+
requestId?: string;
|
|
2070
|
+
};
|
|
2071
|
+
};
|
|
2072
|
+
/**
|
|
2073
|
+
* Unauthorized
|
|
2074
|
+
*/
|
|
2075
|
+
401: ErrorResponse & {
|
|
2076
|
+
error?: Error & {
|
|
2077
|
+
message?: string;
|
|
2078
|
+
error?: string;
|
|
2079
|
+
statusCode?: number;
|
|
2080
|
+
requestId?: string;
|
|
2081
|
+
};
|
|
2082
|
+
};
|
|
2083
|
+
/**
|
|
2084
|
+
* Forbidden
|
|
2085
|
+
*/
|
|
2086
|
+
403: ErrorResponse & {
|
|
2087
|
+
error?: Error & {
|
|
2088
|
+
message?: string;
|
|
2089
|
+
error?: string;
|
|
2090
|
+
statusCode?: number;
|
|
2091
|
+
requestId?: string;
|
|
2092
|
+
};
|
|
2093
|
+
};
|
|
2094
|
+
/**
|
|
2095
|
+
* Not Found
|
|
2096
|
+
*/
|
|
2097
|
+
404: ErrorResponse & {
|
|
2098
|
+
error?: Error & {
|
|
2099
|
+
message?: string;
|
|
2100
|
+
error?: string;
|
|
2101
|
+
statusCode?: number;
|
|
2102
|
+
requestId?: string;
|
|
2103
|
+
};
|
|
2104
|
+
};
|
|
2105
|
+
/**
|
|
2106
|
+
* Internal Server Error
|
|
2107
|
+
*/
|
|
2108
|
+
500: ErrorResponse & {
|
|
2109
|
+
error?: Error & {
|
|
2110
|
+
message?: string;
|
|
2111
|
+
error?: string;
|
|
2112
|
+
statusCode?: number;
|
|
2113
|
+
requestId?: string;
|
|
2114
|
+
};
|
|
2115
|
+
};
|
|
2116
|
+
};
|
|
2117
|
+
export type ItemControllerFindByIdError = ItemControllerFindByIdErrors[keyof ItemControllerFindByIdErrors];
|
|
2118
|
+
export type ItemControllerFindByIdResponses = {
|
|
2119
|
+
/**
|
|
2120
|
+
* The item has been successfully found.
|
|
2121
|
+
*/
|
|
2122
|
+
200: Response & {
|
|
2123
|
+
data?: ItemDetail;
|
|
2124
|
+
};
|
|
2125
|
+
};
|
|
2126
|
+
export type ItemControllerFindByIdResponse = ItemControllerFindByIdResponses[keyof ItemControllerFindByIdResponses];
|
|
2127
|
+
export type ItemControllerUpdateByIdData = {
|
|
2128
|
+
body: UpdateItem;
|
|
2129
|
+
path: {
|
|
2130
|
+
/**
|
|
2131
|
+
* The ID of the item
|
|
2132
|
+
*/
|
|
2133
|
+
itemId: string;
|
|
2134
|
+
};
|
|
2135
|
+
query?: never;
|
|
2136
|
+
url: '/items/{itemId}';
|
|
2137
|
+
};
|
|
2138
|
+
export type ItemControllerUpdateByIdErrors = {
|
|
2139
|
+
/**
|
|
2140
|
+
* Bad Request
|
|
2141
|
+
*/
|
|
2142
|
+
400: ErrorResponse & {
|
|
2143
|
+
error?: Error & {
|
|
2144
|
+
message?: string;
|
|
2145
|
+
error?: string;
|
|
2146
|
+
statusCode?: number;
|
|
2147
|
+
requestId?: string;
|
|
2148
|
+
};
|
|
2149
|
+
};
|
|
2150
|
+
/**
|
|
2151
|
+
* Unauthorized
|
|
2152
|
+
*/
|
|
2153
|
+
401: ErrorResponse & {
|
|
2154
|
+
error?: Error & {
|
|
2155
|
+
message?: string;
|
|
2156
|
+
error?: string;
|
|
2157
|
+
statusCode?: number;
|
|
2158
|
+
requestId?: string;
|
|
2159
|
+
};
|
|
2160
|
+
};
|
|
2161
|
+
/**
|
|
2162
|
+
* Forbidden
|
|
2163
|
+
*/
|
|
2164
|
+
403: ErrorResponse & {
|
|
2165
|
+
error?: Error & {
|
|
2166
|
+
message?: string;
|
|
2167
|
+
error?: string;
|
|
2168
|
+
statusCode?: number;
|
|
2169
|
+
requestId?: string;
|
|
2170
|
+
};
|
|
2171
|
+
};
|
|
2172
|
+
/**
|
|
2173
|
+
* Not Found
|
|
2174
|
+
*/
|
|
2175
|
+
404: ErrorResponse & {
|
|
2176
|
+
error?: Error & {
|
|
2177
|
+
message?: string;
|
|
2178
|
+
error?: string;
|
|
2179
|
+
statusCode?: number;
|
|
2180
|
+
requestId?: string;
|
|
2181
|
+
};
|
|
2182
|
+
};
|
|
2183
|
+
/**
|
|
2184
|
+
* Internal Server Error
|
|
2185
|
+
*/
|
|
2186
|
+
500: ErrorResponse & {
|
|
2187
|
+
error?: Error & {
|
|
2188
|
+
message?: string;
|
|
2189
|
+
error?: string;
|
|
2190
|
+
statusCode?: number;
|
|
2191
|
+
requestId?: string;
|
|
2192
|
+
};
|
|
2193
|
+
};
|
|
2194
|
+
};
|
|
2195
|
+
export type ItemControllerUpdateByIdError = ItemControllerUpdateByIdErrors[keyof ItemControllerUpdateByIdErrors];
|
|
2196
|
+
export type ItemControllerUpdateByIdResponses = {
|
|
2197
|
+
/**
|
|
2198
|
+
* The item has been successfully updated.
|
|
2199
|
+
*/
|
|
2200
|
+
200: Response & {
|
|
2201
|
+
data?: Item;
|
|
2202
|
+
};
|
|
2203
|
+
};
|
|
2204
|
+
export type ItemControllerUpdateByIdResponse = ItemControllerUpdateByIdResponses[keyof ItemControllerUpdateByIdResponses];
|
|
2205
|
+
export type ItemControllerSetListsByIdData = {
|
|
2206
|
+
body: SetItemLists;
|
|
2207
|
+
path: {
|
|
2208
|
+
/**
|
|
2209
|
+
* The ID of the item
|
|
2210
|
+
*/
|
|
2211
|
+
itemId: string;
|
|
2212
|
+
};
|
|
2213
|
+
query?: never;
|
|
2214
|
+
url: '/items/{itemId}/lists';
|
|
2215
|
+
};
|
|
2216
|
+
export type ItemControllerSetListsByIdErrors = {
|
|
2217
|
+
/**
|
|
2218
|
+
* Bad Request
|
|
2219
|
+
*/
|
|
2220
|
+
400: ErrorResponse & {
|
|
2221
|
+
error?: Error & {
|
|
2222
|
+
message?: string;
|
|
2223
|
+
error?: string;
|
|
2224
|
+
statusCode?: number;
|
|
2225
|
+
requestId?: string;
|
|
2226
|
+
};
|
|
2227
|
+
};
|
|
2228
|
+
/**
|
|
2229
|
+
* Unauthorized
|
|
2230
|
+
*/
|
|
2231
|
+
401: ErrorResponse & {
|
|
2232
|
+
error?: Error & {
|
|
2233
|
+
message?: string;
|
|
2234
|
+
error?: string;
|
|
2235
|
+
statusCode?: number;
|
|
2236
|
+
requestId?: string;
|
|
2237
|
+
};
|
|
2238
|
+
};
|
|
2239
|
+
/**
|
|
2240
|
+
* Forbidden
|
|
2241
|
+
*/
|
|
2242
|
+
403: ErrorResponse & {
|
|
2243
|
+
error?: Error & {
|
|
2244
|
+
message?: string;
|
|
2245
|
+
error?: string;
|
|
2246
|
+
statusCode?: number;
|
|
2247
|
+
requestId?: string;
|
|
2248
|
+
};
|
|
2249
|
+
};
|
|
2250
|
+
/**
|
|
2251
|
+
* Not Found
|
|
2252
|
+
*/
|
|
2253
|
+
404: ErrorResponse & {
|
|
2254
|
+
error?: Error & {
|
|
2255
|
+
message?: string;
|
|
2256
|
+
error?: string;
|
|
2257
|
+
statusCode?: number;
|
|
2258
|
+
requestId?: string;
|
|
2259
|
+
};
|
|
2260
|
+
};
|
|
2261
|
+
/**
|
|
2262
|
+
* Internal Server Error
|
|
2263
|
+
*/
|
|
2264
|
+
500: ErrorResponse & {
|
|
2265
|
+
error?: Error & {
|
|
2266
|
+
message?: string;
|
|
2267
|
+
error?: string;
|
|
2268
|
+
statusCode?: number;
|
|
2269
|
+
requestId?: string;
|
|
2270
|
+
};
|
|
2271
|
+
};
|
|
2272
|
+
};
|
|
2273
|
+
export type ItemControllerSetListsByIdError = ItemControllerSetListsByIdErrors[keyof ItemControllerSetListsByIdErrors];
|
|
2274
|
+
export type ItemControllerSetListsByIdResponses = {
|
|
2275
|
+
/**
|
|
2276
|
+
* The item has been successfully been added to the lists.
|
|
2277
|
+
*/
|
|
2278
|
+
200: Response & {
|
|
2279
|
+
data?: ItemDetail;
|
|
2280
|
+
};
|
|
2281
|
+
};
|
|
2282
|
+
export type ItemControllerSetListsByIdResponse = ItemControllerSetListsByIdResponses[keyof ItemControllerSetListsByIdResponses];
|
|
2283
|
+
export type ProfileControllerIdentifyData = {
|
|
2284
|
+
body: IdentifyProfile;
|
|
2285
|
+
path?: never;
|
|
2286
|
+
query?: never;
|
|
2287
|
+
url: '/profiles/identify';
|
|
2288
|
+
};
|
|
2289
|
+
export type ProfileControllerIdentifyErrors = {
|
|
2290
|
+
/**
|
|
2291
|
+
* Bad Request
|
|
2292
|
+
*/
|
|
2293
|
+
400: ErrorResponse & {
|
|
2294
|
+
error?: Error & {
|
|
2295
|
+
message?: string;
|
|
2296
|
+
error?: string;
|
|
2297
|
+
statusCode?: number;
|
|
2298
|
+
requestId?: string;
|
|
2299
|
+
};
|
|
2300
|
+
};
|
|
2301
|
+
/**
|
|
2302
|
+
* Unauthorized
|
|
2303
|
+
*/
|
|
2304
|
+
401: ErrorResponse & {
|
|
2305
|
+
error?: Error & {
|
|
2306
|
+
message?: string;
|
|
2307
|
+
error?: string;
|
|
2308
|
+
statusCode?: number;
|
|
2309
|
+
requestId?: string;
|
|
2310
|
+
};
|
|
2311
|
+
};
|
|
2312
|
+
/**
|
|
2313
|
+
* Forbidden
|
|
2314
|
+
*/
|
|
2315
|
+
403: ErrorResponse & {
|
|
2316
|
+
error?: Error & {
|
|
2317
|
+
message?: string;
|
|
2318
|
+
error?: string;
|
|
2319
|
+
statusCode?: number;
|
|
2320
|
+
requestId?: string;
|
|
2321
|
+
};
|
|
2322
|
+
};
|
|
2323
|
+
/**
|
|
2324
|
+
* Not Found
|
|
2325
|
+
*/
|
|
2326
|
+
404: ErrorResponse & {
|
|
2327
|
+
error?: Error & {
|
|
2328
|
+
message?: string;
|
|
2329
|
+
error?: string;
|
|
2330
|
+
statusCode?: number;
|
|
2331
|
+
requestId?: string;
|
|
2332
|
+
};
|
|
2333
|
+
};
|
|
2334
|
+
/**
|
|
2335
|
+
* Internal Server Error
|
|
2336
|
+
*/
|
|
2337
|
+
500: ErrorResponse & {
|
|
2338
|
+
error?: Error & {
|
|
2339
|
+
message?: string;
|
|
2340
|
+
error?: string;
|
|
2341
|
+
statusCode?: number;
|
|
2342
|
+
requestId?: string;
|
|
2343
|
+
};
|
|
2344
|
+
};
|
|
2345
|
+
};
|
|
2346
|
+
export type ProfileControllerIdentifyError = ProfileControllerIdentifyErrors[keyof ProfileControllerIdentifyErrors];
|
|
2347
|
+
export type ProfileControllerIdentifyResponses = {
|
|
2348
|
+
/**
|
|
2349
|
+
* The profile has been identified
|
|
2350
|
+
*/
|
|
2351
|
+
200: unknown;
|
|
2352
|
+
};
|
|
2353
|
+
export type ProfileControllerCreateTokenData = {
|
|
2354
|
+
body: CreateProfileToken;
|
|
2355
|
+
path?: never;
|
|
2356
|
+
query?: never;
|
|
2357
|
+
url: '/profiles/token';
|
|
2358
|
+
};
|
|
2359
|
+
export type ProfileControllerCreateTokenErrors = {
|
|
2360
|
+
/**
|
|
2361
|
+
* Bad Request
|
|
2362
|
+
*/
|
|
2363
|
+
400: ErrorResponse & {
|
|
2364
|
+
error?: Error & {
|
|
2365
|
+
message?: string;
|
|
2366
|
+
error?: string;
|
|
2367
|
+
statusCode?: number;
|
|
2368
|
+
requestId?: string;
|
|
2369
|
+
};
|
|
2370
|
+
};
|
|
2371
|
+
/**
|
|
2372
|
+
* Unauthorized
|
|
2373
|
+
*/
|
|
2374
|
+
401: ErrorResponse & {
|
|
2375
|
+
error?: Error & {
|
|
2376
|
+
message?: string;
|
|
2377
|
+
error?: string;
|
|
2378
|
+
statusCode?: number;
|
|
2379
|
+
requestId?: string;
|
|
2380
|
+
};
|
|
2381
|
+
};
|
|
2382
|
+
/**
|
|
2383
|
+
* Forbidden
|
|
2384
|
+
*/
|
|
2385
|
+
403: ErrorResponse & {
|
|
2386
|
+
error?: Error & {
|
|
2387
|
+
message?: string;
|
|
2388
|
+
error?: string;
|
|
2389
|
+
statusCode?: number;
|
|
2390
|
+
requestId?: string;
|
|
2391
|
+
};
|
|
2392
|
+
};
|
|
2393
|
+
/**
|
|
2394
|
+
* Not Found
|
|
2395
|
+
*/
|
|
2396
|
+
404: ErrorResponse & {
|
|
2397
|
+
error?: Error & {
|
|
2398
|
+
message?: string;
|
|
2399
|
+
error?: string;
|
|
2400
|
+
statusCode?: number;
|
|
2401
|
+
requestId?: string;
|
|
2402
|
+
};
|
|
2403
|
+
};
|
|
2404
|
+
/**
|
|
2405
|
+
* Internal Server Error
|
|
2406
|
+
*/
|
|
2407
|
+
500: ErrorResponse & {
|
|
2408
|
+
error?: Error & {
|
|
2409
|
+
message?: string;
|
|
2410
|
+
error?: string;
|
|
2411
|
+
statusCode?: number;
|
|
2412
|
+
requestId?: string;
|
|
2413
|
+
};
|
|
2414
|
+
};
|
|
2415
|
+
};
|
|
2416
|
+
export type ProfileControllerCreateTokenError = ProfileControllerCreateTokenErrors[keyof ProfileControllerCreateTokenErrors];
|
|
2417
|
+
export type ProfileControllerCreateTokenResponses = {
|
|
2418
|
+
/**
|
|
2419
|
+
* The token has been created
|
|
2420
|
+
*/
|
|
2421
|
+
201: Response & {
|
|
2422
|
+
data?: CreateProfileTokenResult;
|
|
2423
|
+
};
|
|
2424
|
+
};
|
|
2425
|
+
export type ProfileControllerCreateTokenResponse = ProfileControllerCreateTokenResponses[keyof ProfileControllerCreateTokenResponses];
|
|
2426
|
+
export type ProfileControllerGetProfileData = {
|
|
2427
|
+
body?: never;
|
|
2428
|
+
path?: never;
|
|
2429
|
+
query?: never;
|
|
2430
|
+
url: '/profiles';
|
|
2431
|
+
};
|
|
2432
|
+
export type ProfileControllerGetProfileErrors = {
|
|
2433
|
+
/**
|
|
2434
|
+
* Bad Request
|
|
2435
|
+
*/
|
|
2436
|
+
400: ErrorResponse & {
|
|
2437
|
+
error?: Error & {
|
|
2438
|
+
message?: string;
|
|
2439
|
+
error?: string;
|
|
2440
|
+
statusCode?: number;
|
|
2441
|
+
requestId?: string;
|
|
2442
|
+
};
|
|
2443
|
+
};
|
|
2444
|
+
/**
|
|
2445
|
+
* Unauthorized
|
|
2446
|
+
*/
|
|
2447
|
+
401: ErrorResponse & {
|
|
2448
|
+
error?: Error & {
|
|
2449
|
+
message?: string;
|
|
2450
|
+
error?: string;
|
|
2451
|
+
statusCode?: number;
|
|
2452
|
+
requestId?: string;
|
|
2453
|
+
};
|
|
2454
|
+
};
|
|
2455
|
+
/**
|
|
2456
|
+
* Forbidden
|
|
2457
|
+
*/
|
|
2458
|
+
403: ErrorResponse & {
|
|
2459
|
+
error?: Error & {
|
|
2460
|
+
message?: string;
|
|
2461
|
+
error?: string;
|
|
2462
|
+
statusCode?: number;
|
|
2463
|
+
requestId?: string;
|
|
2464
|
+
};
|
|
2465
|
+
};
|
|
2466
|
+
/**
|
|
2467
|
+
* Not Found
|
|
2468
|
+
*/
|
|
2469
|
+
404: ErrorResponse & {
|
|
2470
|
+
error?: Error & {
|
|
2471
|
+
message?: string;
|
|
2472
|
+
error?: string;
|
|
2473
|
+
statusCode?: number;
|
|
2474
|
+
requestId?: string;
|
|
2475
|
+
};
|
|
2476
|
+
};
|
|
2477
|
+
/**
|
|
2478
|
+
* Internal Server Error
|
|
2479
|
+
*/
|
|
2480
|
+
500: ErrorResponse & {
|
|
2481
|
+
error?: Error & {
|
|
2482
|
+
message?: string;
|
|
2483
|
+
error?: string;
|
|
2484
|
+
statusCode?: number;
|
|
2485
|
+
requestId?: string;
|
|
2486
|
+
};
|
|
2487
|
+
};
|
|
2488
|
+
};
|
|
2489
|
+
export type ProfileControllerGetProfileError = ProfileControllerGetProfileErrors[keyof ProfileControllerGetProfileErrors];
|
|
2490
|
+
export type ProfileControllerGetProfileResponses = {
|
|
2491
|
+
/**
|
|
2492
|
+
* The profile has been fetched
|
|
2493
|
+
*/
|
|
2494
|
+
200: Response & {
|
|
2495
|
+
data?: Profile;
|
|
2496
|
+
};
|
|
2497
|
+
};
|
|
2498
|
+
export type ProfileControllerGetProfileResponse = ProfileControllerGetProfileResponses[keyof ProfileControllerGetProfileResponses];
|
|
2499
|
+
export type ProfileControllerUpdateProfileData = {
|
|
2500
|
+
body: UpdateProfile;
|
|
2501
|
+
path?: never;
|
|
2502
|
+
query?: never;
|
|
2503
|
+
url: '/profiles/profile';
|
|
2504
|
+
};
|
|
2505
|
+
export type ProfileControllerUpdateProfileErrors = {
|
|
2506
|
+
/**
|
|
2507
|
+
* Bad Request
|
|
2508
|
+
*/
|
|
2509
|
+
400: ErrorResponse & {
|
|
2510
|
+
error?: Error & {
|
|
2511
|
+
message?: string;
|
|
2512
|
+
error?: string;
|
|
2513
|
+
statusCode?: number;
|
|
2514
|
+
requestId?: string;
|
|
2515
|
+
};
|
|
2516
|
+
};
|
|
2517
|
+
/**
|
|
2518
|
+
* Unauthorized
|
|
2519
|
+
*/
|
|
2520
|
+
401: ErrorResponse & {
|
|
2521
|
+
error?: Error & {
|
|
2522
|
+
message?: string;
|
|
2523
|
+
error?: string;
|
|
2524
|
+
statusCode?: number;
|
|
2525
|
+
requestId?: string;
|
|
2526
|
+
};
|
|
2527
|
+
};
|
|
2528
|
+
/**
|
|
2529
|
+
* Forbidden
|
|
2530
|
+
*/
|
|
2531
|
+
403: ErrorResponse & {
|
|
2532
|
+
error?: Error & {
|
|
2533
|
+
message?: string;
|
|
2534
|
+
error?: string;
|
|
2535
|
+
statusCode?: number;
|
|
2536
|
+
requestId?: string;
|
|
2537
|
+
};
|
|
2538
|
+
};
|
|
2539
|
+
/**
|
|
2540
|
+
* Not Found
|
|
2541
|
+
*/
|
|
2542
|
+
404: ErrorResponse & {
|
|
2543
|
+
error?: Error & {
|
|
2544
|
+
message?: string;
|
|
2545
|
+
error?: string;
|
|
2546
|
+
statusCode?: number;
|
|
2547
|
+
requestId?: string;
|
|
2548
|
+
};
|
|
2549
|
+
};
|
|
2550
|
+
/**
|
|
2551
|
+
* Internal Server Error
|
|
2552
|
+
*/
|
|
2553
|
+
500: ErrorResponse & {
|
|
2554
|
+
error?: Error & {
|
|
2555
|
+
message?: string;
|
|
2556
|
+
error?: string;
|
|
2557
|
+
statusCode?: number;
|
|
2558
|
+
requestId?: string;
|
|
2559
|
+
};
|
|
2560
|
+
};
|
|
2561
|
+
};
|
|
2562
|
+
export type ProfileControllerUpdateProfileError = ProfileControllerUpdateProfileErrors[keyof ProfileControllerUpdateProfileErrors];
|
|
2563
|
+
export type ProfileControllerUpdateProfileResponses = {
|
|
2564
|
+
/**
|
|
2565
|
+
* The profile has been updated
|
|
2566
|
+
*/
|
|
2567
|
+
200: Response & {
|
|
2568
|
+
data?: Profile;
|
|
2569
|
+
};
|
|
2570
|
+
};
|
|
2571
|
+
export type ProfileControllerUpdateProfileResponse = ProfileControllerUpdateProfileResponses[keyof ProfileControllerUpdateProfileResponses];
|
|
2572
|
+
export type AnalyticsControllerLoadSavedItemsData = {
|
|
2573
|
+
body?: never;
|
|
2574
|
+
path?: never;
|
|
2575
|
+
query: {
|
|
2576
|
+
/**
|
|
2577
|
+
* The granularity of the data
|
|
2578
|
+
*/
|
|
2579
|
+
granularity?: string;
|
|
2580
|
+
/**
|
|
2581
|
+
* The start date
|
|
2582
|
+
*/
|
|
2583
|
+
start: string;
|
|
2584
|
+
/**
|
|
2585
|
+
* The end date
|
|
2586
|
+
*/
|
|
2587
|
+
end: string;
|
|
2588
|
+
/**
|
|
2589
|
+
* Filter by product or variant ID
|
|
2590
|
+
*/
|
|
2591
|
+
merchandiseId?: string;
|
|
2592
|
+
};
|
|
2593
|
+
url: '/analytics/saved-items';
|
|
2594
|
+
};
|
|
2595
|
+
export type AnalyticsControllerLoadSavedItemsErrors = {
|
|
2596
|
+
/**
|
|
2597
|
+
* Bad Request
|
|
2598
|
+
*/
|
|
2599
|
+
400: ErrorResponse & {
|
|
2600
|
+
error?: Error & {
|
|
2601
|
+
message?: string;
|
|
2602
|
+
error?: string;
|
|
2603
|
+
statusCode?: number;
|
|
2604
|
+
requestId?: string;
|
|
2605
|
+
};
|
|
2606
|
+
};
|
|
2607
|
+
/**
|
|
2608
|
+
* Unauthorized
|
|
2609
|
+
*/
|
|
2610
|
+
401: ErrorResponse & {
|
|
2611
|
+
error?: Error & {
|
|
2612
|
+
message?: string;
|
|
2613
|
+
error?: string;
|
|
2614
|
+
statusCode?: number;
|
|
2615
|
+
requestId?: string;
|
|
2616
|
+
};
|
|
2617
|
+
};
|
|
2618
|
+
/**
|
|
2619
|
+
* Forbidden
|
|
2620
|
+
*/
|
|
2621
|
+
403: ErrorResponse & {
|
|
2622
|
+
error?: Error & {
|
|
2623
|
+
message?: string;
|
|
2624
|
+
error?: string;
|
|
2625
|
+
statusCode?: number;
|
|
2626
|
+
requestId?: string;
|
|
2627
|
+
};
|
|
2628
|
+
};
|
|
2629
|
+
/**
|
|
2630
|
+
* Not Found
|
|
2631
|
+
*/
|
|
2632
|
+
404: ErrorResponse & {
|
|
2633
|
+
error?: Error & {
|
|
2634
|
+
message?: string;
|
|
2635
|
+
error?: string;
|
|
2636
|
+
statusCode?: number;
|
|
2637
|
+
requestId?: string;
|
|
2638
|
+
};
|
|
2639
|
+
};
|
|
2640
|
+
/**
|
|
2641
|
+
* Internal Server Error
|
|
2642
|
+
*/
|
|
2643
|
+
500: ErrorResponse & {
|
|
2644
|
+
error?: Error & {
|
|
2645
|
+
message?: string;
|
|
2646
|
+
error?: string;
|
|
2647
|
+
statusCode?: number;
|
|
2648
|
+
requestId?: string;
|
|
2649
|
+
};
|
|
2650
|
+
};
|
|
2651
|
+
};
|
|
2652
|
+
export type AnalyticsControllerLoadSavedItemsError = AnalyticsControllerLoadSavedItemsErrors[keyof AnalyticsControllerLoadSavedItemsErrors];
|
|
2653
|
+
export type AnalyticsControllerLoadSavedItemsResponses = {
|
|
2654
|
+
/**
|
|
2655
|
+
* Returns saved items analytics
|
|
2656
|
+
*/
|
|
2657
|
+
200: Response & {
|
|
2658
|
+
data?: Array<Analytics>;
|
|
2659
|
+
};
|
|
2660
|
+
};
|
|
2661
|
+
export type AnalyticsControllerLoadSavedItemsResponse = AnalyticsControllerLoadSavedItemsResponses[keyof AnalyticsControllerLoadSavedItemsResponses];
|
|
2662
|
+
export type AnalyticsControllerLoadSessionsData = {
|
|
2663
|
+
body?: never;
|
|
2664
|
+
path?: never;
|
|
2665
|
+
query: {
|
|
2666
|
+
/**
|
|
2667
|
+
* The granularity of the data
|
|
2668
|
+
*/
|
|
2669
|
+
granularity?: string;
|
|
2670
|
+
/**
|
|
2671
|
+
* The start date
|
|
2672
|
+
*/
|
|
2673
|
+
start: string;
|
|
2674
|
+
/**
|
|
2675
|
+
* The end date
|
|
2676
|
+
*/
|
|
2677
|
+
end: string;
|
|
2678
|
+
/**
|
|
2679
|
+
* Filter by product or variant ID
|
|
2680
|
+
*/
|
|
2681
|
+
merchandiseId?: string;
|
|
2682
|
+
};
|
|
2683
|
+
url: '/analytics/sessions';
|
|
2684
|
+
};
|
|
2685
|
+
export type AnalyticsControllerLoadSessionsErrors = {
|
|
2686
|
+
/**
|
|
2687
|
+
* Bad Request
|
|
2688
|
+
*/
|
|
2689
|
+
400: ErrorResponse & {
|
|
2690
|
+
error?: Error & {
|
|
2691
|
+
message?: string;
|
|
2692
|
+
error?: string;
|
|
2693
|
+
statusCode?: number;
|
|
2694
|
+
requestId?: string;
|
|
2695
|
+
};
|
|
2696
|
+
};
|
|
2697
|
+
/**
|
|
2698
|
+
* Unauthorized
|
|
2699
|
+
*/
|
|
2700
|
+
401: ErrorResponse & {
|
|
2701
|
+
error?: Error & {
|
|
2702
|
+
message?: string;
|
|
2703
|
+
error?: string;
|
|
2704
|
+
statusCode?: number;
|
|
2705
|
+
requestId?: string;
|
|
2706
|
+
};
|
|
2707
|
+
};
|
|
2708
|
+
/**
|
|
2709
|
+
* Forbidden
|
|
2710
|
+
*/
|
|
2711
|
+
403: ErrorResponse & {
|
|
2712
|
+
error?: Error & {
|
|
2713
|
+
message?: string;
|
|
2714
|
+
error?: string;
|
|
2715
|
+
statusCode?: number;
|
|
2716
|
+
requestId?: string;
|
|
2717
|
+
};
|
|
2718
|
+
};
|
|
2719
|
+
/**
|
|
2720
|
+
* Not Found
|
|
2721
|
+
*/
|
|
2722
|
+
404: ErrorResponse & {
|
|
2723
|
+
error?: Error & {
|
|
2724
|
+
message?: string;
|
|
2725
|
+
error?: string;
|
|
2726
|
+
statusCode?: number;
|
|
2727
|
+
requestId?: string;
|
|
2728
|
+
};
|
|
2729
|
+
};
|
|
2730
|
+
/**
|
|
2731
|
+
* Internal Server Error
|
|
2732
|
+
*/
|
|
2733
|
+
500: ErrorResponse & {
|
|
2734
|
+
error?: Error & {
|
|
2735
|
+
message?: string;
|
|
2736
|
+
error?: string;
|
|
2737
|
+
statusCode?: number;
|
|
2738
|
+
requestId?: string;
|
|
2739
|
+
};
|
|
2740
|
+
};
|
|
2741
|
+
};
|
|
2742
|
+
export type AnalyticsControllerLoadSessionsError = AnalyticsControllerLoadSessionsErrors[keyof AnalyticsControllerLoadSessionsErrors];
|
|
2743
|
+
export type AnalyticsControllerLoadSessionsResponses = {
|
|
2744
|
+
/**
|
|
2745
|
+
* Returns sessions analytics
|
|
2746
|
+
*/
|
|
2747
|
+
200: Response & {
|
|
2748
|
+
data?: Array<Analytics>;
|
|
2749
|
+
};
|
|
2750
|
+
};
|
|
2751
|
+
export type AnalyticsControllerLoadSessionsResponse = AnalyticsControllerLoadSessionsResponses[keyof AnalyticsControllerLoadSessionsResponses];
|
|
2752
|
+
export type AnalyticsControllerLoadNewListsData = {
|
|
2753
|
+
body?: never;
|
|
2754
|
+
path?: never;
|
|
2755
|
+
query: {
|
|
2756
|
+
/**
|
|
2757
|
+
* The granularity of the data
|
|
2758
|
+
*/
|
|
2759
|
+
granularity?: string;
|
|
2760
|
+
/**
|
|
2761
|
+
* The start date
|
|
2762
|
+
*/
|
|
2763
|
+
start: string;
|
|
2764
|
+
/**
|
|
2765
|
+
* The end date
|
|
2766
|
+
*/
|
|
2767
|
+
end: string;
|
|
2768
|
+
/**
|
|
2769
|
+
* Filter by product or variant ID
|
|
2770
|
+
*/
|
|
2771
|
+
merchandiseId?: string;
|
|
2772
|
+
};
|
|
2773
|
+
url: '/analytics/new-lists';
|
|
2774
|
+
};
|
|
2775
|
+
export type AnalyticsControllerLoadNewListsErrors = {
|
|
2776
|
+
/**
|
|
2777
|
+
* Bad Request
|
|
2778
|
+
*/
|
|
2779
|
+
400: ErrorResponse & {
|
|
2780
|
+
error?: Error & {
|
|
2781
|
+
message?: string;
|
|
2782
|
+
error?: string;
|
|
2783
|
+
statusCode?: number;
|
|
2784
|
+
requestId?: string;
|
|
2785
|
+
};
|
|
2786
|
+
};
|
|
2787
|
+
/**
|
|
2788
|
+
* Unauthorized
|
|
2789
|
+
*/
|
|
2790
|
+
401: ErrorResponse & {
|
|
2791
|
+
error?: Error & {
|
|
2792
|
+
message?: string;
|
|
2793
|
+
error?: string;
|
|
2794
|
+
statusCode?: number;
|
|
2795
|
+
requestId?: string;
|
|
2796
|
+
};
|
|
2797
|
+
};
|
|
2798
|
+
/**
|
|
2799
|
+
* Forbidden
|
|
2800
|
+
*/
|
|
2801
|
+
403: ErrorResponse & {
|
|
2802
|
+
error?: Error & {
|
|
2803
|
+
message?: string;
|
|
2804
|
+
error?: string;
|
|
2805
|
+
statusCode?: number;
|
|
2806
|
+
requestId?: string;
|
|
2807
|
+
};
|
|
2808
|
+
};
|
|
2809
|
+
/**
|
|
2810
|
+
* Not Found
|
|
2811
|
+
*/
|
|
2812
|
+
404: ErrorResponse & {
|
|
2813
|
+
error?: Error & {
|
|
2814
|
+
message?: string;
|
|
2815
|
+
error?: string;
|
|
2816
|
+
statusCode?: number;
|
|
2817
|
+
requestId?: string;
|
|
2818
|
+
};
|
|
2819
|
+
};
|
|
2820
|
+
/**
|
|
2821
|
+
* Internal Server Error
|
|
2822
|
+
*/
|
|
2823
|
+
500: ErrorResponse & {
|
|
2824
|
+
error?: Error & {
|
|
2825
|
+
message?: string;
|
|
2826
|
+
error?: string;
|
|
2827
|
+
statusCode?: number;
|
|
2828
|
+
requestId?: string;
|
|
2829
|
+
};
|
|
2830
|
+
};
|
|
2831
|
+
};
|
|
2832
|
+
export type AnalyticsControllerLoadNewListsError = AnalyticsControllerLoadNewListsErrors[keyof AnalyticsControllerLoadNewListsErrors];
|
|
2833
|
+
export type AnalyticsControllerLoadNewListsResponses = {
|
|
2834
|
+
/**
|
|
2835
|
+
* Returns new lists analytics
|
|
2836
|
+
*/
|
|
2837
|
+
200: Response & {
|
|
2838
|
+
data?: Array<Analytics>;
|
|
2839
|
+
};
|
|
2840
|
+
};
|
|
2841
|
+
export type AnalyticsControllerLoadNewListsResponse = AnalyticsControllerLoadNewListsResponses[keyof AnalyticsControllerLoadNewListsResponses];
|
|
2842
|
+
export type TrackingControllerCollectData = {
|
|
2843
|
+
body: TrackingEventRequest;
|
|
2844
|
+
path?: never;
|
|
2845
|
+
query?: never;
|
|
2846
|
+
url: '/collect';
|
|
2847
|
+
};
|
|
2848
|
+
export type TrackingControllerCollectErrors = {
|
|
2849
|
+
/**
|
|
2850
|
+
* Bad Request
|
|
2851
|
+
*/
|
|
2852
|
+
400: ErrorResponse & {
|
|
2853
|
+
error?: Error & {
|
|
2854
|
+
message?: string;
|
|
2855
|
+
error?: string;
|
|
2856
|
+
statusCode?: number;
|
|
2857
|
+
requestId?: string;
|
|
2858
|
+
};
|
|
2859
|
+
};
|
|
2860
|
+
/**
|
|
2861
|
+
* Unauthorized
|
|
2862
|
+
*/
|
|
2863
|
+
401: ErrorResponse & {
|
|
2864
|
+
error?: Error & {
|
|
2865
|
+
message?: string;
|
|
2866
|
+
error?: string;
|
|
2867
|
+
statusCode?: number;
|
|
2868
|
+
requestId?: string;
|
|
2869
|
+
};
|
|
2870
|
+
};
|
|
2871
|
+
/**
|
|
2872
|
+
* Forbidden
|
|
2873
|
+
*/
|
|
2874
|
+
403: ErrorResponse & {
|
|
2875
|
+
error?: Error & {
|
|
2876
|
+
message?: string;
|
|
2877
|
+
error?: string;
|
|
2878
|
+
statusCode?: number;
|
|
2879
|
+
requestId?: string;
|
|
2880
|
+
};
|
|
2881
|
+
};
|
|
2882
|
+
/**
|
|
2883
|
+
* Not Found
|
|
2884
|
+
*/
|
|
2885
|
+
404: ErrorResponse & {
|
|
2886
|
+
error?: Error & {
|
|
2887
|
+
message?: string;
|
|
2888
|
+
error?: string;
|
|
2889
|
+
statusCode?: number;
|
|
2890
|
+
requestId?: string;
|
|
2891
|
+
};
|
|
2892
|
+
};
|
|
2893
|
+
/**
|
|
2894
|
+
* Internal Server Error
|
|
2895
|
+
*/
|
|
2896
|
+
500: ErrorResponse & {
|
|
2897
|
+
error?: Error & {
|
|
2898
|
+
message?: string;
|
|
2899
|
+
error?: string;
|
|
2900
|
+
statusCode?: number;
|
|
2901
|
+
requestId?: string;
|
|
2902
|
+
};
|
|
2903
|
+
};
|
|
2904
|
+
};
|
|
2905
|
+
export type TrackingControllerCollectError = TrackingControllerCollectErrors[keyof TrackingControllerCollectErrors];
|
|
2906
|
+
export type TrackingControllerCollectResponses = {
|
|
2907
|
+
/**
|
|
2908
|
+
* Event tracked successfully
|
|
2909
|
+
*/
|
|
2910
|
+
204: void;
|
|
2911
|
+
};
|
|
2912
|
+
export type TrackingControllerCollectResponse = TrackingControllerCollectResponses[keyof TrackingControllerCollectResponses];
|
|
2913
|
+
export type OrdersControllerFindData = {
|
|
2914
|
+
body?: never;
|
|
2915
|
+
path?: never;
|
|
2916
|
+
query?: {
|
|
2917
|
+
/**
|
|
2918
|
+
* Pagination cursor for next or previous page
|
|
2919
|
+
*/
|
|
2920
|
+
page?: string;
|
|
2921
|
+
/**
|
|
2922
|
+
* Number of orders to return per page
|
|
2923
|
+
*/
|
|
2924
|
+
limit?: number;
|
|
2925
|
+
};
|
|
2926
|
+
url: '/orders';
|
|
2927
|
+
};
|
|
2928
|
+
export type OrdersControllerFindErrors = {
|
|
2929
|
+
/**
|
|
2930
|
+
* Bad Request
|
|
2931
|
+
*/
|
|
2932
|
+
400: ErrorResponse & {
|
|
2933
|
+
error?: Error & {
|
|
2934
|
+
message?: string;
|
|
2935
|
+
error?: string;
|
|
2936
|
+
statusCode?: number;
|
|
2937
|
+
requestId?: string;
|
|
2938
|
+
};
|
|
2939
|
+
};
|
|
2940
|
+
/**
|
|
2941
|
+
* Unauthorized
|
|
2942
|
+
*/
|
|
2943
|
+
401: ErrorResponse & {
|
|
2944
|
+
error?: Error & {
|
|
2945
|
+
message?: string;
|
|
2946
|
+
error?: string;
|
|
2947
|
+
statusCode?: number;
|
|
2948
|
+
requestId?: string;
|
|
2949
|
+
};
|
|
2950
|
+
};
|
|
2951
|
+
/**
|
|
2952
|
+
* Forbidden
|
|
2953
|
+
*/
|
|
2954
|
+
403: ErrorResponse & {
|
|
2955
|
+
error?: Error & {
|
|
2956
|
+
message?: string;
|
|
2957
|
+
error?: string;
|
|
2958
|
+
statusCode?: number;
|
|
2959
|
+
requestId?: string;
|
|
2960
|
+
};
|
|
2961
|
+
};
|
|
2962
|
+
/**
|
|
2963
|
+
* Not Found
|
|
2964
|
+
*/
|
|
2965
|
+
404: ErrorResponse & {
|
|
2966
|
+
error?: Error & {
|
|
2967
|
+
message?: string;
|
|
2968
|
+
error?: string;
|
|
2969
|
+
statusCode?: number;
|
|
2970
|
+
requestId?: string;
|
|
2971
|
+
};
|
|
2972
|
+
};
|
|
2973
|
+
/**
|
|
2974
|
+
* Internal Server Error
|
|
2975
|
+
*/
|
|
2976
|
+
500: ErrorResponse & {
|
|
2977
|
+
error?: Error & {
|
|
2978
|
+
message?: string;
|
|
2979
|
+
error?: string;
|
|
2980
|
+
statusCode?: number;
|
|
2981
|
+
requestId?: string;
|
|
2982
|
+
};
|
|
2983
|
+
};
|
|
2984
|
+
};
|
|
2985
|
+
export type OrdersControllerFindError = OrdersControllerFindErrors[keyof OrdersControllerFindErrors];
|
|
2986
|
+
export type OrdersControllerFindResponses = {
|
|
2987
|
+
/**
|
|
2988
|
+
* Returns all orders as paginated response
|
|
2989
|
+
*/
|
|
2990
|
+
200: PaginatedResponse & {
|
|
2991
|
+
data?: Array<Order>;
|
|
2992
|
+
};
|
|
2993
|
+
};
|
|
2994
|
+
export type OrdersControllerFindResponse = OrdersControllerFindResponses[keyof OrdersControllerFindResponses];
|
|
2995
|
+
export type OrdersControllerFindOneData = {
|
|
2996
|
+
body?: never;
|
|
2997
|
+
path: {
|
|
2998
|
+
/**
|
|
2999
|
+
* The ID of the order
|
|
3000
|
+
*/
|
|
3001
|
+
orderId: number;
|
|
3002
|
+
};
|
|
3003
|
+
query?: never;
|
|
3004
|
+
url: '/orders/{orderId}';
|
|
3005
|
+
};
|
|
3006
|
+
export type OrdersControllerFindOneErrors = {
|
|
3007
|
+
/**
|
|
3008
|
+
* Bad Request
|
|
3009
|
+
*/
|
|
3010
|
+
400: ErrorResponse & {
|
|
3011
|
+
error?: Error & {
|
|
3012
|
+
message?: string;
|
|
3013
|
+
error?: string;
|
|
3014
|
+
statusCode?: number;
|
|
3015
|
+
requestId?: string;
|
|
3016
|
+
};
|
|
3017
|
+
};
|
|
3018
|
+
/**
|
|
3019
|
+
* Unauthorized
|
|
3020
|
+
*/
|
|
3021
|
+
401: ErrorResponse & {
|
|
3022
|
+
error?: Error & {
|
|
3023
|
+
message?: string;
|
|
3024
|
+
error?: string;
|
|
3025
|
+
statusCode?: number;
|
|
3026
|
+
requestId?: string;
|
|
3027
|
+
};
|
|
3028
|
+
};
|
|
3029
|
+
/**
|
|
3030
|
+
* Forbidden
|
|
3031
|
+
*/
|
|
3032
|
+
403: ErrorResponse & {
|
|
3033
|
+
error?: Error & {
|
|
3034
|
+
message?: string;
|
|
3035
|
+
error?: string;
|
|
3036
|
+
statusCode?: number;
|
|
3037
|
+
requestId?: string;
|
|
3038
|
+
};
|
|
3039
|
+
};
|
|
3040
|
+
/**
|
|
3041
|
+
* Not Found
|
|
3042
|
+
*/
|
|
3043
|
+
404: ErrorResponse & {
|
|
3044
|
+
error?: Error & {
|
|
3045
|
+
message?: string;
|
|
3046
|
+
error?: string;
|
|
3047
|
+
statusCode?: number;
|
|
3048
|
+
requestId?: string;
|
|
3049
|
+
};
|
|
3050
|
+
};
|
|
3051
|
+
/**
|
|
3052
|
+
* Internal Server Error
|
|
3053
|
+
*/
|
|
3054
|
+
500: ErrorResponse & {
|
|
3055
|
+
error?: Error & {
|
|
3056
|
+
message?: string;
|
|
3057
|
+
error?: string;
|
|
3058
|
+
statusCode?: number;
|
|
3059
|
+
requestId?: string;
|
|
3060
|
+
};
|
|
3061
|
+
};
|
|
3062
|
+
};
|
|
3063
|
+
export type OrdersControllerFindOneError = OrdersControllerFindOneErrors[keyof OrdersControllerFindOneErrors];
|
|
3064
|
+
export type OrdersControllerFindOneResponses = {
|
|
3065
|
+
/**
|
|
3066
|
+
* Returns order detail with line items and tracking information
|
|
3067
|
+
*/
|
|
3068
|
+
200: Response & {
|
|
3069
|
+
data?: OrderDetail;
|
|
3070
|
+
};
|
|
3071
|
+
};
|
|
3072
|
+
export type OrdersControllerFindOneResponse = OrdersControllerFindOneResponses[keyof OrdersControllerFindOneResponses];
|
|
3073
|
+
export type SharedListsControllerFindAllData = {
|
|
3074
|
+
body?: never;
|
|
3075
|
+
path?: never;
|
|
3076
|
+
query?: {
|
|
3077
|
+
/**
|
|
3078
|
+
* The page cursor
|
|
3079
|
+
*/
|
|
3080
|
+
page?: string;
|
|
3081
|
+
/**
|
|
3082
|
+
* Number of lists/items to return
|
|
3083
|
+
*/
|
|
3084
|
+
limit?: number;
|
|
3085
|
+
};
|
|
3086
|
+
url: '/shared-lists';
|
|
3087
|
+
};
|
|
3088
|
+
export type SharedListsControllerFindAllErrors = {
|
|
3089
|
+
/**
|
|
3090
|
+
* Bad Request
|
|
3091
|
+
*/
|
|
3092
|
+
400: ErrorResponse & {
|
|
3093
|
+
error?: Error & {
|
|
3094
|
+
message?: string;
|
|
3095
|
+
error?: string;
|
|
3096
|
+
statusCode?: number;
|
|
3097
|
+
requestId?: string;
|
|
3098
|
+
};
|
|
3099
|
+
};
|
|
3100
|
+
/**
|
|
3101
|
+
* Unauthorized
|
|
3102
|
+
*/
|
|
3103
|
+
401: ErrorResponse & {
|
|
3104
|
+
error?: Error & {
|
|
3105
|
+
message?: string;
|
|
3106
|
+
error?: string;
|
|
3107
|
+
statusCode?: number;
|
|
3108
|
+
requestId?: string;
|
|
3109
|
+
};
|
|
3110
|
+
};
|
|
3111
|
+
/**
|
|
3112
|
+
* Forbidden
|
|
3113
|
+
*/
|
|
3114
|
+
403: ErrorResponse & {
|
|
3115
|
+
error?: Error & {
|
|
3116
|
+
message?: string;
|
|
3117
|
+
error?: string;
|
|
3118
|
+
statusCode?: number;
|
|
3119
|
+
requestId?: string;
|
|
3120
|
+
};
|
|
3121
|
+
};
|
|
3122
|
+
/**
|
|
3123
|
+
* Not Found
|
|
3124
|
+
*/
|
|
3125
|
+
404: ErrorResponse & {
|
|
3126
|
+
error?: Error & {
|
|
3127
|
+
message?: string;
|
|
3128
|
+
error?: string;
|
|
3129
|
+
statusCode?: number;
|
|
3130
|
+
requestId?: string;
|
|
3131
|
+
};
|
|
3132
|
+
};
|
|
3133
|
+
/**
|
|
3134
|
+
* Internal Server Error
|
|
3135
|
+
*/
|
|
3136
|
+
500: ErrorResponse & {
|
|
3137
|
+
error?: Error & {
|
|
3138
|
+
message?: string;
|
|
3139
|
+
error?: string;
|
|
3140
|
+
statusCode?: number;
|
|
3141
|
+
requestId?: string;
|
|
3142
|
+
};
|
|
3143
|
+
};
|
|
3144
|
+
};
|
|
3145
|
+
export type SharedListsControllerFindAllError = SharedListsControllerFindAllErrors[keyof SharedListsControllerFindAllErrors];
|
|
3146
|
+
export type SharedListsControllerFindAllResponses = {
|
|
3147
|
+
/**
|
|
3148
|
+
* Returns all shared lists as paginated response
|
|
3149
|
+
*/
|
|
3150
|
+
200: PaginatedResponse & {
|
|
3151
|
+
data?: Array<ListDetail>;
|
|
3152
|
+
};
|
|
3153
|
+
};
|
|
3154
|
+
export type SharedListsControllerFindAllResponse = SharedListsControllerFindAllResponses[keyof SharedListsControllerFindAllResponses];
|
|
3155
|
+
export type SharedListsControllerSaveData = {
|
|
3156
|
+
body: SaveSharedList;
|
|
3157
|
+
path?: never;
|
|
3158
|
+
query?: never;
|
|
3159
|
+
url: '/shared-lists';
|
|
3160
|
+
};
|
|
3161
|
+
export type SharedListsControllerSaveErrors = {
|
|
3162
|
+
/**
|
|
3163
|
+
* Bad Request
|
|
3164
|
+
*/
|
|
3165
|
+
400: ErrorResponse & {
|
|
3166
|
+
error?: Error & {
|
|
3167
|
+
message?: string;
|
|
3168
|
+
error?: string;
|
|
3169
|
+
statusCode?: number;
|
|
3170
|
+
requestId?: string;
|
|
3171
|
+
};
|
|
3172
|
+
};
|
|
3173
|
+
/**
|
|
3174
|
+
* Unauthorized
|
|
3175
|
+
*/
|
|
3176
|
+
401: ErrorResponse & {
|
|
3177
|
+
error?: Error & {
|
|
3178
|
+
message?: string;
|
|
3179
|
+
error?: string;
|
|
3180
|
+
statusCode?: number;
|
|
3181
|
+
requestId?: string;
|
|
3182
|
+
};
|
|
3183
|
+
};
|
|
3184
|
+
/**
|
|
3185
|
+
* Forbidden
|
|
3186
|
+
*/
|
|
3187
|
+
403: ErrorResponse & {
|
|
3188
|
+
error?: Error & {
|
|
3189
|
+
message?: string;
|
|
3190
|
+
error?: string;
|
|
3191
|
+
statusCode?: number;
|
|
3192
|
+
requestId?: string;
|
|
3193
|
+
};
|
|
3194
|
+
};
|
|
3195
|
+
/**
|
|
3196
|
+
* Not Found
|
|
3197
|
+
*/
|
|
3198
|
+
404: ErrorResponse & {
|
|
3199
|
+
error?: Error & {
|
|
3200
|
+
message?: string;
|
|
3201
|
+
error?: string;
|
|
3202
|
+
statusCode?: number;
|
|
3203
|
+
requestId?: string;
|
|
3204
|
+
};
|
|
3205
|
+
};
|
|
3206
|
+
/**
|
|
3207
|
+
* Internal Server Error
|
|
3208
|
+
*/
|
|
3209
|
+
500: ErrorResponse & {
|
|
3210
|
+
error?: Error & {
|
|
3211
|
+
message?: string;
|
|
3212
|
+
error?: string;
|
|
3213
|
+
statusCode?: number;
|
|
3214
|
+
requestId?: string;
|
|
3215
|
+
};
|
|
3216
|
+
};
|
|
3217
|
+
};
|
|
3218
|
+
export type SharedListsControllerSaveError = SharedListsControllerSaveErrors[keyof SharedListsControllerSaveErrors];
|
|
3219
|
+
export type SharedListsControllerSaveResponses = {
|
|
3220
|
+
/**
|
|
3221
|
+
* The shared list has been successfully saved.
|
|
3222
|
+
*/
|
|
3223
|
+
201: Response & {
|
|
3224
|
+
data?: ListDetail;
|
|
3225
|
+
};
|
|
3226
|
+
};
|
|
3227
|
+
export type SharedListsControllerSaveResponse = SharedListsControllerSaveResponses[keyof SharedListsControllerSaveResponses];
|
|
3228
|
+
export type SharedListsControllerDeleteByIdData = {
|
|
3229
|
+
body?: never;
|
|
3230
|
+
path: {
|
|
3231
|
+
/**
|
|
3232
|
+
* The ID of the shared list
|
|
3233
|
+
*/
|
|
3234
|
+
sharedListId: string;
|
|
3235
|
+
};
|
|
3236
|
+
query?: never;
|
|
3237
|
+
url: '/shared-lists/{sharedListId}';
|
|
3238
|
+
};
|
|
3239
|
+
export type SharedListsControllerDeleteByIdErrors = {
|
|
3240
|
+
/**
|
|
3241
|
+
* Bad Request
|
|
3242
|
+
*/
|
|
3243
|
+
400: ErrorResponse & {
|
|
3244
|
+
error?: Error & {
|
|
3245
|
+
message?: string;
|
|
3246
|
+
error?: string;
|
|
3247
|
+
statusCode?: number;
|
|
3248
|
+
requestId?: string;
|
|
3249
|
+
};
|
|
3250
|
+
};
|
|
3251
|
+
/**
|
|
3252
|
+
* Unauthorized
|
|
3253
|
+
*/
|
|
3254
|
+
401: ErrorResponse & {
|
|
3255
|
+
error?: Error & {
|
|
3256
|
+
message?: string;
|
|
3257
|
+
error?: string;
|
|
3258
|
+
statusCode?: number;
|
|
3259
|
+
requestId?: string;
|
|
3260
|
+
};
|
|
3261
|
+
};
|
|
3262
|
+
/**
|
|
3263
|
+
* Forbidden
|
|
3264
|
+
*/
|
|
3265
|
+
403: ErrorResponse & {
|
|
3266
|
+
error?: Error & {
|
|
3267
|
+
message?: string;
|
|
3268
|
+
error?: string;
|
|
3269
|
+
statusCode?: number;
|
|
3270
|
+
requestId?: string;
|
|
3271
|
+
};
|
|
3272
|
+
};
|
|
3273
|
+
/**
|
|
3274
|
+
* Not Found
|
|
3275
|
+
*/
|
|
3276
|
+
404: ErrorResponse & {
|
|
3277
|
+
error?: Error & {
|
|
3278
|
+
message?: string;
|
|
3279
|
+
error?: string;
|
|
3280
|
+
statusCode?: number;
|
|
3281
|
+
requestId?: string;
|
|
3282
|
+
};
|
|
3283
|
+
};
|
|
3284
|
+
/**
|
|
3285
|
+
* Internal Server Error
|
|
3286
|
+
*/
|
|
3287
|
+
500: ErrorResponse & {
|
|
3288
|
+
error?: Error & {
|
|
3289
|
+
message?: string;
|
|
3290
|
+
error?: string;
|
|
3291
|
+
statusCode?: number;
|
|
3292
|
+
requestId?: string;
|
|
3293
|
+
};
|
|
3294
|
+
};
|
|
3295
|
+
};
|
|
3296
|
+
export type SharedListsControllerDeleteByIdError = SharedListsControllerDeleteByIdErrors[keyof SharedListsControllerDeleteByIdErrors];
|
|
3297
|
+
export type SharedListsControllerDeleteByIdResponses = {
|
|
3298
|
+
/**
|
|
3299
|
+
* The shared list has been successfully deleted.
|
|
3300
|
+
*/
|
|
3301
|
+
204: void;
|
|
3302
|
+
};
|
|
3303
|
+
export type SharedListsControllerDeleteByIdResponse = SharedListsControllerDeleteByIdResponses[keyof SharedListsControllerDeleteByIdResponses];
|
|
3304
|
+
export type SharedListsControllerFindByIdData = {
|
|
3305
|
+
body?: never;
|
|
3306
|
+
path: {
|
|
3307
|
+
/**
|
|
3308
|
+
* The ID of the shared list
|
|
3309
|
+
*/
|
|
3310
|
+
sharedListId: string;
|
|
3311
|
+
};
|
|
3312
|
+
query?: never;
|
|
3313
|
+
url: '/shared-lists/{sharedListId}';
|
|
3314
|
+
};
|
|
3315
|
+
export type SharedListsControllerFindByIdErrors = {
|
|
3316
|
+
/**
|
|
3317
|
+
* Bad Request
|
|
3318
|
+
*/
|
|
3319
|
+
400: ErrorResponse & {
|
|
3320
|
+
error?: Error & {
|
|
3321
|
+
message?: string;
|
|
3322
|
+
error?: string;
|
|
3323
|
+
statusCode?: number;
|
|
3324
|
+
requestId?: string;
|
|
3325
|
+
};
|
|
3326
|
+
};
|
|
3327
|
+
/**
|
|
3328
|
+
* Unauthorized
|
|
3329
|
+
*/
|
|
3330
|
+
401: ErrorResponse & {
|
|
3331
|
+
error?: Error & {
|
|
3332
|
+
message?: string;
|
|
3333
|
+
error?: string;
|
|
3334
|
+
statusCode?: number;
|
|
3335
|
+
requestId?: string;
|
|
3336
|
+
};
|
|
3337
|
+
};
|
|
3338
|
+
/**
|
|
3339
|
+
* Forbidden
|
|
3340
|
+
*/
|
|
3341
|
+
403: ErrorResponse & {
|
|
3342
|
+
error?: Error & {
|
|
3343
|
+
message?: string;
|
|
3344
|
+
error?: string;
|
|
3345
|
+
statusCode?: number;
|
|
3346
|
+
requestId?: string;
|
|
3347
|
+
};
|
|
3348
|
+
};
|
|
3349
|
+
/**
|
|
3350
|
+
* Not Found
|
|
3351
|
+
*/
|
|
3352
|
+
404: ErrorResponse & {
|
|
3353
|
+
error?: Error & {
|
|
3354
|
+
message?: string;
|
|
3355
|
+
error?: string;
|
|
3356
|
+
statusCode?: number;
|
|
3357
|
+
requestId?: string;
|
|
3358
|
+
};
|
|
3359
|
+
};
|
|
3360
|
+
/**
|
|
3361
|
+
* Internal Server Error
|
|
3362
|
+
*/
|
|
3363
|
+
500: ErrorResponse & {
|
|
3364
|
+
error?: Error & {
|
|
3365
|
+
message?: string;
|
|
3366
|
+
error?: string;
|
|
3367
|
+
statusCode?: number;
|
|
3368
|
+
requestId?: string;
|
|
3369
|
+
};
|
|
3370
|
+
};
|
|
3371
|
+
};
|
|
3372
|
+
export type SharedListsControllerFindByIdError = SharedListsControllerFindByIdErrors[keyof SharedListsControllerFindByIdErrors];
|
|
3373
|
+
export type SharedListsControllerFindByIdResponses = {
|
|
3374
|
+
/**
|
|
3375
|
+
* Returns the shared list entry.
|
|
3376
|
+
*/
|
|
3377
|
+
200: Response & {
|
|
3378
|
+
data?: ListDetail;
|
|
3379
|
+
};
|
|
3380
|
+
};
|
|
3381
|
+
export type SharedListsControllerFindByIdResponse = SharedListsControllerFindByIdResponses[keyof SharedListsControllerFindByIdResponses];
|
|
3382
|
+
export type SharedListsControllerFindItemsData = {
|
|
3383
|
+
body?: never;
|
|
3384
|
+
path: {
|
|
3385
|
+
/**
|
|
3386
|
+
* The ID of the shared list
|
|
3387
|
+
*/
|
|
3388
|
+
sharedListId: string;
|
|
3389
|
+
};
|
|
3390
|
+
query?: {
|
|
3391
|
+
/**
|
|
3392
|
+
* The page cursor
|
|
3393
|
+
*/
|
|
3394
|
+
page?: string;
|
|
3395
|
+
/**
|
|
3396
|
+
* Number of lists/items to return
|
|
3397
|
+
*/
|
|
3398
|
+
limit?: number;
|
|
3399
|
+
};
|
|
3400
|
+
url: '/shared-lists/{sharedListId}/items';
|
|
3401
|
+
};
|
|
3402
|
+
export type SharedListsControllerFindItemsErrors = {
|
|
3403
|
+
/**
|
|
3404
|
+
* Bad Request
|
|
3405
|
+
*/
|
|
3406
|
+
400: ErrorResponse & {
|
|
3407
|
+
error?: Error & {
|
|
3408
|
+
message?: string;
|
|
3409
|
+
error?: string;
|
|
3410
|
+
statusCode?: number;
|
|
3411
|
+
requestId?: string;
|
|
3412
|
+
};
|
|
3413
|
+
};
|
|
3414
|
+
/**
|
|
3415
|
+
* Unauthorized
|
|
3416
|
+
*/
|
|
3417
|
+
401: ErrorResponse & {
|
|
3418
|
+
error?: Error & {
|
|
3419
|
+
message?: string;
|
|
3420
|
+
error?: string;
|
|
3421
|
+
statusCode?: number;
|
|
3422
|
+
requestId?: string;
|
|
3423
|
+
};
|
|
3424
|
+
};
|
|
3425
|
+
/**
|
|
3426
|
+
* Forbidden
|
|
3427
|
+
*/
|
|
3428
|
+
403: ErrorResponse & {
|
|
3429
|
+
error?: Error & {
|
|
3430
|
+
message?: string;
|
|
3431
|
+
error?: string;
|
|
3432
|
+
statusCode?: number;
|
|
3433
|
+
requestId?: string;
|
|
3434
|
+
};
|
|
3435
|
+
};
|
|
3436
|
+
/**
|
|
3437
|
+
* Not Found
|
|
3438
|
+
*/
|
|
3439
|
+
404: ErrorResponse & {
|
|
3440
|
+
error?: Error & {
|
|
3441
|
+
message?: string;
|
|
3442
|
+
error?: string;
|
|
3443
|
+
statusCode?: number;
|
|
3444
|
+
requestId?: string;
|
|
3445
|
+
};
|
|
3446
|
+
};
|
|
3447
|
+
/**
|
|
3448
|
+
* Internal Server Error
|
|
3449
|
+
*/
|
|
3450
|
+
500: ErrorResponse & {
|
|
3451
|
+
error?: Error & {
|
|
3452
|
+
message?: string;
|
|
3453
|
+
error?: string;
|
|
3454
|
+
statusCode?: number;
|
|
3455
|
+
requestId?: string;
|
|
3456
|
+
};
|
|
3457
|
+
};
|
|
3458
|
+
};
|
|
3459
|
+
export type SharedListsControllerFindItemsError = SharedListsControllerFindItemsErrors[keyof SharedListsControllerFindItemsErrors];
|
|
3460
|
+
export type SharedListsControllerFindItemsResponses = {
|
|
3461
|
+
/**
|
|
3462
|
+
* Returns items in the shared list as paginated response
|
|
3463
|
+
*/
|
|
3464
|
+
200: PaginatedResponse & {
|
|
3465
|
+
data?: Array<Item>;
|
|
3466
|
+
};
|
|
3467
|
+
};
|
|
3468
|
+
export type SharedListsControllerFindItemsResponse = SharedListsControllerFindItemsResponses[keyof SharedListsControllerFindItemsResponses];
|
|
3469
|
+
export type NotificationsControllerFindData = {
|
|
3470
|
+
body?: never;
|
|
3471
|
+
path?: never;
|
|
3472
|
+
query?: {
|
|
3473
|
+
/**
|
|
3474
|
+
* Filter notifications by read status. Use read=false for unread notifications.
|
|
3475
|
+
*/
|
|
3476
|
+
read?: boolean;
|
|
3477
|
+
/**
|
|
3478
|
+
* Filter notifications by type
|
|
3479
|
+
*/
|
|
3480
|
+
type?: 'saved_product_price_drop' | 'saved_product_back_in_stock' | 'saved_product_low_in_stock' | 'subscribed_product_price_drop' | 'subscribed_product_back_in_stock' | 'subscribed_product_low_in_stock';
|
|
3481
|
+
/**
|
|
3482
|
+
* Number of notifications to return
|
|
3483
|
+
*/
|
|
3484
|
+
limit?: number;
|
|
3485
|
+
/**
|
|
3486
|
+
* The page cursor for pagination
|
|
3487
|
+
*/
|
|
3488
|
+
page?: string;
|
|
3489
|
+
};
|
|
3490
|
+
url: '/notifications';
|
|
3491
|
+
};
|
|
3492
|
+
export type NotificationsControllerFindErrors = {
|
|
3493
|
+
/**
|
|
3494
|
+
* Bad Request
|
|
3495
|
+
*/
|
|
3496
|
+
400: ErrorResponse & {
|
|
3497
|
+
error?: Error & {
|
|
3498
|
+
message?: string;
|
|
3499
|
+
error?: string;
|
|
3500
|
+
statusCode?: number;
|
|
3501
|
+
requestId?: string;
|
|
3502
|
+
};
|
|
3503
|
+
};
|
|
3504
|
+
/**
|
|
3505
|
+
* Unauthorized
|
|
3506
|
+
*/
|
|
3507
|
+
401: ErrorResponse & {
|
|
3508
|
+
error?: Error & {
|
|
3509
|
+
message?: string;
|
|
3510
|
+
error?: string;
|
|
3511
|
+
statusCode?: number;
|
|
3512
|
+
requestId?: string;
|
|
3513
|
+
};
|
|
3514
|
+
};
|
|
3515
|
+
/**
|
|
3516
|
+
* Forbidden
|
|
3517
|
+
*/
|
|
3518
|
+
403: ErrorResponse & {
|
|
3519
|
+
error?: Error & {
|
|
3520
|
+
message?: string;
|
|
3521
|
+
error?: string;
|
|
3522
|
+
statusCode?: number;
|
|
3523
|
+
requestId?: string;
|
|
3524
|
+
};
|
|
3525
|
+
};
|
|
3526
|
+
/**
|
|
3527
|
+
* Not Found
|
|
3528
|
+
*/
|
|
3529
|
+
404: ErrorResponse & {
|
|
3530
|
+
error?: Error & {
|
|
3531
|
+
message?: string;
|
|
3532
|
+
error?: string;
|
|
3533
|
+
statusCode?: number;
|
|
3534
|
+
requestId?: string;
|
|
3535
|
+
};
|
|
3536
|
+
};
|
|
3537
|
+
/**
|
|
3538
|
+
* Internal Server Error
|
|
3539
|
+
*/
|
|
3540
|
+
500: ErrorResponse & {
|
|
3541
|
+
error?: Error & {
|
|
3542
|
+
message?: string;
|
|
3543
|
+
error?: string;
|
|
3544
|
+
statusCode?: number;
|
|
3545
|
+
requestId?: string;
|
|
3546
|
+
};
|
|
3547
|
+
};
|
|
3548
|
+
};
|
|
3549
|
+
export type NotificationsControllerFindError = NotificationsControllerFindErrors[keyof NotificationsControllerFindErrors];
|
|
3550
|
+
export type NotificationsControllerFindResponses = {
|
|
3551
|
+
/**
|
|
3552
|
+
* Returns all notifications as paginated response
|
|
3553
|
+
*/
|
|
3554
|
+
200: PaginatedResponse & {
|
|
3555
|
+
data?: Array<Notification>;
|
|
3556
|
+
};
|
|
3557
|
+
};
|
|
3558
|
+
export type NotificationsControllerFindResponse = NotificationsControllerFindResponses[keyof NotificationsControllerFindResponses];
|
|
3559
|
+
export type NotificationsControllerGetUnreadCountData = {
|
|
3560
|
+
body?: never;
|
|
3561
|
+
path?: never;
|
|
3562
|
+
query?: never;
|
|
3563
|
+
url: '/notifications/unread/count';
|
|
3564
|
+
};
|
|
3565
|
+
export type NotificationsControllerGetUnreadCountErrors = {
|
|
3566
|
+
/**
|
|
3567
|
+
* Bad Request
|
|
3568
|
+
*/
|
|
3569
|
+
400: ErrorResponse & {
|
|
3570
|
+
error?: Error & {
|
|
3571
|
+
message?: string;
|
|
3572
|
+
error?: string;
|
|
3573
|
+
statusCode?: number;
|
|
3574
|
+
requestId?: string;
|
|
3575
|
+
};
|
|
3576
|
+
};
|
|
3577
|
+
/**
|
|
3578
|
+
* Unauthorized
|
|
3579
|
+
*/
|
|
3580
|
+
401: ErrorResponse & {
|
|
3581
|
+
error?: Error & {
|
|
3582
|
+
message?: string;
|
|
3583
|
+
error?: string;
|
|
3584
|
+
statusCode?: number;
|
|
3585
|
+
requestId?: string;
|
|
3586
|
+
};
|
|
3587
|
+
};
|
|
3588
|
+
/**
|
|
3589
|
+
* Forbidden
|
|
3590
|
+
*/
|
|
3591
|
+
403: ErrorResponse & {
|
|
3592
|
+
error?: Error & {
|
|
3593
|
+
message?: string;
|
|
3594
|
+
error?: string;
|
|
3595
|
+
statusCode?: number;
|
|
3596
|
+
requestId?: string;
|
|
3597
|
+
};
|
|
3598
|
+
};
|
|
3599
|
+
/**
|
|
3600
|
+
* Not Found
|
|
3601
|
+
*/
|
|
3602
|
+
404: ErrorResponse & {
|
|
3603
|
+
error?: Error & {
|
|
3604
|
+
message?: string;
|
|
3605
|
+
error?: string;
|
|
3606
|
+
statusCode?: number;
|
|
3607
|
+
requestId?: string;
|
|
3608
|
+
};
|
|
3609
|
+
};
|
|
3610
|
+
/**
|
|
3611
|
+
* Internal Server Error
|
|
3612
|
+
*/
|
|
3613
|
+
500: ErrorResponse & {
|
|
3614
|
+
error?: Error & {
|
|
3615
|
+
message?: string;
|
|
3616
|
+
error?: string;
|
|
3617
|
+
statusCode?: number;
|
|
3618
|
+
requestId?: string;
|
|
3619
|
+
};
|
|
3620
|
+
};
|
|
3621
|
+
};
|
|
3622
|
+
export type NotificationsControllerGetUnreadCountError = NotificationsControllerGetUnreadCountErrors[keyof NotificationsControllerGetUnreadCountErrors];
|
|
3623
|
+
export type NotificationsControllerGetUnreadCountResponses = {
|
|
3624
|
+
/**
|
|
3625
|
+
* Returns the total count of unread notifications
|
|
3626
|
+
*/
|
|
3627
|
+
200: Response & {
|
|
3628
|
+
data?: NotificationUnreadCount;
|
|
3629
|
+
};
|
|
3630
|
+
};
|
|
3631
|
+
export type NotificationsControllerGetUnreadCountResponse = NotificationsControllerGetUnreadCountResponses[keyof NotificationsControllerGetUnreadCountResponses];
|
|
3632
|
+
export type NotificationsControllerMarkAsReadData = {
|
|
3633
|
+
body: MarkAsRead;
|
|
3634
|
+
path?: never;
|
|
3635
|
+
query?: never;
|
|
3636
|
+
url: '/notifications/read';
|
|
3637
|
+
};
|
|
3638
|
+
export type NotificationsControllerMarkAsReadErrors = {
|
|
3639
|
+
/**
|
|
3640
|
+
* Bad Request
|
|
3641
|
+
*/
|
|
3642
|
+
400: ErrorResponse & {
|
|
3643
|
+
error?: Error & {
|
|
3644
|
+
message?: string;
|
|
3645
|
+
error?: string;
|
|
3646
|
+
statusCode?: number;
|
|
3647
|
+
requestId?: string;
|
|
3648
|
+
};
|
|
3649
|
+
};
|
|
3650
|
+
/**
|
|
3651
|
+
* Unauthorized
|
|
3652
|
+
*/
|
|
3653
|
+
401: ErrorResponse & {
|
|
3654
|
+
error?: Error & {
|
|
3655
|
+
message?: string;
|
|
3656
|
+
error?: string;
|
|
3657
|
+
statusCode?: number;
|
|
3658
|
+
requestId?: string;
|
|
3659
|
+
};
|
|
3660
|
+
};
|
|
3661
|
+
/**
|
|
3662
|
+
* Forbidden
|
|
3663
|
+
*/
|
|
3664
|
+
403: ErrorResponse & {
|
|
3665
|
+
error?: Error & {
|
|
3666
|
+
message?: string;
|
|
3667
|
+
error?: string;
|
|
3668
|
+
statusCode?: number;
|
|
3669
|
+
requestId?: string;
|
|
3670
|
+
};
|
|
3671
|
+
};
|
|
3672
|
+
/**
|
|
3673
|
+
* Not Found
|
|
3674
|
+
*/
|
|
3675
|
+
404: ErrorResponse & {
|
|
3676
|
+
error?: Error & {
|
|
3677
|
+
message?: string;
|
|
3678
|
+
error?: string;
|
|
3679
|
+
statusCode?: number;
|
|
3680
|
+
requestId?: string;
|
|
3681
|
+
};
|
|
3682
|
+
};
|
|
3683
|
+
/**
|
|
3684
|
+
* Internal Server Error
|
|
3685
|
+
*/
|
|
3686
|
+
500: ErrorResponse & {
|
|
3687
|
+
error?: Error & {
|
|
3688
|
+
message?: string;
|
|
3689
|
+
error?: string;
|
|
3690
|
+
statusCode?: number;
|
|
3691
|
+
requestId?: string;
|
|
3692
|
+
};
|
|
3693
|
+
};
|
|
3694
|
+
};
|
|
3695
|
+
export type NotificationsControllerMarkAsReadError = NotificationsControllerMarkAsReadErrors[keyof NotificationsControllerMarkAsReadErrors];
|
|
3696
|
+
export type NotificationsControllerMarkAsReadResponses = {
|
|
3697
|
+
/**
|
|
3698
|
+
* Notifications marked as read successfully
|
|
3699
|
+
*/
|
|
3700
|
+
200: Response & {
|
|
3701
|
+
data?: Array<Notification>;
|
|
3702
|
+
};
|
|
3703
|
+
};
|
|
3704
|
+
export type NotificationsControllerMarkAsReadResponse = NotificationsControllerMarkAsReadResponses[keyof NotificationsControllerMarkAsReadResponses];
|
|
3705
|
+
export type NotificationsControllerMarkAllAsReadData = {
|
|
3706
|
+
body?: never;
|
|
3707
|
+
path?: never;
|
|
3708
|
+
query?: never;
|
|
3709
|
+
url: '/notifications/read/all';
|
|
3710
|
+
};
|
|
3711
|
+
export type NotificationsControllerMarkAllAsReadErrors = {
|
|
3712
|
+
/**
|
|
3713
|
+
* Bad Request
|
|
3714
|
+
*/
|
|
3715
|
+
400: ErrorResponse & {
|
|
3716
|
+
error?: Error & {
|
|
3717
|
+
message?: string;
|
|
3718
|
+
error?: string;
|
|
3719
|
+
statusCode?: number;
|
|
3720
|
+
requestId?: string;
|
|
3721
|
+
};
|
|
3722
|
+
};
|
|
3723
|
+
/**
|
|
3724
|
+
* Unauthorized
|
|
3725
|
+
*/
|
|
3726
|
+
401: ErrorResponse & {
|
|
3727
|
+
error?: Error & {
|
|
3728
|
+
message?: string;
|
|
3729
|
+
error?: string;
|
|
3730
|
+
statusCode?: number;
|
|
3731
|
+
requestId?: string;
|
|
3732
|
+
};
|
|
3733
|
+
};
|
|
3734
|
+
/**
|
|
3735
|
+
* Forbidden
|
|
3736
|
+
*/
|
|
3737
|
+
403: ErrorResponse & {
|
|
3738
|
+
error?: Error & {
|
|
3739
|
+
message?: string;
|
|
3740
|
+
error?: string;
|
|
3741
|
+
statusCode?: number;
|
|
3742
|
+
requestId?: string;
|
|
3743
|
+
};
|
|
3744
|
+
};
|
|
3745
|
+
/**
|
|
3746
|
+
* Not Found
|
|
3747
|
+
*/
|
|
3748
|
+
404: ErrorResponse & {
|
|
3749
|
+
error?: Error & {
|
|
3750
|
+
message?: string;
|
|
3751
|
+
error?: string;
|
|
3752
|
+
statusCode?: number;
|
|
3753
|
+
requestId?: string;
|
|
3754
|
+
};
|
|
3755
|
+
};
|
|
3756
|
+
/**
|
|
3757
|
+
* Internal Server Error
|
|
3758
|
+
*/
|
|
3759
|
+
500: ErrorResponse & {
|
|
3760
|
+
error?: Error & {
|
|
3761
|
+
message?: string;
|
|
3762
|
+
error?: string;
|
|
3763
|
+
statusCode?: number;
|
|
3764
|
+
requestId?: string;
|
|
3765
|
+
};
|
|
3766
|
+
};
|
|
3767
|
+
};
|
|
3768
|
+
export type NotificationsControllerMarkAllAsReadError = NotificationsControllerMarkAllAsReadErrors[keyof NotificationsControllerMarkAllAsReadErrors];
|
|
3769
|
+
export type NotificationsControllerMarkAllAsReadResponses = {
|
|
3770
|
+
/**
|
|
3771
|
+
* All notifications marked as read successfully
|
|
3772
|
+
*/
|
|
3773
|
+
200: Response & {
|
|
3774
|
+
data?: Array<Notification>;
|
|
3775
|
+
};
|
|
3776
|
+
};
|
|
3777
|
+
export type NotificationsControllerMarkAllAsReadResponse = NotificationsControllerMarkAllAsReadResponses[keyof NotificationsControllerMarkAllAsReadResponses];
|
|
3778
|
+
export type NotificationsControllerDeleteByIdData = {
|
|
3779
|
+
body?: never;
|
|
3780
|
+
path: {
|
|
3781
|
+
/**
|
|
3782
|
+
* The ID of the notification
|
|
3783
|
+
*/
|
|
3784
|
+
id: string;
|
|
3785
|
+
};
|
|
3786
|
+
query?: never;
|
|
3787
|
+
url: '/notifications/{id}';
|
|
3788
|
+
};
|
|
3789
|
+
export type NotificationsControllerDeleteByIdErrors = {
|
|
3790
|
+
/**
|
|
3791
|
+
* Bad Request
|
|
3792
|
+
*/
|
|
3793
|
+
400: ErrorResponse & {
|
|
3794
|
+
error?: Error & {
|
|
3795
|
+
message?: string;
|
|
3796
|
+
error?: string;
|
|
3797
|
+
statusCode?: number;
|
|
3798
|
+
requestId?: string;
|
|
3799
|
+
};
|
|
3800
|
+
};
|
|
3801
|
+
/**
|
|
3802
|
+
* Unauthorized
|
|
3803
|
+
*/
|
|
3804
|
+
401: ErrorResponse & {
|
|
3805
|
+
error?: Error & {
|
|
3806
|
+
message?: string;
|
|
3807
|
+
error?: string;
|
|
3808
|
+
statusCode?: number;
|
|
3809
|
+
requestId?: string;
|
|
3810
|
+
};
|
|
3811
|
+
};
|
|
3812
|
+
/**
|
|
3813
|
+
* Forbidden
|
|
3814
|
+
*/
|
|
3815
|
+
403: ErrorResponse & {
|
|
3816
|
+
error?: Error & {
|
|
3817
|
+
message?: string;
|
|
3818
|
+
error?: string;
|
|
3819
|
+
statusCode?: number;
|
|
3820
|
+
requestId?: string;
|
|
3821
|
+
};
|
|
3822
|
+
};
|
|
3823
|
+
/**
|
|
3824
|
+
* Not Found
|
|
3825
|
+
*/
|
|
3826
|
+
404: ErrorResponse & {
|
|
3827
|
+
error?: Error & {
|
|
3828
|
+
message?: string;
|
|
3829
|
+
error?: string;
|
|
3830
|
+
statusCode?: number;
|
|
3831
|
+
requestId?: string;
|
|
3832
|
+
};
|
|
3833
|
+
};
|
|
3834
|
+
/**
|
|
3835
|
+
* Internal Server Error
|
|
3836
|
+
*/
|
|
3837
|
+
500: ErrorResponse & {
|
|
3838
|
+
error?: Error & {
|
|
3839
|
+
message?: string;
|
|
3840
|
+
error?: string;
|
|
3841
|
+
statusCode?: number;
|
|
3842
|
+
requestId?: string;
|
|
3843
|
+
};
|
|
3844
|
+
};
|
|
3845
|
+
};
|
|
3846
|
+
export type NotificationsControllerDeleteByIdError = NotificationsControllerDeleteByIdErrors[keyof NotificationsControllerDeleteByIdErrors];
|
|
3847
|
+
export type NotificationsControllerDeleteByIdResponses = {
|
|
3848
|
+
/**
|
|
3849
|
+
* The notification has been successfully deleted.
|
|
3850
|
+
*/
|
|
3851
|
+
200: Response & {
|
|
3852
|
+
data?: Notification;
|
|
3853
|
+
};
|
|
3854
|
+
};
|
|
3855
|
+
export type NotificationsControllerDeleteByIdResponse = NotificationsControllerDeleteByIdResponses[keyof NotificationsControllerDeleteByIdResponses];
|
|
3856
|
+
export type SubscriptionsControllerFindData = {
|
|
3857
|
+
body?: never;
|
|
3858
|
+
path?: never;
|
|
3859
|
+
query?: {
|
|
3860
|
+
/**
|
|
3861
|
+
* Filter subscriptions by type
|
|
3862
|
+
*/
|
|
3863
|
+
type?: 'back_in_stock';
|
|
3864
|
+
/**
|
|
3865
|
+
* Filter subscriptions by status
|
|
3866
|
+
*/
|
|
3867
|
+
status?: 'active' | 'cancelled' | 'fulfilled';
|
|
3868
|
+
/**
|
|
3869
|
+
* Filter subscriptions by product ID
|
|
3870
|
+
*/
|
|
3871
|
+
productId?: string;
|
|
3872
|
+
/**
|
|
3873
|
+
* Number of subscriptions to return
|
|
3874
|
+
*/
|
|
3875
|
+
limit?: number;
|
|
3876
|
+
/**
|
|
3877
|
+
* The page cursor for pagination
|
|
3878
|
+
*/
|
|
3879
|
+
page?: string;
|
|
3880
|
+
};
|
|
3881
|
+
url: '/subscriptions';
|
|
3882
|
+
};
|
|
3883
|
+
export type SubscriptionsControllerFindErrors = {
|
|
3884
|
+
/**
|
|
3885
|
+
* Bad Request
|
|
3886
|
+
*/
|
|
3887
|
+
400: ErrorResponse & {
|
|
3888
|
+
error?: Error & {
|
|
3889
|
+
message?: string;
|
|
3890
|
+
error?: string;
|
|
3891
|
+
statusCode?: number;
|
|
3892
|
+
requestId?: string;
|
|
3893
|
+
};
|
|
3894
|
+
};
|
|
3895
|
+
/**
|
|
3896
|
+
* Unauthorized
|
|
3897
|
+
*/
|
|
3898
|
+
401: ErrorResponse & {
|
|
3899
|
+
error?: Error & {
|
|
3900
|
+
message?: string;
|
|
3901
|
+
error?: string;
|
|
3902
|
+
statusCode?: number;
|
|
3903
|
+
requestId?: string;
|
|
3904
|
+
};
|
|
3905
|
+
};
|
|
3906
|
+
/**
|
|
3907
|
+
* Forbidden
|
|
3908
|
+
*/
|
|
3909
|
+
403: ErrorResponse & {
|
|
3910
|
+
error?: Error & {
|
|
3911
|
+
message?: string;
|
|
3912
|
+
error?: string;
|
|
3913
|
+
statusCode?: number;
|
|
3914
|
+
requestId?: string;
|
|
3915
|
+
};
|
|
3916
|
+
};
|
|
3917
|
+
/**
|
|
3918
|
+
* Not Found
|
|
3919
|
+
*/
|
|
3920
|
+
404: ErrorResponse & {
|
|
3921
|
+
error?: Error & {
|
|
3922
|
+
message?: string;
|
|
3923
|
+
error?: string;
|
|
3924
|
+
statusCode?: number;
|
|
3925
|
+
requestId?: string;
|
|
3926
|
+
};
|
|
3927
|
+
};
|
|
3928
|
+
/**
|
|
3929
|
+
* Internal Server Error
|
|
3930
|
+
*/
|
|
3931
|
+
500: ErrorResponse & {
|
|
3932
|
+
error?: Error & {
|
|
3933
|
+
message?: string;
|
|
3934
|
+
error?: string;
|
|
3935
|
+
statusCode?: number;
|
|
3936
|
+
requestId?: string;
|
|
3937
|
+
};
|
|
3938
|
+
};
|
|
3939
|
+
};
|
|
3940
|
+
export type SubscriptionsControllerFindError = SubscriptionsControllerFindErrors[keyof SubscriptionsControllerFindErrors];
|
|
3941
|
+
export type SubscriptionsControllerFindResponses = {
|
|
3942
|
+
/**
|
|
3943
|
+
* Returns all subscriptions as paginated response
|
|
3944
|
+
*/
|
|
3945
|
+
200: PaginatedResponse & {
|
|
3946
|
+
data?: Array<Subscription>;
|
|
3947
|
+
};
|
|
3948
|
+
};
|
|
3949
|
+
export type SubscriptionsControllerFindResponse = SubscriptionsControllerFindResponses[keyof SubscriptionsControllerFindResponses];
|
|
3950
|
+
export type SubscriptionsControllerCreateData = {
|
|
3951
|
+
body: CreateSubscription;
|
|
3952
|
+
headers?: {
|
|
3953
|
+
/**
|
|
3954
|
+
* The language for the user (e.g., 'en', 'de', 'fr')
|
|
3955
|
+
*/
|
|
3956
|
+
language?: string;
|
|
3957
|
+
/**
|
|
3958
|
+
* The country for the user (e.g., 'US', 'DE', 'FR')
|
|
3959
|
+
*/
|
|
3960
|
+
country?: string;
|
|
3961
|
+
/**
|
|
3962
|
+
* The market for the user (e.g. 1234567)
|
|
3963
|
+
*/
|
|
3964
|
+
market?: string;
|
|
3965
|
+
};
|
|
3966
|
+
path?: never;
|
|
3967
|
+
query?: never;
|
|
3968
|
+
url: '/subscriptions';
|
|
3969
|
+
};
|
|
3970
|
+
export type SubscriptionsControllerCreateErrors = {
|
|
3971
|
+
/**
|
|
3972
|
+
* Bad Request
|
|
3973
|
+
*/
|
|
3974
|
+
400: ErrorResponse & {
|
|
3975
|
+
error?: Error & {
|
|
3976
|
+
message?: string;
|
|
3977
|
+
error?: string;
|
|
3978
|
+
statusCode?: number;
|
|
3979
|
+
requestId?: string;
|
|
3980
|
+
};
|
|
3981
|
+
};
|
|
3982
|
+
/**
|
|
3983
|
+
* Unauthorized
|
|
3984
|
+
*/
|
|
3985
|
+
401: ErrorResponse & {
|
|
3986
|
+
error?: Error & {
|
|
3987
|
+
message?: string;
|
|
3988
|
+
error?: string;
|
|
3989
|
+
statusCode?: number;
|
|
3990
|
+
requestId?: string;
|
|
3991
|
+
};
|
|
3992
|
+
};
|
|
3993
|
+
/**
|
|
3994
|
+
* Forbidden
|
|
3995
|
+
*/
|
|
3996
|
+
403: ErrorResponse & {
|
|
3997
|
+
error?: Error & {
|
|
3998
|
+
message?: string;
|
|
3999
|
+
error?: string;
|
|
4000
|
+
statusCode?: number;
|
|
4001
|
+
requestId?: string;
|
|
4002
|
+
};
|
|
4003
|
+
};
|
|
4004
|
+
/**
|
|
4005
|
+
* Not Found
|
|
4006
|
+
*/
|
|
4007
|
+
404: ErrorResponse & {
|
|
4008
|
+
error?: Error & {
|
|
4009
|
+
message?: string;
|
|
4010
|
+
error?: string;
|
|
4011
|
+
statusCode?: number;
|
|
4012
|
+
requestId?: string;
|
|
4013
|
+
};
|
|
4014
|
+
};
|
|
4015
|
+
/**
|
|
4016
|
+
* Internal Server Error
|
|
4017
|
+
*/
|
|
4018
|
+
500: ErrorResponse & {
|
|
4019
|
+
error?: Error & {
|
|
4020
|
+
message?: string;
|
|
4021
|
+
error?: string;
|
|
4022
|
+
statusCode?: number;
|
|
4023
|
+
requestId?: string;
|
|
4024
|
+
};
|
|
4025
|
+
};
|
|
4026
|
+
};
|
|
4027
|
+
export type SubscriptionsControllerCreateError = SubscriptionsControllerCreateErrors[keyof SubscriptionsControllerCreateErrors];
|
|
4028
|
+
export type SubscriptionsControllerCreateResponses = {
|
|
4029
|
+
/**
|
|
4030
|
+
* The subscription has been successfully created.
|
|
4031
|
+
*/
|
|
4032
|
+
201: Response & {
|
|
4033
|
+
data?: Subscription;
|
|
4034
|
+
};
|
|
4035
|
+
};
|
|
4036
|
+
export type SubscriptionsControllerCreateResponse = SubscriptionsControllerCreateResponses[keyof SubscriptionsControllerCreateResponses];
|
|
4037
|
+
export type SubscriptionsControllerDeleteData = {
|
|
4038
|
+
body?: never;
|
|
4039
|
+
path: {
|
|
4040
|
+
/**
|
|
4041
|
+
* The ID of the subscription to delete
|
|
4042
|
+
*/
|
|
4043
|
+
id: string;
|
|
4044
|
+
};
|
|
4045
|
+
query?: never;
|
|
4046
|
+
url: '/subscriptions/{id}';
|
|
4047
|
+
};
|
|
4048
|
+
export type SubscriptionsControllerDeleteErrors = {
|
|
4049
|
+
/**
|
|
4050
|
+
* Bad Request
|
|
4051
|
+
*/
|
|
4052
|
+
400: ErrorResponse & {
|
|
4053
|
+
error?: Error & {
|
|
4054
|
+
message?: string;
|
|
4055
|
+
error?: string;
|
|
4056
|
+
statusCode?: number;
|
|
4057
|
+
requestId?: string;
|
|
4058
|
+
};
|
|
4059
|
+
};
|
|
4060
|
+
/**
|
|
4061
|
+
* Unauthorized
|
|
4062
|
+
*/
|
|
4063
|
+
401: ErrorResponse & {
|
|
4064
|
+
error?: Error & {
|
|
4065
|
+
message?: string;
|
|
4066
|
+
error?: string;
|
|
4067
|
+
statusCode?: number;
|
|
4068
|
+
requestId?: string;
|
|
4069
|
+
};
|
|
4070
|
+
};
|
|
4071
|
+
/**
|
|
4072
|
+
* Forbidden
|
|
4073
|
+
*/
|
|
4074
|
+
403: ErrorResponse & {
|
|
4075
|
+
error?: Error & {
|
|
4076
|
+
message?: string;
|
|
4077
|
+
error?: string;
|
|
4078
|
+
statusCode?: number;
|
|
4079
|
+
requestId?: string;
|
|
4080
|
+
};
|
|
4081
|
+
};
|
|
4082
|
+
/**
|
|
4083
|
+
* Not Found
|
|
4084
|
+
*/
|
|
4085
|
+
404: ErrorResponse & {
|
|
4086
|
+
error?: Error & {
|
|
4087
|
+
message?: string;
|
|
4088
|
+
error?: string;
|
|
4089
|
+
statusCode?: number;
|
|
4090
|
+
requestId?: string;
|
|
4091
|
+
};
|
|
4092
|
+
};
|
|
4093
|
+
/**
|
|
4094
|
+
* Internal Server Error
|
|
4095
|
+
*/
|
|
4096
|
+
500: ErrorResponse & {
|
|
4097
|
+
error?: Error & {
|
|
4098
|
+
message?: string;
|
|
4099
|
+
error?: string;
|
|
4100
|
+
statusCode?: number;
|
|
4101
|
+
requestId?: string;
|
|
4102
|
+
};
|
|
4103
|
+
};
|
|
4104
|
+
};
|
|
4105
|
+
export type SubscriptionsControllerDeleteError = SubscriptionsControllerDeleteErrors[keyof SubscriptionsControllerDeleteErrors];
|
|
4106
|
+
export type SubscriptionsControllerDeleteResponses = {
|
|
4107
|
+
/**
|
|
4108
|
+
* The subscription has been successfully deleted.
|
|
4109
|
+
*/
|
|
4110
|
+
200: Response & {
|
|
4111
|
+
data?: Subscription;
|
|
4112
|
+
};
|
|
4113
|
+
};
|
|
4114
|
+
export type SubscriptionsControllerDeleteResponse = SubscriptionsControllerDeleteResponses[keyof SubscriptionsControllerDeleteResponses];
|
|
4115
|
+
export type SubscriptionsControllerFindByIdData = {
|
|
4116
|
+
body?: never;
|
|
4117
|
+
path: {
|
|
4118
|
+
/**
|
|
4119
|
+
* The ID of the subscription
|
|
4120
|
+
*/
|
|
4121
|
+
id: string;
|
|
4122
|
+
};
|
|
4123
|
+
query?: never;
|
|
4124
|
+
url: '/subscriptions/{id}';
|
|
4125
|
+
};
|
|
4126
|
+
export type SubscriptionsControllerFindByIdErrors = {
|
|
4127
|
+
/**
|
|
4128
|
+
* Bad Request
|
|
4129
|
+
*/
|
|
4130
|
+
400: ErrorResponse & {
|
|
4131
|
+
error?: Error & {
|
|
4132
|
+
message?: string;
|
|
4133
|
+
error?: string;
|
|
4134
|
+
statusCode?: number;
|
|
4135
|
+
requestId?: string;
|
|
4136
|
+
};
|
|
4137
|
+
};
|
|
4138
|
+
/**
|
|
4139
|
+
* Unauthorized
|
|
4140
|
+
*/
|
|
4141
|
+
401: ErrorResponse & {
|
|
4142
|
+
error?: Error & {
|
|
4143
|
+
message?: string;
|
|
4144
|
+
error?: string;
|
|
4145
|
+
statusCode?: number;
|
|
4146
|
+
requestId?: string;
|
|
4147
|
+
};
|
|
4148
|
+
};
|
|
4149
|
+
/**
|
|
4150
|
+
* Forbidden
|
|
4151
|
+
*/
|
|
4152
|
+
403: ErrorResponse & {
|
|
4153
|
+
error?: Error & {
|
|
4154
|
+
message?: string;
|
|
4155
|
+
error?: string;
|
|
4156
|
+
statusCode?: number;
|
|
4157
|
+
requestId?: string;
|
|
4158
|
+
};
|
|
4159
|
+
};
|
|
4160
|
+
/**
|
|
4161
|
+
* Not Found
|
|
4162
|
+
*/
|
|
4163
|
+
404: ErrorResponse & {
|
|
4164
|
+
error?: Error & {
|
|
4165
|
+
message?: string;
|
|
4166
|
+
error?: string;
|
|
4167
|
+
statusCode?: number;
|
|
4168
|
+
requestId?: string;
|
|
4169
|
+
};
|
|
4170
|
+
};
|
|
4171
|
+
/**
|
|
4172
|
+
* Internal Server Error
|
|
4173
|
+
*/
|
|
4174
|
+
500: ErrorResponse & {
|
|
4175
|
+
error?: Error & {
|
|
4176
|
+
message?: string;
|
|
4177
|
+
error?: string;
|
|
4178
|
+
statusCode?: number;
|
|
4179
|
+
requestId?: string;
|
|
4180
|
+
};
|
|
4181
|
+
};
|
|
4182
|
+
};
|
|
4183
|
+
export type SubscriptionsControllerFindByIdError = SubscriptionsControllerFindByIdErrors[keyof SubscriptionsControllerFindByIdErrors];
|
|
4184
|
+
export type SubscriptionsControllerFindByIdResponses = {
|
|
4185
|
+
/**
|
|
4186
|
+
* The subscription has been successfully retrieved.
|
|
4187
|
+
*/
|
|
4188
|
+
200: Response & {
|
|
4189
|
+
data?: Subscription;
|
|
4190
|
+
};
|
|
4191
|
+
};
|
|
4192
|
+
export type SubscriptionsControllerFindByIdResponse = SubscriptionsControllerFindByIdResponses[keyof SubscriptionsControllerFindByIdResponses];
|
|
4193
|
+
export type SubscriptionsControllerUpdateData = {
|
|
4194
|
+
body: UpdateSubscription;
|
|
4195
|
+
path: {
|
|
4196
|
+
/**
|
|
4197
|
+
* The ID of the subscription to update
|
|
4198
|
+
*/
|
|
4199
|
+
id: string;
|
|
4200
|
+
};
|
|
4201
|
+
query?: never;
|
|
4202
|
+
url: '/subscriptions/{id}';
|
|
4203
|
+
};
|
|
4204
|
+
export type SubscriptionsControllerUpdateErrors = {
|
|
4205
|
+
/**
|
|
4206
|
+
* Bad Request
|
|
4207
|
+
*/
|
|
4208
|
+
400: ErrorResponse & {
|
|
4209
|
+
error?: Error & {
|
|
4210
|
+
message?: string;
|
|
4211
|
+
error?: string;
|
|
4212
|
+
statusCode?: number;
|
|
4213
|
+
requestId?: string;
|
|
4214
|
+
};
|
|
4215
|
+
};
|
|
4216
|
+
/**
|
|
4217
|
+
* Unauthorized
|
|
4218
|
+
*/
|
|
4219
|
+
401: ErrorResponse & {
|
|
4220
|
+
error?: Error & {
|
|
4221
|
+
message?: string;
|
|
4222
|
+
error?: string;
|
|
4223
|
+
statusCode?: number;
|
|
4224
|
+
requestId?: string;
|
|
4225
|
+
};
|
|
4226
|
+
};
|
|
4227
|
+
/**
|
|
4228
|
+
* Forbidden
|
|
4229
|
+
*/
|
|
4230
|
+
403: ErrorResponse & {
|
|
4231
|
+
error?: Error & {
|
|
4232
|
+
message?: string;
|
|
4233
|
+
error?: string;
|
|
4234
|
+
statusCode?: number;
|
|
4235
|
+
requestId?: string;
|
|
4236
|
+
};
|
|
4237
|
+
};
|
|
4238
|
+
/**
|
|
4239
|
+
* Not Found
|
|
4240
|
+
*/
|
|
4241
|
+
404: ErrorResponse & {
|
|
4242
|
+
error?: Error & {
|
|
4243
|
+
message?: string;
|
|
4244
|
+
error?: string;
|
|
4245
|
+
statusCode?: number;
|
|
4246
|
+
requestId?: string;
|
|
4247
|
+
};
|
|
4248
|
+
};
|
|
4249
|
+
/**
|
|
4250
|
+
* Internal Server Error
|
|
4251
|
+
*/
|
|
4252
|
+
500: ErrorResponse & {
|
|
4253
|
+
error?: Error & {
|
|
4254
|
+
message?: string;
|
|
4255
|
+
error?: string;
|
|
4256
|
+
statusCode?: number;
|
|
4257
|
+
requestId?: string;
|
|
4258
|
+
};
|
|
4259
|
+
};
|
|
4260
|
+
};
|
|
4261
|
+
export type SubscriptionsControllerUpdateError = SubscriptionsControllerUpdateErrors[keyof SubscriptionsControllerUpdateErrors];
|
|
4262
|
+
export type SubscriptionsControllerUpdateResponses = {
|
|
4263
|
+
/**
|
|
4264
|
+
* The subscription has been successfully updated.
|
|
4265
|
+
*/
|
|
4266
|
+
200: Response & {
|
|
4267
|
+
data?: Subscription;
|
|
4268
|
+
};
|
|
4269
|
+
};
|
|
4270
|
+
export type SubscriptionsControllerUpdateResponse = SubscriptionsControllerUpdateResponses[keyof SubscriptionsControllerUpdateResponses];
|
|
4271
|
+
export type SmartListsControllerFindAllData = {
|
|
4272
|
+
body?: never;
|
|
4273
|
+
path?: never;
|
|
4274
|
+
query?: never;
|
|
4275
|
+
url: '/smart-lists';
|
|
4276
|
+
};
|
|
4277
|
+
export type SmartListsControllerFindAllErrors = {
|
|
4278
|
+
/**
|
|
4279
|
+
* Bad Request
|
|
4280
|
+
*/
|
|
4281
|
+
400: ErrorResponse & {
|
|
4282
|
+
error?: Error & {
|
|
4283
|
+
message?: string;
|
|
4284
|
+
error?: string;
|
|
4285
|
+
statusCode?: number;
|
|
4286
|
+
requestId?: string;
|
|
4287
|
+
};
|
|
4288
|
+
};
|
|
4289
|
+
/**
|
|
4290
|
+
* Unauthorized
|
|
4291
|
+
*/
|
|
4292
|
+
401: ErrorResponse & {
|
|
4293
|
+
error?: Error & {
|
|
4294
|
+
message?: string;
|
|
4295
|
+
error?: string;
|
|
4296
|
+
statusCode?: number;
|
|
4297
|
+
requestId?: string;
|
|
4298
|
+
};
|
|
4299
|
+
};
|
|
4300
|
+
/**
|
|
4301
|
+
* Forbidden
|
|
4302
|
+
*/
|
|
4303
|
+
403: ErrorResponse & {
|
|
4304
|
+
error?: Error & {
|
|
4305
|
+
message?: string;
|
|
4306
|
+
error?: string;
|
|
4307
|
+
statusCode?: number;
|
|
4308
|
+
requestId?: string;
|
|
4309
|
+
};
|
|
4310
|
+
};
|
|
4311
|
+
/**
|
|
4312
|
+
* Not Found
|
|
4313
|
+
*/
|
|
4314
|
+
404: ErrorResponse & {
|
|
4315
|
+
error?: Error & {
|
|
4316
|
+
message?: string;
|
|
4317
|
+
error?: string;
|
|
4318
|
+
statusCode?: number;
|
|
4319
|
+
requestId?: string;
|
|
4320
|
+
};
|
|
4321
|
+
};
|
|
4322
|
+
/**
|
|
4323
|
+
* Internal Server Error
|
|
4324
|
+
*/
|
|
4325
|
+
500: ErrorResponse & {
|
|
4326
|
+
error?: Error & {
|
|
4327
|
+
message?: string;
|
|
4328
|
+
error?: string;
|
|
4329
|
+
statusCode?: number;
|
|
4330
|
+
requestId?: string;
|
|
4331
|
+
};
|
|
4332
|
+
};
|
|
4333
|
+
};
|
|
4334
|
+
export type SmartListsControllerFindAllError = SmartListsControllerFindAllErrors[keyof SmartListsControllerFindAllErrors];
|
|
4335
|
+
export type SmartListsControllerFindAllResponses = {
|
|
4336
|
+
/**
|
|
4337
|
+
* Returns all smart lists with detail
|
|
4338
|
+
*/
|
|
4339
|
+
200: Response & {
|
|
4340
|
+
data?: Array<ListDetail>;
|
|
4341
|
+
};
|
|
4342
|
+
};
|
|
4343
|
+
export type SmartListsControllerFindAllResponse = SmartListsControllerFindAllResponses[keyof SmartListsControllerFindAllResponses];
|
|
4344
|
+
export type SmartListsControllerFindByIdData = {
|
|
4345
|
+
body?: never;
|
|
4346
|
+
path: {
|
|
4347
|
+
smartListId: string;
|
|
4348
|
+
};
|
|
4349
|
+
query?: never;
|
|
4350
|
+
url: '/smart-lists/{smartListId}';
|
|
4351
|
+
};
|
|
4352
|
+
export type SmartListsControllerFindByIdErrors = {
|
|
4353
|
+
/**
|
|
4354
|
+
* Bad Request
|
|
4355
|
+
*/
|
|
4356
|
+
400: ErrorResponse & {
|
|
4357
|
+
error?: Error & {
|
|
4358
|
+
message?: string;
|
|
4359
|
+
error?: string;
|
|
4360
|
+
statusCode?: number;
|
|
4361
|
+
requestId?: string;
|
|
4362
|
+
};
|
|
4363
|
+
};
|
|
4364
|
+
/**
|
|
4365
|
+
* Unauthorized
|
|
4366
|
+
*/
|
|
4367
|
+
401: ErrorResponse & {
|
|
4368
|
+
error?: Error & {
|
|
4369
|
+
message?: string;
|
|
4370
|
+
error?: string;
|
|
4371
|
+
statusCode?: number;
|
|
4372
|
+
requestId?: string;
|
|
4373
|
+
};
|
|
4374
|
+
};
|
|
4375
|
+
/**
|
|
4376
|
+
* Forbidden
|
|
4377
|
+
*/
|
|
4378
|
+
403: ErrorResponse & {
|
|
4379
|
+
error?: Error & {
|
|
4380
|
+
message?: string;
|
|
4381
|
+
error?: string;
|
|
4382
|
+
statusCode?: number;
|
|
4383
|
+
requestId?: string;
|
|
4384
|
+
};
|
|
4385
|
+
};
|
|
4386
|
+
/**
|
|
4387
|
+
* Not Found
|
|
4388
|
+
*/
|
|
4389
|
+
404: ErrorResponse & {
|
|
4390
|
+
error?: Error & {
|
|
4391
|
+
message?: string;
|
|
4392
|
+
error?: string;
|
|
4393
|
+
statusCode?: number;
|
|
4394
|
+
requestId?: string;
|
|
4395
|
+
};
|
|
4396
|
+
};
|
|
4397
|
+
/**
|
|
4398
|
+
* Internal Server Error
|
|
4399
|
+
*/
|
|
4400
|
+
500: ErrorResponse & {
|
|
4401
|
+
error?: Error & {
|
|
4402
|
+
message?: string;
|
|
4403
|
+
error?: string;
|
|
4404
|
+
statusCode?: number;
|
|
4405
|
+
requestId?: string;
|
|
4406
|
+
};
|
|
4407
|
+
};
|
|
4408
|
+
};
|
|
4409
|
+
export type SmartListsControllerFindByIdError = SmartListsControllerFindByIdErrors[keyof SmartListsControllerFindByIdErrors];
|
|
4410
|
+
export type SmartListsControllerFindByIdResponses = {
|
|
4411
|
+
/**
|
|
4412
|
+
* Returns a smart list detail
|
|
4413
|
+
*/
|
|
4414
|
+
200: Response & {
|
|
4415
|
+
data?: ListDetail;
|
|
4416
|
+
};
|
|
4417
|
+
};
|
|
4418
|
+
export type SmartListsControllerFindByIdResponse = SmartListsControllerFindByIdResponses[keyof SmartListsControllerFindByIdResponses];
|
|
4419
|
+
export type SmartListsControllerFindItemsData = {
|
|
4420
|
+
body?: never;
|
|
4421
|
+
path: {
|
|
4422
|
+
smartListId: string;
|
|
4423
|
+
};
|
|
4424
|
+
query?: {
|
|
4425
|
+
/**
|
|
4426
|
+
* The page cursor
|
|
4427
|
+
*/
|
|
4428
|
+
page?: string;
|
|
4429
|
+
/**
|
|
4430
|
+
* Number of lists/items to return
|
|
4431
|
+
*/
|
|
4432
|
+
limit?: number;
|
|
4433
|
+
};
|
|
4434
|
+
url: '/smart-lists/{smartListId}/items';
|
|
4435
|
+
};
|
|
4436
|
+
export type SmartListsControllerFindItemsErrors = {
|
|
4437
|
+
/**
|
|
4438
|
+
* Bad Request
|
|
4439
|
+
*/
|
|
4440
|
+
400: ErrorResponse & {
|
|
4441
|
+
error?: Error & {
|
|
4442
|
+
message?: string;
|
|
4443
|
+
error?: string;
|
|
4444
|
+
statusCode?: number;
|
|
4445
|
+
requestId?: string;
|
|
4446
|
+
};
|
|
4447
|
+
};
|
|
4448
|
+
/**
|
|
4449
|
+
* Unauthorized
|
|
4450
|
+
*/
|
|
4451
|
+
401: ErrorResponse & {
|
|
4452
|
+
error?: Error & {
|
|
4453
|
+
message?: string;
|
|
4454
|
+
error?: string;
|
|
4455
|
+
statusCode?: number;
|
|
4456
|
+
requestId?: string;
|
|
4457
|
+
};
|
|
4458
|
+
};
|
|
4459
|
+
/**
|
|
4460
|
+
* Forbidden
|
|
4461
|
+
*/
|
|
4462
|
+
403: ErrorResponse & {
|
|
4463
|
+
error?: Error & {
|
|
4464
|
+
message?: string;
|
|
4465
|
+
error?: string;
|
|
4466
|
+
statusCode?: number;
|
|
4467
|
+
requestId?: string;
|
|
4468
|
+
};
|
|
4469
|
+
};
|
|
4470
|
+
/**
|
|
4471
|
+
* Not Found
|
|
4472
|
+
*/
|
|
4473
|
+
404: ErrorResponse & {
|
|
4474
|
+
error?: Error & {
|
|
4475
|
+
message?: string;
|
|
4476
|
+
error?: string;
|
|
4477
|
+
statusCode?: number;
|
|
4478
|
+
requestId?: string;
|
|
4479
|
+
};
|
|
4480
|
+
};
|
|
4481
|
+
/**
|
|
4482
|
+
* Internal Server Error
|
|
4483
|
+
*/
|
|
4484
|
+
500: ErrorResponse & {
|
|
4485
|
+
error?: Error & {
|
|
4486
|
+
message?: string;
|
|
4487
|
+
error?: string;
|
|
4488
|
+
statusCode?: number;
|
|
4489
|
+
requestId?: string;
|
|
4490
|
+
};
|
|
4491
|
+
};
|
|
4492
|
+
};
|
|
4493
|
+
export type SmartListsControllerFindItemsError = SmartListsControllerFindItemsErrors[keyof SmartListsControllerFindItemsErrors];
|
|
4494
|
+
export type SmartListsControllerFindItemsResponses = {
|
|
4495
|
+
/**
|
|
4496
|
+
* Returns items for a smart list as paginated response
|
|
4497
|
+
*/
|
|
4498
|
+
200: PaginatedResponse & {
|
|
4499
|
+
data?: Array<Item>;
|
|
4500
|
+
};
|
|
4501
|
+
};
|
|
4502
|
+
export type SmartListsControllerFindItemsResponse = SmartListsControllerFindItemsResponses[keyof SmartListsControllerFindItemsResponses];
|