ob-bms-sdk 0.0.62 → 0.0.63

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 CHANGED
@@ -1373,6 +1373,87 @@ export interface RateDetail {
1373
1373
  */
1374
1374
  'en': string;
1375
1375
  }
1376
+ /**
1377
+ *
1378
+ * @export
1379
+ * @interface SensorData
1380
+ */
1381
+ export interface SensorData {
1382
+ /**
1383
+ *
1384
+ * @type {string}
1385
+ * @memberof SensorData
1386
+ */
1387
+ 'tower_id': string;
1388
+ /**
1389
+ *
1390
+ * @type {string}
1391
+ * @memberof SensorData
1392
+ */
1393
+ 'floor_id': string;
1394
+ /**
1395
+ *
1396
+ * @type {string}
1397
+ * @memberof SensorData
1398
+ */
1399
+ 'zone_id': string;
1400
+ /**
1401
+ *
1402
+ * @type {SensorType}
1403
+ * @memberof SensorData
1404
+ */
1405
+ 'sensor_type': SensorType;
1406
+ /**
1407
+ *
1408
+ * @type {string}
1409
+ * @memberof SensorData
1410
+ */
1411
+ 'value': string;
1412
+ /**
1413
+ *
1414
+ * @type {string}
1415
+ * @memberof SensorData
1416
+ */
1417
+ 'unit': string;
1418
+ /**
1419
+ *
1420
+ * @type {string}
1421
+ * @memberof SensorData
1422
+ */
1423
+ 'updated_at': string;
1424
+ }
1425
+
1426
+
1427
+ /**
1428
+ *
1429
+ * @export
1430
+ * @enum {string}
1431
+ */
1432
+
1433
+ export const SensorType = {
1434
+ Pm25: 'pm25',
1435
+ Pm10: 'pm10',
1436
+ Co2: 'co2',
1437
+ Temperature: 'temperature',
1438
+ Humidity: 'humidity'
1439
+ } as const;
1440
+
1441
+ export type SensorType = typeof SensorType[keyof typeof SensorType];
1442
+
1443
+
1444
+ /**
1445
+ *
1446
+ * @export
1447
+ * @interface SensorsIndexQuery
1448
+ */
1449
+ export interface SensorsIndexQuery {
1450
+ /**
1451
+ *
1452
+ * @type {string}
1453
+ * @memberof SensorsIndexQuery
1454
+ */
1455
+ 'tower_id': string;
1456
+ }
1376
1457
  /**
1377
1458
  *
1378
1459
  * @export
@@ -2330,6 +2411,19 @@ export interface WebhookCreateBodyPayload {
2330
2411
  */
2331
2412
  'inviteID': string;
2332
2413
  }
