ob-bms-sdk 0.0.22 → 0.0.24

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 CHANGED
@@ -23,6 +23,19 @@ import type { RequestArgs } from './base';
23
23
  // @ts-ignore
24
24
  import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError } from './base';
25
25
 
26
+ /**
27
+ *
28
+ * @export
29
+ * @interface ConsentRequestBody
30
+ */
31
+ export interface ConsentRequestBody {
32
+ /**
33
+ *
34
+ * @type {boolean}
35
+ * @memberof ConsentRequestBody
36
+ */
37
+ 'consent': boolean;
38
+ }
26
39
  /**
27
40
  *
28
41
  * @export
@@ -560,6 +573,148 @@ export interface MembersShowResponse {
560
573
  */
561
574
  'towers': Array<TowerData>;
562
575
  }
576
+ /**
577
+ *
578
+ * @export
579
+ * @interface ParkingLotData
580
+ */
581
+ export interface ParkingLotData {
582
+ /**
583
+ *
584
+ * @type {string}
585
+ * @memberof ParkingLotData
586
+ */
587
+ 'id'?: string;
588
+ /**
589
+ *
590
+ * @type {string}
591
+ * @memberof ParkingLotData
592
+ */
593
+ 'name'?: string;
594
+ /**
595
+ *
596
+ * @type {PrismaJsonValue}
597
+ * @memberof ParkingLotData
598
+ */
599
+ 'display_name'?: PrismaJsonValue | null;
600
+ /**
601
+ *
602
+ * @type {string}
603
+ * @memberof ParkingLotData
604
+ */
605
+ 'created_at'?: string;
606
+ /**
607
+ *
608
+ * @type {string}
609
+ * @memberof ParkingLotData
610
+ */
611
+ 'updated_at'?: string;
612
+ /**
613
+ *
614
+ * @type {string}
615
+ * @memberof ParkingLotData
616
+ */
617
+ 'zone_id'?: string;
618
+ /**
619
+ *
620
+ * @type {Array<SpotTypeData>}
621
+ * @memberof ParkingLotData
622
+ */
623
+ 'spot_types': Array<SpotTypeData>;
624
+ /**
625
+ *
626
+ * @type {number}
627
+ * @memberof ParkingLotData
628
+ */
629
+ 'total_available_slots': number;
630
+ /**
631
+ *
632
+ * @type {ZoneData}
633
+ * @memberof ParkingLotData
634
+ */
635
+ 'zone': ZoneData;
636
+ }
637
+ /**
638
+ *
639
+ * @export
640
+ * @interface PassConsentResponse
641
+ */
642
+ export interface PassConsentResponse {
643
+ /**
644
+ *
645
+ * @type {string}
646
+ * @memberof PassConsentResponse
647
+ */
648
+ 'id': string;
649
+ /**
650
+ *
651
+ * @type {string}
652
+ * @memberof PassConsentResponse
653
+ */
654
+ 'created_at': string;
655
+ /**
656
+ *
657
+ * @type {string}
658
+ * @memberof PassConsentResponse
659
+ */
660
+ 'updated_at': string;
661
+ /**
662
+ *
663
+ * @type {string}
664
+ * @memberof PassConsentResponse
665
+ */
666
+ 'uid': string | null;
667
+ /**
668
+ *
669
+ * @type {string}
670
+ * @memberof PassConsentResponse
671
+ */
672
+ 'from': string;
673
+ /**
674
+ *
675
+ * @type {string}
676
+ * @memberof PassConsentResponse
677
+ */
678
+ 'to': string;
679
+ /**
680
+ *
681
+ * @type {string}
682
+ * @memberof PassConsentResponse
683
+ */
684
+ 'visitor_id': string;
685
+ /**
686
+ *
687
+ * @type {string}
688
+ * @memberof PassConsentResponse
689
+ */
690
+ 'issuer_id': string;
691
+ /**
692
+ *
693
+ * @type {string}
694
+ * @memberof PassConsentResponse
695
+ */
696
+ 'status': PassConsentResponseStatusEnum;
697
+ /**
698
+ *
699
+ * @type {string}
700
+ * @memberof PassConsentResponse
701
+ */
702
+ 'visit_schedule_id': string;
703
+ /**
704
+ *
705
+ * @type {boolean}
706
+ * @memberof PassConsentResponse
707
+ */
708
+ 'consent'?: boolean | null;
709
+ }
710
+
711
+ export const PassConsentResponseStatusEnum = {
712
+ Pending: 'pending',
713
+ Confirmed: 'confirmed'
714
+ } as const;
715
+
716
+ export type PassConsentResponseStatusEnum = typeof PassConsentResponseStatusEnum[keyof typeof PassConsentResponseStatusEnum];
717
+
563
718
  /**
564
719
  *
565
720
  * @export
@@ -696,6 +851,13 @@ export interface PersonData {
696
851
  */
697
852
  'status': string;
698
853
  }
854
+ /**
855
+ * From https://github.com/sindresorhus/type-fest/ Matches any valid JSON value.
856
+ * @export
857
+ * @interface PrismaJsonValue
858
+ */
859
+ export interface PrismaJsonValue {
860
+ }
699
861
  /**
700
862
  *
701
863
  * @export
@@ -726,6 +888,12 @@ export interface ShowPassResponse {
726
888
  * @memberof ShowPassResponse
727
889
  */
728
890
  'visitor_schedule': VisitorSchedulePasses;
891
+ /**
892
+ *
893
+ * @type {boolean}
894
+ * @memberof ShowPassResponse
895
+ */
896
+ 'consent'?: boolean | null;
729
897
  /**
730
898
  *
731
899
  * @type {string}
@@ -856,6 +1024,55 @@ export interface ShowVisitorResponse {
856
1024
  */
857
1025
  'updated_at': string;
858
1026
  }
