ob-bms-sdk 0.0.24 → 0.0.25

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,100 @@ 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
+ }
26
120
  /**
27
121
  *
28
122
  * @export
@@ -383,6 +477,25 @@ export interface FloorDataPasses {
383
477
  */
384
478
  export interface JsonValue {
385
479
  }
480
+ /**
481
+ *
482
+ * @export
483
+ * @interface LiftCallCommandData
484
+ */
485
+ export interface LiftCallCommandData {
486
+ /**
487
+ *
488
+ * @type {string}
489
+ * @memberof LiftCallCommandData
490
+ */
491
+ 'destination_floor_id': string;
492
+ /**
493
+ *
494
+ * @type {string}
495
+ * @memberof LiftCallCommandData
496
+ */
497
+ 'location_id': string;
498
+ }
386
499
  /**
387
500
  *
388
501
  * @export
@@ -1499,6 +1612,82 @@ export interface WebhookCreateBody {
1499
1612
  */
1500
1613
  'uid': string;
1501
1614
  }
1615
+ /**
1616
+ *
1617
+ * @export
1618
+ * @interface WrappedResponseCommandsCreateResponse
1619
+ */
1620
+ export interface WrappedResponseCommandsCreateResponse {
1621
+ /**
1622
+ *
1623
+ * @type {WrappedResponseCommandsCreateResponseData}
1624
+ * @memberof WrappedResponseCommandsCreateResponse
1625
+ */
1626
+ 'data': WrappedResponseCommandsCreateResponseData | null;
1627
+ }
1628
+ /**
1629
+ *
1630
+ * @export
1631
+ * @interface WrappedResponseCommandsCreateResponseData
1632
+ */
1633
+ export interface WrappedResponseCommandsCreateResponseData {
1634
+ /**
1635
+ *
1636
+ * @type {string}
1637
+ * @memberof WrappedResponseCommandsCreateResponseData
1638
+ */
1639
+ 'id'?: string;
1640
+ /**
1641
+ *
1642
+ * @type {string}
1643
+ * @memberof WrappedResponseCommandsCreateResponseData
1644
+ */
1645
+ 'name'?: string;
1646
+ /**
1647
+ *
1648
+ * @type {PrismaJsonValue}
1649
+ * @memberof WrappedResponseCommandsCreateResponseData
1650
+ */
1651
+ 'data'?: PrismaJsonValue | null;
1652
+ /**
1653
+ *
1654
+ * @type {string}
1655
+ * @memberof WrappedResponseCommandsCreateResponseData
1656
+ */
1657
+ 'created_at'?: string;
1658
+ /**
1659
+ *
1660
+ * @type {string}
1661
+ * @memberof WrappedResponseCommandsCreateResponseData
1662
+ */
1663
+ 'updated_at'?: string;
1664
+ /**
1665
+ *
1666
+ * @type {string}
1667
+ * @memberof WrappedResponseCommandsCreateResponseData
1668
+ */
1669
+ 'member_id'?: string;
1670
+ }
1671
+ /**
1672
+ *
1673
+ * @export
1674
+ * @interface WrappedResponseCommandsIndexResponse
1675
+ */
1676
+ export interface WrappedResponseCommandsIndexResponse {
1677
+ /**
1678
+ *
1679
+ * @type {WrappedResponseCommandsIndexResponseData}
1680
+ * @memberof WrappedResponseCommandsIndexResponse
1681
+ */
1682
+ 'data': WrappedResponseCommandsIndexResponseData | null;
1683
+ }
1684
+ /**
1685
+ *
1686
+ * @export
1687
+ * @interface WrappedResponseCommandsIndexResponseData
1688
+ */
1689
+ export interface WrappedResponseCommandsIndexResponseData {
1690
+ }
1502
1691
  /**
1503
1692
  *
1504
1693
  * @export
@@ -2049,6 +2238,89 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
2049
2238
  options: localVarRequestOptions,
2050
2239
  };
2051
2240
  },
2241
+ /**
2242
+ *
2243
+ * @param {string} memberId
2244
+ * @param {CommandsCreateBody} commandsCreateBody
2245
+ * @param {*} [options] Override http request option.
2246
+ * @throws {RequiredError}
2247
+ */
2248
+ membersCommandsCreate: async (memberId: string, commandsCreateBody: CommandsCreateBody, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2249
+ // verify required parameter 'memberId' is not null or undefined
2250
+ assertParamExists('membersCommandsCreate', 'memberId', memberId)
2251
+ // verify required parameter 'commandsCreateBody' is not null or undefined
2252
+ assertParamExists('membersCommandsCreate', 'commandsCreateBody', commandsCreateBody)
2253
+ const localVarPath = `/members/{member_id}/commands`
2254
+ .replace(`{${"member_id"}}`, encodeURIComponent(String(memberId)));
2255
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2256
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2257
+ let baseOptions;
2258
+ if (configuration) {
2259
+ baseOptions = configuration.baseOptions;
2260
+ }
2261
+
2262
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
2263
+ const localVarHeaderParameter = {} as any;
2264
+ const localVarQueryParameter = {} as any;
2265
+
2266
+
2267
+
2268
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2269
+
2270
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2271
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2272
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2273
+ localVarRequestOptions.data = serializeDataIfNeeded(commandsCreateBody, localVarRequestOptions, configuration)
2274
+
2275
+ return {
2276
+ url: toPathString(localVarUrlObj),
2277
+ options: localVarRequestOptions,
2278
+ };
2279
+ },
2280
+ /**
2281
+ *
2282
+ * @param {string} [name]
2283
+ * @param {string} [orderBy]
2284
+ * @param {string} [orderDirection]
2285
+ * @param {*} [options] Override http request option.
2286
+ * @throws {RequiredError}
2287
+ */
2288
+ membersCommandsIndex: async (name?: string, orderBy?: string, orderDirection?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2289
+ const localVarPath = `/members/{member_id}/commands`;
2290
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2291
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2292
+ let baseOptions;
2293
+ if (configuration) {
2294
+ baseOptions = configuration.baseOptions;
2295
+ }
2296
+
2297
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
2298
+ const localVarHeaderParameter = {} as any;
2299
+ const localVarQueryParameter = {} as any;
2300
+
2301
+ if (name !== undefined) {
2302
+ localVarQueryParameter['name'] = name;
2303
+ }
2304
+
2305
+ if (orderBy !== undefined) {
2306
+ localVarQueryParameter['order_by'] = orderBy;
2307
+ }
2308
+
2309
+ if (orderDirection !== undefined) {
2310
+ localVarQueryParameter['order_direction'] = orderDirection;
2311
+ }
2312
+
2313
+
2314
+
2315
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2316
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2317
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2318
+
2319
+ return {
2320
+ url: toPathString(localVarUrlObj),
2321
+ options: localVarRequestOptions,
2322
+ };
2323
+ },
2052
2324
  /**
2053
2325
  *
2054
2326
  * @param {string} identifier
@@ -2395,6 +2667,29 @@ export const DefaultApiFp = function(configuration?: Configuration) {
2395
2667
  const localVarAxiosArgs = await localVarAxiosParamCreator.integrationsFsMembersDelete(destroyFSMembers, options);
2396
2668
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2397
2669
  },
2670
+ /**
2671
+ *
2672
+ * @param {string} memberId
2673
+ * @param {CommandsCreateBody} commandsCreateBody
2674
+ * @param {*} [options] Override http request option.
2675
+ * @throws {RequiredError}
2676
+ */
2677
+ async membersCommandsCreate(memberId: string, commandsCreateBody: CommandsCreateBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedResponseCommandsCreateResponse>> {
2678
+ const localVarAxiosArgs = await localVarAxiosParamCreator.membersCommandsCreate(memberId, commandsCreateBody, options);
2679
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2680
+ },
2681
+ /**
2682
+ *
2683
+ * @param {string} [name]
2684
+ * @param {string} [orderBy]
2685
+ * @param {string} [orderDirection]
2686
+ * @param {*} [options] Override http request option.
2687
+ * @throws {RequiredError}
2688
+ */
2689
+ async membersCommandsIndex(name?: string, orderBy?: string, orderDirection?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedResponseCommandsIndexResponse>> {
2690
+ const localVarAxiosArgs = await localVarAxiosParamCreator.membersCommandsIndex(name, orderBy, orderDirection, options);
2691
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2692
+ },
2398
2693
  /**
2399
2694
  *
2400
2695
  * @param {string} identifier
@@ -2522,6 +2817,27 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
2522
2817
  integrationsFsMembersDelete(destroyFSMembers: DestroyFSMembers, options?: any): AxiosPromise<DestroyMembersResponse> {
2523
2818
  return localVarFp.integrationsFsMembersDelete(destroyFSMembers, options).then((request) => request(axios, basePath));
2524
2819
  },
2820
+ /**
2821
+ *
2822
+ * @param {string} memberId
2823
+ * @param {CommandsCreateBody} commandsCreateBody
2824
+ * @param {*} [options] Override http request option.
2825
+ * @throws {RequiredError}
2826
+ */
2827
+ membersCommandsCreate(memberId: string, commandsCreateBody: CommandsCreateBody, options?: any): AxiosPromise<WrappedResponseCommandsCreateResponse> {
2828
+ return localVarFp.membersCommandsCreate(memberId, commandsCreateBody, options).then((request) => request(axios, basePath));
2829
+ },
2830
+ /**
2831
+ *
2832
+ * @param {string} [name]
2833
+ * @param {string} [orderBy]
2834
+ * @param {string} [orderDirection]
2835
+ * @param {*} [options] Override http request option.
2836
+ * @throws {RequiredError}
2837
+ */
2838
+ membersCommandsIndex(name?: string, orderBy?: string, orderDirection?: string, options?: any): AxiosPromise<WrappedResponseCommandsIndexResponse> {
2839
+ return localVarFp.membersCommandsIndex(name, orderBy, orderDirection, options).then((request) => request(axios, basePath));
2840
+ },
2525
2841
  /**
2526
2842
  *
2527
2843
  * @param {string} identifier
@@ -2646,6 +2962,31 @@ export class DefaultApi extends BaseAPI {
2646
2962
  return DefaultApiFp(this.configuration).integrationsFsMembersDelete(destroyFSMembers, options).then((request) => request(this.axios, this.basePath));
2647
2963
  }
2648
2964
 
2965
+ /**
2966
+ *
2967
+ * @param {string} memberId
2968
+ * @param {CommandsCreateBody} commandsCreateBody
2969
+ * @param {*} [options] Override http request option.
2970
+ * @throws {RequiredError}
2971
+ * @memberof DefaultApi
2972
+ */
2973
+ public membersCommandsCreate(memberId: string, commandsCreateBody: CommandsCreateBody, options?: AxiosRequestConfig) {
2974
+ return DefaultApiFp(this.configuration).membersCommandsCreate(memberId, commandsCreateBody, options).then((request) => request(this.axios, this.basePath));
2975
+ }
2976
+
2977
+ /**
2978
+ *
2979
+ * @param {string} [name]
2980
+ * @param {string} [orderBy]
2981
+ * @param {string} [orderDirection]
2982
+ * @param {*} [options] Override http request option.
2983
+ * @throws {RequiredError}
2984
+ * @memberof DefaultApi
2985
+ */
2986
+ public membersCommandsIndex(name?: string, orderBy?: string, orderDirection?: string, options?: AxiosRequestConfig) {
2987
+ return DefaultApiFp(this.configuration).membersCommandsIndex(name, orderBy, orderDirection, options).then((request) => request(this.axios, this.basePath));
2988
+ }
2989
+
2649
2990
  /**
2650
2991
  *
2651
2992
  * @param {string} identifier
package/dist/api/api.d.ts CHANGED
@@ -13,6 +13,97 @@ 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
+ }
16
107
  /**
17
108
  *
18
109
  * @export
@@ -381,6 +472,25 @@ export interface FloorDataPasses {
381
472
  */
382
473
  export interface JsonValue {
383
474
  }
475
+ /**
476
+ *
477
+ * @export
478
+ * @interface LiftCallCommandData
479
+ */
480
+ export interface LiftCallCommandData {
481
+ /**
482
+ *
483
+ * @type {string}
484
+ * @memberof LiftCallCommandData
485
+ */
486
+ 'destination_floor_id': string;
487
+ /**
488
+ *
489
+ * @type {string}
490
+ * @memberof LiftCallCommandData
491
+ */
492
+ 'location_id': string;
493
+ }
384
494
  /**
385
495
  *
386
496
  * @export
@@ -1488,6 +1598,82 @@ export interface WebhookCreateBody {
1488
1598
  */
1489
1599
  'uid': string;
1490
1600
  }
1601
+ /**
1602
+ *
1603
+ * @export
1604
+ * @interface WrappedResponseCommandsCreateResponse
1605
+ */
1606
+ export interface WrappedResponseCommandsCreateResponse {
1607
+ /**
1608
+ *
1609
+ * @type {WrappedResponseCommandsCreateResponseData}
1610
+ * @memberof WrappedResponseCommandsCreateResponse
1611
+ */
1612
+ 'data': WrappedResponseCommandsCreateResponseData | null;
1613
+ }
1614
+ /**
1615
+ *
1616
+ * @export
1617
+ * @interface WrappedResponseCommandsCreateResponseData
1618
+ */
1619
+ export interface WrappedResponseCommandsCreateResponseData {
1620
+ /**
1621
+ *
1622
+ * @type {string}
1623
+ * @memberof WrappedResponseCommandsCreateResponseData
1624
+ */
1625
+ 'id'?: string;
1626
+ /**
1627
+ *
1628
+ * @type {string}
1629
+ * @memberof WrappedResponseCommandsCreateResponseData
1630
+ */
1631
+ 'name'?: string;
1632
+ /**
1633
+ *
1634
+ * @type {PrismaJsonValue}
1635
+ * @memberof WrappedResponseCommandsCreateResponseData
1636
+ */
1637
+ 'data'?: PrismaJsonValue | null;
1638
+ /**
1639
+ *
1640
+ * @type {string}
1641
+ * @memberof WrappedResponseCommandsCreateResponseData
1642
+ */
1643
+ 'created_at'?: string;
1644
+ /**
1645
+ *
1646
+ * @type {string}
1647
+ * @memberof WrappedResponseCommandsCreateResponseData
1648
+ */
1649
+ 'updated_at'?: string;
1650
+ /**
1651
+ *
1652
+ * @type {string}
1653
+ * @memberof WrappedResponseCommandsCreateResponseData
1654
+ */
1655
+ 'member_id'?: string;
1656
+ }
1657
+ /**
1658
+ *
1659
+ * @export
1660
+ * @interface WrappedResponseCommandsIndexResponse
1661
+ */
1662
+ export interface WrappedResponseCommandsIndexResponse {
1663
+ /**
1664
+ *
1665
+ * @type {WrappedResponseCommandsIndexResponseData}
1666
+ * @memberof WrappedResponseCommandsIndexResponse
1667
+ */
1668
+ 'data': WrappedResponseCommandsIndexResponseData | null;
1669
+ }
1670
+ /**
1671
+ *
1672
+ * @export
1673
+ * @interface WrappedResponseCommandsIndexResponseData
1674
+ */
1675
+ export interface WrappedResponseCommandsIndexResponseData {
1676
+ }
1491
1677
  /**
1492
1678
  *
1493
1679
  * @export
@@ -1946,6 +2132,23 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
1946
2132
  * @throws {RequiredError}
1947
2133
  */
1948
2134
  integrationsFsMembersDelete: (destroyFSMembers: DestroyFSMembers, options?: AxiosRequestConfig) => Promise<RequestArgs>;
2135
+ /**
2136
+ *
2137
+ * @param {string} memberId
2138
+ * @param {CommandsCreateBody} commandsCreateBody
2139
+ * @param {*} [options] Override http request option.
2140
+ * @throws {RequiredError}
2141
+ */
2142
+ membersCommandsCreate: (memberId: string, commandsCreateBody: CommandsCreateBody, options?: AxiosRequestConfig) => Promise<RequestArgs>;
2143
+ /**
2144
+ *
2145
+ * @param {string} [name]
2146
+ * @param {string} [orderBy]
2147
+ * @param {string} [orderDirection]
2148
+ * @param {*} [options] Override http request option.
2149
+ * @throws {RequiredError}
2150
+ */
2151
+ membersCommandsIndex: (name?: string, orderBy?: string, orderDirection?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
1949
2152
  /**
1950
2153
  *
1951
2154
  * @param {string} identifier
@@ -2036,6 +2239,23 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
2036
2239
  * @throws {RequiredError}
2037
2240
  */
2038
2241
  integrationsFsMembersDelete(destroyFSMembers: DestroyFSMembers, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DestroyMembersResponse>>;
2242
+ /**
2243
+ *
2244
+ * @param {string} memberId
2245
+ * @param {CommandsCreateBody} commandsCreateBody
2246
+ * @param {*} [options] Override http request option.
2247
+ * @throws {RequiredError}
2248
+ */
2249
+ membersCommandsCreate(memberId: string, commandsCreateBody: CommandsCreateBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedResponseCommandsCreateResponse>>;
2250
+ /**
2251
+ *
2252
+ * @param {string} [name]
2253
+ * @param {string} [orderBy]
2254
+ * @param {string} [orderDirection]
2255
+ * @param {*} [options] Override http request option.
2256
+ * @throws {RequiredError}
2257
+ */
2258
+ membersCommandsIndex(name?: string, orderBy?: string, orderDirection?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedResponseCommandsIndexResponse>>;
2039
2259
  /**
2040
2260
  *
2041
2261
  * @param {string} identifier
@@ -2126,6 +2346,23 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
2126
2346
  * @throws {RequiredError}
2127
2347
  */
2128
2348
  integrationsFsMembersDelete(destroyFSMembers: DestroyFSMembers, options?: any): AxiosPromise<DestroyMembersResponse>;
2349
+ /**
2350
+ *
2351
+ * @param {string} memberId
2352
+ * @param {CommandsCreateBody} commandsCreateBody
2353
+ * @param {*} [options] Override http request option.
2354
+ * @throws {RequiredError}
2355
+ */
2356
+ membersCommandsCreate(memberId: string, commandsCreateBody: CommandsCreateBody, options?: any): AxiosPromise<WrappedResponseCommandsCreateResponse>;
2357
+ /**
2358
+ *
2359
+ * @param {string} [name]
2360
+ * @param {string} [orderBy]
2361
+ * @param {string} [orderDirection]
2362
+ * @param {*} [options] Override http request option.
2363
+ * @throws {RequiredError}
2364
+ */
2365
+ membersCommandsIndex(name?: string, orderBy?: string, orderDirection?: string, options?: any): AxiosPromise<WrappedResponseCommandsIndexResponse>;
2129
2366
  /**
2130
2367
  *
2131
2368
  * @param {string} identifier
@@ -2221,6 +2458,25 @@ export declare class DefaultApi extends BaseAPI {
2221
2458
  * @memberof DefaultApi
2222
2459
  */
2223
2460
  integrationsFsMembersDelete(destroyFSMembers: DestroyFSMembers, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DestroyMembersResponse, any>>;
2461
+ /**
2462
+ *
2463
+ * @param {string} memberId
2464
+ * @param {CommandsCreateBody} commandsCreateBody
2465
+ * @param {*} [options] Override http request option.
2466
+ * @throws {RequiredError}
2467
+ * @memberof DefaultApi
2468
+ */
2469
+ membersCommandsCreate(memberId: string, commandsCreateBody: CommandsCreateBody, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<WrappedResponseCommandsCreateResponse, any>>;
2470
+ /**
2471
+ *
2472
+ * @param {string} [name]
2473
+ * @param {string} [orderBy]
2474
+ * @param {string} [orderDirection]
2475
+ * @param {*} [options] Override http request option.
2476
+ * @throws {RequiredError}
2477
+ * @memberof DefaultApi
2478
+ */
2479
+ membersCommandsIndex(name?: string, orderBy?: string, orderDirection?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<WrappedResponseCommandsIndexResponse, any>>;
2224
2480
  /**
2225
2481
  *
2226
2482
  * @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,75 @@ 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 {*} [options] Override http request option.
189
+ * @throws {RequiredError}
190
+ */
191
+ membersCommandsIndex: (name, orderBy, orderDirection, options = {}) => __awaiter(this, void 0, void 0, function* () {
192
+ const localVarPath = `/members/{member_id}/commands`;
193
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
194
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
195
+ let baseOptions;
196
+ if (configuration) {
197
+ baseOptions = configuration.baseOptions;
198
+ }
199
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
200
+ const localVarHeaderParameter = {};
201
+ const localVarQueryParameter = {};
202
+ if (name !== undefined) {
203
+ localVarQueryParameter['name'] = name;
204
+ }
205
+ if (orderBy !== undefined) {
206
+ localVarQueryParameter['order_by'] = orderBy;
207
+ }
208
+ if (orderDirection !== undefined) {
209
+ localVarQueryParameter['order_direction'] = orderDirection;
210
+ }
211
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
212
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
213
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
214
+ return {
215
+ url: (0, common_1.toPathString)(localVarUrlObj),
216
+ options: localVarRequestOptions,
217
+ };
218
+ }),
147
219
  /**
148
220
  *
149
221
  * @param {string} identifier
@@ -447,6 +519,33 @@ const DefaultApiFp = function (configuration) {
447
519
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
448
520
  });
449
521
  },
522
+ /**
523
+ *
524
+ * @param {string} memberId
525
+ * @param {CommandsCreateBody} commandsCreateBody
526
+ * @param {*} [options] Override http request option.
527
+ * @throws {RequiredError}
528
+ */
529
+ membersCommandsCreate(memberId, commandsCreateBody, options) {
530
+ return __awaiter(this, void 0, void 0, function* () {
531
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.membersCommandsCreate(memberId, commandsCreateBody, options);
532
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
533
+ });
534
+ },
535
+ /**
536
+ *
537
+ * @param {string} [name]
538
+ * @param {string} [orderBy]
539
+ * @param {string} [orderDirection]
540
+ * @param {*} [options] Override http request option.
541
+ * @throws {RequiredError}
542
+ */
543
+ membersCommandsIndex(name, orderBy, orderDirection, options) {
544
+ return __awaiter(this, void 0, void 0, function* () {
545
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.membersCommandsIndex(name, orderBy, orderDirection, options);
546
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
547
+ });
548
+ },
450
549
  /**
451
550
  *
452
551
  * @param {string} identifier
@@ -592,6 +691,27 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
592
691
  integrationsFsMembersDelete(destroyFSMembers, options) {
593
692
  return localVarFp.integrationsFsMembersDelete(destroyFSMembers, options).then((request) => request(axios, basePath));
594
693
  },
694
+ /**
695
+ *
696
+ * @param {string} memberId
697
+ * @param {CommandsCreateBody} commandsCreateBody
698
+ * @param {*} [options] Override http request option.
699
+ * @throws {RequiredError}
700
+ */
701
+ membersCommandsCreate(memberId, commandsCreateBody, options) {
702
+ return localVarFp.membersCommandsCreate(memberId, commandsCreateBody, options).then((request) => request(axios, basePath));
703
+ },
704
+ /**
705
+ *
706
+ * @param {string} [name]
707
+ * @param {string} [orderBy]
708
+ * @param {string} [orderDirection]
709
+ * @param {*} [options] Override http request option.
710
+ * @throws {RequiredError}
711
+ */
712
+ membersCommandsIndex(name, orderBy, orderDirection, options) {
713
+ return localVarFp.membersCommandsIndex(name, orderBy, orderDirection, options).then((request) => request(axios, basePath));
714
+ },
595
715
  /**
596
716
  *
597
717
  * @param {string} identifier
@@ -713,6 +833,29 @@ class DefaultApi extends base_1.BaseAPI {
713
833
  integrationsFsMembersDelete(destroyFSMembers, options) {
714
834
  return (0, exports.DefaultApiFp)(this.configuration).integrationsFsMembersDelete(destroyFSMembers, options).then((request) => request(this.axios, this.basePath));
715
835
  }
836
+ /**
837
+ *
838
+ * @param {string} memberId
839
+ * @param {CommandsCreateBody} commandsCreateBody
840
+ * @param {*} [options] Override http request option.
841
+ * @throws {RequiredError}
842
+ * @memberof DefaultApi
843
+ */
844
+ membersCommandsCreate(memberId, commandsCreateBody, options) {
845
+ return (0, exports.DefaultApiFp)(this.configuration).membersCommandsCreate(memberId, commandsCreateBody, options).then((request) => request(this.axios, this.basePath));
846
+ }
847
+ /**
848
+ *
849
+ * @param {string} [name]
850
+ * @param {string} [orderBy]
851
+ * @param {string} [orderDirection]
852
+ * @param {*} [options] Override http request option.
853
+ * @throws {RequiredError}
854
+ * @memberof DefaultApi
855
+ */
856
+ membersCommandsIndex(name, orderBy, orderDirection, options) {
857
+ return (0, exports.DefaultApiFp)(this.configuration).membersCommandsIndex(name, orderBy, orderDirection, options).then((request) => request(this.axios, this.basePath));
858
+ }
716
859
  /**
717
860
  *
718
861
  * @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.25",
4
4
  "description": "API interfaces for OB BMS",
5
5
  "main": "./dist/index.js",
6
6
  "license": "MIT"