@infisale-client/api 1.3.11 → 1.3.13
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 +642 -48
- package/dist/api/api.js +354 -70
- package/dist/api/api.mjs +346 -66
- 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 = void 0;
|
|
19
|
+
exports.PickICollectionQueryParamsExcludeKeyofICollectionQueryParamsSortDateFieldEnum = exports.PaymentStatusEnum = exports.PaymentMethodEnum = exports.PaymentGatewayEnum = exports.PageTypeEnum = exports.OrderStatusEnum = exports.OrderShippedStatusEnum = exports.OrderReturnStatusEnumWAITINGRETURN = exports.OrderReturnStatusEnumRETURNED = exports.OrderReturnStatusEnum = exports.OrderPaymentStatusEnum = exports.OrderEnum = exports.OperationStatusEnum = exports.NotificationStatusEnum = exports.NotificationMessageEnum = exports.NavigationUrlTargetEnum = exports.LanguageEnum = exports.IUserCollectionQueryParamsDateFieldEnum = exports.IUniqueCollectionQueryParamsDateFieldEnum = exports.IProductCollectionQueryParamsSortEnum = exports.IProductCollectionQueryParamsDateFieldEnum = exports.IPlanCollectionQueryParamsDateFieldEnum = exports.IPaymentPostRequestPeriodEnum = exports.IPageCollectionQueryParamsDateFieldEnum = exports.IOrderCollectionQueryParamsDateFieldEnum = exports.IOperationCollectionQueryParamsDateFieldEnum = exports.INotificationCollectionQueryParamsDateFieldEnum = 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.ComponentProductTypeEnum = exports.ComponentProductOrderEnum = exports.ComponentProductListTypeEnum = exports.CompanyUserStatusEnum = exports.CompanyTypeEnum = exports.CompanyStatusEnum = void 0;
|
|
20
|
+
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.TemplateTypeEnum = exports.SitemapTypeEnum = exports.ShippingPricingTypeEnum = exports.ReviewStatusEnum = exports.PlanTypeEnum = exports.PlanStatusEnum = exports.PlanCurrencyEnum = void 0;
|
|
21
|
+
exports.UniquePageApiFactory = exports.UniquePageApiFp = exports.UniquePageApiAxiosParamCreator = exports.ThemeApi = 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.GetFilesDateFieldEnum = exports.FileApi = exports.FileApiFactory = void 0;
|
|
22
|
+
exports.GetUsersDateFieldEnum = exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.GetUniquePagesDateFieldEnum = exports.UniquePageApi = void 0;
|
|
23
23
|
const axios_1 = __importDefault(require("axios"));
|
|
24
24
|
// Some imports not used depending on template conditions
|
|
25
25
|
// @ts-ignore
|
|
@@ -487,6 +487,10 @@ exports.IProductCollectionQueryParamsSortEnum = {
|
|
|
487
487
|
RATING: 'rating',
|
|
488
488
|
REVIEW_COUNT: 'reviewCount'
|
|
489
489
|
};
|
|
490
|
+
exports.IUniqueCollectionQueryParamsDateFieldEnum = {
|
|
491
|
+
CREATED_AT: 'createdAt',
|
|
492
|
+
UPDATED_AT: 'updatedAt'
|
|
493
|
+
};
|
|
490
494
|
exports.IUserCollectionQueryParamsDateFieldEnum = {
|
|
491
495
|
CREATED_AT: 'createdAt',
|
|
492
496
|
UPDATED_AT: 'updatedAt'
|
|
@@ -9393,36 +9397,6 @@ const PageApiAxiosParamCreator = function (configuration) {
|
|
|
9393
9397
|
options: localVarRequestOptions,
|
|
9394
9398
|
};
|
|
9395
9399
|
},
|
|
9396
|
-
/**
|
|
9397
|
-
*
|
|
9398
|
-
* @param {string} companyId
|
|
9399
|
-
* @param {*} [options] Override http request option.
|
|
9400
|
-
* @throws {RequiredError}
|
|
9401
|
-
*/
|
|
9402
|
-
getUniquePages: async (companyId, options = {}) => {
|
|
9403
|
-
// verify required parameter 'companyId' is not null or undefined
|
|
9404
|
-
(0, common_1.assertParamExists)('getUniquePages', 'companyId', companyId);
|
|
9405
|
-
const localVarPath = `/api/pages/get/uniques`;
|
|
9406
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9407
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
9408
|
-
let baseOptions;
|
|
9409
|
-
if (configuration) {
|
|
9410
|
-
baseOptions = configuration.baseOptions;
|
|
9411
|
-
}
|
|
9412
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
9413
|
-
const localVarHeaderParameter = {};
|
|
9414
|
-
const localVarQueryParameter = {};
|
|
9415
|
-
if (companyId !== undefined) {
|
|
9416
|
-
localVarQueryParameter['companyId'] = companyId;
|
|
9417
|
-
}
|
|
9418
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
9419
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9420
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
9421
|
-
return {
|
|
9422
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
9423
|
-
options: localVarRequestOptions,
|
|
9424
|
-
};
|
|
9425
|
-
},
|
|
9426
9400
|
/**
|
|
9427
9401
|
*
|
|
9428
9402
|
* @param {string} id
|
|
@@ -9570,18 +9544,6 @@ const PageApiFp = function (configuration) {
|
|
|
9570
9544
|
const localVarOperationServerBasePath = base_1.operationServerMap['PageApi.getPages']?.[localVarOperationServerIndex]?.url;
|
|
9571
9545
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9572
9546
|
},
|
|
9573
|
-
/**
|
|
9574
|
-
*
|
|
9575
|
-
* @param {string} companyId
|
|
9576
|
-
* @param {*} [options] Override http request option.
|
|
9577
|
-
* @throws {RequiredError}
|
|
9578
|
-
*/
|
|
9579
|
-
async getUniquePages(companyId, options) {
|
|
9580
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getUniquePages(companyId, options);
|
|
9581
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
9582
|
-
const localVarOperationServerBasePath = base_1.operationServerMap['PageApi.getUniquePages']?.[localVarOperationServerIndex]?.url;
|
|
9583
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9584
|
-
},
|
|
9585
9547
|
/**
|
|
9586
9548
|
*
|
|
9587
9549
|
* @param {string} id
|
|
@@ -9668,15 +9630,6 @@ const PageApiFactory = function (configuration, basePath, axios) {
|
|
|
9668
9630
|
getPages(requestParameters = {}, options) {
|
|
9669
9631
|
return localVarFp.getPages(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.companyId, requestParameters.domain, requestParameters.type, requestParameters.status, options).then((request) => request(axios, basePath));
|
|
9670
9632
|
},
|
|
9671
|
-
/**
|
|
9672
|
-
*
|
|
9673
|
-
* @param {PageApiGetUniquePagesRequest} requestParameters Request parameters.
|
|
9674
|
-
* @param {*} [options] Override http request option.
|
|
9675
|
-
* @throws {RequiredError}
|
|
9676
|
-
*/
|
|
9677
|
-
getUniquePages(requestParameters, options) {
|
|
9678
|
-
return localVarFp.getUniquePages(requestParameters.companyId, options).then((request) => request(axios, basePath));
|
|
9679
|
-
},
|
|
9680
9633
|
/**
|
|
9681
9634
|
*
|
|
9682
9635
|
* @param {PageApiUpdatePageRequest} requestParameters Request parameters.
|
|
@@ -9766,16 +9719,6 @@ class PageApi extends base_1.BaseAPI {
|
|
|
9766
9719
|
getPages(requestParameters = {}, options) {
|
|
9767
9720
|
return (0, exports.PageApiFp)(this.configuration).getPages(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.companyId, requestParameters.domain, requestParameters.type, requestParameters.status, options).then((request) => request(this.axios, this.basePath));
|
|
9768
9721
|
}
|
|
9769
|
-
/**
|
|
9770
|
-
*
|
|
9771
|
-
* @param {PageApiGetUniquePagesRequest} requestParameters Request parameters.
|
|
9772
|
-
* @param {*} [options] Override http request option.
|
|
9773
|
-
* @throws {RequiredError}
|
|
9774
|
-
* @memberof PageApi
|
|
9775
|
-
*/
|
|
9776
|
-
getUniquePages(requestParameters, options) {
|
|
9777
|
-
return (0, exports.PageApiFp)(this.configuration).getUniquePages(requestParameters.companyId, options).then((request) => request(this.axios, this.basePath));
|
|
9778
|
-
}
|
|
9779
9722
|
/**
|
|
9780
9723
|
*
|
|
9781
9724
|
* @param {PageApiUpdatePageRequest} requestParameters Request parameters.
|
|
@@ -11161,10 +11104,11 @@ const TemplateApiAxiosParamCreator = function (configuration) {
|
|
|
11161
11104
|
* @param {TemplateTypeEnum} [type]
|
|
11162
11105
|
* @param {string} [search]
|
|
11163
11106
|
* @param {string} [theme]
|
|
11107
|
+
* @param {boolean} [unique]
|
|
11164
11108
|
* @param {*} [options] Override http request option.
|
|
11165
11109
|
* @throws {RequiredError}
|
|
11166
11110
|
*/
|
|
11167
|
-
getTemplates: async (companyId, type, search, theme, options = {}) => {
|
|
11111
|
+
getTemplates: async (companyId, type, search, theme, unique, options = {}) => {
|
|
11168
11112
|
// verify required parameter 'companyId' is not null or undefined
|
|
11169
11113
|
(0, common_1.assertParamExists)('getTemplates', 'companyId', companyId);
|
|
11170
11114
|
const localVarPath = `/api/templates`;
|
|
@@ -11189,6 +11133,9 @@ const TemplateApiAxiosParamCreator = function (configuration) {
|
|
|
11189
11133
|
if (theme !== undefined) {
|
|
11190
11134
|
localVarQueryParameter['theme'] = theme;
|
|
11191
11135
|
}
|
|
11136
|
+
if (unique !== undefined) {
|
|
11137
|
+
localVarQueryParameter['unique'] = unique;
|
|
11138
|
+
}
|
|
11192
11139
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
11193
11140
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11194
11141
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -11270,11 +11217,12 @@ const TemplateApiFp = function (configuration) {
|
|
|
11270
11217
|
* @param {TemplateTypeEnum} [type]
|
|
11271
11218
|
* @param {string} [search]
|
|
11272
11219
|
* @param {string} [theme]
|
|
11220
|
+
* @param {boolean} [unique]
|
|
11273
11221
|
* @param {*} [options] Override http request option.
|
|
11274
11222
|
* @throws {RequiredError}
|
|
11275
11223
|
*/
|
|
11276
|
-
async getTemplates(companyId, type, search, theme, options) {
|
|
11277
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getTemplates(companyId, type, search, theme, options);
|
|
11224
|
+
async getTemplates(companyId, type, search, theme, unique, options) {
|
|
11225
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getTemplates(companyId, type, search, theme, unique, options);
|
|
11278
11226
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
11279
11227
|
const localVarOperationServerBasePath = base_1.operationServerMap['TemplateApi.getTemplates']?.[localVarOperationServerIndex]?.url;
|
|
11280
11228
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -11327,7 +11275,7 @@ const TemplateApiFactory = function (configuration, basePath, axios) {
|
|
|
11327
11275
|
* @throws {RequiredError}
|
|
11328
11276
|
*/
|
|
11329
11277
|
getTemplates(requestParameters, options) {
|
|
11330
|
-
return localVarFp.getTemplates(requestParameters.companyId, requestParameters.type, requestParameters.search, requestParameters.theme, options).then((request) => request(axios, basePath));
|
|
11278
|
+
return localVarFp.getTemplates(requestParameters.companyId, requestParameters.type, requestParameters.search, requestParameters.theme, requestParameters.unique, options).then((request) => request(axios, basePath));
|
|
11331
11279
|
},
|
|
11332
11280
|
/**
|
|
11333
11281
|
*
|
|
@@ -11376,7 +11324,7 @@ class TemplateApi extends base_1.BaseAPI {
|
|
|
11376
11324
|
* @memberof TemplateApi
|
|
11377
11325
|
*/
|
|
11378
11326
|
getTemplates(requestParameters, options) {
|
|
11379
|
-
return (0, exports.TemplateApiFp)(this.configuration).getTemplates(requestParameters.companyId, requestParameters.type, requestParameters.search, requestParameters.theme, options).then((request) => request(this.axios, this.basePath));
|
|
11327
|
+
return (0, exports.TemplateApiFp)(this.configuration).getTemplates(requestParameters.companyId, requestParameters.type, requestParameters.search, requestParameters.theme, requestParameters.unique, options).then((request) => request(this.axios, this.basePath));
|
|
11380
11328
|
}
|
|
11381
11329
|
/**
|
|
11382
11330
|
*
|
|
@@ -11913,6 +11861,342 @@ class ThemeApi extends base_1.BaseAPI {
|
|
|
11913
11861
|
}
|
|
11914
11862
|
}
|
|
11915
11863
|
exports.ThemeApi = ThemeApi;
|
|
11864
|
+
/**
|
|
11865
|
+
* UniquePageApi - axios parameter creator
|
|
11866
|
+
* @export
|
|
11867
|
+
*/
|
|
11868
|
+
const UniquePageApiAxiosParamCreator = function (configuration) {
|
|
11869
|
+
return {
|
|
11870
|
+
/**
|
|
11871
|
+
*
|
|
11872
|
+
* @param {string} id
|
|
11873
|
+
* @param {*} [options] Override http request option.
|
|
11874
|
+
* @throws {RequiredError}
|
|
11875
|
+
*/
|
|
11876
|
+
getUniquePageById: async (id, options = {}) => {
|
|
11877
|
+
// verify required parameter 'id' is not null or undefined
|
|
11878
|
+
(0, common_1.assertParamExists)('getUniquePageById', 'id', id);
|
|
11879
|
+
const localVarPath = `/api/unique-pages/{id}`
|
|
11880
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
11881
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11882
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
11883
|
+
let baseOptions;
|
|
11884
|
+
if (configuration) {
|
|
11885
|
+
baseOptions = configuration.baseOptions;
|
|
11886
|
+
}
|
|
11887
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
11888
|
+
const localVarHeaderParameter = {};
|
|
11889
|
+
const localVarQueryParameter = {};
|
|
11890
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
11891
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11892
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
11893
|
+
return {
|
|
11894
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
11895
|
+
options: localVarRequestOptions,
|
|
11896
|
+
};
|
|
11897
|
+
},
|
|
11898
|
+
/**
|
|
11899
|
+
*
|
|
11900
|
+
* @param {string} type
|
|
11901
|
+
* @param {*} [options] Override http request option.
|
|
11902
|
+
* @throws {RequiredError}
|
|
11903
|
+
*/
|
|
11904
|
+
getUniquePageByType: async (type, options = {}) => {
|
|
11905
|
+
// verify required parameter 'type' is not null or undefined
|
|
11906
|
+
(0, common_1.assertParamExists)('getUniquePageByType', 'type', type);
|
|
11907
|
+
const localVarPath = `/api/unique-pages/type/{type}`
|
|
11908
|
+
.replace(`{${"type"}}`, encodeURIComponent(String(type)));
|
|
11909
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11910
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
11911
|
+
let baseOptions;
|
|
11912
|
+
if (configuration) {
|
|
11913
|
+
baseOptions = configuration.baseOptions;
|
|
11914
|
+
}
|
|
11915
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
11916
|
+
const localVarHeaderParameter = {};
|
|
11917
|
+
const localVarQueryParameter = {};
|
|
11918
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
11919
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11920
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
11921
|
+
return {
|
|
11922
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
11923
|
+
options: localVarRequestOptions,
|
|
11924
|
+
};
|
|
11925
|
+
},
|
|
11926
|
+
/**
|
|
11927
|
+
*
|
|
11928
|
+
* @param {number} [page]
|
|
11929
|
+
* @param {number} [itemsPerPage]
|
|
11930
|
+
* @param {string} [search]
|
|
11931
|
+
* @param {string} [startDate]
|
|
11932
|
+
* @param {string} [endDate]
|
|
11933
|
+
* @param {GetUniquePagesDateFieldEnum} [dateField]
|
|
11934
|
+
* @param {OrderEnum} [order]
|
|
11935
|
+
* @param {string} [sort]
|
|
11936
|
+
* @param {string} [companyId]
|
|
11937
|
+
* @param {string} [domain]
|
|
11938
|
+
* @param {*} [options] Override http request option.
|
|
11939
|
+
* @throws {RequiredError}
|
|
11940
|
+
*/
|
|
11941
|
+
getUniquePages: async (page, itemsPerPage, search, startDate, endDate, dateField, order, sort, companyId, domain, options = {}) => {
|
|
11942
|
+
const localVarPath = `/api/unique-pages`;
|
|
11943
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11944
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
11945
|
+
let baseOptions;
|
|
11946
|
+
if (configuration) {
|
|
11947
|
+
baseOptions = configuration.baseOptions;
|
|
11948
|
+
}
|
|
11949
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
11950
|
+
const localVarHeaderParameter = {};
|
|
11951
|
+
const localVarQueryParameter = {};
|
|
11952
|
+
if (page !== undefined) {
|
|
11953
|
+
localVarQueryParameter['page'] = page;
|
|
11954
|
+
}
|
|
11955
|
+
if (itemsPerPage !== undefined) {
|
|
11956
|
+
localVarQueryParameter['itemsPerPage'] = itemsPerPage;
|
|
11957
|
+
}
|
|
11958
|
+
if (search !== undefined) {
|
|
11959
|
+
localVarQueryParameter['search'] = search;
|
|
11960
|
+
}
|
|
11961
|
+
if (startDate !== undefined) {
|
|
11962
|
+
localVarQueryParameter['startDate'] = (startDate instanceof Date) ?
|
|
11963
|
+
startDate.toISOString() :
|
|
11964
|
+
startDate;
|
|
11965
|
+
}
|
|
11966
|
+
if (endDate !== undefined) {
|
|
11967
|
+
localVarQueryParameter['endDate'] = (endDate instanceof Date) ?
|
|
11968
|
+
endDate.toISOString() :
|
|
11969
|
+
endDate;
|
|
11970
|
+
}
|
|
11971
|
+
if (dateField !== undefined) {
|
|
11972
|
+
localVarQueryParameter['dateField'] = dateField;
|
|
11973
|
+
}
|
|
11974
|
+
if (order !== undefined) {
|
|
11975
|
+
localVarQueryParameter['order'] = order;
|
|
11976
|
+
}
|
|
11977
|
+
if (sort !== undefined) {
|
|
11978
|
+
localVarQueryParameter['sort'] = sort;
|
|
11979
|
+
}
|
|
11980
|
+
if (companyId !== undefined) {
|
|
11981
|
+
localVarQueryParameter['companyId'] = companyId;
|
|
11982
|
+
}
|
|
11983
|
+
if (domain !== undefined) {
|
|
11984
|
+
localVarQueryParameter['domain'] = domain;
|
|
11985
|
+
}
|
|
11986
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
11987
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11988
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
11989
|
+
return {
|
|
11990
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
11991
|
+
options: localVarRequestOptions,
|
|
11992
|
+
};
|
|
11993
|
+
},
|
|
11994
|
+
/**
|
|
11995
|
+
*
|
|
11996
|
+
* @param {string} id
|
|
11997
|
+
* @param {IUniquePagePatchRequest} iUniquePagePatchRequest
|
|
11998
|
+
* @param {*} [options] Override http request option.
|
|
11999
|
+
* @throws {RequiredError}
|
|
12000
|
+
*/
|
|
12001
|
+
updateUniquePage: async (id, iUniquePagePatchRequest, options = {}) => {
|
|
12002
|
+
// verify required parameter 'id' is not null or undefined
|
|
12003
|
+
(0, common_1.assertParamExists)('updateUniquePage', 'id', id);
|
|
12004
|
+
// verify required parameter 'iUniquePagePatchRequest' is not null or undefined
|
|
12005
|
+
(0, common_1.assertParamExists)('updateUniquePage', 'iUniquePagePatchRequest', iUniquePagePatchRequest);
|
|
12006
|
+
const localVarPath = `/api/unique-pages/{id}`
|
|
12007
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
12008
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12009
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12010
|
+
let baseOptions;
|
|
12011
|
+
if (configuration) {
|
|
12012
|
+
baseOptions = configuration.baseOptions;
|
|
12013
|
+
}
|
|
12014
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options };
|
|
12015
|
+
const localVarHeaderParameter = {};
|
|
12016
|
+
const localVarQueryParameter = {};
|
|
12017
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
12018
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
12019
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12020
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
12021
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(iUniquePagePatchRequest, localVarRequestOptions, configuration);
|
|
12022
|
+
return {
|
|
12023
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
12024
|
+
options: localVarRequestOptions,
|
|
12025
|
+
};
|
|
12026
|
+
},
|
|
12027
|
+
};
|
|
12028
|
+
};
|
|
12029
|
+
exports.UniquePageApiAxiosParamCreator = UniquePageApiAxiosParamCreator;
|
|
12030
|
+
/**
|
|
12031
|
+
* UniquePageApi - functional programming interface
|
|
12032
|
+
* @export
|
|
12033
|
+
*/
|
|
12034
|
+
const UniquePageApiFp = function (configuration) {
|
|
12035
|
+
const localVarAxiosParamCreator = (0, exports.UniquePageApiAxiosParamCreator)(configuration);
|
|
12036
|
+
return {
|
|
12037
|
+
/**
|
|
12038
|
+
*
|
|
12039
|
+
* @param {string} id
|
|
12040
|
+
* @param {*} [options] Override http request option.
|
|
12041
|
+
* @throws {RequiredError}
|
|
12042
|
+
*/
|
|
12043
|
+
async getUniquePageById(id, options) {
|
|
12044
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getUniquePageById(id, options);
|
|
12045
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
12046
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['UniquePageApi.getUniquePageById']?.[localVarOperationServerIndex]?.url;
|
|
12047
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12048
|
+
},
|
|
12049
|
+
/**
|
|
12050
|
+
*
|
|
12051
|
+
* @param {string} type
|
|
12052
|
+
* @param {*} [options] Override http request option.
|
|
12053
|
+
* @throws {RequiredError}
|
|
12054
|
+
*/
|
|
12055
|
+
async getUniquePageByType(type, options) {
|
|
12056
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getUniquePageByType(type, options);
|
|
12057
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
12058
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['UniquePageApi.getUniquePageByType']?.[localVarOperationServerIndex]?.url;
|
|
12059
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12060
|
+
},
|
|
12061
|
+
/**
|
|
12062
|
+
*
|
|
12063
|
+
* @param {number} [page]
|
|
12064
|
+
* @param {number} [itemsPerPage]
|
|
12065
|
+
* @param {string} [search]
|
|
12066
|
+
* @param {string} [startDate]
|
|
12067
|
+
* @param {string} [endDate]
|
|
12068
|
+
* @param {GetUniquePagesDateFieldEnum} [dateField]
|
|
12069
|
+
* @param {OrderEnum} [order]
|
|
12070
|
+
* @param {string} [sort]
|
|
12071
|
+
* @param {string} [companyId]
|
|
12072
|
+
* @param {string} [domain]
|
|
12073
|
+
* @param {*} [options] Override http request option.
|
|
12074
|
+
* @throws {RequiredError}
|
|
12075
|
+
*/
|
|
12076
|
+
async getUniquePages(page, itemsPerPage, search, startDate, endDate, dateField, order, sort, companyId, domain, options) {
|
|
12077
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getUniquePages(page, itemsPerPage, search, startDate, endDate, dateField, order, sort, companyId, domain, options);
|
|
12078
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
12079
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['UniquePageApi.getUniquePages']?.[localVarOperationServerIndex]?.url;
|
|
12080
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12081
|
+
},
|
|
12082
|
+
/**
|
|
12083
|
+
*
|
|
12084
|
+
* @param {string} id
|
|
12085
|
+
* @param {IUniquePagePatchRequest} iUniquePagePatchRequest
|
|
12086
|
+
* @param {*} [options] Override http request option.
|
|
12087
|
+
* @throws {RequiredError}
|
|
12088
|
+
*/
|
|
12089
|
+
async updateUniquePage(id, iUniquePagePatchRequest, options) {
|
|
12090
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateUniquePage(id, iUniquePagePatchRequest, options);
|
|
12091
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
12092
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['UniquePageApi.updateUniquePage']?.[localVarOperationServerIndex]?.url;
|
|
12093
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12094
|
+
},
|
|
12095
|
+
};
|
|
12096
|
+
};
|
|
12097
|
+
exports.UniquePageApiFp = UniquePageApiFp;
|
|
12098
|
+
/**
|
|
12099
|
+
* UniquePageApi - factory interface
|
|
12100
|
+
* @export
|
|
12101
|
+
*/
|
|
12102
|
+
const UniquePageApiFactory = function (configuration, basePath, axios) {
|
|
12103
|
+
const localVarFp = (0, exports.UniquePageApiFp)(configuration);
|
|
12104
|
+
return {
|
|
12105
|
+
/**
|
|
12106
|
+
*
|
|
12107
|
+
* @param {UniquePageApiGetUniquePageByIdRequest} requestParameters Request parameters.
|
|
12108
|
+
* @param {*} [options] Override http request option.
|
|
12109
|
+
* @throws {RequiredError}
|
|
12110
|
+
*/
|
|
12111
|
+
getUniquePageById(requestParameters, options) {
|
|
12112
|
+
return localVarFp.getUniquePageById(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
12113
|
+
},
|
|
12114
|
+
/**
|
|
12115
|
+
*
|
|
12116
|
+
* @param {UniquePageApiGetUniquePageByTypeRequest} requestParameters Request parameters.
|
|
12117
|
+
* @param {*} [options] Override http request option.
|
|
12118
|
+
* @throws {RequiredError}
|
|
12119
|
+
*/
|
|
12120
|
+
getUniquePageByType(requestParameters, options) {
|
|
12121
|
+
return localVarFp.getUniquePageByType(requestParameters.type, options).then((request) => request(axios, basePath));
|
|
12122
|
+
},
|
|
12123
|
+
/**
|
|
12124
|
+
*
|
|
12125
|
+
* @param {UniquePageApiGetUniquePagesRequest} requestParameters Request parameters.
|
|
12126
|
+
* @param {*} [options] Override http request option.
|
|
12127
|
+
* @throws {RequiredError}
|
|
12128
|
+
*/
|
|
12129
|
+
getUniquePages(requestParameters = {}, options) {
|
|
12130
|
+
return localVarFp.getUniquePages(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.companyId, requestParameters.domain, options).then((request) => request(axios, basePath));
|
|
12131
|
+
},
|
|
12132
|
+
/**
|
|
12133
|
+
*
|
|
12134
|
+
* @param {UniquePageApiUpdateUniquePageRequest} requestParameters Request parameters.
|
|
12135
|
+
* @param {*} [options] Override http request option.
|
|
12136
|
+
* @throws {RequiredError}
|
|
12137
|
+
*/
|
|
12138
|
+
updateUniquePage(requestParameters, options) {
|
|
12139
|
+
return localVarFp.updateUniquePage(requestParameters.id, requestParameters.iUniquePagePatchRequest, options).then((request) => request(axios, basePath));
|
|
12140
|
+
},
|
|
12141
|
+
};
|
|
12142
|
+
};
|
|
12143
|
+
exports.UniquePageApiFactory = UniquePageApiFactory;
|
|
12144
|
+
/**
|
|
12145
|
+
* UniquePageApi - object-oriented interface
|
|
12146
|
+
* @export
|
|
12147
|
+
* @class UniquePageApi
|
|
12148
|
+
* @extends {BaseAPI}
|
|
12149
|
+
*/
|
|
12150
|
+
class UniquePageApi extends base_1.BaseAPI {
|
|
12151
|
+
/**
|
|
12152
|
+
*
|
|
12153
|
+
* @param {UniquePageApiGetUniquePageByIdRequest} requestParameters Request parameters.
|
|
12154
|
+
* @param {*} [options] Override http request option.
|
|
12155
|
+
* @throws {RequiredError}
|
|
12156
|
+
* @memberof UniquePageApi
|
|
12157
|
+
*/
|
|
12158
|
+
getUniquePageById(requestParameters, options) {
|
|
12159
|
+
return (0, exports.UniquePageApiFp)(this.configuration).getUniquePageById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
12160
|
+
}
|
|
12161
|
+
/**
|
|
12162
|
+
*
|
|
12163
|
+
* @param {UniquePageApiGetUniquePageByTypeRequest} requestParameters Request parameters.
|
|
12164
|
+
* @param {*} [options] Override http request option.
|
|
12165
|
+
* @throws {RequiredError}
|
|
12166
|
+
* @memberof UniquePageApi
|
|
12167
|
+
*/
|
|
12168
|
+
getUniquePageByType(requestParameters, options) {
|
|
12169
|
+
return (0, exports.UniquePageApiFp)(this.configuration).getUniquePageByType(requestParameters.type, options).then((request) => request(this.axios, this.basePath));
|
|
12170
|
+
}
|
|
12171
|
+
/**
|
|
12172
|
+
*
|
|
12173
|
+
* @param {UniquePageApiGetUniquePagesRequest} requestParameters Request parameters.
|
|
12174
|
+
* @param {*} [options] Override http request option.
|
|
12175
|
+
* @throws {RequiredError}
|
|
12176
|
+
* @memberof UniquePageApi
|
|
12177
|
+
*/
|
|
12178
|
+
getUniquePages(requestParameters = {}, options) {
|
|
12179
|
+
return (0, exports.UniquePageApiFp)(this.configuration).getUniquePages(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.companyId, requestParameters.domain, options).then((request) => request(this.axios, this.basePath));
|
|
12180
|
+
}
|
|
12181
|
+
/**
|
|
12182
|
+
*
|
|
12183
|
+
* @param {UniquePageApiUpdateUniquePageRequest} requestParameters Request parameters.
|
|
12184
|
+
* @param {*} [options] Override http request option.
|
|
12185
|
+
* @throws {RequiredError}
|
|
12186
|
+
* @memberof UniquePageApi
|
|
12187
|
+
*/
|
|
12188
|
+
updateUniquePage(requestParameters, options) {
|
|
12189
|
+
return (0, exports.UniquePageApiFp)(this.configuration).updateUniquePage(requestParameters.id, requestParameters.iUniquePagePatchRequest, options).then((request) => request(this.axios, this.basePath));
|
|
12190
|
+
}
|
|
12191
|
+
}
|
|
12192
|
+
exports.UniquePageApi = UniquePageApi;
|
|
12193
|
+
/**
|
|
12194
|
+
* @export
|
|
12195
|
+
*/
|
|
12196
|
+
exports.GetUniquePagesDateFieldEnum = {
|
|
12197
|
+
CREATED_AT: 'createdAt',
|
|
12198
|
+
UPDATED_AT: 'updatedAt'
|
|
12199
|
+
};
|
|
11916
12200
|
/**
|
|
11917
12201
|
* UserApi - axios parameter creator
|
|
11918
12202
|
* @export
|