@memberjunction/codegen-lib 2.48.0 → 2.50.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.
Files changed (78) hide show
  1. package/dist/Angular/angular-codegen.d.ts +164 -6
  2. package/dist/Angular/angular-codegen.d.ts.map +1 -1
  3. package/dist/Angular/angular-codegen.js +177 -13
  4. package/dist/Angular/angular-codegen.js.map +1 -1
  5. package/dist/Angular/join-grid-related-entity-component.d.ts +52 -3
  6. package/dist/Angular/join-grid-related-entity-component.d.ts.map +1 -1
  7. package/dist/Angular/join-grid-related-entity-component.js +58 -3
  8. package/dist/Angular/join-grid-related-entity-component.js.map +1 -1
  9. package/dist/Angular/related-entity-components.d.ts +99 -42
  10. package/dist/Angular/related-entity-components.d.ts.map +1 -1
  11. package/dist/Angular/related-entity-components.js +116 -26
  12. package/dist/Angular/related-entity-components.js.map +1 -1
  13. package/dist/Angular/timeline-related-entity-component.d.ts +46 -7
  14. package/dist/Angular/timeline-related-entity-component.d.ts.map +1 -1
  15. package/dist/Angular/timeline-related-entity-component.js +64 -7
  16. package/dist/Angular/timeline-related-entity-component.js.map +1 -1
  17. package/dist/Angular/user-view-grid-related-entity-component.d.ts +33 -1
  18. package/dist/Angular/user-view-grid-related-entity-component.d.ts.map +1 -1
  19. package/dist/Angular/user-view-grid-related-entity-component.js +33 -1
  20. package/dist/Angular/user-view-grid-related-entity-component.js.map +1 -1
  21. package/dist/Config/config.d.ts +369 -45
  22. package/dist/Config/config.d.ts.map +1 -1
  23. package/dist/Config/config.js +136 -2
  24. package/dist/Config/config.js.map +1 -1
  25. package/dist/Config/db-connection.d.ts +17 -3
  26. package/dist/Config/db-connection.d.ts.map +1 -1
  27. package/dist/Config/db-connection.js +31 -19
  28. package/dist/Config/db-connection.js.map +1 -1
  29. package/dist/Database/dbSchema.d.ts +44 -1
  30. package/dist/Database/dbSchema.d.ts.map +1 -1
  31. package/dist/Database/dbSchema.js +44 -1
  32. package/dist/Database/dbSchema.js.map +1 -1
  33. package/dist/Database/manage-metadata.d.ts +52 -46
  34. package/dist/Database/manage-metadata.d.ts.map +1 -1
  35. package/dist/Database/manage-metadata.js +221 -167
  36. package/dist/Database/manage-metadata.js.map +1 -1
  37. package/dist/Database/reorder-columns.d.ts +2 -2
  38. package/dist/Database/reorder-columns.d.ts.map +1 -1
  39. package/dist/Database/reorder-columns.js +23 -17
  40. package/dist/Database/reorder-columns.js.map +1 -1
  41. package/dist/Database/sql.d.ts +4 -4
  42. package/dist/Database/sql.d.ts.map +1 -1
  43. package/dist/Database/sql.js +2 -2
  44. package/dist/Database/sql.js.map +1 -1
  45. package/dist/Database/sql_codegen.d.ts +15 -15
  46. package/dist/Database/sql_codegen.d.ts.map +1 -1
  47. package/dist/Database/sql_codegen.js +184 -112
  48. package/dist/Database/sql_codegen.js.map +1 -1
  49. package/dist/Misc/advanced_generation.js +81 -81
  50. package/dist/Misc/advanced_generation.js.map +1 -1
  51. package/dist/Misc/entity_subclasses_codegen.d.ts +5 -5
  52. package/dist/Misc/entity_subclasses_codegen.d.ts.map +1 -1
  53. package/dist/Misc/entity_subclasses_codegen.js +10 -8
  54. package/dist/Misc/entity_subclasses_codegen.js.map +1 -1
  55. package/dist/Misc/graphql_server_codegen.d.ts.map +1 -1
  56. package/dist/Misc/graphql_server_codegen.js +33 -28
  57. package/dist/Misc/graphql_server_codegen.js.map +1 -1
  58. package/dist/Misc/sql_logging.d.ts +2 -2
  59. package/dist/Misc/sql_logging.d.ts.map +1 -1
  60. package/dist/Misc/sql_logging.js +4 -3
  61. package/dist/Misc/sql_logging.js.map +1 -1
  62. package/dist/Misc/status_logging.d.ts +37 -0
  63. package/dist/Misc/status_logging.d.ts.map +1 -1
  64. package/dist/Misc/status_logging.js +145 -3
  65. package/dist/Misc/status_logging.js.map +1 -1
  66. package/dist/Misc/system_integrity.d.ts +9 -9
  67. package/dist/Misc/system_integrity.d.ts.map +1 -1
  68. package/dist/Misc/system_integrity.js +23 -21
  69. package/dist/Misc/system_integrity.js.map +1 -1
  70. package/dist/index.d.ts +45 -7
  71. package/dist/index.d.ts.map +1 -1
  72. package/dist/index.js +51 -7
  73. package/dist/index.js.map +1 -1
  74. package/dist/runCodeGen.d.ts +84 -6
  75. package/dist/runCodeGen.d.ts.map +1 -1
  76. package/dist/runCodeGen.js +242 -82
  77. package/dist/runCodeGen.js.map +1 -1
  78. package/package.json +14 -14
@@ -1,4 +1,10 @@
1
1
  "use strict";
