@shopvirge/shopvirge-client 0.2.2

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.
@@ -0,0 +1,3324 @@
1
+ // This file is auto-generated by @hey-api/openapi-ts
2
+
3
+ import type { CancelablePromise } from './core/CancelablePromise';
4
+ import { OpenAPI } from './core/OpenAPI';
5
+ import { request as __request } from './core/request';
6
+ import type {
7
+ LoginAccessTokenLoginAccessTokenPostData,
8
+ LoginAccessTokenLoginAccessTokenPostResponse,
9
+ TestTokenLoginTestTokenPostResponse,
10
+ RecoverPasswordPasswordRecoveryEmailPostData,
11
+ RecoverPasswordPasswordRecoveryEmailPostResponse,
12
+ ResetPasswordResetPasswordPostData,
13
+ ResetPasswordResetPasswordPostResponse,
14
+ GetHealthHealthGetResponse,
15
+ GetMultiUsersGetData,
16
+ GetMultiUsersGetResponse,
17
+ CreateUsersPostData,
18
+ CreateUsersPostResponse,
19
+ GetUserMeUsersMeGetResponse,
20
+ UpdateUserMeUsersMePutData,
21
+ UpdateUserMeUsersMePutResponse,
22
+ GetByIdUsersUserIdGetData,
23
+ GetByIdUsersUserIdGetResponse,
24
+ UpdateUsersUserIdPutData,
25
+ UpdateUsersUserIdPutResponse,
26
+ GetFormsFormsGetResponse,
27
+ NewFormFormsFormKeyPostData,
28
+ NewFormFormsFormKeyPostResponse,
29
+ GetSignedUrlImagesSignedUrlImageNameGetData,
30
+ GetSignedUrlImagesSignedUrlImageNameGetResponse,
31
+ MoveImagesImagesMovePostResponse,
32
+ DeleteTemporaryImagesImagesDeleteTempPostResponse,
33
+ GetMultiLicensesGetData,
34
+ GetMultiLicensesGetResponse,
35
+ CreateLicensesPostData,
36
+ CreateLicensesPostResponse,
37
+ GetByIdLicensesIdGetData,
38
+ GetByIdLicensesIdGetResponse,
39
+ EditLicensesIdPutData,
40
+ EditLicensesIdPutResponse,
41
+ DeleteLicensesIdDeleteData,
42
+ DeleteLicensesIdDeleteResponse,
43
+ GetByImproviserUserIdLicensesImproviserImproviserUserIdGetData,
44
+ GetByImproviserUserIdLicensesImproviserImproviserUserIdGetResponse,
45
+ GetSignedDownloadLinkDownloadsFileNameGetData,
46
+ GetSignedDownloadLinkDownloadsFileNameGetResponse,
47
+ SendDownloadLinkViaEmailDownloadsSendPostData,
48
+ SendDownloadLinkViaEmailDownloadsSendPostResponse,
49
+ GetMultiShopsGetData,
50
+ GetMultiShopsGetResponse,
51
+ CreateShopsPostData,
52
+ CreateShopsPostResponse,
53
+ GetCacheStatusShopsCacheStatusIdGetData,
54
+ GetCacheStatusShopsCacheStatusIdGetResponse,
55
+ GetLastCompletedOrderShopsLastCompletedOrderIdGetData,
56
+ GetLastCompletedOrderShopsLastCompletedOrderIdGetResponse,
57
+ GetLastPendingOrderShopsLastPendingOrderIdGetData,
58
+ GetLastPendingOrderShopsLastPendingOrderIdGetResponse,
59
+ GetByIdShopsIdGetData,
60
+ GetByIdShopsIdGetResponse,
61
+ UpdateShopsShopIdPutData,
62
+ UpdateShopsShopIdPutResponse,
63
+ DeleteShopsShopIdDeleteData,
64
+ DeleteShopsShopIdDeleteResponse,
65
+ GetConfigShopsConfigIdGetData,
66
+ GetConfigShopsConfigIdGetResponse,
67
+ UpdateConfigShopsConfigIdPutData,
68
+ UpdateConfigShopsConfigIdPutResponse,
69
+ GetAllowedIpsShopsAllowedIpsIdGetData,
70
+ GetAllowedIpsShopsAllowedIpsIdGetResponse,
71
+ AddNewIpShopsAllowedIpsIdPostData,
72
+ AddNewIpShopsAllowedIpsIdPostResponse,
73
+ RemoveIpShopsAllowedIpsIdRemovePostData,
74
+ RemoveIpShopsAllowedIpsIdRemovePostResponse,
75
+ GetProductsShopsShopIdPricesGetData,
76
+ GetProductsShopsShopIdPricesGetResponse,
77
+ GetCartProductsShopsShopIdPricesPostData,
78
+ GetCartProductsShopsShopIdPricesPostResponse,
79
+ GetMultiOrdersGetData,
80
+ GetMultiOrdersGetResponse,
81
+ CreateOrdersPostData,
82
+ CreateOrdersPostResponse,
83
+ ShowAllPendingOrdersPerShopOrdersShopShopIdPendingGetData,
84
+ ShowAllPendingOrdersPerShopOrdersShopShopIdPendingGetResponse,
85
+ ShowAllCompleteOrdersPerShopOrdersShopShopIdCompleteGetData,
86
+ ShowAllCompleteOrdersPerShopOrdersShopShopIdCompleteGetResponse,
87
+ GetByIdOrdersIdGetData,
88
+ GetByIdOrdersIdGetResponse,
89
+ CheckOrdersCheckIdsGetData,
90
+ CheckOrdersCheckIdsGetResponse,
91
+ PatchOrdersOrderIdPatchData,
92
+ PatchOrdersOrderIdPatchResponse,
93
+ UpdateOrdersOrderIdPutData,
94
+ UpdateOrdersOrderIdPutResponse,
95
+ DeleteOrdersOrderIdDeleteData,
96
+ DeleteOrdersOrderIdDeleteResponse,
97
+ GetOrderProductsInStockOrdersStockOrderIdGetData,
98
+ GetOrderProductsInStockOrdersStockOrderIdGetResponse,
99
+ GetMultiShopsShopIdCategoriesGetData,
100
+ GetMultiShopsShopIdCategoriesGetResponse,
101
+ CreateShopsShopIdCategoriesPostData,
102
+ CreateShopsShopIdCategoriesPostResponse,
103
+ GetByIdShopsShopIdCategoriesCategoryIdGetData,
104
+ GetByIdShopsShopIdCategoriesCategoryIdGetResponse,
105
+ UpdateShopsShopIdCategoriesCategoryIdPutData,
106
+ UpdateShopsShopIdCategoriesCategoryIdPutResponse,
107
+ DeleteShopsShopIdCategoriesCategoryIdDeleteData,
108
+ DeleteShopsShopIdCategoriesCategoryIdDeleteResponse,
109
+ GetByNameShopsShopIdCategoriesNameNameGetData,
110
+ GetByNameShopsShopIdCategoriesNameNameGetResponse,
111
+ SwapShopsShopIdCategoriesCategoryIdSwapPutData,
112
+ SwapShopsShopIdCategoriesCategoryIdSwapPutResponse,
113
+ GetMultiShopsShopIdCategoriesImagesGetData,
114
+ GetMultiShopsShopIdCategoriesImagesGetResponse,
115
+ GetByIdShopsShopIdCategoriesImagesIdGetData,
116
+ GetByIdShopsShopIdCategoriesImagesIdGetResponse,
117
+ PutShopsShopIdCategoriesImagesIdPutData,
118
+ PutShopsShopIdCategoriesImagesIdPutResponse,
119
+ DeleteImageShopsShopIdCategoriesImagesDeleteIdPutData,
120
+ DeleteImageShopsShopIdCategoriesImagesDeleteIdPutResponse,
121
+ GetSignedUploadUrlShopsShopIdImagesSignedUrlImageNameGetData,
122
+ GetSignedUploadUrlShopsShopIdImagesSignedUrlImageNameGetResponse,
123
+ GetMultiShopsShopIdProductsGetData,
124
+ GetMultiShopsShopIdProductsGetResponse,
125
+ CreateShopsShopIdProductsPostData,
126
+ CreateShopsShopIdProductsPostResponse,
127
+ GetMultiWithAttributesShopsShopIdProductsWithAttributesGetData,
128
+ GetMultiWithAttributesShopsShopIdProductsWithAttributesGetResponse,
129
+ GetByIdWithAttributesShopsShopIdProductsProductIdWithAttributesGetData,
130
+ GetByIdWithAttributesShopsShopIdProductsProductIdWithAttributesGetResponse,
131
+ GetByIdShopsShopIdProductsProductIdGetData,
132
+ GetByIdShopsShopIdProductsProductIdGetResponse,
133
+ UpdateShopsShopIdProductsProductIdPutData,
134
+ UpdateShopsShopIdProductsProductIdPutResponse,
135
+ DeleteShopsShopIdProductsProductIdDeleteData,
136
+ DeleteShopsShopIdProductsProductIdDeleteResponse,
137
+ SwapShopsShopIdProductsProductIdSwapPutData,
138
+ SwapShopsShopIdProductsProductIdSwapPutResponse,
139
+ GetMultiShopsShopIdProductsToTagsGetData,
140
+ GetMultiShopsShopIdProductsToTagsGetResponse,
141
+ CreateShopsShopIdProductsToTagsPostData,
142
+ CreateShopsShopIdProductsToTagsPostResponse,
143
+ GetRelationIdShopsShopIdProductsToTagsGetRelationIdGetData,
144
+ GetRelationIdShopsShopIdProductsToTagsGetRelationIdGetResponse,
145
+ GetByIdShopsShopIdProductsToTagsIdGetData,
146
+ GetByIdShopsShopIdProductsToTagsIdGetResponse,
147
+ UpdateShopsShopIdProductsToTagsProductToTagIdPutData,
148
+ UpdateShopsShopIdProductsToTagsProductToTagIdPutResponse,
149
+ DeleteShopsShopIdProductsToTagsProductToTagIdDeleteData,
150
+ DeleteShopsShopIdProductsToTagsProductToTagIdDeleteResponse,
151
+ GetMultiShopsShopIdTagsGetData,
152
+ GetMultiShopsShopIdTagsGetResponse,
153
+ CreateShopsShopIdTagsPostData,
154
+ CreateShopsShopIdTagsPostResponse,
155
+ GetByIdShopsShopIdTagsTagIdGetData,
156
+ GetByIdShopsShopIdTagsTagIdGetResponse,
157
+ UpdateShopsShopIdTagsTagIdPutData,
158
+ UpdateShopsShopIdTagsTagIdPutResponse,
159
+ DeleteShopsShopIdTagsTagIdDeleteData,
160
+ DeleteShopsShopIdTagsTagIdDeleteResponse,
161
+ GetByNameShopsShopIdTagsNameNameGetData,
162
+ GetByNameShopsShopIdTagsNameNameGetResponse,
163
+ GetByIdWithOptionsDirectShopsShopIdAttributesAttributeIdWithOptionsGetData,
164
+ GetByIdWithOptionsDirectShopsShopIdAttributesAttributeIdWithOptionsGetResponse,
165
+ GetWithOptionsShopsShopIdAttributesWithOptionsGetData,
166
+ GetWithOptionsShopsShopIdAttributesWithOptionsGetResponse,
167
+ GetMultiShopsShopIdAttributesGetData,
168
+ GetMultiShopsShopIdAttributesGetResponse,
169
+ CreateShopsShopIdAttributesPostData,
170
+ CreateShopsShopIdAttributesPostResponse,
171
+ GetByIdWithOptionsShopsShopIdAttributesIdAttributeIdWithOptionsGetData,
172
+ GetByIdWithOptionsShopsShopIdAttributesIdAttributeIdWithOptionsGetResponse,
173
+ GetByIdShopsShopIdAttributesIdAttributeIdGetData,
174
+ GetByIdShopsShopIdAttributesIdAttributeIdGetResponse,
175
+ GetByNameShopsShopIdAttributesNameNameGetData,
176
+ GetByNameShopsShopIdAttributesNameNameGetResponse,
177
+ UpdateShopsShopIdAttributesAttributeIdPutData,
178
+ UpdateShopsShopIdAttributesAttributeIdPutResponse,
179
+ DeleteShopsShopIdAttributesAttributeIdDeleteData,
180
+ DeleteShopsShopIdAttributesAttributeIdDeleteResponse,
181
+ ListOptionsForShopShopsShopIdAttributeOptionsGetData,
182
+ ListOptionsForShopShopsShopIdAttributeOptionsGetResponse,
183
+ CreateOptionV2ShopsShopIdAttributeOptionsPostData,
184
+ CreateOptionV2ShopsShopIdAttributeOptionsPostResponse,
185
+ GetOptionV2ShopsShopIdAttributeOptionsOptionIdGetData,
186
+ GetOptionV2ShopsShopIdAttributeOptionsOptionIdGetResponse,
187
+ UpdateOptionV2ShopsShopIdAttributeOptionsOptionIdPutData,
188
+ UpdateOptionV2ShopsShopIdAttributeOptionsOptionIdPutResponse,
189
+ DeleteOptionV2ShopsShopIdAttributeOptionsOptionIdDeleteData,
190
+ DeleteOptionV2ShopsShopIdAttributeOptionsOptionIdDeleteResponse,
191
+ ListOptionsShopsShopIdAttributesAttributeIdOptionsGetData,
192
+ ListOptionsShopsShopIdAttributesAttributeIdOptionsGetResponse,
193
+ CreateOptionShopsShopIdAttributesAttributeIdOptionsPostData,
194
+ CreateOptionShopsShopIdAttributesAttributeIdOptionsPostResponse,
195
+ GetOptionShopsShopIdAttributesAttributeIdOptionsOptionIdGetData,
196
+ GetOptionShopsShopIdAttributesAttributeIdOptionsOptionIdGetResponse,
197
+ DeleteOptionShopsShopIdAttributesAttributeIdOptionsOptionIdDeleteData,
198
+ DeleteOptionShopsShopIdAttributesAttributeIdOptionsOptionIdDeleteResponse,
199
+ ProductAttributeValuesListData,
200
+ ProductAttributeValuesListResponse,
201
+ ProductAttributeValuesCreateDeprecatedData,
202
+ ProductAttributeValuesCreateDeprecatedResponse,
203
+ ProductAttributeValuesGetData,
204
+ ProductAttributeValuesGetResponse,
205
+ ProductAttributeValuesDeleteData,
206
+ ProductAttributeValuesDeleteResponse,
207
+ ProductAttributeValuesCreateForProductData,
208
+ ProductAttributeValuesCreateForProductResponse,
209
+ ProductAttributeValuesReplaceForProductData,
210
+ ProductAttributeValuesReplaceForProductResponse,
211
+ GetMultiShopsShopIdAccountsGetData,
212
+ GetMultiShopsShopIdAccountsGetResponse,
213
+ CreateShopsShopIdAccountsPostData,
214
+ CreateShopsShopIdAccountsPostResponse,
215
+ GetByIdShopsShopIdAccountsIdGetData,
216
+ GetByIdShopsShopIdAccountsIdGetResponse,
217
+ UpdateShopsShopIdAccountsAccountIdPutData,
218
+ UpdateShopsShopIdAccountsAccountIdPutResponse,
219
+ DeleteShopsShopIdAccountsAccountIdDeleteData,
220
+ DeleteShopsShopIdAccountsAccountIdDeleteResponse,
221
+ CreatePaymentIntentShopsShopIdStripePostData,
222
+ CreatePaymentIntentShopsShopIdStripePostResponse,
223
+ CreateSubscriptionIntentShopsShopIdStripeSubscriptionPostData,
224
+ CreateSubscriptionIntentShopsShopIdStripeSubscriptionPostResponse,
225
+ CancelSubscriptionShopsShopIdStripeSubscriptionSubscriptionIdDeleteData,
226
+ CancelSubscriptionShopsShopIdStripeSubscriptionSubscriptionIdDeleteResponse,
227
+ CreateEarlyAccessPostData,
228
+ CreateEarlyAccessPostResponse,
229
+ FormInfoRequestFormPostData,
230
+ FormInfoRequestFormPostResponse,
231
+ TriggerErrorSentryGetData,
232
+ TriggerErrorSentryGetResponse,
233
+ FormTestFormsPostData,
234
+ FormTestFormsPostResponse,
235
+ GetMultiFaqGetData,
236
+ GetMultiFaqGetResponse,
237
+ CreateFaqPostData,
238
+ CreateFaqPostResponse,
239
+ GetByIdFaqIdGetData,
240
+ GetByIdFaqIdGetResponse,
241
+ UpdateFaqFaqIdPutData,
242
+ UpdateFaqFaqIdPutResponse,
243
+ DeleteFaqFaqIdDeleteData,
244
+ DeleteFaqFaqIdDeleteResponse,
245
+ } from './types.gen';
246
+
247
+ /**
248
+ * Login Access Token
249
+ * OAuth2 compatible token login, get an access token for future requests
250
+ * @param data The data for the request.
251
+ * @param data.formData
252
+ * @returns unknown Successful Response
253
+ * @throws ApiError
254
+ */
255
+ export const loginAccessTokenLoginAccessTokenPost = (
256
+ data: LoginAccessTokenLoginAccessTokenPostData,
257
+ ): CancelablePromise<LoginAccessTokenLoginAccessTokenPostResponse> => {
258
+ return __request(OpenAPI, {
259
+ method: 'POST',
260
+ url: '/login/access-token',
261
+ formData: data.formData,
262
+ mediaType: 'application/x-www-form-urlencoded',
263
+ errors: {
264
+ 422: 'Validation Error',
265
+ },
266
+ });
267
+ };
268
+
269
+ /**
270
+ * Test Token
271
+ * Test access token
272
+ * @returns User Successful Response
273
+ * @throws ApiError
274
+ */
275
+ export const testTokenLoginTestTokenPost =
276
+ (): CancelablePromise<TestTokenLoginTestTokenPostResponse> => {
277
+ return __request(OpenAPI, {
278
+ method: 'POST',
279
+ url: '/login/test-token',
280
+ });
281
+ };
282
+
283
+ /**
284
+ * Recover Password
285
+ * Password Recovery
286
+ * @param data The data for the request.
287
+ * @param data.email
288
+ * @returns Msg Successful Response
289
+ * @throws ApiError
290
+ */
291
+ export const recoverPasswordPasswordRecoveryEmailPost = (
292
+ data: RecoverPasswordPasswordRecoveryEmailPostData,
293
+ ): CancelablePromise<RecoverPasswordPasswordRecoveryEmailPostResponse> => {
294
+ return __request(OpenAPI, {
295
+ method: 'POST',
296
+ url: '/password-recovery/{email}',
297
+ path: {
298
+ email: data.email,
299
+ },
300
+ errors: {
301
+ 422: 'Validation Error',
302
+ },
303
+ });
304
+ };
305
+
306
+ /**
307
+ * Reset Password
308
+ * Reset password
309
+ * @param data The data for the request.
310
+ * @param data.requestBody
311
+ * @returns Msg Successful Response
312
+ * @throws ApiError
313
+ */
314
+ export const resetPasswordResetPasswordPost = (
315
+ data: ResetPasswordResetPasswordPostData,
316
+ ): CancelablePromise<ResetPasswordResetPasswordPostResponse> => {
317
+ return __request(OpenAPI, {
318
+ method: 'POST',
319
+ url: '/reset-password/',
320
+ body: data.requestBody,
321
+ mediaType: 'application/json',
322
+ errors: {
323
+ 422: 'Validation Error',
324
+ },
325
+ });
326
+ };
327
+
328
+ /**
329
+ * Get Health
330
+ * @returns string Successful Response
331
+ * @throws ApiError
332
+ */
333
+ export const getHealthHealthGet =
334
+ (): CancelablePromise<GetHealthHealthGetResponse> => {
335
+ return __request(OpenAPI, {
336
+ method: 'GET',
337
+ url: '/health/',
338
+ });
339
+ };
340
+
341
+ /**
342
+ * Get Multi
343
+ * Retrieve users.
344
+ * @param data The data for the request.
345
+ * @param data.skip
346
+ * @param data.limit
347
+ * @param data.filter This filter can accept search query's like `key:value` and will split on the `:`. If it detects more than one `:`, or does not find a `:` it will search for the string in all columns.
348
+ * @param data.sort The sort will accept parameters like `col:ASC` or `col:DESC` and will split on the `:`. If it does not find a `:` it will sort ascending on that column.
349
+ * @returns unknown Successful Response
350
+ * @throws ApiError
351
+ */
352
+ export const getMultiUsersGet = (
353
+ data: GetMultiUsersGetData = {},
354
+ ): CancelablePromise<GetMultiUsersGetResponse> => {
355
+ return __request(OpenAPI, {
356
+ method: 'GET',
357
+ url: '/users/',
358
+ query: {
359
+ skip: data.skip,
360
+ limit: data.limit,
361
+ filter: data.filter,
362
+ sort: data.sort,
363
+ },
364
+ errors: {
365
+ 422: 'Validation Error',
366
+ },
367
+ });
368
+ };
369
+
370
+ /**
371
+ * Create
372
+ * Create new user.
373
+ * @param data The data for the request.
374
+ * @param data.requestBody
375
+ * @returns User Successful Response
376
+ * @throws ApiError
377
+ */
378
+ export const createUsersPost = (
379
+ data: CreateUsersPostData,
380
+ ): CancelablePromise<CreateUsersPostResponse> => {
381
+ return __request(OpenAPI, {
382
+ method: 'POST',
383
+ url: '/users/',
384
+ body: data.requestBody,
385
+ mediaType: 'application/json',
386
+ errors: {
387
+ 422: 'Validation Error',
388
+ },
389
+ });
390
+ };
391
+
392
+ /**
393
+ * Get User Me
394
+ * Get current user.
395
+ * @returns User Successful Response
396
+ * @throws ApiError
397
+ */
398
+ export const getUserMeUsersMeGet =
399
+ (): CancelablePromise<GetUserMeUsersMeGetResponse> => {
400
+ return __request(OpenAPI, {
401
+ method: 'GET',
402
+ url: '/users/me',
403
+ });
404
+ };
405
+
406
+ /**
407
+ * Update User Me
408
+ * Update own user.
409
+ * @param data The data for the request.
410
+ * @param data.requestBody
411
+ * @returns User Successful Response
412
+ * @throws ApiError
413
+ */
414
+ export const updateUserMeUsersMePut = (
415
+ data: UpdateUserMeUsersMePutData = {},
416
+ ): CancelablePromise<UpdateUserMeUsersMePutResponse> => {
417
+ return __request(OpenAPI, {
418
+ method: 'PUT',
419
+ url: '/users/me',
420
+ body: data.requestBody,
421
+ mediaType: 'application/json',
422
+ errors: {
423
+ 422: 'Validation Error',
424
+ },
425
+ });
426
+ };
427
+
428
+ /**
429
+ * Get By Id
430
+ * Get a specific user by id.
431
+ * @param data The data for the request.
432
+ * @param data.userId
433
+ * @returns User Successful Response
434
+ * @throws ApiError
435
+ */
436
+ export const getByIdUsersUserIdGet = (
437
+ data: GetByIdUsersUserIdGetData,
438
+ ): CancelablePromise<GetByIdUsersUserIdGetResponse> => {
439
+ return __request(OpenAPI, {
440
+ method: 'GET',
441
+ url: '/users/{user_id}',
442
+ path: {
443
+ user_id: data.userId,
444
+ },
445
+ errors: {
446
+ 422: 'Validation Error',
447
+ },
448
+ });
449
+ };
450
+
451
+ /**
452
+ * Update
453
+ * Update a user.
454
+ * @param data The data for the request.
455
+ * @param data.userId
456
+ * @param data.requestBody
457
+ * @returns User Successful Response
458
+ * @throws ApiError
459
+ */
460
+ export const updateUsersUserIdPut = (
461
+ data: UpdateUsersUserIdPutData,
462
+ ): CancelablePromise<UpdateUsersUserIdPutResponse> => {
463
+ return __request(OpenAPI, {
464
+ method: 'PUT',
465
+ url: '/users/{user_id}',
466
+ path: {
467
+ user_id: data.userId,
468
+ },
469
+ body: data.requestBody,
470
+ mediaType: 'application/json',
471
+ errors: {
472
+ 422: 'Validation Error',
473
+ },
474
+ });
475
+ };
476
+
477
+ /**
478
+ * Get Forms
479
+ * Retrieve all forms.
480
+ *
481
+ * Args:
482
+ * response: Response
483
+ *
484
+ * Returns:
485
+ * Form titles
486
+ * @returns string Successful Response
487
+ * @throws ApiError
488
+ */
489
+ export const getFormsFormsGet =
490
+ (): CancelablePromise<GetFormsFormsGetResponse> => {
491
+ return __request(OpenAPI, {
492
+ method: 'GET',
493
+ url: '/forms',
494
+ });
495
+ };
496
+
497
+ /**
498
+ * New Form
499
+ * @param data The data for the request.
500
+ * @param data.formKey
501
+ * @param data.requestBody
502
+ * @param data.shopId
503
+ * @returns unknown Successful Response
504
+ * @throws ApiError
505
+ */
506
+ export const newFormFormsFormKeyPost = (
507
+ data: NewFormFormsFormKeyPostData,
508
+ ): CancelablePromise<NewFormFormsFormKeyPostResponse> => {
509
+ return __request(OpenAPI, {
510
+ method: 'POST',
511
+ url: '/forms/{form_key}',
512
+ path: {
513
+ form_key: data.formKey,
514
+ },
515
+ query: {
516
+ shop_id: data.shopId,
517
+ },
518
+ body: data.requestBody,
519
+ mediaType: 'application/json',
520
+ errors: {
521
+ 422: 'Validation Error',
522
+ },
523
+ });
524
+ };
525
+
526
+ /**
527
+ * Get Signed Url
528
+ * @param data The data for the request.
529
+ * @param data.imageName
530
+ * @returns unknown Successful Response
531
+ * @throws ApiError
532
+ */
533
+ export const getSignedUrlImagesSignedUrlImageNameGet = (
534
+ data: GetSignedUrlImagesSignedUrlImageNameGetData,
535
+ ): CancelablePromise<GetSignedUrlImagesSignedUrlImageNameGetResponse> => {
536
+ return __request(OpenAPI, {
537
+ method: 'GET',
538
+ url: '/images/signed-url/{image_name}',
539
+ path: {
540
+ image_name: data.imageName,
541
+ },
542
+ errors: {
543
+ 422: 'Validation Error',
544
+ },
545
+ });
546
+ };
547
+
548
+ /**
549
+ * Move Images
550
+ * @returns unknown Successful Response
551
+ * @throws ApiError
552
+ */
553
+ export const moveImagesImagesMovePost =
554
+ (): CancelablePromise<MoveImagesImagesMovePostResponse> => {
555
+ return __request(OpenAPI, {
556
+ method: 'POST',
557
+ url: '/images/move',
558
+ });
559
+ };
560
+
561
+ /**
562
+ * Delete Temporary Images
563
+ * @returns unknown Successful Response
564
+ * @throws ApiError
565
+ */
566
+ export const deleteTemporaryImagesImagesDeleteTempPost =
567
+ (): CancelablePromise<DeleteTemporaryImagesImagesDeleteTempPostResponse> => {
568
+ return __request(OpenAPI, {
569
+ method: 'POST',
570
+ url: '/images/delete-temp',
571
+ });
572
+ };
573
+
574
+ /**
575
+ * Get Multi
576
+ * @param data The data for the request.
577
+ * @param data.skip
578
+ * @param data.limit
579
+ * @param data.filter This filter can accept search query's like `key:value` and will split on the `:`. If it detects more than one `:`, or does not find a `:` it will search for the string in all columns.
580
+ * @param data.sort The sort will accept parameters like `col:ASC` or `col:DESC` and will split on the `:`. If it does not find a `:` it will sort ascending on that column.
581
+ * @returns LicenseSchema Successful Response
582
+ * @throws ApiError
583
+ */
584
+ export const getMultiLicensesGet = (
585
+ data: GetMultiLicensesGetData = {},
586
+ ): CancelablePromise<GetMultiLicensesGetResponse> => {
587
+ return __request(OpenAPI, {
588
+ method: 'GET',
589
+ url: '/licenses',
590
+ query: {
591
+ skip: data.skip,
592
+ limit: data.limit,
593
+ filter: data.filter,
594
+ sort: data.sort,
595
+ },
596
+ errors: {
597
+ 422: 'Validation Error',
598
+ },
599
+ });
600
+ };
601
+
602
+ /**
603
+ * Create
604
+ * @param data The data for the request.
605
+ * @param data.requestBody
606
+ * @returns LicenseSchema Successful Response
607
+ * @throws ApiError
608
+ */
609
+ export const createLicensesPost = (
610
+ data: CreateLicensesPostData,
611
+ ): CancelablePromise<CreateLicensesPostResponse> => {
612
+ return __request(OpenAPI, {
613
+ method: 'POST',
614
+ url: '/licenses',
615
+ body: data.requestBody,
616
+ mediaType: 'application/json',
617
+ errors: {
618
+ 422: 'Validation Error',
619
+ },
620
+ });
621
+ };
622
+
623
+ /**
624
+ * Get By Id
625
+ * @param data The data for the request.
626
+ * @param data.id
627
+ * @returns LicenseSchema Successful Response
628
+ * @throws ApiError
629
+ */
630
+ export const getByIdLicensesIdGet = (
631
+ data: GetByIdLicensesIdGetData,
632
+ ): CancelablePromise<GetByIdLicensesIdGetResponse> => {
633
+ return __request(OpenAPI, {
634
+ method: 'GET',
635
+ url: '/licenses/{id}',
636
+ path: {
637
+ id: data.id,
638
+ },
639
+ errors: {
640
+ 422: 'Validation Error',
641
+ },
642
+ });
643
+ };
644
+
645
+ /**
646
+ * Edit
647
+ * @param data The data for the request.
648
+ * @param data.id
649
+ * @param data.requestBody
650
+ * @returns LicenseSchema Successful Response
651
+ * @throws ApiError
652
+ */
653
+ export const editLicensesIdPut = (
654
+ data: EditLicensesIdPutData,
655
+ ): CancelablePromise<EditLicensesIdPutResponse> => {
656
+ return __request(OpenAPI, {
657
+ method: 'PUT',
658
+ url: '/licenses/{id}',
659
+ path: {
660
+ id: data.id,
661
+ },
662
+ body: data.requestBody,
663
+ mediaType: 'application/json',
664
+ errors: {
665
+ 422: 'Validation Error',
666
+ },
667
+ });
668
+ };
669
+
670
+ /**
671
+ * Delete
672
+ * @param data The data for the request.
673
+ * @param data.id
674
+ * @returns void Successful Response
675
+ * @throws ApiError
676
+ */
677
+ export const deleteLicensesIdDelete = (
678
+ data: DeleteLicensesIdDeleteData,
679
+ ): CancelablePromise<DeleteLicensesIdDeleteResponse> => {
680
+ return __request(OpenAPI, {
681
+ method: 'DELETE',
682
+ url: '/licenses/{id}',
683
+ path: {
684
+ id: data.id,
685
+ },
686
+ errors: {
687
+ 422: 'Validation Error',
688
+ },
689
+ });
690
+ };
691
+
692
+ /**
693
+ * Get By Improviser User Id
694
+ * @param data The data for the request.
695
+ * @param data.improviserUserId
696
+ * @returns LicenseSchema Successful Response
697
+ * @throws ApiError
698
+ */
699
+ export const getByImproviserUserIdLicensesImproviserImproviserUserIdGet = (
700
+ data: GetByImproviserUserIdLicensesImproviserImproviserUserIdGetData,
701
+ ): CancelablePromise<GetByImproviserUserIdLicensesImproviserImproviserUserIdGetResponse> => {
702
+ return __request(OpenAPI, {
703
+ method: 'GET',
704
+ url: '/licenses/improviser/{improviser_user_id}',
705
+ path: {
706
+ improviser_user_id: data.improviserUserId,
707
+ },
708
+ errors: {
709
+ 422: 'Validation Error',
710
+ },
711
+ });
712
+ };
713
+
714
+ /**
715
+ * Get Signed Download Link
716
+ * @param data The data for the request.
717
+ * @param data.fileName
718
+ * @returns unknown Successful Response
719
+ * @throws ApiError
720
+ */
721
+ export const getSignedDownloadLinkDownloadsFileNameGet = (
722
+ data: GetSignedDownloadLinkDownloadsFileNameGetData,
723
+ ): CancelablePromise<GetSignedDownloadLinkDownloadsFileNameGetResponse> => {
724
+ return __request(OpenAPI, {
725
+ method: 'GET',
726
+ url: '/downloads/{file_name}',
727
+ path: {
728
+ file_name: data.fileName,
729
+ },
730
+ errors: {
731
+ 422: 'Validation Error',
732
+ },
733
+ });
734
+ };
735
+
736
+ /**
737
+ * Send Download Link Via Email
738
+ * @param data The data for the request.
739
+ * @param data.fileName
740
+ * @param data.email
741
+ * @param data.shopName
742
+ * @returns unknown Successful Response
743
+ * @throws ApiError
744
+ */
745
+ export const sendDownloadLinkViaEmailDownloadsSendPost = (
746
+ data: SendDownloadLinkViaEmailDownloadsSendPostData,
747
+ ): CancelablePromise<SendDownloadLinkViaEmailDownloadsSendPostResponse> => {
748
+ return __request(OpenAPI, {
749
+ method: 'POST',
750
+ url: '/downloads/send',
751
+ query: {
752
+ file_name: data.fileName,
753
+ email: data.email,
754
+ shop_name: data.shopName,
755
+ },
756
+ errors: {
757
+ 422: 'Validation Error',
758
+ },
759
+ });
760
+ };
761
+
762
+ /**
763
+ * Get Multi
764
+ * @param data The data for the request.
765
+ * @param data.skip
766
+ * @param data.limit
767
+ * @param data.filter This filter can accept search query's like `key:value` and will split on the `:`. If it detects more than one `:`, or does not find a `:` it will search for the string in all columns.
768
+ * @param data.sort The sort will accept parameters like `col:ASC` or `col:DESC` and will split on the `:`. If it does not find a `:` it will sort ascending on that column.
769
+ * @returns ShopSchema Successful Response
770
+ * @throws ApiError
771
+ */
772
+ export const getMultiShopsGet = (
773
+ data: GetMultiShopsGetData = {},
774
+ ): CancelablePromise<GetMultiShopsGetResponse> => {
775
+ return __request(OpenAPI, {
776
+ method: 'GET',
777
+ url: '/shops/',
778
+ query: {
779
+ skip: data.skip,
780
+ limit: data.limit,
781
+ filter: data.filter,
782
+ sort: data.sort,
783
+ },
784
+ errors: {
785
+ 422: 'Validation Error',
786
+ },
787
+ });
788
+ };
789
+
790
+ /**
791
+ * Create
792
+ * @param data The data for the request.
793
+ * @param data.requestBody
794
+ * @returns ShopSchema Successful Response
795
+ * @throws ApiError
796
+ */
797
+ export const createShopsPost = (
798
+ data: CreateShopsPostData,
799
+ ): CancelablePromise<CreateShopsPostResponse> => {
800
+ return __request(OpenAPI, {
801
+ method: 'POST',
802
+ url: '/shops/',
803
+ body: data.requestBody,
804
+ mediaType: 'application/json',
805
+ errors: {
806
+ 422: 'Validation Error',
807
+ },
808
+ });
809
+ };
810
+
811
+ /**
812
+ * Get Cache Status
813
+ * Show date of last change in data that could be visible in this shop
814
+ * @param data The data for the request.
815
+ * @param data.id
816
+ * @returns ShopCacheStatus Successful Response
817
+ * @throws ApiError
818
+ */
819
+ export const getCacheStatusShopsCacheStatusIdGet = (
820
+ data: GetCacheStatusShopsCacheStatusIdGetData,
821
+ ): CancelablePromise<GetCacheStatusShopsCacheStatusIdGetResponse> => {
822
+ return __request(OpenAPI, {
823
+ method: 'GET',
824
+ url: '/shops/cache-status/{id}',
825
+ path: {
826
+ id: data.id,
827
+ },
828
+ errors: {
829
+ 422: 'Validation Error',
830
+ },
831
+ });
832
+ };
833
+
834
+ /**
835
+ * Get Last Completed Order
836
+ * Show date of last change in data that could be visible in this shop
837
+ * @param data The data for the request.
838
+ * @param data.id
839
+ * @returns ShopLastCompletedOrder Successful Response
840
+ * @throws ApiError
841
+ */
842
+ export const getLastCompletedOrderShopsLastCompletedOrderIdGet = (
843
+ data: GetLastCompletedOrderShopsLastCompletedOrderIdGetData,
844
+ ): CancelablePromise<GetLastCompletedOrderShopsLastCompletedOrderIdGetResponse> => {
845
+ return __request(OpenAPI, {
846
+ method: 'GET',
847
+ url: '/shops/last-completed-order/{id}',
848
+ path: {
849
+ id: data.id,
850
+ },
851
+ errors: {
852
+ 422: 'Validation Error',
853
+ },
854
+ });
855
+ };
856
+
857
+ /**
858
+ * Get Last Pending Order
859
+ * Show date of last change in data that could be visible in this shop
860
+ * @param data The data for the request.
861
+ * @param data.id
862
+ * @returns ShopLastPendingOrder Successful Response
863
+ * @throws ApiError
864
+ */
865
+ export const getLastPendingOrderShopsLastPendingOrderIdGet = (
866
+ data: GetLastPendingOrderShopsLastPendingOrderIdGetData,
867
+ ): CancelablePromise<GetLastPendingOrderShopsLastPendingOrderIdGetResponse> => {
868
+ return __request(OpenAPI, {
869
+ method: 'GET',
870
+ url: '/shops/last-pending-order/{id}',
871
+ path: {
872
+ id: data.id,
873
+ },
874
+ errors: {
875
+ 422: 'Validation Error',
876
+ },
877
+ });
878
+ };
879
+
880
+ /**
881
+ * Get By Id
882
+ * List Shop
883
+ * @param data The data for the request.
884
+ * @param data.id
885
+ * @returns ShopWithPrices Successful Response
886
+ * @throws ApiError
887
+ */
888
+ export const getByIdShopsIdGet = (
889
+ data: GetByIdShopsIdGetData,
890
+ ): CancelablePromise<GetByIdShopsIdGetResponse> => {
891
+ return __request(OpenAPI, {
892
+ method: 'GET',
893
+ url: '/shops/{id}',
894
+ path: {
895
+ id: data.id,
896
+ },
897
+ errors: {
898
+ 422: 'Validation Error',
899
+ },
900
+ });
901
+ };
902
+
903
+ /**
904
+ * Update
905
+ * @param data The data for the request.
906
+ * @param data.shopId
907
+ * @param data.requestBody
908
+ * @returns ShopSchema Successful Response
909
+ * @throws ApiError
910
+ */
911
+ export const updateShopsShopIdPut = (
912
+ data: UpdateShopsShopIdPutData,
913
+ ): CancelablePromise<UpdateShopsShopIdPutResponse> => {
914
+ return __request(OpenAPI, {
915
+ method: 'PUT',
916
+ url: '/shops/{shop_id}',
917
+ path: {
918
+ shop_id: data.shopId,
919
+ },
920
+ body: data.requestBody,
921
+ mediaType: 'application/json',
922
+ errors: {
923
+ 422: 'Validation Error',
924
+ },
925
+ });
926
+ };
927
+
928
+ /**
929
+ * Delete
930
+ * @param data The data for the request.
931
+ * @param data.shopId
932
+ * @returns void Successful Response
933
+ * @throws ApiError
934
+ */
935
+ export const deleteShopsShopIdDelete = (
936
+ data: DeleteShopsShopIdDeleteData,
937
+ ): CancelablePromise<DeleteShopsShopIdDeleteResponse> => {
938
+ return __request(OpenAPI, {
939
+ method: 'DELETE',
940
+ url: '/shops/{shop_id}',
941
+ path: {
942
+ shop_id: data.shopId,
943
+ },
944
+ errors: {
945
+ 422: 'Validation Error',
946
+ },
947
+ });
948
+ };
949
+
950
+ /**
951
+ * Get Config
952
+ * @param data The data for the request.
953
+ * @param data.id
954
+ * @returns ShopConfig Successful Response
955
+ * @throws ApiError
956
+ */
957
+ export const getConfigShopsConfigIdGet = (
958
+ data: GetConfigShopsConfigIdGetData,
959
+ ): CancelablePromise<GetConfigShopsConfigIdGetResponse> => {
960
+ return __request(OpenAPI, {
961
+ method: 'GET',
962
+ url: '/shops/config/{id}',
963
+ path: {
964
+ id: data.id,
965
+ },
966
+ errors: {
967
+ 422: 'Validation Error',
968
+ },
969
+ });
970
+ };
971
+
972
+ /**
973
+ * Update Config
974
+ * @param data The data for the request.
975
+ * @param data.id
976
+ * @param data.requestBody
977
+ * @returns ShopConfigUpdate_Output Successful Response
978
+ * @throws ApiError
979
+ */
980
+ export const updateConfigShopsConfigIdPut = (
981
+ data: UpdateConfigShopsConfigIdPutData,
982
+ ): CancelablePromise<UpdateConfigShopsConfigIdPutResponse> => {
983
+ return __request(OpenAPI, {
984
+ method: 'PUT',
985
+ url: '/shops/config/{id}',
986
+ path: {
987
+ id: data.id,
988
+ },
989
+ body: data.requestBody,
990
+ mediaType: 'application/json',
991
+ errors: {
992
+ 422: 'Validation Error',
993
+ },
994
+ });
995
+ };
996
+
997
+ /**
998
+ * Get Allowed Ips
999
+ * @param data The data for the request.
1000
+ * @param data.id
1001
+ * @returns string Successful Response
1002
+ * @throws ApiError
1003
+ */
1004
+ export const getAllowedIpsShopsAllowedIpsIdGet = (
1005
+ data: GetAllowedIpsShopsAllowedIpsIdGetData,
1006
+ ): CancelablePromise<GetAllowedIpsShopsAllowedIpsIdGetResponse> => {
1007
+ return __request(OpenAPI, {
1008
+ method: 'GET',
1009
+ url: '/shops/allowed-ips/{id}',
1010
+ path: {
1011
+ id: data.id,
1012
+ },
1013
+ errors: {
1014
+ 422: 'Validation Error',
1015
+ },
1016
+ });
1017
+ };
1018
+
1019
+ /**
1020
+ * Add New Ip
1021
+ * @param data The data for the request.
1022
+ * @param data.id
1023
+ * @param data.requestBody
1024
+ * @returns string Successful Response
1025
+ * @throws ApiError
1026
+ */
1027
+ export const addNewIpShopsAllowedIpsIdPost = (
1028
+ data: AddNewIpShopsAllowedIpsIdPostData,
1029
+ ): CancelablePromise<AddNewIpShopsAllowedIpsIdPostResponse> => {
1030
+ return __request(OpenAPI, {
1031
+ method: 'POST',
1032
+ url: '/shops/allowed-ips/{id}',
1033
+ path: {
1034
+ id: data.id,
1035
+ },
1036
+ body: data.requestBody,
1037
+ mediaType: 'application/json',
1038
+ errors: {
1039
+ 422: 'Validation Error',
1040
+ },
1041
+ });
1042
+ };
1043
+
1044
+ /**
1045
+ * Remove Ip
1046
+ * @param data The data for the request.
1047
+ * @param data.id
1048
+ * @param data.requestBody
1049
+ * @returns string Successful Response
1050
+ * @throws ApiError
1051
+ */
1052
+ export const removeIpShopsAllowedIpsIdRemovePost = (
1053
+ data: RemoveIpShopsAllowedIpsIdRemovePostData,
1054
+ ): CancelablePromise<RemoveIpShopsAllowedIpsIdRemovePostResponse> => {
1055
+ return __request(OpenAPI, {
1056
+ method: 'POST',
1057
+ url: '/shops/allowed-ips/{id}/remove',
1058
+ path: {
1059
+ id: data.id,
1060
+ },
1061
+ body: data.requestBody,
1062
+ mediaType: 'application/json',
1063
+ errors: {
1064
+ 422: 'Validation Error',
1065
+ },
1066
+ });
1067
+ };
1068
+
1069
+ /**
1070
+ * Get Products
1071
+ * @param data The data for the request.
1072
+ * @param data.shopId
1073
+ * @param data.lang
1074
+ * @returns ProductResponse Successful Response
1075
+ * @throws ApiError
1076
+ */
1077
+ export const getProductsShopsShopIdPricesGet = (
1078
+ data: GetProductsShopsShopIdPricesGetData,
1079
+ ): CancelablePromise<GetProductsShopsShopIdPricesGetResponse> => {
1080
+ return __request(OpenAPI, {
1081
+ method: 'GET',
1082
+ url: '/shops/{shop_id}/prices/',
1083
+ path: {
1084
+ shop_id: data.shopId,
1085
+ },
1086
+ query: {
1087
+ lang: data.lang,
1088
+ },
1089
+ errors: {
1090
+ 422: 'Validation Error',
1091
+ },
1092
+ });
1093
+ };
1094
+
1095
+ /**
1096
+ * Get Cart Products
1097
+ * @param data The data for the request.
1098
+ * @param data.shopId
1099
+ * @param data.lang
1100
+ * @param data.requestBody
1101
+ * @returns ProductResponse Successful Response
1102
+ * @throws ApiError
1103
+ */
1104
+ export const getCartProductsShopsShopIdPricesPost = (
1105
+ data: GetCartProductsShopsShopIdPricesPostData,
1106
+ ): CancelablePromise<GetCartProductsShopsShopIdPricesPostResponse> => {
1107
+ return __request(OpenAPI, {
1108
+ method: 'POST',
1109
+ url: '/shops/{shop_id}/prices/',
1110
+ path: {
1111
+ shop_id: data.shopId,
1112
+ },
1113
+ query: {
1114
+ lang: data.lang,
1115
+ },
1116
+ body: data.requestBody,
1117
+ mediaType: 'application/json',
1118
+ errors: {
1119
+ 422: 'Validation Error',
1120
+ },
1121
+ });
1122
+ };
1123
+
1124
+ /**
1125
+ * Get Multi
1126
+ * @param data The data for the request.
1127
+ * @param data.skip
1128
+ * @param data.limit
1129
+ * @param data.filter This filter can accept search query's like `key:value` and will split on the `:`. If it detects more than one `:`, or does not find a `:` it will search for the string in all columns.
1130
+ * @param data.sort The sort will accept parameters like `col:ASC` or `col:DESC` and will split on the `:`. If it does not find a `:` it will sort ascending on that column.
1131
+ * @returns OrderSchema Successful Response
1132
+ * @throws ApiError
1133
+ */
1134
+ export const getMultiOrdersGet = (
1135
+ data: GetMultiOrdersGetData = {},
1136
+ ): CancelablePromise<GetMultiOrdersGetResponse> => {
1137
+ return __request(OpenAPI, {
1138
+ method: 'GET',
1139
+ url: '/orders/',
1140
+ query: {
1141
+ skip: data.skip,
1142
+ limit: data.limit,
1143
+ filter: data.filter,
1144
+ sort: data.sort,
1145
+ },
1146
+ errors: {
1147
+ 422: 'Validation Error',
1148
+ },
1149
+ });
1150
+ };
1151
+
1152
+ /**
1153
+ * Create
1154
+ * @param data The data for the request.
1155
+ * @param data.requestBody
1156
+ * @returns OrderCreated Successful Response
1157
+ * @throws ApiError
1158
+ */
1159
+ export const createOrdersPost = (
1160
+ data: CreateOrdersPostData,
1161
+ ): CancelablePromise<CreateOrdersPostResponse> => {
1162
+ return __request(OpenAPI, {
1163
+ method: 'POST',
1164
+ url: '/orders/',
1165
+ body: data.requestBody,
1166
+ mediaType: 'application/json',
1167
+ errors: {
1168
+ 422: 'Validation Error',
1169
+ },
1170
+ });
1171
+ };
1172
+
1173
+ /**
1174
+ * Show All Pending Orders Per Shop
1175
+ * @param data The data for the request.
1176
+ * @param data.shopId
1177
+ * @param data.skip
1178
+ * @param data.limit
1179
+ * @param data.filter This filter can accept search query's like `key:value` and will split on the `:`. If it detects more than one `:`, or does not find a `:` it will search for the string in all columns.
1180
+ * @param data.sort The sort will accept parameters like `col:ASC` or `col:DESC` and will split on the `:`. If it does not find a `:` it will sort ascending on that column.
1181
+ * @returns OrderSchema Successful Response
1182
+ * @throws ApiError
1183
+ */
1184
+ export const showAllPendingOrdersPerShopOrdersShopShopIdPendingGet = (
1185
+ data: ShowAllPendingOrdersPerShopOrdersShopShopIdPendingGetData,
1186
+ ): CancelablePromise<ShowAllPendingOrdersPerShopOrdersShopShopIdPendingGetResponse> => {
1187
+ return __request(OpenAPI, {
1188
+ method: 'GET',
1189
+ url: '/orders/shop/{shop_id}/pending',
1190
+ path: {
1191
+ shop_id: data.shopId,
1192
+ },
1193
+ query: {
1194
+ skip: data.skip,
1195
+ limit: data.limit,
1196
+ filter: data.filter,
1197
+ sort: data.sort,
1198
+ },
1199
+ errors: {
1200
+ 422: 'Validation Error',
1201
+ },
1202
+ });
1203
+ };
1204
+
1205
+ /**
1206
+ * Show All Complete Orders Per Shop
1207
+ * @param data The data for the request.
1208
+ * @param data.shopId
1209
+ * @param data.skip
1210
+ * @param data.limit
1211
+ * @param data.filter This filter can accept search query's like `key:value` and will split on the `:`. If it detects more than one `:`, or does not find a `:` it will search for the string in all columns.
1212
+ * @param data.sort The sort will accept parameters like `col:ASC` or `col:DESC` and will split on the `:`. If it does not find a `:` it will sort ascending on that column.
1213
+ * @returns OrderSchema Successful Response
1214
+ * @throws ApiError
1215
+ */
1216
+ export const showAllCompleteOrdersPerShopOrdersShopShopIdCompleteGet = (
1217
+ data: ShowAllCompleteOrdersPerShopOrdersShopShopIdCompleteGetData,
1218
+ ): CancelablePromise<ShowAllCompleteOrdersPerShopOrdersShopShopIdCompleteGetResponse> => {
1219
+ return __request(OpenAPI, {
1220
+ method: 'GET',
1221
+ url: '/orders/shop/{shop_id}/complete',
1222
+ path: {
1223
+ shop_id: data.shopId,
1224
+ },
1225
+ query: {
1226
+ skip: data.skip,
1227
+ limit: data.limit,
1228
+ filter: data.filter,
1229
+ sort: data.sort,
1230
+ },
1231
+ errors: {
1232
+ 422: 'Validation Error',
1233
+ },
1234
+ });
1235
+ };
1236
+
1237
+ /**
1238
+ * Get By Id
1239
+ * @param data The data for the request.
1240
+ * @param data.id
1241
+ * @returns OrderSchema Successful Response
1242
+ * @throws ApiError
1243
+ */
1244
+ export const getByIdOrdersIdGet = (
1245
+ data: GetByIdOrdersIdGetData,
1246
+ ): CancelablePromise<GetByIdOrdersIdGetResponse> => {
1247
+ return __request(OpenAPI, {
1248
+ method: 'GET',
1249
+ url: '/orders/{id}',
1250
+ path: {
1251
+ id: data.id,
1252
+ },
1253
+ errors: {
1254
+ 422: 'Validation Error',
1255
+ },
1256
+ });
1257
+ };
1258
+
1259
+ /**
1260
+ * Check
1261
+ * @param data The data for the request.
1262
+ * @param data.ids
1263
+ * @returns OrderCreated Successful Response
1264
+ * @throws ApiError
1265
+ */
1266
+ export const checkOrdersCheckIdsGet = (
1267
+ data: CheckOrdersCheckIdsGetData,
1268
+ ): CancelablePromise<CheckOrdersCheckIdsGetResponse> => {
1269
+ return __request(OpenAPI, {
1270
+ method: 'GET',
1271
+ url: '/orders/check/{ids}',
1272
+ path: {
1273
+ ids: data.ids,
1274
+ },
1275
+ errors: {
1276
+ 422: 'Validation Error',
1277
+ },
1278
+ });
1279
+ };
1280
+
1281
+ /**
1282
+ * Patch
1283
+ * @param data The data for the request.
1284
+ * @param data.orderId
1285
+ * @param data.requestBody
1286
+ * @returns OrderUpdated Successful Response
1287
+ * @throws ApiError
1288
+ */
1289
+ export const patchOrdersOrderIdPatch = (
1290
+ data: PatchOrdersOrderIdPatchData,
1291
+ ): CancelablePromise<PatchOrdersOrderIdPatchResponse> => {
1292
+ return __request(OpenAPI, {
1293
+ method: 'PATCH',
1294
+ url: '/orders/{order_id}',
1295
+ path: {
1296
+ order_id: data.orderId,
1297
+ },
1298
+ body: data.requestBody,
1299
+ mediaType: 'application/json',
1300
+ errors: {
1301
+ 422: 'Validation Error',
1302
+ },
1303
+ });
1304
+ };
1305
+
1306
+ /**
1307
+ * Update
1308
+ * @param data The data for the request.
1309
+ * @param data.orderId
1310
+ * @param data.requestBody
1311
+ * @returns OrderUpdated Successful Response
1312
+ * @throws ApiError
1313
+ */
1314
+ export const updateOrdersOrderIdPut = (
1315
+ data: UpdateOrdersOrderIdPutData,
1316
+ ): CancelablePromise<UpdateOrdersOrderIdPutResponse> => {
1317
+ return __request(OpenAPI, {
1318
+ method: 'PUT',
1319
+ url: '/orders/{order_id}',
1320
+ path: {
1321
+ order_id: data.orderId,
1322
+ },
1323
+ body: data.requestBody,
1324
+ mediaType: 'application/json',
1325
+ errors: {
1326
+ 422: 'Validation Error',
1327
+ },
1328
+ });
1329
+ };
1330
+
1331
+ /**
1332
+ * Delete
1333
+ * @param data The data for the request.
1334
+ * @param data.orderId
1335
+ * @returns void Successful Response
1336
+ * @throws ApiError
1337
+ */
1338
+ export const deleteOrdersOrderIdDelete = (
1339
+ data: DeleteOrdersOrderIdDeleteData,
1340
+ ): CancelablePromise<DeleteOrdersOrderIdDeleteResponse> => {
1341
+ return __request(OpenAPI, {
1342
+ method: 'DELETE',
1343
+ url: '/orders/{order_id}',
1344
+ path: {
1345
+ order_id: data.orderId,
1346
+ },
1347
+ errors: {
1348
+ 422: 'Validation Error',
1349
+ },
1350
+ });
1351
+ };
1352
+
1353
+ /**
1354
+ * Get Order Products In Stock
1355
+ * @param data The data for the request.
1356
+ * @param data.orderId
1357
+ * @returns boolean Successful Response
1358
+ * @throws ApiError
1359
+ */
1360
+ export const getOrderProductsInStockOrdersStockOrderIdGet = (
1361
+ data: GetOrderProductsInStockOrdersStockOrderIdGetData,
1362
+ ): CancelablePromise<GetOrderProductsInStockOrdersStockOrderIdGetResponse> => {
1363
+ return __request(OpenAPI, {
1364
+ method: 'GET',
1365
+ url: '/orders/stock/{order_id}',
1366
+ path: {
1367
+ order_id: data.orderId,
1368
+ },
1369
+ errors: {
1370
+ 422: 'Validation Error',
1371
+ },
1372
+ });
1373
+ };
1374
+
1375
+ /**
1376
+ * Get Multi
1377
+ * @param data The data for the request.
1378
+ * @param data.shopId
1379
+ * @param data.skip
1380
+ * @param data.limit
1381
+ * @param data.filter This filter can accept search query's like `key:value` and will split on the `:`. If it detects more than one `:`, or does not find a `:` it will search for the string in all columns.
1382
+ * @param data.sort The sort will accept parameters like `col:ASC` or `col:DESC` and will split on the `:`. If it does not find a `:` it will sort ascending on that column.
1383
+ * @returns CategorySchema Successful Response
1384
+ * @throws ApiError
1385
+ */
1386
+ export const getMultiShopsShopIdCategoriesGet = (
1387
+ data: GetMultiShopsShopIdCategoriesGetData,
1388
+ ): CancelablePromise<GetMultiShopsShopIdCategoriesGetResponse> => {
1389
+ return __request(OpenAPI, {
1390
+ method: 'GET',
1391
+ url: '/shops/{shop_id}/categories/',
1392
+ path: {
1393
+ shop_id: data.shopId,
1394
+ },
1395
+ query: {
1396
+ skip: data.skip,
1397
+ limit: data.limit,
1398
+ filter: data.filter,
1399
+ sort: data.sort,
1400
+ },
1401
+ errors: {
1402
+ 422: 'Validation Error',
1403
+ },
1404
+ });
1405
+ };
1406
+
1407
+ /**
1408
+ * Create
1409
+ * @param data The data for the request.
1410
+ * @param data.shopId
1411
+ * @param data.requestBody
1412
+ * @returns unknown Successful Response
1413
+ * @throws ApiError
1414
+ */
1415
+ export const createShopsShopIdCategoriesPost = (
1416
+ data: CreateShopsShopIdCategoriesPostData,
1417
+ ): CancelablePromise<CreateShopsShopIdCategoriesPostResponse> => {
1418
+ return __request(OpenAPI, {
1419
+ method: 'POST',
1420
+ url: '/shops/{shop_id}/categories/',
1421
+ path: {
1422
+ shop_id: data.shopId,
1423
+ },
1424
+ body: data.requestBody,
1425
+ mediaType: 'application/json',
1426
+ errors: {
1427
+ 422: 'Validation Error',
1428
+ },
1429
+ });
1430
+ };
1431
+
1432
+ /**
1433
+ * Get By Id
1434
+ * @param data The data for the request.
1435
+ * @param data.shopId
1436
+ * @param data.categoryId
1437
+ * @returns CategorySchema Successful Response
1438
+ * @throws ApiError
1439
+ */
1440
+ export const getByIdShopsShopIdCategoriesCategoryIdGet = (
1441
+ data: GetByIdShopsShopIdCategoriesCategoryIdGetData,
1442
+ ): CancelablePromise<GetByIdShopsShopIdCategoriesCategoryIdGetResponse> => {
1443
+ return __request(OpenAPI, {
1444
+ method: 'GET',
1445
+ url: '/shops/{shop_id}/categories/{category_id}',
1446
+ path: {
1447
+ shop_id: data.shopId,
1448
+ category_id: data.categoryId,
1449
+ },
1450
+ errors: {
1451
+ 422: 'Validation Error',
1452
+ },
1453
+ });
1454
+ };
1455
+
1456
+ /**
1457
+ * Update
1458
+ * @param data The data for the request.
1459
+ * @param data.categoryId
1460
+ * @param data.shopId
1461
+ * @param data.requestBody
1462
+ * @returns unknown Successful Response
1463
+ * @throws ApiError
1464
+ */
1465
+ export const updateShopsShopIdCategoriesCategoryIdPut = (
1466
+ data: UpdateShopsShopIdCategoriesCategoryIdPutData,
1467
+ ): CancelablePromise<UpdateShopsShopIdCategoriesCategoryIdPutResponse> => {
1468
+ return __request(OpenAPI, {
1469
+ method: 'PUT',
1470
+ url: '/shops/{shop_id}/categories/{category_id}',
1471
+ path: {
1472
+ category_id: data.categoryId,
1473
+ shop_id: data.shopId,
1474
+ },
1475
+ body: data.requestBody,
1476
+ mediaType: 'application/json',
1477
+ errors: {
1478
+ 422: 'Validation Error',
1479
+ },
1480
+ });
1481
+ };
1482
+
1483
+ /**
1484
+ * Delete
1485
+ * @param data The data for the request.
1486
+ * @param data.categoryId
1487
+ * @param data.shopId
1488
+ * @returns void Successful Response
1489
+ * @throws ApiError
1490
+ */
1491
+ export const deleteShopsShopIdCategoriesCategoryIdDelete = (
1492
+ data: DeleteShopsShopIdCategoriesCategoryIdDeleteData,
1493
+ ): CancelablePromise<DeleteShopsShopIdCategoriesCategoryIdDeleteResponse> => {
1494
+ return __request(OpenAPI, {
1495
+ method: 'DELETE',
1496
+ url: '/shops/{shop_id}/categories/{category_id}',
1497
+ path: {
1498
+ category_id: data.categoryId,
1499
+ shop_id: data.shopId,
1500
+ },
1501
+ errors: {
1502
+ 422: 'Validation Error',
1503
+ },
1504
+ });
1505
+ };
1506
+
1507
+ /**
1508
+ * Get By Name
1509
+ * @param data The data for the request.
1510
+ * @param data.name
1511
+ * @param data.shopId
1512
+ * @returns CategorySchema Successful Response
1513
+ * @throws ApiError
1514
+ */
1515
+ export const getByNameShopsShopIdCategoriesNameNameGet = (
1516
+ data: GetByNameShopsShopIdCategoriesNameNameGetData,
1517
+ ): CancelablePromise<GetByNameShopsShopIdCategoriesNameNameGetResponse> => {
1518
+ return __request(OpenAPI, {
1519
+ method: 'GET',
1520
+ url: '/shops/{shop_id}/categories/name/{name}',
1521
+ path: {
1522
+ name: data.name,
1523
+ shop_id: data.shopId,
1524
+ },
1525
+ errors: {
1526
+ 422: 'Validation Error',
1527
+ },
1528
+ });
1529
+ };
1530
+
1531
+ /**
1532
+ * Swap
1533
+ * @param data The data for the request.
1534
+ * @param data.shopId
1535
+ * @param data.categoryId
1536
+ * @param data.moveUp
1537
+ * @returns unknown Successful Response
1538
+ * @throws ApiError
1539
+ */
1540
+ export const swapShopsShopIdCategoriesCategoryIdSwapPut = (
1541
+ data: SwapShopsShopIdCategoriesCategoryIdSwapPutData,
1542
+ ): CancelablePromise<SwapShopsShopIdCategoriesCategoryIdSwapPutResponse> => {
1543
+ return __request(OpenAPI, {
1544
+ method: 'PUT',
1545
+ url: '/shops/{shop_id}/categories/{category_id}/swap',
1546
+ path: {
1547
+ shop_id: data.shopId,
1548
+ category_id: data.categoryId,
1549
+ },
1550
+ query: {
1551
+ move_up: data.moveUp,
1552
+ },
1553
+ errors: {
1554
+ 422: 'Validation Error',
1555
+ },
1556
+ });
1557
+ };
1558
+
1559
+ /**
1560
+ * Get Multi
1561
+ * List all product category images
1562
+ * @param data The data for the request.
1563
+ * @param data.skip
1564
+ * @param data.limit
1565
+ * @param data.filter This filter can accept search query's like `key:value` and will split on the `:`. If it detects more than one `:`, or does not find a `:` it will search for the string in all columns.
1566
+ * @param data.sort The sort will accept parameters like `col:ASC` or `col:DESC` and will split on the `:`. If it does not find a `:` it will sort ascending on that column.
1567
+ * @returns unknown Successful Response
1568
+ * @throws ApiError
1569
+ */
1570
+ export const getMultiShopsShopIdCategoriesImagesGet = (
1571
+ data: GetMultiShopsShopIdCategoriesImagesGetData = {},
1572
+ ): CancelablePromise<GetMultiShopsShopIdCategoriesImagesGetResponse> => {
1573
+ return __request(OpenAPI, {
1574
+ method: 'GET',
1575
+ url: '/shops/{shop_id}/categories-images/',
1576
+ query: {
1577
+ skip: data.skip,
1578
+ limit: data.limit,
1579
+ filter: data.filter,
1580
+ sort: data.sort,
1581
+ },
1582
+ errors: {
1583
+ 422: 'Validation Error',
1584
+ },
1585
+ });
1586
+ };
1587
+
1588
+ /**
1589
+ * Get By Id
1590
+ * @param data The data for the request.
1591
+ * @param data.id
1592
+ * @returns unknown Successful Response
1593
+ * @throws ApiError
1594
+ */
1595
+ export const getByIdShopsShopIdCategoriesImagesIdGet = (
1596
+ data: GetByIdShopsShopIdCategoriesImagesIdGetData,
1597
+ ): CancelablePromise<GetByIdShopsShopIdCategoriesImagesIdGetResponse> => {
1598
+ return __request(OpenAPI, {
1599
+ method: 'GET',
1600
+ url: '/shops/{shop_id}/categories-images/{id}',
1601
+ path: {
1602
+ id: data.id,
1603
+ },
1604
+ errors: {
1605
+ 422: 'Validation Error',
1606
+ },
1607
+ });
1608
+ };
1609
+
1610
+ /**
1611
+ * Put
1612
+ * @param data The data for the request.
1613
+ * @param data.id
1614
+ * @param data.requestBody
1615
+ * @returns unknown Successful Response
1616
+ * @throws ApiError
1617
+ */
1618
+ export const putShopsShopIdCategoriesImagesIdPut = (
1619
+ data: PutShopsShopIdCategoriesImagesIdPutData,
1620
+ ): CancelablePromise<PutShopsShopIdCategoriesImagesIdPutResponse> => {
1621
+ return __request(OpenAPI, {
1622
+ method: 'PUT',
1623
+ url: '/shops/{shop_id}/categories-images/{id}',
1624
+ path: {
1625
+ id: data.id,
1626
+ },
1627
+ body: data.requestBody,
1628
+ mediaType: 'application/json',
1629
+ errors: {
1630
+ 422: 'Validation Error',
1631
+ },
1632
+ });
1633
+ };
1634
+
1635
+ /**
1636
+ * Delete Image
1637
+ * @param data The data for the request.
1638
+ * @param data.id
1639
+ * @param data.requestBody
1640
+ * @returns unknown Successful Response
1641
+ * @throws ApiError
1642
+ */
1643
+ export const deleteImageShopsShopIdCategoriesImagesDeleteIdPut = (
1644
+ data: DeleteImageShopsShopIdCategoriesImagesDeleteIdPutData,
1645
+ ): CancelablePromise<DeleteImageShopsShopIdCategoriesImagesDeleteIdPutResponse> => {
1646
+ return __request(OpenAPI, {
1647
+ method: 'PUT',
1648
+ url: '/shops/{shop_id}/categories-images/delete/{id}',
1649
+ path: {
1650
+ id: data.id,
1651
+ },
1652
+ body: data.requestBody,
1653
+ mediaType: 'application/json',
1654
+ errors: {
1655
+ 422: 'Validation Error',
1656
+ },
1657
+ });
1658
+ };
1659
+
1660
+ /**
1661
+ * Get Signed Upload Url
1662
+ * @param data The data for the request.
1663
+ * @param data.shopId
1664
+ * @param data.imageName
1665
+ * @returns unknown Successful Response
1666
+ * @throws ApiError
1667
+ */
1668
+ export const getSignedUploadUrlShopsShopIdImagesSignedUrlImageNameGet = (
1669
+ data: GetSignedUploadUrlShopsShopIdImagesSignedUrlImageNameGetData,
1670
+ ): CancelablePromise<GetSignedUploadUrlShopsShopIdImagesSignedUrlImageNameGetResponse> => {
1671
+ return __request(OpenAPI, {
1672
+ method: 'GET',
1673
+ url: '/shops/{shop_id}/images/signed-url/{image_name}',
1674
+ path: {
1675
+ shop_id: data.shopId,
1676
+ image_name: data.imageName,
1677
+ },
1678
+ errors: {
1679
+ 422: 'Validation Error',
1680
+ },
1681
+ });
1682
+ };
1683
+
1684
+ /**
1685
+ * Get Multi
1686
+ * @param data The data for the request.
1687
+ * @param data.shopId
1688
+ * @param data.skip
1689
+ * @param data.limit
1690
+ * @param data.filter This filter can accept search query's like `key:value` and will split on the `:`. If it detects more than one `:`, or does not find a `:` it will search for the string in all columns.
1691
+ * @param data.sort The sort will accept parameters like `col:ASC` or `col:DESC` and will split on the `:`. If it does not find a `:` it will sort ascending on that column.
1692
+ * @returns ProductWithDefaultPrice Successful Response
1693
+ * @throws ApiError
1694
+ */
1695
+ export const getMultiShopsShopIdProductsGet = (
1696
+ data: GetMultiShopsShopIdProductsGetData,
1697
+ ): CancelablePromise<GetMultiShopsShopIdProductsGetResponse> => {
1698
+ return __request(OpenAPI, {
1699
+ method: 'GET',
1700
+ url: '/shops/{shop_id}/products/',
1701
+ path: {
1702
+ shop_id: data.shopId,
1703
+ },
1704
+ query: {
1705
+ skip: data.skip,
1706
+ limit: data.limit,
1707
+ filter: data.filter,
1708
+ sort: data.sort,
1709
+ },
1710
+ errors: {
1711
+ 422: 'Validation Error',
1712
+ },
1713
+ });
1714
+ };
1715
+
1716
+ /**
1717
+ * Create
1718
+ * @param data The data for the request.
1719
+ * @param data.shopId
1720
+ * @param data.requestBody
1721
+ * @returns unknown Successful Response
1722
+ * @throws ApiError
1723
+ */
1724
+ export const createShopsShopIdProductsPost = (
1725
+ data: CreateShopsShopIdProductsPostData,
1726
+ ): CancelablePromise<CreateShopsShopIdProductsPostResponse> => {
1727
+ return __request(OpenAPI, {
1728
+ method: 'POST',
1729
+ url: '/shops/{shop_id}/products/',
1730
+ path: {
1731
+ shop_id: data.shopId,
1732
+ },
1733
+ body: data.requestBody,
1734
+ mediaType: 'application/json',
1735
+ errors: {
1736
+ 422: 'Validation Error',
1737
+ },
1738
+ });
1739
+ };
1740
+
1741
+ /**
1742
+ * List products with attributes
1743
+ * Fetch a list of products along with their associated attributes.
1744
+ *
1745
+ * You can filter the results using one of the following mutually exclusive attribute filters:
1746
+ *
1747
+ * * `option_id` array[UUID]: Filter by one or multiple attribute option UUIDs.
1748
+ * * `attribute_id` UUID: Filter by attribute UUID.
1749
+ * * `option_value_key` array[str]: Filter by option value (e.g., 'Red', 'XL').
1750
+ * * `attribute_name` array[str]: Filter by one or multiple attribute names (e.g., 'Color', 'Size').
1751
+ *
1752
+ * Only one attribute filter can be used at a time.
1753
+ * @param data The data for the request.
1754
+ * @param data.shopId
1755
+ * @param data.optionId
1756
+ * @param data.attributeId
1757
+ * @param data.optionValueKey
1758
+ * @param data.attributeName
1759
+ * @param data.skip
1760
+ * @param data.limit
1761
+ * @param data.filter This filter can accept search query's like `key:value` and will split on the `:`. If it detects more than one `:`, or does not find a `:` it will search for the string in all columns.
1762
+ * @param data.sort The sort will accept parameters like `col:ASC` or `col:DESC` and will split on the `:`. If it does not find a `:` it will sort ascending on that column.
1763
+ * @returns ProductWithAttributes Successful Response
1764
+ * @throws ApiError
1765
+ */
1766
+ export const getMultiWithAttributesShopsShopIdProductsWithAttributesGet = (
1767
+ data: GetMultiWithAttributesShopsShopIdProductsWithAttributesGetData,
1768
+ ): CancelablePromise<GetMultiWithAttributesShopsShopIdProductsWithAttributesGetResponse> => {
1769
+ return __request(OpenAPI, {
1770
+ method: 'GET',
1771
+ url: '/shops/{shop_id}/products/with_attributes',
1772
+ path: {
1773
+ shop_id: data.shopId,
1774
+ },
1775
+ query: {
1776
+ option_id: data.optionId,
1777
+ attribute_id: data.attributeId,
1778
+ option_value_key: data.optionValueKey,
1779
+ attribute_name: data.attributeName,
1780
+ skip: data.skip,
1781
+ limit: data.limit,
1782
+ filter: data.filter,
1783
+ sort: data.sort,
1784
+ },
1785
+ errors: {
1786
+ 422: 'Validation Error',
1787
+ },
1788
+ });
1789
+ };
1790
+
1791
+ /**
1792
+ * Get By Id With Attributes
1793
+ * @param data The data for the request.
1794
+ * @param data.productId
1795
+ * @param data.shopId
1796
+ * @returns ProductWithAttributes Successful Response
1797
+ * @throws ApiError
1798
+ */
1799
+ export const getByIdWithAttributesShopsShopIdProductsProductIdWithAttributesGet =
1800
+ (
1801
+ data: GetByIdWithAttributesShopsShopIdProductsProductIdWithAttributesGetData,
1802
+ ): CancelablePromise<GetByIdWithAttributesShopsShopIdProductsProductIdWithAttributesGetResponse> => {
1803
+ return __request(OpenAPI, {
1804
+ method: 'GET',
1805
+ url: '/shops/{shop_id}/products/{product_id}/with_attributes',
1806
+ path: {
1807
+ product_id: data.productId,
1808
+ shop_id: data.shopId,
1809
+ },
1810
+ errors: {
1811
+ 422: 'Validation Error',
1812
+ },
1813
+ });
1814
+ };
1815
+
1816
+ /**
1817
+ * Get By Id
1818
+ * @param data The data for the request.
1819
+ * @param data.productId
1820
+ * @param data.shopId
1821
+ * @returns ProductWithDetailsAndPrices Successful Response
1822
+ * @throws ApiError
1823
+ */
1824
+ export const getByIdShopsShopIdProductsProductIdGet = (
1825
+ data: GetByIdShopsShopIdProductsProductIdGetData,
1826
+ ): CancelablePromise<GetByIdShopsShopIdProductsProductIdGetResponse> => {
1827
+ return __request(OpenAPI, {
1828
+ method: 'GET',
1829
+ url: '/shops/{shop_id}/products/{product_id}',
1830
+ path: {
1831
+ product_id: data.productId,
1832
+ shop_id: data.shopId,
1833
+ },
1834
+ errors: {
1835
+ 422: 'Validation Error',
1836
+ },
1837
+ });
1838
+ };
1839
+
1840
+ /**
1841
+ * Update
1842
+ * @param data The data for the request.
1843
+ * @param data.productId
1844
+ * @param data.shopId
1845
+ * @param data.requestBody
1846
+ * @returns unknown Successful Response
1847
+ * @throws ApiError
1848
+ */
1849
+ export const updateShopsShopIdProductsProductIdPut = (
1850
+ data: UpdateShopsShopIdProductsProductIdPutData,
1851
+ ): CancelablePromise<UpdateShopsShopIdProductsProductIdPutResponse> => {
1852
+ return __request(OpenAPI, {
1853
+ method: 'PUT',
1854
+ url: '/shops/{shop_id}/products/{product_id}',
1855
+ path: {
1856
+ product_id: data.productId,
1857
+ shop_id: data.shopId,
1858
+ },
1859
+ body: data.requestBody,
1860
+ mediaType: 'application/json',
1861
+ errors: {
1862
+ 422: 'Validation Error',
1863
+ },
1864
+ });
1865
+ };
1866
+
1867
+ /**
1868
+ * Delete
1869
+ * @param data The data for the request.
1870
+ * @param data.productId
1871
+ * @param data.shopId
1872
+ * @returns void Successful Response
1873
+ * @throws ApiError
1874
+ */
1875
+ export const deleteShopsShopIdProductsProductIdDelete = (
1876
+ data: DeleteShopsShopIdProductsProductIdDeleteData,
1877
+ ): CancelablePromise<DeleteShopsShopIdProductsProductIdDeleteResponse> => {
1878
+ return __request(OpenAPI, {
1879
+ method: 'DELETE',
1880
+ url: '/shops/{shop_id}/products/{product_id}',
1881
+ path: {
1882
+ product_id: data.productId,
1883
+ shop_id: data.shopId,
1884
+ },
1885
+ errors: {
1886
+ 422: 'Validation Error',
1887
+ },
1888
+ });
1889
+ };
1890
+
1891
+ /**
1892
+ * Swap
1893
+ * @param data The data for the request.
1894
+ * @param data.shopId
1895
+ * @param data.productId
1896
+ * @param data.moveUp
1897
+ * @returns unknown Successful Response
1898
+ * @throws ApiError
1899
+ */
1900
+ export const swapShopsShopIdProductsProductIdSwapPut = (
1901
+ data: SwapShopsShopIdProductsProductIdSwapPutData,
1902
+ ): CancelablePromise<SwapShopsShopIdProductsProductIdSwapPutResponse> => {
1903
+ return __request(OpenAPI, {
1904
+ method: 'PUT',
1905
+ url: '/shops/{shop_id}/products/{product_id}/swap',
1906
+ path: {
1907
+ shop_id: data.shopId,
1908
+ product_id: data.productId,
1909
+ },
1910
+ query: {
1911
+ move_up: data.moveUp,
1912
+ },
1913
+ errors: {
1914
+ 422: 'Validation Error',
1915
+ },
1916
+ });
1917
+ };
1918
+
1919
+ /**
1920
+ * Get Multi
1921
+ * List prices for a product_to_tag
1922
+ * @param data The data for the request.
1923
+ * @param data.skip
1924
+ * @param data.limit
1925
+ * @param data.filter This filter can accept search query's like `key:value` and will split on the `:`. If it detects more than one `:`, or does not find a `:` it will search for the string in all columns.
1926
+ * @param data.sort The sort will accept parameters like `col:ASC` or `col:DESC` and will split on the `:`. If it does not find a `:` it will sort ascending on that column.
1927
+ * @returns ProductToTagSchema Successful Response
1928
+ * @throws ApiError
1929
+ */
1930
+ export const getMultiShopsShopIdProductsToTagsGet = (
1931
+ data: GetMultiShopsShopIdProductsToTagsGetData = {},
1932
+ ): CancelablePromise<GetMultiShopsShopIdProductsToTagsGetResponse> => {
1933
+ return __request(OpenAPI, {
1934
+ method: 'GET',
1935
+ url: '/shops/{shop_id}/products-to-tags/',
1936
+ query: {
1937
+ skip: data.skip,
1938
+ limit: data.limit,
1939
+ filter: data.filter,
1940
+ sort: data.sort,
1941
+ },
1942
+ errors: {
1943
+ 422: 'Validation Error',
1944
+ },
1945
+ });
1946
+ };
1947
+
1948
+ /**
1949
+ * Create
1950
+ * @param data The data for the request.
1951
+ * @param data.requestBody
1952
+ * @returns void Successful Response
1953
+ * @throws ApiError
1954
+ */
1955
+ export const createShopsShopIdProductsToTagsPost = (
1956
+ data: CreateShopsShopIdProductsToTagsPostData,
1957
+ ): CancelablePromise<CreateShopsShopIdProductsToTagsPostResponse> => {
1958
+ return __request(OpenAPI, {
1959
+ method: 'POST',
1960
+ url: '/shops/{shop_id}/products-to-tags/',
1961
+ body: data.requestBody,
1962
+ mediaType: 'application/json',
1963
+ errors: {
1964
+ 422: 'Validation Error',
1965
+ },
1966
+ });
1967
+ };
1968
+
1969
+ /**
1970
+ * Get Relation Id
1971
+ * @param data The data for the request.
1972
+ * @param data.tagId
1973
+ * @param data.productId
1974
+ * @returns unknown Successful Response
1975
+ * @throws ApiError
1976
+ */
1977
+ export const getRelationIdShopsShopIdProductsToTagsGetRelationIdGet = (
1978
+ data: GetRelationIdShopsShopIdProductsToTagsGetRelationIdGetData,
1979
+ ): CancelablePromise<GetRelationIdShopsShopIdProductsToTagsGetRelationIdGetResponse> => {
1980
+ return __request(OpenAPI, {
1981
+ method: 'GET',
1982
+ url: '/shops/{shop_id}/products-to-tags/get_relation_id',
1983
+ query: {
1984
+ tag_id: data.tagId,
1985
+ product_id: data.productId,
1986
+ },
1987
+ errors: {
1988
+ 422: 'Validation Error',
1989
+ },
1990
+ });
1991
+ };
1992
+
1993
+ /**
1994
+ * Get By Id
1995
+ * @param data The data for the request.
1996
+ * @param data.id
1997
+ * @returns ProductToTagSchema Successful Response
1998
+ * @throws ApiError
1999
+ */
2000
+ export const getByIdShopsShopIdProductsToTagsIdGet = (
2001
+ data: GetByIdShopsShopIdProductsToTagsIdGetData,
2002
+ ): CancelablePromise<GetByIdShopsShopIdProductsToTagsIdGetResponse> => {
2003
+ return __request(OpenAPI, {
2004
+ method: 'GET',
2005
+ url: '/shops/{shop_id}/products-to-tags/{id}',
2006
+ path: {
2007
+ id: data.id,
2008
+ },
2009
+ errors: {
2010
+ 422: 'Validation Error',
2011
+ },
2012
+ });
2013
+ };
2014
+
2015
+ /**
2016
+ * Update
2017
+ * @param data The data for the request.
2018
+ * @param data.productToTagId
2019
+ * @param data.requestBody
2020
+ * @returns void Successful Response
2021
+ * @throws ApiError
2022
+ */
2023
+ export const updateShopsShopIdProductsToTagsProductToTagIdPut = (
2024
+ data: UpdateShopsShopIdProductsToTagsProductToTagIdPutData,
2025
+ ): CancelablePromise<UpdateShopsShopIdProductsToTagsProductToTagIdPutResponse> => {
2026
+ return __request(OpenAPI, {
2027
+ method: 'PUT',
2028
+ url: '/shops/{shop_id}/products-to-tags/{product_to_tag_id}',
2029
+ path: {
2030
+ product_to_tag_id: data.productToTagId,
2031
+ },
2032
+ body: data.requestBody,
2033
+ mediaType: 'application/json',
2034
+ errors: {
2035
+ 422: 'Validation Error',
2036
+ },
2037
+ });
2038
+ };
2039
+
2040
+ /**
2041
+ * Delete
2042
+ * @param data The data for the request.
2043
+ * @param data.productToTagId
2044
+ * @returns void Successful Response
2045
+ * @throws ApiError
2046
+ */
2047
+ export const deleteShopsShopIdProductsToTagsProductToTagIdDelete = (
2048
+ data: DeleteShopsShopIdProductsToTagsProductToTagIdDeleteData,
2049
+ ): CancelablePromise<DeleteShopsShopIdProductsToTagsProductToTagIdDeleteResponse> => {
2050
+ return __request(OpenAPI, {
2051
+ method: 'DELETE',
2052
+ url: '/shops/{shop_id}/products-to-tags/{product_to_tag_id}',
2053
+ path: {
2054
+ product_to_tag_id: data.productToTagId,
2055
+ },
2056
+ errors: {
2057
+ 422: 'Validation Error',
2058
+ },
2059
+ });
2060
+ };
2061
+
2062
+ /**
2063
+ * Get Multi
2064
+ * @param data The data for the request.
2065
+ * @param data.shopId
2066
+ * @param data.skip
2067
+ * @param data.limit
2068
+ * @param data.filter This filter can accept search query's like `key:value` and will split on the `:`. If it detects more than one `:`, or does not find a `:` it will search for the string in all columns.
2069
+ * @param data.sort The sort will accept parameters like `col:ASC` or `col:DESC` and will split on the `:`. If it does not find a `:` it will sort ascending on that column.
2070
+ * @returns TagSchema Successful Response
2071
+ * @throws ApiError
2072
+ */
2073
+ export const getMultiShopsShopIdTagsGet = (
2074
+ data: GetMultiShopsShopIdTagsGetData,
2075
+ ): CancelablePromise<GetMultiShopsShopIdTagsGetResponse> => {
2076
+ return __request(OpenAPI, {
2077
+ method: 'GET',
2078
+ url: '/shops/{shop_id}/tags/',
2079
+ path: {
2080
+ shop_id: data.shopId,
2081
+ },
2082
+ query: {
2083
+ skip: data.skip,
2084
+ limit: data.limit,
2085
+ filter: data.filter,
2086
+ sort: data.sort,
2087
+ },
2088
+ errors: {
2089
+ 422: 'Validation Error',
2090
+ },
2091
+ });
2092
+ };
2093
+
2094
+ /**
2095
+ * Create
2096
+ * @param data The data for the request.
2097
+ * @param data.shopId
2098
+ * @param data.requestBody
2099
+ * @returns unknown Successful Response
2100
+ * @throws ApiError
2101
+ */
2102
+ export const createShopsShopIdTagsPost = (
2103
+ data: CreateShopsShopIdTagsPostData,
2104
+ ): CancelablePromise<CreateShopsShopIdTagsPostResponse> => {
2105
+ return __request(OpenAPI, {
2106
+ method: 'POST',
2107
+ url: '/shops/{shop_id}/tags/',
2108
+ path: {
2109
+ shop_id: data.shopId,
2110
+ },
2111
+ body: data.requestBody,
2112
+ mediaType: 'application/json',
2113
+ errors: {
2114
+ 422: 'Validation Error',
2115
+ },
2116
+ });
2117
+ };
2118
+
2119
+ /**
2120
+ * Get By Id
2121
+ * @param data The data for the request.
2122
+ * @param data.tagId
2123
+ * @param data.shopId
2124
+ * @returns TagSchema Successful Response
2125
+ * @throws ApiError
2126
+ */
2127
+ export const getByIdShopsShopIdTagsTagIdGet = (
2128
+ data: GetByIdShopsShopIdTagsTagIdGetData,
2129
+ ): CancelablePromise<GetByIdShopsShopIdTagsTagIdGetResponse> => {
2130
+ return __request(OpenAPI, {
2131
+ method: 'GET',
2132
+ url: '/shops/{shop_id}/tags/{tag_id}',
2133
+ path: {
2134
+ tag_id: data.tagId,
2135
+ shop_id: data.shopId,
2136
+ },
2137
+ errors: {
2138
+ 422: 'Validation Error',
2139
+ },
2140
+ });
2141
+ };
2142
+
2143
+ /**
2144
+ * Update
2145
+ * @param data The data for the request.
2146
+ * @param data.tagId
2147
+ * @param data.shopId
2148
+ * @param data.requestBody
2149
+ * @returns unknown Successful Response
2150
+ * @throws ApiError
2151
+ */
2152
+ export const updateShopsShopIdTagsTagIdPut = (
2153
+ data: UpdateShopsShopIdTagsTagIdPutData,
2154
+ ): CancelablePromise<UpdateShopsShopIdTagsTagIdPutResponse> => {
2155
+ return __request(OpenAPI, {
2156
+ method: 'PUT',
2157
+ url: '/shops/{shop_id}/tags/{tag_id}',
2158
+ path: {
2159
+ tag_id: data.tagId,
2160
+ shop_id: data.shopId,
2161
+ },
2162
+ body: data.requestBody,
2163
+ mediaType: 'application/json',
2164
+ errors: {
2165
+ 422: 'Validation Error',
2166
+ },
2167
+ });
2168
+ };
2169
+
2170
+ /**
2171
+ * Delete
2172
+ * @param data The data for the request.
2173
+ * @param data.tagId
2174
+ * @param data.shopId
2175
+ * @returns void Successful Response
2176
+ * @throws ApiError
2177
+ */
2178
+ export const deleteShopsShopIdTagsTagIdDelete = (
2179
+ data: DeleteShopsShopIdTagsTagIdDeleteData,
2180
+ ): CancelablePromise<DeleteShopsShopIdTagsTagIdDeleteResponse> => {
2181
+ return __request(OpenAPI, {
2182
+ method: 'DELETE',
2183
+ url: '/shops/{shop_id}/tags/{tag_id}',
2184
+ path: {
2185
+ tag_id: data.tagId,
2186
+ shop_id: data.shopId,
2187
+ },
2188
+ errors: {
2189
+ 422: 'Validation Error',
2190
+ },
2191
+ });
2192
+ };
2193
+
2194
+ /**
2195
+ * Get By Name
2196
+ * @param data The data for the request.
2197
+ * @param data.name
2198
+ * @param data.shopId
2199
+ * @returns TagSchema Successful Response
2200
+ * @throws ApiError
2201
+ */
2202
+ export const getByNameShopsShopIdTagsNameNameGet = (
2203
+ data: GetByNameShopsShopIdTagsNameNameGetData,
2204
+ ): CancelablePromise<GetByNameShopsShopIdTagsNameNameGetResponse> => {
2205
+ return __request(OpenAPI, {
2206
+ method: 'GET',
2207
+ url: '/shops/{shop_id}/tags/name/{name}',
2208
+ path: {
2209
+ name: data.name,
2210
+ shop_id: data.shopId,
2211
+ },
2212
+ errors: {
2213
+ 422: 'Validation Error',
2214
+ },
2215
+ });
2216
+ };
2217
+
2218
+ /**
2219
+ * Get attribute by ID with options
2220
+ * Retrieve a specific attribute by its unique ID, including all of its defined options.
2221
+ * @param data The data for the request.
2222
+ * @param data.attributeId
2223
+ * @param data.shopId
2224
+ * @returns AttributeWithOptionsSchema Successful Response
2225
+ * @throws ApiError
2226
+ */
2227
+ export const getByIdWithOptionsDirectShopsShopIdAttributesAttributeIdWithOptionsGet =
2228
+ (
2229
+ data: GetByIdWithOptionsDirectShopsShopIdAttributesAttributeIdWithOptionsGetData,
2230
+ ): CancelablePromise<GetByIdWithOptionsDirectShopsShopIdAttributesAttributeIdWithOptionsGetResponse> => {
2231
+ return __request(OpenAPI, {
2232
+ method: 'GET',
2233
+ url: '/shops/{shop_id}/attributes/{attribute_id}/with-options',
2234
+ path: {
2235
+ attribute_id: data.attributeId,
2236
+ shop_id: data.shopId,
2237
+ },
2238
+ errors: {
2239
+ 422: 'Validation Error',
2240
+ },
2241
+ });
2242
+ };
2243
+
2244
+ /**
2245
+ * List shop attributes with options
2246
+ * Retrieve a paginated list of all attributes belonging to a specific shop, including their associated options (e.g., sizes or colors).
2247
+ * @param data The data for the request.
2248
+ * @param data.shopId
2249
+ * @param data.skip
2250
+ * @param data.limit
2251
+ * @param data.filter This filter can accept search query's like `key:value` and will split on the `:`. If it detects more than one `:`, or does not find a `:` it will search for the string in all columns.
2252
+ * @param data.sort The sort will accept parameters like `col:ASC` or `col:DESC` and will split on the `:`. If it does not find a `:` it will sort ascending on that column.
2253
+ * @returns AttributeWithOptionsSchema Successful Response
2254
+ * @throws ApiError
2255
+ */
2256
+ export const getWithOptionsShopsShopIdAttributesWithOptionsGet = (
2257
+ data: GetWithOptionsShopsShopIdAttributesWithOptionsGetData,
2258
+ ): CancelablePromise<GetWithOptionsShopsShopIdAttributesWithOptionsGetResponse> => {
2259
+ return __request(OpenAPI, {
2260
+ method: 'GET',
2261
+ url: '/shops/{shop_id}/attributes/with-options',
2262
+ path: {
2263
+ shop_id: data.shopId,
2264
+ },
2265
+ query: {
2266
+ skip: data.skip,
2267
+ limit: data.limit,
2268
+ filter: data.filter,
2269
+ sort: data.sort,
2270
+ },
2271
+ errors: {
2272
+ 422: 'Validation Error',
2273
+ },
2274
+ });
2275
+ };
2276
+
2277
+ /**
2278
+ * List shop attributes
2279
+ * Retrieve a paginated list of all attributes defined for a specific shop. This list does not include options.
2280
+ * @param data The data for the request.
2281
+ * @param data.shopId
2282
+ * @param data.skip
2283
+ * @param data.limit
2284
+ * @param data.filter This filter can accept search query's like `key:value` and will split on the `:`. If it detects more than one `:`, or does not find a `:` it will search for the string in all columns.
2285
+ * @param data.sort The sort will accept parameters like `col:ASC` or `col:DESC` and will split on the `:`. If it does not find a `:` it will sort ascending on that column.
2286
+ * @returns AttributeSchema Successful Response
2287
+ * @throws ApiError
2288
+ */
2289
+ export const getMultiShopsShopIdAttributesGet = (
2290
+ data: GetMultiShopsShopIdAttributesGetData,
2291
+ ): CancelablePromise<GetMultiShopsShopIdAttributesGetResponse> => {
2292
+ return __request(OpenAPI, {
2293
+ method: 'GET',
2294
+ url: '/shops/{shop_id}/attributes/',
2295
+ path: {
2296
+ shop_id: data.shopId,
2297
+ },
2298
+ query: {
2299
+ skip: data.skip,
2300
+ limit: data.limit,
2301
+ filter: data.filter,
2302
+ sort: data.sort,
2303
+ },
2304
+ errors: {
2305
+ 422: 'Validation Error',
2306
+ },
2307
+ });
2308
+ };
2309
+
2310
+ /**
2311
+ * Create attribute
2312
+ * Create a new attribute for a shop. This also initializes a translation record with the provided name.
2313
+ * @param data The data for the request.
2314
+ * @param data.shopId
2315
+ * @param data.requestBody
2316
+ * @returns AttributeSchema Successful Response
2317
+ * @throws ApiError
2318
+ */
2319
+ export const createShopsShopIdAttributesPost = (
2320
+ data: CreateShopsShopIdAttributesPostData,
2321
+ ): CancelablePromise<CreateShopsShopIdAttributesPostResponse> => {
2322
+ return __request(OpenAPI, {
2323
+ method: 'POST',
2324
+ url: '/shops/{shop_id}/attributes/',
2325
+ path: {
2326
+ shop_id: data.shopId,
2327
+ },
2328
+ body: data.requestBody,
2329
+ mediaType: 'application/json',
2330
+ errors: {
2331
+ 422: 'Validation Error',
2332
+ },
2333
+ });
2334
+ };
2335
+
2336
+ /**
2337
+ * Get attribute by ID with options
2338
+ * Retrieve a specific attribute by its unique ID, including all of its defined options.
2339
+ * @param data The data for the request.
2340
+ * @param data.attributeId
2341
+ * @param data.shopId
2342
+ * @returns AttributeWithOptionsSchema Successful Response
2343
+ * @throws ApiError
2344
+ */
2345
+ export const getByIdWithOptionsShopsShopIdAttributesIdAttributeIdWithOptionsGet =
2346
+ (
2347
+ data: GetByIdWithOptionsShopsShopIdAttributesIdAttributeIdWithOptionsGetData,
2348
+ ): CancelablePromise<GetByIdWithOptionsShopsShopIdAttributesIdAttributeIdWithOptionsGetResponse> => {
2349
+ return __request(OpenAPI, {
2350
+ method: 'GET',
2351
+ url: '/shops/{shop_id}/attributes/id/{attribute_id}/with-options',
2352
+ path: {
2353
+ attribute_id: data.attributeId,
2354
+ shop_id: data.shopId,
2355
+ },
2356
+ errors: {
2357
+ 422: 'Validation Error',
2358
+ },
2359
+ });
2360
+ };
2361
+
2362
+ /**
2363
+ * Get attribute by ID
2364
+ * Retrieve the details of a specific attribute using its unique ID.
2365
+ * @param data The data for the request.
2366
+ * @param data.attributeId
2367
+ * @param data.shopId
2368
+ * @returns AttributeSchema Successful Response
2369
+ * @throws ApiError
2370
+ */
2371
+ export const getByIdShopsShopIdAttributesIdAttributeIdGet = (
2372
+ data: GetByIdShopsShopIdAttributesIdAttributeIdGetData,
2373
+ ): CancelablePromise<GetByIdShopsShopIdAttributesIdAttributeIdGetResponse> => {
2374
+ return __request(OpenAPI, {
2375
+ method: 'GET',
2376
+ url: '/shops/{shop_id}/attributes/id/{attribute_id}',
2377
+ path: {
2378
+ attribute_id: data.attributeId,
2379
+ shop_id: data.shopId,
2380
+ },
2381
+ errors: {
2382
+ 422: 'Validation Error',
2383
+ },
2384
+ });
2385
+ };
2386
+
2387
+ /**
2388
+ * Get attribute by name
2389
+ * Retrieve the details of a specific attribute using its machine-friendly name (e.g., 'color').
2390
+ * @param data The data for the request.
2391
+ * @param data.name
2392
+ * @param data.shopId
2393
+ * @returns AttributeSchema Successful Response
2394
+ * @throws ApiError
2395
+ */
2396
+ export const getByNameShopsShopIdAttributesNameNameGet = (
2397
+ data: GetByNameShopsShopIdAttributesNameNameGetData,
2398
+ ): CancelablePromise<GetByNameShopsShopIdAttributesNameNameGetResponse> => {
2399
+ return __request(OpenAPI, {
2400
+ method: 'GET',
2401
+ url: '/shops/{shop_id}/attributes/name/{name}',
2402
+ path: {
2403
+ name: data.name,
2404
+ shop_id: data.shopId,
2405
+ },
2406
+ errors: {
2407
+ 422: 'Validation Error',
2408
+ },
2409
+ });
2410
+ };
2411
+
2412
+ /**
2413
+ * Update attribute
2414
+ * Update the details of an existing attribute, such as its name or unit.
2415
+ * @param data The data for the request.
2416
+ * @param data.attributeId
2417
+ * @param data.shopId
2418
+ * @param data.requestBody
2419
+ * @returns AttributeSchema Successful Response
2420
+ * @throws ApiError
2421
+ */
2422
+ export const updateShopsShopIdAttributesAttributeIdPut = (
2423
+ data: UpdateShopsShopIdAttributesAttributeIdPutData,
2424
+ ): CancelablePromise<UpdateShopsShopIdAttributesAttributeIdPutResponse> => {
2425
+ return __request(OpenAPI, {
2426
+ method: 'PUT',
2427
+ url: '/shops/{shop_id}/attributes/{attribute_id}',
2428
+ path: {
2429
+ attribute_id: data.attributeId,
2430
+ shop_id: data.shopId,
2431
+ },
2432
+ body: data.requestBody,
2433
+ mediaType: 'application/json',
2434
+ errors: {
2435
+ 422: 'Validation Error',
2436
+ },
2437
+ });
2438
+ };
2439
+
2440
+ /**
2441
+ * Delete attribute
2442
+ * Remove an attribute from a shop. This will fail if the attribute is currently in use by any products.
2443
+ * @param data The data for the request.
2444
+ * @param data.attributeId
2445
+ * @param data.shopId
2446
+ * @returns void Successful Response
2447
+ * @throws ApiError
2448
+ */
2449
+ export const deleteShopsShopIdAttributesAttributeIdDelete = (
2450
+ data: DeleteShopsShopIdAttributesAttributeIdDeleteData,
2451
+ ): CancelablePromise<DeleteShopsShopIdAttributesAttributeIdDeleteResponse> => {
2452
+ return __request(OpenAPI, {
2453
+ method: 'DELETE',
2454
+ url: '/shops/{shop_id}/attributes/{attribute_id}',
2455
+ path: {
2456
+ attribute_id: data.attributeId,
2457
+ shop_id: data.shopId,
2458
+ },
2459
+ errors: {
2460
+ 422: 'Validation Error',
2461
+ },
2462
+ });
2463
+ };
2464
+
2465
+ /**
2466
+ * List attribute options for a shop
2467
+ * Retrieve a paginated list of all attribute options (e.g., 'Small', 'XL') across all attributes within a shop.
2468
+ * @param data The data for the request.
2469
+ * @param data.shopId
2470
+ * @param data.skip
2471
+ * @param data.limit
2472
+ * @param data.filter This filter can accept search query's like `key:value` and will split on the `:`. If it detects more than one `:`, or does not find a `:` it will search for the string in all columns.
2473
+ * @param data.sort The sort will accept parameters like `col:ASC` or `col:DESC` and will split on the `:`. If it does not find a `:` it will sort ascending on that column.
2474
+ * @returns AttributeOptionSchema Successful Response
2475
+ * @throws ApiError
2476
+ */
2477
+ export const listOptionsForShopShopsShopIdAttributeOptionsGet = (
2478
+ data: ListOptionsForShopShopsShopIdAttributeOptionsGetData,
2479
+ ): CancelablePromise<ListOptionsForShopShopsShopIdAttributeOptionsGetResponse> => {
2480
+ return __request(OpenAPI, {
2481
+ method: 'GET',
2482
+ url: '/shops/{shop_id}/attribute-options/',
2483
+ path: {
2484
+ shop_id: data.shopId,
2485
+ },
2486
+ query: {
2487
+ skip: data.skip,
2488
+ limit: data.limit,
2489
+ filter: data.filter,
2490
+ sort: data.sort,
2491
+ },
2492
+ errors: {
2493
+ 422: 'Validation Error',
2494
+ },
2495
+ });
2496
+ };
2497
+
2498
+ /**
2499
+ * Create attribute option
2500
+ * Create a new option for a specific attribute within a shop. The attribute_id must be provided in the request body.
2501
+ * @param data The data for the request.
2502
+ * @param data.shopId
2503
+ * @param data.requestBody
2504
+ * @returns AttributeOptionSchema Successful Response
2505
+ * @throws ApiError
2506
+ */
2507
+ export const createOptionV2ShopsShopIdAttributeOptionsPost = (
2508
+ data: CreateOptionV2ShopsShopIdAttributeOptionsPostData,
2509
+ ): CancelablePromise<CreateOptionV2ShopsShopIdAttributeOptionsPostResponse> => {
2510
+ return __request(OpenAPI, {
2511
+ method: 'POST',
2512
+ url: '/shops/{shop_id}/attribute-options/',
2513
+ path: {
2514
+ shop_id: data.shopId,
2515
+ },
2516
+ body: data.requestBody,
2517
+ mediaType: 'application/json',
2518
+ errors: {
2519
+ 422: 'Validation Error',
2520
+ },
2521
+ });
2522
+ };
2523
+
2524
+ /**
2525
+ * Get attribute option
2526
+ * Retrieve the details of a specific attribute option by its unique ID, ensuring it belongs to the shop.
2527
+ * @param data The data for the request.
2528
+ * @param data.shopId
2529
+ * @param data.optionId
2530
+ * @returns AttributeOptionSchema Successful Response
2531
+ * @throws ApiError
2532
+ */
2533
+ export const getOptionV2ShopsShopIdAttributeOptionsOptionIdGet = (
2534
+ data: GetOptionV2ShopsShopIdAttributeOptionsOptionIdGetData,
2535
+ ): CancelablePromise<GetOptionV2ShopsShopIdAttributeOptionsOptionIdGetResponse> => {
2536
+ return __request(OpenAPI, {
2537
+ method: 'GET',
2538
+ url: '/shops/{shop_id}/attribute-options/{option_id}',
2539
+ path: {
2540
+ shop_id: data.shopId,
2541
+ option_id: data.optionId,
2542
+ },
2543
+ errors: {
2544
+ 422: 'Validation Error',
2545
+ },
2546
+ });
2547
+ };
2548
+
2549
+ /**
2550
+ * Update attribute option
2551
+ * Update the details of an existing attribute option, ensuring it belongs to the shop.
2552
+ * @param data The data for the request.
2553
+ * @param data.shopId
2554
+ * @param data.optionId
2555
+ * @param data.requestBody
2556
+ * @returns AttributeOptionSchema Successful Response
2557
+ * @throws ApiError
2558
+ */
2559
+ export const updateOptionV2ShopsShopIdAttributeOptionsOptionIdPut = (
2560
+ data: UpdateOptionV2ShopsShopIdAttributeOptionsOptionIdPutData,
2561
+ ): CancelablePromise<UpdateOptionV2ShopsShopIdAttributeOptionsOptionIdPutResponse> => {
2562
+ return __request(OpenAPI, {
2563
+ method: 'PUT',
2564
+ url: '/shops/{shop_id}/attribute-options/{option_id}',
2565
+ path: {
2566
+ shop_id: data.shopId,
2567
+ option_id: data.optionId,
2568
+ },
2569
+ body: data.requestBody,
2570
+ mediaType: 'application/json',
2571
+ errors: {
2572
+ 422: 'Validation Error',
2573
+ },
2574
+ });
2575
+ };
2576
+
2577
+ /**
2578
+ * Delete attribute option
2579
+ * Remove an attribute option, ensuring it belongs to the shop.
2580
+ * @param data The data for the request.
2581
+ * @param data.shopId
2582
+ * @param data.optionId
2583
+ * @returns void Successful Response
2584
+ * @throws ApiError
2585
+ */
2586
+ export const deleteOptionV2ShopsShopIdAttributeOptionsOptionIdDelete = (
2587
+ data: DeleteOptionV2ShopsShopIdAttributeOptionsOptionIdDeleteData,
2588
+ ): CancelablePromise<DeleteOptionV2ShopsShopIdAttributeOptionsOptionIdDeleteResponse> => {
2589
+ return __request(OpenAPI, {
2590
+ method: 'DELETE',
2591
+ url: '/shops/{shop_id}/attribute-options/{option_id}',
2592
+ path: {
2593
+ shop_id: data.shopId,
2594
+ option_id: data.optionId,
2595
+ },
2596
+ errors: {
2597
+ 422: 'Validation Error',
2598
+ },
2599
+ });
2600
+ };
2601
+
2602
+ /**
2603
+ * @deprecated
2604
+ * List attribute options
2605
+ * Retrieve a paginated list of options (e.g., 'Small', 'Medium', 'Large') for a specific attribute within a shop.
2606
+ * @param data The data for the request.
2607
+ * @param data.shopId
2608
+ * @param data.attributeId
2609
+ * @param data.skip
2610
+ * @param data.limit
2611
+ * @param data.filter This filter can accept search query's like `key:value` and will split on the `:`. If it detects more than one `:`, or does not find a `:` it will search for the string in all columns.
2612
+ * @param data.sort The sort will accept parameters like `col:ASC` or `col:DESC` and will split on the `:`. If it does not find a `:` it will sort ascending on that column.
2613
+ * @returns AttributeOptionSchema Successful Response
2614
+ * @throws ApiError
2615
+ */
2616
+ export const listOptionsShopsShopIdAttributesAttributeIdOptionsGet = (
2617
+ data: ListOptionsShopsShopIdAttributesAttributeIdOptionsGetData,
2618
+ ): CancelablePromise<ListOptionsShopsShopIdAttributesAttributeIdOptionsGetResponse> => {
2619
+ return __request(OpenAPI, {
2620
+ method: 'GET',
2621
+ url: '/shops/{shop_id}/attributes/{attribute_id}/options/',
2622
+ path: {
2623
+ shop_id: data.shopId,
2624
+ attribute_id: data.attributeId,
2625
+ },
2626
+ query: {
2627
+ skip: data.skip,
2628
+ limit: data.limit,
2629
+ filter: data.filter,
2630
+ sort: data.sort,
2631
+ },
2632
+ errors: {
2633
+ 422: 'Validation Error',
2634
+ },
2635
+ });
2636
+ };
2637
+
2638
+ /**
2639
+ * @deprecated
2640
+ * Create attribute option
2641
+ * Create a new option for a specific attribute. The value_key should be a language-agnostic identifier (e.g., 'XL').
2642
+ * @param data The data for the request.
2643
+ * @param data.shopId
2644
+ * @param data.attributeId
2645
+ * @param data.requestBody
2646
+ * @returns AttributeOptionSchema Successful Response
2647
+ * @throws ApiError
2648
+ */
2649
+ export const createOptionShopsShopIdAttributesAttributeIdOptionsPost = (
2650
+ data: CreateOptionShopsShopIdAttributesAttributeIdOptionsPostData,
2651
+ ): CancelablePromise<CreateOptionShopsShopIdAttributesAttributeIdOptionsPostResponse> => {
2652
+ return __request(OpenAPI, {
2653
+ method: 'POST',
2654
+ url: '/shops/{shop_id}/attributes/{attribute_id}/options/',
2655
+ path: {
2656
+ shop_id: data.shopId,
2657
+ attribute_id: data.attributeId,
2658
+ },
2659
+ body: data.requestBody,
2660
+ mediaType: 'application/json',
2661
+ errors: {
2662
+ 422: 'Validation Error',
2663
+ },
2664
+ });
2665
+ };
2666
+
2667
+ /**
2668
+ * @deprecated
2669
+ * Get attribute option
2670
+ * Retrieve the details of a specific attribute option by its unique ID.
2671
+ * @param data The data for the request.
2672
+ * @param data.shopId
2673
+ * @param data.attributeId
2674
+ * @param data.optionId
2675
+ * @returns AttributeOptionSchema Successful Response
2676
+ * @throws ApiError
2677
+ */
2678
+ export const getOptionShopsShopIdAttributesAttributeIdOptionsOptionIdGet = (
2679
+ data: GetOptionShopsShopIdAttributesAttributeIdOptionsOptionIdGetData,
2680
+ ): CancelablePromise<GetOptionShopsShopIdAttributesAttributeIdOptionsOptionIdGetResponse> => {
2681
+ return __request(OpenAPI, {
2682
+ method: 'GET',
2683
+ url: '/shops/{shop_id}/attributes/{attribute_id}/options/{option_id}',
2684
+ path: {
2685
+ shop_id: data.shopId,
2686
+ attribute_id: data.attributeId,
2687
+ option_id: data.optionId,
2688
+ },
2689
+ errors: {
2690
+ 422: 'Validation Error',
2691
+ },
2692
+ });
2693
+ };
2694
+
2695
+ /**
2696
+ * @deprecated
2697
+ * Delete attribute option
2698
+ * Remove an attribute option. This will fail if the option is currently used by any product values.
2699
+ * @param data The data for the request.
2700
+ * @param data.shopId
2701
+ * @param data.attributeId
2702
+ * @param data.optionId
2703
+ * @returns void Successful Response
2704
+ * @throws ApiError
2705
+ */
2706
+ export const deleteOptionShopsShopIdAttributesAttributeIdOptionsOptionIdDelete =
2707
+ (
2708
+ data: DeleteOptionShopsShopIdAttributesAttributeIdOptionsOptionIdDeleteData,
2709
+ ): CancelablePromise<DeleteOptionShopsShopIdAttributesAttributeIdOptionsOptionIdDeleteResponse> => {
2710
+ return __request(OpenAPI, {
2711
+ method: 'DELETE',
2712
+ url: '/shops/{shop_id}/attributes/{attribute_id}/options/{option_id}',
2713
+ path: {
2714
+ shop_id: data.shopId,
2715
+ attribute_id: data.attributeId,
2716
+ option_id: data.optionId,
2717
+ },
2718
+ errors: {
2719
+ 422: 'Validation Error',
2720
+ },
2721
+ });
2722
+ };
2723
+
2724
+ /**
2725
+ * List product attribute values
2726
+ * List product attribute values for a shop (scoped by product.shop_id).
2727
+ * @param data The data for the request.
2728
+ * @param data.shopId
2729
+ * @param data.skip
2730
+ * @param data.limit
2731
+ * @param data.filter This filter can accept search query's like `key:value` and will split on the `:`. If it detects more than one `:`, or does not find a `:` it will search for the string in all columns.
2732
+ * @param data.sort The sort will accept parameters like `col:ASC` or `col:DESC` and will split on the `:`. If it does not find a `:` it will sort ascending on that column.
2733
+ * @returns ProductAttributeValueSchema Successful Response
2734
+ * @throws ApiError
2735
+ */
2736
+ export const productAttributeValuesList = (
2737
+ data: ProductAttributeValuesListData,
2738
+ ): CancelablePromise<ProductAttributeValuesListResponse> => {
2739
+ return __request(OpenAPI, {
2740
+ method: 'GET',
2741
+ url: '/shops/{shop_id}/product-attribute-values/',
2742
+ path: {
2743
+ shop_id: data.shopId,
2744
+ },
2745
+ query: {
2746
+ skip: data.skip,
2747
+ limit: data.limit,
2748
+ filter: data.filter,
2749
+ sort: data.sort,
2750
+ },
2751
+ errors: {
2752
+ 422: 'Validation Error',
2753
+ },
2754
+ });
2755
+ };
2756
+
2757
+ /**
2758
+ * @deprecated
2759
+ * Create product attribute values (deprecated)
2760
+ * DEPRECATED: Create a new product attribute value for a product within a shop.
2761
+ *
2762
+ * Notes:
2763
+ * - This endpoint is deprecated; prefer using the selected options endpoint when possible.
2764
+ *
2765
+ * Validations:
2766
+ * - Product exists and belongs to the shop
2767
+ * @param data The data for the request.
2768
+ * @param data.shopId
2769
+ * @param data.requestBody
2770
+ * @returns unknown Successful Response
2771
+ * @throws ApiError
2772
+ */
2773
+ export const productAttributeValuesCreateDeprecated = (
2774
+ data: ProductAttributeValuesCreateDeprecatedData,
2775
+ ): CancelablePromise<ProductAttributeValuesCreateDeprecatedResponse> => {
2776
+ return __request(OpenAPI, {
2777
+ method: 'POST',
2778
+ url: '/shops/{shop_id}/product-attribute-values/',
2779
+ path: {
2780
+ shop_id: data.shopId,
2781
+ },
2782
+ body: data.requestBody,
2783
+ mediaType: 'application/json',
2784
+ errors: {
2785
+ 422: 'Validation Error',
2786
+ },
2787
+ });
2788
+ };
2789
+
2790
+ /**
2791
+ * Get product attribute value
2792
+ * Retrieve a single product attribute value by id scoped to the given shop.
2793
+ * @param data The data for the request.
2794
+ * @param data.shopId
2795
+ * @param data.id
2796
+ * @returns ProductAttributeValueSchema Successful Response
2797
+ * @throws ApiError
2798
+ */
2799
+ export const productAttributeValuesGet = (
2800
+ data: ProductAttributeValuesGetData,
2801
+ ): CancelablePromise<ProductAttributeValuesGetResponse> => {
2802
+ return __request(OpenAPI, {
2803
+ method: 'GET',
2804
+ url: '/shops/{shop_id}/product-attribute-values/{id}',
2805
+ path: {
2806
+ shop_id: data.shopId,
2807
+ id: data.id,
2808
+ },
2809
+ errors: {
2810
+ 422: 'Validation Error',
2811
+ },
2812
+ });
2813
+ };
2814
+
2815
+ /**
2816
+ * Delete product attribute value
2817
+ * Delete a product attribute value if it belongs to the given shop.
2818
+ * @param data The data for the request.
2819
+ * @param data.shopId
2820
+ * @param data.id
2821
+ * @returns void Successful Response
2822
+ * @throws ApiError
2823
+ */
2824
+ export const productAttributeValuesDelete = (
2825
+ data: ProductAttributeValuesDeleteData,
2826
+ ): CancelablePromise<ProductAttributeValuesDeleteResponse> => {
2827
+ return __request(OpenAPI, {
2828
+ method: 'DELETE',
2829
+ url: '/shops/{shop_id}/product-attribute-values/{id}',
2830
+ path: {
2831
+ shop_id: data.shopId,
2832
+ id: data.id,
2833
+ },
2834
+ errors: {
2835
+ 422: 'Validation Error',
2836
+ },
2837
+ });
2838
+ };
2839
+
2840
+ /**
2841
+ * Create product attribute values for product
2842
+ * Create new product attribute value(s) for a specific product using product_id in the URL.
2843
+ *
2844
+ * This deprecates the old POST / endpoint that required product_id in the body.
2845
+ *
2846
+ * Notes:
2847
+ * - attribute_id is omitted; it will be inferred from option_id, as the option is already tied to an attribute_id.
2848
+ *
2849
+ * - This endpoint first validates that all option_ids belong to attributes that belong to the shop.
2850
+ * - And that these options actually exist.
2851
+ * - If everything is passed, it will create the product attribute values.
2852
+ * - Duplicates are ignored, and the endpoint returns 201 Created for each successful creation. That means no 409 is raised when a duplicate is encountered; it just won't be created.
2853
+ * @param data The data for the request.
2854
+ * @param data.shopId
2855
+ * @param data.productId
2856
+ * @param data.requestBody
2857
+ * @returns unknown Successful Response
2858
+ * @throws ApiError
2859
+ */
2860
+ export const productAttributeValuesCreateForProduct = (
2861
+ data: ProductAttributeValuesCreateForProductData,
2862
+ ): CancelablePromise<ProductAttributeValuesCreateForProductResponse> => {
2863
+ return __request(OpenAPI, {
2864
+ method: 'POST',
2865
+ url: '/shops/{shop_id}/product-attribute-values/{product_id}',
2866
+ path: {
2867
+ shop_id: data.shopId,
2868
+ product_id: data.productId,
2869
+ },
2870
+ body: data.requestBody,
2871
+ mediaType: 'application/json',
2872
+ errors: {
2873
+ 422: 'Validation Error',
2874
+ },
2875
+ });
2876
+ };
2877
+
2878
+ /**
2879
+ * Replace product attribute values for product
2880
+ * New version of selected options endpoint addressed by product_id in the path.
2881
+ *
2882
+ * This endpoint now accepts option_ids that may belong to different attributes.
2883
+ * Requirements/validations:
2884
+ * - product_id (path) must belong to the shop
2885
+ * - option_ids must be a non-empty list
2886
+ * - all option_ids must exist
2887
+ * - every inferred attribute (from the options) must belong to the shop
2888
+ * - for each inferred attribute, set selected options for (product_id, attribute) to exactly
2889
+ * the provided option_ids that belong to that attribute
2890
+ * @param data The data for the request.
2891
+ * @param data.shopId
2892
+ * @param data.productId
2893
+ * @param data.requestBody
2894
+ * @returns void Successful Response
2895
+ * @throws ApiError
2896
+ */
2897
+ export const productAttributeValuesReplaceForProduct = (
2898
+ data: ProductAttributeValuesReplaceForProductData,
2899
+ ): CancelablePromise<ProductAttributeValuesReplaceForProductResponse> => {
2900
+ return __request(OpenAPI, {
2901
+ method: 'PUT',
2902
+ url: '/shops/{shop_id}/product-attribute-values/{product_id}',
2903
+ path: {
2904
+ shop_id: data.shopId,
2905
+ product_id: data.productId,
2906
+ },
2907
+ body: data.requestBody,
2908
+ mediaType: 'application/json',
2909
+ errors: {
2910
+ 422: 'Validation Error',
2911
+ },
2912
+ });
2913
+ };
2914
+
2915
+ /**
2916
+ * Get Multi
2917
+ * @param data The data for the request.
2918
+ * @param data.skip
2919
+ * @param data.limit
2920
+ * @param data.filter This filter can accept search query's like `key:value` and will split on the `:`. If it detects more than one `:`, or does not find a `:` it will search for the string in all columns.
2921
+ * @param data.sort The sort will accept parameters like `col:ASC` or `col:DESC` and will split on the `:`. If it does not find a `:` it will sort ascending on that column.
2922
+ * @returns AccountSchema Successful Response
2923
+ * @throws ApiError
2924
+ */
2925
+ export const getMultiShopsShopIdAccountsGet = (
2926
+ data: GetMultiShopsShopIdAccountsGetData = {},
2927
+ ): CancelablePromise<GetMultiShopsShopIdAccountsGetResponse> => {
2928
+ return __request(OpenAPI, {
2929
+ method: 'GET',
2930
+ url: '/shops/{shop_id}/accounts/',
2931
+ query: {
2932
+ skip: data.skip,
2933
+ limit: data.limit,
2934
+ filter: data.filter,
2935
+ sort: data.sort,
2936
+ },
2937
+ errors: {
2938
+ 422: 'Validation Error',
2939
+ },
2940
+ });
2941
+ };
2942
+
2943
+ /**
2944
+ * Create
2945
+ * @param data The data for the request.
2946
+ * @param data.requestBody
2947
+ * @returns unknown Successful Response
2948
+ * @throws ApiError
2949
+ */
2950
+ export const createShopsShopIdAccountsPost = (
2951
+ data: CreateShopsShopIdAccountsPostData,
2952
+ ): CancelablePromise<CreateShopsShopIdAccountsPostResponse> => {
2953
+ return __request(OpenAPI, {
2954
+ method: 'POST',
2955
+ url: '/shops/{shop_id}/accounts/',
2956
+ body: data.requestBody,
2957
+ mediaType: 'application/json',
2958
+ errors: {
2959
+ 422: 'Validation Error',
2960
+ },
2961
+ });
2962
+ };
2963
+
2964
+ /**
2965
+ * Get By Id
2966
+ * @param data The data for the request.
2967
+ * @param data.id
2968
+ * @returns AccountSchema Successful Response
2969
+ * @throws ApiError
2970
+ */
2971
+ export const getByIdShopsShopIdAccountsIdGet = (
2972
+ data: GetByIdShopsShopIdAccountsIdGetData,
2973
+ ): CancelablePromise<GetByIdShopsShopIdAccountsIdGetResponse> => {
2974
+ return __request(OpenAPI, {
2975
+ method: 'GET',
2976
+ url: '/shops/{shop_id}/accounts/{id}',
2977
+ path: {
2978
+ id: data.id,
2979
+ },
2980
+ errors: {
2981
+ 422: 'Validation Error',
2982
+ },
2983
+ });
2984
+ };
2985
+
2986
+ /**
2987
+ * Update
2988
+ * @param data The data for the request.
2989
+ * @param data.accountId
2990
+ * @param data.requestBody
2991
+ * @returns unknown Successful Response
2992
+ * @throws ApiError
2993
+ */
2994
+ export const updateShopsShopIdAccountsAccountIdPut = (
2995
+ data: UpdateShopsShopIdAccountsAccountIdPutData,
2996
+ ): CancelablePromise<UpdateShopsShopIdAccountsAccountIdPutResponse> => {
2997
+ return __request(OpenAPI, {
2998
+ method: 'PUT',
2999
+ url: '/shops/{shop_id}/accounts/{account_id}',
3000
+ path: {
3001
+ account_id: data.accountId,
3002
+ },
3003
+ body: data.requestBody,
3004
+ mediaType: 'application/json',
3005
+ errors: {
3006
+ 422: 'Validation Error',
3007
+ },
3008
+ });
3009
+ };
3010
+
3011
+ /**
3012
+ * Delete
3013
+ * @param data The data for the request.
3014
+ * @param data.accountId
3015
+ * @returns void Successful Response
3016
+ * @throws ApiError
3017
+ */
3018
+ export const deleteShopsShopIdAccountsAccountIdDelete = (
3019
+ data: DeleteShopsShopIdAccountsAccountIdDeleteData,
3020
+ ): CancelablePromise<DeleteShopsShopIdAccountsAccountIdDeleteResponse> => {
3021
+ return __request(OpenAPI, {
3022
+ method: 'DELETE',
3023
+ url: '/shops/{shop_id}/accounts/{account_id}',
3024
+ path: {
3025
+ account_id: data.accountId,
3026
+ },
3027
+ errors: {
3028
+ 422: 'Validation Error',
3029
+ },
3030
+ });
3031
+ };
3032
+
3033
+ /**
3034
+ * Create Payment Intent
3035
+ * @param data The data for the request.
3036
+ * @param data.shopId
3037
+ * @param data.price
3038
+ * @param data.accountId
3039
+ * @returns unknown Successful Response
3040
+ * @throws ApiError
3041
+ */
3042
+ export const createPaymentIntentShopsShopIdStripePost = (
3043
+ data: CreatePaymentIntentShopsShopIdStripePostData,
3044
+ ): CancelablePromise<CreatePaymentIntentShopsShopIdStripePostResponse> => {
3045
+ return __request(OpenAPI, {
3046
+ method: 'POST',
3047
+ url: '/shops/{shop_id}/stripe/',
3048
+ path: {
3049
+ shop_id: data.shopId,
3050
+ },
3051
+ query: {
3052
+ price: data.price,
3053
+ account_id: data.accountId,
3054
+ },
3055
+ errors: {
3056
+ 422: 'Validation Error',
3057
+ },
3058
+ });
3059
+ };
3060
+
3061
+ /**
3062
+ * Create Subscription Intent
3063
+ * @param data The data for the request.
3064
+ * @param data.shopId
3065
+ * @param data.accountId
3066
+ * @param data.requestBody
3067
+ * @param data.yearly
3068
+ * @returns unknown Successful Response
3069
+ * @throws ApiError
3070
+ */
3071
+ export const createSubscriptionIntentShopsShopIdStripeSubscriptionPost = (
3072
+ data: CreateSubscriptionIntentShopsShopIdStripeSubscriptionPostData,
3073
+ ): CancelablePromise<CreateSubscriptionIntentShopsShopIdStripeSubscriptionPostResponse> => {
3074
+ return __request(OpenAPI, {
3075
+ method: 'POST',
3076
+ url: '/shops/{shop_id}/stripe/subscription',
3077
+ path: {
3078
+ shop_id: data.shopId,
3079
+ },
3080
+ query: {
3081
+ account_id: data.accountId,
3082
+ yearly: data.yearly,
3083
+ },
3084
+ body: data.requestBody,
3085
+ mediaType: 'application/json',
3086
+ errors: {
3087
+ 422: 'Validation Error',
3088
+ },
3089
+ });
3090
+ };
3091
+
3092
+ /**
3093
+ * Cancel Subscription
3094
+ * @param data The data for the request.
3095
+ * @param data.shopId
3096
+ * @param data.subscriptionId
3097
+ * @returns void Successful Response
3098
+ * @throws ApiError
3099
+ */
3100
+ export const cancelSubscriptionShopsShopIdStripeSubscriptionSubscriptionIdDelete =
3101
+ (
3102
+ data: CancelSubscriptionShopsShopIdStripeSubscriptionSubscriptionIdDeleteData,
3103
+ ): CancelablePromise<CancelSubscriptionShopsShopIdStripeSubscriptionSubscriptionIdDeleteResponse> => {
3104
+ return __request(OpenAPI, {
3105
+ method: 'DELETE',
3106
+ url: '/shops/{shop_id}/stripe/subscription/{subscription_id}',
3107
+ path: {
3108
+ shop_id: data.shopId,
3109
+ subscription_id: data.subscriptionId,
3110
+ },
3111
+ errors: {
3112
+ 422: 'Validation Error',
3113
+ },
3114
+ });
3115
+ };
3116
+
3117
+ /**
3118
+ * Create
3119
+ * @param data The data for the request.
3120
+ * @param data.requestBody
3121
+ * @returns unknown Successful Response
3122
+ * @throws ApiError
3123
+ */
3124
+ export const createEarlyAccessPost = (
3125
+ data: CreateEarlyAccessPostData,
3126
+ ): CancelablePromise<CreateEarlyAccessPostResponse> => {
3127
+ return __request(OpenAPI, {
3128
+ method: 'POST',
3129
+ url: '/early-access/',
3130
+ body: data.requestBody,
3131
+ mediaType: 'application/json',
3132
+ errors: {
3133
+ 422: 'Validation Error',
3134
+ },
3135
+ });
3136
+ };
3137
+
3138
+ /**
3139
+ * Form
3140
+ * @param data The data for the request.
3141
+ * @param data.shopId
3142
+ * @param data.productId
3143
+ * @param data.requestBody
3144
+ * @returns unknown Successful Response
3145
+ * @throws ApiError
3146
+ */
3147
+ export const formInfoRequestFormPost = (
3148
+ data: FormInfoRequestFormPostData,
3149
+ ): CancelablePromise<FormInfoRequestFormPostResponse> => {
3150
+ return __request(OpenAPI, {
3151
+ method: 'POST',
3152
+ url: '/info-request/form',
3153
+ query: {
3154
+ shop_id: data.shopId,
3155
+ product_id: data.productId,
3156
+ },
3157
+ body: data.requestBody,
3158
+ mediaType: 'application/json',
3159
+ errors: {
3160
+ 422: 'Validation Error',
3161
+ },
3162
+ });
3163
+ };
3164
+
3165
+ /**
3166
+ * Trigger Error
3167
+ * @param data The data for the request.
3168
+ * @param data.type
3169
+ * @returns unknown Successful Response
3170
+ * @throws ApiError
3171
+ */
3172
+ export const triggerErrorSentryGet = (
3173
+ data: TriggerErrorSentryGetData,
3174
+ ): CancelablePromise<TriggerErrorSentryGetResponse> => {
3175
+ return __request(OpenAPI, {
3176
+ method: 'GET',
3177
+ url: '/sentry/',
3178
+ query: {
3179
+ type: data.type,
3180
+ },
3181
+ errors: {
3182
+ 422: 'Validation Error',
3183
+ },
3184
+ });
3185
+ };
3186
+
3187
+ /**
3188
+ * Form
3189
+ * @param data The data for the request.
3190
+ * @param data.requestBody
3191
+ * @returns unknown Successful Response
3192
+ * @throws ApiError
3193
+ */
3194
+ export const formTestFormsPost = (
3195
+ data: FormTestFormsPostData = {},
3196
+ ): CancelablePromise<FormTestFormsPostResponse> => {
3197
+ return __request(OpenAPI, {
3198
+ method: 'POST',
3199
+ url: '/test-forms/',
3200
+ body: data.requestBody,
3201
+ mediaType: 'application/json',
3202
+ errors: {
3203
+ 422: 'Validation Error',
3204
+ },
3205
+ });
3206
+ };
3207
+
3208
+ /**
3209
+ * Get Multi
3210
+ * @param data The data for the request.
3211
+ * @param data.skip
3212
+ * @param data.limit
3213
+ * @param data.filter This filter can accept search query's like `key:value` and will split on the `:`. If it detects more than one `:`, or does not find a `:` it will search for the string in all columns.
3214
+ * @param data.sort The sort will accept parameters like `col:ASC` or `col:DESC` and will split on the `:`. If it does not find a `:` it will sort ascending on that column.
3215
+ * @returns FaqSchema Successful Response
3216
+ * @throws ApiError
3217
+ */
3218
+ export const getMultiFaqGet = (
3219
+ data: GetMultiFaqGetData = {},
3220
+ ): CancelablePromise<GetMultiFaqGetResponse> => {
3221
+ return __request(OpenAPI, {
3222
+ method: 'GET',
3223
+ url: '/faq/',
3224
+ query: {
3225
+ skip: data.skip,
3226
+ limit: data.limit,
3227
+ filter: data.filter,
3228
+ sort: data.sort,
3229
+ },
3230
+ errors: {
3231
+ 422: 'Validation Error',
3232
+ },
3233
+ });
3234
+ };
3235
+
3236
+ /**
3237
+ * Create
3238
+ * @param data The data for the request.
3239
+ * @param data.requestBody
3240
+ * @returns FaqCreated Successful Response
3241
+ * @throws ApiError
3242
+ */
3243
+ export const createFaqPost = (
3244
+ data: CreateFaqPostData,
3245
+ ): CancelablePromise<CreateFaqPostResponse> => {
3246
+ return __request(OpenAPI, {
3247
+ method: 'POST',
3248
+ url: '/faq/',
3249
+ body: data.requestBody,
3250
+ mediaType: 'application/json',
3251
+ errors: {
3252
+ 422: 'Validation Error',
3253
+ },
3254
+ });
3255
+ };
3256
+
3257
+ /**
3258
+ * Get By Id
3259
+ * @param data The data for the request.
3260
+ * @param data.id
3261
+ * @returns FaqSchema Successful Response
3262
+ * @throws ApiError
3263
+ */
3264
+ export const getByIdFaqIdGet = (
3265
+ data: GetByIdFaqIdGetData,
3266
+ ): CancelablePromise<GetByIdFaqIdGetResponse> => {
3267
+ return __request(OpenAPI, {
3268
+ method: 'GET',
3269
+ url: '/faq/{id}',
3270
+ path: {
3271
+ id: data.id,
3272
+ },
3273
+ errors: {
3274
+ 422: 'Validation Error',
3275
+ },
3276
+ });
3277
+ };
3278
+
3279
+ /**
3280
+ * Update
3281
+ * @param data The data for the request.
3282
+ * @param data.faqId
3283
+ * @param data.requestBody
3284
+ * @returns FaqUpdated Successful Response
3285
+ * @throws ApiError
3286
+ */
3287
+ export const updateFaqFaqIdPut = (
3288
+ data: UpdateFaqFaqIdPutData,
3289
+ ): CancelablePromise<UpdateFaqFaqIdPutResponse> => {
3290
+ return __request(OpenAPI, {
3291
+ method: 'PUT',
3292
+ url: '/faq/{faq_id}',
3293
+ path: {
3294
+ faq_id: data.faqId,
3295
+ },
3296
+ body: data.requestBody,
3297
+ mediaType: 'application/json',
3298
+ errors: {
3299
+ 422: 'Validation Error',
3300
+ },
3301
+ });
3302
+ };
3303
+
3304
+ /**
3305
+ * Delete
3306
+ * @param data The data for the request.
3307
+ * @param data.faqId
3308
+ * @returns void Successful Response
3309
+ * @throws ApiError
3310
+ */
3311
+ export const deleteFaqFaqIdDelete = (
3312
+ data: DeleteFaqFaqIdDeleteData,
3313
+ ): CancelablePromise<DeleteFaqFaqIdDeleteResponse> => {
3314
+ return __request(OpenAPI, {
3315
+ method: 'DELETE',
3316
+ url: '/faq/{faq_id}',
3317
+ path: {
3318
+ faq_id: data.faqId,
3319
+ },
3320
+ errors: {
3321
+ 422: 'Validation Error',
3322
+ },
3323
+ });
3324
+ };