@memberjunction/codegen-lib 2.47.0 → 2.49.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/dist/Angular/angular-codegen.d.ts +164 -6
- package/dist/Angular/angular-codegen.d.ts.map +1 -1
- package/dist/Angular/angular-codegen.js +179 -25
- package/dist/Angular/angular-codegen.js.map +1 -1
- package/dist/Angular/join-grid-related-entity-component.d.ts +52 -3
- package/dist/Angular/join-grid-related-entity-component.d.ts.map +1 -1
- package/dist/Angular/join-grid-related-entity-component.js +58 -3
- package/dist/Angular/join-grid-related-entity-component.js.map +1 -1
- package/dist/Angular/related-entity-components.d.ts +99 -42
- package/dist/Angular/related-entity-components.d.ts.map +1 -1
- package/dist/Angular/related-entity-components.js +116 -26
- package/dist/Angular/related-entity-components.js.map +1 -1
- package/dist/Angular/timeline-related-entity-component.d.ts +46 -7
- package/dist/Angular/timeline-related-entity-component.d.ts.map +1 -1
- package/dist/Angular/timeline-related-entity-component.js +64 -7
- package/dist/Angular/timeline-related-entity-component.js.map +1 -1
- package/dist/Angular/user-view-grid-related-entity-component.d.ts +33 -1
- package/dist/Angular/user-view-grid-related-entity-component.d.ts.map +1 -1
- package/dist/Angular/user-view-grid-related-entity-component.js +33 -1
- package/dist/Angular/user-view-grid-related-entity-component.js.map +1 -1
- package/dist/Config/config.d.ts +369 -45
- package/dist/Config/config.d.ts.map +1 -1
- package/dist/Config/config.js +136 -2
- package/dist/Config/config.js.map +1 -1
- package/dist/Config/db-connection.d.ts +17 -3
- package/dist/Config/db-connection.d.ts.map +1 -1
- package/dist/Config/db-connection.js +31 -19
- package/dist/Config/db-connection.js.map +1 -1
- package/dist/Database/dbSchema.d.ts +44 -1
- package/dist/Database/dbSchema.d.ts.map +1 -1
- package/dist/Database/dbSchema.js +46 -13
- package/dist/Database/dbSchema.js.map +1 -1
- package/dist/Database/manage-metadata.d.ts +52 -46
- package/dist/Database/manage-metadata.d.ts.map +1 -1
- package/dist/Database/manage-metadata.js +235 -191
- package/dist/Database/manage-metadata.js.map +1 -1
- package/dist/Database/reorder-columns.d.ts +2 -2
- package/dist/Database/reorder-columns.d.ts.map +1 -1
- package/dist/Database/reorder-columns.js +23 -17
- package/dist/Database/reorder-columns.js.map +1 -1
- package/dist/Database/sql.d.ts +4 -4
- package/dist/Database/sql.d.ts.map +1 -1
- package/dist/Database/sql.js +5 -16
- package/dist/Database/sql.js.map +1 -1
- package/dist/Database/sql_codegen.d.ts +15 -15
- package/dist/Database/sql_codegen.d.ts.map +1 -1
- package/dist/Database/sql_codegen.js +186 -123
- package/dist/Database/sql_codegen.js.map +1 -1
- package/dist/Misc/action_subclasses_codegen.d.ts.map +1 -1
- package/dist/Misc/action_subclasses_codegen.js +2 -12
- package/dist/Misc/action_subclasses_codegen.js.map +1 -1
- package/dist/Misc/advanced_generation.d.ts.map +1 -1
- package/dist/Misc/advanced_generation.js +82 -92
- package/dist/Misc/advanced_generation.js.map +1 -1
- package/dist/Misc/createNewUser.d.ts.map +1 -1
- package/dist/Misc/createNewUser.js +2 -12
- package/dist/Misc/createNewUser.js.map +1 -1
- package/dist/Misc/entity_subclasses_codegen.d.ts +5 -5
- package/dist/Misc/entity_subclasses_codegen.d.ts.map +1 -1
- package/dist/Misc/entity_subclasses_codegen.js +12 -20
- package/dist/Misc/entity_subclasses_codegen.js.map +1 -1
- package/dist/Misc/graphql_server_codegen.d.ts.map +1 -1
- package/dist/Misc/graphql_server_codegen.js +35 -40
- package/dist/Misc/graphql_server_codegen.js.map +1 -1
- package/dist/Misc/runCommand.d.ts.map +1 -1
- package/dist/Misc/runCommand.js +2 -12
- package/dist/Misc/runCommand.js.map +1 -1
- package/dist/Misc/sql_logging.d.ts +2 -2
- package/dist/Misc/sql_logging.d.ts.map +1 -1
- package/dist/Misc/sql_logging.js +4 -3
- package/dist/Misc/sql_logging.js.map +1 -1
- package/dist/Misc/status_logging.d.ts +37 -0
- package/dist/Misc/status_logging.d.ts.map +1 -1
- package/dist/Misc/status_logging.js +147 -14
- package/dist/Misc/status_logging.js.map +1 -1
- package/dist/Misc/system_integrity.d.ts +9 -9
- package/dist/Misc/system_integrity.d.ts.map +1 -1
- package/dist/Misc/system_integrity.js +23 -21
- package/dist/Misc/system_integrity.js.map +1 -1
- package/dist/index.d.ts +45 -7
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +51 -7
- package/dist/index.js.map +1 -1
- package/dist/runCodeGen.d.ts +84 -6
- package/dist/runCodeGen.d.ts.map +1 -1
- package/dist/runCodeGen.js +244 -93
- package/dist/runCodeGen.js.map +1 -1
- package/package.json +14 -14
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
};
|
|
2
|
+
/**
|
|
3
|
+
* Database schema JSON output generator for MemberJunction CodeGen.
|
|
4
|
+
* Generates comprehensive JSON representations of database schemas including
|
|
5
|
+
* entities, fields, and relationships in both full and simplified formats.
|
|
6
|
+
*/
|
|
8
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
9
8
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
10
9
|
};
|
|
@@ -14,11 +13,28 @@ const status_logging_1 = require("../Misc/status_logging");
|
|
|
14
13
|
const fs_1 = __importDefault(require("fs"));
|
|
15
14
|
const path_1 = __importDefault(require("path"));
|
|
16
15
|
const config_1 = require("../Config/config");
|
|
17
|
-
const global_1 = require("@memberjunction/global");
|
|
18
16
|
/**
|
|
19
|
-
* Base class for generating
|
|
17
|
+
* Base class for generating database schema JSON output files.
|
|
18
|
+
* Creates comprehensive JSON documentation of database schemas including:
|
|
19
|
+
* - Full entity definitions with all field details
|
|
20
|
+
* - Simplified versions for lighter consumption
|
|
21
|
+
* - Schema-specific and bundled outputs
|
|
22
|
+
* - Minified versions for production use
|
|
23
|
+
*
|
|
24
|
+
* You can sub-class this class to create custom schema generation logic.
|
|
20
25
|
*/
|
|
21
|
-
|
|
26
|
+
class DBSchemaGeneratorBase {
|
|
27
|
+
/**
|
|
28
|
+
* Main entry point for generating database schema JSON files.
|
|
29
|
+
* Creates multiple output formats for different consumption needs:
|
|
30
|
+
* - Individual schema files (full and simple)
|
|
31
|
+
* - Combined all-schemas files
|
|
32
|
+
* - Configured bundle files
|
|
33
|
+
* - Minified versions of all outputs
|
|
34
|
+
* @param entities Array of entities to process
|
|
35
|
+
* @param outputDir Directory to write the JSON files to
|
|
36
|
+
* @returns True if generation was successful, false otherwise
|
|
37
|
+
*/
|
|
22
38
|
generateDBSchemaJSONOutput(entities, outputDir) {
|
|
23
39
|
if (!fs_1.default.existsSync(outputDir))
|
|
24
40
|
fs_1.default.mkdirSync(outputDir, { recursive: true }); // create the directory if it doesn't exist
|
|
@@ -90,6 +106,14 @@ let DBSchemaGeneratorBase = class DBSchemaGeneratorBase {
|
|
|
90
106
|
});
|
|
91
107
|
return true;
|
|
92
108
|
}
|
|
109
|
+
/**
|
|
110
|
+
* Generates JSON representation for a specific database schema
|
|
111
|
+
* @param entities Array of entities in this schema
|
|
112
|
+
* @param excludeEntities Array of entity names to exclude from output
|
|
113
|
+
* @param schemaName Name of the schema being processed
|
|
114
|
+
* @param simpleVersion Whether to generate simplified output (field names only)
|
|
115
|
+
* @returns JSON string representing the schema
|
|
116
|
+
*/
|
|
93
117
|
generateDBSchemaJSON(entities, excludeEntities, schemaName, simpleVersion) {
|
|
94
118
|
let sOutput = `{
|
|
95
119
|
"schemaName": "${schemaName}",
|
|
@@ -112,6 +136,12 @@ let DBSchemaGeneratorBase = class DBSchemaGeneratorBase {
|
|
|
112
136
|
}`;
|
|
113
137
|
return sOutput;
|
|
114
138
|
}
|
|
139
|
+
/**
|
|
140
|
+
* Generates JSON representation for a single entity
|
|
141
|
+
* @param entity The entity to generate JSON for
|
|
142
|
+
* @param simpleVersion Whether to generate simplified output
|
|
143
|
+
* @returns JSON string representing the entity
|
|
144
|
+
*/
|
|
115
145
|
generateEntityJSON(entity, simpleVersion) {
|
|
116
146
|
const jsonEscapedDescription = entity.Description ? entity.Description.replace(/"/g, '\\"') : '';
|
|
117
147
|
let sOutput = `
|
|
@@ -138,6 +168,12 @@ let DBSchemaGeneratorBase = class DBSchemaGeneratorBase {
|
|
|
138
168
|
}`;
|
|
139
169
|
return sOutput;
|
|
140
170
|
}
|
|
171
|
+
/**
|
|
172
|
+
* Generates JSON representation for a single entity field
|
|
173
|
+
* @param field The field to generate JSON for
|
|
174
|
+
* @param simpleVersion Whether to generate simplified output (currently unused for fields)
|
|
175
|
+
* @returns JSON string representing the field with type, relationships, and constraints
|
|
176
|
+
*/
|
|
141
177
|
generateFieldJSON(field, simpleVersion) {
|
|
142
178
|
const relEntity = field.RelatedEntity && field.RelatedEntity.length > 0 ? `\n "RelatedEntity": "${field.RelatedEntity}",` : '';
|
|
143
179
|
const relField = relEntity && field.RelatedEntityFieldName && field.RelatedEntityFieldName.length > 0 ? `\n "RelatedEntityFieldName": "${field.RelatedEntityFieldName}",` : '';
|
|
@@ -151,9 +187,6 @@ let DBSchemaGeneratorBase = class DBSchemaGeneratorBase {
|
|
|
151
187
|
}`;
|
|
152
188
|
return sOutput;
|
|
153
189
|
}
|
|
154
|
-
}
|
|
190
|
+
}
|
|
155
191
|
exports.DBSchemaGeneratorBase = DBSchemaGeneratorBase;
|
|
156
|
-
exports.DBSchemaGeneratorBase = DBSchemaGeneratorBase = __decorate([
|
|
157
|
-
(0, global_1.RegisterClass)(DBSchemaGeneratorBase)
|
|
158
|
-
], DBSchemaGeneratorBase);
|
|
159
192
|
//# sourceMappingURL=dbSchema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dbSchema.js","sourceRoot":"","sources":["../../src/Database/dbSchema.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"dbSchema.js","sourceRoot":"","sources":["../../src/Database/dbSchema.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;AAGH,2DAAmD;AACnD,4C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AAQ,GAAG,SAAS,IAAI,KAAK,CAAC,sBAAsB,IAAI,KAAK,CAAC,sBAAsB,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,gDAAgD,KAAK,CAAC,sBAAsB,IAAI,CAAC,CAAC,CAAC,EAAE,CAAA;QAC7L,MAAM,sBAAsB,GAAG,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;QAC/F,IAAI,OAAO,GAAW;;+BAEC,KAAK,CAAC,IAAI;sCACH,sBAAsB;+BAC7B,KAAK,CAAC,IAAI,KAAK,SAAS,GAAG,QAAQ;oCAC9B,KAAK,CAAC,UAAU;kBAClC,CAAA;QACV,OAAO,OAAO,CAAC;IACnB,CAAC;CACJ;AApLD,sDAoLC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as sql from 'mssql';
|
|
2
2
|
import { EntityInfo, Metadata, UserInfo } from "@memberjunction/core";
|
|
3
3
|
import { SQLUtilityBase } from "./sql";
|
|
4
4
|
import { AdvancedGeneration } from "../Misc/advanced_generation";
|
|
@@ -44,47 +44,47 @@ export declare class ManageMetadataBase {
|
|
|
44
44
|
static get generatedValidators(): ValidatorResult[];
|
|
45
45
|
/**
|
|
46
46
|
* Primary function to manage metadata within the CodeGen system. This function will call a series of sub-functions to manage the metadata.
|
|
47
|
-
* @param
|
|
47
|
+
* @param pool - the ConnectionPool object to use for querying and updating the database
|
|
48
48
|
* @returns
|
|
49
49
|
*/
|
|
50
|
-
manageMetadata(
|
|
51
|
-
protected manageVirtualEntities(
|
|
50
|
+
manageMetadata(pool: sql.ConnectionPool, currentUser: UserInfo): Promise<boolean>;
|
|
51
|
+
protected manageVirtualEntities(pool: sql.ConnectionPool): Promise<{
|
|
52
52
|
success: boolean;
|
|
53
53
|
anyUpdates: boolean;
|
|
54
54
|
}>;
|
|
55
|
-
protected manageSingleVirtualEntity(
|
|
55
|
+
protected manageSingleVirtualEntity(pool: sql.ConnectionPool, virtualEntity: EntityInfo): Promise<{
|
|
56
56
|
success: boolean;
|
|
57
57
|
updatedEntity: boolean;
|
|
58
58
|
}>;
|
|
59
|
-
protected manageSingleVirtualEntityField(
|
|
59
|
+
protected manageSingleVirtualEntityField(pool: sql.ConnectionPool, virtualEntity: any, veField: any, fieldSequence: number, makePrimaryKey: boolean): Promise<{
|
|
60
60
|
success: boolean;
|
|
61
61
|
updatedField: boolean;
|
|
62
62
|
newFieldID: string | null;
|
|
63
63
|
}>;
|
|
64
64
|
/**
|
|
65
65
|
* This method creates and updates relationships in the metadata based on foreign key relationships in the database.
|
|
66
|
-
* @param
|
|
66
|
+
* @param pool
|
|
67
67
|
* @param excludeSchemas - specify any schemas to exclude here and any relationships to/from the specified schemas will be ignored
|
|
68
68
|
* @param md
|
|
69
69
|
* @returns
|
|
70
70
|
*/
|
|
71
|
-
protected manageEntityRelationships(
|
|
71
|
+
protected manageEntityRelationships(pool: sql.ConnectionPool, excludeSchemas: string[], md: Metadata, batchItems?: number): Promise<boolean>;
|
|
72
72
|
/**
|
|
73
73
|
* Manages 1->M relationships between entities in the metadata based on foreign key relationships in the database.
|
|
74
|
-
* @param
|
|
74
|
+
* @param pool
|
|
75
75
|
* @param excludeSchemas - specify any schemas to exclude here and any relationships to/from the specified schemas will be ignored
|
|
76
76
|
* @param md
|
|
77
77
|
* @returns
|
|
78
78
|
*/
|
|
79
|
-
protected manageOneToManyEntityRelationships(
|
|
79
|
+
protected manageOneToManyEntityRelationships(pool: sql.ConnectionPool, excludeSchemas: string[], md: Metadata, batchItems?: number): Promise<boolean>;
|
|
80
80
|
/**
|
|
81
81
|
* This method will look for situations where entity metadata exist in the entities metadata table but the underlying table has been deleted. In this case, the metadata for the entity
|
|
82
82
|
* should be removed. This method is called as part of the manageMetadata method and is not intended to be called directly.
|
|
83
83
|
* @param ds
|
|
84
84
|
* @param excludeSchemas
|
|
85
85
|
*/
|
|
86
|
-
protected checkAndRemoveMetadataForDeletedTables(
|
|
87
|
-
protected checkDropSQLObject(
|
|
86
|
+
protected checkAndRemoveMetadataForDeletedTables(pool: sql.ConnectionPool, excludeSchemas: string[]): Promise<boolean>;
|
|
87
|
+
protected checkDropSQLObject(pool: sql.ConnectionPool, proceed: boolean, type: 'procedure' | 'view' | 'function', schemaName: string, name: string): Promise<void>;
|
|
88
88
|
/**
|
|
89
89
|
* Manages M->M relationships between entities in the metadata based on foreign key relationships in the database.
|
|
90
90
|
* NOT IMPLEMENTED IN CURRENT VERSION IN BASE CLASS. M->M relationships ARE supported fully, but they are not AUTO generated by this
|
|
@@ -93,25 +93,25 @@ export declare class ManageMetadataBase {
|
|
|
93
93
|
* @param excludeSchemas
|
|
94
94
|
* @returns
|
|
95
95
|
*/
|
|
96
|
-
protected manageManyToManyEntityRelationships(
|
|
96
|
+
protected manageManyToManyEntityRelationships(pool: sql.ConnectionPool, excludeSchemas: string[], batchItems?: number): Promise<boolean>;
|
|
97
97
|
/**
|
|
98
98
|
* Manages the creation, updating and deletion of entity field records in the metadata based on the database schema.
|
|
99
|
-
* @param
|
|
99
|
+
* @param pool
|
|
100
100
|
* @param excludeSchemas
|
|
101
101
|
* @returns
|
|
102
102
|
*/
|
|
103
|
-
manageEntityFields(
|
|
103
|
+
manageEntityFields(pool: sql.ConnectionPool, excludeSchemas: string[], skipCreatedAtUpdatedAtDeletedAtFieldValidation: boolean, skipEntityFieldValues: boolean, currentUser: UserInfo): Promise<boolean>;
|
|
104
104
|
/**
|
|
105
105
|
* This method ensures that the __mj_DeletedAt field exists in each entity that has DeleteType=Soft. If the field does not exist, it is created.
|
|
106
106
|
*/
|
|
107
|
-
protected ensureDeletedAtFieldsExist(
|
|
107
|
+
protected ensureDeletedAtFieldsExist(pool: sql.ConnectionPool, excludeSchemas: string[]): Promise<boolean>;
|
|
108
108
|
/**
|
|
109
109
|
* This method ensures that the __mj_CreatedAt and __mj_UpdatedAt fields exist in each entity that has TrackRecordChanges set to true. If the fields do not exist, they are created.
|
|
110
110
|
* If the fields exist but have incorrect default values, the default values are updated. The default value that is to be used for these special fields is GETUTCDATE() which is the
|
|
111
111
|
* UTC date and time. This method is called as part of the manageEntityFields method and is not intended to be called directly.
|
|
112
|
-
* @param
|
|
112
|
+
* @param pool
|
|
113
113
|
*/
|
|
114
|
-
protected ensureCreatedAtUpdatedAtFieldsExist(
|
|
114
|
+
protected ensureCreatedAtUpdatedAtFieldsExist(pool: sql.ConnectionPool, excludeSchemas: string[]): Promise<boolean>;
|
|
115
115
|
/**
|
|
116
116
|
* This method handles the validation of the existence of the specified special date field and if it does exist it makes sure the default value is set correctly, if it doesn't exist
|
|
117
117
|
* it makes sure that it is created. This method is called as part of the ensureCreatedAtUpdatedAtFieldsExist method and is not intended to be called directly.
|
|
@@ -119,32 +119,32 @@ export declare class ManageMetadataBase {
|
|
|
119
119
|
* @param fieldName
|
|
120
120
|
* @param currentFieldData
|
|
121
121
|
*/
|
|
122
|
-
protected ensureSpecialDateFieldExistsAndHasCorrectDefaultValue(
|
|
122
|
+
protected ensureSpecialDateFieldExistsAndHasCorrectDefaultValue(pool: sql.ConnectionPool, entity: any, fieldName: string, currentFieldData: any, allowNull: boolean): Promise<boolean>;
|
|
123
123
|
/**
|
|
124
124
|
* Creates the default constraint for a special date field. This method is called as part of the ensureSpecialDateFieldExistsAndHasCorrectDefaultValue method and is not intended to be called directly.
|
|
125
125
|
*/
|
|
126
|
-
protected createDefaultConstraintForSpecialDateField(
|
|
126
|
+
protected createDefaultConstraintForSpecialDateField(pool: sql.ConnectionPool, entity: any, fieldName: string): Promise<void>;
|
|
127
127
|
/**
|
|
128
128
|
* Drops and recreates the default constraint for a special date field. This method is called as part of the ensureSpecialDateFieldExistsAndHasCorrectDefaultValue method and is not intended to be called directly.
|
|
129
129
|
* @param ds
|
|
130
130
|
* @param entity
|
|
131
131
|
* @param fieldName
|
|
132
132
|
*/
|
|
133
|
-
protected dropAndCreateDefaultConstraintForSpecialDateField(
|
|
133
|
+
protected dropAndCreateDefaultConstraintForSpecialDateField(pool: sql.ConnectionPool, entity: any, fieldName: string): Promise<void>;
|
|
134
134
|
/**
|
|
135
135
|
* Drops an existing default constraint from a given column within a given entity, if it exists
|
|
136
|
-
* @param
|
|
136
|
+
* @param pool
|
|
137
137
|
* @param entity
|
|
138
138
|
* @param fieldName
|
|
139
139
|
*/
|
|
140
|
-
protected dropExistingDefaultConstraint(
|
|
140
|
+
protected dropExistingDefaultConstraint(pool: sql.ConnectionPool, entity: any, fieldName: string): Promise<void>;
|
|
141
141
|
/**
|
|
142
142
|
* This method generates descriptions for entities in teh system where there is no existing description. This is an experimental feature and is done using AI. In order for it
|
|
143
143
|
* to be invoked, the EntityDescriptions feature must be enabled in the Advanced Generation configuration.
|
|
144
|
-
* @param
|
|
144
|
+
* @param pool
|
|
145
145
|
* @param md
|
|
146
146
|
*/
|
|
147
|
-
protected generateNewEntityDescriptions(
|
|
147
|
+
protected generateNewEntityDescriptions(pool: sql.ConnectionPool, md: Metadata): Promise<void>;
|
|
148
148
|
/**
|
|
149
149
|
* This method is responsible for generating a Display Name for each field where a display name is not already set. The approach in the base class
|
|
150
150
|
* uses a simple algorithm that looks for case changes in the field name and inserts spaces at those points. It also strips the trailing 'ID' from the field name if it exists.
|
|
@@ -153,19 +153,25 @@ export declare class ManageMetadataBase {
|
|
|
153
153
|
* @param excludeSchemas
|
|
154
154
|
* @returns
|
|
155
155
|
*/
|
|
156
|
-
protected updateEntityFieldDisplayNameWhereNull(
|
|
156
|
+
protected updateEntityFieldDisplayNameWhereNull(pool: sql.ConnectionPool, excludeSchemas: string[]): Promise<boolean>;
|
|
157
157
|
/**
|
|
158
158
|
* This method updates the DefaultColumnWidth field in the EntityField metadata. The default logic uses a stored procedure called spSetDefaultColumnWidthWhereNeeded
|
|
159
159
|
* which is part of the MJ Core Schema. You can override this method to implement custom logic for setting default column widths. It is NOT recommended to
|
|
160
160
|
* modify the stored procedure in the MJ Core Schema because your changes will be overriden during a future upgrade.
|
|
161
|
-
* @param
|
|
161
|
+
* @param pool
|
|
162
162
|
* @param excludeSchemas
|
|
163
163
|
* @returns
|
|
164
164
|
*/
|
|
165
|
-
protected setDefaultColumnWidthWhereNeeded(
|
|
165
|
+
protected setDefaultColumnWidthWhereNeeded(pool: sql.ConnectionPool, excludeSchemas: string[]): Promise<boolean>;
|
|
166
166
|
/**
|
|
167
167
|
* Creates a SQL statement to retrieve all of the pending entity fields that need to be created in the metadata. This method looks for fields that exist in the underlying
|
|
168
168
|
* database but are NOT in the metadata.
|
|
169
|
+
*
|
|
170
|
+
* IMPORTANT: The sequence shown below has a 100,000 added to it to ensure that there is no collision with existing sequences. The spUpdateExistingEntityFieldsFromSchema
|
|
171
|
+
* stored procedure runs AFTER this method and will correct the sequences to ensure they are in the correct order. In a migration, the spUpdateExistingEntityFieldsFromSchema
|
|
172
|
+
* runs afterwards as well so this behavior ensures CodeGen works consistently.
|
|
173
|
+
*
|
|
174
|
+
* @returns {string} - The SQL statement to retrieve pending entity fields.
|
|
169
175
|
*/
|
|
170
176
|
protected getPendingEntityFieldsSELECTSQL(): string;
|
|
171
177
|
/**
|
|
@@ -184,7 +190,7 @@ export declare class ManageMetadataBase {
|
|
|
184
190
|
* @returns
|
|
185
191
|
*/
|
|
186
192
|
protected parseDefaultValue(sqlDefaultValue: string): string;
|
|
187
|
-
protected createNewEntityFieldsFromSchema(
|
|
193
|
+
protected createNewEntityFieldsFromSchema(pool: sql.ConnectionPool): Promise<boolean>;
|
|
188
194
|
/**
|
|
189
195
|
* This method handles updating entity field related name field maps which is basically the process of finding the related entity field that is the "name" field for the related entity.
|
|
190
196
|
* @param ds
|
|
@@ -192,21 +198,21 @@ export declare class ManageMetadataBase {
|
|
|
192
198
|
* @param relatedEntityNameFieldMap
|
|
193
199
|
* @returns
|
|
194
200
|
*/
|
|
195
|
-
updateEntityFieldRelatedEntityNameFieldMap(
|
|
196
|
-
protected updateExistingEntitiesFromSchema(
|
|
201
|
+
updateEntityFieldRelatedEntityNameFieldMap(pool: sql.ConnectionPool, entityFieldID: string, relatedEntityNameFieldMap: string): Promise<boolean>;
|
|
202
|
+
protected updateExistingEntitiesFromSchema(pool: sql.ConnectionPool, excludeSchemas: string[]): Promise<boolean>;
|
|
197
203
|
/**
|
|
198
204
|
* Adds a list of entity names to the modified entity list if they're not already in there
|
|
199
205
|
*/
|
|
200
206
|
protected static addNewEntitiesToModifiedList(entityNames: string[]): void;
|
|
201
|
-
protected updateExistingEntityFieldsFromSchema(
|
|
202
|
-
protected deleteUnneededEntityFields(
|
|
203
|
-
protected manageEntityFieldValuesAndValidatorFunctions(
|
|
207
|
+
protected updateExistingEntityFieldsFromSchema(pool: sql.ConnectionPool, excludeSchemas: string[]): Promise<boolean>;
|
|
208
|
+
protected deleteUnneededEntityFields(pool: sql.ConnectionPool, excludeSchemas: string[]): Promise<boolean>;
|
|
209
|
+
protected manageEntityFieldValuesAndValidatorFunctions(pool: sql.ConnectionPool, excludeSchemas: string[], currentUser: UserInfo, skipDBUpdate: boolean): Promise<boolean>;
|
|
204
210
|
/**
|
|
205
211
|
* This method will load all generated code from the database - this is intended to be used when you are bypassing managing the metadata.
|
|
206
|
-
* @param
|
|
212
|
+
* @param pool
|
|
207
213
|
* @param currentUser
|
|
208
214
|
*/
|
|
209
|
-
loadGeneratedCode(
|
|
215
|
+
loadGeneratedCode(pool: sql.ConnectionPool, currentUser: UserInfo): Promise<boolean>;
|
|
210
216
|
private runValidationGeneration;
|
|
211
217
|
/**
|
|
212
218
|
* Generates a TypeScript field validator function from the text of a SQL CHECK constraint.
|
|
@@ -217,11 +223,11 @@ export declare class ManageMetadataBase {
|
|
|
217
223
|
* @returns a data structure with the function text, function name, function description, and a success flag
|
|
218
224
|
*/
|
|
219
225
|
protected generateValidatorFunctionFromCheckConstraint(data: any, allEntityFields: any[], currentUser: UserInfo, generateNewCode: boolean): Promise<ValidatorResult>;
|
|
220
|
-
protected syncEntityFieldValues(ds:
|
|
226
|
+
protected syncEntityFieldValues(ds: sql.ConnectionPool, entityFieldID: number, possibleValues: string[], allEntityFieldValues: any): Promise<boolean>;
|
|
221
227
|
protected parseCheckConstraintValues(constraintDefinition: string, fieldName: string, entityName: string): string[] | null;
|
|
222
228
|
protected createExcludeTablesAndSchemasFilter(fieldPrefix: string): string;
|
|
223
|
-
protected createNewEntities(
|
|
224
|
-
protected shouldCreateNewEntity(ds:
|
|
229
|
+
protected createNewEntities(pool: sql.ConnectionPool): Promise<boolean>;
|
|
230
|
+
protected shouldCreateNewEntity(ds: sql.ConnectionPool, newEntity: any): Promise<{
|
|
225
231
|
shouldCreate: boolean;
|
|
226
232
|
validationMessage: string;
|
|
227
233
|
}>;
|
|
@@ -235,17 +241,17 @@ export declare class ManageMetadataBase {
|
|
|
235
241
|
*/
|
|
236
242
|
protected markupEntityName(schemaName: string, entityName: string): string;
|
|
237
243
|
protected createNewUUID(): string;
|
|
238
|
-
protected createNewEntity(
|
|
239
|
-
protected isSchemaNew(
|
|
240
|
-
protected createNewApplication(
|
|
241
|
-
protected applicationExists(
|
|
242
|
-
protected getApplicationIDForSchema(
|
|
244
|
+
protected createNewEntity(pool: sql.ConnectionPool, newEntity: any, md: Metadata): Promise<void>;
|
|
245
|
+
protected isSchemaNew(pool: sql.ConnectionPool, schemaName: string): Promise<boolean>;
|
|
246
|
+
protected createNewApplication(pool: sql.ConnectionPool, appID: string, appName: string, schemaName: string): Promise<string | null>;
|
|
247
|
+
protected applicationExists(pool: sql.ConnectionPool, applicationName: string): Promise<boolean>;
|
|
248
|
+
protected getApplicationIDForSchema(pool: sql.ConnectionPool, schemaName: string): Promise<string[] | null>;
|
|
243
249
|
protected createNewEntityInsertSQL(newEntityUUID: string, newEntityName: string, newEntity: any, newEntitySuffix: string): string;
|
|
244
250
|
/**
|
|
245
|
-
* Executes the given SQL query using the given
|
|
251
|
+
* Executes the given SQL query using the given ConnectionPool object.
|
|
246
252
|
* If the appendToLogFile parameter is true, the query will also be appended to the log file.
|
|
247
253
|
* Note that in order to append to the log file, ManageMetadataBase.manageMetaDataLogging must be called first.
|
|
248
|
-
* @param
|
|
254
|
+
* @param pool - The ConnectionPool object to use to execute the query.
|
|
249
255
|
* @param query - The SQL query to execute.
|
|
250
256
|
* @param description - A description of the query to append to the log file.
|
|
251
257
|
* @param isRecurringScript - if set to true tells the logger that the provided SQL represents a recurring script meaning it is something that is executed, generally, for all CodeGen runs. In these cases, the Config settings can result in omitting these recurring scripts from being logged because the configuration environment may have those recurring scripts already set to run after all run-specific migrations get run.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"manage-metadata.d.ts","sourceRoot":"","sources":["../../src/Database/manage-metadata.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"manage-metadata.d.ts","sourceRoot":"","sources":["../../src/Database/manage-metadata.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,OAAO,CAAC;AAE7B,OAAO,EAAuC,UAAU,EAAkD,QAAQ,EAAgB,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAEzK,OAAO,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,kBAAkB,EAA6C,MAAM,6BAA6B,CAAC;AAU5G,qBAAa,eAAe;IAClB,UAAU,EAAE,MAAM,CAAM;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,qBAAqB,EAAE,MAAM,CAAM;IACnC,YAAY,EAAE,MAAM,CAAM;IAC1B,YAAY,EAAE,MAAM,CAAM;IAC1B,mBAAmB,EAAE,MAAM,CAAM;IACxC;;OAEG;IACI,eAAe,EAAE,MAAM,CAAM;IACpC;;OAEG;IACI,SAAS,EAAE,MAAM,CAAM;IACvB,YAAY,EAAE,OAAO,CAAQ;IAC7B,OAAO,EAAE,OAAO,CAAS;CAClC;AAED;;;GAGG;AACH,qBAAa,kBAAkB;IAE5B,SAAS,CAAC,iBAAiB,EAAE,cAAc,CAAkF;IA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