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