2
+ /**
3
+ * Main orchestrator for the MemberJunction code generation process.
4
+ * Coordinates all aspects of code generation including database schema analysis,
5
+ * metadata management, SQL generation, TypeScript entities, Angular components,
6
+ * GraphQL resolvers, and more.
7
+ */
2
8
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
9
  if (k2 === undefined) k2 = k;
4
10
  var desc = Object.getOwnPropertyDescriptor(m, k);
@@ -28,7 +34,7 @@ const graphql_server_codegen_1 = require("./Misc/graphql_server_codegen");
28
34
  const sql_codegen_1 = require("./Database/sql_codegen");
29
35
  const entity_subclasses_codegen_1 = require("./Misc/entity_subclasses_codegen");
30
36
  const sqlserver_dataprovider_1 = require("@memberjunction/sqlserver-dataprovider");
31
- const db_connection_1 = __importStar(require("./Config/db-connection"));
37
+ const db_connection_1 = require("./Config/db-connection");
32
38
  const manage_metadata_1 = require("./Database/manage-metadata");
33
39
  const config_1 = require("./Config/config");
34
40
  const status_logging_1 = require("./Misc/status_logging");
@@ -43,64 +49,114 @@ const action_subclasses_codegen_1 = require("./Misc/action_subclasses_codegen");
43
49
  const sql_logging_1 = require("./Misc/sql_logging");
44
50
  const system_integrity_1 = require("./Misc/system_integrity");
45
51
  const actions_base_1 = require("@memberjunction/actions-base");
52
+ /** Extract core schema name from configuration */
46
53
  const { mjCoreSchema } = config_1.configInfo;
47
54
  /**
48
- * This class is the main entry point for running the code generation process. It will handle all the steps required to generate the code for the MemberJunction system. You can sub-class this class
49
- * and override specific methods as desired to customize the code generation process.
55
+ * Main orchestrator class for the MemberJunction code generation process.
56
+ *
57
+ * This class coordinates a comprehensive code generation pipeline that transforms
58
+ * database schemas into a complete, type-safe, full-stack application. The process includes:
59
+ *
60
+ * **Pipeline Steps:**
61
+ * 1. **Database Setup** - Initialize connections and metadata
62
+ * 2. **Metadata Management** - Analyze schema changes and update metadata
63
+ * 3. **SQL Generation** - Create views, procedures, and indexes
64
+ * 4. **TypeScript Entities** - Generate entity classes with validation
65
+ * 5. **Angular Components** - Create forms and UI components
66
+ * 6. **GraphQL Resolvers** - Generate API endpoints
67
+ * 7. **Action Classes** - Create business logic containers
68
+ * 8. **Documentation** - Generate schema JSON for AI/documentation
69
+ * 9. **Post-processing** - Run commands and integrity checks
70
+ *
71
+ * **Customization:**
72
+ * You can sub-class this class and override specific methods to customize
73
+ * the code generation process for your specific needs.
74
+ *
75
+ * @example
76
+ * ```typescript
77
+ * const codeGen = new RunCodeGenBase();
78
+ * await codeGen.Run(); // Full generation
79
+ * await codeGen.Run(true); // Skip database operations
80
+ * ```
50
81
  */