2414
+ /**
2415
+ *
2416
+ * @export
2417
+ * @interface WrappedArrayResponseSensorsIndexResponseData
2418
+ */
2419
+ export interface WrappedArrayResponseSensorsIndexResponseData {
2420
+ /**
2421
+ *
2422
+ * @type {Array<SensorData>}
2423
+ * @memberof WrappedArrayResponseSensorsIndexResponseData
2424
+ */
2425
+ 'data': Array<SensorData>;
2426
+ }
2333
2427
  /**
2334
2428
  *
2335
2429
  * @export
@@ -3662,6 +3756,42 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
3662
3756
 
3663
3757
 
3664
3758
 
3759
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3760
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3761
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3762
+
3763
+ return {
3764
+ url: toPathString(localVarUrlObj),
3765
+ options: localVarRequestOptions,
3766
+ };
3767
+ },
3768
+ /**
3769
+ *
3770
+ * @param {string} towerId
3771
+ * @param {*} [options] Override http request option.
3772
+ * @throws {RequiredError}
3773
+ */
3774
+ sensorsIndex: async (towerId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3775
+ // verify required parameter 'towerId' is not null or undefined
3776
+ assertParamExists('sensorsIndex', 'towerId', towerId)
3777
+ const localVarPath = `/sensors`;
3778
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3779
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3780
+ let baseOptions;
3781
+ if (configuration) {
3782
+ baseOptions = configuration.baseOptions;
3783
+ }
3784
+
3785
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
3786
+ const localVarHeaderParameter = {} as any;
3787
+ const localVarQueryParameter = {} as any;
3788
+
3789
+ if (towerId !== undefined) {
3790
+ localVarQueryParameter['tower_id'] = towerId;
3791
+ }
3792
+
3793
+
3794
+
3665
3795
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3666
3796
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3667
3797
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -4101,6 +4231,16 @@ export const DefaultApiFp = function(configuration?: Configuration) {
4101
4231
  const localVarAxiosArgs = await localVarAxiosParamCreator.passesShow(visitScheduleId, options);
4102
4232
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4103
4233
  },
4234
+ /**
4235
+ *
4236
+ * @param {string} towerId
4237
+ * @param {*} [options] Override http request option.
4238
+ * @throws {RequiredError}
4239
+ */
4240
+ async sensorsIndex(towerId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedArrayResponseSensorsIndexResponseData>> {
4241
+ const localVarAxiosArgs = await localVarAxiosParamCreator.sensorsIndex(towerId, options);
4242
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4243
+ },
4104
4244
  /**
4105
4245
  *
4106
4246
  * @param {ServiceRequestBody} serviceRequestBody
@@ -4345,6 +4485,15 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
4345
4485
  passesShow(visitScheduleId: string, options?: any): AxiosPromise<WrappedResponseShowPassResponseOrNull> {
4346
4486
  return localVarFp.passesShow(visitScheduleId, options).then((request) => request(axios, basePath));
4347
4487
  },
4488
+ /**
4489
+ *
4490
+ * @param {string} towerId
4491
+ * @param {*} [options] Override http request option.
4492
+ * @throws {RequiredError}
4493
+ */
4494
+ sensorsIndex(towerId: string, options?: any): AxiosPromise<WrappedArrayResponseSensorsIndexResponseData> {
4495
+ return localVarFp.sensorsIndex(towerId, options).then((request) => request(axios, basePath));
4496
+ },
4348
4497
  /**
4349
4498
  *
4350
4499
  * @param {ServiceRequestBody} serviceRequestBody
@@ -4616,6 +4765,17 @@ export class DefaultApi extends BaseAPI {
4616
4765
  return DefaultApiFp(this.configuration).passesShow(visitScheduleId, options).then((request) => request(this.axios, this.basePath));
4617
4766
  }
4618
4767
 
4768
+ /**
4769
+ *
4770
+ * @param {string} towerId
4771
+ * @param {*} [options] Override http request option.
4772
+ * @throws {RequiredError}
4773
+ * @memberof DefaultApi
4774
+ */
4775
+ public sensorsIndex(towerId: string, options?: AxiosRequestConfig) {
4776
+ return DefaultApiFp(this.configuration).sensorsIndex(towerId, options).then((request) => request(this.axios, this.basePath));
4777
+ }
4778
+
4619
4779
  /**
4620
4780
  *
4621
4781
  * @param {ServiceRequestBody} serviceRequestBody
package/dist/api/api.d.ts CHANGED
@@ -1362,6 +1362,81 @@ export interface RateDetail {
1362
1362
  */
1363
1363
  'en': string;
1364
1364
  }
1365
+ /**
1366
+ *
1367
+ * @export
1368
+ * @interface SensorData
1369
+ */
1370
+ export interface SensorData {
1371
+ /**
1372
+ *
1373
+ * @type {string}
1374
+ * @memberof SensorData
1375
+ */
1376
+ 'tower_id': string;
1377
+ /**
1378
+ *
1379
+ * @type {string}
1380
+ * @memberof SensorData
1381
+ */
1382
+ 'floor_id': string;
1383
+ /**
1384
+ *
1385
+ * @type {string}
1386
+ * @memberof SensorData
1387
+ */
1388
+ 'zone_id': string;
1389
+ /**
1390
+ *
1391
+ * @type {SensorType}
1392
+ * @memberof SensorData
1393
+ */
1394
+ 'sensor_type': SensorType;
1395
+ /**
1396
+ *
1397
+ * @type {string}
1398
+ * @memberof SensorData
1399
+ */
1400
+ 'value': string;
1401
+ /**
1402
+ *
1403
+ * @type {string}
1404
+ * @memberof SensorData
1405
+ */
1406
+ 'unit': string;
1407
+ /**
1408
+ *
1409
+ * @type {string}
1410
+ * @memberof SensorData
1411
+ */
1412
+ 'updated_at': string;
1413
+ }
1414
+ /**
1415
+ *
1416
+ * @export
1417
+ * @enum {string}
1418
+ */
1419
+ export declare const SensorType: {
1420
+ readonly Pm25: "pm25";
1421
+ readonly Pm10: "pm10";
1422
+ readonly Co2: "co2";
1423
+ readonly Temperature: "temperature";
1424
+ readonly Humidity: "humidity";
1425
+ };
1426
+ export type SensorType = typeof SensorType[keyof typeof SensorType];
1427
+ /**
1428
+ *
1429
+ * @export
1430
+ * @interface SensorsIndexQuery
1431
+ */
1432
+ export interface SensorsIndexQuery {
1433
+ /**
1434
+ *
1435
+ * @type {string}
1436
+ * @memberof SensorsIndexQuery
1437
+ */
1438
+ 'tower_id': string;
1439
+ }
1365
1440
  /**
1366
1441
  *
1367
1442
  * @export
@@ -2316,6 +2391,19 @@ export interface WebhookCreateBodyPayload {
2316
2391
  */
2317
2392
  'inviteID': string;
2318
2393
  }
