@scout9/admin 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +7 -2
- package/src/api.ts +2580 -262
- package/tsconfig.tsbuildinfo +1 -1
- package/build/api-openai.d.ts +0 -2992
- package/build/api-openai.js +0 -1968
- package/build/api.d.ts +0 -1162
- package/build/api.js +0 -553
- package/build/base.d.ts +0 -54
- package/build/base.js +0 -66
- package/build/common.d.ts +0 -65
- package/build/common.js +0 -145
- package/build/configuration.d.ts +0 -83
- package/build/configuration.js +0 -91
- package/build/index.d.ts +0 -13
- package/build/index.js +0 -31
- package/build/schemas/common/algolia.d.ts +0 -20
- package/build/schemas/common/algolia.js +0 -2
- package/build/schemas/common/contact-map.d.ts +0 -33
- package/build/schemas/common/contact-map.js +0 -2
- package/build/schemas/common/currency.d.ts +0 -1
- package/build/schemas/common/currency.js +0 -2
- package/build/schemas/common/index.d.ts +0 -6
- package/build/schemas/common/index.js +0 -22
- package/build/schemas/common/location.d.ts +0 -5
- package/build/schemas/common/location.js +0 -2
- package/build/schemas/common/task.d.ts +0 -20
- package/build/schemas/common/task.js +0 -2
- package/build/schemas/common/time.d.ts +0 -14
- package/build/schemas/common/time.js +0 -2
- package/build/schemas/common.d.ts +0 -77
- package/build/schemas/common.js +0 -8
- package/build/schemas/conversations/context.d.ts +0 -55
- package/build/schemas/conversations/context.js +0 -2
- package/build/schemas/conversations/conversation.d.ts +0 -53
- package/build/schemas/conversations/conversation.js +0 -2
- package/build/schemas/conversations/index.d.ts +0 -6
- package/build/schemas/conversations/index.js +0 -22
- package/build/schemas/conversations/message.d.ts +0 -62
- package/build/schemas/conversations/message.js +0 -2
- package/build/schemas/conversations/parsed.d.ts +0 -7
- package/build/schemas/conversations/parsed.js +0 -2
- package/build/schemas/conversations/scheduled-conversation.d.ts +0 -31
- package/build/schemas/conversations/scheduled-conversation.js +0 -2
- package/build/schemas/conversations/webhook.d.ts +0 -8
- package/build/schemas/conversations/webhook.js +0 -2
- package/build/schemas/index.d.ts +0 -3
- package/build/schemas/index.js +0 -19
- package/build/schemas/users/businesses/agents/agent.d.ts +0 -76
- package/build/schemas/users/businesses/agents/agent.js +0 -2
- package/build/schemas/users/businesses/agents/auth.d.ts +0 -7
- package/build/schemas/users/businesses/agents/auth.js +0 -2
- package/build/schemas/users/businesses/agents/index.d.ts +0 -2
- package/build/schemas/users/businesses/agents/index.js +0 -18
- package/build/schemas/users/businesses/business-location.d.ts +0 -10
- package/build/schemas/users/businesses/business-location.js +0 -2
- package/build/schemas/users/businesses/business.d.ts +0 -32
- package/build/schemas/users/businesses/business.js +0 -2
- package/build/schemas/users/businesses/context/context-indexed.d.ts +0 -9
- package/build/schemas/users/businesses/context/context-indexed.js +0 -2
- package/build/schemas/users/businesses/context/context-saves.d.ts +0 -12
- package/build/schemas/users/businesses/context/context-saves.js +0 -2
- package/build/schemas/users/businesses/context/context.d.ts +0 -64
- package/build/schemas/users/businesses/context/context.js +0 -2
- package/build/schemas/users/businesses/context/index.d.ts +0 -2
- package/build/schemas/users/businesses/context/index.js +0 -18
- package/build/schemas/users/businesses/index.d.ts +0 -5
- package/build/schemas/users/businesses/index.js +0 -21
- package/build/schemas/users/businesses/notifications.d.ts +0 -7
- package/build/schemas/users/businesses/notifications.js +0 -2
- package/build/schemas/users/businesses/offerings/index.d.ts +0 -2
- package/build/schemas/users/businesses/offerings/index.js +0 -18
- package/build/schemas/users/businesses/offerings/offer-indexed.d.ts +0 -34
- package/build/schemas/users/businesses/offerings/offer-indexed.js +0 -2
- package/build/schemas/users/businesses/offerings/offer.d.ts +0 -29
- package/build/schemas/users/businesses/offerings/offer.js +0 -2
- package/build/schemas/users/businesses/thread.d.ts +0 -44
- package/build/schemas/users/businesses/thread.js +0 -2
- package/build/schemas/users/customers/customer.d.ts +0 -35
- package/build/schemas/users/customers/customer.js +0 -2
- package/build/schemas/users/customers/index.d.ts +0 -1
- package/build/schemas/users/customers/index.js +0 -17
- package/build/schemas/users/index.d.ts +0 -2
- package/build/schemas/users/index.js +0 -18
- package/src/.openapi-generator/FILES +0 -9
- package/src/.openapi-generator/VERSION +0 -1
package/build/api.js
DELETED
|
@@ -1,553 +0,0 @@
|
|
|
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
|
-
*/
|
|
15
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
16
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
17
|
-
};
|
|
18
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.Scout9Api = exports.Scout9ApiFactory = exports.Scout9ApiFp = exports.Scout9ApiAxiosParamCreator = void 0;
|
|
20
|
-
const axios_1 = __importDefault(require("axios"));
|
|
21
|
-
// Some imports not used depending on template conditions
|
|
22
|
-
// @ts-ignore
|
|
23
|
-
const common_1 = require("./common");
|
|
24
|
-
// @ts-ignore
|
|
25
|
-
const base_1 = require("./base");
|
|
26
|
-
/**
|
|
27
|
-
* Scout9Api - axios parameter creator
|
|
28
|
-
* @export
|
|
29
|
-
*/
|
|
30
|
-
const Scout9ApiAxiosParamCreator = function (configuration) {
|
|
31
|
-
return {
|
|
32
|
-
/**
|
|
33
|
-
*
|
|
34
|
-
* @summary Creates a new customer
|
|
35
|
-
* @param {CreateCustomerRequest} createCustomerRequest
|
|
36
|
-
* @param {*} [options] Override http request option.
|
|
37
|
-
* @throws {RequiredError}
|
|
38
|
-
*/
|
|
39
|
-
createCustomer: async (createCustomerRequest, options = {}) => {
|
|
40
|
-
// verify required parameter 'createCustomerRequest' is not null or undefined
|
|
41
|
-
(0, common_1.assertParamExists)('createCustomer', 'createCustomerRequest', createCustomerRequest);
|
|
42
|
-
const localVarPath = `/v1/customer`;
|
|
43
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
44
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
45
|
-
let baseOptions;
|
|
46
|
-
if (configuration) {
|
|
47
|
-
baseOptions = configuration.baseOptions;
|
|
48
|
-
}
|
|
49
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
50
|
-
const localVarHeaderParameter = {};
|
|
51
|
-
const localVarQueryParameter = {};
|
|
52
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
53
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
54
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
55
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
56
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createCustomerRequest, localVarRequestOptions, configuration);
|
|
57
|
-
return {
|
|
58
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
59
|
-
options: localVarRequestOptions,
|
|
60
|
-
};
|
|
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
|
-
},
|
|
266
|
-
};
|
|
267
|
-
};
|
|
268
|
-
exports.Scout9ApiAxiosParamCreator = Scout9ApiAxiosParamCreator;
|
|
269
|
-
/**
|
|
270
|
-
* Scout9Api - functional programming interface
|
|
271
|
-
* @export
|
|
272
|
-
*/
|
|
273
|
-
const Scout9ApiFp = function (configuration) {
|
|
274
|
-
const localVarAxiosParamCreator = (0, exports.Scout9ApiAxiosParamCreator)(configuration);
|
|
275
|
-
return {
|
|
276
|
-
/**
|
|
277
|
-
*
|
|
278
|
-
* @summary Creates a new customer
|
|
279
|
-
* @param {CreateCustomerRequest} createCustomerRequest
|
|
280
|
-
* @param {*} [options] Override http request option.
|
|
281
|
-
* @throws {RequiredError}
|
|
282
|
-
*/
|
|
283
|
-
async createCustomer(createCustomerRequest, options) {
|
|
284
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.createCustomer(createCustomerRequest, options);
|
|
285
|
-
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
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
|
-
},
|
|
364
|
-
};
|
|
365
|
-
};
|
|
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;
|
|
457
|
-
/**
|
|
458
|
-
* Scout9Api - object-oriented interface
|
|
459
|
-
* @export
|
|
460
|
-
* @class Scout9Api
|
|
461
|
-
* @extends {BaseAPI}
|
|
462
|
-
*/
|
|
463
|
-
class Scout9Api extends base_1.BaseAPI {
|
|
464
|
-
/**
|
|
465
|
-
*
|
|
466
|
-
* @summary Creates a new customer
|
|
467
|
-
* @param {CreateCustomerRequest} createCustomerRequest
|
|
468
|
-
* @param {*} [options] Override http request option.
|
|
469
|
-
* @throws {RequiredError}
|
|
470
|
-
* @memberof Scout9Api
|
|
471
|
-
*/
|
|
472
|
-
createCustomer(createCustomerRequest, options) {
|
|
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));
|
|
551
|
-
}
|
|
552
|
-
}
|
|
553
|
-
exports.Scout9Api = Scout9Api;
|
package/build/base.d.ts
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
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
|
-
*/
|
|
12
|
-
import type { Configuration } from './configuration';
|
|
13
|
-
import type { AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
14
|
-
export declare const BASE_PATH: string;
|
|
15
|
-
/**
|
|
16
|
-
*
|
|
17
|
-
* @export
|
|
18
|
-
*/
|
|
19
|
-
export declare const COLLECTION_FORMATS: {
|
|
20
|
-
csv: string;
|
|
21
|
-
ssv: string;
|
|
22
|
-
tsv: string;
|
|
23
|
-
pipes: string;
|
|
24
|
-
};
|
|
25
|
-
/**
|
|
26
|
-
*
|
|
27
|
-
* @export
|
|
28
|
-
* @interface RequestArgs
|
|
29
|
-
*/
|
|
30
|
-
export interface RequestArgs {
|
|
31
|
-
url: string;
|
|
32
|
-
options: AxiosRequestConfig;
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @export
|
|
37
|
-
* @class BaseAPI
|
|
38
|
-
*/
|
|
39
|
-
export declare class BaseAPI {
|
|
40
|
-
protected basePath: string;
|
|
41
|
-
protected axios: AxiosInstance;
|
|
42
|
-
protected configuration: Configuration | undefined;
|
|
43
|
-
constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
*
|
|
47
|
-
* @export
|
|
48
|
-
* @class RequiredError
|
|
49
|
-
* @extends {Error}
|
|
50
|
-
*/
|
|
51
|
-
export declare class RequiredError extends Error {
|
|
52
|
-
field: string;
|
|
53
|
-
constructor(field: string, msg?: string);
|
|
54
|
-
}
|
package/build/base.js
DELETED
|
@@ -1,66 +0,0 @@
|
|
|
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
|
-
*/
|
|
15
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
16
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
17
|
-
};
|
|
18
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.RequiredError = exports.BaseAPI = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0;
|
|
20
|
-
const axios_1 = __importDefault(require("axios"));
|
|
21
|
-
exports.BASE_PATH = "https://us-central1-jumpstart.cloudfunctions.net".replace(/\/+$/, "");
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @export
|
|
25
|
-
*/
|
|
26
|
-
exports.COLLECTION_FORMATS = {
|
|
27
|
-
csv: ",",
|
|
28
|
-
ssv: " ",
|
|
29
|
-
tsv: "\t",
|
|
30
|
-
pipes: "|",
|
|
31
|
-
};
|
|
32
|
-
/**
|
|
33
|
-
*
|
|
34
|
-
* @export
|
|
35
|
-
* @class BaseAPI
|
|
36
|
-
*/
|
|
37
|
-
class BaseAPI {
|
|
38
|
-
basePath;
|
|
39
|
-
axios;
|
|
40
|
-
configuration;
|
|
41
|
-
constructor(configuration, basePath = exports.BASE_PATH, axios = axios_1.default) {
|
|
42
|
-
this.basePath = basePath;
|
|
43
|
-
this.axios = axios;
|
|
44
|
-
if (configuration) {
|
|
45
|
-
this.configuration = configuration;
|
|
46
|
-
this.basePath = configuration.basePath || this.basePath;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
exports.BaseAPI = BaseAPI;
|
|
51
|
-
;
|
|
52
|
-
/**
|
|
53
|
-
*
|
|
54
|
-
* @export
|
|
55
|
-
* @class RequiredError
|
|
56
|
-
* @extends {Error}
|
|
57
|
-
*/
|
|
58
|
-
class RequiredError extends Error {
|
|
59
|
-
field;
|
|
60
|
-
constructor(field, msg) {
|
|
61
|
-
super(msg);
|
|
62
|
-
this.field = field;
|
|
63
|
-
this.name = "RequiredError";
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
exports.RequiredError = RequiredError;
|