@infisale-client/api-client 1.2.22 → 1.2.24

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,15 @@ 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
+ PAYTR: 'paytr'
631
+ };
562
632
  /**
563
633
  *
564
634
  * @export
@@ -1828,7 +1898,7 @@ const CollectionApiAxiosParamCreator = function (configuration) {
1828
1898
  * @param {string} [search]
1829
1899
  * @param {string} [startDate]
1830
1900
  * @param {string} [endDate]
1831
- * @param {string} [dateField]
1901
+ * @param {GetCollectionsDateFieldEnum} [dateField]
1832
1902
  * @param {OrderEnum} [order]
1833
1903
  * @param {string} [sort]
1834
1904
  * @param {ContentStatusEnum} [status]
@@ -1921,7 +1991,7 @@ const CollectionApiFp = function (configuration) {
1921
1991
  * @param {string} [search]
1922
1992
  * @param {string} [startDate]
1923
1993
  * @param {string} [endDate]
1924
- * @param {string} [dateField]
1994
+ * @param {GetCollectionsDateFieldEnum} [dateField]
1925
1995
  * @param {OrderEnum} [order]
1926
1996
  * @param {string} [sort]
1927
1997
  * @param {ContentStatusEnum} [status]
@@ -1994,6 +2064,13 @@ class CollectionApi extends base_1.BaseAPI {
1994
2064
  }
1995
2065
  }
1996
2066
  exports.CollectionApi = CollectionApi;
2067
+ /**
2068
+ * @export
2069
+ */
2070
+ exports.GetCollectionsDateFieldEnum = {
2071
+ CREATED_AT: 'createdAt',
2072
+ UPDATED_AT: 'updatedAt'
2073
+ };
1997
2074
  /**
1998
2075
  * CompanyApi - axios parameter creator
1999
2076
  * @export
@@ -2226,11 +2303,19 @@ const OrderApiAxiosParamCreator = function (configuration) {
2226
2303
  },
2227
2304
  /**
2228
2305
  *
2306
+ * @param {number} [page]
2307
+ * @param {number} [itemsPerPage]
2308
+ * @param {string} [search]
2309
+ * @param {string} [startDate]
2310
+ * @param {string} [endDate]
2311
+ * @param {GetMyOrdersDateFieldEnum} [dateField]
2312
+ * @param {OrderEnum} [order]
2313
+ * @param {string} [sort]
2229
2314
  * @param {OrderStatusEnum} [status]
2230
2315
  * @param {*} [options] Override http request option.
2231
2316
  * @throws {RequiredError}
2232
2317
  */