1027
+ /**
1028
+ *
1029
+ * @export
1030
+ * @interface SpotTypeData
1031
+ */
1032
+ export interface SpotTypeData {
1033
+ /**
1034
+ *
1035
+ * @type {string}
1036
+ * @memberof SpotTypeData
1037
+ */
1038
+ 'id'?: string;
1039
+ /**
1040
+ *
1041
+ * @type {string}
1042
+ * @memberof SpotTypeData
1043
+ */
1044
+ 'name'?: string;
1045
+ /**
1046
+ *
1047
+ * @type {PrismaJsonValue}
1048
+ * @memberof SpotTypeData
1049
+ */
1050
+ 'display_name'?: PrismaJsonValue | null;
1051
+ /**
1052
+ *
1053
+ * @type {number}
1054
+ * @memberof SpotTypeData
1055
+ */
1056
+ 'available_spots'?: number;
1057
+ /**
1058
+ *
1059
+ * @type {string}
1060
+ * @memberof SpotTypeData
1061
+ */
1062
+ 'created_at'?: string;
1063
+ /**
1064
+ *
1065
+ * @type {string}
1066
+ * @memberof SpotTypeData
1067
+ */
1068
+ 'updated_at'?: string;
1069
+ /**
1070
+ *
1071
+ * @type {string}
1072
+ * @memberof SpotTypeData
1073
+ */
1074
+ 'parking_lot_id'?: string;
1075
+ }
859
1076
  /**
860
1077
  *
861
1078
  * @export
@@ -1245,6 +1462,12 @@ export interface VisitorSchedulePasses {
1245
1462
  * @interface WebhookCreateBody
1246
1463
  */
1247
1464
  export interface WebhookCreateBody {
1465
+ /**
1466
+ *
1467
+ * @type {string}
1468
+ * @memberof WebhookCreateBody
1469
+ */
1470
+ 'type': string;
1248
1471
  /**
1249
1472
  *
1250
1473
  * @type {string}
@@ -1269,6 +1492,12 @@ export interface WebhookCreateBody {
1269
1492
  * @memberof WebhookCreateBody
1270
1493
  */
1271
1494
  'floorID': number;
1495
+ /**
1496
+ *
1497
+ * @type {string}
1498
+ * @memberof WebhookCreateBody
1499
+ */
1500
+ 'uid': string;
1272
1501
  }
1273
1502
  /**
1274
1503
  *
@@ -1452,6 +1681,120 @@ export const WrappedResponseNullDataEnum = {
1452
1681
 
1453
1682
  export type WrappedResponseNullDataEnum = typeof WrappedResponseNullDataEnum[keyof typeof WrappedResponseNullDataEnum];
1454
1683
 
1684
+ /**
1685
+ *
1686
+ * @export
1687
+ * @interface WrappedResponseParkingLotsIndexResponse
1688
+ */
1689
+ export interface WrappedResponseParkingLotsIndexResponse {
1690
+ /**
1691
+ *
1692
+ * @type {WrappedResponseParkingLotsIndexResponseData}
1693
+ * @memberof WrappedResponseParkingLotsIndexResponse
1694
+ */
1695
+ 'data': WrappedResponseParkingLotsIndexResponseData | null;
1696
+ }
1697
+ /**
1698
+ *
1699
+ * @export
1700
+ * @interface WrappedResponseParkingLotsIndexResponseData
1701
+ */
1702
+ export interface WrappedResponseParkingLotsIndexResponseData {
1703
+ }
1704
+ /**
1705
+ *
1706
+ * @export
1707
+ * @interface WrappedResponsePassConsentResponse
1708
+ */
1709
+ export interface WrappedResponsePassConsentResponse {
1710
+ /**
1711
+ *
1712
+ * @type {WrappedResponsePassConsentResponseData}
1713
+ * @memberof WrappedResponsePassConsentResponse
1714
+ */
1715
+ 'data': WrappedResponsePassConsentResponseData | null;
1716
+ }
1717
+ /**
1718
+ *
1719
+ * @export
1720
+ * @interface WrappedResponsePassConsentResponseData
1721
+ */
1722
+ export interface WrappedResponsePassConsentResponseData {
1723
+ /**
1724
+ *
1725
+ * @type {string}
1726
+ * @memberof WrappedResponsePassConsentResponseData
1727
+ */
1728
+ 'id': string;
1729
+ /**
1730
+ *
1731
+ * @type {string}
1732
+ * @memberof WrappedResponsePassConsentResponseData
1733
+ */
1734
+ 'created_at': string;
1735
+ /**
1736
+ *
1737
+ * @type {string}
1738
+ * @memberof WrappedResponsePassConsentResponseData
1739
+ */
1740
+ 'updated_at': string;
1741
+ /**
1742
+ *
1743
+ * @type {string}
1744
+ * @memberof WrappedResponsePassConsentResponseData
1745
+ */
1746
+ 'uid': string | null;
1747
+ /**
1748
+ *
1749
+ * @type {string}
1750
+ * @memberof WrappedResponsePassConsentResponseData
1751
+ */
1752
+ 'from': string;
1753
+ /**
1754
+ *
1755
+ * @type {string}
1756
+ * @memberof WrappedResponsePassConsentResponseData
1757
+ */
1758
+ 'to': string;
1759
+ /**
1760
+ *
1761
+ * @type {string}
1762
+ * @memberof WrappedResponsePassConsentResponseData
1763
+ */
1764
+ 'visitor_id': string;
1765
+ /**
1766
+ *
1767
+ * @type {string}
1768
+ * @memberof WrappedResponsePassConsentResponseData
1769
+ */
1770
+ 'issuer_id': string;
1771
+ /**
1772
+ *
1773
+ * @type {string}
1774
+ * @memberof WrappedResponsePassConsentResponseData
1775
+ */
1776
+ 'status': WrappedResponsePassConsentResponseDataStatusEnum;
1777
+ /**
1778
+ *
1779
+ * @type {string}
1780
+ * @memberof WrappedResponsePassConsentResponseData
1781
+ */
1782
+ 'visit_schedule_id': string;
1783
+ /**
1784
+ *
1785
+ * @type {boolean}
1786
+ * @memberof WrappedResponsePassConsentResponseData
1787
+ */
1788
+ 'consent'?: boolean | null;
1789
+ }
1790
+
1791
+ export const WrappedResponsePassConsentResponseDataStatusEnum = {
1792
+ Pending: 'pending',
1793
+ Confirmed: 'confirmed'
1794
+ } as const;
1795
+
1796
+ export type WrappedResponsePassConsentResponseDataStatusEnum = typeof WrappedResponsePassConsentResponseDataStatusEnum[keyof typeof WrappedResponsePassConsentResponseDataStatusEnum];
1797
+
1455
1798
  /**
1456
1799
  *
1457
1800
  * @export
@@ -1539,6 +1882,61 @@ export interface WrappedResponseShowVisitorResponseData {
1539
1882
  */
