@teemill/platform 0.18.0 → 0.20.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 +14 -2
- package/api.ts +861 -65
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +535 -1
- package/dist/api.js +401 -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 +535 -1
- package/dist/esm/api.js +396 -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/OrdersApi.md +63 -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.20.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.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
|
|
@@ -687,6 +1003,50 @@ const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
687
1003
|
options: localVarRequestOptions,
|
|
688
1004
|
};
|
|
689
1005
|
}),
|
|
1006
|
+
/**
|
|
1007
|
+
* Retries failed platform payment, so fulfillment can proceed.
|
|
1008
|
+
* @summary Retry
|
|
1009
|
+
* @param {string} project Project unique identifier
|
|
1010
|
+
* @param {string} platformId The platform identifier
|
|
1011
|
+
* @param {string} orderId The order identifier
|
|
1012
|
+
* @param {*} [options] Override http request option.
|
|
1013
|
+
* @throws {RequiredError}
|
|
1014
|
+
*/
|
|
1015
|
+
retryPlatformPayment: (project_1, platformId_1, orderId_1, ...args_1) => __awaiter(this, [project_1, platformId_1, orderId_1, ...args_1], void 0, function* (project, platformId, orderId, options = {}) {
|
|
1016
|
+
// verify required parameter 'project' is not null or undefined
|
|
1017
|
+
(0, common_1.assertParamExists)('retryPlatformPayment', 'project', project);
|
|
1018
|
+
// verify required parameter 'platformId' is not null or undefined
|
|
1019
|
+
(0, common_1.assertParamExists)('retryPlatformPayment', 'platformId', platformId);
|
|
1020
|
+
// verify required parameter 'orderId' is not null or undefined
|
|
1021
|
+
(0, common_1.assertParamExists)('retryPlatformPayment', 'orderId', orderId);
|
|
1022
|
+
const localVarPath = `/v1/platform/{platformId}/orders/{orderId}/retryPlatformPayment`
|
|
1023
|
+
.replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
|
|
1024
|
+
.replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)));
|
|
1025
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1026
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1027
|
+
let baseOptions;
|
|
1028
|
+
if (configuration) {
|
|
1029
|
+
baseOptions = configuration.baseOptions;
|
|
1030
|
+
}
|
|
1031
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1032
|
+
const localVarHeaderParameter = {};
|
|
1033
|
+
const localVarQueryParameter = {};
|
|
1034
|
+
// authentication session-oauth required
|
|
1035
|
+
// oauth required
|
|
1036
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
1037
|
+
// authentication api-key required
|
|
1038
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
1039
|
+
if (project !== undefined) {
|
|
1040
|
+
localVarQueryParameter['project'] = project;
|
|
1041
|
+
}
|
|
1042
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1043
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1044
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1045
|
+
return {
|
|
1046
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1047
|
+
options: localVarRequestOptions,
|
|
1048
|
+
};
|
|
1049
|
+
}),
|
|
690
1050
|
/**
|
|
691
1051
|
* Update a fulfillment that belongs to an order placed through the platform
|
|
692
1052
|
* @summary Update fulfillment
|
|
@@ -843,6 +1203,24 @@ const OrdersApiFp = function (configuration) {
|
|
|
843
1203
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
844
1204
|
});
|
|
845
1205
|
},
|
|
1206
|
+
/**
|
|
1207
|
+
* Retries failed platform payment, so fulfillment can proceed.
|
|
1208
|
+
* @summary Retry
|
|
1209
|
+
* @param {string} project Project unique identifier
|
|
1210
|
+
* @param {string} platformId The platform identifier
|
|
1211
|
+
* @param {string} orderId The order identifier
|
|
1212
|
+
* @param {*} [options] Override http request option.
|
|
1213
|
+
* @throws {RequiredError}
|
|
1214
|
+
*/
|
|
1215
|
+
retryPlatformPayment(project, platformId, orderId, options) {
|
|
1216
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1217
|
+
var _a, _b, _c;
|
|
1218
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.retryPlatformPayment(project, platformId, orderId, options);
|
|
1219
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1220
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.retryPlatformPayment']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1221
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1222
|
+
});
|
|
1223
|
+
},
|
|
846
1224
|
/**
|
|
847
1225
|
* Update a fulfillment that belongs to an order placed through the platform
|
|
848
1226
|
* @summary Update fulfillment
|
|
@@ -922,6 +1300,16 @@ const OrdersApiFactory = function (configuration, basePath, axios) {
|
|
|
922
1300
|
listOrders(requestParameters, options) {
|
|
923
1301
|
return localVarFp.listOrders(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.start, requestParameters.end, requestParameters.dateFilterType, options).then((request) => request(axios, basePath));
|
|
924
1302
|
},
|
|
1303
|
+
/**
|
|
1304
|
+
* Retries failed platform payment, so fulfillment can proceed.
|
|
1305
|
+
* @summary Retry
|
|
1306
|
+
* @param {OrdersApiRetryPlatformPaymentRequest} requestParameters Request parameters.
|
|
1307
|
+
* @param {*} [options] Override http request option.
|
|
1308
|
+
* @throws {RequiredError}
|
|
1309
|
+
*/
|
|
1310
|
+
retryPlatformPayment(requestParameters, options) {
|
|
1311
|
+
return localVarFp.retryPlatformPayment(requestParameters.project, requestParameters.platformId, requestParameters.orderId, options).then((request) => request(axios, basePath));
|
|
1312
|
+
},
|
|
925
1313
|
/**
|
|
926
1314
|
* Update a fulfillment that belongs to an order placed through the platform
|
|
927
1315
|
* @summary Update fulfillment
|
|
@@ -997,6 +1385,17 @@ class OrdersApi extends base_1.BaseAPI {
|
|
|
997
1385
|
listOrders(requestParameters, options) {
|
|
998
1386
|
return (0, exports.OrdersApiFp)(this.configuration).listOrders(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.start, requestParameters.end, requestParameters.dateFilterType, options).then((request) => request(this.axios, this.basePath));
|
|
999
1387
|
}
|
|
1388
|
+
/**
|
|
1389
|
+
* Retries failed platform payment, so fulfillment can proceed.
|
|
1390
|
+
* @summary Retry
|
|
1391
|
+
* @param {OrdersApiRetryPlatformPaymentRequest} requestParameters Request parameters.
|
|
1392
|
+
* @param {*} [options] Override http request option.
|
|
1393
|
+
* @throws {RequiredError}
|
|
1394
|
+
* @memberof OrdersApi
|
|
1395
|
+
*/
|
|
1396
|
+
retryPlatformPayment(requestParameters, options) {
|
|
1397
|
+
return (0, exports.OrdersApiFp)(this.configuration).retryPlatformPayment(requestParameters.project, requestParameters.platformId, requestParameters.orderId, options).then((request) => request(this.axios, this.basePath));
|
|
1398
|
+
}
|
|
1000
1399
|
/**
|
|
1001
1400
|
* Update a fulfillment that belongs to an order placed through the platform
|
|
1002
1401
|
* @summary Update fulfillment
|
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