@infisale-client/api 1.1.25 → 1.1.28

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.mjs CHANGED
@@ -482,7 +482,7 @@ export const NavigationUrlTargetEnum = {
482
482
  /**
483
483
  *
484
484
  * @export
485
- * @enum {string}
485
+ * @enum {number}
486
486
  */
487
487
  export const NotificationMessageEnum = {
488
488
  NUMBER_404: 404,
@@ -1053,6 +1053,34 @@ export const AuthApiAxiosParamCreator = function (configuration) {
1053
1053
  options: localVarRequestOptions,
1054
1054
  };
1055
1055
  },
1056
+ /**
1057
+ *
1058
+ * @param {string} code
1059
+ * @param {*} [options] Override http request option.
1060
+ * @throws {RequiredError}
1061
+ */
1062
+ verifyCode: async (code, options = {}) => {
1063
+ // verify required parameter 'code' is not null or undefined
1064
+ assertParamExists('verifyCode', 'code', code);
1065
+ const localVarPath = `/api/auth/verify-code/{code}`
1066
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
1067
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1068
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1069
+ let baseOptions;
1070
+ if (configuration) {
1071
+ baseOptions = configuration.baseOptions;
1072
+ }
1073
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1074
+ const localVarHeaderParameter = {};
1075
+ const localVarQueryParameter = {};
1076
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1077
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1078
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1079
+ return {
1080
+ url: toPathString(localVarUrlObj),
1081
+ options: localVarRequestOptions,
1082
+ };
1083
+ },
1056
1084
  };
1057
1085
  };
1058
1086
  /**
@@ -1153,6 +1181,18 @@ export const AuthApiFp = function (configuration) {
1153
1181
  const localVarOperationServerBasePath = operationServerMap['AuthApi.socialLogin']?.[localVarOperationServerIndex]?.url;
1154
1182
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1155
1183
  },
1184
+ /**
1185
+ *
1186
+ * @param {string} code
1187
+ * @param {*} [options] Override http request option.
1188
+ * @throws {RequiredError}
1189
+ */
1190
+ async verifyCode(code, options) {
1191
+ const localVarAxiosArgs = await localVarAxiosParamCreator.verifyCode(code, options);
1192
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1193
+ const localVarOperationServerBasePath = operationServerMap['AuthApi.verifyCode']?.[localVarOperationServerIndex]?.url;
1194
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1195
+ },
1156
1196
  };
1157
1197
  };
1158
1198
  /**
@@ -1225,6 +1265,15 @@ export const AuthApiFactory = function (configuration, basePath, axios) {
1225
1265
  socialLogin(requestParameters, options) {
1226
1266
  return localVarFp.socialLogin(requestParameters.domain, requestParameters.iSocialLoginRequest, options).then((request) => request(axios, basePath));
1227
1267
  },
1268
+ /**
1269
+ *
1270
+ * @param {AuthApiVerifyCodeRequest} requestParameters Request parameters.
1271
+ * @param {*} [options] Override http request option.
1272
+ * @throws {RequiredError}
1273
+ */
1274
+ verifyCode(requestParameters, options) {
1275
+ return localVarFp.verifyCode(requestParameters.code, options).then((request) => request(axios, basePath));
1276
+ },
1228
1277
  };
1229
1278
  };
1230
1279
  /**
@@ -1304,6 +1353,16 @@ export class AuthApi extends BaseAPI {
1304
1353
  socialLogin(requestParameters, options) {
1305
1354
  return AuthApiFp(this.configuration).socialLogin(requestParameters.domain, requestParameters.iSocialLoginRequest, options).then((request) => request(this.axios, this.basePath));
1306
1355
  }
1356
+ /**
1357
+ *
1358
+ * @param {AuthApiVerifyCodeRequest} requestParameters Request parameters.
1359
+ * @param {*} [options] Override http request option.
1360
+ * @throws {RequiredError}
1361
+ * @memberof AuthApi
1362
+ */
1363
+ verifyCode(requestParameters, options) {
1364
+ return AuthApiFp(this.configuration).verifyCode(requestParameters.code, options).then((request) => request(this.axios, this.basePath));
1365
+ }
1307
1366
  }
