ob-bms-sdk 0.0.62 → 0.0.64
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 +416 -7
- package/dist/api/api.d.ts +310 -4
- package/dist/api/api.js +185 -8
- package/package.json +1 -1
- package/test.ts +0 -15
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
|
|
@@ -1495,6 +1576,66 @@ export interface ServiceRequestData {
|
|
|
1495
1576
|
*/
|
|
1496
1577
|
'id': string;
|
|
1497
1578
|
}
|
|
1579
|
+
/**
|
|
1580
|
+
*
|
|
1581
|
+
* @export
|
|
1582
|
+
* @interface ServiceRequestQuery
|
|
1583
|
+
*/
|
|
1584
|
+
export interface ServiceRequestQuery {
|
|
1585
|
+
/**
|
|
1586
|
+
*
|
|
1587
|
+
* @type {string}
|
|
1588
|
+
* @memberof ServiceRequestQuery
|
|
1589
|
+
*/
|
|
1590
|
+
'requester_id'?: string;
|
|
1591
|
+
/**
|
|
1592
|
+
*
|
|
1593
|
+
* @type {string}
|
|
1594
|
+
* @memberof ServiceRequestQuery
|
|
1595
|
+
*/
|
|
1596
|
+
'order_by'?: string;
|
|
1597
|
+
/**
|
|
1598
|
+
*
|
|
1599
|
+
* @type {string}
|
|
1600
|
+
* @memberof ServiceRequestQuery
|
|
1601
|
+
*/
|
|
1602
|
+
'order_direction'?: string;
|
|
1603
|
+
/**
|
|
1604
|
+
*
|
|
1605
|
+
* @type {number}
|
|
1606
|
+
* @memberof ServiceRequestQuery
|
|
1607
|
+
*/
|
|
1608
|
+
'page_number'?: number;
|
|
1609
|
+
/**
|
|
1610
|
+
*
|
|
1611
|
+
* @type {number}
|
|
1612
|
+
* @memberof ServiceRequestQuery
|
|
1613
|
+
*/
|
|
1614
|
+
'page_size'?: number;
|
|
1615
|
+
/**
|
|
1616
|
+
*
|
|
1617
|
+
* @type {ServiceRequestStatus}
|
|
1618
|
+
* @memberof ServiceRequestQuery
|
|
1619
|
+
*/
|
|
1620
|
+
'status'?: ServiceRequestStatus;
|
|
1621
|
+
}
|
|
1622
|
+
|
|
1623
|
+
|
|
1624
|
+
/**
|
|
1625
|
+
*
|
|
1626
|
+
* @export
|
|
1627
|
+
* @enum {string}
|
|
1628
|
+
*/
|
|
1629
|
+
|
|
1630
|
+
export const ServiceRequestStatus = {
|
|
1631
|
+
Submitted: 'submitted',
|
|
1632
|
+
InProgress: 'in_progress',
|
|
1633
|
+
Done: 'done'
|
|
1634
|
+
} as const;
|
|
1635
|
+
|
|
1636
|
+
export type ServiceRequestStatus = typeof ServiceRequestStatus[keyof typeof ServiceRequestStatus];
|
|
1637
|
+
|
|
1638
|
+
|
|
1498
1639
|
/**
|
|
1499
1640
|
*
|
|
1500
1641
|
* @export
|
|
@@ -2330,6 +2471,19 @@ export interface WebhookCreateBodyPayload {
|
|
|
2330
2471
|
*/
|
|
2331
2472
|
'inviteID': string;
|
|
2332
2473
|
}
|
|
2474
|
+
/**
|
|
2475
|
+
*
|
|
2476
|
+
* @export
|
|
2477
|
+
* @interface WrappedArrayResponseSensorsIndexResponseData
|
|
2478
|
+
*/
|
|
2479
|
+
export interface WrappedArrayResponseSensorsIndexResponseData {
|
|
2480
|
+
/**
|
|
2481
|
+
*
|
|
2482
|
+
* @type {Array<SensorData>}
|
|
2483
|
+
* @memberof WrappedArrayResponseSensorsIndexResponseData
|
|
2484
|
+
*/
|
|
2485
|
+
'data': Array<SensorData>;
|
|
2486
|
+
}
|
|
2333
2487
|
/**
|
|
2334
2488
|
*
|
|
2335
2489
|
* @export
|
|
@@ -2871,6 +3025,92 @@ export const WrappedResponsePassConsentResponseDataStatusEnum = {
|
|
|
2871
3025
|
|
|
2872
3026
|
export type WrappedResponsePassConsentResponseDataStatusEnum = typeof WrappedResponsePassConsentResponseDataStatusEnum[keyof typeof WrappedResponsePassConsentResponseDataStatusEnum];
|
|
2873
3027
|
|
|
3028
|
+
/**
|
|
3029
|
+
*
|
|
3030
|
+
* @export
|
|
3031
|
+
* @interface WrappedResponseServiceRequestData
|
|
3032
|
+
*/
|
|
3033
|
+
export interface WrappedResponseServiceRequestData {
|
|
3034
|
+
/**
|
|
3035
|
+
*
|
|
3036
|
+
* @type {WrappedResponseServiceRequestDataData}
|
|
3037
|
+
* @memberof WrappedResponseServiceRequestData
|
|
3038
|
+
*/
|
|
3039
|
+
'data': WrappedResponseServiceRequestDataData | null;
|
|
3040
|
+
}
|
|
3041
|
+
/**
|
|
3042
|
+
*
|
|
3043
|
+
* @export
|
|
3044
|
+
* @interface WrappedResponseServiceRequestDataData
|
|
3045
|
+
*/
|
|
3046
|
+
export interface WrappedResponseServiceRequestDataData {
|
|
3047
|
+
/**
|
|
3048
|
+
*
|
|
3049
|
+
* @type {string}
|
|
3050
|
+
* @memberof WrappedResponseServiceRequestDataData
|
|
3051
|
+
*/
|
|
3052
|
+
'updated_at': string;
|
|
3053
|
+
/**
|
|
3054
|
+
*
|
|
3055
|
+
* @type {string}
|
|
3056
|
+
* @memberof WrappedResponseServiceRequestDataData
|
|
3057
|
+
*/
|
|
3058
|
+
'created_at': string;
|
|
3059
|
+
/**
|
|
3060
|
+
*
|
|
3061
|
+
* @type {string}
|
|
3062
|
+
* @memberof WrappedResponseServiceRequestDataData
|
|
3063
|
+
*/
|
|
3064
|
+
'description': string;
|
|
3065
|
+
/**
|
|
3066
|
+
*
|
|
3067
|
+
* @type {string}
|
|
3068
|
+
* @memberof WrappedResponseServiceRequestDataData
|
|
3069
|
+
*/
|
|
3070
|
+
'status': string;
|
|
3071
|
+
/**
|
|
3072
|
+
*
|
|
3073
|
+
* @type {string}
|
|
3074
|
+
* @memberof WrappedResponseServiceRequestDataData
|
|
3075
|
+
*/
|
|
3076
|
+
'title': string;
|
|
3077
|
+
/**
|
|
3078
|
+
*
|
|
3079
|
+
* @type {string}
|
|
3080
|
+
* @memberof WrappedResponseServiceRequestDataData
|
|
3081
|
+
*/
|
|
3082
|
+
'requester_id': string;
|
|
3083
|
+
/**
|
|
3084
|
+
*
|
|
3085
|
+
* @type {IssueTypeData}
|
|
3086
|
+
* @memberof WrappedResponseServiceRequestDataData
|
|
3087
|
+
*/
|
|
3088
|
+
'issue_type': IssueTypeData;
|
|
3089
|
+
/**
|
|
3090
|
+
*
|
|
3091
|
+
* @type {FloorData}
|
|
3092
|
+
* @memberof WrappedResponseServiceRequestDataData
|
|
3093
|
+
*/
|
|
3094
|
+
'floor': FloorData;
|
|
3095
|
+
/**
|
|
3096
|
+
*
|
|
3097
|
+
* @type {TowerData}
|
|
3098
|
+
* @memberof WrappedResponseServiceRequestDataData
|
|
3099
|
+
*/
|
|
3100
|
+
'tower': TowerData;
|
|
3101
|
+
/**
|
|
3102
|
+
*
|
|
3103
|
+
* @type {Array<string>}
|
|
3104
|
+
* @memberof WrappedResponseServiceRequestDataData
|
|
3105
|
+
*/
|
|
3106
|
+
'image_url': Array<string>;
|
|
3107
|
+
/**
|
|
3108
|
+
*
|
|
3109
|
+
* @type {string}
|
|
3110
|
+
* @memberof WrappedResponseServiceRequestDataData
|
|
3111
|
+
*/
|
|
3112
|
+
'id': string;
|
|
3113
|
+
}
|
|
2874
3114
|
/**
|
|
2875
3115
|
*
|
|
2876
3116
|
* @export
|
|
@@ -3662,6 +3902,42 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
3662
3902
|
|
|
3663
3903
|
|
|
3664
3904
|
|
|
3905
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3906
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3907
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3908
|
+
|
|
3909
|
+
return {
|
|
3910
|
+
url: toPathString(localVarUrlObj),
|
|
3911
|
+
options: localVarRequestOptions,
|
|
3912
|
+
};
|
|
3913
|
+
},
|
|
3914
|
+
/**
|
|
3915
|
+
*
|
|
3916
|
+
* @param {string} towerId
|
|
3917
|
+
* @param {*} [options] Override http request option.
|
|
3918
|
+
* @throws {RequiredError}
|
|
3919
|
+
*/
|
|
3920
|
+
sensorsIndex: async (towerId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3921
|
+
// verify required parameter 'towerId' is not null or undefined
|
|
3922
|
+
assertParamExists('sensorsIndex', 'towerId', towerId)
|
|
3923
|
+
const localVarPath = `/sensors`;
|
|
3924
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3925
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3926
|
+
let baseOptions;
|
|
3927
|
+
if (configuration) {
|
|
3928
|
+
baseOptions = configuration.baseOptions;
|
|
3929
|
+
}
|
|
3930
|
+
|
|
3931
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
3932
|
+
const localVarHeaderParameter = {} as any;
|
|
3933
|
+
const localVarQueryParameter = {} as any;
|
|
3934
|
+
|
|
3935
|
+
if (towerId !== undefined) {
|
|
3936
|
+
localVarQueryParameter['tower_id'] = towerId;
|
|
3937
|
+
}
|
|
3938
|
+
|
|
3939
|
+
|
|
3940
|
+
|
|
3665
3941
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3666
3942
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3667
3943
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -3709,10 +3985,15 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
3709
3985
|
/**
|
|
3710
3986
|
*
|
|
3711
3987
|
* @param {string} [requesterId]
|
|
3988
|
+
* @param {string} [orderBy]
|
|
3989
|
+
* @param {string} [orderDirection]
|
|
3990
|
+
* @param {number} [pageNumber]
|
|
3991
|
+
* @param {number} [pageSize]
|
|
3992
|
+
* @param {ServiceRequestStatus} [status]
|
|
3712
3993
|
* @param {*} [options] Override http request option.
|
|
3713
3994
|
* @throws {RequiredError}
|
|
3714
3995
|
*/
|
|
3715
|
-
serviceRequestsIndex: async (requesterId?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3996
|
+
serviceRequestsIndex: async (requesterId?: string, orderBy?: string, orderDirection?: string, pageNumber?: number, pageSize?: number, status?: ServiceRequestStatus, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3716
3997
|
const localVarPath = `/service_requests`;
|
|
3717
3998
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3718
3999
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -3729,6 +4010,59 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
3729
4010
|
localVarQueryParameter['requester_id'] = requesterId;
|
|
3730
4011
|
}
|
|
3731
4012
|
|
|
4013
|
+
if (orderBy !== undefined) {
|
|
4014
|
+
localVarQueryParameter['order_by'] = orderBy;
|
|
4015
|
+
}
|
|
4016
|
+
|
|
4017
|
+
if (orderDirection !== undefined) {
|
|
4018
|
+
localVarQueryParameter['order_direction'] = orderDirection;
|
|
4019
|
+
}
|
|
4020
|
+
|
|
4021
|
+
if (pageNumber !== undefined) {
|
|
4022
|
+
localVarQueryParameter['page_number'] = pageNumber;
|
|
4023
|
+
}
|
|
4024
|
+
|
|
4025
|
+
if (pageSize !== undefined) {
|
|
4026
|
+
localVarQueryParameter['page_size'] = pageSize;
|
|
4027
|
+
}
|
|
4028
|
+
|
|
4029
|
+
if (status !== undefined) {
|
|
4030
|
+
localVarQueryParameter['status'] = status;
|
|
4031
|
+
}
|
|
4032
|
+
|
|
4033
|
+
|
|
4034
|
+
|
|
4035
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4036
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4037
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4038
|
+
|
|
4039
|
+
return {
|
|
4040
|
+
url: toPathString(localVarUrlObj),
|
|
4041
|
+
options: localVarRequestOptions,
|
|
4042
|
+
};
|
|
4043
|
+
},
|
|
4044
|
+
/**
|
|
4045
|
+
*
|
|
4046
|
+
* @param {string} id
|
|
4047
|
+
* @param {*} [options] Override http request option.
|
|
4048
|
+
* @throws {RequiredError}
|
|
4049
|
+
*/
|
|
4050
|
+
serviceRequestsShow: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4051
|
+
// verify required parameter 'id' is not null or undefined
|
|
4052
|
+
assertParamExists('serviceRequestsShow', 'id', id)
|
|
4053
|
+
const localVarPath = `/service_requests/{id}`
|
|
4054
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
4055
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4056
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4057
|
+
let baseOptions;
|
|
4058
|
+
if (configuration) {
|
|
4059
|
+
baseOptions = configuration.baseOptions;
|
|
4060
|
+
}
|
|
4061
|
+
|
|
4062
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
4063
|
+
const localVarHeaderParameter = {} as any;
|
|
4064
|
+
const localVarQueryParameter = {} as any;
|
|
4065
|
+
|
|
3732
4066
|
|
|
3733
4067
|
|
|
3734
4068
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -4101,6 +4435,16 @@ export const DefaultApiFp = function(configuration?: Configuration) {
|
|
|
4101
4435
|
const localVarAxiosArgs = await localVarAxiosParamCreator.passesShow(visitScheduleId, options);
|
|
4102
4436
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
4103
4437
|
},
|
|
4438
|
+
/**
|
|
4439
|
+
*
|
|
4440
|
+
* @param {string} towerId
|
|
4441
|
+
* @param {*} [options] Override http request option.
|
|
4442
|
+
* @throws {RequiredError}
|
|
4443
|
+
*/
|
|
4444
|
+
async sensorsIndex(towerId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedArrayResponseSensorsIndexResponseData>> {
|
|
4445
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.sensorsIndex(towerId, options);
|
|
4446
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
4447
|
+
},
|
|
4104
4448
|
/**
|
|
4105
4449
|
*
|
|
4106
4450
|
* @param {ServiceRequestBody} serviceRequestBody
|
|
@@ -4114,11 +4458,26 @@ export const DefaultApiFp = function(configuration?: Configuration) {
|
|
|
4114
4458
|
/**
|
|
4115
4459
|
*
|
|
4116
4460
|
* @param {string} [requesterId]
|
|
4461
|
+
* @param {string} [orderBy]
|
|
4462
|
+
* @param {string} [orderDirection]
|
|
4463
|
+
* @param {number} [pageNumber]
|
|
4464
|
+
* @param {number} [pageSize]
|
|
4465
|
+
* @param {ServiceRequestStatus} [status]
|
|
4466
|
+
* @param {*} [options] Override http request option.
|
|
4467
|
+
* @throws {RequiredError}
|
|
4468
|
+
*/
|
|
4469
|
+
async serviceRequestsIndex(requesterId?: string, orderBy?: string, orderDirection?: string, pageNumber?: number, pageSize?: number, status?: ServiceRequestStatus, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedResponseServiceRequestResponse>> {
|
|
4470
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.serviceRequestsIndex(requesterId, orderBy, orderDirection, pageNumber, pageSize, status, options);
|
|
4471
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
4472
|
+
},
|
|
4473
|
+
/**
|
|
4474
|
+
*
|
|
4475
|
+
* @param {string} id
|
|
4117
4476
|
* @param {*} [options] Override http request option.
|
|
4118
4477
|
* @throws {RequiredError}
|
|
4119
4478
|
*/
|
|
4120
|
-
async
|
|
4121
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
4479
|
+
async serviceRequestsShow(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedResponseServiceRequestData>> {
|
|
4480
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.serviceRequestsShow(id, options);
|
|
4122
4481
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
4123
4482
|
},
|
|
4124
4483
|
/**
|
|
@@ -4345,6 +4704,15 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
|
|
|
4345
4704
|
passesShow(visitScheduleId: string, options?: any): AxiosPromise<WrappedResponseShowPassResponseOrNull> {
|
|
4346
4705
|
return localVarFp.passesShow(visitScheduleId, options).then((request) => request(axios, basePath));
|
|
4347
4706
|
},
|
|
4707
|
+
/**
|
|
4708
|
+
*
|
|
4709
|
+
* @param {string} towerId
|
|
4710
|
+
* @param {*} [options] Override http request option.
|
|
4711
|
+
* @throws {RequiredError}
|
|
4712
|
+
*/
|
|
4713
|
+
sensorsIndex(towerId: string, options?: any): AxiosPromise<WrappedArrayResponseSensorsIndexResponseData> {
|
|
4714
|
+
return localVarFp.sensorsIndex(towerId, options).then((request) => request(axios, basePath));
|
|
4715
|
+
},
|
|
4348
4716
|
/**
|
|
4349
4717
|
*
|
|
4350
4718
|
* @param {ServiceRequestBody} serviceRequestBody
|
|
@@ -4357,11 +4725,25 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
|
|
|
4357
4725
|
/**
|
|
4358
4726
|
*
|
|
4359
4727
|
* @param {string} [requesterId]
|
|
4728
|
+
* @param {string} [orderBy]
|
|
4729
|
+
* @param {string} [orderDirection]
|
|
4730
|
+
* @param {number} [pageNumber]
|
|
4731
|
+
* @param {number} [pageSize]
|
|
4732
|
+
* @param {ServiceRequestStatus} [status]
|
|
4733
|
+
* @param {*} [options] Override http request option.
|
|
4734
|
+
* @throws {RequiredError}
|
|
4735
|
+
*/
|
|
4736
|
+
serviceRequestsIndex(requesterId?: string, orderBy?: string, orderDirection?: string, pageNumber?: number, pageSize?: number, status?: ServiceRequestStatus, options?: any): AxiosPromise<WrappedResponseServiceRequestResponse> {
|
|
4737
|
+
return localVarFp.serviceRequestsIndex(requesterId, orderBy, orderDirection, pageNumber, pageSize, status, options).then((request) => request(axios, basePath));
|
|
4738
|
+
},
|
|
4739
|
+
/**
|
|
4740
|
+
*
|
|
4741
|
+
* @param {string} id
|
|
4360
4742
|
* @param {*} [options] Override http request option.
|
|
4361
4743
|
* @throws {RequiredError}
|
|
4362
4744
|
*/
|
|
4363
|
-
|
|
4364
|
-
return localVarFp.
|
|
4745
|
+
serviceRequestsShow(id: string, options?: any): AxiosPromise<WrappedResponseServiceRequestData> {
|
|
4746
|
+
return localVarFp.serviceRequestsShow(id, options).then((request) => request(axios, basePath));
|
|
4365
4747
|
},
|
|
4366
4748
|
/**
|
|
4367
4749
|
*
|
|
@@ -4616,6 +4998,17 @@ export class DefaultApi extends BaseAPI {
|
|
|
4616
4998
|
return DefaultApiFp(this.configuration).passesShow(visitScheduleId, options).then((request) => request(this.axios, this.basePath));
|
|
4617
4999
|
}
|
|
4618
5000
|
|
|
5001
|
+
/**
|
|
5002
|
+
*
|
|
5003
|
+
* @param {string} towerId
|
|
5004
|
+
* @param {*} [options] Override http request option.
|
|
5005
|
+
* @throws {RequiredError}
|
|
5006
|
+
* @memberof DefaultApi
|
|
5007
|
+
*/
|
|
5008
|
+
public sensorsIndex(towerId: string, options?: AxiosRequestConfig) {
|
|
5009
|
+
return DefaultApiFp(this.configuration).sensorsIndex(towerId, options).then((request) => request(this.axios, this.basePath));
|
|
5010
|
+
}
|
|
5011
|
+
|
|
4619
5012
|
/**
|
|
4620
5013
|
*
|
|
4621
5014
|
* @param {ServiceRequestBody} serviceRequestBody
|
|
@@ -4630,12 +5023,28 @@ export class DefaultApi extends BaseAPI {
|
|
|
4630
5023
|
/**
|
|
4631
5024
|
*
|
|
4632
5025
|
* @param {string} [requesterId]
|
|
5026
|
+
* @param {string} [orderBy]
|
|
5027
|
+
* @param {string} [orderDirection]
|
|
5028
|
+
* @param {number} [pageNumber]
|
|
5029
|
+
* @param {number} [pageSize]
|
|
5030
|
+
* @param {ServiceRequestStatus} [status]
|
|
5031
|
+
* @param {*} [options] Override http request option.
|
|
5032
|
+
* @throws {RequiredError}
|
|
5033
|
+
* @memberof DefaultApi
|
|
5034
|
+
*/
|
|
5035
|
+
public serviceRequestsIndex(requesterId?: string, orderBy?: string, orderDirection?: string, pageNumber?: number, pageSize?: number, status?: ServiceRequestStatus, options?: AxiosRequestConfig) {
|
|
5036
|
+
return DefaultApiFp(this.configuration).serviceRequestsIndex(requesterId, orderBy, orderDirection, pageNumber, pageSize, status, options).then((request) => request(this.axios, this.basePath));
|
|
5037
|
+
}
|
|
5038
|
+
|
|
5039
|
+
/**
|
|
5040
|
+
*
|
|
5041
|
+
* @param {string} id
|
|
4633
5042
|
* @param {*} [options] Override http request option.
|
|
4634
5043
|
* @throws {RequiredError}
|
|
4635
5044
|
* @memberof DefaultApi
|
|
4636
5045
|
*/
|
|
4637
|
-
public
|
|
4638
|
-
return DefaultApiFp(this.configuration).
|
|
5046
|
+
public serviceRequestsShow(id: string, options?: AxiosRequestConfig) {
|
|
5047
|
+
return DefaultApiFp(this.configuration).serviceRequestsShow(id, options).then((request) => request(this.axios, this.basePath));
|
|
4639
5048
|
}
|
|
4640
5049
|
|
|
4641
5050
|
/**
|
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
|
|
@@ -1484,6 +1559,60 @@ export interface ServiceRequestData {
|
|
|
1484
1559
|
*/
|
|
1485
1560
|
'id': string;
|
|
1486
1561
|
}
|
|
1562
|
+
/**
|
|
1563
|
+
*
|
|
1564
|
+
* @export
|
|
1565
|
+
* @interface ServiceRequestQuery
|
|
1566
|
+
*/
|
|
1567
|
+
export interface ServiceRequestQuery {
|
|
1568
|
+
/**
|
|
1569
|
+
*
|
|
1570
|
+
* @type {string}
|
|
1571
|
+
* @memberof ServiceRequestQuery
|
|
1572
|
+
*/
|
|
1573
|
+
'requester_id'?: string;
|
|
1574
|
+
/**
|
|
1575
|
+
*
|
|
1576
|
+
* @type {string}
|
|
1577
|
+
* @memberof ServiceRequestQuery
|
|
1578
|
+
*/
|
|
1579
|
+
'order_by'?: string;
|
|
1580
|
+
/**
|
|
1581
|
+
*
|
|
1582
|
+
* @type {string}
|
|
1583
|
+
* @memberof ServiceRequestQuery
|
|
1584
|
+
*/
|
|
1585
|
+
'order_direction'?: string;
|
|
1586
|
+
/**
|
|
1587
|
+
*
|
|
1588
|
+
* @type {number}
|
|
1589
|
+
* @memberof ServiceRequestQuery
|
|
1590
|
+
*/
|
|
1591
|
+
'page_number'?: number;
|
|
1592
|
+
/**
|
|
1593
|
+
*
|
|
1594
|
+
* @type {number}
|
|
1595
|
+
* @memberof ServiceRequestQuery
|
|
1596
|
+
*/
|
|
1597
|
+
'page_size'?: number;
|
|
1598
|
+
/**
|
|
1599
|
+
*
|
|
1600
|
+
* @type {ServiceRequestStatus}
|
|
1601
|
+
* @memberof ServiceRequestQuery
|
|
1602
|
+
*/
|
|
1603
|
+
'status'?: ServiceRequestStatus;
|
|
1604
|
+
}
|
|
1605
|
+
/**
|
|
1606
|
+
*
|
|
1607
|
+
* @export
|
|
1608
|
+
* @enum {string}
|
|
1609
|
+
*/
|
|
1610
|
+
export declare const ServiceRequestStatus: {
|
|
1611
|
+
readonly Submitted: "submitted";
|
|
1612
|
+
readonly InProgress: "in_progress";
|
|
1613
|
+
readonly Done: "done";
|
|
1614
|
+
};
|
|
1615
|
+
export type ServiceRequestStatus = typeof ServiceRequestStatus[keyof typeof ServiceRequestStatus];
|
|
1487
1616
|
/**
|
|
1488
1617
|
*
|
|
1489
1618
|
* @export
|
|
@@ -2316,6 +2445,19 @@ export interface WebhookCreateBodyPayload {
|
|
|
2316
2445
|
*/
|
|
2317
2446
|
'inviteID': string;
|
|
2318
2447
|
}
|
|
2448
|
+
/**
|
|
2449
|
+
*
|
|
2450
|
+
* @export
|
|
2451
|
+
* @interface WrappedArrayResponseSensorsIndexResponseData
|
|
2452
|
+
*/
|
|
2453
|
+
export interface WrappedArrayResponseSensorsIndexResponseData {
|
|
2454
|
+
/**
|
|
2455
|
+
*
|
|
2456
|
+
* @type {Array<SensorData>}
|
|
2457
|
+
* @memberof WrappedArrayResponseSensorsIndexResponseData
|
|
2458
|
+
*/
|
|
2459
|
+
'data': Array<SensorData>;
|
|
2460
|
+
}
|
|
2319
2461
|
/**
|
|
2320
2462
|
*
|
|
2321
2463
|
* @export
|
|
@@ -2851,6 +2993,92 @@ export declare const WrappedResponsePassConsentResponseDataStatusEnum: {
|
|
|
2851
2993
|
readonly Confirmed: "confirmed";
|
|
2852
2994
|
};
|
|
2853
2995
|
export type WrappedResponsePassConsentResponseDataStatusEnum = typeof WrappedResponsePassConsentResponseDataStatusEnum[keyof typeof WrappedResponsePassConsentResponseDataStatusEnum];
|
|
2996
|
+
/**
|
|
2997
|
+
*
|
|
2998
|
+
* @export
|
|
2999
|
+
* @interface WrappedResponseServiceRequestData
|
|
3000
|
+
*/
|
|
3001
|
+
export interface WrappedResponseServiceRequestData {
|
|
3002
|
+
/**
|
|
3003
|
+
*
|
|
3004
|
+
* @type {WrappedResponseServiceRequestDataData}
|
|
3005
|
+
* @memberof WrappedResponseServiceRequestData
|
|
3006
|
+
*/
|
|
3007
|
+
'data': WrappedResponseServiceRequestDataData | null;
|
|
3008
|
+
}
|
|
3009
|
+
/**
|
|
3010
|
+
*
|
|
3011
|
+
* @export
|
|
3012
|
+
* @interface WrappedResponseServiceRequestDataData
|
|
3013
|
+
*/
|
|
3014
|
+
export interface WrappedResponseServiceRequestDataData {
|
|
3015
|
+
/**
|
|
3016
|
+
*
|
|
3017
|
+
* @type {string}
|
|
3018
|
+
* @memberof WrappedResponseServiceRequestDataData
|
|
3019
|
+
*/
|
|
3020
|
+
'updated_at': string;
|
|
3021
|
+
/**
|
|
3022
|
+
*
|
|
3023
|
+
* @type {string}
|
|
3024
|
+
* @memberof WrappedResponseServiceRequestDataData
|
|
3025
|
+
*/
|
|
3026
|
+
'created_at': string;
|
|
3027
|
+
/**
|
|
3028
|
+
*
|
|
3029
|
+
* @type {string}
|
|
3030
|
+
* @memberof WrappedResponseServiceRequestDataData
|
|
3031
|
+
*/
|
|
3032
|
+
'description': string;
|
|
3033
|
+
/**
|
|
3034
|
+
*
|
|
3035
|
+
* @type {string}
|
|
3036
|
+
* @memberof WrappedResponseServiceRequestDataData
|
|
3037
|
+
*/
|
|
3038
|
+
'status': string;
|
|
3039
|
+
/**
|
|
3040
|
+
*
|
|
3041
|
+
* @type {string}
|
|
3042
|
+
* @memberof WrappedResponseServiceRequestDataData
|
|
3043
|
+
*/
|
|
3044
|
+
'title': string;
|
|
3045
|
+
/**
|
|
3046
|
+
*
|
|
3047
|
+
* @type {string}
|
|
3048
|
+
* @memberof WrappedResponseServiceRequestDataData
|
|
3049
|
+
*/
|
|
3050
|
+
'requester_id': string;
|
|
3051
|
+
/**
|
|
3052
|
+
*
|
|
3053
|
+
* @type {IssueTypeData}
|
|
3054
|
+
* @memberof WrappedResponseServiceRequestDataData
|
|
3055
|
+
*/
|
|
3056
|
+
'issue_type': IssueTypeData;
|
|
3057
|
+
/**
|
|
3058
|
+
*
|
|
3059
|
+
* @type {FloorData}
|
|
3060
|
+
* @memberof WrappedResponseServiceRequestDataData
|
|
3061
|
+
*/
|
|
3062
|
+
'floor': FloorData;
|
|
3063
|
+
/**
|
|
3064
|
+
*
|
|
3065
|
+
* @type {TowerData}
|
|
3066
|
+
* @memberof WrappedResponseServiceRequestDataData
|
|
3067
|
+
*/
|
|
3068
|
+
'tower': TowerData;
|
|
3069
|
+
/**
|
|
3070
|
+
*
|
|
3071
|
+
* @type {Array<string>}
|
|
3072
|
+
* @memberof WrappedResponseServiceRequestDataData
|
|
3073
|
+
*/
|
|
3074
|
+
'image_url': Array<string>;
|
|
3075
|
+
/**
|
|
3076
|
+
*
|
|
3077
|
+
* @type {string}
|
|
3078
|
+
* @memberof WrappedResponseServiceRequestDataData
|
|
3079
|
+
*/
|
|
3080
|
+
'id': string;
|
|
3081
|
+
}
|
|
2854
3082
|
/**
|
|
2855
3083
|
*
|
|
2856
3084
|
* @export
|
|
@@ -3139,6 +3367,13 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
3139
3367
|
* @throws {RequiredError}
|
|
3140
3368
|
*/
|
|
3141
3369
|
passesShow: (visitScheduleId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3370
|
+
/**
|
|
3371
|
+
*
|
|
3372
|
+
* @param {string} towerId
|
|
3373
|
+
* @param {*} [options] Override http request option.
|
|
3374
|
+
* @throws {RequiredError}
|
|
3375
|
+
*/
|
|
3376
|
+
sensorsIndex: (towerId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3142
3377
|
/**
|
|
3143
3378
|
*
|
|
3144
3379
|
* @param {ServiceRequestBody} serviceRequestBody
|
|
@@ -3149,10 +3384,22 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
3149
3384
|
/**
|
|
3150
3385
|
*
|
|
3151
3386
|
* @param {string} [requesterId]
|
|
3387
|
+
* @param {string} [orderBy]
|
|
3388
|
+
* @param {string} [orderDirection]
|
|
3389
|
+
* @param {number} [pageNumber]
|
|
3390
|
+
* @param {number} [pageSize]
|
|
3391
|
+
* @param {ServiceRequestStatus} [status]
|
|
3392
|
+
* @param {*} [options] Override http request option.
|
|
3393
|
+
* @throws {RequiredError}
|
|
3394
|
+
*/
|
|
3395
|
+
serviceRequestsIndex: (requesterId?: string, orderBy?: string, orderDirection?: string, pageNumber?: number, pageSize?: number, status?: ServiceRequestStatus, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3396
|
+
/**
|
|
3397
|
+
*
|
|
3398
|
+
* @param {string} id
|
|
3152
3399
|
* @param {*} [options] Override http request option.
|
|
3153
3400
|
* @throws {RequiredError}
|
|
3154
3401
|
*/
|
|
3155
|
-
|
|
3402
|
+
serviceRequestsShow: (id: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3156
3403
|
/**
|
|
3157
3404
|
*
|
|
3158
3405
|
* @param {SyncBody} syncBody
|
|
@@ -3324,6 +3571,13 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
3324
3571
|
* @throws {RequiredError}
|
|
3325
3572
|
*/
|
|
3326
3573
|
passesShow(visitScheduleId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedResponseShowPassResponseOrNull>>;
|
|
3574
|
+
/**
|
|
3575
|
+
*
|
|
3576
|
+
* @param {string} towerId
|
|
3577
|
+
* @param {*} [options] Override http request option.
|
|
3578
|
+
* @throws {RequiredError}
|
|
3579
|
+
*/
|
|
3580
|
+
sensorsIndex(towerId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedArrayResponseSensorsIndexResponseData>>;
|
|
3327
3581
|
/**
|
|
3328
3582
|
*
|
|
3329
3583
|
* @param {ServiceRequestBody} serviceRequestBody
|
|
@@ -3334,10 +3588,22 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
3334
3588
|
/**
|
|
3335
3589
|
*
|
|
3336
3590
|
* @param {string} [requesterId]
|
|
3591
|
+
* @param {string} [orderBy]
|
|
3592
|
+
* @param {string} [orderDirection]
|
|
3593
|
+
* @param {number} [pageNumber]
|
|
3594
|
+
* @param {number} [pageSize]
|
|
3595
|
+
* @param {ServiceRequestStatus} [status]
|
|
3596
|
+
* @param {*} [options] Override http request option.
|
|
3597
|
+
* @throws {RequiredError}
|
|
3598
|
+
*/
|
|
3599
|
+
serviceRequestsIndex(requesterId?: string, orderBy?: string, orderDirection?: string, pageNumber?: number, pageSize?: number, status?: ServiceRequestStatus, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedResponseServiceRequestResponse>>;
|
|
3600
|
+
/**
|
|
3601
|
+
*
|
|
3602
|
+
* @param {string} id
|
|
3337
3603
|
* @param {*} [options] Override http request option.
|
|
3338
3604
|
* @throws {RequiredError}
|
|
3339
3605
|
*/
|
|
3340
|
-
|
|
3606
|
+
serviceRequestsShow(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedResponseServiceRequestData>>;
|
|
3341
3607
|
/**
|
|
3342
3608
|
*
|
|
3343
3609
|
* @param {SyncBody} syncBody
|
|
@@ -3509,6 +3775,13 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
3509
3775
|
* @throws {RequiredError}
|
|
3510
3776
|
*/
|
|
3511
3777
|
passesShow(visitScheduleId: string, options?: any): AxiosPromise<WrappedResponseShowPassResponseOrNull>;
|
|
3778
|
+
/**
|
|
3779
|
+
*
|
|
3780
|
+
* @param {string} towerId
|
|
3781
|
+
* @param {*} [options] Override http request option.
|
|
3782
|
+
* @throws {RequiredError}
|
|
3783
|
+
*/
|
|
3784
|
+
sensorsIndex(towerId: string, options?: any): AxiosPromise<WrappedArrayResponseSensorsIndexResponseData>;
|
|
3512
3785
|
/**
|
|
3513
3786
|
*
|
|
3514
3787
|
* @param {ServiceRequestBody} serviceRequestBody
|
|
@@ -3519,10 +3792,22 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
3519
3792
|
/**
|
|
3520
3793
|
*
|
|
3521
3794
|
* @param {string} [requesterId]
|
|
3795
|
+
* @param {string} [orderBy]
|
|
3796
|
+
* @param {string} [orderDirection]
|
|
3797
|
+
* @param {number} [pageNumber]
|
|
3798
|
+
* @param {number} [pageSize]
|
|
3799
|
+
* @param {ServiceRequestStatus} [status]
|
|
3800
|
+
* @param {*} [options] Override http request option.
|
|
3801
|
+
* @throws {RequiredError}
|
|
3802
|
+
*/
|
|
3803
|
+
serviceRequestsIndex(requesterId?: string, orderBy?: string, orderDirection?: string, pageNumber?: number, pageSize?: number, status?: ServiceRequestStatus, options?: any): AxiosPromise<WrappedResponseServiceRequestResponse>;
|
|
3804
|
+
/**
|
|
3805
|
+
*
|
|
3806
|
+
* @param {string} id
|
|
3522
3807
|
* @param {*} [options] Override http request option.
|
|
3523
3808
|
* @throws {RequiredError}
|
|
3524
3809
|
*/
|
|
3525
|
-
|
|
3810
|
+
serviceRequestsShow(id: string, options?: any): AxiosPromise<WrappedResponseServiceRequestData>;
|
|
3526
3811
|
/**
|
|
3527
3812
|
*
|
|
3528
3813
|
* @param {SyncBody} syncBody
|
|
@@ -3713,6 +3998,14 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
3713
3998
|
* @memberof DefaultApi
|
|
3714
3999
|
*/
|
|
3715
4000
|
passesShow(visitScheduleId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<WrappedResponseShowPassResponseOrNull, any>>;
|
|
4001
|
+
/**
|
|
4002
|
+
*
|
|
4003
|
+
* @param {string} towerId
|
|
4004
|
+
* @param {*} [options] Override http request option.
|
|
4005
|
+
* @throws {RequiredError}
|
|
4006
|
+
* @memberof DefaultApi
|
|
4007
|
+
*/
|
|
4008
|
+
sensorsIndex(towerId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<WrappedArrayResponseSensorsIndexResponseData, any>>;
|
|
3716
4009
|
/**
|
|
3717
4010
|
*
|
|
3718
4011
|
* @param {ServiceRequestBody} serviceRequestBody
|
|
@@ -3724,11 +4017,24 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
3724
4017
|
/**
|
|
3725
4018
|
*
|
|
3726
4019
|
* @param {string} [requesterId]
|
|
4020
|
+
* @param {string} [orderBy]
|
|
4021
|
+
* @param {string} [orderDirection]
|
|
4022
|
+
* @param {number} [pageNumber]
|
|
4023
|
+
* @param {number} [pageSize]
|
|
4024
|
+
* @param {ServiceRequestStatus} [status]
|
|
4025
|
+
* @param {*} [options] Override http request option.
|
|
4026
|
+
* @throws {RequiredError}
|
|
4027
|
+
* @memberof DefaultApi
|
|
4028
|
+
*/
|
|
4029
|
+
serviceRequestsIndex(requesterId?: string, orderBy?: string, orderDirection?: string, pageNumber?: number, pageSize?: number, status?: ServiceRequestStatus, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<WrappedResponseServiceRequestResponse, any>>;
|
|
4030
|
+
/**
|
|
4031
|
+
*
|
|
4032
|
+
* @param {string} id
|
|
3727
4033
|
* @param {*} [options] Override http request option.
|
|
3728
4034
|
* @throws {RequiredError}
|
|
3729
4035
|
* @memberof DefaultApi
|
|
3730
4036
|
*/
|
|
3731
|
-
|
|
4037
|
+
serviceRequestsShow(id: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<WrappedResponseServiceRequestData, any>>;
|
|
3732
4038
|
/**
|
|
3733
4039
|
*
|
|
3734
4040
|
* @param {SyncBody} syncBody
|
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.ServiceRequestStatus = 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,28 @@ 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
|
+
};
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @export
|
|
63
|
+
* @enum {string}
|
|
64
|
+
*/
|
|
65
|
+
exports.ServiceRequestStatus = {
|
|
66
|
+
Submitted: 'submitted',
|
|
67
|
+
InProgress: 'in_progress',
|
|
68
|
+
Done: 'done'
|
|
69
|
+
};
|
|
48
70
|
exports.ShowPassResponseStatusEnum = {
|
|
49
71
|
Pending: 'pending',
|
|
50
72
|
Confirmed: 'confirmed'
|
|
@@ -597,6 +619,36 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
597
619
|
options: localVarRequestOptions,
|
|
598
620
|
};
|
|
599
621
|
}),
|
|
622
|
+
/**
|
|
623
|
+
*
|
|
624
|
+
* @param {string} towerId
|
|
625
|
+
* @param {*} [options] Override http request option.
|
|
626
|
+
* @throws {RequiredError}
|
|
627
|
+
*/
|
|
628
|
+
sensorsIndex: (towerId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
629
|
+
// verify required parameter 'towerId' is not null or undefined
|
|
630
|
+
(0, common_1.assertParamExists)('sensorsIndex', 'towerId', towerId);
|
|
631
|
+
const localVarPath = `/sensors`;
|
|
632
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
633
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
634
|
+
let baseOptions;
|
|
635
|
+
if (configuration) {
|
|
636
|
+
baseOptions = configuration.baseOptions;
|
|
637
|
+
}
|
|
638
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
639
|
+
const localVarHeaderParameter = {};
|
|
640
|
+
const localVarQueryParameter = {};
|
|
641
|
+
if (towerId !== undefined) {
|
|
642
|
+
localVarQueryParameter['tower_id'] = towerId;
|
|
643
|
+
}
|
|
644
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
645
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
646
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
647
|
+
return {
|
|
648
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
649
|
+
options: localVarRequestOptions,
|
|
650
|
+
};
|
|
651
|
+
}),
|
|
600
652
|
/**
|
|
601
653
|
*
|
|
602
654
|
* @param {ServiceRequestBody} serviceRequestBody
|
|
@@ -629,10 +681,15 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
629
681
|
/**
|
|
630
682
|
*
|
|
631
683
|
* @param {string} [requesterId]
|
|
684
|
+
* @param {string} [orderBy]
|
|
685
|
+
* @param {string} [orderDirection]
|
|
686
|
+
* @param {number} [pageNumber]
|
|
687
|
+
* @param {number} [pageSize]
|
|
688
|
+
* @param {ServiceRequestStatus} [status]
|
|
632
689
|
* @param {*} [options] Override http request option.
|
|
633
690
|
* @throws {RequiredError}
|
|
634
691
|
*/
|
|
635
|
-
serviceRequestsIndex: (requesterId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
692
|
+
serviceRequestsIndex: (requesterId, orderBy, orderDirection, pageNumber, pageSize, status, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
636
693
|
const localVarPath = `/service_requests`;
|
|
637
694
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
638
695
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -646,6 +703,49 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
646
703
|
if (requesterId !== undefined) {
|
|
647
704
|
localVarQueryParameter['requester_id'] = requesterId;
|
|
648
705
|
}
|
|
706
|
+
if (orderBy !== undefined) {
|
|
707
|
+
localVarQueryParameter['order_by'] = orderBy;
|
|
708
|
+
}
|
|
709
|
+
if (orderDirection !== undefined) {
|
|
710
|
+
localVarQueryParameter['order_direction'] = orderDirection;
|
|
711
|
+
}
|
|
712
|
+
if (pageNumber !== undefined) {
|
|
713
|
+
localVarQueryParameter['page_number'] = pageNumber;
|
|
714
|
+
}
|
|
715
|
+
if (pageSize !== undefined) {
|
|
716
|
+
localVarQueryParameter['page_size'] = pageSize;
|
|
717
|
+
}
|
|
718
|
+
if (status !== undefined) {
|
|
719
|
+
localVarQueryParameter['status'] = status;
|
|
720
|
+
}
|
|
721
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
722
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
723
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
724
|
+
return {
|
|
725
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
726
|
+
options: localVarRequestOptions,
|
|
727
|
+
};
|
|
728
|
+
}),
|
|
729
|
+
/**
|
|
730
|
+
*
|
|
731
|
+
* @param {string} id
|
|
732
|
+
* @param {*} [options] Override http request option.
|
|
733
|
+
* @throws {RequiredError}
|
|
734
|
+
*/
|
|
735
|
+
serviceRequestsShow: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
736
|
+
// verify required parameter 'id' is not null or undefined
|
|
737
|
+
(0, common_1.assertParamExists)('serviceRequestsShow', 'id', id);
|
|
738
|
+
const localVarPath = `/service_requests/{id}`
|
|
739
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
740
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
741
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
742
|
+
let baseOptions;
|
|
743
|
+
if (configuration) {
|
|
744
|
+
baseOptions = configuration.baseOptions;
|
|
745
|
+
}
|
|
746
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
747
|
+
const localVarHeaderParameter = {};
|
|
748
|
+
const localVarQueryParameter = {};
|
|
649
749
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
650
750
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
651
751
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -1021,6 +1121,18 @@ const DefaultApiFp = function (configuration) {
|
|
|
1021
1121
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1022
1122
|
});
|
|
1023
1123
|
},
|
|
1124
|
+
/**
|
|
1125
|
+
*
|
|
1126
|
+
* @param {string} towerId
|
|
1127
|
+
* @param {*} [options] Override http request option.
|
|
1128
|
+
* @throws {RequiredError}
|
|
1129
|
+
*/
|
|
1130
|
+
sensorsIndex(towerId, options) {
|
|
1131
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1132
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.sensorsIndex(towerId, options);
|
|
1133
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1134
|
+
});
|
|
1135
|
+
},
|
|
1024
1136
|
/**
|
|
1025
1137
|
*
|
|
1026
1138
|
* @param {ServiceRequestBody} serviceRequestBody
|
|
@@ -1036,12 +1148,29 @@ const DefaultApiFp = function (configuration) {
|
|
|
1036
1148
|
/**
|
|
1037
1149
|
*
|
|
1038
1150
|
* @param {string} [requesterId]
|
|
1151
|
+
* @param {string} [orderBy]
|
|
1152
|
+
* @param {string} [orderDirection]
|
|
1153
|
+
* @param {number} [pageNumber]
|
|
1154
|
+
* @param {number} [pageSize]
|
|
1155
|
+
* @param {ServiceRequestStatus} [status]
|
|
1039
1156
|
* @param {*} [options] Override http request option.
|
|
1040
1157
|
* @throws {RequiredError}
|
|
1041
1158
|
*/
|
|
1042
|
-
serviceRequestsIndex(requesterId, options) {
|
|
1159
|
+
serviceRequestsIndex(requesterId, orderBy, orderDirection, pageNumber, pageSize, status, options) {
|
|
1043
1160
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1044
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.serviceRequestsIndex(requesterId, options);
|
|
1161
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.serviceRequestsIndex(requesterId, orderBy, orderDirection, pageNumber, pageSize, status, options);
|
|
1162
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1163
|
+
});
|
|
1164
|
+
},
|
|
1165
|
+
/**
|
|
1166
|
+
*
|
|
1167
|
+
* @param {string} id
|
|
1168
|
+
* @param {*} [options] Override http request option.
|
|
1169
|
+
* @throws {RequiredError}
|
|
1170
|
+
*/
|
|
1171
|
+
serviceRequestsShow(id, options) {
|
|
1172
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1173
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.serviceRequestsShow(id, options);
|
|
1045
1174
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1046
1175
|
});
|
|
1047
1176
|
},
|
|
@@ -1279,6 +1408,15 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
1279
1408
|
passesShow(visitScheduleId, options) {
|
|
1280
1409
|
return localVarFp.passesShow(visitScheduleId, options).then((request) => request(axios, basePath));
|
|
1281
1410
|
},
|
|
1411
|
+
/**
|
|
1412
|
+
*
|
|
1413
|
+
* @param {string} towerId
|
|
1414
|
+
* @param {*} [options] Override http request option.
|
|
1415
|
+
* @throws {RequiredError}
|
|
1416
|
+
*/
|
|
1417
|
+
sensorsIndex(towerId, options) {
|
|
1418
|
+
return localVarFp.sensorsIndex(towerId, options).then((request) => request(axios, basePath));
|
|
1419
|
+
},
|
|
1282
1420
|
/**
|
|
1283
1421
|
*
|
|
1284
1422
|
* @param {ServiceRequestBody} serviceRequestBody
|
|
@@ -1291,11 +1429,25 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
1291
1429
|
/**
|
|
1292
1430
|
*
|
|
1293
1431
|
* @param {string} [requesterId]
|
|
1432
|
+
* @param {string} [orderBy]
|
|
1433
|
+
* @param {string} [orderDirection]
|
|
1434
|
+
* @param {number} [pageNumber]
|
|
1435
|
+
* @param {number} [pageSize]
|
|
1436
|
+
* @param {ServiceRequestStatus} [status]
|
|
1294
1437
|
* @param {*} [options] Override http request option.
|
|
1295
1438
|
* @throws {RequiredError}
|
|
1296
1439
|
*/
|
|
1297
|
-
serviceRequestsIndex(requesterId, options) {
|
|
1298
|
-
return localVarFp.serviceRequestsIndex(requesterId, options).then((request) => request(axios, basePath));
|
|
1440
|
+
serviceRequestsIndex(requesterId, orderBy, orderDirection, pageNumber, pageSize, status, options) {
|
|
1441
|
+
return localVarFp.serviceRequestsIndex(requesterId, orderBy, orderDirection, pageNumber, pageSize, status, options).then((request) => request(axios, basePath));
|
|
1442
|
+
},
|
|
1443
|
+
/**
|
|
1444
|
+
*
|
|
1445
|
+
* @param {string} id
|
|
1446
|
+
* @param {*} [options] Override http request option.
|
|
1447
|
+
* @throws {RequiredError}
|
|
1448
|
+
*/
|
|
1449
|
+
serviceRequestsShow(id, options) {
|
|
1450
|
+
return localVarFp.serviceRequestsShow(id, options).then((request) => request(axios, basePath));
|
|
1299
1451
|
},
|
|
1300
1452
|
/**
|
|
1301
1453
|
*
|
|
@@ -1533,6 +1685,16 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
1533
1685
|
passesShow(visitScheduleId, options) {
|
|
1534
1686
|
return (0, exports.DefaultApiFp)(this.configuration).passesShow(visitScheduleId, options).then((request) => request(this.axios, this.basePath));
|
|
1535
1687
|
}
|
|
1688
|
+
/**
|
|
1689
|
+
*
|
|
1690
|
+
* @param {string} towerId
|
|
1691
|
+
* @param {*} [options] Override http request option.
|
|
1692
|
+
* @throws {RequiredError}
|
|
1693
|
+
* @memberof DefaultApi
|
|
1694
|
+
*/
|
|
1695
|
+
sensorsIndex(towerId, options) {
|
|
1696
|
+
return (0, exports.DefaultApiFp)(this.configuration).sensorsIndex(towerId, options).then((request) => request(this.axios, this.basePath));
|
|
1697
|
+
}
|
|
1536
1698
|
/**
|
|
1537
1699
|
*
|
|
1538
1700
|
* @param {ServiceRequestBody} serviceRequestBody
|
|
@@ -1546,12 +1708,27 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
1546
1708
|
/**
|
|
1547
1709
|
*
|
|
1548
1710
|
* @param {string} [requesterId]
|
|
1711
|
+
* @param {string} [orderBy]
|
|
1712
|
+
* @param {string} [orderDirection]
|
|
1713
|
+
* @param {number} [pageNumber]
|
|
1714
|
+
* @param {number} [pageSize]
|
|
1715
|
+
* @param {ServiceRequestStatus} [status]
|
|
1716
|
+
* @param {*} [options] Override http request option.
|
|
1717
|
+
* @throws {RequiredError}
|
|
1718
|
+
* @memberof DefaultApi
|
|
1719
|
+
*/
|
|
1720
|
+
serviceRequestsIndex(requesterId, orderBy, orderDirection, pageNumber, pageSize, status, options) {
|
|
1721
|
+
return (0, exports.DefaultApiFp)(this.configuration).serviceRequestsIndex(requesterId, orderBy, orderDirection, pageNumber, pageSize, status, options).then((request) => request(this.axios, this.basePath));
|
|
1722
|
+
}
|
|
1723
|
+
/**
|
|
1724
|
+
*
|
|
1725
|
+
* @param {string} id
|
|
1549
1726
|
* @param {*} [options] Override http request option.
|
|
1550
1727
|
* @throws {RequiredError}
|
|
1551
1728
|
* @memberof DefaultApi
|
|
1552
1729
|
*/
|
|
1553
|
-
|
|
1554
|
-
return (0, exports.DefaultApiFp)(this.configuration).
|
|
1730
|
+
serviceRequestsShow(id, options) {
|
|
1731
|
+
return (0, exports.DefaultApiFp)(this.configuration).serviceRequestsShow(id, options).then((request) => request(this.axios, this.basePath));
|
|
1555
1732
|
}
|
|
1556
1733
|
/**
|
|
1557
1734
|
*
|
package/package.json
CHANGED
package/test.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import * as OB_BMS_SDK from './dist';
|
|
2
|
-
|
|
3
|
-
// OB_BMS_SDK.setAcessToken('789');
|
|
4
|
-
OB_BMS_SDK.setBaseUrl('http://dev.glorymtel.xyz/ob-bms');
|
|
5
|
-
OB_BMS_SDK.setAcessToken(
|
|
6
|
-
'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiI4MjQyNzA1Zi0zNWI1LTRkNzEtOGUxOS1jNWE0MWFjMmUwYTQiLCJpYXQiOjE2OTg5MzU2ODcsImV4cCI6MTcwMTUyNzY4NywicGVybWlzc2lvbiI6W3siaWQiOiJmY2Q1NDZmYy1lNThmLTQ2MjctOTU5Yy1jNWFlYTljMGQ0ODMiLCJwZXJtaXR0ZWVfdHlwZSI6ImFjY291bnQiLCJ2YWx1ZSI6eyJuYW1lIjoib2ItaWFtOmFjY291bnQiLCJzZXJ2aWNlIjoib2ItaWFtIiwiYWN0aW9ucyI6WyJyZWFkIiwidXBkYXRlIiwiZGVsZXRlIl0sInJlc291cmNlX3R5cGUiOiJhY2NvdW50IiwicmVzb3VyY2UiOnsiaWQiOiJzZWxmIn19LCJjcmVhdGVkX2F0IjoiMjAyMy0xMS0wMlQwODo1MTo0Mi43NzFaIiwidXBkYXRlZF9hdCI6IjIwMjMtMTEtMDJUMDg6NTE6NDIuNzcxWiIsImRlbGV0ZWRfYXQiOm51bGwsImFjY291bnRfaWQiOiI4MjQyNzA1Zi0zNWI1LTRkNzEtOGUxOS1jNWE0MWFjMmUwYTQiLCJhY2NvdW50X2dyb3VwX2lkIjpudWxsfSx7ImlkIjoiNWY0MDlmYzYtNDRkMi00YzQyLThhOGYtYzFiNTQ1MWZjODZiIiwicGVybWl0dGVlX3R5cGUiOiJhY2NvdW50IiwidmFsdWUiOnsibmFtZSI6Im9iLWlhbTpwcm9maWxlIiwic2VydmljZSI6Im9iLWlhbSIsImFjdGlvbnMiOlsicmVhZCIsInVwZGF0ZSJdLCJyZXNvdXJjZV90eXBlIjoicHJvZmlsZSIsInJlc291cmNlIjp7ImFjY291bnRfaWQiOiJzZWxmIn19LCJjcmVhdGVkX2F0IjoiMjAyMy0xMS0wMlQwODo1MTo0Mi43NzFaIiwidXBkYXRlZF9hdCI6IjIwMjMtMTEtMDJUMDg6NTE6NDIuNzcxWiIsImRlbGV0ZWRfYXQiOm51bGwsImFjY291bnRfaWQiOiI4MjQyNzA1Zi0zNWI1LTRkNzEtOGUxOS1jNWE0MWFjMmUwYTQiLCJhY2NvdW50X2dyb3VwX2lkIjpudWxsfSx7ImlkIjoiMDNlM2MxODctOTY3NC00MTdiLThjOGMtNDBmNGE0MjEyMDlkIiwicGVybWl0dGVlX3R5cGUiOiJhY2NvdW50IiwidmFsdWUiOnsibmFtZSI6Im9iLWlhbTppZGVudGl0eSIsInNlcnZpY2UiOiJvYi1pYW0iLCJhY3Rpb25zIjpbIioiXSwicmVzb3VyY2VfdHlwZSI6ImlkZW50aXR5IiwicmVzb3VyY2UiOnsiYWNjb3VudF9pZCI6InNlbGYifX0sImNyZWF0ZWRfYXQiOiIyMDIzLTExLTAyVDA4OjUxOjQyLjc3MVoiLCJ1cGRhdGVkX2F0IjoiMjAyMy0xMS0wMlQwODo1MTo0Mi43NzFaIiwiZGVsZXRlZF9hdCI6bnVsbCwiYWNjb3VudF9pZCI6IjgyNDI3MDVmLTM1YjUtNGQ3MS04ZTE5LWM1YTQxYWMyZTBhNCIsImFjY291bnRfZ3JvdXBfaWQiOm51bGx9LHsiaWQiOiIzMjU0MTEyNi00Nzc2LTQ0NzYtOTc5MS1mYjZhNjA2ZWUxNDIiLCJwZXJtaXR0ZWVfdHlwZSI6ImFjY291bnQiLCJ2YWx1ZSI6eyJuYW1lIjoib2ItaWFtOnNldHRpbmciLCJzZXJ2aWNlIjoib2ItaWFtIiwiYWN0aW9ucyI6WyJ1cGRhdGUiXSwicmVzb3VyY2VfdHlwZSI6InNldHRpbmciLCJyZXNvdXJjZSI6eyJhY2NvdW50X2lkIjoic2VsZiJ9fSwiY3JlYXRlZF9hdCI6IjIwMjMtMTEtMDJUMDg6NTE6NDIuNzcxWiIsInVwZGF0ZWRfYXQiOiIyMDIzLTExLTAyVDA4OjUxOjQyLjc3MVoiLCJkZWxldGVkX2F0IjpudWxsLCJhY2NvdW50X2lkIjoiODI0MjcwNWYtMzViNS00ZDcxLThlMTktYzVhNDFhYzJlMGE0IiwiYWNjb3VudF9ncm91cF9pZCI6bnVsbH0seyJpZCI6ImZjYzE3MTY4LWRmNTQtNDIyMy04MzYxLTY4NTlkZmNmMzU2NSIsInBlcm1pdHRlZV90eXBlIjoiYWNjb3VudCIsInZhbHVlIjp7Im5hbWUiOiJvYi1pYW06dG9rZW4iLCJzZXJ2aWNlIjoib2ItaWFtIiwiYWN0aW9ucyI6WyJjcmVhdGUiLCJyZWFkIl0sInJlc291cmNlX3R5cGUiOiJ0b2tlbiIsInJlc291cmNlIjp7ImFjY291bnRfaWQiOiJzZWxmIn19LCJjcmVhdGVkX2F0IjoiMjAyMy0xMS0wMlQwODo1MTo0Mi43NzFaIiwidXBkYXRlZF9hdCI6IjIwMjMtMTEtMDJUMDg6NTE6NDIuNzcxWiIsImRlbGV0ZWRfYXQiOm51bGwsImFjY291bnRfaWQiOiI4MjQyNzA1Zi0zNWI1LTRkNzEtOGUxOS1jNWE0MWFjMmUwYTQiLCJhY2NvdW50X2dyb3VwX2lkIjpudWxsfV19.tfqYJop4iJNlIbBVztf7DFfVhaYAFnUGDhLjik2OGA4',
|
|
7
|
-
);
|
|
8
|
-
(async () => {
|
|
9
|
-
try {
|
|
10
|
-
const res = await OB_BMS_SDK.client.membersIndex('t.shin@pjoe.com', {});
|
|
11
|
-
console.dir(res.data, { depth: null });
|
|
12
|
-
} catch (err) {
|
|
13
|
-
console.log(err);
|
|
14
|
-
}
|
|
15
|
-
})();
|