@dapex-tech/elite-online-services 0.0.22 → 0.0.24

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 (73) hide show
  1. package/createClient.d.ts +2 -0
  2. package/models/AdminRedisActiveTripResponseDto.d.ts +29 -0
  3. package/models/AdminRedisDeleteResponseDto.d.ts +3 -0
  4. package/models/AdminRedisDeleteResponseDto.js +2 -0
  5. package/models/AdminRedisRuntimeResetResponseDto.d.ts +8 -0
  6. package/models/AdminRedisRuntimeResetResponseDto.js +2 -0
  7. package/models/AdminSearchCustomersResponseDto.d.ts +6 -6
  8. package/models/AdminSearchManualCustomersBucketDto.d.ts +14 -0
  9. package/models/AdminSearchManualCustomersBucketDto.js +2 -0
  10. package/models/AdminSearchRegisteredCustomersBucketDto.d.ts +14 -0
  11. package/models/AdminSearchRegisteredCustomersBucketDto.js +2 -0
  12. package/models/AdminSearchVouchersBucketDto.d.ts +14 -0
  13. package/models/AdminSearchVouchersBucketDto.js +2 -0
  14. package/models/CustomerLoginDto.d.ts +1 -1
  15. package/models/DriverCreateDto.d.ts +4 -0
  16. package/models/DriverDto.d.ts +13 -0
  17. package/models/DriverLocationUpdateDto.d.ts +10 -0
  18. package/models/DriverLocationUpdateDto.js +2 -0
  19. package/models/DriverLoginDto.d.ts +9 -1
  20. package/models/DriverLoginResponseDto.d.ts +13 -0
  21. package/models/DriverStatusResponseDto.d.ts +10 -0
  22. package/models/DriverStatusResponseDto.js +2 -0
  23. package/models/DriverUpdateDto.d.ts +4 -0
  24. package/models/ManualCustomerCreateDto.d.ts +1 -1
  25. package/models/ManualCustomerDto.d.ts +1 -1
  26. package/models/ManualCustomerUpdateDto.d.ts +1 -1
  27. package/models/PaginatedTripsDto.d.ts +16 -0
  28. package/models/PaginatedTripsDto.js +2 -0
  29. package/models/PaymentDto.d.ts +32 -0
  30. package/models/QueueSummaryDto.d.ts +1 -1
  31. package/models/ResetPasswordDto.d.ts +4 -0
  32. package/models/SendDriverPushDto.d.ts +8 -0
  33. package/models/SendDriverPushDto.js +2 -0
  34. package/models/TripAssignDriverDto.d.ts +2 -2
  35. package/models/TripDto.d.ts +2 -4
  36. package/models/TripLanguages.d.ts +4 -0
  37. package/models/TripLanguages.js +12 -0
  38. package/models/TripUpdateDto.d.ts +63 -2
  39. package/models/index.d.ts +11 -1
  40. package/models/index.js +11 -1
  41. package/package.json +1 -1
  42. package/services/AdminAuthService.d.ts +1 -8
  43. package/services/AdminAuthService.js +1 -14
  44. package/services/AdminDispatchService.d.ts +27 -0
  45. package/services/AdminDispatchService.js +54 -0
  46. package/services/AdminDriversService.d.ts +18 -1
  47. package/services/AdminDriversService.js +35 -1
  48. package/services/AdminQueuesService.d.ts +2 -2
  49. package/services/AdminRedisService.d.ts +46 -0
  50. package/services/AdminRedisService.js +89 -0
  51. package/services/AdminService.d.ts +6 -4
  52. package/services/AdminService.js +8 -4
  53. package/services/AdminTripsService.d.ts +15 -3
  54. package/services/AdminTripsService.js +24 -3
  55. package/services/CustomerTripsService.d.ts +15 -3
  56. package/services/CustomerTripsService.js +24 -3
  57. package/services/CustomersAuthService.d.ts +1 -8
  58. package/services/CustomersAuthService.js +1 -14
  59. package/services/DriverAuthService.d.ts +1 -8
  60. package/services/DriverAuthService.js +1 -14
  61. package/services/DriverPaymentsService.js +1 -0
  62. package/services/DriverTripsService.d.ts +23 -3
  63. package/services/DriverTripsService.js +40 -3
  64. package/services/DriversService.d.ts +21 -0
  65. package/services/DriversService.js +35 -0
  66. package/services/MainService.d.ts +8 -0
  67. package/services/MainService.js +19 -0
  68. package/services/index.d.ts +2 -0
  69. package/services/index.js +2 -0
  70. package/socketService.js +17 -1
  71. package/types/realtime/active-trip.d.ts +3 -2
  72. package/models/ValidateResetCodeDto.d.ts +0 -14
  73. /package/models/{ValidateResetCodeDto.js → AdminRedisActiveTripResponseDto.js} +0 -0
