webitel-sdk 0.1.93 → 0.1.94

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.
Files changed (61) hide show
  1. package/bundles/index.esm.js +557 -1
  2. package/bundles/index.esm.js.map +1 -1
  3. package/bundles/index.esm.min.js +1 -1
  4. package/bundles/index.esm.min.js.map +1 -1
  5. package/bundles/index.umd.js +631 -0
  6. package/bundles/index.umd.js.map +1 -1
  7. package/bundles/index.umd.min.js +1 -1
  8. package/bundles/index.umd.min.js.map +1 -1
  9. package/esm2015/api/engine-chat-plan.js +13 -0
  10. package/esm2015/api/engine-chat-plan.js.map +1 -0
  11. package/esm2015/api/engine-create-chat-plan-request.js +13 -0
  12. package/esm2015/api/engine-create-chat-plan-request.js.map +1 -0
  13. package/esm2015/api/engine-list-chat-plan.js +13 -0
  14. package/esm2015/api/engine-list-chat-plan.js.map +1 -0
  15. package/esm2015/api/engine-patch-chat-plan-request.js +13 -0
  16. package/esm2015/api/engine-patch-chat-plan-request.js.map +1 -0
  17. package/esm2015/api/engine-update-chat-plan-request.js +13 -0
  18. package/esm2015/api/engine-update-chat-plan-request.js.map +1 -0
  19. package/esm2015/api/index.js.map +1 -1
  20. package/esm2015/api/routing-chat-plan-service-api.js +572 -0
  21. package/esm2015/api/routing-chat-plan-service-api.js.map +1 -0
  22. package/esm2015/api.js +1 -0
  23. package/esm2015/api.js.map +1 -1
  24. package/esm5/api/engine-chat-plan.js +13 -0
  25. package/esm5/api/engine-chat-plan.js.map +1 -0
  26. package/esm5/api/engine-create-chat-plan-request.js +13 -0
  27. package/esm5/api/engine-create-chat-plan-request.js.map +1 -0
  28. package/esm5/api/engine-list-chat-plan.js +13 -0
  29. package/esm5/api/engine-list-chat-plan.js.map +1 -0
  30. package/esm5/api/engine-patch-chat-plan-request.js +13 -0
  31. package/esm5/api/engine-patch-chat-plan-request.js.map +1 -0
  32. package/esm5/api/engine-update-chat-plan-request.js +13 -0
  33. package/esm5/api/engine-update-chat-plan-request.js.map +1 -0
  34. package/esm5/api/index.js.map +1 -1
  35. package/esm5/api/routing-chat-plan-service-api.js +645 -0
  36. package/esm5/api/routing-chat-plan-service-api.js.map +1 -0
  37. package/esm5/api.js +1 -0
  38. package/esm5/api.js.map +1 -1
  39. package/package.json +1 -1
  40. package/types/api/create-call-request-call-settings.d.ts +6 -0
  41. package/types/api/create-call-request-call-settings.d.ts.map +1 -1
  42. package/types/api/engine-chat-plan.d.ts +50 -0
  43. package/types/api/engine-chat-plan.d.ts.map +1 -0
  44. package/types/api/engine-create-chat-plan-request.d.ts +44 -0
  45. package/types/api/engine-create-chat-plan-request.d.ts.map +1 -0
  46. package/types/api/engine-history-call.d.ts +6 -0
  47. package/types/api/engine-history-call.d.ts.map +1 -1
  48. package/types/api/engine-list-chat-plan.d.ts +32 -0
  49. package/types/api/engine-list-chat-plan.d.ts.map +1 -0
  50. package/types/api/engine-patch-chat-plan-request.d.ts +56 -0
  51. package/types/api/engine-patch-chat-plan-request.d.ts.map +1 -0
  52. package/types/api/engine-queue-resource-group.d.ts +6 -0
  53. package/types/api/engine-queue-resource-group.d.ts.map +1 -1
  54. package/types/api/engine-update-chat-plan-request.d.ts +50 -0
  55. package/types/api/engine-update-chat-plan-request.d.ts.map +1 -0
  56. package/types/api/index.d.ts +5 -0
  57. package/types/api/index.d.ts.map +1 -1
  58. package/types/api/routing-chat-plan-service-api.d.ts +225 -0
  59. package/types/api/routing-chat-plan-service-api.d.ts.map +1 -0
  60. package/types/api.d.ts +1 -0
  61. package/types/api.d.ts.map +1 -1
