@infisale-client/api-client 1.2.92 → 1.2.94
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 +118 -10
- package/dist/api/api.js +19 -14
- package/dist/api/api.mjs +19 -14
- package/package.json +2 -2
package/dist/api/api.d.ts
CHANGED
|
@@ -71,15 +71,11 @@ export declare const ComponentContentTypeEnum: {
|
|
|
71
71
|
readonly TEXT: "text";
|
|
72
72
|
readonly CAPTION: "caption";
|
|
73
73
|
readonly BUTTONS: "buttons";
|
|
74
|
-
readonly CARD: "card";
|
|
75
74
|
readonly PRICE: "price";
|
|
76
75
|
readonly VARIANT_PICKER: "variant-picker";
|
|
77
|
-
readonly QUANTITY_SELECTOR: "quantity-selector";
|
|
78
76
|
readonly BUY_BUTTON: "buy-button";
|
|
79
77
|
readonly SHARE: "share";
|
|
80
|
-
readonly SKU: "sku";
|
|
81
78
|
readonly PRODUCT_RATING: "product-rating";
|
|
82
|
-
readonly INVENTORY_STATUS: "inventory-status";
|
|
83
79
|
readonly CAROUSEL_ITEM: "carousel-item";
|
|
84
80
|
readonly GRID_ITEM: "grid-item";
|
|
85
81
|
readonly ANNOUNCEMENT_ITEM: "announcement-item";
|
|
@@ -87,6 +83,8 @@ export declare const ComponentContentTypeEnum: {
|
|
|
87
83
|
readonly PRODUCT_DESCRIPTION: "product-description";
|
|
88
84
|
readonly PRODUCT_REVIEWS: "product-reviews";
|
|
89
85
|
readonly PRODUCT_ATTRIBUTES: "product-attributes";
|
|
86
|
+
readonly IMAGE: "image";
|
|
87
|
+
readonly CONTENT: "content";
|
|
90
88
|
};
|
|
91
89
|
export type ComponentContentTypeEnum = typeof ComponentContentTypeEnum[keyof typeof ComponentContentTypeEnum];
|
|
92
90
|
/**
|
|
@@ -130,10 +128,9 @@ export declare const ComponentTypeEnum: {
|
|
|
130
128
|
readonly BANNER: "banner";
|
|
131
129
|
readonly GRID: "grid";
|
|
132
130
|
readonly PRODUCT_LIST: "product-list";
|
|
133
|
-
readonly
|
|
131
|
+
readonly PAGE_DETAIL: "page-detail";
|
|
134
132
|
readonly PRODUCT_DETAIL: "product-detail";
|
|
135
133
|
readonly PRODUCT_MORE_DETAIL: "product-more-detail";
|
|
136
|
-
readonly SINGLE_PRODUCT: "single-product";
|
|
137
134
|
readonly COLLECTION_LIST: "collection-list";
|
|
138
135
|
readonly CATEGORY_LIST: "category-list";
|
|
139
136
|
readonly BRAND_LIST: "brand-list";
|
|
@@ -141,11 +138,9 @@ export declare const ComponentTypeEnum: {
|
|
|
141
138
|
readonly RICH_TEXT: "rich-text";
|
|
142
139
|
readonly BANNER_WITH_TEXT: "banner-with-text";
|
|
143
140
|
readonly ACCORDION: "accordion";
|
|
144
|
-
readonly VIDEO: "video";
|
|
145
141
|
readonly HEADER: "header";
|
|
146
142
|
readonly ANNOUNCEMENT: "announcement";
|
|
147
143
|
readonly FOOTER: "footer";
|
|
148
|
-
readonly EMAIL_SIGNUP: "email-signup";
|
|
149
144
|
readonly CONTACT_FORM: "contact-form";
|
|
150
145
|
readonly CART_DETAIL: "cart-detail";
|
|
151
146
|
readonly CHECKOUT_DETAIL: "checkout-detail";
|
|
@@ -2222,6 +2217,12 @@ export interface ICompany {
|
|
|
2222
2217
|
* @memberof ICompany
|
|
2223
2218
|
*/
|
|
2224
2219
|
'autoApproveReviews': boolean;
|
|
2220
|
+
/**
|
|
2221
|
+
*
|
|
2222
|
+
* @type {PickICompanyExcludeKeyofICompanyKeyofICompanyResponseOmitKeysPolicyPages}
|
|
2223
|
+
* @memberof ICompany
|
|
2224
|
+
*/
|
|
2225
|
+
'policyPages': PickICompanyExcludeKeyofICompanyKeyofICompanyResponseOmitKeysPolicyPages;
|
|
2225
2226
|
/**
|
|
2226
2227
|
*
|
|
2227
2228
|
* @type {CompanyStatusEnum}
|
|
@@ -2435,6 +2436,12 @@ export interface ICompanyAdminResponse {
|
|
|
2435
2436
|
* @memberof ICompanyAdminResponse
|
|
2436
2437
|
*/
|
|
2437
2438
|
'autoApproveReviews': boolean;
|
|
2439
|
+
/**
|
|
2440
|
+
*
|
|
2441
|
+
* @type {PickICompanyExcludeKeyofICompanyKeyofICompanyResponseOmitKeysPolicyPages}
|
|
2442
|
+
* @memberof ICompanyAdminResponse
|
|
2443
|
+
*/
|
|
2444
|
+
'policyPages': PickICompanyExcludeKeyofICompanyKeyofICompanyResponseOmitKeysPolicyPages;
|
|
2438
2445
|
/**
|
|
2439
2446
|
*
|
|
2440
2447
|
* @type {string}
|
|
@@ -2879,6 +2886,12 @@ export interface ICompanyPatchRequest {
|
|
|
2879
2886
|
* @memberof ICompanyPatchRequest
|
|
2880
2887
|
*/
|
|
2881
2888
|
'autoApproveReviews'?: boolean;
|
|
2889
|
+
/**
|
|
2890
|
+
*
|
|
2891
|
+
* @type {PickICompanyExcludeKeyofICompanyKeyofICompanyResponseOmitKeysPolicyPages}
|
|
2892
|
+
* @memberof ICompanyPatchRequest
|
|
2893
|
+
*/
|
|
2894
|
+
'policyPages'?: PickICompanyExcludeKeyofICompanyKeyofICompanyResponseOmitKeysPolicyPages;
|
|
2882
2895
|
/**
|
|
2883
2896
|
*
|
|
2884
2897
|
* @type {string}
|
|
@@ -3191,6 +3204,12 @@ export interface ICompanyResponse {
|
|
|
3191
3204
|
* @memberof ICompanyResponse
|
|
3192
3205
|
*/
|
|
3193
3206
|
'autoApproveReviews': boolean;
|
|
3207
|
+
/**
|
|
3208
|
+
*
|
|
3209
|
+
* @type {PickICompanyExcludeKeyofICompanyKeyofICompanyResponseOmitKeysPolicyPages}
|
|
3210
|
+
* @memberof ICompanyResponse
|
|
3211
|
+
*/
|
|
3212
|
+
'policyPages': PickICompanyExcludeKeyofICompanyKeyofICompanyResponseOmitKeysPolicyPages;
|
|
3194
3213
|
/**
|
|
3195
3214
|
*
|
|
3196
3215
|
* @type {string}
|
|
@@ -5423,6 +5442,12 @@ export interface IOrderResponse {
|
|
|
5423
5442
|
* @memberof IOrderResponse
|
|
5424
5443
|
*/
|
|
5425
5444
|
'note'?: string;
|
|
5445
|
+
/**
|
|
5446
|
+
*
|
|
5447
|
+
* @type {string}
|
|
5448
|
+
* @memberof IOrderResponse
|
|
5449
|
+
*/
|
|
5450
|
+
'ip': string;
|
|
5426
5451
|
/**
|
|
5427
5452
|
*
|
|
5428
5453
|
* @type {Array<PickIOrderExcludeKeyofIOrderHtmlOrIframeReturnsInner>}
|
|
@@ -7835,6 +7860,30 @@ export interface ITemplateResponseComponentsInnerBlogs {
|
|
|
7835
7860
|
* @interface ITemplateResponseComponentsInnerConfig
|
|
7836
7861
|
*/
|
|
7837
7862
|
export interface ITemplateResponseComponentsInnerConfig {
|
|
7863
|
+
/**
|
|
7864
|
+
*
|
|
7865
|
+
* @type {boolean}
|
|
7866
|
+
* @memberof ITemplateResponseComponentsInnerConfig
|
|
7867
|
+
*/
|
|
7868
|
+
'policyLinks'?: boolean;
|
|
7869
|
+
/**
|
|
7870
|
+
*
|
|
7871
|
+
* @type {boolean}
|
|
7872
|
+
* @memberof ITemplateResponseComponentsInnerConfig
|
|
7873
|
+
*/
|
|
7874
|
+
'paymentGatewayPictures'?: boolean;
|
|
7875
|
+
/**
|
|
7876
|
+
*
|
|
7877
|
+
* @type {boolean}
|
|
7878
|
+
* @memberof ITemplateResponseComponentsInnerConfig
|
|
7879
|
+
*/
|
|
7880
|
+
'languageSwitcher'?: boolean;
|
|
7881
|
+
/**
|
|
7882
|
+
*
|
|
7883
|
+
* @type {boolean}
|
|
7884
|
+
* @memberof ITemplateResponseComponentsInnerConfig
|
|
7885
|
+
*/
|
|
7886
|
+
'socialButtons'?: boolean;
|
|
7838
7887
|
/**
|
|
7839
7888
|
*
|
|
7840
7889
|
* @type {boolean}
|
|
@@ -9605,6 +9654,12 @@ export interface PickICompanyExcludeKeyofICompanyKeyofICompanyResponseOmitKeys {
|
|
|
9605
9654
|
* @memberof PickICompanyExcludeKeyofICompanyKeyofICompanyResponseOmitKeys
|
|
9606
9655
|
*/
|
|
9607
9656
|
'autoApproveReviews': boolean;
|
|
9657
|
+
/**
|
|
9658
|
+
*
|
|
9659
|
+
* @type {PickICompanyExcludeKeyofICompanyKeyofICompanyResponseOmitKeysPolicyPages}
|
|
9660
|
+
* @memberof PickICompanyExcludeKeyofICompanyKeyofICompanyResponseOmitKeys
|
|
9661
|
+
*/
|
|
9662
|
+
'policyPages': PickICompanyExcludeKeyofICompanyKeyofICompanyResponseOmitKeysPolicyPages;
|
|
9608
9663
|
/**
|
|
9609
9664
|
*
|
|
9610
9665
|
* @type {string}
|
|
@@ -9637,6 +9692,37 @@ export interface PickICompanyExcludeKeyofICompanyKeyofICompanyResponseOmitKeysFi
|
|
|
9637
9692
|
*/
|
|
9638
9693
|
'google': boolean;
|
|
9639
9694
|
}
|
|
9695
|
+
/**
|
|
9696
|
+
*
|
|
9697
|
+
* @export
|
|
9698
|
+
* @interface PickICompanyExcludeKeyofICompanyKeyofICompanyResponseOmitKeysPolicyPages
|
|
9699
|
+
*/
|
|
9700
|
+
export interface PickICompanyExcludeKeyofICompanyKeyofICompanyResponseOmitKeysPolicyPages {
|
|
9701
|
+
/**
|
|
9702
|
+
* Construct a type with a set of properties K of type T
|
|
9703
|
+
* @type {object}
|
|
9704
|
+
* @memberof PickICompanyExcludeKeyofICompanyKeyofICompanyResponseOmitKeysPolicyPages
|
|
9705
|
+
*/
|
|
9706
|
+
'terms_of_service'?: object;
|
|
9707
|
+
/**
|
|
9708
|
+
* Construct a type with a set of properties K of type T
|
|
9709
|
+
* @type {object}
|
|
9710
|
+
* @memberof PickICompanyExcludeKeyofICompanyKeyofICompanyResponseOmitKeysPolicyPages
|
|
9711
|
+
*/
|
|
9712
|
+
'privacy_policy'?: object;
|
|
9713
|
+
/**
|
|
9714
|
+
* Construct a type with a set of properties K of type T
|
|
9715
|
+
* @type {object}
|
|
9716
|
+
* @memberof PickICompanyExcludeKeyofICompanyKeyofICompanyResponseOmitKeysPolicyPages
|
|
9717
|
+
*/
|
|
9718
|
+
'return_policy'?: object;
|
|
9719
|
+
/**
|
|
9720
|
+
* Construct a type with a set of properties K of type T
|
|
9721
|
+
* @type {object}
|
|
9722
|
+
* @memberof PickICompanyExcludeKeyofICompanyKeyofICompanyResponseOmitKeysPolicyPages
|
|
9723
|
+
*/
|
|
9724
|
+
'distance_sales_agreement'?: object;
|
|
9725
|
+
}
|
|
9640
9726
|
/**
|
|
9641
9727
|
* From T, pick a set of properties whose keys are in the union K
|
|
9642
9728
|
* @export
|
|
@@ -9994,6 +10080,12 @@ export interface PickIOrderExcludeKeyofIOrderHtmlOrIframe {
|
|
|
9994
10080
|
* @memberof PickIOrderExcludeKeyofIOrderHtmlOrIframe
|
|
9995
10081
|
*/
|
|
9996
10082
|
'note'?: string;
|
|
10083
|
+
/**
|
|
10084
|
+
*
|
|
10085
|
+
* @type {string}
|
|
10086
|
+
* @memberof PickIOrderExcludeKeyofIOrderHtmlOrIframe
|
|
10087
|
+
*/
|
|
10088
|
+
'ip': string;
|
|
9997
10089
|
/**
|
|
9998
10090
|
*
|
|
9999
10091
|
* @type {Array<PickIOrderExcludeKeyofIOrderHtmlOrIframeReturnsInner>}
|
|
@@ -13772,10 +13864,12 @@ export declare const ProductApiAxiosParamCreator: (configuration?: Configuration
|
|
|
13772
13864
|
*
|
|
13773
13865
|
* @param {string} id
|
|
13774
13866
|
* @param {number} [rating]
|
|
13867
|
+
* @param {number} [page]
|
|
13868
|
+
* @param {number} [itemsPerPage]
|
|
13775
13869
|
* @param {*} [options] Override http request option.
|
|
13776
13870
|
* @throws {RequiredError}
|
|
13777
13871
|
*/
|
|
13778
|
-
getProductReviews: (id: string, rating?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
13872
|
+
getProductReviews: (id: string, rating?: number, page?: number, itemsPerPage?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
13779
13873
|
/**
|
|
13780
13874
|
*
|
|
13781
13875
|
* @param {OrderEnum} [order]
|
|
@@ -13819,10 +13913,12 @@ export declare const ProductApiFp: (configuration?: Configuration) => {
|
|
|
13819
13913
|
*
|
|
13820
13914
|
* @param {string} id
|
|
13821
13915
|
* @param {number} [rating]
|
|
13916
|
+
* @param {number} [page]
|
|
13917
|
+
* @param {number} [itemsPerPage]
|
|
13822
13918
|
* @param {*} [options] Override http request option.
|
|
13823
13919
|
* @throws {RequiredError}
|
|
13824
13920
|
*/
|
|
13825
|
-
getProductReviews(id: string, rating?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IProductReviewsResponse>>;
|
|
13921
|
+
getProductReviews(id: string, rating?: number, page?: number, itemsPerPage?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IProductReviewsResponse>>;
|
|
13826
13922
|
/**
|
|
13827
13923
|
*
|
|
13828
13924
|
* @param {OrderEnum} [order]
|
|
@@ -13918,6 +14014,18 @@ export interface ProductApiGetProductReviewsRequest {
|
|
|
13918
14014
|
* @memberof ProductApiGetProductReviews
|
|
13919
14015
|
*/
|
|
13920
14016
|
readonly rating?: number;
|
|
14017
|
+
/**
|
|
14018
|
+
*
|
|
14019
|
+
* @type {number}
|
|
14020
|
+
* @memberof ProductApiGetProductReviews
|
|
14021
|
+
*/
|
|
14022
|
+
readonly page?: number;
|
|
14023
|
+
/**
|
|
14024
|
+
*
|
|
14025
|
+
* @type {number}
|
|
14026
|
+
* @memberof ProductApiGetProductReviews
|
|
14027
|
+
*/
|
|
14028
|
+
readonly itemsPerPage?: number;
|
|
13921
14029
|
}
|
|
13922
14030
|
/**
|
|
13923
14031
|
* Request parameters for getProducts operation in ProductApi.
|
package/dist/api/api.js
CHANGED
|
@@ -79,22 +79,20 @@ exports.ComponentContentTypeEnum = {
|
|
|
79
79
|
TEXT: 'text',
|
|
80
80
|
CAPTION: 'caption',
|
|
81
81
|
BUTTONS: 'buttons',
|
|
82
|
-
CARD: 'card',
|
|
83
82
|
PRICE: 'price',
|
|
84
83
|
VARIANT_PICKER: 'variant-picker',
|
|
85
|
-
QUANTITY_SELECTOR: 'quantity-selector',
|
|
86
84
|
BUY_BUTTON: 'buy-button',
|
|
87
85
|
SHARE: 'share',
|
|
88
|
-
SKU: 'sku',
|
|
89
86
|
PRODUCT_RATING: 'product-rating',
|
|
90
|
-
INVENTORY_STATUS: 'inventory-status',
|
|
91
87
|
CAROUSEL_ITEM: 'carousel-item',
|
|
92
88
|
GRID_ITEM: 'grid-item',
|
|
93
89
|
ANNOUNCEMENT_ITEM: 'announcement-item',
|
|
94
90
|
ACCORDION_ITEM: 'accordion-item',
|
|
95
91
|
PRODUCT_DESCRIPTION: 'product-description',
|
|
96
92
|
PRODUCT_REVIEWS: 'product-reviews',
|
|
97
|
-
PRODUCT_ATTRIBUTES: 'product-attributes'
|
|
93
|
+
PRODUCT_ATTRIBUTES: 'product-attributes',
|
|
94
|
+
IMAGE: 'image',
|
|
95
|
+
CONTENT: 'content'
|
|
98
96
|
};
|
|
99
97
|
/**
|
|
100
98
|
*
|
|
@@ -134,10 +132,9 @@ exports.ComponentTypeEnum = {
|
|
|
134
132
|
BANNER: 'banner',
|
|
135
133
|
GRID: 'grid',
|
|
136
134
|
PRODUCT_LIST: 'product-list',
|
|
137
|
-
|
|
135
|
+
PAGE_DETAIL: 'page-detail',
|
|
138
136
|
PRODUCT_DETAIL: 'product-detail',
|
|
139
137
|
PRODUCT_MORE_DETAIL: 'product-more-detail',
|
|
140
|
-
SINGLE_PRODUCT: 'single-product',
|
|
141
138
|
COLLECTION_LIST: 'collection-list',
|
|
142
139
|
CATEGORY_LIST: 'category-list',
|
|
143
140
|
BRAND_LIST: 'brand-list',
|
|
@@ -145,11 +142,9 @@ exports.ComponentTypeEnum = {
|
|
|
145
142
|
RICH_TEXT: 'rich-text',
|
|
146
143
|
BANNER_WITH_TEXT: 'banner-with-text',
|
|
147
144
|
ACCORDION: 'accordion',
|
|
148
|
-
VIDEO: 'video',
|
|
149
145
|
HEADER: 'header',
|
|
150
146
|
ANNOUNCEMENT: 'announcement',
|
|
151
147
|
FOOTER: 'footer',
|
|
152
|
-
EMAIL_SIGNUP: 'email-signup',
|
|
153
148
|
CONTACT_FORM: 'contact-form',
|
|
154
149
|
CART_DETAIL: 'cart-detail',
|
|
155
150
|
CHECKOUT_DETAIL: 'checkout-detail',
|
|
@@ -3436,10 +3431,12 @@ const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
3436
3431
|
*
|
|
3437
3432
|
* @param {string} id
|
|
3438
3433
|
* @param {number} [rating]
|
|
3434
|
+
* @param {number} [page]
|
|
3435
|
+
* @param {number} [itemsPerPage]
|
|
3439
3436
|
* @param {*} [options] Override http request option.
|
|
3440
3437
|
* @throws {RequiredError}
|
|
3441
3438
|
*/
|
|
3442
|
-
getProductReviews: async (id, rating, options = {}) => {
|
|
3439
|
+
getProductReviews: async (id, rating, page, itemsPerPage, options = {}) => {
|
|
3443
3440
|
// verify required parameter 'id' is not null or undefined
|
|
3444
3441
|
(0, common_1.assertParamExists)('getProductReviews', 'id', id);
|
|
3445
3442
|
const localVarPath = `/api/products/{id}/reviews`
|
|
@@ -3456,6 +3453,12 @@ const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
3456
3453
|
if (rating !== undefined) {
|
|
3457
3454
|
localVarQueryParameter['rating'] = rating;
|
|
3458
3455
|
}
|
|
3456
|
+
if (page !== undefined) {
|
|
3457
|
+
localVarQueryParameter['page'] = page;
|
|
3458
|
+
}
|
|
3459
|
+
if (itemsPerPage !== undefined) {
|
|
3460
|
+
localVarQueryParameter['itemsPerPage'] = itemsPerPage;
|
|
3461
|
+
}
|
|
3459
3462
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3460
3463
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3461
3464
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -3592,11 +3595,13 @@ const ProductApiFp = function (configuration) {
|
|
|
3592
3595
|
*
|
|
3593
3596
|
* @param {string} id
|
|
3594
3597
|
* @param {number} [rating]
|
|
3598
|
+
* @param {number} [page]
|
|
3599
|
+
* @param {number} [itemsPerPage]
|
|
3595
3600
|
* @param {*} [options] Override http request option.
|
|
3596
3601
|
* @throws {RequiredError}
|
|
3597
3602
|
*/
|
|
3598
|
-
async getProductReviews(id, rating, options) {
|
|
3599
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getProductReviews(id, rating, options);
|
|
3603
|
+
async getProductReviews(id, rating, page, itemsPerPage, options) {
|
|
3604
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getProductReviews(id, rating, page, itemsPerPage, options);
|
|
3600
3605
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3601
3606
|
const localVarOperationServerBasePath = base_1.operationServerMap['ProductApi.getProductReviews']?.[localVarOperationServerIndex]?.url;
|
|
3602
3607
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -3656,7 +3661,7 @@ const ProductApiFactory = function (configuration, basePath, axios) {
|
|
|
3656
3661
|
* @throws {RequiredError}
|
|
3657
3662
|
*/
|
|
3658
3663
|
getProductReviews(requestParameters, options) {
|
|
3659
|
-
return localVarFp.getProductReviews(requestParameters.id, requestParameters.rating, options).then((request) => request(axios, basePath));
|
|
3664
|
+
return localVarFp.getProductReviews(requestParameters.id, requestParameters.rating, requestParameters.page, requestParameters.itemsPerPage, options).then((request) => request(axios, basePath));
|
|
3660
3665
|
},
|
|
3661
3666
|
/**
|
|
3662
3667
|
*
|
|
@@ -3695,7 +3700,7 @@ class ProductApi extends base_1.BaseAPI {
|
|
|
3695
3700
|
* @memberof ProductApi
|
|
3696
3701
|
*/
|
|
3697
3702
|
getProductReviews(requestParameters, options) {
|
|
3698
|
-
return (0, exports.ProductApiFp)(this.configuration).getProductReviews(requestParameters.id, requestParameters.rating, options).then((request) => request(this.axios, this.basePath));
|
|
3703
|
+
return (0, exports.ProductApiFp)(this.configuration).getProductReviews(requestParameters.id, requestParameters.rating, requestParameters.page, requestParameters.itemsPerPage, options).then((request) => request(this.axios, this.basePath));
|
|
3699
3704
|
}
|
|
3700
3705
|
/**
|
|
3701
3706
|
*
|
package/dist/api/api.mjs
CHANGED
|
@@ -68,22 +68,20 @@ export const ComponentContentTypeEnum = {
|
|
|
68
68
|
TEXT: 'text',
|
|
69
69
|
CAPTION: 'caption',
|
|
70
70
|
BUTTONS: 'buttons',
|
|
71
|
-
CARD: 'card',
|
|
72
71
|
PRICE: 'price',
|
|
73
72
|
VARIANT_PICKER: 'variant-picker',
|
|
74
|
-
QUANTITY_SELECTOR: 'quantity-selector',
|
|
75
73
|
BUY_BUTTON: 'buy-button',
|
|
76
74
|
SHARE: 'share',
|
|
77
|
-
SKU: 'sku',
|
|
78
75
|
PRODUCT_RATING: 'product-rating',
|
|
79
|
-
INVENTORY_STATUS: 'inventory-status',
|
|
80
76
|
CAROUSEL_ITEM: 'carousel-item',
|
|
81
77
|
GRID_ITEM: 'grid-item',
|
|
82
78
|
ANNOUNCEMENT_ITEM: 'announcement-item',
|
|
83
79
|
ACCORDION_ITEM: 'accordion-item',
|
|
84
80
|
PRODUCT_DESCRIPTION: 'product-description',
|
|
85
81
|
PRODUCT_REVIEWS: 'product-reviews',
|
|
86
|
-
PRODUCT_ATTRIBUTES: 'product-attributes'
|
|
82
|
+
PRODUCT_ATTRIBUTES: 'product-attributes',
|
|
83
|
+
IMAGE: 'image',
|
|
84
|
+
CONTENT: 'content'
|
|
87
85
|
};
|
|
88
86
|
/**
|
|
89
87
|
*
|
|
@@ -123,10 +121,9 @@ export const ComponentTypeEnum = {
|
|
|
123
121
|
BANNER: 'banner',
|
|
124
122
|
GRID: 'grid',
|
|
125
123
|
PRODUCT_LIST: 'product-list',
|
|
126
|
-
|
|
124
|
+
PAGE_DETAIL: 'page-detail',
|
|
127
125
|
PRODUCT_DETAIL: 'product-detail',
|
|
128
126
|
PRODUCT_MORE_DETAIL: 'product-more-detail',
|
|
129
|
-
SINGLE_PRODUCT: 'single-product',
|
|
130
127
|
COLLECTION_LIST: 'collection-list',
|
|
131
128
|
CATEGORY_LIST: 'category-list',
|
|
132
129
|
BRAND_LIST: 'brand-list',
|
|
@@ -134,11 +131,9 @@ export const ComponentTypeEnum = {
|
|
|
134
131
|
RICH_TEXT: 'rich-text',
|
|
135
132
|
BANNER_WITH_TEXT: 'banner-with-text',
|
|
136
133
|
ACCORDION: 'accordion',
|
|
137
|
-
VIDEO: 'video',
|
|
138
134
|
HEADER: 'header',
|
|
139
135
|
ANNOUNCEMENT: 'announcement',
|
|
140
136
|
FOOTER: 'footer',
|
|
141
|
-
EMAIL_SIGNUP: 'email-signup',
|
|
142
137
|
CONTACT_FORM: 'contact-form',
|
|
143
138
|
CART_DETAIL: 'cart-detail',
|
|
144
139
|
CHECKOUT_DETAIL: 'checkout-detail',
|
|
@@ -3393,10 +3388,12 @@ export const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
3393
3388
|
*
|
|
3394
3389
|
* @param {string} id
|
|
3395
3390
|
* @param {number} [rating]
|
|
3391
|
+
* @param {number} [page]
|
|
3392
|
+
* @param {number} [itemsPerPage]
|
|
3396
3393
|
* @param {*} [options] Override http request option.
|
|
3397
3394
|
* @throws {RequiredError}
|
|
3398
3395
|
*/
|
|
3399
|
-
getProductReviews: async (id, rating, options = {}) => {
|
|
3396
|
+
getProductReviews: async (id, rating, page, itemsPerPage, options = {}) => {
|
|
3400
3397
|
// verify required parameter 'id' is not null or undefined
|
|
3401
3398
|
assertParamExists('getProductReviews', 'id', id);
|
|
3402
3399
|
const localVarPath = `/api/products/{id}/reviews`
|
|
@@ -3413,6 +3410,12 @@ export const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
3413
3410
|
if (rating !== undefined) {
|
|
3414
3411
|
localVarQueryParameter['rating'] = rating;
|
|
3415
3412
|
}
|
|
3413
|
+
if (page !== undefined) {
|
|
3414
|
+
localVarQueryParameter['page'] = page;
|
|
3415
|
+
}
|
|
3416
|
+
if (itemsPerPage !== undefined) {
|
|
3417
|
+
localVarQueryParameter['itemsPerPage'] = itemsPerPage;
|
|
3418
|
+
}
|
|
3416
3419
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3417
3420
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3418
3421
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -3548,11 +3551,13 @@ export const ProductApiFp = function (configuration) {
|
|
|
3548
3551
|
*
|
|
3549
3552
|
* @param {string} id
|
|
3550
3553
|
* @param {number} [rating]
|
|
3554
|
+
* @param {number} [page]
|
|
3555
|
+
* @param {number} [itemsPerPage]
|
|
3551
3556
|
* @param {*} [options] Override http request option.
|
|
3552
3557
|
* @throws {RequiredError}
|
|
3553
3558
|
*/
|
|
3554
|
-
async getProductReviews(id, rating, options) {
|
|
3555
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getProductReviews(id, rating, options);
|
|
3559
|
+
async getProductReviews(id, rating, page, itemsPerPage, options) {
|
|
3560
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getProductReviews(id, rating, page, itemsPerPage, options);
|
|
3556
3561
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3557
3562
|
const localVarOperationServerBasePath = operationServerMap['ProductApi.getProductReviews']?.[localVarOperationServerIndex]?.url;
|
|
3558
3563
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -3611,7 +3616,7 @@ export const ProductApiFactory = function (configuration, basePath, axios) {
|
|
|
3611
3616
|
* @throws {RequiredError}
|
|
3612
3617
|
*/
|
|
3613
3618
|
getProductReviews(requestParameters, options) {
|
|
3614
|
-
return localVarFp.getProductReviews(requestParameters.id, requestParameters.rating, options).then((request) => request(axios, basePath));
|
|
3619
|
+
return localVarFp.getProductReviews(requestParameters.id, requestParameters.rating, requestParameters.page, requestParameters.itemsPerPage, options).then((request) => request(axios, basePath));
|
|
3615
3620
|
},
|
|
3616
3621
|
/**
|
|
3617
3622
|
*
|
|
@@ -3649,7 +3654,7 @@ export class ProductApi extends BaseAPI {
|
|
|
3649
3654
|
* @memberof ProductApi
|
|
3650
3655
|
*/
|
|
3651
3656
|
getProductReviews(requestParameters, options) {
|
|
3652
|
-
return ProductApiFp(this.configuration).getProductReviews(requestParameters.id, requestParameters.rating, options).then((request) => request(this.axios, this.basePath));
|
|
3657
|
+
return ProductApiFp(this.configuration).getProductReviews(requestParameters.id, requestParameters.rating, requestParameters.page, requestParameters.itemsPerPage, options).then((request) => request(this.axios, this.basePath));
|
|
3653
3658
|
}
|
|
3654
3659
|
/**
|
|
3655
3660
|
*
|
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.94",
|
|
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": "a67aafa31843a66a66d81c07d9adc69ccdaaa2da"
|
|
41
41
|
}
|