package/models/index.js CHANGED
@@ -21,7 +21,13 @@ __exportStar(require("./AdminCreateDto"), exports);
21
21
  __exportStar(require("./AdminDto"), exports);
22
22
  __exportStar(require("./AdminLoginDto"), exports);
23
23
  __exportStar(require("./AdminLoginResponseDto"), exports);
24
+ __exportStar(require("./AdminRedisActiveTripResponseDto"), exports);
25
+ __exportStar(require("./AdminRedisDeleteResponseDto"), exports);
26
+ __exportStar(require("./AdminRedisRuntimeResetResponseDto"), exports);
24
27
  __exportStar(require("./AdminSearchCustomersResponseDto"), exports);
28
+ __exportStar(require("./AdminSearchManualCustomersBucketDto"), exports);
29
+ __exportStar(require("./AdminSearchRegisteredCustomersBucketDto"), exports);
30
+ __exportStar(require("./AdminSearchVouchersBucketDto"), exports);
25
31
  __exportStar(require("./AdminUpdateDto"), exports);
26
32
  __exportStar(require("./CardDataDto"), exports);
27
33
  __exportStar(require("./ChargeTripByCardDto"), exports);
@@ -44,9 +50,11 @@ __exportStar(require("./DriverAssignmentModes"), exports);
44
50
  __exportStar(require("./DriverCreateDto"), exports);
45
51
  __exportStar(require("./DriverCreditsResponseDto"), exports);
46
52
  __exportStar(require("./DriverDto"), exports);
53
+ __exportStar(require("./DriverLocationUpdateDto"), exports);
47
54
  __exportStar(require("./DriverLoginDto"), exports);
48
55
  __exportStar(require("./DriverLoginResponseDto"), exports);
49
56
  __exportStar(require("./DriverPaymentMethodResponseDto"), exports);
57
+ __exportStar(require("./DriverStatusResponseDto"), exports);
50
58
  __exportStar(require("./DriverTripActions"), exports);
51
59
  __exportStar(require("./DriverUpdateDto"), exports);
52
60
  __exportStar(require("./EstimateTripCostDto"), exports);
@@ -62,6 +70,7 @@ __exportStar(require("./ManualCustomerDto"), exports);
62
70
  __exportStar(require("./ManualCustomerUpdateDto"), exports);
63
71
  __exportStar(require("./MessageResponseDto"), exports);
64
72
  __exportStar(require("./OrderDto"), exports);
73
+ __exportStar(require("./PaginatedTripsDto"), exports);
65
74
  __exportStar(require("./PaymentDto"), exports);
66
75
  __exportStar(require("./PaymentMethodResponseDto"), exports);
67
76
  __exportStar(require("./PaymentTypes"), exports);
@@ -74,11 +83,13 @@ __exportStar(require("./SectionContentCreateDto"), exports);
74
83
  __exportStar(require("./SectionContentDto"), exports);
75
84
  __exportStar(require("./SectionContentUpdateDto"), exports);
76
85
  __exportStar(require("./SectionContentsTypes"), exports);
86
+ __exportStar(require("./SendDriverPushDto"), exports);
77
87
  __exportStar(require("./SeniorCenterDto"), exports);
78
88
  __exportStar(require("./SystemSettingResponseDto"), exports);
79
89
  __exportStar(require("./TokensDto"), exports);
80
90
  __exportStar(require("./TripAssignDriverDto"), exports);
81
91
  __exportStar(require("./TripDto"), exports);
92
+ __exportStar(require("./TripLanguages"), exports);
82
93
  __exportStar(require("./TripLocationPointDto"), exports);
83
94
  __exportStar(require("./TripSources"), exports);
84
95
  __exportStar(require("./TripStatuses"), exports);
@@ -88,7 +99,6 @@ __exportStar(require("./TripUpdateTripsStatusDto"), exports);
88
99
  __exportStar(require("./TwilioTokenResponse"), exports);
89
100
  __exportStar(require("./UpdateFcmTokenDto"), exports);
90
101
  __exportStar(require("./UpdateSystemSettingDto"), exports);
91
- __exportStar(require("./ValidateResetCodeDto"), exports);
92
102
  __exportStar(require("./VehicleCreateDto"), exports);
93
103
  __exportStar(require("./VehicleDto"), exports);
