ob-bms-sdk 0.0.107 → 0.0.108

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
@@ -5600,6 +5600,19 @@ export interface WrappedArrayResponseParkingLogResult {
5600
5600
  */
5601
5601
  'pagination'?: Pagination;
5602
5602
  }
5603
+ /**
5604
+ *
5605
+ * @export
5606
+ * @interface WrappedArrayResponseParkingSpacesIndexResponse
5607
+ */
5608
+ export interface WrappedArrayResponseParkingSpacesIndexResponse {
5609
+ /**
5610
+ *
5611
+ * @type {Array<ParkingLotData>}
5612
+ * @memberof WrappedArrayResponseParkingSpacesIndexResponse
5613
+ */
5614
+ 'data': Array<ParkingLotData>;
5615
+ }
5603
5616
  /**
5604
5617
  *
5605
5618
  * @export
@@ -8294,6 +8307,35 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
8294
8307
 
8295
8308
 
8296
8309
 
8310
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
8311
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8312
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
8313
+
8314
+ return {
8315
+ url: toPathString(localVarUrlObj),
8316
+ options: localVarRequestOptions,
8317
+ };
8318
+ },
8319
+ /**
8320
+ *
8321
+ * @param {*} [options] Override http request option.
8322
+ * @throws {RequiredError}
8323
+ */
8324
+ parkingSpacesList: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
8325
+ const localVarPath = `/parking_spaces`;
8326
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8327
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
8328
+ let baseOptions;
8329
+ if (configuration) {
8330
+ baseOptions = configuration.baseOptions;
8331
+ }
8332
+
8333
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
8334
+ const localVarHeaderParameter = {} as any;
8335
+ const localVarQueryParameter = {} as any;
8336
+
8337
+
8338
+
8297
8339
  setSearchParams(localVarUrlObj, localVarQueryParameter);
8298
8340
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8299
8341
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -9413,6 +9455,15 @@ export const DefaultApiFp = function(configuration?: Configuration) {
9413
9455
  const localVarAxiosArgs = await localVarAxiosParamCreator.parkingRedemptionRatesIndex(id, memberTypeId, vehicleTypeId, options);
9414
9456
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
9415
9457
  },
9458
+ /**
9459
+ *
9460
+ * @param {*} [options] Override http request option.
9461
+ * @throws {RequiredError}
9462
+ */
9463
+ async parkingSpacesList(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedArrayResponseParkingSpacesIndexResponse>> {
9464
+ const localVarAxiosArgs = await localVarAxiosParamCreator.parkingSpacesList(options);
9465
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
9466
+ },
9416
9467
  /**
9417
9468
  *
9418
9469
  * @param {string} id
@@ -9974,6 +10025,14 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
9974
10025
  parkingRedemptionRatesIndex(id: string, memberTypeId: number, vehicleTypeId: number, options?: any): AxiosPromise<WrappedResponseParkingRedemptionRateResultArray> {
9975
10026
  return localVarFp.parkingRedemptionRatesIndex(id, memberTypeId, vehicleTypeId, options).then((request) => request(axios, basePath));
9976
10027
  },
10028
+ /**
10029
+ *
10030
+ * @param {*} [options] Override http request option.
10031
+ * @throws {RequiredError}
10032
+ */
10033
+ parkingSpacesList(options?: any): AxiosPromise<WrappedArrayResponseParkingSpacesIndexResponse> {
10034
+ return localVarFp.parkingSpacesList(options).then((request) => request(axios, basePath));
10035
+ },
9977
10036
  /**
9978
10037
  *
9979
10038
  * @param {string} id
@@ -10581,6 +10640,16 @@ export class DefaultApi extends BaseAPI {
10581
10640
  return DefaultApiFp(this.configuration).parkingRedemptionRatesIndex(id, memberTypeId, vehicleTypeId, options).then((request) => request(this.axios, this.basePath));
10582
10641
  }
10583
10642
 
10643
+ /**
10644
+ *
10645
+ * @param {*} [options] Override http request option.
10646
+ * @throws {RequiredError}
10647
+ * @memberof DefaultApi
10648
+ */
10649
+ public parkingSpacesList(options?: AxiosRequestConfig) {
10650
+ return DefaultApiFp(this.configuration).parkingSpacesList(options).then((request) => request(this.axios, this.basePath));
10651
+ }
10652
+
10584
10653
  /**
10585
10654
  *
10586
10655
  * @param {string} id
package/dist/api/api.d.ts CHANGED
@@ -5530,6 +5530,19 @@ export interface WrappedArrayResponseParkingLogResult {
5530
5530
  */
5531
5531
  'pagination'?: Pagination;
5532
5532
  }
5533
+ /**
5534
+ *
5535
+ * @export
5536
+ * @interface WrappedArrayResponseParkingSpacesIndexResponse
5537
+ */
5538
+ export interface WrappedArrayResponseParkingSpacesIndexResponse {
5539
+ /**
5540
+ *
5541
+ * @type {Array<ParkingLotData>}
5542
+ * @memberof WrappedArrayResponseParkingSpacesIndexResponse
5543
+ */
5544
+ 'data': Array<ParkingLotData>;
5545
+ }
5533
5546
  /**
5534
5547
  *
5535
5548
  * @export
@@ -7142,6 +7155,12 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
7142
7155
  * @throws {RequiredError}
7143
7156
  */
