@teemill/platform 0.39.0 → 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/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.39.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
- 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 = {}) {
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)('createChatChannel', 'project', project);
852
+ (0, common_1.assertParamExists)('createCustomerEnquiryChatChannel', 'project', project);
853
853
  // verify required parameter 'platformId' is not null or undefined
854
- (0, common_1.assertParamExists)('createChatChannel', 'platformId', platformId);
854
+ (0, common_1.assertParamExists)('createCustomerEnquiryChatChannel', 'platformId', platformId);
855
855
  // verify required parameter 'enquiryId' is not null or undefined
856
- (0, common_1.assertParamExists)('createChatChannel', 'enquiryId', enquiryId);
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
- createChatChannel(project, platformId, enquiryId, options) {
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.createChatChannel(project, platformId, enquiryId, options);
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.createChatChannel']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
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 {EnquiriesApiCreateChatChannelRequest} requestParameters Request parameters.
1202
+ * @param {EnquiriesApiCreateCustomerEnquiryChatChannelRequest} requestParameters Request parameters.
1203
1203
  * @param {*} [options] Override http request option.
1204
1204
  * @throws {RequiredError}
1205
1205
  */
1206
- createChatChannel(requestParameters, options) {
1207
- return localVarFp.createChatChannel(requestParameters.project, requestParameters.platformId, requestParameters.enquiryId, options).then((request) => request(axios, basePath));
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 {EnquiriesApiCreateChatChannelRequest} requestParameters Request parameters.
1259
+ * @param {EnquiriesApiCreateCustomerEnquiryChatChannelRequest} requestParameters Request parameters.
1260
1260
  * @param {*} [options] Override http request option.
1261
1261
  * @throws {RequiredError}
1262
1262
  */
1263
- createChatChannel(requestParameters, options) {
1264
- return (0, exports.EnquiriesApiFp)(this.configuration).createChatChannel(requestParameters.project, requestParameters.platformId, requestParameters.enquiryId, options).then((request) => request(this.axios, this.basePath));
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
@@ -2,7 +2,7 @@
2
2
  * Platform API
3
3
  * Manage Your podOS platform
4
4
  *
5
- * The version of the OpenAPI document: 0.39.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).
package/dist/base.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.39.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).
package/dist/common.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.39.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).
package/dist/common.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.39.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).
@@ -2,7 +2,7 @@
2
2
  * Platform API
3
3
  * Manage Your podOS platform
4
4
  *
5
- * The version of the OpenAPI document: 0.39.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).
@@ -5,7 +5,7 @@
5
5
  * Platform API
6
6
  * Manage Your podOS platform
7
7
  *
8
- * The version of the OpenAPI document: 0.39.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).
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.39.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
  */
@@ -543,6 +543,10 @@ export interface Order {
543
543
  * The integration type of the order, e.g. \"website\" or \"shopify\"
544
544
  */
545
545
  'integrationType'?: string;
546
+ /**
547
+ * Reference to the chat channel resource
548
+ */
549
+ 'chatChannelRef'?: string | null;
546
550
  }
