ob-bms-sdk 0.0.5 → 0.0.7

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.
@@ -0,0 +1,483 @@
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: 0.0.4
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 {any} body
44
+ * @param {*} [options] Override http request option.
45
+ * @throws {RequiredError}
46
+ */
47
+ create: (body, options = {}) => __awaiter(this, void 0, void 0, function* () {
48
+ // verify required parameter 'body' is not null or undefined
49
+ (0, common_1.assertParamExists)('create', 'body', body);
50
+ const localVarPath = `/integrations/fs/webhook`;
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)(body, localVarRequestOptions, configuration);
65
+ return {
66
+ url: (0, common_1.toPathString)(localVarUrlObj),
67
+ options: localVarRequestOptions,
68
+ };
69
+ }),
70
+ /**
71
+ *
72
+ * @param {CreateFSMembersBody} createFSMembersBody
73
+ * @param {*} [options] Override http request option.
74
+ * @throws {RequiredError}
75
+ */
76
+ integrationsFsMembersCreate: (createFSMembersBody, options = {}) => __awaiter(this, void 0, void 0, function* () {
77
+ // verify required parameter 'createFSMembersBody' is not null or undefined
78
+ (0, common_1.assertParamExists)('integrationsFsMembersCreate', 'createFSMembersBody', createFSMembersBody);
79
+ const localVarPath = `/integrations/fs/members`;
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)(createFSMembersBody, localVarRequestOptions, configuration);
94
+ return {
95
+ url: (0, common_1.toPathString)(localVarUrlObj),
96
+ options: localVarRequestOptions,
97
+ };
98
+ }),
99
+ /**
100
+ *
101
+ * @param {DestroyFSMembers} destroyFSMembers
102
+ * @param {*} [options] Override http request option.
103
+ * @throws {RequiredError}
104
+ */
105
+ integrationsFsMembersDelete: (destroyFSMembers, options = {}) => __awaiter(this, void 0, void 0, function* () {
106
+ // verify required parameter 'destroyFSMembers' is not null or undefined
107
+ (0, common_1.assertParamExists)('integrationsFsMembersDelete', 'destroyFSMembers', destroyFSMembers);
108
+ const localVarPath = `/integrations/fs/members`;
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: 'DELETE' }, 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)(destroyFSMembers, localVarRequestOptions, configuration);
123
+ return {
124
+ url: (0, common_1.toPathString)(localVarUrlObj),
125
+ options: localVarRequestOptions,
126
+ };
127
+ }),
128
+ /**
129
+ *
130
+ * @param {*} [options] Override http request option.
131
+ * @throws {RequiredError}
132
+ */
133
+ membersIndex: (options = {}) => __awaiter(this, void 0, void 0, function* () {
134
+ const localVarPath = `/members`;
135
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
136
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
137
+ let baseOptions;
138
+ if (configuration) {
139
+ baseOptions = configuration.baseOptions;
140
+ }
141
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
142
+ const localVarHeaderParameter = {};
143
+ const localVarQueryParameter = {};
144
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
145
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
146
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
147
+ return {
148
+ url: (0, common_1.toPathString)(localVarUrlObj),
149
+ options: localVarRequestOptions,
150
+ };
151
+ }),
152
+ /**
153
+ *
154
+ * @param {SyncBody} syncBody
155
+ * @param {*} [options] Override http request option.
156
+ * @throws {RequiredError}
157
+ */
158
+ sync: (syncBody, options = {}) => __awaiter(this, void 0, void 0, function* () {
159
+ // verify required parameter 'syncBody' is not null or undefined
160
+ (0, common_1.assertParamExists)('sync', 'syncBody', syncBody);
161
+ const localVarPath = `/integrations/fs/job/sync`;
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 = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
169
+ const localVarHeaderParameter = {};
170
+ const localVarQueryParameter = {};
171
+ localVarHeaderParameter['Content-Type'] = 'application/json';
172
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
173
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
174
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
175
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(syncBody, localVarRequestOptions, configuration);
176
+ return {
177
+ url: (0, common_1.toPathString)(localVarUrlObj),
178
+ options: localVarRequestOptions,
179
+ };
180
+ }),
181
+ /**
182
+ *
183
+ * @param {CreateVisitorBody} createVisitorBody
184
+ * @param {*} [options] Override http request option.
185
+ * @throws {RequiredError}
186
+ */
187
+ visitorsCreate: (createVisitorBody, options = {}) => __awaiter(this, void 0, void 0, function* () {
188
+ // verify required parameter 'createVisitorBody' is not null or undefined
189
+ (0, common_1.assertParamExists)('visitorsCreate', 'createVisitorBody', createVisitorBody);
190
+ const localVarPath = `/visitors`;
191
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
192
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
193
+ let baseOptions;
194
+ if (configuration) {
195
+ baseOptions = configuration.baseOptions;
196
+ }
197
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
198
+ const localVarHeaderParameter = {};
199
+ const localVarQueryParameter = {};
200
+ localVarHeaderParameter['Content-Type'] = 'application/json';
201
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
202
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
203
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
204
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createVisitorBody, localVarRequestOptions, configuration);
205
+ return {
206
+ url: (0, common_1.toPathString)(localVarUrlObj),
207
+ options: localVarRequestOptions,
208
+ };
209
+ }),
210
+ /**
211
+ *
212
+ * @param {string} id
213
+ * @param {*} [options] Override http request option.
214
+ * @throws {RequiredError}
215
+ */
216
+ visitorsShow: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
217
+ // verify required parameter 'id' is not null or undefined
218
+ (0, common_1.assertParamExists)('visitorsShow', 'id', id);
219
+ const localVarPath = `/visitors/{id}`
220
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
221
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
222
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
223
+ let baseOptions;
224
+ if (configuration) {
225
+ baseOptions = configuration.baseOptions;
226
+ }
227
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
228
+ const localVarHeaderParameter = {};
229
+ const localVarQueryParameter = {};
230
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
231
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
232
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
233
+ return {
234
+ url: (0, common_1.toPathString)(localVarUrlObj),
235
+ options: localVarRequestOptions,
236
+ };
237
+ }),
238
+ };
239
+ };
240
+ exports.DefaultApiAxiosParamCreator = DefaultApiAxiosParamCreator;
241
+ /**
242
+ * DefaultApi - functional programming interface
243
+ * @export
244
+ */
245
+ const DefaultApiFp = function (configuration) {
246
+ const localVarAxiosParamCreator = (0, exports.DefaultApiAxiosParamCreator)(configuration);
247
+ return {
248
+ /**
249
+ *
250
+ * @param {any} body
251
+ * @param {*} [options] Override http request option.
252
+ * @throws {RequiredError}
253
+ */
254
+ create(body, options) {
255
+ return __awaiter(this, void 0, void 0, function* () {
256
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.create(body, options);
257
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
258
+ });
259
+ },
260
+ /**
261
+ *
262
+ * @param {CreateFSMembersBody} createFSMembersBody
263
+ * @param {*} [options] Override http request option.
264
+ * @throws {RequiredError}
265
+ */
266
+ integrationsFsMembersCreate(createFSMembersBody, options) {
267
+ return __awaiter(this, void 0, void 0, function* () {
268
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.integrationsFsMembersCreate(createFSMembersBody, options);
269
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
270
+ });
271
+ },
272
+ /**
273
+ *
274
+ * @param {DestroyFSMembers} destroyFSMembers
275
+ * @param {*} [options] Override http request option.
276
+ * @throws {RequiredError}
277
+ */
278
+ integrationsFsMembersDelete(destroyFSMembers, options) {
279
+ return __awaiter(this, void 0, void 0, function* () {
280
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.integrationsFsMembersDelete(destroyFSMembers, options);
281
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
282
+ });
283
+ },
284
+ /**
285
+ *
286
+ * @param {*} [options] Override http request option.
287
+ * @throws {RequiredError}
288
+ */
289
+ membersIndex(options) {
290
+ return __awaiter(this, void 0, void 0, function* () {
291
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.membersIndex(options);
292
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
293
+ });
294
+ },
295
+ /**
296
+ *
297
+ * @param {SyncBody} syncBody
298
+ * @param {*} [options] Override http request option.
299
+ * @throws {RequiredError}
300
+ */
301
+ sync(syncBody, options) {
302
+ return __awaiter(this, void 0, void 0, function* () {
303
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.sync(syncBody, options);
304
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
305
+ });
306
+ },
307
+ /**
308
+ *
309
+ * @param {CreateVisitorBody} createVisitorBody
310
+ * @param {*} [options] Override http request option.
311
+ * @throws {RequiredError}
312
+ */
313
+ visitorsCreate(createVisitorBody, options) {
314
+ return __awaiter(this, void 0, void 0, function* () {
315
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.visitorsCreate(createVisitorBody, options);
316
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
317
+ });
318
+ },
319
+ /**
320
+ *
321
+ * @param {string} id
322
+ * @param {*} [options] Override http request option.
323
+ * @throws {RequiredError}
324
+ */
325
+ visitorsShow(id, options) {
326
+ return __awaiter(this, void 0, void 0, function* () {
327
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.visitorsShow(id, options);
328
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
329
+ });
330
+ },
331
+ };
332
+ };
333
+ exports.DefaultApiFp = DefaultApiFp;
334
+ /**
335
+ * DefaultApi - factory interface
336
+ * @export
337
+ */
338
+ const DefaultApiFactory = function (configuration, basePath, axios) {
339
+ const localVarFp = (0, exports.DefaultApiFp)(configuration);
340
+ return {
341
+ /**
342
+ *
343
+ * @param {any} body
344
+ * @param {*} [options] Override http request option.
345
+ * @throws {RequiredError}
346
+ */
347
+ create(body, options) {
348
+ return localVarFp.create(body, options).then((request) => request(axios, basePath));
349
+ },
350
+ /**
351
+ *
352
+ * @param {CreateFSMembersBody} createFSMembersBody
353
+ * @param {*} [options] Override http request option.
354
+ * @throws {RequiredError}
355
+ */
356
+ integrationsFsMembersCreate(createFSMembersBody, options) {
357
+ return localVarFp.integrationsFsMembersCreate(createFSMembersBody, options).then((request) => request(axios, basePath));
358
+ },
359
+ /**
360
+ *
361
+ * @param {DestroyFSMembers} destroyFSMembers
362
+ * @param {*} [options] Override http request option.
363
+ * @throws {RequiredError}
364
+ */
365
+ integrationsFsMembersDelete(destroyFSMembers, options) {
366
+ return localVarFp.integrationsFsMembersDelete(destroyFSMembers, options).then((request) => request(axios, basePath));
367
+ },
368
+ /**
369
+ *
370
+ * @param {*} [options] Override http request option.
371
+ * @throws {RequiredError}
372
+ */
373
+ membersIndex(options) {
374
+ return localVarFp.membersIndex(options).then((request) => request(axios, basePath));
375
+ },
376
+ /**
377
+ *
378
+ * @param {SyncBody} syncBody
379
+ * @param {*} [options] Override http request option.
380
+ * @throws {RequiredError}
381
+ */
382
+ sync(syncBody, options) {
383
+ return localVarFp.sync(syncBody, options).then((request) => request(axios, basePath));
384
+ },
385
+ /**
386
+ *
387
+ * @param {CreateVisitorBody} createVisitorBody
388
+ * @param {*} [options] Override http request option.
389
+ * @throws {RequiredError}
390
+ */
391
+ visitorsCreate(createVisitorBody, options) {
392
+ return localVarFp.visitorsCreate(createVisitorBody, options).then((request) => request(axios, basePath));
393
+ },
394
+ /**
395
+ *
396
+ * @param {string} id
397
+ * @param {*} [options] Override http request option.
398
+ * @throws {RequiredError}
399
+ */
400
+ visitorsShow(id, options) {
401
+ return localVarFp.visitorsShow(id, options).then((request) => request(axios, basePath));
402
+ },
403
+ };
404
+ };
405
+ exports.DefaultApiFactory = DefaultApiFactory;
406
+ /**
407
+ * DefaultApi - object-oriented interface
408
+ * @export
409
+ * @class DefaultApi
410
+ * @extends {BaseAPI}
411
+ */
412
+ class DefaultApi extends base_1.BaseAPI {
413
+ /**
414
+ *
415
+ * @param {any} body
416
+ * @param {*} [options] Override http request option.
417
+ * @throws {RequiredError}
418
+ * @memberof DefaultApi
419
+ */
420
+ create(body, options) {
421
+ return (0, exports.DefaultApiFp)(this.configuration).create(body, options).then((request) => request(this.axios, this.basePath));
422
+ }
423
+ /**
424
+ *
425
+ * @param {CreateFSMembersBody} createFSMembersBody
426
+ * @param {*} [options] Override http request option.
427
+ * @throws {RequiredError}
428
+ * @memberof DefaultApi
429
+ */
430
+ integrationsFsMembersCreate(createFSMembersBody, options) {
431
+ return (0, exports.DefaultApiFp)(this.configuration).integrationsFsMembersCreate(createFSMembersBody, options).then((request) => request(this.axios, this.basePath));
432
+ }
433
+ /**
434
+ *
435
+ * @param {DestroyFSMembers} destroyFSMembers
436
+ * @param {*} [options] Override http request option.
437
+ * @throws {RequiredError}
438
+ * @memberof DefaultApi
439
+ */
440
+ integrationsFsMembersDelete(destroyFSMembers, options) {
441
+ return (0, exports.DefaultApiFp)(this.configuration).integrationsFsMembersDelete(destroyFSMembers, options).then((request) => request(this.axios, this.basePath));
442
+ }
443
+ /**
444
+ *
445
+ * @param {*} [options] Override http request option.
446
+ * @throws {RequiredError}
447
+ * @memberof DefaultApi
448
+ */
449
+ membersIndex(options) {
450
+ return (0, exports.DefaultApiFp)(this.configuration).membersIndex(options).then((request) => request(this.axios, this.basePath));
451
+ }
452
+ /**
453
+ *
454
+ * @param {SyncBody} syncBody
455
+ * @param {*} [options] Override http request option.
456
+ * @throws {RequiredError}
457
+ * @memberof DefaultApi
458
+ */
459
+ sync(syncBody, options) {
460
+ return (0, exports.DefaultApiFp)(this.configuration).sync(syncBody, options).then((request) => request(this.axios, this.basePath));
461
+ }
462
+ /**
463
+ *
464
+ * @param {CreateVisitorBody} createVisitorBody
465
+ * @param {*} [options] Override http request option.
466
+ * @throws {RequiredError}
467
+ * @memberof DefaultApi
468
+ */
469
+ visitorsCreate(createVisitorBody, options) {
470
+ return (0, exports.DefaultApiFp)(this.configuration).visitorsCreate(createVisitorBody, options).then((request) => request(this.axios, this.basePath));
471
+ }
472
+ /**
473
+ *
474
+ * @param {string} id
475
+ * @param {*} [options] Override http request option.
476
+ * @throws {RequiredError}
477
+ * @memberof DefaultApi
478
+ */
479
+ visitorsShow(id, options) {
480
+ return (0, exports.DefaultApiFp)(this.configuration).visitorsShow(id, options).then((request) => request(this.axios, this.basePath));
481
+ }
482
+ }
483
+ 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: 0.0.4
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
+ }
@@ -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: 0.0.4
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: 0.0.4
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>;