@dapex-tech/elite-online-services 0.0.8 → 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.
Files changed (97) hide show
  1. package/createClient.d.ts +19 -0
  2. package/createClient.js +1 -2
  3. package/models/AdminDto.d.ts +18 -6
  4. package/models/{LoginDto.d.ts → AdminLoginDto.d.ts} +1 -1
  5. package/models/AdminUpdateDto.d.ts +0 -4
  6. package/models/CustomerDto.d.ts +66 -0
  7. package/models/{CreateUserLocationDto.d.ts → CustomerLocationCreateDto.d.ts} +2 -2
  8. package/models/CustomerLocationDto.d.ts +34 -0
  9. package/models/{UpdateUserLocationDto.d.ts → CustomerLocationUpdateDto.d.ts} +2 -2
  10. package/models/CustomerLoginDto.d.ts +18 -0
  11. package/models/{UserDto.d.ts → CustomerUpdatedDto.d.ts} +5 -5
  12. package/models/{VerifyUserAccountDto.d.ts → CustomerVerifyAccountDto.d.ts} +5 -1
  13. package/models/DriverDto.d.ts +16 -4
  14. package/models/{EmailPhoneLoginDto.d.ts → DriverLoginDto.d.ts} +2 -6
  15. package/models/DriverTripActions.d.ts +10 -0
  16. package/models/DriverTripActions.js +18 -0
  17. package/models/DriverUpdateDto.d.ts +6 -6
  18. package/models/GenerateResetCodeDto.d.ts +6 -2
  19. package/models/GenerateVerificationCodeDto.d.ts +10 -0
  20. package/models/PaymentDto.d.ts +18 -0
  21. package/models/ResetPasswordDto.d.ts +14 -0
  22. package/models/TripAssignDriverDto.d.ts +6 -0
  23. package/models/TripDto.d.ts +108 -0
  24. package/models/TripLocationPointDto.d.ts +26 -0
  25. package/models/TripUpdateDriverAssignmentModeDto.d.ts +6 -0
  26. package/models/TripUpdateDto.d.ts +38 -0
  27. package/models/TripUpdateTripsStatusDto.d.ts +6 -0
  28. package/models/ValidateResetCodeDto.d.ts +14 -0
  29. package/models/ValidateResetCodeDto.js +2 -0
  30. package/models/index.d.ts +20 -18
  31. package/models/index.js +20 -18
  32. package/package.json +1 -1
  33. package/services/AdminAuthService.d.ts +28 -3
  34. package/services/AdminAuthService.js +57 -1
  35. package/services/AdminCustomerService.d.ts +50 -0
  36. package/services/AdminCustomerService.js +119 -0
  37. package/services/AdminDriversService.d.ts +51 -0
  38. package/services/AdminDriversService.js +122 -0
  39. package/services/AdminService.d.ts +0 -44
  40. package/services/AdminService.js +0 -100
  41. package/services/AdminTripsService.d.ts +59 -0
  42. package/services/AdminTripsService.js +150 -0
  43. package/services/CustomerLocationsService.d.ts +41 -0
  44. package/services/CustomerLocationsService.js +93 -0
  45. package/services/CustomerTripsService.d.ts +63 -0
  46. package/services/CustomerTripsService.js +162 -0
  47. package/services/CustomersAuthService.d.ts +88 -0
  48. package/services/{UserAuthService.js → CustomersAuthService.js} +24 -21
  49. package/services/CustomersService.d.ts +17 -0
  50. package/services/CustomersService.js +41 -0
  51. package/services/DriverAuthService.d.ts +6 -6
  52. package/services/DriverAuthService.js +1 -1
  53. package/services/DriverTripsService.d.ts +49 -0
  54. package/services/DriverTripsService.js +121 -0
  55. package/services/DriversService.d.ts +9 -53
  56. package/services/DriversService.js +14 -132
  57. package/services/MainService.d.ts +5 -0
  58. package/services/MainService.js +10 -0
  59. package/services/index.d.ts +8 -3
  60. package/services/index.js +8 -3
  61. package/socketService.d.ts +54 -0
  62. package/socketService.js +91 -96
  63. package/models/CreateServiceOrderDto.d.ts +0 -46
  64. package/models/CreateStreetPickupDto.d.ts +0 -10
  65. package/models/GenerateUserResetCodeDto.d.ts +0 -6
  66. package/models/GenerateUserVerificationCodeDto.d.ts +0 -6
  67. package/models/ResetDriverPasswordDto.d.ts +0 -10
  68. package/models/ResetUserPasswordDto.d.ts +0 -10
  69. package/models/UpdateDriverStatusDto.d.ts +0 -10
  70. package/models/UpdateDriverTripStatusDto.d.ts +0 -14
  71. package/models/UpdateTripStatusDto.d.ts +0 -10
  72. package/models/UserUpdatedDto.d.ts +0 -18
  73. package/models/ValidateDriverResetCodeDto.d.ts +0 -10
  74. package/models/ValidateUserResetCodeDto.d.ts +0 -10
  75. package/services/CatalogsService.d.ts +0 -67
  76. package/services/CatalogsService.js +0 -142
  77. package/services/UserAuthService.d.ts +0 -85
  78. package/services/UsersService.d.ts +0 -81
  79. package/services/UsersService.js +0 -198
  80. /package/models/{CreateServiceOrderDto.js → AdminLoginDto.js} +0 -0
  81. /package/models/{CreateStreetPickupDto.js → CustomerDto.js} +0 -0
  82. /package/models/{CreateUserLocationDto.js → CustomerLocationCreateDto.js} +0 -0
  83. /package/models/{EmailPhoneLoginDto.js → CustomerLocationDto.js} +0 -0
  84. /package/models/{GenerateUserResetCodeDto.js → CustomerLocationUpdateDto.js} +0 -0
  85. /package/models/{GenerateUserVerificationCodeDto.js → CustomerLoginDto.js} +0 -0
  86. /package/models/{LoginDto.js → CustomerUpdatedDto.js} +0 -0
  87. /package/models/{ResetDriverPasswordDto.js → CustomerVerifyAccountDto.js} +0 -0
  88. /package/models/{ResetUserPasswordDto.js → DriverLoginDto.js} +0 -0
  89. /package/models/{UpdateDriverStatusDto.js → GenerateVerificationCodeDto.js} +0 -0
  90. /package/models/{UpdateDriverTripStatusDto.js → PaymentDto.js} +0 -0
  91. /package/models/{UpdateTripStatusDto.js → ResetPasswordDto.js} +0 -0
  92. /package/models/{UpdateUserLocationDto.js → TripAssignDriverDto.js} +0 -0
  93. /package/models/{UserDto.js → TripDto.js} +0 -0
  94. /package/models/{UserUpdatedDto.js → TripLocationPointDto.js} +0 -0
  95. /package/models/{ValidateDriverResetCodeDto.js → TripUpdateDriverAssignmentModeDto.js} +0 -0
  96. /package/models/{ValidateUserResetCodeDto.js → TripUpdateDto.js} +0 -0
  97. /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, token) {
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
  };
