@infisale-client/api 1.2.75 → 1.2.77

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.js CHANGED
@@ -4153,6 +4153,38 @@ const CompanyApiAxiosParamCreator = function (configuration) {
4153
4153
  options: localVarRequestOptions,
4154
4154
  };
4155
4155
  },
4156
+ /**
4157
+ *
4158
+ * @param {string} id
4159
+ * @param {ReviewStatusEnum} [status]
4160
+ * @param {*} [options] Override http request option.
4161
+ * @throws {RequiredError}
4162
+ */
4163
+ getCompanyReviewCount: async (id, status, options = {}) => {
4164
+ // verify required parameter 'id' is not null or undefined
4165
+ (0, common_1.assertParamExists)('getCompanyReviewCount', 'id', id);
4166
+ const localVarPath = `/api/companies/{id}/review-count`
4167
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
4168
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4169
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4170
+ let baseOptions;
4171
+ if (configuration) {
4172
+ baseOptions = configuration.baseOptions;
4173
+ }
4174
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
4175
+ const localVarHeaderParameter = {};
4176
+ const localVarQueryParameter = {};
4177
+ if (status !== undefined) {
4178
+ localVarQueryParameter['status'] = status;
4179
+ }
4180
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4181
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4182
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
4183
+ return {
4184
+ url: (0, common_1.toPathString)(localVarUrlObj),
4185
+ options: localVarRequestOptions,
4186
+ };
4187
+ },
4156
4188
  /**
4157
4189
  *
4158
4190
  * @param {string} id
@@ -4716,6 +4748,19 @@ const CompanyApiFp = function (configuration) {
4716
4748
  const localVarOperationServerBasePath = base_1.operationServerMap['CompanyApi.getCompanyProductReviews']?.[localVarOperationServerIndex]?.url;
4717
4749
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4718
4750
  },
4751
+ /**
4752
+ *
4753
+ * @param {string} id
4754
+ * @param {ReviewStatusEnum} [status]
4755
+ * @param {*} [options] Override http request option.
4756
+ * @throws {RequiredError}
4757
+ */
4758
+ async getCompanyReviewCount(id, status, options) {
4759
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getCompanyReviewCount(id, status, options);
4760
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4761
+ const localVarOperationServerBasePath = base_1.operationServerMap['CompanyApi.getCompanyReviewCount']?.[localVarOperationServerIndex]?.url;
4762
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4763
+ },
4719
4764
  /**
4720
4765
  *
4721
4766
  * @param {string} id
@@ -4995,6 +5040,15 @@ const CompanyApiFactory = function (configuration, basePath, axios) {
4995
5040
  getCompanyProductReviews(requestParameters, options) {
4996
5041
  return localVarFp.getCompanyProductReviews(requestParameters.id, requestParameters.status, options).then((request) => request(axios, basePath));
4997
5042
  },
5043
+ /**
5044
+ *
5045
+ * @param {CompanyApiGetCompanyReviewCountRequest} requestParameters Request parameters.
5046
+ * @param {*} [options] Override http request option.
5047
+ * @throws {RequiredError}
5048
+ */
5049
+ getCompanyReviewCount(requestParameters, options) {
5050
+ return localVarFp.getCompanyReviewCount(requestParameters.id, requestParameters.status, options).then((request) => request(axios, basePath));
5051
+ },
4998
5052
  /**
4999
5053
  *
5000
5054
  * @param {CompanyApiGetCompanyUsersRequest} requestParameters Request parameters.
@@ -5244,6 +5298,16 @@ class CompanyApi extends base_1.BaseAPI {
5244
5298
  getCompanyProductReviews(requestParameters, options) {
5245
5299
  return (0, exports.CompanyApiFp)(this.configuration).getCompanyProductReviews(requestParameters.id, requestParameters.status, options).then((request) => request(this.axios, this.basePath));
5246
5300
  }
5301
+ /**
5302
+ *
5303
+ * @param {CompanyApiGetCompanyReviewCountRequest} requestParameters Request parameters.
5304
+ * @param {*} [options] Override http request option.
5305
+ * @throws {RequiredError}
5306
+ * @memberof CompanyApi
5307
+ */
5308
+ getCompanyReviewCount(requestParameters, options) {
5309
+ return (0, exports.CompanyApiFp)(this.configuration).getCompanyReviewCount(requestParameters.id, requestParameters.status, options).then((request) => request(this.axios, this.basePath));
5310
+ }
5247
5311
  /**
5248
5312
  *
5249
5313
  * @param {CompanyApiGetCompanyUsersRequest} requestParameters Request parameters.
@@ -9196,13 +9260,13 @@ const ProductApiAxiosParamCreator = function (configuration) {
9196
9260
  },
9197
9261
  /**
9198
9262
  *
9263
+ * @param {OrderEnum} [order]
9199
9264
  * @param {number} [page]
9200
9265
  * @param {number} [itemsPerPage]
9201
9266
  * @param {string} [search]
9202
9267
  * @param {string} [startDate]
9203
9268
  * @param {string} [endDate]
9204
9269
  * @param {GetProductsDateFieldEnum} [dateField]
9205
- * @param {OrderEnum} [order]
9206
9270
  * @param {string} [companyId]
9207
9271
  * @param {string} [domain]
9208
9272
  * @param {Array<string>} [collections]
@@ -9217,7 +9281,7 @@ const ProductApiAxiosParamCreator = function (configuration) {
9217
9281
  * @param {*} [options] Override http request option.
9218
9282
  * @throws {RequiredError}
9219
9283
  */
