ob-bms-sdk 0.0.78 → 0.0.79-fix
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 +215 -35
- package/dist/api/api.d.ts +177 -36
- package/dist/api/api.js +67 -0
- package/package.json +1 -1
- package/test.ts +19 -0
package/api/api.ts
CHANGED
|
@@ -37,10 +37,10 @@ export interface ACRequestBody {
|
|
|
37
37
|
'floor_id': string;
|
|
38
38
|
/**
|
|
39
39
|
*
|
|
40
|
-
* @type {string}
|
|
40
|
+
* @type {Array<string>}
|
|
41
41
|
* @memberof ACRequestBody
|
|
42
42
|
*/
|
|
43
|
-
'ac_zone_id': string
|
|
43
|
+
'ac_zone_id': Array<string>;
|
|
44
44
|
/**
|
|
45
45
|
*
|
|
46
46
|
* @type {string}
|
|
@@ -147,24 +147,12 @@ export interface ACRequestResponse {
|
|
|
147
147
|
* @memberof ACRequestResponse
|
|
148
148
|
*/
|
|
149
149
|
'floor_id': string;
|
|
150
|
-
/**
|
|
151
|
-
*
|
|
152
|
-
* @type {string}
|
|
153
|
-
* @memberof ACRequestResponse
|
|
154
|
-
*/
|
|
155
|
-
'ac_zone_id': string;
|
|
156
150
|
/**
|
|
157
151
|
*
|
|
158
152
|
* @type {string}
|
|
159
153
|
* @memberof ACRequestResponse
|
|
160
154
|
*/
|
|
161
155
|
'estimated_cost': string;
|
|
162
|
-
/**
|
|
163
|
-
*
|
|
164
|
-
* @type {string}
|
|
165
|
-
* @memberof ACRequestResponse
|
|
166
|
-
*/
|
|
167
|
-
'rate': string;
|
|
168
156
|
/**
|
|
169
157
|
*
|
|
170
158
|
* @type {string}
|
|
@@ -188,7 +176,7 @@ export interface ACRequestResponse {
|
|
|
188
176
|
* @type {number}
|
|
189
177
|
* @memberof ACRequestResponse
|
|
190
178
|
*/
|
|
191
|
-
'
|
|
179
|
+
'total_area_size': number;
|
|
192
180
|
/**
|
|
193
181
|
*
|
|
194
182
|
* @type {string}
|
|
@@ -215,10 +203,10 @@ export interface ACRequestResponse {
|
|
|
215
203
|
'requester_id': string;
|
|
216
204
|
/**
|
|
217
205
|
*
|
|
218
|
-
* @type {
|
|
206
|
+
* @type {Array<ACRequestZone>}
|
|
219
207
|
* @memberof ACRequestResponse
|
|
220
208
|
*/
|
|
221
|
-
'ac_zone':
|
|
209
|
+
'ac_zone': Array<ACRequestZone>;
|
|
222
210
|
/**
|
|
223
211
|
*
|
|
224
212
|
* @type {FloorData}
|
|
@@ -329,6 +317,55 @@ export interface ACRequestUpdateBody {
|
|
|
329
317
|
*/
|
|
330
318
|
export interface ACRequestUpdateBodyStatus {
|
|
331
319
|
}
|
|
320
|
+
/**
|
|
321
|
+
*
|
|
322
|
+
* @export
|
|
323
|
+
* @interface ACRequestZone
|
|
324
|
+
*/
|
|
325
|
+
export interface ACRequestZone {
|
|
326
|
+
/**
|
|
327
|
+
*
|
|
328
|
+
* @type {string}
|
|
329
|
+
* @memberof ACRequestZone
|
|
330
|
+
*/
|
|
331
|
+
'id': string;
|
|
332
|
+
/**
|
|
333
|
+
*
|
|
334
|
+
* @type {ACZoneData}
|
|
335
|
+
* @memberof ACRequestZone
|
|
336
|
+
*/
|
|
337
|
+
'ac_zone': ACZoneData;
|
|
338
|
+
/**
|
|
339
|
+
*
|
|
340
|
+
* @type {string}
|
|
341
|
+
* @memberof ACRequestZone
|
|
342
|
+
*/
|
|
343
|
+
'ac_request_id': string;
|
|
344
|
+
/**
|
|
345
|
+
*
|
|
346
|
+
* @type {string}
|
|
347
|
+
* @memberof ACRequestZone
|
|
348
|
+
*/
|
|
349
|
+
'rate': string;
|
|
350
|
+
/**
|
|
351
|
+
*
|
|
352
|
+
* @type {number}
|
|
353
|
+
* @memberof ACRequestZone
|
|
354
|
+
*/
|
|
355
|
+
'area_size': number;
|
|
356
|
+
/**
|
|
357
|
+
*
|
|
358
|
+
* @type {string}
|
|
359
|
+
* @memberof ACRequestZone
|
|
360
|
+
*/
|
|
361
|
+
'created_at': string;
|
|
362
|
+
/**
|
|
363
|
+
*
|
|
364
|
+
* @type {string}
|
|
365
|
+
* @memberof ACRequestZone
|
|
366
|
+
*/
|
|
367
|
+
'updated_at': string;
|
|
368
|
+
}
|
|
332
369
|
/**
|
|
333
370
|
*
|
|
334
371
|
* @export
|
|
@@ -496,6 +533,19 @@ export interface ConsentRequestBody {
|
|
|
496
533
|
*/
|
|
497
534
|
'consent': boolean;
|
|
498
535
|
}
|
|
536
|
+
/**
|
|
537
|
+
*
|
|
538
|
+
* @export
|
|
539
|
+
* @interface CreateACRequestResponse
|
|
540
|
+
*/
|
|
541
|
+
export interface CreateACRequestResponse {
|
|
542
|
+
/**
|
|
543
|
+
*
|
|
544
|
+
* @type {string}
|
|
545
|
+
* @memberof CreateACRequestResponse
|
|
546
|
+
*/
|
|
547
|
+
'references': string;
|
|
548
|
+
}
|
|
499
549
|
/**
|
|
500
550
|
*
|
|
501
551
|
* @export
|
|
@@ -1133,6 +1183,12 @@ export interface MemberIndexInterface {
|
|
|
1133
1183
|
* @memberof MemberIndexInterface
|
|
1134
1184
|
*/
|
|
1135
1185
|
'tenant': Tenant | null;
|
|
1186
|
+
/**
|
|
1187
|
+
*
|
|
1188
|
+
* @type {boolean}
|
|
1189
|
+
* @memberof MemberIndexInterface
|
|
1190
|
+
*/
|
|
1191
|
+
'can_preregister'?: boolean;
|
|
1136
1192
|
}
|
|
1137
1193
|
/**
|
|
1138
1194
|
*
|
|
@@ -1785,6 +1841,19 @@ export interface RequesterData {
|
|
|
1785
1841
|
*/
|
|
1786
1842
|
'id': string;
|
|
1787
1843
|
}
|
|
1844
|
+
/**
|
|
1845
|
+
*
|
|
1846
|
+
* @export
|
|
1847
|
+
* @interface ResultResponseData
|
|
1848
|
+
*/
|
|
1849
|
+
export interface ResultResponseData {
|
|
1850
|
+
/**
|
|
1851
|
+
*
|
|
1852
|
+
* @type {boolean}
|
|
1853
|
+
* @memberof ResultResponseData
|
|
1854
|
+
*/
|
|
1855
|
+
'result': boolean;
|
|
1856
|
+
}
|
|
1788
1857
|
/**
|
|
1789
1858
|
*
|
|
1790
1859
|
* @export
|
|
@@ -2662,6 +2731,26 @@ export interface UpdateMemberResponse {
|
|
|
2662
2731
|
*/
|
|
2663
2732
|
'result': boolean | null;
|
|
2664
2733
|
}
|
|
2734
|
+
/**
|
|
2735
|
+
*
|
|
2736
|
+
* @export
|
|
2737
|
+
* @interface UpdateVisitorScheduleBody
|
|
2738
|
+
*/
|
|
2739
|
+
export interface UpdateVisitorScheduleBody {
|
|
2740
|
+
/**
|
|
2741
|
+
*
|
|
2742
|
+
* @type {UpdateVisitorScheduleBodyDeletedAt}
|
|
2743
|
+
* @memberof UpdateVisitorScheduleBody
|
|
2744
|
+
*/
|
|
2745
|
+
'deleted_at': UpdateVisitorScheduleBodyDeletedAt;
|
|
2746
|
+
}
|
|
2747
|
+
/**
|
|
2748
|
+
*
|
|
2749
|
+
* @export
|
|
2750
|
+
* @interface UpdateVisitorScheduleBodyDeletedAt
|
|
2751
|
+
*/
|
|
2752
|
+
export interface UpdateVisitorScheduleBodyDeletedAt {
|
|
2753
|
+
}
|
|
2665
2754
|
/**
|
|
2666
2755
|
*
|
|
2667
2756
|
* @export
|
|
@@ -2829,16 +2918,16 @@ export interface VisitorSchedule {
|
|
|
2829
2918
|
'floor_id': string;
|
|
2830
2919
|
/**
|
|
2831
2920
|
*
|
|
2832
|
-
* @type {
|
|
2921
|
+
* @type {UpdateVisitorScheduleBodyDeletedAt}
|
|
2833
2922
|
* @memberof VisitorSchedule
|
|
2834
2923
|
*/
|
|
2835
|
-
'from':
|
|
2924
|
+
'from': UpdateVisitorScheduleBodyDeletedAt;
|
|
2836
2925
|
/**
|
|
2837
2926
|
*
|
|
2838
|
-
* @type {
|
|
2927
|
+
* @type {UpdateVisitorScheduleBodyDeletedAt}
|
|
2839
2928
|
* @memberof VisitorSchedule
|
|
2840
2929
|
*/
|
|
2841
|
-
'to':
|
|
2930
|
+
'to': UpdateVisitorScheduleBodyDeletedAt;
|
|
2842
2931
|
/**
|
|
2843
2932
|
*
|
|
2844
2933
|
* @type {object}
|
|
@@ -2846,13 +2935,6 @@ export interface VisitorSchedule {
|
|
|
2846
2935
|
*/
|
|
2847
2936
|
'repetition'?: object;
|
|
2848
2937
|
}
|
|
2849
|
-
/**
|
|
2850
|
-
*
|
|
2851
|
-
* @export
|
|
2852
|
-
* @interface VisitorScheduleFrom
|
|
2853
|
-
*/
|
|
2854
|
-
export interface VisitorScheduleFrom {
|
|
2855
|
-
}
|
|
2856
2938
|
/**
|
|
2857
2939
|
*
|
|
2858
2940
|
* @export
|
|
@@ -3150,15 +3232,15 @@ export interface WrappedOneResponseACRequestResponse {
|
|
|
3150
3232
|
/**
|
|
3151
3233
|
*
|
|
3152
3234
|
* @export
|
|
3153
|
-
* @interface
|
|
3235
|
+
* @interface WrappedOneResponseCreateACRequestResponse
|
|
3154
3236
|
*/
|
|
3155
|
-
export interface
|
|
3237
|
+
export interface WrappedOneResponseCreateACRequestResponse {
|
|
3156
3238
|
/**
|
|
3157
3239
|
*
|
|
3158
|
-
* @type {
|
|
3159
|
-
* @memberof
|
|
3240
|
+
* @type {CreateACRequestResponse}
|
|
3241
|
+
* @memberof WrappedOneResponseCreateACRequestResponse
|
|
3160
3242
|
*/
|
|
3161
|
-
'data':
|
|
3243
|
+
'data': CreateACRequestResponse;
|
|
3162
3244
|
}
|
|
3163
3245
|
/**
|
|
3164
3246
|
*
|
|
@@ -3694,6 +3776,32 @@ export const WrappedResponsePassConsentResponseDataStatusEnum = {
|
|
|
3694
3776
|
|
|
3695
3777
|
export type WrappedResponsePassConsentResponseDataStatusEnum = typeof WrappedResponsePassConsentResponseDataStatusEnum[keyof typeof WrappedResponsePassConsentResponseDataStatusEnum];
|
|
3696
3778
|
|
|
3779
|
+
/**
|
|
3780
|
+
*
|
|
3781
|
+
* @export
|
|
3782
|
+
* @interface WrappedResponseResultResponseData
|
|
3783
|
+
*/
|
|
3784
|
+
export interface WrappedResponseResultResponseData {
|
|
3785
|
+
/**
|
|
3786
|
+
*
|
|
3787
|
+
* @type {WrappedResponseResultResponseDataData}
|
|
3788
|
+
* @memberof WrappedResponseResultResponseData
|
|
3789
|
+
*/
|
|
3790
|
+
'data': WrappedResponseResultResponseDataData | null;
|
|
3791
|
+
}
|
|
3792
|
+
/**
|
|
3793
|
+
*
|
|
3794
|
+
* @export
|
|
3795
|
+
* @interface WrappedResponseResultResponseDataData
|
|
3796
|
+
*/
|
|
3797
|
+
export interface WrappedResponseResultResponseDataData {
|
|
3798
|
+
/**
|
|
3799
|
+
*
|
|
3800
|
+
* @type {boolean}
|
|
3801
|
+
* @memberof WrappedResponseResultResponseDataData
|
|
3802
|
+
*/
|
|
3803
|
+
'result': boolean;
|
|
3804
|
+
}
|
|
3697
3805
|
/**
|
|
3698
3806
|
*
|
|
3699
3807
|
* @export
|
|
@@ -5130,6 +5238,45 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
5130
5238
|
options: localVarRequestOptions,
|
|
5131
5239
|
};
|
|
5132
5240
|
},
|
|
5241
|
+
/**
|
|
5242
|
+
*
|
|
5243
|
+
* @param {string} id
|
|
5244
|
+
* @param {UpdateVisitorScheduleBody} updateVisitorScheduleBody
|
|
5245
|
+
* @param {*} [options] Override http request option.
|
|
5246
|
+
* @throws {RequiredError}
|
|
5247
|
+
*/
|
|
5248
|
+
visitorSchedulesUpdate: async (id: string, updateVisitorScheduleBody: UpdateVisitorScheduleBody, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5249
|
+
// verify required parameter 'id' is not null or undefined
|
|
5250
|
+
assertParamExists('visitorSchedulesUpdate', 'id', id)
|
|
5251
|
+
// verify required parameter 'updateVisitorScheduleBody' is not null or undefined
|
|
5252
|
+
assertParamExists('visitorSchedulesUpdate', 'updateVisitorScheduleBody', updateVisitorScheduleBody)
|
|
5253
|
+
const localVarPath = `/visitor_schedules/{id}`
|
|
5254
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
5255
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5256
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5257
|
+
let baseOptions;
|
|
5258
|
+
if (configuration) {
|
|
5259
|
+
baseOptions = configuration.baseOptions;
|
|
5260
|
+
}
|
|
5261
|
+
|
|
5262
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
5263
|
+
const localVarHeaderParameter = {} as any;
|
|
5264
|
+
const localVarQueryParameter = {} as any;
|
|
5265
|
+
|
|
5266
|
+
|
|
5267
|
+
|
|
5268
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5269
|
+
|
|
5270
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5271
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5272
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
5273
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateVisitorScheduleBody, localVarRequestOptions, configuration)
|
|
5274
|
+
|
|
5275
|
+
return {
|
|
5276
|
+
url: toPathString(localVarUrlObj),
|
|
5277
|
+
options: localVarRequestOptions,
|
|
5278
|
+
};
|
|
5279
|
+
},
|
|
5133
5280
|
/**
|
|
5134
5281
|
*
|
|
5135
5282
|
* @param {string} [tokenId]
|
|
@@ -5281,7 +5428,7 @@ export const DefaultApiFp = function(configuration?: Configuration) {
|
|
|
5281
5428
|
* @param {*} [options] Override http request option.
|
|
5282
5429
|
* @throws {RequiredError}
|
|
5283
5430
|
*/
|
|
5284
|
-
async acRequestCreate(aCRequestBody: ACRequestBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
5431
|
+
async acRequestCreate(aCRequestBody: ACRequestBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedOneResponseCreateACRequestResponse>> {
|
|
5285
5432
|
const localVarAxiosArgs = await localVarAxiosParamCreator.acRequestCreate(aCRequestBody, options);
|
|
5286
5433
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
5287
5434
|
},
|
|
@@ -5630,6 +5777,17 @@ export const DefaultApiFp = function(configuration?: Configuration) {
|
|
|
5630
5777
|
const localVarAxiosArgs = await localVarAxiosParamCreator.towersIndex(options);
|
|
5631
5778
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
5632
5779
|
},
|
|
5780
|
+
/**
|
|
5781
|
+
*
|
|
5782
|
+
* @param {string} id
|
|
5783
|
+
* @param {UpdateVisitorScheduleBody} updateVisitorScheduleBody
|
|
5784
|
+
* @param {*} [options] Override http request option.
|
|
5785
|
+
* @throws {RequiredError}
|
|
5786
|
+
*/
|
|
5787
|
+
async visitorSchedulesUpdate(id: string, updateVisitorScheduleBody: UpdateVisitorScheduleBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedResponseResultResponseData>> {
|
|
5788
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.visitorSchedulesUpdate(id, updateVisitorScheduleBody, options);
|
|
5789
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
5790
|
+
},
|
|
5633
5791
|
/**
|
|
5634
5792
|
*
|
|
5635
5793
|
* @param {string} [tokenId]
|
|
@@ -5686,7 +5844,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
|
|
|
5686
5844
|
* @param {*} [options] Override http request option.
|
|
5687
5845
|
* @throws {RequiredError}
|
|
5688
5846
|
*/
|
|
5689
|
-
acRequestCreate(aCRequestBody: ACRequestBody, options?: any): AxiosPromise<
|
|
5847
|
+
acRequestCreate(aCRequestBody: ACRequestBody, options?: any): AxiosPromise<WrappedOneResponseCreateACRequestResponse> {
|
|
5690
5848
|
return localVarFp.acRequestCreate(aCRequestBody, options).then((request) => request(axios, basePath));
|
|
5691
5849
|
},
|
|
5692
5850
|
/**
|
|
@@ -6002,6 +6160,16 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
|
|
|
6002
6160
|
towersIndex(options?: any): AxiosPromise<WrappedResponseTowerIndexResponse> {
|
|
6003
6161
|
return localVarFp.towersIndex(options).then((request) => request(axios, basePath));
|
|
6004
6162
|
},
|
|
6163
|
+
/**
|
|
6164
|
+
*
|
|
6165
|
+
* @param {string} id
|
|
6166
|
+
* @param {UpdateVisitorScheduleBody} updateVisitorScheduleBody
|
|
6167
|
+
* @param {*} [options] Override http request option.
|
|
6168
|
+
* @throws {RequiredError}
|
|
6169
|
+
*/
|
|
6170
|
+
visitorSchedulesUpdate(id: string, updateVisitorScheduleBody: UpdateVisitorScheduleBody, options?: any): AxiosPromise<WrappedResponseResultResponseData> {
|
|
6171
|
+
return localVarFp.visitorSchedulesUpdate(id, updateVisitorScheduleBody, options).then((request) => request(axios, basePath));
|
|
6172
|
+
},
|
|
6005
6173
|
/**
|
|
6006
6174
|
*
|
|
6007
6175
|
* @param {string} [tokenId]
|
|
@@ -6436,6 +6604,18 @@ export class DefaultApi extends BaseAPI {
|
|
|
6436
6604
|
return DefaultApiFp(this.configuration).towersIndex(options).then((request) => request(this.axios, this.basePath));
|
|
6437
6605
|
}
|
|
6438
6606
|
|
|
6607
|
+
/**
|
|
6608
|
+
*
|
|
6609
|
+
* @param {string} id
|
|
6610
|
+
* @param {UpdateVisitorScheduleBody} updateVisitorScheduleBody
|
|
6611
|
+
* @param {*} [options] Override http request option.
|
|
6612
|
+
* @throws {RequiredError}
|
|
6613
|
+
* @memberof DefaultApi
|
|
6614
|
+
*/
|
|
6615
|
+
public visitorSchedulesUpdate(id: string, updateVisitorScheduleBody: UpdateVisitorScheduleBody, options?: AxiosRequestConfig) {
|
|
6616
|
+
return DefaultApiFp(this.configuration).visitorSchedulesUpdate(id, updateVisitorScheduleBody, options).then((request) => request(this.axios, this.basePath));
|
|
6617
|
+
}
|
|
6618
|
+
|
|
6439
6619
|
/**
|
|
6440
6620
|
*
|
|
6441
6621
|
* @param {string} [tokenId]
|
package/dist/api/api.d.ts
CHANGED
|
@@ -27,10 +27,10 @@ export interface ACRequestBody {
|
|
|
27
27
|
'floor_id': string;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
|
-
* @type {string}
|
|
30
|
+
* @type {Array<string>}
|
|
31
31
|
* @memberof ACRequestBody
|
|
32
32
|
*/
|
|
33
|
-
'ac_zone_id': string
|
|
33
|
+
'ac_zone_id': Array<string>;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
36
|
* @type {string}
|
|
@@ -135,24 +135,12 @@ export interface ACRequestResponse {
|
|
|
135
135
|
* @memberof ACRequestResponse
|
|
136
136
|
*/
|
|
137
137
|
'floor_id': string;
|
|
138
|
-
/**
|
|
139
|
-
*
|
|
140
|
-
* @type {string}
|
|
141
|
-
* @memberof ACRequestResponse
|
|
142
|
-
*/
|
|
143
|
-
'ac_zone_id': string;
|
|
144
138
|
/**
|
|
145
139
|
*
|
|
146
140
|
* @type {string}
|
|
147
141
|
* @memberof ACRequestResponse
|
|
148
142
|
*/
|
|
149
143
|
'estimated_cost': string;
|
|
150
|
-
/**
|
|
151
|
-
*
|
|
152
|
-
* @type {string}
|
|
153
|
-
* @memberof ACRequestResponse
|
|
154
|
-
*/
|
|
155
|
-
'rate': string;
|
|
156
144
|
/**
|
|
157
145
|
*
|
|
158
146
|
* @type {string}
|
|
@@ -176,7 +164,7 @@ export interface ACRequestResponse {
|
|
|
176
164
|
* @type {number}
|
|
177
165
|
* @memberof ACRequestResponse
|
|
178
166
|
*/
|
|
179
|
-
'
|
|
167
|
+
'total_area_size': number;
|
|
180
168
|
/**
|
|
181
169
|
*
|
|
182
170
|
* @type {string}
|
|
@@ -203,10 +191,10 @@ export interface ACRequestResponse {
|
|
|
203
191
|
'requester_id': string;
|
|
204
192
|
/**
|
|
205
193
|
*
|
|
206
|
-
* @type {
|
|
194
|
+
* @type {Array<ACRequestZone>}
|
|
207
195
|
* @memberof ACRequestResponse
|
|
208
196
|
*/
|
|
209
|
-
'ac_zone':
|
|
197
|
+
'ac_zone': Array<ACRequestZone>;
|
|
210
198
|
/**
|
|
211
199
|
*
|
|
212
200
|
* @type {FloorData}
|
|
@@ -305,6 +293,55 @@ export interface ACRequestUpdateBody {
|
|
|
305
293
|
*/
|
|
306
294
|
export interface ACRequestUpdateBodyStatus {
|
|
307
295
|
}
|
|
296
|
+
/**
|
|
297
|
+
*
|
|
298
|
+
* @export
|
|
299
|
+
* @interface ACRequestZone
|
|
300
|
+
*/
|
|
301
|
+
export interface ACRequestZone {
|
|
302
|
+
/**
|
|
303
|
+
*
|
|
304
|
+
* @type {string}
|
|
305
|
+
* @memberof ACRequestZone
|
|
306
|
+
*/
|
|
307
|
+
'id': string;
|
|
308
|
+
/**
|
|
309
|
+
*
|
|
310
|
+
* @type {ACZoneData}
|
|
311
|
+
* @memberof ACRequestZone
|
|
312
|
+
*/
|
|
313
|
+
'ac_zone': ACZoneData;
|
|
314
|
+
/**
|
|
315
|
+
*
|
|
316
|
+
* @type {string}
|
|
317
|
+
* @memberof ACRequestZone
|
|
318
|
+
*/
|
|
319
|
+
'ac_request_id': string;
|
|
320
|
+
/**
|
|
321
|
+
*
|
|
322
|
+
* @type {string}
|
|
323
|
+
* @memberof ACRequestZone
|
|
324
|
+
*/
|
|
325
|
+
'rate': string;
|
|
326
|
+
/**
|
|
327
|
+
*
|
|
328
|
+
* @type {number}
|
|
329
|
+
* @memberof ACRequestZone
|
|
330
|
+
*/
|
|
331
|
+
'area_size': number;
|
|
332
|
+
/**
|
|
333
|
+
*
|
|
334
|
+
* @type {string}
|
|
335
|
+
* @memberof ACRequestZone
|
|
336
|
+
*/
|
|
337
|
+
'created_at': string;
|
|
338
|
+
/**
|
|
339
|
+
*
|
|
340
|
+
* @type {string}
|
|
341
|
+
* @memberof ACRequestZone
|
|
342
|
+
*/
|
|
343
|
+
'updated_at': string;
|
|
344
|
+
}
|
|
308
345
|
/**
|
|
309
346
|
*
|
|
310
347
|
* @export
|
|
@@ -472,6 +509,19 @@ export interface ConsentRequestBody {
|
|
|
472
509
|
*/
|
|
473
510
|
'consent': boolean;
|
|
474
511
|
}
|
|
512
|
+
/**
|
|
513
|
+
*
|
|
514
|
+
* @export
|
|
515
|
+
* @interface CreateACRequestResponse
|
|
516
|
+
*/
|
|
517
|
+
export interface CreateACRequestResponse {
|
|
518
|
+
/**
|
|
519
|
+
*
|
|
520
|
+
* @type {string}
|
|
521
|
+
* @memberof CreateACRequestResponse
|
|
522
|
+
*/
|
|
523
|
+
'references': string;
|
|
524
|
+
}
|
|
475
525
|
/**
|
|
476
526
|
*
|
|
477
527
|
* @export
|
|
@@ -1117,6 +1167,12 @@ export interface MemberIndexInterface {
|
|
|
1117
1167
|
* @memberof MemberIndexInterface
|
|
1118
1168
|
*/
|
|
1119
1169
|
'tenant': Tenant | null;
|
|
1170
|
+
/**
|
|
1171
|
+
*
|
|
1172
|
+
* @type {boolean}
|
|
1173
|
+
* @memberof MemberIndexInterface
|
|
1174
|
+
*/
|
|
1175
|
+
'can_preregister'?: boolean;
|
|
1120
1176
|
}
|
|
1121
1177
|
/**
|
|
1122
1178
|
*
|
|
@@ -1760,6 +1816,19 @@ export interface RequesterData {
|
|
|
1760
1816
|
*/
|
|
1761
1817
|
'id': string;
|
|
1762
1818
|
}
|
|
1819
|
+
/**
|
|
1820
|
+
*
|
|
1821
|
+
* @export
|
|
1822
|
+
* @interface ResultResponseData
|
|
1823
|
+
*/
|
|
1824
|
+
export interface ResultResponseData {
|
|
1825
|
+
/**
|
|
1826
|
+
*
|
|
1827
|
+
* @type {boolean}
|
|
1828
|
+
* @memberof ResultResponseData
|
|
1829
|
+
*/
|
|
1830
|
+
'result': boolean;
|
|
1831
|
+
}
|
|
1763
1832
|
/**
|
|
1764
1833
|
*
|
|
1765
1834
|
* @export
|
|
@@ -2614,6 +2683,26 @@ export interface UpdateMemberResponse {
|
|
|
2614
2683
|
*/
|
|
2615
2684
|
'result': boolean | null;
|
|
2616
2685
|
}
|
|
2686
|
+
/**
|
|
2687
|
+
*
|
|
2688
|
+
* @export
|
|
2689
|
+
* @interface UpdateVisitorScheduleBody
|
|
2690
|
+
*/
|
|
2691
|
+
export interface UpdateVisitorScheduleBody {
|
|
2692
|
+
/**
|
|
2693
|
+
*
|
|
2694
|
+
* @type {UpdateVisitorScheduleBodyDeletedAt}
|
|
2695
|
+
* @memberof UpdateVisitorScheduleBody
|
|
2696
|
+
*/
|
|
2697
|
+
'deleted_at': UpdateVisitorScheduleBodyDeletedAt;
|
|
2698
|
+
}
|
|
2699
|
+
/**
|
|
2700
|
+
*
|
|
2701
|
+
* @export
|
|
2702
|
+
* @interface UpdateVisitorScheduleBodyDeletedAt
|
|
2703
|
+
*/
|
|
2704
|
+
export interface UpdateVisitorScheduleBodyDeletedAt {
|
|
2705
|
+
}
|
|
2617
2706
|
/**
|
|
2618
2707
|
*
|
|
2619
2708
|
* @export
|
|
@@ -2781,16 +2870,16 @@ export interface VisitorSchedule {
|
|
|
2781
2870
|
'floor_id': string;
|
|
2782
2871
|
/**
|
|
2783
2872
|
*
|
|
2784
|
-
* @type {
|
|
2873
|
+
* @type {UpdateVisitorScheduleBodyDeletedAt}
|
|
2785
2874
|
* @memberof VisitorSchedule
|
|
2786
2875
|
*/
|
|
2787
|
-
'from':
|
|
2876
|
+
'from': UpdateVisitorScheduleBodyDeletedAt;
|
|
2788
2877
|
/**
|
|
2789
2878
|
*
|
|
2790
|
-
* @type {
|
|
2879
|
+
* @type {UpdateVisitorScheduleBodyDeletedAt}
|
|
2791
2880
|
* @memberof VisitorSchedule
|
|
2792
2881
|
*/
|
|
2793
|
-
'to':
|
|
2882
|
+
'to': UpdateVisitorScheduleBodyDeletedAt;
|
|
2794
2883
|
/**
|
|
2795
2884
|
*
|
|
2796
2885
|
* @type {object}
|
|
@@ -2798,13 +2887,6 @@ export interface VisitorSchedule {
|
|
|
2798
2887
|
*/
|
|
2799
2888
|
'repetition'?: object;
|
|
2800
2889
|
}
|
|
2801
|
-
/**
|
|
2802
|
-
*
|
|
2803
|
-
* @export
|
|
2804
|
-
* @interface VisitorScheduleFrom
|
|
2805
|
-
*/
|
|
2806
|
-
export interface VisitorScheduleFrom {
|
|
2807
|
-
}
|
|
2808
2890
|
/**
|
|
2809
2891
|
*
|
|
2810
2892
|
* @export
|
|
@@ -3102,15 +3184,15 @@ export interface WrappedOneResponseACRequestResponse {
|
|
|
3102
3184
|
/**
|
|
3103
3185
|
*
|
|
3104
3186
|
* @export
|
|
3105
|
-
* @interface
|
|
3187
|
+
* @interface WrappedOneResponseCreateACRequestResponse
|
|
3106
3188
|
*/
|
|
3107
|
-
export interface
|
|
3189
|
+
export interface WrappedOneResponseCreateACRequestResponse {
|
|
3108
3190
|
/**
|
|
3109
3191
|
*
|
|
3110
|
-
* @type {
|
|
3111
|
-
* @memberof
|
|
3192
|
+
* @type {CreateACRequestResponse}
|
|
3193
|
+
* @memberof WrappedOneResponseCreateACRequestResponse
|
|
3112
3194
|
*/
|
|
3113
|
-
'data':
|
|
3195
|
+
'data': CreateACRequestResponse;
|
|
3114
3196
|
}
|
|
3115
3197
|
/**
|
|
3116
3198
|
*
|
|
@@ -3640,6 +3722,32 @@ export declare const WrappedResponsePassConsentResponseDataStatusEnum: {
|
|
|
3640
3722
|
readonly Confirmed: "confirmed";
|
|
3641
3723
|
};
|
|
3642
3724
|
export type WrappedResponsePassConsentResponseDataStatusEnum = typeof WrappedResponsePassConsentResponseDataStatusEnum[keyof typeof WrappedResponsePassConsentResponseDataStatusEnum];
|
|
3725
|
+
/**
|
|
3726
|
+
*
|
|
3727
|
+
* @export
|
|
3728
|
+
* @interface WrappedResponseResultResponseData
|
|
3729
|
+
*/
|
|
3730
|
+
export interface WrappedResponseResultResponseData {
|
|
3731
|
+
/**
|
|
3732
|
+
*
|
|
3733
|
+
* @type {WrappedResponseResultResponseDataData}
|
|
3734
|
+
* @memberof WrappedResponseResultResponseData
|
|
3735
|
+
*/
|
|
3736
|
+
'data': WrappedResponseResultResponseDataData | null;
|
|
3737
|
+
}
|
|
3738
|
+
/**
|
|
3739
|
+
*
|
|
3740
|
+
* @export
|
|
3741
|
+
* @interface WrappedResponseResultResponseDataData
|
|
3742
|
+
*/
|
|
3743
|
+
export interface WrappedResponseResultResponseDataData {
|
|
3744
|
+
/**
|
|
3745
|
+
*
|
|
3746
|
+
* @type {boolean}
|
|
3747
|
+
* @memberof WrappedResponseResultResponseDataData
|
|
3748
|
+
*/
|
|
3749
|
+
'result': boolean;
|
|
3750
|
+
}
|
|
3643
3751
|
/**
|
|
3644
3752
|
*
|
|
3645
3753
|
* @export
|
|
@@ -4074,6 +4182,14 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
4074
4182
|
* @throws {RequiredError}
|
|
4075
4183
|
*/
|
|
4076
4184
|
towersIndex: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
4185
|
+
/**
|
|
4186
|
+
*
|
|
4187
|
+
* @param {string} id
|
|
4188
|
+
* @param {UpdateVisitorScheduleBody} updateVisitorScheduleBody
|
|
4189
|
+
* @param {*} [options] Override http request option.
|
|
4190
|
+
* @throws {RequiredError}
|
|
4191
|
+
*/
|
|
4192
|
+
visitorSchedulesUpdate: (id: string, updateVisitorScheduleBody: UpdateVisitorScheduleBody, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
4077
4193
|
/**
|
|
4078
4194
|
*
|
|
4079
4195
|
* @param {string} [tokenId]
|
|
@@ -4114,7 +4230,7 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
4114
4230
|
* @param {*} [options] Override http request option.
|
|
4115
4231
|
* @throws {RequiredError}
|
|
4116
4232
|
*/
|
|
4117
|
-
acRequestCreate(aCRequestBody: ACRequestBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
4233
|
+
acRequestCreate(aCRequestBody: ACRequestBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedOneResponseCreateACRequestResponse>>;
|
|
4118
4234
|
/**
|
|
4119
4235
|
*
|
|
4120
4236
|
* @param {string} [orderBy]
|
|
@@ -4364,6 +4480,14 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
4364
4480
|
* @throws {RequiredError}
|
|
4365
4481
|
*/
|
|
4366
4482
|
towersIndex(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedResponseTowerIndexResponse>>;
|
|
4483
|
+
/**
|
|
4484
|
+
*
|
|
4485
|
+
* @param {string} id
|
|
4486
|
+
* @param {UpdateVisitorScheduleBody} updateVisitorScheduleBody
|
|
4487
|
+
* @param {*} [options] Override http request option.
|
|
4488
|
+
* @throws {RequiredError}
|
|
4489
|
+
*/
|
|
4490
|
+
visitorSchedulesUpdate(id: string, updateVisitorScheduleBody: UpdateVisitorScheduleBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedResponseResultResponseData>>;
|
|
4367
4491
|
/**
|
|
4368
4492
|
*
|
|
4369
4493
|
* @param {string} [tokenId]
|
|
@@ -4404,7 +4528,7 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
4404
4528
|
* @param {*} [options] Override http request option.
|
|
4405
4529
|
* @throws {RequiredError}
|
|
4406
4530
|
*/
|
|
4407
|
-
acRequestCreate(aCRequestBody: ACRequestBody, options?: any): AxiosPromise<
|
|
4531
|
+
acRequestCreate(aCRequestBody: ACRequestBody, options?: any): AxiosPromise<WrappedOneResponseCreateACRequestResponse>;
|
|
4408
4532
|
/**
|
|
4409
4533
|
*
|
|
4410
4534
|
* @param {string} [orderBy]
|
|
@@ -4654,6 +4778,14 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
4654
4778
|
* @throws {RequiredError}
|
|
4655
4779
|
*/
|
|
4656
4780
|
towersIndex(options?: any): AxiosPromise<WrappedResponseTowerIndexResponse>;
|
|
4781
|
+
/**
|
|
4782
|
+
*
|
|
4783
|
+
* @param {string} id
|
|
4784
|
+
* @param {UpdateVisitorScheduleBody} updateVisitorScheduleBody
|
|
4785
|
+
* @param {*} [options] Override http request option.
|
|
4786
|
+
* @throws {RequiredError}
|
|
4787
|
+
*/
|
|
4788
|
+
visitorSchedulesUpdate(id: string, updateVisitorScheduleBody: UpdateVisitorScheduleBody, options?: any): AxiosPromise<WrappedResponseResultResponseData>;
|
|
4657
4789
|
/**
|
|
4658
4790
|
*
|
|
4659
4791
|
* @param {string} [tokenId]
|
|
@@ -4697,7 +4829,7 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
4697
4829
|
* @throws {RequiredError}
|
|
4698
4830
|
* @memberof DefaultApi
|
|
4699
4831
|
*/
|
|
4700
|
-
acRequestCreate(aCRequestBody: ACRequestBody, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
4832
|
+
acRequestCreate(aCRequestBody: ACRequestBody, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<WrappedOneResponseCreateACRequestResponse, any>>;
|
|
4701
4833
|
/**
|
|
4702
4834
|
*
|
|
4703
4835
|
* @param {string} [orderBy]
|
|
@@ -4979,6 +5111,15 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
4979
5111
|
* @memberof DefaultApi
|
|
4980
5112
|
*/
|
|
4981
5113
|
towersIndex(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<WrappedResponseTowerIndexResponse, any>>;
|
|
5114
|
+
/**
|
|
5115
|
+
*
|
|
5116
|
+
* @param {string} id
|
|
5117
|
+
* @param {UpdateVisitorScheduleBody} updateVisitorScheduleBody
|
|
5118
|
+
* @param {*} [options] Override http request option.
|
|
5119
|
+
* @throws {RequiredError}
|
|
5120
|
+
* @memberof DefaultApi
|
|
5121
|
+
*/
|
|
5122
|
+
visitorSchedulesUpdate(id: string, updateVisitorScheduleBody: UpdateVisitorScheduleBody, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<WrappedResponseResultResponseData, any>>;
|
|
4982
5123
|
/**
|
|
4983
5124
|
*
|
|
4984
5125
|
* @param {string} [tokenId]
|
package/dist/api/api.js
CHANGED
|
@@ -1174,6 +1174,39 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
1174
1174
|
options: localVarRequestOptions,
|
|
1175
1175
|
};
|
|
1176
1176
|
}),
|
|
1177
|
+
/**
|
|
1178
|
+
*
|
|
1179
|
+
* @param {string} id
|
|
1180
|
+
* @param {UpdateVisitorScheduleBody} updateVisitorScheduleBody
|
|
1181
|
+
* @param {*} [options] Override http request option.
|
|
1182
|
+
* @throws {RequiredError}
|
|
1183
|
+
*/
|
|
1184
|
+
visitorSchedulesUpdate: (id, updateVisitorScheduleBody, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1185
|
+
// verify required parameter 'id' is not null or undefined
|
|
1186
|
+
(0, common_1.assertParamExists)('visitorSchedulesUpdate', 'id', id);
|
|
1187
|
+
// verify required parameter 'updateVisitorScheduleBody' is not null or undefined
|
|
1188
|
+
(0, common_1.assertParamExists)('visitorSchedulesUpdate', 'updateVisitorScheduleBody', updateVisitorScheduleBody);
|
|
1189
|
+
const localVarPath = `/visitor_schedules/{id}`
|
|
1190
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
1191
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1192
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1193
|
+
let baseOptions;
|
|
1194
|
+
if (configuration) {
|
|
1195
|
+
baseOptions = configuration.baseOptions;
|
|
1196
|
+
}
|
|
1197
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
1198
|
+
const localVarHeaderParameter = {};
|
|
1199
|
+
const localVarQueryParameter = {};
|
|
1200
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1201
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1202
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1203
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1204
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateVisitorScheduleBody, localVarRequestOptions, configuration);
|
|
1205
|
+
return {
|
|
1206
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1207
|
+
options: localVarRequestOptions,
|
|
1208
|
+
};
|
|
1209
|
+
}),
|
|
1177
1210
|
/**
|
|
1178
1211
|
*
|
|
1179
1212
|
* @param {string} [tokenId]
|
|
@@ -1718,6 +1751,19 @@ const DefaultApiFp = function (configuration) {
|
|
|
1718
1751
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1719
1752
|
});
|
|
1720
1753
|
},
|
|
1754
|
+
/**
|
|
1755
|
+
*
|
|
1756
|
+
* @param {string} id
|
|
1757
|
+
* @param {UpdateVisitorScheduleBody} updateVisitorScheduleBody
|
|
1758
|
+
* @param {*} [options] Override http request option.
|
|
1759
|
+
* @throws {RequiredError}
|
|
1760
|
+
*/
|
|
1761
|
+
visitorSchedulesUpdate(id, updateVisitorScheduleBody, options) {
|
|
1762
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1763
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.visitorSchedulesUpdate(id, updateVisitorScheduleBody, options);
|
|
1764
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1765
|
+
});
|
|
1766
|
+
},
|
|
1721
1767
|
/**
|
|
1722
1768
|
*
|
|
1723
1769
|
* @param {string} [tokenId]
|
|
@@ -2098,6 +2144,16 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
2098
2144
|
towersIndex(options) {
|
|
2099
2145
|
return localVarFp.towersIndex(options).then((request) => request(axios, basePath));
|
|
2100
2146
|
},
|
|
2147
|
+
/**
|
|
2148
|
+
*
|
|
2149
|
+
* @param {string} id
|
|
2150
|
+
* @param {UpdateVisitorScheduleBody} updateVisitorScheduleBody
|
|
2151
|
+
* @param {*} [options] Override http request option.
|
|
2152
|
+
* @throws {RequiredError}
|
|
2153
|
+
*/
|
|
2154
|
+
visitorSchedulesUpdate(id, updateVisitorScheduleBody, options) {
|
|
2155
|
+
return localVarFp.visitorSchedulesUpdate(id, updateVisitorScheduleBody, options).then((request) => request(axios, basePath));
|
|
2156
|
+
},
|
|
2101
2157
|
/**
|
|
2102
2158
|
*
|
|
2103
2159
|
* @param {string} [tokenId]
|
|
@@ -2499,6 +2555,17 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
2499
2555
|
towersIndex(options) {
|
|
2500
2556
|
return (0, exports.DefaultApiFp)(this.configuration).towersIndex(options).then((request) => request(this.axios, this.basePath));
|
|
2501
2557
|
}
|
|
2558
|
+
/**
|
|
2559
|
+
*
|
|
2560
|
+
* @param {string} id
|
|
2561
|
+
* @param {UpdateVisitorScheduleBody} updateVisitorScheduleBody
|
|
2562
|
+
* @param {*} [options] Override http request option.
|
|
2563
|
+
* @throws {RequiredError}
|
|
2564
|
+
* @memberof DefaultApi
|
|
2565
|
+
*/
|
|
2566
|
+
visitorSchedulesUpdate(id, updateVisitorScheduleBody, options) {
|
|
2567
|
+
return (0, exports.DefaultApiFp)(this.configuration).visitorSchedulesUpdate(id, updateVisitorScheduleBody, options).then((request) => request(this.axios, this.basePath));
|
|
2568
|
+
}
|
|
2502
2569
|
/**
|
|
2503
2570
|
*
|
|
2504
2571
|
* @param {string} [tokenId]
|
package/package.json
CHANGED
package/test.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as OB_BMS_SDK from './dist';
|
|
2
|
+
|
|
3
|
+
// OB_BMS_SDK.setAcessToken('789');
|
|
4
|
+
OB_BMS_SDK.setBaseUrl('https://ob-bms.glorymtel.xyz');
|
|
5
|
+
OB_BMS_SDK.setAcessToken(
|
|
6
|
+
'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiI4MjQyNzA1Zi0zNWI1LTRkNzEtOGUxOS1jNWE0MWFjMmUwYTQiLCJpYXQiOjE2OTg5MzU2ODcsImV4cCI6MTcwMTUyNzY4NywicGVybWlzc2lvbiI6W3siaWQiOiJmY2Q1NDZmYy1lNThmLTQ2MjctOTU5Yy1jNWFlYTljMGQ0ODMiLCJwZXJtaXR0ZWVfdHlwZSI6ImFjY291bnQiLCJ2YWx1ZSI6eyJuYW1lIjoib2ItaWFtOmFjY291bnQiLCJzZXJ2aWNlIjoib2ItaWFtIiwiYWN0aW9ucyI6WyJyZWFkIiwidXBkYXRlIiwiZGVsZXRlIl0sInJlc291cmNlX3R5cGUiOiJhY2NvdW50IiwicmVzb3VyY2UiOnsiaWQiOiJzZWxmIn19LCJjcmVhdGVkX2F0IjoiMjAyMy0xMS0wMlQwODo1MTo0Mi43NzFaIiwidXBkYXRlZF9hdCI6IjIwMjMtMTEtMDJUMDg6NTE6NDIuNzcxWiIsImRlbGV0ZWRfYXQiOm51bGwsImFjY291bnRfaWQiOiI4MjQyNzA1Zi0zNWI1LTRkNzEtOGUxOS1jNWE0MWFjMmUwYTQiLCJhY2NvdW50X2dyb3VwX2lkIjpudWxsfSx7ImlkIjoiNWY0MDlmYzYtNDRkMi00YzQyLThhOGYtYzFiNTQ1MWZjODZiIiwicGVybWl0dGVlX3R5cGUiOiJhY2NvdW50IiwidmFsdWUiOnsibmFtZSI6Im9iLWlhbTpwcm9maWxlIiwic2VydmljZSI6Im9iLWlhbSIsImFjdGlvbnMiOlsicmVhZCIsInVwZGF0ZSJdLCJyZXNvdXJjZV90eXBlIjoicHJvZmlsZSIsInJlc291cmNlIjp7ImFjY291bnRfaWQiOiJzZWxmIn19LCJjcmVhdGVkX2F0IjoiMjAyMy0xMS0wMlQwODo1MTo0Mi43NzFaIiwidXBkYXRlZF9hdCI6IjIwMjMtMTEtMDJUMDg6NTE6NDIuNzcxWiIsImRlbGV0ZWRfYXQiOm51bGwsImFjY291bnRfaWQiOiI4MjQyNzA1Zi0zNWI1LTRkNzEtOGUxOS1jNWE0MWFjMmUwYTQiLCJhY2NvdW50X2dyb3VwX2lkIjpudWxsfSx7ImlkIjoiMDNlM2MxODctOTY3NC00MTdiLThjOGMtNDBmNGE0MjEyMDlkIiwicGVybWl0dGVlX3R5cGUiOiJhY2NvdW50IiwidmFsdWUiOnsibmFtZSI6Im9iLWlhbTppZGVudGl0eSIsInNlcnZpY2UiOiJvYi1pYW0iLCJhY3Rpb25zIjpbIioiXSwicmVzb3VyY2VfdHlwZSI6ImlkZW50aXR5IiwicmVzb3VyY2UiOnsiYWNjb3VudF9pZCI6InNlbGYifX0sImNyZWF0ZWRfYXQiOiIyMDIzLTExLTAyVDA4OjUxOjQyLjc3MVoiLCJ1cGRhdGVkX2F0IjoiMjAyMy0xMS0wMlQwODo1MTo0Mi43NzFaIiwiZGVsZXRlZF9hdCI6bnVsbCwiYWNjb3VudF9pZCI6IjgyNDI3MDVmLTM1YjUtNGQ3MS04ZTE5LWM1YTQxYWMyZTBhNCIsImFjY291bnRfZ3JvdXBfaWQiOm51bGx9LHsiaWQiOiIzMjU0MTEyNi00Nzc2LTQ0NzYtOTc5MS1mYjZhNjA2ZWUxNDIiLCJwZXJtaXR0ZWVfdHlwZSI6ImFjY291bnQiLCJ2YWx1ZSI6eyJuYW1lIjoib2ItaWFtOnNldHRpbmciLCJzZXJ2aWNlIjoib2ItaWFtIiwiYWN0aW9ucyI6WyJ1cGRhdGUiXSwicmVzb3VyY2VfdHlwZSI6InNldHRpbmciLCJyZXNvdXJjZSI6eyJhY2NvdW50X2lkIjoic2VsZiJ9fSwiY3JlYXRlZF9hdCI6IjIwMjMtMTEtMDJUMDg6NTE6NDIuNzcxWiIsInVwZGF0ZWRfYXQiOiIyMDIzLTExLTAyVDA4OjUxOjQyLjc3MVoiLCJkZWxldGVkX2F0IjpudWxsLCJhY2NvdW50X2lkIjoiODI0MjcwNWYtMzViNS00ZDcxLThlMTktYzVhNDFhYzJlMGE0IiwiYWNjb3VudF9ncm91cF9pZCI6bnVsbH0seyJpZCI6ImZjYzE3MTY4LWRmNTQtNDIyMy04MzYxLTY4NTlkZmNmMzU2NSIsInBlcm1pdHRlZV90eXBlIjoiYWNjb3VudCIsInZhbHVlIjp7Im5hbWUiOiJvYi1pYW06dG9rZW4iLCJzZXJ2aWNlIjoib2ItaWFtIiwiYWN0aW9ucyI6WyJjcmVhdGUiLCJyZWFkIl0sInJlc291cmNlX3R5cGUiOiJ0b2tlbiIsInJlc291cmNlIjp7ImFjY291bnRfaWQiOiJzZWxmIn19LCJjcmVhdGVkX2F0IjoiMjAyMy0xMS0wMlQwODo1MTo0Mi43NzFaIiwidXBkYXRlZF9hdCI6IjIwMjMtMTEtMDJUMDg6NTE6NDIuNzcxWiIsImRlbGV0ZWRfYXQiOm51bGwsImFjY291bnRfaWQiOiI4MjQyNzA1Zi0zNWI1LTRkNzEtOGUxOS1jNWE0MWFjMmUwYTQiLCJhY2NvdW50X2dyb3VwX2lkIjpudWxsfV19.tfqYJop4iJNlIbBVztf7DFfVhaYAFnUGDhLjik2OGA4',
|
|
7
|
+
);
|
|
8
|
+
(async () => {
|
|
9
|
+
try {
|
|
10
|
+
// const res = await OB_BMS_SDK.client.sensorsIndex(
|
|
11
|
+
// 'f1140a6a-2923-4527-a126-27c8323bf5ee',
|
|
12
|
+
// '72b292b5-e926-48d3-8b43-75f19eed6003',
|
|
13
|
+
// );
|
|
14
|
+
const res = await OB_BMS_SDK.client.serviceRequestsIndex();
|
|
15
|
+
console.log({ data: res.data });
|
|
16
|
+
} catch (err) {
|
|
17
|
+
console.log(err);
|
|
18
|
+
}
|
|
19
|
+
})();
|