@@ -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
- first_name: string;
9
+ firstName?: string;
6
10
  /**
7
11
  * Admin Last Name
8
12
  */
9
- last_name: string;
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: string;
25
+ email?: string;
18
26
  /**
19
27
  * Admin Password
20
28
  */
21
- password: string;
29
+ password?: string;
30
+ /**
31
+ * Admin Role
32
+ */
33
+ role?: Record<string, any>;
22
34
  /**
23
- * Admin Role ID
35
+ * Admin created at
24
36
  */
25
- role_id: number;
37
+ createdAt?: string;
26
38
  };
@@ -1,4 +1,4 @@
1
- export type LoginDto = {
1
+ export type AdminLoginDto = {
2
2
  /**
3
3
  * Email must be valid
4
4
  */
@@ -19,8 +19,4 @@ export type AdminUpdateDto = {
19
19
  * Admin Password
20
20
  */
21
21
  password?: string;
22
- /**
23
- * Admin Role ID
24
- */
25
- role_id?: number;
26
22
  };
@@ -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 CreateUserLocationDto = {
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
- place_id?: string;
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 UpdateUserLocationDto = {
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
- place_id?: string;
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 UserDto = {
1
+ export type CustomerUpdatedDto = {
2
2
  /**
3
3
  * User First Name
4
4
  */
5
- first_name: string;
5
+ firstName: string;
6
6
  /**
7
7
  * User Last Name
8
8
  */
9
- last_name: string;
9
+ lastName: string;
10
10
  /**
11
11
  * User Email
12
12
  */
13
13
  email: string;
14
14
  /**
15
- * User Password
15
+ * User Phone Country Code
16
16
  */
17
- password: string;
17
+ phoneCountryCode?: string;
18
18
  /**
19
19
  * User Phone Number
20
20
  */
@@ -1,4 +1,8 @@
1
- export type VerifyUserAccountDto = {
1
+ export type CustomerVerifyAccountDto = {
2
+ /**
3
+ * Phone Country Code
4
+ */
5
+ phoneCountryCode: string;
2
6
  /**
3
7
  * User Phone Number
4
8
  */
@@ -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
- first_name: string;
9
+ firstName: string;
6
10
  /**
7
11
  * Driver Last Name
8
12
  */
9
- last_name: string;
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
- last_location?: string;
45
+ lastLocation?: string;
38
46
  /**
39
47
  * Last Heartbeat
40
48
  */
41
- last_heartbeat?: string;
49
+ lastHeartbeat?: string;
50
+ /**
51
+ * Driver Role
52
+ */
53
+ role?: Record<string, any>;
42
54
  };
@@ -1,12 +1,8 @@
1
- export type EmailPhoneLoginDto = {
1
+ export type DriverLoginDto = {
2
2
  /**
3
3
  * Email must be valid
4
4
  */
5
- email?: string;
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,10 @@
1
+ export declare enum DriverTripActions {
2
+ ACCEPT = "accept",
3
+ REJECT = "reject",
4
+ DRIVER_AT_PICKUP = "driver-at-pickup",
5
+ START = "start",
6
+ PAUSE = "pause",
7
+ PAUSE_TRAFFIC = "pause-traffic",
8
+ RESUME = "resume",
9
+ CANCEL = "cancel"
10
+ }
@@ -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
- first_name?: string;
5
+ firstName?: string;
6
6
  /**
7
7
  * Driver Last Name
8
8
  */
9
- last_name?: string;
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
- last_location?: string;
37
+ lastLocation?: string;
38
38
  /**
39
39
  * Last Heartbeat
40
40
  */
41
- last_heartbeat?: string;
41
+ lastHeartbeat?: string;
42
42
  /**
43
43
  * Reset Code
44
44
  */
45
- reset_code?: Record<string, any> | null;
45
+ resetCode?: Record<string, any> | null;
46
46
  /**
47
47
  * Reset Expires At
48
48
  */
49
- reset_expires_at?: Record<string, any> | null;
49
+ resetExpiresAt?: Record<string, any> | null;
50
50
  };
@@ -1,6 +1,10 @@
1
1
  export type GenerateResetCodeDto = {
2
2
  /**
3
- * Driver Email
3
+ * Phone Country Code
4
4
  */
5
- email: string;
5
+ phoneCountryCode: string;
6
+ /**
7
+ * Phone Number
8
+ */
9
+ phone: string;
6
10
  };
@@ -0,0 +1,10 @@
1
+ export type GenerateVerificationCodeDto = {
2
+ /**
3
+ * Phone Country Code
4
+ */
5
+ phoneCountryCode: string;
6
+ /**
7
+ * User Phone Number
8
+ */
9
+ phone: string;
10
+ };
@@ -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,14 @@
1
+ export type ResetPasswordDto = {
2
+ /**
3
+ * Phone Country Code
4
+ */
5
+ phoneCountryCode: string;
6
+ /**
7
+ * Phone Number
8
+ */
9
+ phone: string;
10
+ /**
11
+ * New Password (minimum 6 characters)
12
+ */
13
+ newPassword: string;
14
+ };
@@ -0,0 +1,6 @@
1
+ export type TripAssignDriverDto = {
2
+ /**
3
+ * The ID of the driver to assign to the trip
4
+ */
5
+ driverId: number;
6
+ };
@@ -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,6 @@
1
+ export type TripUpdateDriverAssignmentModeDto = {
2
+ /**
3
+ * Driver assignment mode to update the trip to
4
+ */
5
+ driverAssignmentMode: Record<string, any>;
6
+ };
@@ -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
+ };
@@ -0,0 +1,6 @@
1
+ export type TripUpdateTripsStatusDto = {
2
+ /**
3
+ * Status to update the trip to
4
+ */
5
+ status: Record<string, any>;
6
+ };
@@ -0,0 +1,14 @@
1
+ export type ValidateResetCodeDto = {
2
+ /**
3
+ * Phone Country Code
4
+ */
5
+ phoneCountryCode: string;
6
+ /**
7
+ * Phone Number
8
+ */
9
+ phone: string;
10
+ /**
11
+ * Reset Code (4 digits)
12
+ */
13
+ resetCode: string;
14
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });