@voyant-travel/flights 0.126.0 → 0.127.0
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.
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
CREATE TABLE "reference_aircraft" (
|
|
2
|
+
"iata_code" text PRIMARY KEY NOT NULL,
|
|
3
|
+
"icao_code" text,
|
|
4
|
+
"name" text NOT NULL,
|
|
5
|
+
"manufacturer" text,
|
|
6
|
+
"typical_seats" integer
|
|
7
|
+
);
|
|
8
|
+
--> statement-breakpoint
|
|
9
|
+
CREATE TABLE "reference_airlines" (
|
|
10
|
+
"iata_code" text PRIMARY KEY NOT NULL,
|
|
11
|
+
"icao_code" text,
|
|
12
|
+
"name" text NOT NULL,
|
|
13
|
+
"country" text,
|
|
14
|
+
"logo_url" text,
|
|
15
|
+
"alliance" text
|
|
16
|
+
);
|
|
17
|
+
--> statement-breakpoint
|
|
18
|
+
CREATE TABLE "reference_airports" (
|
|
19
|
+
"iata_code" text PRIMARY KEY NOT NULL,
|
|
20
|
+
"icao_code" text,
|
|
21
|
+
"name" text NOT NULL,
|
|
22
|
+
"city" text NOT NULL,
|
|
23
|
+
"country" text NOT NULL,
|
|
24
|
+
"timezone" text,
|
|
25
|
+
"latitude" real,
|
|
26
|
+
"longitude" real
|
|
27
|
+
);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voyant-travel/flights",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.127.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -72,7 +72,9 @@
|
|
|
72
72
|
]
|
|
73
73
|
},
|
|
74
74
|
"files": [
|
|
75
|
-
"dist"
|
|
75
|
+
"dist",
|
|
76
|
+
"migrations/*.sql",
|
|
77
|
+
"migrations/meta/_journal.json"
|
|
76
78
|
],
|
|
77
79
|
"publishConfig": {
|
|
78
80
|
"access": "public"
|
|
@@ -81,12 +83,13 @@
|
|
|
81
83
|
"drizzle-orm": "^0.45.2",
|
|
82
84
|
"hono": "^4.12.10",
|
|
83
85
|
"zod": "^4.3.6",
|
|
84
|
-
"@voyant-travel/db": "^0.108.
|
|
85
|
-
"@voyant-travel/catalog": "^0.
|
|
86
|
+
"@voyant-travel/db": "^0.108.4",
|
|
87
|
+
"@voyant-travel/catalog": "^0.125.0",
|
|
86
88
|
"@voyant-travel/flights-contracts": "^0.104.4",
|
|
87
89
|
"@voyant-travel/hono": "^0.112.2"
|
|
88
90
|
},
|
|
89
91
|
"devDependencies": {
|
|
92
|
+
"drizzle-kit": "^0.31.10",
|
|
90
93
|
"typescript": "^6.0.2",
|
|
91
94
|
"vitest": "^4.1.2",
|
|
92
95
|
"@voyant-travel/voyant-typescript-config": "^0.1.0"
|
|
@@ -101,7 +104,8 @@
|
|
|
101
104
|
"lint": "biome check src/",
|
|
102
105
|
"test": "vitest run",
|
|
103
106
|
"build": "tsc -p tsconfig.json",
|
|
104
|
-
"clean": "rm -rf dist tsconfig.tsbuildinfo"
|
|
107
|
+
"clean": "rm -rf dist tsconfig.tsbuildinfo",
|
|
108
|
+
"db:generate": "drizzle-kit generate --config=drizzle.migrations.config.ts --name=flights_baseline && node ../../scripts/d2/guard-create-type.mjs ./migrations && node ../../scripts/d2/ensure-extensions.mjs ./migrations"
|
|
105
109
|
},
|
|
106
110
|
"main": "./dist/index.js",
|
|
107
111
|
"types": "./dist/index.d.ts"
|