ob-bms-sdk 0.0.101 → 0.0.103

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
@@ -2797,6 +2797,60 @@ export interface ParkingSpaceDetailAndSpaceDetail {
2797
2797
  * @memberof ParkingSpaceDetailAndSpaceDetail
2798
2798
  */
2799
2799
  'ibeaconIpcMinor': string;
2800
+ /**
2801
+ *
2802
+ * @type {number}
2803
+ * @memberof ParkingSpaceDetailAndSpaceDetail
2804
+ */
2805
+ 'vehicle_type_id': number;
2806
+ /**
2807
+ *
2808
+ * @type {number}
2809
+ * @memberof ParkingSpaceDetailAndSpaceDetail
2810
+ */
2811
+ 'member_type_id': number;
2812
+ /**
2813
+ *
2814
+ * @type {RateDetail}
2815
+ * @memberof ParkingSpaceDetailAndSpaceDetail
2816
+ */
2817
+ 'rate_detail': RateDetail;
2818
+ /**
2819
+ *
2820
+ * @type {string}
2821
+ * @memberof ParkingSpaceDetailAndSpaceDetail
2822
+ */
2823
+ 'parked_at': string;
2824
+ /**
2825
+ *
2826
+ * @type {number}
2827
+ * @memberof ParkingSpaceDetailAndSpaceDetail
2828
+ */
2829
+ 'total_fee': number;
2830
+ /**
2831
+ *
2832
+ * @type {string}
2833
+ * @memberof ParkingSpaceDetailAndSpaceDetail
2834
+ */
2835
+ 'vehicle_type': string;
2836
+ /**
2837
+ *
2838
+ * @type {string}
2839
+ * @memberof ParkingSpaceDetailAndSpaceDetail
2840
+ */
2841
+ 'ticket_number': string;
2842
+ /**
2843
+ *
2844
+ * @type {string}
2845
+ * @memberof ParkingSpaceDetailAndSpaceDetail
2846
+ */
2847
+ 'plate_number': string;
2848
+ /**
2849
+ *
2850
+ * @type {string}
2851
+ * @memberof ParkingSpaceDetailAndSpaceDetail
2852
+ */
2853
+ 'id': string;
2800
2854
  /**
2801
2855
  *
2802
2856
  * @type {string}
@@ -2840,19 +2894,6 @@ export interface ParkingSpaceDetailAndSpaceDetail {
2840
2894
  */
2841
2895
  'poleColorCode'?: string;
2842
2896
  }
2843
- /**
2844
- *
2845
- * @export
2846
- * @interface ParkingSpaceDetailBody
2847
- */
2848
- export interface ParkingSpaceDetailBody {
2849
- /**
2850
- *
2851
- * @type {string}
2852
- * @memberof ParkingSpaceDetailBody
2853
- */
2854
- 'plate_number': string;
2855
- }
2856
2897
  /**
2857
2898
  *
2858
2899
  * @export
@@ -3430,6 +3471,19 @@ export interface SensorIndicatorData {
3430
3471
  */
3431
3472
  'floors': Array<FloorSensorData>;
3432
3473
  }
3474
+ /**
3475
+ *
3476
+ * @export
3477
+ * @interface SensorTrafficData
3478
+ */
3479
+ export interface SensorTrafficData {
3480
+ /**
3481
+ *
3482
+ * @type {string}
3483
+ * @memberof SensorTrafficData
3484
+ */
3485
+ 'direction': string;
3486
+ }
3433
3487
  /**
3434
3488
  *
3435
3489
  * @export
@@ -4393,6 +4447,122 @@ export interface TowerDataPasses {
4393
4447
  */
4394
4448
  'updated_at': string;
4395
4449
  }
4450
+ /**
4451
+ *
4452
+ * @export
4453
+ * @interface TrafficRecordData
4454
+ */
4455
+ export interface TrafficRecordData {
4456
+ /**
4457
+ *
4458
+ * @type {TrafficRecordDataMeta}
4459
+ * @memberof TrafficRecordData
4460
+ */
4461
+ 'meta': TrafficRecordDataMeta;
4462
+ /**
4463
+ *
4464
+ * @type {SensorTrafficData}
4465
+ * @memberof TrafficRecordData
4466
+ */
4467
+ 'data': SensorTrafficData;
4468
+ /**
4469
+ *
4470
+ * @type {string}
4471
+ * @memberof TrafficRecordData
4472
+ */
4473
+ 'type': string;
4474
+ /**
4475
+ *
4476
+ * @type {string}
4477
+ * @memberof TrafficRecordData
4478
+ */
4479
+ 'name': string;
4480
+ /**
4481
+ *
4482
+ * @type {string}
4483
+ * @memberof TrafficRecordData
4484
+ */
4485
+ 'uid': string;
4486
+ }
4487
+ /**
4488
+ *
4489
+ * @export
4490
+ * @interface TrafficRecordDataMeta
4491
+ */
4492
+ export interface TrafficRecordDataMeta {
4493
+ /**
4494
+ *
4495
+ * @type {number}
4496
+ * @memberof TrafficRecordDataMeta
4497
+ */
4498
+ 'vehicleSpeed': number;
4499
+ /**
4500
+ *
4501
+ * @type {string}
4502
+ * @memberof TrafficRecordDataMeta
4503
+ */
4504
+ 'time': string;
4505
+ /**
4506
+ *
4507
+ * @type {number}
4508
+ * @memberof TrafficRecordDataMeta
4509
+ */
4510
+ 'queueLen': number;
4511
+ /**
4512
+ *
4513
+ * @type {number}
4514
+ * @memberof TrafficRecordDataMeta
4515
+ */
4516
+ 'laneState': number;
4517
+ /**
4518
+ *
4519
+ * @type {number}
4520
+ * @memberof TrafficRecordDataMeta
4521
+ */
4522
+ 'laneNo': number;
4523
+ /**
4524
+ *
4525
+ * @type {number}
4526
+ * @memberof TrafficRecordDataMeta
4527
+ */
4528
+ 'jamLevel': number;
4529
+ /**
4530
+ *
4531
+ * @type {number}
4532
+ * @memberof TrafficRecordDataMeta
4533
+ */
4534
+ 'jamFlow': number;
4535
+ /**
4536
+ *
4537
+ * @type {number}
4538
+ * @memberof TrafficRecordDataMeta
4539
+ */
4540
+ 'upwardFlow': number;
4541
+ /**
4542
+ *
4543
+ * @type {number}
4544
+ * @memberof TrafficRecordDataMeta
4545
+ */
4546
+ 'downwardFlow': number;
4547
+ /**
4548
+ *
4549
+ * @type {string}
4550
+ * @memberof TrafficRecordDataMeta
4551
+ */
4552
+ 'monitoringPointName': string;
4553
+ /**
4554
+ *
4555
+ * @type {string}
4556
+ * @memberof TrafficRecordDataMeta
4557
+ */
4558
+ 'monitoringPointSyscode': string;
4559
+ /**
4560
+ *
4561
+ * @type {string}
4562
+ * @memberof TrafficRecordDataMeta
4563
+ */
4564
+ 'eventId': string;
4565
+ }
4396
4566
  /**
4397
4567
  *
4398
4568
  * @export
@@ -5937,6 +6107,60 @@ export interface WrappedResponseParkingSpaceDetailAndSpaceDetailData {
5937
6107
  * @memberof WrappedResponseParkingSpaceDetailAndSpaceDetailData
5938
6108
  */
