@infisale-client/api 1.1.16 → 1.1.18

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,8 @@ 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.CategoryApiAxiosParamCreator = exports.BrandApi = exports.BrandApiFactory = exports.BrandApiFp = exports.BrandApiAxiosParamCreator = 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.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.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.ThemeApi = exports.ThemeApiFactory = exports.ThemeApiFp = exports.ThemeApiAxiosParamCreator = exports.TemplateApi = exports.TemplateApiFactory = exports.TemplateApiFp = exports.TemplateApiAxiosParamCreator = exports.ProductApi = exports.ProductApiFactory = exports.ProductApiFp = exports.ProductApiAxiosParamCreator = exports.PlanApi = exports.PlanApiFactory = exports.PlanApiFp = exports.PlanApiAxiosParamCreator = exports.PageApi = exports.PageApiFactory = exports.PageApiFp = exports.PageApiAxiosParamCreator = exports.OperationApi = exports.OperationApiFactory = exports.OperationApiFp = exports.OperationApiAxiosParamCreator = exports.NotificationApi = exports.NotificationApiFactory = exports.NotificationApiFp = exports.NotificationApiAxiosParamCreator = exports.FileApi = exports.FileApiFactory = exports.FileApiFp = exports.FileApiAxiosParamCreator = exports.CompanyApi = exports.CompanyApiFactory = exports.CompanyApiFp = exports.CompanyApiAxiosParamCreator = exports.CollectionApi = exports.CollectionApiFactory = exports.CollectionApiFp = exports.CollectionApiAxiosParamCreator = exports.CategoryApi = exports.CategoryApiFactory = exports.CategoryApiFp = void 0;
19
+ exports.CategoryApiFp = exports.CategoryApiAxiosParamCreator = exports.BrandApi = exports.BrandApiFactory = exports.BrandApiFp = exports.BrandApiAxiosParamCreator = 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.PlanTypeEnum = exports.PlanStatusEnum = exports.PlanCurrencyEnum = exports.PageTypeEnum = exports.OrderEnum = exports.OperationStatusEnum = exports.NotificationStatusEnum = exports.NotificationMessageEnum = exports.NavigationUrlTargetEnum = exports.LanguageEnum = exports.GridTypeEnum = 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.ThemeApi = exports.ThemeApiFactory = exports.ThemeApiFp = exports.ThemeApiAxiosParamCreator = exports.TemplateApi = exports.TemplateApiFactory = exports.TemplateApiFp = exports.TemplateApiAxiosParamCreator = exports.ProductApi = exports.ProductApiFactory = exports.ProductApiFp = exports.ProductApiAxiosParamCreator = exports.PlanApi = exports.PlanApiFactory = exports.PlanApiFp = exports.PlanApiAxiosParamCreator = exports.PageApi = exports.PageApiFactory = exports.PageApiFp = exports.PageApiAxiosParamCreator = exports.OperationApi = exports.OperationApiFactory = exports.OperationApiFp = exports.OperationApiAxiosParamCreator = exports.NotificationApi = exports.NotificationApiFactory = exports.NotificationApiFp = exports.NotificationApiAxiosParamCreator = exports.FileApi = exports.FileApiFactory = exports.FileApiFp = exports.FileApiAxiosParamCreator = exports.CompanyApi = exports.CompanyApiFactory = exports.CompanyApiFp = exports.CompanyApiAxiosParamCreator = exports.CollectionApi = exports.CollectionApiFactory = exports.CollectionApiFp = exports.CollectionApiAxiosParamCreator = exports.CategoryApi = exports.CategoryApiFactory = void 0;
21
21
  const axios_1 = __importDefault(require("axios"));
22
22
  // Some imports not used depending on template conditions
23
23
  // @ts-ignore
@@ -542,21 +542,6 @@ exports.PageTypeEnum = {
542
542
  CHECKOUT: 'checkout',
543
543
  NOT_FOUND: 'not-found'
544
544
  };