1308
1367
  /**
1309
1368
  * BasketApi - axios parameter creator
@@ -1780,7 +1839,6 @@ export const BrandApiAxiosParamCreator = function (configuration) {
1780
1839
  },
1781
1840
  /**
1782
1841
  *
1783
- * @param {string} companyId
1784
1842
  * @param {number} [page]
1785
1843
  * @param {number} [itemsPerPage]
1786
1844
  * @param {string} [search]
@@ -1789,13 +1847,13 @@ export const BrandApiAxiosParamCreator = function (configuration) {
1789
1847
  * @param {string} [dateField]
1790
1848
  * @param {OrderEnum} [order]
1791
1849
  * @param {string} [sort]
1850
+ * @param {string} [companyId]
1851
+ * @param {string} [domain]
1792
1852
  * @param {ContentStatusEnum} [status]
1793
1853
  * @param {*} [options] Override http request option.
1794
1854
  * @throws {RequiredError}
1795
1855
  */
1796
- getBrands: async (companyId, page, itemsPerPage, search, startDate, endDate, dateField, order, sort, status, options = {}) => {
1797
- // verify required parameter 'companyId' is not null or undefined
1798
- assertParamExists('getBrands', 'companyId', companyId);
1856
+ getBrands: async (page, itemsPerPage, search, startDate, endDate, dateField, order, sort, companyId, domain, status, options = {}) => {
1799
1857
  const localVarPath = `/api/brands`;
1800
1858
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1801
1859
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -1837,6 +1895,9 @@ export const BrandApiAxiosParamCreator = function (configuration) {
1837
1895
  if (companyId !== undefined) {
1838
1896
  localVarQueryParameter['company_id'] = companyId;
1839
1897
  }
1898
+ if (domain !== undefined) {
1899
+ localVarQueryParameter['domain'] = domain;
1900
+ }
1840
1901
  if (status !== undefined) {
1841
1902
  localVarQueryParameter['status'] = status;
1842
1903
  }
@@ -1940,7 +2001,6 @@ export const BrandApiFp = function (configuration) {
1940
2001
  },
1941
2002
  /**
1942
2003
  *
1943
- * @param {string} companyId
1944
2004
  * @param {number} [page]
1945
2005
  * @param {number} [itemsPerPage]
1946
2006
  * @param {string} [search]
@@ -1949,12 +2009,14 @@ export const BrandApiFp = function (configuration) {
1949
2009
  * @param {string} [dateField]
1950
2010
  * @param {OrderEnum} [order]
1951
2011
  * @param {string} [sort]
2012
+ * @param {string} [companyId]
2013
+ * @param {string} [domain]
1952
2014
  * @param {ContentStatusEnum} [status]
1953
2015
  * @param {*} [options] Override http request option.
1954
2016
  * @throws {RequiredError}
1955
2017
  */
1956
- async getBrands(companyId, page, itemsPerPage, search, startDate, endDate, dateField, order, sort, status, options) {
1957
- const localVarAxiosArgs = await localVarAxiosParamCreator.getBrands(companyId, page, itemsPerPage, search, startDate, endDate, dateField, order, sort, status, options);
2018
+ async getBrands(page, itemsPerPage, search, startDate, endDate, dateField, order, sort, companyId, domain, status, options) {
2019
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getBrands(page, itemsPerPage, search, startDate, endDate, dateField, order, sort, companyId, domain, status, options);
1958
2020
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1959
2021
  const localVarOperationServerBasePath = operationServerMap['BrandApi.getBrands']?.[localVarOperationServerIndex]?.url;
1960
2022
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -2023,8 +2085,8 @@ export const BrandApiFactory = function (configuration, basePath, axios) {
2023
2085
  * @param {*} [options] Override http request option.
2024
2086
  * @throws {RequiredError}
2025
2087
  */
2026
- getBrands(requestParameters, options) {
2027
- return localVarFp.getBrands(requestParameters.companyId, requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.status, options).then((request) => request(axios, basePath));
2088
+ getBrands(requestParameters = {}, options) {
2089
+ return localVarFp.getBrands(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.companyId, requestParameters.domain, requestParameters.status, options).then((request) => request(axios, basePath));
2028
2090
  },
2029
2091
  /**
2030
2092
  *
@@ -2091,8 +2153,8 @@ export class BrandApi extends BaseAPI {
2091
2153
  * @throws {RequiredError}
2092
2154
  * @memberof BrandApi
2093
2155
  */
2094
- getBrands(requestParameters, options) {
2095
- return BrandApiFp(this.configuration).getBrands(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));
2156
+ getBrands(requestParameters = {}, options) {
2157
+ return BrandApiFp(this.configuration).getBrands(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.companyId, requestParameters.domain, requestParameters.status, options).then((request) => request(this.axios, this.basePath));
2096
2158
  }
2097
2159
  /**
2098
2160
  *
@@ -2200,7 +2262,6 @@ export const CategoryApiAxiosParamCreator = function (configuration) {
2200
2262
  },
2201
2263
  /**
2202
2264
  *
2203
- * @param {string} companyId
2204
2265
  * @param {number} [page]
2205
2266
  * @param {number} [itemsPerPage]
2206
2267
  * @param {string} [search]
@@ -2209,13 +2270,13 @@ export const CategoryApiAxiosParamCreator = function (configuration) {
2209
2270
  * @param {string} [dateField]
2210
2271
  * @param {OrderEnum} [order]
2211
2272
  * @param {string} [sort]
2273
+ * @param {string} [companyId]
2274
+ * @param {string} [domain]
2212
2275
  * @param {ContentStatusEnum} [status]
2213
2276
  * @param {*} [options] Override http request option.
2214
2277
  * @throws {RequiredError}
2215
2278
  */
2216
- getCategories: async (companyId, page, itemsPerPage, search, startDate, endDate, dateField, order, sort, status, options = {}) => {
2217
- // verify required parameter 'companyId' is not null or undefined
2218
- assertParamExists('getCategories', 'companyId', companyId);
2279
+ getCategories: async (page, itemsPerPage, search, startDate, endDate, dateField, order, sort, companyId, domain, status, options = {}) => {
2219
2280
  const localVarPath = `/api/categories`;
2220
2281
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2221
2282
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -2257,6 +2318,9 @@ export const CategoryApiAxiosParamCreator = function (configuration) {
2257
2318
  if (companyId !== undefined) {
2258
2319
  localVarQueryParameter['company_id'] = companyId;
2259
2320
  }
2321
+ if (domain !== undefined) {
2322
+ localVarQueryParameter['domain'] = domain;
2323
+ }
2260
2324
  if (status !== undefined) {
2261
2325
  localVarQueryParameter['status'] = status;
2262
2326
  }
@@ -2406,7 +2470,6 @@ export const CategoryApiFp = function (configuration) {
2406
2470
  },
2407
2471
  /**
2408
2472
  *
2409
- * @param {string} companyId
2410
2473
  * @param {number} [page]
2411
2474
  * @param {number} [itemsPerPage]
2412
2475
  * @param {string} [search]
@@ -2415,12 +2478,14 @@ export const CategoryApiFp = function (configuration) {
2415
2478
  * @param {string} [dateField]
2416
2479
  * @param {OrderEnum} [order]
2417
2480
  * @param {string} [sort]
2481
+ * @param {string} [companyId]
2482
+ * @param {string} [domain]
2418
2483
  * @param {ContentStatusEnum} [status]
2419
2484
  * @param {*} [options] Override http request option.
2420
2485
  * @throws {RequiredError}
2421
2486
  */
2422
- async getCategories(companyId, page, itemsPerPage, search, startDate, endDate, dateField, order, sort, status, options) {
2423
- const localVarAxiosArgs = await localVarAxiosParamCreator.getCategories(companyId, page, itemsPerPage, search, startDate, endDate, dateField, order, sort, status, options);
2487
+ async getCategories(page, itemsPerPage, search, startDate, endDate, dateField, order, sort, companyId, domain, status, options) {
2488
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getCategories(page, itemsPerPage, search, startDate, endDate, dateField, order, sort, companyId, domain, status, options);
2424
2489
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2425
2490
  const localVarOperationServerBasePath = operationServerMap['CategoryApi.getCategories']?.[localVarOperationServerIndex]?.url;
2426
2491
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -2504,8 +2569,8 @@ export const CategoryApiFactory = function (configuration, basePath, axios) {
2504
2569
  * @param {*} [options] Override http request option.
2505
2570
  * @throws {RequiredError}
2506
2571
  */
2507
- getCategories(requestParameters, options) {
2508
- return localVarFp.getCategories(requestParameters.companyId, requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.status, options).then((request) => request(axios, basePath));
2572
+ getCategories(requestParameters = {}, options) {
2573
+ return localVarFp.getCategories(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.companyId, requestParameters.domain, requestParameters.status, options).then((request) => request(axios, basePath));
2509
2574
  },
2510
2575
  /**
2511
2576
  *
@@ -2580,8 +2645,8 @@ export class CategoryApi extends BaseAPI {
2580
2645
  * @throws {RequiredError}
2581
2646
  * @memberof CategoryApi
2582
2647
  */
2583
- getCategories(requestParameters, options) {
2584
- return CategoryApiFp(this.configuration).getCategories(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));
2648
+ getCategories(requestParameters = {}, options) {
2649
+ return CategoryApiFp(this.configuration).getCategories(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.companyId, requestParameters.domain, requestParameters.status, options).then((request) => request(this.axios, this.basePath));
2585
2650
  }
2586
2651
  /**
2587
2652
  *
@@ -4585,6 +4650,323 @@ export class CompanyApi extends BaseAPI {
4585
4650
  return CompanyApiFp(this.configuration).updateUserInCompany(requestParameters.id, requestParameters.userId, requestParameters.iCompanyUpdateUserRequest, options).then((request) => request(this.axios, this.basePath));
4586
4651
  }
4587
4652
  }
4653
+ /**
4654
+ * ContactFormApi - axios parameter creator
4655
+ * @export
4656
+ */
4657
+ export const ContactFormApiAxiosParamCreator = function (configuration) {
4658
+ return {
4659
+ /**
4660
+ *
4661
+ * @param {IContactFormPostRequest} iContactFormPostRequest
4662
+ * @param {*} [options] Override http request option.
4663
+ * @throws {RequiredError}
4664
+ */
4665
+ createContactForm: async (iContactFormPostRequest, options = {}) => {
4666
+ // verify required parameter 'iContactFormPostRequest' is not null or undefined
4667
+ assertParamExists('createContactForm', 'iContactFormPostRequest', iContactFormPostRequest);
4668
+ const localVarPath = `/api/contact-forms`;
4669
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4670
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4671
+ let baseOptions;
4672
+ if (configuration) {
4673
+ baseOptions = configuration.baseOptions;
4674
+ }
4675
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
4676
+ const localVarHeaderParameter = {};
4677
+ const localVarQueryParameter = {};
4678
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4679
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4680
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4681
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
4682
+ localVarRequestOptions.data = serializeDataIfNeeded(iContactFormPostRequest, localVarRequestOptions, configuration);
4683
+ return {
4684
+ url: toPathString(localVarUrlObj),
4685
+ options: localVarRequestOptions,
4686
+ };
4687
+ },
4688
+ /**
4689
+ *
4690
+ * @param {string} id
4691
+ * @param {*} [options] Override http request option.
4692
+ * @throws {RequiredError}
4693
+ */
4694
+ deleteContactForm: async (id, options = {}) => {
4695
+ // verify required parameter 'id' is not null or undefined
4696
+ assertParamExists('deleteContactForm', 'id', id);
4697
+ const localVarPath = `/api/contact-forms/{id}`
4698
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
4699
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4700
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4701
+ let baseOptions;
4702
+ if (configuration) {
4703
+ baseOptions = configuration.baseOptions;
4704
+ }
4705
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
4706
+ const localVarHeaderParameter = {};
4707
+ const localVarQueryParameter = {};
4708
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4709
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4710
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
4711
+ return {
4712
+ url: toPathString(localVarUrlObj),
4713
+ options: localVarRequestOptions,
4714
+ };
4715
+ },
4716
+ /**
4717
+ *
4718
+ * @param {string} id
4719
+ * @param {*} [options] Override http request option.
4720
+ * @throws {RequiredError}
4721
+ */
4722
+ getContactFormById: async (id, options = {}) => {
4723
+ // verify required parameter 'id' is not null or undefined
4724
+ assertParamExists('getContactFormById', 'id', id);
4725
+ const localVarPath = `/api/contact-forms/{id}`
4726
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
4727
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4728
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4729
+ let baseOptions;
4730
+ if (configuration) {
4731
+ baseOptions = configuration.baseOptions;
4732
+ }
4733
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
4734
+ const localVarHeaderParameter = {};
4735
+ const localVarQueryParameter = {};
4736
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4737
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4738
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
4739
+ return {
4740
+ url: toPathString(localVarUrlObj),
4741
+ options: localVarRequestOptions,
4742
+ };
4743
+ },
4744
+ /**
4745
+ *
4746
+ * @param {string} companyId
4747
+ * @param {number} [page]
4748
+ * @param {number} [itemsPerPage]
4749
+ * @param {string} [search]
4750
+ * @param {string} [startDate]
4751
+ * @param {string} [endDate]
4752
+ * @param {string} [dateField]
4753
+ * @param {OrderEnum} [order]
4754
+ * @param {string} [sort]
4755
+ * @param {*} [options] Override http request option.
4756
+ * @throws {RequiredError}
4757
+ */
4758
+ getContactForms: async (companyId, page, itemsPerPage, search, startDate, endDate, dateField, order, sort, options = {}) => {
4759
+ // verify required parameter 'companyId' is not null or undefined
4760
+ assertParamExists('getContactForms', 'companyId', companyId);
4761
+ const localVarPath = `/api/contact-forms`;
4762
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4763
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4764
+ let baseOptions;
4765
+ if (configuration) {
4766
+ baseOptions = configuration.baseOptions;
4767
+ }
4768
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
4769
+ const localVarHeaderParameter = {};
4770
+ const localVarQueryParameter = {};
4771
+ if (page !== undefined) {
4772
+ localVarQueryParameter['page'] = page;
4773
+ }
4774
+ if (itemsPerPage !== undefined) {
4775
+ localVarQueryParameter['itemsPerPage'] = itemsPerPage;
4776
+ }
4777
+ if (search !== undefined) {
4778
+ localVarQueryParameter['search'] = search;
4779
+ }
4780
+ if (startDate !== undefined) {
4781
+ localVarQueryParameter['startDate'] = (startDate instanceof Date) ?
4782
+ startDate.toISOString() :
4783
+ startDate;
4784
+ }
4785
+ if (endDate !== undefined) {
4786
+ localVarQueryParameter['endDate'] = (endDate instanceof Date) ?
4787
+ endDate.toISOString() :
4788
+ endDate;
4789
+ }
4790
+ if (dateField !== undefined) {
4791
+ localVarQueryParameter['dateField'] = dateField;
4792
+ }
4793
+ if (order !== undefined) {
4794
+ localVarQueryParameter['order'] = order;
4795
+ }
4796
+ if (sort !== undefined) {
4797
+ localVarQueryParameter['sort'] = sort;
4798
+ }
4799
+ if (companyId !== undefined) {
4800
+ localVarQueryParameter['company_id'] = companyId;
4801
+ }
4802
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4803
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4804
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
4805
+ return {
4806
+ url: toPathString(localVarUrlObj),
4807
+ options: localVarRequestOptions,
4808
+ };
4809
+ },
4810
+ };
4811
+ };
4812
+ /**
4813
+ * ContactFormApi - functional programming interface
4814
+ * @export
4815
+ */
4816
+ export const ContactFormApiFp = function (configuration) {
4817
+ const localVarAxiosParamCreator = ContactFormApiAxiosParamCreator(configuration);
4818
+ return {
4819
+ /**
4820
+ *
4821
+ * @param {IContactFormPostRequest} iContactFormPostRequest
4822
+ * @param {*} [options] Override http request option.
4823
+ * @throws {RequiredError}
4824
+ */
4825
+ async createContactForm(iContactFormPostRequest, options) {
4826
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createContactForm(iContactFormPostRequest, options);
4827
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4828
+ const localVarOperationServerBasePath = operationServerMap['ContactFormApi.createContactForm']?.[localVarOperationServerIndex]?.url;
4829
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4830
+ },
4831
+ /**
4832
+ *
4833
+ * @param {string} id
4834
+ * @param {*} [options] Override http request option.
4835
+ * @throws {RequiredError}
4836
+ */
4837
+ async deleteContactForm(id, options) {
4838
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteContactForm(id, options);
4839
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4840
+ const localVarOperationServerBasePath = operationServerMap['ContactFormApi.deleteContactForm']?.[localVarOperationServerIndex]?.url;
4841
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4842
+ },
4843
+ /**
4844
+ *
4845
+ * @param {string} id
4846
+ * @param {*} [options] Override http request option.
4847
+ * @throws {RequiredError}
4848
+ */
4849
+ async getContactFormById(id, options) {
4850
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getContactFormById(id, options);
4851
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4852
+ const localVarOperationServerBasePath = operationServerMap['ContactFormApi.getContactFormById']?.[localVarOperationServerIndex]?.url;
4853
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4854
+ },
4855
+ /**
4856
+ *
4857
+ * @param {string} companyId
4858
+ * @param {number} [page]
4859
+ * @param {number} [itemsPerPage]
4860
+ * @param {string} [search]
4861
+ * @param {string} [startDate]
4862
+ * @param {string} [endDate]
4863
+ * @param {string} [dateField]
4864
+ * @param {OrderEnum} [order]
4865
+ * @param {string} [sort]
4866
+ * @param {*} [options] Override http request option.
4867
+ * @throws {RequiredError}
4868
+ */
4869
+ async getContactForms(companyId, page, itemsPerPage, search, startDate, endDate, dateField, order, sort, options) {
4870
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getContactForms(companyId, page, itemsPerPage, search, startDate, endDate, dateField, order, sort, options);
4871
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4872
+ const localVarOperationServerBasePath = operationServerMap['ContactFormApi.getContactForms']?.[localVarOperationServerIndex]?.url;
4873
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4874
+ },
4875
+ };
4876
+ };
4877
+ /**
4878
+ * ContactFormApi - factory interface
4879
+ * @export
4880
+ */
4881
+ export const ContactFormApiFactory = function (configuration, basePath, axios) {
4882
+ const localVarFp = ContactFormApiFp(configuration);
4883
+ return {
4884
+ /**
4885
+ *
4886
+ * @param {ContactFormApiCreateContactFormRequest} requestParameters Request parameters.
4887
+ * @param {*} [options] Override http request option.
4888
+ * @throws {RequiredError}
4889
+ */
4890
+ createContactForm(requestParameters, options) {
4891
+ return localVarFp.createContactForm(requestParameters.iContactFormPostRequest, options).then((request) => request(axios, basePath));
4892
+ },
4893
+ /**
4894
+ *
4895
+ * @param {ContactFormApiDeleteContactFormRequest} requestParameters Request parameters.
4896
+ * @param {*} [options] Override http request option.
4897
+ * @throws {RequiredError}
4898
+ */
4899
+ deleteContactForm(requestParameters, options) {
4900
+ return localVarFp.deleteContactForm(requestParameters.id, options).then((request) => request(axios, basePath));
4901
+ },
4902
+ /**
4903
+ *
4904
+ * @param {ContactFormApiGetContactFormByIdRequest} requestParameters Request parameters.
4905
+ * @param {*} [options] Override http request option.
4906
+ * @throws {RequiredError}
4907
+ */
4908
+ getContactFormById(requestParameters, options) {
4909
+ return localVarFp.getContactFormById(requestParameters.id, options).then((request) => request(axios, basePath));
4910
+ },
4911
+ /**
4912
+ *
4913
+ * @param {ContactFormApiGetContactFormsRequest} requestParameters Request parameters.
4914
+ * @param {*} [options] Override http request option.
4915
+ * @throws {RequiredError}
4916
+ */
4917
+ getContactForms(requestParameters, options) {
4918
+ return localVarFp.getContactForms(requestParameters.companyId, requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, options).then((request) => request(axios, basePath));
4919
+ },
4920
+ };
4921
+ };
4922
+ /**
4923
+ * ContactFormApi - object-oriented interface
4924
+ * @export
4925
+ * @class ContactFormApi
4926
+ * @extends {BaseAPI}
4927
+ */
4928
+ export class ContactFormApi extends BaseAPI {
4929
+ /**
4930
+ *
4931
+ * @param {ContactFormApiCreateContactFormRequest} requestParameters Request parameters.
4932
+ * @param {*} [options] Override http request option.
4933
+ * @throws {RequiredError}
4934
+ * @memberof ContactFormApi
4935
+ */
4936
+ createContactForm(requestParameters, options) {
4937
+ return ContactFormApiFp(this.configuration).createContactForm(requestParameters.iContactFormPostRequest, options).then((request) => request(this.axios, this.basePath));
4938
+ }
4939
+ /**
4940
+ *
4941
+ * @param {ContactFormApiDeleteContactFormRequest} requestParameters Request parameters.
4942
+ * @param {*} [options] Override http request option.
4943
+ * @throws {RequiredError}
4944
+ * @memberof ContactFormApi
4945
+ */
4946
+ deleteContactForm(requestParameters, options) {
4947
+ return ContactFormApiFp(this.configuration).deleteContactForm(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
4948
+ }
4949
+ /**
4950
+ *
4951
+ * @param {ContactFormApiGetContactFormByIdRequest} requestParameters Request parameters.
4952
+ * @param {*} [options] Override http request option.
4953
+ * @throws {RequiredError}
4954
+ * @memberof ContactFormApi
4955
+ */
4956
+ getContactFormById(requestParameters, options) {
4957
+ return ContactFormApiFp(this.configuration).getContactFormById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
4958
+ }
4959
+ /**
4960
+ *
4961
+ * @param {ContactFormApiGetContactFormsRequest} requestParameters Request parameters.
4962
+ * @param {*} [options] Override http request option.
4963
+ * @throws {RequiredError}
4964
+ * @memberof ContactFormApi
4965
+ */
4966
+ getContactForms(requestParameters, options) {
4967
+ return ContactFormApiFp(this.configuration).getContactForms(requestParameters.companyId, requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, options).then((request) => request(this.axios, this.basePath));
4968
+ }
4969
+ }
4588
4970
  /**
4589
4971
  * FileApi - axios parameter creator
4590
4972
  * @export
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infisale-client/api",
3
- "version": "1.1.25",
3
+ "version": "1.1.28",
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",
@@ -11,7 +11,7 @@
11
11
  "types": "dist/index.d.ts",
12
12
  "scripts": {
13
13
  "build": "npm run openapi && npm exec tsc-multi",
14
- "openapi": "openapi-generator generate -i swagger.json -g typescript-axios -o lib/api --additional-properties=useSingleRequestParameter=true,enumPropertyNaming=UPPERCASE"
14
+ "openapi": "npx @openapitools/openapi-generator-cli generate -i swagger.json -g typescript-axios -o lib/api --additional-properties=useSingleRequestParameter=true,enumPropertyNaming=UPPERCASE"
15
15
  },
16
16
  "files": [
17
17
  "dist"
@@ -27,6 +27,7 @@
27
27
  "typescript": "^5.6.2"
28
28
  },
29
29
  "dependencies": {
30
+ "@openapitools/openapi-generator-cli": "^2.15.3",
30
31
  "axios": "^1.7.7"
31
32
  },
32
33
  "repository": {
@@ -36,5 +37,5 @@
36
37
  "bugs": {
37
38
  "url": "https://github.com/infisale/infisale-client/issues"
38
39
  },
39
- "gitHead": "48cae91737103ce6d0d0ecf70c248c48e87d60ba"
40
+ "gitHead": "00ca022bb2f017b62eb0beaf0a0c6b719d784ee2"
40
41
  }