@moneypot/hub 1.2.2 → 1.2.4

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 @@
1
+ export * from "postgraphile/@dataplan/pg";
@@ -0,0 +1 @@
1
+ export * from "postgraphile/@dataplan/pg";
@@ -1,6 +1,6 @@
1
1
  import { Express } from "express";
2
2
  import { Logger } from "./logger.js";
3
- export { defaultPlugins, type PluginContext, } from "./server/graphile.config.js";
3
+ export { defaultPlugins, type PluginContext, type PluginIdentity, type UserSessionContext, } from "./server/graphile.config.js";
4
4
  export type ServerOptions = {
5
5
  configureApp?: (app: Express) => void;
6
6
  plugins?: readonly GraphileConfig.Plugin[];
@@ -1,13 +1,13 @@
1
1
  import "graphile-config";
2
2
  import "postgraphile";
3
- type UserSessionContext = {
3
+ export type UserSessionContext = {
4
4
  user_id: string;
5
5
  mp_user_id: string;
6
6
  casino_id: string;
7
7
  experience_id: string;
8
8
  session_id: string;
9
9
  };
10
- type PluginIdentity = {
10
+ export type PluginIdentity = {
11
11
  kind: "user";
12
12
  session: UserSessionContext;
13
13
  } | {
@@ -32,4 +32,3 @@ export declare function createPreset({ plugins, exportSchemaSDLPath, extraPgSche
32
32
  extraPgSchemas: string[];
33
33
  abortSignal: AbortSignal;
34
34
  }): GraphileConfig.Preset;
35
- export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moneypot/hub",
3
- "version": "1.2.2",
3
+ "version": "1.2.4",
4
4
  "author": "moneypot.com",
5
5
  "homepage": "https://moneypot.com/hub",
6
6
  "keywords": [
@@ -19,7 +19,8 @@
19
19
  "./graphile": "./dist/src/graphile.js",
20
20
  "./graphql": "./dist/src/graphql.js",
21
21
  "./grafast": "./dist/src/grafast.js",
22
- "./express": "./dist/src/express.js"
22
+ "./express": "./dist/src/express.js",
23
+ "./dataplan/pg": "./dist/src/dataplan/pg.js"
23
24
  },
24
25
  "files": [
25
26
  "/dist"