@infisale-client/api 1.3.30 → 1.3.32
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 +790 -579
- package/dist/api/api.js +315 -263
- package/dist/api/api.mjs +311 -259
- 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.PickICollectionQueryParamsExcludeKeyofICollectionQueryParamsSortDateFieldEnum = exports.
|
|
20
|
-
exports.
|
|
21
|
-
exports.
|
|
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 = exports.ThemeApiFactory = void 0;
|
|
19
|
+
exports.PickICollectionQueryParamsExcludeKeyofICollectionQueryParamsSortDateFieldEnum = 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.ISubscriptionPostRequestPeriodEnum = exports.IProductCollectionQueryParamsSortEnum = exports.IProductCollectionQueryParamsDateFieldEnum = exports.IPlanCollectionQueryParamsCategoryEnum = exports.IPlanCollectionQueryParamsDateFieldEnum = 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.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.SubscriptionStatusEnum = exports.SubscriptionPlanEnum = exports.StoreLocationEnum = exports.SitemapTypeEnum = exports.ShippingPricingTypeEnum = exports.ReviewStatusEnum = exports.PlanTypeEnum = exports.PlanStatusEnum = void 0;
|
|
21
|
+
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.GetPlansCategoryEnum = 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 = exports.FileApiFactory = exports.FileApiFp = 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 = exports.ThemeApiFactory = exports.ThemeApiFp = exports.ThemeApiAxiosParamCreator = void 0;
|
|
23
23
|
const axios_1 = __importDefault(require("axios"));
|
|
24
24
|
// Some imports not used depending on template conditions
|
|
25
25
|
// @ts-ignore
|
|
@@ -443,14 +443,15 @@ exports.IPageCollectionQueryParamsDateFieldEnum = {
|
|
|
443
443
|
CREATED_AT: 'createdAt',
|
|
444
444
|
UPDATED_AT: 'updatedAt'
|
|
445
445
|
};
|
|
446
|
-
exports.IPaymentPostRequestPeriodEnum = {
|
|
447
|
-
MONTHLY: 'monthly',
|
|
448
|
-
YEARLY: 'yearly'
|
|
449
|
-
};
|
|
450
446
|
exports.IPlanCollectionQueryParamsDateFieldEnum = {
|
|
451
447
|
CREATED_AT: 'createdAt',
|
|
452
448
|
UPDATED_AT: 'updatedAt'
|
|
453
449
|
};
|
|
450
|
+
exports.IPlanCollectionQueryParamsCategoryEnum = {
|
|
451
|
+
ADDON_BANDWIDTH: 'addon-bandwidth',
|
|
452
|
+
B2C: 'b2c',
|
|
453
|
+
CMS: 'cms'
|
|
454
|
+
};
|
|
454
455
|
exports.IProductCollectionQueryParamsDateFieldEnum = {
|
|
455
456
|
CREATED_AT: 'createdAt',
|
|
456
457
|
UPDATED_AT: 'updatedAt'
|
|
@@ -462,6 +463,10 @@ exports.IProductCollectionQueryParamsSortEnum = {
|
|
|
462
463
|
RATING: 'rating',
|
|
463
464
|
REVIEW_COUNT: 'reviewCount'
|
|
464
465
|
};
|
|
466
|
+
exports.ISubscriptionPostRequestPeriodEnum = {
|
|
467
|
+
MONTHLY: 'monthly',
|
|
468
|
+
YEARLY: 'yearly'
|
|
469
|
+
};
|
|
465
470
|
exports.IUniqueCollectionQueryParamsDateFieldEnum = {
|
|
466
471
|
CREATED_AT: 'createdAt',
|
|
467
472
|
UPDATED_AT: 'updatedAt'
|
|
@@ -624,30 +629,10 @@ exports.PaymentMethodEnum = {
|
|
|
624
629
|
CASH_ON_DELIVERY: 'cash_on_delivery',
|
|
625
630
|
CARD_ON_DELIVERY: 'card_on_delivery'
|
|
626
631
|
};
|
|
627
|
-
/**
|
|
628
|
-
*
|
|
629
|
-
* @export
|
|
630
|
-
* @enum {string}
|
|
631
|
-
*/
|
|
632
|
-
exports.PaymentStatusEnum = {
|
|
633
|
-
WAITING_APPROVAL: 'waiting_approval',
|
|
634
|
-
PAID: 'paid',
|
|
635
|
-
FAILED: 'failed'
|
|
636
|
-
};
|
|
637
632
|
exports.PickICollectionQueryParamsExcludeKeyofICollectionQueryParamsSortDateFieldEnum = {
|
|
638
633
|
CREATED_AT: 'createdAt',
|
|
639
634
|
UPDATED_AT: 'updatedAt'
|
|
640
635
|
};
|
|
641
|
-
/**
|
|
642
|
-
*
|
|
643
|
-
* @export
|
|
644
|
-
* @enum {string}
|
|
645
|
-
*/
|
|
646
|
-
exports.PlanCurrencyEnum = {
|
|
647
|
-
TRY: 'try',
|
|
648
|
-
EUR: 'eur',
|
|
649
|
-
USD: 'usd'
|
|
650
|
-
};
|
|
651
636
|
/**
|
|
652
637
|
*
|
|
653
638
|
* @export
|
|
@@ -664,12 +649,15 @@ exports.PlanStatusEnum = {
|
|
|
664
649
|
* @enum {string}
|
|
665
650
|
*/
|
|
666
651
|
exports.PlanTypeEnum = {
|
|
652
|
+
ADDON_BANDWIDTH: 'addon-bandwidth',
|
|
667
653
|
STANDARD_B2C: 'standard-b2c',
|
|
668
654
|
ADVANCED_B2C: 'advanced-b2c',
|
|
669
655
|
PREMIUM_B2C: 'premium-b2c',
|
|
656
|
+
ENTERPRISE_B2C: 'enterprise-b2c',
|
|
670
657
|
STANDARD_CMS: 'standard-cms',
|
|
671
658
|
ADVANCED_CMS: 'advanced-cms',
|
|
672
|
-
PREMIUM_CMS: 'premium-cms'
|
|
659
|
+
PREMIUM_CMS: 'premium-cms',
|
|
660
|
+
ENTERPRISE_CMS: 'enterprise-cms'
|
|
673
661
|
};
|
|
674
662
|
/**
|
|
675
663
|
*
|
|
@@ -698,7 +686,7 @@ exports.SitemapTypeEnum = {
|
|
|
698
686
|
PRODUCTS: 'products',
|
|
699
687
|
PAGES: 'pages',
|
|
700
688
|
COLLECTIONS: 'collections',
|
|
701
|
-
|
|
689
|
+
BLOGS: 'blogs',
|
|
702
690
|
UNIQUE_PAGES: 'unique-pages'
|
|
703
691
|
};
|
|
704
692
|
/**
|
|
@@ -710,6 +698,31 @@ exports.StoreLocationEnum = {
|
|
|
710
698
|
DE: 'DE',
|
|
711
699
|
TR: 'TR'
|
|
712
700
|
};
|
|
701
|
+
/**
|
|
702
|
+
*
|
|
703
|
+
* @export
|
|
704
|
+
* @enum {string}
|
|
705
|
+
*/
|
|
706
|
+
exports.SubscriptionPlanEnum = {
|
|
707
|
+
ADDON_BANDWIDTH: 'addon-bandwidth',
|
|
708
|
+
STANDARD_B2C: 'standard-b2c',
|
|
709
|
+
ADVANCED_B2C: 'advanced-b2c',
|
|
710
|
+
PREMIUM_B2C: 'premium-b2c',
|
|
711
|
+
STANDARD_CMS: 'standard-cms',
|
|
712
|
+
ADVANCED_CMS: 'advanced-cms',
|
|
713
|
+
PREMIUM_CMS: 'premium-cms'
|
|
714
|
+
};
|
|
715
|
+
/**
|
|
716
|
+
*
|
|
717
|
+
* @export
|
|
718
|
+
* @enum {string}
|
|
719
|
+
*/
|
|
720
|
+
exports.SubscriptionStatusEnum = {
|
|
721
|
+
ACTIVE: 'active',
|
|
722
|
+
CANCELED: 'canceled',
|
|
723
|
+
EXPIRED: 'expired',
|
|
724
|
+
PENDING: 'pending'
|
|
725
|
+
};
|
|
713
726
|
/**
|
|
714
727
|
*
|
|
715
728
|
* @export
|
|
@@ -3684,18 +3697,18 @@ const CompanyApiAxiosParamCreator = function (configuration) {
|
|
|
3684
3697
|
},
|
|
3685
3698
|
/**
|
|
3686
3699
|
*
|
|
3687
|
-
* @param {string}
|
|
3688
|
-
* @param {
|
|
3700
|
+
* @param {string} companyId
|
|
3701
|
+
* @param {ICompanyCreateLanguageRequest} iCompanyCreateLanguageRequest
|
|
3689
3702
|
* @param {*} [options] Override http request option.
|
|
3690
3703
|
* @throws {RequiredError}
|
|
3691
3704
|
*/
|
|
3692
|
-
|
|
3693
|
-
// verify required parameter '
|
|
3694
|
-
(0, common_1.assertParamExists)('
|
|
3695
|
-
// verify required parameter '
|
|
3696
|
-
(0, common_1.assertParamExists)('
|
|
3697
|
-
const localVarPath = `/api/companies/{
|
|
3698
|
-
.replace(`{${"
|
|
3705
|
+
createCompanyLanguage: async (companyId, iCompanyCreateLanguageRequest, options = {}) => {
|
|
3706
|
+
// verify required parameter 'companyId' is not null or undefined
|
|
3707
|
+
(0, common_1.assertParamExists)('createCompanyLanguage', 'companyId', companyId);
|
|
3708
|
+
// verify required parameter 'iCompanyCreateLanguageRequest' is not null or undefined
|
|
3709
|
+
(0, common_1.assertParamExists)('createCompanyLanguage', 'iCompanyCreateLanguageRequest', iCompanyCreateLanguageRequest);
|
|
3710
|
+
const localVarPath = `/api/companies/{companyId}/languages`
|
|
3711
|
+
.replace(`{${"companyId"}}`, encodeURIComponent(String(companyId)));
|
|
3699
3712
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3700
3713
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3701
3714
|
let baseOptions;
|
|
@@ -3709,7 +3722,7 @@ const CompanyApiAxiosParamCreator = function (configuration) {
|
|
|
3709
3722
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3710
3723
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3711
3724
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
3712
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
3725
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(iCompanyCreateLanguageRequest, localVarRequestOptions, configuration);
|
|
3713
3726
|
return {
|
|
3714
3727
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3715
3728
|
options: localVarRequestOptions,
|
|
@@ -3781,6 +3794,39 @@ const CompanyApiAxiosParamCreator = function (configuration) {
|
|
|
3781
3794
|
options: localVarRequestOptions,
|
|
3782
3795
|
};
|
|
3783
3796
|
},
|
|
3797
|
+
/**
|
|
3798
|
+
*
|
|
3799
|
+
* @param {string} id
|
|
3800
|
+
* @param {ISubscriptionPostRequest} iSubscriptionPostRequest
|
|
3801
|
+
* @param {*} [options] Override http request option.
|
|
3802
|
+
* @throws {RequiredError}
|
|
3803
|
+
*/
|
|
3804
|
+
createCompanySubscription: async (id, iSubscriptionPostRequest, options = {}) => {
|
|
3805
|
+
// verify required parameter 'id' is not null or undefined
|
|
3806
|
+
(0, common_1.assertParamExists)('createCompanySubscription', 'id', id);
|
|
3807
|
+
// verify required parameter 'iSubscriptionPostRequest' is not null or undefined
|
|
3808
|
+
(0, common_1.assertParamExists)('createCompanySubscription', 'iSubscriptionPostRequest', iSubscriptionPostRequest);
|
|
3809
|
+
const localVarPath = `/api/companies/{id}/subscriptions`
|
|
3810
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
3811
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3812
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3813
|
+
let baseOptions;
|
|
3814
|
+
if (configuration) {
|
|
3815
|
+
baseOptions = configuration.baseOptions;
|
|
3816
|
+
}
|
|
3817
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
3818
|
+
const localVarHeaderParameter = {};
|
|
3819
|
+
const localVarQueryParameter = {};
|
|
3820
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3821
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3822
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3823
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
3824
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(iSubscriptionPostRequest, localVarRequestOptions, configuration);
|
|
3825
|
+
return {
|
|
3826
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3827
|
+
options: localVarRequestOptions,
|
|
3828
|
+
};
|
|
3829
|
+
},
|
|
3784
3830
|
/**
|
|
3785
3831
|
*
|
|
3786
3832
|
* @param {string} id
|
|
@@ -4298,34 +4344,6 @@ const CompanyApiAxiosParamCreator = function (configuration) {
|
|
|
4298
4344
|
options: localVarRequestOptions,
|
|
4299
4345
|
};
|
|
4300
4346
|
},
|
|
4301
|
-
/**
|
|
4302
|
-
*
|
|
4303
|
-
* @param {string} id
|
|
4304
|
-
* @param {*} [options] Override http request option.
|
|
4305
|
-
* @throws {RequiredError}
|
|
4306
|
-
*/
|
|
4307
|
-
getCompanyMonthlyBandwidth: async (id, options = {}) => {
|
|
4308
|
-
// verify required parameter 'id' is not null or undefined
|
|
4309
|
-
(0, common_1.assertParamExists)('getCompanyMonthlyBandwidth', 'id', id);
|
|
4310
|
-
const localVarPath = `/api/companies/{id}/monthly-bandwidth`
|
|
4311
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
4312
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4313
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4314
|
-
let baseOptions;
|
|
4315
|
-
if (configuration) {
|
|
4316
|
-
baseOptions = configuration.baseOptions;
|
|
4317
|
-
}
|
|
4318
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
4319
|
-
const localVarHeaderParameter = {};
|
|
4320
|
-
const localVarQueryParameter = {};
|
|
4321
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4322
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4323
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
4324
|
-
return {
|
|
4325
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4326
|
-
options: localVarRequestOptions,
|
|
4327
|
-
};
|
|
4328
|
-
},
|
|
4329
4347
|
/**
|
|
4330
4348
|
*
|
|
4331
4349
|
* @param {string} id
|
|
@@ -4357,18 +4375,14 @@ const CompanyApiAxiosParamCreator = function (configuration) {
|
|
|
4357
4375
|
/**
|
|
4358
4376
|
*
|
|
4359
4377
|
* @param {string} id
|
|
4360
|
-
* @param {string} paymentId
|
|
4361
4378
|
* @param {*} [options] Override http request option.
|
|
4362
4379
|
* @throws {RequiredError}
|
|
4363
4380
|
*/
|
|
4364
|
-
|
|
4381
|
+
getCompanyPaymentGateways: async (id, options = {}) => {
|
|
4365
4382
|
// verify required parameter 'id' is not null or undefined
|
|
4366
|
-
(0, common_1.assertParamExists)('
|
|
4367
|
-
|
|
4368
|
-
|
|
4369
|
-
const localVarPath = `/api/companies/{id}/payments/{paymentId}`
|
|
4370
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
|
4371
|
-
.replace(`{${"paymentId"}}`, encodeURIComponent(String(paymentId)));
|
|
4383
|
+
(0, common_1.assertParamExists)('getCompanyPaymentGateways', 'id', id);
|
|
4384
|
+
const localVarPath = `/api/companies/{id}/payment-gateways`
|
|
4385
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
4372
4386
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4373
4387
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4374
4388
|
let baseOptions;
|
|
@@ -4389,13 +4403,14 @@ const CompanyApiAxiosParamCreator = function (configuration) {
|
|
|
4389
4403
|
/**
|
|
4390
4404
|
*
|
|
4391
4405
|
* @param {string} id
|
|
4406
|
+
* @param {ReviewStatusEnum} [status]
|
|
4392
4407
|
* @param {*} [options] Override http request option.
|
|
4393
4408
|
* @throws {RequiredError}
|
|
4394
4409
|
*/
|
|
4395
|
-
|
|
4410
|
+
getCompanyProductReviews: async (id, status, options = {}) => {
|
|
4396
4411
|
// verify required parameter 'id' is not null or undefined
|
|
4397
|
-
(0, common_1.assertParamExists)('
|
|
4398
|
-
const localVarPath = `/api/companies/{id}/
|
|
4412
|
+
(0, common_1.assertParamExists)('getCompanyProductReviews', 'id', id);
|
|
4413
|
+
const localVarPath = `/api/companies/{id}/reviews`
|
|
4399
4414
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
4400
4415
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4401
4416
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -4406,6 +4421,9 @@ const CompanyApiAxiosParamCreator = function (configuration) {
|
|
|
4406
4421
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
4407
4422
|
const localVarHeaderParameter = {};
|
|
4408
4423
|
const localVarQueryParameter = {};
|
|
4424
|
+
if (status !== undefined) {
|
|
4425
|
+
localVarQueryParameter['status'] = status;
|
|
4426
|
+
}
|
|
4409
4427
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4410
4428
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4411
4429
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -4417,15 +4435,14 @@ const CompanyApiAxiosParamCreator = function (configuration) {
|
|
|
4417
4435
|
/**
|
|
4418
4436
|
*
|
|
4419
4437
|
* @param {string} id
|
|
4420
|
-
* @param {
|
|
4421
|
-
* @param {number} [page]
|
|
4438
|
+
* @param {ReviewStatusEnum} [status]
|
|
4422
4439
|
* @param {*} [options] Override http request option.
|
|
4423
4440
|
* @throws {RequiredError}
|
|
4424
4441
|
*/
|
|
4425
|
-
|
|
4442
|
+
getCompanyReviewCount: async (id, status, options = {}) => {
|
|
4426
4443
|
// verify required parameter 'id' is not null or undefined
|
|
4427
|
-
(0, common_1.assertParamExists)('
|
|
4428
|
-
const localVarPath = `/api/companies/{id}/
|
|
4444
|
+
(0, common_1.assertParamExists)('getCompanyReviewCount', 'id', id);
|
|
4445
|
+
const localVarPath = `/api/companies/{id}/review-count`
|
|
4429
4446
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
4430
4447
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4431
4448
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -4436,11 +4453,8 @@ const CompanyApiAxiosParamCreator = function (configuration) {
|
|
|
4436
4453
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
4437
4454
|
const localVarHeaderParameter = {};
|
|
4438
4455
|
const localVarQueryParameter = {};
|
|
4439
|
-
if (
|
|
4440
|
-
localVarQueryParameter['
|
|
4441
|
-
}
|
|
4442
|
-
if (page !== undefined) {
|
|
4443
|
-
localVarQueryParameter['page'] = page;
|
|
4456
|
+
if (status !== undefined) {
|
|
4457
|
+
localVarQueryParameter['status'] = status;
|
|
4444
4458
|
}
|
|
4445
4459
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4446
4460
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -4453,15 +4467,18 @@ const CompanyApiAxiosParamCreator = function (configuration) {
|
|
|
4453
4467
|
/**
|
|
4454
4468
|
*
|
|
4455
4469
|
* @param {string} id
|
|
4456
|
-
* @param {
|
|
4470
|
+
* @param {string} paymentId
|
|
4457
4471
|
* @param {*} [options] Override http request option.
|
|
4458
4472
|
* @throws {RequiredError}
|
|
4459
4473
|
*/
|
|
4460
|
-
|
|
4474
|
+
getCompanySubscription: async (id, paymentId, options = {}) => {
|
|
4461
4475
|
// verify required parameter 'id' is not null or undefined
|
|
4462
|
-
(0, common_1.assertParamExists)('
|
|
4463
|
-
|
|
4464
|
-
|
|
4476
|
+
(0, common_1.assertParamExists)('getCompanySubscription', 'id', id);
|
|
4477
|
+
// verify required parameter 'paymentId' is not null or undefined
|
|
4478
|
+
(0, common_1.assertParamExists)('getCompanySubscription', 'paymentId', paymentId);
|
|
4479
|
+
const localVarPath = `/api/companies/{id}/subscriptions/{paymentId}`
|
|
4480
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
|
4481
|
+
.replace(`{${"paymentId"}}`, encodeURIComponent(String(paymentId)));
|
|
4465
4482
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4466
4483
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4467
4484
|
let baseOptions;
|
|
@@ -4471,9 +4488,6 @@ const CompanyApiAxiosParamCreator = function (configuration) {
|
|
|
4471
4488
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
4472
4489
|
const localVarHeaderParameter = {};
|
|
4473
4490
|
const localVarQueryParameter = {};
|
|
4474
|
-
if (status !== undefined) {
|
|
4475
|
-
localVarQueryParameter['status'] = status;
|
|
4476
|
-
}
|
|
4477
4491
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4478
4492
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4479
4493
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -4485,14 +4499,16 @@ const CompanyApiAxiosParamCreator = function (configuration) {
|
|
|
4485
4499
|
/**
|
|
4486
4500
|
*
|
|
4487
4501
|
* @param {string} id
|
|
4488
|
-
* @param {
|
|
4502
|
+
* @param {number} [page]
|
|
4503
|
+
* @param {number} [itemsPerPage]
|
|
4504
|
+
* @param {SubscriptionStatusEnum} [status]
|
|
4489
4505
|
* @param {*} [options] Override http request option.
|
|
4490
4506
|
* @throws {RequiredError}
|
|
4491
4507
|
*/
|
|
4492
|
-
|
|
4508
|
+
getCompanySubscriptions: async (id, page, itemsPerPage, status, options = {}) => {
|
|
4493
4509
|
// verify required parameter 'id' is not null or undefined
|
|
4494
|
-
(0, common_1.assertParamExists)('
|
|
4495
|
-
const localVarPath = `/api/companies/{id}/
|
|
4510
|
+
(0, common_1.assertParamExists)('getCompanySubscriptions', 'id', id);
|
|
4511
|
+
const localVarPath = `/api/companies/{id}/subscriptions`
|
|
4496
4512
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
4497
4513
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4498
4514
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -4503,6 +4519,12 @@ const CompanyApiAxiosParamCreator = function (configuration) {
|
|
|
4503
4519
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
4504
4520
|
const localVarHeaderParameter = {};
|
|
4505
4521
|
const localVarQueryParameter = {};
|
|
4522
|
+
if (page !== undefined) {
|
|
4523
|
+
localVarQueryParameter['page'] = page;
|
|
4524
|
+
}
|
|
4525
|
+
if (itemsPerPage !== undefined) {
|
|
4526
|
+
localVarQueryParameter['itemsPerPage'] = itemsPerPage;
|
|
4527
|
+
}
|
|
4506
4528
|
if (status !== undefined) {
|
|
4507
4529
|
localVarQueryParameter['status'] = status;
|
|
4508
4530
|
}
|
|
@@ -4639,6 +4661,38 @@ const CompanyApiAxiosParamCreator = function (configuration) {
|
|
|
4639
4661
|
options: localVarRequestOptions,
|
|
4640
4662
|
};
|
|
4641
4663
|
},
|
|
4664
|
+
/**
|
|
4665
|
+
*
|
|
4666
|
+
* @param {string} id
|
|
4667
|
+
* @param {LanguageEnum} language
|
|
4668
|
+
* @param {*} [options] Override http request option.
|
|
4669
|
+
* @throws {RequiredError}
|
|
4670
|
+
*/
|
|
4671
|
+
setDefaultCompanyLanguage: async (id, language, options = {}) => {
|
|
4672
|
+
// verify required parameter 'id' is not null or undefined
|
|
4673
|
+
(0, common_1.assertParamExists)('setDefaultCompanyLanguage', 'id', id);
|
|
4674
|
+
// verify required parameter 'language' is not null or undefined
|
|
4675
|
+
(0, common_1.assertParamExists)('setDefaultCompanyLanguage', 'language', language);
|
|
4676
|
+
const localVarPath = `/api/companies/{id}/languages/{language}/default`
|
|
4677
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
|
4678
|
+
.replace(`{${"language"}}`, encodeURIComponent(String(language)));
|
|
4679
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4680
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4681
|
+
let baseOptions;
|
|
4682
|
+
if (configuration) {
|
|
4683
|
+
baseOptions = configuration.baseOptions;
|
|
4684
|
+
}
|
|
4685
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options };
|
|
4686
|
+
const localVarHeaderParameter = {};
|
|
4687
|
+
const localVarQueryParameter = {};
|
|
4688
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4689
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4690
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
4691
|
+
return {
|
|
4692
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4693
|
+
options: localVarRequestOptions,
|
|
4694
|
+
};
|
|
4695
|
+
},
|
|
4642
4696
|
/**
|
|
4643
4697
|
*
|
|
4644
4698
|
* @param {string} id
|
|
@@ -5050,15 +5104,15 @@ const CompanyApiFp = function (configuration) {
|
|
|
5050
5104
|
},
|
|
5051
5105
|
/**
|
|
5052
5106
|
*
|
|
5053
|
-
* @param {string}
|
|
5054
|
-
* @param {
|
|
5107
|
+
* @param {string} companyId
|
|
5108
|
+
* @param {ICompanyCreateLanguageRequest} iCompanyCreateLanguageRequest
|
|
5055
5109
|
* @param {*} [options] Override http request option.
|
|
5056
5110
|
* @throws {RequiredError}
|
|
5057
5111
|
*/
|
|
5058
|
-
async
|
|
5059
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
5112
|
+
async createCompanyLanguage(companyId, iCompanyCreateLanguageRequest, options) {
|
|
5113
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createCompanyLanguage(companyId, iCompanyCreateLanguageRequest, options);
|
|
5060
5114
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5061
|
-
const localVarOperationServerBasePath = base_1.operationServerMap['CompanyApi.
|
|
5115
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['CompanyApi.createCompanyLanguage']?.[localVarOperationServerIndex]?.url;
|
|
5062
5116
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5063
5117
|
},
|
|
5064
5118
|
/**
|
|
@@ -5087,6 +5141,19 @@ const CompanyApiFp = function (configuration) {
|
|
|
5087
5141
|
const localVarOperationServerBasePath = base_1.operationServerMap['CompanyApi.createCompanyShippingProviders']?.[localVarOperationServerIndex]?.url;
|
|
5088
5142
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5089
5143
|
},
|
|
5144
|
+
/**
|
|
5145
|
+
*
|
|
5146
|
+
* @param {string} id
|
|
5147
|
+
* @param {ISubscriptionPostRequest} iSubscriptionPostRequest
|
|
5148
|
+
* @param {*} [options] Override http request option.
|
|
5149
|
+
* @throws {RequiredError}
|
|
5150
|
+
*/
|
|
5151
|
+
async createCompanySubscription(id, iSubscriptionPostRequest, options) {
|
|
5152
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createCompanySubscription(id, iSubscriptionPostRequest, options);
|
|
5153
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5154
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['CompanyApi.createCompanySubscription']?.[localVarOperationServerIndex]?.url;
|
|
5155
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5156
|
+
},
|
|
5090
5157
|
/**
|
|
5091
5158
|
*
|
|
5092
5159
|
* @param {string} id
|
|
@@ -5283,18 +5350,6 @@ const CompanyApiFp = function (configuration) {
|
|
|
5283
5350
|
const localVarOperationServerBasePath = base_1.operationServerMap['CompanyApi.getCompanyDashboard']?.[localVarOperationServerIndex]?.url;
|
|
5284
5351
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5285
5352
|
},
|
|
5286
|
-
/**
|
|
5287
|
-
*
|
|
5288
|
-
* @param {string} id
|
|
5289
|
-
* @param {*} [options] Override http request option.
|
|
5290
|
-
* @throws {RequiredError}
|
|
5291
|
-
*/
|
|
5292
|
-
async getCompanyMonthlyBandwidth(id, options) {
|
|
5293
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getCompanyMonthlyBandwidth(id, options);
|
|
5294
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5295
|
-
const localVarOperationServerBasePath = base_1.operationServerMap['CompanyApi.getCompanyMonthlyBandwidth']?.[localVarOperationServerIndex]?.url;
|
|
5296
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5297
|
-
},
|
|
5298
5353
|
/**
|
|
5299
5354
|
*
|
|
5300
5355
|
* @param {string} id
|
|
@@ -5310,66 +5365,67 @@ const CompanyApiFp = function (configuration) {
|
|
|
5310
5365
|
/**
|
|
5311
5366
|
*
|
|
5312
5367
|
* @param {string} id
|
|
5313
|
-
* @param {string} paymentId
|
|
5314
5368
|
* @param {*} [options] Override http request option.
|
|
5315
5369
|
* @throws {RequiredError}
|
|
5316
5370
|
*/
|
|
5317
|
-
async
|
|
5318
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
5371
|
+
async getCompanyPaymentGateways(id, options) {
|
|
5372
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getCompanyPaymentGateways(id, options);
|
|
5319
5373
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5320
|
-
const localVarOperationServerBasePath = base_1.operationServerMap['CompanyApi.
|
|
5374
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['CompanyApi.getCompanyPaymentGateways']?.[localVarOperationServerIndex]?.url;
|
|
5321
5375
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5322
5376
|
},
|
|
5323
5377
|
/**
|
|
5324
5378
|
*
|
|
5325
5379
|
* @param {string} id
|
|
5380
|
+
* @param {ReviewStatusEnum} [status]
|
|
5326
5381
|
* @param {*} [options] Override http request option.
|
|
5327
5382
|
* @throws {RequiredError}
|
|
5328
5383
|
*/
|
|
5329
|
-
async
|
|
5330
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
5384
|
+
async getCompanyProductReviews(id, status, options) {
|
|
5385
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getCompanyProductReviews(id, status, options);
|
|
5331
5386
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5332
|
-
const localVarOperationServerBasePath = base_1.operationServerMap['CompanyApi.
|
|
5387
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['CompanyApi.getCompanyProductReviews']?.[localVarOperationServerIndex]?.url;
|
|
5333
5388
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5334
5389
|
},
|
|
5335
5390
|
/**
|
|
5336
5391
|
*
|
|
5337
5392
|
* @param {string} id
|
|
5338
|
-
* @param {
|
|
5339
|
-
* @param {number} [page]
|
|
5393
|
+
* @param {ReviewStatusEnum} [status]
|
|
5340
5394
|
* @param {*} [options] Override http request option.
|
|
5341
5395
|
* @throws {RequiredError}
|
|
5342
5396
|
*/
|
|
5343
|
-
async
|
|
5344
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
5397
|
+
async getCompanyReviewCount(id, status, options) {
|
|
5398
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getCompanyReviewCount(id, status, options);
|
|
5345
5399
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5346
|
-
const localVarOperationServerBasePath = base_1.operationServerMap['CompanyApi.
|
|
5400
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['CompanyApi.getCompanyReviewCount']?.[localVarOperationServerIndex]?.url;
|
|
5347
5401
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5348
5402
|
},
|
|
5349
5403
|
/**
|
|
5350
5404
|
*
|
|
5351
5405
|
* @param {string} id
|
|
5352
|
-
* @param {
|
|
5406
|
+
* @param {string} paymentId
|
|
5353
5407
|
* @param {*} [options] Override http request option.
|
|
5354
5408
|
* @throws {RequiredError}
|
|
5355
5409
|
*/
|
|
5356
|
-
async
|
|
5357
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
5410
|
+
async getCompanySubscription(id, paymentId, options) {
|
|
5411
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getCompanySubscription(id, paymentId, options);
|
|
5358
5412
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5359
|
-
const localVarOperationServerBasePath = base_1.operationServerMap['CompanyApi.
|
|
5413
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['CompanyApi.getCompanySubscription']?.[localVarOperationServerIndex]?.url;
|
|
5360
5414
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5361
5415
|
},
|
|
5362
5416
|
/**
|
|
5363
5417
|
*
|
|
5364
5418
|
* @param {string} id
|
|
5365
|
-
* @param {
|
|
5419
|
+
* @param {number} [page]
|
|
5420
|
+
* @param {number} [itemsPerPage]
|
|
5421
|
+
* @param {SubscriptionStatusEnum} [status]
|
|
5366
5422
|
* @param {*} [options] Override http request option.
|
|
5367
5423
|
* @throws {RequiredError}
|
|
5368
5424
|
*/
|
|
5369
|
-
async
|
|
5370
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
5425
|
+
async getCompanySubscriptions(id, page, itemsPerPage, status, options) {
|
|
5426
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getCompanySubscriptions(id, page, itemsPerPage, status, options);
|
|
5371
5427
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5372
|
-
const localVarOperationServerBasePath = base_1.operationServerMap['CompanyApi.
|
|
5428
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['CompanyApi.getCompanySubscriptions']?.[localVarOperationServerIndex]?.url;
|
|
5373
5429
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5374
5430
|
},
|
|
5375
5431
|
/**
|
|
@@ -5423,6 +5479,19 @@ const CompanyApiFp = function (configuration) {
|
|
|
5423
5479
|
const localVarOperationServerBasePath = base_1.operationServerMap['CompanyApi.setCompanySenderEmail']?.[localVarOperationServerIndex]?.url;
|
|
5424
5480
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5425
5481
|
},
|
|
5482
|
+
/**
|
|
5483
|
+
*
|
|
5484
|
+
* @param {string} id
|
|
5485
|
+
* @param {LanguageEnum} language
|
|
5486
|
+
* @param {*} [options] Override http request option.
|
|
5487
|
+
* @throws {RequiredError}
|
|
5488
|
+
*/
|
|
5489
|
+
async setDefaultCompanyLanguage(id, language, options) {
|
|
5490
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.setDefaultCompanyLanguage(id, language, options);
|
|
5491
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5492
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['CompanyApi.setDefaultCompanyLanguage']?.[localVarOperationServerIndex]?.url;
|
|
5493
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5494
|
+
},
|
|
5426
5495
|
/**
|
|
5427
5496
|
*
|
|
5428
5497
|
* @param {string} id
|
|
@@ -5606,12 +5675,12 @@ const CompanyApiFactory = function (configuration, basePath, axios) {
|
|
|
5606
5675
|
},
|
|
5607
5676
|
/**
|
|
5608
5677
|
*
|
|
5609
|
-
* @param {
|
|
5678
|
+
* @param {CompanyApiCreateCompanyLanguageRequest} requestParameters Request parameters.
|
|
5610
5679
|
* @param {*} [options] Override http request option.
|
|
5611
5680
|
* @throws {RequiredError}
|
|
5612
5681
|
*/
|
|
5613
|
-
|
|
5614
|
-
return localVarFp.
|
|
5682
|
+
createCompanyLanguage(requestParameters, options) {
|
|
5683
|
+
return localVarFp.createCompanyLanguage(requestParameters.companyId, requestParameters.iCompanyCreateLanguageRequest, options).then((request) => request(axios, basePath));
|
|
5615
5684
|
},
|
|
5616
5685
|
/**
|
|
5617
5686
|
*
|
|
@@ -5631,6 +5700,15 @@ const CompanyApiFactory = function (configuration, basePath, axios) {
|
|
|
5631
5700
|
createCompanyShippingProviders(requestParameters, options) {
|
|
5632
5701
|
return localVarFp.createCompanyShippingProviders(requestParameters.id, requestParameters.iCompanyCreateShippingProvidersRequest, options).then((request) => request(axios, basePath));
|
|
5633
5702
|
},
|
|
5703
|
+
/**
|
|
5704
|
+
*
|
|
5705
|
+
* @param {CompanyApiCreateCompanySubscriptionRequest} requestParameters Request parameters.
|
|
5706
|
+
* @param {*} [options] Override http request option.
|
|
5707
|
+
* @throws {RequiredError}
|
|
5708
|
+
*/
|
|
5709
|
+
createCompanySubscription(requestParameters, options) {
|
|
5710
|
+
return localVarFp.createCompanySubscription(requestParameters.id, requestParameters.iSubscriptionPostRequest, options).then((request) => request(axios, basePath));
|
|
5711
|
+
},
|
|
5634
5712
|
/**
|
|
5635
5713
|
*
|
|
5636
5714
|
* @param {CompanyApiCreateCompanyWarehousesRequest} requestParameters Request parameters.
|
|
@@ -5757,15 +5835,6 @@ const CompanyApiFactory = function (configuration, basePath, axios) {
|
|
|
5757
5835
|
getCompanyDashboard(requestParameters, options) {
|
|
5758
5836
|
return localVarFp.getCompanyDashboard(requestParameters.id, requestParameters.start, requestParameters.end, options).then((request) => request(axios, basePath));
|
|
5759
5837
|
},
|
|
5760
|
-
/**
|
|
5761
|
-
*
|
|
5762
|
-
* @param {CompanyApiGetCompanyMonthlyBandwidthRequest} requestParameters Request parameters.
|
|
5763
|
-
* @param {*} [options] Override http request option.
|
|
5764
|
-
* @throws {RequiredError}
|
|
5765
|
-
*/
|
|
5766
|
-
getCompanyMonthlyBandwidth(requestParameters, options) {
|
|
5767
|
-
return localVarFp.getCompanyMonthlyBandwidth(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
5768
|
-
},
|
|
5769
5838
|
/**
|
|
5770
5839
|
*
|
|
5771
5840
|
* @param {CompanyApiGetCompanyOnboardingRequest} requestParameters Request parameters.
|
|
@@ -5777,48 +5846,48 @@ const CompanyApiFactory = function (configuration, basePath, axios) {
|
|
|
5777
5846
|
},
|
|
5778
5847
|
/**
|
|
5779
5848
|
*
|
|
5780
|
-
* @param {
|
|
5849
|
+
* @param {CompanyApiGetCompanyPaymentGatewaysRequest} requestParameters Request parameters.
|
|
5781
5850
|
* @param {*} [options] Override http request option.
|
|
5782
5851
|
* @throws {RequiredError}
|
|
5783
5852
|
*/
|
|
5784
|
-
|
|
5785
|
-
return localVarFp.
|
|
5853
|
+
getCompanyPaymentGateways(requestParameters, options) {
|
|
5854
|
+
return localVarFp.getCompanyPaymentGateways(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
5786
5855
|
},
|
|
5787
5856
|
/**
|
|
5788
5857
|
*
|
|
5789
|
-
* @param {
|
|
5858
|
+
* @param {CompanyApiGetCompanyProductReviewsRequest} requestParameters Request parameters.
|
|
5790
5859
|
* @param {*} [options] Override http request option.
|
|
5791
5860
|
* @throws {RequiredError}
|
|
5792
5861
|
*/
|
|
5793
|
-
|
|
5794
|
-
return localVarFp.
|
|
5862
|
+
getCompanyProductReviews(requestParameters, options) {
|
|
5863
|
+
return localVarFp.getCompanyProductReviews(requestParameters.id, requestParameters.status, options).then((request) => request(axios, basePath));
|
|
5795
5864
|
},
|
|
5796
5865
|
/**
|
|
5797
5866
|
*
|
|
5798
|
-
* @param {
|
|
5867
|
+
* @param {CompanyApiGetCompanyReviewCountRequest} requestParameters Request parameters.
|
|
5799
5868
|
* @param {*} [options] Override http request option.
|
|
5800
5869
|
* @throws {RequiredError}
|
|
5801
5870
|
*/
|
|
5802
|
-
|
|
5803
|
-
return localVarFp.
|
|
5871
|
+
getCompanyReviewCount(requestParameters, options) {
|
|
5872
|
+
return localVarFp.getCompanyReviewCount(requestParameters.id, requestParameters.status, options).then((request) => request(axios, basePath));
|
|
5804
5873
|
},
|
|
5805
5874
|
/**
|
|
5806
5875
|
*
|
|
5807
|
-
* @param {
|
|
5876
|
+
* @param {CompanyApiGetCompanySubscriptionRequest} requestParameters Request parameters.
|
|
5808
5877
|
* @param {*} [options] Override http request option.
|
|
5809
5878
|
* @throws {RequiredError}
|
|
5810
5879
|
*/
|
|
5811
|
-
|
|
5812
|
-
return localVarFp.
|
|
5880
|
+
getCompanySubscription(requestParameters, options) {
|
|
5881
|
+
return localVarFp.getCompanySubscription(requestParameters.id, requestParameters.paymentId, options).then((request) => request(axios, basePath));
|
|
5813
5882
|
},
|
|
5814
5883
|
/**
|
|
5815
5884
|
*
|
|
5816
|
-
* @param {
|
|
5885
|
+
* @param {CompanyApiGetCompanySubscriptionsRequest} requestParameters Request parameters.
|
|
5817
5886
|
* @param {*} [options] Override http request option.
|
|
5818
5887
|
* @throws {RequiredError}
|
|
5819
5888
|
*/
|
|
5820
|
-
|
|
5821
|
-
return localVarFp.
|
|
5889
|
+
getCompanySubscriptions(requestParameters, options) {
|
|
5890
|
+
return localVarFp.getCompanySubscriptions(requestParameters.id, requestParameters.page, requestParameters.itemsPerPage, requestParameters.status, options).then((request) => request(axios, basePath));
|
|
5822
5891
|
},
|
|
5823
5892
|
/**
|
|
5824
5893
|
*
|
|
@@ -5856,6 +5925,15 @@ const CompanyApiFactory = function (configuration, basePath, axios) {
|
|
|
5856
5925
|
setCompanySenderEmail(requestParameters, options) {
|
|
5857
5926
|
return localVarFp.setCompanySenderEmail(requestParameters.id, requestParameters.setCompanySenderEmailRequest, options).then((request) => request(axios, basePath));
|
|
5858
5927
|
},
|
|
5928
|
+
/**
|
|
5929
|
+
*
|
|
5930
|
+
* @param {CompanyApiSetDefaultCompanyLanguageRequest} requestParameters Request parameters.
|
|
5931
|
+
* @param {*} [options] Override http request option.
|
|
5932
|
+
* @throws {RequiredError}
|
|
5933
|
+
*/
|
|
5934
|
+
setDefaultCompanyLanguage(requestParameters, options) {
|
|
5935
|
+
return localVarFp.setDefaultCompanyLanguage(requestParameters.id, requestParameters.language, options).then((request) => request(axios, basePath));
|
|
5936
|
+
},
|
|
5859
5937
|
/**
|
|
5860
5938
|
*
|
|
5861
5939
|
* @param {CompanyApiUpdateCompanyRequest} requestParameters Request parameters.
|
|
@@ -5998,13 +6076,13 @@ class CompanyApi extends base_1.BaseAPI {
|
|
|
5998
6076
|
}
|
|
5999
6077
|
/**
|
|
6000
6078
|
*
|
|
6001
|
-
* @param {
|
|
6079
|
+
* @param {CompanyApiCreateCompanyLanguageRequest} requestParameters Request parameters.
|
|
6002
6080
|
* @param {*} [options] Override http request option.
|
|
6003
6081
|
* @throws {RequiredError}
|
|
6004
6082
|
* @memberof CompanyApi
|
|
6005
6083
|
*/
|
|
6006
|
-
|
|
6007
|
-
return (0, exports.CompanyApiFp)(this.configuration).
|
|
6084
|
+
createCompanyLanguage(requestParameters, options) {
|
|
6085
|
+
return (0, exports.CompanyApiFp)(this.configuration).createCompanyLanguage(requestParameters.companyId, requestParameters.iCompanyCreateLanguageRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6008
6086
|
}
|
|
6009
6087
|
/**
|
|
6010
6088
|
*
|
|
@@ -6026,6 +6104,16 @@ class CompanyApi extends base_1.BaseAPI {
|
|
|
6026
6104
|
createCompanyShippingProviders(requestParameters, options) {
|
|
6027
6105
|
return (0, exports.CompanyApiFp)(this.configuration).createCompanyShippingProviders(requestParameters.id, requestParameters.iCompanyCreateShippingProvidersRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6028
6106
|
}
|
|
6107
|
+
/**
|
|
6108
|
+
*
|
|
6109
|
+
* @param {CompanyApiCreateCompanySubscriptionRequest} requestParameters Request parameters.
|
|
6110
|
+
* @param {*} [options] Override http request option.
|
|
6111
|
+
* @throws {RequiredError}
|
|
6112
|
+
* @memberof CompanyApi
|
|
6113
|
+
*/
|
|
6114
|
+
createCompanySubscription(requestParameters, options) {
|
|
6115
|
+
return (0, exports.CompanyApiFp)(this.configuration).createCompanySubscription(requestParameters.id, requestParameters.iSubscriptionPostRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6116
|
+
}
|
|
6029
6117
|
/**
|
|
6030
6118
|
*
|
|
6031
6119
|
* @param {CompanyApiCreateCompanyWarehousesRequest} requestParameters Request parameters.
|
|
@@ -6166,16 +6254,6 @@ class CompanyApi extends base_1.BaseAPI {
|
|
|
6166
6254
|
getCompanyDashboard(requestParameters, options) {
|
|
6167
6255
|
return (0, exports.CompanyApiFp)(this.configuration).getCompanyDashboard(requestParameters.id, requestParameters.start, requestParameters.end, options).then((request) => request(this.axios, this.basePath));
|
|
6168
6256
|
}
|
|
6169
|
-
/**
|
|
6170
|
-
*
|
|
6171
|
-
* @param {CompanyApiGetCompanyMonthlyBandwidthRequest} requestParameters Request parameters.
|
|
6172
|
-
* @param {*} [options] Override http request option.
|
|
6173
|
-
* @throws {RequiredError}
|
|
6174
|
-
* @memberof CompanyApi
|
|
6175
|
-
*/
|
|
6176
|
-
getCompanyMonthlyBandwidth(requestParameters, options) {
|
|
6177
|
-
return (0, exports.CompanyApiFp)(this.configuration).getCompanyMonthlyBandwidth(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
6178
|
-
}
|
|
6179
6257
|
/**
|
|
6180
6258
|
*
|
|
6181
6259
|
* @param {CompanyApiGetCompanyOnboardingRequest} requestParameters Request parameters.
|
|
@@ -6188,53 +6266,53 @@ class CompanyApi extends base_1.BaseAPI {
|
|
|
6188
6266
|
}
|
|
6189
6267
|
/**
|
|
6190
6268
|
*
|
|
6191
|
-
* @param {
|
|
6269
|
+
* @param {CompanyApiGetCompanyPaymentGatewaysRequest} requestParameters Request parameters.
|
|
6192
6270
|
* @param {*} [options] Override http request option.
|
|
6193
6271
|
* @throws {RequiredError}
|
|
6194
6272
|
* @memberof CompanyApi
|
|
6195
6273
|
*/
|
|
6196
|
-
|
|
6197
|
-
return (0, exports.CompanyApiFp)(this.configuration).
|
|
6274
|
+
getCompanyPaymentGateways(requestParameters, options) {
|
|
6275
|
+
return (0, exports.CompanyApiFp)(this.configuration).getCompanyPaymentGateways(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
6198
6276
|
}
|
|
6199
6277
|
/**
|
|
6200
6278
|
*
|
|
6201
|
-
* @param {
|
|
6279
|
+
* @param {CompanyApiGetCompanyProductReviewsRequest} requestParameters Request parameters.
|
|
6202
6280
|
* @param {*} [options] Override http request option.
|
|
6203
6281
|
* @throws {RequiredError}
|
|
6204
6282
|
* @memberof CompanyApi
|
|
6205
6283
|
*/
|
|
6206
|
-
|
|
6207
|
-
return (0, exports.CompanyApiFp)(this.configuration).
|
|
6284
|
+
getCompanyProductReviews(requestParameters, options) {
|
|
6285
|
+
return (0, exports.CompanyApiFp)(this.configuration).getCompanyProductReviews(requestParameters.id, requestParameters.status, options).then((request) => request(this.axios, this.basePath));
|
|
6208
6286
|
}
|
|
6209
6287
|
/**
|
|
6210
6288
|
*
|
|
6211
|
-
* @param {
|
|
6289
|
+
* @param {CompanyApiGetCompanyReviewCountRequest} requestParameters Request parameters.
|
|
6212
6290
|
* @param {*} [options] Override http request option.
|
|
6213
6291
|
* @throws {RequiredError}
|
|
6214
6292
|
* @memberof CompanyApi
|
|
6215
6293
|
*/
|
|
6216
|
-
|
|
6217
|
-
return (0, exports.CompanyApiFp)(this.configuration).
|
|
6294
|
+
getCompanyReviewCount(requestParameters, options) {
|
|
6295
|
+
return (0, exports.CompanyApiFp)(this.configuration).getCompanyReviewCount(requestParameters.id, requestParameters.status, options).then((request) => request(this.axios, this.basePath));
|
|
6218
6296
|
}
|
|
6219
6297
|
/**
|
|
6220
6298
|
*
|
|
6221
|
-
* @param {
|
|
6299
|
+
* @param {CompanyApiGetCompanySubscriptionRequest} requestParameters Request parameters.
|
|
6222
6300
|
* @param {*} [options] Override http request option.
|
|
6223
6301
|
* @throws {RequiredError}
|
|
6224
6302
|
* @memberof CompanyApi
|
|
6225
6303
|
*/
|
|
6226
|
-
|
|
6227
|
-
return (0, exports.CompanyApiFp)(this.configuration).
|
|
6304
|
+
getCompanySubscription(requestParameters, options) {
|
|
6305
|
+
return (0, exports.CompanyApiFp)(this.configuration).getCompanySubscription(requestParameters.id, requestParameters.paymentId, options).then((request) => request(this.axios, this.basePath));
|
|
6228
6306
|
}
|
|
6229
6307
|
/**
|
|
6230
6308
|
*
|
|
6231
|
-
* @param {
|
|
6309
|
+
* @param {CompanyApiGetCompanySubscriptionsRequest} requestParameters Request parameters.
|
|
6232
6310
|
* @param {*} [options] Override http request option.
|
|
6233
6311
|
* @throws {RequiredError}
|
|
6234
6312
|
* @memberof CompanyApi
|
|
6235
6313
|
*/
|
|
6236
|
-
|
|
6237
|
-
return (0, exports.CompanyApiFp)(this.configuration).
|
|
6314
|
+
getCompanySubscriptions(requestParameters, options) {
|
|
6315
|
+
return (0, exports.CompanyApiFp)(this.configuration).getCompanySubscriptions(requestParameters.id, requestParameters.page, requestParameters.itemsPerPage, requestParameters.status, options).then((request) => request(this.axios, this.basePath));
|
|
6238
6316
|
}
|
|
6239
6317
|
/**
|
|
6240
6318
|
*
|
|
@@ -6276,6 +6354,16 @@ class CompanyApi extends base_1.BaseAPI {
|
|
|
6276
6354
|
setCompanySenderEmail(requestParameters, options) {
|
|
6277
6355
|
return (0, exports.CompanyApiFp)(this.configuration).setCompanySenderEmail(requestParameters.id, requestParameters.setCompanySenderEmailRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6278
6356
|
}
|
|
6357
|
+
/**
|
|
6358
|
+
*
|
|
6359
|
+
* @param {CompanyApiSetDefaultCompanyLanguageRequest} requestParameters Request parameters.
|
|
6360
|
+
* @param {*} [options] Override http request option.
|
|
6361
|
+
* @throws {RequiredError}
|
|
6362
|
+
* @memberof CompanyApi
|
|
6363
|
+
*/
|
|
6364
|
+
setDefaultCompanyLanguage(requestParameters, options) {
|
|
6365
|
+
return (0, exports.CompanyApiFp)(this.configuration).setDefaultCompanyLanguage(requestParameters.id, requestParameters.language, options).then((request) => request(this.axios, this.basePath));
|
|
6366
|
+
}
|
|
6279
6367
|
/**
|
|
6280
6368
|
*
|
|
6281
6369
|
* @param {CompanyApiUpdateCompanyRequest} requestParameters Request parameters.
|
|
@@ -10408,30 +10496,6 @@ const PlanApiAxiosParamCreator = function (configuration) {
|
|
|
10408
10496
|
options: localVarRequestOptions,
|
|
10409
10497
|
};
|
|
10410
10498
|
},
|
|
10411
|
-
/**
|
|
10412
|
-
*
|
|
10413
|
-
* @param {*} [options] Override http request option.
|
|
10414
|
-
* @throws {RequiredError}
|
|
10415
|
-
*/
|
|
10416
|
-
getPlanLimits: async (options = {}) => {
|
|
10417
|
-
const localVarPath = `/api/plans/limits`;
|
|
10418
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10419
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
10420
|
-
let baseOptions;
|
|
10421
|
-
if (configuration) {
|
|
10422
|
-
baseOptions = configuration.baseOptions;
|
|
10423
|
-
}
|
|
10424
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
10425
|
-
const localVarHeaderParameter = {};
|
|
10426
|
-
const localVarQueryParameter = {};
|
|
10427
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
10428
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10429
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
10430
|
-
return {
|
|
10431
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
10432
|
-
options: localVarRequestOptions,
|
|
10433
|
-
};
|
|
10434
|
-
},
|
|
10435
10499
|
/**
|
|
10436
10500
|
*
|
|
10437
10501
|
* @param {number} [page]
|
|
@@ -10443,11 +10507,12 @@ const PlanApiAxiosParamCreator = function (configuration) {
|
|
|
10443
10507
|
* @param {OrderEnum} [order]
|
|
10444
10508
|
* @param {string} [sort]
|
|
10445
10509
|
* @param {PlanStatusEnum} [status]
|
|
10446
|
-
* @param {
|
|
10510
|
+
* @param {GetPlansCategoryEnum} [category]
|
|
10511
|
+
* @param {string} [company]
|
|
10447
10512
|
* @param {*} [options] Override http request option.
|
|
10448
10513
|
* @throws {RequiredError}
|
|
10449
10514
|
*/
|
|
10450
|
-
getPlans: async (page, itemsPerPage, search, startDate, endDate, dateField, order, sort, status,
|
|
10515
|
+
getPlans: async (page, itemsPerPage, search, startDate, endDate, dateField, order, sort, status, category, company, options = {}) => {
|
|
10451
10516
|
const localVarPath = `/api/plans`;
|
|
10452
10517
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10453
10518
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -10489,8 +10554,11 @@ const PlanApiAxiosParamCreator = function (configuration) {
|
|
|
10489
10554
|
if (status !== undefined) {
|
|
10490
10555
|
localVarQueryParameter['status'] = status;
|
|
10491
10556
|
}
|
|
10492
|
-
if (
|
|
10493
|
-
localVarQueryParameter['
|
|
10557
|
+
if (category !== undefined) {
|
|
10558
|
+
localVarQueryParameter['category'] = category;
|
|
10559
|
+
}
|
|
10560
|
+
if (company !== undefined) {
|
|
10561
|
+
localVarQueryParameter['company'] = company;
|
|
10494
10562
|
}
|
|
10495
10563
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
10496
10564
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -10579,17 +10647,6 @@ const PlanApiFp = function (configuration) {
|
|
|
10579
10647
|
const localVarOperationServerBasePath = base_1.operationServerMap['PlanApi.getPlanById']?.[localVarOperationServerIndex]?.url;
|
|
10580
10648
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
10581
10649
|
},
|
|
10582
|
-
/**
|
|
10583
|
-
*
|
|
10584
|
-
* @param {*} [options] Override http request option.
|
|
10585
|
-
* @throws {RequiredError}
|
|
10586
|
-
*/
|
|
10587
|
-
async getPlanLimits(options) {
|
|
10588
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getPlanLimits(options);
|
|
10589
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
10590
|
-
const localVarOperationServerBasePath = base_1.operationServerMap['PlanApi.getPlanLimits']?.[localVarOperationServerIndex]?.url;
|
|
10591
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
10592
|
-
},
|
|
10593
10650
|
/**
|
|
10594
10651
|
*
|
|
10595
10652
|
* @param {number} [page]
|
|
@@ -10601,12 +10658,13 @@ const PlanApiFp = function (configuration) {
|
|
|
10601
10658
|
* @param {OrderEnum} [order]
|
|
10602
10659
|
* @param {string} [sort]
|
|
10603
10660
|
* @param {PlanStatusEnum} [status]
|
|
10604
|
-
* @param {
|
|
10661
|
+
* @param {GetPlansCategoryEnum} [category]
|
|
10662
|
+
* @param {string} [company]
|
|
10605
10663
|
* @param {*} [options] Override http request option.
|
|
10606
10664
|
* @throws {RequiredError}
|
|
10607
10665
|
*/
|
|
10608
|
-
async getPlans(page, itemsPerPage, search, startDate, endDate, dateField, order, sort, status,
|
|
10609
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getPlans(page, itemsPerPage, search, startDate, endDate, dateField, order, sort, status,
|
|
10666
|
+
async getPlans(page, itemsPerPage, search, startDate, endDate, dateField, order, sort, status, category, company, options) {
|
|
10667
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPlans(page, itemsPerPage, search, startDate, endDate, dateField, order, sort, status, category, company, options);
|
|
10610
10668
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
10611
10669
|
const localVarOperationServerBasePath = base_1.operationServerMap['PlanApi.getPlans']?.[localVarOperationServerIndex]?.url;
|
|
10612
10670
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -10661,14 +10719,6 @@ const PlanApiFactory = function (configuration, basePath, axios) {
|
|
|
10661
10719
|
getPlanById(requestParameters, options) {
|
|
10662
10720
|
return localVarFp.getPlanById(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
10663
10721
|
},
|
|
10664
|
-
/**
|
|
10665
|
-
*
|
|
10666
|
-
* @param {*} [options] Override http request option.
|
|
10667
|
-
* @throws {RequiredError}
|
|
10668
|
-
*/
|
|
10669
|
-
getPlanLimits(options) {
|
|
10670
|
-
return localVarFp.getPlanLimits(options).then((request) => request(axios, basePath));
|
|
10671
|
-
},
|
|
10672
10722
|
/**
|
|
10673
10723
|
*
|
|
10674
10724
|
* @param {PlanApiGetPlansRequest} requestParameters Request parameters.
|
|
@@ -10676,7 +10726,7 @@ const PlanApiFactory = function (configuration, basePath, axios) {
|
|
|
10676
10726
|
* @throws {RequiredError}
|
|
10677
10727
|
*/
|
|
10678
10728
|
getPlans(requestParameters = {}, options) {
|
|
10679
|
-
return localVarFp.getPlans(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.status, requestParameters.
|
|
10729
|
+
return localVarFp.getPlans(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.status, requestParameters.category, requestParameters.company, options).then((request) => request(axios, basePath));
|
|
10680
10730
|
},
|
|
10681
10731
|
/**
|
|
10682
10732
|
*
|
|
@@ -10727,15 +10777,6 @@ class PlanApi extends base_1.BaseAPI {
|
|
|
10727
10777
|
getPlanById(requestParameters, options) {
|
|
10728
10778
|
return (0, exports.PlanApiFp)(this.configuration).getPlanById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
10729
10779
|
}
|
|
10730
|
-
/**
|
|
10731
|
-
*
|
|
10732
|
-
* @param {*} [options] Override http request option.
|
|
10733
|
-
* @throws {RequiredError}
|
|
10734
|
-
* @memberof PlanApi
|
|
10735
|
-
*/
|
|
10736
|
-
getPlanLimits(options) {
|
|
10737
|
-
return (0, exports.PlanApiFp)(this.configuration).getPlanLimits(options).then((request) => request(this.axios, this.basePath));
|
|
10738
|
-
}
|
|
10739
10780
|
/**
|
|
10740
10781
|
*
|
|
10741
10782
|
* @param {PlanApiGetPlansRequest} requestParameters Request parameters.
|
|
@@ -10744,7 +10785,7 @@ class PlanApi extends base_1.BaseAPI {
|
|
|
10744
10785
|
* @memberof PlanApi
|
|
10745
10786
|
*/
|
|
10746
10787
|
getPlans(requestParameters = {}, options) {
|
|
10747
|
-
return (0, exports.PlanApiFp)(this.configuration).getPlans(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.status, requestParameters.
|
|
10788
|
+
return (0, exports.PlanApiFp)(this.configuration).getPlans(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.status, requestParameters.category, requestParameters.company, options).then((request) => request(this.axios, this.basePath));
|
|
10748
10789
|
}
|
|
10749
10790
|
/**
|
|
10750
10791
|
*
|
|
@@ -10765,6 +10806,14 @@ exports.GetPlansDateFieldEnum = {
|
|
|
10765
10806
|
CREATED_AT: 'createdAt',
|
|
10766
10807
|
UPDATED_AT: 'updatedAt'
|
|
10767
10808
|
};
|
|
10809
|
+
/**
|
|
10810
|
+
* @export
|
|
10811
|
+
*/
|
|
10812
|
+
exports.GetPlansCategoryEnum = {
|
|
10813
|
+
ADDON_BANDWIDTH: 'addon-bandwidth',
|
|
10814
|
+
B2C: 'b2c',
|
|
10815
|
+
CMS: 'cms'
|
|
10816
|
+
};
|
|
10768
10817
|
/**
|
|
10769
10818
|
* ProductApi - axios parameter creator
|
|
10770
10819
|
* @export
|
|
@@ -12973,15 +13022,14 @@ const UrlRedirectApiAxiosParamCreator = function (configuration) {
|
|
|
12973
13022
|
/**
|
|
12974
13023
|
*
|
|
12975
13024
|
* @param {string} from
|
|
12976
|
-
* @param {string} companyId
|
|
13025
|
+
* @param {string} [companyId]
|
|
13026
|
+
* @param {string} [domain]
|
|
12977
13027
|
* @param {*} [options] Override http request option.
|
|
12978
13028
|
* @throws {RequiredError}
|
|
12979
13029
|
*/
|
|
12980
|
-
getUrlRedirectBySource: async (from, companyId, options = {}) => {
|
|
13030
|
+
getUrlRedirectBySource: async (from, companyId, domain, options = {}) => {
|
|
12981
13031
|
// verify required parameter 'from' is not null or undefined
|
|
12982
13032
|
(0, common_1.assertParamExists)('getUrlRedirectBySource', 'from', from);
|
|
12983
|
-
// verify required parameter 'companyId' is not null or undefined
|
|
12984
|
-
(0, common_1.assertParamExists)('getUrlRedirectBySource', 'companyId', companyId);
|
|
12985
13033
|
const localVarPath = `/api/url-redirects/from`;
|
|
12986
13034
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12987
13035
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -12998,6 +13046,9 @@ const UrlRedirectApiAxiosParamCreator = function (configuration) {
|
|
|
12998
13046
|
if (companyId !== undefined) {
|
|
12999
13047
|
localVarQueryParameter['companyId'] = companyId;
|
|
13000
13048
|
}
|
|
13049
|
+
if (domain !== undefined) {
|
|
13050
|
+
localVarQueryParameter['domain'] = domain;
|
|
13051
|
+
}
|
|
13001
13052
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
13002
13053
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13003
13054
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -13170,12 +13221,13 @@ const UrlRedirectApiFp = function (configuration) {
|
|
|
13170
13221
|
/**
|
|
13171
13222
|
*
|
|
13172
13223
|
* @param {string} from
|
|
13173
|
-
* @param {string} companyId
|
|
13224
|
+
* @param {string} [companyId]
|
|
13225
|
+
* @param {string} [domain]
|
|
13174
13226
|
* @param {*} [options] Override http request option.
|
|
13175
13227
|
* @throws {RequiredError}
|
|
13176
13228
|
*/
|
|
13177
|
-
async getUrlRedirectBySource(from, companyId, options) {
|
|
13178
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getUrlRedirectBySource(from, companyId, options);
|
|
13229
|
+
async getUrlRedirectBySource(from, companyId, domain, options) {
|
|
13230
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getUrlRedirectBySource(from, companyId, domain, options);
|
|
13179
13231
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
13180
13232
|
const localVarOperationServerBasePath = base_1.operationServerMap['UrlRedirectApi.getUrlRedirectBySource']?.[localVarOperationServerIndex]?.url;
|
|
13181
13233
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -13267,7 +13319,7 @@ const UrlRedirectApiFactory = function (configuration, basePath, axios) {
|
|
|
13267
13319
|
* @throws {RequiredError}
|
|
13268
13320
|
*/
|
|
13269
13321
|
getUrlRedirectBySource(requestParameters, options) {
|
|
13270
|
-
return localVarFp.getUrlRedirectBySource(requestParameters.from, requestParameters.companyId, options).then((request) => request(axios, basePath));
|
|
13322
|
+
return localVarFp.getUrlRedirectBySource(requestParameters.from, requestParameters.companyId, requestParameters.domain, options).then((request) => request(axios, basePath));
|
|
13271
13323
|
},
|
|
13272
13324
|
/**
|
|
13273
13325
|
*
|
|
@@ -13345,7 +13397,7 @@ class UrlRedirectApi extends base_1.BaseAPI {
|
|
|
13345
13397
|
* @memberof UrlRedirectApi
|
|
13346
13398
|
*/
|
|
13347
13399
|
getUrlRedirectBySource(requestParameters, options) {
|
|
13348
|
-
return (0, exports.UrlRedirectApiFp)(this.configuration).getUrlRedirectBySource(requestParameters.from, requestParameters.companyId, options).then((request) => request(this.axios, this.basePath));
|
|
13400
|
+
return (0, exports.UrlRedirectApiFp)(this.configuration).getUrlRedirectBySource(requestParameters.from, requestParameters.companyId, requestParameters.domain, options).then((request) => request(this.axios, this.basePath));
|
|
13349
13401
|
}
|
|
13350
13402
|
/**
|
|
13351
13403
|
*
|