@moneypot/hub 1.2.3 → 1.2.5
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";
|
package/dist/src/db/index.d.ts
CHANGED
|
@@ -8,8 +8,8 @@ export * from "./util.js";
|
|
|
8
8
|
export declare function getPgClient(connectionString: string): pg.Client;
|
|
9
9
|
export declare const postgraphilePool: pg.Pool;
|
|
10
10
|
export declare const superuserPool: pg.Pool;
|
|
11
|
-
interface QueryExecutor {
|
|
12
|
-
query<T extends QueryResultRow =
|
|
11
|
+
export interface QueryExecutor {
|
|
12
|
+
query<T extends QueryResultRow = any>(queryText: string, values?: any[]): Promise<QueryResult<T>>;
|
|
13
13
|
}
|
|
14
14
|
export declare class UserFriendlyError extends Error {
|
|
15
15
|
constructor(userFriendlyMessage: string);
|
|
@@ -89,4 +89,4 @@ export declare function upsertCurrencies(pgClient: QueryExecutor, { casinoId, cu
|
|
|
89
89
|
displayUnitName: string;
|
|
90
90
|
displayUnitScale: number;
|
|
91
91
|
}[];
|
|
92
|
-
}): Promise<pg.QueryResult<
|
|
92
|
+
}): Promise<pg.QueryResult<any>>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { PoolClient } from "pg";
|
|
2
2
|
import { GraphQLClient } from "graphql-request";
|
|
3
|
-
import {
|
|
3
|
+
import { Result } from "../util.js";
|
|
4
|
+
import { QueryExecutor } from "../db/index.js";
|
|
4
5
|
export declare function verifyJwtFromDbCacheAndEnsureNotAlreadyUsed(pgClient: PoolClient, { casinoId, jwt, }: {
|
|
5
6
|
casinoId: string;
|
|
6
7
|
jwt: string;
|
package/dist/src/util.d.ts
CHANGED
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
import { QueryResult, QueryResultRow } from "pg";
|
|
2
1
|
export declare function isUuid(input: any): boolean;
|
|
3
|
-
export interface QueryExecutor {
|
|
4
|
-
query<T extends QueryResultRow = any>(queryText: string, values?: any[]): Promise<QueryResult<T>>;
|
|
5
|
-
}
|
|
6
2
|
export type Result<V, E> = {
|
|
7
3
|
ok: true;
|
|
8
4
|
value: V;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moneypot/hub",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.5",
|
|
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"
|