@dapex-tech/elite-online-services 0.0.18 → 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.
Files changed (102) hide show
  1. package/createClient.d.ts +2 -0
  2. package/createClient.js +1 -1
  3. package/models/AdminDto.d.ts +2 -1
  4. package/models/AdminLoginResponseDto.d.ts +2 -1
  5. package/models/CustomerDto.d.ts +5 -0
  6. package/models/CustomerLocationCreateDto.d.ts +2 -16
  7. package/models/CustomerLocationCreateDto.js +0 -18
  8. package/models/CustomerLocationDto.d.ts +2 -16
  9. package/models/CustomerLocationDto.js +0 -18
  10. package/models/CustomerLocationUpdateDto.d.ts +2 -16
  11. package/models/CustomerLocationUpdateDto.js +0 -18
  12. package/models/CustomerLoginResponseDto.d.ts +5 -0
  13. package/models/DriverAssignmentModes.d.ts +4 -0
  14. package/models/DriverAssignmentModes.js +12 -0
  15. package/models/DriverCreateDto.d.ts +4 -0
  16. package/models/DriverDto.d.ts +6 -1
  17. package/models/DriverLoginResponseDto.d.ts +6 -1
  18. package/models/DriverUpdateDto.d.ts +4 -0
  19. package/models/EstimateTripCostDto.d.ts +18 -0
  20. package/models/EstimateTripCostDto.js +2 -0
  21. package/models/JobSummaryDto.d.ts +42 -0
  22. package/models/JobSummaryDto.js +2 -0
  23. package/models/JobsListResponseDto.d.ts +7 -0
  24. package/models/JobsListResponseDto.js +2 -0
  25. package/models/LocationTypes.d.ts +13 -0
  26. package/models/LocationTypes.js +21 -0
  27. package/models/PaymentTypes.d.ts +8 -0
  28. package/models/PaymentTypes.js +16 -0
  29. package/models/QueueJobCountsDto.d.ts +26 -0
  30. package/models/QueueJobCountsDto.js +2 -0
  31. package/models/QueueSummaryDto.d.ts +11 -0
  32. package/models/QueueSummaryDto.js +2 -0
  33. package/models/Role.d.ts +8 -0
  34. package/models/Role.js +16 -0
  35. package/models/SectionContentCreateDto.d.ts +2 -10
  36. package/models/SectionContentCreateDto.js +0 -12
  37. package/models/SectionContentDto.d.ts +2 -10
  38. package/models/SectionContentDto.js +0 -12
  39. package/models/SectionContentUpdateDto.d.ts +2 -10
  40. package/models/SectionContentUpdateDto.js +0 -12
  41. package/models/SectionContentsTypes.d.ts +8 -0
  42. package/models/SectionContentsTypes.js +16 -0
  43. package/models/SystemSettingResponseDto.d.ts +18 -0
  44. package/models/SystemSettingResponseDto.js +2 -0
  45. package/models/TripDto.d.ts +28 -55
  46. package/models/TripDto.js +0 -58
  47. package/models/TripSources.d.ts +5 -0
  48. package/models/TripSources.js +13 -0
  49. package/models/TripUpdateDriverAssignmentModeDto.d.ts +2 -1
  50. package/models/TripUpdateDto.d.ts +5 -10
  51. package/models/TripUpdateDto.js +0 -13
  52. package/models/TripUpdateTripsStatusDto.d.ts +2 -22
  53. package/models/TripUpdateTripsStatusDto.js +0 -24
  54. package/models/TwilioTokenResponse.d.ts +10 -0
  55. package/models/TwilioTokenResponse.js +2 -0
  56. package/models/UpdateSystemSettingDto.d.ts +10 -0
  57. package/models/UpdateSystemSettingDto.js +2 -0
  58. package/models/VehicleCreateDto.d.ts +51 -0
  59. package/models/VehicleCreateDto.js +2 -0
  60. package/models/VehicleDto.d.ts +60 -0
  61. package/models/VehicleDto.js +2 -0
  62. package/models/VehicleStatus.d.ts +7 -0
  63. package/models/VehicleStatus.js +15 -0
  64. package/models/VehicleTypes.d.ts +8 -0
  65. package/models/VehicleTypes.js +16 -0
  66. package/models/VehicleUpdateDto.d.ts +51 -0
  67. package/models/VehicleUpdateDto.js +2 -0
  68. package/models/index.d.ts +19 -0
  69. package/models/index.js +19 -0
  70. package/package.json +1 -1
  71. package/services/AdminDriversService.d.ts +7 -0
  72. package/services/AdminDriversService.js +12 -0
  73. package/services/AdminQueuesService.d.ts +30 -0
  74. package/services/AdminQueuesService.js +62 -0
  75. package/services/AdminSectionContentService.d.ts +2 -1
  76. package/services/AdminService.d.ts +7 -0
  77. package/services/AdminService.js +11 -0
  78. package/services/AdminSettingsService.d.ts +20 -3
  79. package/services/AdminSettingsService.js +41 -2
  80. package/services/AdminTripsService.d.ts +10 -1
  81. package/services/AdminTripsService.js +17 -1
  82. package/services/AdminVehicleService.d.ts +46 -0
  83. package/services/AdminVehicleService.js +89 -0
  84. package/services/CustomerSectionContentsService.d.ts +30 -4
  85. package/services/CustomerSectionContentsService.js +58 -6
  86. package/services/CustomerTripsService.d.ts +8 -0
  87. package/services/CustomerTripsService.js +14 -0
  88. package/services/CustomersService.d.ts +7 -0
  89. package/services/CustomersService.js +11 -0
  90. package/services/DriverTripsService.d.ts +8 -0
  91. package/services/DriverTripsService.js +14 -0
  92. package/services/DriversService.d.ts +14 -0
  93. package/services/DriversService.js +22 -0
  94. package/services/HealthService.d.ts +0 -10
  95. package/services/HealthService.js +0 -13
  96. package/services/index.d.ts +2 -0
  97. package/services/index.js +2 -0
  98. package/types/realtime/active-trip.d.ts +3 -1
  99. package/types/realtime/driver-status.d.ts +2 -0
  100. package/types/realtime/driver-status.js +7 -0
  101. package/socketService.bak.d.ts +0 -54
  102. package/socketService.bak.js +0 -99
