@infisale-client/api-client 1.2.22 → 1.2.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/api/api.js CHANGED
@@ -16,8 +16,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
16
16
  return (mod && mod.__esModule) ? mod : { "default": mod };
17
17
  };
18
18
  Object.defineProperty(exports, "__esModule", { value: true });
19
- exports.CollectionApiFp = exports.CollectionApiAxiosParamCreator = exports.BasketApi = exports.BasketApiFactory = exports.BasketApiFp = exports.BasketApiAxiosParamCreator = 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.SitemapTypeEnum = exports.ProductDetailImageZoomTypeEnum = exports.PlanTypeEnum = exports.PlanStatusEnum = exports.PlanCurrencyEnum = exports.PaymentMethodEnum = exports.PageTypeEnum = exports.OrderStatusEnum = exports.OrderEnum = exports.OperationStatusEnum = exports.NotificationStatusEnum = exports.NotificationMessageEnum = exports.NavigationUrlTargetEnum = exports.LanguageEnum = exports.FontSizeEnum = exports.FileTypeEnum = exports.FileStatusEnum = exports.FileKeywordEnum = 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.SitemapApi = exports.SitemapApiFactory = exports.SitemapApiFp = exports.SitemapApiAxiosParamCreator = exports.ProductApi = exports.ProductApiFactory = exports.ProductApiFp = exports.ProductApiAxiosParamCreator = exports.PageApi = exports.PageApiFactory = exports.PageApiFp = exports.PageApiAxiosParamCreator = exports.OrderApi = exports.OrderApiFactory = exports.OrderApiFp = exports.OrderApiAxiosParamCreator = exports.ContactFormApi = exports.ContactFormApiFactory = exports.ContactFormApiFp = exports.ContactFormApiAxiosParamCreator = exports.CompanyApi = exports.CompanyApiFactory = exports.CompanyApiFp = exports.CompanyApiAxiosParamCreator = exports.CollectionApi = exports.CollectionApiFactory = void 0;
19
+ exports.TimezoneEnum = exports.ThemeTypeEnum = exports.TemplateTypeEnum = exports.SitemapTypeEnum = exports.ProductDetailImageZoomTypeEnum = exports.PlanTypeEnum = exports.PlanStatusEnum = exports.PlanCurrencyEnum = exports.PaymentMethodEnum = exports.PaymentGatewayEnum = exports.PageTypeEnum = exports.OrderStatusEnum = exports.OrderEnum = exports.OperationStatusEnum = exports.NotificationStatusEnum = exports.NotificationMessageEnum = exports.NavigationUrlTargetEnum = exports.LanguageEnum = exports.IUserCollectionQueryParamsDateFieldEnum = exports.IProductCollectionQueryParamsDateFieldEnum = exports.IPlanCollectionQueryParamsDateFieldEnum = exports.IPageCollectionQueryParamsDateFieldEnum = exports.IOrderCollectionQueryParamsDateFieldEnum = exports.IOperationCollectionQueryParamsDateFieldEnum = exports.INotificationCollectionQueryParamsDateFieldEnum = exports.IMyOrderCollectionQueryParamsDateFieldEnum = exports.IFileCollectionQueryParamsDateFieldEnum = exports.IContactFormCollectionQueryParamsDateFieldEnum = exports.ICompanyUsersCollectionQueryParamsDateFieldEnum = exports.ICompanyCollectionQueryParamsDateFieldEnum = exports.ICollectionCollectionsQueryParamsDateFieldEnum = exports.ICategoryCollectionQueryParamsDateFieldEnum = exports.IBrandCollectionQueryParamsDateFieldEnum = exports.FontSizeEnum = exports.FileTypeEnum = exports.FileStatusEnum = exports.FileKeywordEnum = 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.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.SitemapApi = exports.SitemapApiFactory = exports.SitemapApiFp = exports.SitemapApiAxiosParamCreator = exports.GetProductsDateFieldEnum = exports.ProductApi = exports.ProductApiFactory = exports.ProductApiFp = exports.ProductApiAxiosParamCreator = exports.GetPagesDateFieldEnum = exports.PageApi = exports.PageApiFactory = exports.PageApiFp = exports.PageApiAxiosParamCreator = exports.GetOrdersDateFieldEnum = exports.GetMyOrdersDateFieldEnum = exports.OrderApi = exports.OrderApiFactory = exports.OrderApiFp = exports.OrderApiAxiosParamCreator = exports.ContactFormApi = exports.ContactFormApiFactory = exports.ContactFormApiFp = exports.ContactFormApiAxiosParamCreator = exports.CompanyApi = exports.CompanyApiFactory = exports.CompanyApiFp = exports.CompanyApiAxiosParamCreator = exports.GetCollectionsDateFieldEnum = exports.CollectionApi = exports.CollectionApiFactory = exports.CollectionApiFp = exports.CollectionApiAxiosParamCreator = exports.BasketApi = exports.BasketApiFactory = exports.BasketApiFp = exports.BasketApiAxiosParamCreator = exports.AuthApi = exports.AuthApiFactory = exports.AuthApiFp = exports.AuthApiAxiosParamCreator = exports.AddressApi = exports.AddressApiFactory = exports.AddressApiFp = exports.AddressApiAxiosParamCreator = exports.UserStatusEnum = exports.UserRoleEnum = void 0;
21
+ exports.UserApi = void 0;
21
22
  const axios_1 = __importDefault(require("axios"));
