@scout9/admin 1.0.1 → 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 +12 -3
- package/src/api.ts +3735 -95
- package/src/base.ts +34 -17
- package/src/common.ts +73 -59
- package/src/configuration.ts +92 -115
- package/src/index.ts +16 -0
- 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 -78
- package/build/api.js +0 -90
- package/build/base.d.ts +0 -43
- package/build/base.js +0 -52
- package/build/common.d.ts +0 -54
- package/build/common.js +0 -132
- package/build/configuration.d.ts +0 -84
- package/build/configuration.js +0 -106
- package/build/index.d.ts +0 -2
- package/build/index.js +0 -18
- 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/api-openai.txt +0 -4117
- package/src/schemas/common/algolia.ts +0 -24
- package/src/schemas/common/contact-map.ts +0 -35
- package/src/schemas/common/currency.ts +0 -1
- package/src/schemas/common/index.ts +0 -6
- package/src/schemas/common/location.ts +0 -6
- package/src/schemas/common/task.ts +0 -26
- package/src/schemas/common/time.ts +0 -15
- package/src/schemas/common.ts +0 -94
- package/src/schemas/conversations/context.ts +0 -64
- package/src/schemas/conversations/conversation.ts +0 -68
- package/src/schemas/conversations/index.ts +0 -6
- package/src/schemas/conversations/message.ts +0 -78
- package/src/schemas/conversations/parsed.ts +0 -5
- package/src/schemas/conversations/scheduled-conversation.ts +0 -35
- package/src/schemas/conversations/webhook.ts +0 -10
- package/src/schemas/index.ts +0 -3
- package/src/schemas/users/businesses/agents/agent.ts +0 -107
- package/src/schemas/users/businesses/agents/auth.ts +0 -8
- package/src/schemas/users/businesses/agents/index.ts +0 -2
- package/src/schemas/users/businesses/business-location.ts +0 -15
- package/src/schemas/users/businesses/business.ts +0 -43
- package/src/schemas/users/businesses/context/context-indexed.ts +0 -11
- package/src/schemas/users/businesses/context/context-saves.ts +0 -14
- package/src/schemas/users/businesses/context/context.ts +0 -76
- package/src/schemas/users/businesses/context/index.ts +0 -2
- package/src/schemas/users/businesses/index.ts +0 -6
- package/src/schemas/users/businesses/notifications.ts +0 -12
- package/src/schemas/users/businesses/offerings/index.ts +0 -2
- package/src/schemas/users/businesses/offerings/offer-indexed.ts +0 -42
- package/src/schemas/users/businesses/offerings/offer.ts +0 -39
- package/src/schemas/users/businesses/thread.ts +0 -55
- package/src/schemas/users/customers/customer.ts +0 -46
- package/src/schemas/users/customers/index.ts +0 -1
- package/src/schemas/users/index.ts +0 -2
package/src/api.ts
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Scout9 API
|
|
5
|
+
* APIs for managing Scout9 users and conversations
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
1
16
|
import type { Configuration } from './configuration';
|
|
2
17
|
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
3
18
|
import globalAxios from 'axios';
|
|
@@ -6,114 +21,3477 @@ import globalAxios from 'axios';
|
|
|
6
21
|
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
|
|
7
22
|
import type { RequestArgs } from './base';
|
|
8
23
|
// @ts-ignore
|
|
9
|
-
import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError
|
|
10
|
-
|
|
24
|
+
import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError } from './base';
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @export
|
|
29
|
+
* @interface BlockInfo
|
|
30
|
+
*/
|
|
31
|
+
export interface BlockInfo {
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof BlockInfo
|
|
36
|
+
*/
|
|
37
|
+
'message'?: string;
|
|
38
|
+
/**
|
|
39
|
+
* ISO 8601 datetime string
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof BlockInfo
|
|
42
|
+
*/
|
|
43
|
+
'time'?: string;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
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
|
+
*
|
|
308
|
+
* @export
|
|
309
|
+
* @interface CreateCustomerRequest
|
|
310
|
+
*/
|
|
311
|
+
export interface CreateCustomerRequest {
|
|
312
|
+
/**
|
|
313
|
+
* The customers first name
|
|
314
|
+
* @type {string}
|
|
315
|
+
* @memberof CreateCustomerRequest
|
|
316
|
+
*/
|
|
317
|
+
'firstName': string;
|
|
318
|
+
/**
|
|
319
|
+
* The customers last name
|
|
320
|
+
* @type {string}
|
|
321
|
+
* @memberof CreateCustomerRequest
|
|
322
|
+
*/
|
|
323
|
+
'lastName': string;
|
|
324
|
+
/**
|
|
325
|
+
* The customers full name
|
|
326
|
+
* @type {string}
|
|
327
|
+
* @memberof CreateCustomerRequest
|
|
328
|
+
*/
|
|
329
|
+
'name'?: string;
|
|
330
|
+
/**
|
|
331
|
+
* The customers email address
|
|
332
|
+
* @type {string}
|
|
333
|
+
* @memberof CreateCustomerRequest
|
|
334
|
+
*/
|
|
335
|
+
'email'?: string | null;
|
|
336
|
+
/**
|
|
337
|
+
* The customers phone number
|
|
338
|
+
* @type {string}
|
|
339
|
+
* @memberof CreateCustomerRequest
|
|
340
|
+
*/
|
|
341
|
+
'phone'?: string | null;
|
|
342
|
+
/**
|
|
343
|
+
* The customers profile image
|
|
344
|
+
* @type {string}
|
|
345
|
+
* @memberof CreateCustomerRequest
|
|
346
|
+
*/
|
|
347
|
+
'img'?: string | null;
|
|
348
|
+
/**
|
|
349
|
+
* The customers neighborhood
|
|
350
|
+
* @type {string}
|
|
351
|
+
* @memberof CreateCustomerRequest
|
|
352
|
+
*/
|
|
353
|
+
'neighborhood'?: string | null;
|
|
354
|
+
/**
|
|
355
|
+
* The customers city
|
|
356
|
+
* @type {string}
|
|
357
|
+
* @memberof CreateCustomerRequest
|
|
358
|
+
*/
|
|
359
|
+
'city'?: string | null;
|
|
360
|
+
/**
|
|
361
|
+
* The customers 2-letter country code
|
|
362
|
+
* @type {string}
|
|
363
|
+
* @memberof CreateCustomerRequest
|
|
364
|
+
*/
|
|
365
|
+
'country'?: string | null;
|
|
366
|
+
/**
|
|
367
|
+
* The customers street address
|
|
368
|
+
* @type {string}
|
|
369
|
+
* @memberof CreateCustomerRequest
|
|
370
|
+
*/
|
|
371
|
+
'line1'?: string | null;
|
|
372
|
+
/**
|
|
373
|
+
* The customers street address
|
|
374
|
+
* @type {string}
|
|
375
|
+
* @memberof CreateCustomerRequest
|
|
376
|
+
*/
|
|
377
|
+
'line2'?: string | null;
|
|
378
|
+
/**
|
|
379
|
+
* The customers postal code
|
|
380
|
+
* @type {string}
|
|
381
|
+
* @memberof CreateCustomerRequest
|
|
382
|
+
*/
|
|
383
|
+
'postal_code'?: string | null;
|
|
384
|
+
/**
|
|
385
|
+
* The customers state, county, province, or region
|
|
386
|
+
* @type {string}
|
|
387
|
+
* @memberof CreateCustomerRequest
|
|
388
|
+
*/
|
|
389
|
+
'state'?: string | null;
|
|
390
|
+
/**
|
|
391
|
+
* The customers town (only used in Japan)
|
|
392
|
+
* @type {string}
|
|
393
|
+
* @memberof CreateCustomerRequest
|
|
394
|
+
*/
|
|
395
|
+
'town'?: string | null;
|
|
396
|
+
/**
|
|
397
|
+
*
|
|
398
|
+
* @type {BlockInfo}
|
|
399
|
+
* @memberof CreateCustomerRequest
|
|
400
|
+
*/
|
|
401
|
+
'blocked'?: BlockInfo;
|
|
402
|
+
/**
|
|
403
|
+
*
|
|
404
|
+
* @type {BlockInfo}
|
|
405
|
+
* @memberof CreateCustomerRequest
|
|
406
|
+
*/
|
|
407
|
+
'phoneBlocked'?: BlockInfo;
|
|
408
|
+
/**
|
|
409
|
+
*
|
|
410
|
+
* @type {BlockInfo}
|
|
411
|
+
* @memberof CreateCustomerRequest
|
|
412
|
+
*/
|
|
413
|
+
'emailBlocked'?: BlockInfo;
|
|
414
|
+
/**
|
|
415
|
+
* The date the customer joined the business
|
|
416
|
+
* @type {string}
|
|
417
|
+
* @memberof CreateCustomerRequest
|
|
418
|
+
*/
|
|
419
|
+
'joined'?: string | null;
|
|
420
|
+
/**
|
|
421
|
+
* The customers stripe ID
|
|
422
|
+
* @type {string}
|
|
423
|
+
* @memberof CreateCustomerRequest
|
|
424
|
+
*/
|
|
425
|
+
'stripe'?: string | null;
|
|
426
|
+
/**
|
|
427
|
+
* The customers stripe ID in the dev environment
|
|
428
|
+
* @type {string}
|
|
429
|
+
* @memberof CreateCustomerRequest
|
|
430
|
+
*/
|
|
431
|
+
'stripeDev'?: string | null;
|
|
432
|
+
}
|
|
433
|
+
/**
|
|
434
|
+
*
|
|
435
|
+
* @export
|
|
436
|
+
* @interface CreateCustomerResponse
|
|
437
|
+
*/
|
|
438
|
+
export interface CreateCustomerResponse {
|
|
439
|
+
/**
|
|
440
|
+
*
|
|
441
|
+
* @type {boolean}
|
|
442
|
+
* @memberof CreateCustomerResponse
|
|
443
|
+
*/
|
|
444
|
+
'success': boolean;
|
|
445
|
+
/**
|
|
446
|
+
*
|
|
447
|
+
* @type {Error}
|
|
448
|
+
* @memberof CreateCustomerResponse
|
|
449
|
+
*/
|
|
450
|
+
'error'?: Error;
|
|
451
|
+
}
|
|
452
|
+
/**
|
|
453
|
+
*
|
|
454
|
+
* @export
|
|
455
|
+
* @interface CreateCustomersRequest
|
|
456
|
+
*/
|
|
457
|
+
export interface CreateCustomersRequest {
|
|
458
|
+
/**
|
|
459
|
+
*
|
|
460
|
+
* @type {Array<CreateCustomersRequestCustomersInner>}
|
|
461
|
+
* @memberof CreateCustomersRequest
|
|
462
|
+
*/
|
|
463
|
+
'customers'?: Array<CreateCustomersRequestCustomersInner>;
|
|
464
|
+
}
|
|
465
|
+
/**
|
|
466
|
+
*
|
|
467
|
+
* @export
|
|
468
|
+
* @interface CreateCustomersRequestCustomersInner
|
|
469
|
+
*/
|
|
470
|
+
export interface CreateCustomersRequestCustomersInner {
|
|
471
|
+
/**
|
|
472
|
+
* The customers first name
|
|
473
|
+
* @type {string}
|
|
474
|
+
* @memberof CreateCustomersRequestCustomersInner
|
|
475
|
+
*/
|
|
476
|
+
'firstName': string;
|
|
477
|
+
/**
|
|
478
|
+
* The customers last name
|
|
479
|
+
* @type {string}
|
|
480
|
+
* @memberof CreateCustomersRequestCustomersInner
|
|
481
|
+
*/
|
|
482
|
+
'lastName': string;
|
|
483
|
+
/**
|
|
484
|
+
* The customers full name
|
|
485
|
+
* @type {string}
|
|
486
|
+
* @memberof CreateCustomersRequestCustomersInner
|
|
487
|
+
*/
|
|
488
|
+
'name'?: string;
|
|
489
|
+
/**
|
|
490
|
+
* The customers email address
|
|
491
|
+
* @type {string}
|
|
492
|
+
* @memberof CreateCustomersRequestCustomersInner
|
|
493
|
+
*/
|
|
494
|
+
'email'?: string | null;
|
|
495
|
+
/**
|
|
496
|
+
* The customers phone number
|
|
497
|
+
* @type {string}
|
|
498
|
+
* @memberof CreateCustomersRequestCustomersInner
|
|
499
|
+
*/
|
|
500
|
+
'phone'?: string | null;
|
|
501
|
+
/**
|
|
502
|
+
* The customers profile image
|
|
503
|
+
* @type {string}
|
|
504
|
+
* @memberof CreateCustomersRequestCustomersInner
|
|
505
|
+
*/
|
|
506
|
+
'img'?: string | null;
|
|
507
|
+
/**
|
|
508
|
+
* The customers neighborhood
|
|
509
|
+
* @type {string}
|
|
510
|
+
* @memberof CreateCustomersRequestCustomersInner
|
|
511
|
+
*/
|
|
512
|
+
'neighborhood'?: string | null;
|
|
513
|
+
/**
|
|
514
|
+
* The customers city
|
|
515
|
+
* @type {string}
|
|
516
|
+
* @memberof CreateCustomersRequestCustomersInner
|
|
517
|
+
*/
|
|
518
|
+
'city'?: string | null;
|
|
519
|
+
/**
|
|
520
|
+
* The customers 2-letter country code
|
|
521
|
+
* @type {string}
|
|
522
|
+
* @memberof CreateCustomersRequestCustomersInner
|
|
523
|
+
*/
|
|
524
|
+
'country'?: string | null;
|
|
525
|
+
/**
|
|
526
|
+
* The customers street address
|
|
527
|
+
* @type {string}
|
|
528
|
+
* @memberof CreateCustomersRequestCustomersInner
|
|
529
|
+
*/
|
|
530
|
+
'line1'?: string | null;
|
|
531
|
+
/**
|
|
532
|
+
* The customers street address
|
|
533
|
+
* @type {string}
|
|
534
|
+
* @memberof CreateCustomersRequestCustomersInner
|
|
535
|
+
*/
|
|
536
|
+
'line2'?: string | null;
|
|
537
|
+
/**
|
|
538
|
+
* The customers postal code
|
|
539
|
+
* @type {string}
|
|
540
|
+
* @memberof CreateCustomersRequestCustomersInner
|
|
541
|
+
*/
|
|
542
|
+
'postal_code'?: string | null;
|
|
543
|
+
/**
|
|
544
|
+
* The customers state, county, province, or region
|
|
545
|
+
* @type {string}
|
|
546
|
+
* @memberof CreateCustomersRequestCustomersInner
|
|
547
|
+
*/
|
|
548
|
+
'state'?: string | null;
|
|
549
|
+
/**
|
|
550
|
+
* The customers town (only used in Japan)
|
|
551
|
+
* @type {string}
|
|
552
|
+
* @memberof CreateCustomersRequestCustomersInner
|
|
553
|
+
*/
|
|
554
|
+
'town'?: string | null;
|
|
555
|
+
/**
|
|
556
|
+
*
|
|
557
|
+
* @type {BlockInfo}
|
|
558
|
+
* @memberof CreateCustomersRequestCustomersInner
|
|
559
|
+
*/
|
|
560
|
+
'blocked'?: BlockInfo;
|
|
561
|
+
/**
|
|
562
|
+
*
|
|
563
|
+
* @type {BlockInfo}
|
|
564
|
+
* @memberof CreateCustomersRequestCustomersInner
|
|
565
|
+
*/
|
|
566
|
+
'phoneBlocked'?: BlockInfo;
|
|
567
|
+
/**
|
|
568
|
+
*
|
|
569
|
+
* @type {BlockInfo}
|
|
570
|
+
* @memberof CreateCustomersRequestCustomersInner
|
|
571
|
+
*/
|
|
572
|
+
'emailBlocked'?: BlockInfo;
|
|
573
|
+
/**
|
|
574
|
+
* The date the customer joined the business
|
|
575
|
+
* @type {string}
|
|
576
|
+
* @memberof CreateCustomersRequestCustomersInner
|
|
577
|
+
*/
|
|
578
|
+
'joined'?: string | null;
|
|
579
|
+
/**
|
|
580
|
+
* The customers stripe ID
|
|
581
|
+
* @type {string}
|
|
582
|
+
* @memberof CreateCustomersRequestCustomersInner
|
|
583
|
+
*/
|
|
584
|
+
'stripe'?: string | null;
|
|
585
|
+
/**
|
|
586
|
+
* The customers stripe ID in the dev environment
|
|
587
|
+
* @type {string}
|
|
588
|
+
* @memberof CreateCustomersRequestCustomersInner
|
|
589
|
+
*/
|
|
590
|
+
'stripeDev'?: string | null;
|
|
591
|
+
}
|
|
592
|
+
/**
|
|
593
|
+
*
|
|
594
|
+
* @export
|
|
595
|
+
* @interface CreateCustomersResponse
|
|
596
|
+
*/
|
|
597
|
+
export interface CreateCustomersResponse {
|
|
598
|
+
/**
|
|
599
|
+
*
|
|
600
|
+
* @type {boolean}
|
|
601
|
+
* @memberof CreateCustomersResponse
|
|
602
|
+
*/
|
|
603
|
+
'success': boolean;
|
|
604
|
+
/**
|
|
605
|
+
*
|
|
606
|
+
* @type {Error}
|
|
607
|
+
* @memberof CreateCustomersResponse
|
|
608
|
+
*/
|
|
609
|
+
'error'?: Error;
|
|
610
|
+
}
|
|
611
|
+
/**
|
|
612
|
+
*
|
|
613
|
+
* @export
|
|
614
|
+
* @interface Customer
|
|
615
|
+
*/
|
|
616
|
+
export interface Customer {
|
|
617
|
+
/**
|
|
618
|
+
* The customers first name
|
|
619
|
+
* @type {string}
|
|
620
|
+
* @memberof Customer
|
|
621
|
+
*/
|
|
622
|
+
'firstName'?: string;
|
|
623
|
+
/**
|
|
624
|
+
* The customers last name
|
|
625
|
+
* @type {string}
|
|
626
|
+
* @memberof Customer
|
|
627
|
+
*/
|
|
628
|
+
'lastName'?: string;
|
|
629
|
+
/**
|
|
630
|
+
* The customers full name
|
|
631
|
+
* @type {string}
|
|
632
|
+
* @memberof Customer
|
|
633
|
+
*/
|
|
634
|
+
'name'?: string;
|
|
635
|
+
/**
|
|
636
|
+
* The customers email address
|
|
637
|
+
* @type {string}
|
|
638
|
+
* @memberof Customer
|
|
639
|
+
*/
|
|
640
|
+
'email'?: string | null;
|
|
641
|
+
/**
|
|
642
|
+
* The customers phone number
|
|
643
|
+
* @type {string}
|
|
644
|
+
* @memberof Customer
|
|
645
|
+
*/
|
|
646
|
+
'phone'?: string | null;
|
|
647
|
+
/**
|
|
648
|
+
* The customers profile image
|
|
649
|
+
* @type {string}
|
|
650
|
+
* @memberof Customer
|
|
651
|
+
*/
|
|
652
|
+
'img'?: string | null;
|
|
653
|
+
/**
|
|
654
|
+
* The customers neighborhood
|
|
655
|
+
* @type {string}
|
|
656
|
+
* @memberof Customer
|
|
657
|
+
*/
|
|
658
|
+
'neighborhood'?: string | null;
|
|
659
|
+
/**
|
|
660
|
+
* The customers city
|
|
661
|
+
* @type {string}
|
|
662
|
+
* @memberof Customer
|
|
663
|
+
*/
|
|
664
|
+
'city'?: string | null;
|
|
665
|
+
/**
|
|
666
|
+
* The customers 2-letter country code
|
|
667
|
+
* @type {string}
|
|
668
|
+
* @memberof Customer
|
|
669
|
+
*/
|
|
670
|
+
'country'?: string | null;
|
|
671
|
+
/**
|
|
672
|
+
* The customers street address
|
|
673
|
+
* @type {string}
|
|
674
|
+
* @memberof Customer
|
|
675
|
+
*/
|
|
676
|
+
'line1'?: string | null;
|
|
677
|
+
/**
|
|
678
|
+
* The customers street address
|
|
679
|
+
* @type {string}
|
|
680
|
+
* @memberof Customer
|
|
681
|
+
*/
|
|
682
|
+
'line2'?: string | null;
|
|
683
|
+
/**
|
|
684
|
+
* The customers postal code
|
|
685
|
+
* @type {string}
|
|
686
|
+
* @memberof Customer
|
|
687
|
+
*/
|
|
688
|
+
'postal_code'?: string | null;
|
|
689
|
+
/**
|
|
690
|
+
* The customers state, county, province, or region
|
|
691
|
+
* @type {string}
|
|
692
|
+
* @memberof Customer
|
|
693
|
+
*/
|
|
694
|
+
'state'?: string | null;
|
|
695
|
+
/**
|
|
696
|
+
* The customers town (only used in Japan)
|
|
697
|
+
* @type {string}
|
|
698
|
+
* @memberof Customer
|
|
699
|
+
*/
|
|
700
|
+
'town'?: string | null;
|
|
701
|
+
/**
|
|
702
|
+
*
|
|
703
|
+
* @type {BlockInfo}
|
|
704
|
+
* @memberof Customer
|
|
705
|
+
*/
|
|
706
|
+
'blocked'?: BlockInfo;
|
|
707
|
+
/**
|
|
708
|
+
*
|
|
709
|
+
* @type {BlockInfo}
|
|
710
|
+
* @memberof Customer
|
|
711
|
+
*/
|
|
712
|
+
'phoneBlocked'?: BlockInfo;
|
|
713
|
+
/**
|
|
714
|
+
*
|
|
715
|
+
* @type {BlockInfo}
|
|
716
|
+
* @memberof Customer
|
|
717
|
+
*/
|
|
718
|
+
'emailBlocked'?: BlockInfo;
|
|
719
|
+
/**
|
|
720
|
+
* The date the customer joined the business
|
|
721
|
+
* @type {string}
|
|
722
|
+
* @memberof Customer
|
|
723
|
+
*/
|
|
724
|
+
'joined'?: string | null;
|
|
725
|
+
/**
|
|
726
|
+
* The customers stripe ID
|
|
727
|
+
* @type {string}
|
|
728
|
+
* @memberof Customer
|
|
729
|
+
*/
|
|
730
|
+
'stripe'?: string | null;
|
|
731
|
+
/**
|
|
732
|
+
* The customers stripe ID in the dev environment
|
|
733
|
+
* @type {string}
|
|
734
|
+
* @memberof Customer
|
|
735
|
+
*/
|
|
736
|
+
'stripeDev'?: string | null;
|
|
737
|
+
}
|
|
738
|
+
/**
|
|
739
|
+
*
|
|
740
|
+
* @export
|
|
741
|
+
* @interface DeleteCustomerResponse
|
|
742
|
+
*/
|
|
743
|
+
export interface DeleteCustomerResponse {
|
|
744
|
+
/**
|
|
745
|
+
*
|
|
746
|
+
* @type {boolean}
|
|
747
|
+
* @memberof DeleteCustomerResponse
|
|
748
|
+
*/
|
|
749
|
+
'success': boolean;
|
|
750
|
+
/**
|
|
751
|
+
*
|
|
752
|
+
* @type {Error}
|
|
753
|
+
* @memberof DeleteCustomerResponse
|
|
754
|
+
*/
|
|
755
|
+
'error'?: Error;
|
|
756
|
+
}
|
|
757
|
+
/**
|
|
758
|
+
*
|
|
759
|
+
* @export
|
|
760
|
+
* @interface DeleteCustomersResponse
|
|
761
|
+
*/
|
|
762
|
+
export interface DeleteCustomersResponse {
|
|
763
|
+
/**
|
|
764
|
+
*
|
|
765
|
+
* @type {boolean}
|
|
766
|
+
* @memberof DeleteCustomersResponse
|
|
767
|
+
*/
|
|
768
|
+
'success': boolean;
|
|
769
|
+
/**
|
|
770
|
+
*
|
|
771
|
+
* @type {Error}
|
|
772
|
+
* @memberof DeleteCustomersResponse
|
|
773
|
+
*/
|
|
774
|
+
'error'?: Error;
|
|
775
|
+
}
|
|
776
|
+
/**
|
|
777
|
+
*
|
|
778
|
+
* @export
|
|
779
|
+
* @interface ErrorResponse
|
|
780
|
+
*/
|
|
781
|
+
export interface ErrorResponse {
|
|
782
|
+
/**
|
|
783
|
+
*
|
|
784
|
+
* @type {Error}
|
|
785
|
+
* @memberof ErrorResponse
|
|
786
|
+
*/
|
|
787
|
+
'error': Error;
|
|
788
|
+
}
|
|
789
|
+
/**
|
|
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
|
+
*
|
|
835
|
+
* @export
|
|
836
|
+
* @interface GetCustomerResponse
|
|
837
|
+
*/
|
|
838
|
+
export interface GetCustomerResponse {
|
|
839
|
+
/**
|
|
840
|
+
* The customers first name
|
|
841
|
+
* @type {string}
|
|
842
|
+
* @memberof GetCustomerResponse
|
|
843
|
+
*/
|
|
844
|
+
'firstName': string;
|
|
845
|
+
/**
|
|
846
|
+
* The customers last name
|
|
847
|
+
* @type {string}
|
|
848
|
+
* @memberof GetCustomerResponse
|
|
849
|
+
*/
|
|
850
|
+
'lastName': string;
|
|
851
|
+
/**
|
|
852
|
+
* The customers full name
|
|
853
|
+
* @type {string}
|
|
854
|
+
* @memberof GetCustomerResponse
|
|
855
|
+
*/
|
|
856
|
+
'name'?: string;
|
|
857
|
+
/**
|
|
858
|
+
* The customers email address
|
|
859
|
+
* @type {string}
|
|
860
|
+
* @memberof GetCustomerResponse
|
|
861
|
+
*/
|
|
862
|
+
'email'?: string | null;
|
|
863
|
+
/**
|
|
864
|
+
* The customers phone number
|
|
865
|
+
* @type {string}
|
|
866
|
+
* @memberof GetCustomerResponse
|
|
867
|
+
*/
|
|
868
|
+
'phone'?: string | null;
|
|
869
|
+
/**
|
|
870
|
+
* The customers profile image
|
|
871
|
+
* @type {string}
|
|
872
|
+
* @memberof GetCustomerResponse
|
|
873
|
+
*/
|
|
874
|
+
'img'?: string | null;
|
|
875
|
+
/**
|
|
876
|
+
* The customers neighborhood
|
|
877
|
+
* @type {string}
|
|
878
|
+
* @memberof GetCustomerResponse
|
|
879
|
+
*/
|
|
880
|
+
'neighborhood'?: string | null;
|
|
881
|
+
/**
|
|
882
|
+
* The customers city
|
|
883
|
+
* @type {string}
|
|
884
|
+
* @memberof GetCustomerResponse
|
|
885
|
+
*/
|
|
886
|
+
'city'?: string | null;
|
|
887
|
+
/**
|
|
888
|
+
* The customers 2-letter country code
|
|
889
|
+
* @type {string}
|
|
890
|
+
* @memberof GetCustomerResponse
|
|
891
|
+
*/
|
|
892
|
+
'country'?: string | null;
|
|
893
|
+
/**
|
|
894
|
+
* The customers street address
|
|
895
|
+
* @type {string}
|
|
896
|
+
* @memberof GetCustomerResponse
|
|
897
|
+
*/
|
|
898
|
+
'line1'?: string | null;
|
|
899
|
+
/**
|
|
900
|
+
* The customers street address
|
|
901
|
+
* @type {string}
|
|
902
|
+
* @memberof GetCustomerResponse
|
|
903
|
+
*/
|
|
904
|
+
'line2'?: string | null;
|
|
905
|
+
/**
|
|
906
|
+
* The customers postal code
|
|
907
|
+
* @type {string}
|
|
908
|
+
* @memberof GetCustomerResponse
|
|
909
|
+
*/
|
|
910
|
+
'postal_code'?: string | null;
|
|
911
|
+
/**
|
|
912
|
+
* The customers state, county, province, or region
|
|
913
|
+
* @type {string}
|
|
914
|
+
* @memberof GetCustomerResponse
|
|
915
|
+
*/
|
|
916
|
+
'state'?: string | null;
|
|
917
|
+
/**
|
|
918
|
+
* The customers town (only used in Japan)
|
|
919
|
+
* @type {string}
|
|
920
|
+
* @memberof GetCustomerResponse
|
|
921
|
+
*/
|
|
922
|
+
'town'?: string | null;
|
|
923
|
+
/**
|
|
924
|
+
*
|
|
925
|
+
* @type {BlockInfo}
|
|
926
|
+
* @memberof GetCustomerResponse
|
|
927
|
+
*/
|
|
928
|
+
'blocked'?: BlockInfo;
|
|
929
|
+
/**
|
|
930
|
+
*
|
|
931
|
+
* @type {BlockInfo}
|
|
932
|
+
* @memberof GetCustomerResponse
|
|
933
|
+
*/
|
|
934
|
+
'phoneBlocked'?: BlockInfo;
|
|
935
|
+
/**
|
|
936
|
+
*
|
|
937
|
+
* @type {BlockInfo}
|
|
938
|
+
* @memberof GetCustomerResponse
|
|
939
|
+
*/
|
|
940
|
+
'emailBlocked'?: BlockInfo;
|
|
941
|
+
/**
|
|
942
|
+
* The date the customer joined the business
|
|
943
|
+
* @type {string}
|
|
944
|
+
* @memberof GetCustomerResponse
|
|
945
|
+
*/
|
|
946
|
+
'joined'?: string | null;
|
|
947
|
+
/**
|
|
948
|
+
* The customers stripe ID
|
|
949
|
+
* @type {string}
|
|
950
|
+
* @memberof GetCustomerResponse
|
|
951
|
+
*/
|
|
952
|
+
'stripe'?: string | null;
|
|
953
|
+
/**
|
|
954
|
+
* The customers stripe ID in the dev environment
|
|
955
|
+
* @type {string}
|
|
956
|
+
* @memberof GetCustomerResponse
|
|
957
|
+
*/
|
|
958
|
+
'stripeDev'?: string | null;
|
|
959
|
+
}
|
|
960
|
+
/**
|
|
961
|
+
*
|
|
962
|
+
* @export
|
|
963
|
+
* @interface Message
|
|
964
|
+
*/
|
|
965
|
+
export interface Message {
|
|
966
|
+
/**
|
|
967
|
+
* The role of the message (customer, agent, or business)
|
|
968
|
+
* @type {string}
|
|
969
|
+
* @memberof Message
|
|
970
|
+
*/
|
|
971
|
+
'role'?: string;
|
|
972
|
+
/**
|
|
973
|
+
* The content of the message
|
|
974
|
+
* @type {string}
|
|
975
|
+
* @memberof Message
|
|
976
|
+
*/
|
|
977
|
+
'content'?: string;
|
|
978
|
+
/**
|
|
979
|
+
* The name of the sender
|
|
980
|
+
* @type {string}
|
|
981
|
+
* @memberof Message
|
|
982
|
+
*/
|
|
983
|
+
'name'?: string;
|
|
984
|
+
/**
|
|
985
|
+
* The time the message was sent
|
|
986
|
+
* @type {string}
|
|
987
|
+
* @memberof Message
|
|
988
|
+
*/
|
|
989
|
+
'time'?: string;
|
|
990
|
+
}
|
|
991
|
+
/**
|
|
992
|
+
*
|
|
993
|
+
* @export
|
|
994
|
+
* @interface MessageCreateRequest
|
|
995
|
+
*/
|
|
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 {
|
|
1016
|
+
/**
|
|
1017
|
+
*
|
|
1018
|
+
* @type {boolean}
|
|
1019
|
+
* @memberof MessageCreateResponse
|
|
1020
|
+
*/
|
|
1021
|
+
'success': boolean;
|
|
1022
|
+
/**
|
|
1023
|
+
*
|
|
1024
|
+
* @type {Error}
|
|
1025
|
+
* @memberof MessageCreateResponse
|
|
1026
|
+
*/
|
|
1027
|
+
'error'?: Error;
|
|
1028
|
+
}
|
|
1029
|
+
/**
|
|
1030
|
+
*
|
|
1031
|
+
* @export
|
|
1032
|
+
* @interface MessageGetResponseInner
|
|
1033
|
+
*/
|
|
1034
|
+
export interface MessageGetResponseInner {
|
|
1035
|
+
/**
|
|
1036
|
+
* The role of the message (customer, agent, or business)
|
|
1037
|
+
* @type {string}
|
|
1038
|
+
* @memberof MessageGetResponseInner
|
|
1039
|
+
*/
|
|
1040
|
+
'role'?: string;
|
|
1041
|
+
/**
|
|
1042
|
+
* The content of the message
|
|
1043
|
+
* @type {string}
|
|
1044
|
+
* @memberof MessageGetResponseInner
|
|
1045
|
+
*/
|
|
1046
|
+
'content'?: string;
|
|
1047
|
+
/**
|
|
1048
|
+
* The name of the sender
|
|
1049
|
+
* @type {string}
|
|
1050
|
+
* @memberof MessageGetResponseInner
|
|
1051
|
+
*/
|
|
1052
|
+
'name'?: string;
|
|
1053
|
+
/**
|
|
1054
|
+
* The time the message was sent
|
|
1055
|
+
* @type {string}
|
|
1056
|
+
* @memberof MessageGetResponseInner
|
|
1057
|
+
*/
|
|
1058
|
+
'time'?: string;
|
|
1059
|
+
}
|
|
1060
|
+
/**
|
|
1061
|
+
*
|
|
1062
|
+
* @export
|
|
1063
|
+
* @interface ModelError
|
|
1064
|
+
*/
|
|
1065
|
+
export interface ModelError {
|
|
1066
|
+
/**
|
|
1067
|
+
*
|
|
1068
|
+
* @type {string}
|
|
1069
|
+
* @memberof ModelError
|
|
1070
|
+
*/
|
|
1071
|
+
'type': string;
|
|
1072
|
+
/**
|
|
1073
|
+
*
|
|
1074
|
+
* @type {string}
|
|
1075
|
+
* @memberof ModelError
|
|
1076
|
+
*/
|
|
1077
|
+
'message': string;
|
|
1078
|
+
/**
|
|
1079
|
+
*
|
|
1080
|
+
* @type {string}
|
|
1081
|
+
* @memberof ModelError
|
|
1082
|
+
*/
|
|
1083
|
+
'param': string | null;
|
|
1084
|
+
/**
|
|
1085
|
+
*
|
|
1086
|
+
* @type {string}
|
|
1087
|
+
* @memberof ModelError
|
|
1088
|
+
*/
|
|
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
|
|
1101
|
+
*/
|
|
1102
|
+
'success': boolean;
|
|
1103
|
+
/**
|
|
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
|
|
1118
|
+
* @type {string}
|
|
1119
|
+
* @memberof ScheduleCreateRequest
|
|
1120
|
+
*/
|
|
1121
|
+
'$customer'?: string;
|
|
1122
|
+
/**
|
|
1123
|
+
*
|
|
1124
|
+
* @type {any}
|
|
1125
|
+
* @memberof ScheduleCreateRequest
|
|
1126
|
+
*/
|
|
1127
|
+
'$business'?: any | null;
|
|
1128
|
+
/**
|
|
1129
|
+
* Agent assigned to this conversation
|
|
1130
|
+
* @type {string}
|
|
1131
|
+
* @memberof ScheduleCreateRequest
|
|
1132
|
+
*/
|
|
1133
|
+
'$agent'?: string;
|
|
1134
|
+
/**
|
|
1135
|
+
* Thread this conversation is in - this determines what context to pull when loading the conversation
|
|
1136
|
+
* @type {string}
|
|
1137
|
+
* @memberof ScheduleCreateRequest
|
|
1138
|
+
*/
|
|
1139
|
+
'$thread'?: string;
|
|
1140
|
+
/**
|
|
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
|
|
1148
|
+
* @type {string}
|
|
1149
|
+
* @memberof ScheduleCreateRequest
|
|
1150
|
+
*/
|
|
1151
|
+
'environment'?: string;
|
|
1152
|
+
/**
|
|
1153
|
+
* ISO 8601 datetime string
|
|
1154
|
+
* @type {string}
|
|
1155
|
+
* @memberof ScheduleCreateRequest
|
|
1156
|
+
*/
|
|
1157
|
+
'scheduled'?: string;
|
|
1158
|
+
/**
|
|
1159
|
+
* The initial message to send to the customer
|
|
1160
|
+
* @type {string}
|
|
1161
|
+
* @memberof ScheduleCreateRequest
|
|
1162
|
+
*/
|
|
1163
|
+
'initialMessage'?: string;
|
|
1164
|
+
/**
|
|
1165
|
+
* The initial message to send to the customer in HTML
|
|
1166
|
+
* @type {string}
|
|
1167
|
+
* @memberof ScheduleCreateRequest
|
|
1168
|
+
*/
|
|
1169
|
+
'initialMessageHtml'?: string | null;
|
|
1170
|
+
/**
|
|
1171
|
+
* Whether the initial message has been sent
|
|
1172
|
+
* @type {boolean}
|
|
1173
|
+
* @memberof ScheduleCreateRequest
|
|
1174
|
+
*/
|
|
1175
|
+
'sent'?: boolean;
|
|
1176
|
+
/**
|
|
1177
|
+
* Group this conversation is in
|
|
1178
|
+
* @type {string}
|
|
1179
|
+
* @memberof ScheduleCreateRequest
|
|
1180
|
+
*/
|
|
1181
|
+
'$group'?: string;
|
|
1182
|
+
}
|
|
1183
|
+
/**
|
|
1184
|
+
*
|
|
1185
|
+
* @export
|
|
1186
|
+
* @interface ScheduleCreateResponse
|
|
1187
|
+
*/
|
|
1188
|
+
export interface ScheduleCreateResponse {
|
|
1189
|
+
/**
|
|
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
|
|
1210
|
+
* @type {string}
|
|
1211
|
+
* @memberof ScheduleGetResponse
|
|
1212
|
+
*/
|
|
1213
|
+
'$customer'?: string;
|
|
1214
|
+
/**
|
|
1215
|
+
* Business this conversation is with
|
|
1216
|
+
* @type {string}
|
|
1217
|
+
* @memberof ScheduleGetResponse
|
|
1218
|
+
*/
|
|
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;
|
|
1274
|
+
}
|
|
1275
|
+
/**
|
|
1276
|
+
*
|
|
1277
|
+
* @export
|
|
1278
|
+
* @interface ScheduleGroupCreateRequest
|
|
1279
|
+
*/
|
|
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;
|
|
1317
|
+
/**
|
|
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
|
|
1337
|
+
* @type {boolean}
|
|
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
|
|
1370
|
+
*/
|
|
1371
|
+
'success': boolean;
|
|
1372
|
+
/**
|
|
1373
|
+
*
|
|
1374
|
+
* @type {Error}
|
|
1375
|
+
* @memberof ScheduleGroupCreateResponse
|
|
1376
|
+
*/
|
|
1377
|
+
'error'?: Error;
|
|
1378
|
+
}
|
|
1379
|
+
/**
|
|
1380
|
+
*
|
|
1381
|
+
* @export
|
|
1382
|
+
* @interface ScheduleGroupGetResponse
|
|
1383
|
+
*/
|
|
1384
|
+
export interface ScheduleGroupGetResponse {
|
|
1385
|
+
/**
|
|
1386
|
+
* Customer this conversation is with
|
|
1387
|
+
* @type {string}
|
|
1388
|
+
* @memberof ScheduleGroupGetResponse
|
|
1389
|
+
*/
|
|
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>;
|
|
1463
|
+
}
|
|
1464
|
+
/**
|
|
1465
|
+
*
|
|
1466
|
+
* @export
|
|
1467
|
+
* @interface ScheduleGroupRemoveResponse
|
|
1468
|
+
*/
|
|
1469
|
+
export interface ScheduleGroupRemoveResponse {
|
|
1470
|
+
/**
|
|
1471
|
+
*
|
|
1472
|
+
* @type {boolean}
|
|
1473
|
+
* @memberof ScheduleGroupRemoveResponse
|
|
1474
|
+
*/
|
|
1475
|
+
'success': boolean;
|
|
1476
|
+
/**
|
|
1477
|
+
*
|
|
1478
|
+
* @type {Error}
|
|
1479
|
+
* @memberof ScheduleGroupRemoveResponse
|
|
1480
|
+
*/
|
|
1481
|
+
'error'?: Error;
|
|
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;
|
|
11
2319
|
|
|
12
|
-
export type ICustomerCreateRequest = ICustomer;
|
|
13
2320
|
|
|
14
|
-
export interface ICustomerCreateResponse {
|
|
15
|
-
success: boolean;
|
|
16
|
-
}
|
|
17
2321
|
|
|
18
|
-
|
|
2322
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
19
2323
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}
|
|
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)
|
|
23
2328
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
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
|
+
}
|
|
27
2351
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
}
|
|
2352
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
2353
|
+
const localVarHeaderParameter = {} as any;
|
|
2354
|
+
const localVarQueryParameter = {} as any;
|
|
31
2355
|
|
|
32
|
-
export interface ICustomerCreateBulkRequest {
|
|
33
|
-
customers: ICustomer[];
|
|
34
|
-
}
|
|
35
2356
|
|
|
36
|
-
export interface ICustomerCreateBulkResponse {
|
|
37
|
-
success: boolean;
|
|
38
|
-
}
|
|
39
2357
|
|
|
40
|
-
|
|
41
|
-
customers: string[];
|
|
42
|
-
}
|
|
2358
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
43
2359
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
}
|
|
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)
|
|
47
2364
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
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
|
+
}
|
|
51
2387
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
}
|
|
2388
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
2389
|
+
const localVarHeaderParameter = {} as any;
|
|
2390
|
+
const localVarQueryParameter = {} as any;
|
|
55
2391
|
|
|
56
|
-
|
|
57
|
-
|
|
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
|
+
}
|
|
2535
|
+
|
|
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
|
+
},
|
|
2555
|
+
/**
|
|
2556
|
+
*
|
|
2557
|
+
* @summary Generate a message from conversation
|
|
2558
|
+
* @param {GenerateRequest} generateRequest
|
|
2559
|
+
* @param {*} [options] Override http request option.
|
|
2560
|
+
* @throws {RequiredError}
|
|
2561
|
+
*/
|
|
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`;
|
|
2566
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2567
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2568
|
+
let baseOptions;
|
|
2569
|
+
if (configuration) {
|
|
2570
|
+
baseOptions = configuration.baseOptions;
|
|
2571
|
+
}
|
|
2572
|
+
|
|
2573
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
2574
|
+
const localVarHeaderParameter = {} as any;
|
|
2575
|
+
const localVarQueryParameter = {} as any;
|
|
2576
|
+
|
|
2577
|
+
|
|
2578
|
+
|
|
2579
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2580
|
+
|
|
2581
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2582
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2583
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2584
|
+
localVarRequestOptions.data = serializeDataIfNeeded(generateRequest, localVarRequestOptions, configuration)
|
|
2585
|
+
|
|
2586
|
+
return {
|
|
2587
|
+
url: toPathString(localVarUrlObj),
|
|
2588
|
+
options: localVarRequestOptions,
|
|
2589
|
+
};
|
|
2590
|
+
},
|
|
2591
|
+
/**
|
|
2592
|
+
*
|
|
2593
|
+
* @summary Gets a conversation
|
|
2594
|
+
* @param {string} id Conversation ID to get conversation
|
|
2595
|
+
* @param {*} [options] Override http request option.
|
|
2596
|
+
* @throws {RequiredError}
|
|
2597
|
+
*/
|
|
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`;
|
|
2602
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2603
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2604
|
+
let baseOptions;
|
|
2605
|
+
if (configuration) {
|
|
2606
|
+
baseOptions = configuration.baseOptions;
|
|
2607
|
+
}
|
|
2608
|
+
|
|
2609
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
2610
|
+
const localVarHeaderParameter = {} as any;
|
|
2611
|
+
const localVarQueryParameter = {} as any;
|
|
2612
|
+
|
|
2613
|
+
if (id !== undefined) {
|
|
2614
|
+
localVarQueryParameter['id'] = id;
|
|
2615
|
+
}
|
|
2616
|
+
|
|
2617
|
+
|
|
2618
|
+
|
|
2619
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2620
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2621
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2622
|
+
|
|
2623
|
+
return {
|
|
2624
|
+
url: toPathString(localVarUrlObj),
|
|
2625
|
+
options: localVarRequestOptions,
|
|
2626
|
+
};
|
|
2627
|
+
},
|
|
2628
|
+
/**
|
|
2629
|
+
*
|
|
2630
|
+
* @summary Gets a customer
|
|
2631
|
+
* @param {string} id Customer ID to get customer
|
|
2632
|
+
* @param {*} [options] Override http request option.
|
|
2633
|
+
* @throws {RequiredError}
|
|
2634
|
+
*/
|
|
2635
|
+
getCustomer: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2636
|
+
// verify required parameter 'id' is not null or undefined
|
|
2637
|
+
assertParamExists('getCustomer', 'id', id)
|
|
2638
|
+
const localVarPath = `/v1/customer`;
|
|
2639
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2640
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2641
|
+
let baseOptions;
|
|
2642
|
+
if (configuration) {
|
|
2643
|
+
baseOptions = configuration.baseOptions;
|
|
2644
|
+
}
|
|
2645
|
+
|
|
2646
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
2647
|
+
const localVarHeaderParameter = {} as any;
|
|
2648
|
+
const localVarQueryParameter = {} as any;
|
|
2649
|
+
|
|
2650
|
+
if (id !== undefined) {
|
|
2651
|
+
localVarQueryParameter['id'] = id;
|
|
2652
|
+
}
|
|
2653
|
+
|
|
2654
|
+
|
|
2655
|
+
|
|
2656
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2657
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2658
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2659
|
+
|
|
2660
|
+
return {
|
|
2661
|
+
url: toPathString(localVarUrlObj),
|
|
2662
|
+
options: localVarRequestOptions,
|
|
2663
|
+
};
|
|
2664
|
+
},
|
|
2665
|
+
/**
|
|
2666
|
+
*
|
|
2667
|
+
* @summary Gets all or specific set of customers
|
|
2668
|
+
* @param {string} [id] Optional get specific customers
|
|
2669
|
+
* @param {*} [options] Override http request option.
|
|
2670
|
+
* @throws {RequiredError}
|
|
2671
|
+
*/
|
|
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
|
+
}
|
|
58
2688
|
|
|
59
|
-
/**
|
|
60
|
-
*
|
|
61
|
-
* @summary Creates a model response for the given chat conversation.
|
|
62
|
-
* @param {ICustomerCreateRequest} createCustomerRequest
|
|
63
|
-
* @param {*} [options] Override http request option.
|
|
64
|
-
* @throws {RequiredError}
|
|
65
|
-
*/
|
|
66
|
-
createCustomer: async (createCustomerRequest: ICustomerCreateRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
67
|
-
// verify required parameter 'createChatCompletionRequest' is not null or undefined
|
|
68
|
-
assertParamExists('createCustomer', 'createCustomerRequest', createCustomerRequest);
|
|
69
|
-
const localVarPath = `${configuration?.apiVersion || ''}-customers-customer-create`;
|
|
70
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
71
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
72
|
-
let baseOptions;
|
|
73
|
-
if (configuration) {
|
|
74
|
-
baseOptions = configuration.baseOptions;
|
|
75
|
-
}
|
|
76
2689
|
|
|
77
|
-
const localVarRequestOptions = {method: 'POST', ...baseOptions, ...options};
|
|
78
|
-
const localVarHeaderParameter = {} as any;
|
|
79
|
-
const localVarQueryParameter = {} as any;
|
|
80
2690
|
|
|
81
|
-
|
|
2691
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2692
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2693
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
82
2694
|
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
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> => {
|
|
2708
|
+
// verify required parameter 'id' is not null or undefined
|
|
2709
|
+
assertParamExists('getMessage', 'id', id)
|
|
2710
|
+
const localVarPath = `/v1/messages`;
|
|
2711
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2712
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2713
|
+
let baseOptions;
|
|
2714
|
+
if (configuration) {
|
|
2715
|
+
baseOptions = configuration.baseOptions;
|
|
2716
|
+
}
|
|
87
2717
|
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
};
|
|
92
|
-
},
|
|
2718
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
2719
|
+
const localVarHeaderParameter = {} as any;
|
|
2720
|
+
const localVarQueryParameter = {} as any;
|
|
93
2721
|
|
|
2722
|
+
if (id !== undefined) {
|
|
2723
|
+
localVarQueryParameter['id'] = id;
|
|
2724
|
+
}
|
|
94
2725
|
|
|
95
|
-
|
|
2726
|
+
|
|
2727
|
+
|
|
2728
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2729
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2730
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2731
|
+
|
|
2732
|
+
return {
|
|
2733
|
+
url: toPathString(localVarUrlObj),
|
|
2734
|
+
options: localVarRequestOptions,
|
|
2735
|
+
};
|
|
2736
|
+
},
|
|
2737
|
+
/**
|
|
2738
|
+
*
|
|
2739
|
+
* @summary Gets a schedule
|
|
2740
|
+
* @param {string} id Schedule ID to get schedule
|
|
2741
|
+
* @param {*} [options] Override http request option.
|
|
2742
|
+
* @throws {RequiredError}
|
|
2743
|
+
*/
|
|
2744
|
+
getSchedule: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2745
|
+
// verify required parameter 'id' is not null or undefined
|
|
2746
|
+
assertParamExists('getSchedule', 'id', id)
|
|
2747
|
+
const localVarPath = `/v1/schedule`;
|
|
2748
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2749
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2750
|
+
let baseOptions;
|
|
2751
|
+
if (configuration) {
|
|
2752
|
+
baseOptions = configuration.baseOptions;
|
|
2753
|
+
}
|
|
2754
|
+
|
|
2755
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
2756
|
+
const localVarHeaderParameter = {} as any;
|
|
2757
|
+
const localVarQueryParameter = {} as any;
|
|
2758
|
+
|
|
2759
|
+
if (id !== undefined) {
|
|
2760
|
+
localVarQueryParameter['id'] = id;
|
|
2761
|
+
}
|
|
2762
|
+
|
|
2763
|
+
|
|
2764
|
+
|
|
2765
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2766
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2767
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2768
|
+
|
|
2769
|
+
return {
|
|
2770
|
+
url: toPathString(localVarUrlObj),
|
|
2771
|
+
options: localVarRequestOptions,
|
|
2772
|
+
};
|
|
2773
|
+
},
|
|
2774
|
+
/**
|
|
2775
|
+
*
|
|
2776
|
+
* @summary Gets a schedule group
|
|
2777
|
+
* @param {string} id Schedule group ID to get schedule group
|
|
2778
|
+
* @param {*} [options] Override http request option.
|
|
2779
|
+
* @throws {RequiredError}
|
|
2780
|
+
*/
|
|
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`;
|
|
2785
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2786
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2787
|
+
let baseOptions;
|
|
2788
|
+
if (configuration) {
|
|
2789
|
+
baseOptions = configuration.baseOptions;
|
|
2790
|
+
}
|
|
2791
|
+
|
|
2792
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
2793
|
+
const localVarHeaderParameter = {} as any;
|
|
2794
|
+
const localVarQueryParameter = {} as any;
|
|
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';
|
|
2836
|
+
|
|
2837
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2838
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2839
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2840
|
+
localVarRequestOptions.data = serializeDataIfNeeded(conversationUpdateRequest, localVarRequestOptions, configuration)
|
|
2841
|
+
|
|
2842
|
+
return {
|
|
2843
|
+
url: toPathString(localVarUrlObj),
|
|
2844
|
+
options: localVarRequestOptions,
|
|
2845
|
+
};
|
|
2846
|
+
},
|
|
2847
|
+
/**
|
|
2848
|
+
*
|
|
2849
|
+
* @summary Updates a customer
|
|
2850
|
+
* @param {UpdateCustomerRequest} updateCustomerRequest
|
|
2851
|
+
* @param {*} [options] Override http request option.
|
|
2852
|
+
* @throws {RequiredError}
|
|
2853
|
+
*/
|
|
2854
|
+
updateCustomer: async (updateCustomerRequest: UpdateCustomerRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2855
|
+
// verify required parameter 'updateCustomerRequest' is not null or undefined
|
|
2856
|
+
assertParamExists('updateCustomer', 'updateCustomerRequest', updateCustomerRequest)
|
|
2857
|
+
const localVarPath = `/v1/customer`;
|
|
2858
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2859
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2860
|
+
let baseOptions;
|
|
2861
|
+
if (configuration) {
|
|
2862
|
+
baseOptions = configuration.baseOptions;
|
|
2863
|
+
}
|
|
2864
|
+
|
|
2865
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
2866
|
+
const localVarHeaderParameter = {} as any;
|
|
2867
|
+
const localVarQueryParameter = {} as any;
|
|
2868
|
+
|
|
2869
|
+
|
|
2870
|
+
|
|
2871
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2872
|
+
|
|
2873
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2874
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2875
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2876
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateCustomerRequest, localVarRequestOptions, configuration)
|
|
2877
|
+
|
|
2878
|
+
return {
|
|
2879
|
+
url: toPathString(localVarUrlObj),
|
|
2880
|
+
options: localVarRequestOptions,
|
|
2881
|
+
};
|
|
2882
|
+
},
|
|
2883
|
+
/**
|
|
2884
|
+
*
|
|
2885
|
+
* @summary Updates multiple customers
|
|
2886
|
+
* @param {UpdateCustomerRequest} updateCustomerRequest
|
|
2887
|
+
* @param {*} [options] Override http request option.
|
|
2888
|
+
* @throws {RequiredError}
|
|
2889
|
+
*/
|
|
2890
|
+
updateCustomers: async (updateCustomerRequest: UpdateCustomerRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2891
|
+
// verify required parameter 'updateCustomerRequest' is not null or undefined
|
|
2892
|
+
assertParamExists('updateCustomers', 'updateCustomerRequest', updateCustomerRequest)
|
|
2893
|
+
const localVarPath = `/v1/customers`;
|
|
2894
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2895
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2896
|
+
let baseOptions;
|
|
2897
|
+
if (configuration) {
|
|
2898
|
+
baseOptions = configuration.baseOptions;
|
|
2899
|
+
}
|
|
2900
|
+
|
|
2901
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
2902
|
+
const localVarHeaderParameter = {} as any;
|
|
2903
|
+
const localVarQueryParameter = {} as any;
|
|
2904
|
+
|
|
2905
|
+
|
|
2906
|
+
|
|
2907
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2908
|
+
|
|
2909
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2910
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2911
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2912
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateCustomerRequest, localVarRequestOptions, configuration)
|
|
2913
|
+
|
|
2914
|
+
return {
|
|
2915
|
+
url: toPathString(localVarUrlObj),
|
|
2916
|
+
options: localVarRequestOptions,
|
|
2917
|
+
};
|
|
2918
|
+
},
|
|
2919
|
+
/**
|
|
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
|
+
}
|
|
96
2992
|
};
|
|
97
2993
|
|
|
98
2994
|
/**
|
|
99
2995
|
* Scout9Api - functional programming interface
|
|
100
2996
|
* @export
|
|
101
2997
|
*/
|
|
102
|
-
export const Scout9ApiFp = function
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
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
|
|
3060
|
+
* @param {*} [options] Override http request option.
|
|
3061
|
+
* @throws {RequiredError}
|
|
3062
|
+
*/
|
|
3063
|
+
async createScheduleGroup(scheduleGroupCreateRequest: ScheduleGroupCreateRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ScheduleGroupCreateResponse>> {
|
|
3064
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createScheduleGroup(scheduleGroupCreateRequest, options);
|
|
3065
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
3066
|
+
},
|
|
3067
|
+
/**
|
|
3068
|
+
*
|
|
3069
|
+
* @summary Deletes a schedule
|
|
3070
|
+
* @param {string} id Schedule ID to delete schedule
|
|
3071
|
+
* @param {*} [options] Override http request option.
|
|
3072
|
+
* @throws {RequiredError}
|
|
3073
|
+
*/
|
|
3074
|
+
async deleteConversation(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ConversationRemoveResponse>> {
|
|
3075
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteConversation(id, options);
|
|
3076
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
3077
|
+
},
|
|
3078
|
+
/**
|
|
3079
|
+
*
|
|
3080
|
+
* @summary Deletes a customer
|
|
3081
|
+
* @param {string} id Customer ID to delete customer
|
|
3082
|
+
* @param {*} [options] Override http request option.
|
|
3083
|
+
* @throws {RequiredError}
|
|
3084
|
+
*/
|
|
3085
|
+
async deleteCustomer(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteCustomerResponse>> {
|
|
3086
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteCustomer(id, options);
|
|
3087
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
3088
|
+
},
|
|
3089
|
+
/**
|
|
3090
|
+
*
|
|
3091
|
+
* @summary Deletes multiple customers
|
|
3092
|
+
* @param {string} id Customer IDs to delete multiple customer
|
|
3093
|
+
* @param {*} [options] Override http request option.
|
|
3094
|
+
* @throws {RequiredError}
|
|
3095
|
+
*/
|
|
3096
|
+
async deleteCustomers(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteCustomersResponse>> {
|
|
3097
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteCustomers(id, options);
|
|
3098
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
3099
|
+
},
|
|
3100
|
+
/**
|
|
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
|
+
*
|
|
3146
|
+
* @summary Gets a customer
|
|
3147
|
+
* @param {string} id Customer ID to get customer
|
|
3148
|
+
* @param {*} [options] Override http request option.
|
|
3149
|
+
* @throws {RequiredError}
|
|
3150
|
+
*/
|
|
3151
|
+
async getCustomer(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateCustomerRequest>> {
|
|
3152
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getCustomer(id, options);
|
|
3153
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
3154
|
+
},
|
|
3155
|
+
/**
|
|
3156
|
+
*
|
|
3157
|
+
* @summary Gets all or specific set of customers
|
|
3158
|
+
* @param {string} [id] Optional get specific customers
|
|
3159
|
+
* @param {*} [options] Override http request option.
|
|
3160
|
+
* @throws {RequiredError}
|
|
3161
|
+
*/
|
|
3162
|
+
async getCustomers(id?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Customer>>> {
|
|
3163
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getCustomers(id, options);
|
|
3164
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
3165
|
+
},
|
|
3166
|
+
/**
|
|
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
|
+
*
|
|
3212
|
+
* @summary Updates a customer
|
|
3213
|
+
* @param {UpdateCustomerRequest} updateCustomerRequest
|
|
3214
|
+
* @param {*} [options] Override http request option.
|
|
3215
|
+
* @throws {RequiredError}
|
|
3216
|
+
*/
|
|
3217
|
+
async updateCustomer(updateCustomerRequest: UpdateCustomerRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateCustomerResponse>> {
|
|
3218
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateCustomer(updateCustomerRequest, options);
|
|
3219
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
3220
|
+
},
|
|
3221
|
+
/**
|
|
3222
|
+
*
|
|
3223
|
+
* @summary Updates multiple customers
|
|
3224
|
+
* @param {UpdateCustomerRequest} updateCustomerRequest
|
|
3225
|
+
* @param {*} [options] Override http request option.
|
|
3226
|
+
* @throws {RequiredError}
|
|
3227
|
+
*/
|
|
3228
|
+
async updateCustomers(updateCustomerRequest: UpdateCustomerRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateCustomersResponse>> {
|
|
3229
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateCustomers(updateCustomerRequest, options);
|
|
3230
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
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
|
+
},
|
|
3254
|
+
}
|
|
3255
|
+
};
|
|
3256
|
+
|
|
3257
|
+
/**
|
|
3258
|
+
* Scout9Api - factory interface
|
|
3259
|
+
* @export
|
|
3260
|
+
*/
|
|
3261
|
+
export const Scout9ApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
3262
|
+
const localVarFp = Scout9ApiFp(configuration)
|
|
3263
|
+
return {
|
|
3264
|
+
/**
|
|
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
|
+
*
|
|
3276
|
+
* @summary Creates a new customer
|
|
3277
|
+
* @param {CreateCustomerRequest} createCustomerRequest
|
|
3278
|
+
* @param {*} [options] Override http request option.
|
|
3279
|
+
* @throws {RequiredError}
|
|
3280
|
+
*/
|
|
3281
|
+
createCustomer(createCustomerRequest: CreateCustomerRequest, options?: any): AxiosPromise<CreateCustomerResponse> {
|
|
3282
|
+
return localVarFp.createCustomer(createCustomerRequest, options).then((request) => request(axios, basePath));
|
|
3283
|
+
},
|
|
3284
|
+
/**
|
|
3285
|
+
*
|
|
3286
|
+
* @summary Creates new customers
|
|
3287
|
+
* @param {CreateCustomersRequest} createCustomersRequest
|
|
3288
|
+
* @param {*} [options] Override http request option.
|
|
3289
|
+
* @throws {RequiredError}
|
|
3290
|
+
*/
|
|
3291
|
+
createCustomers(createCustomersRequest: CreateCustomersRequest, options?: any): AxiosPromise<CreateCustomersResponse> {
|
|
3292
|
+
return localVarFp.createCustomers(createCustomersRequest, options).then((request) => request(axios, basePath));
|
|
3293
|
+
},
|
|
3294
|
+
/**
|
|
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
|
+
*
|
|
3336
|
+
* @summary Deletes a customer
|
|
3337
|
+
* @param {string} id Customer ID to delete customer
|
|
3338
|
+
* @param {*} [options] Override http request option.
|
|
3339
|
+
* @throws {RequiredError}
|
|
3340
|
+
*/
|
|
3341
|
+
deleteCustomer(id: string, options?: any): AxiosPromise<DeleteCustomerResponse> {
|
|
3342
|
+
return localVarFp.deleteCustomer(id, options).then((request) => request(axios, basePath));
|
|
3343
|
+
},
|
|
3344
|
+
/**
|
|
3345
|
+
*
|
|
3346
|
+
* @summary Deletes multiple customers
|
|
3347
|
+
* @param {string} id Customer IDs to delete multiple customer
|
|
3348
|
+
* @param {*} [options] Override http request option.
|
|
3349
|
+
* @throws {RequiredError}
|
|
3350
|
+
*/
|
|
3351
|
+
deleteCustomers(id: string, options?: any): AxiosPromise<DeleteCustomersResponse> {
|
|
3352
|
+
return localVarFp.deleteCustomers(id, options).then((request) => request(axios, basePath));
|
|
3353
|
+
},
|
|
3354
|
+
/**
|
|
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
|
+
*
|
|
3396
|
+
* @summary Gets a customer
|
|
3397
|
+
* @param {string} id Customer ID to get customer
|
|
3398
|
+
* @param {*} [options] Override http request option.
|
|
3399
|
+
* @throws {RequiredError}
|
|
3400
|
+
*/
|
|
3401
|
+
getCustomer(id: string, options?: any): AxiosPromise<CreateCustomerRequest> {
|
|
3402
|
+
return localVarFp.getCustomer(id, options).then((request) => request(axios, basePath));
|
|
3403
|
+
},
|
|
3404
|
+
/**
|
|
3405
|
+
*
|
|
3406
|
+
* @summary Gets all or specific set of customers
|
|
3407
|
+
* @param {string} [id] Optional get specific customers
|
|
3408
|
+
* @param {*} [options] Override http request option.
|
|
3409
|
+
* @throws {RequiredError}
|
|
3410
|
+
*/
|
|
3411
|
+
getCustomers(id?: string, options?: any): AxiosPromise<Array<Customer>> {
|
|
3412
|
+
return localVarFp.getCustomers(id, options).then((request) => request(axios, basePath));
|
|
3413
|
+
},
|
|
3414
|
+
/**
|
|
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
|
+
*
|
|
3456
|
+
* @summary Updates a customer
|
|
3457
|
+
* @param {UpdateCustomerRequest} updateCustomerRequest
|
|
3458
|
+
* @param {*} [options] Override http request option.
|
|
3459
|
+
* @throws {RequiredError}
|
|
3460
|
+
*/
|
|
3461
|
+
updateCustomer(updateCustomerRequest: UpdateCustomerRequest, options?: any): AxiosPromise<UpdateCustomerResponse> {
|
|
3462
|
+
return localVarFp.updateCustomer(updateCustomerRequest, options).then((request) => request(axios, basePath));
|
|
3463
|
+
},
|
|
3464
|
+
/**
|
|
3465
|
+
*
|
|
3466
|
+
* @summary Updates multiple customers
|
|
3467
|
+
* @param {UpdateCustomerRequest} updateCustomerRequest
|
|
3468
|
+
* @param {*} [options] Override http request option.
|
|
3469
|
+
* @throws {RequiredError}
|
|
3470
|
+
*/
|
|
3471
|
+
updateCustomers(updateCustomerRequest: UpdateCustomerRequest, options?: any): AxiosPromise<UpdateCustomersResponse> {
|
|
3472
|
+
return localVarFp.updateCustomers(updateCustomerRequest, options).then((request) => request(axios, basePath));
|
|
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
|
+
},
|
|
3494
|
+
};
|
|
117
3495
|
};
|
|
118
3496
|
|
|
119
3497
|
/**
|
|
@@ -123,19 +3501,281 @@ export const Scout9ApiFp = function (configuration?: Configuration) {
|
|
|
123
3501
|
* @extends {BaseAPI}
|
|
124
3502
|
*/
|
|
125
3503
|
export class Scout9Api extends BaseAPI {
|
|
3504
|
+
/**
|
|
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
|
+
*
|
|
3518
|
+
* @summary Creates a new customer
|
|
3519
|
+
* @param {CreateCustomerRequest} createCustomerRequest
|
|
3520
|
+
* @param {*} [options] Override http request option.
|
|
3521
|
+
* @throws {RequiredError}
|
|
3522
|
+
* @memberof Scout9Api
|
|
3523
|
+
*/
|
|
3524
|
+
public createCustomer(createCustomerRequest: CreateCustomerRequest, options?: AxiosRequestConfig) {
|
|
3525
|
+
return Scout9ApiFp(this.configuration).createCustomer(createCustomerRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3526
|
+
}
|
|
3527
|
+
|
|
3528
|
+
/**
|
|
3529
|
+
*
|
|
3530
|
+
* @summary Creates new customers
|
|
3531
|
+
* @param {CreateCustomersRequest} createCustomersRequest
|
|
3532
|
+
* @param {*} [options] Override http request option.
|
|
3533
|
+
* @throws {RequiredError}
|
|
3534
|
+
* @memberof Scout9Api
|
|
3535
|
+
*/
|
|
3536
|
+
public createCustomers(createCustomersRequest: CreateCustomersRequest, options?: AxiosRequestConfig) {
|
|
3537
|
+
return Scout9ApiFp(this.configuration).createCustomers(createCustomersRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3538
|
+
}
|
|
3539
|
+
|
|
3540
|
+
/**
|
|
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
|
+
*
|
|
3590
|
+
* @summary Deletes a customer
|
|
3591
|
+
* @param {string} id Customer ID to delete customer
|
|
3592
|
+
* @param {*} [options] Override http request option.
|
|
3593
|
+
* @throws {RequiredError}
|
|
3594
|
+
* @memberof Scout9Api
|
|
3595
|
+
*/
|
|
3596
|
+
public deleteCustomer(id: string, options?: AxiosRequestConfig) {
|
|
3597
|
+
return Scout9ApiFp(this.configuration).deleteCustomer(id, options).then((request) => request(this.axios, this.basePath));
|
|
3598
|
+
}
|
|
3599
|
+
|
|
3600
|
+
/**
|
|
3601
|
+
*
|
|
3602
|
+
* @summary Deletes multiple customers
|
|
3603
|
+
* @param {string} id Customer IDs to delete multiple customer
|
|
3604
|
+
* @param {*} [options] Override http request option.
|
|
3605
|
+
* @throws {RequiredError}
|
|
3606
|
+
* @memberof Scout9Api
|
|
3607
|
+
*/
|
|
3608
|
+
public deleteCustomers(id: string, options?: AxiosRequestConfig) {
|
|
3609
|
+
return Scout9ApiFp(this.configuration).deleteCustomers(id, options).then((request) => request(this.axios, this.basePath));
|
|
3610
|
+
}
|
|
3611
|
+
|
|
3612
|
+
/**
|
|
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
|
+
*
|
|
3662
|
+
* @summary Gets a customer
|
|
3663
|
+
* @param {string} id Customer ID to get customer
|
|
3664
|
+
* @param {*} [options] Override http request option.
|
|
3665
|
+
* @throws {RequiredError}
|
|
3666
|
+
* @memberof Scout9Api
|
|
3667
|
+
*/
|
|
3668
|
+
public getCustomer(id: string, options?: AxiosRequestConfig) {
|
|
3669
|
+
return Scout9ApiFp(this.configuration).getCustomer(id, options).then((request) => request(this.axios, this.basePath));
|
|
3670
|
+
}
|
|
3671
|
+
|
|
3672
|
+
/**
|
|
3673
|
+
*
|
|
3674
|
+
* @summary Gets all or specific set of customers
|
|
3675
|
+
* @param {string} [id] Optional get specific customers
|
|
3676
|
+
* @param {*} [options] Override http request option.
|
|
3677
|
+
* @throws {RequiredError}
|
|
3678
|
+
* @memberof Scout9Api
|
|
3679
|
+
*/
|
|
3680
|
+
public getCustomers(id?: string, options?: AxiosRequestConfig) {
|
|
3681
|
+
return Scout9ApiFp(this.configuration).getCustomers(id, options).then((request) => request(this.axios, this.basePath));
|
|
3682
|
+
}
|
|
3683
|
+
|
|
3684
|
+
/**
|
|
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
|
+
*
|
|
3734
|
+
* @summary Updates a customer
|
|
3735
|
+
* @param {UpdateCustomerRequest} updateCustomerRequest
|
|
3736
|
+
* @param {*} [options] Override http request option.
|
|
3737
|
+
* @throws {RequiredError}
|
|
3738
|
+
* @memberof Scout9Api
|
|
3739
|
+
*/
|
|
3740
|
+
public updateCustomer(updateCustomerRequest: UpdateCustomerRequest, options?: AxiosRequestConfig) {
|
|
3741
|
+
return Scout9ApiFp(this.configuration).updateCustomer(updateCustomerRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3742
|
+
}
|
|
3743
|
+
|
|
3744
|
+
/**
|
|
3745
|
+
*
|
|
3746
|
+
* @summary Updates multiple customers
|
|
3747
|
+
* @param {UpdateCustomerRequest} updateCustomerRequest
|
|
3748
|
+
* @param {*} [options] Override http request option.
|
|
3749
|
+
* @throws {RequiredError}
|
|
3750
|
+
* @memberof Scout9Api
|
|
3751
|
+
*/
|
|
3752
|
+
public updateCustomers(updateCustomerRequest: UpdateCustomerRequest, options?: AxiosRequestConfig) {
|
|
3753
|
+
return Scout9ApiFp(this.configuration).updateCustomers(updateCustomerRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3754
|
+
}
|
|
126
3755
|
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
.then((request) => request(this.axios, this.basePath));
|
|
139
|
-
}
|
|
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
|
+
}
|
|
140
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
|
+
}
|
|
141
3779
|
}
|
|
3780
|
+
|
|
3781
|
+
|