@infisale-client/api 1.3.26 → 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 +670 -0
- package/dist/api/api.js +485 -4
- package/dist/api/api.mjs +477 -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.js
CHANGED
|
@@ -16,10 +16,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
16
16
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
17
17
|
};
|
|
18
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.
|
|
20
|
-
exports.
|
|
21
|
-
exports.
|
|
22
|
-
exports.GetUsersDateFieldEnum = exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.GetUniquePagesDateFieldEnum = exports.UniquePageApi = exports.UniquePageApiFactory = exports.UniquePageApiFp = void 0;
|
|
19
|
+
exports.PlanCurrencyEnum = exports.PickICollectionQueryParamsExcludeKeyofICollectionQueryParamsSortDateFieldEnum = exports.PaymentStatusEnum = exports.PaymentMethodEnum = exports.PaymentGatewayEnum = exports.OrderStatusEnum = exports.OrderShippedStatusEnum = exports.OrderReturnStatusEnumWAITINGRETURN = exports.OrderReturnStatusEnumRETURNED = exports.OrderReturnStatusEnum = exports.OrderPaymentStatusEnum = exports.OrderEnum = exports.OperationStatusEnum = exports.NotificationStatusEnum = exports.NotificationMessageEnum = exports.NavigationUrlTargetEnum = exports.NavigationLinkTypeEnum = exports.LanguageEnum = exports.IUserCollectionQueryParamsDateFieldEnum = exports.IUrlRedirectCollectionQueryParamsSortEnum = exports.IUrlRedirectCollectionQueryParamsDateFieldEnum = exports.IUniqueCollectionQueryParamsDateFieldEnum = exports.IProductCollectionQueryParamsSortEnum = exports.IProductCollectionQueryParamsDateFieldEnum = exports.IPlanCollectionQueryParamsDateFieldEnum = exports.IPaymentPostRequestPeriodEnum = exports.IPageCollectionQueryParamsDateFieldEnum = exports.IOrderCollectionQueryParamsDateFieldEnum = exports.IOperationCollectionQueryParamsDateFieldEnum = exports.INotificationCollectionQueryParamsDateFieldEnum = exports.INavigationCollectionQueryParamsDateFieldEnum = exports.IMyOrderCollectionQueryParamsDateFieldEnum = exports.IFileCollectionQueryParamsDateFieldEnum = exports.IContactFormCollectionQueryParamsDateFieldEnum = exports.ICompanyUsersCollectionQueryParamsDateFieldEnum = exports.ICompanyDashboardResponsePeriodEnum = exports.ICompanyCollectionQueryParamsDateFieldEnum = exports.ICollectionCollectionsQueryParamsDateFieldEnum = exports.ICategoryCollectionQueryParamsDateFieldEnum = exports.IBrandCollectionQueryParamsDateFieldEnum = exports.FileTypeEnum = exports.FileStatusEnum = exports.FileKeywordEnum = exports.EmailConfigDnsRecordTypeEnum = exports.CurrencyRateTypeEnum = exports.CurrencyEnum = exports.CountryEnum = exports.ContentStatusEnum = exports.CompanyUserStatusEnum = exports.CompanyStatusEnum = void 0;
|
|
20
|
+
exports.FileApiFactory = exports.FileApiFp = exports.FileApiAxiosParamCreator = exports.GetContactFormsDateFieldEnum = exports.ContactFormApi = exports.ContactFormApiFactory = exports.ContactFormApiFp = exports.ContactFormApiAxiosParamCreator = exports.GetCompanyCustomersDateFieldEnum = exports.GetCompaniesDateFieldEnum = exports.CompanyApi = exports.CompanyApiFactory = exports.CompanyApiFp = exports.CompanyApiAxiosParamCreator = exports.GetCollectionsDateFieldEnum = exports.CollectionApi = exports.CollectionApiFactory = exports.CollectionApiFp = exports.CollectionApiAxiosParamCreator = exports.GetCategoriesDateFieldEnum = exports.CategoryApi = exports.CategoryApiFactory = exports.CategoryApiFp = exports.CategoryApiAxiosParamCreator = exports.GetBrandsDateFieldEnum = exports.BrandApi = exports.BrandApiFactory = exports.BrandApiFp = exports.BrandApiAxiosParamCreator = exports.BasketApi = exports.BasketApiFactory = exports.BasketApiFp = exports.BasketApiAxiosParamCreator = exports.AuthApi = exports.AuthApiFactory = exports.AuthApiFp = exports.AuthApiAxiosParamCreator = exports.AddressApi = exports.AddressApiFactory = exports.AddressApiFp = exports.AddressApiAxiosParamCreator = exports.UserStatusEnum = exports.UserRoleEnum = exports.TimezoneEnum = exports.StoreLocationEnum = exports.SitemapTypeEnum = exports.ShippingPricingTypeEnum = exports.ReviewStatusEnum = exports.PlanTypeEnum = exports.PlanStatusEnum = void 0;
|
|
21
|
+
exports.ThemeApiFactory = exports.ThemeApiFp = exports.ThemeApiAxiosParamCreator = exports.TemplateApi = exports.TemplateApiFactory = exports.TemplateApiFp = exports.TemplateApiAxiosParamCreator = exports.SitemapApi = exports.SitemapApiFactory = exports.SitemapApiFp = exports.SitemapApiAxiosParamCreator = exports.GetProductsSortEnum = exports.GetProductsDateFieldEnum = exports.ProductApi = exports.ProductApiFactory = exports.ProductApiFp = exports.ProductApiAxiosParamCreator = exports.GetPlansDateFieldEnum = exports.PlanApi = exports.PlanApiFactory = exports.PlanApiFp = exports.PlanApiAxiosParamCreator = exports.GetPagesDateFieldEnum = exports.PageApi = exports.PageApiFactory = exports.PageApiFp = exports.PageApiAxiosParamCreator = exports.GetOrdersDateFieldEnum = exports.GetMyOrdersDateFieldEnum = exports.OrderApi = exports.OrderApiFactory = exports.OrderApiFp = exports.OrderApiAxiosParamCreator = exports.GetOperationsDateFieldEnum = exports.OperationApi = exports.OperationApiFactory = exports.OperationApiFp = exports.OperationApiAxiosParamCreator = exports.GetNotificationsDateFieldEnum = exports.NotificationApi = exports.NotificationApiFactory = exports.NotificationApiFp = exports.NotificationApiAxiosParamCreator = exports.GetNavigationsDateFieldEnum = exports.NavigationApi = exports.NavigationApiFactory = exports.NavigationApiFp = exports.NavigationApiAxiosParamCreator = exports.GetFilesDateFieldEnum = exports.FileApi = void 0;
|
|
22
|
+
exports.GetUsersDateFieldEnum = exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.GetUrlRedirectsSortEnum = exports.GetUrlRedirectsDateFieldEnum = exports.UrlRedirectApi = exports.UrlRedirectApiFactory = exports.UrlRedirectApiFp = exports.UrlRedirectApiAxiosParamCreator = exports.GetUniquePagesDateFieldEnum = exports.UniquePageApi = exports.UniquePageApiFactory = exports.UniquePageApiFp = exports.UniquePageApiAxiosParamCreator = exports.ThemeApi = void 0;
|
|
23
23
|
const axios_1 = __importDefault(require("axios"));
|
|
24
24
|
// Some imports not used depending on template conditions
|
|
25
25
|
// @ts-ignore
|
|
@@ -457,6 +457,14 @@ exports.IUniqueCollectionQueryParamsDateFieldEnum = {
|
|
|
457
457
|
CREATED_AT: 'createdAt',
|
|
458
458
|
UPDATED_AT: 'updatedAt'
|
|
459
459
|
};
|
|
460
|
+
exports.IUrlRedirectCollectionQueryParamsDateFieldEnum = {
|
|
461
|
+
CREATED_AT: 'createdAt',
|
|
462
|
+
UPDATED_AT: 'updatedAt'
|
|
463
|
+
};
|
|
464
|
+
exports.IUrlRedirectCollectionQueryParamsSortEnum = {
|
|
465
|
+
CREATED_AT: 'createdAt',
|
|
466
|
+
FROM: 'from'
|
|
467
|
+
};
|
|
460
468
|
exports.IUserCollectionQueryParamsDateFieldEnum = {
|
|
461
469
|
CREATED_AT: 'createdAt',
|
|
462
470
|
UPDATED_AT: 'updatedAt'
|
|
@@ -12752,6 +12760,479 @@ exports.GetUniquePagesDateFieldEnum = {
|
|
|
12752
12760
|
CREATED_AT: 'createdAt',
|
|
12753
12761
|
UPDATED_AT: 'updatedAt'
|
|
12754
12762
|
};
|
|
12763
|
+
/**
|
|
12764
|
+
* UrlRedirectApi - axios parameter creator
|
|
12765
|
+
* @export
|
|
12766
|
+
*/
|
|
12767
|
+
const UrlRedirectApiAxiosParamCreator = function (configuration) {
|
|
12768
|
+
return {
|
|
12769
|
+
/**
|
|
12770
|
+
*
|
|
12771
|
+
* @param {IUrlRedirectPostRequest} iUrlRedirectPostRequest
|
|
12772
|
+
* @param {*} [options] Override http request option.
|
|
12773
|
+
* @throws {RequiredError}
|
|
12774
|
+
*/
|
|
12775
|
+
createUrlRedirect: async (iUrlRedirectPostRequest, options = {}) => {
|
|
12776
|
+
// verify required parameter 'iUrlRedirectPostRequest' is not null or undefined
|
|
12777
|
+
(0, common_1.assertParamExists)('createUrlRedirect', 'iUrlRedirectPostRequest', iUrlRedirectPostRequest);
|
|
12778
|
+
const localVarPath = `/api/url-redirects`;
|
|
12779
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12780
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12781
|
+
let baseOptions;
|
|
12782
|
+
if (configuration) {
|
|
12783
|
+
baseOptions = configuration.baseOptions;
|
|
12784
|
+
}
|
|
12785
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
12786
|
+
const localVarHeaderParameter = {};
|
|
12787
|
+
const localVarQueryParameter = {};
|
|
12788
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
12789
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
12790
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12791
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
12792
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(iUrlRedirectPostRequest, localVarRequestOptions, configuration);
|
|
12793
|
+
return {
|
|
12794
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
12795
|
+
options: localVarRequestOptions,
|
|
12796
|
+
};
|
|
12797
|
+
},
|
|
12798
|
+
/**
|
|
12799
|
+
*
|
|
12800
|
+
* @param {string} id
|
|
12801
|
+
* @param {*} [options] Override http request option.
|
|
12802
|
+
* @throws {RequiredError}
|
|
12803
|
+
*/
|
|
12804
|
+
deleteUrlRedirect: async (id, options = {}) => {
|
|
12805
|
+
// verify required parameter 'id' is not null or undefined
|
|
12806
|
+
(0, common_1.assertParamExists)('deleteUrlRedirect', 'id', id);
|
|
12807
|
+
const localVarPath = `/api/url-redirects/{id}`
|
|
12808
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
12809
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12810
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12811
|
+
let baseOptions;
|
|
12812
|
+
if (configuration) {
|
|
12813
|
+
baseOptions = configuration.baseOptions;
|
|
12814
|
+
}
|
|
12815
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
12816
|
+
const localVarHeaderParameter = {};
|
|
12817
|
+
const localVarQueryParameter = {};
|
|
12818
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
12819
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12820
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
12821
|
+
return {
|
|
12822
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
12823
|
+
options: localVarRequestOptions,
|
|
12824
|
+
};
|
|
12825
|
+
},
|
|
12826
|
+
/**
|
|
12827
|
+
*
|
|
12828
|
+
* @param {string} id
|
|
12829
|
+
* @param {*} [options] Override http request option.
|
|
12830
|
+
* @throws {RequiredError}
|
|
12831
|
+
*/
|
|
12832
|
+
getUrlRedirectById: async (id, options = {}) => {
|
|
12833
|
+
// verify required parameter 'id' is not null or undefined
|
|
12834
|
+
(0, common_1.assertParamExists)('getUrlRedirectById', 'id', id);
|
|
12835
|
+
const localVarPath = `/api/url-redirects/{id}`
|
|
12836
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
12837
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12838
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12839
|
+
let baseOptions;
|
|
12840
|
+
if (configuration) {
|
|
12841
|
+
baseOptions = configuration.baseOptions;
|
|
12842
|
+
}
|
|
12843
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
12844
|
+
const localVarHeaderParameter = {};
|
|
12845
|
+
const localVarQueryParameter = {};
|
|
12846
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
12847
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12848
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
12849
|
+
return {
|
|
12850
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
12851
|
+
options: localVarRequestOptions,
|
|
12852
|
+
};
|
|
12853
|
+
},
|
|
12854
|
+
/**
|
|
12855
|
+
*
|
|
12856
|
+
* @param {string} from
|
|
12857
|
+
* @param {string} companyId
|
|
12858
|
+
* @param {*} [options] Override http request option.
|
|
12859
|
+
* @throws {RequiredError}
|
|
12860
|
+
*/
|
|
12861
|
+
getUrlRedirectBySource: async (from, companyId, options = {}) => {
|
|
12862
|
+
// verify required parameter 'from' is not null or undefined
|
|
12863
|
+
(0, common_1.assertParamExists)('getUrlRedirectBySource', 'from', from);
|
|
12864
|
+
// verify required parameter 'companyId' is not null or undefined
|
|
12865
|
+
(0, common_1.assertParamExists)('getUrlRedirectBySource', 'companyId', companyId);
|
|
12866
|
+
const localVarPath = `/api/url-redirects/from`;
|
|
12867
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12868
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12869
|
+
let baseOptions;
|
|
12870
|
+
if (configuration) {
|
|
12871
|
+
baseOptions = configuration.baseOptions;
|
|
12872
|
+
}
|
|
12873
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
12874
|
+
const localVarHeaderParameter = {};
|
|
12875
|
+
const localVarQueryParameter = {};
|
|
12876
|
+
if (from !== undefined) {
|
|
12877
|
+
localVarQueryParameter['from'] = from;
|
|
12878
|
+
}
|
|
12879
|
+
if (companyId !== undefined) {
|
|
12880
|
+
localVarQueryParameter['companyId'] = companyId;
|
|
12881
|
+
}
|
|
12882
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
12883
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12884
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
12885
|
+
return {
|
|
12886
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
12887
|
+
options: localVarRequestOptions,
|
|
12888
|
+
};
|
|
12889
|
+
},
|
|
12890
|
+
/**
|
|
12891
|
+
*
|
|
12892
|
+
* @param {string} company
|
|
12893
|
+
* @param {OrderEnum} [order]
|
|
12894
|
+
* @param {number} [page]
|
|
12895
|
+
* @param {number} [itemsPerPage]
|
|
12896
|
+
* @param {string} [search]
|
|
12897
|
+
* @param {string} [startDate]
|
|
12898
|
+
* @param {string} [endDate]
|
|
12899
|
+
* @param {GetUrlRedirectsDateFieldEnum} [dateField]
|
|
12900
|
+
* @param {string} [createdAt]
|
|
12901
|
+
* @param {GetUrlRedirectsSortEnum} [sort]
|
|
12902
|
+
* @param {*} [options] Override http request option.
|
|
12903
|
+
* @throws {RequiredError}
|
|
12904
|
+
*/
|
|
12905
|
+
getUrlRedirects: async (company, order, page, itemsPerPage, search, startDate, endDate, dateField, createdAt, sort, options = {}) => {
|
|
12906
|
+
// verify required parameter 'company' is not null or undefined
|
|
12907
|
+
(0, common_1.assertParamExists)('getUrlRedirects', 'company', company);
|
|
12908
|
+
const localVarPath = `/api/url-redirects`;
|
|
12909
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12910
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12911
|
+
let baseOptions;
|
|
12912
|
+
if (configuration) {
|
|
12913
|
+
baseOptions = configuration.baseOptions;
|
|
12914
|
+
}
|
|
12915
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
12916
|
+
const localVarHeaderParameter = {};
|
|
12917
|
+
const localVarQueryParameter = {};
|
|
12918
|
+
if (order !== undefined) {
|
|
12919
|
+
localVarQueryParameter['order'] = order;
|
|
12920
|
+
}
|
|
12921
|
+
if (page !== undefined) {
|
|
12922
|
+
localVarQueryParameter['page'] = page;
|
|
12923
|
+
}
|
|
12924
|
+
if (itemsPerPage !== undefined) {
|
|
12925
|
+
localVarQueryParameter['itemsPerPage'] = itemsPerPage;
|
|
12926
|
+
}
|
|
12927
|
+
if (search !== undefined) {
|
|
12928
|
+
localVarQueryParameter['search'] = search;
|
|
12929
|
+
}
|
|
12930
|
+
if (startDate !== undefined) {
|
|
12931
|
+
localVarQueryParameter['startDate'] = (startDate instanceof Date) ?
|
|
12932
|
+
startDate.toISOString() :
|
|
12933
|
+
startDate;
|
|
12934
|
+
}
|
|
12935
|
+
if (endDate !== undefined) {
|
|
12936
|
+
localVarQueryParameter['endDate'] = (endDate instanceof Date) ?
|
|
12937
|
+
endDate.toISOString() :
|
|
12938
|
+
endDate;
|
|
12939
|
+
}
|
|
12940
|
+
if (dateField !== undefined) {
|
|
12941
|
+
localVarQueryParameter['dateField'] = dateField;
|
|
12942
|
+
}
|
|
12943
|
+
if (company !== undefined) {
|
|
12944
|
+
localVarQueryParameter['company'] = company;
|
|
12945
|
+
}
|
|
12946
|
+
if (createdAt !== undefined) {
|
|
12947
|
+
localVarQueryParameter['createdAt'] = createdAt;
|
|
12948
|
+
}
|
|
12949
|
+
if (sort !== undefined) {
|
|
12950
|
+
localVarQueryParameter['sort'] = sort;
|
|
12951
|
+
}
|
|
12952
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
12953
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12954
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
12955
|
+
return {
|
|
12956
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
12957
|
+
options: localVarRequestOptions,
|
|
12958
|
+
};
|
|
12959
|
+
},
|
|
12960
|
+
/**
|
|
12961
|
+
*
|
|
12962
|
+
* @param {string} id
|
|
12963
|
+
* @param {IUrlRedirectPostRequest} iUrlRedirectPostRequest
|
|
12964
|
+
* @param {*} [options] Override http request option.
|
|
12965
|
+
* @throws {RequiredError}
|
|
12966
|
+
*/
|
|
12967
|
+
updateUrlRedirect: async (id, iUrlRedirectPostRequest, options = {}) => {
|
|
12968
|
+
// verify required parameter 'id' is not null or undefined
|
|
12969
|
+
(0, common_1.assertParamExists)('updateUrlRedirect', 'id', id);
|
|
12970
|
+
// verify required parameter 'iUrlRedirectPostRequest' is not null or undefined
|
|
12971
|
+
(0, common_1.assertParamExists)('updateUrlRedirect', 'iUrlRedirectPostRequest', iUrlRedirectPostRequest);
|
|
12972
|
+
const localVarPath = `/api/url-redirects/{id}`
|
|
12973
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
12974
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12975
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12976
|
+
let baseOptions;
|
|
12977
|
+
if (configuration) {
|
|
12978
|
+
baseOptions = configuration.baseOptions;
|
|
12979
|
+
}
|
|
12980
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options };
|
|
12981
|
+
const localVarHeaderParameter = {};
|
|
12982
|
+
const localVarQueryParameter = {};
|
|
12983
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
12984
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
12985
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12986
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
12987
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(iUrlRedirectPostRequest, localVarRequestOptions, configuration);
|
|
12988
|
+
return {
|
|
12989
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
12990
|
+
options: localVarRequestOptions,
|
|
12991
|
+
};
|
|
12992
|
+
},
|
|
12993
|
+
};
|
|
12994
|
+
};
|
|
12995
|
+
exports.UrlRedirectApiAxiosParamCreator = UrlRedirectApiAxiosParamCreator;
|
|
12996
|
+
/**
|
|
12997
|
+
* UrlRedirectApi - functional programming interface
|
|
12998
|
+
* @export
|
|
12999
|
+
*/
|
|
13000
|
+
const UrlRedirectApiFp = function (configuration) {
|
|
13001
|
+
const localVarAxiosParamCreator = (0, exports.UrlRedirectApiAxiosParamCreator)(configuration);
|
|
13002
|
+
return {
|
|
13003
|
+
/**
|
|
13004
|
+
*
|
|
13005
|
+
* @param {IUrlRedirectPostRequest} iUrlRedirectPostRequest
|
|
13006
|
+
* @param {*} [options] Override http request option.
|
|
13007
|
+
* @throws {RequiredError}
|
|
13008
|
+
*/
|
|
13009
|
+
async createUrlRedirect(iUrlRedirectPostRequest, options) {
|
|
13010
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createUrlRedirect(iUrlRedirectPostRequest, options);
|
|
13011
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
13012
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['UrlRedirectApi.createUrlRedirect']?.[localVarOperationServerIndex]?.url;
|
|
13013
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13014
|
+
},
|
|
13015
|
+
/**
|
|
13016
|
+
*
|
|
13017
|
+
* @param {string} id
|
|
13018
|
+
* @param {*} [options] Override http request option.
|
|
13019
|
+
* @throws {RequiredError}
|
|
13020
|
+
*/
|
|
13021
|
+
async deleteUrlRedirect(id, options) {
|
|
13022
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteUrlRedirect(id, options);
|
|
13023
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
13024
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['UrlRedirectApi.deleteUrlRedirect']?.[localVarOperationServerIndex]?.url;
|
|
13025
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13026
|
+
},
|
|
13027
|
+
/**
|
|
13028
|
+
*
|
|
13029
|
+
* @param {string} id
|
|
13030
|
+
* @param {*} [options] Override http request option.
|
|
13031
|
+
* @throws {RequiredError}
|
|
13032
|
+
*/
|
|
13033
|
+
async getUrlRedirectById(id, options) {
|
|
13034
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getUrlRedirectById(id, options);
|
|
13035
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
13036
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['UrlRedirectApi.getUrlRedirectById']?.[localVarOperationServerIndex]?.url;
|
|
13037
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13038
|
+
},
|
|
13039
|
+
/**
|
|
13040
|
+
*
|
|
13041
|
+
* @param {string} from
|
|
13042
|
+
* @param {string} companyId
|
|
13043
|
+
* @param {*} [options] Override http request option.
|
|
13044
|
+
* @throws {RequiredError}
|
|
13045
|
+
*/
|
|
13046
|
+
async getUrlRedirectBySource(from, companyId, options) {
|
|
13047
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getUrlRedirectBySource(from, companyId, options);
|
|
13048
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
13049
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['UrlRedirectApi.getUrlRedirectBySource']?.[localVarOperationServerIndex]?.url;
|
|
13050
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13051
|
+
},
|
|
13052
|
+
/**
|
|
13053
|
+
*
|
|
13054
|
+
* @param {string} company
|
|
13055
|
+
* @param {OrderEnum} [order]
|
|
13056
|
+
* @param {number} [page]
|
|
13057
|
+
* @param {number} [itemsPerPage]
|
|
13058
|
+
* @param {string} [search]
|
|
13059
|
+
* @param {string} [startDate]
|
|
13060
|
+
* @param {string} [endDate]
|
|
13061
|
+
* @param {GetUrlRedirectsDateFieldEnum} [dateField]
|
|
13062
|
+
* @param {string} [createdAt]
|
|
13063
|
+
* @param {GetUrlRedirectsSortEnum} [sort]
|
|
13064
|
+
* @param {*} [options] Override http request option.
|
|
13065
|
+
* @throws {RequiredError}
|
|
13066
|
+
*/
|
|
13067
|
+
async getUrlRedirects(company, order, page, itemsPerPage, search, startDate, endDate, dateField, createdAt, sort, options) {
|
|
13068
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getUrlRedirects(company, order, page, itemsPerPage, search, startDate, endDate, dateField, createdAt, sort, options);
|
|
13069
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
13070
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['UrlRedirectApi.getUrlRedirects']?.[localVarOperationServerIndex]?.url;
|
|
13071
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13072
|
+
},
|
|
13073
|
+
/**
|
|
13074
|
+
*
|
|
13075
|
+
* @param {string} id
|
|
13076
|
+
* @param {IUrlRedirectPostRequest} iUrlRedirectPostRequest
|
|
13077
|
+
* @param {*} [options] Override http request option.
|
|
13078
|
+
* @throws {RequiredError}
|
|
13079
|
+
*/
|
|
13080
|
+
async updateUrlRedirect(id, iUrlRedirectPostRequest, options) {
|
|
13081
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateUrlRedirect(id, iUrlRedirectPostRequest, options);
|
|
13082
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
13083
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['UrlRedirectApi.updateUrlRedirect']?.[localVarOperationServerIndex]?.url;
|
|
13084
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13085
|
+
},
|
|
13086
|
+
};
|
|
13087
|
+
};
|
|
13088
|
+
exports.UrlRedirectApiFp = UrlRedirectApiFp;
|
|
13089
|
+
/**
|
|
13090
|
+
* UrlRedirectApi - factory interface
|
|
13091
|
+
* @export
|
|
13092
|
+
*/
|
|
13093
|
+
const UrlRedirectApiFactory = function (configuration, basePath, axios) {
|
|
13094
|
+
const localVarFp = (0, exports.UrlRedirectApiFp)(configuration);
|
|
13095
|
+
return {
|
|
13096
|
+
/**
|
|
13097
|
+
*
|
|
13098
|
+
* @param {UrlRedirectApiCreateUrlRedirectRequest} requestParameters Request parameters.
|
|
13099
|
+
* @param {*} [options] Override http request option.
|
|
13100
|
+
* @throws {RequiredError}
|
|
13101
|
+
*/
|
|
13102
|
+
createUrlRedirect(requestParameters, options) {
|
|
13103
|
+
return localVarFp.createUrlRedirect(requestParameters.iUrlRedirectPostRequest, options).then((request) => request(axios, basePath));
|
|
13104
|
+
},
|
|
13105
|
+
/**
|
|
13106
|
+
*
|
|
13107
|
+
* @param {UrlRedirectApiDeleteUrlRedirectRequest} requestParameters Request parameters.
|
|
13108
|
+
* @param {*} [options] Override http request option.
|
|
13109
|
+
* @throws {RequiredError}
|
|
13110
|
+
*/
|
|
13111
|
+
deleteUrlRedirect(requestParameters, options) {
|
|
13112
|
+
return localVarFp.deleteUrlRedirect(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
13113
|
+
},
|
|
13114
|
+
/**
|
|
13115
|
+
*
|
|
13116
|
+
* @param {UrlRedirectApiGetUrlRedirectByIdRequest} requestParameters Request parameters.
|
|
13117
|
+
* @param {*} [options] Override http request option.
|
|
13118
|
+
* @throws {RequiredError}
|
|
13119
|
+
*/
|
|
13120
|
+
getUrlRedirectById(requestParameters, options) {
|
|
13121
|
+
return localVarFp.getUrlRedirectById(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
13122
|
+
},
|
|
13123
|
+
/**
|
|
13124
|
+
*
|
|
13125
|
+
* @param {UrlRedirectApiGetUrlRedirectBySourceRequest} requestParameters Request parameters.
|
|
13126
|
+
* @param {*} [options] Override http request option.
|
|
13127
|
+
* @throws {RequiredError}
|
|
13128
|
+
*/
|
|
13129
|
+
getUrlRedirectBySource(requestParameters, options) {
|
|
13130
|
+
return localVarFp.getUrlRedirectBySource(requestParameters.from, requestParameters.companyId, options).then((request) => request(axios, basePath));
|
|
13131
|
+
},
|
|
13132
|
+
/**
|
|
13133
|
+
*
|
|
13134
|
+
* @param {UrlRedirectApiGetUrlRedirectsRequest} requestParameters Request parameters.
|
|
13135
|
+
* @param {*} [options] Override http request option.
|
|
13136
|
+
* @throws {RequiredError}
|
|
13137
|
+
*/
|
|
13138
|
+
getUrlRedirects(requestParameters, options) {
|
|
13139
|
+
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));
|
|
13140
|
+
},
|
|
13141
|
+
/**
|
|
13142
|
+
*
|
|
13143
|
+
* @param {UrlRedirectApiUpdateUrlRedirectRequest} requestParameters Request parameters.
|
|
13144
|
+
* @param {*} [options] Override http request option.
|
|
13145
|
+
* @throws {RequiredError}
|
|
13146
|
+
*/
|
|
13147
|
+
updateUrlRedirect(requestParameters, options) {
|
|
13148
|
+
return localVarFp.updateUrlRedirect(requestParameters.id, requestParameters.iUrlRedirectPostRequest, options).then((request) => request(axios, basePath));
|
|
13149
|
+
},
|
|
13150
|
+
};
|
|
13151
|
+
};
|
|
13152
|
+
exports.UrlRedirectApiFactory = UrlRedirectApiFactory;
|
|
13153
|
+
/**
|
|
13154
|
+
* UrlRedirectApi - object-oriented interface
|
|
13155
|
+
* @export
|
|
13156
|
+
* @class UrlRedirectApi
|
|
13157
|
+
* @extends {BaseAPI}
|
|
13158
|
+
*/
|
|
13159
|
+
class UrlRedirectApi extends base_1.BaseAPI {
|
|
13160
|
+
/**
|
|
13161
|
+
*
|
|
13162
|
+
* @param {UrlRedirectApiCreateUrlRedirectRequest} requestParameters Request parameters.
|
|
13163
|
+
* @param {*} [options] Override http request option.
|
|
13164
|
+
* @throws {RequiredError}
|
|
13165
|
+
* @memberof UrlRedirectApi
|
|
13166
|
+
*/
|
|
13167
|
+
createUrlRedirect(requestParameters, options) {
|
|
13168
|
+
return (0, exports.UrlRedirectApiFp)(this.configuration).createUrlRedirect(requestParameters.iUrlRedirectPostRequest, options).then((request) => request(this.axios, this.basePath));
|
|
13169
|
+
}
|
|
13170
|
+
/**
|
|
13171
|
+
*
|
|
13172
|
+
* @param {UrlRedirectApiDeleteUrlRedirectRequest} requestParameters Request parameters.
|
|
13173
|
+
* @param {*} [options] Override http request option.
|
|
13174
|
+
* @throws {RequiredError}
|
|
13175
|
+
* @memberof UrlRedirectApi
|
|
13176
|
+
*/
|
|
13177
|
+
deleteUrlRedirect(requestParameters, options) {
|
|
13178
|
+
return (0, exports.UrlRedirectApiFp)(this.configuration).deleteUrlRedirect(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
13179
|
+
}
|
|
13180
|
+
/**
|
|
13181
|
+
*
|
|
13182
|
+
* @param {UrlRedirectApiGetUrlRedirectByIdRequest} requestParameters Request parameters.
|
|
13183
|
+
* @param {*} [options] Override http request option.
|
|
13184
|
+
* @throws {RequiredError}
|
|
13185
|
+
* @memberof UrlRedirectApi
|
|
13186
|
+
*/
|
|
13187
|
+
getUrlRedirectById(requestParameters, options) {
|
|
13188
|
+
return (0, exports.UrlRedirectApiFp)(this.configuration).getUrlRedirectById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
13189
|
+
}
|
|
13190
|
+
/**
|
|
13191
|
+
*
|
|
13192
|
+
* @param {UrlRedirectApiGetUrlRedirectBySourceRequest} requestParameters Request parameters.
|
|
13193
|
+
* @param {*} [options] Override http request option.
|
|
13194
|
+
* @throws {RequiredError}
|
|
13195
|
+
* @memberof UrlRedirectApi
|
|
13196
|
+
*/
|
|
13197
|
+
getUrlRedirectBySource(requestParameters, options) {
|
|
13198
|
+
return (0, exports.UrlRedirectApiFp)(this.configuration).getUrlRedirectBySource(requestParameters.from, requestParameters.companyId, options).then((request) => request(this.axios, this.basePath));
|
|
13199
|
+
}
|
|
13200
|
+
/**
|
|
13201
|
+
*
|
|
13202
|
+
* @param {UrlRedirectApiGetUrlRedirectsRequest} requestParameters Request parameters.
|
|
13203
|
+
* @param {*} [options] Override http request option.
|
|
13204
|
+
* @throws {RequiredError}
|
|
13205
|
+
* @memberof UrlRedirectApi
|
|
13206
|
+
*/
|
|
13207
|
+
getUrlRedirects(requestParameters, options) {
|
|
13208
|
+
return (0, exports.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));
|
|
13209
|
+
}
|
|
13210
|
+
/**
|
|
13211
|
+
*
|
|
13212
|
+
* @param {UrlRedirectApiUpdateUrlRedirectRequest} requestParameters Request parameters.
|
|
13213
|
+
* @param {*} [options] Override http request option.
|
|
13214
|
+
* @throws {RequiredError}
|
|
13215
|
+
* @memberof UrlRedirectApi
|
|
13216
|
+
*/
|
|
13217
|
+
updateUrlRedirect(requestParameters, options) {
|
|
13218
|
+
return (0, exports.UrlRedirectApiFp)(this.configuration).updateUrlRedirect(requestParameters.id, requestParameters.iUrlRedirectPostRequest, options).then((request) => request(this.axios, this.basePath));
|
|
13219
|
+
}
|
|
13220
|
+
}
|
|
13221
|
+
exports.UrlRedirectApi = UrlRedirectApi;
|
|
13222
|
+
/**
|
|
13223
|
+
* @export
|
|
13224
|
+
*/
|
|
13225
|
+
exports.GetUrlRedirectsDateFieldEnum = {
|
|
13226
|
+
CREATED_AT: 'createdAt',
|
|
13227
|
+
UPDATED_AT: 'updatedAt'
|
|
13228
|
+
};
|
|
13229
|
+
/**
|
|
13230
|
+
* @export
|
|
13231
|
+
*/
|
|
13232
|
+
exports.GetUrlRedirectsSortEnum = {
|
|
13233
|
+
CREATED_AT: 'createdAt',
|
|
13234
|
+
FROM: 'from'
|
|
13235
|
+
};
|
|
12755
13236
|
/**
|
|
12756
13237
|
* UserApi - axios parameter creator
|
|
12757
13238
|
* @export
|