@infisale-client/api-client 1.2.73 → 1.2.74
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 +521 -37
- package/dist/api/api.js +226 -21
- package/dist/api/api.mjs +224 -19
- package/package.json +2 -2
package/dist/api/api.mjs
CHANGED
|
@@ -562,7 +562,9 @@ export const IProductCollectionQueryParamsDateFieldEnum = {
|
|
|
562
562
|
export const IProductCollectionQueryParamsSortEnum = {
|
|
563
563
|
PRICE: 'price',
|
|
564
564
|
CREATED_AT: 'createdAt',
|
|
565
|
-
TOTAL_SALE: 'totalSale'
|
|
565
|
+
TOTAL_SALE: 'totalSale',
|
|
566
|
+
RATING: 'rating',
|
|
567
|
+
REVIEW_COUNT: 'reviewCount'
|
|
566
568
|
};
|
|
567
569
|
export const IUserCollectionQueryParamsDateFieldEnum = {
|
|
568
570
|
CREATED_AT: 'createdAt',
|
|
@@ -756,6 +758,16 @@ export const ProductDetailImageZoomTypeEnum = {
|
|
|
756
758
|
DIALOG: 'dialog',
|
|
757
759
|
NONE: 'none'
|
|
758
760
|
};
|
|
761
|
+
/**
|
|
762
|
+
*
|
|
763
|
+
* @export
|
|
764
|
+
* @enum {string}
|
|
765
|
+
*/
|
|
766
|
+
export const ReviewStatusEnum = {
|
|
767
|
+
WAITING_APPROVAL: 'waiting_approval',
|
|
768
|
+
APPROVED: 'approved',
|
|
769
|
+
REJECTED: 'rejected'
|
|
770
|
+
};
|
|
759
771
|
/**
|
|
760
772
|
*
|
|
761
773
|
* @export
|
|
@@ -836,6 +848,18 @@ export const TimezoneEnum = {
|
|
|
836
848
|
UTC1300: 'UTC+13:00',
|
|
837
849
|
UTC1400: 'UTC+14:00'
|
|
838
850
|
};
|
|
851
|
+
/**
|
|
852
|
+
*
|
|
853
|
+
* @export
|
|
854
|
+
* @enum {string}
|
|
855
|
+
*/
|
|
856
|
+
export const UniquePageTypeEnum = {
|
|
857
|
+
HOME: 'home',
|
|
858
|
+
CART: 'cart',
|
|
859
|
+
CHECKOUT: 'checkout',
|
|
860
|
+
SEARCH: 'search',
|
|
861
|
+
NOT_FOUND: 'not-found'
|
|
862
|
+
};
|
|
839
863
|
/**
|
|
840
864
|
*
|
|
841
865
|
* @export
|
|
@@ -2433,6 +2457,35 @@ export const OrderApiAxiosParamCreator = function (configuration) {
|
|
|
2433
2457
|
options: localVarRequestOptions,
|
|
2434
2458
|
};
|
|
2435
2459
|
},
|
|
2460
|
+
/**
|
|
2461
|
+
*
|
|
2462
|
+
* @param {IOrderReviewPostRequest} iOrderReviewPostRequest
|
|
2463
|
+
* @param {*} [options] Override http request option.
|
|
2464
|
+
* @throws {RequiredError}
|
|
2465
|
+
*/
|
|
2466
|
+
createReview: async (iOrderReviewPostRequest, options = {}) => {
|
|
2467
|
+
// verify required parameter 'iOrderReviewPostRequest' is not null or undefined
|
|
2468
|
+
assertParamExists('createReview', 'iOrderReviewPostRequest', iOrderReviewPostRequest);
|
|
2469
|
+
const localVarPath = `/api/orders/reviews`;
|
|
2470
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2471
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2472
|
+
let baseOptions;
|
|
2473
|
+
if (configuration) {
|
|
2474
|
+
baseOptions = configuration.baseOptions;
|
|
2475
|
+
}
|
|
2476
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
2477
|
+
const localVarHeaderParameter = {};
|
|
2478
|
+
const localVarQueryParameter = {};
|
|
2479
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2480
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2481
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2482
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2483
|
+
localVarRequestOptions.data = serializeDataIfNeeded(iOrderReviewPostRequest, localVarRequestOptions, configuration);
|
|
2484
|
+
return {
|
|
2485
|
+
url: toPathString(localVarUrlObj),
|
|
2486
|
+
options: localVarRequestOptions,
|
|
2487
|
+
};
|
|
2488
|
+
},
|
|
2436
2489
|
/**
|
|
2437
2490
|
*
|
|
2438
2491
|
* @param {number} [page]
|
|
@@ -2599,6 +2652,39 @@ export const OrderApiAxiosParamCreator = function (configuration) {
|
|
|
2599
2652
|
options: localVarRequestOptions,
|
|
2600
2653
|
};
|
|
2601
2654
|
},
|
|
2655
|
+
/**
|
|
2656
|
+
*
|
|
2657
|
+
* @param {string} id
|
|
2658
|
+
* @param {IReviewPatchRequest} iReviewPatchRequest
|
|
2659
|
+
* @param {*} [options] Override http request option.
|
|
2660
|
+
* @throws {RequiredError}
|
|
2661
|
+
*/
|
|
2662
|
+
updateReview: async (id, iReviewPatchRequest, options = {}) => {
|
|
2663
|
+
// verify required parameter 'id' is not null or undefined
|
|
2664
|
+
assertParamExists('updateReview', 'id', id);
|
|
2665
|
+
// verify required parameter 'iReviewPatchRequest' is not null or undefined
|
|
2666
|
+
assertParamExists('updateReview', 'iReviewPatchRequest', iReviewPatchRequest);
|
|
2667
|
+
const localVarPath = `/api/orders/reviews/{id}`
|
|
2668
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
2669
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2670
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2671
|
+
let baseOptions;
|
|
2672
|
+
if (configuration) {
|
|
2673
|
+
baseOptions = configuration.baseOptions;
|
|
2674
|
+
}
|
|
2675
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options };
|
|
2676
|
+
const localVarHeaderParameter = {};
|
|
2677
|
+
const localVarQueryParameter = {};
|
|
2678
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2679
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2680
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2681
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2682
|
+
localVarRequestOptions.data = serializeDataIfNeeded(iReviewPatchRequest, localVarRequestOptions, configuration);
|
|
2683
|
+
return {
|
|
2684
|
+
url: toPathString(localVarUrlObj),
|
|
2685
|
+
options: localVarRequestOptions,
|
|
2686
|
+
};
|
|
2687
|
+
},
|
|
2602
2688
|
};
|
|
2603
2689
|
};
|
|
2604
2690
|
/**
|
|
@@ -2633,6 +2719,18 @@ export const OrderApiFp = function (configuration) {
|
|
|
2633
2719
|
const localVarOperationServerBasePath = operationServerMap['OrderApi.createReturn']?.[localVarOperationServerIndex]?.url;
|
|
2634
2720
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2635
2721
|
},
|
|
2722
|
+
/**
|
|
2723
|
+
*
|
|
2724
|
+
* @param {IOrderReviewPostRequest} iOrderReviewPostRequest
|
|
2725
|
+
* @param {*} [options] Override http request option.
|
|
2726
|
+
* @throws {RequiredError}
|
|
2727
|
+
*/
|
|
2728
|
+
async createReview(iOrderReviewPostRequest, options) {
|
|
2729
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createReview(iOrderReviewPostRequest, options);
|
|
2730
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2731
|
+
const localVarOperationServerBasePath = operationServerMap['OrderApi.createReview']?.[localVarOperationServerIndex]?.url;
|
|
2732
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2733
|
+
},
|
|
2636
2734
|
/**
|
|
2637
2735
|
*
|
|
2638
2736
|
* @param {number} [page]
|
|
@@ -2687,6 +2785,19 @@ export const OrderApiFp = function (configuration) {
|
|
|
2687
2785
|
const localVarOperationServerBasePath = operationServerMap['OrderApi.getOrders']?.[localVarOperationServerIndex]?.url;
|
|
2688
2786
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2689
2787
|
},
|
|
2788
|
+
/**
|
|
2789
|
+
*
|
|
2790
|
+
* @param {string} id
|
|
2791
|
+
* @param {IReviewPatchRequest} iReviewPatchRequest
|
|
2792
|
+
* @param {*} [options] Override http request option.
|
|
2793
|
+
* @throws {RequiredError}
|
|
2794
|
+
*/
|
|
2795
|
+
async updateReview(id, iReviewPatchRequest, options) {
|
|
2796
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateReview(id, iReviewPatchRequest, options);
|
|
2797
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2798
|
+
const localVarOperationServerBasePath = operationServerMap['OrderApi.updateReview']?.[localVarOperationServerIndex]?.url;
|
|
2799
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2800
|
+
},
|
|
2690
2801
|
};
|
|
2691
2802
|
};
|
|
2692
2803
|
/**
|
|
@@ -2714,6 +2825,15 @@ export const OrderApiFactory = function (configuration, basePath, axios) {
|
|
|
2714
2825
|
createReturn(requestParameters, options) {
|
|
2715
2826
|
return localVarFp.createReturn(requestParameters.id, requestParameters.iOrderReturnPostRequest, options).then((request) => request(axios, basePath));
|
|
2716
2827
|
},
|
|
2828
|
+
/**
|
|
2829
|
+
*
|
|
2830
|
+
* @param {OrderApiCreateReviewRequest} requestParameters Request parameters.
|
|
2831
|
+
* @param {*} [options] Override http request option.
|
|
2832
|
+
* @throws {RequiredError}
|
|
2833
|
+
*/
|
|
2834
|
+
createReview(requestParameters, options) {
|
|
2835
|
+
return localVarFp.createReview(requestParameters.iOrderReviewPostRequest, options).then((request) => request(axios, basePath));
|
|
2836
|
+
},
|
|
2717
2837
|
/**
|
|
2718
2838
|
*
|
|
2719
2839
|
* @param {OrderApiGetMyOrdersRequest} requestParameters Request parameters.
|
|
@@ -2741,6 +2861,15 @@ export const OrderApiFactory = function (configuration, basePath, axios) {
|
|
|
2741
2861
|
getOrders(requestParameters, options) {
|
|
2742
2862
|
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));
|
|
2743
2863
|
},
|
|
2864
|
+
/**
|
|
2865
|
+
*
|
|
2866
|
+
* @param {OrderApiUpdateReviewRequest} requestParameters Request parameters.
|
|
2867
|
+
* @param {*} [options] Override http request option.
|
|
2868
|
+
* @throws {RequiredError}
|
|
2869
|
+
*/
|
|
2870
|
+
updateReview(requestParameters, options) {
|
|
2871
|
+
return localVarFp.updateReview(requestParameters.id, requestParameters.iReviewPatchRequest, options).then((request) => request(axios, basePath));
|
|
2872
|
+
},
|
|
2744
2873
|
};
|
|
2745
2874
|
};
|
|
2746
2875
|
/**
|
|
@@ -2770,6 +2899,16 @@ export class OrderApi extends BaseAPI {
|
|
|
2770
2899
|
createReturn(requestParameters, options) {
|
|
2771
2900
|
return OrderApiFp(this.configuration).createReturn(requestParameters.id, requestParameters.iOrderReturnPostRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2772
2901
|
}
|
|
2902
|
+
/**
|
|
2903
|
+
*
|
|
2904
|
+
* @param {OrderApiCreateReviewRequest} requestParameters Request parameters.
|
|
2905
|
+
* @param {*} [options] Override http request option.
|
|
2906
|
+
* @throws {RequiredError}
|
|
2907
|
+
* @memberof OrderApi
|
|
2908
|
+
*/
|
|
2909
|
+
createReview(requestParameters, options) {
|
|
2910
|
+
return OrderApiFp(this.configuration).createReview(requestParameters.iOrderReviewPostRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2911
|
+
}
|
|
2773
2912
|
/**
|
|
2774
2913
|
*
|
|
2775
2914
|
* @param {OrderApiGetMyOrdersRequest} requestParameters Request parameters.
|
|
@@ -2800,6 +2939,16 @@ export class OrderApi extends BaseAPI {
|
|
|
2800
2939
|
getOrders(requestParameters, options) {
|
|
2801
2940
|
return 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));
|
|
2802
2941
|
}
|
|
2942
|
+
/**
|
|
2943
|
+
*
|
|
2944
|
+
* @param {OrderApiUpdateReviewRequest} requestParameters Request parameters.
|
|
2945
|
+
* @param {*} [options] Override http request option.
|
|
2946
|
+
* @throws {RequiredError}
|
|
2947
|
+
* @memberof OrderApi
|
|
2948
|
+
*/
|
|
2949
|
+
updateReview(requestParameters, options) {
|
|
2950
|
+
return OrderApiFp(this.configuration).updateReview(requestParameters.id, requestParameters.iReviewPatchRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2951
|
+
}
|
|
2803
2952
|
}
|
|
2804
2953
|
/**
|
|
2805
2954
|
* @export
|
|
@@ -2859,7 +3008,7 @@ export const PageApiAxiosParamCreator = function (configuration) {
|
|
|
2859
3008
|
},
|
|
2860
3009
|
/**
|
|
2861
3010
|
*
|
|
2862
|
-
* @param {
|
|
3011
|
+
* @param {UniquePageTypeEnum} type
|
|
2863
3012
|
* @param {string} [companyId]
|
|
2864
3013
|
* @param {string} [domain]
|
|
2865
3014
|
* @param {string} [template]
|
|
@@ -2998,7 +3147,7 @@ export const PageApiFp = function (configuration) {
|
|
|
2998
3147
|
},
|
|
2999
3148
|
/**
|
|
3000
3149
|
*
|
|
3001
|
-
* @param {
|
|
3150
|
+
* @param {UniquePageTypeEnum} type
|
|
3002
3151
|
* @param {string} [companyId]
|
|
3003
3152
|
* @param {string} [domain]
|
|
3004
3153
|
* @param {string} [template]
|
|
@@ -3159,6 +3308,38 @@ export const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
3159
3308
|
options: localVarRequestOptions,
|
|
3160
3309
|
};
|
|
3161
3310
|
},
|
|
3311
|
+
/**
|
|
3312
|
+
*
|
|
3313
|
+
* @param {string} id
|
|
3314
|
+
* @param {number} [rating]
|
|
3315
|
+
* @param {*} [options] Override http request option.
|
|
3316
|
+
* @throws {RequiredError}
|
|
3317
|
+
*/
|
|
3318
|
+
getProductReviews: async (id, rating, options = {}) => {
|
|
3319
|
+
// verify required parameter 'id' is not null or undefined
|
|
3320
|
+
assertParamExists('getProductReviews', 'id', id);
|
|
3321
|
+
const localVarPath = `/api/products/{id}/reviews`
|
|
3322
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
3323
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3324
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3325
|
+
let baseOptions;
|
|
3326
|
+
if (configuration) {
|
|
3327
|
+
baseOptions = configuration.baseOptions;
|
|
3328
|
+
}
|
|
3329
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
3330
|
+
const localVarHeaderParameter = {};
|
|
3331
|
+
const localVarQueryParameter = {};
|
|
3332
|
+
if (rating !== undefined) {
|
|
3333
|
+
localVarQueryParameter['rating'] = rating;
|
|
3334
|
+
}
|
|
3335
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3336
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3337
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
3338
|
+
return {
|
|
3339
|
+
url: toPathString(localVarUrlObj),
|
|
3340
|
+
options: localVarRequestOptions,
|
|
3341
|
+
};
|
|
3342
|
+
},
|
|
3162
3343
|
/**
|
|
3163
3344
|
*
|
|
3164
3345
|
* @param {number} [page]
|
|
@@ -3177,14 +3358,12 @@ export const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
3177
3358
|
* @param {number} [priceGte]
|
|
3178
3359
|
* @param {number} [priceLte]
|
|
3179
3360
|
* @param {boolean} [autoComplete]
|
|
3180
|
-
* @param {Array<string>} [mainVariant]
|
|
3181
|
-
* @param {Array<string>} [subVariant]
|
|
3182
3361
|
* @param {GetProductsSortEnum} [sort]
|
|
3183
3362
|
* @param {ContentStatusEnum} [status]
|
|
3184
3363
|
* @param {*} [options] Override http request option.
|
|
3185
3364
|
* @throws {RequiredError}
|
|
3186
3365
|
*/
|
|
3187
|
-
getProducts: async (page, itemsPerPage, search, startDate, endDate, dateField, order, companyId, domain, collections, category, brand, inStock, priceGte, priceLte, autoComplete,
|
|
3366
|
+
getProducts: async (page, itemsPerPage, search, startDate, endDate, dateField, order, companyId, domain, collections, category, brand, inStock, priceGte, priceLte, autoComplete, sort, status, options = {}) => {
|
|
3188
3367
|
const localVarPath = `/api/products`;
|
|
3189
3368
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3190
3369
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -3247,12 +3426,6 @@ export const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
3247
3426
|
if (autoComplete !== undefined) {
|
|
3248
3427
|
localVarQueryParameter['autoComplete'] = autoComplete;
|
|
3249
3428
|
}
|
|
3250
|
-
if (mainVariant) {
|
|
3251
|
-
localVarQueryParameter['mainVariant'] = mainVariant;
|
|
3252
|
-
}
|
|
3253
|
-
if (subVariant) {
|
|
3254
|
-
localVarQueryParameter['subVariant'] = subVariant;
|
|
3255
|
-
}
|
|
3256
3429
|
if (sort !== undefined) {
|
|
3257
3430
|
localVarQueryParameter['sort'] = sort;
|
|
3258
3431
|
}
|
|
@@ -3290,6 +3463,19 @@ export const ProductApiFp = function (configuration) {
|
|
|
3290
3463
|
const localVarOperationServerBasePath = operationServerMap['ProductApi.getProductBySlug']?.[localVarOperationServerIndex]?.url;
|
|
3291
3464
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3292
3465
|
},
|
|
3466
|
+
/**
|
|
3467
|
+
*
|
|
3468
|
+
* @param {string} id
|
|
3469
|
+
* @param {number} [rating]
|
|
3470
|
+
* @param {*} [options] Override http request option.
|
|
3471
|
+
* @throws {RequiredError}
|
|
3472
|
+
*/
|
|
3473
|
+
async getProductReviews(id, rating, options) {
|
|
3474
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getProductReviews(id, rating, options);
|
|
3475
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3476
|
+
const localVarOperationServerBasePath = operationServerMap['ProductApi.getProductReviews']?.[localVarOperationServerIndex]?.url;
|
|
3477
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3478
|
+
},
|
|
3293
3479
|
/**
|
|
3294
3480
|
*
|
|
3295
3481
|
* @param {number} [page]
|
|
@@ -3308,15 +3494,13 @@ export const ProductApiFp = function (configuration) {
|
|
|
3308
3494
|
* @param {number} [priceGte]
|
|
3309
3495
|
* @param {number} [priceLte]
|
|
3310
3496
|
* @param {boolean} [autoComplete]
|
|
3311
|
-
* @param {Array<string>} [mainVariant]
|
|
3312
|
-
* @param {Array<string>} [subVariant]
|
|
3313
3497
|
* @param {GetProductsSortEnum} [sort]
|
|
3314
3498
|
* @param {ContentStatusEnum} [status]
|
|
3315
3499
|
* @param {*} [options] Override http request option.
|
|
3316
3500
|
* @throws {RequiredError}
|
|
3317
3501
|
*/
|
|
3318
|
-
async getProducts(page, itemsPerPage, search, startDate, endDate, dateField, order, companyId, domain, collections, category, brand, inStock, priceGte, priceLte, autoComplete,
|
|
3319
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getProducts(page, itemsPerPage, search, startDate, endDate, dateField, order, companyId, domain, collections, category, brand, inStock, priceGte, priceLte, autoComplete,
|
|
3502
|
+
async getProducts(page, itemsPerPage, search, startDate, endDate, dateField, order, companyId, domain, collections, category, brand, inStock, priceGte, priceLte, autoComplete, sort, status, options) {
|
|
3503
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getProducts(page, itemsPerPage, search, startDate, endDate, dateField, order, companyId, domain, collections, category, brand, inStock, priceGte, priceLte, autoComplete, sort, status, options);
|
|
3320
3504
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3321
3505
|
const localVarOperationServerBasePath = operationServerMap['ProductApi.getProducts']?.[localVarOperationServerIndex]?.url;
|
|
3322
3506
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -3339,6 +3523,15 @@ export const ProductApiFactory = function (configuration, basePath, axios) {
|
|
|
3339
3523
|
getProductBySlug(requestParameters, options) {
|
|
3340
3524
|
return localVarFp.getProductBySlug(requestParameters.slug, requestParameters.companyId, requestParameters.domain, options).then((request) => request(axios, basePath));
|
|
3341
3525
|
},
|
|
3526
|
+
/**
|
|
3527
|
+
*
|
|
3528
|
+
* @param {ProductApiGetProductReviewsRequest} requestParameters Request parameters.
|
|
3529
|
+
* @param {*} [options] Override http request option.
|
|
3530
|
+
* @throws {RequiredError}
|
|
3531
|
+
*/
|
|
3532
|
+
getProductReviews(requestParameters, options) {
|
|
3533
|
+
return localVarFp.getProductReviews(requestParameters.id, requestParameters.rating, options).then((request) => request(axios, basePath));
|
|
3534
|
+
},
|
|
3342
3535
|
/**
|
|
3343
3536
|
*
|
|
3344
3537
|
* @param {ProductApiGetProductsRequest} requestParameters Request parameters.
|
|
@@ -3346,7 +3539,7 @@ export const ProductApiFactory = function (configuration, basePath, axios) {
|
|
|
3346
3539
|
* @throws {RequiredError}
|
|
3347
3540
|
*/
|
|
3348
3541
|
getProducts(requestParameters = {}, options) {
|
|
3349
|
-
return localVarFp.getProducts(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.companyId, requestParameters.domain, requestParameters.collections, requestParameters.category, requestParameters.brand, requestParameters.inStock, requestParameters.priceGte, requestParameters.priceLte, requestParameters.autoComplete, requestParameters.
|
|
3542
|
+
return localVarFp.getProducts(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.companyId, requestParameters.domain, requestParameters.collections, requestParameters.category, requestParameters.brand, requestParameters.inStock, requestParameters.priceGte, requestParameters.priceLte, requestParameters.autoComplete, requestParameters.sort, requestParameters.status, options).then((request) => request(axios, basePath));
|
|
3350
3543
|
},
|
|
3351
3544
|
};
|
|
3352
3545
|
};
|
|
@@ -3367,6 +3560,16 @@ export class ProductApi extends BaseAPI {
|
|
|
3367
3560
|
getProductBySlug(requestParameters, options) {
|
|
3368
3561
|
return ProductApiFp(this.configuration).getProductBySlug(requestParameters.slug, requestParameters.companyId, requestParameters.domain, options).then((request) => request(this.axios, this.basePath));
|
|
3369
3562
|
}
|
|
3563
|
+
/**
|
|
3564
|
+
*
|
|
3565
|
+
* @param {ProductApiGetProductReviewsRequest} requestParameters Request parameters.
|
|
3566
|
+
* @param {*} [options] Override http request option.
|
|
3567
|
+
* @throws {RequiredError}
|
|
3568
|
+
* @memberof ProductApi
|
|
3569
|
+
*/
|
|
3570
|
+
getProductReviews(requestParameters, options) {
|
|
3571
|
+
return ProductApiFp(this.configuration).getProductReviews(requestParameters.id, requestParameters.rating, options).then((request) => request(this.axios, this.basePath));
|
|
3572
|
+
}
|
|
3370
3573
|
/**
|
|
3371
3574
|
*
|
|
3372
3575
|
* @param {ProductApiGetProductsRequest} requestParameters Request parameters.
|
|
@@ -3375,7 +3578,7 @@ export class ProductApi extends BaseAPI {
|
|
|
3375
3578
|
* @memberof ProductApi
|
|
3376
3579
|
*/
|
|
3377
3580
|
getProducts(requestParameters = {}, options) {
|
|
3378
|
-
return ProductApiFp(this.configuration).getProducts(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.companyId, requestParameters.domain, requestParameters.collections, requestParameters.category, requestParameters.brand, requestParameters.inStock, requestParameters.priceGte, requestParameters.priceLte, requestParameters.autoComplete, requestParameters.
|
|
3581
|
+
return ProductApiFp(this.configuration).getProducts(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.companyId, requestParameters.domain, requestParameters.collections, requestParameters.category, requestParameters.brand, requestParameters.inStock, requestParameters.priceGte, requestParameters.priceLte, requestParameters.autoComplete, requestParameters.sort, requestParameters.status, options).then((request) => request(this.axios, this.basePath));
|
|
3379
3582
|
}
|
|
3380
3583
|
}
|
|
3381
3584
|
/**
|
|
@@ -3391,7 +3594,9 @@ export const GetProductsDateFieldEnum = {
|
|
|
3391
3594
|
export const GetProductsSortEnum = {
|
|
3392
3595
|
PRICE: 'price',
|
|
3393
3596
|
CREATED_AT: 'createdAt',
|
|
3394
|
-
TOTAL_SALE: 'totalSale'
|
|
3597
|
+
TOTAL_SALE: 'totalSale',
|
|
3598
|
+
RATING: 'rating',
|
|
3599
|
+
REVIEW_COUNT: 'reviewCount'
|
|
3395
3600
|
};
|
|
3396
3601
|
/**
|
|
3397
3602
|
* SitemapApi - axios parameter creator
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@infisale-client/api-client",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.74",
|
|
4
4
|
"description": "api-client-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": "0d896d070eb5379e75e54cd6a5f447484be041b6"
|
|
41
41
|
}
|