@memberjunction/core-entities 2.107.0 → 2.108.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.
|
@@ -8,13 +8,13 @@ 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.
|
|
16
|
-
exports.
|
|
17
|
-
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 = void 0;
|
|
11
|
+
exports.ReportUserStateSchema = exports.RecordLinkSchema = exports.QueryParameterSchema = exports.PublicLinkSchema = exports.ProjectSchema = exports.EnvironmentSchema = exports.DashboardUserStateSchema = exports.DashboardUserPreferenceSchema = exports.ConversationDetailArtifactSchema = exports.ConversationArtifactSchema = exports.ConversationArtifactVersionSchema = exports.ConversationArtifactPermissionSchema = exports.ComponentSchema = exports.ComponentRegistrySchema = exports.ComponentLibraryLinkSchema = exports.ComponentLibrarySchema = exports.ComponentDependencySchema = exports.CollectionSchema = exports.CollectionPermissionSchema = exports.CollectionArtifactSchema = exports.ArtifactSchema = exports.ArtifactVersionSchema = exports.ArtifactVersionAttributeSchema = exports.ArtifactTypeSchema = exports.AIVendorSchema = exports.AIVendorTypeSchema = exports.AIVendorTypeDefinitionSchema = exports.AIPromptRunSchema = exports.AIPromptModelSchema = exports.AIModelVendorSchema = exports.AIModelPriceUnitTypeSchema = exports.AIModelPriceTypeSchema = exports.AIModelCostSchema = exports.AIConfigurationSchema = exports.AIConfigurationParamSchema = exports.AIAgentTypeSchema = exports.AIAgentStepSchema = exports.AIAgentStepPathSchema = exports.AIAgentRunSchema = exports.AIAgentRunStepSchema = exports.AIAgentRelationshipSchema = exports.AIAgentPromptSchema = exports.AIAgentPermissionSchema = exports.AIAgentArtifactTypeSchema = exports.AccessControlRuleSchema = exports.ListSchema = exports.ListDetailSchema = exports.ListCategorySchema = exports.LibraryItemSchema = exports.LibrarySchema = void 0;
|
|
12
|
+
exports.UserRecordLogSchema = exports.UserNotificationSchema = exports.UserFavoriteSchema = exports.UserApplicationSchema = 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.TaskSchema = exports.TaskTypeSchema = exports.TaskDependencySchema = exports.ScheduledJobSchema = exports.ScheduledJobTypeSchema = exports.ScheduledJobRunSchema = exports.ReportVersionSchema = void 0;
|
|
13
|
+
exports.CommunicationProviderEntity = exports.CommunicationProviderMessageTypeEntity = exports.CommunicationLogEntity = exports.CommunicationBaseMessageTypeEntity = 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 = void 0;
|
|
14
|
+
exports.EntityRecordDocumentEntity = exports.EntityPermissionEntity = exports.EntityFieldEntity = exports.EntityFieldValueEntity = 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 = void 0;
|
|
15
|
+
exports.ComponentRegistryEntity = exports.ComponentLibraryLinkEntity = exports.ComponentLibraryEntity = exports.ComponentDependencyEntity = exports.CollectionEntity = exports.CollectionPermissionEntity = exports.CollectionArtifactEntity = exports.ArtifactEntity = exports.ArtifactVersionEntity = exports.ArtifactVersionAttributeEntity = exports.ArtifactTypeEntity = exports.AIVendorEntity = exports.AIVendorTypeEntity = exports.AIVendorTypeDefinitionEntity = exports.AIPromptRunEntity = exports.AIPromptModelEntity = exports.AIModelVendorEntity = exports.AIModelPriceUnitTypeEntity = exports.AIModelPriceTypeEntity = exports.AIModelCostEntity = exports.AIConfigurationEntity = exports.AIConfigurationParamEntity = exports.AIAgentTypeEntity = exports.AIAgentStepEntity = exports.AIAgentStepPathEntity = exports.AIAgentRunEntity = exports.AIAgentRunStepEntity = exports.AIAgentRelationshipEntity = exports.AIAgentPromptEntity = exports.AIAgentPermissionEntity = exports.AIAgentArtifactTypeEntity = exports.AccessControlRuleEntity = 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 = void 0;
|
|
16
|
+
exports.SchemaInfoEntity = exports.ScheduledActionEntity = exports.ScheduledActionParamEntity = exports.RowLevelSecurityFilterEntity = exports.RoleEntity = exports.ResourceTypeEntity = exports.ResourcePermissionEntity = exports.ResourceLinkEntity = 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.TaskEntity = exports.TaskTypeEntity = exports.TaskDependencyEntity = exports.ScheduledJobEntity = exports.ScheduledJobTypeEntity = exports.ScheduledJobRunEntity = exports.ReportVersionEntity = exports.ReportUserStateEntity = exports.RecordLinkEntity = exports.QueryParameterEntity = exports.PublicLinkEntity = exports.ProjectEntity = exports.EnvironmentEntity = exports.DashboardUserStateEntity = exports.DashboardUserPreferenceEntity = exports.ConversationDetailArtifactEntity = exports.ConversationArtifactEntity = exports.ConversationArtifactVersionEntity = exports.ConversationArtifactPermissionEntity = exports.ComponentEntity = void 0;
|
|
17
|
+
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;
|
|
18
18
|
const core_1 = require("@memberjunction/core");
|
|
19
19
|
const global_1 = require("@memberjunction/global");
|
|
20
20
|
const zod_1 = require("zod");
|
|
@@ -606,6 +606,12 @@ exports.ActionSchema = zod_1.z.object({
|
|
|
606
606
|
* * Display Name: Icon Class
|
|
607
607
|
* * SQL Data Type: nvarchar(100)
|
|
608
608
|
* * Description: Font Awesome icon class (e.g., fa-cog, fa-play, fa-search) for visual representation of the action.`),
|
|
609
|
+
DefaultCompactPromptID: zod_1.z.string().nullable().describe(`
|
|
610
|
+
* * Field Name: DefaultCompactPromptID
|
|
611
|
+
* * Display Name: Default Compact Prompt ID
|
|
612
|
+
* * SQL Data Type: uniqueidentifier
|
|
613
|
+
* * Related Entity/Foreign Key: AI Prompts (vwAIPrompts.ID)
|
|
614
|
+
* * Description: Default prompt for compacting/summarizing this action's results when used by agents with CompactMode=AISummary. Action designers define how their specific results should be summarized. Can be overridden per agent in AIAgentAction.CompactPromptID.`),
|
|
609
615
|
Category: zod_1.z.string().nullable().describe(`
|
|
610
616
|
* * Field Name: Category
|
|
611
617
|
* * Display Name: Category
|
|
@@ -618,6 +624,10 @@ exports.ActionSchema = zod_1.z.object({
|
|
|
618
624
|
* * Field Name: Parent
|
|
619
625
|
* * Display Name: Parent
|
|
620
626
|
* * SQL Data Type: nvarchar(425)`),
|
|
627
|
+
DefaultCompactPrompt: zod_1.z.string().nullable().describe(`
|
|
628
|
+
* * Field Name: DefaultCompactPrompt
|
|
629
|
+
* * Display Name: Default Compact Prompt
|
|
630
|
+
* * SQL Data Type: nvarchar(255)`),
|
|
621
631
|
RootParentID: zod_1.z.string().nullable().describe(`
|
|
622
632
|
* * Field Name: RootParentID
|
|
623
633
|
* * Display Name: Root Parent ID
|
|
@@ -723,6 +733,42 @@ exports.AIAgentActionSchema = zod_1.z.object({
|
|
|
723
733
|
* * Display Name: Max Executions Per Run
|
|
724
734
|
* * SQL Data Type: int
|
|
725
735
|
* * Description: Maximum number of times this action can be executed per agent run`),
|
|
736
|
+
ResultExpirationTurns: zod_1.z.number().nullable().describe(`
|
|
737
|
+
* * Field Name: ResultExpirationTurns
|
|
738
|
+
* * Display Name: Result Expiration Turns
|
|
739
|
+
* * SQL Data Type: int
|
|
740
|
+
* * Description: Number of conversation turns before action results expire from conversation context. NULL = never expire (default). 0 = expire immediately after next turn.`),
|
|
741
|
+
ResultExpirationMode: zod_1.z.union([zod_1.z.literal('Compact'), zod_1.z.literal('None'), zod_1.z.literal('Remove')]).describe(`
|
|
742
|
+
* * Field Name: ResultExpirationMode
|
|
743
|
+
* * Display Name: Result Expiration Mode
|
|
744
|
+
* * SQL Data Type: nvarchar(20)
|
|
745
|
+
* * Default Value: None
|
|
746
|
+
* * Value List Type: List
|
|
747
|
+
* * Possible Values
|
|
748
|
+
* * Remove
|
|
749
|
+
* * None
|
|
750
|
+
* * Compact
|
|
751
|
+
* * Description: How to handle expired action results: None (no expiration, default), Remove (delete message entirely), Compact (reduce size via CompactMode while preserving key information).`),
|
|
752
|
+
CompactMode: zod_1.z.union([zod_1.z.literal('AI Summary'), zod_1.z.literal('First N Chars')]).nullable().describe(`
|
|
753
|
+
* * Field Name: CompactMode
|
|
754
|
+
* * Display Name: Compact Mode
|
|
755
|
+
* * SQL Data Type: nvarchar(20)
|
|
756
|
+
* * Value List Type: List
|
|
757
|
+
* * Possible Values
|
|
758
|
+
* * AI Summary
|
|
759
|
+
* * First N Chars
|
|
760
|
+
* * Description: How to compact results when ResultExpirationMode=Compact: FirstNChars (truncate to CompactLength characters, fast and free), AISummary (use LLM to intelligently summarize with CompactPromptID or Action.DefaultCompactPromptID).`),
|
|
761
|
+
CompactLength: zod_1.z.number().nullable().describe(`
|
|
762
|
+
* * Field Name: CompactLength
|
|
763
|
+
* * Display Name: Compact Length
|
|
764
|
+
* * SQL Data Type: int
|
|
765
|
+
* * Description: Number of characters to keep when CompactMode=FirstNChars. Required when CompactMode is FirstNChars, ignored otherwise.`),
|
|
766
|
+
CompactPromptID: zod_1.z.string().nullable().describe(`
|
|
767
|
+
* * Field Name: CompactPromptID
|
|
768
|
+
* * Display Name: Compact Prompt ID
|
|
769
|
+
* * SQL Data Type: uniqueidentifier
|
|
770
|
+
* * Related Entity/Foreign Key: AI Prompts (vwAIPrompts.ID)
|
|
771
|
+
* * Description: Optional override for AI summarization prompt when CompactMode=AISummary. Lookup hierarchy: this field -> Action.DefaultCompactPromptID -> system default. Allows agent-specific summarization focus (e.g., technical vs. marketing perspective).`),
|
|
726
772
|
Agent: zod_1.z.string().nullable().describe(`
|
|
727
773
|
* * Field Name: Agent
|
|
728
774
|
* * Display Name: Agent
|
|
@@ -731,6 +777,10 @@ exports.AIAgentActionSchema = zod_1.z.object({
|
|
|
731
777
|
* * Field Name: Action
|
|
732
778
|
* * Display Name: Action
|
|
733
779
|
* * SQL Data Type: nvarchar(425)`),
|
|
780
|
+
CompactPrompt: zod_1.z.string().nullable().describe(`
|
|
781
|
+
* * Field Name: CompactPrompt
|
|
782
|
+
* * Display Name: Compact Prompt
|
|
783
|
+
* * SQL Data Type: nvarchar(255)`),
|
|
734
784
|
});
|
|
735
785
|
/**
|
|
736
786
|
* zod schema definition for the entity AI Agent Learning Cycles
|
|
@@ -1261,6 +1311,17 @@ if this limit is exceeded.`),
|
|
|
1261
1311
|
* * Related Entity/Foreign Key: Users (vwUsers.ID)
|
|
1262
1312
|
* * Default Value: ECAFCCEC-6A37-EF11-86D4-000D3A4E707E
|
|
1263
1313
|
* * Description: The user who owns and created this AI agent. Automatically set to the current user if not specified. Owner has full permissions (view, run, edit, delete) regardless of ACL entries.`),
|
|
1314
|
+
InvocationMode: zod_1.z.union([zod_1.z.literal('Any'), zod_1.z.literal('Sub-Agent'), zod_1.z.literal('Top-Level')]).describe(`
|
|
1315
|
+
* * Field Name: InvocationMode
|
|
1316
|
+
* * Display Name: Invocation Mode
|
|
1317
|
+
* * SQL Data Type: nvarchar(20)
|
|
1318
|
+
* * Default Value: Any
|
|
1319
|
+
* * Value List Type: List
|
|
1320
|
+
* * Possible Values
|
|
1321
|
+
* * Sub-Agent
|
|
1322
|
+
* * Any
|
|
1323
|
+
* * Top-Level
|
|
1324
|
+
* * Description: Controls how the agent can be invoked: Any (default - can be top-level or sub-agent), Top-Level (only callable as primary agent), Sub-Agent (only callable as sub-agent). Used to filter available agents in tools like Sage.`),
|
|
1264
1325
|
Parent: zod_1.z.string().nullable().describe(`
|
|
1265
1326
|
* * Field Name: Parent
|
|
1266
1327
|
* * Display Name: Parent
|
|
@@ -3723,6 +3784,11 @@ exports.ConversationDetailSchema = zod_1.z.object({
|
|
|
3723
3784
|
* * Complete
|
|
3724
3785
|
* * Error
|
|
3725
3786
|
* * Description: Status of the conversation message. Complete indicates finished processing, In-Progress indicates active agent work, Error indicates processing failed.`),
|
|
3787
|
+
SuggestedResponses: zod_1.z.string().nullable().describe(`
|
|
3788
|
+
* * Field Name: SuggestedResponses
|
|
3789
|
+
* * Display Name: Suggested Responses
|
|
3790
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
3791
|
+
* * Description: JSON array of suggested responses that can be displayed to the user for quick replies. Each response object contains: text (display text), allowInput (boolean), iconClass (optional Font Awesome class), and data (optional payload).`),
|
|
3726
3792
|
Conversation: zod_1.z.string().nullable().describe(`
|
|
3727
3793
|
* * Field Name: Conversation
|
|
3728
3794
|
* * Display Name: Conversation
|
|
@@ -7697,6 +7763,16 @@ exports.AIAgentRelationshipSchema = zod_1.z.object({
|
|
|
7697
7763
|
* * Display Name: Sub Agent Output Mapping
|
|
7698
7764
|
* * SQL Data Type: nvarchar(MAX)
|
|
7699
7765
|
* * Description: JSON configuration mapping sub-agent result payload paths to parent agent payload paths. Enables controlled merging of sub-agent results. Format: {"subAgentPath": "parentPath", "*": "captureAllPath"}. If null, sub-agent results are not automatically merged into parent payload.`),
|
|
7766
|
+
SubAgentInputMapping: zod_1.z.string().nullable().describe(`
|
|
7767
|
+
* * Field Name: SubAgentInputMapping
|
|
7768
|
+
* * Display Name: Sub Agent Input Mapping
|
|
7769
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
7770
|
+
* * Description: JSON mapping of parent payload paths to sub-agent initial payload paths. Enables structural data transfer from parent to related sub-agent. Format: {"parentPath": "subAgentPath", "parent.nested": "subAgent.field"}. Example: {"searchQuery": "query", "maxResults": "limit"}. If null, sub-agent starts with empty payload (default behavior).`),
|
|
7771
|
+
SubAgentContextPaths: zod_1.z.string().nullable().describe(`
|
|
7772
|
+
* * Field Name: SubAgentContextPaths
|
|
7773
|
+
* * Display Name: Sub Agent Context Paths
|
|
7774
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
7775
|
+
* * Description: JSON array of parent payload paths to send as LLM context to related sub-agent. Sub-agent receives this data in a formatted context message before its task message. Format: ["path1", "path2.nested", "path3.*", "*"]. Use "*" to send entire parent payload. Example: ["userPreferences", "priorFindings.summary", "sources[*]"]. If null, no parent context is sent (default behavior).`),
|
|
7700
7776
|
Agent: zod_1.z.string().nullable().describe(`
|
|
7701
7777
|
* * Field Name: Agent
|
|
7702
7778
|
* * Display Name: Agent
|
|
@@ -9834,6 +9910,78 @@ exports.CollectionArtifactSchema = zod_1.z.object({
|
|
|
9834
9910
|
* * Display Name: Artifact
|
|
9835
9911
|
* * SQL Data Type: nvarchar(255)`),
|
|
9836
9912
|
});
|
|
9913
|
+
/**
|
|
9914
|
+
* zod schema definition for the entity MJ: Collection Permissions
|
|
9915
|
+
*/
|
|
9916
|
+
exports.CollectionPermissionSchema = zod_1.z.object({
|
|
9917
|
+
ID: zod_1.z.string().describe(`
|
|
9918
|
+
* * Field Name: ID
|
|
9919
|
+
* * Display Name: ID
|
|
9920
|
+
* * SQL Data Type: uniqueidentifier
|
|
9921
|
+
* * Default Value: newsequentialid()`),
|
|
9922
|
+
CollectionID: zod_1.z.string().describe(`
|
|
9923
|
+
* * Field Name: CollectionID
|
|
9924
|
+
* * Display Name: Collection ID
|
|
9925
|
+
* * SQL Data Type: uniqueidentifier
|
|
9926
|
+
* * Related Entity/Foreign Key: MJ: Collections (vwCollections.ID)`),
|
|
9927
|
+
UserID: zod_1.z.string().describe(`
|
|
9928
|
+
* * Field Name: UserID
|
|
9929
|
+
* * Display Name: User ID
|
|
9930
|
+
* * SQL Data Type: uniqueidentifier
|
|
9931
|
+
* * Related Entity/Foreign Key: Users (vwUsers.ID)`),
|
|
9932
|
+
CanRead: zod_1.z.boolean().describe(`
|
|
9933
|
+
* * Field Name: CanRead
|
|
9934
|
+
* * Display Name: Can Read
|
|
9935
|
+
* * SQL Data Type: bit
|
|
9936
|
+
* * Default Value: 1
|
|
9937
|
+
* * Description: Always 1 - users must have read permission to access a shared collection`),
|
|
9938
|
+
CanShare: zod_1.z.boolean().describe(`
|
|
9939
|
+
* * Field Name: CanShare
|
|
9940
|
+
* * Display Name: Can Share
|
|
9941
|
+
* * SQL Data Type: bit
|
|
9942
|
+
* * Default Value: 0
|
|
9943
|
+
* * Description: Can share this collection with others (but cannot grant more permissions than they have)`),
|
|
9944
|
+
CanEdit: zod_1.z.boolean().describe(`
|
|
9945
|
+
* * Field Name: CanEdit
|
|
9946
|
+
* * Display Name: Can Edit
|
|
9947
|
+
* * SQL Data Type: bit
|
|
9948
|
+
* * Default Value: 0
|
|
9949
|
+
* * Description: Can add/remove artifacts to/from this collection`),
|
|
9950
|
+
CanDelete: zod_1.z.boolean().describe(`
|
|
9951
|
+
* * Field Name: CanDelete
|
|
9952
|
+
* * Display Name: Can Delete
|
|
9953
|
+
* * SQL Data Type: bit
|
|
9954
|
+
* * Default Value: 0
|
|
9955
|
+
* * Description: Can delete the collection, child collections, and artifacts`),
|
|
9956
|
+
SharedByUserID: zod_1.z.string().nullable().describe(`
|
|
9957
|
+
* * Field Name: SharedByUserID
|
|
9958
|
+
* * Display Name: Shared By User ID
|
|
9959
|
+
* * SQL Data Type: uniqueidentifier
|
|
9960
|
+
* * Related Entity/Foreign Key: Users (vwUsers.ID)
|
|
9961
|
+
* * Description: The user who shared this collection (NULL if shared by owner)`),
|
|
9962
|
+
__mj_CreatedAt: zod_1.z.date().describe(`
|
|
9963
|
+
* * Field Name: __mj_CreatedAt
|
|
9964
|
+
* * Display Name: Created At
|
|
9965
|
+
* * SQL Data Type: datetimeoffset
|
|
9966
|
+
* * Default Value: getutcdate()`),
|
|
9967
|
+
__mj_UpdatedAt: zod_1.z.date().describe(`
|
|
9968
|
+
* * Field Name: __mj_UpdatedAt
|
|
9969
|
+
* * Display Name: Updated At
|
|
9970
|
+
* * SQL Data Type: datetimeoffset
|
|
9971
|
+
* * Default Value: getutcdate()`),
|
|
9972
|
+
Collection: zod_1.z.string().describe(`
|
|
9973
|
+
* * Field Name: Collection
|
|
9974
|
+
* * Display Name: Collection
|
|
9975
|
+
* * SQL Data Type: nvarchar(255)`),
|
|
9976
|
+
User: zod_1.z.string().describe(`
|
|
9977
|
+
* * Field Name: User
|
|
9978
|
+
* * Display Name: User
|
|
9979
|
+
* * SQL Data Type: nvarchar(100)`),
|
|
9980
|
+
SharedByUser: zod_1.z.string().nullable().describe(`
|
|
9981
|
+
* * Field Name: SharedByUser
|
|
9982
|
+
* * Display Name: Shared By User
|
|
9983
|
+
* * SQL Data Type: nvarchar(100)`),
|
|
9984
|
+
});
|
|
9837
9985
|
/**
|
|
9838
9986
|
* zod schema definition for the entity MJ: Collections
|
|
9839
9987
|
*/
|
|
@@ -9889,6 +10037,12 @@ exports.CollectionSchema = zod_1.z.object({
|
|
|
9889
10037
|
* * Display Name: Updated At
|
|
9890
10038
|
* * SQL Data Type: datetimeoffset
|
|
9891
10039
|
* * Default Value: getutcdate()`),
|
|
10040
|
+
OwnerID: zod_1.z.string().nullable().describe(`
|
|
10041
|
+
* * Field Name: OwnerID
|
|
10042
|
+
* * Display Name: Owner ID
|
|
10043
|
+
* * SQL Data Type: uniqueidentifier
|
|
10044
|
+
* * Related Entity/Foreign Key: Users (vwUsers.ID)
|
|
10045
|
+
* * Description: The user who owns this collection and has full permissions`),
|
|
9892
10046
|
Environment: zod_1.z.string().describe(`
|
|
9893
10047
|
* * Field Name: Environment
|
|
9894
10048
|
* * Display Name: Environment
|
|
@@ -9897,6 +10051,10 @@ exports.CollectionSchema = zod_1.z.object({
|
|
|
9897
10051
|
* * Field Name: Parent
|
|
9898
10052
|
* * Display Name: Parent
|
|
9899
10053
|
* * SQL Data Type: nvarchar(255)`),
|
|
10054
|
+
Owner: zod_1.z.string().nullable().describe(`
|
|
10055
|
+
* * Field Name: Owner
|
|
10056
|
+
* * Display Name: Owner
|
|
10057
|
+
* * SQL Data Type: nvarchar(100)`),
|
|
9900
10058
|
RootParentID: zod_1.z.string().nullable().describe(`
|
|
9901
10059
|
* * Field Name: RootParentID
|
|
9902
10060
|
* * Display Name: Root Parent ID
|
|
@@ -16525,6 +16683,19 @@ let ActionEntity = class ActionEntity extends core_1.BaseEntity {
|
|
|
16525
16683
|
this.Set('IconClass', value);
|
|
16526
16684
|
}
|
|
16527
16685
|
/**
|
|
16686
|
+
* * Field Name: DefaultCompactPromptID
|
|
16687
|
+
* * Display Name: Default Compact Prompt ID
|
|
16688
|
+
* * SQL Data Type: uniqueidentifier
|
|
16689
|
+
* * Related Entity/Foreign Key: AI Prompts (vwAIPrompts.ID)
|
|
16690
|
+
* * Description: Default prompt for compacting/summarizing this action's results when used by agents with CompactMode=AISummary. Action designers define how their specific results should be summarized. Can be overridden per agent in AIAgentAction.CompactPromptID.
|
|
16691
|
+
*/
|
|
16692
|
+
get DefaultCompactPromptID() {
|
|
16693
|
+
return this.Get('DefaultCompactPromptID');
|
|
16694
|
+
}
|
|
16695
|
+
set DefaultCompactPromptID(value) {
|
|
16696
|
+
this.Set('DefaultCompactPromptID', value);
|
|
16697
|
+
}
|
|
16698
|
+
/**
|
|
16528
16699
|
* * Field Name: Category
|
|
16529
16700
|
* * Display Name: Category
|
|
16530
16701
|
* * SQL Data Type: nvarchar(255)
|
|
@@ -16549,6 +16720,14 @@ let ActionEntity = class ActionEntity extends core_1.BaseEntity {
|
|
|
16549
16720
|
return this.Get('Parent');
|
|
16550
16721
|
}
|
|
16551
16722
|
/**
|
|
16723
|
+
* * Field Name: DefaultCompactPrompt
|
|
16724
|
+
* * Display Name: Default Compact Prompt
|
|
16725
|
+
* * SQL Data Type: nvarchar(255)
|
|
16726
|
+
*/
|
|
16727
|
+
get DefaultCompactPrompt() {
|
|
16728
|
+
return this.Get('DefaultCompactPrompt');
|
|
16729
|
+
}
|
|
16730
|
+
/**
|
|
16552
16731
|
* * Field Name: RootParentID
|
|
16553
16732
|
* * Display Name: Root Parent ID
|
|
16554
16733
|
* * SQL Data Type: uniqueidentifier
|
|
@@ -16869,6 +17048,77 @@ let AIAgentActionEntity = class AIAgentActionEntity extends core_1.BaseEntity {
|
|
|
16869
17048
|
this.Set('MaxExecutionsPerRun', value);
|
|
16870
17049
|
}
|
|
16871
17050
|
/**
|
|
17051
|
+
* * Field Name: ResultExpirationTurns
|
|
17052
|
+
* * Display Name: Result Expiration Turns
|
|
17053
|
+
* * SQL Data Type: int
|
|
17054
|
+
* * Description: Number of conversation turns before action results expire from conversation context. NULL = never expire (default). 0 = expire immediately after next turn.
|
|
17055
|
+
*/
|
|
17056
|
+
get ResultExpirationTurns() {
|
|
17057
|
+
return this.Get('ResultExpirationTurns');
|
|
17058
|
+
}
|
|
17059
|
+
set ResultExpirationTurns(value) {
|
|
17060
|
+
this.Set('ResultExpirationTurns', value);
|
|
17061
|
+
}
|
|
17062
|
+
/**
|
|
17063
|
+
* * Field Name: ResultExpirationMode
|
|
17064
|
+
* * Display Name: Result Expiration Mode
|
|
17065
|
+
* * SQL Data Type: nvarchar(20)
|
|
17066
|
+
* * Default Value: None
|
|
17067
|
+
* * Value List Type: List
|
|
17068
|
+
* * Possible Values
|
|
17069
|
+
* * Remove
|
|
17070
|
+
* * None
|
|
17071
|
+
* * Compact
|
|
17072
|
+
* * Description: How to handle expired action results: None (no expiration, default), Remove (delete message entirely), Compact (reduce size via CompactMode while preserving key information).
|
|
17073
|
+
*/
|
|
17074
|
+
get ResultExpirationMode() {
|
|
17075
|
+
return this.Get('ResultExpirationMode');
|
|
17076
|
+
}
|
|
17077
|
+
set ResultExpirationMode(value) {
|
|
17078
|
+
this.Set('ResultExpirationMode', value);
|
|
17079
|
+
}
|
|
17080
|
+
/**
|
|
17081
|
+
* * Field Name: CompactMode
|
|
17082
|
+
* * Display Name: Compact Mode
|
|
17083
|
+
* * SQL Data Type: nvarchar(20)
|
|
17084
|
+
* * Value List Type: List
|
|
17085
|
+
* * Possible Values
|
|
17086
|
+
* * AI Summary
|
|
17087
|
+
* * First N Chars
|
|
17088
|
+
* * Description: How to compact results when ResultExpirationMode=Compact: FirstNChars (truncate to CompactLength characters, fast and free), AISummary (use LLM to intelligently summarize with CompactPromptID or Action.DefaultCompactPromptID).
|
|
17089
|
+
*/
|
|
17090
|
+
get CompactMode() {
|
|
17091
|
+
return this.Get('CompactMode');
|
|
17092
|
+
}
|
|
17093
|
+
set CompactMode(value) {
|
|
17094
|
+
this.Set('CompactMode', value);
|
|
17095
|
+
}
|
|
17096
|
+
/**
|
|
17097
|
+
* * Field Name: CompactLength
|
|
17098
|
+
* * Display Name: Compact Length
|
|
17099
|
+
* * SQL Data Type: int
|
|
17100
|
+
* * Description: Number of characters to keep when CompactMode=FirstNChars. Required when CompactMode is FirstNChars, ignored otherwise.
|
|
17101
|
+
*/
|
|
17102
|
+
get CompactLength() {
|
|
17103
|
+
return this.Get('CompactLength');
|
|
17104
|
+
}
|
|
17105
|
+
set CompactLength(value) {
|
|
17106
|
+
this.Set('CompactLength', value);
|
|
17107
|
+
}
|
|
17108
|
+
/**
|
|
17109
|
+
* * Field Name: CompactPromptID
|
|
17110
|
+
* * Display Name: Compact Prompt ID
|
|
17111
|
+
* * SQL Data Type: uniqueidentifier
|
|
17112
|
+
* * Related Entity/Foreign Key: AI Prompts (vwAIPrompts.ID)
|
|
17113
|
+
* * Description: Optional override for AI summarization prompt when CompactMode=AISummary. Lookup hierarchy: this field -> Action.DefaultCompactPromptID -> system default. Allows agent-specific summarization focus (e.g., technical vs. marketing perspective).
|
|
17114
|
+
*/
|
|
17115
|
+
get CompactPromptID() {
|
|
17116
|
+
return this.Get('CompactPromptID');
|
|
17117
|
+
}
|
|
17118
|
+
set CompactPromptID(value) {
|
|
17119
|
+
this.Set('CompactPromptID', value);
|
|
17120
|
+
}
|
|
17121
|
+
/**
|
|
16872
17122
|
* * Field Name: Agent
|
|
16873
17123
|
* * Display Name: Agent
|
|
16874
17124
|
* * SQL Data Type: nvarchar(255)
|
|
@@ -16884,6 +17134,14 @@ let AIAgentActionEntity = class AIAgentActionEntity extends core_1.BaseEntity {
|
|
|
16884
17134
|
get Action() {
|
|
16885
17135
|
return this.Get('Action');
|
|
16886
17136
|
}
|
|
17137
|
+
/**
|
|
17138
|
+
* * Field Name: CompactPrompt
|
|
17139
|
+
* * Display Name: Compact Prompt
|
|
17140
|
+
* * SQL Data Type: nvarchar(255)
|
|
17141
|
+
*/
|
|
17142
|
+
get CompactPrompt() {
|
|
17143
|
+
return this.Get('CompactPrompt');
|
|
17144
|
+
}
|
|
16887
17145
|
};
|
|
16888
17146
|
exports.AIAgentActionEntity = AIAgentActionEntity;
|
|
16889
17147
|
exports.AIAgentActionEntity = AIAgentActionEntity = __decorate([
|
|
@@ -18236,6 +18494,24 @@ if this limit is exceeded.
|
|
|
18236
18494
|
this.Set('OwnerUserID', value);
|
|
18237
18495
|
}
|
|
18238
18496
|
/**
|
|
18497
|
+
* * Field Name: InvocationMode
|
|
18498
|
+
* * Display Name: Invocation Mode
|
|
18499
|
+
* * SQL Data Type: nvarchar(20)
|
|
18500
|
+
* * Default Value: Any
|
|
18501
|
+
* * Value List Type: List
|
|
18502
|
+
* * Possible Values
|
|
18503
|
+
* * Sub-Agent
|
|
18504
|
+
* * Any
|
|
18505
|
+
* * Top-Level
|
|
18506
|
+
* * Description: Controls how the agent can be invoked: Any (default - can be top-level or sub-agent), Top-Level (only callable as primary agent), Sub-Agent (only callable as sub-agent). Used to filter available agents in tools like Sage.
|
|
18507
|
+
*/
|
|
18508
|
+
get InvocationMode() {
|
|
18509
|
+
return this.Get('InvocationMode');
|
|
18510
|
+
}
|
|
18511
|
+
set InvocationMode(value) {
|
|
18512
|
+
this.Set('InvocationMode', value);
|
|
18513
|
+
}
|
|
18514
|
+
/**
|
|
18239
18515
|
* * Field Name: Parent
|
|
18240
18516
|
* * Display Name: Parent
|
|
18241
18517
|
* * SQL Data Type: nvarchar(255)
|
|
@@ -24604,6 +24880,18 @@ let ConversationDetailEntity = class ConversationDetailEntity extends core_1.Bas
|
|
|
24604
24880
|
this.Set('Status', value);
|
|
24605
24881
|
}
|
|
24606
24882
|
/**
|
|
24883
|
+
* * Field Name: SuggestedResponses
|
|
24884
|
+
* * Display Name: Suggested Responses
|
|
24885
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
24886
|
+
* * Description: JSON array of suggested responses that can be displayed to the user for quick replies. Each response object contains: text (display text), allowInput (boolean), iconClass (optional Font Awesome class), and data (optional payload).
|
|
24887
|
+
*/
|
|
24888
|
+
get SuggestedResponses() {
|
|
24889
|
+
return this.Get('SuggestedResponses');
|
|
24890
|
+
}
|
|
24891
|
+
set SuggestedResponses(value) {
|
|
24892
|
+
this.Set('SuggestedResponses', value);
|
|
24893
|
+
}
|
|
24894
|
+
/**
|
|
24607
24895
|
* * Field Name: Conversation
|
|
24608
24896
|
* * Display Name: Conversation
|
|
24609
24897
|
* * SQL Data Type: nvarchar(255)
|
|
@@ -34454,6 +34742,30 @@ let AIAgentRelationshipEntity = class AIAgentRelationshipEntity extends core_1.B
|
|
|
34454
34742
|
this.Set('SubAgentOutputMapping', value);
|
|
34455
34743
|
}
|
|
34456
34744
|
/**
|
|
34745
|
+
* * Field Name: SubAgentInputMapping
|
|
34746
|
+
* * Display Name: Sub Agent Input Mapping
|
|
34747
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
34748
|
+
* * Description: JSON mapping of parent payload paths to sub-agent initial payload paths. Enables structural data transfer from parent to related sub-agent. Format: {"parentPath": "subAgentPath", "parent.nested": "subAgent.field"}. Example: {"searchQuery": "query", "maxResults": "limit"}. If null, sub-agent starts with empty payload (default behavior).
|
|
34749
|
+
*/
|
|
34750
|
+
get SubAgentInputMapping() {
|
|
34751
|
+
return this.Get('SubAgentInputMapping');
|
|
34752
|
+
}
|
|
34753
|
+
set SubAgentInputMapping(value) {
|
|
34754
|
+
this.Set('SubAgentInputMapping', value);
|
|
34755
|
+
}
|
|
34756
|
+
/**
|
|
34757
|
+
* * Field Name: SubAgentContextPaths
|
|
34758
|
+
* * Display Name: Sub Agent Context Paths
|
|
34759
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
34760
|
+
* * Description: JSON array of parent payload paths to send as LLM context to related sub-agent. Sub-agent receives this data in a formatted context message before its task message. Format: ["path1", "path2.nested", "path3.*", "*"]. Use "*" to send entire parent payload. Example: ["userPreferences", "priorFindings.summary", "sources[*]"]. If null, no parent context is sent (default behavior).
|
|
34761
|
+
*/
|
|
34762
|
+
get SubAgentContextPaths() {
|
|
34763
|
+
return this.Get('SubAgentContextPaths');
|
|
34764
|
+
}
|
|
34765
|
+
set SubAgentContextPaths(value) {
|
|
34766
|
+
this.Set('SubAgentContextPaths', value);
|
|
34767
|
+
}
|
|
34768
|
+
/**
|
|
34457
34769
|
* * Field Name: Agent
|
|
34458
34770
|
* * Display Name: Agent
|
|
34459
34771
|
* * SQL Data Type: nvarchar(255)
|
|
@@ -39961,6 +40273,182 @@ exports.CollectionArtifactEntity = CollectionArtifactEntity;
|
|
|
39961
40273
|
exports.CollectionArtifactEntity = CollectionArtifactEntity = __decorate([
|
|
39962
40274
|
(0, global_1.RegisterClass)(core_1.BaseEntity, 'MJ: Collection Artifacts')
|
|
39963
40275
|
], CollectionArtifactEntity);
|
|
40276
|
+
/**
|
|
40277
|
+
* MJ: Collection Permissions - strongly typed entity sub-class
|
|
40278
|
+
* * Schema: __mj
|
|
40279
|
+
* * Base Table: CollectionPermission
|
|
40280
|
+
* * Base View: vwCollectionPermissions
|
|
40281
|
+
* * @description Manages sharing permissions for collections, allowing granular access control
|
|
40282
|
+
* * Primary Key: ID
|
|
40283
|
+
* @extends {BaseEntity}
|
|
40284
|
+
* @class
|
|
40285
|
+
* @public
|
|
40286
|
+
*/
|
|
40287
|
+
let CollectionPermissionEntity = class CollectionPermissionEntity extends core_1.BaseEntity {
|
|
40288
|
+
/**
|
|
40289
|
+
* Loads the MJ: Collection Permissions record from the database
|
|
40290
|
+
* @param ID: string - primary key value to load the MJ: Collection Permissions record.
|
|
40291
|
+
* @param EntityRelationshipsToLoad - (optional) the relationships to load
|
|
40292
|
+
* @returns {Promise<boolean>} - true if successful, false otherwise
|
|
40293
|
+
* @public
|
|
40294
|
+
* @async
|
|
40295
|
+
* @memberof CollectionPermissionEntity
|
|
40296
|
+
* @method
|
|
40297
|
+
* @override
|
|
40298
|
+
*/
|
|
40299
|
+
async Load(ID, EntityRelationshipsToLoad) {
|
|
40300
|
+
const compositeKey = new core_1.CompositeKey();
|
|
40301
|
+
compositeKey.KeyValuePairs.push({ FieldName: 'ID', Value: ID });
|
|
40302
|
+
return await super.InnerLoad(compositeKey, EntityRelationshipsToLoad);
|
|
40303
|
+
}
|
|
40304
|
+
/**
|
|
40305
|
+
* * Field Name: ID
|
|
40306
|
+
* * Display Name: ID
|
|
40307
|
+
* * SQL Data Type: uniqueidentifier
|
|
40308
|
+
* * Default Value: newsequentialid()
|
|
40309
|
+
*/
|
|
40310
|
+
get ID() {
|
|
40311
|
+
return this.Get('ID');
|
|
40312
|
+
}
|
|
40313
|
+
set ID(value) {
|
|
40314
|
+
this.Set('ID', value);
|
|
40315
|
+
}
|
|
40316
|
+
/**
|
|
40317
|
+
* * Field Name: CollectionID
|
|
40318
|
+
* * Display Name: Collection ID
|
|
40319
|
+
* * SQL Data Type: uniqueidentifier
|
|
40320
|
+
* * Related Entity/Foreign Key: MJ: Collections (vwCollections.ID)
|
|
40321
|
+
*/
|
|
40322
|
+
get CollectionID() {
|
|
40323
|
+
return this.Get('CollectionID');
|
|
40324
|
+
}
|
|
40325
|
+
set CollectionID(value) {
|
|
40326
|
+
this.Set('CollectionID', value);
|
|
40327
|
+
}
|
|
40328
|
+
/**
|
|
40329
|
+
* * Field Name: UserID
|
|
40330
|
+
* * Display Name: User ID
|
|
40331
|
+
* * SQL Data Type: uniqueidentifier
|
|
40332
|
+
* * Related Entity/Foreign Key: Users (vwUsers.ID)
|
|
40333
|
+
*/
|
|
40334
|
+
get UserID() {
|
|
40335
|
+
return this.Get('UserID');
|
|
40336
|
+
}
|
|
40337
|
+
set UserID(value) {
|
|
40338
|
+
this.Set('UserID', value);
|
|
40339
|
+
}
|
|
40340
|
+
/**
|
|
40341
|
+
* * Field Name: CanRead
|
|
40342
|
+
* * Display Name: Can Read
|
|
40343
|
+
* * SQL Data Type: bit
|
|
40344
|
+
* * Default Value: 1
|
|
40345
|
+
* * Description: Always 1 - users must have read permission to access a shared collection
|
|
40346
|
+
*/
|
|
40347
|
+
get CanRead() {
|
|
40348
|
+
return this.Get('CanRead');
|
|
40349
|
+
}
|
|
40350
|
+
set CanRead(value) {
|
|
40351
|
+
this.Set('CanRead', value);
|
|
40352
|
+
}
|
|
40353
|
+
/**
|
|
40354
|
+
* * Field Name: CanShare
|
|
40355
|
+
* * Display Name: Can Share
|
|
40356
|
+
* * SQL Data Type: bit
|
|
40357
|
+
* * Default Value: 0
|
|
40358
|
+
* * Description: Can share this collection with others (but cannot grant more permissions than they have)
|
|
40359
|
+
*/
|
|
40360
|
+
get CanShare() {
|
|
40361
|
+
return this.Get('CanShare');
|
|
40362
|
+
}
|
|
40363
|
+
set CanShare(value) {
|
|
40364
|
+
this.Set('CanShare', value);
|
|
40365
|
+
}
|
|
40366
|
+
/**
|
|
40367
|
+
* * Field Name: CanEdit
|
|
40368
|
+
* * Display Name: Can Edit
|
|
40369
|
+
* * SQL Data Type: bit
|
|
40370
|
+
* * Default Value: 0
|
|
40371
|
+
* * Description: Can add/remove artifacts to/from this collection
|
|
40372
|
+
*/
|
|
40373
|
+
get CanEdit() {
|
|
40374
|
+
return this.Get('CanEdit');
|
|
40375
|
+
}
|
|
40376
|
+
set CanEdit(value) {
|
|
40377
|
+
this.Set('CanEdit', value);
|
|
40378
|
+
}
|
|
40379
|
+
/**
|
|
40380
|
+
* * Field Name: CanDelete
|
|
40381
|
+
* * Display Name: Can Delete
|
|
40382
|
+
* * SQL Data Type: bit
|
|
40383
|
+
* * Default Value: 0
|
|
40384
|
+
* * Description: Can delete the collection, child collections, and artifacts
|
|
40385
|
+
*/
|
|
40386
|
+
get CanDelete() {
|
|
40387
|
+
return this.Get('CanDelete');
|
|
40388
|
+
}
|
|
40389
|
+
set CanDelete(value) {
|
|
40390
|
+
this.Set('CanDelete', value);
|
|
40391
|
+
}
|
|
40392
|
+
/**
|
|
40393
|
+
* * Field Name: SharedByUserID
|
|
40394
|
+
* * Display Name: Shared By User ID
|
|
40395
|
+
* * SQL Data Type: uniqueidentifier
|
|
40396
|
+
* * Related Entity/Foreign Key: Users (vwUsers.ID)
|
|
40397
|
+
* * Description: The user who shared this collection (NULL if shared by owner)
|
|
40398
|
+
*/
|
|
40399
|
+
get SharedByUserID() {
|
|
40400
|
+
return this.Get('SharedByUserID');
|
|
40401
|
+
}
|
|
40402
|
+
set SharedByUserID(value) {
|
|
40403
|
+
this.Set('SharedByUserID', value);
|
|
40404
|
+
}
|
|
40405
|
+
/**
|
|
40406
|
+
* * Field Name: __mj_CreatedAt
|
|
40407
|
+
* * Display Name: Created At
|
|
40408
|
+
* * SQL Data Type: datetimeoffset
|
|
40409
|
+
* * Default Value: getutcdate()
|
|
40410
|
+
*/
|
|
40411
|
+
get __mj_CreatedAt() {
|
|
40412
|
+
return this.Get('__mj_CreatedAt');
|
|
40413
|
+
}
|
|
40414
|
+
/**
|
|
40415
|
+
* * Field Name: __mj_UpdatedAt
|
|
40416
|
+
* * Display Name: Updated At
|
|
40417
|
+
* * SQL Data Type: datetimeoffset
|
|
40418
|
+
* * Default Value: getutcdate()
|
|
40419
|
+
*/
|
|
40420
|
+
get __mj_UpdatedAt() {
|
|
40421
|
+
return this.Get('__mj_UpdatedAt');
|
|
40422
|
+
}
|
|
40423
|
+
/**
|
|
40424
|
+
* * Field Name: Collection
|
|
40425
|
+
* * Display Name: Collection
|
|
40426
|
+
* * SQL Data Type: nvarchar(255)
|
|
40427
|
+
*/
|
|
40428
|
+
get Collection() {
|
|
40429
|
+
return this.Get('Collection');
|
|
40430
|
+
}
|
|
40431
|
+
/**
|
|
40432
|
+
* * Field Name: User
|
|
40433
|
+
* * Display Name: User
|
|
40434
|
+
* * SQL Data Type: nvarchar(100)
|
|
40435
|
+
*/
|
|
40436
|
+
get User() {
|
|
40437
|
+
return this.Get('User');
|
|
40438
|
+
}
|
|
40439
|
+
/**
|
|
40440
|
+
* * Field Name: SharedByUser
|
|
40441
|
+
* * Display Name: Shared By User
|
|
40442
|
+
* * SQL Data Type: nvarchar(100)
|
|
40443
|
+
*/
|
|
40444
|
+
get SharedByUser() {
|
|
40445
|
+
return this.Get('SharedByUser');
|
|
40446
|
+
}
|
|
40447
|
+
};
|
|
40448
|
+
exports.CollectionPermissionEntity = CollectionPermissionEntity;
|
|
40449
|
+
exports.CollectionPermissionEntity = CollectionPermissionEntity = __decorate([
|
|
40450
|
+
(0, global_1.RegisterClass)(core_1.BaseEntity, 'MJ: Collection Permissions')
|
|
40451
|
+
], CollectionPermissionEntity);
|
|
39964
40452
|
/**
|
|
39965
40453
|
* MJ: Collections - strongly typed entity sub-class
|
|
39966
40454
|
* * Schema: __mj
|
|
@@ -40105,6 +40593,19 @@ let CollectionEntity = class CollectionEntity extends core_1.BaseEntity {
|
|
|
40105
40593
|
return this.Get('__mj_UpdatedAt');
|
|
40106
40594
|
}
|
|
40107
40595
|
/**
|
|
40596
|
+
* * Field Name: OwnerID
|
|
40597
|
+
* * Display Name: Owner ID
|
|
40598
|
+
* * SQL Data Type: uniqueidentifier
|
|
40599
|
+
* * Related Entity/Foreign Key: Users (vwUsers.ID)
|
|
40600
|
+
* * Description: The user who owns this collection and has full permissions
|
|
40601
|
+
*/
|
|
40602
|
+
get OwnerID() {
|
|
40603
|
+
return this.Get('OwnerID');
|
|
40604
|
+
}
|
|
40605
|
+
set OwnerID(value) {
|
|
40606
|
+
this.Set('OwnerID', value);
|
|
40607
|
+
}
|
|
40608
|
+
/**
|
|
40108
40609
|
* * Field Name: Environment
|
|
40109
40610
|
* * Display Name: Environment
|
|
40110
40611
|
* * SQL Data Type: nvarchar(255)
|
|
@@ -40121,6 +40622,14 @@ let CollectionEntity = class CollectionEntity extends core_1.BaseEntity {
|
|
|
40121
40622
|
return this.Get('Parent');
|
|
40122
40623
|
}
|
|
40123
40624
|
/**
|
|
40625
|
+
* * Field Name: Owner
|
|
40626
|
+
* * Display Name: Owner
|
|
40627
|
+
* * SQL Data Type: nvarchar(100)
|
|
40628
|
+
*/
|
|
40629
|
+
get Owner() {
|
|
40630
|
+
return this.Get('Owner');
|
|
40631
|
+
}
|
|
40632
|
+
/**
|
|
40124
40633
|
* * Field Name: RootParentID
|
|
40125
40634
|
* * Display Name: Root Parent ID
|
|
40126
40635
|
* * SQL Data Type: uniqueidentifier
|