ob-bms-sdk 0.0.24 → 0.0.26

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,112 @@ 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 CommandData
30
+ */
31
+ export interface CommandData {
32
+ /**
33
+ *
34
+ * @type {string}
35
+ * @memberof CommandData
36
+ */
37
+ 'id'?: string;
38
+ /**
39
+ *
40
+ * @type {string}
41
+ * @memberof CommandData
42
+ */
43
+ 'name'?: string;
44
+ /**
45
+ *
46
+ * @type {PrismaJsonValue}
47
+ * @memberof CommandData
48
+ */
49
+ 'data'?: PrismaJsonValue | null;
50
+ /**
51
+ *
52
+ * @type {string}
53
+ * @memberof CommandData
54
+ */
55
+ 'created_at'?: string;
56
+ /**
57
+ *
58
+ * @type {string}
59
+ * @memberof CommandData
60
+ */
61
+ 'updated_at'?: string;
62
+ /**
63
+ *
64
+ * @type {string}
65
+ * @memberof CommandData
66
+ */
67
+ 'member_id'?: string;
68
+ }
69
+ /**
70
+ *
71
+ * @export
72
+ * @interface CommandsCreateBody
73
+ */
74
+ export interface CommandsCreateBody {
75
+ /**
76
+ *
77
+ * @type {string}
78
+ * @memberof CommandsCreateBody
79
+ */
80
+ 'name': CommandsCreateBodyNameEnum;
81
+ /**
82
+ *
83
+ * @type {LiftCallCommandData}
84
+ * @memberof CommandsCreateBody
85
+ */
86
+ 'data': LiftCallCommandData;
87
+ }
88
+
89
+ export const CommandsCreateBodyNameEnum = {
90
+ LiftCall: 'lift.call'
91
+ } as const;
92
+
93
+ export type CommandsCreateBodyNameEnum = typeof CommandsCreateBodyNameEnum[keyof typeof CommandsCreateBodyNameEnum];
94
+
95
+ /**
96
+ *
97
+ * @export
98
+ * @interface CommandsIndexQuery
99
+ */
100
+ export interface CommandsIndexQuery {
101
+ /**
102
+ *
103
+ * @type {string}
104
+ * @memberof CommandsIndexQuery
105
+ */
106
+ 'name'?: string;
107
+ /**
108
+ *
109
+ * @type {string}
110
+ * @memberof CommandsIndexQuery
111
+ */
112
+ 'order_by'?: string;
113
+ /**
114
+ *
115
+ * @type {string}
116
+ * @memberof CommandsIndexQuery
117
+ */
118
+ 'order_direction'?: string;
119
+ /**
120
+ *
121
+ * @type {number}
122
+ * @memberof CommandsIndexQuery
123
+ */
124
+ 'page_number'?: number;
125
+ /**
126
+ *
127
+ * @type {number}
128
+ * @memberof CommandsIndexQuery
129
+ */
130
+ 'page_size'?: number;
131
+ }
26
132
  /**
27
133
  *
28
134
  * @export
@@ -383,6 +489,25 @@ export interface FloorDataPasses {
383
489
  */
384
490
  export interface JsonValue {
385
491
  }
492
+ /**
493
+ *
494
+ * @export
495
+ * @interface LiftCallCommandData
496
+ */
497
+ export interface LiftCallCommandData {
498
+ /**
499
+ *
500
+ * @type {string}
501
+ * @memberof LiftCallCommandData
502
+ */
503
+ 'destination_floor_id': string;
504
+ /**
505
+ *
506
+ * @type {string}
507
+ * @memberof LiftCallCommandData
508
+ */
509
+ 'location_id': string;
510
+ }
386
511
  /**
387
512
  *
388
513
  * @export
@@ -1499,6 +1624,82 @@ export interface WebhookCreateBody {
1499
1624
  */
1500
1625
  'uid': string;
1501
1626
  }
