ob-parking-sdk 0.0.52 → 0.0.54
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 +86 -604
- package/dist/api/api.d.ts +52 -365
- package/dist/api/api.js +65 -419
- package/package.json +1 -1
package/api/api.ts
CHANGED
|
@@ -670,50 +670,6 @@ export interface CreateVehicleBrandBody {
|
|
|
670
670
|
*/
|
|
671
671
|
'name': string;
|
|
672
672
|
}
|
|
673
|
-
/**
|
|
674
|
-
*
|
|
675
|
-
* @export
|
|
676
|
-
* @interface CreateVehicleModelBody
|
|
677
|
-
*/
|
|
678
|
-
export interface CreateVehicleModelBody {
|
|
679
|
-
/**
|
|
680
|
-
*
|
|
681
|
-
* @type {string}
|
|
682
|
-
* @memberof CreateVehicleModelBody
|
|
683
|
-
*/
|
|
684
|
-
'brand_id': string;
|
|
685
|
-
/**
|
|
686
|
-
*
|
|
687
|
-
* @type {string}
|
|
688
|
-
* @memberof CreateVehicleModelBody
|
|
689
|
-
*/
|
|
690
|
-
'name': string;
|
|
691
|
-
}
|
|
692
|
-
/**
|
|
693
|
-
*
|
|
694
|
-
* @export
|
|
695
|
-
* @interface CreateVehicleModelResponse
|
|
696
|
-
*/
|
|
697
|
-
export interface CreateVehicleModelResponse {
|
|
698
|
-
/**
|
|
699
|
-
*
|
|
700
|
-
* @type {string}
|
|
701
|
-
* @memberof CreateVehicleModelResponse
|
|
702
|
-
*/
|
|
703
|
-
'brand_id': string;
|
|
704
|
-
/**
|
|
705
|
-
*
|
|
706
|
-
* @type {string}
|
|
707
|
-
* @memberof CreateVehicleModelResponse
|
|
708
|
-
*/
|
|
709
|
-
'name': string;
|
|
710
|
-
/**
|
|
711
|
-
*
|
|
712
|
-
* @type {string}
|
|
713
|
-
* @memberof CreateVehicleModelResponse
|
|
714
|
-
*/
|
|
715
|
-
'id': string;
|
|
716
|
-
}
|
|
717
673
|
/**
|
|
718
674
|
*
|
|
719
675
|
* @export
|
|
@@ -733,31 +689,6 @@ export interface DeleteVehicleBrandResponse {
|
|
|
733
689
|
*/
|
|
734
690
|
'id': string;
|
|
735
691
|
}
|
|
736
|
-
/**
|
|
737
|
-
*
|
|
738
|
-
* @export
|
|
739
|
-
* @interface DeleteVehicleModelResponse
|
|
740
|
-
*/
|
|
741
|
-
export interface DeleteVehicleModelResponse {
|
|
742
|
-
/**
|
|
743
|
-
*
|
|
744
|
-
* @type {string}
|
|
745
|
-
* @memberof DeleteVehicleModelResponse
|
|
746
|
-
*/
|
|
747
|
-
'brand_id': string;
|
|
748
|
-
/**
|
|
749
|
-
*
|
|
750
|
-
* @type {string}
|
|
751
|
-
* @memberof DeleteVehicleModelResponse
|
|
752
|
-
*/
|
|
753
|
-
'name': string;
|
|
754
|
-
/**
|
|
755
|
-
*
|
|
756
|
-
* @type {string}
|
|
757
|
-
* @memberof DeleteVehicleModelResponse
|
|
758
|
-
*/
|
|
759
|
-
'id': string;
|
|
760
|
-
}
|
|
761
692
|
/**
|
|
762
693
|
*
|
|
763
694
|
* @export
|
|
@@ -3045,16 +2976,16 @@ export interface UpdateRegisteredVehicleBody {
|
|
|
3045
2976
|
'plate_province'?: string | null;
|
|
3046
2977
|
/**
|
|
3047
2978
|
*
|
|
3048
|
-
* @type {
|
|
2979
|
+
* @type {VehicleType}
|
|
3049
2980
|
* @memberof UpdateRegisteredVehicleBody
|
|
3050
2981
|
*/
|
|
3051
|
-
'
|
|
2982
|
+
'vehicle_type'?: VehicleType;
|
|
3052
2983
|
/**
|
|
3053
2984
|
*
|
|
3054
|
-
* @type {
|
|
2985
|
+
* @type {string}
|
|
3055
2986
|
* @memberof UpdateRegisteredVehicleBody
|
|
3056
2987
|
*/
|
|
3057
|
-
'
|
|
2988
|
+
'id': string;
|
|
3058
2989
|
}
|
|
3059
2990
|
|
|
3060
2991
|
|
|
@@ -3071,50 +3002,6 @@ export interface UpdateVehicleBrandBody {
|
|
|
3071
3002
|
*/
|
|
3072
3003
|
'name'?: string;
|
|
3073
3004
|
}
|
|
3074
|
-
/**
|
|
3075
|
-
*
|
|
3076
|
-
* @export
|
|
3077
|
-
* @interface UpdateVehicleModelBody
|
|
3078
|
-
*/
|
|
3079
|
-
export interface UpdateVehicleModelBody {
|
|
3080
|
-
/**
|
|
3081
|
-
*
|
|
3082
|
-
* @type {string}
|
|
3083
|
-
* @memberof UpdateVehicleModelBody
|
|
3084
|
-
*/
|
|
3085
|
-
'brand_id'?: string;
|
|
3086
|
-
/**
|
|
3087
|
-
*
|
|
3088
|
-
* @type {string}
|
|
3089
|
-
* @memberof UpdateVehicleModelBody
|
|
3090
|
-
*/
|
|
3091
|
-
'name'?: string;
|
|
3092
|
-
}
|
|
3093
|
-
/**
|
|
3094
|
-
*
|
|
3095
|
-
* @export
|
|
3096
|
-
* @interface UpdateVehicleModelResponse
|
|
3097
|
-
*/
|
|
3098
|
-
export interface UpdateVehicleModelResponse {
|
|
3099
|
-
/**
|
|
3100
|
-
*
|
|
3101
|
-
* @type {string}
|
|
3102
|
-
* @memberof UpdateVehicleModelResponse
|
|
3103
|
-
*/
|
|
3104
|
-
'brand_id': string;
|
|
3105
|
-
/**
|
|
3106
|
-
*
|
|
3107
|
-
* @type {string}
|
|
3108
|
-
* @memberof UpdateVehicleModelResponse
|
|
3109
|
-
*/
|
|
3110
|
-
'name': string;
|
|
3111
|
-
/**
|
|
3112
|
-
*
|
|
3113
|
-
* @type {string}
|
|
3114
|
-
* @memberof UpdateVehicleModelResponse
|
|
3115
|
-
*/
|
|
3116
|
-
'id': string;
|
|
3117
|
-
}
|
|
3118
3005
|
/**
|
|
3119
3006
|
*
|
|
3120
3007
|
* @export
|
|
@@ -3199,96 +3086,70 @@ export interface VehicleBrandIndexQuery {
|
|
|
3199
3086
|
export interface VehicleBrandIndexResponse {
|
|
3200
3087
|
/**
|
|
3201
3088
|
*
|
|
3202
|
-
* @type {
|
|
3089
|
+
* @type {Array<VehicleBrandIndexResponseVehicleModelsInner>}
|
|
3203
3090
|
* @memberof VehicleBrandIndexResponse
|
|
3204
3091
|
*/
|
|
3205
|
-
'
|
|
3092
|
+
'vehicle_models': Array<VehicleBrandIndexResponseVehicleModelsInner>;
|
|
3206
3093
|
/**
|
|
3207
3094
|
*
|
|
3208
3095
|
* @type {string}
|
|
3209
3096
|
* @memberof VehicleBrandIndexResponse
|
|
3210
3097
|
*/
|
|
3211
|
-
'
|
|
3212
|
-
}
|
|
3213
|
-
/**
|
|
3214
|
-
*
|
|
3215
|
-
* @export
|
|
3216
|
-
* @interface VehicleBrandResponse
|
|
3217
|
-
*/
|
|
3218
|
-
export interface VehicleBrandResponse {
|
|
3098
|
+
'description'?: string;
|
|
3219
3099
|
/**
|
|
3220
3100
|
*
|
|
3221
3101
|
* @type {string}
|
|
3222
|
-
* @memberof
|
|
3102
|
+
* @memberof VehicleBrandIndexResponse
|
|
3223
3103
|
*/
|
|
3224
3104
|
'name': string;
|
|
3225
3105
|
/**
|
|
3226
3106
|
*
|
|
3227
3107
|
* @type {string}
|
|
3228
|
-
* @memberof
|
|
3108
|
+
* @memberof VehicleBrandIndexResponse
|
|
3229
3109
|
*/
|
|
3230
3110
|
'id': string;
|
|
3231
3111
|
}
|
|
3232
3112
|
/**
|
|
3233
3113
|
*
|
|
3234
3114
|
* @export
|
|
3235
|
-
* @interface
|
|
3115
|
+
* @interface VehicleBrandIndexResponseVehicleModelsInner
|
|
3236
3116
|
*/
|
|
3237
|
-
export interface
|
|
3238
|
-
/**
|
|
3239
|
-
*
|
|
3240
|
-
* @type {string}
|
|
3241
|
-
* @memberof VehicleModelIndexQuery
|
|
3242
|
-
*/
|
|
3243
|
-
'name'?: string;
|
|
3117
|
+
export interface VehicleBrandIndexResponseVehicleModelsInner {
|
|
3244
3118
|
/**
|
|
3245
3119
|
*
|
|
3246
3120
|
* @type {string}
|
|
3247
|
-
* @memberof
|
|
3121
|
+
* @memberof VehicleBrandIndexResponseVehicleModelsInner
|
|
3248
3122
|
*/
|
|
3249
|
-
'
|
|
3250
|
-
}
|
|
3251
|
-
/**
|
|
3252
|
-
*
|
|
3253
|
-
* @export
|
|
3254
|
-
* @interface VehicleModelIndexResponse
|
|
3255
|
-
*/
|
|
3256
|
-
export interface VehicleModelIndexResponse {
|
|
3257
|
-
/**
|
|
3258
|
-
*
|
|
3259
|
-
* @type {VehicleModelIndexResponseBrand}
|
|
3260
|
-
* @memberof VehicleModelIndexResponse
|
|
3261
|
-
*/
|
|
3262
|
-
'brand': VehicleModelIndexResponseBrand;
|
|
3123
|
+
'description'?: string;
|
|
3263
3124
|
/**
|
|
3264
3125
|
*
|
|
3265
3126
|
* @type {string}
|
|
3266
|
-
* @memberof
|
|
3127
|
+
* @memberof VehicleBrandIndexResponseVehicleModelsInner
|
|
3267
3128
|
*/
|
|
3268
3129
|
'name': string;
|
|
3269
3130
|
/**
|
|
3270
3131
|
*
|
|
3271
3132
|
* @type {string}
|
|
3272
|
-
* @memberof
|
|
3133
|
+
* @memberof VehicleBrandIndexResponseVehicleModelsInner
|
|
3273
3134
|
*/
|
|
3274
|
-
'id'
|
|
3135
|
+
'id'?: string;
|
|
3275
3136
|
}
|
|
3276
3137
|
/**
|
|
3277
3138
|
*
|
|
3278
3139
|
* @export
|
|
3279
|
-
* @interface
|
|
3140
|
+
* @interface VehicleBrandResponse
|
|
3280
3141
|
*/
|
|
3281
|
-
export interface
|
|
3142
|
+
export interface VehicleBrandResponse {
|
|
3282
3143
|
/**
|
|
3283
3144
|
*
|
|
3284
3145
|
* @type {string}
|
|
3285
|
-
* @memberof
|
|
3146
|
+
* @memberof VehicleBrandResponse
|
|
3286
3147
|
*/
|
|
3287
3148
|
'name': string;
|
|
3288
3149
|
/**
|
|
3289
3150
|
*
|
|
3290
3151
|
* @type {string}
|
|
3291
|
-
* @memberof
|
|
3152
|
+
* @memberof VehicleBrandResponse
|
|
3292
3153
|
*/
|
|
3293
3154
|
'id': string;
|
|
3294
3155
|
}
|
|
@@ -4749,15 +4610,12 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
4749
4610
|
},
|
|
4750
4611
|
/**
|
|
4751
4612
|
*
|
|
4752
|
-
* @param {CreateRegisteredVehicleBody} createRegisteredVehicleBody
|
|
4753
4613
|
* @param {string} [xAccountId]
|
|
4754
4614
|
* @param {*} [options] Override http request option.
|
|
4755
4615
|
* @throws {RequiredError}
|
|
4756
4616
|
*/
|
|
4757
|
-
|
|
4758
|
-
|
|
4759
|
-
assertParamExists('registeredVehiclesCreate', 'createRegisteredVehicleBody', createRegisteredVehicleBody)
|
|
4760
|
-
const localVarPath = `/registered-vehicles`;
|
|
4617
|
+
registeredVehiclesGetVehiclesByAccount: async (xAccountId?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4618
|
+
const localVarPath = `/registered-vehicles/account`;
|
|
4761
4619
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4762
4620
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4763
4621
|
let baseOptions;
|
|
@@ -4765,7 +4623,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
4765
4623
|
baseOptions = configuration.baseOptions;
|
|
4766
4624
|
}
|
|
4767
4625
|
|
|
4768
|
-
const localVarRequestOptions = { method: '
|
|
4626
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
4769
4627
|
const localVarHeaderParameter = {} as any;
|
|
4770
4628
|
const localVarQueryParameter = {} as any;
|
|
4771
4629
|
|
|
@@ -4775,12 +4633,9 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
4775
4633
|
|
|
4776
4634
|
|
|
4777
4635
|
|
|
4778
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4779
|
-
|
|
4780
4636
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4781
4637
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4782
4638
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4783
|
-
localVarRequestOptions.data = serializeDataIfNeeded(createRegisteredVehicleBody, localVarRequestOptions, configuration)
|
|
4784
4639
|
|
|
4785
4640
|
return {
|
|
4786
4641
|
url: toPathString(localVarUrlObj),
|
|
@@ -4789,15 +4644,15 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
4789
4644
|
},
|
|
4790
4645
|
/**
|
|
4791
4646
|
*
|
|
4792
|
-
* @param {string}
|
|
4647
|
+
* @param {string} plateNo
|
|
4648
|
+
* @param {string} [xAccountId]
|
|
4793
4649
|
* @param {*} [options] Override http request option.
|
|
4794
4650
|
* @throws {RequiredError}
|
|
4795
4651
|
*/
|
|
4796
|
-
|
|
4797
|
-
// verify required parameter '
|
|
4798
|
-
assertParamExists('
|
|
4799
|
-
const localVarPath = `/registered-vehicles/
|
|
4800
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
4652
|
+
registeredVehiclesIsLicensePlateRegistered: async (plateNo: string, xAccountId?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4653
|
+
// verify required parameter 'plateNo' is not null or undefined
|
|
4654
|
+
assertParamExists('registeredVehiclesIsLicensePlateRegistered', 'plateNo', plateNo)
|
|
4655
|
+
const localVarPath = `/registered-vehicles/is-license-plate-registered`;
|
|
4801
4656
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4802
4657
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4803
4658
|
let baseOptions;
|
|
@@ -4805,42 +4660,17 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
4805
4660
|
baseOptions = configuration.baseOptions;
|
|
4806
4661
|
}
|
|
4807
4662
|
|
|
4808
|
-
const localVarRequestOptions = { method: '
|
|
4663
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
4809
4664
|
const localVarHeaderParameter = {} as any;
|
|
4810
4665
|
const localVarQueryParameter = {} as any;
|
|
4811
4666
|
|
|
4812
|
-
|
|
4813
|
-
|
|
4814
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4815
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4816
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4817
|
-
|
|
4818
|
-
return {
|
|
4819
|
-
url: toPathString(localVarUrlObj),
|
|
4820
|
-
options: localVarRequestOptions,
|
|
4821
|
-
};
|
|
4822
|
-
},
|
|
4823
|
-
/**
|
|
4824
|
-
*
|
|
4825
|
-
* @param {string} id
|
|
4826
|
-
* @param {*} [options] Override http request option.
|
|
4827
|
-
* @throws {RequiredError}
|
|
4828
|
-
*/
|
|
4829
|
-
registeredVehiclesGet: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4830
|
-
// verify required parameter 'id' is not null or undefined
|
|
4831
|
-
assertParamExists('registeredVehiclesGet', 'id', id)
|
|
4832
|
-
const localVarPath = `/registered-vehicles/{id}`
|
|
4833
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
4834
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4835
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4836
|
-
let baseOptions;
|
|
4837
|
-
if (configuration) {
|
|
4838
|
-
baseOptions = configuration.baseOptions;
|
|
4667
|
+
if (plateNo !== undefined) {
|
|
4668
|
+
localVarQueryParameter['plate_no'] = plateNo;
|
|
4839
4669
|
}
|
|
4840
4670
|
|
|
4841
|
-
|
|
4842
|
-
|
|
4843
|
-
|
|
4671
|
+
if (xAccountId != null) {
|
|
4672
|
+
localVarHeaderParameter['x-account-id'] = String(xAccountId);
|
|
4673
|
+
}
|
|
4844
4674
|
|
|
4845
4675
|
|
|
4846
4676
|
|
|
@@ -4855,12 +4685,15 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
4855
4685
|
},
|
|
4856
4686
|
/**
|
|
4857
4687
|
*
|
|
4688
|
+
* @param {CreateRegisteredVehicleBody} createRegisteredVehicleBody
|
|
4858
4689
|
* @param {string} [xAccountId]
|
|
4859
4690
|
* @param {*} [options] Override http request option.
|
|
4860
4691
|
* @throws {RequiredError}
|
|
4861
4692
|
*/
|
|
4862
|
-
|
|
4863
|
-
|
|
4693
|
+
registeredVehiclesRegister: async (createRegisteredVehicleBody: CreateRegisteredVehicleBody, xAccountId?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4694
|
+
// verify required parameter 'createRegisteredVehicleBody' is not null or undefined
|
|
4695
|
+
assertParamExists('registeredVehiclesRegister', 'createRegisteredVehicleBody', createRegisteredVehicleBody)
|
|
4696
|
+
const localVarPath = `/registered-vehicles/register`;
|
|
4864
4697
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4865
4698
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4866
4699
|
let baseOptions;
|
|
@@ -4868,7 +4701,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
4868
4701
|
baseOptions = configuration.baseOptions;
|
|
4869
4702
|
}
|
|
4870
4703
|
|
|
4871
|
-
const localVarRequestOptions = { method: '
|
|
4704
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
4872
4705
|
const localVarHeaderParameter = {} as any;
|
|
4873
4706
|
const localVarQueryParameter = {} as any;
|
|
4874
4707
|
|
|
@@ -4878,38 +4711,12 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
4878
4711
|
|
|
4879
4712
|
|
|
4880
4713
|
|
|
4881
|
-
|
|
4882
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4883
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4884
|
-
|
|
4885
|
-
return {
|
|
4886
|
-
url: toPathString(localVarUrlObj),
|
|
4887
|
-
options: localVarRequestOptions,
|
|
4888
|
-
};
|
|
4889
|
-
},
|
|
4890
|
-
/**
|
|
4891
|
-
*
|
|
4892
|
-
* @param {*} [options] Override http request option.
|
|
4893
|
-
* @throws {RequiredError}
|
|
4894
|
-
*/
|
|
4895
|
-
registeredVehiclesIndex: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4896
|
-
const localVarPath = `/registered-vehicles`;
|
|
4897
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4898
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4899
|
-
let baseOptions;
|
|
4900
|
-
if (configuration) {
|
|
4901
|
-
baseOptions = configuration.baseOptions;
|
|
4902
|
-
}
|
|
4903
|
-
|
|
4904
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
4905
|
-
const localVarHeaderParameter = {} as any;
|
|
4906
|
-
const localVarQueryParameter = {} as any;
|
|
4907
|
-
|
|
4714
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4908
4715
|
|
|
4909
|
-
|
|
4910
4716
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4911
4717
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4912
4718
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4719
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createRegisteredVehicleBody, localVarRequestOptions, configuration)
|
|
4913
4720
|
|
|
4914
4721
|
return {
|
|
4915
4722
|
url: toPathString(localVarUrlObj),
|
|
@@ -4918,18 +4725,15 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
4918
4725
|
},
|
|
4919
4726
|
/**
|
|
4920
4727
|
*
|
|
4921
|
-
* @param {string} id
|
|
4922
4728
|
* @param {UpdateRegisteredVehicleBody} updateRegisteredVehicleBody
|
|
4729
|
+
* @param {string} [xAccountId]
|
|
4923
4730
|
* @param {*} [options] Override http request option.
|
|
4924
4731
|
* @throws {RequiredError}
|
|
4925
4732
|
*/
|
|
4926
|
-
registeredVehiclesUpdate: async (
|
|
4927
|
-
// verify required parameter 'id' is not null or undefined
|
|
4928
|
-
assertParamExists('registeredVehiclesUpdate', 'id', id)
|
|
4733
|
+
registeredVehiclesUpdate: async (updateRegisteredVehicleBody: UpdateRegisteredVehicleBody, xAccountId?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4929
4734
|
// verify required parameter 'updateRegisteredVehicleBody' is not null or undefined
|
|
4930
4735
|
assertParamExists('registeredVehiclesUpdate', 'updateRegisteredVehicleBody', updateRegisteredVehicleBody)
|
|
4931
|
-
const localVarPath = `/registered-vehicles/{id}
|
|
4932
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
4736
|
+
const localVarPath = `/registered-vehicles/update/{id}`;
|
|
4933
4737
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4934
4738
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4935
4739
|
let baseOptions;
|
|
@@ -4941,6 +4745,10 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
4941
4745
|
const localVarHeaderParameter = {} as any;
|
|
4942
4746
|
const localVarQueryParameter = {} as any;
|
|
4943
4747
|
|
|
4748
|
+
if (xAccountId != null) {
|
|
4749
|
+
localVarHeaderParameter['x-account-id'] = String(xAccountId);
|
|
4750
|
+
}
|
|
4751
|
+
|
|
4944
4752
|
|
|
4945
4753
|
|
|
4946
4754
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
@@ -5153,152 +4961,6 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
5153
4961
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
5154
4962
|
localVarRequestOptions.data = serializeDataIfNeeded(updateVehicleBrandBody, localVarRequestOptions, configuration)
|
|
5155
4963
|
|
|
5156
|
-
return {
|
|
5157
|
-
url: toPathString(localVarUrlObj),
|
|
5158
|
-
options: localVarRequestOptions,
|
|
5159
|
-
};
|
|
5160
|
-
},
|
|
5161
|
-
/**
|
|
5162
|
-
*
|
|
5163
|
-
* @param {CreateVehicleModelBody} createVehicleModelBody
|
|
5164
|
-
* @param {*} [options] Override http request option.
|
|
5165
|
-
* @throws {RequiredError}
|
|
5166
|
-
*/
|
|
5167
|
-
vehicleModelsCreate: async (createVehicleModelBody: CreateVehicleModelBody, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5168
|
-
// verify required parameter 'createVehicleModelBody' is not null or undefined
|
|
5169
|
-
assertParamExists('vehicleModelsCreate', 'createVehicleModelBody', createVehicleModelBody)
|
|
5170
|
-
const localVarPath = `/vehicle-models`;
|
|
5171
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5172
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5173
|
-
let baseOptions;
|
|
5174
|
-
if (configuration) {
|
|
5175
|
-
baseOptions = configuration.baseOptions;
|
|
5176
|
-
}
|
|
5177
|
-
|
|
5178
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
5179
|
-
const localVarHeaderParameter = {} as any;
|
|
5180
|
-
const localVarQueryParameter = {} as any;
|
|
5181
|
-
|
|
5182
|
-
|
|
5183
|
-
|
|
5184
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5185
|
-
|
|
5186
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5187
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5188
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
5189
|
-
localVarRequestOptions.data = serializeDataIfNeeded(createVehicleModelBody, localVarRequestOptions, configuration)
|
|
5190
|
-
|
|
5191
|
-
return {
|
|
5192
|
-
url: toPathString(localVarUrlObj),
|
|
5193
|
-
options: localVarRequestOptions,
|
|
5194
|
-
};
|
|
5195
|
-
},
|
|
5196
|
-
/**
|
|
5197
|
-
*
|
|
5198
|
-
* @param {string} id
|
|
5199
|
-
* @param {*} [options] Override http request option.
|
|
5200
|
-
* @throws {RequiredError}
|
|
5201
|
-
*/
|
|
5202
|
-
vehicleModelsDelete: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5203
|
-
// verify required parameter 'id' is not null or undefined
|
|
5204
|
-
assertParamExists('vehicleModelsDelete', 'id', id)
|
|
5205
|
-
const localVarPath = `/vehicle-models/{id}`
|
|
5206
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
5207
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5208
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5209
|
-
let baseOptions;
|
|
5210
|
-
if (configuration) {
|
|
5211
|
-
baseOptions = configuration.baseOptions;
|
|
5212
|
-
}
|
|
5213
|
-
|
|
5214
|
-
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
5215
|
-
const localVarHeaderParameter = {} as any;
|
|
5216
|
-
const localVarQueryParameter = {} as any;
|
|
5217
|
-
|
|
5218
|
-
|
|
5219
|
-
|
|
5220
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5221
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5222
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
5223
|
-
|
|
5224
|
-
return {
|
|
5225
|
-
url: toPathString(localVarUrlObj),
|
|
5226
|
-
options: localVarRequestOptions,
|
|
5227
|
-
};
|
|
5228
|
-
},
|
|
5229
|
-
/**
|
|
5230
|
-
*
|
|
5231
|
-
* @param {string} [name]
|
|
5232
|
-
* @param {string} [brandId]
|
|
5233
|
-
* @param {*} [options] Override http request option.
|
|
5234
|
-
* @throws {RequiredError}
|
|
5235
|
-
*/
|
|
5236
|
-
vehicleModelsIndex: async (name?: string, brandId?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5237
|
-
const localVarPath = `/vehicle-models`;
|
|
5238
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5239
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5240
|
-
let baseOptions;
|
|
5241
|
-
if (configuration) {
|
|
5242
|
-
baseOptions = configuration.baseOptions;
|
|
5243
|
-
}
|
|
5244
|
-
|
|
5245
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
5246
|
-
const localVarHeaderParameter = {} as any;
|
|
5247
|
-
const localVarQueryParameter = {} as any;
|
|
5248
|
-
|
|
5249
|
-
if (name !== undefined) {
|
|
5250
|
-
localVarQueryParameter['name'] = name;
|
|
5251
|
-
}
|
|
5252
|
-
|
|
5253
|
-
if (brandId !== undefined) {
|
|
5254
|
-
localVarQueryParameter['brand_id'] = brandId;
|
|
5255
|
-
}
|
|
5256
|
-
|
|
5257
|
-
|
|
5258
|
-
|
|
5259
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5260
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5261
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
5262
|
-
|
|
5263
|
-
return {
|
|
5264
|
-
url: toPathString(localVarUrlObj),
|
|
5265
|
-
options: localVarRequestOptions,
|
|
5266
|
-
};
|
|
5267
|
-
},
|
|
5268
|
-
/**
|
|
5269
|
-
*
|
|
5270
|
-
* @param {string} id
|
|
5271
|
-
* @param {UpdateVehicleModelBody} updateVehicleModelBody
|
|
5272
|
-
* @param {*} [options] Override http request option.
|
|
5273
|
-
* @throws {RequiredError}
|
|
5274
|
-
*/
|
|
5275
|
-
vehicleModelsUpdate: async (id: string, updateVehicleModelBody: UpdateVehicleModelBody, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5276
|
-
// verify required parameter 'id' is not null or undefined
|
|
5277
|
-
assertParamExists('vehicleModelsUpdate', 'id', id)
|
|
5278
|
-
// verify required parameter 'updateVehicleModelBody' is not null or undefined
|
|
5279
|
-
assertParamExists('vehicleModelsUpdate', 'updateVehicleModelBody', updateVehicleModelBody)
|
|
5280
|
-
const localVarPath = `/vehicle-models/{id}`
|
|
5281
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
5282
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5283
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5284
|
-
let baseOptions;
|
|
5285
|
-
if (configuration) {
|
|
5286
|
-
baseOptions = configuration.baseOptions;
|
|
5287
|
-
}
|
|
5288
|
-
|
|
5289
|
-
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
5290
|
-
const localVarHeaderParameter = {} as any;
|
|
5291
|
-
const localVarQueryParameter = {} as any;
|
|
5292
|
-
|
|
5293
|
-
|
|
5294
|
-
|
|
5295
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5296
|
-
|
|
5297
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5298
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5299
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
5300
|
-
localVarRequestOptions.data = serializeDataIfNeeded(updateVehicleModelBody, localVarRequestOptions, configuration)
|
|
5301
|
-
|
|
5302
4964
|
return {
|
|
5303
4965
|
url: toPathString(localVarUrlObj),
|
|
5304
4966
|
options: localVarRequestOptions,
|
|
@@ -5710,63 +5372,45 @@ export const DefaultApiFp = function(configuration?: Configuration) {
|
|
|
5710
5372
|
},
|
|
5711
5373
|
/**
|
|
5712
5374
|
*
|
|
5713
|
-
* @param {CreateRegisteredVehicleBody} createRegisteredVehicleBody
|
|
5714
5375
|
* @param {string} [xAccountId]
|
|
5715
5376
|
* @param {*} [options] Override http request option.
|
|
5716
5377
|
* @throws {RequiredError}
|
|
5717
5378
|
*/
|
|
5718
|
-
async
|
|
5719
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
5720
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
5721
|
-
},
|
|
5722
|
-
/**
|
|
5723
|
-
*
|
|
5724
|
-
* @param {string} id
|
|
5725
|
-
* @param {*} [options] Override http request option.
|
|
5726
|
-
* @throws {RequiredError}
|
|
5727
|
-
*/
|
|
5728
|
-
async registeredVehiclesDelete(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RegisteredVehicleResponse>> {
|
|
5729
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.registeredVehiclesDelete(id, options);
|
|
5730
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
5731
|
-
},
|
|
5732
|
-
/**
|
|
5733
|
-
*
|
|
5734
|
-
* @param {string} id
|
|
5735
|
-
* @param {*} [options] Override http request option.
|
|
5736
|
-
* @throws {RequiredError}
|
|
5737
|
-
*/
|
|
5738
|
-
async registeredVehiclesGet(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RegisteredVehicleResponse>> {
|
|
5739
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.registeredVehiclesGet(id, options);
|
|
5379
|
+
async registeredVehiclesGetVehiclesByAccount(xAccountId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<RegisteredVehicleIndexResponse>>> {
|
|
5380
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.registeredVehiclesGetVehiclesByAccount(xAccountId, options);
|
|
5740
5381
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
5741
5382
|
},
|
|
5742
5383
|
/**
|
|
5743
5384
|
*
|
|
5385
|
+
* @param {string} plateNo
|
|
5744
5386
|
* @param {string} [xAccountId]
|
|
5745
5387
|
* @param {*} [options] Override http request option.
|
|
5746
5388
|
* @throws {RequiredError}
|
|
5747
5389
|
*/
|
|
5748
|
-
async
|
|
5749
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
5390
|
+
async registeredVehiclesIsLicensePlateRegistered(plateNo: string, xAccountId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
|
|
5391
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.registeredVehiclesIsLicensePlateRegistered(plateNo, xAccountId, options);
|
|
5750
5392
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
5751
5393
|
},
|
|
5752
5394
|
/**
|
|
5753
5395
|
*
|
|
5396
|
+
* @param {CreateRegisteredVehicleBody} createRegisteredVehicleBody
|
|
5397
|
+
* @param {string} [xAccountId]
|
|
5754
5398
|
* @param {*} [options] Override http request option.
|
|
5755
5399
|
* @throws {RequiredError}
|
|
5756
5400
|
*/
|
|
5757
|
-
async
|
|
5758
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
5401
|
+
async registeredVehiclesRegister(createRegisteredVehicleBody: CreateRegisteredVehicleBody, xAccountId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RegisteredVehicleResponse>> {
|
|
5402
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.registeredVehiclesRegister(createRegisteredVehicleBody, xAccountId, options);
|
|
5759
5403
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
5760
5404
|
},
|
|
5761
5405
|
/**
|
|
5762
5406
|
*
|
|
5763
|
-
* @param {string} id
|
|
5764
5407
|
* @param {UpdateRegisteredVehicleBody} updateRegisteredVehicleBody
|
|
5408
|
+
* @param {string} [xAccountId]
|
|
5765
5409
|
* @param {*} [options] Override http request option.
|
|
5766
5410
|
* @throws {RequiredError}
|
|
5767
5411
|
*/
|
|
5768
|
-
async registeredVehiclesUpdate(
|
|
5769
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.registeredVehiclesUpdate(
|
|
5412
|
+
async registeredVehiclesUpdate(updateRegisteredVehicleBody: UpdateRegisteredVehicleBody, xAccountId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RegisteredVehicleResponse>> {
|
|
5413
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.registeredVehiclesUpdate(updateRegisteredVehicleBody, xAccountId, options);
|
|
5770
5414
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
5771
5415
|
},
|
|
5772
5416
|
/**
|
|
@@ -5829,48 +5473,6 @@ export const DefaultApiFp = function(configuration?: Configuration) {
|
|
|
5829
5473
|
const localVarAxiosArgs = await localVarAxiosParamCreator.vehicleBrandsUpdate(id, updateVehicleBrandBody, options);
|
|
5830
5474
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
5831
5475
|
},
|
|
5832
|
-
/**
|
|
5833
|
-
*
|
|
5834
|
-
* @param {CreateVehicleModelBody} createVehicleModelBody
|
|
5835
|
-
* @param {*} [options] Override http request option.
|
|
5836
|
-
* @throws {RequiredError}
|
|
5837
|
-
*/
|
|
5838
|
-
async vehicleModelsCreate(createVehicleModelBody: CreateVehicleModelBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateVehicleModelResponse>> {
|
|
5839
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.vehicleModelsCreate(createVehicleModelBody, options);
|
|
5840
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
5841
|
-
},
|
|
5842
|
-
/**
|
|
5843
|
-
*
|
|
5844
|
-
* @param {string} id
|
|
5845
|
-
* @param {*} [options] Override http request option.
|
|
5846
|
-
* @throws {RequiredError}
|
|
5847
|
-
*/
|
|
5848
|
-
async vehicleModelsDelete(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteVehicleModelResponse>> {
|
|
5849
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.vehicleModelsDelete(id, options);
|
|
5850
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
5851
|
-
},
|
|
5852
|
-
/**
|
|
5853
|
-
*
|
|
5854
|
-
* @param {string} [name]
|
|
5855
|
-
* @param {string} [brandId]
|
|
5856
|
-
* @param {*} [options] Override http request option.
|
|
5857
|
-
* @throws {RequiredError}
|
|
5858
|
-
*/
|
|
5859
|
-
async vehicleModelsIndex(name?: string, brandId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<VehicleModelIndexResponse>>> {
|
|
5860
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.vehicleModelsIndex(name, brandId, options);
|
|
5861
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
5862
|
-
},
|
|
5863
|
-
/**
|
|
5864
|
-
*
|
|
5865
|
-
* @param {string} id
|
|
5866
|
-
* @param {UpdateVehicleModelBody} updateVehicleModelBody
|
|
5867
|
-
* @param {*} [options] Override http request option.
|
|
5868
|
-
* @throws {RequiredError}
|
|
5869
|
-
*/
|
|
5870
|
-
async vehicleModelsUpdate(id: string, updateVehicleModelBody: UpdateVehicleModelBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateVehicleModelResponse>> {
|
|
5871
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.vehicleModelsUpdate(id, updateVehicleModelBody, options);
|
|
5872
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
5873
|
-
},
|
|
5874
5476
|
}
|
|
5875
5477
|
};
|
|
5876
5478
|
|
|
@@ -6243,58 +5845,42 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
|
|
|
6243
5845
|
},
|
|
6244
5846
|
/**
|
|
6245
5847
|
*
|
|
6246
|
-
* @param {CreateRegisteredVehicleBody} createRegisteredVehicleBody
|
|
6247
5848
|
* @param {string} [xAccountId]
|
|
6248
5849
|
* @param {*} [options] Override http request option.
|
|
6249
5850
|
* @throws {RequiredError}
|
|
6250
5851
|
*/
|
|
6251
|
-
|
|
6252
|
-
return localVarFp.
|
|
6253
|
-
},
|
|
6254
|
-
/**
|
|
6255
|
-
*
|
|
6256
|
-
* @param {string} id
|
|
6257
|
-
* @param {*} [options] Override http request option.
|
|
6258
|
-
* @throws {RequiredError}
|
|
6259
|
-
*/
|
|
6260
|
-
registeredVehiclesDelete(id: string, options?: any): AxiosPromise<RegisteredVehicleResponse> {
|
|
6261
|
-
return localVarFp.registeredVehiclesDelete(id, options).then((request) => request(axios, basePath));
|
|
6262
|
-
},
|
|
6263
|
-
/**
|
|
6264
|
-
*
|
|
6265
|
-
* @param {string} id
|
|
6266
|
-
* @param {*} [options] Override http request option.
|
|
6267
|
-
* @throws {RequiredError}
|
|
6268
|
-
*/
|
|
6269
|
-
registeredVehiclesGet(id: string, options?: any): AxiosPromise<RegisteredVehicleResponse> {
|
|
6270
|
-
return localVarFp.registeredVehiclesGet(id, options).then((request) => request(axios, basePath));
|
|
5852
|
+
registeredVehiclesGetVehiclesByAccount(xAccountId?: string, options?: any): AxiosPromise<Array<RegisteredVehicleIndexResponse>> {
|
|
5853
|
+
return localVarFp.registeredVehiclesGetVehiclesByAccount(xAccountId, options).then((request) => request(axios, basePath));
|
|
6271
5854
|
},
|
|
6272
5855
|
/**
|
|
6273
5856
|
*
|
|
5857
|
+
* @param {string} plateNo
|
|
6274
5858
|
* @param {string} [xAccountId]
|
|
6275
5859
|
* @param {*} [options] Override http request option.
|
|
6276
5860
|
* @throws {RequiredError}
|
|
6277
5861
|
*/
|
|
6278
|
-
|
|
6279
|
-
return localVarFp.
|
|
5862
|
+
registeredVehiclesIsLicensePlateRegistered(plateNo: string, xAccountId?: string, options?: any): AxiosPromise<boolean> {
|
|
5863
|
+
return localVarFp.registeredVehiclesIsLicensePlateRegistered(plateNo, xAccountId, options).then((request) => request(axios, basePath));
|
|
6280
5864
|
},
|
|
6281
5865
|
/**
|
|
6282
5866
|
*
|
|
5867
|
+
* @param {CreateRegisteredVehicleBody} createRegisteredVehicleBody
|
|
5868
|
+
* @param {string} [xAccountId]
|
|
6283
5869
|
* @param {*} [options] Override http request option.
|
|
6284
5870
|
* @throws {RequiredError}
|
|
6285
5871
|
*/
|
|
6286
|
-
|
|
6287
|
-
return localVarFp.
|
|
5872
|
+
registeredVehiclesRegister(createRegisteredVehicleBody: CreateRegisteredVehicleBody, xAccountId?: string, options?: any): AxiosPromise<RegisteredVehicleResponse> {
|
|
5873
|
+
return localVarFp.registeredVehiclesRegister(createRegisteredVehicleBody, xAccountId, options).then((request) => request(axios, basePath));
|
|
6288
5874
|
},
|
|
6289
5875
|
/**
|
|
6290
5876
|
*
|
|
6291
|
-
* @param {string} id
|
|
6292
5877
|
* @param {UpdateRegisteredVehicleBody} updateRegisteredVehicleBody
|
|
5878
|
+
* @param {string} [xAccountId]
|
|
6293
5879
|
* @param {*} [options] Override http request option.
|
|
6294
5880
|
* @throws {RequiredError}
|
|
6295
5881
|
*/
|
|
6296
|
-
registeredVehiclesUpdate(
|
|
6297
|
-
return localVarFp.registeredVehiclesUpdate(
|
|
5882
|
+
registeredVehiclesUpdate(updateRegisteredVehicleBody: UpdateRegisteredVehicleBody, xAccountId?: string, options?: any): AxiosPromise<RegisteredVehicleResponse> {
|
|
5883
|
+
return localVarFp.registeredVehiclesUpdate(updateRegisteredVehicleBody, xAccountId, options).then((request) => request(axios, basePath));
|
|
6298
5884
|
},
|
|
6299
5885
|
/**
|
|
6300
5886
|
*
|
|
@@ -6350,44 +5936,6 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
|
|
|
6350
5936
|
vehicleBrandsUpdate(id: string, updateVehicleBrandBody: UpdateVehicleBrandBody, options?: any): AxiosPromise<VehicleBrandResponse> {
|
|
6351
5937
|
return localVarFp.vehicleBrandsUpdate(id, updateVehicleBrandBody, options).then((request) => request(axios, basePath));
|
|
6352
5938
|
},
|
|
6353
|
-
/**
|
|
6354
|
-
*
|
|
6355
|
-
* @param {CreateVehicleModelBody} createVehicleModelBody
|
|
6356
|
-
* @param {*} [options] Override http request option.
|
|
6357
|
-
* @throws {RequiredError}
|
|
6358
|
-
*/
|
|
6359
|
-
vehicleModelsCreate(createVehicleModelBody: CreateVehicleModelBody, options?: any): AxiosPromise<CreateVehicleModelResponse> {
|
|
6360
|
-
return localVarFp.vehicleModelsCreate(createVehicleModelBody, options).then((request) => request(axios, basePath));
|
|
6361
|
-
},
|
|
6362
|
-
/**
|
|
6363
|
-
*
|
|
6364
|
-
* @param {string} id
|
|
6365
|
-
* @param {*} [options] Override http request option.
|
|
6366
|
-
* @throws {RequiredError}
|
|
6367
|
-
*/
|
|
6368
|
-
vehicleModelsDelete(id: string, options?: any): AxiosPromise<DeleteVehicleModelResponse> {
|
|
6369
|
-
return localVarFp.vehicleModelsDelete(id, options).then((request) => request(axios, basePath));
|
|
6370
|
-
},
|
|
6371
|
-
/**
|
|
6372
|
-
*
|
|
6373
|
-
* @param {string} [name]
|
|
6374
|
-
* @param {string} [brandId]
|
|
6375
|
-
* @param {*} [options] Override http request option.
|
|
6376
|
-
* @throws {RequiredError}
|
|
6377
|
-
*/
|
|
6378
|
-
vehicleModelsIndex(name?: string, brandId?: string, options?: any): AxiosPromise<Array<VehicleModelIndexResponse>> {
|
|
6379
|
-
return localVarFp.vehicleModelsIndex(name, brandId, options).then((request) => request(axios, basePath));
|
|
6380
|
-
},
|
|
6381
|
-
/**
|
|
6382
|
-
*
|
|
6383
|
-
* @param {string} id
|
|
6384
|
-
* @param {UpdateVehicleModelBody} updateVehicleModelBody
|
|
6385
|
-
* @param {*} [options] Override http request option.
|
|
6386
|
-
* @throws {RequiredError}
|
|
6387
|
-
*/
|
|
6388
|
-
vehicleModelsUpdate(id: string, updateVehicleModelBody: UpdateVehicleModelBody, options?: any): AxiosPromise<UpdateVehicleModelResponse> {
|
|
6389
|
-
return localVarFp.vehicleModelsUpdate(id, updateVehicleModelBody, options).then((request) => request(axios, basePath));
|
|
6390
|
-
},
|
|
6391
5939
|
};
|
|
6392
5940
|
};
|
|
6393
5941
|
|
|
@@ -6828,69 +6376,49 @@ export class DefaultApi extends BaseAPI {
|
|
|
6828
6376
|
|
|
6829
6377
|
/**
|
|
6830
6378
|
*
|
|
6831
|
-
* @param {CreateRegisteredVehicleBody} createRegisteredVehicleBody
|
|
6832
6379
|
* @param {string} [xAccountId]
|
|
6833
6380
|
* @param {*} [options] Override http request option.
|
|
6834
6381
|
* @throws {RequiredError}
|
|
6835
6382
|
* @memberof DefaultApi
|
|
6836
6383
|
*/
|
|
6837
|
-
public
|
|
6838
|
-
return DefaultApiFp(this.configuration).
|
|
6839
|
-
}
|
|
6840
|
-
|
|
6841
|
-
/**
|
|
6842
|
-
*
|
|
6843
|
-
* @param {string} id
|
|
6844
|
-
* @param {*} [options] Override http request option.
|
|
6845
|
-
* @throws {RequiredError}
|
|
6846
|
-
* @memberof DefaultApi
|
|
6847
|
-
*/
|
|
6848
|
-
public registeredVehiclesDelete(id: string, options?: AxiosRequestConfig) {
|
|
6849
|
-
return DefaultApiFp(this.configuration).registeredVehiclesDelete(id, options).then((request) => request(this.axios, this.basePath));
|
|
6850
|
-
}
|
|
6851
|
-
|
|
6852
|
-
/**
|
|
6853
|
-
*
|
|
6854
|
-
* @param {string} id
|
|
6855
|
-
* @param {*} [options] Override http request option.
|
|
6856
|
-
* @throws {RequiredError}
|
|
6857
|
-
* @memberof DefaultApi
|
|
6858
|
-
*/
|
|
6859
|
-
public registeredVehiclesGet(id: string, options?: AxiosRequestConfig) {
|
|
6860
|
-
return DefaultApiFp(this.configuration).registeredVehiclesGet(id, options).then((request) => request(this.axios, this.basePath));
|
|
6384
|
+
public registeredVehiclesGetVehiclesByAccount(xAccountId?: string, options?: AxiosRequestConfig) {
|
|
6385
|
+
return DefaultApiFp(this.configuration).registeredVehiclesGetVehiclesByAccount(xAccountId, options).then((request) => request(this.axios, this.basePath));
|
|
6861
6386
|
}
|
|
6862
6387
|
|
|
6863
6388
|
/**
|
|
6864
6389
|
*
|
|
6390
|
+
* @param {string} plateNo
|
|
6865
6391
|
* @param {string} [xAccountId]
|
|
6866
6392
|
* @param {*} [options] Override http request option.
|
|
6867
6393
|
* @throws {RequiredError}
|
|
6868
6394
|
* @memberof DefaultApi
|
|
6869
6395
|
*/
|
|
6870
|
-
public
|
|
6871
|
-
return DefaultApiFp(this.configuration).
|
|
6396
|
+
public registeredVehiclesIsLicensePlateRegistered(plateNo: string, xAccountId?: string, options?: AxiosRequestConfig) {
|
|
6397
|
+
return DefaultApiFp(this.configuration).registeredVehiclesIsLicensePlateRegistered(plateNo, xAccountId, options).then((request) => request(this.axios, this.basePath));
|
|
6872
6398
|
}
|
|
6873
6399
|
|
|
6874
6400
|
/**
|
|
6875
6401
|
*
|
|
6402
|
+
* @param {CreateRegisteredVehicleBody} createRegisteredVehicleBody
|
|
6403
|
+
* @param {string} [xAccountId]
|
|
6876
6404
|
* @param {*} [options] Override http request option.
|
|
6877
6405
|
* @throws {RequiredError}
|
|
6878
6406
|
* @memberof DefaultApi
|
|
6879
6407
|
*/
|
|
6880
|
-
public
|
|
6881
|
-
return DefaultApiFp(this.configuration).
|
|
6408
|
+
public registeredVehiclesRegister(createRegisteredVehicleBody: CreateRegisteredVehicleBody, xAccountId?: string, options?: AxiosRequestConfig) {
|
|
6409
|
+
return DefaultApiFp(this.configuration).registeredVehiclesRegister(createRegisteredVehicleBody, xAccountId, options).then((request) => request(this.axios, this.basePath));
|
|
6882
6410
|
}
|
|
6883
6411
|
|
|
6884
6412
|
/**
|
|
6885
6413
|
*
|
|
6886
|
-
* @param {string} id
|
|
6887
6414
|
* @param {UpdateRegisteredVehicleBody} updateRegisteredVehicleBody
|
|
6415
|
+
* @param {string} [xAccountId]
|
|
6888
6416
|
* @param {*} [options] Override http request option.
|
|
6889
6417
|
* @throws {RequiredError}
|
|
6890
6418
|
* @memberof DefaultApi
|
|
6891
6419
|
*/
|
|
6892
|
-
public registeredVehiclesUpdate(
|
|
6893
|
-
return DefaultApiFp(this.configuration).registeredVehiclesUpdate(
|
|
6420
|
+
public registeredVehiclesUpdate(updateRegisteredVehicleBody: UpdateRegisteredVehicleBody, xAccountId?: string, options?: AxiosRequestConfig) {
|
|
6421
|
+
return DefaultApiFp(this.configuration).registeredVehiclesUpdate(updateRegisteredVehicleBody, xAccountId, options).then((request) => request(this.axios, this.basePath));
|
|
6894
6422
|
}
|
|
6895
6423
|
|
|
6896
6424
|
/**
|
|
@@ -6958,52 +6486,6 @@ export class DefaultApi extends BaseAPI {
|
|
|
6958
6486
|
public vehicleBrandsUpdate(id: string, updateVehicleBrandBody: UpdateVehicleBrandBody, options?: AxiosRequestConfig) {
|
|
6959
6487
|
return DefaultApiFp(this.configuration).vehicleBrandsUpdate(id, updateVehicleBrandBody, options).then((request) => request(this.axios, this.basePath));
|
|
6960
6488
|
}
|
|
6961
|
-
|
|
6962
|
-
/**
|
|
6963
|
-
*
|
|
6964
|
-
* @param {CreateVehicleModelBody} createVehicleModelBody
|
|
6965
|
-
* @param {*} [options] Override http request option.
|
|
6966
|
-
* @throws {RequiredError}
|
|
6967
|
-
* @memberof DefaultApi
|
|
6968
|
-
*/
|
|
6969
|
-
public vehicleModelsCreate(createVehicleModelBody: CreateVehicleModelBody, options?: AxiosRequestConfig) {
|
|
6970
|
-
return DefaultApiFp(this.configuration).vehicleModelsCreate(createVehicleModelBody, options).then((request) => request(this.axios, this.basePath));
|
|
6971
|
-
}
|
|
6972
|
-
|
|
6973
|
-
/**
|
|
6974
|
-
*
|
|
6975
|
-
* @param {string} id
|
|
6976
|
-
* @param {*} [options] Override http request option.
|
|
6977
|
-
* @throws {RequiredError}
|
|
6978
|
-
* @memberof DefaultApi
|
|
6979
|
-
*/
|
|
6980
|
-
public vehicleModelsDelete(id: string, options?: AxiosRequestConfig) {
|
|
6981
|
-
return DefaultApiFp(this.configuration).vehicleModelsDelete(id, options).then((request) => request(this.axios, this.basePath));
|
|
6982
|
-
}
|
|
6983
|
-
|
|
6984
|
-
/**
|
|
6985
|
-
*
|
|
6986
|
-
* @param {string} [name]
|
|
6987
|
-
* @param {string} [brandId]
|
|
6988
|
-
* @param {*} [options] Override http request option.
|
|
6989
|
-
* @throws {RequiredError}
|
|
6990
|
-
* @memberof DefaultApi
|
|
6991
|
-
*/
|
|
6992
|
-
public vehicleModelsIndex(name?: string, brandId?: string, options?: AxiosRequestConfig) {
|
|
6993
|
-
return DefaultApiFp(this.configuration).vehicleModelsIndex(name, brandId, options).then((request) => request(this.axios, this.basePath));
|
|
6994
|
-
}
|
|
6995
|
-
|
|
6996
|
-
/**
|
|
6997
|
-
*
|
|
6998
|
-
* @param {string} id
|
|
6999
|
-
* @param {UpdateVehicleModelBody} updateVehicleModelBody
|
|
7000
|
-
* @param {*} [options] Override http request option.
|
|
7001
|
-
* @throws {RequiredError}
|
|
7002
|
-
* @memberof DefaultApi
|
|
7003
|
-
*/
|
|
7004
|
-
public vehicleModelsUpdate(id: string, updateVehicleModelBody: UpdateVehicleModelBody, options?: AxiosRequestConfig) {
|
|
7005
|
-
return DefaultApiFp(this.configuration).vehicleModelsUpdate(id, updateVehicleModelBody, options).then((request) => request(this.axios, this.basePath));
|
|
7006
|
-
}
|
|
7007
6489
|
}
|
|
7008
6490
|
|
|
7009
6491
|
|