@infisale-client/api 1.2.76 → 1.2.78
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 +728 -264
- package/dist/api/api.js +256 -10
- package/dist/api/api.mjs +256 -10
- package/package.json +2 -2
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.
|
|
@@ -7196,6 +7260,38 @@ export const OrderApiAxiosParamCreator = function (configuration) {
|
|
|
7196
7260
|
options: localVarRequestOptions,
|
|
7197
7261
|
};
|
|
7198
7262
|
},
|
|
7263
|
+
/**
|
|
7264
|
+
*
|
|
7265
|
+
* @param {string} id
|
|
7266
|
+
* @param {string} productId
|
|
7267
|
+
* @param {*} [options] Override http request option.
|
|
7268
|
+
* @throws {RequiredError}
|
|
7269
|
+
*/
|
|
7270
|
+
getOrderProductReview: async (id, productId, options = {}) => {
|
|
7271
|
+
// verify required parameter 'id' is not null or undefined
|
|
7272
|
+
assertParamExists('getOrderProductReview', 'id', id);
|
|
7273
|
+
// verify required parameter 'productId' is not null or undefined
|
|
7274
|
+
assertParamExists('getOrderProductReview', 'productId', productId);
|
|
7275
|
+
const localVarPath = `/api/orders/{id}/product/{productId}/review`
|
|
7276
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
|
7277
|
+
.replace(`{${"productId"}}`, encodeURIComponent(String(productId)));
|
|
7278
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7279
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7280
|
+
let baseOptions;
|
|
7281
|
+
if (configuration) {
|
|
7282
|
+
baseOptions = configuration.baseOptions;
|
|
7283
|
+
}
|
|
7284
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
7285
|
+
const localVarHeaderParameter = {};
|
|
7286
|
+
const localVarQueryParameter = {};
|
|
7287
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7288
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7289
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
7290
|
+
return {
|
|
7291
|
+
url: toPathString(localVarUrlObj),
|
|
7292
|
+
options: localVarRequestOptions,
|
|
7293
|
+
};
|
|
7294
|
+
},
|
|
7199
7295
|
/**
|
|
7200
7296
|
*
|
|
7201
7297
|
* @param {string} company
|
|
@@ -7497,6 +7593,19 @@ export const OrderApiFp = function (configuration) {
|
|
|
7497
7593
|
const localVarOperationServerBasePath = operationServerMap['OrderApi.getOrderById']?.[localVarOperationServerIndex]?.url;
|
|
7498
7594
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7499
7595
|
},
|
|
7596
|
+
/**
|
|
7597
|
+
*
|
|
7598
|
+
* @param {string} id
|
|
7599
|
+
* @param {string} productId
|
|
7600
|
+
* @param {*} [options] Override http request option.
|
|
7601
|
+
* @throws {RequiredError}
|
|
7602
|
+
*/
|
|
7603
|
+
async getOrderProductReview(id, productId, options) {
|
|
7604
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getOrderProductReview(id, productId, options);
|
|
7605
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
7606
|
+
const localVarOperationServerBasePath = operationServerMap['OrderApi.getOrderProductReview']?.[localVarOperationServerIndex]?.url;
|
|
7607
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7608
|
+
},
|
|
7500
7609
|
/**
|
|
7501
7610
|
*
|
|
7502
7611
|
* @param {string} company
|
|
@@ -7635,6 +7744,15 @@ export const OrderApiFactory = function (configuration, basePath, axios) {
|
|
|
7635
7744
|
getOrderById(requestParameters, options) {
|
|
7636
7745
|
return localVarFp.getOrderById(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
7637
7746
|
},
|
|
7747
|
+
/**
|
|
7748
|
+
*
|
|
7749
|
+
* @param {OrderApiGetOrderProductReviewRequest} requestParameters Request parameters.
|
|
7750
|
+
* @param {*} [options] Override http request option.
|
|
7751
|
+
* @throws {RequiredError}
|
|
7752
|
+
*/
|
|
7753
|
+
getOrderProductReview(requestParameters, options) {
|
|
7754
|
+
return localVarFp.getOrderProductReview(requestParameters.id, requestParameters.productId, options).then((request) => request(axios, basePath));
|
|
7755
|
+
},
|
|
7638
7756
|
/**
|
|
7639
7757
|
*
|
|
7640
7758
|
* @param {OrderApiGetOrdersRequest} requestParameters Request parameters.
|
|
@@ -7749,6 +7867,16 @@ export class OrderApi extends BaseAPI {
|
|
|
7749
7867
|
getOrderById(requestParameters, options) {
|
|
7750
7868
|
return OrderApiFp(this.configuration).getOrderById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
7751
7869
|
}
|
|
7870
|
+
/**
|
|
7871
|
+
*
|
|
7872
|
+
* @param {OrderApiGetOrderProductReviewRequest} requestParameters Request parameters.
|
|
7873
|
+
* @param {*} [options] Override http request option.
|
|
7874
|
+
* @throws {RequiredError}
|
|
7875
|
+
* @memberof OrderApi
|
|
7876
|
+
*/
|
|
7877
|
+
getOrderProductReview(requestParameters, options) {
|
|
7878
|
+
return OrderApiFp(this.configuration).getOrderProductReview(requestParameters.id, requestParameters.productId, options).then((request) => request(this.axios, this.basePath));
|
|
7879
|
+
}
|
|
7752
7880
|
/**
|
|
7753
7881
|
*
|
|
7754
7882
|
* @param {OrderApiGetOrdersRequest} requestParameters Request parameters.
|
|
@@ -9128,13 +9256,13 @@ export const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
9128
9256
|
},
|
|
9129
9257
|
/**
|
|
9130
9258
|
*
|
|
9259
|
+
* @param {OrderEnum} [order]
|
|
9131
9260
|
* @param {number} [page]
|
|
9132
9261
|
* @param {number} [itemsPerPage]
|
|
9133
9262
|
* @param {string} [search]
|
|
9134
9263
|
* @param {string} [startDate]
|
|
9135
9264
|
* @param {string} [endDate]
|
|
9136
9265
|
* @param {GetProductsDateFieldEnum} [dateField]
|
|
9137
|
-
* @param {OrderEnum} [order]
|
|
9138
9266
|
* @param {string} [companyId]
|
|
9139
9267
|
* @param {string} [domain]
|
|
9140
9268
|
* @param {Array<string>} [collections]
|
|
@@ -9149,7 +9277,7 @@ export const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
9149
9277
|
* @param {*} [options] Override http request option.
|
|
9150
9278
|
* @throws {RequiredError}
|
|
9151
9279
|
*/
|
|
9152
|
-
getProducts: async (page, itemsPerPage, search, startDate, endDate, dateField,
|
|
9280
|
+
getProducts: async (order, page, itemsPerPage, search, startDate, endDate, dateField, companyId, domain, collections, category, brand, inStock, priceGte, priceLte, autoComplete, sort, status, options = {}) => {
|
|
9153
9281
|
const localVarPath = `/api/products`;
|
|
9154
9282
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9155
9283
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -9160,6 +9288,9 @@ export const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
9160
9288
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
9161
9289
|
const localVarHeaderParameter = {};
|
|
9162
9290
|
const localVarQueryParameter = {};
|
|
9291
|
+
if (order !== undefined) {
|
|
9292
|
+
localVarQueryParameter['order'] = order;
|
|
9293
|
+
}
|
|
9163
9294
|
if (page !== undefined) {
|
|
9164
9295
|
localVarQueryParameter['page'] = page;
|
|
9165
9296
|
}
|
|
@@ -9182,9 +9313,6 @@ export const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
9182
9313
|
if (dateField !== undefined) {
|
|
9183
9314
|
localVarQueryParameter['dateField'] = dateField;
|
|
9184
9315
|
}
|
|
9185
|
-
if (order !== undefined) {
|
|
9186
|
-
localVarQueryParameter['order'] = order;
|
|
9187
|
-
}
|
|
9188
9316
|
if (companyId !== undefined) {
|
|
9189
9317
|
localVarQueryParameter['companyId'] = companyId;
|
|
9190
9318
|
}
|
|
@@ -9361,13 +9489,13 @@ export const ProductApiFp = function (configuration) {
|
|
|
9361
9489
|
},
|
|
9362
9490
|
/**
|
|
9363
9491
|
*
|
|
9492
|
+
* @param {OrderEnum} [order]
|
|
9364
9493
|
* @param {number} [page]
|
|
9365
9494
|
* @param {number} [itemsPerPage]
|
|
9366
9495
|
* @param {string} [search]
|
|
9367
9496
|
* @param {string} [startDate]
|
|
9368
9497
|
* @param {string} [endDate]
|
|
9369
9498
|
* @param {GetProductsDateFieldEnum} [dateField]
|
|
9370
|
-
* @param {OrderEnum} [order]
|
|
9371
9499
|
* @param {string} [companyId]
|
|
9372
9500
|
* @param {string} [domain]
|
|
9373
9501
|
* @param {Array<string>} [collections]
|
|
@@ -9382,8 +9510,8 @@ export const ProductApiFp = function (configuration) {
|
|
|
9382
9510
|
* @param {*} [options] Override http request option.
|
|
9383
9511
|
* @throws {RequiredError}
|
|
9384
9512
|
*/
|
|
9385
|
-
async getProducts(page, itemsPerPage, search, startDate, endDate, dateField,
|
|
9386
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getProducts(page, itemsPerPage, search, startDate, endDate, dateField,
|
|
9513
|
+
async getProducts(order, page, itemsPerPage, search, startDate, endDate, dateField, companyId, domain, collections, category, brand, inStock, priceGte, priceLte, autoComplete, sort, status, options) {
|
|
9514
|
+
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
9515
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
9388
9516
|
const localVarOperationServerBasePath = operationServerMap['ProductApi.getProducts']?.[localVarOperationServerIndex]?.url;
|
|
9389
9517
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -9480,7 +9608,7 @@ export const ProductApiFactory = function (configuration, basePath, axios) {
|
|
|
9480
9608
|
* @throws {RequiredError}
|
|
9481
9609
|
*/
|
|
9482
9610
|
getProducts(requestParameters = {}, options) {
|
|
9483
|
-
return localVarFp.getProducts(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.
|
|
9611
|
+
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
9612
|
},
|
|
9485
9613
|
/**
|
|
9486
9614
|
*
|
|
@@ -9578,7 +9706,7 @@ export class ProductApi extends BaseAPI {
|
|
|
9578
9706
|
* @memberof ProductApi
|
|
9579
9707
|
*/
|
|
9580
9708
|
getProducts(requestParameters = {}, options) {
|
|
9581
|
-
return ProductApiFp(this.configuration).getProducts(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.
|
|
9709
|
+
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
9710
|
}
|
|
9583
9711
|
/**
|
|
9584
9712
|
*
|
|
@@ -10605,6 +10733,62 @@ export const UserApiAxiosParamCreator = function (configuration) {
|
|
|
10605
10733
|
options: localVarRequestOptions,
|
|
10606
10734
|
};
|
|
10607
10735
|
},
|
|
10736
|
+
/**
|
|
10737
|
+
*
|
|
10738
|
+
* @param {ReviewStatusEnum} [status]
|
|
10739
|
+
* @param {*} [options] Override http request option.
|
|
10740
|
+
* @throws {RequiredError}
|
|
10741
|
+
*/
|
|
10742
|
+
getMyProductReviewCount: async (status, options = {}) => {
|
|
10743
|
+
const localVarPath = `/api/users/my/review-count`;
|
|
10744
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10745
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
10746
|
+
let baseOptions;
|
|
10747
|
+
if (configuration) {
|
|
10748
|
+
baseOptions = configuration.baseOptions;
|
|
10749
|
+
}
|
|
10750
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
10751
|
+
const localVarHeaderParameter = {};
|
|
10752
|
+
const localVarQueryParameter = {};
|
|
10753
|
+
if (status !== undefined) {
|
|
10754
|
+
localVarQueryParameter['status'] = status;
|
|
10755
|
+
}
|
|
10756
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
10757
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10758
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
10759
|
+
return {
|
|
10760
|
+
url: toPathString(localVarUrlObj),
|
|
10761
|
+
options: localVarRequestOptions,
|
|
10762
|
+
};
|
|
10763
|
+
},
|
|
10764
|
+
/**
|
|
10765
|
+
*
|
|
10766
|
+
* @param {ReviewStatusEnum} [status]
|
|
10767
|
+
* @param {*} [options] Override http request option.
|
|
10768
|
+
* @throws {RequiredError}
|
|
10769
|
+
*/
|
|
10770
|
+
getMyProductReviews: async (status, options = {}) => {
|
|
10771
|
+
const localVarPath = `/api/users/my/reviews`;
|
|
10772
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10773
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
10774
|
+
let baseOptions;
|
|
10775
|
+
if (configuration) {
|
|
10776
|
+
baseOptions = configuration.baseOptions;
|
|
10777
|
+
}
|
|
10778
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
10779
|
+
const localVarHeaderParameter = {};
|
|
10780
|
+
const localVarQueryParameter = {};
|
|
10781
|
+
if (status !== undefined) {
|
|
10782
|
+
localVarQueryParameter['status'] = status;
|
|
10783
|
+
}
|
|
10784
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
10785
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10786
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
10787
|
+
return {
|
|
10788
|
+
url: toPathString(localVarUrlObj),
|
|
10789
|
+
options: localVarRequestOptions,
|
|
10790
|
+
};
|
|
10791
|
+
},
|
|
10608
10792
|
/**
|
|
10609
10793
|
*
|
|
10610
10794
|
* @param {string} id
|
|
@@ -10891,6 +11075,30 @@ export const UserApiFp = function (configuration) {
|
|
|
10891
11075
|
const localVarOperationServerBasePath = operationServerMap['UserApi.getMyAddresses']?.[localVarOperationServerIndex]?.url;
|
|
10892
11076
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
10893
11077
|
},
|
|
11078
|
+
/**
|
|
11079
|
+
*
|
|
11080
|
+
* @param {ReviewStatusEnum} [status]
|
|
11081
|
+
* @param {*} [options] Override http request option.
|
|
11082
|
+
* @throws {RequiredError}
|
|
11083
|
+
*/
|
|
11084
|
+
async getMyProductReviewCount(status, options) {
|
|
11085
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getMyProductReviewCount(status, options);
|
|
11086
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
11087
|
+
const localVarOperationServerBasePath = operationServerMap['UserApi.getMyProductReviewCount']?.[localVarOperationServerIndex]?.url;
|
|
11088
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11089
|
+
},
|
|
11090
|
+
/**
|
|
11091
|
+
*
|
|
11092
|
+
* @param {ReviewStatusEnum} [status]
|
|
11093
|
+
* @param {*} [options] Override http request option.
|
|
11094
|
+
* @throws {RequiredError}
|
|
11095
|
+
*/
|
|
11096
|
+
async getMyProductReviews(status, options) {
|
|
11097
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getMyProductReviews(status, options);
|
|
11098
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
11099
|
+
const localVarOperationServerBasePath = operationServerMap['UserApi.getMyProductReviews']?.[localVarOperationServerIndex]?.url;
|
|
11100
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11101
|
+
},
|
|
10894
11102
|
/**
|
|
10895
11103
|
*
|
|
10896
11104
|
* @param {string} id
|
|
@@ -11020,6 +11228,24 @@ export const UserApiFactory = function (configuration, basePath, axios) {
|
|
|
11020
11228
|
getMyAddresses(options) {
|
|
11021
11229
|
return localVarFp.getMyAddresses(options).then((request) => request(axios, basePath));
|
|
11022
11230
|
},
|
|
11231
|
+
/**
|
|
11232
|
+
*
|
|
11233
|
+
* @param {UserApiGetMyProductReviewCountRequest} requestParameters Request parameters.
|
|
11234
|
+
* @param {*} [options] Override http request option.
|
|
11235
|
+
* @throws {RequiredError}
|
|
11236
|
+
*/
|
|
11237
|
+
getMyProductReviewCount(requestParameters = {}, options) {
|
|
11238
|
+
return localVarFp.getMyProductReviewCount(requestParameters.status, options).then((request) => request(axios, basePath));
|
|
11239
|
+
},
|
|
11240
|
+
/**
|
|
11241
|
+
*
|
|
11242
|
+
* @param {UserApiGetMyProductReviewsRequest} requestParameters Request parameters.
|
|
11243
|
+
* @param {*} [options] Override http request option.
|
|
11244
|
+
* @throws {RequiredError}
|
|
11245
|
+
*/
|
|
11246
|
+
getMyProductReviews(requestParameters = {}, options) {
|
|
11247
|
+
return localVarFp.getMyProductReviews(requestParameters.status, options).then((request) => request(axios, basePath));
|
|
11248
|
+
},
|
|
11023
11249
|
/**
|
|
11024
11250
|
*
|
|
11025
11251
|
* @param {UserApiGetUserByIdRequest} requestParameters Request parameters.
|
|
@@ -11120,6 +11346,26 @@ export class UserApi extends BaseAPI {
|
|
|
11120
11346
|
getMyAddresses(options) {
|
|
11121
11347
|
return UserApiFp(this.configuration).getMyAddresses(options).then((request) => request(this.axios, this.basePath));
|
|
11122
11348
|
}
|
|
11349
|
+
/**
|
|
11350
|
+
*
|
|
11351
|
+
* @param {UserApiGetMyProductReviewCountRequest} requestParameters Request parameters.
|
|
11352
|
+
* @param {*} [options] Override http request option.
|
|
11353
|
+
* @throws {RequiredError}
|
|
11354
|
+
* @memberof UserApi
|
|
11355
|
+
*/
|
|
11356
|
+
getMyProductReviewCount(requestParameters = {}, options) {
|
|
11357
|
+
return UserApiFp(this.configuration).getMyProductReviewCount(requestParameters.status, options).then((request) => request(this.axios, this.basePath));
|
|
11358
|
+
}
|
|
11359
|
+
/**
|
|
11360
|
+
*
|
|
11361
|
+
* @param {UserApiGetMyProductReviewsRequest} requestParameters Request parameters.
|
|
11362
|
+
* @param {*} [options] Override http request option.
|
|
11363
|
+
* @throws {RequiredError}
|
|
11364
|
+
* @memberof UserApi
|
|
11365
|
+
*/
|
|
11366
|
+
getMyProductReviews(requestParameters = {}, options) {
|
|
11367
|
+
return UserApiFp(this.configuration).getMyProductReviews(requestParameters.status, options).then((request) => request(this.axios, this.basePath));
|
|
11368
|
+
}
|
|
11123
11369
|
/**
|
|
11124
11370
|
*
|
|
11125
11371
|
* @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.
|
|
3
|
+
"version": "1.2.78",
|
|
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": "
|
|
40
|
+
"gitHead": "294183d29b9438ce08e5e6854b0deff927a417cd"
|
|
41
41
|
}
|