94
104
  __exportStar(require("./VehicleStatus"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dapex-tech/elite-online-services",
3
- "version": "0.0.22",
3
+ "version": "0.0.24",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "private": false,
@@ -5,7 +5,6 @@ import type { GenerateResetCodeDto } from '../models/GenerateResetCodeDto';
5
5
  import type { MessageResponseDto } from '../models/MessageResponseDto';
6
6
  import type { ResetPasswordDto } from '../models/ResetPasswordDto';
7
7
  import type { TokensDto } from '../models/TokensDto';
8
- import type { ValidateResetCodeDto } from '../models/ValidateResetCodeDto';
9
8
  import type { CancelablePromise } from '../core/CancelablePromise';
10
9
  export declare class AdminAuthService {
11
10
  /**
@@ -40,15 +39,9 @@ export declare class AdminAuthService {
40
39
  * @throws ApiError
41
40
  */
42
41
  static generateResetCode(requestBody: GenerateResetCodeDto): CancelablePromise<MessageResponseDto>;
43
- /**
44
- * Validate Password Reset Code
45
- * @param requestBody
46
- * @returns MessageResponseDto Reset code is valid
47
- * @throws ApiError
48
- */
49
- static validateResetCode(requestBody: ValidateResetCodeDto): CancelablePromise<MessageResponseDto>;
50
42
  /**
51
43
  * Reset Admin Password
44
+ * Requires the SMS reset code from forgot-password together with the new password.
52
45
  * @param requestBody
53
46
  * @returns MessageResponseDto Password reset successfully
54
47
  * @throws ApiError
@@ -65,22 +65,9 @@ class AdminAuthService {
65
65
  mediaType: 'application/json',
66
66
  });
67
67
  }
68
- /**
69
- * Validate Password Reset Code
70
- * @param requestBody
71
- * @returns MessageResponseDto Reset code is valid
72
- * @throws ApiError
73
- */
74
- static validateResetCode(requestBody) {
75
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
76
- method: 'POST',
77
- url: '/auth/admins/validate-reset-code',
78
- body: requestBody,
79
- mediaType: 'application/json',
80
- });
81
- }
82
68
  /**
83
69
  * Reset Admin Password
70
+ * Requires the SMS reset code from forgot-password together with the new password.
84
71
  * @param requestBody
85
72
  * @returns MessageResponseDto Password reset successfully
86
73
  * @throws ApiError
@@ -0,0 +1,27 @@
1
+ import type { CancelablePromise } from '../core/CancelablePromise';
2
+ export declare class AdminDispatchService {
3
+ /**
4
+ * List auto-dispatch log files across all trips
5
+ * Returns every auto-dispatch log file found under LOGS_DIR/auto-dispatch/{tripId}/ folders.
6
+ * @returns any All auto-dispatch log files with their trip ids
7
+ * @throws ApiError
8
+ */
9
+ static listAllAutoDispatchLogFiles(): CancelablePromise<any>;
10
+ /**
11
+ * List auto-dispatch log file names for a trip (newest day first)
12
+ * Files live under LOGS_DIR/auto-dispatch/{tripId}/ as trip{tripId}-YYYY-MM-DD.jsonl (e.g. trip99-2026-03-22.jsonl).
13
+ * @param tripId
14
+ * @returns any File names for that trip
15
+ * @throws ApiError
16
+ */
17
+ static listAutoDispatchLogFiles(tripId: number): CancelablePromise<any>;
18
+ /**
19
+ * Get parsed auto-dispatch log rows for a file
20
+ * fileName must match trip{tripId}-YYYY-MM-DD.jsonl for this trip (e.g. trip99-2026-03-22.jsonl).
21
+ * @param tripId
22
+ * @param fileName
23
+ * @returns any JSON array of log row objects
24
+ * @throws ApiError
25
+ */
26
+ static getAutoDispatchLogFile(tripId: number, fileName: string): CancelablePromise<any>;
27
+ }
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AdminDispatchService = void 0;
4
+ const OpenAPI_1 = require("../core/OpenAPI");
5
+ const request_1 = require("../core/request");
6
+ class AdminDispatchService {
7
+ /**
8
+ * List auto-dispatch log files across all trips
9
+ * Returns every auto-dispatch log file found under LOGS_DIR/auto-dispatch/{tripId}/ folders.
10
+ * @returns any All auto-dispatch log files with their trip ids
11
+ * @throws ApiError
12
+ */
13
+ static listAllAutoDispatchLogFiles() {
14
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
15
+ method: 'GET',
16
+ url: '/admins/dispatch/trips/log-files',
17
+ });
18
+ }
19
+ /**
20
+ * List auto-dispatch log file names for a trip (newest day first)
21
+ * Files live under LOGS_DIR/auto-dispatch/{tripId}/ as trip{tripId}-YYYY-MM-DD.jsonl (e.g. trip99-2026-03-22.jsonl).
22
+ * @param tripId
23
+ * @returns any File names for that trip
24
+ * @throws ApiError
25
+ */
26
+ static listAutoDispatchLogFiles(tripId) {
27
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
28
+ method: 'GET',
29
+ url: '/admins/dispatch/trips/{tripId}/log-files',
30
+ path: {
31
+ 'tripId': tripId,
32
+ },
33
+ });
34
+ }
35
+ /**
36
+ * Get parsed auto-dispatch log rows for a file
37
+ * fileName must match trip{tripId}-YYYY-MM-DD.jsonl for this trip (e.g. trip99-2026-03-22.jsonl).
38
+ * @param tripId
39
+ * @param fileName
40
+ * @returns any JSON array of log row objects
41
+ * @throws ApiError
42
+ */
43
+ static getAutoDispatchLogFile(tripId, fileName) {
44
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
45
+ method: 'GET',
46
+ url: '/admins/dispatch/trips/{tripId}/log-files/{fileName}',
47
+ path: {
48
+ 'tripId': tripId,
49
+ 'fileName': fileName,
50
+ },
51
+ });
52
+ }
53
+ }
54
+ exports.AdminDispatchService = AdminDispatchService;
@@ -5,7 +5,7 @@ import type { CancelablePromise } from '../core/CancelablePromise';
5
5
  export declare class AdminDriversService {
6
6
  /**
7
7
  * Sync all drivers with location to Redis GEO index
8
- * Reads driver statuses from Redis (driversStatus hash), and adds every driver that has latitude/longitude to the drivers:geo sorted set for dispatch radius queries.
8
+ * Reads driver statuses from Redis (EOS:DriversStatus hash), and adds every driver that has latitude/longitude to the EOS:DriversGeo sorted set for dispatch radius queries.
9
9
  * @returns any Number of drivers added to Redis GEO index.
10
10
  * @throws ApiError
11
11
  */
@@ -35,6 +35,23 @@ export declare class AdminDriversService {
35
35
  * @throws ApiError
36
36
  */
37
37
  static findAll(q?: string, order?: OrderDto, id?: number, firstName?: string, lastName?: string, email?: string, phone?: string, status?: boolean, isOnline?: boolean, isActive?: boolean, license?: string, type?: string): CancelablePromise<any>;
38
+ /**
39
+ * List driver location log file names for a driver (newest day first)
40
+ * Files live under LOGS_DIR/driver-location/{driverId}/ as driver{driverId}-YYYY-MM-DD.jsonl (e.g. driver42-2026-03-22.jsonl).
41
+ * @param driverId
42
+ * @returns any File names for that driver
43
+ * @throws ApiError
44
+ */
45
+ static listDriverLocationLogFiles(driverId: number): CancelablePromise<any>;
46
+ /**
47
+ * Get parsed driver location log rows for a file
48
+ * fileName must match driver{driverId}-YYYY-MM-DD.jsonl for this driver (e.g. driver42-2026-03-22.jsonl).
49
+ * @param driverId
50
+ * @param fileName
51
+ * @returns any JSON array of log row objects
52
+ * @throws ApiError
53
+ */
54
+ static getDriverLocationLogFile(driverId: number, fileName: string): CancelablePromise<any>;
38
55
  /**
39
56
  * Get a single driver by ID
40
57
  * @param id
@@ -6,7 +6,7 @@ const request_1 = require("../core/request");
6
6
  class AdminDriversService {
7
7
  /**
8
8
  * Sync all drivers with location to Redis GEO index
9
- * Reads driver statuses from Redis (driversStatus hash), and adds every driver that has latitude/longitude to the drivers:geo sorted set for dispatch radius queries.
9
+ * Reads driver statuses from Redis (EOS:DriversStatus hash), and adds every driver that has latitude/longitude to the EOS:DriversGeo sorted set for dispatch radius queries.
10
10
  * @returns any Number of drivers added to Redis GEO index.
11
11
  * @throws ApiError
12
12
  */
@@ -67,6 +67,40 @@ class AdminDriversService {
67
67
  },
68
68
  });