2394
+ /**
2395
+ *
2396
+ * @export
2397
+ * @interface WrappedArrayResponseSensorsIndexResponseData
2398
+ */
2399
+ export interface WrappedArrayResponseSensorsIndexResponseData {
2400
+ /**
2401
+ *
2402
+ * @type {Array<SensorData>}
2403
+ * @memberof WrappedArrayResponseSensorsIndexResponseData
2404
+ */
2405
+ 'data': Array<SensorData>;
2406
+ }
2319
2407
  /**
2320
2408
  *
2321
2409
  * @export
@@ -3139,6 +3227,13 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
3139
3227
  * @throws {RequiredError}
3140
3228
  */
3141
3229
  passesShow: (visitScheduleId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
3230
+ /**
3231
+ *
3232
+ * @param {string} towerId
3233
+ * @param {*} [options] Override http request option.
3234
+ * @throws {RequiredError}
3235
+ */
3236
+ sensorsIndex: (towerId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
3142
3237
  /**
3143
3238
  *
3144
3239
  * @param {ServiceRequestBody} serviceRequestBody
@@ -3324,6 +3419,13 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
3324
3419
  * @throws {RequiredError}
3325
3420
  */
3326
3421
  passesShow(visitScheduleId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedResponseShowPassResponseOrNull>>;
3422
+ /**
3423
+ *
3424
+ * @param {string} towerId
3425
+ * @param {*} [options] Override http request option.
3426
+ * @throws {RequiredError}
3427
+ */
3428
+ sensorsIndex(towerId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedArrayResponseSensorsIndexResponseData>>;
3327
3429
  /**
3328
3430
  *
3329
3431
  * @param {ServiceRequestBody} serviceRequestBody
@@ -3509,6 +3611,13 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
3509
3611
  * @throws {RequiredError}
3510
3612
  */
3511
3613
  passesShow(visitScheduleId: string, options?: any): AxiosPromise<WrappedResponseShowPassResponseOrNull>;
3614
+ /**
3615
+ *
3616
+ * @param {string} towerId
3617
+ * @param {*} [options] Override http request option.
3618
+ * @throws {RequiredError}
3619
+ */
3620
+ sensorsIndex(towerId: string, options?: any): AxiosPromise<WrappedArrayResponseSensorsIndexResponseData>;
3512
3621
  /**
3513
3622
  *
3514
3623
  * @param {ServiceRequestBody} serviceRequestBody
@@ -3713,6 +3822,14 @@ export declare class DefaultApi extends BaseAPI {
3713
3822
  * @memberof DefaultApi
3714
3823
  */
3715
3824
  passesShow(visitScheduleId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<WrappedResponseShowPassResponseOrNull, any>>;
3825
+ /**
3826
+ *
3827
+ * @param {string} towerId
3828
+ * @param {*} [options] Override http request option.
3829
+ * @throws {RequiredError}
3830
+ * @memberof DefaultApi
3831
+ */
3832
+ sensorsIndex(towerId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<WrappedArrayResponseSensorsIndexResponseData, any>>;
3716
3833
  /**
3717
3834
  *
3718
3835
  * @param {ServiceRequestBody} serviceRequestBody
package/dist/api/api.js CHANGED
@@ -25,7 +25,7 @@ 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.ParkingTicketsIndexTypeEnum = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.WrappedResponsePassConsentResponseDataStatusEnum = exports.WrappedResponseNullDataEnum = exports.ShowPassResponseStatusEnum = exports.PassDataStatusEnum = exports.PassConsentResponseStatusEnum = exports.ParkingTicketsIndexQueryTypeEnum = void 0;
28
+ exports.ParkingTicketsIndexTypeEnum = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.WrappedResponsePassConsentResponseDataStatusEnum = exports.WrappedResponseNullDataEnum = exports.ShowPassResponseStatusEnum = exports.SensorType = exports.PassDataStatusEnum = exports.PassConsentResponseStatusEnum = exports.ParkingTicketsIndexQueryTypeEnum = void 0;
29
29
  const axios_1 = __importDefault(require("axios"));
30
30
  // Some imports not used depending on template conditions
31
31
  // @ts-ignore
@@ -45,6 +45,18 @@ exports.PassDataStatusEnum = {
45
45
  Pending: 'pending',
46
46
  Confirmed: 'confirmed'
47
47
  };
48
+ /**
49
+ *
50
+ * @export
51
+ * @enum {string}
52
+ */
53
+ exports.SensorType = {
54
+ Pm25: 'pm25',
55
+ Pm10: 'pm10',
56
+ Co2: 'co2',
57
+ Temperature: 'temperature',
58
+ Humidity: 'humidity'
59
+ };
48
60
  exports.ShowPassResponseStatusEnum = {
49
61
  Pending: 'pending',
50
62
  Confirmed: 'confirmed'
@@ -597,6 +609,36 @@ const DefaultApiAxiosParamCreator = function (configuration) {
597
609
  options: localVarRequestOptions,
598
610
  };
599
611
  }),
612
+ /**
613
+ *
614
+ * @param {string} towerId
615
+ * @param {*} [options] Override http request option.
616
+ * @throws {RequiredError}
617
+ */
618
+ sensorsIndex: (towerId, options = {}) => __awaiter(this, void 0, void 0, function* () {
619
+ // verify required parameter 'towerId' is not null or undefined
620
+ (0, common_1.assertParamExists)('sensorsIndex', 'towerId', towerId);
621
+ const localVarPath = `/sensors`;
622
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
623
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
624
+ let baseOptions;
625
+ if (configuration) {
626
+ baseOptions = configuration.baseOptions;
627
+ }
628
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
629
+ const localVarHeaderParameter = {};
630
+ const localVarQueryParameter = {};
631
+ if (towerId !== undefined) {
632
+ localVarQueryParameter['tower_id'] = towerId;
633
+ }
634
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
635
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
636
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
637
+ return {
638
+ url: (0, common_1.toPathString)(localVarUrlObj),
639
+ options: localVarRequestOptions,
640
+ };
641
+ }),
600
642
  /**
601
643
  *
602
644
  * @param {ServiceRequestBody} serviceRequestBody
@@ -1021,6 +1063,18 @@ const DefaultApiFp = function (configuration) {
1021
1063
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1022
1064
  });
1023
1065
  },
1066
+ /**
1067
+ *
1068
+ * @param {string} towerId
1069
+ * @param {*} [options] Override http request option.
1070
+ * @throws {RequiredError}
1071
+ */
1072
+ sensorsIndex(towerId, options) {
1073
+ return __awaiter(this, void 0, void 0, function* () {
1074
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.sensorsIndex(towerId, options);
1075
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1076
+ });
1077
+ },
1024
1078
  /**
1025
1079
  *
1026
1080
  * @param {ServiceRequestBody} serviceRequestBody
@@ -1279,6 +1333,15 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
1279
1333
  passesShow(visitScheduleId, options) {
1280
1334
  return localVarFp.passesShow(visitScheduleId, options).then((request) => request(axios, basePath));
1281
1335
  },
1336
+ /**
1337
+ *
1338
+ * @param {string} towerId
1339
+ * @param {*} [options] Override http request option.
1340
+ * @throws {RequiredError}
1341
+ */
1342
+ sensorsIndex(towerId, options) {
1343
+ return localVarFp.sensorsIndex(towerId, options).then((request) => request(axios, basePath));
1344
+ },
1282
1345
  /**
1283
1346
  *
1284
1347
  * @param {ServiceRequestBody} serviceRequestBody
@@ -1533,6 +1596,16 @@ class DefaultApi extends base_1.BaseAPI {
1533
1596
  passesShow(visitScheduleId, options) {
1534
1597
  return (0, exports.DefaultApiFp)(this.configuration).passesShow(visitScheduleId, options).then((request) => request(this.axios, this.basePath));
1535
1598
  }
1599
+ /**
1600
+ *
1601
+ * @param {string} towerId
1602
+ * @param {*} [options] Override http request option.
1603
+ * @throws {RequiredError}
1604
+ * @memberof DefaultApi
1605
+ */
1606
+ sensorsIndex(towerId, options) {
1607
+ return (0, exports.DefaultApiFp)(this.configuration).sensorsIndex(towerId, options).then((request) => request(this.axios, this.basePath));
1608
+ }
1536
1609
  /**
1537
1610
  *
1538
1611
  * @param {ServiceRequestBody} serviceRequestBody
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ob-bms-sdk",
3
- "version": "0.0.62",
3
+ "version": "0.0.63",
4
4
  "description": "API interfaces for OB BMS",
5
5
  "main": "./dist/index.js",
6
6
  "license": "MIT"
package/test.ts CHANGED
@@ -1,14 +1,14 @@
1
- import * as OB_BMS_SDK from './dist';
1
+ import * as OB_BMS_SDK from './index';
2
2
 
3
3
  // OB_BMS_SDK.setAcessToken('789');
4
- OB_BMS_SDK.setBaseUrl('http://dev.glorymtel.xyz/ob-bms');
4
+ OB_BMS_SDK.setBaseUrl('http://localhost:3000');
5
5
  OB_BMS_SDK.setAcessToken(
6
6
  'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiI4MjQyNzA1Zi0zNWI1LTRkNz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seyJpZCI6ImZjYzE3MTY4LWRmNTQtNDIyMy04MzYxLTY4NTlkZmNmMzU2NSIsInBlcm1pdHRlZV90eXBlIjoiYWNjb3VudCIsInZhbHVlIjp7Im5hbWUiOiJvYi1pYW06dG9rZW4iLCJzZXJ2aWNlIjoib2ItaWFtIiwiYWN0aW9ucyI6WyJjcmVhdGUiLCJyZWFkIl0sInJlc291cmNlX3R5cGUiOiJ0b2tlbiIsInJlc291cmNlIjp7ImFjY291bnRfaWQiOiJzZWxmIn19LCJjcmVhdGVkX2F0IjoiMjAyMy0xMS0wMlQwODo1MTo0Mi43NzFaIiwidXBkYXRlZF9hdCI6IjIwMjMtMTEtMDJUMDg6NTE6NDIuNzcxWiIsImRlbGV0ZWRfYXQiOm51bGwsImFjY291bnRfaWQiOiI4MjQyNzA1Zi0zNWI1LTRkNzEtOGUxOS1jNWE0MWFjMmUwYTQiLCJhY2NvdW50X2dyb3VwX2lkIjpudWxsfV19.tfqYJop4iJNlIbBVztf7DFfVhaYAFnUGDhLjik2OGA4',
7
7
  );
8
8
  (async () => {
9
9
  try {
10
- const res = await OB_BMS_SDK.client.membersIndex('t.shin@pjoe.com', {});
11
- console.dir(res.data, { depth: null });
10
+ const res = await OB_BMS_SDK.client.sensorsIndex('mock');
11
+ console.dir({ x: res.data.data[0] }, { depth: null });
12
12
  } catch (err) {
13
13
  console.log(err);
14
14
  }