@dapex-tech/elite-online-services 0.0.15 → 0.0.17

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 (52) hide show
  1. package/createClient.d.ts +8 -0
  2. package/models/AddPaymentMethodDto.d.ts +18 -0
  3. package/models/AddPaymentMethodDto.js +2 -0
  4. package/models/ChargeTripByCardDto.d.ts +22 -0
  5. package/models/ChargeTripByCardDto.js +2 -0
  6. package/models/ChargeTripByCashDto.d.ts +10 -0
  7. package/models/ChargeTripByCashDto.js +2 -0
  8. package/models/ChargeTripDto.d.ts +10 -0
  9. package/models/ChargeTripDto.js +2 -0
  10. package/models/ManualCustomerCreateDto.d.ts +30 -0
  11. package/models/ManualCustomerCreateDto.js +2 -0
  12. package/models/ManualCustomerDto.d.ts +42 -0
  13. package/models/ManualCustomerDto.js +2 -0
  14. package/models/ManualCustomerUpdateDto.d.ts +30 -0
  15. package/models/ManualCustomerUpdateDto.js +2 -0
  16. package/models/PaymentDto.d.ts +8 -4
  17. package/models/SearchCustomerDto.d.ts +41 -0
  18. package/models/SearchCustomerDto.js +11 -0
  19. package/models/TripDto.d.ts +29 -2
  20. package/models/TripDto.js +8 -0
  21. package/models/TripUpdateDto.d.ts +19 -0
  22. package/models/TripUpdateDto.js +12 -0
  23. package/models/index.d.ts +8 -0
  24. package/models/index.js +8 -0
  25. package/package.json +1 -1
  26. package/services/AdminService.d.ts +9 -0
  27. package/services/AdminService.js +17 -0
  28. package/services/AdminSettingsService.d.ts +9 -0
  29. package/services/AdminSettingsService.js +19 -0
  30. package/services/AdminTripsService.d.ts +9 -0
  31. package/services/AdminTripsService.js +19 -0
  32. package/services/AdminVouchersService.d.ts +61 -0
  33. package/services/AdminVouchersService.js +116 -0
  34. package/services/CustomerPaymentsService.d.ts +65 -0
  35. package/services/CustomerPaymentsService.js +149 -0
  36. package/services/CustomerSettingsService.d.ts +9 -0
  37. package/services/CustomerSettingsService.js +19 -0
  38. package/services/DriverPaymentsService.d.ts +29 -0
  39. package/services/DriverPaymentsService.js +63 -0
  40. package/services/DriverSettingsService.d.ts +9 -0
  41. package/services/DriverSettingsService.js +19 -0
  42. package/services/ManualCustomerService.d.ts +45 -0
  43. package/services/ManualCustomerService.js +87 -0
  44. package/services/PaymentsService.d.ts +64 -0
  45. package/services/PaymentsService.js +149 -0
  46. package/services/index.d.ts +8 -0
  47. package/services/index.js +8 -0
  48. package/socketService.d.ts +3 -0
  49. package/socketService.js +14 -0
  50. package/sockets.md +260 -0
  51. package/types/realtime/active-trip.d.ts +2 -0
  52. package/types/realtime/driver-status.d.ts +1 -1
package/createClient.d.ts CHANGED
@@ -7,15 +7,23 @@ export declare function createClient(baseUrl?: string): {
7
7
  AdminCustomerService: typeof services.AdminCustomerService;
8
8
  AdminDriversService: typeof services.AdminDriversService;
9
9
  AdminService: typeof services.AdminService;
10
+ AdminSettingsService: typeof services.AdminSettingsService;
10
11
  AdminTripsService: typeof services.AdminTripsService;
12
+ AdminVouchersService: typeof services.AdminVouchersService;
11
13
  CustomerLocationsService: typeof services.CustomerLocationsService;
14
+ CustomerPaymentsService: typeof services.CustomerPaymentsService;
15
+ CustomerSettingsService: typeof services.CustomerSettingsService;
12
16
  CustomerTripsService: typeof services.CustomerTripsService;
13
17
  CustomersAuthService: typeof services.CustomersAuthService;
14
18
  CustomersService: typeof services.CustomersService;
15
19
  DriverAuthService: typeof services.DriverAuthService;
20
+ DriverPaymentsService: typeof services.DriverPaymentsService;
21
+ DriverSettingsService: typeof services.DriverSettingsService;
16
22
  DriverTripsService: typeof services.DriverTripsService;
17
23
  DriversService: typeof services.DriversService;
18
24
  HealthService: typeof services.HealthService;
19
25
  MainService: typeof services.MainService;
26
+ ManualCustomerService: typeof services.ManualCustomerService;
27
+ PaymentsService: typeof services.PaymentsService;
20
28
  VoucherService: typeof services.VoucherService;
21
29
  };