1540
1883
  'updated_at': string;
1541
1884
  }
1885
+ /**
1886
+ *
1887
+ * @export
1888
+ * @interface ZoneData
1889
+ */
1890
+ export interface ZoneData {
1891
+ /**
1892
+ *
1893
+ * @type {TowerData}
1894
+ * @memberof ZoneData
1895
+ */
1896
+ 'tower': TowerData;
1897
+ /**
1898
+ *
1899
+ * @type {string}
1900
+ * @memberof ZoneData
1901
+ */
1902
+ 'id'?: string;
1903
+ /**
1904
+ *
1905
+ * @type {string}
1906
+ * @memberof ZoneData
1907
+ */
1908
+ 'uid'?: string;
1909
+ /**
1910
+ *
1911
+ * @type {string}
1912
+ * @memberof ZoneData
1913
+ */
1914
+ 'name'?: string;
1915
+ /**
1916
+ *
1917
+ * @type {PrismaJsonValue}
1918
+ * @memberof ZoneData
1919
+ */
1920
+ 'display_name'?: PrismaJsonValue | null;
1921
+ /**
1922
+ *
1923
+ * @type {string}
1924
+ * @memberof ZoneData
1925
+ */
1926
+ 'tower_id'?: string;
1927
+ /**
1928
+ *
1929
+ * @type {string}
1930
+ * @memberof ZoneData
1931
+ */
1932
+ 'created_at'?: string;
1933
+ /**
1934
+ *
1935
+ * @type {string}
1936
+ * @memberof ZoneData
1937
+ */
1938
+ 'updated_at'?: string;
1939
+ }
1542
1940
 