1627
+ /**
1628
+ *
1629
+ * @export
1630
+ * @interface WrappedResponseCommandsCreateResponse
1631
+ */
1632
+ export interface WrappedResponseCommandsCreateResponse {
1633
+ /**
1634
+ *
1635
+ * @type {WrappedResponseCommandsCreateResponseData}
1636
+ * @memberof WrappedResponseCommandsCreateResponse
1637
+ */
1638
+ 'data': WrappedResponseCommandsCreateResponseData | null;
1639
+ }
1640
+ /**
1641
+ *
1642
+ * @export
1643
+ * @interface WrappedResponseCommandsCreateResponseData
1644
+ */
1645
+ export interface WrappedResponseCommandsCreateResponseData {
1646
+ /**
1647
+ *
1648
+ * @type {string}
1649
+ * @memberof WrappedResponseCommandsCreateResponseData
1650
+ */
1651
+ 'id'?: string;
1652
+ /**
1653
+ *
1654
+ * @type {string}
1655
+ * @memberof WrappedResponseCommandsCreateResponseData
1656
+ */
1657
+ 'name'?: string;
1658
+ /**
1659
+ *
1660
+ * @type {PrismaJsonValue}
1661
+ * @memberof WrappedResponseCommandsCreateResponseData
1662
+ */
1663
+ 'data'?: PrismaJsonValue | null;
1664
+ /**
1665
+ *
1666
+ * @type {string}
1667
+ * @memberof WrappedResponseCommandsCreateResponseData
1668
+ */
1669
+ 'created_at'?: string;
1670
+ /**
1671
+ *
1672
+ * @type {string}
1673
+ * @memberof WrappedResponseCommandsCreateResponseData
1674
+ */
1675
+ 'updated_at'?: string;
1676
+ /**
1677
+ *
1678
+ * @type {string}
1679
+ * @memberof WrappedResponseCommandsCreateResponseData
1680
+ */
1681
+ 'member_id'?: string;
1682
+ }
1683
+ /**
1684
+ *
1685
+ * @export
1686
+ * @interface WrappedResponseCommandsIndexResponse
1687
+ */
1688
+ export interface WrappedResponseCommandsIndexResponse {
1689
+ /**
1690
+ *
1691
+ * @type {WrappedResponseCommandsIndexResponseData}
1692
+ * @memberof WrappedResponseCommandsIndexResponse
1693
+ */
1694
+ 'data': WrappedResponseCommandsIndexResponseData | null;
1695
+ }
1696
+ /**
1697
+ *
1698
+ * @export
1699
+ * @interface WrappedResponseCommandsIndexResponseData
1700
+ */
1701
+ export interface WrappedResponseCommandsIndexResponseData {
1702
+ }
1502
1703
  /**
1503
1704
  *
1504
1705
  * @export
@@ -2049,6 +2250,99 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
2049
2250
  options: localVarRequestOptions,
2050
2251
  };
2051
2252
  },
2253
+ /**
2254
+ *
2255
+ * @param {string} memberId
2256
+ * @param {CommandsCreateBody} commandsCreateBody
2257
+ * @param {*} [options] Override http request option.
2258
+ * @throws {RequiredError}
2259
+ */
2260
+ membersCommandsCreate: async (memberId: string, commandsCreateBody: CommandsCreateBody, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2261
+ // verify required parameter 'memberId' is not null or undefined
2262
+ assertParamExists('membersCommandsCreate', 'memberId', memberId)
2263
+ // verify required parameter 'commandsCreateBody' is not null or undefined
2264
+ assertParamExists('membersCommandsCreate', 'commandsCreateBody', commandsCreateBody)
2265
+ const localVarPath = `/members/{member_id}/commands`
2266
+ .replace(`{${"member_id"}}`, encodeURIComponent(String(memberId)));
2267
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2268
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2269
+ let baseOptions;
2270
+ if (configuration) {
2271
+ baseOptions = configuration.baseOptions;
2272
+ }
2273
+
2274
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
2275
+ const localVarHeaderParameter = {} as any;
2276
+ const localVarQueryParameter = {} as any;
2277
+
2278
+
2279
+
2280
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2281
+
2282
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2283
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2284
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2285
+ localVarRequestOptions.data = serializeDataIfNeeded(commandsCreateBody, localVarRequestOptions, configuration)
2286
+
2287
+ return {
2288
+ url: toPathString(localVarUrlObj),
2289
+ options: localVarRequestOptions,
2290
+ };
2291
+ },
2292
+ /**
2293
+ *
2294
+ * @param {string} [name]
2295
+ * @param {string} [orderBy]
2296
+ * @param {string} [orderDirection]
2297
+ * @param {number} [pageNumber]
2298
+ * @param {number} [pageSize]
2299
+ * @param {*} [options] Override http request option.
2300
+ * @throws {RequiredError}
2301
+ */
2302
+ membersCommandsIndex: async (name?: string, orderBy?: string, orderDirection?: string, pageNumber?: number, pageSize?: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2303
+ const localVarPath = `/members/{member_id}/commands`;
2304
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2305
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2306
+ let baseOptions;
2307
+ if (configuration) {
2308
+ baseOptions = configuration.baseOptions;
2309
+ }
2310
+
2311
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
2312
+ const localVarHeaderParameter = {} as any;
2313
+ const localVarQueryParameter = {} as any;
2314
+
2315
+ if (name !== undefined) {
2316
+ localVarQueryParameter['name'] = name;
2317
+ }
2318
+
2319
+ if (orderBy !== undefined) {
2320
+ localVarQueryParameter['order_by'] = orderBy;
2321
+ }
2322
+
2323
+ if (orderDirection !== undefined) {
2324
+ localVarQueryParameter['order_direction'] = orderDirection;
2325
+ }
2326
+
2327
+ if (pageNumber !== undefined) {
2328
+ localVarQueryParameter['page_number'] = pageNumber;
2329
+ }
2330
+
2331
+ if (pageSize !== undefined) {
2332
+ localVarQueryParameter['page_size'] = pageSize;
2333
+ }
2334
+
2335
+
2336
+
2337
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2338
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2339
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2340
+
2341
+ return {
2342
+ url: toPathString(localVarUrlObj),
2343
+ options: localVarRequestOptions,
2344
+ };
2345
+ },
2052
2346
  /**
2053
2347
  *
2054
2348
  * @param {string} identifier
@@ -2395,6 +2689,31 @@ export const DefaultApiFp = function(configuration?: Configuration) {
2395
2689
  const localVarAxiosArgs = await localVarAxiosParamCreator.integrationsFsMembersDelete(destroyFSMembers, options);
2396
2690
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2397
2691
  },
2692
+ /**
2693
+ *
2694
+ * @param {string} memberId
2695
+ * @param {CommandsCreateBody} commandsCreateBody
2696
+ * @param {*} [options] Override http request option.
2697
+ * @throws {RequiredError}
2698
+ */
2699
+ async membersCommandsCreate(memberId: string, commandsCreateBody: CommandsCreateBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedResponseCommandsCreateResponse>> {
2700
+ const localVarAxiosArgs = await localVarAxiosParamCreator.membersCommandsCreate(memberId, commandsCreateBody, options);
2701
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2702
+ },
2703
+ /**
2704
+ *
2705
+ * @param {string} [name]
2706
+ * @param {string} [orderBy]
2707
+ * @param {string} [orderDirection]
2708
+ * @param {number} [pageNumber]
2709
+ * @param {number} [pageSize]
2710
+ * @param {*} [options] Override http request option.
2711
+ * @throws {RequiredError}
2712
+ */
2713
+ async membersCommandsIndex(name?: string, orderBy?: string, orderDirection?: string, pageNumber?: number, pageSize?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedResponseCommandsIndexResponse>> {
2714
+ const localVarAxiosArgs = await localVarAxiosParamCreator.membersCommandsIndex(name, orderBy, orderDirection, pageNumber, pageSize, options);
2715
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2716
+ },
2398
2717
  /**
2399
2718
  *
2400
2719
  * @param {string} identifier
@@ -2522,6 +2841,29 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
2522
2841
  integrationsFsMembersDelete(destroyFSMembers: DestroyFSMembers, options?: any): AxiosPromise<DestroyMembersResponse> {
2523
2842
  return localVarFp.integrationsFsMembersDelete(destroyFSMembers, options).then((request) => request(axios, basePath));
2524
2843
  },
2844
+ /**
2845
+ *
2846
+ * @param {string} memberId
2847
+ * @param {CommandsCreateBody} commandsCreateBody
2848
+ * @param {*} [options] Override http request option.
2849
+ * @throws {RequiredError}
2850
+ */
2851
+ membersCommandsCreate(memberId: string, commandsCreateBody: CommandsCreateBody, options?: any): AxiosPromise<WrappedResponseCommandsCreateResponse> {
2852
+ return localVarFp.membersCommandsCreate(memberId, commandsCreateBody, options).then((request) => request(axios, basePath));
2853
+ },
2854
+ /**
2855
+ *
2856
+ * @param {string} [name]
2857
+ * @param {string} [orderBy]
2858
+ * @param {string} [orderDirection]
2859
+ * @param {number} [pageNumber]
2860
+ * @param {number} [pageSize]
2861
+ * @param {*} [options] Override http request option.
2862
+ * @throws {RequiredError}
2863
+ */
2864
+ membersCommandsIndex(name?: string, orderBy?: string, orderDirection?: string, pageNumber?: number, pageSize?: number, options?: any): AxiosPromise<WrappedResponseCommandsIndexResponse> {
2865
+ return localVarFp.membersCommandsIndex(name, orderBy, orderDirection, pageNumber, pageSize, options).then((request) => request(axios, basePath));
2866
+ },
2525
2867
  /**
2526
2868
  *
2527
2869
  * @param {string} identifier
@@ -2646,6 +2988,33 @@ export class DefaultApi extends BaseAPI {
2646
2988
  return DefaultApiFp(this.configuration).integrationsFsMembersDelete(destroyFSMembers, options).then((request) => request(this.axios, this.basePath));
2647
2989
  }
2648
2990
 
2991
+ /**
2992
+ *
2993
+ * @param {string} memberId
2994
+ * @param {CommandsCreateBody} commandsCreateBody
2995
+ * @param {*} [options] Override http request option.
2996
+ * @throws {RequiredError}
2997
+ * @memberof DefaultApi
2998
+ */
2999
+ public membersCommandsCreate(memberId: string, commandsCreateBody: CommandsCreateBody, options?: AxiosRequestConfig) {
3000
+ return DefaultApiFp(this.configuration).membersCommandsCreate(memberId, commandsCreateBody, options).then((request) => request(this.axios, this.basePath));
3001
+ }
3002
+
3003
+ /**
3004
+ *
3005
+ * @param {string} [name]
3006
+ * @param {string} [orderBy]
3007
+ * @param {string} [orderDirection]
3008
+ * @param {number} [pageNumber]
3009
+ * @param {number} [pageSize]
3010
+ * @param {*} [options] Override http request option.
3011
+ * @throws {RequiredError}
3012
+ * @memberof DefaultApi
3013
+ */
3014
+ public membersCommandsIndex(name?: string, orderBy?: string, orderDirection?: string, pageNumber?: number, pageSize?: number, options?: AxiosRequestConfig) {
3015
+ return DefaultApiFp(this.configuration).membersCommandsIndex(name, orderBy, orderDirection, pageNumber, pageSize, options).then((request) => request(this.axios, this.basePath));
3016
+ }
3017
+
2649
3018
  /**
2650
3019
  *
2651
3020
  * @param {string} identifier
package/dist/api/api.d.ts CHANGED
@@ -13,6 +13,109 @@ 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 CommandData
20
+ */
21
+ export interface CommandData {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof CommandData
26
+ */
27
+ 'id'?: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof CommandData
32
+ */
33
+ 'name'?: string;
34
+ /**
35
+ *
36
+ * @type {PrismaJsonValue}
37
+ * @memberof CommandData
38
+ */
39
+ 'data'?: PrismaJsonValue | null;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof CommandData
44
+ */
45
+ 'created_at'?: string;
46
+ /**
47
+ *
48
+ * @type {string}
49
+ * @memberof CommandData
50
+ */
51
+ 'updated_at'?: string;
52
+ /**
53
+ *
54
+ * @type {string}
55
+ * @memberof CommandData
56
+ */
57
+ 'member_id'?: string;
58
+ }
59
+ /**
60
+ *
61
+ * @export
62
+ * @interface CommandsCreateBody
63
+ */
64
+ export interface CommandsCreateBody {
65
+ /**
66
+ *
67
+ * @type {string}
68
+ * @memberof CommandsCreateBody
69
+ */
70
+ 'name': CommandsCreateBodyNameEnum;
71
+ /**
72
+ *
73
+ * @type {LiftCallCommandData}
74
+ * @memberof CommandsCreateBody
75
+ */
76
+ 'data': LiftCallCommandData;
77
+ }
78
+ export declare const CommandsCreateBodyNameEnum: {
79
+ readonly LiftCall: "lift.call";
80
+ };
81
+ export type CommandsCreateBodyNameEnum = typeof CommandsCreateBodyNameEnum[keyof typeof CommandsCreateBodyNameEnum];
82
+ /**
83
+ *
84
+ * @export
85
+ * @interface CommandsIndexQuery
86
+ */
87
+ export interface CommandsIndexQuery {
88
+ /**
89
+ *
90
+ * @type {string}
91
+ * @memberof CommandsIndexQuery
92
+ */
93
+ 'name'?: string;
94
+ /**
95
+ *
96
+ * @type {string}
97
+ * @memberof CommandsIndexQuery
98
+ */
99
+ 'order_by'?: string;
100
+ /**
101
+ *
102
+ * @type {string}
103
+ * @memberof CommandsIndexQuery
104
+ */
105
+ 'order_direction'?: string;
106
+ /**
107
+ *
108
+ * @type {number}
109
+ * @memberof CommandsIndexQuery
110
+ */
111
+ 'page_number'?: number;
112
+ /**
113
+ *
114
+ * @type {number}
115
+ * @memberof CommandsIndexQuery
116
+ */
117
+ 'page_size'?: number;
118
+ }
16
119
  /**
17
120
  *
18
121
  * @export
@@ -381,6 +484,25 @@ export interface FloorDataPasses {
381
484
  */
382
485
  export interface JsonValue {
383
486
  }
487
+ /**
488
+ *
489
+ * @export
490
+ * @interface LiftCallCommandData
491
+ */
492
+ export interface LiftCallCommandData {
493
+ /**
494
+ *
495
+ * @type {string}
496
+ * @memberof LiftCallCommandData
497
+ */
498
+ 'destination_floor_id': string;
499
+ /**
500
+ *
501
+ * @type {string}
502
+ * @memberof LiftCallCommandData
503
+ */
504
+ 'location_id': string;
505
+ }
384
506
  /**
385
507
  *
386
508
  * @export
@@ -1488,6 +1610,82 @@ export interface WebhookCreateBody {
1488
1610
  */
1489
1611
  'uid': string;
1490
1612
  }
1613
+ /**
1614
+ *
1615
+ * @export
1616
+ * @interface WrappedResponseCommandsCreateResponse
1617
+ */
1618
+ export interface WrappedResponseCommandsCreateResponse {
1619
+ /**
1620
+ *
1621
+ * @type {WrappedResponseCommandsCreateResponseData}
1622
+ * @memberof WrappedResponseCommandsCreateResponse
1623
+ */
1624
+ 'data': WrappedResponseCommandsCreateResponseData | null;
1625
+ }
1626
+ /**
1627
+ *
1628
+ * @export
1629
+ * @interface WrappedResponseCommandsCreateResponseData
1630
+ */
1631
+ export interface WrappedResponseCommandsCreateResponseData {
1632
+ /**
1633
+ *
1634
+ * @type {string}
1635
+ * @memberof WrappedResponseCommandsCreateResponseData
1636
+ */
1637
+ 'id'?: string;
1638
+ /**
1639
+ *
1640
+ * @type {string}
1641
+ * @memberof WrappedResponseCommandsCreateResponseData
1642
+ */
1643
+ 'name'?: string;
1644
+ /**
1645
+ *
1646
+ * @type {PrismaJsonValue}
1647
+ * @memberof WrappedResponseCommandsCreateResponseData
1648
+ */
1649
+ 'data'?: PrismaJsonValue | null;
1650
+ /**
1651
+ *
1652
+ * @type {string}
1653
+ * @memberof WrappedResponseCommandsCreateResponseData
1654
+ */
1655
+ 'created_at'?: string;
1656
+ /**
1657
+ *
1658
+ * @type {string}
1659
+ * @memberof WrappedResponseCommandsCreateResponseData
1660
+ */
1661
+ 'updated_at'?: string;
1662
+ /**
1663
+ *
1664
+ * @type {string}
1665
+ * @memberof WrappedResponseCommandsCreateResponseData
1666
+ */
1667
+ 'member_id'?: string;
1668
+ }
1669
+ /**
1670
+ *
1671
+ * @export
1672
+ * @interface WrappedResponseCommandsIndexResponse
1673
+ */
1674
+ export interface WrappedResponseCommandsIndexResponse {
1675
+ /**
1676
+ *
1677
+ * @type {WrappedResponseCommandsIndexResponseData}
1678
+ * @memberof WrappedResponseCommandsIndexResponse
1679
+ */
1680
+ 'data': WrappedResponseCommandsIndexResponseData | null;
1681
+ }
1682
+ /**
1683
+ *
1684
+ * @export
1685
+ * @interface WrappedResponseCommandsIndexResponseData
1686
+ */
1687
+ export interface WrappedResponseCommandsIndexResponseData {
1688
+ }
1491
1689
  /**
1492
1690
  *
1493
1691
  * @export
@@ -1946,6 +2144,25 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
1946
2144
  * @throws {RequiredError}
1947
2145
  */
1948
2146
  integrationsFsMembersDelete: (destroyFSMembers: DestroyFSMembers, options?: AxiosRequestConfig) => Promise<RequestArgs>;
2147
+ /**
2148
+ *
2149
+ * @param {string} memberId
2150
+ * @param {CommandsCreateBody} commandsCreateBody
2151
+ * @param {*} [options] Override http request option.
2152
+ * @throws {RequiredError}
2153
+ */
2154
+ membersCommandsCreate: (memberId: string, commandsCreateBody: CommandsCreateBody, options?: AxiosRequestConfig) => Promise<RequestArgs>;
2155
+ /**
2156
+ *
2157
+ * @param {string} [name]
2158
+ * @param {string} [orderBy]
2159
+ * @param {string} [orderDirection]
2160
+ * @param {number} [pageNumber]
2161
+ * @param {number} [pageSize]
2162
+ * @param {*} [options] Override http request option.
2163
+ * @throws {RequiredError}
2164
+ */
2165
+ membersCommandsIndex: (name?: string, orderBy?: string, orderDirection?: string, pageNumber?: number, pageSize?: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
1949
2166
  /**
1950
2167
  *
1951
2168
  * @param {string} identifier
@@ -2036,6 +2253,25 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
2036
2253
  * @throws {RequiredError}
2037
2254
  */
2038
2255
  integrationsFsMembersDelete(destroyFSMembers: DestroyFSMembers, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DestroyMembersResponse>>;
2256
+ /**
2257
+ *
2258
+ * @param {string} memberId
2259
+ * @param {CommandsCreateBody} commandsCreateBody
2260
+ * @param {*} [options] Override http request option.
2261
+ * @throws {RequiredError}
2262
+ */
2263
+ membersCommandsCreate(memberId: string, commandsCreateBody: CommandsCreateBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedResponseCommandsCreateResponse>>;
2264
+ /**
2265
+ *
2266
+ * @param {string} [name]
2267
+ * @param {string} [orderBy]
2268
+ * @param {string} [orderDirection]
2269
+ * @param {number} [pageNumber]
2270
+ * @param {number} [pageSize]
2271
+ * @param {*} [options] Override http request option.
2272
+ * @throws {RequiredError}
2273
+ */
2274
+ membersCommandsIndex(name?: string, orderBy?: string, orderDirection?: string, pageNumber?: number, pageSize?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedResponseCommandsIndexResponse>>;
2039
2275
  /**
2040
2276
  *
2041
2277
  * @param {string} identifier
@@ -2126,6 +2362,25 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
2126
2362
  * @throws {RequiredError}
2127
2363
  */
2128
2364
  integrationsFsMembersDelete(destroyFSMembers: DestroyFSMembers, options?: any): AxiosPromise<DestroyMembersResponse>;
2365
+ /**
2366
+ *
2367
+ * @param {string} memberId
2368
+ * @param {CommandsCreateBody} commandsCreateBody
2369
+ * @param {*} [options] Override http request option.
2370
+ * @throws {RequiredError}
2371
+ */
2372
+ membersCommandsCreate(memberId: string, commandsCreateBody: CommandsCreateBody, options?: any): AxiosPromise<WrappedResponseCommandsCreateResponse>;
2373
+ /**
2374
+ *
2375
+ * @param {string} [name]
2376
+ * @param {string} [orderBy]
2377
+ * @param {string} [orderDirection]
2378
+ * @param {number} [pageNumber]
2379
+ * @param {number} [pageSize]
2380
+ * @param {*} [options] Override http request option.
2381
+ * @throws {RequiredError}
2382
+ */
2383
+ membersCommandsIndex(name?: string, orderBy?: string, orderDirection?: string, pageNumber?: number, pageSize?: number, options?: any): AxiosPromise<WrappedResponseCommandsIndexResponse>;
2129
2384
  /**
2130
2385
  *
2131
2386
  * @param {string} identifier
@@ -2221,6 +2476,27 @@ export declare class DefaultApi extends BaseAPI {
2221
2476
  * @memberof DefaultApi
2222
2477
  */
2223
2478
  integrationsFsMembersDelete(destroyFSMembers: DestroyFSMembers, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DestroyMembersResponse, any>>;
2479
+ /**
2480
+ *
2481
+ * @param {string} memberId
2482
+ * @param {CommandsCreateBody} commandsCreateBody
2483
+ * @param {*} [options] Override http request option.
2484
+ * @throws {RequiredError}
2485
+ * @memberof DefaultApi
2486
+ */
2487
+ membersCommandsCreate(memberId: string, commandsCreateBody: CommandsCreateBody, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<WrappedResponseCommandsCreateResponse, any>>;
2488
+ /**
2489
+ *
2490
+ * @param {string} [name]
2491
+ * @param {string} [orderBy]
2492
+ * @param {string} [orderDirection]
2493
+ * @param {number} [pageNumber]
2494
+ * @param {number} [pageSize]
2495
+ * @param {*} [options] Override http request option.
2496
+ * @throws {RequiredError}
2497
+ * @memberof DefaultApi
2498
+ */
2499
+ membersCommandsIndex(name?: string, orderBy?: string, orderDirection?: string, pageNumber?: number, pageSize?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<WrappedResponseCommandsIndexResponse, any>>;
2224
2500
  /**
2225
2501
  *
2226
2502
  * @param {string} identifier
package/dist/api/api.js CHANGED
@@ -25,13 +25,16 @@ 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.WrappedResponsePassConsentResponseDataStatusEnum = exports.WrappedResponseNullDataEnum = exports.ShowPassResponseStatusEnum = exports.PassDataStatusEnum = exports.PassConsentResponseStatusEnum = void 0;
28
+ exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.WrappedResponsePassConsentResponseDataStatusEnum = exports.WrappedResponseNullDataEnum = exports.ShowPassResponseStatusEnum = exports.PassDataStatusEnum = exports.PassConsentResponseStatusEnum = exports.CommandsCreateBodyNameEnum = 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.CommandsCreateBodyNameEnum = {
36
+ LiftCall: 'lift.call'
37
+ };
35
38
  exports.PassConsentResponseStatusEnum = {
36
39
  Pending: 'pending',
37
40
  Confirmed: 'confirmed'
@@ -144,6 +147,83 @@ const DefaultApiAxiosParamCreator = function (configuration) {
144
147
  options: localVarRequestOptions,
145
148
  };
146
149
  }),
150
+ /**
151
+ *
152
+ * @param {string} memberId
153
+ * @param {CommandsCreateBody} commandsCreateBody
154
+ * @param {*} [options] Override http request option.
155
+ * @throws {RequiredError}
156
+ */
157
+ membersCommandsCreate: (memberId, commandsCreateBody, options = {}) => __awaiter(this, void 0, void 0, function* () {
158
+ // verify required parameter 'memberId' is not null or undefined
159
+ (0, common_1.assertParamExists)('membersCommandsCreate', 'memberId', memberId);
160
+ // verify required parameter 'commandsCreateBody' is not null or undefined
161
+ (0, common_1.assertParamExists)('membersCommandsCreate', 'commandsCreateBody', commandsCreateBody);
162
+ const localVarPath = `/members/{member_id}/commands`
163
+ .replace(`{${"member_id"}}`, encodeURIComponent(String(memberId)));
164
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
165
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
166
+ let baseOptions;
167
+ if (configuration) {
168
+ baseOptions = configuration.baseOptions;
169
+ }
170
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
171
+ const localVarHeaderParameter = {};
172
+ const localVarQueryParameter = {};
173
+ localVarHeaderParameter['Content-Type'] = 'application/json';
174
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
175
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
176
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
177
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(commandsCreateBody, localVarRequestOptions, configuration);
178
+ return {
179
+ url: (0, common_1.toPathString)(localVarUrlObj),
180
+ options: localVarRequestOptions,
181
+ };
182
+ }),
183
+ /**
184
+ *
185
+ * @param {string} [name]
186
+ * @param {string} [orderBy]
187
+ * @param {string} [orderDirection]
188
+ * @param {number} [pageNumber]
189
+ * @param {number} [pageSize]
190
+ * @param {*} [options] Override http request option.
191
+ * @throws {RequiredError}
192
+ */
193
+ membersCommandsIndex: (name, orderBy, orderDirection, pageNumber, pageSize, options = {}) => __awaiter(this, void 0, void 0, function* () {
194
+ const localVarPath = `/members/{member_id}/commands`;
195
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
196
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
197
+ let baseOptions;
198
+ if (configuration) {
199
+ baseOptions = configuration.baseOptions;
200
+ }
201
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
202
+ const localVarHeaderParameter = {};
203
+ const localVarQueryParameter = {};
204
+ if (name !== undefined) {
205
+ localVarQueryParameter['name'] = name;
206
+ }
207
+ if (orderBy !== undefined) {
208
+ localVarQueryParameter['order_by'] = orderBy;
209
+ }
210
+ if (orderDirection !== undefined) {
211
+ localVarQueryParameter['order_direction'] = orderDirection;
212
+ }
213
+ if (pageNumber !== undefined) {
214
+ localVarQueryParameter['page_number'] = pageNumber;
215
+ }
216
+ if (pageSize !== undefined) {
217
+ localVarQueryParameter['page_size'] = pageSize;
218
+ }
219
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
220
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
221
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
222
+ return {
223
+ url: (0, common_1.toPathString)(localVarUrlObj),
224
+ options: localVarRequestOptions,
225
+ };
226
+ }),
147
227
  /**
148
228
  *
149
229
  * @param {string} identifier
@@ -447,6 +527,35 @@ const DefaultApiFp = function (configuration) {
447
527
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
448
528
  });
449
529
  },
530
+ /**
531
+ *
532
+ * @param {string} memberId
533
+ * @param {CommandsCreateBody} commandsCreateBody
534
+ * @param {*} [options] Override http request option.
535
+ * @throws {RequiredError}
536
+ */
537
+ membersCommandsCreate(memberId, commandsCreateBody, options) {
538
+ return __awaiter(this, void 0, void 0, function* () {
539
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.membersCommandsCreate(memberId, commandsCreateBody, options);
540
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
541
+ });
542
+ },
543
+ /**
544
+ *
545
+ * @param {string} [name]
546
+ * @param {string} [orderBy]
547
+ * @param {string} [orderDirection]
548
+ * @param {number} [pageNumber]
549
+ * @param {number} [pageSize]
550
+ * @param {*} [options] Override http request option.
551
+ * @throws {RequiredError}
552
+ */
553
+ membersCommandsIndex(name, orderBy, orderDirection, pageNumber, pageSize, options) {
554
+ return __awaiter(this, void 0, void 0, function* () {
555
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.membersCommandsIndex(name, orderBy, orderDirection, pageNumber, pageSize, options);
556
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
557
+ });
558
+ },
450
559
  /**
451
560
  *
452
561
  * @param {string} identifier
@@ -592,6 +701,29 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
592
701
  integrationsFsMembersDelete(destroyFSMembers, options) {
593
702
  return localVarFp.integrationsFsMembersDelete(destroyFSMembers, options).then((request) => request(axios, basePath));
594
703
  },
704
+ /**
705
+ *
706
+ * @param {string} memberId
707
+ * @param {CommandsCreateBody} commandsCreateBody
708
+ * @param {*} [options] Override http request option.
709
+ * @throws {RequiredError}
710
+ */
711
+ membersCommandsCreate(memberId, commandsCreateBody, options) {
712
+ return localVarFp.membersCommandsCreate(memberId, commandsCreateBody, options).then((request) => request(axios, basePath));
713
+ },
714
+ /**
715
+ *
716
+ * @param {string} [name]
717
+ * @param {string} [orderBy]
718
+ * @param {string} [orderDirection]
719
+ * @param {number} [pageNumber]
720
+ * @param {number} [pageSize]
721
+ * @param {*} [options] Override http request option.
722
+ * @throws {RequiredError}
723
+ */
724
+ membersCommandsIndex(name, orderBy, orderDirection, pageNumber, pageSize, options) {
725
+ return localVarFp.membersCommandsIndex(name, orderBy, orderDirection, pageNumber, pageSize, options).then((request) => request(axios, basePath));
726
+ },
595
727
  /**
596
728
  *
597
729
  * @param {string} identifier
@@ -713,6 +845,31 @@ class DefaultApi extends base_1.BaseAPI {
713
845
  integrationsFsMembersDelete(destroyFSMembers, options) {
714
846
  return (0, exports.DefaultApiFp)(this.configuration).integrationsFsMembersDelete(destroyFSMembers, options).then((request) => request(this.axios, this.basePath));
715
847
  }
848
+ /**
849
+ *
850
+ * @param {string} memberId
851
+ * @param {CommandsCreateBody} commandsCreateBody
852
+ * @param {*} [options] Override http request option.
853
+ * @throws {RequiredError}
854
+ * @memberof DefaultApi
855
+ */
856
+ membersCommandsCreate(memberId, commandsCreateBody, options) {
857
+ return (0, exports.DefaultApiFp)(this.configuration).membersCommandsCreate(memberId, commandsCreateBody, options).then((request) => request(this.axios, this.basePath));
858
+ }
859
+ /**
860
+ *
861
+ * @param {string} [name]
862
+ * @param {string} [orderBy]
863
+ * @param {string} [orderDirection]
864
+ * @param {number} [pageNumber]
865
+ * @param {number} [pageSize]
866
+ * @param {*} [options] Override http request option.
867
+ * @throws {RequiredError}
868
+ * @memberof DefaultApi
869
+ */
870
+ membersCommandsIndex(name, orderBy, orderDirection, pageNumber, pageSize, options) {
871
+ return (0, exports.DefaultApiFp)(this.configuration).membersCommandsIndex(name, orderBy, orderDirection, pageNumber, pageSize, options).then((request) => request(this.axios, this.basePath));
872
+ }
716
873
  /**
717
874
  *
718
875
  * @param {string} identifier
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ob-bms-sdk",
3
- "version": "0.0.24",
3
+ "version": "0.0.26",
4
4
  "description": "API interfaces for OB BMS",
5
5
  "main": "./dist/index.js",
6
6
  "license": "MIT"