package/createClient.d.ts CHANGED
@@ -7,10 +7,12 @@ export declare function createClient(baseUrl?: string): {
7
7
  AdminCustomerService: typeof services.AdminCustomerService;
8
8
  AdminDriversService: typeof services.AdminDriversService;
9
9
  AdminPaymentsService: typeof services.AdminPaymentsService;
10
+ AdminQueuesService: typeof services.AdminQueuesService;
10
11
  AdminSectionContentService: typeof services.AdminSectionContentService;
11
12
  AdminService: typeof services.AdminService;
12
13
  AdminSettingsService: typeof services.AdminSettingsService;
13
14
  AdminTripsService: typeof services.AdminTripsService;
15
+ AdminVehicleService: typeof services.AdminVehicleService;
14
16
  AdminVouchersService: typeof services.AdminVouchersService;
15
17
  CustomerLocationsService: typeof services.CustomerLocationsService;
16
18
  CustomerPaymentsService: typeof services.CustomerPaymentsService;
package/createClient.js CHANGED
@@ -42,6 +42,6 @@ const services = __importStar(require("./services"));
42
42
  function createClient(baseUrl) {
43
43
  OpenAPI_1.OpenAPI.BASE = baseUrl || process.env.API_URL || 'http://localhost:3000';
44
44
  return {
45
- ...services, // todos los servicios agrupados
45
+ ...services,
46
46
  };
47
47
  }
@@ -1,3 +1,4 @@
1
+ import type { Role } from './Role';
1
2
  export type AdminDto = {
2
3
  /**
3
4
  * Admin ID
@@ -26,5 +27,5 @@ export type AdminDto = {
26
27
  /**
27
28
  * Admin Role
28
29
  */
29
- role?: Record<string, any>;
30
+ role?: Role;
30
31
  };
@@ -1,3 +1,4 @@
1
+ import type { Role } from './Role';
1
2
  export type AdminLoginResponseDto = {
2
3
  /**
3
4
  * Admin ID
@@ -26,7 +27,7 @@ export type AdminLoginResponseDto = {
26
27
  /**
27
28
  * Admin Role
28
29
  */
29
- role?: Record<string, any>;
30
+ role?: Role;
30
31
  /**
31
32
  * Access Token
32
33
  */
@@ -1,3 +1,4 @@
1
+ import type { Role } from './Role';
1
2
  export type CustomerDto = {
2
3
  /**
3
4
  * User ID
@@ -23,6 +24,10 @@ export type CustomerDto = {
23
24
  * Customer Phone Number
24
25
  */
25
26
  phone: string;
27
+ /**
28
+ * Customer Role
29
+ */
30
+ role: Role;
26
31
  /**
27
32
  * Customer Verified Status
28
33
  */
@@ -1,3 +1,4 @@
1
+ import type { LocationTypes } from './LocationTypes';
1
2
  export type CustomerLocationCreateDto = {
2
3
  /**
3
4
  * Location alias (e.g., "Home", "Work")
@@ -14,7 +15,7 @@ export type CustomerLocationCreateDto = {
14
15
  /**
15
16
  * Location type (e.g. HOME, OFFICE)
16
17
  */
17
- locationType?: CustomerLocationCreateDto.locationType;
18
+ locationType?: LocationTypes;
18
19
  /**
19
20
  * Latitude
20
21
  */
@@ -28,18 +29,3 @@ export type CustomerLocationCreateDto = {
28
29
  */
29
30
  address?: string;
30
31
  };
31
- export declare namespace CustomerLocationCreateDto {
32
- /**
33
- * Location type (e.g. HOME, OFFICE)
34
- */
35
- enum locationType {
36
- HOME = "HOME",
37
- APARTMENT = "APARTMENT",
38
- OFFICE = "OFFICE",
39
- HOSPITAL = "HOSPITAL",
40
- MALL = "MALL",
41
- HOTEL = "HOTEL",
42
- BUSINESS = "BUSINESS",
43
- OTHER = "OTHER"
44
- }
45
- }
@@ -1,20 +1,2 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CustomerLocationCreateDto = void 0;
4
- var CustomerLocationCreateDto;
5
- (function (CustomerLocationCreateDto) {
6
- /**
7
- * Location type (e.g. HOME, OFFICE)
8
- */
9
- let locationType;
10
- (function (locationType) {
11
- locationType["HOME"] = "HOME";
12
- locationType["APARTMENT"] = "APARTMENT";
13
- locationType["OFFICE"] = "OFFICE";
14
- locationType["HOSPITAL"] = "HOSPITAL";
15
- locationType["MALL"] = "MALL";
16
- locationType["HOTEL"] = "HOTEL";
17
- locationType["BUSINESS"] = "BUSINESS";
18
- locationType["OTHER"] = "OTHER";
19
- })(locationType = CustomerLocationCreateDto.locationType || (CustomerLocationCreateDto.locationType = {}));
20
- })(CustomerLocationCreateDto || (exports.CustomerLocationCreateDto = CustomerLocationCreateDto = {}));
@@ -1,3 +1,4 @@
1
+ import type { LocationTypes } from './LocationTypes';
1
2
  export type CustomerLocationDto = {
2
3
  /**
3
4
  * Location ID
@@ -22,7 +23,7 @@ export type CustomerLocationDto = {
22
23
  /**
23
24
  * Location type (e.g. HOME, OFFICE)
24
25
  */
25
- locationType?: CustomerLocationDto.locationType | null;
26
+ locationType?: LocationTypes | null;
26
27
  /**
27
28
  * Latitude
28
29
  */
@@ -36,18 +37,3 @@ export type CustomerLocationDto = {
36
37
  */
37
38
  address?: Record<string, any> | null;
38
39
  };
39
- export declare namespace CustomerLocationDto {
40
- /**
41
- * Location type (e.g. HOME, OFFICE)
42
- */
43
- enum locationType {
44
- HOME = "HOME",
45
- APARTMENT = "APARTMENT",
46
- OFFICE = "OFFICE",
47
- HOSPITAL = "HOSPITAL",
48
- MALL = "MALL",
49
- HOTEL = "HOTEL",
50
- BUSINESS = "BUSINESS",
51
- OTHER = "OTHER"
52
- }
53
- }
@@ -1,20 +1,2 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CustomerLocationDto = void 0;
4
- var CustomerLocationDto;
5
- (function (CustomerLocationDto) {
6
- /**
7
- * Location type (e.g. HOME, OFFICE)
8
- */
9
- let locationType;
10
- (function (locationType) {
11
- locationType["HOME"] = "HOME";
12
- locationType["APARTMENT"] = "APARTMENT";
13
- locationType["OFFICE"] = "OFFICE";
14
- locationType["HOSPITAL"] = "HOSPITAL";
15
- locationType["MALL"] = "MALL";
16
- locationType["HOTEL"] = "HOTEL";
17
- locationType["BUSINESS"] = "BUSINESS";
18
- locationType["OTHER"] = "OTHER";
19
- })(locationType = CustomerLocationDto.locationType || (CustomerLocationDto.locationType = {}));
20
- })(CustomerLocationDto || (exports.CustomerLocationDto = CustomerLocationDto = {}));
@@ -1,3 +1,4 @@
1
+ import type { LocationTypes } from './LocationTypes';
1
2
  export type CustomerLocationUpdateDto = {
2
3
  /**
3
4
  * Location alias (e.g., "Home", "Work")
@@ -14,7 +15,7 @@ export type CustomerLocationUpdateDto = {
14
15
  /**
15
16
  * Location type (e.g. HOME, OFFICE)
16
17
  */
17
- locationType?: CustomerLocationUpdateDto.locationType;
18
+ locationType?: LocationTypes;
18
19
  /**
19
20
  * Latitude
20
21
  */
@@ -28,18 +29,3 @@ export type CustomerLocationUpdateDto = {
28
29
  */
29
30
  address?: string;
30
31
  };
31
- export declare namespace CustomerLocationUpdateDto {
32
- /**
33
- * Location type (e.g. HOME, OFFICE)
34
- */
35
- enum locationType {
36
- HOME = "HOME",
37
- APARTMENT = "APARTMENT",
38
- OFFICE = "OFFICE",
39
- HOSPITAL = "HOSPITAL",
40
- MALL = "MALL",
41
- HOTEL = "HOTEL",
42
- BUSINESS = "BUSINESS",
43
- OTHER = "OTHER"
44
- }
45
- }
@@ -1,20 +1,2 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CustomerLocationUpdateDto = void 0;
4
- var CustomerLocationUpdateDto;
5
- (function (CustomerLocationUpdateDto) {
6
- /**
7
- * Location type (e.g. HOME, OFFICE)
8
- */
9
- let locationType;
10
- (function (locationType) {
11
- locationType["HOME"] = "HOME";
12
- locationType["APARTMENT"] = "APARTMENT";
13
- locationType["OFFICE"] = "OFFICE";
14
- locationType["HOSPITAL"] = "HOSPITAL";
15
- locationType["MALL"] = "MALL";
16
- locationType["HOTEL"] = "HOTEL";
17
- locationType["BUSINESS"] = "BUSINESS";
18
- locationType["OTHER"] = "OTHER";
19
- })(locationType = CustomerLocationUpdateDto.locationType || (CustomerLocationUpdateDto.locationType = {}));
20
- })(CustomerLocationUpdateDto || (exports.CustomerLocationUpdateDto = CustomerLocationUpdateDto = {}));
@@ -1,3 +1,4 @@
1
+ import type { Role } from './Role';
1
2
  export type CustomerLoginResponseDto = {
2
3
  /**
3
4
  * User ID
@@ -23,6 +24,10 @@ export type CustomerLoginResponseDto = {
23
24
  * Customer Phone Number
24
25
  */
25
26
  phone: string;
27
+ /**
28
+ * Customer Role
29
+ */
30
+ role: Role;
26
31
  /**
27
32
  * Customer Verified Status
28
33
  */
@@ -0,0 +1,4 @@
1
+ export declare enum DriverAssignmentModes {
2
+ AUTO = "AUTO",
3
+ MANUAL = "MANUAL"
4
+ }
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DriverAssignmentModes = void 0;
4
+ /* generated using openapi-typescript-codegen -- do not edit */
5
+ /* istanbul ignore file */
6
+ /* tslint:disable */
7
+ /* eslint-disable */
8
+ var DriverAssignmentModes;
9
+ (function (DriverAssignmentModes) {
10
+ DriverAssignmentModes["AUTO"] = "AUTO";
11
+ DriverAssignmentModes["MANUAL"] = "MANUAL";
12
+ })(DriverAssignmentModes || (exports.DriverAssignmentModes = DriverAssignmentModes = {}));
@@ -39,4 +39,8 @@ export type DriverCreateDto = {
39
39
  * Last Heartbeat
40
40
  */
41
41
  lastHeartbeat?: string;
42
+ /**
43
+ * Assigned vehicle ID (admin only)
44
+ */
45
+ vehicleId?: Record<string, any>;
42
46
  };
@@ -1,3 +1,4 @@
1
+ import type { Role } from './Role';
1
2
  export type DriverDto = {
2
3
  /**
3
4
  * Admin ID
@@ -46,9 +47,13 @@ export type DriverDto = {
46
47
  /**
47
48
  * Driver Role
48
49
  */
49
- role?: Record<string, any>;
50
+ role?: Role;
50
51
  /**
51
52
  * Driver credits balance
52
53
  */
53
54
  credits?: number;
55
+ /**
56
+ * Assigned vehicle ID (admin only)
57
+ */
58
+ vehicleId?: Record<string, any>;
54
59
  };
@@ -1,3 +1,4 @@
1
+ import type { Role } from './Role';
1
2
  export type DriverLoginResponseDto = {
2
3
  /**
3
4
  * Admin ID
@@ -46,11 +47,15 @@ export type DriverLoginResponseDto = {
46
47
  /**
47
48
  * Driver Role
48
49
  */
49
- role?: Record<string, any>;
50
+ role?: Role;
50
51
  /**
51
52
  * Driver credits balance
52
53
  */
53
54
  credits?: number;
55
+ /**
56
+ * Assigned vehicle ID (admin only)
57
+ */
58
+ vehicleId?: Record<string, any>;
54
59
  /**
55
60
  * Access Token
56
61
  */
@@ -39,4 +39,8 @@ export type DriverUpdateDto = {
39
39
  * Last Heartbeat
40
40
  */
41
41
  lastHeartbeat?: string;
42
+ /**
43
+ * Assigned vehicle ID (admin only)
44
+ */
45
+ vehicleId?: Record<string, any>;
42
46
  };
@@ -0,0 +1,18 @@
1
+ export type EstimateTripCostDto = {
2
+ /**
3
+ * Origin latitude
4
+ */
5
+ originLatitude: number;
6
+ /**
7
+ * Origin longitude
8
+ */
9
+ originLongitude: number;
10
+ /**
11
+ * Destination latitude
12
+ */
13
+ destinationLatitude: number;
14
+ /**
15
+ * Destination longitude
16
+ */
17
+ destinationLongitude: number;
18
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,42 @@
1
+ export type JobSummaryDto = {
2
+ /**
3
+ * BullMQ job ID
4
+ */
5
+ id: string;
6
+ /**
7
+ * Job name / job type
8
+ */
9
+ name: string;
10
+ /**
11
+ * Job payload data
12
+ */
13
+ data: Record<string, any>;
14
+ /**
15
+ * Current job state
16
+ */
17
+ state: string;
18
+ /**
19
+ * Job progress (number or object)
20
+ */
21
+ progress: Record<string, any>;
22
+ /**
23
+ * Unix timestamp when job was created
24
+ */
25
+ timestamp: number;
26
+ /**
27
+ * Unix timestamp when job started processing
28
+ */
29
+ processedOn?: number;
30
+ /**
31
+ * Unix timestamp when job finished
32
+ */
33
+ finishedOn?: number;
34
+ /**
35
+ * Error message if job failed
36
+ */
37
+ failedReason?: string;
38
+ /**
39
+ * Number of processing attempts made
40
+ */
41
+ attemptsMade: number;
42
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ import type { JobSummaryDto } from './JobSummaryDto';
2
+ export type JobsListResponseDto = {
3
+ /**
4
+ * List of jobs in the queue
5
+ */
6
+ jobs: Array<JobSummaryDto>;
7
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Origin location type
3
+ */
4
+ export declare enum LocationTypes {
5
+ HOME = "HOME",
6
+ APARTMENT = "APARTMENT",
7
+ OFFICE = "OFFICE",
8
+ HOSPITAL = "HOSPITAL",
9
+ MALL = "MALL",
10
+ HOTEL = "HOTEL",
11
+ BUSINESS = "BUSINESS",
12
+ OTHER = "OTHER"
13
+ }
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LocationTypes = void 0;
4
+ /* generated using openapi-typescript-codegen -- do not edit */
5
+ /* istanbul ignore file */
6
+ /* tslint:disable */
7
+ /* eslint-disable */
8
+ /**
9
+ * Origin location type
10
+ */
11
+ var LocationTypes;
12
+ (function (LocationTypes) {
13
+ LocationTypes["HOME"] = "HOME";
14
+ LocationTypes["APARTMENT"] = "APARTMENT";
15
+ LocationTypes["OFFICE"] = "OFFICE";
16
+ LocationTypes["HOSPITAL"] = "HOSPITAL";
17
+ LocationTypes["MALL"] = "MALL";
18
+ LocationTypes["HOTEL"] = "HOTEL";
19
+ LocationTypes["BUSINESS"] = "BUSINESS";
20
+ LocationTypes["OTHER"] = "OTHER";
21
+ })(LocationTypes || (exports.LocationTypes = LocationTypes = {}));
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Payment type (CASH or DEBIT_CREDIT_CARD)
3
+ */
4
+ export declare enum PaymentTypes {
5
+ CASH = "CASH",
6
+ DEBIT_CREDIT_CARD = "DEBIT_CREDIT_CARD",
7
+ VOUCHER = "VOUCHER"
8
+ }
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PaymentTypes = void 0;
4
+ /* generated using openapi-typescript-codegen -- do not edit */
5
+ /* istanbul ignore file */
6
+ /* tslint:disable */
7
+ /* eslint-disable */
8
+ /**
9
+ * Payment type (CASH or DEBIT_CREDIT_CARD)
10
+ */
11
+ var PaymentTypes;
12
+ (function (PaymentTypes) {
13
+ PaymentTypes["CASH"] = "CASH";
14
+ PaymentTypes["DEBIT_CREDIT_CARD"] = "DEBIT_CREDIT_CARD";
15
+ PaymentTypes["VOUCHER"] = "VOUCHER";
16
+ })(PaymentTypes || (exports.PaymentTypes = PaymentTypes = {}));
@@ -0,0 +1,26 @@
1
+ export type QueueJobCountsDto = {
2
+ /**
3
+ * Number of jobs waiting to be processed
4
+ */
5
+ waiting: number;
6
+ /**
7
+ * Number of jobs currently being processed
8
+ */
9
+ active: number;
10
+ /**
11
+ * Number of completed jobs
12
+ */
13
+ completed: number;
14
+ /**
15
+ * Number of failed jobs
16
+ */
17
+ failed: number;
18
+ /**
19
+ * Number of delayed jobs
20
+ */
21
+ delayed: number;
22
+ /**
23
+ * Number of paused jobs
24
+ */
25
+ paused: number;
26
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ import type { QueueJobCountsDto } from './QueueJobCountsDto';
2
+ export type QueueSummaryDto = {
3
+ /**
4
+ * BullMQ queue name
5
+ */
6
+ name: string;
7
+ /**
8
+ * Job counts by state
9
+ */
10
+ counts: QueueJobCountsDto;
11
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Admin Role
3
+ */
4
+ export declare enum Role {
5
+ ADMIN = "ADMIN",
6
+ CUSTOMER = "CUSTOMER",
7
+ DRIVER = "DRIVER"
8
+ }
package/models/Role.js ADDED
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Role = void 0;
4
+ /* generated using openapi-typescript-codegen -- do not edit */
5
+ /* istanbul ignore file */
6
+ /* tslint:disable */
7
+ /* eslint-disable */
8
+ /**
9
+ * Admin Role
10
+ */
11
+ var Role;
12
+ (function (Role) {
13
+ Role["ADMIN"] = "ADMIN";
14
+ Role["CUSTOMER"] = "CUSTOMER";
15
+ Role["DRIVER"] = "DRIVER";
16
+ })(Role || (exports.Role = Role = {}));
@@ -1,8 +1,9 @@
1
+ import type { SectionContentsTypes } from './SectionContentsTypes';
1
2
  export type SectionContentCreateDto = {
2
3
  /**
3
4
  * Section content type
4
5
  */
5
- type: SectionContentCreateDto.type;
6
+ type: SectionContentsTypes;
6
7
  /**
7
8
  * Section name
8
9
  */
@@ -16,12 +17,3 @@ export type SectionContentCreateDto = {
16
17
  */
17
18
  position?: number;
18
19
  };
19
- export declare namespace SectionContentCreateDto {
20
- /**
21
- * Section content type
22
- */
23
- enum type {
24
- LEGAL = "legal",
25
- HELP = "help"
26
- }
27
- }
@@ -1,14 +1,2 @@
1
1
  "use strict";
2
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 = {}));
@@ -1,3 +1,4 @@
1
+ import type { SectionContentsTypes } from './SectionContentsTypes';
1
2
  export type SectionContentDto = {
2
3
  /**
3
4
  * Section content ID
@@ -6,7 +7,7 @@ export type SectionContentDto = {
6
7
  /**
7
8
  * Section content type
8
9
  */
9
- type: SectionContentDto.type;
10
+ type: SectionContentsTypes;
10
11
  /**
11
12
  * Section name
12
13
  */
@@ -24,12 +25,3 @@ export type SectionContentDto = {
24
25
  */
25
26
  createdAt: string;
26
27
  };
27
- export declare namespace SectionContentDto {
28
- /**
29
- * Section content type
30
- */
31
- enum type {
32
- LEGAL = "legal",
33
- HELP = "help"
34
- }
35
- }
@@ -1,14 +1,2 @@
1
1
  "use strict";
2
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 = {}));
@@ -1,8 +1,9 @@
1
+ import type { SectionContentsTypes } from './SectionContentsTypes';
1
2
  export type SectionContentUpdateDto = {
2
3
  /**
3
4
  * Section content type
4
5
  */
5
- type?: SectionContentUpdateDto.type;
6
+ type?: SectionContentsTypes;
6
7
  /**
7
8
  * Section name
8
9
  */
@@ -16,12 +17,3 @@ export type SectionContentUpdateDto = {
16
17
  */
17
18
  position?: number;
18
19
  };
19
- export declare namespace SectionContentUpdateDto {
20
- /**
21
- * Section content type
22
- */
23
- enum type {
24
- LEGAL = "legal",
25
- HELP = "help"
26
- }
27
- }