@teemill/platform 0.30.5 → 0.32.0
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/README.md +15 -2
- package/api.ts +787 -85
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +489 -2
- package/dist/api.js +324 -2
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +489 -2
- package/dist/esm/api.js +319 -1
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/AmendmentLog.md +30 -0
- package/docs/BulkCreateReviewPayload.md +20 -0
- package/docs/BulkCreatedReviews.md +20 -0
- package/docs/CreateReview201Response.md +42 -0
- package/docs/CreateReviewPayload.md +34 -0
- package/docs/CreateReviewPayloadAuthor.md +22 -0
- package/docs/CreateReviewRequest.md +36 -0
- package/docs/DashboardApi.md +127 -0
- package/docs/DashboardItem.md +30 -0
- package/docs/GetDashboardResponse.md +20 -0
- package/docs/OrderItem.md +2 -0
- package/docs/ReviewsApi.md +81 -0
- package/docs/SaveDashboardRequest.md +20 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/esm/api.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Platform API
|
|
5
5
|
* Manage Your podOS platform
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.
|
|
7
|
+
* The version of the OpenAPI document: 0.32.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -30,6 +30,10 @@ export const AmendOrderRequestAmendmentsInnerActionEnum = {
|
|
|
30
30
|
Refund: 'refund',
|
|
31
31
|
Exchange: 'exchange'
|
|
32
32
|
};
|
|
33
|
+
export const AmendmentLogAmendmentTypeEnum = {
|
|
34
|
+
Refund: 'refund',
|
|
35
|
+
Exchange: 'exchange'
|
|
36
|
+
};
|
|
33
37
|
export const CustomsInformationPreRegistrationTypeEnum = {
|
|
34
38
|
Ioss: 'IOSS'
|
|
35
39
|
};
|
|
@@ -540,6 +544,202 @@ export const ListCustomersGenderEnum = {
|
|
|
540
544
|
Male: 'male',
|
|
541
545
|
Female: 'female'
|
|
542
546
|
};
|
|
547
|
+
/**
|
|
548
|
+
* DashboardApi - axios parameter creator
|
|
549
|
+
* @export
|
|
550
|
+
*/
|
|
551
|
+
export const DashboardApiAxiosParamCreator = function (configuration) {
|
|
552
|
+
return {
|
|
553
|
+
/**
|
|
554
|
+
*
|
|
555
|
+
* @summary Get the platform\'s dashboard
|
|
556
|
+
* @param {string} project Project unique identifier
|
|
557
|
+
* @param {string} platformId The platform identifier
|
|
558
|
+
* @param {*} [options] Override http request option.
|
|
559
|
+
* @throws {RequiredError}
|
|
560
|
+
*/
|
|
561
|
+
getDashboard: (project_1, platformId_1, ...args_1) => __awaiter(this, [project_1, platformId_1, ...args_1], void 0, function* (project, platformId, options = {}) {
|
|
562
|
+
// verify required parameter 'project' is not null or undefined
|
|
563
|
+
assertParamExists('getDashboard', 'project', project);
|
|
564
|
+
// verify required parameter 'platformId' is not null or undefined
|
|
565
|
+
assertParamExists('getDashboard', 'platformId', platformId);
|
|
566
|
+
const localVarPath = `/v1/platform/{platformId}/dashboard`
|
|
567
|
+
.replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)));
|
|
568
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
569
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
570
|
+
let baseOptions;
|
|
571
|
+
if (configuration) {
|
|
572
|
+
baseOptions = configuration.baseOptions;
|
|
573
|
+
}
|
|
574
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
575
|
+
const localVarHeaderParameter = {};
|
|
576
|
+
const localVarQueryParameter = {};
|
|
577
|
+
// authentication session-oauth required
|
|
578
|
+
// oauth required
|
|
579
|
+
yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
580
|
+
// authentication api-key required
|
|
581
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
582
|
+
if (project !== undefined) {
|
|
583
|
+
localVarQueryParameter['project'] = project;
|
|
584
|
+
}
|
|
585
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
586
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
587
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
588
|
+
return {
|
|
589
|
+
url: toPathString(localVarUrlObj),
|
|
590
|
+
options: localVarRequestOptions,
|
|
591
|
+
};
|
|
592
|
+
}),
|
|
593
|
+
/**
|
|
594
|
+
*
|
|
595
|
+
* @summary Save the platform\'s dashboard
|
|
596
|
+
* @param {string} project Project unique identifier
|
|
597
|
+
* @param {string} platformId The platform identifier
|
|
598
|
+
* @param {SaveDashboardRequest} saveDashboardRequest Save dashboard
|
|
599
|
+
* @param {*} [options] Override http request option.
|
|
600
|
+
* @throws {RequiredError}
|
|
601
|
+
*/
|
|
602
|
+
saveDashboard: (project_1, platformId_1, saveDashboardRequest_1, ...args_1) => __awaiter(this, [project_1, platformId_1, saveDashboardRequest_1, ...args_1], void 0, function* (project, platformId, saveDashboardRequest, options = {}) {
|
|
603
|
+
// verify required parameter 'project' is not null or undefined
|
|
604
|
+
assertParamExists('saveDashboard', 'project', project);
|
|
605
|
+
// verify required parameter 'platformId' is not null or undefined
|
|
606
|
+
assertParamExists('saveDashboard', 'platformId', platformId);
|
|
607
|
+
// verify required parameter 'saveDashboardRequest' is not null or undefined
|
|
608
|
+
assertParamExists('saveDashboard', 'saveDashboardRequest', saveDashboardRequest);
|
|
609
|
+
const localVarPath = `/v1/platform/{platformId}/dashboard`
|
|
610
|
+
.replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)));
|
|
611
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
612
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
613
|
+
let baseOptions;
|
|
614
|
+
if (configuration) {
|
|
615
|
+
baseOptions = configuration.baseOptions;
|
|
616
|
+
}
|
|
617
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
618
|
+
const localVarHeaderParameter = {};
|
|
619
|
+
const localVarQueryParameter = {};
|
|
620
|
+
// authentication session-oauth required
|
|
621
|
+
// oauth required
|
|
622
|
+
yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
623
|
+
// authentication api-key required
|
|
624
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
625
|
+
if (project !== undefined) {
|
|
626
|
+
localVarQueryParameter['project'] = project;
|
|
627
|
+
}
|
|
628
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
629
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
630
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
631
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
632
|
+
localVarRequestOptions.data = serializeDataIfNeeded(saveDashboardRequest, localVarRequestOptions, configuration);
|
|
633
|
+
return {
|
|
634
|
+
url: toPathString(localVarUrlObj),
|
|
635
|
+
options: localVarRequestOptions,
|
|
636
|
+
};
|
|
637
|
+
}),
|
|
638
|
+
};
|
|
639
|
+
};
|
|
640
|
+
/**
|
|
641
|
+
* DashboardApi - functional programming interface
|
|
642
|
+
* @export
|
|
643
|
+
*/
|
|
644
|
+
export const DashboardApiFp = function (configuration) {
|
|
645
|
+
const localVarAxiosParamCreator = DashboardApiAxiosParamCreator(configuration);
|
|
646
|
+
return {
|
|
647
|
+
/**
|
|
648
|
+
*
|
|
649
|
+
* @summary Get the platform\'s dashboard
|
|
650
|
+
* @param {string} project Project unique identifier
|
|
651
|
+
* @param {string} platformId The platform identifier
|
|
652
|
+
* @param {*} [options] Override http request option.
|
|
653
|
+
* @throws {RequiredError}
|
|
654
|
+
*/
|
|
655
|
+
getDashboard(project, platformId, options) {
|
|
656
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
657
|
+
var _a, _b, _c;
|
|
658
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getDashboard(project, platformId, options);
|
|
659
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
660
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DashboardApi.getDashboard']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
661
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
662
|
+
});
|
|
663
|
+
},
|
|
664
|
+
/**
|
|
665
|
+
*
|
|
666
|
+
* @summary Save the platform\'s dashboard
|
|
667
|
+
* @param {string} project Project unique identifier
|
|
668
|
+
* @param {string} platformId The platform identifier
|
|
669
|
+
* @param {SaveDashboardRequest} saveDashboardRequest Save dashboard
|
|
670
|
+
* @param {*} [options] Override http request option.
|
|
671
|
+
* @throws {RequiredError}
|
|
672
|
+
*/
|
|
673
|
+
saveDashboard(project, platformId, saveDashboardRequest, options) {
|
|
674
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
675
|
+
var _a, _b, _c;
|
|
676
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.saveDashboard(project, platformId, saveDashboardRequest, options);
|
|
677
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
678
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DashboardApi.saveDashboard']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
679
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
680
|
+
});
|
|
681
|
+
},
|
|
682
|
+
};
|
|
683
|
+
};
|
|
684
|
+
/**
|
|
685
|
+
* DashboardApi - factory interface
|
|
686
|
+
* @export
|
|
687
|
+
*/
|
|
688
|
+
export const DashboardApiFactory = function (configuration, basePath, axios) {
|
|
689
|
+
const localVarFp = DashboardApiFp(configuration);
|
|
690
|
+
return {
|
|
691
|
+
/**
|
|
692
|
+
*
|
|
693
|
+
* @summary Get the platform\'s dashboard
|
|
694
|
+
* @param {DashboardApiGetDashboardRequest} requestParameters Request parameters.
|
|
695
|
+
* @param {*} [options] Override http request option.
|
|
696
|
+
* @throws {RequiredError}
|
|
697
|
+
*/
|
|
698
|
+
getDashboard(requestParameters, options) {
|
|
699
|
+
return localVarFp.getDashboard(requestParameters.project, requestParameters.platformId, options).then((request) => request(axios, basePath));
|
|
700
|
+
},
|
|
701
|
+
/**
|
|
702
|
+
*
|
|
703
|
+
* @summary Save the platform\'s dashboard
|
|
704
|
+
* @param {DashboardApiSaveDashboardRequest} requestParameters Request parameters.
|
|
705
|
+
* @param {*} [options] Override http request option.
|
|
706
|
+
* @throws {RequiredError}
|
|
707
|
+
*/
|
|
708
|
+
saveDashboard(requestParameters, options) {
|
|
709
|
+
return localVarFp.saveDashboard(requestParameters.project, requestParameters.platformId, requestParameters.saveDashboardRequest, options).then((request) => request(axios, basePath));
|
|
710
|
+
},
|
|
711
|
+
};
|
|
712
|
+
};
|
|
713
|
+
/**
|
|
714
|
+
* DashboardApi - object-oriented interface
|
|
715
|
+
* @export
|
|
716
|
+
* @class DashboardApi
|
|
717
|
+
* @extends {BaseAPI}
|
|
718
|
+
*/
|
|
719
|
+
export class DashboardApi extends BaseAPI {
|
|
720
|
+
/**
|
|
721
|
+
*
|
|
722
|
+
* @summary Get the platform\'s dashboard
|
|
723
|
+
* @param {DashboardApiGetDashboardRequest} requestParameters Request parameters.
|
|
724
|
+
* @param {*} [options] Override http request option.
|
|
725
|
+
* @throws {RequiredError}
|
|
726
|
+
* @memberof DashboardApi
|
|
727
|
+
*/
|
|
728
|
+
getDashboard(requestParameters, options) {
|
|
729
|
+
return DashboardApiFp(this.configuration).getDashboard(requestParameters.project, requestParameters.platformId, options).then((request) => request(this.axios, this.basePath));
|
|
730
|
+
}
|
|
731
|
+
/**
|
|
732
|
+
*
|
|
733
|
+
* @summary Save the platform\'s dashboard
|
|
734
|
+
* @param {DashboardApiSaveDashboardRequest} requestParameters Request parameters.
|
|
735
|
+
* @param {*} [options] Override http request option.
|
|
736
|
+
* @throws {RequiredError}
|
|
737
|
+
* @memberof DashboardApi
|
|
738
|
+
*/
|
|
739
|
+
saveDashboard(requestParameters, options) {
|
|
740
|
+
return DashboardApiFp(this.configuration).saveDashboard(requestParameters.project, requestParameters.platformId, requestParameters.saveDashboardRequest, options).then((request) => request(this.axios, this.basePath));
|
|
741
|
+
}
|
|
742
|
+
}
|
|
543
743
|
/**
|
|
544
744
|
* EnquiriesApi - axios parameter creator
|
|
545
745
|
* @export
|
|
@@ -3121,6 +3321,79 @@ export class PlatformApi extends BaseAPI {
|
|
|
3121
3321
|
*/
|
|
3122
3322
|
export const ReviewsApiAxiosParamCreator = function (configuration) {
|
|
3123
3323
|
return {
|
|
3324
|
+
/**
|
|
3325
|
+
*
|
|
3326
|
+
* @summary Create a review
|
|
3327
|
+
* @param {string} project Project unique identifier
|
|
3328
|
+
* @param {string} platformId The platform identifier
|
|
3329
|
+
* @param {CreateReviewRequest} createReviewRequest
|
|
3330
|
+
* @param {number} [pageToken] Page reference token
|
|
3331
|
+
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
3332
|
+
* @param {string} [search] Search term to filter results
|
|
3333
|
+
* @param {Array<string>} [sortBy] An array of fields to sort by, prefixed with a \'-\' for descending order or \'+\' for ascending. Default is ascending.
|
|
3334
|
+
* @param {string} [start] Start of date range to filter by
|
|
3335
|
+
* @param {string} [end] End of date range to filter by
|
|
3336
|
+
* @param {*} [options] Override http request option.
|
|
3337
|
+
* @throws {RequiredError}
|
|
3338
|
+
*/
|
|
3339
|
+
createReview: (project_1, platformId_1, createReviewRequest_1, pageToken_1, pageSize_1, search_1, sortBy_1, start_1, end_1, ...args_1) => __awaiter(this, [project_1, platformId_1, createReviewRequest_1, pageToken_1, pageSize_1, search_1, sortBy_1, start_1, end_1, ...args_1], void 0, function* (project, platformId, createReviewRequest, pageToken, pageSize, search, sortBy, start, end, options = {}) {
|
|
3340
|
+
// verify required parameter 'project' is not null or undefined
|
|
3341
|
+
assertParamExists('createReview', 'project', project);
|
|
3342
|
+
// verify required parameter 'platformId' is not null or undefined
|
|
3343
|
+
assertParamExists('createReview', 'platformId', platformId);
|
|
3344
|
+
// verify required parameter 'createReviewRequest' is not null or undefined
|
|
3345
|
+
assertParamExists('createReview', 'createReviewRequest', createReviewRequest);
|
|
3346
|
+
const localVarPath = `/v1/platform/{platformId}/reviews`
|
|
3347
|
+
.replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)));
|
|
3348
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3349
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3350
|
+
let baseOptions;
|
|
3351
|
+
if (configuration) {
|
|
3352
|
+
baseOptions = configuration.baseOptions;
|
|
3353
|
+
}
|
|
3354
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
3355
|
+
const localVarHeaderParameter = {};
|
|
3356
|
+
const localVarQueryParameter = {};
|
|
3357
|
+
// authentication session-oauth required
|
|
3358
|
+
// oauth required
|
|
3359
|
+
yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
3360
|
+
// authentication api-key required
|
|
3361
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
3362
|
+
if (project !== undefined) {
|
|
3363
|
+
localVarQueryParameter['project'] = project;
|
|
3364
|
+
}
|
|
3365
|
+
if (pageToken !== undefined) {
|
|
3366
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
3367
|
+
}
|
|
3368
|
+
if (pageSize !== undefined) {
|
|
3369
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
3370
|
+
}
|
|
3371
|
+
if (search !== undefined) {
|
|
3372
|
+
localVarQueryParameter['search'] = search;
|
|
3373
|
+
}
|
|
3374
|
+
if (sortBy) {
|
|
3375
|
+
localVarQueryParameter['sortBy'] = sortBy;
|
|
3376
|
+
}
|
|
3377
|
+
if (start !== undefined) {
|
|
3378
|
+
localVarQueryParameter['start'] = (start instanceof Date) ?
|
|
3379
|
+
start.toISOString() :
|
|
3380
|
+
start;
|
|
3381
|
+
}
|
|
3382
|
+
if (end !== undefined) {
|
|
3383
|
+
localVarQueryParameter['end'] = (end instanceof Date) ?
|
|
3384
|
+
end.toISOString() :
|
|
3385
|
+
end;
|
|
3386
|
+
}
|
|
3387
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3388
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3389
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3390
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3391
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createReviewRequest, localVarRequestOptions, configuration);
|
|
3392
|
+
return {
|
|
3393
|
+
url: toPathString(localVarUrlObj),
|
|
3394
|
+
options: localVarRequestOptions,
|
|
3395
|
+
};
|
|
3396
|
+
}),
|
|
3124
3397
|
/**
|
|
3125
3398
|
* Export reviews as a CSV file.
|
|
3126
3399
|
* @summary Export reviews
|
|
@@ -3343,6 +3616,30 @@ export const ReviewsApiAxiosParamCreator = function (configuration) {
|
|
|
3343
3616
|
export const ReviewsApiFp = function (configuration) {
|
|
3344
3617
|
const localVarAxiosParamCreator = ReviewsApiAxiosParamCreator(configuration);
|
|
3345
3618
|
return {
|
|
3619
|
+
/**
|
|
3620
|
+
*
|
|
3621
|
+
* @summary Create a review
|
|
3622
|
+
* @param {string} project Project unique identifier
|
|
3623
|
+
* @param {string} platformId The platform identifier
|
|
3624
|
+
* @param {CreateReviewRequest} createReviewRequest
|
|
3625
|
+
* @param {number} [pageToken] Page reference token
|
|
3626
|
+
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
3627
|
+
* @param {string} [search] Search term to filter results
|
|
3628
|
+
* @param {Array<string>} [sortBy] An array of fields to sort by, prefixed with a \'-\' for descending order or \'+\' for ascending. Default is ascending.
|
|
3629
|
+
* @param {string} [start] Start of date range to filter by
|
|
3630
|
+
* @param {string} [end] End of date range to filter by
|
|
3631
|
+
* @param {*} [options] Override http request option.
|
|
3632
|
+
* @throws {RequiredError}
|
|
3633
|
+
*/
|
|
3634
|
+
createReview(project, platformId, createReviewRequest, pageToken, pageSize, search, sortBy, start, end, options) {
|
|
3635
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3636
|
+
var _a, _b, _c;
|
|
3637
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createReview(project, platformId, createReviewRequest, pageToken, pageSize, search, sortBy, start, end, options);
|
|
3638
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3639
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ReviewsApi.createReview']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3640
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3641
|
+
});
|
|
3642
|
+
},
|
|
3346
3643
|
/**
|
|
3347
3644
|
* Export reviews as a CSV file.
|
|
3348
3645
|
* @summary Export reviews
|
|
@@ -3431,6 +3728,16 @@ export const ReviewsApiFp = function (configuration) {
|
|
|
3431
3728
|
export const ReviewsApiFactory = function (configuration, basePath, axios) {
|
|
3432
3729
|
const localVarFp = ReviewsApiFp(configuration);
|
|
3433
3730
|
return {
|
|
3731
|
+
/**
|
|
3732
|
+
*
|
|
3733
|
+
* @summary Create a review
|
|
3734
|
+
* @param {ReviewsApiCreateReviewRequest} requestParameters Request parameters.
|
|
3735
|
+
* @param {*} [options] Override http request option.
|
|
3736
|
+
* @throws {RequiredError}
|
|
3737
|
+
*/
|
|
3738
|
+
createReview(requestParameters, options) {
|
|
3739
|
+
return localVarFp.createReview(requestParameters.project, requestParameters.platformId, requestParameters.createReviewRequest, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.sortBy, requestParameters.start, requestParameters.end, options).then((request) => request(axios, basePath));
|
|
3740
|
+
},
|
|
3434
3741
|
/**
|
|
3435
3742
|
* Export reviews as a CSV file.
|
|
3436
3743
|
* @summary Export reviews
|
|
@@ -3480,6 +3787,17 @@ export const ReviewsApiFactory = function (configuration, basePath, axios) {
|
|
|
3480
3787
|
* @extends {BaseAPI}
|
|
3481
3788
|
*/
|
|
3482
3789
|
export class ReviewsApi extends BaseAPI {
|
|
3790
|
+
/**
|
|
3791
|
+
*
|
|
3792
|
+
* @summary Create a review
|
|
3793
|
+
* @param {ReviewsApiCreateReviewRequest} requestParameters Request parameters.
|
|
3794
|
+
* @param {*} [options] Override http request option.
|
|
3795
|
+
* @throws {RequiredError}
|
|
3796
|
+
* @memberof ReviewsApi
|
|
3797
|
+
*/
|
|
3798
|
+
createReview(requestParameters, options) {
|
|
3799
|
+
return ReviewsApiFp(this.configuration).createReview(requestParameters.project, requestParameters.platformId, requestParameters.createReviewRequest, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.sortBy, requestParameters.start, requestParameters.end, options).then((request) => request(this.axios, this.basePath));
|
|
3800
|
+
}
|
|
3483
3801
|
/**
|
|
3484
3802
|
* Export reviews as a CSV file.
|
|
3485
3803
|
* @summary Export reviews
|
package/dist/esm/base.d.ts
CHANGED
package/dist/esm/base.js
CHANGED
package/dist/esm/common.d.ts
CHANGED
package/dist/esm/common.js
CHANGED
package/dist/esm/index.d.ts
CHANGED
package/dist/esm/index.js
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# AmendmentLog
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **string** | Unique object identifier | [default to undefined]
|
|
9
|
+
**orderItemId** | **string** | A reference to the order item that was amended. | [default to undefined]
|
|
10
|
+
**originalOrderItemId** | **string** | A reference to the top level order item that was amended, useful for finding the original item within a chain of exchanges, for example. | [default to undefined]
|
|
11
|
+
**amendmentType** | **string** | | [default to undefined]
|
|
12
|
+
**quantity** | **number** | | [default to undefined]
|
|
13
|
+
**createdAt** | **string** | ISO 8601 Timestamp | [default to undefined]
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import { AmendmentLog } from '@teemill/platform';
|
|
19
|
+
|
|
20
|
+
const instance: AmendmentLog = {
|
|
21
|
+
id,
|
|
22
|
+
orderItemId,
|
|
23
|
+
originalOrderItemId,
|
|
24
|
+
amendmentType,
|
|
25
|
+
quantity,
|
|
26
|
+
createdAt,
|
|
27
|
+
};
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# BulkCreateReviewPayload
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**reviews** | [**Array<CreateReviewPayload>**](CreateReviewPayload.md) | | [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { BulkCreateReviewPayload } from '@teemill/platform';
|
|
14
|
+
|
|
15
|
+
const instance: BulkCreateReviewPayload = {
|
|
16
|
+
reviews,
|
|
17
|
+
};
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# BulkCreatedReviews
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**reviews** | [**Array<Review>**](Review.md) | | [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { BulkCreatedReviews } from '@teemill/platform';
|
|
14
|
+
|
|
15
|
+
const instance: BulkCreatedReviews = {
|
|
16
|
+
reviews,
|
|
17
|
+
};
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# CreateReview201Response
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **string** | Unique object identifier | [default to undefined]
|
|
9
|
+
**text** | **string** | Text content of the review | [default to undefined]
|
|
10
|
+
**product** | [**ReviewProduct**](ReviewProduct.md) | | [optional] [default to undefined]
|
|
11
|
+
**author** | [**ReviewAuthor**](ReviewAuthor.md) | | [optional] [default to undefined]
|
|
12
|
+
**rating** | **number** | Rating of the review | [optional] [default to undefined]
|
|
13
|
+
**sentiment** | **number** | Google\'s sentiment analysis score | [optional] [default to undefined]
|
|
14
|
+
**enabled** | **boolean** | Whether the review has been approved or not. If the review is not enabled, it will not be visible to the public. | [default to undefined]
|
|
15
|
+
**createdAt** | **string** | | [optional] [default to undefined]
|
|
16
|
+
**project** | [**Project**](Project.md) | | [default to undefined]
|
|
17
|
+
**images** | [**Array<ReviewImagesInner>**](ReviewImagesInner.md) | | [optional] [default to undefined]
|
|
18
|
+
**replies** | [**Array<ReviewReply>**](ReviewReply.md) | | [optional] [default to undefined]
|
|
19
|
+
**reviews** | [**Array<Review>**](Review.md) | | [default to undefined]
|
|
20
|
+
|
|
21
|
+
## Example
|
|
22
|
+
|
|
23
|
+
```typescript
|
|
24
|
+
import { CreateReview201Response } from '@teemill/platform';
|
|
25
|
+
|
|
26
|
+
const instance: CreateReview201Response = {
|
|
27
|
+
id,
|
|
28
|
+
text,
|
|
29
|
+
product,
|
|
30
|
+
author,
|
|
31
|
+
rating,
|
|
32
|
+
sentiment,
|
|
33
|
+
enabled,
|
|
34
|
+
createdAt,
|
|
35
|
+
project,
|
|
36
|
+
images,
|
|
37
|
+
replies,
|
|
38
|
+
reviews,
|
|
39
|
+
};
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# CreateReviewPayload
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**author** | [**CreateReviewPayloadAuthor**](CreateReviewPayloadAuthor.md) | | [default to undefined]
|
|
9
|
+
**title** | **string** | The title of the review | [optional] [default to undefined]
|
|
10
|
+
**text** | **string** | The text of the review | [default to undefined]
|
|
11
|
+
**productRef** | **string** | A reference to the product being ordered | [default to undefined]
|
|
12
|
+
**rating** | **number** | The rating of the review | [default to undefined]
|
|
13
|
+
**images** | [**Array<Image>**](Image.md) | | [optional] [default to undefined]
|
|
14
|
+
**enabled** | **boolean** | Whether the review has been approved or not. If the review is not enabled, it will not be visible to the public. | [default to false]
|
|
15
|
+
**projectRef** | **string** | A reference to the project being ordered | [default to undefined]
|
|
16
|
+
|
|
17
|
+
## Example
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import { CreateReviewPayload } from '@teemill/platform';
|
|
21
|
+
|
|
22
|
+
const instance: CreateReviewPayload = {
|
|
23
|
+
author,
|
|
24
|
+
title,
|
|
25
|
+
text,
|
|
26
|
+
productRef,
|
|
27
|
+
rating,
|
|
28
|
+
images,
|
|
29
|
+
enabled,
|
|
30
|
+
projectRef,
|
|
31
|
+
};
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# CreateReviewPayloadAuthor
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**name** | **string** | The name of the author | [optional] [default to undefined]
|
|
9
|
+
**email** | **string** | The email of the author | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { CreateReviewPayloadAuthor } from '@teemill/platform';
|
|
15
|
+
|
|
16
|
+
const instance: CreateReviewPayloadAuthor = {
|
|
17
|
+
name,
|
|
18
|
+
email,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|