@teemill/platform 0.22.2 → 0.23.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 +7 -5
- package/api.ts +146 -10
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +88 -7
- package/dist/api.js +91 -8
- 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 +88 -7
- package/dist/esm/api.js +91 -8
- 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/CreateChatChannel200Response.md +20 -0
- package/docs/EnquiriesApi.md +67 -4
- package/docs/Enquiry.md +2 -0
- package/docs/PlatformApi.md +3 -3
- 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.23.0
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -434,12 +434,56 @@ exports.ListCustomersSortByEnum = {
|
|
|
434
434
|
*/
|
|
435
435
|
const EnquiriesApiAxiosParamCreator = function (configuration) {
|
|
436
436
|
return {
|
|
437
|
+
/**
|
|
438
|
+
* Create a chat channel for a customer enquiry if it doesn\'t exist
|
|
439
|
+
* @summary Create chat channel
|
|
440
|
+
* @param {string} project Project unique identifier
|
|
441
|
+
* @param {string} platformId The platform identifier
|
|
442
|
+
* @param {string} enquiryId The enquiry identifier
|
|
443
|
+
* @param {*} [options] Override http request option.
|
|
444
|
+
* @throws {RequiredError}
|
|
445
|
+
*/
|
|
446
|
+
createChatChannel: (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)('createChatChannel', 'project', project);
|
|
449
|
+
// verify required parameter 'platformId' is not null or undefined
|
|
450
|
+
(0, common_1.assertParamExists)('createChatChannel', 'platformId', platformId);
|
|
451
|
+
// verify required parameter 'enquiryId' is not null or undefined
|
|
452
|
+
(0, common_1.assertParamExists)('createChatChannel', 'enquiryId', enquiryId);
|
|
453
|
+
const localVarPath = `/v1/platform/{platformId}/customers/enquiries/{enquiryId}/chat-channel`
|
|
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: 'POST' }, 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
|
+
}),
|
|
437
481
|
/**
|
|
438
482
|
* Get a customer enquiry
|
|
439
483
|
* @summary Get customer enquiry
|
|
440
484
|
* @param {string} project Project unique identifier
|
|
441
485
|
* @param {string} platformId The platform identifier
|
|
442
|
-
* @param {string} enquiryId
|
|
486
|
+
* @param {string} enquiryId The enquiry identifier
|
|
443
487
|
* @param {*} [options] Override http request option.
|
|
444
488
|
* @throws {RequiredError}
|
|
445
489
|
*/
|
|
@@ -547,7 +591,7 @@ const EnquiriesApiAxiosParamCreator = function (configuration) {
|
|
|
547
591
|
* @summary List customer enquiry Logs
|
|
548
592
|
* @param {string} project Project unique identifier
|
|
549
593
|
* @param {string} platformId The platform identifier
|
|
550
|
-
* @param {string} enquiryId
|
|
594
|
+
* @param {string} enquiryId The enquiry identifier
|
|
551
595
|
* @param {*} [options] Override http request option.
|
|
552
596
|
* @throws {RequiredError}
|
|
553
597
|
*/
|
|
@@ -596,12 +640,30 @@ exports.EnquiriesApiAxiosParamCreator = EnquiriesApiAxiosParamCreator;
|
|
|
596
640
|
const EnquiriesApiFp = function (configuration) {
|
|
597
641
|
const localVarAxiosParamCreator = (0, exports.EnquiriesApiAxiosParamCreator)(configuration);
|
|
598
642
|
return {
|
|
643
|
+
/**
|
|
644
|
+
* Create a chat channel for a customer enquiry if it doesn\'t exist
|
|
645
|
+
* @summary Create chat channel
|
|
646
|
+
* @param {string} project Project unique identifier
|
|
647
|
+
* @param {string} platformId The platform identifier
|
|
648
|
+
* @param {string} enquiryId The enquiry identifier
|
|
649
|
+
* @param {*} [options] Override http request option.
|
|
650
|
+
* @throws {RequiredError}
|
|
651
|
+
*/
|
|
652
|
+
createChatChannel(project, platformId, enquiryId, options) {
|
|
653
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
654
|
+
var _a, _b, _c;
|
|
655
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createChatChannel(project, platformId, enquiryId, options);
|
|
656
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
657
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EnquiriesApi.createChatChannel']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
658
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
659
|
+
});
|
|
660
|
+
},
|
|
599
661
|
/**
|
|
600
662
|
* Get a customer enquiry
|
|
601
663
|
* @summary Get customer enquiry
|
|
602
664
|
* @param {string} project Project unique identifier
|
|
603
665
|
* @param {string} platformId The platform identifier
|
|
604
|
-
* @param {string} enquiryId
|
|
666
|
+
* @param {string} enquiryId The enquiry identifier
|
|
605
667
|
* @param {*} [options] Override http request option.
|
|
606
668
|
* @throws {RequiredError}
|
|
607
669
|
*/
|
|
@@ -641,7 +703,7 @@ const EnquiriesApiFp = function (configuration) {
|
|
|
641
703
|
* @summary List customer enquiry Logs
|
|
642
704
|
* @param {string} project Project unique identifier
|
|
643
705
|
* @param {string} platformId The platform identifier
|
|
644
|
-
* @param {string} enquiryId
|
|
706
|
+
* @param {string} enquiryId The enquiry identifier
|
|
645
707
|
* @param {*} [options] Override http request option.
|
|
646
708
|
* @throws {RequiredError}
|
|
647
709
|
*/
|
|
@@ -664,6 +726,16 @@ exports.EnquiriesApiFp = EnquiriesApiFp;
|
|
|
664
726
|
const EnquiriesApiFactory = function (configuration, basePath, axios) {
|
|
665
727
|
const localVarFp = (0, exports.EnquiriesApiFp)(configuration);
|
|
666
728
|
return {
|
|
729
|
+
/**
|
|
730
|
+
* Create a chat channel for a customer enquiry if it doesn\'t exist
|
|
731
|
+
* @summary Create chat channel
|
|
732
|
+
* @param {EnquiriesApiCreateChatChannelRequest} requestParameters Request parameters.
|
|
733
|
+
* @param {*} [options] Override http request option.
|
|
734
|
+
* @throws {RequiredError}
|
|
735
|
+
*/
|
|
736
|
+
createChatChannel(requestParameters, options) {
|
|
737
|
+
return localVarFp.createChatChannel(requestParameters.project, requestParameters.platformId, requestParameters.enquiryId, options).then((request) => request(axios, basePath));
|
|
738
|
+
},
|
|
667
739
|
/**
|
|
668
740
|
* Get a customer enquiry
|
|
669
741
|
* @summary Get customer enquiry
|
|
@@ -704,6 +776,17 @@ exports.EnquiriesApiFactory = EnquiriesApiFactory;
|
|
|
704
776
|
* @extends {BaseAPI}
|
|
705
777
|
*/
|
|
706
778
|
class EnquiriesApi extends base_1.BaseAPI {
|
|
779
|
+
/**
|
|
780
|
+
* Create a chat channel for a customer enquiry if it doesn\'t exist
|
|
781
|
+
* @summary Create chat channel
|
|
782
|
+
* @param {EnquiriesApiCreateChatChannelRequest} requestParameters Request parameters.
|
|
783
|
+
* @param {*} [options] Override http request option.
|
|
784
|
+
* @throws {RequiredError}
|
|
785
|
+
* @memberof EnquiriesApi
|
|
786
|
+
*/
|
|
787
|
+
createChatChannel(requestParameters, options) {
|
|
788
|
+
return (0, exports.EnquiriesApiFp)(this.configuration).createChatChannel(requestParameters.project, requestParameters.platformId, requestParameters.enquiryId, options).then((request) => request(this.axios, this.basePath));
|
|
789
|
+
}
|
|
707
790
|
/**
|
|
708
791
|
* Get a customer enquiry
|
|
709
792
|
* @summary Get customer enquiry
|
|
@@ -1691,7 +1774,7 @@ const PlatformApiAxiosParamCreator = function (configuration) {
|
|
|
1691
1774
|
createClientDomain: (project_1, createDomainRequest_1, ...args_1) => __awaiter(this, [project_1, createDomainRequest_1, ...args_1], void 0, function* (project, createDomainRequest, options = {}) {
|
|
1692
1775
|
// verify required parameter 'project' is not null or undefined
|
|
1693
1776
|
(0, common_1.assertParamExists)('createClientDomain', 'project', project);
|
|
1694
|
-
const localVarPath = `/v1/platform/
|
|
1777
|
+
const localVarPath = `/v1/platform/client/domains`;
|
|
1695
1778
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1696
1779
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1697
1780
|
let baseOptions;
|
|
@@ -1771,7 +1854,7 @@ const PlatformApiAxiosParamCreator = function (configuration) {
|
|
|
1771
1854
|
(0, common_1.assertParamExists)('deleteClientDomain', 'project', project);
|
|
1772
1855
|
// verify required parameter 'domain' is not null or undefined
|
|
1773
1856
|
(0, common_1.assertParamExists)('deleteClientDomain', 'domain', domain);
|
|
1774
|
-
const localVarPath = `/v1/platform/
|
|
1857
|
+
const localVarPath = `/v1/platform/client/domains/{domain}`
|
|
1775
1858
|
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
1776
1859
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1777
1860
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -1884,7 +1967,7 @@ const PlatformApiAxiosParamCreator = function (configuration) {
|
|
|
1884
1967
|
listClientDomains: (project_1, ...args_1) => __awaiter(this, [project_1, ...args_1], void 0, function* (project, options = {}) {
|
|
1885
1968
|
// verify required parameter 'project' is not null or undefined
|
|
1886
1969
|
(0, common_1.assertParamExists)('listClientDomains', 'project', project);
|
|
1887
|
-
const localVarPath = `/v1/platform/
|
|
1970
|
+
const localVarPath = `/v1/platform/client/domains`;
|
|
1888
1971
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1889
1972
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1890
1973
|
let baseOptions;
|
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
package/dist/esm/api.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Platform API
|
|
3
3
|
* Manage Your podOS platform
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.
|
|
5
|
+
* The version of the OpenAPI document: 0.23.0
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -150,6 +150,19 @@ export interface Coupon {
|
|
|
150
150
|
*/
|
|
151
151
|
'code': string;
|
|
152
152
|
}
|
|
153
|
+
/**
|
|
154
|
+
*
|
|
155
|
+
* @export
|
|
156
|
+
* @interface CreateChatChannel200Response
|
|
157
|
+
*/
|
|
158
|
+
export interface CreateChatChannel200Response {
|
|
159
|
+
/**
|
|
160
|
+
* Reference to the chat channel resource
|
|
161
|
+
* @type {string}
|
|
162
|
+
* @memberof CreateChatChannel200Response
|
|
163
|
+
*/
|
|
164
|
+
'chatChannelRef': string;
|
|
165
|
+
}
|
|
153
166
|
/**
|
|
154
167
|
*
|
|
155
168
|
* @export
|
|
@@ -359,6 +372,12 @@ export interface Enquiry {
|
|
|
359
372
|
* @memberof Enquiry
|
|
360
373
|
*/
|
|
361
374
|
'extraInputs': Array<EnquiryExtraInputsInner> | null;
|
|
375
|
+
/**
|
|
376
|
+
* Reference to the chat channel resource
|
|
377
|
+
* @type {string}
|
|
378
|
+
* @memberof Enquiry
|
|
379
|
+
*/
|
|
380
|
+
'chatChannelRef'?: string | null;
|
|
362
381
|
}
|
|
363
382
|
export declare const EnquiryStatusEnum: {
|
|
364
383
|
readonly New: "New";
|
|
@@ -2014,12 +2033,22 @@ export type ListCustomersSortByEnum = typeof ListCustomersSortByEnum[keyof typeo
|
|
|
2014
2033
|
* @export
|
|
2015
2034
|
*/
|
|
2016
2035
|
export declare const EnquiriesApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
2036
|
+
/**
|
|
2037
|
+
* Create a chat channel for a customer enquiry if it doesn\'t exist
|
|
2038
|
+
* @summary Create chat channel
|
|
2039
|
+
* @param {string} project Project unique identifier
|
|
2040
|
+
* @param {string} platformId The platform identifier
|
|
2041
|
+
* @param {string} enquiryId The enquiry identifier
|
|
2042
|
+
* @param {*} [options] Override http request option.
|
|
2043
|
+
* @throws {RequiredError}
|
|
2044
|
+
*/
|
|
2045
|
+
createChatChannel: (project: string, platformId: string, enquiryId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2017
2046
|
/**
|
|
2018
2047
|
* Get a customer enquiry
|
|
2019
2048
|
* @summary Get customer enquiry
|
|
2020
2049
|
* @param {string} project Project unique identifier
|
|
2021
2050
|
* @param {string} platformId The platform identifier
|
|
2022
|
-
* @param {string} enquiryId
|
|
2051
|
+
* @param {string} enquiryId The enquiry identifier
|
|
2023
2052
|
* @param {*} [options] Override http request option.
|
|
2024
2053
|
* @throws {RequiredError}
|
|
2025
2054
|
*/
|
|
@@ -2043,7 +2072,7 @@ export declare const EnquiriesApiAxiosParamCreator: (configuration?: Configurati
|
|
|
2043
2072
|
* @summary List customer enquiry Logs
|
|
2044
2073
|
* @param {string} project Project unique identifier
|
|
2045
2074
|
* @param {string} platformId The platform identifier
|
|
2046
|
-
* @param {string} enquiryId
|
|
2075
|
+
* @param {string} enquiryId The enquiry identifier
|
|
2047
2076
|
* @param {*} [options] Override http request option.
|
|
2048
2077
|
* @throws {RequiredError}
|
|
2049
2078
|
*/
|
|
@@ -2054,12 +2083,22 @@ export declare const EnquiriesApiAxiosParamCreator: (configuration?: Configurati
|
|
|
2054
2083
|
* @export
|
|
2055
2084
|
*/
|
|
2056
2085
|
export declare const EnquiriesApiFp: (configuration?: Configuration) => {
|
|
2086
|
+
/**
|
|
2087
|
+
* Create a chat channel for a customer enquiry if it doesn\'t exist
|
|
2088
|
+
* @summary Create chat channel
|
|
2089
|
+
* @param {string} project Project unique identifier
|
|
2090
|
+
* @param {string} platformId The platform identifier
|
|
2091
|
+
* @param {string} enquiryId The enquiry identifier
|
|
2092
|
+
* @param {*} [options] Override http request option.
|
|
2093
|
+
* @throws {RequiredError}
|
|
2094
|
+
*/
|
|
2095
|
+
createChatChannel(project: string, platformId: string, enquiryId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateChatChannel200Response>>;
|
|
2057
2096
|
/**
|
|
2058
2097
|
* Get a customer enquiry
|
|
2059
2098
|
* @summary Get customer enquiry
|
|
2060
2099
|
* @param {string} project Project unique identifier
|
|
2061
2100
|
* @param {string} platformId The platform identifier
|
|
2062
|
-
* @param {string} enquiryId
|
|
2101
|
+
* @param {string} enquiryId The enquiry identifier
|
|
2063
2102
|
* @param {*} [options] Override http request option.
|
|
2064
2103
|
* @throws {RequiredError}
|
|
2065
2104
|
*/
|
|
@@ -2083,7 +2122,7 @@ export declare const EnquiriesApiFp: (configuration?: Configuration) => {
|
|
|
2083
2122
|
* @summary List customer enquiry Logs
|
|
2084
2123
|
* @param {string} project Project unique identifier
|
|
2085
2124
|
* @param {string} platformId The platform identifier
|
|
2086
|
-
* @param {string} enquiryId
|
|
2125
|
+
* @param {string} enquiryId The enquiry identifier
|
|
2087
2126
|
* @param {*} [options] Override http request option.
|
|
2088
2127
|
* @throws {RequiredError}
|
|
2089
2128
|
*/
|
|
@@ -2094,6 +2133,14 @@ export declare const EnquiriesApiFp: (configuration?: Configuration) => {
|
|
|
2094
2133
|
* @export
|
|
2095
2134
|
*/
|
|
2096
2135
|
export declare const EnquiriesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
2136
|
+
/**
|
|
2137
|
+
* Create a chat channel for a customer enquiry if it doesn\'t exist
|
|
2138
|
+
* @summary Create chat channel
|
|
2139
|
+
* @param {EnquiriesApiCreateChatChannelRequest} requestParameters Request parameters.
|
|
2140
|
+
* @param {*} [options] Override http request option.
|
|
2141
|
+
* @throws {RequiredError}
|
|
2142
|
+
*/
|
|
2143
|
+
createChatChannel(requestParameters: EnquiriesApiCreateChatChannelRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateChatChannel200Response>;
|
|
2097
2144
|
/**
|
|
2098
2145
|
* Get a customer enquiry
|
|
2099
2146
|
* @summary Get customer enquiry
|
|
@@ -2119,6 +2166,31 @@ export declare const EnquiriesApiFactory: (configuration?: Configuration, basePa
|
|
|
2119
2166
|
*/
|
|
2120
2167
|
listCustomerEnquiryLogs(requestParameters: EnquiriesApiListCustomerEnquiryLogsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ListCustomerEnquiryLogs200Response>;
|
|
2121
2168
|
};
|
|
2169
|
+
/**
|
|
2170
|
+
* Request parameters for createChatChannel operation in EnquiriesApi.
|
|
2171
|
+
* @export
|
|
2172
|
+
* @interface EnquiriesApiCreateChatChannelRequest
|
|
2173
|
+
*/
|
|
2174
|
+
export interface EnquiriesApiCreateChatChannelRequest {
|
|
2175
|
+
/**
|
|
2176
|
+
* Project unique identifier
|
|
2177
|
+
* @type {string}
|
|
2178
|
+
* @memberof EnquiriesApiCreateChatChannel
|
|
2179
|
+
*/
|
|
2180
|
+
readonly project: string;
|
|
2181
|
+
/**
|
|
2182
|
+
* The platform identifier
|
|
2183
|
+
* @type {string}
|
|
2184
|
+
* @memberof EnquiriesApiCreateChatChannel
|
|
2185
|
+
*/
|
|
2186
|
+
readonly platformId: string;
|
|
2187
|
+
/**
|
|
2188
|
+
* The enquiry identifier
|
|
2189
|
+
* @type {string}
|
|
2190
|
+
* @memberof EnquiriesApiCreateChatChannel
|
|
2191
|
+
*/
|
|
2192
|
+
readonly enquiryId: string;
|
|
2193
|
+
}
|
|
2122
2194
|
/**
|
|
2123
2195
|
* Request parameters for getCustomerEnquiry operation in EnquiriesApi.
|
|
2124
2196
|
* @export
|
|
@@ -2138,7 +2210,7 @@ export interface EnquiriesApiGetCustomerEnquiryRequest {
|
|
|
2138
2210
|
*/
|
|
2139
2211
|
readonly platformId: string;
|
|
2140
2212
|
/**
|
|
2141
|
-
*
|
|
2213
|
+
* The enquiry identifier
|
|
2142
2214
|
* @type {string}
|
|
2143
2215
|
* @memberof EnquiriesApiGetCustomerEnquiry
|
|
2144
2216
|
*/
|
|
@@ -2212,7 +2284,7 @@ export interface EnquiriesApiListCustomerEnquiryLogsRequest {
|
|
|
2212
2284
|
*/
|
|
2213
2285
|
readonly platformId: string;
|
|
2214
2286
|
/**
|
|
2215
|
-
*
|
|
2287
|
+
* The enquiry identifier
|
|
2216
2288
|
* @type {string}
|
|
2217
2289
|
* @memberof EnquiriesApiListCustomerEnquiryLogs
|
|
2218
2290
|
*/
|
|
@@ -2225,6 +2297,15 @@ export interface EnquiriesApiListCustomerEnquiryLogsRequest {
|
|
|
2225
2297
|
* @extends {BaseAPI}
|
|
2226
2298
|
*/
|
|
2227
2299
|
export declare class EnquiriesApi extends BaseAPI {
|
|
2300
|
+
/**
|
|
2301
|
+
* Create a chat channel for a customer enquiry if it doesn\'t exist
|
|
2302
|
+
* @summary Create chat channel
|
|
2303
|
+
* @param {EnquiriesApiCreateChatChannelRequest} requestParameters Request parameters.
|
|
2304
|
+
* @param {*} [options] Override http request option.
|
|
2305
|
+
* @throws {RequiredError}
|
|
2306
|
+
* @memberof EnquiriesApi
|
|
2307
|
+
*/
|
|
2308
|
+
createChatChannel(requestParameters: EnquiriesApiCreateChatChannelRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateChatChannel200Response, any>>;
|
|
2228
2309
|
/**
|
|
2229
2310
|
* Get a customer enquiry
|
|
2230
2311
|
* @summary Get customer enquiry
|
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.23.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -427,12 +427,56 @@ export const ListCustomersSortByEnum = {
|
|
|
427
427
|
*/
|
|
428
428
|
export const EnquiriesApiAxiosParamCreator = function (configuration) {
|
|
429
429
|
return {
|
|
430
|
+
/**
|
|
431
|
+
* Create a chat channel for a customer enquiry if it doesn\'t exist
|
|
432
|
+
* @summary Create chat channel
|
|
433
|
+
* @param {string} project Project unique identifier
|
|
434
|
+
* @param {string} platformId The platform identifier
|
|
435
|
+
* @param {string} enquiryId The enquiry identifier
|
|
436
|
+
* @param {*} [options] Override http request option.
|
|
437
|
+
* @throws {RequiredError}
|
|
438
|
+
*/
|
|
439
|
+
createChatChannel: (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 = {}) {
|
|
440
|
+
// verify required parameter 'project' is not null or undefined
|
|
441
|
+
assertParamExists('createChatChannel', 'project', project);
|
|
442
|
+
// verify required parameter 'platformId' is not null or undefined
|
|
443
|
+
assertParamExists('createChatChannel', 'platformId', platformId);
|
|
444
|
+
// verify required parameter 'enquiryId' is not null or undefined
|
|
445
|
+
assertParamExists('createChatChannel', 'enquiryId', enquiryId);
|
|
446
|
+
const localVarPath = `/v1/platform/{platformId}/customers/enquiries/{enquiryId}/chat-channel`
|
|
447
|
+
.replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
|
|
448
|
+
.replace(`{${"enquiryId"}}`, encodeURIComponent(String(enquiryId)));
|
|
449
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
450
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
451
|
+
let baseOptions;
|
|
452
|
+
if (configuration) {
|
|
453
|
+
baseOptions = configuration.baseOptions;
|
|
454
|
+
}
|
|
455
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
456
|
+
const localVarHeaderParameter = {};
|
|
457
|
+
const localVarQueryParameter = {};
|
|
458
|
+
// authentication session-oauth required
|
|
459
|
+
// oauth required
|
|
460
|
+
yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
461
|
+
// authentication api-key required
|
|
462
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
463
|
+
if (project !== undefined) {
|
|
464
|
+
localVarQueryParameter['project'] = project;
|
|
465
|
+
}
|
|
466
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
467
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
468
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
469
|
+
return {
|
|
470
|
+
url: toPathString(localVarUrlObj),
|
|
471
|
+
options: localVarRequestOptions,
|
|
472
|
+
};
|
|
473
|
+
}),
|
|
430
474
|
/**
|
|
431
475
|
* Get a customer enquiry
|
|
432
476
|
* @summary Get customer enquiry
|
|
433
477
|
* @param {string} project Project unique identifier
|
|
434
478
|
* @param {string} platformId The platform identifier
|
|
435
|
-
* @param {string} enquiryId
|
|
479
|
+
* @param {string} enquiryId The enquiry identifier
|
|
436
480
|
* @param {*} [options] Override http request option.
|
|
437
481
|
* @throws {RequiredError}
|
|
438
482
|
*/
|
|
@@ -540,7 +584,7 @@ export const EnquiriesApiAxiosParamCreator = function (configuration) {
|
|
|
540
584
|
* @summary List customer enquiry Logs
|
|
541
585
|
* @param {string} project Project unique identifier
|
|
542
586
|
* @param {string} platformId The platform identifier
|
|
543
|
-
* @param {string} enquiryId
|
|
587
|
+
* @param {string} enquiryId The enquiry identifier
|
|
544
588
|
* @param {*} [options] Override http request option.
|
|
545
589
|
* @throws {RequiredError}
|
|
546
590
|
*/
|
|
@@ -588,12 +632,30 @@ export const EnquiriesApiAxiosParamCreator = function (configuration) {
|
|
|
588
632
|
export const EnquiriesApiFp = function (configuration) {
|
|
589
633
|
const localVarAxiosParamCreator = EnquiriesApiAxiosParamCreator(configuration);
|
|
590
634
|
return {
|
|
635
|
+
/**
|
|
636
|
+
* Create a chat channel for a customer enquiry if it doesn\'t exist
|
|
637
|
+
* @summary Create chat channel
|
|
638
|
+
* @param {string} project Project unique identifier
|
|
639
|
+
* @param {string} platformId The platform identifier
|
|
640
|
+
* @param {string} enquiryId The enquiry identifier
|
|
641
|
+
* @param {*} [options] Override http request option.
|
|
642
|
+
* @throws {RequiredError}
|
|
643
|
+
*/
|
|
644
|
+
createChatChannel(project, platformId, enquiryId, options) {
|
|
645
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
646
|
+
var _a, _b, _c;
|
|
647
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createChatChannel(project, platformId, enquiryId, options);
|
|
648
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
649
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EnquiriesApi.createChatChannel']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
650
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
651
|
+
});
|
|
652
|
+
},
|
|
591
653
|
/**
|
|
592
654
|
* Get a customer enquiry
|
|
593
655
|
* @summary Get customer enquiry
|
|
594
656
|
* @param {string} project Project unique identifier
|
|
595
657
|
* @param {string} platformId The platform identifier
|
|
596
|
-
* @param {string} enquiryId
|
|
658
|
+
* @param {string} enquiryId The enquiry identifier
|
|
597
659
|
* @param {*} [options] Override http request option.
|
|
598
660
|
* @throws {RequiredError}
|
|
599
661
|
*/
|
|
@@ -633,7 +695,7 @@ export const EnquiriesApiFp = function (configuration) {
|
|
|
633
695
|
* @summary List customer enquiry Logs
|
|
634
696
|
* @param {string} project Project unique identifier
|
|
635
697
|
* @param {string} platformId The platform identifier
|
|
636
|
-
* @param {string} enquiryId
|
|
698
|
+
* @param {string} enquiryId The enquiry identifier
|
|
637
699
|
* @param {*} [options] Override http request option.
|
|
638
700
|
* @throws {RequiredError}
|
|
639
701
|
*/
|
|
@@ -655,6 +717,16 @@ export const EnquiriesApiFp = function (configuration) {
|
|
|
655
717
|
export const EnquiriesApiFactory = function (configuration, basePath, axios) {
|
|
656
718
|
const localVarFp = EnquiriesApiFp(configuration);
|
|
657
719
|
return {
|
|
720
|
+
/**
|
|
721
|
+
* Create a chat channel for a customer enquiry if it doesn\'t exist
|
|
722
|
+
* @summary Create chat channel
|
|
723
|
+
* @param {EnquiriesApiCreateChatChannelRequest} requestParameters Request parameters.
|
|
724
|
+
* @param {*} [options] Override http request option.
|
|
725
|
+
* @throws {RequiredError}
|
|
726
|
+
*/
|
|
727
|
+
createChatChannel(requestParameters, options) {
|
|
728
|
+
return localVarFp.createChatChannel(requestParameters.project, requestParameters.platformId, requestParameters.enquiryId, options).then((request) => request(axios, basePath));
|
|
729
|
+
},
|
|
658
730
|
/**
|
|
659
731
|
* Get a customer enquiry
|
|
660
732
|
* @summary Get customer enquiry
|
|
@@ -694,6 +766,17 @@ export const EnquiriesApiFactory = function (configuration, basePath, axios) {
|
|
|
694
766
|
* @extends {BaseAPI}
|
|
695
767
|
*/
|
|
696
768
|
export class EnquiriesApi extends BaseAPI {
|
|
769
|
+
/**
|
|
770
|
+
* Create a chat channel for a customer enquiry if it doesn\'t exist
|
|
771
|
+
* @summary Create chat channel
|
|
772
|
+
* @param {EnquiriesApiCreateChatChannelRequest} requestParameters Request parameters.
|
|
773
|
+
* @param {*} [options] Override http request option.
|
|
774
|
+
* @throws {RequiredError}
|
|
775
|
+
* @memberof EnquiriesApi
|
|
776
|
+
*/
|
|
777
|
+
createChatChannel(requestParameters, options) {
|
|
778
|
+
return EnquiriesApiFp(this.configuration).createChatChannel(requestParameters.project, requestParameters.platformId, requestParameters.enquiryId, options).then((request) => request(this.axios, this.basePath));
|
|
779
|
+
}
|
|
697
780
|
/**
|
|
698
781
|
* Get a customer enquiry
|
|
699
782
|
* @summary Get customer enquiry
|
|
@@ -1672,7 +1755,7 @@ export const PlatformApiAxiosParamCreator = function (configuration) {
|
|
|
1672
1755
|
createClientDomain: (project_1, createDomainRequest_1, ...args_1) => __awaiter(this, [project_1, createDomainRequest_1, ...args_1], void 0, function* (project, createDomainRequest, options = {}) {
|
|
1673
1756
|
// verify required parameter 'project' is not null or undefined
|
|
1674
1757
|
assertParamExists('createClientDomain', 'project', project);
|
|
1675
|
-
const localVarPath = `/v1/platform/
|
|
1758
|
+
const localVarPath = `/v1/platform/client/domains`;
|
|
1676
1759
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1677
1760
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1678
1761
|
let baseOptions;
|
|
@@ -1752,7 +1835,7 @@ export const PlatformApiAxiosParamCreator = function (configuration) {
|
|
|
1752
1835
|
assertParamExists('deleteClientDomain', 'project', project);
|
|
1753
1836
|
// verify required parameter 'domain' is not null or undefined
|
|
1754
1837
|
assertParamExists('deleteClientDomain', 'domain', domain);
|
|
1755
|
-
const localVarPath = `/v1/platform/
|
|
1838
|
+
const localVarPath = `/v1/platform/client/domains/{domain}`
|
|
1756
1839
|
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
1757
1840
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1758
1841
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -1865,7 +1948,7 @@ export const PlatformApiAxiosParamCreator = function (configuration) {
|
|
|
1865
1948
|
listClientDomains: (project_1, ...args_1) => __awaiter(this, [project_1, ...args_1], void 0, function* (project, options = {}) {
|
|
1866
1949
|
// verify required parameter 'project' is not null or undefined
|
|
1867
1950
|
assertParamExists('listClientDomains', 'project', project);
|
|
1868
|
-
const localVarPath = `/v1/platform/
|
|
1951
|
+
const localVarPath = `/v1/platform/client/domains`;
|
|
1869
1952
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1870
1953
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1871
1954
|
let baseOptions;
|
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