@infisale-client/api 1.2.20 → 1.2.23
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 +789 -177
- package/dist/api/api.js +444 -41
- package/dist/api/api.mjs +441 -38
- package/package.json +2 -2
package/dist/api/api.js
CHANGED
|
@@ -16,9 +16,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
16
16
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
17
17
|
};
|
|
18
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.
|
|
20
|
-
exports.
|
|
21
|
-
exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.ThemeApi = exports.ThemeApiFactory = exports.ThemeApiFp = exports.ThemeApiAxiosParamCreator = exports.TemplateApi = exports.TemplateApiFactory = exports.TemplateApiFp = exports.TemplateApiAxiosParamCreator = void 0;
|
|
19
|
+
exports.TimezoneEnum = exports.ThemeTypeEnum = exports.TemplateTypeEnum = exports.SitemapTypeEnum = exports.ProductDetailImageZoomTypeEnum = exports.PlanTypeEnum = exports.PlanStatusEnum = exports.PlanCurrencyEnum = exports.PaymentMethodEnum = exports.PaymentGatewayEnum = exports.PageTypeEnum = exports.OrderStatusEnum = exports.OrderEnum = exports.OperationStatusEnum = exports.NotificationStatusEnum = exports.NotificationMessageEnum = exports.NavigationUrlTargetEnum = exports.LanguageEnum = exports.IUserCollectionQueryParamsDateFieldEnum = exports.IProductCollectionQueryParamsDateFieldEnum = exports.IPlanCollectionQueryParamsDateFieldEnum = exports.IPageCollectionQueryParamsDateFieldEnum = exports.IOrderCollectionQueryParamsDateFieldEnum = exports.IOperationCollectionQueryParamsDateFieldEnum = exports.INotificationCollectionQueryParamsDateFieldEnum = exports.IMyOrderCollectionQueryParamsDateFieldEnum = exports.IFileCollectionQueryParamsDateFieldEnum = exports.IContactFormCollectionQueryParamsDateFieldEnum = exports.ICompanyUsersCollectionQueryParamsDateFieldEnum = exports.ICompanyCollectionQueryParamsDateFieldEnum = exports.ICollectionCollectionsQueryParamsDateFieldEnum = exports.ICategoryCollectionQueryParamsDateFieldEnum = exports.IBrandCollectionQueryParamsDateFieldEnum = exports.FontSizeEnum = exports.FileTypeEnum = exports.FileStatusEnum = exports.FileKeywordEnum = exports.EmailConfigDnsRecordTypeEnum = exports.CurrencyRateTypeEnum = exports.CurrencyEnum = exports.CountryEnum = exports.ContentStatusEnum = exports.ComponentTypeEnum = exports.ComponentProductTypeEnum = exports.ComponentProductOrderEnum = exports.ComponentProductListTypeEnum = exports.ComponentContentTypeEnum = exports.CompanyUserStatusEnum = exports.CompanyTypeEnum = exports.CompanyStatusEnum = void 0;
|
|
20
|
+
exports.GetNotificationsDateFieldEnum = exports.NotificationApi = exports.NotificationApiFactory = exports.NotificationApiFp = exports.NotificationApiAxiosParamCreator = exports.GetFilesDateFieldEnum = 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 = void 0;
|
|
21
|
+
exports.GetUsersDateFieldEnum = exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = 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.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 = void 0;
|
|
22
22
|
const axios_1 = __importDefault(require("axios"));
|
|
23
23
|
// Some imports not used depending on template conditions
|
|
24
24
|
// @ts-ignore
|
|
@@ -480,6 +480,66 @@ exports.FontSizeEnum = {
|
|
|
480
480
|
_4XL: 'text-4xl',
|
|
481
481
|
_6XL: 'text-6xl'
|
|
482
482
|
};
|
|
483
|
+
exports.IBrandCollectionQueryParamsDateFieldEnum = {
|
|
484
|
+
CREATED_AT: 'createdAt',
|
|
485
|
+
UPDATED_AT: 'updatedAt'
|
|
486
|
+
};
|
|
487
|
+
exports.ICategoryCollectionQueryParamsDateFieldEnum = {
|
|
488
|
+
CREATED_AT: 'createdAt',
|
|
489
|
+
UPDATED_AT: 'updatedAt'
|
|
490
|
+
};
|
|
491
|
+
exports.ICollectionCollectionsQueryParamsDateFieldEnum = {
|
|
492
|
+
CREATED_AT: 'createdAt',
|
|
493
|
+
UPDATED_AT: 'updatedAt'
|
|
494
|
+
};
|
|
495
|
+
exports.ICompanyCollectionQueryParamsDateFieldEnum = {
|
|
496
|
+
CREATED_AT: 'createdAt',
|
|
497
|
+
UPDATED_AT: 'updatedAt'
|
|
498
|
+
};
|
|
499
|
+
exports.ICompanyUsersCollectionQueryParamsDateFieldEnum = {
|
|
500
|
+
CREATED_AT: 'createdAt',
|
|
501
|
+
UPDATED_AT: 'updatedAt'
|
|
502
|
+
};
|
|
503
|
+
exports.IContactFormCollectionQueryParamsDateFieldEnum = {
|
|
504
|
+
CREATED_AT: 'createdAt',
|
|
505
|
+
UPDATED_AT: 'updatedAt'
|
|
506
|
+
};
|
|
507
|
+
exports.IFileCollectionQueryParamsDateFieldEnum = {
|
|
508
|
+
CREATED_AT: 'createdAt',
|
|
509
|
+
UPDATED_AT: 'updatedAt'
|
|
510
|
+
};
|
|
511
|
+
exports.IMyOrderCollectionQueryParamsDateFieldEnum = {
|
|
512
|
+
CREATED_AT: 'createdAt',
|
|
513
|
+
UPDATED_AT: 'updatedAt'
|
|
514
|
+
};
|
|
515
|
+
exports.INotificationCollectionQueryParamsDateFieldEnum = {
|
|
516
|
+
CREATED_AT: 'createdAt',
|
|
517
|
+
UPDATED_AT: 'updatedAt'
|
|
518
|
+
};
|
|
519
|
+
exports.IOperationCollectionQueryParamsDateFieldEnum = {
|
|
520
|
+
CREATED_AT: 'createdAt',
|
|
521
|
+
UPDATED_AT: 'updatedAt'
|
|
522
|
+
};
|
|
523
|
+
exports.IOrderCollectionQueryParamsDateFieldEnum = {
|
|
524
|
+
CREATED_AT: 'createdAt',
|
|
525
|
+
UPDATED_AT: 'updatedAt'
|
|
526
|
+
};
|
|
527
|
+
exports.IPageCollectionQueryParamsDateFieldEnum = {
|
|
528
|
+
CREATED_AT: 'createdAt',
|
|
529
|
+
UPDATED_AT: 'updatedAt'
|
|
530
|
+
};
|
|
531
|
+
exports.IPlanCollectionQueryParamsDateFieldEnum = {
|
|
532
|
+
CREATED_AT: 'createdAt',
|
|
533
|
+
UPDATED_AT: 'updatedAt'
|
|
534
|
+
};
|
|
535
|
+
exports.IProductCollectionQueryParamsDateFieldEnum = {
|
|
536
|
+
CREATED_AT: 'createdAt',
|
|
537
|
+
UPDATED_AT: 'updatedAt'
|
|
538
|
+
};
|
|
539
|
+
exports.IUserCollectionQueryParamsDateFieldEnum = {
|
|
540
|
+
CREATED_AT: 'createdAt',
|
|
541
|
+
UPDATED_AT: 'updatedAt'
|
|
542
|
+
};
|
|
483
543
|
/**
|
|
484
544
|
*
|
|
485
545
|
* @export
|
|
@@ -544,7 +604,8 @@ exports.OrderStatusEnum = {
|
|
|
544
604
|
CANCELED: 'canceled',
|
|
545
605
|
READY_TO_SHIP: 'ready_to_ship',
|
|
546
606
|
SHIPPED: 'shipped',
|
|
547
|
-
COMPLETED: 'completed'
|
|
607
|
+
COMPLETED: 'completed',
|
|
608
|
+
FAILED: 'failed'
|
|
548
609
|
};
|
|
549
610
|
/**
|
|
550
611
|
*
|
|
@@ -559,6 +620,14 @@ exports.PageTypeEnum = {
|
|
|
559
620
|
CHECKOUT: 'checkout',
|
|
560
621
|
NOT_FOUND: 'not-found'
|
|
561
622
|
};
|
|
623
|
+
/**
|
|
624
|
+
*
|
|
625
|
+
* @export
|
|
626
|
+
* @enum {string}
|
|
627
|
+
*/
|
|
628
|
+
exports.PaymentGatewayEnum = {
|
|
629
|
+
IYZICO: 'iyzico'
|
|
630
|
+
};
|
|
562
631
|
/**
|
|
563
632
|
*
|
|
564
633
|
* @export
|
|
@@ -1967,7 +2036,7 @@ const BrandApiAxiosParamCreator = function (configuration) {
|
|
|
1967
2036
|
* @param {string} [search]
|
|
1968
2037
|
* @param {string} [startDate]
|
|
1969
2038
|
* @param {string} [endDate]
|
|
1970
|
-
* @param {
|
|
2039
|
+
* @param {GetBrandsDateFieldEnum} [dateField]
|
|
1971
2040
|
* @param {OrderEnum} [order]
|
|
1972
2041
|
* @param {string} [sort]
|
|
1973
2042
|
* @param {string} [companyId]
|
|
@@ -2130,7 +2199,7 @@ const BrandApiFp = function (configuration) {
|
|
|
2130
2199
|
* @param {string} [search]
|
|
2131
2200
|
* @param {string} [startDate]
|
|
2132
2201
|
* @param {string} [endDate]
|
|
2133
|
-
* @param {
|
|
2202
|
+
* @param {GetBrandsDateFieldEnum} [dateField]
|
|
2134
2203
|
* @param {OrderEnum} [order]
|
|
2135
2204
|
* @param {string} [sort]
|
|
2136
2205
|
* @param {string} [companyId]
|
|
@@ -2294,6 +2363,13 @@ class BrandApi extends base_1.BaseAPI {
|
|
|
2294
2363
|
}
|
|
2295
2364
|
}
|
|
2296
2365
|
exports.BrandApi = BrandApi;
|
|
2366
|
+
/**
|
|
2367
|
+
* @export
|
|
2368
|
+
*/
|
|
2369
|
+
exports.GetBrandsDateFieldEnum = {
|
|
2370
|
+
CREATED_AT: 'createdAt',
|
|
2371
|
+
UPDATED_AT: 'updatedAt'
|
|
2372
|
+
};
|
|
2297
2373
|
/**
|
|
2298
2374
|
* CategoryApi - axios parameter creator
|
|
2299
2375
|
* @export
|
|
@@ -2394,7 +2470,7 @@ const CategoryApiAxiosParamCreator = function (configuration) {
|
|
|
2394
2470
|
* @param {string} [search]
|
|
2395
2471
|
* @param {string} [startDate]
|
|
2396
2472
|
* @param {string} [endDate]
|
|
2397
|
-
* @param {
|
|
2473
|
+
* @param {GetCategoriesDateFieldEnum} [dateField]
|
|
2398
2474
|
* @param {OrderEnum} [order]
|
|
2399
2475
|
* @param {string} [sort]
|
|
2400
2476
|
* @param {string} [companyId]
|
|
@@ -2603,7 +2679,7 @@ const CategoryApiFp = function (configuration) {
|
|
|
2603
2679
|
* @param {string} [search]
|
|
2604
2680
|
* @param {string} [startDate]
|
|
2605
2681
|
* @param {string} [endDate]
|
|
2606
|
-
* @param {
|
|
2682
|
+
* @param {GetCategoriesDateFieldEnum} [dateField]
|
|
2607
2683
|
* @param {OrderEnum} [order]
|
|
2608
2684
|
* @param {string} [sort]
|
|
2609
2685
|
* @param {string} [companyId]
|
|
@@ -2810,6 +2886,13 @@ class CategoryApi extends base_1.BaseAPI {
|
|
|
2810
2886
|
}
|
|
2811
2887
|
}
|
|
2812
2888
|
exports.CategoryApi = CategoryApi;
|
|
2889
|
+
/**
|
|
2890
|
+
* @export
|
|
2891
|
+
*/
|
|
2892
|
+
exports.GetCategoriesDateFieldEnum = {
|
|
2893
|
+
CREATED_AT: 'createdAt',
|
|
2894
|
+
UPDATED_AT: 'updatedAt'
|
|
2895
|
+
};
|
|
2813
2896
|
/**
|
|
2814
2897
|
* CollectionApi - axios parameter creator
|
|
2815
2898
|
* @export
|
|
@@ -2981,7 +3064,7 @@ const CollectionApiAxiosParamCreator = function (configuration) {
|
|
|
2981
3064
|
* @param {string} [search]
|
|
2982
3065
|
* @param {string} [startDate]
|
|
2983
3066
|
* @param {string} [endDate]
|
|
2984
|
-
* @param {
|
|
3067
|
+
* @param {GetCollectionsDateFieldEnum} [dateField]
|
|
2985
3068
|
* @param {OrderEnum} [order]
|
|
2986
3069
|
* @param {string} [sort]
|
|
2987
3070
|
* @param {ContentStatusEnum} [status]
|
|
@@ -3191,7 +3274,7 @@ const CollectionApiFp = function (configuration) {
|
|
|
3191
3274
|
* @param {string} [search]
|
|
3192
3275
|
* @param {string} [startDate]
|
|
3193
3276
|
* @param {string} [endDate]
|
|
3194
|
-
* @param {
|
|
3277
|
+
* @param {GetCollectionsDateFieldEnum} [dateField]
|
|
3195
3278
|
* @param {OrderEnum} [order]
|
|
3196
3279
|
* @param {string} [sort]
|
|
3197
3280
|
* @param {ContentStatusEnum} [status]
|
|
@@ -3404,6 +3487,13 @@ class CollectionApi extends base_1.BaseAPI {
|
|
|
3404
3487
|
}
|
|
3405
3488
|
}
|
|
3406
3489
|
exports.CollectionApi = CollectionApi;
|
|
3490
|
+
/**
|
|
3491
|
+
* @export
|
|
3492
|
+
*/
|
|
3493
|
+
exports.GetCollectionsDateFieldEnum = {
|
|
3494
|
+
CREATED_AT: 'createdAt',
|
|
3495
|
+
UPDATED_AT: 'updatedAt'
|
|
3496
|
+
};
|
|
3407
3497
|
/**
|
|
3408
3498
|
* CompanyApi - axios parameter creator
|
|
3409
3499
|
* @export
|
|
@@ -3632,7 +3722,7 @@ const CompanyApiAxiosParamCreator = function (configuration) {
|
|
|
3632
3722
|
* @param {string} [search]
|
|
3633
3723
|
* @param {string} [startDate]
|
|
3634
3724
|
* @param {string} [endDate]
|
|
3635
|
-
* @param {
|
|
3725
|
+
* @param {GetCompaniesDateFieldEnum} [dateField]
|
|
3636
3726
|
* @param {OrderEnum} [order]
|
|
3637
3727
|
* @param {string} [sort]
|
|
3638
3728
|
* @param {string} [owner]
|
|
@@ -3765,7 +3855,7 @@ const CompanyApiAxiosParamCreator = function (configuration) {
|
|
|
3765
3855
|
* @param {string} [search]
|
|
3766
3856
|
* @param {string} [startDate]
|
|
3767
3857
|
* @param {string} [endDate]
|
|
3768
|
-
* @param {
|
|
3858
|
+
* @param {GetCompanyCustomersDateFieldEnum} [dateField]
|
|
3769
3859
|
* @param {OrderEnum} [order]
|
|
3770
3860
|
* @param {string} [sort]
|
|
3771
3861
|
* @param {CompanyUserStatusEnum} [status]
|
|
@@ -3825,6 +3915,34 @@ const CompanyApiAxiosParamCreator = function (configuration) {
|
|
|
3825
3915
|
options: localVarRequestOptions,
|
|
3826
3916
|
};
|
|
3827
3917
|
},
|
|
3918
|
+
/**
|
|
3919
|
+
*
|
|
3920
|
+
* @param {string} id
|
|
3921
|
+
* @param {*} [options] Override http request option.
|
|
3922
|
+
* @throws {RequiredError}
|
|
3923
|
+
*/
|
|
3924
|
+
getCompanyPaymentGateways: async (id, options = {}) => {
|
|
3925
|
+
// verify required parameter 'id' is not null or undefined
|
|
3926
|
+
(0, common_1.assertParamExists)('getCompanyPaymentGateways', 'id', id);
|
|
3927
|
+
const localVarPath = `/api/companies/{id}/payment-gateways`
|
|
3928
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
3929
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3930
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3931
|
+
let baseOptions;
|
|
3932
|
+
if (configuration) {
|
|
3933
|
+
baseOptions = configuration.baseOptions;
|
|
3934
|
+
}
|
|
3935
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
3936
|
+
const localVarHeaderParameter = {};
|
|
3937
|
+
const localVarQueryParameter = {};
|
|
3938
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3939
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3940
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
3941
|
+
return {
|
|
3942
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3943
|
+
options: localVarRequestOptions,
|
|
3944
|
+
};
|
|
3945
|
+
},
|
|
3828
3946
|
/**
|
|
3829
3947
|
*
|
|
3830
3948
|
* @param {string} id
|
|
@@ -4050,6 +4168,39 @@ const CompanyApiAxiosParamCreator = function (configuration) {
|
|
|
4050
4168
|
options: localVarRequestOptions,
|
|
4051
4169
|
};
|
|
4052
4170
|
},
|
|
4171
|
+
/**
|
|
4172
|
+
*
|
|
4173
|
+
* @param {string} id
|
|
4174
|
+
* @param {ICompanyUpdatePaymentGatewaysRequest} iCompanyUpdatePaymentGatewaysRequest
|
|
4175
|
+
* @param {*} [options] Override http request option.
|
|
4176
|
+
* @throws {RequiredError}
|
|
4177
|
+
*/
|
|
4178
|
+
updateCompanyPaymentGateways: async (id, iCompanyUpdatePaymentGatewaysRequest, options = {}) => {
|
|
4179
|
+
// verify required parameter 'id' is not null or undefined
|
|
4180
|
+
(0, common_1.assertParamExists)('updateCompanyPaymentGateways', 'id', id);
|
|
4181
|
+
// verify required parameter 'iCompanyUpdatePaymentGatewaysRequest' is not null or undefined
|
|
4182
|
+
(0, common_1.assertParamExists)('updateCompanyPaymentGateways', 'iCompanyUpdatePaymentGatewaysRequest', iCompanyUpdatePaymentGatewaysRequest);
|
|
4183
|
+
const localVarPath = `/api/companies/{id}/payment-gateways`
|
|
4184
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
4185
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4186
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4187
|
+
let baseOptions;
|
|
4188
|
+
if (configuration) {
|
|
4189
|
+
baseOptions = configuration.baseOptions;
|
|
4190
|
+
}
|
|
4191
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options };
|
|
4192
|
+
const localVarHeaderParameter = {};
|
|
4193
|
+
const localVarQueryParameter = {};
|
|
4194
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4195
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4196
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4197
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
4198
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(iCompanyUpdatePaymentGatewaysRequest, localVarRequestOptions, configuration);
|
|
4199
|
+
return {
|
|
4200
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4201
|
+
options: localVarRequestOptions,
|
|
4202
|
+
};
|
|
4203
|
+
},
|
|
4053
4204
|
/**
|
|
4054
4205
|
*
|
|
4055
4206
|
* @param {string} id
|
|
@@ -4224,7 +4375,7 @@ const CompanyApiFp = function (configuration) {
|
|
|
4224
4375
|
* @param {string} [search]
|
|
4225
4376
|
* @param {string} [startDate]
|
|
4226
4377
|
* @param {string} [endDate]
|
|
4227
|
-
* @param {
|
|
4378
|
+
* @param {GetCompaniesDateFieldEnum} [dateField]
|
|
4228
4379
|
* @param {OrderEnum} [order]
|
|
4229
4380
|
* @param {string} [sort]
|
|
4230
4381
|
* @param {string} [owner]
|
|
@@ -4272,7 +4423,7 @@ const CompanyApiFp = function (configuration) {
|
|
|
4272
4423
|
* @param {string} [search]
|
|
4273
4424
|
* @param {string} [startDate]
|
|
4274
4425
|
* @param {string} [endDate]
|
|
4275
|
-
* @param {
|
|
4426
|
+
* @param {GetCompanyCustomersDateFieldEnum} [dateField]
|
|
4276
4427
|
* @param {OrderEnum} [order]
|
|
4277
4428
|
* @param {string} [sort]
|
|
4278
4429
|
* @param {CompanyUserStatusEnum} [status]
|
|
@@ -4285,6 +4436,18 @@ const CompanyApiFp = function (configuration) {
|
|
|
4285
4436
|
const localVarOperationServerBasePath = base_1.operationServerMap['CompanyApi.getCompanyCustomers']?.[localVarOperationServerIndex]?.url;
|
|
4286
4437
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4287
4438
|
},
|
|
4439
|
+
/**
|
|
4440
|
+
*
|
|
4441
|
+
* @param {string} id
|
|
4442
|
+
* @param {*} [options] Override http request option.
|
|
4443
|
+
* @throws {RequiredError}
|
|
4444
|
+
*/
|
|
4445
|
+
async getCompanyPaymentGateways(id, options) {
|
|
4446
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getCompanyPaymentGateways(id, options);
|
|
4447
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4448
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['CompanyApi.getCompanyPaymentGateways']?.[localVarOperationServerIndex]?.url;
|
|
4449
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4450
|
+
},
|
|
4288
4451
|
/**
|
|
4289
4452
|
*
|
|
4290
4453
|
* @param {string} id
|
|
@@ -4375,6 +4538,19 @@ const CompanyApiFp = function (configuration) {
|
|
|
4375
4538
|
const localVarOperationServerBasePath = base_1.operationServerMap['CompanyApi.updateCompanyNavigations']?.[localVarOperationServerIndex]?.url;
|
|
4376
4539
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4377
4540
|
},
|
|
4541
|
+
/**
|
|
4542
|
+
*
|
|
4543
|
+
* @param {string} id
|
|
4544
|
+
* @param {ICompanyUpdatePaymentGatewaysRequest} iCompanyUpdatePaymentGatewaysRequest
|
|
4545
|
+
* @param {*} [options] Override http request option.
|
|
4546
|
+
* @throws {RequiredError}
|
|
4547
|
+
*/
|
|
4548
|
+
async updateCompanyPaymentGateways(id, iCompanyUpdatePaymentGatewaysRequest, options) {
|
|
4549
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateCompanyPaymentGateways(id, iCompanyUpdatePaymentGatewaysRequest, options);
|
|
4550
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4551
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['CompanyApi.updateCompanyPaymentGateways']?.[localVarOperationServerIndex]?.url;
|
|
4552
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4553
|
+
},
|
|
4378
4554
|
/**
|
|
4379
4555
|
*
|
|
4380
4556
|
* @param {string} id
|
|
@@ -4511,6 +4687,15 @@ const CompanyApiFactory = function (configuration, basePath, axios) {
|
|
|
4511
4687
|
getCompanyCustomers(requestParameters, options) {
|
|
4512
4688
|
return localVarFp.getCompanyCustomers(requestParameters.id, requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.status, options).then((request) => request(axios, basePath));
|
|
4513
4689
|
},
|
|
4690
|
+
/**
|
|
4691
|
+
*
|
|
4692
|
+
* @param {CompanyApiGetCompanyPaymentGatewaysRequest} requestParameters Request parameters.
|
|
4693
|
+
* @param {*} [options] Override http request option.
|
|
4694
|
+
* @throws {RequiredError}
|
|
4695
|
+
*/
|
|
4696
|
+
getCompanyPaymentGateways(requestParameters, options) {
|
|
4697
|
+
return localVarFp.getCompanyPaymentGateways(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
4698
|
+
},
|
|
4514
4699
|
/**
|
|
4515
4700
|
*
|
|
4516
4701
|
* @param {CompanyApiGetCompanyUsersRequest} requestParameters Request parameters.
|
|
@@ -4574,6 +4759,15 @@ const CompanyApiFactory = function (configuration, basePath, axios) {
|
|
|
4574
4759
|
updateCompanyNavigations(requestParameters, options) {
|
|
4575
4760
|
return localVarFp.updateCompanyNavigations(requestParameters.id, requestParameters.iCompanyUpdateNavigationRequest, options).then((request) => request(axios, basePath));
|
|
4576
4761
|
},
|
|
4762
|
+
/**
|
|
4763
|
+
*
|
|
4764
|
+
* @param {CompanyApiUpdateCompanyPaymentGatewaysRequest} requestParameters Request parameters.
|
|
4765
|
+
* @param {*} [options] Override http request option.
|
|
4766
|
+
* @throws {RequiredError}
|
|
4767
|
+
*/
|
|
4768
|
+
updateCompanyPaymentGateways(requestParameters, options) {
|
|
4769
|
+
return localVarFp.updateCompanyPaymentGateways(requestParameters.id, requestParameters.iCompanyUpdatePaymentGatewaysRequest, options).then((request) => request(axios, basePath));
|
|
4770
|
+
},
|
|
4577
4771
|
/**
|
|
4578
4772
|
*
|
|
4579
4773
|
* @param {CompanyApiUpdatePrimaryDomainRequest} requestParameters Request parameters.
|
|
@@ -4712,6 +4906,16 @@ class CompanyApi extends base_1.BaseAPI {
|
|
|
4712
4906
|
getCompanyCustomers(requestParameters, options) {
|
|
4713
4907
|
return (0, exports.CompanyApiFp)(this.configuration).getCompanyCustomers(requestParameters.id, requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.status, options).then((request) => request(this.axios, this.basePath));
|
|
4714
4908
|
}
|
|
4909
|
+
/**
|
|
4910
|
+
*
|
|
4911
|
+
* @param {CompanyApiGetCompanyPaymentGatewaysRequest} requestParameters Request parameters.
|
|
4912
|
+
* @param {*} [options] Override http request option.
|
|
4913
|
+
* @throws {RequiredError}
|
|
4914
|
+
* @memberof CompanyApi
|
|
4915
|
+
*/
|
|
4916
|
+
getCompanyPaymentGateways(requestParameters, options) {
|
|
4917
|
+
return (0, exports.CompanyApiFp)(this.configuration).getCompanyPaymentGateways(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
4918
|
+
}
|
|
4715
4919
|
/**
|
|
4716
4920
|
*
|
|
4717
4921
|
* @param {CompanyApiGetCompanyUsersRequest} requestParameters Request parameters.
|
|
@@ -4782,6 +4986,16 @@ class CompanyApi extends base_1.BaseAPI {
|
|
|
4782
4986
|
updateCompanyNavigations(requestParameters, options) {
|
|
4783
4987
|
return (0, exports.CompanyApiFp)(this.configuration).updateCompanyNavigations(requestParameters.id, requestParameters.iCompanyUpdateNavigationRequest, options).then((request) => request(this.axios, this.basePath));
|
|
4784
4988
|
}
|
|
4989
|
+
/**
|
|
4990
|
+
*
|
|
4991
|
+
* @param {CompanyApiUpdateCompanyPaymentGatewaysRequest} requestParameters Request parameters.
|
|
4992
|
+
* @param {*} [options] Override http request option.
|
|
4993
|
+
* @throws {RequiredError}
|
|
4994
|
+
* @memberof CompanyApi
|
|
4995
|
+
*/
|
|
4996
|
+
updateCompanyPaymentGateways(requestParameters, options) {
|
|
4997
|
+
return (0, exports.CompanyApiFp)(this.configuration).updateCompanyPaymentGateways(requestParameters.id, requestParameters.iCompanyUpdatePaymentGatewaysRequest, options).then((request) => request(this.axios, this.basePath));
|
|
4998
|
+
}
|
|
4785
4999
|
/**
|
|
4786
5000
|
*
|
|
4787
5001
|
* @param {CompanyApiUpdatePrimaryDomainRequest} requestParameters Request parameters.
|
|
@@ -4804,6 +5018,20 @@ class CompanyApi extends base_1.BaseAPI {
|
|
|
4804
5018
|
}
|
|
4805
5019
|
}
|
|
4806
5020
|
exports.CompanyApi = CompanyApi;
|
|
5021
|
+
/**
|
|
5022
|
+
* @export
|
|
5023
|
+
*/
|
|
5024
|
+
exports.GetCompaniesDateFieldEnum = {
|
|
5025
|
+
CREATED_AT: 'createdAt',
|
|
5026
|
+
UPDATED_AT: 'updatedAt'
|
|
5027
|
+
};
|
|
5028
|
+
/**
|
|
5029
|
+
* @export
|
|
5030
|
+
*/
|
|
5031
|
+
exports.GetCompanyCustomersDateFieldEnum = {
|
|
5032
|
+
CREATED_AT: 'createdAt',
|
|
5033
|
+
UPDATED_AT: 'updatedAt'
|
|
5034
|
+
};
|
|
4807
5035
|
/**
|
|
4808
5036
|
* ContactFormApi - axios parameter creator
|
|
4809
5037
|
* @export
|
|
@@ -4903,7 +5131,7 @@ const ContactFormApiAxiosParamCreator = function (configuration) {
|
|
|
4903
5131
|
* @param {string} [search]
|
|
4904
5132
|
* @param {string} [startDate]
|
|
4905
5133
|
* @param {string} [endDate]
|
|
4906
|
-
* @param {
|
|
5134
|
+
* @param {GetContactFormsDateFieldEnum} [dateField]
|
|
4907
5135
|
* @param {OrderEnum} [order]
|
|
4908
5136
|
* @param {string} [sort]
|
|
4909
5137
|
* @param {*} [options] Override http request option.
|
|
@@ -5015,7 +5243,7 @@ const ContactFormApiFp = function (configuration) {
|
|
|
5015
5243
|
* @param {string} [search]
|
|
5016
5244
|
* @param {string} [startDate]
|
|
5017
5245
|
* @param {string} [endDate]
|
|
5018
|
-
* @param {
|
|
5246
|
+
* @param {GetContactFormsDateFieldEnum} [dateField]
|
|
5019
5247
|
* @param {OrderEnum} [order]
|
|
5020
5248
|
* @param {string} [sort]
|
|
5021
5249
|
* @param {*} [options] Override http request option.
|
|
@@ -5125,6 +5353,13 @@ class ContactFormApi extends base_1.BaseAPI {
|
|
|
5125
5353
|
}
|
|
5126
5354
|
}
|
|
5127
5355
|
exports.ContactFormApi = ContactFormApi;
|
|
5356
|
+
/**
|
|
5357
|
+
* @export
|
|
5358
|
+
*/
|
|
5359
|
+
exports.GetContactFormsDateFieldEnum = {
|
|
5360
|
+
CREATED_AT: 'createdAt',
|
|
5361
|
+
UPDATED_AT: 'updatedAt'
|
|
5362
|
+
};
|
|
5128
5363
|
/**
|
|
5129
5364
|
* FileApi - axios parameter creator
|
|
5130
5365
|
* @export
|
|
@@ -5195,7 +5430,7 @@ const FileApiAxiosParamCreator = function (configuration) {
|
|
|
5195
5430
|
* @param {string} [search]
|
|
5196
5431
|
* @param {string} [startDate]
|
|
5197
5432
|
* @param {string} [endDate]
|
|
5198
|
-
* @param {
|
|
5433
|
+
* @param {GetFilesDateFieldEnum} [dateField]
|
|
5199
5434
|
* @param {OrderEnum} [order]
|
|
5200
5435
|
* @param {string} [sort]
|
|
5201
5436
|
* @param {Array<FileKeywordEnum>} [keywords]
|
|
@@ -5385,7 +5620,7 @@ const FileApiFp = function (configuration) {
|
|
|
5385
5620
|
* @param {string} [search]
|
|
5386
5621
|
* @param {string} [startDate]
|
|
5387
5622
|
* @param {string} [endDate]
|
|
5388
|
-
* @param {
|
|
5623
|
+
* @param {GetFilesDateFieldEnum} [dateField]
|
|
5389
5624
|
* @param {OrderEnum} [order]
|
|
5390
5625
|
* @param {string} [sort]
|
|
5391
5626
|
* @param {Array<FileKeywordEnum>} [keywords]
|
|
@@ -5544,6 +5779,13 @@ class FileApi extends base_1.BaseAPI {
|
|
|
5544
5779
|
}
|
|
5545
5780
|
}
|
|
5546
5781
|
exports.FileApi = FileApi;
|
|
5782
|
+
/**
|
|
5783
|
+
* @export
|
|
5784
|
+
*/
|
|
5785
|
+
exports.GetFilesDateFieldEnum = {
|
|
5786
|
+
CREATED_AT: 'createdAt',
|
|
5787
|
+
UPDATED_AT: 'updatedAt'
|
|
5788
|
+
};
|
|
5547
5789
|
/**
|
|
5548
5790
|
* NotificationApi - axios parameter creator
|
|
5549
5791
|
* @export
|
|
@@ -5613,7 +5855,7 @@ const NotificationApiAxiosParamCreator = function (configuration) {
|
|
|
5613
5855
|
* @param {string} [search]
|
|
5614
5856
|
* @param {string} [startDate]
|
|
5615
5857
|
* @param {string} [endDate]
|
|
5616
|
-
* @param {
|
|
5858
|
+
* @param {GetNotificationsDateFieldEnum} [dateField]
|
|
5617
5859
|
* @param {OrderEnum} [order]
|
|
5618
5860
|
* @param {string} [sort]
|
|
5619
5861
|
* @param {string} [user]
|
|
@@ -5771,7 +6013,7 @@ const NotificationApiFp = function (configuration) {
|
|
|
5771
6013
|
* @param {string} [search]
|
|
5772
6014
|
* @param {string} [startDate]
|
|
5773
6015
|
* @param {string} [endDate]
|
|
5774
|
-
* @param {
|
|
6016
|
+
* @param {GetNotificationsDateFieldEnum} [dateField]
|
|
5775
6017
|
* @param {OrderEnum} [order]
|
|
5776
6018
|
* @param {string} [sort]
|
|
5777
6019
|
* @param {string} [user]
|
|
@@ -5924,6 +6166,13 @@ class NotificationApi extends base_1.BaseAPI {
|
|
|
5924
6166
|
}
|
|
5925
6167
|
}
|
|
5926
6168
|
exports.NotificationApi = NotificationApi;
|
|
6169
|
+
/**
|
|
6170
|
+
* @export
|
|
6171
|
+
*/
|
|
6172
|
+
exports.GetNotificationsDateFieldEnum = {
|
|
6173
|
+
CREATED_AT: 'createdAt',
|
|
6174
|
+
UPDATED_AT: 'updatedAt'
|
|
6175
|
+
};
|
|
5927
6176
|
/**
|
|
5928
6177
|
* OperationApi - axios parameter creator
|
|
5929
6178
|
* @export
|
|
@@ -6022,7 +6271,7 @@ const OperationApiAxiosParamCreator = function (configuration) {
|
|
|
6022
6271
|
* @param {string} [search]
|
|
6023
6272
|
* @param {string} [startDate]
|
|
6024
6273
|
* @param {string} [endDate]
|
|
6025
|
-
* @param {
|
|
6274
|
+
* @param {GetOperationsDateFieldEnum} [dateField]
|
|
6026
6275
|
* @param {OrderEnum} [order]
|
|
6027
6276
|
* @param {string} [sort]
|
|
6028
6277
|
* @param {string} [user]
|
|
@@ -6201,7 +6450,7 @@ const OperationApiFp = function (configuration) {
|
|
|
6201
6450
|
* @param {string} [search]
|
|
6202
6451
|
* @param {string} [startDate]
|
|
6203
6452
|
* @param {string} [endDate]
|
|
6204
|
-
* @param {
|
|
6453
|
+
* @param {GetOperationsDateFieldEnum} [dateField]
|
|
6205
6454
|
* @param {OrderEnum} [order]
|
|
6206
6455
|
* @param {string} [sort]
|
|
6207
6456
|
* @param {string} [user]
|
|
@@ -6377,6 +6626,13 @@ class OperationApi extends base_1.BaseAPI {
|
|
|
6377
6626
|
}
|
|
6378
6627
|
}
|
|
6379
6628
|
exports.OperationApi = OperationApi;
|
|
6629
|
+
/**
|
|
6630
|
+
* @export
|
|
6631
|
+
*/
|
|
6632
|
+
exports.GetOperationsDateFieldEnum = {
|
|
6633
|
+
CREATED_AT: 'createdAt',
|
|
6634
|
+
UPDATED_AT: 'updatedAt'
|
|
6635
|
+
};
|
|
6380
6636
|
/**
|
|
6381
6637
|
* OrderApi - axios parameter creator
|
|
6382
6638
|
* @export
|
|
@@ -6412,6 +6668,70 @@ const OrderApiAxiosParamCreator = function (configuration) {
|
|
|
6412
6668
|
options: localVarRequestOptions,
|
|
6413
6669
|
};
|
|
6414
6670
|
},
|
|
6671
|
+
/**
|
|
6672
|
+
*
|
|
6673
|
+
* @param {number} [page]
|
|
6674
|
+
* @param {number} [itemsPerPage]
|
|
6675
|
+
* @param {string} [search]
|
|
6676
|
+
* @param {string} [startDate]
|
|
6677
|
+
* @param {string} [endDate]
|
|
6678
|
+
* @param {GetMyOrdersDateFieldEnum} [dateField]
|
|
6679
|
+
* @param {OrderEnum} [order]
|
|
6680
|
+
* @param {string} [sort]
|
|
6681
|
+
* @param {OrderStatusEnum} [status]
|
|
6682
|
+
* @param {*} [options] Override http request option.
|
|
6683
|
+
* @throws {RequiredError}
|
|
6684
|
+
*/
|
|
6685
|
+
getMyOrders: async (page, itemsPerPage, search, startDate, endDate, dateField, order, sort, status, options = {}) => {
|
|
6686
|
+
const localVarPath = `/api/orders/my`;
|
|
6687
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6688
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6689
|
+
let baseOptions;
|
|
6690
|
+
if (configuration) {
|
|
6691
|
+
baseOptions = configuration.baseOptions;
|
|
6692
|
+
}
|
|
6693
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
6694
|
+
const localVarHeaderParameter = {};
|
|
6695
|
+
const localVarQueryParameter = {};
|
|
6696
|
+
if (page !== undefined) {
|
|
6697
|
+
localVarQueryParameter['page'] = page;
|
|
6698
|
+
}
|
|
6699
|
+
if (itemsPerPage !== undefined) {
|
|
6700
|
+
localVarQueryParameter['itemsPerPage'] = itemsPerPage;
|
|
6701
|
+
}
|
|
6702
|
+
if (search !== undefined) {
|
|
6703
|
+
localVarQueryParameter['search'] = search;
|
|
6704
|
+
}
|
|
6705
|
+
if (startDate !== undefined) {
|
|
6706
|
+
localVarQueryParameter['startDate'] = (startDate instanceof Date) ?
|
|
6707
|
+
startDate.toISOString() :
|
|
6708
|
+
startDate;
|
|
6709
|
+
}
|
|
6710
|
+
if (endDate !== undefined) {
|
|
6711
|
+
localVarQueryParameter['endDate'] = (endDate instanceof Date) ?
|
|
6712
|
+
endDate.toISOString() :
|
|
6713
|
+
endDate;
|
|
6714
|
+
}
|
|
6715
|
+
if (dateField !== undefined) {
|
|
6716
|
+
localVarQueryParameter['dateField'] = dateField;
|
|
6717
|
+
}
|
|
6718
|
+
if (order !== undefined) {
|
|
6719
|
+
localVarQueryParameter['order'] = order;
|
|
6720
|
+
}
|
|
6721
|
+
if (sort !== undefined) {
|
|
6722
|
+
localVarQueryParameter['sort'] = sort;
|
|
6723
|
+
}
|
|
6724
|
+
if (status !== undefined) {
|
|
6725
|
+
localVarQueryParameter['status'] = status;
|
|
6726
|
+
}
|
|
6727
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6728
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6729
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
6730
|
+
return {
|
|
6731
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6732
|
+
options: localVarRequestOptions,
|
|
6733
|
+
};
|
|
6734
|
+
},
|
|
6415
6735
|
/**
|
|
6416
6736
|
*
|
|
6417
6737
|
* @param {string} id
|
|
@@ -6442,21 +6762,23 @@ const OrderApiAxiosParamCreator = function (configuration) {
|
|
|
6442
6762
|
},
|
|
6443
6763
|
/**
|
|
6444
6764
|
*
|
|
6765
|
+
* @param {string} company
|
|
6445
6766
|
* @param {number} [page]
|
|
6446
6767
|
* @param {number} [itemsPerPage]
|
|
6447
6768
|
* @param {string} [search]
|
|
6448
6769
|
* @param {string} [startDate]
|
|
6449
6770
|
* @param {string} [endDate]
|
|
6450
|
-
* @param {
|
|
6771
|
+
* @param {GetOrdersDateFieldEnum} [dateField]
|
|
6451
6772
|
* @param {OrderEnum} [order]
|
|
6452
6773
|
* @param {string} [sort]
|
|
6453
|
-
* @param {string} [company]
|
|
6454
6774
|
* @param {string} [user]
|
|
6455
6775
|
* @param {OrderStatusEnum} [status]
|
|
6456
6776
|
* @param {*} [options] Override http request option.
|
|
6457
6777
|
* @throws {RequiredError}
|
|
6458
6778
|
*/
|
|
6459
|
-
getOrders: async (page, itemsPerPage, search, startDate, endDate, dateField, order, sort,
|
|
6779
|
+
getOrders: async (company, page, itemsPerPage, search, startDate, endDate, dateField, order, sort, user, status, options = {}) => {
|
|
6780
|
+
// verify required parameter 'company' is not null or undefined
|
|
6781
|
+
(0, common_1.assertParamExists)('getOrders', 'company', company);
|
|
6460
6782
|
const localVarPath = `/api/orders`;
|
|
6461
6783
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6462
6784
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -6534,6 +6856,26 @@ const OrderApiFp = function (configuration) {
|
|
|
6534
6856
|
const localVarOperationServerBasePath = base_1.operationServerMap['OrderApi.createOrder']?.[localVarOperationServerIndex]?.url;
|
|
6535
6857
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6536
6858
|
},
|
|
6859
|
+
/**
|
|
6860
|
+
*
|
|
6861
|
+
* @param {number} [page]
|
|
6862
|
+
* @param {number} [itemsPerPage]
|
|
6863
|
+
* @param {string} [search]
|
|
6864
|
+
* @param {string} [startDate]
|
|
6865
|
+
* @param {string} [endDate]
|
|
6866
|
+
* @param {GetMyOrdersDateFieldEnum} [dateField]
|
|
6867
|
+
* @param {OrderEnum} [order]
|
|
6868
|
+
* @param {string} [sort]
|
|
6869
|
+
* @param {OrderStatusEnum} [status]
|
|
6870
|
+
* @param {*} [options] Override http request option.
|
|
6871
|
+
* @throws {RequiredError}
|
|
6872
|
+
*/
|
|
6873
|
+
async getMyOrders(page, itemsPerPage, search, startDate, endDate, dateField, order, sort, status, options) {
|
|
6874
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getMyOrders(page, itemsPerPage, search, startDate, endDate, dateField, order, sort, status, options);
|
|
6875
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6876
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['OrderApi.getMyOrders']?.[localVarOperationServerIndex]?.url;
|
|
6877
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6878
|
+
},
|
|
6537
6879
|
/**
|
|
6538
6880
|
*
|
|
6539
6881
|
* @param {string} id
|
|
@@ -6548,22 +6890,22 @@ const OrderApiFp = function (configuration) {
|
|
|
6548
6890
|
},
|
|
6549
6891
|
/**
|
|
6550
6892
|
*
|
|
6893
|
+
* @param {string} company
|
|
6551
6894
|
* @param {number} [page]
|
|
6552
6895
|
* @param {number} [itemsPerPage]
|
|
6553
6896
|
* @param {string} [search]
|
|
6554
6897
|
* @param {string} [startDate]
|
|
6555
6898
|
* @param {string} [endDate]
|
|
6556
|
-
* @param {
|
|
6899
|
+
* @param {GetOrdersDateFieldEnum} [dateField]
|
|
6557
6900
|
* @param {OrderEnum} [order]
|
|
6558
6901
|
* @param {string} [sort]
|
|
6559
|
-
* @param {string} [company]
|
|
6560
6902
|
* @param {string} [user]
|
|
6561
6903
|
* @param {OrderStatusEnum} [status]
|
|
6562
6904
|
* @param {*} [options] Override http request option.
|
|
6563
6905
|
* @throws {RequiredError}
|
|
6564
6906
|
*/
|
|
6565
|
-
async getOrders(page, itemsPerPage, search, startDate, endDate, dateField, order, sort,
|
|
6566
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getOrders(page, itemsPerPage, search, startDate, endDate, dateField, order, sort,
|
|
6907
|
+
async getOrders(company, page, itemsPerPage, search, startDate, endDate, dateField, order, sort, user, status, options) {
|
|
6908
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getOrders(company, page, itemsPerPage, search, startDate, endDate, dateField, order, sort, user, status, options);
|
|
6567
6909
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6568
6910
|
const localVarOperationServerBasePath = base_1.operationServerMap['OrderApi.getOrders']?.[localVarOperationServerIndex]?.url;
|
|
6569
6911
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -6587,6 +6929,15 @@ const OrderApiFactory = function (configuration, basePath, axios) {
|
|
|
6587
6929
|
createOrder(requestParameters, options) {
|
|
6588
6930
|
return localVarFp.createOrder(requestParameters.iOrderPostRequest, options).then((request) => request(axios, basePath));
|
|
6589
6931
|
},
|
|
6932
|
+
/**
|
|
6933
|
+
*
|
|
6934
|
+
* @param {OrderApiGetMyOrdersRequest} requestParameters Request parameters.
|
|
6935
|
+
* @param {*} [options] Override http request option.
|
|
6936
|
+
* @throws {RequiredError}
|
|
6937
|
+
*/
|
|
6938
|
+
getMyOrders(requestParameters = {}, options) {
|
|
6939
|
+
return localVarFp.getMyOrders(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.status, options).then((request) => request(axios, basePath));
|
|
6940
|
+
},
|
|
6590
6941
|
/**
|
|
6591
6942
|
*
|
|
6592
6943
|
* @param {OrderApiGetOrderByIdRequest} requestParameters Request parameters.
|
|
@@ -6602,8 +6953,8 @@ const OrderApiFactory = function (configuration, basePath, axios) {
|
|
|
6602
6953
|
* @param {*} [options] Override http request option.
|
|
6603
6954
|
* @throws {RequiredError}
|
|
6604
6955
|
*/
|
|
6605
|
-
getOrders(requestParameters
|
|
6606
|
-
return localVarFp.getOrders(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.
|
|
6956
|
+
getOrders(requestParameters, options) {
|
|
6957
|
+
return localVarFp.getOrders(requestParameters.company, requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.user, requestParameters.status, options).then((request) => request(axios, basePath));
|
|
6607
6958
|
},
|
|
6608
6959
|
};
|
|
6609
6960
|
};
|
|
@@ -6625,6 +6976,16 @@ class OrderApi extends base_1.BaseAPI {
|
|
|
6625
6976
|
createOrder(requestParameters, options) {
|
|
6626
6977
|
return (0, exports.OrderApiFp)(this.configuration).createOrder(requestParameters.iOrderPostRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6627
6978
|
}
|
|
6979
|
+
/**
|
|
6980
|
+
*
|
|
6981
|
+
* @param {OrderApiGetMyOrdersRequest} requestParameters Request parameters.
|
|
6982
|
+
* @param {*} [options] Override http request option.
|
|
6983
|
+
* @throws {RequiredError}
|
|
6984
|
+
* @memberof OrderApi
|
|
6985
|
+
*/
|
|
6986
|
+
getMyOrders(requestParameters = {}, options) {
|
|
6987
|
+
return (0, exports.OrderApiFp)(this.configuration).getMyOrders(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.status, options).then((request) => request(this.axios, this.basePath));
|
|
6988
|
+
}
|
|
6628
6989
|
/**
|
|
6629
6990
|
*
|
|
6630
6991
|
* @param {OrderApiGetOrderByIdRequest} requestParameters Request parameters.
|
|
@@ -6642,11 +7003,25 @@ class OrderApi extends base_1.BaseAPI {
|
|
|
6642
7003
|
* @throws {RequiredError}
|
|
6643
7004
|
* @memberof OrderApi
|
|
6644
7005
|
*/
|
|
6645
|
-
getOrders(requestParameters
|
|
6646
|
-
return (0, exports.OrderApiFp)(this.configuration).getOrders(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.
|
|
7006
|
+
getOrders(requestParameters, options) {
|
|
7007
|
+
return (0, exports.OrderApiFp)(this.configuration).getOrders(requestParameters.company, requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.user, requestParameters.status, options).then((request) => request(this.axios, this.basePath));
|
|
6647
7008
|
}
|
|
6648
7009
|
}
|
|
6649
7010
|
exports.OrderApi = OrderApi;
|
|
7011
|
+
/**
|
|
7012
|
+
* @export
|
|
7013
|
+
*/
|
|
7014
|
+
exports.GetMyOrdersDateFieldEnum = {
|
|
7015
|
+
CREATED_AT: 'createdAt',
|
|
7016
|
+
UPDATED_AT: 'updatedAt'
|
|
7017
|
+
};
|
|
7018
|
+
/**
|
|
7019
|
+
* @export
|
|
7020
|
+
*/
|
|
7021
|
+
exports.GetOrdersDateFieldEnum = {
|
|
7022
|
+
CREATED_AT: 'createdAt',
|
|
7023
|
+
UPDATED_AT: 'updatedAt'
|
|
7024
|
+
};
|
|
6650
7025
|
/**
|
|
6651
7026
|
* PageApi - axios parameter creator
|
|
6652
7027
|
* @export
|
|
@@ -6865,7 +7240,7 @@ const PageApiAxiosParamCreator = function (configuration) {
|
|
|
6865
7240
|
* @param {string} [search]
|
|
6866
7241
|
* @param {string} [startDate]
|
|
6867
7242
|
* @param {string} [endDate]
|
|
6868
|
-
* @param {
|
|
7243
|
+
* @param {GetPagesDateFieldEnum} [dateField]
|
|
6869
7244
|
* @param {OrderEnum} [order]
|
|
6870
7245
|
* @param {string} [sort]
|
|
6871
7246
|
* @param {string} [companyId]
|
|
@@ -7095,7 +7470,7 @@ const PageApiFp = function (configuration) {
|
|
|
7095
7470
|
* @param {string} [search]
|
|
7096
7471
|
* @param {string} [startDate]
|
|
7097
7472
|
* @param {string} [endDate]
|
|
7098
|
-
* @param {
|
|
7473
|
+
* @param {GetPagesDateFieldEnum} [dateField]
|
|
7099
7474
|
* @param {OrderEnum} [order]
|
|
7100
7475
|
* @param {string} [sort]
|
|
7101
7476
|
* @param {string} [companyId]
|
|
@@ -7329,6 +7704,13 @@ class PageApi extends base_1.BaseAPI {
|
|
|
7329
7704
|
}
|
|
7330
7705
|
}
|
|
7331
7706
|
exports.PageApi = PageApi;
|
|
7707
|
+
/**
|
|
7708
|
+
* @export
|
|
7709
|
+
*/
|
|
7710
|
+
exports.GetPagesDateFieldEnum = {
|
|
7711
|
+
CREATED_AT: 'createdAt',
|
|
7712
|
+
UPDATED_AT: 'updatedAt'
|
|
7713
|
+
};
|
|
7332
7714
|
/**
|
|
7333
7715
|
* PlanApi - axios parameter creator
|
|
7334
7716
|
* @export
|
|
@@ -7427,7 +7809,7 @@ const PlanApiAxiosParamCreator = function (configuration) {
|
|
|
7427
7809
|
* @param {string} [search]
|
|
7428
7810
|
* @param {string} [startDate]
|
|
7429
7811
|
* @param {string} [endDate]
|
|
7430
|
-
* @param {
|
|
7812
|
+
* @param {GetPlansDateFieldEnum} [dateField]
|
|
7431
7813
|
* @param {OrderEnum} [order]
|
|
7432
7814
|
* @param {string} [sort]
|
|
7433
7815
|
* @param {PlanStatusEnum} [status]
|
|
@@ -7574,7 +7956,7 @@ const PlanApiFp = function (configuration) {
|
|
|
7574
7956
|
* @param {string} [search]
|
|
7575
7957
|
* @param {string} [startDate]
|
|
7576
7958
|
* @param {string} [endDate]
|
|
7577
|
-
* @param {
|
|
7959
|
+
* @param {GetPlansDateFieldEnum} [dateField]
|
|
7578
7960
|
* @param {OrderEnum} [order]
|
|
7579
7961
|
* @param {string} [sort]
|
|
7580
7962
|
* @param {PlanStatusEnum} [status]
|
|
@@ -7718,6 +8100,13 @@ class PlanApi extends base_1.BaseAPI {
|
|
|
7718
8100
|
}
|
|
7719
8101
|
}
|
|
7720
8102
|
exports.PlanApi = PlanApi;
|
|
8103
|
+
/**
|
|
8104
|
+
* @export
|
|
8105
|
+
*/
|
|
8106
|
+
exports.GetPlansDateFieldEnum = {
|
|
8107
|
+
CREATED_AT: 'createdAt',
|
|
8108
|
+
UPDATED_AT: 'updatedAt'
|
|
8109
|
+
};
|
|
7721
8110
|
/**
|
|
7722
8111
|
* ProductApi - axios parameter creator
|
|
7723
8112
|
* @export
|
|
@@ -7924,7 +8313,7 @@ const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
7924
8313
|
* @param {string} [search]
|
|
7925
8314
|
* @param {string} [startDate]
|
|
7926
8315
|
* @param {string} [endDate]
|
|
7927
|
-
* @param {
|
|
8316
|
+
* @param {GetProductsDateFieldEnum} [dateField]
|
|
7928
8317
|
* @param {OrderEnum} [order]
|
|
7929
8318
|
* @param {string} [sort]
|
|
7930
8319
|
* @param {string} [companyId]
|
|
@@ -8166,7 +8555,7 @@ const ProductApiFp = function (configuration) {
|
|
|
8166
8555
|
* @param {string} [search]
|
|
8167
8556
|
* @param {string} [startDate]
|
|
8168
8557
|
* @param {string} [endDate]
|
|
8169
|
-
* @param {
|
|
8558
|
+
* @param {GetProductsDateFieldEnum} [dateField]
|
|
8170
8559
|
* @param {OrderEnum} [order]
|
|
8171
8560
|
* @param {string} [sort]
|
|
8172
8561
|
* @param {string} [companyId]
|
|
@@ -8404,6 +8793,13 @@ class ProductApi extends base_1.BaseAPI {
|
|
|
8404
8793
|
}
|
|
8405
8794
|
}
|
|
8406
8795
|
exports.ProductApi = ProductApi;
|
|
8796
|
+
/**
|
|
8797
|
+
* @export
|
|
8798
|
+
*/
|
|
8799
|
+
exports.GetProductsDateFieldEnum = {
|
|
8800
|
+
CREATED_AT: 'createdAt',
|
|
8801
|
+
UPDATED_AT: 'updatedAt'
|
|
8802
|
+
};
|
|
8407
8803
|
/**
|
|
8408
8804
|
* SitemapApi - axios parameter creator
|
|
8409
8805
|
* @export
|
|
@@ -9426,7 +9822,7 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
9426
9822
|
* @param {string} [search]
|
|
9427
9823
|
* @param {string} [startDate]
|
|
9428
9824
|
* @param {string} [endDate]
|
|
9429
|
-
* @param {
|
|
9825
|
+
* @param {GetUsersDateFieldEnum} [dateField]
|
|
9430
9826
|
* @param {OrderEnum} [order]
|
|
9431
9827
|
* @param {string} [sort]
|
|
9432
9828
|
* @param {UserStatusEnum} [status]
|
|
@@ -9675,7 +10071,7 @@ const UserApiFp = function (configuration) {
|
|
|
9675
10071
|
* @param {string} [search]
|
|
9676
10072
|
* @param {string} [startDate]
|
|
9677
10073
|
* @param {string} [endDate]
|
|
9678
|
-
* @param {
|
|
10074
|
+
* @param {GetUsersDateFieldEnum} [dateField]
|
|
9679
10075
|
* @param {OrderEnum} [order]
|
|
9680
10076
|
* @param {string} [sort]
|
|
9681
10077
|
* @param {UserStatusEnum} [status]
|
|
@@ -9944,3 +10340,10 @@ class UserApi extends base_1.BaseAPI {
|
|
|
9944
10340
|
}
|
|
9945
10341
|
}
|
|
9946
10342
|
exports.UserApi = UserApi;
|
|
10343
|
+
/**
|
|
10344
|
+
* @export
|
|
10345
|
+
*/
|
|
10346
|
+
exports.GetUsersDateFieldEnum = {
|
|
10347
|
+
CREATED_AT: 'createdAt',
|
|
10348
|
+
UPDATED_AT: 'updatedAt'
|
|
10349
|
+
};
|