@infisale-client/api-client 1.2.73 → 1.2.75
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 +508 -37
- package/dist/api/api.js +214 -21
- package/dist/api/api.mjs +212 -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
|
|
@@ -2433,6 +2445,35 @@ export const OrderApiAxiosParamCreator = function (configuration) {
|
|
|
2433
2445
|
options: localVarRequestOptions,
|
|
2434
2446
|
};
|
|
2435
2447
|
},
|
|
2448
|
+
/**
|
|
2449
|
+
*
|
|
2450
|
+
* @param {IOrderReviewPostRequest} iOrderReviewPostRequest
|
|
2451
|
+
* @param {*} [options] Override http request option.
|
|
2452
|
+
* @throws {RequiredError}
|
|
2453
|
+
*/
|
|
2454
|
+
createReview: async (iOrderReviewPostRequest, options = {}) => {
|
|
2455
|
+
// verify required parameter 'iOrderReviewPostRequest' is not null or undefined
|
|
2456
|
+
assertParamExists('createReview', 'iOrderReviewPostRequest', iOrderReviewPostRequest);
|
|
2457
|
+
const localVarPath = `/api/orders/reviews`;
|
|
2458
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2459
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2460
|
+
let baseOptions;
|
|
2461
|
+
if (configuration) {
|
|
2462
|
+
baseOptions = configuration.baseOptions;
|
|
2463
|
+
}
|
|
2464
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
2465
|
+
const localVarHeaderParameter = {};
|
|
2466
|
+
const localVarQueryParameter = {};
|
|
2467
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2468
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2469
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2470
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2471
|
+
localVarRequestOptions.data = serializeDataIfNeeded(iOrderReviewPostRequest, localVarRequestOptions, configuration);
|
|
2472
|
+
return {
|
|
2473
|
+
url: toPathString(localVarUrlObj),
|
|
2474
|
+
options: localVarRequestOptions,
|
|
2475
|
+
};
|
|
2476
|
+
},
|
|
2436
2477
|
/**
|
|
2437
2478
|
*
|
|
2438
2479
|
* @param {number} [page]
|
|
@@ -2599,6 +2640,39 @@ export const OrderApiAxiosParamCreator = function (configuration) {
|
|
|
2599
2640
|
options: localVarRequestOptions,
|
|
2600
2641
|
};
|
|
2601
2642
|
},
|
|
2643
|
+
/**
|
|
2644
|
+
*
|
|
2645
|
+
* @param {string} id
|
|
2646
|
+
* @param {IReviewPatchRequest} iReviewPatchRequest
|
|
2647
|
+
* @param {*} [options] Override http request option.
|
|
2648
|
+
* @throws {RequiredError}
|
|
2649
|
+
*/
|
|
2650
|
+
updateReview: async (id, iReviewPatchRequest, options = {}) => {
|
|
2651
|
+
// verify required parameter 'id' is not null or undefined
|
|
2652
|
+
assertParamExists('updateReview', 'id', id);
|
|
2653
|
+
// verify required parameter 'iReviewPatchRequest' is not null or undefined
|
|
2654
|
+
assertParamExists('updateReview', 'iReviewPatchRequest', iReviewPatchRequest);
|
|
2655
|
+
const localVarPath = `/api/orders/reviews/{id}`
|
|
2656
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
2657
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2658
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2659
|
+
let baseOptions;
|
|
2660
|
+
if (configuration) {
|
|
2661
|
+
baseOptions = configuration.baseOptions;
|
|
2662
|
+
}
|
|
2663
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options };
|
|
2664
|
+
const localVarHeaderParameter = {};
|
|
2665
|
+
const localVarQueryParameter = {};
|
|
2666
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2667
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2668
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2669
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2670
|
+
localVarRequestOptions.data = serializeDataIfNeeded(iReviewPatchRequest, localVarRequestOptions, configuration);
|
|
2671
|
+
return {
|
|
2672
|
+
url: toPathString(localVarUrlObj),
|
|
2673
|
+
options: localVarRequestOptions,
|
|
2674
|
+
};
|
|
2675
|
+
},
|
|
2602
2676
|
};
|
|
2603
2677
|
};
|
|
2604
2678
|
/**
|
|
@@ -2633,6 +2707,18 @@ export const OrderApiFp = function (configuration) {
|
|
|
2633
2707
|
const localVarOperationServerBasePath = operationServerMap['OrderApi.createReturn']?.[localVarOperationServerIndex]?.url;
|
|
2634
2708
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2635
2709
|
},
|
|
2710
|
+
/**
|
|
2711
|
+
*
|
|
2712
|
+
* @param {IOrderReviewPostRequest} iOrderReviewPostRequest
|
|
2713
|
+
* @param {*} [options] Override http request option.
|
|
2714
|
+
* @throws {RequiredError}
|
|
2715
|
+
*/
|
|
2716
|
+
async createReview(iOrderReviewPostRequest, options) {
|
|
2717
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createReview(iOrderReviewPostRequest, options);
|
|
2718
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2719
|
+
const localVarOperationServerBasePath = operationServerMap['OrderApi.createReview']?.[localVarOperationServerIndex]?.url;
|
|
2720
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2721
|
+
},
|
|
2636
2722
|
/**
|
|
2637
2723
|
*
|
|
2638
2724
|
* @param {number} [page]
|
|
@@ -2687,6 +2773,19 @@ export const OrderApiFp = function (configuration) {
|
|
|
2687
2773
|
const localVarOperationServerBasePath = operationServerMap['OrderApi.getOrders']?.[localVarOperationServerIndex]?.url;
|
|
2688
2774
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2689
2775
|
},
|
|
2776
|
+
/**
|
|
2777
|
+
*
|
|
2778
|
+
* @param {string} id
|
|
2779
|
+
* @param {IReviewPatchRequest} iReviewPatchRequest
|
|
2780
|
+
* @param {*} [options] Override http request option.
|
|
2781
|
+
* @throws {RequiredError}
|
|
2782
|
+
*/
|
|
2783
|
+
async updateReview(id, iReviewPatchRequest, options) {
|
|
2784
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateReview(id, iReviewPatchRequest, options);
|
|
2785
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2786
|
+
const localVarOperationServerBasePath = operationServerMap['OrderApi.updateReview']?.[localVarOperationServerIndex]?.url;
|
|
2787
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2788
|
+
},
|
|
2690
2789
|
};
|
|
2691
2790
|
};
|
|
2692
2791
|
/**
|
|
@@ -2714,6 +2813,15 @@ export const OrderApiFactory = function (configuration, basePath, axios) {
|
|
|
2714
2813
|
createReturn(requestParameters, options) {
|
|
2715
2814
|
return localVarFp.createReturn(requestParameters.id, requestParameters.iOrderReturnPostRequest, options).then((request) => request(axios, basePath));
|
|
2716
2815
|
},
|
|
2816
|
+
/**
|
|
2817
|
+
*
|
|
2818
|
+
* @param {OrderApiCreateReviewRequest} requestParameters Request parameters.
|
|
2819
|
+
* @param {*} [options] Override http request option.
|
|
2820
|
+
* @throws {RequiredError}
|
|
2821
|
+
*/
|
|
2822
|
+
createReview(requestParameters, options) {
|
|
2823
|
+
return localVarFp.createReview(requestParameters.iOrderReviewPostRequest, options).then((request) => request(axios, basePath));
|
|
2824
|
+
},
|
|
2717
2825
|
/**
|
|
2718
2826
|
*
|
|
2719
2827
|
* @param {OrderApiGetMyOrdersRequest} requestParameters Request parameters.
|
|
@@ -2741,6 +2849,15 @@ export const OrderApiFactory = function (configuration, basePath, axios) {
|
|
|
2741
2849
|
getOrders(requestParameters, options) {
|
|
2742
2850
|
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
2851
|
},
|
|
2852
|
+
/**
|
|
2853
|
+
*
|
|
2854
|
+
* @param {OrderApiUpdateReviewRequest} requestParameters Request parameters.
|
|
2855
|
+
* @param {*} [options] Override http request option.
|
|
2856
|
+
* @throws {RequiredError}
|
|
2857
|
+
*/
|
|
2858
|
+
updateReview(requestParameters, options) {
|
|
2859
|
+
return localVarFp.updateReview(requestParameters.id, requestParameters.iReviewPatchRequest, options).then((request) => request(axios, basePath));
|
|
2860
|
+
},
|
|
2744
2861
|
};
|
|
2745
2862
|
};
|
|
2746
2863
|
/**
|
|
@@ -2770,6 +2887,16 @@ export class OrderApi extends BaseAPI {
|
|
|
2770
2887
|
createReturn(requestParameters, options) {
|
|
2771
2888
|
return OrderApiFp(this.configuration).createReturn(requestParameters.id, requestParameters.iOrderReturnPostRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2772
2889
|
}
|
|
2890
|
+
/**
|
|
2891
|
+
*
|
|
2892
|
+
* @param {OrderApiCreateReviewRequest} requestParameters Request parameters.
|
|
2893
|
+
* @param {*} [options] Override http request option.
|
|
2894
|
+
* @throws {RequiredError}
|
|
2895
|
+
* @memberof OrderApi
|
|
2896
|
+
*/
|
|
2897
|
+
createReview(requestParameters, options) {
|
|
2898
|
+
return OrderApiFp(this.configuration).createReview(requestParameters.iOrderReviewPostRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2899
|
+
}
|
|
2773
2900
|
/**
|
|
2774
2901
|
*
|
|
2775
2902
|
* @param {OrderApiGetMyOrdersRequest} requestParameters Request parameters.
|
|
@@ -2800,6 +2927,16 @@ export class OrderApi extends BaseAPI {
|
|
|
2800
2927
|
getOrders(requestParameters, options) {
|
|
2801
2928
|
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
2929
|
}
|
|
2930
|
+
/**
|
|
2931
|
+
*
|
|
2932
|
+
* @param {OrderApiUpdateReviewRequest} requestParameters Request parameters.
|
|
2933
|
+
* @param {*} [options] Override http request option.
|
|
2934
|
+
* @throws {RequiredError}
|
|
2935
|
+
* @memberof OrderApi
|
|
2936
|
+
*/
|
|
2937
|
+
updateReview(requestParameters, options) {
|
|
2938
|
+
return OrderApiFp(this.configuration).updateReview(requestParameters.id, requestParameters.iReviewPatchRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2939
|
+
}
|
|
2803
2940
|
}
|
|
2804
2941
|
/**
|
|
2805
2942
|
* @export
|
|
@@ -2859,7 +2996,7 @@ export const PageApiAxiosParamCreator = function (configuration) {
|
|
|
2859
2996
|
},
|
|
2860
2997
|
/**
|
|
2861
2998
|
*
|
|
2862
|
-
* @param {
|
|
2999
|
+
* @param {PageTypeEnum} type
|
|
2863
3000
|
* @param {string} [companyId]
|
|
2864
3001
|
* @param {string} [domain]
|
|
2865
3002
|
* @param {string} [template]
|
|
@@ -2998,7 +3135,7 @@ export const PageApiFp = function (configuration) {
|
|
|
2998
3135
|
},
|
|
2999
3136
|
/**
|
|
3000
3137
|
*
|
|
3001
|
-
* @param {
|
|
3138
|
+
* @param {PageTypeEnum} type
|
|
3002
3139
|
* @param {string} [companyId]
|
|
3003
3140
|
* @param {string} [domain]
|
|
3004
3141
|
* @param {string} [template]
|
|
@@ -3159,6 +3296,38 @@ export const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
3159
3296
|
options: localVarRequestOptions,
|
|
3160
3297
|
};
|
|
3161
3298
|
},
|
|
3299
|
+
/**
|
|
3300
|
+
*
|
|
3301
|
+
* @param {string} id
|
|
3302
|
+
* @param {number} [rating]
|
|
3303
|
+
* @param {*} [options] Override http request option.
|
|
3304
|
+
* @throws {RequiredError}
|
|
3305
|
+
*/
|
|
3306
|
+
getProductReviews: async (id, rating, options = {}) => {
|
|
3307
|
+
// verify required parameter 'id' is not null or undefined
|
|
3308
|
+
assertParamExists('getProductReviews', 'id', id);
|
|
3309
|
+
const localVarPath = `/api/products/{id}/reviews`
|
|
3310
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
3311
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3312
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3313
|
+
let baseOptions;
|
|
3314
|
+
if (configuration) {
|
|
3315
|
+
baseOptions = configuration.baseOptions;
|
|
3316
|
+
}
|
|
3317
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
3318
|
+
const localVarHeaderParameter = {};
|
|
3319
|
+
const localVarQueryParameter = {};
|
|
3320
|
+
if (rating !== undefined) {
|
|
3321
|
+
localVarQueryParameter['rating'] = rating;
|
|
3322
|
+
}
|
|
3323
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3324
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3325
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
3326
|
+
return {
|
|
3327
|
+
url: toPathString(localVarUrlObj),
|
|
3328
|
+
options: localVarRequestOptions,
|
|
3329
|
+
};
|
|
3330
|
+
},
|
|
3162
3331
|
/**
|
|
3163
3332
|
*
|
|
3164
3333
|
* @param {number} [page]
|
|
@@ -3177,14 +3346,12 @@ export const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
3177
3346
|
* @param {number} [priceGte]
|
|
3178
3347
|
* @param {number} [priceLte]
|
|
3179
3348
|
* @param {boolean} [autoComplete]
|
|
3180
|
-
* @param {Array<string>} [mainVariant]
|
|
3181
|
-
* @param {Array<string>} [subVariant]
|
|
3182
3349
|
* @param {GetProductsSortEnum} [sort]
|
|
3183
3350
|
* @param {ContentStatusEnum} [status]
|
|
3184
3351
|
* @param {*} [options] Override http request option.
|
|
3185
3352
|
* @throws {RequiredError}
|
|
3186
3353
|
*/
|
|
3187
|
-
getProducts: async (page, itemsPerPage, search, startDate, endDate, dateField, order, companyId, domain, collections, category, brand, inStock, priceGte, priceLte, autoComplete,
|
|
3354
|
+
getProducts: async (page, itemsPerPage, search, startDate, endDate, dateField, order, companyId, domain, collections, category, brand, inStock, priceGte, priceLte, autoComplete, sort, status, options = {}) => {
|
|
3188
3355
|
const localVarPath = `/api/products`;
|
|
3189
3356
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3190
3357
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -3247,12 +3414,6 @@ export const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
3247
3414
|
if (autoComplete !== undefined) {
|
|
3248
3415
|
localVarQueryParameter['autoComplete'] = autoComplete;
|
|
3249
3416
|
}
|
|
3250
|
-
if (mainVariant) {
|
|
3251
|
-
localVarQueryParameter['mainVariant'] = mainVariant;
|
|
3252
|
-
}
|
|
3253
|
-
if (subVariant) {
|
|
3254
|
-
localVarQueryParameter['subVariant'] = subVariant;
|
|
3255
|
-
}
|
|
3256
3417
|
if (sort !== undefined) {
|
|
3257
3418
|
localVarQueryParameter['sort'] = sort;
|
|
3258
3419
|
}
|
|
@@ -3290,6 +3451,19 @@ export const ProductApiFp = function (configuration) {
|
|
|
3290
3451
|
const localVarOperationServerBasePath = operationServerMap['ProductApi.getProductBySlug']?.[localVarOperationServerIndex]?.url;
|
|
3291
3452
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3292
3453
|
},
|
|
3454
|
+
/**
|
|
3455
|
+
*
|
|
3456
|
+
* @param {string} id
|
|
3457
|
+
* @param {number} [rating]
|
|
3458
|
+
* @param {*} [options] Override http request option.
|
|
3459
|
+
* @throws {RequiredError}
|
|
3460
|
+
*/
|
|
3461
|
+
async getProductReviews(id, rating, options) {
|
|
3462
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getProductReviews(id, rating, options);
|
|
3463
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3464
|
+
const localVarOperationServerBasePath = operationServerMap['ProductApi.getProductReviews']?.[localVarOperationServerIndex]?.url;
|
|
3465
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3466
|
+
},
|
|
3293
3467
|
/**
|
|
3294
3468
|
*
|
|
3295
3469
|
* @param {number} [page]
|
|
@@ -3308,15 +3482,13 @@ export const ProductApiFp = function (configuration) {
|
|
|
3308
3482
|
* @param {number} [priceGte]
|
|
3309
3483
|
* @param {number} [priceLte]
|
|
3310
3484
|
* @param {boolean} [autoComplete]
|
|
3311
|
-
* @param {Array<string>} [mainVariant]
|
|
3312
|
-
* @param {Array<string>} [subVariant]
|
|
3313
3485
|
* @param {GetProductsSortEnum} [sort]
|
|
3314
3486
|
* @param {ContentStatusEnum} [status]
|
|
3315
3487
|
* @param {*} [options] Override http request option.
|
|
3316
3488
|
* @throws {RequiredError}
|
|
3317
3489
|
*/
|
|
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,
|
|
3490
|
+
async getProducts(page, itemsPerPage, search, startDate, endDate, dateField, order, companyId, domain, collections, category, brand, inStock, priceGte, priceLte, autoComplete, sort, status, options) {
|
|
3491
|
+
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
3492
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3321
3493
|
const localVarOperationServerBasePath = operationServerMap['ProductApi.getProducts']?.[localVarOperationServerIndex]?.url;
|
|
3322
3494
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -3339,6 +3511,15 @@ export const ProductApiFactory = function (configuration, basePath, axios) {
|
|
|
3339
3511
|
getProductBySlug(requestParameters, options) {
|
|
3340
3512
|
return localVarFp.getProductBySlug(requestParameters.slug, requestParameters.companyId, requestParameters.domain, options).then((request) => request(axios, basePath));
|
|
3341
3513
|
},
|
|
3514
|
+
/**
|
|
3515
|
+
*
|
|
3516
|
+
* @param {ProductApiGetProductReviewsRequest} requestParameters Request parameters.
|
|
3517
|
+
* @param {*} [options] Override http request option.
|
|
3518
|
+
* @throws {RequiredError}
|
|
3519
|
+
*/
|
|
3520
|
+
getProductReviews(requestParameters, options) {
|
|
3521
|
+
return localVarFp.getProductReviews(requestParameters.id, requestParameters.rating, options).then((request) => request(axios, basePath));
|
|
3522
|
+
},
|
|
3342
3523
|
/**
|
|
3343
3524
|
*
|
|
3344
3525
|
* @param {ProductApiGetProductsRequest} requestParameters Request parameters.
|
|
@@ -3346,7 +3527,7 @@ export const ProductApiFactory = function (configuration, basePath, axios) {
|
|
|
3346
3527
|
* @throws {RequiredError}
|
|
3347
3528
|
*/
|
|
3348
3529
|
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.
|
|
3530
|
+
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
3531
|
},
|
|
3351
3532
|
};
|
|
3352
3533
|
};
|
|
@@ -3367,6 +3548,16 @@ export class ProductApi extends BaseAPI {
|
|
|
3367
3548
|
getProductBySlug(requestParameters, options) {
|
|
3368
3549
|
return ProductApiFp(this.configuration).getProductBySlug(requestParameters.slug, requestParameters.companyId, requestParameters.domain, options).then((request) => request(this.axios, this.basePath));
|
|
3369
3550
|
}
|
|
3551
|
+
/**
|
|
3552
|
+
*
|
|
3553
|
+
* @param {ProductApiGetProductReviewsRequest} requestParameters Request parameters.
|
|
3554
|
+
* @param {*} [options] Override http request option.
|
|
3555
|
+
* @throws {RequiredError}
|
|
3556
|
+
* @memberof ProductApi
|
|
3557
|
+
*/
|
|
3558
|
+
getProductReviews(requestParameters, options) {
|
|
3559
|
+
return ProductApiFp(this.configuration).getProductReviews(requestParameters.id, requestParameters.rating, options).then((request) => request(this.axios, this.basePath));
|
|
3560
|
+
}
|
|
3370
3561
|
/**
|
|
3371
3562
|
*
|
|
3372
3563
|
* @param {ProductApiGetProductsRequest} requestParameters Request parameters.
|
|
@@ -3375,7 +3566,7 @@ export class ProductApi extends BaseAPI {
|
|
|
3375
3566
|
* @memberof ProductApi
|
|
3376
3567
|
*/
|
|
3377
3568
|
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.
|
|
3569
|
+
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
3570
|
}
|
|
3380
3571
|
}
|
|
3381
3572
|
/**
|
|
@@ -3391,7 +3582,9 @@ export const GetProductsDateFieldEnum = {
|
|
|
3391
3582
|
export const GetProductsSortEnum = {
|
|
3392
3583
|
PRICE: 'price',
|
|
3393
3584
|
CREATED_AT: 'createdAt',
|
|
3394
|
-
TOTAL_SALE: 'totalSale'
|
|
3585
|
+
TOTAL_SALE: 'totalSale',
|
|
3586
|
+
RATING: 'rating',
|
|
3587
|
+
REVIEW_COUNT: 'reviewCount'
|
|
3395
3588
|
};
|
|
3396
3589
|
/**
|
|
3397
3590
|
* 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.75",
|
|
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": "e5d78bca810a40bb61d9762322dc134c25ca6ccf"
|
|
41
41
|
}
|