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