@infisale-client/api 1.3.29 → 1.3.31
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.d.ts +258 -9
- package/dist/api/api.js +238 -20
- package/dist/api/api.mjs +234 -16
- package/package.json +2 -2
package/dist/api/api.mjs
CHANGED
|
@@ -25,6 +25,15 @@ export const CompanyStatusEnum = {
|
|
|
25
25
|
PAYMENT_REQUIRED: 'payment_required',
|
|
26
26
|
DELETED: 'deleted'
|
|
27
27
|
};
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @export
|
|
31
|
+
* @enum {string}
|
|
32
|
+
*/
|
|
33
|
+
export const CompanyTypeEnum = {
|
|
34
|
+
B2C: 'b2c',
|
|
35
|
+
CMS: 'cms'
|
|
36
|
+
};
|
|
28
37
|
/**
|
|
29
38
|
*
|
|
30
39
|
* @export
|
|
@@ -3637,6 +3646,39 @@ export const CompanyApiAxiosParamCreator = function (configuration) {
|
|
|
3637
3646
|
options: localVarRequestOptions,
|
|
3638
3647
|
};
|
|
3639
3648
|
},
|
|
3649
|
+
/**
|
|
3650
|
+
*
|
|
3651
|
+
* @param {string} companyId
|
|
3652
|
+
* @param {ICompanyCreateLanguageRequest} iCompanyCreateLanguageRequest
|
|
3653
|
+
* @param {*} [options] Override http request option.
|
|
3654
|
+
* @throws {RequiredError}
|
|
3655
|
+
*/
|
|
3656
|
+
createCompanyLanguage: async (companyId, iCompanyCreateLanguageRequest, options = {}) => {
|
|
3657
|
+
// verify required parameter 'companyId' is not null or undefined
|
|
3658
|
+
assertParamExists('createCompanyLanguage', 'companyId', companyId);
|
|
3659
|
+
// verify required parameter 'iCompanyCreateLanguageRequest' is not null or undefined
|
|
3660
|
+
assertParamExists('createCompanyLanguage', 'iCompanyCreateLanguageRequest', iCompanyCreateLanguageRequest);
|
|
3661
|
+
const localVarPath = `/api/companies/{companyId}/languages`
|
|
3662
|
+
.replace(`{${"companyId"}}`, encodeURIComponent(String(companyId)));
|
|
3663
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3664
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3665
|
+
let baseOptions;
|
|
3666
|
+
if (configuration) {
|
|
3667
|
+
baseOptions = configuration.baseOptions;
|
|
3668
|
+
}
|
|
3669
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
3670
|
+
const localVarHeaderParameter = {};
|
|
3671
|
+
const localVarQueryParameter = {};
|
|
3672
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3673
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3674
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3675
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
3676
|
+
localVarRequestOptions.data = serializeDataIfNeeded(iCompanyCreateLanguageRequest, localVarRequestOptions, configuration);
|
|
3677
|
+
return {
|
|
3678
|
+
url: toPathString(localVarUrlObj),
|
|
3679
|
+
options: localVarRequestOptions,
|
|
3680
|
+
};
|
|
3681
|
+
},
|
|
3640
3682
|
/**
|
|
3641
3683
|
*
|
|
3642
3684
|
* @param {string} id
|
|
@@ -4594,6 +4636,38 @@ export const CompanyApiAxiosParamCreator = function (configuration) {
|
|
|
4594
4636
|
options: localVarRequestOptions,
|
|
4595
4637
|
};
|
|
4596
4638
|
},
|
|
4639
|
+
/**
|
|
4640
|
+
*
|
|
4641
|
+
* @param {string} id
|
|
4642
|
+
* @param {LanguageEnum} language
|
|
4643
|
+
* @param {*} [options] Override http request option.
|
|
4644
|
+
* @throws {RequiredError}
|
|
4645
|
+
*/
|
|
4646
|
+
setDefaultCompanyLanguage: async (id, language, options = {}) => {
|
|
4647
|
+
// verify required parameter 'id' is not null or undefined
|
|
4648
|
+
assertParamExists('setDefaultCompanyLanguage', 'id', id);
|
|
4649
|
+
// verify required parameter 'language' is not null or undefined
|
|
4650
|
+
assertParamExists('setDefaultCompanyLanguage', 'language', language);
|
|
4651
|
+
const localVarPath = `/api/companies/{id}/languages/{language}/default`
|
|
4652
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
|
4653
|
+
.replace(`{${"language"}}`, encodeURIComponent(String(language)));
|
|
4654
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4655
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4656
|
+
let baseOptions;
|
|
4657
|
+
if (configuration) {
|
|
4658
|
+
baseOptions = configuration.baseOptions;
|
|
4659
|
+
}
|
|
4660
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options };
|
|
4661
|
+
const localVarHeaderParameter = {};
|
|
4662
|
+
const localVarQueryParameter = {};
|
|
4663
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4664
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4665
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
4666
|
+
return {
|
|
4667
|
+
url: toPathString(localVarUrlObj),
|
|
4668
|
+
options: localVarRequestOptions,
|
|
4669
|
+
};
|
|
4670
|
+
},
|
|
4597
4671
|
/**
|
|
4598
4672
|
*
|
|
4599
4673
|
* @param {string} id
|
|
@@ -4660,6 +4734,43 @@ export const CompanyApiAxiosParamCreator = function (configuration) {
|
|
|
4660
4734
|
options: localVarRequestOptions,
|
|
4661
4735
|
};
|
|
4662
4736
|
},
|
|
4737
|
+
/**
|
|
4738
|
+
*
|
|
4739
|
+
* @param {string} id
|
|
4740
|
+
* @param {string} customerId
|
|
4741
|
+
* @param {ICompanyCustomerPatchRequest} iCompanyCustomerPatchRequest
|
|
4742
|
+
* @param {*} [options] Override http request option.
|
|
4743
|
+
* @throws {RequiredError}
|
|
4744
|
+
*/
|
|
4745
|
+
updateCompanyCustomer: async (id, customerId, iCompanyCustomerPatchRequest, options = {}) => {
|
|
4746
|
+
// verify required parameter 'id' is not null or undefined
|
|
4747
|
+
assertParamExists('updateCompanyCustomer', 'id', id);
|
|
4748
|
+
// verify required parameter 'customerId' is not null or undefined
|
|
4749
|
+
assertParamExists('updateCompanyCustomer', 'customerId', customerId);
|
|
4750
|
+
// verify required parameter 'iCompanyCustomerPatchRequest' is not null or undefined
|
|
4751
|
+
assertParamExists('updateCompanyCustomer', 'iCompanyCustomerPatchRequest', iCompanyCustomerPatchRequest);
|
|
4752
|
+
const localVarPath = `/api/companies/{id}/customers/{customerId}`
|
|
4753
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
|
4754
|
+
.replace(`{${"customerId"}}`, encodeURIComponent(String(customerId)));
|
|
4755
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4756
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4757
|
+
let baseOptions;
|
|
4758
|
+
if (configuration) {
|
|
4759
|
+
baseOptions = configuration.baseOptions;
|
|
4760
|
+
}
|
|
4761
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options };
|
|
4762
|
+
const localVarHeaderParameter = {};
|
|
4763
|
+
const localVarQueryParameter = {};
|
|
4764
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4765
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4766
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4767
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
4768
|
+
localVarRequestOptions.data = serializeDataIfNeeded(iCompanyCustomerPatchRequest, localVarRequestOptions, configuration);
|
|
4769
|
+
return {
|
|
4770
|
+
url: toPathString(localVarUrlObj),
|
|
4771
|
+
options: localVarRequestOptions,
|
|
4772
|
+
};
|
|
4773
|
+
},
|
|
4663
4774
|
/**
|
|
4664
4775
|
*
|
|
4665
4776
|
* @param {string} id
|
|
@@ -4965,6 +5076,19 @@ export const CompanyApiFp = function (configuration) {
|
|
|
4965
5076
|
const localVarOperationServerBasePath = operationServerMap['CompanyApi.createCompany']?.[localVarOperationServerIndex]?.url;
|
|
4966
5077
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4967
5078
|
},
|
|
5079
|
+
/**
|
|
5080
|
+
*
|
|
5081
|
+
* @param {string} companyId
|
|
5082
|
+
* @param {ICompanyCreateLanguageRequest} iCompanyCreateLanguageRequest
|
|
5083
|
+
* @param {*} [options] Override http request option.
|
|
5084
|
+
* @throws {RequiredError}
|
|
5085
|
+
*/
|
|
5086
|
+
async createCompanyLanguage(companyId, iCompanyCreateLanguageRequest, options) {
|
|
5087
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createCompanyLanguage(companyId, iCompanyCreateLanguageRequest, options);
|
|
5088
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5089
|
+
const localVarOperationServerBasePath = operationServerMap['CompanyApi.createCompanyLanguage']?.[localVarOperationServerIndex]?.url;
|
|
5090
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5091
|
+
},
|
|
4968
5092
|
/**
|
|
4969
5093
|
*
|
|
4970
5094
|
* @param {string} id
|
|
@@ -5340,6 +5464,19 @@ export const CompanyApiFp = function (configuration) {
|
|
|
5340
5464
|
const localVarOperationServerBasePath = operationServerMap['CompanyApi.setCompanySenderEmail']?.[localVarOperationServerIndex]?.url;
|
|
5341
5465
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5342
5466
|
},
|
|
5467
|
+
/**
|
|
5468
|
+
*
|
|
5469
|
+
* @param {string} id
|
|
5470
|
+
* @param {LanguageEnum} language
|
|
5471
|
+
* @param {*} [options] Override http request option.
|
|
5472
|
+
* @throws {RequiredError}
|
|
5473
|
+
*/
|
|
5474
|
+
async setDefaultCompanyLanguage(id, language, options) {
|
|
5475
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.setDefaultCompanyLanguage(id, language, options);
|
|
5476
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5477
|
+
const localVarOperationServerBasePath = operationServerMap['CompanyApi.setDefaultCompanyLanguage']?.[localVarOperationServerIndex]?.url;
|
|
5478
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5479
|
+
},
|
|
5343
5480
|
/**
|
|
5344
5481
|
*
|
|
5345
5482
|
* @param {string} id
|
|
@@ -5366,6 +5503,20 @@ export const CompanyApiFp = function (configuration) {
|
|
|
5366
5503
|
const localVarOperationServerBasePath = operationServerMap['CompanyApi.updateCompanyConfig']?.[localVarOperationServerIndex]?.url;
|
|
5367
5504
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5368
5505
|
},
|
|
5506
|
+
/**
|
|
5507
|
+
*
|
|
5508
|
+
* @param {string} id
|
|
5509
|
+
* @param {string} customerId
|
|
5510
|
+
* @param {ICompanyCustomerPatchRequest} iCompanyCustomerPatchRequest
|
|
5511
|
+
* @param {*} [options] Override http request option.
|
|
5512
|
+
* @throws {RequiredError}
|
|
5513
|
+
*/
|
|
5514
|
+
async updateCompanyCustomer(id, customerId, iCompanyCustomerPatchRequest, options) {
|
|
5515
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateCompanyCustomer(id, customerId, iCompanyCustomerPatchRequest, options);
|
|
5516
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5517
|
+
const localVarOperationServerBasePath = operationServerMap['CompanyApi.updateCompanyCustomer']?.[localVarOperationServerIndex]?.url;
|
|
5518
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5519
|
+
},
|
|
5369
5520
|
/**
|
|
5370
5521
|
*
|
|
5371
5522
|
* @param {string} id
|
|
@@ -5506,6 +5657,15 @@ export const CompanyApiFactory = function (configuration, basePath, axios) {
|
|
|
5506
5657
|
createCompany(requestParameters, options) {
|
|
5507
5658
|
return localVarFp.createCompany(requestParameters.iCompanyPostRequest, options).then((request) => request(axios, basePath));
|
|
5508
5659
|
},
|
|
5660
|
+
/**
|
|
5661
|
+
*
|
|
5662
|
+
* @param {CompanyApiCreateCompanyLanguageRequest} requestParameters Request parameters.
|
|
5663
|
+
* @param {*} [options] Override http request option.
|
|
5664
|
+
* @throws {RequiredError}
|
|
5665
|
+
*/
|
|
5666
|
+
createCompanyLanguage(requestParameters, options) {
|
|
5667
|
+
return localVarFp.createCompanyLanguage(requestParameters.companyId, requestParameters.iCompanyCreateLanguageRequest, options).then((request) => request(axios, basePath));
|
|
5668
|
+
},
|
|
5509
5669
|
/**
|
|
5510
5670
|
*
|
|
5511
5671
|
* @param {CompanyApiCreateCompanyPaymentRequest} requestParameters Request parameters.
|
|
@@ -5758,6 +5918,15 @@ export const CompanyApiFactory = function (configuration, basePath, axios) {
|
|
|
5758
5918
|
setCompanySenderEmail(requestParameters, options) {
|
|
5759
5919
|
return localVarFp.setCompanySenderEmail(requestParameters.id, requestParameters.setCompanySenderEmailRequest, options).then((request) => request(axios, basePath));
|
|
5760
5920
|
},
|
|
5921
|
+
/**
|
|
5922
|
+
*
|
|
5923
|
+
* @param {CompanyApiSetDefaultCompanyLanguageRequest} requestParameters Request parameters.
|
|
5924
|
+
* @param {*} [options] Override http request option.
|
|
5925
|
+
* @throws {RequiredError}
|
|
5926
|
+
*/
|
|
5927
|
+
setDefaultCompanyLanguage(requestParameters, options) {
|
|
5928
|
+
return localVarFp.setDefaultCompanyLanguage(requestParameters.id, requestParameters.language, options).then((request) => request(axios, basePath));
|
|
5929
|
+
},
|
|
5761
5930
|
/**
|
|
5762
5931
|
*
|
|
5763
5932
|
* @param {CompanyApiUpdateCompanyRequest} requestParameters Request parameters.
|
|
@@ -5776,6 +5945,15 @@ export const CompanyApiFactory = function (configuration, basePath, axios) {
|
|
|
5776
5945
|
updateCompanyConfig(requestParameters, options) {
|
|
5777
5946
|
return localVarFp.updateCompanyConfig(requestParameters.id, requestParameters.iCompanyUpdateConfigRequest, options).then((request) => request(axios, basePath));
|
|
5778
5947
|
},
|
|
5948
|
+
/**
|
|
5949
|
+
*
|
|
5950
|
+
* @param {CompanyApiUpdateCompanyCustomerRequest} requestParameters Request parameters.
|
|
5951
|
+
* @param {*} [options] Override http request option.
|
|
5952
|
+
* @throws {RequiredError}
|
|
5953
|
+
*/
|
|
5954
|
+
updateCompanyCustomer(requestParameters, options) {
|
|
5955
|
+
return localVarFp.updateCompanyCustomer(requestParameters.id, requestParameters.customerId, requestParameters.iCompanyCustomerPatchRequest, options).then((request) => request(axios, basePath));
|
|
5956
|
+
},
|
|
5779
5957
|
/**
|
|
5780
5958
|
*
|
|
5781
5959
|
* @param {CompanyApiUpdateCompanyFirebaseConfigRequest} requestParameters Request parameters.
|
|
@@ -5888,6 +6066,16 @@ export class CompanyApi extends BaseAPI {
|
|
|
5888
6066
|
createCompany(requestParameters, options) {
|
|
5889
6067
|
return CompanyApiFp(this.configuration).createCompany(requestParameters.iCompanyPostRequest, options).then((request) => request(this.axios, this.basePath));
|
|
5890
6068
|
}
|
|
6069
|
+
/**
|
|
6070
|
+
*
|
|
6071
|
+
* @param {CompanyApiCreateCompanyLanguageRequest} requestParameters Request parameters.
|
|
6072
|
+
* @param {*} [options] Override http request option.
|
|
6073
|
+
* @throws {RequiredError}
|
|
6074
|
+
* @memberof CompanyApi
|
|
6075
|
+
*/
|
|
6076
|
+
createCompanyLanguage(requestParameters, options) {
|
|
6077
|
+
return CompanyApiFp(this.configuration).createCompanyLanguage(requestParameters.companyId, requestParameters.iCompanyCreateLanguageRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6078
|
+
}
|
|
5891
6079
|
/**
|
|
5892
6080
|
*
|
|
5893
6081
|
* @param {CompanyApiCreateCompanyPaymentRequest} requestParameters Request parameters.
|
|
@@ -6168,6 +6356,16 @@ export class CompanyApi extends BaseAPI {
|
|
|
6168
6356
|
setCompanySenderEmail(requestParameters, options) {
|
|
6169
6357
|
return CompanyApiFp(this.configuration).setCompanySenderEmail(requestParameters.id, requestParameters.setCompanySenderEmailRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6170
6358
|
}
|
|
6359
|
+
/**
|
|
6360
|
+
*
|
|
6361
|
+
* @param {CompanyApiSetDefaultCompanyLanguageRequest} requestParameters Request parameters.
|
|
6362
|
+
* @param {*} [options] Override http request option.
|
|
6363
|
+
* @throws {RequiredError}
|
|
6364
|
+
* @memberof CompanyApi
|
|
6365
|
+
*/
|
|
6366
|
+
setDefaultCompanyLanguage(requestParameters, options) {
|
|
6367
|
+
return CompanyApiFp(this.configuration).setDefaultCompanyLanguage(requestParameters.id, requestParameters.language, options).then((request) => request(this.axios, this.basePath));
|
|
6368
|
+
}
|
|
6171
6369
|
/**
|
|
6172
6370
|
*
|
|
6173
6371
|
* @param {CompanyApiUpdateCompanyRequest} requestParameters Request parameters.
|
|
@@ -6188,6 +6386,16 @@ export class CompanyApi extends BaseAPI {
|
|
|
6188
6386
|
updateCompanyConfig(requestParameters, options) {
|
|
6189
6387
|
return CompanyApiFp(this.configuration).updateCompanyConfig(requestParameters.id, requestParameters.iCompanyUpdateConfigRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6190
6388
|
}
|
|
6389
|
+
/**
|
|
6390
|
+
*
|
|
6391
|
+
* @param {CompanyApiUpdateCompanyCustomerRequest} requestParameters Request parameters.
|
|
6392
|
+
* @param {*} [options] Override http request option.
|
|
6393
|
+
* @throws {RequiredError}
|
|
6394
|
+
* @memberof CompanyApi
|
|
6395
|
+
*/
|
|
6396
|
+
updateCompanyCustomer(requestParameters, options) {
|
|
6397
|
+
return CompanyApiFp(this.configuration).updateCompanyCustomer(requestParameters.id, requestParameters.customerId, requestParameters.iCompanyCustomerPatchRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6398
|
+
}
|
|
6191
6399
|
/**
|
|
6192
6400
|
*
|
|
6193
6401
|
* @param {CompanyApiUpdateCompanyFirebaseConfigRequest} requestParameters Request parameters.
|
|
@@ -11958,10 +12166,11 @@ export const ThemeApiAxiosParamCreator = function (configuration) {
|
|
|
11958
12166
|
},
|
|
11959
12167
|
/**
|
|
11960
12168
|
*
|
|
12169
|
+
* @param {CompanyTypeEnum} [type]
|
|
11961
12170
|
* @param {*} [options] Override http request option.
|
|
11962
12171
|
* @throws {RequiredError}
|
|
11963
12172
|
*/
|
|
11964
|
-
getThemes: async (options = {}) => {
|
|
12173
|
+
getThemes: async (type, options = {}) => {
|
|
11965
12174
|
const localVarPath = `/api/themes`;
|
|
11966
12175
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11967
12176
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -11972,6 +12181,9 @@ export const ThemeApiAxiosParamCreator = function (configuration) {
|
|
|
11972
12181
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
11973
12182
|
const localVarHeaderParameter = {};
|
|
11974
12183
|
const localVarQueryParameter = {};
|
|
12184
|
+
if (type !== undefined) {
|
|
12185
|
+
localVarQueryParameter['type'] = type;
|
|
12186
|
+
}
|
|
11975
12187
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
11976
12188
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11977
12189
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -12121,11 +12333,12 @@ export const ThemeApiFp = function (configuration) {
|
|
|
12121
12333
|
},
|
|
12122
12334
|
/**
|
|
12123
12335
|
*
|
|
12336
|
+
* @param {CompanyTypeEnum} [type]
|
|
12124
12337
|
* @param {*} [options] Override http request option.
|
|
12125
12338
|
* @throws {RequiredError}
|
|
12126
12339
|
*/
|
|
12127
|
-
async getThemes(options) {
|
|
12128
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getThemes(options);
|
|
12340
|
+
async getThemes(type, options) {
|
|
12341
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getThemes(type, options);
|
|
12129
12342
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
12130
12343
|
const localVarOperationServerBasePath = operationServerMap['ThemeApi.getThemes']?.[localVarOperationServerIndex]?.url;
|
|
12131
12344
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -12212,11 +12425,12 @@ export const ThemeApiFactory = function (configuration, basePath, axios) {
|
|
|
12212
12425
|
},
|
|
12213
12426
|
/**
|
|
12214
12427
|
*
|
|
12428
|
+
* @param {ThemeApiGetThemesRequest} requestParameters Request parameters.
|
|
12215
12429
|
* @param {*} [options] Override http request option.
|
|
12216
12430
|
* @throws {RequiredError}
|
|
12217
12431
|
*/
|
|
12218
|
-
getThemes(options) {
|
|
12219
|
-
return localVarFp.getThemes(options).then((request) => request(axios, basePath));
|
|
12432
|
+
getThemes(requestParameters = {}, options) {
|
|
12433
|
+
return localVarFp.getThemes(requestParameters.type, options).then((request) => request(axios, basePath));
|
|
12220
12434
|
},
|
|
12221
12435
|
/**
|
|
12222
12436
|
*
|
|
@@ -12297,12 +12511,13 @@ export class ThemeApi extends BaseAPI {
|
|
|
12297
12511
|
}
|
|
12298
12512
|
/**
|
|
12299
12513
|
*
|
|
12514
|
+
* @param {ThemeApiGetThemesRequest} requestParameters Request parameters.
|
|
12300
12515
|
* @param {*} [options] Override http request option.
|
|
12301
12516
|
* @throws {RequiredError}
|
|
12302
12517
|
* @memberof ThemeApi
|
|
12303
12518
|
*/
|
|
12304
|
-
getThemes(options) {
|
|
12305
|
-
return ThemeApiFp(this.configuration).getThemes(options).then((request) => request(this.axios, this.basePath));
|
|
12519
|
+
getThemes(requestParameters = {}, options) {
|
|
12520
|
+
return ThemeApiFp(this.configuration).getThemes(requestParameters.type, options).then((request) => request(this.axios, this.basePath));
|
|
12306
12521
|
}
|
|
12307
12522
|
/**
|
|
12308
12523
|
*
|
|
@@ -12795,15 +13010,14 @@ export const UrlRedirectApiAxiosParamCreator = function (configuration) {
|
|
|
12795
13010
|
/**
|
|
12796
13011
|
*
|
|
12797
13012
|
* @param {string} from
|
|
12798
|
-
* @param {string} companyId
|
|
13013
|
+
* @param {string} [companyId]
|
|
13014
|
+
* @param {string} [domain]
|
|
12799
13015
|
* @param {*} [options] Override http request option.
|
|
12800
13016
|
* @throws {RequiredError}
|
|
12801
13017
|
*/
|
|
12802
|
-
getUrlRedirectBySource: async (from, companyId, options = {}) => {
|
|
13018
|
+
getUrlRedirectBySource: async (from, companyId, domain, options = {}) => {
|
|
12803
13019
|
// verify required parameter 'from' is not null or undefined
|
|
12804
13020
|
assertParamExists('getUrlRedirectBySource', 'from', from);
|
|
12805
|
-
// verify required parameter 'companyId' is not null or undefined
|
|
12806
|
-
assertParamExists('getUrlRedirectBySource', 'companyId', companyId);
|
|
12807
13021
|
const localVarPath = `/api/url-redirects/from`;
|
|
12808
13022
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12809
13023
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -12820,6 +13034,9 @@ export const UrlRedirectApiAxiosParamCreator = function (configuration) {
|
|
|
12820
13034
|
if (companyId !== undefined) {
|
|
12821
13035
|
localVarQueryParameter['companyId'] = companyId;
|
|
12822
13036
|
}
|
|
13037
|
+
if (domain !== undefined) {
|
|
13038
|
+
localVarQueryParameter['domain'] = domain;
|
|
13039
|
+
}
|
|
12823
13040
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12824
13041
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12825
13042
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -12991,12 +13208,13 @@ export const UrlRedirectApiFp = function (configuration) {
|
|
|
12991
13208
|
/**
|
|
12992
13209
|
*
|
|
12993
13210
|
* @param {string} from
|
|
12994
|
-
* @param {string} companyId
|
|
13211
|
+
* @param {string} [companyId]
|
|
13212
|
+
* @param {string} [domain]
|
|
12995
13213
|
* @param {*} [options] Override http request option.
|
|
12996
13214
|
* @throws {RequiredError}
|
|
12997
13215
|
*/
|
|
12998
|
-
async getUrlRedirectBySource(from, companyId, options) {
|
|
12999
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getUrlRedirectBySource(from, companyId, options);
|
|
13216
|
+
async getUrlRedirectBySource(from, companyId, domain, options) {
|
|
13217
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getUrlRedirectBySource(from, companyId, domain, options);
|
|
13000
13218
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
13001
13219
|
const localVarOperationServerBasePath = operationServerMap['UrlRedirectApi.getUrlRedirectBySource']?.[localVarOperationServerIndex]?.url;
|
|
13002
13220
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -13087,7 +13305,7 @@ export const UrlRedirectApiFactory = function (configuration, basePath, axios) {
|
|
|
13087
13305
|
* @throws {RequiredError}
|
|
13088
13306
|
*/
|
|
13089
13307
|
getUrlRedirectBySource(requestParameters, options) {
|
|
13090
|
-
return localVarFp.getUrlRedirectBySource(requestParameters.from, requestParameters.companyId, options).then((request) => request(axios, basePath));
|
|
13308
|
+
return localVarFp.getUrlRedirectBySource(requestParameters.from, requestParameters.companyId, requestParameters.domain, options).then((request) => request(axios, basePath));
|
|
13091
13309
|
},
|
|
13092
13310
|
/**
|
|
13093
13311
|
*
|
|
@@ -13164,7 +13382,7 @@ export class UrlRedirectApi extends BaseAPI {
|
|
|
13164
13382
|
* @memberof UrlRedirectApi
|
|
13165
13383
|
*/
|
|
13166
13384
|
getUrlRedirectBySource(requestParameters, options) {
|
|
13167
|
-
return UrlRedirectApiFp(this.configuration).getUrlRedirectBySource(requestParameters.from, requestParameters.companyId, options).then((request) => request(this.axios, this.basePath));
|
|
13385
|
+
return UrlRedirectApiFp(this.configuration).getUrlRedirectBySource(requestParameters.from, requestParameters.companyId, requestParameters.domain, options).then((request) => request(this.axios, this.basePath));
|
|
13168
13386
|
}
|
|
13169
13387
|
/**
|
|
13170
13388
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@infisale-client/api",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.31",
|
|
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",
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
"bugs": {
|
|
38
38
|
"url": "https://github.com/infisale/infisale-client/issues"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "32fd9f1776dbff5442b596356e8130b82571eea3"
|
|
41
41
|
}
|