@@ -0,0 +1,13 @@
1
+ // tslint:disable
2
+ /**
3
+ * Webitel engine API
4
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+ *
6
+ * The version of the OpenAPI document: 20.12.0
7
+ * Contact: support@webitel.com
8
+ *
9
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
10
+ * https://openapi-generator.tech
11
+ * Do not edit the class manually.
12
+ */
13
+ //# sourceMappingURL=engine-chat-plan.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"engine-chat-plan.js","sourceRoot":"","sources":["../../../src/api/engine-chat-plan.ts"],"names":[],"mappings":"AAAA,iBAAiB;AACjB;;;;;;;;;;GAUG"}
@@ -0,0 +1,13 @@
1
+ // tslint:disable
2
+ /**
3
+ * Webitel engine API
4
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+ *
6
+ * The version of the OpenAPI document: 20.12.0
7
+ * Contact: support@webitel.com
8
+ *
9
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
10
+ * https://openapi-generator.tech
11
+ * Do not edit the class manually.
12
+ */
13
+ //# sourceMappingURL=engine-create-chat-plan-request.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"engine-create-chat-plan-request.js","sourceRoot":"","sources":["../../../src/api/engine-create-chat-plan-request.ts"],"names":[],"mappings":"AAAA,iBAAiB;AACjB;;;;;;;;;;GAUG"}
@@ -0,0 +1,13 @@
1
+ // tslint:disable
2
+ /**
3
+ * Webitel engine API
4
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+ *
6
+ * The version of the OpenAPI document: 20.12.0
7
+ * Contact: support@webitel.com
8
+ *
9
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
10
+ * https://openapi-generator.tech
11
+ * Do not edit the class manually.
12
+ */
13
+ //# sourceMappingURL=engine-list-chat-plan.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"engine-list-chat-plan.js","sourceRoot":"","sources":["../../../src/api/engine-list-chat-plan.ts"],"names":[],"mappings":"AAAA,iBAAiB;AACjB;;;;;;;;;;GAUG"}
@@ -0,0 +1,13 @@
1
+ // tslint:disable
2
+ /**
3
+ * Webitel engine API
4
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+ *
6
+ * The version of the OpenAPI document: 20.12.0
7
+ * Contact: support@webitel.com
8
+ *
9
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
10
+ * https://openapi-generator.tech
11
+ * Do not edit the class manually.
12
+ */
13
+ //# sourceMappingURL=engine-patch-chat-plan-request.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"engine-patch-chat-plan-request.js","sourceRoot":"","sources":["../../../src/api/engine-patch-chat-plan-request.ts"],"names":[],"mappings":"AAAA,iBAAiB;AACjB;;;;;;;;;;GAUG"}
@@ -0,0 +1,13 @@
1
+ // tslint:disable
2
+ /**
3
+ * Webitel engine API
4
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+ *
6
+ * The version of the OpenAPI document: 20.12.0
7
+ * Contact: support@webitel.com
8
+ *
9
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
10
+ * https://openapi-generator.tech
11
+ * Do not edit the class manually.
12
+ */
13
+ //# sourceMappingURL=engine-update-chat-plan-request.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"engine-update-chat-plan-request.js","sourceRoot":"","sources":["../../../src/api/engine-update-chat-plan-request.ts"],"names":[],"mappings":"AAAA,iBAAiB;AACjB;;;;;;;;;;GAUG"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/api/index.ts"],"names":[],"mappings":"AAuMA,cAAc,uBAAuB,CAAA;AAUrC,cAAc,8BAA8B,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/api/index.ts"],"names":[],"mappings":"AA4MA,cAAc,uBAAuB,CAAA;AAUrC,cAAc,8BAA8B,CAAA"}
@@ -0,0 +1,572 @@
1
+ // tslint:disable
2
+ /**
3
+ * Webitel engine API
4
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+ *
6
+ * The version of the OpenAPI document: 20.12.0
7
+ * Contact: support@webitel.com
8
+ *
9
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
10
+ * https://openapi-generator.tech
11
+ * Do not edit the class manually.
12
+ */
13
+ import * as globalImportUrl from 'url';
14
+ import globalAxios from 'axios';
15
+ // Some imports not used depending on template conditions
16
+ // @ts-ignore
17
+ import { BASE_PATH, BaseAPI, RequiredError, } from '../base';
18
+ /**
19
+ * RoutingChatPlanServiceApi - axios parameter creator
20
+ * @export
21
+ */
22
+ export const RoutingChatPlanServiceApiAxiosParamCreator = function (configuration) {
23
+ return {
24
+ /**
25
+ *
26
+ * @param {EngineCreateChatPlanRequest} body
27
+ * @param {*} [options] Override http request option.
28
+ * @throws {RequiredError}
29
+ */
30
+ createChatPlan: async (body, options = {}) => {
31
+ // verify required parameter 'body' is not null or undefined
32
+ if (body === null || body === undefined) {
33
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling createChatPlan.');
34
+ }
35
+ const localVarPath = `/routing/outbound/chat`;
36
+ const localVarUrlObj = globalImportUrl.parse(localVarPath, true);
37
+ let baseOptions;
38
+ if (configuration) {
39
+ baseOptions = configuration.baseOptions;
40
+ }
41
+ const localVarRequestOptions = {
42
+ method: 'POST',
43
+ ...baseOptions,
44
+ ...options,
45
+ };
46
+ const localVarHeaderParameter = {};
47
+ const localVarQueryParameter = {};
48
+ // authentication AccessToken required
49
+ if (configuration && configuration.apiKey) {
50
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
51
+ ? await configuration.apiKey('X-Webitel-Access')
52
+ : await configuration.apiKey;
53
+ localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
54
+ }
55
+ localVarHeaderParameter['Content-Type'] = 'application/json';
56
+ localVarUrlObj.query = {
57
+ ...localVarUrlObj.query,
58
+ ...localVarQueryParameter,
59
+ ...options.query,
60
+ };
61
+ // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
62
+ delete localVarUrlObj.search;
63
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
64
+ localVarRequestOptions.headers = {
65
+ ...localVarHeaderParameter,
66
+ ...headersFromBaseOptions,
67
+ ...options.headers,
68
+ };
69
+ const needsSerialization = typeof body !== 'string' ||
70
+ localVarRequestOptions.headers['Content-Type'] === 'application/json';
71
+ localVarRequestOptions.data = needsSerialization
72
+ ? JSON.stringify(body !== undefined ? body : {})
73
+ : body || '';
74
+ return {
75
+ url: globalImportUrl.format(localVarUrlObj),
76
+ options: localVarRequestOptions,
77
+ };
78
+ },
79
+ /**
80
+ *
81
+ * @param {number} id
82
+ * @param {EnginePatchChatPlanRequest} body
83
+ * @param {*} [options] Override http request option.
84
+ * @throws {RequiredError}
85
+ */
86
+ patchChatPlan: async (id, body, options = {}) => {
87
+ // verify required parameter 'id' is not null or undefined
88
+ if (id === null || id === undefined) {
89
+ throw new RequiredError('id', 'Required parameter id was null or undefined when calling patchChatPlan.');
90
+ }
91
+ // verify required parameter 'body' is not null or undefined
92
+ if (body === null || body === undefined) {
93
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling patchChatPlan.');
94
+ }
95
+ const localVarPath = `/routing/outbound/chat/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
96
+ const localVarUrlObj = globalImportUrl.parse(localVarPath, true);
97
+ let baseOptions;
98
+ if (configuration) {
99
+ baseOptions = configuration.baseOptions;
100
+ }
101
+ const localVarRequestOptions = {
102
+ method: 'PATCH',
103
+ ...baseOptions,
104
+ ...options,
105
+ };
106
+ const localVarHeaderParameter = {};
107
+ const localVarQueryParameter = {};
108
+ // authentication AccessToken required
109
+ if (configuration && configuration.apiKey) {
110
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
111
+ ? await configuration.apiKey('X-Webitel-Access')
112
+ : await configuration.apiKey;
113
+ localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
114
+ }
115
+ localVarHeaderParameter['Content-Type'] = 'application/json';
116
+ localVarUrlObj.query = {
117
+ ...localVarUrlObj.query,
118
+ ...localVarQueryParameter,
119
+ ...options.query,
120
+ };
121
+ // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
122
+ delete localVarUrlObj.search;
123
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
124
+ localVarRequestOptions.headers = {
125
+ ...localVarHeaderParameter,
126
+ ...headersFromBaseOptions,
127
+ ...options.headers,
128
+ };
129
+ const needsSerialization = typeof body !== 'string' ||
130
+ localVarRequestOptions.headers['Content-Type'] === 'application/json';
131
+ localVarRequestOptions.data = needsSerialization
132
+ ? JSON.stringify(body !== undefined ? body : {})
133
+ : body || '';
134
+ return {
135
+ url: globalImportUrl.format(localVarUrlObj),
136
+ options: localVarRequestOptions,
137
+ };
138
+ },
139
+ /**
140
+ *
141
+ * @param {number} id
142
+ * @param {*} [options] Override http request option.
143
+ * @throws {RequiredError}
144
+ */
145
+ readChatPlan: async (id, options = {}) => {
146
+ // verify required parameter 'id' is not null or undefined
147
+ if (id === null || id === undefined) {
148
+ throw new RequiredError('id', 'Required parameter id was null or undefined when calling readChatPlan.');
149
+ }
150
+ const localVarPath = `/routing/outbound/chat/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
151
+ const localVarUrlObj = globalImportUrl.parse(localVarPath, true);
152
+ let baseOptions;
153
+ if (configuration) {
154
+ baseOptions = configuration.baseOptions;
155
+ }
156
+ const localVarRequestOptions = {
157
+ method: 'GET',
158
+ ...baseOptions,
159
+ ...options,
160
+ };
161
+ const localVarHeaderParameter = {};
162
+ const localVarQueryParameter = {};
163
+ // authentication AccessToken required
164
+ if (configuration && configuration.apiKey) {
165
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
166
+ ? await configuration.apiKey('X-Webitel-Access')
167
+ : await configuration.apiKey;
168
+ localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
169
+ }
170
+ localVarUrlObj.query = {
171
+ ...localVarUrlObj.query,
172
+ ...localVarQueryParameter,
173
+ ...options.query,
174
+ };
175
+ // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
176
+ delete localVarUrlObj.search;
177
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
178
+ localVarRequestOptions.headers = {
179
+ ...localVarHeaderParameter,
180
+ ...headersFromBaseOptions,
181
+ ...options.headers,
182
+ };
183
+ return {
184
+ url: globalImportUrl.format(localVarUrlObj),
185
+ options: localVarRequestOptions,
186
+ };
187
+ },
188
+ /**
189
+ *
190
+ * @param {number} [page]
191
+ * @param {number} [size]
192
+ * @param {string} [q]
193
+ * @param {string} [sort]
194
+ * @param {Array<string>} [fields]
195
+ * @param {Array<number>} [id]
196
+ * @param {string} [name]
197
+ * @param {boolean} [enabled]
198
+ * @param {*} [options] Override http request option.
199
+ * @throws {RequiredError}
200
+ */
201
+ searchChatPlan: async (page, size, q, sort, fields, id, name, enabled, options = {}) => {
202
+ const localVarPath = `/routing/outbound/chat`;
203
+ const localVarUrlObj = globalImportUrl.parse(localVarPath, true);
204
+ let baseOptions;
205
+ if (configuration) {
206
+ baseOptions = configuration.baseOptions;
207
+ }
208
+ const localVarRequestOptions = {
209
+ method: 'GET',
210
+ ...baseOptions,
211
+ ...options,
212
+ };
213
+ const localVarHeaderParameter = {};
214
+ const localVarQueryParameter = {};
215
+ // authentication AccessToken required
216
+ if (configuration && configuration.apiKey) {
217
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
218
+ ? await configuration.apiKey('X-Webitel-Access')
219
+ : await configuration.apiKey;
220
+ localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
221
+ }
222
+ if (page !== undefined) {
223
+ localVarQueryParameter['page'] = page;
224
+ }
225
+ if (size !== undefined) {
226
+ localVarQueryParameter['size'] = size;
227
+ }
228
+ if (q !== undefined) {
229
+ localVarQueryParameter['q'] = q;
230
+ }
231
+ if (sort !== undefined) {
232
+ localVarQueryParameter['sort'] = sort;
233
+ }
234
+ if (fields) {
235
+ localVarQueryParameter['fields'] = fields;
236
+ }
237
+ if (id) {
238
+ localVarQueryParameter['id'] = id;
239
+ }
240
+ if (name !== undefined) {
241
+ localVarQueryParameter['name'] = name;
242
+ }
243
+ if (enabled !== undefined) {
244
+ localVarQueryParameter['enabled'] = enabled;
245
+ }
246
+ localVarUrlObj.query = {
247
+ ...localVarUrlObj.query,
248
+ ...localVarQueryParameter,
249
+ ...options.query,
250
+ };
251
+ // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
252
+ delete localVarUrlObj.search;
253
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
254
+ localVarRequestOptions.headers = {
255
+ ...localVarHeaderParameter,
256
+ ...headersFromBaseOptions,
257
+ ...options.headers,
258
+ };
259
+ return {
260
+ url: globalImportUrl.format(localVarUrlObj),
261
+ options: localVarRequestOptions,
262
+ };
263
+ },
264
+ /**
265
+ *
266
+ * @param {number} id
267
+ * @param {EngineUpdateChatPlanRequest} body
268
+ * @param {*} [options] Override http request option.
269
+ * @throws {RequiredError}
270
+ */
271
+ updateChatPlan: async (id, body, options = {}) => {
272
+ // verify required parameter 'id' is not null or undefined
273
+ if (id === null || id === undefined) {
274
+ throw new RequiredError('id', 'Required parameter id was null or undefined when calling updateChatPlan.');
275
+ }
276
+ // verify required parameter 'body' is not null or undefined
277
+ if (body === null || body === undefined) {
278
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling updateChatPlan.');
279
+ }
280
+ const localVarPath = `/routing/outbound/chat/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
281
+ const localVarUrlObj = globalImportUrl.parse(localVarPath, true);
282
+ let baseOptions;
283
+ if (configuration) {
284
+ baseOptions = configuration.baseOptions;
285
+ }
286
+ const localVarRequestOptions = {
287
+ method: 'PUT',
288
+ ...baseOptions,
289
+ ...options,
290
+ };
291
+ const localVarHeaderParameter = {};
292
+ const localVarQueryParameter = {};
293
+ // authentication AccessToken required
294
+ if (configuration && configuration.apiKey) {
295
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
296
+ ? await configuration.apiKey('X-Webitel-Access')
297
+ : await configuration.apiKey;
298
+ localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
299
+ }
300
+ localVarHeaderParameter['Content-Type'] = 'application/json';
301
+ localVarUrlObj.query = {
302
+ ...localVarUrlObj.query,
303
+ ...localVarQueryParameter,
304
+ ...options.query,
305
+ };
306
+ // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
307
+ delete localVarUrlObj.search;
308
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
309
+ localVarRequestOptions.headers = {
310
+ ...localVarHeaderParameter,
311
+ ...headersFromBaseOptions,
312
+ ...options.headers,
313
+ };
314
+ const needsSerialization = typeof body !== 'string' ||
315
+ localVarRequestOptions.headers['Content-Type'] === 'application/json';
316
+ localVarRequestOptions.data = needsSerialization
317
+ ? JSON.stringify(body !== undefined ? body : {})
318
+ : body || '';
319
+ return {
320
+ url: globalImportUrl.format(localVarUrlObj),
321
+ options: localVarRequestOptions,
322
+ };
323
+ },
324
+ };
325
+ };
326
+ /**
327
+ * RoutingChatPlanServiceApi - functional programming interface
328
+ * @export
329
+ */
330
+ export const RoutingChatPlanServiceApiFp = function (configuration) {
331
+ return {
332
+ /**
333
+ *
334
+ * @param {EngineCreateChatPlanRequest} body
335
+ * @param {*} [options] Override http request option.
336
+ * @throws {RequiredError}
337
+ */
338
+ async createChatPlan(body, options) {
339
+ const localVarAxiosArgs = await RoutingChatPlanServiceApiAxiosParamCreator(configuration).createChatPlan(body, options);
340
+ return (axios = globalAxios, basePath = BASE_PATH) => {
341
+ const axiosRequestArgs = {
342
+ ...localVarAxiosArgs.options,
343
+ url: basePath + localVarAxiosArgs.url,
344
+ };
345
+ return axios.request(axiosRequestArgs);
346
+ };
347
+ },
348
+ /**
349
+ *
350
+ * @param {number} id
351
+ * @param {EnginePatchChatPlanRequest} body
352
+ * @param {*} [options] Override http request option.
353
+ * @throws {RequiredError}
354
+ */
355
+ async patchChatPlan(id, body, options) {
356
+ const localVarAxiosArgs = await RoutingChatPlanServiceApiAxiosParamCreator(configuration).patchChatPlan(id, body, options);
357
+ return (axios = globalAxios, basePath = BASE_PATH) => {
358
+ const axiosRequestArgs = {
359
+ ...localVarAxiosArgs.options,
360
+ url: basePath + localVarAxiosArgs.url,
361
+ };
362
+ return axios.request(axiosRequestArgs);
363
+ };
364
+ },
365
+ /**
366
+ *
367
+ * @param {number} id
368
+ * @param {*} [options] Override http request option.
369
+ * @throws {RequiredError}
370
+ */
371
+ async readChatPlan(id, options) {
372
+ const localVarAxiosArgs = await RoutingChatPlanServiceApiAxiosParamCreator(configuration).readChatPlan(id, options);
373
+ return (axios = globalAxios, basePath = BASE_PATH) => {
374
+ const axiosRequestArgs = {
375
+ ...localVarAxiosArgs.options,
376
+ url: basePath + localVarAxiosArgs.url,
377
+ };
378
+ return axios.request(axiosRequestArgs);
379
+ };
380
+ },
381
+ /**
382
+ *
383
+ * @param {number} [page]
384
+ * @param {number} [size]
385
+ * @param {string} [q]
386
+ * @param {string} [sort]
387
+ * @param {Array<string>} [fields]
388
+ * @param {Array<number>} [id]
389
+ * @param {string} [name]
390
+ * @param {boolean} [enabled]
391
+ * @param {*} [options] Override http request option.
392
+ * @throws {RequiredError}
393
+ */
394
+ async searchChatPlan(page, size, q, sort, fields, id, name, enabled, options) {
395
+ const localVarAxiosArgs = await RoutingChatPlanServiceApiAxiosParamCreator(configuration).searchChatPlan(page, size, q, sort, fields, id, name, enabled, options);
396
+ return (axios = globalAxios, basePath = BASE_PATH) => {
397
+ const axiosRequestArgs = {
398
+ ...localVarAxiosArgs.options,
399
+ url: basePath + localVarAxiosArgs.url,
400
+ };
401
+ return axios.request(axiosRequestArgs);
402
+ };
403
+ },
404
+ /**
405
+ *
406
+ * @param {number} id
407
+ * @param {EngineUpdateChatPlanRequest} body
408
+ * @param {*} [options] Override http request option.
409
+ * @throws {RequiredError}
410
+ */
411
+ async updateChatPlan(id, body, options) {
412
+ const localVarAxiosArgs = await RoutingChatPlanServiceApiAxiosParamCreator(configuration).updateChatPlan(id, body, options);
413
+ return (axios = globalAxios, basePath = BASE_PATH) => {
414
+ const axiosRequestArgs = {
415
+ ...localVarAxiosArgs.options,
416
+ url: basePath + localVarAxiosArgs.url,
417
+ };
418
+ return axios.request(axiosRequestArgs);
419
+ };
420
+ },
421
+ };
422
+ };
423
+ /**
424
+ * RoutingChatPlanServiceApi - factory interface
425
+ * @export
426
+ */
427
+ export const RoutingChatPlanServiceApiFactory = function (configuration, basePath, axios) {
428
+ return {
429
+ /**
430
+ *
431
+ * @param {EngineCreateChatPlanRequest} body
432
+ * @param {*} [options] Override http request option.
433
+ * @throws {RequiredError}
434
+ */
435
+ createChatPlan(body, options) {
436
+ return RoutingChatPlanServiceApiFp(configuration)
437
+ .createChatPlan(body, options)
438
+ .then((request) => request(axios, basePath));
439
+ },
440
+ /**
441
+ *
442
+ * @param {number} id
443
+ * @param {EnginePatchChatPlanRequest} body
444
+ * @param {*} [options] Override http request option.
445
+ * @throws {RequiredError}
446
+ */
447
+ patchChatPlan(id, body, options) {
448
+ return RoutingChatPlanServiceApiFp(configuration)
449
+ .patchChatPlan(id, body, options)
450
+ .then((request) => request(axios, basePath));
451
+ },
452
+ /**
453
+ *
454
+ * @param {number} id
455
+ * @param {*} [options] Override http request option.
456
+ * @throws {RequiredError}
457
+ */
458
+ readChatPlan(id, options) {
459
+ return RoutingChatPlanServiceApiFp(configuration)
460
+ .readChatPlan(id, options)
461
+ .then((request) => request(axios, basePath));
462
+ },
463
+ /**
464
+ *
465
+ * @param {number} [page]
466
+ * @param {number} [size]
467
+ * @param {string} [q]
468
+ * @param {string} [sort]
469
+ * @param {Array<string>} [fields]
470
+ * @param {Array<number>} [id]
471
+ * @param {string} [name]
472
+ * @param {boolean} [enabled]
473
+ * @param {*} [options] Override http request option.
474
+ * @throws {RequiredError}
475
+ */
476
+ searchChatPlan(page, size, q, sort, fields, id, name, enabled, options) {
477
+ return RoutingChatPlanServiceApiFp(configuration)
478
+ .searchChatPlan(page, size, q, sort, fields, id, name, enabled, options)
479
+ .then((request) => request(axios, basePath));
480
+ },
481
+ /**
482
+ *
483
+ * @param {number} id
484
+ * @param {EngineUpdateChatPlanRequest} body
485
+ * @param {*} [options] Override http request option.
486
+ * @throws {RequiredError}
487
+ */
488
+ updateChatPlan(id, body, options) {
489
+ return RoutingChatPlanServiceApiFp(configuration)
490
+ .updateChatPlan(id, body, options)
491
+ .then((request) => request(axios, basePath));
492
+ },
493
+ };
494
+ };
495
+ /**
496
+ * RoutingChatPlanServiceApi - object-oriented interface
497
+ * @export
498
+ * @class RoutingChatPlanServiceApi
499
+ * @extends {BaseAPI}
500
+ */
501
+ export class RoutingChatPlanServiceApi extends BaseAPI {
502
+ /**
503
+ *
504
+ * @param {EngineCreateChatPlanRequest} body
505
+ * @param {*} [options] Override http request option.
506
+ * @throws {RequiredError}
507
+ * @memberof RoutingChatPlanServiceApi
508
+ */
509
+ createChatPlan(body, options) {
510
+ return RoutingChatPlanServiceApiFp(this.configuration)
511
+ .createChatPlan(body, options)
512
+ .then((request) => request(this.axios, this.basePath));
513
+ }
514
+ /**
515
+ *
516
+ * @param {number} id
517
+ * @param {EnginePatchChatPlanRequest} body
518
+ * @param {*} [options] Override http request option.
519
+ * @throws {RequiredError}
520
+ * @memberof RoutingChatPlanServiceApi
521
+ */
522
+ patchChatPlan(id, body, options) {
523
+ return RoutingChatPlanServiceApiFp(this.configuration)
524
+ .patchChatPlan(id, body, options)
525
+ .then((request) => request(this.axios, this.basePath));
526
+ }
527
+ /**
528
+ *
529
+ * @param {number} id
530
+ * @param {*} [options] Override http request option.
531
+ * @throws {RequiredError}
532
+ * @memberof RoutingChatPlanServiceApi
533
+ */
534
+ readChatPlan(id, options) {
535
+ return RoutingChatPlanServiceApiFp(this.configuration)
536
+ .readChatPlan(id, options)
537
+ .then((request) => request(this.axios, this.basePath));
538
+ }
539
+ /**
540
+ *
541
+ * @param {number} [page]
542
+ * @param {number} [size]
543
+ * @param {string} [q]
544
+ * @param {string} [sort]
545
+ * @param {Array<string>} [fields]
546
+ * @param {Array<number>} [id]
547
+ * @param {string} [name]
548
+ * @param {boolean} [enabled]
549
+ * @param {*} [options] Override http request option.
550
+ * @throws {RequiredError}
551
+ * @memberof RoutingChatPlanServiceApi
552
+ */
553
+ searchChatPlan(page, size, q, sort, fields, id, name, enabled, options) {
554
+ return RoutingChatPlanServiceApiFp(this.configuration)
555
+ .searchChatPlan(page, size, q, sort, fields, id, name, enabled, options)
556
+ .then((request) => request(this.axios, this.basePath));
557
+ }
558
+ /**
559
+ *
560
+ * @param {number} id
561
+ * @param {EngineUpdateChatPlanRequest} body
562
+ * @param {*} [options] Override http request option.
563
+ * @throws {RequiredError}
564
+ * @memberof RoutingChatPlanServiceApi
565
+ */
566
+ updateChatPlan(id, body, options) {
567
+ return RoutingChatPlanServiceApiFp(this.configuration)
568
+ .updateChatPlan(id, body, options)
569
+ .then((request) => request(this.axios, this.basePath));
570
+ }
571
+ }
572
+ //# sourceMappingURL=routing-chat-plan-service-api.js.map