@@ -0,0 +1,18 @@
1
+ export type AddPaymentMethodDto = {
2
+ /**
3
+ * Card number
4
+ */
5
+ cardNumber: string;
6
+ /**
7
+ * Expiration date in MM/YY format
8
+ */
9
+ expirationDate: string;
10
+ /**
11
+ * Card CVV (use 900 for successful CVV match in Authorize.net sandbox)
12
+ */
13
+ cvv: string;
14
+ /**
15
+ * Set as default payment method
16
+ */
17
+ isDefault?: boolean;
18
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,22 @@
1
+ export type ChargeTripByCardDto = {
2
+ /**
3
+ * Trip ID to charge
4
+ */
5
+ tripId: number;
6
+ /**
7
+ * Amount to charge
8
+ */
9
+ amount: number;
10
+ /**
11
+ * Card number
12
+ */
13
+ cardNumber: string;
14
+ /**
15
+ * Expiration date in MM/YY
16
+ */
17
+ expirationDate: string;
18
+ /**
19
+ * Card CVV
20
+ */
21
+ cvv: string;
22
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ export type ChargeTripByCashDto = {
2
+ /**
3
+ * Trip ID to charge
4
+ */
5
+ tripId: number;
6
+ /**
7
+ * Amount to charge
8
+ */
9
+ amount: number;
10
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ export type ChargeTripDto = {
2
+ /**
3
+ * Trip ID to charge
4
+ */
5
+ tripId: number;
6
+ /**
7
+ * Amount to charge
8
+ */
9
+ amount: number;
10
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -8,11 +8,15 @@ export type PaymentDto = {
8
8
  */
9
9
  tripId?: Record<string, any> | null;
10
10
  /**
11
- * Payment method
11
+ * Payment type
12
12
  */
13
- paymentMethod?: Record<string, any> | null;
13
+ paymentType?: Record<string, any> | null;
14
14
  /**
15
- * Payment status
15
+ * Payment source
16
16
  */
17
- status?: Record<string, any> | null;
17
+ paymentSource?: Record<string, any> | null;
18
+ /**
19
+ * Payment amount
20
+ */
21
+ amount?: Record<string, any> | null;
18
22
  };
@@ -0,0 +1,41 @@
1
+ export type SearchCustomerDto = {
2
+ /**
3
+ * Composed unique id: `${customerType}:${sourceId}`
4
+ */
5
+ id: string;
6
+ customerType: SearchCustomerDto.customerType;
7
+ /**
8
+ * Present only for manual customers
9
+ */
10
+ manualCustomerId?: number;
11
+ /**
12
+ * Present only for senior vouchers
13
+ */
14
+ voucherId?: number;
15
+ firstName?: string;
16
+ lastName?: string;
17
+ /**
18
+ * Phone number. Manual customers use `phone` (digits) and may include `phoneCountryCode`; vouchers use `riderPhone` mapped into `phone`.
19
+ */
20
+ phone?: string;
21
+ /**
22
+ * Manual customer phone country code (if available)
23
+ */
24
+ phoneCountryCode?: string;
25
+ email?: string;
26
+ address?: string;
27
+ /**
28
+ * Created at timestamp
29
+ */
30
+ createdAt?: string;
31
+ cardNumber?: string;
32
+ program?: string;
33
+ seniorCenter?: string;
34
+ status?: string;
35
+ };
36
+ export declare namespace SearchCustomerDto {
37
+ enum customerType {
38
+ MANUAL_CUSTOMER = "MANUAL_CUSTOMER",
39
+ SENIOR_VOUCHER = "SENIOR_VOUCHER"
40
+ }
41
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SearchCustomerDto = void 0;
4
+ var SearchCustomerDto;
5
+ (function (SearchCustomerDto) {
6
+ let customerType;
7
+ (function (customerType) {
8
+ customerType["MANUAL_CUSTOMER"] = "MANUAL_CUSTOMER";
9
+ customerType["SENIOR_VOUCHER"] = "SENIOR_VOUCHER";
10
+ })(customerType = SearchCustomerDto.customerType || (SearchCustomerDto.customerType = {}));
11
+ })(SearchCustomerDto || (exports.SearchCustomerDto = SearchCustomerDto = {}));
@@ -1,8 +1,10 @@
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
@@ -11,9 +13,19 @@ export type TripDto = {
11
13
  driverId?: Record<string, any> | null;
12
14
  customerId?: Record<string, any> | null;
13
15
  adminId?: Record<string, any> | null;
16
+ voucherId?: Record<string, any> | null;
17
+ manualCustomerId?: Record<string, any> | null;
14
18
  status?: TripDto.status;
15
19
  tripSource?: Record<string, any>;
16
20
  driverAssignmentMode?: Record<string, any>;
21
+ /**
22
+ * Payment type (CASH or DEBIT_CREDIT_CARD)
23
+ */
24
+ paymentType?: TripDto.paymentType | null;
25
+ /**
26
+ * Customer payment method ID for card payments
27
+ */
28
+ customerPaymentMethodId?: Record<string, any> | null;
17
29
  /**
18
30
  * Origin location type
19
31
  */
@@ -138,9 +150,17 @@ export type TripDto = {
138
150
  */
139
151
  locationPoints?: Array<TripLocationPointDto> | null;
140
152
  /**
141
- * Payments associated with the trip
153
+ * Payment associated with the trip
154
+ */
155
+ payment?: PaymentDto | null;
156
+ /**
157
+ * Voucher information
142
158
  */
143
- payments?: Array<PaymentDto> | null;
159
+ voucher?: VoucherDto | null;
160
+ /**
161
+ * Manual customer information
162
+ */
163
+ manualCustomer?: ManualCustomerDto | null;
144
164
  };
145
165
  export declare namespace TripDto {
146
166
  enum status {
@@ -158,4 +178,11 @@ export declare namespace TripDto {
158
178
  CANCELED_DRIVER = "CANCELED_DRIVER",
159
179
  CANCELED_ADMIN = "CANCELED_ADMIN"
160
180
  }
181
+ /**
182
+ * Payment type (CASH or DEBIT_CREDIT_CARD)
183
+ */
184
+ enum paymentType {
185
+ CASH = "CASH",
186
+ DEBIT_CREDIT_CARD = "DEBIT_CREDIT_CARD"
187
+ }
161
188
  }
package/models/TripDto.js CHANGED
@@ -19,4 +19,12 @@ var TripDto;
19
19
  status["CANCELED_DRIVER"] = "CANCELED_DRIVER";
20
20
  status["CANCELED_ADMIN"] = "CANCELED_ADMIN";
21
21
  })(status = TripDto.status || (TripDto.status = {}));
22
+ /**
23
+ * Payment type (CASH or DEBIT_CREDIT_CARD)
24
+ */
25
+ let paymentType;
26
+ (function (paymentType) {
27
+ paymentType["CASH"] = "CASH";
28
+ paymentType["DEBIT_CREDIT_CARD"] = "DEBIT_CREDIT_CARD";
29
+ })(paymentType = TripDto.paymentType || (TripDto.paymentType = {}));
22
30
  })(TripDto || (exports.TripDto = TripDto = {}));
@@ -1,6 +1,16 @@
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;
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;
4
14
  origin?: Record<string, any> | null;
5
15
  /**
6
16
  * Origin address
@@ -36,3 +46,12 @@ export type TripUpdateDto = {
36
46
  */
37
47
  destinationLongitude?: Record<string, any> | null;
38
48
  };
49
+ export declare namespace TripUpdateDto {
50
+ /**
51
+ * Payment type (CASH or DEBIT_CREDIT_CARD)
52
+ */
53
+ enum paymentType {
54
+ CASH = "CASH",
55
+ DEBIT_CREDIT_CARD = "DEBIT_CREDIT_CARD"
56
+ }
57
+ }
@@ -1,2 +1,14 @@
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 = TripUpdateDto.paymentType || (TripUpdateDto.paymentType = {}));
14
+ })(TripUpdateDto || (exports.TripUpdateDto = TripUpdateDto = {}));
package/models/index.d.ts CHANGED
@@ -1,8 +1,12 @@
1
+ export * from './AddPaymentMethodDto';
1
2
  export * from './AdminCreateDto';
