@infisale-client/api 1.3.17 → 1.3.19
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 +663 -196
- package/dist/api/api.js +417 -32
- package/dist/api/api.mjs +409 -28
- 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.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.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.
|
|
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 =
|
|
21
|
-
exports.
|
|
22
|
-
exports.GetUsersDateFieldEnum = exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.GetUniquePagesDateFieldEnum = void 0;
|
|
19
|
+
exports.PlanStatusEnum = 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.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.CompanyTypeEnum = exports.CompanyStatusEnum = void 0;
|
|
20
|
+
exports.FileApi = 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 = void 0;
|
|
21
|
+
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.GetNavigationsDateFieldEnum = exports.NavigationApi = exports.NavigationApiFactory = exports.NavigationApiFp = exports.NavigationApiAxiosParamCreator = exports.GetFilesDateFieldEnum = void 0;
|
|
22
|
+
exports.GetUsersDateFieldEnum = exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.GetUniquePagesDateFieldEnum = exports.UniquePageApi = exports.UniquePageApiFactory = exports.UniquePageApiFp = exports.UniquePageApiAxiosParamCreator = void 0;
|
|
23
23
|
const axios_1 = __importDefault(require("axios"));
|
|
24
24
|
// Some imports not used depending on template conditions
|
|
25
25
|
// @ts-ignore
|
|
@@ -57,34 +57,6 @@ exports.CompanyUserStatusEnum = {
|
|
|
57
57
|
UNEMPLOYED: 'unemployed',
|
|
58
58
|
DELETED: 'deleted'
|
|
59
59
|
};
|
|
60
|
-
/**
|
|
61
|
-
*
|
|
62
|
-
* @export
|
|
63
|
-
* @enum {string}
|
|
64
|
-
*/
|
|
65
|
-
exports.ComponentProductListTypeEnum = {
|
|
66
|
-
GRID: 'grid',
|
|
67
|
-
CAROUSEL: 'carousel'
|
|
68
|
-
};
|
|
69
|
-
/**
|
|
70
|
-
*
|
|
71
|
-
* @export
|
|
72
|
-
* @enum {string}
|
|
73
|
-
*/
|
|
74
|
-
exports.ComponentProductOrderEnum = {
|
|
75
|
-
NEWEST: 'newest',
|
|
76
|
-
BEST_SELLING: 'best_selling'
|
|
77
|
-
};
|
|
78
|
-
/**
|
|
79
|
-
*
|
|
80
|
-
* @export
|
|
81
|
-
* @enum {string}
|
|
82
|
-
*/
|
|
83
|
-
exports.ComponentProductTypeEnum = {
|
|
84
|
-
CATEGORY: 'category',
|
|
85
|
-
COLLECTION: 'collection',
|
|
86
|
-
BRAND: 'brand'
|
|
87
|
-
};
|
|
88
60
|
/**
|
|
89
61
|
*
|
|
90
62
|
* @export
|
|
@@ -451,6 +423,10 @@ exports.IMyOrderCollectionQueryParamsDateFieldEnum = {
|
|
|
451
423
|
CREATED_AT: 'createdAt',
|
|
452
424
|
UPDATED_AT: 'updatedAt'
|
|
453
425
|
};
|
|
426
|
+
exports.INavigationCollectionQueryParamsDateFieldEnum = {
|
|
427
|
+
CREATED_AT: 'createdAt',
|
|
428
|
+
UPDATED_AT: 'updatedAt'
|
|
429
|
+
};
|
|
454
430
|
exports.INotificationCollectionQueryParamsDateFieldEnum = {
|
|
455
431
|
CREATED_AT: 'createdAt',
|
|
456
432
|
UPDATED_AT: 'updatedAt'
|
|
@@ -504,6 +480,22 @@ exports.LanguageEnum = {
|
|
|
504
480
|
EN: 'en',
|
|
505
481
|
DE: 'de'
|
|
506
482
|
};
|
|
483
|
+
/**
|
|
484
|
+
*
|
|
485
|
+
* @export
|
|
486
|
+
* @enum {string}
|
|
487
|
+
*/
|
|
488
|
+
exports.NavigationLinkTypeEnum = {
|
|
489
|
+
BLOG_LINK: 'blog_link',
|
|
490
|
+
COLLECTION_LINK: 'collection_link',
|
|
491
|
+
CATEGORY_LINK: 'category_link',
|
|
492
|
+
CUSTOMER_ACCOUNT_PAGE_LINK: 'customer_account_page_link',
|
|
493
|
+
HTTP_LINK: 'http_link',
|
|
494
|
+
PAGE_LINK: 'page_link',
|
|
495
|
+
POLICY_LINK: 'policy_link',
|
|
496
|
+
PRODUCT_LINK: 'product_link',
|
|
497
|
+
UNIQUE_PAGE_LINK: 'unique_page_link'
|
|
498
|
+
};
|
|
507
499
|
exports.NavigationUrlTargetEnum = {
|
|
508
500
|
BLANK: '_blank'
|
|
509
501
|
};
|
|
@@ -7068,6 +7060,399 @@ exports.GetFilesDateFieldEnum = {
|
|
|
7068
7060
|
CREATED_AT: 'createdAt',
|
|
7069
7061
|
UPDATED_AT: 'updatedAt'
|
|
7070
7062
|
};
|
|
7063
|
+
/**
|
|
7064
|
+
* NavigationApi - axios parameter creator
|
|
7065
|
+
* @export
|
|
7066
|
+
*/
|
|
7067
|
+
const NavigationApiAxiosParamCreator = function (configuration) {
|
|
7068
|
+
return {
|
|
7069
|
+
/**
|
|
7070
|
+
*
|
|
7071
|
+
* @param {INavigationPostRequest} iNavigationPostRequest
|
|
7072
|
+
* @param {*} [options] Override http request option.
|
|
7073
|
+
* @throws {RequiredError}
|
|
7074
|
+
*/
|
|
7075
|
+
createNavigation: async (iNavigationPostRequest, options = {}) => {
|
|
7076
|
+
// verify required parameter 'iNavigationPostRequest' is not null or undefined
|
|
7077
|
+
(0, common_1.assertParamExists)('createNavigation', 'iNavigationPostRequest', iNavigationPostRequest);
|
|
7078
|
+
const localVarPath = `/api/navigations`;
|
|
7079
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7080
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7081
|
+
let baseOptions;
|
|
7082
|
+
if (configuration) {
|
|
7083
|
+
baseOptions = configuration.baseOptions;
|
|
7084
|
+
}
|
|
7085
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
7086
|
+
const localVarHeaderParameter = {};
|
|
7087
|
+
const localVarQueryParameter = {};
|
|
7088
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
7089
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7090
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7091
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
7092
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(iNavigationPostRequest, localVarRequestOptions, configuration);
|
|
7093
|
+
return {
|
|
7094
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
7095
|
+
options: localVarRequestOptions,
|
|
7096
|
+
};
|
|
7097
|
+
},
|
|
7098
|
+
/**
|
|
7099
|
+
*
|
|
7100
|
+
* @param {string} id
|
|
7101
|
+
* @param {*} [options] Override http request option.
|
|
7102
|
+
* @throws {RequiredError}
|
|
7103
|
+
*/
|
|
7104
|
+
deleteNavigation: async (id, options = {}) => {
|
|
7105
|
+
// verify required parameter 'id' is not null or undefined
|
|
7106
|
+
(0, common_1.assertParamExists)('deleteNavigation', 'id', id);
|
|
7107
|
+
const localVarPath = `/api/navigations/{id}`
|
|
7108
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
7109
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7110
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7111
|
+
let baseOptions;
|
|
7112
|
+
if (configuration) {
|
|
7113
|
+
baseOptions = configuration.baseOptions;
|
|
7114
|
+
}
|
|
7115
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
7116
|
+
const localVarHeaderParameter = {};
|
|
7117
|
+
const localVarQueryParameter = {};
|
|
7118
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7119
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7120
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
7121
|
+
return {
|
|
7122
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
7123
|
+
options: localVarRequestOptions,
|
|
7124
|
+
};
|
|
7125
|
+
},
|
|
7126
|
+
/**
|
|
7127
|
+
*
|
|
7128
|
+
* @param {string} id
|
|
7129
|
+
* @param {*} [options] Override http request option.
|
|
7130
|
+
* @throws {RequiredError}
|
|
7131
|
+
*/
|
|
7132
|
+
getNavigationById: async (id, options = {}) => {
|
|
7133
|
+
// verify required parameter 'id' is not null or undefined
|
|
7134
|
+
(0, common_1.assertParamExists)('getNavigationById', 'id', id);
|
|
7135
|
+
const localVarPath = `/api/navigations/{id}`
|
|
7136
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
7137
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7138
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7139
|
+
let baseOptions;
|
|
7140
|
+
if (configuration) {
|
|
7141
|
+
baseOptions = configuration.baseOptions;
|
|
7142
|
+
}
|
|
7143
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
7144
|
+
const localVarHeaderParameter = {};
|
|
7145
|
+
const localVarQueryParameter = {};
|
|
7146
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7147
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7148
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
7149
|
+
return {
|
|
7150
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
7151
|
+
options: localVarRequestOptions,
|
|
7152
|
+
};
|
|
7153
|
+
},
|
|
7154
|
+
/**
|
|
7155
|
+
*
|
|
7156
|
+
* @param {string} companyId
|
|
7157
|
+
* @param {number} [page]
|
|
7158
|
+
* @param {number} [itemsPerPage]
|
|
7159
|
+
* @param {string} [search]
|
|
7160
|
+
* @param {string} [startDate]
|
|
7161
|
+
* @param {string} [endDate]
|
|
7162
|
+
* @param {GetNavigationsDateFieldEnum} [dateField]
|
|
7163
|
+
* @param {OrderEnum} [order]
|
|
7164
|
+
* @param {string} [sort]
|
|
7165
|
+
* @param {*} [options] Override http request option.
|
|
7166
|
+
* @throws {RequiredError}
|
|
7167
|
+
*/
|
|
7168
|
+
getNavigations: async (companyId, page, itemsPerPage, search, startDate, endDate, dateField, order, sort, options = {}) => {
|
|
7169
|
+
// verify required parameter 'companyId' is not null or undefined
|
|
7170
|
+
(0, common_1.assertParamExists)('getNavigations', 'companyId', companyId);
|
|
7171
|
+
const localVarPath = `/api/navigations`;
|
|
7172
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7173
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7174
|
+
let baseOptions;
|
|
7175
|
+
if (configuration) {
|
|
7176
|
+
baseOptions = configuration.baseOptions;
|
|
7177
|
+
}
|
|
7178
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
7179
|
+
const localVarHeaderParameter = {};
|
|
7180
|
+
const localVarQueryParameter = {};
|
|
7181
|
+
if (page !== undefined) {
|
|
7182
|
+
localVarQueryParameter['page'] = page;
|
|
7183
|
+
}
|
|
7184
|
+
if (itemsPerPage !== undefined) {
|
|
7185
|
+
localVarQueryParameter['itemsPerPage'] = itemsPerPage;
|
|
7186
|
+
}
|
|
7187
|
+
if (search !== undefined) {
|
|
7188
|
+
localVarQueryParameter['search'] = search;
|
|
7189
|
+
}
|
|
7190
|
+
if (startDate !== undefined) {
|
|
7191
|
+
localVarQueryParameter['startDate'] = (startDate instanceof Date) ?
|
|
7192
|
+
startDate.toISOString() :
|
|
7193
|
+
startDate;
|
|
7194
|
+
}
|
|
7195
|
+
if (endDate !== undefined) {
|
|
7196
|
+
localVarQueryParameter['endDate'] = (endDate instanceof Date) ?
|
|
7197
|
+
endDate.toISOString() :
|
|
7198
|
+
endDate;
|
|
7199
|
+
}
|
|
7200
|
+
if (dateField !== undefined) {
|
|
7201
|
+
localVarQueryParameter['dateField'] = dateField;
|
|
7202
|
+
}
|
|
7203
|
+
if (order !== undefined) {
|
|
7204
|
+
localVarQueryParameter['order'] = order;
|
|
7205
|
+
}
|
|
7206
|
+
if (sort !== undefined) {
|
|
7207
|
+
localVarQueryParameter['sort'] = sort;
|
|
7208
|
+
}
|
|
7209
|
+
if (companyId !== undefined) {
|
|
7210
|
+
localVarQueryParameter['companyId'] = companyId;
|
|
7211
|
+
}
|
|
7212
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7213
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7214
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
7215
|
+
return {
|
|
7216
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
7217
|
+
options: localVarRequestOptions,
|
|
7218
|
+
};
|
|
7219
|
+
},
|
|
7220
|
+
/**
|
|
7221
|
+
*
|
|
7222
|
+
* @param {string} id
|
|
7223
|
+
* @param {INavigationPostRequest} iNavigationPostRequest
|
|
7224
|
+
* @param {*} [options] Override http request option.
|
|
7225
|
+
* @throws {RequiredError}
|
|
7226
|
+
*/
|
|
7227
|
+
patchNavigation: async (id, iNavigationPostRequest, options = {}) => {
|
|
7228
|
+
// verify required parameter 'id' is not null or undefined
|
|
7229
|
+
(0, common_1.assertParamExists)('patchNavigation', 'id', id);
|
|
7230
|
+
// verify required parameter 'iNavigationPostRequest' is not null or undefined
|
|
7231
|
+
(0, common_1.assertParamExists)('patchNavigation', 'iNavigationPostRequest', iNavigationPostRequest);
|
|
7232
|
+
const localVarPath = `/api/navigations/{id}`
|
|
7233
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
7234
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7235
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7236
|
+
let baseOptions;
|
|
7237
|
+
if (configuration) {
|
|
7238
|
+
baseOptions = configuration.baseOptions;
|
|
7239
|
+
}
|
|
7240
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options };
|
|
7241
|
+
const localVarHeaderParameter = {};
|
|
7242
|
+
const localVarQueryParameter = {};
|
|
7243
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
7244
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7245
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7246
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
7247
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(iNavigationPostRequest, localVarRequestOptions, configuration);
|
|
7248
|
+
return {
|
|
7249
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
7250
|
+
options: localVarRequestOptions,
|
|
7251
|
+
};
|
|
7252
|
+
},
|
|
7253
|
+
};
|
|
7254
|
+
};
|
|
7255
|
+
exports.NavigationApiAxiosParamCreator = NavigationApiAxiosParamCreator;
|
|
7256
|
+
/**
|
|
7257
|
+
* NavigationApi - functional programming interface
|
|
7258
|
+
* @export
|
|
7259
|
+
*/
|
|
7260
|
+
const NavigationApiFp = function (configuration) {
|
|
7261
|
+
const localVarAxiosParamCreator = (0, exports.NavigationApiAxiosParamCreator)(configuration);
|
|
7262
|
+
return {
|
|
7263
|
+
/**
|
|
7264
|
+
*
|
|
7265
|
+
* @param {INavigationPostRequest} iNavigationPostRequest
|
|
7266
|
+
* @param {*} [options] Override http request option.
|
|
7267
|
+
* @throws {RequiredError}
|
|
7268
|
+
*/
|
|
7269
|
+
async createNavigation(iNavigationPostRequest, options) {
|
|
7270
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createNavigation(iNavigationPostRequest, options);
|
|
7271
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
7272
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['NavigationApi.createNavigation']?.[localVarOperationServerIndex]?.url;
|
|
7273
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7274
|
+
},
|
|
7275
|
+
/**
|
|
7276
|
+
*
|
|
7277
|
+
* @param {string} id
|
|
7278
|
+
* @param {*} [options] Override http request option.
|
|
7279
|
+
* @throws {RequiredError}
|
|
7280
|
+
*/
|
|
7281
|
+
async deleteNavigation(id, options) {
|
|
7282
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteNavigation(id, options);
|
|
7283
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
7284
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['NavigationApi.deleteNavigation']?.[localVarOperationServerIndex]?.url;
|
|
7285
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7286
|
+
},
|
|
7287
|
+
/**
|
|
7288
|
+
*
|
|
7289
|
+
* @param {string} id
|
|
7290
|
+
* @param {*} [options] Override http request option.
|
|
7291
|
+
* @throws {RequiredError}
|
|
7292
|
+
*/
|
|
7293
|
+
async getNavigationById(id, options) {
|
|
7294
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getNavigationById(id, options);
|
|
7295
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
7296
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['NavigationApi.getNavigationById']?.[localVarOperationServerIndex]?.url;
|
|
7297
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7298
|
+
},
|
|
7299
|
+
/**
|
|
7300
|
+
*
|
|
7301
|
+
* @param {string} companyId
|
|
7302
|
+
* @param {number} [page]
|
|
7303
|
+
* @param {number} [itemsPerPage]
|
|
7304
|
+
* @param {string} [search]
|
|
7305
|
+
* @param {string} [startDate]
|
|
7306
|
+
* @param {string} [endDate]
|
|
7307
|
+
* @param {GetNavigationsDateFieldEnum} [dateField]
|
|
7308
|
+
* @param {OrderEnum} [order]
|
|
7309
|
+
* @param {string} [sort]
|
|
7310
|
+
* @param {*} [options] Override http request option.
|
|
7311
|
+
* @throws {RequiredError}
|
|
7312
|
+
*/
|
|
7313
|
+
async getNavigations(companyId, page, itemsPerPage, search, startDate, endDate, dateField, order, sort, options) {
|
|
7314
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getNavigations(companyId, page, itemsPerPage, search, startDate, endDate, dateField, order, sort, options);
|
|
7315
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
7316
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['NavigationApi.getNavigations']?.[localVarOperationServerIndex]?.url;
|
|
7317
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7318
|
+
},
|
|
7319
|
+
/**
|
|
7320
|
+
*
|
|
7321
|
+
* @param {string} id
|
|
7322
|
+
* @param {INavigationPostRequest} iNavigationPostRequest
|
|
7323
|
+
* @param {*} [options] Override http request option.
|
|
7324
|
+
* @throws {RequiredError}
|
|
7325
|
+
*/
|
|
7326
|
+
async patchNavigation(id, iNavigationPostRequest, options) {
|
|
7327
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.patchNavigation(id, iNavigationPostRequest, options);
|
|
7328
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
7329
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['NavigationApi.patchNavigation']?.[localVarOperationServerIndex]?.url;
|
|
7330
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7331
|
+
},
|
|
7332
|
+
};
|
|
7333
|
+
};
|
|
7334
|
+
exports.NavigationApiFp = NavigationApiFp;
|
|
7335
|
+
/**
|
|
7336
|
+
* NavigationApi - factory interface
|
|
7337
|
+
* @export
|
|
7338
|
+
*/
|
|
7339
|
+
const NavigationApiFactory = function (configuration, basePath, axios) {
|
|
7340
|
+
const localVarFp = (0, exports.NavigationApiFp)(configuration);
|
|
7341
|
+
return {
|
|
7342
|
+
/**
|
|
7343
|
+
*
|
|
7344
|
+
* @param {NavigationApiCreateNavigationRequest} requestParameters Request parameters.
|
|
7345
|
+
* @param {*} [options] Override http request option.
|
|
7346
|
+
* @throws {RequiredError}
|
|
7347
|
+
*/
|
|
7348
|
+
createNavigation(requestParameters, options) {
|
|
7349
|
+
return localVarFp.createNavigation(requestParameters.iNavigationPostRequest, options).then((request) => request(axios, basePath));
|
|
7350
|
+
},
|
|
7351
|
+
/**
|
|
7352
|
+
*
|
|
7353
|
+
* @param {NavigationApiDeleteNavigationRequest} requestParameters Request parameters.
|
|
7354
|
+
* @param {*} [options] Override http request option.
|
|
7355
|
+
* @throws {RequiredError}
|
|
7356
|
+
*/
|
|
7357
|
+
deleteNavigation(requestParameters, options) {
|
|
7358
|
+
return localVarFp.deleteNavigation(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
7359
|
+
},
|
|
7360
|
+
/**
|
|
7361
|
+
*
|
|
7362
|
+
* @param {NavigationApiGetNavigationByIdRequest} requestParameters Request parameters.
|
|
7363
|
+
* @param {*} [options] Override http request option.
|
|
7364
|
+
* @throws {RequiredError}
|
|
7365
|
+
*/
|
|
7366
|
+
getNavigationById(requestParameters, options) {
|
|
7367
|
+
return localVarFp.getNavigationById(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
7368
|
+
},
|
|
7369
|
+
/**
|
|
7370
|
+
*
|
|
7371
|
+
* @param {NavigationApiGetNavigationsRequest} requestParameters Request parameters.
|
|
7372
|
+
* @param {*} [options] Override http request option.
|
|
7373
|
+
* @throws {RequiredError}
|
|
7374
|
+
*/
|
|
7375
|
+
getNavigations(requestParameters, options) {
|
|
7376
|
+
return localVarFp.getNavigations(requestParameters.companyId, requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, options).then((request) => request(axios, basePath));
|
|
7377
|
+
},
|
|
7378
|
+
/**
|
|
7379
|
+
*
|
|
7380
|
+
* @param {NavigationApiPatchNavigationRequest} requestParameters Request parameters.
|
|
7381
|
+
* @param {*} [options] Override http request option.
|
|
7382
|
+
* @throws {RequiredError}
|
|
7383
|
+
*/
|
|
7384
|
+
patchNavigation(requestParameters, options) {
|
|
7385
|
+
return localVarFp.patchNavigation(requestParameters.id, requestParameters.iNavigationPostRequest, options).then((request) => request(axios, basePath));
|
|
7386
|
+
},
|
|
7387
|
+
};
|
|
7388
|
+
};
|
|
7389
|
+
exports.NavigationApiFactory = NavigationApiFactory;
|
|
7390
|
+
/**
|
|
7391
|
+
* NavigationApi - object-oriented interface
|
|
7392
|
+
* @export
|
|
7393
|
+
* @class NavigationApi
|
|
7394
|
+
* @extends {BaseAPI}
|
|
7395
|
+
*/
|
|
7396
|
+
class NavigationApi extends base_1.BaseAPI {
|
|
7397
|
+
/**
|
|
7398
|
+
*
|
|
7399
|
+
* @param {NavigationApiCreateNavigationRequest} requestParameters Request parameters.
|
|
7400
|
+
* @param {*} [options] Override http request option.
|
|
7401
|
+
* @throws {RequiredError}
|
|
7402
|
+
* @memberof NavigationApi
|
|
7403
|
+
*/
|
|
7404
|
+
createNavigation(requestParameters, options) {
|
|
7405
|
+
return (0, exports.NavigationApiFp)(this.configuration).createNavigation(requestParameters.iNavigationPostRequest, options).then((request) => request(this.axios, this.basePath));
|
|
7406
|
+
}
|
|
7407
|
+
/**
|
|
7408
|
+
*
|
|
7409
|
+
* @param {NavigationApiDeleteNavigationRequest} requestParameters Request parameters.
|
|
7410
|
+
* @param {*} [options] Override http request option.
|
|
7411
|
+
* @throws {RequiredError}
|
|
7412
|
+
* @memberof NavigationApi
|
|
7413
|
+
*/
|
|
7414
|
+
deleteNavigation(requestParameters, options) {
|
|
7415
|
+
return (0, exports.NavigationApiFp)(this.configuration).deleteNavigation(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
7416
|
+
}
|
|
7417
|
+
/**
|
|
7418
|
+
*
|
|
7419
|
+
* @param {NavigationApiGetNavigationByIdRequest} requestParameters Request parameters.
|
|
7420
|
+
* @param {*} [options] Override http request option.
|
|
7421
|
+
* @throws {RequiredError}
|
|
7422
|
+
* @memberof NavigationApi
|
|
7423
|
+
*/
|
|
7424
|
+
getNavigationById(requestParameters, options) {
|
|
7425
|
+
return (0, exports.NavigationApiFp)(this.configuration).getNavigationById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
7426
|
+
}
|
|
7427
|
+
/**
|
|
7428
|
+
*
|
|
7429
|
+
* @param {NavigationApiGetNavigationsRequest} requestParameters Request parameters.
|
|
7430
|
+
* @param {*} [options] Override http request option.
|
|
7431
|
+
* @throws {RequiredError}
|
|
7432
|
+
* @memberof NavigationApi
|
|
7433
|
+
*/
|
|
7434
|
+
getNavigations(requestParameters, options) {
|
|
7435
|
+
return (0, exports.NavigationApiFp)(this.configuration).getNavigations(requestParameters.companyId, requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, options).then((request) => request(this.axios, this.basePath));
|
|
7436
|
+
}
|
|
7437
|
+
/**
|
|
7438
|
+
*
|
|
7439
|
+
* @param {NavigationApiPatchNavigationRequest} requestParameters Request parameters.
|
|
7440
|
+
* @param {*} [options] Override http request option.
|
|
7441
|
+
* @throws {RequiredError}
|
|
7442
|
+
* @memberof NavigationApi
|
|
7443
|
+
*/
|
|
7444
|
+
patchNavigation(requestParameters, options) {
|
|
7445
|
+
return (0, exports.NavigationApiFp)(this.configuration).patchNavigation(requestParameters.id, requestParameters.iNavigationPostRequest, options).then((request) => request(this.axios, this.basePath));
|
|
7446
|
+
}
|
|
7447
|
+
}
|
|
7448
|
+
exports.NavigationApi = NavigationApi;
|
|
7449
|
+
/**
|
|
7450
|
+
* @export
|
|
7451
|
+
*/
|
|
7452
|
+
exports.GetNavigationsDateFieldEnum = {
|
|
7453
|
+
CREATED_AT: 'createdAt',
|
|
7454
|
+
UPDATED_AT: 'updatedAt'
|
|
7455
|
+
};
|
|
7071
7456
|
/**
|
|
7072
7457
|
* NotificationApi - axios parameter creator
|
|
7073
7458
|
* @export
|