@infisale-client/api-client 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
  /**
@@ -11661,6 +11666,7 @@ export declare const TemplateTypeEnum: {
11661
11666
  readonly NOT_FOUND: "not-found";
11662
11667
  readonly BLOG: "blog";
11663
11668
  readonly SEARCH: "search";
11669
+ readonly BLOG_LIST: "blog-list";
11664
11670
  };
11665
11671
  export type TemplateTypeEnum = typeof TemplateTypeEnum[keyof typeof TemplateTypeEnum];
11666
11672
  /**
@@ -13768,10 +13774,12 @@ export declare const ProductApiAxiosParamCreator: (configuration?: Configuration
13768
13774
  *
13769
13775
  * @param {string} id
13770
13776
  * @param {number} [rating]
13777
+ * @param {number} [page]
13778
+ * @param {number} [itemsPerPage]
13771
13779
  * @param {*} [options] Override http request option.
13772
13780
  * @throws {RequiredError}
13773
13781
  */
13774
- getProductReviews: (id: string, rating?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
13782
+ getProductReviews: (id: string, rating?: number, page?: number, itemsPerPage?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
13775
13783
  /**
13776
13784
  *
13777
13785
  * @param {OrderEnum} [order]
@@ -13815,10 +13823,12 @@ export declare const ProductApiFp: (configuration?: Configuration) => {
13815
13823
  *
13816
13824
  * @param {string} id
13817
13825
  * @param {number} [rating]
13826
+ * @param {number} [page]
13827
+ * @param {number} [itemsPerPage]
13818
13828
  * @param {*} [options] Override http request option.
13819
13829
  * @throws {RequiredError}
13820
13830
  */
13821
- 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>>;
13822
13832
  /**
13823
13833
  *
13824
13834
  * @param {OrderEnum} [order]
@@ -13914,6 +13924,18 @@ export interface ProductApiGetProductReviewsRequest {
13914
13924
  * @memberof ProductApiGetProductReviews
13915
13925
  */
13916
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;
13917
13939
  }
13918
13940
  /**
13919
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',
@@ -154,7 +156,9 @@ exports.ComponentTypeEnum = {
154
156
  CART_DETAIL: 'cart-detail',
155
157
  CHECKOUT_DETAIL: 'checkout-detail',
156
158
  NOT_FOUND_DETAIL: 'not-found-detail',
157
- SEARCH_DETAIL: 'search-detail'
159
+ SEARCH_DETAIL: 'search-detail',
160
+ BLOG_LIST_DETAIL: 'blog-list-detail',
161
+ COLLECTION_LIST_DETAIL: 'collection-list-detail'
158
162
  };
159
163
  /**
160
164
  *
@@ -710,7 +714,8 @@ exports.PageTypeEnum = {
710
714
  CART: 'cart',
711
715
  CHECKOUT: 'checkout',
712
716
  SEARCH: 'search',
713
- NOT_FOUND: 'not-found'
717
+ NOT_FOUND: 'not-found',
718
+ BLOG_LIST: 'blog-list'
714
719
  };
715
720
  /**
716
721
  *
@@ -837,7 +842,8 @@ exports.TemplateTypeEnum = {
837
842
  CHECKOUT: 'checkout',
838
843
  NOT_FOUND: 'not-found',
839
844
  BLOG: 'blog',
840
- SEARCH: 'search'
845
+ SEARCH: 'search',
846
+ BLOG_LIST: 'blog-list'
841
847
  };
842
848
  /**
843
849
  *
@@ -3432,10 +3438,12 @@ const ProductApiAxiosParamCreator = function (configuration) {
3432
3438
  *
3433
3439
  * @param {string} id
3434
3440
  * @param {number} [rating]
3441
+ * @param {number} [page]
3442
+ * @param {number} [itemsPerPage]
3435
3443
  * @param {*} [options] Override http request option.
3436
3444
  * @throws {RequiredError}
3437
3445
  */
3438
- getProductReviews: async (id, rating, options = {}) => {
3446
+ getProductReviews: async (id, rating, page, itemsPerPage, options = {}) => {
3439
3447
  // verify required parameter 'id' is not null or undefined
3440
3448
  (0, common_1.assertParamExists)('getProductReviews', 'id', id);
3441
3449
  const localVarPath = `/api/products/{id}/reviews`
@@ -3452,6 +3460,12 @@ const ProductApiAxiosParamCreator = function (configuration) {
3452
3460
  if (rating !== undefined) {
3453
3461
  localVarQueryParameter['rating'] = rating;
3454
3462
  }
3463
+ if (page !== undefined) {
3464
+ localVarQueryParameter['page'] = page;
3465
+ }
3466
+ if (itemsPerPage !== undefined) {
3467
+ localVarQueryParameter['itemsPerPage'] = itemsPerPage;
3468
+ }
3455
3469
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3456
3470
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3457
3471
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -3588,11 +3602,13 @@ const ProductApiFp = function (configuration) {
3588
3602
  *
3589
3603
  * @param {string} id
3590
3604
  * @param {number} [rating]
3605
+ * @param {number} [page]
3606
+ * @param {number} [itemsPerPage]
3591
3607
  * @param {*} [options] Override http request option.
3592
3608
  * @throws {RequiredError}
3593
3609
  */
3594
- async getProductReviews(id, rating, options) {
3595
- 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);
3596
3612
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3597
3613
  const localVarOperationServerBasePath = base_1.operationServerMap['ProductApi.getProductReviews']?.[localVarOperationServerIndex]?.url;
3598
3614
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -3652,7 +3668,7 @@ const ProductApiFactory = function (configuration, basePath, axios) {
3652
3668
  * @throws {RequiredError}
3653
3669
  */
3654
3670
  getProductReviews(requestParameters, options) {
3655
- 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));
3656
3672
  },
3657
3673
  /**
3658
3674
  *
@@ -3691,7 +3707,7 @@ class ProductApi extends base_1.BaseAPI {
3691
3707
  * @memberof ProductApi
3692
3708
  */
3693
3709
  getProductReviews(requestParameters, options) {
3694
- 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));
3695
3711
  }
3696
3712
  /**
3697
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',
@@ -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
  *
@@ -3389,10 +3395,12 @@ export const ProductApiAxiosParamCreator = function (configuration) {
3389
3395
  *
3390
3396
  * @param {string} id
3391
3397
  * @param {number} [rating]
3398
+ * @param {number} [page]
3399
+ * @param {number} [itemsPerPage]
3392
3400
  * @param {*} [options] Override http request option.
3393
3401
  * @throws {RequiredError}
3394
3402
  */
3395
- getProductReviews: async (id, rating, options = {}) => {
3403
+ getProductReviews: async (id, rating, page, itemsPerPage, options = {}) => {
3396
3404
  // verify required parameter 'id' is not null or undefined
3397
3405
  assertParamExists('getProductReviews', 'id', id);
3398
3406
  const localVarPath = `/api/products/{id}/reviews`
@@ -3409,6 +3417,12 @@ export const ProductApiAxiosParamCreator = function (configuration) {
3409
3417
  if (rating !== undefined) {
3410
3418
  localVarQueryParameter['rating'] = rating;
3411
3419
  }
3420
+ if (page !== undefined) {
3421
+ localVarQueryParameter['page'] = page;
3422
+ }
3423
+ if (itemsPerPage !== undefined) {
3424
+ localVarQueryParameter['itemsPerPage'] = itemsPerPage;
3425
+ }
3412
3426
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3413
3427
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3414
3428
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -3544,11 +3558,13 @@ export const ProductApiFp = function (configuration) {
3544
3558
  *
3545
3559
  * @param {string} id
3546
3560
  * @param {number} [rating]
3561
+ * @param {number} [page]
3562
+ * @param {number} [itemsPerPage]
3547
3563
  * @param {*} [options] Override http request option.
3548
3564
  * @throws {RequiredError}
3549
3565
  */
3550
- async getProductReviews(id, rating, options) {
3551
- 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);
3552
3568
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3553
3569
  const localVarOperationServerBasePath = operationServerMap['ProductApi.getProductReviews']?.[localVarOperationServerIndex]?.url;
3554
3570
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -3607,7 +3623,7 @@ export const ProductApiFactory = function (configuration, basePath, axios) {
3607
3623
  * @throws {RequiredError}
3608
3624
  */
3609
3625
  getProductReviews(requestParameters, options) {
3610
- 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));
3611
3627
  },
3612
3628
  /**
3613
3629
  *
@@ -3645,7 +3661,7 @@ export class ProductApi extends BaseAPI {
3645
3661
  * @memberof ProductApi
3646
3662
  */
3647
3663
  getProductReviews(requestParameters, options) {
3648
- 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));
3649
3665
  }
3650
3666
  /**
3651
3667
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infisale-client/api-client",
3
- "version": "1.2.91",
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": "81bcdc34c428fb53d0d5c4b89c298e09b68a50a4"
40
+ "gitHead": "0bc42cb1620b473fc8ab9355886fd87aa7f0da64"
41
41
  }