@infisale-client/api 1.3.25 → 1.3.27
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 +837 -170
- package/dist/api/api.js +544 -4
- package/dist/api/api.mjs +536 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1 -0
- package/dist/index.mjs +1 -0
- package/package.json +2 -2
package/dist/api/api.mjs
CHANGED
|
@@ -445,6 +445,14 @@ export const IUniqueCollectionQueryParamsDateFieldEnum = {
|
|
|
445
445
|
CREATED_AT: 'createdAt',
|
|
446
446
|
UPDATED_AT: 'updatedAt'
|
|
447
447
|
};
|
|
448
|
+
export const IUrlRedirectCollectionQueryParamsDateFieldEnum = {
|
|
449
|
+
CREATED_AT: 'createdAt',
|
|
450
|
+
UPDATED_AT: 'updatedAt'
|
|
451
|
+
};
|
|
452
|
+
export const IUrlRedirectCollectionQueryParamsSortEnum = {
|
|
453
|
+
CREATED_AT: 'createdAt',
|
|
454
|
+
FROM: 'from'
|
|
455
|
+
};
|
|
448
456
|
export const IUserCollectionQueryParamsDateFieldEnum = {
|
|
449
457
|
CREATED_AT: 'createdAt',
|
|
450
458
|
UPDATED_AT: 'updatedAt'
|
|
@@ -4241,6 +4249,34 @@ export const CompanyApiAxiosParamCreator = function (configuration) {
|
|
|
4241
4249
|
options: localVarRequestOptions,
|
|
4242
4250
|
};
|
|
4243
4251
|
},
|
|
4252
|
+
/**
|
|
4253
|
+
*
|
|
4254
|
+
* @param {string} id
|
|
4255
|
+
* @param {*} [options] Override http request option.
|
|
4256
|
+
* @throws {RequiredError}
|
|
4257
|
+
*/
|
|
4258
|
+
getCompanyMonthlyBandwidth: async (id, options = {}) => {
|
|
4259
|
+
// verify required parameter 'id' is not null or undefined
|
|
4260
|
+
assertParamExists('getCompanyMonthlyBandwidth', 'id', id);
|
|
4261
|
+
const localVarPath = `/api/companies/{id}/monthly-bandwidth`
|
|
4262
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
4263
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4264
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4265
|
+
let baseOptions;
|
|
4266
|
+
if (configuration) {
|
|
4267
|
+
baseOptions = configuration.baseOptions;
|
|
4268
|
+
}
|
|
4269
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
4270
|
+
const localVarHeaderParameter = {};
|
|
4271
|
+
const localVarQueryParameter = {};
|
|
4272
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4273
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4274
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
4275
|
+
return {
|
|
4276
|
+
url: toPathString(localVarUrlObj),
|
|
4277
|
+
options: localVarRequestOptions,
|
|
4278
|
+
};
|
|
4279
|
+
},
|
|
4244
4280
|
/**
|
|
4245
4281
|
*
|
|
4246
4282
|
* @param {string} id
|
|
@@ -5160,6 +5196,18 @@ export const CompanyApiFp = function (configuration) {
|
|
|
5160
5196
|
const localVarOperationServerBasePath = operationServerMap['CompanyApi.getCompanyDashboard']?.[localVarOperationServerIndex]?.url;
|
|
5161
5197
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5162
5198
|
},
|
|
5199
|
+
/**
|
|
5200
|
+
*
|
|
5201
|
+
* @param {string} id
|
|
5202
|
+
* @param {*} [options] Override http request option.
|
|
5203
|
+
* @throws {RequiredError}
|
|
5204
|
+
*/
|
|
5205
|
+
async getCompanyMonthlyBandwidth(id, options) {
|
|
5206
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getCompanyMonthlyBandwidth(id, options);
|
|
5207
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5208
|
+
const localVarOperationServerBasePath = operationServerMap['CompanyApi.getCompanyMonthlyBandwidth']?.[localVarOperationServerIndex]?.url;
|
|
5209
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5210
|
+
},
|
|
5163
5211
|
/**
|
|
5164
5212
|
*
|
|
5165
5213
|
* @param {string} id
|
|
@@ -5607,6 +5655,15 @@ export const CompanyApiFactory = function (configuration, basePath, axios) {
|
|
|
5607
5655
|
getCompanyDashboard(requestParameters, options) {
|
|
5608
5656
|
return localVarFp.getCompanyDashboard(requestParameters.id, requestParameters.start, requestParameters.end, options).then((request) => request(axios, basePath));
|
|
5609
5657
|
},
|
|
5658
|
+
/**
|
|
5659
|
+
*
|
|
5660
|
+
* @param {CompanyApiGetCompanyMonthlyBandwidthRequest} requestParameters Request parameters.
|
|
5661
|
+
* @param {*} [options] Override http request option.
|
|
5662
|
+
* @throws {RequiredError}
|
|
5663
|
+
*/
|
|
5664
|
+
getCompanyMonthlyBandwidth(requestParameters, options) {
|
|
5665
|
+
return localVarFp.getCompanyMonthlyBandwidth(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
5666
|
+
},
|
|
5610
5667
|
/**
|
|
5611
5668
|
*
|
|
5612
5669
|
* @param {CompanyApiGetCompanyOnboardingRequest} requestParameters Request parameters.
|
|
@@ -5997,6 +6054,16 @@ export class CompanyApi extends BaseAPI {
|
|
|
5997
6054
|
getCompanyDashboard(requestParameters, options) {
|
|
5998
6055
|
return CompanyApiFp(this.configuration).getCompanyDashboard(requestParameters.id, requestParameters.start, requestParameters.end, options).then((request) => request(this.axios, this.basePath));
|
|
5999
6056
|
}
|
|
6057
|
+
/**
|
|
6058
|
+
*
|
|
6059
|
+
* @param {CompanyApiGetCompanyMonthlyBandwidthRequest} requestParameters Request parameters.
|
|
6060
|
+
* @param {*} [options] Override http request option.
|
|
6061
|
+
* @throws {RequiredError}
|
|
6062
|
+
* @memberof CompanyApi
|
|
6063
|
+
*/
|
|
6064
|
+
getCompanyMonthlyBandwidth(requestParameters, options) {
|
|
6065
|
+
return CompanyApiFp(this.configuration).getCompanyMonthlyBandwidth(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
6066
|
+
}
|
|
6000
6067
|
/**
|
|
6001
6068
|
*
|
|
6002
6069
|
* @param {CompanyApiGetCompanyOnboardingRequest} requestParameters Request parameters.
|
|
@@ -12601,6 +12668,475 @@ export const GetUniquePagesDateFieldEnum = {
|
|
|
12601
12668
|
CREATED_AT: 'createdAt',
|
|
12602
12669
|
UPDATED_AT: 'updatedAt'
|
|
12603
12670
|
};
|
|
12671
|
+
/**
|
|
12672
|
+
* UrlRedirectApi - axios parameter creator
|
|
12673
|
+
* @export
|
|
12674
|
+
*/
|
|
12675
|
+
export const UrlRedirectApiAxiosParamCreator = function (configuration) {
|
|
12676
|
+
return {
|
|
12677
|
+
/**
|
|
12678
|
+
*
|
|
12679
|
+
* @param {IUrlRedirectPostRequest} iUrlRedirectPostRequest
|
|
12680
|
+
* @param {*} [options] Override http request option.
|
|
12681
|
+
* @throws {RequiredError}
|
|
12682
|
+
*/
|
|
12683
|
+
createUrlRedirect: async (iUrlRedirectPostRequest, options = {}) => {
|
|
12684
|
+
// verify required parameter 'iUrlRedirectPostRequest' is not null or undefined
|
|
12685
|
+
assertParamExists('createUrlRedirect', 'iUrlRedirectPostRequest', iUrlRedirectPostRequest);
|
|
12686
|
+
const localVarPath = `/api/url-redirects`;
|
|
12687
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12688
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12689
|
+
let baseOptions;
|
|
12690
|
+
if (configuration) {
|
|
12691
|
+
baseOptions = configuration.baseOptions;
|
|
12692
|
+
}
|
|
12693
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
12694
|
+
const localVarHeaderParameter = {};
|
|
12695
|
+
const localVarQueryParameter = {};
|
|
12696
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
12697
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12698
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12699
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
12700
|
+
localVarRequestOptions.data = serializeDataIfNeeded(iUrlRedirectPostRequest, localVarRequestOptions, configuration);
|
|
12701
|
+
return {
|
|
12702
|
+
url: toPathString(localVarUrlObj),
|
|
12703
|
+
options: localVarRequestOptions,
|
|
12704
|
+
};
|
|
12705
|
+
},
|
|
12706
|
+
/**
|
|
12707
|
+
*
|
|
12708
|
+
* @param {string} id
|
|
12709
|
+
* @param {*} [options] Override http request option.
|
|
12710
|
+
* @throws {RequiredError}
|
|
12711
|
+
*/
|
|
12712
|
+
deleteUrlRedirect: async (id, options = {}) => {
|
|
12713
|
+
// verify required parameter 'id' is not null or undefined
|
|
12714
|
+
assertParamExists('deleteUrlRedirect', 'id', id);
|
|
12715
|
+
const localVarPath = `/api/url-redirects/{id}`
|
|
12716
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
12717
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12718
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12719
|
+
let baseOptions;
|
|
12720
|
+
if (configuration) {
|
|
12721
|
+
baseOptions = configuration.baseOptions;
|
|
12722
|
+
}
|
|
12723
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
12724
|
+
const localVarHeaderParameter = {};
|
|
12725
|
+
const localVarQueryParameter = {};
|
|
12726
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12727
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12728
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
12729
|
+
return {
|
|
12730
|
+
url: toPathString(localVarUrlObj),
|
|
12731
|
+
options: localVarRequestOptions,
|
|
12732
|
+
};
|
|
12733
|
+
},
|
|
12734
|
+
/**
|
|
12735
|
+
*
|
|
12736
|
+
* @param {string} id
|
|
12737
|
+
* @param {*} [options] Override http request option.
|
|
12738
|
+
* @throws {RequiredError}
|
|
12739
|
+
*/
|
|
12740
|
+
getUrlRedirectById: async (id, options = {}) => {
|
|
12741
|
+
// verify required parameter 'id' is not null or undefined
|
|
12742
|
+
assertParamExists('getUrlRedirectById', 'id', id);
|
|
12743
|
+
const localVarPath = `/api/url-redirects/{id}`
|
|
12744
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
12745
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12746
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12747
|
+
let baseOptions;
|
|
12748
|
+
if (configuration) {
|
|
12749
|
+
baseOptions = configuration.baseOptions;
|
|
12750
|
+
}
|
|
12751
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
12752
|
+
const localVarHeaderParameter = {};
|
|
12753
|
+
const localVarQueryParameter = {};
|
|
12754
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12755
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12756
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
12757
|
+
return {
|
|
12758
|
+
url: toPathString(localVarUrlObj),
|
|
12759
|
+
options: localVarRequestOptions,
|
|
12760
|
+
};
|
|
12761
|
+
},
|
|
12762
|
+
/**
|
|
12763
|
+
*
|
|
12764
|
+
* @param {string} from
|
|
12765
|
+
* @param {string} companyId
|
|
12766
|
+
* @param {*} [options] Override http request option.
|
|
12767
|
+
* @throws {RequiredError}
|
|
12768
|
+
*/
|
|
12769
|
+
getUrlRedirectBySource: async (from, companyId, options = {}) => {
|
|
12770
|
+
// verify required parameter 'from' is not null or undefined
|
|
12771
|
+
assertParamExists('getUrlRedirectBySource', 'from', from);
|
|
12772
|
+
// verify required parameter 'companyId' is not null or undefined
|
|
12773
|
+
assertParamExists('getUrlRedirectBySource', 'companyId', companyId);
|
|
12774
|
+
const localVarPath = `/api/url-redirects/from`;
|
|
12775
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12776
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12777
|
+
let baseOptions;
|
|
12778
|
+
if (configuration) {
|
|
12779
|
+
baseOptions = configuration.baseOptions;
|
|
12780
|
+
}
|
|
12781
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
12782
|
+
const localVarHeaderParameter = {};
|
|
12783
|
+
const localVarQueryParameter = {};
|
|
12784
|
+
if (from !== undefined) {
|
|
12785
|
+
localVarQueryParameter['from'] = from;
|
|
12786
|
+
}
|
|
12787
|
+
if (companyId !== undefined) {
|
|
12788
|
+
localVarQueryParameter['companyId'] = companyId;
|
|
12789
|
+
}
|
|
12790
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12791
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12792
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
12793
|
+
return {
|
|
12794
|
+
url: toPathString(localVarUrlObj),
|
|
12795
|
+
options: localVarRequestOptions,
|
|
12796
|
+
};
|
|
12797
|
+
},
|
|
12798
|
+
/**
|
|
12799
|
+
*
|
|
12800
|
+
* @param {string} company
|
|
12801
|
+
* @param {OrderEnum} [order]
|
|
12802
|
+
* @param {number} [page]
|
|
12803
|
+
* @param {number} [itemsPerPage]
|
|
12804
|
+
* @param {string} [search]
|
|
12805
|
+
* @param {string} [startDate]
|
|
12806
|
+
* @param {string} [endDate]
|
|
12807
|
+
* @param {GetUrlRedirectsDateFieldEnum} [dateField]
|
|
12808
|
+
* @param {string} [createdAt]
|
|
12809
|
+
* @param {GetUrlRedirectsSortEnum} [sort]
|
|
12810
|
+
* @param {*} [options] Override http request option.
|
|
12811
|
+
* @throws {RequiredError}
|
|
12812
|
+
*/
|
|
12813
|
+
getUrlRedirects: async (company, order, page, itemsPerPage, search, startDate, endDate, dateField, createdAt, sort, options = {}) => {
|
|
12814
|
+
// verify required parameter 'company' is not null or undefined
|
|
12815
|
+
assertParamExists('getUrlRedirects', 'company', company);
|
|
12816
|
+
const localVarPath = `/api/url-redirects`;
|
|
12817
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12818
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12819
|
+
let baseOptions;
|
|
12820
|
+
if (configuration) {
|
|
12821
|
+
baseOptions = configuration.baseOptions;
|
|
12822
|
+
}
|
|
12823
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
12824
|
+
const localVarHeaderParameter = {};
|
|
12825
|
+
const localVarQueryParameter = {};
|
|
12826
|
+
if (order !== undefined) {
|
|
12827
|
+
localVarQueryParameter['order'] = order;
|
|
12828
|
+
}
|
|
12829
|
+
if (page !== undefined) {
|
|
12830
|
+
localVarQueryParameter['page'] = page;
|
|
12831
|
+
}
|
|
12832
|
+
if (itemsPerPage !== undefined) {
|
|
12833
|
+
localVarQueryParameter['itemsPerPage'] = itemsPerPage;
|
|
12834
|
+
}
|
|
12835
|
+
if (search !== undefined) {
|
|
12836
|
+
localVarQueryParameter['search'] = search;
|
|
12837
|
+
}
|
|
12838
|
+
if (startDate !== undefined) {
|
|
12839
|
+
localVarQueryParameter['startDate'] = (startDate instanceof Date) ?
|
|
12840
|
+
startDate.toISOString() :
|
|
12841
|
+
startDate;
|
|
12842
|
+
}
|
|
12843
|
+
if (endDate !== undefined) {
|
|
12844
|
+
localVarQueryParameter['endDate'] = (endDate instanceof Date) ?
|
|
12845
|
+
endDate.toISOString() :
|
|
12846
|
+
endDate;
|
|
12847
|
+
}
|
|
12848
|
+
if (dateField !== undefined) {
|
|
12849
|
+
localVarQueryParameter['dateField'] = dateField;
|
|
12850
|
+
}
|
|
12851
|
+
if (company !== undefined) {
|
|
12852
|
+
localVarQueryParameter['company'] = company;
|
|
12853
|
+
}
|
|
12854
|
+
if (createdAt !== undefined) {
|
|
12855
|
+
localVarQueryParameter['createdAt'] = createdAt;
|
|
12856
|
+
}
|
|
12857
|
+
if (sort !== undefined) {
|
|
12858
|
+
localVarQueryParameter['sort'] = sort;
|
|
12859
|
+
}
|
|
12860
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12861
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12862
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
12863
|
+
return {
|
|
12864
|
+
url: toPathString(localVarUrlObj),
|
|
12865
|
+
options: localVarRequestOptions,
|
|
12866
|
+
};
|
|
12867
|
+
},
|
|
12868
|
+
/**
|
|
12869
|
+
*
|
|
12870
|
+
* @param {string} id
|
|
12871
|
+
* @param {IUrlRedirectPostRequest} iUrlRedirectPostRequest
|
|
12872
|
+
* @param {*} [options] Override http request option.
|
|
12873
|
+
* @throws {RequiredError}
|
|
12874
|
+
*/
|
|
12875
|
+
updateUrlRedirect: async (id, iUrlRedirectPostRequest, options = {}) => {
|
|
12876
|
+
// verify required parameter 'id' is not null or undefined
|
|
12877
|
+
assertParamExists('updateUrlRedirect', 'id', id);
|
|
12878
|
+
// verify required parameter 'iUrlRedirectPostRequest' is not null or undefined
|
|
12879
|
+
assertParamExists('updateUrlRedirect', 'iUrlRedirectPostRequest', iUrlRedirectPostRequest);
|
|
12880
|
+
const localVarPath = `/api/url-redirects/{id}`
|
|
12881
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
12882
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12883
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12884
|
+
let baseOptions;
|
|
12885
|
+
if (configuration) {
|
|
12886
|
+
baseOptions = configuration.baseOptions;
|
|
12887
|
+
}
|
|
12888
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options };
|
|
12889
|
+
const localVarHeaderParameter = {};
|
|
12890
|
+
const localVarQueryParameter = {};
|
|
12891
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
12892
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12893
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12894
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
12895
|
+
localVarRequestOptions.data = serializeDataIfNeeded(iUrlRedirectPostRequest, localVarRequestOptions, configuration);
|
|
12896
|
+
return {
|
|
12897
|
+
url: toPathString(localVarUrlObj),
|
|
12898
|
+
options: localVarRequestOptions,
|
|
12899
|
+
};
|
|
12900
|
+
},
|
|
12901
|
+
};
|
|
12902
|
+
};
|
|
12903
|
+
/**
|
|
12904
|
+
* UrlRedirectApi - functional programming interface
|
|
12905
|
+
* @export
|
|
12906
|
+
*/
|
|
12907
|
+
export const UrlRedirectApiFp = function (configuration) {
|
|
12908
|
+
const localVarAxiosParamCreator = UrlRedirectApiAxiosParamCreator(configuration);
|
|
12909
|
+
return {
|
|
12910
|
+
/**
|
|
12911
|
+
*
|
|
12912
|
+
* @param {IUrlRedirectPostRequest} iUrlRedirectPostRequest
|
|
12913
|
+
* @param {*} [options] Override http request option.
|
|
12914
|
+
* @throws {RequiredError}
|
|
12915
|
+
*/
|
|
12916
|
+
async createUrlRedirect(iUrlRedirectPostRequest, options) {
|
|
12917
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createUrlRedirect(iUrlRedirectPostRequest, options);
|
|
12918
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
12919
|
+
const localVarOperationServerBasePath = operationServerMap['UrlRedirectApi.createUrlRedirect']?.[localVarOperationServerIndex]?.url;
|
|
12920
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12921
|
+
},
|
|
12922
|
+
/**
|
|
12923
|
+
*
|
|
12924
|
+
* @param {string} id
|
|
12925
|
+
* @param {*} [options] Override http request option.
|
|
12926
|
+
* @throws {RequiredError}
|
|
12927
|
+
*/
|
|
12928
|
+
async deleteUrlRedirect(id, options) {
|
|
12929
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteUrlRedirect(id, options);
|
|
12930
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
12931
|
+
const localVarOperationServerBasePath = operationServerMap['UrlRedirectApi.deleteUrlRedirect']?.[localVarOperationServerIndex]?.url;
|
|
12932
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12933
|
+
},
|
|
12934
|
+
/**
|
|
12935
|
+
*
|
|
12936
|
+
* @param {string} id
|
|
12937
|
+
* @param {*} [options] Override http request option.
|
|
12938
|
+
* @throws {RequiredError}
|
|
12939
|
+
*/
|
|
12940
|
+
async getUrlRedirectById(id, options) {
|
|
12941
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getUrlRedirectById(id, options);
|
|
12942
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
12943
|
+
const localVarOperationServerBasePath = operationServerMap['UrlRedirectApi.getUrlRedirectById']?.[localVarOperationServerIndex]?.url;
|
|
12944
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12945
|
+
},
|
|
12946
|
+
/**
|
|
12947
|
+
*
|
|
12948
|
+
* @param {string} from
|
|
12949
|
+
* @param {string} companyId
|
|
12950
|
+
* @param {*} [options] Override http request option.
|
|
12951
|
+
* @throws {RequiredError}
|
|
12952
|
+
*/
|
|
12953
|
+
async getUrlRedirectBySource(from, companyId, options) {
|
|
12954
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getUrlRedirectBySource(from, companyId, options);
|
|
12955
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
12956
|
+
const localVarOperationServerBasePath = operationServerMap['UrlRedirectApi.getUrlRedirectBySource']?.[localVarOperationServerIndex]?.url;
|
|
12957
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12958
|
+
},
|
|
12959
|
+
/**
|
|
12960
|
+
*
|
|
12961
|
+
* @param {string} company
|
|
12962
|
+
* @param {OrderEnum} [order]
|
|
12963
|
+
* @param {number} [page]
|
|
12964
|
+
* @param {number} [itemsPerPage]
|
|
12965
|
+
* @param {string} [search]
|
|
12966
|
+
* @param {string} [startDate]
|
|
12967
|
+
* @param {string} [endDate]
|
|
12968
|
+
* @param {GetUrlRedirectsDateFieldEnum} [dateField]
|
|
12969
|
+
* @param {string} [createdAt]
|
|
12970
|
+
* @param {GetUrlRedirectsSortEnum} [sort]
|
|
12971
|
+
* @param {*} [options] Override http request option.
|
|
12972
|
+
* @throws {RequiredError}
|
|
12973
|
+
*/
|
|
12974
|
+
async getUrlRedirects(company, order, page, itemsPerPage, search, startDate, endDate, dateField, createdAt, sort, options) {
|
|
12975
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getUrlRedirects(company, order, page, itemsPerPage, search, startDate, endDate, dateField, createdAt, sort, options);
|
|
12976
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
12977
|
+
const localVarOperationServerBasePath = operationServerMap['UrlRedirectApi.getUrlRedirects']?.[localVarOperationServerIndex]?.url;
|
|
12978
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12979
|
+
},
|
|
12980
|
+
/**
|
|
12981
|
+
*
|
|
12982
|
+
* @param {string} id
|
|
12983
|
+
* @param {IUrlRedirectPostRequest} iUrlRedirectPostRequest
|
|
12984
|
+
* @param {*} [options] Override http request option.
|
|
12985
|
+
* @throws {RequiredError}
|
|
12986
|
+
*/
|
|
12987
|
+
async updateUrlRedirect(id, iUrlRedirectPostRequest, options) {
|
|
12988
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateUrlRedirect(id, iUrlRedirectPostRequest, options);
|
|
12989
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
12990
|
+
const localVarOperationServerBasePath = operationServerMap['UrlRedirectApi.updateUrlRedirect']?.[localVarOperationServerIndex]?.url;
|
|
12991
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12992
|
+
},
|
|
12993
|
+
};
|
|
12994
|
+
};
|
|
12995
|
+
/**
|
|
12996
|
+
* UrlRedirectApi - factory interface
|
|
12997
|
+
* @export
|
|
12998
|
+
*/
|
|
12999
|
+
export const UrlRedirectApiFactory = function (configuration, basePath, axios) {
|
|
13000
|
+
const localVarFp = UrlRedirectApiFp(configuration);
|
|
13001
|
+
return {
|
|
13002
|
+
/**
|
|
13003
|
+
*
|
|
13004
|
+
* @param {UrlRedirectApiCreateUrlRedirectRequest} requestParameters Request parameters.
|
|
13005
|
+
* @param {*} [options] Override http request option.
|
|
13006
|
+
* @throws {RequiredError}
|
|
13007
|
+
*/
|
|
13008
|
+
createUrlRedirect(requestParameters, options) {
|
|
13009
|
+
return localVarFp.createUrlRedirect(requestParameters.iUrlRedirectPostRequest, options).then((request) => request(axios, basePath));
|
|
13010
|
+
},
|
|
13011
|
+
/**
|
|
13012
|
+
*
|
|
13013
|
+
* @param {UrlRedirectApiDeleteUrlRedirectRequest} requestParameters Request parameters.
|
|
13014
|
+
* @param {*} [options] Override http request option.
|
|
13015
|
+
* @throws {RequiredError}
|
|
13016
|
+
*/
|
|
13017
|
+
deleteUrlRedirect(requestParameters, options) {
|
|
13018
|
+
return localVarFp.deleteUrlRedirect(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
13019
|
+
},
|
|
13020
|
+
/**
|
|
13021
|
+
*
|
|
13022
|
+
* @param {UrlRedirectApiGetUrlRedirectByIdRequest} requestParameters Request parameters.
|
|
13023
|
+
* @param {*} [options] Override http request option.
|
|
13024
|
+
* @throws {RequiredError}
|
|
13025
|
+
*/
|
|
13026
|
+
getUrlRedirectById(requestParameters, options) {
|
|
13027
|
+
return localVarFp.getUrlRedirectById(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
13028
|
+
},
|
|
13029
|
+
/**
|
|
13030
|
+
*
|
|
13031
|
+
* @param {UrlRedirectApiGetUrlRedirectBySourceRequest} requestParameters Request parameters.
|
|
13032
|
+
* @param {*} [options] Override http request option.
|
|
13033
|
+
* @throws {RequiredError}
|
|
13034
|
+
*/
|
|
13035
|
+
getUrlRedirectBySource(requestParameters, options) {
|
|
13036
|
+
return localVarFp.getUrlRedirectBySource(requestParameters.from, requestParameters.companyId, options).then((request) => request(axios, basePath));
|
|
13037
|
+
},
|
|
13038
|
+
/**
|
|
13039
|
+
*
|
|
13040
|
+
* @param {UrlRedirectApiGetUrlRedirectsRequest} requestParameters Request parameters.
|
|
13041
|
+
* @param {*} [options] Override http request option.
|
|
13042
|
+
* @throws {RequiredError}
|
|
13043
|
+
*/
|
|
13044
|
+
getUrlRedirects(requestParameters, options) {
|
|
13045
|
+
return localVarFp.getUrlRedirects(requestParameters.company, requestParameters.order, requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.createdAt, requestParameters.sort, options).then((request) => request(axios, basePath));
|
|
13046
|
+
},
|
|
13047
|
+
/**
|
|
13048
|
+
*
|
|
13049
|
+
* @param {UrlRedirectApiUpdateUrlRedirectRequest} requestParameters Request parameters.
|
|
13050
|
+
* @param {*} [options] Override http request option.
|
|
13051
|
+
* @throws {RequiredError}
|
|
13052
|
+
*/
|
|
13053
|
+
updateUrlRedirect(requestParameters, options) {
|
|
13054
|
+
return localVarFp.updateUrlRedirect(requestParameters.id, requestParameters.iUrlRedirectPostRequest, options).then((request) => request(axios, basePath));
|
|
13055
|
+
},
|
|
13056
|
+
};
|
|
13057
|
+
};
|
|
13058
|
+
/**
|
|
13059
|
+
* UrlRedirectApi - object-oriented interface
|
|
13060
|
+
* @export
|
|
13061
|
+
* @class UrlRedirectApi
|
|
13062
|
+
* @extends {BaseAPI}
|
|
13063
|
+
*/
|
|
13064
|
+
export class UrlRedirectApi extends BaseAPI {
|
|
13065
|
+
/**
|
|
13066
|
+
*
|
|
13067
|
+
* @param {UrlRedirectApiCreateUrlRedirectRequest} requestParameters Request parameters.
|
|
13068
|
+
* @param {*} [options] Override http request option.
|
|
13069
|
+
* @throws {RequiredError}
|
|
13070
|
+
* @memberof UrlRedirectApi
|
|
13071
|
+
*/
|
|
13072
|
+
createUrlRedirect(requestParameters, options) {
|
|
13073
|
+
return UrlRedirectApiFp(this.configuration).createUrlRedirect(requestParameters.iUrlRedirectPostRequest, options).then((request) => request(this.axios, this.basePath));
|
|
13074
|
+
}
|
|
13075
|
+
/**
|
|
13076
|
+
*
|
|
13077
|
+
* @param {UrlRedirectApiDeleteUrlRedirectRequest} requestParameters Request parameters.
|
|
13078
|
+
* @param {*} [options] Override http request option.
|
|
13079
|
+
* @throws {RequiredError}
|
|
13080
|
+
* @memberof UrlRedirectApi
|
|
13081
|
+
*/
|
|
13082
|
+
deleteUrlRedirect(requestParameters, options) {
|
|
13083
|
+
return UrlRedirectApiFp(this.configuration).deleteUrlRedirect(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
13084
|
+
}
|
|
13085
|
+
/**
|
|
13086
|
+
*
|
|
13087
|
+
* @param {UrlRedirectApiGetUrlRedirectByIdRequest} requestParameters Request parameters.
|
|
13088
|
+
* @param {*} [options] Override http request option.
|
|
13089
|
+
* @throws {RequiredError}
|
|
13090
|
+
* @memberof UrlRedirectApi
|
|
13091
|
+
*/
|
|
13092
|
+
getUrlRedirectById(requestParameters, options) {
|
|
13093
|
+
return UrlRedirectApiFp(this.configuration).getUrlRedirectById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
13094
|
+
}
|
|
13095
|
+
/**
|
|
13096
|
+
*
|
|
13097
|
+
* @param {UrlRedirectApiGetUrlRedirectBySourceRequest} requestParameters Request parameters.
|
|
13098
|
+
* @param {*} [options] Override http request option.
|
|
13099
|
+
* @throws {RequiredError}
|
|
13100
|
+
* @memberof UrlRedirectApi
|
|
13101
|
+
*/
|
|
13102
|
+
getUrlRedirectBySource(requestParameters, options) {
|
|
13103
|
+
return UrlRedirectApiFp(this.configuration).getUrlRedirectBySource(requestParameters.from, requestParameters.companyId, options).then((request) => request(this.axios, this.basePath));
|
|
13104
|
+
}
|
|
13105
|
+
/**
|
|
13106
|
+
*
|
|
13107
|
+
* @param {UrlRedirectApiGetUrlRedirectsRequest} requestParameters Request parameters.
|
|
13108
|
+
* @param {*} [options] Override http request option.
|
|
13109
|
+
* @throws {RequiredError}
|
|
13110
|
+
* @memberof UrlRedirectApi
|
|
13111
|
+
*/
|
|
13112
|
+
getUrlRedirects(requestParameters, options) {
|
|
13113
|
+
return UrlRedirectApiFp(this.configuration).getUrlRedirects(requestParameters.company, requestParameters.order, requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.createdAt, requestParameters.sort, options).then((request) => request(this.axios, this.basePath));
|
|
13114
|
+
}
|
|
13115
|
+
/**
|
|
13116
|
+
*
|
|
13117
|
+
* @param {UrlRedirectApiUpdateUrlRedirectRequest} requestParameters Request parameters.
|
|
13118
|
+
* @param {*} [options] Override http request option.
|
|
13119
|
+
* @throws {RequiredError}
|
|
13120
|
+
* @memberof UrlRedirectApi
|
|
13121
|
+
*/
|
|
13122
|
+
updateUrlRedirect(requestParameters, options) {
|
|
13123
|
+
return UrlRedirectApiFp(this.configuration).updateUrlRedirect(requestParameters.id, requestParameters.iUrlRedirectPostRequest, options).then((request) => request(this.axios, this.basePath));
|
|
13124
|
+
}
|
|
13125
|
+
}
|
|
13126
|
+
/**
|
|
13127
|
+
* @export
|
|
13128
|
+
*/
|
|
13129
|
+
export const GetUrlRedirectsDateFieldEnum = {
|
|
13130
|
+
CREATED_AT: 'createdAt',
|
|
13131
|
+
UPDATED_AT: 'updatedAt'
|
|
13132
|
+
};
|
|
13133
|
+
/**
|
|
13134
|
+
* @export
|
|
13135
|
+
*/
|
|
13136
|
+
export const GetUrlRedirectsSortEnum = {
|
|
13137
|
+
CREATED_AT: 'createdAt',
|
|
13138
|
+
FROM: 'from'
|
|
13139
|
+
};
|
|
12604
13140
|
/**
|
|
12605
13141
|
* UserApi - axios parameter creator
|
|
12606
13142
|
* @export
|
package/dist/index.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ interface IApiClient {
|
|
|
23
23
|
UniquePageApi: doc.UniquePageApi;
|
|
24
24
|
NavigationApi: doc.NavigationApi;
|
|
25
25
|
PlanApi: doc.PlanApi;
|
|
26
|
+
UrlRedirectApi: doc.UrlRedirectApi;
|
|
26
27
|
interceptors: {
|
|
27
28
|
request: AxiosInterceptorManager<InternalAxiosRequestConfig>;
|
|
28
29
|
response: AxiosInterceptorManager<AxiosResponse>;
|
|
@@ -59,6 +60,7 @@ export declare class ApiClient implements IApiClient {
|
|
|
59
60
|
UniquePageApi: doc.UniquePageApi;
|
|
60
61
|
NavigationApi: doc.NavigationApi;
|
|
61
62
|
PlanApi: doc.PlanApi;
|
|
63
|
+
UrlRedirectApi: doc.UrlRedirectApi;
|
|
62
64
|
constructor(baseURL: string, options?: {
|
|
63
65
|
headers?: Record<string, string>;
|
|
64
66
|
} | undefined);
|
package/dist/index.js
CHANGED
|
@@ -67,6 +67,7 @@ class ApiClient {
|
|
|
67
67
|
this.UniquePageApi = new doc.UniquePageApi(undefined, this.baseURL, this.api);
|
|
68
68
|
this.NavigationApi = new doc.NavigationApi(undefined, this.baseURL, this.api);
|
|
69
69
|
this.PlanApi = new doc.PlanApi(undefined, this.baseURL, this.api);
|
|
70
|
+
this.UrlRedirectApi = new doc.UrlRedirectApi(undefined, this.baseURL, this.api);
|
|
70
71
|
this.interceptors = {
|
|
71
72
|
request: this.api.interceptors.request,
|
|
72
73
|
response: this.api.interceptors.response,
|
package/dist/index.mjs
CHANGED
|
@@ -35,6 +35,7 @@ export class ApiClient {
|
|
|
35
35
|
this.UniquePageApi = new doc.UniquePageApi(undefined, this.baseURL, this.api);
|
|
36
36
|
this.NavigationApi = new doc.NavigationApi(undefined, this.baseURL, this.api);
|
|
37
37
|
this.PlanApi = new doc.PlanApi(undefined, this.baseURL, this.api);
|
|
38
|
+
this.UrlRedirectApi = new doc.UrlRedirectApi(undefined, this.baseURL, this.api);
|
|
38
39
|
this.interceptors = {
|
|
39
40
|
request: this.api.interceptors.request,
|
|
40
41
|
response: this.api.interceptors.response,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@infisale-client/api",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.27",
|
|
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": "a8a17a0c80ff35af4b2b6b21bddf512b8f0c24b0"
|
|
41
41
|
}
|