@infisale-client/api 1.2.73 → 1.2.75
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 +621 -37
- package/dist/api/api.js +344 -22
- package/dist/api/api.mjs +341 -19
- package/package.json +2 -2
package/dist/api/api.mjs
CHANGED
|
@@ -562,7 +562,9 @@ export const IProductCollectionQueryParamsDateFieldEnum = {
|
|
|
562
562
|
export const IProductCollectionQueryParamsSortEnum = {
|
|
563
563
|
PRICE: 'price',
|
|
564
564
|
CREATED_AT: 'createdAt',
|
|
565
|
-
TOTAL_SALE: 'totalSale'
|
|
565
|
+
TOTAL_SALE: 'totalSale',
|
|
566
|
+
RATING: 'rating',
|
|
567
|
+
REVIEW_COUNT: 'reviewCount'
|
|
566
568
|
};
|
|
567
569
|
export const IUserCollectionQueryParamsDateFieldEnum = {
|
|
568
570
|
CREATED_AT: 'createdAt',
|
|
@@ -756,6 +758,16 @@ export const ProductDetailImageZoomTypeEnum = {
|
|
|
756
758
|
DIALOG: 'dialog',
|
|
757
759
|
NONE: 'none'
|
|
758
760
|
};
|
|
761
|
+
/**
|
|
762
|
+
*
|
|
763
|
+
* @export
|
|
764
|
+
* @enum {string}
|
|
765
|
+
*/
|
|
766
|
+
export const ReviewStatusEnum = {
|
|
767
|
+
WAITING_APPROVAL: 'waiting_approval',
|
|
768
|
+
APPROVED: 'approved',
|
|
769
|
+
REJECTED: 'rejected'
|
|
770
|
+
};
|
|
759
771
|
/**
|
|
760
772
|
*
|
|
761
773
|
* @export
|
|
@@ -4073,6 +4085,38 @@ export const CompanyApiAxiosParamCreator = function (configuration) {
|
|
|
4073
4085
|
options: localVarRequestOptions,
|
|
4074
4086
|
};
|
|
4075
4087
|
},
|
|
4088
|
+
/**
|
|
4089
|
+
*
|
|
4090
|
+
* @param {string} id
|
|
4091
|
+
* @param {ReviewStatusEnum} [status]
|
|
4092
|
+
* @param {*} [options] Override http request option.
|
|
4093
|
+
* @throws {RequiredError}
|
|
4094
|
+
*/
|
|
4095
|
+
getCompanyProductReviews: async (id, status, options = {}) => {
|
|
4096
|
+
// verify required parameter 'id' is not null or undefined
|
|
4097
|
+
assertParamExists('getCompanyProductReviews', 'id', id);
|
|
4098
|
+
const localVarPath = `/api/companies/{id}/reviews`
|
|
4099
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
4100
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4101
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4102
|
+
let baseOptions;
|
|
4103
|
+
if (configuration) {
|
|
4104
|
+
baseOptions = configuration.baseOptions;
|
|
4105
|
+
}
|
|
4106
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
4107
|
+
const localVarHeaderParameter = {};
|
|
4108
|
+
const localVarQueryParameter = {};
|
|
4109
|
+
if (status !== undefined) {
|
|
4110
|
+
localVarQueryParameter['status'] = status;
|
|
4111
|
+
}
|
|
4112
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4113
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4114
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
4115
|
+
return {
|
|
4116
|
+
url: toPathString(localVarUrlObj),
|
|
4117
|
+
options: localVarRequestOptions,
|
|
4118
|
+
};
|
|
4119
|
+
},
|
|
4076
4120
|
/**
|
|
4077
4121
|
*
|
|
4078
4122
|
* @param {string} id
|
|
@@ -4622,6 +4666,19 @@ export const CompanyApiFp = function (configuration) {
|
|
|
4622
4666
|
const localVarOperationServerBasePath = operationServerMap['CompanyApi.getCompanyPaymentGateways']?.[localVarOperationServerIndex]?.url;
|
|
4623
4667
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4624
4668
|
},
|
|
4669
|
+
/**
|
|
4670
|
+
*
|
|
4671
|
+
* @param {string} id
|
|
4672
|
+
* @param {ReviewStatusEnum} [status]
|
|
4673
|
+
* @param {*} [options] Override http request option.
|
|
4674
|
+
* @throws {RequiredError}
|
|
4675
|
+
*/
|
|
4676
|
+
async getCompanyProductReviews(id, status, options) {
|
|
4677
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getCompanyProductReviews(id, status, options);
|
|
4678
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4679
|
+
const localVarOperationServerBasePath = operationServerMap['CompanyApi.getCompanyProductReviews']?.[localVarOperationServerIndex]?.url;
|
|
4680
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4681
|
+
},
|
|
4625
4682
|
/**
|
|
4626
4683
|
*
|
|
4627
4684
|
* @param {string} id
|
|
@@ -4891,6 +4948,15 @@ export const CompanyApiFactory = function (configuration, basePath, axios) {
|
|
|
4891
4948
|
getCompanyPaymentGateways(requestParameters, options) {
|
|
4892
4949
|
return localVarFp.getCompanyPaymentGateways(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
4893
4950
|
},
|
|
4951
|
+
/**
|
|
4952
|
+
*
|
|
4953
|
+
* @param {CompanyApiGetCompanyProductReviewsRequest} requestParameters Request parameters.
|
|
4954
|
+
* @param {*} [options] Override http request option.
|
|
4955
|
+
* @throws {RequiredError}
|
|
4956
|
+
*/
|
|
4957
|
+
getCompanyProductReviews(requestParameters, options) {
|
|
4958
|
+
return localVarFp.getCompanyProductReviews(requestParameters.id, requestParameters.status, options).then((request) => request(axios, basePath));
|
|
4959
|
+
},
|
|
4894
4960
|
/**
|
|
4895
4961
|
*
|
|
4896
4962
|
* @param {CompanyApiGetCompanyUsersRequest} requestParameters Request parameters.
|
|
@@ -5129,6 +5195,16 @@ export class CompanyApi extends BaseAPI {
|
|
|
5129
5195
|
getCompanyPaymentGateways(requestParameters, options) {
|
|
5130
5196
|
return CompanyApiFp(this.configuration).getCompanyPaymentGateways(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
5131
5197
|
}
|
|
5198
|
+
/**
|
|
5199
|
+
*
|
|
5200
|
+
* @param {CompanyApiGetCompanyProductReviewsRequest} requestParameters Request parameters.
|
|
5201
|
+
* @param {*} [options] Override http request option.
|
|
5202
|
+
* @throws {RequiredError}
|
|
5203
|
+
* @memberof CompanyApi
|
|
5204
|
+
*/
|
|
5205
|
+
getCompanyProductReviews(requestParameters, options) {
|
|
5206
|
+
return CompanyApiFp(this.configuration).getCompanyProductReviews(requestParameters.id, requestParameters.status, options).then((request) => request(this.axios, this.basePath));
|
|
5207
|
+
}
|
|
5132
5208
|
/**
|
|
5133
5209
|
*
|
|
5134
5210
|
* @param {CompanyApiGetCompanyUsersRequest} requestParameters Request parameters.
|
|
@@ -6999,6 +7075,35 @@ export const OrderApiAxiosParamCreator = function (configuration) {
|
|
|
6999
7075
|
options: localVarRequestOptions,
|
|
7000
7076
|
};
|
|
7001
7077
|
},
|
|
7078
|
+
/**
|
|
7079
|
+
*
|
|
7080
|
+
* @param {IOrderReviewPostRequest} iOrderReviewPostRequest
|
|
7081
|
+
* @param {*} [options] Override http request option.
|
|
7082
|
+
* @throws {RequiredError}
|
|
7083
|
+
*/
|
|
7084
|
+
createReview: async (iOrderReviewPostRequest, options = {}) => {
|
|
7085
|
+
// verify required parameter 'iOrderReviewPostRequest' is not null or undefined
|
|
7086
|
+
assertParamExists('createReview', 'iOrderReviewPostRequest', iOrderReviewPostRequest);
|
|
7087
|
+
const localVarPath = `/api/orders/reviews`;
|
|
7088
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7089
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7090
|
+
let baseOptions;
|
|
7091
|
+
if (configuration) {
|
|
7092
|
+
baseOptions = configuration.baseOptions;
|
|
7093
|
+
}
|
|
7094
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
7095
|
+
const localVarHeaderParameter = {};
|
|
7096
|
+
const localVarQueryParameter = {};
|
|
7097
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
7098
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7099
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7100
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
7101
|
+
localVarRequestOptions.data = serializeDataIfNeeded(iOrderReviewPostRequest, localVarRequestOptions, configuration);
|
|
7102
|
+
return {
|
|
7103
|
+
url: toPathString(localVarUrlObj),
|
|
7104
|
+
options: localVarRequestOptions,
|
|
7105
|
+
};
|
|
7106
|
+
},
|
|
7002
7107
|
/**
|
|
7003
7108
|
*
|
|
7004
7109
|
* @param {number} [page]
|
|
@@ -7235,6 +7340,72 @@ export const OrderApiAxiosParamCreator = function (configuration) {
|
|
|
7235
7340
|
options: localVarRequestOptions,
|
|
7236
7341
|
};
|
|
7237
7342
|
},
|
|
7343
|
+
/**
|
|
7344
|
+
*
|
|
7345
|
+
* @param {string} id
|
|
7346
|
+
* @param {IReviewPatchRequest} iReviewPatchRequest
|
|
7347
|
+
* @param {*} [options] Override http request option.
|
|
7348
|
+
* @throws {RequiredError}
|
|
7349
|
+
*/
|
|
7350
|
+
updateReview: async (id, iReviewPatchRequest, options = {}) => {
|
|
7351
|
+
// verify required parameter 'id' is not null or undefined
|
|
7352
|
+
assertParamExists('updateReview', 'id', id);
|
|
7353
|
+
// verify required parameter 'iReviewPatchRequest' is not null or undefined
|
|
7354
|
+
assertParamExists('updateReview', 'iReviewPatchRequest', iReviewPatchRequest);
|
|
7355
|
+
const localVarPath = `/api/orders/reviews/{id}`
|
|
7356
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
7357
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7358
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7359
|
+
let baseOptions;
|
|
7360
|
+
if (configuration) {
|
|
7361
|
+
baseOptions = configuration.baseOptions;
|
|
7362
|
+
}
|
|
7363
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options };
|
|
7364
|
+
const localVarHeaderParameter = {};
|
|
7365
|
+
const localVarQueryParameter = {};
|
|
7366
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
7367
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7368
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7369
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
7370
|
+
localVarRequestOptions.data = serializeDataIfNeeded(iReviewPatchRequest, localVarRequestOptions, configuration);
|
|
7371
|
+
return {
|
|
7372
|
+
url: toPathString(localVarUrlObj),
|
|
7373
|
+
options: localVarRequestOptions,
|
|
7374
|
+
};
|
|
7375
|
+
},
|
|
7376
|
+
/**
|
|
7377
|
+
*
|
|
7378
|
+
* @param {string} id
|
|
7379
|
+
* @param {UpdateReviewStatusRequest} updateReviewStatusRequest
|
|
7380
|
+
* @param {*} [options] Override http request option.
|
|
7381
|
+
* @throws {RequiredError}
|
|
7382
|
+
*/
|
|
7383
|
+
updateReviewStatus: async (id, updateReviewStatusRequest, options = {}) => {
|
|
7384
|
+
// verify required parameter 'id' is not null or undefined
|
|
7385
|
+
assertParamExists('updateReviewStatus', 'id', id);
|
|
7386
|
+
// verify required parameter 'updateReviewStatusRequest' is not null or undefined
|
|
7387
|
+
assertParamExists('updateReviewStatus', 'updateReviewStatusRequest', updateReviewStatusRequest);
|
|
7388
|
+
const localVarPath = `/api/orders/reviews/{id}/status`
|
|
7389
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
7390
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7391
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7392
|
+
let baseOptions;
|
|
7393
|
+
if (configuration) {
|
|
7394
|
+
baseOptions = configuration.baseOptions;
|
|
7395
|
+
}
|
|
7396
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options };
|
|
7397
|
+
const localVarHeaderParameter = {};
|
|
7398
|
+
const localVarQueryParameter = {};
|
|
7399
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
7400
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7401
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7402
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
7403
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateReviewStatusRequest, localVarRequestOptions, configuration);
|
|
7404
|
+
return {
|
|
7405
|
+
url: toPathString(localVarUrlObj),
|
|
7406
|
+
options: localVarRequestOptions,
|
|
7407
|
+
};
|
|
7408
|
+
},
|
|
7238
7409
|
};
|
|
7239
7410
|
};
|
|
7240
7411
|
/**
|
|
@@ -7282,6 +7453,18 @@ export const OrderApiFp = function (configuration) {
|
|
|
7282
7453
|
const localVarOperationServerBasePath = operationServerMap['OrderApi.createReturnAdmin']?.[localVarOperationServerIndex]?.url;
|
|
7283
7454
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7284
7455
|
},
|
|
7456
|
+
/**
|
|
7457
|
+
*
|
|
7458
|
+
* @param {IOrderReviewPostRequest} iOrderReviewPostRequest
|
|
7459
|
+
* @param {*} [options] Override http request option.
|
|
7460
|
+
* @throws {RequiredError}
|
|
7461
|
+
*/
|
|
7462
|
+
async createReview(iOrderReviewPostRequest, options) {
|
|
7463
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createReview(iOrderReviewPostRequest, options);
|
|
7464
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
7465
|
+
const localVarOperationServerBasePath = operationServerMap['OrderApi.createReview']?.[localVarOperationServerIndex]?.url;
|
|
7466
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7467
|
+
},
|
|
7285
7468
|
/**
|
|
7286
7469
|
*
|
|
7287
7470
|
* @param {number} [page]
|
|
@@ -7363,6 +7546,32 @@ export const OrderApiFp = function (configuration) {
|
|
|
7363
7546
|
const localVarOperationServerBasePath = operationServerMap['OrderApi.updateReturn']?.[localVarOperationServerIndex]?.url;
|
|
7364
7547
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7365
7548
|
},
|
|
7549
|
+
/**
|
|
7550
|
+
*
|
|
7551
|
+
* @param {string} id
|
|
7552
|
+
* @param {IReviewPatchRequest} iReviewPatchRequest
|
|
7553
|
+
* @param {*} [options] Override http request option.
|
|
7554
|
+
* @throws {RequiredError}
|
|
7555
|
+
*/
|
|
7556
|
+
async updateReview(id, iReviewPatchRequest, options) {
|
|
7557
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateReview(id, iReviewPatchRequest, options);
|
|
7558
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
7559
|
+
const localVarOperationServerBasePath = operationServerMap['OrderApi.updateReview']?.[localVarOperationServerIndex]?.url;
|
|
7560
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7561
|
+
},
|
|
7562
|
+
/**
|
|
7563
|
+
*
|
|
7564
|
+
* @param {string} id
|
|
7565
|
+
* @param {UpdateReviewStatusRequest} updateReviewStatusRequest
|
|
7566
|
+
* @param {*} [options] Override http request option.
|
|
7567
|
+
* @throws {RequiredError}
|
|
7568
|
+
*/
|
|
7569
|
+
async updateReviewStatus(id, updateReviewStatusRequest, options) {
|
|
7570
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateReviewStatus(id, updateReviewStatusRequest, options);
|
|
7571
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
7572
|
+
const localVarOperationServerBasePath = operationServerMap['OrderApi.updateReviewStatus']?.[localVarOperationServerIndex]?.url;
|
|
7573
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7574
|
+
},
|
|
7366
7575
|
};
|
|
7367
7576
|
};
|
|
7368
7577
|
/**
|
|
@@ -7399,6 +7608,15 @@ export const OrderApiFactory = function (configuration, basePath, axios) {
|
|
|
7399
7608
|
createReturnAdmin(requestParameters, options) {
|
|
7400
7609
|
return localVarFp.createReturnAdmin(requestParameters.id, requestParameters.iOrderReturnAdminPostRequest, options).then((request) => request(axios, basePath));
|
|
7401
7610
|
},
|
|
7611
|
+
/**
|
|
7612
|
+
*
|
|
7613
|
+
* @param {OrderApiCreateReviewRequest} requestParameters Request parameters.
|
|
7614
|
+
* @param {*} [options] Override http request option.
|
|
7615
|
+
* @throws {RequiredError}
|
|
7616
|
+
*/
|
|
7617
|
+
createReview(requestParameters, options) {
|
|
7618
|
+
return localVarFp.createReview(requestParameters.iOrderReviewPostRequest, options).then((request) => request(axios, basePath));
|
|
7619
|
+
},
|
|
7402
7620
|
/**
|
|
7403
7621
|
*
|
|
7404
7622
|
* @param {OrderApiGetMyOrdersRequest} requestParameters Request parameters.
|
|
@@ -7444,6 +7662,24 @@ export const OrderApiFactory = function (configuration, basePath, axios) {
|
|
|
7444
7662
|
updateReturn(requestParameters, options) {
|
|
7445
7663
|
return localVarFp.updateReturn(requestParameters.orderId, requestParameters.returnId, requestParameters.iOrderReturnUpdatePatchRequest, options).then((request) => request(axios, basePath));
|
|
7446
7664
|
},
|
|
7665
|
+
/**
|
|
7666
|
+
*
|
|
7667
|
+
* @param {OrderApiUpdateReviewRequest} requestParameters Request parameters.
|
|
7668
|
+
* @param {*} [options] Override http request option.
|
|
7669
|
+
* @throws {RequiredError}
|
|
7670
|
+
*/
|
|
7671
|
+
updateReview(requestParameters, options) {
|
|
7672
|
+
return localVarFp.updateReview(requestParameters.id, requestParameters.iReviewPatchRequest, options).then((request) => request(axios, basePath));
|
|
7673
|
+
},
|
|
7674
|
+
/**
|
|
7675
|
+
*
|
|
7676
|
+
* @param {OrderApiUpdateReviewStatusRequest} requestParameters Request parameters.
|
|
7677
|
+
* @param {*} [options] Override http request option.
|
|
7678
|
+
* @throws {RequiredError}
|
|
7679
|
+
*/
|
|
7680
|
+
updateReviewStatus(requestParameters, options) {
|
|
7681
|
+
return localVarFp.updateReviewStatus(requestParameters.id, requestParameters.updateReviewStatusRequest, options).then((request) => request(axios, basePath));
|
|
7682
|
+
},
|
|
7447
7683
|
};
|
|
7448
7684
|
};
|
|
7449
7685
|
/**
|
|
@@ -7483,6 +7719,16 @@ export class OrderApi extends BaseAPI {
|
|
|
7483
7719
|
createReturnAdmin(requestParameters, options) {
|
|
7484
7720
|
return OrderApiFp(this.configuration).createReturnAdmin(requestParameters.id, requestParameters.iOrderReturnAdminPostRequest, options).then((request) => request(this.axios, this.basePath));
|
|
7485
7721
|
}
|
|
7722
|
+
/**
|
|
7723
|
+
*
|
|
7724
|
+
* @param {OrderApiCreateReviewRequest} requestParameters Request parameters.
|
|
7725
|
+
* @param {*} [options] Override http request option.
|
|
7726
|
+
* @throws {RequiredError}
|
|
7727
|
+
* @memberof OrderApi
|
|
7728
|
+
*/
|
|
7729
|
+
createReview(requestParameters, options) {
|
|
7730
|
+
return OrderApiFp(this.configuration).createReview(requestParameters.iOrderReviewPostRequest, options).then((request) => request(this.axios, this.basePath));
|
|
7731
|
+
}
|
|
7486
7732
|
/**
|
|
7487
7733
|
*
|
|
7488
7734
|
* @param {OrderApiGetMyOrdersRequest} requestParameters Request parameters.
|
|
@@ -7533,6 +7779,26 @@ export class OrderApi extends BaseAPI {
|
|
|
7533
7779
|
updateReturn(requestParameters, options) {
|
|
7534
7780
|
return OrderApiFp(this.configuration).updateReturn(requestParameters.orderId, requestParameters.returnId, requestParameters.iOrderReturnUpdatePatchRequest, options).then((request) => request(this.axios, this.basePath));
|
|
7535
7781
|
}
|
|
7782
|
+
/**
|
|
7783
|
+
*
|
|
7784
|
+
* @param {OrderApiUpdateReviewRequest} requestParameters Request parameters.
|
|
7785
|
+
* @param {*} [options] Override http request option.
|
|
7786
|
+
* @throws {RequiredError}
|
|
7787
|
+
* @memberof OrderApi
|
|
7788
|
+
*/
|
|
7789
|
+
updateReview(requestParameters, options) {
|
|
7790
|
+
return OrderApiFp(this.configuration).updateReview(requestParameters.id, requestParameters.iReviewPatchRequest, options).then((request) => request(this.axios, this.basePath));
|
|
7791
|
+
}
|
|
7792
|
+
/**
|
|
7793
|
+
*
|
|
7794
|
+
* @param {OrderApiUpdateReviewStatusRequest} requestParameters Request parameters.
|
|
7795
|
+
* @param {*} [options] Override http request option.
|
|
7796
|
+
* @throws {RequiredError}
|
|
7797
|
+
* @memberof OrderApi
|
|
7798
|
+
*/
|
|
7799
|
+
updateReviewStatus(requestParameters, options) {
|
|
7800
|
+
return OrderApiFp(this.configuration).updateReviewStatus(requestParameters.id, requestParameters.updateReviewStatusRequest, options).then((request) => request(this.axios, this.basePath));
|
|
7801
|
+
}
|
|
7536
7802
|
}
|
|
7537
7803
|
/**
|
|
7538
7804
|
* @export
|
|
@@ -7721,7 +7987,7 @@ export const PageApiAxiosParamCreator = function (configuration) {
|
|
|
7721
7987
|
},
|
|
7722
7988
|
/**
|
|
7723
7989
|
*
|
|
7724
|
-
* @param {
|
|
7990
|
+
* @param {PageTypeEnum} type
|
|
7725
7991
|
* @param {string} [companyId]
|
|
7726
7992
|
* @param {string} [domain]
|
|
7727
7993
|
* @param {string} [template]
|
|
@@ -7975,7 +8241,7 @@ export const PageApiFp = function (configuration) {
|
|
|
7975
8241
|
},
|
|
7976
8242
|
/**
|
|
7977
8243
|
*
|
|
7978
|
-
* @param {
|
|
8244
|
+
* @param {PageTypeEnum} type
|
|
7979
8245
|
* @param {string} [companyId]
|
|
7980
8246
|
* @param {string} [domain]
|
|
7981
8247
|
* @param {string} [template]
|
|
@@ -8828,6 +9094,38 @@ export const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
8828
9094
|
options: localVarRequestOptions,
|
|
8829
9095
|
};
|
|
8830
9096
|
},
|
|
9097
|
+
/**
|
|
9098
|
+
*
|
|
9099
|
+
* @param {string} id
|
|
9100
|
+
* @param {number} [rating]
|
|
9101
|
+
* @param {*} [options] Override http request option.
|
|
9102
|
+
* @throws {RequiredError}
|
|
9103
|
+
*/
|
|
9104
|
+
getProductReviews: async (id, rating, options = {}) => {
|
|
9105
|
+
// verify required parameter 'id' is not null or undefined
|
|
9106
|
+
assertParamExists('getProductReviews', 'id', id);
|
|
9107
|
+
const localVarPath = `/api/products/{id}/reviews`
|
|
9108
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
9109
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9110
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
9111
|
+
let baseOptions;
|
|
9112
|
+
if (configuration) {
|
|
9113
|
+
baseOptions = configuration.baseOptions;
|
|
9114
|
+
}
|
|
9115
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
9116
|
+
const localVarHeaderParameter = {};
|
|
9117
|
+
const localVarQueryParameter = {};
|
|
9118
|
+
if (rating !== undefined) {
|
|
9119
|
+
localVarQueryParameter['rating'] = rating;
|
|
9120
|
+
}
|
|
9121
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9122
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9123
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
9124
|
+
return {
|
|
9125
|
+
url: toPathString(localVarUrlObj),
|
|
9126
|
+
options: localVarRequestOptions,
|
|
9127
|
+
};
|
|
9128
|
+
},
|
|
8831
9129
|
/**
|
|
8832
9130
|
*
|
|
8833
9131
|
* @param {number} [page]
|
|
@@ -8846,14 +9144,12 @@ export const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
8846
9144
|
* @param {number} [priceGte]
|
|
8847
9145
|
* @param {number} [priceLte]
|
|
8848
9146
|
* @param {boolean} [autoComplete]
|
|
8849
|
-
* @param {Array<string>} [mainVariant]
|
|
8850
|
-
* @param {Array<string>} [subVariant]
|
|
8851
9147
|
* @param {GetProductsSortEnum} [sort]
|
|
8852
9148
|
* @param {ContentStatusEnum} [status]
|
|
8853
9149
|
* @param {*} [options] Override http request option.
|
|
8854
9150
|
* @throws {RequiredError}
|
|
8855
9151
|
*/
|
|
8856
|
-
getProducts: async (page, itemsPerPage, search, startDate, endDate, dateField, order, companyId, domain, collections, category, brand, inStock, priceGte, priceLte, autoComplete,
|
|
9152
|
+
getProducts: async (page, itemsPerPage, search, startDate, endDate, dateField, order, companyId, domain, collections, category, brand, inStock, priceGte, priceLte, autoComplete, sort, status, options = {}) => {
|
|
8857
9153
|
const localVarPath = `/api/products`;
|
|
8858
9154
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8859
9155
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -8916,12 +9212,6 @@ export const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
8916
9212
|
if (autoComplete !== undefined) {
|
|
8917
9213
|
localVarQueryParameter['autoComplete'] = autoComplete;
|
|
8918
9214
|
}
|
|
8919
|
-
if (mainVariant) {
|
|
8920
|
-
localVarQueryParameter['mainVariant'] = mainVariant;
|
|
8921
|
-
}
|
|
8922
|
-
if (subVariant) {
|
|
8923
|
-
localVarQueryParameter['subVariant'] = subVariant;
|
|
8924
|
-
}
|
|
8925
9215
|
if (sort !== undefined) {
|
|
8926
9216
|
localVarQueryParameter['sort'] = sort;
|
|
8927
9217
|
}
|
|
@@ -9056,6 +9346,19 @@ export const ProductApiFp = function (configuration) {
|
|
|
9056
9346
|
const localVarOperationServerBasePath = operationServerMap['ProductApi.getProductBySlug']?.[localVarOperationServerIndex]?.url;
|
|
9057
9347
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9058
9348
|
},
|
|
9349
|
+
/**
|
|
9350
|
+
*
|
|
9351
|
+
* @param {string} id
|
|
9352
|
+
* @param {number} [rating]
|
|
9353
|
+
* @param {*} [options] Override http request option.
|
|
9354
|
+
* @throws {RequiredError}
|
|
9355
|
+
*/
|
|
9356
|
+
async getProductReviews(id, rating, options) {
|
|
9357
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getProductReviews(id, rating, options);
|
|
9358
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
9359
|
+
const localVarOperationServerBasePath = operationServerMap['ProductApi.getProductReviews']?.[localVarOperationServerIndex]?.url;
|
|
9360
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9361
|
+
},
|
|
9059
9362
|
/**
|
|
9060
9363
|
*
|
|
9061
9364
|
* @param {number} [page]
|
|
@@ -9074,15 +9377,13 @@ export const ProductApiFp = function (configuration) {
|
|
|
9074
9377
|
* @param {number} [priceGte]
|
|
9075
9378
|
* @param {number} [priceLte]
|
|
9076
9379
|
* @param {boolean} [autoComplete]
|
|
9077
|
-
* @param {Array<string>} [mainVariant]
|
|
9078
|
-
* @param {Array<string>} [subVariant]
|
|
9079
9380
|
* @param {GetProductsSortEnum} [sort]
|
|
9080
9381
|
* @param {ContentStatusEnum} [status]
|
|
9081
9382
|
* @param {*} [options] Override http request option.
|
|
9082
9383
|
* @throws {RequiredError}
|
|
9083
9384
|
*/
|
|
9084
|
-
async getProducts(page, itemsPerPage, search, startDate, endDate, dateField, order, companyId, domain, collections, category, brand, inStock, priceGte, priceLte, autoComplete,
|
|
9085
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getProducts(page, itemsPerPage, search, startDate, endDate, dateField, order, companyId, domain, collections, category, brand, inStock, priceGte, priceLte, autoComplete,
|
|
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);
|
|
9086
9387
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
9087
9388
|
const localVarOperationServerBasePath = operationServerMap['ProductApi.getProducts']?.[localVarOperationServerIndex]?.url;
|
|
9088
9389
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -9163,6 +9464,15 @@ export const ProductApiFactory = function (configuration, basePath, axios) {
|
|
|
9163
9464
|
getProductBySlug(requestParameters, options) {
|
|
9164
9465
|
return localVarFp.getProductBySlug(requestParameters.slug, requestParameters.companyId, requestParameters.domain, options).then((request) => request(axios, basePath));
|
|
9165
9466
|
},
|
|
9467
|
+
/**
|
|
9468
|
+
*
|
|
9469
|
+
* @param {ProductApiGetProductReviewsRequest} requestParameters Request parameters.
|
|
9470
|
+
* @param {*} [options] Override http request option.
|
|
9471
|
+
* @throws {RequiredError}
|
|
9472
|
+
*/
|
|
9473
|
+
getProductReviews(requestParameters, options) {
|
|
9474
|
+
return localVarFp.getProductReviews(requestParameters.id, requestParameters.rating, options).then((request) => request(axios, basePath));
|
|
9475
|
+
},
|
|
9166
9476
|
/**
|
|
9167
9477
|
*
|
|
9168
9478
|
* @param {ProductApiGetProductsRequest} requestParameters Request parameters.
|
|
@@ -9170,7 +9480,7 @@ export const ProductApiFactory = function (configuration, basePath, axios) {
|
|
|
9170
9480
|
* @throws {RequiredError}
|
|
9171
9481
|
*/
|
|
9172
9482
|
getProducts(requestParameters = {}, options) {
|
|
9173
|
-
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.
|
|
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));
|
|
9174
9484
|
},
|
|
9175
9485
|
/**
|
|
9176
9486
|
*
|
|
@@ -9250,6 +9560,16 @@ export class ProductApi extends BaseAPI {
|
|
|
9250
9560
|
getProductBySlug(requestParameters, options) {
|
|
9251
9561
|
return ProductApiFp(this.configuration).getProductBySlug(requestParameters.slug, requestParameters.companyId, requestParameters.domain, options).then((request) => request(this.axios, this.basePath));
|
|
9252
9562
|
}
|
|
9563
|
+
/**
|
|
9564
|
+
*
|
|
9565
|
+
* @param {ProductApiGetProductReviewsRequest} requestParameters Request parameters.
|
|
9566
|
+
* @param {*} [options] Override http request option.
|
|
9567
|
+
* @throws {RequiredError}
|
|
9568
|
+
* @memberof ProductApi
|
|
9569
|
+
*/
|
|
9570
|
+
getProductReviews(requestParameters, options) {
|
|
9571
|
+
return ProductApiFp(this.configuration).getProductReviews(requestParameters.id, requestParameters.rating, options).then((request) => request(this.axios, this.basePath));
|
|
9572
|
+
}
|
|
9253
9573
|
/**
|
|
9254
9574
|
*
|
|
9255
9575
|
* @param {ProductApiGetProductsRequest} requestParameters Request parameters.
|
|
@@ -9258,7 +9578,7 @@ export class ProductApi extends BaseAPI {
|
|
|
9258
9578
|
* @memberof ProductApi
|
|
9259
9579
|
*/
|
|
9260
9580
|
getProducts(requestParameters = {}, options) {
|
|
9261
|
-
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.
|
|
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));
|
|
9262
9582
|
}
|
|
9263
9583
|
/**
|
|
9264
9584
|
*
|
|
@@ -9284,7 +9604,9 @@ export const GetProductsDateFieldEnum = {
|
|
|
9284
9604
|
export const GetProductsSortEnum = {
|
|
9285
9605
|
PRICE: 'price',
|
|
9286
9606
|
CREATED_AT: 'createdAt',
|
|
9287
|
-
TOTAL_SALE: 'totalSale'
|
|
9607
|
+
TOTAL_SALE: 'totalSale',
|
|
9608
|
+
RATING: 'rating',
|
|
9609
|
+
REVIEW_COUNT: 'reviewCount'
|
|
9288
9610
|
};
|
|
9289
9611
|
/**
|
|
9290
9612
|
* SitemapApi - axios parameter creator
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@infisale-client/api",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.75",
|
|
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": "e5d78bca810a40bb61d9762322dc134c25ca6ccf"
|
|
41
41
|
}
|