ob-bms-sdk 0.0.41 → 0.0.43

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,61 @@ 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 AuthorizedLocationData
30
+ */
31
+ export interface AuthorizedLocationData {
32
+ /**
33
+ *
34
+ * @type {string}
35
+ * @memberof AuthorizedLocationData
36
+ */
37
+ 'id': string;
38
+ /**
39
+ *
40
+ * @type {string}
41
+ * @memberof AuthorizedLocationData
42
+ */
43
+ 'uid': string;
44
+ /**
45
+ *
46
+ * @type {string}
47
+ * @memberof AuthorizedLocationData
48
+ */
49
+ 'name': string;
50
+ /**
51
+ *
52
+ * @type {JsonValue}
53
+ * @memberof AuthorizedLocationData
54
+ */
55
+ 'display_name': JsonValue | null;
56
+ /**
57
+ *
58
+ * @type {string}
59
+ * @memberof AuthorizedLocationData
60
+ */
61
+ 'tower_id': string;
62
+ /**
63
+ *
64
+ * @type {string}
65
+ * @memberof AuthorizedLocationData
66
+ */
67
+ 'floor_id': string;
68
+ /**
69
+ *
70
+ * @type {string}
71
+ * @memberof AuthorizedLocationData
72
+ */
73
+ 'created_at': string;
74
+ /**
75
+ *
76
+ * @type {string}
77
+ * @memberof AuthorizedLocationData
78
+ */
79
+ 'updated_at': string;
80
+ }
26
81
  /**
27
82
  *
28
83
  * @export
@@ -733,6 +788,12 @@ export interface MembersShowResponse {
733
788
  * @memberof MembersShowResponse
734
789
  */
735
790
  'towers': Array<TowerData>;
791
+ /**
792
+ *
793
+ * @type {boolean}
794
+ * @memberof MembersShowResponse
795
+ */
796
+ 'isExitsTower': boolean;
736
797
  }
737
798
  /**
738
799
  *
@@ -1410,10 +1471,10 @@ export interface TowerData {
1410
1471
  'floors': Array<FloorData>;
1411
1472
  /**
1412
1473
  *
1413
- * @type {Array<LocationData>}
1474
+ * @type {Array<AuthorizedLocationData>}
1414
1475
  * @memberof TowerData
1415
1476
  */
1416
- 'locations': Array<LocationData>;
1477
+ 'locations': Array<AuthorizedLocationData>;
1417
1478
  }
1418
1479
  /**
1419
1480
  *
@@ -2103,6 +2164,12 @@ export interface WrappedResponseMembersShowResponseData {
2103
2164
  * @memberof WrappedResponseMembersShowResponseData
2104
2165
  */
2105
2166
  'towers': Array<TowerData>;
2167
+ /**
2168
+ *
2169
+ * @type {boolean}
2170
+ * @memberof WrappedResponseMembersShowResponseData
2171
+ */
2172
+ 'isExitsTower': boolean;
2106
2173
  }
2107
2174
  /**
2108
2175
  *
@@ -2726,10 +2793,11 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
2726
2793
  /**
2727
2794
  *
2728
2795
  * @param {string} id
2796
+ * @param {string} [locationId]
2729
2797
  * @param {*} [options] Override http request option.
2730
2798
  * @throws {RequiredError}
2731
2799
  */
