@infisale-client/api 1.3.27 → 1.3.29
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 +102 -33
- package/dist/api/api.js +95 -31
- package/dist/api/api.mjs +95 -31
- package/package.json +2 -2
package/dist/api/api.d.ts
CHANGED
|
@@ -656,19 +656,6 @@ export interface IBasketCountResponse {
|
|
|
656
656
|
*/
|
|
657
657
|
'productCount': number;
|
|
658
658
|
}
|
|
659
|
-
/**
|
|
660
|
-
*
|
|
661
|
-
* @export
|
|
662
|
-
* @interface IBasketDeleteRequest
|
|
663
|
-
*/
|
|
664
|
-
export interface IBasketDeleteRequest {
|
|
665
|
-
/**
|
|
666
|
-
*
|
|
667
|
-
* @type {string}
|
|
668
|
-
* @memberof IBasketDeleteRequest
|
|
669
|
-
*/
|
|
670
|
-
'basketId': string;
|
|
671
|
-
}
|
|
672
659
|
/**
|
|
673
660
|
*
|
|
674
661
|
* @export
|
|
@@ -860,12 +847,6 @@ export interface IBasketUpdateAmountRequest {
|
|
|
860
847
|
* @memberof IBasketUpdateAmountRequest
|
|
861
848
|
*/
|
|
862
849
|
'amount': number;
|
|
863
|
-
/**
|
|
864
|
-
*
|
|
865
|
-
* @type {string}
|
|
866
|
-
* @memberof IBasketUpdateAmountRequest
|
|
867
|
-
*/
|
|
868
|
-
'basketId': string;
|
|
869
850
|
}
|
|
870
851
|
/**
|
|
871
852
|
*
|
|
@@ -9113,6 +9094,44 @@ export interface IUrlRedirect {
|
|
|
9113
9094
|
*/
|
|
9114
9095
|
'to': string;
|
|
9115
9096
|
}
|
|
9097
|
+
/**
|
|
9098
|
+
*
|
|
9099
|
+
* @export
|
|
9100
|
+
* @interface IUrlRedirectBulkCreateRequest
|
|
9101
|
+
*/
|
|
9102
|
+
export interface IUrlRedirectBulkCreateRequest {
|
|
9103
|
+
/**
|
|
9104
|
+
*
|
|
9105
|
+
* @type {string}
|
|
9106
|
+
* @memberof IUrlRedirectBulkCreateRequest
|
|
9107
|
+
*/
|
|
9108
|
+
'company': string;
|
|
9109
|
+
/**
|
|
9110
|
+
*
|
|
9111
|
+
* @type {Array<IUrlRedirectBulkCreateRequestUrlRedirectsInner>}
|
|
9112
|
+
* @memberof IUrlRedirectBulkCreateRequest
|
|
9113
|
+
*/
|
|
9114
|
+
'urlRedirects': Array<IUrlRedirectBulkCreateRequestUrlRedirectsInner>;
|
|
9115
|
+
}
|
|
9116
|
+
/**
|
|
9117
|
+
*
|
|
9118
|
+
* @export
|
|
9119
|
+
* @interface IUrlRedirectBulkCreateRequestUrlRedirectsInner
|
|
9120
|
+
*/
|
|
9121
|
+
export interface IUrlRedirectBulkCreateRequestUrlRedirectsInner {
|
|
9122
|
+
/**
|
|
9123
|
+
*
|
|
9124
|
+
* @type {string}
|
|
9125
|
+
* @memberof IUrlRedirectBulkCreateRequestUrlRedirectsInner
|
|
9126
|
+
*/
|
|
9127
|
+
'to': string;
|
|
9128
|
+
/**
|
|
9129
|
+
*
|
|
9130
|
+
* @type {string}
|
|
9131
|
+
* @memberof IUrlRedirectBulkCreateRequestUrlRedirectsInner
|
|
9132
|
+
*/
|
|
9133
|
+
'from': string;
|
|
9134
|
+
}
|
|
9116
9135
|
/**
|
|
9117
9136
|
*
|
|
9118
9137
|
* @export
|
|
@@ -9166,7 +9185,7 @@ export interface IUrlRedirectCollectionQueryParams {
|
|
|
9166
9185
|
* @type {string}
|
|
9167
9186
|
* @memberof IUrlRedirectCollectionQueryParams
|
|
9168
9187
|
*/
|
|
9169
|
-
'
|
|
9188
|
+
'companyId': string;
|
|
9170
9189
|
/**
|
|
9171
9190
|
*
|
|
9172
9191
|
* @type {string}
|
|
@@ -13447,11 +13466,11 @@ export declare const BasketApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
13447
13466
|
/**
|
|
13448
13467
|
*
|
|
13449
13468
|
* @param {string} itemId
|
|
13450
|
-
* @param {
|
|
13469
|
+
* @param {string} basketId
|
|
13451
13470
|
* @param {*} [options] Override http request option.
|
|
13452
13471
|
* @throws {RequiredError}
|
|
13453
13472
|
*/
|
|
13454
|
-
deleteProductFromBasket: (itemId: string,
|
|
13473
|
+
deleteProductFromBasket: (itemId: string, basketId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
13455
13474
|
/**
|
|
13456
13475
|
*
|
|
13457
13476
|
* @param {string} [id]
|
|
@@ -13476,11 +13495,12 @@ export declare const BasketApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
13476
13495
|
/**
|
|
13477
13496
|
*
|
|
13478
13497
|
* @param {string} itemId
|
|
13498
|
+
* @param {string} basketId
|
|
13479
13499
|
* @param {IBasketUpdateAmountRequest} iBasketUpdateAmountRequest
|
|
13480
13500
|
* @param {*} [options] Override http request option.
|
|
13481
13501
|
* @throws {RequiredError}
|
|
13482
13502
|
*/
|
|
13483
|
-
updateAmount: (itemId: string, iBasketUpdateAmountRequest: IBasketUpdateAmountRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
13503
|
+
updateAmount: (itemId: string, basketId: string, iBasketUpdateAmountRequest: IBasketUpdateAmountRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
13484
13504
|
};
|
|
13485
13505
|
/**
|
|
13486
13506
|
* BasketApi - functional programming interface
|
|
@@ -13497,11 +13517,11 @@ export declare const BasketApiFp: (configuration?: Configuration) => {
|
|
|
13497
13517
|
/**
|
|
13498
13518
|
*
|
|
13499
13519
|
* @param {string} itemId
|
|
13500
|
-
* @param {
|
|
13520
|
+
* @param {string} basketId
|
|
13501
13521
|
* @param {*} [options] Override http request option.
|
|
13502
13522
|
* @throws {RequiredError}
|
|
13503
13523
|
*/
|
|
13504
|
-
deleteProductFromBasket(itemId: string,
|
|
13524
|
+
deleteProductFromBasket(itemId: string, basketId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
13505
13525
|
/**
|
|
13506
13526
|
*
|
|
13507
13527
|
* @param {string} [id]
|
|
@@ -13526,11 +13546,12 @@ export declare const BasketApiFp: (configuration?: Configuration) => {
|
|
|
13526
13546
|
/**
|
|
13527
13547
|
*
|
|
13528
13548
|
* @param {string} itemId
|
|
13549
|
+
* @param {string} basketId
|
|
13529
13550
|
* @param {IBasketUpdateAmountRequest} iBasketUpdateAmountRequest
|
|
13530
13551
|
* @param {*} [options] Override http request option.
|
|
13531
13552
|
* @throws {RequiredError}
|
|
13532
13553
|
*/
|
|
13533
|
-
updateAmount(itemId: string, iBasketUpdateAmountRequest: IBasketUpdateAmountRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
13554
|
+
updateAmount(itemId: string, basketId: string, iBasketUpdateAmountRequest: IBasketUpdateAmountRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
13534
13555
|
};
|
|
13535
13556
|
/**
|
|
13536
13557
|
* BasketApi - factory interface
|
|
@@ -13607,10 +13628,10 @@ export interface BasketApiDeleteProductFromBasketRequest {
|
|
|
13607
13628
|
readonly itemId: string;
|
|
13608
13629
|
/**
|
|
13609
13630
|
*
|
|
13610
|
-
* @type {
|
|
13631
|
+
* @type {string}
|
|
13611
13632
|
* @memberof BasketApiDeleteProductFromBasket
|
|
13612
13633
|
*/
|
|
13613
|
-
readonly
|
|
13634
|
+
readonly basketId: string;
|
|
13614
13635
|
}
|
|
13615
13636
|
/**
|
|
13616
13637
|
* Request parameters for getBasket operation in BasketApi.
|
|
@@ -13663,6 +13684,12 @@ export interface BasketApiUpdateAmountRequest {
|
|
|
13663
13684
|
* @memberof BasketApiUpdateAmount
|
|
13664
13685
|
*/
|
|
13665
13686
|
readonly itemId: string;
|
|
13687
|
+
/**
|
|
13688
|
+
*
|
|
13689
|
+
* @type {string}
|
|
13690
|
+
* @memberof BasketApiUpdateAmount
|
|
13691
|
+
*/
|
|
13692
|
+
readonly basketId: string;
|
|
13666
13693
|
/**
|
|
13667
13694
|
*
|
|
13668
13695
|
* @type {IBasketUpdateAmountRequest}
|
|
@@ -22483,6 +22510,13 @@ export type GetUniquePagesDateFieldEnum = typeof GetUniquePagesDateFieldEnum[key
|
|
|
22483
22510
|
* @export
|
|
22484
22511
|
*/
|
|
22485
22512
|
export declare const UrlRedirectApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
22513
|
+
/**
|
|
22514
|
+
*
|
|
22515
|
+
* @param {IUrlRedirectBulkCreateRequest} iUrlRedirectBulkCreateRequest
|
|
22516
|
+
* @param {*} [options] Override http request option.
|
|
22517
|
+
* @throws {RequiredError}
|
|
22518
|
+
*/
|
|
22519
|
+
createBulkUrlRedirects: (iUrlRedirectBulkCreateRequest: IUrlRedirectBulkCreateRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
22486
22520
|
/**
|
|
22487
22521
|
*
|
|
22488
22522
|
* @param {IUrlRedirectPostRequest} iUrlRedirectPostRequest
|
|
@@ -22514,7 +22548,7 @@ export declare const UrlRedirectApiAxiosParamCreator: (configuration?: Configura
|
|
|
22514
22548
|
getUrlRedirectBySource: (from: string, companyId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
22515
22549
|
/**
|
|
22516
22550
|
*
|
|
22517
|
-
* @param {string}
|
|
22551
|
+
* @param {string} companyId
|
|
22518
22552
|
* @param {OrderEnum} [order]
|
|
22519
22553
|
* @param {number} [page]
|
|
22520
22554
|
* @param {number} [itemsPerPage]
|
|
@@ -22527,7 +22561,7 @@ export declare const UrlRedirectApiAxiosParamCreator: (configuration?: Configura
|
|
|
22527
22561
|
* @param {*} [options] Override http request option.
|
|
22528
22562
|
* @throws {RequiredError}
|
|
22529
22563
|
*/
|
|
22530
|
-
getUrlRedirects: (
|
|
22564
|
+
getUrlRedirects: (companyId: string, order?: OrderEnum, page?: number, itemsPerPage?: number, search?: string, startDate?: string, endDate?: string, dateField?: GetUrlRedirectsDateFieldEnum, createdAt?: string, sort?: GetUrlRedirectsSortEnum, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
22531
22565
|
/**
|
|
22532
22566
|
*
|
|
22533
22567
|
* @param {string} id
|
|
@@ -22542,6 +22576,13 @@ export declare const UrlRedirectApiAxiosParamCreator: (configuration?: Configura
|
|
|
22542
22576
|
* @export
|
|
22543
22577
|
*/
|
|
22544
22578
|
export declare const UrlRedirectApiFp: (configuration?: Configuration) => {
|
|
22579
|
+
/**
|
|
22580
|
+
*
|
|
22581
|
+
* @param {IUrlRedirectBulkCreateRequest} iUrlRedirectBulkCreateRequest
|
|
22582
|
+
* @param {*} [options] Override http request option.
|
|
22583
|
+
* @throws {RequiredError}
|
|
22584
|
+
*/
|
|
22585
|
+
createBulkUrlRedirects(iUrlRedirectBulkCreateRequest: IUrlRedirectBulkCreateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
22545
22586
|
/**
|
|
22546
22587
|
*
|
|
22547
22588
|
* @param {IUrlRedirectPostRequest} iUrlRedirectPostRequest
|
|
@@ -22573,7 +22614,7 @@ export declare const UrlRedirectApiFp: (configuration?: Configuration) => {
|
|
|
22573
22614
|
getUrlRedirectBySource(from: string, companyId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IUrlRedirectResponse>>;
|
|
22574
22615
|
/**
|
|
22575
22616
|
*
|
|
22576
|
-
* @param {string}
|
|
22617
|
+
* @param {string} companyId
|
|
22577
22618
|
* @param {OrderEnum} [order]
|
|
22578
22619
|
* @param {number} [page]
|
|
22579
22620
|
* @param {number} [itemsPerPage]
|
|
@@ -22586,7 +22627,7 @@ export declare const UrlRedirectApiFp: (configuration?: Configuration) => {
|
|
|
22586
22627
|
* @param {*} [options] Override http request option.
|
|
22587
22628
|
* @throws {RequiredError}
|
|
22588
22629
|
*/
|
|
22589
|
-
getUrlRedirects(
|
|
22630
|
+
getUrlRedirects(companyId: string, order?: OrderEnum, page?: number, itemsPerPage?: number, search?: string, startDate?: string, endDate?: string, dateField?: GetUrlRedirectsDateFieldEnum, createdAt?: string, sort?: GetUrlRedirectsSortEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IUrlRedirectsResponse>>;
|
|
22590
22631
|
/**
|
|
22591
22632
|
*
|
|
22592
22633
|
* @param {string} id
|
|
@@ -22601,6 +22642,13 @@ export declare const UrlRedirectApiFp: (configuration?: Configuration) => {
|
|
|
22601
22642
|
* @export
|
|
22602
22643
|
*/
|
|
22603
22644
|
export declare const UrlRedirectApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
22645
|
+
/**
|
|
22646
|
+
*
|
|
22647
|
+
* @param {UrlRedirectApiCreateBulkUrlRedirectsRequest} requestParameters Request parameters.
|
|
22648
|
+
* @param {*} [options] Override http request option.
|
|
22649
|
+
* @throws {RequiredError}
|
|
22650
|
+
*/
|
|
22651
|
+
createBulkUrlRedirects(requestParameters: UrlRedirectApiCreateBulkUrlRedirectsRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
22604
22652
|
/**
|
|
22605
22653
|
*
|
|
22606
22654
|
* @param {UrlRedirectApiCreateUrlRedirectRequest} requestParameters Request parameters.
|
|
@@ -22644,6 +22692,19 @@ export declare const UrlRedirectApiFactory: (configuration?: Configuration, base
|
|
|
22644
22692
|
*/
|
|
22645
22693
|
updateUrlRedirect(requestParameters: UrlRedirectApiUpdateUrlRedirectRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
22646
22694
|
};
|
|
22695
|
+
/**
|
|
22696
|
+
* Request parameters for createBulkUrlRedirects operation in UrlRedirectApi.
|
|
22697
|
+
* @export
|
|
22698
|
+
* @interface UrlRedirectApiCreateBulkUrlRedirectsRequest
|
|
22699
|
+
*/
|
|
22700
|
+
export interface UrlRedirectApiCreateBulkUrlRedirectsRequest {
|
|
22701
|
+
/**
|
|
22702
|
+
*
|
|
22703
|
+
* @type {IUrlRedirectBulkCreateRequest}
|
|
22704
|
+
* @memberof UrlRedirectApiCreateBulkUrlRedirects
|
|
22705
|
+
*/
|
|
22706
|
+
readonly iUrlRedirectBulkCreateRequest: IUrlRedirectBulkCreateRequest;
|
|
22707
|
+
}
|
|
22647
22708
|
/**
|
|
22648
22709
|
* Request parameters for createUrlRedirect operation in UrlRedirectApi.
|
|
22649
22710
|
* @export
|
|
@@ -22713,7 +22774,7 @@ export interface UrlRedirectApiGetUrlRedirectsRequest {
|
|
|
22713
22774
|
* @type {string}
|
|
22714
22775
|
* @memberof UrlRedirectApiGetUrlRedirects
|
|
22715
22776
|
*/
|
|
22716
|
-
readonly
|
|
22777
|
+
readonly companyId: string;
|
|
22717
22778
|
/**
|
|
22718
22779
|
*
|
|
22719
22780
|
* @type {OrderEnum}
|
|
@@ -22795,6 +22856,14 @@ export interface UrlRedirectApiUpdateUrlRedirectRequest {
|
|
|
22795
22856
|
* @extends {BaseAPI}
|
|
22796
22857
|
*/
|
|
22797
22858
|
export declare class UrlRedirectApi extends BaseAPI {
|
|
22859
|
+
/**
|
|
22860
|
+
*
|
|
22861
|
+
* @param {UrlRedirectApiCreateBulkUrlRedirectsRequest} requestParameters Request parameters.
|
|
22862
|
+
* @param {*} [options] Override http request option.
|
|
22863
|
+
* @throws {RequiredError}
|
|
22864
|
+
* @memberof UrlRedirectApi
|
|
22865
|
+
*/
|
|
22866
|
+
createBulkUrlRedirects(requestParameters: UrlRedirectApiCreateBulkUrlRedirectsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
22798
22867
|
/**
|
|
22799
22868
|
*
|
|
22800
22869
|
* @param {UrlRedirectApiCreateUrlRedirectRequest} requestParameters Request parameters.
|
package/dist/api/api.js
CHANGED
|
@@ -1515,17 +1515,18 @@ const BasketApiAxiosParamCreator = function (configuration) {
|
|
|
1515
1515
|
/**
|
|
1516
1516
|
*
|
|
1517
1517
|
* @param {string} itemId
|
|
1518
|
-
* @param {
|
|
1518
|
+
* @param {string} basketId
|
|
1519
1519
|
* @param {*} [options] Override http request option.
|
|
1520
1520
|
* @throws {RequiredError}
|
|
1521
1521
|
*/
|
|
1522
|
-
deleteProductFromBasket: async (itemId,
|
|
1522
|
+
deleteProductFromBasket: async (itemId, basketId, options = {}) => {
|
|
1523
1523
|
// verify required parameter 'itemId' is not null or undefined
|
|
1524
1524
|
(0, common_1.assertParamExists)('deleteProductFromBasket', 'itemId', itemId);
|
|
1525
|
-
// verify required parameter '
|
|
1526
|
-
(0, common_1.assertParamExists)('deleteProductFromBasket', '
|
|
1527
|
-
const localVarPath = `/api/baskets/delete-product/{item_id}`
|
|
1528
|
-
.replace(`{${"item_id"}}`, encodeURIComponent(String(itemId)))
|
|
1525
|
+
// verify required parameter 'basketId' is not null or undefined
|
|
1526
|
+
(0, common_1.assertParamExists)('deleteProductFromBasket', 'basketId', basketId);
|
|
1527
|
+
const localVarPath = `/api/baskets/{basket_id}/delete-product/{item_id}`
|
|
1528
|
+
.replace(`{${"item_id"}}`, encodeURIComponent(String(itemId)))
|
|
1529
|
+
.replace(`{${"basket_id"}}`, encodeURIComponent(String(basketId)));
|
|
1529
1530
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1530
1531
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1531
1532
|
let baseOptions;
|
|
@@ -1535,11 +1536,9 @@ const BasketApiAxiosParamCreator = function (configuration) {
|
|
|
1535
1536
|
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
1536
1537
|
const localVarHeaderParameter = {};
|
|
1537
1538
|
const localVarQueryParameter = {};
|
|
1538
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1539
1539
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1540
1540
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1541
1541
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1542
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(iBasketDeleteRequest, localVarRequestOptions, configuration);
|
|
1543
1542
|
return {
|
|
1544
1543
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1545
1544
|
options: localVarRequestOptions,
|
|
@@ -1633,17 +1632,21 @@ const BasketApiAxiosParamCreator = function (configuration) {
|
|
|
1633
1632
|
/**
|
|
1634
1633
|
*
|
|
1635
1634
|
* @param {string} itemId
|
|
1635
|
+
* @param {string} basketId
|
|
1636
1636
|
* @param {IBasketUpdateAmountRequest} iBasketUpdateAmountRequest
|
|
1637
1637
|
* @param {*} [options] Override http request option.
|
|
1638
1638
|
* @throws {RequiredError}
|
|
1639
1639
|
*/
|
|
1640
|
-
updateAmount: async (itemId, iBasketUpdateAmountRequest, options = {}) => {
|
|
1640
|
+
updateAmount: async (itemId, basketId, iBasketUpdateAmountRequest, options = {}) => {
|
|
1641
1641
|
// verify required parameter 'itemId' is not null or undefined
|
|
1642
1642
|
(0, common_1.assertParamExists)('updateAmount', 'itemId', itemId);
|
|
1643
|
+
// verify required parameter 'basketId' is not null or undefined
|
|
1644
|
+
(0, common_1.assertParamExists)('updateAmount', 'basketId', basketId);
|
|
1643
1645
|
// verify required parameter 'iBasketUpdateAmountRequest' is not null or undefined
|
|
1644
1646
|
(0, common_1.assertParamExists)('updateAmount', 'iBasketUpdateAmountRequest', iBasketUpdateAmountRequest);
|
|
1645
|
-
const localVarPath = `/api/baskets/update-amount/{item_id}`
|
|
1646
|
-
.replace(`{${"item_id"}}`, encodeURIComponent(String(itemId)))
|
|
1647
|
+
const localVarPath = `/api/baskets/{basket_id}/update-amount/{item_id}`
|
|
1648
|
+
.replace(`{${"item_id"}}`, encodeURIComponent(String(itemId)))
|
|
1649
|
+
.replace(`{${"basket_id"}}`, encodeURIComponent(String(basketId)));
|
|
1647
1650
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1648
1651
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1649
1652
|
let baseOptions;
|
|
@@ -1688,12 +1691,12 @@ const BasketApiFp = function (configuration) {
|
|
|
1688
1691
|
/**
|
|
1689
1692
|
*
|
|
1690
1693
|
* @param {string} itemId
|
|
1691
|
-
* @param {
|
|
1694
|
+
* @param {string} basketId
|
|
1692
1695
|
* @param {*} [options] Override http request option.
|
|
1693
1696
|
* @throws {RequiredError}
|
|
1694
1697
|
*/
|
|
1695
|
-
async deleteProductFromBasket(itemId,
|
|
1696
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteProductFromBasket(itemId,
|
|
1698
|
+
async deleteProductFromBasket(itemId, basketId, options) {
|
|
1699
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteProductFromBasket(itemId, basketId, options);
|
|
1697
1700
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1698
1701
|
const localVarOperationServerBasePath = base_1.operationServerMap['BasketApi.deleteProductFromBasket']?.[localVarOperationServerIndex]?.url;
|
|
1699
1702
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1737,12 +1740,13 @@ const BasketApiFp = function (configuration) {
|
|
|
1737
1740
|
/**
|
|
1738
1741
|
*
|
|
1739
1742
|
* @param {string} itemId
|
|
1743
|
+
* @param {string} basketId
|
|
1740
1744
|
* @param {IBasketUpdateAmountRequest} iBasketUpdateAmountRequest
|
|
1741
1745
|
* @param {*} [options] Override http request option.
|
|
1742
1746
|
* @throws {RequiredError}
|
|
1743
1747
|
*/
|
|
1744
|
-
async updateAmount(itemId, iBasketUpdateAmountRequest, options) {
|
|
1745
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.updateAmount(itemId, iBasketUpdateAmountRequest, options);
|
|
1748
|
+
async updateAmount(itemId, basketId, iBasketUpdateAmountRequest, options) {
|
|
1749
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateAmount(itemId, basketId, iBasketUpdateAmountRequest, options);
|
|
1746
1750
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1747
1751
|
const localVarOperationServerBasePath = base_1.operationServerMap['BasketApi.updateAmount']?.[localVarOperationServerIndex]?.url;
|
|
1748
1752
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1773,7 +1777,7 @@ const BasketApiFactory = function (configuration, basePath, axios) {
|
|
|
1773
1777
|
* @throws {RequiredError}
|
|
1774
1778
|
*/
|
|
1775
1779
|
deleteProductFromBasket(requestParameters, options) {
|
|
1776
|
-
return localVarFp.deleteProductFromBasket(requestParameters.itemId, requestParameters.
|
|
1780
|
+
return localVarFp.deleteProductFromBasket(requestParameters.itemId, requestParameters.basketId, options).then((request) => request(axios, basePath));
|
|
1777
1781
|
},
|
|
1778
1782
|
/**
|
|
1779
1783
|
*
|
|
@@ -1809,7 +1813,7 @@ const BasketApiFactory = function (configuration, basePath, axios) {
|
|
|
1809
1813
|
* @throws {RequiredError}
|
|
1810
1814
|
*/
|
|
1811
1815
|
updateAmount(requestParameters, options) {
|
|
1812
|
-
return localVarFp.updateAmount(requestParameters.itemId, requestParameters.iBasketUpdateAmountRequest, options).then((request) => request(axios, basePath));
|
|
1816
|
+
return localVarFp.updateAmount(requestParameters.itemId, requestParameters.basketId, requestParameters.iBasketUpdateAmountRequest, options).then((request) => request(axios, basePath));
|
|
1813
1817
|
},
|
|
1814
1818
|
};
|
|
1815
1819
|
};
|
|
@@ -1839,7 +1843,7 @@ class BasketApi extends base_1.BaseAPI {
|
|
|
1839
1843
|
* @memberof BasketApi
|
|
1840
1844
|
*/
|
|
1841
1845
|
deleteProductFromBasket(requestParameters, options) {
|
|
1842
|
-
return (0, exports.BasketApiFp)(this.configuration).deleteProductFromBasket(requestParameters.itemId, requestParameters.
|
|
1846
|
+
return (0, exports.BasketApiFp)(this.configuration).deleteProductFromBasket(requestParameters.itemId, requestParameters.basketId, options).then((request) => request(this.axios, this.basePath));
|
|
1843
1847
|
}
|
|
1844
1848
|
/**
|
|
1845
1849
|
*
|
|
@@ -1879,7 +1883,7 @@ class BasketApi extends base_1.BaseAPI {
|
|
|
1879
1883
|
* @memberof BasketApi
|
|
1880
1884
|
*/
|
|
1881
1885
|
updateAmount(requestParameters, options) {
|
|
1882
|
-
return (0, exports.BasketApiFp)(this.configuration).updateAmount(requestParameters.itemId, requestParameters.iBasketUpdateAmountRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1886
|
+
return (0, exports.BasketApiFp)(this.configuration).updateAmount(requestParameters.itemId, requestParameters.basketId, requestParameters.iBasketUpdateAmountRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1883
1887
|
}
|
|
1884
1888
|
}
|
|
1885
1889
|
exports.BasketApi = BasketApi;
|
|
@@ -12766,6 +12770,35 @@ exports.GetUniquePagesDateFieldEnum = {
|
|
|
12766
12770
|
*/
|
|
12767
12771
|
const UrlRedirectApiAxiosParamCreator = function (configuration) {
|
|
12768
12772
|
return {
|
|
12773
|
+
/**
|
|
12774
|
+
*
|
|
12775
|
+
* @param {IUrlRedirectBulkCreateRequest} iUrlRedirectBulkCreateRequest
|
|
12776
|
+
* @param {*} [options] Override http request option.
|
|
12777
|
+
* @throws {RequiredError}
|
|
12778
|
+
*/
|
|
12779
|
+
createBulkUrlRedirects: async (iUrlRedirectBulkCreateRequest, options = {}) => {
|
|
12780
|
+
// verify required parameter 'iUrlRedirectBulkCreateRequest' is not null or undefined
|
|
12781
|
+
(0, common_1.assertParamExists)('createBulkUrlRedirects', 'iUrlRedirectBulkCreateRequest', iUrlRedirectBulkCreateRequest);
|
|
12782
|
+
const localVarPath = `/api/url-redirects/bulk`;
|
|
12783
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12784
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12785
|
+
let baseOptions;
|
|
12786
|
+
if (configuration) {
|
|
12787
|
+
baseOptions = configuration.baseOptions;
|
|
12788
|
+
}
|
|
12789
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
12790
|
+
const localVarHeaderParameter = {};
|
|
12791
|
+
const localVarQueryParameter = {};
|
|
12792
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
12793
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
12794
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12795
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
12796
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(iUrlRedirectBulkCreateRequest, localVarRequestOptions, configuration);
|
|
12797
|
+
return {
|
|
12798
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
12799
|
+
options: localVarRequestOptions,
|
|
12800
|
+
};
|
|
12801
|
+
},
|
|
12769
12802
|
/**
|
|
12770
12803
|
*
|
|
12771
12804
|
* @param {IUrlRedirectPostRequest} iUrlRedirectPostRequest
|
|
@@ -12889,7 +12922,7 @@ const UrlRedirectApiAxiosParamCreator = function (configuration) {
|
|
|
12889
12922
|
},
|
|
12890
12923
|
/**
|
|
12891
12924
|
*
|
|
12892
|
-
* @param {string}
|
|
12925
|
+
* @param {string} companyId
|
|
12893
12926
|
* @param {OrderEnum} [order]
|
|
12894
12927
|
* @param {number} [page]
|
|
12895
12928
|
* @param {number} [itemsPerPage]
|
|
@@ -12902,9 +12935,9 @@ const UrlRedirectApiAxiosParamCreator = function (configuration) {
|
|
|
12902
12935
|
* @param {*} [options] Override http request option.
|
|
12903
12936
|
* @throws {RequiredError}
|
|
12904
12937
|
*/
|
|
12905
|
-
getUrlRedirects: async (
|
|
12906
|
-
// verify required parameter '
|
|
12907
|
-
(0, common_1.assertParamExists)('getUrlRedirects', '
|
|
12938
|
+
getUrlRedirects: async (companyId, order, page, itemsPerPage, search, startDate, endDate, dateField, createdAt, sort, options = {}) => {
|
|
12939
|
+
// verify required parameter 'companyId' is not null or undefined
|
|
12940
|
+
(0, common_1.assertParamExists)('getUrlRedirects', 'companyId', companyId);
|
|
12908
12941
|
const localVarPath = `/api/url-redirects`;
|
|
12909
12942
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12910
12943
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -12940,8 +12973,8 @@ const UrlRedirectApiAxiosParamCreator = function (configuration) {
|
|
|
12940
12973
|
if (dateField !== undefined) {
|
|
12941
12974
|
localVarQueryParameter['dateField'] = dateField;
|
|
12942
12975
|
}
|
|
12943
|
-
if (
|
|
12944
|
-
localVarQueryParameter['
|
|
12976
|
+
if (companyId !== undefined) {
|
|
12977
|
+
localVarQueryParameter['companyId'] = companyId;
|
|
12945
12978
|
}
|
|
12946
12979
|
if (createdAt !== undefined) {
|
|
12947
12980
|
localVarQueryParameter['createdAt'] = createdAt;
|
|
@@ -13000,6 +13033,18 @@ exports.UrlRedirectApiAxiosParamCreator = UrlRedirectApiAxiosParamCreator;
|
|
|
13000
13033
|
const UrlRedirectApiFp = function (configuration) {
|
|
13001
13034
|
const localVarAxiosParamCreator = (0, exports.UrlRedirectApiAxiosParamCreator)(configuration);
|
|
13002
13035
|
return {
|
|
13036
|
+
/**
|
|
13037
|
+
*
|
|
13038
|
+
* @param {IUrlRedirectBulkCreateRequest} iUrlRedirectBulkCreateRequest
|
|
13039
|
+
* @param {*} [options] Override http request option.
|
|
13040
|
+
* @throws {RequiredError}
|
|
13041
|
+
*/
|
|
13042
|
+
async createBulkUrlRedirects(iUrlRedirectBulkCreateRequest, options) {
|
|
13043
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createBulkUrlRedirects(iUrlRedirectBulkCreateRequest, options);
|
|
13044
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
13045
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['UrlRedirectApi.createBulkUrlRedirects']?.[localVarOperationServerIndex]?.url;
|
|
13046
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13047
|
+
},
|
|
13003
13048
|
/**
|
|
13004
13049
|
*
|
|
13005
13050
|
* @param {IUrlRedirectPostRequest} iUrlRedirectPostRequest
|
|
@@ -13051,7 +13096,7 @@ const UrlRedirectApiFp = function (configuration) {
|
|
|
13051
13096
|
},
|
|
13052
13097
|
/**
|
|
13053
13098
|
*
|
|
13054
|
-
* @param {string}
|
|
13099
|
+
* @param {string} companyId
|
|
13055
13100
|
* @param {OrderEnum} [order]
|
|
13056
13101
|
* @param {number} [page]
|
|
13057
13102
|
* @param {number} [itemsPerPage]
|
|
@@ -13064,8 +13109,8 @@ const UrlRedirectApiFp = function (configuration) {
|
|
|
13064
13109
|
* @param {*} [options] Override http request option.
|
|
13065
13110
|
* @throws {RequiredError}
|
|
13066
13111
|
*/
|
|
13067
|
-
async getUrlRedirects(
|
|
13068
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getUrlRedirects(
|
|
13112
|
+
async getUrlRedirects(companyId, order, page, itemsPerPage, search, startDate, endDate, dateField, createdAt, sort, options) {
|
|
13113
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getUrlRedirects(companyId, order, page, itemsPerPage, search, startDate, endDate, dateField, createdAt, sort, options);
|
|
13069
13114
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
13070
13115
|
const localVarOperationServerBasePath = base_1.operationServerMap['UrlRedirectApi.getUrlRedirects']?.[localVarOperationServerIndex]?.url;
|
|
13071
13116
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -13093,6 +13138,15 @@ exports.UrlRedirectApiFp = UrlRedirectApiFp;
|
|
|
13093
13138
|
const UrlRedirectApiFactory = function (configuration, basePath, axios) {
|
|
13094
13139
|
const localVarFp = (0, exports.UrlRedirectApiFp)(configuration);
|
|
13095
13140
|
return {
|
|
13141
|
+
/**
|
|
13142
|
+
*
|
|
13143
|
+
* @param {UrlRedirectApiCreateBulkUrlRedirectsRequest} requestParameters Request parameters.
|
|
13144
|
+
* @param {*} [options] Override http request option.
|
|
13145
|
+
* @throws {RequiredError}
|
|
13146
|
+
*/
|
|
13147
|
+
createBulkUrlRedirects(requestParameters, options) {
|
|
13148
|
+
return localVarFp.createBulkUrlRedirects(requestParameters.iUrlRedirectBulkCreateRequest, options).then((request) => request(axios, basePath));
|
|
13149
|
+
},
|
|
13096
13150
|
/**
|
|
13097
13151
|
*
|
|
13098
13152
|
* @param {UrlRedirectApiCreateUrlRedirectRequest} requestParameters Request parameters.
|
|
@@ -13136,7 +13190,7 @@ const UrlRedirectApiFactory = function (configuration, basePath, axios) {
|
|
|
13136
13190
|
* @throws {RequiredError}
|
|
13137
13191
|
*/
|
|
13138
13192
|
getUrlRedirects(requestParameters, options) {
|
|
13139
|
-
return localVarFp.getUrlRedirects(requestParameters.
|
|
13193
|
+
return localVarFp.getUrlRedirects(requestParameters.companyId, requestParameters.order, requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.createdAt, requestParameters.sort, options).then((request) => request(axios, basePath));
|
|
13140
13194
|
},
|
|
13141
13195
|
/**
|
|
13142
13196
|
*
|
|
@@ -13157,6 +13211,16 @@ exports.UrlRedirectApiFactory = UrlRedirectApiFactory;
|
|
|
13157
13211
|
* @extends {BaseAPI}
|
|
13158
13212
|
*/
|
|
13159
13213
|
class UrlRedirectApi extends base_1.BaseAPI {
|
|
13214
|
+
/**
|
|
13215
|
+
*
|
|
13216
|
+
* @param {UrlRedirectApiCreateBulkUrlRedirectsRequest} requestParameters Request parameters.
|
|
13217
|
+
* @param {*} [options] Override http request option.
|
|
13218
|
+
* @throws {RequiredError}
|
|
13219
|
+
* @memberof UrlRedirectApi
|
|
13220
|
+
*/
|
|
13221
|
+
createBulkUrlRedirects(requestParameters, options) {
|
|
13222
|
+
return (0, exports.UrlRedirectApiFp)(this.configuration).createBulkUrlRedirects(requestParameters.iUrlRedirectBulkCreateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
13223
|
+
}
|
|
13160
13224
|
/**
|
|
13161
13225
|
*
|
|
13162
13226
|
* @param {UrlRedirectApiCreateUrlRedirectRequest} requestParameters Request parameters.
|
|
@@ -13205,7 +13269,7 @@ class UrlRedirectApi extends base_1.BaseAPI {
|
|
|
13205
13269
|
* @memberof UrlRedirectApi
|
|
13206
13270
|
*/
|
|
13207
13271
|
getUrlRedirects(requestParameters, options) {
|
|
13208
|
-
return (0, exports.UrlRedirectApiFp)(this.configuration).getUrlRedirects(requestParameters.
|
|
13272
|
+
return (0, exports.UrlRedirectApiFp)(this.configuration).getUrlRedirects(requestParameters.companyId, requestParameters.order, requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.createdAt, requestParameters.sort, options).then((request) => request(this.axios, this.basePath));
|
|
13209
13273
|
}
|
|
13210
13274
|
/**
|
|
13211
13275
|
*
|
package/dist/api/api.mjs
CHANGED
|
@@ -1495,17 +1495,18 @@ export const BasketApiAxiosParamCreator = function (configuration) {
|
|
|
1495
1495
|
/**
|
|
1496
1496
|
*
|
|
1497
1497
|
* @param {string} itemId
|
|
1498
|
-
* @param {
|
|
1498
|
+
* @param {string} basketId
|
|
1499
1499
|
* @param {*} [options] Override http request option.
|
|
1500
1500
|
* @throws {RequiredError}
|
|
1501
1501
|
*/
|
|
1502
|
-
deleteProductFromBasket: async (itemId,
|
|
1502
|
+
deleteProductFromBasket: async (itemId, basketId, options = {}) => {
|
|
1503
1503
|
// verify required parameter 'itemId' is not null or undefined
|
|
1504
1504
|
assertParamExists('deleteProductFromBasket', 'itemId', itemId);
|
|
1505
|
-
// verify required parameter '
|
|
1506
|
-
assertParamExists('deleteProductFromBasket', '
|
|
1507
|
-
const localVarPath = `/api/baskets/delete-product/{item_id}`
|
|
1508
|
-
.replace(`{${"item_id"}}`, encodeURIComponent(String(itemId)))
|
|
1505
|
+
// verify required parameter 'basketId' is not null or undefined
|
|
1506
|
+
assertParamExists('deleteProductFromBasket', 'basketId', basketId);
|
|
1507
|
+
const localVarPath = `/api/baskets/{basket_id}/delete-product/{item_id}`
|
|
1508
|
+
.replace(`{${"item_id"}}`, encodeURIComponent(String(itemId)))
|
|
1509
|
+
.replace(`{${"basket_id"}}`, encodeURIComponent(String(basketId)));
|
|
1509
1510
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1510
1511
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1511
1512
|
let baseOptions;
|
|
@@ -1515,11 +1516,9 @@ export const BasketApiAxiosParamCreator = function (configuration) {
|
|
|
1515
1516
|
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
1516
1517
|
const localVarHeaderParameter = {};
|
|
1517
1518
|
const localVarQueryParameter = {};
|
|
1518
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1519
1519
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1520
1520
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1521
1521
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1522
|
-
localVarRequestOptions.data = serializeDataIfNeeded(iBasketDeleteRequest, localVarRequestOptions, configuration);
|
|
1523
1522
|
return {
|
|
1524
1523
|
url: toPathString(localVarUrlObj),
|
|
1525
1524
|
options: localVarRequestOptions,
|
|
@@ -1613,17 +1612,21 @@ export const BasketApiAxiosParamCreator = function (configuration) {
|
|
|
1613
1612
|
/**
|
|
1614
1613
|
*
|
|
1615
1614
|
* @param {string} itemId
|
|
1615
|
+
* @param {string} basketId
|
|
1616
1616
|
* @param {IBasketUpdateAmountRequest} iBasketUpdateAmountRequest
|
|
1617
1617
|
* @param {*} [options] Override http request option.
|
|
1618
1618
|
* @throws {RequiredError}
|
|
1619
1619
|
*/
|
|
1620
|
-
updateAmount: async (itemId, iBasketUpdateAmountRequest, options = {}) => {
|
|
1620
|
+
updateAmount: async (itemId, basketId, iBasketUpdateAmountRequest, options = {}) => {
|
|
1621
1621
|
// verify required parameter 'itemId' is not null or undefined
|
|
1622
1622
|
assertParamExists('updateAmount', 'itemId', itemId);
|
|
1623
|
+
// verify required parameter 'basketId' is not null or undefined
|
|
1624
|
+
assertParamExists('updateAmount', 'basketId', basketId);
|
|
1623
1625
|
// verify required parameter 'iBasketUpdateAmountRequest' is not null or undefined
|
|
1624
1626
|
assertParamExists('updateAmount', 'iBasketUpdateAmountRequest', iBasketUpdateAmountRequest);
|
|
1625
|
-
const localVarPath = `/api/baskets/update-amount/{item_id}`
|
|
1626
|
-
.replace(`{${"item_id"}}`, encodeURIComponent(String(itemId)))
|
|
1627
|
+
const localVarPath = `/api/baskets/{basket_id}/update-amount/{item_id}`
|
|
1628
|
+
.replace(`{${"item_id"}}`, encodeURIComponent(String(itemId)))
|
|
1629
|
+
.replace(`{${"basket_id"}}`, encodeURIComponent(String(basketId)));
|
|
1627
1630
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1628
1631
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1629
1632
|
let baseOptions;
|
|
@@ -1667,12 +1670,12 @@ export const BasketApiFp = function (configuration) {
|
|
|
1667
1670
|
/**
|
|
1668
1671
|
*
|
|
1669
1672
|
* @param {string} itemId
|
|
1670
|
-
* @param {
|
|
1673
|
+
* @param {string} basketId
|
|
1671
1674
|
* @param {*} [options] Override http request option.
|
|
1672
1675
|
* @throws {RequiredError}
|
|
1673
1676
|
*/
|
|
1674
|
-
async deleteProductFromBasket(itemId,
|
|
1675
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteProductFromBasket(itemId,
|
|
1677
|
+
async deleteProductFromBasket(itemId, basketId, options) {
|
|
1678
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteProductFromBasket(itemId, basketId, options);
|
|
1676
1679
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1677
1680
|
const localVarOperationServerBasePath = operationServerMap['BasketApi.deleteProductFromBasket']?.[localVarOperationServerIndex]?.url;
|
|
1678
1681
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1716,12 +1719,13 @@ export const BasketApiFp = function (configuration) {
|
|
|
1716
1719
|
/**
|
|
1717
1720
|
*
|
|
1718
1721
|
* @param {string} itemId
|
|
1722
|
+
* @param {string} basketId
|
|
1719
1723
|
* @param {IBasketUpdateAmountRequest} iBasketUpdateAmountRequest
|
|
1720
1724
|
* @param {*} [options] Override http request option.
|
|
1721
1725
|
* @throws {RequiredError}
|
|
1722
1726
|
*/
|
|
1723
|
-
async updateAmount(itemId, iBasketUpdateAmountRequest, options) {
|
|
1724
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.updateAmount(itemId, iBasketUpdateAmountRequest, options);
|
|
1727
|
+
async updateAmount(itemId, basketId, iBasketUpdateAmountRequest, options) {
|
|
1728
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateAmount(itemId, basketId, iBasketUpdateAmountRequest, options);
|
|
1725
1729
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1726
1730
|
const localVarOperationServerBasePath = operationServerMap['BasketApi.updateAmount']?.[localVarOperationServerIndex]?.url;
|
|
1727
1731
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1751,7 +1755,7 @@ export const BasketApiFactory = function (configuration, basePath, axios) {
|
|
|
1751
1755
|
* @throws {RequiredError}
|
|
1752
1756
|
*/
|
|
1753
1757
|
deleteProductFromBasket(requestParameters, options) {
|
|
1754
|
-
return localVarFp.deleteProductFromBasket(requestParameters.itemId, requestParameters.
|
|
1758
|
+
return localVarFp.deleteProductFromBasket(requestParameters.itemId, requestParameters.basketId, options).then((request) => request(axios, basePath));
|
|
1755
1759
|
},
|
|
1756
1760
|
/**
|
|
1757
1761
|
*
|
|
@@ -1787,7 +1791,7 @@ export const BasketApiFactory = function (configuration, basePath, axios) {
|
|
|
1787
1791
|
* @throws {RequiredError}
|
|
1788
1792
|
*/
|
|
1789
1793
|
updateAmount(requestParameters, options) {
|
|
1790
|
-
return localVarFp.updateAmount(requestParameters.itemId, requestParameters.iBasketUpdateAmountRequest, options).then((request) => request(axios, basePath));
|
|
1794
|
+
return localVarFp.updateAmount(requestParameters.itemId, requestParameters.basketId, requestParameters.iBasketUpdateAmountRequest, options).then((request) => request(axios, basePath));
|
|
1791
1795
|
},
|
|
1792
1796
|
};
|
|
1793
1797
|
};
|
|
@@ -1816,7 +1820,7 @@ export class BasketApi extends BaseAPI {
|
|
|
1816
1820
|
* @memberof BasketApi
|
|
1817
1821
|
*/
|
|
1818
1822
|
deleteProductFromBasket(requestParameters, options) {
|
|
1819
|
-
return BasketApiFp(this.configuration).deleteProductFromBasket(requestParameters.itemId, requestParameters.
|
|
1823
|
+
return BasketApiFp(this.configuration).deleteProductFromBasket(requestParameters.itemId, requestParameters.basketId, options).then((request) => request(this.axios, this.basePath));
|
|
1820
1824
|
}
|
|
1821
1825
|
/**
|
|
1822
1826
|
*
|
|
@@ -1856,7 +1860,7 @@ export class BasketApi extends BaseAPI {
|
|
|
1856
1860
|
* @memberof BasketApi
|
|
1857
1861
|
*/
|
|
1858
1862
|
updateAmount(requestParameters, options) {
|
|
1859
|
-
return BasketApiFp(this.configuration).updateAmount(requestParameters.itemId, requestParameters.iBasketUpdateAmountRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1863
|
+
return BasketApiFp(this.configuration).updateAmount(requestParameters.itemId, requestParameters.basketId, requestParameters.iBasketUpdateAmountRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1860
1864
|
}
|
|
1861
1865
|
}
|
|
1862
1866
|
/**
|
|
@@ -12674,6 +12678,35 @@ export const GetUniquePagesDateFieldEnum = {
|
|
|
12674
12678
|
*/
|
|
12675
12679
|
export const UrlRedirectApiAxiosParamCreator = function (configuration) {
|
|
12676
12680
|
return {
|
|
12681
|
+
/**
|
|
12682
|
+
*
|
|
12683
|
+
* @param {IUrlRedirectBulkCreateRequest} iUrlRedirectBulkCreateRequest
|
|
12684
|
+
* @param {*} [options] Override http request option.
|
|
12685
|
+
* @throws {RequiredError}
|
|
12686
|
+
*/
|
|
12687
|
+
createBulkUrlRedirects: async (iUrlRedirectBulkCreateRequest, options = {}) => {
|
|
12688
|
+
// verify required parameter 'iUrlRedirectBulkCreateRequest' is not null or undefined
|
|
12689
|
+
assertParamExists('createBulkUrlRedirects', 'iUrlRedirectBulkCreateRequest', iUrlRedirectBulkCreateRequest);
|
|
12690
|
+
const localVarPath = `/api/url-redirects/bulk`;
|
|
12691
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12692
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12693
|
+
let baseOptions;
|
|
12694
|
+
if (configuration) {
|
|
12695
|
+
baseOptions = configuration.baseOptions;
|
|
12696
|
+
}
|
|
12697
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
12698
|
+
const localVarHeaderParameter = {};
|
|
12699
|
+
const localVarQueryParameter = {};
|
|
12700
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
12701
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12702
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12703
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
12704
|
+
localVarRequestOptions.data = serializeDataIfNeeded(iUrlRedirectBulkCreateRequest, localVarRequestOptions, configuration);
|
|
12705
|
+
return {
|
|
12706
|
+
url: toPathString(localVarUrlObj),
|
|
12707
|
+
options: localVarRequestOptions,
|
|
12708
|
+
};
|
|
12709
|
+
},
|
|
12677
12710
|
/**
|
|
12678
12711
|
*
|
|
12679
12712
|
* @param {IUrlRedirectPostRequest} iUrlRedirectPostRequest
|
|
@@ -12797,7 +12830,7 @@ export const UrlRedirectApiAxiosParamCreator = function (configuration) {
|
|
|
12797
12830
|
},
|
|
12798
12831
|
/**
|
|
12799
12832
|
*
|
|
12800
|
-
* @param {string}
|
|
12833
|
+
* @param {string} companyId
|
|
12801
12834
|
* @param {OrderEnum} [order]
|
|
12802
12835
|
* @param {number} [page]
|
|
12803
12836
|
* @param {number} [itemsPerPage]
|
|
@@ -12810,9 +12843,9 @@ export const UrlRedirectApiAxiosParamCreator = function (configuration) {
|
|
|
12810
12843
|
* @param {*} [options] Override http request option.
|
|
12811
12844
|
* @throws {RequiredError}
|
|
12812
12845
|
*/
|
|
12813
|
-
getUrlRedirects: async (
|
|
12814
|
-
// verify required parameter '
|
|
12815
|
-
assertParamExists('getUrlRedirects', '
|
|
12846
|
+
getUrlRedirects: async (companyId, order, page, itemsPerPage, search, startDate, endDate, dateField, createdAt, sort, options = {}) => {
|
|
12847
|
+
// verify required parameter 'companyId' is not null or undefined
|
|
12848
|
+
assertParamExists('getUrlRedirects', 'companyId', companyId);
|
|
12816
12849
|
const localVarPath = `/api/url-redirects`;
|
|
12817
12850
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12818
12851
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -12848,8 +12881,8 @@ export const UrlRedirectApiAxiosParamCreator = function (configuration) {
|
|
|
12848
12881
|
if (dateField !== undefined) {
|
|
12849
12882
|
localVarQueryParameter['dateField'] = dateField;
|
|
12850
12883
|
}
|
|
12851
|
-
if (
|
|
12852
|
-
localVarQueryParameter['
|
|
12884
|
+
if (companyId !== undefined) {
|
|
12885
|
+
localVarQueryParameter['companyId'] = companyId;
|
|
12853
12886
|
}
|
|
12854
12887
|
if (createdAt !== undefined) {
|
|
12855
12888
|
localVarQueryParameter['createdAt'] = createdAt;
|
|
@@ -12907,6 +12940,18 @@ export const UrlRedirectApiAxiosParamCreator = function (configuration) {
|
|
|
12907
12940
|
export const UrlRedirectApiFp = function (configuration) {
|
|
12908
12941
|
const localVarAxiosParamCreator = UrlRedirectApiAxiosParamCreator(configuration);
|
|
12909
12942
|
return {
|
|
12943
|
+
/**
|
|
12944
|
+
*
|
|
12945
|
+
* @param {IUrlRedirectBulkCreateRequest} iUrlRedirectBulkCreateRequest
|
|
12946
|
+
* @param {*} [options] Override http request option.
|
|
12947
|
+
* @throws {RequiredError}
|
|
12948
|
+
*/
|
|
12949
|
+
async createBulkUrlRedirects(iUrlRedirectBulkCreateRequest, options) {
|
|
12950
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createBulkUrlRedirects(iUrlRedirectBulkCreateRequest, options);
|
|
12951
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
12952
|
+
const localVarOperationServerBasePath = operationServerMap['UrlRedirectApi.createBulkUrlRedirects']?.[localVarOperationServerIndex]?.url;
|
|
12953
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12954
|
+
},
|
|
12910
12955
|
/**
|
|
12911
12956
|
*
|
|
12912
12957
|
* @param {IUrlRedirectPostRequest} iUrlRedirectPostRequest
|
|
@@ -12958,7 +13003,7 @@ export const UrlRedirectApiFp = function (configuration) {
|
|
|
12958
13003
|
},
|
|
12959
13004
|
/**
|
|
12960
13005
|
*
|
|
12961
|
-
* @param {string}
|
|
13006
|
+
* @param {string} companyId
|
|
12962
13007
|
* @param {OrderEnum} [order]
|
|
12963
13008
|
* @param {number} [page]
|
|
12964
13009
|
* @param {number} [itemsPerPage]
|
|
@@ -12971,8 +13016,8 @@ export const UrlRedirectApiFp = function (configuration) {
|
|
|
12971
13016
|
* @param {*} [options] Override http request option.
|
|
12972
13017
|
* @throws {RequiredError}
|
|
12973
13018
|
*/
|
|
12974
|
-
async getUrlRedirects(
|
|
12975
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getUrlRedirects(
|
|
13019
|
+
async getUrlRedirects(companyId, order, page, itemsPerPage, search, startDate, endDate, dateField, createdAt, sort, options) {
|
|
13020
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getUrlRedirects(companyId, order, page, itemsPerPage, search, startDate, endDate, dateField, createdAt, sort, options);
|
|
12976
13021
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
12977
13022
|
const localVarOperationServerBasePath = operationServerMap['UrlRedirectApi.getUrlRedirects']?.[localVarOperationServerIndex]?.url;
|
|
12978
13023
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -12999,6 +13044,15 @@ export const UrlRedirectApiFp = function (configuration) {
|
|
|
12999
13044
|
export const UrlRedirectApiFactory = function (configuration, basePath, axios) {
|
|
13000
13045
|
const localVarFp = UrlRedirectApiFp(configuration);
|
|
13001
13046
|
return {
|
|
13047
|
+
/**
|
|
13048
|
+
*
|
|
13049
|
+
* @param {UrlRedirectApiCreateBulkUrlRedirectsRequest} requestParameters Request parameters.
|
|
13050
|
+
* @param {*} [options] Override http request option.
|
|
13051
|
+
* @throws {RequiredError}
|
|
13052
|
+
*/
|
|
13053
|
+
createBulkUrlRedirects(requestParameters, options) {
|
|
13054
|
+
return localVarFp.createBulkUrlRedirects(requestParameters.iUrlRedirectBulkCreateRequest, options).then((request) => request(axios, basePath));
|
|
13055
|
+
},
|
|
13002
13056
|
/**
|
|
13003
13057
|
*
|
|
13004
13058
|
* @param {UrlRedirectApiCreateUrlRedirectRequest} requestParameters Request parameters.
|
|
@@ -13042,7 +13096,7 @@ export const UrlRedirectApiFactory = function (configuration, basePath, axios) {
|
|
|
13042
13096
|
* @throws {RequiredError}
|
|
13043
13097
|
*/
|
|
13044
13098
|
getUrlRedirects(requestParameters, options) {
|
|
13045
|
-
return localVarFp.getUrlRedirects(requestParameters.
|
|
13099
|
+
return localVarFp.getUrlRedirects(requestParameters.companyId, requestParameters.order, requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.createdAt, requestParameters.sort, options).then((request) => request(axios, basePath));
|
|
13046
13100
|
},
|
|
13047
13101
|
/**
|
|
13048
13102
|
*
|
|
@@ -13062,6 +13116,16 @@ export const UrlRedirectApiFactory = function (configuration, basePath, axios) {
|
|
|
13062
13116
|
* @extends {BaseAPI}
|
|
13063
13117
|
*/
|
|
13064
13118
|
export class UrlRedirectApi extends BaseAPI {
|
|
13119
|
+
/**
|
|
13120
|
+
*
|
|
13121
|
+
* @param {UrlRedirectApiCreateBulkUrlRedirectsRequest} requestParameters Request parameters.
|
|
13122
|
+
* @param {*} [options] Override http request option.
|
|
13123
|
+
* @throws {RequiredError}
|
|
13124
|
+
* @memberof UrlRedirectApi
|
|
13125
|
+
*/
|
|
13126
|
+
createBulkUrlRedirects(requestParameters, options) {
|
|
13127
|
+
return UrlRedirectApiFp(this.configuration).createBulkUrlRedirects(requestParameters.iUrlRedirectBulkCreateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
13128
|
+
}
|
|
13065
13129
|
/**
|
|
13066
13130
|
*
|
|
13067
13131
|
* @param {UrlRedirectApiCreateUrlRedirectRequest} requestParameters Request parameters.
|
|
@@ -13110,7 +13174,7 @@ export class UrlRedirectApi extends BaseAPI {
|
|
|
13110
13174
|
* @memberof UrlRedirectApi
|
|
13111
13175
|
*/
|
|
13112
13176
|
getUrlRedirects(requestParameters, options) {
|
|
13113
|
-
return UrlRedirectApiFp(this.configuration).getUrlRedirects(requestParameters.
|
|
13177
|
+
return UrlRedirectApiFp(this.configuration).getUrlRedirects(requestParameters.companyId, requestParameters.order, requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.createdAt, requestParameters.sort, options).then((request) => request(this.axios, this.basePath));
|
|
13114
13178
|
}
|
|
13115
13179
|
/**
|
|
13116
13180
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@infisale-client/api",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.29",
|
|
4
4
|
"description": "api-sdk",
|
|
5
5
|
"author": "Muhammet KÖKLÜ <105980019+byhipernova@users.noreply.github.com>",
|
|
6
6
|
"homepage": "https://github.com/infisale/infisale-client#readme",
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
"bugs": {
|
|
38
38
|
"url": "https://github.com/infisale/infisale-client/issues"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "9afa63ae91ae937f62b05cad0406ae12c24a8188"
|
|
41
41
|
}
|