ob-bms-sdk 0.0.65 → 0.0.66
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 +42 -9
- package/dist/api/api.d.ts +35 -6
- package/dist/api/api.js +14 -7
- package/package.json +1 -1
- package/test.ts +15 -0
package/api/api.ts
CHANGED
|
@@ -524,6 +524,25 @@ export interface FloorDataPasses {
|
|
|
524
524
|
*/
|
|
525
525
|
'updated_at': string;
|
|
526
526
|
}
|
|
527
|
+
/**
|
|
528
|
+
*
|
|
529
|
+
* @export
|
|
530
|
+
* @interface FloorSensorData
|
|
531
|
+
*/
|
|
532
|
+
export interface FloorSensorData {
|
|
533
|
+
/**
|
|
534
|
+
*
|
|
535
|
+
* @type {Array<SensorData>}
|
|
536
|
+
* @memberof FloorSensorData
|
|
537
|
+
*/
|
|
538
|
+
'sensors': Array<SensorData>;
|
|
539
|
+
/**
|
|
540
|
+
*
|
|
541
|
+
* @type {string}
|
|
542
|
+
* @memberof FloorSensorData
|
|
543
|
+
*/
|
|
544
|
+
'floor_id': string;
|
|
545
|
+
}
|
|
527
546
|
/**
|
|
528
547
|
*
|
|
529
548
|
* @export
|
|
@@ -1459,6 +1478,12 @@ export interface SensorsIndexQuery {
|
|
|
1459
1478
|
* @memberof SensorsIndexQuery
|
|
1460
1479
|
*/
|
|
1461
1480
|
'tower_id': string;
|
|
1481
|
+
/**
|
|
1482
|
+
*
|
|
1483
|
+
* @type {string}
|
|
1484
|
+
* @memberof SensorsIndexQuery
|
|
1485
|
+
*/
|
|
1486
|
+
'member_id'?: string;
|
|
1462
1487
|
}
|
|
1463
1488
|
/**
|
|
1464
1489
|
*
|
|
@@ -2552,10 +2577,10 @@ export interface WebhookCreateBodyPayload {
|
|
|
2552
2577
|
export interface WrappedArrayResponseSensorsIndexResponseData {
|
|
2553
2578
|
/**
|
|
2554
2579
|
*
|
|
2555
|
-
* @type {Array<
|
|
2580
|
+
* @type {Array<FloorSensorData>}
|
|
2556
2581
|
* @memberof WrappedArrayResponseSensorsIndexResponseData
|
|
2557
2582
|
*/
|
|
2558
|
-
'data': Array<
|
|
2583
|
+
'data': Array<FloorSensorData>;
|
|
2559
2584
|
}
|
|
2560
2585
|
/**
|
|
2561
2586
|
*
|
|
@@ -3987,10 +4012,11 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
3987
4012
|
/**
|
|
3988
4013
|
*
|
|
3989
4014
|
* @param {string} towerId
|
|
4015
|
+
* @param {string} [memberId]
|
|
3990
4016
|
* @param {*} [options] Override http request option.
|
|
3991
4017
|
* @throws {RequiredError}
|
|
3992
4018
|
*/
|
|
3993
|
-
sensorsIndex: async (towerId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4019
|
+
sensorsIndex: async (towerId: string, memberId?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3994
4020
|
// verify required parameter 'towerId' is not null or undefined
|
|
3995
4021
|
assertParamExists('sensorsIndex', 'towerId', towerId)
|
|
3996
4022
|
const localVarPath = `/sensors`;
|
|
@@ -4009,6 +4035,10 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
4009
4035
|
localVarQueryParameter['tower_id'] = towerId;
|
|
4010
4036
|
}
|
|
4011
4037
|
|
|
4038
|
+
if (memberId !== undefined) {
|
|
4039
|
+
localVarQueryParameter['member_id'] = memberId;
|
|
4040
|
+
}
|
|
4041
|
+
|
|
4012
4042
|
|
|
4013
4043
|
|
|
4014
4044
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -4511,11 +4541,12 @@ export const DefaultApiFp = function(configuration?: Configuration) {
|
|
|
4511
4541
|
/**
|
|
4512
4542
|
*
|
|
4513
4543
|
* @param {string} towerId
|
|
4544
|
+
* @param {string} [memberId]
|
|
4514
4545
|
* @param {*} [options] Override http request option.
|
|
4515
4546
|
* @throws {RequiredError}
|
|
4516
4547
|
*/
|
|
4517
|
-
async sensorsIndex(towerId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedArrayResponseSensorsIndexResponseData>> {
|
|
4518
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.sensorsIndex(towerId, options);
|
|
4548
|
+
async sensorsIndex(towerId: string, memberId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedArrayResponseSensorsIndexResponseData>> {
|
|
4549
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.sensorsIndex(towerId, memberId, options);
|
|
4519
4550
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
4520
4551
|
},
|
|
4521
4552
|
/**
|
|
@@ -4780,11 +4811,12 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
|
|
|
4780
4811
|
/**
|
|
4781
4812
|
*
|
|
4782
4813
|
* @param {string} towerId
|
|
4814
|
+
* @param {string} [memberId]
|
|
4783
4815
|
* @param {*} [options] Override http request option.
|
|
4784
4816
|
* @throws {RequiredError}
|
|
4785
4817
|
*/
|
|
4786
|
-
sensorsIndex(towerId: string, options?: any): AxiosPromise<WrappedArrayResponseSensorsIndexResponseData> {
|
|
4787
|
-
return localVarFp.sensorsIndex(towerId, options).then((request) => request(axios, basePath));
|
|
4818
|
+
sensorsIndex(towerId: string, memberId?: string, options?: any): AxiosPromise<WrappedArrayResponseSensorsIndexResponseData> {
|
|
4819
|
+
return localVarFp.sensorsIndex(towerId, memberId, options).then((request) => request(axios, basePath));
|
|
4788
4820
|
},
|
|
4789
4821
|
/**
|
|
4790
4822
|
*
|
|
@@ -5074,12 +5106,13 @@ export class DefaultApi extends BaseAPI {
|
|
|
5074
5106
|
/**
|
|
5075
5107
|
*
|
|
5076
5108
|
* @param {string} towerId
|
|
5109
|
+
* @param {string} [memberId]
|
|
5077
5110
|
* @param {*} [options] Override http request option.
|
|
5078
5111
|
* @throws {RequiredError}
|
|
5079
5112
|
* @memberof DefaultApi
|
|
5080
5113
|
*/
|
|
5081
|
-
public sensorsIndex(towerId: string, options?: AxiosRequestConfig) {
|
|
5082
|
-
return DefaultApiFp(this.configuration).sensorsIndex(towerId, options).then((request) => request(this.axios, this.basePath));
|
|
5114
|
+
public sensorsIndex(towerId: string, memberId?: string, options?: AxiosRequestConfig) {
|
|
5115
|
+
return DefaultApiFp(this.configuration).sensorsIndex(towerId, memberId, options).then((request) => request(this.axios, this.basePath));
|
|
5083
5116
|
}
|
|
5084
5117
|
|
|
5085
5118
|
/**
|
package/dist/api/api.d.ts
CHANGED
|
@@ -522,6 +522,25 @@ export interface FloorDataPasses {
|
|
|
522
522
|
*/
|
|
523
523
|
'updated_at': string;
|
|
524
524
|
}
|
|
525
|
+
/**
|
|
526
|
+
*
|
|
527
|
+
* @export
|
|
528
|
+
* @interface FloorSensorData
|
|
529
|
+
*/
|
|
530
|
+
export interface FloorSensorData {
|
|
531
|
+
/**
|
|
532
|
+
*
|
|
533
|
+
* @type {Array<SensorData>}
|
|
534
|
+
* @memberof FloorSensorData
|
|
535
|
+
*/
|
|
536
|
+
'sensors': Array<SensorData>;
|
|
537
|
+
/**
|
|
538
|
+
*
|
|
539
|
+
* @type {string}
|
|
540
|
+
* @memberof FloorSensorData
|
|
541
|
+
*/
|
|
542
|
+
'floor_id': string;
|
|
543
|
+
}
|
|
525
544
|
/**
|
|
526
545
|
*
|
|
527
546
|
* @export
|
|
@@ -1442,6 +1461,12 @@ export interface SensorsIndexQuery {
|
|
|
1442
1461
|
* @memberof SensorsIndexQuery
|
|
1443
1462
|
*/
|
|
1444
1463
|
'tower_id': string;
|
|
1464
|
+
/**
|
|
1465
|
+
*
|
|
1466
|
+
* @type {string}
|
|
1467
|
+
* @memberof SensorsIndexQuery
|
|
1468
|
+
*/
|
|
1469
|
+
'member_id'?: string;
|
|
1445
1470
|
}
|
|
1446
1471
|
/**
|
|
1447
1472
|
*
|
|
@@ -2526,10 +2551,10 @@ export interface WebhookCreateBodyPayload {
|
|
|
2526
2551
|
export interface WrappedArrayResponseSensorsIndexResponseData {
|
|
2527
2552
|
/**
|
|
2528
2553
|
*
|
|
2529
|
-
* @type {Array<
|
|
2554
|
+
* @type {Array<FloorSensorData>}
|
|
2530
2555
|
* @memberof WrappedArrayResponseSensorsIndexResponseData
|
|
2531
2556
|
*/
|
|
2532
|
-
'data': Array<
|
|
2557
|
+
'data': Array<FloorSensorData>;
|
|
2533
2558
|
}
|
|
2534
2559
|
/**
|
|
2535
2560
|
*
|
|
@@ -3443,10 +3468,11 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
3443
3468
|
/**
|
|
3444
3469
|
*
|
|
3445
3470
|
* @param {string} towerId
|
|
3471
|
+
* @param {string} [memberId]
|
|
3446
3472
|
* @param {*} [options] Override http request option.
|
|
3447
3473
|
* @throws {RequiredError}
|
|
3448
3474
|
*/
|
|
3449
|
-
sensorsIndex: (towerId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3475
|
+
sensorsIndex: (towerId: string, memberId?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3450
3476
|
/**
|
|
3451
3477
|
*
|
|
3452
3478
|
* @param {ServiceRequestBody} serviceRequestBody
|
|
@@ -3647,10 +3673,11 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
3647
3673
|
/**
|
|
3648
3674
|
*
|
|
3649
3675
|
* @param {string} towerId
|
|
3676
|
+
* @param {string} [memberId]
|
|
3650
3677
|
* @param {*} [options] Override http request option.
|
|
3651
3678
|
* @throws {RequiredError}
|
|
3652
3679
|
*/
|
|
3653
|
-
sensorsIndex(towerId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedArrayResponseSensorsIndexResponseData>>;
|
|
3680
|
+
sensorsIndex(towerId: string, memberId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedArrayResponseSensorsIndexResponseData>>;
|
|
3654
3681
|
/**
|
|
3655
3682
|
*
|
|
3656
3683
|
* @param {ServiceRequestBody} serviceRequestBody
|
|
@@ -3851,10 +3878,11 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
3851
3878
|
/**
|
|
3852
3879
|
*
|
|
3853
3880
|
* @param {string} towerId
|
|
3881
|
+
* @param {string} [memberId]
|
|
3854
3882
|
* @param {*} [options] Override http request option.
|
|
3855
3883
|
* @throws {RequiredError}
|
|
3856
3884
|
*/
|
|
3857
|
-
sensorsIndex(towerId: string, options?: any): AxiosPromise<WrappedArrayResponseSensorsIndexResponseData>;
|
|
3885
|
+
sensorsIndex(towerId: string, memberId?: string, options?: any): AxiosPromise<WrappedArrayResponseSensorsIndexResponseData>;
|
|
3858
3886
|
/**
|
|
3859
3887
|
*
|
|
3860
3888
|
* @param {ServiceRequestBody} serviceRequestBody
|
|
@@ -4074,11 +4102,12 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
4074
4102
|
/**
|
|
4075
4103
|
*
|
|
4076
4104
|
* @param {string} towerId
|
|
4105
|
+
* @param {string} [memberId]
|
|
4077
4106
|
* @param {*} [options] Override http request option.
|
|
4078
4107
|
* @throws {RequiredError}
|
|
4079
4108
|
* @memberof DefaultApi
|
|
4080
4109
|
*/
|
|
4081
|
-
sensorsIndex(towerId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<WrappedArrayResponseSensorsIndexResponseData, any>>;
|
|
4110
|
+
sensorsIndex(towerId: string, memberId?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<WrappedArrayResponseSensorsIndexResponseData, any>>;
|
|
4082
4111
|
/**
|
|
4083
4112
|
*
|
|
4084
4113
|
* @param {ServiceRequestBody} serviceRequestBody
|
package/dist/api/api.js
CHANGED
|
@@ -622,10 +622,11 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
622
622
|
/**
|
|
623
623
|
*
|
|
624
624
|
* @param {string} towerId
|
|
625
|
+
* @param {string} [memberId]
|
|
625
626
|
* @param {*} [options] Override http request option.
|
|
626
627
|
* @throws {RequiredError}
|
|
627
628
|
*/
|
|
628
|
-
sensorsIndex: (towerId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
629
|
+
sensorsIndex: (towerId, memberId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
629
630
|
// verify required parameter 'towerId' is not null or undefined
|
|
630
631
|
(0, common_1.assertParamExists)('sensorsIndex', 'towerId', towerId);
|
|
631
632
|
const localVarPath = `/sensors`;
|
|
@@ -641,6 +642,9 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
641
642
|
if (towerId !== undefined) {
|
|
642
643
|
localVarQueryParameter['tower_id'] = towerId;
|
|
643
644
|
}
|
|
645
|
+
if (memberId !== undefined) {
|
|
646
|
+
localVarQueryParameter['member_id'] = memberId;
|
|
647
|
+
}
|
|
644
648
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
645
649
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
646
650
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -1124,12 +1128,13 @@ const DefaultApiFp = function (configuration) {
|
|
|
1124
1128
|
/**
|
|
1125
1129
|
*
|
|
1126
1130
|
* @param {string} towerId
|
|
1131
|
+
* @param {string} [memberId]
|
|
1127
1132
|
* @param {*} [options] Override http request option.
|
|
1128
1133
|
* @throws {RequiredError}
|
|
1129
1134
|
*/
|
|
1130
|
-
sensorsIndex(towerId, options) {
|
|
1135
|
+
sensorsIndex(towerId, memberId, options) {
|
|
1131
1136
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1132
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.sensorsIndex(towerId, options);
|
|
1137
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.sensorsIndex(towerId, memberId, options);
|
|
1133
1138
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1134
1139
|
});
|
|
1135
1140
|
},
|
|
@@ -1411,11 +1416,12 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
1411
1416
|
/**
|
|
1412
1417
|
*
|
|
1413
1418
|
* @param {string} towerId
|
|
1419
|
+
* @param {string} [memberId]
|
|
1414
1420
|
* @param {*} [options] Override http request option.
|
|
1415
1421
|
* @throws {RequiredError}
|
|
1416
1422
|
*/
|
|
1417
|
-
sensorsIndex(towerId, options) {
|
|
1418
|
-
return localVarFp.sensorsIndex(towerId, options).then((request) => request(axios, basePath));
|
|
1423
|
+
sensorsIndex(towerId, memberId, options) {
|
|
1424
|
+
return localVarFp.sensorsIndex(towerId, memberId, options).then((request) => request(axios, basePath));
|
|
1419
1425
|
},
|
|
1420
1426
|
/**
|
|
1421
1427
|
*
|
|
@@ -1688,12 +1694,13 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
1688
1694
|
/**
|
|
1689
1695
|
*
|
|
1690
1696
|
* @param {string} towerId
|
|
1697
|
+
* @param {string} [memberId]
|
|
1691
1698
|
* @param {*} [options] Override http request option.
|
|
1692
1699
|
* @throws {RequiredError}
|
|
1693
1700
|
* @memberof DefaultApi
|
|
1694
1701
|
*/
|
|
1695
|
-
sensorsIndex(towerId, options) {
|
|
1696
|
-
return (0, exports.DefaultApiFp)(this.configuration).sensorsIndex(towerId, options).then((request) => request(this.axios, this.basePath));
|
|
1702
|
+
sensorsIndex(towerId, memberId, options) {
|
|
1703
|
+
return (0, exports.DefaultApiFp)(this.configuration).sensorsIndex(towerId, memberId, options).then((request) => request(this.axios, this.basePath));
|
|
1697
1704
|
}
|
|
1698
1705
|
/**
|
|
1699
1706
|
*
|
package/package.json
CHANGED
package/test.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as OB_BMS_SDK from './index';
|
|
2
|
+
|
|
3
|
+
// OB_BMS_SDK.setAcessToken('789');
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iOiIyMDIzLTExLTAyVDA4OjUxOjQyLjc3MVoiLCJkZWxldGVkX2F0IjpudWxsLCJhY2NvdW50X2lkIjoiODI0MjcwNWYtMzViNS00ZDcxLThlMTktYzVhNDFhYzJlMGE0IiwiYWNjb3VudF9ncm91cF9pZCI6bnVsbH0seyJpZCI6ImZjYzE3MTY4LWRmNTQtNDIyMy04MzYxLTY4NTlkZmNmMzU2NSIsInBlcm1pdHRlZV90eXBlIjoiYWNjb3VudCIsInZhbHVlIjp7Im5hbWUiOiJvYi1pYW06dG9rZW4iLCJzZXJ2aWNlIjoib2ItaWFtIiwiYWN0aW9ucyI6WyJjcmVhdGUiLCJyZWFkIl0sInJlc291cmNlX3R5cGUiOiJ0b2tlbiIsInJlc291cmNlIjp7ImFjY291bnRfaWQiOiJzZWxmIn19LCJjcmVhdGVkX2F0IjoiMjAyMy0xMS0wMlQwODo1MTo0Mi43NzFaIiwidXBkYXRlZF9hdCI6IjIwMjMtMTEtMDJUMDg6NTE6NDIuNzcxWiIsImRlbGV0ZWRfYXQiOm51bGwsImFjY291bnRfaWQiOiI4MjQyNzA1Zi0zNWI1LTRkNzEtOGUxOS1jNWE0MWFjMmUwYTQiLCJhY2NvdW50X2dyb3VwX2lkIjpudWxsfV19.tfqYJop4iJNlIbBVztf7DFfVhaYAFnUGDhLjik2OGA4',
|
|
7
|
+
);
|
|
8
|
+
(async () => {
|
|
9
|
+
try {
|
|
10
|
+
const res = await OB_BMS_SDK.client.sensorsIndex('mock');
|
|
11
|
+
console.dir({ x: res.data.data[0] }, { depth: null });
|
|
12
|
+
} catch (err) {
|
|
13
|
+
console.log(err);
|
|
14
|
+
}
|
|
15
|
+
})();
|