@memberjunction/core-entities 2.29.1 → 2.30.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.
|
@@ -7,12 +7,12 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
};
|
|
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
|
-
exports.
|
|
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 = void 0;
|
|
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.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 = 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.ListSchema = exports.ListDetailSchema = exports.ListCategorySchema = exports.LibraryItemSchema = exports.LibrarySchema = void 0;
|
|
12
|
+
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 = 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 = void 0;
|
|
13
|
+
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 = 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 = void 0;
|
|
14
|
+
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 = 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.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 = 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 = 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");
|
|
@@ -5812,6 +5812,149 @@ exports.FileSchema = zod_1.z.object({
|
|
|
5812
5812
|
* * Display Name: Provider
|
|
5813
5813
|
* * SQL Data Type: nvarchar(50)`),
|
|
5814
5814
|
});
|
|
5815
|
+
/**
|
|
5816
|
+
* zod schema definition for the entity Generated Code Categories
|
|
5817
|
+
*/
|
|
5818
|
+
exports.GeneratedCodeCategorySchema = zod_1.z.object({
|
|
5819
|
+
ID: zod_1.z.string().describe(`
|
|
5820
|
+
* * Field Name: ID
|
|
5821
|
+
* * Display Name: ID
|
|
5822
|
+
* * SQL Data Type: uniqueidentifier
|
|
5823
|
+
* * Default Value: newsequentialid()`),
|
|
5824
|
+
Name: zod_1.z.string().describe(`
|
|
5825
|
+
* * Field Name: Name
|
|
5826
|
+
* * Display Name: Name
|
|
5827
|
+
* * SQL Data Type: nvarchar(255)`),
|
|
5828
|
+
Description: zod_1.z.string().nullish().describe(`
|
|
5829
|
+
* * Field Name: Description
|
|
5830
|
+
* * Display Name: Description
|
|
5831
|
+
* * SQL Data Type: nvarchar(MAX)`),
|
|
5832
|
+
ParentID: zod_1.z.string().nullish().describe(`
|
|
5833
|
+
* * Field Name: ParentID
|
|
5834
|
+
* * Display Name: Parent ID
|
|
5835
|
+
* * SQL Data Type: uniqueidentifier
|
|
5836
|
+
* * Related Entity/Foreign Key: Generated Code Categories (vwGeneratedCodeCategories.ID)
|
|
5837
|
+
* * Description: Parent category ID, allowing for hierarchical categorization.`),
|
|
5838
|
+
__mj_CreatedAt: zod_1.z.date().describe(`
|
|
5839
|
+
* * Field Name: __mj_CreatedAt
|
|
5840
|
+
* * Display Name: Created At
|
|
5841
|
+
* * SQL Data Type: datetimeoffset
|
|
5842
|
+
* * Default Value: getutcdate()`),
|
|
5843
|
+
__mj_UpdatedAt: zod_1.z.date().describe(`
|
|
5844
|
+
* * Field Name: __mj_UpdatedAt
|
|
5845
|
+
* * Display Name: Updated At
|
|
5846
|
+
* * SQL Data Type: datetimeoffset
|
|
5847
|
+
* * Default Value: getutcdate()`),
|
|
5848
|
+
Parent: zod_1.z.string().nullish().describe(`
|
|
5849
|
+
* * Field Name: Parent
|
|
5850
|
+
* * Display Name: Parent
|
|
5851
|
+
* * SQL Data Type: nvarchar(255)`),
|
|
5852
|
+
});
|
|
5853
|
+
/**
|
|
5854
|
+
* zod schema definition for the entity Generated Codes
|
|
5855
|
+
*/
|
|
5856
|
+
exports.GeneratedCodeSchema = zod_1.z.object({
|
|
5857
|
+
ID: zod_1.z.string().describe(`
|
|
5858
|
+
* * Field Name: ID
|
|
5859
|
+
* * Display Name: ID
|
|
5860
|
+
* * SQL Data Type: uniqueidentifier
|
|
5861
|
+
* * Default Value: newsequentialid()`),
|
|
5862
|
+
GeneratedAt: zod_1.z.date().describe(`
|
|
5863
|
+
* * Field Name: GeneratedAt
|
|
5864
|
+
* * Display Name: Generated At
|
|
5865
|
+
* * SQL Data Type: datetimeoffset
|
|
5866
|
+
* * Default Value: getutcdate()
|
|
5867
|
+
* * Description: When the code was generated.`),
|
|
5868
|
+
CategoryID: zod_1.z.string().describe(`
|
|
5869
|
+
* * Field Name: CategoryID
|
|
5870
|
+
* * Display Name: Category ID
|
|
5871
|
+
* * SQL Data Type: uniqueidentifier
|
|
5872
|
+
* * Related Entity/Foreign Key: Generated Code Categories (vwGeneratedCodeCategories.ID)
|
|
5873
|
+
* * Description: Reference to the category of generated code.`),
|
|
5874
|
+
GeneratedByModelID: zod_1.z.string().describe(`
|
|
5875
|
+
* * Field Name: GeneratedByModelID
|
|
5876
|
+
* * Display Name: Generated By Model ID
|
|
5877
|
+
* * SQL Data Type: uniqueidentifier
|
|
5878
|
+
* * Related Entity/Foreign Key: AI Models (vwAIModels.ID)
|
|
5879
|
+
* * Description: AI model responsible for generating this code.`),
|
|
5880
|
+
Name: zod_1.z.string().describe(`
|
|
5881
|
+
* * Field Name: Name
|
|
5882
|
+
* * Display Name: Name
|
|
5883
|
+
* * SQL Data Type: nvarchar(255)
|
|
5884
|
+
* * Description: Descriptive name of the generated code.`),
|
|
5885
|
+
Description: zod_1.z.string().nullish().describe(`
|
|
5886
|
+
* * Field Name: Description
|
|
5887
|
+
* * Display Name: Description
|
|
5888
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
5889
|
+
* * Description: Optional description of the generated code.`),
|
|
5890
|
+
Code: zod_1.z.string().describe(`
|
|
5891
|
+
* * Field Name: Code
|
|
5892
|
+
* * Display Name: Code
|
|
5893
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
5894
|
+
* * Description: The actual generated code.`),
|
|
5895
|
+
Source: zod_1.z.string().describe(`
|
|
5896
|
+
* * Field Name: Source
|
|
5897
|
+
* * Display Name: Source
|
|
5898
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
5899
|
+
* * Description: Source material used to generate the code, e.g., a SQL CHECK constraint.`),
|
|
5900
|
+
LinkedEntityID: zod_1.z.string().nullish().describe(`
|
|
5901
|
+
* * Field Name: LinkedEntityID
|
|
5902
|
+
* * Display Name: Linked Entity ID
|
|
5903
|
+
* * SQL Data Type: uniqueidentifier
|
|
5904
|
+
* * Related Entity/Foreign Key: Entities (vwEntities.ID)`),
|
|
5905
|
+
LinkedRecordPrimaryKey: zod_1.z.string().nullish().describe(`
|
|
5906
|
+
* * Field Name: LinkedRecordPrimaryKey
|
|
5907
|
+
* * Display Name: Linked Record Primary Key
|
|
5908
|
+
* * SQL Data Type: nvarchar(MAX)`),
|
|
5909
|
+
Status: zod_1.z.union([zod_1.z.literal('Pending'), zod_1.z.literal('Approved'), zod_1.z.literal('Rejected')]).describe(`
|
|
5910
|
+
* * Field Name: Status
|
|
5911
|
+
* * Display Name: Status
|
|
5912
|
+
* * SQL Data Type: nvarchar(20)
|
|
5913
|
+
* * Default Value: Pending
|
|
5914
|
+
* * Value List Type: List
|
|
5915
|
+
* * Possible Values
|
|
5916
|
+
* * Pending
|
|
5917
|
+
* * Approved
|
|
5918
|
+
* * Rejected
|
|
5919
|
+
* * Description: Status of the generated code, e.g., Pending, Approved, or Rejected.`),
|
|
5920
|
+
Language: zod_1.z.union([zod_1.z.literal('TypeScript'), zod_1.z.literal('SQL'), zod_1.z.literal('HTML'), zod_1.z.literal('CSS'), zod_1.z.literal('JavaScript'), zod_1.z.literal('Python'), zod_1.z.literal('Other')]).describe(`
|
|
5921
|
+
* * Field Name: Language
|
|
5922
|
+
* * Display Name: Language
|
|
5923
|
+
* * SQL Data Type: nvarchar(50)
|
|
5924
|
+
* * Default Value: TypeScript
|
|
5925
|
+
* * Value List Type: List
|
|
5926
|
+
* * Possible Values
|
|
5927
|
+
* * TypeScript
|
|
5928
|
+
* * SQL
|
|
5929
|
+
* * HTML
|
|
5930
|
+
* * CSS
|
|
5931
|
+
* * JavaScript
|
|
5932
|
+
* * Python
|
|
5933
|
+
* * Other
|
|
5934
|
+
* * Description: Programming language of the generated code (TypeScript, SQL, HTML, CSS, JavaScript, Python, or Other).`),
|
|
5935
|
+
__mj_CreatedAt: zod_1.z.date().describe(`
|
|
5936
|
+
* * Field Name: __mj_CreatedAt
|
|
5937
|
+
* * Display Name: Created At
|
|
5938
|
+
* * SQL Data Type: datetimeoffset
|
|
5939
|
+
* * Default Value: getutcdate()`),
|
|
5940
|
+
__mj_UpdatedAt: zod_1.z.date().describe(`
|
|
5941
|
+
* * Field Name: __mj_UpdatedAt
|
|
5942
|
+
* * Display Name: Updated At
|
|
5943
|
+
* * SQL Data Type: datetimeoffset
|
|
5944
|
+
* * Default Value: getutcdate()`),
|
|
5945
|
+
Category: zod_1.z.string().describe(`
|
|
5946
|
+
* * Field Name: Category
|
|
5947
|
+
* * Display Name: Category
|
|
5948
|
+
* * SQL Data Type: nvarchar(255)`),
|
|
5949
|
+
GeneratedByModel: zod_1.z.string().describe(`
|
|
5950
|
+
* * Field Name: GeneratedByModel
|
|
5951
|
+
* * Display Name: Generated By Model
|
|
5952
|
+
* * SQL Data Type: nvarchar(50)`),
|
|
5953
|
+
LinkedEntity: zod_1.z.string().nullish().describe(`
|
|
5954
|
+
* * Field Name: LinkedEntity
|
|
5955
|
+
* * Display Name: Linked Entity
|
|
5956
|
+
* * SQL Data Type: nvarchar(255)`),
|
|
5957
|
+
});
|
|
5815
5958
|
/**
|
|
5816
5959
|
* zod schema definition for the entity Integration URL Formats
|
|
5817
5960
|
*/
|
|
@@ -12001,7 +12144,7 @@ let AIModelEntity = class AIModelEntity extends core_1.BaseEntity {
|
|
|
12001
12144
|
return await super.InnerLoad(compositeKey, EntityRelationshipsToLoad);
|
|
12002
12145
|
}
|
|
12003
12146
|
/**
|
|
12004
|
-
* Validate() method override for AI Models entity. This is an auto-generated method that invokes the generated
|
|
12147
|
+
* Validate() method override for AI Models entity. This is an auto-generated method that invokes the generated validators for this entity for the following fields:
|
|
12005
12148
|
* * SpeedRank: This rule ensures that the speed rank must be zero or a positive number.
|
|
12006
12149
|
* * CostRank: This rule ensures that the cost rank of an item must be zero or higher. This means that the cost rank cannot be negative.
|
|
12007
12150
|
* * PowerRank: This rule ensures that the power rank must be greater than or equal to zero, meaning that it cannot be negative.
|
|
@@ -14306,6 +14449,29 @@ let CommunicationProviderEntity = class CommunicationProviderEntity extends core
|
|
|
14306
14449
|
return await super.InnerLoad(compositeKey, EntityRelationshipsToLoad);
|
|
14307
14450
|
}
|
|
14308
14451
|
/**
|
|
14452
|
+
* Validate() method override for Communication Providers entity. This is an auto-generated method that invokes the generated validators for this entity for the following fields:
|
|
14453
|
+
* * Table-Level: This rule ensures that the ability to schedule sending messages cannot exceed the overall ability to send messages. In simpler terms, if a user can send messages, they can also send them on a schedule, but if they cannot send messages, they shouldn't be able to send them on a schedule either.
|
|
14454
|
+
* @public
|
|
14455
|
+
* @method
|
|
14456
|
+
* @override
|
|
14457
|
+
*/
|
|
14458
|
+
Validate() {
|
|
14459
|
+
const result = super.Validate();
|
|
14460
|
+
this.ValidateSupportsScheduledSendingComparedToSupportsSending(result);
|
|
14461
|
+
return result;
|
|
14462
|
+
}
|
|
14463
|
+
/**
|
|
14464
|
+
* This rule ensures that the ability to schedule sending messages cannot exceed the overall ability to send messages. In simpler terms, if a user can send messages, they can also send them on a schedule, but if they cannot send messages, they shouldn't be able to send them on a schedule either.
|
|
14465
|
+
* @param result - the ValidationResult object to add any errors or warnings to
|
|
14466
|
+
* @public
|
|
14467
|
+
* @method
|
|
14468
|
+
*/
|
|
14469
|
+
ValidateSupportsScheduledSendingComparedToSupportsSending(result) {
|
|
14470
|
+
if (this.SupportsScheduledSending && !this.SupportsSending) {
|
|
14471
|
+
result.Errors.push(new core_1.ValidationErrorInfo("SupportsScheduledSending", "A user who cannot send messages cannot schedule sending of messages.", this.SupportsScheduledSending, core_1.ValidationErrorType.Failure));
|
|
14472
|
+
}
|
|
14473
|
+
}
|
|
14474
|
+
/**
|
|
14309
14475
|
* * Field Name: ID
|
|
14310
14476
|
* * Display Name: ID
|
|
14311
14477
|
* * SQL Data Type: uniqueidentifier
|
|
@@ -16882,7 +17048,7 @@ let ConversationDetailEntity = class ConversationDetailEntity extends core_1.Bas
|
|
|
16882
17048
|
return await super.InnerLoad(compositeKey, EntityRelationshipsToLoad);
|
|
16883
17049
|
}
|
|
16884
17050
|
/**
|
|
16885
|
-
* Validate() method override for Conversation Details entity. This is an auto-generated method that invokes the generated
|
|
17051
|
+
* Validate() method override for Conversation Details entity. This is an auto-generated method that invokes the generated validators for this entity for the following fields:
|
|
16886
17052
|
* * UserRating: This rule ensures that the user rating is between 1 and 10, inclusive. Ratings below 1 or above 10 are not allowed.
|
|
16887
17053
|
* @public
|
|
16888
17054
|
* @method
|
|
@@ -19252,6 +19418,29 @@ let EntityEntity = class EntityEntity extends core_1.BaseEntity {
|
|
|
19252
19418
|
return await super.InnerLoad(compositeKey, EntityRelationshipsToLoad);
|
|
19253
19419
|
}
|
|
19254
19420
|
/**
|
|
19421
|
+
* Validate() method override for Entities entity. This is an auto-generated method that invokes the generated validators for this entity for the following fields:
|
|
19422
|
+
* * Table-Level: This rule ensures that if record merging is allowed, it can only be permitted if record deletion is enabled and the deletion type is set to 'Soft'.
|
|
19423
|
+
* @public
|
|
19424
|
+
* @method
|
|
19425
|
+
* @override
|
|
19426
|
+
*/
|
|
19427
|
+
Validate() {
|
|
19428
|
+
const result = super.Validate();
|
|
19429
|
+
this.ValidateAllowRecordMergeConstraints(result);
|
|
19430
|
+
return result;
|
|
19431
|
+
}
|
|
19432
|
+
/**
|
|
19433
|
+
* This rule ensures that if record merging is allowed, it can only be permitted if record deletion is enabled and the deletion type is set to 'Soft'.
|
|
19434
|
+
* @param result - the ValidationResult object to add any errors or warnings to
|
|
19435
|
+
* @public
|
|
19436
|
+
* @method
|
|
19437
|
+
*/
|
|
19438
|
+
ValidateAllowRecordMergeConstraints(result) {
|
|
19439
|
+
if (this.AllowRecordMerge && !(this.AllowDeleteAPI && this.DeleteType === 'Soft')) {
|
|
19440
|
+
result.Errors.push(new core_1.ValidationErrorInfo('AllowRecordMerge', 'Record merging is only allowed when record deletion is enabled and the deletion type is set to Soft.', this.AllowRecordMerge, core_1.ValidationErrorType.Failure));
|
|
19441
|
+
}
|
|
19442
|
+
}
|
|
19443
|
+
/**
|
|
19255
19444
|
* * Field Name: ID
|
|
19256
19445
|
* * SQL Data Type: uniqueidentifier
|
|
19257
19446
|
* * Default Value: newsequentialid()
|
|
@@ -21316,6 +21505,35 @@ let EntityDocumentEntity = class EntityDocumentEntity extends core_1.BaseEntity
|
|
|
21316
21505
|
throw new Error('Delete is not allowed for Entity Documents, to enable it set AllowDeleteAPI to 1 in the database.');
|
|
21317
21506
|
}
|
|
21318
21507
|
/**
|
|
21508
|
+
* Validate() method override for Entity Documents entity. This is an auto-generated method that invokes the generated validators for this entity for the following fields:
|
|
21509
|
+
* * Table-Level: This rule ensures that the potential match threshold is not greater than the absolute match threshold, and both thresholds must be between 0 and 1 inclusive.
|
|
21510
|
+
* @public
|
|
21511
|
+
* @method
|
|
21512
|
+
* @override
|
|
21513
|
+
*/
|
|
21514
|
+
Validate() {
|
|
21515
|
+
const result = super.Validate();
|
|
21516
|
+
this.ValidatePotentialMatchThresholdAgainstAbsoluteMatchThreshold(result);
|
|
21517
|
+
return result;
|
|
21518
|
+
}
|
|
21519
|
+
/**
|
|
21520
|
+
* This rule ensures that the potential match threshold is not greater than the absolute match threshold, and both thresholds must be between 0 and 1 inclusive.
|
|
21521
|
+
* @param result - the ValidationResult object to add any errors or warnings to
|
|
21522
|
+
* @public
|
|
21523
|
+
* @method
|
|
21524
|
+
*/
|
|
21525
|
+
ValidatePotentialMatchThresholdAgainstAbsoluteMatchThreshold(result) {
|
|
21526
|
+
if (this.PotentialMatchThreshold > this.AbsoluteMatchThreshold) {
|
|
21527
|
+
result.Errors.push(new core_1.ValidationErrorInfo("PotentialMatchThreshold", "The potential match threshold cannot be greater than the absolute match threshold.", this.PotentialMatchThreshold, core_1.ValidationErrorType.Failure));
|
|
21528
|
+
}
|
|
21529
|
+
if (this.PotentialMatchThreshold < 0 || this.PotentialMatchThreshold > 1) {
|
|
21530
|
+
result.Errors.push(new core_1.ValidationErrorInfo("PotentialMatchThreshold", "The potential match threshold must be between 0 and 1 inclusive.", this.PotentialMatchThreshold, core_1.ValidationErrorType.Failure));
|
|
21531
|
+
}
|
|
21532
|
+
if (this.AbsoluteMatchThreshold < 0 || this.AbsoluteMatchThreshold > 1) {
|
|
21533
|
+
result.Errors.push(new core_1.ValidationErrorInfo("AbsoluteMatchThreshold", "The absolute match threshold must be between 0 and 1 inclusive.", this.AbsoluteMatchThreshold, core_1.ValidationErrorType.Failure));
|
|
21534
|
+
}
|
|
21535
|
+
}
|
|
21536
|
+
/**
|
|
21319
21537
|
* * Field Name: ID
|
|
21320
21538
|
* * Display Name: ID
|
|
21321
21539
|
* * SQL Data Type: uniqueidentifier
|
|
@@ -23569,7 +23787,7 @@ let ExplorerNavigationItemEntity = class ExplorerNavigationItemEntity extends co
|
|
|
23569
23787
|
return await super.InnerLoad(compositeKey, EntityRelationshipsToLoad);
|
|
23570
23788
|
}
|
|
23571
23789
|
/**
|
|
23572
|
-
* Validate() method override for Explorer Navigation Items entity. This is an auto-generated method that invokes the generated
|
|
23790
|
+
* Validate() method override for Explorer Navigation Items entity. This is an auto-generated method that invokes the generated validators for this entity for the following fields:
|
|
23573
23791
|
* * Sequence: This rule ensures that the sequence must be greater than zero.
|
|
23574
23792
|
* @public
|
|
23575
23793
|
* @method
|
|
@@ -24229,6 +24447,341 @@ exports.FileEntity = FileEntity;
|
|
|
24229
24447
|
exports.FileEntity = FileEntity = __decorate([
|
|
24230
24448
|
(0, global_1.RegisterClass)(core_1.BaseEntity, 'Files')
|
|
24231
24449
|
], FileEntity);
|
|
24450
|
+
/**
|
|
24451
|
+
* Generated Code Categories - strongly typed entity sub-class
|
|
24452
|
+
* * Schema: __mj
|
|
24453
|
+
* * Base Table: GeneratedCodeCategory
|
|
24454
|
+
* * Base View: vwGeneratedCodeCategories
|
|
24455
|
+
* * Primary Key: ID
|
|
24456
|
+
* @extends {BaseEntity}
|
|
24457
|
+
* @class
|
|
24458
|
+
* @public
|
|
24459
|
+
*/
|
|
24460
|
+
let GeneratedCodeCategoryEntity = class GeneratedCodeCategoryEntity extends core_1.BaseEntity {
|
|
24461
|
+
/**
|
|
24462
|
+
* Loads the Generated Code Categories record from the database
|
|
24463
|
+
* @param ID: string - primary key value to load the Generated Code Categories record.
|
|
24464
|
+
* @param EntityRelationshipsToLoad - (optional) the relationships to load
|
|
24465
|
+
* @returns {Promise<boolean>} - true if successful, false otherwise
|
|
24466
|
+
* @public
|
|
24467
|
+
* @async
|
|
24468
|
+
* @memberof GeneratedCodeCategoryEntity
|
|
24469
|
+
* @method
|
|
24470
|
+
* @override
|
|
24471
|
+
*/
|
|
24472
|
+
async Load(ID, EntityRelationshipsToLoad) {
|
|
24473
|
+
const compositeKey = new core_1.CompositeKey();
|
|
24474
|
+
compositeKey.KeyValuePairs.push({ FieldName: 'ID', Value: ID });
|
|
24475
|
+
return await super.InnerLoad(compositeKey, EntityRelationshipsToLoad);
|
|
24476
|
+
}
|
|
24477
|
+
/**
|
|
24478
|
+
* * Field Name: ID
|
|
24479
|
+
* * Display Name: ID
|
|
24480
|
+
* * SQL Data Type: uniqueidentifier
|
|
24481
|
+
* * Default Value: newsequentialid()
|
|
24482
|
+
*/
|
|
24483
|
+
get ID() {
|
|
24484
|
+
return this.Get('ID');
|
|
24485
|
+
}
|
|
24486
|
+
/**
|
|
24487
|
+
* * Field Name: Name
|
|
24488
|
+
* * Display Name: Name
|
|
24489
|
+
* * SQL Data Type: nvarchar(255)
|
|
24490
|
+
*/
|
|
24491
|
+
get Name() {
|
|
24492
|
+
return this.Get('Name');
|
|
24493
|
+
}
|
|
24494
|
+
set Name(value) {
|
|
24495
|
+
this.Set('Name', value);
|
|
24496
|
+
}
|
|
24497
|
+
/**
|
|
24498
|
+
* * Field Name: Description
|
|
24499
|
+
* * Display Name: Description
|
|
24500
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
24501
|
+
*/
|
|
24502
|
+
get Description() {
|
|
24503
|
+
return this.Get('Description');
|
|
24504
|
+
}
|
|
24505
|
+
set Description(value) {
|
|
24506
|
+
this.Set('Description', value);
|
|
24507
|
+
}
|
|
24508
|
+
/**
|
|
24509
|
+
* * Field Name: ParentID
|
|
24510
|
+
* * Display Name: Parent ID
|
|
24511
|
+
* * SQL Data Type: uniqueidentifier
|
|
24512
|
+
* * Related Entity/Foreign Key: Generated Code Categories (vwGeneratedCodeCategories.ID)
|
|
24513
|
+
* * Description: Parent category ID, allowing for hierarchical categorization.
|
|
24514
|
+
*/
|
|
24515
|
+
get ParentID() {
|
|
24516
|
+
return this.Get('ParentID');
|
|
24517
|
+
}
|
|
24518
|
+
set ParentID(value) {
|
|
24519
|
+
this.Set('ParentID', value);
|
|
24520
|
+
}
|
|
24521
|
+
/**
|
|
24522
|
+
* * Field Name: __mj_CreatedAt
|
|
24523
|
+
* * Display Name: Created At
|
|
24524
|
+
* * SQL Data Type: datetimeoffset
|
|
24525
|
+
* * Default Value: getutcdate()
|
|
24526
|
+
*/
|
|
24527
|
+
get __mj_CreatedAt() {
|
|
24528
|
+
return this.Get('__mj_CreatedAt');
|
|
24529
|
+
}
|
|
24530
|
+
/**
|
|
24531
|
+
* * Field Name: __mj_UpdatedAt
|
|
24532
|
+
* * Display Name: Updated At
|
|
24533
|
+
* * SQL Data Type: datetimeoffset
|
|
24534
|
+
* * Default Value: getutcdate()
|
|
24535
|
+
*/
|
|
24536
|
+
get __mj_UpdatedAt() {
|
|
24537
|
+
return this.Get('__mj_UpdatedAt');
|
|
24538
|
+
}
|
|
24539
|
+
/**
|
|
24540
|
+
* * Field Name: Parent
|
|
24541
|
+
* * Display Name: Parent
|
|
24542
|
+
* * SQL Data Type: nvarchar(255)
|
|
24543
|
+
*/
|
|
24544
|
+
get Parent() {
|
|
24545
|
+
return this.Get('Parent');
|
|
24546
|
+
}
|
|
24547
|
+
};
|
|
24548
|
+
exports.GeneratedCodeCategoryEntity = GeneratedCodeCategoryEntity;
|
|
24549
|
+
exports.GeneratedCodeCategoryEntity = GeneratedCodeCategoryEntity = __decorate([
|
|
24550
|
+
(0, global_1.RegisterClass)(core_1.BaseEntity, 'Generated Code Categories')
|
|
24551
|
+
], GeneratedCodeCategoryEntity);
|
|
24552
|
+
/**
|
|
24553
|
+
* Generated Codes - strongly typed entity sub-class
|
|
24554
|
+
* * Schema: __mj
|
|
24555
|
+
* * Base Table: GeneratedCode
|
|
24556
|
+
* * Base View: vwGeneratedCodes
|
|
24557
|
+
* * Primary Key: ID
|
|
24558
|
+
* @extends {BaseEntity}
|
|
24559
|
+
* @class
|
|
24560
|
+
* @public
|
|
24561
|
+
*/
|
|
24562
|
+
let GeneratedCodeEntity = class GeneratedCodeEntity extends core_1.BaseEntity {
|
|
24563
|
+
/**
|
|
24564
|
+
* Loads the Generated Codes record from the database
|
|
24565
|
+
* @param ID: string - primary key value to load the Generated Codes record.
|
|
24566
|
+
* @param EntityRelationshipsToLoad - (optional) the relationships to load
|
|
24567
|
+
* @returns {Promise<boolean>} - true if successful, false otherwise
|
|
24568
|
+
* @public
|
|
24569
|
+
* @async
|
|
24570
|
+
* @memberof GeneratedCodeEntity
|
|
24571
|
+
* @method
|
|
24572
|
+
* @override
|
|
24573
|
+
*/
|
|
24574
|
+
async Load(ID, EntityRelationshipsToLoad) {
|
|
24575
|
+
const compositeKey = new core_1.CompositeKey();
|
|
24576
|
+
compositeKey.KeyValuePairs.push({ FieldName: 'ID', Value: ID });
|
|
24577
|
+
return await super.InnerLoad(compositeKey, EntityRelationshipsToLoad);
|
|
24578
|
+
}
|
|
24579
|
+
/**
|
|
24580
|
+
* * Field Name: ID
|
|
24581
|
+
* * Display Name: ID
|
|
24582
|
+
* * SQL Data Type: uniqueidentifier
|
|
24583
|
+
* * Default Value: newsequentialid()
|
|
24584
|
+
*/
|
|
24585
|
+
get ID() {
|
|
24586
|
+
return this.Get('ID');
|
|
24587
|
+
}
|
|
24588
|
+
/**
|
|
24589
|
+
* * Field Name: GeneratedAt
|
|
24590
|
+
* * Display Name: Generated At
|
|
24591
|
+
* * SQL Data Type: datetimeoffset
|
|
24592
|
+
* * Default Value: getutcdate()
|
|
24593
|
+
* * Description: When the code was generated.
|
|
24594
|
+
*/
|
|
24595
|
+
get GeneratedAt() {
|
|
24596
|
+
return this.Get('GeneratedAt');
|
|
24597
|
+
}
|
|
24598
|
+
set GeneratedAt(value) {
|
|
24599
|
+
this.Set('GeneratedAt', value);
|
|
24600
|
+
}
|
|
24601
|
+
/**
|
|
24602
|
+
* * Field Name: CategoryID
|
|
24603
|
+
* * Display Name: Category ID
|
|
24604
|
+
* * SQL Data Type: uniqueidentifier
|
|
24605
|
+
* * Related Entity/Foreign Key: Generated Code Categories (vwGeneratedCodeCategories.ID)
|
|
24606
|
+
* * Description: Reference to the category of generated code.
|
|
24607
|
+
*/
|
|
24608
|
+
get CategoryID() {
|
|
24609
|
+
return this.Get('CategoryID');
|
|
24610
|
+
}
|
|
24611
|
+
set CategoryID(value) {
|
|
24612
|
+
this.Set('CategoryID', value);
|
|
24613
|
+
}
|
|
24614
|
+
/**
|
|
24615
|
+
* * Field Name: GeneratedByModelID
|
|
24616
|
+
* * Display Name: Generated By Model ID
|
|
24617
|
+
* * SQL Data Type: uniqueidentifier
|
|
24618
|
+
* * Related Entity/Foreign Key: AI Models (vwAIModels.ID)
|
|
24619
|
+
* * Description: AI model responsible for generating this code.
|
|
24620
|
+
*/
|
|
24621
|
+
get GeneratedByModelID() {
|
|
24622
|
+
return this.Get('GeneratedByModelID');
|
|
24623
|
+
}
|
|
24624
|
+
set GeneratedByModelID(value) {
|
|
24625
|
+
this.Set('GeneratedByModelID', value);
|
|
24626
|
+
}
|
|
24627
|
+
/**
|
|
24628
|
+
* * Field Name: Name
|
|
24629
|
+
* * Display Name: Name
|
|
24630
|
+
* * SQL Data Type: nvarchar(255)
|
|
24631
|
+
* * Description: Descriptive name of the generated code.
|
|
24632
|
+
*/
|
|
24633
|
+
get Name() {
|
|
24634
|
+
return this.Get('Name');
|
|
24635
|
+
}
|
|
24636
|
+
set Name(value) {
|
|
24637
|
+
this.Set('Name', value);
|
|
24638
|
+
}
|
|
24639
|
+
/**
|
|
24640
|
+
* * Field Name: Description
|
|
24641
|
+
* * Display Name: Description
|
|
24642
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
24643
|
+
* * Description: Optional description of the generated code.
|
|
24644
|
+
*/
|
|
24645
|
+
get Description() {
|
|
24646
|
+
return this.Get('Description');
|
|
24647
|
+
}
|
|
24648
|
+
set Description(value) {
|
|
24649
|
+
this.Set('Description', value);
|
|
24650
|
+
}
|
|
24651
|
+
/**
|
|
24652
|
+
* * Field Name: Code
|
|
24653
|
+
* * Display Name: Code
|
|
24654
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
24655
|
+
* * Description: The actual generated code.
|
|
24656
|
+
*/
|
|
24657
|
+
get Code() {
|
|
24658
|
+
return this.Get('Code');
|
|
24659
|
+
}
|
|
24660
|
+
set Code(value) {
|
|
24661
|
+
this.Set('Code', value);
|
|
24662
|
+
}
|
|
24663
|
+
/**
|
|
24664
|
+
* * Field Name: Source
|
|
24665
|
+
* * Display Name: Source
|
|
24666
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
24667
|
+
* * Description: Source material used to generate the code, e.g., a SQL CHECK constraint.
|
|
24668
|
+
*/
|
|
24669
|
+
get Source() {
|
|
24670
|
+
return this.Get('Source');
|
|
24671
|
+
}
|
|
24672
|
+
set Source(value) {
|
|
24673
|
+
this.Set('Source', value);
|
|
24674
|
+
}
|
|
24675
|
+
/**
|
|
24676
|
+
* * Field Name: LinkedEntityID
|
|
24677
|
+
* * Display Name: Linked Entity ID
|
|
24678
|
+
* * SQL Data Type: uniqueidentifier
|
|
24679
|
+
* * Related Entity/Foreign Key: Entities (vwEntities.ID)
|
|
24680
|
+
*/
|
|
24681
|
+
get LinkedEntityID() {
|
|
24682
|
+
return this.Get('LinkedEntityID');
|
|
24683
|
+
}
|
|
24684
|
+
set LinkedEntityID(value) {
|
|
24685
|
+
this.Set('LinkedEntityID', value);
|
|
24686
|
+
}
|
|
24687
|
+
/**
|
|
24688
|
+
* * Field Name: LinkedRecordPrimaryKey
|
|
24689
|
+
* * Display Name: Linked Record Primary Key
|
|
24690
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
24691
|
+
*/
|
|
24692
|
+
get LinkedRecordPrimaryKey() {
|
|
24693
|
+
return this.Get('LinkedRecordPrimaryKey');
|
|
24694
|
+
}
|
|
24695
|
+
set LinkedRecordPrimaryKey(value) {
|
|
24696
|
+
this.Set('LinkedRecordPrimaryKey', value);
|
|
24697
|
+
}
|
|
24698
|
+
/**
|
|
24699
|
+
* * Field Name: Status
|
|
24700
|
+
* * Display Name: Status
|
|
24701
|
+
* * SQL Data Type: nvarchar(20)
|
|
24702
|
+
* * Default Value: Pending
|
|
24703
|
+
* * Value List Type: List
|
|
24704
|
+
* * Possible Values
|
|
24705
|
+
* * Pending
|
|
24706
|
+
* * Approved
|
|
24707
|
+
* * Rejected
|
|
24708
|
+
* * Description: Status of the generated code, e.g., Pending, Approved, or Rejected.
|
|
24709
|
+
*/
|
|
24710
|
+
get Status() {
|
|
24711
|
+
return this.Get('Status');
|
|
24712
|
+
}
|
|
24713
|
+
set Status(value) {
|
|
24714
|
+
this.Set('Status', value);
|
|
24715
|
+
}
|
|
24716
|
+
/**
|
|
24717
|
+
* * Field Name: Language
|
|
24718
|
+
* * Display Name: Language
|
|
24719
|
+
* * SQL Data Type: nvarchar(50)
|
|
24720
|
+
* * Default Value: TypeScript
|
|
24721
|
+
* * Value List Type: List
|
|
24722
|
+
* * Possible Values
|
|
24723
|
+
* * TypeScript
|
|
24724
|
+
* * SQL
|
|
24725
|
+
* * HTML
|
|
24726
|
+
* * CSS
|
|
24727
|
+
* * JavaScript
|
|
24728
|
+
* * Python
|
|
24729
|
+
* * Other
|
|
24730
|
+
* * Description: Programming language of the generated code (TypeScript, SQL, HTML, CSS, JavaScript, Python, or Other).
|
|
24731
|
+
*/
|
|
24732
|
+
get Language() {
|
|
24733
|
+
return this.Get('Language');
|
|
24734
|
+
}
|
|
24735
|
+
set Language(value) {
|
|
24736
|
+
this.Set('Language', value);
|
|
24737
|
+
}
|
|
24738
|
+
/**
|
|
24739
|
+
* * Field Name: __mj_CreatedAt
|
|
24740
|
+
* * Display Name: Created At
|
|
24741
|
+
* * SQL Data Type: datetimeoffset
|
|
24742
|
+
* * Default Value: getutcdate()
|
|
24743
|
+
*/
|
|
24744
|
+
get __mj_CreatedAt() {
|
|
24745
|
+
return this.Get('__mj_CreatedAt');
|
|
24746
|
+
}
|
|
24747
|
+
/**
|
|
24748
|
+
* * Field Name: __mj_UpdatedAt
|
|
24749
|
+
* * Display Name: Updated At
|
|
24750
|
+
* * SQL Data Type: datetimeoffset
|
|
24751
|
+
* * Default Value: getutcdate()
|
|
24752
|
+
*/
|
|
24753
|
+
get __mj_UpdatedAt() {
|
|
24754
|
+
return this.Get('__mj_UpdatedAt');
|
|
24755
|
+
}
|
|
24756
|
+
/**
|
|
24757
|
+
* * Field Name: Category
|
|
24758
|
+
* * Display Name: Category
|
|
24759
|
+
* * SQL Data Type: nvarchar(255)
|
|
24760
|
+
*/
|
|
24761
|
+
get Category() {
|
|
24762
|
+
return this.Get('Category');
|
|
24763
|
+
}
|
|
24764
|
+
/**
|
|
24765
|
+
* * Field Name: GeneratedByModel
|
|
24766
|
+
* * Display Name: Generated By Model
|
|
24767
|
+
* * SQL Data Type: nvarchar(50)
|
|
24768
|
+
*/
|
|
24769
|
+
get GeneratedByModel() {
|
|
24770
|
+
return this.Get('GeneratedByModel');
|
|
24771
|
+
}
|
|
24772
|
+
/**
|
|
24773
|
+
* * Field Name: LinkedEntity
|
|
24774
|
+
* * Display Name: Linked Entity
|
|
24775
|
+
* * SQL Data Type: nvarchar(255)
|
|
24776
|
+
*/
|
|
24777
|
+
get LinkedEntity() {
|
|
24778
|
+
return this.Get('LinkedEntity');
|
|
24779
|
+
}
|
|
24780
|
+
};
|
|
24781
|
+
exports.GeneratedCodeEntity = GeneratedCodeEntity;
|
|
24782
|
+
exports.GeneratedCodeEntity = GeneratedCodeEntity = __decorate([
|
|
24783
|
+
(0, global_1.RegisterClass)(core_1.BaseEntity, 'Generated Codes')
|
|
24784
|
+
], GeneratedCodeEntity);
|
|
24232
24785
|
/**
|
|
24233
24786
|
* Integration URL Formats - strongly typed entity sub-class
|
|
24234
24787
|
* * Schema: __mj
|
|
@@ -26811,7 +27364,7 @@ let RecommendationItemEntity = class RecommendationItemEntity extends core_1.Bas
|
|
|
26811
27364
|
throw new Error('Delete is not allowed for Recommendation Items, to enable it set AllowDeleteAPI to 1 in the database.');
|
|
26812
27365
|
}
|
|
26813
27366
|
/**
|
|
26814
|
-
* Validate() method override for Recommendation Items entity. This is an auto-generated method that invokes the generated
|
|
27367
|
+
* Validate() method override for Recommendation Items entity. This is an auto-generated method that invokes the generated validators for this entity for the following fields:
|
|
26815
27368
|
* * MatchProbability: This rule ensures that the match probability value is between 0 and 1, inclusive.
|
|
26816
27369
|
* @public
|
|
26817
27370
|
* @method
|
|
@@ -28722,6 +29275,32 @@ let ResourcePermissionEntity = class ResourcePermissionEntity extends core_1.Bas
|
|
|
28722
29275
|
return await super.InnerLoad(compositeKey, EntityRelationshipsToLoad);
|
|
28723
29276
|
}
|
|
28724
29277
|
/**
|
|
29278
|
+
* Validate() method override for Resource Permissions entity. This is an auto-generated method that invokes the generated validators for this entity for the following fields:
|
|
29279
|
+
* * Table-Level: This rule ensures that when the type is set to 'Role', a role ID must be provided and the user ID must not be provided. Conversely, if the type is set to 'User', a user ID must be provided and the role ID must not be provided.
|
|
29280
|
+
* @public
|
|
29281
|
+
* @method
|
|
29282
|
+
* @override
|
|
29283
|
+
*/
|
|
29284
|
+
Validate() {
|
|
29285
|
+
const result = super.Validate();
|
|
29286
|
+
this.ValidateUserTypeConstraints(result);
|
|
29287
|
+
return result;
|
|
29288
|
+
}
|
|
29289
|
+
/**
|
|
29290
|
+
* This rule ensures that when the type is set to 'Role', a role ID must be provided and the user ID must not be provided. Conversely, if the type is set to 'User', a user ID must be provided and the role ID must not be provided.
|
|
29291
|
+
* @param result - the ValidationResult object to add any errors or warnings to
|
|
29292
|
+
* @public
|
|
29293
|
+
* @method
|
|
29294
|
+
*/
|
|
29295
|
+
ValidateUserTypeConstraints(result) {
|
|
29296
|
+
if (this.Type === 'Role' && this.RoleID === null && this.UserID !== null) {
|
|
29297
|
+
result.Errors.push(new core_1.ValidationErrorInfo("RoleID", "When the type is 'Role', a RoleID must be provided and UserID must be null.", this.RoleID, core_1.ValidationErrorType.Failure));
|
|
29298
|
+
}
|
|
29299
|
+
else if (this.Type === 'User' && this.UserID === null && this.RoleID !== null) {
|
|
29300
|
+
result.Errors.push(new core_1.ValidationErrorInfo("UserID", "When the type is 'User', a UserID must be provided and RoleID must be null.", this.UserID, core_1.ValidationErrorType.Failure));
|
|
29301
|
+
}
|
|
29302
|
+
}
|
|
29303
|
+
/**
|
|
28725
29304
|
* * Field Name: ID
|
|
28726
29305
|
* * Display Name: ID
|
|
28727
29306
|
* * SQL Data Type: uniqueidentifier
|
|
@@ -29693,6 +30272,45 @@ let SchemaInfoEntity = class SchemaInfoEntity extends core_1.BaseEntity {
|
|
|
29693
30272
|
throw new Error('Delete is not allowed for Schema Info, to enable it set AllowDeleteAPI to 1 in the database.');
|
|
29694
30273
|
}
|
|
29695
30274
|
/**
|
|
30275
|
+
* Validate() method override for Schema Info entity. This is an auto-generated method that invokes the generated validators for this entity for the following fields:
|
|
30276
|
+
* * Table-Level: This rule ensures that both the minimum and maximum entity IDs must be greater than zero.
|
|
30277
|
+
* * Table-Level: This rule ensures that the maximum entity ID must be greater than the minimum entity ID, which helps to maintain valid and logical ranges for entity IDs.
|
|
30278
|
+
* @public
|
|
30279
|
+
* @method
|
|
30280
|
+
* @override
|
|
30281
|
+
*/
|
|
30282
|
+
Validate() {
|
|
30283
|
+
const result = super.Validate();
|
|
30284
|
+
this.ValidateEntityIDMinAndEntityIDMaxGreaterThanZero(result);
|
|
30285
|
+
this.ValidateEntityIDMaxGreaterThanEntityIDMin(result);
|
|
30286
|
+
return result;
|
|
30287
|
+
}
|
|
30288
|
+
/**
|
|
30289
|
+
* This rule ensures that both the minimum and maximum entity IDs must be greater than zero.
|
|
30290
|
+
* @param result - the ValidationResult object to add any errors or warnings to
|
|
30291
|
+
* @public
|
|
30292
|
+
* @method
|
|
30293
|
+
*/
|
|
30294
|
+
ValidateEntityIDMinAndEntityIDMaxGreaterThanZero(result) {
|
|
30295
|
+
if (this.EntityIDMin <= 0) {
|
|
30296
|
+
result.Errors.push(new core_1.ValidationErrorInfo("EntityIDMin", "The minimum entity ID must be greater than zero.", this.EntityIDMin, core_1.ValidationErrorType.Failure));
|
|
30297
|
+
}
|
|
30298
|
+
if (this.EntityIDMax <= 0) {
|
|
30299
|
+
result.Errors.push(new core_1.ValidationErrorInfo("EntityIDMax", "The maximum entity ID must be greater than zero.", this.EntityIDMax, core_1.ValidationErrorType.Failure));
|
|
30300
|
+
}
|
|
30301
|
+
}
|
|
30302
|
+
/**
|
|
30303
|
+
* This rule ensures that the maximum entity ID must be greater than the minimum entity ID, which helps to maintain valid and logical ranges for entity IDs.
|
|
30304
|
+
* @param result - the ValidationResult object to add any errors or warnings to
|
|
30305
|
+
* @public
|
|
30306
|
+
* @method
|
|
30307
|
+
*/
|
|
30308
|
+
ValidateEntityIDMaxGreaterThanEntityIDMin(result) {
|
|
30309
|
+
if (this.EntityIDMax <= this.EntityIDMin) {
|
|
30310
|
+
result.Errors.push(new core_1.ValidationErrorInfo("EntityIDMax", "The maximum entity ID must be greater than the minimum entity ID.", this.EntityIDMax, core_1.ValidationErrorType.Failure));
|
|
30311
|
+
}
|
|
30312
|
+
}
|
|
30313
|
+
/**
|
|
29696
30314
|
* * Field Name: ID
|
|
29697
30315
|
* * Display Name: ID
|
|
29698
30316
|
* * SQL Data Type: uniqueidentifier
|