@dapex-tech/elite-online-services 0.0.20 → 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 +1 -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/DriverDto.d.ts +2 -1
- package/models/DriverLoginResponseDto.d.ts +2 -1
- 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 +14 -57
- 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 +2 -11
- 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 +2 -1
- package/models/VehicleDto.d.ts +4 -2
- 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 +2 -1
- package/models/index.d.ts +16 -0
- package/models/index.js +16 -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/CustomerSectionContentsService.d.ts +13 -0
- package/services/CustomerSectionContentsService.js +26 -0
- 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 +1 -0
- package/services/index.js +1 -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
|
@@ -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
|
/**
|
|
@@ -23,13 +28,13 @@ export type TripDto = {
|
|
|
23
28
|
* Paired round-trip ID (if this trip is part of a round trip)
|
|
24
29
|
*/
|
|
25
30
|
roundTripId?: Record<string, any> | null;
|
|
26
|
-
status?:
|
|
27
|
-
tripSource?:
|
|
28
|
-
driverAssignmentMode?:
|
|
31
|
+
status?: TripStatuses;
|
|
32
|
+
tripSource?: TripSources;
|
|
33
|
+
driverAssignmentMode?: DriverAssignmentModes;
|
|
29
34
|
/**
|
|
30
35
|
* Payment type (CASH or DEBIT_CREDIT_CARD)
|
|
31
36
|
*/
|
|
32
|
-
paymentType?:
|
|
37
|
+
paymentType?: PaymentTypes;
|
|
33
38
|
/**
|
|
34
39
|
* Customer payment method ID for card payments
|
|
35
40
|
*/
|
|
@@ -37,7 +42,7 @@ export type TripDto = {
|
|
|
37
42
|
/**
|
|
38
43
|
* Origin location type
|
|
39
44
|
*/
|
|
40
|
-
originLocationType?:
|
|
45
|
+
originLocationType?: LocationTypes | null;
|
|
41
46
|
/**
|
|
42
47
|
* Origin latitude
|
|
43
48
|
*/
|
|
@@ -69,7 +74,7 @@ export type TripDto = {
|
|
|
69
74
|
/**
|
|
70
75
|
* Destination location type
|
|
71
76
|
*/
|
|
72
|
-
destinationLocationType?:
|
|
77
|
+
destinationLocationType?: LocationTypes | null;
|
|
73
78
|
/**
|
|
74
79
|
* Destination latitude
|
|
75
80
|
*/
|
|
@@ -205,56 +210,8 @@ export type TripDto = {
|
|
|
205
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.
|
|
206
211
|
*/
|
|
207
212
|
roundTrip?: TripDto | null;
|
|
208
|
-
};
|
|
209
|
-
export declare namespace TripDto {
|
|
210
|
-
enum status {
|
|
211
|
-
SCHEDULED = "SCHEDULED",
|
|
212
|
-
REQUESTED = "REQUESTED",
|
|
213
|
-
DRIVER_SEARCHING = "DRIVER_SEARCHING",
|
|
214
|
-
DRIVER_ASSIGNED = "DRIVER_ASSIGNED",
|
|
215
|
-
DRIVER_ASSIGNED_PENDING = "DRIVER_ASSIGNED_PENDING",
|
|
216
|
-
DRIVER_ONWAY = "DRIVER_ONWAY",
|
|
217
|
-
DRIVER_AT_PICKUP = "DRIVER_AT_PICKUP",
|
|
218
|
-
IN_PROGRESS = "IN_PROGRESS",
|
|
219
|
-
PAUSED = "PAUSED",
|
|
220
|
-
PAUSED_TRAFFIC = "PAUSED_TRAFFIC",
|
|
221
|
-
COMPLETED = "COMPLETED",
|
|
222
|
-
CANCELED_PASSENGER = "CANCELED_PASSENGER",
|
|
223
|
-
CANCELED_DRIVER = "CANCELED_DRIVER",
|
|
224
|
-
CANCELED_ADMIN = "CANCELED_ADMIN"
|
|
225
|
-
}
|
|
226
213
|
/**
|
|
227
|
-
*
|
|
228
|
-
*/
|
|
229
|
-
enum paymentType {
|
|
230
|
-
CASH = "CASH",
|
|
231
|
-
DEBIT_CREDIT_CARD = "DEBIT_CREDIT_CARD",
|
|
232
|
-
VOUCHER = "VOUCHER"
|
|
233
|
-
}
|
|
234
|
-
/**
|
|
235
|
-
* Origin location type
|
|
214
|
+
* Created at
|
|
236
215
|
*/
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
APARTMENT = "APARTMENT",
|
|
240
|
-
OFFICE = "OFFICE",
|
|
241
|
-
HOSPITAL = "HOSPITAL",
|
|
242
|
-
MALL = "MALL",
|
|
243
|
-
HOTEL = "HOTEL",
|
|
244
|
-
BUSINESS = "BUSINESS",
|
|
245
|
-
OTHER = "OTHER"
|
|
246
|
-
}
|
|
247
|
-
/**
|
|
248
|
-
* Destination location type
|
|
249
|
-
*/
|
|
250
|
-
enum destinationLocationType {
|
|
251
|
-
HOME = "HOME",
|
|
252
|
-
APARTMENT = "APARTMENT",
|
|
253
|
-
OFFICE = "OFFICE",
|
|
254
|
-
HOSPITAL = "HOSPITAL",
|
|
255
|
-
MALL = "MALL",
|
|
256
|
-
HOTEL = "HOTEL",
|
|
257
|
-
BUSINESS = "BUSINESS",
|
|
258
|
-
OTHER = "OTHER"
|
|
259
|
-
}
|
|
260
|
-
}
|
|
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
|
*/
|
|
@@ -54,13 +55,3 @@ export type TripUpdateDto = {
|
|
|
54
55
|
*/
|
|
55
56
|
vehicleId?: Record<string, any> | null;
|
|
56
57
|
};
|
|
57
|
-
export declare namespace TripUpdateDto {
|
|
58
|
-
/**
|
|
59
|
-
* Payment type (CASH or DEBIT_CREDIT_CARD)
|
|
60
|
-
*/
|
|
61
|
-
enum paymentType {
|
|
62
|
-
CASH = "CASH",
|
|
63
|
-
DEBIT_CREDIT_CARD = "DEBIT_CREDIT_CARD",
|
|
64
|
-
VOUCHER = "VOUCHER"
|
|
65
|
-
}
|
|
66
|
-
}
|
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 = {}));
|
package/models/VehicleDto.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import type { VehicleStatus } from './VehicleStatus';
|
|
2
|
+
import type { VehicleTypes } from './VehicleTypes';
|
|
1
3
|
export type VehicleDto = {
|
|
2
4
|
/**
|
|
3
5
|
* Vehicle ID
|
|
@@ -42,7 +44,7 @@ export type VehicleDto = {
|
|
|
42
44
|
/**
|
|
43
45
|
* Vehicle type
|
|
44
46
|
*/
|
|
45
|
-
type?:
|
|
47
|
+
type?: VehicleTypes;
|
|
46
48
|
/**
|
|
47
49
|
* Vehicle color
|
|
48
50
|
*/
|
|
@@ -50,7 +52,7 @@ export type VehicleDto = {
|
|
|
50
52
|
/**
|
|
51
53
|
* Vehicle status
|
|
52
54
|
*/
|
|
53
|
-
status?:
|
|
55
|
+
status?: VehicleStatus;
|
|
54
56
|
/**
|
|
55
57
|
* Created at timestamp
|
|
56
58
|
*/
|
|
@@ -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 = {}));
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { VehicleTypes } from './VehicleTypes';
|
|
1
2
|
export type VehicleUpdateDto = {
|
|
2
3
|
/**
|
|
3
4
|
* Cab number
|
|
@@ -38,7 +39,7 @@ export type VehicleUpdateDto = {
|
|
|
38
39
|
/**
|
|
39
40
|
* Vehicle type
|
|
40
41
|
*/
|
|
41
|
-
type?:
|
|
42
|
+
type?: VehicleTypes;
|
|
42
43
|
/**
|
|
43
44
|
* Vehicle color
|
|
44
45
|
*/
|
package/models/index.d.ts
CHANGED
|
@@ -24,6 +24,7 @@ export * from './CustomerRegisterDto';
|
|
|
24
24
|
export * from './CustomerTripActions';
|
|
25
25
|
export * from './CustomerUpdatedDto';
|
|
26
26
|
export * from './CustomerVerifyAccountDto';
|
|
27
|
+
export * from './DriverAssignmentModes';
|
|
27
28
|
export * from './DriverCreateDto';
|
|
28
29
|
export * from './DriverCreditsResponseDto';
|
|
29
30
|
export * from './DriverDto';
|
|
@@ -32,10 +33,14 @@ export * from './DriverLoginResponseDto';
|
|
|
32
33
|
export * from './DriverPaymentMethodResponseDto';
|
|
33
34
|
export * from './DriverTripActions';
|
|
34
35
|
export * from './DriverUpdateDto';
|
|
36
|
+
export * from './EstimateTripCostDto';
|
|
35
37
|
export * from './GenerateResetCodeDto';
|
|
36
38
|
export * from './GenerateVerificationCodeDto';
|
|
37
39
|
export * from './InquireVoucherBalanceDto';
|
|
38
40
|
export * from './InquireVoucherBalanceResponseDto';
|
|
41
|
+
export * from './JobSummaryDto';
|
|
42
|
+
export * from './JobsListResponseDto';
|
|
43
|
+
export * from './LocationTypes';
|
|
39
44
|
export * from './ManualCustomerCreateDto';
|
|
40
45
|
export * from './ManualCustomerDto';
|
|
41
46
|
export * from './ManualCustomerUpdateDto';
|
|
@@ -43,24 +48,35 @@ export * from './MessageResponseDto';
|
|
|
43
48
|
export * from './OrderDto';
|
|
44
49
|
export * from './PaymentDto';
|
|
45
50
|
export * from './PaymentMethodResponseDto';
|
|
51
|
+
export * from './PaymentTypes';
|
|
46
52
|
export * from './PurchaseDriverCreditsDto';
|
|
53
|
+
export * from './QueueJobCountsDto';
|
|
54
|
+
export * from './QueueSummaryDto';
|
|
47
55
|
export * from './ResetPasswordDto';
|
|
56
|
+
export * from './Role';
|
|
48
57
|
export * from './SectionContentCreateDto';
|
|
49
58
|
export * from './SectionContentDto';
|
|
50
59
|
export * from './SectionContentUpdateDto';
|
|
60
|
+
export * from './SectionContentsTypes';
|
|
51
61
|
export * from './SeniorCenterDto';
|
|
62
|
+
export * from './SystemSettingResponseDto';
|
|
52
63
|
export * from './TokensDto';
|
|
53
64
|
export * from './TripAssignDriverDto';
|
|
54
65
|
export * from './TripDto';
|
|
55
66
|
export * from './TripLocationPointDto';
|
|
67
|
+
export * from './TripSources';
|
|
56
68
|
export * from './TripStatuses';
|
|
57
69
|
export * from './TripUpdateDriverAssignmentModeDto';
|
|
58
70
|
export * from './TripUpdateDto';
|
|
59
71
|
export * from './TripUpdateTripsStatusDto';
|
|
72
|
+
export * from './TwilioTokenResponse';
|
|
60
73
|
export * from './UpdateFcmTokenDto';
|
|
74
|
+
export * from './UpdateSystemSettingDto';
|
|
61
75
|
export * from './ValidateResetCodeDto';
|
|
62
76
|
export * from './VehicleCreateDto';
|
|
63
77
|
export * from './VehicleDto';
|
|
78
|
+
export * from './VehicleStatus';
|
|
79
|
+
export * from './VehicleTypes';
|
|
64
80
|
export * from './VehicleUpdateDto';
|
|
65
81
|
export * from './VoucherCreateDto';
|
|
66
82
|
export * from './VoucherDriverCreateDto';
|
package/models/index.js
CHANGED
|
@@ -40,6 +40,7 @@ __exportStar(require("./CustomerRegisterDto"), exports);
|
|
|
40
40
|
__exportStar(require("./CustomerTripActions"), exports);
|
|
41
41
|
__exportStar(require("./CustomerUpdatedDto"), exports);
|
|
42
42
|
__exportStar(require("./CustomerVerifyAccountDto"), exports);
|
|
43
|
+
__exportStar(require("./DriverAssignmentModes"), exports);
|
|
43
44
|
__exportStar(require("./DriverCreateDto"), exports);
|
|
44
45
|
__exportStar(require("./DriverCreditsResponseDto"), exports);
|
|
45
46
|
__exportStar(require("./DriverDto"), exports);
|
|
@@ -48,10 +49,14 @@ __exportStar(require("./DriverLoginResponseDto"), exports);
|
|
|
48
49
|
__exportStar(require("./DriverPaymentMethodResponseDto"), exports);
|
|
49
50
|
__exportStar(require("./DriverTripActions"), exports);
|
|
50
51
|
__exportStar(require("./DriverUpdateDto"), exports);
|
|
52
|
+
__exportStar(require("./EstimateTripCostDto"), exports);
|
|
51
53
|
__exportStar(require("./GenerateResetCodeDto"), exports);
|
|
52
54
|
__exportStar(require("./GenerateVerificationCodeDto"), exports);
|
|
53
55
|
__exportStar(require("./InquireVoucherBalanceDto"), exports);
|
|
54
56
|
__exportStar(require("./InquireVoucherBalanceResponseDto"), exports);
|
|
57
|
+
__exportStar(require("./JobSummaryDto"), exports);
|
|
58
|
+
__exportStar(require("./JobsListResponseDto"), exports);
|
|
59
|
+
__exportStar(require("./LocationTypes"), exports);
|
|
55
60
|
__exportStar(require("./ManualCustomerCreateDto"), exports);
|
|
56
61
|
__exportStar(require("./ManualCustomerDto"), exports);
|
|
57
62
|
__exportStar(require("./ManualCustomerUpdateDto"), exports);
|
|
@@ -59,24 +64,35 @@ __exportStar(require("./MessageResponseDto"), exports);
|
|
|
59
64
|
__exportStar(require("./OrderDto"), exports);
|
|
60
65
|
__exportStar(require("./PaymentDto"), exports);
|
|
61
66
|
__exportStar(require("./PaymentMethodResponseDto"), exports);
|
|
67
|
+
__exportStar(require("./PaymentTypes"), exports);
|
|
62
68
|
__exportStar(require("./PurchaseDriverCreditsDto"), exports);
|
|
69
|
+
__exportStar(require("./QueueJobCountsDto"), exports);
|
|
70
|
+
__exportStar(require("./QueueSummaryDto"), exports);
|
|
63
71
|
__exportStar(require("./ResetPasswordDto"), exports);
|
|
72
|
+
__exportStar(require("./Role"), exports);
|
|
64
73
|
__exportStar(require("./SectionContentCreateDto"), exports);
|
|
65
74
|
__exportStar(require("./SectionContentDto"), exports);
|
|
66
75
|
__exportStar(require("./SectionContentUpdateDto"), exports);
|
|
76
|
+
__exportStar(require("./SectionContentsTypes"), exports);
|
|
67
77
|
__exportStar(require("./SeniorCenterDto"), exports);
|
|
78
|
+
__exportStar(require("./SystemSettingResponseDto"), exports);
|
|
68
79
|
__exportStar(require("./TokensDto"), exports);
|
|
69
80
|
__exportStar(require("./TripAssignDriverDto"), exports);
|
|
70
81
|
__exportStar(require("./TripDto"), exports);
|
|
71
82
|
__exportStar(require("./TripLocationPointDto"), exports);
|
|
83
|
+
__exportStar(require("./TripSources"), exports);
|
|
72
84
|
__exportStar(require("./TripStatuses"), exports);
|
|
73
85
|
__exportStar(require("./TripUpdateDriverAssignmentModeDto"), exports);
|
|
74
86
|
__exportStar(require("./TripUpdateDto"), exports);
|
|
75
87
|
__exportStar(require("./TripUpdateTripsStatusDto"), exports);
|
|
88
|
+
__exportStar(require("./TwilioTokenResponse"), exports);
|
|
76
89
|
__exportStar(require("./UpdateFcmTokenDto"), exports);
|
|
90
|
+
__exportStar(require("./UpdateSystemSettingDto"), exports);
|
|
77
91
|
__exportStar(require("./ValidateResetCodeDto"), exports);
|
|
78
92
|
__exportStar(require("./VehicleCreateDto"), exports);
|
|
79
93
|
__exportStar(require("./VehicleDto"), exports);
|
|
94
|
+
__exportStar(require("./VehicleStatus"), exports);
|
|
95
|
+
__exportStar(require("./VehicleTypes"), exports);
|
|
80
96
|
__exportStar(require("./VehicleUpdateDto"), exports);
|
|
81
97
|
__exportStar(require("./VoucherCreateDto"), exports);
|
|
82
98
|
__exportStar(require("./VoucherDriverCreateDto"), exports);
|
package/package.json
CHANGED
|
@@ -3,6 +3,13 @@ import type { DriverUpdateDto } from '../models/DriverUpdateDto';
|
|
|
3
3
|
import type { OrderDto } from '../models/OrderDto';
|
|
4
4
|
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
5
5
|
export declare class AdminDriversService {
|
|
6
|
+
/**
|
|
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.
|
|
9
|
+
* @returns any Number of drivers added to Redis GEO index.
|
|
10
|
+
* @throws ApiError
|
|
11
|
+
*/
|
|
12
|
+
static syncDriversRedisGeo(): CancelablePromise<any>;
|
|
6
13
|
/**
|
|
7
14
|
* Create a new driver
|
|
8
15
|
* @param requestBody
|
|
@@ -4,6 +4,18 @@ exports.AdminDriversService = void 0;
|
|
|
4
4
|
const OpenAPI_1 = require("../core/OpenAPI");
|
|
5
5
|
const request_1 = require("../core/request");
|
|
6
6
|
class AdminDriversService {
|
|
7
|
+
/**
|
|
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.
|
|
10
|
+
* @returns any Number of drivers added to Redis GEO index.
|
|
11
|
+
* @throws ApiError
|
|
12
|
+
*/
|
|
13
|
+
static syncDriversRedisGeo() {
|
|
14
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
15
|
+
method: 'POST',
|
|
16
|
+
url: '/admins/drivers/sync-redis-geo',
|
|
17
|
+
});
|
|
18
|
+
}
|
|
7
19
|
/**
|
|
8
20
|
* Create a new driver
|
|
9
21
|
* @param requestBody
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { JobsListResponseDto } from '../models/JobsListResponseDto';
|
|
2
|
+
import type { JobSummaryDto } from '../models/JobSummaryDto';
|
|
3
|
+
import type { QueueSummaryDto } from '../models/QueueSummaryDto';
|
|
4
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
5
|
+
export declare class AdminQueuesService {
|
|
6
|
+
/**
|
|
7
|
+
* List BullMQ queues with job counts
|
|
8
|
+
* @returns QueueSummaryDto Queue summaries with job counts by state
|
|
9
|
+
* @throws ApiError
|
|
10
|
+
*/
|
|
11
|
+
static getQueues(): CancelablePromise<Array<QueueSummaryDto>>;
|
|
12
|
+
/**
|
|
13
|
+
* List jobs in a queue by state
|
|
14
|
+
* @param queueName Queue name
|
|
15
|
+
* @param start Start index for pagination
|
|
16
|
+
* @param end End index for pagination (inclusive)
|
|
17
|
+
* @param state Filter by job state(s). Can be repeated for multiple states.
|
|
18
|
+
* @returns JobsListResponseDto List of jobs in the queue
|
|
19
|
+
* @throws ApiError
|
|
20
|
+
*/
|
|
21
|
+
static getJobs(queueName: 'dispatch-queue' | 'trip-queue', start?: number, end?: number, state?: Array<'waiting' | 'active' | 'completed' | 'failed' | 'delayed' | 'paused'>): CancelablePromise<JobsListResponseDto>;
|
|
22
|
+
/**
|
|
23
|
+
* Get a single BullMQ job by ID
|
|
24
|
+
* @param queueName Queue name
|
|
25
|
+
* @param jobId BullMQ job ID
|
|
26
|
+
* @returns JobSummaryDto Job details
|
|
27
|
+
* @throws ApiError
|
|
28
|
+
*/
|
|
29
|
+
static getJob(queueName: 'dispatch-queue' | 'trip-queue', jobId: string): CancelablePromise<JobSummaryDto>;
|
|
30
|
+
}
|