22
23
  // Some imports not used depending on template conditions
23
24
  // @ts-ignore
@@ -479,6 +480,66 @@ exports.FontSizeEnum = {
479
480
  _4XL: 'text-4xl',
480
481
  _6XL: 'text-6xl'
481
482
  };
483
+ exports.IBrandCollectionQueryParamsDateFieldEnum = {
484
+ CREATED_AT: 'createdAt',
485
+ UPDATED_AT: 'updatedAt'
486
+ };
487
+ exports.ICategoryCollectionQueryParamsDateFieldEnum = {
488
+ CREATED_AT: 'createdAt',
489
+ UPDATED_AT: 'updatedAt'
490
+ };
491
+ exports.ICollectionCollectionsQueryParamsDateFieldEnum = {
492
+ CREATED_AT: 'createdAt',
493
+ UPDATED_AT: 'updatedAt'
494
+ };
495
+ exports.ICompanyCollectionQueryParamsDateFieldEnum = {
496
+ CREATED_AT: 'createdAt',
497
+ UPDATED_AT: 'updatedAt'
498
+ };
499
+ exports.ICompanyUsersCollectionQueryParamsDateFieldEnum = {
500
+ CREATED_AT: 'createdAt',
501
+ UPDATED_AT: 'updatedAt'
502
+ };
503
+ exports.IContactFormCollectionQueryParamsDateFieldEnum = {
504
+ CREATED_AT: 'createdAt',
505
+ UPDATED_AT: 'updatedAt'
506
+ };
507
+ exports.IFileCollectionQueryParamsDateFieldEnum = {
508
+ CREATED_AT: 'createdAt',
509
+ UPDATED_AT: 'updatedAt'
510
+ };
511
+ exports.IMyOrderCollectionQueryParamsDateFieldEnum = {
512
+ CREATED_AT: 'createdAt',
513
+ UPDATED_AT: 'updatedAt'
514
+ };
515
+ exports.INotificationCollectionQueryParamsDateFieldEnum = {
516
+ CREATED_AT: 'createdAt',
517
+ UPDATED_AT: 'updatedAt'
518
+ };
519
+ exports.IOperationCollectionQueryParamsDateFieldEnum = {
520
+ CREATED_AT: 'createdAt',
521
+ UPDATED_AT: 'updatedAt'
522
+ };
523
+ exports.IOrderCollectionQueryParamsDateFieldEnum = {
524
+ CREATED_AT: 'createdAt',
525
+ UPDATED_AT: 'updatedAt'
526
+ };
527
+ exports.IPageCollectionQueryParamsDateFieldEnum = {
528
+ CREATED_AT: 'createdAt',
529
+ UPDATED_AT: 'updatedAt'
530
+ };
531
+ exports.IPlanCollectionQueryParamsDateFieldEnum = {
532
+ CREATED_AT: 'createdAt',
533
+ UPDATED_AT: 'updatedAt'
534
+ };
535
+ exports.IProductCollectionQueryParamsDateFieldEnum = {
536
+ CREATED_AT: 'createdAt',
537
+ UPDATED_AT: 'updatedAt'
538
+ };
539
+ exports.IUserCollectionQueryParamsDateFieldEnum = {
540
+ CREATED_AT: 'createdAt',
541
+ UPDATED_AT: 'updatedAt'
542
+ };
482
543
  /**
483
544
  *
484
545
  * @export
@@ -559,6 +620,14 @@ exports.PageTypeEnum = {
559
620
  CHECKOUT: 'checkout',
560
621
  NOT_FOUND: 'not-found'
561
622
  };
623
+ /**
624
+ *
625
+ * @export
626
+ * @enum {string}
627
+ */
628
+ exports.PaymentGatewayEnum = {
629
+ IYZICO: 'iyzico'
630
+ };
562
631
  /**
563
632
  *
564
633
  * @export
@@ -1828,7 +1897,7 @@ const CollectionApiAxiosParamCreator = function (configuration) {
1828
1897
  * @param {string} [search]
1829
1898
  * @param {string} [startDate]
1830
1899
  * @param {string} [endDate]
1831
- * @param {string} [dateField]
1900
+ * @param {GetCollectionsDateFieldEnum} [dateField]
1832
1901
  * @param {OrderEnum} [order]
1833
1902
  * @param {string} [sort]
1834
1903
  * @param {ContentStatusEnum} [status]
@@ -1921,7 +1990,7 @@ const CollectionApiFp = function (configuration) {
1921
1990
  * @param {string} [search]
1922
1991
  * @param {string} [startDate]
1923
1992
  * @param {string} [endDate]
1924
- * @param {string} [dateField]
1993
+ * @param {GetCollectionsDateFieldEnum} [dateField]
1925
1994
  * @param {OrderEnum} [order]
1926
1995
  * @param {string} [sort]
1927
1996
  * @param {ContentStatusEnum} [status]
@@ -1994,6 +2063,13 @@ class CollectionApi extends base_1.BaseAPI {
1994
2063
  }
1995
2064
  }
1996
2065
  exports.CollectionApi = CollectionApi;
2066
+ /**
2067
+ * @export
2068
+ */
2069
+ exports.GetCollectionsDateFieldEnum = {
2070
+ CREATED_AT: 'createdAt',
2071
+ UPDATED_AT: 'updatedAt'
2072
+ };
1997
2073
  /**
1998
2074
  * CompanyApi - axios parameter creator
1999
2075
  * @export
@@ -2226,11 +2302,19 @@ const OrderApiAxiosParamCreator = function (configuration) {
2226
2302
  },
2227
2303
  /**
2228
2304
  *
2305
+ * @param {number} [page]
2306
+ * @param {number} [itemsPerPage]
2307
+ * @param {string} [search]
2308
+ * @param {string} [startDate]
2309
+ * @param {string} [endDate]
2310
+ * @param {GetMyOrdersDateFieldEnum} [dateField]
2311
+ * @param {OrderEnum} [order]
2312
+ * @param {string} [sort]
2229
2313
  * @param {OrderStatusEnum} [status]
2230
2314
  * @param {*} [options] Override http request option.
2231
2315
  * @throws {RequiredError}
2232
2316
  */
