@teemill/platform 0.19.0 → 0.21.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 +17 -2
- package/api.ts +1069 -53
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +689 -1
- package/dist/api.js +518 -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 +689 -1
- package/dist/esm/api.js +509 -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/Client.md +24 -0
- package/docs/EnquiriesApi.md +204 -0
- package/docs/Enquiry.md +42 -0
- package/docs/EnquiryExtraInputsInner.md +24 -0
- package/docs/EnquiryExtraInputsInnerValue.md +18 -0
- package/docs/ListCustomerEnquiries200Response.md +22 -0
- package/docs/ListCustomerEnquiryLogs200Response.md +20 -0
- package/docs/ListCustomerEnquiryLogs200ResponseLogsInner.md +22 -0
- package/docs/ListCustomerEnquiryLogs200ResponseLogsInnerCustomer.md +28 -0
- package/docs/SaveTermsRequest.md +24 -0
- package/docs/Terms.md +32 -0
- package/docs/TermsApi.md +127 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/api.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Platform API
|
|
6
6
|
* Manage Your podOS platform
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 0.
|
|
8
|
+
* The version of the OpenAPI document: 0.21.0
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -22,13 +22,18 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.ReviewsApi = exports.ReviewsApiFactory = exports.ReviewsApiFp = exports.ReviewsApiAxiosParamCreator = exports.PlatformApi = exports.PlatformApiFactory = exports.PlatformApiFp = exports.PlatformApiAxiosParamCreator = exports.PaymentApi = exports.PaymentApiFactory = exports.PaymentApiFp = exports.PaymentApiAxiosParamCreator = exports.ListOrdersDateFilterTypeEnum = exports.OrdersApi = exports.OrdersApiFactory = exports.OrdersApiFp = exports.OrdersApiAxiosParamCreator = exports.ListCustomersSortByEnum = exports.ExportCustomersSortByEnum = exports.CustomersApi = exports.CustomersApiFactory = exports.CustomersApiFp = exports.CustomersApiAxiosParamCreator = exports.PaymentAttemptStatusEnum = exports.PaymentAttemptPaymentProviderEnum = exports.PaymentAccountMethodEnum = exports.OrderStatus = void 0;
|
|
25
|
+
exports.TermsApi = exports.TermsApiFactory = exports.TermsApiFp = exports.TermsApiAxiosParamCreator = exports.ReviewsApi = exports.ReviewsApiFactory = exports.ReviewsApiFp = exports.ReviewsApiAxiosParamCreator = exports.PlatformApi = exports.PlatformApiFactory = exports.PlatformApiFp = exports.PlatformApiAxiosParamCreator = exports.PaymentApi = exports.PaymentApiFactory = exports.PaymentApiFp = exports.PaymentApiAxiosParamCreator = exports.ListOrdersDateFilterTypeEnum = exports.OrdersApi = exports.OrdersApiFactory = exports.OrdersApiFp = exports.OrdersApiAxiosParamCreator = exports.EnquiriesApi = exports.EnquiriesApiFactory = exports.EnquiriesApiFp = exports.EnquiriesApiAxiosParamCreator = exports.ListCustomersSortByEnum = exports.ExportCustomersSortByEnum = exports.CustomersApi = exports.CustomersApiFactory = exports.CustomersApiFp = exports.CustomersApiAxiosParamCreator = exports.PaymentAttemptStatusEnum = exports.PaymentAttemptPaymentProviderEnum = exports.PaymentAccountMethodEnum = exports.OrderStatus = exports.EnquiryStatusEnum = void 0;
|
|
26
26
|
const axios_1 = require("axios");
|
|
27
27
|
// Some imports not used depending on template conditions
|
|
28
28
|
// @ts-ignore
|
|
29
29
|
const common_1 = require("./common");
|
|
30
30
|
// @ts-ignore
|
|
31
31
|
const base_1 = require("./base");
|
|
32
|
+
exports.EnquiryStatusEnum = {
|
|
33
|
+
New: 'New',
|
|
34
|
+
Archived: 'Archived',
|
|
35
|
+
Priority: 'Priority'
|
|
36
|
+
};
|
|
32
37
|
/**
|
|
33
38
|
*
|
|
34
39
|
* @export
|
|
@@ -423,6 +428,317 @@ exports.ListCustomersSortByEnum = {
|
|
|
423
428
|
LastPurchased: '+lastPurchased',
|
|
424
429
|
LastPurchased2: '-lastPurchased'
|
|
425
430
|
};
|
|
431
|
+
/**
|
|
432
|
+
* EnquiriesApi - axios parameter creator
|
|
433
|
+
* @export
|
|
434
|
+
*/
|
|
435
|
+
const EnquiriesApiAxiosParamCreator = function (configuration) {
|
|
436
|
+
return {
|
|
437
|
+
/**
|
|
438
|
+
* Get a customer enquiry
|
|
439
|
+
* @summary Get customer enquiry
|
|
440
|
+
* @param {string} project Project unique identifier
|
|
441
|
+
* @param {string} platformId The platform identifier
|
|
442
|
+
* @param {string} enquiryId
|
|
443
|
+
* @param {*} [options] Override http request option.
|
|
444
|
+
* @throws {RequiredError}
|
|
445
|
+
*/
|
|
446
|
+
getCustomerEnquiry: (project_1, platformId_1, enquiryId_1, ...args_1) => __awaiter(this, [project_1, platformId_1, enquiryId_1, ...args_1], void 0, function* (project, platformId, enquiryId, options = {}) {
|
|
447
|
+
// verify required parameter 'project' is not null or undefined
|
|
448
|
+
(0, common_1.assertParamExists)('getCustomerEnquiry', 'project', project);
|
|
449
|
+
// verify required parameter 'platformId' is not null or undefined
|
|
450
|
+
(0, common_1.assertParamExists)('getCustomerEnquiry', 'platformId', platformId);
|
|
451
|
+
// verify required parameter 'enquiryId' is not null or undefined
|
|
452
|
+
(0, common_1.assertParamExists)('getCustomerEnquiry', 'enquiryId', enquiryId);
|
|
453
|
+
const localVarPath = `/v1/platform/{platformId}/customers/enquiries/{enquiryId}`
|
|
454
|
+
.replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
|
|
455
|
+
.replace(`{${"enquiryId"}}`, encodeURIComponent(String(enquiryId)));
|
|
456
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
457
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
458
|
+
let baseOptions;
|
|
459
|
+
if (configuration) {
|
|
460
|
+
baseOptions = configuration.baseOptions;
|
|
461
|
+
}
|
|
462
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
463
|
+
const localVarHeaderParameter = {};
|
|
464
|
+
const localVarQueryParameter = {};
|
|
465
|
+
// authentication session-oauth required
|
|
466
|
+
// oauth required
|
|
467
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
468
|
+
// authentication api-key required
|
|
469
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
470
|
+
if (project !== undefined) {
|
|
471
|
+
localVarQueryParameter['project'] = project;
|
|
472
|
+
}
|
|
473
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
474
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
475
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
476
|
+
return {
|
|
477
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
478
|
+
options: localVarRequestOptions,
|
|
479
|
+
};
|
|
480
|
+
}),
|
|
481
|
+
/**
|
|
482
|
+
* List customer enquiries
|
|
483
|
+
* @summary List customer enquiries
|
|
484
|
+
* @param {string} project Project unique identifier
|
|
485
|
+
* @param {string} platformId The platform identifier
|
|
486
|
+
* @param {number} [pageToken] Page reference token
|
|
487
|
+
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
488
|
+
* @param {string} [search] Search term to filter based on enquiry title, content, customer name and customer email.
|
|
489
|
+
* @param {string} [start] Start of date range to filter by
|
|
490
|
+
* @param {string} [end] End of date range to filter by
|
|
491
|
+
* @param {*} [options] Override http request option.
|
|
492
|
+
* @throws {RequiredError}
|
|
493
|
+
*/
|
|
494
|
+
listCustomerEnquiries: (project_1, platformId_1, pageToken_1, pageSize_1, search_1, start_1, end_1, ...args_1) => __awaiter(this, [project_1, platformId_1, pageToken_1, pageSize_1, search_1, start_1, end_1, ...args_1], void 0, function* (project, platformId, pageToken, pageSize, search, start, end, options = {}) {
|
|
495
|
+
// verify required parameter 'project' is not null or undefined
|
|
496
|
+
(0, common_1.assertParamExists)('listCustomerEnquiries', 'project', project);
|
|
497
|
+
// verify required parameter 'platformId' is not null or undefined
|
|
498
|
+
(0, common_1.assertParamExists)('listCustomerEnquiries', 'platformId', platformId);
|
|
499
|
+
const localVarPath = `/v1/platform/{platformId}/customers/enquiries`
|
|
500
|
+
.replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)));
|
|
501
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
502
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
503
|
+
let baseOptions;
|
|
504
|
+
if (configuration) {
|
|
505
|
+
baseOptions = configuration.baseOptions;
|
|
506
|
+
}
|
|
507
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
508
|
+
const localVarHeaderParameter = {};
|
|
509
|
+
const localVarQueryParameter = {};
|
|
510
|
+
// authentication session-oauth required
|
|
511
|
+
// oauth required
|
|
512
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
513
|
+
// authentication api-key required
|
|
514
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
515
|
+
if (project !== undefined) {
|
|
516
|
+
localVarQueryParameter['project'] = project;
|
|
517
|
+
}
|
|
518
|
+
if (pageToken !== undefined) {
|
|
519
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
520
|
+
}
|
|
521
|
+
if (pageSize !== undefined) {
|
|
522
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
523
|
+
}
|
|
524
|
+
if (search !== undefined) {
|
|
525
|
+
localVarQueryParameter['search'] = search;
|
|
526
|
+
}
|
|
527
|
+
if (start !== undefined) {
|
|
528
|
+
localVarQueryParameter['start'] = (start instanceof Date) ?
|
|
529
|
+
start.toISOString() :
|
|
530
|
+
start;
|
|
531
|
+
}
|
|
532
|
+
if (end !== undefined) {
|
|
533
|
+
localVarQueryParameter['end'] = (end instanceof Date) ?
|
|
534
|
+
end.toISOString() :
|
|
535
|
+
end;
|
|
536
|
+
}
|
|
537
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
538
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
539
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
540
|
+
return {
|
|
541
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
542
|
+
options: localVarRequestOptions,
|
|
543
|
+
};
|
|
544
|
+
}),
|
|
545
|
+
/**
|
|
546
|
+
* Lists all customer enquiry Logs
|
|
547
|
+
* @summary List customer enquiry Logs
|
|
548
|
+
* @param {string} project Project unique identifier
|
|
549
|
+
* @param {string} platformId The platform identifier
|
|
550
|
+
* @param {string} enquiryId
|
|
551
|
+
* @param {*} [options] Override http request option.
|
|
552
|
+
* @throws {RequiredError}
|
|
553
|
+
*/
|
|
554
|
+
listCustomerEnquiryLogs: (project_1, platformId_1, enquiryId_1, ...args_1) => __awaiter(this, [project_1, platformId_1, enquiryId_1, ...args_1], void 0, function* (project, platformId, enquiryId, options = {}) {
|
|
555
|
+
// verify required parameter 'project' is not null or undefined
|
|
556
|
+
(0, common_1.assertParamExists)('listCustomerEnquiryLogs', 'project', project);
|
|
557
|
+
// verify required parameter 'platformId' is not null or undefined
|
|
558
|
+
(0, common_1.assertParamExists)('listCustomerEnquiryLogs', 'platformId', platformId);
|
|
559
|
+
// verify required parameter 'enquiryId' is not null or undefined
|
|
560
|
+
(0, common_1.assertParamExists)('listCustomerEnquiryLogs', 'enquiryId', enquiryId);
|
|
561
|
+
const localVarPath = `/v1/platform/{platformId}/customers/enquiries/{enquiryId}/logs`
|
|
562
|
+
.replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
|
|
563
|
+
.replace(`{${"enquiryId"}}`, encodeURIComponent(String(enquiryId)));
|
|
564
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
565
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
566
|
+
let baseOptions;
|
|
567
|
+
if (configuration) {
|
|
568
|
+
baseOptions = configuration.baseOptions;
|
|
569
|
+
}
|
|
570
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
571
|
+
const localVarHeaderParameter = {};
|
|
572
|
+
const localVarQueryParameter = {};
|
|
573
|
+
// authentication session-oauth required
|
|
574
|
+
// oauth required
|
|
575
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
576
|
+
// authentication api-key required
|
|
577
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
578
|
+
if (project !== undefined) {
|
|
579
|
+
localVarQueryParameter['project'] = project;
|
|
580
|
+
}
|
|
581
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
582
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
583
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
584
|
+
return {
|
|
585
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
586
|
+
options: localVarRequestOptions,
|
|
587
|
+
};
|
|
588
|
+
}),
|
|
589
|
+
};
|
|
590
|
+
};
|
|
591
|
+
exports.EnquiriesApiAxiosParamCreator = EnquiriesApiAxiosParamCreator;
|
|
592
|
+
/**
|
|
593
|
+
* EnquiriesApi - functional programming interface
|
|
594
|
+
* @export
|
|
595
|
+
*/
|
|
596
|
+
const EnquiriesApiFp = function (configuration) {
|
|
597
|
+
const localVarAxiosParamCreator = (0, exports.EnquiriesApiAxiosParamCreator)(configuration);
|
|
598
|
+
return {
|
|
599
|
+
/**
|
|
600
|
+
* Get a customer enquiry
|
|
601
|
+
* @summary Get customer enquiry
|
|
602
|
+
* @param {string} project Project unique identifier
|
|
603
|
+
* @param {string} platformId The platform identifier
|
|
604
|
+
* @param {string} enquiryId
|
|
605
|
+
* @param {*} [options] Override http request option.
|
|
606
|
+
* @throws {RequiredError}
|
|
607
|
+
*/
|
|
608
|
+
getCustomerEnquiry(project, platformId, enquiryId, options) {
|
|
609
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
610
|
+
var _a, _b, _c;
|
|
611
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getCustomerEnquiry(project, platformId, enquiryId, options);
|
|
612
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
613
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EnquiriesApi.getCustomerEnquiry']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
614
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
615
|
+
});
|
|
616
|
+
},
|
|
617
|
+
/**
|
|
618
|
+
* List customer enquiries
|
|
619
|
+
* @summary List customer enquiries
|
|
620
|
+
* @param {string} project Project unique identifier
|
|
621
|
+
* @param {string} platformId The platform identifier
|
|
622
|
+
* @param {number} [pageToken] Page reference token
|
|
623
|
+
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
624
|
+
* @param {string} [search] Search term to filter based on enquiry title, content, customer name and customer email.
|
|
625
|
+
* @param {string} [start] Start of date range to filter by
|
|
626
|
+
* @param {string} [end] End of date range to filter by
|
|
627
|
+
* @param {*} [options] Override http request option.
|
|
628
|
+
* @throws {RequiredError}
|
|
629
|
+
*/
|
|
630
|
+
listCustomerEnquiries(project, platformId, pageToken, pageSize, search, start, end, options) {
|
|
631
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
632
|
+
var _a, _b, _c;
|
|
633
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listCustomerEnquiries(project, platformId, pageToken, pageSize, search, start, end, options);
|
|
634
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
635
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EnquiriesApi.listCustomerEnquiries']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
636
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
637
|
+
});
|
|
638
|
+
},
|
|
639
|
+
/**
|
|
640
|
+
* Lists all customer enquiry Logs
|
|
641
|
+
* @summary List customer enquiry Logs
|
|
642
|
+
* @param {string} project Project unique identifier
|
|
643
|
+
* @param {string} platformId The platform identifier
|
|
644
|
+
* @param {string} enquiryId
|
|
645
|
+
* @param {*} [options] Override http request option.
|
|
646
|
+
* @throws {RequiredError}
|
|
647
|
+
*/
|
|
648
|
+
listCustomerEnquiryLogs(project, platformId, enquiryId, options) {
|
|
649
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
650
|
+
var _a, _b, _c;
|
|
651
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listCustomerEnquiryLogs(project, platformId, enquiryId, options);
|
|
652
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
653
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EnquiriesApi.listCustomerEnquiryLogs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
654
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
655
|
+
});
|
|
656
|
+
},
|
|
657
|
+
};
|
|
658
|
+
};
|
|
659
|
+
exports.EnquiriesApiFp = EnquiriesApiFp;
|
|
660
|
+
/**
|
|
661
|
+
* EnquiriesApi - factory interface
|
|
662
|
+
* @export
|
|
663
|
+
*/
|
|
664
|
+
const EnquiriesApiFactory = function (configuration, basePath, axios) {
|
|
665
|
+
const localVarFp = (0, exports.EnquiriesApiFp)(configuration);
|
|
666
|
+
return {
|
|
667
|
+
/**
|
|
668
|
+
* Get a customer enquiry
|
|
669
|
+
* @summary Get customer enquiry
|
|
670
|
+
* @param {EnquiriesApiGetCustomerEnquiryRequest} requestParameters Request parameters.
|
|
671
|
+
* @param {*} [options] Override http request option.
|
|
672
|
+
* @throws {RequiredError}
|
|
673
|
+
*/
|
|
674
|
+
getCustomerEnquiry(requestParameters, options) {
|
|
675
|
+
return localVarFp.getCustomerEnquiry(requestParameters.project, requestParameters.platformId, requestParameters.enquiryId, options).then((request) => request(axios, basePath));
|
|
676
|
+
},
|
|
677
|
+
/**
|
|
678
|
+
* List customer enquiries
|
|
679
|
+
* @summary List customer enquiries
|
|
680
|
+
* @param {EnquiriesApiListCustomerEnquiriesRequest} requestParameters Request parameters.
|
|
681
|
+
* @param {*} [options] Override http request option.
|
|
682
|
+
* @throws {RequiredError}
|
|
683
|
+
*/
|
|
684
|
+
listCustomerEnquiries(requestParameters, options) {
|
|
685
|
+
return localVarFp.listCustomerEnquiries(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.start, requestParameters.end, options).then((request) => request(axios, basePath));
|
|
686
|
+
},
|
|
687
|
+
/**
|
|
688
|
+
* Lists all customer enquiry Logs
|
|
689
|
+
* @summary List customer enquiry Logs
|
|
690
|
+
* @param {EnquiriesApiListCustomerEnquiryLogsRequest} requestParameters Request parameters.
|
|
691
|
+
* @param {*} [options] Override http request option.
|
|
692
|
+
* @throws {RequiredError}
|
|
693
|
+
*/
|
|
694
|
+
listCustomerEnquiryLogs(requestParameters, options) {
|
|
695
|
+
return localVarFp.listCustomerEnquiryLogs(requestParameters.project, requestParameters.platformId, requestParameters.enquiryId, options).then((request) => request(axios, basePath));
|
|
696
|
+
},
|
|
697
|
+
};
|
|
698
|
+
};
|
|
699
|
+
exports.EnquiriesApiFactory = EnquiriesApiFactory;
|
|
700
|
+
/**
|
|
701
|
+
* EnquiriesApi - object-oriented interface
|
|
702
|
+
* @export
|
|
703
|
+
* @class EnquiriesApi
|
|
704
|
+
* @extends {BaseAPI}
|
|
705
|
+
*/
|
|
706
|
+
class EnquiriesApi extends base_1.BaseAPI {
|
|
707
|
+
/**
|
|
708
|
+
* Get a customer enquiry
|
|
709
|
+
* @summary Get customer enquiry
|
|
710
|
+
* @param {EnquiriesApiGetCustomerEnquiryRequest} requestParameters Request parameters.
|
|
711
|
+
* @param {*} [options] Override http request option.
|
|
712
|
+
* @throws {RequiredError}
|
|
713
|
+
* @memberof EnquiriesApi
|
|
714
|
+
*/
|
|
715
|
+
getCustomerEnquiry(requestParameters, options) {
|
|
716
|
+
return (0, exports.EnquiriesApiFp)(this.configuration).getCustomerEnquiry(requestParameters.project, requestParameters.platformId, requestParameters.enquiryId, options).then((request) => request(this.axios, this.basePath));
|
|
717
|
+
}
|
|
718
|
+
/**
|
|
719
|
+
* List customer enquiries
|
|
720
|
+
* @summary List customer enquiries
|
|
721
|
+
* @param {EnquiriesApiListCustomerEnquiriesRequest} requestParameters Request parameters.
|
|
722
|
+
* @param {*} [options] Override http request option.
|
|
723
|
+
* @throws {RequiredError}
|
|
724
|
+
* @memberof EnquiriesApi
|
|
725
|
+
*/
|
|
726
|
+
listCustomerEnquiries(requestParameters, options) {
|
|
727
|
+
return (0, exports.EnquiriesApiFp)(this.configuration).listCustomerEnquiries(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.start, requestParameters.end, options).then((request) => request(this.axios, this.basePath));
|
|
728
|
+
}
|
|
729
|
+
/**
|
|
730
|
+
* Lists all customer enquiry Logs
|
|
731
|
+
* @summary List customer enquiry Logs
|
|
732
|
+
* @param {EnquiriesApiListCustomerEnquiryLogsRequest} requestParameters Request parameters.
|
|
733
|
+
* @param {*} [options] Override http request option.
|
|
734
|
+
* @throws {RequiredError}
|
|
735
|
+
* @memberof EnquiriesApi
|
|
736
|
+
*/
|
|
737
|
+
listCustomerEnquiryLogs(requestParameters, options) {
|
|
738
|
+
return (0, exports.EnquiriesApiFp)(this.configuration).listCustomerEnquiryLogs(requestParameters.project, requestParameters.platformId, requestParameters.enquiryId, options).then((request) => request(this.axios, this.basePath));
|
|
739
|
+
}
|
|
740
|
+
}
|
|
741
|
+
exports.EnquiriesApi = EnquiriesApi;
|
|
426
742
|
/**
|
|
427
743
|
* OrdersApi - axios parameter creator
|
|
428
744
|
* @export
|
|
@@ -1962,3 +2278,203 @@ class ReviewsApi extends base_1.BaseAPI {
|
|
|
1962
2278
|
}
|
|
1963
2279
|
}
|
|
1964
2280
|
exports.ReviewsApi = ReviewsApi;
|
|
2281
|
+
/**
|
|
2282
|
+
* TermsApi - axios parameter creator
|
|
2283
|
+
* @export
|
|
2284
|
+
*/
|
|
2285
|
+
const TermsApiAxiosParamCreator = function (configuration) {
|
|
2286
|
+
return {
|
|
2287
|
+
/**
|
|
2288
|
+
*
|
|
2289
|
+
* @summary Get the platform\'s terms
|
|
2290
|
+
* @param {string} project Project unique identifier
|
|
2291
|
+
* @param {string} platformId The platform identifier
|
|
2292
|
+
* @param {*} [options] Override http request option.
|
|
2293
|
+
* @throws {RequiredError}
|
|
2294
|
+
*/
|
|
2295
|
+
getTerms: (project_1, platformId_1, ...args_1) => __awaiter(this, [project_1, platformId_1, ...args_1], void 0, function* (project, platformId, options = {}) {
|
|
2296
|
+
// verify required parameter 'project' is not null or undefined
|
|
2297
|
+
(0, common_1.assertParamExists)('getTerms', 'project', project);
|
|
2298
|
+
// verify required parameter 'platformId' is not null or undefined
|
|
2299
|
+
(0, common_1.assertParamExists)('getTerms', 'platformId', platformId);
|
|
2300
|
+
const localVarPath = `/v1/platform/{platformId}/terms`
|
|
2301
|
+
.replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)));
|
|
2302
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2303
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2304
|
+
let baseOptions;
|
|
2305
|
+
if (configuration) {
|
|
2306
|
+
baseOptions = configuration.baseOptions;
|
|
2307
|
+
}
|
|
2308
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2309
|
+
const localVarHeaderParameter = {};
|
|
2310
|
+
const localVarQueryParameter = {};
|
|
2311
|
+
// authentication session-oauth required
|
|
2312
|
+
// oauth required
|
|
2313
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
2314
|
+
// authentication api-key required
|
|
2315
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
2316
|
+
if (project !== undefined) {
|
|
2317
|
+
localVarQueryParameter['project'] = project;
|
|
2318
|
+
}
|
|
2319
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2320
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2321
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2322
|
+
return {
|
|
2323
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2324
|
+
options: localVarRequestOptions,
|
|
2325
|
+
};
|
|
2326
|
+
}),
|
|
2327
|
+
/**
|
|
2328
|
+
*
|
|
2329
|
+
* @summary Save the platform\'s terms
|
|
2330
|
+
* @param {string} project Project unique identifier
|
|
2331
|
+
* @param {string} platformId The platform identifier
|
|
2332
|
+
* @param {SaveTermsRequest} saveTermsRequest Save terms
|
|
2333
|
+
* @param {*} [options] Override http request option.
|
|
2334
|
+
* @throws {RequiredError}
|
|
2335
|
+
*/
|
|
2336
|
+
saveTerms: (project_1, platformId_1, saveTermsRequest_1, ...args_1) => __awaiter(this, [project_1, platformId_1, saveTermsRequest_1, ...args_1], void 0, function* (project, platformId, saveTermsRequest, options = {}) {
|
|
2337
|
+
// verify required parameter 'project' is not null or undefined
|
|
2338
|
+
(0, common_1.assertParamExists)('saveTerms', 'project', project);
|
|
2339
|
+
// verify required parameter 'platformId' is not null or undefined
|
|
2340
|
+
(0, common_1.assertParamExists)('saveTerms', 'platformId', platformId);
|
|
2341
|
+
// verify required parameter 'saveTermsRequest' is not null or undefined
|
|
2342
|
+
(0, common_1.assertParamExists)('saveTerms', 'saveTermsRequest', saveTermsRequest);
|
|
2343
|
+
const localVarPath = `/v1/platform/{platformId}/terms`
|
|
2344
|
+
.replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)));
|
|
2345
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2346
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2347
|
+
let baseOptions;
|
|
2348
|
+
if (configuration) {
|
|
2349
|
+
baseOptions = configuration.baseOptions;
|
|
2350
|
+
}
|
|
2351
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
2352
|
+
const localVarHeaderParameter = {};
|
|
2353
|
+
const localVarQueryParameter = {};
|
|
2354
|
+
// authentication session-oauth required
|
|
2355
|
+
// oauth required
|
|
2356
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
2357
|
+
// authentication api-key required
|
|
2358
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
2359
|
+
if (project !== undefined) {
|
|
2360
|
+
localVarQueryParameter['project'] = project;
|
|
2361
|
+
}
|
|
2362
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2363
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2364
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2365
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2366
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(saveTermsRequest, localVarRequestOptions, configuration);
|
|
2367
|
+
return {
|
|
2368
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2369
|
+
options: localVarRequestOptions,
|
|
2370
|
+
};
|
|
2371
|
+
}),
|
|
2372
|
+
};
|
|
2373
|
+
};
|
|
2374
|
+
exports.TermsApiAxiosParamCreator = TermsApiAxiosParamCreator;
|
|
2375
|
+
/**
|
|
2376
|
+
* TermsApi - functional programming interface
|
|
2377
|
+
* @export
|
|
2378
|
+
*/
|
|
2379
|
+
const TermsApiFp = function (configuration) {
|
|
2380
|
+
const localVarAxiosParamCreator = (0, exports.TermsApiAxiosParamCreator)(configuration);
|
|
2381
|
+
return {
|
|
2382
|
+
/**
|
|
2383
|
+
*
|
|
2384
|
+
* @summary Get the platform\'s terms
|
|
2385
|
+
* @param {string} project Project unique identifier
|
|
2386
|
+
* @param {string} platformId The platform identifier
|
|
2387
|
+
* @param {*} [options] Override http request option.
|
|
2388
|
+
* @throws {RequiredError}
|
|
2389
|
+
*/
|
|
2390
|
+
getTerms(project, platformId, options) {
|
|
2391
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2392
|
+
var _a, _b, _c;
|
|
2393
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getTerms(project, platformId, options);
|
|
2394
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2395
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['TermsApi.getTerms']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2396
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2397
|
+
});
|
|
2398
|
+
},
|
|
2399
|
+
/**
|
|
2400
|
+
*
|
|
2401
|
+
* @summary Save the platform\'s terms
|
|
2402
|
+
* @param {string} project Project unique identifier
|
|
2403
|
+
* @param {string} platformId The platform identifier
|
|
2404
|
+
* @param {SaveTermsRequest} saveTermsRequest Save terms
|
|
2405
|
+
* @param {*} [options] Override http request option.
|
|
2406
|
+
* @throws {RequiredError}
|
|
2407
|
+
*/
|
|
2408
|
+
saveTerms(project, platformId, saveTermsRequest, options) {
|
|
2409
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2410
|
+
var _a, _b, _c;
|
|
2411
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.saveTerms(project, platformId, saveTermsRequest, options);
|
|
2412
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2413
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['TermsApi.saveTerms']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2414
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2415
|
+
});
|
|
2416
|
+
},
|
|
2417
|
+
};
|
|
2418
|
+
};
|
|
2419
|
+
exports.TermsApiFp = TermsApiFp;
|
|
2420
|
+
/**
|
|
2421
|
+
* TermsApi - factory interface
|
|
2422
|
+
* @export
|
|
2423
|
+
*/
|
|
2424
|
+
const TermsApiFactory = function (configuration, basePath, axios) {
|
|
2425
|
+
const localVarFp = (0, exports.TermsApiFp)(configuration);
|
|
2426
|
+
return {
|
|
2427
|
+
/**
|
|
2428
|
+
*
|
|
2429
|
+
* @summary Get the platform\'s terms
|
|
2430
|
+
* @param {TermsApiGetTermsRequest} requestParameters Request parameters.
|
|
2431
|
+
* @param {*} [options] Override http request option.
|
|
2432
|
+
* @throws {RequiredError}
|
|
2433
|
+
*/
|
|
2434
|
+
getTerms(requestParameters, options) {
|
|
2435
|
+
return localVarFp.getTerms(requestParameters.project, requestParameters.platformId, options).then((request) => request(axios, basePath));
|
|
2436
|
+
},
|
|
2437
|
+
/**
|
|
2438
|
+
*
|
|
2439
|
+
* @summary Save the platform\'s terms
|
|
2440
|
+
* @param {TermsApiSaveTermsRequest} requestParameters Request parameters.
|
|
2441
|
+
* @param {*} [options] Override http request option.
|
|
2442
|
+
* @throws {RequiredError}
|
|
2443
|
+
*/
|
|
2444
|
+
saveTerms(requestParameters, options) {
|
|
2445
|
+
return localVarFp.saveTerms(requestParameters.project, requestParameters.platformId, requestParameters.saveTermsRequest, options).then((request) => request(axios, basePath));
|
|
2446
|
+
},
|
|
2447
|
+
};
|
|
2448
|
+
};
|
|
2449
|
+
exports.TermsApiFactory = TermsApiFactory;
|
|
2450
|
+
/**
|
|
2451
|
+
* TermsApi - object-oriented interface
|
|
2452
|
+
* @export
|
|
2453
|
+
* @class TermsApi
|
|
2454
|
+
* @extends {BaseAPI}
|
|
2455
|
+
*/
|
|
2456
|
+
class TermsApi extends base_1.BaseAPI {
|
|
2457
|
+
/**
|
|
2458
|
+
*
|
|
2459
|
+
* @summary Get the platform\'s terms
|
|
2460
|
+
* @param {TermsApiGetTermsRequest} requestParameters Request parameters.
|
|
2461
|
+
* @param {*} [options] Override http request option.
|
|
2462
|
+
* @throws {RequiredError}
|
|
2463
|
+
* @memberof TermsApi
|
|
2464
|
+
*/
|
|
2465
|
+
getTerms(requestParameters, options) {
|
|
2466
|
+
return (0, exports.TermsApiFp)(this.configuration).getTerms(requestParameters.project, requestParameters.platformId, options).then((request) => request(this.axios, this.basePath));
|
|
2467
|
+
}
|
|
2468
|
+
/**
|
|
2469
|
+
*
|
|
2470
|
+
* @summary Save the platform\'s terms
|
|
2471
|
+
* @param {TermsApiSaveTermsRequest} requestParameters Request parameters.
|
|
2472
|
+
* @param {*} [options] Override http request option.
|
|
2473
|
+
* @throws {RequiredError}
|
|
2474
|
+
* @memberof TermsApi
|
|
2475
|
+
*/
|
|
2476
|
+
saveTerms(requestParameters, options) {
|
|
2477
|
+
return (0, exports.TermsApiFp)(this.configuration).saveTerms(requestParameters.project, requestParameters.platformId, requestParameters.saveTermsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2478
|
+
}
|
|
2479
|
+
}
|
|
2480
|
+
exports.TermsApi = TermsApi;
|
package/dist/base.d.ts
CHANGED
package/dist/base.js
CHANGED
package/dist/common.d.ts
CHANGED
package/dist/common.js
CHANGED
package/dist/configuration.d.ts
CHANGED
package/dist/configuration.js
CHANGED