@voyant-travel/mice 0.16.0 → 0.18.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.
- package/dist/booking-extension.d.ts +3 -3
- package/dist/booking-extension.js +1 -1
- package/dist/index.d.ts +6 -6
- package/dist/index.js +4 -4
- package/package.json +10 -10
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { OpenAPIHono } from "@hono/zod-openapi";
|
|
2
|
-
import type {
|
|
2
|
+
import type { ApiExtension } from "@voyant-travel/hono/module";
|
|
3
3
|
import type { PostgresJsDatabase } from "drizzle-orm/postgres-js";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
/**
|
|
6
6
|
* MICE booking extension — a 1:1 sidecar that links a booking to its program +
|
|
7
|
-
* delegate, following the established
|
|
7
|
+
* delegate, following the established ApiExtension pattern (precedent:
|
|
8
8
|
* inventory's booking-extension). `booking_id` is a loose text PK (no
|
|
9
9
|
* cross-package FK), so this package doesn't depend on bookings. See RFC
|
|
10
10
|
* voyant#1489 (Phase 3) §4.2.
|
|
@@ -134,5 +134,5 @@ type Env = {
|
|
|
134
134
|
};
|
|
135
135
|
export declare const MICE_BOOKING_OPENAPI_API_ID = "@voyant-travel/mice#booking-extension.api.admin";
|
|
136
136
|
export declare const miceBookingExtensionRoutes: OpenAPIHono<Env, {}, "/">;
|
|
137
|
-
export declare const miceBookingExtension:
|
|
137
|
+
export declare const miceBookingExtension: ApiExtension;
|
|
138
138
|
export {};
|
|
@@ -5,7 +5,7 @@ import { index, pgTable, text, timestamp } from "drizzle-orm/pg-core";
|
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
/**
|
|
7
7
|
* MICE booking extension — a 1:1 sidecar that links a booking to its program +
|
|
8
|
-
* delegate, following the established
|
|
8
|
+
* delegate, following the established ApiExtension pattern (precedent:
|
|
9
9
|
* inventory's booking-extension). `booking_id` is a loose text PK (no
|
|
10
10
|
* cross-package FK), so this package doesn't depend on bookings. See RFC
|
|
11
11
|
* voyant#1489 (Phase 3) §4.2.
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Module } from "@voyant-travel/core";
|
|
2
|
-
import type {
|
|
2
|
+
import type { ApiModule } from "@voyant-travel/hono/module";
|
|
3
3
|
import type { MiceRouteRuntimeOptions } from "./route-runtime.js";
|
|
4
4
|
/**
|
|
5
5
|
* The MICE spine is operator-local (niche) — registered in the deployment, NOT
|
|
@@ -8,15 +8,15 @@ import type { MiceRouteRuntimeOptions } from "./route-runtime.js";
|
|
|
8
8
|
*/
|
|
9
9
|
export { bidLinkable, delegateLinkable, miceLinkable, programLinkable, rfpLinkable, roomingAssignmentLinkable, sessionLinkable, } from "./linkables.js";
|
|
10
10
|
export declare const miceModule: Module;
|
|
11
|
-
export interface
|
|
11
|
+
export interface MiceApiModuleOptions extends MiceRouteRuntimeOptions {
|
|
12
12
|
}
|
|
13
|
-
export declare function
|
|
13
|
+
export declare function createMiceApiModule(options?: MiceApiModuleOptions): ApiModule;
|
|
14
14
|
/** Package-owned adapter from graph runtime ports to the MICE route factory. */
|
|
15
|
-
export declare const createMiceVoyantRuntime: import("@voyant-travel/core/project").VoyantGraphRuntimeFactory<
|
|
15
|
+
export declare const createMiceVoyantRuntime: import("@voyant-travel/core/project").VoyantGraphRuntimeFactory<ApiModule>;
|
|
16
16
|
export type { MiceRuntime } from "./runtime-port.js";
|
|
17
17
|
export { miceRuntimePort } from "./runtime-port.js";
|
|
18
|
-
export declare const
|
|
19
|
-
export declare const
|
|
18
|
+
export declare const miceApiModule: ApiModule;
|
|
19
|
+
export declare const miceApiModules: readonly [ApiModule];
|
|
20
20
|
export type { MiceRouteRuntime, MiceRouteRuntimeOptions, ResolveMiceDelegatePersonById, } from "./route-runtime.js";
|
|
21
21
|
export type { MiceAdminRoutes } from "./routes.js";
|
|
22
22
|
export { createMiceAdminRoutes, miceAdminRoutes } from "./routes.js";
|
package/dist/index.js
CHANGED
|
@@ -15,17 +15,17 @@ export const miceModule = {
|
|
|
15
15
|
requiresTransactionalDb: true,
|
|
16
16
|
linkable: miceLinkable,
|
|
17
17
|
};
|
|
18
|
-
export function
|
|
18
|
+
export function createMiceApiModule(options = {}) {
|
|
19
19
|
return {
|
|
20
20
|
module: miceModule,
|
|
21
21
|
adminRoutes: createMiceAdminRoutes(options),
|
|
22
22
|
};
|
|
23
23
|
}
|
|
24
24
|
/** Package-owned adapter from graph runtime ports to the MICE route factory. */
|
|
25
|
-
export const createMiceVoyantRuntime = defineGraphRuntimeFactory(async ({ getPort }) =>
|
|
25
|
+
export const createMiceVoyantRuntime = defineGraphRuntimeFactory(async ({ getPort }) => createMiceApiModule(await getPort(miceRuntimePort)));
|
|
26
26
|
export { miceRuntimePort } from "./runtime-port.js";
|
|
27
|
-
export const
|
|
28
|
-
export const
|
|
27
|
+
export const miceApiModule = createMiceApiModule();
|
|
28
|
+
export const miceApiModules = [miceApiModule];
|
|
29
29
|
export { createMiceAdminRoutes, miceAdminRoutes } from "./routes.js";
|
|
30
30
|
export * from "./schema.js";
|
|
31
31
|
export * from "./service.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voyant-travel/mice",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.18.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -67,18 +67,18 @@
|
|
|
67
67
|
"drizzle-orm": "^0.45.2",
|
|
68
68
|
"hono": "^4.12.27",
|
|
69
69
|
"zod": "^4.4.3",
|
|
70
|
+
"@voyant-travel/accommodations": "^0.122.0",
|
|
70
71
|
"@voyant-travel/core": "^0.124.0",
|
|
71
|
-
"@voyant-travel/db": "^0.114.
|
|
72
|
-
"@voyant-travel/hono": "^0.
|
|
73
|
-
"@voyant-travel/
|
|
74
|
-
"@voyant-travel/
|
|
75
|
-
"@voyant-travel/accommodations": "^0.120.0"
|
|
72
|
+
"@voyant-travel/db": "^0.114.8",
|
|
73
|
+
"@voyant-travel/hono": "^0.128.0",
|
|
74
|
+
"@voyant-travel/operations": "^0.8.0",
|
|
75
|
+
"@voyant-travel/tools": "^0.3.0"
|
|
76
76
|
},
|
|
77
77
|
"peerDependencies": {
|
|
78
|
-
"@voyant-travel/bookings": "^0.
|
|
79
|
-
"@voyant-travel/
|
|
80
|
-
"@voyant-travel/quotes": "^0.
|
|
81
|
-
"@voyant-travel/
|
|
78
|
+
"@voyant-travel/bookings": "^0.162.0",
|
|
79
|
+
"@voyant-travel/distribution": "^0.152.0",
|
|
80
|
+
"@voyant-travel/quotes": "^0.130.0",
|
|
81
|
+
"@voyant-travel/relationships": "^0.127.0"
|
|
82
82
|
},
|
|
83
83
|
"devDependencies": {
|
|
84
84
|
"drizzle-kit": "^0.31.10",
|