@scout9/admin 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +58 -1
- package/build/api.d.ts +1116 -32
- package/build/api.js +475 -12
- package/build/base.d.ts +11 -0
- package/build/base.js +14 -0
- package/build/common.d.ts +11 -0
- package/build/common.js +13 -0
- package/build/configuration.d.ts +11 -12
- package/build/configuration.js +13 -28
- package/build/index.d.ts +11 -0
- package/build/index.js +13 -0
- package/package.json +6 -2
- package/src/.openapi-generator/FILES +9 -0
- package/src/.openapi-generator/VERSION +1 -0
- package/src/api.ts +1417 -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/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,1339 @@ 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
|
-
import { ICustomer } from './schemas';
|
|
24
|
+
import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError } from './base';
|
|
11
25
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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;
|
|
16
44
|
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @export
|
|
48
|
+
* @interface CreateCustomerRequest
|
|
49
|
+
*/
|
|
50
|
+
export interface CreateCustomerRequest {
|
|
51
|
+
/**
|
|
52
|
+
* The customers first name
|
|
53
|
+
* @type {string}
|
|
54
|
+
* @memberof CreateCustomerRequest
|
|
55
|
+
*/
|
|
56
|
+
'firstName': string;
|
|
57
|
+
/**
|
|
58
|
+
* The customers last name
|
|
59
|
+
* @type {string}
|
|
60
|
+
* @memberof CreateCustomerRequest
|
|
61
|
+
*/
|
|
62
|
+
'lastName': string;
|
|
63
|
+
/**
|
|
64
|
+
* The customers full name
|
|
65
|
+
* @type {string}
|
|
66
|
+
* @memberof CreateCustomerRequest
|
|
67
|
+
*/
|
|
68
|
+
'name'?: string;
|
|
69
|
+
/**
|
|
70
|
+
* The customers email address
|
|
71
|
+
* @type {string}
|
|
72
|
+
* @memberof CreateCustomerRequest
|
|
73
|
+
*/
|
|
74
|
+
'email'?: string | null;
|
|
75
|
+
/**
|
|
76
|
+
* The customers phone number
|
|
77
|
+
* @type {string}
|
|
78
|
+
* @memberof CreateCustomerRequest
|
|
79
|
+
*/
|
|
80
|
+
'phone'?: string | null;
|
|
81
|
+
/**
|
|
82
|
+
* The customers profile image
|
|
83
|
+
* @type {string}
|
|
84
|
+
* @memberof CreateCustomerRequest
|
|
85
|
+
*/
|
|
86
|
+
'img'?: string | null;
|
|
87
|
+
/**
|
|
88
|
+
* The customers neighborhood
|
|
89
|
+
* @type {string}
|
|
90
|
+
* @memberof CreateCustomerRequest
|
|
91
|
+
*/
|
|
92
|
+
'neighborhood'?: string | null;
|
|
93
|
+
/**
|
|
94
|
+
* The customers city
|
|
95
|
+
* @type {string}
|
|
96
|
+
* @memberof CreateCustomerRequest
|
|
97
|
+
*/
|
|
98
|
+
'city'?: string | null;
|
|
99
|
+
/**
|
|
100
|
+
* The customers 2-letter country code
|
|
101
|
+
* @type {string}
|
|
102
|
+
* @memberof CreateCustomerRequest
|
|
103
|
+
*/
|
|
104
|
+
'country'?: string | null;
|
|
105
|
+
/**
|
|
106
|
+
* The customers street address
|
|
107
|
+
* @type {string}
|
|
108
|
+
* @memberof CreateCustomerRequest
|
|
109
|
+
*/
|
|
110
|
+
'line1'?: string | null;
|
|
111
|
+
/**
|
|
112
|
+
* The customers street address
|
|
113
|
+
* @type {string}
|
|
114
|
+
* @memberof CreateCustomerRequest
|
|
115
|
+
*/
|
|
116
|
+
'line2'?: string | null;
|
|
117
|
+
/**
|
|
118
|
+
* The customers postal code
|
|
119
|
+
* @type {string}
|
|
120
|
+
* @memberof CreateCustomerRequest
|
|
121
|
+
*/
|
|
122
|
+
'postal_code'?: string | null;
|
|
123
|
+
/**
|
|
124
|
+
* The customers state, county, province, or region
|
|
125
|
+
* @type {string}
|
|
126
|
+
* @memberof CreateCustomerRequest
|
|
127
|
+
*/
|
|
128
|
+
'state'?: string | null;
|
|
129
|
+
/**
|
|
130
|
+
* The customers town (only used in Japan)
|
|
131
|
+
* @type {string}
|
|
132
|
+
* @memberof CreateCustomerRequest
|
|
133
|
+
*/
|
|
134
|
+
'town'?: string | null;
|
|
135
|
+
/**
|
|
136
|
+
*
|
|
137
|
+
* @type {BlockInfo}
|
|
138
|
+
* @memberof CreateCustomerRequest
|
|
139
|
+
*/
|
|
140
|
+
'blocked'?: BlockInfo;
|
|
141
|
+
/**
|
|
142
|
+
*
|
|
143
|
+
* @type {BlockInfo}
|
|
144
|
+
* @memberof CreateCustomerRequest
|
|
145
|
+
*/
|
|
146
|
+
'phoneBlocked'?: BlockInfo;
|
|
147
|
+
/**
|
|
148
|
+
*
|
|
149
|
+
* @type {BlockInfo}
|
|
150
|
+
* @memberof CreateCustomerRequest
|
|
151
|
+
*/
|
|
152
|
+
'emailBlocked'?: BlockInfo;
|
|
153
|
+
/**
|
|
154
|
+
* The date the customer joined the business
|
|
155
|
+
* @type {string}
|
|
156
|
+
* @memberof CreateCustomerRequest
|
|
157
|
+
*/
|
|
158
|
+
'joined'?: string | null;
|
|
159
|
+
/**
|
|
160
|
+
* The customers stripe ID
|
|
161
|
+
* @type {string}
|
|
162
|
+
* @memberof CreateCustomerRequest
|
|
163
|
+
*/
|
|
164
|
+
'stripe'?: string | null;
|
|
165
|
+
/**
|
|
166
|
+
* The customers stripe ID in the dev environment
|
|
167
|
+
* @type {string}
|
|
168
|
+
* @memberof CreateCustomerRequest
|
|
169
|
+
*/
|
|
170
|
+
'stripeDev'?: string | null;
|
|
22
171
|
}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
172
|
+
/**
|
|
173
|
+
*
|
|
174
|
+
* @export
|
|
175
|
+
* @interface CreateCustomerResponse
|
|
176
|
+
*/
|
|
177
|
+
export interface CreateCustomerResponse {
|
|
178
|
+
/**
|
|
179
|
+
*
|
|
180
|
+
* @type {boolean}
|
|
181
|
+
* @memberof CreateCustomerResponse
|
|
182
|
+
*/
|
|
183
|
+
'success': boolean;
|
|
184
|
+
/**
|
|
185
|
+
*
|
|
186
|
+
* @type {Error}
|
|
187
|
+
* @memberof CreateCustomerResponse
|
|
188
|
+
*/
|
|
189
|
+
'error'?: Error;
|
|
26
190
|
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
191
|
+
/**
|
|
192
|
+
*
|
|
193
|
+
* @export
|
|
194
|
+
* @interface CreateCustomersRequest
|
|
195
|
+
*/
|
|
196
|
+
export interface CreateCustomersRequest {
|
|
197
|
+
/**
|
|
198
|
+
*
|
|
199
|
+
* @type {Array<CreateCustomersRequestCustomersInner>}
|
|
200
|
+
* @memberof CreateCustomersRequest
|
|
201
|
+
*/
|
|
202
|
+
'customers'?: Array<CreateCustomersRequestCustomersInner>;
|
|
30
203
|
}
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
204
|
+
/**
|
|
205
|
+
*
|
|
206
|
+
* @export
|
|
207
|
+
* @interface CreateCustomersRequestCustomersInner
|
|
208
|
+
*/
|
|
209
|
+
export interface CreateCustomersRequestCustomersInner {
|
|
210
|
+
/**
|
|
211
|
+
* The customers first name
|
|
212
|
+
* @type {string}
|
|
213
|
+
* @memberof CreateCustomersRequestCustomersInner
|
|
214
|
+
*/
|
|
215
|
+
'firstName': string;
|
|
216
|
+
/**
|
|
217
|
+
* The customers last name
|
|
218
|
+
* @type {string}
|
|
219
|
+
* @memberof CreateCustomersRequestCustomersInner
|
|
220
|
+
*/
|
|
221
|
+
'lastName': string;
|
|
222
|
+
/**
|
|
223
|
+
* The customers full name
|
|
224
|
+
* @type {string}
|
|
225
|
+
* @memberof CreateCustomersRequestCustomersInner
|
|
226
|
+
*/
|
|
227
|
+
'name'?: string;
|
|
228
|
+
/**
|
|
229
|
+
* The customers email address
|
|
230
|
+
* @type {string}
|
|
231
|
+
* @memberof CreateCustomersRequestCustomersInner
|
|
232
|
+
*/
|
|
233
|
+
'email'?: string | null;
|
|
234
|
+
/**
|
|
235
|
+
* The customers phone number
|
|
236
|
+
* @type {string}
|
|
237
|
+
* @memberof CreateCustomersRequestCustomersInner
|
|
238
|
+
*/
|
|
239
|
+
'phone'?: string | null;
|
|
240
|
+
/**
|
|
241
|
+
* The customers profile image
|
|
242
|
+
* @type {string}
|
|
243
|
+
* @memberof CreateCustomersRequestCustomersInner
|
|
244
|
+
*/
|
|
245
|
+
'img'?: string | null;
|
|
246
|
+
/**
|
|
247
|
+
* The customers neighborhood
|
|
248
|
+
* @type {string}
|
|
249
|
+
* @memberof CreateCustomersRequestCustomersInner
|
|
250
|
+
*/
|
|
251
|
+
'neighborhood'?: string | null;
|
|
252
|
+
/**
|
|
253
|
+
* The customers city
|
|
254
|
+
* @type {string}
|
|
255
|
+
* @memberof CreateCustomersRequestCustomersInner
|
|
256
|
+
*/
|
|
257
|
+
'city'?: string | null;
|
|
258
|
+
/**
|
|
259
|
+
* The customers 2-letter country code
|
|
260
|
+
* @type {string}
|
|
261
|
+
* @memberof CreateCustomersRequestCustomersInner
|
|
262
|
+
*/
|
|
263
|
+
'country'?: string | null;
|
|
264
|
+
/**
|
|
265
|
+
* The customers street address
|
|
266
|
+
* @type {string}
|
|
267
|
+
* @memberof CreateCustomersRequestCustomersInner
|
|
268
|
+
*/
|
|
269
|
+
'line1'?: string | null;
|
|
270
|
+
/**
|
|
271
|
+
* The customers street address
|
|
272
|
+
* @type {string}
|
|
273
|
+
* @memberof CreateCustomersRequestCustomersInner
|
|
274
|
+
*/
|
|
275
|
+
'line2'?: string | null;
|
|
276
|
+
/**
|
|
277
|
+
* The customers postal code
|
|
278
|
+
* @type {string}
|
|
279
|
+
* @memberof CreateCustomersRequestCustomersInner
|
|
280
|
+
*/
|
|
281
|
+
'postal_code'?: string | null;
|
|
282
|
+
/**
|
|
283
|
+
* The customers state, county, province, or region
|
|
284
|
+
* @type {string}
|
|
285
|
+
* @memberof CreateCustomersRequestCustomersInner
|
|
286
|
+
*/
|
|
287
|
+
'state'?: string | null;
|
|
288
|
+
/**
|
|
289
|
+
* The customers town (only used in Japan)
|
|
290
|
+
* @type {string}
|
|
291
|
+
* @memberof CreateCustomersRequestCustomersInner
|
|
292
|
+
*/
|
|
293
|
+
'town'?: string | null;
|
|
294
|
+
/**
|
|
295
|
+
*
|
|
296
|
+
* @type {BlockInfo}
|
|
297
|
+
* @memberof CreateCustomersRequestCustomersInner
|
|
298
|
+
*/
|
|
299
|
+
'blocked'?: BlockInfo;
|
|
300
|
+
/**
|
|
301
|
+
*
|
|
302
|
+
* @type {BlockInfo}
|
|
303
|
+
* @memberof CreateCustomersRequestCustomersInner
|
|
304
|
+
*/
|
|
305
|
+
'phoneBlocked'?: BlockInfo;
|
|
306
|
+
/**
|
|
307
|
+
*
|
|
308
|
+
* @type {BlockInfo}
|
|
309
|
+
* @memberof CreateCustomersRequestCustomersInner
|
|
310
|
+
*/
|
|
311
|
+
'emailBlocked'?: BlockInfo;
|
|
312
|
+
/**
|
|
313
|
+
* The date the customer joined the business
|
|
314
|
+
* @type {string}
|
|
315
|
+
* @memberof CreateCustomersRequestCustomersInner
|
|
316
|
+
*/
|
|
317
|
+
'joined'?: string | null;
|
|
318
|
+
/**
|
|
319
|
+
* The customers stripe ID
|
|
320
|
+
* @type {string}
|
|
321
|
+
* @memberof CreateCustomersRequestCustomersInner
|
|
322
|
+
*/
|
|
323
|
+
'stripe'?: string | null;
|
|
324
|
+
/**
|
|
325
|
+
* The customers stripe ID in the dev environment
|
|
326
|
+
* @type {string}
|
|
327
|
+
* @memberof CreateCustomersRequestCustomersInner
|
|
328
|
+
*/
|
|
329
|
+
'stripeDev'?: string | null;
|
|
34
330
|
}
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
331
|
+
/**
|
|
332
|
+
*
|
|
333
|
+
* @export
|
|
334
|
+
* @interface CreateCustomersResponse
|
|
335
|
+
*/
|
|
336
|
+
export interface CreateCustomersResponse {
|
|
337
|
+
/**
|
|
338
|
+
*
|
|
339
|
+
* @type {boolean}
|
|
340
|
+
* @memberof CreateCustomersResponse
|
|
341
|
+
*/
|
|
342
|
+
'success': boolean;
|
|
343
|
+
/**
|
|
344
|
+
*
|
|
345
|
+
* @type {Error}
|
|
346
|
+
* @memberof CreateCustomersResponse
|
|
347
|
+
*/
|
|
348
|
+
'error'?: Error;
|
|
38
349
|
}
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
350
|
+
/**
|
|
351
|
+
*
|
|
352
|
+
* @export
|
|
353
|
+
* @interface Customer
|
|
354
|
+
*/
|
|
355
|
+
export interface Customer {
|
|
356
|
+
/**
|
|
357
|
+
* The customers first name
|
|
358
|
+
* @type {string}
|
|
359
|
+
* @memberof Customer
|
|
360
|
+
*/
|
|
361
|
+
'firstName'?: string;
|
|
362
|
+
/**
|
|
363
|
+
* The customers last name
|
|
364
|
+
* @type {string}
|
|
365
|
+
* @memberof Customer
|
|
366
|
+
*/
|
|
367
|
+
'lastName'?: string;
|
|
368
|
+
/**
|
|
369
|
+
* The customers full name
|
|
370
|
+
* @type {string}
|
|
371
|
+
* @memberof Customer
|
|
372
|
+
*/
|
|
373
|
+
'name'?: string;
|
|
374
|
+
/**
|
|
375
|
+
* The customers email address
|
|
376
|
+
* @type {string}
|
|
377
|
+
* @memberof Customer
|
|
378
|
+
*/
|
|
379
|
+
'email'?: string | null;
|
|
380
|
+
/**
|
|
381
|
+
* The customers phone number
|
|
382
|
+
* @type {string}
|
|
383
|
+
* @memberof Customer
|
|
384
|
+
*/
|
|
385
|
+
'phone'?: string | null;
|
|
386
|
+
/**
|
|
387
|
+
* The customers profile image
|
|
388
|
+
* @type {string}
|
|
389
|
+
* @memberof Customer
|
|
390
|
+
*/
|
|
391
|
+
'img'?: string | null;
|
|
392
|
+
/**
|
|
393
|
+
* The customers neighborhood
|
|
394
|
+
* @type {string}
|
|
395
|
+
* @memberof Customer
|
|
396
|
+
*/
|
|
397
|
+
'neighborhood'?: string | null;
|
|
398
|
+
/**
|
|
399
|
+
* The customers city
|
|
400
|
+
* @type {string}
|
|
401
|
+
* @memberof Customer
|
|
402
|
+
*/
|
|
403
|
+
'city'?: string | null;
|
|
404
|
+
/**
|
|
405
|
+
* The customers 2-letter country code
|
|
406
|
+
* @type {string}
|
|
407
|
+
* @memberof Customer
|
|
408
|
+
*/
|
|
409
|
+
'country'?: string | null;
|
|
410
|
+
/**
|
|
411
|
+
* The customers street address
|
|
412
|
+
* @type {string}
|
|
413
|
+
* @memberof Customer
|
|
414
|
+
*/
|
|
415
|
+
'line1'?: string | null;
|
|
416
|
+
/**
|
|
417
|
+
* The customers street address
|
|
418
|
+
* @type {string}
|
|
419
|
+
* @memberof Customer
|
|
420
|
+
*/
|
|
421
|
+
'line2'?: string | null;
|
|
422
|
+
/**
|
|
423
|
+
* The customers postal code
|
|
424
|
+
* @type {string}
|
|
425
|
+
* @memberof Customer
|
|
426
|
+
*/
|
|
427
|
+
'postal_code'?: string | null;
|
|
428
|
+
/**
|
|
429
|
+
* The customers state, county, province, or region
|
|
430
|
+
* @type {string}
|
|
431
|
+
* @memberof Customer
|
|
432
|
+
*/
|
|
433
|
+
'state'?: string | null;
|
|
434
|
+
/**
|
|
435
|
+
* The customers town (only used in Japan)
|
|
436
|
+
* @type {string}
|
|
437
|
+
* @memberof Customer
|
|
438
|
+
*/
|
|
439
|
+
'town'?: string | null;
|
|
440
|
+
/**
|
|
441
|
+
*
|
|
442
|
+
* @type {BlockInfo}
|
|
443
|
+
* @memberof Customer
|
|
444
|
+
*/
|
|
445
|
+
'blocked'?: BlockInfo;
|
|
446
|
+
/**
|
|
447
|
+
*
|
|
448
|
+
* @type {BlockInfo}
|
|
449
|
+
* @memberof Customer
|
|
450
|
+
*/
|
|
451
|
+
'phoneBlocked'?: BlockInfo;
|
|
452
|
+
/**
|
|
453
|
+
*
|
|
454
|
+
* @type {BlockInfo}
|
|
455
|
+
* @memberof Customer
|
|
456
|
+
*/
|
|
457
|
+
'emailBlocked'?: BlockInfo;
|
|
458
|
+
/**
|
|
459
|
+
* The date the customer joined the business
|
|
460
|
+
* @type {string}
|
|
461
|
+
* @memberof Customer
|
|
462
|
+
*/
|
|
463
|
+
'joined'?: string | null;
|
|
464
|
+
/**
|
|
465
|
+
* The customers stripe ID
|
|
466
|
+
* @type {string}
|
|
467
|
+
* @memberof Customer
|
|
468
|
+
*/
|
|
469
|
+
'stripe'?: string | null;
|
|
470
|
+
/**
|
|
471
|
+
* The customers stripe ID in the dev environment
|
|
472
|
+
* @type {string}
|
|
473
|
+
* @memberof Customer
|
|
474
|
+
*/
|
|
475
|
+
'stripeDev'?: string | null;
|
|
42
476
|
}
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
477
|
+
/**
|
|
478
|
+
*
|
|
479
|
+
* @export
|
|
480
|
+
* @interface DeleteCustomerResponse
|
|
481
|
+
*/
|
|
482
|
+
export interface DeleteCustomerResponse {
|
|
483
|
+
/**
|
|
484
|
+
*
|
|
485
|
+
* @type {boolean}
|
|
486
|
+
* @memberof DeleteCustomerResponse
|
|
487
|
+
*/
|
|
488
|
+
'success': boolean;
|
|
489
|
+
/**
|
|
490
|
+
*
|
|
491
|
+
* @type {Error}
|
|
492
|
+
* @memberof DeleteCustomerResponse
|
|
493
|
+
*/
|
|
494
|
+
'error'?: Error;
|
|
46
495
|
}
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
496
|
+
/**
|
|
497
|
+
*
|
|
498
|
+
* @export
|
|
499
|
+
* @interface DeleteCustomersResponse
|
|
500
|
+
*/
|
|
501
|
+
export interface DeleteCustomersResponse {
|
|
502
|
+
/**
|
|
503
|
+
*
|
|
504
|
+
* @type {boolean}
|
|
505
|
+
* @memberof DeleteCustomersResponse
|
|
506
|
+
*/
|
|
507
|
+
'success': boolean;
|
|
508
|
+
/**
|
|
509
|
+
*
|
|
510
|
+
* @type {Error}
|
|
511
|
+
* @memberof DeleteCustomersResponse
|
|
512
|
+
*/
|
|
513
|
+
'error'?: Error;
|
|
50
514
|
}
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
515
|
+
/**
|
|
516
|
+
*
|
|
517
|
+
* @export
|
|
518
|
+
* @interface ErrorResponse
|
|
519
|
+
*/
|
|
520
|
+
export interface ErrorResponse {
|
|
521
|
+
/**
|
|
522
|
+
*
|
|
523
|
+
* @type {Error}
|
|
524
|
+
* @memberof ErrorResponse
|
|
525
|
+
*/
|
|
526
|
+
'error': Error;
|
|
527
|
+
}
|
|
528
|
+
/**
|
|
529
|
+
*
|
|
530
|
+
* @export
|
|
531
|
+
* @interface GetCustomerResponse
|
|
532
|
+
*/
|
|
533
|
+
export interface GetCustomerResponse {
|
|
534
|
+
/**
|
|
535
|
+
* The customers first name
|
|
536
|
+
* @type {string}
|
|
537
|
+
* @memberof GetCustomerResponse
|
|
538
|
+
*/
|
|
539
|
+
'firstName': string;
|
|
540
|
+
/**
|
|
541
|
+
* The customers last name
|
|
542
|
+
* @type {string}
|
|
543
|
+
* @memberof GetCustomerResponse
|
|
544
|
+
*/
|
|
545
|
+
'lastName': string;
|
|
546
|
+
/**
|
|
547
|
+
* The customers full name
|
|
548
|
+
* @type {string}
|
|
549
|
+
* @memberof GetCustomerResponse
|
|
550
|
+
*/
|
|
551
|
+
'name'?: string;
|
|
552
|
+
/**
|
|
553
|
+
* The customers email address
|
|
554
|
+
* @type {string}
|
|
555
|
+
* @memberof GetCustomerResponse
|
|
556
|
+
*/
|
|
557
|
+
'email'?: string | null;
|
|
558
|
+
/**
|
|
559
|
+
* The customers phone number
|
|
560
|
+
* @type {string}
|
|
561
|
+
* @memberof GetCustomerResponse
|
|
562
|
+
*/
|
|
563
|
+
'phone'?: string | null;
|
|
564
|
+
/**
|
|
565
|
+
* The customers profile image
|
|
566
|
+
* @type {string}
|
|
567
|
+
* @memberof GetCustomerResponse
|
|
568
|
+
*/
|
|
569
|
+
'img'?: string | null;
|
|
570
|
+
/**
|
|
571
|
+
* The customers neighborhood
|
|
572
|
+
* @type {string}
|
|
573
|
+
* @memberof GetCustomerResponse
|
|
574
|
+
*/
|
|
575
|
+
'neighborhood'?: string | null;
|
|
576
|
+
/**
|
|
577
|
+
* The customers city
|
|
578
|
+
* @type {string}
|
|
579
|
+
* @memberof GetCustomerResponse
|
|
580
|
+
*/
|
|
581
|
+
'city'?: string | null;
|
|
582
|
+
/**
|
|
583
|
+
* The customers 2-letter country code
|
|
584
|
+
* @type {string}
|
|
585
|
+
* @memberof GetCustomerResponse
|
|
586
|
+
*/
|
|
587
|
+
'country'?: string | null;
|
|
588
|
+
/**
|
|
589
|
+
* The customers street address
|
|
590
|
+
* @type {string}
|
|
591
|
+
* @memberof GetCustomerResponse
|
|
592
|
+
*/
|
|
593
|
+
'line1'?: string | null;
|
|
594
|
+
/**
|
|
595
|
+
* The customers street address
|
|
596
|
+
* @type {string}
|
|
597
|
+
* @memberof GetCustomerResponse
|
|
598
|
+
*/
|
|
599
|
+
'line2'?: string | null;
|
|
600
|
+
/**
|
|
601
|
+
* The customers postal code
|
|
602
|
+
* @type {string}
|
|
603
|
+
* @memberof GetCustomerResponse
|
|
604
|
+
*/
|
|
605
|
+
'postal_code'?: string | null;
|
|
606
|
+
/**
|
|
607
|
+
* The customers state, county, province, or region
|
|
608
|
+
* @type {string}
|
|
609
|
+
* @memberof GetCustomerResponse
|
|
610
|
+
*/
|
|
611
|
+
'state'?: string | null;
|
|
612
|
+
/**
|
|
613
|
+
* The customers town (only used in Japan)
|
|
614
|
+
* @type {string}
|
|
615
|
+
* @memberof GetCustomerResponse
|
|
616
|
+
*/
|
|
617
|
+
'town'?: string | null;
|
|
618
|
+
/**
|
|
619
|
+
*
|
|
620
|
+
* @type {BlockInfo}
|
|
621
|
+
* @memberof GetCustomerResponse
|
|
622
|
+
*/
|
|
623
|
+
'blocked'?: BlockInfo;
|
|
624
|
+
/**
|
|
625
|
+
*
|
|
626
|
+
* @type {BlockInfo}
|
|
627
|
+
* @memberof GetCustomerResponse
|
|
628
|
+
*/
|
|
629
|
+
'phoneBlocked'?: BlockInfo;
|
|
630
|
+
/**
|
|
631
|
+
*
|
|
632
|
+
* @type {BlockInfo}
|
|
633
|
+
* @memberof GetCustomerResponse
|
|
634
|
+
*/
|
|
635
|
+
'emailBlocked'?: BlockInfo;
|
|
636
|
+
/**
|
|
637
|
+
* The date the customer joined the business
|
|
638
|
+
* @type {string}
|
|
639
|
+
* @memberof GetCustomerResponse
|
|
640
|
+
*/
|
|
641
|
+
'joined'?: string | null;
|
|
642
|
+
/**
|
|
643
|
+
* The customers stripe ID
|
|
644
|
+
* @type {string}
|
|
645
|
+
* @memberof GetCustomerResponse
|
|
646
|
+
*/
|
|
647
|
+
'stripe'?: string | null;
|
|
648
|
+
/**
|
|
649
|
+
* The customers stripe ID in the dev environment
|
|
650
|
+
* @type {string}
|
|
651
|
+
* @memberof GetCustomerResponse
|
|
652
|
+
*/
|
|
653
|
+
'stripeDev'?: string | null;
|
|
654
|
+
}
|
|
655
|
+
/**
|
|
656
|
+
*
|
|
657
|
+
* @export
|
|
658
|
+
* @interface ModelError
|
|
659
|
+
*/
|
|
660
|
+
export interface ModelError {
|
|
661
|
+
/**
|
|
662
|
+
*
|
|
663
|
+
* @type {string}
|
|
664
|
+
* @memberof ModelError
|
|
665
|
+
*/
|
|
666
|
+
'type': string;
|
|
667
|
+
/**
|
|
668
|
+
*
|
|
669
|
+
* @type {string}
|
|
670
|
+
* @memberof ModelError
|
|
671
|
+
*/
|
|
672
|
+
'message': string;
|
|
673
|
+
/**
|
|
674
|
+
*
|
|
675
|
+
* @type {string}
|
|
676
|
+
* @memberof ModelError
|
|
677
|
+
*/
|
|
678
|
+
'param': string | null;
|
|
679
|
+
/**
|
|
680
|
+
*
|
|
681
|
+
* @type {string}
|
|
682
|
+
* @memberof ModelError
|
|
683
|
+
*/
|
|
684
|
+
'code': string | null;
|
|
685
|
+
}
|
|
686
|
+
/**
|
|
687
|
+
*
|
|
688
|
+
* @export
|
|
689
|
+
* @interface OperationResponse
|
|
690
|
+
*/
|
|
691
|
+
export interface OperationResponse {
|
|
692
|
+
/**
|
|
693
|
+
*
|
|
694
|
+
* @type {boolean}
|
|
695
|
+
* @memberof OperationResponse
|
|
696
|
+
*/
|
|
697
|
+
'success': boolean;
|
|
698
|
+
/**
|
|
699
|
+
*
|
|
700
|
+
* @type {Error}
|
|
701
|
+
* @memberof OperationResponse
|
|
702
|
+
*/
|
|
703
|
+
'error'?: Error;
|
|
704
|
+
}
|
|
705
|
+
/**
|
|
706
|
+
*
|
|
707
|
+
* @export
|
|
708
|
+
* @interface UpdateCustomerRequest
|
|
709
|
+
*/
|
|
710
|
+
export interface UpdateCustomerRequest {
|
|
711
|
+
/**
|
|
712
|
+
* The customers first name
|
|
713
|
+
* @type {string}
|
|
714
|
+
* @memberof UpdateCustomerRequest
|
|
715
|
+
*/
|
|
716
|
+
'firstName'?: string;
|
|
717
|
+
/**
|
|
718
|
+
* The customers last name
|
|
719
|
+
* @type {string}
|
|
720
|
+
* @memberof UpdateCustomerRequest
|
|
721
|
+
*/
|
|
722
|
+
'lastName'?: string;
|
|
723
|
+
/**
|
|
724
|
+
* The customers full name
|
|
725
|
+
* @type {string}
|
|
726
|
+
* @memberof UpdateCustomerRequest
|
|
727
|
+
*/
|
|
728
|
+
'name'?: string;
|
|
729
|
+
/**
|
|
730
|
+
* The customers email address
|
|
731
|
+
* @type {string}
|
|
732
|
+
* @memberof UpdateCustomerRequest
|
|
733
|
+
*/
|
|
734
|
+
'email'?: string | null;
|
|
735
|
+
/**
|
|
736
|
+
* The customers phone number
|
|
737
|
+
* @type {string}
|
|
738
|
+
* @memberof UpdateCustomerRequest
|
|
739
|
+
*/
|
|
740
|
+
'phone'?: string | null;
|
|
741
|
+
/**
|
|
742
|
+
* The customers profile image
|
|
743
|
+
* @type {string}
|
|
744
|
+
* @memberof UpdateCustomerRequest
|
|
745
|
+
*/
|
|
746
|
+
'img'?: string | null;
|
|
747
|
+
/**
|
|
748
|
+
* The customers neighborhood
|
|
749
|
+
* @type {string}
|
|
750
|
+
* @memberof UpdateCustomerRequest
|
|
751
|
+
*/
|
|
752
|
+
'neighborhood'?: string | null;
|
|
753
|
+
/**
|
|
754
|
+
* The customers city
|
|
755
|
+
* @type {string}
|
|
756
|
+
* @memberof UpdateCustomerRequest
|
|
757
|
+
*/
|
|
758
|
+
'city'?: string | null;
|
|
759
|
+
/**
|
|
760
|
+
* The customers 2-letter country code
|
|
761
|
+
* @type {string}
|
|
762
|
+
* @memberof UpdateCustomerRequest
|
|
763
|
+
*/
|
|
764
|
+
'country'?: string | null;
|
|
765
|
+
/**
|
|
766
|
+
* The customers street address
|
|
767
|
+
* @type {string}
|
|
768
|
+
* @memberof UpdateCustomerRequest
|
|
769
|
+
*/
|
|
770
|
+
'line1'?: string | null;
|
|
771
|
+
/**
|
|
772
|
+
* The customers street address
|
|
773
|
+
* @type {string}
|
|
774
|
+
* @memberof UpdateCustomerRequest
|
|
775
|
+
*/
|
|
776
|
+
'line2'?: string | null;
|
|
777
|
+
/**
|
|
778
|
+
* The customers postal code
|
|
779
|
+
* @type {string}
|
|
780
|
+
* @memberof UpdateCustomerRequest
|
|
781
|
+
*/
|
|
782
|
+
'postal_code'?: string | null;
|
|
783
|
+
/**
|
|
784
|
+
* The customers state, county, province, or region
|
|
785
|
+
* @type {string}
|
|
786
|
+
* @memberof UpdateCustomerRequest
|
|
787
|
+
*/
|
|
788
|
+
'state'?: string | null;
|
|
789
|
+
/**
|
|
790
|
+
* The customers town (only used in Japan)
|
|
791
|
+
* @type {string}
|
|
792
|
+
* @memberof UpdateCustomerRequest
|
|
793
|
+
*/
|
|
794
|
+
'town'?: string | null;
|
|
795
|
+
/**
|
|
796
|
+
*
|
|
797
|
+
* @type {BlockInfo}
|
|
798
|
+
* @memberof UpdateCustomerRequest
|
|
799
|
+
*/
|
|
800
|
+
'blocked'?: BlockInfo;
|
|
801
|
+
/**
|
|
802
|
+
*
|
|
803
|
+
* @type {BlockInfo}
|
|
804
|
+
* @memberof UpdateCustomerRequest
|
|
805
|
+
*/
|
|
806
|
+
'phoneBlocked'?: BlockInfo;
|
|
807
|
+
/**
|
|
808
|
+
*
|
|
809
|
+
* @type {BlockInfo}
|
|
810
|
+
* @memberof UpdateCustomerRequest
|
|
811
|
+
*/
|
|
812
|
+
'emailBlocked'?: BlockInfo;
|
|
813
|
+
/**
|
|
814
|
+
* The date the customer joined the business
|
|
815
|
+
* @type {string}
|
|
816
|
+
* @memberof UpdateCustomerRequest
|
|
817
|
+
*/
|
|
818
|
+
'joined'?: string | null;
|
|
819
|
+
/**
|
|
820
|
+
* The customers stripe ID
|
|
821
|
+
* @type {string}
|
|
822
|
+
* @memberof UpdateCustomerRequest
|
|
823
|
+
*/
|
|
824
|
+
'stripe'?: string | null;
|
|
825
|
+
/**
|
|
826
|
+
* The customers stripe ID in the dev environment
|
|
827
|
+
* @type {string}
|
|
828
|
+
* @memberof UpdateCustomerRequest
|
|
829
|
+
*/
|
|
830
|
+
'stripeDev'?: string | null;
|
|
831
|
+
}
|
|
832
|
+
/**
|
|
833
|
+
*
|
|
834
|
+
* @export
|
|
835
|
+
* @interface UpdateCustomerResponse
|
|
836
|
+
*/
|
|
837
|
+
export interface UpdateCustomerResponse {
|
|
838
|
+
/**
|
|
839
|
+
*
|
|
840
|
+
* @type {boolean}
|
|
841
|
+
* @memberof UpdateCustomerResponse
|
|
842
|
+
*/
|
|
843
|
+
'success': boolean;
|
|
844
|
+
/**
|
|
845
|
+
*
|
|
846
|
+
* @type {Error}
|
|
847
|
+
* @memberof UpdateCustomerResponse
|
|
848
|
+
*/
|
|
849
|
+
'error'?: Error;
|
|
850
|
+
}
|
|
851
|
+
/**
|
|
852
|
+
*
|
|
853
|
+
* @export
|
|
854
|
+
* @interface UpdateCustomersRequest
|
|
855
|
+
*/
|
|
856
|
+
export interface UpdateCustomersRequest {
|
|
857
|
+
/**
|
|
858
|
+
*
|
|
859
|
+
* @type {Array<Customer>}
|
|
860
|
+
* @memberof UpdateCustomersRequest
|
|
861
|
+
*/
|
|
862
|
+
'customers'?: Array<Customer>;
|
|
863
|
+
}
|
|
864
|
+
/**
|
|
865
|
+
*
|
|
866
|
+
* @export
|
|
867
|
+
* @interface UpdateCustomersResponse
|
|
868
|
+
*/
|
|
869
|
+
export interface UpdateCustomersResponse {
|
|
870
|
+
/**
|
|
871
|
+
*
|
|
872
|
+
* @type {boolean}
|
|
873
|
+
* @memberof UpdateCustomersResponse
|
|
874
|
+
*/
|
|
875
|
+
'success': boolean;
|
|
876
|
+
/**
|
|
877
|
+
*
|
|
878
|
+
* @type {Error}
|
|
879
|
+
* @memberof UpdateCustomersResponse
|
|
880
|
+
*/
|
|
881
|
+
'error'?: Error;
|
|
54
882
|
}
|
|
55
883
|
|
|
884
|
+
/**
|
|
885
|
+
* Scout9Api - axios parameter creator
|
|
886
|
+
* @export
|
|
887
|
+
*/
|
|
56
888
|
export const Scout9ApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
57
|
-
|
|
889
|
+
return {
|
|
890
|
+
/**
|
|
891
|
+
*
|
|
892
|
+
* @summary Creates a new customer
|
|
893
|
+
* @param {CreateCustomerRequest} createCustomerRequest
|
|
894
|
+
* @param {*} [options] Override http request option.
|
|
895
|
+
* @throws {RequiredError}
|
|
896
|
+
*/
|
|
897
|
+
createCustomer: async (createCustomerRequest: CreateCustomerRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
898
|
+
// verify required parameter 'createCustomerRequest' is not null or undefined
|
|
899
|
+
assertParamExists('createCustomer', 'createCustomerRequest', createCustomerRequest)
|
|
900
|
+
const localVarPath = `/v1/customer`;
|
|
901
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
902
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
903
|
+
let baseOptions;
|
|
904
|
+
if (configuration) {
|
|
905
|
+
baseOptions = configuration.baseOptions;
|
|
906
|
+
}
|
|
907
|
+
|
|
908
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
909
|
+
const localVarHeaderParameter = {} as any;
|
|
910
|
+
const localVarQueryParameter = {} as any;
|
|
911
|
+
|
|
912
|
+
|
|
913
|
+
|
|
914
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
915
|
+
|
|
916
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
917
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
918
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
919
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createCustomerRequest, localVarRequestOptions, configuration)
|
|
920
|
+
|
|
921
|
+
return {
|
|
922
|
+
url: toPathString(localVarUrlObj),
|
|
923
|
+
options: localVarRequestOptions,
|
|
924
|
+
};
|
|
925
|
+
},
|
|
926
|
+
/**
|
|
927
|
+
*
|
|
928
|
+
* @summary Creates new customers
|
|
929
|
+
* @param {CreateCustomersRequest} createCustomersRequest
|
|
930
|
+
* @param {*} [options] Override http request option.
|
|
931
|
+
* @throws {RequiredError}
|
|
932
|
+
*/
|
|
933
|
+
createCustomers: async (createCustomersRequest: CreateCustomersRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
934
|
+
// verify required parameter 'createCustomersRequest' is not null or undefined
|
|
935
|
+
assertParamExists('createCustomers', 'createCustomersRequest', createCustomersRequest)
|
|
936
|
+
const localVarPath = `/v1/customers`;
|
|
937
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
938
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
939
|
+
let baseOptions;
|
|
940
|
+
if (configuration) {
|
|
941
|
+
baseOptions = configuration.baseOptions;
|
|
942
|
+
}
|
|
943
|
+
|
|
944
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
945
|
+
const localVarHeaderParameter = {} as any;
|
|
946
|
+
const localVarQueryParameter = {} as any;
|
|
947
|
+
|
|
948
|
+
|
|
949
|
+
|
|
950
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
951
|
+
|
|
952
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
953
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
954
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
955
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createCustomersRequest, localVarRequestOptions, configuration)
|
|
956
|
+
|
|
957
|
+
return {
|
|
958
|
+
url: toPathString(localVarUrlObj),
|
|
959
|
+
options: localVarRequestOptions,
|
|
960
|
+
};
|
|
961
|
+
},
|
|
962
|
+
/**
|
|
963
|
+
*
|
|
964
|
+
* @summary Deletes a customer
|
|
965
|
+
* @param {string} id Customer ID to delete customer
|
|
966
|
+
* @param {*} [options] Override http request option.
|
|
967
|
+
* @throws {RequiredError}
|
|
968
|
+
*/
|
|
969
|
+
deleteCustomer: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
970
|
+
// verify required parameter 'id' is not null or undefined
|
|
971
|
+
assertParamExists('deleteCustomer', 'id', id)
|
|
972
|
+
const localVarPath = `/v1/customer`
|
|
973
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
974
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
975
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
976
|
+
let baseOptions;
|
|
977
|
+
if (configuration) {
|
|
978
|
+
baseOptions = configuration.baseOptions;
|
|
979
|
+
}
|
|
980
|
+
|
|
981
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
982
|
+
const localVarHeaderParameter = {} as any;
|
|
983
|
+
const localVarQueryParameter = {} as any;
|
|
984
|
+
|
|
985
|
+
|
|
986
|
+
|
|
987
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
988
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
989
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
990
|
+
|
|
991
|
+
return {
|
|
992
|
+
url: toPathString(localVarUrlObj),
|
|
993
|
+
options: localVarRequestOptions,
|
|
994
|
+
};
|
|
995
|
+
},
|
|
996
|
+
/**
|
|
997
|
+
*
|
|
998
|
+
* @summary Deletes multiple customers
|
|
999
|
+
* @param {string} id Customer IDs to delete multiple customer
|
|
1000
|
+
* @param {*} [options] Override http request option.
|
|
1001
|
+
* @throws {RequiredError}
|
|
1002
|
+
*/
|
|
1003
|
+
deleteCustomers: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1004
|
+
// verify required parameter 'id' is not null or undefined
|
|
1005
|
+
assertParamExists('deleteCustomers', 'id', id)
|
|
1006
|
+
const localVarPath = `/v1/customers`
|
|
1007
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
1008
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1009
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1010
|
+
let baseOptions;
|
|
1011
|
+
if (configuration) {
|
|
1012
|
+
baseOptions = configuration.baseOptions;
|
|
1013
|
+
}
|
|
1014
|
+
|
|
1015
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
1016
|
+
const localVarHeaderParameter = {} as any;
|
|
1017
|
+
const localVarQueryParameter = {} as any;
|
|
1018
|
+
|
|
1019
|
+
|
|
1020
|
+
|
|
1021
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1022
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1023
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1024
|
+
|
|
1025
|
+
return {
|
|
1026
|
+
url: toPathString(localVarUrlObj),
|
|
1027
|
+
options: localVarRequestOptions,
|
|
1028
|
+
};
|
|
1029
|
+
},
|
|
1030
|
+
/**
|
|
1031
|
+
*
|
|
1032
|
+
* @summary Gets a customer
|
|
1033
|
+
* @param {string} id Customer ID to get customer
|
|
1034
|
+
* @param {*} [options] Override http request option.
|
|
1035
|
+
* @throws {RequiredError}
|
|
1036
|
+
*/
|
|
1037
|
+
getCustomer: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1038
|
+
// verify required parameter 'id' is not null or undefined
|
|
1039
|
+
assertParamExists('getCustomer', 'id', id)
|
|
1040
|
+
const localVarPath = `/v1/customer`
|
|
1041
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
1042
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1043
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1044
|
+
let baseOptions;
|
|
1045
|
+
if (configuration) {
|
|
1046
|
+
baseOptions = configuration.baseOptions;
|
|
1047
|
+
}
|
|
1048
|
+
|
|
1049
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
1050
|
+
const localVarHeaderParameter = {} as any;
|
|
1051
|
+
const localVarQueryParameter = {} as any;
|
|
1052
|
+
|
|
1053
|
+
|
|
1054
|
+
|
|
1055
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1056
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1057
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1058
|
+
|
|
1059
|
+
return {
|
|
1060
|
+
url: toPathString(localVarUrlObj),
|
|
1061
|
+
options: localVarRequestOptions,
|
|
1062
|
+
};
|
|
1063
|
+
},
|
|
1064
|
+
/**
|
|
1065
|
+
*
|
|
1066
|
+
* @summary Gets all or specific set of customers
|
|
1067
|
+
* @param {string} [id] Optional get specific customers
|
|
1068
|
+
* @param {*} [options] Override http request option.
|
|
1069
|
+
* @throws {RequiredError}
|
|
1070
|
+
*/
|
|
1071
|
+
getCustomers: async (id?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1072
|
+
const localVarPath = `/v1/customers`
|
|
1073
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
1074
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1075
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1076
|
+
let baseOptions;
|
|
1077
|
+
if (configuration) {
|
|
1078
|
+
baseOptions = configuration.baseOptions;
|
|
1079
|
+
}
|
|
1080
|
+
|
|
1081
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
1082
|
+
const localVarHeaderParameter = {} as any;
|
|
1083
|
+
const localVarQueryParameter = {} as any;
|
|
1084
|
+
|
|
1085
|
+
|
|
1086
|
+
|
|
1087
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1088
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1089
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1090
|
+
|
|
1091
|
+
return {
|
|
1092
|
+
url: toPathString(localVarUrlObj),
|
|
1093
|
+
options: localVarRequestOptions,
|
|
1094
|
+
};
|
|
1095
|
+
},
|
|
1096
|
+
/**
|
|
1097
|
+
*
|
|
1098
|
+
* @summary Updates a customer
|
|
1099
|
+
* @param {UpdateCustomerRequest} updateCustomerRequest
|
|
1100
|
+
* @param {*} [options] Override http request option.
|
|
1101
|
+
* @throws {RequiredError}
|
|
1102
|
+
*/
|
|
1103
|
+
updateCustomer: async (updateCustomerRequest: UpdateCustomerRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1104
|
+
// verify required parameter 'updateCustomerRequest' is not null or undefined
|
|
1105
|
+
assertParamExists('updateCustomer', 'updateCustomerRequest', updateCustomerRequest)
|
|
1106
|
+
const localVarPath = `/v1/customer`;
|
|
1107
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1108
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1109
|
+
let baseOptions;
|
|
1110
|
+
if (configuration) {
|
|
1111
|
+
baseOptions = configuration.baseOptions;
|
|
1112
|
+
}
|
|
1113
|
+
|
|
1114
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
1115
|
+
const localVarHeaderParameter = {} as any;
|
|
1116
|
+
const localVarQueryParameter = {} as any;
|
|
58
1117
|
|
|
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
1118
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
const localVarQueryParameter = {} as any;
|
|
1119
|
+
|
|
1120
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
80
1121
|
|
|
81
|
-
|
|
1122
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1123
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1124
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1125
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateCustomerRequest, localVarRequestOptions, configuration)
|
|
82
1126
|
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
1127
|
+
return {
|
|
1128
|
+
url: toPathString(localVarUrlObj),
|
|
1129
|
+
options: localVarRequestOptions,
|
|
1130
|
+
};
|
|
1131
|
+
},
|
|
1132
|
+
/**
|
|
1133
|
+
*
|
|
1134
|
+
* @summary Updates multiple customers
|
|
1135
|
+
* @param {UpdateCustomerRequest} updateCustomerRequest
|
|
1136
|
+
* @param {*} [options] Override http request option.
|
|
1137
|
+
* @throws {RequiredError}
|
|
1138
|
+
*/
|
|
1139
|
+
updateCustomers: async (updateCustomerRequest: UpdateCustomerRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1140
|
+
// verify required parameter 'updateCustomerRequest' is not null or undefined
|
|
1141
|
+
assertParamExists('updateCustomers', 'updateCustomerRequest', updateCustomerRequest)
|
|
1142
|
+
const localVarPath = `/v1/customers`;
|
|
1143
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1144
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1145
|
+
let baseOptions;
|
|
1146
|
+
if (configuration) {
|
|
1147
|
+
baseOptions = configuration.baseOptions;
|
|
1148
|
+
}
|
|
87
1149
|
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
};
|
|
92
|
-
},
|
|
1150
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
1151
|
+
const localVarHeaderParameter = {} as any;
|
|
1152
|
+
const localVarQueryParameter = {} as any;
|
|
93
1153
|
|
|
94
1154
|
|
|
95
|
-
|
|
1155
|
+
|
|
1156
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1157
|
+
|
|
1158
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1159
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1160
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1161
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateCustomerRequest, localVarRequestOptions, configuration)
|
|
1162
|
+
|
|
1163
|
+
return {
|
|
1164
|
+
url: toPathString(localVarUrlObj),
|
|
1165
|
+
options: localVarRequestOptions,
|
|
1166
|
+
};
|
|
1167
|
+
},
|
|
1168
|
+
}
|
|
96
1169
|
};
|
|
97
1170
|
|
|
98
1171
|
/**
|
|
99
1172
|
* Scout9Api - functional programming interface
|
|
100
1173
|
* @export
|
|
101
1174
|
*/
|
|
102
|
-
export const Scout9ApiFp = function
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
1175
|
+
export const Scout9ApiFp = function(configuration?: Configuration) {
|
|
1176
|
+
const localVarAxiosParamCreator = Scout9ApiAxiosParamCreator(configuration)
|
|
1177
|
+
return {
|
|
1178
|
+
/**
|
|
1179
|
+
*
|
|
1180
|
+
* @summary Creates a new customer
|
|
1181
|
+
* @param {CreateCustomerRequest} createCustomerRequest
|
|
1182
|
+
* @param {*} [options] Override http request option.
|
|
1183
|
+
* @throws {RequiredError}
|
|
1184
|
+
*/
|
|
1185
|
+
async createCustomer(createCustomerRequest: CreateCustomerRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateCustomerResponse>> {
|
|
1186
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createCustomer(createCustomerRequest, options);
|
|
1187
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1188
|
+
},
|
|
1189
|
+
/**
|
|
1190
|
+
*
|
|
1191
|
+
* @summary Creates new customers
|
|
1192
|
+
* @param {CreateCustomersRequest} createCustomersRequest
|
|
1193
|
+
* @param {*} [options] Override http request option.
|
|
1194
|
+
* @throws {RequiredError}
|
|
1195
|
+
*/
|
|
1196
|
+
async createCustomers(createCustomersRequest: CreateCustomersRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateCustomersResponse>> {
|
|
1197
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createCustomers(createCustomersRequest, options);
|
|
1198
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1199
|
+
},
|
|
1200
|
+
/**
|
|
1201
|
+
*
|
|
1202
|
+
* @summary Deletes a customer
|
|
1203
|
+
* @param {string} id Customer ID to delete customer
|
|
1204
|
+
* @param {*} [options] Override http request option.
|
|
1205
|
+
* @throws {RequiredError}
|
|
1206
|
+
*/
|
|
1207
|
+
async deleteCustomer(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteCustomerResponse>> {
|
|
1208
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteCustomer(id, options);
|
|
1209
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1210
|
+
},
|
|
1211
|
+
/**
|
|
1212
|
+
*
|
|
1213
|
+
* @summary Deletes multiple customers
|
|
1214
|
+
* @param {string} id Customer IDs to delete multiple customer
|
|
1215
|
+
* @param {*} [options] Override http request option.
|
|
1216
|
+
* @throws {RequiredError}
|
|
1217
|
+
*/
|
|
1218
|
+
async deleteCustomers(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteCustomersResponse>> {
|
|
1219
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteCustomers(id, options);
|
|
1220
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1221
|
+
},
|
|
1222
|
+
/**
|
|
1223
|
+
*
|
|
1224
|
+
* @summary Gets a customer
|
|
1225
|
+
* @param {string} id Customer ID to get customer
|
|
1226
|
+
* @param {*} [options] Override http request option.
|
|
1227
|
+
* @throws {RequiredError}
|
|
1228
|
+
*/
|
|
1229
|
+
async getCustomer(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateCustomerRequest>> {
|
|
1230
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getCustomer(id, options);
|
|
1231
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1232
|
+
},
|
|
1233
|
+
/**
|
|
1234
|
+
*
|
|
1235
|
+
* @summary Gets all or specific set of customers
|
|
1236
|
+
* @param {string} [id] Optional get specific customers
|
|
1237
|
+
* @param {*} [options] Override http request option.
|
|
1238
|
+
* @throws {RequiredError}
|
|
1239
|
+
*/
|
|
1240
|
+
async getCustomers(id?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Customer>>> {
|
|
1241
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getCustomers(id, options);
|
|
1242
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1243
|
+
},
|
|
1244
|
+
/**
|
|
1245
|
+
*
|
|
1246
|
+
* @summary Updates a customer
|
|
1247
|
+
* @param {UpdateCustomerRequest} updateCustomerRequest
|
|
1248
|
+
* @param {*} [options] Override http request option.
|
|
1249
|
+
* @throws {RequiredError}
|
|
1250
|
+
*/
|
|
1251
|
+
async updateCustomer(updateCustomerRequest: UpdateCustomerRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateCustomerResponse>> {
|
|
1252
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateCustomer(updateCustomerRequest, options);
|
|
1253
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1254
|
+
},
|
|
1255
|
+
/**
|
|
1256
|
+
*
|
|
1257
|
+
* @summary Updates multiple customers
|
|
1258
|
+
* @param {UpdateCustomerRequest} updateCustomerRequest
|
|
1259
|
+
* @param {*} [options] Override http request option.
|
|
1260
|
+
* @throws {RequiredError}
|
|
1261
|
+
*/
|
|
1262
|
+
async updateCustomers(updateCustomerRequest: UpdateCustomerRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateCustomersResponse>> {
|
|
1263
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateCustomers(updateCustomerRequest, options);
|
|
1264
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1265
|
+
},
|
|
1266
|
+
}
|
|
1267
|
+
};
|
|
1268
|
+
|
|
1269
|
+
/**
|
|
1270
|
+
* Scout9Api - factory interface
|
|
1271
|
+
* @export
|
|
1272
|
+
*/
|
|
1273
|
+
export const Scout9ApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
1274
|
+
const localVarFp = Scout9ApiFp(configuration)
|
|
1275
|
+
return {
|
|
1276
|
+
/**
|
|
1277
|
+
*
|
|
1278
|
+
* @summary Creates a new customer
|
|
1279
|
+
* @param {CreateCustomerRequest} createCustomerRequest
|
|
1280
|
+
* @param {*} [options] Override http request option.
|
|
1281
|
+
* @throws {RequiredError}
|
|
1282
|
+
*/
|
|
1283
|
+
createCustomer(createCustomerRequest: CreateCustomerRequest, options?: any): AxiosPromise<CreateCustomerResponse> {
|
|
1284
|
+
return localVarFp.createCustomer(createCustomerRequest, options).then((request) => request(axios, basePath));
|
|
1285
|
+
},
|
|
1286
|
+
/**
|
|
1287
|
+
*
|
|
1288
|
+
* @summary Creates new customers
|
|
1289
|
+
* @param {CreateCustomersRequest} createCustomersRequest
|
|
1290
|
+
* @param {*} [options] Override http request option.
|
|
1291
|
+
* @throws {RequiredError}
|
|
1292
|
+
*/
|
|
1293
|
+
createCustomers(createCustomersRequest: CreateCustomersRequest, options?: any): AxiosPromise<CreateCustomersResponse> {
|
|
1294
|
+
return localVarFp.createCustomers(createCustomersRequest, options).then((request) => request(axios, basePath));
|
|
1295
|
+
},
|
|
1296
|
+
/**
|
|
1297
|
+
*
|
|
1298
|
+
* @summary Deletes a customer
|
|
1299
|
+
* @param {string} id Customer ID to delete customer
|
|
1300
|
+
* @param {*} [options] Override http request option.
|
|
1301
|
+
* @throws {RequiredError}
|
|
1302
|
+
*/
|
|
1303
|
+
deleteCustomer(id: string, options?: any): AxiosPromise<DeleteCustomerResponse> {
|
|
1304
|
+
return localVarFp.deleteCustomer(id, options).then((request) => request(axios, basePath));
|
|
1305
|
+
},
|
|
1306
|
+
/**
|
|
1307
|
+
*
|
|
1308
|
+
* @summary Deletes multiple customers
|
|
1309
|
+
* @param {string} id Customer IDs to delete multiple customer
|
|
1310
|
+
* @param {*} [options] Override http request option.
|
|
1311
|
+
* @throws {RequiredError}
|
|
1312
|
+
*/
|
|
1313
|
+
deleteCustomers(id: string, options?: any): AxiosPromise<DeleteCustomersResponse> {
|
|
1314
|
+
return localVarFp.deleteCustomers(id, options).then((request) => request(axios, basePath));
|
|
1315
|
+
},
|
|
1316
|
+
/**
|
|
1317
|
+
*
|
|
1318
|
+
* @summary Gets a customer
|
|
1319
|
+
* @param {string} id Customer ID to get customer
|
|
1320
|
+
* @param {*} [options] Override http request option.
|
|
1321
|
+
* @throws {RequiredError}
|
|
1322
|
+
*/
|
|
1323
|
+
getCustomer(id: string, options?: any): AxiosPromise<CreateCustomerRequest> {
|
|
1324
|
+
return localVarFp.getCustomer(id, options).then((request) => request(axios, basePath));
|
|
1325
|
+
},
|
|
1326
|
+
/**
|
|
1327
|
+
*
|
|
1328
|
+
* @summary Gets all or specific set of customers
|
|
1329
|
+
* @param {string} [id] Optional get specific customers
|
|
1330
|
+
* @param {*} [options] Override http request option.
|
|
1331
|
+
* @throws {RequiredError}
|
|
1332
|
+
*/
|
|
1333
|
+
getCustomers(id?: string, options?: any): AxiosPromise<Array<Customer>> {
|
|
1334
|
+
return localVarFp.getCustomers(id, options).then((request) => request(axios, basePath));
|
|
1335
|
+
},
|
|
1336
|
+
/**
|
|
1337
|
+
*
|
|
1338
|
+
* @summary Updates a customer
|
|
1339
|
+
* @param {UpdateCustomerRequest} updateCustomerRequest
|
|
1340
|
+
* @param {*} [options] Override http request option.
|
|
1341
|
+
* @throws {RequiredError}
|
|
1342
|
+
*/
|
|
1343
|
+
updateCustomer(updateCustomerRequest: UpdateCustomerRequest, options?: any): AxiosPromise<UpdateCustomerResponse> {
|
|
1344
|
+
return localVarFp.updateCustomer(updateCustomerRequest, options).then((request) => request(axios, basePath));
|
|
1345
|
+
},
|
|
1346
|
+
/**
|
|
1347
|
+
*
|
|
1348
|
+
* @summary Updates multiple customers
|
|
1349
|
+
* @param {UpdateCustomerRequest} updateCustomerRequest
|
|
1350
|
+
* @param {*} [options] Override http request option.
|
|
1351
|
+
* @throws {RequiredError}
|
|
1352
|
+
*/
|
|
1353
|
+
updateCustomers(updateCustomerRequest: UpdateCustomerRequest, options?: any): AxiosPromise<UpdateCustomersResponse> {
|
|
1354
|
+
return localVarFp.updateCustomers(updateCustomerRequest, options).then((request) => request(axios, basePath));
|
|
1355
|
+
},
|
|
1356
|
+
};
|
|
117
1357
|
};
|
|
118
1358
|
|
|
119
1359
|
/**
|
|
@@ -123,19 +1363,101 @@ export const Scout9ApiFp = function (configuration?: Configuration) {
|
|
|
123
1363
|
* @extends {BaseAPI}
|
|
124
1364
|
*/
|
|
125
1365
|
export class Scout9Api extends BaseAPI {
|
|
1366
|
+
/**
|
|
1367
|
+
*
|
|
1368
|
+
* @summary Creates a new customer
|
|
1369
|
+
* @param {CreateCustomerRequest} createCustomerRequest
|
|
1370
|
+
* @param {*} [options] Override http request option.
|
|
1371
|
+
* @throws {RequiredError}
|
|
1372
|
+
* @memberof Scout9Api
|
|
1373
|
+
*/
|
|
1374
|
+
public createCustomer(createCustomerRequest: CreateCustomerRequest, options?: AxiosRequestConfig) {
|
|
1375
|
+
return Scout9ApiFp(this.configuration).createCustomer(createCustomerRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1376
|
+
}
|
|
1377
|
+
|
|
1378
|
+
/**
|
|
1379
|
+
*
|
|
1380
|
+
* @summary Creates new customers
|
|
1381
|
+
* @param {CreateCustomersRequest} createCustomersRequest
|
|
1382
|
+
* @param {*} [options] Override http request option.
|
|
1383
|
+
* @throws {RequiredError}
|
|
1384
|
+
* @memberof Scout9Api
|
|
1385
|
+
*/
|
|
1386
|
+
public createCustomers(createCustomersRequest: CreateCustomersRequest, options?: AxiosRequestConfig) {
|
|
1387
|
+
return Scout9ApiFp(this.configuration).createCustomers(createCustomersRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1388
|
+
}
|
|
1389
|
+
|
|
1390
|
+
/**
|
|
1391
|
+
*
|
|
1392
|
+
* @summary Deletes a customer
|
|
1393
|
+
* @param {string} id Customer ID to delete customer
|
|
1394
|
+
* @param {*} [options] Override http request option.
|
|
1395
|
+
* @throws {RequiredError}
|
|
1396
|
+
* @memberof Scout9Api
|
|
1397
|
+
*/
|
|
1398
|
+
public deleteCustomer(id: string, options?: AxiosRequestConfig) {
|
|
1399
|
+
return Scout9ApiFp(this.configuration).deleteCustomer(id, options).then((request) => request(this.axios, this.basePath));
|
|
1400
|
+
}
|
|
126
1401
|
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
.then((request) => request(this.axios, this.basePath));
|
|
139
|
-
}
|
|
1402
|
+
/**
|
|
1403
|
+
*
|
|
1404
|
+
* @summary Deletes multiple customers
|
|
1405
|
+
* @param {string} id Customer IDs to delete multiple customer
|
|
1406
|
+
* @param {*} [options] Override http request option.
|
|
1407
|
+
* @throws {RequiredError}
|
|
1408
|
+
* @memberof Scout9Api
|
|
1409
|
+
*/
|
|
1410
|
+
public deleteCustomers(id: string, options?: AxiosRequestConfig) {
|
|
1411
|
+
return Scout9ApiFp(this.configuration).deleteCustomers(id, options).then((request) => request(this.axios, this.basePath));
|
|
1412
|
+
}
|
|
140
1413
|
|
|
1414
|
+
/**
|
|
1415
|
+
*
|
|
1416
|
+
* @summary Gets a customer
|
|
1417
|
+
* @param {string} id Customer ID to get customer
|
|
1418
|
+
* @param {*} [options] Override http request option.
|
|
1419
|
+
* @throws {RequiredError}
|
|
1420
|
+
* @memberof Scout9Api
|
|
1421
|
+
*/
|
|
1422
|
+
public getCustomer(id: string, options?: AxiosRequestConfig) {
|
|
1423
|
+
return Scout9ApiFp(this.configuration).getCustomer(id, options).then((request) => request(this.axios, this.basePath));
|
|
1424
|
+
}
|
|
1425
|
+
|
|
1426
|
+
/**
|
|
1427
|
+
*
|
|
1428
|
+
* @summary Gets all or specific set of customers
|
|
1429
|
+
* @param {string} [id] Optional get specific customers
|
|
1430
|
+
* @param {*} [options] Override http request option.
|
|
1431
|
+
* @throws {RequiredError}
|
|
1432
|
+
* @memberof Scout9Api
|
|
1433
|
+
*/
|
|
1434
|
+
public getCustomers(id?: string, options?: AxiosRequestConfig) {
|
|
1435
|
+
return Scout9ApiFp(this.configuration).getCustomers(id, options).then((request) => request(this.axios, this.basePath));
|
|
1436
|
+
}
|
|
1437
|
+
|
|
1438
|
+
/**
|
|
1439
|
+
*
|
|
1440
|
+
* @summary Updates a customer
|
|
1441
|
+
* @param {UpdateCustomerRequest} updateCustomerRequest
|
|
1442
|
+
* @param {*} [options] Override http request option.
|
|
1443
|
+
* @throws {RequiredError}
|
|
1444
|
+
* @memberof Scout9Api
|
|
1445
|
+
*/
|
|
1446
|
+
public updateCustomer(updateCustomerRequest: UpdateCustomerRequest, options?: AxiosRequestConfig) {
|
|
1447
|
+
return Scout9ApiFp(this.configuration).updateCustomer(updateCustomerRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1448
|
+
}
|
|
1449
|
+
|
|
1450
|
+
/**
|
|
1451
|
+
*
|
|
1452
|
+
* @summary Updates multiple customers
|
|
1453
|
+
* @param {UpdateCustomerRequest} updateCustomerRequest
|
|
1454
|
+
* @param {*} [options] Override http request option.
|
|
1455
|
+
* @throws {RequiredError}
|
|
1456
|
+
* @memberof Scout9Api
|
|
1457
|
+
*/
|
|
1458
|
+
public updateCustomers(updateCustomerRequest: UpdateCustomerRequest, options?: AxiosRequestConfig) {
|
|
1459
|
+
return Scout9ApiFp(this.configuration).updateCustomers(updateCustomerRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1460
|
+
}
|
|
141
1461
|
}
|
|
1462
|
+
|
|
1463
|
+
|