ob-bms-sdk 0.0.20 → 0.0.21
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/api.ts +352 -302
- package/dist/api/api.d.ts +323 -276
- package/dist/api/api.js +51 -47
- package/package.json +1 -1
package/dist/api/api.js
CHANGED
|
@@ -25,13 +25,17 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
25
25
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
26
26
|
};
|
|
27
27
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
-
exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.WrappedResponseNullDataEnum = void 0;
|
|
28
|
+
exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.WrappedResponseNullDataEnum = exports.PassDataStatusEnum = void 0;
|
|
29
29
|
const axios_1 = __importDefault(require("axios"));
|
|
30
30
|
// Some imports not used depending on template conditions
|
|
31
31
|
// @ts-ignore
|
|
32
32
|
const common_1 = require("./common");
|
|
33
33
|
// @ts-ignore
|
|
34
34
|
const base_1 = require("./base");
|
|
35
|
+
exports.PassDataStatusEnum = {
|
|
36
|
+
Pending: 'pending',
|
|
37
|
+
Confirmed: 'confirmed'
|
|
38
|
+
};
|
|
35
39
|
exports.WrappedResponseNullDataEnum = {
|
|
36
40
|
NUMBER_null: null
|
|
37
41
|
};
|
|
@@ -43,13 +47,13 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
43
47
|
return {
|
|
44
48
|
/**
|
|
45
49
|
*
|
|
46
|
-
* @param {
|
|
50
|
+
* @param {WebhookCreateBody} webhookCreateBody
|
|
47
51
|
* @param {*} [options] Override http request option.
|
|
48
52
|
* @throws {RequiredError}
|
|
49
53
|
*/
|
|
50
|
-
create: (
|
|
51
|
-
// verify required parameter '
|
|
52
|
-
(0, common_1.assertParamExists)('create', '
|
|
54
|
+
create: (webhookCreateBody, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
55
|
+
// verify required parameter 'webhookCreateBody' is not null or undefined
|
|
56
|
+
(0, common_1.assertParamExists)('create', 'webhookCreateBody', webhookCreateBody);
|
|
53
57
|
const localVarPath = `/integrations/fs/webhook`;
|
|
54
58
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
55
59
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -64,7 +68,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
64
68
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
65
69
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
66
70
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
67
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
71
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(webhookCreateBody, localVarRequestOptions, configuration);
|
|
68
72
|
return {
|
|
69
73
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
70
74
|
options: localVarRequestOptions,
|
|
@@ -130,15 +134,14 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
130
134
|
}),
|
|
131
135
|
/**
|
|
132
136
|
*
|
|
133
|
-
* @param {string}
|
|
137
|
+
* @param {string} identifier
|
|
134
138
|
* @param {*} [options] Override http request option.
|
|
135
139
|
* @throws {RequiredError}
|
|
136
140
|
*/
|
|
137
|
-
|
|
138
|
-
// verify required parameter '
|
|
139
|
-
(0, common_1.assertParamExists)('
|
|
140
|
-
const localVarPath = `/members
|
|
141
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
141
|
+
membersIndex: (identifier, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
142
|
+
// verify required parameter 'identifier' is not null or undefined
|
|
143
|
+
(0, common_1.assertParamExists)('membersIndex', 'identifier', identifier);
|
|
144
|
+
const localVarPath = `/members`;
|
|
142
145
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
143
146
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
144
147
|
let baseOptions;
|
|
@@ -148,6 +151,9 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
148
151
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
149
152
|
const localVarHeaderParameter = {};
|
|
150
153
|
const localVarQueryParameter = {};
|
|
154
|
+
if (identifier !== undefined) {
|
|
155
|
+
localVarQueryParameter['identifier'] = identifier;
|
|
156
|
+
}
|
|
151
157
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
152
158
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
153
159
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -158,14 +164,15 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
158
164
|
}),
|
|
159
165
|
/**
|
|
160
166
|
*
|
|
161
|
-
* @param {string}
|
|
167
|
+
* @param {string} id
|
|
162
168
|
* @param {*} [options] Override http request option.
|
|
163
169
|
* @throws {RequiredError}
|
|
164
170
|
*/
|
|
165
|
-
|
|
166
|
-
// verify required parameter '
|
|
167
|
-
(0, common_1.assertParamExists)('
|
|
168
|
-
const localVarPath = `/members
|
|
171
|
+
membersShow: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
172
|
+
// verify required parameter 'id' is not null or undefined
|
|
173
|
+
(0, common_1.assertParamExists)('membersShow', 'id', id);
|
|
174
|
+
const localVarPath = `/members/{id}`
|
|
175
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
169
176
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
170
177
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
171
178
|
let baseOptions;
|
|
@@ -175,9 +182,6 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
175
182
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
176
183
|
const localVarHeaderParameter = {};
|
|
177
184
|
const localVarQueryParameter = {};
|
|
178
|
-
if (identifier !== undefined) {
|
|
179
|
-
localVarQueryParameter['identifier'] = identifier;
|
|
180
|
-
}
|
|
181
185
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
182
186
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
183
187
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -312,13 +316,13 @@ const DefaultApiFp = function (configuration) {
|
|
|
312
316
|
return {
|
|
313
317
|
/**
|
|
314
318
|
*
|
|
315
|
-
* @param {
|
|
319
|
+
* @param {WebhookCreateBody} webhookCreateBody
|
|
316
320
|
* @param {*} [options] Override http request option.
|
|
317
321
|
* @throws {RequiredError}
|
|
318
322
|
*/
|
|
319
|
-
create(
|
|
323
|
+
create(webhookCreateBody, options) {
|
|
320
324
|
return __awaiter(this, void 0, void 0, function* () {
|
|
321
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.create(
|
|
325
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.create(webhookCreateBody, options);
|
|
322
326
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
323
327
|
});
|
|
324
328
|
},
|
|
@@ -348,25 +352,25 @@ const DefaultApiFp = function (configuration) {
|
|
|
348
352
|
},
|
|
349
353
|
/**
|
|
350
354
|
*
|
|
351
|
-
* @param {string}
|
|
355
|
+
* @param {string} identifier
|
|
352
356
|
* @param {*} [options] Override http request option.
|
|
353
357
|
* @throws {RequiredError}
|
|
354
358
|
*/
|
|
355
|
-
|
|
359
|
+
membersIndex(identifier, options) {
|
|
356
360
|
return __awaiter(this, void 0, void 0, function* () {
|
|
357
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
361
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.membersIndex(identifier, options);
|
|
358
362
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
359
363
|
});
|
|
360
364
|
},
|
|
361
365
|
/**
|
|
362
366
|
*
|
|
363
|
-
* @param {string}
|
|
367
|
+
* @param {string} id
|
|
364
368
|
* @param {*} [options] Override http request option.
|
|
365
369
|
* @throws {RequiredError}
|
|
366
370
|
*/
|
|
367
|
-
|
|
371
|
+
membersShow(id, options) {
|
|
368
372
|
return __awaiter(this, void 0, void 0, function* () {
|
|
369
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
373
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.membersShow(id, options);
|
|
370
374
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
371
375
|
});
|
|
372
376
|
},
|
|
@@ -430,12 +434,12 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
430
434
|
return {
|
|
431
435
|
/**
|
|
432
436
|
*
|
|
433
|
-
* @param {
|
|
437
|
+
* @param {WebhookCreateBody} webhookCreateBody
|
|
434
438
|
* @param {*} [options] Override http request option.
|
|
435
439
|
* @throws {RequiredError}
|
|
436
440
|
*/
|
|
437
|
-
create(
|
|
438
|
-
return localVarFp.create(
|
|
441
|
+
create(webhookCreateBody, options) {
|
|
442
|
+
return localVarFp.create(webhookCreateBody, options).then((request) => request(axios, basePath));
|
|
439
443
|
},
|
|
440
444
|
/**
|
|
441
445
|
*
|
|
@@ -457,21 +461,21 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
457
461
|
},
|
|
458
462
|
/**
|
|
459
463
|
*
|
|
460
|
-
* @param {string}
|
|
464
|
+
* @param {string} identifier
|
|
461
465
|
* @param {*} [options] Override http request option.
|
|
462
466
|
* @throws {RequiredError}
|
|
463
467
|
*/
|
|
464
|
-
|
|
465
|
-
return localVarFp.
|
|
468
|
+
membersIndex(identifier, options) {
|
|
469
|
+
return localVarFp.membersIndex(identifier, options).then((request) => request(axios, basePath));
|
|
466
470
|
},
|
|
467
471
|
/**
|
|
468
472
|
*
|
|
469
|
-
* @param {string}
|
|
473
|
+
* @param {string} id
|
|
470
474
|
* @param {*} [options] Override http request option.
|
|
471
475
|
* @throws {RequiredError}
|
|
472
476
|
*/
|
|
473
|
-
|
|
474
|
-
return localVarFp.
|
|
477
|
+
membersShow(id, options) {
|
|
478
|
+
return localVarFp.membersShow(id, options).then((request) => request(axios, basePath));
|
|
475
479
|
},
|
|
476
480
|
/**
|
|
477
481
|
*
|
|
@@ -521,13 +525,13 @@ exports.DefaultApiFactory = DefaultApiFactory;
|
|
|
521
525
|
class DefaultApi extends base_1.BaseAPI {
|
|
522
526
|
/**
|
|
523
527
|
*
|
|
524
|
-
* @param {
|
|
528
|
+
* @param {WebhookCreateBody} webhookCreateBody
|
|
525
529
|
* @param {*} [options] Override http request option.
|
|
526
530
|
* @throws {RequiredError}
|
|
527
531
|
* @memberof DefaultApi
|
|
528
532
|
*/
|
|
529
|
-
create(
|
|
530
|
-
return (0, exports.DefaultApiFp)(this.configuration).create(
|
|
533
|
+
create(webhookCreateBody, options) {
|
|
534
|
+
return (0, exports.DefaultApiFp)(this.configuration).create(webhookCreateBody, options).then((request) => request(this.axios, this.basePath));
|
|
531
535
|
}
|
|
532
536
|
/**
|
|
533
537
|
*
|
|
@@ -551,23 +555,23 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
551
555
|
}
|
|
552
556
|
/**
|
|
553
557
|
*
|
|
554
|
-
* @param {string}
|
|
558
|
+
* @param {string} identifier
|
|
555
559
|
* @param {*} [options] Override http request option.
|
|
556
560
|
* @throws {RequiredError}
|
|
557
561
|
* @memberof DefaultApi
|
|
558
562
|
*/
|
|
559
|
-
|
|
560
|
-
return (0, exports.DefaultApiFp)(this.configuration).
|
|
563
|
+
membersIndex(identifier, options) {
|
|
564
|
+
return (0, exports.DefaultApiFp)(this.configuration).membersIndex(identifier, options).then((request) => request(this.axios, this.basePath));
|
|
561
565
|
}
|
|
562
566
|
/**
|
|
563
567
|
*
|
|
564
|
-
* @param {string}
|
|
568
|
+
* @param {string} id
|
|
565
569
|
* @param {*} [options] Override http request option.
|
|
566
570
|
* @throws {RequiredError}
|
|
567
571
|
* @memberof DefaultApi
|
|
568
572
|
*/
|
|
569
|
-
|
|
570
|
-
return (0, exports.DefaultApiFp)(this.configuration).
|
|
573
|
+
membersShow(id, options) {
|
|
574
|
+
return (0, exports.DefaultApiFp)(this.configuration).membersShow(id, options).then((request) => request(this.axios, this.basePath));
|
|
571
575
|
}
|
|
572
576
|
/**
|
|
573
577
|
*
|