@infisale-client/api 1.3.26 → 1.3.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.d.ts +686 -27
- package/dist/api/api.js +509 -24
- package/dist/api/api.mjs +501 -20
- 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'
|
|
@@ -1487,17 +1495,18 @@ export const BasketApiAxiosParamCreator = function (configuration) {
|
|
|
1487
1495
|
/**
|
|
1488
1496
|
*
|
|
1489
1497
|
* @param {string} itemId
|
|
1490
|
-
* @param {
|
|
1498
|
+
* @param {string} basketId
|
|
1491
1499
|
* @param {*} [options] Override http request option.
|
|
1492
1500
|
* @throws {RequiredError}
|
|
1493
1501
|
*/
|
|
1494
|
-
deleteProductFromBasket: async (itemId,
|
|
1502
|
+
deleteProductFromBasket: async (itemId, basketId, options = {}) => {
|
|
1495
1503
|
// verify required parameter 'itemId' is not null or undefined
|
|
1496
1504
|
assertParamExists('deleteProductFromBasket', 'itemId', itemId);
|
|
1497
|
-
// verify required parameter '
|
|
1498
|
-
assertParamExists('deleteProductFromBasket', '
|
|
1499
|
-
const localVarPath = `/api/baskets/delete-product/{item_id}`
|
|
1500
|
-
.replace(`{${"item_id"}}`, encodeURIComponent(String(itemId)))
|
|
1505
|
+
// verify required parameter 'basketId' is not null or undefined
|
|
1506
|
+
assertParamExists('deleteProductFromBasket', 'basketId', basketId);
|
|
1507
|
+
const localVarPath = `/api/baskets/{basket_id}/delete-product/{item_id}`
|
|
1508
|
+
.replace(`{${"item_id"}}`, encodeURIComponent(String(itemId)))
|
|
1509
|
+
.replace(`{${"basket_id"}}`, encodeURIComponent(String(basketId)));
|
|
1501
1510
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1502
1511
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1503
1512
|
let baseOptions;
|
|
@@ -1507,11 +1516,9 @@ export const BasketApiAxiosParamCreator = function (configuration) {
|
|
|
1507
1516
|
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
1508
1517
|
const localVarHeaderParameter = {};
|
|
1509
1518
|
const localVarQueryParameter = {};
|
|
1510
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1511
1519
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1512
1520
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1513
1521
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1514
|
-
localVarRequestOptions.data = serializeDataIfNeeded(iBasketDeleteRequest, localVarRequestOptions, configuration);
|
|
1515
1522
|
return {
|
|
1516
1523
|
url: toPathString(localVarUrlObj),
|
|
1517
1524
|
options: localVarRequestOptions,
|
|
@@ -1605,17 +1612,21 @@ export const BasketApiAxiosParamCreator = function (configuration) {
|
|
|
1605
1612
|
/**
|
|
1606
1613
|
*
|
|
1607
1614
|
* @param {string} itemId
|
|
1615
|
+
* @param {string} basketId
|
|
1608
1616
|
* @param {IBasketUpdateAmountRequest} iBasketUpdateAmountRequest
|
|
1609
1617
|
* @param {*} [options] Override http request option.
|
|
1610
1618
|
* @throws {RequiredError}
|
|
1611
1619
|
*/
|
|
1612
|
-
updateAmount: async (itemId, iBasketUpdateAmountRequest, options = {}) => {
|
|
1620
|
+
updateAmount: async (itemId, basketId, iBasketUpdateAmountRequest, options = {}) => {
|
|
1613
1621
|
// verify required parameter 'itemId' is not null or undefined
|
|
1614
1622
|
assertParamExists('updateAmount', 'itemId', itemId);
|
|
1623
|
+
// verify required parameter 'basketId' is not null or undefined
|
|
1624
|
+
assertParamExists('updateAmount', 'basketId', basketId);
|
|
1615
1625
|
// verify required parameter 'iBasketUpdateAmountRequest' is not null or undefined
|
|
1616
1626
|
assertParamExists('updateAmount', 'iBasketUpdateAmountRequest', iBasketUpdateAmountRequest);
|
|
1617
|
-
const localVarPath = `/api/baskets/update-amount/{item_id}`
|
|
1618
|
-
.replace(`{${"item_id"}}`, encodeURIComponent(String(itemId)))
|
|
1627
|
+
const localVarPath = `/api/baskets/{basket_id}/update-amount/{item_id}`
|
|
1628
|
+
.replace(`{${"item_id"}}`, encodeURIComponent(String(itemId)))
|
|
1629
|
+
.replace(`{${"basket_id"}}`, encodeURIComponent(String(basketId)));
|
|
1619
1630
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1620
1631
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1621
1632
|
let baseOptions;
|
|
@@ -1659,12 +1670,12 @@ export const BasketApiFp = function (configuration) {
|
|
|
1659
1670
|
/**
|
|
1660
1671
|
*
|
|
1661
1672
|
* @param {string} itemId
|
|
1662
|
-
* @param {
|
|
1673
|
+
* @param {string} basketId
|
|
1663
1674
|
* @param {*} [options] Override http request option.
|
|
1664
1675
|
* @throws {RequiredError}
|
|
1665
1676
|
*/
|
|
1666
|
-
async deleteProductFromBasket(itemId,
|
|
1667
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteProductFromBasket(itemId,
|
|
1677
|
+
async deleteProductFromBasket(itemId, basketId, options) {
|
|
1678
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteProductFromBasket(itemId, basketId, options);
|
|
1668
1679
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1669
1680
|
const localVarOperationServerBasePath = operationServerMap['BasketApi.deleteProductFromBasket']?.[localVarOperationServerIndex]?.url;
|
|
1670
1681
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1708,12 +1719,13 @@ export const BasketApiFp = function (configuration) {
|
|
|
1708
1719
|
/**
|
|
1709
1720
|
*
|
|
1710
1721
|
* @param {string} itemId
|
|
1722
|
+
* @param {string} basketId
|
|
1711
1723
|
* @param {IBasketUpdateAmountRequest} iBasketUpdateAmountRequest
|
|
1712
1724
|
* @param {*} [options] Override http request option.
|
|
1713
1725
|
* @throws {RequiredError}
|
|
1714
1726
|
*/
|
|
1715
|
-
async updateAmount(itemId, iBasketUpdateAmountRequest, options) {
|
|
1716
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.updateAmount(itemId, iBasketUpdateAmountRequest, options);
|
|
1727
|
+
async updateAmount(itemId, basketId, iBasketUpdateAmountRequest, options) {
|
|
1728
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateAmount(itemId, basketId, iBasketUpdateAmountRequest, options);
|
|
1717
1729
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1718
1730
|
const localVarOperationServerBasePath = operationServerMap['BasketApi.updateAmount']?.[localVarOperationServerIndex]?.url;
|
|
1719
1731
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1743,7 +1755,7 @@ export const BasketApiFactory = function (configuration, basePath, axios) {
|
|
|
1743
1755
|
* @throws {RequiredError}
|
|
1744
1756
|
*/
|
|
1745
1757
|
deleteProductFromBasket(requestParameters, options) {
|
|
1746
|
-
return localVarFp.deleteProductFromBasket(requestParameters.itemId, requestParameters.
|
|
1758
|
+
return localVarFp.deleteProductFromBasket(requestParameters.itemId, requestParameters.basketId, options).then((request) => request(axios, basePath));
|
|
1747
1759
|
},
|
|
1748
1760
|
/**
|
|
1749
1761
|
*
|
|
@@ -1779,7 +1791,7 @@ export const BasketApiFactory = function (configuration, basePath, axios) {
|
|
|
1779
1791
|
* @throws {RequiredError}
|
|
1780
1792
|
*/
|
|
1781
1793
|
updateAmount(requestParameters, options) {
|
|
1782
|
-
return localVarFp.updateAmount(requestParameters.itemId, requestParameters.iBasketUpdateAmountRequest, options).then((request) => request(axios, basePath));
|
|
1794
|
+
return localVarFp.updateAmount(requestParameters.itemId, requestParameters.basketId, requestParameters.iBasketUpdateAmountRequest, options).then((request) => request(axios, basePath));
|
|
1783
1795
|
},
|
|
1784
1796
|
};
|
|
1785
1797
|
};
|
|
@@ -1808,7 +1820,7 @@ export class BasketApi extends BaseAPI {
|
|
|
1808
1820
|
* @memberof BasketApi
|
|
1809
1821
|
*/
|
|
1810
1822
|
deleteProductFromBasket(requestParameters, options) {
|
|
1811
|
-
return BasketApiFp(this.configuration).deleteProductFromBasket(requestParameters.itemId, requestParameters.
|
|
1823
|
+
return BasketApiFp(this.configuration).deleteProductFromBasket(requestParameters.itemId, requestParameters.basketId, options).then((request) => request(this.axios, this.basePath));
|
|
1812
1824
|
}
|
|
1813
1825
|
/**
|
|
1814
1826
|
*
|
|
@@ -1848,7 +1860,7 @@ export class BasketApi extends BaseAPI {
|
|
|
1848
1860
|
* @memberof BasketApi
|
|
1849
1861
|
*/
|
|
1850
1862
|
updateAmount(requestParameters, options) {
|
|
1851
|
-
return BasketApiFp(this.configuration).updateAmount(requestParameters.itemId, requestParameters.iBasketUpdateAmountRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1863
|
+
return BasketApiFp(this.configuration).updateAmount(requestParameters.itemId, requestParameters.basketId, requestParameters.iBasketUpdateAmountRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1852
1864
|
}
|
|
1853
1865
|
}
|
|
1854
1866
|
/**
|
|
@@ -12660,6 +12672,475 @@ export const GetUniquePagesDateFieldEnum = {
|
|
|
12660
12672
|
CREATED_AT: 'createdAt',
|
|
12661
12673
|
UPDATED_AT: 'updatedAt'
|
|
12662
12674
|
};
|
|
12675
|
+
/**
|
|
12676
|
+
* UrlRedirectApi - axios parameter creator
|
|
12677
|
+
* @export
|
|
12678
|
+
*/
|
|
12679
|
+
export const UrlRedirectApiAxiosParamCreator = function (configuration) {
|
|
12680
|
+
return {
|
|
12681
|
+
/**
|
|
12682
|
+
*
|
|
12683
|
+
* @param {IUrlRedirectPostRequest} iUrlRedirectPostRequest
|
|
12684
|
+
* @param {*} [options] Override http request option.
|
|
12685
|
+
* @throws {RequiredError}
|
|
12686
|
+
*/
|
|
12687
|
+
createUrlRedirect: async (iUrlRedirectPostRequest, options = {}) => {
|
|
12688
|
+
// verify required parameter 'iUrlRedirectPostRequest' is not null or undefined
|
|
12689
|
+
assertParamExists('createUrlRedirect', 'iUrlRedirectPostRequest', iUrlRedirectPostRequest);
|
|
12690
|
+
const localVarPath = `/api/url-redirects`;
|
|
12691
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12692
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12693
|
+
let baseOptions;
|
|
12694
|
+
if (configuration) {
|
|
12695
|
+
baseOptions = configuration.baseOptions;
|
|
12696
|
+
}
|
|
12697
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
12698
|
+
const localVarHeaderParameter = {};
|
|
12699
|
+
const localVarQueryParameter = {};
|
|
12700
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
12701
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12702
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12703
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
12704
|
+
localVarRequestOptions.data = serializeDataIfNeeded(iUrlRedirectPostRequest, localVarRequestOptions, configuration);
|
|
12705
|
+
return {
|
|
12706
|
+
url: toPathString(localVarUrlObj),
|
|
12707
|
+
options: localVarRequestOptions,
|
|
12708
|
+
};
|
|
12709
|
+
},
|
|
12710
|
+
/**
|
|
12711
|
+
*
|
|
12712
|
+
* @param {string} id
|
|
12713
|
+
* @param {*} [options] Override http request option.
|
|
12714
|
+
* @throws {RequiredError}
|
|
12715
|
+
*/
|
|
12716
|
+
deleteUrlRedirect: async (id, options = {}) => {
|
|
12717
|
+
// verify required parameter 'id' is not null or undefined
|
|
12718
|
+
assertParamExists('deleteUrlRedirect', 'id', id);
|
|
12719
|
+
const localVarPath = `/api/url-redirects/{id}`
|
|
12720
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
12721
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12722
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12723
|
+
let baseOptions;
|
|
12724
|
+
if (configuration) {
|
|
12725
|
+
baseOptions = configuration.baseOptions;
|
|
12726
|
+
}
|
|
12727
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
12728
|
+
const localVarHeaderParameter = {};
|
|
12729
|
+
const localVarQueryParameter = {};
|
|
12730
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12731
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12732
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
12733
|
+
return {
|
|
12734
|
+
url: toPathString(localVarUrlObj),
|
|
12735
|
+
options: localVarRequestOptions,
|
|
12736
|
+
};
|
|
12737
|
+
},
|
|
12738
|
+
/**
|
|
12739
|
+
*
|
|
12740
|
+
* @param {string} id
|
|
12741
|
+
* @param {*} [options] Override http request option.
|
|
12742
|
+
* @throws {RequiredError}
|
|
12743
|
+
*/
|
|
12744
|
+
getUrlRedirectById: async (id, options = {}) => {
|
|
12745
|
+
// verify required parameter 'id' is not null or undefined
|
|
12746
|
+
assertParamExists('getUrlRedirectById', 'id', id);
|
|
12747
|
+
const localVarPath = `/api/url-redirects/{id}`
|
|
12748
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
12749
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12750
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12751
|
+
let baseOptions;
|
|
12752
|
+
if (configuration) {
|
|
12753
|
+
baseOptions = configuration.baseOptions;
|
|
12754
|
+
}
|
|
12755
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
12756
|
+
const localVarHeaderParameter = {};
|
|
12757
|
+
const localVarQueryParameter = {};
|
|
12758
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12759
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12760
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
12761
|
+
return {
|
|
12762
|
+
url: toPathString(localVarUrlObj),
|
|
12763
|
+
options: localVarRequestOptions,
|
|
12764
|
+
};
|
|
12765
|
+
},
|
|
12766
|
+
/**
|
|
12767
|
+
*
|
|
12768
|
+
* @param {string} from
|
|
12769
|
+
* @param {string} companyId
|
|
12770
|
+
* @param {*} [options] Override http request option.
|
|
12771
|
+
* @throws {RequiredError}
|
|
12772
|
+
*/
|
|
12773
|
+
getUrlRedirectBySource: async (from, companyId, options = {}) => {
|
|
12774
|
+
// verify required parameter 'from' is not null or undefined
|
|
12775
|
+
assertParamExists('getUrlRedirectBySource', 'from', from);
|
|
12776
|
+
// verify required parameter 'companyId' is not null or undefined
|
|
12777
|
+
assertParamExists('getUrlRedirectBySource', 'companyId', companyId);
|
|
12778
|
+
const localVarPath = `/api/url-redirects/from`;
|
|
12779
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12780
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12781
|
+
let baseOptions;
|
|
12782
|
+
if (configuration) {
|
|
12783
|
+
baseOptions = configuration.baseOptions;
|
|
12784
|
+
}
|
|
12785
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
12786
|
+
const localVarHeaderParameter = {};
|
|
12787
|
+
const localVarQueryParameter = {};
|
|
12788
|
+
if (from !== undefined) {
|
|
12789
|
+
localVarQueryParameter['from'] = from;
|
|
12790
|
+
}
|
|
12791
|
+
if (companyId !== undefined) {
|
|
12792
|
+
localVarQueryParameter['companyId'] = companyId;
|
|
12793
|
+
}
|
|
12794
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12795
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12796
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
12797
|
+
return {
|
|
12798
|
+
url: toPathString(localVarUrlObj),
|
|
12799
|
+
options: localVarRequestOptions,
|
|
12800
|
+
};
|
|
12801
|
+
},
|
|
12802
|
+
/**
|
|
12803
|
+
*
|
|
12804
|
+
* @param {string} companyId
|
|
12805
|
+
* @param {OrderEnum} [order]
|
|
12806
|
+
* @param {number} [page]
|
|
12807
|
+
* @param {number} [itemsPerPage]
|
|
12808
|
+
* @param {string} [search]
|
|
12809
|
+
* @param {string} [startDate]
|
|
12810
|
+
* @param {string} [endDate]
|
|
12811
|
+
* @param {GetUrlRedirectsDateFieldEnum} [dateField]
|
|
12812
|
+
* @param {string} [createdAt]
|
|
12813
|
+
* @param {GetUrlRedirectsSortEnum} [sort]
|
|
12814
|
+
* @param {*} [options] Override http request option.
|
|
12815
|
+
* @throws {RequiredError}
|
|
12816
|
+
*/
|
|
12817
|
+
getUrlRedirects: async (companyId, order, page, itemsPerPage, search, startDate, endDate, dateField, createdAt, sort, options = {}) => {
|
|
12818
|
+
// verify required parameter 'companyId' is not null or undefined
|
|
12819
|
+
assertParamExists('getUrlRedirects', 'companyId', companyId);
|
|
12820
|
+
const localVarPath = `/api/url-redirects`;
|
|
12821
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12822
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12823
|
+
let baseOptions;
|
|
12824
|
+
if (configuration) {
|
|
12825
|
+
baseOptions = configuration.baseOptions;
|
|
12826
|
+
}
|
|
12827
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
12828
|
+
const localVarHeaderParameter = {};
|
|
12829
|
+
const localVarQueryParameter = {};
|
|
12830
|
+
if (order !== undefined) {
|
|
12831
|
+
localVarQueryParameter['order'] = order;
|
|
12832
|
+
}
|
|
12833
|
+
if (page !== undefined) {
|
|
12834
|
+
localVarQueryParameter['page'] = page;
|
|
12835
|
+
}
|
|
12836
|
+
if (itemsPerPage !== undefined) {
|
|
12837
|
+
localVarQueryParameter['itemsPerPage'] = itemsPerPage;
|
|
12838
|
+
}
|
|
12839
|
+
if (search !== undefined) {
|
|
12840
|
+
localVarQueryParameter['search'] = search;
|
|
12841
|
+
}
|
|
12842
|
+
if (startDate !== undefined) {
|
|
12843
|
+
localVarQueryParameter['startDate'] = (startDate instanceof Date) ?
|
|
12844
|
+
startDate.toISOString() :
|
|
12845
|
+
startDate;
|
|
12846
|
+
}
|
|
12847
|
+
if (endDate !== undefined) {
|
|
12848
|
+
localVarQueryParameter['endDate'] = (endDate instanceof Date) ?
|
|
12849
|
+
endDate.toISOString() :
|
|
12850
|
+
endDate;
|
|
12851
|
+
}
|
|
12852
|
+
if (dateField !== undefined) {
|
|
12853
|
+
localVarQueryParameter['dateField'] = dateField;
|
|
12854
|
+
}
|
|
12855
|
+
if (companyId !== undefined) {
|
|
12856
|
+
localVarQueryParameter['companyId'] = companyId;
|
|
12857
|
+
}
|
|
12858
|
+
if (createdAt !== undefined) {
|
|
12859
|
+
localVarQueryParameter['createdAt'] = createdAt;
|
|
12860
|
+
}
|
|
12861
|
+
if (sort !== undefined) {
|
|
12862
|
+
localVarQueryParameter['sort'] = sort;
|
|
12863
|
+
}
|
|
12864
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12865
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12866
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
12867
|
+
return {
|
|
12868
|
+
url: toPathString(localVarUrlObj),
|
|
12869
|
+
options: localVarRequestOptions,
|
|
12870
|
+
};
|
|
12871
|
+
},
|
|
12872
|
+
/**
|
|
12873
|
+
*
|
|
12874
|
+
* @param {string} id
|
|
12875
|
+
* @param {IUrlRedirectPostRequest} iUrlRedirectPostRequest
|
|
12876
|
+
* @param {*} [options] Override http request option.
|
|
12877
|
+
* @throws {RequiredError}
|
|
12878
|
+
*/
|
|
12879
|
+
updateUrlRedirect: async (id, iUrlRedirectPostRequest, options = {}) => {
|
|
12880
|
+
// verify required parameter 'id' is not null or undefined
|
|
12881
|
+
assertParamExists('updateUrlRedirect', 'id', id);
|
|
12882
|
+
// verify required parameter 'iUrlRedirectPostRequest' is not null or undefined
|
|
12883
|
+
assertParamExists('updateUrlRedirect', 'iUrlRedirectPostRequest', iUrlRedirectPostRequest);
|
|
12884
|
+
const localVarPath = `/api/url-redirects/{id}`
|
|
12885
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
12886
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12887
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12888
|
+
let baseOptions;
|
|
12889
|
+
if (configuration) {
|
|
12890
|
+
baseOptions = configuration.baseOptions;
|
|
12891
|
+
}
|
|
12892
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options };
|
|
12893
|
+
const localVarHeaderParameter = {};
|
|
12894
|
+
const localVarQueryParameter = {};
|
|
12895
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
12896
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12897
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12898
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
12899
|
+
localVarRequestOptions.data = serializeDataIfNeeded(iUrlRedirectPostRequest, localVarRequestOptions, configuration);
|
|
12900
|
+
return {
|
|
12901
|
+
url: toPathString(localVarUrlObj),
|
|
12902
|
+
options: localVarRequestOptions,
|
|
12903
|
+
};
|
|
12904
|
+
},
|
|
12905
|
+
};
|
|
12906
|
+
};
|
|
12907
|
+
/**
|
|
12908
|
+
* UrlRedirectApi - functional programming interface
|
|
12909
|
+
* @export
|
|
12910
|
+
*/
|
|
12911
|
+
export const UrlRedirectApiFp = function (configuration) {
|
|
12912
|
+
const localVarAxiosParamCreator = UrlRedirectApiAxiosParamCreator(configuration);
|
|
12913
|
+
return {
|
|
12914
|
+
/**
|
|
12915
|
+
*
|
|
12916
|
+
* @param {IUrlRedirectPostRequest} iUrlRedirectPostRequest
|
|
12917
|
+
* @param {*} [options] Override http request option.
|
|
12918
|
+
* @throws {RequiredError}
|
|
12919
|
+
*/
|
|
12920
|
+
async createUrlRedirect(iUrlRedirectPostRequest, options) {
|
|
12921
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createUrlRedirect(iUrlRedirectPostRequest, options);
|
|
12922
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
12923
|
+
const localVarOperationServerBasePath = operationServerMap['UrlRedirectApi.createUrlRedirect']?.[localVarOperationServerIndex]?.url;
|
|
12924
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12925
|
+
},
|
|
12926
|
+
/**
|
|
12927
|
+
*
|
|
12928
|
+
* @param {string} id
|
|
12929
|
+
* @param {*} [options] Override http request option.
|
|
12930
|
+
* @throws {RequiredError}
|
|
12931
|
+
*/
|
|
12932
|
+
async deleteUrlRedirect(id, options) {
|
|
12933
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteUrlRedirect(id, options);
|
|
12934
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
12935
|
+
const localVarOperationServerBasePath = operationServerMap['UrlRedirectApi.deleteUrlRedirect']?.[localVarOperationServerIndex]?.url;
|
|
12936
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12937
|
+
},
|
|
12938
|
+
/**
|
|
12939
|
+
*
|
|
12940
|
+
* @param {string} id
|
|
12941
|
+
* @param {*} [options] Override http request option.
|
|
12942
|
+
* @throws {RequiredError}
|
|
12943
|
+
*/
|
|
12944
|
+
async getUrlRedirectById(id, options) {
|
|
12945
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getUrlRedirectById(id, options);
|
|
12946
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
12947
|
+
const localVarOperationServerBasePath = operationServerMap['UrlRedirectApi.getUrlRedirectById']?.[localVarOperationServerIndex]?.url;
|
|
12948
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12949
|
+
},
|
|
12950
|
+
/**
|
|
12951
|
+
*
|
|
12952
|
+
* @param {string} from
|
|
12953
|
+
* @param {string} companyId
|
|
12954
|
+
* @param {*} [options] Override http request option.
|
|
12955
|
+
* @throws {RequiredError}
|
|
12956
|
+
*/
|
|
12957
|
+
async getUrlRedirectBySource(from, companyId, options) {
|
|
12958
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getUrlRedirectBySource(from, companyId, options);
|
|
12959
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
12960
|
+
const localVarOperationServerBasePath = operationServerMap['UrlRedirectApi.getUrlRedirectBySource']?.[localVarOperationServerIndex]?.url;
|
|
12961
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12962
|
+
},
|
|
12963
|
+
/**
|
|
12964
|
+
*
|
|
12965
|
+
* @param {string} companyId
|
|
12966
|
+
* @param {OrderEnum} [order]
|
|
12967
|
+
* @param {number} [page]
|
|
12968
|
+
* @param {number} [itemsPerPage]
|
|
12969
|
+
* @param {string} [search]
|
|
12970
|
+
* @param {string} [startDate]
|
|
12971
|
+
* @param {string} [endDate]
|
|
12972
|
+
* @param {GetUrlRedirectsDateFieldEnum} [dateField]
|
|
12973
|
+
* @param {string} [createdAt]
|
|
12974
|
+
* @param {GetUrlRedirectsSortEnum} [sort]
|
|
12975
|
+
* @param {*} [options] Override http request option.
|
|
12976
|
+
* @throws {RequiredError}
|
|
12977
|
+
*/
|
|
12978
|
+
async getUrlRedirects(companyId, order, page, itemsPerPage, search, startDate, endDate, dateField, createdAt, sort, options) {
|
|
12979
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getUrlRedirects(companyId, order, page, itemsPerPage, search, startDate, endDate, dateField, createdAt, sort, options);
|
|
12980
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
12981
|
+
const localVarOperationServerBasePath = operationServerMap['UrlRedirectApi.getUrlRedirects']?.[localVarOperationServerIndex]?.url;
|
|
12982
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12983
|
+
},
|
|
12984
|
+
/**
|
|
12985
|
+
*
|
|
12986
|
+
* @param {string} id
|
|
12987
|
+
* @param {IUrlRedirectPostRequest} iUrlRedirectPostRequest
|
|
12988
|
+
* @param {*} [options] Override http request option.
|
|
12989
|
+
* @throws {RequiredError}
|
|
12990
|
+
*/
|
|
12991
|
+
async updateUrlRedirect(id, iUrlRedirectPostRequest, options) {
|
|
12992
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateUrlRedirect(id, iUrlRedirectPostRequest, options);
|
|
12993
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
12994
|
+
const localVarOperationServerBasePath = operationServerMap['UrlRedirectApi.updateUrlRedirect']?.[localVarOperationServerIndex]?.url;
|
|
12995
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12996
|
+
},
|
|
12997
|
+
};
|
|
12998
|
+
};
|
|
12999
|
+
/**
|
|
13000
|
+
* UrlRedirectApi - factory interface
|
|
13001
|
+
* @export
|
|
13002
|
+
*/
|
|
13003
|
+
export const UrlRedirectApiFactory = function (configuration, basePath, axios) {
|
|
13004
|
+
const localVarFp = UrlRedirectApiFp(configuration);
|
|
13005
|
+
return {
|
|
13006
|
+
/**
|
|
13007
|
+
*
|
|
13008
|
+
* @param {UrlRedirectApiCreateUrlRedirectRequest} requestParameters Request parameters.
|
|
13009
|
+
* @param {*} [options] Override http request option.
|
|
13010
|
+
* @throws {RequiredError}
|
|
13011
|
+
*/
|
|
13012
|
+
createUrlRedirect(requestParameters, options) {
|
|
13013
|
+
return localVarFp.createUrlRedirect(requestParameters.iUrlRedirectPostRequest, options).then((request) => request(axios, basePath));
|
|
13014
|
+
},
|
|
13015
|
+
/**
|
|
13016
|
+
*
|
|
13017
|
+
* @param {UrlRedirectApiDeleteUrlRedirectRequest} requestParameters Request parameters.
|
|
13018
|
+
* @param {*} [options] Override http request option.
|
|
13019
|
+
* @throws {RequiredError}
|
|
13020
|
+
*/
|
|
13021
|
+
deleteUrlRedirect(requestParameters, options) {
|
|
13022
|
+
return localVarFp.deleteUrlRedirect(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
13023
|
+
},
|
|
13024
|
+
/**
|
|
13025
|
+
*
|
|
13026
|
+
* @param {UrlRedirectApiGetUrlRedirectByIdRequest} requestParameters Request parameters.
|
|
13027
|
+
* @param {*} [options] Override http request option.
|
|
13028
|
+
* @throws {RequiredError}
|
|
13029
|
+
*/
|
|
13030
|
+
getUrlRedirectById(requestParameters, options) {
|
|
13031
|
+
return localVarFp.getUrlRedirectById(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
13032
|
+
},
|
|
13033
|
+
/**
|
|
13034
|
+
*
|
|
13035
|
+
* @param {UrlRedirectApiGetUrlRedirectBySourceRequest} requestParameters Request parameters.
|
|
13036
|
+
* @param {*} [options] Override http request option.
|
|
13037
|
+
* @throws {RequiredError}
|
|
13038
|
+
*/
|
|
13039
|
+
getUrlRedirectBySource(requestParameters, options) {
|
|
13040
|
+
return localVarFp.getUrlRedirectBySource(requestParameters.from, requestParameters.companyId, options).then((request) => request(axios, basePath));
|
|
13041
|
+
},
|
|
13042
|
+
/**
|
|
13043
|
+
*
|
|
13044
|
+
* @param {UrlRedirectApiGetUrlRedirectsRequest} requestParameters Request parameters.
|
|
13045
|
+
* @param {*} [options] Override http request option.
|
|
13046
|
+
* @throws {RequiredError}
|
|
13047
|
+
*/
|
|
13048
|
+
getUrlRedirects(requestParameters, options) {
|
|
13049
|
+
return localVarFp.getUrlRedirects(requestParameters.companyId, requestParameters.order, requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.createdAt, requestParameters.sort, options).then((request) => request(axios, basePath));
|
|
13050
|
+
},
|
|
13051
|
+
/**
|
|
13052
|
+
*
|
|
13053
|
+
* @param {UrlRedirectApiUpdateUrlRedirectRequest} requestParameters Request parameters.
|
|
13054
|
+
* @param {*} [options] Override http request option.
|
|
13055
|
+
* @throws {RequiredError}
|
|
13056
|
+
*/
|
|
13057
|
+
updateUrlRedirect(requestParameters, options) {
|
|
13058
|
+
return localVarFp.updateUrlRedirect(requestParameters.id, requestParameters.iUrlRedirectPostRequest, options).then((request) => request(axios, basePath));
|
|
13059
|
+
},
|
|
13060
|
+
};
|
|
13061
|
+
};
|
|
13062
|
+
/**
|
|
13063
|
+
* UrlRedirectApi - object-oriented interface
|
|
13064
|
+
* @export
|
|
13065
|
+
* @class UrlRedirectApi
|
|
13066
|
+
* @extends {BaseAPI}
|
|
13067
|
+
*/
|
|
13068
|
+
export class UrlRedirectApi extends BaseAPI {
|
|
13069
|
+
/**
|
|
13070
|
+
*
|
|
13071
|
+
* @param {UrlRedirectApiCreateUrlRedirectRequest} requestParameters Request parameters.
|
|
13072
|
+
* @param {*} [options] Override http request option.
|
|
13073
|
+
* @throws {RequiredError}
|
|
13074
|
+
* @memberof UrlRedirectApi
|
|
13075
|
+
*/
|
|
13076
|
+
createUrlRedirect(requestParameters, options) {
|
|
13077
|
+
return UrlRedirectApiFp(this.configuration).createUrlRedirect(requestParameters.iUrlRedirectPostRequest, options).then((request) => request(this.axios, this.basePath));
|
|
13078
|
+
}
|
|
13079
|
+
/**
|
|
13080
|
+
*
|
|
13081
|
+
* @param {UrlRedirectApiDeleteUrlRedirectRequest} requestParameters Request parameters.
|
|
13082
|
+
* @param {*} [options] Override http request option.
|
|
13083
|
+
* @throws {RequiredError}
|
|
13084
|
+
* @memberof UrlRedirectApi
|
|
13085
|
+
*/
|
|
13086
|
+
deleteUrlRedirect(requestParameters, options) {
|
|
13087
|
+
return UrlRedirectApiFp(this.configuration).deleteUrlRedirect(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
13088
|
+
}
|
|
13089
|
+
/**
|
|
13090
|
+
*
|
|
13091
|
+
* @param {UrlRedirectApiGetUrlRedirectByIdRequest} requestParameters Request parameters.
|
|
13092
|
+
* @param {*} [options] Override http request option.
|
|
13093
|
+
* @throws {RequiredError}
|
|
13094
|
+
* @memberof UrlRedirectApi
|
|
13095
|
+
*/
|
|
13096
|
+
getUrlRedirectById(requestParameters, options) {
|
|
13097
|
+
return UrlRedirectApiFp(this.configuration).getUrlRedirectById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
13098
|
+
}
|
|
13099
|
+
/**
|
|
13100
|
+
*
|
|
13101
|
+
* @param {UrlRedirectApiGetUrlRedirectBySourceRequest} requestParameters Request parameters.
|
|
13102
|
+
* @param {*} [options] Override http request option.
|
|
13103
|
+
* @throws {RequiredError}
|
|
13104
|
+
* @memberof UrlRedirectApi
|
|
13105
|
+
*/
|
|
13106
|
+
getUrlRedirectBySource(requestParameters, options) {
|
|
13107
|
+
return UrlRedirectApiFp(this.configuration).getUrlRedirectBySource(requestParameters.from, requestParameters.companyId, options).then((request) => request(this.axios, this.basePath));
|
|
13108
|
+
}
|
|
13109
|
+
/**
|
|
13110
|
+
*
|
|
13111
|
+
* @param {UrlRedirectApiGetUrlRedirectsRequest} requestParameters Request parameters.
|
|
13112
|
+
* @param {*} [options] Override http request option.
|
|
13113
|
+
* @throws {RequiredError}
|
|
13114
|
+
* @memberof UrlRedirectApi
|
|
13115
|
+
*/
|
|
13116
|
+
getUrlRedirects(requestParameters, options) {
|
|
13117
|
+
return UrlRedirectApiFp(this.configuration).getUrlRedirects(requestParameters.companyId, 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));
|
|
13118
|
+
}
|
|
13119
|
+
/**
|
|
13120
|
+
*
|
|
13121
|
+
* @param {UrlRedirectApiUpdateUrlRedirectRequest} requestParameters Request parameters.
|
|
13122
|
+
* @param {*} [options] Override http request option.
|
|
13123
|
+
* @throws {RequiredError}
|
|
13124
|
+
* @memberof UrlRedirectApi
|
|
13125
|
+
*/
|
|
13126
|
+
updateUrlRedirect(requestParameters, options) {
|
|
13127
|
+
return UrlRedirectApiFp(this.configuration).updateUrlRedirect(requestParameters.id, requestParameters.iUrlRedirectPostRequest, options).then((request) => request(this.axios, this.basePath));
|
|
13128
|
+
}
|
|
13129
|
+
}
|
|
13130
|
+
/**
|
|
13131
|
+
* @export
|
|
13132
|
+
*/
|
|
13133
|
+
export const GetUrlRedirectsDateFieldEnum = {
|
|
13134
|
+
CREATED_AT: 'createdAt',
|
|
13135
|
+
UPDATED_AT: 'updatedAt'
|
|
13136
|
+
};
|
|
13137
|
+
/**
|
|
13138
|
+
* @export
|
|
13139
|
+
*/
|
|
13140
|
+
export const GetUrlRedirectsSortEnum = {
|
|
13141
|
+
CREATED_AT: 'createdAt',
|
|
13142
|
+
FROM: 'from'
|
|
13143
|
+
};
|
|
12663
13144
|
/**
|
|
12664
13145
|
* UserApi - axios parameter creator
|
|
12665
13146
|
* @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.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",
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
"bugs": {
|
|
38
38
|
"url": "https://github.com/infisale/infisale-client/issues"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "b5ecf035afe6e26fe8a2dc3ec8f7ddee562e8a0f"
|
|
41
41
|
}
|