@scout9/admin 1.0.0-alpha.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 +58 -0
- package/build/api.d.ts +7779 -0
- package/build/api.js +4101 -0
- package/build/base.d.ts +54 -0
- package/build/base.js +66 -0
- package/build/common.d.ts +65 -0
- package/build/common.js +145 -0
- package/build/configuration.d.ts +91 -0
- package/build/configuration.js +114 -0
- package/build/index.d.ts +13 -0
- package/build/index.js +31 -0
- package/package.json +42 -0
- package/src/api.ts +10131 -0
- package/src/base.ts +72 -0
- package/src/common.ts +150 -0
- package/src/configuration.ts +126 -0
- package/src/index.ts +18 -0
- package/tsconfig.json +16 -0
- package/tsconfig.tsbuildinfo +1 -0
package/build/api.js
ADDED
|
@@ -0,0 +1,4101 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Scout9\'s Pocket Scout API
|
|
6
|
+
* Pocket Scout APIs for managing Scout9 users and conversations with your Pocket Scout agents
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
16
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
17
|
+
};
|
|
18
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
+
exports.PocketScoutApi = exports.PocketScoutApiFactory = exports.PocketScoutApiFp = exports.PocketScoutApiAxiosParamCreator = exports.UpdateAgentsRequestAgentsInnerModelEnum = exports.UpdateAgentRequestModelEnum = exports.Operator = exports.MessageGetResponseInnerRoleEnum = exports.MessageCreateRequestRoleEnum = exports.MessageBaseRoleEnum = exports.MessageRoleEnum = exports.ListApiOperationsResponseInnerMethodEnum = exports.ListAgentsResponseInnerModelEnum = exports.GetApiOperationResponseMethodEnum = exports.GetAgentResponseModelEnum = exports.GenerateResponseRoleEnum = exports.CreateAgentsRequestAgentsInnerModelEnum = exports.CreateAgentRequestModelEnum = exports.ConversationEnvironment = exports.ConversationContextFieldConditionOperatorEnum = exports.ApiOperationMethodEnum = exports.AgentModelEnum = void 0;
|
|
20
|
+
const axios_1 = __importDefault(require("axios"));
|
|
21
|
+
// Some imports not used depending on template conditions
|
|
22
|
+
// @ts-ignore
|
|
23
|
+
const common_1 = require("./common");
|
|
24
|
+
// @ts-ignore
|
|
25
|
+
const base_1 = require("./base");
|
|
26
|
+
exports.AgentModelEnum = {
|
|
27
|
+
PocketScout: 'Pocket Scout',
|
|
28
|
+
Bard: 'bard',
|
|
29
|
+
Null: 'null'
|
|
30
|
+
};
|
|
31
|
+
exports.ApiOperationMethodEnum = {
|
|
32
|
+
Get: 'get',
|
|
33
|
+
Post: 'post',
|
|
34
|
+
Put: 'put',
|
|
35
|
+
Delete: 'delete',
|
|
36
|
+
Patch: 'patch'
|
|
37
|
+
};
|
|
38
|
+
exports.ConversationContextFieldConditionOperatorEnum = {
|
|
39
|
+
Eq: 'eq',
|
|
40
|
+
Equal: 'equal',
|
|
41
|
+
Ne: 'ne',
|
|
42
|
+
NotEquals: 'not-equals',
|
|
43
|
+
Gt: 'gt',
|
|
44
|
+
GreaterThan: 'greater-than',
|
|
45
|
+
Gte: 'gte',
|
|
46
|
+
GreaterThanEquals: 'greater-than-equals',
|
|
47
|
+
Lt: 'lt',
|
|
48
|
+
LessThan: 'less-than',
|
|
49
|
+
Lte: 'lte',
|
|
50
|
+
LessThanEquals: 'less-than-equals',
|
|
51
|
+
ArrayContains: 'array-contains',
|
|
52
|
+
In: 'in',
|
|
53
|
+
ArrayContainsAny: 'array-contains-any',
|
|
54
|
+
NotIn: 'not-in',
|
|
55
|
+
Exists: 'exists',
|
|
56
|
+
NotExists: 'notExists',
|
|
57
|
+
Contains: 'contains',
|
|
58
|
+
NotContains: 'notContains',
|
|
59
|
+
StartsWith: 'startsWith',
|
|
60
|
+
EndsWith: 'endsWith'
|
|
61
|
+
};
|
|
62
|
+
/**
|
|
63
|
+
* Environment this conversation is in (phone, web, or email) - this determines which device to send messages to
|
|
64
|
+
* @export
|
|
65
|
+
* @enum {string}
|
|
66
|
+
*/
|
|
67
|
+
exports.ConversationEnvironment = {
|
|
68
|
+
Phone: 'phone',
|
|
69
|
+
Web: 'web',
|
|
70
|
+
Email: 'email'
|
|
71
|
+
};
|
|
72
|
+
exports.CreateAgentRequestModelEnum = {
|
|
73
|
+
PocketScout: 'Pocket Scout',
|
|
74
|
+
Bard: 'bard',
|
|
75
|
+
Null: 'null'
|
|
76
|
+
};
|
|
77
|
+
exports.CreateAgentsRequestAgentsInnerModelEnum = {
|
|
78
|
+
PocketScout: 'Pocket Scout',
|
|
79
|
+
Bard: 'bard',
|
|
80
|
+
Null: 'null'
|
|
81
|
+
};
|
|
82
|
+
exports.GenerateResponseRoleEnum = {
|
|
83
|
+
Customer: 'customer',
|
|
84
|
+
Agent: 'agent',
|
|
85
|
+
Context: 'context'
|
|
86
|
+
};
|
|
87
|
+
exports.GetAgentResponseModelEnum = {
|
|
88
|
+
PocketScout: 'Pocket Scout',
|
|
89
|
+
Bard: 'bard',
|
|
90
|
+
Null: 'null'
|
|
91
|
+
};
|
|
92
|
+
exports.GetApiOperationResponseMethodEnum = {
|
|
93
|
+
Get: 'get',
|
|
94
|
+
Post: 'post',
|
|
95
|
+
Put: 'put',
|
|
96
|
+
Delete: 'delete',
|
|
97
|
+
Patch: 'patch'
|
|
98
|
+
};
|
|
99
|
+
exports.ListAgentsResponseInnerModelEnum = {
|
|
100
|
+
PocketScout: 'Pocket Scout',
|
|
101
|
+
Bard: 'bard',
|
|
102
|
+
Null: 'null'
|
|
103
|
+
};
|
|
104
|
+
exports.ListApiOperationsResponseInnerMethodEnum = {
|
|
105
|
+
Get: 'get',
|
|
106
|
+
Post: 'post',
|
|
107
|
+
Put: 'put',
|
|
108
|
+
Delete: 'delete',
|
|
109
|
+
Patch: 'patch'
|
|
110
|
+
};
|
|
111
|
+
exports.MessageRoleEnum = {
|
|
112
|
+
Customer: 'customer',
|
|
113
|
+
Agent: 'agent',
|
|
114
|
+
Context: 'context'
|
|
115
|
+
};
|
|
116
|
+
exports.MessageBaseRoleEnum = {
|
|
117
|
+
Customer: 'customer',
|
|
118
|
+
Agent: 'agent',
|
|
119
|
+
Context: 'context'
|
|
120
|
+
};
|
|
121
|
+
exports.MessageCreateRequestRoleEnum = {
|
|
122
|
+
Agent: 'agent',
|
|
123
|
+
Customer: 'customer',
|
|
124
|
+
Context: 'context'
|
|
125
|
+
};
|
|
126
|
+
exports.MessageGetResponseInnerRoleEnum = {
|
|
127
|
+
Customer: 'customer',
|
|
128
|
+
Agent: 'agent',
|
|
129
|
+
Context: 'context'
|
|
130
|
+
};
|
|
131
|
+
/**
|
|
132
|
+
* The operator of the condition or query
|
|
133
|
+
* @export
|
|
134
|
+
* @enum {string}
|
|
135
|
+
*/
|
|
136
|
+
exports.Operator = {
|
|
137
|
+
Eq: 'eq',
|
|
138
|
+
Equal: 'equal',
|
|
139
|
+
Ne: 'ne',
|
|
140
|
+
NotEquals: 'not-equals',
|
|
141
|
+
Gt: 'gt',
|
|
142
|
+
GreaterThan: 'greater-than',
|
|
143
|
+
Gte: 'gte',
|
|
144
|
+
GreaterThanEquals: 'greater-than-equals',
|
|
145
|
+
Lt: 'lt',
|
|
146
|
+
LessThan: 'less-than',
|
|
147
|
+
Lte: 'lte',
|
|
148
|
+
LessThanEquals: 'less-than-equals',
|
|
149
|
+
ArrayContains: 'array-contains',
|
|
150
|
+
In: 'in',
|
|
151
|
+
ArrayContainsAny: 'array-contains-any',
|
|
152
|
+
NotIn: 'not-in'
|
|
153
|
+
};
|
|
154
|
+
exports.UpdateAgentRequestModelEnum = {
|
|
155
|
+
PocketScout: 'Pocket Scout',
|
|
156
|
+
Bard: 'bard',
|
|
157
|
+
Null: 'null'
|
|
158
|
+
};
|
|
159
|
+
exports.UpdateAgentsRequestAgentsInnerModelEnum = {
|
|
160
|
+
PocketScout: 'Pocket Scout',
|
|
161
|
+
Bard: 'bard',
|
|
162
|
+
Null: 'null'
|
|
163
|
+
};
|
|
164
|
+
/**
|
|
165
|
+
* PocketScoutApi - axios parameter creator
|
|
166
|
+
* @export
|
|
167
|
+
*/
|
|
168
|
+
const PocketScoutApiAxiosParamCreator = function (configuration) {
|
|
169
|
+
return {
|
|
170
|
+
/**
|
|
171
|
+
*
|
|
172
|
+
* @summary Gets a agent
|
|
173
|
+
* @param {string} id id of entity to query
|
|
174
|
+
* @param {*} [options] Override http request option.
|
|
175
|
+
* @throws {RequiredError}
|
|
176
|
+
*/
|
|
177
|
+
agent: async (id, options = {}) => {
|
|
178
|
+
// verify required parameter 'id' is not null or undefined
|
|
179
|
+
(0, common_1.assertParamExists)('agent', 'id', id);
|
|
180
|
+
const localVarPath = `/v1-agent`;
|
|
181
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
182
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
183
|
+
let baseOptions;
|
|
184
|
+
if (configuration) {
|
|
185
|
+
baseOptions = configuration.baseOptions;
|
|
186
|
+
}
|
|
187
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
188
|
+
const localVarHeaderParameter = {};
|
|
189
|
+
const localVarQueryParameter = {};
|
|
190
|
+
if (id !== undefined) {
|
|
191
|
+
localVarQueryParameter['id'] = id;
|
|
192
|
+
}
|
|
193
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
194
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
195
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
196
|
+
return {
|
|
197
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
198
|
+
options: localVarRequestOptions,
|
|
199
|
+
};
|
|
200
|
+
},
|
|
201
|
+
/**
|
|
202
|
+
*
|
|
203
|
+
* @summary Deletes a agent
|
|
204
|
+
* @param {string} id id of entity to query
|
|
205
|
+
* @param {*} [options] Override http request option.
|
|
206
|
+
* @throws {RequiredError}
|
|
207
|
+
*/
|
|
208
|
+
agentDelete: async (id, options = {}) => {
|
|
209
|
+
// verify required parameter 'id' is not null or undefined
|
|
210
|
+
(0, common_1.assertParamExists)('agentDelete', 'id', id);
|
|
211
|
+
const localVarPath = `/v1-agent`;
|
|
212
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
213
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
214
|
+
let baseOptions;
|
|
215
|
+
if (configuration) {
|
|
216
|
+
baseOptions = configuration.baseOptions;
|
|
217
|
+
}
|
|
218
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
219
|
+
const localVarHeaderParameter = {};
|
|
220
|
+
const localVarQueryParameter = {};
|
|
221
|
+
if (id !== undefined) {
|
|
222
|
+
localVarQueryParameter['id'] = id;
|
|
223
|
+
}
|
|
224
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
225
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
226
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
227
|
+
return {
|
|
228
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
229
|
+
options: localVarRequestOptions,
|
|
230
|
+
};
|
|
231
|
+
},
|
|
232
|
+
/**
|
|
233
|
+
*
|
|
234
|
+
* @summary Registers a new agent
|
|
235
|
+
* @param {CreateAgentRequest} createAgentRequest
|
|
236
|
+
* @param {*} [options] Override http request option.
|
|
237
|
+
* @throws {RequiredError}
|
|
238
|
+
*/
|
|
239
|
+
agentRegister: async (createAgentRequest, options = {}) => {
|
|
240
|
+
// verify required parameter 'createAgentRequest' is not null or undefined
|
|
241
|
+
(0, common_1.assertParamExists)('agentRegister', 'createAgentRequest', createAgentRequest);
|
|
242
|
+
const localVarPath = `/v1-agent`;
|
|
243
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
244
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
245
|
+
let baseOptions;
|
|
246
|
+
if (configuration) {
|
|
247
|
+
baseOptions = configuration.baseOptions;
|
|
248
|
+
}
|
|
249
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
250
|
+
const localVarHeaderParameter = {};
|
|
251
|
+
const localVarQueryParameter = {};
|
|
252
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
253
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
254
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
255
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
256
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createAgentRequest, localVarRequestOptions, configuration);
|
|
257
|
+
return {
|
|
258
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
259
|
+
options: localVarRequestOptions,
|
|
260
|
+
};
|
|
261
|
+
},
|
|
262
|
+
/**
|
|
263
|
+
*
|
|
264
|
+
* @summary Update a agent
|
|
265
|
+
* @param {UpdateAgentRequest} updateAgentRequest
|
|
266
|
+
* @param {*} [options] Override http request option.
|
|
267
|
+
* @throws {RequiredError}
|
|
268
|
+
*/
|
|
269
|
+
agentUpdate: async (updateAgentRequest, options = {}) => {
|
|
270
|
+
// verify required parameter 'updateAgentRequest' is not null or undefined
|
|
271
|
+
(0, common_1.assertParamExists)('agentUpdate', 'updateAgentRequest', updateAgentRequest);
|
|
272
|
+
const localVarPath = `/v1-agent`;
|
|
273
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
274
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
275
|
+
let baseOptions;
|
|
276
|
+
if (configuration) {
|
|
277
|
+
baseOptions = configuration.baseOptions;
|
|
278
|
+
}
|
|
279
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
|
|
280
|
+
const localVarHeaderParameter = {};
|
|
281
|
+
const localVarQueryParameter = {};
|
|
282
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
283
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
284
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
285
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
286
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateAgentRequest, localVarRequestOptions, configuration);
|
|
287
|
+
return {
|
|
288
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
289
|
+
options: localVarRequestOptions,
|
|
290
|
+
};
|
|
291
|
+
},
|
|
292
|
+
/**
|
|
293
|
+
*
|
|
294
|
+
* @summary Gets all or specific set of agents
|
|
295
|
+
* @param {string} [q] Query search string to filter results ({field},{operator},{value}) (example firstName,equals,Patrick)
|
|
296
|
+
* @param {Array<string>} [id] ids for the entities this id belongs to
|
|
297
|
+
* @param {*} [options] Override http request option.
|
|
298
|
+
* @throws {RequiredError}
|
|
299
|
+
*/
|
|
300
|
+
agents: async (q, id, options = {}) => {
|
|
301
|
+
const localVarPath = `/v1-agents`;
|
|
302
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
303
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
304
|
+
let baseOptions;
|
|
305
|
+
if (configuration) {
|
|
306
|
+
baseOptions = configuration.baseOptions;
|
|
307
|
+
}
|
|
308
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
309
|
+
const localVarHeaderParameter = {};
|
|
310
|
+
const localVarQueryParameter = {};
|
|
311
|
+
if (q !== undefined) {
|
|
312
|
+
localVarQueryParameter['q'] = q;
|
|
313
|
+
}
|
|
314
|
+
if (id) {
|
|
315
|
+
localVarQueryParameter['id'] = id;
|
|
316
|
+
}
|
|
317
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
318
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
319
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
320
|
+
return {
|
|
321
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
322
|
+
options: localVarRequestOptions,
|
|
323
|
+
};
|
|
324
|
+
},
|
|
325
|
+
/**
|
|
326
|
+
*
|
|
327
|
+
* @summary Creates new agents
|
|
328
|
+
* @param {CreateAgentsRequest} createAgentsRequest
|
|
329
|
+
* @param {*} [options] Override http request option.
|
|
330
|
+
* @throws {RequiredError}
|
|
331
|
+
*/
|
|
332
|
+
agentsCreate: async (createAgentsRequest, options = {}) => {
|
|
333
|
+
// verify required parameter 'createAgentsRequest' is not null or undefined
|
|
334
|
+
(0, common_1.assertParamExists)('agentsCreate', 'createAgentsRequest', createAgentsRequest);
|
|
335
|
+
const localVarPath = `/v1-agents`;
|
|
336
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
337
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
338
|
+
let baseOptions;
|
|
339
|
+
if (configuration) {
|
|
340
|
+
baseOptions = configuration.baseOptions;
|
|
341
|
+
}
|
|
342
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
343
|
+
const localVarHeaderParameter = {};
|
|
344
|
+
const localVarQueryParameter = {};
|
|
345
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
346
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
347
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
348
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
349
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createAgentsRequest, localVarRequestOptions, configuration);
|
|
350
|
+
return {
|
|
351
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
352
|
+
options: localVarRequestOptions,
|
|
353
|
+
};
|
|
354
|
+
},
|
|
355
|
+
/**
|
|
356
|
+
*
|
|
357
|
+
* @summary Deletes multiple agents
|
|
358
|
+
* @param {Array<string>} [id] ids for the entities this id belongs to
|
|
359
|
+
* @param {*} [options] Override http request option.
|
|
360
|
+
* @throws {RequiredError}
|
|
361
|
+
*/
|
|
362
|
+
agentsDelete: async (id, options = {}) => {
|
|
363
|
+
const localVarPath = `/v1-agents`;
|
|
364
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
365
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
366
|
+
let baseOptions;
|
|
367
|
+
if (configuration) {
|
|
368
|
+
baseOptions = configuration.baseOptions;
|
|
369
|
+
}
|
|
370
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
371
|
+
const localVarHeaderParameter = {};
|
|
372
|
+
const localVarQueryParameter = {};
|
|
373
|
+
if (id) {
|
|
374
|
+
localVarQueryParameter['id'] = id;
|
|
375
|
+
}
|
|
376
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
377
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
378
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
379
|
+
return {
|
|
380
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
381
|
+
options: localVarRequestOptions,
|
|
382
|
+
};
|
|
383
|
+
},
|
|
384
|
+
/**
|
|
385
|
+
*
|
|
386
|
+
* @summary Updates multiple agents
|
|
387
|
+
* @param {UpdateAgentsRequest} updateAgentsRequest
|
|
388
|
+
* @param {*} [options] Override http request option.
|
|
389
|
+
* @throws {RequiredError}
|
|
390
|
+
*/
|
|
391
|
+
agentsUpdate: async (updateAgentsRequest, options = {}) => {
|
|
392
|
+
// verify required parameter 'updateAgentsRequest' is not null or undefined
|
|
393
|
+
(0, common_1.assertParamExists)('agentsUpdate', 'updateAgentsRequest', updateAgentsRequest);
|
|
394
|
+
const localVarPath = `/v1-agents`;
|
|
395
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
396
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
397
|
+
let baseOptions;
|
|
398
|
+
if (configuration) {
|
|
399
|
+
baseOptions = configuration.baseOptions;
|
|
400
|
+
}
|
|
401
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
|
|
402
|
+
const localVarHeaderParameter = {};
|
|
403
|
+
const localVarQueryParameter = {};
|
|
404
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
405
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
406
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
407
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
408
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateAgentsRequest, localVarRequestOptions, configuration);
|
|
409
|
+
return {
|
|
410
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
411
|
+
options: localVarRequestOptions,
|
|
412
|
+
};
|
|
413
|
+
},
|
|
414
|
+
/**
|
|
415
|
+
*
|
|
416
|
+
* @summary Gets a context
|
|
417
|
+
* @param {string} id id of entity to query
|
|
418
|
+
* @param {*} [options] Override http request option.
|
|
419
|
+
* @throws {RequiredError}
|
|
420
|
+
*/
|
|
421
|
+
context: async (id, options = {}) => {
|
|
422
|
+
// verify required parameter 'id' is not null or undefined
|
|
423
|
+
(0, common_1.assertParamExists)('context', 'id', id);
|
|
424
|
+
const localVarPath = `/v1-context`;
|
|
425
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
426
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
427
|
+
let baseOptions;
|
|
428
|
+
if (configuration) {
|
|
429
|
+
baseOptions = configuration.baseOptions;
|
|
430
|
+
}
|
|
431
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
432
|
+
const localVarHeaderParameter = {};
|
|
433
|
+
const localVarQueryParameter = {};
|
|
434
|
+
if (id !== undefined) {
|
|
435
|
+
localVarQueryParameter['id'] = id;
|
|
436
|
+
}
|
|
437
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
438
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
439
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
440
|
+
return {
|
|
441
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
442
|
+
options: localVarRequestOptions,
|
|
443
|
+
};
|
|
444
|
+
},
|
|
445
|
+
/**
|
|
446
|
+
*
|
|
447
|
+
* @summary Create a new context
|
|
448
|
+
* @param {CreateContextRequest} createContextRequest
|
|
449
|
+
* @param {*} [options] Override http request option.
|
|
450
|
+
* @throws {RequiredError}
|
|
451
|
+
*/
|
|
452
|
+
contextCreate: async (createContextRequest, options = {}) => {
|
|
453
|
+
// verify required parameter 'createContextRequest' is not null or undefined
|
|
454
|
+
(0, common_1.assertParamExists)('contextCreate', 'createContextRequest', createContextRequest);
|
|
455
|
+
const localVarPath = `/v1-context`;
|
|
456
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
457
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
458
|
+
let baseOptions;
|
|
459
|
+
if (configuration) {
|
|
460
|
+
baseOptions = configuration.baseOptions;
|
|
461
|
+
}
|
|
462
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
463
|
+
const localVarHeaderParameter = {};
|
|
464
|
+
const localVarQueryParameter = {};
|
|
465
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
466
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
467
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
468
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
469
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createContextRequest, localVarRequestOptions, configuration);
|
|
470
|
+
return {
|
|
471
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
472
|
+
options: localVarRequestOptions,
|
|
473
|
+
};
|
|
474
|
+
},
|
|
475
|
+
/**
|
|
476
|
+
*
|
|
477
|
+
* @summary Deletes a schedule
|
|
478
|
+
* @param {string} id id of entity to query
|
|
479
|
+
* @param {*} [options] Override http request option.
|
|
480
|
+
* @throws {RequiredError}
|
|
481
|
+
*/
|
|
482
|
+
contextDelete: async (id, options = {}) => {
|
|
483
|
+
// verify required parameter 'id' is not null or undefined
|
|
484
|
+
(0, common_1.assertParamExists)('contextDelete', 'id', id);
|
|
485
|
+
const localVarPath = `/v1-context`;
|
|
486
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
487
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
488
|
+
let baseOptions;
|
|
489
|
+
if (configuration) {
|
|
490
|
+
baseOptions = configuration.baseOptions;
|
|
491
|
+
}
|
|
492
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
493
|
+
const localVarHeaderParameter = {};
|
|
494
|
+
const localVarQueryParameter = {};
|
|
495
|
+
if (id !== undefined) {
|
|
496
|
+
localVarQueryParameter['id'] = id;
|
|
497
|
+
}
|
|
498
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
499
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
500
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
501
|
+
return {
|
|
502
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
503
|
+
options: localVarRequestOptions,
|
|
504
|
+
};
|
|
505
|
+
},
|
|
506
|
+
/**
|
|
507
|
+
*
|
|
508
|
+
* @summary Update a context
|
|
509
|
+
* @param {UpdateContextRequest} updateContextRequest
|
|
510
|
+
* @param {*} [options] Override http request option.
|
|
511
|
+
* @throws {RequiredError}
|
|
512
|
+
*/
|
|
513
|
+
contextUpdate: async (updateContextRequest, options = {}) => {
|
|
514
|
+
// verify required parameter 'updateContextRequest' is not null or undefined
|
|
515
|
+
(0, common_1.assertParamExists)('contextUpdate', 'updateContextRequest', updateContextRequest);
|
|
516
|
+
const localVarPath = `/v1-context`;
|
|
517
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
518
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
519
|
+
let baseOptions;
|
|
520
|
+
if (configuration) {
|
|
521
|
+
baseOptions = configuration.baseOptions;
|
|
522
|
+
}
|
|
523
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
|
|
524
|
+
const localVarHeaderParameter = {};
|
|
525
|
+
const localVarQueryParameter = {};
|
|
526
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
527
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
528
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
529
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
530
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateContextRequest, localVarRequestOptions, configuration);
|
|
531
|
+
return {
|
|
532
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
533
|
+
options: localVarRequestOptions,
|
|
534
|
+
};
|
|
535
|
+
},
|
|
536
|
+
/**
|
|
537
|
+
*
|
|
538
|
+
* @summary Gets all or specific set of contexts
|
|
539
|
+
* @param {string} [q] Query search string to filter results ({field},{operator},{value}) (example firstName,equals,Patrick)
|
|
540
|
+
* @param {Array<string>} [id] ids for the entities this id belongs to
|
|
541
|
+
* @param {*} [options] Override http request option.
|
|
542
|
+
* @throws {RequiredError}
|
|
543
|
+
*/
|
|
544
|
+
contexts: async (q, id, options = {}) => {
|
|
545
|
+
const localVarPath = `/v1-contexts`;
|
|
546
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
547
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
548
|
+
let baseOptions;
|
|
549
|
+
if (configuration) {
|
|
550
|
+
baseOptions = configuration.baseOptions;
|
|
551
|
+
}
|
|
552
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
553
|
+
const localVarHeaderParameter = {};
|
|
554
|
+
const localVarQueryParameter = {};
|
|
555
|
+
if (q !== undefined) {
|
|
556
|
+
localVarQueryParameter['q'] = q;
|
|
557
|
+
}
|
|
558
|
+
if (id) {
|
|
559
|
+
localVarQueryParameter['id'] = id;
|
|
560
|
+
}
|
|
561
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
562
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
563
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
564
|
+
return {
|
|
565
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
566
|
+
options: localVarRequestOptions,
|
|
567
|
+
};
|
|
568
|
+
},
|
|
569
|
+
/**
|
|
570
|
+
*
|
|
571
|
+
* @summary Creates new contexts
|
|
572
|
+
* @param {CreateContextsRequest} createContextsRequest
|
|
573
|
+
* @param {*} [options] Override http request option.
|
|
574
|
+
* @throws {RequiredError}
|
|
575
|
+
*/
|
|
576
|
+
contextsCreate: async (createContextsRequest, options = {}) => {
|
|
577
|
+
// verify required parameter 'createContextsRequest' is not null or undefined
|
|
578
|
+
(0, common_1.assertParamExists)('contextsCreate', 'createContextsRequest', createContextsRequest);
|
|
579
|
+
const localVarPath = `/v1-contexts`;
|
|
580
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
581
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
582
|
+
let baseOptions;
|
|
583
|
+
if (configuration) {
|
|
584
|
+
baseOptions = configuration.baseOptions;
|
|
585
|
+
}
|
|
586
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
587
|
+
const localVarHeaderParameter = {};
|
|
588
|
+
const localVarQueryParameter = {};
|
|
589
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
590
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
591
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
592
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
593
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createContextsRequest, localVarRequestOptions, configuration);
|
|
594
|
+
return {
|
|
595
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
596
|
+
options: localVarRequestOptions,
|
|
597
|
+
};
|
|
598
|
+
},
|
|
599
|
+
/**
|
|
600
|
+
*
|
|
601
|
+
* @summary Deletes multiple contexts
|
|
602
|
+
* @param {Array<string>} [id] ids for the entities this id belongs to
|
|
603
|
+
* @param {*} [options] Override http request option.
|
|
604
|
+
* @throws {RequiredError}
|
|
605
|
+
*/
|
|
606
|
+
contextsDelete: async (id, options = {}) => {
|
|
607
|
+
const localVarPath = `/v1-contexts`;
|
|
608
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
609
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
610
|
+
let baseOptions;
|
|
611
|
+
if (configuration) {
|
|
612
|
+
baseOptions = configuration.baseOptions;
|
|
613
|
+
}
|
|
614
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
615
|
+
const localVarHeaderParameter = {};
|
|
616
|
+
const localVarQueryParameter = {};
|
|
617
|
+
if (id) {
|
|
618
|
+
localVarQueryParameter['id'] = id;
|
|
619
|
+
}
|
|
620
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
621
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
622
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
623
|
+
return {
|
|
624
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
625
|
+
options: localVarRequestOptions,
|
|
626
|
+
};
|
|
627
|
+
},
|
|
628
|
+
/**
|
|
629
|
+
*
|
|
630
|
+
* @summary Updates multiple contexts
|
|
631
|
+
* @param {UpdateContextRequest} updateContextRequest
|
|
632
|
+
* @param {*} [options] Override http request option.
|
|
633
|
+
* @throws {RequiredError}
|
|
634
|
+
*/
|
|
635
|
+
contextsUpdate: async (updateContextRequest, options = {}) => {
|
|
636
|
+
// verify required parameter 'updateContextRequest' is not null or undefined
|
|
637
|
+
(0, common_1.assertParamExists)('contextsUpdate', 'updateContextRequest', updateContextRequest);
|
|
638
|
+
const localVarPath = `/v1-contexts`;
|
|
639
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
640
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
641
|
+
let baseOptions;
|
|
642
|
+
if (configuration) {
|
|
643
|
+
baseOptions = configuration.baseOptions;
|
|
644
|
+
}
|
|
645
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
|
|
646
|
+
const localVarHeaderParameter = {};
|
|
647
|
+
const localVarQueryParameter = {};
|
|
648
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
649
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
650
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
651
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
652
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateContextRequest, localVarRequestOptions, configuration);
|
|
653
|
+
return {
|
|
654
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
655
|
+
options: localVarRequestOptions,
|
|
656
|
+
};
|
|
657
|
+
},
|
|
658
|
+
/**
|
|
659
|
+
*
|
|
660
|
+
* @summary Gets a conversation
|
|
661
|
+
* @param {string} id id of entity to query
|
|
662
|
+
* @param {*} [options] Override http request option.
|
|
663
|
+
* @throws {RequiredError}
|
|
664
|
+
*/
|
|
665
|
+
conversation: async (id, options = {}) => {
|
|
666
|
+
// verify required parameter 'id' is not null or undefined
|
|
667
|
+
(0, common_1.assertParamExists)('conversation', 'id', id);
|
|
668
|
+
const localVarPath = `/v1-conversation`;
|
|
669
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
670
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
671
|
+
let baseOptions;
|
|
672
|
+
if (configuration) {
|
|
673
|
+
baseOptions = configuration.baseOptions;
|
|
674
|
+
}
|
|
675
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
676
|
+
const localVarHeaderParameter = {};
|
|
677
|
+
const localVarQueryParameter = {};
|
|
678
|
+
if (id !== undefined) {
|
|
679
|
+
localVarQueryParameter['id'] = id;
|
|
680
|
+
}
|
|
681
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
682
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
683
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
684
|
+
return {
|
|
685
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
686
|
+
options: localVarRequestOptions,
|
|
687
|
+
};
|
|
688
|
+
},
|
|
689
|
+
/**
|
|
690
|
+
*
|
|
691
|
+
* @summary Create a new conversation
|
|
692
|
+
* @param {ConversationCreateRequest} conversationCreateRequest
|
|
693
|
+
* @param {*} [options] Override http request option.
|
|
694
|
+
* @throws {RequiredError}
|
|
695
|
+
*/
|
|
696
|
+
conversationCreate: async (conversationCreateRequest, options = {}) => {
|
|
697
|
+
// verify required parameter 'conversationCreateRequest' is not null or undefined
|
|
698
|
+
(0, common_1.assertParamExists)('conversationCreate', 'conversationCreateRequest', conversationCreateRequest);
|
|
699
|
+
const localVarPath = `/v1-conversation`;
|
|
700
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
701
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
702
|
+
let baseOptions;
|
|
703
|
+
if (configuration) {
|
|
704
|
+
baseOptions = configuration.baseOptions;
|
|
705
|
+
}
|
|
706
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
707
|
+
const localVarHeaderParameter = {};
|
|
708
|
+
const localVarQueryParameter = {};
|
|
709
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
710
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
711
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
712
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
713
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(conversationCreateRequest, localVarRequestOptions, configuration);
|
|
714
|
+
return {
|
|
715
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
716
|
+
options: localVarRequestOptions,
|
|
717
|
+
};
|
|
718
|
+
},
|
|
719
|
+
/**
|
|
720
|
+
*
|
|
721
|
+
* @summary Deletes a schedule
|
|
722
|
+
* @param {string} id id of entity to query
|
|
723
|
+
* @param {*} [options] Override http request option.
|
|
724
|
+
* @throws {RequiredError}
|
|
725
|
+
*/
|
|
726
|
+
conversationDelete: async (id, options = {}) => {
|
|
727
|
+
// verify required parameter 'id' is not null or undefined
|
|
728
|
+
(0, common_1.assertParamExists)('conversationDelete', 'id', id);
|
|
729
|
+
const localVarPath = `/v1-conversation`;
|
|
730
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
731
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
732
|
+
let baseOptions;
|
|
733
|
+
if (configuration) {
|
|
734
|
+
baseOptions = configuration.baseOptions;
|
|
735
|
+
}
|
|
736
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
737
|
+
const localVarHeaderParameter = {};
|
|
738
|
+
const localVarQueryParameter = {};
|
|
739
|
+
if (id !== undefined) {
|
|
740
|
+
localVarQueryParameter['id'] = id;
|
|
741
|
+
}
|
|
742
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
743
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
744
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
745
|
+
return {
|
|
746
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
747
|
+
options: localVarRequestOptions,
|
|
748
|
+
};
|
|
749
|
+
},
|
|
750
|
+
/**
|
|
751
|
+
*
|
|
752
|
+
* @summary Update a conversation
|
|
753
|
+
* @param {ConversationUpdateRequest} conversationUpdateRequest
|
|
754
|
+
* @param {*} [options] Override http request option.
|
|
755
|
+
* @throws {RequiredError}
|
|
756
|
+
*/
|
|
757
|
+
conversationUpdate: async (conversationUpdateRequest, options = {}) => {
|
|
758
|
+
// verify required parameter 'conversationUpdateRequest' is not null or undefined
|
|
759
|
+
(0, common_1.assertParamExists)('conversationUpdate', 'conversationUpdateRequest', conversationUpdateRequest);
|
|
760
|
+
const localVarPath = `/v1-conversation`;
|
|
761
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
762
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
763
|
+
let baseOptions;
|
|
764
|
+
if (configuration) {
|
|
765
|
+
baseOptions = configuration.baseOptions;
|
|
766
|
+
}
|
|
767
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
|
|
768
|
+
const localVarHeaderParameter = {};
|
|
769
|
+
const localVarQueryParameter = {};
|
|
770
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
771
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
772
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
773
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
774
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(conversationUpdateRequest, localVarRequestOptions, configuration);
|
|
775
|
+
return {
|
|
776
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
777
|
+
options: localVarRequestOptions,
|
|
778
|
+
};
|
|
779
|
+
},
|
|
780
|
+
/**
|
|
781
|
+
*
|
|
782
|
+
* @summary Gets a customer
|
|
783
|
+
* @param {string} id id of entity to query
|
|
784
|
+
* @param {*} [options] Override http request option.
|
|
785
|
+
* @throws {RequiredError}
|
|
786
|
+
*/
|
|
787
|
+
customer: async (id, options = {}) => {
|
|
788
|
+
// verify required parameter 'id' is not null or undefined
|
|
789
|
+
(0, common_1.assertParamExists)('customer', 'id', id);
|
|
790
|
+
const localVarPath = `/v1-customer`;
|
|
791
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
792
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
793
|
+
let baseOptions;
|
|
794
|
+
if (configuration) {
|
|
795
|
+
baseOptions = configuration.baseOptions;
|
|
796
|
+
}
|
|
797
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
798
|
+
const localVarHeaderParameter = {};
|
|
799
|
+
const localVarQueryParameter = {};
|
|
800
|
+
if (id !== undefined) {
|
|
801
|
+
localVarQueryParameter['id'] = id;
|
|
802
|
+
}
|
|
803
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
804
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
805
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
806
|
+
return {
|
|
807
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
808
|
+
options: localVarRequestOptions,
|
|
809
|
+
};
|
|
810
|
+
},
|
|
811
|
+
/**
|
|
812
|
+
*
|
|
813
|
+
* @summary Creates a new customer
|
|
814
|
+
* @param {CreateCustomerRequest} createCustomerRequest
|
|
815
|
+
* @param {*} [options] Override http request option.
|
|
816
|
+
* @throws {RequiredError}
|
|
817
|
+
*/
|
|
818
|
+
customerCreate: async (createCustomerRequest, options = {}) => {
|
|
819
|
+
// verify required parameter 'createCustomerRequest' is not null or undefined
|
|
820
|
+
(0, common_1.assertParamExists)('customerCreate', 'createCustomerRequest', createCustomerRequest);
|
|
821
|
+
const localVarPath = `/v1-customer`;
|
|
822
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
823
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
824
|
+
let baseOptions;
|
|
825
|
+
if (configuration) {
|
|
826
|
+
baseOptions = configuration.baseOptions;
|
|
827
|
+
}
|
|
828
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
829
|
+
const localVarHeaderParameter = {};
|
|
830
|
+
const localVarQueryParameter = {};
|
|
831
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
832
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
833
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
834
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
835
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createCustomerRequest, localVarRequestOptions, configuration);
|
|
836
|
+
return {
|
|
837
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
838
|
+
options: localVarRequestOptions,
|
|
839
|
+
};
|
|
840
|
+
},
|
|
841
|
+
/**
|
|
842
|
+
*
|
|
843
|
+
* @summary Deletes a customer
|
|
844
|
+
* @param {string} id id of entity to query
|
|
845
|
+
* @param {*} [options] Override http request option.
|
|
846
|
+
* @throws {RequiredError}
|
|
847
|
+
*/
|
|
848
|
+
customerDelete: async (id, options = {}) => {
|
|
849
|
+
// verify required parameter 'id' is not null or undefined
|
|
850
|
+
(0, common_1.assertParamExists)('customerDelete', 'id', id);
|
|
851
|
+
const localVarPath = `/v1-customer`;
|
|
852
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
853
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
854
|
+
let baseOptions;
|
|
855
|
+
if (configuration) {
|
|
856
|
+
baseOptions = configuration.baseOptions;
|
|
857
|
+
}
|
|
858
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
859
|
+
const localVarHeaderParameter = {};
|
|
860
|
+
const localVarQueryParameter = {};
|
|
861
|
+
if (id !== undefined) {
|
|
862
|
+
localVarQueryParameter['id'] = id;
|
|
863
|
+
}
|
|
864
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
865
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
866
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
867
|
+
return {
|
|
868
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
869
|
+
options: localVarRequestOptions,
|
|
870
|
+
};
|
|
871
|
+
},
|
|
872
|
+
/**
|
|
873
|
+
*
|
|
874
|
+
* @summary Gets a customer group
|
|
875
|
+
* @param {string} id id of entity to query
|
|
876
|
+
* @param {*} [options] Override http request option.
|
|
877
|
+
* @throws {RequiredError}
|
|
878
|
+
*/
|
|
879
|
+
customerGroup: async (id, options = {}) => {
|
|
880
|
+
// verify required parameter 'id' is not null or undefined
|
|
881
|
+
(0, common_1.assertParamExists)('customerGroup', 'id', id);
|
|
882
|
+
const localVarPath = `/v1-customerGroup`;
|
|
883
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
884
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
885
|
+
let baseOptions;
|
|
886
|
+
if (configuration) {
|
|
887
|
+
baseOptions = configuration.baseOptions;
|
|
888
|
+
}
|
|
889
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
890
|
+
const localVarHeaderParameter = {};
|
|
891
|
+
const localVarQueryParameter = {};
|
|
892
|
+
if (id !== undefined) {
|
|
893
|
+
localVarQueryParameter['id'] = id;
|
|
894
|
+
}
|
|
895
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
896
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
897
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
898
|
+
return {
|
|
899
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
900
|
+
options: localVarRequestOptions,
|
|
901
|
+
};
|
|
902
|
+
},
|
|
903
|
+
/**
|
|
904
|
+
*
|
|
905
|
+
* @summary Creates a new customer group
|
|
906
|
+
* @param {CreateCustomerGroupRequest} createCustomerGroupRequest
|
|
907
|
+
* @param {*} [options] Override http request option.
|
|
908
|
+
* @throws {RequiredError}
|
|
909
|
+
*/
|
|
910
|
+
customerGroupCreate: async (createCustomerGroupRequest, options = {}) => {
|
|
911
|
+
// verify required parameter 'createCustomerGroupRequest' is not null or undefined
|
|
912
|
+
(0, common_1.assertParamExists)('customerGroupCreate', 'createCustomerGroupRequest', createCustomerGroupRequest);
|
|
913
|
+
const localVarPath = `/v1-customerGroup`;
|
|
914
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
915
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
916
|
+
let baseOptions;
|
|
917
|
+
if (configuration) {
|
|
918
|
+
baseOptions = configuration.baseOptions;
|
|
919
|
+
}
|
|
920
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
921
|
+
const localVarHeaderParameter = {};
|
|
922
|
+
const localVarQueryParameter = {};
|
|
923
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
924
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
925
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
926
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
927
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createCustomerGroupRequest, localVarRequestOptions, configuration);
|
|
928
|
+
return {
|
|
929
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
930
|
+
options: localVarRequestOptions,
|
|
931
|
+
};
|
|
932
|
+
},
|
|
933
|
+
/**
|
|
934
|
+
*
|
|
935
|
+
* @summary Deletes a customer group
|
|
936
|
+
* @param {string} id id of entity to query
|
|
937
|
+
* @param {*} [options] Override http request option.
|
|
938
|
+
* @throws {RequiredError}
|
|
939
|
+
*/
|
|
940
|
+
customerGroupDelete: async (id, options = {}) => {
|
|
941
|
+
// verify required parameter 'id' is not null or undefined
|
|
942
|
+
(0, common_1.assertParamExists)('customerGroupDelete', 'id', id);
|
|
943
|
+
const localVarPath = `/v1-customerGroup`;
|
|
944
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
945
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
946
|
+
let baseOptions;
|
|
947
|
+
if (configuration) {
|
|
948
|
+
baseOptions = configuration.baseOptions;
|
|
949
|
+
}
|
|
950
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
951
|
+
const localVarHeaderParameter = {};
|
|
952
|
+
const localVarQueryParameter = {};
|
|
953
|
+
if (id !== undefined) {
|
|
954
|
+
localVarQueryParameter['id'] = id;
|
|
955
|
+
}
|
|
956
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
957
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
958
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
959
|
+
return {
|
|
960
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
961
|
+
options: localVarRequestOptions,
|
|
962
|
+
};
|
|
963
|
+
},
|
|
964
|
+
/**
|
|
965
|
+
*
|
|
966
|
+
* @summary Updates a customer group
|
|
967
|
+
* @param {UpdateCustomerGroupRequest} updateCustomerGroupRequest
|
|
968
|
+
* @param {*} [options] Override http request option.
|
|
969
|
+
* @throws {RequiredError}
|
|
970
|
+
*/
|
|
971
|
+
customerGroupUpdate: async (updateCustomerGroupRequest, options = {}) => {
|
|
972
|
+
// verify required parameter 'updateCustomerGroupRequest' is not null or undefined
|
|
973
|
+
(0, common_1.assertParamExists)('customerGroupUpdate', 'updateCustomerGroupRequest', updateCustomerGroupRequest);
|
|
974
|
+
const localVarPath = `/v1-customerGroup`;
|
|
975
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
976
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
977
|
+
let baseOptions;
|
|
978
|
+
if (configuration) {
|
|
979
|
+
baseOptions = configuration.baseOptions;
|
|
980
|
+
}
|
|
981
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
|
|
982
|
+
const localVarHeaderParameter = {};
|
|
983
|
+
const localVarQueryParameter = {};
|
|
984
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
985
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
986
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
987
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
988
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateCustomerGroupRequest, localVarRequestOptions, configuration);
|
|
989
|
+
return {
|
|
990
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
991
|
+
options: localVarRequestOptions,
|
|
992
|
+
};
|
|
993
|
+
},
|
|
994
|
+
/**
|
|
995
|
+
*
|
|
996
|
+
* @summary Gets all or specific set of customer groups
|
|
997
|
+
* @param {string} [q] Query search string to filter results ({field},{operator},{value}) (example firstName,equals,Patrick)
|
|
998
|
+
* @param {Array<string>} [id] ids for the entities this id belongs to
|
|
999
|
+
* @param {*} [options] Override http request option.
|
|
1000
|
+
* @throws {RequiredError}
|
|
1001
|
+
*/
|
|
1002
|
+
customerGroups: async (q, id, options = {}) => {
|
|
1003
|
+
const localVarPath = `/v1-customerGroups`;
|
|
1004
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1005
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1006
|
+
let baseOptions;
|
|
1007
|
+
if (configuration) {
|
|
1008
|
+
baseOptions = configuration.baseOptions;
|
|
1009
|
+
}
|
|
1010
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
1011
|
+
const localVarHeaderParameter = {};
|
|
1012
|
+
const localVarQueryParameter = {};
|
|
1013
|
+
if (q !== undefined) {
|
|
1014
|
+
localVarQueryParameter['q'] = q;
|
|
1015
|
+
}
|
|
1016
|
+
if (id) {
|
|
1017
|
+
localVarQueryParameter['id'] = id;
|
|
1018
|
+
}
|
|
1019
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1020
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1021
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1022
|
+
return {
|
|
1023
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1024
|
+
options: localVarRequestOptions,
|
|
1025
|
+
};
|
|
1026
|
+
},
|
|
1027
|
+
/**
|
|
1028
|
+
*
|
|
1029
|
+
* @summary Creates new customer groups
|
|
1030
|
+
* @param {CreateCustomerGroupsRequest} createCustomerGroupsRequest
|
|
1031
|
+
* @param {*} [options] Override http request option.
|
|
1032
|
+
* @throws {RequiredError}
|
|
1033
|
+
*/
|
|
1034
|
+
customerGroupsCreate: async (createCustomerGroupsRequest, options = {}) => {
|
|
1035
|
+
// verify required parameter 'createCustomerGroupsRequest' is not null or undefined
|
|
1036
|
+
(0, common_1.assertParamExists)('customerGroupsCreate', 'createCustomerGroupsRequest', createCustomerGroupsRequest);
|
|
1037
|
+
const localVarPath = `/v1-customerGroups`;
|
|
1038
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1039
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1040
|
+
let baseOptions;
|
|
1041
|
+
if (configuration) {
|
|
1042
|
+
baseOptions = configuration.baseOptions;
|
|
1043
|
+
}
|
|
1044
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
1045
|
+
const localVarHeaderParameter = {};
|
|
1046
|
+
const localVarQueryParameter = {};
|
|
1047
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1048
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1049
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1050
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1051
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createCustomerGroupsRequest, localVarRequestOptions, configuration);
|
|
1052
|
+
return {
|
|
1053
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1054
|
+
options: localVarRequestOptions,
|
|
1055
|
+
};
|
|
1056
|
+
},
|
|
1057
|
+
/**
|
|
1058
|
+
*
|
|
1059
|
+
* @summary Deletes multiple customer groups
|
|
1060
|
+
* @param {Array<string>} [id] ids for the entities this id belongs to
|
|
1061
|
+
* @param {*} [options] Override http request option.
|
|
1062
|
+
* @throws {RequiredError}
|
|
1063
|
+
*/
|
|
1064
|
+
customerGroupsDelete: async (id, options = {}) => {
|
|
1065
|
+
const localVarPath = `/v1-customerGroups`;
|
|
1066
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1067
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1068
|
+
let baseOptions;
|
|
1069
|
+
if (configuration) {
|
|
1070
|
+
baseOptions = configuration.baseOptions;
|
|
1071
|
+
}
|
|
1072
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
1073
|
+
const localVarHeaderParameter = {};
|
|
1074
|
+
const localVarQueryParameter = {};
|
|
1075
|
+
if (id) {
|
|
1076
|
+
localVarQueryParameter['id'] = id;
|
|
1077
|
+
}
|
|
1078
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1079
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1080
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1081
|
+
return {
|
|
1082
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1083
|
+
options: localVarRequestOptions,
|
|
1084
|
+
};
|
|
1085
|
+
},
|
|
1086
|
+
/**
|
|
1087
|
+
*
|
|
1088
|
+
* @summary Updates multiple customer groups
|
|
1089
|
+
* @param {UpdateCustomerGroupsRequest} updateCustomerGroupsRequest
|
|
1090
|
+
* @param {*} [options] Override http request option.
|
|
1091
|
+
* @throws {RequiredError}
|
|
1092
|
+
*/
|
|
1093
|
+
customerGroupsUpdate: async (updateCustomerGroupsRequest, options = {}) => {
|
|
1094
|
+
// verify required parameter 'updateCustomerGroupsRequest' is not null or undefined
|
|
1095
|
+
(0, common_1.assertParamExists)('customerGroupsUpdate', 'updateCustomerGroupsRequest', updateCustomerGroupsRequest);
|
|
1096
|
+
const localVarPath = `/v1-customerGroups`;
|
|
1097
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1098
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1099
|
+
let baseOptions;
|
|
1100
|
+
if (configuration) {
|
|
1101
|
+
baseOptions = configuration.baseOptions;
|
|
1102
|
+
}
|
|
1103
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
|
|
1104
|
+
const localVarHeaderParameter = {};
|
|
1105
|
+
const localVarQueryParameter = {};
|
|
1106
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1107
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1108
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1109
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1110
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateCustomerGroupsRequest, localVarRequestOptions, configuration);
|
|
1111
|
+
return {
|
|
1112
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1113
|
+
options: localVarRequestOptions,
|
|
1114
|
+
};
|
|
1115
|
+
},
|
|
1116
|
+
/**
|
|
1117
|
+
*
|
|
1118
|
+
* @summary Updates a customer
|
|
1119
|
+
* @param {UpdateCustomerRequest} updateCustomerRequest
|
|
1120
|
+
* @param {*} [options] Override http request option.
|
|
1121
|
+
* @throws {RequiredError}
|
|
1122
|
+
*/
|
|
1123
|
+
customerUpdate: async (updateCustomerRequest, options = {}) => {
|
|
1124
|
+
// verify required parameter 'updateCustomerRequest' is not null or undefined
|
|
1125
|
+
(0, common_1.assertParamExists)('customerUpdate', 'updateCustomerRequest', updateCustomerRequest);
|
|
1126
|
+
const localVarPath = `/v1-customer`;
|
|
1127
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1128
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1129
|
+
let baseOptions;
|
|
1130
|
+
if (configuration) {
|
|
1131
|
+
baseOptions = configuration.baseOptions;
|
|
1132
|
+
}
|
|
1133
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
|
|
1134
|
+
const localVarHeaderParameter = {};
|
|
1135
|
+
const localVarQueryParameter = {};
|
|
1136
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1137
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1138
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1139
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1140
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateCustomerRequest, localVarRequestOptions, configuration);
|
|
1141
|
+
return {
|
|
1142
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1143
|
+
options: localVarRequestOptions,
|
|
1144
|
+
};
|
|
1145
|
+
},
|
|
1146
|
+
/**
|
|
1147
|
+
*
|
|
1148
|
+
* @summary Gets all or specific set of customers
|
|
1149
|
+
* @param {string} [q] Query search string to filter results ({field},{operator},{value}) (example firstName,equals,Patrick)
|
|
1150
|
+
* @param {Array<string>} [id] ids for the entities this id belongs to
|
|
1151
|
+
* @param {*} [options] Override http request option.
|
|
1152
|
+
* @throws {RequiredError}
|
|
1153
|
+
*/
|
|
1154
|
+
customers: async (q, id, options = {}) => {
|
|
1155
|
+
const localVarPath = `/v1-customers`;
|
|
1156
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1157
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1158
|
+
let baseOptions;
|
|
1159
|
+
if (configuration) {
|
|
1160
|
+
baseOptions = configuration.baseOptions;
|
|
1161
|
+
}
|
|
1162
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
1163
|
+
const localVarHeaderParameter = {};
|
|
1164
|
+
const localVarQueryParameter = {};
|
|
1165
|
+
if (q !== undefined) {
|
|
1166
|
+
localVarQueryParameter['q'] = q;
|
|
1167
|
+
}
|
|
1168
|
+
if (id) {
|
|
1169
|
+
localVarQueryParameter['id'] = id;
|
|
1170
|
+
}
|
|
1171
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1172
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1173
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1174
|
+
return {
|
|
1175
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1176
|
+
options: localVarRequestOptions,
|
|
1177
|
+
};
|
|
1178
|
+
},
|
|
1179
|
+
/**
|
|
1180
|
+
*
|
|
1181
|
+
* @summary Creates new customers
|
|
1182
|
+
* @param {CreateCustomersRequest} createCustomersRequest
|
|
1183
|
+
* @param {*} [options] Override http request option.
|
|
1184
|
+
* @throws {RequiredError}
|
|
1185
|
+
*/
|
|
1186
|
+
customersCreate: async (createCustomersRequest, options = {}) => {
|
|
1187
|
+
// verify required parameter 'createCustomersRequest' is not null or undefined
|
|
1188
|
+
(0, common_1.assertParamExists)('customersCreate', 'createCustomersRequest', createCustomersRequest);
|
|
1189
|
+
const localVarPath = `/v1-customers`;
|
|
1190
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1191
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1192
|
+
let baseOptions;
|
|
1193
|
+
if (configuration) {
|
|
1194
|
+
baseOptions = configuration.baseOptions;
|
|
1195
|
+
}
|
|
1196
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
1197
|
+
const localVarHeaderParameter = {};
|
|
1198
|
+
const localVarQueryParameter = {};
|
|
1199
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1200
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1201
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1202
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1203
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createCustomersRequest, localVarRequestOptions, configuration);
|
|
1204
|
+
return {
|
|
1205
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1206
|
+
options: localVarRequestOptions,
|
|
1207
|
+
};
|
|
1208
|
+
},
|
|
1209
|
+
/**
|
|
1210
|
+
*
|
|
1211
|
+
* @summary Deletes multiple customers
|
|
1212
|
+
* @param {Array<string>} [id] ids for the entities this id belongs to
|
|
1213
|
+
* @param {*} [options] Override http request option.
|
|
1214
|
+
* @throws {RequiredError}
|
|
1215
|
+
*/
|
|
1216
|
+
customersDelete: async (id, options = {}) => {
|
|
1217
|
+
const localVarPath = `/v1-customers`;
|
|
1218
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1219
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1220
|
+
let baseOptions;
|
|
1221
|
+
if (configuration) {
|
|
1222
|
+
baseOptions = configuration.baseOptions;
|
|
1223
|
+
}
|
|
1224
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
1225
|
+
const localVarHeaderParameter = {};
|
|
1226
|
+
const localVarQueryParameter = {};
|
|
1227
|
+
if (id) {
|
|
1228
|
+
localVarQueryParameter['id'] = id;
|
|
1229
|
+
}
|
|
1230
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1231
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1232
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1233
|
+
return {
|
|
1234
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1235
|
+
options: localVarRequestOptions,
|
|
1236
|
+
};
|
|
1237
|
+
},
|
|
1238
|
+
/**
|
|
1239
|
+
*
|
|
1240
|
+
* @summary Updates multiple customers
|
|
1241
|
+
* @param {UpdateCustomerRequest} updateCustomerRequest
|
|
1242
|
+
* @param {*} [options] Override http request option.
|
|
1243
|
+
* @throws {RequiredError}
|
|
1244
|
+
*/
|
|
1245
|
+
customersUpdate: async (updateCustomerRequest, options = {}) => {
|
|
1246
|
+
// verify required parameter 'updateCustomerRequest' is not null or undefined
|
|
1247
|
+
(0, common_1.assertParamExists)('customersUpdate', 'updateCustomerRequest', updateCustomerRequest);
|
|
1248
|
+
const localVarPath = `/v1-customers`;
|
|
1249
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1250
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1251
|
+
let baseOptions;
|
|
1252
|
+
if (configuration) {
|
|
1253
|
+
baseOptions = configuration.baseOptions;
|
|
1254
|
+
}
|
|
1255
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
|
|
1256
|
+
const localVarHeaderParameter = {};
|
|
1257
|
+
const localVarQueryParameter = {};
|
|
1258
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1259
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1260
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1261
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1262
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateCustomerRequest, localVarRequestOptions, configuration);
|
|
1263
|
+
return {
|
|
1264
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1265
|
+
options: localVarRequestOptions,
|
|
1266
|
+
};
|
|
1267
|
+
},
|
|
1268
|
+
/**
|
|
1269
|
+
*
|
|
1270
|
+
* @summary Returns information about a specific file.
|
|
1271
|
+
* @param {string} fileId The ID of the file to use for this request
|
|
1272
|
+
* @param {*} [options] Override http request option.
|
|
1273
|
+
* @throws {RequiredError}
|
|
1274
|
+
*/
|
|
1275
|
+
file: async (fileId, options = {}) => {
|
|
1276
|
+
// verify required parameter 'fileId' is not null or undefined
|
|
1277
|
+
(0, common_1.assertParamExists)('file', 'fileId', fileId);
|
|
1278
|
+
const localVarPath = `/files/{file_id}`
|
|
1279
|
+
.replace(`{${"file_id"}}`, encodeURIComponent(String(fileId)));
|
|
1280
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1281
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1282
|
+
let baseOptions;
|
|
1283
|
+
if (configuration) {
|
|
1284
|
+
baseOptions = configuration.baseOptions;
|
|
1285
|
+
}
|
|
1286
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
1287
|
+
const localVarHeaderParameter = {};
|
|
1288
|
+
const localVarQueryParameter = {};
|
|
1289
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1290
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1291
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1292
|
+
return {
|
|
1293
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1294
|
+
options: localVarRequestOptions,
|
|
1295
|
+
};
|
|
1296
|
+
},
|
|
1297
|
+
/**
|
|
1298
|
+
*
|
|
1299
|
+
* @summary Upload a file that contains document(s) to be used across various endpoints/features. Currently, the size of all the files uploaded by one organization can be up to 1 GB. Please contact us if you need to increase the storage limit.
|
|
1300
|
+
* @param {File} file
|
|
1301
|
+
* @param {string} [purpose] The intended purpose of the uploaded documents. This allows us to validate the format of the uploaded file.
|
|
1302
|
+
* @param {*} [options] Override http request option.
|
|
1303
|
+
* @throws {RequiredError}
|
|
1304
|
+
*/
|
|
1305
|
+
fileCreate: async (file, purpose, options = {}) => {
|
|
1306
|
+
// verify required parameter 'file' is not null or undefined
|
|
1307
|
+
(0, common_1.assertParamExists)('fileCreate', 'file', file);
|
|
1308
|
+
const localVarPath = `/v1-utils-files`;
|
|
1309
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1310
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1311
|
+
let baseOptions;
|
|
1312
|
+
if (configuration) {
|
|
1313
|
+
baseOptions = configuration.baseOptions;
|
|
1314
|
+
}
|
|
1315
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
1316
|
+
const localVarHeaderParameter = {};
|
|
1317
|
+
const localVarQueryParameter = {};
|
|
1318
|
+
const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
|
|
1319
|
+
if (file !== undefined) {
|
|
1320
|
+
localVarFormParams.append('file', file);
|
|
1321
|
+
}
|
|
1322
|
+
if (purpose !== undefined) {
|
|
1323
|
+
localVarFormParams.append('purpose', purpose);
|
|
1324
|
+
}
|
|
1325
|
+
localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
|
|
1326
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1327
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1328
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1329
|
+
localVarRequestOptions.data = localVarFormParams;
|
|
1330
|
+
return {
|
|
1331
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1332
|
+
options: localVarRequestOptions,
|
|
1333
|
+
};
|
|
1334
|
+
},
|
|
1335
|
+
/**
|
|
1336
|
+
*
|
|
1337
|
+
* @summary Delete a file.
|
|
1338
|
+
* @param {string} fileId The ID of the file to use for this request
|
|
1339
|
+
* @param {*} [options] Override http request option.
|
|
1340
|
+
* @throws {RequiredError}
|
|
1341
|
+
*/
|
|
1342
|
+
fileDelete: async (fileId, options = {}) => {
|
|
1343
|
+
// verify required parameter 'fileId' is not null or undefined
|
|
1344
|
+
(0, common_1.assertParamExists)('fileDelete', 'fileId', fileId);
|
|
1345
|
+
const localVarPath = `/files/{file_id}`
|
|
1346
|
+
.replace(`{${"file_id"}}`, encodeURIComponent(String(fileId)));
|
|
1347
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1348
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1349
|
+
let baseOptions;
|
|
1350
|
+
if (configuration) {
|
|
1351
|
+
baseOptions = configuration.baseOptions;
|
|
1352
|
+
}
|
|
1353
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
1354
|
+
const localVarHeaderParameter = {};
|
|
1355
|
+
const localVarQueryParameter = {};
|
|
1356
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1357
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1358
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1359
|
+
return {
|
|
1360
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1361
|
+
options: localVarRequestOptions,
|
|
1362
|
+
};
|
|
1363
|
+
},
|
|
1364
|
+
/**
|
|
1365
|
+
*
|
|
1366
|
+
* @summary Returns the contents of the specified file
|
|
1367
|
+
* @param {string} fileId The ID of the file to use for this request
|
|
1368
|
+
* @param {*} [options] Override http request option.
|
|
1369
|
+
* @throws {RequiredError}
|
|
1370
|
+
*/
|
|
1371
|
+
fileDownload: async (fileId, options = {}) => {
|
|
1372
|
+
// verify required parameter 'fileId' is not null or undefined
|
|
1373
|
+
(0, common_1.assertParamExists)('fileDownload', 'fileId', fileId);
|
|
1374
|
+
const localVarPath = `/files/{file_id}/content`
|
|
1375
|
+
.replace(`{${"file_id"}}`, encodeURIComponent(String(fileId)));
|
|
1376
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1377
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1378
|
+
let baseOptions;
|
|
1379
|
+
if (configuration) {
|
|
1380
|
+
baseOptions = configuration.baseOptions;
|
|
1381
|
+
}
|
|
1382
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
1383
|
+
const localVarHeaderParameter = {};
|
|
1384
|
+
const localVarQueryParameter = {};
|
|
1385
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1386
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1387
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1388
|
+
return {
|
|
1389
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1390
|
+
options: localVarRequestOptions,
|
|
1391
|
+
};
|
|
1392
|
+
},
|
|
1393
|
+
/**
|
|
1394
|
+
*
|
|
1395
|
+
* @summary Returns a list of files that belong to the user\'s organization.
|
|
1396
|
+
* @param {*} [options] Override http request option.
|
|
1397
|
+
* @throws {RequiredError}
|
|
1398
|
+
*/
|
|
1399
|
+
files: async (options = {}) => {
|
|
1400
|
+
const localVarPath = `/v1-utils-files`;
|
|
1401
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1402
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1403
|
+
let baseOptions;
|
|
1404
|
+
if (configuration) {
|
|
1405
|
+
baseOptions = configuration.baseOptions;
|
|
1406
|
+
}
|
|
1407
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
1408
|
+
const localVarHeaderParameter = {};
|
|
1409
|
+
const localVarQueryParameter = {};
|
|
1410
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1411
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1412
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1413
|
+
return {
|
|
1414
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1415
|
+
options: localVarRequestOptions,
|
|
1416
|
+
};
|
|
1417
|
+
},
|
|
1418
|
+
/**
|
|
1419
|
+
* Generates a message in the agent\'s voice based on the state of the given conversation. This is useful for testing and debugging. The message will not be sent to the conversation, you must run .message() with the body of the generated message to send it to the conversation.
|
|
1420
|
+
* @summary Generate a message from conversation
|
|
1421
|
+
* @param {GenerateRequest} generateRequest
|
|
1422
|
+
* @param {*} [options] Override http request option.
|
|
1423
|
+
* @throws {RequiredError}
|
|
1424
|
+
*/
|
|
1425
|
+
generate: async (generateRequest, options = {}) => {
|
|
1426
|
+
// verify required parameter 'generateRequest' is not null or undefined
|
|
1427
|
+
(0, common_1.assertParamExists)('generate', 'generateRequest', generateRequest);
|
|
1428
|
+
const localVarPath = `/v1-generate`;
|
|
1429
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1430
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1431
|
+
let baseOptions;
|
|
1432
|
+
if (configuration) {
|
|
1433
|
+
baseOptions = configuration.baseOptions;
|
|
1434
|
+
}
|
|
1435
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
1436
|
+
const localVarHeaderParameter = {};
|
|
1437
|
+
const localVarQueryParameter = {};
|
|
1438
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1439
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1440
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1441
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1442
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(generateRequest, localVarRequestOptions, configuration);
|
|
1443
|
+
return {
|
|
1444
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1445
|
+
options: localVarRequestOptions,
|
|
1446
|
+
};
|
|
1447
|
+
},
|
|
1448
|
+
/**
|
|
1449
|
+
* Creates a new message and sends it to the conversation. If the conversation is scheduled, the message will be scheduled as well. @TODO does not support the ability to mute or delay send
|
|
1450
|
+
* @summary Create and send message
|
|
1451
|
+
* @param {MessageCreateRequest} messageCreateRequest
|
|
1452
|
+
* @param {*} [options] Override http request option.
|
|
1453
|
+
* @throws {RequiredError}
|
|
1454
|
+
*/
|
|
1455
|
+
message: async (messageCreateRequest, options = {}) => {
|
|
1456
|
+
// verify required parameter 'messageCreateRequest' is not null or undefined
|
|
1457
|
+
(0, common_1.assertParamExists)('message', 'messageCreateRequest', messageCreateRequest);
|
|
1458
|
+
const localVarPath = `/v1-messages`;
|
|
1459
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1460
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1461
|
+
let baseOptions;
|
|
1462
|
+
if (configuration) {
|
|
1463
|
+
baseOptions = configuration.baseOptions;
|
|
1464
|
+
}
|
|
1465
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
1466
|
+
const localVarHeaderParameter = {};
|
|
1467
|
+
const localVarQueryParameter = {};
|
|
1468
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1469
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1470
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1471
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1472
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(messageCreateRequest, localVarRequestOptions, configuration);
|
|
1473
|
+
return {
|
|
1474
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1475
|
+
options: localVarRequestOptions,
|
|
1476
|
+
};
|
|
1477
|
+
},
|
|
1478
|
+
/**
|
|
1479
|
+
*
|
|
1480
|
+
* @summary Get all messages from a conversation
|
|
1481
|
+
* @param {string} id id of entity to query
|
|
1482
|
+
* @param {string} [q] Query search string to filter results ({field},{operator},{value}) (example firstName,equals,Patrick)
|
|
1483
|
+
* @param {*} [options] Override http request option.
|
|
1484
|
+
* @throws {RequiredError}
|
|
1485
|
+
*/
|
|
1486
|
+
messages: async (id, q, options = {}) => {
|
|
1487
|
+
// verify required parameter 'id' is not null or undefined
|
|
1488
|
+
(0, common_1.assertParamExists)('messages', 'id', id);
|
|
1489
|
+
const localVarPath = `/v1-messages`;
|
|
1490
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1491
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1492
|
+
let baseOptions;
|
|
1493
|
+
if (configuration) {
|
|
1494
|
+
baseOptions = configuration.baseOptions;
|
|
1495
|
+
}
|
|
1496
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
1497
|
+
const localVarHeaderParameter = {};
|
|
1498
|
+
const localVarQueryParameter = {};
|
|
1499
|
+
if (id !== undefined) {
|
|
1500
|
+
localVarQueryParameter['id'] = id;
|
|
1501
|
+
}
|
|
1502
|
+
if (q !== undefined) {
|
|
1503
|
+
localVarQueryParameter['q'] = q;
|
|
1504
|
+
}
|
|
1505
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1506
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1507
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1508
|
+
return {
|
|
1509
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1510
|
+
options: localVarRequestOptions,
|
|
1511
|
+
};
|
|
1512
|
+
},
|
|
1513
|
+
/**
|
|
1514
|
+
*
|
|
1515
|
+
* @summary Get the results of a bulk API operation
|
|
1516
|
+
* @param {string} id id of entity to query
|
|
1517
|
+
* @param {*} [options] Override http request option.
|
|
1518
|
+
* @throws {RequiredError}
|
|
1519
|
+
*/
|
|
1520
|
+
operation: async (id, options = {}) => {
|
|
1521
|
+
// verify required parameter 'id' is not null or undefined
|
|
1522
|
+
(0, common_1.assertParamExists)('operation', 'id', id);
|
|
1523
|
+
const localVarPath = `/v1-utils-operation`;
|
|
1524
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1525
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1526
|
+
let baseOptions;
|
|
1527
|
+
if (configuration) {
|
|
1528
|
+
baseOptions = configuration.baseOptions;
|
|
1529
|
+
}
|
|
1530
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
1531
|
+
const localVarHeaderParameter = {};
|
|
1532
|
+
const localVarQueryParameter = {};
|
|
1533
|
+
if (id !== undefined) {
|
|
1534
|
+
localVarQueryParameter['id'] = id;
|
|
1535
|
+
}
|
|
1536
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1537
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1538
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1539
|
+
return {
|
|
1540
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1541
|
+
options: localVarRequestOptions,
|
|
1542
|
+
};
|
|
1543
|
+
},
|
|
1544
|
+
/**
|
|
1545
|
+
*
|
|
1546
|
+
* @summary Gets all or specific set of bulk API operations
|
|
1547
|
+
* @param {string} [q] Query search string to filter results ({field},{operator},{value}) (example firstName,equals,Patrick)
|
|
1548
|
+
* @param {Array<string>} [id] ids for the entities this id belongs to
|
|
1549
|
+
* @param {*} [options] Override http request option.
|
|
1550
|
+
* @throws {RequiredError}
|
|
1551
|
+
*/
|
|
1552
|
+
operations: async (q, id, options = {}) => {
|
|
1553
|
+
const localVarPath = `/v1-utils-operations`;
|
|
1554
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1555
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1556
|
+
let baseOptions;
|
|
1557
|
+
if (configuration) {
|
|
1558
|
+
baseOptions = configuration.baseOptions;
|
|
1559
|
+
}
|
|
1560
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
1561
|
+
const localVarHeaderParameter = {};
|
|
1562
|
+
const localVarQueryParameter = {};
|
|
1563
|
+
if (q !== undefined) {
|
|
1564
|
+
localVarQueryParameter['q'] = q;
|
|
1565
|
+
}
|
|
1566
|
+
if (id) {
|
|
1567
|
+
localVarQueryParameter['id'] = id;
|
|
1568
|
+
}
|
|
1569
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1570
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1571
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1572
|
+
return {
|
|
1573
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1574
|
+
options: localVarRequestOptions,
|
|
1575
|
+
};
|
|
1576
|
+
},
|
|
1577
|
+
/**
|
|
1578
|
+
*
|
|
1579
|
+
* @summary Creates a new scheduled conversation
|
|
1580
|
+
* @param {ScheduleCreateRequest} scheduleCreateRequest
|
|
1581
|
+
* @param {*} [options] Override http request option.
|
|
1582
|
+
* @throws {RequiredError}
|
|
1583
|
+
*/
|
|
1584
|
+
scheduleConversation: async (scheduleCreateRequest, options = {}) => {
|
|
1585
|
+
// verify required parameter 'scheduleCreateRequest' is not null or undefined
|
|
1586
|
+
(0, common_1.assertParamExists)('scheduleConversation', 'scheduleCreateRequest', scheduleCreateRequest);
|
|
1587
|
+
const localVarPath = `/v1-schedule`;
|
|
1588
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1589
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1590
|
+
let baseOptions;
|
|
1591
|
+
if (configuration) {
|
|
1592
|
+
baseOptions = configuration.baseOptions;
|
|
1593
|
+
}
|
|
1594
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
1595
|
+
const localVarHeaderParameter = {};
|
|
1596
|
+
const localVarQueryParameter = {};
|
|
1597
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1598
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1599
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1600
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1601
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(scheduleCreateRequest, localVarRequestOptions, configuration);
|
|
1602
|
+
return {
|
|
1603
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1604
|
+
options: localVarRequestOptions,
|
|
1605
|
+
};
|
|
1606
|
+
},
|
|
1607
|
+
/**
|
|
1608
|
+
*
|
|
1609
|
+
* @summary Deletes a schedule
|
|
1610
|
+
* @param {string} id id of entity to query
|
|
1611
|
+
* @param {*} [options] Override http request option.
|
|
1612
|
+
* @throws {RequiredError}
|
|
1613
|
+
*/
|
|
1614
|
+
scheduleDelete: async (id, options = {}) => {
|
|
1615
|
+
// verify required parameter 'id' is not null or undefined
|
|
1616
|
+
(0, common_1.assertParamExists)('scheduleDelete', 'id', id);
|
|
1617
|
+
const localVarPath = `/v1-schedule`;
|
|
1618
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1619
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1620
|
+
let baseOptions;
|
|
1621
|
+
if (configuration) {
|
|
1622
|
+
baseOptions = configuration.baseOptions;
|
|
1623
|
+
}
|
|
1624
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
1625
|
+
const localVarHeaderParameter = {};
|
|
1626
|
+
const localVarQueryParameter = {};
|
|
1627
|
+
if (id !== undefined) {
|
|
1628
|
+
localVarQueryParameter['id'] = id;
|
|
1629
|
+
}
|
|
1630
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1631
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1632
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1633
|
+
return {
|
|
1634
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1635
|
+
options: localVarRequestOptions,
|
|
1636
|
+
};
|
|
1637
|
+
},
|
|
1638
|
+
/**
|
|
1639
|
+
*
|
|
1640
|
+
* @summary Creates a new schedule group
|
|
1641
|
+
* @param {ScheduleGroupCreateRequest} scheduleGroupCreateRequest
|
|
1642
|
+
* @param {*} [options] Override http request option.
|
|
1643
|
+
* @throws {RequiredError}
|
|
1644
|
+
*/
|
|
1645
|
+
scheduleGroupCreate: async (scheduleGroupCreateRequest, options = {}) => {
|
|
1646
|
+
// verify required parameter 'scheduleGroupCreateRequest' is not null or undefined
|
|
1647
|
+
(0, common_1.assertParamExists)('scheduleGroupCreate', 'scheduleGroupCreateRequest', scheduleGroupCreateRequest);
|
|
1648
|
+
const localVarPath = `/v1-scheduleGroup`;
|
|
1649
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1650
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1651
|
+
let baseOptions;
|
|
1652
|
+
if (configuration) {
|
|
1653
|
+
baseOptions = configuration.baseOptions;
|
|
1654
|
+
}
|
|
1655
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
1656
|
+
const localVarHeaderParameter = {};
|
|
1657
|
+
const localVarQueryParameter = {};
|
|
1658
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1659
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1660
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1661
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1662
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(scheduleGroupCreateRequest, localVarRequestOptions, configuration);
|
|
1663
|
+
return {
|
|
1664
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1665
|
+
options: localVarRequestOptions,
|
|
1666
|
+
};
|
|
1667
|
+
},
|
|
1668
|
+
/**
|
|
1669
|
+
*
|
|
1670
|
+
* @summary Deletes and cancels a schedule group
|
|
1671
|
+
* @param {string} id id of entity to query
|
|
1672
|
+
* @param {*} [options] Override http request option.
|
|
1673
|
+
* @throws {RequiredError}
|
|
1674
|
+
*/
|
|
1675
|
+
scheduleGroupDelete: async (id, options = {}) => {
|
|
1676
|
+
// verify required parameter 'id' is not null or undefined
|
|
1677
|
+
(0, common_1.assertParamExists)('scheduleGroupDelete', 'id', id);
|
|
1678
|
+
const localVarPath = `/v1-scheduleGroup`;
|
|
1679
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1680
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1681
|
+
let baseOptions;
|
|
1682
|
+
if (configuration) {
|
|
1683
|
+
baseOptions = configuration.baseOptions;
|
|
1684
|
+
}
|
|
1685
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
1686
|
+
const localVarHeaderParameter = {};
|
|
1687
|
+
const localVarQueryParameter = {};
|
|
1688
|
+
if (id !== undefined) {
|
|
1689
|
+
localVarQueryParameter['id'] = id;
|
|
1690
|
+
}
|
|
1691
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1692
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1693
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1694
|
+
return {
|
|
1695
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1696
|
+
options: localVarRequestOptions,
|
|
1697
|
+
};
|
|
1698
|
+
},
|
|
1699
|
+
/**
|
|
1700
|
+
*
|
|
1701
|
+
* @summary Gets a schedule group
|
|
1702
|
+
* @param {string} id id of entity to query
|
|
1703
|
+
* @param {*} [options] Override http request option.
|
|
1704
|
+
* @throws {RequiredError}
|
|
1705
|
+
*/
|
|
1706
|
+
scheduleGroupRetrieve: async (id, options = {}) => {
|
|
1707
|
+
// verify required parameter 'id' is not null or undefined
|
|
1708
|
+
(0, common_1.assertParamExists)('scheduleGroupRetrieve', 'id', id);
|
|
1709
|
+
const localVarPath = `/v1-scheduleGroup`;
|
|
1710
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1711
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1712
|
+
let baseOptions;
|
|
1713
|
+
if (configuration) {
|
|
1714
|
+
baseOptions = configuration.baseOptions;
|
|
1715
|
+
}
|
|
1716
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
1717
|
+
const localVarHeaderParameter = {};
|
|
1718
|
+
const localVarQueryParameter = {};
|
|
1719
|
+
if (id !== undefined) {
|
|
1720
|
+
localVarQueryParameter['id'] = id;
|
|
1721
|
+
}
|
|
1722
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1723
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1724
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1725
|
+
return {
|
|
1726
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1727
|
+
options: localVarRequestOptions,
|
|
1728
|
+
};
|
|
1729
|
+
},
|
|
1730
|
+
/**
|
|
1731
|
+
*
|
|
1732
|
+
* @summary Updates a schedule group
|
|
1733
|
+
* @param {ScheduleGroupUpdateRequest} scheduleGroupUpdateRequest
|
|
1734
|
+
* @param {*} [options] Override http request option.
|
|
1735
|
+
* @throws {RequiredError}
|
|
1736
|
+
*/
|
|
1737
|
+
scheduleGroupUpdate: async (scheduleGroupUpdateRequest, options = {}) => {
|
|
1738
|
+
// verify required parameter 'scheduleGroupUpdateRequest' is not null or undefined
|
|
1739
|
+
(0, common_1.assertParamExists)('scheduleGroupUpdate', 'scheduleGroupUpdateRequest', scheduleGroupUpdateRequest);
|
|
1740
|
+
const localVarPath = `/v1-scheduleGroup`;
|
|
1741
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1742
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1743
|
+
let baseOptions;
|
|
1744
|
+
if (configuration) {
|
|
1745
|
+
baseOptions = configuration.baseOptions;
|
|
1746
|
+
}
|
|
1747
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
|
|
1748
|
+
const localVarHeaderParameter = {};
|
|
1749
|
+
const localVarQueryParameter = {};
|
|
1750
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1751
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1752
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1753
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1754
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(scheduleGroupUpdateRequest, localVarRequestOptions, configuration);
|
|
1755
|
+
return {
|
|
1756
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1757
|
+
options: localVarRequestOptions,
|
|
1758
|
+
};
|
|
1759
|
+
},
|
|
1760
|
+
/**
|
|
1761
|
+
*
|
|
1762
|
+
* @summary Gets a schedule
|
|
1763
|
+
* @param {string} id id of entity to query
|
|
1764
|
+
* @param {*} [options] Override http request option.
|
|
1765
|
+
* @throws {RequiredError}
|
|
1766
|
+
*/
|
|
1767
|
+
scheduleRetrieve: async (id, options = {}) => {
|
|
1768
|
+
// verify required parameter 'id' is not null or undefined
|
|
1769
|
+
(0, common_1.assertParamExists)('scheduleRetrieve', 'id', id);
|
|
1770
|
+
const localVarPath = `/v1-schedule`;
|
|
1771
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1772
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1773
|
+
let baseOptions;
|
|
1774
|
+
if (configuration) {
|
|
1775
|
+
baseOptions = configuration.baseOptions;
|
|
1776
|
+
}
|
|
1777
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
1778
|
+
const localVarHeaderParameter = {};
|
|
1779
|
+
const localVarQueryParameter = {};
|
|
1780
|
+
if (id !== undefined) {
|
|
1781
|
+
localVarQueryParameter['id'] = id;
|
|
1782
|
+
}
|
|
1783
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1784
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1785
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1786
|
+
return {
|
|
1787
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1788
|
+
options: localVarRequestOptions,
|
|
1789
|
+
};
|
|
1790
|
+
},
|
|
1791
|
+
/**
|
|
1792
|
+
*
|
|
1793
|
+
* @summary Updates a schedule
|
|
1794
|
+
* @param {ScheduleUpdateRequest} scheduleUpdateRequest
|
|
1795
|
+
* @param {*} [options] Override http request option.
|
|
1796
|
+
* @throws {RequiredError}
|
|
1797
|
+
*/
|
|
1798
|
+
scheduleUpdate: async (scheduleUpdateRequest, options = {}) => {
|
|
1799
|
+
// verify required parameter 'scheduleUpdateRequest' is not null or undefined
|
|
1800
|
+
(0, common_1.assertParamExists)('scheduleUpdate', 'scheduleUpdateRequest', scheduleUpdateRequest);
|
|
1801
|
+
const localVarPath = `/v1-schedule`;
|
|
1802
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1803
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1804
|
+
let baseOptions;
|
|
1805
|
+
if (configuration) {
|
|
1806
|
+
baseOptions = configuration.baseOptions;
|
|
1807
|
+
}
|
|
1808
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
|
|
1809
|
+
const localVarHeaderParameter = {};
|
|
1810
|
+
const localVarQueryParameter = {};
|
|
1811
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1812
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1813
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1814
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1815
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(scheduleUpdateRequest, localVarRequestOptions, configuration);
|
|
1816
|
+
return {
|
|
1817
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1818
|
+
options: localVarRequestOptions,
|
|
1819
|
+
};
|
|
1820
|
+
},
|
|
1821
|
+
/**
|
|
1822
|
+
*
|
|
1823
|
+
* @summary Gets a workflow
|
|
1824
|
+
* @param {string} id id of entity to query
|
|
1825
|
+
* @param {*} [options] Override http request option.
|
|
1826
|
+
* @throws {RequiredError}
|
|
1827
|
+
*/
|
|
1828
|
+
workflow: async (id, options = {}) => {
|
|
1829
|
+
// verify required parameter 'id' is not null or undefined
|
|
1830
|
+
(0, common_1.assertParamExists)('workflow', 'id', id);
|
|
1831
|
+
const localVarPath = `/v1-workflow`;
|
|
1832
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1833
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1834
|
+
let baseOptions;
|
|
1835
|
+
if (configuration) {
|
|
1836
|
+
baseOptions = configuration.baseOptions;
|
|
1837
|
+
}
|
|
1838
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
1839
|
+
const localVarHeaderParameter = {};
|
|
1840
|
+
const localVarQueryParameter = {};
|
|
1841
|
+
if (id !== undefined) {
|
|
1842
|
+
localVarQueryParameter['id'] = id;
|
|
1843
|
+
}
|
|
1844
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1845
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1846
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1847
|
+
return {
|
|
1848
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1849
|
+
options: localVarRequestOptions,
|
|
1850
|
+
};
|
|
1851
|
+
},
|
|
1852
|
+
/**
|
|
1853
|
+
*
|
|
1854
|
+
* @summary Create a new workflow
|
|
1855
|
+
* @param {CreateWorkflowRequest} createWorkflowRequest
|
|
1856
|
+
* @param {*} [options] Override http request option.
|
|
1857
|
+
* @throws {RequiredError}
|
|
1858
|
+
*/
|
|
1859
|
+
workflowCreate: async (createWorkflowRequest, options = {}) => {
|
|
1860
|
+
// verify required parameter 'createWorkflowRequest' is not null or undefined
|
|
1861
|
+
(0, common_1.assertParamExists)('workflowCreate', 'createWorkflowRequest', createWorkflowRequest);
|
|
1862
|
+
const localVarPath = `/v1-workflow`;
|
|
1863
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1864
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1865
|
+
let baseOptions;
|
|
1866
|
+
if (configuration) {
|
|
1867
|
+
baseOptions = configuration.baseOptions;
|
|
1868
|
+
}
|
|
1869
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
1870
|
+
const localVarHeaderParameter = {};
|
|
1871
|
+
const localVarQueryParameter = {};
|
|
1872
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1873
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1874
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1875
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1876
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createWorkflowRequest, localVarRequestOptions, configuration);
|
|
1877
|
+
return {
|
|
1878
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1879
|
+
options: localVarRequestOptions,
|
|
1880
|
+
};
|
|
1881
|
+
},
|
|
1882
|
+
/**
|
|
1883
|
+
*
|
|
1884
|
+
* @summary Deletes a workflow
|
|
1885
|
+
* @param {string} id id of entity to query
|
|
1886
|
+
* @param {*} [options] Override http request option.
|
|
1887
|
+
* @throws {RequiredError}
|
|
1888
|
+
*/
|
|
1889
|
+
workflowDelete: async (id, options = {}) => {
|
|
1890
|
+
// verify required parameter 'id' is not null or undefined
|
|
1891
|
+
(0, common_1.assertParamExists)('workflowDelete', 'id', id);
|
|
1892
|
+
const localVarPath = `/v1-workflow`;
|
|
1893
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1894
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1895
|
+
let baseOptions;
|
|
1896
|
+
if (configuration) {
|
|
1897
|
+
baseOptions = configuration.baseOptions;
|
|
1898
|
+
}
|
|
1899
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
1900
|
+
const localVarHeaderParameter = {};
|
|
1901
|
+
const localVarQueryParameter = {};
|
|
1902
|
+
if (id !== undefined) {
|
|
1903
|
+
localVarQueryParameter['id'] = id;
|
|
1904
|
+
}
|
|
1905
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1906
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1907
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1908
|
+
return {
|
|
1909
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1910
|
+
options: localVarRequestOptions,
|
|
1911
|
+
};
|
|
1912
|
+
},
|
|
1913
|
+
/**
|
|
1914
|
+
*
|
|
1915
|
+
* @summary Update a workflow
|
|
1916
|
+
* @param {UpdateWorkflowRequest} updateWorkflowRequest
|
|
1917
|
+
* @param {*} [options] Override http request option.
|
|
1918
|
+
* @throws {RequiredError}
|
|
1919
|
+
*/
|
|
1920
|
+
workflowUpdate: async (updateWorkflowRequest, options = {}) => {
|
|
1921
|
+
// verify required parameter 'updateWorkflowRequest' is not null or undefined
|
|
1922
|
+
(0, common_1.assertParamExists)('workflowUpdate', 'updateWorkflowRequest', updateWorkflowRequest);
|
|
1923
|
+
const localVarPath = `/v1-workflow`;
|
|
1924
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1925
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1926
|
+
let baseOptions;
|
|
1927
|
+
if (configuration) {
|
|
1928
|
+
baseOptions = configuration.baseOptions;
|
|
1929
|
+
}
|
|
1930
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
|
|
1931
|
+
const localVarHeaderParameter = {};
|
|
1932
|
+
const localVarQueryParameter = {};
|
|
1933
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1934
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1935
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1936
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1937
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateWorkflowRequest, localVarRequestOptions, configuration);
|
|
1938
|
+
return {
|
|
1939
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1940
|
+
options: localVarRequestOptions,
|
|
1941
|
+
};
|
|
1942
|
+
},
|
|
1943
|
+
/**
|
|
1944
|
+
*
|
|
1945
|
+
* @summary Gets all or specific set of workflows
|
|
1946
|
+
* @param {string} [q] Query search string to filter results ({field},{operator},{value}) (example firstName,equals,Patrick)
|
|
1947
|
+
* @param {Array<string>} [id] ids for the entities this id belongs to
|
|
1948
|
+
* @param {*} [options] Override http request option.
|
|
1949
|
+
* @throws {RequiredError}
|
|
1950
|
+
*/
|
|
1951
|
+
workflows: async (q, id, options = {}) => {
|
|
1952
|
+
const localVarPath = `/v1-workflows`;
|
|
1953
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1954
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1955
|
+
let baseOptions;
|
|
1956
|
+
if (configuration) {
|
|
1957
|
+
baseOptions = configuration.baseOptions;
|
|
1958
|
+
}
|
|
1959
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
1960
|
+
const localVarHeaderParameter = {};
|
|
1961
|
+
const localVarQueryParameter = {};
|
|
1962
|
+
if (q !== undefined) {
|
|
1963
|
+
localVarQueryParameter['q'] = q;
|
|
1964
|
+
}
|
|
1965
|
+
if (id) {
|
|
1966
|
+
localVarQueryParameter['id'] = id;
|
|
1967
|
+
}
|
|
1968
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1969
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1970
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1971
|
+
return {
|
|
1972
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1973
|
+
options: localVarRequestOptions,
|
|
1974
|
+
};
|
|
1975
|
+
},
|
|
1976
|
+
/**
|
|
1977
|
+
*
|
|
1978
|
+
* @summary Creates new workflows
|
|
1979
|
+
* @param {CreateWorkflowsRequest} createWorkflowsRequest
|
|
1980
|
+
* @param {*} [options] Override http request option.
|
|
1981
|
+
* @throws {RequiredError}
|
|
1982
|
+
*/
|
|
1983
|
+
workflowsCreate: async (createWorkflowsRequest, options = {}) => {
|
|
1984
|
+
// verify required parameter 'createWorkflowsRequest' is not null or undefined
|
|
1985
|
+
(0, common_1.assertParamExists)('workflowsCreate', 'createWorkflowsRequest', createWorkflowsRequest);
|
|
1986
|
+
const localVarPath = `/v1-workflows`;
|
|
1987
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1988
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1989
|
+
let baseOptions;
|
|
1990
|
+
if (configuration) {
|
|
1991
|
+
baseOptions = configuration.baseOptions;
|
|
1992
|
+
}
|
|
1993
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
1994
|
+
const localVarHeaderParameter = {};
|
|
1995
|
+
const localVarQueryParameter = {};
|
|
1996
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1997
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1998
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1999
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2000
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createWorkflowsRequest, localVarRequestOptions, configuration);
|
|
2001
|
+
return {
|
|
2002
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2003
|
+
options: localVarRequestOptions,
|
|
2004
|
+
};
|
|
2005
|
+
},
|
|
2006
|
+
/**
|
|
2007
|
+
*
|
|
2008
|
+
* @summary Deletes multiple workflows
|
|
2009
|
+
* @param {Array<string>} [id] ids for the entities this id belongs to
|
|
2010
|
+
* @param {*} [options] Override http request option.
|
|
2011
|
+
* @throws {RequiredError}
|
|
2012
|
+
*/
|
|
2013
|
+
workflowsDelete: async (id, options = {}) => {
|
|
2014
|
+
const localVarPath = `/v1-workflows`;
|
|
2015
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2016
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2017
|
+
let baseOptions;
|
|
2018
|
+
if (configuration) {
|
|
2019
|
+
baseOptions = configuration.baseOptions;
|
|
2020
|
+
}
|
|
2021
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
2022
|
+
const localVarHeaderParameter = {};
|
|
2023
|
+
const localVarQueryParameter = {};
|
|
2024
|
+
if (id) {
|
|
2025
|
+
localVarQueryParameter['id'] = id;
|
|
2026
|
+
}
|
|
2027
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2028
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2029
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2030
|
+
return {
|
|
2031
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2032
|
+
options: localVarRequestOptions,
|
|
2033
|
+
};
|
|
2034
|
+
},
|
|
2035
|
+
/**
|
|
2036
|
+
*
|
|
2037
|
+
* @summary Updates multiple workflows
|
|
2038
|
+
* @param {UpdateWorkflowRequest} updateWorkflowRequest
|
|
2039
|
+
* @param {*} [options] Override http request option.
|
|
2040
|
+
* @throws {RequiredError}
|
|
2041
|
+
*/
|
|
2042
|
+
workflowsUpdate: async (updateWorkflowRequest, options = {}) => {
|
|
2043
|
+
// verify required parameter 'updateWorkflowRequest' is not null or undefined
|
|
2044
|
+
(0, common_1.assertParamExists)('workflowsUpdate', 'updateWorkflowRequest', updateWorkflowRequest);
|
|
2045
|
+
const localVarPath = `/v1-workflows`;
|
|
2046
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2047
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2048
|
+
let baseOptions;
|
|
2049
|
+
if (configuration) {
|
|
2050
|
+
baseOptions = configuration.baseOptions;
|
|
2051
|
+
}
|
|
2052
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
|
|
2053
|
+
const localVarHeaderParameter = {};
|
|
2054
|
+
const localVarQueryParameter = {};
|
|
2055
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2056
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2057
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2058
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2059
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateWorkflowRequest, localVarRequestOptions, configuration);
|
|
2060
|
+
return {
|
|
2061
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2062
|
+
options: localVarRequestOptions,
|
|
2063
|
+
};
|
|
2064
|
+
},
|
|
2065
|
+
};
|
|
2066
|
+
};
|
|
2067
|
+
exports.PocketScoutApiAxiosParamCreator = PocketScoutApiAxiosParamCreator;
|
|
2068
|
+
/**
|
|
2069
|
+
* PocketScoutApi - functional programming interface
|
|
2070
|
+
* @export
|
|
2071
|
+
*/
|
|
2072
|
+
const PocketScoutApiFp = function (configuration) {
|
|
2073
|
+
const localVarAxiosParamCreator = (0, exports.PocketScoutApiAxiosParamCreator)(configuration);
|
|
2074
|
+
return {
|
|
2075
|
+
/**
|
|
2076
|
+
*
|
|
2077
|
+
* @summary Gets a agent
|
|
2078
|
+
* @param {string} id id of entity to query
|
|
2079
|
+
* @param {*} [options] Override http request option.
|
|
2080
|
+
* @throws {RequiredError}
|
|
2081
|
+
*/
|
|
2082
|
+
async agent(id, options) {
|
|
2083
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.agent(id, options);
|
|
2084
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2085
|
+
},
|
|
2086
|
+
/**
|
|
2087
|
+
*
|
|
2088
|
+
* @summary Deletes a agent
|
|
2089
|
+
* @param {string} id id of entity to query
|
|
2090
|
+
* @param {*} [options] Override http request option.
|
|
2091
|
+
* @throws {RequiredError}
|
|
2092
|
+
*/
|
|
2093
|
+
async agentDelete(id, options) {
|
|
2094
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.agentDelete(id, options);
|
|
2095
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2096
|
+
},
|
|
2097
|
+
/**
|
|
2098
|
+
*
|
|
2099
|
+
* @summary Registers a new agent
|
|
2100
|
+
* @param {CreateAgentRequest} createAgentRequest
|
|
2101
|
+
* @param {*} [options] Override http request option.
|
|
2102
|
+
* @throws {RequiredError}
|
|
2103
|
+
*/
|
|
2104
|
+
async agentRegister(createAgentRequest, options) {
|
|
2105
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.agentRegister(createAgentRequest, options);
|
|
2106
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2107
|
+
},
|
|
2108
|
+
/**
|
|
2109
|
+
*
|
|
2110
|
+
* @summary Update a agent
|
|
2111
|
+
* @param {UpdateAgentRequest} updateAgentRequest
|
|
2112
|
+
* @param {*} [options] Override http request option.
|
|
2113
|
+
* @throws {RequiredError}
|
|
2114
|
+
*/
|
|
2115
|
+
async agentUpdate(updateAgentRequest, options) {
|
|
2116
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.agentUpdate(updateAgentRequest, options);
|
|
2117
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2118
|
+
},
|
|
2119
|
+
/**
|
|
2120
|
+
*
|
|
2121
|
+
* @summary Gets all or specific set of agents
|
|
2122
|
+
* @param {string} [q] Query search string to filter results ({field},{operator},{value}) (example firstName,equals,Patrick)
|
|
2123
|
+
* @param {Array<string>} [id] ids for the entities this id belongs to
|
|
2124
|
+
* @param {*} [options] Override http request option.
|
|
2125
|
+
* @throws {RequiredError}
|
|
2126
|
+
*/
|
|
2127
|
+
async agents(q, id, options) {
|
|
2128
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.agents(q, id, options);
|
|
2129
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2130
|
+
},
|
|
2131
|
+
/**
|
|
2132
|
+
*
|
|
2133
|
+
* @summary Creates new agents
|
|
2134
|
+
* @param {CreateAgentsRequest} createAgentsRequest
|
|
2135
|
+
* @param {*} [options] Override http request option.
|
|
2136
|
+
* @throws {RequiredError}
|
|
2137
|
+
*/
|
|
2138
|
+
async agentsCreate(createAgentsRequest, options) {
|
|
2139
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.agentsCreate(createAgentsRequest, options);
|
|
2140
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2141
|
+
},
|
|
2142
|
+
/**
|
|
2143
|
+
*
|
|
2144
|
+
* @summary Deletes multiple agents
|
|
2145
|
+
* @param {Array<string>} [id] ids for the entities this id belongs to
|
|
2146
|
+
* @param {*} [options] Override http request option.
|
|
2147
|
+
* @throws {RequiredError}
|
|
2148
|
+
*/
|
|
2149
|
+
async agentsDelete(id, options) {
|
|
2150
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.agentsDelete(id, options);
|
|
2151
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2152
|
+
},
|
|
2153
|
+
/**
|
|
2154
|
+
*
|
|
2155
|
+
* @summary Updates multiple agents
|
|
2156
|
+
* @param {UpdateAgentsRequest} updateAgentsRequest
|
|
2157
|
+
* @param {*} [options] Override http request option.
|
|
2158
|
+
* @throws {RequiredError}
|
|
2159
|
+
*/
|
|
2160
|
+
async agentsUpdate(updateAgentsRequest, options) {
|
|
2161
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.agentsUpdate(updateAgentsRequest, options);
|
|
2162
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2163
|
+
},
|
|
2164
|
+
/**
|
|
2165
|
+
*
|
|
2166
|
+
* @summary Gets a context
|
|
2167
|
+
* @param {string} id id of entity to query
|
|
2168
|
+
* @param {*} [options] Override http request option.
|
|
2169
|
+
* @throws {RequiredError}
|
|
2170
|
+
*/
|
|
2171
|
+
async context(id, options) {
|
|
2172
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.context(id, options);
|
|
2173
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2174
|
+
},
|
|
2175
|
+
/**
|
|
2176
|
+
*
|
|
2177
|
+
* @summary Create a new context
|
|
2178
|
+
* @param {CreateContextRequest} createContextRequest
|
|
2179
|
+
* @param {*} [options] Override http request option.
|
|
2180
|
+
* @throws {RequiredError}
|
|
2181
|
+
*/
|
|
2182
|
+
async contextCreate(createContextRequest, options) {
|
|
2183
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.contextCreate(createContextRequest, options);
|
|
2184
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2185
|
+
},
|
|
2186
|
+
/**
|
|
2187
|
+
*
|
|
2188
|
+
* @summary Deletes a schedule
|
|
2189
|
+
* @param {string} id id of entity to query
|
|
2190
|
+
* @param {*} [options] Override http request option.
|
|
2191
|
+
* @throws {RequiredError}
|
|
2192
|
+
*/
|
|
2193
|
+
async contextDelete(id, options) {
|
|
2194
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.contextDelete(id, options);
|
|
2195
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2196
|
+
},
|
|
2197
|
+
/**
|
|
2198
|
+
*
|
|
2199
|
+
* @summary Update a context
|
|
2200
|
+
* @param {UpdateContextRequest} updateContextRequest
|
|
2201
|
+
* @param {*} [options] Override http request option.
|
|
2202
|
+
* @throws {RequiredError}
|
|
2203
|
+
*/
|
|
2204
|
+
async contextUpdate(updateContextRequest, options) {
|
|
2205
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.contextUpdate(updateContextRequest, options);
|
|
2206
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2207
|
+
},
|
|
2208
|
+
/**
|
|
2209
|
+
*
|
|
2210
|
+
* @summary Gets all or specific set of contexts
|
|
2211
|
+
* @param {string} [q] Query search string to filter results ({field},{operator},{value}) (example firstName,equals,Patrick)
|
|
2212
|
+
* @param {Array<string>} [id] ids for the entities this id belongs to
|
|
2213
|
+
* @param {*} [options] Override http request option.
|
|
2214
|
+
* @throws {RequiredError}
|
|
2215
|
+
*/
|
|
2216
|
+
async contexts(q, id, options) {
|
|
2217
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.contexts(q, id, options);
|
|
2218
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2219
|
+
},
|
|
2220
|
+
/**
|
|
2221
|
+
*
|
|
2222
|
+
* @summary Creates new contexts
|
|
2223
|
+
* @param {CreateContextsRequest} createContextsRequest
|
|
2224
|
+
* @param {*} [options] Override http request option.
|
|
2225
|
+
* @throws {RequiredError}
|
|
2226
|
+
*/
|
|
2227
|
+
async contextsCreate(createContextsRequest, options) {
|
|
2228
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.contextsCreate(createContextsRequest, options);
|
|
2229
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2230
|
+
},
|
|
2231
|
+
/**
|
|
2232
|
+
*
|
|
2233
|
+
* @summary Deletes multiple contexts
|
|
2234
|
+
* @param {Array<string>} [id] ids for the entities this id belongs to
|
|
2235
|
+
* @param {*} [options] Override http request option.
|
|
2236
|
+
* @throws {RequiredError}
|
|
2237
|
+
*/
|
|
2238
|
+
async contextsDelete(id, options) {
|
|
2239
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.contextsDelete(id, options);
|
|
2240
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2241
|
+
},
|
|
2242
|
+
/**
|
|
2243
|
+
*
|
|
2244
|
+
* @summary Updates multiple contexts
|
|
2245
|
+
* @param {UpdateContextRequest} updateContextRequest
|
|
2246
|
+
* @param {*} [options] Override http request option.
|
|
2247
|
+
* @throws {RequiredError}
|
|
2248
|
+
*/
|
|
2249
|
+
async contextsUpdate(updateContextRequest, options) {
|
|
2250
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.contextsUpdate(updateContextRequest, options);
|
|
2251
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2252
|
+
},
|
|
2253
|
+
/**
|
|
2254
|
+
*
|
|
2255
|
+
* @summary Gets a conversation
|
|
2256
|
+
* @param {string} id id of entity to query
|
|
2257
|
+
* @param {*} [options] Override http request option.
|
|
2258
|
+
* @throws {RequiredError}
|
|
2259
|
+
*/
|
|
2260
|
+
async conversation(id, options) {
|
|
2261
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.conversation(id, options);
|
|
2262
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2263
|
+
},
|
|
2264
|
+
/**
|
|
2265
|
+
*
|
|
2266
|
+
* @summary Create a new conversation
|
|
2267
|
+
* @param {ConversationCreateRequest} conversationCreateRequest
|
|
2268
|
+
* @param {*} [options] Override http request option.
|
|
2269
|
+
* @throws {RequiredError}
|
|
2270
|
+
*/
|
|
2271
|
+
async conversationCreate(conversationCreateRequest, options) {
|
|
2272
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.conversationCreate(conversationCreateRequest, options);
|
|
2273
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2274
|
+
},
|
|
2275
|
+
/**
|
|
2276
|
+
*
|
|
2277
|
+
* @summary Deletes a schedule
|
|
2278
|
+
* @param {string} id id of entity to query
|
|
2279
|
+
* @param {*} [options] Override http request option.
|
|
2280
|
+
* @throws {RequiredError}
|
|
2281
|
+
*/
|
|
2282
|
+
async conversationDelete(id, options) {
|
|
2283
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.conversationDelete(id, options);
|
|
2284
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2285
|
+
},
|
|
2286
|
+
/**
|
|
2287
|
+
*
|
|
2288
|
+
* @summary Update a conversation
|
|
2289
|
+
* @param {ConversationUpdateRequest} conversationUpdateRequest
|
|
2290
|
+
* @param {*} [options] Override http request option.
|
|
2291
|
+
* @throws {RequiredError}
|
|
2292
|
+
*/
|
|
2293
|
+
async conversationUpdate(conversationUpdateRequest, options) {
|
|
2294
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.conversationUpdate(conversationUpdateRequest, options);
|
|
2295
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2296
|
+
},
|
|
2297
|
+
/**
|
|
2298
|
+
*
|
|
2299
|
+
* @summary Gets a customer
|
|
2300
|
+
* @param {string} id id of entity to query
|
|
2301
|
+
* @param {*} [options] Override http request option.
|
|
2302
|
+
* @throws {RequiredError}
|
|
2303
|
+
*/
|
|
2304
|
+
async customer(id, options) {
|
|
2305
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.customer(id, options);
|
|
2306
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2307
|
+
},
|
|
2308
|
+
/**
|
|
2309
|
+
*
|
|
2310
|
+
* @summary Creates a new customer
|
|
2311
|
+
* @param {CreateCustomerRequest} createCustomerRequest
|
|
2312
|
+
* @param {*} [options] Override http request option.
|
|
2313
|
+
* @throws {RequiredError}
|
|
2314
|
+
*/
|
|
2315
|
+
async customerCreate(createCustomerRequest, options) {
|
|
2316
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.customerCreate(createCustomerRequest, options);
|
|
2317
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2318
|
+
},
|
|
2319
|
+
/**
|
|
2320
|
+
*
|
|
2321
|
+
* @summary Deletes a customer
|
|
2322
|
+
* @param {string} id id of entity to query
|
|
2323
|
+
* @param {*} [options] Override http request option.
|
|
2324
|
+
* @throws {RequiredError}
|
|
2325
|
+
*/
|
|
2326
|
+
async customerDelete(id, options) {
|
|
2327
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.customerDelete(id, options);
|
|
2328
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2329
|
+
},
|
|
2330
|
+
/**
|
|
2331
|
+
*
|
|
2332
|
+
* @summary Gets a customer group
|
|
2333
|
+
* @param {string} id id of entity to query
|
|
2334
|
+
* @param {*} [options] Override http request option.
|
|
2335
|
+
* @throws {RequiredError}
|
|
2336
|
+
*/
|
|
2337
|
+
async customerGroup(id, options) {
|
|
2338
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.customerGroup(id, options);
|
|
2339
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2340
|
+
},
|
|
2341
|
+
/**
|
|
2342
|
+
*
|
|
2343
|
+
* @summary Creates a new customer group
|
|
2344
|
+
* @param {CreateCustomerGroupRequest} createCustomerGroupRequest
|
|
2345
|
+
* @param {*} [options] Override http request option.
|
|
2346
|
+
* @throws {RequiredError}
|
|
2347
|
+
*/
|
|
2348
|
+
async customerGroupCreate(createCustomerGroupRequest, options) {
|
|
2349
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.customerGroupCreate(createCustomerGroupRequest, options);
|
|
2350
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2351
|
+
},
|
|
2352
|
+
/**
|
|
2353
|
+
*
|
|
2354
|
+
* @summary Deletes a customer group
|
|
2355
|
+
* @param {string} id id of entity to query
|
|
2356
|
+
* @param {*} [options] Override http request option.
|
|
2357
|
+
* @throws {RequiredError}
|
|
2358
|
+
*/
|
|
2359
|
+
async customerGroupDelete(id, options) {
|
|
2360
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.customerGroupDelete(id, options);
|
|
2361
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2362
|
+
},
|
|
2363
|
+
/**
|
|
2364
|
+
*
|
|
2365
|
+
* @summary Updates a customer group
|
|
2366
|
+
* @param {UpdateCustomerGroupRequest} updateCustomerGroupRequest
|
|
2367
|
+
* @param {*} [options] Override http request option.
|
|
2368
|
+
* @throws {RequiredError}
|
|
2369
|
+
*/
|
|
2370
|
+
async customerGroupUpdate(updateCustomerGroupRequest, options) {
|
|
2371
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.customerGroupUpdate(updateCustomerGroupRequest, options);
|
|
2372
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2373
|
+
},
|
|
2374
|
+
/**
|
|
2375
|
+
*
|
|
2376
|
+
* @summary Gets all or specific set of customer groups
|
|
2377
|
+
* @param {string} [q] Query search string to filter results ({field},{operator},{value}) (example firstName,equals,Patrick)
|
|
2378
|
+
* @param {Array<string>} [id] ids for the entities this id belongs to
|
|
2379
|
+
* @param {*} [options] Override http request option.
|
|
2380
|
+
* @throws {RequiredError}
|
|
2381
|
+
*/
|
|
2382
|
+
async customerGroups(q, id, options) {
|
|
2383
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.customerGroups(q, id, options);
|
|
2384
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2385
|
+
},
|
|
2386
|
+
/**
|
|
2387
|
+
*
|
|
2388
|
+
* @summary Creates new customer groups
|
|
2389
|
+
* @param {CreateCustomerGroupsRequest} createCustomerGroupsRequest
|
|
2390
|
+
* @param {*} [options] Override http request option.
|
|
2391
|
+
* @throws {RequiredError}
|
|
2392
|
+
*/
|
|
2393
|
+
async customerGroupsCreate(createCustomerGroupsRequest, options) {
|
|
2394
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.customerGroupsCreate(createCustomerGroupsRequest, options);
|
|
2395
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2396
|
+
},
|
|
2397
|
+
/**
|
|
2398
|
+
*
|
|
2399
|
+
* @summary Deletes multiple customer groups
|
|
2400
|
+
* @param {Array<string>} [id] ids for the entities this id belongs to
|
|
2401
|
+
* @param {*} [options] Override http request option.
|
|
2402
|
+
* @throws {RequiredError}
|
|
2403
|
+
*/
|
|
2404
|
+
async customerGroupsDelete(id, options) {
|
|
2405
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.customerGroupsDelete(id, options);
|
|
2406
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2407
|
+
},
|
|
2408
|
+
/**
|
|
2409
|
+
*
|
|
2410
|
+
* @summary Updates multiple customer groups
|
|
2411
|
+
* @param {UpdateCustomerGroupsRequest} updateCustomerGroupsRequest
|
|
2412
|
+
* @param {*} [options] Override http request option.
|
|
2413
|
+
* @throws {RequiredError}
|
|
2414
|
+
*/
|
|
2415
|
+
async customerGroupsUpdate(updateCustomerGroupsRequest, options) {
|
|
2416
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.customerGroupsUpdate(updateCustomerGroupsRequest, options);
|
|
2417
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2418
|
+
},
|
|
2419
|
+
/**
|
|
2420
|
+
*
|
|
2421
|
+
* @summary Updates a customer
|
|
2422
|
+
* @param {UpdateCustomerRequest} updateCustomerRequest
|
|
2423
|
+
* @param {*} [options] Override http request option.
|
|
2424
|
+
* @throws {RequiredError}
|
|
2425
|
+
*/
|
|
2426
|
+
async customerUpdate(updateCustomerRequest, options) {
|
|
2427
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.customerUpdate(updateCustomerRequest, options);
|
|
2428
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2429
|
+
},
|
|
2430
|
+
/**
|
|
2431
|
+
*
|
|
2432
|
+
* @summary Gets all or specific set of customers
|
|
2433
|
+
* @param {string} [q] Query search string to filter results ({field},{operator},{value}) (example firstName,equals,Patrick)
|
|
2434
|
+
* @param {Array<string>} [id] ids for the entities this id belongs to
|
|
2435
|
+
* @param {*} [options] Override http request option.
|
|
2436
|
+
* @throws {RequiredError}
|
|
2437
|
+
*/
|
|
2438
|
+
async customers(q, id, options) {
|
|
2439
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.customers(q, id, options);
|
|
2440
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2441
|
+
},
|
|
2442
|
+
/**
|
|
2443
|
+
*
|
|
2444
|
+
* @summary Creates new customers
|
|
2445
|
+
* @param {CreateCustomersRequest} createCustomersRequest
|
|
2446
|
+
* @param {*} [options] Override http request option.
|
|
2447
|
+
* @throws {RequiredError}
|
|
2448
|
+
*/
|
|
2449
|
+
async customersCreate(createCustomersRequest, options) {
|
|
2450
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.customersCreate(createCustomersRequest, options);
|
|
2451
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2452
|
+
},
|
|
2453
|
+
/**
|
|
2454
|
+
*
|
|
2455
|
+
* @summary Deletes multiple customers
|
|
2456
|
+
* @param {Array<string>} [id] ids for the entities this id belongs to
|
|
2457
|
+
* @param {*} [options] Override http request option.
|
|
2458
|
+
* @throws {RequiredError}
|
|
2459
|
+
*/
|
|
2460
|
+
async customersDelete(id, options) {
|
|
2461
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.customersDelete(id, options);
|
|
2462
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2463
|
+
},
|
|
2464
|
+
/**
|
|
2465
|
+
*
|
|
2466
|
+
* @summary Updates multiple customers
|
|
2467
|
+
* @param {UpdateCustomerRequest} updateCustomerRequest
|
|
2468
|
+
* @param {*} [options] Override http request option.
|
|
2469
|
+
* @throws {RequiredError}
|
|
2470
|
+
*/
|
|
2471
|
+
async customersUpdate(updateCustomerRequest, options) {
|
|
2472
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.customersUpdate(updateCustomerRequest, options);
|
|
2473
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2474
|
+
},
|
|
2475
|
+
/**
|
|
2476
|
+
*
|
|
2477
|
+
* @summary Returns information about a specific file.
|
|
2478
|
+
* @param {string} fileId The ID of the file to use for this request
|
|
2479
|
+
* @param {*} [options] Override http request option.
|
|
2480
|
+
* @throws {RequiredError}
|
|
2481
|
+
*/
|
|
2482
|
+
async file(fileId, options) {
|
|
2483
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.file(fileId, options);
|
|
2484
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2485
|
+
},
|
|
2486
|
+
/**
|
|
2487
|
+
*
|
|
2488
|
+
* @summary Upload a file that contains document(s) to be used across various endpoints/features. Currently, the size of all the files uploaded by one organization can be up to 1 GB. Please contact us if you need to increase the storage limit.
|
|
2489
|
+
* @param {File} file
|
|
2490
|
+
* @param {string} [purpose] The intended purpose of the uploaded documents. This allows us to validate the format of the uploaded file.
|
|
2491
|
+
* @param {*} [options] Override http request option.
|
|
2492
|
+
* @throws {RequiredError}
|
|
2493
|
+
*/
|
|
2494
|
+
async fileCreate(file, purpose, options) {
|
|
2495
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.fileCreate(file, purpose, options);
|
|
2496
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2497
|
+
},
|
|
2498
|
+
/**
|
|
2499
|
+
*
|
|
2500
|
+
* @summary Delete a file.
|
|
2501
|
+
* @param {string} fileId The ID of the file to use for this request
|
|
2502
|
+
* @param {*} [options] Override http request option.
|
|
2503
|
+
* @throws {RequiredError}
|
|
2504
|
+
*/
|
|
2505
|
+
async fileDelete(fileId, options) {
|
|
2506
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.fileDelete(fileId, options);
|
|
2507
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2508
|
+
},
|
|
2509
|
+
/**
|
|
2510
|
+
*
|
|
2511
|
+
* @summary Returns the contents of the specified file
|
|
2512
|
+
* @param {string} fileId The ID of the file to use for this request
|
|
2513
|
+
* @param {*} [options] Override http request option.
|
|
2514
|
+
* @throws {RequiredError}
|
|
2515
|
+
*/
|
|
2516
|
+
async fileDownload(fileId, options) {
|
|
2517
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.fileDownload(fileId, options);
|
|
2518
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2519
|
+
},
|
|
2520
|
+
/**
|
|
2521
|
+
*
|
|
2522
|
+
* @summary Returns a list of files that belong to the user\'s organization.
|
|
2523
|
+
* @param {*} [options] Override http request option.
|
|
2524
|
+
* @throws {RequiredError}
|
|
2525
|
+
*/
|
|
2526
|
+
async files(options) {
|
|
2527
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.files(options);
|
|
2528
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2529
|
+
},
|
|
2530
|
+
/**
|
|
2531
|
+
* Generates a message in the agent\'s voice based on the state of the given conversation. This is useful for testing and debugging. The message will not be sent to the conversation, you must run .message() with the body of the generated message to send it to the conversation.
|
|
2532
|
+
* @summary Generate a message from conversation
|
|
2533
|
+
* @param {GenerateRequest} generateRequest
|
|
2534
|
+
* @param {*} [options] Override http request option.
|
|
2535
|
+
* @throws {RequiredError}
|
|
2536
|
+
*/
|
|
2537
|
+
async generate(generateRequest, options) {
|
|
2538
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.generate(generateRequest, options);
|
|
2539
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2540
|
+
},
|
|
2541
|
+
/**
|
|
2542
|
+
* Creates a new message and sends it to the conversation. If the conversation is scheduled, the message will be scheduled as well. @TODO does not support the ability to mute or delay send
|
|
2543
|
+
* @summary Create and send message
|
|
2544
|
+
* @param {MessageCreateRequest} messageCreateRequest
|
|
2545
|
+
* @param {*} [options] Override http request option.
|
|
2546
|
+
* @throws {RequiredError}
|
|
2547
|
+
*/
|
|
2548
|
+
async message(messageCreateRequest, options) {
|
|
2549
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.message(messageCreateRequest, options);
|
|
2550
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2551
|
+
},
|
|
2552
|
+
/**
|
|
2553
|
+
*
|
|
2554
|
+
* @summary Get all messages from a conversation
|
|
2555
|
+
* @param {string} id id of entity to query
|
|
2556
|
+
* @param {string} [q] Query search string to filter results ({field},{operator},{value}) (example firstName,equals,Patrick)
|
|
2557
|
+
* @param {*} [options] Override http request option.
|
|
2558
|
+
* @throws {RequiredError}
|
|
2559
|
+
*/
|
|
2560
|
+
async messages(id, q, options) {
|
|
2561
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.messages(id, q, options);
|
|
2562
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2563
|
+
},
|
|
2564
|
+
/**
|
|
2565
|
+
*
|
|
2566
|
+
* @summary Get the results of a bulk API operation
|
|
2567
|
+
* @param {string} id id of entity to query
|
|
2568
|
+
* @param {*} [options] Override http request option.
|
|
2569
|
+
* @throws {RequiredError}
|
|
2570
|
+
*/
|
|
2571
|
+
async operation(id, options) {
|
|
2572
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.operation(id, options);
|
|
2573
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2574
|
+
},
|
|
2575
|
+
/**
|
|
2576
|
+
*
|
|
2577
|
+
* @summary Gets all or specific set of bulk API operations
|
|
2578
|
+
* @param {string} [q] Query search string to filter results ({field},{operator},{value}) (example firstName,equals,Patrick)
|
|
2579
|
+
* @param {Array<string>} [id] ids for the entities this id belongs to
|
|
2580
|
+
* @param {*} [options] Override http request option.
|
|
2581
|
+
* @throws {RequiredError}
|
|
2582
|
+
*/
|
|
2583
|
+
async operations(q, id, options) {
|
|
2584
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.operations(q, id, options);
|
|
2585
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2586
|
+
},
|
|
2587
|
+
/**
|
|
2588
|
+
*
|
|
2589
|
+
* @summary Creates a new scheduled conversation
|
|
2590
|
+
* @param {ScheduleCreateRequest} scheduleCreateRequest
|
|
2591
|
+
* @param {*} [options] Override http request option.
|
|
2592
|
+
* @throws {RequiredError}
|
|
2593
|
+
*/
|
|
2594
|
+
async scheduleConversation(scheduleCreateRequest, options) {
|
|
2595
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.scheduleConversation(scheduleCreateRequest, options);
|
|
2596
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2597
|
+
},
|
|
2598
|
+
/**
|
|
2599
|
+
*
|
|
2600
|
+
* @summary Deletes a schedule
|
|
2601
|
+
* @param {string} id id of entity to query
|
|
2602
|
+
* @param {*} [options] Override http request option.
|
|
2603
|
+
* @throws {RequiredError}
|
|
2604
|
+
*/
|
|
2605
|
+
async scheduleDelete(id, options) {
|
|
2606
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.scheduleDelete(id, options);
|
|
2607
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2608
|
+
},
|
|
2609
|
+
/**
|
|
2610
|
+
*
|
|
2611
|
+
* @summary Creates a new schedule group
|
|
2612
|
+
* @param {ScheduleGroupCreateRequest} scheduleGroupCreateRequest
|
|
2613
|
+
* @param {*} [options] Override http request option.
|
|
2614
|
+
* @throws {RequiredError}
|
|
2615
|
+
*/
|
|
2616
|
+
async scheduleGroupCreate(scheduleGroupCreateRequest, options) {
|
|
2617
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.scheduleGroupCreate(scheduleGroupCreateRequest, options);
|
|
2618
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2619
|
+
},
|
|
2620
|
+
/**
|
|
2621
|
+
*
|
|
2622
|
+
* @summary Deletes and cancels a schedule group
|
|
2623
|
+
* @param {string} id id of entity to query
|
|
2624
|
+
* @param {*} [options] Override http request option.
|
|
2625
|
+
* @throws {RequiredError}
|
|
2626
|
+
*/
|
|
2627
|
+
async scheduleGroupDelete(id, options) {
|
|
2628
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.scheduleGroupDelete(id, options);
|
|
2629
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2630
|
+
},
|
|
2631
|
+
/**
|
|
2632
|
+
*
|
|
2633
|
+
* @summary Gets a schedule group
|
|
2634
|
+
* @param {string} id id of entity to query
|
|
2635
|
+
* @param {*} [options] Override http request option.
|
|
2636
|
+
* @throws {RequiredError}
|
|
2637
|
+
*/
|
|
2638
|
+
async scheduleGroupRetrieve(id, options) {
|
|
2639
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.scheduleGroupRetrieve(id, options);
|
|
2640
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2641
|
+
},
|
|
2642
|
+
/**
|
|
2643
|
+
*
|
|
2644
|
+
* @summary Updates a schedule group
|
|
2645
|
+
* @param {ScheduleGroupUpdateRequest} scheduleGroupUpdateRequest
|
|
2646
|
+
* @param {*} [options] Override http request option.
|
|
2647
|
+
* @throws {RequiredError}
|
|
2648
|
+
*/
|
|
2649
|
+
async scheduleGroupUpdate(scheduleGroupUpdateRequest, options) {
|
|
2650
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.scheduleGroupUpdate(scheduleGroupUpdateRequest, options);
|
|
2651
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2652
|
+
},
|
|
2653
|
+
/**
|
|
2654
|
+
*
|
|
2655
|
+
* @summary Gets a schedule
|
|
2656
|
+
* @param {string} id id of entity to query
|
|
2657
|
+
* @param {*} [options] Override http request option.
|
|
2658
|
+
* @throws {RequiredError}
|
|
2659
|
+
*/
|
|
2660
|
+
async scheduleRetrieve(id, options) {
|
|
2661
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.scheduleRetrieve(id, options);
|
|
2662
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2663
|
+
},
|
|
2664
|
+
/**
|
|
2665
|
+
*
|
|
2666
|
+
* @summary Updates a schedule
|
|
2667
|
+
* @param {ScheduleUpdateRequest} scheduleUpdateRequest
|
|
2668
|
+
* @param {*} [options] Override http request option.
|
|
2669
|
+
* @throws {RequiredError}
|
|
2670
|
+
*/
|
|
2671
|
+
async scheduleUpdate(scheduleUpdateRequest, options) {
|
|
2672
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.scheduleUpdate(scheduleUpdateRequest, options);
|
|
2673
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2674
|
+
},
|
|
2675
|
+
/**
|
|
2676
|
+
*
|
|
2677
|
+
* @summary Gets a workflow
|
|
2678
|
+
* @param {string} id id of entity to query
|
|
2679
|
+
* @param {*} [options] Override http request option.
|
|
2680
|
+
* @throws {RequiredError}
|
|
2681
|
+
*/
|
|
2682
|
+
async workflow(id, options) {
|
|
2683
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.workflow(id, options);
|
|
2684
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2685
|
+
},
|
|
2686
|
+
/**
|
|
2687
|
+
*
|
|
2688
|
+
* @summary Create a new workflow
|
|
2689
|
+
* @param {CreateWorkflowRequest} createWorkflowRequest
|
|
2690
|
+
* @param {*} [options] Override http request option.
|
|
2691
|
+
* @throws {RequiredError}
|
|
2692
|
+
*/
|
|
2693
|
+
async workflowCreate(createWorkflowRequest, options) {
|
|
2694
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.workflowCreate(createWorkflowRequest, options);
|
|
2695
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2696
|
+
},
|
|
2697
|
+
/**
|
|
2698
|
+
*
|
|
2699
|
+
* @summary Deletes a workflow
|
|
2700
|
+
* @param {string} id id of entity to query
|
|
2701
|
+
* @param {*} [options] Override http request option.
|
|
2702
|
+
* @throws {RequiredError}
|
|
2703
|
+
*/
|
|
2704
|
+
async workflowDelete(id, options) {
|
|
2705
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.workflowDelete(id, options);
|
|
2706
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2707
|
+
},
|
|
2708
|
+
/**
|
|
2709
|
+
*
|
|
2710
|
+
* @summary Update a workflow
|
|
2711
|
+
* @param {UpdateWorkflowRequest} updateWorkflowRequest
|
|
2712
|
+
* @param {*} [options] Override http request option.
|
|
2713
|
+
* @throws {RequiredError}
|
|
2714
|
+
*/
|
|
2715
|
+
async workflowUpdate(updateWorkflowRequest, options) {
|
|
2716
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.workflowUpdate(updateWorkflowRequest, options);
|
|
2717
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2718
|
+
},
|
|
2719
|
+
/**
|
|
2720
|
+
*
|
|
2721
|
+
* @summary Gets all or specific set of workflows
|
|
2722
|
+
* @param {string} [q] Query search string to filter results ({field},{operator},{value}) (example firstName,equals,Patrick)
|
|
2723
|
+
* @param {Array<string>} [id] ids for the entities this id belongs to
|
|
2724
|
+
* @param {*} [options] Override http request option.
|
|
2725
|
+
* @throws {RequiredError}
|
|
2726
|
+
*/
|
|
2727
|
+
async workflows(q, id, options) {
|
|
2728
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.workflows(q, id, options);
|
|
2729
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2730
|
+
},
|
|
2731
|
+
/**
|
|
2732
|
+
*
|
|
2733
|
+
* @summary Creates new workflows
|
|
2734
|
+
* @param {CreateWorkflowsRequest} createWorkflowsRequest
|
|
2735
|
+
* @param {*} [options] Override http request option.
|
|
2736
|
+
* @throws {RequiredError}
|
|
2737
|
+
*/
|
|
2738
|
+
async workflowsCreate(createWorkflowsRequest, options) {
|
|
2739
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.workflowsCreate(createWorkflowsRequest, options);
|
|
2740
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2741
|
+
},
|
|
2742
|
+
/**
|
|
2743
|
+
*
|
|
2744
|
+
* @summary Deletes multiple workflows
|
|
2745
|
+
* @param {Array<string>} [id] ids for the entities this id belongs to
|
|
2746
|
+
* @param {*} [options] Override http request option.
|
|
2747
|
+
* @throws {RequiredError}
|
|
2748
|
+
*/
|
|
2749
|
+
async workflowsDelete(id, options) {
|
|
2750
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.workflowsDelete(id, options);
|
|
2751
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2752
|
+
},
|
|
2753
|
+
/**
|
|
2754
|
+
*
|
|
2755
|
+
* @summary Updates multiple workflows
|
|
2756
|
+
* @param {UpdateWorkflowRequest} updateWorkflowRequest
|
|
2757
|
+
* @param {*} [options] Override http request option.
|
|
2758
|
+
* @throws {RequiredError}
|
|
2759
|
+
*/
|
|
2760
|
+
async workflowsUpdate(updateWorkflowRequest, options) {
|
|
2761
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.workflowsUpdate(updateWorkflowRequest, options);
|
|
2762
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2763
|
+
},
|
|
2764
|
+
};
|
|
2765
|
+
};
|
|
2766
|
+
exports.PocketScoutApiFp = PocketScoutApiFp;
|
|
2767
|
+
/**
|
|
2768
|
+
* PocketScoutApi - factory interface
|
|
2769
|
+
* @export
|
|
2770
|
+
*/
|
|
2771
|
+
const PocketScoutApiFactory = function (configuration, basePath, axios) {
|
|
2772
|
+
const localVarFp = (0, exports.PocketScoutApiFp)(configuration);
|
|
2773
|
+
return {
|
|
2774
|
+
/**
|
|
2775
|
+
*
|
|
2776
|
+
* @summary Gets a agent
|
|
2777
|
+
* @param {string} id id of entity to query
|
|
2778
|
+
* @param {*} [options] Override http request option.
|
|
2779
|
+
* @throws {RequiredError}
|
|
2780
|
+
*/
|
|
2781
|
+
agent(id, options) {
|
|
2782
|
+
return localVarFp.agent(id, options).then((request) => request(axios, basePath));
|
|
2783
|
+
},
|
|
2784
|
+
/**
|
|
2785
|
+
*
|
|
2786
|
+
* @summary Deletes a agent
|
|
2787
|
+
* @param {string} id id of entity to query
|
|
2788
|
+
* @param {*} [options] Override http request option.
|
|
2789
|
+
* @throws {RequiredError}
|
|
2790
|
+
*/
|
|
2791
|
+
agentDelete(id, options) {
|
|
2792
|
+
return localVarFp.agentDelete(id, options).then((request) => request(axios, basePath));
|
|
2793
|
+
},
|
|
2794
|
+
/**
|
|
2795
|
+
*
|
|
2796
|
+
* @summary Registers a new agent
|
|
2797
|
+
* @param {CreateAgentRequest} createAgentRequest
|
|
2798
|
+
* @param {*} [options] Override http request option.
|
|
2799
|
+
* @throws {RequiredError}
|
|
2800
|
+
*/
|
|
2801
|
+
agentRegister(createAgentRequest, options) {
|
|
2802
|
+
return localVarFp.agentRegister(createAgentRequest, options).then((request) => request(axios, basePath));
|
|
2803
|
+
},
|
|
2804
|
+
/**
|
|
2805
|
+
*
|
|
2806
|
+
* @summary Update a agent
|
|
2807
|
+
* @param {UpdateAgentRequest} updateAgentRequest
|
|
2808
|
+
* @param {*} [options] Override http request option.
|
|
2809
|
+
* @throws {RequiredError}
|
|
2810
|
+
*/
|
|
2811
|
+
agentUpdate(updateAgentRequest, options) {
|
|
2812
|
+
return localVarFp.agentUpdate(updateAgentRequest, options).then((request) => request(axios, basePath));
|
|
2813
|
+
},
|
|
2814
|
+
/**
|
|
2815
|
+
*
|
|
2816
|
+
* @summary Gets all or specific set of agents
|
|
2817
|
+
* @param {string} [q] Query search string to filter results ({field},{operator},{value}) (example firstName,equals,Patrick)
|
|
2818
|
+
* @param {Array<string>} [id] ids for the entities this id belongs to
|
|
2819
|
+
* @param {*} [options] Override http request option.
|
|
2820
|
+
* @throws {RequiredError}
|
|
2821
|
+
*/
|
|
2822
|
+
agents(q, id, options) {
|
|
2823
|
+
return localVarFp.agents(q, id, options).then((request) => request(axios, basePath));
|
|
2824
|
+
},
|
|
2825
|
+
/**
|
|
2826
|
+
*
|
|
2827
|
+
* @summary Creates new agents
|
|
2828
|
+
* @param {CreateAgentsRequest} createAgentsRequest
|
|
2829
|
+
* @param {*} [options] Override http request option.
|
|
2830
|
+
* @throws {RequiredError}
|
|
2831
|
+
*/
|
|
2832
|
+
agentsCreate(createAgentsRequest, options) {
|
|
2833
|
+
return localVarFp.agentsCreate(createAgentsRequest, options).then((request) => request(axios, basePath));
|
|
2834
|
+
},
|
|
2835
|
+
/**
|
|
2836
|
+
*
|
|
2837
|
+
* @summary Deletes multiple agents
|
|
2838
|
+
* @param {Array<string>} [id] ids for the entities this id belongs to
|
|
2839
|
+
* @param {*} [options] Override http request option.
|
|
2840
|
+
* @throws {RequiredError}
|
|
2841
|
+
*/
|
|
2842
|
+
agentsDelete(id, options) {
|
|
2843
|
+
return localVarFp.agentsDelete(id, options).then((request) => request(axios, basePath));
|
|
2844
|
+
},
|
|
2845
|
+
/**
|
|
2846
|
+
*
|
|
2847
|
+
* @summary Updates multiple agents
|
|
2848
|
+
* @param {UpdateAgentsRequest} updateAgentsRequest
|
|
2849
|
+
* @param {*} [options] Override http request option.
|
|
2850
|
+
* @throws {RequiredError}
|
|
2851
|
+
*/
|
|
2852
|
+
agentsUpdate(updateAgentsRequest, options) {
|
|
2853
|
+
return localVarFp.agentsUpdate(updateAgentsRequest, options).then((request) => request(axios, basePath));
|
|
2854
|
+
},
|
|
2855
|
+
/**
|
|
2856
|
+
*
|
|
2857
|
+
* @summary Gets a context
|
|
2858
|
+
* @param {string} id id of entity to query
|
|
2859
|
+
* @param {*} [options] Override http request option.
|
|
2860
|
+
* @throws {RequiredError}
|
|
2861
|
+
*/
|
|
2862
|
+
context(id, options) {
|
|
2863
|
+
return localVarFp.context(id, options).then((request) => request(axios, basePath));
|
|
2864
|
+
},
|
|
2865
|
+
/**
|
|
2866
|
+
*
|
|
2867
|
+
* @summary Create a new context
|
|
2868
|
+
* @param {CreateContextRequest} createContextRequest
|
|
2869
|
+
* @param {*} [options] Override http request option.
|
|
2870
|
+
* @throws {RequiredError}
|
|
2871
|
+
*/
|
|
2872
|
+
contextCreate(createContextRequest, options) {
|
|
2873
|
+
return localVarFp.contextCreate(createContextRequest, options).then((request) => request(axios, basePath));
|
|
2874
|
+
},
|
|
2875
|
+
/**
|
|
2876
|
+
*
|
|
2877
|
+
* @summary Deletes a schedule
|
|
2878
|
+
* @param {string} id id of entity to query
|
|
2879
|
+
* @param {*} [options] Override http request option.
|
|
2880
|
+
* @throws {RequiredError}
|
|
2881
|
+
*/
|
|
2882
|
+
contextDelete(id, options) {
|
|
2883
|
+
return localVarFp.contextDelete(id, options).then((request) => request(axios, basePath));
|
|
2884
|
+
},
|
|
2885
|
+
/**
|
|
2886
|
+
*
|
|
2887
|
+
* @summary Update a context
|
|
2888
|
+
* @param {UpdateContextRequest} updateContextRequest
|
|
2889
|
+
* @param {*} [options] Override http request option.
|
|
2890
|
+
* @throws {RequiredError}
|
|
2891
|
+
*/
|
|
2892
|
+
contextUpdate(updateContextRequest, options) {
|
|
2893
|
+
return localVarFp.contextUpdate(updateContextRequest, options).then((request) => request(axios, basePath));
|
|
2894
|
+
},
|
|
2895
|
+
/**
|
|
2896
|
+
*
|
|
2897
|
+
* @summary Gets all or specific set of contexts
|
|
2898
|
+
* @param {string} [q] Query search string to filter results ({field},{operator},{value}) (example firstName,equals,Patrick)
|
|
2899
|
+
* @param {Array<string>} [id] ids for the entities this id belongs to
|
|
2900
|
+
* @param {*} [options] Override http request option.
|
|
2901
|
+
* @throws {RequiredError}
|
|
2902
|
+
*/
|
|
2903
|
+
contexts(q, id, options) {
|
|
2904
|
+
return localVarFp.contexts(q, id, options).then((request) => request(axios, basePath));
|
|
2905
|
+
},
|
|
2906
|
+
/**
|
|
2907
|
+
*
|
|
2908
|
+
* @summary Creates new contexts
|
|
2909
|
+
* @param {CreateContextsRequest} createContextsRequest
|
|
2910
|
+
* @param {*} [options] Override http request option.
|
|
2911
|
+
* @throws {RequiredError}
|
|
2912
|
+
*/
|
|
2913
|
+
contextsCreate(createContextsRequest, options) {
|
|
2914
|
+
return localVarFp.contextsCreate(createContextsRequest, options).then((request) => request(axios, basePath));
|
|
2915
|
+
},
|
|
2916
|
+
/**
|
|
2917
|
+
*
|
|
2918
|
+
* @summary Deletes multiple contexts
|
|
2919
|
+
* @param {Array<string>} [id] ids for the entities this id belongs to
|
|
2920
|
+
* @param {*} [options] Override http request option.
|
|
2921
|
+
* @throws {RequiredError}
|
|
2922
|
+
*/
|
|
2923
|
+
contextsDelete(id, options) {
|
|
2924
|
+
return localVarFp.contextsDelete(id, options).then((request) => request(axios, basePath));
|
|
2925
|
+
},
|
|
2926
|
+
/**
|
|
2927
|
+
*
|
|
2928
|
+
* @summary Updates multiple contexts
|
|
2929
|
+
* @param {UpdateContextRequest} updateContextRequest
|
|
2930
|
+
* @param {*} [options] Override http request option.
|
|
2931
|
+
* @throws {RequiredError}
|
|
2932
|
+
*/
|
|
2933
|
+
contextsUpdate(updateContextRequest, options) {
|
|
2934
|
+
return localVarFp.contextsUpdate(updateContextRequest, options).then((request) => request(axios, basePath));
|
|
2935
|
+
},
|
|
2936
|
+
/**
|
|
2937
|
+
*
|
|
2938
|
+
* @summary Gets a conversation
|
|
2939
|
+
* @param {string} id id of entity to query
|
|
2940
|
+
* @param {*} [options] Override http request option.
|
|
2941
|
+
* @throws {RequiredError}
|
|
2942
|
+
*/
|
|
2943
|
+
conversation(id, options) {
|
|
2944
|
+
return localVarFp.conversation(id, options).then((request) => request(axios, basePath));
|
|
2945
|
+
},
|
|
2946
|
+
/**
|
|
2947
|
+
*
|
|
2948
|
+
* @summary Create a new conversation
|
|
2949
|
+
* @param {ConversationCreateRequest} conversationCreateRequest
|
|
2950
|
+
* @param {*} [options] Override http request option.
|
|
2951
|
+
* @throws {RequiredError}
|
|
2952
|
+
*/
|
|
2953
|
+
conversationCreate(conversationCreateRequest, options) {
|
|
2954
|
+
return localVarFp.conversationCreate(conversationCreateRequest, options).then((request) => request(axios, basePath));
|
|
2955
|
+
},
|
|
2956
|
+
/**
|
|
2957
|
+
*
|
|
2958
|
+
* @summary Deletes a schedule
|
|
2959
|
+
* @param {string} id id of entity to query
|
|
2960
|
+
* @param {*} [options] Override http request option.
|
|
2961
|
+
* @throws {RequiredError}
|
|
2962
|
+
*/
|
|
2963
|
+
conversationDelete(id, options) {
|
|
2964
|
+
return localVarFp.conversationDelete(id, options).then((request) => request(axios, basePath));
|
|
2965
|
+
},
|
|
2966
|
+
/**
|
|
2967
|
+
*
|
|
2968
|
+
* @summary Update a conversation
|
|
2969
|
+
* @param {ConversationUpdateRequest} conversationUpdateRequest
|
|
2970
|
+
* @param {*} [options] Override http request option.
|
|
2971
|
+
* @throws {RequiredError}
|
|
2972
|
+
*/
|
|
2973
|
+
conversationUpdate(conversationUpdateRequest, options) {
|
|
2974
|
+
return localVarFp.conversationUpdate(conversationUpdateRequest, options).then((request) => request(axios, basePath));
|
|
2975
|
+
},
|
|
2976
|
+
/**
|
|
2977
|
+
*
|
|
2978
|
+
* @summary Gets a customer
|
|
2979
|
+
* @param {string} id id of entity to query
|
|
2980
|
+
* @param {*} [options] Override http request option.
|
|
2981
|
+
* @throws {RequiredError}
|
|
2982
|
+
*/
|
|
2983
|
+
customer(id, options) {
|
|
2984
|
+
return localVarFp.customer(id, options).then((request) => request(axios, basePath));
|
|
2985
|
+
},
|
|
2986
|
+
/**
|
|
2987
|
+
*
|
|
2988
|
+
* @summary Creates a new customer
|
|
2989
|
+
* @param {CreateCustomerRequest} createCustomerRequest
|
|
2990
|
+
* @param {*} [options] Override http request option.
|
|
2991
|
+
* @throws {RequiredError}
|
|
2992
|
+
*/
|
|
2993
|
+
customerCreate(createCustomerRequest, options) {
|
|
2994
|
+
return localVarFp.customerCreate(createCustomerRequest, options).then((request) => request(axios, basePath));
|
|
2995
|
+
},
|
|
2996
|
+
/**
|
|
2997
|
+
*
|
|
2998
|
+
* @summary Deletes a customer
|
|
2999
|
+
* @param {string} id id of entity to query
|
|
3000
|
+
* @param {*} [options] Override http request option.
|
|
3001
|
+
* @throws {RequiredError}
|
|
3002
|
+
*/
|
|
3003
|
+
customerDelete(id, options) {
|
|
3004
|
+
return localVarFp.customerDelete(id, options).then((request) => request(axios, basePath));
|
|
3005
|
+
},
|
|
3006
|
+
/**
|
|
3007
|
+
*
|
|
3008
|
+
* @summary Gets a customer group
|
|
3009
|
+
* @param {string} id id of entity to query
|
|
3010
|
+
* @param {*} [options] Override http request option.
|
|
3011
|
+
* @throws {RequiredError}
|
|
3012
|
+
*/
|
|
3013
|
+
customerGroup(id, options) {
|
|
3014
|
+
return localVarFp.customerGroup(id, options).then((request) => request(axios, basePath));
|
|
3015
|
+
},
|
|
3016
|
+
/**
|
|
3017
|
+
*
|
|
3018
|
+
* @summary Creates a new customer group
|
|
3019
|
+
* @param {CreateCustomerGroupRequest} createCustomerGroupRequest
|
|
3020
|
+
* @param {*} [options] Override http request option.
|
|
3021
|
+
* @throws {RequiredError}
|
|
3022
|
+
*/
|
|
3023
|
+
customerGroupCreate(createCustomerGroupRequest, options) {
|
|
3024
|
+
return localVarFp.customerGroupCreate(createCustomerGroupRequest, options).then((request) => request(axios, basePath));
|
|
3025
|
+
},
|
|
3026
|
+
/**
|
|
3027
|
+
*
|
|
3028
|
+
* @summary Deletes a customer group
|
|
3029
|
+
* @param {string} id id of entity to query
|
|
3030
|
+
* @param {*} [options] Override http request option.
|
|
3031
|
+
* @throws {RequiredError}
|
|
3032
|
+
*/
|
|
3033
|
+
customerGroupDelete(id, options) {
|
|
3034
|
+
return localVarFp.customerGroupDelete(id, options).then((request) => request(axios, basePath));
|
|
3035
|
+
},
|
|
3036
|
+
/**
|
|
3037
|
+
*
|
|
3038
|
+
* @summary Updates a customer group
|
|
3039
|
+
* @param {UpdateCustomerGroupRequest} updateCustomerGroupRequest
|
|
3040
|
+
* @param {*} [options] Override http request option.
|
|
3041
|
+
* @throws {RequiredError}
|
|
3042
|
+
*/
|
|
3043
|
+
customerGroupUpdate(updateCustomerGroupRequest, options) {
|
|
3044
|
+
return localVarFp.customerGroupUpdate(updateCustomerGroupRequest, options).then((request) => request(axios, basePath));
|
|
3045
|
+
},
|
|
3046
|
+
/**
|
|
3047
|
+
*
|
|
3048
|
+
* @summary Gets all or specific set of customer groups
|
|
3049
|
+
* @param {string} [q] Query search string to filter results ({field},{operator},{value}) (example firstName,equals,Patrick)
|
|
3050
|
+
* @param {Array<string>} [id] ids for the entities this id belongs to
|
|
3051
|
+
* @param {*} [options] Override http request option.
|
|
3052
|
+
* @throws {RequiredError}
|
|
3053
|
+
*/
|
|
3054
|
+
customerGroups(q, id, options) {
|
|
3055
|
+
return localVarFp.customerGroups(q, id, options).then((request) => request(axios, basePath));
|
|
3056
|
+
},
|
|
3057
|
+
/**
|
|
3058
|
+
*
|
|
3059
|
+
* @summary Creates new customer groups
|
|
3060
|
+
* @param {CreateCustomerGroupsRequest} createCustomerGroupsRequest
|
|
3061
|
+
* @param {*} [options] Override http request option.
|
|
3062
|
+
* @throws {RequiredError}
|
|
3063
|
+
*/
|
|
3064
|
+
customerGroupsCreate(createCustomerGroupsRequest, options) {
|
|
3065
|
+
return localVarFp.customerGroupsCreate(createCustomerGroupsRequest, options).then((request) => request(axios, basePath));
|
|
3066
|
+
},
|
|
3067
|
+
/**
|
|
3068
|
+
*
|
|
3069
|
+
* @summary Deletes multiple customer groups
|
|
3070
|
+
* @param {Array<string>} [id] ids for the entities this id belongs to
|
|
3071
|
+
* @param {*} [options] Override http request option.
|
|
3072
|
+
* @throws {RequiredError}
|
|
3073
|
+
*/
|
|
3074
|
+
customerGroupsDelete(id, options) {
|
|
3075
|
+
return localVarFp.customerGroupsDelete(id, options).then((request) => request(axios, basePath));
|
|
3076
|
+
},
|
|
3077
|
+
/**
|
|
3078
|
+
*
|
|
3079
|
+
* @summary Updates multiple customer groups
|
|
3080
|
+
* @param {UpdateCustomerGroupsRequest} updateCustomerGroupsRequest
|
|
3081
|
+
* @param {*} [options] Override http request option.
|
|
3082
|
+
* @throws {RequiredError}
|
|
3083
|
+
*/
|
|
3084
|
+
customerGroupsUpdate(updateCustomerGroupsRequest, options) {
|
|
3085
|
+
return localVarFp.customerGroupsUpdate(updateCustomerGroupsRequest, options).then((request) => request(axios, basePath));
|
|
3086
|
+
},
|
|
3087
|
+
/**
|
|
3088
|
+
*
|
|
3089
|
+
* @summary Updates a customer
|
|
3090
|
+
* @param {UpdateCustomerRequest} updateCustomerRequest
|
|
3091
|
+
* @param {*} [options] Override http request option.
|
|
3092
|
+
* @throws {RequiredError}
|
|
3093
|
+
*/
|
|
3094
|
+
customerUpdate(updateCustomerRequest, options) {
|
|
3095
|
+
return localVarFp.customerUpdate(updateCustomerRequest, options).then((request) => request(axios, basePath));
|
|
3096
|
+
},
|
|
3097
|
+
/**
|
|
3098
|
+
*
|
|
3099
|
+
* @summary Gets all or specific set of customers
|
|
3100
|
+
* @param {string} [q] Query search string to filter results ({field},{operator},{value}) (example firstName,equals,Patrick)
|
|
3101
|
+
* @param {Array<string>} [id] ids for the entities this id belongs to
|
|
3102
|
+
* @param {*} [options] Override http request option.
|
|
3103
|
+
* @throws {RequiredError}
|
|
3104
|
+
*/
|
|
3105
|
+
customers(q, id, options) {
|
|
3106
|
+
return localVarFp.customers(q, id, options).then((request) => request(axios, basePath));
|
|
3107
|
+
},
|
|
3108
|
+
/**
|
|
3109
|
+
*
|
|
3110
|
+
* @summary Creates new customers
|
|
3111
|
+
* @param {CreateCustomersRequest} createCustomersRequest
|
|
3112
|
+
* @param {*} [options] Override http request option.
|
|
3113
|
+
* @throws {RequiredError}
|
|
3114
|
+
*/
|
|
3115
|
+
customersCreate(createCustomersRequest, options) {
|
|
3116
|
+
return localVarFp.customersCreate(createCustomersRequest, options).then((request) => request(axios, basePath));
|
|
3117
|
+
},
|
|
3118
|
+
/**
|
|
3119
|
+
*
|
|
3120
|
+
* @summary Deletes multiple customers
|
|
3121
|
+
* @param {Array<string>} [id] ids for the entities this id belongs to
|
|
3122
|
+
* @param {*} [options] Override http request option.
|
|
3123
|
+
* @throws {RequiredError}
|
|
3124
|
+
*/
|
|
3125
|
+
customersDelete(id, options) {
|
|
3126
|
+
return localVarFp.customersDelete(id, options).then((request) => request(axios, basePath));
|
|
3127
|
+
},
|
|
3128
|
+
/**
|
|
3129
|
+
*
|
|
3130
|
+
* @summary Updates multiple customers
|
|
3131
|
+
* @param {UpdateCustomerRequest} updateCustomerRequest
|
|
3132
|
+
* @param {*} [options] Override http request option.
|
|
3133
|
+
* @throws {RequiredError}
|
|
3134
|
+
*/
|
|
3135
|
+
customersUpdate(updateCustomerRequest, options) {
|
|
3136
|
+
return localVarFp.customersUpdate(updateCustomerRequest, options).then((request) => request(axios, basePath));
|
|
3137
|
+
},
|
|
3138
|
+
/**
|
|
3139
|
+
*
|
|
3140
|
+
* @summary Returns information about a specific file.
|
|
3141
|
+
* @param {string} fileId The ID of the file to use for this request
|
|
3142
|
+
* @param {*} [options] Override http request option.
|
|
3143
|
+
* @throws {RequiredError}
|
|
3144
|
+
*/
|
|
3145
|
+
file(fileId, options) {
|
|
3146
|
+
return localVarFp.file(fileId, options).then((request) => request(axios, basePath));
|
|
3147
|
+
},
|
|
3148
|
+
/**
|
|
3149
|
+
*
|
|
3150
|
+
* @summary Upload a file that contains document(s) to be used across various endpoints/features. Currently, the size of all the files uploaded by one organization can be up to 1 GB. Please contact us if you need to increase the storage limit.
|
|
3151
|
+
* @param {File} file
|
|
3152
|
+
* @param {string} [purpose] The intended purpose of the uploaded documents. This allows us to validate the format of the uploaded file.
|
|
3153
|
+
* @param {*} [options] Override http request option.
|
|
3154
|
+
* @throws {RequiredError}
|
|
3155
|
+
*/
|
|
3156
|
+
fileCreate(file, purpose, options) {
|
|
3157
|
+
return localVarFp.fileCreate(file, purpose, options).then((request) => request(axios, basePath));
|
|
3158
|
+
},
|
|
3159
|
+
/**
|
|
3160
|
+
*
|
|
3161
|
+
* @summary Delete a file.
|
|
3162
|
+
* @param {string} fileId The ID of the file to use for this request
|
|
3163
|
+
* @param {*} [options] Override http request option.
|
|
3164
|
+
* @throws {RequiredError}
|
|
3165
|
+
*/
|
|
3166
|
+
fileDelete(fileId, options) {
|
|
3167
|
+
return localVarFp.fileDelete(fileId, options).then((request) => request(axios, basePath));
|
|
3168
|
+
},
|
|
3169
|
+
/**
|
|
3170
|
+
*
|
|
3171
|
+
* @summary Returns the contents of the specified file
|
|
3172
|
+
* @param {string} fileId The ID of the file to use for this request
|
|
3173
|
+
* @param {*} [options] Override http request option.
|
|
3174
|
+
* @throws {RequiredError}
|
|
3175
|
+
*/
|
|
3176
|
+
fileDownload(fileId, options) {
|
|
3177
|
+
return localVarFp.fileDownload(fileId, options).then((request) => request(axios, basePath));
|
|
3178
|
+
},
|
|
3179
|
+
/**
|
|
3180
|
+
*
|
|
3181
|
+
* @summary Returns a list of files that belong to the user\'s organization.
|
|
3182
|
+
* @param {*} [options] Override http request option.
|
|
3183
|
+
* @throws {RequiredError}
|
|
3184
|
+
*/
|
|
3185
|
+
files(options) {
|
|
3186
|
+
return localVarFp.files(options).then((request) => request(axios, basePath));
|
|
3187
|
+
},
|
|
3188
|
+
/**
|
|
3189
|
+
* Generates a message in the agent\'s voice based on the state of the given conversation. This is useful for testing and debugging. The message will not be sent to the conversation, you must run .message() with the body of the generated message to send it to the conversation.
|
|
3190
|
+
* @summary Generate a message from conversation
|
|
3191
|
+
* @param {GenerateRequest} generateRequest
|
|
3192
|
+
* @param {*} [options] Override http request option.
|
|
3193
|
+
* @throws {RequiredError}
|
|
3194
|
+
*/
|
|
3195
|
+
generate(generateRequest, options) {
|
|
3196
|
+
return localVarFp.generate(generateRequest, options).then((request) => request(axios, basePath));
|
|
3197
|
+
},
|
|
3198
|
+
/**
|
|
3199
|
+
* Creates a new message and sends it to the conversation. If the conversation is scheduled, the message will be scheduled as well. @TODO does not support the ability to mute or delay send
|
|
3200
|
+
* @summary Create and send message
|
|
3201
|
+
* @param {MessageCreateRequest} messageCreateRequest
|
|
3202
|
+
* @param {*} [options] Override http request option.
|
|
3203
|
+
* @throws {RequiredError}
|
|
3204
|
+
*/
|
|
3205
|
+
message(messageCreateRequest, options) {
|
|
3206
|
+
return localVarFp.message(messageCreateRequest, options).then((request) => request(axios, basePath));
|
|
3207
|
+
},
|
|
3208
|
+
/**
|
|
3209
|
+
*
|
|
3210
|
+
* @summary Get all messages from a conversation
|
|
3211
|
+
* @param {string} id id of entity to query
|
|
3212
|
+
* @param {string} [q] Query search string to filter results ({field},{operator},{value}) (example firstName,equals,Patrick)
|
|
3213
|
+
* @param {*} [options] Override http request option.
|
|
3214
|
+
* @throws {RequiredError}
|
|
3215
|
+
*/
|
|
3216
|
+
messages(id, q, options) {
|
|
3217
|
+
return localVarFp.messages(id, q, options).then((request) => request(axios, basePath));
|
|
3218
|
+
},
|
|
3219
|
+
/**
|
|
3220
|
+
*
|
|
3221
|
+
* @summary Get the results of a bulk API operation
|
|
3222
|
+
* @param {string} id id of entity to query
|
|
3223
|
+
* @param {*} [options] Override http request option.
|
|
3224
|
+
* @throws {RequiredError}
|
|
3225
|
+
*/
|
|
3226
|
+
operation(id, options) {
|
|
3227
|
+
return localVarFp.operation(id, options).then((request) => request(axios, basePath));
|
|
3228
|
+
},
|
|
3229
|
+
/**
|
|
3230
|
+
*
|
|
3231
|
+
* @summary Gets all or specific set of bulk API operations
|
|
3232
|
+
* @param {string} [q] Query search string to filter results ({field},{operator},{value}) (example firstName,equals,Patrick)
|
|
3233
|
+
* @param {Array<string>} [id] ids for the entities this id belongs to
|
|
3234
|
+
* @param {*} [options] Override http request option.
|
|
3235
|
+
* @throws {RequiredError}
|
|
3236
|
+
*/
|
|
3237
|
+
operations(q, id, options) {
|
|
3238
|
+
return localVarFp.operations(q, id, options).then((request) => request(axios, basePath));
|
|
3239
|
+
},
|
|
3240
|
+
/**
|
|
3241
|
+
*
|
|
3242
|
+
* @summary Creates a new scheduled conversation
|
|
3243
|
+
* @param {ScheduleCreateRequest} scheduleCreateRequest
|
|
3244
|
+
* @param {*} [options] Override http request option.
|
|
3245
|
+
* @throws {RequiredError}
|
|
3246
|
+
*/
|
|
3247
|
+
scheduleConversation(scheduleCreateRequest, options) {
|
|
3248
|
+
return localVarFp.scheduleConversation(scheduleCreateRequest, options).then((request) => request(axios, basePath));
|
|
3249
|
+
},
|
|
3250
|
+
/**
|
|
3251
|
+
*
|
|
3252
|
+
* @summary Deletes a schedule
|
|
3253
|
+
* @param {string} id id of entity to query
|
|
3254
|
+
* @param {*} [options] Override http request option.
|
|
3255
|
+
* @throws {RequiredError}
|
|
3256
|
+
*/
|
|
3257
|
+
scheduleDelete(id, options) {
|
|
3258
|
+
return localVarFp.scheduleDelete(id, options).then((request) => request(axios, basePath));
|
|
3259
|
+
},
|
|
3260
|
+
/**
|
|
3261
|
+
*
|
|
3262
|
+
* @summary Creates a new schedule group
|
|
3263
|
+
* @param {ScheduleGroupCreateRequest} scheduleGroupCreateRequest
|
|
3264
|
+
* @param {*} [options] Override http request option.
|
|
3265
|
+
* @throws {RequiredError}
|
|
3266
|
+
*/
|
|
3267
|
+
scheduleGroupCreate(scheduleGroupCreateRequest, options) {
|
|
3268
|
+
return localVarFp.scheduleGroupCreate(scheduleGroupCreateRequest, options).then((request) => request(axios, basePath));
|
|
3269
|
+
},
|
|
3270
|
+
/**
|
|
3271
|
+
*
|
|
3272
|
+
* @summary Deletes and cancels a schedule group
|
|
3273
|
+
* @param {string} id id of entity to query
|
|
3274
|
+
* @param {*} [options] Override http request option.
|
|
3275
|
+
* @throws {RequiredError}
|
|
3276
|
+
*/
|
|
3277
|
+
scheduleGroupDelete(id, options) {
|
|
3278
|
+
return localVarFp.scheduleGroupDelete(id, options).then((request) => request(axios, basePath));
|
|
3279
|
+
},
|
|
3280
|
+
/**
|
|
3281
|
+
*
|
|
3282
|
+
* @summary Gets a schedule group
|
|
3283
|
+
* @param {string} id id of entity to query
|
|
3284
|
+
* @param {*} [options] Override http request option.
|
|
3285
|
+
* @throws {RequiredError}
|
|
3286
|
+
*/
|
|
3287
|
+
scheduleGroupRetrieve(id, options) {
|
|
3288
|
+
return localVarFp.scheduleGroupRetrieve(id, options).then((request) => request(axios, basePath));
|
|
3289
|
+
},
|
|
3290
|
+
/**
|
|
3291
|
+
*
|
|
3292
|
+
* @summary Updates a schedule group
|
|
3293
|
+
* @param {ScheduleGroupUpdateRequest} scheduleGroupUpdateRequest
|
|
3294
|
+
* @param {*} [options] Override http request option.
|
|
3295
|
+
* @throws {RequiredError}
|
|
3296
|
+
*/
|
|
3297
|
+
scheduleGroupUpdate(scheduleGroupUpdateRequest, options) {
|
|
3298
|
+
return localVarFp.scheduleGroupUpdate(scheduleGroupUpdateRequest, options).then((request) => request(axios, basePath));
|
|
3299
|
+
},
|
|
3300
|
+
/**
|
|
3301
|
+
*
|
|
3302
|
+
* @summary Gets a schedule
|
|
3303
|
+
* @param {string} id id of entity to query
|
|
3304
|
+
* @param {*} [options] Override http request option.
|
|
3305
|
+
* @throws {RequiredError}
|
|
3306
|
+
*/
|
|
3307
|
+
scheduleRetrieve(id, options) {
|
|
3308
|
+
return localVarFp.scheduleRetrieve(id, options).then((request) => request(axios, basePath));
|
|
3309
|
+
},
|
|
3310
|
+
/**
|
|
3311
|
+
*
|
|
3312
|
+
* @summary Updates a schedule
|
|
3313
|
+
* @param {ScheduleUpdateRequest} scheduleUpdateRequest
|
|
3314
|
+
* @param {*} [options] Override http request option.
|
|
3315
|
+
* @throws {RequiredError}
|
|
3316
|
+
*/
|
|
3317
|
+
scheduleUpdate(scheduleUpdateRequest, options) {
|
|
3318
|
+
return localVarFp.scheduleUpdate(scheduleUpdateRequest, options).then((request) => request(axios, basePath));
|
|
3319
|
+
},
|
|
3320
|
+
/**
|
|
3321
|
+
*
|
|
3322
|
+
* @summary Gets a workflow
|
|
3323
|
+
* @param {string} id id of entity to query
|
|
3324
|
+
* @param {*} [options] Override http request option.
|
|
3325
|
+
* @throws {RequiredError}
|
|
3326
|
+
*/
|
|
3327
|
+
workflow(id, options) {
|
|
3328
|
+
return localVarFp.workflow(id, options).then((request) => request(axios, basePath));
|
|
3329
|
+
},
|
|
3330
|
+
/**
|
|
3331
|
+
*
|
|
3332
|
+
* @summary Create a new workflow
|
|
3333
|
+
* @param {CreateWorkflowRequest} createWorkflowRequest
|
|
3334
|
+
* @param {*} [options] Override http request option.
|
|
3335
|
+
* @throws {RequiredError}
|
|
3336
|
+
*/
|
|
3337
|
+
workflowCreate(createWorkflowRequest, options) {
|
|
3338
|
+
return localVarFp.workflowCreate(createWorkflowRequest, options).then((request) => request(axios, basePath));
|
|
3339
|
+
},
|
|
3340
|
+
/**
|
|
3341
|
+
*
|
|
3342
|
+
* @summary Deletes a workflow
|
|
3343
|
+
* @param {string} id id of entity to query
|
|
3344
|
+
* @param {*} [options] Override http request option.
|
|
3345
|
+
* @throws {RequiredError}
|
|
3346
|
+
*/
|
|
3347
|
+
workflowDelete(id, options) {
|
|
3348
|
+
return localVarFp.workflowDelete(id, options).then((request) => request(axios, basePath));
|
|
3349
|
+
},
|
|
3350
|
+
/**
|
|
3351
|
+
*
|
|
3352
|
+
* @summary Update a workflow
|
|
3353
|
+
* @param {UpdateWorkflowRequest} updateWorkflowRequest
|
|
3354
|
+
* @param {*} [options] Override http request option.
|
|
3355
|
+
* @throws {RequiredError}
|
|
3356
|
+
*/
|
|
3357
|
+
workflowUpdate(updateWorkflowRequest, options) {
|
|
3358
|
+
return localVarFp.workflowUpdate(updateWorkflowRequest, options).then((request) => request(axios, basePath));
|
|
3359
|
+
},
|
|
3360
|
+
/**
|
|
3361
|
+
*
|
|
3362
|
+
* @summary Gets all or specific set of workflows
|
|
3363
|
+
* @param {string} [q] Query search string to filter results ({field},{operator},{value}) (example firstName,equals,Patrick)
|
|
3364
|
+
* @param {Array<string>} [id] ids for the entities this id belongs to
|
|
3365
|
+
* @param {*} [options] Override http request option.
|
|
3366
|
+
* @throws {RequiredError}
|
|
3367
|
+
*/
|
|
3368
|
+
workflows(q, id, options) {
|
|
3369
|
+
return localVarFp.workflows(q, id, options).then((request) => request(axios, basePath));
|
|
3370
|
+
},
|
|
3371
|
+
/**
|
|
3372
|
+
*
|
|
3373
|
+
* @summary Creates new workflows
|
|
3374
|
+
* @param {CreateWorkflowsRequest} createWorkflowsRequest
|
|
3375
|
+
* @param {*} [options] Override http request option.
|
|
3376
|
+
* @throws {RequiredError}
|
|
3377
|
+
*/
|
|
3378
|
+
workflowsCreate(createWorkflowsRequest, options) {
|
|
3379
|
+
return localVarFp.workflowsCreate(createWorkflowsRequest, options).then((request) => request(axios, basePath));
|
|
3380
|
+
},
|
|
3381
|
+
/**
|
|
3382
|
+
*
|
|
3383
|
+
* @summary Deletes multiple workflows
|
|
3384
|
+
* @param {Array<string>} [id] ids for the entities this id belongs to
|
|
3385
|
+
* @param {*} [options] Override http request option.
|
|
3386
|
+
* @throws {RequiredError}
|
|
3387
|
+
*/
|
|
3388
|
+
workflowsDelete(id, options) {
|
|
3389
|
+
return localVarFp.workflowsDelete(id, options).then((request) => request(axios, basePath));
|
|
3390
|
+
},
|
|
3391
|
+
/**
|
|
3392
|
+
*
|
|
3393
|
+
* @summary Updates multiple workflows
|
|
3394
|
+
* @param {UpdateWorkflowRequest} updateWorkflowRequest
|
|
3395
|
+
* @param {*} [options] Override http request option.
|
|
3396
|
+
* @throws {RequiredError}
|
|
3397
|
+
*/
|
|
3398
|
+
workflowsUpdate(updateWorkflowRequest, options) {
|
|
3399
|
+
return localVarFp.workflowsUpdate(updateWorkflowRequest, options).then((request) => request(axios, basePath));
|
|
3400
|
+
},
|
|
3401
|
+
};
|
|
3402
|
+
};
|
|
3403
|
+
exports.PocketScoutApiFactory = PocketScoutApiFactory;
|
|
3404
|
+
/**
|
|
3405
|
+
* PocketScoutApi - object-oriented interface
|
|
3406
|
+
* @export
|
|
3407
|
+
* @class PocketScoutApi
|
|
3408
|
+
* @extends {BaseAPI}
|
|
3409
|
+
*/
|
|
3410
|
+
class PocketScoutApi extends base_1.BaseAPI {
|
|
3411
|
+
/**
|
|
3412
|
+
*
|
|
3413
|
+
* @summary Gets a agent
|
|
3414
|
+
* @param {string} id id of entity to query
|
|
3415
|
+
* @param {*} [options] Override http request option.
|
|
3416
|
+
* @throws {RequiredError}
|
|
3417
|
+
* @memberof PocketScoutApi
|
|
3418
|
+
*/
|
|
3419
|
+
agent(id, options) {
|
|
3420
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).agent(id, options).then((request) => request(this.axios, this.basePath));
|
|
3421
|
+
}
|
|
3422
|
+
/**
|
|
3423
|
+
*
|
|
3424
|
+
* @summary Deletes a agent
|
|
3425
|
+
* @param {string} id id of entity to query
|
|
3426
|
+
* @param {*} [options] Override http request option.
|
|
3427
|
+
* @throws {RequiredError}
|
|
3428
|
+
* @memberof PocketScoutApi
|
|
3429
|
+
*/
|
|
3430
|
+
agentDelete(id, options) {
|
|
3431
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).agentDelete(id, options).then((request) => request(this.axios, this.basePath));
|
|
3432
|
+
}
|
|
3433
|
+
/**
|
|
3434
|
+
*
|
|
3435
|
+
* @summary Registers a new agent
|
|
3436
|
+
* @param {CreateAgentRequest} createAgentRequest
|
|
3437
|
+
* @param {*} [options] Override http request option.
|
|
3438
|
+
* @throws {RequiredError}
|
|
3439
|
+
* @memberof PocketScoutApi
|
|
3440
|
+
*/
|
|
3441
|
+
agentRegister(createAgentRequest, options) {
|
|
3442
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).agentRegister(createAgentRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3443
|
+
}
|
|
3444
|
+
/**
|
|
3445
|
+
*
|
|
3446
|
+
* @summary Update a agent
|
|
3447
|
+
* @param {UpdateAgentRequest} updateAgentRequest
|
|
3448
|
+
* @param {*} [options] Override http request option.
|
|
3449
|
+
* @throws {RequiredError}
|
|
3450
|
+
* @memberof PocketScoutApi
|
|
3451
|
+
*/
|
|
3452
|
+
agentUpdate(updateAgentRequest, options) {
|
|
3453
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).agentUpdate(updateAgentRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3454
|
+
}
|
|
3455
|
+
/**
|
|
3456
|
+
*
|
|
3457
|
+
* @summary Gets all or specific set of agents
|
|
3458
|
+
* @param {string} [q] Query search string to filter results ({field},{operator},{value}) (example firstName,equals,Patrick)
|
|
3459
|
+
* @param {Array<string>} [id] ids for the entities this id belongs to
|
|
3460
|
+
* @param {*} [options] Override http request option.
|
|
3461
|
+
* @throws {RequiredError}
|
|
3462
|
+
* @memberof PocketScoutApi
|
|
3463
|
+
*/
|
|
3464
|
+
agents(q, id, options) {
|
|
3465
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).agents(q, id, options).then((request) => request(this.axios, this.basePath));
|
|
3466
|
+
}
|
|
3467
|
+
/**
|
|
3468
|
+
*
|
|
3469
|
+
* @summary Creates new agents
|
|
3470
|
+
* @param {CreateAgentsRequest} createAgentsRequest
|
|
3471
|
+
* @param {*} [options] Override http request option.
|
|
3472
|
+
* @throws {RequiredError}
|
|
3473
|
+
* @memberof PocketScoutApi
|
|
3474
|
+
*/
|
|
3475
|
+
agentsCreate(createAgentsRequest, options) {
|
|
3476
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).agentsCreate(createAgentsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3477
|
+
}
|
|
3478
|
+
/**
|
|
3479
|
+
*
|
|
3480
|
+
* @summary Deletes multiple agents
|
|
3481
|
+
* @param {Array<string>} [id] ids for the entities this id belongs to
|
|
3482
|
+
* @param {*} [options] Override http request option.
|
|
3483
|
+
* @throws {RequiredError}
|
|
3484
|
+
* @memberof PocketScoutApi
|
|
3485
|
+
*/
|
|
3486
|
+
agentsDelete(id, options) {
|
|
3487
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).agentsDelete(id, options).then((request) => request(this.axios, this.basePath));
|
|
3488
|
+
}
|
|
3489
|
+
/**
|
|
3490
|
+
*
|
|
3491
|
+
* @summary Updates multiple agents
|
|
3492
|
+
* @param {UpdateAgentsRequest} updateAgentsRequest
|
|
3493
|
+
* @param {*} [options] Override http request option.
|
|
3494
|
+
* @throws {RequiredError}
|
|
3495
|
+
* @memberof PocketScoutApi
|
|
3496
|
+
*/
|
|
3497
|
+
agentsUpdate(updateAgentsRequest, options) {
|
|
3498
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).agentsUpdate(updateAgentsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3499
|
+
}
|
|
3500
|
+
/**
|
|
3501
|
+
*
|
|
3502
|
+
* @summary Gets a context
|
|
3503
|
+
* @param {string} id id of entity to query
|
|
3504
|
+
* @param {*} [options] Override http request option.
|
|
3505
|
+
* @throws {RequiredError}
|
|
3506
|
+
* @memberof PocketScoutApi
|
|
3507
|
+
*/
|
|
3508
|
+
context(id, options) {
|
|
3509
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).context(id, options).then((request) => request(this.axios, this.basePath));
|
|
3510
|
+
}
|
|
3511
|
+
/**
|
|
3512
|
+
*
|
|
3513
|
+
* @summary Create a new context
|
|
3514
|
+
* @param {CreateContextRequest} createContextRequest
|
|
3515
|
+
* @param {*} [options] Override http request option.
|
|
3516
|
+
* @throws {RequiredError}
|
|
3517
|
+
* @memberof PocketScoutApi
|
|
3518
|
+
*/
|
|
3519
|
+
contextCreate(createContextRequest, options) {
|
|
3520
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).contextCreate(createContextRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3521
|
+
}
|
|
3522
|
+
/**
|
|
3523
|
+
*
|
|
3524
|
+
* @summary Deletes a schedule
|
|
3525
|
+
* @param {string} id id of entity to query
|
|
3526
|
+
* @param {*} [options] Override http request option.
|
|
3527
|
+
* @throws {RequiredError}
|
|
3528
|
+
* @memberof PocketScoutApi
|
|
3529
|
+
*/
|
|
3530
|
+
contextDelete(id, options) {
|
|
3531
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).contextDelete(id, options).then((request) => request(this.axios, this.basePath));
|
|
3532
|
+
}
|
|
3533
|
+
/**
|
|
3534
|
+
*
|
|
3535
|
+
* @summary Update a context
|
|
3536
|
+
* @param {UpdateContextRequest} updateContextRequest
|
|
3537
|
+
* @param {*} [options] Override http request option.
|
|
3538
|
+
* @throws {RequiredError}
|
|
3539
|
+
* @memberof PocketScoutApi
|
|
3540
|
+
*/
|
|
3541
|
+
contextUpdate(updateContextRequest, options) {
|
|
3542
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).contextUpdate(updateContextRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3543
|
+
}
|
|
3544
|
+
/**
|
|
3545
|
+
*
|
|
3546
|
+
* @summary Gets all or specific set of contexts
|
|
3547
|
+
* @param {string} [q] Query search string to filter results ({field},{operator},{value}) (example firstName,equals,Patrick)
|
|
3548
|
+
* @param {Array<string>} [id] ids for the entities this id belongs to
|
|
3549
|
+
* @param {*} [options] Override http request option.
|
|
3550
|
+
* @throws {RequiredError}
|
|
3551
|
+
* @memberof PocketScoutApi
|
|
3552
|
+
*/
|
|
3553
|
+
contexts(q, id, options) {
|
|
3554
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).contexts(q, id, options).then((request) => request(this.axios, this.basePath));
|
|
3555
|
+
}
|
|
3556
|
+
/**
|
|
3557
|
+
*
|
|
3558
|
+
* @summary Creates new contexts
|
|
3559
|
+
* @param {CreateContextsRequest} createContextsRequest
|
|
3560
|
+
* @param {*} [options] Override http request option.
|
|
3561
|
+
* @throws {RequiredError}
|
|
3562
|
+
* @memberof PocketScoutApi
|
|
3563
|
+
*/
|
|
3564
|
+
contextsCreate(createContextsRequest, options) {
|
|
3565
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).contextsCreate(createContextsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3566
|
+
}
|
|
3567
|
+
/**
|
|
3568
|
+
*
|
|
3569
|
+
* @summary Deletes multiple contexts
|
|
3570
|
+
* @param {Array<string>} [id] ids for the entities this id belongs to
|
|
3571
|
+
* @param {*} [options] Override http request option.
|
|
3572
|
+
* @throws {RequiredError}
|
|
3573
|
+
* @memberof PocketScoutApi
|
|
3574
|
+
*/
|
|
3575
|
+
contextsDelete(id, options) {
|
|
3576
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).contextsDelete(id, options).then((request) => request(this.axios, this.basePath));
|
|
3577
|
+
}
|
|
3578
|
+
/**
|
|
3579
|
+
*
|
|
3580
|
+
* @summary Updates multiple contexts
|
|
3581
|
+
* @param {UpdateContextRequest} updateContextRequest
|
|
3582
|
+
* @param {*} [options] Override http request option.
|
|
3583
|
+
* @throws {RequiredError}
|
|
3584
|
+
* @memberof PocketScoutApi
|
|
3585
|
+
*/
|
|
3586
|
+
contextsUpdate(updateContextRequest, options) {
|
|
3587
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).contextsUpdate(updateContextRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3588
|
+
}
|
|
3589
|
+
/**
|
|
3590
|
+
*
|
|
3591
|
+
* @summary Gets a conversation
|
|
3592
|
+
* @param {string} id id of entity to query
|
|
3593
|
+
* @param {*} [options] Override http request option.
|
|
3594
|
+
* @throws {RequiredError}
|
|
3595
|
+
* @memberof PocketScoutApi
|
|
3596
|
+
*/
|
|
3597
|
+
conversation(id, options) {
|
|
3598
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).conversation(id, options).then((request) => request(this.axios, this.basePath));
|
|
3599
|
+
}
|
|
3600
|
+
/**
|
|
3601
|
+
*
|
|
3602
|
+
* @summary Create a new conversation
|
|
3603
|
+
* @param {ConversationCreateRequest} conversationCreateRequest
|
|
3604
|
+
* @param {*} [options] Override http request option.
|
|
3605
|
+
* @throws {RequiredError}
|
|
3606
|
+
* @memberof PocketScoutApi
|
|
3607
|
+
*/
|
|
3608
|
+
conversationCreate(conversationCreateRequest, options) {
|
|
3609
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).conversationCreate(conversationCreateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3610
|
+
}
|
|
3611
|
+
/**
|
|
3612
|
+
*
|
|
3613
|
+
* @summary Deletes a schedule
|
|
3614
|
+
* @param {string} id id of entity to query
|
|
3615
|
+
* @param {*} [options] Override http request option.
|
|
3616
|
+
* @throws {RequiredError}
|
|
3617
|
+
* @memberof PocketScoutApi
|
|
3618
|
+
*/
|
|
3619
|
+
conversationDelete(id, options) {
|
|
3620
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).conversationDelete(id, options).then((request) => request(this.axios, this.basePath));
|
|
3621
|
+
}
|
|
3622
|
+
/**
|
|
3623
|
+
*
|
|
3624
|
+
* @summary Update a conversation
|
|
3625
|
+
* @param {ConversationUpdateRequest} conversationUpdateRequest
|
|
3626
|
+
* @param {*} [options] Override http request option.
|
|
3627
|
+
* @throws {RequiredError}
|
|
3628
|
+
* @memberof PocketScoutApi
|
|
3629
|
+
*/
|
|
3630
|
+
conversationUpdate(conversationUpdateRequest, options) {
|
|
3631
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).conversationUpdate(conversationUpdateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3632
|
+
}
|
|
3633
|
+
/**
|
|
3634
|
+
*
|
|
3635
|
+
* @summary Gets a customer
|
|
3636
|
+
* @param {string} id id of entity to query
|
|
3637
|
+
* @param {*} [options] Override http request option.
|
|
3638
|
+
* @throws {RequiredError}
|
|
3639
|
+
* @memberof PocketScoutApi
|
|
3640
|
+
*/
|
|
3641
|
+
customer(id, options) {
|
|
3642
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).customer(id, options).then((request) => request(this.axios, this.basePath));
|
|
3643
|
+
}
|
|
3644
|
+
/**
|
|
3645
|
+
*
|
|
3646
|
+
* @summary Creates a new customer
|
|
3647
|
+
* @param {CreateCustomerRequest} createCustomerRequest
|
|
3648
|
+
* @param {*} [options] Override http request option.
|
|
3649
|
+
* @throws {RequiredError}
|
|
3650
|
+
* @memberof PocketScoutApi
|
|
3651
|
+
*/
|
|
3652
|
+
customerCreate(createCustomerRequest, options) {
|
|
3653
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).customerCreate(createCustomerRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3654
|
+
}
|
|
3655
|
+
/**
|
|
3656
|
+
*
|
|
3657
|
+
* @summary Deletes a customer
|
|
3658
|
+
* @param {string} id id of entity to query
|
|
3659
|
+
* @param {*} [options] Override http request option.
|
|
3660
|
+
* @throws {RequiredError}
|
|
3661
|
+
* @memberof PocketScoutApi
|
|
3662
|
+
*/
|
|
3663
|
+
customerDelete(id, options) {
|
|
3664
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).customerDelete(id, options).then((request) => request(this.axios, this.basePath));
|
|
3665
|
+
}
|
|
3666
|
+
/**
|
|
3667
|
+
*
|
|
3668
|
+
* @summary Gets a customer group
|
|
3669
|
+
* @param {string} id id of entity to query
|
|
3670
|
+
* @param {*} [options] Override http request option.
|
|
3671
|
+
* @throws {RequiredError}
|
|
3672
|
+
* @memberof PocketScoutApi
|
|
3673
|
+
*/
|
|
3674
|
+
customerGroup(id, options) {
|
|
3675
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).customerGroup(id, options).then((request) => request(this.axios, this.basePath));
|
|
3676
|
+
}
|
|
3677
|
+
/**
|
|
3678
|
+
*
|
|
3679
|
+
* @summary Creates a new customer group
|
|
3680
|
+
* @param {CreateCustomerGroupRequest} createCustomerGroupRequest
|
|
3681
|
+
* @param {*} [options] Override http request option.
|
|
3682
|
+
* @throws {RequiredError}
|
|
3683
|
+
* @memberof PocketScoutApi
|
|
3684
|
+
*/
|
|
3685
|
+
customerGroupCreate(createCustomerGroupRequest, options) {
|
|
3686
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).customerGroupCreate(createCustomerGroupRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3687
|
+
}
|
|
3688
|
+
/**
|
|
3689
|
+
*
|
|
3690
|
+
* @summary Deletes a customer group
|
|
3691
|
+
* @param {string} id id of entity to query
|
|
3692
|
+
* @param {*} [options] Override http request option.
|
|
3693
|
+
* @throws {RequiredError}
|
|
3694
|
+
* @memberof PocketScoutApi
|
|
3695
|
+
*/
|
|
3696
|
+
customerGroupDelete(id, options) {
|
|
3697
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).customerGroupDelete(id, options).then((request) => request(this.axios, this.basePath));
|
|
3698
|
+
}
|
|
3699
|
+
/**
|
|
3700
|
+
*
|
|
3701
|
+
* @summary Updates a customer group
|
|
3702
|
+
* @param {UpdateCustomerGroupRequest} updateCustomerGroupRequest
|
|
3703
|
+
* @param {*} [options] Override http request option.
|
|
3704
|
+
* @throws {RequiredError}
|
|
3705
|
+
* @memberof PocketScoutApi
|
|
3706
|
+
*/
|
|
3707
|
+
customerGroupUpdate(updateCustomerGroupRequest, options) {
|
|
3708
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).customerGroupUpdate(updateCustomerGroupRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3709
|
+
}
|
|
3710
|
+
/**
|
|
3711
|
+
*
|
|
3712
|
+
* @summary Gets all or specific set of customer groups
|
|
3713
|
+
* @param {string} [q] Query search string to filter results ({field},{operator},{value}) (example firstName,equals,Patrick)
|
|
3714
|
+
* @param {Array<string>} [id] ids for the entities this id belongs to
|
|
3715
|
+
* @param {*} [options] Override http request option.
|
|
3716
|
+
* @throws {RequiredError}
|
|
3717
|
+
* @memberof PocketScoutApi
|
|
3718
|
+
*/
|
|
3719
|
+
customerGroups(q, id, options) {
|
|
3720
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).customerGroups(q, id, options).then((request) => request(this.axios, this.basePath));
|
|
3721
|
+
}
|
|
3722
|
+
/**
|
|
3723
|
+
*
|
|
3724
|
+
* @summary Creates new customer groups
|
|
3725
|
+
* @param {CreateCustomerGroupsRequest} createCustomerGroupsRequest
|
|
3726
|
+
* @param {*} [options] Override http request option.
|
|
3727
|
+
* @throws {RequiredError}
|
|
3728
|
+
* @memberof PocketScoutApi
|
|
3729
|
+
*/
|
|
3730
|
+
customerGroupsCreate(createCustomerGroupsRequest, options) {
|
|
3731
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).customerGroupsCreate(createCustomerGroupsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3732
|
+
}
|
|
3733
|
+
/**
|
|
3734
|
+
*
|
|
3735
|
+
* @summary Deletes multiple customer groups
|
|
3736
|
+
* @param {Array<string>} [id] ids for the entities this id belongs to
|
|
3737
|
+
* @param {*} [options] Override http request option.
|
|
3738
|
+
* @throws {RequiredError}
|
|
3739
|
+
* @memberof PocketScoutApi
|
|
3740
|
+
*/
|
|
3741
|
+
customerGroupsDelete(id, options) {
|
|
3742
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).customerGroupsDelete(id, options).then((request) => request(this.axios, this.basePath));
|
|
3743
|
+
}
|
|
3744
|
+
/**
|
|
3745
|
+
*
|
|
3746
|
+
* @summary Updates multiple customer groups
|
|
3747
|
+
* @param {UpdateCustomerGroupsRequest} updateCustomerGroupsRequest
|
|
3748
|
+
* @param {*} [options] Override http request option.
|
|
3749
|
+
* @throws {RequiredError}
|
|
3750
|
+
* @memberof PocketScoutApi
|
|
3751
|
+
*/
|
|
3752
|
+
customerGroupsUpdate(updateCustomerGroupsRequest, options) {
|
|
3753
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).customerGroupsUpdate(updateCustomerGroupsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3754
|
+
}
|
|
3755
|
+
/**
|
|
3756
|
+
*
|
|
3757
|
+
* @summary Updates a customer
|
|
3758
|
+
* @param {UpdateCustomerRequest} updateCustomerRequest
|
|
3759
|
+
* @param {*} [options] Override http request option.
|
|
3760
|
+
* @throws {RequiredError}
|
|
3761
|
+
* @memberof PocketScoutApi
|
|
3762
|
+
*/
|
|
3763
|
+
customerUpdate(updateCustomerRequest, options) {
|
|
3764
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).customerUpdate(updateCustomerRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3765
|
+
}
|
|
3766
|
+
/**
|
|
3767
|
+
*
|
|
3768
|
+
* @summary Gets all or specific set of customers
|
|
3769
|
+
* @param {string} [q] Query search string to filter results ({field},{operator},{value}) (example firstName,equals,Patrick)
|
|
3770
|
+
* @param {Array<string>} [id] ids for the entities this id belongs to
|
|
3771
|
+
* @param {*} [options] Override http request option.
|
|
3772
|
+
* @throws {RequiredError}
|
|
3773
|
+
* @memberof PocketScoutApi
|
|
3774
|
+
*/
|
|
3775
|
+
customers(q, id, options) {
|
|
3776
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).customers(q, id, options).then((request) => request(this.axios, this.basePath));
|
|
3777
|
+
}
|
|
3778
|
+
/**
|
|
3779
|
+
*
|
|
3780
|
+
* @summary Creates new customers
|
|
3781
|
+
* @param {CreateCustomersRequest} createCustomersRequest
|
|
3782
|
+
* @param {*} [options] Override http request option.
|
|
3783
|
+
* @throws {RequiredError}
|
|
3784
|
+
* @memberof PocketScoutApi
|
|
3785
|
+
*/
|
|
3786
|
+
customersCreate(createCustomersRequest, options) {
|
|
3787
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).customersCreate(createCustomersRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3788
|
+
}
|
|
3789
|
+
/**
|
|
3790
|
+
*
|
|
3791
|
+
* @summary Deletes multiple customers
|
|
3792
|
+
* @param {Array<string>} [id] ids for the entities this id belongs to
|
|
3793
|
+
* @param {*} [options] Override http request option.
|
|
3794
|
+
* @throws {RequiredError}
|
|
3795
|
+
* @memberof PocketScoutApi
|
|
3796
|
+
*/
|
|
3797
|
+
customersDelete(id, options) {
|
|
3798
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).customersDelete(id, options).then((request) => request(this.axios, this.basePath));
|
|
3799
|
+
}
|
|
3800
|
+
/**
|
|
3801
|
+
*
|
|
3802
|
+
* @summary Updates multiple customers
|
|
3803
|
+
* @param {UpdateCustomerRequest} updateCustomerRequest
|
|
3804
|
+
* @param {*} [options] Override http request option.
|
|
3805
|
+
* @throws {RequiredError}
|
|
3806
|
+
* @memberof PocketScoutApi
|
|
3807
|
+
*/
|
|
3808
|
+
customersUpdate(updateCustomerRequest, options) {
|
|
3809
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).customersUpdate(updateCustomerRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3810
|
+
}
|
|
3811
|
+
/**
|
|
3812
|
+
*
|
|
3813
|
+
* @summary Returns information about a specific file.
|
|
3814
|
+
* @param {string} fileId The ID of the file to use for this request
|
|
3815
|
+
* @param {*} [options] Override http request option.
|
|
3816
|
+
* @throws {RequiredError}
|
|
3817
|
+
* @memberof PocketScoutApi
|
|
3818
|
+
*/
|
|
3819
|
+
file(fileId, options) {
|
|
3820
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).file(fileId, options).then((request) => request(this.axios, this.basePath));
|
|
3821
|
+
}
|
|
3822
|
+
/**
|
|
3823
|
+
*
|
|
3824
|
+
* @summary Upload a file that contains document(s) to be used across various endpoints/features. Currently, the size of all the files uploaded by one organization can be up to 1 GB. Please contact us if you need to increase the storage limit.
|
|
3825
|
+
* @param {File} file
|
|
3826
|
+
* @param {string} [purpose] The intended purpose of the uploaded documents. This allows us to validate the format of the uploaded file.
|
|
3827
|
+
* @param {*} [options] Override http request option.
|
|
3828
|
+
* @throws {RequiredError}
|
|
3829
|
+
* @memberof PocketScoutApi
|
|
3830
|
+
*/
|
|
3831
|
+
fileCreate(file, purpose, options) {
|
|
3832
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).fileCreate(file, purpose, options).then((request) => request(this.axios, this.basePath));
|
|
3833
|
+
}
|
|
3834
|
+
/**
|
|
3835
|
+
*
|
|
3836
|
+
* @summary Delete a file.
|
|
3837
|
+
* @param {string} fileId The ID of the file to use for this request
|
|
3838
|
+
* @param {*} [options] Override http request option.
|
|
3839
|
+
* @throws {RequiredError}
|
|
3840
|
+
* @memberof PocketScoutApi
|
|
3841
|
+
*/
|
|
3842
|
+
fileDelete(fileId, options) {
|
|
3843
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).fileDelete(fileId, options).then((request) => request(this.axios, this.basePath));
|
|
3844
|
+
}
|
|
3845
|
+
/**
|
|
3846
|
+
*
|
|
3847
|
+
* @summary Returns the contents of the specified file
|
|
3848
|
+
* @param {string} fileId The ID of the file to use for this request
|
|
3849
|
+
* @param {*} [options] Override http request option.
|
|
3850
|
+
* @throws {RequiredError}
|
|
3851
|
+
* @memberof PocketScoutApi
|
|
3852
|
+
*/
|
|
3853
|
+
fileDownload(fileId, options) {
|
|
3854
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).fileDownload(fileId, options).then((request) => request(this.axios, this.basePath));
|
|
3855
|
+
}
|
|
3856
|
+
/**
|
|
3857
|
+
*
|
|
3858
|
+
* @summary Returns a list of files that belong to the user\'s organization.
|
|
3859
|
+
* @param {*} [options] Override http request option.
|
|
3860
|
+
* @throws {RequiredError}
|
|
3861
|
+
* @memberof PocketScoutApi
|
|
3862
|
+
*/
|
|
3863
|
+
files(options) {
|
|
3864
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).files(options).then((request) => request(this.axios, this.basePath));
|
|
3865
|
+
}
|
|
3866
|
+
/**
|
|
3867
|
+
* Generates a message in the agent\'s voice based on the state of the given conversation. This is useful for testing and debugging. The message will not be sent to the conversation, you must run .message() with the body of the generated message to send it to the conversation.
|
|
3868
|
+
* @summary Generate a message from conversation
|
|
3869
|
+
* @param {GenerateRequest} generateRequest
|
|
3870
|
+
* @param {*} [options] Override http request option.
|
|
3871
|
+
* @throws {RequiredError}
|
|
3872
|
+
* @memberof PocketScoutApi
|
|
3873
|
+
*/
|
|
3874
|
+
generate(generateRequest, options) {
|
|
3875
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).generate(generateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3876
|
+
}
|
|
3877
|
+
/**
|
|
3878
|
+
* Creates a new message and sends it to the conversation. If the conversation is scheduled, the message will be scheduled as well. @TODO does not support the ability to mute or delay send
|
|
3879
|
+
* @summary Create and send message
|
|
3880
|
+
* @param {MessageCreateRequest} messageCreateRequest
|
|
3881
|
+
* @param {*} [options] Override http request option.
|
|
3882
|
+
* @throws {RequiredError}
|
|
3883
|
+
* @memberof PocketScoutApi
|
|
3884
|
+
*/
|
|
3885
|
+
message(messageCreateRequest, options) {
|
|
3886
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).message(messageCreateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3887
|
+
}
|
|
3888
|
+
/**
|
|
3889
|
+
*
|
|
3890
|
+
* @summary Get all messages from a conversation
|
|
3891
|
+
* @param {string} id id of entity to query
|
|
3892
|
+
* @param {string} [q] Query search string to filter results ({field},{operator},{value}) (example firstName,equals,Patrick)
|
|
3893
|
+
* @param {*} [options] Override http request option.
|
|
3894
|
+
* @throws {RequiredError}
|
|
3895
|
+
* @memberof PocketScoutApi
|
|
3896
|
+
*/
|
|
3897
|
+
messages(id, q, options) {
|
|
3898
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).messages(id, q, options).then((request) => request(this.axios, this.basePath));
|
|
3899
|
+
}
|
|
3900
|
+
/**
|
|
3901
|
+
*
|
|
3902
|
+
* @summary Get the results of a bulk API operation
|
|
3903
|
+
* @param {string} id id of entity to query
|
|
3904
|
+
* @param {*} [options] Override http request option.
|
|
3905
|
+
* @throws {RequiredError}
|
|
3906
|
+
* @memberof PocketScoutApi
|
|
3907
|
+
*/
|
|
3908
|
+
operation(id, options) {
|
|
3909
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).operation(id, options).then((request) => request(this.axios, this.basePath));
|
|
3910
|
+
}
|
|
3911
|
+
/**
|
|
3912
|
+
*
|
|
3913
|
+
* @summary Gets all or specific set of bulk API operations
|
|
3914
|
+
* @param {string} [q] Query search string to filter results ({field},{operator},{value}) (example firstName,equals,Patrick)
|
|
3915
|
+
* @param {Array<string>} [id] ids for the entities this id belongs to
|
|
3916
|
+
* @param {*} [options] Override http request option.
|
|
3917
|
+
* @throws {RequiredError}
|
|
3918
|
+
* @memberof PocketScoutApi
|
|
3919
|
+
*/
|
|
3920
|
+
operations(q, id, options) {
|
|
3921
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).operations(q, id, options).then((request) => request(this.axios, this.basePath));
|
|
3922
|
+
}
|
|
3923
|
+
/**
|
|
3924
|
+
*
|
|
3925
|
+
* @summary Creates a new scheduled conversation
|
|
3926
|
+
* @param {ScheduleCreateRequest} scheduleCreateRequest
|
|
3927
|
+
* @param {*} [options] Override http request option.
|
|
3928
|
+
* @throws {RequiredError}
|
|
3929
|
+
* @memberof PocketScoutApi
|
|
3930
|
+
*/
|
|
3931
|
+
scheduleConversation(scheduleCreateRequest, options) {
|
|
3932
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).scheduleConversation(scheduleCreateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3933
|
+
}
|
|
3934
|
+
/**
|
|
3935
|
+
*
|
|
3936
|
+
* @summary Deletes a schedule
|
|
3937
|
+
* @param {string} id id of entity to query
|
|
3938
|
+
* @param {*} [options] Override http request option.
|
|
3939
|
+
* @throws {RequiredError}
|
|
3940
|
+
* @memberof PocketScoutApi
|
|
3941
|
+
*/
|
|
3942
|
+
scheduleDelete(id, options) {
|
|
3943
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).scheduleDelete(id, options).then((request) => request(this.axios, this.basePath));
|
|
3944
|
+
}
|
|
3945
|
+
/**
|
|
3946
|
+
*
|
|
3947
|
+
* @summary Creates a new schedule group
|
|
3948
|
+
* @param {ScheduleGroupCreateRequest} scheduleGroupCreateRequest
|
|
3949
|
+
* @param {*} [options] Override http request option.
|
|
3950
|
+
* @throws {RequiredError}
|
|
3951
|
+
* @memberof PocketScoutApi
|
|
3952
|
+
*/
|
|
3953
|
+
scheduleGroupCreate(scheduleGroupCreateRequest, options) {
|
|
3954
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).scheduleGroupCreate(scheduleGroupCreateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3955
|
+
}
|
|
3956
|
+
/**
|
|
3957
|
+
*
|
|
3958
|
+
* @summary Deletes and cancels a schedule group
|
|
3959
|
+
* @param {string} id id of entity to query
|
|
3960
|
+
* @param {*} [options] Override http request option.
|
|
3961
|
+
* @throws {RequiredError}
|
|
3962
|
+
* @memberof PocketScoutApi
|
|
3963
|
+
*/
|
|
3964
|
+
scheduleGroupDelete(id, options) {
|
|
3965
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).scheduleGroupDelete(id, options).then((request) => request(this.axios, this.basePath));
|
|
3966
|
+
}
|
|
3967
|
+
/**
|
|
3968
|
+
*
|
|
3969
|
+
* @summary Gets a schedule group
|
|
3970
|
+
* @param {string} id id of entity to query
|
|
3971
|
+
* @param {*} [options] Override http request option.
|
|
3972
|
+
* @throws {RequiredError}
|
|
3973
|
+
* @memberof PocketScoutApi
|
|
3974
|
+
*/
|
|
3975
|
+
scheduleGroupRetrieve(id, options) {
|
|
3976
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).scheduleGroupRetrieve(id, options).then((request) => request(this.axios, this.basePath));
|
|
3977
|
+
}
|
|
3978
|
+
/**
|
|
3979
|
+
*
|
|
3980
|
+
* @summary Updates a schedule group
|
|
3981
|
+
* @param {ScheduleGroupUpdateRequest} scheduleGroupUpdateRequest
|
|
3982
|
+
* @param {*} [options] Override http request option.
|
|
3983
|
+
* @throws {RequiredError}
|
|
3984
|
+
* @memberof PocketScoutApi
|
|
3985
|
+
*/
|
|
3986
|
+
scheduleGroupUpdate(scheduleGroupUpdateRequest, options) {
|
|
3987
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).scheduleGroupUpdate(scheduleGroupUpdateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3988
|
+
}
|
|
3989
|
+
/**
|
|
3990
|
+
*
|
|
3991
|
+
* @summary Gets a schedule
|
|
3992
|
+
* @param {string} id id of entity to query
|
|
3993
|
+
* @param {*} [options] Override http request option.
|
|
3994
|
+
* @throws {RequiredError}
|
|
3995
|
+
* @memberof PocketScoutApi
|
|
3996
|
+
*/
|
|
3997
|
+
scheduleRetrieve(id, options) {
|
|
3998
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).scheduleRetrieve(id, options).then((request) => request(this.axios, this.basePath));
|
|
3999
|
+
}
|
|
4000
|
+
/**
|
|
4001
|
+
*
|
|
4002
|
+
* @summary Updates a schedule
|
|
4003
|
+
* @param {ScheduleUpdateRequest} scheduleUpdateRequest
|
|
4004
|
+
* @param {*} [options] Override http request option.
|
|
4005
|
+
* @throws {RequiredError}
|
|
4006
|
+
* @memberof PocketScoutApi
|
|
4007
|
+
*/
|
|
4008
|
+
scheduleUpdate(scheduleUpdateRequest, options) {
|
|
4009
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).scheduleUpdate(scheduleUpdateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
4010
|
+
}
|
|
4011
|
+
/**
|
|
4012
|
+
*
|
|
4013
|
+
* @summary Gets a workflow
|
|
4014
|
+
* @param {string} id id of entity to query
|
|
4015
|
+
* @param {*} [options] Override http request option.
|
|
4016
|
+
* @throws {RequiredError}
|
|
4017
|
+
* @memberof PocketScoutApi
|
|
4018
|
+
*/
|
|
4019
|
+
workflow(id, options) {
|
|
4020
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).workflow(id, options).then((request) => request(this.axios, this.basePath));
|
|
4021
|
+
}
|
|
4022
|
+
/**
|
|
4023
|
+
*
|
|
4024
|
+
* @summary Create a new workflow
|
|
4025
|
+
* @param {CreateWorkflowRequest} createWorkflowRequest
|
|
4026
|
+
* @param {*} [options] Override http request option.
|
|
4027
|
+
* @throws {RequiredError}
|
|
4028
|
+
* @memberof PocketScoutApi
|
|
4029
|
+
*/
|
|
4030
|
+
workflowCreate(createWorkflowRequest, options) {
|
|
4031
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).workflowCreate(createWorkflowRequest, options).then((request) => request(this.axios, this.basePath));
|
|
4032
|
+
}
|
|
4033
|
+
/**
|
|
4034
|
+
*
|
|
4035
|
+
* @summary Deletes a workflow
|
|
4036
|
+
* @param {string} id id of entity to query
|
|
4037
|
+
* @param {*} [options] Override http request option.
|
|
4038
|
+
* @throws {RequiredError}
|
|
4039
|
+
* @memberof PocketScoutApi
|
|
4040
|
+
*/
|
|
4041
|
+
workflowDelete(id, options) {
|
|
4042
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).workflowDelete(id, options).then((request) => request(this.axios, this.basePath));
|
|
4043
|
+
}
|
|
4044
|
+
/**
|
|
4045
|
+
*
|
|
4046
|
+
* @summary Update a workflow
|
|
4047
|
+
* @param {UpdateWorkflowRequest} updateWorkflowRequest
|
|
4048
|
+
* @param {*} [options] Override http request option.
|
|
4049
|
+
* @throws {RequiredError}
|
|
4050
|
+
* @memberof PocketScoutApi
|
|
4051
|
+
*/
|
|
4052
|
+
workflowUpdate(updateWorkflowRequest, options) {
|
|
4053
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).workflowUpdate(updateWorkflowRequest, options).then((request) => request(this.axios, this.basePath));
|
|
4054
|
+
}
|
|
4055
|
+
/**
|
|
4056
|
+
*
|
|
4057
|
+
* @summary Gets all or specific set of workflows
|
|
4058
|
+
* @param {string} [q] Query search string to filter results ({field},{operator},{value}) (example firstName,equals,Patrick)
|
|
4059
|
+
* @param {Array<string>} [id] ids for the entities this id belongs to
|
|
4060
|
+
* @param {*} [options] Override http request option.
|
|
4061
|
+
* @throws {RequiredError}
|
|
4062
|
+
* @memberof PocketScoutApi
|
|
4063
|
+
*/
|
|
4064
|
+
workflows(q, id, options) {
|
|
4065
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).workflows(q, id, options).then((request) => request(this.axios, this.basePath));
|
|
4066
|
+
}
|
|
4067
|
+
/**
|
|
4068
|
+
*
|
|
4069
|
+
* @summary Creates new workflows
|
|
4070
|
+
* @param {CreateWorkflowsRequest} createWorkflowsRequest
|
|
4071
|
+
* @param {*} [options] Override http request option.
|
|
4072
|
+
* @throws {RequiredError}
|
|
4073
|
+
* @memberof PocketScoutApi
|
|
4074
|
+
*/
|
|
4075
|
+
workflowsCreate(createWorkflowsRequest, options) {
|
|
4076
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).workflowsCreate(createWorkflowsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
4077
|
+
}
|
|
4078
|
+
/**
|
|
4079
|
+
*
|
|
4080
|
+
* @summary Deletes multiple workflows
|
|
4081
|
+
* @param {Array<string>} [id] ids for the entities this id belongs to
|
|
4082
|
+
* @param {*} [options] Override http request option.
|
|
4083
|
+
* @throws {RequiredError}
|
|
4084
|
+
* @memberof PocketScoutApi
|
|
4085
|
+
*/
|
|
4086
|
+
workflowsDelete(id, options) {
|
|
4087
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).workflowsDelete(id, options).then((request) => request(this.axios, this.basePath));
|
|
4088
|
+
}
|
|
4089
|
+
/**
|
|
4090
|
+
*
|
|
4091
|
+
* @summary Updates multiple workflows
|
|
4092
|
+
* @param {UpdateWorkflowRequest} updateWorkflowRequest
|
|
4093
|
+
* @param {*} [options] Override http request option.
|
|
4094
|
+
* @throws {RequiredError}
|
|
4095
|
+
* @memberof PocketScoutApi
|
|
4096
|
+
*/
|
|
4097
|
+
workflowsUpdate(updateWorkflowRequest, options) {
|
|
4098
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).workflowsUpdate(updateWorkflowRequest, options).then((request) => request(this.axios, this.basePath));
|
|
4099
|
+
}
|
|
4100
|
+
}
|
|
4101
|
+
exports.PocketScoutApi = PocketScoutApi;
|