2
3
  export * from './AdminDto';
3
4
  export * from './AdminLoginDto';
4
5
  export * from './AdminLoginResponseDto';
5
6
  export * from './AdminUpdateDto';
7
+ export * from './ChargeTripByCardDto';
8
+ export * from './ChargeTripByCashDto';
9
+ export * from './ChargeTripDto';
6
10
  export * from './CustomerDto';
7
11
  export * from './CustomerLocationCreateDto';
8
12
  export * from './CustomerLocationDto';
@@ -21,10 +25,14 @@ export * from './DriverTripActions';
21
25
  export * from './DriverUpdateDto';
22
26
  export * from './GenerateResetCodeDto';
23
27
  export * from './GenerateVerificationCodeDto';
28
+ export * from './ManualCustomerCreateDto';
29
+ export * from './ManualCustomerDto';
30
+ export * from './ManualCustomerUpdateDto';
24
31
  export * from './MessageResponseDto';
25
32
  export * from './OrderDto';
26
33
  export * from './PaymentDto';
27
34
  export * from './ResetPasswordDto';
35
+ export * from './SearchCustomerDto';
28
36
  export * from './TokensDto';
29
37
  export * from './TripAssignDriverDto';
30
38
  export * from './TripDto';
package/models/index.js CHANGED
@@ -14,11 +14,15 @@ 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("./AddPaymentMethodDto"), exports);
17
18
  __exportStar(require("./AdminCreateDto"), exports);
