@infisale-client/api-client 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";
@@ -13772,10 +13774,12 @@ export declare const ProductApiAxiosParamCreator: (configuration?: Configuration
13772
13774
  *
13773
13775
  * @param {string} id
13774
13776
  * @param {number} [rating]
13777
+ * @param {number} [page]
13778
+ * @param {number} [itemsPerPage]
13775
13779
  * @param {*} [options] Override http request option.
13776
13780
  * @throws {RequiredError}
13777
13781
  */
13778
- getProductReviews: (id: string, rating?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
13782
+ getProductReviews: (id: string, rating?: number, page?: number, itemsPerPage?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
13779
13783
  /**
13780
13784
  *
13781
13785
  * @param {OrderEnum} [order]
@@ -13819,10 +13823,12 @@ export declare const ProductApiFp: (configuration?: Configuration) => {
13819
13823
  *
13820
13824
  * @param {string} id
13821
13825
  * @param {number} [rating]
13826
+ * @param {number} [page]
13827
+ * @param {number} [itemsPerPage]
13822
13828
  * @param {*} [options] Override http request option.
13823
13829
  * @throws {RequiredError}
13824
13830
  */
13825
- getProductReviews(id: string, rating?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IProductReviewsResponse>>;
13831
+ getProductReviews(id: string, rating?: number, page?: number, itemsPerPage?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IProductReviewsResponse>>;
13826
13832
  /**
13827
13833
  *
13828
13834
  * @param {OrderEnum} [order]
@@ -13918,6 +13924,18 @@ export interface ProductApiGetProductReviewsRequest {
13918
13924
  * @memberof ProductApiGetProductReviews
13919
13925
  */
13920
13926
  readonly rating?: number;
13927
+ /**
13928
+ *
13929
+ * @type {number}
13930
+ * @memberof ProductApiGetProductReviews
13931
+ */
13932
+ readonly page?: number;
13933
+ /**
13934
+ *
13935
+ * @type {number}
13936
+ * @memberof ProductApiGetProductReviews
13937
+ */
13938
+ readonly itemsPerPage?: number;
13921
13939
  }
13922
13940
  /**
13923
13941
  * Request parameters for getProducts operation in ProductApi.
package/dist/api/api.js CHANGED
@@ -94,7 +94,9 @@ exports.ComponentContentTypeEnum = {
94
94
  ACCORDION_ITEM: 'accordion-item',
95
95
  PRODUCT_DESCRIPTION: 'product-description',
96
96
  PRODUCT_REVIEWS: 'product-reviews',
97
- PRODUCT_ATTRIBUTES: 'product-attributes'
97
+ PRODUCT_ATTRIBUTES: 'product-attributes',
98
+ IMAGE: 'image',
99
+ CONTENT: 'content'
98
100
  };
99
101
  /**
100
102
  *
@@ -134,7 +136,7 @@ exports.ComponentTypeEnum = {
134
136
  BANNER: 'banner',
135
137
  GRID: 'grid',
136
138
  PRODUCT_LIST: 'product-list',
137
- CONTENT: 'content',
139
+ PAGE_DETAIL: 'page-detail',
138
140
  PRODUCT_DETAIL: 'product-detail',
139
141
  PRODUCT_MORE_DETAIL: 'product-more-detail',
140
142
  SINGLE_PRODUCT: 'single-product',
@@ -3436,10 +3438,12 @@ const ProductApiAxiosParamCreator = function (configuration) {
3436
3438
  *
3437
3439
  * @param {string} id
3438
3440
  * @param {number} [rating]
3441
+ * @param {number} [page]
3442
+ * @param {number} [itemsPerPage]
3439
3443
  * @param {*} [options] Override http request option.
3440
3444
  * @throws {RequiredError}
3441
3445
  */
3442
- getProductReviews: async (id, rating, options = {}) => {
3446
+ getProductReviews: async (id, rating, page, itemsPerPage, options = {}) => {
3443
3447
  // verify required parameter 'id' is not null or undefined
3444
3448
  (0, common_1.assertParamExists)('getProductReviews', 'id', id);
3445
3449
  const localVarPath = `/api/products/{id}/reviews`
@@ -3456,6 +3460,12 @@ const ProductApiAxiosParamCreator = function (configuration) {
3456
3460
  if (rating !== undefined) {
3457
3461
  localVarQueryParameter['rating'] = rating;
3458
3462
  }
3463
+ if (page !== undefined) {
3464
+ localVarQueryParameter['page'] = page;
3465
+ }
3466
+ if (itemsPerPage !== undefined) {
3467
+ localVarQueryParameter['itemsPerPage'] = itemsPerPage;
3468
+ }
3459
3469
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3460
3470
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3461
3471
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -3592,11 +3602,13 @@ const ProductApiFp = function (configuration) {
3592
3602
  *
3593
3603
  * @param {string} id
3594
3604
  * @param {number} [rating]
3605
+ * @param {number} [page]
3606
+ * @param {number} [itemsPerPage]
3595
3607
  * @param {*} [options] Override http request option.
3596
3608
  * @throws {RequiredError}
3597
3609
  */
3598
- async getProductReviews(id, rating, options) {
3599
- const localVarAxiosArgs = await localVarAxiosParamCreator.getProductReviews(id, rating, options);
3610
+ async getProductReviews(id, rating, page, itemsPerPage, options) {
3611
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getProductReviews(id, rating, page, itemsPerPage, options);
3600
3612
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3601
3613
  const localVarOperationServerBasePath = base_1.operationServerMap['ProductApi.getProductReviews']?.[localVarOperationServerIndex]?.url;
3602
3614
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -3656,7 +3668,7 @@ const ProductApiFactory = function (configuration, basePath, axios) {
3656
3668
  * @throws {RequiredError}
3657
3669
  */
3658
3670
  getProductReviews(requestParameters, options) {
3659
- return localVarFp.getProductReviews(requestParameters.id, requestParameters.rating, options).then((request) => request(axios, basePath));
3671
+ return localVarFp.getProductReviews(requestParameters.id, requestParameters.rating, requestParameters.page, requestParameters.itemsPerPage, options).then((request) => request(axios, basePath));
3660
3672
  },
3661
3673
  /**
3662
3674
  *
@@ -3695,7 +3707,7 @@ class ProductApi extends base_1.BaseAPI {
3695
3707
  * @memberof ProductApi
3696
3708
  */
3697
3709
  getProductReviews(requestParameters, options) {
3698
- return (0, exports.ProductApiFp)(this.configuration).getProductReviews(requestParameters.id, requestParameters.rating, options).then((request) => request(this.axios, this.basePath));
3710
+ return (0, exports.ProductApiFp)(this.configuration).getProductReviews(requestParameters.id, requestParameters.rating, requestParameters.page, requestParameters.itemsPerPage, options).then((request) => request(this.axios, this.basePath));
3699
3711
  }
3700
3712
  /**
3701
3713
  *
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',
@@ -3393,10 +3395,12 @@ export const ProductApiAxiosParamCreator = function (configuration) {
3393
3395
  *
3394
3396
  * @param {string} id
3395
3397
  * @param {number} [rating]
3398
+ * @param {number} [page]
3399
+ * @param {number} [itemsPerPage]
3396
3400
  * @param {*} [options] Override http request option.
3397
3401
  * @throws {RequiredError}
3398
3402
  */
3399
- getProductReviews: async (id, rating, options = {}) => {
3403
+ getProductReviews: async (id, rating, page, itemsPerPage, options = {}) => {
3400
3404
  // verify required parameter 'id' is not null or undefined
3401
3405
  assertParamExists('getProductReviews', 'id', id);
3402
3406
  const localVarPath = `/api/products/{id}/reviews`
@@ -3413,6 +3417,12 @@ export const ProductApiAxiosParamCreator = function (configuration) {
3413
3417
  if (rating !== undefined) {
3414
3418
  localVarQueryParameter['rating'] = rating;
3415
3419
  }
3420
+ if (page !== undefined) {
3421
+ localVarQueryParameter['page'] = page;
3422
+ }
3423
+ if (itemsPerPage !== undefined) {
3424
+ localVarQueryParameter['itemsPerPage'] = itemsPerPage;
3425
+ }
3416
3426
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3417
3427
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3418
3428
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -3548,11 +3558,13 @@ export const ProductApiFp = function (configuration) {
3548
3558
  *
3549
3559
  * @param {string} id
3550
3560
  * @param {number} [rating]
3561
+ * @param {number} [page]
3562
+ * @param {number} [itemsPerPage]
3551
3563
  * @param {*} [options] Override http request option.
3552
3564
  * @throws {RequiredError}
3553
3565
  */
3554
- async getProductReviews(id, rating, options) {
3555
- const localVarAxiosArgs = await localVarAxiosParamCreator.getProductReviews(id, rating, options);
3566
+ async getProductReviews(id, rating, page, itemsPerPage, options) {
3567
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getProductReviews(id, rating, page, itemsPerPage, options);
3556
3568
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3557
3569
  const localVarOperationServerBasePath = operationServerMap['ProductApi.getProductReviews']?.[localVarOperationServerIndex]?.url;
3558
3570
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -3611,7 +3623,7 @@ export const ProductApiFactory = function (configuration, basePath, axios) {
3611
3623
  * @throws {RequiredError}
3612
3624
  */
3613
3625
  getProductReviews(requestParameters, options) {
3614
- return localVarFp.getProductReviews(requestParameters.id, requestParameters.rating, options).then((request) => request(axios, basePath));
3626
+ return localVarFp.getProductReviews(requestParameters.id, requestParameters.rating, requestParameters.page, requestParameters.itemsPerPage, options).then((request) => request(axios, basePath));
3615
3627
  },
3616
3628
  /**
3617
3629
  *
@@ -3649,7 +3661,7 @@ export class ProductApi extends BaseAPI {
3649
3661
  * @memberof ProductApi
3650
3662
  */
3651
3663
  getProductReviews(requestParameters, options) {
3652
- return ProductApiFp(this.configuration).getProductReviews(requestParameters.id, requestParameters.rating, options).then((request) => request(this.axios, this.basePath));
3664
+ return ProductApiFp(this.configuration).getProductReviews(requestParameters.id, requestParameters.rating, requestParameters.page, requestParameters.itemsPerPage, options).then((request) => request(this.axios, this.basePath));
3653
3665
  }
3654
3666
  /**
3655
3667
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infisale-client/api-client",
3
- "version": "1.2.92",
3
+ "version": "1.2.93",
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": "ca5288a822e4c2e0c98e210f479974406c7d4791"
40
+ "gitHead": "0bc42cb1620b473fc8ab9355886fd87aa7f0da64"
41
41
  }