2233
- getMyOrders: async (status, options = {}) => {
2317
+ getMyOrders: async (page, itemsPerPage, search, startDate, endDate, dateField, order, sort, status, options = {}) => {
2234
2318
  const localVarPath = `/api/orders/my`;
2235
2319
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2236
2320
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -2241,6 +2325,34 @@ const OrderApiAxiosParamCreator = function (configuration) {
2241
2325
  const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
2242
2326
  const localVarHeaderParameter = {};
2243
2327
  const localVarQueryParameter = {};
2328
+ if (page !== undefined) {
2329
+ localVarQueryParameter['page'] = page;
2330
+ }
2331
+ if (itemsPerPage !== undefined) {
2332
+ localVarQueryParameter['itemsPerPage'] = itemsPerPage;
2333
+ }
2334
+ if (search !== undefined) {
2335
+ localVarQueryParameter['search'] = search;
2336
+ }
2337
+ if (startDate !== undefined) {
2338
+ localVarQueryParameter['startDate'] = (startDate instanceof Date) ?
2339
+ startDate.toISOString() :
2340
+ startDate;
2341
+ }
2342
+ if (endDate !== undefined) {
2343
+ localVarQueryParameter['endDate'] = (endDate instanceof Date) ?
2344
+ endDate.toISOString() :
2345
+ endDate;
2346
+ }
2347
+ if (dateField !== undefined) {
2348
+ localVarQueryParameter['dateField'] = dateField;
2349
+ }
2350
+ if (order !== undefined) {
2351
+ localVarQueryParameter['order'] = order;
2352
+ }
2353
+ if (sort !== undefined) {
2354
+ localVarQueryParameter['sort'] = sort;
2355
+ }
2244
2356
  if (status !== undefined) {
2245
2357
  localVarQueryParameter['status'] = status;
2246
2358
  }
@@ -2288,7 +2400,7 @@ const OrderApiAxiosParamCreator = function (configuration) {
2288
2400
  * @param {string} [search]
2289
2401
  * @param {string} [startDate]
2290
2402
  * @param {string} [endDate]
2291
- * @param {string} [dateField]
2403
+ * @param {GetOrdersDateFieldEnum} [dateField]
2292
2404
  * @param {OrderEnum} [order]
2293
2405
  * @param {string} [sort]
2294
2406
  * @param {string} [user]
@@ -2378,12 +2490,20 @@ const OrderApiFp = function (configuration) {
2378
2490
  },
2379
2491
  /**
2380
2492
  *
2493
+ * @param {number} [page]
2494
+ * @param {number} [itemsPerPage]
2495
+ * @param {string} [search]
2496
+ * @param {string} [startDate]
2497
+ * @param {string} [endDate]
2498
+ * @param {GetMyOrdersDateFieldEnum} [dateField]
2499
+ * @param {OrderEnum} [order]
2500
+ * @param {string} [sort]
2381
2501
  * @param {OrderStatusEnum} [status]
2382
2502
  * @param {*} [options] Override http request option.
2383
2503
  * @throws {RequiredError}
2384
2504
  */
2385
- async getMyOrders(status, options) {
2386
- const localVarAxiosArgs = await localVarAxiosParamCreator.getMyOrders(status, options);
2505
+ async getMyOrders(page, itemsPerPage, search, startDate, endDate, dateField, order, sort, status, options) {
2506
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getMyOrders(page, itemsPerPage, search, startDate, endDate, dateField, order, sort, status, options);
2387
2507
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2388
2508
  const localVarOperationServerBasePath = base_1.operationServerMap['OrderApi.getMyOrders']?.[localVarOperationServerIndex]?.url;
2389
2509
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -2408,7 +2528,7 @@ const OrderApiFp = function (configuration) {
2408
2528
  * @param {string} [search]
2409
2529
  * @param {string} [startDate]
2410
2530
  * @param {string} [endDate]
2411
- * @param {string} [dateField]
2531
+ * @param {GetOrdersDateFieldEnum} [dateField]
2412
2532
  * @param {OrderEnum} [order]
2413
2533
  * @param {string} [sort]
2414
2534
  * @param {string} [user]
@@ -2448,7 +2568,7 @@ const OrderApiFactory = function (configuration, basePath, axios) {
2448
2568
  * @throws {RequiredError}
2449
2569
  */
2450
2570
  getMyOrders(requestParameters = {}, options) {
2451
- return localVarFp.getMyOrders(requestParameters.status, options).then((request) => request(axios, basePath));
2571
+ return localVarFp.getMyOrders(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.status, options).then((request) => request(axios, basePath));
2452
2572
  },
2453
2573
  /**
2454
2574
  *
@@ -2496,7 +2616,7 @@ class OrderApi extends base_1.BaseAPI {
2496
2616
  * @memberof OrderApi
2497
2617
  */
2498
2618
  getMyOrders(requestParameters = {}, options) {
2499
- return (0, exports.OrderApiFp)(this.configuration).getMyOrders(requestParameters.status, options).then((request) => request(this.axios, this.basePath));
2619
+ return (0, exports.OrderApiFp)(this.configuration).getMyOrders(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));
2500
2620
  }
2501
2621
  /**
2502
2622
  *
@@ -2520,6 +2640,20 @@ class OrderApi extends base_1.BaseAPI {
2520
2640
  }
2521
2641
  }
2522
2642
  exports.OrderApi = OrderApi;
2643
+ /**
2644
+ * @export
2645
+ */
2646
+ exports.GetMyOrdersDateFieldEnum = {
2647
+ CREATED_AT: 'createdAt',
2648
+ UPDATED_AT: 'updatedAt'
2649
+ };
2650
+ /**
2651
+ * @export
2652
+ */
2653
+ exports.GetOrdersDateFieldEnum = {
2654
+ CREATED_AT: 'createdAt',
2655
+ UPDATED_AT: 'updatedAt'
2656
+ };
2523
2657
  /**
2524
2658
  * PageApi - axios parameter creator
2525
2659
  * @export
@@ -2609,7 +2743,7 @@ const PageApiAxiosParamCreator = function (configuration) {
2609
2743
  * @param {string} [search]
2610
2744
  * @param {string} [startDate]
2611
2745
  * @param {string} [endDate]
2612
- * @param {string} [dateField]
2746
+ * @param {GetPagesDateFieldEnum} [dateField]
2613
2747
  * @param {OrderEnum} [order]
2614
2748
  * @param {string} [sort]
2615
2749
  * @param {string} [companyId]
@@ -2724,7 +2858,7 @@ const PageApiFp = function (configuration) {
2724
2858
  * @param {string} [search]
2725
2859
  * @param {string} [startDate]
2726
2860
  * @param {string} [endDate]
2727
- * @param {string} [dateField]
2861
+ * @param {GetPagesDateFieldEnum} [dateField]
2728
2862
  * @param {OrderEnum} [order]
2729
2863
  * @param {string} [sort]
2730
2864
  * @param {string} [companyId]
@@ -2819,6 +2953,13 @@ class PageApi extends base_1.BaseAPI {
2819
2953
  }
2820
2954
  }
2821
2955
  exports.PageApi = PageApi;
2956
+ /**
2957
+ * @export
2958
+ */
2959
+ exports.GetPagesDateFieldEnum = {
2960
+ CREATED_AT: 'createdAt',
2961
+ UPDATED_AT: 'updatedAt'
2962
+ };
2822
2963
  /**
2823
2964
  * ProductApi - axios parameter creator
2824
2965
  * @export
@@ -2868,7 +3009,7 @@ const ProductApiAxiosParamCreator = function (configuration) {
2868
3009
  * @param {string} [search]
2869
3010
  * @param {string} [startDate]
2870
3011
  * @param {string} [endDate]
2871
- * @param {string} [dateField]
3012
+ * @param {GetProductsDateFieldEnum} [dateField]
2872
3013
  * @param {OrderEnum} [order]
2873
3014
  * @param {string} [sort]
2874
3015
  * @param {string} [companyId]
@@ -3014,7 +3155,7 @@ const ProductApiFp = function (configuration) {
3014
3155
  * @param {string} [search]
3015
3156
  * @param {string} [startDate]
3016
3157
  * @param {string} [endDate]
3017
- * @param {string} [dateField]
3158
+ * @param {GetProductsDateFieldEnum} [dateField]
3018
3159
  * @param {OrderEnum} [order]
3019
3160
  * @param {string} [sort]
3020
3161
  * @param {string} [companyId]
@@ -3125,6 +3266,13 @@ class ProductApi extends base_1.BaseAPI {
3125
3266
  }
3126
3267
  }
3127
3268
  exports.ProductApi = ProductApi;
3269
+ /**
3270
+ * @export
3271
+ */
3272
+ exports.GetProductsDateFieldEnum = {
3273
+ CREATED_AT: 'createdAt',
3274
+ UPDATED_AT: 'updatedAt'
3275
+ };
3128
3276
  /**
3129
3277
  * SitemapApi - axios parameter creator
3130
3278
  * @export
package/dist/api/api.mjs CHANGED
@@ -469,6 +469,66 @@ export const FontSizeEnum = {
469
469
  _4XL: 'text-4xl',
470
470
  _6XL: 'text-6xl'
471
471
  };
472
+ export const IBrandCollectionQueryParamsDateFieldEnum = {
473
+ CREATED_AT: 'createdAt',
474
+ UPDATED_AT: 'updatedAt'
475
+ };
476
+ export const ICategoryCollectionQueryParamsDateFieldEnum = {
477
+ CREATED_AT: 'createdAt',
478
+ UPDATED_AT: 'updatedAt'
479
+ };
480
+ export const ICollectionCollectionsQueryParamsDateFieldEnum = {
481
+ CREATED_AT: 'createdAt',
482
+ UPDATED_AT: 'updatedAt'
483
+ };
484
+ export const ICompanyCollectionQueryParamsDateFieldEnum = {
485
+ CREATED_AT: 'createdAt',
486
+ UPDATED_AT: 'updatedAt'
487
+ };
488
+ export const ICompanyUsersCollectionQueryParamsDateFieldEnum = {
489
+ CREATED_AT: 'createdAt',
490
+ UPDATED_AT: 'updatedAt'
491
+ };
492
+ export const IContactFormCollectionQueryParamsDateFieldEnum = {
493
+ CREATED_AT: 'createdAt',
494
+ UPDATED_AT: 'updatedAt'
495
+ };
496
+ export const IFileCollectionQueryParamsDateFieldEnum = {
497
+ CREATED_AT: 'createdAt',
498
+ UPDATED_AT: 'updatedAt'
499
+ };
500
+ export const IMyOrderCollectionQueryParamsDateFieldEnum = {
501
+ CREATED_AT: 'createdAt',
502
+ UPDATED_AT: 'updatedAt'
503
+ };
504
+ export const INotificationCollectionQueryParamsDateFieldEnum = {
505
+ CREATED_AT: 'createdAt',
506
+ UPDATED_AT: 'updatedAt'
507
+ };
508
+ export const IOperationCollectionQueryParamsDateFieldEnum = {
509
+ CREATED_AT: 'createdAt',
510
+ UPDATED_AT: 'updatedAt'
511
+ };
512
+ export const IOrderCollectionQueryParamsDateFieldEnum = {
513
+ CREATED_AT: 'createdAt',
514
+ UPDATED_AT: 'updatedAt'
515
+ };
516
+ export const IPageCollectionQueryParamsDateFieldEnum = {
517
+ CREATED_AT: 'createdAt',
518
+ UPDATED_AT: 'updatedAt'
519
+ };
520
+ export const IPlanCollectionQueryParamsDateFieldEnum = {
521
+ CREATED_AT: 'createdAt',
522
+ UPDATED_AT: 'updatedAt'
523
+ };
524
+ export const IProductCollectionQueryParamsDateFieldEnum = {
525
+ CREATED_AT: 'createdAt',
526
+ UPDATED_AT: 'updatedAt'
527
+ };
528
+ export const IUserCollectionQueryParamsDateFieldEnum = {
529
+ CREATED_AT: 'createdAt',
530
+ UPDATED_AT: 'updatedAt'
531
+ };
472
532
  /**
473
533
  *
474
534
  * @export
@@ -549,6 +609,14 @@ export const PageTypeEnum = {
549
609
  CHECKOUT: 'checkout',
550
610
  NOT_FOUND: 'not-found'
551
611
  };
612
+ /**
613
+ *
614
+ * @export
615
+ * @enum {string}
616
+ */
617
+ export const PaymentGatewayEnum = {
618
+ IYZICO: 'iyzico'
619
+ };
552
620
  /**
553
621
  *
554
622
  * @export
@@ -1806,7 +1874,7 @@ export const CollectionApiAxiosParamCreator = function (configuration) {
1806
1874
  * @param {string} [search]
1807
1875
  * @param {string} [startDate]
1808
1876
  * @param {string} [endDate]
1809
- * @param {string} [dateField]
1877
+ * @param {GetCollectionsDateFieldEnum} [dateField]
1810
1878
  * @param {OrderEnum} [order]
1811
1879
  * @param {string} [sort]
1812
1880
  * @param {ContentStatusEnum} [status]
@@ -1898,7 +1966,7 @@ export const CollectionApiFp = function (configuration) {
1898
1966
  * @param {string} [search]
1899
1967
  * @param {string} [startDate]
1900
1968
  * @param {string} [endDate]
1901
- * @param {string} [dateField]
1969
+ * @param {GetCollectionsDateFieldEnum} [dateField]
1902
1970
  * @param {OrderEnum} [order]
1903
1971
  * @param {string} [sort]
1904
1972
  * @param {ContentStatusEnum} [status]
@@ -1968,6 +2036,13 @@ export class CollectionApi extends BaseAPI {
1968
2036
  return CollectionApiFp(this.configuration).getCollections(requestParameters.companyId, 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));
1969
2037
  }
1970
2038
  }
2039
+ /**
2040
+ * @export
2041
+ */
2042
+ export const GetCollectionsDateFieldEnum = {
2043
+ CREATED_AT: 'createdAt',
2044
+ UPDATED_AT: 'updatedAt'
2045
+ };
1971
2046
  /**
1972
2047
  * CompanyApi - axios parameter creator
1973
2048
  * @export
@@ -2192,11 +2267,19 @@ export const OrderApiAxiosParamCreator = function (configuration) {
2192
2267
  },
2193
2268
  /**
2194
2269
  *
2270
+ * @param {number} [page]
2271
+ * @param {number} [itemsPerPage]
2272
+ * @param {string} [search]
2273
+ * @param {string} [startDate]
2274
+ * @param {string} [endDate]
2275
+ * @param {GetMyOrdersDateFieldEnum} [dateField]
2276
+ * @param {OrderEnum} [order]
2277
+ * @param {string} [sort]
2195
2278
  * @param {OrderStatusEnum} [status]
2196
2279
  * @param {*} [options] Override http request option.
2197
2280
  * @throws {RequiredError}
2198
2281
  */
2199
- getMyOrders: async (status, options = {}) => {
2282
+ getMyOrders: async (page, itemsPerPage, search, startDate, endDate, dateField, order, sort, status, options = {}) => {
2200
2283
  const localVarPath = `/api/orders/my`;
2201
2284
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2202
2285
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -2207,6 +2290,34 @@ export const OrderApiAxiosParamCreator = function (configuration) {
2207
2290
  const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
2208
2291
  const localVarHeaderParameter = {};
2209
2292
  const localVarQueryParameter = {};
2293
+ if (page !== undefined) {
2294
+ localVarQueryParameter['page'] = page;
2295
+ }
2296
+ if (itemsPerPage !== undefined) {
2297
+ localVarQueryParameter['itemsPerPage'] = itemsPerPage;
2298
+ }
2299
+ if (search !== undefined) {
2300
+ localVarQueryParameter['search'] = search;
2301
+ }
2302
+ if (startDate !== undefined) {
2303
+ localVarQueryParameter['startDate'] = (startDate instanceof Date) ?
2304
+ startDate.toISOString() :
2305
+ startDate;
2306
+ }
2307
+ if (endDate !== undefined) {
2308
+ localVarQueryParameter['endDate'] = (endDate instanceof Date) ?
2309
+ endDate.toISOString() :
2310
+ endDate;
2311
+ }
2312
+ if (dateField !== undefined) {
2313
+ localVarQueryParameter['dateField'] = dateField;
2314
+ }
2315
+ if (order !== undefined) {
2316
+ localVarQueryParameter['order'] = order;
2317
+ }
2318
+ if (sort !== undefined) {
2319
+ localVarQueryParameter['sort'] = sort;
2320
+ }
2210
2321
  if (status !== undefined) {
2211
2322
  localVarQueryParameter['status'] = status;
2212
2323
  }
@@ -2254,7 +2365,7 @@ export const OrderApiAxiosParamCreator = function (configuration) {
2254
2365
  * @param {string} [search]
2255
2366
  * @param {string} [startDate]
2256
2367
  * @param {string} [endDate]
2257
- * @param {string} [dateField]
2368
+ * @param {GetOrdersDateFieldEnum} [dateField]
2258
2369
  * @param {OrderEnum} [order]
2259
2370
  * @param {string} [sort]
2260
2371
  * @param {string} [user]
@@ -2343,12 +2454,20 @@ export const OrderApiFp = function (configuration) {
2343
2454
  },
2344
2455
  /**
2345
2456
  *
2457
+ * @param {number} [page]
2458
+ * @param {number} [itemsPerPage]
2459
+ * @param {string} [search]
2460
+ * @param {string} [startDate]
2461
+ * @param {string} [endDate]
2462
+ * @param {GetMyOrdersDateFieldEnum} [dateField]
2463
+ * @param {OrderEnum} [order]
2464
+ * @param {string} [sort]
2346
2465
  * @param {OrderStatusEnum} [status]
2347
2466
  * @param {*} [options] Override http request option.
2348
2467
  * @throws {RequiredError}
2349
2468
  */
2350
- async getMyOrders(status, options) {
2351
- const localVarAxiosArgs = await localVarAxiosParamCreator.getMyOrders(status, options);
2469
+ async getMyOrders(page, itemsPerPage, search, startDate, endDate, dateField, order, sort, status, options) {
2470
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getMyOrders(page, itemsPerPage, search, startDate, endDate, dateField, order, sort, status, options);
2352
2471
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2353
2472
  const localVarOperationServerBasePath = operationServerMap['OrderApi.getMyOrders']?.[localVarOperationServerIndex]?.url;
2354
2473
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -2373,7 +2492,7 @@ export const OrderApiFp = function (configuration) {
2373
2492
  * @param {string} [search]
2374
2493
  * @param {string} [startDate]
2375
2494
  * @param {string} [endDate]
2376
- * @param {string} [dateField]
2495
+ * @param {GetOrdersDateFieldEnum} [dateField]
2377
2496
  * @param {OrderEnum} [order]
2378
2497
  * @param {string} [sort]
2379
2498
  * @param {string} [user]
@@ -2412,7 +2531,7 @@ export const OrderApiFactory = function (configuration, basePath, axios) {
2412
2531
  * @throws {RequiredError}
2413
2532
  */
2414
2533
  getMyOrders(requestParameters = {}, options) {
2415
- return localVarFp.getMyOrders(requestParameters.status, options).then((request) => request(axios, basePath));
2534
+ return localVarFp.getMyOrders(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.status, options).then((request) => request(axios, basePath));
2416
2535
  },
2417
2536
  /**
2418
2537
  *
@@ -2459,7 +2578,7 @@ export class OrderApi extends BaseAPI {
2459
2578
  * @memberof OrderApi
2460
2579
  */
2461
2580
  getMyOrders(requestParameters = {}, options) {
2462
- return OrderApiFp(this.configuration).getMyOrders(requestParameters.status, options).then((request) => request(this.axios, this.basePath));
2581
+ return OrderApiFp(this.configuration).getMyOrders(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));
2463
2582
  }
2464
2583
  /**
2465
2584
  *
@@ -2482,6 +2601,20 @@ export class OrderApi extends BaseAPI {
2482
2601
  return OrderApiFp(this.configuration).getOrders(requestParameters.company, requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.user, requestParameters.status, options).then((request) => request(this.axios, this.basePath));
2483
2602
  }
2484
2603
  }
2604
+ /**
2605
+ * @export
2606
+ */
2607
+ export const GetMyOrdersDateFieldEnum = {
2608
+ CREATED_AT: 'createdAt',
2609
+ UPDATED_AT: 'updatedAt'
2610
+ };
2611
+ /**
2612
+ * @export
2613
+ */
2614
+ export const GetOrdersDateFieldEnum = {
2615
+ CREATED_AT: 'createdAt',
2616
+ UPDATED_AT: 'updatedAt'
2617
+ };
2485
2618
  /**
2486
2619
  * PageApi - axios parameter creator
2487
2620
  * @export
@@ -2571,7 +2704,7 @@ export const PageApiAxiosParamCreator = function (configuration) {
2571
2704
  * @param {string} [search]
2572
2705
  * @param {string} [startDate]
2573
2706
  * @param {string} [endDate]
2574
- * @param {string} [dateField]
2707
+ * @param {GetPagesDateFieldEnum} [dateField]
2575
2708
  * @param {OrderEnum} [order]
2576
2709
  * @param {string} [sort]
2577
2710
  * @param {string} [companyId]
@@ -2685,7 +2818,7 @@ export const PageApiFp = function (configuration) {
2685
2818
  * @param {string} [search]
2686
2819
  * @param {string} [startDate]
2687
2820
  * @param {string} [endDate]
2688
- * @param {string} [dateField]
2821
+ * @param {GetPagesDateFieldEnum} [dateField]
2689
2822
  * @param {OrderEnum} [order]
2690
2823
  * @param {string} [sort]
2691
2824
  * @param {string} [companyId]
@@ -2777,6 +2910,13 @@ export class PageApi extends BaseAPI {
2777
2910
  return PageApiFp(this.configuration).getPages(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.companyId, requestParameters.domain, requestParameters.type, requestParameters.status, options).then((request) => request(this.axios, this.basePath));
2778
2911
  }
2779
2912
  }
2913
+ /**
2914
+ * @export
2915
+ */
2916
+ export const GetPagesDateFieldEnum = {
2917
+ CREATED_AT: 'createdAt',
2918
+ UPDATED_AT: 'updatedAt'
2919
+ };
2780
2920
  /**
2781
2921
  * ProductApi - axios parameter creator
2782
2922
  * @export
@@ -2826,7 +2966,7 @@ export const ProductApiAxiosParamCreator = function (configuration) {
2826
2966
  * @param {string} [search]
2827
2967
  * @param {string} [startDate]
2828
2968
  * @param {string} [endDate]
2829
- * @param {string} [dateField]
2969
+ * @param {GetProductsDateFieldEnum} [dateField]
2830
2970
  * @param {OrderEnum} [order]
2831
2971
  * @param {string} [sort]
2832
2972
  * @param {string} [companyId]
@@ -2971,7 +3111,7 @@ export const ProductApiFp = function (configuration) {
2971
3111
  * @param {string} [search]
2972
3112
  * @param {string} [startDate]
2973
3113
  * @param {string} [endDate]
2974
- * @param {string} [dateField]
3114
+ * @param {GetProductsDateFieldEnum} [dateField]
2975
3115
  * @param {OrderEnum} [order]
2976
3116
  * @param {string} [sort]
2977
3117
  * @param {string} [companyId]
@@ -3079,6 +3219,13 @@ export class ProductApi extends BaseAPI {
3079
3219
  return ProductApiFp(this.configuration).searchProducts(requestParameters.search, requestParameters.companyId, requestParameters.domain, options).then((request) => request(this.axios, this.basePath));
3080
3220
  }
3081
3221
  }
3222
+ /**
3223
+ * @export
3224
+ */
3225
+ export const GetProductsDateFieldEnum = {
3226
+ CREATED_AT: 'createdAt',
3227
+ UPDATED_AT: 'updatedAt'
3228
+ };
3082
3229
  /**
3083
3230
  * SitemapApi - axios parameter creator
3084
3231
  * @export
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infisale-client/api-client",
3
- "version": "1.2.22",
3
+ "version": "1.2.23",
4
4
  "description": "api-client-sdk",
5
5
  "author": "Muhammet KÖKLÜ <105980019+byhipernova@users.noreply.github.com>",
6
6
  "homepage": "https://github.com/infisale/infisale-client#readme",
@@ -37,5 +37,5 @@
37
37
  "bugs": {
38
38
  "url": "https://github.com/infisale/infisale-client/issues"
39
39
  },
40
- "gitHead": "f5d2cde07236eb6740ad932b30e7d3eb4aa346d1"
40
+ "gitHead": "cbe98dcab96083c92f583ffc67099fbb00167f27"
41
41
  }