ob-bms-sdk 0.0.1
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/api/.openapi-generator/FILES +8 -0
- package/api/.openapi-generator/VERSION +1 -0
- package/api/.openapi-generator-ignore +23 -0
- package/api/api.ts +776 -0
- package/api/base.ts +72 -0
- package/api/common.ts +150 -0
- package/api/configuration.ts +101 -0
- package/api/git_push.sh +57 -0
- package/api/index.ts +18 -0
- package/dist/api/api.d.ts +538 -0
- package/dist/api/api.js +431 -0
- package/dist/api/base.d.ts +54 -0
- package/dist/api/base.js +62 -0
- package/dist/api/common.d.ts +65 -0
- package/dist/api/common.js +160 -0
- package/dist/api/configuration.d.ts +83 -0
- package/dist/api/configuration.js +42 -0
- package/dist/api/index.d.ts +13 -0
- package/dist/api/index.js +31 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +5 -0
- package/index.ts +5 -0
- package/openapitools.json +7 -0
- package/package.json +7 -0
- package/tsconfig.json +21 -0
package/dist/api/api.js
ADDED
|
@@ -0,0 +1,431 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* ob-bms
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
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 __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
16
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
17
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
18
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
19
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
20
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
21
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
25
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
26
|
+
};
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = void 0;
|
|
29
|
+
const axios_1 = __importDefault(require("axios"));
|
|
30
|
+
// Some imports not used depending on template conditions
|
|
31
|
+
// @ts-ignore
|
|
32
|
+
const common_1 = require("./common");
|
|
33
|
+
// @ts-ignore
|
|
34
|
+
const base_1 = require("./base");
|
|
35
|
+
/**
|
|
36
|
+
* DefaultApi - axios parameter creator
|
|
37
|
+
* @export
|
|
38
|
+
*/
|
|
39
|
+
const DefaultApiAxiosParamCreator = function (configuration) {
|
|
40
|
+
return {
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @param {CreateFSMembersBody} createFSMembersBody
|
|
44
|
+
* @param {*} [options] Override http request option.
|
|
45
|
+
* @throws {RequiredError}
|
|
46
|
+
*/
|
|
47
|
+
create: (createFSMembersBody, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
48
|
+
// verify required parameter 'createFSMembersBody' is not null or undefined
|
|
49
|
+
(0, common_1.assertParamExists)('create', 'createFSMembersBody', createFSMembersBody);
|
|
50
|
+
const localVarPath = `/integrations/fs/members`;
|
|
51
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
52
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
53
|
+
let baseOptions;
|
|
54
|
+
if (configuration) {
|
|
55
|
+
baseOptions = configuration.baseOptions;
|
|
56
|
+
}
|
|
57
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
58
|
+
const localVarHeaderParameter = {};
|
|
59
|
+
const localVarQueryParameter = {};
|
|
60
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
61
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
62
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
63
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
64
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createFSMembersBody, localVarRequestOptions, configuration);
|
|
65
|
+
return {
|
|
66
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
67
|
+
options: localVarRequestOptions,
|
|
68
|
+
};
|
|
69
|
+
}),
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @param {any} body
|
|
73
|
+
* @param {*} [options] Override http request option.
|
|
74
|
+
* @throws {RequiredError}
|
|
75
|
+
*/
|
|
76
|
+
create_1: (body, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
77
|
+
// verify required parameter 'body' is not null or undefined
|
|
78
|
+
(0, common_1.assertParamExists)('create_1', 'body', body);
|
|
79
|
+
const localVarPath = `/integrations/fs/webhook`;
|
|
80
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
81
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
82
|
+
let baseOptions;
|
|
83
|
+
if (configuration) {
|
|
84
|
+
baseOptions = configuration.baseOptions;
|
|
85
|
+
}
|
|
86
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
87
|
+
const localVarHeaderParameter = {};
|
|
88
|
+
const localVarQueryParameter = {};
|
|
89
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
90
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
91
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
92
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
93
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
94
|
+
return {
|
|
95
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
96
|
+
options: localVarRequestOptions,
|
|
97
|
+
};
|
|
98
|
+
}),
|
|
99
|
+
/**
|
|
100
|
+
*
|
|
101
|
+
* @param {CreateVisitorBody} createVisitorBody
|
|
102
|
+
* @param {*} [options] Override http request option.
|
|
103
|
+
* @throws {RequiredError}
|
|
104
|
+
*/
|
|
105
|
+
create_2: (createVisitorBody, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
106
|
+
// verify required parameter 'createVisitorBody' is not null or undefined
|
|
107
|
+
(0, common_1.assertParamExists)('create_2', 'createVisitorBody', createVisitorBody);
|
|
108
|
+
const localVarPath = `/visitors`;
|
|
109
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
110
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
111
|
+
let baseOptions;
|
|
112
|
+
if (configuration) {
|
|
113
|
+
baseOptions = configuration.baseOptions;
|
|
114
|
+
}
|
|
115
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
116
|
+
const localVarHeaderParameter = {};
|
|
117
|
+
const localVarQueryParameter = {};
|
|
118
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
119
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
120
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
121
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
122
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createVisitorBody, localVarRequestOptions, configuration);
|
|
123
|
+
return {
|
|
124
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
125
|
+
options: localVarRequestOptions,
|
|
126
|
+
};
|
|
127
|
+
}),
|
|
128
|
+
/**
|
|
129
|
+
*
|
|
130
|
+
* @param {DestroyFSMembers} destroyFSMembers
|
|
131
|
+
* @param {*} [options] Override http request option.
|
|
132
|
+
* @throws {RequiredError}
|
|
133
|
+
*/
|
|
134
|
+
destroy: (destroyFSMembers, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
135
|
+
// verify required parameter 'destroyFSMembers' is not null or undefined
|
|
136
|
+
(0, common_1.assertParamExists)('destroy', 'destroyFSMembers', destroyFSMembers);
|
|
137
|
+
const localVarPath = `/integrations/fs/members`;
|
|
138
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
139
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
140
|
+
let baseOptions;
|
|
141
|
+
if (configuration) {
|
|
142
|
+
baseOptions = configuration.baseOptions;
|
|
143
|
+
}
|
|
144
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
145
|
+
const localVarHeaderParameter = {};
|
|
146
|
+
const localVarQueryParameter = {};
|
|
147
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
148
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
149
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
150
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
151
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(destroyFSMembers, localVarRequestOptions, configuration);
|
|
152
|
+
return {
|
|
153
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
154
|
+
options: localVarRequestOptions,
|
|
155
|
+
};
|
|
156
|
+
}),
|
|
157
|
+
/**
|
|
158
|
+
*
|
|
159
|
+
* @param {string} id
|
|
160
|
+
* @param {*} [options] Override http request option.
|
|
161
|
+
* @throws {RequiredError}
|
|
162
|
+
*/
|
|
163
|
+
show: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
164
|
+
// verify required parameter 'id' is not null or undefined
|
|
165
|
+
(0, common_1.assertParamExists)('show', 'id', id);
|
|
166
|
+
const localVarPath = `/visitors/{id}`
|
|
167
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
168
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
169
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
170
|
+
let baseOptions;
|
|
171
|
+
if (configuration) {
|
|
172
|
+
baseOptions = configuration.baseOptions;
|
|
173
|
+
}
|
|
174
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
175
|
+
const localVarHeaderParameter = {};
|
|
176
|
+
const localVarQueryParameter = {};
|
|
177
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
178
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
179
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
180
|
+
return {
|
|
181
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
182
|
+
options: localVarRequestOptions,
|
|
183
|
+
};
|
|
184
|
+
}),
|
|
185
|
+
/**
|
|
186
|
+
*
|
|
187
|
+
* @param {SyncBody} syncBody
|
|
188
|
+
* @param {*} [options] Override http request option.
|
|
189
|
+
* @throws {RequiredError}
|
|
190
|
+
*/
|
|
191
|
+
sync: (syncBody, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
192
|
+
// verify required parameter 'syncBody' is not null or undefined
|
|
193
|
+
(0, common_1.assertParamExists)('sync', 'syncBody', syncBody);
|
|
194
|
+
const localVarPath = `/integrations/fs/job/sync`;
|
|
195
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
196
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
197
|
+
let baseOptions;
|
|
198
|
+
if (configuration) {
|
|
199
|
+
baseOptions = configuration.baseOptions;
|
|
200
|
+
}
|
|
201
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
202
|
+
const localVarHeaderParameter = {};
|
|
203
|
+
const localVarQueryParameter = {};
|
|
204
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
205
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
206
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
207
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
208
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(syncBody, localVarRequestOptions, configuration);
|
|
209
|
+
return {
|
|
210
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
211
|
+
options: localVarRequestOptions,
|
|
212
|
+
};
|
|
213
|
+
}),
|
|
214
|
+
};
|
|
215
|
+
};
|
|
216
|
+
exports.DefaultApiAxiosParamCreator = DefaultApiAxiosParamCreator;
|
|
217
|
+
/**
|
|
218
|
+
* DefaultApi - functional programming interface
|
|
219
|
+
* @export
|
|
220
|
+
*/
|
|
221
|
+
const DefaultApiFp = function (configuration) {
|
|
222
|
+
const localVarAxiosParamCreator = (0, exports.DefaultApiAxiosParamCreator)(configuration);
|
|
223
|
+
return {
|
|
224
|
+
/**
|
|
225
|
+
*
|
|
226
|
+
* @param {CreateFSMembersBody} createFSMembersBody
|
|
227
|
+
* @param {*} [options] Override http request option.
|
|
228
|
+
* @throws {RequiredError}
|
|
229
|
+
*/
|
|
230
|
+
create(createFSMembersBody, options) {
|
|
231
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
232
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.create(createFSMembersBody, options);
|
|
233
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
234
|
+
});
|
|
235
|
+
},
|
|
236
|
+
/**
|
|
237
|
+
*
|
|
238
|
+
* @param {any} body
|
|
239
|
+
* @param {*} [options] Override http request option.
|
|
240
|
+
* @throws {RequiredError}
|
|
241
|
+
*/
|
|
242
|
+
create_1(body, options) {
|
|
243
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
244
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.create_1(body, options);
|
|
245
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
246
|
+
});
|
|
247
|
+
},
|
|
248
|
+
/**
|
|
249
|
+
*
|
|
250
|
+
* @param {CreateVisitorBody} createVisitorBody
|
|
251
|
+
* @param {*} [options] Override http request option.
|
|
252
|
+
* @throws {RequiredError}
|
|
253
|
+
*/
|
|
254
|
+
create_2(createVisitorBody, options) {
|
|
255
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
256
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.create_2(createVisitorBody, options);
|
|
257
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
258
|
+
});
|
|
259
|
+
},
|
|
260
|
+
/**
|
|
261
|
+
*
|
|
262
|
+
* @param {DestroyFSMembers} destroyFSMembers
|
|
263
|
+
* @param {*} [options] Override http request option.
|
|
264
|
+
* @throws {RequiredError}
|
|
265
|
+
*/
|
|
266
|
+
destroy(destroyFSMembers, options) {
|
|
267
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
268
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.destroy(destroyFSMembers, options);
|
|
269
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
270
|
+
});
|
|
271
|
+
},
|
|
272
|
+
/**
|
|
273
|
+
*
|
|
274
|
+
* @param {string} id
|
|
275
|
+
* @param {*} [options] Override http request option.
|
|
276
|
+
* @throws {RequiredError}
|
|
277
|
+
*/
|
|
278
|
+
show(id, options) {
|
|
279
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
280
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.show(id, options);
|
|
281
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
282
|
+
});
|
|
283
|
+
},
|
|
284
|
+
/**
|
|
285
|
+
*
|
|
286
|
+
* @param {SyncBody} syncBody
|
|
287
|
+
* @param {*} [options] Override http request option.
|
|
288
|
+
* @throws {RequiredError}
|
|
289
|
+
*/
|
|
290
|
+
sync(syncBody, options) {
|
|
291
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
292
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.sync(syncBody, options);
|
|
293
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
294
|
+
});
|
|
295
|
+
},
|
|
296
|
+
};
|
|
297
|
+
};
|
|
298
|
+
exports.DefaultApiFp = DefaultApiFp;
|
|
299
|
+
/**
|
|
300
|
+
* DefaultApi - factory interface
|
|
301
|
+
* @export
|
|
302
|
+
*/
|
|
303
|
+
const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
304
|
+
const localVarFp = (0, exports.DefaultApiFp)(configuration);
|
|
305
|
+
return {
|
|
306
|
+
/**
|
|
307
|
+
*
|
|
308
|
+
* @param {CreateFSMembersBody} createFSMembersBody
|
|
309
|
+
* @param {*} [options] Override http request option.
|
|
310
|
+
* @throws {RequiredError}
|
|
311
|
+
*/
|
|
312
|
+
create(createFSMembersBody, options) {
|
|
313
|
+
return localVarFp.create(createFSMembersBody, options).then((request) => request(axios, basePath));
|
|
314
|
+
},
|
|
315
|
+
/**
|
|
316
|
+
*
|
|
317
|
+
* @param {any} body
|
|
318
|
+
* @param {*} [options] Override http request option.
|
|
319
|
+
* @throws {RequiredError}
|
|
320
|
+
*/
|
|
321
|
+
create_1(body, options) {
|
|
322
|
+
return localVarFp.create_1(body, options).then((request) => request(axios, basePath));
|
|
323
|
+
},
|
|
324
|
+
/**
|
|
325
|
+
*
|
|
326
|
+
* @param {CreateVisitorBody} createVisitorBody
|
|
327
|
+
* @param {*} [options] Override http request option.
|
|
328
|
+
* @throws {RequiredError}
|
|
329
|
+
*/
|
|
330
|
+
create_2(createVisitorBody, options) {
|
|
331
|
+
return localVarFp.create_2(createVisitorBody, options).then((request) => request(axios, basePath));
|
|
332
|
+
},
|
|
333
|
+
/**
|
|
334
|
+
*
|
|
335
|
+
* @param {DestroyFSMembers} destroyFSMembers
|
|
336
|
+
* @param {*} [options] Override http request option.
|
|
337
|
+
* @throws {RequiredError}
|
|
338
|
+
*/
|
|
339
|
+
destroy(destroyFSMembers, options) {
|
|
340
|
+
return localVarFp.destroy(destroyFSMembers, options).then((request) => request(axios, basePath));
|
|
341
|
+
},
|
|
342
|
+
/**
|
|
343
|
+
*
|
|
344
|
+
* @param {string} id
|
|
345
|
+
* @param {*} [options] Override http request option.
|
|
346
|
+
* @throws {RequiredError}
|
|
347
|
+
*/
|
|
348
|
+
show(id, options) {
|
|
349
|
+
return localVarFp.show(id, options).then((request) => request(axios, basePath));
|
|
350
|
+
},
|
|
351
|
+
/**
|
|
352
|
+
*
|
|
353
|
+
* @param {SyncBody} syncBody
|
|
354
|
+
* @param {*} [options] Override http request option.
|
|
355
|
+
* @throws {RequiredError}
|
|
356
|
+
*/
|
|
357
|
+
sync(syncBody, options) {
|
|
358
|
+
return localVarFp.sync(syncBody, options).then((request) => request(axios, basePath));
|
|
359
|
+
},
|
|
360
|
+
};
|
|
361
|
+
};
|
|
362
|
+
exports.DefaultApiFactory = DefaultApiFactory;
|
|
363
|
+
/**
|
|
364
|
+
* DefaultApi - object-oriented interface
|
|
365
|
+
* @export
|
|
366
|
+
* @class DefaultApi
|
|
367
|
+
* @extends {BaseAPI}
|
|
368
|
+
*/
|
|
369
|
+
class DefaultApi extends base_1.BaseAPI {
|
|
370
|
+
/**
|
|
371
|
+
*
|
|
372
|
+
* @param {CreateFSMembersBody} createFSMembersBody
|
|
373
|
+
* @param {*} [options] Override http request option.
|
|
374
|
+
* @throws {RequiredError}
|
|
375
|
+
* @memberof DefaultApi
|
|
376
|
+
*/
|
|
377
|
+
create(createFSMembersBody, options) {
|
|
378
|
+
return (0, exports.DefaultApiFp)(this.configuration).create(createFSMembersBody, options).then((request) => request(this.axios, this.basePath));
|
|
379
|
+
}
|
|
380
|
+
/**
|
|
381
|
+
*
|
|
382
|
+
* @param {any} body
|
|
383
|
+
* @param {*} [options] Override http request option.
|
|
384
|
+
* @throws {RequiredError}
|
|
385
|
+
* @memberof DefaultApi
|
|
386
|
+
*/
|
|
387
|
+
create_1(body, options) {
|
|
388
|
+
return (0, exports.DefaultApiFp)(this.configuration).create_1(body, options).then((request) => request(this.axios, this.basePath));
|
|
389
|
+
}
|
|
390
|
+
/**
|
|
391
|
+
*
|
|
392
|
+
* @param {CreateVisitorBody} createVisitorBody
|
|
393
|
+
* @param {*} [options] Override http request option.
|
|
394
|
+
* @throws {RequiredError}
|
|
395
|
+
* @memberof DefaultApi
|
|
396
|
+
*/
|
|
397
|
+
create_2(createVisitorBody, options) {
|
|
398
|
+
return (0, exports.DefaultApiFp)(this.configuration).create_2(createVisitorBody, options).then((request) => request(this.axios, this.basePath));
|
|
399
|
+
}
|
|
400
|
+
/**
|
|
401
|
+
*
|
|
402
|
+
* @param {DestroyFSMembers} destroyFSMembers
|
|
403
|
+
* @param {*} [options] Override http request option.
|
|
404
|
+
* @throws {RequiredError}
|
|
405
|
+
* @memberof DefaultApi
|
|
406
|
+
*/
|
|
407
|
+
destroy(destroyFSMembers, options) {
|
|
408
|
+
return (0, exports.DefaultApiFp)(this.configuration).destroy(destroyFSMembers, options).then((request) => request(this.axios, this.basePath));
|
|
409
|
+
}
|
|
410
|
+
/**
|
|
411
|
+
*
|
|
412
|
+
* @param {string} id
|
|
413
|
+
* @param {*} [options] Override http request option.
|
|
414
|
+
* @throws {RequiredError}
|
|
415
|
+
* @memberof DefaultApi
|
|
416
|
+
*/
|
|
417
|
+
show(id, options) {
|
|
418
|
+
return (0, exports.DefaultApiFp)(this.configuration).show(id, options).then((request) => request(this.axios, this.basePath));
|
|
419
|
+
}
|
|
420
|
+
/**
|
|
421
|
+
*
|
|
422
|
+
* @param {SyncBody} syncBody
|
|
423
|
+
* @param {*} [options] Override http request option.
|
|
424
|
+
* @throws {RequiredError}
|
|
425
|
+
* @memberof DefaultApi
|
|
426
|
+
*/
|
|
427
|
+
sync(syncBody, options) {
|
|
428
|
+
return (0, exports.DefaultApiFp)(this.configuration).sync(syncBody, options).then((request) => request(this.axios, this.basePath));
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
exports.DefaultApi = DefaultApi;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ob-bms
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
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/dist/api/base.js
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* ob-bms
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
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 = "http://localhost".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
|
+
constructor(configuration, basePath = exports.BASE_PATH, axios = axios_1.default) {
|
|
39
|
+
this.basePath = basePath;
|
|
40
|
+
this.axios = axios;
|
|
41
|
+
if (configuration) {
|
|
42
|
+
this.configuration = configuration;
|
|
43
|
+
this.basePath = configuration.basePath || this.basePath;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
exports.BaseAPI = BaseAPI;
|
|
48
|
+
;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @export
|
|
52
|
+
* @class RequiredError
|
|
53
|
+
* @extends {Error}
|
|
54
|
+
*/
|
|
55
|
+
class RequiredError extends Error {
|
|
56
|
+
constructor(field, msg) {
|
|
57
|
+
super(msg);
|
|
58
|
+
this.field = field;
|
|
59
|
+
this.name = "RequiredError";
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
exports.RequiredError = RequiredError;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ob-bms
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
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 { RequestArgs } from "./base";
|
|
14
|
+
import type { AxiosInstance, AxiosResponse } from 'axios';
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
*/
|
|
19
|
+
export declare const DUMMY_BASE_URL = "https://example.com";
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @throws {RequiredError}
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
export declare const assertParamExists: (functionName: string, paramName: string, paramValue: unknown) => void;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @export
|
|
29
|
+
*/
|
|
30
|
+
export declare const setApiKeyToObject: (object: any, keyParamName: string, configuration?: Configuration) => Promise<void>;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
*/
|
|
35
|
+
export declare const setBasicAuthToObject: (object: any, configuration?: Configuration) => void;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
export declare const setBearerAuthToObject: (object: any, configuration?: Configuration) => Promise<void>;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @export
|
|
44
|
+
*/
|
|
45
|
+
export declare const setOAuthToObject: (object: any, name: string, scopes: string[], configuration?: Configuration) => Promise<void>;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @export
|
|
49
|
+
*/
|
|
50
|
+
export declare const setSearchParams: (url: URL, ...objects: any[]) => void;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @export
|
|
54
|
+
*/
|
|
55
|
+
export declare const serializeDataIfNeeded: (value: any, requestOptions: any, configuration?: Configuration) => any;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @export
|
|
59
|
+
*/
|
|
60
|
+
export declare const toPathString: (url: URL) => string;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @export
|
|
64
|
+
*/
|
|
65
|
+
export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T, any>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
|