@infisale-client/api-client 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 +581 -217
- package/dist/api/api.js +128 -10
- package/dist/api/api.mjs +128 -10
- package/package.json +2 -2
package/dist/api/api.js
CHANGED
|
@@ -3373,13 +3373,13 @@ const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
3373
3373
|
},
|
|
3374
3374
|
/**
|
|
3375
3375
|
*
|
|
3376
|
+
* @param {OrderEnum} [order]
|
|
3376
3377
|
* @param {number} [page]
|
|
3377
3378
|
* @param {number} [itemsPerPage]
|
|
3378
3379
|
* @param {string} [search]
|
|
3379
3380
|
* @param {string} [startDate]
|
|
3380
3381
|
* @param {string} [endDate]
|
|
3381
3382
|
* @param {GetProductsDateFieldEnum} [dateField]
|
|
3382
|
-
* @param {OrderEnum} [order]
|
|
3383
3383
|
* @param {string} [companyId]
|
|
3384
3384
|
* @param {string} [domain]
|
|
3385
3385
|
* @param {Array<string>} [collections]
|
|
@@ -3394,7 +3394,7 @@ const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
3394
3394
|
* @param {*} [options] Override http request option.
|
|
3395
3395
|
* @throws {RequiredError}
|
|
3396
3396
|
*/
|
|
3397
|
-
getProducts: async (page, itemsPerPage, search, startDate, endDate, dateField,
|
|
3397
|
+
getProducts: async (order, page, itemsPerPage, search, startDate, endDate, dateField, companyId, domain, collections, category, brand, inStock, priceGte, priceLte, autoComplete, sort, status, options = {}) => {
|
|
3398
3398
|
const localVarPath = `/api/products`;
|
|
3399
3399
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3400
3400
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -3405,6 +3405,9 @@ const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
3405
3405
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
3406
3406
|
const localVarHeaderParameter = {};
|
|
3407
3407
|
const localVarQueryParameter = {};
|
|
3408
|
+
if (order !== undefined) {
|
|
3409
|
+
localVarQueryParameter['order'] = order;
|
|
3410
|
+
}
|
|
3408
3411
|
if (page !== undefined) {
|
|
3409
3412
|
localVarQueryParameter['page'] = page;
|
|
3410
3413
|
}
|
|
@@ -3427,9 +3430,6 @@ const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
3427
3430
|
if (dateField !== undefined) {
|
|
3428
3431
|
localVarQueryParameter['dateField'] = dateField;
|
|
3429
3432
|
}
|
|
3430
|
-
if (order !== undefined) {
|
|
3431
|
-
localVarQueryParameter['order'] = order;
|
|
3432
|
-
}
|
|
3433
3433
|
if (companyId !== undefined) {
|
|
3434
3434
|
localVarQueryParameter['companyId'] = companyId;
|
|
3435
3435
|
}
|
|
@@ -3510,13 +3510,13 @@ const ProductApiFp = function (configuration) {
|
|
|
3510
3510
|
},
|
|
3511
3511
|
/**
|
|
3512
3512
|
*
|
|
3513
|
+
* @param {OrderEnum} [order]
|
|
3513
3514
|
* @param {number} [page]
|
|
3514
3515
|
* @param {number} [itemsPerPage]
|
|
3515
3516
|
* @param {string} [search]
|
|
3516
3517
|
* @param {string} [startDate]
|
|
3517
3518
|
* @param {string} [endDate]
|
|
3518
3519
|
* @param {GetProductsDateFieldEnum} [dateField]
|
|
3519
|
-
* @param {OrderEnum} [order]
|
|
3520
3520
|
* @param {string} [companyId]
|
|
3521
3521
|
* @param {string} [domain]
|
|
3522
3522
|
* @param {Array<string>} [collections]
|
|
@@ -3531,8 +3531,8 @@ const ProductApiFp = function (configuration) {
|
|
|
3531
3531
|
* @param {*} [options] Override http request option.
|
|
3532
3532
|
* @throws {RequiredError}
|
|
3533
3533
|
*/
|
|
3534
|
-
async getProducts(page, itemsPerPage, search, startDate, endDate, dateField,
|
|
3535
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getProducts(page, itemsPerPage, search, startDate, endDate, dateField,
|
|
3534
|
+
async getProducts(order, page, itemsPerPage, search, startDate, endDate, dateField, companyId, domain, collections, category, brand, inStock, priceGte, priceLte, autoComplete, sort, status, options) {
|
|
3535
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getProducts(order, page, itemsPerPage, search, startDate, endDate, dateField, companyId, domain, collections, category, brand, inStock, priceGte, priceLte, autoComplete, sort, status, options);
|
|
3536
3536
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3537
3537
|
const localVarOperationServerBasePath = base_1.operationServerMap['ProductApi.getProducts']?.[localVarOperationServerIndex]?.url;
|
|
3538
3538
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -3572,7 +3572,7 @@ const ProductApiFactory = function (configuration, basePath, axios) {
|
|
|
3572
3572
|
* @throws {RequiredError}
|
|
3573
3573
|
*/
|
|
3574
3574
|
getProducts(requestParameters = {}, options) {
|
|
3575
|
-
return localVarFp.getProducts(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.
|
|
3575
|
+
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));
|
|
3576
3576
|
},
|
|
3577
3577
|
};
|
|
3578
3578
|
};
|
|
@@ -3612,7 +3612,7 @@ class ProductApi extends base_1.BaseAPI {
|
|
|
3612
3612
|
* @memberof ProductApi
|
|
3613
3613
|
*/
|
|
3614
3614
|
getProducts(requestParameters = {}, options) {
|
|
3615
|
-
return (0, exports.ProductApiFp)(this.configuration).getProducts(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.
|
|
3615
|
+
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));
|
|
3616
3616
|
}
|
|
3617
3617
|
}
|
|
3618
3618
|
exports.ProductApi = ProductApi;
|
|
@@ -3861,6 +3861,62 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
3861
3861
|
options: localVarRequestOptions,
|
|
3862
3862
|
};
|
|
3863
3863
|
},
|
|
3864
|
+
/**
|
|
3865
|
+
*
|
|
3866
|
+
* @param {ReviewStatusEnum} [status]
|
|
3867
|
+
* @param {*} [options] Override http request option.
|
|
3868
|
+
* @throws {RequiredError}
|
|
3869
|
+
*/
|
|
3870
|
+
getMyProductReviewCount: async (status, options = {}) => {
|
|
3871
|
+
const localVarPath = `/api/users/my/review-count`;
|
|
3872
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3873
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3874
|
+
let baseOptions;
|
|
3875
|
+
if (configuration) {
|
|
3876
|
+
baseOptions = configuration.baseOptions;
|
|
3877
|
+
}
|
|
3878
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
3879
|
+
const localVarHeaderParameter = {};
|
|
3880
|
+
const localVarQueryParameter = {};
|
|
3881
|
+
if (status !== undefined) {
|
|
3882
|
+
localVarQueryParameter['status'] = status;
|
|
3883
|
+
}
|
|
3884
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3885
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3886
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
3887
|
+
return {
|
|
3888
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3889
|
+
options: localVarRequestOptions,
|
|
3890
|
+
};
|
|
3891
|
+
},
|
|
3892
|
+
/**
|
|
3893
|
+
*
|
|
3894
|
+
* @param {ReviewStatusEnum} [status]
|
|
3895
|
+
* @param {*} [options] Override http request option.
|
|
3896
|
+
* @throws {RequiredError}
|
|
3897
|
+
*/
|
|
3898
|
+
getMyProductReviews: async (status, options = {}) => {
|
|
3899
|
+
const localVarPath = `/api/users/my/reviews`;
|
|
3900
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3901
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3902
|
+
let baseOptions;
|
|
3903
|
+
if (configuration) {
|
|
3904
|
+
baseOptions = configuration.baseOptions;
|
|
3905
|
+
}
|
|
3906
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
3907
|
+
const localVarHeaderParameter = {};
|
|
3908
|
+
const localVarQueryParameter = {};
|
|
3909
|
+
if (status !== undefined) {
|
|
3910
|
+
localVarQueryParameter['status'] = status;
|
|
3911
|
+
}
|
|
3912
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3913
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3914
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
3915
|
+
return {
|
|
3916
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3917
|
+
options: localVarRequestOptions,
|
|
3918
|
+
};
|
|
3919
|
+
},
|
|
3864
3920
|
/**
|
|
3865
3921
|
*
|
|
3866
3922
|
* @param {string} id
|
|
@@ -4008,6 +4064,30 @@ const UserApiFp = function (configuration) {
|
|
|
4008
4064
|
const localVarOperationServerBasePath = base_1.operationServerMap['UserApi.getMyAddresses']?.[localVarOperationServerIndex]?.url;
|
|
4009
4065
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4010
4066
|
},
|
|
4067
|
+
/**
|
|
4068
|
+
*
|
|
4069
|
+
* @param {ReviewStatusEnum} [status]
|
|
4070
|
+
* @param {*} [options] Override http request option.
|
|
4071
|
+
* @throws {RequiredError}
|
|
4072
|
+
*/
|
|
4073
|
+
async getMyProductReviewCount(status, options) {
|
|
4074
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getMyProductReviewCount(status, options);
|
|
4075
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4076
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['UserApi.getMyProductReviewCount']?.[localVarOperationServerIndex]?.url;
|
|
4077
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4078
|
+
},
|
|
4079
|
+
/**
|
|
4080
|
+
*
|
|
4081
|
+
* @param {ReviewStatusEnum} [status]
|
|
4082
|
+
* @param {*} [options] Override http request option.
|
|
4083
|
+
* @throws {RequiredError}
|
|
4084
|
+
*/
|
|
4085
|
+
async getMyProductReviews(status, options) {
|
|
4086
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getMyProductReviews(status, options);
|
|
4087
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4088
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['UserApi.getMyProductReviews']?.[localVarOperationServerIndex]?.url;
|
|
4089
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4090
|
+
},
|
|
4011
4091
|
/**
|
|
4012
4092
|
*
|
|
4013
4093
|
* @param {string} id
|
|
@@ -4083,6 +4163,24 @@ const UserApiFactory = function (configuration, basePath, axios) {
|
|
|
4083
4163
|
getMyAddresses(options) {
|
|
4084
4164
|
return localVarFp.getMyAddresses(options).then((request) => request(axios, basePath));
|
|
4085
4165
|
},
|
|
4166
|
+
/**
|
|
4167
|
+
*
|
|
4168
|
+
* @param {UserApiGetMyProductReviewCountRequest} requestParameters Request parameters.
|
|
4169
|
+
* @param {*} [options] Override http request option.
|
|
4170
|
+
* @throws {RequiredError}
|
|
4171
|
+
*/
|
|
4172
|
+
getMyProductReviewCount(requestParameters = {}, options) {
|
|
4173
|
+
return localVarFp.getMyProductReviewCount(requestParameters.status, options).then((request) => request(axios, basePath));
|
|
4174
|
+
},
|
|
4175
|
+
/**
|
|
4176
|
+
*
|
|
4177
|
+
* @param {UserApiGetMyProductReviewsRequest} requestParameters Request parameters.
|
|
4178
|
+
* @param {*} [options] Override http request option.
|
|
4179
|
+
* @throws {RequiredError}
|
|
4180
|
+
*/
|
|
4181
|
+
getMyProductReviews(requestParameters = {}, options) {
|
|
4182
|
+
return localVarFp.getMyProductReviews(requestParameters.status, options).then((request) => request(axios, basePath));
|
|
4183
|
+
},
|
|
4086
4184
|
/**
|
|
4087
4185
|
*
|
|
4088
4186
|
* @param {UserApiGetUserByIdRequest} requestParameters Request parameters.
|
|
@@ -4147,6 +4245,26 @@ class UserApi extends base_1.BaseAPI {
|
|
|
4147
4245
|
getMyAddresses(options) {
|
|
4148
4246
|
return (0, exports.UserApiFp)(this.configuration).getMyAddresses(options).then((request) => request(this.axios, this.basePath));
|
|
4149
4247
|
}
|
|
4248
|
+
/**
|
|
4249
|
+
*
|
|
4250
|
+
* @param {UserApiGetMyProductReviewCountRequest} requestParameters Request parameters.
|
|
4251
|
+
* @param {*} [options] Override http request option.
|
|
4252
|
+
* @throws {RequiredError}
|
|
4253
|
+
* @memberof UserApi
|
|
4254
|
+
*/
|
|
4255
|
+
getMyProductReviewCount(requestParameters = {}, options) {
|
|
4256
|
+
return (0, exports.UserApiFp)(this.configuration).getMyProductReviewCount(requestParameters.status, options).then((request) => request(this.axios, this.basePath));
|
|
4257
|
+
}
|
|
4258
|
+
/**
|
|
4259
|
+
*
|
|
4260
|
+
* @param {UserApiGetMyProductReviewsRequest} requestParameters Request parameters.
|
|
4261
|
+
* @param {*} [options] Override http request option.
|
|
4262
|
+
* @throws {RequiredError}
|
|
4263
|
+
* @memberof UserApi
|
|
4264
|
+
*/
|
|
4265
|
+
getMyProductReviews(requestParameters = {}, options) {
|
|
4266
|
+
return (0, exports.UserApiFp)(this.configuration).getMyProductReviews(requestParameters.status, options).then((request) => request(this.axios, this.basePath));
|
|
4267
|
+
}
|
|
4150
4268
|
/**
|
|
4151
4269
|
*
|
|
4152
4270
|
* @param {UserApiGetUserByIdRequest} requestParameters Request parameters.
|
package/dist/api/api.mjs
CHANGED
|
@@ -3330,13 +3330,13 @@ export const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
3330
3330
|
},
|
|
3331
3331
|
/**
|
|
3332
3332
|
*
|
|
3333
|
+
* @param {OrderEnum} [order]
|
|
3333
3334
|
* @param {number} [page]
|
|
3334
3335
|
* @param {number} [itemsPerPage]
|
|
3335
3336
|
* @param {string} [search]
|
|
3336
3337
|
* @param {string} [startDate]
|
|
3337
3338
|
* @param {string} [endDate]
|
|
3338
3339
|
* @param {GetProductsDateFieldEnum} [dateField]
|
|
3339
|
-
* @param {OrderEnum} [order]
|
|
3340
3340
|
* @param {string} [companyId]
|
|
3341
3341
|
* @param {string} [domain]
|
|
3342
3342
|
* @param {Array<string>} [collections]
|
|
@@ -3351,7 +3351,7 @@ export const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
3351
3351
|
* @param {*} [options] Override http request option.
|
|
3352
3352
|
* @throws {RequiredError}
|
|
3353
3353
|
*/
|
|
3354
|
-
getProducts: async (page, itemsPerPage, search, startDate, endDate, dateField,
|
|
3354
|
+
getProducts: async (order, page, itemsPerPage, search, startDate, endDate, dateField, companyId, domain, collections, category, brand, inStock, priceGte, priceLte, autoComplete, sort, status, options = {}) => {
|
|
3355
3355
|
const localVarPath = `/api/products`;
|
|
3356
3356
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3357
3357
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -3362,6 +3362,9 @@ export const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
3362
3362
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
3363
3363
|
const localVarHeaderParameter = {};
|
|
3364
3364
|
const localVarQueryParameter = {};
|
|
3365
|
+
if (order !== undefined) {
|
|
3366
|
+
localVarQueryParameter['order'] = order;
|
|
3367
|
+
}
|
|
3365
3368
|
if (page !== undefined) {
|
|
3366
3369
|
localVarQueryParameter['page'] = page;
|
|
3367
3370
|
}
|
|
@@ -3384,9 +3387,6 @@ export const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
3384
3387
|
if (dateField !== undefined) {
|
|
3385
3388
|
localVarQueryParameter['dateField'] = dateField;
|
|
3386
3389
|
}
|
|
3387
|
-
if (order !== undefined) {
|
|
3388
|
-
localVarQueryParameter['order'] = order;
|
|
3389
|
-
}
|
|
3390
3390
|
if (companyId !== undefined) {
|
|
3391
3391
|
localVarQueryParameter['companyId'] = companyId;
|
|
3392
3392
|
}
|
|
@@ -3466,13 +3466,13 @@ export const ProductApiFp = function (configuration) {
|
|
|
3466
3466
|
},
|
|
3467
3467
|
/**
|
|
3468
3468
|
*
|
|
3469
|
+
* @param {OrderEnum} [order]
|
|
3469
3470
|
* @param {number} [page]
|
|
3470
3471
|
* @param {number} [itemsPerPage]
|
|
3471
3472
|
* @param {string} [search]
|
|
3472
3473
|
* @param {string} [startDate]
|
|
3473
3474
|
* @param {string} [endDate]
|
|
3474
3475
|
* @param {GetProductsDateFieldEnum} [dateField]
|
|
3475
|
-
* @param {OrderEnum} [order]
|
|
3476
3476
|
* @param {string} [companyId]
|
|
3477
3477
|
* @param {string} [domain]
|
|
3478
3478
|
* @param {Array<string>} [collections]
|
|
@@ -3487,8 +3487,8 @@ export const ProductApiFp = function (configuration) {
|
|
|
3487
3487
|
* @param {*} [options] Override http request option.
|
|
3488
3488
|
* @throws {RequiredError}
|
|
3489
3489
|
*/
|
|
3490
|
-
async getProducts(page, itemsPerPage, search, startDate, endDate, dateField,
|
|
3491
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getProducts(page, itemsPerPage, search, startDate, endDate, dateField,
|
|
3490
|
+
async getProducts(order, page, itemsPerPage, search, startDate, endDate, dateField, companyId, domain, collections, category, brand, inStock, priceGte, priceLte, autoComplete, sort, status, options) {
|
|
3491
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getProducts(order, page, itemsPerPage, search, startDate, endDate, dateField, companyId, domain, collections, category, brand, inStock, priceGte, priceLte, autoComplete, sort, status, options);
|
|
3492
3492
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3493
3493
|
const localVarOperationServerBasePath = operationServerMap['ProductApi.getProducts']?.[localVarOperationServerIndex]?.url;
|
|
3494
3494
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -3527,7 +3527,7 @@ export const ProductApiFactory = function (configuration, basePath, axios) {
|
|
|
3527
3527
|
* @throws {RequiredError}
|
|
3528
3528
|
*/
|
|
3529
3529
|
getProducts(requestParameters = {}, options) {
|
|
3530
|
-
return localVarFp.getProducts(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.
|
|
3530
|
+
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));
|
|
3531
3531
|
},
|
|
3532
3532
|
};
|
|
3533
3533
|
};
|
|
@@ -3566,7 +3566,7 @@ export class ProductApi extends BaseAPI {
|
|
|
3566
3566
|
* @memberof ProductApi
|
|
3567
3567
|
*/
|
|
3568
3568
|
getProducts(requestParameters = {}, options) {
|
|
3569
|
-
return ProductApiFp(this.configuration).getProducts(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.
|
|
3569
|
+
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));
|
|
3570
3570
|
}
|
|
3571
3571
|
}
|
|
3572
3572
|
/**
|
|
@@ -3810,6 +3810,62 @@ export const UserApiAxiosParamCreator = function (configuration) {
|
|
|
3810
3810
|
options: localVarRequestOptions,
|
|
3811
3811
|
};
|
|
3812
3812
|
},
|
|
3813
|
+
/**
|
|
3814
|
+
*
|
|
3815
|
+
* @param {ReviewStatusEnum} [status]
|
|
3816
|
+
* @param {*} [options] Override http request option.
|
|
3817
|
+
* @throws {RequiredError}
|
|
3818
|
+
*/
|
|
3819
|
+
getMyProductReviewCount: async (status, options = {}) => {
|
|
3820
|
+
const localVarPath = `/api/users/my/review-count`;
|
|
3821
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3822
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3823
|
+
let baseOptions;
|
|
3824
|
+
if (configuration) {
|
|
3825
|
+
baseOptions = configuration.baseOptions;
|
|
3826
|
+
}
|
|
3827
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
3828
|
+
const localVarHeaderParameter = {};
|
|
3829
|
+
const localVarQueryParameter = {};
|
|
3830
|
+
if (status !== undefined) {
|
|
3831
|
+
localVarQueryParameter['status'] = status;
|
|
3832
|
+
}
|
|
3833
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3834
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3835
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
3836
|
+
return {
|
|
3837
|
+
url: toPathString(localVarUrlObj),
|
|
3838
|
+
options: localVarRequestOptions,
|
|
3839
|
+
};
|
|
3840
|
+
},
|
|
3841
|
+
/**
|
|
3842
|
+
*
|
|
3843
|
+
* @param {ReviewStatusEnum} [status]
|
|
3844
|
+
* @param {*} [options] Override http request option.
|
|
3845
|
+
* @throws {RequiredError}
|
|
3846
|
+
*/
|
|
3847
|
+
getMyProductReviews: async (status, options = {}) => {
|
|
3848
|
+
const localVarPath = `/api/users/my/reviews`;
|
|
3849
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3850
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3851
|
+
let baseOptions;
|
|
3852
|
+
if (configuration) {
|
|
3853
|
+
baseOptions = configuration.baseOptions;
|
|
3854
|
+
}
|
|
3855
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
3856
|
+
const localVarHeaderParameter = {};
|
|
3857
|
+
const localVarQueryParameter = {};
|
|
3858
|
+
if (status !== undefined) {
|
|
3859
|
+
localVarQueryParameter['status'] = status;
|
|
3860
|
+
}
|
|
3861
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3862
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3863
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
3864
|
+
return {
|
|
3865
|
+
url: toPathString(localVarUrlObj),
|
|
3866
|
+
options: localVarRequestOptions,
|
|
3867
|
+
};
|
|
3868
|
+
},
|
|
3813
3869
|
/**
|
|
3814
3870
|
*
|
|
3815
3871
|
* @param {string} id
|
|
@@ -3956,6 +4012,30 @@ export const UserApiFp = function (configuration) {
|
|
|
3956
4012
|
const localVarOperationServerBasePath = operationServerMap['UserApi.getMyAddresses']?.[localVarOperationServerIndex]?.url;
|
|
3957
4013
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3958
4014
|
},
|
|
4015
|
+
/**
|
|
4016
|
+
*
|
|
4017
|
+
* @param {ReviewStatusEnum} [status]
|
|
4018
|
+
* @param {*} [options] Override http request option.
|
|
4019
|
+
* @throws {RequiredError}
|
|
4020
|
+
*/
|
|
4021
|
+
async getMyProductReviewCount(status, options) {
|
|
4022
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getMyProductReviewCount(status, options);
|
|
4023
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4024
|
+
const localVarOperationServerBasePath = operationServerMap['UserApi.getMyProductReviewCount']?.[localVarOperationServerIndex]?.url;
|
|
4025
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4026
|
+
},
|
|
4027
|
+
/**
|
|
4028
|
+
*
|
|
4029
|
+
* @param {ReviewStatusEnum} [status]
|
|
4030
|
+
* @param {*} [options] Override http request option.
|
|
4031
|
+
* @throws {RequiredError}
|
|
4032
|
+
*/
|
|
4033
|
+
async getMyProductReviews(status, options) {
|
|
4034
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getMyProductReviews(status, options);
|
|
4035
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4036
|
+
const localVarOperationServerBasePath = operationServerMap['UserApi.getMyProductReviews']?.[localVarOperationServerIndex]?.url;
|
|
4037
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4038
|
+
},
|
|
3959
4039
|
/**
|
|
3960
4040
|
*
|
|
3961
4041
|
* @param {string} id
|
|
@@ -4030,6 +4110,24 @@ export const UserApiFactory = function (configuration, basePath, axios) {
|
|
|
4030
4110
|
getMyAddresses(options) {
|
|
4031
4111
|
return localVarFp.getMyAddresses(options).then((request) => request(axios, basePath));
|
|
4032
4112
|
},
|
|
4113
|
+
/**
|
|
4114
|
+
*
|
|
4115
|
+
* @param {UserApiGetMyProductReviewCountRequest} requestParameters Request parameters.
|
|
4116
|
+
* @param {*} [options] Override http request option.
|
|
4117
|
+
* @throws {RequiredError}
|
|
4118
|
+
*/
|
|
4119
|
+
getMyProductReviewCount(requestParameters = {}, options) {
|
|
4120
|
+
return localVarFp.getMyProductReviewCount(requestParameters.status, options).then((request) => request(axios, basePath));
|
|
4121
|
+
},
|
|
4122
|
+
/**
|
|
4123
|
+
*
|
|
4124
|
+
* @param {UserApiGetMyProductReviewsRequest} requestParameters Request parameters.
|
|
4125
|
+
* @param {*} [options] Override http request option.
|
|
4126
|
+
* @throws {RequiredError}
|
|
4127
|
+
*/
|
|
4128
|
+
getMyProductReviews(requestParameters = {}, options) {
|
|
4129
|
+
return localVarFp.getMyProductReviews(requestParameters.status, options).then((request) => request(axios, basePath));
|
|
4130
|
+
},
|
|
4033
4131
|
/**
|
|
4034
4132
|
*
|
|
4035
4133
|
* @param {UserApiGetUserByIdRequest} requestParameters Request parameters.
|
|
@@ -4093,6 +4191,26 @@ export class UserApi extends BaseAPI {
|
|
|
4093
4191
|
getMyAddresses(options) {
|
|
4094
4192
|
return UserApiFp(this.configuration).getMyAddresses(options).then((request) => request(this.axios, this.basePath));
|
|
4095
4193
|
}
|
|
4194
|
+
/**
|
|
4195
|
+
*
|
|
4196
|
+
* @param {UserApiGetMyProductReviewCountRequest} requestParameters Request parameters.
|
|
4197
|
+
* @param {*} [options] Override http request option.
|
|
4198
|
+
* @throws {RequiredError}
|
|
4199
|
+
* @memberof UserApi
|
|
4200
|
+
*/
|
|
4201
|
+
getMyProductReviewCount(requestParameters = {}, options) {
|
|
4202
|
+
return UserApiFp(this.configuration).getMyProductReviewCount(requestParameters.status, options).then((request) => request(this.axios, this.basePath));
|
|
4203
|
+
}
|
|
4204
|
+
/**
|
|
4205
|
+
*
|
|
4206
|
+
* @param {UserApiGetMyProductReviewsRequest} requestParameters Request parameters.
|
|
4207
|
+
* @param {*} [options] Override http request option.
|
|
4208
|
+
* @throws {RequiredError}
|
|
4209
|
+
* @memberof UserApi
|
|
4210
|
+
*/
|
|
4211
|
+
getMyProductReviews(requestParameters = {}, options) {
|
|
4212
|
+
return UserApiFp(this.configuration).getMyProductReviews(requestParameters.status, options).then((request) => request(this.axios, this.basePath));
|
|
4213
|
+
}
|
|
4096
4214
|
/**
|
|
4097
4215
|
*
|
|
4098
4216
|
* @param {UserApiGetUserByIdRequest} requestParameters Request parameters.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@infisale-client/api-client",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.78",
|
|
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": "
|
|
40
|
+
"gitHead": "294183d29b9438ce08e5e6854b0deff927a417cd"
|
|
41
41
|
}
|