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