@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/build/api.js
CHANGED
|
@@ -1,28 +1,45 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Scout9 API
|
|
6
|
+
* APIs for managing Scout9 users and conversations
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
2
15
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
16
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
17
|
};
|
|
5
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.Scout9Api = exports.Scout9ApiFp = exports.Scout9ApiAxiosParamCreator = void 0;
|
|
19
|
+
exports.Scout9Api = exports.Scout9ApiFactory = exports.Scout9ApiFp = exports.Scout9ApiAxiosParamCreator = void 0;
|
|
7
20
|
const axios_1 = __importDefault(require("axios"));
|
|
8
21
|
// Some imports not used depending on template conditions
|
|
9
22
|
// @ts-ignore
|
|
10
23
|
const common_1 = require("./common");
|
|
11
24
|
// @ts-ignore
|
|
12
25
|
const base_1 = require("./base");
|
|
26
|
+
/**
|
|
27
|
+
* Scout9Api - axios parameter creator
|
|
28
|
+
* @export
|
|
29
|
+
*/
|
|
13
30
|
const Scout9ApiAxiosParamCreator = function (configuration) {
|
|
14
31
|
return {
|
|
15
32
|
/**
|
|
16
33
|
*
|
|
17
|
-
* @summary Creates a
|
|
18
|
-
* @param {
|
|
34
|
+
* @summary Creates a new customer
|
|
35
|
+
* @param {CreateCustomerRequest} createCustomerRequest
|
|
19
36
|
* @param {*} [options] Override http request option.
|
|
20
37
|
* @throws {RequiredError}
|
|
21
38
|
*/
|
|
22
39
|
createCustomer: async (createCustomerRequest, options = {}) => {
|
|
23
|
-
// verify required parameter '
|
|
40
|
+
// verify required parameter 'createCustomerRequest' is not null or undefined
|
|
24
41
|
(0, common_1.assertParamExists)('createCustomer', 'createCustomerRequest', createCustomerRequest);
|
|
25
|
-
const localVarPath =
|
|
42
|
+
const localVarPath = `/v1/customer`;
|
|
26
43
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
27
44
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
28
45
|
let baseOptions;
|
|
@@ -42,6 +59,210 @@ const Scout9ApiAxiosParamCreator = function (configuration) {
|
|
|
42
59
|
options: localVarRequestOptions,
|
|
43
60
|
};
|
|
44
61
|
},
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @summary Creates new customers
|
|
65
|
+
* @param {CreateCustomersRequest} createCustomersRequest
|
|
66
|
+
* @param {*} [options] Override http request option.
|
|
67
|
+
* @throws {RequiredError}
|
|
68
|
+
*/
|
|
69
|
+
createCustomers: async (createCustomersRequest, options = {}) => {
|
|
70
|
+
// verify required parameter 'createCustomersRequest' is not null or undefined
|
|
71
|
+
(0, common_1.assertParamExists)('createCustomers', 'createCustomersRequest', createCustomersRequest);
|
|
72
|
+
const localVarPath = `/v1/customers`;
|
|
73
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
74
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
75
|
+
let baseOptions;
|
|
76
|
+
if (configuration) {
|
|
77
|
+
baseOptions = configuration.baseOptions;
|
|
78
|
+
}
|
|
79
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
80
|
+
const localVarHeaderParameter = {};
|
|
81
|
+
const localVarQueryParameter = {};
|
|
82
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
83
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
84
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
85
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
86
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createCustomersRequest, localVarRequestOptions, configuration);
|
|
87
|
+
return {
|
|
88
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
89
|
+
options: localVarRequestOptions,
|
|
90
|
+
};
|
|
91
|
+
},
|
|
92
|
+
/**
|
|
93
|
+
*
|
|
94
|
+
* @summary Deletes a customer
|
|
95
|
+
* @param {string} id Customer ID to delete customer
|
|
96
|
+
* @param {*} [options] Override http request option.
|
|
97
|
+
* @throws {RequiredError}
|
|
98
|
+
*/
|
|
99
|
+
deleteCustomer: async (id, options = {}) => {
|
|
100
|
+
// verify required parameter 'id' is not null or undefined
|
|
101
|
+
(0, common_1.assertParamExists)('deleteCustomer', 'id', id);
|
|
102
|
+
const localVarPath = `/v1/customer`
|
|
103
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
104
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
105
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
106
|
+
let baseOptions;
|
|
107
|
+
if (configuration) {
|
|
108
|
+
baseOptions = configuration.baseOptions;
|
|
109
|
+
}
|
|
110
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
111
|
+
const localVarHeaderParameter = {};
|
|
112
|
+
const localVarQueryParameter = {};
|
|
113
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
114
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
115
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
116
|
+
return {
|
|
117
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
118
|
+
options: localVarRequestOptions,
|
|
119
|
+
};
|
|
120
|
+
},
|
|
121
|
+
/**
|
|
122
|
+
*
|
|
123
|
+
* @summary Deletes multiple customers
|
|
124
|
+
* @param {string} id Customer IDs to delete multiple customer
|
|
125
|
+
* @param {*} [options] Override http request option.
|
|
126
|
+
* @throws {RequiredError}
|
|
127
|
+
*/
|
|
128
|
+
deleteCustomers: async (id, options = {}) => {
|
|
129
|
+
// verify required parameter 'id' is not null or undefined
|
|
130
|
+
(0, common_1.assertParamExists)('deleteCustomers', 'id', id);
|
|
131
|
+
const localVarPath = `/v1/customers`
|
|
132
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
133
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
134
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
135
|
+
let baseOptions;
|
|
136
|
+
if (configuration) {
|
|
137
|
+
baseOptions = configuration.baseOptions;
|
|
138
|
+
}
|
|
139
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
140
|
+
const localVarHeaderParameter = {};
|
|
141
|
+
const localVarQueryParameter = {};
|
|
142
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
143
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
144
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
145
|
+
return {
|
|
146
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
147
|
+
options: localVarRequestOptions,
|
|
148
|
+
};
|
|
149
|
+
},
|
|
150
|
+
/**
|
|
151
|
+
*
|
|
152
|
+
* @summary Gets a customer
|
|
153
|
+
* @param {string} id Customer ID to get customer
|
|
154
|
+
* @param {*} [options] Override http request option.
|
|
155
|
+
* @throws {RequiredError}
|
|
156
|
+
*/
|
|
157
|
+
getCustomer: async (id, options = {}) => {
|
|
158
|
+
// verify required parameter 'id' is not null or undefined
|
|
159
|
+
(0, common_1.assertParamExists)('getCustomer', 'id', id);
|
|
160
|
+
const localVarPath = `/v1/customer`
|
|
161
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
162
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
163
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
164
|
+
let baseOptions;
|
|
165
|
+
if (configuration) {
|
|
166
|
+
baseOptions = configuration.baseOptions;
|
|
167
|
+
}
|
|
168
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
169
|
+
const localVarHeaderParameter = {};
|
|
170
|
+
const localVarQueryParameter = {};
|
|
171
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
172
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
173
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
174
|
+
return {
|
|
175
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
176
|
+
options: localVarRequestOptions,
|
|
177
|
+
};
|
|
178
|
+
},
|
|
179
|
+
/**
|
|
180
|
+
*
|
|
181
|
+
* @summary Gets all or specific set of customers
|
|
182
|
+
* @param {string} [id] Optional get specific customers
|
|
183
|
+
* @param {*} [options] Override http request option.
|
|
184
|
+
* @throws {RequiredError}
|
|
185
|
+
*/
|
|
186
|
+
getCustomers: async (id, options = {}) => {
|
|
187
|
+
const localVarPath = `/v1/customers`
|
|
188
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
189
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
190
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
191
|
+
let baseOptions;
|
|
192
|
+
if (configuration) {
|
|
193
|
+
baseOptions = configuration.baseOptions;
|
|
194
|
+
}
|
|
195
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
196
|
+
const localVarHeaderParameter = {};
|
|
197
|
+
const localVarQueryParameter = {};
|
|
198
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
199
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
200
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
201
|
+
return {
|
|
202
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
203
|
+
options: localVarRequestOptions,
|
|
204
|
+
};
|
|
205
|
+
},
|
|
206
|
+
/**
|
|
207
|
+
*
|
|
208
|
+
* @summary Updates a customer
|
|
209
|
+
* @param {UpdateCustomerRequest} updateCustomerRequest
|
|
210
|
+
* @param {*} [options] Override http request option.
|
|
211
|
+
* @throws {RequiredError}
|
|
212
|
+
*/
|
|
213
|
+
updateCustomer: async (updateCustomerRequest, options = {}) => {
|
|
214
|
+
// verify required parameter 'updateCustomerRequest' is not null or undefined
|
|
215
|
+
(0, common_1.assertParamExists)('updateCustomer', 'updateCustomerRequest', updateCustomerRequest);
|
|
216
|
+
const localVarPath = `/v1/customer`;
|
|
217
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
218
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
219
|
+
let baseOptions;
|
|
220
|
+
if (configuration) {
|
|
221
|
+
baseOptions = configuration.baseOptions;
|
|
222
|
+
}
|
|
223
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
|
|
224
|
+
const localVarHeaderParameter = {};
|
|
225
|
+
const localVarQueryParameter = {};
|
|
226
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
227
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
228
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
229
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
230
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateCustomerRequest, localVarRequestOptions, configuration);
|
|
231
|
+
return {
|
|
232
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
233
|
+
options: localVarRequestOptions,
|
|
234
|
+
};
|
|
235
|
+
},
|
|
236
|
+
/**
|
|
237
|
+
*
|
|
238
|
+
* @summary Updates multiple customers
|
|
239
|
+
* @param {UpdateCustomerRequest} updateCustomerRequest
|
|
240
|
+
* @param {*} [options] Override http request option.
|
|
241
|
+
* @throws {RequiredError}
|
|
242
|
+
*/
|
|
243
|
+
updateCustomers: async (updateCustomerRequest, options = {}) => {
|
|
244
|
+
// verify required parameter 'updateCustomerRequest' is not null or undefined
|
|
245
|
+
(0, common_1.assertParamExists)('updateCustomers', 'updateCustomerRequest', updateCustomerRequest);
|
|
246
|
+
const localVarPath = `/v1/customers`;
|
|
247
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
248
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
249
|
+
let baseOptions;
|
|
250
|
+
if (configuration) {
|
|
251
|
+
baseOptions = configuration.baseOptions;
|
|
252
|
+
}
|
|
253
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
|
|
254
|
+
const localVarHeaderParameter = {};
|
|
255
|
+
const localVarQueryParameter = {};
|
|
256
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
257
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
258
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
259
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
260
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateCustomerRequest, localVarRequestOptions, configuration);
|
|
261
|
+
return {
|
|
262
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
263
|
+
options: localVarRequestOptions,
|
|
264
|
+
};
|
|
265
|
+
},
|
|
45
266
|
};
|
|
46
267
|
};
|
|
47
268
|
exports.Scout9ApiAxiosParamCreator = Scout9ApiAxiosParamCreator;
|
|
@@ -54,8 +275,8 @@ const Scout9ApiFp = function (configuration) {
|
|
|
54
275
|
return {
|
|
55
276
|
/**
|
|
56
277
|
*
|
|
57
|
-
* @summary Creates a
|
|
58
|
-
* @param {
|
|
278
|
+
* @summary Creates a new customer
|
|
279
|
+
* @param {CreateCustomerRequest} createCustomerRequest
|
|
59
280
|
* @param {*} [options] Override http request option.
|
|
60
281
|
* @throws {RequiredError}
|
|
61
282
|
*/
|
|
@@ -63,9 +284,176 @@ const Scout9ApiFp = function (configuration) {
|
|
|
63
284
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createCustomer(createCustomerRequest, options);
|
|
64
285
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
65
286
|
},
|
|
287
|
+
/**
|
|
288
|
+
*
|
|
289
|
+
* @summary Creates new customers
|
|
290
|
+
* @param {CreateCustomersRequest} createCustomersRequest
|
|
291
|
+
* @param {*} [options] Override http request option.
|
|
292
|
+
* @throws {RequiredError}
|
|
293
|
+
*/
|
|
294
|
+
async createCustomers(createCustomersRequest, options) {
|
|
295
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createCustomers(createCustomersRequest, options);
|
|
296
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
297
|
+
},
|
|
298
|
+
/**
|
|
299
|
+
*
|
|
300
|
+
* @summary Deletes a customer
|
|
301
|
+
* @param {string} id Customer ID to delete customer
|
|
302
|
+
* @param {*} [options] Override http request option.
|
|
303
|
+
* @throws {RequiredError}
|
|
304
|
+
*/
|
|
305
|
+
async deleteCustomer(id, options) {
|
|
306
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteCustomer(id, options);
|
|
307
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
308
|
+
},
|
|
309
|
+
/**
|
|
310
|
+
*
|
|
311
|
+
* @summary Deletes multiple customers
|
|
312
|
+
* @param {string} id Customer IDs to delete multiple customer
|
|
313
|
+
* @param {*} [options] Override http request option.
|
|
314
|
+
* @throws {RequiredError}
|
|
315
|
+
*/
|
|
316
|
+
async deleteCustomers(id, options) {
|
|
317
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteCustomers(id, options);
|
|
318
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
319
|
+
},
|
|
320
|
+
/**
|
|
321
|
+
*
|
|
322
|
+
* @summary Gets a customer
|
|
323
|
+
* @param {string} id Customer ID to get customer
|
|
324
|
+
* @param {*} [options] Override http request option.
|
|
325
|
+
* @throws {RequiredError}
|
|
326
|
+
*/
|
|
327
|
+
async getCustomer(id, options) {
|
|
328
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getCustomer(id, options);
|
|
329
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
330
|
+
},
|
|
331
|
+
/**
|
|
332
|
+
*
|
|
333
|
+
* @summary Gets all or specific set of customers
|
|
334
|
+
* @param {string} [id] Optional get specific customers
|
|
335
|
+
* @param {*} [options] Override http request option.
|
|
336
|
+
* @throws {RequiredError}
|
|
337
|
+
*/
|
|
338
|
+
async getCustomers(id, options) {
|
|
339
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getCustomers(id, options);
|
|
340
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
341
|
+
},
|
|
342
|
+
/**
|
|
343
|
+
*
|
|
344
|
+
* @summary Updates a customer
|
|
345
|
+
* @param {UpdateCustomerRequest} updateCustomerRequest
|
|
346
|
+
* @param {*} [options] Override http request option.
|
|
347
|
+
* @throws {RequiredError}
|
|
348
|
+
*/
|
|
349
|
+
async updateCustomer(updateCustomerRequest, options) {
|
|
350
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateCustomer(updateCustomerRequest, options);
|
|
351
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
352
|
+
},
|
|
353
|
+
/**
|
|
354
|
+
*
|
|
355
|
+
* @summary Updates multiple customers
|
|
356
|
+
* @param {UpdateCustomerRequest} updateCustomerRequest
|
|
357
|
+
* @param {*} [options] Override http request option.
|
|
358
|
+
* @throws {RequiredError}
|
|
359
|
+
*/
|
|
360
|
+
async updateCustomers(updateCustomerRequest, options) {
|
|
361
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateCustomers(updateCustomerRequest, options);
|
|
362
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
363
|
+
},
|
|
66
364
|
};
|
|
67
365
|
};
|
|
68
366
|
exports.Scout9ApiFp = Scout9ApiFp;
|
|
367
|
+
/**
|
|
368
|
+
* Scout9Api - factory interface
|
|
369
|
+
* @export
|
|
370
|
+
*/
|
|
371
|
+
const Scout9ApiFactory = function (configuration, basePath, axios) {
|
|
372
|
+
const localVarFp = (0, exports.Scout9ApiFp)(configuration);
|
|
373
|
+
return {
|
|
374
|
+
/**
|
|
375
|
+
*
|
|
376
|
+
* @summary Creates a new customer
|
|
377
|
+
* @param {CreateCustomerRequest} createCustomerRequest
|
|
378
|
+
* @param {*} [options] Override http request option.
|
|
379
|
+
* @throws {RequiredError}
|
|
380
|
+
*/
|
|
381
|
+
createCustomer(createCustomerRequest, options) {
|
|
382
|
+
return localVarFp.createCustomer(createCustomerRequest, options).then((request) => request(axios, basePath));
|
|
383
|
+
},
|
|
384
|
+
/**
|
|
385
|
+
*
|
|
386
|
+
* @summary Creates new customers
|
|
387
|
+
* @param {CreateCustomersRequest} createCustomersRequest
|
|
388
|
+
* @param {*} [options] Override http request option.
|
|
389
|
+
* @throws {RequiredError}
|
|
390
|
+
*/
|
|
391
|
+
createCustomers(createCustomersRequest, options) {
|
|
392
|
+
return localVarFp.createCustomers(createCustomersRequest, options).then((request) => request(axios, basePath));
|
|
393
|
+
},
|
|
394
|
+
/**
|
|
395
|
+
*
|
|
396
|
+
* @summary Deletes a customer
|
|
397
|
+
* @param {string} id Customer ID to delete customer
|
|
398
|
+
* @param {*} [options] Override http request option.
|
|
399
|
+
* @throws {RequiredError}
|
|
400
|
+
*/
|
|
401
|
+
deleteCustomer(id, options) {
|
|
402
|
+
return localVarFp.deleteCustomer(id, options).then((request) => request(axios, basePath));
|
|
403
|
+
},
|
|
404
|
+
/**
|
|
405
|
+
*
|
|
406
|
+
* @summary Deletes multiple customers
|
|
407
|
+
* @param {string} id Customer IDs to delete multiple customer
|
|
408
|
+
* @param {*} [options] Override http request option.
|
|
409
|
+
* @throws {RequiredError}
|
|
410
|
+
*/
|
|
411
|
+
deleteCustomers(id, options) {
|
|
412
|
+
return localVarFp.deleteCustomers(id, options).then((request) => request(axios, basePath));
|
|
413
|
+
},
|
|
414
|
+
/**
|
|
415
|
+
*
|
|
416
|
+
* @summary Gets a customer
|
|
417
|
+
* @param {string} id Customer ID to get customer
|
|
418
|
+
* @param {*} [options] Override http request option.
|
|
419
|
+
* @throws {RequiredError}
|
|
420
|
+
*/
|
|
421
|
+
getCustomer(id, options) {
|
|
422
|
+
return localVarFp.getCustomer(id, options).then((request) => request(axios, basePath));
|
|
423
|
+
},
|
|
424
|
+
/**
|
|
425
|
+
*
|
|
426
|
+
* @summary Gets all or specific set of customers
|
|
427
|
+
* @param {string} [id] Optional get specific customers
|
|
428
|
+
* @param {*} [options] Override http request option.
|
|
429
|
+
* @throws {RequiredError}
|
|
430
|
+
*/
|
|
431
|
+
getCustomers(id, options) {
|
|
432
|
+
return localVarFp.getCustomers(id, options).then((request) => request(axios, basePath));
|
|
433
|
+
},
|
|
434
|
+
/**
|
|
435
|
+
*
|
|
436
|
+
* @summary Updates a customer
|
|
437
|
+
* @param {UpdateCustomerRequest} updateCustomerRequest
|
|
438
|
+
* @param {*} [options] Override http request option.
|
|
439
|
+
* @throws {RequiredError}
|
|
440
|
+
*/
|
|
441
|
+
updateCustomer(updateCustomerRequest, options) {
|
|
442
|
+
return localVarFp.updateCustomer(updateCustomerRequest, options).then((request) => request(axios, basePath));
|
|
443
|
+
},
|
|
444
|
+
/**
|
|
445
|
+
*
|
|
446
|
+
* @summary Updates multiple customers
|
|
447
|
+
* @param {UpdateCustomerRequest} updateCustomerRequest
|
|
448
|
+
* @param {*} [options] Override http request option.
|
|
449
|
+
* @throws {RequiredError}
|
|
450
|
+
*/
|
|
451
|
+
updateCustomers(updateCustomerRequest, options) {
|
|
452
|
+
return localVarFp.updateCustomers(updateCustomerRequest, options).then((request) => request(axios, basePath));
|
|
453
|
+
},
|
|
454
|
+
};
|
|
455
|
+
};
|
|
456
|
+
exports.Scout9ApiFactory = Scout9ApiFactory;
|
|
69
457
|
/**
|
|
70
458
|
* Scout9Api - object-oriented interface
|
|
71
459
|
* @export
|
|
@@ -75,16 +463,91 @@ exports.Scout9ApiFp = Scout9ApiFp;
|
|
|
75
463
|
class Scout9Api extends base_1.BaseAPI {
|
|
76
464
|
/**
|
|
77
465
|
*
|
|
78
|
-
* @summary Creates a
|
|
79
|
-
* @param {
|
|
466
|
+
* @summary Creates a new customer
|
|
467
|
+
* @param {CreateCustomerRequest} createCustomerRequest
|
|
80
468
|
* @param {*} [options] Override http request option.
|
|
81
469
|
* @throws {RequiredError}
|
|
82
470
|
* @memberof Scout9Api
|
|
83
471
|
*/
|
|
84
472
|
createCustomer(createCustomerRequest, options) {
|
|
85
|
-
return (0, exports.Scout9ApiFp)(this.configuration)
|
|
86
|
-
|
|
87
|
-
|
|
473
|
+
return (0, exports.Scout9ApiFp)(this.configuration).createCustomer(createCustomerRequest, options).then((request) => request(this.axios, this.basePath));
|
|
474
|
+
}
|
|
475
|
+
/**
|
|
476
|
+
*
|
|
477
|
+
* @summary Creates new customers
|
|
478
|
+
* @param {CreateCustomersRequest} createCustomersRequest
|
|
479
|
+
* @param {*} [options] Override http request option.
|
|
480
|
+
* @throws {RequiredError}
|
|
481
|
+
* @memberof Scout9Api
|
|
482
|
+
*/
|
|
483
|
+
createCustomers(createCustomersRequest, options) {
|
|
484
|
+
return (0, exports.Scout9ApiFp)(this.configuration).createCustomers(createCustomersRequest, options).then((request) => request(this.axios, this.basePath));
|
|
485
|
+
}
|
|
486
|
+
/**
|
|
487
|
+
*
|
|
488
|
+
* @summary Deletes a customer
|
|
489
|
+
* @param {string} id Customer ID to delete customer
|
|
490
|
+
* @param {*} [options] Override http request option.
|
|
491
|
+
* @throws {RequiredError}
|
|
492
|
+
* @memberof Scout9Api
|
|
493
|
+
*/
|
|
494
|
+
deleteCustomer(id, options) {
|
|
495
|
+
return (0, exports.Scout9ApiFp)(this.configuration).deleteCustomer(id, options).then((request) => request(this.axios, this.basePath));
|
|
496
|
+
}
|
|
497
|
+
/**
|
|
498
|
+
*
|
|
499
|
+
* @summary Deletes multiple customers
|
|
500
|
+
* @param {string} id Customer IDs to delete multiple customer
|
|
501
|
+
* @param {*} [options] Override http request option.
|
|
502
|
+
* @throws {RequiredError}
|
|
503
|
+
* @memberof Scout9Api
|
|
504
|
+
*/
|
|
505
|
+
deleteCustomers(id, options) {
|
|
506
|
+
return (0, exports.Scout9ApiFp)(this.configuration).deleteCustomers(id, options).then((request) => request(this.axios, this.basePath));
|
|
507
|
+
}
|
|
508
|
+
/**
|
|
509
|
+
*
|
|
510
|
+
* @summary Gets a customer
|
|
511
|
+
* @param {string} id Customer ID to get customer
|
|
512
|
+
* @param {*} [options] Override http request option.
|
|
513
|
+
* @throws {RequiredError}
|
|
514
|
+
* @memberof Scout9Api
|
|
515
|
+
*/
|
|
516
|
+
getCustomer(id, options) {
|
|
517
|
+
return (0, exports.Scout9ApiFp)(this.configuration).getCustomer(id, options).then((request) => request(this.axios, this.basePath));
|
|
518
|
+
}
|
|
519
|
+
/**
|
|
520
|
+
*
|
|
521
|
+
* @summary Gets all or specific set of customers
|
|
522
|
+
* @param {string} [id] Optional get specific customers
|
|
523
|
+
* @param {*} [options] Override http request option.
|
|
524
|
+
* @throws {RequiredError}
|
|
525
|
+
* @memberof Scout9Api
|
|
526
|
+
*/
|
|
527
|
+
getCustomers(id, options) {
|
|
528
|
+
return (0, exports.Scout9ApiFp)(this.configuration).getCustomers(id, options).then((request) => request(this.axios, this.basePath));
|
|
529
|
+
}
|
|
530
|
+
/**
|
|
531
|
+
*
|
|
532
|
+
* @summary Updates a customer
|
|
533
|
+
* @param {UpdateCustomerRequest} updateCustomerRequest
|
|
534
|
+
* @param {*} [options] Override http request option.
|
|
535
|
+
* @throws {RequiredError}
|
|
536
|
+
* @memberof Scout9Api
|
|
537
|
+
*/
|
|
538
|
+
updateCustomer(updateCustomerRequest, options) {
|
|
539
|
+
return (0, exports.Scout9ApiFp)(this.configuration).updateCustomer(updateCustomerRequest, options).then((request) => request(this.axios, this.basePath));
|
|
540
|
+
}
|
|
541
|
+
/**
|
|
542
|
+
*
|
|
543
|
+
* @summary Updates multiple customers
|
|
544
|
+
* @param {UpdateCustomerRequest} updateCustomerRequest
|
|
545
|
+
* @param {*} [options] Override http request option.
|
|
546
|
+
* @throws {RequiredError}
|
|
547
|
+
* @memberof Scout9Api
|
|
548
|
+
*/
|
|
549
|
+
updateCustomers(updateCustomerRequest, options) {
|
|
550
|
+
return (0, exports.Scout9ApiFp)(this.configuration).updateCustomers(updateCustomerRequest, options).then((request) => request(this.axios, this.basePath));
|
|
88
551
|
}
|
|
89
552
|
}
|
|
90
553
|
exports.Scout9Api = Scout9Api;
|
package/build/base.d.ts
CHANGED
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Scout9 API
|
|
3
|
+
* APIs for managing Scout9 users and conversations
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
1
12
|
import type { Configuration } from './configuration';
|
|
2
13
|
import type { AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
3
14
|
export declare const BASE_PATH: string;
|
package/build/base.js
CHANGED
|
@@ -1,4 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Scout9 API
|
|
6
|
+
* APIs for managing Scout9 users and conversations
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
2
15
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
16
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
17
|
};
|
|
@@ -35,6 +48,7 @@ class BaseAPI {
|
|
|
35
48
|
}
|
|
36
49
|
}
|
|
37
50
|
exports.BaseAPI = BaseAPI;
|
|
51
|
+
;
|
|
38
52
|
/**
|
|
39
53
|
*
|
|
40
54
|
* @export
|
package/build/common.d.ts
CHANGED
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Scout9 API
|
|
3
|
+
* APIs for managing Scout9 users and conversations
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
1
12
|
import type { Configuration } from "./configuration";
|
|
2
13
|
import type { RequestArgs } from "./base";
|
|
3
14
|
import type { AxiosInstance, AxiosResponse } from 'axios';
|
package/build/common.js
CHANGED
|
@@ -1,4 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Scout9 API
|
|
6
|
+
* APIs for managing Scout9 users and conversations
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
2
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
16
|
exports.createRequestFunction = exports.toPathString = exports.serializeDataIfNeeded = exports.setSearchParams = exports.setOAuthToObject = exports.setBearerAuthToObject = exports.setBasicAuthToObject = exports.setApiKeyToObject = exports.assertParamExists = exports.DUMMY_BASE_URL = void 0;
|
|
4
17
|
const base_1 = require("./base");
|
package/build/configuration.d.ts
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Scout9 API
|
|
3
|
+
* APIs for managing Scout9 users and conversations
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
1
12
|
export interface ConfigurationParameters {
|
|
2
13
|
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
|
3
|
-
organization?: string;
|
|
4
14
|
username?: string;
|
|
5
15
|
password?: string;
|
|
6
16
|
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
@@ -15,13 +25,6 @@ export declare class Configuration {
|
|
|
15
25
|
* @memberof Configuration
|
|
16
26
|
*/
|
|
17
27
|
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
|
18
|
-
/**
|
|
19
|
-
* Scout9 organization id
|
|
20
|
-
*
|
|
21
|
-
* @type {string}
|
|
22
|
-
* @memberof Configuration
|
|
23
|
-
*/
|
|
24
|
-
organization?: string;
|
|
25
28
|
/**
|
|
26
29
|
* parameter for basic security
|
|
27
30
|
*
|
|
@@ -65,10 +68,6 @@ export declare class Configuration {
|
|
|
65
68
|
* @type {new () => FormData}
|
|
66
69
|
*/
|
|
67
70
|
formDataCtor?: new () => any;
|
|
68
|
-
/**
|
|
69
|
-
* The version of the Scout9 API that this client library version is
|
|
70
|
-
*/
|
|
71
|
-
apiVersion?: string;
|
|
72
71
|
constructor(param?: ConfigurationParameters);
|
|
73
72
|
/**
|
|
74
73
|
* Check if the given MIME is a JSON MIME.
|