1543
1941
  /**
1544
1942
  * DefaultApi - axios parameter creator
@@ -1720,6 +2118,74 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
1720
2118
  options: localVarRequestOptions,
1721
2119
  };
1722
2120
  },
2121
+ /**
2122
+ *
2123
+ * @param {*} [options] Override http request option.
2124
+ * @throws {RequiredError}
2125
+ */
2126
+ parkingLotsIndex: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2127
+ const localVarPath = `/parking_lots`;
2128
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2129
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2130
+ let baseOptions;
2131
+ if (configuration) {
2132
+ baseOptions = configuration.baseOptions;
2133
+ }
2134
+
2135
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
2136
+ const localVarHeaderParameter = {} as any;
2137
+ const localVarQueryParameter = {} as any;
2138
+
2139
+
2140
+
2141
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2142
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2143
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2144
+
2145
+ return {
2146
+ url: toPathString(localVarUrlObj),
2147
+ options: localVarRequestOptions,
2148
+ };
2149
+ },
2150
+ /**
2151
+ *
2152
+ * @param {string} id
2153
+ * @param {ConsentRequestBody} consentRequestBody
2154
+ * @param {*} [options] Override http request option.
2155
+ * @throws {RequiredError}
2156
+ */
2157
+ passesConsent: async (id: string, consentRequestBody: ConsentRequestBody, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2158
+ // verify required parameter 'id' is not null or undefined
2159
+ assertParamExists('passesConsent', 'id', id)
2160
+ // verify required parameter 'consentRequestBody' is not null or undefined
2161
+ assertParamExists('passesConsent', 'consentRequestBody', consentRequestBody)
2162
+ const localVarPath = `/passes/consent/{id}`
2163
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
2164
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2165
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2166
+ let baseOptions;
2167
+ if (configuration) {
2168
+ baseOptions = configuration.baseOptions;
2169
+ }
2170
+
2171
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
2172
+ const localVarHeaderParameter = {} as any;
2173
+ const localVarQueryParameter = {} as any;
2174
+
2175
+
2176
+
2177
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2178
+
2179
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2180
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2181
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2182
+ localVarRequestOptions.data = serializeDataIfNeeded(consentRequestBody, localVarRequestOptions, configuration)
2183
+
2184
+ return {
2185
+ url: toPathString(localVarUrlObj),
2186
+ options: localVarRequestOptions,
2187
+ };
2188
+ },
1723
2189
  /**
1724
2190
  *
1725
2191
  * @param {string} id
@@ -1949,6 +2415,26 @@ export const DefaultApiFp = function(configuration?: Configuration) {
1949
2415
  const localVarAxiosArgs = await localVarAxiosParamCreator.membersShow(id, options);
1950
2416
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1951
2417
  },
2418
+ /**
2419
+ *
2420
+ * @param {*} [options] Override http request option.
2421
+ * @throws {RequiredError}
2422
+ */
2423
+ async parkingLotsIndex(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedResponseParkingLotsIndexResponse>> {
2424
+ const localVarAxiosArgs = await localVarAxiosParamCreator.parkingLotsIndex(options);
2425
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2426
+ },
2427
+ /**
2428
+ *
2429
+ * @param {string} id
2430
+ * @param {ConsentRequestBody} consentRequestBody
2431
+ * @param {*} [options] Override http request option.
2432
+ * @throws {RequiredError}
2433
+ */
2434
+ async passesConsent(id: string, consentRequestBody: ConsentRequestBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedResponsePassConsentResponse>> {
2435
+ const localVarAxiosArgs = await localVarAxiosParamCreator.passesConsent(id, consentRequestBody, options);
2436
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2437
+ },
1952
2438
  /**
1953
2439
  *
1954
2440
  * @param {string} id
@@ -2054,6 +2540,24 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
2054
2540
  membersShow(id: string, options?: any): AxiosPromise<WrappedResponseMembersShowResponse> {
2055
2541
  return localVarFp.membersShow(id, options).then((request) => request(axios, basePath));
2056
2542
  },
2543
+ /**
2544
+ *
2545
+ * @param {*} [options] Override http request option.
2546
+ * @throws {RequiredError}
2547
+ */
2548
+ parkingLotsIndex(options?: any): AxiosPromise<WrappedResponseParkingLotsIndexResponse> {
2549
+ return localVarFp.parkingLotsIndex(options).then((request) => request(axios, basePath));
2550
+ },
2551
+ /**
2552
+ *
2553
+ * @param {string} id
2554
+ * @param {ConsentRequestBody} consentRequestBody
2555
+ * @param {*} [options] Override http request option.
2556
+ * @throws {RequiredError}
2557
+ */
2558
+ passesConsent(id: string, consentRequestBody: ConsentRequestBody, options?: any): AxiosPromise<WrappedResponsePassConsentResponse> {
2559
+ return localVarFp.passesConsent(id, consentRequestBody, options).then((request) => request(axios, basePath));
2560
+ },
2057
2561
  /**
2058
2562
  *
2059
2563
  * @param {string} id
@@ -2164,6 +2668,28 @@ export class DefaultApi extends BaseAPI {
2164
2668
  return DefaultApiFp(this.configuration).membersShow(id, options).then((request) => request(this.axios, this.basePath));
2165
2669
  }
2166
2670
 
2671
+ /**
2672
+ *
2673
+ * @param {*} [options] Override http request option.
2674
+ * @throws {RequiredError}
2675
+ * @memberof DefaultApi
2676
+ */
2677
+ public parkingLotsIndex(options?: AxiosRequestConfig) {
2678
+ return DefaultApiFp(this.configuration).parkingLotsIndex(options).then((request) => request(this.axios, this.basePath));
2679
+ }
2680
+
2681
+ /**
2682
+ *
2683
+ * @param {string} id
2684
+ * @param {ConsentRequestBody} consentRequestBody
2685
+ * @param {*} [options] Override http request option.
2686
+ * @throws {RequiredError}
2687
+ * @memberof DefaultApi
2688
+ */
2689
+ public passesConsent(id: string, consentRequestBody: ConsentRequestBody, options?: AxiosRequestConfig) {
2690
+ return DefaultApiFp(this.configuration).passesConsent(id, consentRequestBody, options).then((request) => request(this.axios, this.basePath));
2691
+ }
2692
+
2167
2693
  /**
2168
2694
  *
2169
2695
  * @param {string} id
package/dist/api/api.d.ts CHANGED
@@ -13,6 +13,19 @@ import type { Configuration } from './configuration';
13
13
  import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
14
14
  import type { RequestArgs } from './base';
15
15
  import { BaseAPI } from './base';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface ConsentRequestBody
20
+ */
21
+ export interface ConsentRequestBody {
22
+ /**
23
+ *
24
+ * @type {boolean}
25
+ * @memberof ConsentRequestBody
26
+ */
27
+ 'consent': boolean;
28
+ }
16
29
  /**
17
30
  *
18
31
  * @export
@@ -558,6 +571,145 @@ export interface MembersShowResponse {
558
571
  */
559
572
  'towers': Array<TowerData>;
560
573
  }
574
+ /**
575
+ *
576
+ * @export
577
+ * @interface ParkingLotData
578
+ */
579
+ export interface ParkingLotData {
580
+ /**
581
+ *
582
+ * @type {string}
583
+ * @memberof ParkingLotData
584
+ */
585
+ 'id'?: string;
586
+ /**
587
+ *
588
+ * @type {string}
589
+ * @memberof ParkingLotData
590
+ */
591
+ 'name'?: string;
592
+ /**
593
+ *
594
+ * @type {PrismaJsonValue}
595
+ * @memberof ParkingLotData
596
+ */
597
+ 'display_name'?: PrismaJsonValue | null;
598
+ /**
599
+ *
600
+ * @type {string}
601
+ * @memberof ParkingLotData
602
+ */
603
+ 'created_at'?: string;
604
+ /**
605
+ *
606
+ * @type {string}
607
+ * @memberof ParkingLotData
608
+ */
609
+ 'updated_at'?: string;
610
+ /**
611
+ *
612
+ * @type {string}
613
+ * @memberof ParkingLotData
614
+ */
615
+ 'zone_id'?: string;
616
+ /**
617
+ *
618
+ * @type {Array<SpotTypeData>}
619
+ * @memberof ParkingLotData
620
+ */
621
+ 'spot_types': Array<SpotTypeData>;
622
+ /**
623
+ *
624
+ * @type {number}
625
+ * @memberof ParkingLotData
626
+ */
627
+ 'total_available_slots': number;
628
+ /**
629
+ *
630
+ * @type {ZoneData}
631
+ * @memberof ParkingLotData
632
+ */
633
+ 'zone': ZoneData;
634
+ }
635
+ /**
636
+ *
637
+ * @export
638
+ * @interface PassConsentResponse
639
+ */
640
+ export interface PassConsentResponse {
641
+ /**
642
+ *
643
+ * @type {string}
644
+ * @memberof PassConsentResponse
645
+ */
646
+ 'id': string;
647
+ /**
648
+ *
649
+ * @type {string}
650
+ * @memberof PassConsentResponse
651
+ */
652
+ 'created_at': string;
653
+ /**
654
+ *
655
+ * @type {string}
656
+ * @memberof PassConsentResponse
657
+ */
658
+ 'updated_at': string;
659
+ /**
660
+ *
661
+ * @type {string}
662
+ * @memberof PassConsentResponse
663
+ */
664
+ 'uid': string | null;
665
+ /**
666
+ *
667
+ * @type {string}
668
+ * @memberof PassConsentResponse
669
+ */
670
+ 'from': string;
671
+ /**
672
+ *
673
+ * @type {string}
674
+ * @memberof PassConsentResponse
675
+ */
676
+ 'to': string;
677
+ /**
678
+ *
679
+ * @type {string}
680
+ * @memberof PassConsentResponse
681
+ */
682
+ 'visitor_id': string;
683
+ /**
684
+ *
685
+ * @type {string}
686
+ * @memberof PassConsentResponse
687
+ */
688
+ 'issuer_id': string;
689
+ /**
690
+ *
691
+ * @type {string}
692
+ * @memberof PassConsentResponse
693
+ */
694
+ 'status': PassConsentResponseStatusEnum;
695
+ /**
696
+ *
697
+ * @type {string}
698
+ * @memberof PassConsentResponse
699
+ */
700
+ 'visit_schedule_id': string;
701
+ /**
702
+ *
703
+ * @type {boolean}
704
+ * @memberof PassConsentResponse
705
+ */
706
+ 'consent'?: boolean | null;
707
+ }
708
+ export declare const PassConsentResponseStatusEnum: {
709
+ readonly Pending: "pending";
710
+ readonly Confirmed: "confirmed";
711
+ };
712
+ export type PassConsentResponseStatusEnum = typeof PassConsentResponseStatusEnum[keyof typeof PassConsentResponseStatusEnum];
561
713
  /**
562
714
  *
563
715
  * @export
@@ -691,6 +843,13 @@ export interface PersonData {
691
843
  */
692
844
  'status': string;
693
845
  }
