@teemill/platform 0.38.2 → 0.40.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 +5 -4
- package/api.ts +135 -22
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +73 -15
- package/dist/api.js +96 -14
- 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 +73 -15
- package/dist/esm/api.js +96 -14
- 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/CreateOrderChatChannel200Response.md +20 -0
- package/docs/CreateReviewPayload.md +2 -0
- package/docs/CreateReviewRequest.md +2 -0
- package/docs/EnquiriesApi.md +5 -5
- package/docs/Order.md +2 -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.40.0
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -847,13 +847,13 @@ const EnquiriesApiAxiosParamCreator = function (configuration) {
|
|
|
847
847
|
* @param {*} [options] Override http request option.
|
|
848
848
|
* @throws {RequiredError}
|
|
849
849
|
*/
|
|
850
|
-
|
|
850
|
+
createCustomerEnquiryChatChannel: (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 = {}) {
|
|
851
851
|
// verify required parameter 'project' is not null or undefined
|
|
852
|
-
(0, common_1.assertParamExists)('
|
|
852
|
+
(0, common_1.assertParamExists)('createCustomerEnquiryChatChannel', 'project', project);
|
|
853
853
|
// verify required parameter 'platformId' is not null or undefined
|
|
854
|
-
(0, common_1.assertParamExists)('
|
|
854
|
+
(0, common_1.assertParamExists)('createCustomerEnquiryChatChannel', 'platformId', platformId);
|
|
855
855
|
// verify required parameter 'enquiryId' is not null or undefined
|
|
856
|
-
(0, common_1.assertParamExists)('
|
|
856
|
+
(0, common_1.assertParamExists)('createCustomerEnquiryChatChannel', 'enquiryId', enquiryId);
|
|
857
857
|
const localVarPath = `/v1/platform/{platformId}/customers/enquiries/{enquiryId}/chat-channel`
|
|
858
858
|
.replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
|
|
859
859
|
.replace(`{${"enquiryId"}}`, encodeURIComponent(String(enquiryId)));
|
|
@@ -1101,12 +1101,12 @@ const EnquiriesApiFp = function (configuration) {
|
|
|
1101
1101
|
* @param {*} [options] Override http request option.
|
|
1102
1102
|
* @throws {RequiredError}
|
|
1103
1103
|
*/
|
|
1104
|
-
|
|
1104
|
+
createCustomerEnquiryChatChannel(project, platformId, enquiryId, options) {
|
|
1105
1105
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1106
1106
|
var _a, _b, _c;
|
|
1107
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
1107
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createCustomerEnquiryChatChannel(project, platformId, enquiryId, options);
|
|
1108
1108
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1109
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EnquiriesApi.
|
|
1109
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EnquiriesApi.createCustomerEnquiryChatChannel']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1110
1110
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1111
1111
|
});
|
|
1112
1112
|
},
|
|
@@ -1199,12 +1199,12 @@ const EnquiriesApiFactory = function (configuration, basePath, axios) {
|
|
|
1199
1199
|
/**
|
|
1200
1200
|
* Create a chat channel for a customer enquiry if it doesn\'t exist
|
|
1201
1201
|
* @summary Create chat channel
|
|
1202
|
-
* @param {
|
|
1202
|
+
* @param {EnquiriesApiCreateCustomerEnquiryChatChannelRequest} requestParameters Request parameters.
|
|
1203
1203
|
* @param {*} [options] Override http request option.
|
|
1204
1204
|
* @throws {RequiredError}
|
|
1205
1205
|
*/
|
|
1206
|
-
|
|
1207
|
-
return localVarFp.
|
|
1206
|
+
createCustomerEnquiryChatChannel(requestParameters, options) {
|
|
1207
|
+
return localVarFp.createCustomerEnquiryChatChannel(requestParameters.project, requestParameters.platformId, requestParameters.enquiryId, options).then((request) => request(axios, basePath));
|
|
1208
1208
|
},
|
|
1209
1209
|
/**
|
|
1210
1210
|
* Get a customer enquiry
|
|
@@ -1256,12 +1256,12 @@ class EnquiriesApi extends base_1.BaseAPI {
|
|
|
1256
1256
|
/**
|
|
1257
1257
|
* Create a chat channel for a customer enquiry if it doesn\'t exist
|
|
1258
1258
|
* @summary Create chat channel
|
|
1259
|
-
* @param {
|
|
1259
|
+
* @param {EnquiriesApiCreateCustomerEnquiryChatChannelRequest} requestParameters Request parameters.
|
|
1260
1260
|
* @param {*} [options] Override http request option.
|
|
1261
1261
|
* @throws {RequiredError}
|
|
1262
1262
|
*/
|
|
1263
|
-
|
|
1264
|
-
return (0, exports.EnquiriesApiFp)(this.configuration).
|
|
1263
|
+
createCustomerEnquiryChatChannel(requestParameters, options) {
|
|
1264
|
+
return (0, exports.EnquiriesApiFp)(this.configuration).createCustomerEnquiryChatChannel(requestParameters.project, requestParameters.platformId, requestParameters.enquiryId, options).then((request) => request(this.axios, this.basePath));
|
|
1265
1265
|
}
|
|
1266
1266
|
/**
|
|
1267
1267
|
* Get a customer enquiry
|
|
@@ -1453,6 +1453,50 @@ const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
1453
1453
|
options: localVarRequestOptions,
|
|
1454
1454
|
};
|
|
1455
1455
|
}),
|
|
1456
|
+
/**
|
|
1457
|
+
* Create a chat channel for a platform order if it doesn\'t exist
|
|
1458
|
+
* @summary Create chat channel
|
|
1459
|
+
* @param {string} project Project unique identifier
|
|
1460
|
+
* @param {string} platformId The platform identifier
|
|
1461
|
+
* @param {string} orderId The order identifier
|
|
1462
|
+
* @param {*} [options] Override http request option.
|
|
1463
|
+
* @throws {RequiredError}
|
|
1464
|
+
*/
|
|
1465
|
+
createOrderChatChannel: (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 = {}) {
|
|
1466
|
+
// verify required parameter 'project' is not null or undefined
|
|
1467
|
+
(0, common_1.assertParamExists)('createOrderChatChannel', 'project', project);
|
|
1468
|
+
// verify required parameter 'platformId' is not null or undefined
|
|
1469
|
+
(0, common_1.assertParamExists)('createOrderChatChannel', 'platformId', platformId);
|
|
1470
|
+
// verify required parameter 'orderId' is not null or undefined
|
|
1471
|
+
(0, common_1.assertParamExists)('createOrderChatChannel', 'orderId', orderId);
|
|
1472
|
+
const localVarPath = `/v1/platform/{platformId}/orders/{orderId}/chat-channel`
|
|
1473
|
+
.replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
|
|
1474
|
+
.replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)));
|
|
1475
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1476
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1477
|
+
let baseOptions;
|
|
1478
|
+
if (configuration) {
|
|
1479
|
+
baseOptions = configuration.baseOptions;
|
|
1480
|
+
}
|
|
1481
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1482
|
+
const localVarHeaderParameter = {};
|
|
1483
|
+
const localVarQueryParameter = {};
|
|
1484
|
+
// authentication session-oauth required
|
|
1485
|
+
// oauth required
|
|
1486
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
1487
|
+
// authentication api-key required
|
|
1488
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
1489
|
+
if (project !== undefined) {
|
|
1490
|
+
localVarQueryParameter['project'] = project;
|
|
1491
|
+
}
|
|
1492
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1493
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1494
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1495
|
+
return {
|
|
1496
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1497
|
+
options: localVarRequestOptions,
|
|
1498
|
+
};
|
|
1499
|
+
}),
|
|
1456
1500
|
/**
|
|
1457
1501
|
* Export orders as a CSV file
|
|
1458
1502
|
* @summary Export orders
|
|
@@ -2014,6 +2058,24 @@ const OrdersApiFp = function (configuration) {
|
|
|
2014
2058
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2015
2059
|
});
|
|
2016
2060
|
},
|
|
2061
|
+
/**
|
|
2062
|
+
* Create a chat channel for a platform order if it doesn\'t exist
|
|
2063
|
+
* @summary Create chat channel
|
|
2064
|
+
* @param {string} project Project unique identifier
|
|
2065
|
+
* @param {string} platformId The platform identifier
|
|
2066
|
+
* @param {string} orderId The order identifier
|
|
2067
|
+
* @param {*} [options] Override http request option.
|
|
2068
|
+
* @throws {RequiredError}
|
|
2069
|
+
*/
|
|
2070
|
+
createOrderChatChannel(project, platformId, orderId, options) {
|
|
2071
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2072
|
+
var _a, _b, _c;
|
|
2073
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createOrderChatChannel(project, platformId, orderId, options);
|
|
2074
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2075
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.createOrderChatChannel']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2076
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2077
|
+
});
|
|
2078
|
+
},
|
|
2017
2079
|
/**
|
|
2018
2080
|
* Export orders as a CSV file
|
|
2019
2081
|
* @summary Export orders
|
|
@@ -2244,6 +2306,16 @@ const OrdersApiFactory = function (configuration, basePath, axios) {
|
|
|
2244
2306
|
createOrder(requestParameters, options) {
|
|
2245
2307
|
return localVarFp.createOrder(requestParameters.project, requestParameters.platformId, requestParameters.createOrder, options).then((request) => request(axios, basePath));
|
|
2246
2308
|
},
|
|
2309
|
+
/**
|
|
2310
|
+
* Create a chat channel for a platform order if it doesn\'t exist
|
|
2311
|
+
* @summary Create chat channel
|
|
2312
|
+
* @param {OrdersApiCreateOrderChatChannelRequest} requestParameters Request parameters.
|
|
2313
|
+
* @param {*} [options] Override http request option.
|
|
2314
|
+
* @throws {RequiredError}
|
|
2315
|
+
*/
|
|
2316
|
+
createOrderChatChannel(requestParameters, options) {
|
|
2317
|
+
return localVarFp.createOrderChatChannel(requestParameters.project, requestParameters.platformId, requestParameters.orderId, options).then((request) => request(axios, basePath));
|
|
2318
|
+
},
|
|
2247
2319
|
/**
|
|
2248
2320
|
* Export orders as a CSV file
|
|
2249
2321
|
* @summary Export orders
|
|
@@ -2381,6 +2453,16 @@ class OrdersApi extends base_1.BaseAPI {
|
|
|
2381
2453
|
createOrder(requestParameters, options) {
|
|
2382
2454
|
return (0, exports.OrdersApiFp)(this.configuration).createOrder(requestParameters.project, requestParameters.platformId, requestParameters.createOrder, options).then((request) => request(this.axios, this.basePath));
|
|
2383
2455
|
}
|
|
2456
|
+
/**
|
|
2457
|
+
* Create a chat channel for a platform order if it doesn\'t exist
|
|
2458
|
+
* @summary Create chat channel
|
|
2459
|
+
* @param {OrdersApiCreateOrderChatChannelRequest} requestParameters Request parameters.
|
|
2460
|
+
* @param {*} [options] Override http request option.
|
|
2461
|
+
* @throws {RequiredError}
|
|
2462
|
+
*/
|
|
2463
|
+
createOrderChatChannel(requestParameters, options) {
|
|
2464
|
+
return (0, exports.OrdersApiFp)(this.configuration).createOrderChatChannel(requestParameters.project, requestParameters.platformId, requestParameters.orderId, options).then((request) => request(this.axios, this.basePath));
|
|
2465
|
+
}
|
|
2384
2466
|
/**
|
|
2385
2467
|
* Export orders as a CSV file
|
|
2386
2468
|
* @summary Export orders
|
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.40.0
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -164,12 +164,6 @@ export interface Coupon {
|
|
|
164
164
|
'id': string;
|
|
165
165
|
'code': string;
|
|
166
166
|
}
|
|
167
|
-
export interface CreateChatChannel200Response {
|
|
168
|
-
/**
|
|
169
|
-
* Reference to the chat channel resource
|
|
170
|
-
*/
|
|
171
|
-
'chatChannelRef': string;
|
|
172
|
-
}
|
|
173
167
|
export interface CreateDomainRequest {
|
|
174
168
|
'domain'?: string;
|
|
175
169
|
}
|
|
@@ -199,6 +193,12 @@ export interface CreateOrder {
|
|
|
199
193
|
*/
|
|
200
194
|
'client'?: string;
|
|
201
195
|
}
|
|
196
|
+
export interface CreateOrderChatChannel200Response {
|
|
197
|
+
/**
|
|
198
|
+
* Reference to the chat channel resource
|
|
199
|
+
*/
|
|
200
|
+
'chatChannelRef': string;
|
|
201
|
+
}
|
|
202
202
|
/**
|
|
203
203
|
* Contact information for the order
|
|
204
204
|
*/
|
|
@@ -247,6 +247,7 @@ export interface CreateReviewPayload {
|
|
|
247
247
|
* A reference to the project being ordered
|
|
248
248
|
*/
|
|
249
249
|
'projectRef': string;
|
|
250
|
+
'createdAt'?: string;
|
|
250
251
|
}
|
|
251
252
|
export interface CreateReviewPayloadAuthor {
|
|
252
253
|
/**
|
|
@@ -542,6 +543,10 @@ export interface Order {
|
|
|
542
543
|
* The integration type of the order, e.g. \"website\" or \"shopify\"
|
|
543
544
|
*/
|
|
544
545
|
'integrationType'?: string;
|
|
546
|
+
/**
|
|
547
|
+
* Reference to the chat channel resource
|
|
548
|
+
*/
|
|
549
|
+
'chatChannelRef'?: string | null;
|
|
545
550
|
}
|
|
546
551
|
export interface OrderItem {
|
|
547
552
|
/**
|
|
@@ -1545,7 +1550,7 @@ export declare const EnquiriesApiAxiosParamCreator: (configuration?: Configurati
|
|
|
1545
1550
|
* @param {*} [options] Override http request option.
|
|
1546
1551
|
* @throws {RequiredError}
|
|
1547
1552
|
*/
|
|
1548
|
-
|
|
1553
|
+
createCustomerEnquiryChatChannel: (project: string, platformId: string, enquiryId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1549
1554
|
/**
|
|
1550
1555
|
* Get a customer enquiry
|
|
1551
1556
|
* @summary Get customer enquiry
|
|
@@ -1605,7 +1610,7 @@ export declare const EnquiriesApiFp: (configuration?: Configuration) => {
|
|
|
1605
1610
|
* @param {*} [options] Override http request option.
|
|
1606
1611
|
* @throws {RequiredError}
|
|
1607
1612
|
*/
|
|
1608
|
-
|
|
1613
|
+
createCustomerEnquiryChatChannel(project: string, platformId: string, enquiryId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateOrderChatChannel200Response>>;
|
|
1609
1614
|
/**
|
|
1610
1615
|
* Get a customer enquiry
|
|
1611
1616
|
* @summary Get customer enquiry
|
|
@@ -1659,11 +1664,11 @@ export declare const EnquiriesApiFactory: (configuration?: Configuration, basePa
|
|
|
1659
1664
|
/**
|
|
1660
1665
|
* Create a chat channel for a customer enquiry if it doesn\'t exist
|
|
1661
1666
|
* @summary Create chat channel
|
|
1662
|
-
* @param {
|
|
1667
|
+
* @param {EnquiriesApiCreateCustomerEnquiryChatChannelRequest} requestParameters Request parameters.
|
|
1663
1668
|
* @param {*} [options] Override http request option.
|
|
1664
1669
|
* @throws {RequiredError}
|
|
1665
1670
|
*/
|
|
1666
|
-
|
|
1671
|
+
createCustomerEnquiryChatChannel(requestParameters: EnquiriesApiCreateCustomerEnquiryChatChannelRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateOrderChatChannel200Response>;
|
|
1667
1672
|
/**
|
|
1668
1673
|
* Get a customer enquiry
|
|
1669
1674
|
* @summary Get customer enquiry
|
|
@@ -1698,9 +1703,9 @@ export declare const EnquiriesApiFactory: (configuration?: Configuration, basePa
|
|
|
1698
1703
|
updateCustomerEnquiry(requestParameters: EnquiriesApiUpdateCustomerEnquiryRequest, options?: RawAxiosRequestConfig): AxiosPromise<Enquiry>;
|
|
1699
1704
|
};
|
|
1700
1705
|
/**
|
|
1701
|
-
* Request parameters for
|
|
1706
|
+
* Request parameters for createCustomerEnquiryChatChannel operation in EnquiriesApi.
|
|
1702
1707
|
*/
|
|
1703
|
-
export interface
|
|
1708
|
+
export interface EnquiriesApiCreateCustomerEnquiryChatChannelRequest {
|
|
1704
1709
|
/**
|
|
1705
1710
|
* Project unique identifier
|
|
1706
1711
|
*/
|
|
@@ -1809,11 +1814,11 @@ export declare class EnquiriesApi extends BaseAPI {
|
|
|
1809
1814
|
/**
|
|
1810
1815
|
* Create a chat channel for a customer enquiry if it doesn\'t exist
|
|
1811
1816
|
* @summary Create chat channel
|
|
1812
|
-
* @param {
|
|
1817
|
+
* @param {EnquiriesApiCreateCustomerEnquiryChatChannelRequest} requestParameters Request parameters.
|
|
1813
1818
|
* @param {*} [options] Override http request option.
|
|
1814
1819
|
* @throws {RequiredError}
|
|
1815
1820
|
*/
|
|
1816
|
-
|
|
1821
|
+
createCustomerEnquiryChatChannel(requestParameters: EnquiriesApiCreateCustomerEnquiryChatChannelRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateOrderChatChannel200Response, any, {}>>;
|
|
1817
1822
|
/**
|
|
1818
1823
|
* Get a customer enquiry
|
|
1819
1824
|
* @summary Get customer enquiry
|
|
@@ -1883,6 +1888,16 @@ export declare const OrdersApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
1883
1888
|
* @throws {RequiredError}
|
|
1884
1889
|
*/
|
|
1885
1890
|
createOrder: (project: string, platformId: string, createOrder: CreateOrder, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1891
|
+
/**
|
|
1892
|
+
* Create a chat channel for a platform order if it doesn\'t exist
|
|
1893
|
+
* @summary Create chat channel
|
|
1894
|
+
* @param {string} project Project unique identifier
|
|
1895
|
+
* @param {string} platformId The platform identifier
|
|
1896
|
+
* @param {string} orderId The order identifier
|
|
1897
|
+
* @param {*} [options] Override http request option.
|
|
1898
|
+
* @throws {RequiredError}
|
|
1899
|
+
*/
|
|
1900
|
+
createOrderChatChannel: (project: string, platformId: string, orderId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1886
1901
|
/**
|
|
1887
1902
|
* Export orders as a CSV file
|
|
1888
1903
|
* @summary Export orders
|
|
@@ -2031,6 +2046,16 @@ export declare const OrdersApiFp: (configuration?: Configuration) => {
|
|
|
2031
2046
|
* @throws {RequiredError}
|
|
2032
2047
|
*/
|
|
2033
2048
|
createOrder(project: string, platformId: string, createOrder: CreateOrder, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Order>>;
|
|
2049
|
+
/**
|
|
2050
|
+
* Create a chat channel for a platform order if it doesn\'t exist
|
|
2051
|
+
* @summary Create chat channel
|
|
2052
|
+
* @param {string} project Project unique identifier
|
|
2053
|
+
* @param {string} platformId The platform identifier
|
|
2054
|
+
* @param {string} orderId The order identifier
|
|
2055
|
+
* @param {*} [options] Override http request option.
|
|
2056
|
+
* @throws {RequiredError}
|
|
2057
|
+
*/
|
|
2058
|
+
createOrderChatChannel(project: string, platformId: string, orderId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateOrderChatChannel200Response>>;
|
|
2034
2059
|
/**
|
|
2035
2060
|
* Export orders as a CSV file
|
|
2036
2061
|
* @summary Export orders
|
|
@@ -2171,6 +2196,14 @@ export declare const OrdersApiFactory: (configuration?: Configuration, basePath?
|
|
|
2171
2196
|
* @throws {RequiredError}
|
|
2172
2197
|
*/
|
|
2173
2198
|
createOrder(requestParameters: OrdersApiCreateOrderRequest, options?: RawAxiosRequestConfig): AxiosPromise<Order>;
|
|
2199
|
+
/**
|
|
2200
|
+
* Create a chat channel for a platform order if it doesn\'t exist
|
|
2201
|
+
* @summary Create chat channel
|
|
2202
|
+
* @param {OrdersApiCreateOrderChatChannelRequest} requestParameters Request parameters.
|
|
2203
|
+
* @param {*} [options] Override http request option.
|
|
2204
|
+
* @throws {RequiredError}
|
|
2205
|
+
*/
|
|
2206
|
+
createOrderChatChannel(requestParameters: OrdersApiCreateOrderChatChannelRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateOrderChatChannel200Response>;
|
|
2174
2207
|
/**
|
|
2175
2208
|
* Export orders as a CSV file
|
|
2176
2209
|
* @summary Export orders
|
|
@@ -2311,6 +2344,23 @@ export interface OrdersApiCreateOrderRequest {
|
|
|
2311
2344
|
*/
|
|
2312
2345
|
readonly createOrder: CreateOrder;
|
|
2313
2346
|
}
|
|
2347
|
+
/**
|
|
2348
|
+
* Request parameters for createOrderChatChannel operation in OrdersApi.
|
|
2349
|
+
*/
|
|
2350
|
+
export interface OrdersApiCreateOrderChatChannelRequest {
|
|
2351
|
+
/**
|
|
2352
|
+
* Project unique identifier
|
|
2353
|
+
*/
|
|
2354
|
+
readonly project: string;
|
|
2355
|
+
/**
|
|
2356
|
+
* The platform identifier
|
|
2357
|
+
*/
|
|
2358
|
+
readonly platformId: string;
|
|
2359
|
+
/**
|
|
2360
|
+
* The order identifier
|
|
2361
|
+
*/
|
|
2362
|
+
readonly orderId: string;
|
|
2363
|
+
}
|
|
2314
2364
|
/**
|
|
2315
2365
|
* Request parameters for exportOrders operation in OrdersApi.
|
|
2316
2366
|
*/
|
|
@@ -2550,6 +2600,14 @@ export declare class OrdersApi extends BaseAPI {
|
|
|
2550
2600
|
* @throws {RequiredError}
|
|
2551
2601
|
*/
|
|
2552
2602
|
createOrder(requestParameters: OrdersApiCreateOrderRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Order, any, {}>>;
|
|
2603
|
+
/**
|
|
2604
|
+
* Create a chat channel for a platform order if it doesn\'t exist
|
|
2605
|
+
* @summary Create chat channel
|
|
2606
|
+
* @param {OrdersApiCreateOrderChatChannelRequest} requestParameters Request parameters.
|
|
2607
|
+
* @param {*} [options] Override http request option.
|
|
2608
|
+
* @throws {RequiredError}
|
|
2609
|
+
*/
|
|
2610
|
+
createOrderChatChannel(requestParameters: OrdersApiCreateOrderChatChannelRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateOrderChatChannel200Response, any, {}>>;
|
|
2553
2611
|
/**
|
|
2554
2612
|
* Export orders as a CSV file
|
|
2555
2613
|
* @summary Export orders
|
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.40.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -836,13 +836,13 @@ export const EnquiriesApiAxiosParamCreator = function (configuration) {
|
|
|
836
836
|
* @param {*} [options] Override http request option.
|
|
837
837
|
* @throws {RequiredError}
|
|
838
838
|
*/
|
|
839
|
-
|
|
839
|
+
createCustomerEnquiryChatChannel: (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 = {}) {
|
|
840
840
|
// verify required parameter 'project' is not null or undefined
|
|
841
|
-
assertParamExists('
|
|
841
|
+
assertParamExists('createCustomerEnquiryChatChannel', 'project', project);
|
|
842
842
|
// verify required parameter 'platformId' is not null or undefined
|
|
843
|
-
assertParamExists('
|
|
843
|
+
assertParamExists('createCustomerEnquiryChatChannel', 'platformId', platformId);
|
|
844
844
|
// verify required parameter 'enquiryId' is not null or undefined
|
|
845
|
-
assertParamExists('
|
|
845
|
+
assertParamExists('createCustomerEnquiryChatChannel', 'enquiryId', enquiryId);
|
|
846
846
|
const localVarPath = `/v1/platform/{platformId}/customers/enquiries/{enquiryId}/chat-channel`
|
|
847
847
|
.replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
|
|
848
848
|
.replace(`{${"enquiryId"}}`, encodeURIComponent(String(enquiryId)));
|
|
@@ -1089,12 +1089,12 @@ export const EnquiriesApiFp = function (configuration) {
|
|
|
1089
1089
|
* @param {*} [options] Override http request option.
|
|
1090
1090
|
* @throws {RequiredError}
|
|
1091
1091
|
*/
|
|
1092
|
-
|
|
1092
|
+
createCustomerEnquiryChatChannel(project, platformId, enquiryId, options) {
|
|
1093
1093
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1094
1094
|
var _a, _b, _c;
|
|
1095
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
1095
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createCustomerEnquiryChatChannel(project, platformId, enquiryId, options);
|
|
1096
1096
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1097
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EnquiriesApi.
|
|
1097
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EnquiriesApi.createCustomerEnquiryChatChannel']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1098
1098
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1099
1099
|
});
|
|
1100
1100
|
},
|
|
@@ -1186,12 +1186,12 @@ export const EnquiriesApiFactory = function (configuration, basePath, axios) {
|
|
|
1186
1186
|
/**
|
|
1187
1187
|
* Create a chat channel for a customer enquiry if it doesn\'t exist
|
|
1188
1188
|
* @summary Create chat channel
|
|
1189
|
-
* @param {
|
|
1189
|
+
* @param {EnquiriesApiCreateCustomerEnquiryChatChannelRequest} requestParameters Request parameters.
|
|
1190
1190
|
* @param {*} [options] Override http request option.
|
|
1191
1191
|
* @throws {RequiredError}
|
|
1192
1192
|
*/
|
|
1193
|
-
|
|
1194
|
-
return localVarFp.
|
|
1193
|
+
createCustomerEnquiryChatChannel(requestParameters, options) {
|
|
1194
|
+
return localVarFp.createCustomerEnquiryChatChannel(requestParameters.project, requestParameters.platformId, requestParameters.enquiryId, options).then((request) => request(axios, basePath));
|
|
1195
1195
|
},
|
|
1196
1196
|
/**
|
|
1197
1197
|
* Get a customer enquiry
|
|
@@ -1242,12 +1242,12 @@ export class EnquiriesApi extends BaseAPI {
|
|
|
1242
1242
|
/**
|
|
1243
1243
|
* Create a chat channel for a customer enquiry if it doesn\'t exist
|
|
1244
1244
|
* @summary Create chat channel
|
|
1245
|
-
* @param {
|
|
1245
|
+
* @param {EnquiriesApiCreateCustomerEnquiryChatChannelRequest} requestParameters Request parameters.
|
|
1246
1246
|
* @param {*} [options] Override http request option.
|
|
1247
1247
|
* @throws {RequiredError}
|
|
1248
1248
|
*/
|
|
1249
|
-
|
|
1250
|
-
return EnquiriesApiFp(this.configuration).
|
|
1249
|
+
createCustomerEnquiryChatChannel(requestParameters, options) {
|
|
1250
|
+
return EnquiriesApiFp(this.configuration).createCustomerEnquiryChatChannel(requestParameters.project, requestParameters.platformId, requestParameters.enquiryId, options).then((request) => request(this.axios, this.basePath));
|
|
1251
1251
|
}
|
|
1252
1252
|
/**
|
|
1253
1253
|
* Get a customer enquiry
|
|
@@ -1438,6 +1438,50 @@ export const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
1438
1438
|
options: localVarRequestOptions,
|
|
1439
1439
|
};
|
|
1440
1440
|
}),
|
|
1441
|
+
/**
|
|
1442
|
+
* Create a chat channel for a platform order if it doesn\'t exist
|
|
1443
|
+
* @summary Create chat channel
|
|
1444
|
+
* @param {string} project Project unique identifier
|
|
1445
|
+
* @param {string} platformId The platform identifier
|
|
1446
|
+
* @param {string} orderId The order identifier
|
|
1447
|
+
* @param {*} [options] Override http request option.
|
|
1448
|
+
* @throws {RequiredError}
|
|
1449
|
+
*/
|
|
1450
|
+
createOrderChatChannel: (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 = {}) {
|
|
1451
|
+
// verify required parameter 'project' is not null or undefined
|
|
1452
|
+
assertParamExists('createOrderChatChannel', 'project', project);
|
|
1453
|
+
// verify required parameter 'platformId' is not null or undefined
|
|
1454
|
+
assertParamExists('createOrderChatChannel', 'platformId', platformId);
|
|
1455
|
+
// verify required parameter 'orderId' is not null or undefined
|
|
1456
|
+
assertParamExists('createOrderChatChannel', 'orderId', orderId);
|
|
1457
|
+
const localVarPath = `/v1/platform/{platformId}/orders/{orderId}/chat-channel`
|
|
1458
|
+
.replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
|
|
1459
|
+
.replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)));
|
|
1460
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1461
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1462
|
+
let baseOptions;
|
|
1463
|
+
if (configuration) {
|
|
1464
|
+
baseOptions = configuration.baseOptions;
|
|
1465
|
+
}
|
|
1466
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1467
|
+
const localVarHeaderParameter = {};
|
|
1468
|
+
const localVarQueryParameter = {};
|
|
1469
|
+
// authentication session-oauth required
|
|
1470
|
+
// oauth required
|
|
1471
|
+
yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
1472
|
+
// authentication api-key required
|
|
1473
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
1474
|
+
if (project !== undefined) {
|
|
1475
|
+
localVarQueryParameter['project'] = project;
|
|
1476
|
+
}
|
|
1477
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1478
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1479
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1480
|
+
return {
|
|
1481
|
+
url: toPathString(localVarUrlObj),
|
|
1482
|
+
options: localVarRequestOptions,
|
|
1483
|
+
};
|
|
1484
|
+
}),
|
|
1441
1485
|
/**
|
|
1442
1486
|
* Export orders as a CSV file
|
|
1443
1487
|
* @summary Export orders
|
|
@@ -1998,6 +2042,24 @@ export const OrdersApiFp = function (configuration) {
|
|
|
1998
2042
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1999
2043
|
});
|
|
2000
2044
|
},
|
|
2045
|
+
/**
|
|
2046
|
+
* Create a chat channel for a platform order if it doesn\'t exist
|
|
2047
|
+
* @summary Create chat channel
|
|
2048
|
+
* @param {string} project Project unique identifier
|
|
2049
|
+
* @param {string} platformId The platform identifier
|
|
2050
|
+
* @param {string} orderId The order identifier
|
|
2051
|
+
* @param {*} [options] Override http request option.
|
|
2052
|
+
* @throws {RequiredError}
|
|
2053
|
+
*/
|
|
2054
|
+
createOrderChatChannel(project, platformId, orderId, options) {
|
|
2055
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2056
|
+
var _a, _b, _c;
|
|
2057
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createOrderChatChannel(project, platformId, orderId, options);
|
|
2058
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2059
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['OrdersApi.createOrderChatChannel']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2060
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2061
|
+
});
|
|
2062
|
+
},
|
|
2001
2063
|
/**
|
|
2002
2064
|
* Export orders as a CSV file
|
|
2003
2065
|
* @summary Export orders
|
|
@@ -2227,6 +2289,16 @@ export const OrdersApiFactory = function (configuration, basePath, axios) {
|
|
|
2227
2289
|
createOrder(requestParameters, options) {
|
|
2228
2290
|
return localVarFp.createOrder(requestParameters.project, requestParameters.platformId, requestParameters.createOrder, options).then((request) => request(axios, basePath));
|
|
2229
2291
|
},
|
|
2292
|
+
/**
|
|
2293
|
+
* Create a chat channel for a platform order if it doesn\'t exist
|
|
2294
|
+
* @summary Create chat channel
|
|
2295
|
+
* @param {OrdersApiCreateOrderChatChannelRequest} requestParameters Request parameters.
|
|
2296
|
+
* @param {*} [options] Override http request option.
|
|
2297
|
+
* @throws {RequiredError}
|
|
2298
|
+
*/
|
|
2299
|
+
createOrderChatChannel(requestParameters, options) {
|
|
2300
|
+
return localVarFp.createOrderChatChannel(requestParameters.project, requestParameters.platformId, requestParameters.orderId, options).then((request) => request(axios, basePath));
|
|
2301
|
+
},
|
|
2230
2302
|
/**
|
|
2231
2303
|
* Export orders as a CSV file
|
|
2232
2304
|
* @summary Export orders
|
|
@@ -2363,6 +2435,16 @@ export class OrdersApi extends BaseAPI {
|
|
|
2363
2435
|
createOrder(requestParameters, options) {
|
|
2364
2436
|
return OrdersApiFp(this.configuration).createOrder(requestParameters.project, requestParameters.platformId, requestParameters.createOrder, options).then((request) => request(this.axios, this.basePath));
|
|
2365
2437
|
}
|
|
2438
|
+
/**
|
|
2439
|
+
* Create a chat channel for a platform order if it doesn\'t exist
|
|
2440
|
+
* @summary Create chat channel
|
|
2441
|
+
* @param {OrdersApiCreateOrderChatChannelRequest} requestParameters Request parameters.
|
|
2442
|
+
* @param {*} [options] Override http request option.
|
|
2443
|
+
* @throws {RequiredError}
|
|
2444
|
+
*/
|
|
2445
|
+
createOrderChatChannel(requestParameters, options) {
|
|
2446
|
+
return OrdersApiFp(this.configuration).createOrderChatChannel(requestParameters.project, requestParameters.platformId, requestParameters.orderId, options).then((request) => request(this.axios, this.basePath));
|
|
2447
|
+
}
|
|
2366
2448
|
/**
|
|
2367
2449
|
* Export orders as a CSV file
|
|
2368
2450
|
* @summary Export orders
|
package/dist/esm/base.d.ts
CHANGED
package/dist/esm/base.js
CHANGED