@infisale-client/api-client 1.1.4

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,2525 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * etc-backend
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import globalAxios from 'axios';
15
+ import { DUMMY_BASE_URL, assertParamExists, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from "./common.mjs";
16
+ import { BASE_PATH, BaseAPI, operationServerMap } from "./base.mjs";
17
+ /**
18
+ *
19
+ * @export
20
+ * @enum {string}
21
+ */
22
+ export const CompanyStatusEnum = {
23
+ ACTIVE: 'active',
24
+ INACTIVE: 'inactive',
25
+ DELETED: 'deleted'
26
+ };
27
+ /**
28
+ *
29
+ * @export
30
+ * @enum {string}
31
+ */
32
+ export const CompanyTypeEnum = {
33
+ B2_C: 'B2C',
34
+ B2_B: 'B2B'
35
+ };
36
+ /**
37
+ *
38
+ * @export
39
+ * @enum {string}
40
+ */
41
+ export const CompanyUserStatusEnum = {
42
+ ACTIVE: 'active',
43
+ INACTIVE: 'inactive',
44
+ UNEMPLOYED: 'unemployed',
45
+ DELETED: 'deleted'
46
+ };
47
+ /**
48
+ *
49
+ * @export
50
+ * @enum {string}
51
+ */
52
+ export const ComponentContentTypeEnum = {
53
+ HEADING: 'heading',
54
+ TEXT: 'text',
55
+ CAPTION: 'caption',
56
+ BUTTONS: 'buttons',
57
+ CARD: 'card',
58
+ PRICE: 'price',
59
+ VARIANT_PICKER: 'variant-picker',
60
+ QUANTITY_SELECTOR: 'quantity-selector',
61
+ BUY_BUTTON: 'buy-button',
62
+ SHARE: 'share',
63
+ SKU: 'sku',
64
+ PRODUCT_RATING: 'product-rating',
65
+ INVENTORY_STATUS: 'inventory-status',
66
+ CAROUSEL_ITEM: 'carousel-item',
67
+ GRID_ITEM: 'grid-item',
68
+ ANNOUNCEMENT_ITEM: 'announcement-item'
69
+ };
70
+ /**
71
+ *
72
+ * @export
73
+ * @enum {string}
74
+ */
75
+ export const ComponentProductListTypeEnum = {
76
+ GRID: 'grid',
77
+ CAROUSEL: 'carousel'
78
+ };
79
+ /**
80
+ *
81
+ * @export
82
+ * @enum {string}
83
+ */
84
+ export const ComponentProductOrderEnum = {
85
+ NEWEST: 'newest',
86
+ BEST_SELLING: 'best_selling'
87
+ };
88
+ /**
89
+ *
90
+ * @export
91
+ * @enum {string}
92
+ */
93
+ export const ComponentProductTypeEnum = {
94
+ CATEGORY: 'category',
95
+ COLLECTION: 'collection',
96
+ BRAND: 'brand'
97
+ };
98
+ /**
99
+ *
100
+ * @export
101
+ * @enum {string}
102
+ */
103
+ export const ComponentTypeEnum = {
104
+ CAROUSEL: 'carousel',
105
+ BANNER: 'banner',
106
+ GRID: 'grid',
107
+ PRODUCT_LIST: 'product-list',
108
+ CONTENT: 'content',
109
+ PRODUCT_DETAIL: 'product-detail',
110
+ SINGLE_PRODUCT: 'single-product',
111
+ COLLECTION_LIST: 'collection-list',
112
+ CATEGORY_LIST: 'category-list',
113
+ BRAND_LIST: 'brand-list',
114
+ RICH_TEXT: 'rich-text',
115
+ BANNER_WITH_TEXT: 'banner-with-text',
116
+ ACCORDION: 'accordion',
117
+ VIDEO: 'video',
118
+ BLOG_LIST: 'blog-list',
119
+ HEADER: 'header',
120
+ ANNOUNCEMENT: 'announcement',
121
+ FOOTER: 'footer',
122
+ EMAIL_SIGNUP: 'email-signup',
123
+ CONTACT_FORM: 'contact-form'
124
+ };
125
+ /**
126
+ *
127
+ * @export
128
+ * @enum {string}
129
+ */
130
+ export const ContentStatusEnum = {
131
+ ACTIVE: 'active',
132
+ INACTIVE: 'inactive'
133
+ };
134
+ /**
135
+ *
136
+ * @export
137
+ * @enum {string}
138
+ */
139
+ export const CountryEnum = {
140
+ AF: 'AF',
141
+ AX: 'AX',
142
+ AL: 'AL',
143
+ DZ: 'DZ',
144
+ AS: 'AS',
145
+ AD: 'AD',
146
+ AO: 'AO',
147
+ AI: 'AI',
148
+ AQ: 'AQ',
149
+ AG: 'AG',
150
+ AR: 'AR',
151
+ AM: 'AM',
152
+ AW: 'AW',
153
+ AU: 'AU',
154
+ AT: 'AT',
155
+ AZ: 'AZ',
156
+ BS: 'BS',
157
+ BH: 'BH',
158
+ BD: 'BD',
159
+ BB: 'BB',
160
+ BY: 'BY',
161
+ BE: 'BE',
162
+ BZ: 'BZ',
163
+ BJ: 'BJ',
164
+ BM: 'BM',
165
+ BT: 'BT',
166
+ BO: 'BO',
167
+ BA: 'BA',
168
+ BW: 'BW',
169
+ BV: 'BV',
170
+ BR: 'BR',
171
+ IO: 'IO',
172
+ BN: 'BN',
173
+ BG: 'BG',
174
+ BF: 'BF',
175
+ BI: 'BI',
176
+ KH: 'KH',
177
+ CM: 'CM',
178
+ CA: 'CA',
179
+ CV: 'CV',
180
+ KY: 'KY',
181
+ CF: 'CF',
182
+ TD: 'TD',
183
+ CL: 'CL',
184
+ CN: 'CN',
185
+ CX: 'CX',
186
+ CC: 'CC',
187
+ CO: 'CO',
188
+ KM: 'KM',
189
+ CG: 'CG',
190
+ CD: 'CD',
191
+ CK: 'CK',
192
+ CR: 'CR',
193
+ CI: 'CI',
194
+ HR: 'HR',
195
+ CU: 'CU',
196
+ CY: 'CY',
197
+ CZ: 'CZ',
198
+ DK: 'DK',
199
+ DJ: 'DJ',
200
+ DM: 'DM',
201
+ DO: 'DO',
202
+ EC: 'EC',
203
+ EG: 'EG',
204
+ SV: 'SV',
205
+ GQ: 'GQ',
206
+ ER: 'ER',
207
+ EE: 'EE',
208
+ ET: 'ET',
209
+ FK: 'FK',
210
+ FO: 'FO',
211
+ FJ: 'FJ',
212
+ FI: 'FI',
213
+ FR: 'FR',
214
+ GF: 'GF',
215
+ PF: 'PF',
216
+ TF: 'TF',
217
+ GA: 'GA',
218
+ GM: 'GM',
219
+ GE: 'GE',
220
+ DE: 'DE',
221
+ GH: 'GH',
222
+ GI: 'GI',
223
+ GR: 'GR',
224
+ GL: 'GL',
225
+ GD: 'GD',
226
+ GP: 'GP',
227
+ GU: 'GU',
228
+ GT: 'GT',
229
+ GG: 'GG',
230
+ GN: 'GN',
231
+ GW: 'GW',
232
+ GY: 'GY',
233
+ HT: 'HT',
234
+ HM: 'HM',
235
+ VA: 'VA',
236
+ HN: 'HN',
237
+ HK: 'HK',
238
+ HU: 'HU',
239
+ IS: 'IS',
240
+ IN: 'IN',
241
+ ID: 'ID',
242
+ IR: 'IR',
243
+ IQ: 'IQ',
244
+ IE: 'IE',
245
+ IM: 'IM',
246
+ IL: 'IL',
247
+ IT: 'IT',
248
+ JM: 'JM',
249
+ JP: 'JP',
250
+ JE: 'JE',
251
+ JO: 'JO',
252
+ KZ: 'KZ',
253
+ KE: 'KE',
254
+ KI: 'KI',
255
+ KR: 'KR',
256
+ KP: 'KP',
257
+ KW: 'KW',
258
+ KG: 'KG',
259
+ LA: 'LA',
260
+ LV: 'LV',
261
+ LB: 'LB',
262
+ LS: 'LS',
263
+ LR: 'LR',
264
+ LY: 'LY',
265
+ LI: 'LI',
266
+ LT: 'LT',
267
+ LU: 'LU',
268
+ MO: 'MO',
269
+ MK: 'MK',
270
+ MG: 'MG',
271
+ MW: 'MW',
272
+ MY: 'MY',
273
+ MV: 'MV',
274
+ ML: 'ML',
275
+ MT: 'MT',
276
+ MH: 'MH',
277
+ MQ: 'MQ',
278
+ MR: 'MR',
279
+ MU: 'MU',
280
+ YT: 'YT',
281
+ MX: 'MX',
282
+ FM: 'FM',
283
+ MD: 'MD',
284
+ MC: 'MC',
285
+ MN: 'MN',
286
+ ME: 'ME',
287
+ MS: 'MS',
288
+ MA: 'MA',
289
+ MZ: 'MZ',
290
+ MM: 'MM',
291
+ NA: 'NA',
292
+ NR: 'NR',
293
+ NP: 'NP',
294
+ NL: 'NL',
295
+ AN: 'AN',
296
+ NC: 'NC',
297
+ NZ: 'NZ',
298
+ NI: 'NI',
299
+ NE: 'NE',
300
+ NG: 'NG',
301
+ NU: 'NU',
302
+ NF: 'NF',
303
+ MP: 'MP',
304
+ NO: 'NO',
305
+ OM: 'OM',
306
+ PK: 'PK',
307
+ PW: 'PW',
308
+ PS: 'PS',
309
+ PA: 'PA',
310
+ PG: 'PG',
311
+ PY: 'PY',
312
+ PE: 'PE',
313
+ PH: 'PH',
314
+ PN: 'PN',
315
+ PL: 'PL',
316
+ PT: 'PT',
317
+ PR: 'PR',
318
+ QA: 'QA',
319
+ RE: 'RE',
320
+ RO: 'RO',
321
+ RU: 'RU',
322
+ RW: 'RW',
323
+ BL: 'BL',
324
+ SH: 'SH',
325
+ KN: 'KN',
326
+ LC: 'LC',
327
+ MF: 'MF',
328
+ PM: 'PM',
329
+ VC: 'VC',
330
+ WS: 'WS',
331
+ SM: 'SM',
332
+ ST: 'ST',
333
+ SA: 'SA',
334
+ SN: 'SN',
335
+ RS: 'RS',
336
+ SC: 'SC',
337
+ SL: 'SL',
338
+ SG: 'SG',
339
+ SK: 'SK',
340
+ SI: 'SI',
341
+ SB: 'SB',
342
+ SO: 'SO',
343
+ ZA: 'ZA',
344
+ GS: 'GS',
345
+ ES: 'ES',
346
+ LK: 'LK',
347
+ SD: 'SD',
348
+ SR: 'SR',
349
+ SJ: 'SJ',
350
+ SZ: 'SZ',
351
+ SE: 'SE',
352
+ CH: 'CH',
353
+ SY: 'SY',
354
+ TW: 'TW',
355
+ TJ: 'TJ',
356
+ TZ: 'TZ',
357
+ TH: 'TH',
358
+ TL: 'TL',
359
+ TG: 'TG',
360
+ TK: 'TK',
361
+ TO: 'TO',
362
+ TT: 'TT',
363
+ TN: 'TN',
364
+ TR: 'TR',
365
+ TM: 'TM',
366
+ TC: 'TC',
367
+ TV: 'TV',
368
+ UG: 'UG',
369
+ UA: 'UA',
370
+ AE: 'AE',
371
+ GB: 'GB',
372
+ US: 'US',
373
+ UM: 'UM',
374
+ UY: 'UY',
375
+ UZ: 'UZ',
376
+ VU: 'VU',
377
+ VE: 'VE',
378
+ VN: 'VN',
379
+ VG: 'VG',
380
+ VI: 'VI',
381
+ WF: 'WF',
382
+ EH: 'EH',
383
+ YE: 'YE',
384
+ ZM: 'ZM',
385
+ ZW: 'ZW'
386
+ };
387
+ /**
388
+ *
389
+ * @export
390
+ * @enum {string}
391
+ */
392
+ export const CurrencyEnum = {
393
+ USD: 'usd',
394
+ EUR: 'eur',
395
+ TRY: 'try',
396
+ GBP: 'gbp',
397
+ JPY: 'jpy'
398
+ };
399
+ /**
400
+ *
401
+ * @export
402
+ * @enum {string}
403
+ */
404
+ export const CurrencyRateTypeEnum = {
405
+ PERCENTAGE: 'percentage',
406
+ AMOUNT: 'amount'
407
+ };
408
+ /**
409
+ *
410
+ * @export
411
+ * @enum {string}
412
+ */
413
+ export const EmailConfigDnsRecordTypeEnum = {
414
+ CNAME: 'CNAME',
415
+ TXT: 'TXT',
416
+ MX: 'MX'
417
+ };
418
+ /**
419
+ *
420
+ * @export
421
+ * @enum {string}
422
+ */
423
+ export const FileStatusEnum = {
424
+ WAITING_PROCESS: 'waiting_process',
425
+ ACTIVE: 'active'
426
+ };
427
+ /**
428
+ *
429
+ * @export
430
+ * @enum {string}
431
+ */
432
+ export const FileTypeEnum = {
433
+ IMAGE: 'image',
434
+ VIDEO: 'video',
435
+ AUDIO: 'audio',
436
+ DOCUMENT: 'document',
437
+ OTHER: 'other'
438
+ };
439
+ /**
440
+ *
441
+ * @export
442
+ * @enum {string}
443
+ */
444
+ export const GridTypeEnum = {
445
+ _1_1: '1-1',
446
+ _1_2: '1-2',
447
+ _1_3: '1-3',
448
+ _2_1: '2-1',
449
+ _2_2: '2-2',
450
+ _2_1_1: '2-1-1',
451
+ _1_2_1: '1-2-1',
452
+ _1_1_1: '1-1-1',
453
+ _1_1_2: '1-1-2'
454
+ };
455
+ /**
456
+ *
457
+ * @export
458
+ * @enum {string}
459
+ */
460
+ export const LanguageEnum = {
461
+ TR: 'tr',
462
+ EN: 'en',
463
+ DE: 'de'
464
+ };
465
+ export const NavigationUrlTargetEnum = {
466
+ BLANK: '_blank'
467
+ };
468
+ /**
469
+ *
470
+ * @export
471
+ * @enum {string}
472
+ */
473
+ export const NotificationMessageEnum = {
474
+ NUMBER_404: 404,
475
+ NUMBER_409: 409,
476
+ NUMBER_201: 201,
477
+ NUMBER_500: 500
478
+ };
479
+ /**
480
+ *
481
+ * @export
482
+ * @enum {string}
483
+ */
484
+ export const NotificationStatusEnum = {
485
+ ACTIVE: 'active',
486
+ READ: 'read',
487
+ DELETED: 'deleted'
488
+ };
489
+ /**
490
+ *
491
+ * @export
492
+ * @enum {string}
493
+ */
494
+ export const OperationStatusEnum = {
495
+ ACTIVE: 'active',
496
+ INACTIVE: 'inactive',
497
+ DELETED: 'deleted'
498
+ };
499
+ /**
500
+ *
501
+ * @export
502
+ * @enum {string}
503
+ */
504
+ export const OrderEnum = {
505
+ ASC: 'asc',
506
+ DESC: 'desc'
507
+ };
508
+ /**
509
+ *
510
+ * @export
511
+ * @enum {string}
512
+ */
513
+ export const PageTypeEnum = {
514
+ BLOG: 'blog',
515
+ PAGE: 'page',
516
+ HOME: 'home',
517
+ CART: 'cart',
518
+ CHECKOUT: 'checkout',
519
+ NOT_FOUND: 'not-found'
520
+ };
521
+ /**
522
+ *
523
+ * @export
524
+ * @enum {string}
525
+ */
526
+ export const PaginationLimitEnum = {
527
+ NUMBER_10: 10,
528
+ NUMBER_20: 20,
529
+ NUMBER_30: 30,
530
+ NUMBER_40: 40,
531
+ NUMBER_50: 50,
532
+ NUMBER_100: 100,
533
+ NUMBER_200: 200,
534
+ NUMBER_500: 500
535
+ };
536
+ /**
537
+ *
538
+ * @export
539
+ * @enum {string}
540
+ */
541
+ export const PlanCurrencyEnum = {
542
+ TRY: 'try',
543
+ EUR: 'eur',
544
+ USD: 'usd'
545
+ };
546
+ /**
547
+ *
548
+ * @export
549
+ * @enum {string}
550
+ */
551
+ export const PlanStatusEnum = {
552
+ ACTIVE: 'active',
553
+ INACTIVE: 'inactive',
554
+ DELETED: 'deleted'
555
+ };
556
+ /**
557
+ *
558
+ * @export
559
+ * @enum {string}
560
+ */
561
+ export const PlanTypeEnum = {
562
+ FREE: 'free',
563
+ STANDARD: 'standard',
564
+ PREMIUM: 'premium'
565
+ };
566
+ /**
567
+ *
568
+ * @export
569
+ * @enum {string}
570
+ */
571
+ export const TemplateTypeEnum = {
572
+ PRODUCT: 'product',
573
+ PAGE: 'page',
574
+ COLLECTION: 'collection',
575
+ HOME: 'home',
576
+ CART: 'cart',
577
+ CHECKOUT: 'checkout',
578
+ NOT_FOUND: 'not-found',
579
+ BLOG: 'blog'
580
+ };
581
+ /**
582
+ *
583
+ * @export
584
+ * @enum {string}
585
+ */
586
+ export const ThemeTypeEnum = {
587
+ FASHION: 'fashion',
588
+ FOOD: 'food',
589
+ ELECTRONICS: 'electronics',
590
+ COSMETICS: 'cosmetics',
591
+ FURNITURE: 'furniture'
592
+ };
593
+ /**
594
+ *
595
+ * @export
596
+ * @enum {string}
597
+ */
598
+ export const TimezoneEnum = {
599
+ UTC_1200: 'UTC-12:00',
600
+ UTC_1100: 'UTC-11:00',
601
+ UTC_1000: 'UTC-10:00',
602
+ UTC_0930: 'UTC-09:30',
603
+ UTC_0900: 'UTC-09:00',
604
+ UTC_0800: 'UTC-08:00',
605
+ UTC_0700: 'UTC-07:00',
606
+ UTC_0600: 'UTC-06:00',
607
+ UTC_0500: 'UTC-05:00',
608
+ UTC_0400: 'UTC-04:00',
609
+ UTC_0330: 'UTC-03:30',
610
+ UTC_0300: 'UTC-03:00',
611
+ UTC_0200: 'UTC-02:00',
612
+ UTC_0100: 'UTC-01:00',
613
+ UTC: 'UTC',
614
+ UTC0100: 'UTC+01:00',
615
+ UTC0200: 'UTC+02:00',
616
+ UTC0300: 'UTC+03:00',
617
+ UTC0330: 'UTC+03:30',
618
+ UTC0400: 'UTC+04:00',
619
+ UTC0430: 'UTC+04:30',
620
+ UTC0500: 'UTC+05:00',
621
+ UTC0530: 'UTC+05:30',
622
+ UTC0545: 'UTC+05:45',
623
+ UTC0600: 'UTC+06:00',
624
+ UTC0630: 'UTC+06:30',
625
+ UTC0700: 'UTC+07:00',
626
+ UTC0800: 'UTC+08:00',
627
+ UTC0845: 'UTC+08:45',
628
+ UTC0900: 'UTC+09:00',
629
+ UTC0930: 'UTC+09:30',
630
+ UTC1000: 'UTC+10:00',
631
+ UTC1030: 'UTC+10:30',
632
+ UTC1100: 'UTC+11:00',
633
+ UTC1200: 'UTC+12:00',
634
+ UTC1245: 'UTC+12:45',
635
+ UTC1300: 'UTC+13:00',
636
+ UTC1400: 'UTC+14:00'
637
+ };
638
+ /**
639
+ *
640
+ * @export
641
+ * @enum {string}
642
+ */
643
+ export const UserRoleEnum = {
644
+ ADMIN: 'admin',
645
+ USER: 'user',
646
+ SUPER_ADMIN: 'super_admin'
647
+ };
648
+ /**
649
+ *
650
+ * @export
651
+ * @enum {string}
652
+ */
653
+ export const UserStatusEnum = {
654
+ ACTIVE: 'active',
655
+ INACTIVE: 'inactive',
656
+ PENDING: 'pending',
657
+ DELETED: 'deleted',
658
+ BANNED: 'banned',
659
+ WAITING_FOR_APPROVAL: 'waiting_for_approval'
660
+ };
661
+ /**
662
+ * AddressApi - axios parameter creator
663
+ * @export
664
+ */
665
+ export const AddressApiAxiosParamCreator = function (configuration) {
666
+ return {
667
+ /**
668
+ *
669
+ * @param {*} [options] Override http request option.
670
+ * @throws {RequiredError}
671
+ */
672
+ getCountries: async (options = {}) => {
673
+ const localVarPath = `/api/address/countries`;
674
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
675
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
676
+ let baseOptions;
677
+ if (configuration) {
678
+ baseOptions = configuration.baseOptions;
679
+ }
680
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
681
+ const localVarHeaderParameter = {};
682
+ const localVarQueryParameter = {};
683
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
684
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
685
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
686
+ return {
687
+ url: toPathString(localVarUrlObj),
688
+ options: localVarRequestOptions,
689
+ };
690
+ },
691
+ /**
692
+ *
693
+ * @param {string} slug
694
+ * @param {*} [options] Override http request option.
695
+ * @throws {RequiredError}
696
+ */
697
+ getCountryStatesBySlug: async (slug, options = {}) => {
698
+ // verify required parameter 'slug' is not null or undefined
699
+ assertParamExists('getCountryStatesBySlug', 'slug', slug);
700
+ const localVarPath = `/api/address/countries/{slug}`
701
+ .replace(`{${"slug"}}`, encodeURIComponent(String(slug)));
702
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
703
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
704
+ let baseOptions;
705
+ if (configuration) {
706
+ baseOptions = configuration.baseOptions;
707
+ }
708
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
709
+ const localVarHeaderParameter = {};
710
+ const localVarQueryParameter = {};
711
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
712
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
713
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
714
+ return {
715
+ url: toPathString(localVarUrlObj),
716
+ options: localVarRequestOptions,
717
+ };
718
+ },
719
+ };
720
+ };
721
+ /**
722
+ * AddressApi - functional programming interface
723
+ * @export
724
+ */
725
+ export const AddressApiFp = function (configuration) {
726
+ const localVarAxiosParamCreator = AddressApiAxiosParamCreator(configuration);
727
+ return {
728
+ /**
729
+ *
730
+ * @param {*} [options] Override http request option.
731
+ * @throws {RequiredError}
732
+ */
733
+ async getCountries(options) {
734
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getCountries(options);
735
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
736
+ const localVarOperationServerBasePath = operationServerMap['AddressApi.getCountries']?.[localVarOperationServerIndex]?.url;
737
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
738
+ },
739
+ /**
740
+ *
741
+ * @param {string} slug
742
+ * @param {*} [options] Override http request option.
743
+ * @throws {RequiredError}
744
+ */
745
+ async getCountryStatesBySlug(slug, options) {
746
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getCountryStatesBySlug(slug, options);
747
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
748
+ const localVarOperationServerBasePath = operationServerMap['AddressApi.getCountryStatesBySlug']?.[localVarOperationServerIndex]?.url;
749
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
750
+ },
751
+ };
752
+ };
753
+ /**
754
+ * AddressApi - factory interface
755
+ * @export
756
+ */
757
+ export const AddressApiFactory = function (configuration, basePath, axios) {
758
+ const localVarFp = AddressApiFp(configuration);
759
+ return {
760
+ /**
761
+ *
762
+ * @param {*} [options] Override http request option.
763
+ * @throws {RequiredError}
764
+ */
765
+ getCountries(options) {
766
+ return localVarFp.getCountries(options).then((request) => request(axios, basePath));
767
+ },
768
+ /**
769
+ *
770
+ * @param {AddressApiGetCountryStatesBySlugRequest} requestParameters Request parameters.
771
+ * @param {*} [options] Override http request option.
772
+ * @throws {RequiredError}
773
+ */
774
+ getCountryStatesBySlug(requestParameters, options) {
775
+ return localVarFp.getCountryStatesBySlug(requestParameters.slug, options).then((request) => request(axios, basePath));
776
+ },
777
+ };
778
+ };
779
+ /**
780
+ * AddressApi - object-oriented interface
781
+ * @export
782
+ * @class AddressApi
783
+ * @extends {BaseAPI}
784
+ */
785
+ export class AddressApi extends BaseAPI {
786
+ /**
787
+ *
788
+ * @param {*} [options] Override http request option.
789
+ * @throws {RequiredError}
790
+ * @memberof AddressApi
791
+ */
792
+ getCountries(options) {
793
+ return AddressApiFp(this.configuration).getCountries(options).then((request) => request(this.axios, this.basePath));
794
+ }
795
+ /**
796
+ *
797
+ * @param {AddressApiGetCountryStatesBySlugRequest} requestParameters Request parameters.
798
+ * @param {*} [options] Override http request option.
799
+ * @throws {RequiredError}
800
+ * @memberof AddressApi
801
+ */
802
+ getCountryStatesBySlug(requestParameters, options) {
803
+ return AddressApiFp(this.configuration).getCountryStatesBySlug(requestParameters.slug, options).then((request) => request(this.axios, this.basePath));
804
+ }
805
+ }
806
+ /**
807
+ * AuthApi - axios parameter creator
808
+ * @export
809
+ */
810
+ export const AuthApiAxiosParamCreator = function (configuration) {
811
+ return {
812
+ /**
813
+ *
814
+ * @param {string} domain
815
+ * @param {IForgotPasswordRequest} iForgotPasswordRequest
816
+ * @param {*} [options] Override http request option.
817
+ * @throws {RequiredError}
818
+ */
819
+ forgotPassword: async (domain, iForgotPasswordRequest, options = {}) => {
820
+ // verify required parameter 'domain' is not null or undefined
821
+ assertParamExists('forgotPassword', 'domain', domain);
822
+ // verify required parameter 'iForgotPasswordRequest' is not null or undefined
823
+ assertParamExists('forgotPassword', 'iForgotPasswordRequest', iForgotPasswordRequest);
824
+ const localVarPath = `/api/auth/forgot-password`;
825
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
826
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
827
+ let baseOptions;
828
+ if (configuration) {
829
+ baseOptions = configuration.baseOptions;
830
+ }
831
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
832
+ const localVarHeaderParameter = {};
833
+ const localVarQueryParameter = {};
834
+ if (domain !== undefined) {
835
+ localVarQueryParameter['domain'] = domain;
836
+ }
837
+ localVarHeaderParameter['Content-Type'] = 'application/json';
838
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
839
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
840
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
841
+ localVarRequestOptions.data = serializeDataIfNeeded(iForgotPasswordRequest, localVarRequestOptions, configuration);
842
+ return {
843
+ url: toPathString(localVarUrlObj),
844
+ options: localVarRequestOptions,
845
+ };
846
+ },
847
+ /**
848
+ *
849
+ * @param {string} domain
850
+ * @param {ILoginRequest} iLoginRequest
851
+ * @param {*} [options] Override http request option.
852
+ * @throws {RequiredError}
853
+ */
854
+ login: async (domain, iLoginRequest, options = {}) => {
855
+ // verify required parameter 'domain' is not null or undefined
856
+ assertParamExists('login', 'domain', domain);
857
+ // verify required parameter 'iLoginRequest' is not null or undefined
858
+ assertParamExists('login', 'iLoginRequest', iLoginRequest);
859
+ const localVarPath = `/api/auth/login`;
860
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
861
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
862
+ let baseOptions;
863
+ if (configuration) {
864
+ baseOptions = configuration.baseOptions;
865
+ }
866
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
867
+ const localVarHeaderParameter = {};
868
+ const localVarQueryParameter = {};
869
+ if (domain !== undefined) {
870
+ localVarQueryParameter['domain'] = domain;
871
+ }
872
+ localVarHeaderParameter['Content-Type'] = 'application/json';
873
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
874
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
875
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
876
+ localVarRequestOptions.data = serializeDataIfNeeded(iLoginRequest, localVarRequestOptions, configuration);
877
+ return {
878
+ url: toPathString(localVarUrlObj),
879
+ options: localVarRequestOptions,
880
+ };
881
+ },
882
+ /**
883
+ *
884
+ * @param {string} domain
885
+ * @param {IRefreshTokenRequest} iRefreshTokenRequest
886
+ * @param {*} [options] Override http request option.
887
+ * @throws {RequiredError}
888
+ */
889
+ refreshToken: async (domain, iRefreshTokenRequest, options = {}) => {
890
+ // verify required parameter 'domain' is not null or undefined
891
+ assertParamExists('refreshToken', 'domain', domain);
892
+ // verify required parameter 'iRefreshTokenRequest' is not null or undefined
893
+ assertParamExists('refreshToken', 'iRefreshTokenRequest', iRefreshTokenRequest);
894
+ const localVarPath = `/api/auth/refresh-token`;
895
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
896
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
897
+ let baseOptions;
898
+ if (configuration) {
899
+ baseOptions = configuration.baseOptions;
900
+ }
901
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
902
+ const localVarHeaderParameter = {};
903
+ const localVarQueryParameter = {};
904
+ if (domain !== undefined) {
905
+ localVarQueryParameter['domain'] = domain;
906
+ }
907
+ localVarHeaderParameter['Content-Type'] = 'application/json';
908
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
909
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
910
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
911
+ localVarRequestOptions.data = serializeDataIfNeeded(iRefreshTokenRequest, localVarRequestOptions, configuration);
912
+ return {
913
+ url: toPathString(localVarUrlObj),
914
+ options: localVarRequestOptions,
915
+ };
916
+ },
917
+ /**
918
+ *
919
+ * @param {string} domain
920
+ * @param {IRegisterRequest} iRegisterRequest
921
+ * @param {*} [options] Override http request option.
922
+ * @throws {RequiredError}
923
+ */
924
+ register: async (domain, iRegisterRequest, options = {}) => {
925
+ // verify required parameter 'domain' is not null or undefined
926
+ assertParamExists('register', 'domain', domain);
927
+ // verify required parameter 'iRegisterRequest' is not null or undefined
928
+ assertParamExists('register', 'iRegisterRequest', iRegisterRequest);
929
+ const localVarPath = `/api/auth/register`;
930
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
931
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
932
+ let baseOptions;
933
+ if (configuration) {
934
+ baseOptions = configuration.baseOptions;
935
+ }
936
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
937
+ const localVarHeaderParameter = {};
938
+ const localVarQueryParameter = {};
939
+ if (domain !== undefined) {
940
+ localVarQueryParameter['domain'] = domain;
941
+ }
942
+ localVarHeaderParameter['Content-Type'] = 'application/json';
943
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
944
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
945
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
946
+ localVarRequestOptions.data = serializeDataIfNeeded(iRegisterRequest, localVarRequestOptions, configuration);
947
+ return {
948
+ url: toPathString(localVarUrlObj),
949
+ options: localVarRequestOptions,
950
+ };
951
+ },
952
+ /**
953
+ *
954
+ * @param {string} domain
955
+ * @param {IResendVerificationEmailRequest} iResendVerificationEmailRequest
956
+ * @param {*} [options] Override http request option.
957
+ * @throws {RequiredError}
958
+ */
959
+ resendVerificationEmail: async (domain, iResendVerificationEmailRequest, options = {}) => {
960
+ // verify required parameter 'domain' is not null or undefined
961
+ assertParamExists('resendVerificationEmail', 'domain', domain);
962
+ // verify required parameter 'iResendVerificationEmailRequest' is not null or undefined
963
+ assertParamExists('resendVerificationEmail', 'iResendVerificationEmailRequest', iResendVerificationEmailRequest);
964
+ const localVarPath = `/api/auth/resend-verification-email`;
965
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
966
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
967
+ let baseOptions;
968
+ if (configuration) {
969
+ baseOptions = configuration.baseOptions;
970
+ }
971
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
972
+ const localVarHeaderParameter = {};
973
+ const localVarQueryParameter = {};
974
+ if (domain !== undefined) {
975
+ localVarQueryParameter['domain'] = domain;
976
+ }
977
+ localVarHeaderParameter['Content-Type'] = 'application/json';
978
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
979
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
980
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
981
+ localVarRequestOptions.data = serializeDataIfNeeded(iResendVerificationEmailRequest, localVarRequestOptions, configuration);
982
+ return {
983
+ url: toPathString(localVarUrlObj),
984
+ options: localVarRequestOptions,
985
+ };
986
+ },
987
+ /**
988
+ *
989
+ * @param {string} domain
990
+ * @param {IResetPasswordRequest} iResetPasswordRequest
991
+ * @param {*} [options] Override http request option.
992
+ * @throws {RequiredError}
993
+ */
994
+ resetPassword: async (domain, iResetPasswordRequest, options = {}) => {
995
+ // verify required parameter 'domain' is not null or undefined
996
+ assertParamExists('resetPassword', 'domain', domain);
997
+ // verify required parameter 'iResetPasswordRequest' is not null or undefined
998
+ assertParamExists('resetPassword', 'iResetPasswordRequest', iResetPasswordRequest);
999
+ const localVarPath = `/api/auth/reset-password`;
1000
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1001
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1002
+ let baseOptions;
1003
+ if (configuration) {
1004
+ baseOptions = configuration.baseOptions;
1005
+ }
1006
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
1007
+ const localVarHeaderParameter = {};
1008
+ const localVarQueryParameter = {};
1009
+ if (domain !== undefined) {
1010
+ localVarQueryParameter['domain'] = domain;
1011
+ }
1012
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1013
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1014
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1015
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1016
+ localVarRequestOptions.data = serializeDataIfNeeded(iResetPasswordRequest, localVarRequestOptions, configuration);
1017
+ return {
1018
+ url: toPathString(localVarUrlObj),
1019
+ options: localVarRequestOptions,
1020
+ };
1021
+ },
1022
+ /**
1023
+ *
1024
+ * @param {string} domain
1025
+ * @param {ISocialLoginRequest} iSocialLoginRequest
1026
+ * @param {*} [options] Override http request option.
1027
+ * @throws {RequiredError}
1028
+ */
1029
+ socialLogin: async (domain, iSocialLoginRequest, options = {}) => {
1030
+ // verify required parameter 'domain' is not null or undefined
1031
+ assertParamExists('socialLogin', 'domain', domain);
1032
+ // verify required parameter 'iSocialLoginRequest' is not null or undefined
1033
+ assertParamExists('socialLogin', 'iSocialLoginRequest', iSocialLoginRequest);
1034
+ const localVarPath = `/api/auth/social-login`;
1035
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1036
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1037
+ let baseOptions;
1038
+ if (configuration) {
1039
+ baseOptions = configuration.baseOptions;
1040
+ }
1041
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
1042
+ const localVarHeaderParameter = {};
1043
+ const localVarQueryParameter = {};
1044
+ if (domain !== undefined) {
1045
+ localVarQueryParameter['domain'] = domain;
1046
+ }
1047
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1048
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1049
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1050
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1051
+ localVarRequestOptions.data = serializeDataIfNeeded(iSocialLoginRequest, localVarRequestOptions, configuration);
1052
+ return {
1053
+ url: toPathString(localVarUrlObj),
1054
+ options: localVarRequestOptions,
1055
+ };
1056
+ },
1057
+ };
1058
+ };
1059
+ /**
1060
+ * AuthApi - functional programming interface
1061
+ * @export
1062
+ */
1063
+ export const AuthApiFp = function (configuration) {
1064
+ const localVarAxiosParamCreator = AuthApiAxiosParamCreator(configuration);
1065
+ return {
1066
+ /**
1067
+ *
1068
+ * @param {string} domain
1069
+ * @param {IForgotPasswordRequest} iForgotPasswordRequest
1070
+ * @param {*} [options] Override http request option.
1071
+ * @throws {RequiredError}
1072
+ */
1073
+ async forgotPassword(domain, iForgotPasswordRequest, options) {
1074
+ const localVarAxiosArgs = await localVarAxiosParamCreator.forgotPassword(domain, iForgotPasswordRequest, options);
1075
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1076
+ const localVarOperationServerBasePath = operationServerMap['AuthApi.forgotPassword']?.[localVarOperationServerIndex]?.url;
1077
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1078
+ },
1079
+ /**
1080
+ *
1081
+ * @param {string} domain
1082
+ * @param {ILoginRequest} iLoginRequest
1083
+ * @param {*} [options] Override http request option.
1084
+ * @throws {RequiredError}
1085
+ */
1086
+ async login(domain, iLoginRequest, options) {
1087
+ const localVarAxiosArgs = await localVarAxiosParamCreator.login(domain, iLoginRequest, options);
1088
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1089
+ const localVarOperationServerBasePath = operationServerMap['AuthApi.login']?.[localVarOperationServerIndex]?.url;
1090
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1091
+ },
1092
+ /**
1093
+ *
1094
+ * @param {string} domain
1095
+ * @param {IRefreshTokenRequest} iRefreshTokenRequest
1096
+ * @param {*} [options] Override http request option.
1097
+ * @throws {RequiredError}
1098
+ */
1099
+ async refreshToken(domain, iRefreshTokenRequest, options) {
1100
+ const localVarAxiosArgs = await localVarAxiosParamCreator.refreshToken(domain, iRefreshTokenRequest, options);
1101
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1102
+ const localVarOperationServerBasePath = operationServerMap['AuthApi.refreshToken']?.[localVarOperationServerIndex]?.url;
1103
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1104
+ },
1105
+ /**
1106
+ *
1107
+ * @param {string} domain
1108
+ * @param {IRegisterRequest} iRegisterRequest
1109
+ * @param {*} [options] Override http request option.
1110
+ * @throws {RequiredError}
1111
+ */
1112
+ async register(domain, iRegisterRequest, options) {
1113
+ const localVarAxiosArgs = await localVarAxiosParamCreator.register(domain, iRegisterRequest, options);
1114
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1115
+ const localVarOperationServerBasePath = operationServerMap['AuthApi.register']?.[localVarOperationServerIndex]?.url;
1116
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1117
+ },
1118
+ /**
1119
+ *
1120
+ * @param {string} domain
1121
+ * @param {IResendVerificationEmailRequest} iResendVerificationEmailRequest
1122
+ * @param {*} [options] Override http request option.
1123
+ * @throws {RequiredError}
1124
+ */
1125
+ async resendVerificationEmail(domain, iResendVerificationEmailRequest, options) {
1126
+ const localVarAxiosArgs = await localVarAxiosParamCreator.resendVerificationEmail(domain, iResendVerificationEmailRequest, options);
1127
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1128
+ const localVarOperationServerBasePath = operationServerMap['AuthApi.resendVerificationEmail']?.[localVarOperationServerIndex]?.url;
1129
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1130
+ },
1131
+ /**
1132
+ *
1133
+ * @param {string} domain
1134
+ * @param {IResetPasswordRequest} iResetPasswordRequest
1135
+ * @param {*} [options] Override http request option.
1136
+ * @throws {RequiredError}
1137
+ */
1138
+ async resetPassword(domain, iResetPasswordRequest, options) {
1139
+ const localVarAxiosArgs = await localVarAxiosParamCreator.resetPassword(domain, iResetPasswordRequest, options);
1140
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1141
+ const localVarOperationServerBasePath = operationServerMap['AuthApi.resetPassword']?.[localVarOperationServerIndex]?.url;
1142
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1143
+ },
1144
+ /**
1145
+ *
1146
+ * @param {string} domain
1147
+ * @param {ISocialLoginRequest} iSocialLoginRequest
1148
+ * @param {*} [options] Override http request option.
1149
+ * @throws {RequiredError}
1150
+ */
1151
+ async socialLogin(domain, iSocialLoginRequest, options) {
1152
+ const localVarAxiosArgs = await localVarAxiosParamCreator.socialLogin(domain, iSocialLoginRequest, options);
1153
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1154
+ const localVarOperationServerBasePath = operationServerMap['AuthApi.socialLogin']?.[localVarOperationServerIndex]?.url;
1155
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1156
+ },
1157
+ };
1158
+ };
1159
+ /**
1160
+ * AuthApi - factory interface
1161
+ * @export
1162
+ */
1163
+ export const AuthApiFactory = function (configuration, basePath, axios) {
1164
+ const localVarFp = AuthApiFp(configuration);
1165
+ return {
1166
+ /**
1167
+ *
1168
+ * @param {AuthApiForgotPasswordRequest} requestParameters Request parameters.
1169
+ * @param {*} [options] Override http request option.
1170
+ * @throws {RequiredError}
1171
+ */
1172
+ forgotPassword(requestParameters, options) {
1173
+ return localVarFp.forgotPassword(requestParameters.domain, requestParameters.iForgotPasswordRequest, options).then((request) => request(axios, basePath));
1174
+ },
1175
+ /**
1176
+ *
1177
+ * @param {AuthApiLoginRequest} requestParameters Request parameters.
1178
+ * @param {*} [options] Override http request option.
1179
+ * @throws {RequiredError}
1180
+ */
1181
+ login(requestParameters, options) {
1182
+ return localVarFp.login(requestParameters.domain, requestParameters.iLoginRequest, options).then((request) => request(axios, basePath));
1183
+ },
1184
+ /**
1185
+ *
1186
+ * @param {AuthApiRefreshTokenRequest} requestParameters Request parameters.
1187
+ * @param {*} [options] Override http request option.
1188
+ * @throws {RequiredError}
1189
+ */
1190
+ refreshToken(requestParameters, options) {
1191
+ return localVarFp.refreshToken(requestParameters.domain, requestParameters.iRefreshTokenRequest, options).then((request) => request(axios, basePath));
1192
+ },
1193
+ /**
1194
+ *
1195
+ * @param {AuthApiRegisterRequest} requestParameters Request parameters.
1196
+ * @param {*} [options] Override http request option.
1197
+ * @throws {RequiredError}
1198
+ */
1199
+ register(requestParameters, options) {
1200
+ return localVarFp.register(requestParameters.domain, requestParameters.iRegisterRequest, options).then((request) => request(axios, basePath));
1201
+ },
1202
+ /**
1203
+ *
1204
+ * @param {AuthApiResendVerificationEmailRequest} requestParameters Request parameters.
1205
+ * @param {*} [options] Override http request option.
1206
+ * @throws {RequiredError}
1207
+ */
1208
+ resendVerificationEmail(requestParameters, options) {
1209
+ return localVarFp.resendVerificationEmail(requestParameters.domain, requestParameters.iResendVerificationEmailRequest, options).then((request) => request(axios, basePath));
1210
+ },
1211
+ /**
1212
+ *
1213
+ * @param {AuthApiResetPasswordRequest} requestParameters Request parameters.
1214
+ * @param {*} [options] Override http request option.
1215
+ * @throws {RequiredError}
1216
+ */
1217
+ resetPassword(requestParameters, options) {
1218
+ return localVarFp.resetPassword(requestParameters.domain, requestParameters.iResetPasswordRequest, options).then((request) => request(axios, basePath));
1219
+ },
1220
+ /**
1221
+ *
1222
+ * @param {AuthApiSocialLoginRequest} requestParameters Request parameters.
1223
+ * @param {*} [options] Override http request option.
1224
+ * @throws {RequiredError}
1225
+ */
1226
+ socialLogin(requestParameters, options) {
1227
+ return localVarFp.socialLogin(requestParameters.domain, requestParameters.iSocialLoginRequest, options).then((request) => request(axios, basePath));
1228
+ },
1229
+ };
1230
+ };
1231
+ /**
1232
+ * AuthApi - object-oriented interface
1233
+ * @export
1234
+ * @class AuthApi
1235
+ * @extends {BaseAPI}
1236
+ */
1237
+ export class AuthApi extends BaseAPI {
1238
+ /**
1239
+ *
1240
+ * @param {AuthApiForgotPasswordRequest} requestParameters Request parameters.
1241
+ * @param {*} [options] Override http request option.
1242
+ * @throws {RequiredError}
1243
+ * @memberof AuthApi
1244
+ */
1245
+ forgotPassword(requestParameters, options) {
1246
+ return AuthApiFp(this.configuration).forgotPassword(requestParameters.domain, requestParameters.iForgotPasswordRequest, options).then((request) => request(this.axios, this.basePath));
1247
+ }
1248
+ /**
1249
+ *
1250
+ * @param {AuthApiLoginRequest} requestParameters Request parameters.
1251
+ * @param {*} [options] Override http request option.
1252
+ * @throws {RequiredError}
1253
+ * @memberof AuthApi
1254
+ */
1255
+ login(requestParameters, options) {
1256
+ return AuthApiFp(this.configuration).login(requestParameters.domain, requestParameters.iLoginRequest, options).then((request) => request(this.axios, this.basePath));
1257
+ }
1258
+ /**
1259
+ *
1260
+ * @param {AuthApiRefreshTokenRequest} requestParameters Request parameters.
1261
+ * @param {*} [options] Override http request option.
1262
+ * @throws {RequiredError}
1263
+ * @memberof AuthApi
1264
+ */
1265
+ refreshToken(requestParameters, options) {
1266
+ return AuthApiFp(this.configuration).refreshToken(requestParameters.domain, requestParameters.iRefreshTokenRequest, options).then((request) => request(this.axios, this.basePath));
1267
+ }
1268
+ /**
1269
+ *
1270
+ * @param {AuthApiRegisterRequest} requestParameters Request parameters.
1271
+ * @param {*} [options] Override http request option.
1272
+ * @throws {RequiredError}
1273
+ * @memberof AuthApi
1274
+ */
1275
+ register(requestParameters, options) {
1276
+ return AuthApiFp(this.configuration).register(requestParameters.domain, requestParameters.iRegisterRequest, options).then((request) => request(this.axios, this.basePath));
1277
+ }
1278
+ /**
1279
+ *
1280
+ * @param {AuthApiResendVerificationEmailRequest} requestParameters Request parameters.
1281
+ * @param {*} [options] Override http request option.
1282
+ * @throws {RequiredError}
1283
+ * @memberof AuthApi
1284
+ */
1285
+ resendVerificationEmail(requestParameters, options) {
1286
+ return AuthApiFp(this.configuration).resendVerificationEmail(requestParameters.domain, requestParameters.iResendVerificationEmailRequest, options).then((request) => request(this.axios, this.basePath));
1287
+ }
1288
+ /**
1289
+ *
1290
+ * @param {AuthApiResetPasswordRequest} requestParameters Request parameters.
1291
+ * @param {*} [options] Override http request option.
1292
+ * @throws {RequiredError}
1293
+ * @memberof AuthApi
1294
+ */
1295
+ resetPassword(requestParameters, options) {
1296
+ return AuthApiFp(this.configuration).resetPassword(requestParameters.domain, requestParameters.iResetPasswordRequest, options).then((request) => request(this.axios, this.basePath));
1297
+ }
1298
+ /**
1299
+ *
1300
+ * @param {AuthApiSocialLoginRequest} requestParameters Request parameters.
1301
+ * @param {*} [options] Override http request option.
1302
+ * @throws {RequiredError}
1303
+ * @memberof AuthApi
1304
+ */
1305
+ socialLogin(requestParameters, options) {
1306
+ return AuthApiFp(this.configuration).socialLogin(requestParameters.domain, requestParameters.iSocialLoginRequest, options).then((request) => request(this.axios, this.basePath));
1307
+ }
1308
+ }
1309
+ /**
1310
+ * CollectionApi - axios parameter creator
1311
+ * @export
1312
+ */
1313
+ export const CollectionApiAxiosParamCreator = function (configuration) {
1314
+ return {
1315
+ /**
1316
+ *
1317
+ * @param {string} slug
1318
+ * @param {string} domain
1319
+ * @param {*} [options] Override http request option.
1320
+ * @throws {RequiredError}
1321
+ */
1322
+ getCollectionBySlug: async (slug, domain, options = {}) => {
1323
+ // verify required parameter 'slug' is not null or undefined
1324
+ assertParamExists('getCollectionBySlug', 'slug', slug);
1325
+ // verify required parameter 'domain' is not null or undefined
1326
+ assertParamExists('getCollectionBySlug', 'domain', domain);
1327
+ const localVarPath = `/api/collections/slug/{slug}`
1328
+ .replace(`{${"slug"}}`, encodeURIComponent(String(slug)));
1329
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1330
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1331
+ let baseOptions;
1332
+ if (configuration) {
1333
+ baseOptions = configuration.baseOptions;
1334
+ }
1335
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1336
+ const localVarHeaderParameter = {};
1337
+ const localVarQueryParameter = {};
1338
+ if (domain !== undefined) {
1339
+ localVarQueryParameter['domain'] = domain;
1340
+ }
1341
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1342
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1343
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1344
+ return {
1345
+ url: toPathString(localVarUrlObj),
1346
+ options: localVarRequestOptions,
1347
+ };
1348
+ },
1349
+ /**
1350
+ *
1351
+ * @param {string} company
1352
+ * @param {number} [page]
1353
+ * @param {PaginationLimitEnum} [itemsPerPage]
1354
+ * @param {string} [search]
1355
+ * @param {string} [startDate]
1356
+ * @param {string} [endDate]
1357
+ * @param {string} [dateField]
1358
+ * @param {OrderEnum} [order]
1359
+ * @param {string} [sort]
1360
+ * @param {ContentStatusEnum} [status]
1361
+ * @param {*} [options] Override http request option.
1362
+ * @throws {RequiredError}
1363
+ */
1364
+ getCollections: async (company, page, itemsPerPage, search, startDate, endDate, dateField, order, sort, status, options = {}) => {
1365
+ // verify required parameter 'company' is not null or undefined
1366
+ assertParamExists('getCollections', 'company', company);
1367
+ const localVarPath = `/api/collections`;
1368
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1369
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1370
+ let baseOptions;
1371
+ if (configuration) {
1372
+ baseOptions = configuration.baseOptions;
1373
+ }
1374
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1375
+ const localVarHeaderParameter = {};
1376
+ const localVarQueryParameter = {};
1377
+ if (page !== undefined) {
1378
+ localVarQueryParameter['page'] = page;
1379
+ }
1380
+ if (itemsPerPage !== undefined) {
1381
+ localVarQueryParameter['itemsPerPage'] = itemsPerPage;
1382
+ }
1383
+ if (search !== undefined) {
1384
+ localVarQueryParameter['search'] = search;
1385
+ }
1386
+ if (startDate !== undefined) {
1387
+ localVarQueryParameter['startDate'] = (startDate instanceof Date) ?
1388
+ startDate.toISOString() :
1389
+ startDate;
1390
+ }
1391
+ if (endDate !== undefined) {
1392
+ localVarQueryParameter['endDate'] = (endDate instanceof Date) ?
1393
+ endDate.toISOString() :
1394
+ endDate;
1395
+ }
1396
+ if (dateField !== undefined) {
1397
+ localVarQueryParameter['dateField'] = dateField;
1398
+ }
1399
+ if (order !== undefined) {
1400
+ localVarQueryParameter['order'] = order;
1401
+ }
1402
+ if (sort !== undefined) {
1403
+ localVarQueryParameter['sort'] = sort;
1404
+ }
1405
+ if (company !== undefined) {
1406
+ localVarQueryParameter['company'] = company;
1407
+ }
1408
+ if (status !== undefined) {
1409
+ localVarQueryParameter['status'] = status;
1410
+ }
1411
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1412
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1413
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1414
+ return {
1415
+ url: toPathString(localVarUrlObj),
1416
+ options: localVarRequestOptions,
1417
+ };
1418
+ },
1419
+ };
1420
+ };
1421
+ /**
1422
+ * CollectionApi - functional programming interface
1423
+ * @export
1424
+ */
1425
+ export const CollectionApiFp = function (configuration) {
1426
+ const localVarAxiosParamCreator = CollectionApiAxiosParamCreator(configuration);
1427
+ return {
1428
+ /**
1429
+ *
1430
+ * @param {string} slug
1431
+ * @param {string} domain
1432
+ * @param {*} [options] Override http request option.
1433
+ * @throws {RequiredError}
1434
+ */
1435
+ async getCollectionBySlug(slug, domain, options) {
1436
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getCollectionBySlug(slug, domain, options);
1437
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1438
+ const localVarOperationServerBasePath = operationServerMap['CollectionApi.getCollectionBySlug']?.[localVarOperationServerIndex]?.url;
1439
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1440
+ },
1441
+ /**
1442
+ *
1443
+ * @param {string} company
1444
+ * @param {number} [page]
1445
+ * @param {PaginationLimitEnum} [itemsPerPage]
1446
+ * @param {string} [search]
1447
+ * @param {string} [startDate]
1448
+ * @param {string} [endDate]
1449
+ * @param {string} [dateField]
1450
+ * @param {OrderEnum} [order]
1451
+ * @param {string} [sort]
1452
+ * @param {ContentStatusEnum} [status]
1453
+ * @param {*} [options] Override http request option.
1454
+ * @throws {RequiredError}
1455
+ */
1456
+ async getCollections(company, page, itemsPerPage, search, startDate, endDate, dateField, order, sort, status, options) {
1457
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getCollections(company, page, itemsPerPage, search, startDate, endDate, dateField, order, sort, status, options);
1458
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1459
+ const localVarOperationServerBasePath = operationServerMap['CollectionApi.getCollections']?.[localVarOperationServerIndex]?.url;
1460
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1461
+ },
1462
+ };
1463
+ };
1464
+ /**
1465
+ * CollectionApi - factory interface
1466
+ * @export
1467
+ */
1468
+ export const CollectionApiFactory = function (configuration, basePath, axios) {
1469
+ const localVarFp = CollectionApiFp(configuration);
1470
+ return {
1471
+ /**
1472
+ *
1473
+ * @param {CollectionApiGetCollectionBySlugRequest} requestParameters Request parameters.
1474
+ * @param {*} [options] Override http request option.
1475
+ * @throws {RequiredError}
1476
+ */
1477
+ getCollectionBySlug(requestParameters, options) {
1478
+ return localVarFp.getCollectionBySlug(requestParameters.slug, requestParameters.domain, options).then((request) => request(axios, basePath));
1479
+ },
1480
+ /**
1481
+ *
1482
+ * @param {CollectionApiGetCollectionsRequest} requestParameters Request parameters.
1483
+ * @param {*} [options] Override http request option.
1484
+ * @throws {RequiredError}
1485
+ */
1486
+ getCollections(requestParameters, options) {
1487
+ return localVarFp.getCollections(requestParameters.company, requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.status, options).then((request) => request(axios, basePath));
1488
+ },
1489
+ };
1490
+ };
1491
+ /**
1492
+ * CollectionApi - object-oriented interface
1493
+ * @export
1494
+ * @class CollectionApi
1495
+ * @extends {BaseAPI}
1496
+ */
1497
+ export class CollectionApi extends BaseAPI {
1498
+ /**
1499
+ *
1500
+ * @param {CollectionApiGetCollectionBySlugRequest} requestParameters Request parameters.
1501
+ * @param {*} [options] Override http request option.
1502
+ * @throws {RequiredError}
1503
+ * @memberof CollectionApi
1504
+ */
1505
+ getCollectionBySlug(requestParameters, options) {
1506
+ return CollectionApiFp(this.configuration).getCollectionBySlug(requestParameters.slug, requestParameters.domain, options).then((request) => request(this.axios, this.basePath));
1507
+ }
1508
+ /**
1509
+ *
1510
+ * @param {CollectionApiGetCollectionsRequest} requestParameters Request parameters.
1511
+ * @param {*} [options] Override http request option.
1512
+ * @throws {RequiredError}
1513
+ * @memberof CollectionApi
1514
+ */
1515
+ getCollections(requestParameters, options) {
1516
+ return CollectionApiFp(this.configuration).getCollections(requestParameters.company, requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.status, options).then((request) => request(this.axios, this.basePath));
1517
+ }
1518
+ }
1519
+ /**
1520
+ * CompanyApi - axios parameter creator
1521
+ * @export
1522
+ */
1523
+ export const CompanyApiAxiosParamCreator = function (configuration) {
1524
+ return {
1525
+ /**
1526
+ *
1527
+ * @param {string} domain
1528
+ * @param {*} [options] Override http request option.
1529
+ * @throws {RequiredError}
1530
+ */
1531
+ getCompanyByDomainName: async (domain, options = {}) => {
1532
+ // verify required parameter 'domain' is not null or undefined
1533
+ assertParamExists('getCompanyByDomainName', 'domain', domain);
1534
+ const localVarPath = `/api/companies/domain/{domain}`
1535
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
1536
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1537
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1538
+ let baseOptions;
1539
+ if (configuration) {
1540
+ baseOptions = configuration.baseOptions;
1541
+ }
1542
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1543
+ const localVarHeaderParameter = {};
1544
+ const localVarQueryParameter = {};
1545
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1546
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1547
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1548
+ return {
1549
+ url: toPathString(localVarUrlObj),
1550
+ options: localVarRequestOptions,
1551
+ };
1552
+ },
1553
+ };
1554
+ };
1555
+ /**
1556
+ * CompanyApi - functional programming interface
1557
+ * @export
1558
+ */
1559
+ export const CompanyApiFp = function (configuration) {
1560
+ const localVarAxiosParamCreator = CompanyApiAxiosParamCreator(configuration);
1561
+ return {
1562
+ /**
1563
+ *
1564
+ * @param {string} domain
1565
+ * @param {*} [options] Override http request option.
1566
+ * @throws {RequiredError}
1567
+ */
1568
+ async getCompanyByDomainName(domain, options) {
1569
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getCompanyByDomainName(domain, options);
1570
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1571
+ const localVarOperationServerBasePath = operationServerMap['CompanyApi.getCompanyByDomainName']?.[localVarOperationServerIndex]?.url;
1572
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1573
+ },
1574
+ };
1575
+ };
1576
+ /**
1577
+ * CompanyApi - factory interface
1578
+ * @export
1579
+ */
1580
+ export const CompanyApiFactory = function (configuration, basePath, axios) {
1581
+ const localVarFp = CompanyApiFp(configuration);
1582
+ return {
1583
+ /**
1584
+ *
1585
+ * @param {CompanyApiGetCompanyByDomainNameRequest} requestParameters Request parameters.
1586
+ * @param {*} [options] Override http request option.
1587
+ * @throws {RequiredError}
1588
+ */
1589
+ getCompanyByDomainName(requestParameters, options) {
1590
+ return localVarFp.getCompanyByDomainName(requestParameters.domain, options).then((request) => request(axios, basePath));
1591
+ },
1592
+ };
1593
+ };
1594
+ /**
1595
+ * CompanyApi - object-oriented interface
1596
+ * @export
1597
+ * @class CompanyApi
1598
+ * @extends {BaseAPI}
1599
+ */
1600
+ export class CompanyApi extends BaseAPI {
1601
+ /**
1602
+ *
1603
+ * @param {CompanyApiGetCompanyByDomainNameRequest} requestParameters Request parameters.
1604
+ * @param {*} [options] Override http request option.
1605
+ * @throws {RequiredError}
1606
+ * @memberof CompanyApi
1607
+ */
1608
+ getCompanyByDomainName(requestParameters, options) {
1609
+ return CompanyApiFp(this.configuration).getCompanyByDomainName(requestParameters.domain, options).then((request) => request(this.axios, this.basePath));
1610
+ }
1611
+ }
1612
+ /**
1613
+ * PageApi - axios parameter creator
1614
+ * @export
1615
+ */
1616
+ export const PageApiAxiosParamCreator = function (configuration) {
1617
+ return {
1618
+ /**
1619
+ *
1620
+ * @param {string} slug
1621
+ * @param {string} [company]
1622
+ * @param {string} [domain]
1623
+ * @param {*} [options] Override http request option.
1624
+ * @throws {RequiredError}
1625
+ */
1626
+ getPageBySlug: async (slug, company, domain, options = {}) => {
1627
+ // verify required parameter 'slug' is not null or undefined
1628
+ assertParamExists('getPageBySlug', 'slug', slug);
1629
+ const localVarPath = `/api/pages/slug/{slug}`
1630
+ .replace(`{${"slug"}}`, encodeURIComponent(String(slug)));
1631
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1632
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1633
+ let baseOptions;
1634
+ if (configuration) {
1635
+ baseOptions = configuration.baseOptions;
1636
+ }
1637
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1638
+ const localVarHeaderParameter = {};
1639
+ const localVarQueryParameter = {};
1640
+ if (company !== undefined) {
1641
+ localVarQueryParameter['company'] = company;
1642
+ }
1643
+ if (domain !== undefined) {
1644
+ localVarQueryParameter['domain'] = domain;
1645
+ }
1646
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1647
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1648
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1649
+ return {
1650
+ url: toPathString(localVarUrlObj),
1651
+ options: localVarRequestOptions,
1652
+ };
1653
+ },
1654
+ /**
1655
+ *
1656
+ * @param {string} type
1657
+ * @param {string} [company]
1658
+ * @param {string} [domain]
1659
+ * @param {*} [options] Override http request option.
1660
+ * @throws {RequiredError}
1661
+ */
1662
+ getPageByType: async (type, company, domain, options = {}) => {
1663
+ // verify required parameter 'type' is not null or undefined
1664
+ assertParamExists('getPageByType', 'type', type);
1665
+ const localVarPath = `/api/pages/type/{type}`
1666
+ .replace(`{${"type"}}`, encodeURIComponent(String(type)));
1667
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1668
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1669
+ let baseOptions;
1670
+ if (configuration) {
1671
+ baseOptions = configuration.baseOptions;
1672
+ }
1673
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1674
+ const localVarHeaderParameter = {};
1675
+ const localVarQueryParameter = {};
1676
+ if (company !== undefined) {
1677
+ localVarQueryParameter['company'] = company;
1678
+ }
1679
+ if (domain !== undefined) {
1680
+ localVarQueryParameter['domain'] = domain;
1681
+ }
1682
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1683
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1684
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1685
+ return {
1686
+ url: toPathString(localVarUrlObj),
1687
+ options: localVarRequestOptions,
1688
+ };
1689
+ },
1690
+ /**
1691
+ *
1692
+ * @param {string} company
1693
+ * @param {number} [page]
1694
+ * @param {PaginationLimitEnum} [itemsPerPage]
1695
+ * @param {string} [search]
1696
+ * @param {string} [startDate]
1697
+ * @param {string} [endDate]
1698
+ * @param {string} [dateField]
1699
+ * @param {OrderEnum} [order]
1700
+ * @param {string} [sort]
1701
+ * @param {string} [domain]
1702
+ * @param {PageTypeEnum} [type]
1703
+ * @param {ContentStatusEnum} [status]
1704
+ * @param {*} [options] Override http request option.
1705
+ * @throws {RequiredError}
1706
+ */
1707
+ getPages: async (company, page, itemsPerPage, search, startDate, endDate, dateField, order, sort, domain, type, status, options = {}) => {
1708
+ // verify required parameter 'company' is not null or undefined
1709
+ assertParamExists('getPages', 'company', company);
1710
+ const localVarPath = `/api/pages`;
1711
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1712
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1713
+ let baseOptions;
1714
+ if (configuration) {
1715
+ baseOptions = configuration.baseOptions;
1716
+ }
1717
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1718
+ const localVarHeaderParameter = {};
1719
+ const localVarQueryParameter = {};
1720
+ if (page !== undefined) {
1721
+ localVarQueryParameter['page'] = page;
1722
+ }
1723
+ if (itemsPerPage !== undefined) {
1724
+ localVarQueryParameter['itemsPerPage'] = itemsPerPage;
1725
+ }
1726
+ if (search !== undefined) {
1727
+ localVarQueryParameter['search'] = search;
1728
+ }
1729
+ if (startDate !== undefined) {
1730
+ localVarQueryParameter['startDate'] = (startDate instanceof Date) ?
1731
+ startDate.toISOString() :
1732
+ startDate;
1733
+ }
1734
+ if (endDate !== undefined) {
1735
+ localVarQueryParameter['endDate'] = (endDate instanceof Date) ?
1736
+ endDate.toISOString() :
1737
+ endDate;
1738
+ }
1739
+ if (dateField !== undefined) {
1740
+ localVarQueryParameter['dateField'] = dateField;
1741
+ }
1742
+ if (order !== undefined) {
1743
+ localVarQueryParameter['order'] = order;
1744
+ }
1745
+ if (sort !== undefined) {
1746
+ localVarQueryParameter['sort'] = sort;
1747
+ }
1748
+ if (company !== undefined) {
1749
+ localVarQueryParameter['company'] = company;
1750
+ }
1751
+ if (domain !== undefined) {
1752
+ localVarQueryParameter['domain'] = domain;
1753
+ }
1754
+ if (type !== undefined) {
1755
+ localVarQueryParameter['type'] = type;
1756
+ }
1757
+ if (status !== undefined) {
1758
+ localVarQueryParameter['status'] = status;
1759
+ }
1760
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1761
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1762
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1763
+ return {
1764
+ url: toPathString(localVarUrlObj),
1765
+ options: localVarRequestOptions,
1766
+ };
1767
+ },
1768
+ };
1769
+ };
1770
+ /**
1771
+ * PageApi - functional programming interface
1772
+ * @export
1773
+ */
1774
+ export const PageApiFp = function (configuration) {
1775
+ const localVarAxiosParamCreator = PageApiAxiosParamCreator(configuration);
1776
+ return {
1777
+ /**
1778
+ *
1779
+ * @param {string} slug
1780
+ * @param {string} [company]
1781
+ * @param {string} [domain]
1782
+ * @param {*} [options] Override http request option.
1783
+ * @throws {RequiredError}
1784
+ */
1785
+ async getPageBySlug(slug, company, domain, options) {
1786
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getPageBySlug(slug, company, domain, options);
1787
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1788
+ const localVarOperationServerBasePath = operationServerMap['PageApi.getPageBySlug']?.[localVarOperationServerIndex]?.url;
1789
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1790
+ },
1791
+ /**
1792
+ *
1793
+ * @param {string} type
1794
+ * @param {string} [company]
1795
+ * @param {string} [domain]
1796
+ * @param {*} [options] Override http request option.
1797
+ * @throws {RequiredError}
1798
+ */
1799
+ async getPageByType(type, company, domain, options) {
1800
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getPageByType(type, company, domain, options);
1801
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1802
+ const localVarOperationServerBasePath = operationServerMap['PageApi.getPageByType']?.[localVarOperationServerIndex]?.url;
1803
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1804
+ },
1805
+ /**
1806
+ *
1807
+ * @param {string} company
1808
+ * @param {number} [page]
1809
+ * @param {PaginationLimitEnum} [itemsPerPage]
1810
+ * @param {string} [search]
1811
+ * @param {string} [startDate]
1812
+ * @param {string} [endDate]
1813
+ * @param {string} [dateField]
1814
+ * @param {OrderEnum} [order]
1815
+ * @param {string} [sort]
1816
+ * @param {string} [domain]
1817
+ * @param {PageTypeEnum} [type]
1818
+ * @param {ContentStatusEnum} [status]
1819
+ * @param {*} [options] Override http request option.
1820
+ * @throws {RequiredError}
1821
+ */
1822
+ async getPages(company, page, itemsPerPage, search, startDate, endDate, dateField, order, sort, domain, type, status, options) {
1823
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getPages(company, page, itemsPerPage, search, startDate, endDate, dateField, order, sort, domain, type, status, options);
1824
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1825
+ const localVarOperationServerBasePath = operationServerMap['PageApi.getPages']?.[localVarOperationServerIndex]?.url;
1826
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1827
+ },
1828
+ };
1829
+ };
1830
+ /**
1831
+ * PageApi - factory interface
1832
+ * @export
1833
+ */
1834
+ export const PageApiFactory = function (configuration, basePath, axios) {
1835
+ const localVarFp = PageApiFp(configuration);
1836
+ return {
1837
+ /**
1838
+ *
1839
+ * @param {PageApiGetPageBySlugRequest} requestParameters Request parameters.
1840
+ * @param {*} [options] Override http request option.
1841
+ * @throws {RequiredError}
1842
+ */
1843
+ getPageBySlug(requestParameters, options) {
1844
+ return localVarFp.getPageBySlug(requestParameters.slug, requestParameters.company, requestParameters.domain, options).then((request) => request(axios, basePath));
1845
+ },
1846
+ /**
1847
+ *
1848
+ * @param {PageApiGetPageByTypeRequest} requestParameters Request parameters.
1849
+ * @param {*} [options] Override http request option.
1850
+ * @throws {RequiredError}
1851
+ */
1852
+ getPageByType(requestParameters, options) {
1853
+ return localVarFp.getPageByType(requestParameters.type, requestParameters.company, requestParameters.domain, options).then((request) => request(axios, basePath));
1854
+ },
1855
+ /**
1856
+ *
1857
+ * @param {PageApiGetPagesRequest} requestParameters Request parameters.
1858
+ * @param {*} [options] Override http request option.
1859
+ * @throws {RequiredError}
1860
+ */
1861
+ getPages(requestParameters, options) {
1862
+ return localVarFp.getPages(requestParameters.company, requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.domain, requestParameters.type, requestParameters.status, options).then((request) => request(axios, basePath));
1863
+ },
1864
+ };
1865
+ };
1866
+ /**
1867
+ * PageApi - object-oriented interface
1868
+ * @export
1869
+ * @class PageApi
1870
+ * @extends {BaseAPI}
1871
+ */
1872
+ export class PageApi extends BaseAPI {
1873
+ /**
1874
+ *
1875
+ * @param {PageApiGetPageBySlugRequest} requestParameters Request parameters.
1876
+ * @param {*} [options] Override http request option.
1877
+ * @throws {RequiredError}
1878
+ * @memberof PageApi
1879
+ */
1880
+ getPageBySlug(requestParameters, options) {
1881
+ return PageApiFp(this.configuration).getPageBySlug(requestParameters.slug, requestParameters.company, requestParameters.domain, options).then((request) => request(this.axios, this.basePath));
1882
+ }
1883
+ /**
1884
+ *
1885
+ * @param {PageApiGetPageByTypeRequest} requestParameters Request parameters.
1886
+ * @param {*} [options] Override http request option.
1887
+ * @throws {RequiredError}
1888
+ * @memberof PageApi
1889
+ */
1890
+ getPageByType(requestParameters, options) {
1891
+ return PageApiFp(this.configuration).getPageByType(requestParameters.type, requestParameters.company, requestParameters.domain, options).then((request) => request(this.axios, this.basePath));
1892
+ }
1893
+ /**
1894
+ *
1895
+ * @param {PageApiGetPagesRequest} requestParameters Request parameters.
1896
+ * @param {*} [options] Override http request option.
1897
+ * @throws {RequiredError}
1898
+ * @memberof PageApi
1899
+ */
1900
+ getPages(requestParameters, options) {
1901
+ return PageApiFp(this.configuration).getPages(requestParameters.company, requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.domain, requestParameters.type, requestParameters.status, options).then((request) => request(this.axios, this.basePath));
1902
+ }
1903
+ }
1904
+ /**
1905
+ * ProductApi - axios parameter creator
1906
+ * @export
1907
+ */
1908
+ export const ProductApiAxiosParamCreator = function (configuration) {
1909
+ return {
1910
+ /**
1911
+ *
1912
+ * @param {string} slug
1913
+ * @param {string} domain
1914
+ * @param {*} [options] Override http request option.
1915
+ * @throws {RequiredError}
1916
+ */
1917
+ getProductBySlug: async (slug, domain, options = {}) => {
1918
+ // verify required parameter 'slug' is not null or undefined
1919
+ assertParamExists('getProductBySlug', 'slug', slug);
1920
+ // verify required parameter 'domain' is not null or undefined
1921
+ assertParamExists('getProductBySlug', 'domain', domain);
1922
+ const localVarPath = `/api/products/slug/{slug}`
1923
+ .replace(`{${"slug"}}`, encodeURIComponent(String(slug)));
1924
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1925
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1926
+ let baseOptions;
1927
+ if (configuration) {
1928
+ baseOptions = configuration.baseOptions;
1929
+ }
1930
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1931
+ const localVarHeaderParameter = {};
1932
+ const localVarQueryParameter = {};
1933
+ if (domain !== undefined) {
1934
+ localVarQueryParameter['domain'] = domain;
1935
+ }
1936
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1937
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1938
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1939
+ return {
1940
+ url: toPathString(localVarUrlObj),
1941
+ options: localVarRequestOptions,
1942
+ };
1943
+ },
1944
+ /**
1945
+ *
1946
+ * @param {string} company
1947
+ * @param {number} [page]
1948
+ * @param {PaginationLimitEnum} [itemsPerPage]
1949
+ * @param {string} [search]
1950
+ * @param {string} [startDate]
1951
+ * @param {string} [endDate]
1952
+ * @param {string} [dateField]
1953
+ * @param {OrderEnum} [order]
1954
+ * @param {string} [sort]
1955
+ * @param {string} [collections]
1956
+ * @param {string} [category]
1957
+ * @param {string} [brand]
1958
+ * @param {ContentStatusEnum} [status]
1959
+ * @param {*} [options] Override http request option.
1960
+ * @throws {RequiredError}
1961
+ */
1962
+ getProducts: async (company, page, itemsPerPage, search, startDate, endDate, dateField, order, sort, collections, category, brand, status, options = {}) => {
1963
+ // verify required parameter 'company' is not null or undefined
1964
+ assertParamExists('getProducts', 'company', company);
1965
+ const localVarPath = `/api/products`;
1966
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1967
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1968
+ let baseOptions;
1969
+ if (configuration) {
1970
+ baseOptions = configuration.baseOptions;
1971
+ }
1972
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1973
+ const localVarHeaderParameter = {};
1974
+ const localVarQueryParameter = {};
1975
+ if (page !== undefined) {
1976
+ localVarQueryParameter['page'] = page;
1977
+ }
1978
+ if (itemsPerPage !== undefined) {
1979
+ localVarQueryParameter['itemsPerPage'] = itemsPerPage;
1980
+ }
1981
+ if (search !== undefined) {
1982
+ localVarQueryParameter['search'] = search;
1983
+ }
1984
+ if (startDate !== undefined) {
1985
+ localVarQueryParameter['startDate'] = (startDate instanceof Date) ?
1986
+ startDate.toISOString() :
1987
+ startDate;
1988
+ }
1989
+ if (endDate !== undefined) {
1990
+ localVarQueryParameter['endDate'] = (endDate instanceof Date) ?
1991
+ endDate.toISOString() :
1992
+ endDate;
1993
+ }
1994
+ if (dateField !== undefined) {
1995
+ localVarQueryParameter['dateField'] = dateField;
1996
+ }
1997
+ if (order !== undefined) {
1998
+ localVarQueryParameter['order'] = order;
1999
+ }
2000
+ if (sort !== undefined) {
2001
+ localVarQueryParameter['sort'] = sort;
2002
+ }
2003
+ if (company !== undefined) {
2004
+ localVarQueryParameter['company'] = company;
2005
+ }
2006
+ if (collections !== undefined) {
2007
+ localVarQueryParameter['collections'] = collections;
2008
+ }
2009
+ if (category !== undefined) {
2010
+ localVarQueryParameter['category'] = category;
2011
+ }
2012
+ if (brand !== undefined) {
2013
+ localVarQueryParameter['brand'] = brand;
2014
+ }
2015
+ if (status !== undefined) {
2016
+ localVarQueryParameter['status'] = status;
2017
+ }
2018
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2019
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2020
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2021
+ return {
2022
+ url: toPathString(localVarUrlObj),
2023
+ options: localVarRequestOptions,
2024
+ };
2025
+ },
2026
+ /**
2027
+ *
2028
+ * @param {string} company
2029
+ * @param {string} search
2030
+ * @param {*} [options] Override http request option.
2031
+ * @throws {RequiredError}
2032
+ */
2033
+ searchProducts: async (company, search, options = {}) => {
2034
+ // verify required parameter 'company' is not null or undefined
2035
+ assertParamExists('searchProducts', 'company', company);
2036
+ // verify required parameter 'search' is not null or undefined
2037
+ assertParamExists('searchProducts', 'search', search);
2038
+ const localVarPath = `/api/products/search`;
2039
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2040
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2041
+ let baseOptions;
2042
+ if (configuration) {
2043
+ baseOptions = configuration.baseOptions;
2044
+ }
2045
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
2046
+ const localVarHeaderParameter = {};
2047
+ const localVarQueryParameter = {};
2048
+ if (company !== undefined) {
2049
+ localVarQueryParameter['company'] = company;
2050
+ }
2051
+ if (search !== undefined) {
2052
+ localVarQueryParameter['search'] = search;
2053
+ }
2054
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2055
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2056
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2057
+ return {
2058
+ url: toPathString(localVarUrlObj),
2059
+ options: localVarRequestOptions,
2060
+ };
2061
+ },
2062
+ };
2063
+ };
2064
+ /**
2065
+ * ProductApi - functional programming interface
2066
+ * @export
2067
+ */
2068
+ export const ProductApiFp = function (configuration) {
2069
+ const localVarAxiosParamCreator = ProductApiAxiosParamCreator(configuration);
2070
+ return {
2071
+ /**
2072
+ *
2073
+ * @param {string} slug
2074
+ * @param {string} domain
2075
+ * @param {*} [options] Override http request option.
2076
+ * @throws {RequiredError}
2077
+ */
2078
+ async getProductBySlug(slug, domain, options) {
2079
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getProductBySlug(slug, domain, options);
2080
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2081
+ const localVarOperationServerBasePath = operationServerMap['ProductApi.getProductBySlug']?.[localVarOperationServerIndex]?.url;
2082
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2083
+ },
2084
+ /**
2085
+ *
2086
+ * @param {string} company
2087
+ * @param {number} [page]
2088
+ * @param {PaginationLimitEnum} [itemsPerPage]
2089
+ * @param {string} [search]
2090
+ * @param {string} [startDate]
2091
+ * @param {string} [endDate]
2092
+ * @param {string} [dateField]
2093
+ * @param {OrderEnum} [order]
2094
+ * @param {string} [sort]
2095
+ * @param {string} [collections]
2096
+ * @param {string} [category]
2097
+ * @param {string} [brand]
2098
+ * @param {ContentStatusEnum} [status]
2099
+ * @param {*} [options] Override http request option.
2100
+ * @throws {RequiredError}
2101
+ */
2102
+ async getProducts(company, page, itemsPerPage, search, startDate, endDate, dateField, order, sort, collections, category, brand, status, options) {
2103
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getProducts(company, page, itemsPerPage, search, startDate, endDate, dateField, order, sort, collections, category, brand, status, options);
2104
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2105
+ const localVarOperationServerBasePath = operationServerMap['ProductApi.getProducts']?.[localVarOperationServerIndex]?.url;
2106
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2107
+ },
2108
+ /**
2109
+ *
2110
+ * @param {string} company
2111
+ * @param {string} search
2112
+ * @param {*} [options] Override http request option.
2113
+ * @throws {RequiredError}
2114
+ */
2115
+ async searchProducts(company, search, options) {
2116
+ const localVarAxiosArgs = await localVarAxiosParamCreator.searchProducts(company, search, options);
2117
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2118
+ const localVarOperationServerBasePath = operationServerMap['ProductApi.searchProducts']?.[localVarOperationServerIndex]?.url;
2119
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2120
+ },
2121
+ };
2122
+ };
2123
+ /**
2124
+ * ProductApi - factory interface
2125
+ * @export
2126
+ */
2127
+ export const ProductApiFactory = function (configuration, basePath, axios) {
2128
+ const localVarFp = ProductApiFp(configuration);
2129
+ return {
2130
+ /**
2131
+ *
2132
+ * @param {ProductApiGetProductBySlugRequest} requestParameters Request parameters.
2133
+ * @param {*} [options] Override http request option.
2134
+ * @throws {RequiredError}
2135
+ */
2136
+ getProductBySlug(requestParameters, options) {
2137
+ return localVarFp.getProductBySlug(requestParameters.slug, requestParameters.domain, options).then((request) => request(axios, basePath));
2138
+ },
2139
+ /**
2140
+ *
2141
+ * @param {ProductApiGetProductsRequest} requestParameters Request parameters.
2142
+ * @param {*} [options] Override http request option.
2143
+ * @throws {RequiredError}
2144
+ */
2145
+ getProducts(requestParameters, options) {
2146
+ return localVarFp.getProducts(requestParameters.company, requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.collections, requestParameters.category, requestParameters.brand, requestParameters.status, options).then((request) => request(axios, basePath));
2147
+ },
2148
+ /**
2149
+ *
2150
+ * @param {ProductApiSearchProductsRequest} requestParameters Request parameters.
2151
+ * @param {*} [options] Override http request option.
2152
+ * @throws {RequiredError}
2153
+ */
2154
+ searchProducts(requestParameters, options) {
2155
+ return localVarFp.searchProducts(requestParameters.company, requestParameters.search, options).then((request) => request(axios, basePath));
2156
+ },
2157
+ };
2158
+ };
2159
+ /**
2160
+ * ProductApi - object-oriented interface
2161
+ * @export
2162
+ * @class ProductApi
2163
+ * @extends {BaseAPI}
2164
+ */
2165
+ export class ProductApi extends BaseAPI {
2166
+ /**
2167
+ *
2168
+ * @param {ProductApiGetProductBySlugRequest} requestParameters Request parameters.
2169
+ * @param {*} [options] Override http request option.
2170
+ * @throws {RequiredError}
2171
+ * @memberof ProductApi
2172
+ */
2173
+ getProductBySlug(requestParameters, options) {
2174
+ return ProductApiFp(this.configuration).getProductBySlug(requestParameters.slug, requestParameters.domain, options).then((request) => request(this.axios, this.basePath));
2175
+ }
2176
+ /**
2177
+ *
2178
+ * @param {ProductApiGetProductsRequest} requestParameters Request parameters.
2179
+ * @param {*} [options] Override http request option.
2180
+ * @throws {RequiredError}
2181
+ * @memberof ProductApi
2182
+ */
2183
+ getProducts(requestParameters, options) {
2184
+ return ProductApiFp(this.configuration).getProducts(requestParameters.company, requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.collections, requestParameters.category, requestParameters.brand, requestParameters.status, options).then((request) => request(this.axios, this.basePath));
2185
+ }
2186
+ /**
2187
+ *
2188
+ * @param {ProductApiSearchProductsRequest} requestParameters Request parameters.
2189
+ * @param {*} [options] Override http request option.
2190
+ * @throws {RequiredError}
2191
+ * @memberof ProductApi
2192
+ */
2193
+ searchProducts(requestParameters, options) {
2194
+ return ProductApiFp(this.configuration).searchProducts(requestParameters.company, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
2195
+ }
2196
+ }
2197
+ /**
2198
+ * UserApi - axios parameter creator
2199
+ * @export
2200
+ */
2201
+ export const UserApiAxiosParamCreator = function (configuration) {
2202
+ return {
2203
+ /**
2204
+ *
2205
+ * @param {string} id
2206
+ * @param {*} [options] Override http request option.
2207
+ * @throws {RequiredError}
2208
+ */
2209
+ deleteUser: async (id, options = {}) => {
2210
+ // verify required parameter 'id' is not null or undefined
2211
+ assertParamExists('deleteUser', 'id', id);
2212
+ const localVarPath = `/api/users/{id}`
2213
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
2214
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2215
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2216
+ let baseOptions;
2217
+ if (configuration) {
2218
+ baseOptions = configuration.baseOptions;
2219
+ }
2220
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
2221
+ const localVarHeaderParameter = {};
2222
+ const localVarQueryParameter = {};
2223
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2224
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2225
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2226
+ return {
2227
+ url: toPathString(localVarUrlObj),
2228
+ options: localVarRequestOptions,
2229
+ };
2230
+ },
2231
+ /**
2232
+ *
2233
+ * @param {string} id
2234
+ * @param {*} [options] Override http request option.
2235
+ * @throws {RequiredError}
2236
+ */
2237
+ getUserById: async (id, options = {}) => {
2238
+ // verify required parameter 'id' is not null or undefined
2239
+ assertParamExists('getUserById', 'id', id);
2240
+ const localVarPath = `/api/users/{id}`
2241
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
2242
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2243
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2244
+ let baseOptions;
2245
+ if (configuration) {
2246
+ baseOptions = configuration.baseOptions;
2247
+ }
2248
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
2249
+ const localVarHeaderParameter = {};
2250
+ const localVarQueryParameter = {};
2251
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2252
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2253
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2254
+ return {
2255
+ url: toPathString(localVarUrlObj),
2256
+ options: localVarRequestOptions,
2257
+ };
2258
+ },
2259
+ /**
2260
+ *
2261
+ * @param {*} [options] Override http request option.
2262
+ * @throws {RequiredError}
2263
+ */
2264
+ me: async (options = {}) => {
2265
+ const localVarPath = `/api/users/me`;
2266
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2267
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2268
+ let baseOptions;
2269
+ if (configuration) {
2270
+ baseOptions = configuration.baseOptions;
2271
+ }
2272
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
2273
+ const localVarHeaderParameter = {};
2274
+ const localVarQueryParameter = {};
2275
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2276
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2277
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2278
+ return {
2279
+ url: toPathString(localVarUrlObj),
2280
+ options: localVarRequestOptions,
2281
+ };
2282
+ },
2283
+ /**
2284
+ *
2285
+ * @param {string} id
2286
+ * @param {IUserPatchRequest} iUserPatchRequest
2287
+ * @param {*} [options] Override http request option.
2288
+ * @throws {RequiredError}
2289
+ */
2290
+ updateUser: async (id, iUserPatchRequest, options = {}) => {
2291
+ // verify required parameter 'id' is not null or undefined
2292
+ assertParamExists('updateUser', 'id', id);
2293
+ // verify required parameter 'iUserPatchRequest' is not null or undefined
2294
+ assertParamExists('updateUser', 'iUserPatchRequest', iUserPatchRequest);
2295
+ const localVarPath = `/api/users/{id}`
2296
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
2297
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2298
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2299
+ let baseOptions;
2300
+ if (configuration) {
2301
+ baseOptions = configuration.baseOptions;
2302
+ }
2303
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options };
2304
+ const localVarHeaderParameter = {};
2305
+ const localVarQueryParameter = {};
2306
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2307
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2308
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2309
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2310
+ localVarRequestOptions.data = serializeDataIfNeeded(iUserPatchRequest, localVarRequestOptions, configuration);
2311
+ return {
2312
+ url: toPathString(localVarUrlObj),
2313
+ options: localVarRequestOptions,
2314
+ };
2315
+ },
2316
+ /**
2317
+ *
2318
+ * @param {IVerifyUserRequest} iVerifyUserRequest
2319
+ * @param {*} [options] Override http request option.
2320
+ * @throws {RequiredError}
2321
+ */
2322
+ verifyUser: async (iVerifyUserRequest, options = {}) => {
2323
+ // verify required parameter 'iVerifyUserRequest' is not null or undefined
2324
+ assertParamExists('verifyUser', 'iVerifyUserRequest', iVerifyUserRequest);
2325
+ const localVarPath = `/api/users/verify`;
2326
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2327
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2328
+ let baseOptions;
2329
+ if (configuration) {
2330
+ baseOptions = configuration.baseOptions;
2331
+ }
2332
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
2333
+ const localVarHeaderParameter = {};
2334
+ const localVarQueryParameter = {};
2335
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2336
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2337
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2338
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2339
+ localVarRequestOptions.data = serializeDataIfNeeded(iVerifyUserRequest, localVarRequestOptions, configuration);
2340
+ return {
2341
+ url: toPathString(localVarUrlObj),
2342
+ options: localVarRequestOptions,
2343
+ };
2344
+ },
2345
+ };
2346
+ };
2347
+ /**
2348
+ * UserApi - functional programming interface
2349
+ * @export
2350
+ */
2351
+ export const UserApiFp = function (configuration) {
2352
+ const localVarAxiosParamCreator = UserApiAxiosParamCreator(configuration);
2353
+ return {
2354
+ /**
2355
+ *
2356
+ * @param {string} id
2357
+ * @param {*} [options] Override http request option.
2358
+ * @throws {RequiredError}
2359
+ */
2360
+ async deleteUser(id, options) {
2361
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteUser(id, options);
2362
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2363
+ const localVarOperationServerBasePath = operationServerMap['UserApi.deleteUser']?.[localVarOperationServerIndex]?.url;
2364
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2365
+ },
2366
+ /**
2367
+ *
2368
+ * @param {string} id
2369
+ * @param {*} [options] Override http request option.
2370
+ * @throws {RequiredError}
2371
+ */
2372
+ async getUserById(id, options) {
2373
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getUserById(id, options);
2374
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2375
+ const localVarOperationServerBasePath = operationServerMap['UserApi.getUserById']?.[localVarOperationServerIndex]?.url;
2376
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2377
+ },
2378
+ /**
2379
+ *
2380
+ * @param {*} [options] Override http request option.
2381
+ * @throws {RequiredError}
2382
+ */
2383
+ async me(options) {
2384
+ const localVarAxiosArgs = await localVarAxiosParamCreator.me(options);
2385
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2386
+ const localVarOperationServerBasePath = operationServerMap['UserApi.me']?.[localVarOperationServerIndex]?.url;
2387
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2388
+ },
2389
+ /**
2390
+ *
2391
+ * @param {string} id
2392
+ * @param {IUserPatchRequest} iUserPatchRequest
2393
+ * @param {*} [options] Override http request option.
2394
+ * @throws {RequiredError}
2395
+ */
2396
+ async updateUser(id, iUserPatchRequest, options) {
2397
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateUser(id, iUserPatchRequest, options);
2398
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2399
+ const localVarOperationServerBasePath = operationServerMap['UserApi.updateUser']?.[localVarOperationServerIndex]?.url;
2400
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2401
+ },
2402
+ /**
2403
+ *
2404
+ * @param {IVerifyUserRequest} iVerifyUserRequest
2405
+ * @param {*} [options] Override http request option.
2406
+ * @throws {RequiredError}
2407
+ */
2408
+ async verifyUser(iVerifyUserRequest, options) {
2409
+ const localVarAxiosArgs = await localVarAxiosParamCreator.verifyUser(iVerifyUserRequest, options);
2410
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2411
+ const localVarOperationServerBasePath = operationServerMap['UserApi.verifyUser']?.[localVarOperationServerIndex]?.url;
2412
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2413
+ },
2414
+ };
2415
+ };
2416
+ /**
2417
+ * UserApi - factory interface
2418
+ * @export
2419
+ */
2420
+ export const UserApiFactory = function (configuration, basePath, axios) {
2421
+ const localVarFp = UserApiFp(configuration);
2422
+ return {
2423
+ /**
2424
+ *
2425
+ * @param {UserApiDeleteUserRequest} requestParameters Request parameters.
2426
+ * @param {*} [options] Override http request option.
2427
+ * @throws {RequiredError}
2428
+ */
2429
+ deleteUser(requestParameters, options) {
2430
+ return localVarFp.deleteUser(requestParameters.id, options).then((request) => request(axios, basePath));
2431
+ },
2432
+ /**
2433
+ *
2434
+ * @param {UserApiGetUserByIdRequest} requestParameters Request parameters.
2435
+ * @param {*} [options] Override http request option.
2436
+ * @throws {RequiredError}
2437
+ */
2438
+ getUserById(requestParameters, options) {
2439
+ return localVarFp.getUserById(requestParameters.id, options).then((request) => request(axios, basePath));
2440
+ },
2441
+ /**
2442
+ *
2443
+ * @param {*} [options] Override http request option.
2444
+ * @throws {RequiredError}
2445
+ */
2446
+ me(options) {
2447
+ return localVarFp.me(options).then((request) => request(axios, basePath));
2448
+ },
2449
+ /**
2450
+ *
2451
+ * @param {UserApiUpdateUserRequest} requestParameters Request parameters.
2452
+ * @param {*} [options] Override http request option.
2453
+ * @throws {RequiredError}
2454
+ */
2455
+ updateUser(requestParameters, options) {
2456
+ return localVarFp.updateUser(requestParameters.id, requestParameters.iUserPatchRequest, options).then((request) => request(axios, basePath));
2457
+ },
2458
+ /**
2459
+ *
2460
+ * @param {UserApiVerifyUserRequest} requestParameters Request parameters.
2461
+ * @param {*} [options] Override http request option.
2462
+ * @throws {RequiredError}
2463
+ */
2464
+ verifyUser(requestParameters, options) {
2465
+ return localVarFp.verifyUser(requestParameters.iVerifyUserRequest, options).then((request) => request(axios, basePath));
2466
+ },
2467
+ };
2468
+ };
2469
+ /**
2470
+ * UserApi - object-oriented interface
2471
+ * @export
2472
+ * @class UserApi
2473
+ * @extends {BaseAPI}
2474
+ */
2475
+ export class UserApi extends BaseAPI {
2476
+ /**
2477
+ *
2478
+ * @param {UserApiDeleteUserRequest} requestParameters Request parameters.
2479
+ * @param {*} [options] Override http request option.
2480
+ * @throws {RequiredError}
2481
+ * @memberof UserApi
2482
+ */
2483
+ deleteUser(requestParameters, options) {
2484
+ return UserApiFp(this.configuration).deleteUser(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
2485
+ }
2486
+ /**
2487
+ *
2488
+ * @param {UserApiGetUserByIdRequest} requestParameters Request parameters.
2489
+ * @param {*} [options] Override http request option.
2490
+ * @throws {RequiredError}
2491
+ * @memberof UserApi
2492
+ */
2493
+ getUserById(requestParameters, options) {
2494
+ return UserApiFp(this.configuration).getUserById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
2495
+ }
2496
+ /**
2497
+ *
2498
+ * @param {*} [options] Override http request option.
2499
+ * @throws {RequiredError}
2500
+ * @memberof UserApi
2501
+ */
2502
+ me(options) {
2503
+ return UserApiFp(this.configuration).me(options).then((request) => request(this.axios, this.basePath));
2504
+ }
2505
+ /**
2506
+ *
2507
+ * @param {UserApiUpdateUserRequest} requestParameters Request parameters.
2508
+ * @param {*} [options] Override http request option.
2509
+ * @throws {RequiredError}
2510
+ * @memberof UserApi
2511
+ */
2512
+ updateUser(requestParameters, options) {
2513
+ return UserApiFp(this.configuration).updateUser(requestParameters.id, requestParameters.iUserPatchRequest, options).then((request) => request(this.axios, this.basePath));
2514
+ }
2515
+ /**
2516
+ *
2517
+ * @param {UserApiVerifyUserRequest} requestParameters Request parameters.
2518
+ * @param {*} [options] Override http request option.
2519
+ * @throws {RequiredError}
2520
+ * @memberof UserApi
2521
+ */
2522
+ verifyUser(requestParameters, options) {
2523
+ return UserApiFp(this.configuration).verifyUser(requestParameters.iVerifyUserRequest, options).then((request) => request(this.axios, this.basePath));
2524
+ }
2525
+ }