2732
- membersShow: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2800
+ membersShow: async (id: string, locationId?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2733
2801
  // verify required parameter 'id' is not null or undefined
2734
2802
  assertParamExists('membersShow', 'id', id)
2735
2803
  const localVarPath = `/members/{id}`
@@ -2745,6 +2813,10 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
2745
2813
  const localVarHeaderParameter = {} as any;
2746
2814
  const localVarQueryParameter = {} as any;
2747
2815
 
2816
+ if (locationId !== undefined) {
2817
+ localVarQueryParameter['locationId'] = locationId;
2818
+ }
2819
+
2748
2820
 
2749
2821
 
2750
2822
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -3152,11 +3224,12 @@ export const DefaultApiFp = function(configuration?: Configuration) {
3152
3224
  /**
3153
3225
  *
3154
3226
  * @param {string} id
3227
+ * @param {string} [locationId]
3155
3228
  * @param {*} [options] Override http request option.
3156
3229
  * @throws {RequiredError}
3157
3230
  */
3158
- async membersShow(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedResponseMembersShowResponse>> {
3159
- const localVarAxiosArgs = await localVarAxiosParamCreator.membersShow(id, options);
3231
+ async membersShow(id: string, locationId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedResponseMembersShowResponse>> {
3232
+ const localVarAxiosArgs = await localVarAxiosParamCreator.membersShow(id, locationId, options);
3160
3233
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3161
3234
  },
3162
3235
  /**
@@ -3330,11 +3403,12 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
3330
3403
  /**
3331
3404
  *
3332
3405
  * @param {string} id
3406
+ * @param {string} [locationId]
3333
3407
  * @param {*} [options] Override http request option.
3334
3408
  * @throws {RequiredError}
3335
3409
  */
3336
- membersShow(id: string, options?: any): AxiosPromise<WrappedResponseMembersShowResponse> {
3337
- return localVarFp.membersShow(id, options).then((request) => request(axios, basePath));
3410
+ membersShow(id: string, locationId?: string, options?: any): AxiosPromise<WrappedResponseMembersShowResponse> {
3411
+ return localVarFp.membersShow(id, locationId, options).then((request) => request(axios, basePath));
3338
3412
  },
3339
3413
  /**
3340
3414
  *
@@ -3512,12 +3586,13 @@ export class DefaultApi extends BaseAPI {
3512
3586
  /**
3513
3587
  *
3514
3588
  * @param {string} id
3589
+ * @param {string} [locationId]
3515
3590
  * @param {*} [options] Override http request option.
3516
3591
  * @throws {RequiredError}
3517
3592
  * @memberof DefaultApi
3518
3593
  */
3519
- public membersShow(id: string, options?: AxiosRequestConfig) {
3520
- return DefaultApiFp(this.configuration).membersShow(id, options).then((request) => request(this.axios, this.basePath));
3594
+ public membersShow(id: string, locationId?: string, options?: AxiosRequestConfig) {
3595
+ return DefaultApiFp(this.configuration).membersShow(id, locationId, options).then((request) => request(this.axios, this.basePath));
3521
3596
  }
3522
3597
 
3523
3598
  /**
package/dist/api/api.d.ts CHANGED
@@ -13,6 +13,61 @@ 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 AuthorizedLocationData
20
+ */
21
+ export interface AuthorizedLocationData {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof AuthorizedLocationData
26
+ */
27
+ 'id': string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof AuthorizedLocationData
32
+ */
33
+ 'uid': string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof AuthorizedLocationData
38
+ */
39
+ 'name': string;
40
+ /**
41
+ *
42
+ * @type {JsonValue}
43
+ * @memberof AuthorizedLocationData
44
+ */
45
+ 'display_name': JsonValue | null;
46
+ /**
47
+ *
48
+ * @type {string}
49
+ * @memberof AuthorizedLocationData
50
+ */
51
+ 'tower_id': string;
52
+ /**
53
+ *
54
+ * @type {string}
55
+ * @memberof AuthorizedLocationData
56
+ */
57
+ 'floor_id': string;
58
+ /**
59
+ *
60
+ * @type {string}
61
+ * @memberof AuthorizedLocationData
62
+ */
63
+ 'created_at': string;
64
+ /**
65
+ *
66
+ * @type {string}
67
+ * @memberof AuthorizedLocationData
68
+ */
69
+ 'updated_at': string;
70
+ }
16
71
  /**
17
72
  *
18
73
  * @export
@@ -731,6 +786,12 @@ export interface MembersShowResponse {
731
786
  * @memberof MembersShowResponse
732
787
  */
733
788
  'towers': Array<TowerData>;
789
+ /**
790
+ *
791
+ * @type {boolean}
792
+ * @memberof MembersShowResponse
793
+ */
794
+ 'isExitsTower': boolean;
734
795
  }
735
796
  /**
736
797
  *
@@ -1399,10 +1460,10 @@ export interface TowerData {
1399
1460
  'floors': Array<FloorData>;
1400
1461
  /**
1401
1462
  *
1402
- * @type {Array<LocationData>}
1463
+ * @type {Array<AuthorizedLocationData>}
1403
1464
  * @memberof TowerData
1404
1465
  */
1405
- 'locations': Array<LocationData>;
1466
+ 'locations': Array<AuthorizedLocationData>;
1406
1467
  }
1407
1468
  /**
1408
1469
  *
@@ -2092,6 +2153,12 @@ export interface WrappedResponseMembersShowResponseData {
2092
2153
  * @memberof WrappedResponseMembersShowResponseData
2093
2154
  */
2094
2155
  'towers': Array<TowerData>;
2156
+ /**
2157
+ *
2158
+ * @type {boolean}
2159
+ * @memberof WrappedResponseMembersShowResponseData
2160
+ */
2161
+ 'isExitsTower': boolean;
2095
2162
  }
2096
2163
  /**
2097
2164
  *
@@ -2500,10 +2567,11 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
2500
2567
  /**
2501
2568
  *
2502
2569
  * @param {string} id
2570
+ * @param {string} [locationId]
2503
2571
  * @param {*} [options] Override http request option.
2504
2572
  * @throws {RequiredError}
2505
2573
  */
2506
- membersShow: (id: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
2574
+ membersShow: (id: string, locationId?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
2507
2575
  /**
2508
2576
  *
2509
2577
  * @param {string} id
@@ -2630,10 +2698,11 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
2630
2698
  /**
2631
2699
  *
2632
2700
  * @param {string} id
2701
+ * @param {string} [locationId]
2633
2702
  * @param {*} [options] Override http request option.
2634
2703
  * @throws {RequiredError}
2635
2704
  */
2636
- membersShow(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedResponseMembersShowResponse>>;
2705
+ membersShow(id: string, locationId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedResponseMembersShowResponse>>;
2637
2706
  /**
2638
2707
  *
2639
2708
  * @param {string} id
@@ -2760,10 +2829,11 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
2760
2829
  /**
2761
2830
  *
2762
2831
  * @param {string} id
2832
+ * @param {string} [locationId]
2763
2833
  * @param {*} [options] Override http request option.
2764
2834
  * @throws {RequiredError}
2765
2835
  */
2766
- membersShow(id: string, options?: any): AxiosPromise<WrappedResponseMembersShowResponse>;
2836
+ membersShow(id: string, locationId?: string, options?: any): AxiosPromise<WrappedResponseMembersShowResponse>;
2767
2837
  /**
2768
2838
  *
2769
2839
  * @param {string} id
@@ -2899,11 +2969,12 @@ export declare class DefaultApi extends BaseAPI {
2899
2969
  /**
2900
2970
  *
2901
2971
  * @param {string} id
2972
+ * @param {string} [locationId]
2902
2973
  * @param {*} [options] Override http request option.
2903
2974
  * @throws {RequiredError}
2904
2975
  * @memberof DefaultApi
2905
2976
  */
2906
- membersShow(id: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<WrappedResponseMembersShowResponse, any>>;
2977
+ membersShow(id: string, locationId?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<WrappedResponseMembersShowResponse, any>>;
2907
2978
  /**
2908
2979
  *
2909
2980
  * @param {string} id
package/dist/api/api.js CHANGED
@@ -276,10 +276,11 @@ const DefaultApiAxiosParamCreator = function (configuration) {
276
276
  /**
277
277
  *
278
278
  * @param {string} id
279
+ * @param {string} [locationId]
279
280
  * @param {*} [options] Override http request option.
280
281
  * @throws {RequiredError}
281
282
  */
282
- membersShow: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
283
+ membersShow: (id, locationId, options = {}) => __awaiter(this, void 0, void 0, function* () {
283
284
  // verify required parameter 'id' is not null or undefined
284
285
  (0, common_1.assertParamExists)('membersShow', 'id', id);
285
286
  const localVarPath = `/members/{id}`
@@ -293,6 +294,9 @@ const DefaultApiAxiosParamCreator = function (configuration) {
293
294
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
294
295
  const localVarHeaderParameter = {};
295
296
  const localVarQueryParameter = {};
297
+ if (locationId !== undefined) {
298
+ localVarQueryParameter['locationId'] = locationId;
299
+ }
296
300
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
297
301
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
298
302
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -662,12 +666,13 @@ const DefaultApiFp = function (configuration) {
662
666
  /**
663
667
  *
664
668
  * @param {string} id
669
+ * @param {string} [locationId]
665
670
  * @param {*} [options] Override http request option.
666
671
  * @throws {RequiredError}
667
672
  */
668
- membersShow(id, options) {
673
+ membersShow(id, locationId, options) {
669
674
  return __awaiter(this, void 0, void 0, function* () {
670
- const localVarAxiosArgs = yield localVarAxiosParamCreator.membersShow(id, options);
675
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.membersShow(id, locationId, options);
671
676
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
672
677
  });
673
678
  },
@@ -860,11 +865,12 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
860
865
  /**
861
866
  *
862
867
  * @param {string} id
868
+ * @param {string} [locationId]
863
869
  * @param {*} [options] Override http request option.
864
870
  * @throws {RequiredError}
865
871
  */
866
- membersShow(id, options) {
867
- return localVarFp.membersShow(id, options).then((request) => request(axios, basePath));
872
+ membersShow(id, locationId, options) {
873
+ return localVarFp.membersShow(id, locationId, options).then((request) => request(axios, basePath));
868
874
  },
869
875
  /**
870
876
  *
@@ -1035,12 +1041,13 @@ class DefaultApi extends base_1.BaseAPI {
1035
1041
  /**
1036
1042
  *
1037
1043
  * @param {string} id
1044
+ * @param {string} [locationId]
1038
1045
  * @param {*} [options] Override http request option.
1039
1046
  * @throws {RequiredError}
1040
1047
  * @memberof DefaultApi
1041
1048
  */
1042
- membersShow(id, options) {
1043
- return (0, exports.DefaultApiFp)(this.configuration).membersShow(id, options).then((request) => request(this.axios, this.basePath));
1049
+ membersShow(id, locationId, options) {
1050
+ return (0, exports.DefaultApiFp)(this.configuration).membersShow(id, locationId, options).then((request) => request(this.axios, this.basePath));
1044
1051
  }
1045
1052
  /**
1046
1053
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ob-bms-sdk",
3
- "version": "0.0.41",
3
+ "version": "0.0.43",
4
4
  "description": "API interfaces for OB BMS",
5
5
  "main": "./dist/index.js",
6
6
  "license": "MIT"