@memberjunction/core-entities 2.131.0 → 2.133.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/custom/ListDetailEntityExtended.d.ts +42 -0
- package/dist/custom/ListDetailEntityExtended.d.ts.map +1 -1
- package/dist/custom/ListDetailEntityExtended.js +124 -0
- package/dist/custom/ListDetailEntityExtended.js.map +1 -1
- package/dist/custom/UserViewEntity.d.ts +146 -9
- package/dist/custom/UserViewEntity.d.ts.map +1 -1
- package/dist/custom/UserViewEntity.js +71 -16
- package/dist/custom/UserViewEntity.js.map +1 -1
- package/dist/engines/UserInfoEngine.d.ts +26 -0
- package/dist/engines/UserInfoEngine.d.ts.map +1 -1
- package/dist/engines/UserInfoEngine.js +95 -0
- package/dist/engines/UserInfoEngine.js.map +1 -1
- package/dist/engines/UserViewEngine.d.ts +133 -0
- package/dist/engines/UserViewEngine.d.ts.map +1 -0
- package/dist/engines/UserViewEngine.js +244 -0
- package/dist/engines/UserViewEngine.js.map +1 -0
- package/dist/generated/entity_subclasses.d.ts +317 -6
- package/dist/generated/entity_subclasses.d.ts.map +1 -1
- package/dist/generated/entity_subclasses.js +460 -7
- package/dist/generated/entity_subclasses.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
|
@@ -9,13 +9,13 @@ 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
11
|
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.ArtifactUseSchema = exports.ArtifactTypeSchema = exports.ArtifactPermissionSchema = exports.AIVendorSchema = exports.AIVendorTypeSchema = exports.AIVendorTypeDefinitionSchema = exports.AIPromptRunSchema = exports.AIPromptModelSchema = exports.AIModelVendorSchema = exports.AIModelPriceUnitTypeSchema = exports.AIModelPriceTypeSchema = exports.AIModelModalitySchema = exports.AIModelCostSchema = exports.AIModelArchitectureSchema = exports.AIModalitySchema = exports.AICredentialBindingSchema = exports.AIConfigurationSchema = exports.AIConfigurationParamSchema = exports.AIArchitectureSchema = exports.AIAgentTypeSchema = exports.AIAgentStepSchema = exports.AIAgentStepPathSchema = exports.AIAgentRunSchema = exports.AIAgentRunStepSchema = exports.AIAgentRelationshipSchema = exports.AIAgentPromptSchema = exports.AIAgentPermissionSchema = exports.AIAgentModalitySchema = exports.AIAgentExampleSchema = exports.AIAgentDataSourceSchema = exports.AIAgentConfigurationSchema = exports.AIAgentArtifactTypeSchema = exports.AccessControlRuleSchema = exports.ListSchema = exports.ListDetailSchema = exports.ListCategorySchema = exports.LibraryItemSchema = exports.LibrarySchema = void 0;
|
|
12
|
-
exports.
|
|
13
|
-
exports.
|
|
14
|
-
exports.
|
|
15
|
-
exports.
|
|
16
|
-
exports.
|
|
17
|
-
exports.
|
|
18
|
-
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 = void 0;
|
|
12
|
+
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.UserSettingSchema = exports.TestSchema = exports.TestTypeSchema = exports.TestSuiteSchema = exports.TestSuiteTestSchema = exports.TestSuiteRunSchema = exports.TestRunSchema = exports.TestRunFeedbackSchema = exports.TestRubricSchema = exports.TaskSchema = exports.TaskTypeSchema = exports.TaskDependencySchema = exports.ScheduledJobSchema = exports.ScheduledJobTypeSchema = exports.ScheduledJobRunSchema = exports.ReportVersionSchema = exports.ReportUserStateSchema = exports.RecordLinkSchema = exports.QueryParameterSchema = exports.PublicLinkSchema = exports.ProjectSchema = exports.ListShareSchema = exports.ListInvitationSchema = exports.EnvironmentSchema = exports.EncryptionKeySchema = exports.EncryptionKeySourceSchema = exports.EncryptionAlgorithmSchema = exports.DashboardUserStateSchema = exports.DashboardUserPreferenceSchema = exports.CredentialSchema = exports.CredentialTypeSchema = exports.CredentialCategorySchema = exports.ConversationDetailRatingSchema = exports.ConversationDetailAttachmentSchema = exports.ConversationDetailArtifactSchema = exports.ConversationArtifactSchema = exports.ConversationArtifactVersionSchema = void 0;
|
|
13
|
+
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 = 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 = void 0;
|
|
14
|
+
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 = 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 = void 0;
|
|
15
|
+
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 = 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 = void 0;
|
|
16
|
+
exports.CredentialTypeEntity = exports.CredentialCategoryEntity = exports.ConversationDetailRatingEntity = exports.ConversationDetailAttachmentEntity = exports.ConversationDetailArtifactEntity = exports.ConversationArtifactEntity = exports.ConversationArtifactVersionEntity = exports.ConversationArtifactPermissionEntity = exports.ComponentEntity = exports.ComponentRegistryEntity = exports.ComponentLibraryLinkEntity = exports.ComponentLibraryEntity = exports.ComponentDependencyEntity = exports.CollectionEntity = exports.CollectionPermissionEntity = exports.CollectionArtifactEntity = exports.ArtifactEntity = exports.ArtifactVersionEntity = exports.ArtifactVersionAttributeEntity = exports.ArtifactUseEntity = exports.ArtifactTypeEntity = exports.ArtifactPermissionEntity = exports.AIVendorEntity = exports.AIVendorTypeEntity = exports.AIVendorTypeDefinitionEntity = exports.AIPromptRunEntity = exports.AIPromptModelEntity = exports.AIModelVendorEntity = exports.AIModelPriceUnitTypeEntity = exports.AIModelPriceTypeEntity = exports.AIModelModalityEntity = exports.AIModelCostEntity = exports.AIModelArchitectureEntity = exports.AIModalityEntity = exports.AICredentialBindingEntity = exports.AIConfigurationEntity = exports.AIConfigurationParamEntity = exports.AIArchitectureEntity = exports.AIAgentTypeEntity = exports.AIAgentStepEntity = exports.AIAgentStepPathEntity = exports.AIAgentRunEntity = exports.AIAgentRunStepEntity = exports.AIAgentRelationshipEntity = exports.AIAgentPromptEntity = exports.AIAgentPermissionEntity = exports.AIAgentModalityEntity = exports.AIAgentExampleEntity = exports.AIAgentDataSourceEntity = exports.AIAgentConfigurationEntity = void 0;
|
|
17
|
+
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.UserSettingEntity = exports.TestEntity = exports.TestTypeEntity = exports.TestSuiteEntity = exports.TestSuiteTestEntity = exports.TestSuiteRunEntity = exports.TestRunEntity = exports.TestRunFeedbackEntity = exports.TestRubricEntity = 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.ListShareEntity = exports.ListInvitationEntity = exports.EnvironmentEntity = exports.EncryptionKeyEntity = exports.EncryptionKeySourceEntity = exports.EncryptionAlgorithmEntity = exports.DashboardUserStateEntity = exports.DashboardUserPreferenceEntity = exports.CredentialEntity = void 0;
|
|
18
|
+
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 = exports.ReportEntity = exports.ReportSnapshotEntity = void 0;
|
|
19
19
|
const core_1 = require("@memberjunction/core");
|
|
20
20
|
const global_1 = require("@memberjunction/global");
|
|
21
21
|
const zod_1 = require("zod");
|
|
@@ -12933,6 +12933,143 @@ exports.EnvironmentSchema = zod_1.z.object({
|
|
|
12933
12933
|
* * SQL Data Type: datetimeoffset
|
|
12934
12934
|
* * Default Value: getutcdate()`),
|
|
12935
12935
|
});
|
|
12936
|
+
/**
|
|
12937
|
+
* zod schema definition for the entity MJ: List Invitations
|
|
12938
|
+
*/
|
|
12939
|
+
exports.ListInvitationSchema = zod_1.z.object({
|
|
12940
|
+
ID: zod_1.z.string().describe(`
|
|
12941
|
+
* * Field Name: ID
|
|
12942
|
+
* * Display Name: ID
|
|
12943
|
+
* * SQL Data Type: uniqueidentifier
|
|
12944
|
+
* * Default Value: newsequentialid()
|
|
12945
|
+
* * Description: Unique identifier for the invitation.`),
|
|
12946
|
+
ListID: zod_1.z.string().describe(`
|
|
12947
|
+
* * Field Name: ListID
|
|
12948
|
+
* * Display Name: List
|
|
12949
|
+
* * SQL Data Type: uniqueidentifier
|
|
12950
|
+
* * Related Entity/Foreign Key: Lists (vwLists.ID)
|
|
12951
|
+
* * Description: The list the user is being invited to.`),
|
|
12952
|
+
Email: zod_1.z.string().describe(`
|
|
12953
|
+
* * Field Name: Email
|
|
12954
|
+
* * Display Name: Email Address
|
|
12955
|
+
* * SQL Data Type: nvarchar(255)
|
|
12956
|
+
* * Description: Email address of the invitee.`),
|
|
12957
|
+
Role: zod_1.z.union([zod_1.z.literal('Editor'), zod_1.z.literal('Viewer')]).describe(`
|
|
12958
|
+
* * Field Name: Role
|
|
12959
|
+
* * Display Name: Role
|
|
12960
|
+
* * SQL Data Type: nvarchar(50)
|
|
12961
|
+
* * Value List Type: List
|
|
12962
|
+
* * Possible Values
|
|
12963
|
+
* * Editor
|
|
12964
|
+
* * Viewer
|
|
12965
|
+
* * Description: The role to be assigned upon acceptance (Editor or Viewer).`),
|
|
12966
|
+
Token: zod_1.z.string().describe(`
|
|
12967
|
+
* * Field Name: Token
|
|
12968
|
+
* * Display Name: Token
|
|
12969
|
+
* * SQL Data Type: nvarchar(100)
|
|
12970
|
+
* * Description: Security token for validating the invitation.`),
|
|
12971
|
+
ExpiresAt: zod_1.z.date().describe(`
|
|
12972
|
+
* * Field Name: ExpiresAt
|
|
12973
|
+
* * Display Name: Expires At
|
|
12974
|
+
* * SQL Data Type: datetime
|
|
12975
|
+
* * Description: When the invitation expires.`),
|
|
12976
|
+
CreatedByUserID: zod_1.z.string().describe(`
|
|
12977
|
+
* * Field Name: CreatedByUserID
|
|
12978
|
+
* * Display Name: Created By User ID
|
|
12979
|
+
* * SQL Data Type: uniqueidentifier
|
|
12980
|
+
* * Related Entity/Foreign Key: Users (vwUsers.ID)
|
|
12981
|
+
* * Description: The user who created the invitation.`),
|
|
12982
|
+
Status: zod_1.z.union([zod_1.z.literal('Accepted'), zod_1.z.literal('Expired'), zod_1.z.literal('Pending'), zod_1.z.literal('Revoked')]).describe(`
|
|
12983
|
+
* * Field Name: Status
|
|
12984
|
+
* * Display Name: Status
|
|
12985
|
+
* * SQL Data Type: nvarchar(20)
|
|
12986
|
+
* * Default Value: Pending
|
|
12987
|
+
* * Value List Type: List
|
|
12988
|
+
* * Possible Values
|
|
12989
|
+
* * Accepted
|
|
12990
|
+
* * Expired
|
|
12991
|
+
* * Pending
|
|
12992
|
+
* * Revoked
|
|
12993
|
+
* * Description: Status of the invitation (Pending, Accepted, Expired, Revoked).`),
|
|
12994
|
+
__mj_CreatedAt: zod_1.z.date().describe(`
|
|
12995
|
+
* * Field Name: __mj_CreatedAt
|
|
12996
|
+
* * Display Name: Created At
|
|
12997
|
+
* * SQL Data Type: datetimeoffset
|
|
12998
|
+
* * Default Value: getutcdate()`),
|
|
12999
|
+
__mj_UpdatedAt: zod_1.z.date().describe(`
|
|
13000
|
+
* * Field Name: __mj_UpdatedAt
|
|
13001
|
+
* * Display Name: Updated At
|
|
13002
|
+
* * SQL Data Type: datetimeoffset
|
|
13003
|
+
* * Default Value: getutcdate()`),
|
|
13004
|
+
List: zod_1.z.string().describe(`
|
|
13005
|
+
* * Field Name: List
|
|
13006
|
+
* * Display Name: List Name
|
|
13007
|
+
* * SQL Data Type: nvarchar(100)`),
|
|
13008
|
+
CreatedByUser: zod_1.z.string().describe(`
|
|
13009
|
+
* * Field Name: CreatedByUser
|
|
13010
|
+
* * Display Name: Created By User
|
|
13011
|
+
* * SQL Data Type: nvarchar(100)`),
|
|
13012
|
+
});
|
|
13013
|
+
/**
|
|
13014
|
+
* zod schema definition for the entity MJ: List Shares
|
|
13015
|
+
*/
|
|
13016
|
+
exports.ListShareSchema = zod_1.z.object({
|
|
13017
|
+
ID: zod_1.z.string().describe(`
|
|
13018
|
+
* * Field Name: ID
|
|
13019
|
+
* * Display Name: ID
|
|
13020
|
+
* * SQL Data Type: uniqueidentifier
|
|
13021
|
+
* * Default Value: newsequentialid()
|
|
13022
|
+
* * Description: Unique identifier for the share record.`),
|
|
13023
|
+
ListID: zod_1.z.string().describe(`
|
|
13024
|
+
* * Field Name: ListID
|
|
13025
|
+
* * Display Name: List
|
|
13026
|
+
* * SQL Data Type: uniqueidentifier
|
|
13027
|
+
* * Related Entity/Foreign Key: Lists (vwLists.ID)
|
|
13028
|
+
* * Description: The list being shared.`),
|
|
13029
|
+
UserID: zod_1.z.string().describe(`
|
|
13030
|
+
* * Field Name: UserID
|
|
13031
|
+
* * Display Name: User
|
|
13032
|
+
* * SQL Data Type: uniqueidentifier
|
|
13033
|
+
* * Related Entity/Foreign Key: Users (vwUsers.ID)
|
|
13034
|
+
* * Description: The user receiving access to the list.`),
|
|
13035
|
+
Role: zod_1.z.union([zod_1.z.literal('Editor'), zod_1.z.literal('Viewer')]).describe(`
|
|
13036
|
+
* * Field Name: Role
|
|
13037
|
+
* * Display Name: Role
|
|
13038
|
+
* * SQL Data Type: nvarchar(50)
|
|
13039
|
+
* * Value List Type: List
|
|
13040
|
+
* * Possible Values
|
|
13041
|
+
* * Editor
|
|
13042
|
+
* * Viewer
|
|
13043
|
+
* * Description: The permission level granted (Editor or Viewer).`),
|
|
13044
|
+
Status: zod_1.z.union([zod_1.z.literal('Active'), zod_1.z.literal('Pending')]).describe(`
|
|
13045
|
+
* * Field Name: Status
|
|
13046
|
+
* * Display Name: Status
|
|
13047
|
+
* * SQL Data Type: nvarchar(20)
|
|
13048
|
+
* * Default Value: Active
|
|
13049
|
+
* * Value List Type: List
|
|
13050
|
+
* * Possible Values
|
|
13051
|
+
* * Active
|
|
13052
|
+
* * Pending
|
|
13053
|
+
* * Description: Current status of the share (Active or Pending).`),
|
|
13054
|
+
__mj_CreatedAt: zod_1.z.date().describe(`
|
|
13055
|
+
* * Field Name: __mj_CreatedAt
|
|
13056
|
+
* * Display Name: Created At
|
|
13057
|
+
* * SQL Data Type: datetimeoffset
|
|
13058
|
+
* * Default Value: getutcdate()`),
|
|
13059
|
+
__mj_UpdatedAt: zod_1.z.date().describe(`
|
|
13060
|
+
* * Field Name: __mj_UpdatedAt
|
|
13061
|
+
* * Display Name: Updated At
|
|
13062
|
+
* * SQL Data Type: datetimeoffset
|
|
13063
|
+
* * Default Value: getutcdate()`),
|
|
13064
|
+
List: zod_1.z.string().describe(`
|
|
13065
|
+
* * Field Name: List
|
|
13066
|
+
* * Display Name: List Name
|
|
13067
|
+
* * SQL Data Type: nvarchar(100)`),
|
|
13068
|
+
User: zod_1.z.string().describe(`
|
|
13069
|
+
* * Field Name: User
|
|
13070
|
+
* * Display Name: User Name
|
|
13071
|
+
* * SQL Data Type: nvarchar(100)`),
|
|
13072
|
+
});
|
|
12936
13073
|
/**
|
|
12937
13074
|
* zod schema definition for the entity MJ: Projects
|
|
12938
13075
|
*/
|
|
@@ -50698,6 +50835,322 @@ exports.EnvironmentEntity = EnvironmentEntity;
|
|
|
50698
50835
|
exports.EnvironmentEntity = EnvironmentEntity = __decorate([
|
|
50699
50836
|
(0, global_1.RegisterClass)(core_1.BaseEntity, 'MJ: Environments')
|
|
50700
50837
|
], EnvironmentEntity);
|
|
50838
|
+
/**
|
|
50839
|
+
* MJ: List Invitations - strongly typed entity sub-class
|
|
50840
|
+
* * Schema: __mj
|
|
50841
|
+
* * Base Table: ListInvitation
|
|
50842
|
+
* * Base View: vwListInvitations
|
|
50843
|
+
* * @description Tracks pending invitations for users to access lists, including external users via email.
|
|
50844
|
+
* * Primary Key: ID
|
|
50845
|
+
* @extends {BaseEntity}
|
|
50846
|
+
* @class
|
|
50847
|
+
* @public
|
|
50848
|
+
*/
|
|
50849
|
+
let ListInvitationEntity = class ListInvitationEntity extends core_1.BaseEntity {
|
|
50850
|
+
/**
|
|
50851
|
+
* Loads the MJ: List Invitations record from the database
|
|
50852
|
+
* @param ID: string - primary key value to load the MJ: List Invitations record.
|
|
50853
|
+
* @param EntityRelationshipsToLoad - (optional) the relationships to load
|
|
50854
|
+
* @returns {Promise<boolean>} - true if successful, false otherwise
|
|
50855
|
+
* @public
|
|
50856
|
+
* @async
|
|
50857
|
+
* @memberof ListInvitationEntity
|
|
50858
|
+
* @method
|
|
50859
|
+
* @override
|
|
50860
|
+
*/
|
|
50861
|
+
async Load(ID, EntityRelationshipsToLoad) {
|
|
50862
|
+
const compositeKey = new core_1.CompositeKey();
|
|
50863
|
+
compositeKey.KeyValuePairs.push({ FieldName: 'ID', Value: ID });
|
|
50864
|
+
return await super.InnerLoad(compositeKey, EntityRelationshipsToLoad);
|
|
50865
|
+
}
|
|
50866
|
+
/**
|
|
50867
|
+
* * Field Name: ID
|
|
50868
|
+
* * Display Name: ID
|
|
50869
|
+
* * SQL Data Type: uniqueidentifier
|
|
50870
|
+
* * Default Value: newsequentialid()
|
|
50871
|
+
* * Description: Unique identifier for the invitation.
|
|
50872
|
+
*/
|
|
50873
|
+
get ID() {
|
|
50874
|
+
return this.Get('ID');
|
|
50875
|
+
}
|
|
50876
|
+
set ID(value) {
|
|
50877
|
+
this.Set('ID', value);
|
|
50878
|
+
}
|
|
50879
|
+
/**
|
|
50880
|
+
* * Field Name: ListID
|
|
50881
|
+
* * Display Name: List
|
|
50882
|
+
* * SQL Data Type: uniqueidentifier
|
|
50883
|
+
* * Related Entity/Foreign Key: Lists (vwLists.ID)
|
|
50884
|
+
* * Description: The list the user is being invited to.
|
|
50885
|
+
*/
|
|
50886
|
+
get ListID() {
|
|
50887
|
+
return this.Get('ListID');
|
|
50888
|
+
}
|
|
50889
|
+
set ListID(value) {
|
|
50890
|
+
this.Set('ListID', value);
|
|
50891
|
+
}
|
|
50892
|
+
/**
|
|
50893
|
+
* * Field Name: Email
|
|
50894
|
+
* * Display Name: Email Address
|
|
50895
|
+
* * SQL Data Type: nvarchar(255)
|
|
50896
|
+
* * Description: Email address of the invitee.
|
|
50897
|
+
*/
|
|
50898
|
+
get Email() {
|
|
50899
|
+
return this.Get('Email');
|
|
50900
|
+
}
|
|
50901
|
+
set Email(value) {
|
|
50902
|
+
this.Set('Email', value);
|
|
50903
|
+
}
|
|
50904
|
+
/**
|
|
50905
|
+
* * Field Name: Role
|
|
50906
|
+
* * Display Name: Role
|
|
50907
|
+
* * SQL Data Type: nvarchar(50)
|
|
50908
|
+
* * Value List Type: List
|
|
50909
|
+
* * Possible Values
|
|
50910
|
+
* * Editor
|
|
50911
|
+
* * Viewer
|
|
50912
|
+
* * Description: The role to be assigned upon acceptance (Editor or Viewer).
|
|
50913
|
+
*/
|
|
50914
|
+
get Role() {
|
|
50915
|
+
return this.Get('Role');
|
|
50916
|
+
}
|
|
50917
|
+
set Role(value) {
|
|
50918
|
+
this.Set('Role', value);
|
|
50919
|
+
}
|
|
50920
|
+
/**
|
|
50921
|
+
* * Field Name: Token
|
|
50922
|
+
* * Display Name: Token
|
|
50923
|
+
* * SQL Data Type: nvarchar(100)
|
|
50924
|
+
* * Description: Security token for validating the invitation.
|
|
50925
|
+
*/
|
|
50926
|
+
get Token() {
|
|
50927
|
+
return this.Get('Token');
|
|
50928
|
+
}
|
|
50929
|
+
set Token(value) {
|
|
50930
|
+
this.Set('Token', value);
|
|
50931
|
+
}
|
|
50932
|
+
/**
|
|
50933
|
+
* * Field Name: ExpiresAt
|
|
50934
|
+
* * Display Name: Expires At
|
|
50935
|
+
* * SQL Data Type: datetime
|
|
50936
|
+
* * Description: When the invitation expires.
|
|
50937
|
+
*/
|
|
50938
|
+
get ExpiresAt() {
|
|
50939
|
+
return this.Get('ExpiresAt');
|
|
50940
|
+
}
|
|
50941
|
+
set ExpiresAt(value) {
|
|
50942
|
+
this.Set('ExpiresAt', value);
|
|
50943
|
+
}
|
|
50944
|
+
/**
|
|
50945
|
+
* * Field Name: CreatedByUserID
|
|
50946
|
+
* * Display Name: Created By User ID
|
|
50947
|
+
* * SQL Data Type: uniqueidentifier
|
|
50948
|
+
* * Related Entity/Foreign Key: Users (vwUsers.ID)
|
|
50949
|
+
* * Description: The user who created the invitation.
|
|
50950
|
+
*/
|
|
50951
|
+
get CreatedByUserID() {
|
|
50952
|
+
return this.Get('CreatedByUserID');
|
|
50953
|
+
}
|
|
50954
|
+
set CreatedByUserID(value) {
|
|
50955
|
+
this.Set('CreatedByUserID', value);
|
|
50956
|
+
}
|
|
50957
|
+
/**
|
|
50958
|
+
* * Field Name: Status
|
|
50959
|
+
* * Display Name: Status
|
|
50960
|
+
* * SQL Data Type: nvarchar(20)
|
|
50961
|
+
* * Default Value: Pending
|
|
50962
|
+
* * Value List Type: List
|
|
50963
|
+
* * Possible Values
|
|
50964
|
+
* * Accepted
|
|
50965
|
+
* * Expired
|
|
50966
|
+
* * Pending
|
|
50967
|
+
* * Revoked
|
|
50968
|
+
* * Description: Status of the invitation (Pending, Accepted, Expired, Revoked).
|
|
50969
|
+
*/
|
|
50970
|
+
get Status() {
|
|
50971
|
+
return this.Get('Status');
|
|
50972
|
+
}
|
|
50973
|
+
set Status(value) {
|
|
50974
|
+
this.Set('Status', value);
|
|
50975
|
+
}
|
|
50976
|
+
/**
|
|
50977
|
+
* * Field Name: __mj_CreatedAt
|
|
50978
|
+
* * Display Name: Created At
|
|
50979
|
+
* * SQL Data Type: datetimeoffset
|
|
50980
|
+
* * Default Value: getutcdate()
|
|
50981
|
+
*/
|
|
50982
|
+
get __mj_CreatedAt() {
|
|
50983
|
+
return this.Get('__mj_CreatedAt');
|
|
50984
|
+
}
|
|
50985
|
+
/**
|
|
50986
|
+
* * Field Name: __mj_UpdatedAt
|
|
50987
|
+
* * Display Name: Updated At
|
|
50988
|
+
* * SQL Data Type: datetimeoffset
|
|
50989
|
+
* * Default Value: getutcdate()
|
|
50990
|
+
*/
|
|
50991
|
+
get __mj_UpdatedAt() {
|
|
50992
|
+
return this.Get('__mj_UpdatedAt');
|
|
50993
|
+
}
|
|
50994
|
+
/**
|
|
50995
|
+
* * Field Name: List
|
|
50996
|
+
* * Display Name: List Name
|
|
50997
|
+
* * SQL Data Type: nvarchar(100)
|
|
50998
|
+
*/
|
|
50999
|
+
get List() {
|
|
51000
|
+
return this.Get('List');
|
|
51001
|
+
}
|
|
51002
|
+
/**
|
|
51003
|
+
* * Field Name: CreatedByUser
|
|
51004
|
+
* * Display Name: Created By User
|
|
51005
|
+
* * SQL Data Type: nvarchar(100)
|
|
51006
|
+
*/
|
|
51007
|
+
get CreatedByUser() {
|
|
51008
|
+
return this.Get('CreatedByUser');
|
|
51009
|
+
}
|
|
51010
|
+
};
|
|
51011
|
+
exports.ListInvitationEntity = ListInvitationEntity;
|
|
51012
|
+
exports.ListInvitationEntity = ListInvitationEntity = __decorate([
|
|
51013
|
+
(0, global_1.RegisterClass)(core_1.BaseEntity, 'MJ: List Invitations')
|
|
51014
|
+
], ListInvitationEntity);
|
|
51015
|
+
/**
|
|
51016
|
+
* MJ: List Shares - strongly typed entity sub-class
|
|
51017
|
+
* * Schema: __mj
|
|
51018
|
+
* * Base Table: ListShare
|
|
51019
|
+
* * Base View: vwListShares
|
|
51020
|
+
* * @description Manages user access and permissions for shared lists.
|
|
51021
|
+
* * Primary Key: ID
|
|
51022
|
+
* @extends {BaseEntity}
|
|
51023
|
+
* @class
|
|
51024
|
+
* @public
|
|
51025
|
+
*/
|
|
51026
|
+
let ListShareEntity = class ListShareEntity extends core_1.BaseEntity {
|
|
51027
|
+
/**
|
|
51028
|
+
* Loads the MJ: List Shares record from the database
|
|
51029
|
+
* @param ID: string - primary key value to load the MJ: List Shares record.
|
|
51030
|
+
* @param EntityRelationshipsToLoad - (optional) the relationships to load
|
|
51031
|
+
* @returns {Promise<boolean>} - true if successful, false otherwise
|
|
51032
|
+
* @public
|
|
51033
|
+
* @async
|
|
51034
|
+
* @memberof ListShareEntity
|
|
51035
|
+
* @method
|
|
51036
|
+
* @override
|
|
51037
|
+
*/
|
|
51038
|
+
async Load(ID, EntityRelationshipsToLoad) {
|
|
51039
|
+
const compositeKey = new core_1.CompositeKey();
|
|
51040
|
+
compositeKey.KeyValuePairs.push({ FieldName: 'ID', Value: ID });
|
|
51041
|
+
return await super.InnerLoad(compositeKey, EntityRelationshipsToLoad);
|
|
51042
|
+
}
|
|
51043
|
+
/**
|
|
51044
|
+
* * Field Name: ID
|
|
51045
|
+
* * Display Name: ID
|
|
51046
|
+
* * SQL Data Type: uniqueidentifier
|
|
51047
|
+
* * Default Value: newsequentialid()
|
|
51048
|
+
* * Description: Unique identifier for the share record.
|
|
51049
|
+
*/
|
|
51050
|
+
get ID() {
|
|
51051
|
+
return this.Get('ID');
|
|
51052
|
+
}
|
|
51053
|
+
set ID(value) {
|
|
51054
|
+
this.Set('ID', value);
|
|
51055
|
+
}
|
|
51056
|
+
/**
|
|
51057
|
+
* * Field Name: ListID
|
|
51058
|
+
* * Display Name: List
|
|
51059
|
+
* * SQL Data Type: uniqueidentifier
|
|
51060
|
+
* * Related Entity/Foreign Key: Lists (vwLists.ID)
|
|
51061
|
+
* * Description: The list being shared.
|
|
51062
|
+
*/
|
|
51063
|
+
get ListID() {
|
|
51064
|
+
return this.Get('ListID');
|
|
51065
|
+
}
|
|
51066
|
+
set ListID(value) {
|
|
51067
|
+
this.Set('ListID', value);
|
|
51068
|
+
}
|
|
51069
|
+
/**
|
|
51070
|
+
* * Field Name: UserID
|
|
51071
|
+
* * Display Name: User
|
|
51072
|
+
* * SQL Data Type: uniqueidentifier
|
|
51073
|
+
* * Related Entity/Foreign Key: Users (vwUsers.ID)
|
|
51074
|
+
* * Description: The user receiving access to the list.
|
|
51075
|
+
*/
|
|
51076
|
+
get UserID() {
|
|
51077
|
+
return this.Get('UserID');
|
|
51078
|
+
}
|
|
51079
|
+
set UserID(value) {
|
|
51080
|
+
this.Set('UserID', value);
|
|
51081
|
+
}
|
|
51082
|
+
/**
|
|
51083
|
+
* * Field Name: Role
|
|
51084
|
+
* * Display Name: Role
|
|
51085
|
+
* * SQL Data Type: nvarchar(50)
|
|
51086
|
+
* * Value List Type: List
|
|
51087
|
+
* * Possible Values
|
|
51088
|
+
* * Editor
|
|
51089
|
+
* * Viewer
|
|
51090
|
+
* * Description: The permission level granted (Editor or Viewer).
|
|
51091
|
+
*/
|
|
51092
|
+
get Role() {
|
|
51093
|
+
return this.Get('Role');
|
|
51094
|
+
}
|
|
51095
|
+
set Role(value) {
|
|
51096
|
+
this.Set('Role', value);
|
|
51097
|
+
}
|
|
51098
|
+
/**
|
|
51099
|
+
* * Field Name: Status
|
|
51100
|
+
* * Display Name: Status
|
|
51101
|
+
* * SQL Data Type: nvarchar(20)
|
|
51102
|
+
* * Default Value: Active
|
|
51103
|
+
* * Value List Type: List
|
|
51104
|
+
* * Possible Values
|
|
51105
|
+
* * Active
|
|
51106
|
+
* * Pending
|
|
51107
|
+
* * Description: Current status of the share (Active or Pending).
|
|
51108
|
+
*/
|
|
51109
|
+
get Status() {
|
|
51110
|
+
return this.Get('Status');
|
|
51111
|
+
}
|
|
51112
|
+
set Status(value) {
|
|
51113
|
+
this.Set('Status', value);
|
|
51114
|
+
}
|
|
51115
|
+
/**
|
|
51116
|
+
* * Field Name: __mj_CreatedAt
|
|
51117
|
+
* * Display Name: Created At
|
|
51118
|
+
* * SQL Data Type: datetimeoffset
|
|
51119
|
+
* * Default Value: getutcdate()
|
|
51120
|
+
*/
|
|
51121
|
+
get __mj_CreatedAt() {
|
|
51122
|
+
return this.Get('__mj_CreatedAt');
|
|
51123
|
+
}
|
|
51124
|
+
/**
|
|
51125
|
+
* * Field Name: __mj_UpdatedAt
|
|
51126
|
+
* * Display Name: Updated At
|
|
51127
|
+
* * SQL Data Type: datetimeoffset
|
|
51128
|
+
* * Default Value: getutcdate()
|
|
51129
|
+
*/
|
|
51130
|
+
get __mj_UpdatedAt() {
|
|
51131
|
+
return this.Get('__mj_UpdatedAt');
|
|
51132
|
+
}
|
|
51133
|
+
/**
|
|
51134
|
+
* * Field Name: List
|
|
51135
|
+
* * Display Name: List Name
|
|
51136
|
+
* * SQL Data Type: nvarchar(100)
|
|
51137
|
+
*/
|
|
51138
|
+
get List() {
|
|
51139
|
+
return this.Get('List');
|
|
51140
|
+
}
|
|
51141
|
+
/**
|
|
51142
|
+
* * Field Name: User
|
|
51143
|
+
* * Display Name: User Name
|
|
51144
|
+
* * SQL Data Type: nvarchar(100)
|
|
51145
|
+
*/
|
|
51146
|
+
get User() {
|
|
51147
|
+
return this.Get('User');
|
|
51148
|
+
}
|
|
51149
|
+
};
|
|
51150
|
+
exports.ListShareEntity = ListShareEntity;
|
|
51151
|
+
exports.ListShareEntity = ListShareEntity = __decorate([
|
|
51152
|
+
(0, global_1.RegisterClass)(core_1.BaseEntity, 'MJ: List Shares')
|
|
51153
|
+
], ListShareEntity);
|
|
50701
51154
|
/**
|
|
50702
51155
|
* MJ: Projects - strongly typed entity sub-class
|
|
50703
51156
|
* * Schema: __mj
|