18
19
  __exportStar(require("./AdminDto"), exports);
19
20
  __exportStar(require("./AdminLoginDto"), exports);
20
21
  __exportStar(require("./AdminLoginResponseDto"), exports);
21
22
  __exportStar(require("./AdminUpdateDto"), exports);
23
+ __exportStar(require("./ChargeTripByCardDto"), exports);
24
+ __exportStar(require("./ChargeTripByCashDto"), exports);
25
+ __exportStar(require("./ChargeTripDto"), exports);
22
26
  __exportStar(require("./CustomerDto"), exports);
23
27
  __exportStar(require("./CustomerLocationCreateDto"), exports);
24
28
  __exportStar(require("./CustomerLocationDto"), exports);
@@ -37,10 +41,14 @@ __exportStar(require("./DriverTripActions"), exports);
37
41
  __exportStar(require("./DriverUpdateDto"), exports);
38
42
  __exportStar(require("./GenerateResetCodeDto"), exports);
39
43
  __exportStar(require("./GenerateVerificationCodeDto"), exports);
44
+ __exportStar(require("./ManualCustomerCreateDto"), exports);
45
+ __exportStar(require("./ManualCustomerDto"), exports);
46
+ __exportStar(require("./ManualCustomerUpdateDto"), exports);
40
47
  __exportStar(require("./MessageResponseDto"), exports);
41
48
  __exportStar(require("./OrderDto"), exports);
42
49
  __exportStar(require("./PaymentDto"), exports);
43
50
  __exportStar(require("./ResetPasswordDto"), exports);
51
+ __exportStar(require("./SearchCustomerDto"), exports);
44
52
  __exportStar(require("./TokensDto"), exports);
45
53
  __exportStar(require("./TripAssignDriverDto"), exports);
