ob-parking-sdk 0.0.50 → 0.0.52
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 +56 -96
- package/dist/api/api.d.ts +53 -89
- package/dist/api/api.js +15 -19
- package/package.json +1 -1
package/api/api.ts
CHANGED
|
@@ -630,12 +630,6 @@ export interface CreateReceiptBody {
|
|
|
630
630
|
* @interface CreateRegisteredVehicleBody
|
|
631
631
|
*/
|
|
632
632
|
export interface CreateRegisteredVehicleBody {
|
|
633
|
-
/**
|
|
634
|
-
*
|
|
635
|
-
* @type {boolean}
|
|
636
|
-
* @memberof CreateRegisteredVehicleBody
|
|
637
|
-
*/
|
|
638
|
-
'is_vip': boolean;
|
|
639
633
|
/**
|
|
640
634
|
*
|
|
641
635
|
* @type {string}
|
|
@@ -647,31 +641,19 @@ export interface CreateRegisteredVehicleBody {
|
|
|
647
641
|
* @type {string}
|
|
648
642
|
* @memberof CreateRegisteredVehicleBody
|
|
649
643
|
*/
|
|
650
|
-
'vehicle_brand_id'
|
|
644
|
+
'vehicle_brand_id'?: string;
|
|
651
645
|
/**
|
|
652
646
|
*
|
|
653
647
|
* @type {EngineType}
|
|
654
648
|
* @memberof CreateRegisteredVehicleBody
|
|
655
649
|
*/
|
|
656
|
-
'engine_type'
|
|
657
|
-
/**
|
|
658
|
-
*
|
|
659
|
-
* @type {string}
|
|
660
|
-
* @memberof CreateRegisteredVehicleBody
|
|
661
|
-
*/
|
|
662
|
-
'plate_province': string;
|
|
650
|
+
'engine_type'?: EngineType;
|
|
663
651
|
/**
|
|
664
652
|
*
|
|
665
653
|
* @type {string}
|
|
666
654
|
* @memberof CreateRegisteredVehicleBody
|
|
667
655
|
*/
|
|
668
656
|
'plate_no': string;
|
|
669
|
-
/**
|
|
670
|
-
*
|
|
671
|
-
* @type {VehicleType}
|
|
672
|
-
* @memberof CreateRegisteredVehicleBody
|
|
673
|
-
*/
|
|
674
|
-
'vehicle_type': VehicleType;
|
|
675
657
|
}
|
|
676
658
|
|
|
677
659
|
|
|
@@ -2530,40 +2512,40 @@ export interface RegisteredVehicleIndexResponse {
|
|
|
2530
2512
|
'vehicle_model'?: RegisteredVehicleIndexResponseVehicleModel;
|
|
2531
2513
|
/**
|
|
2532
2514
|
*
|
|
2533
|
-
* @type {
|
|
2515
|
+
* @type {RegisteredVehicleIndexResponseVehicleModel}
|
|
2534
2516
|
* @memberof RegisteredVehicleIndexResponse
|
|
2535
2517
|
*/
|
|
2536
|
-
'vehicle_brand'
|
|
2518
|
+
'vehicle_brand'?: RegisteredVehicleIndexResponseVehicleModel;
|
|
2537
2519
|
/**
|
|
2538
2520
|
*
|
|
2539
|
-
* @type {
|
|
2521
|
+
* @type {EngineType}
|
|
2540
2522
|
* @memberof RegisteredVehicleIndexResponse
|
|
2541
2523
|
*/
|
|
2542
|
-
'
|
|
2524
|
+
'engine_type'?: EngineType | null;
|
|
2543
2525
|
/**
|
|
2544
2526
|
*
|
|
2545
2527
|
* @type {string}
|
|
2546
2528
|
* @memberof RegisteredVehicleIndexResponse
|
|
2547
2529
|
*/
|
|
2548
|
-
'
|
|
2530
|
+
'plate_province'?: string | null;
|
|
2549
2531
|
/**
|
|
2550
2532
|
*
|
|
2551
2533
|
* @type {string}
|
|
2552
2534
|
* @memberof RegisteredVehicleIndexResponse
|
|
2553
2535
|
*/
|
|
2554
|
-
'
|
|
2536
|
+
'plate_no': string;
|
|
2555
2537
|
/**
|
|
2556
2538
|
*
|
|
2557
|
-
* @type {
|
|
2539
|
+
* @type {string}
|
|
2558
2540
|
* @memberof RegisteredVehicleIndexResponse
|
|
2559
2541
|
*/
|
|
2560
|
-
'
|
|
2542
|
+
'account_id': string;
|
|
2561
2543
|
/**
|
|
2562
2544
|
*
|
|
2563
|
-
* @type {
|
|
2545
|
+
* @type {VehicleType}
|
|
2564
2546
|
* @memberof RegisteredVehicleIndexResponse
|
|
2565
2547
|
*/
|
|
2566
|
-
'
|
|
2548
|
+
'vehicle_type'?: VehicleType;
|
|
2567
2549
|
/**
|
|
2568
2550
|
*
|
|
2569
2551
|
* @type {string}
|
|
@@ -2573,25 +2555,6 @@ export interface RegisteredVehicleIndexResponse {
|
|
|
2573
2555
|
}
|
|
2574
2556
|
|
|
2575
2557
|
|
|
2576
|
-
/**
|
|
2577
|
-
*
|
|
2578
|
-
* @export
|
|
2579
|
-
* @interface RegisteredVehicleIndexResponseVehicleBrand
|
|
2580
|
-
*/
|
|
2581
|
-
export interface RegisteredVehicleIndexResponseVehicleBrand {
|
|
2582
|
-
/**
|
|
2583
|
-
*
|
|
2584
|
-
* @type {string}
|
|
2585
|
-
* @memberof RegisteredVehicleIndexResponseVehicleBrand
|
|
2586
|
-
*/
|
|
2587
|
-
'name': string;
|
|
2588
|
-
/**
|
|
2589
|
-
*
|
|
2590
|
-
* @type {string}
|
|
2591
|
-
* @memberof RegisteredVehicleIndexResponseVehicleBrand
|
|
2592
|
-
*/
|
|
2593
|
-
'id': string;
|
|
2594
|
-
}
|
|
2595
2558
|
/**
|
|
2596
2559
|
*
|
|
2597
2560
|
* @export
|
|
@@ -2634,19 +2597,19 @@ export interface RegisteredVehicleResponse {
|
|
|
2634
2597
|
* @type {string}
|
|
2635
2598
|
* @memberof RegisteredVehicleResponse
|
|
2636
2599
|
*/
|
|
2637
|
-
'vehicle_brand_id'
|
|
2600
|
+
'vehicle_brand_id'?: string | null;
|
|
2638
2601
|
/**
|
|
2639
2602
|
*
|
|
2640
2603
|
* @type {EngineType}
|
|
2641
2604
|
* @memberof RegisteredVehicleResponse
|
|
2642
2605
|
*/
|
|
2643
|
-
'engine_type'
|
|
2606
|
+
'engine_type'?: EngineType | null;
|
|
2644
2607
|
/**
|
|
2645
2608
|
*
|
|
2646
2609
|
* @type {string}
|
|
2647
2610
|
* @memberof RegisteredVehicleResponse
|
|
2648
2611
|
*/
|
|
2649
|
-
'plate_province'
|
|
2612
|
+
'plate_province'?: string | null;
|
|
2650
2613
|
/**
|
|
2651
2614
|
*
|
|
2652
2615
|
* @type {string}
|
|
@@ -2664,13 +2627,7 @@ export interface RegisteredVehicleResponse {
|
|
|
2664
2627
|
* @type {VehicleType}
|
|
2665
2628
|
* @memberof RegisteredVehicleResponse
|
|
2666
2629
|
*/
|
|
2667
|
-
'vehicle_type'
|
|
2668
|
-
/**
|
|
2669
|
-
*
|
|
2670
|
-
* @type {string}
|
|
2671
|
-
* @memberof RegisteredVehicleResponse
|
|
2672
|
-
*/
|
|
2673
|
-
'uid': string;
|
|
2630
|
+
'vehicle_type'?: VehicleType | null;
|
|
2674
2631
|
/**
|
|
2675
2632
|
*
|
|
2676
2633
|
* @type {string}
|
|
@@ -3092,24 +3049,12 @@ export interface UpdateRegisteredVehicleBody {
|
|
|
3092
3049
|
* @memberof UpdateRegisteredVehicleBody
|
|
3093
3050
|
*/
|
|
3094
3051
|
'plate_no'?: string;
|
|
3095
|
-
/**
|
|
3096
|
-
*
|
|
3097
|
-
* @type {string}
|
|
3098
|
-
* @memberof UpdateRegisteredVehicleBody
|
|
3099
|
-
*/
|
|
3100
|
-
'account_id'?: string;
|
|
3101
3052
|
/**
|
|
3102
3053
|
*
|
|
3103
3054
|
* @type {VehicleType}
|
|
3104
3055
|
* @memberof UpdateRegisteredVehicleBody
|
|
3105
3056
|
*/
|
|
3106
3057
|
'vehicle_type'?: VehicleType;
|
|
3107
|
-
/**
|
|
3108
|
-
*
|
|
3109
|
-
* @type {string}
|
|
3110
|
-
* @memberof UpdateRegisteredVehicleBody
|
|
3111
|
-
*/
|
|
3112
|
-
'uid'?: string;
|
|
3113
3058
|
}
|
|
3114
3059
|
|
|
3115
3060
|
|
|
@@ -3311,10 +3256,10 @@ export interface VehicleModelIndexQuery {
|
|
|
3311
3256
|
export interface VehicleModelIndexResponse {
|
|
3312
3257
|
/**
|
|
3313
3258
|
*
|
|
3314
|
-
* @type {
|
|
3259
|
+
* @type {VehicleModelIndexResponseBrand}
|
|
3315
3260
|
* @memberof VehicleModelIndexResponse
|
|
3316
3261
|
*/
|
|
3317
|
-
'brand':
|
|
3262
|
+
'brand': VehicleModelIndexResponseBrand;
|
|
3318
3263
|
/**
|
|
3319
3264
|
*
|
|
3320
3265
|
* @type {string}
|
|
@@ -3328,6 +3273,25 @@ export interface VehicleModelIndexResponse {
|
|
|
3328
3273
|
*/
|
|
3329
3274
|
'id': string;
|
|
3330
3275
|
}
|
|
3276
|
+
/**
|
|
3277
|
+
*
|
|
3278
|
+
* @export
|
|
3279
|
+
* @interface VehicleModelIndexResponseBrand
|
|
3280
|
+
*/
|
|
3281
|
+
export interface VehicleModelIndexResponseBrand {
|
|
3282
|
+
/**
|
|
3283
|
+
*
|
|
3284
|
+
* @type {string}
|
|
3285
|
+
* @memberof VehicleModelIndexResponseBrand
|
|
3286
|
+
*/
|
|
3287
|
+
'name': string;
|
|
3288
|
+
/**
|
|
3289
|
+
*
|
|
3290
|
+
* @type {string}
|
|
3291
|
+
* @memberof VehicleModelIndexResponseBrand
|
|
3292
|
+
*/
|
|
3293
|
+
'id': string;
|
|
3294
|
+
}
|
|
3331
3295
|
/**
|
|
3332
3296
|
*
|
|
3333
3297
|
* @export
|
|
@@ -4785,14 +4749,12 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
4785
4749
|
},
|
|
4786
4750
|
/**
|
|
4787
4751
|
*
|
|
4788
|
-
* @param {string} xAccountId
|
|
4789
4752
|
* @param {CreateRegisteredVehicleBody} createRegisteredVehicleBody
|
|
4753
|
+
* @param {string} [xAccountId]
|
|
4790
4754
|
* @param {*} [options] Override http request option.
|
|
4791
4755
|
* @throws {RequiredError}
|
|
4792
4756
|
*/
|
|
4793
|
-
registeredVehiclesCreate: async (
|
|
4794
|
-
// verify required parameter 'xAccountId' is not null or undefined
|
|
4795
|
-
assertParamExists('registeredVehiclesCreate', 'xAccountId', xAccountId)
|
|
4757
|
+
registeredVehiclesCreate: async (createRegisteredVehicleBody: CreateRegisteredVehicleBody, xAccountId?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4796
4758
|
// verify required parameter 'createRegisteredVehicleBody' is not null or undefined
|
|
4797
4759
|
assertParamExists('registeredVehiclesCreate', 'createRegisteredVehicleBody', createRegisteredVehicleBody)
|
|
4798
4760
|
const localVarPath = `/registered-vehicles`;
|
|
@@ -4893,13 +4855,11 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
4893
4855
|
},
|
|
4894
4856
|
/**
|
|
4895
4857
|
*
|
|
4896
|
-
* @param {string} xAccountId
|
|
4858
|
+
* @param {string} [xAccountId]
|
|
4897
4859
|
* @param {*} [options] Override http request option.
|
|
4898
4860
|
* @throws {RequiredError}
|
|
4899
4861
|
*/
|
|
4900
|
-
registeredVehiclesGetByAccountId: async (xAccountId
|
|
4901
|
-
// verify required parameter 'xAccountId' is not null or undefined
|
|
4902
|
-
assertParamExists('registeredVehiclesGetByAccountId', 'xAccountId', xAccountId)
|
|
4862
|
+
registeredVehiclesGetByAccountId: async (xAccountId?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4903
4863
|
const localVarPath = `/registered-vehicles/account`;
|
|
4904
4864
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4905
4865
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -5750,13 +5710,13 @@ export const DefaultApiFp = function(configuration?: Configuration) {
|
|
|
5750
5710
|
},
|
|
5751
5711
|
/**
|
|
5752
5712
|
*
|
|
5753
|
-
* @param {string} xAccountId
|
|
5754
5713
|
* @param {CreateRegisteredVehicleBody} createRegisteredVehicleBody
|
|
5714
|
+
* @param {string} [xAccountId]
|
|
5755
5715
|
* @param {*} [options] Override http request option.
|
|
5756
5716
|
* @throws {RequiredError}
|
|
5757
5717
|
*/
|
|
5758
|
-
async registeredVehiclesCreate(
|
|
5759
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.registeredVehiclesCreate(
|
|
5718
|
+
async registeredVehiclesCreate(createRegisteredVehicleBody: CreateRegisteredVehicleBody, xAccountId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RegisteredVehicleResponse>> {
|
|
5719
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.registeredVehiclesCreate(createRegisteredVehicleBody, xAccountId, options);
|
|
5760
5720
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
5761
5721
|
},
|
|
5762
5722
|
/**
|
|
@@ -5781,11 +5741,11 @@ export const DefaultApiFp = function(configuration?: Configuration) {
|
|
|
5781
5741
|
},
|
|
5782
5742
|
/**
|
|
5783
5743
|
*
|
|
5784
|
-
* @param {string} xAccountId
|
|
5744
|
+
* @param {string} [xAccountId]
|
|
5785
5745
|
* @param {*} [options] Override http request option.
|
|
5786
5746
|
* @throws {RequiredError}
|
|
5787
5747
|
*/
|
|
5788
|
-
async registeredVehiclesGetByAccountId(xAccountId
|
|
5748
|
+
async registeredVehiclesGetByAccountId(xAccountId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RegisteredVehicleIndexResponse>> {
|
|
5789
5749
|
const localVarAxiosArgs = await localVarAxiosParamCreator.registeredVehiclesGetByAccountId(xAccountId, options);
|
|
5790
5750
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
5791
5751
|
},
|
|
@@ -6283,13 +6243,13 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
|
|
|
6283
6243
|
},
|
|
6284
6244
|
/**
|
|
6285
6245
|
*
|
|
6286
|
-
* @param {string} xAccountId
|
|
6287
6246
|
* @param {CreateRegisteredVehicleBody} createRegisteredVehicleBody
|
|
6247
|
+
* @param {string} [xAccountId]
|
|
6288
6248
|
* @param {*} [options] Override http request option.
|
|
6289
6249
|
* @throws {RequiredError}
|
|
6290
6250
|
*/
|
|
6291
|
-
registeredVehiclesCreate(
|
|
6292
|
-
return localVarFp.registeredVehiclesCreate(
|
|
6251
|
+
registeredVehiclesCreate(createRegisteredVehicleBody: CreateRegisteredVehicleBody, xAccountId?: string, options?: any): AxiosPromise<RegisteredVehicleResponse> {
|
|
6252
|
+
return localVarFp.registeredVehiclesCreate(createRegisteredVehicleBody, xAccountId, options).then((request) => request(axios, basePath));
|
|
6293
6253
|
},
|
|
6294
6254
|
/**
|
|
6295
6255
|
*
|
|
@@ -6311,11 +6271,11 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
|
|
|
6311
6271
|
},
|
|
6312
6272
|
/**
|
|
6313
6273
|
*
|
|
6314
|
-
* @param {string} xAccountId
|
|
6274
|
+
* @param {string} [xAccountId]
|
|
6315
6275
|
* @param {*} [options] Override http request option.
|
|
6316
6276
|
* @throws {RequiredError}
|
|
6317
6277
|
*/
|
|
6318
|
-
registeredVehiclesGetByAccountId(xAccountId
|
|
6278
|
+
registeredVehiclesGetByAccountId(xAccountId?: string, options?: any): AxiosPromise<RegisteredVehicleIndexResponse> {
|
|
6319
6279
|
return localVarFp.registeredVehiclesGetByAccountId(xAccountId, options).then((request) => request(axios, basePath));
|
|
6320
6280
|
},
|
|
6321
6281
|
/**
|
|
@@ -6868,14 +6828,14 @@ export class DefaultApi extends BaseAPI {
|
|
|
6868
6828
|
|
|
6869
6829
|
/**
|
|
6870
6830
|
*
|
|
6871
|
-
* @param {string} xAccountId
|
|
6872
6831
|
* @param {CreateRegisteredVehicleBody} createRegisteredVehicleBody
|
|
6832
|
+
* @param {string} [xAccountId]
|
|
6873
6833
|
* @param {*} [options] Override http request option.
|
|
6874
6834
|
* @throws {RequiredError}
|
|
6875
6835
|
* @memberof DefaultApi
|
|
6876
6836
|
*/
|
|
6877
|
-
public registeredVehiclesCreate(
|
|
6878
|
-
return DefaultApiFp(this.configuration).registeredVehiclesCreate(
|
|
6837
|
+
public registeredVehiclesCreate(createRegisteredVehicleBody: CreateRegisteredVehicleBody, xAccountId?: string, options?: AxiosRequestConfig) {
|
|
6838
|
+
return DefaultApiFp(this.configuration).registeredVehiclesCreate(createRegisteredVehicleBody, xAccountId, options).then((request) => request(this.axios, this.basePath));
|
|
6879
6839
|
}
|
|
6880
6840
|
|
|
6881
6841
|
/**
|
|
@@ -6902,12 +6862,12 @@ export class DefaultApi extends BaseAPI {
|
|
|
6902
6862
|
|
|
6903
6863
|
/**
|
|
6904
6864
|
*
|
|
6905
|
-
* @param {string} xAccountId
|
|
6865
|
+
* @param {string} [xAccountId]
|
|
6906
6866
|
* @param {*} [options] Override http request option.
|
|
6907
6867
|
* @throws {RequiredError}
|
|
6908
6868
|
* @memberof DefaultApi
|
|
6909
6869
|
*/
|
|
6910
|
-
public registeredVehiclesGetByAccountId(xAccountId
|
|
6870
|
+
public registeredVehiclesGetByAccountId(xAccountId?: string, options?: AxiosRequestConfig) {
|
|
6911
6871
|
return DefaultApiFp(this.configuration).registeredVehiclesGetByAccountId(xAccountId, options).then((request) => request(this.axios, this.basePath));
|
|
6912
6872
|
}
|
|
6913
6873
|
|
package/dist/api/api.d.ts
CHANGED
|
@@ -607,12 +607,6 @@ export interface CreateReceiptBody {
|
|
|
607
607
|
* @interface CreateRegisteredVehicleBody
|
|
608
608
|
*/
|
|
609
609
|
export interface CreateRegisteredVehicleBody {
|
|
610
|
-
/**
|
|
611
|
-
*
|
|
612
|
-
* @type {boolean}
|
|
613
|
-
* @memberof CreateRegisteredVehicleBody
|
|
614
|
-
*/
|
|
615
|
-
'is_vip': boolean;
|
|
616
610
|
/**
|
|
617
611
|
*
|
|
618
612
|
* @type {string}
|
|
@@ -624,31 +618,19 @@ export interface CreateRegisteredVehicleBody {
|
|
|
624
618
|
* @type {string}
|
|
625
619
|
* @memberof CreateRegisteredVehicleBody
|
|
626
620
|
*/
|
|
627
|
-
'vehicle_brand_id'
|
|
621
|
+
'vehicle_brand_id'?: string;
|
|
628
622
|
/**
|
|
629
623
|
*
|
|
630
624
|
* @type {EngineType}
|
|
631
625
|
* @memberof CreateRegisteredVehicleBody
|
|
632
626
|
*/
|
|
633
|
-
'engine_type'
|
|
634
|
-
/**
|
|
635
|
-
*
|
|
636
|
-
* @type {string}
|
|
637
|
-
* @memberof CreateRegisteredVehicleBody
|
|
638
|
-
*/
|
|
639
|
-
'plate_province': string;
|
|
627
|
+
'engine_type'?: EngineType;
|
|
640
628
|
/**
|
|
641
629
|
*
|
|
642
630
|
* @type {string}
|
|
643
631
|
* @memberof CreateRegisteredVehicleBody
|
|
644
632
|
*/
|
|
645
633
|
'plate_no': string;
|
|
646
|
-
/**
|
|
647
|
-
*
|
|
648
|
-
* @type {VehicleType}
|
|
649
|
-
* @memberof CreateRegisteredVehicleBody
|
|
650
|
-
*/
|
|
651
|
-
'vehicle_type': VehicleType;
|
|
652
634
|
}
|
|
653
635
|
/**
|
|
654
636
|
*
|
|
@@ -2474,63 +2456,44 @@ export interface RegisteredVehicleIndexResponse {
|
|
|
2474
2456
|
'vehicle_model'?: RegisteredVehicleIndexResponseVehicleModel;
|
|
2475
2457
|
/**
|
|
2476
2458
|
*
|
|
2477
|
-
* @type {
|
|
2459
|
+
* @type {RegisteredVehicleIndexResponseVehicleModel}
|
|
2478
2460
|
* @memberof RegisteredVehicleIndexResponse
|
|
2479
2461
|
*/
|
|
2480
|
-
'vehicle_brand'
|
|
2462
|
+
'vehicle_brand'?: RegisteredVehicleIndexResponseVehicleModel;
|
|
2481
2463
|
/**
|
|
2482
2464
|
*
|
|
2483
|
-
* @type {
|
|
2465
|
+
* @type {EngineType}
|
|
2484
2466
|
* @memberof RegisteredVehicleIndexResponse
|
|
2485
2467
|
*/
|
|
2486
|
-
'
|
|
2468
|
+
'engine_type'?: EngineType | null;
|
|
2487
2469
|
/**
|
|
2488
2470
|
*
|
|
2489
2471
|
* @type {string}
|
|
2490
2472
|
* @memberof RegisteredVehicleIndexResponse
|
|
2491
2473
|
*/
|
|
2492
|
-
'
|
|
2474
|
+
'plate_province'?: string | null;
|
|
2493
2475
|
/**
|
|
2494
2476
|
*
|
|
2495
2477
|
* @type {string}
|
|
2496
2478
|
* @memberof RegisteredVehicleIndexResponse
|
|
2497
2479
|
*/
|
|
2498
|
-
'
|
|
2499
|
-
/**
|
|
2500
|
-
*
|
|
2501
|
-
* @type {VehicleType}
|
|
2502
|
-
* @memberof RegisteredVehicleIndexResponse
|
|
2503
|
-
*/
|
|
2504
|
-
'vehicle_type': VehicleType;
|
|
2480
|
+
'plate_no': string;
|
|
2505
2481
|
/**
|
|
2506
2482
|
*
|
|
2507
2483
|
* @type {string}
|
|
2508
2484
|
* @memberof RegisteredVehicleIndexResponse
|
|
2509
2485
|
*/
|
|
2510
|
-
'
|
|
2486
|
+
'account_id': string;
|
|
2511
2487
|
/**
|
|
2512
2488
|
*
|
|
2513
|
-
* @type {
|
|
2489
|
+
* @type {VehicleType}
|
|
2514
2490
|
* @memberof RegisteredVehicleIndexResponse
|
|
2515
2491
|
*/
|
|
2516
|
-
'
|
|
2517
|
-
}
|
|
2518
|
-
/**
|
|
2519
|
-
*
|
|
2520
|
-
* @export
|
|
2521
|
-
* @interface RegisteredVehicleIndexResponseVehicleBrand
|
|
2522
|
-
*/
|
|
2523
|
-
export interface RegisteredVehicleIndexResponseVehicleBrand {
|
|
2524
|
-
/**
|
|
2525
|
-
*
|
|
2526
|
-
* @type {string}
|
|
2527
|
-
* @memberof RegisteredVehicleIndexResponseVehicleBrand
|
|
2528
|
-
*/
|
|
2529
|
-
'name': string;
|
|
2492
|
+
'vehicle_type'?: VehicleType;
|
|
2530
2493
|
/**
|
|
2531
2494
|
*
|
|
2532
2495
|
* @type {string}
|
|
2533
|
-
* @memberof
|
|
2496
|
+
* @memberof RegisteredVehicleIndexResponse
|
|
2534
2497
|
*/
|
|
2535
2498
|
'id': string;
|
|
2536
2499
|
}
|
|
@@ -2576,19 +2539,19 @@ export interface RegisteredVehicleResponse {
|
|
|
2576
2539
|
* @type {string}
|
|
2577
2540
|
* @memberof RegisteredVehicleResponse
|
|
2578
2541
|
*/
|
|
2579
|
-
'vehicle_brand_id'
|
|
2542
|
+
'vehicle_brand_id'?: string | null;
|
|
2580
2543
|
/**
|
|
2581
2544
|
*
|
|
2582
2545
|
* @type {EngineType}
|
|
2583
2546
|
* @memberof RegisteredVehicleResponse
|
|
2584
2547
|
*/
|
|
2585
|
-
'engine_type'
|
|
2548
|
+
'engine_type'?: EngineType | null;
|
|
2586
2549
|
/**
|
|
2587
2550
|
*
|
|
2588
2551
|
* @type {string}
|
|
2589
2552
|
* @memberof RegisteredVehicleResponse
|
|
2590
2553
|
*/
|
|
2591
|
-
'plate_province'
|
|
2554
|
+
'plate_province'?: string | null;
|
|
2592
2555
|
/**
|
|
2593
2556
|
*
|
|
2594
2557
|
* @type {string}
|
|
@@ -2606,13 +2569,7 @@ export interface RegisteredVehicleResponse {
|
|
|
2606
2569
|
* @type {VehicleType}
|
|
2607
2570
|
* @memberof RegisteredVehicleResponse
|
|
2608
2571
|
*/
|
|
2609
|
-
'vehicle_type'
|
|
2610
|
-
/**
|
|
2611
|
-
*
|
|
2612
|
-
* @type {string}
|
|
2613
|
-
* @memberof RegisteredVehicleResponse
|
|
2614
|
-
*/
|
|
2615
|
-
'uid': string;
|
|
2572
|
+
'vehicle_type'?: VehicleType | null;
|
|
2616
2573
|
/**
|
|
2617
2574
|
*
|
|
2618
2575
|
* @type {string}
|
|
@@ -3030,24 +2987,12 @@ export interface UpdateRegisteredVehicleBody {
|
|
|
3030
2987
|
* @memberof UpdateRegisteredVehicleBody
|
|
3031
2988
|
*/
|
|
3032
2989
|
'plate_no'?: string;
|
|
3033
|
-
/**
|
|
3034
|
-
*
|
|
3035
|
-
* @type {string}
|
|
3036
|
-
* @memberof UpdateRegisteredVehicleBody
|
|
3037
|
-
*/
|
|
3038
|
-
'account_id'?: string;
|
|
3039
2990
|
/**
|
|
3040
2991
|
*
|
|
3041
2992
|
* @type {VehicleType}
|
|
3042
2993
|
* @memberof UpdateRegisteredVehicleBody
|
|
3043
2994
|
*/
|
|
3044
2995
|
'vehicle_type'?: VehicleType;
|
|
3045
|
-
/**
|
|
3046
|
-
*
|
|
3047
|
-
* @type {string}
|
|
3048
|
-
* @memberof UpdateRegisteredVehicleBody
|
|
3049
|
-
*/
|
|
3050
|
-
'uid'?: string;
|
|
3051
2996
|
}
|
|
3052
2997
|
/**
|
|
3053
2998
|
*
|
|
@@ -3247,10 +3192,10 @@ export interface VehicleModelIndexQuery {
|
|
|
3247
3192
|
export interface VehicleModelIndexResponse {
|
|
3248
3193
|
/**
|
|
3249
3194
|
*
|
|
3250
|
-
* @type {
|
|
3195
|
+
* @type {VehicleModelIndexResponseBrand}
|
|
3251
3196
|
* @memberof VehicleModelIndexResponse
|
|
3252
3197
|
*/
|
|
3253
|
-
'brand':
|
|
3198
|
+
'brand': VehicleModelIndexResponseBrand;
|
|
3254
3199
|
/**
|
|
3255
3200
|
*
|
|
3256
3201
|
* @type {string}
|
|
@@ -3264,6 +3209,25 @@ export interface VehicleModelIndexResponse {
|
|
|
3264
3209
|
*/
|
|
3265
3210
|
'id': string;
|
|
3266
3211
|
}
|
|
3212
|
+
/**
|
|
3213
|
+
*
|
|
3214
|
+
* @export
|
|
3215
|
+
* @interface VehicleModelIndexResponseBrand
|
|
3216
|
+
*/
|
|
3217
|
+
export interface VehicleModelIndexResponseBrand {
|
|
3218
|
+
/**
|
|
3219
|
+
*
|
|
3220
|
+
* @type {string}
|
|
3221
|
+
* @memberof VehicleModelIndexResponseBrand
|
|
3222
|
+
*/
|
|
3223
|
+
'name': string;
|
|
3224
|
+
/**
|
|
3225
|
+
*
|
|
3226
|
+
* @type {string}
|
|
3227
|
+
* @memberof VehicleModelIndexResponseBrand
|
|
3228
|
+
*/
|
|
3229
|
+
'id': string;
|
|
3230
|
+
}
|
|
3267
3231
|
/**
|
|
3268
3232
|
*
|
|
3269
3233
|
* @export
|
|
@@ -3573,12 +3537,12 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
3573
3537
|
receiptValidateOcrReceiptImage: (validateReceiptImageBody: ValidateReceiptImageBody, xAccountId?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3574
3538
|
/**
|
|
3575
3539
|
*
|
|
3576
|
-
* @param {string} xAccountId
|
|
3577
3540
|
* @param {CreateRegisteredVehicleBody} createRegisteredVehicleBody
|
|
3541
|
+
* @param {string} [xAccountId]
|
|
3578
3542
|
* @param {*} [options] Override http request option.
|
|
3579
3543
|
* @throws {RequiredError}
|
|
3580
3544
|
*/
|
|
3581
|
-
registeredVehiclesCreate: (
|
|
3545
|
+
registeredVehiclesCreate: (createRegisteredVehicleBody: CreateRegisteredVehicleBody, xAccountId?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3582
3546
|
/**
|
|
3583
3547
|
*
|
|
3584
3548
|
* @param {string} id
|
|
@@ -3595,11 +3559,11 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
3595
3559
|
registeredVehiclesGet: (id: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3596
3560
|
/**
|
|
3597
3561
|
*
|
|
3598
|
-
* @param {string} xAccountId
|
|
3562
|
+
* @param {string} [xAccountId]
|
|
3599
3563
|
* @param {*} [options] Override http request option.
|
|
3600
3564
|
* @throws {RequiredError}
|
|
3601
3565
|
*/
|
|
3602
|
-
registeredVehiclesGetByAccountId: (xAccountId
|
|
3566
|
+
registeredVehiclesGetByAccountId: (xAccountId?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3603
3567
|
/**
|
|
3604
3568
|
*
|
|
3605
3569
|
* @param {*} [options] Override http request option.
|
|
@@ -3986,12 +3950,12 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
3986
3950
|
receiptValidateOcrReceiptImage(validateReceiptImageBody: ValidateReceiptImageBody, xAccountId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReceiptData>>;
|
|
3987
3951
|
/**
|
|
3988
3952
|
*
|
|
3989
|
-
* @param {string} xAccountId
|
|
3990
3953
|
* @param {CreateRegisteredVehicleBody} createRegisteredVehicleBody
|
|
3954
|
+
* @param {string} [xAccountId]
|
|
3991
3955
|
* @param {*} [options] Override http request option.
|
|
3992
3956
|
* @throws {RequiredError}
|
|
3993
3957
|
*/
|
|
3994
|
-
registeredVehiclesCreate(
|
|
3958
|
+
registeredVehiclesCreate(createRegisteredVehicleBody: CreateRegisteredVehicleBody, xAccountId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RegisteredVehicleResponse>>;
|
|
3995
3959
|
/**
|
|
3996
3960
|
*
|
|
3997
3961
|
* @param {string} id
|
|
@@ -4008,11 +3972,11 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
4008
3972
|
registeredVehiclesGet(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RegisteredVehicleResponse>>;
|
|
4009
3973
|
/**
|
|
4010
3974
|
*
|
|
4011
|
-
* @param {string} xAccountId
|
|
3975
|
+
* @param {string} [xAccountId]
|
|
4012
3976
|
* @param {*} [options] Override http request option.
|
|
4013
3977
|
* @throws {RequiredError}
|
|
4014
3978
|
*/
|
|
4015
|
-
registeredVehiclesGetByAccountId(xAccountId
|
|
3979
|
+
registeredVehiclesGetByAccountId(xAccountId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RegisteredVehicleIndexResponse>>;
|
|
4016
3980
|
/**
|
|
4017
3981
|
*
|
|
4018
3982
|
* @param {*} [options] Override http request option.
|
|
@@ -4399,12 +4363,12 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
4399
4363
|
receiptValidateOcrReceiptImage(validateReceiptImageBody: ValidateReceiptImageBody, xAccountId?: string, options?: any): AxiosPromise<ReceiptData>;
|
|
4400
4364
|
/**
|
|
4401
4365
|
*
|
|
4402
|
-
* @param {string} xAccountId
|
|
4403
4366
|
* @param {CreateRegisteredVehicleBody} createRegisteredVehicleBody
|
|
4367
|
+
* @param {string} [xAccountId]
|
|
4404
4368
|
* @param {*} [options] Override http request option.
|
|
4405
4369
|
* @throws {RequiredError}
|
|
4406
4370
|
*/
|
|
4407
|
-
registeredVehiclesCreate(
|
|
4371
|
+
registeredVehiclesCreate(createRegisteredVehicleBody: CreateRegisteredVehicleBody, xAccountId?: string, options?: any): AxiosPromise<RegisteredVehicleResponse>;
|
|
4408
4372
|
/**
|
|
4409
4373
|
*
|
|
4410
4374
|
* @param {string} id
|
|
@@ -4421,11 +4385,11 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
4421
4385
|
registeredVehiclesGet(id: string, options?: any): AxiosPromise<RegisteredVehicleResponse>;
|
|
4422
4386
|
/**
|
|
4423
4387
|
*
|
|
4424
|
-
* @param {string} xAccountId
|
|
4388
|
+
* @param {string} [xAccountId]
|
|
4425
4389
|
* @param {*} [options] Override http request option.
|
|
4426
4390
|
* @throws {RequiredError}
|
|
4427
4391
|
*/
|
|
4428
|
-
registeredVehiclesGetByAccountId(xAccountId
|
|
4392
|
+
registeredVehiclesGetByAccountId(xAccountId?: string, options?: any): AxiosPromise<RegisteredVehicleIndexResponse>;
|
|
4429
4393
|
/**
|
|
4430
4394
|
*
|
|
4431
4395
|
* @param {*} [options] Override http request option.
|
|
@@ -4848,13 +4812,13 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
4848
4812
|
receiptValidateOcrReceiptImage(validateReceiptImageBody: ValidateReceiptImageBody, xAccountId?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ReceiptData, any>>;
|
|
4849
4813
|
/**
|
|
4850
4814
|
*
|
|
4851
|
-
* @param {string} xAccountId
|
|
4852
4815
|
* @param {CreateRegisteredVehicleBody} createRegisteredVehicleBody
|
|
4816
|
+
* @param {string} [xAccountId]
|
|
4853
4817
|
* @param {*} [options] Override http request option.
|
|
4854
4818
|
* @throws {RequiredError}
|
|
4855
4819
|
* @memberof DefaultApi
|
|
4856
4820
|
*/
|
|
4857
|
-
registeredVehiclesCreate(
|
|
4821
|
+
registeredVehiclesCreate(createRegisteredVehicleBody: CreateRegisteredVehicleBody, xAccountId?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<RegisteredVehicleResponse, any>>;
|
|
4858
4822
|
/**
|
|
4859
4823
|
*
|
|
4860
4824
|
* @param {string} id
|
|
@@ -4873,12 +4837,12 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
4873
4837
|
registeredVehiclesGet(id: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<RegisteredVehicleResponse, any>>;
|
|
4874
4838
|
/**
|
|
4875
4839
|
*
|
|
4876
|
-
* @param {string} xAccountId
|
|
4840
|
+
* @param {string} [xAccountId]
|
|
4877
4841
|
* @param {*} [options] Override http request option.
|
|
4878
4842
|
* @throws {RequiredError}
|
|
4879
4843
|
* @memberof DefaultApi
|
|
4880
4844
|
*/
|
|
4881
|
-
registeredVehiclesGetByAccountId(xAccountId
|
|
4845
|
+
registeredVehiclesGetByAccountId(xAccountId?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<RegisteredVehicleIndexResponse, any>>;
|
|
4882
4846
|
/**
|
|
4883
4847
|
*
|
|
4884
4848
|
* @param {*} [options] Override http request option.
|
package/dist/api/api.js
CHANGED
|
@@ -1307,14 +1307,12 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
1307
1307
|
}),
|
|
1308
1308
|
/**
|
|
1309
1309
|
*
|
|
1310
|
-
* @param {string} xAccountId
|
|
1311
1310
|
* @param {CreateRegisteredVehicleBody} createRegisteredVehicleBody
|
|
1311
|
+
* @param {string} [xAccountId]
|
|
1312
1312
|
* @param {*} [options] Override http request option.
|
|
1313
1313
|
* @throws {RequiredError}
|
|
1314
1314
|
*/
|
|
1315
|
-
registeredVehiclesCreate: (
|
|
1316
|
-
// verify required parameter 'xAccountId' is not null or undefined
|
|
1317
|
-
(0, common_1.assertParamExists)('registeredVehiclesCreate', 'xAccountId', xAccountId);
|
|
1315
|
+
registeredVehiclesCreate: (createRegisteredVehicleBody, xAccountId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1318
1316
|
// verify required parameter 'createRegisteredVehicleBody' is not null or undefined
|
|
1319
1317
|
(0, common_1.assertParamExists)('registeredVehiclesCreate', 'createRegisteredVehicleBody', createRegisteredVehicleBody);
|
|
1320
1318
|
const localVarPath = `/registered-vehicles`;
|
|
@@ -1398,13 +1396,11 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
1398
1396
|
}),
|
|
1399
1397
|
/**
|
|
1400
1398
|
*
|
|
1401
|
-
* @param {string} xAccountId
|
|
1399
|
+
* @param {string} [xAccountId]
|
|
1402
1400
|
* @param {*} [options] Override http request option.
|
|
1403
1401
|
* @throws {RequiredError}
|
|
1404
1402
|
*/
|
|
1405
1403
|
registeredVehiclesGetByAccountId: (xAccountId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1406
|
-
// verify required parameter 'xAccountId' is not null or undefined
|
|
1407
|
-
(0, common_1.assertParamExists)('registeredVehiclesGetByAccountId', 'xAccountId', xAccountId);
|
|
1408
1404
|
const localVarPath = `/registered-vehicles/account`;
|
|
1409
1405
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1410
1406
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -2249,14 +2245,14 @@ const DefaultApiFp = function (configuration) {
|
|
|
2249
2245
|
},
|
|
2250
2246
|
/**
|
|
2251
2247
|
*
|
|
2252
|
-
* @param {string} xAccountId
|
|
2253
2248
|
* @param {CreateRegisteredVehicleBody} createRegisteredVehicleBody
|
|
2249
|
+
* @param {string} [xAccountId]
|
|
2254
2250
|
* @param {*} [options] Override http request option.
|
|
2255
2251
|
* @throws {RequiredError}
|
|
2256
2252
|
*/
|
|
2257
|
-
registeredVehiclesCreate(
|
|
2253
|
+
registeredVehiclesCreate(createRegisteredVehicleBody, xAccountId, options) {
|
|
2258
2254
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2259
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.registeredVehiclesCreate(
|
|
2255
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.registeredVehiclesCreate(createRegisteredVehicleBody, xAccountId, options);
|
|
2260
2256
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2261
2257
|
});
|
|
2262
2258
|
},
|
|
@@ -2286,7 +2282,7 @@ const DefaultApiFp = function (configuration) {
|
|
|
2286
2282
|
},
|
|
2287
2283
|
/**
|
|
2288
2284
|
*
|
|
2289
|
-
* @param {string} xAccountId
|
|
2285
|
+
* @param {string} [xAccountId]
|
|
2290
2286
|
* @param {*} [options] Override http request option.
|
|
2291
2287
|
* @throws {RequiredError}
|
|
2292
2288
|
*/
|
|
@@ -2814,13 +2810,13 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
2814
2810
|
},
|
|
2815
2811
|
/**
|
|
2816
2812
|
*
|
|
2817
|
-
* @param {string} xAccountId
|
|
2818
2813
|
* @param {CreateRegisteredVehicleBody} createRegisteredVehicleBody
|
|
2814
|
+
* @param {string} [xAccountId]
|
|
2819
2815
|
* @param {*} [options] Override http request option.
|
|
2820
2816
|
* @throws {RequiredError}
|
|
2821
2817
|
*/
|
|
2822
|
-
registeredVehiclesCreate(
|
|
2823
|
-
return localVarFp.registeredVehiclesCreate(
|
|
2818
|
+
registeredVehiclesCreate(createRegisteredVehicleBody, xAccountId, options) {
|
|
2819
|
+
return localVarFp.registeredVehiclesCreate(createRegisteredVehicleBody, xAccountId, options).then((request) => request(axios, basePath));
|
|
2824
2820
|
},
|
|
2825
2821
|
/**
|
|
2826
2822
|
*
|
|
@@ -2842,7 +2838,7 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
2842
2838
|
},
|
|
2843
2839
|
/**
|
|
2844
2840
|
*
|
|
2845
|
-
* @param {string} xAccountId
|
|
2841
|
+
* @param {string} [xAccountId]
|
|
2846
2842
|
* @param {*} [options] Override http request option.
|
|
2847
2843
|
* @throws {RequiredError}
|
|
2848
2844
|
*/
|
|
@@ -3365,14 +3361,14 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
3365
3361
|
}
|
|
3366
3362
|
/**
|
|
3367
3363
|
*
|
|
3368
|
-
* @param {string} xAccountId
|
|
3369
3364
|
* @param {CreateRegisteredVehicleBody} createRegisteredVehicleBody
|
|
3365
|
+
* @param {string} [xAccountId]
|
|
3370
3366
|
* @param {*} [options] Override http request option.
|
|
3371
3367
|
* @throws {RequiredError}
|
|
3372
3368
|
* @memberof DefaultApi
|
|
3373
3369
|
*/
|
|
3374
|
-
registeredVehiclesCreate(
|
|
3375
|
-
return (0, exports.DefaultApiFp)(this.configuration).registeredVehiclesCreate(
|
|
3370
|
+
registeredVehiclesCreate(createRegisteredVehicleBody, xAccountId, options) {
|
|
3371
|
+
return (0, exports.DefaultApiFp)(this.configuration).registeredVehiclesCreate(createRegisteredVehicleBody, xAccountId, options).then((request) => request(this.axios, this.basePath));
|
|
3376
3372
|
}
|
|
3377
3373
|
/**
|
|
3378
3374
|
*
|
|
@@ -3396,7 +3392,7 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
3396
3392
|
}
|
|
3397
3393
|
/**
|
|
3398
3394
|
*
|
|
3399
|
-
* @param {string} xAccountId
|
|
3395
|
+
* @param {string} [xAccountId]
|
|
3400
3396
|
* @param {*} [options] Override http request option.
|
|
3401
3397
|
* @throws {RequiredError}
|
|
3402
3398
|
* @memberof DefaultApi
|