@dapex-tech/elite-online-services 0.0.18 → 0.0.21
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/createClient.d.ts +2 -0
- package/createClient.js +1 -1
- package/models/AdminDto.d.ts +2 -1
- package/models/AdminLoginResponseDto.d.ts +2 -1
- package/models/CustomerDto.d.ts +5 -0
- package/models/CustomerLocationCreateDto.d.ts +2 -16
- package/models/CustomerLocationCreateDto.js +0 -18
- package/models/CustomerLocationDto.d.ts +2 -16
- package/models/CustomerLocationDto.js +0 -18
- package/models/CustomerLocationUpdateDto.d.ts +2 -16
- package/models/CustomerLocationUpdateDto.js +0 -18
- package/models/CustomerLoginResponseDto.d.ts +5 -0
- package/models/DriverAssignmentModes.d.ts +4 -0
- package/models/DriverAssignmentModes.js +12 -0
- package/models/DriverCreateDto.d.ts +4 -0
- package/models/DriverDto.d.ts +6 -1
- package/models/DriverLoginResponseDto.d.ts +6 -1
- package/models/DriverUpdateDto.d.ts +4 -0
- package/models/EstimateTripCostDto.d.ts +18 -0
- package/models/EstimateTripCostDto.js +2 -0
- package/models/JobSummaryDto.d.ts +42 -0
- package/models/JobSummaryDto.js +2 -0
- package/models/JobsListResponseDto.d.ts +7 -0
- package/models/JobsListResponseDto.js +2 -0
- package/models/LocationTypes.d.ts +13 -0
- package/models/LocationTypes.js +21 -0
- package/models/PaymentTypes.d.ts +8 -0
- package/models/PaymentTypes.js +16 -0
- package/models/QueueJobCountsDto.d.ts +26 -0
- package/models/QueueJobCountsDto.js +2 -0
- package/models/QueueSummaryDto.d.ts +11 -0
- package/models/QueueSummaryDto.js +2 -0
- package/models/Role.d.ts +8 -0
- package/models/Role.js +16 -0
- package/models/SectionContentCreateDto.d.ts +2 -10
- package/models/SectionContentCreateDto.js +0 -12
- package/models/SectionContentDto.d.ts +2 -10
- package/models/SectionContentDto.js +0 -12
- package/models/SectionContentUpdateDto.d.ts +2 -10
- package/models/SectionContentUpdateDto.js +0 -12
- package/models/SectionContentsTypes.d.ts +8 -0
- package/models/SectionContentsTypes.js +16 -0
- package/models/SystemSettingResponseDto.d.ts +18 -0
- package/models/SystemSettingResponseDto.js +2 -0
- package/models/TripDto.d.ts +28 -55
- package/models/TripDto.js +0 -58
- package/models/TripSources.d.ts +5 -0
- package/models/TripSources.js +13 -0
- package/models/TripUpdateDriverAssignmentModeDto.d.ts +2 -1
- package/models/TripUpdateDto.d.ts +5 -10
- package/models/TripUpdateDto.js +0 -13
- package/models/TripUpdateTripsStatusDto.d.ts +2 -22
- package/models/TripUpdateTripsStatusDto.js +0 -24
- package/models/TwilioTokenResponse.d.ts +10 -0
- package/models/TwilioTokenResponse.js +2 -0
- package/models/UpdateSystemSettingDto.d.ts +10 -0
- package/models/UpdateSystemSettingDto.js +2 -0
- package/models/VehicleCreateDto.d.ts +51 -0
- package/models/VehicleCreateDto.js +2 -0
- package/models/VehicleDto.d.ts +60 -0
- package/models/VehicleDto.js +2 -0
- package/models/VehicleStatus.d.ts +7 -0
- package/models/VehicleStatus.js +15 -0
- package/models/VehicleTypes.d.ts +8 -0
- package/models/VehicleTypes.js +16 -0
- package/models/VehicleUpdateDto.d.ts +51 -0
- package/models/VehicleUpdateDto.js +2 -0
- package/models/index.d.ts +19 -0
- package/models/index.js +19 -0
- package/package.json +1 -1
- package/services/AdminDriversService.d.ts +7 -0
- package/services/AdminDriversService.js +12 -0
- package/services/AdminQueuesService.d.ts +30 -0
- package/services/AdminQueuesService.js +62 -0
- package/services/AdminSectionContentService.d.ts +2 -1
- package/services/AdminService.d.ts +7 -0
- package/services/AdminService.js +11 -0
- package/services/AdminSettingsService.d.ts +20 -3
- package/services/AdminSettingsService.js +41 -2
- package/services/AdminTripsService.d.ts +10 -1
- package/services/AdminTripsService.js +17 -1
- package/services/AdminVehicleService.d.ts +46 -0
- package/services/AdminVehicleService.js +89 -0
- package/services/CustomerSectionContentsService.d.ts +30 -4
- package/services/CustomerSectionContentsService.js +58 -6
- package/services/CustomerTripsService.d.ts +8 -0
- package/services/CustomerTripsService.js +14 -0
- package/services/CustomersService.d.ts +7 -0
- package/services/CustomersService.js +11 -0
- package/services/DriverTripsService.d.ts +8 -0
- package/services/DriverTripsService.js +14 -0
- package/services/DriversService.d.ts +14 -0
- package/services/DriversService.js +22 -0
- package/services/HealthService.d.ts +0 -10
- package/services/HealthService.js +0 -13
- package/services/index.d.ts +2 -0
- package/services/index.js +2 -0
- package/types/realtime/active-trip.d.ts +3 -1
- package/types/realtime/driver-status.d.ts +2 -0
- package/types/realtime/driver-status.js +7 -0
- package/socketService.bak.d.ts +0 -54
- package/socketService.bak.js +0 -99
|
@@ -1,14 +1,2 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SectionContentUpdateDto = void 0;
|
|
4
|
-
var SectionContentUpdateDto;
|
|
5
|
-
(function (SectionContentUpdateDto) {
|
|
6
|
-
/**
|
|
7
|
-
* Section content type
|
|
8
|
-
*/
|
|
9
|
-
let type;
|
|
10
|
-
(function (type) {
|
|
11
|
-
type["LEGAL"] = "legal";
|
|
12
|
-
type["HELP"] = "help";
|
|
13
|
-
})(type = SectionContentUpdateDto.type || (SectionContentUpdateDto.type = {}));
|
|
14
|
-
})(SectionContentUpdateDto || (exports.SectionContentUpdateDto = SectionContentUpdateDto = {}));
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SectionContentsTypes = void 0;
|
|
4
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
5
|
+
/* istanbul ignore file */
|
|
6
|
+
/* tslint:disable */
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
/**
|
|
9
|
+
* Section content type
|
|
10
|
+
*/
|
|
11
|
+
var SectionContentsTypes;
|
|
12
|
+
(function (SectionContentsTypes) {
|
|
13
|
+
SectionContentsTypes["LEGAL"] = "legal";
|
|
14
|
+
SectionContentsTypes["HELP"] = "help";
|
|
15
|
+
SectionContentsTypes["FAQ"] = "faq";
|
|
16
|
+
})(SectionContentsTypes || (exports.SectionContentsTypes = SectionContentsTypes = {}));
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export type SystemSettingResponseDto = {
|
|
2
|
+
/**
|
|
3
|
+
* System setting primary key
|
|
4
|
+
*/
|
|
5
|
+
id: number;
|
|
6
|
+
/**
|
|
7
|
+
* Unique setting key
|
|
8
|
+
*/
|
|
9
|
+
key: string;
|
|
10
|
+
/**
|
|
11
|
+
* Setting type: string, number, boolean, or json
|
|
12
|
+
*/
|
|
13
|
+
type: string;
|
|
14
|
+
/**
|
|
15
|
+
* Setting value (stored as string; interpret according to type)
|
|
16
|
+
*/
|
|
17
|
+
value: string;
|
|
18
|
+
};
|
package/models/TripDto.d.ts
CHANGED
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
import type { AdminDto } from './AdminDto';
|
|
2
2
|
import type { CustomerDto } from './CustomerDto';
|
|
3
|
+
import type { DriverAssignmentModes } from './DriverAssignmentModes';
|
|
3
4
|
import type { DriverDto } from './DriverDto';
|
|
5
|
+
import type { LocationTypes } from './LocationTypes';
|
|
4
6
|
import type { ManualCustomerDto } from './ManualCustomerDto';
|
|
5
7
|
import type { PaymentDto } from './PaymentDto';
|
|
8
|
+
import type { PaymentTypes } from './PaymentTypes';
|
|
6
9
|
import type { TripLocationPointDto } from './TripLocationPointDto';
|
|
10
|
+
import type { TripSources } from './TripSources';
|
|
11
|
+
import type { TripStatuses } from './TripStatuses';
|
|
7
12
|
import type { VoucherDto } from './VoucherDto';
|
|
8
13
|
export type TripDto = {
|
|
9
14
|
/**
|
|
@@ -15,13 +20,21 @@ export type TripDto = {
|
|
|
15
20
|
adminId?: Record<string, any> | null;
|
|
16
21
|
voucherId?: Record<string, any> | null;
|
|
17
22
|
manualCustomerId?: Record<string, any> | null;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
23
|
+
/**
|
|
24
|
+
* Vehicle ID (admin assigned)
|
|
25
|
+
*/
|
|
26
|
+
vehicleId?: Record<string, any> | null;
|
|
27
|
+
/**
|
|
28
|
+
* Paired round-trip ID (if this trip is part of a round trip)
|
|
29
|
+
*/
|
|
30
|
+
roundTripId?: Record<string, any> | null;
|
|
31
|
+
status?: TripStatuses;
|
|
32
|
+
tripSource?: TripSources;
|
|
33
|
+
driverAssignmentMode?: DriverAssignmentModes;
|
|
21
34
|
/**
|
|
22
35
|
* Payment type (CASH or DEBIT_CREDIT_CARD)
|
|
23
36
|
*/
|
|
24
|
-
paymentType?:
|
|
37
|
+
paymentType?: PaymentTypes;
|
|
25
38
|
/**
|
|
26
39
|
* Customer payment method ID for card payments
|
|
27
40
|
*/
|
|
@@ -29,7 +42,7 @@ export type TripDto = {
|
|
|
29
42
|
/**
|
|
30
43
|
* Origin location type
|
|
31
44
|
*/
|
|
32
|
-
originLocationType?:
|
|
45
|
+
originLocationType?: LocationTypes | null;
|
|
33
46
|
/**
|
|
34
47
|
* Origin latitude
|
|
35
48
|
*/
|
|
@@ -61,7 +74,7 @@ export type TripDto = {
|
|
|
61
74
|
/**
|
|
62
75
|
* Destination location type
|
|
63
76
|
*/
|
|
64
|
-
destinationLocationType?:
|
|
77
|
+
destinationLocationType?: LocationTypes | null;
|
|
65
78
|
/**
|
|
66
79
|
* Destination latitude
|
|
67
80
|
*/
|
|
@@ -160,6 +173,10 @@ export type TripDto = {
|
|
|
160
173
|
* Scheduled pickup datetime (admin only)
|
|
161
174
|
*/
|
|
162
175
|
scheduledPickupDateTime?: Record<string, any> | null;
|
|
176
|
+
/**
|
|
177
|
+
* Scheduled pickup datetime for the return leg when creating a round trip (admin only)
|
|
178
|
+
*/
|
|
179
|
+
roundTripScheduleTime?: Record<string, any> | null;
|
|
163
180
|
total?: Record<string, any> | null;
|
|
164
181
|
/**
|
|
165
182
|
* Customer information
|
|
@@ -189,56 +206,12 @@ export type TripDto = {
|
|
|
189
206
|
* Manual customer information
|
|
190
207
|
*/
|
|
191
208
|
manualCustomer?: ManualCustomerDto | null;
|
|
192
|
-
};
|
|
193
|
-
export declare namespace TripDto {
|
|
194
|
-
enum status {
|
|
195
|
-
SCHEDULED = "SCHEDULED",
|
|
196
|
-
REQUESTED = "REQUESTED",
|
|
197
|
-
DRIVER_SEARCHING = "DRIVER_SEARCHING",
|
|
198
|
-
DRIVER_ASSIGNED = "DRIVER_ASSIGNED",
|
|
199
|
-
DRIVER_ASSIGNED_PENDING = "DRIVER_ASSIGNED_PENDING",
|
|
200
|
-
DRIVER_ONWAY = "DRIVER_ONWAY",
|
|
201
|
-
DRIVER_AT_PICKUP = "DRIVER_AT_PICKUP",
|
|
202
|
-
IN_PROGRESS = "IN_PROGRESS",
|
|
203
|
-
PAUSED = "PAUSED",
|
|
204
|
-
PAUSED_TRAFFIC = "PAUSED_TRAFFIC",
|
|
205
|
-
COMPLETED = "COMPLETED",
|
|
206
|
-
CANCELED_PASSENGER = "CANCELED_PASSENGER",
|
|
207
|
-
CANCELED_DRIVER = "CANCELED_DRIVER",
|
|
208
|
-
CANCELED_ADMIN = "CANCELED_ADMIN"
|
|
209
|
-
}
|
|
210
209
|
/**
|
|
211
|
-
*
|
|
212
|
-
*/
|
|
213
|
-
enum paymentType {
|
|
214
|
-
CASH = "CASH",
|
|
215
|
-
DEBIT_CREDIT_CARD = "DEBIT_CREDIT_CARD",
|
|
216
|
-
VOUCHER = "VOUCHER"
|
|
217
|
-
}
|
|
218
|
-
/**
|
|
219
|
-
* Origin location type
|
|
210
|
+
* Paired round trip (if this trip is part of a round trip). This nested object does not itself contain a roundTrip to avoid circular references.
|
|
220
211
|
*/
|
|
221
|
-
|
|
222
|
-
HOME = "HOME",
|
|
223
|
-
APARTMENT = "APARTMENT",
|
|
224
|
-
OFFICE = "OFFICE",
|
|
225
|
-
HOSPITAL = "HOSPITAL",
|
|
226
|
-
MALL = "MALL",
|
|
227
|
-
HOTEL = "HOTEL",
|
|
228
|
-
BUSINESS = "BUSINESS",
|
|
229
|
-
OTHER = "OTHER"
|
|
230
|
-
}
|
|
212
|
+
roundTrip?: TripDto | null;
|
|
231
213
|
/**
|
|
232
|
-
*
|
|
214
|
+
* Created at
|
|
233
215
|
*/
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
APARTMENT = "APARTMENT",
|
|
237
|
-
OFFICE = "OFFICE",
|
|
238
|
-
HOSPITAL = "HOSPITAL",
|
|
239
|
-
MALL = "MALL",
|
|
240
|
-
HOTEL = "HOTEL",
|
|
241
|
-
BUSINESS = "BUSINESS",
|
|
242
|
-
OTHER = "OTHER"
|
|
243
|
-
}
|
|
244
|
-
}
|
|
216
|
+
createdAt?: Record<string, any> | null;
|
|
217
|
+
};
|
package/models/TripDto.js
CHANGED
|
@@ -1,60 +1,2 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TripDto = void 0;
|
|
4
|
-
var TripDto;
|
|
5
|
-
(function (TripDto) {
|
|
6
|
-
let status;
|
|
7
|
-
(function (status) {
|
|
8
|
-
status["SCHEDULED"] = "SCHEDULED";
|
|
9
|
-
status["REQUESTED"] = "REQUESTED";
|
|
10
|
-
status["DRIVER_SEARCHING"] = "DRIVER_SEARCHING";
|
|
11
|
-
status["DRIVER_ASSIGNED"] = "DRIVER_ASSIGNED";
|
|
12
|
-
status["DRIVER_ASSIGNED_PENDING"] = "DRIVER_ASSIGNED_PENDING";
|
|
13
|
-
status["DRIVER_ONWAY"] = "DRIVER_ONWAY";
|
|
14
|
-
status["DRIVER_AT_PICKUP"] = "DRIVER_AT_PICKUP";
|
|
15
|
-
status["IN_PROGRESS"] = "IN_PROGRESS";
|
|
16
|
-
status["PAUSED"] = "PAUSED";
|
|
17
|
-
status["PAUSED_TRAFFIC"] = "PAUSED_TRAFFIC";
|
|
18
|
-
status["COMPLETED"] = "COMPLETED";
|
|
19
|
-
status["CANCELED_PASSENGER"] = "CANCELED_PASSENGER";
|
|
20
|
-
status["CANCELED_DRIVER"] = "CANCELED_DRIVER";
|
|
21
|
-
status["CANCELED_ADMIN"] = "CANCELED_ADMIN";
|
|
22
|
-
})(status = TripDto.status || (TripDto.status = {}));
|
|
23
|
-
/**
|
|
24
|
-
* Payment type (CASH or DEBIT_CREDIT_CARD)
|
|
25
|
-
*/
|
|
26
|
-
let paymentType;
|
|
27
|
-
(function (paymentType) {
|
|
28
|
-
paymentType["CASH"] = "CASH";
|
|
29
|
-
paymentType["DEBIT_CREDIT_CARD"] = "DEBIT_CREDIT_CARD";
|
|
30
|
-
paymentType["VOUCHER"] = "VOUCHER";
|
|
31
|
-
})(paymentType = TripDto.paymentType || (TripDto.paymentType = {}));
|
|
32
|
-
/**
|
|
33
|
-
* Origin location type
|
|
34
|
-
*/
|
|
35
|
-
let originLocationType;
|
|
36
|
-
(function (originLocationType) {
|
|
37
|
-
originLocationType["HOME"] = "HOME";
|
|
38
|
-
originLocationType["APARTMENT"] = "APARTMENT";
|
|
39
|
-
originLocationType["OFFICE"] = "OFFICE";
|
|
40
|
-
originLocationType["HOSPITAL"] = "HOSPITAL";
|
|
41
|
-
originLocationType["MALL"] = "MALL";
|
|
42
|
-
originLocationType["HOTEL"] = "HOTEL";
|
|
43
|
-
originLocationType["BUSINESS"] = "BUSINESS";
|
|
44
|
-
originLocationType["OTHER"] = "OTHER";
|
|
45
|
-
})(originLocationType = TripDto.originLocationType || (TripDto.originLocationType = {}));
|
|
46
|
-
/**
|
|
47
|
-
* Destination location type
|
|
48
|
-
*/
|
|
49
|
-
let destinationLocationType;
|
|
50
|
-
(function (destinationLocationType) {
|
|
51
|
-
destinationLocationType["HOME"] = "HOME";
|
|
52
|
-
destinationLocationType["APARTMENT"] = "APARTMENT";
|
|
53
|
-
destinationLocationType["OFFICE"] = "OFFICE";
|
|
54
|
-
destinationLocationType["HOSPITAL"] = "HOSPITAL";
|
|
55
|
-
destinationLocationType["MALL"] = "MALL";
|
|
56
|
-
destinationLocationType["HOTEL"] = "HOTEL";
|
|
57
|
-
destinationLocationType["BUSINESS"] = "BUSINESS";
|
|
58
|
-
destinationLocationType["OTHER"] = "OTHER";
|
|
59
|
-
})(destinationLocationType = TripDto.destinationLocationType || (TripDto.destinationLocationType = {}));
|
|
60
|
-
})(TripDto || (exports.TripDto = TripDto = {}));
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TripSources = void 0;
|
|
4
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
5
|
+
/* istanbul ignore file */
|
|
6
|
+
/* tslint:disable */
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
var TripSources;
|
|
9
|
+
(function (TripSources) {
|
|
10
|
+
TripSources["CUSTOMER_APP"] = "CUSTOMER_APP";
|
|
11
|
+
TripSources["STREET_PICKUP"] = "STREET_PICKUP";
|
|
12
|
+
TripSources["BACKOFFICE"] = "BACKOFFICE";
|
|
13
|
+
})(TripSources || (exports.TripSources = TripSources = {}));
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import type { DriverAssignmentModes } from './DriverAssignmentModes';
|
|
1
2
|
export type TripUpdateDriverAssignmentModeDto = {
|
|
2
3
|
/**
|
|
3
4
|
* Driver assignment mode to update the trip to
|
|
4
5
|
*/
|
|
5
|
-
driverAssignmentMode:
|
|
6
|
+
driverAssignmentMode: DriverAssignmentModes;
|
|
6
7
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { PaymentTypes } from './PaymentTypes';
|
|
1
2
|
export type TripUpdateDto = {
|
|
2
3
|
driverId?: Record<string, any> | null;
|
|
3
4
|
customerId?: Record<string, any> | null;
|
|
@@ -6,7 +7,7 @@ export type TripUpdateDto = {
|
|
|
6
7
|
/**
|
|
7
8
|
* Payment type (CASH or DEBIT_CREDIT_CARD)
|
|
8
9
|
*/
|
|
9
|
-
paymentType?:
|
|
10
|
+
paymentType?: PaymentTypes | null;
|
|
10
11
|
/**
|
|
11
12
|
* Customer payment method ID for card payments
|
|
12
13
|
*/
|
|
@@ -49,14 +50,8 @@ export type TripUpdateDto = {
|
|
|
49
50
|
* Scheduled pickup datetime (admin only)
|
|
50
51
|
*/
|
|
51
52
|
scheduledPickupDateTime?: Record<string, any> | null;
|
|
52
|
-
};
|
|
53
|
-
export declare namespace TripUpdateDto {
|
|
54
53
|
/**
|
|
55
|
-
*
|
|
54
|
+
* Vehicle ID (admin only)
|
|
56
55
|
*/
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
DEBIT_CREDIT_CARD = "DEBIT_CREDIT_CARD",
|
|
60
|
-
VOUCHER = "VOUCHER"
|
|
61
|
-
}
|
|
62
|
-
}
|
|
56
|
+
vehicleId?: Record<string, any> | null;
|
|
57
|
+
};
|
package/models/TripUpdateDto.js
CHANGED
|
@@ -1,15 +1,2 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TripUpdateDto = void 0;
|
|
4
|
-
var TripUpdateDto;
|
|
5
|
-
(function (TripUpdateDto) {
|
|
6
|
-
/**
|
|
7
|
-
* Payment type (CASH or DEBIT_CREDIT_CARD)
|
|
8
|
-
*/
|
|
9
|
-
let paymentType;
|
|
10
|
-
(function (paymentType) {
|
|
11
|
-
paymentType["CASH"] = "CASH";
|
|
12
|
-
paymentType["DEBIT_CREDIT_CARD"] = "DEBIT_CREDIT_CARD";
|
|
13
|
-
paymentType["VOUCHER"] = "VOUCHER";
|
|
14
|
-
})(paymentType = TripUpdateDto.paymentType || (TripUpdateDto.paymentType = {}));
|
|
15
|
-
})(TripUpdateDto || (exports.TripUpdateDto = TripUpdateDto = {}));
|
|
@@ -1,27 +1,7 @@
|
|
|
1
|
+
import type { TripStatuses } from './TripStatuses';
|
|
1
2
|
export type TripUpdateTripsStatusDto = {
|
|
2
3
|
/**
|
|
3
4
|
* Status to update the trip to
|
|
4
5
|
*/
|
|
5
|
-
status:
|
|
6
|
+
status: TripStatuses;
|
|
6
7
|
};
|
|
7
|
-
export declare namespace TripUpdateTripsStatusDto {
|
|
8
|
-
/**
|
|
9
|
-
* Status to update the trip to
|
|
10
|
-
*/
|
|
11
|
-
enum status {
|
|
12
|
-
SCHEDULED = "SCHEDULED",
|
|
13
|
-
REQUESTED = "REQUESTED",
|
|
14
|
-
DRIVER_SEARCHING = "DRIVER_SEARCHING",
|
|
15
|
-
DRIVER_ASSIGNED = "DRIVER_ASSIGNED",
|
|
16
|
-
DRIVER_ASSIGNED_PENDING = "DRIVER_ASSIGNED_PENDING",
|
|
17
|
-
DRIVER_ONWAY = "DRIVER_ONWAY",
|
|
18
|
-
DRIVER_AT_PICKUP = "DRIVER_AT_PICKUP",
|
|
19
|
-
IN_PROGRESS = "IN_PROGRESS",
|
|
20
|
-
PAUSED = "PAUSED",
|
|
21
|
-
PAUSED_TRAFFIC = "PAUSED_TRAFFIC",
|
|
22
|
-
COMPLETED = "COMPLETED",
|
|
23
|
-
CANCELED_PASSENGER = "CANCELED_PASSENGER",
|
|
24
|
-
CANCELED_DRIVER = "CANCELED_DRIVER",
|
|
25
|
-
CANCELED_ADMIN = "CANCELED_ADMIN"
|
|
26
|
-
}
|
|
27
|
-
}
|
|
@@ -1,26 +1,2 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TripUpdateTripsStatusDto = void 0;
|
|
4
|
-
var TripUpdateTripsStatusDto;
|
|
5
|
-
(function (TripUpdateTripsStatusDto) {
|
|
6
|
-
/**
|
|
7
|
-
* Status to update the trip to
|
|
8
|
-
*/
|
|
9
|
-
let status;
|
|
10
|
-
(function (status) {
|
|
11
|
-
status["SCHEDULED"] = "SCHEDULED";
|
|
12
|
-
status["REQUESTED"] = "REQUESTED";
|
|
13
|
-
status["DRIVER_SEARCHING"] = "DRIVER_SEARCHING";
|
|
14
|
-
status["DRIVER_ASSIGNED"] = "DRIVER_ASSIGNED";
|
|
15
|
-
status["DRIVER_ASSIGNED_PENDING"] = "DRIVER_ASSIGNED_PENDING";
|
|
16
|
-
status["DRIVER_ONWAY"] = "DRIVER_ONWAY";
|
|
17
|
-
status["DRIVER_AT_PICKUP"] = "DRIVER_AT_PICKUP";
|
|
18
|
-
status["IN_PROGRESS"] = "IN_PROGRESS";
|
|
19
|
-
status["PAUSED"] = "PAUSED";
|
|
20
|
-
status["PAUSED_TRAFFIC"] = "PAUSED_TRAFFIC";
|
|
21
|
-
status["COMPLETED"] = "COMPLETED";
|
|
22
|
-
status["CANCELED_PASSENGER"] = "CANCELED_PASSENGER";
|
|
23
|
-
status["CANCELED_DRIVER"] = "CANCELED_DRIVER";
|
|
24
|
-
status["CANCELED_ADMIN"] = "CANCELED_ADMIN";
|
|
25
|
-
})(status = TripUpdateTripsStatusDto.status || (TripUpdateTripsStatusDto.status = {}));
|
|
26
|
-
})(TripUpdateTripsStatusDto || (exports.TripUpdateTripsStatusDto = TripUpdateTripsStatusDto = {}));
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import type { VehicleStatus } from './VehicleStatus';
|
|
2
|
+
export type VehicleCreateDto = {
|
|
3
|
+
/**
|
|
4
|
+
* Cab number
|
|
5
|
+
*/
|
|
6
|
+
cab: number;
|
|
7
|
+
/**
|
|
8
|
+
* Vehicle brand
|
|
9
|
+
*/
|
|
10
|
+
brand: string;
|
|
11
|
+
/**
|
|
12
|
+
* Vehicle model
|
|
13
|
+
*/
|
|
14
|
+
model?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Insurance information
|
|
17
|
+
*/
|
|
18
|
+
insurance?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Emission test information
|
|
21
|
+
*/
|
|
22
|
+
emissionTest?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Vehicle registration information
|
|
25
|
+
*/
|
|
26
|
+
registration?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Vehicle title
|
|
29
|
+
*/
|
|
30
|
+
title?: string;
|
|
31
|
+
/**
|
|
32
|
+
* License plate
|
|
33
|
+
*/
|
|
34
|
+
plate?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Plate expiration date
|
|
37
|
+
*/
|
|
38
|
+
expirationPlate?: Record<string, any>;
|
|
39
|
+
/**
|
|
40
|
+
* Vehicle type
|
|
41
|
+
*/
|
|
42
|
+
type?: string;
|
|
43
|
+
/**
|
|
44
|
+
* Vehicle color
|
|
45
|
+
*/
|
|
46
|
+
color?: string;
|
|
47
|
+
/**
|
|
48
|
+
* Vehicle status
|
|
49
|
+
*/
|
|
50
|
+
status?: VehicleStatus;
|
|
51
|
+
};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import type { VehicleStatus } from './VehicleStatus';
|
|
2
|
+
import type { VehicleTypes } from './VehicleTypes';
|
|
3
|
+
export type VehicleDto = {
|
|
4
|
+
/**
|
|
5
|
+
* Vehicle ID
|
|
6
|
+
*/
|
|
7
|
+
id: number;
|
|
8
|
+
/**
|
|
9
|
+
* Cab number
|
|
10
|
+
*/
|
|
11
|
+
cab: number;
|
|
12
|
+
/**
|
|
13
|
+
* Vehicle brand
|
|
14
|
+
*/
|
|
15
|
+
brand: string;
|
|
16
|
+
/**
|
|
17
|
+
* Vehicle model
|
|
18
|
+
*/
|
|
19
|
+
model?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Insurance information
|
|
22
|
+
*/
|
|
23
|
+
insurance?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Emission test information
|
|
26
|
+
*/
|
|
27
|
+
emissionTest?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Vehicle registration information
|
|
30
|
+
*/
|
|
31
|
+
registration?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Vehicle title
|
|
34
|
+
*/
|
|
35
|
+
title?: string;
|
|
36
|
+
/**
|
|
37
|
+
* License plate
|
|
38
|
+
*/
|
|
39
|
+
plate?: string;
|
|
40
|
+
/**
|
|
41
|
+
* Plate expiration date
|
|
42
|
+
*/
|
|
43
|
+
expirationPlate?: Record<string, any>;
|
|
44
|
+
/**
|
|
45
|
+
* Vehicle type
|
|
46
|
+
*/
|
|
47
|
+
type?: VehicleTypes;
|
|
48
|
+
/**
|
|
49
|
+
* Vehicle color
|
|
50
|
+
*/
|
|
51
|
+
color?: string;
|
|
52
|
+
/**
|
|
53
|
+
* Vehicle status
|
|
54
|
+
*/
|
|
55
|
+
status?: VehicleStatus;
|
|
56
|
+
/**
|
|
57
|
+
* Created at timestamp
|
|
58
|
+
*/
|
|
59
|
+
createdAt: string;
|
|
60
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VehicleStatus = void 0;
|
|
4
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
5
|
+
/* istanbul ignore file */
|
|
6
|
+
/* tslint:disable */
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
/**
|
|
9
|
+
* Vehicle status
|
|
10
|
+
*/
|
|
11
|
+
var VehicleStatus;
|
|
12
|
+
(function (VehicleStatus) {
|
|
13
|
+
VehicleStatus["ACTIVE"] = "active";
|
|
14
|
+
VehicleStatus["INACTIVE"] = "inactive";
|
|
15
|
+
})(VehicleStatus || (exports.VehicleStatus = VehicleStatus = {}));
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VehicleTypes = void 0;
|
|
4
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
5
|
+
/* istanbul ignore file */
|
|
6
|
+
/* tslint:disable */
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
/**
|
|
9
|
+
* Vehicle type
|
|
10
|
+
*/
|
|
11
|
+
var VehicleTypes;
|
|
12
|
+
(function (VehicleTypes) {
|
|
13
|
+
VehicleTypes["SEDAN"] = "sedan";
|
|
14
|
+
VehicleTypes["SUV"] = "suv";
|
|
15
|
+
VehicleTypes["OTHER"] = "other";
|
|
16
|
+
})(VehicleTypes || (exports.VehicleTypes = VehicleTypes = {}));
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import type { VehicleTypes } from './VehicleTypes';
|
|
2
|
+
export type VehicleUpdateDto = {
|
|
3
|
+
/**
|
|
4
|
+
* Cab number
|
|
5
|
+
*/
|
|
6
|
+
cab?: number;
|
|
7
|
+
/**
|
|
8
|
+
* Vehicle brand
|
|
9
|
+
*/
|
|
10
|
+
brand?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Vehicle model
|
|
13
|
+
*/
|
|
14
|
+
model?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Insurance information
|
|
17
|
+
*/
|
|
18
|
+
insurance?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Emission test information
|
|
21
|
+
*/
|
|
22
|
+
emissionTest?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Vehicle registration information
|
|
25
|
+
*/
|
|
26
|
+
registration?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Vehicle title
|
|
29
|
+
*/
|
|
30
|
+
title?: string;
|
|
31
|
+
/**
|
|
32
|
+
* License plate
|
|
33
|
+
*/
|
|
34
|
+
plate?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Plate expiration date
|
|
37
|
+
*/
|
|
38
|
+
expirationPlate?: Record<string, any>;
|
|
39
|
+
/**
|
|
40
|
+
* Vehicle type
|
|
41
|
+
*/
|
|
42
|
+
type?: VehicleTypes;
|
|
43
|
+
/**
|
|
44
|
+
* Vehicle color
|
|
45
|
+
*/
|
|
46
|
+
color?: string;
|
|
47
|
+
/**
|
|
48
|
+
* Vehicle status
|
|
49
|
+
*/
|
|
50
|
+
status?: string;
|
|
51
|
+
};
|