547
551
  export interface OrderItem {
548
552
  /**
@@ -1546,7 +1550,7 @@ export declare const EnquiriesApiAxiosParamCreator: (configuration?: Configurati
1546
1550
  * @param {*} [options] Override http request option.
1547
1551
  * @throws {RequiredError}
1548
1552
  */
1549
- createChatChannel: (project: string, platformId: string, enquiryId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1553
+ createCustomerEnquiryChatChannel: (project: string, platformId: string, enquiryId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1550
1554
  /**
1551
1555
  * Get a customer enquiry
1552
1556
  * @summary Get customer enquiry
@@ -1606,7 +1610,7 @@ export declare const EnquiriesApiFp: (configuration?: Configuration) => {
1606
1610
  * @param {*} [options] Override http request option.
1607
1611
  * @throws {RequiredError}
1608
1612
  */
1609
- createChatChannel(project: string, platformId: string, enquiryId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateChatChannel200Response>>;
1613
+ createCustomerEnquiryChatChannel(project: string, platformId: string, enquiryId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateOrderChatChannel200Response>>;
1610
1614
  /**
1611
1615
  * Get a customer enquiry
1612
1616
  * @summary Get customer enquiry
@@ -1660,11 +1664,11 @@ export declare const EnquiriesApiFactory: (configuration?: Configuration, basePa
1660
1664
  /**
1661
1665
  * Create a chat channel for a customer enquiry if it doesn\'t exist
1662
1666
  * @summary Create chat channel
1663
- * @param {EnquiriesApiCreateChatChannelRequest} requestParameters Request parameters.
1667
+ * @param {EnquiriesApiCreateCustomerEnquiryChatChannelRequest} requestParameters Request parameters.
1664
1668
  * @param {*} [options] Override http request option.
1665
1669
  * @throws {RequiredError}
1666
1670
  */
1667
- createChatChannel(requestParameters: EnquiriesApiCreateChatChannelRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateChatChannel200Response>;
1671
+ createCustomerEnquiryChatChannel(requestParameters: EnquiriesApiCreateCustomerEnquiryChatChannelRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateOrderChatChannel200Response>;
1668
1672
  /**
1669
1673
  * Get a customer enquiry
1670
1674
  * @summary Get customer enquiry
@@ -1699,9 +1703,9 @@ export declare const EnquiriesApiFactory: (configuration?: Configuration, basePa
1699
1703
  updateCustomerEnquiry(requestParameters: EnquiriesApiUpdateCustomerEnquiryRequest, options?: RawAxiosRequestConfig): AxiosPromise<Enquiry>;
1700
1704
  };
1701
1705
  /**
1702
- * Request parameters for createChatChannel operation in EnquiriesApi.
1706
+ * Request parameters for createCustomerEnquiryChatChannel operation in EnquiriesApi.
1703
1707
  */
1704
- export interface EnquiriesApiCreateChatChannelRequest {
1708
+ export interface EnquiriesApiCreateCustomerEnquiryChatChannelRequest {
1705
1709
  /**
1706
1710
  * Project unique identifier
1707
1711
  */
@@ -1810,11 +1814,11 @@ export declare class EnquiriesApi extends BaseAPI {
1810
1814
  /**
1811
1815
  * Create a chat channel for a customer enquiry if it doesn\'t exist
1812
1816
  * @summary Create chat channel
1813
- * @param {EnquiriesApiCreateChatChannelRequest} requestParameters Request parameters.
1817
+ * @param {EnquiriesApiCreateCustomerEnquiryChatChannelRequest} requestParameters Request parameters.
1814
1818
  * @param {*} [options] Override http request option.
1815
1819
  * @throws {RequiredError}
1816
1820
  */
1817
- createChatChannel(requestParameters: EnquiriesApiCreateChatChannelRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateChatChannel200Response, any, {}>>;
1821
+ createCustomerEnquiryChatChannel(requestParameters: EnquiriesApiCreateCustomerEnquiryChatChannelRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateOrderChatChannel200Response, any, {}>>;
1818
1822
  /**
1819
1823
  * Get a customer enquiry
1820
1824
  * @summary Get customer enquiry
@@ -1884,6 +1888,16 @@ export declare const OrdersApiAxiosParamCreator: (configuration?: Configuration)
1884
1888
  * @throws {RequiredError}
1885
1889
  */
1886
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>;
1887
1901
  /**
1888
1902
  * Export orders as a CSV file
1889
1903
  * @summary Export orders
@@ -2032,6 +2046,16 @@ export declare const OrdersApiFp: (configuration?: Configuration) => {
2032
2046
  * @throws {RequiredError}
2033
2047
  */
2034
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>>;
2035
2059
  /**
2036
2060
  * Export orders as a CSV file
2037
2061
  * @summary Export orders
@@ -2172,6 +2196,14 @@ export declare const OrdersApiFactory: (configuration?: Configuration, basePath?
2172
2196
  * @throws {RequiredError}
2173
2197
  */
2174
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>;
2175
2207
  /**
2176
2208
  * Export orders as a CSV file
2177
2209
  * @summary Export orders
@@ -2312,6 +2344,23 @@ export interface OrdersApiCreateOrderRequest {
2312
2344
  */
2313
2345
  readonly createOrder: CreateOrder;
2314
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
+ }
2315
2364
  /**
2316
2365
  * Request parameters for exportOrders operation in OrdersApi.
2317
2366
  */
@@ -2551,6 +2600,14 @@ export declare class OrdersApi extends BaseAPI {
2551
2600
  * @throws {RequiredError}
2552
2601
  */
2553
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, {}>>;
2554
2611
  /**
2555
2612
  * Export orders as a CSV file
2556
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.39.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
- 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 = {}) {
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('createChatChannel', 'project', project);
841
+ assertParamExists('createCustomerEnquiryChatChannel', 'project', project);
842
842
  // verify required parameter 'platformId' is not null or undefined
843
- assertParamExists('createChatChannel', 'platformId', platformId);
843
+ assertParamExists('createCustomerEnquiryChatChannel', 'platformId', platformId);
844
844
  // verify required parameter 'enquiryId' is not null or undefined
845
- assertParamExists('createChatChannel', 'enquiryId', enquiryId);
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
- createChatChannel(project, platformId, enquiryId, options) {
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.createChatChannel(project, platformId, enquiryId, options);
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.createChatChannel']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
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 {EnquiriesApiCreateChatChannelRequest} requestParameters Request parameters.
1189
+ * @param {EnquiriesApiCreateCustomerEnquiryChatChannelRequest} requestParameters Request parameters.
1190
1190
  * @param {*} [options] Override http request option.
1191
1191
  * @throws {RequiredError}
1192
1192
  */
1193
- createChatChannel(requestParameters, options) {
1194
- return localVarFp.createChatChannel(requestParameters.project, requestParameters.platformId, requestParameters.enquiryId, options).then((request) => request(axios, basePath));
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 {EnquiriesApiCreateChatChannelRequest} requestParameters Request parameters.
1245
+ * @param {EnquiriesApiCreateCustomerEnquiryChatChannelRequest} requestParameters Request parameters.
1246
1246
  * @param {*} [options] Override http request option.
1247
1247
  * @throws {RequiredError}
1248
1248
  */
1249
- createChatChannel(requestParameters, options) {
1250
- return EnquiriesApiFp(this.configuration).createChatChannel(requestParameters.project, requestParameters.platformId, requestParameters.enquiryId, options).then((request) => request(this.axios, this.basePath));
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
@@ -2,7 +2,7 @@
2
2
  * Platform API
3
3
  * Manage Your podOS platform
4
4
  *
5
- * The version of the OpenAPI document: 0.39.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).
package/dist/esm/base.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.39.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).
@@ -2,7 +2,7 @@
2
2
  * Platform API
3
3
  * Manage Your podOS platform
4
4
  *
5
- * The version of the OpenAPI document: 0.39.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).