ob-bms-sdk 0.0.34 → 0.0.36
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 +246 -9
- package/dist/api/api.d.ts +212 -9
- package/dist/api/api.js +59 -0
- package/package.json +1 -1
- package/test.ts +0 -15
package/api/api.ts
CHANGED
|
@@ -513,6 +513,37 @@ export interface LiftCallCommandData {
|
|
|
513
513
|
*/
|
|
514
514
|
'location_id': string;
|
|
515
515
|
}
|
|
516
|
+
/**
|
|
517
|
+
*
|
|
518
|
+
* @export
|
|
519
|
+
* @interface LiftCalledPayload
|
|
520
|
+
*/
|
|
521
|
+
export interface LiftCalledPayload {
|
|
522
|
+
/**
|
|
523
|
+
*
|
|
524
|
+
* @type {string}
|
|
525
|
+
* @memberof LiftCalledPayload
|
|
526
|
+
*/
|
|
527
|
+
'personID': string;
|
|
528
|
+
/**
|
|
529
|
+
*
|
|
530
|
+
* @type {string}
|
|
531
|
+
* @memberof LiftCalledPayload
|
|
532
|
+
*/
|
|
533
|
+
'liftName': string;
|
|
534
|
+
/**
|
|
535
|
+
*
|
|
536
|
+
* @type {string}
|
|
537
|
+
* @memberof LiftCalledPayload
|
|
538
|
+
*/
|
|
539
|
+
'floorName': string;
|
|
540
|
+
/**
|
|
541
|
+
*
|
|
542
|
+
* @type {string}
|
|
543
|
+
* @memberof LiftCalledPayload
|
|
544
|
+
*/
|
|
545
|
+
'towerName': string;
|
|
546
|
+
}
|
|
516
547
|
/**
|
|
517
548
|
*
|
|
518
549
|
* @export
|
|
@@ -764,6 +795,43 @@ export interface ParkingLotData {
|
|
|
764
795
|
*/
|
|
765
796
|
'zone': ZoneData;
|
|
766
797
|
}
|
|
798
|
+
/**
|
|
799
|
+
*
|
|
800
|
+
* @export
|
|
801
|
+
* @interface ParkingTicketResult
|
|
802
|
+
*/
|
|
803
|
+
export interface ParkingTicketResult {
|
|
804
|
+
/**
|
|
805
|
+
*
|
|
806
|
+
* @type {string}
|
|
807
|
+
* @memberof ParkingTicketResult
|
|
808
|
+
*/
|
|
809
|
+
'id': string;
|
|
810
|
+
/**
|
|
811
|
+
*
|
|
812
|
+
* @type {string}
|
|
813
|
+
* @memberof ParkingTicketResult
|
|
814
|
+
*/
|
|
815
|
+
'plate_number': string;
|
|
816
|
+
/**
|
|
817
|
+
*
|
|
818
|
+
* @type {string}
|
|
819
|
+
* @memberof ParkingTicketResult
|
|
820
|
+
*/
|
|
821
|
+
'member_id': string;
|
|
822
|
+
/**
|
|
823
|
+
*
|
|
824
|
+
* @type {FindMemberResultCreatedAt}
|
|
825
|
+
* @memberof ParkingTicketResult
|
|
826
|
+
*/
|
|
827
|
+
'created_at': FindMemberResultCreatedAt;
|
|
828
|
+
/**
|
|
829
|
+
*
|
|
830
|
+
* @type {FindMemberResultCreatedAt}
|
|
831
|
+
* @memberof ParkingTicketResult
|
|
832
|
+
*/
|
|
833
|
+
'updated_at': FindMemberResultCreatedAt;
|
|
834
|
+
}
|
|
767
835
|
/**
|
|
768
836
|
*
|
|
769
837
|
* @export
|
|
@@ -980,6 +1048,12 @@ export interface PersonData {
|
|
|
980
1048
|
* @memberof PersonData
|
|
981
1049
|
*/
|
|
982
1050
|
'status': string;
|
|
1051
|
+
/**
|
|
1052
|
+
*
|
|
1053
|
+
* @type {boolean}
|
|
1054
|
+
* @memberof PersonData
|
|
1055
|
+
*/
|
|
1056
|
+
'canPreRegister': boolean;
|
|
983
1057
|
}
|
|
984
1058
|
/**
|
|
985
1059
|
* From https://github.com/sindresorhus/type-fest/ Matches any valid JSON value.
|
|
@@ -1334,6 +1408,12 @@ export interface TowerData {
|
|
|
1334
1408
|
* @memberof TowerData
|
|
1335
1409
|
*/
|
|
1336
1410
|
'floors': Array<FloorData>;
|
|
1411
|
+
/**
|
|
1412
|
+
*
|
|
1413
|
+
* @type {Array<FloorData>}
|
|
1414
|
+
* @memberof TowerData
|
|
1415
|
+
*/
|
|
1416
|
+
'locations': Array<FloorData>;
|
|
1337
1417
|
}
|
|
1338
1418
|
/**
|
|
1339
1419
|
*
|
|
@@ -1445,6 +1525,37 @@ export interface VisitorData {
|
|
|
1445
1525
|
*/
|
|
1446
1526
|
'id': string;
|
|
1447
1527
|
}
|
|
1528
|
+
/**
|
|
1529
|
+
*
|
|
1530
|
+
* @export
|
|
1531
|
+
* @interface VisitorPassedPayload
|
|
1532
|
+
*/
|
|
1533
|
+
export interface VisitorPassedPayload {
|
|
1534
|
+
/**
|
|
1535
|
+
*
|
|
1536
|
+
* @type {string}
|
|
1537
|
+
* @memberof VisitorPassedPayload
|
|
1538
|
+
*/
|
|
1539
|
+
'inviteID': string;
|
|
1540
|
+
/**
|
|
1541
|
+
*
|
|
1542
|
+
* @type {string}
|
|
1543
|
+
* @memberof VisitorPassedPayload
|
|
1544
|
+
*/
|
|
1545
|
+
'liftName': string;
|
|
1546
|
+
/**
|
|
1547
|
+
*
|
|
1548
|
+
* @type {string}
|
|
1549
|
+
* @memberof VisitorPassedPayload
|
|
1550
|
+
*/
|
|
1551
|
+
'floorName': string;
|
|
1552
|
+
/**
|
|
1553
|
+
*
|
|
1554
|
+
* @type {string}
|
|
1555
|
+
* @memberof VisitorPassedPayload
|
|
1556
|
+
*/
|
|
1557
|
+
'towerName': string;
|
|
1558
|
+
}
|
|
1448
1559
|
/**
|
|
1449
1560
|
*
|
|
1450
1561
|
* @export
|
|
@@ -1597,37 +1708,50 @@ export interface WebhookCreateBody {
|
|
|
1597
1708
|
* @type {string}
|
|
1598
1709
|
* @memberof WebhookCreateBody
|
|
1599
1710
|
*/
|
|
1600
|
-
'
|
|
1711
|
+
'action': string;
|
|
1601
1712
|
/**
|
|
1602
1713
|
*
|
|
1603
|
-
* @type {
|
|
1714
|
+
* @type {WebhookCreateBodyPayload}
|
|
1604
1715
|
* @memberof WebhookCreateBody
|
|
1605
1716
|
*/
|
|
1717
|
+
'payload': WebhookCreateBodyPayload;
|
|
1718
|
+
}
|
|
1719
|
+
/**
|
|
1720
|
+
*
|
|
1721
|
+
* @export
|
|
1722
|
+
* @interface WebhookCreateBodyPayload
|
|
1723
|
+
*/
|
|
1724
|
+
export interface WebhookCreateBodyPayload {
|
|
1725
|
+
/**
|
|
1726
|
+
*
|
|
1727
|
+
* @type {string}
|
|
1728
|
+
* @memberof WebhookCreateBodyPayload
|
|
1729
|
+
*/
|
|
1606
1730
|
'personID': string;
|
|
1607
1731
|
/**
|
|
1608
1732
|
*
|
|
1609
1733
|
* @type {string}
|
|
1610
|
-
* @memberof
|
|
1734
|
+
* @memberof WebhookCreateBodyPayload
|
|
1611
1735
|
*/
|
|
1612
1736
|
'liftName': string;
|
|
1613
1737
|
/**
|
|
1614
1738
|
*
|
|
1615
1739
|
* @type {string}
|
|
1616
|
-
* @memberof
|
|
1740
|
+
* @memberof WebhookCreateBodyPayload
|
|
1617
1741
|
*/
|
|
1618
1742
|
'floorName': string;
|
|
1619
1743
|
/**
|
|
1620
1744
|
*
|
|
1621
|
-
* @type {
|
|
1622
|
-
* @memberof
|
|
1745
|
+
* @type {string}
|
|
1746
|
+
* @memberof WebhookCreateBodyPayload
|
|
1623
1747
|
*/
|
|
1624
|
-
'
|
|
1748
|
+
'towerName': string;
|
|
1625
1749
|
/**
|
|
1626
1750
|
*
|
|
1627
1751
|
* @type {string}
|
|
1628
|
-
* @memberof
|
|
1752
|
+
* @memberof WebhookCreateBodyPayload
|
|
1629
1753
|
*/
|
|
1630
|
-
'
|
|
1754
|
+
'inviteID': string;
|
|
1631
1755
|
}
|
|
1632
1756
|
/**
|
|
1633
1757
|
*
|
|
@@ -1939,6 +2063,56 @@ export interface WrappedResponseParkingLotsIndexResponse {
|
|
|
1939
2063
|
*/
|
|
1940
2064
|
export interface WrappedResponseParkingLotsIndexResponseData {
|
|
1941
2065
|
}
|
|
2066
|
+
/**
|
|
2067
|
+
*
|
|
2068
|
+
* @export
|
|
2069
|
+
* @interface WrappedResponseParkingTicketResult
|
|
2070
|
+
*/
|
|
2071
|
+
export interface WrappedResponseParkingTicketResult {
|
|
2072
|
+
/**
|
|
2073
|
+
*
|
|
2074
|
+
* @type {WrappedResponseParkingTicketResultData}
|
|
2075
|
+
* @memberof WrappedResponseParkingTicketResult
|
|
2076
|
+
*/
|
|
2077
|
+
'data': WrappedResponseParkingTicketResultData | null;
|
|
2078
|
+
}
|
|
2079
|
+
/**
|
|
2080
|
+
*
|
|
2081
|
+
* @export
|
|
2082
|
+
* @interface WrappedResponseParkingTicketResultData
|
|
2083
|
+
*/
|
|
2084
|
+
export interface WrappedResponseParkingTicketResultData {
|
|
2085
|
+
/**
|
|
2086
|
+
*
|
|
2087
|
+
* @type {string}
|
|
2088
|
+
* @memberof WrappedResponseParkingTicketResultData
|
|
2089
|
+
*/
|
|
2090
|
+
'id': string;
|
|
2091
|
+
/**
|
|
2092
|
+
*
|
|
2093
|
+
* @type {string}
|
|
2094
|
+
* @memberof WrappedResponseParkingTicketResultData
|
|
2095
|
+
*/
|
|
2096
|
+
'plate_number': string;
|
|
2097
|
+
/**
|
|
2098
|
+
*
|
|
2099
|
+
* @type {string}
|
|
2100
|
+
* @memberof WrappedResponseParkingTicketResultData
|
|
2101
|
+
*/
|
|
2102
|
+
'member_id': string;
|
|
2103
|
+
/**
|
|
2104
|
+
*
|
|
2105
|
+
* @type {FindMemberResultCreatedAt}
|
|
2106
|
+
* @memberof WrappedResponseParkingTicketResultData
|
|
2107
|
+
*/
|
|
2108
|
+
'created_at': FindMemberResultCreatedAt;
|
|
2109
|
+
/**
|
|
2110
|
+
*
|
|
2111
|
+
* @type {FindMemberResultCreatedAt}
|
|
2112
|
+
* @memberof WrappedResponseParkingTicketResultData
|
|
2113
|
+
*/
|
|
2114
|
+
'updated_at': FindMemberResultCreatedAt;
|
|
2115
|
+
}
|
|
1942
2116
|
/**
|
|
1943
2117
|
*
|
|
1944
2118
|
* @export
|
|
@@ -2502,6 +2676,39 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
2502
2676
|
|
|
2503
2677
|
|
|
2504
2678
|
|
|
2679
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2680
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2681
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2682
|
+
|
|
2683
|
+
return {
|
|
2684
|
+
url: toPathString(localVarUrlObj),
|
|
2685
|
+
options: localVarRequestOptions,
|
|
2686
|
+
};
|
|
2687
|
+
},
|
|
2688
|
+
/**
|
|
2689
|
+
*
|
|
2690
|
+
* @param {string} memberId
|
|
2691
|
+
* @param {*} [options] Override http request option.
|
|
2692
|
+
* @throws {RequiredError}
|
|
2693
|
+
*/
|
|
2694
|
+
parkingTicketsIndex: async (memberId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2695
|
+
// verify required parameter 'memberId' is not null or undefined
|
|
2696
|
+
assertParamExists('parkingTicketsIndex', 'memberId', memberId)
|
|
2697
|
+
const localVarPath = `/members/{member_id}/parking_tickets`
|
|
2698
|
+
.replace(`{${"member_id"}}`, encodeURIComponent(String(memberId)));
|
|
2699
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2700
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2701
|
+
let baseOptions;
|
|
2702
|
+
if (configuration) {
|
|
2703
|
+
baseOptions = configuration.baseOptions;
|
|
2704
|
+
}
|
|
2705
|
+
|
|
2706
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
2707
|
+
const localVarHeaderParameter = {} as any;
|
|
2708
|
+
const localVarQueryParameter = {} as any;
|
|
2709
|
+
|
|
2710
|
+
|
|
2711
|
+
|
|
2505
2712
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2506
2713
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2507
2714
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -2823,6 +3030,16 @@ export const DefaultApiFp = function(configuration?: Configuration) {
|
|
|
2823
3030
|
const localVarAxiosArgs = await localVarAxiosParamCreator.parkingLotsIndex(options);
|
|
2824
3031
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
2825
3032
|
},
|
|
3033
|
+
/**
|
|
3034
|
+
*
|
|
3035
|
+
* @param {string} memberId
|
|
3036
|
+
* @param {*} [options] Override http request option.
|
|
3037
|
+
* @throws {RequiredError}
|
|
3038
|
+
*/
|
|
3039
|
+
async parkingTicketsIndex(memberId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedResponseParkingTicketResult>> {
|
|
3040
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.parkingTicketsIndex(memberId, options);
|
|
3041
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
3042
|
+
},
|
|
2826
3043
|
/**
|
|
2827
3044
|
*
|
|
2828
3045
|
* @param {string} id
|
|
@@ -2979,6 +3196,15 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
|
|
|
2979
3196
|
parkingLotsIndex(options?: any): AxiosPromise<WrappedResponseParkingLotsIndexResponse> {
|
|
2980
3197
|
return localVarFp.parkingLotsIndex(options).then((request) => request(axios, basePath));
|
|
2981
3198
|
},
|
|
3199
|
+
/**
|
|
3200
|
+
*
|
|
3201
|
+
* @param {string} memberId
|
|
3202
|
+
* @param {*} [options] Override http request option.
|
|
3203
|
+
* @throws {RequiredError}
|
|
3204
|
+
*/
|
|
3205
|
+
parkingTicketsIndex(memberId: string, options?: any): AxiosPromise<WrappedResponseParkingTicketResult> {
|
|
3206
|
+
return localVarFp.parkingTicketsIndex(memberId, options).then((request) => request(axios, basePath));
|
|
3207
|
+
},
|
|
2982
3208
|
/**
|
|
2983
3209
|
*
|
|
2984
3210
|
* @param {string} id
|
|
@@ -3147,6 +3373,17 @@ export class DefaultApi extends BaseAPI {
|
|
|
3147
3373
|
return DefaultApiFp(this.configuration).parkingLotsIndex(options).then((request) => request(this.axios, this.basePath));
|
|
3148
3374
|
}
|
|
3149
3375
|
|
|
3376
|
+
/**
|
|
3377
|
+
*
|
|
3378
|
+
* @param {string} memberId
|
|
3379
|
+
* @param {*} [options] Override http request option.
|
|
3380
|
+
* @throws {RequiredError}
|
|
3381
|
+
* @memberof DefaultApi
|
|
3382
|
+
*/
|
|
3383
|
+
public parkingTicketsIndex(memberId: string, options?: AxiosRequestConfig) {
|
|
3384
|
+
return DefaultApiFp(this.configuration).parkingTicketsIndex(memberId, options).then((request) => request(this.axios, this.basePath));
|
|
3385
|
+
}
|
|
3386
|
+
|
|
3150
3387
|
/**
|
|
3151
3388
|
*
|
|
3152
3389
|
* @param {string} id
|
package/dist/api/api.d.ts
CHANGED
|
@@ -511,6 +511,37 @@ export interface LiftCallCommandData {
|
|
|
511
511
|
*/
|
|
512
512
|
'location_id': string;
|
|
513
513
|
}
|
|
514
|
+
/**
|
|
515
|
+
*
|
|
516
|
+
* @export
|
|
517
|
+
* @interface LiftCalledPayload
|
|
518
|
+
*/
|
|
519
|
+
export interface LiftCalledPayload {
|
|
520
|
+
/**
|
|
521
|
+
*
|
|
522
|
+
* @type {string}
|
|
523
|
+
* @memberof LiftCalledPayload
|
|
524
|
+
*/
|
|
525
|
+
'personID': string;
|
|
526
|
+
/**
|
|
527
|
+
*
|
|
528
|
+
* @type {string}
|
|
529
|
+
* @memberof LiftCalledPayload
|
|
530
|
+
*/
|
|
531
|
+
'liftName': string;
|
|
532
|
+
/**
|
|
533
|
+
*
|
|
534
|
+
* @type {string}
|
|
535
|
+
* @memberof LiftCalledPayload
|
|
536
|
+
*/
|
|
537
|
+
'floorName': string;
|
|
538
|
+
/**
|
|
539
|
+
*
|
|
540
|
+
* @type {string}
|
|
541
|
+
* @memberof LiftCalledPayload
|
|
542
|
+
*/
|
|
543
|
+
'towerName': string;
|
|
544
|
+
}
|
|
514
545
|
/**
|
|
515
546
|
*
|
|
516
547
|
* @export
|
|
@@ -762,6 +793,43 @@ export interface ParkingLotData {
|
|
|
762
793
|
*/
|
|
763
794
|
'zone': ZoneData;
|
|
764
795
|
}
|
|
796
|
+
/**
|
|
797
|
+
*
|
|
798
|
+
* @export
|
|
799
|
+
* @interface ParkingTicketResult
|
|
800
|
+
*/
|
|
801
|
+
export interface ParkingTicketResult {
|
|
802
|
+
/**
|
|
803
|
+
*
|
|
804
|
+
* @type {string}
|
|
805
|
+
* @memberof ParkingTicketResult
|
|
806
|
+
*/
|
|
807
|
+
'id': string;
|
|
808
|
+
/**
|
|
809
|
+
*
|
|
810
|
+
* @type {string}
|
|
811
|
+
* @memberof ParkingTicketResult
|
|
812
|
+
*/
|
|
813
|
+
'plate_number': string;
|
|
814
|
+
/**
|
|
815
|
+
*
|
|
816
|
+
* @type {string}
|
|
817
|
+
* @memberof ParkingTicketResult
|
|
818
|
+
*/
|
|
819
|
+
'member_id': string;
|
|
820
|
+
/**
|
|
821
|
+
*
|
|
822
|
+
* @type {FindMemberResultCreatedAt}
|
|
823
|
+
* @memberof ParkingTicketResult
|
|
824
|
+
*/
|
|
825
|
+
'created_at': FindMemberResultCreatedAt;
|
|
826
|
+
/**
|
|
827
|
+
*
|
|
828
|
+
* @type {FindMemberResultCreatedAt}
|
|
829
|
+
* @memberof ParkingTicketResult
|
|
830
|
+
*/
|
|
831
|
+
'updated_at': FindMemberResultCreatedAt;
|
|
832
|
+
}
|
|
765
833
|
/**
|
|
766
834
|
*
|
|
767
835
|
* @export
|
|
@@ -972,6 +1040,12 @@ export interface PersonData {
|
|
|
972
1040
|
* @memberof PersonData
|
|
973
1041
|
*/
|
|
974
1042
|
'status': string;
|
|
1043
|
+
/**
|
|
1044
|
+
*
|
|
1045
|
+
* @type {boolean}
|
|
1046
|
+
* @memberof PersonData
|
|
1047
|
+
*/
|
|
1048
|
+
'canPreRegister': boolean;
|
|
975
1049
|
}
|
|
976
1050
|
/**
|
|
977
1051
|
* From https://github.com/sindresorhus/type-fest/ Matches any valid JSON value.
|
|
@@ -1323,6 +1397,12 @@ export interface TowerData {
|
|
|
1323
1397
|
* @memberof TowerData
|
|
1324
1398
|
*/
|
|
1325
1399
|
'floors': Array<FloorData>;
|
|
1400
|
+
/**
|
|
1401
|
+
*
|
|
1402
|
+
* @type {Array<FloorData>}
|
|
1403
|
+
* @memberof TowerData
|
|
1404
|
+
*/
|
|
1405
|
+
'locations': Array<FloorData>;
|
|
1326
1406
|
}
|
|
1327
1407
|
/**
|
|
1328
1408
|
*
|
|
@@ -1434,6 +1514,37 @@ export interface VisitorData {
|
|
|
1434
1514
|
*/
|
|
1435
1515
|
'id': string;
|
|
1436
1516
|
}
|
|
1517
|
+
/**
|
|
1518
|
+
*
|
|
1519
|
+
* @export
|
|
1520
|
+
* @interface VisitorPassedPayload
|
|
1521
|
+
*/
|
|
1522
|
+
export interface VisitorPassedPayload {
|
|
1523
|
+
/**
|
|
1524
|
+
*
|
|
1525
|
+
* @type {string}
|
|
1526
|
+
* @memberof VisitorPassedPayload
|
|
1527
|
+
*/
|
|
1528
|
+
'inviteID': string;
|
|
1529
|
+
/**
|
|
1530
|
+
*
|
|
1531
|
+
* @type {string}
|
|
1532
|
+
* @memberof VisitorPassedPayload
|
|
1533
|
+
*/
|
|
1534
|
+
'liftName': string;
|
|
1535
|
+
/**
|
|
1536
|
+
*
|
|
1537
|
+
* @type {string}
|
|
1538
|
+
* @memberof VisitorPassedPayload
|
|
1539
|
+
*/
|
|
1540
|
+
'floorName': string;
|
|
1541
|
+
/**
|
|
1542
|
+
*
|
|
1543
|
+
* @type {string}
|
|
1544
|
+
* @memberof VisitorPassedPayload
|
|
1545
|
+
*/
|
|
1546
|
+
'towerName': string;
|
|
1547
|
+
}
|
|
1437
1548
|
/**
|
|
1438
1549
|
*
|
|
1439
1550
|
* @export
|
|
@@ -1586,37 +1697,50 @@ export interface WebhookCreateBody {
|
|
|
1586
1697
|
* @type {string}
|
|
1587
1698
|
* @memberof WebhookCreateBody
|
|
1588
1699
|
*/
|
|
1589
|
-
'
|
|
1700
|
+
'action': string;
|
|
1590
1701
|
/**
|
|
1591
1702
|
*
|
|
1592
|
-
* @type {
|
|
1703
|
+
* @type {WebhookCreateBodyPayload}
|
|
1593
1704
|
* @memberof WebhookCreateBody
|
|
1594
1705
|
*/
|
|
1706
|
+
'payload': WebhookCreateBodyPayload;
|
|
1707
|
+
}
|
|
1708
|
+
/**
|
|
1709
|
+
*
|
|
1710
|
+
* @export
|
|
1711
|
+
* @interface WebhookCreateBodyPayload
|
|
1712
|
+
*/
|
|
1713
|
+
export interface WebhookCreateBodyPayload {
|
|
1714
|
+
/**
|
|
1715
|
+
*
|
|
1716
|
+
* @type {string}
|
|
1717
|
+
* @memberof WebhookCreateBodyPayload
|
|
1718
|
+
*/
|
|
1595
1719
|
'personID': string;
|
|
1596
1720
|
/**
|
|
1597
1721
|
*
|
|
1598
1722
|
* @type {string}
|
|
1599
|
-
* @memberof
|
|
1723
|
+
* @memberof WebhookCreateBodyPayload
|
|
1600
1724
|
*/
|
|
1601
1725
|
'liftName': string;
|
|
1602
1726
|
/**
|
|
1603
1727
|
*
|
|
1604
1728
|
* @type {string}
|
|
1605
|
-
* @memberof
|
|
1729
|
+
* @memberof WebhookCreateBodyPayload
|
|
1606
1730
|
*/
|
|
1607
1731
|
'floorName': string;
|
|
1608
1732
|
/**
|
|
1609
1733
|
*
|
|
1610
|
-
* @type {
|
|
1611
|
-
* @memberof
|
|
1734
|
+
* @type {string}
|
|
1735
|
+
* @memberof WebhookCreateBodyPayload
|
|
1612
1736
|
*/
|
|
1613
|
-
'
|
|
1737
|
+
'towerName': string;
|
|
1614
1738
|
/**
|
|
1615
1739
|
*
|
|
1616
1740
|
* @type {string}
|
|
1617
|
-
* @memberof
|
|
1741
|
+
* @memberof WebhookCreateBodyPayload
|
|
1618
1742
|
*/
|
|
1619
|
-
'
|
|
1743
|
+
'inviteID': string;
|
|
1620
1744
|
}
|
|
1621
1745
|
/**
|
|
1622
1746
|
*
|
|
@@ -1925,6 +2049,56 @@ export interface WrappedResponseParkingLotsIndexResponse {
|
|
|
1925
2049
|
*/
|
|
1926
2050
|
export interface WrappedResponseParkingLotsIndexResponseData {
|
|
1927
2051
|
}
|
|
2052
|
+
/**
|
|
2053
|
+
*
|
|
2054
|
+
* @export
|
|
2055
|
+
* @interface WrappedResponseParkingTicketResult
|
|
2056
|
+
*/
|
|
2057
|
+
export interface WrappedResponseParkingTicketResult {
|
|
2058
|
+
/**
|
|
2059
|
+
*
|
|
2060
|
+
* @type {WrappedResponseParkingTicketResultData}
|
|
2061
|
+
* @memberof WrappedResponseParkingTicketResult
|
|
2062
|
+
*/
|
|
2063
|
+
'data': WrappedResponseParkingTicketResultData | null;
|
|
2064
|
+
}
|
|
2065
|
+
/**
|
|
2066
|
+
*
|
|
2067
|
+
* @export
|
|
2068
|
+
* @interface WrappedResponseParkingTicketResultData
|
|
2069
|
+
*/
|
|
2070
|
+
export interface WrappedResponseParkingTicketResultData {
|
|
2071
|
+
/**
|
|
2072
|
+
*
|
|
2073
|
+
* @type {string}
|
|
2074
|
+
* @memberof WrappedResponseParkingTicketResultData
|
|
2075
|
+
*/
|
|
2076
|
+
'id': string;
|
|
2077
|
+
/**
|
|
2078
|
+
*
|
|
2079
|
+
* @type {string}
|
|
2080
|
+
* @memberof WrappedResponseParkingTicketResultData
|
|
2081
|
+
*/
|
|
2082
|
+
'plate_number': string;
|
|
2083
|
+
/**
|
|
2084
|
+
*
|
|
2085
|
+
* @type {string}
|
|
2086
|
+
* @memberof WrappedResponseParkingTicketResultData
|
|
2087
|
+
*/
|
|
2088
|
+
'member_id': string;
|
|
2089
|
+
/**
|
|
2090
|
+
*
|
|
2091
|
+
* @type {FindMemberResultCreatedAt}
|
|
2092
|
+
* @memberof WrappedResponseParkingTicketResultData
|
|
2093
|
+
*/
|
|
2094
|
+
'created_at': FindMemberResultCreatedAt;
|
|
2095
|
+
/**
|
|
2096
|
+
*
|
|
2097
|
+
* @type {FindMemberResultCreatedAt}
|
|
2098
|
+
* @memberof WrappedResponseParkingTicketResultData
|
|
2099
|
+
*/
|
|
2100
|
+
'updated_at': FindMemberResultCreatedAt;
|
|
2101
|
+
}
|
|
1928
2102
|
/**
|
|
1929
2103
|
*
|
|
1930
2104
|
* @export
|
|
@@ -2230,6 +2404,13 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
2230
2404
|
* @throws {RequiredError}
|
|
2231
2405
|
*/
|
|
2232
2406
|
parkingLotsIndex: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
2407
|
+
/**
|
|
2408
|
+
*
|
|
2409
|
+
* @param {string} memberId
|
|
2410
|
+
* @param {*} [options] Override http request option.
|
|
2411
|
+
* @throws {RequiredError}
|
|
2412
|
+
*/
|
|
2413
|
+
parkingTicketsIndex: (memberId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
2233
2414
|
/**
|
|
2234
2415
|
*
|
|
2235
2416
|
* @param {string} id
|
|
@@ -2346,6 +2527,13 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
2346
2527
|
* @throws {RequiredError}
|
|
2347
2528
|
*/
|
|
2348
2529
|
parkingLotsIndex(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedResponseParkingLotsIndexResponse>>;
|
|
2530
|
+
/**
|
|
2531
|
+
*
|
|
2532
|
+
* @param {string} memberId
|
|
2533
|
+
* @param {*} [options] Override http request option.
|
|
2534
|
+
* @throws {RequiredError}
|
|
2535
|
+
*/
|
|
2536
|
+
parkingTicketsIndex(memberId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedResponseParkingTicketResult>>;
|
|
2349
2537
|
/**
|
|
2350
2538
|
*
|
|
2351
2539
|
* @param {string} id
|
|
@@ -2462,6 +2650,13 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
2462
2650
|
* @throws {RequiredError}
|
|
2463
2651
|
*/
|
|
2464
2652
|
parkingLotsIndex(options?: any): AxiosPromise<WrappedResponseParkingLotsIndexResponse>;
|
|
2653
|
+
/**
|
|
2654
|
+
*
|
|
2655
|
+
* @param {string} memberId
|
|
2656
|
+
* @param {*} [options] Override http request option.
|
|
2657
|
+
* @throws {RequiredError}
|
|
2658
|
+
*/
|
|
2659
|
+
parkingTicketsIndex(memberId: string, options?: any): AxiosPromise<WrappedResponseParkingTicketResult>;
|
|
2465
2660
|
/**
|
|
2466
2661
|
*
|
|
2467
2662
|
* @param {string} id
|
|
@@ -2589,6 +2784,14 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
2589
2784
|
* @memberof DefaultApi
|
|
2590
2785
|
*/
|
|
2591
2786
|
parkingLotsIndex(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<WrappedResponseParkingLotsIndexResponse, any>>;
|
|
2787
|
+
/**
|
|
2788
|
+
*
|
|
2789
|
+
* @param {string} memberId
|
|
2790
|
+
* @param {*} [options] Override http request option.
|
|
2791
|
+
* @throws {RequiredError}
|
|
2792
|
+
* @memberof DefaultApi
|
|
2793
|
+
*/
|
|
2794
|
+
parkingTicketsIndex(memberId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<WrappedResponseParkingTicketResult, any>>;
|
|
2592
2795
|
/**
|
|
2593
2796
|
*
|
|
2594
2797
|
* @param {string} id
|
package/dist/api/api.js
CHANGED
|
@@ -331,6 +331,34 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
331
331
|
options: localVarRequestOptions,
|
|
332
332
|
};
|
|
333
333
|
}),
|
|
334
|
+
/**
|
|
335
|
+
*
|
|
336
|
+
* @param {string} memberId
|
|
337
|
+
* @param {*} [options] Override http request option.
|
|
338
|
+
* @throws {RequiredError}
|
|
339
|
+
*/
|
|
340
|
+
parkingTicketsIndex: (memberId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
341
|
+
// verify required parameter 'memberId' is not null or undefined
|
|
342
|
+
(0, common_1.assertParamExists)('parkingTicketsIndex', 'memberId', memberId);
|
|
343
|
+
const localVarPath = `/members/{member_id}/parking_tickets`
|
|
344
|
+
.replace(`{${"member_id"}}`, encodeURIComponent(String(memberId)));
|
|
345
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
346
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
347
|
+
let baseOptions;
|
|
348
|
+
if (configuration) {
|
|
349
|
+
baseOptions = configuration.baseOptions;
|
|
350
|
+
}
|
|
351
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
352
|
+
const localVarHeaderParameter = {};
|
|
353
|
+
const localVarQueryParameter = {};
|
|
354
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
355
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
356
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
357
|
+
return {
|
|
358
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
359
|
+
options: localVarRequestOptions,
|
|
360
|
+
};
|
|
361
|
+
}),
|
|
334
362
|
/**
|
|
335
363
|
*
|
|
336
364
|
* @param {string} id
|
|
@@ -628,6 +656,18 @@ const DefaultApiFp = function (configuration) {
|
|
|
628
656
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
629
657
|
});
|
|
630
658
|
},
|
|
659
|
+
/**
|
|
660
|
+
*
|
|
661
|
+
* @param {string} memberId
|
|
662
|
+
* @param {*} [options] Override http request option.
|
|
663
|
+
* @throws {RequiredError}
|
|
664
|
+
*/
|
|
665
|
+
parkingTicketsIndex(memberId, options) {
|
|
666
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
667
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.parkingTicketsIndex(memberId, options);
|
|
668
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
669
|
+
});
|
|
670
|
+
},
|
|
631
671
|
/**
|
|
632
672
|
*
|
|
633
673
|
* @param {string} id
|
|
@@ -796,6 +836,15 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
796
836
|
parkingLotsIndex(options) {
|
|
797
837
|
return localVarFp.parkingLotsIndex(options).then((request) => request(axios, basePath));
|
|
798
838
|
},
|
|
839
|
+
/**
|
|
840
|
+
*
|
|
841
|
+
* @param {string} memberId
|
|
842
|
+
* @param {*} [options] Override http request option.
|
|
843
|
+
* @throws {RequiredError}
|
|
844
|
+
*/
|
|
845
|
+
parkingTicketsIndex(memberId, options) {
|
|
846
|
+
return localVarFp.parkingTicketsIndex(memberId, options).then((request) => request(axios, basePath));
|
|
847
|
+
},
|
|
799
848
|
/**
|
|
800
849
|
*
|
|
801
850
|
* @param {string} id
|
|
@@ -955,6 +1004,16 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
955
1004
|
parkingLotsIndex(options) {
|
|
956
1005
|
return (0, exports.DefaultApiFp)(this.configuration).parkingLotsIndex(options).then((request) => request(this.axios, this.basePath));
|
|
957
1006
|
}
|
|
1007
|
+
/**
|
|
1008
|
+
*
|
|
1009
|
+
* @param {string} memberId
|
|
1010
|
+
* @param {*} [options] Override http request option.
|
|
1011
|
+
* @throws {RequiredError}
|
|
1012
|
+
* @memberof DefaultApi
|
|
1013
|
+
*/
|
|
1014
|
+
parkingTicketsIndex(memberId, options) {
|
|
1015
|
+
return (0, exports.DefaultApiFp)(this.configuration).parkingTicketsIndex(memberId, options).then((request) => request(this.axios, this.basePath));
|
|
1016
|
+
}
|
|
958
1017
|
/**
|
|
959
1018
|
*
|
|
960
1019
|
* @param {string} id
|
package/package.json
CHANGED
package/test.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|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ZiJ9fSwiY3JlYXRlZF9hdCI6IjIwMjMtMTEtMDJUMDg6NTE6NDIuNzcxWiIsInVwZGF0ZWRfYXQiOiIyMDIzLTExLTAyVDA4OjUxOjQyLjc3MVoiLCJkZWxldGVkX2F0IjpudWxsLCJhY2NvdW50X2lkIjoiODI0MjcwNWYtMzViNS00ZDcxLThlMTktYzVhNDFhYzJlMGE0IiwiYWNjb3VudF9ncm91cF9pZCI6bnVsbH0seyJpZCI6ImZjYzE3MTY4LWRmNTQtNDIyMy04MzYxLTY4NTlkZmNmMzU2NSIsInBlcm1pdHRlZV90eXBlIjoiYWNjb3VudCIsInZhbHVlIjp7Im5hbWUiOiJvYi1pYW06dG9rZW4iLCJzZXJ2aWNlIjoib2ItaWFtIiwiYWN0aW9ucyI6WyJjcmVhdGUiLCJyZWFkIl0sInJlc291cmNlX3R5cGUiOiJ0b2tlbiIsInJlc291cmNlIjp7ImFjY291bnRfaWQiOiJzZWxmIn19LCJjcmVhdGVkX2F0IjoiMjAyMy0xMS0wMlQwODo1MTo0Mi43NzFaIiwidXBkYXRlZF9hdCI6IjIwMjMtMTEtMDJUMDg6NTE6NDIuNzcxWiIsImRlbGV0ZWRfYXQiOm51bGwsImFjY291bnRfaWQiOiI4MjQyNzA1Zi0zNWI1LTRkNzEtOGUxOS1jNWE0MWFjMmUwYTQiLCJhY2NvdW50X2dyb3VwX2lkIjpudWxsfV19.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
|
-
})();
|