545
- /**
546
- *
547
- * @export
548
- * @enum {string}
549
- */
550
- exports.PaginationLimitEnum = {
551
- NUMBER_10: 10,
552
- NUMBER_20: 20,
553
- NUMBER_30: 30,
554
- NUMBER_40: 40,
555
- NUMBER_50: 50,
556
- NUMBER_100: 100,
557
- NUMBER_200: 200,
558
- NUMBER_500: 500
559
- };
560
545
  /**
561
546
  *
562
547
  * @export
@@ -1819,7 +1804,7 @@ const BrandApiAxiosParamCreator = function (configuration) {
1819
1804
  *
1820
1805
  * @param {string} company
1821
1806
  * @param {number} [page]
1822
- * @param {PaginationLimitEnum} [itemsPerPage]
1807
+ * @param {number} [itemsPerPage]
1823
1808
  * @param {string} [search]
1824
1809
  * @param {string} [startDate]
1825
1810
  * @param {string} [endDate]
@@ -1980,7 +1965,7 @@ const BrandApiFp = function (configuration) {
1980
1965
  *
1981
1966
  * @param {string} company
1982
1967
  * @param {number} [page]
1983
- * @param {PaginationLimitEnum} [itemsPerPage]
1968
+ * @param {number} [itemsPerPage]
1984
1969
  * @param {string} [search]
1985
1970
  * @param {string} [startDate]
1986
1971
  * @param {string} [endDate]
@@ -2243,7 +2228,7 @@ const CategoryApiAxiosParamCreator = function (configuration) {
2243
2228
  *
2244
2229
  * @param {string} company
2245
2230
  * @param {number} [page]
2246
- * @param {PaginationLimitEnum} [itemsPerPage]
2231
+ * @param {number} [itemsPerPage]
2247
2232
  * @param {string} [search]
2248
2233
  * @param {string} [startDate]
2249
2234
  * @param {string} [endDate]
@@ -2450,7 +2435,7 @@ const CategoryApiFp = function (configuration) {
2450
2435
  *
2451
2436
  * @param {string} company
2452
2437
  * @param {number} [page]
2453
- * @param {PaginationLimitEnum} [itemsPerPage]
2438
+ * @param {number} [itemsPerPage]
2454
2439
  * @param {string} [search]
2455
2440
  * @param {string} [startDate]
2456
2441
  * @param {string} [endDate]
@@ -2818,7 +2803,7 @@ const CollectionApiAxiosParamCreator = function (configuration) {
2818
2803
  *
2819
2804
  * @param {string} company
2820
2805
  * @param {number} [page]
2821
- * @param {PaginationLimitEnum} [itemsPerPage]
2806
+ * @param {number} [itemsPerPage]
2822
2807
  * @param {string} [search]
2823
2808
  * @param {string} [startDate]
2824
2809
  * @param {string} [endDate]
@@ -3022,7 +3007,7 @@ const CollectionApiFp = function (configuration) {
3022
3007
  *
3023
3008
  * @param {string} company
3024
3009
  * @param {number} [page]
3025
- * @param {PaginationLimitEnum} [itemsPerPage]
3010
+ * @param {number} [itemsPerPage]
3026
3011
  * @param {string} [search]
3027
3012
  * @param {string} [startDate]
3028
3013
  * @param {string} [endDate]
@@ -3462,7 +3447,7 @@ const CompanyApiAxiosParamCreator = function (configuration) {
3462
3447
  /**
3463
3448
  *
3464
3449
  * @param {number} [page]
3465
- * @param {PaginationLimitEnum} [itemsPerPage]
3450
+ * @param {number} [itemsPerPage]
3466
3451
  * @param {string} [search]
3467
3452
  * @param {string} [startDate]
3468
3453
  * @param {string} [endDate]
@@ -3595,7 +3580,7 @@ const CompanyApiAxiosParamCreator = function (configuration) {
3595
3580
  *
3596
3581
  * @param {string} id
3597
3582
  * @param {number} [page]
3598
- * @param {PaginationLimitEnum} [itemsPerPage]
3583
+ * @param {number} [itemsPerPage]
3599
3584
  * @param {string} [search]
3600
3585
  * @param {string} [startDate]
3601
3586
  * @param {string} [endDate]
@@ -4054,7 +4039,7 @@ const CompanyApiFp = function (configuration) {
4054
4039
  /**
4055
4040
  *
4056
4041
  * @param {number} [page]
4057
- * @param {PaginationLimitEnum} [itemsPerPage]
4042
+ * @param {number} [itemsPerPage]
4058
4043
  * @param {string} [search]
4059
4044
  * @param {string} [startDate]
4060
4045
  * @param {string} [endDate]
@@ -4102,7 +4087,7 @@ const CompanyApiFp = function (configuration) {
4102
4087
  *
4103
4088
  * @param {string} id
4104
4089
  * @param {number} [page]
4105
- * @param {PaginationLimitEnum} [itemsPerPage]
4090
+ * @param {number} [itemsPerPage]
4106
4091
  * @param {string} [search]
4107
4092
  * @param {string} [startDate]
4108
4093
  * @param {string} [endDate]
@@ -4704,7 +4689,7 @@ const FileApiAxiosParamCreator = function (configuration) {
4704
4689
  *
4705
4690
  * @param {string} company
4706
4691
  * @param {number} [page]
4707
- * @param {PaginationLimitEnum} [itemsPerPage]
4692
+ * @param {number} [itemsPerPage]
4708
4693
  * @param {string} [search]
4709
4694
  * @param {string} [startDate]
4710
4695
  * @param {string} [endDate]
@@ -4894,7 +4879,7 @@ const FileApiFp = function (configuration) {
4894
4879
  *
4895
4880
  * @param {string} company
4896
4881
  * @param {number} [page]
4897
- * @param {PaginationLimitEnum} [itemsPerPage]
4882
+ * @param {number} [itemsPerPage]
4898
4883
  * @param {string} [search]
4899
4884
  * @param {string} [startDate]
4900
4885
  * @param {string} [endDate]
@@ -5122,7 +5107,7 @@ const NotificationApiAxiosParamCreator = function (configuration) {
5122
5107
  /**
5123
5108
  *
5124
5109
  * @param {number} [page]
5125
- * @param {PaginationLimitEnum} [itemsPerPage]
5110
+ * @param {number} [itemsPerPage]
5126
5111
  * @param {string} [search]
5127
5112
  * @param {string} [startDate]
5128
5113
  * @param {string} [endDate]
@@ -5280,7 +5265,7 @@ const NotificationApiFp = function (configuration) {
5280
5265
  /**
5281
5266
  *
5282
5267
  * @param {number} [page]
5283
- * @param {PaginationLimitEnum} [itemsPerPage]
5268
+ * @param {number} [itemsPerPage]
5284
5269
  * @param {string} [search]
5285
5270
  * @param {string} [startDate]
5286
5271
  * @param {string} [endDate]
@@ -5531,7 +5516,7 @@ const OperationApiAxiosParamCreator = function (configuration) {
5531
5516
  /**
5532
5517
  *
5533
5518
  * @param {number} [page]
5534
- * @param {PaginationLimitEnum} [itemsPerPage]
5519
+ * @param {number} [itemsPerPage]
5535
5520
  * @param {string} [search]
5536
5521
  * @param {string} [startDate]
5537
5522
  * @param {string} [endDate]
@@ -5710,7 +5695,7 @@ const OperationApiFp = function (configuration) {
5710
5695
  /**
5711
5696
  *
5712
5697
  * @param {number} [page]
5713
- * @param {PaginationLimitEnum} [itemsPerPage]
5698
+ * @param {number} [itemsPerPage]
5714
5699
  * @param {string} [search]
5715
5700
  * @param {string} [startDate]
5716
5701
  * @param {string} [endDate]
@@ -5953,6 +5938,42 @@ const PageApiAxiosParamCreator = function (configuration) {
5953
5938
  options: localVarRequestOptions,
5954
5939
  };
5955
5940
  },
5941
+ /**
5942
+ *
5943
+ * @param {string} [company]
5944
+ * @param {string} [domain]
5945
+ * @param {Array<PageTypeEnum>} [type]
5946
+ * @param {*} [options] Override http request option.
5947
+ * @throws {RequiredError}
5948
+ */
5949
+ getAllPages: async (company, domain, type, options = {}) => {
5950
+ const localVarPath = `/api/pages/get/all`;
5951
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5952
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
5953
+ let baseOptions;
5954
+ if (configuration) {
5955
+ baseOptions = configuration.baseOptions;
5956
+ }
5957
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
5958
+ const localVarHeaderParameter = {};
5959
+ const localVarQueryParameter = {};
5960
+ if (company !== undefined) {
5961
+ localVarQueryParameter['company'] = company;
5962
+ }
5963
+ if (domain !== undefined) {
5964
+ localVarQueryParameter['domain'] = domain;
5965
+ }
5966
+ if (type) {
5967
+ localVarQueryParameter['type'] = type;
5968
+ }
5969
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
5970
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5971
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
5972
+ return {
5973
+ url: (0, common_1.toPathString)(localVarUrlObj),
5974
+ options: localVarRequestOptions,
5975
+ };
5976
+ },
5956
5977
  /**
5957
5978
  *
5958
5979
  * @param {string} id
@@ -6057,7 +6078,7 @@ const PageApiAxiosParamCreator = function (configuration) {
6057
6078
  *
6058
6079
  * @param {string} company
6059
6080
  * @param {number} [page]
6060
- * @param {PaginationLimitEnum} [itemsPerPage]
6081
+ * @param {number} [itemsPerPage]
6061
6082
  * @param {string} [search]
6062
6083
  * @param {string} [startDate]
6063
6084
  * @param {string} [endDate]
@@ -6228,6 +6249,20 @@ const PageApiFp = function (configuration) {
6228
6249
  const localVarOperationServerBasePath = base_1.operationServerMap['PageApi.deletePage']?.[localVarOperationServerIndex]?.url;
6229
6250
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6230
6251
  },
6252
+ /**
6253
+ *
6254
+ * @param {string} [company]
6255
+ * @param {string} [domain]
6256
+ * @param {Array<PageTypeEnum>} [type]
6257
+ * @param {*} [options] Override http request option.
6258
+ * @throws {RequiredError}
6259
+ */
6260
+ async getAllPages(company, domain, type, options) {
6261
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getAllPages(company, domain, type, options);
6262
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6263
+ const localVarOperationServerBasePath = base_1.operationServerMap['PageApi.getAllPages']?.[localVarOperationServerIndex]?.url;
6264
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6265
+ },
6231
6266
  /**
6232
6267
  *
6233
6268
  * @param {string} id
@@ -6272,7 +6307,7 @@ const PageApiFp = function (configuration) {
6272
6307
  *
6273
6308
  * @param {string} company
6274
6309
  * @param {number} [page]
6275
- * @param {PaginationLimitEnum} [itemsPerPage]
6310
+ * @param {number} [itemsPerPage]
6276
6311
  * @param {string} [search]
6277
6312
  * @param {string} [startDate]
6278
6313
  * @param {string} [endDate]
@@ -6344,6 +6379,15 @@ const PageApiFactory = function (configuration, basePath, axios) {
6344
6379
  deletePage(requestParameters, options) {
6345
6380
  return localVarFp.deletePage(requestParameters.id, options).then((request) => request(axios, basePath));
6346
6381
  },
6382
+ /**
6383
+ *
6384
+ * @param {PageApiGetAllPagesRequest} requestParameters Request parameters.
6385
+ * @param {*} [options] Override http request option.
6386
+ * @throws {RequiredError}
6387
+ */
6388
+ getAllPages(requestParameters = {}, options) {
6389
+ return localVarFp.getAllPages(requestParameters.company, requestParameters.domain, requestParameters.type, options).then((request) => request(axios, basePath));
6390
+ },
6347
6391
  /**
6348
6392
  *
6349
6393
  * @param {PageApiGetPageByIdRequest} requestParameters Request parameters.
@@ -6428,6 +6472,16 @@ class PageApi extends base_1.BaseAPI {
6428
6472
  deletePage(requestParameters, options) {
6429
6473
  return (0, exports.PageApiFp)(this.configuration).deletePage(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
6430
6474
  }
6475
+ /**
6476
+ *
6477
+ * @param {PageApiGetAllPagesRequest} requestParameters Request parameters.
6478
+ * @param {*} [options] Override http request option.
6479
+ * @throws {RequiredError}
6480
+ * @memberof PageApi
6481
+ */
6482
+ getAllPages(requestParameters = {}, options) {
6483
+ return (0, exports.PageApiFp)(this.configuration).getAllPages(requestParameters.company, requestParameters.domain, requestParameters.type, options).then((request) => request(this.axios, this.basePath));
6484
+ }
6431
6485
  /**
6432
6486
  *
6433
6487
  * @param {PageApiGetPageByIdRequest} requestParameters Request parameters.
@@ -6584,7 +6638,7 @@ const PlanApiAxiosParamCreator = function (configuration) {
6584
6638
  /**
6585
6639
  *
6586
6640
  * @param {number} [page]
6587
- * @param {PaginationLimitEnum} [itemsPerPage]
6641
+ * @param {number} [itemsPerPage]
6588
6642
  * @param {string} [search]
6589
6643
  * @param {string} [startDate]
6590
6644
  * @param {string} [endDate]
@@ -6731,7 +6785,7 @@ const PlanApiFp = function (configuration) {
6731
6785
  /**
6732
6786
  *
6733
6787
  * @param {number} [page]
6734
- * @param {PaginationLimitEnum} [itemsPerPage]
6788
+ * @param {number} [itemsPerPage]
6735
6789
  * @param {string} [search]
6736
6790
  * @param {string} [startDate]
6737
6791
  * @param {string} [endDate]
@@ -7076,7 +7130,7 @@ const ProductApiAxiosParamCreator = function (configuration) {
7076
7130
  *
7077
7131
  * @param {string} company
7078
7132
  * @param {number} [page]
7079
- * @param {PaginationLimitEnum} [itemsPerPage]
7133
+ * @param {number} [itemsPerPage]
7080
7134
  * @param {string} [search]
7081
7135
  * @param {string} [startDate]
7082
7136
  * @param {string} [endDate]
@@ -7312,7 +7366,7 @@ const ProductApiFp = function (configuration) {
7312
7366
  *
7313
7367
  * @param {string} company
7314
7368
  * @param {number} [page]
7315
- * @param {PaginationLimitEnum} [itemsPerPage]
7369
+ * @param {number} [itemsPerPage]
7316
7370
  * @param {string} [search]
7317
7371
  * @param {string} [startDate]
7318
7372
  * @param {string} [endDate]
@@ -8375,7 +8429,7 @@ const UserApiAxiosParamCreator = function (configuration) {
8375
8429
  /**
8376
8430
  *
8377
8431
  * @param {number} [page]
8378
- * @param {PaginationLimitEnum} [itemsPerPage]
8432
+ * @param {number} [itemsPerPage]
8379
8433
  * @param {string} [search]
8380
8434
  * @param {string} [startDate]
8381
8435
  * @param {string} [endDate]
@@ -8613,7 +8667,7 @@ const UserApiFp = function (configuration) {
8613
8667
  /**
8614
8668
  *
8615
8669
  * @param {number} [page]
8616
- * @param {PaginationLimitEnum} [itemsPerPage]
8670
+ * @param {number} [itemsPerPage]
8617
8671
  * @param {string} [search]
8618
8672
  * @param {string} [startDate]
8619
8673
  * @param {string} [endDate]
package/dist/api/api.mjs CHANGED
@@ -532,21 +532,6 @@ export const PageTypeEnum = {
532
532
  CHECKOUT: 'checkout',
533
533
  NOT_FOUND: 'not-found'
534
534
  };
535
- /**
536
- *
537
- * @export
538
- * @enum {string}
539
- */
540
- export const PaginationLimitEnum = {
541
- NUMBER_10: 10,
542
- NUMBER_20: 20,
543
- NUMBER_30: 30,
544
- NUMBER_40: 40,
545
- NUMBER_50: 50,
546
- NUMBER_100: 100,
547
- NUMBER_200: 200,
548
- NUMBER_500: 500
549
- };
550
535
  /**
551
536
  *
552
537
  * @export
@@ -1797,7 +1782,7 @@ export const BrandApiAxiosParamCreator = function (configuration) {
1797
1782
  *
1798
1783
  * @param {string} company
1799
1784
  * @param {number} [page]
1800
- * @param {PaginationLimitEnum} [itemsPerPage]
1785
+ * @param {number} [itemsPerPage]
1801
1786
  * @param {string} [search]
1802
1787
  * @param {string} [startDate]
1803
1788
  * @param {string} [endDate]
@@ -1957,7 +1942,7 @@ export const BrandApiFp = function (configuration) {
1957
1942
  *
1958
1943
  * @param {string} company
1959
1944
  * @param {number} [page]
1960
- * @param {PaginationLimitEnum} [itemsPerPage]
1945
+ * @param {number} [itemsPerPage]
1961
1946
  * @param {string} [search]
1962
1947
  * @param {string} [startDate]
1963
1948
  * @param {string} [endDate]
@@ -2217,7 +2202,7 @@ export const CategoryApiAxiosParamCreator = function (configuration) {
2217
2202
  *
2218
2203
  * @param {string} company
2219
2204
  * @param {number} [page]
2220
- * @param {PaginationLimitEnum} [itemsPerPage]
2205
+ * @param {number} [itemsPerPage]
2221
2206
  * @param {string} [search]
2222
2207
  * @param {string} [startDate]
2223
2208
  * @param {string} [endDate]
@@ -2423,7 +2408,7 @@ export const CategoryApiFp = function (configuration) {
2423
2408
  *
2424
2409
  * @param {string} company
2425
2410
  * @param {number} [page]
2426
- * @param {PaginationLimitEnum} [itemsPerPage]
2411
+ * @param {number} [itemsPerPage]
2427
2412
  * @param {string} [search]
2428
2413
  * @param {string} [startDate]
2429
2414
  * @param {string} [endDate]
@@ -2788,7 +2773,7 @@ export const CollectionApiAxiosParamCreator = function (configuration) {
2788
2773
  *
2789
2774
  * @param {string} company
2790
2775
  * @param {number} [page]
2791
- * @param {PaginationLimitEnum} [itemsPerPage]
2776
+ * @param {number} [itemsPerPage]
2792
2777
  * @param {string} [search]
2793
2778
  * @param {string} [startDate]
2794
2779
  * @param {string} [endDate]
@@ -2991,7 +2976,7 @@ export const CollectionApiFp = function (configuration) {
2991
2976
  *
2992
2977
  * @param {string} company
2993
2978
  * @param {number} [page]
2994
- * @param {PaginationLimitEnum} [itemsPerPage]
2979
+ * @param {number} [itemsPerPage]
2995
2980
  * @param {string} [search]
2996
2981
  * @param {string} [startDate]
2997
2982
  * @param {string} [endDate]
@@ -3428,7 +3413,7 @@ export const CompanyApiAxiosParamCreator = function (configuration) {
3428
3413
  /**
3429
3414
  *
3430
3415
  * @param {number} [page]
3431
- * @param {PaginationLimitEnum} [itemsPerPage]
3416
+ * @param {number} [itemsPerPage]
3432
3417
  * @param {string} [search]
3433
3418
  * @param {string} [startDate]
3434
3419
  * @param {string} [endDate]
@@ -3561,7 +3546,7 @@ export const CompanyApiAxiosParamCreator = function (configuration) {
3561
3546
  *
3562
3547
  * @param {string} id
3563
3548
  * @param {number} [page]
3564
- * @param {PaginationLimitEnum} [itemsPerPage]
3549
+ * @param {number} [itemsPerPage]
3565
3550
  * @param {string} [search]
3566
3551
  * @param {string} [startDate]
3567
3552
  * @param {string} [endDate]
@@ -4019,7 +4004,7 @@ export const CompanyApiFp = function (configuration) {
4019
4004
  /**
4020
4005
  *
4021
4006
  * @param {number} [page]
4022
- * @param {PaginationLimitEnum} [itemsPerPage]
4007
+ * @param {number} [itemsPerPage]
4023
4008
  * @param {string} [search]
4024
4009
  * @param {string} [startDate]
4025
4010
  * @param {string} [endDate]
@@ -4067,7 +4052,7 @@ export const CompanyApiFp = function (configuration) {
4067
4052
  *
4068
4053
  * @param {string} id
4069
4054
  * @param {number} [page]
4070
- * @param {PaginationLimitEnum} [itemsPerPage]
4055
+ * @param {number} [itemsPerPage]
4071
4056
  * @param {string} [search]
4072
4057
  * @param {string} [startDate]
4073
4058
  * @param {string} [endDate]
@@ -4666,7 +4651,7 @@ export const FileApiAxiosParamCreator = function (configuration) {
4666
4651
  *
4667
4652
  * @param {string} company
4668
4653
  * @param {number} [page]
4669
- * @param {PaginationLimitEnum} [itemsPerPage]
4654
+ * @param {number} [itemsPerPage]
4670
4655
  * @param {string} [search]
4671
4656
  * @param {string} [startDate]
4672
4657
  * @param {string} [endDate]
@@ -4855,7 +4840,7 @@ export const FileApiFp = function (configuration) {
4855
4840
  *
4856
4841
  * @param {string} company
4857
4842
  * @param {number} [page]
4858
- * @param {PaginationLimitEnum} [itemsPerPage]
4843
+ * @param {number} [itemsPerPage]
4859
4844
  * @param {string} [search]
4860
4845
  * @param {string} [startDate]
4861
4846
  * @param {string} [endDate]
@@ -5080,7 +5065,7 @@ export const NotificationApiAxiosParamCreator = function (configuration) {
5080
5065
  /**
5081
5066
  *
5082
5067
  * @param {number} [page]
5083
- * @param {PaginationLimitEnum} [itemsPerPage]
5068
+ * @param {number} [itemsPerPage]
5084
5069
  * @param {string} [search]
5085
5070
  * @param {string} [startDate]
5086
5071
  * @param {string} [endDate]
@@ -5237,7 +5222,7 @@ export const NotificationApiFp = function (configuration) {
5237
5222
  /**
5238
5223
  *
5239
5224
  * @param {number} [page]
5240
- * @param {PaginationLimitEnum} [itemsPerPage]
5225
+ * @param {number} [itemsPerPage]
5241
5226
  * @param {string} [search]
5242
5227
  * @param {string} [startDate]
5243
5228
  * @param {string} [endDate]
@@ -5485,7 +5470,7 @@ export const OperationApiAxiosParamCreator = function (configuration) {
5485
5470
  /**
5486
5471
  *
5487
5472
  * @param {number} [page]
5488
- * @param {PaginationLimitEnum} [itemsPerPage]
5473
+ * @param {number} [itemsPerPage]
5489
5474
  * @param {string} [search]
5490
5475
  * @param {string} [startDate]
5491
5476
  * @param {string} [endDate]
@@ -5663,7 +5648,7 @@ export const OperationApiFp = function (configuration) {
5663
5648
  /**
5664
5649
  *
5665
5650
  * @param {number} [page]
5666
- * @param {PaginationLimitEnum} [itemsPerPage]
5651
+ * @param {number} [itemsPerPage]
5667
5652
  * @param {string} [search]
5668
5653
  * @param {string} [startDate]
5669
5654
  * @param {string} [endDate]
@@ -5903,6 +5888,42 @@ export const PageApiAxiosParamCreator = function (configuration) {
5903
5888
  options: localVarRequestOptions,
5904
5889
  };
5905
5890
  },
5891
+ /**
5892
+ *
5893
+ * @param {string} [company]
5894
+ * @param {string} [domain]
5895
+ * @param {Array<PageTypeEnum>} [type]
5896
+ * @param {*} [options] Override http request option.
5897
+ * @throws {RequiredError}
5898
+ */
5899
+ getAllPages: async (company, domain, type, options = {}) => {
5900
+ const localVarPath = `/api/pages/get/all`;
5901
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5902
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5903
+ let baseOptions;
5904
+ if (configuration) {
5905
+ baseOptions = configuration.baseOptions;
5906
+ }
5907
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
5908
+ const localVarHeaderParameter = {};
5909
+ const localVarQueryParameter = {};
5910
+ if (company !== undefined) {
5911
+ localVarQueryParameter['company'] = company;
5912
+ }
5913
+ if (domain !== undefined) {
5914
+ localVarQueryParameter['domain'] = domain;
5915
+ }
5916
+ if (type) {
5917
+ localVarQueryParameter['type'] = type;
5918
+ }
5919
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5920
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5921
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
5922
+ return {
5923
+ url: toPathString(localVarUrlObj),
5924
+ options: localVarRequestOptions,
5925
+ };
5926
+ },
5906
5927
  /**
5907
5928
  *
5908
5929
  * @param {string} id
@@ -6007,7 +6028,7 @@ export const PageApiAxiosParamCreator = function (configuration) {
6007
6028
  *
6008
6029
  * @param {string} company
6009
6030
  * @param {number} [page]
6010
- * @param {PaginationLimitEnum} [itemsPerPage]
6031
+ * @param {number} [itemsPerPage]
6011
6032
  * @param {string} [search]
6012
6033
  * @param {string} [startDate]
6013
6034
  * @param {string} [endDate]
@@ -6177,6 +6198,20 @@ export const PageApiFp = function (configuration) {
6177
6198
  const localVarOperationServerBasePath = operationServerMap['PageApi.deletePage']?.[localVarOperationServerIndex]?.url;
6178
6199
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6179
6200
  },
6201
+ /**
6202
+ *
6203
+ * @param {string} [company]
6204
+ * @param {string} [domain]
6205
+ * @param {Array<PageTypeEnum>} [type]
6206
+ * @param {*} [options] Override http request option.
6207
+ * @throws {RequiredError}
6208
+ */
6209
+ async getAllPages(company, domain, type, options) {
6210
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getAllPages(company, domain, type, options);
6211
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6212
+ const localVarOperationServerBasePath = operationServerMap['PageApi.getAllPages']?.[localVarOperationServerIndex]?.url;
6213
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6214
+ },
6180
6215
  /**
6181
6216
  *
6182
6217
  * @param {string} id
@@ -6221,7 +6256,7 @@ export const PageApiFp = function (configuration) {
6221
6256
  *
6222
6257
  * @param {string} company
6223
6258
  * @param {number} [page]
6224
- * @param {PaginationLimitEnum} [itemsPerPage]
6259
+ * @param {number} [itemsPerPage]
6225
6260
  * @param {string} [search]
6226
6261
  * @param {string} [startDate]
6227
6262
  * @param {string} [endDate]
@@ -6292,6 +6327,15 @@ export const PageApiFactory = function (configuration, basePath, axios) {
6292
6327
  deletePage(requestParameters, options) {
6293
6328
  return localVarFp.deletePage(requestParameters.id, options).then((request) => request(axios, basePath));
6294
6329
  },
6330
+ /**
6331
+ *
6332
+ * @param {PageApiGetAllPagesRequest} requestParameters Request parameters.
6333
+ * @param {*} [options] Override http request option.
6334
+ * @throws {RequiredError}
6335
+ */
6336
+ getAllPages(requestParameters = {}, options) {
6337
+ return localVarFp.getAllPages(requestParameters.company, requestParameters.domain, requestParameters.type, options).then((request) => request(axios, basePath));
6338
+ },
6295
6339
  /**
6296
6340
  *
6297
6341
  * @param {PageApiGetPageByIdRequest} requestParameters Request parameters.
@@ -6375,6 +6419,16 @@ export class PageApi extends BaseAPI {
6375
6419
  deletePage(requestParameters, options) {
6376
6420
  return PageApiFp(this.configuration).deletePage(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
6377
6421
  }
6422
+ /**
6423
+ *
6424
+ * @param {PageApiGetAllPagesRequest} requestParameters Request parameters.
6425
+ * @param {*} [options] Override http request option.
6426
+ * @throws {RequiredError}
6427
+ * @memberof PageApi
6428
+ */
6429
+ getAllPages(requestParameters = {}, options) {
6430
+ return PageApiFp(this.configuration).getAllPages(requestParameters.company, requestParameters.domain, requestParameters.type, options).then((request) => request(this.axios, this.basePath));
6431
+ }
6378
6432
  /**
6379
6433
  *
6380
6434
  * @param {PageApiGetPageByIdRequest} requestParameters Request parameters.
@@ -6530,7 +6584,7 @@ export const PlanApiAxiosParamCreator = function (configuration) {
6530
6584
  /**
6531
6585
  *
6532
6586
  * @param {number} [page]
6533
- * @param {PaginationLimitEnum} [itemsPerPage]
6587
+ * @param {number} [itemsPerPage]
6534
6588
  * @param {string} [search]
6535
6589
  * @param {string} [startDate]
6536
6590
  * @param {string} [endDate]
@@ -6676,7 +6730,7 @@ export const PlanApiFp = function (configuration) {
6676
6730
  /**
6677
6731
  *
6678
6732
  * @param {number} [page]
6679
- * @param {PaginationLimitEnum} [itemsPerPage]
6733
+ * @param {number} [itemsPerPage]
6680
6734
  * @param {string} [search]
6681
6735
  * @param {string} [startDate]
6682
6736
  * @param {string} [endDate]
@@ -7018,7 +7072,7 @@ export const ProductApiAxiosParamCreator = function (configuration) {
7018
7072
  *
7019
7073
  * @param {string} company
7020
7074
  * @param {number} [page]
7021
- * @param {PaginationLimitEnum} [itemsPerPage]
7075
+ * @param {number} [itemsPerPage]
7022
7076
  * @param {string} [search]
7023
7077
  * @param {string} [startDate]
7024
7078
  * @param {string} [endDate]
@@ -7253,7 +7307,7 @@ export const ProductApiFp = function (configuration) {
7253
7307
  *
7254
7308
  * @param {string} company
7255
7309
  * @param {number} [page]
7256
- * @param {PaginationLimitEnum} [itemsPerPage]
7310
+ * @param {number} [itemsPerPage]
7257
7311
  * @param {string} [search]
7258
7312
  * @param {string} [startDate]
7259
7313
  * @param {string} [endDate]
@@ -8305,7 +8359,7 @@ export const UserApiAxiosParamCreator = function (configuration) {
8305
8359
  /**
8306
8360
  *
8307
8361
  * @param {number} [page]
8308
- * @param {PaginationLimitEnum} [itemsPerPage]
8362
+ * @param {number} [itemsPerPage]
8309
8363
  * @param {string} [search]
8310
8364
  * @param {string} [startDate]
8311
8365
  * @param {string} [endDate]
@@ -8542,7 +8596,7 @@ export const UserApiFp = function (configuration) {
8542
8596
  /**
8543
8597
  *
8544
8598
  * @param {number} [page]
8545
- * @param {PaginationLimitEnum} [itemsPerPage]
8599
+ * @param {number} [itemsPerPage]
8546
8600
  * @param {string} [search]
8547
8601
  * @param {string} [startDate]
8548
8602
  * @param {string} [endDate]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infisale-client/api",
3
- "version": "1.1.16",
3
+ "version": "1.1.18",
4
4
  "description": "api-sdk",
5
5
  "author": "Muhammet KÖKLÜ <105980019+byhipernova@users.noreply.github.com>",
6
6
  "homepage": "https://github.com/infisale/infisale-client#readme",
@@ -36,5 +36,5 @@
36
36
  "bugs": {
37
37
  "url": "https://github.com/infisale/infisale-client/issues"
38
38
  },
39
- "gitHead": "fb109bad80717b4136a1203a5fcdda9c36d3866b"
39
+ "gitHead": "b82699a1ff281029c72965d9842251b4a2ff20e9"
40
40
  }