ob-parking-sdk 0.0.69 → 0.0.71
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 +257 -30
- package/dist/api/api.d.ts +139 -22
- package/dist/api/api.js +209 -20
- package/package.json +1 -1
package/api/api.ts
CHANGED
|
@@ -1793,22 +1793,16 @@ export interface GetRegisteredVehiclesIndexQuery {
|
|
|
1793
1793
|
'endDate'?: string;
|
|
1794
1794
|
/**
|
|
1795
1795
|
*
|
|
1796
|
-
* @type {
|
|
1797
|
-
* @memberof GetRegisteredVehiclesIndexQuery
|
|
1798
|
-
*/
|
|
1799
|
-
'plate_no'?: string;
|
|
1800
|
-
/**
|
|
1801
|
-
*
|
|
1802
|
-
* @type {string}
|
|
1796
|
+
* @type {boolean}
|
|
1803
1797
|
* @memberof GetRegisteredVehiclesIndexQuery
|
|
1804
1798
|
*/
|
|
1805
|
-
'
|
|
1799
|
+
'is_vip'?: boolean;
|
|
1806
1800
|
/**
|
|
1807
1801
|
*
|
|
1808
1802
|
* @type {boolean}
|
|
1809
1803
|
* @memberof GetRegisteredVehiclesIndexQuery
|
|
1810
1804
|
*/
|
|
1811
|
-
'
|
|
1805
|
+
'is_history'?: boolean;
|
|
1812
1806
|
/**
|
|
1813
1807
|
*
|
|
1814
1808
|
* @type {boolean}
|
|
@@ -2805,6 +2799,18 @@ export interface RegisteredVehicleIndexResponse {
|
|
|
2805
2799
|
* @memberof RegisteredVehicleIndexResponse
|
|
2806
2800
|
*/
|
|
2807
2801
|
'vehicle_brand'?: RegisteredVehicleIndexResponseVehicleModel;
|
|
2802
|
+
/**
|
|
2803
|
+
*
|
|
2804
|
+
* @type {string}
|
|
2805
|
+
* @memberof RegisteredVehicleIndexResponse
|
|
2806
|
+
*/
|
|
2807
|
+
'phone_number'?: string | null;
|
|
2808
|
+
/**
|
|
2809
|
+
*
|
|
2810
|
+
* @type {string}
|
|
2811
|
+
* @memberof RegisteredVehicleIndexResponse
|
|
2812
|
+
*/
|
|
2813
|
+
'email'?: string | null;
|
|
2808
2814
|
/**
|
|
2809
2815
|
*
|
|
2810
2816
|
* @type {EngineType}
|
|
@@ -2834,7 +2840,7 @@ export interface RegisteredVehicleIndexResponse {
|
|
|
2834
2840
|
* @type {VehicleType}
|
|
2835
2841
|
* @memberof RegisteredVehicleIndexResponse
|
|
2836
2842
|
*/
|
|
2837
|
-
'vehicle_type'
|
|
2843
|
+
'vehicle_type'?: VehicleType | null;
|
|
2838
2844
|
/**
|
|
2839
2845
|
*
|
|
2840
2846
|
* @type {string}
|
|
@@ -2926,6 +2932,19 @@ export interface RegisteredVehicleResponse {
|
|
|
2926
2932
|
}
|
|
2927
2933
|
|
|
2928
2934
|
|
|
2935
|
+
/**
|
|
2936
|
+
*
|
|
2937
|
+
* @export
|
|
2938
|
+
* @interface RemoveVipVehicleBody
|
|
2939
|
+
*/
|
|
2940
|
+
export interface RemoveVipVehicleBody {
|
|
2941
|
+
/**
|
|
2942
|
+
*
|
|
2943
|
+
* @type {string}
|
|
2944
|
+
* @memberof RemoveVipVehicleBody
|
|
2945
|
+
*/
|
|
2946
|
+
'deleted_by_email': string;
|
|
2947
|
+
}
|
|
2929
2948
|
/**
|
|
2930
2949
|
*
|
|
2931
2950
|
* @export
|
|
@@ -5217,15 +5236,14 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
5217
5236
|
* @param {string} [filterKey]
|
|
5218
5237
|
* @param {string} [startDate]
|
|
5219
5238
|
* @param {string} [endDate]
|
|
5220
|
-
* @param {string} [plateNo]
|
|
5221
|
-
* @param {string} [plateProvince]
|
|
5222
5239
|
* @param {boolean} [isVip]
|
|
5240
|
+
* @param {boolean} [isHistory]
|
|
5223
5241
|
* @param {boolean} [isExport]
|
|
5224
5242
|
* @param {*} [options] Override http request option.
|
|
5225
5243
|
* @throws {RequiredError}
|
|
5226
5244
|
*/
|
|
5227
|
-
|
|
5228
|
-
const localVarPath = `/registered-vehicles`;
|
|
5245
|
+
registeredVehiclesHistoryIndex: async (orderBy?: string, orderDirection?: string, pageNumber?: number, pageSize?: number, filterBy?: string, filterKey?: string, startDate?: string, endDate?: string, isVip?: boolean, isHistory?: boolean, isExport?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5246
|
+
const localVarPath = `/registered-vehicles/history`;
|
|
5229
5247
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5230
5248
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5231
5249
|
let baseOptions;
|
|
@@ -5269,18 +5287,98 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
5269
5287
|
localVarQueryParameter['endDate'] = endDate;
|
|
5270
5288
|
}
|
|
5271
5289
|
|
|
5272
|
-
if (
|
|
5273
|
-
localVarQueryParameter['
|
|
5290
|
+
if (isVip !== undefined) {
|
|
5291
|
+
localVarQueryParameter['is_vip'] = isVip;
|
|
5292
|
+
}
|
|
5293
|
+
|
|
5294
|
+
if (isHistory !== undefined) {
|
|
5295
|
+
localVarQueryParameter['is_history'] = isHistory;
|
|
5274
5296
|
}
|
|
5275
5297
|
|
|
5276
|
-
if (
|
|
5277
|
-
localVarQueryParameter['
|
|
5298
|
+
if (isExport !== undefined) {
|
|
5299
|
+
localVarQueryParameter['is_export'] = isExport;
|
|
5300
|
+
}
|
|
5301
|
+
|
|
5302
|
+
|
|
5303
|
+
|
|
5304
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5305
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5306
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
5307
|
+
|
|
5308
|
+
return {
|
|
5309
|
+
url: toPathString(localVarUrlObj),
|
|
5310
|
+
options: localVarRequestOptions,
|
|
5311
|
+
};
|
|
5312
|
+
},
|
|
5313
|
+
/**
|
|
5314
|
+
*
|
|
5315
|
+
* @param {string} [orderBy]
|
|
5316
|
+
* @param {string} [orderDirection]
|
|
5317
|
+
* @param {number} [pageNumber]
|
|
5318
|
+
* @param {number} [pageSize]
|
|
5319
|
+
* @param {string} [filterBy]
|
|
5320
|
+
* @param {string} [filterKey]
|
|
5321
|
+
* @param {string} [startDate]
|
|
5322
|
+
* @param {string} [endDate]
|
|
5323
|
+
* @param {boolean} [isVip]
|
|
5324
|
+
* @param {boolean} [isHistory]
|
|
5325
|
+
* @param {boolean} [isExport]
|
|
5326
|
+
* @param {*} [options] Override http request option.
|
|
5327
|
+
* @throws {RequiredError}
|
|
5328
|
+
*/
|
|
5329
|
+
registeredVehiclesIndex: async (orderBy?: string, orderDirection?: string, pageNumber?: number, pageSize?: number, filterBy?: string, filterKey?: string, startDate?: string, endDate?: string, isVip?: boolean, isHistory?: boolean, isExport?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5330
|
+
const localVarPath = `/registered-vehicles`;
|
|
5331
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5332
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5333
|
+
let baseOptions;
|
|
5334
|
+
if (configuration) {
|
|
5335
|
+
baseOptions = configuration.baseOptions;
|
|
5336
|
+
}
|
|
5337
|
+
|
|
5338
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
5339
|
+
const localVarHeaderParameter = {} as any;
|
|
5340
|
+
const localVarQueryParameter = {} as any;
|
|
5341
|
+
|
|
5342
|
+
if (orderBy !== undefined) {
|
|
5343
|
+
localVarQueryParameter['order_by'] = orderBy;
|
|
5344
|
+
}
|
|
5345
|
+
|
|
5346
|
+
if (orderDirection !== undefined) {
|
|
5347
|
+
localVarQueryParameter['order_direction'] = orderDirection;
|
|
5348
|
+
}
|
|
5349
|
+
|
|
5350
|
+
if (pageNumber !== undefined) {
|
|
5351
|
+
localVarQueryParameter['page_number'] = pageNumber;
|
|
5352
|
+
}
|
|
5353
|
+
|
|
5354
|
+
if (pageSize !== undefined) {
|
|
5355
|
+
localVarQueryParameter['page_size'] = pageSize;
|
|
5356
|
+
}
|
|
5357
|
+
|
|
5358
|
+
if (filterBy !== undefined) {
|
|
5359
|
+
localVarQueryParameter['filter_by'] = filterBy;
|
|
5360
|
+
}
|
|
5361
|
+
|
|
5362
|
+
if (filterKey !== undefined) {
|
|
5363
|
+
localVarQueryParameter['filter_key'] = filterKey;
|
|
5364
|
+
}
|
|
5365
|
+
|
|
5366
|
+
if (startDate !== undefined) {
|
|
5367
|
+
localVarQueryParameter['startDate'] = startDate;
|
|
5368
|
+
}
|
|
5369
|
+
|
|
5370
|
+
if (endDate !== undefined) {
|
|
5371
|
+
localVarQueryParameter['endDate'] = endDate;
|
|
5278
5372
|
}
|
|
5279
5373
|
|
|
5280
5374
|
if (isVip !== undefined) {
|
|
5281
5375
|
localVarQueryParameter['is_vip'] = isVip;
|
|
5282
5376
|
}
|
|
5283
5377
|
|
|
5378
|
+
if (isHistory !== undefined) {
|
|
5379
|
+
localVarQueryParameter['is_history'] = isHistory;
|
|
5380
|
+
}
|
|
5381
|
+
|
|
5284
5382
|
if (isExport !== undefined) {
|
|
5285
5383
|
localVarQueryParameter['is_export'] = isExport;
|
|
5286
5384
|
}
|
|
@@ -5413,6 +5511,45 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
5413
5511
|
options: localVarRequestOptions,
|
|
5414
5512
|
};
|
|
5415
5513
|
},
|
|
5514
|
+
/**
|
|
5515
|
+
*
|
|
5516
|
+
* @param {string} id
|
|
5517
|
+
* @param {RemoveVipVehicleBody} removeVipVehicleBody
|
|
5518
|
+
* @param {*} [options] Override http request option.
|
|
5519
|
+
* @throws {RequiredError}
|
|
5520
|
+
*/
|
|
5521
|
+
registeredVehiclesRemoveVip: async (id: string, removeVipVehicleBody: RemoveVipVehicleBody, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5522
|
+
// verify required parameter 'id' is not null or undefined
|
|
5523
|
+
assertParamExists('registeredVehiclesRemoveVip', 'id', id)
|
|
5524
|
+
// verify required parameter 'removeVipVehicleBody' is not null or undefined
|
|
5525
|
+
assertParamExists('registeredVehiclesRemoveVip', 'removeVipVehicleBody', removeVipVehicleBody)
|
|
5526
|
+
const localVarPath = `/registered-vehicles/remove-vip/{id}`
|
|
5527
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
5528
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5529
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5530
|
+
let baseOptions;
|
|
5531
|
+
if (configuration) {
|
|
5532
|
+
baseOptions = configuration.baseOptions;
|
|
5533
|
+
}
|
|
5534
|
+
|
|
5535
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
5536
|
+
const localVarHeaderParameter = {} as any;
|
|
5537
|
+
const localVarQueryParameter = {} as any;
|
|
5538
|
+
|
|
5539
|
+
|
|
5540
|
+
|
|
5541
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5542
|
+
|
|
5543
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5544
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5545
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
5546
|
+
localVarRequestOptions.data = serializeDataIfNeeded(removeVipVehicleBody, localVarRequestOptions, configuration)
|
|
5547
|
+
|
|
5548
|
+
return {
|
|
5549
|
+
url: toPathString(localVarUrlObj),
|
|
5550
|
+
options: localVarRequestOptions,
|
|
5551
|
+
};
|
|
5552
|
+
},
|
|
5416
5553
|
/**
|
|
5417
5554
|
*
|
|
5418
5555
|
* @param {UpdateRegisteredVehicleBody} updateRegisteredVehicleBody
|
|
@@ -6042,15 +6179,34 @@ export const DefaultApiFp = function(configuration?: Configuration) {
|
|
|
6042
6179
|
* @param {string} [filterKey]
|
|
6043
6180
|
* @param {string} [startDate]
|
|
6044
6181
|
* @param {string} [endDate]
|
|
6045
|
-
* @param {string} [plateNo]
|
|
6046
|
-
* @param {string} [plateProvince]
|
|
6047
6182
|
* @param {boolean} [isVip]
|
|
6183
|
+
* @param {boolean} [isHistory]
|
|
6048
6184
|
* @param {boolean} [isExport]
|
|
6049
6185
|
* @param {*} [options] Override http request option.
|
|
6050
6186
|
* @throws {RequiredError}
|
|
6051
6187
|
*/
|
|
6052
|
-
async
|
|
6053
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
6188
|
+
async registeredVehiclesHistoryIndex(orderBy?: string, orderDirection?: string, pageNumber?: number, pageSize?: number, filterBy?: string, filterKey?: string, startDate?: string, endDate?: string, isVip?: boolean, isHistory?: boolean, isExport?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ResponseDataRegisteredVehicleIndexResponseArray>> {
|
|
6189
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.registeredVehiclesHistoryIndex(orderBy, orderDirection, pageNumber, pageSize, filterBy, filterKey, startDate, endDate, isVip, isHistory, isExport, options);
|
|
6190
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
6191
|
+
},
|
|
6192
|
+
/**
|
|
6193
|
+
*
|
|
6194
|
+
* @param {string} [orderBy]
|
|
6195
|
+
* @param {string} [orderDirection]
|
|
6196
|
+
* @param {number} [pageNumber]
|
|
6197
|
+
* @param {number} [pageSize]
|
|
6198
|
+
* @param {string} [filterBy]
|
|
6199
|
+
* @param {string} [filterKey]
|
|
6200
|
+
* @param {string} [startDate]
|
|
6201
|
+
* @param {string} [endDate]
|
|
6202
|
+
* @param {boolean} [isVip]
|
|
6203
|
+
* @param {boolean} [isHistory]
|
|
6204
|
+
* @param {boolean} [isExport]
|
|
6205
|
+
* @param {*} [options] Override http request option.
|
|
6206
|
+
* @throws {RequiredError}
|
|
6207
|
+
*/
|
|
6208
|
+
async registeredVehiclesIndex(orderBy?: string, orderDirection?: string, pageNumber?: number, pageSize?: number, filterBy?: string, filterKey?: string, startDate?: string, endDate?: string, isVip?: boolean, isHistory?: boolean, isExport?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ResponseDataRegisteredVehicleIndexResponseArray>> {
|
|
6209
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.registeredVehiclesIndex(orderBy, orderDirection, pageNumber, pageSize, filterBy, filterKey, startDate, endDate, isVip, isHistory, isExport, options);
|
|
6054
6210
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
6055
6211
|
},
|
|
6056
6212
|
/**
|
|
@@ -6085,6 +6241,17 @@ export const DefaultApiFp = function(configuration?: Configuration) {
|
|
|
6085
6241
|
const localVarAxiosArgs = await localVarAxiosParamCreator.registeredVehiclesRegister(createRegisteredVehicleBody, xAccountId, options);
|
|
6086
6242
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
6087
6243
|
},
|
|
6244
|
+
/**
|
|
6245
|
+
*
|
|
6246
|
+
* @param {string} id
|
|
6247
|
+
* @param {RemoveVipVehicleBody} removeVipVehicleBody
|
|
6248
|
+
* @param {*} [options] Override http request option.
|
|
6249
|
+
* @throws {RequiredError}
|
|
6250
|
+
*/
|
|
6251
|
+
async registeredVehiclesRemoveVip(id: string, removeVipVehicleBody: RemoveVipVehicleBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RegisteredVehicleResponse>> {
|
|
6252
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.registeredVehiclesRemoveVip(id, removeVipVehicleBody, options);
|
|
6253
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
6254
|
+
},
|
|
6088
6255
|
/**
|
|
6089
6256
|
*
|
|
6090
6257
|
* @param {UpdateRegisteredVehicleBody} updateRegisteredVehicleBody
|
|
@@ -6562,15 +6729,33 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
|
|
|
6562
6729
|
* @param {string} [filterKey]
|
|
6563
6730
|
* @param {string} [startDate]
|
|
6564
6731
|
* @param {string} [endDate]
|
|
6565
|
-
* @param {string} [plateNo]
|
|
6566
|
-
* @param {string} [plateProvince]
|
|
6567
6732
|
* @param {boolean} [isVip]
|
|
6733
|
+
* @param {boolean} [isHistory]
|
|
6568
6734
|
* @param {boolean} [isExport]
|
|
6569
6735
|
* @param {*} [options] Override http request option.
|
|
6570
6736
|
* @throws {RequiredError}
|
|
6571
6737
|
*/
|
|
6572
|
-
|
|
6573
|
-
return localVarFp.
|
|
6738
|
+
registeredVehiclesHistoryIndex(orderBy?: string, orderDirection?: string, pageNumber?: number, pageSize?: number, filterBy?: string, filterKey?: string, startDate?: string, endDate?: string, isVip?: boolean, isHistory?: boolean, isExport?: boolean, options?: any): AxiosPromise<ResponseDataRegisteredVehicleIndexResponseArray> {
|
|
6739
|
+
return localVarFp.registeredVehiclesHistoryIndex(orderBy, orderDirection, pageNumber, pageSize, filterBy, filterKey, startDate, endDate, isVip, isHistory, isExport, options).then((request) => request(axios, basePath));
|
|
6740
|
+
},
|
|
6741
|
+
/**
|
|
6742
|
+
*
|
|
6743
|
+
* @param {string} [orderBy]
|
|
6744
|
+
* @param {string} [orderDirection]
|
|
6745
|
+
* @param {number} [pageNumber]
|
|
6746
|
+
* @param {number} [pageSize]
|
|
6747
|
+
* @param {string} [filterBy]
|
|
6748
|
+
* @param {string} [filterKey]
|
|
6749
|
+
* @param {string} [startDate]
|
|
6750
|
+
* @param {string} [endDate]
|
|
6751
|
+
* @param {boolean} [isVip]
|
|
6752
|
+
* @param {boolean} [isHistory]
|
|
6753
|
+
* @param {boolean} [isExport]
|
|
6754
|
+
* @param {*} [options] Override http request option.
|
|
6755
|
+
* @throws {RequiredError}
|
|
6756
|
+
*/
|
|
6757
|
+
registeredVehiclesIndex(orderBy?: string, orderDirection?: string, pageNumber?: number, pageSize?: number, filterBy?: string, filterKey?: string, startDate?: string, endDate?: string, isVip?: boolean, isHistory?: boolean, isExport?: boolean, options?: any): AxiosPromise<ResponseDataRegisteredVehicleIndexResponseArray> {
|
|
6758
|
+
return localVarFp.registeredVehiclesIndex(orderBy, orderDirection, pageNumber, pageSize, filterBy, filterKey, startDate, endDate, isVip, isHistory, isExport, options).then((request) => request(axios, basePath));
|
|
6574
6759
|
},
|
|
6575
6760
|
/**
|
|
6576
6761
|
*
|
|
@@ -6601,6 +6786,16 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
|
|
|
6601
6786
|
registeredVehiclesRegister(createRegisteredVehicleBody: CreateRegisteredVehicleBody, xAccountId?: string, options?: any): AxiosPromise<RegisteredVehicleResponse> {
|
|
6602
6787
|
return localVarFp.registeredVehiclesRegister(createRegisteredVehicleBody, xAccountId, options).then((request) => request(axios, basePath));
|
|
6603
6788
|
},
|
|
6789
|
+
/**
|
|
6790
|
+
*
|
|
6791
|
+
* @param {string} id
|
|
6792
|
+
* @param {RemoveVipVehicleBody} removeVipVehicleBody
|
|
6793
|
+
* @param {*} [options] Override http request option.
|
|
6794
|
+
* @throws {RequiredError}
|
|
6795
|
+
*/
|
|
6796
|
+
registeredVehiclesRemoveVip(id: string, removeVipVehicleBody: RemoveVipVehicleBody, options?: any): AxiosPromise<RegisteredVehicleResponse> {
|
|
6797
|
+
return localVarFp.registeredVehiclesRemoveVip(id, removeVipVehicleBody, options).then((request) => request(axios, basePath));
|
|
6798
|
+
},
|
|
6604
6799
|
/**
|
|
6605
6800
|
*
|
|
6606
6801
|
* @param {UpdateRegisteredVehicleBody} updateRegisteredVehicleBody
|
|
@@ -7149,16 +7344,36 @@ export class DefaultApi extends BaseAPI {
|
|
|
7149
7344
|
* @param {string} [filterKey]
|
|
7150
7345
|
* @param {string} [startDate]
|
|
7151
7346
|
* @param {string} [endDate]
|
|
7152
|
-
* @param {string} [plateNo]
|
|
7153
|
-
* @param {string} [plateProvince]
|
|
7154
7347
|
* @param {boolean} [isVip]
|
|
7348
|
+
* @param {boolean} [isHistory]
|
|
7155
7349
|
* @param {boolean} [isExport]
|
|
7156
7350
|
* @param {*} [options] Override http request option.
|
|
7157
7351
|
* @throws {RequiredError}
|
|
7158
7352
|
* @memberof DefaultApi
|
|
7159
7353
|
*/
|
|
7160
|
-
public
|
|
7161
|
-
return DefaultApiFp(this.configuration).
|
|
7354
|
+
public registeredVehiclesHistoryIndex(orderBy?: string, orderDirection?: string, pageNumber?: number, pageSize?: number, filterBy?: string, filterKey?: string, startDate?: string, endDate?: string, isVip?: boolean, isHistory?: boolean, isExport?: boolean, options?: AxiosRequestConfig) {
|
|
7355
|
+
return DefaultApiFp(this.configuration).registeredVehiclesHistoryIndex(orderBy, orderDirection, pageNumber, pageSize, filterBy, filterKey, startDate, endDate, isVip, isHistory, isExport, options).then((request) => request(this.axios, this.basePath));
|
|
7356
|
+
}
|
|
7357
|
+
|
|
7358
|
+
/**
|
|
7359
|
+
*
|
|
7360
|
+
* @param {string} [orderBy]
|
|
7361
|
+
* @param {string} [orderDirection]
|
|
7362
|
+
* @param {number} [pageNumber]
|
|
7363
|
+
* @param {number} [pageSize]
|
|
7364
|
+
* @param {string} [filterBy]
|
|
7365
|
+
* @param {string} [filterKey]
|
|
7366
|
+
* @param {string} [startDate]
|
|
7367
|
+
* @param {string} [endDate]
|
|
7368
|
+
* @param {boolean} [isVip]
|
|
7369
|
+
* @param {boolean} [isHistory]
|
|
7370
|
+
* @param {boolean} [isExport]
|
|
7371
|
+
* @param {*} [options] Override http request option.
|
|
7372
|
+
* @throws {RequiredError}
|
|
7373
|
+
* @memberof DefaultApi
|
|
7374
|
+
*/
|
|
7375
|
+
public registeredVehiclesIndex(orderBy?: string, orderDirection?: string, pageNumber?: number, pageSize?: number, filterBy?: string, filterKey?: string, startDate?: string, endDate?: string, isVip?: boolean, isHistory?: boolean, isExport?: boolean, options?: AxiosRequestConfig) {
|
|
7376
|
+
return DefaultApiFp(this.configuration).registeredVehiclesIndex(orderBy, orderDirection, pageNumber, pageSize, filterBy, filterKey, startDate, endDate, isVip, isHistory, isExport, options).then((request) => request(this.axios, this.basePath));
|
|
7162
7377
|
}
|
|
7163
7378
|
|
|
7164
7379
|
/**
|
|
@@ -7196,6 +7411,18 @@ export class DefaultApi extends BaseAPI {
|
|
|
7196
7411
|
return DefaultApiFp(this.configuration).registeredVehiclesRegister(createRegisteredVehicleBody, xAccountId, options).then((request) => request(this.axios, this.basePath));
|
|
7197
7412
|
}
|
|
7198
7413
|
|
|
7414
|
+
/**
|
|
7415
|
+
*
|
|
7416
|
+
* @param {string} id
|
|
7417
|
+
* @param {RemoveVipVehicleBody} removeVipVehicleBody
|
|
7418
|
+
* @param {*} [options] Override http request option.
|
|
7419
|
+
* @throws {RequiredError}
|
|
7420
|
+
* @memberof DefaultApi
|
|
7421
|
+
*/
|
|
7422
|
+
public registeredVehiclesRemoveVip(id: string, removeVipVehicleBody: RemoveVipVehicleBody, options?: AxiosRequestConfig) {
|
|
7423
|
+
return DefaultApiFp(this.configuration).registeredVehiclesRemoveVip(id, removeVipVehicleBody, options).then((request) => request(this.axios, this.basePath));
|
|
7424
|
+
}
|
|
7425
|
+
|
|
7199
7426
|
/**
|
|
7200
7427
|
*
|
|
7201
7428
|
* @param {UpdateRegisteredVehicleBody} updateRegisteredVehicleBody
|
package/dist/api/api.d.ts
CHANGED
|
@@ -1754,22 +1754,16 @@ export interface GetRegisteredVehiclesIndexQuery {
|
|
|
1754
1754
|
'endDate'?: string;
|
|
1755
1755
|
/**
|
|
1756
1756
|
*
|
|
1757
|
-
* @type {
|
|
1758
|
-
* @memberof GetRegisteredVehiclesIndexQuery
|
|
1759
|
-
*/
|
|
1760
|
-
'plate_no'?: string;
|
|
1761
|
-
/**
|
|
1762
|
-
*
|
|
1763
|
-
* @type {string}
|
|
1757
|
+
* @type {boolean}
|
|
1764
1758
|
* @memberof GetRegisteredVehiclesIndexQuery
|
|
1765
1759
|
*/
|
|
1766
|
-
'
|
|
1760
|
+
'is_vip'?: boolean;
|
|
1767
1761
|
/**
|
|
1768
1762
|
*
|
|
1769
1763
|
* @type {boolean}
|
|
1770
1764
|
* @memberof GetRegisteredVehiclesIndexQuery
|
|
1771
1765
|
*/
|
|
1772
|
-
'
|
|
1766
|
+
'is_history'?: boolean;
|
|
1773
1767
|
/**
|
|
1774
1768
|
*
|
|
1775
1769
|
* @type {boolean}
|
|
@@ -2747,6 +2741,18 @@ export interface RegisteredVehicleIndexResponse {
|
|
|
2747
2741
|
* @memberof RegisteredVehicleIndexResponse
|
|
2748
2742
|
*/
|
|
2749
2743
|
'vehicle_brand'?: RegisteredVehicleIndexResponseVehicleModel;
|
|
2744
|
+
/**
|
|
2745
|
+
*
|
|
2746
|
+
* @type {string}
|
|
2747
|
+
* @memberof RegisteredVehicleIndexResponse
|
|
2748
|
+
*/
|
|
2749
|
+
'phone_number'?: string | null;
|
|
2750
|
+
/**
|
|
2751
|
+
*
|
|
2752
|
+
* @type {string}
|
|
2753
|
+
* @memberof RegisteredVehicleIndexResponse
|
|
2754
|
+
*/
|
|
2755
|
+
'email'?: string | null;
|
|
2750
2756
|
/**
|
|
2751
2757
|
*
|
|
2752
2758
|
* @type {EngineType}
|
|
@@ -2776,7 +2782,7 @@ export interface RegisteredVehicleIndexResponse {
|
|
|
2776
2782
|
* @type {VehicleType}
|
|
2777
2783
|
* @memberof RegisteredVehicleIndexResponse
|
|
2778
2784
|
*/
|
|
2779
|
-
'vehicle_type'
|
|
2785
|
+
'vehicle_type'?: VehicleType | null;
|
|
2780
2786
|
/**
|
|
2781
2787
|
*
|
|
2782
2788
|
* @type {string}
|
|
@@ -2864,6 +2870,19 @@ export interface RegisteredVehicleResponse {
|
|
|
2864
2870
|
*/
|
|
2865
2871
|
'id': string;
|
|
2866
2872
|
}
|
|
2873
|
+
/**
|
|
2874
|
+
*
|
|
2875
|
+
* @export
|
|
2876
|
+
* @interface RemoveVipVehicleBody
|
|
2877
|
+
*/
|
|
2878
|
+
export interface RemoveVipVehicleBody {
|
|
2879
|
+
/**
|
|
2880
|
+
*
|
|
2881
|
+
* @type {string}
|
|
2882
|
+
* @memberof RemoveVipVehicleBody
|
|
2883
|
+
*/
|
|
2884
|
+
'deleted_by_email': string;
|
|
2885
|
+
}
|
|
2867
2886
|
/**
|
|
2868
2887
|
*
|
|
2869
2888
|
* @export
|
|
@@ -3844,14 +3863,30 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
3844
3863
|
* @param {string} [filterKey]
|
|
3845
3864
|
* @param {string} [startDate]
|
|
3846
3865
|
* @param {string} [endDate]
|
|
3847
|
-
* @param {string} [plateNo]
|
|
3848
|
-
* @param {string} [plateProvince]
|
|
3849
3866
|
* @param {boolean} [isVip]
|
|
3867
|
+
* @param {boolean} [isHistory]
|
|
3850
3868
|
* @param {boolean} [isExport]
|
|
3851
3869
|
* @param {*} [options] Override http request option.
|
|
3852
3870
|
* @throws {RequiredError}
|
|
3853
3871
|
*/
|
|
3854
|
-
|
|
3872
|
+
registeredVehiclesHistoryIndex: (orderBy?: string, orderDirection?: string, pageNumber?: number, pageSize?: number, filterBy?: string, filterKey?: string, startDate?: string, endDate?: string, isVip?: boolean, isHistory?: boolean, isExport?: boolean, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3873
|
+
/**
|
|
3874
|
+
*
|
|
3875
|
+
* @param {string} [orderBy]
|
|
3876
|
+
* @param {string} [orderDirection]
|
|
3877
|
+
* @param {number} [pageNumber]
|
|
3878
|
+
* @param {number} [pageSize]
|
|
3879
|
+
* @param {string} [filterBy]
|
|
3880
|
+
* @param {string} [filterKey]
|
|
3881
|
+
* @param {string} [startDate]
|
|
3882
|
+
* @param {string} [endDate]
|
|
3883
|
+
* @param {boolean} [isVip]
|
|
3884
|
+
* @param {boolean} [isHistory]
|
|
3885
|
+
* @param {boolean} [isExport]
|
|
3886
|
+
* @param {*} [options] Override http request option.
|
|
3887
|
+
* @throws {RequiredError}
|
|
3888
|
+
*/
|
|
3889
|
+
registeredVehiclesIndex: (orderBy?: string, orderDirection?: string, pageNumber?: number, pageSize?: number, filterBy?: string, filterKey?: string, startDate?: string, endDate?: string, isVip?: boolean, isHistory?: boolean, isExport?: boolean, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3855
3890
|
/**
|
|
3856
3891
|
*
|
|
3857
3892
|
* @param {string} plateNo
|
|
@@ -3875,6 +3910,14 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
3875
3910
|
* @throws {RequiredError}
|
|
3876
3911
|
*/
|
|
3877
3912
|
registeredVehiclesRegister: (createRegisteredVehicleBody: CreateRegisteredVehicleBody, xAccountId?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3913
|
+
/**
|
|
3914
|
+
*
|
|
3915
|
+
* @param {string} id
|
|
3916
|
+
* @param {RemoveVipVehicleBody} removeVipVehicleBody
|
|
3917
|
+
* @param {*} [options] Override http request option.
|
|
3918
|
+
* @throws {RequiredError}
|
|
3919
|
+
*/
|
|
3920
|
+
registeredVehiclesRemoveVip: (id: string, removeVipVehicleBody: RemoveVipVehicleBody, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3878
3921
|
/**
|
|
3879
3922
|
*
|
|
3880
3923
|
* @param {UpdateRegisteredVehicleBody} updateRegisteredVehicleBody
|
|
@@ -4257,14 +4300,30 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
4257
4300
|
* @param {string} [filterKey]
|
|
4258
4301
|
* @param {string} [startDate]
|
|
4259
4302
|
* @param {string} [endDate]
|
|
4260
|
-
* @param {string} [plateNo]
|
|
4261
|
-
* @param {string} [plateProvince]
|
|
4262
4303
|
* @param {boolean} [isVip]
|
|
4304
|
+
* @param {boolean} [isHistory]
|
|
4263
4305
|
* @param {boolean} [isExport]
|
|
4264
4306
|
* @param {*} [options] Override http request option.
|
|
4265
4307
|
* @throws {RequiredError}
|
|
4266
4308
|
*/
|
|
4267
|
-
|
|
4309
|
+
registeredVehiclesHistoryIndex(orderBy?: string, orderDirection?: string, pageNumber?: number, pageSize?: number, filterBy?: string, filterKey?: string, startDate?: string, endDate?: string, isVip?: boolean, isHistory?: boolean, isExport?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ResponseDataRegisteredVehicleIndexResponseArray>>;
|
|
4310
|
+
/**
|
|
4311
|
+
*
|
|
4312
|
+
* @param {string} [orderBy]
|
|
4313
|
+
* @param {string} [orderDirection]
|
|
4314
|
+
* @param {number} [pageNumber]
|
|
4315
|
+
* @param {number} [pageSize]
|
|
4316
|
+
* @param {string} [filterBy]
|
|
4317
|
+
* @param {string} [filterKey]
|
|
4318
|
+
* @param {string} [startDate]
|
|
4319
|
+
* @param {string} [endDate]
|
|
4320
|
+
* @param {boolean} [isVip]
|
|
4321
|
+
* @param {boolean} [isHistory]
|
|
4322
|
+
* @param {boolean} [isExport]
|
|
4323
|
+
* @param {*} [options] Override http request option.
|
|
4324
|
+
* @throws {RequiredError}
|
|
4325
|
+
*/
|
|
4326
|
+
registeredVehiclesIndex(orderBy?: string, orderDirection?: string, pageNumber?: number, pageSize?: number, filterBy?: string, filterKey?: string, startDate?: string, endDate?: string, isVip?: boolean, isHistory?: boolean, isExport?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ResponseDataRegisteredVehicleIndexResponseArray>>;
|
|
4268
4327
|
/**
|
|
4269
4328
|
*
|
|
4270
4329
|
* @param {string} plateNo
|
|
@@ -4288,6 +4347,14 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
4288
4347
|
* @throws {RequiredError}
|
|
4289
4348
|
*/
|
|
4290
4349
|
registeredVehiclesRegister(createRegisteredVehicleBody: CreateRegisteredVehicleBody, xAccountId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RegisteredVehicleResponse>>;
|
|
4350
|
+
/**
|
|
4351
|
+
*
|
|
4352
|
+
* @param {string} id
|
|
4353
|
+
* @param {RemoveVipVehicleBody} removeVipVehicleBody
|
|
4354
|
+
* @param {*} [options] Override http request option.
|
|
4355
|
+
* @throws {RequiredError}
|
|
4356
|
+
*/
|
|
4357
|
+
registeredVehiclesRemoveVip(id: string, removeVipVehicleBody: RemoveVipVehicleBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RegisteredVehicleResponse>>;
|
|
4291
4358
|
/**
|
|
4292
4359
|
*
|
|
4293
4360
|
* @param {UpdateRegisteredVehicleBody} updateRegisteredVehicleBody
|
|
@@ -4670,14 +4737,30 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
4670
4737
|
* @param {string} [filterKey]
|
|
4671
4738
|
* @param {string} [startDate]
|
|
4672
4739
|
* @param {string} [endDate]
|
|
4673
|
-
* @param {string} [plateNo]
|
|
4674
|
-
* @param {string} [plateProvince]
|
|
4675
4740
|
* @param {boolean} [isVip]
|
|
4741
|
+
* @param {boolean} [isHistory]
|
|
4676
4742
|
* @param {boolean} [isExport]
|
|
4677
4743
|
* @param {*} [options] Override http request option.
|
|
4678
4744
|
* @throws {RequiredError}
|
|
4679
4745
|
*/
|
|
4680
|
-
|
|
4746
|
+
registeredVehiclesHistoryIndex(orderBy?: string, orderDirection?: string, pageNumber?: number, pageSize?: number, filterBy?: string, filterKey?: string, startDate?: string, endDate?: string, isVip?: boolean, isHistory?: boolean, isExport?: boolean, options?: any): AxiosPromise<ResponseDataRegisteredVehicleIndexResponseArray>;
|
|
4747
|
+
/**
|
|
4748
|
+
*
|
|
4749
|
+
* @param {string} [orderBy]
|
|
4750
|
+
* @param {string} [orderDirection]
|
|
4751
|
+
* @param {number} [pageNumber]
|
|
4752
|
+
* @param {number} [pageSize]
|
|
4753
|
+
* @param {string} [filterBy]
|
|
4754
|
+
* @param {string} [filterKey]
|
|
4755
|
+
* @param {string} [startDate]
|
|
4756
|
+
* @param {string} [endDate]
|
|
4757
|
+
* @param {boolean} [isVip]
|
|
4758
|
+
* @param {boolean} [isHistory]
|
|
4759
|
+
* @param {boolean} [isExport]
|
|
4760
|
+
* @param {*} [options] Override http request option.
|
|
4761
|
+
* @throws {RequiredError}
|
|
4762
|
+
*/
|
|
4763
|
+
registeredVehiclesIndex(orderBy?: string, orderDirection?: string, pageNumber?: number, pageSize?: number, filterBy?: string, filterKey?: string, startDate?: string, endDate?: string, isVip?: boolean, isHistory?: boolean, isExport?: boolean, options?: any): AxiosPromise<ResponseDataRegisteredVehicleIndexResponseArray>;
|
|
4681
4764
|
/**
|
|
4682
4765
|
*
|
|
4683
4766
|
* @param {string} plateNo
|
|
@@ -4701,6 +4784,14 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
4701
4784
|
* @throws {RequiredError}
|
|
4702
4785
|
*/
|
|
4703
4786
|
registeredVehiclesRegister(createRegisteredVehicleBody: CreateRegisteredVehicleBody, xAccountId?: string, options?: any): AxiosPromise<RegisteredVehicleResponse>;
|
|
4787
|
+
/**
|
|
4788
|
+
*
|
|
4789
|
+
* @param {string} id
|
|
4790
|
+
* @param {RemoveVipVehicleBody} removeVipVehicleBody
|
|
4791
|
+
* @param {*} [options] Override http request option.
|
|
4792
|
+
* @throws {RequiredError}
|
|
4793
|
+
*/
|
|
4794
|
+
registeredVehiclesRemoveVip(id: string, removeVipVehicleBody: RemoveVipVehicleBody, options?: any): AxiosPromise<RegisteredVehicleResponse>;
|
|
4704
4795
|
/**
|
|
4705
4796
|
*
|
|
4706
4797
|
* @param {UpdateRegisteredVehicleBody} updateRegisteredVehicleBody
|
|
@@ -5123,15 +5214,32 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
5123
5214
|
* @param {string} [filterKey]
|
|
5124
5215
|
* @param {string} [startDate]
|
|
5125
5216
|
* @param {string} [endDate]
|
|
5126
|
-
* @param {string} [plateNo]
|
|
5127
|
-
* @param {string} [plateProvince]
|
|
5128
5217
|
* @param {boolean} [isVip]
|
|
5218
|
+
* @param {boolean} [isHistory]
|
|
5219
|
+
* @param {boolean} [isExport]
|
|
5220
|
+
* @param {*} [options] Override http request option.
|
|
5221
|
+
* @throws {RequiredError}
|
|
5222
|
+
* @memberof DefaultApi
|
|
5223
|
+
*/
|
|
5224
|
+
registeredVehiclesHistoryIndex(orderBy?: string, orderDirection?: string, pageNumber?: number, pageSize?: number, filterBy?: string, filterKey?: string, startDate?: string, endDate?: string, isVip?: boolean, isHistory?: boolean, isExport?: boolean, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ResponseDataRegisteredVehicleIndexResponseArray, any>>;
|
|
5225
|
+
/**
|
|
5226
|
+
*
|
|
5227
|
+
* @param {string} [orderBy]
|
|
5228
|
+
* @param {string} [orderDirection]
|
|
5229
|
+
* @param {number} [pageNumber]
|
|
5230
|
+
* @param {number} [pageSize]
|
|
5231
|
+
* @param {string} [filterBy]
|
|
5232
|
+
* @param {string} [filterKey]
|
|
5233
|
+
* @param {string} [startDate]
|
|
5234
|
+
* @param {string} [endDate]
|
|
5235
|
+
* @param {boolean} [isVip]
|
|
5236
|
+
* @param {boolean} [isHistory]
|
|
5129
5237
|
* @param {boolean} [isExport]
|
|
5130
5238
|
* @param {*} [options] Override http request option.
|
|
5131
5239
|
* @throws {RequiredError}
|
|
5132
5240
|
* @memberof DefaultApi
|
|
5133
5241
|
*/
|
|
5134
|
-
registeredVehiclesIndex(orderBy?: string, orderDirection?: string, pageNumber?: number, pageSize?: number, filterBy?: string, filterKey?: string, startDate?: string, endDate?: string,
|
|
5242
|
+
registeredVehiclesIndex(orderBy?: string, orderDirection?: string, pageNumber?: number, pageSize?: number, filterBy?: string, filterKey?: string, startDate?: string, endDate?: string, isVip?: boolean, isHistory?: boolean, isExport?: boolean, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ResponseDataRegisteredVehicleIndexResponseArray, any>>;
|
|
5135
5243
|
/**
|
|
5136
5244
|
*
|
|
5137
5245
|
* @param {string} plateNo
|
|
@@ -5158,6 +5266,15 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
5158
5266
|
* @memberof DefaultApi
|
|
5159
5267
|
*/
|
|
5160
5268
|
registeredVehiclesRegister(createRegisteredVehicleBody: CreateRegisteredVehicleBody, xAccountId?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<RegisteredVehicleResponse, any>>;
|
|
5269
|
+
/**
|
|
5270
|
+
*
|
|
5271
|
+
* @param {string} id
|
|
5272
|
+
* @param {RemoveVipVehicleBody} removeVipVehicleBody
|
|
5273
|
+
* @param {*} [options] Override http request option.
|
|
5274
|
+
* @throws {RequiredError}
|
|
5275
|
+
* @memberof DefaultApi
|
|
5276
|
+
*/
|
|
5277
|
+
registeredVehiclesRemoveVip(id: string, removeVipVehicleBody: RemoveVipVehicleBody, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<RegisteredVehicleResponse, any>>;
|
|
5161
5278
|
/**
|
|
5162
5279
|
*
|
|
5163
5280
|
* @param {UpdateRegisteredVehicleBody} updateRegisteredVehicleBody
|
package/dist/api/api.js
CHANGED
|
@@ -1480,15 +1480,14 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
1480
1480
|
* @param {string} [filterKey]
|
|
1481
1481
|
* @param {string} [startDate]
|
|
1482
1482
|
* @param {string} [endDate]
|
|
1483
|
-
* @param {string} [plateNo]
|
|
1484
|
-
* @param {string} [plateProvince]
|
|
1485
1483
|
* @param {boolean} [isVip]
|
|
1484
|
+
* @param {boolean} [isHistory]
|
|
1486
1485
|
* @param {boolean} [isExport]
|
|
1487
1486
|
* @param {*} [options] Override http request option.
|
|
1488
1487
|
* @throws {RequiredError}
|
|
1489
1488
|
*/
|
|
1490
|
-
|
|
1491
|
-
const localVarPath = `/registered-vehicles`;
|
|
1489
|
+
registeredVehiclesHistoryIndex: (orderBy, orderDirection, pageNumber, pageSize, filterBy, filterKey, startDate, endDate, isVip, isHistory, isExport, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1490
|
+
const localVarPath = `/registered-vehicles/history`;
|
|
1492
1491
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1493
1492
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1494
1493
|
let baseOptions;
|
|
@@ -1522,15 +1521,80 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
1522
1521
|
if (endDate !== undefined) {
|
|
1523
1522
|
localVarQueryParameter['endDate'] = endDate;
|
|
1524
1523
|
}
|
|
1525
|
-
if (
|
|
1526
|
-
localVarQueryParameter['
|
|
1524
|
+
if (isVip !== undefined) {
|
|
1525
|
+
localVarQueryParameter['is_vip'] = isVip;
|
|
1527
1526
|
}
|
|
1528
|
-
if (
|
|
1529
|
-
localVarQueryParameter['
|
|
1527
|
+
if (isHistory !== undefined) {
|
|
1528
|
+
localVarQueryParameter['is_history'] = isHistory;
|
|
1529
|
+
}
|
|
1530
|
+
if (isExport !== undefined) {
|
|
1531
|
+
localVarQueryParameter['is_export'] = isExport;
|
|
1532
|
+
}
|
|
1533
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1534
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1535
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1536
|
+
return {
|
|
1537
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1538
|
+
options: localVarRequestOptions,
|
|
1539
|
+
};
|
|
1540
|
+
}),
|
|
1541
|
+
/**
|
|
1542
|
+
*
|
|
1543
|
+
* @param {string} [orderBy]
|
|
1544
|
+
* @param {string} [orderDirection]
|
|
1545
|
+
* @param {number} [pageNumber]
|
|
1546
|
+
* @param {number} [pageSize]
|
|
1547
|
+
* @param {string} [filterBy]
|
|
1548
|
+
* @param {string} [filterKey]
|
|
1549
|
+
* @param {string} [startDate]
|
|
1550
|
+
* @param {string} [endDate]
|
|
1551
|
+
* @param {boolean} [isVip]
|
|
1552
|
+
* @param {boolean} [isHistory]
|
|
1553
|
+
* @param {boolean} [isExport]
|
|
1554
|
+
* @param {*} [options] Override http request option.
|
|
1555
|
+
* @throws {RequiredError}
|
|
1556
|
+
*/
|
|
1557
|
+
registeredVehiclesIndex: (orderBy, orderDirection, pageNumber, pageSize, filterBy, filterKey, startDate, endDate, isVip, isHistory, isExport, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1558
|
+
const localVarPath = `/registered-vehicles`;
|
|
1559
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1560
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1561
|
+
let baseOptions;
|
|
1562
|
+
if (configuration) {
|
|
1563
|
+
baseOptions = configuration.baseOptions;
|
|
1564
|
+
}
|
|
1565
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1566
|
+
const localVarHeaderParameter = {};
|
|
1567
|
+
const localVarQueryParameter = {};
|
|
1568
|
+
if (orderBy !== undefined) {
|
|
1569
|
+
localVarQueryParameter['order_by'] = orderBy;
|
|
1570
|
+
}
|
|
1571
|
+
if (orderDirection !== undefined) {
|
|
1572
|
+
localVarQueryParameter['order_direction'] = orderDirection;
|
|
1573
|
+
}
|
|
1574
|
+
if (pageNumber !== undefined) {
|
|
1575
|
+
localVarQueryParameter['page_number'] = pageNumber;
|
|
1576
|
+
}
|
|
1577
|
+
if (pageSize !== undefined) {
|
|
1578
|
+
localVarQueryParameter['page_size'] = pageSize;
|
|
1579
|
+
}
|
|
1580
|
+
if (filterBy !== undefined) {
|
|
1581
|
+
localVarQueryParameter['filter_by'] = filterBy;
|
|
1582
|
+
}
|
|
1583
|
+
if (filterKey !== undefined) {
|
|
1584
|
+
localVarQueryParameter['filter_key'] = filterKey;
|
|
1585
|
+
}
|
|
1586
|
+
if (startDate !== undefined) {
|
|
1587
|
+
localVarQueryParameter['startDate'] = startDate;
|
|
1588
|
+
}
|
|
1589
|
+
if (endDate !== undefined) {
|
|
1590
|
+
localVarQueryParameter['endDate'] = endDate;
|
|
1530
1591
|
}
|
|
1531
1592
|
if (isVip !== undefined) {
|
|
1532
1593
|
localVarQueryParameter['is_vip'] = isVip;
|
|
1533
1594
|
}
|
|
1595
|
+
if (isHistory !== undefined) {
|
|
1596
|
+
localVarQueryParameter['is_history'] = isHistory;
|
|
1597
|
+
}
|
|
1534
1598
|
if (isExport !== undefined) {
|
|
1535
1599
|
localVarQueryParameter['is_export'] = isExport;
|
|
1536
1600
|
}
|
|
@@ -1639,6 +1703,39 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
1639
1703
|
options: localVarRequestOptions,
|
|
1640
1704
|
};
|
|
1641
1705
|
}),
|
|
1706
|
+
/**
|
|
1707
|
+
*
|
|
1708
|
+
* @param {string} id
|
|
1709
|
+
* @param {RemoveVipVehicleBody} removeVipVehicleBody
|
|
1710
|
+
* @param {*} [options] Override http request option.
|
|
1711
|
+
* @throws {RequiredError}
|
|
1712
|
+
*/
|
|
1713
|
+
registeredVehiclesRemoveVip: (id, removeVipVehicleBody, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1714
|
+
// verify required parameter 'id' is not null or undefined
|
|
1715
|
+
(0, common_1.assertParamExists)('registeredVehiclesRemoveVip', 'id', id);
|
|
1716
|
+
// verify required parameter 'removeVipVehicleBody' is not null or undefined
|
|
1717
|
+
(0, common_1.assertParamExists)('registeredVehiclesRemoveVip', 'removeVipVehicleBody', removeVipVehicleBody);
|
|
1718
|
+
const localVarPath = `/registered-vehicles/remove-vip/{id}`
|
|
1719
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
1720
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1721
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1722
|
+
let baseOptions;
|
|
1723
|
+
if (configuration) {
|
|
1724
|
+
baseOptions = configuration.baseOptions;
|
|
1725
|
+
}
|
|
1726
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1727
|
+
const localVarHeaderParameter = {};
|
|
1728
|
+
const localVarQueryParameter = {};
|
|
1729
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1730
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1731
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1732
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1733
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(removeVipVehicleBody, localVarRequestOptions, configuration);
|
|
1734
|
+
return {
|
|
1735
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1736
|
+
options: localVarRequestOptions,
|
|
1737
|
+
};
|
|
1738
|
+
}),
|
|
1642
1739
|
/**
|
|
1643
1740
|
*
|
|
1644
1741
|
* @param {UpdateRegisteredVehicleBody} updateRegisteredVehicleBody
|
|
@@ -2316,16 +2413,37 @@ const DefaultApiFp = function (configuration) {
|
|
|
2316
2413
|
* @param {string} [filterKey]
|
|
2317
2414
|
* @param {string} [startDate]
|
|
2318
2415
|
* @param {string} [endDate]
|
|
2319
|
-
* @param {string} [plateNo]
|
|
2320
|
-
* @param {string} [plateProvince]
|
|
2321
2416
|
* @param {boolean} [isVip]
|
|
2417
|
+
* @param {boolean} [isHistory]
|
|
2418
|
+
* @param {boolean} [isExport]
|
|
2419
|
+
* @param {*} [options] Override http request option.
|
|
2420
|
+
* @throws {RequiredError}
|
|
2421
|
+
*/
|
|
2422
|
+
registeredVehiclesHistoryIndex(orderBy, orderDirection, pageNumber, pageSize, filterBy, filterKey, startDate, endDate, isVip, isHistory, isExport, options) {
|
|
2423
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2424
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.registeredVehiclesHistoryIndex(orderBy, orderDirection, pageNumber, pageSize, filterBy, filterKey, startDate, endDate, isVip, isHistory, isExport, options);
|
|
2425
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2426
|
+
});
|
|
2427
|
+
},
|
|
2428
|
+
/**
|
|
2429
|
+
*
|
|
2430
|
+
* @param {string} [orderBy]
|
|
2431
|
+
* @param {string} [orderDirection]
|
|
2432
|
+
* @param {number} [pageNumber]
|
|
2433
|
+
* @param {number} [pageSize]
|
|
2434
|
+
* @param {string} [filterBy]
|
|
2435
|
+
* @param {string} [filterKey]
|
|
2436
|
+
* @param {string} [startDate]
|
|
2437
|
+
* @param {string} [endDate]
|
|
2438
|
+
* @param {boolean} [isVip]
|
|
2439
|
+
* @param {boolean} [isHistory]
|
|
2322
2440
|
* @param {boolean} [isExport]
|
|
2323
2441
|
* @param {*} [options] Override http request option.
|
|
2324
2442
|
* @throws {RequiredError}
|
|
2325
2443
|
*/
|
|
2326
|
-
registeredVehiclesIndex(orderBy, orderDirection, pageNumber, pageSize, filterBy, filterKey, startDate, endDate,
|
|
2444
|
+
registeredVehiclesIndex(orderBy, orderDirection, pageNumber, pageSize, filterBy, filterKey, startDate, endDate, isVip, isHistory, isExport, options) {
|
|
2327
2445
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2328
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.registeredVehiclesIndex(orderBy, orderDirection, pageNumber, pageSize, filterBy, filterKey, startDate, endDate,
|
|
2446
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.registeredVehiclesIndex(orderBy, orderDirection, pageNumber, pageSize, filterBy, filterKey, startDate, endDate, isVip, isHistory, isExport, options);
|
|
2329
2447
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2330
2448
|
});
|
|
2331
2449
|
},
|
|
@@ -2367,6 +2485,19 @@ const DefaultApiFp = function (configuration) {
|
|
|
2367
2485
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2368
2486
|
});
|
|
2369
2487
|
},
|
|
2488
|
+
/**
|
|
2489
|
+
*
|
|
2490
|
+
* @param {string} id
|
|
2491
|
+
* @param {RemoveVipVehicleBody} removeVipVehicleBody
|
|
2492
|
+
* @param {*} [options] Override http request option.
|
|
2493
|
+
* @throws {RequiredError}
|
|
2494
|
+
*/
|
|
2495
|
+
registeredVehiclesRemoveVip(id, removeVipVehicleBody, options) {
|
|
2496
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2497
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.registeredVehiclesRemoveVip(id, removeVipVehicleBody, options);
|
|
2498
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2499
|
+
});
|
|
2500
|
+
},
|
|
2370
2501
|
/**
|
|
2371
2502
|
*
|
|
2372
2503
|
* @param {UpdateRegisteredVehicleBody} updateRegisteredVehicleBody
|
|
@@ -2854,15 +2985,33 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
2854
2985
|
* @param {string} [filterKey]
|
|
2855
2986
|
* @param {string} [startDate]
|
|
2856
2987
|
* @param {string} [endDate]
|
|
2857
|
-
* @param {string} [plateNo]
|
|
2858
|
-
* @param {string} [plateProvince]
|
|
2859
2988
|
* @param {boolean} [isVip]
|
|
2989
|
+
* @param {boolean} [isHistory]
|
|
2990
|
+
* @param {boolean} [isExport]
|
|
2991
|
+
* @param {*} [options] Override http request option.
|
|
2992
|
+
* @throws {RequiredError}
|
|
2993
|
+
*/
|
|
2994
|
+
registeredVehiclesHistoryIndex(orderBy, orderDirection, pageNumber, pageSize, filterBy, filterKey, startDate, endDate, isVip, isHistory, isExport, options) {
|
|
2995
|
+
return localVarFp.registeredVehiclesHistoryIndex(orderBy, orderDirection, pageNumber, pageSize, filterBy, filterKey, startDate, endDate, isVip, isHistory, isExport, options).then((request) => request(axios, basePath));
|
|
2996
|
+
},
|
|
2997
|
+
/**
|
|
2998
|
+
*
|
|
2999
|
+
* @param {string} [orderBy]
|
|
3000
|
+
* @param {string} [orderDirection]
|
|
3001
|
+
* @param {number} [pageNumber]
|
|
3002
|
+
* @param {number} [pageSize]
|
|
3003
|
+
* @param {string} [filterBy]
|
|
3004
|
+
* @param {string} [filterKey]
|
|
3005
|
+
* @param {string} [startDate]
|
|
3006
|
+
* @param {string} [endDate]
|
|
3007
|
+
* @param {boolean} [isVip]
|
|
3008
|
+
* @param {boolean} [isHistory]
|
|
2860
3009
|
* @param {boolean} [isExport]
|
|
2861
3010
|
* @param {*} [options] Override http request option.
|
|
2862
3011
|
* @throws {RequiredError}
|
|
2863
3012
|
*/
|
|
2864
|
-
registeredVehiclesIndex(orderBy, orderDirection, pageNumber, pageSize, filterBy, filterKey, startDate, endDate,
|
|
2865
|
-
return localVarFp.registeredVehiclesIndex(orderBy, orderDirection, pageNumber, pageSize, filterBy, filterKey, startDate, endDate,
|
|
3013
|
+
registeredVehiclesIndex(orderBy, orderDirection, pageNumber, pageSize, filterBy, filterKey, startDate, endDate, isVip, isHistory, isExport, options) {
|
|
3014
|
+
return localVarFp.registeredVehiclesIndex(orderBy, orderDirection, pageNumber, pageSize, filterBy, filterKey, startDate, endDate, isVip, isHistory, isExport, options).then((request) => request(axios, basePath));
|
|
2866
3015
|
},
|
|
2867
3016
|
/**
|
|
2868
3017
|
*
|
|
@@ -2893,6 +3042,16 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
2893
3042
|
registeredVehiclesRegister(createRegisteredVehicleBody, xAccountId, options) {
|
|
2894
3043
|
return localVarFp.registeredVehiclesRegister(createRegisteredVehicleBody, xAccountId, options).then((request) => request(axios, basePath));
|
|
2895
3044
|
},
|
|
3045
|
+
/**
|
|
3046
|
+
*
|
|
3047
|
+
* @param {string} id
|
|
3048
|
+
* @param {RemoveVipVehicleBody} removeVipVehicleBody
|
|
3049
|
+
* @param {*} [options] Override http request option.
|
|
3050
|
+
* @throws {RequiredError}
|
|
3051
|
+
*/
|
|
3052
|
+
registeredVehiclesRemoveVip(id, removeVipVehicleBody, options) {
|
|
3053
|
+
return localVarFp.registeredVehiclesRemoveVip(id, removeVipVehicleBody, options).then((request) => request(axios, basePath));
|
|
3054
|
+
},
|
|
2896
3055
|
/**
|
|
2897
3056
|
*
|
|
2898
3057
|
* @param {UpdateRegisteredVehicleBody} updateRegisteredVehicleBody
|
|
@@ -3403,16 +3562,35 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
3403
3562
|
* @param {string} [filterKey]
|
|
3404
3563
|
* @param {string} [startDate]
|
|
3405
3564
|
* @param {string} [endDate]
|
|
3406
|
-
* @param {string} [plateNo]
|
|
3407
|
-
* @param {string} [plateProvince]
|
|
3408
3565
|
* @param {boolean} [isVip]
|
|
3566
|
+
* @param {boolean} [isHistory]
|
|
3567
|
+
* @param {boolean} [isExport]
|
|
3568
|
+
* @param {*} [options] Override http request option.
|
|
3569
|
+
* @throws {RequiredError}
|
|
3570
|
+
* @memberof DefaultApi
|
|
3571
|
+
*/
|
|
3572
|
+
registeredVehiclesHistoryIndex(orderBy, orderDirection, pageNumber, pageSize, filterBy, filterKey, startDate, endDate, isVip, isHistory, isExport, options) {
|
|
3573
|
+
return (0, exports.DefaultApiFp)(this.configuration).registeredVehiclesHistoryIndex(orderBy, orderDirection, pageNumber, pageSize, filterBy, filterKey, startDate, endDate, isVip, isHistory, isExport, options).then((request) => request(this.axios, this.basePath));
|
|
3574
|
+
}
|
|
3575
|
+
/**
|
|
3576
|
+
*
|
|
3577
|
+
* @param {string} [orderBy]
|
|
3578
|
+
* @param {string} [orderDirection]
|
|
3579
|
+
* @param {number} [pageNumber]
|
|
3580
|
+
* @param {number} [pageSize]
|
|
3581
|
+
* @param {string} [filterBy]
|
|
3582
|
+
* @param {string} [filterKey]
|
|
3583
|
+
* @param {string} [startDate]
|
|
3584
|
+
* @param {string} [endDate]
|
|
3585
|
+
* @param {boolean} [isVip]
|
|
3586
|
+
* @param {boolean} [isHistory]
|
|
3409
3587
|
* @param {boolean} [isExport]
|
|
3410
3588
|
* @param {*} [options] Override http request option.
|
|
3411
3589
|
* @throws {RequiredError}
|
|
3412
3590
|
* @memberof DefaultApi
|
|
3413
3591
|
*/
|
|
3414
|
-
registeredVehiclesIndex(orderBy, orderDirection, pageNumber, pageSize, filterBy, filterKey, startDate, endDate,
|
|
3415
|
-
return (0, exports.DefaultApiFp)(this.configuration).registeredVehiclesIndex(orderBy, orderDirection, pageNumber, pageSize, filterBy, filterKey, startDate, endDate,
|
|
3592
|
+
registeredVehiclesIndex(orderBy, orderDirection, pageNumber, pageSize, filterBy, filterKey, startDate, endDate, isVip, isHistory, isExport, options) {
|
|
3593
|
+
return (0, exports.DefaultApiFp)(this.configuration).registeredVehiclesIndex(orderBy, orderDirection, pageNumber, pageSize, filterBy, filterKey, startDate, endDate, isVip, isHistory, isExport, options).then((request) => request(this.axios, this.basePath));
|
|
3416
3594
|
}
|
|
3417
3595
|
/**
|
|
3418
3596
|
*
|
|
@@ -3446,6 +3624,17 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
3446
3624
|
registeredVehiclesRegister(createRegisteredVehicleBody, xAccountId, options) {
|
|
3447
3625
|
return (0, exports.DefaultApiFp)(this.configuration).registeredVehiclesRegister(createRegisteredVehicleBody, xAccountId, options).then((request) => request(this.axios, this.basePath));
|
|
3448
3626
|
}
|
|
3627
|
+
/**
|
|
3628
|
+
*
|
|
3629
|
+
* @param {string} id
|
|
3630
|
+
* @param {RemoveVipVehicleBody} removeVipVehicleBody
|
|
3631
|
+
* @param {*} [options] Override http request option.
|
|
3632
|
+
* @throws {RequiredError}
|
|
3633
|
+
* @memberof DefaultApi
|
|
3634
|
+
*/
|
|
3635
|
+
registeredVehiclesRemoveVip(id, removeVipVehicleBody, options) {
|
|
3636
|
+
return (0, exports.DefaultApiFp)(this.configuration).registeredVehiclesRemoveVip(id, removeVipVehicleBody, options).then((request) => request(this.axios, this.basePath));
|
|
3637
|
+
}
|
|
3449
3638
|
/**
|
|
3450
3639
|
*
|
|
3451
3640
|
* @param {UpdateRegisteredVehicleBody} updateRegisteredVehicleBody
|