5939
6109
  'ibeaconIpcMinor': string;
6110
+ /**
6111
+ *
6112
+ * @type {number}
6113
+ * @memberof WrappedResponseParkingSpaceDetailAndSpaceDetailData
6114
+ */
6115
+ 'vehicle_type_id': number;
6116
+ /**
6117
+ *
6118
+ * @type {number}
6119
+ * @memberof WrappedResponseParkingSpaceDetailAndSpaceDetailData
6120
+ */
6121
+ 'member_type_id': number;
6122
+ /**
6123
+ *
6124
+ * @type {RateDetail}
6125
+ * @memberof WrappedResponseParkingSpaceDetailAndSpaceDetailData
6126
+ */
6127
+ 'rate_detail': RateDetail;
6128
+ /**
6129
+ *
6130
+ * @type {string}
6131
+ * @memberof WrappedResponseParkingSpaceDetailAndSpaceDetailData
6132
+ */
6133
+ 'parked_at': string;
6134
+ /**
6135
+ *
6136
+ * @type {number}
6137
+ * @memberof WrappedResponseParkingSpaceDetailAndSpaceDetailData
6138
+ */
6139
+ 'total_fee': number;
6140
+ /**
6141
+ *
6142
+ * @type {string}
6143
+ * @memberof WrappedResponseParkingSpaceDetailAndSpaceDetailData
6144
+ */
6145
+ 'vehicle_type': string;
6146
+ /**
6147
+ *
6148
+ * @type {string}
6149
+ * @memberof WrappedResponseParkingSpaceDetailAndSpaceDetailData
6150
+ */
6151
+ 'ticket_number': string;
6152
+ /**
6153
+ *
6154
+ * @type {string}
6155
+ * @memberof WrappedResponseParkingSpaceDetailAndSpaceDetailData
6156
+ */
6157
+ 'plate_number': string;
6158
+ /**
6159
+ *
6160
+ * @type {string}
6161
+ * @memberof WrappedResponseParkingSpaceDetailAndSpaceDetailData
6162
+ */
6163
+ 'id': string;
5940
6164
  /**
5941
6165
  *
5942
6166
  * @type {string}
@@ -6321,6 +6545,26 @@ export interface WrappedResponseTowerIndexResponse {
6321
6545
  */
6322
6546
  export interface WrappedResponseTowerIndexResponseData {
6323
6547
  }
6548
+ /**
6549
+ *
6550
+ * @export
6551
+ * @interface WrappedResponseTrafficRecordsIndexResponseData
6552
+ */
6553
+ export interface WrappedResponseTrafficRecordsIndexResponseData {
6554
+ /**
6555
+ *
6556
+ * @type {WrappedResponseTrafficRecordsIndexResponseDataData}
6557
+ * @memberof WrappedResponseTrafficRecordsIndexResponseData
6558
+ */
6559
+ 'data': WrappedResponseTrafficRecordsIndexResponseDataData | null;
6560
+ }
6561
+ /**
6562
+ *
6563
+ * @export
6564
+ * @interface WrappedResponseTrafficRecordsIndexResponseDataData
6565
+ */
6566
+ export interface WrappedResponseTrafficRecordsIndexResponseDataData {
6567
+ }
6324
6568
  /**
6325
6569
  *
6326
6570
  * @export
@@ -8030,17 +8274,15 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
8030
8274
  },
8031
8275
  /**
8032
8276
  *
8033
- * @param {ParkingTicketsIndexTypeEnum} type
8034
8277
  * @param {string} id
8035
8278
  * @param {*} [options] Override http request option.
8036
8279
  * @throws {RequiredError}
8037
8280
  */
8038
- parkingTicketsIndex: async (type: ParkingTicketsIndexTypeEnum, id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
8039
- // verify required parameter 'type' is not null or undefined
8040
- assertParamExists('parkingTicketsIndex', 'type', type)
8281
+ parkingTicketsAllDetails: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
8041
8282
  // verify required parameter 'id' is not null or undefined
8042
- assertParamExists('parkingTicketsIndex', 'id', id)
8043
- const localVarPath = `/parking_tickets`;
8283
+ assertParamExists('parkingTicketsAllDetails', 'id', id)
8284
+ const localVarPath = `/parking_tickets/all_details/{id}`
8285
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
8044
8286
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
8045
8287
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
8046
8288
  let baseOptions;
@@ -8052,14 +8294,6 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
8052
8294
  const localVarHeaderParameter = {} as any;
8053
8295
  const localVarQueryParameter = {} as any;
8054
8296
 
8055
- if (type !== undefined) {
8056
- localVarQueryParameter['type'] = type;
8057
- }
8058
-
8059
- if (id !== undefined) {
8060
- localVarQueryParameter['id'] = id;
8061
- }
8062
-
8063
8297
 
8064
8298
 
8065
8299
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -8073,14 +8307,17 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
8073
8307
  },
8074
8308
  /**
8075
8309
  *
8076
- * @param {ParkingSpaceDetailBody} parkingSpaceDetailBody
8310
+ * @param {ParkingTicketsIndexTypeEnum} type
8311
+ * @param {string} id
8077
8312
  * @param {*} [options] Override http request option.
8078
8313
  * @throws {RequiredError}
8079
8314
  */