846
+ /**
847
+ * From https://github.com/sindresorhus/type-fest/ Matches any valid JSON value.
848
+ * @export
849
+ * @interface PrismaJsonValue
850
+ */
851
+ export interface PrismaJsonValue {
852
+ }
694
853
  /**
695
854
  *
696
855
  * @export
@@ -721,6 +880,12 @@ export interface ShowPassResponse {
721
880
  * @memberof ShowPassResponse
722
881
  */
723
882
  'visitor_schedule': VisitorSchedulePasses;
883
+ /**
884
+ *
885
+ * @type {boolean}
886
+ * @memberof ShowPassResponse
887
+ */
888
+ 'consent'?: boolean | null;
724
889
  /**
725
890
  *
726
891
  * @type {string}
@@ -848,6 +1013,55 @@ export interface ShowVisitorResponse {
848
1013
  */
849
1014
  'updated_at': string;
850
1015
  }
1016
+ /**
1017
+ *
1018
+ * @export
1019
+ * @interface SpotTypeData
1020
+ */
1021
+ export interface SpotTypeData {
1022
+ /**
1023
+ *
1024
+ * @type {string}
1025
+ * @memberof SpotTypeData
1026
+ */
1027
+ 'id'?: string;
1028
+ /**
1029
+ *
1030
+ * @type {string}
1031
+ * @memberof SpotTypeData
1032
+ */
1033
+ 'name'?: string;
1034
+ /**
1035
+ *
1036
+ * @type {PrismaJsonValue}
1037
+ * @memberof SpotTypeData
1038
+ */
1039
+ 'display_name'?: PrismaJsonValue | null;
1040
+ /**
1041
+ *
1042
+ * @type {number}
1043
+ * @memberof SpotTypeData
1044
+ */
1045
+ 'available_spots'?: number;
1046
+ /**
1047
+ *
1048
+ * @type {string}
1049
+ * @memberof SpotTypeData
1050
+ */
1051
+ 'created_at'?: string;
1052
+ /**
1053
+ *
1054
+ * @type {string}
1055
+ * @memberof SpotTypeData
1056
+ */
1057
+ 'updated_at'?: string;
1058
+ /**
1059
+ *
1060
+ * @type {string}
1061
+ * @memberof SpotTypeData
1062
+ */
1063
+ 'parking_lot_id'?: string;
1064
+ }
851
1065
  /**
852
1066
  *
853
1067
  * @export
@@ -1237,6 +1451,12 @@ export interface VisitorSchedulePasses {
1237
1451
  * @interface WebhookCreateBody
1238
1452
  */
1239
1453
  export interface WebhookCreateBody {
1454
+ /**
1455
+ *
1456
+ * @type {string}
1457
+ * @memberof WebhookCreateBody
1458
+ */
1459
+ 'type': string;
1240
1460
  /**
1241
1461
  *
1242
1462
  * @type {string}
@@ -1261,6 +1481,12 @@ export interface WebhookCreateBody {
1261
1481
  * @memberof WebhookCreateBody
1262
1482
  */
1263
1483
  'floorID': number;
1484
+ /**
1485
+ *
1486
+ * @type {string}
1487
+ * @memberof WebhookCreateBody
1488
+ */
1489
+ 'uid': string;
1264
1490
  }
