ob-bms-sdk 0.0.78 → 0.0.80
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 +499 -35
- package/dist/api/api.d.ts +430 -36
- package/dist/api/api.js +119 -0
- package/package.json +1 -1
package/dist/api/api.js
CHANGED
|
@@ -353,6 +353,30 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
353
353
|
options: localVarRequestOptions,
|
|
354
354
|
};
|
|
355
355
|
}),
|
|
356
|
+
/**
|
|
357
|
+
*
|
|
358
|
+
* @param {*} [options] Override http request option.
|
|
359
|
+
* @throws {RequiredError}
|
|
360
|
+
*/
|
|
361
|
+
holidaysIndex: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
362
|
+
const localVarPath = `/holidays`;
|
|
363
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
364
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
365
|
+
let baseOptions;
|
|
366
|
+
if (configuration) {
|
|
367
|
+
baseOptions = configuration.baseOptions;
|
|
368
|
+
}
|
|
369
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
370
|
+
const localVarHeaderParameter = {};
|
|
371
|
+
const localVarQueryParameter = {};
|
|
372
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
373
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
374
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
375
|
+
return {
|
|
376
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
377
|
+
options: localVarRequestOptions,
|
|
378
|
+
};
|
|
379
|
+
}),
|
|
356
380
|
/**
|
|
357
381
|
*
|
|
358
382
|
* @param {CreateFSMembersBody} createFSMembersBody
|
|
@@ -1174,6 +1198,39 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
1174
1198
|
options: localVarRequestOptions,
|
|
1175
1199
|
};
|
|
1176
1200
|
}),
|
|
1201
|
+
/**
|
|
1202
|
+
*
|
|
1203
|
+
* @param {string} id
|
|
1204
|
+
* @param {UpdateVisitorScheduleBody} updateVisitorScheduleBody
|
|
1205
|
+
* @param {*} [options] Override http request option.
|
|
1206
|
+
* @throws {RequiredError}
|
|
1207
|
+
*/
|
|
1208
|
+
visitorSchedulesUpdate: (id, updateVisitorScheduleBody, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1209
|
+
// verify required parameter 'id' is not null or undefined
|
|
1210
|
+
(0, common_1.assertParamExists)('visitorSchedulesUpdate', 'id', id);
|
|
1211
|
+
// verify required parameter 'updateVisitorScheduleBody' is not null or undefined
|
|
1212
|
+
(0, common_1.assertParamExists)('visitorSchedulesUpdate', 'updateVisitorScheduleBody', updateVisitorScheduleBody);
|
|
1213
|
+
const localVarPath = `/visitor_schedules/{id}`
|
|
1214
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
1215
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1216
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1217
|
+
let baseOptions;
|
|
1218
|
+
if (configuration) {
|
|
1219
|
+
baseOptions = configuration.baseOptions;
|
|
1220
|
+
}
|
|
1221
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
1222
|
+
const localVarHeaderParameter = {};
|
|
1223
|
+
const localVarQueryParameter = {};
|
|
1224
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1225
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1226
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1227
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1228
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateVisitorScheduleBody, localVarRequestOptions, configuration);
|
|
1229
|
+
return {
|
|
1230
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1231
|
+
options: localVarRequestOptions,
|
|
1232
|
+
};
|
|
1233
|
+
}),
|
|
1177
1234
|
/**
|
|
1178
1235
|
*
|
|
1179
1236
|
* @param {string} [tokenId]
|
|
@@ -1388,6 +1445,17 @@ const DefaultApiFp = function (configuration) {
|
|
|
1388
1445
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1389
1446
|
});
|
|
1390
1447
|
},
|
|
1448
|
+
/**
|
|
1449
|
+
*
|
|
1450
|
+
* @param {*} [options] Override http request option.
|
|
1451
|
+
* @throws {RequiredError}
|
|
1452
|
+
*/
|
|
1453
|
+
holidaysIndex(options) {
|
|
1454
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1455
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.holidaysIndex(options);
|
|
1456
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1457
|
+
});
|
|
1458
|
+
},
|
|
1391
1459
|
/**
|
|
1392
1460
|
*
|
|
1393
1461
|
* @param {CreateFSMembersBody} createFSMembersBody
|
|
@@ -1718,6 +1786,19 @@ const DefaultApiFp = function (configuration) {
|
|
|
1718
1786
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1719
1787
|
});
|
|
1720
1788
|
},
|
|
1789
|
+
/**
|
|
1790
|
+
*
|
|
1791
|
+
* @param {string} id
|
|
1792
|
+
* @param {UpdateVisitorScheduleBody} updateVisitorScheduleBody
|
|
1793
|
+
* @param {*} [options] Override http request option.
|
|
1794
|
+
* @throws {RequiredError}
|
|
1795
|
+
*/
|
|
1796
|
+
visitorSchedulesUpdate(id, updateVisitorScheduleBody, options) {
|
|
1797
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1798
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.visitorSchedulesUpdate(id, updateVisitorScheduleBody, options);
|
|
1799
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1800
|
+
});
|
|
1801
|
+
},
|
|
1721
1802
|
/**
|
|
1722
1803
|
*
|
|
1723
1804
|
* @param {string} [tokenId]
|
|
@@ -1846,6 +1927,14 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
1846
1927
|
fetch(options) {
|
|
1847
1928
|
return localVarFp.fetch(options).then((request) => request(axios, basePath));
|
|
1848
1929
|
},
|
|
1930
|
+
/**
|
|
1931
|
+
*
|
|
1932
|
+
* @param {*} [options] Override http request option.
|
|
1933
|
+
* @throws {RequiredError}
|
|
1934
|
+
*/
|
|
1935
|
+
holidaysIndex(options) {
|
|
1936
|
+
return localVarFp.holidaysIndex(options).then((request) => request(axios, basePath));
|
|
1937
|
+
},
|
|
1849
1938
|
/**
|
|
1850
1939
|
*
|
|
1851
1940
|
* @param {CreateFSMembersBody} createFSMembersBody
|
|
@@ -2098,6 +2187,16 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
2098
2187
|
towersIndex(options) {
|
|
2099
2188
|
return localVarFp.towersIndex(options).then((request) => request(axios, basePath));
|
|
2100
2189
|
},
|
|
2190
|
+
/**
|
|
2191
|
+
*
|
|
2192
|
+
* @param {string} id
|
|
2193
|
+
* @param {UpdateVisitorScheduleBody} updateVisitorScheduleBody
|
|
2194
|
+
* @param {*} [options] Override http request option.
|
|
2195
|
+
* @throws {RequiredError}
|
|
2196
|
+
*/
|
|
2197
|
+
visitorSchedulesUpdate(id, updateVisitorScheduleBody, options) {
|
|
2198
|
+
return localVarFp.visitorSchedulesUpdate(id, updateVisitorScheduleBody, options).then((request) => request(axios, basePath));
|
|
2199
|
+
},
|
|
2101
2200
|
/**
|
|
2102
2201
|
*
|
|
2103
2202
|
* @param {string} [tokenId]
|
|
@@ -2221,6 +2320,15 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
2221
2320
|
fetch(options) {
|
|
2222
2321
|
return (0, exports.DefaultApiFp)(this.configuration).fetch(options).then((request) => request(this.axios, this.basePath));
|
|
2223
2322
|
}
|
|
2323
|
+
/**
|
|
2324
|
+
*
|
|
2325
|
+
* @param {*} [options] Override http request option.
|
|
2326
|
+
* @throws {RequiredError}
|
|
2327
|
+
* @memberof DefaultApi
|
|
2328
|
+
*/
|
|
2329
|
+
holidaysIndex(options) {
|
|
2330
|
+
return (0, exports.DefaultApiFp)(this.configuration).holidaysIndex(options).then((request) => request(this.axios, this.basePath));
|
|
2331
|
+
}
|
|
2224
2332
|
/**
|
|
2225
2333
|
*
|
|
2226
2334
|
* @param {CreateFSMembersBody} createFSMembersBody
|
|
@@ -2499,6 +2607,17 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
2499
2607
|
towersIndex(options) {
|
|
2500
2608
|
return (0, exports.DefaultApiFp)(this.configuration).towersIndex(options).then((request) => request(this.axios, this.basePath));
|
|
2501
2609
|
}
|
|
2610
|
+
/**
|
|
2611
|
+
*
|
|
2612
|
+
* @param {string} id
|
|
2613
|
+
* @param {UpdateVisitorScheduleBody} updateVisitorScheduleBody
|
|
2614
|
+
* @param {*} [options] Override http request option.
|
|
2615
|
+
* @throws {RequiredError}
|
|
2616
|
+
* @memberof DefaultApi
|
|
2617
|
+
*/
|
|
2618
|
+
visitorSchedulesUpdate(id, updateVisitorScheduleBody, options) {
|
|
2619
|
+
return (0, exports.DefaultApiFp)(this.configuration).visitorSchedulesUpdate(id, updateVisitorScheduleBody, options).then((request) => request(this.axios, this.basePath));
|
|
2620
|
+
}
|
|
2502
2621
|
/**
|
|
2503
2622
|
*
|
|
2504
2623
|
* @param {string} [tokenId]
|