69
69
  }
70
+ /**
71
+ * List driver location log file names for a driver (newest day first)
72
+ * Files live under LOGS_DIR/driver-location/{driverId}/ as driver{driverId}-YYYY-MM-DD.jsonl (e.g. driver42-2026-03-22.jsonl).
73
+ * @param driverId
74
+ * @returns any File names for that driver
75
+ * @throws ApiError
76
+ */
77
+ static listDriverLocationLogFiles(driverId) {
78
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
79
+ method: 'GET',
80
+ url: '/admins/drivers/{driverId}/location-log-files',
81
+ path: {
82
+ 'driverId': driverId,
83
+ },
84
+ });
85
+ }
86
+ /**
87
+ * Get parsed driver location log rows for a file
88
+ * fileName must match driver{driverId}-YYYY-MM-DD.jsonl for this driver (e.g. driver42-2026-03-22.jsonl).
89
+ * @param driverId
90
+ * @param fileName
91
+ * @returns any JSON array of log row objects
92
+ * @throws ApiError
93
+ */
94
+ static getDriverLocationLogFile(driverId, fileName) {
95
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
96
+ method: 'GET',
97
+ url: '/admins/drivers/{driverId}/location-log-files/{fileName}',
98
+ path: {
99
+ 'driverId': driverId,
100
+ 'fileName': fileName,
101
+ },
102
+ });
103
+ }
70
104
  /**
71
105
  * Get a single driver by ID
72
106
  * @param id
@@ -18,7 +18,7 @@ export declare class AdminQueuesService {
18
18
  * @returns JobsListResponseDto List of jobs in the queue
19
19
  * @throws ApiError
20
20
  */
