ob-bms-sdk 0.0.25 → 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
@@ -116,6 +116,18 @@ export interface CommandsIndexQuery {
116
116
  * @memberof CommandsIndexQuery
117
117
  */
118
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;
119
131
  }
120
132
  /**
121
133
  *
@@ -2282,10 +2294,12 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
2282
2294
  * @param {string} [name]
2283
2295
  * @param {string} [orderBy]
2284
2296
  * @param {string} [orderDirection]
2297
+ * @param {number} [pageNumber]
2298
+ * @param {number} [pageSize]
2285
2299
  * @param {*} [options] Override http request option.
2286
2300
  * @throws {RequiredError}
2287
2301
  */
2288
- membersCommandsIndex: async (name?: string, orderBy?: string, orderDirection?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2302
+ membersCommandsIndex: async (name?: string, orderBy?: string, orderDirection?: string, pageNumber?: number, pageSize?: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2289
2303
  const localVarPath = `/members/{member_id}/commands`;
2290
2304
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2291
2305
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -2310,6 +2324,14 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
2310
2324
  localVarQueryParameter['order_direction'] = orderDirection;
2311
2325
  }
2312
2326
 
2327
+ if (pageNumber !== undefined) {
2328
+ localVarQueryParameter['page_number'] = pageNumber;
2329
+ }
2330
+
2331
+ if (pageSize !== undefined) {
2332
+ localVarQueryParameter['page_size'] = pageSize;
2333
+ }
2334
+
2313
2335
 
2314
2336
 
2315
2337
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -2683,11 +2705,13 @@ export const DefaultApiFp = function(configuration?: Configuration) {
2683
2705
  * @param {string} [name]
2684
2706
  * @param {string} [orderBy]
2685
2707
  * @param {string} [orderDirection]
2708
+ * @param {number} [pageNumber]
2709
+ * @param {number} [pageSize]
2686
2710
  * @param {*} [options] Override http request option.
2687
2711
  * @throws {RequiredError}
2688
2712
  */
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);
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);
2691
2715
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2692
2716
  },
2693
2717
  /**
@@ -2832,11 +2856,13 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
2832
2856
  * @param {string} [name]
2833
2857
  * @param {string} [orderBy]
2834
2858
  * @param {string} [orderDirection]
2859
+ * @param {number} [pageNumber]
2860
+ * @param {number} [pageSize]
2835
2861
  * @param {*} [options] Override http request option.
2836
2862
  * @throws {RequiredError}
2837
2863
  */
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));
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));
2840
2866
  },
2841
2867
  /**
2842
2868
  *
@@ -2979,12 +3005,14 @@ export class DefaultApi extends BaseAPI {
2979
3005
  * @param {string} [name]
2980
3006
  * @param {string} [orderBy]
2981
3007
  * @param {string} [orderDirection]
3008
+ * @param {number} [pageNumber]
3009
+ * @param {number} [pageSize]
2982
3010
  * @param {*} [options] Override http request option.
2983
3011
  * @throws {RequiredError}
2984
3012
  * @memberof DefaultApi
2985
3013
  */
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));
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));
2988
3016
  }
2989
3017
 
2990
3018
  /**
package/dist/api/api.d.ts CHANGED
@@ -103,6 +103,18 @@ export interface CommandsIndexQuery {
103
103
  * @memberof CommandsIndexQuery
104
104
  */
105
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;
106
118
  }
107
119
  /**
108
120
  *
@@ -2145,10 +2157,12 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
2145
2157
  * @param {string} [name]
2146
2158
  * @param {string} [orderBy]
2147
2159
  * @param {string} [orderDirection]
2160
+ * @param {number} [pageNumber]
2161
+ * @param {number} [pageSize]
2148
2162
  * @param {*} [options] Override http request option.
2149
2163
  * @throws {RequiredError}
2150
2164
  */
