@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 CHANGED
@@ -1,4 +1,4 @@
1
- ## @teemill/platform@0.22.2
1
+ ## @teemill/platform@0.23.0
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @teemill/platform@0.22.2 --save
39
+ npm install @teemill/platform@0.23.0 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -54,6 +54,7 @@ Class | Method | HTTP request | Description
54
54
  *CustomersApi* | [**exportCustomers**](docs/CustomersApi.md#exportcustomers) | **GET** /v1/platform/{platformId}/customers/export | Export customers
55
55
  *CustomersApi* | [**getCustomer**](docs/CustomersApi.md#getcustomer) | **GET** /v1/platform/{platformId}/customers/{customerId} | Get customer
56
56
  *CustomersApi* | [**listCustomers**](docs/CustomersApi.md#listcustomers) | **GET** /v1/platform/{platformId}/customers | List customers
57
+ *EnquiriesApi* | [**createChatChannel**](docs/EnquiriesApi.md#createchatchannel) | **POST** /v1/platform/{platformId}/customers/enquiries/{enquiryId}/chat-channel | Create chat channel
57
58
  *EnquiriesApi* | [**getCustomerEnquiry**](docs/EnquiriesApi.md#getcustomerenquiry) | **GET** /v1/platform/{platformId}/customers/enquiries/{enquiryId} | Get customer enquiry
58
59
  *EnquiriesApi* | [**listCustomerEnquiries**](docs/EnquiriesApi.md#listcustomerenquiries) | **GET** /v1/platform/{platformId}/customers/enquiries | List customer enquiries
59
60
  *EnquiriesApi* | [**listCustomerEnquiryLogs**](docs/EnquiriesApi.md#listcustomerenquirylogs) | **GET** /v1/platform/{platformId}/customers/enquiries/{enquiryId}/logs | List customer enquiry Logs
@@ -67,12 +68,12 @@ Class | Method | HTTP request | Description
67
68
  *PaymentApi* | [**authorizeStripe**](docs/PaymentApi.md#authorizestripe) | **GET** /v1/platform/payment/stripe/authorize | Authorize Stripe
68
69
  *PaymentApi* | [**deauthorizeStripe**](docs/PaymentApi.md#deauthorizestripe) | **DELETE** /v1/platform/payment/stripe/deauthorize | Deauthorize Stripe
69
70
  *PaymentApi* | [**getStripePaymentAccount**](docs/PaymentApi.md#getstripepaymentaccount) | **GET** /v1/platform/payment/stripe | Get Stripe Payment Account
70
- *PlatformApi* | [**createClientDomain**](docs/PlatformApi.md#createclientdomain) | **POST** /v1/platform/clients/domains | Create a platform client domain
71
+ *PlatformApi* | [**createClientDomain**](docs/PlatformApi.md#createclientdomain) | **POST** /v1/platform/client/domains | Create a platform client domain
71
72
  *PlatformApi* | [**createDomain**](docs/PlatformApi.md#createdomain) | **POST** /v1/platform/domains | Create a platform domain
72
- *PlatformApi* | [**deleteClientDomain**](docs/PlatformApi.md#deleteclientdomain) | **DELETE** /v1/platform/clients/domains/{domain} | Delete a platform client domain
73
+ *PlatformApi* | [**deleteClientDomain**](docs/PlatformApi.md#deleteclientdomain) | **DELETE** /v1/platform/client/domains/{domain} | Delete a platform client domain
73
74
  *PlatformApi* | [**deleteDomain**](docs/PlatformApi.md#deletedomain) | **DELETE** /v1/platform/domains/{domain} | Delete a platform domain
74
75
  *PlatformApi* | [**getPlatform**](docs/PlatformApi.md#getplatform) | **GET** /v1/platform | Get platform details
75
- *PlatformApi* | [**listClientDomains**](docs/PlatformApi.md#listclientdomains) | **GET** /v1/platform/clients/domains | List platform client domains
76
+ *PlatformApi* | [**listClientDomains**](docs/PlatformApi.md#listclientdomains) | **GET** /v1/platform/client/domains | List platform client domains
76
77
  *PlatformApi* | [**listDomains**](docs/PlatformApi.md#listdomains) | **GET** /v1/platform/domains | List platform domains
77
78
  *PlatformApi* | [**updatePlatform**](docs/PlatformApi.md#updateplatform) | **PATCH** /v1/platform | Update platform
78
79
  *ReviewsApi* | [**exportReviews**](docs/ReviewsApi.md#exportreviews) | **GET** /v1/platform/{platformId}/reviews/export | Export reviews
@@ -90,6 +91,7 @@ Class | Method | HTTP request | Description
90
91
  - [Client](docs/Client.md)
91
92
  - [ContactInformation](docs/ContactInformation.md)
92
93
  - [Coupon](docs/Coupon.md)
94
+ - [CreateChatChannel200Response](docs/CreateChatChannel200Response.md)
93
95
  - [CreateDomainRequest](docs/CreateDomainRequest.md)
94
96
  - [Customer](docs/Customer.md)
95
97
  - [CustomersResponse](docs/CustomersResponse.md)
package/api.ts 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.22.2
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).
@@ -160,6 +160,19 @@ export interface Coupon {
160
160
  */
161
161
  'code': string;
162
162
  }
163
+ /**
164
+ *
165
+ * @export
166
+ * @interface CreateChatChannel200Response
167
+ */
168
+ export interface CreateChatChannel200Response {
169
+ /**
170
+ * Reference to the chat channel resource
171
+ * @type {string}
172
+ * @memberof CreateChatChannel200Response
173
+ */
174
+ 'chatChannelRef': string;
175
+ }
163
176
  /**
164
177
  *
165
178
  * @export
@@ -369,6 +382,12 @@ export interface Enquiry {
369
382
  * @memberof Enquiry
370
383
  */
371
384
  'extraInputs': Array<EnquiryExtraInputsInner> | null;
385
+ /**
386
+ * Reference to the chat channel resource
387
+ * @type {string}
388
+ * @memberof Enquiry
389
+ */
390
+ 'chatChannelRef'?: string | null;
372
391
  }
373
392
 
374
393
  export const EnquiryStatusEnum = {
@@ -2282,12 +2301,64 @@ export type ListCustomersSortByEnum = typeof ListCustomersSortByEnum[keyof typeo
2282
2301
  */
2283
2302
  export const EnquiriesApiAxiosParamCreator = function (configuration?: Configuration) {
2284
2303
  return {
2304
+ /**
2305
+ * Create a chat channel for a customer enquiry if it doesn\'t exist
2306
+ * @summary Create chat channel
2307
+ * @param {string} project Project unique identifier
2308
+ * @param {string} platformId The platform identifier
2309
+ * @param {string} enquiryId The enquiry identifier
2310
+ * @param {*} [options] Override http request option.
2311
+ * @throws {RequiredError}
2312
+ */
2313
+ createChatChannel: async (project: string, platformId: string, enquiryId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2314
+ // verify required parameter 'project' is not null or undefined
2315
+ assertParamExists('createChatChannel', 'project', project)
2316
+ // verify required parameter 'platformId' is not null or undefined
2317
+ assertParamExists('createChatChannel', 'platformId', platformId)
2318
+ // verify required parameter 'enquiryId' is not null or undefined
2319
+ assertParamExists('createChatChannel', 'enquiryId', enquiryId)
2320
+ const localVarPath = `/v1/platform/{platformId}/customers/enquiries/{enquiryId}/chat-channel`
2321
+ .replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
2322
+ .replace(`{${"enquiryId"}}`, encodeURIComponent(String(enquiryId)));
2323
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2324
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2325
+ let baseOptions;
2326
+ if (configuration) {
2327
+ baseOptions = configuration.baseOptions;
2328
+ }
2329
+
2330
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
2331
+ const localVarHeaderParameter = {} as any;
2332
+ const localVarQueryParameter = {} as any;
2333
+
2334
+ // authentication session-oauth required
2335
+ // oauth required
2336
+ await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
2337
+
2338
+ // authentication api-key required
2339
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
2340
+
2341
+ if (project !== undefined) {
2342
+ localVarQueryParameter['project'] = project;
2343
+ }
2344
+
2345
+
2346
+
2347
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2348
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2349
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2350
+
2351
+ return {
2352
+ url: toPathString(localVarUrlObj),
2353
+ options: localVarRequestOptions,
2354
+ };
2355
+ },
2285
2356
  /**
2286
2357
  * Get a customer enquiry
2287
2358
  * @summary Get customer enquiry
2288
2359
  * @param {string} project Project unique identifier
2289
2360
  * @param {string} platformId The platform identifier
2290
- * @param {string} enquiryId
2361
+ * @param {string} enquiryId The enquiry identifier
2291
2362
  * @param {*} [options] Override http request option.
2292
2363
  * @throws {RequiredError}
2293
2364
  */
@@ -2416,7 +2487,7 @@ export const EnquiriesApiAxiosParamCreator = function (configuration?: Configura
2416
2487
  * @summary List customer enquiry Logs
2417
2488
  * @param {string} project Project unique identifier
2418
2489
  * @param {string} platformId The platform identifier
2419
- * @param {string} enquiryId
2490
+ * @param {string} enquiryId The enquiry identifier
2420
2491
  * @param {*} [options] Override http request option.
2421
2492
  * @throws {RequiredError}
2422
2493
  */
@@ -2473,12 +2544,27 @@ export const EnquiriesApiAxiosParamCreator = function (configuration?: Configura
2473
2544
  export const EnquiriesApiFp = function(configuration?: Configuration) {
2474
2545
  const localVarAxiosParamCreator = EnquiriesApiAxiosParamCreator(configuration)
2475
2546
  return {
2547
+ /**
2548
+ * Create a chat channel for a customer enquiry if it doesn\'t exist
2549
+ * @summary Create chat channel
2550
+ * @param {string} project Project unique identifier
2551
+ * @param {string} platformId The platform identifier
2552
+ * @param {string} enquiryId The enquiry identifier
2553
+ * @param {*} [options] Override http request option.
2554
+ * @throws {RequiredError}
2555
+ */
2556
+ async createChatChannel(project: string, platformId: string, enquiryId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateChatChannel200Response>> {
2557
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createChatChannel(project, platformId, enquiryId, options);
2558
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2559
+ const localVarOperationServerBasePath = operationServerMap['EnquiriesApi.createChatChannel']?.[localVarOperationServerIndex]?.url;
2560
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2561
+ },
2476
2562
  /**
2477
2563
  * Get a customer enquiry
2478
2564
  * @summary Get customer enquiry
2479
2565
  * @param {string} project Project unique identifier
2480
2566
  * @param {string} platformId The platform identifier
2481
- * @param {string} enquiryId
2567
+ * @param {string} enquiryId The enquiry identifier
2482
2568
  * @param {*} [options] Override http request option.
2483
2569
  * @throws {RequiredError}
2484
2570
  */
@@ -2512,7 +2598,7 @@ export const EnquiriesApiFp = function(configuration?: Configuration) {
2512
2598
  * @summary List customer enquiry Logs
2513
2599
  * @param {string} project Project unique identifier
2514
2600
  * @param {string} platformId The platform identifier
2515
- * @param {string} enquiryId
2601
+ * @param {string} enquiryId The enquiry identifier
2516
2602
  * @param {*} [options] Override http request option.
2517
2603
  * @throws {RequiredError}
2518
2604
  */
@@ -2532,6 +2618,16 @@ export const EnquiriesApiFp = function(configuration?: Configuration) {
2532
2618
  export const EnquiriesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
2533
2619
  const localVarFp = EnquiriesApiFp(configuration)
2534
2620
  return {
2621
+ /**
2622
+ * Create a chat channel for a customer enquiry if it doesn\'t exist
2623
+ * @summary Create chat channel
2624
+ * @param {EnquiriesApiCreateChatChannelRequest} requestParameters Request parameters.
2625
+ * @param {*} [options] Override http request option.
2626
+ * @throws {RequiredError}
2627
+ */
2628
+ createChatChannel(requestParameters: EnquiriesApiCreateChatChannelRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateChatChannel200Response> {
2629
+ return localVarFp.createChatChannel(requestParameters.project, requestParameters.platformId, requestParameters.enquiryId, options).then((request) => request(axios, basePath));
2630
+ },
2535
2631
  /**
2536
2632
  * Get a customer enquiry
2537
2633
  * @summary Get customer enquiry
@@ -2565,6 +2661,34 @@ export const EnquiriesApiFactory = function (configuration?: Configuration, base
2565
2661
  };
2566
2662
  };
2567
2663
 
2664
+ /**
2665
+ * Request parameters for createChatChannel operation in EnquiriesApi.
2666
+ * @export
2667
+ * @interface EnquiriesApiCreateChatChannelRequest
2668
+ */
2669
+ export interface EnquiriesApiCreateChatChannelRequest {
2670
+ /**
2671
+ * Project unique identifier
2672
+ * @type {string}
2673
+ * @memberof EnquiriesApiCreateChatChannel
2674
+ */
2675
+ readonly project: string
2676
+
2677
+ /**
2678
+ * The platform identifier
2679
+ * @type {string}
2680
+ * @memberof EnquiriesApiCreateChatChannel
2681
+ */
2682
+ readonly platformId: string
2683
+
2684
+ /**
2685
+ * The enquiry identifier
2686
+ * @type {string}
2687
+ * @memberof EnquiriesApiCreateChatChannel
2688
+ */
2689
+ readonly enquiryId: string
2690
+ }
2691
+
2568
2692
  /**
2569
2693
  * Request parameters for getCustomerEnquiry operation in EnquiriesApi.
2570
2694
  * @export
@@ -2586,7 +2710,7 @@ export interface EnquiriesApiGetCustomerEnquiryRequest {
2586
2710
  readonly platformId: string
2587
2711
 
2588
2712
  /**
2589
- *
2713
+ * The enquiry identifier
2590
2714
  * @type {string}
2591
2715
  * @memberof EnquiriesApiGetCustomerEnquiry
2592
2716
  */
@@ -2670,7 +2794,7 @@ export interface EnquiriesApiListCustomerEnquiryLogsRequest {
2670
2794
  readonly platformId: string
2671
2795
 
2672
2796
  /**
2673
- *
2797
+ * The enquiry identifier
2674
2798
  * @type {string}
2675
2799
  * @memberof EnquiriesApiListCustomerEnquiryLogs
2676
2800
  */
@@ -2684,6 +2808,18 @@ export interface EnquiriesApiListCustomerEnquiryLogsRequest {
2684
2808
  * @extends {BaseAPI}
2685
2809
  */
2686
2810
  export class EnquiriesApi extends BaseAPI {
2811
+ /**
2812
+ * Create a chat channel for a customer enquiry if it doesn\'t exist
2813
+ * @summary Create chat channel
2814
+ * @param {EnquiriesApiCreateChatChannelRequest} requestParameters Request parameters.
2815
+ * @param {*} [options] Override http request option.
2816
+ * @throws {RequiredError}
2817
+ * @memberof EnquiriesApi
2818
+ */
2819
+ public createChatChannel(requestParameters: EnquiriesApiCreateChatChannelRequest, options?: RawAxiosRequestConfig) {
2820
+ return EnquiriesApiFp(this.configuration).createChatChannel(requestParameters.project, requestParameters.platformId, requestParameters.enquiryId, options).then((request) => request(this.axios, this.basePath));
2821
+ }
2822
+
2687
2823
  /**
2688
2824
  * Get a customer enquiry
2689
2825
  * @summary Get customer enquiry
@@ -4042,7 +4178,7 @@ export const PlatformApiAxiosParamCreator = function (configuration?: Configurat
4042
4178
  createClientDomain: async (project: string, createDomainRequest?: CreateDomainRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
4043
4179
  // verify required parameter 'project' is not null or undefined
4044
4180
  assertParamExists('createClientDomain', 'project', project)
4045
- const localVarPath = `/v1/platform/clients/domains`;
4181
+ const localVarPath = `/v1/platform/client/domains`;
4046
4182
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
4047
4183
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4048
4184
  let baseOptions;
@@ -4140,7 +4276,7 @@ export const PlatformApiAxiosParamCreator = function (configuration?: Configurat
4140
4276
  assertParamExists('deleteClientDomain', 'project', project)
4141
4277
  // verify required parameter 'domain' is not null or undefined
4142
4278
  assertParamExists('deleteClientDomain', 'domain', domain)
4143
- const localVarPath = `/v1/platform/clients/domains/{domain}`
4279
+ const localVarPath = `/v1/platform/client/domains/{domain}`
4144
4280
  .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
4145
4281
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
4146
4282
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -4277,7 +4413,7 @@ export const PlatformApiAxiosParamCreator = function (configuration?: Configurat
4277
4413
  listClientDomains: async (project: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
4278
4414
  // verify required parameter 'project' is not null or undefined
4279
4415
  assertParamExists('listClientDomains', 'project', project)
4280
- const localVarPath = `/v1/platform/clients/domains`;
4416
+ const localVarPath = `/v1/platform/client/domains`;
4281
4417
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
4282
4418
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4283
4419
  let baseOptions;
package/base.ts 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.22.2
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).
package/common.ts 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.22.2
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).
package/configuration.ts 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.22.2
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).
package/dist/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.22.2
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