21
- static getJobs(queueName: 'dispatch-queue' | 'trip-queue', start?: number, end?: number, state?: Array<'waiting' | 'active' | 'completed' | 'failed' | 'delayed' | 'paused'>): CancelablePromise<JobsListResponseDto>;
21
+ static getJobs(queueName: 'EOS-dispatch-queue' | 'EOS-trip-queue', start?: number, end?: number, state?: Array<'waiting' | 'active' | 'completed' | 'failed' | 'delayed' | 'paused'>): CancelablePromise<JobsListResponseDto>;
22
22
  /**
23
23
  * Get a single BullMQ job by ID
24
24
  * @param queueName Queue name
@@ -26,5 +26,5 @@ export declare class AdminQueuesService {
26
26
  * @returns JobSummaryDto Job details
27
27
  * @throws ApiError
28
28
  */
29
- static getJob(queueName: 'dispatch-queue' | 'trip-queue', jobId: string): CancelablePromise<JobSummaryDto>;
29
+ static getJob(queueName: 'EOS-dispatch-queue' | 'EOS-trip-queue', jobId: string): CancelablePromise<JobSummaryDto>;
30
30
  }
@@ -0,0 +1,46 @@
1
+ import type { AdminRedisActiveTripResponseDto } from '../models/AdminRedisActiveTripResponseDto';
2
+ import type { AdminRedisDeleteResponseDto } from '../models/AdminRedisDeleteResponseDto';
3
+ import type { AdminRedisRuntimeResetResponseDto } from '../models/AdminRedisRuntimeResetResponseDto';
4
+ import type { DriverStatusResponseDto } from '../models/DriverStatusResponseDto';
5
+ import type { CancelablePromise } from '../core/CancelablePromise';
6
+ export declare class AdminRedisService {
7
+ /**
8
+ * Get active drivers from Redis state
9
+ * @returns DriverStatusResponseDto List of active drivers in Redis
10
+ * @throws ApiError
11
+ */
12
+ static getActiveDrivers(): CancelablePromise<Array<DriverStatusResponseDto>>;
13
+ /**
14
+ * Get active trips from Redis state
15
+ * @returns AdminRedisActiveTripResponseDto List of active trips in Redis
16
+ * @throws ApiError
17
+ */
18
+ static getActiveTrips(): CancelablePromise<Array<AdminRedisActiveTripResponseDto>>;
19
+ /**
20
+ * Get active trip for a driver from Redis state
21
+ * @param driverId
22
+ * @returns AdminRedisActiveTripResponseDto Active trip found in Redis
23
+ * @throws ApiError
24
+ */
25
+ static getActiveTripByDriverId(driverId: number): CancelablePromise<AdminRedisActiveTripResponseDto>;
26
+ /**
27
+ * Clear runtime Redis state for restart
28
+ * @returns AdminRedisRuntimeResetResponseDto Counts of deleted runtime Redis keys and collections
29
+ * @throws ApiError
30
+ */
31
+ static clearRuntimeState(): CancelablePromise<AdminRedisRuntimeResetResponseDto>;
32
+ /**
33
+ * Delete active driver from Redis state
34
+ * @param driverId
35
+ * @returns AdminRedisDeleteResponseDto Driver Redis state deleted
36
+ * @throws ApiError
37
+ */
38
+ static deleteActiveDriver(driverId: number): CancelablePromise<AdminRedisDeleteResponseDto>;
39
+ /**
40
+ * Delete active trip from Redis state
41
+ * @param tripId
42
+ * @returns AdminRedisDeleteResponseDto Trip Redis state deleted
43
+ * @throws ApiError
44
+ */
45
+ static deleteActiveTrip(tripId: number): CancelablePromise<AdminRedisDeleteResponseDto>;
46
+ }
@@ -0,0 +1,89 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AdminRedisService = void 0;
4
+ const OpenAPI_1 = require("../core/OpenAPI");
5
+ const request_1 = require("../core/request");
6
+ class AdminRedisService {
7
+ /**
8
+ * Get active drivers from Redis state
9
+ * @returns DriverStatusResponseDto List of active drivers in Redis
10
+ * @throws ApiError
11
+ */
12
+ static getActiveDrivers() {
13
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
14
+ method: 'GET',
15
+ url: '/admins/redis/active-drivers',
16
+ });
17
+ }
18
+ /**
19
+ * Get active trips from Redis state
20
+ * @returns AdminRedisActiveTripResponseDto List of active trips in Redis
21
+ * @throws ApiError
22
+ */
23
+ static getActiveTrips() {
24
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
25
+ method: 'GET',
26
+ url: '/admins/redis/active-trips',
27
+ });
28
+ }
29
+ /**
30
+ * Get active trip for a driver from Redis state
31
+ * @param driverId
32
+ * @returns AdminRedisActiveTripResponseDto Active trip found in Redis
33
+ * @throws ApiError
34
+ */
35
+ static getActiveTripByDriverId(driverId) {
36
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
37
+ method: 'GET',
38
+ url: '/admins/redis/active-trips/driver/{driverId}',
39
+ path: {
40
+ 'driverId': driverId,
41
+ },
42
+ errors: {
43
+ 404: `No active trip found for driver in Redis`,
44
+ },
45
+ });
46
+ }
47
+ /**
48
+ * Clear runtime Redis state for restart
49
+ * @returns AdminRedisRuntimeResetResponseDto Counts of deleted runtime Redis keys and collections
50
+ * @throws ApiError
51
+ */
52
+ static clearRuntimeState() {
53
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
54
+ method: 'DELETE',
55
+ url: '/admins/redis/reset',
56
+ });
57
+ }
58
+ /**
59
+ * Delete active driver from Redis state
60
+ * @param driverId
61
+ * @returns AdminRedisDeleteResponseDto Driver Redis state deleted
62
+ * @throws ApiError
63
+ */
64
+ static deleteActiveDriver(driverId) {
65
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
66
+ method: 'DELETE',
67
+ url: '/admins/redis/active-drivers/{driverId}',
68
+ path: {
69
+ 'driverId': driverId,
70
+ },
71
+ });
72
+ }
73
+ /**
74
+ * Delete active trip from Redis state
75
+ * @param tripId
76
+ * @returns AdminRedisDeleteResponseDto Trip Redis state deleted
77
+ * @throws ApiError
78
+ */
79
+ static deleteActiveTrip(tripId) {
80
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
81
+ method: 'DELETE',
82
+ url: '/admins/redis/active-trips/{tripId}',
83
+ path: {
84
+ 'tripId': tripId,
85
+ },
86
+ });
87
+ }
88
+ }
89
+ exports.AdminRedisService = AdminRedisService;
@@ -36,13 +36,15 @@ export declare class AdminService {
36
36
  */
37
37
  static findAll(q?: string, order?: OrderDto): CancelablePromise<Array<AdminDto>>;
38
38
  /**
39
- * Search customers (registered customers + manual customers + senior vouchers)
39
+ * Search customers (registered + manual + vouchers), paginated per bucket
40
+ * @param page Page number
41
+ * @param pageSize Items per page
40
42
  * @param q Text to search for in customers (registered customers + manual customers + vouchers)
41
- * @param order Sorting options (combined results are ultimately sorted by createdAt)
42
- * @returns AdminSearchCustomersResponseDto Customers grouped by type: registered customers, manual customers, and senior vouchers
43
+ * @param order Sorting options (each bucket uses its own table default when omitted)
44
+ * @returns AdminSearchCustomersResponseDto Each of registeredCustomers, vouchers, and manualCustomers includes page, pageSize, total, and items
43
45
  * @throws ApiError
44
46
  */
45
- static searchCustomers(q?: string, order?: OrderDto): CancelablePromise<AdminSearchCustomersResponseDto>;
47
+ static searchCustomers(page?: number, pageSize?: number, q?: string, order?: OrderDto): CancelablePromise<AdminSearchCustomersResponseDto>;
46
48
  /**
47
49
  * Get a single admin by ID
48
50
  * @param id
@@ -58,17 +58,21 @@ class AdminService {
58
58
  });
59
59
  }
60
60
  /**
61
- * Search customers (registered customers + manual customers + senior vouchers)
61
+ * Search customers (registered + manual + vouchers), paginated per bucket
62
+ * @param page Page number
63
+ * @param pageSize Items per page
62
64
  * @param q Text to search for in customers (registered customers + manual customers + vouchers)
63
- * @param order Sorting options (combined results are ultimately sorted by createdAt)
64
- * @returns AdminSearchCustomersResponseDto Customers grouped by type: registered customers, manual customers, and senior vouchers
65
+ * @param order Sorting options (each bucket uses its own table default when omitted)
66
+ * @returns AdminSearchCustomersResponseDto Each of registeredCustomers, vouchers, and manualCustomers includes page, pageSize, total, and items
65
67
  * @throws ApiError
66
68
  */
67
- static searchCustomers(q, order) {
69
+ static searchCustomers(page = 1, pageSize = 12, q, order) {
68
70
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
69
71
  method: 'GET',
70
72
  url: '/admins/search-customers',
71
73
  query: {
74
+ 'page': page,
75
+ 'pageSize': pageSize,
72
76
  'q': q,
73
77
  'order': order,
74
78
  },
@@ -1,22 +1,27 @@
1
1
  import type { EstimateTripCostDto } from '../models/EstimateTripCostDto';
2
2
  import type { OrderDto } from '../models/OrderDto';
3
+ import type { PaginatedTripsDto } from '../models/PaginatedTripsDto';
3
4
  import type { TripAssignDriverDto } from '../models/TripAssignDriverDto';
4
5
  import type { TripDto } from '../models/TripDto';
6
+ import type { TripLocationPointDto } from '../models/TripLocationPointDto';
5
7
  import type { TripStatuses } from '../models/TripStatuses';
6
8
  import type { TripUpdateDriverAssignmentModeDto } from '../models/TripUpdateDriverAssignmentModeDto';
7
9
  import type { TripUpdateDto } from '../models/TripUpdateDto';
8
10
  import type { CancelablePromise } from '../core/CancelablePromise';
9
11
  export declare class AdminTripsService {
10
12
  /**
11
- * Get all trips
13
+ * Get trips (paginated)
14
+ * @param page Page number
15
+ * @param pageSize Items per page
12
16
  * @param q Text to search for in trip fields
17
+ * @param status Comma-separated trip status values. Valid values: SCHEDULED, REQUESTED, DRIVER_SEARCHING, DRIVER_ASSIGNED, DRIVER_ASSIGNED_PENDING, DRIVER_ONWAY, DRIVER_AT_PICKUP, IN_PROGRESS, PAUSED, PAUSED_TRAFFIC, COMPLETED, CANCELED_PASSENGER, CANCELED_DRIVER, CANCELED_ADMIN.
13
18
  * @param order Sorting options
14
19
  * @param customerId Filter by customer ID (scope to customer)
15
20
  * @param driverId Filter by driver ID (scope to driver)
16
- * @returns TripDto List of trips
21
+ * @returns PaginatedTripsDto Paginated list of trips
17
22
  * @throws ApiError
18
23
  */
19
- static findAll(q?: string, order?: OrderDto, customerId?: number, driverId?: number): CancelablePromise<Array<TripDto>>;
24
+ static findAll(page?: number, pageSize?: number, q?: string, status?: string, order?: OrderDto, customerId?: number, driverId?: number): CancelablePromise<PaginatedTripsDto>;
20
25
  /**
21
26
  * Create a new trip/service order
22
27
  * @param requestBody
@@ -24,6 +29,13 @@ export declare class AdminTripsService {
24
29
  * @throws ApiError
25
30
  */
26
31
  static create(requestBody: TripDto): CancelablePromise<TripDto>;
32
+ /**
33
+ * Get trip location points
34
+ * @param id
35
+ * @returns TripLocationPointDto List of trip location points
36
+ * @throws ApiError
37
+ */
38
+ static getTripLocationPoints(id: number): CancelablePromise<Array<TripLocationPointDto>>;
27
39
  /**
28
40
  * Estimate trip cost by origin and destination
29
41
  * @param requestBody
@@ -5,20 +5,26 @@ const OpenAPI_1 = require("../core/OpenAPI");
5
5
  const request_1 = require("../core/request");
6
6
  class AdminTripsService {
7
7
  /**
8
- * Get all trips
8
+ * Get trips (paginated)
9
+ * @param page Page number
10
+ * @param pageSize Items per page
9
11
  * @param q Text to search for in trip fields
12
+ * @param status Comma-separated trip status values. Valid values: SCHEDULED, REQUESTED, DRIVER_SEARCHING, DRIVER_ASSIGNED, DRIVER_ASSIGNED_PENDING, DRIVER_ONWAY, DRIVER_AT_PICKUP, IN_PROGRESS, PAUSED, PAUSED_TRAFFIC, COMPLETED, CANCELED_PASSENGER, CANCELED_DRIVER, CANCELED_ADMIN.
10
13
  * @param order Sorting options
11
14
  * @param customerId Filter by customer ID (scope to customer)
12
15
  * @param driverId Filter by driver ID (scope to driver)
13
- * @returns TripDto List of trips
16
+ * @returns PaginatedTripsDto Paginated list of trips
14
17
  * @throws ApiError
15
18
  */
16
- static findAll(q, order, customerId, driverId) {
19
+ static findAll(page = 1, pageSize = 12, q, status, order, customerId, driverId) {
17
20
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
18
21
  method: 'GET',
19
22
  url: '/admins/trips',
20
23
  query: {
24
+ 'page': page,
25
+ 'pageSize': pageSize,
21
26
  'q': q,
27
+ 'status': status,
22
28
  'order': order,
23
29
  'customerId': customerId,
24
30
  'driverId': driverId,
@@ -39,6 +45,21 @@ class AdminTripsService {
39
45
  mediaType: 'application/json',
40
46
  });
41
47
  }
48
+ /**
49
+ * Get trip location points
50
+ * @param id
51
+ * @returns TripLocationPointDto List of trip location points
52
+ * @throws ApiError
53
+ */
54
+ static getTripLocationPoints(id) {
55
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
56
+ method: 'GET',
57
+ url: '/admins/trips/{id}/location-points',
58
+ path: {
59
+ 'id': id,
60
+ },
61
+ });
62
+ }
42
63
  /**
43
64
  * Estimate trip cost by origin and destination
44
65
  * @param requestBody
@@ -1,7 +1,9 @@
1
1
  import type { CustomerTripActions } from '../models/CustomerTripActions';
2
2
  import type { EstimateTripCostDto } from '../models/EstimateTripCostDto';
3
3
  import type { OrderDto } from '../models/OrderDto';
4
+ import type { PaginatedTripsDto } from '../models/PaginatedTripsDto';
4
5
  import type { TripDto } from '../models/TripDto';
6
+ import type { TripLocationPointDto } from '../models/TripLocationPointDto';
5
7
  import type { TripUpdateDto } from '../models/TripUpdateDto';
6
8
  import type { TripUpdateTripsStatusDto } from '../models/TripUpdateTripsStatusDto';
7
9
  import type { CancelablePromise } from '../core/CancelablePromise';
@@ -14,15 +16,18 @@ export declare class CustomerTripsService {
14
16
  */
15
17
  static create(requestBody: TripDto): CancelablePromise<TripDto>;
16
18
  /**
17
- * Get all trips for a customer
19
+ * Get trips for a customer (paginated)
20
+ * @param page Page number
21
+ * @param pageSize Items per page
18
22
  * @param q Text to search for in trip fields
23
+ * @param status Comma-separated trip status values. Valid values: SCHEDULED, REQUESTED, DRIVER_SEARCHING, DRIVER_ASSIGNED, DRIVER_ASSIGNED_PENDING, DRIVER_ONWAY, DRIVER_AT_PICKUP, IN_PROGRESS, PAUSED, PAUSED_TRAFFIC, COMPLETED, CANCELED_PASSENGER, CANCELED_DRIVER, CANCELED_ADMIN.
19
24
  * @param order Sorting options
20
25
  * @param customerId Filter by customer ID (scope to customer)
21
26
  * @param driverId Filter by driver ID (scope to driver)
22
- * @returns TripDto List of trips
27
+ * @returns PaginatedTripsDto Paginated list of trips
23
28
  * @throws ApiError
24
29
  */
25
- static findAll(q?: string, order?: OrderDto, customerId?: number, driverId?: number): CancelablePromise<Array<TripDto>>;
30
+ static findAll(page?: number, pageSize?: number, q?: string, status?: string, order?: OrderDto, customerId?: number, driverId?: number): CancelablePromise<PaginatedTripsDto>;
26
31
  /**
27
32
  * Estimate trip cost by origin and destination
28
33
  * @param requestBody
@@ -36,6 +41,13 @@ export declare class CustomerTripsService {
36
41
  * @throws ApiError
37
42
  */
38
43
  static getActiveTrip(): CancelablePromise<TripDto>;
44
+ /**
45
+ * Get trip location points
46
+ * @param id
47
+ * @returns TripLocationPointDto List of trip location points
48
+ * @throws ApiError
49
+ */
50
+ static getTripLocationPoints(id: number): CancelablePromise<Array<TripLocationPointDto>>;
39
51
  /**
40
52
  * Get a single trip by ID
41
53
  * @param id