8080
- parkingTicketsLocation: async (parkingSpaceDetailBody: ParkingSpaceDetailBody, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
8081
- // verify required parameter 'parkingSpaceDetailBody' is not null or undefined
8082
- assertParamExists('parkingTicketsLocation', 'parkingSpaceDetailBody', parkingSpaceDetailBody)
8083
- const localVarPath = `/parking_tickets/location`;
8315
+ parkingTicketsIndex: async (type: ParkingTicketsIndexTypeEnum, id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
8316
+ // verify required parameter 'type' is not null or undefined
8317
+ assertParamExists('parkingTicketsIndex', 'type', type)
8318
+ // verify required parameter 'id' is not null or undefined
8319
+ assertParamExists('parkingTicketsIndex', 'id', id)
8320
+ const localVarPath = `/parking_tickets`;
8084
8321
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
8085
8322
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
8086
8323
  let baseOptions;
@@ -8088,18 +8325,23 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
8088
8325
  baseOptions = configuration.baseOptions;
8089
8326
  }
8090
8327
 
8091
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
8328
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
8092
8329
  const localVarHeaderParameter = {} as any;
8093
8330
  const localVarQueryParameter = {} as any;
8094
8331
 
8332
+ if (type !== undefined) {
8333
+ localVarQueryParameter['type'] = type;
8334
+ }
8335
+
8336
+ if (id !== undefined) {
8337
+ localVarQueryParameter['id'] = id;
8338
+ }
8095
8339
 
8096
-
8097
- localVarHeaderParameter['Content-Type'] = 'application/json';
8098
8340
 
8341
+
8099
8342
  setSearchParams(localVarUrlObj, localVarQueryParameter);
8100
8343
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8101
8344
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
8102
- localVarRequestOptions.data = serializeDataIfNeeded(parkingSpaceDetailBody, localVarRequestOptions, configuration)
8103
8345
 
8104
8346
  return {
8105
8347
  url: toPathString(localVarUrlObj),
@@ -8542,6 +8784,35 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
8542
8784
 
8543
8785
 
8544
8786
 
8787
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
8788
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8789
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
8790
+
8791
+ return {
8792
+ url: toPathString(localVarUrlObj),
8793
+ options: localVarRequestOptions,
8794
+ };
8795
+ },
8796
+ /**
8797
+ *
8798
+ * @param {*} [options] Override http request option.
8799
+ * @throws {RequiredError}
8800
+ */
8801
+ trafficRecordsIndex: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
8802
+ const localVarPath = `/traffic_records`;
8803
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8804
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
8805
+ let baseOptions;
8806
+ if (configuration) {
8807
+ baseOptions = configuration.baseOptions;
8808
+ }
8809
+
8810
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
8811
+ const localVarHeaderParameter = {} as any;
8812
+ const localVarQueryParameter = {} as any;
8813
+
8814
+
8815
+
8545
8816
  setSearchParams(localVarUrlObj, localVarQueryParameter);
8546
8817
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8547
8818
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -9113,23 +9384,23 @@ export const DefaultApiFp = function(configuration?: Configuration) {
9113
9384
  },
9114
9385
  /**
9115
9386
  *
9116
- * @param {ParkingTicketsIndexTypeEnum} type
9117
9387
  * @param {string} id
9118
9388
  * @param {*} [options] Override http request option.
9119
9389
  * @throws {RequiredError}
9120
9390
  */
9121
- async parkingTicketsIndex(type: ParkingTicketsIndexTypeEnum, id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedResponseParkingTicketDataArray>> {
9122
- const localVarAxiosArgs = await localVarAxiosParamCreator.parkingTicketsIndex(type, id, options);
9391
+ async parkingTicketsAllDetails(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedResponseParkingSpaceDetailAndSpaceDetail>> {
9392
+ const localVarAxiosArgs = await localVarAxiosParamCreator.parkingTicketsAllDetails(id, options);
9123
9393
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
9124
9394
  },
9125
9395
  /**
9126
9396
  *
9127
- * @param {ParkingSpaceDetailBody} parkingSpaceDetailBody
9397
+ * @param {ParkingTicketsIndexTypeEnum} type
9398
+ * @param {string} id
9128
9399
  * @param {*} [options] Override http request option.
9129
9400
  * @throws {RequiredError}
9130
9401
  */
9131
- async parkingTicketsLocation(parkingSpaceDetailBody: ParkingSpaceDetailBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedResponseParkingSpaceDetailAndSpaceDetail>> {
9132
- const localVarAxiosArgs = await localVarAxiosParamCreator.parkingTicketsLocation(parkingSpaceDetailBody, options);
9402
+ async parkingTicketsIndex(type: ParkingTicketsIndexTypeEnum, id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedResponseParkingTicketDataArray>> {
9403
+ const localVarAxiosArgs = await localVarAxiosParamCreator.parkingTicketsIndex(type, id, options);
9133
9404
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
9134
9405
  },
9135
9406
  /**
@@ -9259,6 +9530,15 @@ export const DefaultApiFp = function(configuration?: Configuration) {
9259
9530
  const localVarAxiosArgs = await localVarAxiosParamCreator.towersIndex(options);
9260
9531
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
9261
9532
  },
9533
+ /**
9534
+ *
9535
+ * @param {*} [options] Override http request option.
9536
+ * @throws {RequiredError}
9537
+ */
9538
+ async trafficRecordsIndex(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedResponseTrafficRecordsIndexResponseData>> {
9539
+ const localVarAxiosArgs = await localVarAxiosParamCreator.trafficRecordsIndex(options);
9540
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
9541
+ },
9262
9542
  /**
9263
9543
  *
9264
9544
  * @param {string} id
@@ -9665,22 +9945,22 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
9665
9945
  },
9666
9946
  /**
9667
9947
  *
9668
- * @param {ParkingTicketsIndexTypeEnum} type
9669
9948
  * @param {string} id
9670
9949
  * @param {*} [options] Override http request option.
9671
9950
  * @throws {RequiredError}
9672
9951
  */
9673
- parkingTicketsIndex(type: ParkingTicketsIndexTypeEnum, id: string, options?: any): AxiosPromise<WrappedResponseParkingTicketDataArray> {
9674
- return localVarFp.parkingTicketsIndex(type, id, options).then((request) => request(axios, basePath));
9952
+ parkingTicketsAllDetails(id: string, options?: any): AxiosPromise<WrappedResponseParkingSpaceDetailAndSpaceDetail> {
9953
+ return localVarFp.parkingTicketsAllDetails(id, options).then((request) => request(axios, basePath));
9675
9954
  },
9676
9955
  /**
9677
9956
  *
9678
- * @param {ParkingSpaceDetailBody} parkingSpaceDetailBody
9957
+ * @param {ParkingTicketsIndexTypeEnum} type
9958
+ * @param {string} id
9679
9959
  * @param {*} [options] Override http request option.
9680
9960
  * @throws {RequiredError}
9681
9961
  */
9682
- parkingTicketsLocation(parkingSpaceDetailBody: ParkingSpaceDetailBody, options?: any): AxiosPromise<WrappedResponseParkingSpaceDetailAndSpaceDetail> {
9683
- return localVarFp.parkingTicketsLocation(parkingSpaceDetailBody, options).then((request) => request(axios, basePath));
9962
+ parkingTicketsIndex(type: ParkingTicketsIndexTypeEnum, id: string, options?: any): AxiosPromise<WrappedResponseParkingTicketDataArray> {
9963
+ return localVarFp.parkingTicketsIndex(type, id, options).then((request) => request(axios, basePath));
9684
9964
  },
9685
9965
  /**
9686
9966
  *
@@ -9797,6 +10077,14 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
9797
10077
  towersIndex(options?: any): AxiosPromise<WrappedResponseTowerIndexResponse> {
9798
10078
  return localVarFp.towersIndex(options).then((request) => request(axios, basePath));
9799
10079
  },
10080
+ /**
10081
+ *
10082
+ * @param {*} [options] Override http request option.
10083
+ * @throws {RequiredError}
10084
+ */
10085
+ trafficRecordsIndex(options?: any): AxiosPromise<WrappedResponseTrafficRecordsIndexResponseData> {
10086
+ return localVarFp.trafficRecordsIndex(options).then((request) => request(axios, basePath));
10087
+ },
9800
10088
  /**
9801
10089
  *
9802
10090
  * @param {string} id
@@ -10264,25 +10552,25 @@ export class DefaultApi extends BaseAPI {
10264
10552
 
10265
10553
  /**
10266
10554
  *
10267
- * @param {ParkingTicketsIndexTypeEnum} type
10268
10555
  * @param {string} id
10269
10556
  * @param {*} [options] Override http request option.
10270
10557
  * @throws {RequiredError}
10271
10558
  * @memberof DefaultApi
10272
10559
  */
10273
- public parkingTicketsIndex(type: ParkingTicketsIndexTypeEnum, id: string, options?: AxiosRequestConfig) {
10274
- return DefaultApiFp(this.configuration).parkingTicketsIndex(type, id, options).then((request) => request(this.axios, this.basePath));
10560
+ public parkingTicketsAllDetails(id: string, options?: AxiosRequestConfig) {
10561
+ return DefaultApiFp(this.configuration).parkingTicketsAllDetails(id, options).then((request) => request(this.axios, this.basePath));
10275
10562
  }
10276
10563
 
10277
10564
  /**
10278
10565
  *
10279
- * @param {ParkingSpaceDetailBody} parkingSpaceDetailBody
10566
+ * @param {ParkingTicketsIndexTypeEnum} type
10567
+ * @param {string} id
10280
10568
  * @param {*} [options] Override http request option.
10281
10569
  * @throws {RequiredError}
10282
10570
  * @memberof DefaultApi
10283
10571
  */
10284
- public parkingTicketsLocation(parkingSpaceDetailBody: ParkingSpaceDetailBody, options?: AxiosRequestConfig) {
10285
- return DefaultApiFp(this.configuration).parkingTicketsLocation(parkingSpaceDetailBody, options).then((request) => request(this.axios, this.basePath));
10572
+ public parkingTicketsIndex(type: ParkingTicketsIndexTypeEnum, id: string, options?: AxiosRequestConfig) {
10573
+ return DefaultApiFp(this.configuration).parkingTicketsIndex(type, id, options).then((request) => request(this.axios, this.basePath));
10286
10574
  }
10287
10575
 
10288
10576
  /**
@@ -10424,6 +10712,16 @@ export class DefaultApi extends BaseAPI {
10424
10712
  return DefaultApiFp(this.configuration).towersIndex(options).then((request) => request(this.axios, this.basePath));
10425
10713
  }
10426
10714
 
10715
+ /**
10716
+ *
10717
+ * @param {*} [options] Override http request option.
10718
+ * @throws {RequiredError}
10719
+ * @memberof DefaultApi
10720
+ */
10721
+ public trafficRecordsIndex(options?: AxiosRequestConfig) {
10722
+ return DefaultApiFp(this.configuration).trafficRecordsIndex(options).then((request) => request(this.axios, this.basePath));
10723
+ }
10724
+
10427
10725
  /**
10428
10726
  *
10429
10727
  * @param {string} id
package/dist/api/api.d.ts CHANGED
@@ -2769,6 +2769,60 @@ export interface ParkingSpaceDetailAndSpaceDetail {
2769
2769
  * @memberof ParkingSpaceDetailAndSpaceDetail
2770
2770
  */
2771
2771
  'ibeaconIpcMinor': string;
2772
+ /**
2773
+ *
2774
+ * @type {number}
2775
+ * @memberof ParkingSpaceDetailAndSpaceDetail
2776
+ */
2777
+ 'vehicle_type_id': number;
2778
+ /**
2779
+ *
2780
+ * @type {number}
2781
+ * @memberof ParkingSpaceDetailAndSpaceDetail
2782
+ */
2783
+ 'member_type_id': number;
2784
+ /**
2785
+ *
2786
+ * @type {RateDetail}
2787
+ * @memberof ParkingSpaceDetailAndSpaceDetail
2788
+ */
2789
+ 'rate_detail': RateDetail;
2790
+ /**
2791
+ *
2792
+ * @type {string}
2793
+ * @memberof ParkingSpaceDetailAndSpaceDetail
2794
+ */
2795
+ 'parked_at': string;
2796
+ /**
2797
+ *
2798
+ * @type {number}
2799
+ * @memberof ParkingSpaceDetailAndSpaceDetail
2800
+ */
2801
+ 'total_fee': number;
2802
+ /**
2803
+ *
2804
+ * @type {string}
2805
+ * @memberof ParkingSpaceDetailAndSpaceDetail
2806
+ */
2807
+ 'vehicle_type': string;
2808
+ /**
2809
+ *
2810
+ * @type {string}
2811
+ * @memberof ParkingSpaceDetailAndSpaceDetail
2812
+ */
2813
+ 'ticket_number': string;
2814
+ /**
2815
+ *
2816
+ * @type {string}
2817
+ * @memberof ParkingSpaceDetailAndSpaceDetail
2818
+ */
2819
+ 'plate_number': string;
2820
+ /**
2821
+ *
2822
+ * @type {string}
2823
+ * @memberof ParkingSpaceDetailAndSpaceDetail
2824
+ */
2825
+ 'id': string;
2772
2826
  /**
2773
2827
  *
2774
2828
  * @type {string}
@@ -2812,19 +2866,6 @@ export interface ParkingSpaceDetailAndSpaceDetail {
2812
2866
  */
2813
2867
  'poleColorCode'?: string;
2814
2868
  }
2815
- /**
2816
- *
2817
- * @export
2818
- * @interface ParkingSpaceDetailBody
2819
- */
2820
- export interface ParkingSpaceDetailBody {
2821
- /**
2822
- *
2823
- * @type {string}
2824
- * @memberof ParkingSpaceDetailBody
2825
- */
2826
- 'plate_number': string;
2827
- }
2828
2869
  /**
2829
2870
  *
2830
2871
  * @export
@@ -3387,6 +3428,19 @@ export interface SensorIndicatorData {
3387
3428
  */
3388
3429
  'floors': Array<FloorSensorData>;
3389
3430
  }
3431
+ /**
3432
+ *
3433
+ * @export
3434
+ * @interface SensorTrafficData
3435
+ */
3436
+ export interface SensorTrafficData {
3437
+ /**
3438
+ *
3439
+ * @type {string}
3440
+ * @memberof SensorTrafficData
3441
+ */
3442
+ 'direction': string;
3443
+ }
3390
3444
  /**
3391
3445
  *
3392
3446
  * @export
@@ -4323,6 +4377,122 @@ export interface TowerDataPasses {
4323
4377
  */
4324
4378
  'updated_at': string;
4325
4379
  }
4380
+ /**
4381
+ *
4382
+ * @export
4383
+ * @interface TrafficRecordData
4384
+ */
4385
+ export interface TrafficRecordData {
4386
+ /**
4387
+ *
4388
+ * @type {TrafficRecordDataMeta}
4389
+ * @memberof TrafficRecordData
4390
+ */
4391
+ 'meta': TrafficRecordDataMeta;
4392
+ /**
4393
+ *
4394
+ * @type {SensorTrafficData}
4395
+ * @memberof TrafficRecordData
4396
+ */
4397
+ 'data': SensorTrafficData;
4398
+ /**
4399
+ *
4400
+ * @type {string}
4401
+ * @memberof TrafficRecordData
4402
+ */
4403
+ 'type': string;
4404
+ /**
4405
+ *
4406
+ * @type {string}
4407
+ * @memberof TrafficRecordData
4408
+ */
4409
+ 'name': string;
4410
+ /**
4411
+ *
4412
+ * @type {string}
4413
+ * @memberof TrafficRecordData
4414
+ */
4415
+ 'uid': string;
4416
+ }
4417
+ /**
4418
+ *
4419
+ * @export
4420
+ * @interface TrafficRecordDataMeta
4421
+ */
4422
+ export interface TrafficRecordDataMeta {
4423
+ /**
4424
+ *
4425
+ * @type {number}
4426
+ * @memberof TrafficRecordDataMeta
4427
+ */
4428
+ 'vehicleSpeed': number;
4429
+ /**
4430
+ *
4431
+ * @type {string}
4432
+ * @memberof TrafficRecordDataMeta
4433
+ */
4434
+ 'time': string;
4435
+ /**
4436
+ *
4437
+ * @type {number}
4438
+ * @memberof TrafficRecordDataMeta
4439
+ */
4440
+ 'queueLen': number;
4441
+ /**
4442
+ *
4443
+ * @type {number}
4444
+ * @memberof TrafficRecordDataMeta
4445
+ */
4446
+ 'laneState': number;
4447
+ /**
4448
+ *
4449
+ * @type {number}
4450
+ * @memberof TrafficRecordDataMeta
4451
+ */
4452
+ 'laneNo': number;
4453
+ /**
4454
+ *
4455
+ * @type {number}
4456
+ * @memberof TrafficRecordDataMeta
4457
+ */
4458
+ 'jamLevel': number;
4459
+ /**
4460
+ *
4461
+ * @type {number}
4462
+ * @memberof TrafficRecordDataMeta
4463
+ */
4464
+ 'jamFlow': number;
4465
+ /**
4466
+ *
4467
+ * @type {number}
4468
+ * @memberof TrafficRecordDataMeta
4469
+ */
4470
+ 'upwardFlow': number;
4471
+ /**
4472
+ *
4473
+ * @type {number}
4474
+ * @memberof TrafficRecordDataMeta
4475
+ */
4476
+ 'downwardFlow': number;
4477
+ /**
4478
+ *
4479
+ * @type {string}
4480
+ * @memberof TrafficRecordDataMeta
4481
+ */
4482
+ 'monitoringPointName': string;
4483
+ /**
4484
+ *
4485
+ * @type {string}
4486
+ * @memberof TrafficRecordDataMeta
4487
+ */
4488
+ 'monitoringPointSyscode': string;
4489
+ /**
4490
+ *
4491
+ * @type {string}
4492
+ * @memberof TrafficRecordDataMeta
4493
+ */
4494
+ 'eventId': string;
4495
+ }
4326
4496
  /**
4327
4497
  *
4328
4498
  * @export
@@ -5864,6 +6034,60 @@ export interface WrappedResponseParkingSpaceDetailAndSpaceDetailData {
5864
6034
  * @memberof WrappedResponseParkingSpaceDetailAndSpaceDetailData
5865
6035
  */
5866
6036
  'ibeaconIpcMinor': string;
6037
+ /**
6038
+ *
6039
+ * @type {number}
6040
+ * @memberof WrappedResponseParkingSpaceDetailAndSpaceDetailData
6041
+ */
6042
+ 'vehicle_type_id': number;
6043
+ /**
6044
+ *
6045
+ * @type {number}
6046
+ * @memberof WrappedResponseParkingSpaceDetailAndSpaceDetailData
6047
+ */
6048
+ 'member_type_id': number;
6049
+ /**
6050
+ *
6051
+ * @type {RateDetail}
6052
+ * @memberof WrappedResponseParkingSpaceDetailAndSpaceDetailData
6053
+ */
6054
+ 'rate_detail': RateDetail;
6055
+ /**
6056
+ *
6057
+ * @type {string}
6058
+ * @memberof WrappedResponseParkingSpaceDetailAndSpaceDetailData
6059
+ */
6060
+ 'parked_at': string;
6061
+ /**
6062
+ *
6063
+ * @type {number}
6064
+ * @memberof WrappedResponseParkingSpaceDetailAndSpaceDetailData
6065
+ */
6066
+ 'total_fee': number;
6067
+ /**
6068
+ *
6069
+ * @type {string}
6070
+ * @memberof WrappedResponseParkingSpaceDetailAndSpaceDetailData
6071
+ */
6072
+ 'vehicle_type': string;
6073
+ /**
6074
+ *
6075
+ * @type {string}
6076
+ * @memberof WrappedResponseParkingSpaceDetailAndSpaceDetailData
6077
+ */
6078
+ 'ticket_number': string;
6079
+ /**
6080
+ *
6081
+ * @type {string}
6082
+ * @memberof WrappedResponseParkingSpaceDetailAndSpaceDetailData
6083
+ */
6084
+ 'plate_number': string;
6085
+ /**
6086
+ *
6087
+ * @type {string}
6088
+ * @memberof WrappedResponseParkingSpaceDetailAndSpaceDetailData
6089
+ */
6090
+ 'id': string;
5867
6091
  /**
5868
6092
  *
5869
6093
  * @type {string}
@@ -6245,6 +6469,26 @@ export interface WrappedResponseTowerIndexResponse {
6245
6469
  */
6246
6470
  export interface WrappedResponseTowerIndexResponseData {
6247
6471
  }
6472
+ /**
6473
+ *
6474
+ * @export
6475
+ * @interface WrappedResponseTrafficRecordsIndexResponseData
6476
+ */
6477
+ export interface WrappedResponseTrafficRecordsIndexResponseData {
6478
+ /**
6479
+ *
6480
+ * @type {WrappedResponseTrafficRecordsIndexResponseDataData}
6481
+ * @memberof WrappedResponseTrafficRecordsIndexResponseData
6482
+ */
6483
+ 'data': WrappedResponseTrafficRecordsIndexResponseDataData | null;
6484
+ }
6485
+ /**
6486
+ *
6487
+ * @export
6488
+ * @interface WrappedResponseTrafficRecordsIndexResponseDataData
6489
+ */
6490
+ export interface WrappedResponseTrafficRecordsIndexResponseDataData {
6491
+ }
6248
6492
  /**
6249
6493
  *
6250
6494
  * @export
@@ -6869,19 +7113,19 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
6869
7113
  parkingRedemptionRatesIndex: (id: string, memberTypeId: number, vehicleTypeId: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
6870
7114
  /**
6871
7115
  *
6872
- * @param {ParkingTicketsIndexTypeEnum} type
6873
7116
  * @param {string} id
6874
7117
  * @param {*} [options] Override http request option.
6875
7118
  * @throws {RequiredError}
6876
7119
  */
6877
- parkingTicketsIndex: (type: ParkingTicketsIndexTypeEnum, id: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
7120
+ parkingTicketsAllDetails: (id: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
6878
7121
  /**
6879
7122
  *
6880
- * @param {ParkingSpaceDetailBody} parkingSpaceDetailBody
7123
+ * @param {ParkingTicketsIndexTypeEnum} type
7124
+ * @param {string} id
6881
7125
  * @param {*} [options] Override http request option.
6882
7126
  * @throws {RequiredError}
6883
7127
  */
6884
- parkingTicketsLocation: (parkingSpaceDetailBody: ParkingSpaceDetailBody, options?: AxiosRequestConfig) => Promise<RequestArgs>;
7128
+ parkingTicketsIndex: (type: ParkingTicketsIndexTypeEnum, id: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
6885
7129
  /**
6886
7130
  *
6887
7131
  * @param {string} logId
@@ -6973,6 +7217,12 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
6973
7217
  * @throws {RequiredError}
6974
7218
  */
6975
7219
  towersIndex: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
7220
+ /**
7221
+ *
7222
+ * @param {*} [options] Override http request option.
7223
+ * @throws {RequiredError}
7224
+ */
7225
+ trafficRecordsIndex: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
6976
7226
  /**
6977
7227
  *
6978
7228
  * @param {string} id
@@ -7294,19 +7544,19 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
7294
7544
  parkingRedemptionRatesIndex(id: string, memberTypeId: number, vehicleTypeId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedResponseParkingRedemptionRateResultArray>>;
7295
7545
  /**
7296
7546
  *
7297
- * @param {ParkingTicketsIndexTypeEnum} type
7298
7547
  * @param {string} id
7299
7548
  * @param {*} [options] Override http request option.
7300
7549
  * @throws {RequiredError}
7301
7550
  */
7302
- parkingTicketsIndex(type: ParkingTicketsIndexTypeEnum, id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedResponseParkingTicketDataArray>>;
7551
+ parkingTicketsAllDetails(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedResponseParkingSpaceDetailAndSpaceDetail>>;
7303
7552
  /**
7304
7553
  *
7305
- * @param {ParkingSpaceDetailBody} parkingSpaceDetailBody
7554
+ * @param {ParkingTicketsIndexTypeEnum} type
7555
+ * @param {string} id
7306
7556
  * @param {*} [options] Override http request option.
7307
7557
  * @throws {RequiredError}
7308
7558
  */
7309
- parkingTicketsLocation(parkingSpaceDetailBody: ParkingSpaceDetailBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedResponseParkingSpaceDetailAndSpaceDetail>>;
7559
+ parkingTicketsIndex(type: ParkingTicketsIndexTypeEnum, id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedResponseParkingTicketDataArray>>;
7310
7560
  /**
7311
7561
  *
7312
7562
  * @param {string} logId
@@ -7398,6 +7648,12 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
7398
7648
  * @throws {RequiredError}
7399
7649
  */
7400
7650
  towersIndex(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedResponseTowerIndexResponse>>;
7651
+ /**
7652
+ *
7653
+ * @param {*} [options] Override http request option.
7654
+ * @throws {RequiredError}
7655
+ */
7656
+ trafficRecordsIndex(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedResponseTrafficRecordsIndexResponseData>>;
7401
7657
  /**
7402
7658
  *
7403
7659
  * @param {string} id
@@ -7719,19 +7975,19 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
7719
7975
  parkingRedemptionRatesIndex(id: string, memberTypeId: number, vehicleTypeId: number, options?: any): AxiosPromise<WrappedResponseParkingRedemptionRateResultArray>;
7720
7976
  /**
7721
7977
  *
7722
- * @param {ParkingTicketsIndexTypeEnum} type
7723
7978
  * @param {string} id
7724
7979
  * @param {*} [options] Override http request option.
7725
7980
  * @throws {RequiredError}
7726
7981
  */
7727
- parkingTicketsIndex(type: ParkingTicketsIndexTypeEnum, id: string, options?: any): AxiosPromise<WrappedResponseParkingTicketDataArray>;
7982
+ parkingTicketsAllDetails(id: string, options?: any): AxiosPromise<WrappedResponseParkingSpaceDetailAndSpaceDetail>;
7728
7983
  /**
7729
7984
  *
7730
- * @param {ParkingSpaceDetailBody} parkingSpaceDetailBody
7985
+ * @param {ParkingTicketsIndexTypeEnum} type
7986
+ * @param {string} id
7731
7987
  * @param {*} [options] Override http request option.
7732
7988
  * @throws {RequiredError}
7733
7989
  */
7734
- parkingTicketsLocation(parkingSpaceDetailBody: ParkingSpaceDetailBody, options?: any): AxiosPromise<WrappedResponseParkingSpaceDetailAndSpaceDetail>;
7990
+ parkingTicketsIndex(type: ParkingTicketsIndexTypeEnum, id: string, options?: any): AxiosPromise<WrappedResponseParkingTicketDataArray>;
7735
7991
  /**
7736
7992
  *
7737
7993
  * @param {string} logId
@@ -7823,6 +8079,12 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
7823
8079
  * @throws {RequiredError}
7824
8080
  */
7825
8081
  towersIndex(options?: any): AxiosPromise<WrappedResponseTowerIndexResponse>;
8082
+ /**
8083
+ *
8084
+ * @param {*} [options] Override http request option.
8085
+ * @throws {RequiredError}
8086
+ */
8087
+ trafficRecordsIndex(options?: any): AxiosPromise<WrappedResponseTrafficRecordsIndexResponseData>;
7826
8088
  /**
7827
8089
  *
7828
8090
  * @param {string} id
@@ -8179,21 +8441,21 @@ export declare class DefaultApi extends BaseAPI {
8179
8441
  parkingRedemptionRatesIndex(id: string, memberTypeId: number, vehicleTypeId: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<WrappedResponseParkingRedemptionRateResultArray, any>>;
8180
8442
  /**
8181
8443
  *
8182
- * @param {ParkingTicketsIndexTypeEnum} type
8183
8444
  * @param {string} id
8184
8445
  * @param {*} [options] Override http request option.
8185
8446
  * @throws {RequiredError}
8186
8447
  * @memberof DefaultApi
8187
8448
  */
8188
- parkingTicketsIndex(type: ParkingTicketsIndexTypeEnum, id: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<WrappedResponseParkingTicketDataArray, any>>;
8449
+ parkingTicketsAllDetails(id: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<WrappedResponseParkingSpaceDetailAndSpaceDetail, any>>;
8189
8450
  /**
8190
8451
  *
8191
- * @param {ParkingSpaceDetailBody} parkingSpaceDetailBody
8452
+ * @param {ParkingTicketsIndexTypeEnum} type
8453
+ * @param {string} id
8192
8454
  * @param {*} [options] Override http request option.
8193
8455
  * @throws {RequiredError}
8194
8456
  * @memberof DefaultApi
8195
8457
  */
8196
- parkingTicketsLocation(parkingSpaceDetailBody: ParkingSpaceDetailBody, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<WrappedResponseParkingSpaceDetailAndSpaceDetail, any>>;
8458
+ parkingTicketsIndex(type: ParkingTicketsIndexTypeEnum, id: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<WrappedResponseParkingTicketDataArray, any>>;
8197
8459
  /**
8198
8460
  *
8199
8461
  * @param {string} logId
@@ -8297,6 +8559,13 @@ export declare class DefaultApi extends BaseAPI {
8297
8559
  * @memberof DefaultApi
8298
8560
  */
8299
8561
  towersIndex(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<WrappedResponseTowerIndexResponse, any>>;
8562
+ /**
8563
+ *
8564
+ * @param {*} [options] Override http request option.
8565
+ * @throws {RequiredError}
8566
+ * @memberof DefaultApi
8567
+ */
8568
+ trafficRecordsIndex(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<WrappedResponseTrafficRecordsIndexResponseData, any>>;
8300
8569
  /**
8301
8570
  *
8302
8571
  * @param {string} id
package/dist/api/api.js CHANGED
@@ -1284,17 +1284,15 @@ const DefaultApiAxiosParamCreator = function (configuration) {
1284
1284
  }),
1285
1285
  /**
1286
1286
  *
1287
- * @param {ParkingTicketsIndexTypeEnum} type
1288
1287
  * @param {string} id
1289
1288
  * @param {*} [options] Override http request option.
1290
1289
  * @throws {RequiredError}
1291
1290
  */
1292
- parkingTicketsIndex: (type, id, options = {}) => __awaiter(this, void 0, void 0, function* () {
1293
- // verify required parameter 'type' is not null or undefined
1294
- (0, common_1.assertParamExists)('parkingTicketsIndex', 'type', type);
1291
+ parkingTicketsAllDetails: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
1295
1292
  // verify required parameter 'id' is not null or undefined
1296
- (0, common_1.assertParamExists)('parkingTicketsIndex', 'id', id);
1297
- const localVarPath = `/parking_tickets`;
1293
+ (0, common_1.assertParamExists)('parkingTicketsAllDetails', 'id', id);
1294
+ const localVarPath = `/parking_tickets/all_details/{id}`
1295
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
1298
1296
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1299
1297
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1300
1298
  let baseOptions;
@@ -1304,12 +1302,6 @@ const DefaultApiAxiosParamCreator = function (configuration) {
1304
1302
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1305
1303
  const localVarHeaderParameter = {};
1306
1304
  const localVarQueryParameter = {};
1307
- if (type !== undefined) {
1308
- localVarQueryParameter['type'] = type;
1309
- }
1310
- if (id !== undefined) {
1311
- localVarQueryParameter['id'] = id;
1312
- }
1313
1305
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1314
1306
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1315
1307
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -1320,28 +1312,35 @@ const DefaultApiAxiosParamCreator = function (configuration) {
1320
1312
  }),
1321
1313
  /**
1322
1314
  *
1323
- * @param {ParkingSpaceDetailBody} parkingSpaceDetailBody
1315
+ * @param {ParkingTicketsIndexTypeEnum} type
1316
+ * @param {string} id
1324
1317
  * @param {*} [options] Override http request option.
1325
1318
  * @throws {RequiredError}
1326
1319
  */
1327
- parkingTicketsLocation: (parkingSpaceDetailBody, options = {}) => __awaiter(this, void 0, void 0, function* () {
1328
- // verify required parameter 'parkingSpaceDetailBody' is not null or undefined
1329
- (0, common_1.assertParamExists)('parkingTicketsLocation', 'parkingSpaceDetailBody', parkingSpaceDetailBody);
1330
- const localVarPath = `/parking_tickets/location`;
1320
+ parkingTicketsIndex: (type, id, options = {}) => __awaiter(this, void 0, void 0, function* () {
1321
+ // verify required parameter 'type' is not null or undefined
1322
+ (0, common_1.assertParamExists)('parkingTicketsIndex', 'type', type);
1323
+ // verify required parameter 'id' is not null or undefined
1324
+ (0, common_1.assertParamExists)('parkingTicketsIndex', 'id', id);
1325
+ const localVarPath = `/parking_tickets`;
1331
1326
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1332
1327
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1333
1328
  let baseOptions;
1334
1329
  if (configuration) {
1335
1330
  baseOptions = configuration.baseOptions;
1336
1331
  }
1337
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1332
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1338
1333
  const localVarHeaderParameter = {};
1339
1334
  const localVarQueryParameter = {};
1340
- localVarHeaderParameter['Content-Type'] = 'application/json';
1335
+ if (type !== undefined) {
1336
+ localVarQueryParameter['type'] = type;
1337
+ }
1338
+ if (id !== undefined) {
1339
+ localVarQueryParameter['id'] = id;
1340
+ }
1341
1341
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1342
1342
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1343
1343
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1344
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(parkingSpaceDetailBody, localVarRequestOptions, configuration);
1345
1344
  return {
1346
1345
  url: (0, common_1.toPathString)(localVarUrlObj),
1347
1346
  options: localVarRequestOptions,
@@ -1718,6 +1717,30 @@ const DefaultApiAxiosParamCreator = function (configuration) {
1718
1717
  options: localVarRequestOptions,
1719
1718
  };
1720
1719
  }),
1720
+ /**
1721
+ *
1722
+ * @param {*} [options] Override http request option.
1723
+ * @throws {RequiredError}
1724
+ */
1725
+ trafficRecordsIndex: (options = {}) => __awaiter(this, void 0, void 0, function* () {
1726
+ const localVarPath = `/traffic_records`;
1727
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1728
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1729
+ let baseOptions;
1730
+ if (configuration) {
1731
+ baseOptions = configuration.baseOptions;
1732
+ }
1733
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1734
+ const localVarHeaderParameter = {};
1735
+ const localVarQueryParameter = {};
1736
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1737
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1738
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1739
+ return {
1740
+ url: (0, common_1.toPathString)(localVarUrlObj),
1741
+ options: localVarRequestOptions,
1742
+ };
1743
+ }),
1721
1744
  /**
1722
1745
  *
1723
1746
  * @param {string} id
@@ -2318,26 +2341,26 @@ const DefaultApiFp = function (configuration) {
2318
2341
  },
2319
2342
  /**
2320
2343
  *
2321
- * @param {ParkingTicketsIndexTypeEnum} type
2322
2344
  * @param {string} id
2323
2345
  * @param {*} [options] Override http request option.
2324
2346
  * @throws {RequiredError}
2325
2347
  */
2326
- parkingTicketsIndex(type, id, options) {
2348
+ parkingTicketsAllDetails(id, options) {
2327
2349
  return __awaiter(this, void 0, void 0, function* () {
2328
- const localVarAxiosArgs = yield localVarAxiosParamCreator.parkingTicketsIndex(type, id, options);
2350
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.parkingTicketsAllDetails(id, options);
2329
2351
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
2330
2352
  });
2331
2353
  },
2332
2354
  /**
2333
2355
  *
2334
- * @param {ParkingSpaceDetailBody} parkingSpaceDetailBody
2356
+ * @param {ParkingTicketsIndexTypeEnum} type
2357
+ * @param {string} id
2335
2358
  * @param {*} [options] Override http request option.
2336
2359
  * @throws {RequiredError}
2337
2360
  */
2338
- parkingTicketsLocation(parkingSpaceDetailBody, options) {
2361
+ parkingTicketsIndex(type, id, options) {
2339
2362
  return __awaiter(this, void 0, void 0, function* () {
2340
- const localVarAxiosArgs = yield localVarAxiosParamCreator.parkingTicketsLocation(parkingSpaceDetailBody, options);
2363
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.parkingTicketsIndex(type, id, options);
2341
2364
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
2342
2365
  });
2343
2366
  },
@@ -2492,6 +2515,17 @@ const DefaultApiFp = function (configuration) {
2492
2515
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
2493
2516
  });
2494
2517
  },
2518
+ /**
2519
+ *
2520
+ * @param {*} [options] Override http request option.
2521
+ * @throws {RequiredError}
2522
+ */
2523
+ trafficRecordsIndex(options) {
2524
+ return __awaiter(this, void 0, void 0, function* () {
2525
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.trafficRecordsIndex(options);
2526
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
2527
+ });
2528
+ },
2495
2529
  /**
2496
2530
  *
2497
2531
  * @param {string} id
@@ -2908,22 +2942,22 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
2908
2942
  },
2909
2943
  /**
2910
2944
  *
2911
- * @param {ParkingTicketsIndexTypeEnum} type
2912
2945
  * @param {string} id
2913
2946
  * @param {*} [options] Override http request option.
2914
2947
  * @throws {RequiredError}
2915
2948
  */
2916
- parkingTicketsIndex(type, id, options) {
2917
- return localVarFp.parkingTicketsIndex(type, id, options).then((request) => request(axios, basePath));
2949
+ parkingTicketsAllDetails(id, options) {
2950
+ return localVarFp.parkingTicketsAllDetails(id, options).then((request) => request(axios, basePath));
2918
2951
  },
2919
2952
  /**
2920
2953
  *
2921
- * @param {ParkingSpaceDetailBody} parkingSpaceDetailBody
2954
+ * @param {ParkingTicketsIndexTypeEnum} type
2955
+ * @param {string} id
2922
2956
  * @param {*} [options] Override http request option.
2923
2957
  * @throws {RequiredError}
2924
2958
  */
2925
- parkingTicketsLocation(parkingSpaceDetailBody, options) {
2926
- return localVarFp.parkingTicketsLocation(parkingSpaceDetailBody, options).then((request) => request(axios, basePath));
2959
+ parkingTicketsIndex(type, id, options) {
2960
+ return localVarFp.parkingTicketsIndex(type, id, options).then((request) => request(axios, basePath));
2927
2961
  },
2928
2962
  /**
2929
2963
  *
@@ -3040,6 +3074,14 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
3040
3074
  towersIndex(options) {
3041
3075
  return localVarFp.towersIndex(options).then((request) => request(axios, basePath));
3042
3076
  },
3077
+ /**
3078
+ *
3079
+ * @param {*} [options] Override http request option.
3080
+ * @throws {RequiredError}
3081
+ */
3082
+ trafficRecordsIndex(options) {
3083
+ return localVarFp.trafficRecordsIndex(options).then((request) => request(axios, basePath));
3084
+ },
3043
3085
  /**
3044
3086
  *
3045
3087
  * @param {string} id
@@ -3474,24 +3516,24 @@ class DefaultApi extends base_1.BaseAPI {
3474
3516
  }
3475
3517
  /**
3476
3518
  *
3477
- * @param {ParkingTicketsIndexTypeEnum} type
3478
3519
  * @param {string} id
3479
3520
  * @param {*} [options] Override http request option.
3480
3521
  * @throws {RequiredError}
3481
3522
  * @memberof DefaultApi
3482
3523
  */
3483
- parkingTicketsIndex(type, id, options) {
3484
- return (0, exports.DefaultApiFp)(this.configuration).parkingTicketsIndex(type, id, options).then((request) => request(this.axios, this.basePath));
3524
+ parkingTicketsAllDetails(id, options) {
3525
+ return (0, exports.DefaultApiFp)(this.configuration).parkingTicketsAllDetails(id, options).then((request) => request(this.axios, this.basePath));
3485
3526
  }
3486
3527
  /**
3487
3528
  *
3488
- * @param {ParkingSpaceDetailBody} parkingSpaceDetailBody
3529
+ * @param {ParkingTicketsIndexTypeEnum} type
3530
+ * @param {string} id
3489
3531
  * @param {*} [options] Override http request option.
3490
3532
  * @throws {RequiredError}
3491
3533
  * @memberof DefaultApi
3492
3534
  */
3493
- parkingTicketsLocation(parkingSpaceDetailBody, options) {
3494
- return (0, exports.DefaultApiFp)(this.configuration).parkingTicketsLocation(parkingSpaceDetailBody, options).then((request) => request(this.axios, this.basePath));
3535
+ parkingTicketsIndex(type, id, options) {
3536
+ return (0, exports.DefaultApiFp)(this.configuration).parkingTicketsIndex(type, id, options).then((request) => request(this.axios, this.basePath));
3495
3537
  }
3496
3538
  /**
3497
3539
  *
@@ -3620,6 +3662,15 @@ class DefaultApi extends base_1.BaseAPI {
3620
3662
  towersIndex(options) {
3621
3663
  return (0, exports.DefaultApiFp)(this.configuration).towersIndex(options).then((request) => request(this.axios, this.basePath));
3622
3664
  }
3665
+ /**
3666
+ *
3667
+ * @param {*} [options] Override http request option.
3668
+ * @throws {RequiredError}
3669
+ * @memberof DefaultApi
3670
+ */
3671
+ trafficRecordsIndex(options) {
3672
+ return (0, exports.DefaultApiFp)(this.configuration).trafficRecordsIndex(options).then((request) => request(this.axios, this.basePath));
3673
+ }
3623
3674
  /**
3624
3675
  *
3625
3676
  * @param {string} id
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ob-bms-sdk",
3
- "version": "0.0.101",
3
+ "version": "0.0.103",
4
4
  "description": "API interfaces for OB BMS",
5
5
  "main": "./dist/index.js",
6
6
  "license": "MIT"