@infisale-client/api 1.2.91 → 1.2.93

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 CHANGED
@@ -87,6 +87,8 @@ export declare const ComponentContentTypeEnum: {
87
87
  readonly PRODUCT_DESCRIPTION: "product-description";
88
88
  readonly PRODUCT_REVIEWS: "product-reviews";
89
89
  readonly PRODUCT_ATTRIBUTES: "product-attributes";
90
+ readonly IMAGE: "image";
91
+ readonly CONTENT: "content";
90
92
  };
91
93
  export type ComponentContentTypeEnum = typeof ComponentContentTypeEnum[keyof typeof ComponentContentTypeEnum];
92
94
  /**
@@ -130,7 +132,7 @@ export declare const ComponentTypeEnum: {
130
132
  readonly BANNER: "banner";
131
133
  readonly GRID: "grid";
132
134
  readonly PRODUCT_LIST: "product-list";
133
- readonly CONTENT: "content";
135
+ readonly PAGE_DETAIL: "page-detail";
134
136
  readonly PRODUCT_DETAIL: "product-detail";
135
137
  readonly PRODUCT_MORE_DETAIL: "product-more-detail";
136
138
  readonly SINGLE_PRODUCT: "single-product";
@@ -151,6 +153,8 @@ export declare const ComponentTypeEnum: {
151
153
  readonly CHECKOUT_DETAIL: "checkout-detail";
152
154
  readonly NOT_FOUND_DETAIL: "not-found-detail";
153
155
  readonly SEARCH_DETAIL: "search-detail";
156
+ readonly BLOG_LIST_DETAIL: "blog-list-detail";
157
+ readonly COLLECTION_LIST_DETAIL: "collection-list-detail";
154
158
  };
155
159
  export type ComponentTypeEnum = typeof ComponentTypeEnum[keyof typeof ComponentTypeEnum];
156
160
  /**
@@ -8989,6 +8993,7 @@ export declare const PageTypeEnum: {
8989
8993
  readonly CHECKOUT: "checkout";
8990
8994
  readonly SEARCH: "search";
8991
8995
  readonly NOT_FOUND: "not-found";
8996
+ readonly BLOG_LIST: "blog-list";
8992
8997
  };
8993
8998
  export type PageTypeEnum = typeof PageTypeEnum[keyof typeof PageTypeEnum];
8994
8999
  /**
@@ -11680,6 +11685,7 @@ export declare const TemplateTypeEnum: {
11680
11685
  readonly NOT_FOUND: "not-found";
11681
11686
  readonly BLOG: "blog";
11682
11687
  readonly SEARCH: "search";
11688
+ readonly BLOG_LIST: "blog-list";
11683
11689
  };
11684
11690
  export type TemplateTypeEnum = typeof TemplateTypeEnum[keyof typeof TemplateTypeEnum];
11685
11691
  /**
@@ -18592,10 +18598,12 @@ export declare const ProductApiAxiosParamCreator: (configuration?: Configuration
18592
18598
  *
18593
18599
  * @param {string} id
18594
18600
  * @param {number} [rating]
18601
+ * @param {number} [page]
18602
+ * @param {number} [itemsPerPage]
18595
18603
  * @param {*} [options] Override http request option.
18596
18604
  * @throws {RequiredError}
18597
18605
  */