2233
- getMyOrders: async (status, options = {}) => {
2318
+ getMyOrders: async (page, itemsPerPage, search, startDate, endDate, dateField, order, sort, status, options = {}) => {
2234
2319
  const localVarPath = `/api/orders/my`;
2235
2320
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2236
2321
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -2241,6 +2326,34 @@ const OrderApiAxiosParamCreator = function (configuration) {
2241
2326
  const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
2242
2327
  const localVarHeaderParameter = {};
2243
2328
  const localVarQueryParameter = {};
2329
+ if (page !== undefined) {
2330
+ localVarQueryParameter['page'] = page;
2331
+ }
2332
+ if (itemsPerPage !== undefined) {
2333
+ localVarQueryParameter['itemsPerPage'] = itemsPerPage;
2334
+ }
2335
+ if (search !== undefined) {
2336
+ localVarQueryParameter['search'] = search;
2337
+ }
2338
+ if (startDate !== undefined) {
2339
+ localVarQueryParameter['startDate'] = (startDate instanceof Date) ?
2340
+ startDate.toISOString() :
2341
+ startDate;
2342
+ }
2343
+ if (endDate !== undefined) {
2344
+ localVarQueryParameter['endDate'] = (endDate instanceof Date) ?
2345
+ endDate.toISOString() :
2346
+ endDate;
2347
+ }
2348
+ if (dateField !== undefined) {
2349
+ localVarQueryParameter['dateField'] = dateField;
2350
+ }
2351
+ if (order !== undefined) {
2352
+ localVarQueryParameter['order'] = order;
2353
+ }
2354
+ if (sort !== undefined) {
2355
+ localVarQueryParameter['sort'] = sort;
2356
+ }
2244
2357
  if (status !== undefined) {
2245
2358
  localVarQueryParameter['status'] = status;
2246
2359
  }
@@ -2288,7 +2401,7 @@ const OrderApiAxiosParamCreator = function (configuration) {
2288
2401
  * @param {string} [search]
2289
2402
  * @param {string} [startDate]
2290
2403
  * @param {string} [endDate]
2291
- * @param {string} [dateField]
2404
+ * @param {GetOrdersDateFieldEnum} [dateField]
2292
2405
  * @param {OrderEnum} [order]
2293
2406
  * @param {string} [sort]
2294
2407
  * @param {string} [user]
@@ -2378,12 +2491,20 @@ const OrderApiFp = function (configuration) {
2378
2491
  },
2379
2492
  /**
2380
2493
  *
2494
+ * @param {number} [page]
2495
+ * @param {number} [itemsPerPage]
2496
+ * @param {string} [search]
2497
+ * @param {string} [startDate]
2498
+ * @param {string} [endDate]
2499
+ * @param {GetMyOrdersDateFieldEnum} [dateField]
2500
+ * @param {OrderEnum} [order]
2501
+ * @param {string} [sort]
2381
2502
  * @param {OrderStatusEnum} [status]
2382
2503
  * @param {*} [options] Override http request option.
2383
2504
  * @throws {RequiredError}
2384
2505
  */
2385
- async getMyOrders(status, options) {
2386
- const localVarAxiosArgs = await localVarAxiosParamCreator.getMyOrders(status, options);
2506
+ async getMyOrders(page, itemsPerPage, search, startDate, endDate, dateField, order, sort, status, options) {
2507
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getMyOrders(page, itemsPerPage, search, startDate, endDate, dateField, order, sort, status, options);
2387
2508
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2388
2509
  const localVarOperationServerBasePath = base_1.operationServerMap['OrderApi.getMyOrders']?.[localVarOperationServerIndex]?.url;
2389
2510
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -2408,7 +2529,7 @@ const OrderApiFp = function (configuration) {
2408
2529
  * @param {string} [search]
2409
2530
  * @param {string} [startDate]
2410
2531
  * @param {string} [endDate]
2411
- * @param {string} [dateField]
2532
+ * @param {GetOrdersDateFieldEnum} [dateField]
2412
2533
  * @param {OrderEnum} [order]
2413
2534
  * @param {string} [sort]
2414
2535
  * @param {string} [user]
@@ -2448,7 +2569,7 @@ const OrderApiFactory = function (configuration, basePath, axios) {
2448
2569
  * @throws {RequiredError}
2449
2570
  */
2450
2571
  getMyOrders(requestParameters = {}, options) {
2451
- return localVarFp.getMyOrders(requestParameters.status, options).then((request) => request(axios, basePath));
2572
+ 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
2573
  },
2453
2574
  /**
2454
2575
  *
@@ -2496,7 +2617,7 @@ class OrderApi extends base_1.BaseAPI {
2496
2617
  * @memberof OrderApi
2497
2618
  */
2498
2619
  getMyOrders(requestParameters = {}, options) {
2499
- return (0, exports.OrderApiFp)(this.configuration).getMyOrders(requestParameters.status, options).then((request) => request(this.axios, this.basePath));
2620
+ 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
2621
  }
2501
2622
  /**
2502
2623
  *
@@ -2520,6 +2641,20 @@ class OrderApi extends base_1.BaseAPI {
2520
2641
  }
2521
2642
  }
2522
2643
  exports.OrderApi = OrderApi;
2644
+ /**
2645
+ * @export
2646
+ */
2647
+ exports.GetMyOrdersDateFieldEnum = {
2648
+ CREATED_AT: 'createdAt',
2649
+ UPDATED_AT: 'updatedAt'
2650
+ };
2651
+ /**
2652
+ * @export
2653
+ */
2654
+ exports.GetOrdersDateFieldEnum = {
2655
+ CREATED_AT: 'createdAt',
2656
+ UPDATED_AT: 'updatedAt'
2657
+ };
2523
2658
  /**
2524
2659
  * PageApi - axios parameter creator
2525
2660
  * @export
@@ -2609,7 +2744,7 @@ const PageApiAxiosParamCreator = function (configuration) {
2609
2744
  * @param {string} [search]
2610
2745
  * @param {string} [startDate]
2611
2746
  * @param {string} [endDate]
2612
- * @param {string} [dateField]
2747
+ * @param {GetPagesDateFieldEnum} [dateField]
2613
2748
  * @param {OrderEnum} [order]
2614
2749
  * @param {string} [sort]
2615
2750
  * @param {string} [companyId]
@@ -2724,7 +2859,7 @@ const PageApiFp = function (configuration) {
2724
2859
  * @param {string} [search]
2725
2860
  * @param {string} [startDate]
2726
2861
  * @param {string} [endDate]
2727
- * @param {string} [dateField]
2862
+ * @param {GetPagesDateFieldEnum} [dateField]
2728
2863
  * @param {OrderEnum} [order]
2729
2864
  * @param {string} [sort]
2730
2865
  * @param {string} [companyId]
@@ -2819,6 +2954,13 @@ class PageApi extends base_1.BaseAPI {
2819
2954
  }
2820
2955
  }
2821
2956
  exports.PageApi = PageApi;
2957
+ /**
2958
+ * @export
2959
+ */
2960
+ exports.GetPagesDateFieldEnum = {
2961
+ CREATED_AT: 'createdAt',
2962
+ UPDATED_AT: 'updatedAt'
2963
+ };
2822
2964
  /**
2823
2965
  * ProductApi - axios parameter creator
2824
2966
  * @export
@@ -2868,7 +3010,7 @@ const ProductApiAxiosParamCreator = function (configuration) {
2868
3010
  * @param {string} [search]
2869
3011
  * @param {string} [startDate]
2870
3012
  * @param {string} [endDate]
2871
- * @param {string} [dateField]
3013
+ * @param {GetProductsDateFieldEnum} [dateField]
2872
3014
  * @param {OrderEnum} [order]
2873
3015
  * @param {string} [sort]
2874
3016
  * @param {string} [companyId]
@@ -3014,7 +3156,7 @@ const ProductApiFp = function (configuration) {
3014
3156
  * @param {string} [search]
3015
3157
  * @param {string} [startDate]
3016
3158
  * @param {string} [endDate]
3017
- * @param {string} [dateField]
3159
+ * @param {GetProductsDateFieldEnum} [dateField]
3018
3160
  * @param {OrderEnum} [order]
3019
3161
  * @param {string} [sort]
3020
3162
  * @param {string} [companyId]
@@ -3125,6 +3267,13 @@ class ProductApi extends base_1.BaseAPI {
3125
3267
  }
3126
3268
  }
3127
3269
  exports.ProductApi = ProductApi;
3270
+ /**
3271
+ * @export
3272
+ */
3273
+ exports.GetProductsDateFieldEnum = {
3274
+ CREATED_AT: 'createdAt',
3275
+ UPDATED_AT: 'updatedAt'
3276
+ };
3128
3277
  /**
3129
3278
  * SitemapApi - axios parameter creator
3130
3279
  * @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,15 @@ 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
+ PAYTR: 'paytr'
620
+ };
552
621
  /**
553
622
  *
554
623
  * @export
@@ -1806,7 +1875,7 @@ export const CollectionApiAxiosParamCreator = function (configuration) {
1806
1875
  * @param {string} [search]
1807
1876
  * @param {string} [startDate]
1808
1877
  * @param {string} [endDate]
1809
- * @param {string} [dateField]
1878
+ * @param {GetCollectionsDateFieldEnum} [dateField]
1810
1879
  * @param {OrderEnum} [order]
1811
1880
  * @param {string} [sort]
1812
1881
  * @param {ContentStatusEnum} [status]
@@ -1898,7 +1967,7 @@ export const CollectionApiFp = function (configuration) {
1898
1967
  * @param {string} [search]
1899
1968
  * @param {string} [startDate]
1900
1969
  * @param {string} [endDate]
1901
- * @param {string} [dateField]
1970
+ * @param {GetCollectionsDateFieldEnum} [dateField]
1902
1971
  * @param {OrderEnum} [order]
1903
1972
  * @param {string} [sort]
1904
1973
  * @param {ContentStatusEnum} [status]
@@ -1968,6 +2037,13 @@ export class CollectionApi extends BaseAPI {
1968
2037
  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
2038
  }
1970
2039
  }
2040
+ /**
2041
+ * @export
2042
+ */
2043
+ export const GetCollectionsDateFieldEnum = {
2044
+ CREATED_AT: 'createdAt',
2045
+ UPDATED_AT: 'updatedAt'
2046
+ };
1971
2047
  /**
1972
2048
  * CompanyApi - axios parameter creator
1973
2049
  * @export
@@ -2192,11 +2268,19 @@ export const OrderApiAxiosParamCreator = function (configuration) {
2192
2268
  },
2193
2269
  /**
2194
2270
  *
2271
+ * @param {number} [page]
2272
+ * @param {number} [itemsPerPage]
2273
+ * @param {string} [search]
2274
+ * @param {string} [startDate]
2275
+ * @param {string} [endDate]
2276
+ * @param {GetMyOrdersDateFieldEnum} [dateField]
2277
+ * @param {OrderEnum} [order]
2278
+ * @param {string} [sort]
2195
2279
  * @param {OrderStatusEnum} [status]
2196
2280
  * @param {*} [options] Override http request option.
2197
2281
  * @throws {RequiredError}
2198
2282
  */
2199
- getMyOrders: async (status, options = {}) => {
2283
+ getMyOrders: async (page, itemsPerPage, search, startDate, endDate, dateField, order, sort, status, options = {}) => {
2200
2284
  const localVarPath = `/api/orders/my`;
2201
2285
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2202
2286
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -2207,6 +2291,34 @@ export const OrderApiAxiosParamCreator = function (configuration) {
2207
2291
  const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
2208
2292
  const localVarHeaderParameter = {};
2209
2293
  const localVarQueryParameter = {};
2294
+ if (page !== undefined) {
2295
+ localVarQueryParameter['page'] = page;
2296
+ }
2297
+ if (itemsPerPage !== undefined) {
2298
+ localVarQueryParameter['itemsPerPage'] = itemsPerPage;
2299
+ }
2300
+ if (search !== undefined) {
2301
+ localVarQueryParameter['search'] = search;
2302
+ }
2303
+ if (startDate !== undefined) {
2304
+ localVarQueryParameter['startDate'] = (startDate instanceof Date) ?
2305
+ startDate.toISOString() :
2306
+ startDate;
2307
+ }
2308
+ if (endDate !== undefined) {
2309
+ localVarQueryParameter['endDate'] = (endDate instanceof Date) ?
2310
+ endDate.toISOString() :
2311
+ endDate;
2312
+ }
2313
+ if (dateField !== undefined) {
2314
+ localVarQueryParameter['dateField'] = dateField;
2315
+ }
2316
+ if (order !== undefined) {
2317
+ localVarQueryParameter['order'] = order;
2318
+ }
2319
+ if (sort !== undefined) {
2320
+ localVarQueryParameter['sort'] = sort;
2321
+ }
2210
2322
  if (status !== undefined) {
2211
2323
  localVarQueryParameter['status'] = status;
2212
2324
  }
@@ -2254,7 +2366,7 @@ export const OrderApiAxiosParamCreator = function (configuration) {
2254
2366
  * @param {string} [search]
2255
2367
  * @param {string} [startDate]
2256
2368
  * @param {string} [endDate]
2257
- * @param {string} [dateField]
2369
+ * @param {GetOrdersDateFieldEnum} [dateField]
2258
2370
  * @param {OrderEnum} [order]
2259
2371
  * @param {string} [sort]
2260
2372
  * @param {string} [user]
@@ -2343,12 +2455,20 @@ export const OrderApiFp = function (configuration) {
2343
2455
  },
2344
2456
  /**
2345
2457
  *
2458
+ * @param {number} [page]
2459
+ * @param {number} [itemsPerPage]
2460
+ * @param {string} [search]
2461
+ * @param {string} [startDate]
2462
+ * @param {string} [endDate]
2463
+ * @param {GetMyOrdersDateFieldEnum} [dateField]
2464
+ * @param {OrderEnum} [order]
2465
+ * @param {string} [sort]
2346
2466
  * @param {OrderStatusEnum} [status]
2347
2467
  * @param {*} [options] Override http request option.
2348
2468
  * @throws {RequiredError}
2349
2469
  */
2350
- async getMyOrders(status, options) {
2351
- const localVarAxiosArgs = await localVarAxiosParamCreator.getMyOrders(status, options);
2470
+ async getMyOrders(page, itemsPerPage, search, startDate, endDate, dateField, order, sort, status, options) {
2471
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getMyOrders(page, itemsPerPage, search, startDate, endDate, dateField, order, sort, status, options);
2352
2472
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2353
2473
  const localVarOperationServerBasePath = operationServerMap['OrderApi.getMyOrders']?.[localVarOperationServerIndex]?.url;
2354
2474
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -2373,7 +2493,7 @@ export const OrderApiFp = function (configuration) {
2373
2493
  * @param {string} [search]
2374
2494
  * @param {string} [startDate]
2375
2495
  * @param {string} [endDate]
2376
- * @param {string} [dateField]
2496
+ * @param {GetOrdersDateFieldEnum} [dateField]
2377
2497
  * @param {OrderEnum} [order]
2378
2498
  * @param {string} [sort]
2379
2499
  * @param {string} [user]
@@ -2412,7 +2532,7 @@ export const OrderApiFactory = function (configuration, basePath, axios) {
2412
2532
  * @throws {RequiredError}
2413
2533
  */
2414
2534
  getMyOrders(requestParameters = {}, options) {
2415
- return localVarFp.getMyOrders(requestParameters.status, options).then((request) => request(axios, basePath));
2535
+ 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
2536
  },
2417
2537
  /**
2418
2538
  *
@@ -2459,7 +2579,7 @@ export class OrderApi extends BaseAPI {
2459
2579
  * @memberof OrderApi
2460
2580
  */
2461
2581
  getMyOrders(requestParameters = {}, options) {
2462
- return OrderApiFp(this.configuration).getMyOrders(requestParameters.status, options).then((request) => request(this.axios, this.basePath));
2582
+ 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
2583
  }
2464
2584
  /**
2465
2585
  *
@@ -2482,6 +2602,20 @@ export class OrderApi extends BaseAPI {
2482
2602
  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
2603
  }
2484
2604
  }
2605
+ /**
2606
+ * @export
2607
+ */
2608
+ export const GetMyOrdersDateFieldEnum = {
2609
+ CREATED_AT: 'createdAt',
2610
+ UPDATED_AT: 'updatedAt'
2611
+ };
2612
+ /**
2613
+ * @export
2614
+ */
2615
+ export const GetOrdersDateFieldEnum = {
2616
+ CREATED_AT: 'createdAt',
2617
+ UPDATED_AT: 'updatedAt'
2618
+ };
2485
2619
  /**
2486
2620
  * PageApi - axios parameter creator
2487
2621
  * @export
@@ -2571,7 +2705,7 @@ export const PageApiAxiosParamCreator = function (configuration) {
2571
2705
  * @param {string} [search]
2572
2706
  * @param {string} [startDate]
2573
2707
  * @param {string} [endDate]
2574
- * @param {string} [dateField]
2708
+ * @param {GetPagesDateFieldEnum} [dateField]
2575
2709
  * @param {OrderEnum} [order]
2576
2710
  * @param {string} [sort]
2577
2711
  * @param {string} [companyId]
@@ -2685,7 +2819,7 @@ export const PageApiFp = function (configuration) {
2685
2819
  * @param {string} [search]
2686
2820
  * @param {string} [startDate]
2687
2821
  * @param {string} [endDate]
2688
- * @param {string} [dateField]
2822
+ * @param {GetPagesDateFieldEnum} [dateField]
2689
2823
  * @param {OrderEnum} [order]
2690
2824
  * @param {string} [sort]
2691
2825
  * @param {string} [companyId]
@@ -2777,6 +2911,13 @@ export class PageApi extends BaseAPI {
2777
2911
  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
2912
  }
2779
2913
  }
2914
+ /**
2915
+ * @export
2916
+ */
2917
+ export const GetPagesDateFieldEnum = {
2918
+ CREATED_AT: 'createdAt',
2919
+ UPDATED_AT: 'updatedAt'
2920
+ };
2780
2921
  /**
2781
2922
  * ProductApi - axios parameter creator
2782
2923
  * @export
@@ -2826,7 +2967,7 @@ export const ProductApiAxiosParamCreator = function (configuration) {
2826
2967
  * @param {string} [search]
2827
2968
  * @param {string} [startDate]
2828
2969
  * @param {string} [endDate]
2829
- * @param {string} [dateField]
2970
+ * @param {GetProductsDateFieldEnum} [dateField]
2830
2971
  * @param {OrderEnum} [order]
2831
2972
  * @param {string} [sort]
2832
2973
  * @param {string} [companyId]
@@ -2971,7 +3112,7 @@ export const ProductApiFp = function (configuration) {
2971
3112
  * @param {string} [search]
2972
3113
  * @param {string} [startDate]
2973
3114
  * @param {string} [endDate]
2974
- * @param {string} [dateField]
3115
+ * @param {GetProductsDateFieldEnum} [dateField]
2975
3116
  * @param {OrderEnum} [order]
2976
3117
  * @param {string} [sort]
2977
3118
  * @param {string} [companyId]
@@ -3079,6 +3220,13 @@ export class ProductApi extends BaseAPI {
3079
3220
  return ProductApiFp(this.configuration).searchProducts(requestParameters.search, requestParameters.companyId, requestParameters.domain, options).then((request) => request(this.axios, this.basePath));
3080
3221
  }
3081
3222
  }
3223
+ /**
3224
+ * @export
3225
+ */
3226
+ export const GetProductsDateFieldEnum = {
3227
+ CREATED_AT: 'createdAt',
3228
+ UPDATED_AT: 'updatedAt'
3229
+ };
3082
3230
  /**
3083
3231
  * SitemapApi - axios parameter creator
3084
3232
  * @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.24",
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": "fdf978a0f9678c7a06ac7261aea2c8799b9b7bc7"
41
41
  }