1265
1491
  /**
1266
1492
  *
@@ -1441,6 +1667,117 @@ export declare const WrappedResponseNullDataEnum: {
1441
1667
  readonly NUMBER_null: null;
1442
1668
  };
1443
1669
  export type WrappedResponseNullDataEnum = typeof WrappedResponseNullDataEnum[keyof typeof WrappedResponseNullDataEnum];
1670
+ /**
1671
+ *
1672
+ * @export
1673
+ * @interface WrappedResponseParkingLotsIndexResponse
1674
+ */
1675
+ export interface WrappedResponseParkingLotsIndexResponse {
1676
+ /**
1677
+ *
1678
+ * @type {WrappedResponseParkingLotsIndexResponseData}
1679
+ * @memberof WrappedResponseParkingLotsIndexResponse
1680
+ */
1681
+ 'data': WrappedResponseParkingLotsIndexResponseData | null;
1682
+ }
1683
+ /**
1684
+ *
1685
+ * @export
1686
+ * @interface WrappedResponseParkingLotsIndexResponseData
1687
+ */
1688
+ export interface WrappedResponseParkingLotsIndexResponseData {
1689
+ }
1690
+ /**
1691
+ *
1692
+ * @export
1693
+ * @interface WrappedResponsePassConsentResponse
1694
+ */
1695
+ export interface WrappedResponsePassConsentResponse {
1696
+ /**
1697
+ *
1698
+ * @type {WrappedResponsePassConsentResponseData}
1699
+ * @memberof WrappedResponsePassConsentResponse
1700
+ */
1701
+ 'data': WrappedResponsePassConsentResponseData | null;
1702
+ }
1703
+ /**
1704
+ *
1705
+ * @export
1706
+ * @interface WrappedResponsePassConsentResponseData
1707
+ */
1708
+ export interface WrappedResponsePassConsentResponseData {
1709
+ /**
1710
+ *
1711
+ * @type {string}
1712
+ * @memberof WrappedResponsePassConsentResponseData
1713
+ */
1714
+ 'id': string;
1715
+ /**
1716
+ *
1717
+ * @type {string}
1718
+ * @memberof WrappedResponsePassConsentResponseData
1719
+ */
1720
+ 'created_at': string;
1721
+ /**
1722
+ *
1723
+ * @type {string}
1724
+ * @memberof WrappedResponsePassConsentResponseData
1725
+ */
1726
+ 'updated_at': string;
1727
+ /**
1728
+ *
1729
+ * @type {string}
1730
+ * @memberof WrappedResponsePassConsentResponseData
1731
+ */
1732
+ 'uid': string | null;
1733
+ /**
1734
+ *
1735
+ * @type {string}
1736
+ * @memberof WrappedResponsePassConsentResponseData
1737
+ */
1738
+ 'from': string;
1739
+ /**
1740
+ *
1741
+ * @type {string}
1742
+ * @memberof WrappedResponsePassConsentResponseData
1743
+ */
1744
+ 'to': string;
1745
+ /**
1746
+ *
1747
+ * @type {string}
1748
+ * @memberof WrappedResponsePassConsentResponseData
1749
+ */
1750
+ 'visitor_id': string;
1751
+ /**
1752
+ *
1753
+ * @type {string}
1754
+ * @memberof WrappedResponsePassConsentResponseData
1755
+ */
1756
+ 'issuer_id': string;
1757
+ /**
1758
+ *
1759
+ * @type {string}
1760
+ * @memberof WrappedResponsePassConsentResponseData
1761
+ */
1762
+ 'status': WrappedResponsePassConsentResponseDataStatusEnum;
1763
+ /**
1764
+ *
1765
+ * @type {string}
1766
+ * @memberof WrappedResponsePassConsentResponseData
1767
+ */
1768
+ 'visit_schedule_id': string;
1769
+ /**
1770
+ *
1771
+ * @type {boolean}
1772
+ * @memberof WrappedResponsePassConsentResponseData
1773
+ */
1774
+ 'consent'?: boolean | null;
1775
+ }
1776
+ export declare const WrappedResponsePassConsentResponseDataStatusEnum: {
1777
+ readonly Pending: "pending";
1778
+ readonly Confirmed: "confirmed";
1779
+ };
1780
+ export type WrappedResponsePassConsentResponseDataStatusEnum = typeof WrappedResponsePassConsentResponseDataStatusEnum[keyof typeof WrappedResponsePassConsentResponseDataStatusEnum];
1444
1781
  /**
1445
1782
  *
1446
1783
  * @export
@@ -1528,6 +1865,61 @@ export interface WrappedResponseShowVisitorResponseData {
1528
1865
  */
1529
1866
  'updated_at': string;
1530
1867
  }
1868
+ /**
1869
+ *
1870
+ * @export
1871
+ * @interface ZoneData
1872
+ */
1873
+ export interface ZoneData {
1874
+ /**
1875
+ *
1876
+ * @type {TowerData}
1877
+ * @memberof ZoneData
1878
+ */
1879
+ 'tower': TowerData;
1880
+ /**
1881
+ *
1882
+ * @type {string}
1883
+ * @memberof ZoneData
1884
+ */
1885
+ 'id'?: string;
1886
+ /**
1887
+ *
1888
+ * @type {string}
1889
+ * @memberof ZoneData
1890
+ */
1891
+ 'uid'?: string;
1892
+ /**
1893
+ *
1894
+ * @type {string}
1895
+ * @memberof ZoneData
1896
+ */
1897
+ 'name'?: string;
1898
+ /**
1899
+ *
1900
+ * @type {PrismaJsonValue}
1901
+ * @memberof ZoneData
1902
+ */
1903
+ 'display_name'?: PrismaJsonValue | null;
1904
+ /**
1905
+ *
1906
+ * @type {string}
1907
+ * @memberof ZoneData
1908
+ */
1909
+ 'tower_id'?: string;
1910
+ /**
1911
+ *
1912
+ * @type {string}
1913
+ * @memberof ZoneData
1914
+ */
1915
+ 'created_at'?: string;
1916
+ /**
1917
+ *
1918
+ * @type {string}
1919
+ * @memberof ZoneData
1920
+ */
1921
+ 'updated_at'?: string;
1922
+ }
1531
1923
  /**
1532
1924
  * DefaultApi - axios parameter creator
1533
1925
  * @export
@@ -1568,6 +1960,20 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
1568
1960
  * @throws {RequiredError}
1569
1961
  */
