ob-bms-sdk 0.0.64 → 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 +115 -9
- package/dist/api/api.d.ts +108 -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
|
|
@@ -764,6 +783,12 @@ export interface MemberIndexInterface {
|
|
|
764
783
|
* @memberof MemberIndexInterface
|
|
765
784
|
*/
|
|
766
785
|
'redemption_authorized': boolean;
|
|
786
|
+
/**
|
|
787
|
+
*
|
|
788
|
+
* @type {Tenant}
|
|
789
|
+
* @memberof MemberIndexInterface
|
|
790
|
+
*/
|
|
791
|
+
'tenant': Tenant | null;
|
|
767
792
|
}
|
|
768
793
|
/**
|
|
769
794
|
*
|
|
@@ -1453,6 +1478,12 @@ export interface SensorsIndexQuery {
|
|
|
1453
1478
|
* @memberof SensorsIndexQuery
|
|
1454
1479
|
*/
|
|
1455
1480
|
'tower_id': string;
|
|
1481
|
+
/**
|
|
1482
|
+
*
|
|
1483
|
+
* @type {string}
|
|
1484
|
+
* @memberof SensorsIndexQuery
|
|
1485
|
+
*/
|
|
1486
|
+
'member_id'?: string;
|
|
1456
1487
|
}
|
|
1457
1488
|
/**
|
|
1458
1489
|
*
|
|
@@ -1928,6 +1959,73 @@ export interface SyncResultSyncJobErrorInner {
|
|
|
1928
1959
|
*/
|
|
1929
1960
|
'type': string;
|
|
1930
1961
|
}
|
|
1962
|
+
/**
|
|
1963
|
+
*
|
|
1964
|
+
* @export
|
|
1965
|
+
* @interface Tenant
|
|
1966
|
+
*/
|
|
1967
|
+
export interface Tenant {
|
|
1968
|
+
/**
|
|
1969
|
+
*
|
|
1970
|
+
* @type {string}
|
|
1971
|
+
* @memberof Tenant
|
|
1972
|
+
*/
|
|
1973
|
+
'id'?: string;
|
|
1974
|
+
/**
|
|
1975
|
+
*
|
|
1976
|
+
* @type {string}
|
|
1977
|
+
* @memberof Tenant
|
|
1978
|
+
*/
|
|
1979
|
+
'uid'?: string;
|
|
1980
|
+
/**
|
|
1981
|
+
*
|
|
1982
|
+
* @type {string}
|
|
1983
|
+
* @memberof Tenant
|
|
1984
|
+
*/
|
|
1985
|
+
'name'?: string;
|
|
1986
|
+
/**
|
|
1987
|
+
*
|
|
1988
|
+
* @type {PrismaJsonValue}
|
|
1989
|
+
* @memberof Tenant
|
|
1990
|
+
*/
|
|
1991
|
+
'display_name'?: PrismaJsonValue | null;
|
|
1992
|
+
/**
|
|
1993
|
+
*
|
|
1994
|
+
* @type {string}
|
|
1995
|
+
* @memberof Tenant
|
|
1996
|
+
*/
|
|
1997
|
+
'email'?: string;
|
|
1998
|
+
/**
|
|
1999
|
+
*
|
|
2000
|
+
* @type {string}
|
|
2001
|
+
* @memberof Tenant
|
|
2002
|
+
*/
|
|
2003
|
+
'phone_number'?: string;
|
|
2004
|
+
/**
|
|
2005
|
+
*
|
|
2006
|
+
* @type {string}
|
|
2007
|
+
* @memberof Tenant
|
|
2008
|
+
*/
|
|
2009
|
+
'address'?: string;
|
|
2010
|
+
/**
|
|
2011
|
+
*
|
|
2012
|
+
* @type {PrismaJsonValue}
|
|
2013
|
+
* @memberof Tenant
|
|
2014
|
+
*/
|
|
2015
|
+
'metadata'?: PrismaJsonValue | null;
|
|
2016
|
+
/**
|
|
2017
|
+
*
|
|
2018
|
+
* @type {string}
|
|
2019
|
+
* @memberof Tenant
|
|
2020
|
+
*/
|
|
2021
|
+
'created_at'?: string;
|
|
2022
|
+
/**
|
|
2023
|
+
*
|
|
2024
|
+
* @type {string}
|
|
2025
|
+
* @memberof Tenant
|
|
2026
|
+
*/
|
|
2027
|
+
'updated_at'?: string;
|
|
2028
|
+
}
|
|
1931
2029
|
/**
|
|
1932
2030
|
*
|
|
1933
2031
|
* @export
|
|
@@ -2479,10 +2577,10 @@ export interface WebhookCreateBodyPayload {
|
|
|
2479
2577
|
export interface WrappedArrayResponseSensorsIndexResponseData {
|
|
2480
2578
|
/**
|
|
2481
2579
|
*
|
|
2482
|
-
* @type {Array<
|
|
2580
|
+
* @type {Array<FloorSensorData>}
|
|
2483
2581
|
* @memberof WrappedArrayResponseSensorsIndexResponseData
|
|
2484
2582
|
*/
|
|
2485
|
-
'data': Array<
|
|
2583
|
+
'data': Array<FloorSensorData>;
|
|
2486
2584
|
}
|
|
2487
2585
|
/**
|
|
2488
2586
|
*
|
|
@@ -3914,10 +4012,11 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
3914
4012
|
/**
|
|
3915
4013
|
*
|
|
3916
4014
|
* @param {string} towerId
|
|
4015
|
+
* @param {string} [memberId]
|
|
3917
4016
|
* @param {*} [options] Override http request option.
|
|
3918
4017
|
* @throws {RequiredError}
|
|
3919
4018
|
*/
|
|
3920
|
-
sensorsIndex: async (towerId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4019
|
+
sensorsIndex: async (towerId: string, memberId?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3921
4020
|
// verify required parameter 'towerId' is not null or undefined
|
|
3922
4021
|
assertParamExists('sensorsIndex', 'towerId', towerId)
|
|
3923
4022
|
const localVarPath = `/sensors`;
|
|
@@ -3936,6 +4035,10 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
3936
4035
|
localVarQueryParameter['tower_id'] = towerId;
|
|
3937
4036
|
}
|
|
3938
4037
|
|
|
4038
|
+
if (memberId !== undefined) {
|
|
4039
|
+
localVarQueryParameter['member_id'] = memberId;
|
|
4040
|
+
}
|
|
4041
|
+
|
|
3939
4042
|
|
|
3940
4043
|
|
|
3941
4044
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -4438,11 +4541,12 @@ export const DefaultApiFp = function(configuration?: Configuration) {
|
|
|
4438
4541
|
/**
|
|
4439
4542
|
*
|
|
4440
4543
|
* @param {string} towerId
|
|
4544
|
+
* @param {string} [memberId]
|
|
4441
4545
|
* @param {*} [options] Override http request option.
|
|
4442
4546
|
* @throws {RequiredError}
|
|
4443
4547
|
*/
|
|
4444
|
-
async sensorsIndex(towerId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedArrayResponseSensorsIndexResponseData>> {
|
|
4445
|
-
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);
|
|
4446
4550
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
4447
4551
|
},
|
|
4448
4552
|
/**
|
|
@@ -4707,11 +4811,12 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
|
|
|
4707
4811
|
/**
|
|
4708
4812
|
*
|
|
4709
4813
|
* @param {string} towerId
|
|
4814
|
+
* @param {string} [memberId]
|
|
4710
4815
|
* @param {*} [options] Override http request option.
|
|
4711
4816
|
* @throws {RequiredError}
|
|
4712
4817
|
*/
|
|
4713
|
-
sensorsIndex(towerId: string, options?: any): AxiosPromise<WrappedArrayResponseSensorsIndexResponseData> {
|
|
4714
|
-
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));
|
|
4715
4820
|
},
|
|
4716
4821
|
/**
|
|
4717
4822
|
*
|
|
@@ -5001,12 +5106,13 @@ export class DefaultApi extends BaseAPI {
|
|
|
5001
5106
|
/**
|
|
5002
5107
|
*
|
|
5003
5108
|
* @param {string} towerId
|
|
5109
|
+
* @param {string} [memberId]
|
|
5004
5110
|
* @param {*} [options] Override http request option.
|
|
5005
5111
|
* @throws {RequiredError}
|
|
5006
5112
|
* @memberof DefaultApi
|
|
5007
5113
|
*/
|
|
5008
|
-
public sensorsIndex(towerId: string, options?: AxiosRequestConfig) {
|
|
5009
|
-
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));
|
|
5010
5116
|
}
|
|
5011
5117
|
|
|
5012
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
|
|
@@ -762,6 +781,12 @@ export interface MemberIndexInterface {
|
|
|
762
781
|
* @memberof MemberIndexInterface
|
|
763
782
|
*/
|
|
764
783
|
'redemption_authorized': boolean;
|
|
784
|
+
/**
|
|
785
|
+
*
|
|
786
|
+
* @type {Tenant}
|
|
787
|
+
* @memberof MemberIndexInterface
|
|
788
|
+
*/
|
|
789
|
+
'tenant': Tenant | null;
|
|
765
790
|
}
|
|
766
791
|
/**
|
|
767
792
|
*
|
|
@@ -1436,6 +1461,12 @@ export interface SensorsIndexQuery {
|
|
|
1436
1461
|
* @memberof SensorsIndexQuery
|
|
1437
1462
|
*/
|
|
1438
1463
|
'tower_id': string;
|
|
1464
|
+
/**
|
|
1465
|
+
*
|
|
1466
|
+
* @type {string}
|
|
1467
|
+
* @memberof SensorsIndexQuery
|
|
1468
|
+
*/
|
|
1469
|
+
'member_id'?: string;
|
|
1439
1470
|
}
|
|
1440
1471
|
/**
|
|
1441
1472
|
*
|
|
@@ -1902,6 +1933,73 @@ export interface SyncResultSyncJobErrorInner {
|
|
|
1902
1933
|
*/
|
|
1903
1934
|
'type': string;
|
|
1904
1935
|
}
|
|
1936
|
+
/**
|
|
1937
|
+
*
|
|
1938
|
+
* @export
|
|
1939
|
+
* @interface Tenant
|
|
1940
|
+
*/
|
|
1941
|
+
export interface Tenant {
|
|
1942
|
+
/**
|
|
1943
|
+
*
|
|
1944
|
+
* @type {string}
|
|
1945
|
+
* @memberof Tenant
|
|
1946
|
+
*/
|
|
1947
|
+
'id'?: string;
|
|
1948
|
+
/**
|
|
1949
|
+
*
|
|
1950
|
+
* @type {string}
|
|
1951
|
+
* @memberof Tenant
|
|
1952
|
+
*/
|
|
1953
|
+
'uid'?: string;
|
|
1954
|
+
/**
|
|
1955
|
+
*
|
|
1956
|
+
* @type {string}
|
|
1957
|
+
* @memberof Tenant
|
|
1958
|
+
*/
|
|
1959
|
+
'name'?: string;
|
|
1960
|
+
/**
|
|
1961
|
+
*
|
|
1962
|
+
* @type {PrismaJsonValue}
|
|
1963
|
+
* @memberof Tenant
|
|
1964
|
+
*/
|
|
1965
|
+
'display_name'?: PrismaJsonValue | null;
|
|
1966
|
+
/**
|
|
1967
|
+
*
|
|
1968
|
+
* @type {string}
|
|
1969
|
+
* @memberof Tenant
|
|
1970
|
+
*/
|
|
1971
|
+
'email'?: string;
|
|
1972
|
+
/**
|
|
1973
|
+
*
|
|
1974
|
+
* @type {string}
|
|
1975
|
+
* @memberof Tenant
|
|
1976
|
+
*/
|
|
1977
|
+
'phone_number'?: string;
|
|
1978
|
+
/**
|
|
1979
|
+
*
|
|
1980
|
+
* @type {string}
|
|
1981
|
+
* @memberof Tenant
|
|
1982
|
+
*/
|
|
1983
|
+
'address'?: string;
|
|
1984
|
+
/**
|
|
1985
|
+
*
|
|
1986
|
+
* @type {PrismaJsonValue}
|
|
1987
|
+
* @memberof Tenant
|
|
1988
|
+
*/
|
|
1989
|
+
'metadata'?: PrismaJsonValue | null;
|
|
1990
|
+
/**
|
|
1991
|
+
*
|
|
1992
|
+
* @type {string}
|
|
1993
|
+
* @memberof Tenant
|
|
1994
|
+
*/
|
|
1995
|
+
'created_at'?: string;
|
|
1996
|
+
/**
|
|
1997
|
+
*
|
|
1998
|
+
* @type {string}
|
|
1999
|
+
* @memberof Tenant
|
|
2000
|
+
*/
|
|
2001
|
+
'updated_at'?: string;
|
|
2002
|
+
}
|
|
1905
2003
|
/**
|
|
1906
2004
|
*
|
|
1907
2005
|
* @export
|
|
@@ -2453,10 +2551,10 @@ export interface WebhookCreateBodyPayload {
|
|
|
2453
2551
|
export interface WrappedArrayResponseSensorsIndexResponseData {
|
|
2454
2552
|
/**
|
|
2455
2553
|
*
|
|
2456
|
-
* @type {Array<
|
|
2554
|
+
* @type {Array<FloorSensorData>}
|
|
2457
2555
|
* @memberof WrappedArrayResponseSensorsIndexResponseData
|
|
2458
2556
|
*/
|
|
2459
|
-
'data': Array<
|
|
2557
|
+
'data': Array<FloorSensorData>;
|
|
2460
2558
|
}
|
|
2461
2559
|
/**
|
|
2462
2560
|
*
|
|
@@ -3370,10 +3468,11 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
3370
3468
|
/**
|
|
3371
3469
|
*
|
|
3372
3470
|
* @param {string} towerId
|
|
3471
|
+
* @param {string} [memberId]
|
|
3373
3472
|
* @param {*} [options] Override http request option.
|
|
3374
3473
|
* @throws {RequiredError}
|
|
3375
3474
|
*/
|
|
3376
|
-
sensorsIndex: (towerId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3475
|
+
sensorsIndex: (towerId: string, memberId?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3377
3476
|
/**
|
|
3378
3477
|
*
|
|
3379
3478
|
* @param {ServiceRequestBody} serviceRequestBody
|
|
@@ -3574,10 +3673,11 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
3574
3673
|
/**
|
|
3575
3674
|
*
|
|
3576
3675
|
* @param {string} towerId
|
|
3676
|
+
* @param {string} [memberId]
|
|
3577
3677
|
* @param {*} [options] Override http request option.
|
|
3578
3678
|
* @throws {RequiredError}
|
|
3579
3679
|
*/
|
|
3580
|
-
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>>;
|
|
3581
3681
|
/**
|
|
3582
3682
|
*
|
|
3583
3683
|
* @param {ServiceRequestBody} serviceRequestBody
|
|
@@ -3778,10 +3878,11 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
3778
3878
|
/**
|
|
3779
3879
|
*
|
|
3780
3880
|
* @param {string} towerId
|
|
3881
|
+
* @param {string} [memberId]
|
|
3781
3882
|
* @param {*} [options] Override http request option.
|
|
3782
3883
|
* @throws {RequiredError}
|
|
3783
3884
|
*/
|
|
3784
|
-
sensorsIndex(towerId: string, options?: any): AxiosPromise<WrappedArrayResponseSensorsIndexResponseData>;
|
|
3885
|
+
sensorsIndex(towerId: string, memberId?: string, options?: any): AxiosPromise<WrappedArrayResponseSensorsIndexResponseData>;
|
|
3785
3886
|
/**
|
|
3786
3887
|
*
|
|
3787
3888
|
* @param {ServiceRequestBody} serviceRequestBody
|
|
@@ -4001,11 +4102,12 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
4001
4102
|
/**
|
|
4002
4103
|
*
|
|
4003
4104
|
* @param {string} towerId
|
|
4105
|
+
* @param {string} [memberId]
|
|
4004
4106
|
* @param {*} [options] Override http request option.
|
|
4005
4107
|
* @throws {RequiredError}
|
|
4006
4108
|
* @memberof DefaultApi
|
|
4007
4109
|
*/
|
|
4008
|
-
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>>;
|
|
4009
4111
|
/**
|
|
4010
4112
|
*
|
|
4011
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');
|
|
4
|
+
OB_BMS_SDK.set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UxOjQyLjc3MVoiLCJkZWxldGVkX2F0IjpudWxsLCJhY2NvdW50X2lkIjoiODI0MjcwNWYtMzViNS00ZDcxLThlMTktYzVhNDFhYzJlMGE0IiwiYWNjb3VudF9ncm91cF9pZCI6bnVsbH0seyJpZCI6ImZjYzE3MTY4LWRmNTQtNDIyMy04MzYxLTY4NTlkZmNmMzU2NSIsInBlcm1pdHRlZV90eXBlIjoiYWNjb3VudCIsInZhbHVlIjp7Im5hbWUiOiJvYi1pYW06dG9rZW4iLCJzZXJ2aWNlIjoib2ItaWFtIiwiYWN0aW9ucyI6WyJjcmVhdGUiLCJyZWFkIl0sInJlc291cmNlX3R5cGUiOiJ0b2tlbiIsInJlc291cmNlIjp7ImFjY291bnRfaWQiOiJzZWxmIn19LCJjcmVhdGVkX2F0IjoiMjAyMy0xMS0wMlQwODo1MTo0Mi43NzFaIiwidXBkYXRlZF9hdCI6IjIwMjMtMTEtMDJUMDg6NTE6NDIuNzcxWiIsImRlbGV0ZWRfYXQiOm51bGwsImFjY291bnRfaWQiOiI4MjQyNzA1Zi0zNWI1LTRkNzEtOGUxOS1jNWE0MWFjMmUwYTQiLCJhY2NvdW50X2dyb3VwX2lkIjpudWxsfV19.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
|
+
})();
|