@infisale-client/api 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>}
|
|
@@ -18596,10 +18688,12 @@ export declare const ProductApiAxiosParamCreator: (configuration?: Configuration
|
|
|
18596
18688
|
*
|
|
18597
18689
|
* @param {string} id
|
|
18598
18690
|
* @param {number} [rating]
|
|
18691
|
+
* @param {number} [page]
|
|
18692
|
+
* @param {number} [itemsPerPage]
|
|
18599
18693
|
* @param {*} [options] Override http request option.
|
|
18600
18694
|
* @throws {RequiredError}
|
|
18601
18695
|
*/
|
|
18602
|
-
getProductReviews: (id: string, rating?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
18696
|
+
getProductReviews: (id: string, rating?: number, page?: number, itemsPerPage?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
18603
18697
|
/**
|
|
18604
18698
|
*
|
|
18605
18699
|
* @param {OrderEnum} [order]
|
|
@@ -18690,10 +18784,12 @@ export declare const ProductApiFp: (configuration?: Configuration) => {
|
|
|
18690
18784
|
*
|
|
18691
18785
|
* @param {string} id
|
|
18692
18786
|
* @param {number} [rating]
|
|
18787
|
+
* @param {number} [page]
|
|
18788
|
+
* @param {number} [itemsPerPage]
|
|
18693
18789
|
* @param {*} [options] Override http request option.
|
|
18694
18790
|
* @throws {RequiredError}
|
|
18695
18791
|
*/
|
|
18696
|
-
getProductReviews(id: string, rating?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IProductReviewsResponse>>;
|
|
18792
|
+
getProductReviews(id: string, rating?: number, page?: number, itemsPerPage?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IProductReviewsResponse>>;
|
|
18697
18793
|
/**
|
|
18698
18794
|
*
|
|
18699
18795
|
* @param {OrderEnum} [order]
|
|
@@ -18928,6 +19024,18 @@ export interface ProductApiGetProductReviewsRequest {
|
|
|
18928
19024
|
* @memberof ProductApiGetProductReviews
|
|
18929
19025
|
*/
|
|
18930
19026
|
readonly rating?: number;
|
|
19027
|
+
/**
|
|
19028
|
+
*
|
|
19029
|
+
* @type {number}
|
|
19030
|
+
* @memberof ProductApiGetProductReviews
|
|
19031
|
+
*/
|
|
19032
|
+
readonly page?: number;
|
|
19033
|
+
/**
|
|
19034
|
+
*
|
|
19035
|
+
* @type {number}
|
|
19036
|
+
* @memberof ProductApiGetProductReviews
|
|
19037
|
+
*/
|
|
19038
|
+
readonly itemsPerPage?: number;
|
|
18931
19039
|
}
|
|
18932
19040
|
/**
|
|
18933
19041
|
* Request parameters for getProducts operation in ProductApi.
|
package/dist/api/api.js
CHANGED
|
@@ -80,22 +80,20 @@ exports.ComponentContentTypeEnum = {
|
|
|
80
80
|
TEXT: 'text',
|
|
81
81
|
CAPTION: 'caption',
|
|
82
82
|
BUTTONS: 'buttons',
|
|
83
|
-
CARD: 'card',
|
|
84
83
|
PRICE: 'price',
|
|
85
84
|
VARIANT_PICKER: 'variant-picker',
|
|
86
|
-
QUANTITY_SELECTOR: 'quantity-selector',
|
|
87
85
|
BUY_BUTTON: 'buy-button',
|
|
88
86
|
SHARE: 'share',
|
|
89
|
-
SKU: 'sku',
|
|
90
87
|
PRODUCT_RATING: 'product-rating',
|
|
91
|
-
INVENTORY_STATUS: 'inventory-status',
|
|
92
88
|
CAROUSEL_ITEM: 'carousel-item',
|
|
93
89
|
GRID_ITEM: 'grid-item',
|
|
94
90
|
ANNOUNCEMENT_ITEM: 'announcement-item',
|
|
95
91
|
ACCORDION_ITEM: 'accordion-item',
|
|
96
92
|
PRODUCT_DESCRIPTION: 'product-description',
|
|
97
93
|
PRODUCT_REVIEWS: 'product-reviews',
|
|
98
|
-
PRODUCT_ATTRIBUTES: 'product-attributes'
|
|
94
|
+
PRODUCT_ATTRIBUTES: 'product-attributes',
|
|
95
|
+
IMAGE: 'image',
|
|
96
|
+
CONTENT: 'content'
|
|
99
97
|
};
|
|
100
98
|
/**
|
|
101
99
|
*
|
|
@@ -135,10 +133,9 @@ exports.ComponentTypeEnum = {
|
|
|
135
133
|
BANNER: 'banner',
|
|
136
134
|
GRID: 'grid',
|
|
137
135
|
PRODUCT_LIST: 'product-list',
|
|
138
|
-
|
|
136
|
+
PAGE_DETAIL: 'page-detail',
|
|
139
137
|
PRODUCT_DETAIL: 'product-detail',
|
|
140
138
|
PRODUCT_MORE_DETAIL: 'product-more-detail',
|
|
141
|
-
SINGLE_PRODUCT: 'single-product',
|
|
142
139
|
COLLECTION_LIST: 'collection-list',
|
|
143
140
|
CATEGORY_LIST: 'category-list',
|
|
144
141
|
BRAND_LIST: 'brand-list',
|
|
@@ -146,11 +143,9 @@ exports.ComponentTypeEnum = {
|
|
|
146
143
|
RICH_TEXT: 'rich-text',
|
|
147
144
|
BANNER_WITH_TEXT: 'banner-with-text',
|
|
148
145
|
ACCORDION: 'accordion',
|
|
149
|
-
VIDEO: 'video',
|
|
150
146
|
HEADER: 'header',
|
|
151
147
|
ANNOUNCEMENT: 'announcement',
|
|
152
148
|
FOOTER: 'footer',
|
|
153
|
-
EMAIL_SIGNUP: 'email-signup',
|
|
154
149
|
CONTACT_FORM: 'contact-form',
|
|
155
150
|
CART_DETAIL: 'cart-detail',
|
|
156
151
|
CHECKOUT_DETAIL: 'checkout-detail',
|
|
@@ -9531,10 +9526,12 @@ const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
9531
9526
|
*
|
|
9532
9527
|
* @param {string} id
|
|
9533
9528
|
* @param {number} [rating]
|
|
9529
|
+
* @param {number} [page]
|
|
9530
|
+
* @param {number} [itemsPerPage]
|
|
9534
9531
|
* @param {*} [options] Override http request option.
|
|
9535
9532
|
* @throws {RequiredError}
|
|
9536
9533
|
*/
|
|
9537
|
-
getProductReviews: async (id, rating, options = {}) => {
|
|
9534
|
+
getProductReviews: async (id, rating, page, itemsPerPage, options = {}) => {
|
|
9538
9535
|
// verify required parameter 'id' is not null or undefined
|
|
9539
9536
|
(0, common_1.assertParamExists)('getProductReviews', 'id', id);
|
|
9540
9537
|
const localVarPath = `/api/products/{id}/reviews`
|
|
@@ -9551,6 +9548,12 @@ const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
9551
9548
|
if (rating !== undefined) {
|
|
9552
9549
|
localVarQueryParameter['rating'] = rating;
|
|
9553
9550
|
}
|
|
9551
|
+
if (page !== undefined) {
|
|
9552
|
+
localVarQueryParameter['page'] = page;
|
|
9553
|
+
}
|
|
9554
|
+
if (itemsPerPage !== undefined) {
|
|
9555
|
+
localVarQueryParameter['itemsPerPage'] = itemsPerPage;
|
|
9556
|
+
}
|
|
9554
9557
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
9555
9558
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9556
9559
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -9784,11 +9787,13 @@ const ProductApiFp = function (configuration) {
|
|
|
9784
9787
|
*
|
|
9785
9788
|
* @param {string} id
|
|
9786
9789
|
* @param {number} [rating]
|
|
9790
|
+
* @param {number} [page]
|
|
9791
|
+
* @param {number} [itemsPerPage]
|
|
9787
9792
|
* @param {*} [options] Override http request option.
|
|
9788
9793
|
* @throws {RequiredError}
|
|
9789
9794
|
*/
|
|
9790
|
-
async getProductReviews(id, rating, options) {
|
|
9791
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getProductReviews(id, rating, options);
|
|
9795
|
+
async getProductReviews(id, rating, page, itemsPerPage, options) {
|
|
9796
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getProductReviews(id, rating, page, itemsPerPage, options);
|
|
9792
9797
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
9793
9798
|
const localVarOperationServerBasePath = base_1.operationServerMap['ProductApi.getProductReviews']?.[localVarOperationServerIndex]?.url;
|
|
9794
9799
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -9906,7 +9911,7 @@ const ProductApiFactory = function (configuration, basePath, axios) {
|
|
|
9906
9911
|
* @throws {RequiredError}
|
|
9907
9912
|
*/
|
|
9908
9913
|
getProductReviews(requestParameters, options) {
|
|
9909
|
-
return localVarFp.getProductReviews(requestParameters.id, requestParameters.rating, options).then((request) => request(axios, basePath));
|
|
9914
|
+
return localVarFp.getProductReviews(requestParameters.id, requestParameters.rating, requestParameters.page, requestParameters.itemsPerPage, options).then((request) => request(axios, basePath));
|
|
9910
9915
|
},
|
|
9911
9916
|
/**
|
|
9912
9917
|
*
|
|
@@ -10004,7 +10009,7 @@ class ProductApi extends base_1.BaseAPI {
|
|
|
10004
10009
|
* @memberof ProductApi
|
|
10005
10010
|
*/
|
|
10006
10011
|
getProductReviews(requestParameters, options) {
|
|
10007
|
-
return (0, exports.ProductApiFp)(this.configuration).getProductReviews(requestParameters.id, requestParameters.rating, options).then((request) => request(this.axios, this.basePath));
|
|
10012
|
+
return (0, exports.ProductApiFp)(this.configuration).getProductReviews(requestParameters.id, requestParameters.rating, requestParameters.page, requestParameters.itemsPerPage, options).then((request) => request(this.axios, this.basePath));
|
|
10008
10013
|
}
|
|
10009
10014
|
/**
|
|
10010
10015
|
*
|
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',
|
|
@@ -9463,10 +9458,12 @@ export const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
9463
9458
|
*
|
|
9464
9459
|
* @param {string} id
|
|
9465
9460
|
* @param {number} [rating]
|
|
9461
|
+
* @param {number} [page]
|
|
9462
|
+
* @param {number} [itemsPerPage]
|
|
9466
9463
|
* @param {*} [options] Override http request option.
|
|
9467
9464
|
* @throws {RequiredError}
|
|
9468
9465
|
*/
|
|
9469
|
-
getProductReviews: async (id, rating, options = {}) => {
|
|
9466
|
+
getProductReviews: async (id, rating, page, itemsPerPage, options = {}) => {
|
|
9470
9467
|
// verify required parameter 'id' is not null or undefined
|
|
9471
9468
|
assertParamExists('getProductReviews', 'id', id);
|
|
9472
9469
|
const localVarPath = `/api/products/{id}/reviews`
|
|
@@ -9483,6 +9480,12 @@ export const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
9483
9480
|
if (rating !== undefined) {
|
|
9484
9481
|
localVarQueryParameter['rating'] = rating;
|
|
9485
9482
|
}
|
|
9483
|
+
if (page !== undefined) {
|
|
9484
|
+
localVarQueryParameter['page'] = page;
|
|
9485
|
+
}
|
|
9486
|
+
if (itemsPerPage !== undefined) {
|
|
9487
|
+
localVarQueryParameter['itemsPerPage'] = itemsPerPage;
|
|
9488
|
+
}
|
|
9486
9489
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9487
9490
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9488
9491
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -9715,11 +9718,13 @@ export const ProductApiFp = function (configuration) {
|
|
|
9715
9718
|
*
|
|
9716
9719
|
* @param {string} id
|
|
9717
9720
|
* @param {number} [rating]
|
|
9721
|
+
* @param {number} [page]
|
|
9722
|
+
* @param {number} [itemsPerPage]
|
|
9718
9723
|
* @param {*} [options] Override http request option.
|
|
9719
9724
|
* @throws {RequiredError}
|
|
9720
9725
|
*/
|
|
9721
|
-
async getProductReviews(id, rating, options) {
|
|
9722
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getProductReviews(id, rating, options);
|
|
9726
|
+
async getProductReviews(id, rating, page, itemsPerPage, options) {
|
|
9727
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getProductReviews(id, rating, page, itemsPerPage, options);
|
|
9723
9728
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
9724
9729
|
const localVarOperationServerBasePath = operationServerMap['ProductApi.getProductReviews']?.[localVarOperationServerIndex]?.url;
|
|
9725
9730
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -9836,7 +9841,7 @@ export const ProductApiFactory = function (configuration, basePath, axios) {
|
|
|
9836
9841
|
* @throws {RequiredError}
|
|
9837
9842
|
*/
|
|
9838
9843
|
getProductReviews(requestParameters, options) {
|
|
9839
|
-
return localVarFp.getProductReviews(requestParameters.id, requestParameters.rating, options).then((request) => request(axios, basePath));
|
|
9844
|
+
return localVarFp.getProductReviews(requestParameters.id, requestParameters.rating, requestParameters.page, requestParameters.itemsPerPage, options).then((request) => request(axios, basePath));
|
|
9840
9845
|
},
|
|
9841
9846
|
/**
|
|
9842
9847
|
*
|
|
@@ -9933,7 +9938,7 @@ export class ProductApi extends BaseAPI {
|
|
|
9933
9938
|
* @memberof ProductApi
|
|
9934
9939
|
*/
|
|
9935
9940
|
getProductReviews(requestParameters, options) {
|
|
9936
|
-
return ProductApiFp(this.configuration).getProductReviews(requestParameters.id, requestParameters.rating, options).then((request) => request(this.axios, this.basePath));
|
|
9941
|
+
return ProductApiFp(this.configuration).getProductReviews(requestParameters.id, requestParameters.rating, requestParameters.page, requestParameters.itemsPerPage, options).then((request) => request(this.axios, this.basePath));
|
|
9937
9942
|
}
|
|
9938
9943
|
/**
|
|
9939
9944
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@infisale-client/api",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.94",
|
|
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": "a67aafa31843a66a66d81c07d9adc69ccdaaa2da"
|
|
41
41
|
}
|