@dapex-tech/elite-online-services 0.0.16 → 0.0.18
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 +10 -0
- package/models/AddDriverCreditsByCardDto.d.ts +11 -0
- package/models/AddDriverCreditsByCardDto.js +2 -0
- package/models/AddDriverCreditsByCashDto.d.ts +6 -0
- package/models/AddDriverCreditsByCashDto.js +2 -0
- package/models/AddPaymentMethodDto.d.ts +46 -0
- package/models/AddPaymentMethodDto.js +2 -0
- package/models/AdminSearchCustomersResponseDto.d.ts +8 -0
- package/models/AdminSearchCustomersResponseDto.js +2 -0
- package/models/CardDataDto.d.ts +42 -0
- package/models/CardDataDto.js +2 -0
- package/models/ChargeTripByCardDto.d.ts +50 -0
- package/models/ChargeTripByCardDto.js +2 -0
- package/models/ChargeTripByCardResponseDto.d.ts +26 -0
- package/models/ChargeTripByCardResponseDto.js +2 -0
- package/models/ChargeTripByCashDto.d.ts +10 -0
- package/models/ChargeTripByCashDto.js +2 -0
- package/models/ChargeTripByCashResponseDto.d.ts +6 -0
- package/models/ChargeTripByCashResponseDto.js +2 -0
- package/models/ChargeTripByVoucherDto.d.ts +14 -0
- package/models/ChargeTripByVoucherDto.js +2 -0
- package/models/ChargeTripDto.d.ts +10 -0
- package/models/ChargeTripDto.js +2 -0
- package/models/CustomerLocationCreateDto.d.ts +19 -0
- package/models/CustomerLocationCreateDto.js +18 -0
- package/models/CustomerLocationDto.d.ts +19 -0
- package/models/CustomerLocationDto.js +18 -0
- package/models/CustomerLocationUpdateDto.d.ts +19 -0
- package/models/CustomerLocationUpdateDto.js +18 -0
- package/models/DriverCreditsResponseDto.d.ts +18 -0
- package/models/DriverCreditsResponseDto.js +2 -0
- package/models/DriverDto.d.ts +4 -0
- package/models/DriverLoginResponseDto.d.ts +4 -0
- package/models/DriverPaymentMethodResponseDto.d.ts +38 -0
- package/models/DriverPaymentMethodResponseDto.js +2 -0
- package/models/InquireVoucherBalanceDto.d.ts +6 -0
- package/models/InquireVoucherBalanceDto.js +2 -0
- package/models/InquireVoucherBalanceResponseDto.d.ts +42 -0
- package/models/InquireVoucherBalanceResponseDto.js +2 -0
- package/models/PaymentDto.d.ts +8 -4
- package/models/PaymentMethodResponseDto.d.ts +38 -0
- package/models/PaymentMethodResponseDto.js +2 -0
- package/models/PurchaseDriverCreditsDto.d.ts +10 -0
- package/models/PurchaseDriverCreditsDto.js +2 -0
- package/models/SectionContentCreateDto.d.ts +27 -0
- package/models/SectionContentCreateDto.js +14 -0
- package/models/SectionContentDto.d.ts +35 -0
- package/models/SectionContentDto.js +14 -0
- package/models/SectionContentUpdateDto.d.ts +27 -0
- package/models/SectionContentUpdateDto.js +14 -0
- package/models/SeniorCenterDto.d.ts +30 -0
- package/models/SeniorCenterDto.js +2 -0
- package/models/TripDto.d.ts +75 -4
- package/models/TripDto.js +38 -0
- package/models/TripStatuses.d.ts +1 -0
- package/models/TripStatuses.js +1 -0
- package/models/TripUpdateDto.d.ts +22 -0
- package/models/TripUpdateDto.js +13 -0
- package/models/TripUpdateTripsStatusDto.d.ts +1 -0
- package/models/TripUpdateTripsStatusDto.js +1 -0
- package/models/VoucherDriverCreateDto.d.ts +54 -0
- package/models/VoucherDriverCreateDto.js +2 -0
- package/models/index.d.ts +22 -0
- package/models/index.js +22 -0
- package/package.json +1 -1
- package/services/AdminDriversService.d.ts +3 -1
- package/services/AdminDriversService.js +4 -1
- package/services/AdminPaymentsService.d.ts +22 -0
- package/services/AdminPaymentsService.js +52 -0
- package/services/AdminSectionContentService.d.ts +46 -0
- package/services/AdminSectionContentService.js +89 -0
- package/services/AdminService.d.ts +16 -0
- package/services/AdminService.js +28 -0
- package/services/AdminSettingsService.d.ts +9 -0
- package/services/AdminSettingsService.js +19 -0
- package/services/AdminTripsService.d.ts +9 -0
- package/services/AdminTripsService.js +19 -0
- package/services/AdminVouchersService.d.ts +61 -0
- package/services/AdminVouchersService.js +116 -0
- package/services/CustomerPaymentsService.d.ts +66 -0
- package/services/CustomerPaymentsService.js +149 -0
- package/services/CustomerSectionContentsService.d.ts +17 -0
- package/services/CustomerSectionContentsService.js +34 -0
- package/services/CustomerSettingsService.d.ts +9 -0
- package/services/CustomerSettingsService.js +19 -0
- package/services/DriverPaymentsService.d.ts +85 -0
- package/services/DriverPaymentsService.js +181 -0
- package/services/DriverSettingsService.d.ts +9 -0
- package/services/DriverSettingsService.js +19 -0
- package/services/DriverTripsService.d.ts +10 -0
- package/services/DriverTripsService.js +18 -0
- package/services/PaymentsService.d.ts +67 -0
- package/services/PaymentsService.js +149 -0
- package/services/index.d.ts +10 -0
- package/services/index.js +10 -0
- package/types/realtime/active-trip.d.ts +2 -0
- package/types/realtime/driver-status.d.ts +3 -3
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export type PaymentMethodResponseDto = {
|
|
2
|
+
/**
|
|
3
|
+
* Payment method ID
|
|
4
|
+
*/
|
|
5
|
+
id: number;
|
|
6
|
+
/**
|
|
7
|
+
* Customer ID
|
|
8
|
+
*/
|
|
9
|
+
customerId: number;
|
|
10
|
+
/**
|
|
11
|
+
* Last 4 digits of the card
|
|
12
|
+
*/
|
|
13
|
+
cardLast4: string;
|
|
14
|
+
/**
|
|
15
|
+
* Card brand
|
|
16
|
+
*/
|
|
17
|
+
cardBrand: string;
|
|
18
|
+
/**
|
|
19
|
+
* Card expiration month (1-12)
|
|
20
|
+
*/
|
|
21
|
+
cardExpMonth: number;
|
|
22
|
+
/**
|
|
23
|
+
* Card expiration year
|
|
24
|
+
*/
|
|
25
|
+
cardExpYear: number;
|
|
26
|
+
/**
|
|
27
|
+
* Whether this is the default payment method
|
|
28
|
+
*/
|
|
29
|
+
isDefault: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Creation timestamp
|
|
32
|
+
*/
|
|
33
|
+
createdAt: string;
|
|
34
|
+
/**
|
|
35
|
+
* Last update timestamp
|
|
36
|
+
*/
|
|
37
|
+
updatedAt?: Record<string, any>;
|
|
38
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export type SectionContentCreateDto = {
|
|
2
|
+
/**
|
|
3
|
+
* Section content type
|
|
4
|
+
*/
|
|
5
|
+
type: SectionContentCreateDto.type;
|
|
6
|
+
/**
|
|
7
|
+
* Section name
|
|
8
|
+
*/
|
|
9
|
+
name: string;
|
|
10
|
+
/**
|
|
11
|
+
* Section content body
|
|
12
|
+
*/
|
|
13
|
+
content: string;
|
|
14
|
+
/**
|
|
15
|
+
* Display position
|
|
16
|
+
*/
|
|
17
|
+
position?: number;
|
|
18
|
+
};
|
|
19
|
+
export declare namespace SectionContentCreateDto {
|
|
20
|
+
/**
|
|
21
|
+
* Section content type
|
|
22
|
+
*/
|
|
23
|
+
enum type {
|
|
24
|
+
LEGAL = "legal",
|
|
25
|
+
HELP = "help"
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SectionContentCreateDto = void 0;
|
|
4
|
+
var SectionContentCreateDto;
|
|
5
|
+
(function (SectionContentCreateDto) {
|
|
6
|
+
/**
|
|
7
|
+
* Section content type
|
|
8
|
+
*/
|
|
9
|
+
let type;
|
|
10
|
+
(function (type) {
|
|
11
|
+
type["LEGAL"] = "legal";
|
|
12
|
+
type["HELP"] = "help";
|
|
13
|
+
})(type = SectionContentCreateDto.type || (SectionContentCreateDto.type = {}));
|
|
14
|
+
})(SectionContentCreateDto || (exports.SectionContentCreateDto = SectionContentCreateDto = {}));
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export type SectionContentDto = {
|
|
2
|
+
/**
|
|
3
|
+
* Section content ID
|
|
4
|
+
*/
|
|
5
|
+
id: number;
|
|
6
|
+
/**
|
|
7
|
+
* Section content type
|
|
8
|
+
*/
|
|
9
|
+
type: SectionContentDto.type;
|
|
10
|
+
/**
|
|
11
|
+
* Section name
|
|
12
|
+
*/
|
|
13
|
+
name: string;
|
|
14
|
+
/**
|
|
15
|
+
* Section content body
|
|
16
|
+
*/
|
|
17
|
+
content: string;
|
|
18
|
+
/**
|
|
19
|
+
* Display position
|
|
20
|
+
*/
|
|
21
|
+
position: number;
|
|
22
|
+
/**
|
|
23
|
+
* Created at timestamp
|
|
24
|
+
*/
|
|
25
|
+
createdAt: string;
|
|
26
|
+
};
|
|
27
|
+
export declare namespace SectionContentDto {
|
|
28
|
+
/**
|
|
29
|
+
* Section content type
|
|
30
|
+
*/
|
|
31
|
+
enum type {
|
|
32
|
+
LEGAL = "legal",
|
|
33
|
+
HELP = "help"
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SectionContentDto = void 0;
|
|
4
|
+
var SectionContentDto;
|
|
5
|
+
(function (SectionContentDto) {
|
|
6
|
+
/**
|
|
7
|
+
* Section content type
|
|
8
|
+
*/
|
|
9
|
+
let type;
|
|
10
|
+
(function (type) {
|
|
11
|
+
type["LEGAL"] = "legal";
|
|
12
|
+
type["HELP"] = "help";
|
|
13
|
+
})(type = SectionContentDto.type || (SectionContentDto.type = {}));
|
|
14
|
+
})(SectionContentDto || (exports.SectionContentDto = SectionContentDto = {}));
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export type SectionContentUpdateDto = {
|
|
2
|
+
/**
|
|
3
|
+
* Section content type
|
|
4
|
+
*/
|
|
5
|
+
type?: SectionContentUpdateDto.type;
|
|
6
|
+
/**
|
|
7
|
+
* Section name
|
|
8
|
+
*/
|
|
9
|
+
name?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Section content body
|
|
12
|
+
*/
|
|
13
|
+
content?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Display position
|
|
16
|
+
*/
|
|
17
|
+
position?: number;
|
|
18
|
+
};
|
|
19
|
+
export declare namespace SectionContentUpdateDto {
|
|
20
|
+
/**
|
|
21
|
+
* Section content type
|
|
22
|
+
*/
|
|
23
|
+
enum type {
|
|
24
|
+
LEGAL = "legal",
|
|
25
|
+
HELP = "help"
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SectionContentUpdateDto = void 0;
|
|
4
|
+
var SectionContentUpdateDto;
|
|
5
|
+
(function (SectionContentUpdateDto) {
|
|
6
|
+
/**
|
|
7
|
+
* Section content type
|
|
8
|
+
*/
|
|
9
|
+
let type;
|
|
10
|
+
(function (type) {
|
|
11
|
+
type["LEGAL"] = "legal";
|
|
12
|
+
type["HELP"] = "help";
|
|
13
|
+
})(type = SectionContentUpdateDto.type || (SectionContentUpdateDto.type = {}));
|
|
14
|
+
})(SectionContentUpdateDto || (exports.SectionContentUpdateDto = SectionContentUpdateDto = {}));
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export type SeniorCenterDto = {
|
|
2
|
+
/**
|
|
3
|
+
* Senior center ID
|
|
4
|
+
*/
|
|
5
|
+
id: number;
|
|
6
|
+
/**
|
|
7
|
+
* Senior center code
|
|
8
|
+
*/
|
|
9
|
+
code: string;
|
|
10
|
+
/**
|
|
11
|
+
* Senior center name
|
|
12
|
+
*/
|
|
13
|
+
name: string;
|
|
14
|
+
/**
|
|
15
|
+
* Address
|
|
16
|
+
*/
|
|
17
|
+
address: string;
|
|
18
|
+
/**
|
|
19
|
+
* Phone
|
|
20
|
+
*/
|
|
21
|
+
phone: string;
|
|
22
|
+
/**
|
|
23
|
+
* Latitude
|
|
24
|
+
*/
|
|
25
|
+
latitude: string;
|
|
26
|
+
/**
|
|
27
|
+
* Longitude
|
|
28
|
+
*/
|
|
29
|
+
longitude: string;
|
|
30
|
+
};
|
package/models/TripDto.d.ts
CHANGED
|
@@ -18,10 +18,18 @@ export type TripDto = {
|
|
|
18
18
|
status?: TripDto.status;
|
|
19
19
|
tripSource?: Record<string, any>;
|
|
20
20
|
driverAssignmentMode?: Record<string, any>;
|
|
21
|
+
/**
|
|
22
|
+
* Payment type (CASH or DEBIT_CREDIT_CARD)
|
|
23
|
+
*/
|
|
24
|
+
paymentType?: TripDto.paymentType;
|
|
25
|
+
/**
|
|
26
|
+
* Customer payment method ID for card payments
|
|
27
|
+
*/
|
|
28
|
+
customerPaymentMethodId?: Record<string, any> | null;
|
|
21
29
|
/**
|
|
22
30
|
* Origin location type
|
|
23
31
|
*/
|
|
24
|
-
originLocationType?:
|
|
32
|
+
originLocationType?: TripDto.originLocationType | null;
|
|
25
33
|
/**
|
|
26
34
|
* Origin latitude
|
|
27
35
|
*/
|
|
@@ -38,10 +46,22 @@ export type TripDto = {
|
|
|
38
46
|
* Origin name
|
|
39
47
|
*/
|
|
40
48
|
originName?: Record<string, any> | null;
|
|
49
|
+
/**
|
|
50
|
+
* Origin apartment (admin only)
|
|
51
|
+
*/
|
|
52
|
+
originApartment?: Record<string, any> | null;
|
|
53
|
+
/**
|
|
54
|
+
* Origin building (admin only)
|
|
55
|
+
*/
|
|
56
|
+
originBuilding?: Record<string, any> | null;
|
|
57
|
+
/**
|
|
58
|
+
* Origin access code (admin only)
|
|
59
|
+
*/
|
|
60
|
+
originAccessCode?: Record<string, any> | null;
|
|
41
61
|
/**
|
|
42
62
|
* Destination location type
|
|
43
63
|
*/
|
|
44
|
-
destinationLocationType?:
|
|
64
|
+
destinationLocationType?: TripDto.destinationLocationType | null;
|
|
45
65
|
/**
|
|
46
66
|
* Destination latitude
|
|
47
67
|
*/
|
|
@@ -58,6 +78,18 @@ export type TripDto = {
|
|
|
58
78
|
* Destination name
|
|
59
79
|
*/
|
|
60
80
|
destinationName?: Record<string, any> | null;
|
|
81
|
+
/**
|
|
82
|
+
* Senior center ID (admin only)
|
|
83
|
+
*/
|
|
84
|
+
seniorCenterId?: Record<string, any> | null;
|
|
85
|
+
/**
|
|
86
|
+
* Cab/driver notes (admin only)
|
|
87
|
+
*/
|
|
88
|
+
cabNotes?: Record<string, any> | null;
|
|
89
|
+
/**
|
|
90
|
+
* Customer notes, persisted to customer/voucher/manual customer (admin only)
|
|
91
|
+
*/
|
|
92
|
+
customerNotes?: Record<string, any> | null;
|
|
61
93
|
/**
|
|
62
94
|
* Trip duration (minutes)
|
|
63
95
|
*/
|
|
@@ -124,6 +156,10 @@ export type TripDto = {
|
|
|
124
156
|
totalCost?: Record<string, any> | null;
|
|
125
157
|
startedAt?: Record<string, any> | null;
|
|
126
158
|
completedAt?: Record<string, any> | null;
|
|
159
|
+
/**
|
|
160
|
+
* Scheduled pickup datetime (admin only)
|
|
161
|
+
*/
|
|
162
|
+
scheduledPickupDateTime?: Record<string, any> | null;
|
|
127
163
|
total?: Record<string, any> | null;
|
|
128
164
|
/**
|
|
129
165
|
* Customer information
|
|
@@ -142,9 +178,9 @@ export type TripDto = {
|
|
|
142
178
|
*/
|
|
143
179
|
locationPoints?: Array<TripLocationPointDto> | null;
|
|
144
180
|
/**
|
|
145
|
-
*
|
|
181
|
+
* Payment associated with the trip
|
|
146
182
|
*/
|
|
147
|
-
|
|
183
|
+
payment?: PaymentDto | null;
|
|
148
184
|
/**
|
|
149
185
|
* Voucher information
|
|
150
186
|
*/
|
|
@@ -156,6 +192,7 @@ export type TripDto = {
|
|
|
156
192
|
};
|
|
157
193
|
export declare namespace TripDto {
|
|
158
194
|
enum status {
|
|
195
|
+
SCHEDULED = "SCHEDULED",
|
|
159
196
|
REQUESTED = "REQUESTED",
|
|
160
197
|
DRIVER_SEARCHING = "DRIVER_SEARCHING",
|
|
161
198
|
DRIVER_ASSIGNED = "DRIVER_ASSIGNED",
|
|
@@ -170,4 +207,38 @@ export declare namespace TripDto {
|
|
|
170
207
|
CANCELED_DRIVER = "CANCELED_DRIVER",
|
|
171
208
|
CANCELED_ADMIN = "CANCELED_ADMIN"
|
|
172
209
|
}
|
|
210
|
+
/**
|
|
211
|
+
* Payment type (CASH or DEBIT_CREDIT_CARD)
|
|
212
|
+
*/
|
|
213
|
+
enum paymentType {
|
|
214
|
+
CASH = "CASH",
|
|
215
|
+
DEBIT_CREDIT_CARD = "DEBIT_CREDIT_CARD",
|
|
216
|
+
VOUCHER = "VOUCHER"
|
|
217
|
+
}
|
|
218
|
+
/**
|
|
219
|
+
* Origin location type
|
|
220
|
+
*/
|
|
221
|
+
enum originLocationType {
|
|
222
|
+
HOME = "HOME",
|
|
223
|
+
APARTMENT = "APARTMENT",
|
|
224
|
+
OFFICE = "OFFICE",
|
|
225
|
+
HOSPITAL = "HOSPITAL",
|
|
226
|
+
MALL = "MALL",
|
|
227
|
+
HOTEL = "HOTEL",
|
|
228
|
+
BUSINESS = "BUSINESS",
|
|
229
|
+
OTHER = "OTHER"
|
|
230
|
+
}
|
|
231
|
+
/**
|
|
232
|
+
* Destination location type
|
|
233
|
+
*/
|
|
234
|
+
enum destinationLocationType {
|
|
235
|
+
HOME = "HOME",
|
|
236
|
+
APARTMENT = "APARTMENT",
|
|
237
|
+
OFFICE = "OFFICE",
|
|
238
|
+
HOSPITAL = "HOSPITAL",
|
|
239
|
+
MALL = "MALL",
|
|
240
|
+
HOTEL = "HOTEL",
|
|
241
|
+
BUSINESS = "BUSINESS",
|
|
242
|
+
OTHER = "OTHER"
|
|
243
|
+
}
|
|
173
244
|
}
|
package/models/TripDto.js
CHANGED
|
@@ -5,6 +5,7 @@ var TripDto;
|
|
|
5
5
|
(function (TripDto) {
|
|
6
6
|
let status;
|
|
7
7
|
(function (status) {
|
|
8
|
+
status["SCHEDULED"] = "SCHEDULED";
|
|
8
9
|
status["REQUESTED"] = "REQUESTED";
|
|
9
10
|
status["DRIVER_SEARCHING"] = "DRIVER_SEARCHING";
|
|
10
11
|
status["DRIVER_ASSIGNED"] = "DRIVER_ASSIGNED";
|
|
@@ -19,4 +20,41 @@ var TripDto;
|
|
|
19
20
|
status["CANCELED_DRIVER"] = "CANCELED_DRIVER";
|
|
20
21
|
status["CANCELED_ADMIN"] = "CANCELED_ADMIN";
|
|
21
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 = {}));
|
|
22
60
|
})(TripDto || (exports.TripDto = TripDto = {}));
|
package/models/TripStatuses.d.ts
CHANGED
package/models/TripStatuses.js
CHANGED
|
@@ -7,6 +7,7 @@ exports.TripStatuses = void 0;
|
|
|
7
7
|
/* eslint-disable */
|
|
8
8
|
var TripStatuses;
|
|
9
9
|
(function (TripStatuses) {
|
|
10
|
+
TripStatuses["SCHEDULED"] = "SCHEDULED";
|
|
10
11
|
TripStatuses["REQUESTED"] = "REQUESTED";
|
|
11
12
|
TripStatuses["DRIVER_SEARCHING"] = "DRIVER_SEARCHING";
|
|
12
13
|
TripStatuses["DRIVER_ASSIGNED"] = "DRIVER_ASSIGNED";
|
|
@@ -3,6 +3,14 @@ export type TripUpdateDto = {
|
|
|
3
3
|
customerId?: Record<string, any> | null;
|
|
4
4
|
voucherId?: Record<string, any> | null;
|
|
5
5
|
manualCustomerId?: Record<string, any> | null;
|
|
6
|
+
/**
|
|
7
|
+
* Payment type (CASH or DEBIT_CREDIT_CARD)
|
|
8
|
+
*/
|
|
9
|
+
paymentType?: TripUpdateDto.paymentType | null;
|
|
10
|
+
/**
|
|
11
|
+
* Customer payment method ID for card payments
|
|
12
|
+
*/
|
|
13
|
+
customerPaymentMethodId?: Record<string, any> | null;
|
|
6
14
|
origin?: Record<string, any> | null;
|
|
7
15
|
/**
|
|
8
16
|
* Origin address
|
|
@@ -37,4 +45,18 @@ export type TripUpdateDto = {
|
|
|
37
45
|
* Destination longitude
|
|
38
46
|
*/
|
|
39
47
|
destinationLongitude?: Record<string, any> | null;
|
|
48
|
+
/**
|
|
49
|
+
* Scheduled pickup datetime (admin only)
|
|
50
|
+
*/
|
|
51
|
+
scheduledPickupDateTime?: Record<string, any> | null;
|
|
40
52
|
};
|
|
53
|
+
export declare namespace TripUpdateDto {
|
|
54
|
+
/**
|
|
55
|
+
* Payment type (CASH or DEBIT_CREDIT_CARD)
|
|
56
|
+
*/
|
|
57
|
+
enum paymentType {
|
|
58
|
+
CASH = "CASH",
|
|
59
|
+
DEBIT_CREDIT_CARD = "DEBIT_CREDIT_CARD",
|
|
60
|
+
VOUCHER = "VOUCHER"
|
|
61
|
+
}
|
|
62
|
+
}
|
package/models/TripUpdateDto.js
CHANGED
|
@@ -1,2 +1,15 @@
|
|
|
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 = {}));
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
export type VoucherDriverCreateDto = {
|
|
2
|
+
/**
|
|
3
|
+
* Card number
|
|
4
|
+
*/
|
|
5
|
+
cardNumber: string;
|
|
6
|
+
/**
|
|
7
|
+
* Voucher status
|
|
8
|
+
*/
|
|
9
|
+
status: string;
|
|
10
|
+
/**
|
|
11
|
+
* Program name
|
|
12
|
+
*/
|
|
13
|
+
program: string;
|
|
14
|
+
/**
|
|
15
|
+
* Senior center
|
|
16
|
+
*/
|
|
17
|
+
seniorCenter: string;
|
|
18
|
+
/**
|
|
19
|
+
* First name
|
|
20
|
+
*/
|
|
21
|
+
firstName: string;
|
|
22
|
+
/**
|
|
23
|
+
* Last name
|
|
24
|
+
*/
|
|
25
|
+
lastName: string;
|
|
26
|
+
/**
|
|
27
|
+
* Middle name
|
|
28
|
+
*/
|
|
29
|
+
middleName?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Address
|
|
32
|
+
*/
|
|
33
|
+
address: string;
|
|
34
|
+
/**
|
|
35
|
+
* Apartment number
|
|
36
|
+
*/
|
|
37
|
+
apartmentNumber?: string;
|
|
38
|
+
/**
|
|
39
|
+
* City
|
|
40
|
+
*/
|
|
41
|
+
city: string;
|
|
42
|
+
/**
|
|
43
|
+
* State
|
|
44
|
+
*/
|
|
45
|
+
state: string;
|
|
46
|
+
/**
|
|
47
|
+
* Zip code
|
|
48
|
+
*/
|
|
49
|
+
zipCode: string;
|
|
50
|
+
/**
|
|
51
|
+
* Rider phone
|
|
52
|
+
*/
|
|
53
|
+
riderPhone: string;
|
|
54
|
+
};
|
package/models/index.d.ts
CHANGED
|
@@ -1,8 +1,19 @@
|
|
|
1
|
+
export * from './AddDriverCreditsByCardDto';
|
|
2
|
+
export * from './AddDriverCreditsByCashDto';
|
|
3
|
+
export * from './AddPaymentMethodDto';
|
|
1
4
|
export * from './AdminCreateDto';
|
|
2
5
|
export * from './AdminDto';
|
|
3
6
|
export * from './AdminLoginDto';
|
|
4
7
|
export * from './AdminLoginResponseDto';
|
|
8
|
+
export * from './AdminSearchCustomersResponseDto';
|
|
5
9
|
export * from './AdminUpdateDto';
|
|
10
|
+
export * from './CardDataDto';
|
|
11
|
+
export * from './ChargeTripByCardDto';
|
|
12
|
+
export * from './ChargeTripByCardResponseDto';
|
|
13
|
+
export * from './ChargeTripByCashDto';
|
|
14
|
+
export * from './ChargeTripByCashResponseDto';
|
|
15
|
+
export * from './ChargeTripByVoucherDto';
|
|
16
|
+
export * from './ChargeTripDto';
|
|
6
17
|
export * from './CustomerDto';
|
|
7
18
|
export * from './CustomerLocationCreateDto';
|
|
8
19
|
export * from './CustomerLocationDto';
|
|
@@ -14,20 +25,30 @@ export * from './CustomerTripActions';
|
|
|
14
25
|
export * from './CustomerUpdatedDto';
|
|
15
26
|
export * from './CustomerVerifyAccountDto';
|
|
16
27
|
export * from './DriverCreateDto';
|
|
28
|
+
export * from './DriverCreditsResponseDto';
|
|
17
29
|
export * from './DriverDto';
|
|
18
30
|
export * from './DriverLoginDto';
|
|
19
31
|
export * from './DriverLoginResponseDto';
|
|
32
|
+
export * from './DriverPaymentMethodResponseDto';
|
|
20
33
|
export * from './DriverTripActions';
|
|
21
34
|
export * from './DriverUpdateDto';
|
|
22
35
|
export * from './GenerateResetCodeDto';
|
|
23
36
|
export * from './GenerateVerificationCodeDto';
|
|
37
|
+
export * from './InquireVoucherBalanceDto';
|
|
38
|
+
export * from './InquireVoucherBalanceResponseDto';
|
|
24
39
|
export * from './ManualCustomerCreateDto';
|
|
25
40
|
export * from './ManualCustomerDto';
|
|
26
41
|
export * from './ManualCustomerUpdateDto';
|
|
27
42
|
export * from './MessageResponseDto';
|
|
28
43
|
export * from './OrderDto';
|
|
29
44
|
export * from './PaymentDto';
|
|
45
|
+
export * from './PaymentMethodResponseDto';
|
|
46
|
+
export * from './PurchaseDriverCreditsDto';
|
|
30
47
|
export * from './ResetPasswordDto';
|
|
48
|
+
export * from './SectionContentCreateDto';
|
|
49
|
+
export * from './SectionContentDto';
|
|
50
|
+
export * from './SectionContentUpdateDto';
|
|
51
|
+
export * from './SeniorCenterDto';
|
|
31
52
|
export * from './TokensDto';
|
|
32
53
|
export * from './TripAssignDriverDto';
|
|
33
54
|
export * from './TripDto';
|
|
@@ -39,5 +60,6 @@ export * from './TripUpdateTripsStatusDto';
|
|
|
39
60
|
export * from './UpdateFcmTokenDto';
|
|
40
61
|
export * from './ValidateResetCodeDto';
|
|
41
62
|
export * from './VoucherCreateDto';
|
|
63
|
+
export * from './VoucherDriverCreateDto';
|
|
42
64
|
export * from './VoucherDto';
|
|
43
65
|
export * from './VoucherUpdateDto';
|
package/models/index.js
CHANGED
|
@@ -14,11 +14,22 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./AddDriverCreditsByCardDto"), exports);
|
|
18
|
+
__exportStar(require("./AddDriverCreditsByCashDto"), exports);
|
|
19
|
+
__exportStar(require("./AddPaymentMethodDto"), exports);
|
|
17
20
|
__exportStar(require("./AdminCreateDto"), exports);
|
|
18
21
|
__exportStar(require("./AdminDto"), exports);
|
|
19
22
|
__exportStar(require("./AdminLoginDto"), exports);
|
|
20
23
|
__exportStar(require("./AdminLoginResponseDto"), exports);
|
|
24
|
+
__exportStar(require("./AdminSearchCustomersResponseDto"), exports);
|
|
21
25
|
__exportStar(require("./AdminUpdateDto"), exports);
|
|
26
|
+
__exportStar(require("./CardDataDto"), exports);
|
|
27
|
+
__exportStar(require("./ChargeTripByCardDto"), exports);
|
|
28
|
+
__exportStar(require("./ChargeTripByCardResponseDto"), exports);
|
|
29
|
+
__exportStar(require("./ChargeTripByCashDto"), exports);
|
|
30
|
+
__exportStar(require("./ChargeTripByCashResponseDto"), exports);
|
|
31
|
+
__exportStar(require("./ChargeTripByVoucherDto"), exports);
|
|
32
|
+
__exportStar(require("./ChargeTripDto"), exports);
|
|
22
33
|
__exportStar(require("./CustomerDto"), exports);
|
|
23
34
|
__exportStar(require("./CustomerLocationCreateDto"), exports);
|
|
24
35
|
__exportStar(require("./CustomerLocationDto"), exports);
|
|
@@ -30,20 +41,30 @@ __exportStar(require("./CustomerTripActions"), exports);
|
|
|
30
41
|
__exportStar(require("./CustomerUpdatedDto"), exports);
|
|
31
42
|
__exportStar(require("./CustomerVerifyAccountDto"), exports);
|
|
32
43
|
__exportStar(require("./DriverCreateDto"), exports);
|
|
44
|
+
__exportStar(require("./DriverCreditsResponseDto"), exports);
|
|
33
45
|
__exportStar(require("./DriverDto"), exports);
|
|
34
46
|
__exportStar(require("./DriverLoginDto"), exports);
|
|
35
47
|
__exportStar(require("./DriverLoginResponseDto"), exports);
|
|
48
|
+
__exportStar(require("./DriverPaymentMethodResponseDto"), exports);
|
|
36
49
|
__exportStar(require("./DriverTripActions"), exports);
|
|
37
50
|
__exportStar(require("./DriverUpdateDto"), exports);
|
|
38
51
|
__exportStar(require("./GenerateResetCodeDto"), exports);
|
|
39
52
|
__exportStar(require("./GenerateVerificationCodeDto"), exports);
|
|
53
|
+
__exportStar(require("./InquireVoucherBalanceDto"), exports);
|
|
54
|
+
__exportStar(require("./InquireVoucherBalanceResponseDto"), exports);
|
|
40
55
|
__exportStar(require("./ManualCustomerCreateDto"), exports);
|
|
41
56
|
__exportStar(require("./ManualCustomerDto"), exports);
|
|
42
57
|
__exportStar(require("./ManualCustomerUpdateDto"), exports);
|
|
43
58
|
__exportStar(require("./MessageResponseDto"), exports);
|
|
44
59
|
__exportStar(require("./OrderDto"), exports);
|
|
45
60
|
__exportStar(require("./PaymentDto"), exports);
|
|
61
|
+
__exportStar(require("./PaymentMethodResponseDto"), exports);
|
|
62
|
+
__exportStar(require("./PurchaseDriverCreditsDto"), exports);
|
|
46
63
|
__exportStar(require("./ResetPasswordDto"), exports);
|
|
64
|
+
__exportStar(require("./SectionContentCreateDto"), exports);
|
|
65
|
+
__exportStar(require("./SectionContentDto"), exports);
|
|
66
|
+
__exportStar(require("./SectionContentUpdateDto"), exports);
|
|
67
|
+
__exportStar(require("./SeniorCenterDto"), exports);
|
|
47
68
|
__exportStar(require("./TokensDto"), exports);
|
|
48
69
|
__exportStar(require("./TripAssignDriverDto"), exports);
|
|
49
70
|
__exportStar(require("./TripDto"), exports);
|
|
@@ -55,5 +76,6 @@ __exportStar(require("./TripUpdateTripsStatusDto"), exports);
|
|
|
55
76
|
__exportStar(require("./UpdateFcmTokenDto"), exports);
|
|
56
77
|
__exportStar(require("./ValidateResetCodeDto"), exports);
|
|
57
78
|
__exportStar(require("./VoucherCreateDto"), exports);
|
|
79
|
+
__exportStar(require("./VoucherDriverCreateDto"), exports);
|
|
58
80
|
__exportStar(require("./VoucherDto"), exports);
|
|
59
81
|
__exportStar(require("./VoucherUpdateDto"), exports);
|