@voyantjs/ground 0.6.7 → 0.6.9
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema-dispatch.d.ts","sourceRoot":"","sources":["../src/schema-dispatch.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"schema-dispatch.d.ts","sourceRoot":"","sources":["../src/schema-dispatch.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8CrC,CAAA;AAED,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmE5B,CAAA;AAED,MAAM,MAAM,wBAAwB,GAAG,OAAO,yBAAyB,CAAC,YAAY,CAAA;AACpF,MAAM,MAAM,2BAA2B,GAAG,OAAO,yBAAyB,CAAC,YAAY,CAAA;AACvF,MAAM,MAAM,cAAc,GAAG,OAAO,gBAAgB,CAAC,YAAY,CAAA;AACjE,MAAM,MAAM,iBAAiB,GAAG,OAAO,gBAAgB,CAAC,YAAY,CAAA"}
|
package/dist/schema-dispatch.js
CHANGED
|
@@ -37,9 +37,9 @@ export const groundTransferPreferences = pgTable("ground_transfer_preferences",
|
|
|
37
37
|
createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
|
|
38
38
|
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
|
|
39
39
|
}, (table) => [
|
|
40
|
-
index("
|
|
41
|
-
index("
|
|
42
|
-
index("
|
|
40
|
+
index("idx_ground_transfer_preferences_booking_created").on(table.bookingId, table.createdAt),
|
|
41
|
+
index("idx_ground_transfer_preferences_booking_item_created").on(table.bookingItemId, table.createdAt),
|
|
42
|
+
index("idx_ground_transfer_preferences_service_level_created").on(table.serviceLevel, table.createdAt),
|
|
43
43
|
]);
|
|
44
44
|
export const groundDispatches = pgTable("ground_dispatches", {
|
|
45
45
|
id: typeId("ground_dispatches"),
|
|
@@ -68,12 +68,12 @@ export const groundDispatches = pgTable("ground_dispatches", {
|
|
|
68
68
|
createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
|
|
69
69
|
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
|
|
70
70
|
}, (table) => [
|
|
71
|
-
index("
|
|
72
|
-
index("
|
|
73
|
-
index("
|
|
74
|
-
index("
|
|
75
|
-
index("
|
|
76
|
-
index("
|
|
77
|
-
index("
|
|
78
|
-
index("
|
|
71
|
+
index("idx_ground_dispatches_preference_service_date_created").on(table.transferPreferenceId, table.serviceDate, table.createdAt),
|
|
72
|
+
index("idx_ground_dispatches_booking_service_date_created").on(table.bookingId, table.serviceDate, table.createdAt),
|
|
73
|
+
index("idx_ground_dispatches_booking_item_service_date_created").on(table.bookingItemId, table.serviceDate, table.createdAt),
|
|
74
|
+
index("idx_ground_dispatches_operator_service_date_created").on(table.operatorId, table.serviceDate, table.createdAt),
|
|
75
|
+
index("idx_ground_dispatches_vehicle_service_date_created").on(table.vehicleId, table.serviceDate, table.createdAt),
|
|
76
|
+
index("idx_ground_dispatches_driver_service_date_created").on(table.driverId, table.serviceDate, table.createdAt),
|
|
77
|
+
index("idx_ground_dispatches_status_service_date_created").on(table.status, table.serviceDate, table.createdAt),
|
|
78
|
+
index("idx_ground_dispatches_service_date_created").on(table.serviceDate, table.createdAt),
|
|
79
79
|
]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema-operations.d.ts","sourceRoot":"","sources":["../src/schema-operations.ts"],"names":[],"mappings":"AAiBA,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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BAAwB,CAAC,YAAY,CAAA;AAClF,MAAM,MAAM,0BAA0B,GAAG,OAAO,wBAAwB,CAAC,YAAY,CAAA;AACrF,MAAM,MAAM,iBAAiB,GAAG,OAAO,kBAAkB,CAAC,YAAY,CAAA;AACtE,MAAM,MAAM,oBAAoB,GAAG,OAAO,kBAAkB,CAAC,YAAY,CAAA;AACzE,MAAM,MAAM,qBAAqB,GAAG,OAAO,sBAAsB,CAAC,YAAY,CAAA;AAC9E,MAAM,MAAM,wBAAwB,GAAG,OAAO,sBAAsB,CAAC,YAAY,CAAA;AACjF,MAAM,MAAM,wBAAwB,GAAG,OAAO,yBAAyB,CAAC,YAAY,CAAA;AACpF,MAAM,MAAM,2BAA2B,GAAG,OAAO,yBAAyB,CAAC,YAAY,CAAA"}
|
|
@@ -20,8 +20,8 @@ export const groundExecutionEvents = pgTable("ground_execution_events", {
|
|
|
20
20
|
metadata: jsonb("metadata").$type(),
|
|
21
21
|
createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
|
|
22
22
|
}, (table) => [
|
|
23
|
-
index("
|
|
24
|
-
index("
|
|
23
|
+
index("idx_ground_execution_events_dispatch_occurred_created").on(table.dispatchId, table.occurredAt, table.createdAt),
|
|
24
|
+
index("idx_ground_execution_events_type_occurred_created").on(table.eventType, table.occurredAt, table.createdAt),
|
|
25
25
|
index("idx_ground_execution_events_occurred_at").on(table.occurredAt),
|
|
26
26
|
]);
|
|
27
27
|
export const groundDispatchAssignments = pgTable("ground_dispatch_assignments", {
|
|
@@ -44,11 +44,11 @@ export const groundDispatchAssignments = pgTable("ground_dispatch_assignments",
|
|
|
44
44
|
createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
|
|
45
45
|
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
|
|
46
46
|
}, (table) => [
|
|
47
|
-
index("
|
|
48
|
-
index("
|
|
49
|
-
index("
|
|
50
|
-
index("
|
|
51
|
-
index("
|
|
47
|
+
index("idx_ground_dispatch_assignments_dispatch_assigned").on(table.dispatchId, table.assignedAt),
|
|
48
|
+
index("idx_ground_dispatch_assignments_operator_assigned").on(table.operatorId, table.assignedAt),
|
|
49
|
+
index("idx_ground_dispatch_assignments_vehicle_assigned").on(table.vehicleId, table.assignedAt),
|
|
50
|
+
index("idx_ground_dispatch_assignments_driver_assigned").on(table.driverId, table.assignedAt),
|
|
51
|
+
index("idx_ground_dispatch_assignments_source_assigned").on(table.assignmentSource, table.assignedAt),
|
|
52
52
|
]);
|
|
53
53
|
export const groundDispatchLegs = pgTable("ground_dispatch_legs", {
|
|
54
54
|
id: typeId("ground_dispatch_legs"),
|
|
@@ -68,9 +68,8 @@ export const groundDispatchLegs = pgTable("ground_dispatch_legs", {
|
|
|
68
68
|
createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
|
|
69
69
|
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
|
|
70
70
|
}, (table) => [
|
|
71
|
-
index("
|
|
72
|
-
index("
|
|
73
|
-
index("idx_ground_dispatch_legs_type").on(table.legType),
|
|
71
|
+
index("idx_ground_dispatch_legs_dispatch_sequence").on(table.dispatchId, table.sequence),
|
|
72
|
+
index("idx_ground_dispatch_legs_type_sequence").on(table.legType, table.sequence),
|
|
74
73
|
]);
|
|
75
74
|
export const groundDispatchPassengers = pgTable("ground_dispatch_passengers", {
|
|
76
75
|
id: typeId("ground_dispatch_passengers"),
|
|
@@ -84,8 +83,8 @@ export const groundDispatchPassengers = pgTable("ground_dispatch_passengers", {
|
|
|
84
83
|
createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
|
|
85
84
|
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
|
|
86
85
|
}, (table) => [
|
|
87
|
-
index("
|
|
88
|
-
index("
|
|
86
|
+
index("idx_ground_dispatch_passengers_dispatch_created").on(table.dispatchId, table.createdAt),
|
|
87
|
+
index("idx_ground_dispatch_passengers_participant_created").on(table.participantId, table.createdAt),
|
|
89
88
|
]);
|
|
90
89
|
export const groundDriverShifts = pgTable("ground_driver_shifts", {
|
|
91
90
|
id: typeId("ground_driver_shifts"),
|
|
@@ -104,10 +103,11 @@ export const groundDriverShifts = pgTable("ground_driver_shifts", {
|
|
|
104
103
|
createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
|
|
105
104
|
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
|
|
106
105
|
}, (table) => [
|
|
107
|
-
index("
|
|
108
|
-
index("
|
|
109
|
-
index("
|
|
110
|
-
index("
|
|
106
|
+
index("idx_ground_driver_shifts_starts_at").on(table.startsAt),
|
|
107
|
+
index("idx_ground_driver_shifts_driver_starts_at").on(table.driverId, table.startsAt),
|
|
108
|
+
index("idx_ground_driver_shifts_operator_starts_at").on(table.operatorId, table.startsAt),
|
|
109
|
+
index("idx_ground_driver_shifts_facility_starts_at").on(table.facilityId, table.startsAt),
|
|
110
|
+
index("idx_ground_driver_shifts_status_starts_at").on(table.status, table.startsAt),
|
|
111
111
|
]);
|
|
112
112
|
export const groundServiceIncidents = pgTable("ground_service_incidents", {
|
|
113
113
|
id: typeId("ground_service_incidents"),
|
|
@@ -126,9 +126,9 @@ export const groundServiceIncidents = pgTable("ground_service_incidents", {
|
|
|
126
126
|
createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
|
|
127
127
|
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
|
|
128
128
|
}, (table) => [
|
|
129
|
-
index("
|
|
130
|
-
index("
|
|
131
|
-
index("
|
|
129
|
+
index("idx_ground_service_incidents_dispatch_opened").on(table.dispatchId, table.openedAt),
|
|
130
|
+
index("idx_ground_service_incidents_severity_opened").on(table.severity, table.openedAt),
|
|
131
|
+
index("idx_ground_service_incidents_resolution_opened").on(table.resolutionStatus, table.openedAt),
|
|
132
132
|
]);
|
|
133
133
|
export const groundDispatchCheckpoints = pgTable("ground_dispatch_checkpoints", {
|
|
134
134
|
id: typeId("ground_dispatch_checkpoints"),
|
|
@@ -149,7 +149,6 @@ export const groundDispatchCheckpoints = pgTable("ground_dispatch_checkpoints",
|
|
|
149
149
|
createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
|
|
150
150
|
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
|
|
151
151
|
}, (table) => [
|
|
152
|
-
index("
|
|
153
|
-
index("
|
|
154
|
-
index("idx_ground_dispatch_checkpoints_status").on(table.status),
|
|
152
|
+
index("idx_ground_dispatch_checkpoints_dispatch_sequence").on(table.dispatchId, table.sequence),
|
|
153
|
+
index("idx_ground_dispatch_checkpoints_status_sequence").on(table.status, table.sequence),
|
|
155
154
|
]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema-operators.d.ts","sourceRoot":"","sources":["../src/schema-operators.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"schema-operators.d.ts","sourceRoot":"","sources":["../src/schema-operators.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2B3B,CAAA;AAED,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4B1B,CAAA;AAED,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuBzB,CAAA;AAED,MAAM,MAAM,cAAc,GAAG,OAAO,eAAe,CAAC,YAAY,CAAA;AAChE,MAAM,MAAM,iBAAiB,GAAG,OAAO,eAAe,CAAC,YAAY,CAAA;AACnE,MAAM,MAAM,aAAa,GAAG,OAAO,cAAc,CAAC,YAAY,CAAA;AAC9D,MAAM,MAAM,gBAAgB,GAAG,OAAO,cAAc,CAAC,YAAY,CAAA;AACjE,MAAM,MAAM,YAAY,GAAG,OAAO,aAAa,CAAC,YAAY,CAAA;AAC5D,MAAM,MAAM,eAAe,GAAG,OAAO,aAAa,CAAC,YAAY,CAAA"}
|
package/dist/schema-operators.js
CHANGED
|
@@ -13,9 +13,10 @@ export const groundOperators = pgTable("ground_operators", {
|
|
|
13
13
|
createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
|
|
14
14
|
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
|
|
15
15
|
}, (table) => [
|
|
16
|
-
index("
|
|
17
|
-
index("
|
|
18
|
-
index("
|
|
16
|
+
index("idx_ground_operators_name_created").on(table.name, table.createdAt),
|
|
17
|
+
index("idx_ground_operators_supplier_name_created").on(table.supplierId, table.name, table.createdAt),
|
|
18
|
+
index("idx_ground_operators_facility_name_created").on(table.facilityId, table.name, table.createdAt),
|
|
19
|
+
index("idx_ground_operators_active_name_created").on(table.active, table.name, table.createdAt),
|
|
19
20
|
]);
|
|
20
21
|
export const groundVehicles = pgTable("ground_vehicles", {
|
|
21
22
|
id: typeId("ground_vehicles"),
|
|
@@ -37,9 +38,10 @@ export const groundVehicles = pgTable("ground_vehicles", {
|
|
|
37
38
|
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
|
|
38
39
|
}, (table) => [
|
|
39
40
|
uniqueIndex("uidx_ground_vehicles_resource").on(table.resourceId),
|
|
40
|
-
index("
|
|
41
|
-
index("
|
|
42
|
-
index("
|
|
41
|
+
index("idx_ground_vehicles_created").on(table.createdAt),
|
|
42
|
+
index("idx_ground_vehicles_operator_created").on(table.operatorId, table.createdAt),
|
|
43
|
+
index("idx_ground_vehicles_category_created").on(table.category, table.createdAt),
|
|
44
|
+
index("idx_ground_vehicles_active_created").on(table.active, table.createdAt),
|
|
43
45
|
]);
|
|
44
46
|
export const groundDrivers = pgTable("ground_drivers", {
|
|
45
47
|
id: typeId("ground_drivers"),
|
|
@@ -57,6 +59,7 @@ export const groundDrivers = pgTable("ground_drivers", {
|
|
|
57
59
|
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
|
|
58
60
|
}, (table) => [
|
|
59
61
|
uniqueIndex("uidx_ground_drivers_resource").on(table.resourceId),
|
|
60
|
-
index("
|
|
61
|
-
index("
|
|
62
|
+
index("idx_ground_drivers_created").on(table.createdAt),
|
|
63
|
+
index("idx_ground_drivers_operator_created").on(table.operatorId, table.createdAt),
|
|
64
|
+
index("idx_ground_drivers_active_created").on(table.active, table.createdAt),
|
|
62
65
|
]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voyantjs/ground",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.9",
|
|
4
4
|
"license": "FSL-1.1-Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -25,16 +25,16 @@
|
|
|
25
25
|
"drizzle-orm": "^0.45.2",
|
|
26
26
|
"hono": "^4.12.10",
|
|
27
27
|
"zod": "^4.3.6",
|
|
28
|
-
"@voyantjs/core": "0.6.
|
|
29
|
-
"@voyantjs/db": "0.6.
|
|
30
|
-
"@voyantjs/facilities": "0.6.
|
|
31
|
-
"@voyantjs/hono": "0.6.
|
|
32
|
-
"@voyantjs/identity": "0.6.
|
|
28
|
+
"@voyantjs/core": "0.6.9",
|
|
29
|
+
"@voyantjs/db": "0.6.9",
|
|
30
|
+
"@voyantjs/facilities": "0.6.9",
|
|
31
|
+
"@voyantjs/hono": "0.6.9",
|
|
32
|
+
"@voyantjs/identity": "0.6.9"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"typescript": "^6.0.2",
|
|
36
|
-
"@voyantjs/bookings": "0.6.
|
|
37
|
-
"@voyantjs/resources": "0.6.
|
|
36
|
+
"@voyantjs/bookings": "0.6.9",
|
|
37
|
+
"@voyantjs/resources": "0.6.9",
|
|
38
38
|
"@voyantjs/voyant-typescript-config": "0.1.0"
|
|
39
39
|
},
|
|
40
40
|
"files": [
|