46
54
  __exportStar(require("./TripDto"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dapex-tech/elite-online-services",
3
- "version": "0.0.15",
3
+ "version": "0.0.17",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "private": false,
@@ -3,6 +3,7 @@ import type { AdminDto } from '../models/AdminDto';
3
3
  import type { AdminUpdateDto } from '../models/AdminUpdateDto';
4
4
  import type { MessageResponseDto } from '../models/MessageResponseDto';
5
5
  import type { OrderDto } from '../models/OrderDto';
6
+ import type { SearchCustomerDto } from '../models/SearchCustomerDto';
6
7
  import type { CancelablePromise } from '../core/CancelablePromise';
7
8
  export declare class AdminService {
8
9
  /**
@@ -20,6 +21,14 @@ export declare class AdminService {
20
21
  * @throws ApiError
21
22
  */
22
23
  static findAll(q?: string, order?: OrderDto): CancelablePromise<Array<AdminDto>>;
24
+ /**
25
+ * Search customers (manual customers + senior vouchers)
26
+ * @param q Text to search for in customers (manual customers + vouchers)
27
+ * @param order Sorting options (combined results are ultimately sorted by createdAt)
28
+ * @returns SearchCustomerDto List of customers (manual customers + senior vouchers)
29
+ * @throws ApiError
30
+ */
31
+ static searchCustomers(q?: string, order?: OrderDto): CancelablePromise<Array<SearchCustomerDto>>;
23
32
  /**
24
33
  * Get a single admin by ID
25
34
  * @param id
@@ -35,6 +35,23 @@ class AdminService {
35
35
  },
36
36
  });
37
37
  }
38
+ /**
39
+ * Search customers (manual customers + senior vouchers)
40
+ * @param q Text to search for in customers (manual customers + vouchers)
41
+ * @param order Sorting options (combined results are ultimately sorted by createdAt)
42
+ * @returns SearchCustomerDto List of customers (manual customers + senior vouchers)
43
+ * @throws ApiError
44
+ */
45
+ static searchCustomers(q, order) {
46
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
47
+ method: 'GET',
48
+ url: '/admins/search-customers',
49
+ query: {
50
+ 'q': q,
51
+ 'order': order,
52
+ },
53
+ });
54
+ }
38
55
  /**
39
56
  * Get a single admin by ID
40
57
  * @param id
@@ -0,0 +1,9 @@
1
+ import type { CancelablePromise } from '../core/CancelablePromise';
2
+ export declare class AdminSettingsService {
3
+ /**
4
+ * Get all settings
5
+ * @returns any List of all system settings
6
+ * @throws ApiError
7
+ */
8
+ static findAll(): CancelablePromise<any>;
9
+ }
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AdminSettingsService = void 0;
4
+ const OpenAPI_1 = require("../core/OpenAPI");
5
+ const request_1 = require("../core/request");
6
+ class AdminSettingsService {
7
+ /**
8
+ * Get all settings
9
+ * @returns any List of all system settings
10
+ * @throws ApiError
11
+ */
12
+ static findAll() {
13
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
14
+ method: 'GET',
15
+ url: '/admins/settings',
16
+ });
17
+ }
18
+ }
19
+ exports.AdminSettingsService = AdminSettingsService;
@@ -23,6 +23,15 @@ export declare class AdminTripsService {
23
23
  * @throws ApiError
24
24
  */
25
25
  static create(requestBody: TripDto): CancelablePromise<TripDto>;
26
+ /**
27
+ * Get last 5 trips by phone/email/senior card
28
+ * @param phone Phone number
29
+ * @param email Email address
30
+ * @param seniorCardNumber Senior card number
31
+ * @returns TripDto List of up to 5 trips
32
+ * @throws ApiError
33
+ */
34
+ static findLast5Trips(phone?: string, email?: string, seniorCardNumber?: string): CancelablePromise<Array<TripDto>>;
26
35
  /**
27
36
  * Get a single trip by ID
28
37
  * @param id
@@ -39,6 +39,25 @@ class AdminTripsService {
39
39
  mediaType: 'application/json',
40
40
  });
41
41
  }
42
+ /**
43
+ * Get last 5 trips by phone/email/senior card
44
+ * @param phone Phone number
45
+ * @param email Email address
46
+ * @param seniorCardNumber Senior card number
47
+ * @returns TripDto List of up to 5 trips
48
+ * @throws ApiError
49
+ */
50
+ static findLast5Trips(phone, email, seniorCardNumber) {
51
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
52
+ method: 'GET',
53
+ url: '/admins/trips/last5',
54
+ query: {
55
+ 'phone': phone,
56
+ 'email': email,
57
+ 'seniorCardNumber': seniorCardNumber,
58
+ },
59
+ });
60
+ }
42
61
  /**
43
62
  * Get a single trip by ID
44
63
  * @param id