2151
- membersCommandsIndex: (name?: string, orderBy?: string, orderDirection?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
2165
+ membersCommandsIndex: (name?: string, orderBy?: string, orderDirection?: string, pageNumber?: number, pageSize?: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
2152
2166
  /**
2153
2167
  *
2154
2168
  * @param {string} identifier
@@ -2252,10 +2266,12 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
2252
2266
  * @param {string} [name]
2253
2267
  * @param {string} [orderBy]
2254
2268
  * @param {string} [orderDirection]
2269
+ * @param {number} [pageNumber]
2270
+ * @param {number} [pageSize]
2255
2271
  * @param {*} [options] Override http request option.
2256
2272
  * @throws {RequiredError}
2257
2273
  */
2258
- membersCommandsIndex(name?: string, orderBy?: string, orderDirection?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedResponseCommandsIndexResponse>>;
2274
+ membersCommandsIndex(name?: string, orderBy?: string, orderDirection?: string, pageNumber?: number, pageSize?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedResponseCommandsIndexResponse>>;
2259
2275
  /**
2260
2276
  *
2261
2277
  * @param {string} identifier
@@ -2359,10 +2375,12 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
2359
2375
  * @param {string} [name]
2360
2376
  * @param {string} [orderBy]
2361
2377
  * @param {string} [orderDirection]
2378
+ * @param {number} [pageNumber]
2379
+ * @param {number} [pageSize]
2362
2380
  * @param {*} [options] Override http request option.
2363
2381
  * @throws {RequiredError}
2364
2382
  */
2365
- membersCommandsIndex(name?: string, orderBy?: string, orderDirection?: string, options?: any): AxiosPromise<WrappedResponseCommandsIndexResponse>;
2383
+ membersCommandsIndex(name?: string, orderBy?: string, orderDirection?: string, pageNumber?: number, pageSize?: number, options?: any): AxiosPromise<WrappedResponseCommandsIndexResponse>;
2366
2384
  /**
2367
2385
  *
2368
2386
  * @param {string} identifier
@@ -2472,11 +2490,13 @@ export declare class DefaultApi extends BaseAPI {
2472
2490
  * @param {string} [name]
2473
2491
  * @param {string} [orderBy]
2474
2492
  * @param {string} [orderDirection]
2493
+ * @param {number} [pageNumber]
2494
+ * @param {number} [pageSize]
2475
2495
  * @param {*} [options] Override http request option.
2476
2496
  * @throws {RequiredError}
2477
2497
  * @memberof DefaultApi
2478
2498
  */
2479
- membersCommandsIndex(name?: string, orderBy?: string, orderDirection?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<WrappedResponseCommandsIndexResponse, any>>;
2499
+ membersCommandsIndex(name?: string, orderBy?: string, orderDirection?: string, pageNumber?: number, pageSize?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<WrappedResponseCommandsIndexResponse, any>>;
2480
2500
  /**
2481
2501
  *
2482
2502
  * @param {string} identifier
package/dist/api/api.js CHANGED
@@ -185,10 +185,12 @@ const DefaultApiAxiosParamCreator = function (configuration) {
185
185
  * @param {string} [name]
186
186
  * @param {string} [orderBy]
187
187
  * @param {string} [orderDirection]
188
+ * @param {number} [pageNumber]
189
+ * @param {number} [pageSize]
188
190
  * @param {*} [options] Override http request option.
189
191
  * @throws {RequiredError}
190
192
  */
191
- membersCommandsIndex: (name, orderBy, orderDirection, options = {}) => __awaiter(this, void 0, void 0, function* () {
193
+ membersCommandsIndex: (name, orderBy, orderDirection, pageNumber, pageSize, options = {}) => __awaiter(this, void 0, void 0, function* () {
192
194
  const localVarPath = `/members/{member_id}/commands`;
193
195
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
194
196
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -208,6 +210,12 @@ const DefaultApiAxiosParamCreator = function (configuration) {
208
210
  if (orderDirection !== undefined) {
209
211
  localVarQueryParameter['order_direction'] = orderDirection;
210
212
  }
213
+ if (pageNumber !== undefined) {
214
+ localVarQueryParameter['page_number'] = pageNumber;
215
+ }
216
+ if (pageSize !== undefined) {
217
+ localVarQueryParameter['page_size'] = pageSize;
218
+ }
211
219
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
212
220
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
213
221
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -537,12 +545,14 @@ const DefaultApiFp = function (configuration) {
537
545
  * @param {string} [name]
538
546
  * @param {string} [orderBy]
539
547
  * @param {string} [orderDirection]
548
+ * @param {number} [pageNumber]
549
+ * @param {number} [pageSize]
540
550
  * @param {*} [options] Override http request option.
541
551
  * @throws {RequiredError}
542
552
  */
543
- membersCommandsIndex(name, orderBy, orderDirection, options) {
553
+ membersCommandsIndex(name, orderBy, orderDirection, pageNumber, pageSize, options) {
544
554
  return __awaiter(this, void 0, void 0, function* () {
545
- const localVarAxiosArgs = yield localVarAxiosParamCreator.membersCommandsIndex(name, orderBy, orderDirection, options);
555
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.membersCommandsIndex(name, orderBy, orderDirection, pageNumber, pageSize, options);
546
556
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
547
557
  });
548
558
  },
@@ -706,11 +716,13 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
706
716
  * @param {string} [name]
707
717
  * @param {string} [orderBy]
708
718
  * @param {string} [orderDirection]
719
+ * @param {number} [pageNumber]
720
+ * @param {number} [pageSize]
709
721
  * @param {*} [options] Override http request option.
710
722
  * @throws {RequiredError}
711
723
  */
712
- membersCommandsIndex(name, orderBy, orderDirection, options) {
713
- return localVarFp.membersCommandsIndex(name, orderBy, orderDirection, options).then((request) => request(axios, basePath));
724
+ membersCommandsIndex(name, orderBy, orderDirection, pageNumber, pageSize, options) {
725
+ return localVarFp.membersCommandsIndex(name, orderBy, orderDirection, pageNumber, pageSize, options).then((request) => request(axios, basePath));
714
726
  },
715
727
  /**
716
728
  *
@@ -849,12 +861,14 @@ class DefaultApi extends base_1.BaseAPI {
849
861
  * @param {string} [name]
850
862
  * @param {string} [orderBy]
851
863
  * @param {string} [orderDirection]
864
+ * @param {number} [pageNumber]
865
+ * @param {number} [pageSize]
852
866
  * @param {*} [options] Override http request option.
853
867
  * @throws {RequiredError}
854
868
  * @memberof DefaultApi
855
869
  */
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));
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));
858
872
  }
859
873
  /**
860
874
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ob-bms-sdk",
3
- "version": "0.0.25",
3
+ "version": "0.0.26",
4
4
  "description": "API interfaces for OB BMS",
5
5
  "main": "./dist/index.js",
6
6
  "license": "MIT"