1570
1962
  membersShow: (id: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
1963
+ /**
1964
+ *
1965
+ * @param {*} [options] Override http request option.
1966
+ * @throws {RequiredError}
1967
+ */
1968
+ parkingLotsIndex: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
1969
+ /**
1970
+ *
1971
+ * @param {string} id
1972
+ * @param {ConsentRequestBody} consentRequestBody
1973
+ * @param {*} [options] Override http request option.
1974
+ * @throws {RequiredError}
1975
+ */
1976
+ passesConsent: (id: string, consentRequestBody: ConsentRequestBody, options?: AxiosRequestConfig) => Promise<RequestArgs>;
1571
1977
  /**
1572
1978
  *
1573
1979
  * @param {string} id
@@ -1644,6 +2050,20 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
1644
2050
  * @throws {RequiredError}
1645
2051
  */
1646
2052
  membersShow(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedResponseMembersShowResponse>>;
2053
+ /**
2054
+ *
2055
+ * @param {*} [options] Override http request option.
2056
+ * @throws {RequiredError}
2057
+ */
2058
+ parkingLotsIndex(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedResponseParkingLotsIndexResponse>>;
2059
+ /**
2060
+ *
2061
+ * @param {string} id
2062
+ * @param {ConsentRequestBody} consentRequestBody
2063
+ * @param {*} [options] Override http request option.
2064
+ * @throws {RequiredError}
2065
+ */
2066
+ passesConsent(id: string, consentRequestBody: ConsentRequestBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedResponsePassConsentResponse>>;
1647
2067
  /**
1648
2068
  *
1649
2069
  * @param {string} id
@@ -1720,6 +2140,20 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
1720
2140
  * @throws {RequiredError}
1721
2141
  */
1722
2142
  membersShow(id: string, options?: any): AxiosPromise<WrappedResponseMembersShowResponse>;
2143
+ /**
2144
+ *
2145
+ * @param {*} [options] Override http request option.
2146
+ * @throws {RequiredError}
2147
+ */
2148
+ parkingLotsIndex(options?: any): AxiosPromise<WrappedResponseParkingLotsIndexResponse>;
2149
+ /**
2150
+ *
2151
+ * @param {string} id
2152
+ * @param {ConsentRequestBody} consentRequestBody
2153
+ * @param {*} [options] Override http request option.
2154
+ * @throws {RequiredError}
2155
+ */
2156
+ passesConsent(id: string, consentRequestBody: ConsentRequestBody, options?: any): AxiosPromise<WrappedResponsePassConsentResponse>;
1723
2157
  /**
1724
2158
  *
1725
2159
  * @param {string} id
@@ -1803,6 +2237,22 @@ export declare class DefaultApi extends BaseAPI {
1803
2237
  * @memberof DefaultApi
1804
2238
  */
1805
2239
  membersShow(id: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<WrappedResponseMembersShowResponse, any>>;
2240
+ /**
2241
+ *
2242
+ * @param {*} [options] Override http request option.
2243
+ * @throws {RequiredError}
2244
+ * @memberof DefaultApi
2245
+ */
2246
+ parkingLotsIndex(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<WrappedResponseParkingLotsIndexResponse, any>>;
2247
+ /**
2248
+ *
2249
+ * @param {string} id
2250
+ * @param {ConsentRequestBody} consentRequestBody
2251
+ * @param {*} [options] Override http request option.
2252
+ * @throws {RequiredError}
2253
+ * @memberof DefaultApi
2254
+ */
2255
+ passesConsent(id: string, consentRequestBody: ConsentRequestBody, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<WrappedResponsePassConsentResponse, any>>;
1806
2256
  /**
1807
2257
  *
1808
2258
  * @param {string} id
package/dist/api/api.js CHANGED
@@ -25,13 +25,17 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
25
25
  return (mod && mod.__esModule) ? mod : { "default": mod };
26
26
  };
27
27
  Object.defineProperty(exports, "__esModule", { value: true });
28
- exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.WrappedResponseNullDataEnum = exports.ShowPassResponseStatusEnum = exports.PassDataStatusEnum = void 0;
28
+ exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.WrappedResponsePassConsentResponseDataStatusEnum = exports.WrappedResponseNullDataEnum = exports.ShowPassResponseStatusEnum = exports.PassDataStatusEnum = exports.PassConsentResponseStatusEnum = void 0;
29
29
  const axios_1 = __importDefault(require("axios"));
30
30
  // Some imports not used depending on template conditions
31
31
  // @ts-ignore
32
32
  const common_1 = require("./common");
33
33
  // @ts-ignore
34
34
  const base_1 = require("./base");
35
+ exports.PassConsentResponseStatusEnum = {
36
+ Pending: 'pending',
37
+ Confirmed: 'confirmed'
38
+ };
35
39
  exports.PassDataStatusEnum = {
36
40
  Pending: 'pending',
37
41
  Confirmed: 'confirmed'
@@ -43,6 +47,10 @@ exports.ShowPassResponseStatusEnum = {
43
47
  exports.WrappedResponseNullDataEnum = {
44
48
  NUMBER_null: null
45
49
  };
50
+ exports.WrappedResponsePassConsentResponseDataStatusEnum = {
51
+ Pending: 'pending',
52
+ Confirmed: 'confirmed'
53
+ };
46
54
  /**
47
55
  * DefaultApi - axios parameter creator
48
56
  * @export
@@ -194,6 +202,63 @@ const DefaultApiAxiosParamCreator = function (configuration) {
194
202
  options: localVarRequestOptions,
195
203
  };
196
204
  }),
205
+ /**
206
+ *
207
+ * @param {*} [options] Override http request option.
208
+ * @throws {RequiredError}
209
+ */
210
+ parkingLotsIndex: (options = {}) => __awaiter(this, void 0, void 0, function* () {
211
+ const localVarPath = `/parking_lots`;
212
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
213
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
214
+ let baseOptions;
215
+ if (configuration) {
216
+ baseOptions = configuration.baseOptions;
217
+ }
218
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
219
+ const localVarHeaderParameter = {};
220
+ const localVarQueryParameter = {};
221
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
222
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
223
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
224
+ return {
225
+ url: (0, common_1.toPathString)(localVarUrlObj),
226
+ options: localVarRequestOptions,
227
+ };
228
+ }),
229
+ /**
230
+ *
231
+ * @param {string} id
232
+ * @param {ConsentRequestBody} consentRequestBody
233
+ * @param {*} [options] Override http request option.
234
+ * @throws {RequiredError}
235
+ */
236
+ passesConsent: (id, consentRequestBody, options = {}) => __awaiter(this, void 0, void 0, function* () {
237
+ // verify required parameter 'id' is not null or undefined
238
+ (0, common_1.assertParamExists)('passesConsent', 'id', id);
239
+ // verify required parameter 'consentRequestBody' is not null or undefined
240
+ (0, common_1.assertParamExists)('passesConsent', 'consentRequestBody', consentRequestBody);
241
+ const localVarPath = `/passes/consent/{id}`
242
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
243
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
244
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
245
+ let baseOptions;
246
+ if (configuration) {
247
+ baseOptions = configuration.baseOptions;
248
+ }
249
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
250
+ const localVarHeaderParameter = {};
251
+ const localVarQueryParameter = {};
252
+ localVarHeaderParameter['Content-Type'] = 'application/json';
253
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
254
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
255
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
256
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(consentRequestBody, localVarRequestOptions, configuration);
257
+ return {
258
+ url: (0, common_1.toPathString)(localVarUrlObj),
259
+ options: localVarRequestOptions,
260
+ };
261
+ }),
197
262
  /**
198
263
  *
199
264
  * @param {string} id
@@ -406,6 +471,30 @@ const DefaultApiFp = function (configuration) {
406
471
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
407
472
  });
408
473
  },
474
+ /**
475
+ *
476
+ * @param {*} [options] Override http request option.
477
+ * @throws {RequiredError}
478
+ */
479
+ parkingLotsIndex(options) {
480
+ return __awaiter(this, void 0, void 0, function* () {
481
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.parkingLotsIndex(options);
482
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
483
+ });
484
+ },
485
+ /**
486
+ *
487
+ * @param {string} id
488
+ * @param {ConsentRequestBody} consentRequestBody
489
+ * @param {*} [options] Override http request option.
490
+ * @throws {RequiredError}
491
+ */
492
+ passesConsent(id, consentRequestBody, options) {
493
+ return __awaiter(this, void 0, void 0, function* () {
494
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.passesConsent(id, consentRequestBody, options);
495
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
496
+ });
497
+ },
409
498
  /**
410
499
  *
411
500
  * @param {string} id
@@ -521,6 +610,24 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
521
610
  membersShow(id, options) {
522
611
  return localVarFp.membersShow(id, options).then((request) => request(axios, basePath));
523
612
  },
613
+ /**
614
+ *
615
+ * @param {*} [options] Override http request option.
616
+ * @throws {RequiredError}
617
+ */
618
+ parkingLotsIndex(options) {
619
+ return localVarFp.parkingLotsIndex(options).then((request) => request(axios, basePath));
620
+ },
621
+ /**
622
+ *
623
+ * @param {string} id
624
+ * @param {ConsentRequestBody} consentRequestBody
625
+ * @param {*} [options] Override http request option.
626
+ * @throws {RequiredError}
627
+ */
628
+ passesConsent(id, consentRequestBody, options) {
629
+ return localVarFp.passesConsent(id, consentRequestBody, options).then((request) => request(axios, basePath));
630
+ },
524
631
  /**
525
632
  *
526
633
  * @param {string} id
@@ -626,6 +733,26 @@ class DefaultApi extends base_1.BaseAPI {
626
733
  membersShow(id, options) {
627
734
  return (0, exports.DefaultApiFp)(this.configuration).membersShow(id, options).then((request) => request(this.axios, this.basePath));
628
735
  }
736
+ /**
737
+ *
738
+ * @param {*} [options] Override http request option.
739
+ * @throws {RequiredError}
740
+ * @memberof DefaultApi
741
+ */
742
+ parkingLotsIndex(options) {
743
+ return (0, exports.DefaultApiFp)(this.configuration).parkingLotsIndex(options).then((request) => request(this.axios, this.basePath));
744
+ }
745
+ /**
746
+ *
747
+ * @param {string} id
748
+ * @param {ConsentRequestBody} consentRequestBody
749
+ * @param {*} [options] Override http request option.
750
+ * @throws {RequiredError}
751
+ * @memberof DefaultApi
752
+ */
753
+ passesConsent(id, consentRequestBody, options) {
754
+ return (0, exports.DefaultApiFp)(this.configuration).passesConsent(id, consentRequestBody, options).then((request) => request(this.axios, this.basePath));
755
+ }
629
756
  /**
630
757
  *
631
758
  * @param {string} id
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ob-bms-sdk",
3
- "version": "0.0.22",
3
+ "version": "0.0.24",
4
4
  "description": "API interfaces for OB BMS",
5
5
  "main": "./dist/index.js",
6
6
  "license": "MIT"