@voyantjs/ground 0.6.7 → 0.6.8

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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwCrC,CAAA;AAED,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuC5B,CAAA;AAED,MAAM,MAAM,wBAAwB,GAAG,OAAO,yBAAyB,CAAC,YAAY,CAAA;AACpF,MAAM,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BAAwB,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"}
@@ -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("idx_ground_transfer_preferences_booking").on(table.bookingId),
41
- index("idx_ground_transfer_preferences_booking_item").on(table.bookingItemId),
42
- index("idx_ground_transfer_preferences_service_level").on(table.serviceLevel),
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("idx_ground_dispatches_preference").on(table.transferPreferenceId),
72
- index("idx_ground_dispatches_booking").on(table.bookingId),
73
- index("idx_ground_dispatches_booking_item").on(table.bookingItemId),
74
- index("idx_ground_dispatches_operator").on(table.operatorId),
75
- index("idx_ground_dispatches_vehicle").on(table.vehicleId),
76
- index("idx_ground_dispatches_driver").on(table.driverId),
77
- index("idx_ground_dispatches_status").on(table.status),
78
- index("idx_ground_dispatches_service_date").on(table.serviceDate),
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsBjC,CAAA;AAED,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6BrC,CAAA;AAED,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AAO,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("idx_ground_execution_events_dispatch").on(table.dispatchId),
24
- index("idx_ground_execution_events_type").on(table.eventType),
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("idx_ground_dispatch_assignments_dispatch").on(table.dispatchId),
48
- index("idx_ground_dispatch_assignments_operator").on(table.operatorId),
49
- index("idx_ground_dispatch_assignments_vehicle").on(table.vehicleId),
50
- index("idx_ground_dispatch_assignments_driver").on(table.driverId),
51
- index("idx_ground_dispatch_assignments_source").on(table.assignmentSource),
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("idx_ground_dispatch_legs_dispatch").on(table.dispatchId),
72
- index("idx_ground_dispatch_legs_sequence").on(table.sequence),
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("idx_ground_dispatch_passengers_dispatch").on(table.dispatchId),
88
- index("idx_ground_dispatch_passengers_participant").on(table.participantId),
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("idx_ground_driver_shifts_driver").on(table.driverId),
108
- index("idx_ground_driver_shifts_operator").on(table.operatorId),
109
- index("idx_ground_driver_shifts_facility").on(table.facilityId),
110
- index("idx_ground_driver_shifts_status").on(table.status),
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("idx_ground_service_incidents_dispatch").on(table.dispatchId),
130
- index("idx_ground_service_incidents_severity").on(table.severity),
131
- index("idx_ground_service_incidents_resolution").on(table.resolutionStatus),
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("idx_ground_dispatch_checkpoints_dispatch").on(table.dispatchId),
153
- index("idx_ground_dispatch_checkpoints_sequence").on(table.sequence),
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkB3B,CAAA;AAED,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2B1B,CAAA;AAED,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsBzB,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,gB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Aa,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"}
@@ -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("idx_ground_operators_supplier").on(table.supplierId),
17
- index("idx_ground_operators_facility").on(table.facilityId),
18
- index("idx_ground_operators_active").on(table.active),
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("idx_ground_vehicles_operator").on(table.operatorId),
41
- index("idx_ground_vehicles_category").on(table.category),
42
- index("idx_ground_vehicles_active").on(table.active),
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("idx_ground_drivers_operator").on(table.operatorId),
61
- index("idx_ground_drivers_active").on(table.active),
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.7",
3
+ "version": "0.6.8",
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.7",
29
- "@voyantjs/db": "0.6.7",
30
- "@voyantjs/facilities": "0.6.7",
31
- "@voyantjs/hono": "0.6.7",
32
- "@voyantjs/identity": "0.6.7"
28
+ "@voyantjs/core": "0.6.8",
29
+ "@voyantjs/db": "0.6.8",
30
+ "@voyantjs/facilities": "0.6.8",
31
+ "@voyantjs/hono": "0.6.8",
32
+ "@voyantjs/identity": "0.6.8"
33
33
  },
34
34
  "devDependencies": {
35
35
  "typescript": "^6.0.2",
36
- "@voyantjs/bookings": "0.6.7",
37
- "@voyantjs/resources": "0.6.7",
36
+ "@voyantjs/bookings": "0.6.8",
37
+ "@voyantjs/resources": "0.6.8",
38
38
  "@voyantjs/voyant-typescript-config": "0.1.0"
39
39
  },
40
40
  "files": [