@pgpmjs/types 2.11.0 → 2.12.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/esm/pgpm.js +0 -20
- package/package.json +5 -8
- package/pgpm.d.ts +1 -51
- package/pgpm.js +0 -20
package/esm/pgpm.js
CHANGED
|
@@ -28,32 +28,12 @@ export const pgpmDefaults = {
|
|
|
28
28
|
password: 'password',
|
|
29
29
|
database: 'postgres',
|
|
30
30
|
},
|
|
31
|
-
graphile: {
|
|
32
|
-
schema: [],
|
|
33
|
-
appendPlugins: [],
|
|
34
|
-
overrideSettings: {},
|
|
35
|
-
graphileBuildOptions: {},
|
|
36
|
-
},
|
|
37
31
|
server: {
|
|
38
32
|
host: 'localhost',
|
|
39
33
|
port: 3000,
|
|
40
34
|
trustProxy: false,
|
|
41
35
|
strictAuth: false,
|
|
42
36
|
},
|
|
43
|
-
features: {
|
|
44
|
-
simpleInflection: true,
|
|
45
|
-
oppositeBaseNames: true,
|
|
46
|
-
postgis: true
|
|
47
|
-
},
|
|
48
|
-
api: {
|
|
49
|
-
enableMetaApi: true,
|
|
50
|
-
exposedSchemas: [],
|
|
51
|
-
anonRole: 'administrator',
|
|
52
|
-
roleName: 'administrator',
|
|
53
|
-
defaultDatabaseId: 'hard-coded',
|
|
54
|
-
isPublic: true,
|
|
55
|
-
metaSchemas: ['collections_public', 'meta_public']
|
|
56
|
-
},
|
|
57
37
|
cdn: {
|
|
58
38
|
bucketName: 'test-bucket',
|
|
59
39
|
awsRegion: 'us-east-1',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pgpmjs/types",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.12.0",
|
|
4
4
|
"author": "Constructive <developers@constructive.io>",
|
|
5
5
|
"description": "PGPM types",
|
|
6
6
|
"main": "index.js",
|
|
@@ -29,21 +29,18 @@
|
|
|
29
29
|
"test:watch": "jest --watch"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"
|
|
33
|
-
"graphile-build": "^4.14.1",
|
|
34
|
-
"pg-env": "^1.2.1",
|
|
35
|
-
"postgraphile": "^4.14.1"
|
|
32
|
+
"pg-env": "^1.2.1"
|
|
36
33
|
},
|
|
37
34
|
"keywords": [
|
|
38
|
-
"graphql",
|
|
39
35
|
"types",
|
|
40
36
|
"typescript",
|
|
41
37
|
"pgpm",
|
|
42
38
|
"pgpmjs",
|
|
43
|
-
"
|
|
39
|
+
"postgresql",
|
|
40
|
+
"migrations"
|
|
44
41
|
],
|
|
45
42
|
"devDependencies": {
|
|
46
43
|
"makage": "^0.1.8"
|
|
47
44
|
},
|
|
48
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "293ffe3db7a328d1a096b8f239d9c71c26b43ec0"
|
|
49
46
|
}
|
package/pgpm.d.ts
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import type { Plugin } from 'graphile-build';
|
|
2
1
|
import { PgConfig } from 'pg-env';
|
|
3
|
-
import { PostGraphileOptions } from 'postgraphile';
|
|
4
2
|
import { JobsConfig } from './jobs';
|
|
5
3
|
/**
|
|
6
4
|
* Authentication options for test client sessions
|
|
@@ -87,30 +85,6 @@ export interface ServerOptions {
|
|
|
87
85
|
/** Whether to enforce strict authentication */
|
|
88
86
|
strictAuth?: boolean;
|
|
89
87
|
}
|
|
90
|
-
/**
|
|
91
|
-
* Feature flags and toggles
|
|
92
|
-
*/
|
|
93
|
-
export interface FeatureOptions {
|
|
94
|
-
/** Use simple inflection for GraphQL field names */
|
|
95
|
-
simpleInflection?: boolean;
|
|
96
|
-
/** Use opposite base names for relationships */
|
|
97
|
-
oppositeBaseNames?: boolean;
|
|
98
|
-
/** Enable PostGIS spatial database support */
|
|
99
|
-
postgis?: boolean;
|
|
100
|
-
}
|
|
101
|
-
/**
|
|
102
|
-
* PostGraphile/Graphile configuration
|
|
103
|
-
*/
|
|
104
|
-
export interface GraphileOptions {
|
|
105
|
-
/** Database schema(s) to expose through GraphQL */
|
|
106
|
-
schema?: string | string[];
|
|
107
|
-
/** Additional Graphile plugins to load */
|
|
108
|
-
appendPlugins?: Plugin[];
|
|
109
|
-
/** Build options for Graphile */
|
|
110
|
-
graphileBuildOptions?: PostGraphileOptions['graphileBuildOptions'];
|
|
111
|
-
/** Override settings for PostGraphile */
|
|
112
|
-
overrideSettings?: Partial<PostGraphileOptions>;
|
|
113
|
-
}
|
|
114
88
|
/**
|
|
115
89
|
* CDN and file storage configuration
|
|
116
90
|
*/
|
|
@@ -140,25 +114,6 @@ export interface MigrationOptions {
|
|
|
140
114
|
/** Code generation settings */
|
|
141
115
|
codegen?: CodegenOptions;
|
|
142
116
|
}
|
|
143
|
-
/**
|
|
144
|
-
* Configuration options for the LaunchQL API
|
|
145
|
-
*/
|
|
146
|
-
export interface ApiOptions {
|
|
147
|
-
/** Whether to enable the meta API endpoints */
|
|
148
|
-
enableMetaApi?: boolean;
|
|
149
|
-
/** Database schemas to expose through the API */
|
|
150
|
-
exposedSchemas?: string[];
|
|
151
|
-
/** Anonymous role name for unauthenticated requests */
|
|
152
|
-
anonRole?: string;
|
|
153
|
-
/** Default role name for authenticated requests */
|
|
154
|
-
roleName?: string;
|
|
155
|
-
/** Default database identifier to use */
|
|
156
|
-
defaultDatabaseId?: string;
|
|
157
|
-
/** Whether the API is publicly accessible */
|
|
158
|
-
isPublic?: boolean;
|
|
159
|
-
/** Schemas containing metadata tables */
|
|
160
|
-
metaSchemas?: string[];
|
|
161
|
-
}
|
|
162
117
|
/**
|
|
163
118
|
* Configuration for PGPM workspace
|
|
164
119
|
*/
|
|
@@ -200,20 +155,15 @@ export interface DeploymentOptions {
|
|
|
200
155
|
}
|
|
201
156
|
/**
|
|
202
157
|
* Main configuration options for the PGPM framework
|
|
158
|
+
* Note: GraphQL/Graphile options (graphile, api, features) are in @launchql/types
|
|
203
159
|
*/
|
|
204
160
|
export interface PgpmOptions {
|
|
205
161
|
/** Test database configuration options */
|
|
206
162
|
db?: Partial<PgTestConnectionOptions>;
|
|
207
163
|
/** PostgreSQL connection configuration */
|
|
208
164
|
pg?: Partial<PgConfig>;
|
|
209
|
-
/** PostGraphile/Graphile configuration */
|
|
210
|
-
graphile?: GraphileOptions;
|
|
211
165
|
/** HTTP server configuration */
|
|
212
166
|
server?: ServerOptions;
|
|
213
|
-
/** Feature flags and toggles */
|
|
214
|
-
features?: FeatureOptions;
|
|
215
|
-
/** API configuration options */
|
|
216
|
-
api?: ApiOptions;
|
|
217
167
|
/** CDN and file storage configuration */
|
|
218
168
|
cdn?: CDNOptions;
|
|
219
169
|
/** Module deployment configuration */
|
package/pgpm.js
CHANGED
|
@@ -32,32 +32,12 @@ exports.pgpmDefaults = {
|
|
|
32
32
|
password: 'password',
|
|
33
33
|
database: 'postgres',
|
|
34
34
|
},
|
|
35
|
-
graphile: {
|
|
36
|
-
schema: [],
|
|
37
|
-
appendPlugins: [],
|
|
38
|
-
overrideSettings: {},
|
|
39
|
-
graphileBuildOptions: {},
|
|
40
|
-
},
|
|
41
35
|
server: {
|
|
42
36
|
host: 'localhost',
|
|
43
37
|
port: 3000,
|
|
44
38
|
trustProxy: false,
|
|
45
39
|
strictAuth: false,
|
|
46
40
|
},
|
|
47
|
-
features: {
|
|
48
|
-
simpleInflection: true,
|
|
49
|
-
oppositeBaseNames: true,
|
|
50
|
-
postgis: true
|
|
51
|
-
},
|
|
52
|
-
api: {
|
|
53
|
-
enableMetaApi: true,
|
|
54
|
-
exposedSchemas: [],
|
|
55
|
-
anonRole: 'administrator',
|
|
56
|
-
roleName: 'administrator',
|
|
57
|
-
defaultDatabaseId: 'hard-coded',
|
|
58
|
-
isPublic: true,
|
|
59
|
-
metaSchemas: ['collections_public', 'meta_public']
|
|
60
|
-
},
|
|
61
41
|
cdn: {
|
|
62
42
|
bucketName: 'test-bucket',
|
|
63
43
|
awsRegion: 'us-east-1',
|