@memberjunction/server 2.49.0 → 2.51.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/README.md +133 -0
- package/dist/config.d.ts +264 -1
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +24 -1
- package/dist/config.js.map +1 -1
- package/dist/generated/generated.d.ts +3 -0
- package/dist/generated/generated.d.ts.map +1 -1
- package/dist/generated/generated.js +532 -517
- package/dist/generated/generated.js.map +1 -1
- package/dist/generic/ResolverBase.d.ts +1 -1
- package/dist/generic/ResolverBase.d.ts.map +1 -1
- package/dist/generic/ResolverBase.js +13 -11
- package/dist/generic/ResolverBase.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/orm.d.ts.map +1 -1
- package/dist/orm.js +6 -0
- package/dist/orm.js.map +1 -1
- package/dist/resolvers/ActionResolver.d.ts +3 -3
- package/dist/resolvers/ActionResolver.d.ts.map +1 -1
- package/dist/resolvers/ActionResolver.js +13 -10
- package/dist/resolvers/ActionResolver.js.map +1 -1
- package/dist/resolvers/FileResolver.js +1 -1
- package/dist/resolvers/FileResolver.js.map +1 -1
- package/dist/resolvers/RunAIAgentResolver.d.ts +49 -8
- package/dist/resolvers/RunAIAgentResolver.d.ts.map +1 -1
- package/dist/resolvers/RunAIAgentResolver.js +389 -106
- package/dist/resolvers/RunAIAgentResolver.js.map +1 -1
- package/dist/resolvers/SqlLoggingConfigResolver.d.ts +61 -0
- package/dist/resolvers/SqlLoggingConfigResolver.d.ts.map +1 -0
- package/dist/resolvers/SqlLoggingConfigResolver.js +477 -0
- package/dist/resolvers/SqlLoggingConfigResolver.js.map +1 -0
- package/dist/resolvers/UserFavoriteResolver.d.ts +3 -3
- package/dist/resolvers/UserFavoriteResolver.d.ts.map +1 -1
- package/dist/resolvers/UserFavoriteResolver.js +6 -6
- package/dist/resolvers/UserFavoriteResolver.js.map +1 -1
- package/dist/resolvers/UserResolver.d.ts +3 -3
- package/dist/resolvers/UserResolver.d.ts.map +1 -1
- package/dist/resolvers/UserResolver.js +6 -6
- package/dist/resolvers/UserResolver.js.map +1 -1
- package/dist/resolvers/UserViewResolver.d.ts +4 -4
- package/dist/resolvers/UserViewResolver.d.ts.map +1 -1
- package/dist/resolvers/UserViewResolver.js +6 -6
- package/dist/resolvers/UserViewResolver.js.map +1 -1
- package/package.json +25 -24
- package/src/config.ts +28 -0
- package/src/generated/generated.ts +527 -518
- package/src/generic/ResolverBase.ts +17 -10
- package/src/index.ts +2 -1
- package/src/orm.ts +6 -0
- package/src/resolvers/ActionResolver.ts +21 -26
- package/src/resolvers/FileResolver.ts +1 -1
- package/src/resolvers/RunAIAgentResolver.ts +398 -100
- package/src/resolvers/SqlLoggingConfigResolver.ts +691 -0
- package/src/resolvers/UserFavoriteResolver.ts +6 -6
- package/src/resolvers/UserResolver.ts +6 -6
- package/src/resolvers/UserViewResolver.ts +6 -6
package/README.md
CHANGED
|
@@ -15,6 +15,7 @@ The `@memberjunction/server` library provides a comprehensive API server for Mem
|
|
|
15
15
|
- **Extensible Architecture**: Support for custom resolvers and entity subclasses
|
|
16
16
|
- **AI Integration**: Built-in support for AI operations and learning cycle scheduling
|
|
17
17
|
- **Security Features**: Entity-level and schema-level access control for REST API
|
|
18
|
+
- **SQL Logging**: Runtime SQL logging configuration and session management for debugging
|
|
18
19
|
|
|
19
20
|
## Installation
|
|
20
21
|
|
|
@@ -279,6 +280,129 @@ scheduler.start(60); // Run every 60 minutes
|
|
|
279
280
|
- `RunAIPromptResolver`: Execute AI prompts
|
|
280
281
|
- `AskSkipResolver`: Handle Skip AI queries
|
|
281
282
|
|
|
283
|
+
### SQL Logging Resolver
|
|
284
|
+
|
|
285
|
+
- `SqlLoggingConfigResolver`: Manage SQL logging configuration and sessions
|
|
286
|
+
|
|
287
|
+
## SQL Logging Management
|
|
288
|
+
|
|
289
|
+
The server includes a comprehensive SQL logging management system that allows Owner-level users to control SQL statement capture in real-time.
|
|
290
|
+
|
|
291
|
+
### Key Features
|
|
292
|
+
|
|
293
|
+
- **Owner-only Access**: SQL logging requires `Type = 'Owner'` privileges
|
|
294
|
+
- **Session Management**: Create, monitor, and stop multiple concurrent logging sessions
|
|
295
|
+
- **User Filtering**: Capture SQL statements from specific users only
|
|
296
|
+
- **Multiple Formats**: Standard SQL logs or migration-ready files
|
|
297
|
+
- **Real-time Control**: Start/stop sessions via GraphQL API
|
|
298
|
+
- **Automatic Cleanup**: Sessions auto-expire and clean up empty files
|
|
299
|
+
|
|
300
|
+
### GraphQL Operations
|
|
301
|
+
|
|
302
|
+
#### Query Configuration
|
|
303
|
+
|
|
304
|
+
```graphql
|
|
305
|
+
query {
|
|
306
|
+
sqlLoggingConfig {
|
|
307
|
+
enabled
|
|
308
|
+
activeSessionCount
|
|
309
|
+
maxActiveSessions
|
|
310
|
+
allowedLogDirectory
|
|
311
|
+
sessionTimeout
|
|
312
|
+
defaultOptions {
|
|
313
|
+
prettyPrint
|
|
314
|
+
statementTypes
|
|
315
|
+
formatAsMigration
|
|
316
|
+
logRecordChangeMetadata
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
```
|
|
321
|
+
|
|
322
|
+
#### List Active Sessions
|
|
323
|
+
|
|
324
|
+
```graphql
|
|
325
|
+
query {
|
|
326
|
+
activeSqlLoggingSessions {
|
|
327
|
+
id
|
|
328
|
+
sessionName
|
|
329
|
+
filePath
|
|
330
|
+
startTime
|
|
331
|
+
statementCount
|
|
332
|
+
filterByUserId
|
|
333
|
+
options {
|
|
334
|
+
prettyPrint
|
|
335
|
+
statementTypes
|
|
336
|
+
formatAsMigration
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
```
|
|
341
|
+
|
|
342
|
+
#### Start a New Session
|
|
343
|
+
|
|
344
|
+
```graphql
|
|
345
|
+
mutation {
|
|
346
|
+
startSqlLogging(input: {
|
|
347
|
+
fileName: "debug-session.sql"
|
|
348
|
+
filterToCurrentUser: true
|
|
349
|
+
options: {
|
|
350
|
+
sessionName: "Debug Session"
|
|
351
|
+
prettyPrint: true
|
|
352
|
+
statementTypes: "both"
|
|
353
|
+
formatAsMigration: false
|
|
354
|
+
}
|
|
355
|
+
}) {
|
|
356
|
+
id
|
|
357
|
+
filePath
|
|
358
|
+
sessionName
|
|
359
|
+
startTime
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
```
|
|
363
|
+
|
|
364
|
+
#### Stop Sessions
|
|
365
|
+
|
|
366
|
+
```graphql
|
|
367
|
+
# Stop specific session
|
|
368
|
+
mutation {
|
|
369
|
+
stopSqlLogging(sessionId: "session-id-here")
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
# Stop all sessions
|
|
373
|
+
mutation {
|
|
374
|
+
stopAllSqlLogging
|
|
375
|
+
}
|
|
376
|
+
```
|
|
377
|
+
|
|
378
|
+
### Security Requirements
|
|
379
|
+
|
|
380
|
+
All SQL logging operations require:
|
|
381
|
+
1. **Authentication**: Valid user session or API key
|
|
382
|
+
2. **Authorization**: User must have `Type = 'Owner'` in the Users table
|
|
383
|
+
3. **Configuration**: SQL logging must be enabled in server config
|
|
384
|
+
|
|
385
|
+
### Configuration
|
|
386
|
+
|
|
387
|
+
SQL logging is configured in `mj.config.cjs`:
|
|
388
|
+
|
|
389
|
+
```javascript
|
|
390
|
+
sqlLogging: {
|
|
391
|
+
enabled: true, // Master switch
|
|
392
|
+
allowedLogDirectory: './logs/sql',
|
|
393
|
+
maxActiveSessions: 5,
|
|
394
|
+
sessionTimeout: 3600000, // 1 hour
|
|
395
|
+
autoCleanupEmptyFiles: true,
|
|
396
|
+
defaultOptions: {
|
|
397
|
+
formatAsMigration: false,
|
|
398
|
+
statementTypes: 'both',
|
|
399
|
+
prettyPrint: true,
|
|
400
|
+
logRecordChangeMetadata: false,
|
|
401
|
+
retainEmptyLogFiles: false
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
```
|
|
405
|
+
|
|
282
406
|
## Security Configuration
|
|
283
407
|
|
|
284
408
|
### Authentication Providers
|
|
@@ -332,6 +456,14 @@ The server includes custom GraphQL directives:
|
|
|
332
456
|
- `@RequireSystemUser`: Requires system user permissions
|
|
333
457
|
- `@Public`: Makes endpoints publicly accessible
|
|
334
458
|
|
|
459
|
+
### SQL Logging Integration
|
|
460
|
+
|
|
461
|
+
The server integrates with the SQLServerDataProvider's logging capabilities:
|
|
462
|
+
- Session management through GraphQL resolvers
|
|
463
|
+
- Owner-level access control validation
|
|
464
|
+
- Real-time session monitoring and control
|
|
465
|
+
- Integration with MemberJunction Explorer UI
|
|
466
|
+
|
|
335
467
|
### WebSocket Configuration
|
|
336
468
|
|
|
337
469
|
For real-time subscriptions:
|
|
@@ -351,6 +483,7 @@ const webSocketServer = new WebSocketServer({
|
|
|
351
483
|
2. **Database Connection**: Verify connection string and credentials
|
|
352
484
|
3. **Module Loading**: Check resolver paths are correct and accessible
|
|
353
485
|
4. **Transaction Errors**: Review mutation logic for proper error handling
|
|
486
|
+
5. **SQL Logging Access**: Ensure user has Owner privileges and logging is enabled in config
|
|
354
487
|
|
|
355
488
|
### Debug Mode
|
|
356
489
|
|
package/dist/config.d.ts
CHANGED
|
@@ -36,18 +36,46 @@ declare const databaseSettingsInfoSchema: z.ZodObject<{
|
|
|
36
36
|
metadataCacheRefreshInterval: z.ZodNumber;
|
|
37
37
|
dbReadOnlyUsername: z.ZodOptional<z.ZodString>;
|
|
38
38
|
dbReadOnlyPassword: z.ZodOptional<z.ZodString>;
|
|
39
|
+
connectionPool: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
40
|
+
max: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
41
|
+
min: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
42
|
+
idleTimeoutMillis: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
43
|
+
acquireTimeoutMillis: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
44
|
+
}, "strip", z.ZodTypeAny, {
|
|
45
|
+
max?: number;
|
|
46
|
+
min?: number;
|
|
47
|
+
idleTimeoutMillis?: number;
|
|
48
|
+
acquireTimeoutMillis?: number;
|
|
49
|
+
}, {
|
|
50
|
+
max?: number;
|
|
51
|
+
min?: number;
|
|
52
|
+
idleTimeoutMillis?: number;
|
|
53
|
+
acquireTimeoutMillis?: number;
|
|
54
|
+
}>>>;
|
|
39
55
|
}, "strip", z.ZodTypeAny, {
|
|
40
56
|
connectionTimeout?: number;
|
|
41
57
|
requestTimeout?: number;
|
|
42
58
|
metadataCacheRefreshInterval?: number;
|
|
43
59
|
dbReadOnlyUsername?: string;
|
|
44
60
|
dbReadOnlyPassword?: string;
|
|
61
|
+
connectionPool?: {
|
|
62
|
+
max?: number;
|
|
63
|
+
min?: number;
|
|
64
|
+
idleTimeoutMillis?: number;
|
|
65
|
+
acquireTimeoutMillis?: number;
|
|
66
|
+
};
|
|
45
67
|
}, {
|
|
46
68
|
connectionTimeout?: number;
|
|
47
69
|
requestTimeout?: number;
|
|
48
70
|
metadataCacheRefreshInterval?: number;
|
|
49
71
|
dbReadOnlyUsername?: string;
|
|
50
72
|
dbReadOnlyPassword?: string;
|
|
73
|
+
connectionPool?: {
|
|
74
|
+
max?: number;
|
|
75
|
+
min?: number;
|
|
76
|
+
idleTimeoutMillis?: number;
|
|
77
|
+
acquireTimeoutMillis?: number;
|
|
78
|
+
};
|
|
51
79
|
}>;
|
|
52
80
|
declare const viewingSystemInfoSchema: z.ZodObject<{
|
|
53
81
|
enableSmartFilters: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -121,6 +149,85 @@ declare const askSkipInfoSchema: z.ZodObject<{
|
|
|
121
149
|
learningCycleURL?: string;
|
|
122
150
|
learningCycleIntervalInMinutes?: number;
|
|
123
151
|
}>;
|
|
152
|
+
declare const sqlLoggingOptionsSchema: z.ZodObject<{
|
|
153
|
+
formatAsMigration: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
154
|
+
statementTypes: z.ZodDefault<z.ZodOptional<z.ZodEnum<["queries", "mutations", "both"]>>>;
|
|
155
|
+
batchSeparator: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
156
|
+
prettyPrint: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
157
|
+
logRecordChangeMetadata: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
158
|
+
retainEmptyLogFiles: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
159
|
+
}, "strip", z.ZodTypeAny, {
|
|
160
|
+
formatAsMigration?: boolean;
|
|
161
|
+
statementTypes?: "queries" | "mutations" | "both";
|
|
162
|
+
batchSeparator?: string;
|
|
163
|
+
prettyPrint?: boolean;
|
|
164
|
+
logRecordChangeMetadata?: boolean;
|
|
165
|
+
retainEmptyLogFiles?: boolean;
|
|
166
|
+
}, {
|
|
167
|
+
formatAsMigration?: boolean;
|
|
168
|
+
statementTypes?: "queries" | "mutations" | "both";
|
|
169
|
+
batchSeparator?: string;
|
|
170
|
+
prettyPrint?: boolean;
|
|
171
|
+
logRecordChangeMetadata?: boolean;
|
|
172
|
+
retainEmptyLogFiles?: boolean;
|
|
173
|
+
}>;
|
|
174
|
+
declare const sqlLoggingSchema: z.ZodObject<{
|
|
175
|
+
enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
176
|
+
defaultOptions: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
177
|
+
formatAsMigration: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
178
|
+
statementTypes: z.ZodDefault<z.ZodOptional<z.ZodEnum<["queries", "mutations", "both"]>>>;
|
|
179
|
+
batchSeparator: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
180
|
+
prettyPrint: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
181
|
+
logRecordChangeMetadata: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
182
|
+
retainEmptyLogFiles: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
183
|
+
}, "strip", z.ZodTypeAny, {
|
|
184
|
+
formatAsMigration?: boolean;
|
|
185
|
+
statementTypes?: "queries" | "mutations" | "both";
|
|
186
|
+
batchSeparator?: string;
|
|
187
|
+
prettyPrint?: boolean;
|
|
188
|
+
logRecordChangeMetadata?: boolean;
|
|
189
|
+
retainEmptyLogFiles?: boolean;
|
|
190
|
+
}, {
|
|
191
|
+
formatAsMigration?: boolean;
|
|
192
|
+
statementTypes?: "queries" | "mutations" | "both";
|
|
193
|
+
batchSeparator?: string;
|
|
194
|
+
prettyPrint?: boolean;
|
|
195
|
+
logRecordChangeMetadata?: boolean;
|
|
196
|
+
retainEmptyLogFiles?: boolean;
|
|
197
|
+
}>>>;
|
|
198
|
+
allowedLogDirectory: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
199
|
+
maxActiveSessions: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
200
|
+
autoCleanupEmptyFiles: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
201
|
+
sessionTimeout: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
202
|
+
}, "strip", z.ZodTypeAny, {
|
|
203
|
+
enabled?: boolean;
|
|
204
|
+
defaultOptions?: {
|
|
205
|
+
formatAsMigration?: boolean;
|
|
206
|
+
statementTypes?: "queries" | "mutations" | "both";
|
|
207
|
+
batchSeparator?: string;
|
|
208
|
+
prettyPrint?: boolean;
|
|
209
|
+
logRecordChangeMetadata?: boolean;
|
|
210
|
+
retainEmptyLogFiles?: boolean;
|
|
211
|
+
};
|
|
212
|
+
allowedLogDirectory?: string;
|
|
213
|
+
maxActiveSessions?: number;
|
|
214
|
+
autoCleanupEmptyFiles?: boolean;
|
|
215
|
+
sessionTimeout?: number;
|
|
216
|
+
}, {
|
|
217
|
+
enabled?: boolean;
|
|
218
|
+
defaultOptions?: {
|
|
219
|
+
formatAsMigration?: boolean;
|
|
220
|
+
statementTypes?: "queries" | "mutations" | "both";
|
|
221
|
+
batchSeparator?: string;
|
|
222
|
+
prettyPrint?: boolean;
|
|
223
|
+
logRecordChangeMetadata?: boolean;
|
|
224
|
+
retainEmptyLogFiles?: boolean;
|
|
225
|
+
};
|
|
226
|
+
allowedLogDirectory?: string;
|
|
227
|
+
maxActiveSessions?: number;
|
|
228
|
+
autoCleanupEmptyFiles?: boolean;
|
|
229
|
+
sessionTimeout?: number;
|
|
230
|
+
}>;
|
|
124
231
|
declare const configInfoSchema: z.ZodObject<{
|
|
125
232
|
userHandling: z.ZodObject<{
|
|
126
233
|
autoCreateNewUsers: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
@@ -159,18 +266,46 @@ declare const configInfoSchema: z.ZodObject<{
|
|
|
159
266
|
metadataCacheRefreshInterval: z.ZodNumber;
|
|
160
267
|
dbReadOnlyUsername: z.ZodOptional<z.ZodString>;
|
|
161
268
|
dbReadOnlyPassword: z.ZodOptional<z.ZodString>;
|
|
269
|
+
connectionPool: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
270
|
+
max: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
271
|
+
min: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
272
|
+
idleTimeoutMillis: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
273
|
+
acquireTimeoutMillis: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
274
|
+
}, "strip", z.ZodTypeAny, {
|
|
275
|
+
max?: number;
|
|
276
|
+
min?: number;
|
|
277
|
+
idleTimeoutMillis?: number;
|
|
278
|
+
acquireTimeoutMillis?: number;
|
|
279
|
+
}, {
|
|
280
|
+
max?: number;
|
|
281
|
+
min?: number;
|
|
282
|
+
idleTimeoutMillis?: number;
|
|
283
|
+
acquireTimeoutMillis?: number;
|
|
284
|
+
}>>>;
|
|
162
285
|
}, "strip", z.ZodTypeAny, {
|
|
163
286
|
connectionTimeout?: number;
|
|
164
287
|
requestTimeout?: number;
|
|
165
288
|
metadataCacheRefreshInterval?: number;
|
|
166
289
|
dbReadOnlyUsername?: string;
|
|
167
290
|
dbReadOnlyPassword?: string;
|
|
291
|
+
connectionPool?: {
|
|
292
|
+
max?: number;
|
|
293
|
+
min?: number;
|
|
294
|
+
idleTimeoutMillis?: number;
|
|
295
|
+
acquireTimeoutMillis?: number;
|
|
296
|
+
};
|
|
168
297
|
}, {
|
|
169
298
|
connectionTimeout?: number;
|
|
170
299
|
requestTimeout?: number;
|
|
171
300
|
metadataCacheRefreshInterval?: number;
|
|
172
301
|
dbReadOnlyUsername?: string;
|
|
173
302
|
dbReadOnlyPassword?: string;
|
|
303
|
+
connectionPool?: {
|
|
304
|
+
max?: number;
|
|
305
|
+
min?: number;
|
|
306
|
+
idleTimeoutMillis?: number;
|
|
307
|
+
acquireTimeoutMillis?: number;
|
|
308
|
+
};
|
|
174
309
|
}>;
|
|
175
310
|
viewingSystem: z.ZodOptional<z.ZodObject<{
|
|
176
311
|
enableSmartFilters: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -244,6 +379,63 @@ declare const configInfoSchema: z.ZodObject<{
|
|
|
244
379
|
learningCycleURL?: string;
|
|
245
380
|
learningCycleIntervalInMinutes?: number;
|
|
246
381
|
}>>;
|
|
382
|
+
sqlLogging: z.ZodOptional<z.ZodObject<{
|
|
383
|
+
enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
384
|
+
defaultOptions: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
385
|
+
formatAsMigration: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
386
|
+
statementTypes: z.ZodDefault<z.ZodOptional<z.ZodEnum<["queries", "mutations", "both"]>>>;
|
|
387
|
+
batchSeparator: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
388
|
+
prettyPrint: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
389
|
+
logRecordChangeMetadata: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
390
|
+
retainEmptyLogFiles: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
391
|
+
}, "strip", z.ZodTypeAny, {
|
|
392
|
+
formatAsMigration?: boolean;
|
|
393
|
+
statementTypes?: "queries" | "mutations" | "both";
|
|
394
|
+
batchSeparator?: string;
|
|
395
|
+
prettyPrint?: boolean;
|
|
396
|
+
logRecordChangeMetadata?: boolean;
|
|
397
|
+
retainEmptyLogFiles?: boolean;
|
|
398
|
+
}, {
|
|
399
|
+
formatAsMigration?: boolean;
|
|
400
|
+
statementTypes?: "queries" | "mutations" | "both";
|
|
401
|
+
batchSeparator?: string;
|
|
402
|
+
prettyPrint?: boolean;
|
|
403
|
+
logRecordChangeMetadata?: boolean;
|
|
404
|
+
retainEmptyLogFiles?: boolean;
|
|
405
|
+
}>>>;
|
|
406
|
+
allowedLogDirectory: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
407
|
+
maxActiveSessions: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
408
|
+
autoCleanupEmptyFiles: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
409
|
+
sessionTimeout: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
410
|
+
}, "strip", z.ZodTypeAny, {
|
|
411
|
+
enabled?: boolean;
|
|
412
|
+
defaultOptions?: {
|
|
413
|
+
formatAsMigration?: boolean;
|
|
414
|
+
statementTypes?: "queries" | "mutations" | "both";
|
|
415
|
+
batchSeparator?: string;
|
|
416
|
+
prettyPrint?: boolean;
|
|
417
|
+
logRecordChangeMetadata?: boolean;
|
|
418
|
+
retainEmptyLogFiles?: boolean;
|
|
419
|
+
};
|
|
420
|
+
allowedLogDirectory?: string;
|
|
421
|
+
maxActiveSessions?: number;
|
|
422
|
+
autoCleanupEmptyFiles?: boolean;
|
|
423
|
+
sessionTimeout?: number;
|
|
424
|
+
}, {
|
|
425
|
+
enabled?: boolean;
|
|
426
|
+
defaultOptions?: {
|
|
427
|
+
formatAsMigration?: boolean;
|
|
428
|
+
statementTypes?: "queries" | "mutations" | "both";
|
|
429
|
+
batchSeparator?: string;
|
|
430
|
+
prettyPrint?: boolean;
|
|
431
|
+
logRecordChangeMetadata?: boolean;
|
|
432
|
+
retainEmptyLogFiles?: boolean;
|
|
433
|
+
};
|
|
434
|
+
allowedLogDirectory?: string;
|
|
435
|
+
maxActiveSessions?: number;
|
|
436
|
+
autoCleanupEmptyFiles?: boolean;
|
|
437
|
+
sessionTimeout?: number;
|
|
438
|
+
}>>;
|
|
247
439
|
apiKey: z.ZodOptional<z.ZodString>;
|
|
248
440
|
baseUrl: z.ZodOptional<z.ZodString>;
|
|
249
441
|
dbHost: z.ZodDefault<z.ZodString>;
|
|
@@ -290,6 +482,12 @@ declare const configInfoSchema: z.ZodObject<{
|
|
|
290
482
|
metadataCacheRefreshInterval?: number;
|
|
291
483
|
dbReadOnlyUsername?: string;
|
|
292
484
|
dbReadOnlyPassword?: string;
|
|
485
|
+
connectionPool?: {
|
|
486
|
+
max?: number;
|
|
487
|
+
min?: number;
|
|
488
|
+
idleTimeoutMillis?: number;
|
|
489
|
+
acquireTimeoutMillis?: number;
|
|
490
|
+
};
|
|
293
491
|
};
|
|
294
492
|
viewingSystem?: {
|
|
295
493
|
enableSmartFilters?: boolean;
|
|
@@ -315,6 +513,21 @@ declare const configInfoSchema: z.ZodObject<{
|
|
|
315
513
|
learningCycleURL?: string;
|
|
316
514
|
learningCycleIntervalInMinutes?: number;
|
|
317
515
|
};
|
|
516
|
+
sqlLogging?: {
|
|
517
|
+
enabled?: boolean;
|
|
518
|
+
defaultOptions?: {
|
|
519
|
+
formatAsMigration?: boolean;
|
|
520
|
+
statementTypes?: "queries" | "mutations" | "both";
|
|
521
|
+
batchSeparator?: string;
|
|
522
|
+
prettyPrint?: boolean;
|
|
523
|
+
logRecordChangeMetadata?: boolean;
|
|
524
|
+
retainEmptyLogFiles?: boolean;
|
|
525
|
+
};
|
|
526
|
+
allowedLogDirectory?: string;
|
|
527
|
+
maxActiveSessions?: number;
|
|
528
|
+
autoCleanupEmptyFiles?: boolean;
|
|
529
|
+
sessionTimeout?: number;
|
|
530
|
+
};
|
|
318
531
|
baseUrl?: string;
|
|
319
532
|
dbHost?: string;
|
|
320
533
|
dbDatabase?: string;
|
|
@@ -358,6 +571,12 @@ declare const configInfoSchema: z.ZodObject<{
|
|
|
358
571
|
metadataCacheRefreshInterval?: number;
|
|
359
572
|
dbReadOnlyUsername?: string;
|
|
360
573
|
dbReadOnlyPassword?: string;
|
|
574
|
+
connectionPool?: {
|
|
575
|
+
max?: number;
|
|
576
|
+
min?: number;
|
|
577
|
+
idleTimeoutMillis?: number;
|
|
578
|
+
acquireTimeoutMillis?: number;
|
|
579
|
+
};
|
|
361
580
|
};
|
|
362
581
|
viewingSystem?: {
|
|
363
582
|
enableSmartFilters?: boolean;
|
|
@@ -383,6 +602,21 @@ declare const configInfoSchema: z.ZodObject<{
|
|
|
383
602
|
learningCycleURL?: string;
|
|
384
603
|
learningCycleIntervalInMinutes?: number;
|
|
385
604
|
};
|
|
605
|
+
sqlLogging?: {
|
|
606
|
+
enabled?: boolean;
|
|
607
|
+
defaultOptions?: {
|
|
608
|
+
formatAsMigration?: boolean;
|
|
609
|
+
statementTypes?: "queries" | "mutations" | "both";
|
|
610
|
+
batchSeparator?: string;
|
|
611
|
+
prettyPrint?: boolean;
|
|
612
|
+
logRecordChangeMetadata?: boolean;
|
|
613
|
+
retainEmptyLogFiles?: boolean;
|
|
614
|
+
};
|
|
615
|
+
allowedLogDirectory?: string;
|
|
616
|
+
maxActiveSessions?: number;
|
|
617
|
+
autoCleanupEmptyFiles?: boolean;
|
|
618
|
+
sessionTimeout?: number;
|
|
619
|
+
};
|
|
386
620
|
baseUrl?: string;
|
|
387
621
|
dbHost?: string;
|
|
388
622
|
dbDatabase?: string;
|
|
@@ -411,9 +645,17 @@ export type DatabaseSettingsInfo = z.infer<typeof databaseSettingsInfoSchema>;
|
|
|
411
645
|
export type ViewingSystemSettingsInfo = z.infer<typeof viewingSystemInfoSchema>;
|
|
412
646
|
export type RESTApiOptions = z.infer<typeof restApiOptionsSchema>;
|
|
413
647
|
export type AskSkipInfo = z.infer<typeof askSkipInfoSchema>;
|
|
648
|
+
export type SqlLoggingOptions = z.infer<typeof sqlLoggingOptionsSchema>;
|
|
649
|
+
export type SqlLoggingInfo = z.infer<typeof sqlLoggingSchema>;
|
|
414
650
|
export type ConfigInfo = z.infer<typeof configInfoSchema>;
|
|
415
651
|
export declare const configInfo: ConfigInfo;
|
|
416
|
-
export declare const dbUsername: string, dbPassword: string, dbHost: string, dbDatabase: string, dbPort: number, dbTrustServerCertificate: "Y" | "N", dbInstanceName: string, graphqlPort: number, ___codeGenAPIURL: string, ___codeGenAPIPort: number, ___codeGenAPISubmissionDelay: number, graphqlRootPath: string, webClientID: string, tenantID: string, enableIntrospection: boolean, websiteRunFromPackage: number, userEmailMap: Record<string, string>, auth0Domain: string, auth0WebClientID: string, auth0ClientSecret: string, apiKey: string, baseUrl: string, mj_core_schema: string, dbReadOnlyUsername: string, dbReadOnlyPassword: string
|
|
652
|
+
export declare const dbUsername: string, dbPassword: string, dbHost: string, dbDatabase: string, dbPort: number, dbTrustServerCertificate: "Y" | "N", dbInstanceName: string, graphqlPort: number, ___codeGenAPIURL: string, ___codeGenAPIPort: number, ___codeGenAPISubmissionDelay: number, graphqlRootPath: string, webClientID: string, tenantID: string, enableIntrospection: boolean, websiteRunFromPackage: number, userEmailMap: Record<string, string>, auth0Domain: string, auth0WebClientID: string, auth0ClientSecret: string, apiKey: string, baseUrl: string, mj_core_schema: string, dbReadOnlyUsername: string, dbReadOnlyPassword: string, RESTApiOptions: {
|
|
653
|
+
enabled?: boolean;
|
|
654
|
+
includeEntities?: string[];
|
|
655
|
+
excludeEntities?: string[];
|
|
656
|
+
includeSchemas?: string[];
|
|
657
|
+
excludeSchemas?: string[];
|
|
658
|
+
};
|
|
417
659
|
export declare function loadConfig(): {
|
|
418
660
|
dbReadOnlyUsername?: string;
|
|
419
661
|
dbReadOnlyPassword?: string;
|
|
@@ -435,6 +677,12 @@ export declare function loadConfig(): {
|
|
|
435
677
|
metadataCacheRefreshInterval?: number;
|
|
436
678
|
dbReadOnlyUsername?: string;
|
|
437
679
|
dbReadOnlyPassword?: string;
|
|
680
|
+
connectionPool?: {
|
|
681
|
+
max?: number;
|
|
682
|
+
min?: number;
|
|
683
|
+
idleTimeoutMillis?: number;
|
|
684
|
+
acquireTimeoutMillis?: number;
|
|
685
|
+
};
|
|
438
686
|
};
|
|
439
687
|
viewingSystem?: {
|
|
440
688
|
enableSmartFilters?: boolean;
|
|
@@ -460,6 +708,21 @@ export declare function loadConfig(): {
|
|
|
460
708
|
learningCycleURL?: string;
|
|
461
709
|
learningCycleIntervalInMinutes?: number;
|
|
462
710
|
};
|
|
711
|
+
sqlLogging?: {
|
|
712
|
+
enabled?: boolean;
|
|
713
|
+
defaultOptions?: {
|
|
714
|
+
formatAsMigration?: boolean;
|
|
715
|
+
statementTypes?: "queries" | "mutations" | "both";
|
|
716
|
+
batchSeparator?: string;
|
|
717
|
+
prettyPrint?: boolean;
|
|
718
|
+
logRecordChangeMetadata?: boolean;
|
|
719
|
+
retainEmptyLogFiles?: boolean;
|
|
720
|
+
};
|
|
721
|
+
allowedLogDirectory?: string;
|
|
722
|
+
maxActiveSessions?: number;
|
|
723
|
+
autoCleanupEmptyFiles?: boolean;
|
|
724
|
+
sessionTimeout?: number;
|
|
725
|
+
};
|
|
463
726
|
baseUrl?: string;
|
|
464
727
|
dbHost?: string;
|
|
465
728
|
dbDatabase?: string;
|
package/dist/config.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,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;;;;;;EAYzB"}
|
package/dist/config.js
CHANGED
|
@@ -19,6 +19,12 @@ const databaseSettingsInfoSchema = z.object({
|
|
|
19
19
|
metadataCacheRefreshInterval: z.number(),
|
|
20
20
|
dbReadOnlyUsername: z.string().optional(),
|
|
21
21
|
dbReadOnlyPassword: z.string().optional(),
|
|
22
|
+
connectionPool: z.object({
|
|
23
|
+
max: z.number().optional().default(50),
|
|
24
|
+
min: z.number().optional().default(5),
|
|
25
|
+
idleTimeoutMillis: z.number().optional().default(30000),
|
|
26
|
+
acquireTimeoutMillis: z.number().optional().default(30000),
|
|
27
|
+
}).optional().default({}),
|
|
22
28
|
});
|
|
23
29
|
const viewingSystemInfoSchema = z.object({
|
|
24
30
|
enableSmartFilters: z.boolean().optional(),
|
|
@@ -66,12 +72,29 @@ const askSkipInfoSchema = z.object({
|
|
|
66
72
|
learningCycleURL: z.string().optional(),
|
|
67
73
|
learningCycleIntervalInMinutes: z.coerce.number().optional(),
|
|
68
74
|
});
|
|
75
|
+
const sqlLoggingOptionsSchema = z.object({
|
|
76
|
+
formatAsMigration: z.boolean().optional().default(false),
|
|
77
|
+
statementTypes: z.enum(['queries', 'mutations', 'both']).optional().default('both'),
|
|
78
|
+
batchSeparator: z.string().optional().default('GO'),
|
|
79
|
+
prettyPrint: z.boolean().optional().default(true),
|
|
80
|
+
logRecordChangeMetadata: z.boolean().optional().default(false),
|
|
81
|
+
retainEmptyLogFiles: z.boolean().optional().default(false),
|
|
82
|
+
});
|
|
83
|
+
const sqlLoggingSchema = z.object({
|
|
84
|
+
enabled: z.boolean().optional().default(false),
|
|
85
|
+
defaultOptions: sqlLoggingOptionsSchema.optional().default({}),
|
|
86
|
+
allowedLogDirectory: z.string().optional().default('./logs/sql'),
|
|
87
|
+
maxActiveSessions: z.number().optional().default(5),
|
|
88
|
+
autoCleanupEmptyFiles: z.boolean().optional().default(true),
|
|
89
|
+
sessionTimeout: z.number().optional().default(3600000),
|
|
90
|
+
});
|
|
69
91
|
const configInfoSchema = z.object({
|
|
70
92
|
userHandling: userHandlingInfoSchema,
|
|
71
93
|
databaseSettings: databaseSettingsInfoSchema,
|
|
72
94
|
viewingSystem: viewingSystemInfoSchema.optional(),
|
|
73
95
|
restApiOptions: restApiOptionsSchema.optional().default({}),
|
|
74
96
|
askSkip: askSkipInfoSchema.optional(),
|
|
97
|
+
sqlLogging: sqlLoggingSchema.optional(),
|
|
75
98
|
apiKey: z.string().optional(),
|
|
76
99
|
baseUrl: z.string().optional(),
|
|
77
100
|
dbHost: z.string().default('localhost'),
|
|
@@ -105,7 +128,7 @@ const configInfoSchema = z.object({
|
|
|
105
128
|
mjCoreSchema: z.string(),
|
|
106
129
|
});
|
|
107
130
|
export const configInfo = loadConfig();
|
|
108
|
-
export const { dbUsername, dbPassword, dbHost, dbDatabase, dbPort, dbTrustServerCertificate, dbInstanceName, graphqlPort, ___codeGenAPIURL, ___codeGenAPIPort, ___codeGenAPISubmissionDelay, graphqlRootPath, webClientID, tenantID, enableIntrospection, websiteRunFromPackage, userEmailMap, auth0Domain, auth0WebClientID, auth0ClientSecret, apiKey, baseUrl, mjCoreSchema: mj_core_schema, dbReadOnlyUsername, dbReadOnlyPassword, } = configInfo;
|
|
131
|
+
export const { dbUsername, dbPassword, dbHost, dbDatabase, dbPort, dbTrustServerCertificate, dbInstanceName, graphqlPort, ___codeGenAPIURL, ___codeGenAPIPort, ___codeGenAPISubmissionDelay, graphqlRootPath, webClientID, tenantID, enableIntrospection, websiteRunFromPackage, userEmailMap, auth0Domain, auth0WebClientID, auth0ClientSecret, apiKey, baseUrl, mjCoreSchema: mj_core_schema, dbReadOnlyUsername, dbReadOnlyPassword, restApiOptions: RESTApiOptions, } = configInfo;
|
|
109
132
|
export function loadConfig() {
|
|
110
133
|
const configSearchResult = explorer.search(process.cwd());
|
|
111
134
|
if (configSearchResult.isEmpty) {
|
package/dist/config.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["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C5B,kBAAkB,EAClB,kBAAkB,EAClB,cAAc,EAAE,cAAc,GAC/B,GAAG,UAAU,CAAC;AAEf,MAAM,UAAU,UAAU;IACxB,MAAM,kBAAkB,GAAG,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC;IAE1D,IAAI,kBAAkB,CAAC,OAAO,EAAE,CAAC;QAC/B,MAAM,IAAI,KAAK,CAAC,eAAe,kBAAkB,CAAC,QAAQ,8BAA8B,CAAC,CAAC;IAC5F,CAAC;IAED,MAAM,aAAa,GAAG,gBAAgB,CAAC,SAAS,CAAC,kBAAkB,CAAC,MAAM,CAAC,CAAC;IAC5E,IAAI,CAAC,aAAa,CAAC,OAAO,EAAE,CAAC;QAC3B,QAAQ,CAAC,2BAA2B,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,aAAa,CAAC,KAAK,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;IACnG,CAAC;IACD,OAAO,aAAa,CAAC,IAAI,CAAC;AAC5B,CAAC"}
|
|
@@ -6857,6 +6857,7 @@ export declare class ActionExecutionLog_ {
|
|
|
6857
6857
|
RetentionPeriod?: number;
|
|
6858
6858
|
_mj__CreatedAt: Date;
|
|
6859
6859
|
_mj__UpdatedAt: Date;
|
|
6860
|
+
Message?: string;
|
|
6860
6861
|
Action: string;
|
|
6861
6862
|
User: string;
|
|
6862
6863
|
}
|
|
@@ -6869,6 +6870,7 @@ export declare class CreateActionExecutionLogInput {
|
|
|
6869
6870
|
ResultCode: string | null;
|
|
6870
6871
|
UserID?: string;
|
|
6871
6872
|
RetentionPeriod: number | null;
|
|
6873
|
+
Message: string | null;
|
|
6872
6874
|
}
|
|
6873
6875
|
export declare class UpdateActionExecutionLogInput {
|
|
6874
6876
|
ID: string;
|
|
@@ -6879,6 +6881,7 @@ export declare class UpdateActionExecutionLogInput {
|
|
|
6879
6881
|
ResultCode?: string | null;
|
|
6880
6882
|
UserID?: string;
|
|
6881
6883
|
RetentionPeriod?: number | null;
|
|
6884
|
+
Message?: string | null;
|
|
6882
6885
|
OldValues___?: KeyValuePairInput[];
|
|
6883
6886
|
}
|
|
6884
6887
|
export declare class RunActionExecutionLogViewResult {
|