7144
7157
  parkingRedemptionRatesIndex: (id: string, memberTypeId: number, vehicleTypeId: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
7158
+ /**
7159
+ *
7160
+ * @param {*} [options] Override http request option.
7161
+ * @throws {RequiredError}
7162
+ */
7163
+ parkingSpacesList: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
7145
7164
  /**
7146
7165
  *
7147
7166
  * @param {string} id
@@ -7573,6 +7592,12 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
7573
7592
  * @throws {RequiredError}
7574
7593
  */
7575
7594
  parkingRedemptionRatesIndex(id: string, memberTypeId: number, vehicleTypeId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedResponseParkingRedemptionRateResultArray>>;
7595
+ /**
7596
+ *
7597
+ * @param {*} [options] Override http request option.
7598
+ * @throws {RequiredError}
7599
+ */
7600
+ parkingSpacesList(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedArrayResponseParkingSpacesIndexResponse>>;
7576
7601
  /**
7577
7602
  *
7578
7603
  * @param {string} id
@@ -8004,6 +8029,12 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
8004
8029
  * @throws {RequiredError}
8005
8030
  */
8006
8031
  parkingRedemptionRatesIndex(id: string, memberTypeId: number, vehicleTypeId: number, options?: any): AxiosPromise<WrappedResponseParkingRedemptionRateResultArray>;
8032
+ /**
8033
+ *
8034
+ * @param {*} [options] Override http request option.
8035
+ * @throws {RequiredError}
8036
+ */
8037
+ parkingSpacesList(options?: any): AxiosPromise<WrappedArrayResponseParkingSpacesIndexResponse>;
8007
8038
  /**
8008
8039
  *
8009
8040
  * @param {string} id
@@ -8470,6 +8501,13 @@ export declare class DefaultApi extends BaseAPI {
8470
8501
  * @memberof DefaultApi
8471
8502
  */
8472
8503
  parkingRedemptionRatesIndex(id: string, memberTypeId: number, vehicleTypeId: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<WrappedResponseParkingRedemptionRateResultArray, any>>;
8504
+ /**
8505
+ *
8506
+ * @param {*} [options] Override http request option.
8507
+ * @throws {RequiredError}
8508
+ * @memberof DefaultApi
8509
+ */
8510
+ parkingSpacesList(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<WrappedArrayResponseParkingSpacesIndexResponse, any>>;
8473
8511
  /**
8474
8512
  *
8475
8513
  * @param {string} id
package/dist/api/api.js CHANGED
@@ -1282,6 +1282,30 @@ const DefaultApiAxiosParamCreator = function (configuration) {
1282
1282
  options: localVarRequestOptions,
1283
1283
  };
1284
1284
  }),
1285
+ /**
1286
+ *
1287
+ * @param {*} [options] Override http request option.
1288
+ * @throws {RequiredError}
1289
+ */
1290
+ parkingSpacesList: (options = {}) => __awaiter(this, void 0, void 0, function* () {
1291
+ const localVarPath = `/parking_spaces`;
1292
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1293
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1294
+ let baseOptions;
1295
+ if (configuration) {
1296
+ baseOptions = configuration.baseOptions;
1297
+ }
1298
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1299
+ const localVarHeaderParameter = {};
1300
+ const localVarQueryParameter = {};
1301
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1302
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1303
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1304
+ return {
1305
+ url: (0, common_1.toPathString)(localVarUrlObj),
1306
+ options: localVarRequestOptions,
1307
+ };
1308
+ }),
1285
1309
  /**
1286
1310
  *
1287
1311
  * @param {string} id
@@ -2339,6 +2363,17 @@ const DefaultApiFp = function (configuration) {
2339
2363
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
2340
2364
  });
2341
2365
  },
2366
+ /**
2367
+ *
2368
+ * @param {*} [options] Override http request option.
2369
+ * @throws {RequiredError}
2370
+ */
2371
+ parkingSpacesList(options) {
2372
+ return __awaiter(this, void 0, void 0, function* () {
2373
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.parkingSpacesList(options);
2374
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
2375
+ });
2376
+ },
2342
2377
  /**
2343
2378
  *
2344
2379
  * @param {string} id
@@ -2940,6 +2975,14 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
2940
2975
  parkingRedemptionRatesIndex(id, memberTypeId, vehicleTypeId, options) {
2941
2976
  return localVarFp.parkingRedemptionRatesIndex(id, memberTypeId, vehicleTypeId, options).then((request) => request(axios, basePath));
2942
2977
  },
2978
+ /**
2979
+ *
2980
+ * @param {*} [options] Override http request option.
2981
+ * @throws {RequiredError}
2982
+ */
2983
+ parkingSpacesList(options) {
2984
+ return localVarFp.parkingSpacesList(options).then((request) => request(axios, basePath));
2985
+ },
2943
2986
  /**
2944
2987
  *
2945
2988
  * @param {string} id
@@ -3514,6 +3557,15 @@ class DefaultApi extends base_1.BaseAPI {
3514
3557
  parkingRedemptionRatesIndex(id, memberTypeId, vehicleTypeId, options) {
3515
3558
  return (0, exports.DefaultApiFp)(this.configuration).parkingRedemptionRatesIndex(id, memberTypeId, vehicleTypeId, options).then((request) => request(this.axios, this.basePath));
3516
3559
  }
3560
+ /**
3561
+ *
3562
+ * @param {*} [options] Override http request option.
3563
+ * @throws {RequiredError}
3564
+ * @memberof DefaultApi
3565
+ */
3566
+ parkingSpacesList(options) {
3567
+ return (0, exports.DefaultApiFp)(this.configuration).parkingSpacesList(options).then((request) => request(this.axios, this.basePath));
3568
+ }
3517
3569
  /**
3518
3570
  *
3519
3571
  * @param {string} id
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ob-bms-sdk",
3
- "version": "0.0.107",
3
+ "version": "0.0.108",
4
4
  "description": "API interfaces for OB BMS",
5
5
  "main": "./dist/index.js",
6
6
  "license": "MIT"