18598
- getProductReviews: (id: string, rating?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
18606
+ getProductReviews: (id: string, rating?: number, page?: number, itemsPerPage?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
18599
18607
  /**
18600
18608
  *
18601
18609
  * @param {OrderEnum} [order]
@@ -18686,10 +18694,12 @@ export declare const ProductApiFp: (configuration?: Configuration) => {
18686
18694
  *
18687
18695
  * @param {string} id
18688
18696
  * @param {number} [rating]
18697
+ * @param {number} [page]
18698
+ * @param {number} [itemsPerPage]
18689
18699
  * @param {*} [options] Override http request option.
18690
18700
  * @throws {RequiredError}
18691
18701
  */
18692
- getProductReviews(id: string, rating?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IProductReviewsResponse>>;
18702
+ getProductReviews(id: string, rating?: number, page?: number, itemsPerPage?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IProductReviewsResponse>>;
18693
18703
  /**
18694
18704
  *
18695
18705
  * @param {OrderEnum} [order]
@@ -18924,6 +18934,18 @@ export interface ProductApiGetProductReviewsRequest {
18924
18934
  * @memberof ProductApiGetProductReviews
18925
18935
  */
18926
18936
  readonly rating?: number;
18937
+ /**
18938
+ *
18939
+ * @type {number}
18940
+ * @memberof ProductApiGetProductReviews
18941
+ */
18942
+ readonly page?: number;
18943
+ /**
18944
+ *
18945
+ * @type {number}
18946
+ * @memberof ProductApiGetProductReviews
18947
+ */
18948
+ readonly itemsPerPage?: number;
18927
18949
  }
18928
18950
  /**
18929
18951
  * Request parameters for getProducts operation in ProductApi.
package/dist/api/api.js CHANGED
@@ -95,7 +95,9 @@ exports.ComponentContentTypeEnum = {
95
95
  ACCORDION_ITEM: 'accordion-item',
96
96
  PRODUCT_DESCRIPTION: 'product-description',
97
97
  PRODUCT_REVIEWS: 'product-reviews',
98
- PRODUCT_ATTRIBUTES: 'product-attributes'
98
+ PRODUCT_ATTRIBUTES: 'product-attributes',
99
+ IMAGE: 'image',
100
+ CONTENT: 'content'
99
101
  };
100
102
  /**
101
103
  *
@@ -135,7 +137,7 @@ exports.ComponentTypeEnum = {
135
137
  BANNER: 'banner',
136
138
  GRID: 'grid',
137
139
  PRODUCT_LIST: 'product-list',
138
- CONTENT: 'content',
140
+ PAGE_DETAIL: 'page-detail',
139
141
  PRODUCT_DETAIL: 'product-detail',
140
142
  PRODUCT_MORE_DETAIL: 'product-more-detail',
141
143
  SINGLE_PRODUCT: 'single-product',
@@ -155,7 +157,9 @@ exports.ComponentTypeEnum = {
155
157
  CART_DETAIL: 'cart-detail',
156
158
  CHECKOUT_DETAIL: 'checkout-detail',
157
159
  NOT_FOUND_DETAIL: 'not-found-detail',
158
- SEARCH_DETAIL: 'search-detail'
160
+ SEARCH_DETAIL: 'search-detail',
161
+ BLOG_LIST_DETAIL: 'blog-list-detail',
162
+ COLLECTION_LIST_DETAIL: 'collection-list-detail'
159
163
  };
160
164
  /**
161
165
  *
@@ -711,7 +715,8 @@ exports.PageTypeEnum = {
711
715
  CART: 'cart',
712
716
  CHECKOUT: 'checkout',
713
717
  SEARCH: 'search',
714
- NOT_FOUND: 'not-found'
718
+ NOT_FOUND: 'not-found',
719
+ BLOG_LIST: 'blog-list'
715
720
  };
716
721
  /**
717
722
  *
@@ -838,7 +843,8 @@ exports.TemplateTypeEnum = {
838
843
  CHECKOUT: 'checkout',
839
844
  NOT_FOUND: 'not-found',
840
845
  BLOG: 'blog',
841
- SEARCH: 'search'
846
+ SEARCH: 'search',
847
+ BLOG_LIST: 'blog-list'
842
848
  };
843
849
  /**
844
850
  *
@@ -9527,10 +9533,12 @@ const ProductApiAxiosParamCreator = function (configuration) {
9527
9533
  *
9528
9534
  * @param {string} id
9529
9535
  * @param {number} [rating]
9536
+ * @param {number} [page]
9537
+ * @param {number} [itemsPerPage]
9530
9538
  * @param {*} [options] Override http request option.
9531
9539
  * @throws {RequiredError}
9532
9540
  */
9533
- getProductReviews: async (id, rating, options = {}) => {
9541
+ getProductReviews: async (id, rating, page, itemsPerPage, options = {}) => {
9534
9542
  // verify required parameter 'id' is not null or undefined
9535
9543
  (0, common_1.assertParamExists)('getProductReviews', 'id', id);
9536
9544
  const localVarPath = `/api/products/{id}/reviews`
@@ -9547,6 +9555,12 @@ const ProductApiAxiosParamCreator = function (configuration) {
9547
9555
  if (rating !== undefined) {
9548
9556
  localVarQueryParameter['rating'] = rating;
9549
9557
  }
9558
+ if (page !== undefined) {
9559
+ localVarQueryParameter['page'] = page;
9560
+ }
9561
+ if (itemsPerPage !== undefined) {
9562
+ localVarQueryParameter['itemsPerPage'] = itemsPerPage;
9563
+ }
9550
9564
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
9551
9565
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9552
9566
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -9780,11 +9794,13 @@ const ProductApiFp = function (configuration) {
9780
9794
  *
9781
9795
  * @param {string} id
9782
9796
  * @param {number} [rating]
9797
+ * @param {number} [page]
9798
+ * @param {number} [itemsPerPage]
9783
9799
  * @param {*} [options] Override http request option.
9784
9800
  * @throws {RequiredError}
9785
9801
  */
9786
- async getProductReviews(id, rating, options) {
9787
- const localVarAxiosArgs = await localVarAxiosParamCreator.getProductReviews(id, rating, options);
9802
+ async getProductReviews(id, rating, page, itemsPerPage, options) {
9803
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getProductReviews(id, rating, page, itemsPerPage, options);
9788
9804
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
9789
9805
  const localVarOperationServerBasePath = base_1.operationServerMap['ProductApi.getProductReviews']?.[localVarOperationServerIndex]?.url;
9790
9806
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -9902,7 +9918,7 @@ const ProductApiFactory = function (configuration, basePath, axios) {
9902
9918
  * @throws {RequiredError}
9903
9919
  */
9904
9920
  getProductReviews(requestParameters, options) {
9905
- return localVarFp.getProductReviews(requestParameters.id, requestParameters.rating, options).then((request) => request(axios, basePath));
9921
+ return localVarFp.getProductReviews(requestParameters.id, requestParameters.rating, requestParameters.page, requestParameters.itemsPerPage, options).then((request) => request(axios, basePath));
9906
9922
  },
9907
9923
  /**
9908
9924
  *
@@ -10000,7 +10016,7 @@ class ProductApi extends base_1.BaseAPI {
10000
10016
  * @memberof ProductApi
10001
10017
  */
10002
10018
  getProductReviews(requestParameters, options) {
10003
- return (0, exports.ProductApiFp)(this.configuration).getProductReviews(requestParameters.id, requestParameters.rating, options).then((request) => request(this.axios, this.basePath));
10019
+ return (0, exports.ProductApiFp)(this.configuration).getProductReviews(requestParameters.id, requestParameters.rating, requestParameters.page, requestParameters.itemsPerPage, options).then((request) => request(this.axios, this.basePath));
10004
10020
  }
10005
10021
  /**
10006
10022
  *
package/dist/api/api.mjs CHANGED
@@ -83,7 +83,9 @@ export const ComponentContentTypeEnum = {
83
83
  ACCORDION_ITEM: 'accordion-item',
84
84
  PRODUCT_DESCRIPTION: 'product-description',
85
85
  PRODUCT_REVIEWS: 'product-reviews',
86
- PRODUCT_ATTRIBUTES: 'product-attributes'
86
+ PRODUCT_ATTRIBUTES: 'product-attributes',
87
+ IMAGE: 'image',
88
+ CONTENT: 'content'
87
89
  };
88
90
  /**
89
91
  *
@@ -123,7 +125,7 @@ export const ComponentTypeEnum = {
123
125
  BANNER: 'banner',
124
126
  GRID: 'grid',
125
127
  PRODUCT_LIST: 'product-list',
126
- CONTENT: 'content',
128
+ PAGE_DETAIL: 'page-detail',
127
129
  PRODUCT_DETAIL: 'product-detail',
128
130
  PRODUCT_MORE_DETAIL: 'product-more-detail',
129
131
  SINGLE_PRODUCT: 'single-product',
@@ -143,7 +145,9 @@ export const ComponentTypeEnum = {
143
145
  CART_DETAIL: 'cart-detail',
144
146
  CHECKOUT_DETAIL: 'checkout-detail',
145
147
  NOT_FOUND_DETAIL: 'not-found-detail',
146
- SEARCH_DETAIL: 'search-detail'
148
+ SEARCH_DETAIL: 'search-detail',
149
+ BLOG_LIST_DETAIL: 'blog-list-detail',
150
+ COLLECTION_LIST_DETAIL: 'collection-list-detail'
147
151
  };
148
152
  /**
149
153
  *
@@ -699,7 +703,8 @@ export const PageTypeEnum = {
699
703
  CART: 'cart',
700
704
  CHECKOUT: 'checkout',
701
705
  SEARCH: 'search',
702
- NOT_FOUND: 'not-found'
706
+ NOT_FOUND: 'not-found',
707
+ BLOG_LIST: 'blog-list'
703
708
  };
704
709
  /**
705
710
  *
@@ -826,7 +831,8 @@ export const TemplateTypeEnum = {
826
831
  CHECKOUT: 'checkout',
827
832
  NOT_FOUND: 'not-found',
828
833
  BLOG: 'blog',
829
- SEARCH: 'search'
834
+ SEARCH: 'search',
835
+ BLOG_LIST: 'blog-list'
830
836
  };
831
837
  /**
832
838
  *
@@ -9459,10 +9465,12 @@ export const ProductApiAxiosParamCreator = function (configuration) {
9459
9465
  *
9460
9466
  * @param {string} id
9461
9467
  * @param {number} [rating]
9468
+ * @param {number} [page]
9469
+ * @param {number} [itemsPerPage]
9462
9470
  * @param {*} [options] Override http request option.
9463
9471
  * @throws {RequiredError}
9464
9472
  */
9465
- getProductReviews: async (id, rating, options = {}) => {
9473
+ getProductReviews: async (id, rating, page, itemsPerPage, options = {}) => {
9466
9474
  // verify required parameter 'id' is not null or undefined
9467
9475
  assertParamExists('getProductReviews', 'id', id);
9468
9476
  const localVarPath = `/api/products/{id}/reviews`
@@ -9479,6 +9487,12 @@ export const ProductApiAxiosParamCreator = function (configuration) {
9479
9487
  if (rating !== undefined) {
9480
9488
  localVarQueryParameter['rating'] = rating;
9481
9489
  }
9490
+ if (page !== undefined) {
9491
+ localVarQueryParameter['page'] = page;
9492
+ }
9493
+ if (itemsPerPage !== undefined) {
9494
+ localVarQueryParameter['itemsPerPage'] = itemsPerPage;
9495
+ }
9482
9496
  setSearchParams(localVarUrlObj, localVarQueryParameter);
9483
9497
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9484
9498
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -9711,11 +9725,13 @@ export const ProductApiFp = function (configuration) {
9711
9725
  *
9712
9726
  * @param {string} id
9713
9727
  * @param {number} [rating]
9728
+ * @param {number} [page]
9729
+ * @param {number} [itemsPerPage]
9714
9730
  * @param {*} [options] Override http request option.
9715
9731
  * @throws {RequiredError}
9716
9732
  */
9717
- async getProductReviews(id, rating, options) {
9718
- const localVarAxiosArgs = await localVarAxiosParamCreator.getProductReviews(id, rating, options);
9733
+ async getProductReviews(id, rating, page, itemsPerPage, options) {
9734
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getProductReviews(id, rating, page, itemsPerPage, options);
9719
9735
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
9720
9736
  const localVarOperationServerBasePath = operationServerMap['ProductApi.getProductReviews']?.[localVarOperationServerIndex]?.url;
9721
9737
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -9832,7 +9848,7 @@ export const ProductApiFactory = function (configuration, basePath, axios) {
9832
9848
  * @throws {RequiredError}
9833
9849
  */
9834
9850
  getProductReviews(requestParameters, options) {
9835
- return localVarFp.getProductReviews(requestParameters.id, requestParameters.rating, options).then((request) => request(axios, basePath));
9851
+ return localVarFp.getProductReviews(requestParameters.id, requestParameters.rating, requestParameters.page, requestParameters.itemsPerPage, options).then((request) => request(axios, basePath));
9836
9852
  },
9837
9853
  /**
9838
9854
  *
@@ -9929,7 +9945,7 @@ export class ProductApi extends BaseAPI {
9929
9945
  * @memberof ProductApi
9930
9946
  */
9931
9947
  getProductReviews(requestParameters, options) {
9932
- return ProductApiFp(this.configuration).getProductReviews(requestParameters.id, requestParameters.rating, options).then((request) => request(this.axios, this.basePath));
9948
+ return ProductApiFp(this.configuration).getProductReviews(requestParameters.id, requestParameters.rating, requestParameters.page, requestParameters.itemsPerPage, options).then((request) => request(this.axios, this.basePath));
9933
9949
  }
9934
9950
  /**
9935
9951
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infisale-client/api",
3
- "version": "1.2.91",
3
+ "version": "1.2.93",
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": "81bcdc34c428fb53d0d5c4b89c298e09b68a50a4"
40
+ "gitHead": "0bc42cb1620b473fc8ab9355886fd87aa7f0da64"
41
41
  }