@dapex-tech/elite-online-services 0.0.14 → 0.0.16
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 +2 -0
- package/models/CustomerLoginDto.d.ts +2 -2
- package/models/ManualCustomerCreateDto.d.ts +30 -0
- package/models/ManualCustomerCreateDto.js +2 -0
- package/models/ManualCustomerDto.d.ts +42 -0
- package/models/ManualCustomerDto.js +2 -0
- package/models/ManualCustomerUpdateDto.d.ts +30 -0
- package/models/ManualCustomerUpdateDto.js +2 -0
- package/models/TripDto.d.ts +71 -6
- package/models/TripDto.js +20 -0
- package/models/TripStatuses.d.ts +15 -0
- package/models/TripStatuses.js +23 -0
- package/models/TripUpdateDto.d.ts +2 -0
- package/models/TripUpdateTripsStatusDto.d.ts +21 -1
- package/models/TripUpdateTripsStatusDto.js +23 -0
- package/models/VoucherCreateDto.d.ts +54 -0
- package/models/VoucherCreateDto.js +2 -0
- package/models/VoucherDto.d.ts +62 -0
- package/models/VoucherDto.js +2 -0
- package/models/VoucherUpdateDto.d.ts +54 -0
- package/models/VoucherUpdateDto.js +2 -0
- package/models/index.d.ts +7 -0
- package/models/index.js +7 -0
- package/package.json +1 -1
- package/services/AdminCustomerService.d.ts +2 -2
- package/services/AdminCustomerService.js +3 -3
- package/services/AdminDriversService.d.ts +2 -2
- package/services/AdminDriversService.js +3 -3
- package/services/AdminService.d.ts +2 -2
- package/services/AdminService.js +3 -3
- package/services/AdminTripsService.d.ts +10 -4
- package/services/AdminTripsService.js +13 -5
- package/services/CustomerTripsService.d.ts +6 -2
- package/services/CustomerTripsService.js +9 -3
- package/services/DriverTripsService.d.ts +6 -2
- package/services/DriverTripsService.js +9 -3
- package/services/ManualCustomerService.d.ts +45 -0
- package/services/ManualCustomerService.js +87 -0
- package/services/VoucherService.d.ts +61 -0
- package/services/VoucherService.js +116 -0
- package/services/index.d.ts +2 -0
- package/services/index.js +2 -0
- package/socketService.d.ts +6 -2
- package/socketService.js +18 -1
- package/sockets.md +260 -0
- package/types/realtime/active-trip.d.ts +26 -0
- package/types/realtime/active-trip.js +2 -0
- package/types/realtime/driver-status.d.ts +1 -0
- package/types/realtime/index.d.ts +1 -0
- package/types/realtime/index.js +1 -0
package/createClient.d.ts
CHANGED
|
@@ -17,4 +17,6 @@ export declare function createClient(baseUrl?: string): {
|
|
|
17
17
|
DriversService: typeof services.DriversService;
|
|
18
18
|
HealthService: typeof services.HealthService;
|
|
19
19
|
MainService: typeof services.MainService;
|
|
20
|
+
ManualCustomerService: typeof services.ManualCustomerService;
|
|
21
|
+
VoucherService: typeof services.VoucherService;
|
|
20
22
|
};
|
|
@@ -2,7 +2,7 @@ export type CustomerLoginDto = {
|
|
|
2
2
|
/**
|
|
3
3
|
* Email must be valid
|
|
4
4
|
*/
|
|
5
|
-
email
|
|
5
|
+
email?: string;
|
|
6
6
|
/**
|
|
7
7
|
* Phone must be valid
|
|
8
8
|
*/
|
|
@@ -10,7 +10,7 @@ export type CustomerLoginDto = {
|
|
|
10
10
|
/**
|
|
11
11
|
* Phone country code
|
|
12
12
|
*/
|
|
13
|
-
phoneCountryCode
|
|
13
|
+
phoneCountryCode?: string;
|
|
14
14
|
/**
|
|
15
15
|
* Customer's Password, must be at least 6 characters long
|
|
16
16
|
*/
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export type ManualCustomerCreateDto = {
|
|
2
|
+
/**
|
|
3
|
+
* First name
|
|
4
|
+
*/
|
|
5
|
+
firstName: string;
|
|
6
|
+
/**
|
|
7
|
+
* Last name
|
|
8
|
+
*/
|
|
9
|
+
lastName: string;
|
|
10
|
+
/**
|
|
11
|
+
* Phone country code
|
|
12
|
+
*/
|
|
13
|
+
phoneCountryCode: string;
|
|
14
|
+
/**
|
|
15
|
+
* Phone number
|
|
16
|
+
*/
|
|
17
|
+
phone: string;
|
|
18
|
+
/**
|
|
19
|
+
* Email
|
|
20
|
+
*/
|
|
21
|
+
email: string;
|
|
22
|
+
/**
|
|
23
|
+
* Address
|
|
24
|
+
*/
|
|
25
|
+
address: string;
|
|
26
|
+
/**
|
|
27
|
+
* Admin ID
|
|
28
|
+
*/
|
|
29
|
+
adminId?: number;
|
|
30
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
export type ManualCustomerDto = {
|
|
2
|
+
/**
|
|
3
|
+
* Manual customer ID
|
|
4
|
+
*/
|
|
5
|
+
id: number;
|
|
6
|
+
/**
|
|
7
|
+
* First name
|
|
8
|
+
*/
|
|
9
|
+
firstName: string;
|
|
10
|
+
/**
|
|
11
|
+
* Last name
|
|
12
|
+
*/
|
|
13
|
+
lastName: string;
|
|
14
|
+
/**
|
|
15
|
+
* Phone country code
|
|
16
|
+
*/
|
|
17
|
+
phoneCountryCode: string;
|
|
18
|
+
/**
|
|
19
|
+
* Phone number
|
|
20
|
+
*/
|
|
21
|
+
phone: string;
|
|
22
|
+
/**
|
|
23
|
+
* Email
|
|
24
|
+
*/
|
|
25
|
+
email: string;
|
|
26
|
+
/**
|
|
27
|
+
* Address
|
|
28
|
+
*/
|
|
29
|
+
address: string;
|
|
30
|
+
/**
|
|
31
|
+
* Admin ID
|
|
32
|
+
*/
|
|
33
|
+
adminId: number;
|
|
34
|
+
/**
|
|
35
|
+
* Created at timestamp
|
|
36
|
+
*/
|
|
37
|
+
createdAt: string;
|
|
38
|
+
/**
|
|
39
|
+
* Updated at timestamp
|
|
40
|
+
*/
|
|
41
|
+
updatedAt?: Record<string, any>;
|
|
42
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export type ManualCustomerUpdateDto = {
|
|
2
|
+
/**
|
|
3
|
+
* First name
|
|
4
|
+
*/
|
|
5
|
+
firstName?: string;
|
|
6
|
+
/**
|
|
7
|
+
* Last name
|
|
8
|
+
*/
|
|
9
|
+
lastName?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Phone country code
|
|
12
|
+
*/
|
|
13
|
+
phoneCountryCode?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Phone number
|
|
16
|
+
*/
|
|
17
|
+
phone?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Email
|
|
20
|
+
*/
|
|
21
|
+
email?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Address
|
|
24
|
+
*/
|
|
25
|
+
address?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Admin ID
|
|
28
|
+
*/
|
|
29
|
+
adminId?: number;
|
|
30
|
+
};
|
package/models/TripDto.d.ts
CHANGED
|
@@ -1,23 +1,27 @@
|
|
|
1
1
|
import type { AdminDto } from './AdminDto';
|
|
2
2
|
import type { CustomerDto } from './CustomerDto';
|
|
3
3
|
import type { DriverDto } from './DriverDto';
|
|
4
|
+
import type { ManualCustomerDto } from './ManualCustomerDto';
|
|
4
5
|
import type { PaymentDto } from './PaymentDto';
|
|
5
6
|
import type { TripLocationPointDto } from './TripLocationPointDto';
|
|
7
|
+
import type { VoucherDto } from './VoucherDto';
|
|
6
8
|
export type TripDto = {
|
|
7
9
|
/**
|
|
8
10
|
* Trip ID
|
|
9
11
|
*/
|
|
10
|
-
id
|
|
12
|
+
id?: number;
|
|
11
13
|
driverId?: Record<string, any> | null;
|
|
12
14
|
customerId?: Record<string, any> | null;
|
|
13
15
|
adminId?: Record<string, any> | null;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
16
|
+
voucherId?: Record<string, any> | null;
|
|
17
|
+
manualCustomerId?: Record<string, any> | null;
|
|
18
|
+
status?: TripDto.status;
|
|
19
|
+
tripSource?: Record<string, any>;
|
|
20
|
+
driverAssignmentMode?: Record<string, any>;
|
|
17
21
|
/**
|
|
18
22
|
* Origin location type
|
|
19
23
|
*/
|
|
20
|
-
originLocationType
|
|
24
|
+
originLocationType?: number;
|
|
21
25
|
/**
|
|
22
26
|
* Origin latitude
|
|
23
27
|
*/
|
|
@@ -37,7 +41,7 @@ export type TripDto = {
|
|
|
37
41
|
/**
|
|
38
42
|
* Destination location type
|
|
39
43
|
*/
|
|
40
|
-
destinationLocationType
|
|
44
|
+
destinationLocationType?: number;
|
|
41
45
|
/**
|
|
42
46
|
* Destination latitude
|
|
43
47
|
*/
|
|
@@ -78,6 +82,42 @@ export type TripDto = {
|
|
|
78
82
|
* Customer phone
|
|
79
83
|
*/
|
|
80
84
|
customerPhone?: Record<string, any> | null;
|
|
85
|
+
/**
|
|
86
|
+
* Distance Meters
|
|
87
|
+
*/
|
|
88
|
+
distanceMeters?: Record<string, any> | null;
|
|
89
|
+
/**
|
|
90
|
+
* Total Milliseconds
|
|
91
|
+
*/
|
|
92
|
+
totalMilliseconds?: Record<string, any> | null;
|
|
93
|
+
/**
|
|
94
|
+
* Driving Milliseconds
|
|
95
|
+
*/
|
|
96
|
+
drivingMilliseconds?: Record<string, any> | null;
|
|
97
|
+
/**
|
|
98
|
+
* Paused Milliseconds
|
|
99
|
+
*/
|
|
100
|
+
pausedMilliseconds?: Record<string, any> | null;
|
|
101
|
+
/**
|
|
102
|
+
* Paused Traffic Milliseconds
|
|
103
|
+
*/
|
|
104
|
+
pausedTrafficMilliseconds?: Record<string, any> | null;
|
|
105
|
+
/**
|
|
106
|
+
* Pickup cost
|
|
107
|
+
*/
|
|
108
|
+
pickupCost?: Record<string, any> | null;
|
|
109
|
+
/**
|
|
110
|
+
* Distance cost
|
|
111
|
+
*/
|
|
112
|
+
distanceCost?: Record<string, any> | null;
|
|
113
|
+
/**
|
|
114
|
+
* Waiting cost
|
|
115
|
+
*/
|
|
116
|
+
waitingCost?: Record<string, any> | null;
|
|
117
|
+
/**
|
|
118
|
+
* Traffic delay cost
|
|
119
|
+
*/
|
|
120
|
+
trafficDelayCost?: Record<string, any> | null;
|
|
81
121
|
/**
|
|
82
122
|
* Total trip cost
|
|
83
123
|
*/
|
|
@@ -105,4 +145,29 @@ export type TripDto = {
|
|
|
105
145
|
* Payments associated with the trip
|
|
106
146
|
*/
|
|
107
147
|
payments?: Array<PaymentDto> | null;
|
|
148
|
+
/**
|
|
149
|
+
* Voucher information
|
|
150
|
+
*/
|
|
151
|
+
voucher?: VoucherDto | null;
|
|
152
|
+
/**
|
|
153
|
+
* Manual customer information
|
|
154
|
+
*/
|
|
155
|
+
manualCustomer?: ManualCustomerDto | null;
|
|
108
156
|
};
|
|
157
|
+
export declare namespace TripDto {
|
|
158
|
+
enum status {
|
|
159
|
+
REQUESTED = "REQUESTED",
|
|
160
|
+
DRIVER_SEARCHING = "DRIVER_SEARCHING",
|
|
161
|
+
DRIVER_ASSIGNED = "DRIVER_ASSIGNED",
|
|
162
|
+
DRIVER_ASSIGNED_PENDING = "DRIVER_ASSIGNED_PENDING",
|
|
163
|
+
DRIVER_ONWAY = "DRIVER_ONWAY",
|
|
164
|
+
DRIVER_AT_PICKUP = "DRIVER_AT_PICKUP",
|
|
165
|
+
IN_PROGRESS = "IN_PROGRESS",
|
|
166
|
+
PAUSED = "PAUSED",
|
|
167
|
+
PAUSED_TRAFFIC = "PAUSED_TRAFFIC",
|
|
168
|
+
COMPLETED = "COMPLETED",
|
|
169
|
+
CANCELED_PASSENGER = "CANCELED_PASSENGER",
|
|
170
|
+
CANCELED_DRIVER = "CANCELED_DRIVER",
|
|
171
|
+
CANCELED_ADMIN = "CANCELED_ADMIN"
|
|
172
|
+
}
|
|
173
|
+
}
|
package/models/TripDto.js
CHANGED
|
@@ -1,2 +1,22 @@
|
|
|
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["REQUESTED"] = "REQUESTED";
|
|
9
|
+
status["DRIVER_SEARCHING"] = "DRIVER_SEARCHING";
|
|
10
|
+
status["DRIVER_ASSIGNED"] = "DRIVER_ASSIGNED";
|
|
11
|
+
status["DRIVER_ASSIGNED_PENDING"] = "DRIVER_ASSIGNED_PENDING";
|
|
12
|
+
status["DRIVER_ONWAY"] = "DRIVER_ONWAY";
|
|
13
|
+
status["DRIVER_AT_PICKUP"] = "DRIVER_AT_PICKUP";
|
|
14
|
+
status["IN_PROGRESS"] = "IN_PROGRESS";
|
|
15
|
+
status["PAUSED"] = "PAUSED";
|
|
16
|
+
status["PAUSED_TRAFFIC"] = "PAUSED_TRAFFIC";
|
|
17
|
+
status["COMPLETED"] = "COMPLETED";
|
|
18
|
+
status["CANCELED_PASSENGER"] = "CANCELED_PASSENGER";
|
|
19
|
+
status["CANCELED_DRIVER"] = "CANCELED_DRIVER";
|
|
20
|
+
status["CANCELED_ADMIN"] = "CANCELED_ADMIN";
|
|
21
|
+
})(status = TripDto.status || (TripDto.status = {}));
|
|
22
|
+
})(TripDto || (exports.TripDto = TripDto = {}));
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare enum TripStatuses {
|
|
2
|
+
REQUESTED = "REQUESTED",
|
|
3
|
+
DRIVER_SEARCHING = "DRIVER_SEARCHING",
|
|
4
|
+
DRIVER_ASSIGNED = "DRIVER_ASSIGNED",
|
|
5
|
+
DRIVER_ASSIGNED_PENDING = "DRIVER_ASSIGNED_PENDING",
|
|
6
|
+
DRIVER_ONWAY = "DRIVER_ONWAY",
|
|
7
|
+
DRIVER_AT_PICKUP = "DRIVER_AT_PICKUP",
|
|
8
|
+
IN_PROGRESS = "IN_PROGRESS",
|
|
9
|
+
PAUSED = "PAUSED",
|
|
10
|
+
PAUSED_TRAFFIC = "PAUSED_TRAFFIC",
|
|
11
|
+
COMPLETED = "COMPLETED",
|
|
12
|
+
CANCELED_PASSENGER = "CANCELED_PASSENGER",
|
|
13
|
+
CANCELED_DRIVER = "CANCELED_DRIVER",
|
|
14
|
+
CANCELED_ADMIN = "CANCELED_ADMIN"
|
|
15
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TripStatuses = void 0;
|
|
4
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
5
|
+
/* istanbul ignore file */
|
|
6
|
+
/* tslint:disable */
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
var TripStatuses;
|
|
9
|
+
(function (TripStatuses) {
|
|
10
|
+
TripStatuses["REQUESTED"] = "REQUESTED";
|
|
11
|
+
TripStatuses["DRIVER_SEARCHING"] = "DRIVER_SEARCHING";
|
|
12
|
+
TripStatuses["DRIVER_ASSIGNED"] = "DRIVER_ASSIGNED";
|
|
13
|
+
TripStatuses["DRIVER_ASSIGNED_PENDING"] = "DRIVER_ASSIGNED_PENDING";
|
|
14
|
+
TripStatuses["DRIVER_ONWAY"] = "DRIVER_ONWAY";
|
|
15
|
+
TripStatuses["DRIVER_AT_PICKUP"] = "DRIVER_AT_PICKUP";
|
|
16
|
+
TripStatuses["IN_PROGRESS"] = "IN_PROGRESS";
|
|
17
|
+
TripStatuses["PAUSED"] = "PAUSED";
|
|
18
|
+
TripStatuses["PAUSED_TRAFFIC"] = "PAUSED_TRAFFIC";
|
|
19
|
+
TripStatuses["COMPLETED"] = "COMPLETED";
|
|
20
|
+
TripStatuses["CANCELED_PASSENGER"] = "CANCELED_PASSENGER";
|
|
21
|
+
TripStatuses["CANCELED_DRIVER"] = "CANCELED_DRIVER";
|
|
22
|
+
TripStatuses["CANCELED_ADMIN"] = "CANCELED_ADMIN";
|
|
23
|
+
})(TripStatuses || (exports.TripStatuses = TripStatuses = {}));
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export type TripUpdateDto = {
|
|
2
2
|
driverId?: Record<string, any> | null;
|
|
3
3
|
customerId?: Record<string, any> | null;
|
|
4
|
+
voucherId?: Record<string, any> | null;
|
|
5
|
+
manualCustomerId?: Record<string, any> | null;
|
|
4
6
|
origin?: Record<string, any> | null;
|
|
5
7
|
/**
|
|
6
8
|
* Origin address
|
|
@@ -2,5 +2,25 @@ export type TripUpdateTripsStatusDto = {
|
|
|
2
2
|
/**
|
|
3
3
|
* Status to update the trip to
|
|
4
4
|
*/
|
|
5
|
-
status:
|
|
5
|
+
status: TripUpdateTripsStatusDto.status;
|
|
6
6
|
};
|
|
7
|
+
export declare namespace TripUpdateTripsStatusDto {
|
|
8
|
+
/**
|
|
9
|
+
* Status to update the trip to
|
|
10
|
+
*/
|
|
11
|
+
enum status {
|
|
12
|
+
REQUESTED = "REQUESTED",
|
|
13
|
+
DRIVER_SEARCHING = "DRIVER_SEARCHING",
|
|
14
|
+
DRIVER_ASSIGNED = "DRIVER_ASSIGNED",
|
|
15
|
+
DRIVER_ASSIGNED_PENDING = "DRIVER_ASSIGNED_PENDING",
|
|
16
|
+
DRIVER_ONWAY = "DRIVER_ONWAY",
|
|
17
|
+
DRIVER_AT_PICKUP = "DRIVER_AT_PICKUP",
|
|
18
|
+
IN_PROGRESS = "IN_PROGRESS",
|
|
19
|
+
PAUSED = "PAUSED",
|
|
20
|
+
PAUSED_TRAFFIC = "PAUSED_TRAFFIC",
|
|
21
|
+
COMPLETED = "COMPLETED",
|
|
22
|
+
CANCELED_PASSENGER = "CANCELED_PASSENGER",
|
|
23
|
+
CANCELED_DRIVER = "CANCELED_DRIVER",
|
|
24
|
+
CANCELED_ADMIN = "CANCELED_ADMIN"
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -1,2 +1,25 @@
|
|
|
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["REQUESTED"] = "REQUESTED";
|
|
12
|
+
status["DRIVER_SEARCHING"] = "DRIVER_SEARCHING";
|
|
13
|
+
status["DRIVER_ASSIGNED"] = "DRIVER_ASSIGNED";
|
|
14
|
+
status["DRIVER_ASSIGNED_PENDING"] = "DRIVER_ASSIGNED_PENDING";
|
|
15
|
+
status["DRIVER_ONWAY"] = "DRIVER_ONWAY";
|
|
16
|
+
status["DRIVER_AT_PICKUP"] = "DRIVER_AT_PICKUP";
|
|
17
|
+
status["IN_PROGRESS"] = "IN_PROGRESS";
|
|
18
|
+
status["PAUSED"] = "PAUSED";
|
|
19
|
+
status["PAUSED_TRAFFIC"] = "PAUSED_TRAFFIC";
|
|
20
|
+
status["COMPLETED"] = "COMPLETED";
|
|
21
|
+
status["CANCELED_PASSENGER"] = "CANCELED_PASSENGER";
|
|
22
|
+
status["CANCELED_DRIVER"] = "CANCELED_DRIVER";
|
|
23
|
+
status["CANCELED_ADMIN"] = "CANCELED_ADMIN";
|
|
24
|
+
})(status = TripUpdateTripsStatusDto.status || (TripUpdateTripsStatusDto.status = {}));
|
|
25
|
+
})(TripUpdateTripsStatusDto || (exports.TripUpdateTripsStatusDto = TripUpdateTripsStatusDto = {}));
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
export type VoucherCreateDto = {
|
|
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
|
+
};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
export type VoucherDto = {
|
|
2
|
+
/**
|
|
3
|
+
* Voucher ID
|
|
4
|
+
*/
|
|
5
|
+
id: number;
|
|
6
|
+
/**
|
|
7
|
+
* Card number
|
|
8
|
+
*/
|
|
9
|
+
cardNumber: string;
|
|
10
|
+
/**
|
|
11
|
+
* Voucher status
|
|
12
|
+
*/
|
|
13
|
+
status: string;
|
|
14
|
+
/**
|
|
15
|
+
* Program name
|
|
16
|
+
*/
|
|
17
|
+
program: string;
|
|
18
|
+
/**
|
|
19
|
+
* Senior center
|
|
20
|
+
*/
|
|
21
|
+
seniorCenter: string;
|
|
22
|
+
/**
|
|
23
|
+
* First name
|
|
24
|
+
*/
|
|
25
|
+
firstName: string;
|
|
26
|
+
/**
|
|
27
|
+
* Last name
|
|
28
|
+
*/
|
|
29
|
+
lastName: string;
|
|
30
|
+
/**
|
|
31
|
+
* Middle name
|
|
32
|
+
*/
|
|
33
|
+
middleName?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Address
|
|
36
|
+
*/
|
|
37
|
+
address: string;
|
|
38
|
+
/**
|
|
39
|
+
* Apartment number
|
|
40
|
+
*/
|
|
41
|
+
apartmentNumber?: string;
|
|
42
|
+
/**
|
|
43
|
+
* City
|
|
44
|
+
*/
|
|
45
|
+
city: string;
|
|
46
|
+
/**
|
|
47
|
+
* State
|
|
48
|
+
*/
|
|
49
|
+
state: string;
|
|
50
|
+
/**
|
|
51
|
+
* Zip code
|
|
52
|
+
*/
|
|
53
|
+
zipCode: string;
|
|
54
|
+
/**
|
|
55
|
+
* Rider phone
|
|
56
|
+
*/
|
|
57
|
+
riderPhone: string;
|
|
58
|
+
/**
|
|
59
|
+
* Created at timestamp
|
|
60
|
+
*/
|
|
61
|
+
createdAt: string;
|
|
62
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
export type VoucherUpdateDto = {
|
|
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
|
@@ -21,6 +21,9 @@ export * from './DriverTripActions';
|
|
|
21
21
|
export * from './DriverUpdateDto';
|
|
22
22
|
export * from './GenerateResetCodeDto';
|
|
23
23
|
export * from './GenerateVerificationCodeDto';
|
|
24
|
+
export * from './ManualCustomerCreateDto';
|
|
25
|
+
export * from './ManualCustomerDto';
|
|
26
|
+
export * from './ManualCustomerUpdateDto';
|
|
24
27
|
export * from './MessageResponseDto';
|
|
25
28
|
export * from './OrderDto';
|
|
26
29
|
export * from './PaymentDto';
|
|
@@ -29,8 +32,12 @@ export * from './TokensDto';
|
|
|
29
32
|
export * from './TripAssignDriverDto';
|
|
30
33
|
export * from './TripDto';
|
|
31
34
|
export * from './TripLocationPointDto';
|
|
35
|
+
export * from './TripStatuses';
|
|
32
36
|
export * from './TripUpdateDriverAssignmentModeDto';
|
|
33
37
|
export * from './TripUpdateDto';
|
|
34
38
|
export * from './TripUpdateTripsStatusDto';
|
|
35
39
|
export * from './UpdateFcmTokenDto';
|
|
36
40
|
export * from './ValidateResetCodeDto';
|
|
41
|
+
export * from './VoucherCreateDto';
|
|
42
|
+
export * from './VoucherDto';
|
|
43
|
+
export * from './VoucherUpdateDto';
|
package/models/index.js
CHANGED
|
@@ -37,6 +37,9 @@ __exportStar(require("./DriverTripActions"), exports);
|
|
|
37
37
|
__exportStar(require("./DriverUpdateDto"), exports);
|
|
38
38
|
__exportStar(require("./GenerateResetCodeDto"), exports);
|
|
39
39
|
__exportStar(require("./GenerateVerificationCodeDto"), exports);
|
|
40
|
+
__exportStar(require("./ManualCustomerCreateDto"), exports);
|
|
41
|
+
__exportStar(require("./ManualCustomerDto"), exports);
|
|
42
|
+
__exportStar(require("./ManualCustomerUpdateDto"), exports);
|
|
40
43
|
__exportStar(require("./MessageResponseDto"), exports);
|
|
41
44
|
__exportStar(require("./OrderDto"), exports);
|
|
42
45
|
__exportStar(require("./PaymentDto"), exports);
|
|
@@ -45,8 +48,12 @@ __exportStar(require("./TokensDto"), exports);
|
|
|
45
48
|
__exportStar(require("./TripAssignDriverDto"), exports);
|
|
46
49
|
__exportStar(require("./TripDto"), exports);
|
|
47
50
|
__exportStar(require("./TripLocationPointDto"), exports);
|
|
51
|
+
__exportStar(require("./TripStatuses"), exports);
|
|
48
52
|
__exportStar(require("./TripUpdateDriverAssignmentModeDto"), exports);
|
|
49
53
|
__exportStar(require("./TripUpdateDto"), exports);
|
|
50
54
|
__exportStar(require("./TripUpdateTripsStatusDto"), exports);
|
|
51
55
|
__exportStar(require("./UpdateFcmTokenDto"), exports);
|
|
52
56
|
__exportStar(require("./ValidateResetCodeDto"), exports);
|
|
57
|
+
__exportStar(require("./VoucherCreateDto"), exports);
|
|
58
|
+
__exportStar(require("./VoucherDto"), exports);
|
|
59
|
+
__exportStar(require("./VoucherUpdateDto"), exports);
|
package/package.json
CHANGED
|
@@ -14,7 +14,7 @@ export declare class AdminCustomerService {
|
|
|
14
14
|
static create(requestBody: CustomerRegisterDto): CancelablePromise<CustomerDto>;
|
|
15
15
|
/**
|
|
16
16
|
* Get all customers
|
|
17
|
-
* @param
|
|
17
|
+
* @param q Text to search for in name, surname, phone number or email
|
|
18
18
|
* @param order Sorting options
|
|
19
19
|
* @param id Filter by id
|
|
20
20
|
* @param firstName Filter by first name
|
|
@@ -26,7 +26,7 @@ export declare class AdminCustomerService {
|
|
|
26
26
|
* @returns CustomerDto List of customers
|
|
27
27
|
* @throws ApiError
|
|
28
28
|
*/
|
|
29
|
-
static findAll(
|
|
29
|
+
static findAll(q?: string, order?: OrderDto, id?: number, firstName?: string, lastName?: string, email?: string, phone?: string, phoneCountryCode?: string, isVerified?: boolean): CancelablePromise<Array<CustomerDto>>;
|
|
30
30
|
/**
|
|
31
31
|
* Get a single customer by ID
|
|
32
32
|
* @param id
|
|
@@ -20,7 +20,7 @@ class AdminCustomerService {
|
|
|
20
20
|
}
|
|
21
21
|
/**
|
|
22
22
|
* Get all customers
|
|
23
|
-
* @param
|
|
23
|
+
* @param q Text to search for in name, surname, phone number or email
|
|
24
24
|
* @param order Sorting options
|
|
25
25
|
* @param id Filter by id
|
|
26
26
|
* @param firstName Filter by first name
|
|
@@ -32,12 +32,12 @@ class AdminCustomerService {
|
|
|
32
32
|
* @returns CustomerDto List of customers
|
|
33
33
|
* @throws ApiError
|
|
34
34
|
*/
|
|
35
|
-
static findAll(
|
|
35
|
+
static findAll(q, order, id, firstName, lastName, email, phone, phoneCountryCode, isVerified) {
|
|
36
36
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
37
37
|
method: 'GET',
|
|
38
38
|
url: '/admins/customers',
|
|
39
39
|
query: {
|
|
40
|
-
'
|
|
40
|
+
'q': q,
|
|
41
41
|
'order': order,
|
|
42
42
|
'id': id,
|
|
43
43
|
'firstName': firstName,
|