@memberjunction/global 2.112.0 → 2.113.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/package.json +1 -1
- package/dist/Core.d.ts +0 -29
- package/dist/Core.d.ts.map +0 -1
- package/dist/Core.js +0 -58
- package/dist/Core.js.map +0 -1
- package/dist/generic/QueryCache.d.ts +0 -85
- package/dist/generic/QueryCache.d.ts.map +0 -1
- package/dist/generic/QueryCache.js +0 -198
- package/dist/generic/QueryCache.js.map +0 -1
- package/dist/generic/QueryCacheConfig.d.ts +0 -72
- package/dist/generic/QueryCacheConfig.d.ts.map +0 -1
- package/dist/generic/QueryCacheConfig.js +0 -3
- package/dist/generic/QueryCacheConfig.js.map +0 -1
- package/dist/generic/applicationInfo.d.ts +0 -138
- package/dist/generic/applicationInfo.d.ts.map +0 -1
- package/dist/generic/applicationInfo.js +0 -177
- package/dist/generic/applicationInfo.js.map +0 -1
- package/dist/generic/authEvaluator.d.ts +0 -25
- package/dist/generic/authEvaluator.d.ts.map +0 -1
- package/dist/generic/authEvaluator.js +0 -49
- package/dist/generic/authEvaluator.js.map +0 -1
- package/dist/generic/authTypes.d.ts +0 -193
- package/dist/generic/authTypes.d.ts.map +0 -1
- package/dist/generic/authTypes.js +0 -19
- package/dist/generic/authTypes.js.map +0 -1
- package/dist/generic/baseEngine.d.ts +0 -260
- package/dist/generic/baseEngine.d.ts.map +0 -1
- package/dist/generic/baseEngine.js +0 -510
- package/dist/generic/baseEngine.js.map +0 -1
- package/dist/generic/baseEntity.d.ts +0 -691
- package/dist/generic/baseEntity.d.ts.map +0 -1
- package/dist/generic/baseEntity.js +0 -1688
- package/dist/generic/baseEntity.js.map +0 -1
- package/dist/generic/baseInfo.d.ts +0 -24
- package/dist/generic/baseInfo.d.ts.map +0 -1
- package/dist/generic/baseInfo.js +0 -53
- package/dist/generic/baseInfo.js.map +0 -1
- package/dist/generic/compositeKey.d.ts +0 -206
- package/dist/generic/compositeKey.d.ts.map +0 -1
- package/dist/generic/compositeKey.js +0 -412
- package/dist/generic/compositeKey.js.map +0 -1
- package/dist/generic/databaseProviderBase.d.ts +0 -46
- package/dist/generic/databaseProviderBase.d.ts.map +0 -1
- package/dist/generic/databaseProviderBase.js +0 -14
- package/dist/generic/databaseProviderBase.js.map +0 -1
- package/dist/generic/entityInfo.d.ts +0 -983
- package/dist/generic/entityInfo.d.ts.map +0 -1
- package/dist/generic/entityInfo.js +0 -1401
- package/dist/generic/entityInfo.js.map +0 -1
- package/dist/generic/explorerNavigationItem.d.ts +0 -20
- package/dist/generic/explorerNavigationItem.d.ts.map +0 -1
- package/dist/generic/explorerNavigationItem.js +0 -29
- package/dist/generic/explorerNavigationItem.js.map +0 -1
- package/dist/generic/interfaces.d.ts +0 -610
- package/dist/generic/interfaces.d.ts.map +0 -1
- package/dist/generic/interfaces.js +0 -211
- package/dist/generic/interfaces.js.map +0 -1
- package/dist/generic/libraryInfo.d.ts +0 -40
- package/dist/generic/libraryInfo.d.ts.map +0 -1
- package/dist/generic/libraryInfo.js +0 -56
- package/dist/generic/libraryInfo.js.map +0 -1
- package/dist/generic/logging.d.ts +0 -179
- package/dist/generic/logging.d.ts.map +0 -1
- package/dist/generic/logging.js +0 -382
- package/dist/generic/logging.js.map +0 -1
- package/dist/generic/metadata.d.ts +0 -305
- package/dist/generic/metadata.d.ts.map +0 -1
- package/dist/generic/metadata.js +0 -454
- package/dist/generic/metadata.js.map +0 -1
- package/dist/generic/metadataUtil.d.ts +0 -8
- package/dist/generic/metadataUtil.d.ts.map +0 -1
- package/dist/generic/metadataUtil.js +0 -36
- package/dist/generic/metadataUtil.js.map +0 -1
- package/dist/generic/providerBase.d.ts +0 -546
- package/dist/generic/providerBase.d.ts.map +0 -1
- package/dist/generic/providerBase.js +0 -999
- package/dist/generic/providerBase.js.map +0 -1
- package/dist/generic/queryInfo.d.ts +0 -460
- package/dist/generic/queryInfo.d.ts.map +0 -1
- package/dist/generic/queryInfo.js +0 -633
- package/dist/generic/queryInfo.js.map +0 -1
- package/dist/generic/querySQLFilters.d.ts +0 -54
- package/dist/generic/querySQLFilters.d.ts.map +0 -1
- package/dist/generic/querySQLFilters.js +0 -84
- package/dist/generic/querySQLFilters.js.map +0 -1
- package/dist/generic/runQuery.d.ts +0 -96
- package/dist/generic/runQuery.d.ts.map +0 -1
- package/dist/generic/runQuery.js +0 -66
- package/dist/generic/runQuery.js.map +0 -1
- package/dist/generic/runQuerySQLFilterImplementations.d.ts +0 -51
- package/dist/generic/runQuerySQLFilterImplementations.d.ts.map +0 -1
- package/dist/generic/runQuerySQLFilterImplementations.js +0 -238
- package/dist/generic/runQuerySQLFilterImplementations.js.map +0 -1
- package/dist/generic/runReport.d.ts +0 -25
- package/dist/generic/runReport.d.ts.map +0 -1
- package/dist/generic/runReport.js +0 -42
- package/dist/generic/runReport.js.map +0 -1
- package/dist/generic/securityInfo.d.ts +0 -355
- package/dist/generic/securityInfo.d.ts.map +0 -1
- package/dist/generic/securityInfo.js +0 -425
- package/dist/generic/securityInfo.js.map +0 -1
- package/dist/generic/transactionGroup.d.ts +0 -184
- package/dist/generic/transactionGroup.d.ts.map +0 -1
- package/dist/generic/transactionGroup.js +0 -357
- package/dist/generic/transactionGroup.js.map +0 -1
- package/dist/generic/util.d.ts +0 -81
- package/dist/generic/util.d.ts.map +0 -1
- package/dist/generic/util.js +0 -301
- package/dist/generic/util.js.map +0 -1
- package/dist/views/runView.d.ts +0 -150
- package/dist/views/runView.d.ts.map +0 -1
- package/dist/views/runView.js +0 -100
- package/dist/views/runView.js.map +0 -1
- package/dist/views/viewInfo.d.ts +0 -121
- package/dist/views/viewInfo.d.ts.map +0 -1
- package/dist/views/viewInfo.js +0 -182
- package/dist/views/viewInfo.js.map +0 -1
|
@@ -1,983 +0,0 @@
|
|
|
1
|
-
import { BaseInfo } from './baseInfo';
|
|
2
|
-
import { RunViewParams } from '../views/runView';
|
|
3
|
-
import { BaseEntity } from './baseEntity';
|
|
4
|
-
import { RowLevelSecurityFilterInfo, UserInfo } from './securityInfo';
|
|
5
|
-
import { CompositeKey } from './compositeKey';
|
|
6
|
-
/**
|
|
7
|
-
* The possible status values for a record change
|
|
8
|
-
*/
|
|
9
|
-
export declare const RecordChangeStatus: {
|
|
10
|
-
readonly Pending: "Pending";
|
|
11
|
-
readonly Complete: "Complete";
|
|
12
|
-
readonly Error: "Error";
|
|
13
|
-
};
|
|
14
|
-
export type RecordChangeStatus = (typeof RecordChangeStatus)[keyof typeof RecordChangeStatus];
|
|
15
|
-
/**
|
|
16
|
-
* Record Change object has information on a change to a record in the Record Changes entity
|
|
17
|
-
*/
|
|
18
|
-
export declare class RecordChange extends BaseInfo {
|
|
19
|
-
ID: string;
|
|
20
|
-
EntityID: string;
|
|
21
|
-
RecordID: any;
|
|
22
|
-
ChangedAt: Date;
|
|
23
|
-
ChangesJSON: string;
|
|
24
|
-
ChangesDescription: string;
|
|
25
|
-
FullRecordJSON: string;
|
|
26
|
-
Status: string;
|
|
27
|
-
get StatusValue(): RecordChangeStatus;
|
|
28
|
-
get Changes(): any;
|
|
29
|
-
get FullRecord(): any;
|
|
30
|
-
constructor(initData: any);
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Information about the Entity Relationship between the Entity and the Related Entity - this class
|
|
34
|
-
* maps to information in the Entity Relationships metadata entity.
|
|
35
|
-
*/
|
|
36
|
-
/**
|
|
37
|
-
* Metadata about relationships between entities including display preferences for the UI.
|
|
38
|
-
* Defines foreign key relationships and how they should be represented in the user interface.
|
|
39
|
-
*/
|
|
40
|
-
export declare class EntityRelationshipInfo extends BaseInfo {
|
|
41
|
-
ID: string;
|
|
42
|
-
EntityID: string;
|
|
43
|
-
Sequence: number;
|
|
44
|
-
RelatedEntityID: string;
|
|
45
|
-
BundleInAPI: boolean;
|
|
46
|
-
IncludeInParentAllQuery: boolean;
|
|
47
|
-
Type: string;
|
|
48
|
-
EntityKeyField: string;
|
|
49
|
-
RelatedEntityJoinField: string;
|
|
50
|
-
JoinView: string;
|
|
51
|
-
JoinEntityJoinField: string;
|
|
52
|
-
JoinEntityInverseJoinField: string;
|
|
53
|
-
DisplayInForm: boolean;
|
|
54
|
-
DisplayLocation: 'After Field Tabs' | 'Before Field Tabs';
|
|
55
|
-
DisplayName: string;
|
|
56
|
-
DisplayIconType: 'Related Entity Icon' | 'Custom' | 'None';
|
|
57
|
-
DisplayIcon: string;
|
|
58
|
-
DisplayUserViewID: string;
|
|
59
|
-
DisplayComponentID: string;
|
|
60
|
-
DisplayComponentConfiguration: string;
|
|
61
|
-
__mj_CreatedAt: Date;
|
|
62
|
-
__mj_UpdatedAt: Date;
|
|
63
|
-
/**
|
|
64
|
-
* * Field Name: AutoUpdateFromSchema
|
|
65
|
-
* * Display Name: Auto Update From Schema
|
|
66
|
-
* * SQL Data Type: bit
|
|
67
|
-
* * Default Value: true
|
|
68
|
-
* * Description: Indicates whether this relationship should be automatically updated by CodeGen. When set to 0, the record will not be modified by CodeGen. Defaults to true.
|
|
69
|
-
*/
|
|
70
|
-
AutoUpdateFromSchema: boolean;
|
|
71
|
-
Entity: string;
|
|
72
|
-
EntityBaseTable: string;
|
|
73
|
-
EntityBaseView: string;
|
|
74
|
-
RelatedEntity: string;
|
|
75
|
-
RelatedEntityBaseTable: string;
|
|
76
|
-
RelatedEntityBaseView: string;
|
|
77
|
-
RelatedEntityCodeName: string;
|
|
78
|
-
RelatedEntityClassName: string;
|
|
79
|
-
RelatedEntityBaseTableCodeName: string;
|
|
80
|
-
DisplayUserViewName: string;
|
|
81
|
-
DisplayComponent: string;
|
|
82
|
-
constructor(initData: any);
|
|
83
|
-
}
|
|
84
|
-
export declare const EntityPermissionType: {
|
|
85
|
-
readonly Read: "Read";
|
|
86
|
-
readonly Create: "Create";
|
|
87
|
-
readonly Update: "Update";
|
|
88
|
-
readonly Delete: "Delete";
|
|
89
|
-
};
|
|
90
|
-
export type EntityPermissionType = (typeof EntityPermissionType)[keyof typeof EntityPermissionType];
|
|
91
|
-
export declare class EntityUserPermissionInfo {
|
|
92
|
-
ID: string;
|
|
93
|
-
Entity: EntityInfo;
|
|
94
|
-
User: UserInfo;
|
|
95
|
-
CanCreate: boolean;
|
|
96
|
-
CanRead: boolean;
|
|
97
|
-
CanUpdate: boolean;
|
|
98
|
-
CanDelete: boolean;
|
|
99
|
-
}
|
|
100
|
-
/**
|
|
101
|
-
* Security settings for each entity.
|
|
102
|
-
* Controls which roles can perform create, read, update, and delete operations.
|
|
103
|
-
*/
|
|
104
|
-
export declare class EntityPermissionInfo extends BaseInfo {
|
|
105
|
-
ID: string;
|
|
106
|
-
EntityID: string;
|
|
107
|
-
RoleID: string;
|
|
108
|
-
CanCreate: boolean;
|
|
109
|
-
CanRead: boolean;
|
|
110
|
-
CanUpdate: boolean;
|
|
111
|
-
CanDelete: boolean;
|
|
112
|
-
ReadRLSFilterID: string;
|
|
113
|
-
CreateRLSFilterID: string;
|
|
114
|
-
UpdateRLSFilterID: string;
|
|
115
|
-
DeleteRLSFilterID: string;
|
|
116
|
-
__mj_CreatedAt: Date;
|
|
117
|
-
__mj_UpdatedAt: Date;
|
|
118
|
-
Entity: string;
|
|
119
|
-
Role: string;
|
|
120
|
-
RoleSQLName: string;
|
|
121
|
-
ReadRLSFilter: string;
|
|
122
|
-
CreateRLSFilter: string;
|
|
123
|
-
UpdateRLSFilter: string;
|
|
124
|
-
DeleteRLSFilter: string;
|
|
125
|
-
get CreateRLSFilterObject(): RowLevelSecurityFilterInfo;
|
|
126
|
-
get ReadRLSFilterObject(): RowLevelSecurityFilterInfo;
|
|
127
|
-
get UpdateRLSFilterObject(): RowLevelSecurityFilterInfo;
|
|
128
|
-
get DeleteRLSFilterObject(): RowLevelSecurityFilterInfo;
|
|
129
|
-
RLSFilter(type: EntityPermissionType): RowLevelSecurityFilterInfo;
|
|
130
|
-
constructor(initData: any);
|
|
131
|
-
}
|
|
132
|
-
export declare const EntityFieldTSType: {
|
|
133
|
-
readonly String: "string";
|
|
134
|
-
readonly Number: "number";
|
|
135
|
-
readonly Date: "Date";
|
|
136
|
-
readonly Boolean: "boolean";
|
|
137
|
-
};
|
|
138
|
-
export type EntityFieldTSType = (typeof EntityFieldTSType)[keyof typeof EntityFieldTSType];
|
|
139
|
-
export declare const EntityFieldGraphQLType: {
|
|
140
|
-
readonly Int: "Int";
|
|
141
|
-
readonly Float: "Float";
|
|
142
|
-
readonly String: "String";
|
|
143
|
-
readonly Boolean: "Boolean";
|
|
144
|
-
readonly Timestamp: "Timestamp";
|
|
145
|
-
};
|
|
146
|
-
export type EntityFieldGraphQLType = (typeof EntityFieldGraphQLType)[keyof typeof EntityFieldGraphQLType];
|
|
147
|
-
export declare const EntityFieldValueListType: {
|
|
148
|
-
readonly None: "None";
|
|
149
|
-
readonly List: "List";
|
|
150
|
-
readonly ListOrUserEntry: "ListOrUserEntry";
|
|
151
|
-
};
|
|
152
|
-
export type EntityFieldValueListType = (typeof EntityFieldValueListType)[keyof typeof EntityFieldValueListType];
|
|
153
|
-
/**
|
|
154
|
-
* Defines allowed values for entity fields with value lists.
|
|
155
|
-
* Supports dropdowns, validations, and data integrity constraints.
|
|
156
|
-
*/
|
|
157
|
-
export declare class EntityFieldValueInfo extends BaseInfo {
|
|
158
|
-
ID: string;
|
|
159
|
-
EntityFieldID: string;
|
|
160
|
-
Sequence: number;
|
|
161
|
-
Value: string;
|
|
162
|
-
Code: string;
|
|
163
|
-
Description: string;
|
|
164
|
-
__mj_CreatedAt: Date;
|
|
165
|
-
__mj_UpdatedAt: Date;
|
|
166
|
-
constructor(initData: any);
|
|
167
|
-
}
|
|
168
|
-
export declare const GeneratedFormSectionType: {
|
|
169
|
-
readonly Top: "Top";
|
|
170
|
-
readonly Details: "Details";
|
|
171
|
-
readonly Category: "Category";
|
|
172
|
-
};
|
|
173
|
-
export type GeneratedFormSectionType = (typeof GeneratedFormSectionType)[keyof typeof GeneratedFormSectionType];
|
|
174
|
-
/**
|
|
175
|
-
* Field information within an entity - object models data from the Entity Fields entity in the metadata
|
|
176
|
-
*/
|
|
177
|
-
/**
|
|
178
|
-
* List of all fields within each entity with metadata about each field.
|
|
179
|
-
* Includes data types, relationships, defaults, and UI display preferences.
|
|
180
|
-
*/
|
|
181
|
-
export declare class EntityFieldInfo extends BaseInfo {
|
|
182
|
-
ID: string;
|
|
183
|
-
/**
|
|
184
|
-
* Foreign key to the Entities entity.
|
|
185
|
-
*/
|
|
186
|
-
EntityID: string;
|
|
187
|
-
/**
|
|
188
|
-
* The sequence of the field within the entity, typically the intended display order
|
|
189
|
-
*/
|
|
190
|
-
Sequence: number;
|
|
191
|
-
Name: string;
|
|
192
|
-
/**
|
|
193
|
-
* Optional property that provides the display name for the field, if null, use the Name property.
|
|
194
|
-
* The DisplayNameOrName() method is a helper function that does this for you with a single method call.
|
|
195
|
-
*/
|
|
196
|
-
DisplayName: string;
|
|
197
|
-
Description: string;
|
|
198
|
-
/**
|
|
199
|
-
* If true, the field is the primary key for the entity. There must be one primary key field per entity.
|
|
200
|
-
*/
|
|
201
|
-
IsPrimaryKey: boolean;
|
|
202
|
-
/**
|
|
203
|
-
* If true, the field is a unique key for the entity. There can be zero to many unique key fields per entity.
|
|
204
|
-
*/
|
|
205
|
-
IsUnique: boolean;
|
|
206
|
-
Category: string;
|
|
207
|
-
Type: string;
|
|
208
|
-
Length: number;
|
|
209
|
-
Precision: number;
|
|
210
|
-
Scale: number;
|
|
211
|
-
AllowsNull: boolean;
|
|
212
|
-
DefaultValue: string;
|
|
213
|
-
AutoIncrement: boolean;
|
|
214
|
-
ValueListType: string;
|
|
215
|
-
ExtendedType: string;
|
|
216
|
-
DefaultInView: boolean;
|
|
217
|
-
ViewCellTemplate: string;
|
|
218
|
-
DefaultColumnWidth: number;
|
|
219
|
-
AllowUpdateAPI: boolean;
|
|
220
|
-
AllowUpdateInView: boolean;
|
|
221
|
-
IncludeInUserSearchAPI: boolean;
|
|
222
|
-
FullTextSearchEnabled: boolean;
|
|
223
|
-
UserSearchParamFormatAPI: string;
|
|
224
|
-
IncludeInGeneratedForm: boolean;
|
|
225
|
-
GeneratedFormSection: string;
|
|
226
|
-
IsVirtual: boolean;
|
|
227
|
-
IsNameField: boolean;
|
|
228
|
-
RelatedEntityID: string;
|
|
229
|
-
RelatedEntityFieldName: string;
|
|
230
|
-
IncludeRelatedEntityNameFieldInBaseView: boolean;
|
|
231
|
-
RelatedEntityNameFieldMap: string;
|
|
232
|
-
RelatedEntityDisplayType: 'Search' | 'Dropdown';
|
|
233
|
-
EntityIDFieldName: string;
|
|
234
|
-
__mj_CreatedAt: Date;
|
|
235
|
-
__mj_UpdatedAt: Date;
|
|
236
|
-
/**
|
|
237
|
-
* * Field Name: ScopeDefault
|
|
238
|
-
* * Display Name: Scope Default
|
|
239
|
-
* * SQL Data Type: nvarchar(100)
|
|
240
|
-
* * Description: A comma-delimited string indicating the default scope for field visibility. Options include Users, Admins, AI, and All. Defaults to All when NULL. This is used for a simple method of filtering field defaults for visibility, not security enforcement.
|
|
241
|
-
*/
|
|
242
|
-
ScopeDefault: string | null;
|
|
243
|
-
/**
|
|
244
|
-
* * Field Name: AutoUpdateRelatedEntityInfo
|
|
245
|
-
* * Display Name: Auto Update Related Entity Info
|
|
246
|
-
* * SQL Data Type: bit
|
|
247
|
-
* * Default Value: 1
|
|
248
|
-
* * Description: Indicates whether the related entity information should be automatically updated from the database schema. When set to 0, relationships not part of the database schema can be manually defined at the application and AI agent level. Defaults to 1.
|
|
249
|
-
*/
|
|
250
|
-
AutoUpdateRelatedEntityInfo: boolean;
|
|
251
|
-
/**
|
|
252
|
-
* * Field Name: ValuesToPackWithSchema
|
|
253
|
-
* * Display Name: Values To Pack With Schema
|
|
254
|
-
* * SQL Data Type: nvarchar(10)
|
|
255
|
-
* * Default Value: Auto
|
|
256
|
-
* * Value List Type: List
|
|
257
|
-
* * Possible Values
|
|
258
|
-
* * Auto
|
|
259
|
-
* * None
|
|
260
|
-
* * All
|
|
261
|
-
* * Description: Determines whether values for the field should be included when the schema is packed. Options: Auto (include manually set or auto-derived values), None (exclude all values), All (include all distinct values from the table). Defaults to Auto.
|
|
262
|
-
*/
|
|
263
|
-
ValuesToPackWithSchema: 'Auto' | 'None' | 'All';
|
|
264
|
-
/**
|
|
265
|
-
* * Field Name: GeneratedValidationFunctionName
|
|
266
|
-
* * Display Name: Generated Validation Function Name
|
|
267
|
-
* * SQL Data Type: nvarchar(255)
|
|
268
|
-
* * Default Value: null
|
|
269
|
-
* * Description: Contains the name of the generated field validation function, if it exists, null otherwise.
|
|
270
|
-
*/
|
|
271
|
-
GeneratedValidationFunctionName: string | null;
|
|
272
|
-
/**
|
|
273
|
-
* * Field Name: GeneratedValidationFunctionDescription
|
|
274
|
-
* * Display Name: Generated Validation Function Description
|
|
275
|
-
* * SQL Data Type: nvarchar(max)
|
|
276
|
-
* * Default Value: null
|
|
277
|
-
* * Description: Contains a description for business users of what the validation function for this field does, if it exists.
|
|
278
|
-
*/
|
|
279
|
-
GeneratedValidationFunctionDescription: string | null;
|
|
280
|
-
/**
|
|
281
|
-
* * Field Name: GeneratedValidationFunctionCode
|
|
282
|
-
* * Display Name: Generated Validation Function Code
|
|
283
|
-
* * SQL Data Type: nvarchar(max)
|
|
284
|
-
* * Default Value: null
|
|
285
|
-
* * Description: Contains the generated code for the field validation function, if it exists, null otherwise.
|
|
286
|
-
*/
|
|
287
|
-
GeneratedValidationFunctionCode: string | null;
|
|
288
|
-
/**
|
|
289
|
-
* * Field Name: GeneratedValidationFunctionCheckConstraint
|
|
290
|
-
* * Display Name: Generated Validation Function Check Constraint
|
|
291
|
-
* * SQL Data Type: nvarchar(max)
|
|
292
|
-
* * Default Value: null
|
|
293
|
-
* * Description: If a generated validation function was generated previously, this stores the text from the source CHECK constraint in the database. This is stored so that regeneration of the validation function will only occur when the source CHECK constraint changes.
|
|
294
|
-
*/
|
|
295
|
-
GeneratedValidationFunctionCheckConstraint: string | null;
|
|
296
|
-
/**
|
|
297
|
-
* * Field Name: Status
|
|
298
|
-
* * Display Name: Status
|
|
299
|
-
* * SQL Data Type: nvarchar(25)
|
|
300
|
-
* * Default Value: Active
|
|
301
|
-
* * Value List Type: List
|
|
302
|
-
* * Possible Values
|
|
303
|
-
* * Active
|
|
304
|
-
* * Deprecated
|
|
305
|
-
* * Disabled
|
|
306
|
-
* * Description: Current status of the entity field - Active fields are available for use, Deprecated fields are discouraged but still functional, Disabled fields are not available for use
|
|
307
|
-
*/
|
|
308
|
-
Status: 'Active' | 'Deprecated' | 'Disabled';
|
|
309
|
-
FieldCodeName: string;
|
|
310
|
-
Entity: string;
|
|
311
|
-
SchemaName: string;
|
|
312
|
-
BaseTable: string;
|
|
313
|
-
BaseView: string;
|
|
314
|
-
EntityCodeName: string;
|
|
315
|
-
EntityClassName: string;
|
|
316
|
-
RelatedEntity: string;
|
|
317
|
-
RelatedEntitySchemaName: string;
|
|
318
|
-
RelatedEntityBaseTable: string;
|
|
319
|
-
RelatedEntityBaseView: string;
|
|
320
|
-
RelatedEntityCodeName: string;
|
|
321
|
-
RelatedEntityClassName: string;
|
|
322
|
-
IsFloat: boolean;
|
|
323
|
-
_RelatedEntityTableAlias: string;
|
|
324
|
-
_RelatedEntityNameFieldIsVirtual: boolean;
|
|
325
|
-
_EntityFieldValues: EntityFieldValueInfo[];
|
|
326
|
-
_RelatedEntityNameFieldMap: string;
|
|
327
|
-
get EntityFieldValues(): EntityFieldValueInfo[];
|
|
328
|
-
/**
|
|
329
|
-
* Returns the ValueListType using the EntityFieldValueListType enum.
|
|
330
|
-
*/
|
|
331
|
-
get ValueListTypeEnum(): EntityFieldValueListType;
|
|
332
|
-
get GeneratedFormSectionType(): GeneratedFormSectionType;
|
|
333
|
-
/**
|
|
334
|
-
* Provides the TypeScript type for a given Entity Field. This is useful to map
|
|
335
|
-
* a wide array of database types to a narrower set of TypeScript types.
|
|
336
|
-
*/
|
|
337
|
-
get TSType(): EntityFieldTSType;
|
|
338
|
-
/**
|
|
339
|
-
* Returns true if the field type is a binary type such as binary, varbinary, or image.
|
|
340
|
-
*/
|
|
341
|
-
get IsBinaryFieldType(): boolean;
|
|
342
|
-
/**
|
|
343
|
-
* Returns the Unicode prefix (N) if the field type requires it, otherwise returns an empty string.
|
|
344
|
-
*/
|
|
345
|
-
get UnicodePrefix(): string;
|
|
346
|
-
/**
|
|
347
|
-
* Returns true if the field type requires a Unicode prefix (N) when used in a SQL statement.
|
|
348
|
-
*/
|
|
349
|
-
get RequiredUnicodePrefix(): boolean;
|
|
350
|
-
/**
|
|
351
|
-
* Returns true if the field type requires quotes around the value when used in a SQL statement
|
|
352
|
-
*/
|
|
353
|
-
get NeedsQuotes(): boolean;
|
|
354
|
-
/**
|
|
355
|
-
* For fields in the database that have characters invalid for SQL identifiers in them, we need to replace those characters with _ in order to create variables for stored procedures.
|
|
356
|
-
* This property returns a consistent CodeName you can use everywhere to refer to the field when generated variable names
|
|
357
|
-
*/
|
|
358
|
-
private _codeName;
|
|
359
|
-
get CodeName(): string;
|
|
360
|
-
get GraphQLType(): EntityFieldGraphQLType;
|
|
361
|
-
/**
|
|
362
|
-
* Returns a string with the full SQL data type that combines, as appropriate, Type, Length, Precision and Scale where these attributes are relevant to the Type
|
|
363
|
-
*/
|
|
364
|
-
get SQLFullType(): string;
|
|
365
|
-
get MaxLength(): number;
|
|
366
|
-
get ReadOnly(): boolean;
|
|
367
|
-
/**
|
|
368
|
-
* Helper method that returns true if the field is one of the special reserved MJ date fields for tracking CreatedAt and UpdatedAt timestamps as well as the DeletedAt timestamp used for entities that
|
|
369
|
-
* have DeleteType=Soft. This is only used when the entity has TrackRecordChanges=1 or for entities where DeleteType=Soft
|
|
370
|
-
*/
|
|
371
|
-
get IsSpecialDateField(): boolean;
|
|
372
|
-
/**
|
|
373
|
-
* Returns true if the field is the CreatedAt field, a special field that is used to track the creation date of a record. This is only used when the entity has TrackRecordChanges=1
|
|
374
|
-
*/
|
|
375
|
-
get IsCreatedAtField(): boolean;
|
|
376
|
-
/**
|
|
377
|
-
* Returns true if the field is the UpdatedAt field, a special field that is used to track the last update date of a record. This is only used when the entity has TrackRecordChanges=1
|
|
378
|
-
*/
|
|
379
|
-
get IsUpdatedAtField(): boolean;
|
|
380
|
-
/**
|
|
381
|
-
* Returns true if the field is the DeletedAt field, a special field that is used to track the deletion date of a record. This is only used when the entity has DeleteType=Soft
|
|
382
|
-
*/
|
|
383
|
-
get IsDeletedAtField(): boolean;
|
|
384
|
-
/**
|
|
385
|
-
* Returns true if the field is a uniqueidentifier in the database.
|
|
386
|
-
*/
|
|
387
|
-
get IsUniqueIdentifier(): boolean;
|
|
388
|
-
/**
|
|
389
|
-
* Returns true if the field has a default value set
|
|
390
|
-
*/
|
|
391
|
-
get HasDefaultValue(): boolean;
|
|
392
|
-
/**
|
|
393
|
-
* Returns true if the field is a "special" field (see list below) and is handled inside the DB layer and should be ignored in validation by the BaseEntity architecture
|
|
394
|
-
* Also, we skip validation if we have a field that is:
|
|
395
|
-
* - the primary key
|
|
396
|
-
* - an autoincrement field
|
|
397
|
-
* - the field is virtual
|
|
398
|
-
* - the field is readonly
|
|
399
|
-
* - the field is a special date field
|
|
400
|
-
*/
|
|
401
|
-
get SkipValidation(): boolean;
|
|
402
|
-
/**
|
|
403
|
-
* Returns the DisplayName if it exists, otherwise returns the Name.
|
|
404
|
-
*/
|
|
405
|
-
get DisplayNameOrName(): string;
|
|
406
|
-
/**
|
|
407
|
-
* Formats a value based on the parameters passed in. This is a wrapper utility method that already know the SQL type from the entity field definition and simply calls the generic FormatValue() function that is also exported by @memberjunction/core
|
|
408
|
-
* @param value - Value to format
|
|
409
|
-
* @param decimals Number of decimals to show, defaults to 2
|
|
410
|
-
* @param currency Currency to use when formatting, defaults to USD
|
|
411
|
-
* @param maxLength Maximum length of the string to return, if the formatted value is longer than this length then the string will be truncated and the trailingChars will be appended to the end of the string
|
|
412
|
-
* @param trailingChars Only used if maxLength is > 0 and the string being formatted is > maxLength, this is the string that will be appended to the end of the string to indicate that it was truncated, defaults to "..."
|
|
413
|
-
* @returns either the original string value or a formatted version. If the format cannot be applied an an exception occurs it is captured and the error is put to the log, and the original value is returned
|
|
414
|
-
*/
|
|
415
|
-
FormatValue(value: any, decimals?: number, currency?: string, maxLength?: number, trailingChars?: string): string;
|
|
416
|
-
constructor(initData?: any);
|
|
417
|
-
/**
|
|
418
|
-
* This static factory method is used to check to see if the entity field in question is active or not
|
|
419
|
-
* If it is not active, it will throw an exception or log a warning depending on the status of the entity field being
|
|
420
|
-
* either Deprecated or Disabled.
|
|
421
|
-
* @param entityField - the EntityFieldInfo object to check the status of
|
|
422
|
-
* @param callerName - the name of the caller that is calling this method, used for logging purposes such as EntityField::constructor as an example.
|
|
423
|
-
*/
|
|
424
|
-
static AssertEntityFieldActiveStatus(entityField: EntityFieldInfo, callerName: string): void;
|
|
425
|
-
/**
|
|
426
|
-
* Readonly array of SQL Server date/time functions that return the current date/time
|
|
427
|
-
*/
|
|
428
|
-
private static readonly SQL_CURRENT_DATE_FUNCTIONS;
|
|
429
|
-
/**
|
|
430
|
-
* Checks if a default value is a SQL Server function that returns the current date/time
|
|
431
|
-
* @param defaultValue - The default value to check
|
|
432
|
-
* @returns true if the default value is a SQL current date/time function, false otherwise
|
|
433
|
-
*/
|
|
434
|
-
static IsDefaultValueSQLCurrentDateFunction(defaultValue: string | null | undefined): boolean;
|
|
435
|
-
}
|
|
436
|
-
/**
|
|
437
|
-
* Entity Document Type Info object has information about the document types that exist across all entities. When Entity Documents are created they are associated with a document type.
|
|
438
|
-
*/
|
|
439
|
-
/**
|
|
440
|
-
* Defines types of documents that can be generated from entity data.
|
|
441
|
-
* Supports various output formats for entity records.
|
|
442
|
-
*/
|
|
443
|
-
export declare class EntityDocumentTypeInfo extends BaseInfo {
|
|
444
|
-
ID: string;
|
|
445
|
-
Name: string;
|
|
446
|
-
Description: string;
|
|
447
|
-
__mj_CreatedAt: Date;
|
|
448
|
-
__mj_UpdatedAt: Date;
|
|
449
|
-
constructor(initData?: any);
|
|
450
|
-
}
|
|
451
|
-
/**
|
|
452
|
-
* Settings allow you to store key/value pairs of information that can be used to configure the behavior of the entity.
|
|
453
|
-
*/
|
|
454
|
-
/**
|
|
455
|
-
* Stores entity-specific configuration settings.
|
|
456
|
-
* Allows customization of how entities function within the system.
|
|
457
|
-
*/
|
|
458
|
-
export declare class EntitySettingInfo extends BaseInfo {
|
|
459
|
-
ID: string;
|
|
460
|
-
EntityID: string;
|
|
461
|
-
Name: string;
|
|
462
|
-
Value: string;
|
|
463
|
-
Comments: string;
|
|
464
|
-
__mj_CreatedAt: Date;
|
|
465
|
-
__mj_UpdatedAt: Date;
|
|
466
|
-
constructor(initData?: any);
|
|
467
|
-
}
|
|
468
|
-
/**
|
|
469
|
-
* Catalog of all entities across all schemas.
|
|
470
|
-
* Contains comprehensive metadata about each entity including its database mappings, security settings, and UI preferences.
|
|
471
|
-
*/
|
|
472
|
-
export declare class EntityInfo extends BaseInfo {
|
|
473
|
-
/**
|
|
474
|
-
* Unique identifier for the entity
|
|
475
|
-
*/
|
|
476
|
-
ID: string;
|
|
477
|
-
/**
|
|
478
|
-
* Reserved for future use - parent entity for hierarchical relationships
|
|
479
|
-
*/
|
|
480
|
-
ParentID: string;
|
|
481
|
-
/**
|
|
482
|
-
* Unique name of the entity used throughout the system
|
|
483
|
-
*/
|
|
484
|
-
Name: string;
|
|
485
|
-
/**
|
|
486
|
-
* Optional display name for the entity. If not provided, the entity Name will be used for display purposes.
|
|
487
|
-
*/
|
|
488
|
-
DisplayName: string;
|
|
489
|
-
/**
|
|
490
|
-
* Optional suffix appended to entity names for display purposes
|
|
491
|
-
*/
|
|
492
|
-
NameSuffix: string;
|
|
493
|
-
/**
|
|
494
|
-
* Detailed description of the entity's purpose and contents
|
|
495
|
-
*/
|
|
496
|
-
Description: string;
|
|
497
|
-
/**
|
|
498
|
-
* The underlying database table name this entity maps to
|
|
499
|
-
*/
|
|
500
|
-
BaseTable: string;
|
|
501
|
-
/**
|
|
502
|
-
* The database view used as a "wrapper" for accessing this entity's data
|
|
503
|
-
*/
|
|
504
|
-
BaseView: string;
|
|
505
|
-
/**
|
|
506
|
-
* Whether the base view is generated by CodeGen (true) or manually created (false)
|
|
507
|
-
*/
|
|
508
|
-
BaseViewGenerated: boolean;
|
|
509
|
-
/**
|
|
510
|
-
* Database schema that contains this entity's table and view
|
|
511
|
-
*/
|
|
512
|
-
SchemaName: string;
|
|
513
|
-
/**
|
|
514
|
-
* If true, this is a virtual entity not backed by a physical database table
|
|
515
|
-
*/
|
|
516
|
-
VirtualEntity: boolean;
|
|
517
|
-
/**
|
|
518
|
-
* Whether to track all changes to records in the RecordChange table
|
|
519
|
-
*/
|
|
520
|
-
TrackRecordChanges: boolean;
|
|
521
|
-
/**
|
|
522
|
-
* Whether to audit when users access records from this entity
|
|
523
|
-
*/
|
|
524
|
-
AuditRecordAccess: boolean;
|
|
525
|
-
/**
|
|
526
|
-
* Whether to audit when views are run against this entity
|
|
527
|
-
*/
|
|
528
|
-
AuditViewRuns: boolean;
|
|
529
|
-
/**
|
|
530
|
-
* Whether this entity is available through the GraphQL API
|
|
531
|
-
*/
|
|
532
|
-
IncludeInAPI: boolean;
|
|
533
|
-
/**
|
|
534
|
-
* If true, allows querying all rows without pagination limits via API
|
|
535
|
-
*/
|
|
536
|
-
AllowAllRowsAPI: boolean;
|
|
537
|
-
/**
|
|
538
|
-
* Global flag controlling whether records can be updated via API
|
|
539
|
-
*/
|
|
540
|
-
AllowUpdateAPI: boolean;
|
|
541
|
-
/**
|
|
542
|
-
* Global flag controlling whether records can be created via API
|
|
543
|
-
*/
|
|
544
|
-
AllowCreateAPI: boolean;
|
|
545
|
-
/**
|
|
546
|
-
* Global flag controlling whether records can be deleted via API
|
|
547
|
-
*/
|
|
548
|
-
AllowDeleteAPI: boolean;
|
|
549
|
-
/**
|
|
550
|
-
* If true, uses a custom resolver for GraphQL operations instead of standard CRUD
|
|
551
|
-
*/
|
|
552
|
-
CustomResolverAPI: boolean;
|
|
553
|
-
/**
|
|
554
|
-
* Whether users can search this entity through the search API
|
|
555
|
-
*/
|
|
556
|
-
AllowUserSearchAPI: boolean;
|
|
557
|
-
/**
|
|
558
|
-
* Whether full-text search is enabled for this entity
|
|
559
|
-
*/
|
|
560
|
-
FullTextSearchEnabled: boolean;
|
|
561
|
-
/**
|
|
562
|
-
* Name of the SQL Server full-text catalog used for searching
|
|
563
|
-
*/
|
|
564
|
-
FullTextCatalog: string;
|
|
565
|
-
/**
|
|
566
|
-
* Whether the full-text catalog is generated by CodeGen
|
|
567
|
-
*/
|
|
568
|
-
FullTextCatalogGenerated: boolean;
|
|
569
|
-
/**
|
|
570
|
-
* Name of the full-text index on this entity
|
|
571
|
-
*/
|
|
572
|
-
FullTextIndex: string;
|
|
573
|
-
/**
|
|
574
|
-
* Whether the full-text index is generated by CodeGen
|
|
575
|
-
*/
|
|
576
|
-
FullTextIndexGenerated: boolean;
|
|
577
|
-
/**
|
|
578
|
-
* Name of the function used for full-text searching
|
|
579
|
-
*/
|
|
580
|
-
FullTextSearchFunction: string;
|
|
581
|
-
/**
|
|
582
|
-
* Whether the full-text search function is generated by CodeGen
|
|
583
|
-
*/
|
|
584
|
-
FullTextSearchFunctionGenerated: boolean;
|
|
585
|
-
/**
|
|
586
|
-
* Maximum number of rows to return in user views to prevent performance issues
|
|
587
|
-
*/
|
|
588
|
-
UserViewMaxRows: number;
|
|
589
|
-
/**
|
|
590
|
-
* Name of the stored procedure for creating records
|
|
591
|
-
*/
|
|
592
|
-
spCreate: string;
|
|
593
|
-
/**
|
|
594
|
-
* Name of the stored procedure for updating records
|
|
595
|
-
*/
|
|
596
|
-
spUpdate: string;
|
|
597
|
-
/**
|
|
598
|
-
* Name of the stored procedure for deleting records
|
|
599
|
-
*/
|
|
600
|
-
spDelete: string;
|
|
601
|
-
/**
|
|
602
|
-
* Whether the create stored procedure is generated by CodeGen
|
|
603
|
-
*/
|
|
604
|
-
spCreateGenerated: boolean;
|
|
605
|
-
/**
|
|
606
|
-
* Whether the update stored procedure is generated by CodeGen
|
|
607
|
-
*/
|
|
608
|
-
spUpdateGenerated: boolean;
|
|
609
|
-
/**
|
|
610
|
-
* Whether the delete stored procedure is generated by CodeGen
|
|
611
|
-
*/
|
|
612
|
-
spDeleteGenerated: boolean;
|
|
613
|
-
/**
|
|
614
|
-
* Whether to automatically delete related records when a parent is deleted
|
|
615
|
-
*/
|
|
616
|
-
CascadeDeletes: boolean;
|
|
617
|
-
/**
|
|
618
|
-
* Type of delete operation: Hard (physical delete) or Soft (mark as deleted)
|
|
619
|
-
*/
|
|
620
|
-
DeleteType: 'Hard' | 'Soft';
|
|
621
|
-
/**
|
|
622
|
-
* Whether records in this entity can be merged together
|
|
623
|
-
*/
|
|
624
|
-
AllowRecordMerge: boolean;
|
|
625
|
-
/**
|
|
626
|
-
* Name of the stored procedure used for matching/duplicate detection
|
|
627
|
-
*/
|
|
628
|
-
spMatch: string;
|
|
629
|
-
/**
|
|
630
|
-
* Default display type for relationships: Search (type-ahead) or Dropdown
|
|
631
|
-
*/
|
|
632
|
-
RelationshipDefaultDisplayType: 'Search' | 'Dropdown';
|
|
633
|
-
/**
|
|
634
|
-
* Whether the user form for this entity is generated by CodeGen
|
|
635
|
-
*/
|
|
636
|
-
UserFormGenerated: boolean;
|
|
637
|
-
/**
|
|
638
|
-
* Name of the TypeScript subclass for this entity if custom behavior is needed
|
|
639
|
-
*/
|
|
640
|
-
EntityObjectSubclassName: string;
|
|
641
|
-
/**
|
|
642
|
-
* Import statement for the entity's TypeScript subclass
|
|
643
|
-
*/
|
|
644
|
-
EntityObjectSubclassImport: string;
|
|
645
|
-
/**
|
|
646
|
-
* Field name that contains the preferred communication method (email, phone, etc.)
|
|
647
|
-
*/
|
|
648
|
-
PreferredCommunicationField: string;
|
|
649
|
-
/**
|
|
650
|
-
* CSS class or icon identifier for displaying this entity in the UI
|
|
651
|
-
*/
|
|
652
|
-
Icon: string;
|
|
653
|
-
/**
|
|
654
|
-
* Date and time when this entity was created
|
|
655
|
-
*/
|
|
656
|
-
__mj_CreatedAt: Date;
|
|
657
|
-
/**
|
|
658
|
-
* Date and time when this entity was last updated
|
|
659
|
-
*/
|
|
660
|
-
__mj_UpdatedAt: Date;
|
|
661
|
-
/**
|
|
662
|
-
* * Field Name: ScopeDefault
|
|
663
|
-
* * Display Name: Scope Default
|
|
664
|
-
* * SQL Data Type: nvarchar(100)
|
|
665
|
-
* * Description: Optional, comma-delimited string indicating the default scope for entity visibility. Options include Users, Admins, AI, and All. Defaults to All when NULL. This is used for simple defaults for filtering entity visibility, not security enforcement.
|
|
666
|
-
*/
|
|
667
|
-
ScopeDefault: string | null;
|
|
668
|
-
/**
|
|
669
|
-
* * Field Name: RowsToPackWithSchema
|
|
670
|
-
* * Display Name: Rows To Pack With Schema
|
|
671
|
-
* * SQL Data Type: nvarchar(20)
|
|
672
|
-
* * Default Value: None
|
|
673
|
-
* * Value List Type: List
|
|
674
|
-
* * Possible Values
|
|
675
|
-
* * None
|
|
676
|
-
* * Sample
|
|
677
|
-
* * All
|
|
678
|
-
* * Description: Determines how entity rows should be packaged for external use. Options include None, Sample, and All. Defaults to None.
|
|
679
|
-
*/
|
|
680
|
-
RowsToPackWithSchema: 'None' | 'Sample' | 'All';
|
|
681
|
-
/**
|
|
682
|
-
* * Field Name: RowsToPackSampleMethod
|
|
683
|
-
* * Display Name: Rows To Pack Sample Method
|
|
684
|
-
* * SQL Data Type: nvarchar(20)
|
|
685
|
-
* * Default Value: random
|
|
686
|
-
* * Value List Type: List
|
|
687
|
-
* * Possible Values
|
|
688
|
-
* * random
|
|
689
|
-
* * top n
|
|
690
|
-
* * bottom n
|
|
691
|
-
* * Description: Defines the sampling method for row packing when RowsToPackWithSchema is set to Sample. Options include random, top n, and bottom n. Defaults to random.
|
|
692
|
-
*/
|
|
693
|
-
RowsToPackSampleMethod: 'random' | 'top n' | 'bottom n';
|
|
694
|
-
/**
|
|
695
|
-
* * Field Name: RowsToPackSampleCount
|
|
696
|
-
* * Display Name: Rows To Pack Sample Count
|
|
697
|
-
* * SQL Data Type: int
|
|
698
|
-
* * Default Value: 0
|
|
699
|
-
* * Description: The number of rows to pack when RowsToPackWithSchema is set to Sample, based on the designated sampling method. Defaults to 0.
|
|
700
|
-
*/
|
|
701
|
-
RowsToPackSampleCount: number;
|
|
702
|
-
/**
|
|
703
|
-
* * Field Name: RowsToPackSampleOrder
|
|
704
|
-
* * Display Name: Rows To Pack Sample Order
|
|
705
|
-
* * SQL Data Type: nvarchar(MAX)
|
|
706
|
-
* * Description: An optional ORDER BY clause for row packing when RowsToPackWithSchema is set to Sample. Allows custom ordering for selected entity data when using top n and bottom n.
|
|
707
|
-
*/
|
|
708
|
-
RowsToPackSampleOrder: string | null;
|
|
709
|
-
/**
|
|
710
|
-
* * Field Name: AutoRowCountFrequency
|
|
711
|
-
* * Display Name: Auto Row Count Frequency
|
|
712
|
-
* * SQL Data Type: int
|
|
713
|
-
* * Description: Frequency in hours for automatically performing row counts on this entity. If NULL, automatic row counting is disabled. If greater than 0, schedules recurring SELECT COUNT(*) queries at the specified interval.
|
|
714
|
-
*/
|
|
715
|
-
AutoRowCountFrequency: number | null;
|
|
716
|
-
/**
|
|
717
|
-
* * Field Name: RowCount
|
|
718
|
-
* * Display Name: Row Count
|
|
719
|
-
* * SQL Data Type: bigint
|
|
720
|
-
* * Description: Cached row count for this entity, populated by automatic row count processes when AutoRowCountFrequency is configured.
|
|
721
|
-
*/
|
|
722
|
-
RowCount: number | null;
|
|
723
|
-
/**
|
|
724
|
-
* * Field Name: RowCountRunAt
|
|
725
|
-
* * Display Name: Row Count Run At
|
|
726
|
-
* * SQL Data Type: datetimeoffset
|
|
727
|
-
* * Description: Timestamp indicating when the last automatic row count was performed for this entity.
|
|
728
|
-
*/
|
|
729
|
-
RowCountRunAt: Date | null;
|
|
730
|
-
/**
|
|
731
|
-
* * Field Name: Status
|
|
732
|
-
* * Display Name: Status
|
|
733
|
-
* * SQL Data Type: nvarchar(25)
|
|
734
|
-
* * Default Value: Active
|
|
735
|
-
* * Description: Status of the entity. Active: fully functional; Deprecated: functional but generates console warnings when used; Disabled: not available for use even though metadata and physical table remain.
|
|
736
|
-
*/
|
|
737
|
-
Status: 'Active' | 'Deprecated' | 'Disabled';
|
|
738
|
-
/**
|
|
739
|
-
* CodeName is a unique name that can be used for various programatic purposes, singular version of the entity name but modified from entity name in some cases to remove whitespace and prefix with _ in the event that the entity name begins with a number or other non-alpha character
|
|
740
|
-
*/
|
|
741
|
-
CodeName: string;
|
|
742
|
-
ClassName: string;
|
|
743
|
-
BaseTableCodeName: string;
|
|
744
|
-
ParentEntity: number;
|
|
745
|
-
ParentBaseTable: string;
|
|
746
|
-
ParentBaseView: string;
|
|
747
|
-
private _Fields;
|
|
748
|
-
private _RelatedEntities;
|
|
749
|
-
private _Permissions;
|
|
750
|
-
private _Settings;
|
|
751
|
-
_hasIdField: boolean;
|
|
752
|
-
_virtualCount: number;
|
|
753
|
-
_manyToManyCount: number;
|
|
754
|
-
_oneToManyCount: number;
|
|
755
|
-
_floatCount: number;
|
|
756
|
-
/**
|
|
757
|
-
* Returns the primary key field for the entity. For entities with a composite primary key, use the PrimaryKeys property which returns all.
|
|
758
|
-
* In the case of a composite primary key, the PrimaryKey property will return the first field in the sequence of the primary key fields.
|
|
759
|
-
*/
|
|
760
|
-
get FirstPrimaryKey(): EntityFieldInfo;
|
|
761
|
-
/**
|
|
762
|
-
* Returns an array of all fields that are part of the primary key for the entity. If the entity has a single primary key, the array will have a single element.
|
|
763
|
-
*/
|
|
764
|
-
get PrimaryKeys(): EntityFieldInfo[];
|
|
765
|
-
/**
|
|
766
|
-
* Returns an array of all fields that have unique constraints on them.
|
|
767
|
-
* @returns {EntityFieldInfo[]} Array of fields with unique constraints
|
|
768
|
-
*/
|
|
769
|
-
get UniqueKeys(): EntityFieldInfo[];
|
|
770
|
-
/**
|
|
771
|
-
* Returns an array of all fields that are foreign keys to other entities.
|
|
772
|
-
* @returns {EntityFieldInfo[]} Array of foreign key fields
|
|
773
|
-
*/
|
|
774
|
-
get ForeignKeys(): EntityFieldInfo[];
|
|
775
|
-
/**
|
|
776
|
-
* Gets all fields for this entity with their complete metadata.
|
|
777
|
-
* @returns {EntityFieldInfo[]} Array of all entity fields
|
|
778
|
-
*/
|
|
779
|
-
get Fields(): EntityFieldInfo[];
|
|
780
|
-
/**
|
|
781
|
-
* Gets all relationships where other entities reference this entity.
|
|
782
|
-
* @returns {EntityRelationshipInfo[]} Array of entity relationships
|
|
783
|
-
*/
|
|
784
|
-
get RelatedEntities(): EntityRelationshipInfo[];
|
|
785
|
-
/**
|
|
786
|
-
* Gets the security permissions for this entity by role.
|
|
787
|
-
* @returns {EntityPermissionInfo[]} Array of permission settings
|
|
788
|
-
*/
|
|
789
|
-
get Permissions(): EntityPermissionInfo[];
|
|
790
|
-
/**
|
|
791
|
-
* Gets custom configuration settings for this entity.
|
|
792
|
-
* @returns {EntitySettingInfo[]} Array of entity-specific settings
|
|
793
|
-
*/
|
|
794
|
-
get Settings(): EntitySettingInfo[];
|
|
795
|
-
private static __createdAtFieldName;
|
|
796
|
-
private static __updatedAtFieldName;
|
|
797
|
-
private static __deletedAtFieldName;
|
|
798
|
-
/**
|
|
799
|
-
* Returns the name of the special reserved field that is used to store the CreatedAt timestamp across all of MJ. This is only used when an entity has TrackRecordChanges turned on
|
|
800
|
-
*/
|
|
801
|
-
static get CreatedAtFieldName(): string;
|
|
802
|
-
/**
|
|
803
|
-
* Returns the name of the special reserved field that is used to store the UpdatedAt timestamp across all of MJ. This is only used when an entity has TrackRecordChanges turned on
|
|
804
|
-
*/
|
|
805
|
-
static get UpdatedAtFieldName(): string;
|
|
806
|
-
/**
|
|
807
|
-
* Returns the name of the special reserved field that is used to store the DeletedAt timestamp across all of MJ. This is only used when an entity has DeleteType=Soft
|
|
808
|
-
*/
|
|
809
|
-
static get DeletedAtFieldName(): string;
|
|
810
|
-
/**
|
|
811
|
-
* This static factory method is used to check to see if the entity in question is active or not
|
|
812
|
-
* If it is not active, it will throw an exception or log a warning depending on the status of the entity being
|
|
813
|
-
* either Deprecated or Disabled.
|
|
814
|
-
* @param entity - the EntityInfo object to check the status of
|
|
815
|
-
* @param callerName - the name of the caller that is calling this method, used for logging purposes such as BaseEntity::constructor as an example.
|
|
816
|
-
*/
|
|
817
|
-
static AssertEntityActiveStatus(entity: EntityInfo, callerName: string): void;
|
|
818
|
-
/**
|
|
819
|
-
* @returns The BaseTable but with spaces inbetween capital letters
|
|
820
|
-
* */
|
|
821
|
-
get BaseTableDisplayName(): string;
|
|
822
|
-
/**
|
|
823
|
-
* Returns the DisplayName if it exists, otherwise returns the Name.
|
|
824
|
-
*/
|
|
825
|
-
get DisplayNameOrName(): string;
|
|
826
|
-
/**
|
|
827
|
-
* Returns the EntityField object for the Field that has IsNameField set to true. If multiple fields have IsNameField on, the function will return the first field (by sequence) that matches.
|
|
828
|
-
* If no fields match, if there is a field called "Name", that is returned. If there is no field called "Name", null is returned.
|
|
829
|
-
*/
|
|
830
|
-
get NameField(): EntityFieldInfo | null;
|
|
831
|
-
/**
|
|
832
|
-
* Returns the Permissions for this entity for a given user, based on the roles the user is part of
|
|
833
|
-
* @param user
|
|
834
|
-
* @returns
|
|
835
|
-
*/
|
|
836
|
-
GetUserPermisions(user: UserInfo): EntityUserPermissionInfo;
|
|
837
|
-
/**
|
|
838
|
-
* Determines if a given user, for a given permission type, is exempt from RowLevelSecurity or not
|
|
839
|
-
* @param user
|
|
840
|
-
* @param type
|
|
841
|
-
* @returns
|
|
842
|
-
*/
|
|
843
|
-
UserExemptFromRowLevelSecurity(user: UserInfo, type: EntityPermissionType): boolean;
|
|
844
|
-
/**
|
|
845
|
-
* Returns RLS security info attributes for a given user and permission type
|
|
846
|
-
* @param user
|
|
847
|
-
* @param type
|
|
848
|
-
* @returns
|
|
849
|
-
*/
|
|
850
|
-
GetUserRowLevelSecurityInfo(user: UserInfo, type: EntityPermissionType): RowLevelSecurityFilterInfo[];
|
|
851
|
-
/**
|
|
852
|
-
* Generates a where clause for SQL filtering for a given entity for a given user and permission type. If there is no RLS for a given entity or the user is exempt from RLS for the entity, a blank string is returned.
|
|
853
|
-
* @param user
|
|
854
|
-
* @param type
|
|
855
|
-
* @param returnPrefix
|
|
856
|
-
* @returns
|
|
857
|
-
*/
|
|
858
|
-
GetUserRowLevelSecurityWhereClause(user: UserInfo, type: EntityPermissionType, returnPrefix: string): string;
|
|
859
|
-
/**
|
|
860
|
-
* Returns a RunViewParams object that is setup to filter the related entity for the provided record
|
|
861
|
-
* @param record
|
|
862
|
-
* @param relationship
|
|
863
|
-
* @param filter
|
|
864
|
-
* @returns
|
|
865
|
-
*/
|
|
866
|
-
static BuildRelationshipViewParams(record: BaseEntity, relationship: EntityRelationshipInfo, filter?: string, maxRecords?: number): RunViewParams;
|
|
867
|
-
/**
|
|
868
|
-
* Builds a simple javascript object that will pre-populate a new record in the related entity with values that link back to the specified record.
|
|
869
|
-
* This is useful, for example, when creating a new contact from an account, we want to pre-populate the account ID in the new contact record
|
|
870
|
-
*/
|
|
871
|
-
static BuildRelationshipNewRecordValues(record: BaseEntity, relationship: EntityRelationshipInfo): any;
|
|
872
|
-
constructor(initData?: any);
|
|
873
|
-
private prepareSpecialFields;
|
|
874
|
-
}
|
|
875
|
-
/**
|
|
876
|
-
* Information about the link between two entities
|
|
877
|
-
*/
|
|
878
|
-
export declare class EntityDependency {
|
|
879
|
-
/**
|
|
880
|
-
* The name of the entity that is the "parent" in the relationship
|
|
881
|
-
*/
|
|
882
|
-
EntityName: string;
|
|
883
|
-
/**
|
|
884
|
-
* The name of the entity that is the "child" in the relationship
|
|
885
|
-
*/
|
|
886
|
-
RelatedEntityName: string;
|
|
887
|
-
/**
|
|
888
|
-
* The name of the field in the related entity that is the foreign key field back to the primary key of the "parent" entity
|
|
889
|
-
*/
|
|
890
|
-
FieldName: string;
|
|
891
|
-
}
|
|
892
|
-
/**
|
|
893
|
-
* Information about the link between two records
|
|
894
|
-
*/
|
|
895
|
-
export declare class RecordDependency {
|
|
896
|
-
/**
|
|
897
|
-
* The name of the entity that is the "parent" in the relationship
|
|
898
|
-
*/
|
|
899
|
-
EntityName: string;
|
|
900
|
-
/**
|
|
901
|
-
* The name of the entity that is the "child" in the relationship
|
|
902
|
-
*/
|
|
903
|
-
RelatedEntityName: string;
|
|
904
|
-
/**
|
|
905
|
-
* The name of the field in the related entity that is the foreign key field back to the primary key of the "parent" entity
|
|
906
|
-
*/
|
|
907
|
-
FieldName: string;
|
|
908
|
-
/**
|
|
909
|
-
* The value of the primary key field in the parent record. MemberJunction supports composite(multi-field) primary keys. However, foreign keys only support links to single-valued primary keys in their linked entity.
|
|
910
|
-
*/
|
|
911
|
-
PrimaryKey: CompositeKey;
|
|
912
|
-
}
|
|
913
|
-
/**
|
|
914
|
-
* Information about a merge request including the entity, the surviving record and the records to merge into the surviving record. Additionally, there is an optional field map that can be used to override field values in the surviving record to values specified.
|
|
915
|
-
*/
|
|
916
|
-
export declare class RecordMergeRequest {
|
|
917
|
-
/**
|
|
918
|
-
* The name of the entity to merge records for
|
|
919
|
-
*/
|
|
920
|
-
EntityName: string;
|
|
921
|
-
/**
|
|
922
|
-
* The composite key for the surviving record
|
|
923
|
-
*/
|
|
924
|
-
SurvivingRecordCompositeKey: CompositeKey;
|
|
925
|
-
/**
|
|
926
|
-
* The composite key(s) for the record(s) to merge into the surviving record
|
|
927
|
-
*/
|
|
928
|
-
RecordsToMerge: CompositeKey[];
|
|
929
|
-
/**
|
|
930
|
-
* If you want to keep the values in the fields of the surviving record as they are, leave this blank. If you want to override the values in the surviving record with other values, specify the values you would like for each field in this array of objects. Each object has two properties, FieldName and Value. The FieldName is the name of the field to set and the Value is the value to set in it.
|
|
931
|
-
*/
|
|
932
|
-
FieldMap?: {
|
|
933
|
-
FieldName: string;
|
|
934
|
-
Value: any;
|
|
935
|
-
}[];
|
|
936
|
-
}
|
|
937
|
-
/**
|
|
938
|
-
* The result of a merge request for a single record
|
|
939
|
-
*/
|
|
940
|
-
export declare class RecordMergeDetailResult {
|
|
941
|
-
/**
|
|
942
|
-
* The primary key value(s) for a record that was merged
|
|
943
|
-
*/
|
|
944
|
-
CompositeKey: CompositeKey;
|
|
945
|
-
/**
|
|
946
|
-
* True if the merge for this specific record was successful, false if not
|
|
947
|
-
*/
|
|
948
|
-
Success: boolean;
|
|
949
|
-
/**
|
|
950
|
-
* Deletion Log ID for the specific record that was merged
|
|
951
|
-
*/
|
|
952
|
-
RecordMergeDeletionLogID: number | null;
|
|
953
|
-
/**
|
|
954
|
-
* Status message, if any, for the specific record that was merged
|
|
955
|
-
*/
|
|
956
|
-
Message?: string;
|
|
957
|
-
}
|
|
958
|
-
/**
|
|
959
|
-
* The result of a merge request
|
|
960
|
-
*/
|
|
961
|
-
export declare class RecordMergeResult {
|
|
962
|
-
/**
|
|
963
|
-
* True if the merge was successful, false if not
|
|
964
|
-
*/
|
|
965
|
-
Success: boolean;
|
|
966
|
-
/**
|
|
967
|
-
* Status message on the overall operation
|
|
968
|
-
*/
|
|
969
|
-
OverallStatus: string;
|
|
970
|
-
/**
|
|
971
|
-
* The ID of the log record for the merge operation
|
|
972
|
-
*/
|
|
973
|
-
RecordMergeLogID: string | null;
|
|
974
|
-
/**
|
|
975
|
-
* The details of the merge operation, including the status of each record that was merged
|
|
976
|
-
*/
|
|
977
|
-
RecordStatus: RecordMergeDetailResult[];
|
|
978
|
-
/**
|
|
979
|
-
* The original merge request that was passed in
|
|
980
|
-
*/
|
|
981
|
-
Request: RecordMergeRequest;
|
|
982
|
-
}
|
|
983
|
-
//# sourceMappingURL=entityInfo.d.ts.map
|