9220
- getProducts: async (page, itemsPerPage, search, startDate, endDate, dateField, order, companyId, domain, collections, category, brand, inStock, priceGte, priceLte, autoComplete, sort, status, options = {}) => {
9284
+ getProducts: async (order, page, itemsPerPage, search, startDate, endDate, dateField, companyId, domain, collections, category, brand, inStock, priceGte, priceLte, autoComplete, sort, status, options = {}) => {
9221
9285
  const localVarPath = `/api/products`;
9222
9286
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
9223
9287
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -9228,6 +9292,9 @@ const ProductApiAxiosParamCreator = function (configuration) {
9228
9292
  const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
9229
9293
  const localVarHeaderParameter = {};
9230
9294
  const localVarQueryParameter = {};
9295
+ if (order !== undefined) {
9296
+ localVarQueryParameter['order'] = order;
9297
+ }
9231
9298
  if (page !== undefined) {
9232
9299
  localVarQueryParameter['page'] = page;
9233
9300
  }
@@ -9250,9 +9317,6 @@ const ProductApiAxiosParamCreator = function (configuration) {
9250
9317
  if (dateField !== undefined) {
9251
9318
  localVarQueryParameter['dateField'] = dateField;
9252
9319
  }
9253
- if (order !== undefined) {
9254
- localVarQueryParameter['order'] = order;
9255
- }
9256
9320
  if (companyId !== undefined) {
9257
9321
  localVarQueryParameter['companyId'] = companyId;
9258
9322
  }
@@ -9430,13 +9494,13 @@ const ProductApiFp = function (configuration) {
9430
9494
  },
9431
9495
  /**
9432
9496
  *
9497
+ * @param {OrderEnum} [order]
9433
9498
  * @param {number} [page]
9434
9499
  * @param {number} [itemsPerPage]
9435
9500
  * @param {string} [search]
9436
9501
  * @param {string} [startDate]
9437
9502
  * @param {string} [endDate]
9438
9503
  * @param {GetProductsDateFieldEnum} [dateField]
9439
- * @param {OrderEnum} [order]
9440
9504
  * @param {string} [companyId]
9441
9505
  * @param {string} [domain]
9442
9506
  * @param {Array<string>} [collections]
@@ -9451,8 +9515,8 @@ const ProductApiFp = function (configuration) {
9451
9515
  * @param {*} [options] Override http request option.
9452
9516
  * @throws {RequiredError}
9453
9517
  */
9454
- async getProducts(page, itemsPerPage, search, startDate, endDate, dateField, order, companyId, domain, collections, category, brand, inStock, priceGte, priceLte, autoComplete, sort, status, options) {
9455
- const localVarAxiosArgs = await localVarAxiosParamCreator.getProducts(page, itemsPerPage, search, startDate, endDate, dateField, order, companyId, domain, collections, category, brand, inStock, priceGte, priceLte, autoComplete, sort, status, options);
9518
+ async getProducts(order, page, itemsPerPage, search, startDate, endDate, dateField, companyId, domain, collections, category, brand, inStock, priceGte, priceLte, autoComplete, sort, status, options) {
9519
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getProducts(order, page, itemsPerPage, search, startDate, endDate, dateField, companyId, domain, collections, category, brand, inStock, priceGte, priceLte, autoComplete, sort, status, options);
9456
9520
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
9457
9521
  const localVarOperationServerBasePath = base_1.operationServerMap['ProductApi.getProducts']?.[localVarOperationServerIndex]?.url;
9458
9522
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -9550,7 +9614,7 @@ const ProductApiFactory = function (configuration, basePath, axios) {
9550
9614
  * @throws {RequiredError}
9551
9615
  */
9552
9616
  getProducts(requestParameters = {}, options) {
9553
- return localVarFp.getProducts(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.companyId, requestParameters.domain, requestParameters.collections, requestParameters.category, requestParameters.brand, requestParameters.inStock, requestParameters.priceGte, requestParameters.priceLte, requestParameters.autoComplete, requestParameters.sort, requestParameters.status, options).then((request) => request(axios, basePath));
9617
+ return localVarFp.getProducts(requestParameters.order, requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.companyId, requestParameters.domain, requestParameters.collections, requestParameters.category, requestParameters.brand, requestParameters.inStock, requestParameters.priceGte, requestParameters.priceLte, requestParameters.autoComplete, requestParameters.sort, requestParameters.status, options).then((request) => request(axios, basePath));
9554
9618
  },
9555
9619
  /**
9556
9620
  *
@@ -9649,7 +9713,7 @@ class ProductApi extends base_1.BaseAPI {
9649
9713
  * @memberof ProductApi
9650
9714
  */
9651
9715
  getProducts(requestParameters = {}, options) {
9652
- return (0, exports.ProductApiFp)(this.configuration).getProducts(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.companyId, requestParameters.domain, requestParameters.collections, requestParameters.category, requestParameters.brand, requestParameters.inStock, requestParameters.priceGte, requestParameters.priceLte, requestParameters.autoComplete, requestParameters.sort, requestParameters.status, options).then((request) => request(this.axios, this.basePath));
9716
+ return (0, exports.ProductApiFp)(this.configuration).getProducts(requestParameters.order, requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.companyId, requestParameters.domain, requestParameters.collections, requestParameters.category, requestParameters.brand, requestParameters.inStock, requestParameters.priceGte, requestParameters.priceLte, requestParameters.autoComplete, requestParameters.sort, requestParameters.status, options).then((request) => request(this.axios, this.basePath));
9653
9717
  }
9654
9718
  /**
9655
9719
  *
@@ -10689,6 +10753,62 @@ const UserApiAxiosParamCreator = function (configuration) {
10689
10753
  options: localVarRequestOptions,
10690
10754
  };
10691
10755
  },
10756
+ /**
10757
+ *
10758
+ * @param {ReviewStatusEnum} [status]
10759
+ * @param {*} [options] Override http request option.
10760
+ * @throws {RequiredError}
10761
+ */
10762
+ getMyProductReviewCount: async (status, options = {}) => {
10763
+ const localVarPath = `/api/users/my/review-count`;
10764
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10765
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
10766
+ let baseOptions;
10767
+ if (configuration) {
10768
+ baseOptions = configuration.baseOptions;
10769
+ }
10770
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
10771
+ const localVarHeaderParameter = {};
10772
+ const localVarQueryParameter = {};
10773
+ if (status !== undefined) {
10774
+ localVarQueryParameter['status'] = status;
10775
+ }
10776
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
10777
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10778
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
10779
+ return {
10780
+ url: (0, common_1.toPathString)(localVarUrlObj),
10781
+ options: localVarRequestOptions,
10782
+ };
10783
+ },
10784
+ /**
10785
+ *
10786
+ * @param {ReviewStatusEnum} [status]
10787
+ * @param {*} [options] Override http request option.
10788
+ * @throws {RequiredError}
10789
+ */
10790
+ getMyProductReviews: async (status, options = {}) => {
10791
+ const localVarPath = `/api/users/my/reviews`;
10792
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10793
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
10794
+ let baseOptions;
10795
+ if (configuration) {
10796
+ baseOptions = configuration.baseOptions;
10797
+ }
10798
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
10799
+ const localVarHeaderParameter = {};
10800
+ const localVarQueryParameter = {};
10801
+ if (status !== undefined) {
10802
+ localVarQueryParameter['status'] = status;
10803
+ }
10804
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
10805
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10806
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
10807
+ return {
10808
+ url: (0, common_1.toPathString)(localVarUrlObj),
10809
+ options: localVarRequestOptions,
10810
+ };
10811
+ },
10692
10812
  /**
10693
10813
  *
10694
10814
  * @param {string} id
@@ -10976,6 +11096,30 @@ const UserApiFp = function (configuration) {
10976
11096
  const localVarOperationServerBasePath = base_1.operationServerMap['UserApi.getMyAddresses']?.[localVarOperationServerIndex]?.url;
10977
11097
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10978
11098
  },
11099
+ /**
11100
+ *
11101
+ * @param {ReviewStatusEnum} [status]
11102
+ * @param {*} [options] Override http request option.
11103
+ * @throws {RequiredError}
11104
+ */
11105
+ async getMyProductReviewCount(status, options) {
11106
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getMyProductReviewCount(status, options);
11107
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
11108
+ const localVarOperationServerBasePath = base_1.operationServerMap['UserApi.getMyProductReviewCount']?.[localVarOperationServerIndex]?.url;
11109
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11110
+ },
11111
+ /**
11112
+ *
11113
+ * @param {ReviewStatusEnum} [status]
11114
+ * @param {*} [options] Override http request option.
11115
+ * @throws {RequiredError}
11116
+ */
11117
+ async getMyProductReviews(status, options) {
11118
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getMyProductReviews(status, options);
11119
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
11120
+ const localVarOperationServerBasePath = base_1.operationServerMap['UserApi.getMyProductReviews']?.[localVarOperationServerIndex]?.url;
11121
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11122
+ },
10979
11123
  /**
10980
11124
  *
10981
11125
  * @param {string} id
@@ -11106,6 +11250,24 @@ const UserApiFactory = function (configuration, basePath, axios) {
11106
11250
  getMyAddresses(options) {
11107
11251
  return localVarFp.getMyAddresses(options).then((request) => request(axios, basePath));
11108
11252
  },
11253
+ /**
11254
+ *
11255
+ * @param {UserApiGetMyProductReviewCountRequest} requestParameters Request parameters.
11256
+ * @param {*} [options] Override http request option.
11257
+ * @throws {RequiredError}
11258
+ */
11259
+ getMyProductReviewCount(requestParameters = {}, options) {
11260
+ return localVarFp.getMyProductReviewCount(requestParameters.status, options).then((request) => request(axios, basePath));
11261
+ },
11262
+ /**
11263
+ *
11264
+ * @param {UserApiGetMyProductReviewsRequest} requestParameters Request parameters.
11265
+ * @param {*} [options] Override http request option.
11266
+ * @throws {RequiredError}
11267
+ */
11268
+ getMyProductReviews(requestParameters = {}, options) {
11269
+ return localVarFp.getMyProductReviews(requestParameters.status, options).then((request) => request(axios, basePath));
11270
+ },
11109
11271
  /**
11110
11272
  *
11111
11273
  * @param {UserApiGetUserByIdRequest} requestParameters Request parameters.
@@ -11207,6 +11369,26 @@ class UserApi extends base_1.BaseAPI {
11207
11369
  getMyAddresses(options) {
11208
11370
  return (0, exports.UserApiFp)(this.configuration).getMyAddresses(options).then((request) => request(this.axios, this.basePath));
11209
11371
  }
11372
+ /**
11373
+ *
11374
+ * @param {UserApiGetMyProductReviewCountRequest} requestParameters Request parameters.
11375
+ * @param {*} [options] Override http request option.
11376
+ * @throws {RequiredError}
11377
+ * @memberof UserApi
11378
+ */
11379
+ getMyProductReviewCount(requestParameters = {}, options) {
11380
+ return (0, exports.UserApiFp)(this.configuration).getMyProductReviewCount(requestParameters.status, options).then((request) => request(this.axios, this.basePath));
11381
+ }
11382
+ /**
11383
+ *
11384
+ * @param {UserApiGetMyProductReviewsRequest} requestParameters Request parameters.
11385
+ * @param {*} [options] Override http request option.
11386
+ * @throws {RequiredError}
11387
+ * @memberof UserApi
11388
+ */
11389
+ getMyProductReviews(requestParameters = {}, options) {
11390
+ return (0, exports.UserApiFp)(this.configuration).getMyProductReviews(requestParameters.status, options).then((request) => request(this.axios, this.basePath));
11391
+ }
11210
11392
  /**
11211
11393
  *
11212
11394
  * @param {UserApiGetUserByIdRequest} requestParameters Request parameters.
package/dist/api/api.mjs CHANGED
@@ -4117,6 +4117,38 @@ export const CompanyApiAxiosParamCreator = function (configuration) {
4117
4117
  options: localVarRequestOptions,
4118
4118
  };
4119
4119
  },
4120
+ /**
4121
+ *
4122
+ * @param {string} id
4123
+ * @param {ReviewStatusEnum} [status]
4124
+ * @param {*} [options] Override http request option.
4125
+ * @throws {RequiredError}
4126
+ */
4127
+ getCompanyReviewCount: async (id, status, options = {}) => {
4128
+ // verify required parameter 'id' is not null or undefined
4129
+ assertParamExists('getCompanyReviewCount', 'id', id);
4130
+ const localVarPath = `/api/companies/{id}/review-count`
4131
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
4132
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4133
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4134
+ let baseOptions;
4135
+ if (configuration) {
4136
+ baseOptions = configuration.baseOptions;
4137
+ }
4138
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
4139
+ const localVarHeaderParameter = {};
4140
+ const localVarQueryParameter = {};
4141
+ if (status !== undefined) {
4142
+ localVarQueryParameter['status'] = status;
4143
+ }
4144
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4145
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4146
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
4147
+ return {
4148
+ url: toPathString(localVarUrlObj),
4149
+ options: localVarRequestOptions,
4150
+ };
4151
+ },
4120
4152
  /**
4121
4153
  *
4122
4154
  * @param {string} id
@@ -4679,6 +4711,19 @@ export const CompanyApiFp = function (configuration) {
4679
4711
  const localVarOperationServerBasePath = operationServerMap['CompanyApi.getCompanyProductReviews']?.[localVarOperationServerIndex]?.url;
4680
4712
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4681
4713
  },
4714
+ /**
4715
+ *
4716
+ * @param {string} id
4717
+ * @param {ReviewStatusEnum} [status]
4718
+ * @param {*} [options] Override http request option.
4719
+ * @throws {RequiredError}
4720
+ */
4721
+ async getCompanyReviewCount(id, status, options) {
4722
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getCompanyReviewCount(id, status, options);
4723
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4724
+ const localVarOperationServerBasePath = operationServerMap['CompanyApi.getCompanyReviewCount']?.[localVarOperationServerIndex]?.url;
4725
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4726
+ },
4682
4727
  /**
4683
4728
  *
4684
4729
  * @param {string} id
@@ -4957,6 +5002,15 @@ export const CompanyApiFactory = function (configuration, basePath, axios) {
4957
5002
  getCompanyProductReviews(requestParameters, options) {
4958
5003
  return localVarFp.getCompanyProductReviews(requestParameters.id, requestParameters.status, options).then((request) => request(axios, basePath));
4959
5004
  },
5005
+ /**
5006
+ *
5007
+ * @param {CompanyApiGetCompanyReviewCountRequest} requestParameters Request parameters.
5008
+ * @param {*} [options] Override http request option.
5009
+ * @throws {RequiredError}
5010
+ */
5011
+ getCompanyReviewCount(requestParameters, options) {
5012
+ return localVarFp.getCompanyReviewCount(requestParameters.id, requestParameters.status, options).then((request) => request(axios, basePath));
5013
+ },
4960
5014
  /**
4961
5015
  *
4962
5016
  * @param {CompanyApiGetCompanyUsersRequest} requestParameters Request parameters.
@@ -5205,6 +5259,16 @@ export class CompanyApi extends BaseAPI {
5205
5259
  getCompanyProductReviews(requestParameters, options) {
5206
5260
  return CompanyApiFp(this.configuration).getCompanyProductReviews(requestParameters.id, requestParameters.status, options).then((request) => request(this.axios, this.basePath));
5207
5261
  }
5262
+ /**
5263
+ *
5264
+ * @param {CompanyApiGetCompanyReviewCountRequest} requestParameters Request parameters.
5265
+ * @param {*} [options] Override http request option.
5266
+ * @throws {RequiredError}
5267
+ * @memberof CompanyApi
5268
+ */
5269
+ getCompanyReviewCount(requestParameters, options) {
5270
+ return CompanyApiFp(this.configuration).getCompanyReviewCount(requestParameters.id, requestParameters.status, options).then((request) => request(this.axios, this.basePath));
5271
+ }
5208
5272
  /**
5209
5273
  *
5210
5274
  * @param {CompanyApiGetCompanyUsersRequest} requestParameters Request parameters.
@@ -9128,13 +9192,13 @@ export const ProductApiAxiosParamCreator = function (configuration) {
9128
9192
  },
9129
9193
  /**
9130
9194
  *
9195
+ * @param {OrderEnum} [order]
9131
9196
  * @param {number} [page]
9132
9197
  * @param {number} [itemsPerPage]
9133
9198
  * @param {string} [search]
9134
9199
  * @param {string} [startDate]
9135
9200
  * @param {string} [endDate]
9136
9201
  * @param {GetProductsDateFieldEnum} [dateField]
9137
- * @param {OrderEnum} [order]
9138
9202
  * @param {string} [companyId]
9139
9203
  * @param {string} [domain]
9140
9204
  * @param {Array<string>} [collections]
@@ -9149,7 +9213,7 @@ export const ProductApiAxiosParamCreator = function (configuration) {
9149
9213
  * @param {*} [options] Override http request option.
9150
9214
  * @throws {RequiredError}
9151
9215
  */
9152
- getProducts: async (page, itemsPerPage, search, startDate, endDate, dateField, order, companyId, domain, collections, category, brand, inStock, priceGte, priceLte, autoComplete, sort, status, options = {}) => {
9216
+ getProducts: async (order, page, itemsPerPage, search, startDate, endDate, dateField, companyId, domain, collections, category, brand, inStock, priceGte, priceLte, autoComplete, sort, status, options = {}) => {
9153
9217
  const localVarPath = `/api/products`;
9154
9218
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
9155
9219
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -9160,6 +9224,9 @@ export const ProductApiAxiosParamCreator = function (configuration) {
9160
9224
  const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
9161
9225
  const localVarHeaderParameter = {};
9162
9226
  const localVarQueryParameter = {};
9227
+ if (order !== undefined) {
9228
+ localVarQueryParameter['order'] = order;
9229
+ }
9163
9230
  if (page !== undefined) {
9164
9231
  localVarQueryParameter['page'] = page;
9165
9232
  }
@@ -9182,9 +9249,6 @@ export const ProductApiAxiosParamCreator = function (configuration) {
9182
9249
  if (dateField !== undefined) {
9183
9250
  localVarQueryParameter['dateField'] = dateField;
9184
9251
  }
9185
- if (order !== undefined) {
9186
- localVarQueryParameter['order'] = order;
9187
- }
9188
9252
  if (companyId !== undefined) {
9189
9253
  localVarQueryParameter['companyId'] = companyId;
9190
9254
  }
@@ -9361,13 +9425,13 @@ export const ProductApiFp = function (configuration) {
9361
9425
  },
9362
9426
  /**
9363
9427
  *
9428
+ * @param {OrderEnum} [order]
9364
9429
  * @param {number} [page]
9365
9430
  * @param {number} [itemsPerPage]
9366
9431
  * @param {string} [search]
9367
9432
  * @param {string} [startDate]
9368
9433
  * @param {string} [endDate]
9369
9434
  * @param {GetProductsDateFieldEnum} [dateField]
9370
- * @param {OrderEnum} [order]
9371
9435
  * @param {string} [companyId]
9372
9436
  * @param {string} [domain]
9373
9437
  * @param {Array<string>} [collections]
@@ -9382,8 +9446,8 @@ export const ProductApiFp = function (configuration) {
9382
9446
  * @param {*} [options] Override http request option.
9383
9447
  * @throws {RequiredError}
9384
9448
  */
9385
- async getProducts(page, itemsPerPage, search, startDate, endDate, dateField, order, companyId, domain, collections, category, brand, inStock, priceGte, priceLte, autoComplete, sort, status, options) {
9386
- const localVarAxiosArgs = await localVarAxiosParamCreator.getProducts(page, itemsPerPage, search, startDate, endDate, dateField, order, companyId, domain, collections, category, brand, inStock, priceGte, priceLte, autoComplete, sort, status, options);
9449
+ async getProducts(order, page, itemsPerPage, search, startDate, endDate, dateField, companyId, domain, collections, category, brand, inStock, priceGte, priceLte, autoComplete, sort, status, options) {
9450
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getProducts(order, page, itemsPerPage, search, startDate, endDate, dateField, companyId, domain, collections, category, brand, inStock, priceGte, priceLte, autoComplete, sort, status, options);
9387
9451
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
9388
9452
  const localVarOperationServerBasePath = operationServerMap['ProductApi.getProducts']?.[localVarOperationServerIndex]?.url;
9389
9453
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -9480,7 +9544,7 @@ export const ProductApiFactory = function (configuration, basePath, axios) {
9480
9544
  * @throws {RequiredError}
9481
9545
  */
9482
9546
  getProducts(requestParameters = {}, options) {
9483
- return localVarFp.getProducts(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.companyId, requestParameters.domain, requestParameters.collections, requestParameters.category, requestParameters.brand, requestParameters.inStock, requestParameters.priceGte, requestParameters.priceLte, requestParameters.autoComplete, requestParameters.sort, requestParameters.status, options).then((request) => request(axios, basePath));
9547
+ return localVarFp.getProducts(requestParameters.order, requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.companyId, requestParameters.domain, requestParameters.collections, requestParameters.category, requestParameters.brand, requestParameters.inStock, requestParameters.priceGte, requestParameters.priceLte, requestParameters.autoComplete, requestParameters.sort, requestParameters.status, options).then((request) => request(axios, basePath));
9484
9548
  },
9485
9549
  /**
9486
9550
  *
@@ -9578,7 +9642,7 @@ export class ProductApi extends BaseAPI {
9578
9642
  * @memberof ProductApi
9579
9643
  */
9580
9644
  getProducts(requestParameters = {}, options) {
9581
- return ProductApiFp(this.configuration).getProducts(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.companyId, requestParameters.domain, requestParameters.collections, requestParameters.category, requestParameters.brand, requestParameters.inStock, requestParameters.priceGte, requestParameters.priceLte, requestParameters.autoComplete, requestParameters.sort, requestParameters.status, options).then((request) => request(this.axios, this.basePath));
9645
+ return ProductApiFp(this.configuration).getProducts(requestParameters.order, requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.companyId, requestParameters.domain, requestParameters.collections, requestParameters.category, requestParameters.brand, requestParameters.inStock, requestParameters.priceGte, requestParameters.priceLte, requestParameters.autoComplete, requestParameters.sort, requestParameters.status, options).then((request) => request(this.axios, this.basePath));
9582
9646
  }
9583
9647
  /**
9584
9648
  *
@@ -10605,6 +10669,62 @@ export const UserApiAxiosParamCreator = function (configuration) {
10605
10669
  options: localVarRequestOptions,
10606
10670
  };
10607
10671
  },
10672
+ /**
10673
+ *
10674
+ * @param {ReviewStatusEnum} [status]
10675
+ * @param {*} [options] Override http request option.
10676
+ * @throws {RequiredError}
10677
+ */
10678
+ getMyProductReviewCount: async (status, options = {}) => {
10679
+ const localVarPath = `/api/users/my/review-count`;
10680
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10681
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
10682
+ let baseOptions;
10683
+ if (configuration) {
10684
+ baseOptions = configuration.baseOptions;
10685
+ }
10686
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
10687
+ const localVarHeaderParameter = {};
10688
+ const localVarQueryParameter = {};
10689
+ if (status !== undefined) {
10690
+ localVarQueryParameter['status'] = status;
10691
+ }
10692
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
10693
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10694
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
10695
+ return {
10696
+ url: toPathString(localVarUrlObj),
10697
+ options: localVarRequestOptions,
10698
+ };
10699
+ },
10700
+ /**
10701
+ *
10702
+ * @param {ReviewStatusEnum} [status]
10703
+ * @param {*} [options] Override http request option.
10704
+ * @throws {RequiredError}
10705
+ */
10706
+ getMyProductReviews: async (status, options = {}) => {
10707
+ const localVarPath = `/api/users/my/reviews`;
10708
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10709
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
10710
+ let baseOptions;
10711
+ if (configuration) {
10712
+ baseOptions = configuration.baseOptions;
10713
+ }
10714
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
10715
+ const localVarHeaderParameter = {};
10716
+ const localVarQueryParameter = {};
10717
+ if (status !== undefined) {
10718
+ localVarQueryParameter['status'] = status;
10719
+ }
10720
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
10721
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10722
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
10723
+ return {
10724
+ url: toPathString(localVarUrlObj),
10725
+ options: localVarRequestOptions,
10726
+ };
10727
+ },
10608
10728
  /**
10609
10729
  *
10610
10730
  * @param {string} id
@@ -10891,6 +11011,30 @@ export const UserApiFp = function (configuration) {
10891
11011
  const localVarOperationServerBasePath = operationServerMap['UserApi.getMyAddresses']?.[localVarOperationServerIndex]?.url;
10892
11012
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10893
11013
  },
11014
+ /**
11015
+ *
11016
+ * @param {ReviewStatusEnum} [status]
11017
+ * @param {*} [options] Override http request option.
11018
+ * @throws {RequiredError}
11019
+ */
11020
+ async getMyProductReviewCount(status, options) {
11021
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getMyProductReviewCount(status, options);
11022
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
11023
+ const localVarOperationServerBasePath = operationServerMap['UserApi.getMyProductReviewCount']?.[localVarOperationServerIndex]?.url;
11024
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11025
+ },
11026
+ /**
11027
+ *
11028
+ * @param {ReviewStatusEnum} [status]
11029
+ * @param {*} [options] Override http request option.
11030
+ * @throws {RequiredError}
11031
+ */
11032
+ async getMyProductReviews(status, options) {
11033
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getMyProductReviews(status, options);
11034
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
11035
+ const localVarOperationServerBasePath = operationServerMap['UserApi.getMyProductReviews']?.[localVarOperationServerIndex]?.url;
11036
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11037
+ },
10894
11038
  /**
10895
11039
  *
10896
11040
  * @param {string} id
@@ -11020,6 +11164,24 @@ export const UserApiFactory = function (configuration, basePath, axios) {
11020
11164
  getMyAddresses(options) {
11021
11165
  return localVarFp.getMyAddresses(options).then((request) => request(axios, basePath));
11022
11166
  },
11167
+ /**
11168
+ *
11169
+ * @param {UserApiGetMyProductReviewCountRequest} requestParameters Request parameters.
11170
+ * @param {*} [options] Override http request option.
11171
+ * @throws {RequiredError}
11172
+ */
11173
+ getMyProductReviewCount(requestParameters = {}, options) {
11174
+ return localVarFp.getMyProductReviewCount(requestParameters.status, options).then((request) => request(axios, basePath));
11175
+ },
11176
+ /**
11177
+ *
11178
+ * @param {UserApiGetMyProductReviewsRequest} requestParameters Request parameters.
11179
+ * @param {*} [options] Override http request option.
11180
+ * @throws {RequiredError}
11181
+ */
11182
+ getMyProductReviews(requestParameters = {}, options) {
11183
+ return localVarFp.getMyProductReviews(requestParameters.status, options).then((request) => request(axios, basePath));
11184
+ },
11023
11185
  /**
11024
11186
  *
11025
11187
  * @param {UserApiGetUserByIdRequest} requestParameters Request parameters.
@@ -11120,6 +11282,26 @@ export class UserApi extends BaseAPI {
11120
11282
  getMyAddresses(options) {
11121
11283
  return UserApiFp(this.configuration).getMyAddresses(options).then((request) => request(this.axios, this.basePath));
11122
11284
  }
11285
+ /**
11286
+ *
11287
+ * @param {UserApiGetMyProductReviewCountRequest} requestParameters Request parameters.
11288
+ * @param {*} [options] Override http request option.
11289
+ * @throws {RequiredError}
11290
+ * @memberof UserApi
11291
+ */
11292
+ getMyProductReviewCount(requestParameters = {}, options) {
11293
+ return UserApiFp(this.configuration).getMyProductReviewCount(requestParameters.status, options).then((request) => request(this.axios, this.basePath));
11294
+ }
11295
+ /**
11296
+ *
11297
+ * @param {UserApiGetMyProductReviewsRequest} requestParameters Request parameters.
11298
+ * @param {*} [options] Override http request option.
11299
+ * @throws {RequiredError}
11300
+ * @memberof UserApi
11301
+ */
11302
+ getMyProductReviews(requestParameters = {}, options) {
11303
+ return UserApiFp(this.configuration).getMyProductReviews(requestParameters.status, options).then((request) => request(this.axios, this.basePath));
11304
+ }
11123
11305
  /**
11124
11306
  *
11125
11307
  * @param {UserApiGetUserByIdRequest} requestParameters Request parameters.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infisale-client/api",
3
- "version": "1.2.75",
3
+ "version": "1.2.77",
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": "e5d78bca810a40bb61d9762322dc134c25ca6ccf"
40
+ "gitHead": "7b599a53085504a195475a274bd266e823890e3e"
41
41
  }