@memberjunction/core-entities 2.33.0 → 2.34.1
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.
|
@@ -8,11 +8,11 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.ContentSourceParamSchema = exports.ContentProcessRunSchema = exports.ContentItemSchema = exports.ContentItemTagSchema = exports.ContentItemAttributeSchema = exports.ContentFileTypeSchema = exports.CompanyIntegrationSchema = exports.CompanyIntegrationRunSchema = exports.CompanyIntegrationRunDetailSchema = exports.CompanyIntegrationRunAPILogSchema = exports.CompanyIntegrationRecordMapSchema = exports.CompanySchema = exports.CommunicationRunSchema = exports.CommunicationProviderSchema = exports.CommunicationProviderMessageTypeSchema = exports.CommunicationLogSchema = exports.CommunicationBaseMessageTypeSchema = exports.AuthorizationSchema = exports.AuthorizationRoleSchema = exports.AuditLogSchema = exports.AuditLogTypeSchema = exports.ApplicationSchema = exports.ApplicationSettingSchema = exports.ApplicationEntitySchema = exports.AIResultCacheSchema = exports.AIPromptSchema = exports.AIPromptTypeSchema = exports.AIPromptCategorySchema = exports.AIModelSchema = exports.AIModelTypeSchema = exports.AIModelActionSchema = exports.AIAgentSchema = exports.AIAgentRequestSchema = exports.AIAgentNoteSchema = exports.AIAgentNoteTypeSchema = exports.AIAgentModelSchema = exports.AIAgentLearningCycleSchema = exports.AIAgentActionSchema = exports.AIActionSchema = exports.ActionSchema = exports.ActionResultCodeSchema = exports.ActionParamSchema = exports.ActionLibrarySchema = exports.ActionFilterSchema = exports.ActionExecutionLogSchema = exports.ActionContextSchema = exports.ActionContextTypeSchema = exports.ActionCategorySchema = exports.ActionAuthorizationSchema = exports.loadModule = void 0;
|
|
10
10
|
exports.IntegrationSchema = exports.IntegrationURLFormatSchema = exports.GeneratedCodeSchema = exports.GeneratedCodeCategorySchema = exports.FileSchema = exports.FileStorageProviderSchema = exports.FileEntityRecordLinkSchema = exports.FileCategorySchema = exports.ExplorerNavigationItemSchema = exports.ErrorLogSchema = exports.EntitySettingSchema = exports.EntityRelationshipSchema = exports.EntityRelationshipDisplayComponentSchema = exports.EntityRecordDocumentSchema = exports.EntityPermissionSchema = exports.EntityFieldSchema = exports.EntityFieldValueSchema = exports.EntityDocumentSchema = exports.EntityDocumentTypeSchema = exports.EntityDocumentSettingSchema = exports.EntityDocumentRunSchema = exports.EntityCommunicationMessageTypeSchema = exports.EntityCommunicationFieldSchema = exports.EntityAIActionSchema = exports.EntityActionSchema = exports.EntityActionParamSchema = exports.EntityActionInvocationSchema = exports.EntityActionInvocationTypeSchema = exports.EntityActionFilterSchema = exports.EntitySchema = exports.EmployeeSchema = exports.EmployeeSkillSchema = exports.EmployeeRoleSchema = exports.EmployeeCompanyIntegrationSchema = exports.DuplicateRunSchema = exports.DuplicateRunDetailSchema = exports.DuplicateRunDetailMatchSchema = exports.DatasetSchema = exports.DatasetItemSchema = exports.DataContextSchema = exports.DataContextItemSchema = exports.DashboardSchema = exports.DashboardCategorySchema = exports.ConversationSchema = exports.ConversationDetailSchema = exports.ContentTypeSchema = exports.ContentTypeAttributeSchema = exports.ContentSourceSchema = exports.ContentSourceTypeSchema = exports.ContentSourceTypeParamSchema = void 0;
|
|
11
|
-
exports.
|
|
12
|
-
exports.
|
|
13
|
-
exports.
|
|
14
|
-
exports.
|
|
15
|
-
exports.WorkspaceEntity = exports.WorkspaceItemEntity = exports.WorkflowEntity = exports.WorkflowRunEntity = exports.WorkflowEngineEntity = exports.VersionInstallationEntity = exports.VectorIndexEntity = exports.VectorDatabaseEntity = exports.UserEntity = exports.UserViewEntity = exports.UserViewRunEntity = exports.UserViewRunDetailEntity = exports.UserViewCategoryEntity = exports.UserRoleEntity = exports.UserRecordLogEntity = exports.UserNotificationEntity = exports.UserFavoriteEntity = exports.UserApplicationEntity = exports.UserApplicationEntityEntity = exports.TemplateEntity = exports.TemplateParamEntity = exports.TemplateContentEntity = exports.TemplateContentTypeEntity = exports.TemplateCategoryEntity = exports.TagEntity = exports.TaggedItemEntity = exports.SkillEntity = void 0;
|
|
11
|
+
exports.UserApplicationEntitySchema = exports.TemplateSchema = exports.TemplateParamSchema = exports.TemplateContentSchema = exports.TemplateContentTypeSchema = exports.TemplateCategorySchema = exports.TagSchema = exports.TaggedItemSchema = exports.SkillSchema = exports.SchemaInfoSchema = exports.ScheduledActionSchema = exports.ScheduledActionParamSchema = exports.RowLevelSecurityFilterSchema = exports.RoleSchema = exports.ResourceTypeSchema = exports.ResourcePermissionSchema = exports.ResourceLinkSchema = exports.ReportSchema = exports.ReportSnapshotSchema = exports.ReportCategorySchema = exports.RecordMergeLogSchema = exports.RecordMergeDeletionLogSchema = exports.RecordChangeSchema = exports.RecordChangeReplayRunSchema = exports.RecommendationSchema = exports.RecommendationRunSchema = exports.RecommendationProviderSchema = exports.RecommendationItemSchema = exports.QueueSchema = exports.QueueTypeSchema = exports.QueueTaskSchema = exports.QueryPermissionSchema = exports.QueryFieldSchema = exports.QueryEntitySchema = exports.QueryCategorySchema = exports.QuerySchema = exports.OutputTriggerTypeSchema = exports.OutputFormatTypeSchema = exports.OutputDeliveryTypeSchema = exports.ReportVersionSchema = exports.ReportUserStateSchema = exports.ConversationArtifactSchema = exports.ConversationArtifactVersionSchema = exports.ConversationArtifactPermissionSchema = exports.ArtifactTypeSchema = exports.ListSchema = exports.ListDetailSchema = exports.ListCategorySchema = exports.LibraryItemSchema = exports.LibrarySchema = void 0;
|
|
12
|
+
exports.AuthorizationEntity = exports.AuthorizationRoleEntity = exports.AuditLogEntity = exports.AuditLogTypeEntity = exports.ApplicationEntity = exports.ApplicationSettingEntity = exports.ApplicationEntityEntity = exports.AIResultCacheEntity = exports.AIPromptEntity = exports.AIPromptTypeEntity = exports.AIPromptCategoryEntity = exports.AIModelEntity = exports.AIModelTypeEntity = exports.AIModelActionEntity = exports.AIAgentEntity = exports.AIAgentRequestEntity = exports.AIAgentNoteEntity = exports.AIAgentNoteTypeEntity = exports.AIAgentModelEntity = exports.AIAgentLearningCycleEntity = exports.AIAgentActionEntity = exports.AIActionEntity = exports.ActionEntity = exports.ActionResultCodeEntity = exports.ActionParamEntity = exports.ActionLibraryEntity = exports.ActionFilterEntity = exports.ActionExecutionLogEntity = exports.ActionContextEntity = exports.ActionContextTypeEntity = exports.ActionCategoryEntity = exports.ActionAuthorizationEntity = exports.WorkspaceSchema = exports.WorkspaceItemSchema = exports.WorkflowSchema = exports.WorkflowRunSchema = exports.WorkflowEngineSchema = exports.VersionInstallationSchema = exports.VectorIndexSchema = exports.VectorDatabaseSchema = exports.UserSchema = exports.UserViewSchema = exports.UserViewRunSchema = exports.UserViewRunDetailSchema = exports.UserViewCategorySchema = exports.UserRoleSchema = exports.UserRecordLogSchema = exports.UserNotificationSchema = exports.UserFavoriteSchema = exports.UserApplicationSchema = void 0;
|
|
13
|
+
exports.EntityDocumentEntity = exports.EntityDocumentTypeEntity = exports.EntityDocumentSettingEntity = exports.EntityDocumentRunEntity = exports.EntityCommunicationMessageTypeEntity = exports.EntityCommunicationFieldEntity = exports.EntityAIActionEntity = exports.EntityActionEntity = exports.EntityActionParamEntity = exports.EntityActionInvocationEntity = exports.EntityActionInvocationTypeEntity = exports.EntityActionFilterEntity = exports.EntityEntity = exports.EmployeeEntity = exports.EmployeeSkillEntity = exports.EmployeeRoleEntity = exports.EmployeeCompanyIntegrationEntity = exports.DuplicateRunEntity = exports.DuplicateRunDetailEntity = exports.DuplicateRunDetailMatchEntity = exports.DatasetEntity = exports.DatasetItemEntity = exports.DataContextEntity = exports.DataContextItemEntity = exports.DashboardEntity = exports.DashboardCategoryEntity = exports.ConversationEntity = exports.ConversationDetailEntity = exports.ContentTypeEntity = exports.ContentTypeAttributeEntity = exports.ContentSourceEntity = exports.ContentSourceTypeEntity = exports.ContentSourceTypeParamEntity = exports.ContentSourceParamEntity = exports.ContentProcessRunEntity = exports.ContentItemEntity = exports.ContentItemTagEntity = exports.ContentItemAttributeEntity = exports.ContentFileTypeEntity = exports.CompanyIntegrationEntity = exports.CompanyIntegrationRunEntity = exports.CompanyIntegrationRunDetailEntity = exports.CompanyIntegrationRunAPILogEntity = exports.CompanyIntegrationRecordMapEntity = exports.CompanyEntity = exports.CommunicationRunEntity = exports.CommunicationProviderEntity = exports.CommunicationProviderMessageTypeEntity = exports.CommunicationLogEntity = exports.CommunicationBaseMessageTypeEntity = void 0;
|
|
14
|
+
exports.ReportEntity = exports.ReportSnapshotEntity = exports.ReportCategoryEntity = exports.RecordMergeLogEntity = exports.RecordMergeDeletionLogEntity = exports.RecordChangeEntity = exports.RecordChangeReplayRunEntity = exports.RecommendationEntity = exports.RecommendationRunEntity = exports.RecommendationProviderEntity = exports.RecommendationItemEntity = exports.QueueEntity = exports.QueueTypeEntity = exports.QueueTaskEntity = exports.QueryPermissionEntity = exports.QueryFieldEntity = exports.QueryEntityEntity = exports.QueryCategoryEntity = exports.QueryEntity = exports.OutputTriggerTypeEntity = exports.OutputFormatTypeEntity = exports.OutputDeliveryTypeEntity = exports.ReportVersionEntity = exports.ReportUserStateEntity = exports.ConversationArtifactEntity = exports.ConversationArtifactVersionEntity = exports.ConversationArtifactPermissionEntity = exports.ArtifactTypeEntity = exports.ListEntity = exports.ListDetailEntity = exports.ListCategoryEntity = exports.LibraryItemEntity = exports.LibraryEntity = exports.IntegrationEntity = exports.IntegrationURLFormatEntity = exports.GeneratedCodeEntity = exports.GeneratedCodeCategoryEntity = exports.FileEntity = exports.FileStorageProviderEntity = exports.FileEntityRecordLinkEntity = exports.FileCategoryEntity = exports.ExplorerNavigationItemEntity = exports.ErrorLogEntity = exports.EntitySettingEntity = exports.EntityRelationshipEntity = exports.EntityRelationshipDisplayComponentEntity = exports.EntityRecordDocumentEntity = exports.EntityPermissionEntity = exports.EntityFieldEntity = exports.EntityFieldValueEntity = void 0;
|
|
15
|
+
exports.WorkspaceEntity = exports.WorkspaceItemEntity = exports.WorkflowEntity = exports.WorkflowRunEntity = exports.WorkflowEngineEntity = exports.VersionInstallationEntity = exports.VectorIndexEntity = exports.VectorDatabaseEntity = exports.UserEntity = exports.UserViewEntity = exports.UserViewRunEntity = exports.UserViewRunDetailEntity = exports.UserViewCategoryEntity = exports.UserRoleEntity = exports.UserRecordLogEntity = exports.UserNotificationEntity = exports.UserFavoriteEntity = exports.UserApplicationEntity = exports.UserApplicationEntityEntity = exports.TemplateEntity = exports.TemplateParamEntity = exports.TemplateContentEntity = exports.TemplateContentTypeEntity = exports.TemplateCategoryEntity = exports.TagEntity = exports.TaggedItemEntity = exports.SkillEntity = exports.SchemaInfoEntity = exports.ScheduledActionEntity = exports.ScheduledActionParamEntity = exports.RowLevelSecurityFilterEntity = exports.RoleEntity = exports.ResourceTypeEntity = exports.ResourcePermissionEntity = exports.ResourceLinkEntity = void 0;
|
|
16
16
|
const core_1 = require("@memberjunction/core");
|
|
17
17
|
const global_1 = require("@memberjunction/global");
|
|
18
18
|
const zod_1 = require("zod");
|
|
@@ -5025,26 +5025,6 @@ exports.EntityFieldSchema = zod_1.z.object({
|
|
|
5025
5025
|
* * None
|
|
5026
5026
|
* * All
|
|
5027
5027
|
* * 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.`),
|
|
5028
|
-
GeneratedValidationFunctionName: zod_1.z.string().nullable().describe(`
|
|
5029
|
-
* * Field Name: GeneratedValidationFunctionName
|
|
5030
|
-
* * Display Name: Generated Validation Function Name
|
|
5031
|
-
* * SQL Data Type: nvarchar(255)
|
|
5032
|
-
* * Description: Contains the name of the generated field validation function, if it exists, null otherwise`),
|
|
5033
|
-
GeneratedValidationFunctionDescription: zod_1.z.string().nullable().describe(`
|
|
5034
|
-
* * Field Name: GeneratedValidationFunctionDescription
|
|
5035
|
-
* * Display Name: Generated Validation Function Description
|
|
5036
|
-
* * SQL Data Type: nvarchar(MAX)
|
|
5037
|
-
* * Description: Contains a description for business users of what the validation function for this field does, if it exists`),
|
|
5038
|
-
GeneratedValidationFunctionCode: zod_1.z.string().nullable().describe(`
|
|
5039
|
-
* * Field Name: GeneratedValidationFunctionCode
|
|
5040
|
-
* * Display Name: Generated Validation Function Code
|
|
5041
|
-
* * SQL Data Type: nvarchar(MAX)
|
|
5042
|
-
* * Description: Contains the generated code for the field validation function, if it exists, null otherwise.`),
|
|
5043
|
-
GeneratedValidationFunctionCheckConstraint: zod_1.z.string().nullable().describe(`
|
|
5044
|
-
* * Field Name: GeneratedValidationFunctionCheckConstraint
|
|
5045
|
-
* * Display Name: Generated Validation Function Check Constraint
|
|
5046
|
-
* * SQL Data Type: nvarchar(MAX)
|
|
5047
|
-
* * 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.`),
|
|
5048
5028
|
FieldCodeName: zod_1.z.string().nullable().describe(`
|
|
5049
5029
|
* * Field Name: FieldCodeName
|
|
5050
5030
|
* * Display Name: Field Code Name
|
|
@@ -6309,6 +6289,196 @@ exports.ListSchema = zod_1.z.object({
|
|
|
6309
6289
|
* * Display Name: Category
|
|
6310
6290
|
* * SQL Data Type: nvarchar(100)`),
|
|
6311
6291
|
});
|
|
6292
|
+
/**
|
|
6293
|
+
* zod schema definition for the entity MJ: Artifact Types
|
|
6294
|
+
*/
|
|
6295
|
+
exports.ArtifactTypeSchema = zod_1.z.object({
|
|
6296
|
+
ID: zod_1.z.string().describe(`
|
|
6297
|
+
* * Field Name: ID
|
|
6298
|
+
* * Display Name: ID
|
|
6299
|
+
* * SQL Data Type: uniqueidentifier`),
|
|
6300
|
+
Name: zod_1.z.string().describe(`
|
|
6301
|
+
* * Field Name: Name
|
|
6302
|
+
* * Display Name: Name
|
|
6303
|
+
* * SQL Data Type: nvarchar(100)
|
|
6304
|
+
* * Description: Display name of the artifact type`),
|
|
6305
|
+
Description: zod_1.z.string().nullable().describe(`
|
|
6306
|
+
* * Field Name: Description
|
|
6307
|
+
* * Display Name: Description
|
|
6308
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
6309
|
+
* * Description: Detailed description of the artifact type`),
|
|
6310
|
+
ContentType: zod_1.z.string().describe(`
|
|
6311
|
+
* * Field Name: ContentType
|
|
6312
|
+
* * Display Name: Content Type
|
|
6313
|
+
* * SQL Data Type: nvarchar(100)
|
|
6314
|
+
* * Description: MIME type or content identifier for this artifact type`),
|
|
6315
|
+
IsEnabled: zod_1.z.boolean().describe(`
|
|
6316
|
+
* * Field Name: IsEnabled
|
|
6317
|
+
* * Display Name: Is Enabled
|
|
6318
|
+
* * SQL Data Type: bit
|
|
6319
|
+
* * Default Value: 1
|
|
6320
|
+
* * Description: Indicates if this artifact type is currently available for use`),
|
|
6321
|
+
__mj_CreatedAt: zod_1.z.date().describe(`
|
|
6322
|
+
* * Field Name: __mj_CreatedAt
|
|
6323
|
+
* * Display Name: Created At
|
|
6324
|
+
* * SQL Data Type: datetimeoffset
|
|
6325
|
+
* * Default Value: getutcdate()`),
|
|
6326
|
+
__mj_UpdatedAt: zod_1.z.date().describe(`
|
|
6327
|
+
* * Field Name: __mj_UpdatedAt
|
|
6328
|
+
* * Display Name: Updated At
|
|
6329
|
+
* * SQL Data Type: datetimeoffset
|
|
6330
|
+
* * Default Value: getutcdate()`),
|
|
6331
|
+
});
|
|
6332
|
+
/**
|
|
6333
|
+
* zod schema definition for the entity MJ: Conversation Artifact Permissions
|
|
6334
|
+
*/
|
|
6335
|
+
exports.ConversationArtifactPermissionSchema = zod_1.z.object({
|
|
6336
|
+
ID: zod_1.z.string().describe(`
|
|
6337
|
+
* * Field Name: ID
|
|
6338
|
+
* * Display Name: ID
|
|
6339
|
+
* * SQL Data Type: uniqueidentifier
|
|
6340
|
+
* * Default Value: newsequentialid()`),
|
|
6341
|
+
ConversationArtifactID: zod_1.z.string().describe(`
|
|
6342
|
+
* * Field Name: ConversationArtifactID
|
|
6343
|
+
* * Display Name: Conversation Artifact ID
|
|
6344
|
+
* * SQL Data Type: uniqueidentifier
|
|
6345
|
+
* * Related Entity/Foreign Key: MJ: Conversation Artifacts (vwConversationArtifacts.ID)
|
|
6346
|
+
* * Description: Reference to the artifact this permission applies to`),
|
|
6347
|
+
UserID: zod_1.z.string().describe(`
|
|
6348
|
+
* * Field Name: UserID
|
|
6349
|
+
* * Display Name: User ID
|
|
6350
|
+
* * SQL Data Type: uniqueidentifier
|
|
6351
|
+
* * Description: User this permission applies to`),
|
|
6352
|
+
AccessLevel: zod_1.z.string().describe(`
|
|
6353
|
+
* * Field Name: AccessLevel
|
|
6354
|
+
* * Display Name: Access Level
|
|
6355
|
+
* * SQL Data Type: nvarchar(20)
|
|
6356
|
+
* * Description: Level of access granted (Read, Edit, Owner)`),
|
|
6357
|
+
__mj_CreatedAt: zod_1.z.date().describe(`
|
|
6358
|
+
* * Field Name: __mj_CreatedAt
|
|
6359
|
+
* * Display Name: Created At
|
|
6360
|
+
* * SQL Data Type: datetimeoffset
|
|
6361
|
+
* * Default Value: getutcdate()`),
|
|
6362
|
+
__mj_UpdatedAt: zod_1.z.date().describe(`
|
|
6363
|
+
* * Field Name: __mj_UpdatedAt
|
|
6364
|
+
* * Display Name: Updated At
|
|
6365
|
+
* * SQL Data Type: datetimeoffset
|
|
6366
|
+
* * Default Value: getutcdate()`),
|
|
6367
|
+
ConversationArtifact: zod_1.z.string().describe(`
|
|
6368
|
+
* * Field Name: ConversationArtifact
|
|
6369
|
+
* * Display Name: Conversation Artifact
|
|
6370
|
+
* * SQL Data Type: nvarchar(255)`),
|
|
6371
|
+
});
|
|
6372
|
+
/**
|
|
6373
|
+
* zod schema definition for the entity MJ: Conversation Artifact Versions
|
|
6374
|
+
*/
|
|
6375
|
+
exports.ConversationArtifactVersionSchema = zod_1.z.object({
|
|
6376
|
+
ID: zod_1.z.string().describe(`
|
|
6377
|
+
* * Field Name: ID
|
|
6378
|
+
* * Display Name: ID
|
|
6379
|
+
* * SQL Data Type: uniqueidentifier
|
|
6380
|
+
* * Default Value: newsequentialid()`),
|
|
6381
|
+
ConversationArtifactID: zod_1.z.string().describe(`
|
|
6382
|
+
* * Field Name: ConversationArtifactID
|
|
6383
|
+
* * Display Name: Conversation Artifact ID
|
|
6384
|
+
* * SQL Data Type: uniqueidentifier
|
|
6385
|
+
* * Related Entity/Foreign Key: MJ: Conversation Artifacts (vwConversationArtifacts.ID)
|
|
6386
|
+
* * Description: Reference to the parent artifact`),
|
|
6387
|
+
Version: zod_1.z.number().describe(`
|
|
6388
|
+
* * Field Name: Version
|
|
6389
|
+
* * Display Name: Version
|
|
6390
|
+
* * SQL Data Type: int
|
|
6391
|
+
* * Description: Sequential version number (starting from 1) for this artifact`),
|
|
6392
|
+
Configuration: zod_1.z.string().describe(`
|
|
6393
|
+
* * Field Name: Configuration
|
|
6394
|
+
* * Display Name: Configuration
|
|
6395
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
6396
|
+
* * Description: JSON configuration and metadata for this artifact version`),
|
|
6397
|
+
Content: zod_1.z.string().nullable().describe(`
|
|
6398
|
+
* * Field Name: Content
|
|
6399
|
+
* * Display Name: Content
|
|
6400
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
6401
|
+
* * Description: Actual content of the artifact, if stored separately from configuration`),
|
|
6402
|
+
Comments: zod_1.z.string().nullable().describe(`
|
|
6403
|
+
* * Field Name: Comments
|
|
6404
|
+
* * Display Name: Comments
|
|
6405
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
6406
|
+
* * Description: User comments specific to this version`),
|
|
6407
|
+
__mj_CreatedAt: zod_1.z.date().describe(`
|
|
6408
|
+
* * Field Name: __mj_CreatedAt
|
|
6409
|
+
* * Display Name: Created At
|
|
6410
|
+
* * SQL Data Type: datetimeoffset
|
|
6411
|
+
* * Default Value: getutcdate()`),
|
|
6412
|
+
__mj_UpdatedAt: zod_1.z.date().describe(`
|
|
6413
|
+
* * Field Name: __mj_UpdatedAt
|
|
6414
|
+
* * Display Name: Updated At
|
|
6415
|
+
* * SQL Data Type: datetimeoffset
|
|
6416
|
+
* * Default Value: getutcdate()`),
|
|
6417
|
+
ConversationArtifact: zod_1.z.string().describe(`
|
|
6418
|
+
* * Field Name: ConversationArtifact
|
|
6419
|
+
* * Display Name: Conversation Artifact
|
|
6420
|
+
* * SQL Data Type: nvarchar(255)`),
|
|
6421
|
+
});
|
|
6422
|
+
/**
|
|
6423
|
+
* zod schema definition for the entity MJ: Conversation Artifacts
|
|
6424
|
+
*/
|
|
6425
|
+
exports.ConversationArtifactSchema = zod_1.z.object({
|
|
6426
|
+
ID: zod_1.z.string().describe(`
|
|
6427
|
+
* * Field Name: ID
|
|
6428
|
+
* * Display Name: ID
|
|
6429
|
+
* * SQL Data Type: uniqueidentifier
|
|
6430
|
+
* * Default Value: newsequentialid()`),
|
|
6431
|
+
Name: zod_1.z.string().describe(`
|
|
6432
|
+
* * Field Name: Name
|
|
6433
|
+
* * Display Name: Name
|
|
6434
|
+
* * SQL Data Type: nvarchar(255)
|
|
6435
|
+
* * Description: Display name of the artifact`),
|
|
6436
|
+
Description: zod_1.z.string().nullable().describe(`
|
|
6437
|
+
* * Field Name: Description
|
|
6438
|
+
* * Display Name: Description
|
|
6439
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
6440
|
+
* * Description: Extended description of the artifact`),
|
|
6441
|
+
ConversationID: zod_1.z.string().describe(`
|
|
6442
|
+
* * Field Name: ConversationID
|
|
6443
|
+
* * Display Name: Conversation ID
|
|
6444
|
+
* * SQL Data Type: uniqueidentifier
|
|
6445
|
+
* * Related Entity/Foreign Key: Conversations (vwConversations.ID)
|
|
6446
|
+
* * Description: Reference to the conversation this artifact belongs to`),
|
|
6447
|
+
ArtifactTypeID: zod_1.z.string().describe(`
|
|
6448
|
+
* * Field Name: ArtifactTypeID
|
|
6449
|
+
* * Display Name: Artifact Type ID
|
|
6450
|
+
* * SQL Data Type: uniqueidentifier
|
|
6451
|
+
* * Related Entity/Foreign Key: MJ: Artifact Types (vwArtifactTypes.ID)
|
|
6452
|
+
* * Description: Reference to the type of artifact`),
|
|
6453
|
+
SharingScope: zod_1.z.string().describe(`
|
|
6454
|
+
* * Field Name: SharingScope
|
|
6455
|
+
* * Display Name: Sharing Scope
|
|
6456
|
+
* * SQL Data Type: nvarchar(50)
|
|
6457
|
+
* * Description: Controls who can view this artifact (None, SpecificUsers, Everyone, Public)`),
|
|
6458
|
+
Comments: zod_1.z.string().nullable().describe(`
|
|
6459
|
+
* * Field Name: Comments
|
|
6460
|
+
* * Display Name: Comments
|
|
6461
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
6462
|
+
* * Description: User comments about the artifact`),
|
|
6463
|
+
__mj_CreatedAt: zod_1.z.date().describe(`
|
|
6464
|
+
* * Field Name: __mj_CreatedAt
|
|
6465
|
+
* * Display Name: Created At
|
|
6466
|
+
* * SQL Data Type: datetimeoffset
|
|
6467
|
+
* * Default Value: getutcdate()`),
|
|
6468
|
+
__mj_UpdatedAt: zod_1.z.date().describe(`
|
|
6469
|
+
* * Field Name: __mj_UpdatedAt
|
|
6470
|
+
* * Display Name: Updated At
|
|
6471
|
+
* * SQL Data Type: datetimeoffset
|
|
6472
|
+
* * Default Value: getutcdate()`),
|
|
6473
|
+
Conversation: zod_1.z.string().nullable().describe(`
|
|
6474
|
+
* * Field Name: Conversation
|
|
6475
|
+
* * Display Name: Conversation
|
|
6476
|
+
* * SQL Data Type: nvarchar(255)`),
|
|
6477
|
+
ArtifactType: zod_1.z.string().describe(`
|
|
6478
|
+
* * Field Name: ArtifactType
|
|
6479
|
+
* * Display Name: Artifact Type
|
|
6480
|
+
* * SQL Data Type: nvarchar(100)`),
|
|
6481
|
+
});
|
|
6312
6482
|
/**
|
|
6313
6483
|
* zod schema definition for the entity MJ: Report User States
|
|
6314
6484
|
*/
|
|
@@ -6346,13 +6516,11 @@ exports.ReportUserStateSchema = zod_1.z.object({
|
|
|
6346
6516
|
Report: zod_1.z.string().describe(`
|
|
6347
6517
|
* * Field Name: Report
|
|
6348
6518
|
* * Display Name: Report
|
|
6349
|
-
* * SQL Data Type: nvarchar(255)
|
|
6350
|
-
* * Default Value: null`),
|
|
6519
|
+
* * SQL Data Type: nvarchar(255)`),
|
|
6351
6520
|
User: zod_1.z.string().describe(`
|
|
6352
6521
|
* * Field Name: User
|
|
6353
6522
|
* * Display Name: User
|
|
6354
|
-
* * SQL Data Type: nvarchar(100)
|
|
6355
|
-
* * Default Value: null`),
|
|
6523
|
+
* * SQL Data Type: nvarchar(100)`),
|
|
6356
6524
|
});
|
|
6357
6525
|
/**
|
|
6358
6526
|
* zod schema definition for the entity MJ: Report Versions
|
|
@@ -6407,8 +6575,7 @@ exports.ReportVersionSchema = zod_1.z.object({
|
|
|
6407
6575
|
Report: zod_1.z.string().describe(`
|
|
6408
6576
|
* * Field Name: Report
|
|
6409
6577
|
* * Display Name: Report
|
|
6410
|
-
* * SQL Data Type: nvarchar(255)
|
|
6411
|
-
* * Default Value: null`),
|
|
6578
|
+
* * SQL Data Type: nvarchar(255)`),
|
|
6412
6579
|
});
|
|
6413
6580
|
/**
|
|
6414
6581
|
* zod schema definition for the entity Output Delivery Types
|
|
@@ -22521,54 +22688,6 @@ let EntityFieldEntity = class EntityFieldEntity extends core_1.BaseEntity {
|
|
|
22521
22688
|
this.Set('ValuesToPackWithSchema', value);
|
|
22522
22689
|
}
|
|
22523
22690
|
/**
|
|
22524
|
-
* * Field Name: GeneratedValidationFunctionName
|
|
22525
|
-
* * Display Name: Generated Validation Function Name
|
|
22526
|
-
* * SQL Data Type: nvarchar(255)
|
|
22527
|
-
* * Description: Contains the name of the generated field validation function, if it exists, null otherwise
|
|
22528
|
-
*/
|
|
22529
|
-
get GeneratedValidationFunctionName() {
|
|
22530
|
-
return this.Get('GeneratedValidationFunctionName');
|
|
22531
|
-
}
|
|
22532
|
-
set GeneratedValidationFunctionName(value) {
|
|
22533
|
-
this.Set('GeneratedValidationFunctionName', value);
|
|
22534
|
-
}
|
|
22535
|
-
/**
|
|
22536
|
-
* * Field Name: GeneratedValidationFunctionDescription
|
|
22537
|
-
* * Display Name: Generated Validation Function Description
|
|
22538
|
-
* * SQL Data Type: nvarchar(MAX)
|
|
22539
|
-
* * Description: Contains a description for business users of what the validation function for this field does, if it exists
|
|
22540
|
-
*/
|
|
22541
|
-
get GeneratedValidationFunctionDescription() {
|
|
22542
|
-
return this.Get('GeneratedValidationFunctionDescription');
|
|
22543
|
-
}
|
|
22544
|
-
set GeneratedValidationFunctionDescription(value) {
|
|
22545
|
-
this.Set('GeneratedValidationFunctionDescription', value);
|
|
22546
|
-
}
|
|
22547
|
-
/**
|
|
22548
|
-
* * Field Name: GeneratedValidationFunctionCode
|
|
22549
|
-
* * Display Name: Generated Validation Function Code
|
|
22550
|
-
* * SQL Data Type: nvarchar(MAX)
|
|
22551
|
-
* * Description: Contains the generated code for the field validation function, if it exists, null otherwise.
|
|
22552
|
-
*/
|
|
22553
|
-
get GeneratedValidationFunctionCode() {
|
|
22554
|
-
return this.Get('GeneratedValidationFunctionCode');
|
|
22555
|
-
}
|
|
22556
|
-
set GeneratedValidationFunctionCode(value) {
|
|
22557
|
-
this.Set('GeneratedValidationFunctionCode', value);
|
|
22558
|
-
}
|
|
22559
|
-
/**
|
|
22560
|
-
* * Field Name: GeneratedValidationFunctionCheckConstraint
|
|
22561
|
-
* * Display Name: Generated Validation Function Check Constraint
|
|
22562
|
-
* * SQL Data Type: nvarchar(MAX)
|
|
22563
|
-
* * 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.
|
|
22564
|
-
*/
|
|
22565
|
-
get GeneratedValidationFunctionCheckConstraint() {
|
|
22566
|
-
return this.Get('GeneratedValidationFunctionCheckConstraint');
|
|
22567
|
-
}
|
|
22568
|
-
set GeneratedValidationFunctionCheckConstraint(value) {
|
|
22569
|
-
this.Set('GeneratedValidationFunctionCheckConstraint', value);
|
|
22570
|
-
}
|
|
22571
|
-
/**
|
|
22572
22691
|
* * Field Name: FieldCodeName
|
|
22573
22692
|
* * Display Name: Field Code Name
|
|
22574
22693
|
* * SQL Data Type: nvarchar(MAX)
|
|
@@ -25801,6 +25920,563 @@ exports.ListEntity = ListEntity;
|
|
|
25801
25920
|
exports.ListEntity = ListEntity = __decorate([
|
|
25802
25921
|
(0, global_1.RegisterClass)(core_1.BaseEntity, 'Lists')
|
|
25803
25922
|
], ListEntity);
|
|
25923
|
+
/**
|
|
25924
|
+
* MJ: Artifact Types - strongly typed entity sub-class
|
|
25925
|
+
* * Schema: __mj
|
|
25926
|
+
* * Base Table: ArtifactType
|
|
25927
|
+
* * Base View: vwArtifactTypes
|
|
25928
|
+
* * Primary Key: ID
|
|
25929
|
+
* @extends {BaseEntity}
|
|
25930
|
+
* @class
|
|
25931
|
+
* @public
|
|
25932
|
+
*/
|
|
25933
|
+
let ArtifactTypeEntity = class ArtifactTypeEntity extends core_1.BaseEntity {
|
|
25934
|
+
/**
|
|
25935
|
+
* Loads the MJ: Artifact Types record from the database
|
|
25936
|
+
* @param ID: string - primary key value to load the MJ: Artifact Types record.
|
|
25937
|
+
* @param EntityRelationshipsToLoad - (optional) the relationships to load
|
|
25938
|
+
* @returns {Promise<boolean>} - true if successful, false otherwise
|
|
25939
|
+
* @public
|
|
25940
|
+
* @async
|
|
25941
|
+
* @memberof ArtifactTypeEntity
|
|
25942
|
+
* @method
|
|
25943
|
+
* @override
|
|
25944
|
+
*/
|
|
25945
|
+
async Load(ID, EntityRelationshipsToLoad) {
|
|
25946
|
+
const compositeKey = new core_1.CompositeKey();
|
|
25947
|
+
compositeKey.KeyValuePairs.push({ FieldName: 'ID', Value: ID });
|
|
25948
|
+
return await super.InnerLoad(compositeKey, EntityRelationshipsToLoad);
|
|
25949
|
+
}
|
|
25950
|
+
/**
|
|
25951
|
+
* * Field Name: ID
|
|
25952
|
+
* * Display Name: ID
|
|
25953
|
+
* * SQL Data Type: uniqueidentifier
|
|
25954
|
+
*/
|
|
25955
|
+
get ID() {
|
|
25956
|
+
return this.Get('ID');
|
|
25957
|
+
}
|
|
25958
|
+
/**
|
|
25959
|
+
* * Field Name: Name
|
|
25960
|
+
* * Display Name: Name
|
|
25961
|
+
* * SQL Data Type: nvarchar(100)
|
|
25962
|
+
* * Description: Display name of the artifact type
|
|
25963
|
+
*/
|
|
25964
|
+
get Name() {
|
|
25965
|
+
return this.Get('Name');
|
|
25966
|
+
}
|
|
25967
|
+
set Name(value) {
|
|
25968
|
+
this.Set('Name', value);
|
|
25969
|
+
}
|
|
25970
|
+
/**
|
|
25971
|
+
* * Field Name: Description
|
|
25972
|
+
* * Display Name: Description
|
|
25973
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
25974
|
+
* * Description: Detailed description of the artifact type
|
|
25975
|
+
*/
|
|
25976
|
+
get Description() {
|
|
25977
|
+
return this.Get('Description');
|
|
25978
|
+
}
|
|
25979
|
+
set Description(value) {
|
|
25980
|
+
this.Set('Description', value);
|
|
25981
|
+
}
|
|
25982
|
+
/**
|
|
25983
|
+
* * Field Name: ContentType
|
|
25984
|
+
* * Display Name: Content Type
|
|
25985
|
+
* * SQL Data Type: nvarchar(100)
|
|
25986
|
+
* * Description: MIME type or content identifier for this artifact type
|
|
25987
|
+
*/
|
|
25988
|
+
get ContentType() {
|
|
25989
|
+
return this.Get('ContentType');
|
|
25990
|
+
}
|
|
25991
|
+
set ContentType(value) {
|
|
25992
|
+
this.Set('ContentType', value);
|
|
25993
|
+
}
|
|
25994
|
+
/**
|
|
25995
|
+
* * Field Name: IsEnabled
|
|
25996
|
+
* * Display Name: Is Enabled
|
|
25997
|
+
* * SQL Data Type: bit
|
|
25998
|
+
* * Default Value: 1
|
|
25999
|
+
* * Description: Indicates if this artifact type is currently available for use
|
|
26000
|
+
*/
|
|
26001
|
+
get IsEnabled() {
|
|
26002
|
+
return this.Get('IsEnabled');
|
|
26003
|
+
}
|
|
26004
|
+
set IsEnabled(value) {
|
|
26005
|
+
this.Set('IsEnabled', value);
|
|
26006
|
+
}
|
|
26007
|
+
/**
|
|
26008
|
+
* * Field Name: __mj_CreatedAt
|
|
26009
|
+
* * Display Name: Created At
|
|
26010
|
+
* * SQL Data Type: datetimeoffset
|
|
26011
|
+
* * Default Value: getutcdate()
|
|
26012
|
+
*/
|
|
26013
|
+
get __mj_CreatedAt() {
|
|
26014
|
+
return this.Get('__mj_CreatedAt');
|
|
26015
|
+
}
|
|
26016
|
+
/**
|
|
26017
|
+
* * Field Name: __mj_UpdatedAt
|
|
26018
|
+
* * Display Name: Updated At
|
|
26019
|
+
* * SQL Data Type: datetimeoffset
|
|
26020
|
+
* * Default Value: getutcdate()
|
|
26021
|
+
*/
|
|
26022
|
+
get __mj_UpdatedAt() {
|
|
26023
|
+
return this.Get('__mj_UpdatedAt');
|
|
26024
|
+
}
|
|
26025
|
+
};
|
|
26026
|
+
exports.ArtifactTypeEntity = ArtifactTypeEntity;
|
|
26027
|
+
exports.ArtifactTypeEntity = ArtifactTypeEntity = __decorate([
|
|
26028
|
+
(0, global_1.RegisterClass)(core_1.BaseEntity, 'MJ: Artifact Types')
|
|
26029
|
+
], ArtifactTypeEntity);
|
|
26030
|
+
/**
|
|
26031
|
+
* MJ: Conversation Artifact Permissions - strongly typed entity sub-class
|
|
26032
|
+
* * Schema: __mj
|
|
26033
|
+
* * Base Table: ConversationArtifactPermission
|
|
26034
|
+
* * Base View: vwConversationArtifactPermissions
|
|
26035
|
+
* * Primary Key: ID
|
|
26036
|
+
* @extends {BaseEntity}
|
|
26037
|
+
* @class
|
|
26038
|
+
* @public
|
|
26039
|
+
*/
|
|
26040
|
+
let ConversationArtifactPermissionEntity = class ConversationArtifactPermissionEntity extends core_1.BaseEntity {
|
|
26041
|
+
/**
|
|
26042
|
+
* Loads the MJ: Conversation Artifact Permissions record from the database
|
|
26043
|
+
* @param ID: string - primary key value to load the MJ: Conversation Artifact Permissions record.
|
|
26044
|
+
* @param EntityRelationshipsToLoad - (optional) the relationships to load
|
|
26045
|
+
* @returns {Promise<boolean>} - true if successful, false otherwise
|
|
26046
|
+
* @public
|
|
26047
|
+
* @async
|
|
26048
|
+
* @memberof ConversationArtifactPermissionEntity
|
|
26049
|
+
* @method
|
|
26050
|
+
* @override
|
|
26051
|
+
*/
|
|
26052
|
+
async Load(ID, EntityRelationshipsToLoad) {
|
|
26053
|
+
const compositeKey = new core_1.CompositeKey();
|
|
26054
|
+
compositeKey.KeyValuePairs.push({ FieldName: 'ID', Value: ID });
|
|
26055
|
+
return await super.InnerLoad(compositeKey, EntityRelationshipsToLoad);
|
|
26056
|
+
}
|
|
26057
|
+
/**
|
|
26058
|
+
* Validate() method override for MJ: Conversation Artifact Permissions entity. This is an auto-generated method that invokes the generated validators for this entity for the following fields:
|
|
26059
|
+
* * AccessLevel: This rule ensures that the access level of a user can only be one of three specific values: 'Owner', 'Edit', or 'Read'.
|
|
26060
|
+
* @public
|
|
26061
|
+
* @method
|
|
26062
|
+
* @override
|
|
26063
|
+
*/
|
|
26064
|
+
Validate() {
|
|
26065
|
+
const result = super.Validate();
|
|
26066
|
+
this.ValidateAccessLevelMustBeValid(result);
|
|
26067
|
+
return result;
|
|
26068
|
+
}
|
|
26069
|
+
/**
|
|
26070
|
+
* This rule ensures that the access level of a user can only be one of three specific values: 'Owner', 'Edit', or 'Read'.
|
|
26071
|
+
* @param result - the ValidationResult object to add any errors or warnings to
|
|
26072
|
+
* @public
|
|
26073
|
+
* @method
|
|
26074
|
+
*/
|
|
26075
|
+
ValidateAccessLevelMustBeValid(result) {
|
|
26076
|
+
if (this.AccessLevel !== 'Owner' && this.AccessLevel !== 'Edit' && this.AccessLevel !== 'Read') {
|
|
26077
|
+
result.Errors.push(new core_1.ValidationErrorInfo('AccessLevel', 'Access level must be either Owner, Edit, or Read.', this.AccessLevel, core_1.ValidationErrorType.Failure));
|
|
26078
|
+
}
|
|
26079
|
+
}
|
|
26080
|
+
/**
|
|
26081
|
+
* * Field Name: ID
|
|
26082
|
+
* * Display Name: ID
|
|
26083
|
+
* * SQL Data Type: uniqueidentifier
|
|
26084
|
+
* * Default Value: newsequentialid()
|
|
26085
|
+
*/
|
|
26086
|
+
get ID() {
|
|
26087
|
+
return this.Get('ID');
|
|
26088
|
+
}
|
|
26089
|
+
/**
|
|
26090
|
+
* * Field Name: ConversationArtifactID
|
|
26091
|
+
* * Display Name: Conversation Artifact ID
|
|
26092
|
+
* * SQL Data Type: uniqueidentifier
|
|
26093
|
+
* * Related Entity/Foreign Key: MJ: Conversation Artifacts (vwConversationArtifacts.ID)
|
|
26094
|
+
* * Description: Reference to the artifact this permission applies to
|
|
26095
|
+
*/
|
|
26096
|
+
get ConversationArtifactID() {
|
|
26097
|
+
return this.Get('ConversationArtifactID');
|
|
26098
|
+
}
|
|
26099
|
+
set ConversationArtifactID(value) {
|
|
26100
|
+
this.Set('ConversationArtifactID', value);
|
|
26101
|
+
}
|
|
26102
|
+
/**
|
|
26103
|
+
* * Field Name: UserID
|
|
26104
|
+
* * Display Name: User ID
|
|
26105
|
+
* * SQL Data Type: uniqueidentifier
|
|
26106
|
+
* * Description: User this permission applies to
|
|
26107
|
+
*/
|
|
26108
|
+
get UserID() {
|
|
26109
|
+
return this.Get('UserID');
|
|
26110
|
+
}
|
|
26111
|
+
set UserID(value) {
|
|
26112
|
+
this.Set('UserID', value);
|
|
26113
|
+
}
|
|
26114
|
+
/**
|
|
26115
|
+
* * Field Name: AccessLevel
|
|
26116
|
+
* * Display Name: Access Level
|
|
26117
|
+
* * SQL Data Type: nvarchar(20)
|
|
26118
|
+
* * Description: Level of access granted (Read, Edit, Owner)
|
|
26119
|
+
*/
|
|
26120
|
+
get AccessLevel() {
|
|
26121
|
+
return this.Get('AccessLevel');
|
|
26122
|
+
}
|
|
26123
|
+
set AccessLevel(value) {
|
|
26124
|
+
this.Set('AccessLevel', value);
|
|
26125
|
+
}
|
|
26126
|
+
/**
|
|
26127
|
+
* * Field Name: __mj_CreatedAt
|
|
26128
|
+
* * Display Name: Created At
|
|
26129
|
+
* * SQL Data Type: datetimeoffset
|
|
26130
|
+
* * Default Value: getutcdate()
|
|
26131
|
+
*/
|
|
26132
|
+
get __mj_CreatedAt() {
|
|
26133
|
+
return this.Get('__mj_CreatedAt');
|
|
26134
|
+
}
|
|
26135
|
+
/**
|
|
26136
|
+
* * Field Name: __mj_UpdatedAt
|
|
26137
|
+
* * Display Name: Updated At
|
|
26138
|
+
* * SQL Data Type: datetimeoffset
|
|
26139
|
+
* * Default Value: getutcdate()
|
|
26140
|
+
*/
|
|
26141
|
+
get __mj_UpdatedAt() {
|
|
26142
|
+
return this.Get('__mj_UpdatedAt');
|
|
26143
|
+
}
|
|
26144
|
+
/**
|
|
26145
|
+
* * Field Name: ConversationArtifact
|
|
26146
|
+
* * Display Name: Conversation Artifact
|
|
26147
|
+
* * SQL Data Type: nvarchar(255)
|
|
26148
|
+
*/
|
|
26149
|
+
get ConversationArtifact() {
|
|
26150
|
+
return this.Get('ConversationArtifact');
|
|
26151
|
+
}
|
|
26152
|
+
};
|
|
26153
|
+
exports.ConversationArtifactPermissionEntity = ConversationArtifactPermissionEntity;
|
|
26154
|
+
exports.ConversationArtifactPermissionEntity = ConversationArtifactPermissionEntity = __decorate([
|
|
26155
|
+
(0, global_1.RegisterClass)(core_1.BaseEntity, 'MJ: Conversation Artifact Permissions')
|
|
26156
|
+
], ConversationArtifactPermissionEntity);
|
|
26157
|
+
/**
|
|
26158
|
+
* MJ: Conversation Artifact Versions - strongly typed entity sub-class
|
|
26159
|
+
* * Schema: __mj
|
|
26160
|
+
* * Base Table: ConversationArtifactVersion
|
|
26161
|
+
* * Base View: vwConversationArtifactVersions
|
|
26162
|
+
* * Primary Key: ID
|
|
26163
|
+
* @extends {BaseEntity}
|
|
26164
|
+
* @class
|
|
26165
|
+
* @public
|
|
26166
|
+
*/
|
|
26167
|
+
let ConversationArtifactVersionEntity = class ConversationArtifactVersionEntity extends core_1.BaseEntity {
|
|
26168
|
+
/**
|
|
26169
|
+
* Loads the MJ: Conversation Artifact Versions record from the database
|
|
26170
|
+
* @param ID: string - primary key value to load the MJ: Conversation Artifact Versions record.
|
|
26171
|
+
* @param EntityRelationshipsToLoad - (optional) the relationships to load
|
|
26172
|
+
* @returns {Promise<boolean>} - true if successful, false otherwise
|
|
26173
|
+
* @public
|
|
26174
|
+
* @async
|
|
26175
|
+
* @memberof ConversationArtifactVersionEntity
|
|
26176
|
+
* @method
|
|
26177
|
+
* @override
|
|
26178
|
+
*/
|
|
26179
|
+
async Load(ID, EntityRelationshipsToLoad) {
|
|
26180
|
+
const compositeKey = new core_1.CompositeKey();
|
|
26181
|
+
compositeKey.KeyValuePairs.push({ FieldName: 'ID', Value: ID });
|
|
26182
|
+
return await super.InnerLoad(compositeKey, EntityRelationshipsToLoad);
|
|
26183
|
+
}
|
|
26184
|
+
/**
|
|
26185
|
+
* Validate() method override for MJ: Conversation Artifact Versions entity. This is an auto-generated method that invokes the generated validators for this entity for the following fields:
|
|
26186
|
+
* * Version: This rule ensures that the version number must be greater than zero.
|
|
26187
|
+
* @public
|
|
26188
|
+
* @method
|
|
26189
|
+
* @override
|
|
26190
|
+
*/
|
|
26191
|
+
Validate() {
|
|
26192
|
+
const result = super.Validate();
|
|
26193
|
+
this.ValidateVersionGreaterThanZero(result);
|
|
26194
|
+
return result;
|
|
26195
|
+
}
|
|
26196
|
+
/**
|
|
26197
|
+
* This rule ensures that the version number must be greater than zero.
|
|
26198
|
+
* @param result - the ValidationResult object to add any errors or warnings to
|
|
26199
|
+
* @public
|
|
26200
|
+
* @method
|
|
26201
|
+
*/
|
|
26202
|
+
ValidateVersionGreaterThanZero(result) {
|
|
26203
|
+
if (this.Version <= 0) {
|
|
26204
|
+
result.Errors.push(new core_1.ValidationErrorInfo("Version", "The version number must be greater than zero.", this.Version, core_1.ValidationErrorType.Failure));
|
|
26205
|
+
}
|
|
26206
|
+
}
|
|
26207
|
+
/**
|
|
26208
|
+
* * Field Name: ID
|
|
26209
|
+
* * Display Name: ID
|
|
26210
|
+
* * SQL Data Type: uniqueidentifier
|
|
26211
|
+
* * Default Value: newsequentialid()
|
|
26212
|
+
*/
|
|
26213
|
+
get ID() {
|
|
26214
|
+
return this.Get('ID');
|
|
26215
|
+
}
|
|
26216
|
+
/**
|
|
26217
|
+
* * Field Name: ConversationArtifactID
|
|
26218
|
+
* * Display Name: Conversation Artifact ID
|
|
26219
|
+
* * SQL Data Type: uniqueidentifier
|
|
26220
|
+
* * Related Entity/Foreign Key: MJ: Conversation Artifacts (vwConversationArtifacts.ID)
|
|
26221
|
+
* * Description: Reference to the parent artifact
|
|
26222
|
+
*/
|
|
26223
|
+
get ConversationArtifactID() {
|
|
26224
|
+
return this.Get('ConversationArtifactID');
|
|
26225
|
+
}
|
|
26226
|
+
set ConversationArtifactID(value) {
|
|
26227
|
+
this.Set('ConversationArtifactID', value);
|
|
26228
|
+
}
|
|
26229
|
+
/**
|
|
26230
|
+
* * Field Name: Version
|
|
26231
|
+
* * Display Name: Version
|
|
26232
|
+
* * SQL Data Type: int
|
|
26233
|
+
* * Description: Sequential version number (starting from 1) for this artifact
|
|
26234
|
+
*/
|
|
26235
|
+
get Version() {
|
|
26236
|
+
return this.Get('Version');
|
|
26237
|
+
}
|
|
26238
|
+
set Version(value) {
|
|
26239
|
+
this.Set('Version', value);
|
|
26240
|
+
}
|
|
26241
|
+
/**
|
|
26242
|
+
* * Field Name: Configuration
|
|
26243
|
+
* * Display Name: Configuration
|
|
26244
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
26245
|
+
* * Description: JSON configuration and metadata for this artifact version
|
|
26246
|
+
*/
|
|
26247
|
+
get Configuration() {
|
|
26248
|
+
return this.Get('Configuration');
|
|
26249
|
+
}
|
|
26250
|
+
set Configuration(value) {
|
|
26251
|
+
this.Set('Configuration', value);
|
|
26252
|
+
}
|
|
26253
|
+
/**
|
|
26254
|
+
* * Field Name: Content
|
|
26255
|
+
* * Display Name: Content
|
|
26256
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
26257
|
+
* * Description: Actual content of the artifact, if stored separately from configuration
|
|
26258
|
+
*/
|
|
26259
|
+
get Content() {
|
|
26260
|
+
return this.Get('Content');
|
|
26261
|
+
}
|
|
26262
|
+
set Content(value) {
|
|
26263
|
+
this.Set('Content', value);
|
|
26264
|
+
}
|
|
26265
|
+
/**
|
|
26266
|
+
* * Field Name: Comments
|
|
26267
|
+
* * Display Name: Comments
|
|
26268
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
26269
|
+
* * Description: User comments specific to this version
|
|
26270
|
+
*/
|
|
26271
|
+
get Comments() {
|
|
26272
|
+
return this.Get('Comments');
|
|
26273
|
+
}
|
|
26274
|
+
set Comments(value) {
|
|
26275
|
+
this.Set('Comments', value);
|
|
26276
|
+
}
|
|
26277
|
+
/**
|
|
26278
|
+
* * Field Name: __mj_CreatedAt
|
|
26279
|
+
* * Display Name: Created At
|
|
26280
|
+
* * SQL Data Type: datetimeoffset
|
|
26281
|
+
* * Default Value: getutcdate()
|
|
26282
|
+
*/
|
|
26283
|
+
get __mj_CreatedAt() {
|
|
26284
|
+
return this.Get('__mj_CreatedAt');
|
|
26285
|
+
}
|
|
26286
|
+
/**
|
|
26287
|
+
* * Field Name: __mj_UpdatedAt
|
|
26288
|
+
* * Display Name: Updated At
|
|
26289
|
+
* * SQL Data Type: datetimeoffset
|
|
26290
|
+
* * Default Value: getutcdate()
|
|
26291
|
+
*/
|
|
26292
|
+
get __mj_UpdatedAt() {
|
|
26293
|
+
return this.Get('__mj_UpdatedAt');
|
|
26294
|
+
}
|
|
26295
|
+
/**
|
|
26296
|
+
* * Field Name: ConversationArtifact
|
|
26297
|
+
* * Display Name: Conversation Artifact
|
|
26298
|
+
* * SQL Data Type: nvarchar(255)
|
|
26299
|
+
*/
|
|
26300
|
+
get ConversationArtifact() {
|
|
26301
|
+
return this.Get('ConversationArtifact');
|
|
26302
|
+
}
|
|
26303
|
+
};
|
|
26304
|
+
exports.ConversationArtifactVersionEntity = ConversationArtifactVersionEntity;
|
|
26305
|
+
exports.ConversationArtifactVersionEntity = ConversationArtifactVersionEntity = __decorate([
|
|
26306
|
+
(0, global_1.RegisterClass)(core_1.BaseEntity, 'MJ: Conversation Artifact Versions')
|
|
26307
|
+
], ConversationArtifactVersionEntity);
|
|
26308
|
+
/**
|
|
26309
|
+
* MJ: Conversation Artifacts - strongly typed entity sub-class
|
|
26310
|
+
* * Schema: __mj
|
|
26311
|
+
* * Base Table: ConversationArtifact
|
|
26312
|
+
* * Base View: vwConversationArtifacts
|
|
26313
|
+
* * Primary Key: ID
|
|
26314
|
+
* @extends {BaseEntity}
|
|
26315
|
+
* @class
|
|
26316
|
+
* @public
|
|
26317
|
+
*/
|
|
26318
|
+
let ConversationArtifactEntity = class ConversationArtifactEntity extends core_1.BaseEntity {
|
|
26319
|
+
/**
|
|
26320
|
+
* Loads the MJ: Conversation Artifacts record from the database
|
|
26321
|
+
* @param ID: string - primary key value to load the MJ: Conversation Artifacts record.
|
|
26322
|
+
* @param EntityRelationshipsToLoad - (optional) the relationships to load
|
|
26323
|
+
* @returns {Promise<boolean>} - true if successful, false otherwise
|
|
26324
|
+
* @public
|
|
26325
|
+
* @async
|
|
26326
|
+
* @memberof ConversationArtifactEntity
|
|
26327
|
+
* @method
|
|
26328
|
+
* @override
|
|
26329
|
+
*/
|
|
26330
|
+
async Load(ID, EntityRelationshipsToLoad) {
|
|
26331
|
+
const compositeKey = new core_1.CompositeKey();
|
|
26332
|
+
compositeKey.KeyValuePairs.push({ FieldName: 'ID', Value: ID });
|
|
26333
|
+
return await super.InnerLoad(compositeKey, EntityRelationshipsToLoad);
|
|
26334
|
+
}
|
|
26335
|
+
/**
|
|
26336
|
+
* Validate() method override for MJ: Conversation Artifacts entity. This is an auto-generated method that invokes the generated validators for this entity for the following fields:
|
|
26337
|
+
* * SharingScope: This rule ensures that the sharing scope of an entity can only be one of the predefined options: 'Public', 'Everyone', 'SpecificUsers', or 'None'.
|
|
26338
|
+
* @public
|
|
26339
|
+
* @method
|
|
26340
|
+
* @override
|
|
26341
|
+
*/
|
|
26342
|
+
Validate() {
|
|
26343
|
+
const result = super.Validate();
|
|
26344
|
+
this.ValidateSharingScopeAgainstPredefinedOptions(result);
|
|
26345
|
+
return result;
|
|
26346
|
+
}
|
|
26347
|
+
/**
|
|
26348
|
+
* This rule ensures that the sharing scope of an entity can only be one of the predefined options: 'Public', 'Everyone', 'SpecificUsers', or 'None'.
|
|
26349
|
+
* @param result - the ValidationResult object to add any errors or warnings to
|
|
26350
|
+
* @public
|
|
26351
|
+
* @method
|
|
26352
|
+
*/
|
|
26353
|
+
ValidateSharingScopeAgainstPredefinedOptions(result) {
|
|
26354
|
+
if (this.SharingScope !== 'Public' && this.SharingScope !== 'Everyone' && this.SharingScope !== 'SpecificUsers' && this.SharingScope !== 'None') {
|
|
26355
|
+
result.Errors.push(new core_1.ValidationErrorInfo("SharingScope", "The SharingScope must be one of the following: 'Public', 'Everyone', 'SpecificUsers', or 'None'.", this.SharingScope, core_1.ValidationErrorType.Failure));
|
|
26356
|
+
}
|
|
26357
|
+
}
|
|
26358
|
+
/**
|
|
26359
|
+
* * Field Name: ID
|
|
26360
|
+
* * Display Name: ID
|
|
26361
|
+
* * SQL Data Type: uniqueidentifier
|
|
26362
|
+
* * Default Value: newsequentialid()
|
|
26363
|
+
*/
|
|
26364
|
+
get ID() {
|
|
26365
|
+
return this.Get('ID');
|
|
26366
|
+
}
|
|
26367
|
+
/**
|
|
26368
|
+
* * Field Name: Name
|
|
26369
|
+
* * Display Name: Name
|
|
26370
|
+
* * SQL Data Type: nvarchar(255)
|
|
26371
|
+
* * Description: Display name of the artifact
|
|
26372
|
+
*/
|
|
26373
|
+
get Name() {
|
|
26374
|
+
return this.Get('Name');
|
|
26375
|
+
}
|
|
26376
|
+
set Name(value) {
|
|
26377
|
+
this.Set('Name', value);
|
|
26378
|
+
}
|
|
26379
|
+
/**
|
|
26380
|
+
* * Field Name: Description
|
|
26381
|
+
* * Display Name: Description
|
|
26382
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
26383
|
+
* * Description: Extended description of the artifact
|
|
26384
|
+
*/
|
|
26385
|
+
get Description() {
|
|
26386
|
+
return this.Get('Description');
|
|
26387
|
+
}
|
|
26388
|
+
set Description(value) {
|
|
26389
|
+
this.Set('Description', value);
|
|
26390
|
+
}
|
|
26391
|
+
/**
|
|
26392
|
+
* * Field Name: ConversationID
|
|
26393
|
+
* * Display Name: Conversation ID
|
|
26394
|
+
* * SQL Data Type: uniqueidentifier
|
|
26395
|
+
* * Related Entity/Foreign Key: Conversations (vwConversations.ID)
|
|
26396
|
+
* * Description: Reference to the conversation this artifact belongs to
|
|
26397
|
+
*/
|
|
26398
|
+
get ConversationID() {
|
|
26399
|
+
return this.Get('ConversationID');
|
|
26400
|
+
}
|
|
26401
|
+
set ConversationID(value) {
|
|
26402
|
+
this.Set('ConversationID', value);
|
|
26403
|
+
}
|
|
26404
|
+
/**
|
|
26405
|
+
* * Field Name: ArtifactTypeID
|
|
26406
|
+
* * Display Name: Artifact Type ID
|
|
26407
|
+
* * SQL Data Type: uniqueidentifier
|
|
26408
|
+
* * Related Entity/Foreign Key: MJ: Artifact Types (vwArtifactTypes.ID)
|
|
26409
|
+
* * Description: Reference to the type of artifact
|
|
26410
|
+
*/
|
|
26411
|
+
get ArtifactTypeID() {
|
|
26412
|
+
return this.Get('ArtifactTypeID');
|
|
26413
|
+
}
|
|
26414
|
+
set ArtifactTypeID(value) {
|
|
26415
|
+
this.Set('ArtifactTypeID', value);
|
|
26416
|
+
}
|
|
26417
|
+
/**
|
|
26418
|
+
* * Field Name: SharingScope
|
|
26419
|
+
* * Display Name: Sharing Scope
|
|
26420
|
+
* * SQL Data Type: nvarchar(50)
|
|
26421
|
+
* * Description: Controls who can view this artifact (None, SpecificUsers, Everyone, Public)
|
|
26422
|
+
*/
|
|
26423
|
+
get SharingScope() {
|
|
26424
|
+
return this.Get('SharingScope');
|
|
26425
|
+
}
|
|
26426
|
+
set SharingScope(value) {
|
|
26427
|
+
this.Set('SharingScope', value);
|
|
26428
|
+
}
|
|
26429
|
+
/**
|
|
26430
|
+
* * Field Name: Comments
|
|
26431
|
+
* * Display Name: Comments
|
|
26432
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
26433
|
+
* * Description: User comments about the artifact
|
|
26434
|
+
*/
|
|
26435
|
+
get Comments() {
|
|
26436
|
+
return this.Get('Comments');
|
|
26437
|
+
}
|
|
26438
|
+
set Comments(value) {
|
|
26439
|
+
this.Set('Comments', value);
|
|
26440
|
+
}
|
|
26441
|
+
/**
|
|
26442
|
+
* * Field Name: __mj_CreatedAt
|
|
26443
|
+
* * Display Name: Created At
|
|
26444
|
+
* * SQL Data Type: datetimeoffset
|
|
26445
|
+
* * Default Value: getutcdate()
|
|
26446
|
+
*/
|
|
26447
|
+
get __mj_CreatedAt() {
|
|
26448
|
+
return this.Get('__mj_CreatedAt');
|
|
26449
|
+
}
|
|
26450
|
+
/**
|
|
26451
|
+
* * Field Name: __mj_UpdatedAt
|
|
26452
|
+
* * Display Name: Updated At
|
|
26453
|
+
* * SQL Data Type: datetimeoffset
|
|
26454
|
+
* * Default Value: getutcdate()
|
|
26455
|
+
*/
|
|
26456
|
+
get __mj_UpdatedAt() {
|
|
26457
|
+
return this.Get('__mj_UpdatedAt');
|
|
26458
|
+
}
|
|
26459
|
+
/**
|
|
26460
|
+
* * Field Name: Conversation
|
|
26461
|
+
* * Display Name: Conversation
|
|
26462
|
+
* * SQL Data Type: nvarchar(255)
|
|
26463
|
+
*/
|
|
26464
|
+
get Conversation() {
|
|
26465
|
+
return this.Get('Conversation');
|
|
26466
|
+
}
|
|
26467
|
+
/**
|
|
26468
|
+
* * Field Name: ArtifactType
|
|
26469
|
+
* * Display Name: Artifact Type
|
|
26470
|
+
* * SQL Data Type: nvarchar(100)
|
|
26471
|
+
*/
|
|
26472
|
+
get ArtifactType() {
|
|
26473
|
+
return this.Get('ArtifactType');
|
|
26474
|
+
}
|
|
26475
|
+
};
|
|
26476
|
+
exports.ConversationArtifactEntity = ConversationArtifactEntity;
|
|
26477
|
+
exports.ConversationArtifactEntity = ConversationArtifactEntity = __decorate([
|
|
26478
|
+
(0, global_1.RegisterClass)(core_1.BaseEntity, 'MJ: Conversation Artifacts')
|
|
26479
|
+
], ConversationArtifactEntity);
|
|
25804
26480
|
/**
|
|
25805
26481
|
* MJ: Report User States - strongly typed entity sub-class
|
|
25806
26482
|
* * Schema: __mj
|
|
@@ -25895,7 +26571,6 @@ let ReportUserStateEntity = class ReportUserStateEntity extends core_1.BaseEntit
|
|
|
25895
26571
|
* * Field Name: Report
|
|
25896
26572
|
* * Display Name: Report
|
|
25897
26573
|
* * SQL Data Type: nvarchar(255)
|
|
25898
|
-
* * Default Value: null
|
|
25899
26574
|
*/
|
|
25900
26575
|
get Report() {
|
|
25901
26576
|
return this.Get('Report');
|
|
@@ -25904,7 +26579,6 @@ let ReportUserStateEntity = class ReportUserStateEntity extends core_1.BaseEntit
|
|
|
25904
26579
|
* * Field Name: User
|
|
25905
26580
|
* * Display Name: User
|
|
25906
26581
|
* * SQL Data Type: nvarchar(100)
|
|
25907
|
-
* * Default Value: null
|
|
25908
26582
|
*/
|
|
25909
26583
|
get User() {
|
|
25910
26584
|
return this.Get('User');
|
|
@@ -26068,7 +26742,6 @@ let ReportVersionEntity = class ReportVersionEntity extends core_1.BaseEntity {
|
|
|
26068
26742
|
* * Field Name: Report
|
|
26069
26743
|
* * Display Name: Report
|
|
26070
26744
|
* * SQL Data Type: nvarchar(255)
|
|
26071
|
-
* * Default Value: null
|
|
26072
26745
|
*/
|
|
26073
26746
|
get Report() {
|
|
26074
26747
|
return this.Get('Report');
|