@dapex-tech/elite-online-services 0.0.7 → 0.0.10
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 +19 -0
- package/createClient.js +1 -2
- package/models/AdminDto.d.ts +18 -6
- package/models/{LoginDto.d.ts → AdminLoginDto.d.ts} +1 -1
- package/models/AdminUpdateDto.d.ts +0 -4
- package/models/CustomerDto.d.ts +66 -0
- package/models/{CreateUserLocationDto.d.ts → CustomerLocationCreateDto.d.ts} +2 -2
- package/models/CustomerLocationDto.d.ts +34 -0
- package/models/{UpdateUserLocationDto.d.ts → CustomerLocationUpdateDto.d.ts} +2 -2
- package/models/CustomerLoginDto.d.ts +18 -0
- package/models/{UserDto.d.ts → CustomerUpdatedDto.d.ts} +5 -5
- package/models/{VerifyUserAccountDto.d.ts → CustomerVerifyAccountDto.d.ts} +5 -1
- package/models/DriverDto.d.ts +16 -4
- package/models/{EmailPhoneLoginDto.d.ts → DriverLoginDto.d.ts} +2 -6
- package/models/DriverTripActions.d.ts +10 -0
- package/models/DriverTripActions.js +18 -0
- package/models/DriverUpdateDto.d.ts +6 -6
- package/models/GenerateResetCodeDto.d.ts +6 -2
- package/models/GenerateVerificationCodeDto.d.ts +10 -0
- package/models/PaymentDto.d.ts +18 -0
- package/models/ResetPasswordDto.d.ts +14 -0
- package/models/TripAssignDriverDto.d.ts +6 -0
- package/models/TripDto.d.ts +108 -0
- package/models/TripLocationPointDto.d.ts +26 -0
- package/models/TripUpdateDriverAssignmentModeDto.d.ts +6 -0
- package/models/TripUpdateDto.d.ts +38 -0
- package/models/TripUpdateTripsStatusDto.d.ts +6 -0
- package/models/ValidateResetCodeDto.d.ts +14 -0
- package/models/ValidateResetCodeDto.js +2 -0
- package/models/index.d.ts +20 -18
- package/models/index.js +20 -18
- package/package.json +1 -1
- package/services/AdminAuthService.d.ts +28 -3
- package/services/AdminAuthService.js +57 -1
- package/services/AdminCustomerService.d.ts +50 -0
- package/services/AdminCustomerService.js +119 -0
- package/services/AdminDriversService.d.ts +51 -0
- package/services/AdminDriversService.js +122 -0
- package/services/AdminService.d.ts +0 -44
- package/services/AdminService.js +0 -100
- package/services/AdminTripsService.d.ts +59 -0
- package/services/AdminTripsService.js +150 -0
- package/services/CustomerLocationsService.d.ts +41 -0
- package/services/CustomerLocationsService.js +93 -0
- package/services/CustomerTripsService.d.ts +63 -0
- package/services/CustomerTripsService.js +162 -0
- package/services/CustomersAuthService.d.ts +88 -0
- package/services/{UserAuthService.js → CustomersAuthService.js} +24 -21
- package/services/CustomersService.d.ts +17 -0
- package/services/CustomersService.js +41 -0
- package/services/DriverAuthService.d.ts +6 -6
- package/services/DriverAuthService.js +1 -1
- package/services/DriverTripsService.d.ts +49 -0
- package/services/DriverTripsService.js +121 -0
- package/services/DriversService.d.ts +9 -53
- package/services/DriversService.js +14 -132
- package/services/MainService.d.ts +5 -0
- package/services/MainService.js +10 -0
- package/services/index.d.ts +8 -3
- package/services/index.js +8 -3
- package/socketService.d.ts +54 -0
- package/socketService.js +91 -96
- package/models/CreateServiceOrderDto.d.ts +0 -46
- package/models/CreateStreetPickupDto.d.ts +0 -10
- package/models/GenerateUserResetCodeDto.d.ts +0 -6
- package/models/GenerateUserVerificationCodeDto.d.ts +0 -6
- package/models/ResetDriverPasswordDto.d.ts +0 -10
- package/models/ResetUserPasswordDto.d.ts +0 -10
- package/models/UpdateDriverStatusDto.d.ts +0 -10
- package/models/UpdateDriverTripStatusDto.d.ts +0 -14
- package/models/UpdateTripStatusDto.d.ts +0 -10
- package/models/UserUpdatedDto.d.ts +0 -18
- package/models/ValidateDriverResetCodeDto.d.ts +0 -10
- package/models/ValidateUserResetCodeDto.d.ts +0 -10
- package/services/CatalogsService.d.ts +0 -67
- package/services/CatalogsService.js +0 -142
- package/services/UserAuthService.d.ts +0 -85
- package/services/UsersService.d.ts +0 -81
- package/services/UsersService.js +0 -198
- /package/models/{CreateServiceOrderDto.js → AdminLoginDto.js} +0 -0
- /package/models/{CreateStreetPickupDto.js → CustomerDto.js} +0 -0
- /package/models/{CreateUserLocationDto.js → CustomerLocationCreateDto.js} +0 -0
- /package/models/{EmailPhoneLoginDto.js → CustomerLocationDto.js} +0 -0
- /package/models/{GenerateUserResetCodeDto.js → CustomerLocationUpdateDto.js} +0 -0
- /package/models/{GenerateUserVerificationCodeDto.js → CustomerLoginDto.js} +0 -0
- /package/models/{LoginDto.js → CustomerUpdatedDto.js} +0 -0
- /package/models/{ResetDriverPasswordDto.js → CustomerVerifyAccountDto.js} +0 -0
- /package/models/{ResetUserPasswordDto.js → DriverLoginDto.js} +0 -0
- /package/models/{UpdateDriverStatusDto.js → GenerateVerificationCodeDto.js} +0 -0
- /package/models/{UpdateDriverTripStatusDto.js → PaymentDto.js} +0 -0
- /package/models/{UpdateTripStatusDto.js → ResetPasswordDto.js} +0 -0
- /package/models/{UpdateUserLocationDto.js → TripAssignDriverDto.js} +0 -0
- /package/models/{UserDto.js → TripDto.js} +0 -0
- /package/models/{UserUpdatedDto.js → TripLocationPointDto.js} +0 -0
- /package/models/{ValidateDriverResetCodeDto.js → TripUpdateDriverAssignmentModeDto.js} +0 -0
- /package/models/{ValidateUserResetCodeDto.js → TripUpdateDto.js} +0 -0
- /package/models/{VerifyUserAccountDto.js → TripUpdateTripsStatusDto.js} +0 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as services from './services';
|
|
2
|
+
/**
|
|
3
|
+
* Crea un cliente SDK con la URL base configurada
|
|
4
|
+
*/
|
|
5
|
+
export declare function createClient(baseUrl?: string): {
|
|
6
|
+
AdminAuthService: typeof services.AdminAuthService;
|
|
7
|
+
AdminCustomerService: typeof services.AdminCustomerService;
|
|
8
|
+
AdminDriversService: typeof services.AdminDriversService;
|
|
9
|
+
AdminService: typeof services.AdminService;
|
|
10
|
+
AdminTripsService: typeof services.AdminTripsService;
|
|
11
|
+
CustomerLocationsService: typeof services.CustomerLocationsService;
|
|
12
|
+
CustomerTripsService: typeof services.CustomerTripsService;
|
|
13
|
+
CustomersAuthService: typeof services.CustomersAuthService;
|
|
14
|
+
CustomersService: typeof services.CustomersService;
|
|
15
|
+
DriverAuthService: typeof services.DriverAuthService;
|
|
16
|
+
DriverTripsService: typeof services.DriverTripsService;
|
|
17
|
+
DriversService: typeof services.DriversService;
|
|
18
|
+
MainService: typeof services.MainService;
|
|
19
|
+
};
|
package/createClient.js
CHANGED
|
@@ -39,9 +39,8 @@ const services = __importStar(require("./services"));
|
|
|
39
39
|
/**
|
|
40
40
|
* Crea un cliente SDK con la URL base configurada
|
|
41
41
|
*/
|
|
42
|
-
function createClient(baseUrl
|
|
42
|
+
function createClient(baseUrl) {
|
|
43
43
|
OpenAPI_1.OpenAPI.BASE = baseUrl || process.env.API_URL || 'http://localhost:3000';
|
|
44
|
-
OpenAPI_1.OpenAPI.TOKEN = token || process.env.API_TOKEN || '';
|
|
45
44
|
return {
|
|
46
45
|
...services, // todos los servicios agrupados
|
|
47
46
|
};
|
package/models/AdminDto.d.ts
CHANGED
|
@@ -1,12 +1,20 @@
|
|
|
1
1
|
export type AdminDto = {
|
|
2
|
+
/**
|
|
3
|
+
* Admin ID
|
|
4
|
+
*/
|
|
5
|
+
id: number;
|
|
2
6
|
/**
|
|
3
7
|
* Admin First Name
|
|
4
8
|
*/
|
|
5
|
-
|
|
9
|
+
firstName?: string;
|
|
6
10
|
/**
|
|
7
11
|
* Admin Last Name
|
|
8
12
|
*/
|
|
9
|
-
|
|
13
|
+
lastName?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Admin Phone Country Code
|
|
16
|
+
*/
|
|
17
|
+
phoneCountryCode?: string;
|
|
10
18
|
/**
|
|
11
19
|
* Admin Phone Number
|
|
12
20
|
*/
|
|
@@ -14,13 +22,17 @@ export type AdminDto = {
|
|
|
14
22
|
/**
|
|
15
23
|
* Admin Email
|
|
16
24
|
*/
|
|
17
|
-
email
|
|
25
|
+
email?: string;
|
|
18
26
|
/**
|
|
19
27
|
* Admin Password
|
|
20
28
|
*/
|
|
21
|
-
password
|
|
29
|
+
password?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Admin Role
|
|
32
|
+
*/
|
|
33
|
+
role?: Record<string, any>;
|
|
22
34
|
/**
|
|
23
|
-
* Admin
|
|
35
|
+
* Admin created at
|
|
24
36
|
*/
|
|
25
|
-
|
|
37
|
+
createdAt?: string;
|
|
26
38
|
};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
export type CustomerDto = {
|
|
2
|
+
/**
|
|
3
|
+
* User ID
|
|
4
|
+
*/
|
|
5
|
+
id: number;
|
|
6
|
+
/**
|
|
7
|
+
* Customer First Name
|
|
8
|
+
*/
|
|
9
|
+
firstName: string;
|
|
10
|
+
/**
|
|
11
|
+
* Customer Last Name
|
|
12
|
+
*/
|
|
13
|
+
lastName: string;
|
|
14
|
+
/**
|
|
15
|
+
* Customer Email
|
|
16
|
+
*/
|
|
17
|
+
email: string;
|
|
18
|
+
/**
|
|
19
|
+
* User Password
|
|
20
|
+
*/
|
|
21
|
+
password: string;
|
|
22
|
+
/**
|
|
23
|
+
* Customer Phone Country Code
|
|
24
|
+
*/
|
|
25
|
+
phoneCountryCode?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Customer Phone Number
|
|
28
|
+
*/
|
|
29
|
+
phone?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Customer Verified Status
|
|
32
|
+
*/
|
|
33
|
+
isVerified?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Customer Reset Code
|
|
36
|
+
*/
|
|
37
|
+
resetCode?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Customer Reset Expires At
|
|
40
|
+
*/
|
|
41
|
+
resetExpiresAt?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Customer Verification Code
|
|
44
|
+
*/
|
|
45
|
+
verificationCode?: string;
|
|
46
|
+
/**
|
|
47
|
+
* Customer Verification Expires At
|
|
48
|
+
*/
|
|
49
|
+
verificationExpiresAt?: string;
|
|
50
|
+
/**
|
|
51
|
+
* Customer FCM Token
|
|
52
|
+
*/
|
|
53
|
+
fcmToken?: string;
|
|
54
|
+
/**
|
|
55
|
+
* Customer Created At
|
|
56
|
+
*/
|
|
57
|
+
createdAt?: string;
|
|
58
|
+
/**
|
|
59
|
+
* Customer Updated At
|
|
60
|
+
*/
|
|
61
|
+
updatedAt?: string;
|
|
62
|
+
/**
|
|
63
|
+
* Customer Deleted At
|
|
64
|
+
*/
|
|
65
|
+
deletedAt?: string;
|
|
66
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type
|
|
1
|
+
export type CustomerLocationCreateDto = {
|
|
2
2
|
/**
|
|
3
3
|
* Location alias (e.g., "Home", "Work")
|
|
4
4
|
*/
|
|
@@ -6,7 +6,7 @@ export type CreateUserLocationDto = {
|
|
|
6
6
|
/**
|
|
7
7
|
* Google Places API place ID
|
|
8
8
|
*/
|
|
9
|
-
|
|
9
|
+
placeId?: string;
|
|
10
10
|
/**
|
|
11
11
|
* Location name
|
|
12
12
|
*/
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export type CustomerLocationDto = {
|
|
2
|
+
/**
|
|
3
|
+
* Location ID
|
|
4
|
+
*/
|
|
5
|
+
id: number;
|
|
6
|
+
/**
|
|
7
|
+
* Customer ID
|
|
8
|
+
*/
|
|
9
|
+
customerId: number;
|
|
10
|
+
/**
|
|
11
|
+
* Location alias (e.g., "Home", "Work")
|
|
12
|
+
*/
|
|
13
|
+
alias?: Record<string, any> | null;
|
|
14
|
+
/**
|
|
15
|
+
* Google Places API place ID
|
|
16
|
+
*/
|
|
17
|
+
placeId?: Record<string, any> | null;
|
|
18
|
+
/**
|
|
19
|
+
* Location name
|
|
20
|
+
*/
|
|
21
|
+
name?: Record<string, any> | null;
|
|
22
|
+
/**
|
|
23
|
+
* Latitude
|
|
24
|
+
*/
|
|
25
|
+
latitude: string;
|
|
26
|
+
/**
|
|
27
|
+
* Longitude
|
|
28
|
+
*/
|
|
29
|
+
longitude: string;
|
|
30
|
+
/**
|
|
31
|
+
* Full address
|
|
32
|
+
*/
|
|
33
|
+
address?: Record<string, any> | null;
|
|
34
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type
|
|
1
|
+
export type CustomerLocationUpdateDto = {
|
|
2
2
|
/**
|
|
3
3
|
* Location alias (e.g., "Home", "Work")
|
|
4
4
|
*/
|
|
@@ -6,7 +6,7 @@ export type UpdateUserLocationDto = {
|
|
|
6
6
|
/**
|
|
7
7
|
* Google Places API place ID
|
|
8
8
|
*/
|
|
9
|
-
|
|
9
|
+
placeId?: string;
|
|
10
10
|
/**
|
|
11
11
|
* Location name
|
|
12
12
|
*/
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export type CustomerLoginDto = {
|
|
2
|
+
/**
|
|
3
|
+
* Email must be valid
|
|
4
|
+
*/
|
|
5
|
+
email: string;
|
|
6
|
+
/**
|
|
7
|
+
* Phone must be valid
|
|
8
|
+
*/
|
|
9
|
+
phone: string;
|
|
10
|
+
/**
|
|
11
|
+
* Phone country code
|
|
12
|
+
*/
|
|
13
|
+
phoneCountryCode: string;
|
|
14
|
+
/**
|
|
15
|
+
* Password must be at least 6 characters long
|
|
16
|
+
*/
|
|
17
|
+
password: string;
|
|
18
|
+
};
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
export type
|
|
1
|
+
export type CustomerUpdatedDto = {
|
|
2
2
|
/**
|
|
3
3
|
* User First Name
|
|
4
4
|
*/
|
|
5
|
-
|
|
5
|
+
firstName: string;
|
|
6
6
|
/**
|
|
7
7
|
* User Last Name
|
|
8
8
|
*/
|
|
9
|
-
|
|
9
|
+
lastName: string;
|
|
10
10
|
/**
|
|
11
11
|
* User Email
|
|
12
12
|
*/
|
|
13
13
|
email: string;
|
|
14
14
|
/**
|
|
15
|
-
* User
|
|
15
|
+
* User Phone Country Code
|
|
16
16
|
*/
|
|
17
|
-
|
|
17
|
+
phoneCountryCode?: string;
|
|
18
18
|
/**
|
|
19
19
|
* User Phone Number
|
|
20
20
|
*/
|
package/models/DriverDto.d.ts
CHANGED
|
@@ -1,12 +1,20 @@
|
|
|
1
1
|
export type DriverDto = {
|
|
2
|
+
/**
|
|
3
|
+
* Admin ID
|
|
4
|
+
*/
|
|
5
|
+
id: number;
|
|
2
6
|
/**
|
|
3
7
|
* Driver First Name
|
|
4
8
|
*/
|
|
5
|
-
|
|
9
|
+
firstName: string;
|
|
6
10
|
/**
|
|
7
11
|
* Driver Last Name
|
|
8
12
|
*/
|
|
9
|
-
|
|
13
|
+
lastName: string;
|
|
14
|
+
/**
|
|
15
|
+
* Driver Phone Country Code
|
|
16
|
+
*/
|
|
17
|
+
phoneCountryCode?: string;
|
|
10
18
|
/**
|
|
11
19
|
* Driver Phone Number (10 digits)
|
|
12
20
|
*/
|
|
@@ -34,9 +42,13 @@ export type DriverDto = {
|
|
|
34
42
|
/**
|
|
35
43
|
* Last Location
|
|
36
44
|
*/
|
|
37
|
-
|
|
45
|
+
lastLocation?: string;
|
|
38
46
|
/**
|
|
39
47
|
* Last Heartbeat
|
|
40
48
|
*/
|
|
41
|
-
|
|
49
|
+
lastHeartbeat?: string;
|
|
50
|
+
/**
|
|
51
|
+
* Driver Role
|
|
52
|
+
*/
|
|
53
|
+
role?: Record<string, any>;
|
|
42
54
|
};
|
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
export type
|
|
1
|
+
export type DriverLoginDto = {
|
|
2
2
|
/**
|
|
3
3
|
* Email must be valid
|
|
4
4
|
*/
|
|
5
|
-
email
|
|
6
|
-
/**
|
|
7
|
-
* Phone number must be valid
|
|
8
|
-
*/
|
|
9
|
-
phone?: string;
|
|
5
|
+
email: string;
|
|
10
6
|
/**
|
|
11
7
|
* Password must be at least 6 characters long
|
|
12
8
|
*/
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DriverTripActions = void 0;
|
|
4
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
5
|
+
/* istanbul ignore file */
|
|
6
|
+
/* tslint:disable */
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
var DriverTripActions;
|
|
9
|
+
(function (DriverTripActions) {
|
|
10
|
+
DriverTripActions["ACCEPT"] = "accept";
|
|
11
|
+
DriverTripActions["REJECT"] = "reject";
|
|
12
|
+
DriverTripActions["DRIVER_AT_PICKUP"] = "driver-at-pickup";
|
|
13
|
+
DriverTripActions["START"] = "start";
|
|
14
|
+
DriverTripActions["PAUSE"] = "pause";
|
|
15
|
+
DriverTripActions["PAUSE_TRAFFIC"] = "pause-traffic";
|
|
16
|
+
DriverTripActions["RESUME"] = "resume";
|
|
17
|
+
DriverTripActions["CANCEL"] = "cancel";
|
|
18
|
+
})(DriverTripActions || (exports.DriverTripActions = DriverTripActions = {}));
|
|
@@ -2,11 +2,11 @@ export type DriverUpdateDto = {
|
|
|
2
2
|
/**
|
|
3
3
|
* Driver First Name
|
|
4
4
|
*/
|
|
5
|
-
|
|
5
|
+
firstName?: string;
|
|
6
6
|
/**
|
|
7
7
|
* Driver Last Name
|
|
8
8
|
*/
|
|
9
|
-
|
|
9
|
+
lastName?: string;
|
|
10
10
|
/**
|
|
11
11
|
* Driver Phone Number (10 digits)
|
|
12
12
|
*/
|
|
@@ -34,17 +34,17 @@ export type DriverUpdateDto = {
|
|
|
34
34
|
/**
|
|
35
35
|
* Last Location
|
|
36
36
|
*/
|
|
37
|
-
|
|
37
|
+
lastLocation?: string;
|
|
38
38
|
/**
|
|
39
39
|
* Last Heartbeat
|
|
40
40
|
*/
|
|
41
|
-
|
|
41
|
+
lastHeartbeat?: string;
|
|
42
42
|
/**
|
|
43
43
|
* Reset Code
|
|
44
44
|
*/
|
|
45
|
-
|
|
45
|
+
resetCode?: Record<string, any> | null;
|
|
46
46
|
/**
|
|
47
47
|
* Reset Expires At
|
|
48
48
|
*/
|
|
49
|
-
|
|
49
|
+
resetExpiresAt?: Record<string, any> | null;
|
|
50
50
|
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export type PaymentDto = {
|
|
2
|
+
/**
|
|
3
|
+
* Payment ID
|
|
4
|
+
*/
|
|
5
|
+
id: number;
|
|
6
|
+
/**
|
|
7
|
+
* Trip ID
|
|
8
|
+
*/
|
|
9
|
+
tripId?: Record<string, any> | null;
|
|
10
|
+
/**
|
|
11
|
+
* Payment method
|
|
12
|
+
*/
|
|
13
|
+
paymentMethod?: Record<string, any> | null;
|
|
14
|
+
/**
|
|
15
|
+
* Payment status
|
|
16
|
+
*/
|
|
17
|
+
status?: Record<string, any> | null;
|
|
18
|
+
};
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import type { AdminDto } from './AdminDto';
|
|
2
|
+
import type { CustomerDto } from './CustomerDto';
|
|
3
|
+
import type { DriverDto } from './DriverDto';
|
|
4
|
+
import type { PaymentDto } from './PaymentDto';
|
|
5
|
+
import type { TripLocationPointDto } from './TripLocationPointDto';
|
|
6
|
+
export type TripDto = {
|
|
7
|
+
/**
|
|
8
|
+
* Trip ID
|
|
9
|
+
*/
|
|
10
|
+
id: number;
|
|
11
|
+
driverId?: Record<string, any> | null;
|
|
12
|
+
customerId?: Record<string, any> | null;
|
|
13
|
+
adminId?: Record<string, any> | null;
|
|
14
|
+
status: Record<string, any>;
|
|
15
|
+
tripSource: Record<string, any>;
|
|
16
|
+
driverAssignmentMode: Record<string, any>;
|
|
17
|
+
/**
|
|
18
|
+
* Origin location type
|
|
19
|
+
*/
|
|
20
|
+
originLocationType?: Record<string, any> | null;
|
|
21
|
+
/**
|
|
22
|
+
* Origin latitude
|
|
23
|
+
*/
|
|
24
|
+
originLatitude?: Record<string, any> | null;
|
|
25
|
+
/**
|
|
26
|
+
* Origin longitude
|
|
27
|
+
*/
|
|
28
|
+
originLongitude?: Record<string, any> | null;
|
|
29
|
+
/**
|
|
30
|
+
* Origin address
|
|
31
|
+
*/
|
|
32
|
+
originAddress?: Record<string, any> | null;
|
|
33
|
+
/**
|
|
34
|
+
* Origin name
|
|
35
|
+
*/
|
|
36
|
+
originName?: Record<string, any> | null;
|
|
37
|
+
/**
|
|
38
|
+
* Destination location type
|
|
39
|
+
*/
|
|
40
|
+
destinationLocationType?: Record<string, any> | null;
|
|
41
|
+
/**
|
|
42
|
+
* Destination latitude
|
|
43
|
+
*/
|
|
44
|
+
destinationLatitude?: Record<string, any> | null;
|
|
45
|
+
/**
|
|
46
|
+
* Destination longitude
|
|
47
|
+
*/
|
|
48
|
+
destinationLongitude?: Record<string, any> | null;
|
|
49
|
+
/**
|
|
50
|
+
* Destination address
|
|
51
|
+
*/
|
|
52
|
+
destinationAddress?: Record<string, any> | null;
|
|
53
|
+
/**
|
|
54
|
+
* Destination name
|
|
55
|
+
*/
|
|
56
|
+
destinationName?: Record<string, any> | null;
|
|
57
|
+
/**
|
|
58
|
+
* Trip duration (minutes)
|
|
59
|
+
*/
|
|
60
|
+
duration?: Record<string, any> | null;
|
|
61
|
+
/**
|
|
62
|
+
* Trip distance (km)
|
|
63
|
+
*/
|
|
64
|
+
distance?: Record<string, any> | null;
|
|
65
|
+
/**
|
|
66
|
+
* Customer first name
|
|
67
|
+
*/
|
|
68
|
+
customerName?: Record<string, any> | null;
|
|
69
|
+
/**
|
|
70
|
+
* Customer last name
|
|
71
|
+
*/
|
|
72
|
+
customerLastName?: Record<string, any> | null;
|
|
73
|
+
/**
|
|
74
|
+
* Customer phone country code
|
|
75
|
+
*/
|
|
76
|
+
customerPhoneCountryCode?: Record<string, any> | null;
|
|
77
|
+
/**
|
|
78
|
+
* Customer phone
|
|
79
|
+
*/
|
|
80
|
+
customerPhone?: Record<string, any> | null;
|
|
81
|
+
/**
|
|
82
|
+
* Total trip cost
|
|
83
|
+
*/
|
|
84
|
+
totalCost?: Record<string, any> | null;
|
|
85
|
+
startedAt?: Record<string, any> | null;
|
|
86
|
+
completedAt?: Record<string, any> | null;
|
|
87
|
+
total?: Record<string, any> | null;
|
|
88
|
+
/**
|
|
89
|
+
* Customer information
|
|
90
|
+
*/
|
|
91
|
+
customer?: CustomerDto | null;
|
|
92
|
+
/**
|
|
93
|
+
* Admin information
|
|
94
|
+
*/
|
|
95
|
+
admin?: AdminDto | null;
|
|
96
|
+
/**
|
|
97
|
+
* Driver information
|
|
98
|
+
*/
|
|
99
|
+
driver?: DriverDto | null;
|
|
100
|
+
/**
|
|
101
|
+
* Trip location points
|
|
102
|
+
*/
|
|
103
|
+
locationPoints?: Array<TripLocationPointDto> | null;
|
|
104
|
+
/**
|
|
105
|
+
* Payments associated with the trip
|
|
106
|
+
*/
|
|
107
|
+
payments?: Array<PaymentDto> | null;
|
|
108
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export type TripLocationPointDto = {
|
|
2
|
+
/**
|
|
3
|
+
* Location point ID
|
|
4
|
+
*/
|
|
5
|
+
id: number;
|
|
6
|
+
/**
|
|
7
|
+
* Trip ID
|
|
8
|
+
*/
|
|
9
|
+
tripId?: Record<string, any> | null;
|
|
10
|
+
/**
|
|
11
|
+
* Latitude
|
|
12
|
+
*/
|
|
13
|
+
latitude?: Record<string, any> | null;
|
|
14
|
+
/**
|
|
15
|
+
* Longitude
|
|
16
|
+
*/
|
|
17
|
+
longitude?: Record<string, any> | null;
|
|
18
|
+
/**
|
|
19
|
+
* Status
|
|
20
|
+
*/
|
|
21
|
+
status?: Record<string, any> | null;
|
|
22
|
+
/**
|
|
23
|
+
* Created at timestamp
|
|
24
|
+
*/
|
|
25
|
+
createdAt?: Record<string, any> | null;
|
|
26
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export type TripUpdateDto = {
|
|
2
|
+
driverId?: Record<string, any> | null;
|
|
3
|
+
customerId?: Record<string, any> | null;
|
|
4
|
+
origin?: Record<string, any> | null;
|
|
5
|
+
/**
|
|
6
|
+
* Origin address
|
|
7
|
+
*/
|
|
8
|
+
originAddress?: Record<string, any> | null;
|
|
9
|
+
/**
|
|
10
|
+
* Origin name
|
|
11
|
+
*/
|
|
12
|
+
originName?: Record<string, any> | null;
|
|
13
|
+
/**
|
|
14
|
+
* Origin latitude
|
|
15
|
+
*/
|
|
16
|
+
originLatitude?: Record<string, any> | null;
|
|
17
|
+
/**
|
|
18
|
+
* Origin longitude
|
|
19
|
+
*/
|
|
20
|
+
originLongitude?: Record<string, any> | null;
|
|
21
|
+
destination?: Record<string, any> | null;
|
|
22
|
+
/**
|
|
23
|
+
* Destination address
|
|
24
|
+
*/
|
|
25
|
+
destinationAddress?: Record<string, any> | null;
|
|
26
|
+
/**
|
|
27
|
+
* Destination name
|
|
28
|
+
*/
|
|
29
|
+
destinationName?: Record<string, any> | null;
|
|
30
|
+
/**
|
|
31
|
+
* Destination latitude
|
|
32
|
+
*/
|
|
33
|
+
destinationLatitude?: Record<string, any> | null;
|
|
34
|
+
/**
|
|
35
|
+
* Destination longitude
|
|
36
|
+
*/
|
|
37
|
+
destinationLongitude?: Record<string, any> | null;
|
|
38
|
+
};
|