ob-bms-sdk 0.0.61 → 0.0.63
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api/api.ts +584 -1
- package/dist/api/api.d.ts +439 -1
- package/dist/api/api.js +245 -1
- package/package.json +1 -1
- package/test.ts +4 -4
package/api/api.ts
CHANGED
|
@@ -246,6 +246,19 @@ export interface CreateMembersResponse {
|
|
|
246
246
|
*/
|
|
247
247
|
'error': { [key: string]: any; } | null;
|
|
248
248
|
}
|
|
249
|
+
/**
|
|
250
|
+
*
|
|
251
|
+
* @export
|
|
252
|
+
* @interface CreateServiceRequestResponse
|
|
253
|
+
*/
|
|
254
|
+
export interface CreateServiceRequestResponse {
|
|
255
|
+
/**
|
|
256
|
+
*
|
|
257
|
+
* @type {string}
|
|
258
|
+
* @memberof CreateServiceRequestResponse
|
|
259
|
+
*/
|
|
260
|
+
'id': string;
|
|
261
|
+
}
|
|
249
262
|
/**
|
|
250
263
|
*
|
|
251
264
|
* @export
|
|
@@ -511,6 +524,43 @@ export interface FloorDataPasses {
|
|
|
511
524
|
*/
|
|
512
525
|
'updated_at': string;
|
|
513
526
|
}
|
|
527
|
+
/**
|
|
528
|
+
*
|
|
529
|
+
* @export
|
|
530
|
+
* @interface IssueTypeData
|
|
531
|
+
*/
|
|
532
|
+
export interface IssueTypeData {
|
|
533
|
+
/**
|
|
534
|
+
*
|
|
535
|
+
* @type {string}
|
|
536
|
+
* @memberof IssueTypeData
|
|
537
|
+
*/
|
|
538
|
+
'updated_at': string;
|
|
539
|
+
/**
|
|
540
|
+
*
|
|
541
|
+
* @type {string}
|
|
542
|
+
* @memberof IssueTypeData
|
|
543
|
+
*/
|
|
544
|
+
'created_at': string;
|
|
545
|
+
/**
|
|
546
|
+
*
|
|
547
|
+
* @type {JsonValue}
|
|
548
|
+
* @memberof IssueTypeData
|
|
549
|
+
*/
|
|
550
|
+
'display_name': JsonValue | null;
|
|
551
|
+
/**
|
|
552
|
+
*
|
|
553
|
+
* @type {string}
|
|
554
|
+
* @memberof IssueTypeData
|
|
555
|
+
*/
|
|
556
|
+
'name': string;
|
|
557
|
+
/**
|
|
558
|
+
*
|
|
559
|
+
* @type {string}
|
|
560
|
+
* @memberof IssueTypeData
|
|
561
|
+
*/
|
|
562
|
+
'id': string;
|
|
563
|
+
}
|
|
514
564
|
/**
|
|
515
565
|
*
|
|
516
566
|
* @export
|
|
@@ -1323,6 +1373,209 @@ export interface RateDetail {
|
|
|
1323
1373
|
*/
|
|
1324
1374
|
'en': string;
|
|
1325
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
|
+
}
|
|
1457
|
+
/**
|
|
1458
|
+
*
|
|
1459
|
+
* @export
|
|
1460
|
+
* @interface ServiceRequestBody
|
|
1461
|
+
*/
|
|
1462
|
+
export interface ServiceRequestBody {
|
|
1463
|
+
/**
|
|
1464
|
+
*
|
|
1465
|
+
* @type {string}
|
|
1466
|
+
* @memberof ServiceRequestBody
|
|
1467
|
+
*/
|
|
1468
|
+
'description': string;
|
|
1469
|
+
/**
|
|
1470
|
+
*
|
|
1471
|
+
* @type {string}
|
|
1472
|
+
* @memberof ServiceRequestBody
|
|
1473
|
+
*/
|
|
1474
|
+
'title': string;
|
|
1475
|
+
/**
|
|
1476
|
+
*
|
|
1477
|
+
* @type {string}
|
|
1478
|
+
* @memberof ServiceRequestBody
|
|
1479
|
+
*/
|
|
1480
|
+
'requester_id': string;
|
|
1481
|
+
/**
|
|
1482
|
+
*
|
|
1483
|
+
* @type {string}
|
|
1484
|
+
* @memberof ServiceRequestBody
|
|
1485
|
+
*/
|
|
1486
|
+
'issue_type_id': string;
|
|
1487
|
+
/**
|
|
1488
|
+
*
|
|
1489
|
+
* @type {string}
|
|
1490
|
+
* @memberof ServiceRequestBody
|
|
1491
|
+
*/
|
|
1492
|
+
'floor_id': string;
|
|
1493
|
+
/**
|
|
1494
|
+
*
|
|
1495
|
+
* @type {string}
|
|
1496
|
+
* @memberof ServiceRequestBody
|
|
1497
|
+
*/
|
|
1498
|
+
'tower_id': string;
|
|
1499
|
+
/**
|
|
1500
|
+
*
|
|
1501
|
+
* @type {Array<string>}
|
|
1502
|
+
* @memberof ServiceRequestBody
|
|
1503
|
+
*/
|
|
1504
|
+
'image_url': Array<string>;
|
|
1505
|
+
}
|
|
1506
|
+
/**
|
|
1507
|
+
*
|
|
1508
|
+
* @export
|
|
1509
|
+
* @interface ServiceRequestData
|
|
1510
|
+
*/
|
|
1511
|
+
export interface ServiceRequestData {
|
|
1512
|
+
/**
|
|
1513
|
+
*
|
|
1514
|
+
* @type {string}
|
|
1515
|
+
* @memberof ServiceRequestData
|
|
1516
|
+
*/
|
|
1517
|
+
'updated_at': string;
|
|
1518
|
+
/**
|
|
1519
|
+
*
|
|
1520
|
+
* @type {string}
|
|
1521
|
+
* @memberof ServiceRequestData
|
|
1522
|
+
*/
|
|
1523
|
+
'created_at': string;
|
|
1524
|
+
/**
|
|
1525
|
+
*
|
|
1526
|
+
* @type {string}
|
|
1527
|
+
* @memberof ServiceRequestData
|
|
1528
|
+
*/
|
|
1529
|
+
'description': string;
|
|
1530
|
+
/**
|
|
1531
|
+
*
|
|
1532
|
+
* @type {string}
|
|
1533
|
+
* @memberof ServiceRequestData
|
|
1534
|
+
*/
|
|
1535
|
+
'status': string;
|
|
1536
|
+
/**
|
|
1537
|
+
*
|
|
1538
|
+
* @type {string}
|
|
1539
|
+
* @memberof ServiceRequestData
|
|
1540
|
+
*/
|
|
1541
|
+
'title': string;
|
|
1542
|
+
/**
|
|
1543
|
+
*
|
|
1544
|
+
* @type {string}
|
|
1545
|
+
* @memberof ServiceRequestData
|
|
1546
|
+
*/
|
|
1547
|
+
'requester_id': string;
|
|
1548
|
+
/**
|
|
1549
|
+
*
|
|
1550
|
+
* @type {IssueTypeData}
|
|
1551
|
+
* @memberof ServiceRequestData
|
|
1552
|
+
*/
|
|
1553
|
+
'issue_type': IssueTypeData;
|
|
1554
|
+
/**
|
|
1555
|
+
*
|
|
1556
|
+
* @type {FloorData}
|
|
1557
|
+
* @memberof ServiceRequestData
|
|
1558
|
+
*/
|
|
1559
|
+
'floor': FloorData;
|
|
1560
|
+
/**
|
|
1561
|
+
*
|
|
1562
|
+
* @type {TowerData}
|
|
1563
|
+
* @memberof ServiceRequestData
|
|
1564
|
+
*/
|
|
1565
|
+
'tower': TowerData;
|
|
1566
|
+
/**
|
|
1567
|
+
*
|
|
1568
|
+
* @type {Array<string>}
|
|
1569
|
+
* @memberof ServiceRequestData
|
|
1570
|
+
*/
|
|
1571
|
+
'image_url': Array<string>;
|
|
1572
|
+
/**
|
|
1573
|
+
*
|
|
1574
|
+
* @type {string}
|
|
1575
|
+
* @memberof ServiceRequestData
|
|
1576
|
+
*/
|
|
1577
|
+
'id': string;
|
|
1578
|
+
}
|
|
1326
1579
|
/**
|
|
1327
1580
|
*
|
|
1328
1581
|
* @export
|
|
@@ -2119,7 +2372,7 @@ export interface WebhookCreateBody {
|
|
|
2119
2372
|
* @type {WebhookCreateBodyPayload}
|
|
2120
2373
|
* @memberof WebhookCreateBody
|
|
2121
2374
|
*/
|
|
2122
|
-
'payload': WebhookCreateBodyPayload;
|
|
2375
|
+
'payload': WebhookCreateBodyPayload | null;
|
|
2123
2376
|
}
|
|
2124
2377
|
/**
|
|
2125
2378
|
*
|
|
@@ -2158,6 +2411,19 @@ export interface WebhookCreateBodyPayload {
|
|
|
2158
2411
|
*/
|
|
2159
2412
|
'inviteID': string;
|
|
2160
2413
|
}
|
|
2414
|
+
/**
|
|
2415
|
+
*
|
|
2416
|
+
* @export
|
|
2417
|
+
* @interface WrappedArrayResponseSensorsIndexResponseData
|
|
2418
|
+
*/
|
|
2419
|
+
export interface WrappedArrayResponseSensorsIndexResponseData {
|
|
2420
|
+
/**
|
|
2421
|
+
*
|
|
2422
|
+
* @type {Array<SensorData>}
|
|
2423
|
+
* @memberof WrappedArrayResponseSensorsIndexResponseData
|
|
2424
|
+
*/
|
|
2425
|
+
'data': Array<SensorData>;
|
|
2426
|
+
}
|
|
2161
2427
|
/**
|
|
2162
2428
|
*
|
|
2163
2429
|
* @export
|
|
@@ -2246,6 +2512,32 @@ export interface WrappedResponseCommandsIndexResponse {
|
|
|
2246
2512
|
*/
|
|
2247
2513
|
export interface WrappedResponseCommandsIndexResponseData {
|
|
2248
2514
|
}
|
|
2515
|
+
/**
|
|
2516
|
+
*
|
|
2517
|
+
* @export
|
|
2518
|
+
* @interface WrappedResponseCreateServiceRequestResponse
|
|
2519
|
+
*/
|
|
2520
|
+
export interface WrappedResponseCreateServiceRequestResponse {
|
|
2521
|
+
/**
|
|
2522
|
+
*
|
|
2523
|
+
* @type {WrappedResponseCreateServiceRequestResponseData}
|
|
2524
|
+
* @memberof WrappedResponseCreateServiceRequestResponse
|
|
2525
|
+
*/
|
|
2526
|
+
'data': WrappedResponseCreateServiceRequestResponseData | null;
|
|
2527
|
+
}
|
|
2528
|
+
/**
|
|
2529
|
+
*
|
|
2530
|
+
* @export
|
|
2531
|
+
* @interface WrappedResponseCreateServiceRequestResponseData
|
|
2532
|
+
*/
|
|
2533
|
+
export interface WrappedResponseCreateServiceRequestResponseData {
|
|
2534
|
+
/**
|
|
2535
|
+
*
|
|
2536
|
+
* @type {string}
|
|
2537
|
+
* @memberof WrappedResponseCreateServiceRequestResponseData
|
|
2538
|
+
*/
|
|
2539
|
+
'id': string;
|
|
2540
|
+
}
|
|
2249
2541
|
/**
|
|
2250
2542
|
*
|
|
2251
2543
|
* @export
|
|
@@ -2352,6 +2644,26 @@ export interface WrappedResponseFetchParkingResultData {
|
|
|
2352
2644
|
*/
|
|
2353
2645
|
'error': Array<SyncResultSyncJobErrorInner>;
|
|
2354
2646
|
}
|
|
2647
|
+
/**
|
|
2648
|
+
*
|
|
2649
|
+
* @export
|
|
2650
|
+
* @interface WrappedResponseIssueTypeResponse
|
|
2651
|
+
*/
|
|
2652
|
+
export interface WrappedResponseIssueTypeResponse {
|
|
2653
|
+
/**
|
|
2654
|
+
*
|
|
2655
|
+
* @type {WrappedResponseIssueTypeResponseData}
|
|
2656
|
+
* @memberof WrappedResponseIssueTypeResponse
|
|
2657
|
+
*/
|
|
2658
|
+
'data': WrappedResponseIssueTypeResponseData | null;
|
|
2659
|
+
}
|
|
2660
|
+
/**
|
|
2661
|
+
*
|
|
2662
|
+
* @export
|
|
2663
|
+
* @interface WrappedResponseIssueTypeResponseData
|
|
2664
|
+
*/
|
|
2665
|
+
export interface WrappedResponseIssueTypeResponseData {
|
|
2666
|
+
}
|
|
2355
2667
|
/**
|
|
2356
2668
|
*
|
|
2357
2669
|
* @export
|
|
@@ -2653,6 +2965,26 @@ export const WrappedResponsePassConsentResponseDataStatusEnum = {
|
|
|
2653
2965
|
|
|
2654
2966
|
export type WrappedResponsePassConsentResponseDataStatusEnum = typeof WrappedResponsePassConsentResponseDataStatusEnum[keyof typeof WrappedResponsePassConsentResponseDataStatusEnum];
|
|
2655
2967
|
|
|
2968
|
+
/**
|
|
2969
|
+
*
|
|
2970
|
+
* @export
|
|
2971
|
+
* @interface WrappedResponseServiceRequestResponse
|
|
2972
|
+
*/
|
|
2973
|
+
export interface WrappedResponseServiceRequestResponse {
|
|
2974
|
+
/**
|
|
2975
|
+
*
|
|
2976
|
+
* @type {WrappedResponseServiceRequestResponseData}
|
|
2977
|
+
* @memberof WrappedResponseServiceRequestResponse
|
|
2978
|
+
*/
|
|
2979
|
+
'data': WrappedResponseServiceRequestResponseData | null;
|
|
2980
|
+
}
|
|
2981
|
+
/**
|
|
2982
|
+
*
|
|
2983
|
+
* @export
|
|
2984
|
+
* @interface WrappedResponseServiceRequestResponseData
|
|
2985
|
+
*/
|
|
2986
|
+
export interface WrappedResponseServiceRequestResponseData {
|
|
2987
|
+
}
|
|
2656
2988
|
/**
|
|
2657
2989
|
*
|
|
2658
2990
|
* @export
|
|
@@ -2927,6 +3259,35 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
2927
3259
|
options: localVarRequestOptions,
|
|
2928
3260
|
};
|
|
2929
3261
|
},
|
|
3262
|
+
/**
|
|
3263
|
+
*
|
|
3264
|
+
* @param {*} [options] Override http request option.
|
|
3265
|
+
* @throws {RequiredError}
|
|
3266
|
+
*/
|
|
3267
|
+
issueTypesIndex: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3268
|
+
const localVarPath = `/issue_types`;
|
|
3269
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3270
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3271
|
+
let baseOptions;
|
|
3272
|
+
if (configuration) {
|
|
3273
|
+
baseOptions = configuration.baseOptions;
|
|
3274
|
+
}
|
|
3275
|
+
|
|
3276
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
3277
|
+
const localVarHeaderParameter = {} as any;
|
|
3278
|
+
const localVarQueryParameter = {} as any;
|
|
3279
|
+
|
|
3280
|
+
|
|
3281
|
+
|
|
3282
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3283
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3284
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3285
|
+
|
|
3286
|
+
return {
|
|
3287
|
+
url: toPathString(localVarUrlObj),
|
|
3288
|
+
options: localVarRequestOptions,
|
|
3289
|
+
};
|
|
3290
|
+
},
|
|
2930
3291
|
/**
|
|
2931
3292
|
*
|
|
2932
3293
|
* @param {*} [options] Override http request option.
|
|
@@ -3395,6 +3756,111 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
3395
3756
|
|
|
3396
3757
|
|
|
3397
3758
|
|
|
3759
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3760
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3761
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3762
|
+
|
|
3763
|
+
return {
|
|
3764
|
+
url: toPathString(localVarUrlObj),
|
|
3765
|
+
options: localVarRequestOptions,
|
|
3766
|
+
};
|
|
3767
|
+
},
|
|
3768
|
+
/**
|
|
3769
|
+
*
|
|
3770
|
+
* @param {string} towerId
|
|
3771
|
+
* @param {*} [options] Override http request option.
|
|
3772
|
+
* @throws {RequiredError}
|
|
3773
|
+
*/
|
|
3774
|
+
sensorsIndex: async (towerId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3775
|
+
// verify required parameter 'towerId' is not null or undefined
|
|
3776
|
+
assertParamExists('sensorsIndex', 'towerId', towerId)
|
|
3777
|
+
const localVarPath = `/sensors`;
|
|
3778
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3779
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3780
|
+
let baseOptions;
|
|
3781
|
+
if (configuration) {
|
|
3782
|
+
baseOptions = configuration.baseOptions;
|
|
3783
|
+
}
|
|
3784
|
+
|
|
3785
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
3786
|
+
const localVarHeaderParameter = {} as any;
|
|
3787
|
+
const localVarQueryParameter = {} as any;
|
|
3788
|
+
|
|
3789
|
+
if (towerId !== undefined) {
|
|
3790
|
+
localVarQueryParameter['tower_id'] = towerId;
|
|
3791
|
+
}
|
|
3792
|
+
|
|
3793
|
+
|
|
3794
|
+
|
|
3795
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3796
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3797
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3798
|
+
|
|
3799
|
+
return {
|
|
3800
|
+
url: toPathString(localVarUrlObj),
|
|
3801
|
+
options: localVarRequestOptions,
|
|
3802
|
+
};
|
|
3803
|
+
},
|
|
3804
|
+
/**
|
|
3805
|
+
*
|
|
3806
|
+
* @param {ServiceRequestBody} serviceRequestBody
|
|
3807
|
+
* @param {*} [options] Override http request option.
|
|
3808
|
+
* @throws {RequiredError}
|
|
3809
|
+
*/
|
|
3810
|
+
serviceRequestsCreate: async (serviceRequestBody: ServiceRequestBody, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3811
|
+
// verify required parameter 'serviceRequestBody' is not null or undefined
|
|
3812
|
+
assertParamExists('serviceRequestsCreate', 'serviceRequestBody', serviceRequestBody)
|
|
3813
|
+
const localVarPath = `/service_requests`;
|
|
3814
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3815
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3816
|
+
let baseOptions;
|
|
3817
|
+
if (configuration) {
|
|
3818
|
+
baseOptions = configuration.baseOptions;
|
|
3819
|
+
}
|
|
3820
|
+
|
|
3821
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
3822
|
+
const localVarHeaderParameter = {} as any;
|
|
3823
|
+
const localVarQueryParameter = {} as any;
|
|
3824
|
+
|
|
3825
|
+
|
|
3826
|
+
|
|
3827
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3828
|
+
|
|
3829
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3830
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3831
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3832
|
+
localVarRequestOptions.data = serializeDataIfNeeded(serviceRequestBody, localVarRequestOptions, configuration)
|
|
3833
|
+
|
|
3834
|
+
return {
|
|
3835
|
+
url: toPathString(localVarUrlObj),
|
|
3836
|
+
options: localVarRequestOptions,
|
|
3837
|
+
};
|
|
3838
|
+
},
|
|
3839
|
+
/**
|
|
3840
|
+
*
|
|
3841
|
+
* @param {string} [requesterId]
|
|
3842
|
+
* @param {*} [options] Override http request option.
|
|
3843
|
+
* @throws {RequiredError}
|
|
3844
|
+
*/
|
|
3845
|
+
serviceRequestsIndex: async (requesterId?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3846
|
+
const localVarPath = `/service_requests`;
|
|
3847
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3848
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3849
|
+
let baseOptions;
|
|
3850
|
+
if (configuration) {
|
|
3851
|
+
baseOptions = configuration.baseOptions;
|
|
3852
|
+
}
|
|
3853
|
+
|
|
3854
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
3855
|
+
const localVarHeaderParameter = {} as any;
|
|
3856
|
+
const localVarQueryParameter = {} as any;
|
|
3857
|
+
|
|
3858
|
+
if (requesterId !== undefined) {
|
|
3859
|
+
localVarQueryParameter['requester_id'] = requesterId;
|
|
3860
|
+
}
|
|
3861
|
+
|
|
3862
|
+
|
|
3863
|
+
|
|
3398
3864
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3399
3865
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3400
3866
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -3623,6 +4089,15 @@ export const DefaultApiFp = function(configuration?: Configuration) {
|
|
|
3623
4089
|
const localVarAxiosArgs = await localVarAxiosParamCreator.integrationsFsMembersDelete(destroyFSMembers, options);
|
|
3624
4090
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
3625
4091
|
},
|
|
4092
|
+
/**
|
|
4093
|
+
*
|
|
4094
|
+
* @param {*} [options] Override http request option.
|
|
4095
|
+
* @throws {RequiredError}
|
|
4096
|
+
*/
|
|
4097
|
+
async issueTypesIndex(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedResponseIssueTypeResponse>> {
|
|
4098
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.issueTypesIndex(options);
|
|
4099
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
4100
|
+
},
|
|
3626
4101
|
/**
|
|
3627
4102
|
*
|
|
3628
4103
|
* @param {*} [options] Override http request option.
|
|
@@ -3756,6 +4231,36 @@ export const DefaultApiFp = function(configuration?: Configuration) {
|
|
|
3756
4231
|
const localVarAxiosArgs = await localVarAxiosParamCreator.passesShow(visitScheduleId, options);
|
|
3757
4232
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
3758
4233
|
},
|
|
4234
|
+
/**
|
|
4235
|
+
*
|
|
4236
|
+
* @param {string} towerId
|
|
4237
|
+
* @param {*} [options] Override http request option.
|
|
4238
|
+
* @throws {RequiredError}
|
|
4239
|
+
*/
|
|
4240
|
+
async sensorsIndex(towerId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedArrayResponseSensorsIndexResponseData>> {
|
|
4241
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.sensorsIndex(towerId, options);
|
|
4242
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
4243
|
+
},
|
|
4244
|
+
/**
|
|
4245
|
+
*
|
|
4246
|
+
* @param {ServiceRequestBody} serviceRequestBody
|
|
4247
|
+
* @param {*} [options] Override http request option.
|
|
4248
|
+
* @throws {RequiredError}
|
|
4249
|
+
*/
|
|
4250
|
+
async serviceRequestsCreate(serviceRequestBody: ServiceRequestBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedResponseCreateServiceRequestResponse>> {
|
|
4251
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.serviceRequestsCreate(serviceRequestBody, options);
|
|
4252
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
4253
|
+
},
|
|
4254
|
+
/**
|
|
4255
|
+
*
|
|
4256
|
+
* @param {string} [requesterId]
|
|
4257
|
+
* @param {*} [options] Override http request option.
|
|
4258
|
+
* @throws {RequiredError}
|
|
4259
|
+
*/
|
|
4260
|
+
async serviceRequestsIndex(requesterId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedResponseServiceRequestResponse>> {
|
|
4261
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.serviceRequestsIndex(requesterId, options);
|
|
4262
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
4263
|
+
},
|
|
3759
4264
|
/**
|
|
3760
4265
|
*
|
|
3761
4266
|
* @param {SyncBody} syncBody
|
|
@@ -3851,6 +4356,14 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
|
|
|
3851
4356
|
integrationsFsMembersDelete(destroyFSMembers: DestroyFSMembers, options?: any): AxiosPromise<DestroyMembersResponse> {
|
|
3852
4357
|
return localVarFp.integrationsFsMembersDelete(destroyFSMembers, options).then((request) => request(axios, basePath));
|
|
3853
4358
|
},
|
|
4359
|
+
/**
|
|
4360
|
+
*
|
|
4361
|
+
* @param {*} [options] Override http request option.
|
|
4362
|
+
* @throws {RequiredError}
|
|
4363
|
+
*/
|
|
4364
|
+
issueTypesIndex(options?: any): AxiosPromise<WrappedResponseIssueTypeResponse> {
|
|
4365
|
+
return localVarFp.issueTypesIndex(options).then((request) => request(axios, basePath));
|
|
4366
|
+
},
|
|
3854
4367
|
/**
|
|
3855
4368
|
*
|
|
3856
4369
|
* @param {*} [options] Override http request option.
|
|
@@ -3972,6 +4485,33 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
|
|
|
3972
4485
|
passesShow(visitScheduleId: string, options?: any): AxiosPromise<WrappedResponseShowPassResponseOrNull> {
|
|
3973
4486
|
return localVarFp.passesShow(visitScheduleId, options).then((request) => request(axios, basePath));
|
|
3974
4487
|
},
|
|
4488
|
+
/**
|
|
4489
|
+
*
|
|
4490
|
+
* @param {string} towerId
|
|
4491
|
+
* @param {*} [options] Override http request option.
|
|
4492
|
+
* @throws {RequiredError}
|
|
4493
|
+
*/
|
|
4494
|
+
sensorsIndex(towerId: string, options?: any): AxiosPromise<WrappedArrayResponseSensorsIndexResponseData> {
|
|
4495
|
+
return localVarFp.sensorsIndex(towerId, options).then((request) => request(axios, basePath));
|
|
4496
|
+
},
|
|
4497
|
+
/**
|
|
4498
|
+
*
|
|
4499
|
+
* @param {ServiceRequestBody} serviceRequestBody
|
|
4500
|
+
* @param {*} [options] Override http request option.
|
|
4501
|
+
* @throws {RequiredError}
|
|
4502
|
+
*/
|
|
4503
|
+
serviceRequestsCreate(serviceRequestBody: ServiceRequestBody, options?: any): AxiosPromise<WrappedResponseCreateServiceRequestResponse> {
|
|
4504
|
+
return localVarFp.serviceRequestsCreate(serviceRequestBody, options).then((request) => request(axios, basePath));
|
|
4505
|
+
},
|
|
4506
|
+
/**
|
|
4507
|
+
*
|
|
4508
|
+
* @param {string} [requesterId]
|
|
4509
|
+
* @param {*} [options] Override http request option.
|
|
4510
|
+
* @throws {RequiredError}
|
|
4511
|
+
*/
|
|
4512
|
+
serviceRequestsIndex(requesterId?: string, options?: any): AxiosPromise<WrappedResponseServiceRequestResponse> {
|
|
4513
|
+
return localVarFp.serviceRequestsIndex(requesterId, options).then((request) => request(axios, basePath));
|
|
4514
|
+
},
|
|
3975
4515
|
/**
|
|
3976
4516
|
*
|
|
3977
4517
|
* @param {SyncBody} syncBody
|
|
@@ -4070,6 +4610,16 @@ export class DefaultApi extends BaseAPI {
|
|
|
4070
4610
|
return DefaultApiFp(this.configuration).integrationsFsMembersDelete(destroyFSMembers, options).then((request) => request(this.axios, this.basePath));
|
|
4071
4611
|
}
|
|
4072
4612
|
|
|
4613
|
+
/**
|
|
4614
|
+
*
|
|
4615
|
+
* @param {*} [options] Override http request option.
|
|
4616
|
+
* @throws {RequiredError}
|
|
4617
|
+
* @memberof DefaultApi
|
|
4618
|
+
*/
|
|
4619
|
+
public issueTypesIndex(options?: AxiosRequestConfig) {
|
|
4620
|
+
return DefaultApiFp(this.configuration).issueTypesIndex(options).then((request) => request(this.axios, this.basePath));
|
|
4621
|
+
}
|
|
4622
|
+
|
|
4073
4623
|
/**
|
|
4074
4624
|
*
|
|
4075
4625
|
* @param {*} [options] Override http request option.
|
|
@@ -4215,6 +4765,39 @@ export class DefaultApi extends BaseAPI {
|
|
|
4215
4765
|
return DefaultApiFp(this.configuration).passesShow(visitScheduleId, options).then((request) => request(this.axios, this.basePath));
|
|
4216
4766
|
}
|
|
4217
4767
|
|
|
4768
|
+
/**
|
|
4769
|
+
*
|
|
4770
|
+
* @param {string} towerId
|
|
4771
|
+
* @param {*} [options] Override http request option.
|
|
4772
|
+
* @throws {RequiredError}
|
|
4773
|
+
* @memberof DefaultApi
|
|
4774
|
+
*/
|
|
4775
|
+
public sensorsIndex(towerId: string, options?: AxiosRequestConfig) {
|
|
4776
|
+
return DefaultApiFp(this.configuration).sensorsIndex(towerId, options).then((request) => request(this.axios, this.basePath));
|
|
4777
|
+
}
|
|
4778
|
+
|
|
4779
|
+
/**
|
|
4780
|
+
*
|
|
4781
|
+
* @param {ServiceRequestBody} serviceRequestBody
|
|
4782
|
+
* @param {*} [options] Override http request option.
|
|
4783
|
+
* @throws {RequiredError}
|
|
4784
|
+
* @memberof DefaultApi
|
|
4785
|
+
*/
|
|
4786
|
+
public serviceRequestsCreate(serviceRequestBody: ServiceRequestBody, options?: AxiosRequestConfig) {
|
|
4787
|
+
return DefaultApiFp(this.configuration).serviceRequestsCreate(serviceRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
4788
|
+
}
|
|
4789
|
+
|
|
4790
|
+
/**
|
|
4791
|
+
*
|
|
4792
|
+
* @param {string} [requesterId]
|
|
4793
|
+
* @param {*} [options] Override http request option.
|
|
4794
|
+
* @throws {RequiredError}
|
|
4795
|
+
* @memberof DefaultApi
|
|
4796
|
+
*/
|
|
4797
|
+
public serviceRequestsIndex(requesterId?: string, options?: AxiosRequestConfig) {
|
|
4798
|
+
return DefaultApiFp(this.configuration).serviceRequestsIndex(requesterId, options).then((request) => request(this.axios, this.basePath));
|
|
4799
|
+
}
|
|
4800
|
+
|
|
4218
4801
|
/**
|
|
4219
4802
|
*
|
|
4220
4803
|
* @param {SyncBody} syncBody
|