@scout9/admin 1.0.6 → 1.0.7
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/build/api.d.ts +2418 -1226
- package/build/api.js +1143 -913
- package/build/configuration.d.ts +8 -0
- package/build/configuration.js +23 -0
- package/package.json +1 -1
- package/src/api.ts +7459 -6131
- package/src/configuration.ts +26 -1
- package/tsconfig.tsbuildinfo +1 -1
package/build/api.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
/* tslint:disable */
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
/**
|
|
5
|
-
* Scout9 API
|
|
6
|
-
* APIs for managing Scout9 users and conversations
|
|
5
|
+
* Scout9 Pocket Scout API
|
|
6
|
+
* Pocket Scout APIs for managing Scout9 users and conversations with your Pocket Scout agents
|
|
7
7
|
*
|
|
8
8
|
* The version of the OpenAPI document: 1.0.0
|
|
9
9
|
*
|
|
@@ -16,19 +16,124 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
16
16
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
17
17
|
};
|
|
18
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.Scout9Api = exports.Scout9ApiFactory = exports.Scout9ApiFp = exports.Scout9ApiAxiosParamCreator = void 0;
|
|
19
|
+
exports.Scout9Api = exports.Scout9ApiFactory = exports.Scout9ApiFp = exports.Scout9ApiAxiosParamCreator = exports.Operator = exports.MessageGetResponseInnerRoleEnum = exports.MessageCreateRequestRoleEnum = exports.MessageRoleEnum = exports.ListApiOperationsResponseInnerMethodEnum = exports.GetApiOperationResponseMethodEnum = exports.GenerateResponseRoleEnum = exports.ConversationEnvironment = exports.ApiOperationMethodEnum = void 0;
|
|
20
20
|
const axios_1 = __importDefault(require("axios"));
|
|
21
21
|
// Some imports not used depending on template conditions
|
|
22
22
|
// @ts-ignore
|
|
23
23
|
const common_1 = require("./common");
|
|
24
24
|
// @ts-ignore
|
|
25
25
|
const base_1 = require("./base");
|
|
26
|
+
exports.ApiOperationMethodEnum = {
|
|
27
|
+
Get: 'get',
|
|
28
|
+
Post: 'post',
|
|
29
|
+
Put: 'put',
|
|
30
|
+
Delete: 'delete',
|
|
31
|
+
Patch: 'patch'
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* Environment this conversation is in (phone, web, or email) - this determines which device to send messages to
|
|
35
|
+
* @export
|
|
36
|
+
* @enum {string}
|
|
37
|
+
*/
|
|
38
|
+
exports.ConversationEnvironment = {
|
|
39
|
+
Phone: 'phone',
|
|
40
|
+
Web: 'web',
|
|
41
|
+
Email: 'email'
|
|
42
|
+
};
|
|
43
|
+
exports.GenerateResponseRoleEnum = {
|
|
44
|
+
User: 'user',
|
|
45
|
+
Assistant: 'assistant',
|
|
46
|
+
System: 'system'
|
|
47
|
+
};
|
|
48
|
+
exports.GetApiOperationResponseMethodEnum = {
|
|
49
|
+
Get: 'get',
|
|
50
|
+
Post: 'post',
|
|
51
|
+
Put: 'put',
|
|
52
|
+
Delete: 'delete',
|
|
53
|
+
Patch: 'patch'
|
|
54
|
+
};
|
|
55
|
+
exports.ListApiOperationsResponseInnerMethodEnum = {
|
|
56
|
+
Get: 'get',
|
|
57
|
+
Post: 'post',
|
|
58
|
+
Put: 'put',
|
|
59
|
+
Delete: 'delete',
|
|
60
|
+
Patch: 'patch'
|
|
61
|
+
};
|
|
62
|
+
exports.MessageRoleEnum = {
|
|
63
|
+
User: 'user',
|
|
64
|
+
Assistant: 'assistant',
|
|
65
|
+
System: 'system'
|
|
66
|
+
};
|
|
67
|
+
exports.MessageCreateRequestRoleEnum = {
|
|
68
|
+
Agent: 'agent',
|
|
69
|
+
Customer: 'customer',
|
|
70
|
+
Context: 'context'
|
|
71
|
+
};
|
|
72
|
+
exports.MessageGetResponseInnerRoleEnum = {
|
|
73
|
+
User: 'user',
|
|
74
|
+
Assistant: 'assistant',
|
|
75
|
+
System: 'system'
|
|
76
|
+
};
|
|
77
|
+
/**
|
|
78
|
+
* The operator of the condition or query
|
|
79
|
+
* @export
|
|
80
|
+
* @enum {string}
|
|
81
|
+
*/
|
|
82
|
+
exports.Operator = {
|
|
83
|
+
Eq: 'eq',
|
|
84
|
+
Equal: 'equal',
|
|
85
|
+
Ne: 'ne',
|
|
86
|
+
NotEquals: 'not-equals',
|
|
87
|
+
Gt: 'gt',
|
|
88
|
+
GreaterThan: 'greater-than',
|
|
89
|
+
Gte: 'gte',
|
|
90
|
+
GreaterThanEquals: 'greater-than-equals',
|
|
91
|
+
Lt: 'lt',
|
|
92
|
+
LessThan: 'less-than',
|
|
93
|
+
Lte: 'lte',
|
|
94
|
+
LessThanEquals: 'less-than-equals',
|
|
95
|
+
ArrayContains: 'array-contains',
|
|
96
|
+
In: 'in',
|
|
97
|
+
ArrayContainsAny: 'array-contains-any',
|
|
98
|
+
NotIn: 'not-in'
|
|
99
|
+
};
|
|
26
100
|
/**
|
|
27
101
|
* Scout9Api - axios parameter creator
|
|
28
102
|
* @export
|
|
29
103
|
*/
|
|
30
104
|
const Scout9ApiAxiosParamCreator = function (configuration) {
|
|
31
105
|
return {
|
|
106
|
+
/**
|
|
107
|
+
*
|
|
108
|
+
* @summary Gets a agent
|
|
109
|
+
* @param {string} id
|
|
110
|
+
* @param {*} [options] Override http request option.
|
|
111
|
+
* @throws {RequiredError}
|
|
112
|
+
*/
|
|
113
|
+
agent: async (id, options = {}) => {
|
|
114
|
+
// verify required parameter 'id' is not null or undefined
|
|
115
|
+
(0, common_1.assertParamExists)('agent', 'id', id);
|
|
116
|
+
const localVarPath = `/v1-agent`;
|
|
117
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
118
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
119
|
+
let baseOptions;
|
|
120
|
+
if (configuration) {
|
|
121
|
+
baseOptions = configuration.baseOptions;
|
|
122
|
+
}
|
|
123
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
124
|
+
const localVarHeaderParameter = {};
|
|
125
|
+
const localVarQueryParameter = {};
|
|
126
|
+
if (id !== undefined) {
|
|
127
|
+
localVarQueryParameter['id'] = id;
|
|
128
|
+
}
|
|
129
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
130
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
131
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
132
|
+
return {
|
|
133
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
134
|
+
options: localVarRequestOptions,
|
|
135
|
+
};
|
|
136
|
+
},
|
|
32
137
|
/**
|
|
33
138
|
*
|
|
34
139
|
* @summary Create a new agent
|
|
@@ -36,9 +141,9 @@ const Scout9ApiAxiosParamCreator = function (configuration) {
|
|
|
36
141
|
* @param {*} [options] Override http request option.
|
|
37
142
|
* @throws {RequiredError}
|
|
38
143
|
*/
|
|
39
|
-
|
|
144
|
+
agentCreate: async (createAgentRequest, options = {}) => {
|
|
40
145
|
// verify required parameter 'createAgentRequest' is not null or undefined
|
|
41
|
-
(0, common_1.assertParamExists)('
|
|
146
|
+
(0, common_1.assertParamExists)('agentCreate', 'createAgentRequest', createAgentRequest);
|
|
42
147
|
const localVarPath = `/v1-agent`;
|
|
43
148
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
44
149
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -61,29 +166,30 @@ const Scout9ApiAxiosParamCreator = function (configuration) {
|
|
|
61
166
|
},
|
|
62
167
|
/**
|
|
63
168
|
*
|
|
64
|
-
* @summary
|
|
65
|
-
* @param {
|
|
169
|
+
* @summary Deletes a agent
|
|
170
|
+
* @param {string} id
|
|
66
171
|
* @param {*} [options] Override http request option.
|
|
67
172
|
* @throws {RequiredError}
|
|
68
173
|
*/
|
|
69
|
-
|
|
70
|
-
// verify required parameter '
|
|
71
|
-
(0, common_1.assertParamExists)('
|
|
72
|
-
const localVarPath = `/v1-
|
|
174
|
+
agentDelete: async (id, options = {}) => {
|
|
175
|
+
// verify required parameter 'id' is not null or undefined
|
|
176
|
+
(0, common_1.assertParamExists)('agentDelete', 'id', id);
|
|
177
|
+
const localVarPath = `/v1-agent`;
|
|
73
178
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
74
179
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
75
180
|
let baseOptions;
|
|
76
181
|
if (configuration) {
|
|
77
182
|
baseOptions = configuration.baseOptions;
|
|
78
183
|
}
|
|
79
|
-
const localVarRequestOptions = { method: '
|
|
184
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
80
185
|
const localVarHeaderParameter = {};
|
|
81
186
|
const localVarQueryParameter = {};
|
|
82
|
-
|
|
187
|
+
if (id !== undefined) {
|
|
188
|
+
localVarQueryParameter['id'] = id;
|
|
189
|
+
}
|
|
83
190
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
84
191
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
85
192
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
86
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createAgentsRequest, localVarRequestOptions, configuration);
|
|
87
193
|
return {
|
|
88
194
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
89
195
|
options: localVarRequestOptions,
|
|
@@ -91,29 +197,29 @@ const Scout9ApiAxiosParamCreator = function (configuration) {
|
|
|
91
197
|
},
|
|
92
198
|
/**
|
|
93
199
|
*
|
|
94
|
-
* @summary
|
|
95
|
-
* @param {
|
|
200
|
+
* @summary Update a agent
|
|
201
|
+
* @param {UpdateAgentRequest} updateAgentRequest
|
|
96
202
|
* @param {*} [options] Override http request option.
|
|
97
203
|
* @throws {RequiredError}
|
|
98
204
|
*/
|
|
99
|
-
|
|
100
|
-
// verify required parameter '
|
|
101
|
-
(0, common_1.assertParamExists)('
|
|
102
|
-
const localVarPath = `/v1-
|
|
205
|
+
agentUpdate: async (updateAgentRequest, options = {}) => {
|
|
206
|
+
// verify required parameter 'updateAgentRequest' is not null or undefined
|
|
207
|
+
(0, common_1.assertParamExists)('agentUpdate', 'updateAgentRequest', updateAgentRequest);
|
|
208
|
+
const localVarPath = `/v1-agent`;
|
|
103
209
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
104
210
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
105
211
|
let baseOptions;
|
|
106
212
|
if (configuration) {
|
|
107
213
|
baseOptions = configuration.baseOptions;
|
|
108
214
|
}
|
|
109
|
-
const localVarRequestOptions = { method: '
|
|
215
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
|
|
110
216
|
const localVarHeaderParameter = {};
|
|
111
217
|
const localVarQueryParameter = {};
|
|
112
218
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
113
219
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
114
220
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
115
221
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
116
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
222
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateAgentRequest, localVarRequestOptions, configuration);
|
|
117
223
|
return {
|
|
118
224
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
119
225
|
options: localVarRequestOptions,
|
|
@@ -121,29 +227,32 @@ const Scout9ApiAxiosParamCreator = function (configuration) {
|
|
|
121
227
|
},
|
|
122
228
|
/**
|
|
123
229
|
*
|
|
124
|
-
* @summary
|
|
125
|
-
* @param {
|
|
230
|
+
* @summary Gets all or specific set of agents
|
|
231
|
+
* @param {string} [q] Query search string to filter results ({field},{operator},{value}) (example firstName,equals,Patrick)
|
|
232
|
+
* @param {Array<string>} [id]
|
|
126
233
|
* @param {*} [options] Override http request option.
|
|
127
234
|
* @throws {RequiredError}
|
|
128
235
|
*/
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
(0, common_1.assertParamExists)('createContexts', 'createContextsRequest', createContextsRequest);
|
|
132
|
-
const localVarPath = `/v1-contexts`;
|
|
236
|
+
agents: async (q, id, options = {}) => {
|
|
237
|
+
const localVarPath = `/v1-agents`;
|
|
133
238
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
134
239
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
135
240
|
let baseOptions;
|
|
136
241
|
if (configuration) {
|
|
137
242
|
baseOptions = configuration.baseOptions;
|
|
138
243
|
}
|
|
139
|
-
const localVarRequestOptions = { method: '
|
|
244
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
140
245
|
const localVarHeaderParameter = {};
|
|
141
246
|
const localVarQueryParameter = {};
|
|
142
|
-
|
|
247
|
+
if (q !== undefined) {
|
|
248
|
+
localVarQueryParameter['q'] = q;
|
|
249
|
+
}
|
|
250
|
+
if (id) {
|
|
251
|
+
localVarQueryParameter['id'] = id;
|
|
252
|
+
}
|
|
143
253
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
144
254
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
145
255
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
146
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createContextsRequest, localVarRequestOptions, configuration);
|
|
147
256
|
return {
|
|
148
257
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
149
258
|
options: localVarRequestOptions,
|
|
@@ -151,15 +260,15 @@ const Scout9ApiAxiosParamCreator = function (configuration) {
|
|
|
151
260
|
},
|
|
152
261
|
/**
|
|
153
262
|
*
|
|
154
|
-
* @summary
|
|
155
|
-
* @param {
|
|
263
|
+
* @summary Creates new agents
|
|
264
|
+
* @param {CreateAgentsRequest} createAgentsRequest
|
|
156
265
|
* @param {*} [options] Override http request option.
|
|
157
266
|
* @throws {RequiredError}
|
|
158
267
|
*/
|
|
159
|
-
|
|
160
|
-
// verify required parameter '
|
|
161
|
-
(0, common_1.assertParamExists)('
|
|
162
|
-
const localVarPath = `/v1-
|
|
268
|
+
agentsCreate: async (createAgentsRequest, options = {}) => {
|
|
269
|
+
// verify required parameter 'createAgentsRequest' is not null or undefined
|
|
270
|
+
(0, common_1.assertParamExists)('agentsCreate', 'createAgentsRequest', createAgentsRequest);
|
|
271
|
+
const localVarPath = `/v1-agents`;
|
|
163
272
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
164
273
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
165
274
|
let baseOptions;
|
|
@@ -173,7 +282,7 @@ const Scout9ApiAxiosParamCreator = function (configuration) {
|
|
|
173
282
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
174
283
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
175
284
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
176
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
285
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createAgentsRequest, localVarRequestOptions, configuration);
|
|
177
286
|
return {
|
|
178
287
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
179
288
|
options: localVarRequestOptions,
|
|
@@ -181,29 +290,28 @@ const Scout9ApiAxiosParamCreator = function (configuration) {
|
|
|
181
290
|
},
|
|
182
291
|
/**
|
|
183
292
|
*
|
|
184
|
-
* @summary
|
|
185
|
-
* @param {
|
|
293
|
+
* @summary Deletes multiple agents
|
|
294
|
+
* @param {Array<string>} [id]
|
|
186
295
|
* @param {*} [options] Override http request option.
|
|
187
296
|
* @throws {RequiredError}
|
|
188
297
|
*/
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
(0, common_1.assertParamExists)('createCustomer', 'createCustomerRequest', createCustomerRequest);
|
|
192
|
-
const localVarPath = `/v1-customer`;
|
|
298
|
+
agentsDelete: async (id, options = {}) => {
|
|
299
|
+
const localVarPath = `/v1-agents`;
|
|
193
300
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
194
301
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
195
302
|
let baseOptions;
|
|
196
303
|
if (configuration) {
|
|
197
304
|
baseOptions = configuration.baseOptions;
|
|
198
305
|
}
|
|
199
|
-
const localVarRequestOptions = { method: '
|
|
306
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
200
307
|
const localVarHeaderParameter = {};
|
|
201
308
|
const localVarQueryParameter = {};
|
|
202
|
-
|
|
309
|
+
if (id) {
|
|
310
|
+
localVarQueryParameter['id'] = id;
|
|
311
|
+
}
|
|
203
312
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
204
313
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
205
314
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
206
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createCustomerRequest, localVarRequestOptions, configuration);
|
|
207
315
|
return {
|
|
208
316
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
209
317
|
options: localVarRequestOptions,
|
|
@@ -211,29 +319,29 @@ const Scout9ApiAxiosParamCreator = function (configuration) {
|
|
|
211
319
|
},
|
|
212
320
|
/**
|
|
213
321
|
*
|
|
214
|
-
* @summary
|
|
215
|
-
* @param {
|
|
322
|
+
* @summary Updates multiple agents
|
|
323
|
+
* @param {UpdateAgentsRequest} updateAgentsRequest
|
|
216
324
|
* @param {*} [options] Override http request option.
|
|
217
325
|
* @throws {RequiredError}
|
|
218
326
|
*/
|
|
219
|
-
|
|
220
|
-
// verify required parameter '
|
|
221
|
-
(0, common_1.assertParamExists)('
|
|
222
|
-
const localVarPath = `/v1-
|
|
327
|
+
agentsUpdate: async (updateAgentsRequest, options = {}) => {
|
|
328
|
+
// verify required parameter 'updateAgentsRequest' is not null or undefined
|
|
329
|
+
(0, common_1.assertParamExists)('agentsUpdate', 'updateAgentsRequest', updateAgentsRequest);
|
|
330
|
+
const localVarPath = `/v1-agents`;
|
|
223
331
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
224
332
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
225
333
|
let baseOptions;
|
|
226
334
|
if (configuration) {
|
|
227
335
|
baseOptions = configuration.baseOptions;
|
|
228
336
|
}
|
|
229
|
-
const localVarRequestOptions = { method: '
|
|
337
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
|
|
230
338
|
const localVarHeaderParameter = {};
|
|
231
339
|
const localVarQueryParameter = {};
|
|
232
340
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
233
341
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
234
342
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
235
343
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
236
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
344
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateAgentsRequest, localVarRequestOptions, configuration);
|
|
237
345
|
return {
|
|
238
346
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
239
347
|
options: localVarRequestOptions,
|
|
@@ -241,29 +349,30 @@ const Scout9ApiAxiosParamCreator = function (configuration) {
|
|
|
241
349
|
},
|
|
242
350
|
/**
|
|
243
351
|
*
|
|
244
|
-
* @summary
|
|
245
|
-
* @param {
|
|
352
|
+
* @summary Gets a context
|
|
353
|
+
* @param {string} id
|
|
246
354
|
* @param {*} [options] Override http request option.
|
|
247
355
|
* @throws {RequiredError}
|
|
248
356
|
*/
|
|
249
|
-
|
|
250
|
-
// verify required parameter '
|
|
251
|
-
(0, common_1.assertParamExists)('
|
|
252
|
-
const localVarPath = `/v1-
|
|
357
|
+
context: async (id, options = {}) => {
|
|
358
|
+
// verify required parameter 'id' is not null or undefined
|
|
359
|
+
(0, common_1.assertParamExists)('context', 'id', id);
|
|
360
|
+
const localVarPath = `/v1-context`;
|
|
253
361
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
254
362
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
255
363
|
let baseOptions;
|
|
256
364
|
if (configuration) {
|
|
257
365
|
baseOptions = configuration.baseOptions;
|
|
258
366
|
}
|
|
259
|
-
const localVarRequestOptions = { method: '
|
|
367
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
260
368
|
const localVarHeaderParameter = {};
|
|
261
369
|
const localVarQueryParameter = {};
|
|
262
|
-
|
|
370
|
+
if (id !== undefined) {
|
|
371
|
+
localVarQueryParameter['id'] = id;
|
|
372
|
+
}
|
|
263
373
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
264
374
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
265
375
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
266
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(messageCreateRequest, localVarRequestOptions, configuration);
|
|
267
376
|
return {
|
|
268
377
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
269
378
|
options: localVarRequestOptions,
|
|
@@ -271,15 +380,15 @@ const Scout9ApiAxiosParamCreator = function (configuration) {
|
|
|
271
380
|
},
|
|
272
381
|
/**
|
|
273
382
|
*
|
|
274
|
-
* @summary
|
|
275
|
-
* @param {
|
|
383
|
+
* @summary Create a new context
|
|
384
|
+
* @param {CreateContextRequest} createContextRequest
|
|
276
385
|
* @param {*} [options] Override http request option.
|
|
277
386
|
* @throws {RequiredError}
|
|
278
387
|
*/
|
|
279
|
-
|
|
280
|
-
// verify required parameter '
|
|
281
|
-
(0, common_1.assertParamExists)('
|
|
282
|
-
const localVarPath = `/v1-
|
|
388
|
+
contextCreate: async (createContextRequest, options = {}) => {
|
|
389
|
+
// verify required parameter 'createContextRequest' is not null or undefined
|
|
390
|
+
(0, common_1.assertParamExists)('contextCreate', 'createContextRequest', createContextRequest);
|
|
391
|
+
const localVarPath = `/v1-context`;
|
|
283
392
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
284
393
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
285
394
|
let baseOptions;
|
|
@@ -293,7 +402,7 @@ const Scout9ApiAxiosParamCreator = function (configuration) {
|
|
|
293
402
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
294
403
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
295
404
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
296
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
405
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createContextRequest, localVarRequestOptions, configuration);
|
|
297
406
|
return {
|
|
298
407
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
299
408
|
options: localVarRequestOptions,
|
|
@@ -301,29 +410,30 @@ const Scout9ApiAxiosParamCreator = function (configuration) {
|
|
|
301
410
|
},
|
|
302
411
|
/**
|
|
303
412
|
*
|
|
304
|
-
* @summary
|
|
305
|
-
* @param {
|
|
413
|
+
* @summary Deletes a schedule
|
|
414
|
+
* @param {string} id
|
|
306
415
|
* @param {*} [options] Override http request option.
|
|
307
416
|
* @throws {RequiredError}
|
|
308
417
|
*/
|
|
309
|
-
|
|
310
|
-
// verify required parameter '
|
|
311
|
-
(0, common_1.assertParamExists)('
|
|
312
|
-
const localVarPath = `/v1-
|
|
418
|
+
contextDelete: async (id, options = {}) => {
|
|
419
|
+
// verify required parameter 'id' is not null or undefined
|
|
420
|
+
(0, common_1.assertParamExists)('contextDelete', 'id', id);
|
|
421
|
+
const localVarPath = `/v1-context`;
|
|
313
422
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
314
423
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
315
424
|
let baseOptions;
|
|
316
425
|
if (configuration) {
|
|
317
426
|
baseOptions = configuration.baseOptions;
|
|
318
427
|
}
|
|
319
|
-
const localVarRequestOptions = { method: '
|
|
428
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
320
429
|
const localVarHeaderParameter = {};
|
|
321
430
|
const localVarQueryParameter = {};
|
|
322
|
-
|
|
431
|
+
if (id !== undefined) {
|
|
432
|
+
localVarQueryParameter['id'] = id;
|
|
433
|
+
}
|
|
323
434
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
324
435
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
325
436
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
326
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(scheduleGroupCreateRequest, localVarRequestOptions, configuration);
|
|
327
437
|
return {
|
|
328
438
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
329
439
|
options: localVarRequestOptions,
|
|
@@ -331,29 +441,29 @@ const Scout9ApiAxiosParamCreator = function (configuration) {
|
|
|
331
441
|
},
|
|
332
442
|
/**
|
|
333
443
|
*
|
|
334
|
-
* @summary
|
|
335
|
-
* @param {
|
|
444
|
+
* @summary Update a context
|
|
445
|
+
* @param {UpdateContextRequest} updateContextRequest
|
|
336
446
|
* @param {*} [options] Override http request option.
|
|
337
447
|
* @throws {RequiredError}
|
|
338
448
|
*/
|
|
339
|
-
|
|
340
|
-
// verify required parameter '
|
|
341
|
-
(0, common_1.assertParamExists)('
|
|
342
|
-
const localVarPath = `/v1-
|
|
449
|
+
contextUpdate: async (updateContextRequest, options = {}) => {
|
|
450
|
+
// verify required parameter 'updateContextRequest' is not null or undefined
|
|
451
|
+
(0, common_1.assertParamExists)('contextUpdate', 'updateContextRequest', updateContextRequest);
|
|
452
|
+
const localVarPath = `/v1-context`;
|
|
343
453
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
344
454
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
345
455
|
let baseOptions;
|
|
346
456
|
if (configuration) {
|
|
347
457
|
baseOptions = configuration.baseOptions;
|
|
348
458
|
}
|
|
349
|
-
const localVarRequestOptions = { method: '
|
|
459
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
|
|
350
460
|
const localVarHeaderParameter = {};
|
|
351
461
|
const localVarQueryParameter = {};
|
|
352
462
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
353
463
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
354
464
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
355
465
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
356
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
466
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateContextRequest, localVarRequestOptions, configuration);
|
|
357
467
|
return {
|
|
358
468
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
359
469
|
options: localVarRequestOptions,
|
|
@@ -361,15 +471,48 @@ const Scout9ApiAxiosParamCreator = function (configuration) {
|
|
|
361
471
|
},
|
|
362
472
|
/**
|
|
363
473
|
*
|
|
364
|
-
* @summary
|
|
365
|
-
* @param {
|
|
474
|
+
* @summary Gets all or specific set of contexts
|
|
475
|
+
* @param {string} [q] Query search string to filter results ({field},{operator},{value}) (example firstName,equals,Patrick)
|
|
476
|
+
* @param {Array<string>} [id]
|
|
366
477
|
* @param {*} [options] Override http request option.
|
|
367
478
|
* @throws {RequiredError}
|
|
368
479
|
*/
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
const
|
|
480
|
+
contexts: async (q, id, options = {}) => {
|
|
481
|
+
const localVarPath = `/v1-contexts`;
|
|
482
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
483
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
484
|
+
let baseOptions;
|
|
485
|
+
if (configuration) {
|
|
486
|
+
baseOptions = configuration.baseOptions;
|
|
487
|
+
}
|
|
488
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
489
|
+
const localVarHeaderParameter = {};
|
|
490
|
+
const localVarQueryParameter = {};
|
|
491
|
+
if (q !== undefined) {
|
|
492
|
+
localVarQueryParameter['q'] = q;
|
|
493
|
+
}
|
|
494
|
+
if (id) {
|
|
495
|
+
localVarQueryParameter['id'] = id;
|
|
496
|
+
}
|
|
497
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
498
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
499
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
500
|
+
return {
|
|
501
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
502
|
+
options: localVarRequestOptions,
|
|
503
|
+
};
|
|
504
|
+
},
|
|
505
|
+
/**
|
|
506
|
+
*
|
|
507
|
+
* @summary Creates new contexts
|
|
508
|
+
* @param {CreateContextsRequest} createContextsRequest
|
|
509
|
+
* @param {*} [options] Override http request option.
|
|
510
|
+
* @throws {RequiredError}
|
|
511
|
+
*/
|
|
512
|
+
contextsCreate: async (createContextsRequest, options = {}) => {
|
|
513
|
+
// verify required parameter 'createContextsRequest' is not null or undefined
|
|
514
|
+
(0, common_1.assertParamExists)('contextsCreate', 'createContextsRequest', createContextsRequest);
|
|
515
|
+
const localVarPath = `/v1-contexts`;
|
|
373
516
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
374
517
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
375
518
|
let baseOptions;
|
|
@@ -383,7 +526,7 @@ const Scout9ApiAxiosParamCreator = function (configuration) {
|
|
|
383
526
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
384
527
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
385
528
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
386
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
529
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createContextsRequest, localVarRequestOptions, configuration);
|
|
387
530
|
return {
|
|
388
531
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
389
532
|
options: localVarRequestOptions,
|
|
@@ -391,15 +534,13 @@ const Scout9ApiAxiosParamCreator = function (configuration) {
|
|
|
391
534
|
},
|
|
392
535
|
/**
|
|
393
536
|
*
|
|
394
|
-
* @summary Deletes
|
|
395
|
-
* @param {string} id
|
|
537
|
+
* @summary Deletes multiple contexts
|
|
538
|
+
* @param {Array<string>} [id]
|
|
396
539
|
* @param {*} [options] Override http request option.
|
|
397
540
|
* @throws {RequiredError}
|
|
398
541
|
*/
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
(0, common_1.assertParamExists)('deleteAgent', 'id', id);
|
|
402
|
-
const localVarPath = `/v1-agent`;
|
|
542
|
+
contextsDelete: async (id, options = {}) => {
|
|
543
|
+
const localVarPath = `/v1-contexts`;
|
|
403
544
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
404
545
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
405
546
|
let baseOptions;
|
|
@@ -409,7 +550,7 @@ const Scout9ApiAxiosParamCreator = function (configuration) {
|
|
|
409
550
|
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
410
551
|
const localVarHeaderParameter = {};
|
|
411
552
|
const localVarQueryParameter = {};
|
|
412
|
-
if (id
|
|
553
|
+
if (id) {
|
|
413
554
|
localVarQueryParameter['id'] = id;
|
|
414
555
|
}
|
|
415
556
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -422,30 +563,29 @@ const Scout9ApiAxiosParamCreator = function (configuration) {
|
|
|
422
563
|
},
|
|
423
564
|
/**
|
|
424
565
|
*
|
|
425
|
-
* @summary
|
|
426
|
-
* @param {
|
|
566
|
+
* @summary Updates multiple contexts
|
|
567
|
+
* @param {UpdateContextRequest} updateContextRequest
|
|
427
568
|
* @param {*} [options] Override http request option.
|
|
428
569
|
* @throws {RequiredError}
|
|
429
570
|
*/
|
|
430
|
-
|
|
431
|
-
// verify required parameter '
|
|
432
|
-
(0, common_1.assertParamExists)('
|
|
433
|
-
const localVarPath = `/v1-
|
|
571
|
+
contextsUpdate: async (updateContextRequest, options = {}) => {
|
|
572
|
+
// verify required parameter 'updateContextRequest' is not null or undefined
|
|
573
|
+
(0, common_1.assertParamExists)('contextsUpdate', 'updateContextRequest', updateContextRequest);
|
|
574
|
+
const localVarPath = `/v1-contexts`;
|
|
434
575
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
435
576
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
436
577
|
let baseOptions;
|
|
437
578
|
if (configuration) {
|
|
438
579
|
baseOptions = configuration.baseOptions;
|
|
439
580
|
}
|
|
440
|
-
const localVarRequestOptions = { method: '
|
|
581
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
|
|
441
582
|
const localVarHeaderParameter = {};
|
|
442
583
|
const localVarQueryParameter = {};
|
|
443
|
-
|
|
444
|
-
localVarQueryParameter['id'] = id;
|
|
445
|
-
}
|
|
584
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
446
585
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
447
586
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
448
587
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
588
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateContextRequest, localVarRequestOptions, configuration);
|
|
449
589
|
return {
|
|
450
590
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
451
591
|
options: localVarRequestOptions,
|
|
@@ -453,22 +593,22 @@ const Scout9ApiAxiosParamCreator = function (configuration) {
|
|
|
453
593
|
},
|
|
454
594
|
/**
|
|
455
595
|
*
|
|
456
|
-
* @summary
|
|
457
|
-
* @param {string} id
|
|
596
|
+
* @summary Gets a conversation
|
|
597
|
+
* @param {string} id
|
|
458
598
|
* @param {*} [options] Override http request option.
|
|
459
599
|
* @throws {RequiredError}
|
|
460
600
|
*/
|
|
461
|
-
|
|
601
|
+
conversation: async (id, options = {}) => {
|
|
462
602
|
// verify required parameter 'id' is not null or undefined
|
|
463
|
-
(0, common_1.assertParamExists)('
|
|
464
|
-
const localVarPath = `/v1-
|
|
603
|
+
(0, common_1.assertParamExists)('conversation', 'id', id);
|
|
604
|
+
const localVarPath = `/v1-conversation`;
|
|
465
605
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
466
606
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
467
607
|
let baseOptions;
|
|
468
608
|
if (configuration) {
|
|
469
609
|
baseOptions = configuration.baseOptions;
|
|
470
610
|
}
|
|
471
|
-
const localVarRequestOptions = { method: '
|
|
611
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
472
612
|
const localVarHeaderParameter = {};
|
|
473
613
|
const localVarQueryParameter = {};
|
|
474
614
|
if (id !== undefined) {
|
|
@@ -484,30 +624,29 @@ const Scout9ApiAxiosParamCreator = function (configuration) {
|
|
|
484
624
|
},
|
|
485
625
|
/**
|
|
486
626
|
*
|
|
487
|
-
* @summary
|
|
488
|
-
* @param {
|
|
627
|
+
* @summary Create a new conversation
|
|
628
|
+
* @param {ConversationCreateRequest} conversationCreateRequest
|
|
489
629
|
* @param {*} [options] Override http request option.
|
|
490
630
|
* @throws {RequiredError}
|
|
491
631
|
*/
|
|
492
|
-
|
|
493
|
-
// verify required parameter '
|
|
494
|
-
(0, common_1.assertParamExists)('
|
|
495
|
-
const localVarPath = `/v1-
|
|
632
|
+
conversationCreate: async (conversationCreateRequest, options = {}) => {
|
|
633
|
+
// verify required parameter 'conversationCreateRequest' is not null or undefined
|
|
634
|
+
(0, common_1.assertParamExists)('conversationCreate', 'conversationCreateRequest', conversationCreateRequest);
|
|
635
|
+
const localVarPath = `/v1-conversation`;
|
|
496
636
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
497
637
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
498
638
|
let baseOptions;
|
|
499
639
|
if (configuration) {
|
|
500
640
|
baseOptions = configuration.baseOptions;
|
|
501
641
|
}
|
|
502
|
-
const localVarRequestOptions = { method: '
|
|
642
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
503
643
|
const localVarHeaderParameter = {};
|
|
504
644
|
const localVarQueryParameter = {};
|
|
505
|
-
|
|
506
|
-
localVarQueryParameter['id'] = id;
|
|
507
|
-
}
|
|
645
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
508
646
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
509
647
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
510
648
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
649
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(conversationCreateRequest, localVarRequestOptions, configuration);
|
|
511
650
|
return {
|
|
512
651
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
513
652
|
options: localVarRequestOptions,
|
|
@@ -516,13 +655,13 @@ const Scout9ApiAxiosParamCreator = function (configuration) {
|
|
|
516
655
|
/**
|
|
517
656
|
*
|
|
518
657
|
* @summary Deletes a schedule
|
|
519
|
-
* @param {string} id
|
|
658
|
+
* @param {string} id
|
|
520
659
|
* @param {*} [options] Override http request option.
|
|
521
660
|
* @throws {RequiredError}
|
|
522
661
|
*/
|
|
523
|
-
|
|
662
|
+
conversationDelete: async (id, options = {}) => {
|
|
524
663
|
// verify required parameter 'id' is not null or undefined
|
|
525
|
-
(0, common_1.assertParamExists)('
|
|
664
|
+
(0, common_1.assertParamExists)('conversationDelete', 'id', id);
|
|
526
665
|
const localVarPath = `/v1-conversation`;
|
|
527
666
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
528
667
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -546,30 +685,29 @@ const Scout9ApiAxiosParamCreator = function (configuration) {
|
|
|
546
685
|
},
|
|
547
686
|
/**
|
|
548
687
|
*
|
|
549
|
-
* @summary
|
|
550
|
-
* @param {
|
|
688
|
+
* @summary Update a conversation
|
|
689
|
+
* @param {ConversationUpdateRequest} conversationUpdateRequest
|
|
551
690
|
* @param {*} [options] Override http request option.
|
|
552
691
|
* @throws {RequiredError}
|
|
553
692
|
*/
|
|
554
|
-
|
|
555
|
-
// verify required parameter '
|
|
556
|
-
(0, common_1.assertParamExists)('
|
|
557
|
-
const localVarPath = `/v1-
|
|
693
|
+
conversationUpdate: async (conversationUpdateRequest, options = {}) => {
|
|
694
|
+
// verify required parameter 'conversationUpdateRequest' is not null or undefined
|
|
695
|
+
(0, common_1.assertParamExists)('conversationUpdate', 'conversationUpdateRequest', conversationUpdateRequest);
|
|
696
|
+
const localVarPath = `/v1-conversation`;
|
|
558
697
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
559
698
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
560
699
|
let baseOptions;
|
|
561
700
|
if (configuration) {
|
|
562
701
|
baseOptions = configuration.baseOptions;
|
|
563
702
|
}
|
|
564
|
-
const localVarRequestOptions = { method: '
|
|
703
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
|
|
565
704
|
const localVarHeaderParameter = {};
|
|
566
705
|
const localVarQueryParameter = {};
|
|
567
|
-
|
|
568
|
-
localVarQueryParameter['id'] = id;
|
|
569
|
-
}
|
|
706
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
570
707
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
571
708
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
572
709
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
710
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(conversationUpdateRequest, localVarRequestOptions, configuration);
|
|
573
711
|
return {
|
|
574
712
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
575
713
|
options: localVarRequestOptions,
|
|
@@ -577,22 +715,22 @@ const Scout9ApiAxiosParamCreator = function (configuration) {
|
|
|
577
715
|
},
|
|
578
716
|
/**
|
|
579
717
|
*
|
|
580
|
-
* @summary
|
|
581
|
-
* @param {string} id
|
|
718
|
+
* @summary Gets a customer
|
|
719
|
+
* @param {string} id
|
|
582
720
|
* @param {*} [options] Override http request option.
|
|
583
721
|
* @throws {RequiredError}
|
|
584
722
|
*/
|
|
585
|
-
|
|
723
|
+
customer: async (id, options = {}) => {
|
|
586
724
|
// verify required parameter 'id' is not null or undefined
|
|
587
|
-
(0, common_1.assertParamExists)('
|
|
588
|
-
const localVarPath = `/v1-
|
|
725
|
+
(0, common_1.assertParamExists)('customer', 'id', id);
|
|
726
|
+
const localVarPath = `/v1-customer`;
|
|
589
727
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
590
728
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
591
729
|
let baseOptions;
|
|
592
730
|
if (configuration) {
|
|
593
731
|
baseOptions = configuration.baseOptions;
|
|
594
732
|
}
|
|
595
|
-
const localVarRequestOptions = { method: '
|
|
733
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
596
734
|
const localVarHeaderParameter = {};
|
|
597
735
|
const localVarQueryParameter = {};
|
|
598
736
|
if (id !== undefined) {
|
|
@@ -608,30 +746,29 @@ const Scout9ApiAxiosParamCreator = function (configuration) {
|
|
|
608
746
|
},
|
|
609
747
|
/**
|
|
610
748
|
*
|
|
611
|
-
* @summary
|
|
612
|
-
* @param {
|
|
749
|
+
* @summary Creates a new customer
|
|
750
|
+
* @param {CreateCustomerRequest} createCustomerRequest
|
|
613
751
|
* @param {*} [options] Override http request option.
|
|
614
752
|
* @throws {RequiredError}
|
|
615
753
|
*/
|
|
616
|
-
|
|
617
|
-
// verify required parameter '
|
|
618
|
-
(0, common_1.assertParamExists)('
|
|
619
|
-
const localVarPath = `/v1-
|
|
754
|
+
customerCreate: async (createCustomerRequest, options = {}) => {
|
|
755
|
+
// verify required parameter 'createCustomerRequest' is not null or undefined
|
|
756
|
+
(0, common_1.assertParamExists)('customerCreate', 'createCustomerRequest', createCustomerRequest);
|
|
757
|
+
const localVarPath = `/v1-customer`;
|
|
620
758
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
621
759
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
622
760
|
let baseOptions;
|
|
623
761
|
if (configuration) {
|
|
624
762
|
baseOptions = configuration.baseOptions;
|
|
625
763
|
}
|
|
626
|
-
const localVarRequestOptions = { method: '
|
|
764
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
627
765
|
const localVarHeaderParameter = {};
|
|
628
766
|
const localVarQueryParameter = {};
|
|
629
|
-
|
|
630
|
-
localVarQueryParameter['id'] = id;
|
|
631
|
-
}
|
|
767
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
632
768
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
633
769
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
634
770
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
771
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createCustomerRequest, localVarRequestOptions, configuration);
|
|
635
772
|
return {
|
|
636
773
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
637
774
|
options: localVarRequestOptions,
|
|
@@ -639,15 +776,15 @@ const Scout9ApiAxiosParamCreator = function (configuration) {
|
|
|
639
776
|
},
|
|
640
777
|
/**
|
|
641
778
|
*
|
|
642
|
-
* @summary Deletes a
|
|
643
|
-
* @param {string} id
|
|
779
|
+
* @summary Deletes a customer
|
|
780
|
+
* @param {string} id
|
|
644
781
|
* @param {*} [options] Override http request option.
|
|
645
782
|
* @throws {RequiredError}
|
|
646
783
|
*/
|
|
647
|
-
|
|
784
|
+
customerDelete: async (id, options = {}) => {
|
|
648
785
|
// verify required parameter 'id' is not null or undefined
|
|
649
|
-
(0, common_1.assertParamExists)('
|
|
650
|
-
const localVarPath = `/v1-
|
|
786
|
+
(0, common_1.assertParamExists)('customerDelete', 'id', id);
|
|
787
|
+
const localVarPath = `/v1-customer`;
|
|
651
788
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
652
789
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
653
790
|
let baseOptions;
|
|
@@ -670,30 +807,29 @@ const Scout9ApiAxiosParamCreator = function (configuration) {
|
|
|
670
807
|
},
|
|
671
808
|
/**
|
|
672
809
|
*
|
|
673
|
-
* @summary
|
|
674
|
-
* @param {
|
|
810
|
+
* @summary Updates a customer
|
|
811
|
+
* @param {UpdateCustomerRequest} updateCustomerRequest
|
|
675
812
|
* @param {*} [options] Override http request option.
|
|
676
813
|
* @throws {RequiredError}
|
|
677
814
|
*/
|
|
678
|
-
|
|
679
|
-
// verify required parameter '
|
|
680
|
-
(0, common_1.assertParamExists)('
|
|
681
|
-
const localVarPath = `/v1-
|
|
815
|
+
customerUpdate: async (updateCustomerRequest, options = {}) => {
|
|
816
|
+
// verify required parameter 'updateCustomerRequest' is not null or undefined
|
|
817
|
+
(0, common_1.assertParamExists)('customerUpdate', 'updateCustomerRequest', updateCustomerRequest);
|
|
818
|
+
const localVarPath = `/v1-customer`;
|
|
682
819
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
683
820
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
684
821
|
let baseOptions;
|
|
685
822
|
if (configuration) {
|
|
686
823
|
baseOptions = configuration.baseOptions;
|
|
687
824
|
}
|
|
688
|
-
const localVarRequestOptions = { method: '
|
|
825
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
|
|
689
826
|
const localVarHeaderParameter = {};
|
|
690
827
|
const localVarQueryParameter = {};
|
|
691
|
-
|
|
692
|
-
localVarQueryParameter['id'] = id;
|
|
693
|
-
}
|
|
828
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
694
829
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
695
830
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
696
831
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
832
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateCustomerRequest, localVarRequestOptions, configuration);
|
|
697
833
|
return {
|
|
698
834
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
699
835
|
options: localVarRequestOptions,
|
|
@@ -701,25 +837,27 @@ const Scout9ApiAxiosParamCreator = function (configuration) {
|
|
|
701
837
|
},
|
|
702
838
|
/**
|
|
703
839
|
*
|
|
704
|
-
* @summary
|
|
705
|
-
* @param {string}
|
|
840
|
+
* @summary Gets all or specific set of customers
|
|
841
|
+
* @param {string} [q] Query search string to filter results ({field},{operator},{value}) (example firstName,equals,Patrick)
|
|
842
|
+
* @param {Array<string>} [id]
|
|
706
843
|
* @param {*} [options] Override http request option.
|
|
707
844
|
* @throws {RequiredError}
|
|
708
845
|
*/
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
(0, common_1.assertParamExists)('deleteWorkflows', 'id', id);
|
|
712
|
-
const localVarPath = `/v1-workflows`;
|
|
846
|
+
customers: async (q, id, options = {}) => {
|
|
847
|
+
const localVarPath = `/v1-customers`;
|
|
713
848
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
714
849
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
715
850
|
let baseOptions;
|
|
716
851
|
if (configuration) {
|
|
717
852
|
baseOptions = configuration.baseOptions;
|
|
718
853
|
}
|
|
719
|
-
const localVarRequestOptions = { method: '
|
|
854
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
720
855
|
const localVarHeaderParameter = {};
|
|
721
856
|
const localVarQueryParameter = {};
|
|
722
|
-
if (
|
|
857
|
+
if (q !== undefined) {
|
|
858
|
+
localVarQueryParameter['q'] = q;
|
|
859
|
+
}
|
|
860
|
+
if (id) {
|
|
723
861
|
localVarQueryParameter['id'] = id;
|
|
724
862
|
}
|
|
725
863
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -732,15 +870,15 @@ const Scout9ApiAxiosParamCreator = function (configuration) {
|
|
|
732
870
|
},
|
|
733
871
|
/**
|
|
734
872
|
*
|
|
735
|
-
* @summary
|
|
736
|
-
* @param {
|
|
873
|
+
* @summary Creates new customers
|
|
874
|
+
* @param {CreateCustomersRequest} createCustomersRequest
|
|
737
875
|
* @param {*} [options] Override http request option.
|
|
738
876
|
* @throws {RequiredError}
|
|
739
877
|
*/
|
|
740
|
-
|
|
741
|
-
// verify required parameter '
|
|
742
|
-
(0, common_1.assertParamExists)('
|
|
743
|
-
const localVarPath = `/v1-
|
|
878
|
+
customersCreate: async (createCustomersRequest, options = {}) => {
|
|
879
|
+
// verify required parameter 'createCustomersRequest' is not null or undefined
|
|
880
|
+
(0, common_1.assertParamExists)('customersCreate', 'createCustomersRequest', createCustomersRequest);
|
|
881
|
+
const localVarPath = `/v1-customers`;
|
|
744
882
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
745
883
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
746
884
|
let baseOptions;
|
|
@@ -754,7 +892,7 @@ const Scout9ApiAxiosParamCreator = function (configuration) {
|
|
|
754
892
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
755
893
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
756
894
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
757
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
895
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createCustomersRequest, localVarRequestOptions, configuration);
|
|
758
896
|
return {
|
|
759
897
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
760
898
|
options: localVarRequestOptions,
|
|
@@ -762,25 +900,23 @@ const Scout9ApiAxiosParamCreator = function (configuration) {
|
|
|
762
900
|
},
|
|
763
901
|
/**
|
|
764
902
|
*
|
|
765
|
-
* @summary
|
|
766
|
-
* @param {string} id
|
|
903
|
+
* @summary Deletes multiple customers
|
|
904
|
+
* @param {Array<string>} [id]
|
|
767
905
|
* @param {*} [options] Override http request option.
|
|
768
906
|
* @throws {RequiredError}
|
|
769
907
|
*/
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
(0, common_1.assertParamExists)('getAgent', 'id', id);
|
|
773
|
-
const localVarPath = `/v1-agent`;
|
|
908
|
+
customersDelete: async (id, options = {}) => {
|
|
909
|
+
const localVarPath = `/v1-customers`;
|
|
774
910
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
775
911
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
776
912
|
let baseOptions;
|
|
777
913
|
if (configuration) {
|
|
778
914
|
baseOptions = configuration.baseOptions;
|
|
779
915
|
}
|
|
780
|
-
const localVarRequestOptions = { method: '
|
|
916
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
781
917
|
const localVarHeaderParameter = {};
|
|
782
918
|
const localVarQueryParameter = {};
|
|
783
|
-
if (id
|
|
919
|
+
if (id) {
|
|
784
920
|
localVarQueryParameter['id'] = id;
|
|
785
921
|
}
|
|
786
922
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -793,88 +929,89 @@ const Scout9ApiAxiosParamCreator = function (configuration) {
|
|
|
793
929
|
},
|
|
794
930
|
/**
|
|
795
931
|
*
|
|
796
|
-
* @summary
|
|
797
|
-
* @param {
|
|
932
|
+
* @summary Updates multiple customers
|
|
933
|
+
* @param {UpdateCustomerRequest} updateCustomerRequest
|
|
798
934
|
* @param {*} [options] Override http request option.
|
|
799
935
|
* @throws {RequiredError}
|
|
800
936
|
*/
|
|
801
|
-
|
|
802
|
-
|
|
937
|
+
customersUpdate: async (updateCustomerRequest, options = {}) => {
|
|
938
|
+
// verify required parameter 'updateCustomerRequest' is not null or undefined
|
|
939
|
+
(0, common_1.assertParamExists)('customersUpdate', 'updateCustomerRequest', updateCustomerRequest);
|
|
940
|
+
const localVarPath = `/v1-customers`;
|
|
803
941
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
804
942
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
805
943
|
let baseOptions;
|
|
806
944
|
if (configuration) {
|
|
807
945
|
baseOptions = configuration.baseOptions;
|
|
808
946
|
}
|
|
809
|
-
const localVarRequestOptions = { method: '
|
|
947
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
|
|
810
948
|
const localVarHeaderParameter = {};
|
|
811
949
|
const localVarQueryParameter = {};
|
|
812
|
-
|
|
813
|
-
localVarQueryParameter['id'] = id;
|
|
814
|
-
}
|
|
950
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
815
951
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
816
952
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
817
953
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
954
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateCustomerRequest, localVarRequestOptions, configuration);
|
|
818
955
|
return {
|
|
819
956
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
820
957
|
options: localVarRequestOptions,
|
|
821
958
|
};
|
|
822
959
|
},
|
|
823
960
|
/**
|
|
824
|
-
*
|
|
825
|
-
* @summary
|
|
826
|
-
* @param {
|
|
961
|
+
* 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.
|
|
962
|
+
* @summary Generate a message from conversation
|
|
963
|
+
* @param {GenerateRequest} generateRequest
|
|
827
964
|
* @param {*} [options] Override http request option.
|
|
828
965
|
* @throws {RequiredError}
|
|
829
966
|
*/
|
|
830
|
-
|
|
831
|
-
// verify required parameter '
|
|
832
|
-
(0, common_1.assertParamExists)('
|
|
833
|
-
const localVarPath = `/v1-
|
|
967
|
+
generate: async (generateRequest, options = {}) => {
|
|
968
|
+
// verify required parameter 'generateRequest' is not null or undefined
|
|
969
|
+
(0, common_1.assertParamExists)('generate', 'generateRequest', generateRequest);
|
|
970
|
+
const localVarPath = `/v1-generate`;
|
|
834
971
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
835
972
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
836
973
|
let baseOptions;
|
|
837
974
|
if (configuration) {
|
|
838
975
|
baseOptions = configuration.baseOptions;
|
|
839
976
|
}
|
|
840
|
-
const localVarRequestOptions = { method: '
|
|
977
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
841
978
|
const localVarHeaderParameter = {};
|
|
842
979
|
const localVarQueryParameter = {};
|
|
843
|
-
|
|
844
|
-
localVarQueryParameter['id'] = id;
|
|
845
|
-
}
|
|
980
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
846
981
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
847
982
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
848
983
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
984
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(generateRequest, localVarRequestOptions, configuration);
|
|
849
985
|
return {
|
|
850
986
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
851
987
|
options: localVarRequestOptions,
|
|
852
988
|
};
|
|
853
989
|
},
|
|
854
990
|
/**
|
|
855
|
-
*
|
|
856
|
-
* @summary
|
|
857
|
-
* @param {
|
|
991
|
+
* 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
|
|
992
|
+
* @summary Create and send message
|
|
993
|
+
* @param {MessageCreateRequest} messageCreateRequest
|
|
858
994
|
* @param {*} [options] Override http request option.
|
|
859
995
|
* @throws {RequiredError}
|
|
860
996
|
*/
|
|
861
|
-
|
|
862
|
-
|
|
997
|
+
message: async (messageCreateRequest, options = {}) => {
|
|
998
|
+
// verify required parameter 'messageCreateRequest' is not null or undefined
|
|
999
|
+
(0, common_1.assertParamExists)('message', 'messageCreateRequest', messageCreateRequest);
|
|
1000
|
+
const localVarPath = `/v1-messages`;
|
|
863
1001
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
864
1002
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
865
1003
|
let baseOptions;
|
|
866
1004
|
if (configuration) {
|
|
867
1005
|
baseOptions = configuration.baseOptions;
|
|
868
1006
|
}
|
|
869
|
-
const localVarRequestOptions = { method: '
|
|
1007
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
870
1008
|
const localVarHeaderParameter = {};
|
|
871
1009
|
const localVarQueryParameter = {};
|
|
872
|
-
|
|
873
|
-
localVarQueryParameter['id'] = id;
|
|
874
|
-
}
|
|
1010
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
875
1011
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
876
1012
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
877
1013
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1014
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(messageCreateRequest, localVarRequestOptions, configuration);
|
|
878
1015
|
return {
|
|
879
1016
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
880
1017
|
options: localVarRequestOptions,
|
|
@@ -882,15 +1019,14 @@ const Scout9ApiAxiosParamCreator = function (configuration) {
|
|
|
882
1019
|
},
|
|
883
1020
|
/**
|
|
884
1021
|
*
|
|
885
|
-
* @summary
|
|
886
|
-
* @param {string}
|
|
1022
|
+
* @summary Get all messages from a conversation
|
|
1023
|
+
* @param {string} [q] Query search string to filter results ({field},{operator},{value}) (example firstName,equals,Patrick)
|
|
1024
|
+
* @param {Array<string>} [id]
|
|
887
1025
|
* @param {*} [options] Override http request option.
|
|
888
1026
|
* @throws {RequiredError}
|
|
889
1027
|
*/
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
(0, common_1.assertParamExists)('getConversation', 'id', id);
|
|
893
|
-
const localVarPath = `/v1-conversation`;
|
|
1028
|
+
messages: async (q, id, options = {}) => {
|
|
1029
|
+
const localVarPath = `/v1-messages`;
|
|
894
1030
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
895
1031
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
896
1032
|
let baseOptions;
|
|
@@ -900,7 +1036,10 @@ const Scout9ApiAxiosParamCreator = function (configuration) {
|
|
|
900
1036
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
901
1037
|
const localVarHeaderParameter = {};
|
|
902
1038
|
const localVarQueryParameter = {};
|
|
903
|
-
if (
|
|
1039
|
+
if (q !== undefined) {
|
|
1040
|
+
localVarQueryParameter['q'] = q;
|
|
1041
|
+
}
|
|
1042
|
+
if (id) {
|
|
904
1043
|
localVarQueryParameter['id'] = id;
|
|
905
1044
|
}
|
|
906
1045
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -913,15 +1052,15 @@ const Scout9ApiAxiosParamCreator = function (configuration) {
|
|
|
913
1052
|
},
|
|
914
1053
|
/**
|
|
915
1054
|
*
|
|
916
|
-
* @summary
|
|
917
|
-
* @param {string} id
|
|
1055
|
+
* @summary Get the results of a bulk API operation
|
|
1056
|
+
* @param {string} id
|
|
918
1057
|
* @param {*} [options] Override http request option.
|
|
919
1058
|
* @throws {RequiredError}
|
|
920
1059
|
*/
|
|
921
|
-
|
|
1060
|
+
operation: async (id, options = {}) => {
|
|
922
1061
|
// verify required parameter 'id' is not null or undefined
|
|
923
|
-
(0, common_1.assertParamExists)('
|
|
924
|
-
const localVarPath = `/v1-
|
|
1062
|
+
(0, common_1.assertParamExists)('operation', 'id', id);
|
|
1063
|
+
const localVarPath = `/v1-utils-operation`;
|
|
925
1064
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
926
1065
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
927
1066
|
let baseOptions;
|
|
@@ -944,13 +1083,14 @@ const Scout9ApiAxiosParamCreator = function (configuration) {
|
|
|
944
1083
|
},
|
|
945
1084
|
/**
|
|
946
1085
|
*
|
|
947
|
-
* @summary Gets all or specific set of
|
|
948
|
-
* @param {string} [
|
|
1086
|
+
* @summary Gets all or specific set of bulk API operations
|
|
1087
|
+
* @param {string} [q] Query search string to filter results ({field},{operator},{value}) (example firstName,equals,Patrick)
|
|
1088
|
+
* @param {Array<string>} [id]
|
|
949
1089
|
* @param {*} [options] Override http request option.
|
|
950
1090
|
* @throws {RequiredError}
|
|
951
1091
|
*/
|
|
952
|
-
|
|
953
|
-
const localVarPath = `/v1-
|
|
1092
|
+
operations: async (q, id, options = {}) => {
|
|
1093
|
+
const localVarPath = `/v1-utils-operations`;
|
|
954
1094
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
955
1095
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
956
1096
|
let baseOptions;
|
|
@@ -960,7 +1100,10 @@ const Scout9ApiAxiosParamCreator = function (configuration) {
|
|
|
960
1100
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
961
1101
|
const localVarHeaderParameter = {};
|
|
962
1102
|
const localVarQueryParameter = {};
|
|
963
|
-
if (
|
|
1103
|
+
if (q !== undefined) {
|
|
1104
|
+
localVarQueryParameter['q'] = q;
|
|
1105
|
+
}
|
|
1106
|
+
if (id) {
|
|
964
1107
|
localVarQueryParameter['id'] = id;
|
|
965
1108
|
}
|
|
966
1109
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -973,30 +1116,29 @@ const Scout9ApiAxiosParamCreator = function (configuration) {
|
|
|
973
1116
|
},
|
|
974
1117
|
/**
|
|
975
1118
|
*
|
|
976
|
-
* @summary
|
|
977
|
-
* @param {
|
|
1119
|
+
* @summary Creates a new scheduled conversation
|
|
1120
|
+
* @param {ScheduleCreateRequest} scheduleCreateRequest
|
|
978
1121
|
* @param {*} [options] Override http request option.
|
|
979
1122
|
* @throws {RequiredError}
|
|
980
1123
|
*/
|
|
981
|
-
|
|
982
|
-
// verify required parameter '
|
|
983
|
-
(0, common_1.assertParamExists)('
|
|
984
|
-
const localVarPath = `/v1-
|
|
1124
|
+
scheduleCreate: async (scheduleCreateRequest, options = {}) => {
|
|
1125
|
+
// verify required parameter 'scheduleCreateRequest' is not null or undefined
|
|
1126
|
+
(0, common_1.assertParamExists)('scheduleCreate', 'scheduleCreateRequest', scheduleCreateRequest);
|
|
1127
|
+
const localVarPath = `/v1-schedule`;
|
|
985
1128
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
986
1129
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
987
1130
|
let baseOptions;
|
|
988
1131
|
if (configuration) {
|
|
989
1132
|
baseOptions = configuration.baseOptions;
|
|
990
1133
|
}
|
|
991
|
-
const localVarRequestOptions = { method: '
|
|
1134
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
992
1135
|
const localVarHeaderParameter = {};
|
|
993
1136
|
const localVarQueryParameter = {};
|
|
994
|
-
|
|
995
|
-
localVarQueryParameter['id'] = id;
|
|
996
|
-
}
|
|
1137
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
997
1138
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
998
1139
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
999
1140
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1141
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(scheduleCreateRequest, localVarRequestOptions, configuration);
|
|
1000
1142
|
return {
|
|
1001
1143
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1002
1144
|
options: localVarRequestOptions,
|
|
@@ -1004,14 +1146,14 @@ const Scout9ApiAxiosParamCreator = function (configuration) {
|
|
|
1004
1146
|
},
|
|
1005
1147
|
/**
|
|
1006
1148
|
*
|
|
1007
|
-
* @summary
|
|
1008
|
-
* @param {string} id
|
|
1149
|
+
* @summary Deletes a schedule
|
|
1150
|
+
* @param {string} id
|
|
1009
1151
|
* @param {*} [options] Override http request option.
|
|
1010
1152
|
* @throws {RequiredError}
|
|
1011
1153
|
*/
|
|
1012
|
-
|
|
1154
|
+
scheduleDelete: async (id, options = {}) => {
|
|
1013
1155
|
// verify required parameter 'id' is not null or undefined
|
|
1014
|
-
(0, common_1.assertParamExists)('
|
|
1156
|
+
(0, common_1.assertParamExists)('scheduleDelete', 'id', id);
|
|
1015
1157
|
const localVarPath = `/v1-schedule`;
|
|
1016
1158
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1017
1159
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -1019,7 +1161,7 @@ const Scout9ApiAxiosParamCreator = function (configuration) {
|
|
|
1019
1161
|
if (configuration) {
|
|
1020
1162
|
baseOptions = configuration.baseOptions;
|
|
1021
1163
|
}
|
|
1022
|
-
const localVarRequestOptions = { method: '
|
|
1164
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
1023
1165
|
const localVarHeaderParameter = {};
|
|
1024
1166
|
const localVarQueryParameter = {};
|
|
1025
1167
|
if (id !== undefined) {
|
|
@@ -1035,14 +1177,14 @@ const Scout9ApiAxiosParamCreator = function (configuration) {
|
|
|
1035
1177
|
},
|
|
1036
1178
|
/**
|
|
1037
1179
|
*
|
|
1038
|
-
* @summary
|
|
1039
|
-
* @param {
|
|
1180
|
+
* @summary Creates a new schedule group
|
|
1181
|
+
* @param {ScheduleGroupCreateRequest} scheduleGroupCreateRequest
|
|
1040
1182
|
* @param {*} [options] Override http request option.
|
|
1041
1183
|
* @throws {RequiredError}
|
|
1042
1184
|
*/
|
|
1043
|
-
|
|
1044
|
-
// verify required parameter '
|
|
1045
|
-
(0, common_1.assertParamExists)('
|
|
1185
|
+
scheduleGroupCreate: async (scheduleGroupCreateRequest, options = {}) => {
|
|
1186
|
+
// verify required parameter 'scheduleGroupCreateRequest' is not null or undefined
|
|
1187
|
+
(0, common_1.assertParamExists)('scheduleGroupCreate', 'scheduleGroupCreateRequest', scheduleGroupCreateRequest);
|
|
1046
1188
|
const localVarPath = `/v1-scheduleGroup`;
|
|
1047
1189
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1048
1190
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -1050,15 +1192,14 @@ const Scout9ApiAxiosParamCreator = function (configuration) {
|
|
|
1050
1192
|
if (configuration) {
|
|
1051
1193
|
baseOptions = configuration.baseOptions;
|
|
1052
1194
|
}
|
|
1053
|
-
const localVarRequestOptions = { method: '
|
|
1195
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
1054
1196
|
const localVarHeaderParameter = {};
|
|
1055
1197
|
const localVarQueryParameter = {};
|
|
1056
|
-
|
|
1057
|
-
localVarQueryParameter['id'] = id;
|
|
1058
|
-
}
|
|
1198
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1059
1199
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1060
1200
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1061
1201
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1202
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(scheduleGroupCreateRequest, localVarRequestOptions, configuration);
|
|
1062
1203
|
return {
|
|
1063
1204
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1064
1205
|
options: localVarRequestOptions,
|
|
@@ -1066,22 +1207,22 @@ const Scout9ApiAxiosParamCreator = function (configuration) {
|
|
|
1066
1207
|
},
|
|
1067
1208
|
/**
|
|
1068
1209
|
*
|
|
1069
|
-
* @summary
|
|
1070
|
-
* @param {string} id
|
|
1210
|
+
* @summary Deletes and cancels a schedule group
|
|
1211
|
+
* @param {string} id
|
|
1071
1212
|
* @param {*} [options] Override http request option.
|
|
1072
1213
|
* @throws {RequiredError}
|
|
1073
1214
|
*/
|
|
1074
|
-
|
|
1215
|
+
scheduleGroupDelete: async (id, options = {}) => {
|
|
1075
1216
|
// verify required parameter 'id' is not null or undefined
|
|
1076
|
-
(0, common_1.assertParamExists)('
|
|
1077
|
-
const localVarPath = `/v1-
|
|
1217
|
+
(0, common_1.assertParamExists)('scheduleGroupDelete', 'id', id);
|
|
1218
|
+
const localVarPath = `/v1-scheduleGroup`;
|
|
1078
1219
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1079
1220
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1080
1221
|
let baseOptions;
|
|
1081
1222
|
if (configuration) {
|
|
1082
1223
|
baseOptions = configuration.baseOptions;
|
|
1083
1224
|
}
|
|
1084
|
-
const localVarRequestOptions = { method: '
|
|
1225
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
1085
1226
|
const localVarHeaderParameter = {};
|
|
1086
1227
|
const localVarQueryParameter = {};
|
|
1087
1228
|
if (id !== undefined) {
|
|
@@ -1097,13 +1238,15 @@ const Scout9ApiAxiosParamCreator = function (configuration) {
|
|
|
1097
1238
|
},
|
|
1098
1239
|
/**
|
|
1099
1240
|
*
|
|
1100
|
-
* @summary Gets
|
|
1101
|
-
* @param {string}
|
|
1241
|
+
* @summary Gets a schedule group
|
|
1242
|
+
* @param {string} id
|
|
1102
1243
|
* @param {*} [options] Override http request option.
|
|
1103
1244
|
* @throws {RequiredError}
|
|
1104
1245
|
*/
|
|
1105
|
-
|
|
1106
|
-
|
|
1246
|
+
scheduleGroupRetrieve: async (id, options = {}) => {
|
|
1247
|
+
// verify required parameter 'id' is not null or undefined
|
|
1248
|
+
(0, common_1.assertParamExists)('scheduleGroupRetrieve', 'id', id);
|
|
1249
|
+
const localVarPath = `/v1-scheduleGroup`;
|
|
1107
1250
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1108
1251
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1109
1252
|
let baseOptions;
|
|
@@ -1126,15 +1269,15 @@ const Scout9ApiAxiosParamCreator = function (configuration) {
|
|
|
1126
1269
|
},
|
|
1127
1270
|
/**
|
|
1128
1271
|
*
|
|
1129
|
-
* @summary
|
|
1130
|
-
* @param {
|
|
1272
|
+
* @summary Updates a schedule group
|
|
1273
|
+
* @param {ScheduleGroupUpdateRequest} scheduleGroupUpdateRequest
|
|
1131
1274
|
* @param {*} [options] Override http request option.
|
|
1132
1275
|
* @throws {RequiredError}
|
|
1133
1276
|
*/
|
|
1134
|
-
|
|
1135
|
-
// verify required parameter '
|
|
1136
|
-
(0, common_1.assertParamExists)('
|
|
1137
|
-
const localVarPath = `/v1-
|
|
1277
|
+
scheduleGroupUpdate: async (scheduleGroupUpdateRequest, options = {}) => {
|
|
1278
|
+
// verify required parameter 'scheduleGroupUpdateRequest' is not null or undefined
|
|
1279
|
+
(0, common_1.assertParamExists)('scheduleGroupUpdate', 'scheduleGroupUpdateRequest', scheduleGroupUpdateRequest);
|
|
1280
|
+
const localVarPath = `/v1-scheduleGroup`;
|
|
1138
1281
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1139
1282
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1140
1283
|
let baseOptions;
|
|
@@ -1148,7 +1291,7 @@ const Scout9ApiAxiosParamCreator = function (configuration) {
|
|
|
1148
1291
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1149
1292
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1150
1293
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1151
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
1294
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(scheduleGroupUpdateRequest, localVarRequestOptions, configuration);
|
|
1152
1295
|
return {
|
|
1153
1296
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1154
1297
|
options: localVarRequestOptions,
|
|
@@ -1156,29 +1299,30 @@ const Scout9ApiAxiosParamCreator = function (configuration) {
|
|
|
1156
1299
|
},
|
|
1157
1300
|
/**
|
|
1158
1301
|
*
|
|
1159
|
-
* @summary
|
|
1160
|
-
* @param {
|
|
1302
|
+
* @summary Gets a schedule
|
|
1303
|
+
* @param {string} id
|
|
1161
1304
|
* @param {*} [options] Override http request option.
|
|
1162
1305
|
* @throws {RequiredError}
|
|
1163
1306
|
*/
|
|
1164
|
-
|
|
1165
|
-
// verify required parameter '
|
|
1166
|
-
(0, common_1.assertParamExists)('
|
|
1167
|
-
const localVarPath = `/v1-
|
|
1307
|
+
scheduleRetrieve: async (id, options = {}) => {
|
|
1308
|
+
// verify required parameter 'id' is not null or undefined
|
|
1309
|
+
(0, common_1.assertParamExists)('scheduleRetrieve', 'id', id);
|
|
1310
|
+
const localVarPath = `/v1-schedule`;
|
|
1168
1311
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1169
1312
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1170
1313
|
let baseOptions;
|
|
1171
1314
|
if (configuration) {
|
|
1172
1315
|
baseOptions = configuration.baseOptions;
|
|
1173
1316
|
}
|
|
1174
|
-
const localVarRequestOptions = { method: '
|
|
1317
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
1175
1318
|
const localVarHeaderParameter = {};
|
|
1176
1319
|
const localVarQueryParameter = {};
|
|
1177
|
-
|
|
1320
|
+
if (id !== undefined) {
|
|
1321
|
+
localVarQueryParameter['id'] = id;
|
|
1322
|
+
}
|
|
1178
1323
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1179
1324
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1180
1325
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1181
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateAgentsRequest, localVarRequestOptions, configuration);
|
|
1182
1326
|
return {
|
|
1183
1327
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1184
1328
|
options: localVarRequestOptions,
|
|
@@ -1186,15 +1330,15 @@ const Scout9ApiAxiosParamCreator = function (configuration) {
|
|
|
1186
1330
|
},
|
|
1187
1331
|
/**
|
|
1188
1332
|
*
|
|
1189
|
-
* @summary
|
|
1190
|
-
* @param {
|
|
1333
|
+
* @summary Updates a schedule
|
|
1334
|
+
* @param {ScheduleUpdateRequest} scheduleUpdateRequest
|
|
1191
1335
|
* @param {*} [options] Override http request option.
|
|
1192
1336
|
* @throws {RequiredError}
|
|
1193
1337
|
*/
|
|
1194
|
-
|
|
1195
|
-
// verify required parameter '
|
|
1196
|
-
(0, common_1.assertParamExists)('
|
|
1197
|
-
const localVarPath = `/v1-
|
|
1338
|
+
scheduleUpdate: async (scheduleUpdateRequest, options = {}) => {
|
|
1339
|
+
// verify required parameter 'scheduleUpdateRequest' is not null or undefined
|
|
1340
|
+
(0, common_1.assertParamExists)('scheduleUpdate', 'scheduleUpdateRequest', scheduleUpdateRequest);
|
|
1341
|
+
const localVarPath = `/v1-schedule`;
|
|
1198
1342
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1199
1343
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1200
1344
|
let baseOptions;
|
|
@@ -1208,7 +1352,7 @@ const Scout9ApiAxiosParamCreator = function (configuration) {
|
|
|
1208
1352
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1209
1353
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1210
1354
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1211
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
1355
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(scheduleUpdateRequest, localVarRequestOptions, configuration);
|
|
1212
1356
|
return {
|
|
1213
1357
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1214
1358
|
options: localVarRequestOptions,
|
|
@@ -1216,29 +1360,30 @@ const Scout9ApiAxiosParamCreator = function (configuration) {
|
|
|
1216
1360
|
},
|
|
1217
1361
|
/**
|
|
1218
1362
|
*
|
|
1219
|
-
* @summary
|
|
1220
|
-
* @param {
|
|
1363
|
+
* @summary Gets a workflow
|
|
1364
|
+
* @param {string} id
|
|
1221
1365
|
* @param {*} [options] Override http request option.
|
|
1222
1366
|
* @throws {RequiredError}
|
|
1223
1367
|
*/
|
|
1224
|
-
|
|
1225
|
-
// verify required parameter '
|
|
1226
|
-
(0, common_1.assertParamExists)('
|
|
1227
|
-
const localVarPath = `/v1-
|
|
1368
|
+
workflow: async (id, options = {}) => {
|
|
1369
|
+
// verify required parameter 'id' is not null or undefined
|
|
1370
|
+
(0, common_1.assertParamExists)('workflow', 'id', id);
|
|
1371
|
+
const localVarPath = `/v1-workflow`;
|
|
1228
1372
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1229
1373
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1230
1374
|
let baseOptions;
|
|
1231
1375
|
if (configuration) {
|
|
1232
1376
|
baseOptions = configuration.baseOptions;
|
|
1233
1377
|
}
|
|
1234
|
-
const localVarRequestOptions = { method: '
|
|
1378
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
1235
1379
|
const localVarHeaderParameter = {};
|
|
1236
1380
|
const localVarQueryParameter = {};
|
|
1237
|
-
|
|
1381
|
+
if (id !== undefined) {
|
|
1382
|
+
localVarQueryParameter['id'] = id;
|
|
1383
|
+
}
|
|
1238
1384
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1239
1385
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1240
1386
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1241
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateContextRequest, localVarRequestOptions, configuration);
|
|
1242
1387
|
return {
|
|
1243
1388
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1244
1389
|
options: localVarRequestOptions,
|
|
@@ -1246,29 +1391,29 @@ const Scout9ApiAxiosParamCreator = function (configuration) {
|
|
|
1246
1391
|
},
|
|
1247
1392
|
/**
|
|
1248
1393
|
*
|
|
1249
|
-
* @summary
|
|
1250
|
-
* @param {
|
|
1394
|
+
* @summary Create a new workflow
|
|
1395
|
+
* @param {CreateWorkflowRequest} createWorkflowRequest
|
|
1251
1396
|
* @param {*} [options] Override http request option.
|
|
1252
1397
|
* @throws {RequiredError}
|
|
1253
1398
|
*/
|
|
1254
|
-
|
|
1255
|
-
// verify required parameter '
|
|
1256
|
-
(0, common_1.assertParamExists)('
|
|
1257
|
-
const localVarPath = `/v1-
|
|
1399
|
+
workflowCreate: async (createWorkflowRequest, options = {}) => {
|
|
1400
|
+
// verify required parameter 'createWorkflowRequest' is not null or undefined
|
|
1401
|
+
(0, common_1.assertParamExists)('workflowCreate', 'createWorkflowRequest', createWorkflowRequest);
|
|
1402
|
+
const localVarPath = `/v1-workflow`;
|
|
1258
1403
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1259
1404
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1260
1405
|
let baseOptions;
|
|
1261
1406
|
if (configuration) {
|
|
1262
1407
|
baseOptions = configuration.baseOptions;
|
|
1263
1408
|
}
|
|
1264
|
-
const localVarRequestOptions = { method: '
|
|
1409
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
1265
1410
|
const localVarHeaderParameter = {};
|
|
1266
1411
|
const localVarQueryParameter = {};
|
|
1267
1412
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1268
1413
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1269
1414
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1270
1415
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1271
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
1416
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createWorkflowRequest, localVarRequestOptions, configuration);
|
|
1272
1417
|
return {
|
|
1273
1418
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1274
1419
|
options: localVarRequestOptions,
|
|
@@ -1276,29 +1421,30 @@ const Scout9ApiAxiosParamCreator = function (configuration) {
|
|
|
1276
1421
|
},
|
|
1277
1422
|
/**
|
|
1278
1423
|
*
|
|
1279
|
-
* @summary
|
|
1280
|
-
* @param {
|
|
1424
|
+
* @summary Deletes a workflow
|
|
1425
|
+
* @param {string} id
|
|
1281
1426
|
* @param {*} [options] Override http request option.
|
|
1282
1427
|
* @throws {RequiredError}
|
|
1283
1428
|
*/
|
|
1284
|
-
|
|
1285
|
-
// verify required parameter '
|
|
1286
|
-
(0, common_1.assertParamExists)('
|
|
1287
|
-
const localVarPath = `/v1-
|
|
1429
|
+
workflowDelete: async (id, options = {}) => {
|
|
1430
|
+
// verify required parameter 'id' is not null or undefined
|
|
1431
|
+
(0, common_1.assertParamExists)('workflowDelete', 'id', id);
|
|
1432
|
+
const localVarPath = `/v1-workflow`;
|
|
1288
1433
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1289
1434
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1290
1435
|
let baseOptions;
|
|
1291
1436
|
if (configuration) {
|
|
1292
1437
|
baseOptions = configuration.baseOptions;
|
|
1293
1438
|
}
|
|
1294
|
-
const localVarRequestOptions = { method: '
|
|
1439
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
1295
1440
|
const localVarHeaderParameter = {};
|
|
1296
1441
|
const localVarQueryParameter = {};
|
|
1297
|
-
|
|
1442
|
+
if (id !== undefined) {
|
|
1443
|
+
localVarQueryParameter['id'] = id;
|
|
1444
|
+
}
|
|
1298
1445
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1299
1446
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1300
1447
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1301
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateCustomerRequest, localVarRequestOptions, configuration);
|
|
1302
1448
|
return {
|
|
1303
1449
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1304
1450
|
options: localVarRequestOptions,
|
|
@@ -1306,15 +1452,15 @@ const Scout9ApiAxiosParamCreator = function (configuration) {
|
|
|
1306
1452
|
},
|
|
1307
1453
|
/**
|
|
1308
1454
|
*
|
|
1309
|
-
* @summary
|
|
1310
|
-
* @param {
|
|
1455
|
+
* @summary Update a workflow
|
|
1456
|
+
* @param {UpdateWorkflowRequest} updateWorkflowRequest
|
|
1311
1457
|
* @param {*} [options] Override http request option.
|
|
1312
1458
|
* @throws {RequiredError}
|
|
1313
1459
|
*/
|
|
1314
|
-
|
|
1315
|
-
// verify required parameter '
|
|
1316
|
-
(0, common_1.assertParamExists)('
|
|
1317
|
-
const localVarPath = `/v1-
|
|
1460
|
+
workflowUpdate: async (updateWorkflowRequest, options = {}) => {
|
|
1461
|
+
// verify required parameter 'updateWorkflowRequest' is not null or undefined
|
|
1462
|
+
(0, common_1.assertParamExists)('workflowUpdate', 'updateWorkflowRequest', updateWorkflowRequest);
|
|
1463
|
+
const localVarPath = `/v1-workflow`;
|
|
1318
1464
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1319
1465
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1320
1466
|
let baseOptions;
|
|
@@ -1328,7 +1474,7 @@ const Scout9ApiAxiosParamCreator = function (configuration) {
|
|
|
1328
1474
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1329
1475
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1330
1476
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1331
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
1477
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateWorkflowRequest, localVarRequestOptions, configuration);
|
|
1332
1478
|
return {
|
|
1333
1479
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1334
1480
|
options: localVarRequestOptions,
|
|
@@ -1336,29 +1482,32 @@ const Scout9ApiAxiosParamCreator = function (configuration) {
|
|
|
1336
1482
|
},
|
|
1337
1483
|
/**
|
|
1338
1484
|
*
|
|
1339
|
-
* @summary
|
|
1340
|
-
* @param {
|
|
1485
|
+
* @summary Gets all or specific set of workflows
|
|
1486
|
+
* @param {string} [q] Query search string to filter results ({field},{operator},{value}) (example firstName,equals,Patrick)
|
|
1487
|
+
* @param {Array<string>} [id]
|
|
1341
1488
|
* @param {*} [options] Override http request option.
|
|
1342
1489
|
* @throws {RequiredError}
|
|
1343
1490
|
*/
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
(0, common_1.assertParamExists)('updateSchedule', 'scheduleUpdateRequest', scheduleUpdateRequest);
|
|
1347
|
-
const localVarPath = `/v1-schedule`;
|
|
1491
|
+
workflows: async (q, id, options = {}) => {
|
|
1492
|
+
const localVarPath = `/v1-workflows`;
|
|
1348
1493
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1349
1494
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1350
1495
|
let baseOptions;
|
|
1351
1496
|
if (configuration) {
|
|
1352
1497
|
baseOptions = configuration.baseOptions;
|
|
1353
1498
|
}
|
|
1354
|
-
const localVarRequestOptions = { method: '
|
|
1499
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
1355
1500
|
const localVarHeaderParameter = {};
|
|
1356
1501
|
const localVarQueryParameter = {};
|
|
1357
|
-
|
|
1502
|
+
if (q !== undefined) {
|
|
1503
|
+
localVarQueryParameter['q'] = q;
|
|
1504
|
+
}
|
|
1505
|
+
if (id) {
|
|
1506
|
+
localVarQueryParameter['id'] = id;
|
|
1507
|
+
}
|
|
1358
1508
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1359
1509
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1360
1510
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1361
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(scheduleUpdateRequest, localVarRequestOptions, configuration);
|
|
1362
1511
|
return {
|
|
1363
1512
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1364
1513
|
options: localVarRequestOptions,
|
|
@@ -1366,29 +1515,29 @@ const Scout9ApiAxiosParamCreator = function (configuration) {
|
|
|
1366
1515
|
},
|
|
1367
1516
|
/**
|
|
1368
1517
|
*
|
|
1369
|
-
* @summary
|
|
1370
|
-
* @param {
|
|
1518
|
+
* @summary Creates new workflows
|
|
1519
|
+
* @param {CreateWorkflowsRequest} createWorkflowsRequest
|
|
1371
1520
|
* @param {*} [options] Override http request option.
|
|
1372
1521
|
* @throws {RequiredError}
|
|
1373
1522
|
*/
|
|
1374
|
-
|
|
1375
|
-
// verify required parameter '
|
|
1376
|
-
(0, common_1.assertParamExists)('
|
|
1377
|
-
const localVarPath = `/v1-
|
|
1523
|
+
workflowsCreate: async (createWorkflowsRequest, options = {}) => {
|
|
1524
|
+
// verify required parameter 'createWorkflowsRequest' is not null or undefined
|
|
1525
|
+
(0, common_1.assertParamExists)('workflowsCreate', 'createWorkflowsRequest', createWorkflowsRequest);
|
|
1526
|
+
const localVarPath = `/v1-workflows`;
|
|
1378
1527
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1379
1528
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1380
1529
|
let baseOptions;
|
|
1381
1530
|
if (configuration) {
|
|
1382
1531
|
baseOptions = configuration.baseOptions;
|
|
1383
1532
|
}
|
|
1384
|
-
const localVarRequestOptions = { method: '
|
|
1533
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
1385
1534
|
const localVarHeaderParameter = {};
|
|
1386
1535
|
const localVarQueryParameter = {};
|
|
1387
1536
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1388
1537
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1389
1538
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1390
1539
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1391
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
1540
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createWorkflowsRequest, localVarRequestOptions, configuration);
|
|
1392
1541
|
return {
|
|
1393
1542
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1394
1543
|
options: localVarRequestOptions,
|
|
@@ -1396,29 +1545,28 @@ const Scout9ApiAxiosParamCreator = function (configuration) {
|
|
|
1396
1545
|
},
|
|
1397
1546
|
/**
|
|
1398
1547
|
*
|
|
1399
|
-
* @summary
|
|
1400
|
-
* @param {
|
|
1548
|
+
* @summary Deletes multiple workflows
|
|
1549
|
+
* @param {Array<string>} [id]
|
|
1401
1550
|
* @param {*} [options] Override http request option.
|
|
1402
1551
|
* @throws {RequiredError}
|
|
1403
1552
|
*/
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
(0, common_1.assertParamExists)('updateWorkflow', 'updateWorkflowRequest', updateWorkflowRequest);
|
|
1407
|
-
const localVarPath = `/v1-workflow`;
|
|
1553
|
+
workflowsDelete: async (id, options = {}) => {
|
|
1554
|
+
const localVarPath = `/v1-workflows`;
|
|
1408
1555
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1409
1556
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1410
1557
|
let baseOptions;
|
|
1411
1558
|
if (configuration) {
|
|
1412
1559
|
baseOptions = configuration.baseOptions;
|
|
1413
1560
|
}
|
|
1414
|
-
const localVarRequestOptions = { method: '
|
|
1561
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
1415
1562
|
const localVarHeaderParameter = {};
|
|
1416
1563
|
const localVarQueryParameter = {};
|
|
1417
|
-
|
|
1564
|
+
if (id) {
|
|
1565
|
+
localVarQueryParameter['id'] = id;
|
|
1566
|
+
}
|
|
1418
1567
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1419
1568
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1420
1569
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1421
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateWorkflowRequest, localVarRequestOptions, configuration);
|
|
1422
1570
|
return {
|
|
1423
1571
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1424
1572
|
options: localVarRequestOptions,
|
|
@@ -1431,9 +1579,9 @@ const Scout9ApiAxiosParamCreator = function (configuration) {
|
|
|
1431
1579
|
* @param {*} [options] Override http request option.
|
|
1432
1580
|
* @throws {RequiredError}
|
|
1433
1581
|
*/
|
|
1434
|
-
|
|
1582
|
+
workflowsUpdate: async (updateWorkflowRequest, options = {}) => {
|
|
1435
1583
|
// verify required parameter 'updateWorkflowRequest' is not null or undefined
|
|
1436
|
-
(0, common_1.assertParamExists)('
|
|
1584
|
+
(0, common_1.assertParamExists)('workflowsUpdate', 'updateWorkflowRequest', updateWorkflowRequest);
|
|
1437
1585
|
const localVarPath = `/v1-workflows`;
|
|
1438
1586
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1439
1587
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -1464,6 +1612,17 @@ exports.Scout9ApiAxiosParamCreator = Scout9ApiAxiosParamCreator;
|
|
|
1464
1612
|
const Scout9ApiFp = function (configuration) {
|
|
1465
1613
|
const localVarAxiosParamCreator = (0, exports.Scout9ApiAxiosParamCreator)(configuration);
|
|
1466
1614
|
return {
|
|
1615
|
+
/**
|
|
1616
|
+
*
|
|
1617
|
+
* @summary Gets a agent
|
|
1618
|
+
* @param {string} id
|
|
1619
|
+
* @param {*} [options] Override http request option.
|
|
1620
|
+
* @throws {RequiredError}
|
|
1621
|
+
*/
|
|
1622
|
+
async agent(id, options) {
|
|
1623
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.agent(id, options);
|
|
1624
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1625
|
+
},
|
|
1467
1626
|
/**
|
|
1468
1627
|
*
|
|
1469
1628
|
* @summary Create a new agent
|
|
@@ -1471,503 +1630,520 @@ const Scout9ApiFp = function (configuration) {
|
|
|
1471
1630
|
* @param {*} [options] Override http request option.
|
|
1472
1631
|
* @throws {RequiredError}
|
|
1473
1632
|
*/
|
|
1474
|
-
async
|
|
1475
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
1633
|
+
async agentCreate(createAgentRequest, options) {
|
|
1634
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.agentCreate(createAgentRequest, options);
|
|
1476
1635
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1477
1636
|
},
|
|
1478
1637
|
/**
|
|
1479
1638
|
*
|
|
1480
|
-
* @summary
|
|
1481
|
-
* @param {
|
|
1639
|
+
* @summary Deletes a agent
|
|
1640
|
+
* @param {string} id
|
|
1482
1641
|
* @param {*} [options] Override http request option.
|
|
1483
1642
|
* @throws {RequiredError}
|
|
1484
1643
|
*/
|
|
1485
|
-
async
|
|
1486
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
1644
|
+
async agentDelete(id, options) {
|
|
1645
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.agentDelete(id, options);
|
|
1487
1646
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1488
1647
|
},
|
|
1489
1648
|
/**
|
|
1490
1649
|
*
|
|
1491
|
-
* @summary
|
|
1492
|
-
* @param {
|
|
1650
|
+
* @summary Update a agent
|
|
1651
|
+
* @param {UpdateAgentRequest} updateAgentRequest
|
|
1493
1652
|
* @param {*} [options] Override http request option.
|
|
1494
1653
|
* @throws {RequiredError}
|
|
1495
1654
|
*/
|
|
1496
|
-
async
|
|
1497
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
1655
|
+
async agentUpdate(updateAgentRequest, options) {
|
|
1656
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.agentUpdate(updateAgentRequest, options);
|
|
1498
1657
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1499
1658
|
},
|
|
1500
1659
|
/**
|
|
1501
1660
|
*
|
|
1502
|
-
* @summary
|
|
1503
|
-
* @param {
|
|
1661
|
+
* @summary Gets all or specific set of agents
|
|
1662
|
+
* @param {string} [q] Query search string to filter results ({field},{operator},{value}) (example firstName,equals,Patrick)
|
|
1663
|
+
* @param {Array<string>} [id]
|
|
1504
1664
|
* @param {*} [options] Override http request option.
|
|
1505
1665
|
* @throws {RequiredError}
|
|
1506
1666
|
*/
|
|
1507
|
-
async
|
|
1508
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
1667
|
+
async agents(q, id, options) {
|
|
1668
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.agents(q, id, options);
|
|
1509
1669
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1510
1670
|
},
|
|
1511
1671
|
/**
|
|
1512
1672
|
*
|
|
1513
|
-
* @summary
|
|
1514
|
-
* @param {
|
|
1673
|
+
* @summary Creates new agents
|
|
1674
|
+
* @param {CreateAgentsRequest} createAgentsRequest
|
|
1515
1675
|
* @param {*} [options] Override http request option.
|
|
1516
1676
|
* @throws {RequiredError}
|
|
1517
1677
|
*/
|
|
1518
|
-
async
|
|
1519
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
1678
|
+
async agentsCreate(createAgentsRequest, options) {
|
|
1679
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.agentsCreate(createAgentsRequest, options);
|
|
1520
1680
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1521
1681
|
},
|
|
1522
1682
|
/**
|
|
1523
1683
|
*
|
|
1524
|
-
* @summary
|
|
1525
|
-
* @param {
|
|
1684
|
+
* @summary Deletes multiple agents
|
|
1685
|
+
* @param {Array<string>} [id]
|
|
1526
1686
|
* @param {*} [options] Override http request option.
|
|
1527
1687
|
* @throws {RequiredError}
|
|
1528
1688
|
*/
|
|
1529
|
-
async
|
|
1530
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
1689
|
+
async agentsDelete(id, options) {
|
|
1690
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.agentsDelete(id, options);
|
|
1531
1691
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1532
1692
|
},
|
|
1533
1693
|
/**
|
|
1534
1694
|
*
|
|
1535
|
-
* @summary
|
|
1536
|
-
* @param {
|
|
1695
|
+
* @summary Updates multiple agents
|
|
1696
|
+
* @param {UpdateAgentsRequest} updateAgentsRequest
|
|
1537
1697
|
* @param {*} [options] Override http request option.
|
|
1538
1698
|
* @throws {RequiredError}
|
|
1539
1699
|
*/
|
|
1540
|
-
async
|
|
1541
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
1700
|
+
async agentsUpdate(updateAgentsRequest, options) {
|
|
1701
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.agentsUpdate(updateAgentsRequest, options);
|
|
1542
1702
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1543
1703
|
},
|
|
1544
1704
|
/**
|
|
1545
1705
|
*
|
|
1546
|
-
* @summary
|
|
1547
|
-
* @param {
|
|
1706
|
+
* @summary Gets a context
|
|
1707
|
+
* @param {string} id
|
|
1548
1708
|
* @param {*} [options] Override http request option.
|
|
1549
1709
|
* @throws {RequiredError}
|
|
1550
1710
|
*/
|
|
1551
|
-
async
|
|
1552
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
1711
|
+
async context(id, options) {
|
|
1712
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.context(id, options);
|
|
1553
1713
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1554
1714
|
},
|
|
1555
1715
|
/**
|
|
1556
1716
|
*
|
|
1557
|
-
* @summary
|
|
1558
|
-
* @param {
|
|
1717
|
+
* @summary Create a new context
|
|
1718
|
+
* @param {CreateContextRequest} createContextRequest
|
|
1559
1719
|
* @param {*} [options] Override http request option.
|
|
1560
1720
|
* @throws {RequiredError}
|
|
1561
1721
|
*/
|
|
1562
|
-
async
|
|
1563
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
1722
|
+
async contextCreate(createContextRequest, options) {
|
|
1723
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.contextCreate(createContextRequest, options);
|
|
1564
1724
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1565
1725
|
},
|
|
1566
1726
|
/**
|
|
1567
1727
|
*
|
|
1568
|
-
* @summary
|
|
1569
|
-
* @param {
|
|
1728
|
+
* @summary Deletes a schedule
|
|
1729
|
+
* @param {string} id
|
|
1570
1730
|
* @param {*} [options] Override http request option.
|
|
1571
1731
|
* @throws {RequiredError}
|
|
1572
1732
|
*/
|
|
1573
|
-
async
|
|
1574
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
1733
|
+
async contextDelete(id, options) {
|
|
1734
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.contextDelete(id, options);
|
|
1575
1735
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1576
1736
|
},
|
|
1577
1737
|
/**
|
|
1578
1738
|
*
|
|
1579
|
-
* @summary
|
|
1580
|
-
* @param {
|
|
1739
|
+
* @summary Update a context
|
|
1740
|
+
* @param {UpdateContextRequest} updateContextRequest
|
|
1581
1741
|
* @param {*} [options] Override http request option.
|
|
1582
1742
|
* @throws {RequiredError}
|
|
1583
1743
|
*/
|
|
1584
|
-
async
|
|
1585
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
1744
|
+
async contextUpdate(updateContextRequest, options) {
|
|
1745
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.contextUpdate(updateContextRequest, options);
|
|
1586
1746
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1587
1747
|
},
|
|
1588
1748
|
/**
|
|
1589
1749
|
*
|
|
1590
|
-
* @summary
|
|
1591
|
-
* @param {
|
|
1750
|
+
* @summary Gets all or specific set of contexts
|
|
1751
|
+
* @param {string} [q] Query search string to filter results ({field},{operator},{value}) (example firstName,equals,Patrick)
|
|
1752
|
+
* @param {Array<string>} [id]
|
|
1592
1753
|
* @param {*} [options] Override http request option.
|
|
1593
1754
|
* @throws {RequiredError}
|
|
1594
1755
|
*/
|
|
1595
|
-
async
|
|
1596
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
1756
|
+
async contexts(q, id, options) {
|
|
1757
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.contexts(q, id, options);
|
|
1597
1758
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1598
1759
|
},
|
|
1599
1760
|
/**
|
|
1600
1761
|
*
|
|
1601
|
-
* @summary
|
|
1602
|
-
* @param {
|
|
1762
|
+
* @summary Creates new contexts
|
|
1763
|
+
* @param {CreateContextsRequest} createContextsRequest
|
|
1603
1764
|
* @param {*} [options] Override http request option.
|
|
1604
1765
|
* @throws {RequiredError}
|
|
1605
1766
|
*/
|
|
1606
|
-
async
|
|
1607
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
1767
|
+
async contextsCreate(createContextsRequest, options) {
|
|
1768
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.contextsCreate(createContextsRequest, options);
|
|
1608
1769
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1609
1770
|
},
|
|
1610
1771
|
/**
|
|
1611
1772
|
*
|
|
1612
|
-
* @summary Deletes multiple
|
|
1613
|
-
* @param {string} id
|
|
1773
|
+
* @summary Deletes multiple contexts
|
|
1774
|
+
* @param {Array<string>} [id]
|
|
1614
1775
|
* @param {*} [options] Override http request option.
|
|
1615
1776
|
* @throws {RequiredError}
|
|
1616
1777
|
*/
|
|
1617
|
-
async
|
|
1618
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
1778
|
+
async contextsDelete(id, options) {
|
|
1779
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.contextsDelete(id, options);
|
|
1619
1780
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1620
1781
|
},
|
|
1621
1782
|
/**
|
|
1622
1783
|
*
|
|
1623
|
-
* @summary
|
|
1624
|
-
* @param {
|
|
1784
|
+
* @summary Updates multiple contexts
|
|
1785
|
+
* @param {UpdateContextRequest} updateContextRequest
|
|
1625
1786
|
* @param {*} [options] Override http request option.
|
|
1626
1787
|
* @throws {RequiredError}
|
|
1627
1788
|
*/
|
|
1628
|
-
async
|
|
1629
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
1789
|
+
async contextsUpdate(updateContextRequest, options) {
|
|
1790
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.contextsUpdate(updateContextRequest, options);
|
|
1630
1791
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1631
1792
|
},
|
|
1632
1793
|
/**
|
|
1633
1794
|
*
|
|
1634
|
-
* @summary
|
|
1635
|
-
* @param {string} id
|
|
1795
|
+
* @summary Gets a conversation
|
|
1796
|
+
* @param {string} id
|
|
1636
1797
|
* @param {*} [options] Override http request option.
|
|
1637
1798
|
* @throws {RequiredError}
|
|
1638
1799
|
*/
|
|
1639
|
-
async
|
|
1640
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
1800
|
+
async conversation(id, options) {
|
|
1801
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.conversation(id, options);
|
|
1641
1802
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1642
1803
|
},
|
|
1643
1804
|
/**
|
|
1644
1805
|
*
|
|
1645
|
-
* @summary
|
|
1646
|
-
* @param {
|
|
1806
|
+
* @summary Create a new conversation
|
|
1807
|
+
* @param {ConversationCreateRequest} conversationCreateRequest
|
|
1647
1808
|
* @param {*} [options] Override http request option.
|
|
1648
1809
|
* @throws {RequiredError}
|
|
1649
1810
|
*/
|
|
1650
|
-
async
|
|
1651
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
1811
|
+
async conversationCreate(conversationCreateRequest, options) {
|
|
1812
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.conversationCreate(conversationCreateRequest, options);
|
|
1652
1813
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1653
1814
|
},
|
|
1654
1815
|
/**
|
|
1655
1816
|
*
|
|
1656
|
-
* @summary Deletes a
|
|
1657
|
-
* @param {string} id
|
|
1817
|
+
* @summary Deletes a schedule
|
|
1818
|
+
* @param {string} id
|
|
1658
1819
|
* @param {*} [options] Override http request option.
|
|
1659
1820
|
* @throws {RequiredError}
|
|
1660
1821
|
*/
|
|
1661
|
-
async
|
|
1662
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
1822
|
+
async conversationDelete(id, options) {
|
|
1823
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.conversationDelete(id, options);
|
|
1663
1824
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1664
1825
|
},
|
|
1665
1826
|
/**
|
|
1666
1827
|
*
|
|
1667
|
-
* @summary
|
|
1668
|
-
* @param {
|
|
1828
|
+
* @summary Update a conversation
|
|
1829
|
+
* @param {ConversationUpdateRequest} conversationUpdateRequest
|
|
1669
1830
|
* @param {*} [options] Override http request option.
|
|
1670
1831
|
* @throws {RequiredError}
|
|
1671
1832
|
*/
|
|
1672
|
-
async
|
|
1673
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
1833
|
+
async conversationUpdate(conversationUpdateRequest, options) {
|
|
1834
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.conversationUpdate(conversationUpdateRequest, options);
|
|
1674
1835
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1675
1836
|
},
|
|
1676
1837
|
/**
|
|
1677
1838
|
*
|
|
1678
|
-
* @summary
|
|
1679
|
-
* @param {string} id
|
|
1839
|
+
* @summary Gets a customer
|
|
1840
|
+
* @param {string} id
|
|
1680
1841
|
* @param {*} [options] Override http request option.
|
|
1681
1842
|
* @throws {RequiredError}
|
|
1682
1843
|
*/
|
|
1683
|
-
async
|
|
1684
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
1844
|
+
async customer(id, options) {
|
|
1845
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.customer(id, options);
|
|
1685
1846
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1686
1847
|
},
|
|
1687
1848
|
/**
|
|
1688
1849
|
*
|
|
1689
|
-
* @summary
|
|
1690
|
-
* @param {
|
|
1850
|
+
* @summary Creates a new customer
|
|
1851
|
+
* @param {CreateCustomerRequest} createCustomerRequest
|
|
1691
1852
|
* @param {*} [options] Override http request option.
|
|
1692
1853
|
* @throws {RequiredError}
|
|
1693
1854
|
*/
|
|
1694
|
-
async
|
|
1695
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
1855
|
+
async customerCreate(createCustomerRequest, options) {
|
|
1856
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.customerCreate(createCustomerRequest, options);
|
|
1696
1857
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1697
1858
|
},
|
|
1698
1859
|
/**
|
|
1699
1860
|
*
|
|
1700
|
-
* @summary Deletes a
|
|
1701
|
-
* @param {string} id
|
|
1861
|
+
* @summary Deletes a customer
|
|
1862
|
+
* @param {string} id
|
|
1702
1863
|
* @param {*} [options] Override http request option.
|
|
1703
1864
|
* @throws {RequiredError}
|
|
1704
1865
|
*/
|
|
1705
|
-
async
|
|
1706
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
1866
|
+
async customerDelete(id, options) {
|
|
1867
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.customerDelete(id, options);
|
|
1707
1868
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1708
1869
|
},
|
|
1709
1870
|
/**
|
|
1710
1871
|
*
|
|
1711
|
-
* @summary
|
|
1712
|
-
* @param {
|
|
1872
|
+
* @summary Updates a customer
|
|
1873
|
+
* @param {UpdateCustomerRequest} updateCustomerRequest
|
|
1713
1874
|
* @param {*} [options] Override http request option.
|
|
1714
1875
|
* @throws {RequiredError}
|
|
1715
1876
|
*/
|
|
1716
|
-
async
|
|
1717
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
1877
|
+
async customerUpdate(updateCustomerRequest, options) {
|
|
1878
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.customerUpdate(updateCustomerRequest, options);
|
|
1718
1879
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1719
1880
|
},
|
|
1720
1881
|
/**
|
|
1721
1882
|
*
|
|
1722
|
-
* @summary
|
|
1723
|
-
* @param {
|
|
1883
|
+
* @summary Gets all or specific set of customers
|
|
1884
|
+
* @param {string} [q] Query search string to filter results ({field},{operator},{value}) (example firstName,equals,Patrick)
|
|
1885
|
+
* @param {Array<string>} [id]
|
|
1724
1886
|
* @param {*} [options] Override http request option.
|
|
1725
1887
|
* @throws {RequiredError}
|
|
1726
1888
|
*/
|
|
1727
|
-
async
|
|
1728
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
1889
|
+
async customers(q, id, options) {
|
|
1890
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.customers(q, id, options);
|
|
1729
1891
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1730
1892
|
},
|
|
1731
1893
|
/**
|
|
1732
1894
|
*
|
|
1733
|
-
* @summary
|
|
1734
|
-
* @param {
|
|
1895
|
+
* @summary Creates new customers
|
|
1896
|
+
* @param {CreateCustomersRequest} createCustomersRequest
|
|
1735
1897
|
* @param {*} [options] Override http request option.
|
|
1736
1898
|
* @throws {RequiredError}
|
|
1737
1899
|
*/
|
|
1738
|
-
async
|
|
1739
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
1900
|
+
async customersCreate(createCustomersRequest, options) {
|
|
1901
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.customersCreate(createCustomersRequest, options);
|
|
1740
1902
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1741
1903
|
},
|
|
1742
1904
|
/**
|
|
1743
1905
|
*
|
|
1744
|
-
* @summary
|
|
1745
|
-
* @param {string} [id]
|
|
1906
|
+
* @summary Deletes multiple customers
|
|
1907
|
+
* @param {Array<string>} [id]
|
|
1746
1908
|
* @param {*} [options] Override http request option.
|
|
1747
1909
|
* @throws {RequiredError}
|
|
1748
1910
|
*/
|
|
1749
|
-
async
|
|
1750
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
1911
|
+
async customersDelete(id, options) {
|
|
1912
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.customersDelete(id, options);
|
|
1751
1913
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1752
1914
|
},
|
|
1753
1915
|
/**
|
|
1754
1916
|
*
|
|
1755
|
-
* @summary
|
|
1756
|
-
* @param {
|
|
1917
|
+
* @summary Updates multiple customers
|
|
1918
|
+
* @param {UpdateCustomerRequest} updateCustomerRequest
|
|
1757
1919
|
* @param {*} [options] Override http request option.
|
|
1758
1920
|
* @throws {RequiredError}
|
|
1759
1921
|
*/
|
|
1760
|
-
async
|
|
1761
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
1922
|
+
async customersUpdate(updateCustomerRequest, options) {
|
|
1923
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.customersUpdate(updateCustomerRequest, options);
|
|
1762
1924
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1763
1925
|
},
|
|
1764
1926
|
/**
|
|
1765
|
-
*
|
|
1766
|
-
* @summary
|
|
1767
|
-
* @param {
|
|
1927
|
+
* 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.
|
|
1928
|
+
* @summary Generate a message from conversation
|
|
1929
|
+
* @param {GenerateRequest} generateRequest
|
|
1930
|
+
* @param {*} [options] Override http request option.
|
|
1931
|
+
* @throws {RequiredError}
|
|
1932
|
+
*/
|
|
1933
|
+
async generate(generateRequest, options) {
|
|
1934
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.generate(generateRequest, options);
|
|
1935
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1936
|
+
},
|
|
1937
|
+
/**
|
|
1938
|
+
* 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
|
|
1939
|
+
* @summary Create and send message
|
|
1940
|
+
* @param {MessageCreateRequest} messageCreateRequest
|
|
1768
1941
|
* @param {*} [options] Override http request option.
|
|
1769
1942
|
* @throws {RequiredError}
|
|
1770
1943
|
*/
|
|
1771
|
-
async
|
|
1772
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
1944
|
+
async message(messageCreateRequest, options) {
|
|
1945
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.message(messageCreateRequest, options);
|
|
1773
1946
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1774
1947
|
},
|
|
1775
1948
|
/**
|
|
1776
1949
|
*
|
|
1777
|
-
* @summary
|
|
1778
|
-
* @param {string}
|
|
1950
|
+
* @summary Get all messages from a conversation
|
|
1951
|
+
* @param {string} [q] Query search string to filter results ({field},{operator},{value}) (example firstName,equals,Patrick)
|
|
1952
|
+
* @param {Array<string>} [id]
|
|
1779
1953
|
* @param {*} [options] Override http request option.
|
|
1780
1954
|
* @throws {RequiredError}
|
|
1781
1955
|
*/
|
|
1782
|
-
async
|
|
1783
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
1956
|
+
async messages(q, id, options) {
|
|
1957
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.messages(q, id, options);
|
|
1784
1958
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1785
1959
|
},
|
|
1786
1960
|
/**
|
|
1787
1961
|
*
|
|
1788
|
-
* @summary
|
|
1789
|
-
* @param {string} id
|
|
1962
|
+
* @summary Get the results of a bulk API operation
|
|
1963
|
+
* @param {string} id
|
|
1790
1964
|
* @param {*} [options] Override http request option.
|
|
1791
1965
|
* @throws {RequiredError}
|
|
1792
1966
|
*/
|
|
1793
|
-
async
|
|
1794
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
1967
|
+
async operation(id, options) {
|
|
1968
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.operation(id, options);
|
|
1795
1969
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1796
1970
|
},
|
|
1797
1971
|
/**
|
|
1798
1972
|
*
|
|
1799
|
-
* @summary Gets all or specific set of
|
|
1800
|
-
* @param {string} [
|
|
1973
|
+
* @summary Gets all or specific set of bulk API operations
|
|
1974
|
+
* @param {string} [q] Query search string to filter results ({field},{operator},{value}) (example firstName,equals,Patrick)
|
|
1975
|
+
* @param {Array<string>} [id]
|
|
1801
1976
|
* @param {*} [options] Override http request option.
|
|
1802
1977
|
* @throws {RequiredError}
|
|
1803
1978
|
*/
|
|
1804
|
-
async
|
|
1805
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
1979
|
+
async operations(q, id, options) {
|
|
1980
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.operations(q, id, options);
|
|
1806
1981
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1807
1982
|
},
|
|
1808
1983
|
/**
|
|
1809
1984
|
*
|
|
1810
|
-
* @summary
|
|
1811
|
-
* @param {
|
|
1985
|
+
* @summary Creates a new scheduled conversation
|
|
1986
|
+
* @param {ScheduleCreateRequest} scheduleCreateRequest
|
|
1812
1987
|
* @param {*} [options] Override http request option.
|
|
1813
1988
|
* @throws {RequiredError}
|
|
1814
1989
|
*/
|
|
1815
|
-
async
|
|
1816
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
1990
|
+
async scheduleCreate(scheduleCreateRequest, options) {
|
|
1991
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.scheduleCreate(scheduleCreateRequest, options);
|
|
1817
1992
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1818
1993
|
},
|
|
1819
1994
|
/**
|
|
1820
1995
|
*
|
|
1821
|
-
* @summary
|
|
1822
|
-
* @param {string} id
|
|
1996
|
+
* @summary Deletes a schedule
|
|
1997
|
+
* @param {string} id
|
|
1823
1998
|
* @param {*} [options] Override http request option.
|
|
1824
1999
|
* @throws {RequiredError}
|
|
1825
2000
|
*/
|
|
1826
|
-
async
|
|
1827
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
2001
|
+
async scheduleDelete(id, options) {
|
|
2002
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.scheduleDelete(id, options);
|
|
1828
2003
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1829
2004
|
},
|
|
1830
2005
|
/**
|
|
1831
2006
|
*
|
|
1832
|
-
* @summary
|
|
1833
|
-
* @param {
|
|
2007
|
+
* @summary Creates a new schedule group
|
|
2008
|
+
* @param {ScheduleGroupCreateRequest} scheduleGroupCreateRequest
|
|
1834
2009
|
* @param {*} [options] Override http request option.
|
|
1835
2010
|
* @throws {RequiredError}
|
|
1836
2011
|
*/
|
|
1837
|
-
async
|
|
1838
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
2012
|
+
async scheduleGroupCreate(scheduleGroupCreateRequest, options) {
|
|
2013
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.scheduleGroupCreate(scheduleGroupCreateRequest, options);
|
|
1839
2014
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1840
2015
|
},
|
|
1841
2016
|
/**
|
|
1842
2017
|
*
|
|
1843
|
-
* @summary
|
|
1844
|
-
* @param {string} id
|
|
2018
|
+
* @summary Deletes and cancels a schedule group
|
|
2019
|
+
* @param {string} id
|
|
1845
2020
|
* @param {*} [options] Override http request option.
|
|
1846
2021
|
* @throws {RequiredError}
|
|
1847
2022
|
*/
|
|
1848
|
-
async
|
|
1849
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
2023
|
+
async scheduleGroupDelete(id, options) {
|
|
2024
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.scheduleGroupDelete(id, options);
|
|
1850
2025
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1851
2026
|
},
|
|
1852
2027
|
/**
|
|
1853
2028
|
*
|
|
1854
|
-
* @summary Gets
|
|
1855
|
-
* @param {string}
|
|
2029
|
+
* @summary Gets a schedule group
|
|
2030
|
+
* @param {string} id
|
|
1856
2031
|
* @param {*} [options] Override http request option.
|
|
1857
2032
|
* @throws {RequiredError}
|
|
1858
2033
|
*/
|
|
1859
|
-
async
|
|
1860
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
2034
|
+
async scheduleGroupRetrieve(id, options) {
|
|
2035
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.scheduleGroupRetrieve(id, options);
|
|
1861
2036
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1862
2037
|
},
|
|
1863
2038
|
/**
|
|
1864
2039
|
*
|
|
1865
|
-
* @summary
|
|
1866
|
-
* @param {
|
|
2040
|
+
* @summary Updates a schedule group
|
|
2041
|
+
* @param {ScheduleGroupUpdateRequest} scheduleGroupUpdateRequest
|
|
1867
2042
|
* @param {*} [options] Override http request option.
|
|
1868
2043
|
* @throws {RequiredError}
|
|
1869
2044
|
*/
|
|
1870
|
-
async
|
|
1871
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
2045
|
+
async scheduleGroupUpdate(scheduleGroupUpdateRequest, options) {
|
|
2046
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.scheduleGroupUpdate(scheduleGroupUpdateRequest, options);
|
|
1872
2047
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1873
2048
|
},
|
|
1874
2049
|
/**
|
|
1875
2050
|
*
|
|
1876
|
-
* @summary
|
|
1877
|
-
* @param {
|
|
2051
|
+
* @summary Gets a schedule
|
|
2052
|
+
* @param {string} id
|
|
1878
2053
|
* @param {*} [options] Override http request option.
|
|
1879
2054
|
* @throws {RequiredError}
|
|
1880
2055
|
*/
|
|
1881
|
-
async
|
|
1882
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
2056
|
+
async scheduleRetrieve(id, options) {
|
|
2057
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.scheduleRetrieve(id, options);
|
|
1883
2058
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1884
2059
|
},
|
|
1885
2060
|
/**
|
|
1886
2061
|
*
|
|
1887
|
-
* @summary
|
|
1888
|
-
* @param {
|
|
2062
|
+
* @summary Updates a schedule
|
|
2063
|
+
* @param {ScheduleUpdateRequest} scheduleUpdateRequest
|
|
1889
2064
|
* @param {*} [options] Override http request option.
|
|
1890
2065
|
* @throws {RequiredError}
|
|
1891
2066
|
*/
|
|
1892
|
-
async
|
|
1893
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
2067
|
+
async scheduleUpdate(scheduleUpdateRequest, options) {
|
|
2068
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.scheduleUpdate(scheduleUpdateRequest, options);
|
|
1894
2069
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1895
2070
|
},
|
|
1896
2071
|
/**
|
|
1897
2072
|
*
|
|
1898
|
-
* @summary
|
|
1899
|
-
* @param {
|
|
2073
|
+
* @summary Gets a workflow
|
|
2074
|
+
* @param {string} id
|
|
1900
2075
|
* @param {*} [options] Override http request option.
|
|
1901
2076
|
* @throws {RequiredError}
|
|
1902
2077
|
*/
|
|
1903
|
-
async
|
|
1904
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
2078
|
+
async workflow(id, options) {
|
|
2079
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.workflow(id, options);
|
|
1905
2080
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1906
2081
|
},
|
|
1907
2082
|
/**
|
|
1908
2083
|
*
|
|
1909
|
-
* @summary
|
|
1910
|
-
* @param {
|
|
2084
|
+
* @summary Create a new workflow
|
|
2085
|
+
* @param {CreateWorkflowRequest} createWorkflowRequest
|
|
1911
2086
|
* @param {*} [options] Override http request option.
|
|
1912
2087
|
* @throws {RequiredError}
|
|
1913
2088
|
*/
|
|
1914
|
-
async
|
|
1915
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
2089
|
+
async workflowCreate(createWorkflowRequest, options) {
|
|
2090
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.workflowCreate(createWorkflowRequest, options);
|
|
1916
2091
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1917
2092
|
},
|
|
1918
2093
|
/**
|
|
1919
2094
|
*
|
|
1920
|
-
* @summary
|
|
1921
|
-
* @param {
|
|
2095
|
+
* @summary Deletes a workflow
|
|
2096
|
+
* @param {string} id
|
|
1922
2097
|
* @param {*} [options] Override http request option.
|
|
1923
2098
|
* @throws {RequiredError}
|
|
1924
2099
|
*/
|
|
1925
|
-
async
|
|
1926
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
2100
|
+
async workflowDelete(id, options) {
|
|
2101
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.workflowDelete(id, options);
|
|
1927
2102
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1928
2103
|
},
|
|
1929
2104
|
/**
|
|
1930
2105
|
*
|
|
1931
|
-
* @summary
|
|
1932
|
-
* @param {
|
|
2106
|
+
* @summary Update a workflow
|
|
2107
|
+
* @param {UpdateWorkflowRequest} updateWorkflowRequest
|
|
1933
2108
|
* @param {*} [options] Override http request option.
|
|
1934
2109
|
* @throws {RequiredError}
|
|
1935
2110
|
*/
|
|
1936
|
-
async
|
|
1937
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
2111
|
+
async workflowUpdate(updateWorkflowRequest, options) {
|
|
2112
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.workflowUpdate(updateWorkflowRequest, options);
|
|
1938
2113
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1939
2114
|
},
|
|
1940
2115
|
/**
|
|
1941
2116
|
*
|
|
1942
|
-
* @summary
|
|
1943
|
-
* @param {
|
|
2117
|
+
* @summary Gets all or specific set of workflows
|
|
2118
|
+
* @param {string} [q] Query search string to filter results ({field},{operator},{value}) (example firstName,equals,Patrick)
|
|
2119
|
+
* @param {Array<string>} [id]
|
|
1944
2120
|
* @param {*} [options] Override http request option.
|
|
1945
2121
|
* @throws {RequiredError}
|
|
1946
2122
|
*/
|
|
1947
|
-
async
|
|
1948
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
2123
|
+
async workflows(q, id, options) {
|
|
2124
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.workflows(q, id, options);
|
|
1949
2125
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1950
2126
|
},
|
|
1951
2127
|
/**
|
|
1952
2128
|
*
|
|
1953
|
-
* @summary
|
|
1954
|
-
* @param {
|
|
2129
|
+
* @summary Creates new workflows
|
|
2130
|
+
* @param {CreateWorkflowsRequest} createWorkflowsRequest
|
|
1955
2131
|
* @param {*} [options] Override http request option.
|
|
1956
2132
|
* @throws {RequiredError}
|
|
1957
2133
|
*/
|
|
1958
|
-
async
|
|
1959
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
2134
|
+
async workflowsCreate(createWorkflowsRequest, options) {
|
|
2135
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.workflowsCreate(createWorkflowsRequest, options);
|
|
1960
2136
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1961
2137
|
},
|
|
1962
2138
|
/**
|
|
1963
2139
|
*
|
|
1964
|
-
* @summary
|
|
1965
|
-
* @param {
|
|
2140
|
+
* @summary Deletes multiple workflows
|
|
2141
|
+
* @param {Array<string>} [id]
|
|
1966
2142
|
* @param {*} [options] Override http request option.
|
|
1967
2143
|
* @throws {RequiredError}
|
|
1968
2144
|
*/
|
|
1969
|
-
async
|
|
1970
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
2145
|
+
async workflowsDelete(id, options) {
|
|
2146
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.workflowsDelete(id, options);
|
|
1971
2147
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1972
2148
|
},
|
|
1973
2149
|
/**
|
|
@@ -1977,8 +2153,8 @@ const Scout9ApiFp = function (configuration) {
|
|
|
1977
2153
|
* @param {*} [options] Override http request option.
|
|
1978
2154
|
* @throws {RequiredError}
|
|
1979
2155
|
*/
|
|
1980
|
-
async
|
|
1981
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
2156
|
+
async workflowsUpdate(updateWorkflowRequest, options) {
|
|
2157
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.workflowsUpdate(updateWorkflowRequest, options);
|
|
1982
2158
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1983
2159
|
},
|
|
1984
2160
|
};
|
|
@@ -1991,6 +2167,16 @@ exports.Scout9ApiFp = Scout9ApiFp;
|
|
|
1991
2167
|
const Scout9ApiFactory = function (configuration, basePath, axios) {
|
|
1992
2168
|
const localVarFp = (0, exports.Scout9ApiFp)(configuration);
|
|
1993
2169
|
return {
|
|
2170
|
+
/**
|
|
2171
|
+
*
|
|
2172
|
+
* @summary Gets a agent
|
|
2173
|
+
* @param {string} id
|
|
2174
|
+
* @param {*} [options] Override http request option.
|
|
2175
|
+
* @throws {RequiredError}
|
|
2176
|
+
*/
|
|
2177
|
+
agent(id, options) {
|
|
2178
|
+
return localVarFp.agent(id, options).then((request) => request(axios, basePath));
|
|
2179
|
+
},
|
|
1994
2180
|
/**
|
|
1995
2181
|
*
|
|
1996
2182
|
* @summary Create a new agent
|
|
@@ -1998,458 +2184,474 @@ const Scout9ApiFactory = function (configuration, basePath, axios) {
|
|
|
1998
2184
|
* @param {*} [options] Override http request option.
|
|
1999
2185
|
* @throws {RequiredError}
|
|
2000
2186
|
*/
|
|
2001
|
-
|
|
2002
|
-
return localVarFp.
|
|
2187
|
+
agentCreate(createAgentRequest, options) {
|
|
2188
|
+
return localVarFp.agentCreate(createAgentRequest, options).then((request) => request(axios, basePath));
|
|
2003
2189
|
},
|
|
2004
2190
|
/**
|
|
2005
2191
|
*
|
|
2006
|
-
* @summary
|
|
2007
|
-
* @param {
|
|
2192
|
+
* @summary Deletes a agent
|
|
2193
|
+
* @param {string} id
|
|
2008
2194
|
* @param {*} [options] Override http request option.
|
|
2009
2195
|
* @throws {RequiredError}
|
|
2010
2196
|
*/
|
|
2011
|
-
|
|
2012
|
-
return localVarFp.
|
|
2197
|
+
agentDelete(id, options) {
|
|
2198
|
+
return localVarFp.agentDelete(id, options).then((request) => request(axios, basePath));
|
|
2013
2199
|
},
|
|
2014
2200
|
/**
|
|
2015
2201
|
*
|
|
2016
|
-
* @summary
|
|
2017
|
-
* @param {
|
|
2202
|
+
* @summary Update a agent
|
|
2203
|
+
* @param {UpdateAgentRequest} updateAgentRequest
|
|
2018
2204
|
* @param {*} [options] Override http request option.
|
|
2019
2205
|
* @throws {RequiredError}
|
|
2020
2206
|
*/
|
|
2021
|
-
|
|
2022
|
-
return localVarFp.
|
|
2207
|
+
agentUpdate(updateAgentRequest, options) {
|
|
2208
|
+
return localVarFp.agentUpdate(updateAgentRequest, options).then((request) => request(axios, basePath));
|
|
2023
2209
|
},
|
|
2024
2210
|
/**
|
|
2025
2211
|
*
|
|
2026
|
-
* @summary
|
|
2027
|
-
* @param {
|
|
2212
|
+
* @summary Gets all or specific set of agents
|
|
2213
|
+
* @param {string} [q] Query search string to filter results ({field},{operator},{value}) (example firstName,equals,Patrick)
|
|
2214
|
+
* @param {Array<string>} [id]
|
|
2028
2215
|
* @param {*} [options] Override http request option.
|
|
2029
2216
|
* @throws {RequiredError}
|
|
2030
2217
|
*/
|
|
2031
|
-
|
|
2032
|
-
return localVarFp.
|
|
2218
|
+
agents(q, id, options) {
|
|
2219
|
+
return localVarFp.agents(q, id, options).then((request) => request(axios, basePath));
|
|
2033
2220
|
},
|
|
2034
2221
|
/**
|
|
2035
2222
|
*
|
|
2036
|
-
* @summary
|
|
2037
|
-
* @param {
|
|
2223
|
+
* @summary Creates new agents
|
|
2224
|
+
* @param {CreateAgentsRequest} createAgentsRequest
|
|
2038
2225
|
* @param {*} [options] Override http request option.
|
|
2039
2226
|
* @throws {RequiredError}
|
|
2040
2227
|
*/
|
|
2041
|
-
|
|
2042
|
-
return localVarFp.
|
|
2228
|
+
agentsCreate(createAgentsRequest, options) {
|
|
2229
|
+
return localVarFp.agentsCreate(createAgentsRequest, options).then((request) => request(axios, basePath));
|
|
2043
2230
|
},
|
|
2044
2231
|
/**
|
|
2045
2232
|
*
|
|
2046
|
-
* @summary
|
|
2047
|
-
* @param {
|
|
2233
|
+
* @summary Deletes multiple agents
|
|
2234
|
+
* @param {Array<string>} [id]
|
|
2048
2235
|
* @param {*} [options] Override http request option.
|
|
2049
2236
|
* @throws {RequiredError}
|
|
2050
2237
|
*/
|
|
2051
|
-
|
|
2052
|
-
return localVarFp.
|
|
2238
|
+
agentsDelete(id, options) {
|
|
2239
|
+
return localVarFp.agentsDelete(id, options).then((request) => request(axios, basePath));
|
|
2053
2240
|
},
|
|
2054
2241
|
/**
|
|
2055
2242
|
*
|
|
2056
|
-
* @summary
|
|
2057
|
-
* @param {
|
|
2243
|
+
* @summary Updates multiple agents
|
|
2244
|
+
* @param {UpdateAgentsRequest} updateAgentsRequest
|
|
2058
2245
|
* @param {*} [options] Override http request option.
|
|
2059
2246
|
* @throws {RequiredError}
|
|
2060
2247
|
*/
|
|
2061
|
-
|
|
2062
|
-
return localVarFp.
|
|
2248
|
+
agentsUpdate(updateAgentsRequest, options) {
|
|
2249
|
+
return localVarFp.agentsUpdate(updateAgentsRequest, options).then((request) => request(axios, basePath));
|
|
2063
2250
|
},
|
|
2064
2251
|
/**
|
|
2065
2252
|
*
|
|
2066
|
-
* @summary
|
|
2067
|
-
* @param {
|
|
2253
|
+
* @summary Gets a context
|
|
2254
|
+
* @param {string} id
|
|
2068
2255
|
* @param {*} [options] Override http request option.
|
|
2069
2256
|
* @throws {RequiredError}
|
|
2070
2257
|
*/
|
|
2071
|
-
|
|
2072
|
-
return localVarFp.
|
|
2258
|
+
context(id, options) {
|
|
2259
|
+
return localVarFp.context(id, options).then((request) => request(axios, basePath));
|
|
2073
2260
|
},
|
|
2074
2261
|
/**
|
|
2075
2262
|
*
|
|
2076
|
-
* @summary
|
|
2077
|
-
* @param {
|
|
2263
|
+
* @summary Create a new context
|
|
2264
|
+
* @param {CreateContextRequest} createContextRequest
|
|
2265
|
+
* @param {*} [options] Override http request option.
|
|
2266
|
+
* @throws {RequiredError}
|
|
2267
|
+
*/
|
|
2268
|
+
contextCreate(createContextRequest, options) {
|
|
2269
|
+
return localVarFp.contextCreate(createContextRequest, options).then((request) => request(axios, basePath));
|
|
2270
|
+
},
|
|
2271
|
+
/**
|
|
2272
|
+
*
|
|
2273
|
+
* @summary Deletes a schedule
|
|
2274
|
+
* @param {string} id
|
|
2078
2275
|
* @param {*} [options] Override http request option.
|
|
2079
2276
|
* @throws {RequiredError}
|
|
2080
2277
|
*/
|
|
2081
|
-
|
|
2082
|
-
return localVarFp.
|
|
2278
|
+
contextDelete(id, options) {
|
|
2279
|
+
return localVarFp.contextDelete(id, options).then((request) => request(axios, basePath));
|
|
2083
2280
|
},
|
|
2084
2281
|
/**
|
|
2085
2282
|
*
|
|
2086
|
-
* @summary
|
|
2087
|
-
* @param {
|
|
2283
|
+
* @summary Update a context
|
|
2284
|
+
* @param {UpdateContextRequest} updateContextRequest
|
|
2088
2285
|
* @param {*} [options] Override http request option.
|
|
2089
2286
|
* @throws {RequiredError}
|
|
2090
2287
|
*/
|
|
2091
|
-
|
|
2092
|
-
return localVarFp.
|
|
2288
|
+
contextUpdate(updateContextRequest, options) {
|
|
2289
|
+
return localVarFp.contextUpdate(updateContextRequest, options).then((request) => request(axios, basePath));
|
|
2093
2290
|
},
|
|
2094
2291
|
/**
|
|
2095
2292
|
*
|
|
2096
|
-
* @summary
|
|
2097
|
-
* @param {
|
|
2293
|
+
* @summary Gets all or specific set of contexts
|
|
2294
|
+
* @param {string} [q] Query search string to filter results ({field},{operator},{value}) (example firstName,equals,Patrick)
|
|
2295
|
+
* @param {Array<string>} [id]
|
|
2098
2296
|
* @param {*} [options] Override http request option.
|
|
2099
2297
|
* @throws {RequiredError}
|
|
2100
2298
|
*/
|
|
2101
|
-
|
|
2102
|
-
return localVarFp.
|
|
2299
|
+
contexts(q, id, options) {
|
|
2300
|
+
return localVarFp.contexts(q, id, options).then((request) => request(axios, basePath));
|
|
2103
2301
|
},
|
|
2104
2302
|
/**
|
|
2105
2303
|
*
|
|
2106
|
-
* @summary Creates new
|
|
2107
|
-
* @param {
|
|
2304
|
+
* @summary Creates new contexts
|
|
2305
|
+
* @param {CreateContextsRequest} createContextsRequest
|
|
2108
2306
|
* @param {*} [options] Override http request option.
|
|
2109
2307
|
* @throws {RequiredError}
|
|
2110
2308
|
*/
|
|
2111
|
-
|
|
2112
|
-
return localVarFp.
|
|
2309
|
+
contextsCreate(createContextsRequest, options) {
|
|
2310
|
+
return localVarFp.contextsCreate(createContextsRequest, options).then((request) => request(axios, basePath));
|
|
2113
2311
|
},
|
|
2114
2312
|
/**
|
|
2115
2313
|
*
|
|
2116
|
-
* @summary Deletes
|
|
2117
|
-
* @param {string} id
|
|
2314
|
+
* @summary Deletes multiple contexts
|
|
2315
|
+
* @param {Array<string>} [id]
|
|
2118
2316
|
* @param {*} [options] Override http request option.
|
|
2119
2317
|
* @throws {RequiredError}
|
|
2120
2318
|
*/
|
|
2121
|
-
|
|
2122
|
-
return localVarFp.
|
|
2319
|
+
contextsDelete(id, options) {
|
|
2320
|
+
return localVarFp.contextsDelete(id, options).then((request) => request(axios, basePath));
|
|
2123
2321
|
},
|
|
2124
2322
|
/**
|
|
2125
2323
|
*
|
|
2126
|
-
* @summary
|
|
2127
|
-
* @param {
|
|
2324
|
+
* @summary Updates multiple contexts
|
|
2325
|
+
* @param {UpdateContextRequest} updateContextRequest
|
|
2128
2326
|
* @param {*} [options] Override http request option.
|
|
2129
2327
|
* @throws {RequiredError}
|
|
2130
2328
|
*/
|
|
2131
|
-
|
|
2132
|
-
return localVarFp.
|
|
2329
|
+
contextsUpdate(updateContextRequest, options) {
|
|
2330
|
+
return localVarFp.contextsUpdate(updateContextRequest, options).then((request) => request(axios, basePath));
|
|
2133
2331
|
},
|
|
2134
2332
|
/**
|
|
2135
2333
|
*
|
|
2136
|
-
* @summary
|
|
2137
|
-
* @param {string} id
|
|
2334
|
+
* @summary Gets a conversation
|
|
2335
|
+
* @param {string} id
|
|
2138
2336
|
* @param {*} [options] Override http request option.
|
|
2139
2337
|
* @throws {RequiredError}
|
|
2140
2338
|
*/
|
|
2141
|
-
|
|
2142
|
-
return localVarFp.
|
|
2339
|
+
conversation(id, options) {
|
|
2340
|
+
return localVarFp.conversation(id, options).then((request) => request(axios, basePath));
|
|
2143
2341
|
},
|
|
2144
2342
|
/**
|
|
2145
2343
|
*
|
|
2146
|
-
* @summary
|
|
2147
|
-
* @param {
|
|
2344
|
+
* @summary Create a new conversation
|
|
2345
|
+
* @param {ConversationCreateRequest} conversationCreateRequest
|
|
2148
2346
|
* @param {*} [options] Override http request option.
|
|
2149
2347
|
* @throws {RequiredError}
|
|
2150
2348
|
*/
|
|
2151
|
-
|
|
2152
|
-
return localVarFp.
|
|
2349
|
+
conversationCreate(conversationCreateRequest, options) {
|
|
2350
|
+
return localVarFp.conversationCreate(conversationCreateRequest, options).then((request) => request(axios, basePath));
|
|
2153
2351
|
},
|
|
2154
2352
|
/**
|
|
2155
2353
|
*
|
|
2156
2354
|
* @summary Deletes a schedule
|
|
2157
|
-
* @param {string} id
|
|
2355
|
+
* @param {string} id
|
|
2158
2356
|
* @param {*} [options] Override http request option.
|
|
2159
2357
|
* @throws {RequiredError}
|
|
2160
2358
|
*/
|
|
2161
|
-
|
|
2162
|
-
return localVarFp.
|
|
2359
|
+
conversationDelete(id, options) {
|
|
2360
|
+
return localVarFp.conversationDelete(id, options).then((request) => request(axios, basePath));
|
|
2163
2361
|
},
|
|
2164
2362
|
/**
|
|
2165
2363
|
*
|
|
2166
|
-
* @summary
|
|
2167
|
-
* @param {
|
|
2364
|
+
* @summary Update a conversation
|
|
2365
|
+
* @param {ConversationUpdateRequest} conversationUpdateRequest
|
|
2168
2366
|
* @param {*} [options] Override http request option.
|
|
2169
2367
|
* @throws {RequiredError}
|
|
2170
2368
|
*/
|
|
2171
|
-
|
|
2172
|
-
return localVarFp.
|
|
2369
|
+
conversationUpdate(conversationUpdateRequest, options) {
|
|
2370
|
+
return localVarFp.conversationUpdate(conversationUpdateRequest, options).then((request) => request(axios, basePath));
|
|
2173
2371
|
},
|
|
2174
2372
|
/**
|
|
2175
2373
|
*
|
|
2176
|
-
* @summary
|
|
2177
|
-
* @param {string} id
|
|
2374
|
+
* @summary Gets a customer
|
|
2375
|
+
* @param {string} id
|
|
2178
2376
|
* @param {*} [options] Override http request option.
|
|
2179
2377
|
* @throws {RequiredError}
|
|
2180
2378
|
*/
|
|
2181
|
-
|
|
2182
|
-
return localVarFp.
|
|
2379
|
+
customer(id, options) {
|
|
2380
|
+
return localVarFp.customer(id, options).then((request) => request(axios, basePath));
|
|
2183
2381
|
},
|
|
2184
2382
|
/**
|
|
2185
2383
|
*
|
|
2186
|
-
* @summary
|
|
2187
|
-
* @param {
|
|
2384
|
+
* @summary Creates a new customer
|
|
2385
|
+
* @param {CreateCustomerRequest} createCustomerRequest
|
|
2188
2386
|
* @param {*} [options] Override http request option.
|
|
2189
2387
|
* @throws {RequiredError}
|
|
2190
2388
|
*/
|
|
2191
|
-
|
|
2192
|
-
return localVarFp.
|
|
2389
|
+
customerCreate(createCustomerRequest, options) {
|
|
2390
|
+
return localVarFp.customerCreate(createCustomerRequest, options).then((request) => request(axios, basePath));
|
|
2193
2391
|
},
|
|
2194
2392
|
/**
|
|
2195
2393
|
*
|
|
2196
|
-
* @summary Deletes a
|
|
2197
|
-
* @param {string} id
|
|
2394
|
+
* @summary Deletes a customer
|
|
2395
|
+
* @param {string} id
|
|
2198
2396
|
* @param {*} [options] Override http request option.
|
|
2199
2397
|
* @throws {RequiredError}
|
|
2200
2398
|
*/
|
|
2201
|
-
|
|
2202
|
-
return localVarFp.
|
|
2399
|
+
customerDelete(id, options) {
|
|
2400
|
+
return localVarFp.customerDelete(id, options).then((request) => request(axios, basePath));
|
|
2203
2401
|
},
|
|
2204
2402
|
/**
|
|
2205
2403
|
*
|
|
2206
|
-
* @summary
|
|
2207
|
-
* @param {
|
|
2404
|
+
* @summary Updates a customer
|
|
2405
|
+
* @param {UpdateCustomerRequest} updateCustomerRequest
|
|
2208
2406
|
* @param {*} [options] Override http request option.
|
|
2209
2407
|
* @throws {RequiredError}
|
|
2210
2408
|
*/
|
|
2211
|
-
|
|
2212
|
-
return localVarFp.
|
|
2409
|
+
customerUpdate(updateCustomerRequest, options) {
|
|
2410
|
+
return localVarFp.customerUpdate(updateCustomerRequest, options).then((request) => request(axios, basePath));
|
|
2213
2411
|
},
|
|
2214
2412
|
/**
|
|
2215
2413
|
*
|
|
2216
|
-
* @summary
|
|
2217
|
-
* @param {string}
|
|
2414
|
+
* @summary Gets all or specific set of customers
|
|
2415
|
+
* @param {string} [q] Query search string to filter results ({field},{operator},{value}) (example firstName,equals,Patrick)
|
|
2416
|
+
* @param {Array<string>} [id]
|
|
2218
2417
|
* @param {*} [options] Override http request option.
|
|
2219
2418
|
* @throws {RequiredError}
|
|
2220
2419
|
*/
|
|
2221
|
-
|
|
2222
|
-
return localVarFp.
|
|
2420
|
+
customers(q, id, options) {
|
|
2421
|
+
return localVarFp.customers(q, id, options).then((request) => request(axios, basePath));
|
|
2223
2422
|
},
|
|
2224
2423
|
/**
|
|
2225
2424
|
*
|
|
2226
|
-
* @summary
|
|
2227
|
-
* @param {
|
|
2425
|
+
* @summary Creates new customers
|
|
2426
|
+
* @param {CreateCustomersRequest} createCustomersRequest
|
|
2228
2427
|
* @param {*} [options] Override http request option.
|
|
2229
2428
|
* @throws {RequiredError}
|
|
2230
2429
|
*/
|
|
2231
|
-
|
|
2232
|
-
return localVarFp.
|
|
2430
|
+
customersCreate(createCustomersRequest, options) {
|
|
2431
|
+
return localVarFp.customersCreate(createCustomersRequest, options).then((request) => request(axios, basePath));
|
|
2233
2432
|
},
|
|
2234
2433
|
/**
|
|
2235
2434
|
*
|
|
2236
|
-
* @summary
|
|
2237
|
-
* @param {string} id
|
|
2435
|
+
* @summary Deletes multiple customers
|
|
2436
|
+
* @param {Array<string>} [id]
|
|
2238
2437
|
* @param {*} [options] Override http request option.
|
|
2239
2438
|
* @throws {RequiredError}
|
|
2240
2439
|
*/
|
|
2241
|
-
|
|
2242
|
-
return localVarFp.
|
|
2440
|
+
customersDelete(id, options) {
|
|
2441
|
+
return localVarFp.customersDelete(id, options).then((request) => request(axios, basePath));
|
|
2243
2442
|
},
|
|
2244
2443
|
/**
|
|
2245
2444
|
*
|
|
2246
|
-
* @summary
|
|
2247
|
-
* @param {
|
|
2445
|
+
* @summary Updates multiple customers
|
|
2446
|
+
* @param {UpdateCustomerRequest} updateCustomerRequest
|
|
2248
2447
|
* @param {*} [options] Override http request option.
|
|
2249
2448
|
* @throws {RequiredError}
|
|
2250
2449
|
*/
|
|
2251
|
-
|
|
2252
|
-
return localVarFp.
|
|
2450
|
+
customersUpdate(updateCustomerRequest, options) {
|
|
2451
|
+
return localVarFp.customersUpdate(updateCustomerRequest, options).then((request) => request(axios, basePath));
|
|
2253
2452
|
},
|
|
2254
2453
|
/**
|
|
2255
|
-
*
|
|
2256
|
-
* @summary
|
|
2257
|
-
* @param {
|
|
2454
|
+
* 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.
|
|
2455
|
+
* @summary Generate a message from conversation
|
|
2456
|
+
* @param {GenerateRequest} generateRequest
|
|
2258
2457
|
* @param {*} [options] Override http request option.
|
|
2259
2458
|
* @throws {RequiredError}
|
|
2260
2459
|
*/
|
|
2261
|
-
|
|
2262
|
-
return localVarFp.
|
|
2460
|
+
generate(generateRequest, options) {
|
|
2461
|
+
return localVarFp.generate(generateRequest, options).then((request) => request(axios, basePath));
|
|
2263
2462
|
},
|
|
2264
2463
|
/**
|
|
2265
|
-
*
|
|
2266
|
-
* @summary
|
|
2267
|
-
* @param {
|
|
2464
|
+
* 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
|
|
2465
|
+
* @summary Create and send message
|
|
2466
|
+
* @param {MessageCreateRequest} messageCreateRequest
|
|
2268
2467
|
* @param {*} [options] Override http request option.
|
|
2269
2468
|
* @throws {RequiredError}
|
|
2270
2469
|
*/
|
|
2271
|
-
|
|
2272
|
-
return localVarFp.
|
|
2470
|
+
message(messageCreateRequest, options) {
|
|
2471
|
+
return localVarFp.message(messageCreateRequest, options).then((request) => request(axios, basePath));
|
|
2273
2472
|
},
|
|
2274
2473
|
/**
|
|
2275
2474
|
*
|
|
2276
|
-
* @summary
|
|
2277
|
-
* @param {string}
|
|
2475
|
+
* @summary Get all messages from a conversation
|
|
2476
|
+
* @param {string} [q] Query search string to filter results ({field},{operator},{value}) (example firstName,equals,Patrick)
|
|
2477
|
+
* @param {Array<string>} [id]
|
|
2278
2478
|
* @param {*} [options] Override http request option.
|
|
2279
2479
|
* @throws {RequiredError}
|
|
2280
2480
|
*/
|
|
2281
|
-
|
|
2282
|
-
return localVarFp.
|
|
2481
|
+
messages(q, id, options) {
|
|
2482
|
+
return localVarFp.messages(q, id, options).then((request) => request(axios, basePath));
|
|
2283
2483
|
},
|
|
2284
2484
|
/**
|
|
2285
2485
|
*
|
|
2286
|
-
* @summary
|
|
2287
|
-
* @param {string} id
|
|
2486
|
+
* @summary Get the results of a bulk API operation
|
|
2487
|
+
* @param {string} id
|
|
2288
2488
|
* @param {*} [options] Override http request option.
|
|
2289
2489
|
* @throws {RequiredError}
|
|
2290
2490
|
*/
|
|
2291
|
-
|
|
2292
|
-
return localVarFp.
|
|
2491
|
+
operation(id, options) {
|
|
2492
|
+
return localVarFp.operation(id, options).then((request) => request(axios, basePath));
|
|
2293
2493
|
},
|
|
2294
2494
|
/**
|
|
2295
2495
|
*
|
|
2296
|
-
* @summary Gets all or specific set of
|
|
2297
|
-
* @param {string} [
|
|
2496
|
+
* @summary Gets all or specific set of bulk API operations
|
|
2497
|
+
* @param {string} [q] Query search string to filter results ({field},{operator},{value}) (example firstName,equals,Patrick)
|
|
2498
|
+
* @param {Array<string>} [id]
|
|
2298
2499
|
* @param {*} [options] Override http request option.
|
|
2299
2500
|
* @throws {RequiredError}
|
|
2300
2501
|
*/
|
|
2301
|
-
|
|
2302
|
-
return localVarFp.
|
|
2502
|
+
operations(q, id, options) {
|
|
2503
|
+
return localVarFp.operations(q, id, options).then((request) => request(axios, basePath));
|
|
2303
2504
|
},
|
|
2304
2505
|
/**
|
|
2305
2506
|
*
|
|
2306
|
-
* @summary
|
|
2307
|
-
* @param {
|
|
2507
|
+
* @summary Creates a new scheduled conversation
|
|
2508
|
+
* @param {ScheduleCreateRequest} scheduleCreateRequest
|
|
2308
2509
|
* @param {*} [options] Override http request option.
|
|
2309
2510
|
* @throws {RequiredError}
|
|
2310
2511
|
*/
|
|
2311
|
-
|
|
2312
|
-
return localVarFp.
|
|
2512
|
+
scheduleCreate(scheduleCreateRequest, options) {
|
|
2513
|
+
return localVarFp.scheduleCreate(scheduleCreateRequest, options).then((request) => request(axios, basePath));
|
|
2313
2514
|
},
|
|
2314
2515
|
/**
|
|
2315
2516
|
*
|
|
2316
|
-
* @summary
|
|
2317
|
-
* @param {string} id
|
|
2517
|
+
* @summary Deletes a schedule
|
|
2518
|
+
* @param {string} id
|
|
2318
2519
|
* @param {*} [options] Override http request option.
|
|
2319
2520
|
* @throws {RequiredError}
|
|
2320
2521
|
*/
|
|
2321
|
-
|
|
2322
|
-
return localVarFp.
|
|
2522
|
+
scheduleDelete(id, options) {
|
|
2523
|
+
return localVarFp.scheduleDelete(id, options).then((request) => request(axios, basePath));
|
|
2323
2524
|
},
|
|
2324
2525
|
/**
|
|
2325
2526
|
*
|
|
2326
|
-
* @summary
|
|
2327
|
-
* @param {
|
|
2527
|
+
* @summary Creates a new schedule group
|
|
2528
|
+
* @param {ScheduleGroupCreateRequest} scheduleGroupCreateRequest
|
|
2328
2529
|
* @param {*} [options] Override http request option.
|
|
2329
2530
|
* @throws {RequiredError}
|
|
2330
2531
|
*/
|
|
2331
|
-
|
|
2332
|
-
return localVarFp.
|
|
2532
|
+
scheduleGroupCreate(scheduleGroupCreateRequest, options) {
|
|
2533
|
+
return localVarFp.scheduleGroupCreate(scheduleGroupCreateRequest, options).then((request) => request(axios, basePath));
|
|
2333
2534
|
},
|
|
2334
2535
|
/**
|
|
2335
2536
|
*
|
|
2336
|
-
* @summary
|
|
2337
|
-
* @param {string} id
|
|
2537
|
+
* @summary Deletes and cancels a schedule group
|
|
2538
|
+
* @param {string} id
|
|
2338
2539
|
* @param {*} [options] Override http request option.
|
|
2339
2540
|
* @throws {RequiredError}
|
|
2340
2541
|
*/
|
|
2341
|
-
|
|
2342
|
-
return localVarFp.
|
|
2542
|
+
scheduleGroupDelete(id, options) {
|
|
2543
|
+
return localVarFp.scheduleGroupDelete(id, options).then((request) => request(axios, basePath));
|
|
2343
2544
|
},
|
|
2344
2545
|
/**
|
|
2345
2546
|
*
|
|
2346
|
-
* @summary Gets
|
|
2347
|
-
* @param {string}
|
|
2547
|
+
* @summary Gets a schedule group
|
|
2548
|
+
* @param {string} id
|
|
2348
2549
|
* @param {*} [options] Override http request option.
|
|
2349
2550
|
* @throws {RequiredError}
|
|
2350
2551
|
*/
|
|
2351
|
-
|
|
2352
|
-
return localVarFp.
|
|
2552
|
+
scheduleGroupRetrieve(id, options) {
|
|
2553
|
+
return localVarFp.scheduleGroupRetrieve(id, options).then((request) => request(axios, basePath));
|
|
2353
2554
|
},
|
|
2354
2555
|
/**
|
|
2355
2556
|
*
|
|
2356
|
-
* @summary
|
|
2357
|
-
* @param {
|
|
2557
|
+
* @summary Updates a schedule group
|
|
2558
|
+
* @param {ScheduleGroupUpdateRequest} scheduleGroupUpdateRequest
|
|
2358
2559
|
* @param {*} [options] Override http request option.
|
|
2359
2560
|
* @throws {RequiredError}
|
|
2360
2561
|
*/
|
|
2361
|
-
|
|
2362
|
-
return localVarFp.
|
|
2562
|
+
scheduleGroupUpdate(scheduleGroupUpdateRequest, options) {
|
|
2563
|
+
return localVarFp.scheduleGroupUpdate(scheduleGroupUpdateRequest, options).then((request) => request(axios, basePath));
|
|
2363
2564
|
},
|
|
2364
2565
|
/**
|
|
2365
2566
|
*
|
|
2366
|
-
* @summary
|
|
2367
|
-
* @param {
|
|
2567
|
+
* @summary Gets a schedule
|
|
2568
|
+
* @param {string} id
|
|
2368
2569
|
* @param {*} [options] Override http request option.
|
|
2369
2570
|
* @throws {RequiredError}
|
|
2370
2571
|
*/
|
|
2371
|
-
|
|
2372
|
-
return localVarFp.
|
|
2572
|
+
scheduleRetrieve(id, options) {
|
|
2573
|
+
return localVarFp.scheduleRetrieve(id, options).then((request) => request(axios, basePath));
|
|
2373
2574
|
},
|
|
2374
2575
|
/**
|
|
2375
2576
|
*
|
|
2376
|
-
* @summary
|
|
2377
|
-
* @param {
|
|
2577
|
+
* @summary Updates a schedule
|
|
2578
|
+
* @param {ScheduleUpdateRequest} scheduleUpdateRequest
|
|
2378
2579
|
* @param {*} [options] Override http request option.
|
|
2379
2580
|
* @throws {RequiredError}
|
|
2380
2581
|
*/
|
|
2381
|
-
|
|
2382
|
-
return localVarFp.
|
|
2582
|
+
scheduleUpdate(scheduleUpdateRequest, options) {
|
|
2583
|
+
return localVarFp.scheduleUpdate(scheduleUpdateRequest, options).then((request) => request(axios, basePath));
|
|
2383
2584
|
},
|
|
2384
2585
|
/**
|
|
2385
2586
|
*
|
|
2386
|
-
* @summary
|
|
2387
|
-
* @param {
|
|
2587
|
+
* @summary Gets a workflow
|
|
2588
|
+
* @param {string} id
|
|
2388
2589
|
* @param {*} [options] Override http request option.
|
|
2389
2590
|
* @throws {RequiredError}
|
|
2390
2591
|
*/
|
|
2391
|
-
|
|
2392
|
-
return localVarFp.
|
|
2592
|
+
workflow(id, options) {
|
|
2593
|
+
return localVarFp.workflow(id, options).then((request) => request(axios, basePath));
|
|
2393
2594
|
},
|
|
2394
2595
|
/**
|
|
2395
2596
|
*
|
|
2396
|
-
* @summary
|
|
2397
|
-
* @param {
|
|
2597
|
+
* @summary Create a new workflow
|
|
2598
|
+
* @param {CreateWorkflowRequest} createWorkflowRequest
|
|
2398
2599
|
* @param {*} [options] Override http request option.
|
|
2399
2600
|
* @throws {RequiredError}
|
|
2400
2601
|
*/
|
|
2401
|
-
|
|
2402
|
-
return localVarFp.
|
|
2602
|
+
workflowCreate(createWorkflowRequest, options) {
|
|
2603
|
+
return localVarFp.workflowCreate(createWorkflowRequest, options).then((request) => request(axios, basePath));
|
|
2403
2604
|
},
|
|
2404
2605
|
/**
|
|
2405
2606
|
*
|
|
2406
|
-
* @summary
|
|
2407
|
-
* @param {
|
|
2607
|
+
* @summary Deletes a workflow
|
|
2608
|
+
* @param {string} id
|
|
2408
2609
|
* @param {*} [options] Override http request option.
|
|
2409
2610
|
* @throws {RequiredError}
|
|
2410
2611
|
*/
|
|
2411
|
-
|
|
2412
|
-
return localVarFp.
|
|
2612
|
+
workflowDelete(id, options) {
|
|
2613
|
+
return localVarFp.workflowDelete(id, options).then((request) => request(axios, basePath));
|
|
2413
2614
|
},
|
|
2414
2615
|
/**
|
|
2415
2616
|
*
|
|
2416
|
-
* @summary
|
|
2417
|
-
* @param {
|
|
2617
|
+
* @summary Update a workflow
|
|
2618
|
+
* @param {UpdateWorkflowRequest} updateWorkflowRequest
|
|
2418
2619
|
* @param {*} [options] Override http request option.
|
|
2419
2620
|
* @throws {RequiredError}
|
|
2420
2621
|
*/
|
|
2421
|
-
|
|
2422
|
-
return localVarFp.
|
|
2622
|
+
workflowUpdate(updateWorkflowRequest, options) {
|
|
2623
|
+
return localVarFp.workflowUpdate(updateWorkflowRequest, options).then((request) => request(axios, basePath));
|
|
2423
2624
|
},
|
|
2424
2625
|
/**
|
|
2425
2626
|
*
|
|
2426
|
-
* @summary
|
|
2427
|
-
* @param {
|
|
2627
|
+
* @summary Gets all or specific set of workflows
|
|
2628
|
+
* @param {string} [q] Query search string to filter results ({field},{operator},{value}) (example firstName,equals,Patrick)
|
|
2629
|
+
* @param {Array<string>} [id]
|
|
2428
2630
|
* @param {*} [options] Override http request option.
|
|
2429
2631
|
* @throws {RequiredError}
|
|
2430
2632
|
*/
|
|
2431
|
-
|
|
2432
|
-
return localVarFp.
|
|
2633
|
+
workflows(q, id, options) {
|
|
2634
|
+
return localVarFp.workflows(q, id, options).then((request) => request(axios, basePath));
|
|
2433
2635
|
},
|
|
2434
2636
|
/**
|
|
2435
2637
|
*
|
|
2436
|
-
* @summary
|
|
2437
|
-
* @param {
|
|
2638
|
+
* @summary Creates new workflows
|
|
2639
|
+
* @param {CreateWorkflowsRequest} createWorkflowsRequest
|
|
2438
2640
|
* @param {*} [options] Override http request option.
|
|
2439
2641
|
* @throws {RequiredError}
|
|
2440
2642
|
*/
|
|
2441
|
-
|
|
2442
|
-
return localVarFp.
|
|
2643
|
+
workflowsCreate(createWorkflowsRequest, options) {
|
|
2644
|
+
return localVarFp.workflowsCreate(createWorkflowsRequest, options).then((request) => request(axios, basePath));
|
|
2443
2645
|
},
|
|
2444
2646
|
/**
|
|
2445
2647
|
*
|
|
2446
|
-
* @summary
|
|
2447
|
-
* @param {
|
|
2648
|
+
* @summary Deletes multiple workflows
|
|
2649
|
+
* @param {Array<string>} [id]
|
|
2448
2650
|
* @param {*} [options] Override http request option.
|
|
2449
2651
|
* @throws {RequiredError}
|
|
2450
2652
|
*/
|
|
2451
|
-
|
|
2452
|
-
return localVarFp.
|
|
2653
|
+
workflowsDelete(id, options) {
|
|
2654
|
+
return localVarFp.workflowsDelete(id, options).then((request) => request(axios, basePath));
|
|
2453
2655
|
},
|
|
2454
2656
|
/**
|
|
2455
2657
|
*
|
|
@@ -2458,8 +2660,8 @@ const Scout9ApiFactory = function (configuration, basePath, axios) {
|
|
|
2458
2660
|
* @param {*} [options] Override http request option.
|
|
2459
2661
|
* @throws {RequiredError}
|
|
2460
2662
|
*/
|
|
2461
|
-
|
|
2462
|
-
return localVarFp.
|
|
2663
|
+
workflowsUpdate(updateWorkflowRequest, options) {
|
|
2664
|
+
return localVarFp.workflowsUpdate(updateWorkflowRequest, options).then((request) => request(axios, basePath));
|
|
2463
2665
|
},
|
|
2464
2666
|
};
|
|
2465
2667
|
};
|
|
@@ -2471,6 +2673,17 @@ exports.Scout9ApiFactory = Scout9ApiFactory;
|
|
|
2471
2673
|
* @extends {BaseAPI}
|
|
2472
2674
|
*/
|
|
2473
2675
|
class Scout9Api extends base_1.BaseAPI {
|
|
2676
|
+
/**
|
|
2677
|
+
*
|
|
2678
|
+
* @summary Gets a agent
|
|
2679
|
+
* @param {string} id
|
|
2680
|
+
* @param {*} [options] Override http request option.
|
|
2681
|
+
* @throws {RequiredError}
|
|
2682
|
+
* @memberof Scout9Api
|
|
2683
|
+
*/
|
|
2684
|
+
agent(id, options) {
|
|
2685
|
+
return (0, exports.Scout9ApiFp)(this.configuration).agent(id, options).then((request) => request(this.axios, this.basePath));
|
|
2686
|
+
}
|
|
2474
2687
|
/**
|
|
2475
2688
|
*
|
|
2476
2689
|
* @summary Create a new agent
|
|
@@ -2479,503 +2692,520 @@ class Scout9Api extends base_1.BaseAPI {
|
|
|
2479
2692
|
* @throws {RequiredError}
|
|
2480
2693
|
* @memberof Scout9Api
|
|
2481
2694
|
*/
|
|
2482
|
-
|
|
2483
|
-
return (0, exports.Scout9ApiFp)(this.configuration).
|
|
2695
|
+
agentCreate(createAgentRequest, options) {
|
|
2696
|
+
return (0, exports.Scout9ApiFp)(this.configuration).agentCreate(createAgentRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2484
2697
|
}
|
|
2485
2698
|
/**
|
|
2486
2699
|
*
|
|
2487
|
-
* @summary
|
|
2488
|
-
* @param {
|
|
2700
|
+
* @summary Deletes a agent
|
|
2701
|
+
* @param {string} id
|
|
2489
2702
|
* @param {*} [options] Override http request option.
|
|
2490
2703
|
* @throws {RequiredError}
|
|
2491
2704
|
* @memberof Scout9Api
|
|
2492
2705
|
*/
|
|
2493
|
-
|
|
2494
|
-
return (0, exports.Scout9ApiFp)(this.configuration).
|
|
2706
|
+
agentDelete(id, options) {
|
|
2707
|
+
return (0, exports.Scout9ApiFp)(this.configuration).agentDelete(id, options).then((request) => request(this.axios, this.basePath));
|
|
2495
2708
|
}
|
|
2496
2709
|
/**
|
|
2497
2710
|
*
|
|
2498
|
-
* @summary
|
|
2499
|
-
* @param {
|
|
2711
|
+
* @summary Update a agent
|
|
2712
|
+
* @param {UpdateAgentRequest} updateAgentRequest
|
|
2500
2713
|
* @param {*} [options] Override http request option.
|
|
2501
2714
|
* @throws {RequiredError}
|
|
2502
2715
|
* @memberof Scout9Api
|
|
2503
2716
|
*/
|
|
2504
|
-
|
|
2505
|
-
return (0, exports.Scout9ApiFp)(this.configuration).
|
|
2717
|
+
agentUpdate(updateAgentRequest, options) {
|
|
2718
|
+
return (0, exports.Scout9ApiFp)(this.configuration).agentUpdate(updateAgentRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2506
2719
|
}
|
|
2507
2720
|
/**
|
|
2508
2721
|
*
|
|
2509
|
-
* @summary
|
|
2510
|
-
* @param {
|
|
2722
|
+
* @summary Gets all or specific set of agents
|
|
2723
|
+
* @param {string} [q] Query search string to filter results ({field},{operator},{value}) (example firstName,equals,Patrick)
|
|
2724
|
+
* @param {Array<string>} [id]
|
|
2511
2725
|
* @param {*} [options] Override http request option.
|
|
2512
2726
|
* @throws {RequiredError}
|
|
2513
2727
|
* @memberof Scout9Api
|
|
2514
2728
|
*/
|
|
2515
|
-
|
|
2516
|
-
return (0, exports.Scout9ApiFp)(this.configuration).
|
|
2729
|
+
agents(q, id, options) {
|
|
2730
|
+
return (0, exports.Scout9ApiFp)(this.configuration).agents(q, id, options).then((request) => request(this.axios, this.basePath));
|
|
2517
2731
|
}
|
|
2518
2732
|
/**
|
|
2519
2733
|
*
|
|
2520
|
-
* @summary
|
|
2521
|
-
* @param {
|
|
2734
|
+
* @summary Creates new agents
|
|
2735
|
+
* @param {CreateAgentsRequest} createAgentsRequest
|
|
2522
2736
|
* @param {*} [options] Override http request option.
|
|
2523
2737
|
* @throws {RequiredError}
|
|
2524
2738
|
* @memberof Scout9Api
|
|
2525
2739
|
*/
|
|
2526
|
-
|
|
2527
|
-
return (0, exports.Scout9ApiFp)(this.configuration).
|
|
2740
|
+
agentsCreate(createAgentsRequest, options) {
|
|
2741
|
+
return (0, exports.Scout9ApiFp)(this.configuration).agentsCreate(createAgentsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2528
2742
|
}
|
|
2529
2743
|
/**
|
|
2530
2744
|
*
|
|
2531
|
-
* @summary
|
|
2532
|
-
* @param {
|
|
2745
|
+
* @summary Deletes multiple agents
|
|
2746
|
+
* @param {Array<string>} [id]
|
|
2533
2747
|
* @param {*} [options] Override http request option.
|
|
2534
2748
|
* @throws {RequiredError}
|
|
2535
2749
|
* @memberof Scout9Api
|
|
2536
2750
|
*/
|
|
2537
|
-
|
|
2538
|
-
return (0, exports.Scout9ApiFp)(this.configuration).
|
|
2751
|
+
agentsDelete(id, options) {
|
|
2752
|
+
return (0, exports.Scout9ApiFp)(this.configuration).agentsDelete(id, options).then((request) => request(this.axios, this.basePath));
|
|
2539
2753
|
}
|
|
2540
2754
|
/**
|
|
2541
2755
|
*
|
|
2542
|
-
* @summary
|
|
2543
|
-
* @param {
|
|
2756
|
+
* @summary Updates multiple agents
|
|
2757
|
+
* @param {UpdateAgentsRequest} updateAgentsRequest
|
|
2544
2758
|
* @param {*} [options] Override http request option.
|
|
2545
2759
|
* @throws {RequiredError}
|
|
2546
2760
|
* @memberof Scout9Api
|
|
2547
2761
|
*/
|
|
2548
|
-
|
|
2549
|
-
return (0, exports.Scout9ApiFp)(this.configuration).
|
|
2762
|
+
agentsUpdate(updateAgentsRequest, options) {
|
|
2763
|
+
return (0, exports.Scout9ApiFp)(this.configuration).agentsUpdate(updateAgentsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2550
2764
|
}
|
|
2551
2765
|
/**
|
|
2552
2766
|
*
|
|
2553
|
-
* @summary
|
|
2554
|
-
* @param {
|
|
2767
|
+
* @summary Gets a context
|
|
2768
|
+
* @param {string} id
|
|
2555
2769
|
* @param {*} [options] Override http request option.
|
|
2556
2770
|
* @throws {RequiredError}
|
|
2557
2771
|
* @memberof Scout9Api
|
|
2558
2772
|
*/
|
|
2559
|
-
|
|
2560
|
-
return (0, exports.Scout9ApiFp)(this.configuration).
|
|
2773
|
+
context(id, options) {
|
|
2774
|
+
return (0, exports.Scout9ApiFp)(this.configuration).context(id, options).then((request) => request(this.axios, this.basePath));
|
|
2561
2775
|
}
|
|
2562
2776
|
/**
|
|
2563
2777
|
*
|
|
2564
|
-
* @summary
|
|
2565
|
-
* @param {
|
|
2778
|
+
* @summary Create a new context
|
|
2779
|
+
* @param {CreateContextRequest} createContextRequest
|
|
2566
2780
|
* @param {*} [options] Override http request option.
|
|
2567
2781
|
* @throws {RequiredError}
|
|
2568
2782
|
* @memberof Scout9Api
|
|
2569
2783
|
*/
|
|
2570
|
-
|
|
2571
|
-
return (0, exports.Scout9ApiFp)(this.configuration).
|
|
2784
|
+
contextCreate(createContextRequest, options) {
|
|
2785
|
+
return (0, exports.Scout9ApiFp)(this.configuration).contextCreate(createContextRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2572
2786
|
}
|
|
2573
2787
|
/**
|
|
2574
2788
|
*
|
|
2575
|
-
* @summary
|
|
2576
|
-
* @param {
|
|
2789
|
+
* @summary Deletes a schedule
|
|
2790
|
+
* @param {string} id
|
|
2577
2791
|
* @param {*} [options] Override http request option.
|
|
2578
2792
|
* @throws {RequiredError}
|
|
2579
2793
|
* @memberof Scout9Api
|
|
2580
2794
|
*/
|
|
2581
|
-
|
|
2582
|
-
return (0, exports.Scout9ApiFp)(this.configuration).
|
|
2795
|
+
contextDelete(id, options) {
|
|
2796
|
+
return (0, exports.Scout9ApiFp)(this.configuration).contextDelete(id, options).then((request) => request(this.axios, this.basePath));
|
|
2583
2797
|
}
|
|
2584
2798
|
/**
|
|
2585
2799
|
*
|
|
2586
|
-
* @summary
|
|
2587
|
-
* @param {
|
|
2800
|
+
* @summary Update a context
|
|
2801
|
+
* @param {UpdateContextRequest} updateContextRequest
|
|
2588
2802
|
* @param {*} [options] Override http request option.
|
|
2589
2803
|
* @throws {RequiredError}
|
|
2590
2804
|
* @memberof Scout9Api
|
|
2591
2805
|
*/
|
|
2592
|
-
|
|
2593
|
-
return (0, exports.Scout9ApiFp)(this.configuration).
|
|
2806
|
+
contextUpdate(updateContextRequest, options) {
|
|
2807
|
+
return (0, exports.Scout9ApiFp)(this.configuration).contextUpdate(updateContextRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2594
2808
|
}
|
|
2595
2809
|
/**
|
|
2596
2810
|
*
|
|
2597
|
-
* @summary
|
|
2598
|
-
* @param {
|
|
2811
|
+
* @summary Gets all or specific set of contexts
|
|
2812
|
+
* @param {string} [q] Query search string to filter results ({field},{operator},{value}) (example firstName,equals,Patrick)
|
|
2813
|
+
* @param {Array<string>} [id]
|
|
2599
2814
|
* @param {*} [options] Override http request option.
|
|
2600
2815
|
* @throws {RequiredError}
|
|
2601
2816
|
* @memberof Scout9Api
|
|
2602
2817
|
*/
|
|
2603
|
-
|
|
2604
|
-
return (0, exports.Scout9ApiFp)(this.configuration).
|
|
2818
|
+
contexts(q, id, options) {
|
|
2819
|
+
return (0, exports.Scout9ApiFp)(this.configuration).contexts(q, id, options).then((request) => request(this.axios, this.basePath));
|
|
2605
2820
|
}
|
|
2606
2821
|
/**
|
|
2607
2822
|
*
|
|
2608
|
-
* @summary
|
|
2609
|
-
* @param {
|
|
2823
|
+
* @summary Creates new contexts
|
|
2824
|
+
* @param {CreateContextsRequest} createContextsRequest
|
|
2610
2825
|
* @param {*} [options] Override http request option.
|
|
2611
2826
|
* @throws {RequiredError}
|
|
2612
2827
|
* @memberof Scout9Api
|
|
2613
2828
|
*/
|
|
2614
|
-
|
|
2615
|
-
return (0, exports.Scout9ApiFp)(this.configuration).
|
|
2829
|
+
contextsCreate(createContextsRequest, options) {
|
|
2830
|
+
return (0, exports.Scout9ApiFp)(this.configuration).contextsCreate(createContextsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2616
2831
|
}
|
|
2617
2832
|
/**
|
|
2618
2833
|
*
|
|
2619
|
-
* @summary Deletes multiple
|
|
2620
|
-
* @param {string} id
|
|
2834
|
+
* @summary Deletes multiple contexts
|
|
2835
|
+
* @param {Array<string>} [id]
|
|
2621
2836
|
* @param {*} [options] Override http request option.
|
|
2622
2837
|
* @throws {RequiredError}
|
|
2623
2838
|
* @memberof Scout9Api
|
|
2624
2839
|
*/
|
|
2625
|
-
|
|
2626
|
-
return (0, exports.Scout9ApiFp)(this.configuration).
|
|
2840
|
+
contextsDelete(id, options) {
|
|
2841
|
+
return (0, exports.Scout9ApiFp)(this.configuration).contextsDelete(id, options).then((request) => request(this.axios, this.basePath));
|
|
2627
2842
|
}
|
|
2628
2843
|
/**
|
|
2629
2844
|
*
|
|
2630
|
-
* @summary
|
|
2631
|
-
* @param {
|
|
2845
|
+
* @summary Updates multiple contexts
|
|
2846
|
+
* @param {UpdateContextRequest} updateContextRequest
|
|
2632
2847
|
* @param {*} [options] Override http request option.
|
|
2633
2848
|
* @throws {RequiredError}
|
|
2634
2849
|
* @memberof Scout9Api
|
|
2635
2850
|
*/
|
|
2636
|
-
|
|
2637
|
-
return (0, exports.Scout9ApiFp)(this.configuration).
|
|
2851
|
+
contextsUpdate(updateContextRequest, options) {
|
|
2852
|
+
return (0, exports.Scout9ApiFp)(this.configuration).contextsUpdate(updateContextRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2638
2853
|
}
|
|
2639
2854
|
/**
|
|
2640
2855
|
*
|
|
2641
|
-
* @summary
|
|
2642
|
-
* @param {string} id
|
|
2856
|
+
* @summary Gets a conversation
|
|
2857
|
+
* @param {string} id
|
|
2643
2858
|
* @param {*} [options] Override http request option.
|
|
2644
2859
|
* @throws {RequiredError}
|
|
2645
2860
|
* @memberof Scout9Api
|
|
2646
2861
|
*/
|
|
2647
|
-
|
|
2648
|
-
return (0, exports.Scout9ApiFp)(this.configuration).
|
|
2862
|
+
conversation(id, options) {
|
|
2863
|
+
return (0, exports.Scout9ApiFp)(this.configuration).conversation(id, options).then((request) => request(this.axios, this.basePath));
|
|
2649
2864
|
}
|
|
2650
2865
|
/**
|
|
2651
2866
|
*
|
|
2652
|
-
* @summary
|
|
2653
|
-
* @param {
|
|
2867
|
+
* @summary Create a new conversation
|
|
2868
|
+
* @param {ConversationCreateRequest} conversationCreateRequest
|
|
2654
2869
|
* @param {*} [options] Override http request option.
|
|
2655
2870
|
* @throws {RequiredError}
|
|
2656
2871
|
* @memberof Scout9Api
|
|
2657
2872
|
*/
|
|
2658
|
-
|
|
2659
|
-
return (0, exports.Scout9ApiFp)(this.configuration).
|
|
2873
|
+
conversationCreate(conversationCreateRequest, options) {
|
|
2874
|
+
return (0, exports.Scout9ApiFp)(this.configuration).conversationCreate(conversationCreateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2660
2875
|
}
|
|
2661
2876
|
/**
|
|
2662
2877
|
*
|
|
2663
|
-
* @summary Deletes a
|
|
2664
|
-
* @param {string} id
|
|
2878
|
+
* @summary Deletes a schedule
|
|
2879
|
+
* @param {string} id
|
|
2665
2880
|
* @param {*} [options] Override http request option.
|
|
2666
2881
|
* @throws {RequiredError}
|
|
2667
2882
|
* @memberof Scout9Api
|
|
2668
2883
|
*/
|
|
2669
|
-
|
|
2670
|
-
return (0, exports.Scout9ApiFp)(this.configuration).
|
|
2884
|
+
conversationDelete(id, options) {
|
|
2885
|
+
return (0, exports.Scout9ApiFp)(this.configuration).conversationDelete(id, options).then((request) => request(this.axios, this.basePath));
|
|
2671
2886
|
}
|
|
2672
2887
|
/**
|
|
2673
2888
|
*
|
|
2674
|
-
* @summary
|
|
2675
|
-
* @param {
|
|
2889
|
+
* @summary Update a conversation
|
|
2890
|
+
* @param {ConversationUpdateRequest} conversationUpdateRequest
|
|
2676
2891
|
* @param {*} [options] Override http request option.
|
|
2677
2892
|
* @throws {RequiredError}
|
|
2678
2893
|
* @memberof Scout9Api
|
|
2679
2894
|
*/
|
|
2680
|
-
|
|
2681
|
-
return (0, exports.Scout9ApiFp)(this.configuration).
|
|
2895
|
+
conversationUpdate(conversationUpdateRequest, options) {
|
|
2896
|
+
return (0, exports.Scout9ApiFp)(this.configuration).conversationUpdate(conversationUpdateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2682
2897
|
}
|
|
2683
2898
|
/**
|
|
2684
2899
|
*
|
|
2685
|
-
* @summary
|
|
2686
|
-
* @param {string} id
|
|
2900
|
+
* @summary Gets a customer
|
|
2901
|
+
* @param {string} id
|
|
2687
2902
|
* @param {*} [options] Override http request option.
|
|
2688
2903
|
* @throws {RequiredError}
|
|
2689
2904
|
* @memberof Scout9Api
|
|
2690
2905
|
*/
|
|
2691
|
-
|
|
2692
|
-
return (0, exports.Scout9ApiFp)(this.configuration).
|
|
2906
|
+
customer(id, options) {
|
|
2907
|
+
return (0, exports.Scout9ApiFp)(this.configuration).customer(id, options).then((request) => request(this.axios, this.basePath));
|
|
2693
2908
|
}
|
|
2694
2909
|
/**
|
|
2695
2910
|
*
|
|
2696
|
-
* @summary
|
|
2697
|
-
* @param {
|
|
2911
|
+
* @summary Creates a new customer
|
|
2912
|
+
* @param {CreateCustomerRequest} createCustomerRequest
|
|
2698
2913
|
* @param {*} [options] Override http request option.
|
|
2699
2914
|
* @throws {RequiredError}
|
|
2700
2915
|
* @memberof Scout9Api
|
|
2701
2916
|
*/
|
|
2702
|
-
|
|
2703
|
-
return (0, exports.Scout9ApiFp)(this.configuration).
|
|
2917
|
+
customerCreate(createCustomerRequest, options) {
|
|
2918
|
+
return (0, exports.Scout9ApiFp)(this.configuration).customerCreate(createCustomerRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2704
2919
|
}
|
|
2705
2920
|
/**
|
|
2706
2921
|
*
|
|
2707
|
-
* @summary Deletes a
|
|
2708
|
-
* @param {string} id
|
|
2922
|
+
* @summary Deletes a customer
|
|
2923
|
+
* @param {string} id
|
|
2709
2924
|
* @param {*} [options] Override http request option.
|
|
2710
2925
|
* @throws {RequiredError}
|
|
2711
2926
|
* @memberof Scout9Api
|
|
2712
2927
|
*/
|
|
2713
|
-
|
|
2714
|
-
return (0, exports.Scout9ApiFp)(this.configuration).
|
|
2928
|
+
customerDelete(id, options) {
|
|
2929
|
+
return (0, exports.Scout9ApiFp)(this.configuration).customerDelete(id, options).then((request) => request(this.axios, this.basePath));
|
|
2715
2930
|
}
|
|
2716
2931
|
/**
|
|
2717
2932
|
*
|
|
2718
|
-
* @summary
|
|
2719
|
-
* @param {
|
|
2933
|
+
* @summary Updates a customer
|
|
2934
|
+
* @param {UpdateCustomerRequest} updateCustomerRequest
|
|
2720
2935
|
* @param {*} [options] Override http request option.
|
|
2721
2936
|
* @throws {RequiredError}
|
|
2722
2937
|
* @memberof Scout9Api
|
|
2723
2938
|
*/
|
|
2724
|
-
|
|
2725
|
-
return (0, exports.Scout9ApiFp)(this.configuration).
|
|
2939
|
+
customerUpdate(updateCustomerRequest, options) {
|
|
2940
|
+
return (0, exports.Scout9ApiFp)(this.configuration).customerUpdate(updateCustomerRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2726
2941
|
}
|
|
2727
2942
|
/**
|
|
2728
2943
|
*
|
|
2729
|
-
* @summary
|
|
2730
|
-
* @param {
|
|
2944
|
+
* @summary Gets all or specific set of customers
|
|
2945
|
+
* @param {string} [q] Query search string to filter results ({field},{operator},{value}) (example firstName,equals,Patrick)
|
|
2946
|
+
* @param {Array<string>} [id]
|
|
2731
2947
|
* @param {*} [options] Override http request option.
|
|
2732
2948
|
* @throws {RequiredError}
|
|
2733
2949
|
* @memberof Scout9Api
|
|
2734
2950
|
*/
|
|
2735
|
-
|
|
2736
|
-
return (0, exports.Scout9ApiFp)(this.configuration).
|
|
2951
|
+
customers(q, id, options) {
|
|
2952
|
+
return (0, exports.Scout9ApiFp)(this.configuration).customers(q, id, options).then((request) => request(this.axios, this.basePath));
|
|
2737
2953
|
}
|
|
2738
2954
|
/**
|
|
2739
2955
|
*
|
|
2740
|
-
* @summary
|
|
2741
|
-
* @param {
|
|
2956
|
+
* @summary Creates new customers
|
|
2957
|
+
* @param {CreateCustomersRequest} createCustomersRequest
|
|
2742
2958
|
* @param {*} [options] Override http request option.
|
|
2743
2959
|
* @throws {RequiredError}
|
|
2744
2960
|
* @memberof Scout9Api
|
|
2745
2961
|
*/
|
|
2746
|
-
|
|
2747
|
-
return (0, exports.Scout9ApiFp)(this.configuration).
|
|
2962
|
+
customersCreate(createCustomersRequest, options) {
|
|
2963
|
+
return (0, exports.Scout9ApiFp)(this.configuration).customersCreate(createCustomersRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2748
2964
|
}
|
|
2749
2965
|
/**
|
|
2750
2966
|
*
|
|
2751
|
-
* @summary
|
|
2752
|
-
* @param {string} [id]
|
|
2967
|
+
* @summary Deletes multiple customers
|
|
2968
|
+
* @param {Array<string>} [id]
|
|
2753
2969
|
* @param {*} [options] Override http request option.
|
|
2754
2970
|
* @throws {RequiredError}
|
|
2755
2971
|
* @memberof Scout9Api
|
|
2756
2972
|
*/
|
|
2757
|
-
|
|
2758
|
-
return (0, exports.Scout9ApiFp)(this.configuration).
|
|
2973
|
+
customersDelete(id, options) {
|
|
2974
|
+
return (0, exports.Scout9ApiFp)(this.configuration).customersDelete(id, options).then((request) => request(this.axios, this.basePath));
|
|
2759
2975
|
}
|
|
2760
2976
|
/**
|
|
2761
2977
|
*
|
|
2762
|
-
* @summary
|
|
2763
|
-
* @param {
|
|
2978
|
+
* @summary Updates multiple customers
|
|
2979
|
+
* @param {UpdateCustomerRequest} updateCustomerRequest
|
|
2764
2980
|
* @param {*} [options] Override http request option.
|
|
2765
2981
|
* @throws {RequiredError}
|
|
2766
2982
|
* @memberof Scout9Api
|
|
2767
2983
|
*/
|
|
2768
|
-
|
|
2769
|
-
return (0, exports.Scout9ApiFp)(this.configuration).
|
|
2984
|
+
customersUpdate(updateCustomerRequest, options) {
|
|
2985
|
+
return (0, exports.Scout9ApiFp)(this.configuration).customersUpdate(updateCustomerRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2770
2986
|
}
|
|
2771
2987
|
/**
|
|
2772
|
-
*
|
|
2773
|
-
* @summary
|
|
2774
|
-
* @param {
|
|
2988
|
+
* 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.
|
|
2989
|
+
* @summary Generate a message from conversation
|
|
2990
|
+
* @param {GenerateRequest} generateRequest
|
|
2991
|
+
* @param {*} [options] Override http request option.
|
|
2992
|
+
* @throws {RequiredError}
|
|
2993
|
+
* @memberof Scout9Api
|
|
2994
|
+
*/
|
|
2995
|
+
generate(generateRequest, options) {
|
|
2996
|
+
return (0, exports.Scout9ApiFp)(this.configuration).generate(generateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2997
|
+
}
|
|
2998
|
+
/**
|
|
2999
|
+
* 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
|
|
3000
|
+
* @summary Create and send message
|
|
3001
|
+
* @param {MessageCreateRequest} messageCreateRequest
|
|
2775
3002
|
* @param {*} [options] Override http request option.
|
|
2776
3003
|
* @throws {RequiredError}
|
|
2777
3004
|
* @memberof Scout9Api
|
|
2778
3005
|
*/
|
|
2779
|
-
|
|
2780
|
-
return (0, exports.Scout9ApiFp)(this.configuration).
|
|
3006
|
+
message(messageCreateRequest, options) {
|
|
3007
|
+
return (0, exports.Scout9ApiFp)(this.configuration).message(messageCreateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2781
3008
|
}
|
|
2782
3009
|
/**
|
|
2783
3010
|
*
|
|
2784
|
-
* @summary
|
|
2785
|
-
* @param {string}
|
|
3011
|
+
* @summary Get all messages from a conversation
|
|
3012
|
+
* @param {string} [q] Query search string to filter results ({field},{operator},{value}) (example firstName,equals,Patrick)
|
|
3013
|
+
* @param {Array<string>} [id]
|
|
2786
3014
|
* @param {*} [options] Override http request option.
|
|
2787
3015
|
* @throws {RequiredError}
|
|
2788
3016
|
* @memberof Scout9Api
|
|
2789
3017
|
*/
|
|
2790
|
-
|
|
2791
|
-
return (0, exports.Scout9ApiFp)(this.configuration).
|
|
3018
|
+
messages(q, id, options) {
|
|
3019
|
+
return (0, exports.Scout9ApiFp)(this.configuration).messages(q, id, options).then((request) => request(this.axios, this.basePath));
|
|
2792
3020
|
}
|
|
2793
3021
|
/**
|
|
2794
3022
|
*
|
|
2795
|
-
* @summary
|
|
2796
|
-
* @param {string} id
|
|
3023
|
+
* @summary Get the results of a bulk API operation
|
|
3024
|
+
* @param {string} id
|
|
2797
3025
|
* @param {*} [options] Override http request option.
|
|
2798
3026
|
* @throws {RequiredError}
|
|
2799
3027
|
* @memberof Scout9Api
|
|
2800
3028
|
*/
|
|
2801
|
-
|
|
2802
|
-
return (0, exports.Scout9ApiFp)(this.configuration).
|
|
3029
|
+
operation(id, options) {
|
|
3030
|
+
return (0, exports.Scout9ApiFp)(this.configuration).operation(id, options).then((request) => request(this.axios, this.basePath));
|
|
2803
3031
|
}
|
|
2804
3032
|
/**
|
|
2805
3033
|
*
|
|
2806
|
-
* @summary Gets all or specific set of
|
|
2807
|
-
* @param {string} [
|
|
3034
|
+
* @summary Gets all or specific set of bulk API operations
|
|
3035
|
+
* @param {string} [q] Query search string to filter results ({field},{operator},{value}) (example firstName,equals,Patrick)
|
|
3036
|
+
* @param {Array<string>} [id]
|
|
2808
3037
|
* @param {*} [options] Override http request option.
|
|
2809
3038
|
* @throws {RequiredError}
|
|
2810
3039
|
* @memberof Scout9Api
|
|
2811
3040
|
*/
|
|
2812
|
-
|
|
2813
|
-
return (0, exports.Scout9ApiFp)(this.configuration).
|
|
3041
|
+
operations(q, id, options) {
|
|
3042
|
+
return (0, exports.Scout9ApiFp)(this.configuration).operations(q, id, options).then((request) => request(this.axios, this.basePath));
|
|
2814
3043
|
}
|
|
2815
3044
|
/**
|
|
2816
3045
|
*
|
|
2817
|
-
* @summary
|
|
2818
|
-
* @param {
|
|
3046
|
+
* @summary Creates a new scheduled conversation
|
|
3047
|
+
* @param {ScheduleCreateRequest} scheduleCreateRequest
|
|
2819
3048
|
* @param {*} [options] Override http request option.
|
|
2820
3049
|
* @throws {RequiredError}
|
|
2821
3050
|
* @memberof Scout9Api
|
|
2822
3051
|
*/
|
|
2823
|
-
|
|
2824
|
-
return (0, exports.Scout9ApiFp)(this.configuration).
|
|
3052
|
+
scheduleCreate(scheduleCreateRequest, options) {
|
|
3053
|
+
return (0, exports.Scout9ApiFp)(this.configuration).scheduleCreate(scheduleCreateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2825
3054
|
}
|
|
2826
3055
|
/**
|
|
2827
3056
|
*
|
|
2828
|
-
* @summary
|
|
2829
|
-
* @param {string} id
|
|
3057
|
+
* @summary Deletes a schedule
|
|
3058
|
+
* @param {string} id
|
|
2830
3059
|
* @param {*} [options] Override http request option.
|
|
2831
3060
|
* @throws {RequiredError}
|
|
2832
3061
|
* @memberof Scout9Api
|
|
2833
3062
|
*/
|
|
2834
|
-
|
|
2835
|
-
return (0, exports.Scout9ApiFp)(this.configuration).
|
|
3063
|
+
scheduleDelete(id, options) {
|
|
3064
|
+
return (0, exports.Scout9ApiFp)(this.configuration).scheduleDelete(id, options).then((request) => request(this.axios, this.basePath));
|
|
2836
3065
|
}
|
|
2837
3066
|
/**
|
|
2838
3067
|
*
|
|
2839
|
-
* @summary
|
|
2840
|
-
* @param {
|
|
3068
|
+
* @summary Creates a new schedule group
|
|
3069
|
+
* @param {ScheduleGroupCreateRequest} scheduleGroupCreateRequest
|
|
2841
3070
|
* @param {*} [options] Override http request option.
|
|
2842
3071
|
* @throws {RequiredError}
|
|
2843
3072
|
* @memberof Scout9Api
|
|
2844
3073
|
*/
|
|
2845
|
-
|
|
2846
|
-
return (0, exports.Scout9ApiFp)(this.configuration).
|
|
3074
|
+
scheduleGroupCreate(scheduleGroupCreateRequest, options) {
|
|
3075
|
+
return (0, exports.Scout9ApiFp)(this.configuration).scheduleGroupCreate(scheduleGroupCreateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2847
3076
|
}
|
|
2848
3077
|
/**
|
|
2849
3078
|
*
|
|
2850
|
-
* @summary
|
|
2851
|
-
* @param {string} id
|
|
3079
|
+
* @summary Deletes and cancels a schedule group
|
|
3080
|
+
* @param {string} id
|
|
2852
3081
|
* @param {*} [options] Override http request option.
|
|
2853
3082
|
* @throws {RequiredError}
|
|
2854
3083
|
* @memberof Scout9Api
|
|
2855
3084
|
*/
|
|
2856
|
-
|
|
2857
|
-
return (0, exports.Scout9ApiFp)(this.configuration).
|
|
3085
|
+
scheduleGroupDelete(id, options) {
|
|
3086
|
+
return (0, exports.Scout9ApiFp)(this.configuration).scheduleGroupDelete(id, options).then((request) => request(this.axios, this.basePath));
|
|
2858
3087
|
}
|
|
2859
3088
|
/**
|
|
2860
3089
|
*
|
|
2861
|
-
* @summary Gets
|
|
2862
|
-
* @param {string}
|
|
3090
|
+
* @summary Gets a schedule group
|
|
3091
|
+
* @param {string} id
|
|
2863
3092
|
* @param {*} [options] Override http request option.
|
|
2864
3093
|
* @throws {RequiredError}
|
|
2865
3094
|
* @memberof Scout9Api
|
|
2866
3095
|
*/
|
|
2867
|
-
|
|
2868
|
-
return (0, exports.Scout9ApiFp)(this.configuration).
|
|
3096
|
+
scheduleGroupRetrieve(id, options) {
|
|
3097
|
+
return (0, exports.Scout9ApiFp)(this.configuration).scheduleGroupRetrieve(id, options).then((request) => request(this.axios, this.basePath));
|
|
2869
3098
|
}
|
|
2870
3099
|
/**
|
|
2871
3100
|
*
|
|
2872
|
-
* @summary
|
|
2873
|
-
* @param {
|
|
3101
|
+
* @summary Updates a schedule group
|
|
3102
|
+
* @param {ScheduleGroupUpdateRequest} scheduleGroupUpdateRequest
|
|
2874
3103
|
* @param {*} [options] Override http request option.
|
|
2875
3104
|
* @throws {RequiredError}
|
|
2876
3105
|
* @memberof Scout9Api
|
|
2877
3106
|
*/
|
|
2878
|
-
|
|
2879
|
-
return (0, exports.Scout9ApiFp)(this.configuration).
|
|
3107
|
+
scheduleGroupUpdate(scheduleGroupUpdateRequest, options) {
|
|
3108
|
+
return (0, exports.Scout9ApiFp)(this.configuration).scheduleGroupUpdate(scheduleGroupUpdateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2880
3109
|
}
|
|
2881
3110
|
/**
|
|
2882
3111
|
*
|
|
2883
|
-
* @summary
|
|
2884
|
-
* @param {
|
|
3112
|
+
* @summary Gets a schedule
|
|
3113
|
+
* @param {string} id
|
|
2885
3114
|
* @param {*} [options] Override http request option.
|
|
2886
3115
|
* @throws {RequiredError}
|
|
2887
3116
|
* @memberof Scout9Api
|
|
2888
3117
|
*/
|
|
2889
|
-
|
|
2890
|
-
return (0, exports.Scout9ApiFp)(this.configuration).
|
|
3118
|
+
scheduleRetrieve(id, options) {
|
|
3119
|
+
return (0, exports.Scout9ApiFp)(this.configuration).scheduleRetrieve(id, options).then((request) => request(this.axios, this.basePath));
|
|
2891
3120
|
}
|
|
2892
3121
|
/**
|
|
2893
3122
|
*
|
|
2894
|
-
* @summary
|
|
2895
|
-
* @param {
|
|
3123
|
+
* @summary Updates a schedule
|
|
3124
|
+
* @param {ScheduleUpdateRequest} scheduleUpdateRequest
|
|
2896
3125
|
* @param {*} [options] Override http request option.
|
|
2897
3126
|
* @throws {RequiredError}
|
|
2898
3127
|
* @memberof Scout9Api
|
|
2899
3128
|
*/
|
|
2900
|
-
|
|
2901
|
-
return (0, exports.Scout9ApiFp)(this.configuration).
|
|
3129
|
+
scheduleUpdate(scheduleUpdateRequest, options) {
|
|
3130
|
+
return (0, exports.Scout9ApiFp)(this.configuration).scheduleUpdate(scheduleUpdateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2902
3131
|
}
|
|
2903
3132
|
/**
|
|
2904
3133
|
*
|
|
2905
|
-
* @summary
|
|
2906
|
-
* @param {
|
|
3134
|
+
* @summary Gets a workflow
|
|
3135
|
+
* @param {string} id
|
|
2907
3136
|
* @param {*} [options] Override http request option.
|
|
2908
3137
|
* @throws {RequiredError}
|
|
2909
3138
|
* @memberof Scout9Api
|
|
2910
3139
|
*/
|
|
2911
|
-
|
|
2912
|
-
return (0, exports.Scout9ApiFp)(this.configuration).
|
|
3140
|
+
workflow(id, options) {
|
|
3141
|
+
return (0, exports.Scout9ApiFp)(this.configuration).workflow(id, options).then((request) => request(this.axios, this.basePath));
|
|
2913
3142
|
}
|
|
2914
3143
|
/**
|
|
2915
3144
|
*
|
|
2916
|
-
* @summary
|
|
2917
|
-
* @param {
|
|
3145
|
+
* @summary Create a new workflow
|
|
3146
|
+
* @param {CreateWorkflowRequest} createWorkflowRequest
|
|
2918
3147
|
* @param {*} [options] Override http request option.
|
|
2919
3148
|
* @throws {RequiredError}
|
|
2920
3149
|
* @memberof Scout9Api
|
|
2921
3150
|
*/
|
|
2922
|
-
|
|
2923
|
-
return (0, exports.Scout9ApiFp)(this.configuration).
|
|
3151
|
+
workflowCreate(createWorkflowRequest, options) {
|
|
3152
|
+
return (0, exports.Scout9ApiFp)(this.configuration).workflowCreate(createWorkflowRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2924
3153
|
}
|
|
2925
3154
|
/**
|
|
2926
3155
|
*
|
|
2927
|
-
* @summary
|
|
2928
|
-
* @param {
|
|
3156
|
+
* @summary Deletes a workflow
|
|
3157
|
+
* @param {string} id
|
|
2929
3158
|
* @param {*} [options] Override http request option.
|
|
2930
3159
|
* @throws {RequiredError}
|
|
2931
3160
|
* @memberof Scout9Api
|
|
2932
3161
|
*/
|
|
2933
|
-
|
|
2934
|
-
return (0, exports.Scout9ApiFp)(this.configuration).
|
|
3162
|
+
workflowDelete(id, options) {
|
|
3163
|
+
return (0, exports.Scout9ApiFp)(this.configuration).workflowDelete(id, options).then((request) => request(this.axios, this.basePath));
|
|
2935
3164
|
}
|
|
2936
3165
|
/**
|
|
2937
3166
|
*
|
|
2938
|
-
* @summary
|
|
2939
|
-
* @param {
|
|
3167
|
+
* @summary Update a workflow
|
|
3168
|
+
* @param {UpdateWorkflowRequest} updateWorkflowRequest
|
|
2940
3169
|
* @param {*} [options] Override http request option.
|
|
2941
3170
|
* @throws {RequiredError}
|
|
2942
3171
|
* @memberof Scout9Api
|
|
2943
3172
|
*/
|
|
2944
|
-
|
|
2945
|
-
return (0, exports.Scout9ApiFp)(this.configuration).
|
|
3173
|
+
workflowUpdate(updateWorkflowRequest, options) {
|
|
3174
|
+
return (0, exports.Scout9ApiFp)(this.configuration).workflowUpdate(updateWorkflowRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2946
3175
|
}
|
|
2947
3176
|
/**
|
|
2948
3177
|
*
|
|
2949
|
-
* @summary
|
|
2950
|
-
* @param {
|
|
3178
|
+
* @summary Gets all or specific set of workflows
|
|
3179
|
+
* @param {string} [q] Query search string to filter results ({field},{operator},{value}) (example firstName,equals,Patrick)
|
|
3180
|
+
* @param {Array<string>} [id]
|
|
2951
3181
|
* @param {*} [options] Override http request option.
|
|
2952
3182
|
* @throws {RequiredError}
|
|
2953
3183
|
* @memberof Scout9Api
|
|
2954
3184
|
*/
|
|
2955
|
-
|
|
2956
|
-
return (0, exports.Scout9ApiFp)(this.configuration).
|
|
3185
|
+
workflows(q, id, options) {
|
|
3186
|
+
return (0, exports.Scout9ApiFp)(this.configuration).workflows(q, id, options).then((request) => request(this.axios, this.basePath));
|
|
2957
3187
|
}
|
|
2958
3188
|
/**
|
|
2959
3189
|
*
|
|
2960
|
-
* @summary
|
|
2961
|
-
* @param {
|
|
3190
|
+
* @summary Creates new workflows
|
|
3191
|
+
* @param {CreateWorkflowsRequest} createWorkflowsRequest
|
|
2962
3192
|
* @param {*} [options] Override http request option.
|
|
2963
3193
|
* @throws {RequiredError}
|
|
2964
3194
|
* @memberof Scout9Api
|
|
2965
3195
|
*/
|
|
2966
|
-
|
|
2967
|
-
return (0, exports.Scout9ApiFp)(this.configuration).
|
|
3196
|
+
workflowsCreate(createWorkflowsRequest, options) {
|
|
3197
|
+
return (0, exports.Scout9ApiFp)(this.configuration).workflowsCreate(createWorkflowsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2968
3198
|
}
|
|
2969
3199
|
/**
|
|
2970
3200
|
*
|
|
2971
|
-
* @summary
|
|
2972
|
-
* @param {
|
|
3201
|
+
* @summary Deletes multiple workflows
|
|
3202
|
+
* @param {Array<string>} [id]
|
|
2973
3203
|
* @param {*} [options] Override http request option.
|
|
2974
3204
|
* @throws {RequiredError}
|
|
2975
3205
|
* @memberof Scout9Api
|
|
2976
3206
|
*/
|
|
2977
|
-
|
|
2978
|
-
return (0, exports.Scout9ApiFp)(this.configuration).
|
|
3207
|
+
workflowsDelete(id, options) {
|
|
3208
|
+
return (0, exports.Scout9ApiFp)(this.configuration).workflowsDelete(id, options).then((request) => request(this.axios, this.basePath));
|
|
2979
3209
|
}
|
|
2980
3210
|
/**
|
|
2981
3211
|
*
|
|
@@ -2985,8 +3215,8 @@ class Scout9Api extends base_1.BaseAPI {
|
|
|
2985
3215
|
* @throws {RequiredError}
|
|
2986
3216
|
* @memberof Scout9Api
|
|
2987
3217
|
*/
|
|
2988
|
-
|
|
2989
|
-
return (0, exports.Scout9ApiFp)(this.configuration).
|
|
3218
|
+
workflowsUpdate(updateWorkflowRequest, options) {
|
|
3219
|
+
return (0, exports.Scout9ApiFp)(this.configuration).workflowsUpdate(updateWorkflowRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2990
3220
|
}
|
|
2991
3221
|
}
|
|
2992
3222
|
exports.Scout9Api = Scout9Api;
|