51
82
  class RunCodeGenBase {
52
83
  /**
53
- * This method is called to setup the data source for the code generation process. You can override this method to customize the data source setup process.
84
+ * Sets up the SQL Server data source and initializes the MemberJunction core metadata.
85
+ * This method establishes the database connection pool and configures the data provider
86
+ * that will be used throughout the code generation process.
87
+ *
88
+ * Override this method to customize the data source setup process for different
89
+ * database providers or connection configurations.
90
+ *
91
+ * @returns Promise resolving to the configured SQLServerDataProvider instance
92
+ * @throws Error if connection setup fails
54
93
  */
55
94
  async setupDataSource() {
56
95
  /****************************************************************************************
57
96
  // First, setup the data source and make sure the metadata and related stuff for MJCore is initialized
58
97
  ****************************************************************************************/
59
- (0, status_logging_1.logStatus)('Initializing Data Source...');
60
- await db_connection_1.default.initialize()
61
- .then(() => {
62
- (0, status_logging_1.logStatus)('Data Source has been initialized!');
63
- })
64
- .catch((err) => {
65
- (0, status_logging_1.logError)('Error during Data Source initialization', err);
66
- });
98
+ (0, status_logging_1.startSpinner)('Initializing database connection...');
67
99
  const pool = await (0, db_connection_1.MSSQLConnection)(); // get the MSSQL connection pool
68
- const config = new sqlserver_dataprovider_2.SQLServerProviderConfigData(db_connection_1.default, '', (0, config_1.mj_core_schema)(), 0);
100
+ const config = new sqlserver_dataprovider_2.SQLServerProviderConfigData(pool, '', (0, config_1.mj_core_schema)(), 0);
69
101
  const sqlServerProvider = await (0, sqlserver_dataprovider_1.setupSQLServerClient)(config);
102
+ (0, status_logging_1.succeedSpinner)('Database connection initialized');
70
103
  return sqlServerProvider;
71
104
  }
72
105
  /**
73
- * Main entry point to run the code generation process. This method will handle all the steps required to generate the code for the MemberJunction system. You can sub-class this class and
74
- * override this method to customize the code generation process.
75
- * @param skipDatabaseGeneration
106
+ * Main entry point for the complete code generation process.
107
+ *
108
+ * Orchestrates the entire pipeline from database schema analysis to final code output.
109
+ * The process is highly configurable through the configuration file and can be
110
+ * partially skipped for faster iteration during development.
111
+ *
112
+ * **Process Flow:**
113
+ * 1. Initialize data sources and user context
114
+ * 2. Execute pre-generation commands and scripts
115
+ * 3. Manage metadata and schema changes
116
+ * 4. Generate SQL objects (views, procedures, indexes)
117
+ * 5. Generate TypeScript entity classes
118
+ * 6. Generate Angular UI components
119
+ * 7. Generate GraphQL API resolvers
120
+ * 8. Generate Action business logic classes
121
+ * 9. Create documentation JSON
122
+ * 10. Run integrity checks
123
+ * 11. Execute post-generation commands
124
+ *
125
+ * @param skipDatabaseGeneration If true, skips all database-related operations
126
+ * (metadata management, SQL generation). Useful for faster UI-only regeneration.
127
+ * @throws Error if any critical step fails
128
+ * @returns Promise that resolves when generation is complete
76
129
  */
77
130
  async Run(skipDatabaseGeneration = false) {
78
131
  try {
79
132
  const startTime = new Date();
80
- (0, status_logging_1.logStatus)('\n\nSTARTING MJ CodeGen Run... @ ' + startTime.toLocaleString());
133
+ (0, status_logging_1.startSpinner)(`Starting MemberJunction CodeGen @ ${startTime.toLocaleString()}`);
81
134
  const provider = await this.setupDataSource();
82
- await sqlserver_dataprovider_1.UserCache.Instance.Refresh(db_connection_1.default);
135
+ (0, status_logging_1.updateSpinner)('Loading user cache and metadata...');
136
+ const pool = await (0, db_connection_1.MSSQLConnection)();
137
+ await sqlserver_dataprovider_1.UserCache.Instance.Refresh(pool);
83
138
  const userMatch = sqlserver_dataprovider_1.UserCache.Users.find((u) => u?.Type?.trim().toLowerCase() === 'owner');
84
139
  const currentUser = userMatch ? userMatch : sqlserver_dataprovider_1.UserCache.Users[0]; // if we don't find an Owner, use the first user in the cache
85
140
  // get the entity metadata
86
141
  const md = new MJ.Metadata();
87
142
  if (md.Entities.length === 0) {
88
- (0, status_logging_1.logError)('No entities found in metadata, exiting...'); // TODO: add a way to generate the metadata if it doesn't exist
143
+ (0, status_logging_1.failSpinner)('No entities found in metadata');
89
144
  process.exit(1);
90
145
  }
146
+ (0, status_logging_1.succeedSpinner)(`Loaded ${md.Entities.length} entities from metadata`);
91
147
  const runCommandsObject = global_1.MJGlobal.Instance.ClassFactory.CreateInstance(runCommand_1.RunCommandsBase);
92
148
  const sqlCodeGenObject = global_1.MJGlobal.Instance.ClassFactory.CreateInstance(sql_codegen_1.SQLCodeGenBase);
93
149
  // check to see if the user wants to skip database generation via the config settings
94
150
  const skipDB = skipDatabaseGeneration || (0, config_1.getSettingValue)('skip_database_generation', false);
95
151
  if (!skipDB) {
96
- (0, status_logging_1.logStatus)('Handling SQL Script Execution, Metadata Maintenance, and SQL Object Generation... (to skip this, set skip_database_generation to true in the config file under settings)');
152
+ (0, status_logging_1.startSpinner)('Handling SQL Script Execution, Metadata Maintenance, and SQL Object Generation...');
97
153
  sql_logging_1.SQLLogging.initSQLLogging(); // initialize the SQL Logging functionality
98
154
  /****************************************************************************************
99
155
  // STEP 0 --- Precursor Step execute any commands specified in the config file
100
156
  ****************************************************************************************/
101
157
  const beforeCommands = (0, config_1.commands)('BEFORE');
102
158
  if (beforeCommands && beforeCommands.length > 0) {
103
- (0, status_logging_1.logStatus)('Executing BEFORE commands...');
159
+ (0, status_logging_1.updateSpinner)('Executing BEFORE commands...');
104
160
  const results = await runCommandsObject.runCommands(beforeCommands);
105
161
  if (results.some((r) => !r.success))
106
162
  (0, status_logging_1.logError)('ERROR running one or more BEFORE commands');
@@ -108,13 +164,15 @@ class RunCodeGenBase {
108
164
  /****************************************************************************************
109
165
  // STEP 0.1 --- Execute any before SQL Scripts specified in the config file
110
166
  ****************************************************************************************/
111
- if (!(await sqlCodeGenObject.runCustomSQLScripts(db_connection_1.default, 'before-all')))
167
+ (0, status_logging_1.updateSpinner)('Executing before-all SQL Scripts...');
168
+ if (!(await sqlCodeGenObject.runCustomSQLScripts(pool, 'before-all')))
112
169
  (0, status_logging_1.logError)('ERROR running before-all SQL Scripts');
113
170
  /****************************************************************************************
114
171
  // STEP 0.2 --- Create a new user if there is newUserSetup info in the config file
115
172
  ****************************************************************************************/
116
173
  const newUserSetup = config_1.configInfo.newUserSetup;
117
174
  if (newUserSetup) {
175
+ (0, status_logging_1.updateSpinner)('Setting up new user...');
118
176
  const newUserObject = global_1.MJGlobal.Instance.ClassFactory.CreateInstance(createNewUser_1.CreateNewUserBase);
119
177
  const result = await newUserObject.createNewUser(newUserSetup);
120
178
  if (!result.Success) {
@@ -131,75 +189,106 @@ class RunCodeGenBase {
131
189
  // STEP 1 - Manage Metadata - including generating new metadata as required
132
190
  ****************************************************************************************/
133
191
  const manageMD = global_1.MJGlobal.Instance.ClassFactory.CreateInstance(manage_metadata_1.ManageMetadataBase);
134
- (0, status_logging_1.logStatus)('Managing Metadata...');
135
- const metadataSuccess = await manageMD.manageMetadata(db_connection_1.default, currentUser);
192
+ (0, status_logging_1.updateSpinner)('Managing Metadata...');
193
+ const metadataSuccess = await manageMD.manageMetadata(pool, currentUser);
136
194
  if (!metadataSuccess) {
137
- (0, status_logging_1.logError)('ERROR managing metadata');
195
+ (0, status_logging_1.failSpinner)('ERROR managing metadata');
138
196
  }
139
197
  else {
140
198
  // now - we need to tell our metadata object to refresh itself
141
199
  await provider.Refresh();
200
+ (0, status_logging_1.succeedSpinner)('Metadata management completed');
142
201
  }
143
202
  /****************************************************************************************
144
203
  // STEP 2 - SQL Script Generation
145
204
  ****************************************************************************************/
146
205
  const sqlOutputDir = (0, config_1.outputDir)('SQL', true);
147
206
  if (sqlOutputDir) {
148
- (0, status_logging_1.logStatus)('Managing SQL Scripts and Execution...');
149
- const sqlSuccess = await sqlCodeGenObject.manageSQLScriptsAndExecution(db_connection_1.default, md.Entities, sqlOutputDir, currentUser);
207
+ (0, status_logging_1.startSpinner)('Managing SQL Scripts and Execution...');
208
+ const sqlSuccess = await sqlCodeGenObject.manageSQLScriptsAndExecution(pool, md.Entities, sqlOutputDir, currentUser);
150
209
  if (!sqlSuccess) {
151
- (0, status_logging_1.logError)('Error managing SQL scripts and execution');
210
+ (0, status_logging_1.failSpinner)('Error managing SQL scripts and execution');
211
+ }
212
+ else {
213
+ (0, status_logging_1.succeedSpinner)('SQL scripts and execution completed');
152
214
  }
153
215
  }
154
216
  else {
155
- (0, status_logging_1.logStatus)('SQL output directory NOT found in config file, skipping...');
217
+ (0, status_logging_1.warnSpinner)('SQL output directory NOT found in config file, skipping...');
156
218
  }
157
219
  }
158
220
  else {
159
- (0, status_logging_1.logMessage)('Skipping all database related CodeGen work because skip_database_generation was set to true in the config file under settings', MJ.SeverityType.Warning, false);
221
+ (0, status_logging_1.warnSpinner)('Skipping database generation (skip_database_generation = true)');
160
222
  // we skipped the database generation but we need to load generated code for validators from the database to ensure that we have them
161
223
  // ready for later use.
162
224
  const manageMD = global_1.MJGlobal.Instance.ClassFactory.CreateInstance(manage_metadata_1.ManageMetadataBase);
163
- (0, status_logging_1.logStatus)('Checking/Loading AI Generated Code from Metadata...');
164
- const metadataSuccess = await manageMD.loadGeneratedCode(db_connection_1.default, currentUser);
225
+ (0, status_logging_1.startSpinner)('Checking/Loading AI Generated Code from Metadata...');
226
+ const metadataSuccess = await manageMD.loadGeneratedCode(pool, currentUser);
165
227
  if (!metadataSuccess) {
166
- (0, status_logging_1.logError)('ERROR checking/loading AI Generated Code from Metadata');
228
+ (0, status_logging_1.failSpinner)('ERROR checking/loading AI Generated Code from Metadata');
167
229
  return; // FATAL ERROR - we can't continue
168
230
  }
231
+ else {
232
+ (0, status_logging_1.succeedSpinner)('AI Generated Code loaded from Metadata');
233
+ }
169
234
  }
170
235
  const coreEntities = md.Entities.filter((e) => e.IncludeInAPI).filter((e) => e.SchemaName.trim().toLowerCase() === mjCoreSchema.trim().toLowerCase());
171
236
  const nonCoreEntities = md.Entities.filter((e) => e.IncludeInAPI).filter((e) => e.SchemaName.trim().toLowerCase() !== mjCoreSchema.trim().toLowerCase());
237
+ // Check if we're in verbose mode to determine spinner behavior
238
+ const isVerbose = config_1.configInfo?.verboseOutput ?? false;
239
+ if (!isVerbose) {
240
+ // In non-verbose mode, start a single spinner for all TypeScript generation
241
+ (0, status_logging_1.startSpinner)('Generating TypeScript code...');
242
+ }
172
243
  /****************************************************************************************
173
244
  // STEP 3(a) - GraphQL Server Code Gen
174
245
  ****************************************************************************************/
175
246
  const graphQLCoreResolversOutputDir = (0, config_1.outputDir)('GraphQLCoreEntityResolvers', false);
176
247
  if (graphQLCoreResolversOutputDir) {
177
248
  // generate the GraphQL server code
178
- (0, status_logging_1.logStatus)('Generating CORE Entity GraphQL Resolver Code...');
249
+ if (isVerbose)
250
+ (0, status_logging_1.startSpinner)('Generating CORE Entity GraphQL Resolver Code...');
179
251
  const graphQLGenerator = global_1.MJGlobal.Instance.ClassFactory.CreateInstance(graphql_server_codegen_1.GraphQLServerGeneratorBase);
180
- if (!graphQLGenerator.generateGraphQLServerCode(coreEntities, graphQLCoreResolversOutputDir, '@memberjunction/core-entities', true))
181
- (0, status_logging_1.logError)('Error generating GraphQL server code');
252
+ if (!graphQLGenerator.generateGraphQLServerCode(coreEntities, graphQLCoreResolversOutputDir, '@memberjunction/core-entities', true)) {
253
+ (0, status_logging_1.failSpinner)('Error generating GraphQL server code');
254
+ return;
255
+ }
256
+ else if (isVerbose) {
257
+ (0, status_logging_1.succeedSpinner)('CORE Entity GraphQL Resolver Code generated');
258
+ }
182
259
  }
183
260
  const graphqlOutputDir = (0, config_1.outputDir)('GraphQLServer', true);
184
261
  if (graphqlOutputDir) {
185
262
  // generate the GraphQL server code
186
- (0, status_logging_1.logStatus)('Generating GraphQL Resolver Code...');
263
+ if (isVerbose)
264
+ (0, status_logging_1.startSpinner)('Generating GraphQL Resolver Code...');
187
265
  const graphQLGenerator = global_1.MJGlobal.Instance.ClassFactory.CreateInstance(graphql_server_codegen_1.GraphQLServerGeneratorBase);
188
- if (!graphQLGenerator.generateGraphQLServerCode(nonCoreEntities, graphqlOutputDir, 'mj_generatedentities', false))
189
- (0, status_logging_1.logError)('Error generating GraphQL Resolver code');
266
+ if (!graphQLGenerator.generateGraphQLServerCode(nonCoreEntities, graphqlOutputDir, 'mj_generatedentities', false)) {
267
+ (0, status_logging_1.failSpinner)('Error generating GraphQL Resolver code');
268
+ return;
269
+ }
270
+ else if (isVerbose) {
271
+ (0, status_logging_1.succeedSpinner)('GraphQL Resolver Code generated');
272
+ }
273
+ }
274
+ else if (isVerbose) {
275
+ (0, status_logging_1.warnSpinner)('GraphQL server output directory NOT found in config file, skipping...');
190
276
  }
191
- else
192
- (0, status_logging_1.logStatus)('GraphQL server output directory NOT found in config file, skipping...');
193
277
  /****************************************************************************************
194
278
  // STEP 4 - Core Entity Subclass Code Gen
195
279
  ****************************************************************************************/
196
280
  const coreEntitySubClassOutputDir = (0, config_1.outputDir)('CoreEntitySubClasses', false);
197
281
  if (coreEntitySubClassOutputDir && coreEntitySubClassOutputDir.length > 0) {
198
282
  // generate the entity subclass code
199
- (0, status_logging_1.logStatus)('Generating CORE Entity Subclass Code...');
283
+ if (isVerbose)
284
+ (0, status_logging_1.startSpinner)('Generating CORE Entity Subclass Code...');
200
285
  const entitySubClassGeneratorObject = global_1.MJGlobal.Instance.ClassFactory.CreateInstance(entity_subclasses_codegen_1.EntitySubClassGeneratorBase);
201
- if (!await entitySubClassGeneratorObject.generateAllEntitySubClasses(db_connection_1.default, coreEntities, coreEntitySubClassOutputDir, skipDB)) {
202
- (0, status_logging_1.logError)('Error generating entity subclass code');
286
+ if (!await entitySubClassGeneratorObject.generateAllEntitySubClasses(pool, coreEntities, coreEntitySubClassOutputDir, skipDB)) {
287
+ (0, status_logging_1.failSpinner)('Error generating entity subclass code');
288
+ return;
289
+ }
290
+ else if (isVerbose) {
291
+ (0, status_logging_1.succeedSpinner)('CORE Entity Subclass Code generated');
203
292
  }
204
293
  }
205
294
  /****************************************************************************************
@@ -208,14 +297,19 @@ class RunCodeGenBase {
208
297
  const entitySubClassOutputDir = (0, config_1.outputDir)('EntitySubClasses', true);
209
298
  if (entitySubClassOutputDir) {
210
299
  // generate the entity subclass code
211
- (0, status_logging_1.logStatus)('Generating Entity Subclass Code...');
300
+ if (isVerbose)
301
+ (0, status_logging_1.startSpinner)('Generating Entity Subclass Code...');
212
302
  const entitySubClassGeneratorObject = global_1.MJGlobal.Instance.ClassFactory.CreateInstance(entity_subclasses_codegen_1.EntitySubClassGeneratorBase);
213
- if (!await entitySubClassGeneratorObject.generateAllEntitySubClasses(db_connection_1.default, nonCoreEntities, entitySubClassOutputDir, skipDB)) {
214
- (0, status_logging_1.logError)('Error generating entity subclass code');
303
+ if (!await entitySubClassGeneratorObject.generateAllEntitySubClasses(pool, nonCoreEntities, entitySubClassOutputDir, skipDB)) {
304
+ (0, status_logging_1.failSpinner)('Error generating entity subclass code');
305
+ return;
306
+ }
307
+ else if (isVerbose) {
308
+ (0, status_logging_1.succeedSpinner)('Entity Subclass Code generated');
215
309
  }
216
310
  }
217
- else {
218
- (0, status_logging_1.logStatus)('Entity subclass output directory NOT found in config file, skipping...');
311
+ else if (isVerbose) {
312
+ (0, status_logging_1.warnSpinner)('Entity subclass output directory NOT found in config file, skipping...');
219
313
  }
220
314
  /****************************************************************************************
221
315
  // STEP 5 - Angular Code Gen
@@ -223,90 +317,156 @@ class RunCodeGenBase {
223
317
  const angularCoreEntitiesOutputDir = (0, config_1.outputDir)('AngularCoreEntities', false);
224
318
  if (angularCoreEntitiesOutputDir) {
225
319
  // generate the Angular client code
226
- (0, status_logging_1.logStatus)('Generating Angular CORE Entities Code...');
320
+ if (isVerbose)
321
+ (0, status_logging_1.startSpinner)('Generating Angular CORE Entities Code...');
227
322
  const angularGenerator = global_1.MJGlobal.Instance.ClassFactory.CreateInstance(angular_codegen_1.AngularClientGeneratorBase);
228
- if (!(await angularGenerator.generateAngularCode(coreEntities, angularCoreEntitiesOutputDir, 'Core', currentUser)))
229
- (0, status_logging_1.logError)('Error generating Angular CORE Entities code');
323
+ if (!(await angularGenerator.generateAngularCode(coreEntities, angularCoreEntitiesOutputDir, 'Core', currentUser))) {
324
+ (0, status_logging_1.failSpinner)('Error generating Angular CORE Entities code');
325
+ return;
326
+ }
327
+ else if (isVerbose) {
328
+ (0, status_logging_1.succeedSpinner)('Angular CORE Entities Code generated');
329
+ }
230
330
  }
231
331
  const angularOutputDir = (0, config_1.outputDir)('Angular', false);
232
332
  if (angularOutputDir) {
233
333
  // generate the Angular client code
234
- (0, status_logging_1.logStatus)('Generating Angular Code...');
334
+ if (isVerbose)
335
+ (0, status_logging_1.startSpinner)('Generating Angular Code...');
235
336
  const angularGenerator = global_1.MJGlobal.Instance.ClassFactory.CreateInstance(angular_codegen_1.AngularClientGeneratorBase);
236
- if (!(await angularGenerator.generateAngularCode(nonCoreEntities, angularOutputDir, '', currentUser)))
237
- (0, status_logging_1.logError)('Error generating Angular code');
337
+ if (!(await angularGenerator.generateAngularCode(nonCoreEntities, angularOutputDir, '', currentUser))) {
338
+ (0, status_logging_1.failSpinner)('Error generating Angular code');
339
+ return;
340
+ }
341
+ else if (isVerbose) {
342
+ (0, status_logging_1.succeedSpinner)('Angular Code generated');
343
+ }
344
+ }
345
+ else if (isVerbose) {
346
+ (0, status_logging_1.warnSpinner)('Angular output directory NOT found in config file, skipping...');
238
347
  }
239
- else
240
- (0, status_logging_1.logStatus)('Angular output directory NOT found in config file, skipping...');
241
348
  /****************************************************************************************
242
349
  // STEP 6 - Database Schema Output in JSON - for documentation and can be used by AI/etc.
243
350
  ****************************************************************************************/
244
351
  const dbSchemaOutputDir = (0, config_1.outputDir)('DBSchemaJSON', false);
245
352
  if (dbSchemaOutputDir) {
246
353
  // generate the GraphQL client code
247
- (0, status_logging_1.logStatus)('Generating Database Schema JSON Output...');
354
+ if (isVerbose)
355
+ (0, status_logging_1.startSpinner)('Generating Database Schema JSON Output...');
248
356
  const schemaGeneratorObject = global_1.MJGlobal.Instance.ClassFactory.CreateInstance(dbSchema_1.DBSchemaGeneratorBase);
249
- if (!schemaGeneratorObject.generateDBSchemaJSONOutput(md.Entities, dbSchemaOutputDir))
250
- (0, status_logging_1.logError)('Error generating Database Schema JSON Output');
357
+ if (!schemaGeneratorObject.generateDBSchemaJSONOutput(md.Entities, dbSchemaOutputDir)) {
358
+ (0, status_logging_1.failSpinner)('Error generating Database Schema JSON Output');
359
+ return;
360
+ }
361
+ else if (isVerbose) {
362
+ (0, status_logging_1.succeedSpinner)('Database Schema JSON Output generated');
363
+ }
364
+ }
365
+ else if (isVerbose) {
366
+ (0, status_logging_1.warnSpinner)('DB Schema output directory NOT found in config file, skipping...');
251
367
  }
252
- else
253
- (0, status_logging_1.logStatus)('DB Schema output directory NOT found in config file, skipping...');
254
368
  /****************************************************************************************
255
369
  // STEP 7 - Actions Code Gen
256
370
  ****************************************************************************************/
257
371
  const coreActionsOutputDir = (0, config_1.outputDir)('CoreActionSubclasses', false);
258
372
  await actions_base_1.ActionEngineBase.Instance.Config(false, currentUser); // this is inefficient as we have the server
259
373
  if (coreActionsOutputDir) {
260
- (0, status_logging_1.logStatus)('Generating CORE Actions Code...');
374
+ if (isVerbose)
375
+ (0, status_logging_1.startSpinner)('Generating CORE Actions Code...');
261
376
  const actionsGenerator = global_1.MJGlobal.Instance.ClassFactory.CreateInstance(action_subclasses_codegen_1.ActionSubClassGeneratorBase);
262
- if (!(await actionsGenerator.generateActions(actions_base_1.ActionEngineBase.Instance.CoreActions, coreActionsOutputDir)))
263
- (0, status_logging_1.logError)('Error generating CORE Actions code');
377
+ if (!(await actionsGenerator.generateActions(actions_base_1.ActionEngineBase.Instance.CoreActions, coreActionsOutputDir))) {
378
+ (0, status_logging_1.failSpinner)('Error generating CORE Actions code');
379
+ return;
380
+ }
381
+ else if (isVerbose) {
382
+ (0, status_logging_1.succeedSpinner)('CORE Actions Code generated');
383
+ }
264
384
  }
265
385
  const actionsOutputDir = (0, config_1.outputDir)('ActionSubclasses', false);
266
386
  if (actionsOutputDir) {
267
- (0, status_logging_1.logStatus)('Generating Actions Code...');
387
+ if (isVerbose)
388
+ (0, status_logging_1.startSpinner)('Generating Actions Code...');
268
389
  const actionsGenerator = global_1.MJGlobal.Instance.ClassFactory.CreateInstance(action_subclasses_codegen_1.ActionSubClassGeneratorBase);
269
- if (!(await actionsGenerator.generateActions(actions_base_1.ActionEngineBase.Instance.NonCoreActions, actionsOutputDir)))
270
- (0, status_logging_1.logError)('Error generating Actions code');
390
+ if (!(await actionsGenerator.generateActions(actions_base_1.ActionEngineBase.Instance.NonCoreActions, actionsOutputDir))) {
391
+ (0, status_logging_1.failSpinner)('Error generating Actions code');
392
+ return;
393
+ }
394
+ else if (isVerbose) {
395
+ (0, status_logging_1.succeedSpinner)('Actions Code generated');
396
+ }
397
+ }
398
+ else if (isVerbose) {
399
+ (0, status_logging_1.warnSpinner)('Actions output directory NOT found in config file, skipping...');
271
400
  }
272
- else
273
- (0, status_logging_1.logStatus)('Actions output directory NOT found in config file, skipping...');
274
401
  // WRAP UP SQL LOGGING HERE
275
402
  sql_logging_1.SQLLogging.finishSQLLogging(); // finish up the SQL Logging
403
+ // Complete the TypeScript generation spinner in non-verbose mode
404
+ if (!isVerbose) {
405
+ (0, status_logging_1.succeedSpinner)('TypeScript code generation completed');
406
+ }
276
407
  // now run integrity checks
277
- await system_integrity_1.SystemIntegrityBase.RunIntegrityChecks(db_connection_1.default, true);
408
+ (0, status_logging_1.startSpinner)('Running system integrity checks...');
409
+ await system_integrity_1.SystemIntegrityBase.RunIntegrityChecks(pool, true);
410
+ (0, status_logging_1.succeedSpinner)('System integrity checks completed');
278
411
  /****************************************************************************************
279
412
  // STEP 8 --- Finalization Step - execute any AFTER commands specified in the config file
280
413
  ****************************************************************************************/
281
414
  const afterCommands = (0, config_1.commands)('AFTER');
282
415
  if (afterCommands && afterCommands.length > 0) {
283
- (0, status_logging_1.logStatus)('Executing AFTER commands...');
416
+ (0, status_logging_1.startSpinner)('Executing AFTER commands...');
284
417
  const results = await runCommandsObject.runCommands(afterCommands);
285
- if (results.some((r) => !r.success))
286
- (0, status_logging_1.logError)('ERROR running one or more AFTER commands');
418
+ if (results.some((r) => !r.success)) {
419
+ (0, status_logging_1.failSpinner)('ERROR running one or more AFTER commands');
420
+ }
421
+ else {
422
+ (0, status_logging_1.succeedSpinner)('AFTER commands completed');
423
+ }
287
424
  }
288
425
  /****************************************************************************************
289
426
  // STEP 9 --- Execute any AFTER SQL Scripts specified in the config file
290
427
  ****************************************************************************************/
291
428
  if (!skipDB) {
292
- if (!(await sqlCodeGenObject.runCustomSQLScripts(db_connection_1.default, 'after-all')))
293
- (0, status_logging_1.logError)('ERROR running after-all SQL Scripts');
429
+ (0, status_logging_1.startSpinner)('Executing after-all SQL Scripts...');
430
+ if (!(await sqlCodeGenObject.runCustomSQLScripts(pool, 'after-all'))) {
431
+ (0, status_logging_1.failSpinner)('ERROR running after-all SQL Scripts');
432
+ }
433
+ else {
434
+ (0, status_logging_1.succeedSpinner)('After-all SQL Scripts completed');
435
+ }
294
436
  }
295
- (0, status_logging_1.logStatus)(md.Entities.length + ' entities processed and outputed to configured directories');
296
- (0, status_logging_1.logStatus)('MJ CodeGen Run Complete! @ ' +
297
- new Date().toLocaleString() +
298
- ' (' +
299
- (new Date().getTime() - startTime.getTime()) / 1000 +
300
- ' seconds)');
437
+ const endTime = new Date();
438
+ const totalSeconds = (endTime.getTime() - startTime.getTime()) / 1000;
439
+ (0, status_logging_1.succeedSpinner)(`MJ CodeGen Complete! ${md.Entities.length} entities processed in ${totalSeconds}s @ ${endTime.toLocaleString()}`);
301
440
  process.exit(0); // wrap it up, 0 means success
302
441
  }
303
442
  catch (e) {
443
+ (0, status_logging_1.failSpinner)(`CodeGen failed: ${e}`);
304
444
  (0, status_logging_1.logError)(e);
305
445
  process.exit(1); // error code
306
446
  }
307
447
  }
308
448
  }
309
449
  exports.RunCodeGenBase = RunCodeGenBase;
450
+ /**
451
+ * Convenience function to run the MemberJunction code generation process.
452
+ * Creates a new instance of RunCodeGenBase and executes the full generation pipeline.
453
+ *
454
+ * This is the recommended way to trigger code generation from external scripts
455
+ * or applications.
456
+ *
457
+ * @param skipDatabaseGeneration Whether to skip database-related operations
458
+ * @returns Promise that resolves when generation is complete
459
+ * @throws Error if generation fails
460
+ *
461
+ * @example
462
+ * ```typescript
463
+ * // Full generation
464
+ * await runMemberJunctionCodeGeneration();
465
+ *
466
+ * // Skip database operations for faster UI generation
467
+ * await runMemberJunctionCodeGeneration(true);
468
+ * ```
469
+ */
310
470
  async function runMemberJunctionCodeGeneration(skipDatabaseGeneration = false) {
311
471
  const runObject = global_1.MJGlobal.Instance.ClassFactory.CreateInstance(RunCodeGenBase);
312
472
  return await runObject.Run(skipDatabaseGeneration);
@@ -1 +1 @@
1
- {"version":3,"file":"runCodeGen.js","sourceRoot":"","sources":["../src/runCodeGen.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,0EAA2E;AAC3E,wDAAwD;AACxD,gFAA+E;AAC/E,mFAAgH;AAChH,wEAAwE;AACxE,gEAAgE;AAChE,4CAAmG;AACnG,0DAAoF;AACpF,yDAA2C;AAC3C,kDAAoD;AACpD,kDAA4D;AAC5D,+DAAuE;AACvE,mFAAqF;AACrF,wDAAyD;AACzD,mDAAiE;AACjE,gFAA+E;AAC/E,oDAAgD;AAChD,8DAA8D;AAC9D,+DAAgE;AAEhE,MAAM,EAAE,YAAY,EA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Ac,EAAC,iCAAiC,CAAC,CAAC;gBACpD,CAAC;YACH,CAAC;YAED,MAAM,OAAO,GAAG,IAAI,IAAI,EAAE,CAAC;YAC3B,MAAM,YAAY,GAAG,CAAC,OAAO,CAAC,OAAO,EAAE,GAAG,SAAS,CAAC,OAAO,EAAE,CAAC,GAAG,IAAI,CAAC;YACtE,IAAA,+BAAc,EACZ,wBAAwB,EAAE,CAAC,QAAQ,CAAC,MAAM,0BAA0B,YAAY,OAAO,OAAO,CAAC,cAAc,EAAE,EAAE,CAClH,CAAC;YAEF,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,8BAA8B;QACjD,CAAC;QAAC,OAAO,CAAC,EAAE,CAAC;YACX,IAAA,4BAAW,EAAC,mBAAmB,CAAC,EAAE,CAAC,CAAC;YACpC,IAAA,yBAAQ,EAAC,CAAW,CAAC,CAAC;YACtB,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,aAAa;QAChC,CAAC;IACH,CAAC;CACF;AArXD,wCAqXC;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACI,KAAK,UAAU,+BAA+B,CAAC,yBAAkC,KAAK;IAC3F,MAAM,SAAS,GAAG,iBAAQ,CAAC,QAAQ,CAAC,YAAY,CAAC,cAAc,CAAiB,cAAc,CAAE,CAAC;IACjG,OAAO,MAAM,SAAS,CAAC,GAAG,CAAC,sBAAsB,CAAC,CAAC;AACrD,CAAC;AAHD,0EAGC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@memberjunction/codegen-lib",
3
- "version": "2.48.0",
3
+ "version": "2.50.0",
4
4
  "description": "Library used by the CodeGen executable to generate code for the MemberJunction platform. Contains a reusable object model that can be called by any other server-side application/library.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -19,24 +19,24 @@
19
19
  "typescript": "^5.4.5"
20
20
  },
21
21
  "dependencies": {
22
- "@memberjunction/core": "2.48.0",
23
- "@memberjunction/actions": "2.48.0",
24
- "@memberjunction/core-entities": "2.48.0",
25
- "@memberjunction/global": "2.48.0",
26
- "@memberjunction/sqlserver-dataprovider": "2.48.0",
27
- "@memberjunction/ai": "2.48.0",
28
- "@memberjunction/aiengine": "2.48.0",
29
- "@memberjunction/ai-openai": "2.48.0",
30
- "@memberjunction/ai-groq": "2.48.0",
31
- "@memberjunction/ai-mistral": "2.48.0",
32
- "@memberjunction/ai-anthropic": "2.48.0",
22
+ "@memberjunction/core": "2.50.0",
23
+ "@memberjunction/actions": "2.50.0",
24
+ "@memberjunction/core-entities": "2.50.0",
25
+ "@memberjunction/global": "2.50.0",
26
+ "@memberjunction/sqlserver-dataprovider": "2.50.0",
27
+ "@memberjunction/ai": "2.50.0",
28
+ "@memberjunction/aiengine": "2.50.0",
29
+ "@memberjunction/ai-openai": "2.50.0",
30
+ "@memberjunction/ai-groq": "2.50.0",
31
+ "@memberjunction/ai-mistral": "2.50.0",
32
+ "@memberjunction/ai-anthropic": "2.50.0",
33
33
  "cosmiconfig": "9.0.0",
34
34
  "uuid": "^10.0.0",
35
35
  "mssql": "^11.0.1",
36
36
  "fs-extra": "^11.2.0",
37
37
  "glob": "^10.3.10",
38
38
  "tree-kill": "^1.2.2",
39
- "typeorm": "^0.3.20",
40
- "zod": "^3.23.8"
39
+ "zod": "^3.23.8",
40
+ "ora-classic": "^5.4.2"
41
41
  }
42
42
  }