@infisale-client/api 1.2.92 → 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";
@@ -18596,10 +18598,12 @@ export declare const ProductApiAxiosParamCreator: (configuration?: Configuration
18596
18598
  *
18597
18599
  * @param {string} id
18598
18600
  * @param {number} [rating]
18601
+ * @param {number} [page]
18602
+ * @param {number} [itemsPerPage]
18599
18603
  * @param {*} [options] Override http request option.
18600
18604
  * @throws {RequiredError}
18601
18605
  */
18602
- getProductReviews: (id: string, rating?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
18606
+ getProductReviews: (id: string, rating?: number, page?: number, itemsPerPage?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
18603
18607
  /**
18604
18608
  *
18605
18609
  * @param {OrderEnum} [order]
@@ -18690,10 +18694,12 @@ export declare const ProductApiFp: (configuration?: Configuration) => {
18690
18694
  *
18691
18695
  * @param {string} id
18692
18696
  * @param {number} [rating]
18697
+ * @param {number} [page]
18698
+ * @param {number} [itemsPerPage]
18693
18699
  * @param {*} [options] Override http request option.
18694
18700
  * @throws {RequiredError}
18695
18701
  */
18696
- 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>>;
18697
18703
  /**
18698
18704
  *
18699
18705
  * @param {OrderEnum} [order]
@@ -18928,6 +18934,18 @@ export interface ProductApiGetProductReviewsRequest {
18928
18934
  * @memberof ProductApiGetProductReviews
18929
18935
  */
18930
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;
18931
18949
  }
18932
18950
  /**
18933
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',
@@ -9531,10 +9533,12 @@ const ProductApiAxiosParamCreator = function (configuration) {
9531
9533
  *
9532
9534
  * @param {string} id
9533
9535
  * @param {number} [rating]
9536
+ * @param {number} [page]
9537
+ * @param {number} [itemsPerPage]
9534
9538
  * @param {*} [options] Override http request option.
9535
9539
  * @throws {RequiredError}
9536
9540
  */
9537
- getProductReviews: async (id, rating, options = {}) => {
9541
+ getProductReviews: async (id, rating, page, itemsPerPage, options = {}) => {
9538
9542
  // verify required parameter 'id' is not null or undefined
9539
9543
  (0, common_1.assertParamExists)('getProductReviews', 'id', id);
9540
9544
  const localVarPath = `/api/products/{id}/reviews`
@@ -9551,6 +9555,12 @@ const ProductApiAxiosParamCreator = function (configuration) {
9551
9555
  if (rating !== undefined) {
9552
9556
  localVarQueryParameter['rating'] = rating;
9553
9557
  }
9558
+ if (page !== undefined) {
9559
+ localVarQueryParameter['page'] = page;
9560
+ }
9561
+ if (itemsPerPage !== undefined) {
9562
+ localVarQueryParameter['itemsPerPage'] = itemsPerPage;
9563
+ }
9554
9564
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
9555
9565
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9556
9566
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -9784,11 +9794,13 @@ const ProductApiFp = function (configuration) {
9784
9794
  *
9785
9795
  * @param {string} id
9786
9796
  * @param {number} [rating]
9797
+ * @param {number} [page]
9798
+ * @param {number} [itemsPerPage]
9787
9799
  * @param {*} [options] Override http request option.
9788
9800
  * @throws {RequiredError}
9789
9801
  */
9790
- async getProductReviews(id, rating, options) {
9791
- 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);
9792
9804
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
9793
9805
  const localVarOperationServerBasePath = base_1.operationServerMap['ProductApi.getProductReviews']?.[localVarOperationServerIndex]?.url;
9794
9806
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -9906,7 +9918,7 @@ const ProductApiFactory = function (configuration, basePath, axios) {
9906
9918
  * @throws {RequiredError}
9907
9919
  */
9908
9920
  getProductReviews(requestParameters, options) {
9909
- 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));
9910
9922
  },
9911
9923
  /**
9912
9924
  *
@@ -10004,7 +10016,7 @@ class ProductApi extends base_1.BaseAPI {
10004
10016
  * @memberof ProductApi
10005
10017
  */
10006
10018
  getProductReviews(requestParameters, options) {
10007
- 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));
10008
10020
  }
10009
10021
  /**
10010
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',
@@ -9463,10 +9465,12 @@ export const ProductApiAxiosParamCreator = function (configuration) {
9463
9465
  *
9464
9466
  * @param {string} id
9465
9467
  * @param {number} [rating]
9468
+ * @param {number} [page]
9469
+ * @param {number} [itemsPerPage]
9466
9470
  * @param {*} [options] Override http request option.
9467
9471
  * @throws {RequiredError}
9468
9472
  */
9469
- getProductReviews: async (id, rating, options = {}) => {
9473
+ getProductReviews: async (id, rating, page, itemsPerPage, options = {}) => {
9470
9474
  // verify required parameter 'id' is not null or undefined
9471
9475
  assertParamExists('getProductReviews', 'id', id);
9472
9476
  const localVarPath = `/api/products/{id}/reviews`
@@ -9483,6 +9487,12 @@ export const ProductApiAxiosParamCreator = function (configuration) {
9483
9487
  if (rating !== undefined) {
9484
9488
  localVarQueryParameter['rating'] = rating;
9485
9489
  }
9490
+ if (page !== undefined) {
9491
+ localVarQueryParameter['page'] = page;
9492
+ }
9493
+ if (itemsPerPage !== undefined) {
9494
+ localVarQueryParameter['itemsPerPage'] = itemsPerPage;
9495
+ }
9486
9496
  setSearchParams(localVarUrlObj, localVarQueryParameter);
9487
9497
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9488
9498
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -9715,11 +9725,13 @@ export const ProductApiFp = function (configuration) {
9715
9725
  *
9716
9726
  * @param {string} id
9717
9727
  * @param {number} [rating]
9728
+ * @param {number} [page]
9729
+ * @param {number} [itemsPerPage]
9718
9730
  * @param {*} [options] Override http request option.
9719
9731
  * @throws {RequiredError}
9720
9732
  */
9721
- async getProductReviews(id, rating, options) {
9722
- 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);
9723
9735
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
9724
9736
  const localVarOperationServerBasePath = operationServerMap['ProductApi.getProductReviews']?.[localVarOperationServerIndex]?.url;
9725
9737
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -9836,7 +9848,7 @@ export const ProductApiFactory = function (configuration, basePath, axios) {
9836
9848
  * @throws {RequiredError}
9837
9849
  */
9838
9850
  getProductReviews(requestParameters, options) {
9839
- 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));
9840
9852
  },
9841
9853
  /**
9842
9854
  *
@@ -9933,7 +9945,7 @@ export class ProductApi extends BaseAPI {
9933
9945
  * @memberof ProductApi
9934
9946
  */
9935
9947
  getProductReviews(requestParameters, options) {
9936
- 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));
9937
9949
  }
9938
9950
  /**
9939
9951
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infisale-client/api",
3
- "version": "1.2.92",
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": "ca5288a822e4c2e0c98e210f479974406c7d4791"
40
+ "gitHead": "0bc42cb1620b473fc8ab9355886fd87aa7f0da64"
41
41
  }