@memberjunction/server 2.20.1 → 2.20.3

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.
Files changed (40) hide show
  1. package/dist/config.d.ts +5 -1
  2. package/dist/config.d.ts.map +1 -1
  3. package/dist/config.js +2 -1
  4. package/dist/config.js.map +1 -1
  5. package/dist/generated/generated.d.ts +122 -57
  6. package/dist/generated/generated.d.ts.map +1 -1
  7. package/dist/generated/generated.js +1287 -694
  8. package/dist/generated/generated.js.map +1 -1
  9. package/dist/generic/ResolverBase.d.ts.map +1 -1
  10. package/dist/generic/ResolverBase.js +8 -4
  11. package/dist/generic/ResolverBase.js.map +1 -1
  12. package/dist/index.d.ts +7 -1
  13. package/dist/index.d.ts.map +1 -1
  14. package/dist/index.js +7 -1
  15. package/dist/index.js.map +1 -1
  16. package/dist/resolvers/AskSkipResolver.d.ts +14 -5
  17. package/dist/resolvers/AskSkipResolver.d.ts.map +1 -1
  18. package/dist/resolvers/AskSkipResolver.js +250 -61
  19. package/dist/resolvers/AskSkipResolver.js.map +1 -1
  20. package/dist/resolvers/GetDataResolver.d.ts +90 -0
  21. package/dist/resolvers/GetDataResolver.d.ts.map +1 -0
  22. package/dist/resolvers/GetDataResolver.js +294 -0
  23. package/dist/resolvers/GetDataResolver.js.map +1 -0
  24. package/dist/resolvers/SyncDataResolver.d.ts +47 -0
  25. package/dist/resolvers/SyncDataResolver.d.ts.map +1 -0
  26. package/dist/resolvers/SyncDataResolver.js +345 -0
  27. package/dist/resolvers/SyncDataResolver.js.map +1 -0
  28. package/dist/resolvers/SyncRolesUsersResolver.d.ts +46 -0
  29. package/dist/resolvers/SyncRolesUsersResolver.d.ts.map +1 -0
  30. package/dist/resolvers/SyncRolesUsersResolver.js +389 -0
  31. package/dist/resolvers/SyncRolesUsersResolver.js.map +1 -0
  32. package/package.json +23 -22
  33. package/src/config.ts +2 -0
  34. package/src/generated/generated.ts +899 -610
  35. package/src/generic/ResolverBase.ts +14 -5
  36. package/src/index.ts +12 -1
  37. package/src/resolvers/AskSkipResolver.ts +300 -66
  38. package/src/resolvers/GetDataResolver.ts +245 -0
  39. package/src/resolvers/SyncDataResolver.ts +337 -0
  40. package/src/resolvers/SyncRolesUsersResolver.ts +401 -0
@@ -18,13 +18,13 @@ import { mj_core_schema } from '../config.js';
18
18
 
19
19
 
20
20
 
21
- import { ScheduledActionEntity, ScheduledActionParamEntity, ExplorerNavigationItemEntity, AIAgentModelEntity, AIAgentNoteTypeEntity, AIAgentEntity, AIAgentNoteEntity, AIAgentActionEntity, AIPromptEntity, AIResultCacheEntity, AIPromptCategoryEntity, AIPromptTypeEntity, CompanyEntity, EmployeeEntity, UserFavoriteEntity, EmployeeCompanyIntegrationEntity, EmployeeRoleEntity, EmployeeSkillEntity, RoleEntity, SkillEntity, IntegrationURLFormatEntity, IntegrationEntity, CompanyIntegrationEntity, EntityFieldEntity, EntityEntity, UserEntity, EntityRelationshipEntity, UserRecordLogEntity, UserViewEntity, CompanyIntegrationRunEntity, CompanyIntegrationRunDetailEntity, ErrorLogEntity, ApplicationEntity, ApplicationEntityEntity, EntityPermissionEntity, UserApplicationEntityEntity, UserApplicationEntity, CompanyIntegrationRunAPILogEntity, ListEntity, ListDetailEntity, UserViewRunEntity, UserViewRunDetailEntity, WorkflowRunEntity, WorkflowEntity, WorkflowEngineEntity, RecordChangeEntity, UserRoleEntity, RowLevelSecurityFilterEntity, AuditLogEntity, AuthorizationEntity, AuthorizationRoleEntity, AuditLogTypeEntity, EntityFieldValueEntity, AIModelEntity, AIActionEntity, AIModelActionEntity, EntityAIActionEntity, AIModelTypeEntity, QueueTypeEntity, QueueEntity, QueueTaskEntity, DashboardEntity, OutputTriggerTypeEntity, OutputFormatTypeEntity, OutputDeliveryTypeEntity, ReportEntity, ReportSnapshotEntity, ResourceTypeEntity, TagEntity, TaggedItemEntity, WorkspaceEntity, WorkspaceItemEntity, DatasetEntity, DatasetItemEntity, ConversationDetailEntity, ConversationEntity, UserNotificationEntity, SchemaInfoEntity, CompanyIntegrationRecordMapEntity, RecordMergeLogEntity, RecordMergeDeletionLogEntity, QueryFieldEntity, QueryCategoryEntity, QueryEntity, QueryPermissionEntity, VectorIndexEntity, EntityDocumentTypeEntity, EntityDocumentRunEntity, VectorDatabaseEntity, EntityRecordDocumentEntity, EntityDocumentEntity, DataContextItemEntity, DataContextEntity, UserViewCategoryEntity, DashboardCategoryEntity, ReportCategoryEntity, FileStorageProviderEntity, FileEntity, FileCategoryEntity, FileEntityRecordLinkEntity, VersionInstallationEntity, DuplicateRunDetailMatchEntity, EntityDocumentSettingEntity, EntitySettingEntity, DuplicateRunEntity, DuplicateRunDetailEntity, ApplicationSettingEntity, ActionCategoryEntity, EntityActionEntity, EntityActionInvocationEntity, ActionAuthorizationEntity, EntityActionInvocationTypeEntity, ActionEntity, EntityActionFilterEntity, ActionFilterEntity, ActionContextTypeEntity, ActionResultCodeEntity, ActionContextEntity, ActionExecutionLogEntity, ActionParamEntity, ActionLibraryEntity, LibraryEntity, ListCategoryEntity, CommunicationProviderEntity, CommunicationRunEntity, CommunicationProviderMessageTypeEntity, CommunicationLogEntity, CommunicationBaseMessageTypeEntity, TemplateEntity, TemplateCategoryEntity, TemplateContentEntity, TemplateParamEntity, TemplateContentTypeEntity, RecommendationEntity, RecommendationProviderEntity, RecommendationRunEntity, RecommendationItemEntity, EntityCommunicationMessageTypeEntity, EntityCommunicationFieldEntity, RecordChangeReplayRunEntity, LibraryItemEntity, EntityRelationshipDisplayComponentEntity, EntityActionParamEntity, ResourcePermissionEntity, ResourceLinkEntity, flyway_schema_historyEntity, AIAgentRequestEntity, QueryEntityEntity, ContentProcessRunEntity, ContentSourceEntity, ContentSourceParamEntity, ContentSourceTypeEntity, ContentSourceTypeParamEntity, ContentTypeEntity, ContentTypeAttributeEntity, ContentFileTypeEntity, ContentItemEntity, ContentItemAttributeEntity, ContentItemTagEntity, AIAgentLearningCycleEntity } from '@memberjunction/core-entities';
21
+ import { ScheduledActionEntity, ScheduledActionParamEntity, ExplorerNavigationItemEntity, AIAgentModelEntity, AIAgentNoteTypeEntity, AIAgentEntity, AIAgentNoteEntity, AIAgentActionEntity, AIPromptEntity, AIResultCacheEntity, AIPromptCategoryEntity, AIPromptTypeEntity, CompanyEntity, EmployeeEntity, UserFavoriteEntity, EmployeeCompanyIntegrationEntity, EmployeeRoleEntity, EmployeeSkillEntity, RoleEntity, SkillEntity, IntegrationURLFormatEntity, IntegrationEntity, CompanyIntegrationEntity, EntityFieldEntity, EntityEntity, UserEntity, EntityRelationshipEntity, UserRecordLogEntity, UserViewEntity, CompanyIntegrationRunEntity, CompanyIntegrationRunDetailEntity, ErrorLogEntity, ApplicationEntity, ApplicationEntityEntity, EntityPermissionEntity, UserApplicationEntityEntity, UserApplicationEntity, CompanyIntegrationRunAPILogEntity, ListEntity, ListDetailEntity, UserViewRunEntity, UserViewRunDetailEntity, WorkflowRunEntity, WorkflowEntity, WorkflowEngineEntity, RecordChangeEntity, UserRoleEntity, RowLevelSecurityFilterEntity, AuditLogEntity, AuthorizationEntity, AuthorizationRoleEntity, AuditLogTypeEntity, EntityFieldValueEntity, AIModelEntity, AIActionEntity, AIModelActionEntity, EntityAIActionEntity, AIModelTypeEntity, QueueTypeEntity, QueueEntity, QueueTaskEntity, DashboardEntity, OutputTriggerTypeEntity, OutputFormatTypeEntity, OutputDeliveryTypeEntity, ReportEntity, ReportSnapshotEntity, ResourceTypeEntity, TagEntity, TaggedItemEntity, WorkspaceEntity, WorkspaceItemEntity, DatasetEntity, DatasetItemEntity, ConversationDetailEntity, ConversationEntity, UserNotificationEntity, SchemaInfoEntity, CompanyIntegrationRecordMapEntity, RecordMergeLogEntity, RecordMergeDeletionLogEntity, QueryFieldEntity, QueryCategoryEntity, QueryEntity, QueryPermissionEntity, VectorIndexEntity, EntityDocumentTypeEntity, EntityDocumentRunEntity, VectorDatabaseEntity, EntityRecordDocumentEntity, EntityDocumentEntity, DataContextItemEntity, DataContextEntity, UserViewCategoryEntity, DashboardCategoryEntity, ReportCategoryEntity, FileStorageProviderEntity, FileEntity, FileCategoryEntity, FileEntityRecordLinkEntity, VersionInstallationEntity, DuplicateRunDetailMatchEntity, EntityDocumentSettingEntity, EntitySettingEntity, DuplicateRunEntity, DuplicateRunDetailEntity, ApplicationSettingEntity, ActionCategoryEntity, EntityActionEntity, EntityActionInvocationEntity, ActionAuthorizationEntity, EntityActionInvocationTypeEntity, ActionEntity, EntityActionFilterEntity, ActionFilterEntity, ActionContextTypeEntity, ActionResultCodeEntity, ActionContextEntity, ActionExecutionLogEntity, ActionParamEntity, ActionLibraryEntity, LibraryEntity, ListCategoryEntity, CommunicationProviderEntity, CommunicationRunEntity, CommunicationProviderMessageTypeEntity, CommunicationLogEntity, CommunicationBaseMessageTypeEntity, TemplateEntity, TemplateCategoryEntity, TemplateContentEntity, TemplateParamEntity, TemplateContentTypeEntity, RecommendationEntity, RecommendationProviderEntity, RecommendationRunEntity, RecommendationItemEntity, EntityCommunicationMessageTypeEntity, EntityCommunicationFieldEntity, RecordChangeReplayRunEntity, LibraryItemEntity, EntityRelationshipDisplayComponentEntity, EntityActionParamEntity, ResourcePermissionEntity, ResourceLinkEntity, AIAgentRequestEntity, QueryEntityEntity, flyway_schema_historyEntity, ContentProcessRunEntity, ContentSourceEntity, ContentSourceParamEntity, ContentSourceTypeEntity, ContentSourceTypeParamEntity, ContentTypeEntity, ContentTypeAttributeEntity, ContentFileTypeEntity, ContentItemEntity, ContentItemAttributeEntity, ContentItemTagEntity, AIAgentLearningCycleEntity } from '@memberjunction/core-entities';
22
22
 
23
23
 
24
24
  //****************************************************************************
25
25
  // ENTITY CLASS for Scheduled Actions
26
26
  //****************************************************************************
27
- @ObjectType({ description: 'Track scheduled actions and their details' })
27
+ @ObjectType({ description: `Track scheduled actions and their details` })
28
28
  export class ScheduledAction_ {
29
29
  @Field()
30
30
  @MaxLength(16)
@@ -45,33 +45,33 @@ export class ScheduledAction_ {
45
45
  @MaxLength(16)
46
46
  ActionID: string;
47
47
 
48
- @Field({description: 'Type of the scheduled action (Daily, Weekly, Monthly, Yearly, Custom)'})
48
+ @Field({description: `Type of the scheduled action (Daily, Weekly, Monthly, Yearly, Custom)`})
49
49
  @MaxLength(40)
50
50
  Type: string;
51
51
 
52
- @Field({nullable: true, description: 'Cron expression defining the schedule, automatically maintained by the system unless Type is Custom, in which case the user directly sets this'})
52
+ @Field({nullable: true, description: `Cron expression defining the schedule, automatically maintained by the system unless Type is Custom, in which case the user directly sets this`})
53
53
  @MaxLength(200)
54
54
  CronExpression?: string;
55
55
 
56
- @Field({description: 'Timezone for the scheduled action, if not specified defaults to UTC/Z'})
56
+ @Field({description: `Timezone for the scheduled action, if not specified defaults to UTC/Z`})
57
57
  @MaxLength(200)
58
58
  Timezone: string;
59
59
 
60
- @Field({description: 'Status of the scheduled action (Pending, Active, Disabled, Expired)'})
60
+ @Field({description: `Status of the scheduled action (Pending, Active, Disabled, Expired)`})
61
61
  @MaxLength(40)
62
62
  Status: string;
63
63
 
64
- @Field(() => Int, {nullable: true, description: 'Interval in days for the scheduled action'})
64
+ @Field(() => Int, {nullable: true, description: `Interval in days for the scheduled action`})
65
65
  IntervalDays?: number;
66
66
 
67
- @Field({nullable: true, description: 'Day of the week for the scheduled action'})
67
+ @Field({nullable: true, description: `Day of the week for the scheduled action`})
68
68
  @MaxLength(40)
69
69
  DayOfWeek?: string;
70
70
 
71
- @Field(() => Int, {nullable: true, description: 'Day of the month for the scheduled action'})
71
+ @Field(() => Int, {nullable: true, description: `Day of the month for the scheduled action`})
72
72
  DayOfMonth?: number;
73
73
 
74
- @Field({nullable: true, description: 'Month for the scheduled action'})
74
+ @Field({nullable: true, description: `Month for the scheduled action`})
75
75
  @MaxLength(40)
76
76
  Month?: string;
77
77
 
@@ -458,40 +458,40 @@ export class ScheduledActionParamResolver extends ResolverBase {
458
458
  //****************************************************************************
459
459
  // ENTITY CLASS for Explorer Navigation Items
460
460
  //****************************************************************************
461
- @ObjectType({ description: 'Table to store navigation items for MemberJunction Explorer' })
461
+ @ObjectType({ description: `Table to store navigation items for MemberJunction Explorer` })
462
462
  export class ExplorerNavigationItem_ {
463
- @Field({description: 'Unique identifier for each navigation item'})
463
+ @Field({description: `Unique identifier for each navigation item`})
464
464
  @MaxLength(16)
465
465
  ID: string;
466
466
 
467
- @Field(() => Int, {description: 'Sequence number for the navigation item, must be unique and greater than 0'})
467
+ @Field(() => Int, {description: `Sequence number for the navigation item, must be unique and greater than 0`})
468
468
  Sequence: number;
469
469
 
470
- @Field({description: 'Unique name of the navigation item displayed to the user'})
470
+ @Field({description: `Unique name of the navigation item displayed to the user`})
471
471
  @MaxLength(200)
472
472
  Name: string;
473
473
 
474
- @Field({description: 'The route for the navigation item relative to the app main URL, using Angular syntax like "entity/:entityName"'})
474
+ @Field({description: `The route for the navigation item relative to the app main URL, using Angular syntax like "entity/:entityName"`})
475
475
  @MaxLength(510)
476
476
  Route: string;
477
477
 
478
- @Field(() => Boolean, {description: 'Indicates if the navigation item is active; allows turning off items in the UI without deleting them from the metadata'})
478
+ @Field(() => Boolean, {description: `Indicates if the navigation item is active; allows turning off items in the UI without deleting them from the metadata`})
479
479
  IsActive: boolean;
480
480
 
481
- @Field(() => Boolean, {description: 'Controls if the navigation item is shown on the Home screen for MJ Explorer'})
481
+ @Field(() => Boolean, {description: `Controls if the navigation item is shown on the Home screen for MJ Explorer`})
482
482
  ShowInHomeScreen: boolean;
483
483
 
484
- @Field(() => Boolean, {description: 'Controls if the item is shown in the left navigation drawer in the MJ Explorer app or not.'})
484
+ @Field(() => Boolean, {description: `Controls if the item is shown in the left navigation drawer in the MJ Explorer app or not.`})
485
485
  ShowInNavigationDrawer: boolean;
486
486
 
487
- @Field({nullable: true, description: 'Optional, CSS class for an icon to be displayed with the navigation item'})
487
+ @Field({nullable: true, description: `Optional, CSS class for an icon to be displayed with the navigation item`})
488
488
  @MaxLength(200)
489
489
  IconCSSClass?: string;
490
490
 
491
- @Field({nullable: true, description: 'Description of the navigation item, shown to the user on hover or in larger displays'})
491
+ @Field({nullable: true, description: `Description of the navigation item, shown to the user on hover or in larger displays`})
492
492
  Description?: string;
493
493
 
494
- @Field({nullable: true, description: 'Administrator comments, not shown to the end user in MJ Explorer app'})
494
+ @Field({nullable: true, description: `Administrator comments, not shown to the end user in MJ Explorer app`})
495
495
  Comments?: string;
496
496
 
497
497
  @Field()
@@ -658,24 +658,24 @@ export class ExplorerNavigationItemResolver extends ResolverBase {
658
658
  //****************************************************************************
659
659
  // ENTITY CLASS for AI Agent Models
660
660
  //****************************************************************************
661
- @ObjectType({ description: 'Table to store the relationship between AI agents and AI models.' })
661
+ @ObjectType({ description: `Table to store the relationship between AI agents and AI models.` })
662
662
  export class AIAgentModel_ {
663
- @Field({description: 'The unique identifier for each AI agent-model mapping. Serves as the primary key.'})
663
+ @Field({description: `The unique identifier for each AI agent-model mapping. Serves as the primary key.`})
664
664
  @MaxLength(16)
665
665
  ID: string;
666
666
 
667
- @Field({nullable: true, description: 'References the unique identifier of the associated AI agent from AIAgent table.'})
667
+ @Field({nullable: true, description: `References the unique identifier of the associated AI agent from AIAgent table.`})
668
668
  @MaxLength(16)
669
669
  AgentID?: string;
670
670
 
671
- @Field({nullable: true, description: 'The unique identifier of the associated AI model.'})
671
+ @Field({nullable: true, description: `The unique identifier of the associated AI model.`})
672
672
  @MaxLength(16)
673
673
  ModelID?: string;
674
674
 
675
675
  @Field(() => Boolean, {nullable: true})
676
676
  Active?: boolean;
677
677
 
678
- @Field(() => Int, {nullable: true, description: 'The priority level of the AI model for the agent, where higher values indicate higher priority.'})
678
+ @Field(() => Int, {nullable: true, description: `The priority level of the AI model for the agent, where higher values indicate higher priority.`})
679
679
  Priority?: number;
680
680
 
681
681
  @Field()
@@ -966,17 +966,17 @@ export class AIAgentNoteTypeResolver extends ResolverBase {
966
966
  //****************************************************************************
967
967
  // ENTITY CLASS for AI Agents
968
968
  //****************************************************************************
969
- @ObjectType({ description: 'Table to store information about AI agents.' })
969
+ @ObjectType({ description: `Table to store information about AI agents.` })
970
970
  export class AIAgent_ {
971
- @Field({description: 'The unique identifier for each AI agent. Serves as the primary key.'})
971
+ @Field({description: `The unique identifier for each AI agent. Serves as the primary key.`})
972
972
  @MaxLength(16)
973
973
  ID: string;
974
974
 
975
- @Field({nullable: true, description: 'The name of the AI agent.'})
975
+ @Field({nullable: true, description: `The name of the AI agent.`})
976
976
  @MaxLength(510)
977
977
  Name?: string;
978
978
 
979
- @Field({nullable: true, description: 'A detailed description of the AI agent.'})
979
+ @Field({nullable: true, description: `A detailed description of the AI agent.`})
980
980
  Description?: string;
981
981
 
982
982
  @Field({nullable: true})
@@ -1191,11 +1191,11 @@ export class AIAgentNote_ {
1191
1191
  @MaxLength(10)
1192
1192
  _mj__UpdatedAt: Date;
1193
1193
 
1194
- @Field({description: 'Indicates the type of note, either User-specific or Global.'})
1194
+ @Field({description: `Indicates the type of note, either User-specific or Global.`})
1195
1195
  @MaxLength(40)
1196
1196
  Type: string;
1197
1197
 
1198
- @Field({nullable: true, description: 'Foreign key referencing the ID column in the User table, indicating the user associated with the note. Used when Type=User'})
1198
+ @Field({nullable: true, description: `Foreign key referencing the ID column in the User table, indicating the user associated with the note. Used when Type=User`})
1199
1199
  @MaxLength(16)
1200
1200
  UserID?: string;
1201
1201
 
@@ -1343,17 +1343,17 @@ export class AIAgentNoteResolver extends ResolverBase {
1343
1343
  //****************************************************************************
1344
1344
  // ENTITY CLASS for AI Agent Actions
1345
1345
  //****************************************************************************
1346
- @ObjectType({ description: 'Table to store the relationship between AI agents and actions.' })
1346
+ @ObjectType({ description: `Table to store the relationship between AI agents and actions.` })
1347
1347
  export class AIAgentAction_ {
1348
- @Field({description: 'The unique identifier for each AI agent-action mapping. Serves as the primary key.'})
1348
+ @Field({description: `The unique identifier for each AI agent-action mapping. Serves as the primary key.`})
1349
1349
  @MaxLength(16)
1350
1350
  ID: string;
1351
1351
 
1352
- @Field({nullable: true, description: 'References the unique identifier of the associated AI agent from the AIAgent table.'})
1352
+ @Field({nullable: true, description: `References the unique identifier of the associated AI agent from the AIAgent table.`})
1353
1353
  @MaxLength(16)
1354
1354
  AgentID?: string;
1355
1355
 
1356
- @Field({nullable: true, description: 'References the unique identifier of the associated action from the Action table.'})
1356
+ @Field({nullable: true, description: `References the unique identifier of the associated action from the Action table.`})
1357
1357
  @MaxLength(16)
1358
1358
  ActionID?: string;
1359
1359
 
@@ -1497,7 +1497,7 @@ export class AIAgentActionResolver extends ResolverBase {
1497
1497
  //****************************************************************************
1498
1498
  // ENTITY CLASS for AI Prompts
1499
1499
  //****************************************************************************
1500
- @ObjectType({ description: 'Stores AI prompts, including references to categories, types, and templates.' })
1500
+ @ObjectType({ description: `Stores AI prompts, including references to categories, types, and templates.` })
1501
1501
  export class AIPrompt_ {
1502
1502
  @Field()
1503
1503
  @MaxLength(16)
@@ -1510,15 +1510,15 @@ export class AIPrompt_ {
1510
1510
  @Field({nullable: true})
1511
1511
  Description?: string;
1512
1512
 
1513
- @Field({description: 'Reference to the template used for the prompt.'})
1513
+ @Field({description: `Reference to the template used for the prompt.`})
1514
1514
  @MaxLength(16)
1515
1515
  TemplateID: string;
1516
1516
 
1517
- @Field({nullable: true, description: 'Reference to the category the prompt belongs to.'})
1517
+ @Field({nullable: true, description: `Reference to the category the prompt belongs to.`})
1518
1518
  @MaxLength(16)
1519
1519
  CategoryID?: string;
1520
1520
 
1521
- @Field({description: 'Reference to the type of the prompt.'})
1521
+ @Field({description: `Reference to the type of the prompt.`})
1522
1522
  @MaxLength(16)
1523
1523
  TypeID: string;
1524
1524
 
@@ -1526,10 +1526,10 @@ export class AIPrompt_ {
1526
1526
  @MaxLength(100)
1527
1527
  Status: string;
1528
1528
 
1529
- @Field(() => Boolean, {description: 'Indicates whether the results of the prompt should be cached.'})
1529
+ @Field(() => Boolean, {description: `Indicates whether the results of the prompt should be cached.`})
1530
1530
  CacheResults: boolean;
1531
1531
 
1532
- @Field(() => Float, {description: 'Number of hours the cache is valid for; can be fractional or 0 if the cache never expires.'})
1532
+ @Field(() => Float, {description: `Number of hours the cache is valid for; can be fractional or 0 if the cache never expires.`})
1533
1533
  CacheExpiration: number;
1534
1534
 
1535
1535
  @Field()
@@ -1540,6 +1540,13 @@ export class AIPrompt_ {
1540
1540
  @MaxLength(10)
1541
1541
  _mj__UpdatedAt: Date;
1542
1542
 
1543
+ @Field({description: `Specifies the expected response format for the AI model. Options include Any, Text, Markdown, JSON, and ModelSpecific. Defaults to Any if not specified.`})
1544
+ @MaxLength(40)
1545
+ ResponseFormat: string;
1546
+
1547
+ @Field({nullable: true, description: `A JSON-formatted string containing model-specific response format instructions. This will be parsed and provided as a JSON object to the model.`})
1548
+ ModelSpecificResponseFormat?: string;
1549
+
1543
1550
  @Field()
1544
1551
  @MaxLength(510)
1545
1552
  Template: string;
@@ -1585,6 +1592,12 @@ export class CreateAIPromptInput {
1585
1592
 
1586
1593
  @Field(() => Float)
1587
1594
  CacheExpiration: number;
1595
+
1596
+ @Field()
1597
+ ResponseFormat: string;
1598
+
1599
+ @Field({ nullable: true })
1600
+ ModelSpecificResponseFormat?: string;
1588
1601
  }
1589
1602
 
1590
1603
 
@@ -1620,6 +1633,12 @@ export class UpdateAIPromptInput {
1620
1633
  @Field(() => Float)
1621
1634
  CacheExpiration: number;
1622
1635
 
1636
+ @Field()
1637
+ ResponseFormat: string;
1638
+
1639
+ @Field({ nullable: true })
1640
+ ModelSpecificResponseFormat?: string;
1641
+
1623
1642
  @Field(() => [KeyValuePairInput], { nullable: true })
1624
1643
  OldValues___?: KeyValuePairInput[];
1625
1644
  }
@@ -1713,35 +1732,35 @@ export class AIPromptResolver extends ResolverBase {
1713
1732
  //****************************************************************************
1714
1733
  // ENTITY CLASS for AI Result Cache
1715
1734
  //****************************************************************************
1716
- @ObjectType({ description: 'Stores cached results of AI prompts, including multiple runs for history and tracking purposes.' })
1735
+ @ObjectType({ description: `Stores cached results of AI prompts, including multiple runs for history and tracking purposes.` })
1717
1736
  export class AIResultCache_ {
1718
1737
  @Field()
1719
1738
  @MaxLength(16)
1720
1739
  ID: string;
1721
1740
 
1722
- @Field({description: 'Reference to the AI prompt this result corresponds to.'})
1741
+ @Field({description: `Reference to the AI prompt this result corresponds to.`})
1723
1742
  @MaxLength(16)
1724
1743
  AIPromptID: string;
1725
1744
 
1726
- @Field({description: 'Reference to the AI model that generated this result.'})
1745
+ @Field({description: `Reference to the AI model that generated this result.`})
1727
1746
  @MaxLength(16)
1728
1747
  AIModelID: string;
1729
1748
 
1730
- @Field({description: 'Timestamp of when this result was generated.'})
1749
+ @Field({description: `Timestamp of when this result was generated.`})
1731
1750
  @MaxLength(10)
1732
1751
  RunAt: Date;
1733
1752
 
1734
- @Field({description: 'The prompt text used to generate this result.'})
1753
+ @Field({description: `The prompt text used to generate this result.`})
1735
1754
  PromptText: string;
1736
1755
 
1737
- @Field({nullable: true, description: 'The text of the result generated by the AI model.'})
1756
+ @Field({nullable: true, description: `The text of the result generated by the AI model.`})
1738
1757
  ResultText?: string;
1739
1758
 
1740
- @Field({description: 'The status of this result, indicating whether it is currently active or expired.'})
1759
+ @Field({description: `The status of this result, indicating whether it is currently active or expired.`})
1741
1760
  @MaxLength(100)
1742
1761
  Status: string;
1743
1762
 
1744
- @Field({nullable: true, description: 'Timestamp of when this result was marked as expired.'})
1763
+ @Field({nullable: true, description: `Timestamp of when this result was marked as expired.`})
1745
1764
  @MaxLength(10)
1746
1765
  ExpiredOn?: Date;
1747
1766
 
@@ -1905,7 +1924,7 @@ export class AIResultCacheResolver extends ResolverBase {
1905
1924
  //****************************************************************************
1906
1925
  // ENTITY CLASS for AI Prompt Categories
1907
1926
  //****************************************************************************
1908
- @ObjectType({ description: 'Categories for organizing AI prompts in a hierarchical structure.' })
1927
+ @ObjectType({ description: `Categories for organizing AI prompts in a hierarchical structure.` })
1909
1928
  export class AIPromptCategory_ {
1910
1929
  @Field()
1911
1930
  @MaxLength(16)
@@ -1915,7 +1934,7 @@ export class AIPromptCategory_ {
1915
1934
  @MaxLength(510)
1916
1935
  Name: string;
1917
1936
 
1918
- @Field({nullable: true, description: 'Parent category ID for hierarchical organization.'})
1937
+ @Field({nullable: true, description: `Parent category ID for hierarchical organization.`})
1919
1938
  @MaxLength(16)
1920
1939
  ParentID?: string;
1921
1940
 
@@ -2076,7 +2095,7 @@ export class AIPromptCategoryResolver extends ResolverBase {
2076
2095
  //****************************************************************************
2077
2096
  // ENTITY CLASS for AI Prompt Types
2078
2097
  //****************************************************************************
2079
- @ObjectType({ description: 'Types of AI prompts such as Chat, Text-to-Image, Text-to-Video, etc.' })
2098
+ @ObjectType({ description: `Types of AI prompts such as Chat, Text-to-Image, Text-to-Video, etc.` })
2080
2099
  export class AIPromptType_ {
2081
2100
  @Field()
2082
2101
  @MaxLength(16)
@@ -2222,7 +2241,7 @@ export class AIPromptTypeResolver extends ResolverBase {
2222
2241
  //****************************************************************************
2223
2242
  // ENTITY CLASS for Companies
2224
2243
  //****************************************************************************
2225
- @ObjectType({ description: 'A list of organizational units within your business. These can be subsidiaries or divisions or other units. Companies are used to organizae employee records and also for separating integrations if you have multiple integrations of the same type of system.' })
2244
+ @ObjectType({ description: `A list of organizational units within your business. These can be subsidiaries or divisions or other units. Companies are used to organizae employee records and also for separating integrations if you have multiple integrations of the same type of system.` })
2226
2245
  export class Company_ {
2227
2246
  @Field()
2228
2247
  @MaxLength(16)
@@ -2429,7 +2448,7 @@ export class CompanyResolver extends ResolverBase {
2429
2448
  //****************************************************************************
2430
2449
  // ENTITY CLASS for Employees
2431
2450
  //****************************************************************************
2432
- @ObjectType({ description: 'A list of employees across all units of your organization' })
2451
+ @ObjectType({ description: `A list of employees across all units of your organization` })
2433
2452
  export class Employee_ {
2434
2453
  @Field()
2435
2454
  @MaxLength(16)
@@ -2711,7 +2730,7 @@ export class EmployeeResolver extends ResolverBase {
2711
2730
  //****************************************************************************
2712
2731
  // ENTITY CLASS for User Favorites
2713
2732
  //****************************************************************************
2714
- @ObjectType({ description: 'Records that each user can mark as a favorite for easy access' })
2733
+ @ObjectType({ description: `Records that each user can mark as a favorite for easy access` })
2715
2734
  export class UserFavorite_ {
2716
2735
  @Field()
2717
2736
  @MaxLength(16)
@@ -3097,6 +3116,12 @@ export class EmployeeRoleResolver extends ResolverBase {
3097
3116
  return this.UpdateRecord('Employee Roles', input, dataSource, userPayload, pubSub);
3098
3117
  }
3099
3118
 
3119
+ @Mutation(() => EmployeeRole_)
3120
+ async DeleteEmployeeRole(@Arg('ID', () => String) ID: string, @Arg('options___', () => DeleteOptionsInput) options: DeleteOptionsInput, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
3121
+ const key = new CompositeKey([{FieldName: 'ID', Value: ID}]);
3122
+ return this.DeleteRecord('Employee Roles', key, options, dataSource, userPayload, pubSub);
3123
+ }
3124
+
3100
3125
  }
3101
3126
 
3102
3127
  //****************************************************************************
@@ -3209,12 +3234,18 @@ export class EmployeeSkillResolver extends ResolverBase {
3209
3234
  return this.UpdateRecord('Employee Skills', input, dataSource, userPayload, pubSub);
3210
3235
  }
3211
3236
 
3237
+ @Mutation(() => EmployeeSkill_)
3238
+ async DeleteEmployeeSkill(@Arg('ID', () => String) ID: string, @Arg('options___', () => DeleteOptionsInput) options: DeleteOptionsInput, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
3239
+ const key = new CompositeKey([{FieldName: 'ID', Value: ID}]);
3240
+ return this.DeleteRecord('Employee Skills', key, options, dataSource, userPayload, pubSub);
3241
+ }
3242
+
3212
3243
  }
3213
3244
 
3214
3245
  //****************************************************************************
3215
3246
  // ENTITY CLASS for Roles
3216
3247
  //****************************************************************************
3217
- @ObjectType({ description: 'Roles are used for security administration and can have zero to many Users as members' })
3248
+ @ObjectType({ description: `Roles are used for security administration and can have zero to many Users as members` })
3218
3249
  export class Role_ {
3219
3250
  @Field()
3220
3251
  @MaxLength(16)
@@ -3224,14 +3255,14 @@ export class Role_ {
3224
3255
  @MaxLength(100)
3225
3256
  Name: string;
3226
3257
 
3227
- @Field({nullable: true, description: 'Description of the role'})
3258
+ @Field({nullable: true, description: `Description of the role`})
3228
3259
  Description?: string;
3229
3260
 
3230
- @Field({nullable: true, description: 'The unique ID of the role in the directory being used for authentication, for example an ID in Azure.'})
3261
+ @Field({nullable: true, description: `The unique ID of the role in the directory being used for authentication, for example an ID in Azure.`})
3231
3262
  @MaxLength(500)
3232
3263
  DirectoryID?: string;
3233
3264
 
3234
- @Field({nullable: true, description: 'The name of the role in the database, this is used for auto-generating permission statements by CodeGen'})
3265
+ @Field({nullable: true, description: `The name of the role in the database, this is used for auto-generating permission statements by CodeGen`})
3235
3266
  @MaxLength(500)
3236
3267
  SQLName?: string;
3237
3268
 
@@ -3443,7 +3474,7 @@ export class RoleResolver extends ResolverBase {
3443
3474
  //****************************************************************************
3444
3475
  // ENTITY CLASS for Skills
3445
3476
  //****************************************************************************
3446
- @ObjectType({ description: 'A hierarchical list of possible skills that are linked to Employees and can also be linked to any other entity' })
3477
+ @ObjectType({ description: `A hierarchical list of possible skills that are linked to Employees and can also be linked to any other entity` })
3447
3478
  export class Skill_ {
3448
3479
  @Field()
3449
3480
  @MaxLength(16)
@@ -3557,7 +3588,7 @@ export class SkillResolver extends ResolverBase {
3557
3588
  //****************************************************************************
3558
3589
  // ENTITY CLASS for Integration URL Formats
3559
3590
  //****************************************************************************
3560
- @ObjectType({ description: 'Used to generate web links for end users to easily access resources in a source system. URL Formats support templating to inject various field values at run-time to take a user directly to a resource in a source system.' })
3591
+ @ObjectType({ description: `Used to generate web links for end users to easily access resources in a source system. URL Formats support templating to inject various field values at run-time to take a user directly to a resource in a source system.` })
3561
3592
  export class IntegrationURLFormat_ {
3562
3593
  @Field()
3563
3594
  @MaxLength(16)
@@ -3571,7 +3602,7 @@ export class IntegrationURLFormat_ {
3571
3602
  @MaxLength(16)
3572
3603
  EntityID: string;
3573
3604
 
3574
- @Field({description: 'The URL Format for the given integration including the ability to include markup with fields from the integration'})
3605
+ @Field({description: `The URL Format for the given integration including the ability to include markup with fields from the integration`})
3575
3606
  @MaxLength(1000)
3576
3607
  URLFormat: string;
3577
3608
 
@@ -3693,12 +3724,18 @@ export class IntegrationURLFormatResolver extends ResolverBase {
3693
3724
  return this.UpdateRecord('Integration URL Formats', input, dataSource, userPayload, pubSub);
3694
3725
  }
3695
3726
 
3727
+ @Mutation(() => IntegrationURLFormat_)
3728
+ async DeleteIntegrationURLFormat(@Arg('ID', () => String) ID: string, @Arg('options___', () => DeleteOptionsInput) options: DeleteOptionsInput, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
3729
+ const key = new CompositeKey([{FieldName: 'ID', Value: ID}]);
3730
+ return this.DeleteRecord('Integration URL Formats', key, options, dataSource, userPayload, pubSub);
3731
+ }
3732
+
3696
3733
  }
3697
3734
 
3698
3735
  //****************************************************************************
3699
3736
  // ENTITY CLASS for Integrations
3700
3737
  //****************************************************************************
3701
- @ObjectType({ description: 'Catalog of all integrations that have been configured in the system.' })
3738
+ @ObjectType({ description: `Catalog of all integrations that have been configured in the system.` })
3702
3739
  export class Integration_ {
3703
3740
  @Field()
3704
3741
  @MaxLength(200)
@@ -3875,12 +3912,18 @@ export class IntegrationResolver extends ResolverBase {
3875
3912
  return this.UpdateRecord('Integrations', input, dataSource, userPayload, pubSub);
3876
3913
  }
3877
3914
 
3915
+ @Mutation(() => Integration_)
3916
+ async DeleteIntegration(@Arg('ID', () => String) ID: string, @Arg('options___', () => DeleteOptionsInput) options: DeleteOptionsInput, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
3917
+ const key = new CompositeKey([{FieldName: 'ID', Value: ID}]);
3918
+ return this.DeleteRecord('Integrations', key, options, dataSource, userPayload, pubSub);
3919
+ }
3920
+
3878
3921
  }
3879
3922
 
3880
3923
  //****************************************************************************
3881
3924
  // ENTITY CLASS for Company Integrations
3882
3925
  //****************************************************************************
3883
- @ObjectType({ description: 'Links individual company records to specific integrations' })
3926
+ @ObjectType({ description: `Links individual company records to specific integrations` })
3884
3927
  export class CompanyIntegration_ {
3885
3928
  @Field()
3886
3929
  @MaxLength(16)
@@ -4123,12 +4166,18 @@ export class CompanyIntegrationResolver extends ResolverBase {
4123
4166
  return this.UpdateRecord('Company Integrations', input, dataSource, userPayload, pubSub);
4124
4167
  }
4125
4168
 
4169
+ @Mutation(() => CompanyIntegration_)
4170
+ async DeleteCompanyIntegration(@Arg('ID', () => String) ID: string, @Arg('options___', () => DeleteOptionsInput) options: DeleteOptionsInput, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
4171
+ const key = new CompositeKey([{FieldName: 'ID', Value: ID}]);
4172
+ return this.DeleteRecord('Company Integrations', key, options, dataSource, userPayload, pubSub);
4173
+ }
4174
+
4126
4175
  }
4127
4176
 
4128
4177
  //****************************************************************************
4129
4178
  // ENTITY CLASS for Entity Fields
4130
4179
  //****************************************************************************
4131
- @ObjectType({ description: 'List of all fields within each entity with metadata about each field' })
4180
+ @ObjectType({ description: `List of all fields within each entity with metadata about each field` })
4132
4181
  export class EntityField_ {
4133
4182
  @Field()
4134
4183
  @MaxLength(16)
@@ -4138,126 +4187,126 @@ export class EntityField_ {
4138
4187
  @MaxLength(16)
4139
4188
  EntityID: string;
4140
4189
 
4141
- @Field(() => Int, {description: 'Display order of the field within the entity'})
4190
+ @Field(() => Int, {description: `Display order of the field within the entity`})
4142
4191
  Sequence: number;
4143
4192
 
4144
- @Field({description: 'Name of the field within the database table'})
4193
+ @Field({description: `Name of the field within the database table`})
4145
4194
  @MaxLength(510)
4146
4195
  Name: string;
4147
4196
 
4148
- @Field({nullable: true, description: 'A user friendly alternative to the field name'})
4197
+ @Field({nullable: true, description: `A user friendly alternative to the field name`})
4149
4198
  @MaxLength(510)
4150
4199
  DisplayName?: string;
4151
4200
 
4152
- @Field({nullable: true, description: 'Descriptive text explaining the purpose of the field'})
4201
+ @Field({nullable: true, description: `Descriptive text explaining the purpose of the field`})
4153
4202
  Description?: string;
4154
4203
 
4155
- @Field(() => Boolean, {description: 'When set to 1 (default), whenever a description is modified in the column within the underlying view (first choice) or table (second choice), the Description column in the entity field definition will be automatically updated. If you never set metadata in the database directly, you can leave this alone. However, if you have metadata set in the database level for description, and you want to provide a DIFFERENT description in this entity field definition, turn this bit off and then set the Description field and future CodeGen runs will NOT override the Description field here.'})
4204
+ @Field(() => Boolean, {description: `When set to 1 (default), whenever a description is modified in the column within the underlying view (first choice) or table (second choice), the Description column in the entity field definition will be automatically updated. If you never set metadata in the database directly, you can leave this alone. However, if you have metadata set in the database level for description, and you want to provide a DIFFERENT description in this entity field definition, turn this bit off and then set the Description field and future CodeGen runs will NOT override the Description field here.`})
4156
4205
  AutoUpdateDescription: boolean;
4157
4206
 
4158
- @Field(() => Boolean, {description: 'Indicates if the field is part of the primary key for the entity (auto maintained by CodeGen)'})
4207
+ @Field(() => Boolean, {description: `Indicates if the field is part of the primary key for the entity (auto maintained by CodeGen)`})
4159
4208
  IsPrimaryKey: boolean;
4160
4209
 
4161
- @Field(() => Boolean, {description: 'Indicates if the field must have unique values within the entity.'})
4210
+ @Field(() => Boolean, {description: `Indicates if the field must have unique values within the entity.`})
4162
4211
  IsUnique: boolean;
4163
4212
 
4164
- @Field({nullable: true, description: 'Used for generating custom tabs in the generated forms, only utilized if GeneratedFormSection=Category'})
4213
+ @Field({nullable: true, description: `Used for generating custom tabs in the generated forms, only utilized if GeneratedFormSection=Category`})
4165
4214
  @MaxLength(510)
4166
4215
  Category?: string;
4167
4216
 
4168
- @Field({description: 'SQL Data type (auto maintained by CodeGen)'})
4217
+ @Field({description: `SQL Data type (auto maintained by CodeGen)`})
4169
4218
  @MaxLength(200)
4170
4219
  Type: string;
4171
4220
 
4172
- @Field(() => Int, {nullable: true, description: 'SQL data length (auto maintained by CodeGen)'})
4221
+ @Field(() => Int, {nullable: true, description: `SQL data length (auto maintained by CodeGen)`})
4173
4222
  Length?: number;
4174
4223
 
4175
- @Field(() => Int, {nullable: true, description: 'SQL precision (auto maintained by CodeGen)'})
4224
+ @Field(() => Int, {nullable: true, description: `SQL precision (auto maintained by CodeGen)`})
4176
4225
  Precision?: number;
4177
4226
 
4178
- @Field(() => Int, {nullable: true, description: 'SQL scale (auto maintained by CodeGen)'})
4227
+ @Field(() => Int, {nullable: true, description: `SQL scale (auto maintained by CodeGen)`})
4179
4228
  Scale?: number;
4180
4229
 
4181
- @Field(() => Boolean, {description: 'Does the column allow null or not (auto maintained by CodeGen)'})
4230
+ @Field(() => Boolean, {description: `Does the column allow null or not (auto maintained by CodeGen)`})
4182
4231
  AllowsNull: boolean;
4183
4232
 
4184
- @Field({nullable: true, description: 'If a default value is defined for the field it is stored here (auto maintained by CodeGen)'})
4233
+ @Field({nullable: true, description: `If a default value is defined for the field it is stored here (auto maintained by CodeGen)`})
4185
4234
  @MaxLength(510)
4186
4235
  DefaultValue?: string;
4187
4236
 
4188
- @Field(() => Boolean, {description: 'If this field automatically increments within the table, this field is set to 1 (auto maintained by CodeGen)'})
4237
+ @Field(() => Boolean, {description: `If this field automatically increments within the table, this field is set to 1 (auto maintained by CodeGen)`})
4189
4238
  AutoIncrement: boolean;
4190
4239
 
4191
- @Field({description: 'Possible Values of None, List, ListOrUserEntry - the last option meaning that the list of possible values are options, but a user can enter anything else desired too.'})
4240
+ @Field({description: `Possible Values of None, List, ListOrUserEntry - the last option meaning that the list of possible values are options, but a user can enter anything else desired too.`})
4192
4241
  @MaxLength(40)
4193
4242
  ValueListType: string;
4194
4243
 
4195
- @Field({nullable: true, description: 'Defines extended behaviors for a field such as for Email, Web URLs, Code, etc.'})
4244
+ @Field({nullable: true, description: `Defines extended behaviors for a field such as for Email, Web URLs, Code, etc.`})
4196
4245
  @MaxLength(100)
4197
4246
  ExtendedType?: string;
4198
4247
 
4199
- @Field({nullable: true, description: 'The type of code associated with this field. Only used when the ExtendedType field is set to "Code"'})
4248
+ @Field({nullable: true, description: `The type of code associated with this field. Only used when the ExtendedType field is set to "Code"`})
4200
4249
  @MaxLength(100)
4201
4250
  CodeType?: string;
4202
4251
 
4203
- @Field(() => Boolean, {description: 'If set to 1, this field will be included by default in any new view created by a user.'})
4252
+ @Field(() => Boolean, {description: `If set to 1, this field will be included by default in any new view created by a user.`})
4204
4253
  DefaultInView: boolean;
4205
4254
 
4206
- @Field({nullable: true, description: 'NULL'})
4255
+ @Field({nullable: true, description: `NULL`})
4207
4256
  ViewCellTemplate?: string;
4208
4257
 
4209
- @Field(() => Int, {nullable: true, description: 'Determines the default width for this field when included in a view'})
4258
+ @Field(() => Int, {nullable: true, description: `Determines the default width for this field when included in a view`})
4210
4259
  DefaultColumnWidth?: number;
4211
4260
 
4212
- @Field(() => Boolean, {description: 'If set to 1, this field will be considered updateable by the API and object model. For this field to have effect, the column type must be updateable (e.g. not part of the primary key and not auto-increment)'})
4261
+ @Field(() => Boolean, {description: `If set to 1, this field will be considered updateable by the API and object model. For this field to have effect, the column type must be updateable (e.g. not part of the primary key and not auto-increment)`})
4213
4262
  AllowUpdateAPI: boolean;
4214
4263
 
4215
- @Field(() => Boolean, {description: 'If set to 1, and if AllowUpdateAPI=1, the field can be edited within a view when the view is in edit mode.'})
4264
+ @Field(() => Boolean, {description: `If set to 1, and if AllowUpdateAPI=1, the field can be edited within a view when the view is in edit mode.`})
4216
4265
  AllowUpdateInView: boolean;
4217
4266
 
4218
- @Field(() => Boolean, {description: 'If set to 1, this column will be included in user search queries for both traditional and full text search'})
4267
+ @Field(() => Boolean, {description: `If set to 1, this column will be included in user search queries for both traditional and full text search`})
4219
4268
  IncludeInUserSearchAPI: boolean;
4220
4269
 
4221
- @Field(() => Boolean, {description: 'If set to 1, CodeGen will automatically generate a Full Text Catalog/Index in the database and include this field in the search index.'})
4270
+ @Field(() => Boolean, {description: `If set to 1, CodeGen will automatically generate a Full Text Catalog/Index in the database and include this field in the search index.`})
4222
4271
  FullTextSearchEnabled: boolean;
4223
4272
 
4224
- @Field({nullable: true, description: 'NULL'})
4273
+ @Field({nullable: true, description: `NULL`})
4225
4274
  @MaxLength(1000)
4226
4275
  UserSearchParamFormatAPI?: string;
4227
4276
 
4228
- @Field(() => Boolean, {description: 'If set to 1, this field will be included in the generated form by CodeGen. If set to 0, this field will be excluded from the generated form. For custom forms, this field has no effect as the layout is controlled independently.'})
4277
+ @Field(() => Boolean, {description: `If set to 1, this field will be included in the generated form by CodeGen. If set to 0, this field will be excluded from the generated form. For custom forms, this field has no effect as the layout is controlled independently.`})
4229
4278
  IncludeInGeneratedForm: boolean;
4230
4279
 
4231
- @Field({description: 'When set to Top, the field will be placed in a "top area" on the top of a generated form and visible regardless of which tab is displayed. When set to "category" Options: Top, Category, Details'})
4280
+ @Field({description: `When set to Top, the field will be placed in a "top area" on the top of a generated form and visible regardless of which tab is displayed. When set to "category" Options: Top, Category, Details`})
4232
4281
  @MaxLength(20)
4233
4282
  GeneratedFormSection: string;
4234
4283
 
4235
- @Field(() => Boolean, {description: 'NULL'})
4284
+ @Field(() => Boolean, {description: `NULL`})
4236
4285
  IsVirtual: boolean;
4237
4286
 
4238
- @Field(() => Boolean, {description: 'If set to 1, this column will be used as the "Name" field for the entity and will be used to display the name of the record in various places in the UI.'})
4287
+ @Field(() => Boolean, {description: `If set to 1, this column will be used as the "Name" field for the entity and will be used to display the name of the record in various places in the UI.`})
4239
4288
  IsNameField: boolean;
4240
4289
 
4241
4290
  @Field({nullable: true})
4242
4291
  @MaxLength(16)
4243
4292
  RelatedEntityID?: string;
4244
4293
 
4245
- @Field({nullable: true, description: 'Name of the field in the Related Entity that this field links to (auto maintained by CodeGen)'})
4294
+ @Field({nullable: true, description: `Name of the field in the Related Entity that this field links to (auto maintained by CodeGen)`})
4246
4295
  @MaxLength(510)
4247
4296
  RelatedEntityFieldName?: string;
4248
4297
 
4249
- @Field(() => Boolean, {description: 'If set to 1, the "Name" field of the Related Entity will be included in this entity as a virtual field'})
4298
+ @Field(() => Boolean, {description: `If set to 1, the "Name" field of the Related Entity will be included in this entity as a virtual field`})
4250
4299
  IncludeRelatedEntityNameFieldInBaseView: boolean;
4251
4300
 
4252
4301
  @Field({nullable: true})
4253
4302
  @MaxLength(510)
4254
4303
  RelatedEntityNameFieldMap?: string;
4255
4304
 
4256
- @Field({description: 'Controls the generated form in the MJ Explorer UI - defaults to a search box, other option is a drop down. Possible values are Search and Dropdown'})
4305
+ @Field({description: `Controls the generated form in the MJ Explorer UI - defaults to a search box, other option is a drop down. Possible values are Search and Dropdown`})
4257
4306
  @MaxLength(40)
4258
4307
  RelatedEntityDisplayType: string;
4259
4308
 
4260
- @Field({nullable: true, description: 'Optional, used for "Soft Keys" to link records to different entity/record combinations on a per-record basis (for example the FileEntityRecordLink table has an EntityID/RecordID field pair. For that entity, the RecordID specifies "EntityID" for this field. This information allows MJ to detect soft keys/links for dependency detection, merging and for preventing orphaned soft-linked records during delete operations.'})
4309
+ @Field({nullable: true, description: `Optional, used for "Soft Keys" to link records to different entity/record combinations on a per-record basis (for example the FileEntityRecordLink table has an EntityID/RecordID field pair. For that entity, the RecordID specifies "EntityID" for this field. This information allows MJ to detect soft keys/links for dependency detection, merging and for preventing orphaned soft-linked records during delete operations.`})
4261
4310
  @MaxLength(200)
4262
4311
  EntityIDFieldName?: string;
4263
4312
 
@@ -4269,6 +4318,17 @@ export class EntityField_ {
4269
4318
  @MaxLength(10)
4270
4319
  _mj__UpdatedAt: Date;
4271
4320
 
4321
+ @Field({nullable: true, description: `A comma-delimited string indicating the default scope for field visibility. Options include Users, Admins, AI, and All. Defaults to All when NULL. This is used for a simple method of filtering field defaults for visibility, not security enforcement.`})
4322
+ @MaxLength(200)
4323
+ ScopeDefault?: string;
4324
+
4325
+ @Field(() => Boolean, {description: `Indicates whether the related entity information should be automatically updated from the database schema. When set to 0, relationships not part of the database schema can be manually defined at the application and AI agent level. Defaults to 1.`})
4326
+ AutoUpdateRelatedEntityInfo: boolean;
4327
+
4328
+ @Field({description: `Determines whether values for the field should be included when the schema is packed. Options: Auto (include manually set or auto-derived values), None (exclude all values), All (include all distinct values from the table). Defaults to Auto.`})
4329
+ @MaxLength(20)
4330
+ ValuesToPackWithSchema: string;
4331
+
4272
4332
  @Field()
4273
4333
  @MaxLength(510)
4274
4334
  Entity: string;
@@ -4400,6 +4460,15 @@ export class CreateEntityFieldInput {
4400
4460
 
4401
4461
  @Field({ nullable: true })
4402
4462
  EntityIDFieldName?: string;
4463
+
4464
+ @Field({ nullable: true })
4465
+ ScopeDefault?: string;
4466
+
4467
+ @Field(() => Boolean)
4468
+ AutoUpdateRelatedEntityInfo: boolean;
4469
+
4470
+ @Field()
4471
+ ValuesToPackWithSchema: string;
4403
4472
  }
4404
4473
 
4405
4474
 
@@ -4489,6 +4558,15 @@ export class UpdateEntityFieldInput {
4489
4558
  @Field({ nullable: true })
4490
4559
  EntityIDFieldName?: string;
4491
4560
 
4561
+ @Field({ nullable: true })
4562
+ ScopeDefault?: string;
4563
+
4564
+ @Field(() => Boolean)
4565
+ AutoUpdateRelatedEntityInfo: boolean;
4566
+
4567
+ @Field()
4568
+ ValuesToPackWithSchema: string;
4569
+
4492
4570
  @Field(() => [KeyValuePairInput], { nullable: true })
4493
4571
  OldValues___?: KeyValuePairInput[];
4494
4572
  }
@@ -4590,7 +4668,7 @@ export class EntityFieldResolver extends ResolverBase {
4590
4668
  //****************************************************************************
4591
4669
  // ENTITY CLASS for Entities
4592
4670
  //****************************************************************************
4593
- @ObjectType({ description: 'Catalog of all entities across all schemas' })
4671
+ @ObjectType({ description: `Catalog of all entities across all schemas` })
4594
4672
  export class Entity_ {
4595
4673
  @Field()
4596
4674
  @MaxLength(16)
@@ -4611,7 +4689,7 @@ export class Entity_ {
4611
4689
  @Field({nullable: true})
4612
4690
  Description?: string;
4613
4691
 
4614
- @Field(() => Boolean, {description: 'When set to 1 (default), whenever a description is modified in the underlying view (first choice) or table (second choice), the Description column in the entity definition will be automatically updated. If you never set metadata in the database directly, you can leave this alone. However, if you have metadata set in the database level for description, and you want to provide a DIFFERENT description in this entity definition, turn this bit off and then set the Description field and future CodeGen runs will NOT override the Description field here.'})
4692
+ @Field(() => Boolean, {description: `When set to 1 (default), whenever a description is modified in the underlying view (first choice) or table (second choice), the Description column in the entity definition will be automatically updated. If you never set metadata in the database directly, you can leave this alone. However, if you have metadata set in the database level for description, and you want to provide a DIFFERENT description in this entity definition, turn this bit off and then set the Description field and future CodeGen runs will NOT override the Description field here.`})
4615
4693
  AutoUpdateDescription: boolean;
4616
4694
 
4617
4695
  @Field()
@@ -4622,7 +4700,7 @@ export class Entity_ {
4622
4700
  @MaxLength(510)
4623
4701
  BaseView: string;
4624
4702
 
4625
- @Field(() => Boolean, {description: 'When set to 0, CodeGen no longer generates a base view for the entity.'})
4703
+ @Field(() => Boolean, {description: `When set to 0, CodeGen no longer generates a base view for the entity.`})
4626
4704
  BaseViewGenerated: boolean;
4627
4705
 
4628
4706
  @Field()
@@ -4632,34 +4710,34 @@ export class Entity_ {
4632
4710
  @Field(() => Boolean)
4633
4711
  VirtualEntity: boolean;
4634
4712
 
4635
- @Field(() => Boolean, {description: 'When set to 1, changes made via the MemberJunction architecture will result in tracking records being created in the RecordChange table. In addition, when turned on CodeGen will ensure that your table has two fields: __mj_CreatedAt and __mj_UpdatedAt which are special fields used in conjunction with the RecordChange table to track changes to rows in your entity.'})
4713
+ @Field(() => Boolean, {description: `When set to 1, changes made via the MemberJunction architecture will result in tracking records being created in the RecordChange table. In addition, when turned on CodeGen will ensure that your table has two fields: __mj_CreatedAt and __mj_UpdatedAt which are special fields used in conjunction with the RecordChange table to track changes to rows in your entity.`})
4636
4714
  TrackRecordChanges: boolean;
4637
4715
 
4638
- @Field(() => Boolean, {description: 'When set to 1, accessing a record by an end-user will result in an Audit Log record being created'})
4716
+ @Field(() => Boolean, {description: `When set to 1, accessing a record by an end-user will result in an Audit Log record being created`})
4639
4717
  AuditRecordAccess: boolean;
4640
4718
 
4641
- @Field(() => Boolean, {description: 'When set to 1, users running a view against this entity will result in an Audit Log record being created.'})
4719
+ @Field(() => Boolean, {description: `When set to 1, users running a view against this entity will result in an Audit Log record being created.`})
4642
4720
  AuditViewRuns: boolean;
4643
4721
 
4644
- @Field(() => Boolean, {description: 'If set to 0, the entity will not be available at all in the GraphQL API or the object model.'})
4722
+ @Field(() => Boolean, {description: `If set to 0, the entity will not be available at all in the GraphQL API or the object model.`})
4645
4723
  IncludeInAPI: boolean;
4646
4724
 
4647
- @Field(() => Boolean, {description: 'If set to 1, a GraphQL query will be enabled that allows access to all rows in the entity.'})
4725
+ @Field(() => Boolean, {description: `If set to 1, a GraphQL query will be enabled that allows access to all rows in the entity.`})
4648
4726
  AllowAllRowsAPI: boolean;
4649
4727
 
4650
- @Field(() => Boolean, {description: 'Global flag controlling if updates are allowed for any user, or not. If set to 1, a GraqhQL mutation and stored procedure are created. Permissions are still required to perform the action but if this flag is set to 0, no user will be able to perform the action.'})
4728
+ @Field(() => Boolean, {description: `Global flag controlling if updates are allowed for any user, or not. If set to 1, a GraqhQL mutation and stored procedure are created. Permissions are still required to perform the action but if this flag is set to 0, no user will be able to perform the action.`})
4651
4729
  AllowUpdateAPI: boolean;
4652
4730
 
4653
- @Field(() => Boolean, {description: 'Global flag controlling if creates are allowed for any user, or not. If set to 1, a GraqhQL mutation and stored procedure are created. Permissions are still required to perform the action but if this flag is set to 0, no user will be able to perform the action.'})
4731
+ @Field(() => Boolean, {description: `Global flag controlling if creates are allowed for any user, or not. If set to 1, a GraqhQL mutation and stored procedure are created. Permissions are still required to perform the action but if this flag is set to 0, no user will be able to perform the action.`})
4654
4732
  AllowCreateAPI: boolean;
4655
4733
 
4656
- @Field(() => Boolean, {description: 'Global flag controlling if deletes are allowed for any user, or not. If set to 1, a GraqhQL mutation and stored procedure are created. Permissions are still required to perform the action but if this flag is set to 0, no user will be able to perform the action.'})
4734
+ @Field(() => Boolean, {description: `Global flag controlling if deletes are allowed for any user, or not. If set to 1, a GraqhQL mutation and stored procedure are created. Permissions are still required to perform the action but if this flag is set to 0, no user will be able to perform the action.`})
4657
4735
  AllowDeleteAPI: boolean;
4658
4736
 
4659
- @Field(() => Boolean, {description: 'Set to 1 if a custom resolver has been created for the entity.'})
4737
+ @Field(() => Boolean, {description: `Set to 1 if a custom resolver has been created for the entity.`})
4660
4738
  CustomResolverAPI: boolean;
4661
4739
 
4662
- @Field(() => Boolean, {description: 'Enabling this bit will result in search being possible at the API and UI layers'})
4740
+ @Field(() => Boolean, {description: `Enabling this bit will result in search being possible at the API and UI layers`})
4663
4741
  AllowUserSearchAPI: boolean;
4664
4742
 
4665
4743
  @Field(() => Boolean)
@@ -4710,21 +4788,21 @@ export class Entity_ {
4710
4788
  @Field(() => Boolean)
4711
4789
  spDeleteGenerated: boolean;
4712
4790
 
4713
- @Field(() => Boolean, {description: 'When set to 1, the deleted spDelete will pre-process deletion to related entities that have 1:M cardinality with this entity. This does not have effect if spDeleteGenerated = 0'})
4791
+ @Field(() => Boolean, {description: `When set to 1, the deleted spDelete will pre-process deletion to related entities that have 1:M cardinality with this entity. This does not have effect if spDeleteGenerated = 0`})
4714
4792
  CascadeDeletes: boolean;
4715
4793
 
4716
- @Field({description: 'Hard deletes physically remove rows from the underlying BaseTable. Soft deletes do not remove rows but instead mark the row as deleted by using the special field __mj_DeletedAt which will automatically be added to the entity\'s basetable by the CodeGen tool.'})
4794
+ @Field({description: `Hard deletes physically remove rows from the underlying BaseTable. Soft deletes do not remove rows but instead mark the row as deleted by using the special field __mj_DeletedAt which will automatically be added to the entity's basetable by the CodeGen tool.`})
4717
4795
  @MaxLength(20)
4718
4796
  DeleteType: string;
4719
4797
 
4720
- @Field(() => Boolean, {description: 'This field must be turned on in order to enable merging of records for the entity. For AllowRecordMerge to be turned on, AllowDeleteAPI must be set to 1, and DeleteType must be set to Soft'})
4798
+ @Field(() => Boolean, {description: `This field must be turned on in order to enable merging of records for the entity. For AllowRecordMerge to be turned on, AllowDeleteAPI must be set to 1, and DeleteType must be set to Soft`})
4721
4799
  AllowRecordMerge: boolean;
4722
4800
 
4723
- @Field({nullable: true, description: 'When specified, this stored procedure is used to find matching records in this particular entity. The convention is to pass in the primary key(s) columns for the given entity to the procedure and the return will be zero to many rows where there is a column for each primary key field(s) and a ProbabilityScore (numeric(1,12)) column that has a 0 to 1 value of the probability of a match.'})
4801
+ @Field({nullable: true, description: `When specified, this stored procedure is used to find matching records in this particular entity. The convention is to pass in the primary key(s) columns for the given entity to the procedure and the return will be zero to many rows where there is a column for each primary key field(s) and a ProbabilityScore (numeric(1,12)) column that has a 0 to 1 value of the probability of a match.`})
4724
4802
  @MaxLength(510)
4725
4803
  spMatch?: string;
4726
4804
 
4727
- @Field({description: 'When another entity links to this entity with a foreign key, this is the default component type that will be used in the UI. CodeGen will populate the RelatedEntityDisplayType column in the Entity Fields entity with whatever is provided here whenever a new foreign key is detected by CodeGen. The selection can be overridden on a per-foreign-key basis in each row of the Entity Fields entity.'})
4805
+ @Field({description: `When another entity links to this entity with a foreign key, this is the default component type that will be used in the UI. CodeGen will populate the RelatedEntityDisplayType column in the Entity Fields entity with whatever is provided here whenever a new foreign key is detected by CodeGen. The selection can be overridden on a per-foreign-key basis in each row of the Entity Fields entity.`})
4728
4806
  @MaxLength(40)
4729
4807
  RelationshipDefaultDisplayType: string;
4730
4808
 
@@ -4739,11 +4817,11 @@ export class Entity_ {
4739
4817
  @MaxLength(510)
4740
4818
  EntityObjectSubclassImport?: string;
4741
4819
 
4742
- @Field({nullable: true, description: 'Used to specify a field within the entity that in turn contains the field name that will be used for record-level communication preferences. For example in a hypothetical entity called Contacts, say there is a field called PreferredComm and that field had possible values of Email1, SMS, and Phone, and those value in turn corresponded to field names in the entity. Each record in the Contacts entity could have a specific preference for which field would be used for communication. The MJ Communication Framework will use this information when available, as a priority ahead of the data in the Entity Communication Fields entity which is entity-level and not record-level.'})
4820
+ @Field({nullable: true, description: `Used to specify a field within the entity that in turn contains the field name that will be used for record-level communication preferences. For example in a hypothetical entity called Contacts, say there is a field called PreferredComm and that field had possible values of Email1, SMS, and Phone, and those value in turn corresponded to field names in the entity. Each record in the Contacts entity could have a specific preference for which field would be used for communication. The MJ Communication Framework will use this information when available, as a priority ahead of the data in the Entity Communication Fields entity which is entity-level and not record-level.`})
4743
4821
  @MaxLength(510)
4744
4822
  PreferredCommunicationField?: string;
4745
4823
 
4746
- @Field({nullable: true, description: 'Optional, specify an icon (CSS Class) for each entity for display in the UI'})
4824
+ @Field({nullable: true, description: `Optional, specify an icon (CSS Class) for each entity for display in the UI`})
4747
4825
  @MaxLength(1000)
4748
4826
  Icon?: string;
4749
4827
 
@@ -4755,6 +4833,24 @@ export class Entity_ {
4755
4833
  @MaxLength(10)
4756
4834
  _mj__UpdatedAt: Date;
4757
4835
 
4836
+ @Field({nullable: true, description: `Optional, comma-delimited string indicating the default scope for entity visibility. Options include Users, Admins, AI, and All. Defaults to All when NULL. This is used for simple defaults for filtering entity visibility, not security enforcement.`})
4837
+ @MaxLength(200)
4838
+ ScopeDefault?: string;
4839
+
4840
+ @Field({description: `Determines how entity rows should be packaged for external use. Options include None, Sample, and All. Defaults to None.`})
4841
+ @MaxLength(40)
4842
+ RowsToPackWithSchema: string;
4843
+
4844
+ @Field({description: `Defines the sampling method for row packing when RowsToPackWithSchema is set to Sample. Options include random, top n, and bottom n. Defaults to random.`})
4845
+ @MaxLength(40)
4846
+ RowsToPackSampleMethod: string;
4847
+
4848
+ @Field(() => Int, {description: `The number of rows to pack when RowsToPackWithSchema is set to Sample, based on the designated sampling method. Defaults to 0.`})
4849
+ RowsToPackSampleCount: number;
4850
+
4851
+ @Field({nullable: true, description: `An optional ORDER BY clause for row packing when RowsToPackWithSchema is set to Sample. Allows custom ordering for selected entity data when using top n and bottom n.`})
4852
+ RowsToPackSampleOrder?: string;
4853
+
4758
4854
  @Field({nullable: true})
4759
4855
  CodeName?: string;
4760
4856
 
@@ -5016,6 +5112,21 @@ export class CreateEntityInput {
5016
5112
 
5017
5113
  @Field({ nullable: true })
5018
5114
  Icon?: string;
5115
+
5116
+ @Field({ nullable: true })
5117
+ ScopeDefault?: string;
5118
+
5119
+ @Field()
5120
+ RowsToPackWithSchema: string;
5121
+
5122
+ @Field()
5123
+ RowsToPackSampleMethod: string;
5124
+
5125
+ @Field(() => Int)
5126
+ RowsToPackSampleCount: number;
5127
+
5128
+ @Field({ nullable: true })
5129
+ RowsToPackSampleOrder?: string;
5019
5130
  }
5020
5131
 
5021
5132
 
@@ -5153,6 +5264,21 @@ export class UpdateEntityInput {
5153
5264
  @Field({ nullable: true })
5154
5265
  Icon?: string;
5155
5266
 
5267
+ @Field({ nullable: true })
5268
+ ScopeDefault?: string;
5269
+
5270
+ @Field()
5271
+ RowsToPackWithSchema: string;
5272
+
5273
+ @Field()
5274
+ RowsToPackSampleMethod: string;
5275
+
5276
+ @Field(() => Int)
5277
+ RowsToPackSampleCount: number;
5278
+
5279
+ @Field({ nullable: true })
5280
+ RowsToPackSampleOrder?: string;
5281
+
5156
5282
  @Field(() => [KeyValuePairInput], { nullable: true })
5157
5283
  OldValues___?: KeyValuePairInput[];
5158
5284
  }
@@ -5534,7 +5660,7 @@ export class EntityResolverBase extends ResolverBase {
5534
5660
  //****************************************************************************
5535
5661
  // ENTITY CLASS for Users
5536
5662
  //****************************************************************************
5537
- @ObjectType({ description: 'A list of all users who have or had access to the system' })
5663
+ @ObjectType({ description: `A list of all users who have or had access to the system` })
5538
5664
  export class User_ {
5539
5665
  @Field()
5540
5666
  @MaxLength(16)
@@ -6198,7 +6324,7 @@ export class UserResolverBase extends ResolverBase {
6198
6324
  //****************************************************************************
6199
6325
  // ENTITY CLASS for Entity Relationships
6200
6326
  //****************************************************************************
6201
- @ObjectType({ description: 'Metadata about relationships between entities including display preferences for the UI' })
6327
+ @ObjectType({ description: `Metadata about relationships between entities including display preferences for the UI` })
6202
6328
  export class EntityRelationship_ {
6203
6329
  @Field()
6204
6330
  @MaxLength(16)
@@ -6208,7 +6334,7 @@ export class EntityRelationship_ {
6208
6334
  @MaxLength(16)
6209
6335
  EntityID: string;
6210
6336
 
6211
- @Field(() => Int, {description: 'Used for display order in generated forms and in other places in the UI where relationships for an entity are shown'})
6337
+ @Field(() => Int, {description: `Used for display order in generated forms and in other places in the UI where relationships for an entity are shown`})
6212
6338
  Sequence: number;
6213
6339
 
6214
6340
  @Field()
@@ -6245,22 +6371,22 @@ export class EntityRelationship_ {
6245
6371
  @MaxLength(510)
6246
6372
  JoinEntityInverseJoinField?: string;
6247
6373
 
6248
- @Field(() => Boolean, {description: 'When unchecked the relationship will NOT be displayed on the generated form'})
6374
+ @Field(() => Boolean, {description: `When unchecked the relationship will NOT be displayed on the generated form`})
6249
6375
  DisplayInForm: boolean;
6250
6376
 
6251
6377
  @Field()
6252
6378
  @MaxLength(100)
6253
6379
  DisplayLocation: string;
6254
6380
 
6255
- @Field({nullable: true, description: 'Optional, when specified this value overrides the related entity name for the label on the tab'})
6381
+ @Field({nullable: true, description: `Optional, when specified this value overrides the related entity name for the label on the tab`})
6256
6382
  @MaxLength(510)
6257
6383
  DisplayName?: string;
6258
6384
 
6259
- @Field({description: 'When Related Entity Icon - uses the icon from the related entity, if one exists. When Custom, uses the value in the DisplayIcon field in this record, and when None, no icon is displayed'})
6385
+ @Field({description: `When Related Entity Icon - uses the icon from the related entity, if one exists. When Custom, uses the value in the DisplayIcon field in this record, and when None, no icon is displayed`})
6260
6386
  @MaxLength(100)
6261
6387
  DisplayIconType: string;
6262
6388
 
6263
- @Field({nullable: true, description: 'If specified, the icon '})
6389
+ @Field({nullable: true, description: `If specified, the icon `})
6264
6390
  @MaxLength(510)
6265
6391
  DisplayIcon?: string;
6266
6392
 
@@ -6272,7 +6398,7 @@ export class EntityRelationship_ {
6272
6398
  @MaxLength(16)
6273
6399
  DisplayComponentID?: string;
6274
6400
 
6275
- @Field({nullable: true, description: 'If DisplayComponentID is specified, this field can optionally be used to track component-specific and relationship-specific configuration details that will be used by CodeGen to provide to the display component selected.'})
6401
+ @Field({nullable: true, description: `If DisplayComponentID is specified, this field can optionally be used to track component-specific and relationship-specific configuration details that will be used by CodeGen to provide to the display component selected.`})
6276
6402
  DisplayComponentConfiguration?: string;
6277
6403
 
6278
6404
  @Field()
@@ -6283,6 +6409,9 @@ export class EntityRelationship_ {
6283
6409
  @MaxLength(10)
6284
6410
  _mj__UpdatedAt: Date;
6285
6411
 
6412
+ @Field(() => Boolean, {description: `Indicates whether this relationship should be automatically updated by CodeGen. When set to 0, the record will not be modified by CodeGen. Defaults to 1.`})
6413
+ AutoUpdateFromSchema: boolean;
6414
+
6286
6415
  @Field()
6287
6416
  @MaxLength(510)
6288
6417
  Entity: string;
@@ -6380,6 +6509,9 @@ export class CreateEntityRelationshipInput {
6380
6509
 
6381
6510
  @Field({ nullable: true })
6382
6511
  DisplayComponentConfiguration?: string;
6512
+
6513
+ @Field(() => Boolean)
6514
+ AutoUpdateFromSchema: boolean;
6383
6515
  }
6384
6516
 
6385
6517
 
@@ -6445,6 +6577,9 @@ export class UpdateEntityRelationshipInput {
6445
6577
  @Field({ nullable: true })
6446
6578
  DisplayComponentConfiguration?: string;
6447
6579
 
6580
+ @Field(() => Boolean)
6581
+ AutoUpdateFromSchema: boolean;
6582
+
6448
6583
  @Field(() => [KeyValuePairInput], { nullable: true })
6449
6584
  OldValues___?: KeyValuePairInput[];
6450
6585
  }
@@ -6697,7 +6832,7 @@ export class UserRecordLogResolver extends ResolverBase {
6697
6832
  //****************************************************************************
6698
6833
  // ENTITY CLASS for User Views
6699
6834
  //****************************************************************************
6700
- @ObjectType({ description: 'Views are sets of records within a given entity defined by filtering rules. Views can be used programatically to retrieve dynamic sets of data and in user interfaces like MJ Explorer for end-user consumption.' })
6835
+ @ObjectType({ description: `Views are sets of records within a given entity defined by filtering rules. Views can be used programatically to retrieve dynamic sets of data and in user interfaces like MJ Explorer for end-user consumption.` })
6701
6836
  export class UserView_ {
6702
6837
  @Field()
6703
6838
  @MaxLength(16)
@@ -7071,14 +7206,14 @@ export class CompanyIntegrationRun_ {
7071
7206
  @MaxLength(10)
7072
7207
  _mj__UpdatedAt: Date;
7073
7208
 
7074
- @Field({description: 'Status of the integration run. Possible values: Pending, In Progress, Success, Failed.'})
7209
+ @Field({description: `Status of the integration run. Possible values: Pending, In Progress, Success, Failed.`})
7075
7210
  @MaxLength(40)
7076
7211
  Status: string;
7077
7212
 
7078
- @Field({nullable: true, description: 'Optional error log information for the integration run.'})
7213
+ @Field({nullable: true, description: `Optional error log information for the integration run.`})
7079
7214
  ErrorLog?: string;
7080
7215
 
7081
- @Field({nullable: true, description: 'Optional configuration data in JSON format for the request that started the integration run for audit purposes.'})
7216
+ @Field({nullable: true, description: `Optional configuration data in JSON format for the request that started the integration run for audit purposes.`})
7082
7217
  ConfigData?: string;
7083
7218
 
7084
7219
  @Field()
@@ -7656,7 +7791,7 @@ export class ErrorLogResolver extends ResolverBase {
7656
7791
  //****************************************************************************
7657
7792
  // ENTITY CLASS for Applications
7658
7793
  //****************************************************************************
7659
- @ObjectType({ description: 'Applications are used to group entities in the user interface for ease of user access' })
7794
+ @ObjectType({ description: `Applications are used to group entities in the user interface for ease of user access` })
7660
7795
  export class Application_ {
7661
7796
  @Field()
7662
7797
  @MaxLength(16)
@@ -7669,11 +7804,11 @@ export class Application_ {
7669
7804
  @Field({nullable: true})
7670
7805
  Description?: string;
7671
7806
 
7672
- @Field({nullable: true, description: 'Specify the CSS class information for the display icon for each application.'})
7807
+ @Field({nullable: true, description: `Specify the CSS class information for the display icon for each application.`})
7673
7808
  @MaxLength(1000)
7674
7809
  Icon?: string;
7675
7810
 
7676
- @Field(() => Boolean, {description: 'If turned on, when a new user first uses the MJ Explorer app, the application records with this turned on will have this application included in their selected application list.'})
7811
+ @Field(() => Boolean, {description: `If turned on, when a new user first uses the MJ Explorer app, the application records with this turned on will have this application included in their selected application list.`})
7677
7812
  DefaultForNewUser: boolean;
7678
7813
 
7679
7814
  @Field()
@@ -7851,7 +7986,7 @@ export class ApplicationResolver extends ResolverBase {
7851
7986
  //****************************************************************************
7852
7987
  // ENTITY CLASS for Application Entities
7853
7988
  //****************************************************************************
7854
- @ObjectType({ description: 'List of entities within each application. An application can have any number of entities and an entity can be part of any number of applications.' })
7989
+ @ObjectType({ description: `List of entities within each application. An application can have any number of entities and an entity can be part of any number of applications.` })
7855
7990
  export class ApplicationEntity_ {
7856
7991
  @Field()
7857
7992
  @MaxLength(16)
@@ -7868,7 +8003,7 @@ export class ApplicationEntity_ {
7868
8003
  @Field(() => Int)
7869
8004
  Sequence: number;
7870
8005
 
7871
- @Field(() => Boolean, {description: 'When set to 1, the entity will be included by default for a new user when they first access the application in question'})
8006
+ @Field(() => Boolean, {description: `When set to 1, the entity will be included by default for a new user when they first access the application in question`})
7872
8007
  DefaultForNewUser: boolean;
7873
8008
 
7874
8009
  @Field()
@@ -8026,7 +8161,7 @@ export class ApplicationEntityResolver extends ResolverBase {
8026
8161
  //****************************************************************************
8027
8162
  // ENTITY CLASS for Entity Permissions
8028
8163
  //****************************************************************************
8029
- @ObjectType({ description: 'Security settings for each entity' })
8164
+ @ObjectType({ description: `Security settings for each entity` })
8030
8165
  export class EntityPermission_ {
8031
8166
  @Field()
8032
8167
  @MaxLength(16)
@@ -8771,7 +8906,7 @@ export class CompanyIntegrationRunAPILogResolver extends ResolverBase {
8771
8906
  //****************************************************************************
8772
8907
  // ENTITY CLASS for Lists
8773
8908
  //****************************************************************************
8774
- @ObjectType({ description: 'Static lists are useful for controlling a set of data for a given entity. These can be used programatically for applications like logging and tracking long-running tasks and also by end users for tracking any particular list of records they want to directly control the set.' })
8909
+ @ObjectType({ description: `Static lists are useful for controlling a set of data for a given entity. These can be used programatically for applications like logging and tracking long-running tasks and also by end users for tracking any particular list of records they want to directly control the set.` })
8775
8910
  export class List_ {
8776
8911
  @Field()
8777
8912
  @MaxLength(16)
@@ -8990,7 +9125,7 @@ export class ListResolver extends ResolverBase {
8990
9125
  //****************************************************************************
8991
9126
  // ENTITY CLASS for List Details
8992
9127
  //****************************************************************************
8993
- @ObjectType({ description: 'Tracks the records within each list.' })
9128
+ @ObjectType({ description: `Tracks the records within each list.` })
8994
9129
  export class ListDetail_ {
8995
9130
  @Field()
8996
9131
  @MaxLength(16)
@@ -9015,11 +9150,11 @@ export class ListDetail_ {
9015
9150
  @MaxLength(10)
9016
9151
  _mj__UpdatedAt: Date;
9017
9152
 
9018
- @Field({description: 'Tracks the status of each individual list detail row to enable processing of various types and the use of the status column for filtering list detail rows within a list that are in a particular state.'})
9153
+ @Field({description: `Tracks the status of each individual list detail row to enable processing of various types and the use of the status column for filtering list detail rows within a list that are in a particular state.`})
9019
9154
  @MaxLength(60)
9020
9155
  Status: string;
9021
9156
 
9022
- @Field({nullable: true, description: 'Optional column that allows for tracking any additional data for each ListDetail row'})
9157
+ @Field({nullable: true, description: `Optional column that allows for tracking any additional data for each ListDetail row`})
9023
9158
  AdditionalData?: string;
9024
9159
 
9025
9160
  @Field()
@@ -9158,7 +9293,7 @@ export class ListDetailResolver extends ResolverBase {
9158
9293
  //****************************************************************************
9159
9294
  // ENTITY CLASS for User View Runs
9160
9295
  //****************************************************************************
9161
- @ObjectType({ description: 'User Views can be logged when run to capture the date and user that ran the view as well as the output results.' })
9296
+ @ObjectType({ description: `User Views can be logged when run to capture the date and user that ran the view as well as the output results.` })
9162
9297
  export class UserViewRun_ {
9163
9298
  @Field()
9164
9299
  @MaxLength(16)
@@ -9317,7 +9452,7 @@ export class UserViewRunResolver extends ResolverBase {
9317
9452
  //****************************************************************************
9318
9453
  // ENTITY CLASS for User View Run Details
9319
9454
  //****************************************************************************
9320
- @ObjectType({ description: 'Tracks the set of records that were included in each run of a given user view.' })
9455
+ @ObjectType({ description: `Tracks the set of records that were included in each run of a given user view.` })
9321
9456
  export class UserViewRunDetail_ {
9322
9457
  @Field()
9323
9458
  @MaxLength(16)
@@ -9619,17 +9754,17 @@ export class Workflow_ {
9619
9754
  @MaxLength(200)
9620
9755
  ExternalSystemRecordID: string;
9621
9756
 
9622
- @Field(() => Boolean, {description: 'If set to 1, the workflow will be run automatically on the interval specified by the AutoRunIntervalType and AutoRunInterval fields'})
9757
+ @Field(() => Boolean, {description: `If set to 1, the workflow will be run automatically on the interval specified by the AutoRunIntervalType and AutoRunInterval fields`})
9623
9758
  AutoRunEnabled: boolean;
9624
9759
 
9625
- @Field({nullable: true, description: 'Minutes, Hours, Days, Weeks, Months, Years'})
9760
+ @Field({nullable: true, description: `Minutes, Hours, Days, Weeks, Months, Years`})
9626
9761
  @MaxLength(40)
9627
9762
  AutoRunIntervalUnits?: string;
9628
9763
 
9629
- @Field(() => Int, {nullable: true, description: 'The interval, denominated in the units specified in the AutoRunIntervalUnits column, between auto runs of this workflow.'})
9764
+ @Field(() => Int, {nullable: true, description: `The interval, denominated in the units specified in the AutoRunIntervalUnits column, between auto runs of this workflow.`})
9630
9765
  AutoRunInterval?: number;
9631
9766
 
9632
- @Field({nullable: true, description: 'If specified, this subclass key, via the ClassFactory, will be instantiated, to execute this workflow. If not specified the WorkflowBase class will be used by default.'})
9767
+ @Field({nullable: true, description: `If specified, this subclass key, via the ClassFactory, will be instantiated, to execute this workflow. If not specified the WorkflowBase class will be used by default.`})
9633
9768
  @MaxLength(400)
9634
9769
  SubclassName?: string;
9635
9770
 
@@ -9897,12 +10032,18 @@ export class WorkflowEngineResolver extends ResolverBase {
9897
10032
  return this.UpdateRecord('Workflow Engines', input, dataSource, userPayload, pubSub);
9898
10033
  }
9899
10034
 
10035
+ @Mutation(() => WorkflowEngine_)
10036
+ async DeleteWorkflowEngine(@Arg('ID', () => String) ID: string, @Arg('options___', () => DeleteOptionsInput) options: DeleteOptionsInput, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
10037
+ const key = new CompositeKey([{FieldName: 'ID', Value: ID}]);
10038
+ return this.DeleteRecord('Workflow Engines', key, options, dataSource, userPayload, pubSub);
10039
+ }
10040
+
9900
10041
  }
9901
10042
 
9902
10043
  //****************************************************************************
9903
10044
  // ENTITY CLASS for Record Changes
9904
10045
  //****************************************************************************
9905
- @ObjectType({ description: 'For entities that have TrackRecordChanges=1, Record Changes will store the history of all changes made within the system. For integrations you can directly add values here if you have inbound signals indicating records were changed in a source system. This entity only automatically captures Record Changes if they were made within the system.' })
10046
+ @ObjectType({ description: `For entities that have TrackRecordChanges=1, Record Changes will store the history of all changes made within the system. For integrations you can directly add values here if you have inbound signals indicating records were changed in a source system. This entity only automatically captures Record Changes if they were made within the system.` })
9906
10047
  export class RecordChange_ {
9907
10048
  @Field()
9908
10049
  @MaxLength(16)
@@ -9920,28 +10061,28 @@ export class RecordChange_ {
9920
10061
  @MaxLength(16)
9921
10062
  UserID: string;
9922
10063
 
9923
- @Field({description: 'Create, Update, or Delete'})
10064
+ @Field({description: `Create, Update, or Delete`})
9924
10065
  @MaxLength(40)
9925
10066
  Type: string;
9926
10067
 
9927
- @Field({description: 'Internal or External'})
10068
+ @Field({description: `Internal or External`})
9928
10069
  @MaxLength(40)
9929
10070
  Source: string;
9930
10071
 
9931
- @Field({description: 'The date/time that the change occured.'})
10072
+ @Field({description: `The date/time that the change occured.`})
9932
10073
  @MaxLength(10)
9933
10074
  ChangedAt: Date;
9934
10075
 
9935
- @Field({description: 'JSON structure that describes what was changed in a structured format.'})
10076
+ @Field({description: `JSON structure that describes what was changed in a structured format.`})
9936
10077
  ChangesJSON: string;
9937
10078
 
9938
- @Field({description: 'A generated, human-readable description of what was changed.'})
10079
+ @Field({description: `A generated, human-readable description of what was changed.`})
9939
10080
  ChangesDescription: string;
9940
10081
 
9941
- @Field({description: 'A complete snapshot of the record AFTER the change was applied in a JSON format that can be parsed.'})
10082
+ @Field({description: `A complete snapshot of the record AFTER the change was applied in a JSON format that can be parsed.`})
9942
10083
  FullRecordJSON: string;
9943
10084
 
9944
- @Field({description: 'For internal record changes generated within MJ, the status is immediately Complete. For external changes that are detected, the workflow starts off as Pending, then In Progress and finally either Complete or Error'})
10085
+ @Field({description: `For internal record changes generated within MJ, the status is immediately Complete. For external changes that are detected, the workflow starts off as Pending, then In Progress and finally either Complete or Error`})
9945
10086
  @MaxLength(100)
9946
10087
  Status: string;
9947
10088
 
@@ -10605,7 +10746,7 @@ export class Authorization_ {
10605
10746
  @Field(() => Boolean)
10606
10747
  IsActive: boolean;
10607
10748
 
10608
- @Field(() => Boolean, {description: 'When set to 1, Audit Log records are created whenever this authorization is invoked for a user'})
10749
+ @Field(() => Boolean, {description: `When set to 1, Audit Log records are created whenever this authorization is invoked for a user`})
10609
10750
  UseAuditLog: boolean;
10610
10751
 
10611
10752
  @Field({nullable: true})
@@ -11116,7 +11257,7 @@ export class EntityFieldValueResolver extends ResolverBase {
11116
11257
  //****************************************************************************
11117
11258
  // ENTITY CLASS for AI Models
11118
11259
  //****************************************************************************
11119
- @ObjectType({ description: 'Catalog of all AI Models configured in the system' })
11260
+ @ObjectType({ description: `Catalog of all AI Models configured in the system` })
11120
11261
  export class AIModel_ {
11121
11262
  @Field()
11122
11263
  @MaxLength(16)
@@ -11137,7 +11278,7 @@ export class AIModel_ {
11137
11278
  @MaxLength(16)
11138
11279
  AIModelTypeID: string;
11139
11280
 
11140
- @Field(() => Int, {nullable: true, description: 'Optional column that ranks the power of the AI model. Default is 0 and should be non-negative.'})
11281
+ @Field(() => Int, {nullable: true, description: `Optional column that ranks the power of the AI model. Default is 0 and should be non-negative.`})
11141
11282
  PowerRank?: number;
11142
11283
 
11143
11284
  @Field(() => Boolean)
@@ -11151,7 +11292,7 @@ export class AIModel_ {
11151
11292
  @MaxLength(510)
11152
11293
  DriverImportPath?: string;
11153
11294
 
11154
- @Field({nullable: true, description: 'The name of the model to use with API calls which might differ from the Name, if APIName is not provided, Name will be used for API calls'})
11295
+ @Field({nullable: true, description: `The name of the model to use with API calls which might differ from the Name, if APIName is not provided, Name will be used for API calls`})
11155
11296
  @MaxLength(200)
11156
11297
  APIName?: string;
11157
11298
 
@@ -11163,18 +11304,22 @@ export class AIModel_ {
11163
11304
  @MaxLength(10)
11164
11305
  _mj__UpdatedAt: Date;
11165
11306
 
11166
- @Field(() => Int, {nullable: true, description: 'Optional column that ranks the speed of the AI model. Default is 0 and should be non-negative.'})
11307
+ @Field(() => Int, {nullable: true, description: `Optional column that ranks the speed of the AI model. Default is 0 and should be non-negative.`})
11167
11308
  SpeedRank?: number;
11168
11309
 
11169
- @Field(() => Int, {nullable: true, description: 'Optional column that ranks the cost of the AI model. Default is 0 and should be non-negative.'})
11310
+ @Field(() => Int, {nullable: true, description: `Optional column that ranks the cost of the AI model. Default is 0 and should be non-negative.`})
11170
11311
  CostRank?: number;
11171
11312
 
11172
- @Field({nullable: true, description: 'This column stores unstructured text notes that provide insights into what the model is particularly good at and areas where it may not perform as well. These notes can be used by a human or an AI to determine if the model is a good fit for various purposes.'})
11313
+ @Field({nullable: true, description: `This column stores unstructured text notes that provide insights into what the model is particularly good at and areas where it may not perform as well. These notes can be used by a human or an AI to determine if the model is a good fit for various purposes.`})
11173
11314
  ModelSelectionInsights?: string;
11174
11315
 
11175
- @Field(() => Int, {nullable: true, description: 'Stores the maximum number of tokens that fit in the context window for the model.'})
11316
+ @Field(() => Int, {nullable: true, description: `Stores the maximum number of tokens that fit in the context window for the model.`})
11176
11317
  InputTokenLimit?: number;
11177
11318
 
11319
+ @Field({description: `A comma-delimited string indicating the supported response formats for the AI model. Options include Any, Text, Markdown, JSON, and ModelSpecific. Defaults to Any if not specified.`})
11320
+ @MaxLength(200)
11321
+ SupportedResponseFormats: string;
11322
+
11178
11323
  @Field()
11179
11324
  @MaxLength(100)
11180
11325
  AIModelType: string;
@@ -11248,6 +11393,9 @@ export class CreateAIModelInput {
11248
11393
 
11249
11394
  @Field(() => Int, { nullable: true })
11250
11395
  InputTokenLimit?: number;
11396
+
11397
+ @Field()
11398
+ SupportedResponseFormats: string;
11251
11399
  }
11252
11400
 
11253
11401
 
@@ -11298,6 +11446,9 @@ export class UpdateAIModelInput {
11298
11446
  @Field(() => Int, { nullable: true })
11299
11447
  InputTokenLimit?: number;
11300
11448
 
11449
+ @Field()
11450
+ SupportedResponseFormats: string;
11451
+
11301
11452
  @Field(() => [KeyValuePairInput], { nullable: true })
11302
11453
  OldValues___?: KeyValuePairInput[];
11303
11454
  }
@@ -11455,7 +11606,7 @@ export class AIModelResolver extends ResolverBase {
11455
11606
  //****************************************************************************
11456
11607
  // ENTITY CLASS for AI Actions
11457
11608
  //****************************************************************************
11458
- @ObjectType({ description: 'List of all actions that are possible across all AI Models' })
11609
+ @ObjectType({ description: `List of all actions that are possible across all AI Models` })
11459
11610
  export class AIAction_ {
11460
11611
  @Field()
11461
11612
  @MaxLength(16)
@@ -11652,7 +11803,7 @@ export class AIActionResolver extends ResolverBase {
11652
11803
  //****************************************************************************
11653
11804
  // ENTITY CLASS for AI Model Actions
11654
11805
  //****************************************************************************
11655
- @ObjectType({ description: 'Tracks the actions supported by each AI Model' })
11806
+ @ObjectType({ description: `Tracks the actions supported by each AI Model` })
11656
11807
  export class AIModelAction_ {
11657
11808
  @Field()
11658
11809
  @MaxLength(16)
@@ -11813,7 +11964,7 @@ export class AIModelActionResolver extends ResolverBase {
11813
11964
  //****************************************************************************
11814
11965
  // ENTITY CLASS for Entity AI Actions
11815
11966
  //****************************************************************************
11816
- @ObjectType({ description: 'Tracks the AI actions that should be invoked based on changes to records within a given entity.' })
11967
+ @ObjectType({ description: `Tracks the AI actions that should be invoked based on changes to records within a given entity.` })
11817
11968
  export class EntityAIAction_ {
11818
11969
  @Field()
11819
11970
  @MaxLength(16)
@@ -12069,7 +12220,7 @@ export class EntityAIActionResolver extends ResolverBase {
12069
12220
  //****************************************************************************
12070
12221
  // ENTITY CLASS for AI Model Types
12071
12222
  //****************************************************************************
12072
- @ObjectType({ description: 'Types of AI Models' })
12223
+ @ObjectType({ description: `Types of AI Models` })
12073
12224
  export class AIModelType_ {
12074
12225
  @Field()
12075
12226
  @MaxLength(16)
@@ -12324,7 +12475,7 @@ export class QueueTypeResolver extends ResolverBase {
12324
12475
  //****************************************************************************
12325
12476
  // ENTITY CLASS for Queues
12326
12477
  //****************************************************************************
12327
- @ObjectType({ description: 'Queues can be used to async execute long running tasks' })
12478
+ @ObjectType({ description: `Queues can be used to async execute long running tasks` })
12328
12479
  export class Queue_ {
12329
12480
  @Field()
12330
12481
  @MaxLength(16)
@@ -12805,7 +12956,7 @@ export class QueueTaskResolver extends ResolverBase {
12805
12956
  //****************************************************************************
12806
12957
  // ENTITY CLASS for Dashboards
12807
12958
  //****************************************************************************
12808
- @ObjectType({ description: 'Dashboards are used to group resources into a single display pane for an end-user' })
12959
+ @ObjectType({ description: `Dashboards are used to group resources into a single display pane for an end-user` })
12809
12960
  export class Dashboard_ {
12810
12961
  @Field()
12811
12962
  @MaxLength(16)
@@ -13743,7 +13894,7 @@ export class ResourceType_ {
13743
13894
  @MaxLength(10)
13744
13895
  _mj__UpdatedAt: Date;
13745
13896
 
13746
- @Field({nullable: true, description: 'Nullable foreign key to the ID column in Entities entity, representing the category entity. ASSUMPTION: If provided, the assumption is there is a self-referencing/recursive foreign key establishing a hierarchy within the Category Entity, commonly called ParentID, but it can be named anything.'})
13897
+ @Field({nullable: true, description: `Nullable foreign key to the ID column in Entities entity, representing the category entity. ASSUMPTION: If provided, the assumption is there is a self-referencing/recursive foreign key establishing a hierarchy within the Category Entity, commonly called ParentID, but it can be named anything.`})
13747
13898
  @MaxLength(16)
13748
13899
  CategoryEntityID?: string;
13749
13900
 
@@ -13857,7 +14008,7 @@ export class ResourceTypeResolver extends ResolverBase {
13857
14008
  //****************************************************************************
13858
14009
  // ENTITY CLASS for Tags
13859
14010
  //****************************************************************************
13860
- @ObjectType({ description: 'Tags are used to arbitrarily associate any record in any entity with addtional information.' })
14011
+ @ObjectType({ description: `Tags are used to arbitrarily associate any record in any entity with addtional information.` })
13861
14012
  export class Tag_ {
13862
14013
  @Field()
13863
14014
  @MaxLength(16)
@@ -13970,7 +14121,7 @@ export class TagResolver extends ResolverBase {
13970
14121
  //****************************************************************************
13971
14122
  // ENTITY CLASS for Tagged Items
13972
14123
  //****************************************************************************
13973
- @ObjectType({ description: 'Tracks the links between any record in any entity with Tags' })
14124
+ @ObjectType({ description: `Tracks the links between any record in any entity with Tags` })
13974
14125
  export class TaggedItem_ {
13975
14126
  @Field()
13976
14127
  @MaxLength(16)
@@ -14062,7 +14213,7 @@ export class TaggedItemResolver extends ResolverBase {
14062
14213
  //****************************************************************************
14063
14214
  // ENTITY CLASS for Workspaces
14064
14215
  //****************************************************************************
14065
- @ObjectType({ description: 'A user can have one or more workspaces' })
14216
+ @ObjectType({ description: `A user can have one or more workspaces` })
14066
14217
  export class Workspace_ {
14067
14218
  @Field()
14068
14219
  @MaxLength(16)
@@ -14222,7 +14373,7 @@ export class WorkspaceResolver extends ResolverBase {
14222
14373
  //****************************************************************************
14223
14374
  // ENTITY CLASS for Workspace Items
14224
14375
  //****************************************************************************
14225
- @ObjectType({ description: 'Tracks the resources that are active within a given worksapce' })
14376
+ @ObjectType({ description: `Tracks the resources that are active within a given worksapce` })
14226
14377
  export class WorkspaceItem_ {
14227
14378
  @Field()
14228
14379
  @MaxLength(16)
@@ -14413,7 +14564,7 @@ export class WorkspaceItemResolver extends ResolverBase {
14413
14564
  //****************************************************************************
14414
14565
  // ENTITY CLASS for Datasets
14415
14566
  //****************************************************************************
14416
- @ObjectType({ description: 'Cacheable sets of data that can span one or more items' })
14567
+ @ObjectType({ description: `Cacheable sets of data that can span one or more items` })
14417
14568
  export class Dataset_ {
14418
14569
  @Field()
14419
14570
  @MaxLength(16)
@@ -14503,7 +14654,7 @@ export class DatasetResolver extends ResolverBase {
14503
14654
  //****************************************************************************
14504
14655
  // ENTITY CLASS for Dataset Items
14505
14656
  //****************************************************************************
14506
- @ObjectType({ description: 'A single item in a Dataset and can be sourced from multiple methods.' })
14657
+ @ObjectType({ description: `A single item in a Dataset and can be sourced from multiple methods.` })
14507
14658
  export class DatasetItem_ {
14508
14659
  @Field()
14509
14660
  @MaxLength(16)
@@ -14542,7 +14693,7 @@ export class DatasetItem_ {
14542
14693
  @MaxLength(10)
14543
14694
  _mj__UpdatedAt: Date;
14544
14695
 
14545
- @Field({nullable: true, description: 'Optional column to store a comma-delimited list of columns for the DatasetItem'})
14696
+ @Field({nullable: true, description: `Optional column to store a comma-delimited list of columns for the DatasetItem`})
14546
14697
  Columns?: string;
14547
14698
 
14548
14699
  @Field()
@@ -14646,16 +14797,16 @@ export class ConversationDetail_ {
14646
14797
  @MaxLength(10)
14647
14798
  _mj__UpdatedAt: Date;
14648
14799
 
14649
- @Field(() => Int, {nullable: true, description: 'This column is used to capture user feedback as a rating scale. The scale ranges from 1 to 10, where 1 might represent thumbs down, and 10 might represent thumbs up or the highest rating in a star-based scale.'})
14800
+ @Field(() => Int, {nullable: true, description: `This column is used to capture user feedback as a rating scale. The scale ranges from 1 to 10, where 1 might represent thumbs down, and 10 might represent thumbs up or the highest rating in a star-based scale.`})
14650
14801
  UserRating?: number;
14651
14802
 
14652
- @Field({nullable: true, description: 'This column is used to store user text feedback about a given AI response, describing what they liked or disliked.'})
14803
+ @Field({nullable: true, description: `This column is used to store user text feedback about a given AI response, describing what they liked or disliked.`})
14653
14804
  UserFeedback?: string;
14654
14805
 
14655
- @Field({nullable: true, description: 'This column stores human or AI-generated reflections on how to improve future responses based on the user feedback and the AI output generated for prior messages in the conversation.'})
14806
+ @Field({nullable: true, description: `This column stores human or AI-generated reflections on how to improve future responses based on the user feedback and the AI output generated for prior messages in the conversation.`})
14656
14807
  ReflectionInsights?: string;
14657
14808
 
14658
- @Field({nullable: true, description: 'This column optionally stores a summary of the entire conversation leading up to this particular conversation detail record. It is used in long-running conversations to optimize performance by summarizing earlier parts.'})
14809
+ @Field({nullable: true, description: `This column optionally stores a summary of the entire conversation leading up to this particular conversation detail record. It is used in long-running conversations to optimize performance by summarizing earlier parts.`})
14659
14810
  SummaryOfEarlierConversation?: string;
14660
14811
 
14661
14812
  @Field({nullable: true})
@@ -15274,7 +15425,7 @@ export class UserNotificationResolver extends ResolverBase {
15274
15425
  //****************************************************************************
15275
15426
  // ENTITY CLASS for Schema Info
15276
15427
  //****************************************************************************
15277
- @ObjectType({ description: 'Tracks the schemas in the system and the ID ranges that are valid for entities within each schema.' })
15428
+ @ObjectType({ description: `Tracks the schemas in the system and the ID ranges that are valid for entities within each schema.` })
15278
15429
  export class SchemaInfo_ {
15279
15430
  @Field()
15280
15431
  @MaxLength(16)
@@ -15986,11 +16137,11 @@ export class QueryField_ {
15986
16137
  @Field(() => Int)
15987
16138
  Sequence: number;
15988
16139
 
15989
- @Field({description: 'The base type, not including parameters, in SQL. For example this field would be nvarchar or decimal, and wouldn\'t include type parameters. The SQLFullType field provides that information.'})
16140
+ @Field({description: `The base type, not including parameters, in SQL. For example this field would be nvarchar or decimal, and wouldn't include type parameters. The SQLFullType field provides that information.`})
15990
16141
  @MaxLength(100)
15991
16142
  SQLBaseType: string;
15992
16143
 
15993
- @Field({description: 'The full SQL type for the field, for example datetime or nvarchar(10) etc.'})
16144
+ @Field({description: `The full SQL type for the field, for example datetime or nvarchar(10) etc.`})
15994
16145
  @MaxLength(200)
15995
16146
  SQLFullType: string;
15996
16147
 
@@ -16193,6 +16344,12 @@ export class QueryFieldResolver extends ResolverBase {
16193
16344
  return this.UpdateRecord('Query Fields', input, dataSource, userPayload, pubSub);
16194
16345
  }
16195
16346
 
16347
+ @Mutation(() => QueryField_)
16348
+ async DeleteQueryField(@Arg('ID', () => String) ID: string, @Arg('options___', () => DeleteOptionsInput) options: DeleteOptionsInput, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
16349
+ const key = new CompositeKey([{FieldName: 'ID', Value: ID}]);
16350
+ return this.DeleteRecord('Query Fields', key, options, dataSource, userPayload, pubSub);
16351
+ }
16352
+
16196
16353
  }
16197
16354
 
16198
16355
  //****************************************************************************
@@ -16383,7 +16540,7 @@ export class QueryCategoryResolver extends ResolverBase {
16383
16540
  //****************************************************************************
16384
16541
  // ENTITY CLASS for Queries
16385
16542
  //****************************************************************************
16386
- @ObjectType({ description: 'Catalog of stored queries. This is useful for any arbitrary query that is known to be performant and correct and can be reused. Queries can be viewed/run by a user, used programatically via RunQuery, and also used by AI systems for improved reliability instead of dynamically generated SQL. Queries can also improve security since they store the SQL instead of using dynamic SQL.' })
16543
+ @ObjectType({ description: `Catalog of stored queries. This is useful for any arbitrary query that is known to be performant and correct and can be reused. Queries can be viewed/run by a user, used programatically via RunQuery, and also used by AI systems for improved reliability instead of dynamically generated SQL. Queries can also improve security since they store the SQL instead of using dynamic SQL.` })
16387
16544
  export class Query_ {
16388
16545
  @Field()
16389
16546
  @MaxLength(16)
@@ -16419,10 +16576,10 @@ export class Query_ {
16419
16576
  @MaxLength(30)
16420
16577
  Status: string;
16421
16578
 
16422
- @Field(() => Int, {nullable: true, description: 'Value indicating the quality of the query, higher values mean a better quality'})
16579
+ @Field(() => Int, {nullable: true, description: `Value indicating the quality of the query, higher values mean a better quality`})
16423
16580
  QualityRank?: number;
16424
16581
 
16425
- @Field(() => Int, {nullable: true, description: 'Higher numbers indicate more execution overhead/time required. Useful for planning which queries to use in various scenarios.'})
16582
+ @Field(() => Int, {nullable: true, description: `Higher numbers indicate more execution overhead/time required. Useful for planning which queries to use in various scenarios.`})
16426
16583
  ExecutionCostRank?: number;
16427
16584
 
16428
16585
  @Field()
@@ -16638,6 +16795,12 @@ export class QueryResolver extends ResolverBase {
16638
16795
  return this.UpdateRecord('Queries', input, dataSource, userPayload, pubSub);
16639
16796
  }
16640
16797
 
16798
+ @Mutation(() => Query_)
16799
+ async DeleteQuery(@Arg('ID', () => String) ID: string, @Arg('options___', () => DeleteOptionsInput) options: DeleteOptionsInput, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
16800
+ const key = new CompositeKey([{FieldName: 'ID', Value: ID}]);
16801
+ return this.DeleteRecord('Queries', key, options, dataSource, userPayload, pubSub);
16802
+ }
16803
+
16641
16804
  }
16642
16805
 
16643
16806
  //****************************************************************************
@@ -16776,6 +16939,12 @@ export class QueryPermissionResolver extends ResolverBase {
16776
16939
  return this.UpdateRecord('Query Permissions', input, dataSource, userPayload, pubSub);
16777
16940
  }
16778
16941
 
16942
+ @Mutation(() => QueryPermission_)
16943
+ async DeleteQueryPermission(@Arg('ID', () => String) ID: string, @Arg('options___', () => DeleteOptionsInput) options: DeleteOptionsInput, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
16944
+ const key = new CompositeKey([{FieldName: 'ID', Value: ID}]);
16945
+ return this.DeleteRecord('Query Permissions', key, options, dataSource, userPayload, pubSub);
16946
+ }
16947
+
16779
16948
  }
16780
16949
 
16781
16950
  //****************************************************************************
@@ -16944,6 +17113,12 @@ export class VectorIndexResolver extends ResolverBase {
16944
17113
  return this.UpdateRecord('Vector Indexes', input, dataSource, userPayload, pubSub);
16945
17114
  }
16946
17115
 
17116
+ @Mutation(() => VectorIndex_)
17117
+ async DeleteVectorIndex(@Arg('ID', () => String) ID: string, @Arg('options___', () => DeleteOptionsInput) options: DeleteOptionsInput, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
17118
+ const key = new CompositeKey([{FieldName: 'ID', Value: ID}]);
17119
+ return this.DeleteRecord('Vector Indexes', key, options, dataSource, userPayload, pubSub);
17120
+ }
17121
+
16947
17122
  }
16948
17123
 
16949
17124
  //****************************************************************************
@@ -17084,6 +17259,12 @@ export class EntityDocumentTypeResolver extends ResolverBase {
17084
17259
  return this.UpdateRecord('Entity Document Types', input, dataSource, userPayload, pubSub);
17085
17260
  }
17086
17261
 
17262
+ @Mutation(() => EntityDocumentType_)
17263
+ async DeleteEntityDocumentType(@Arg('ID', () => String) ID: string, @Arg('options___', () => DeleteOptionsInput) options: DeleteOptionsInput, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
17264
+ const key = new CompositeKey([{FieldName: 'ID', Value: ID}]);
17265
+ return this.DeleteRecord('Entity Document Types', key, options, dataSource, userPayload, pubSub);
17266
+ }
17267
+
17087
17268
  }
17088
17269
 
17089
17270
  //****************************************************************************
@@ -17107,7 +17288,7 @@ export class EntityDocumentRun_ {
17107
17288
  @MaxLength(8)
17108
17289
  EndedAt?: Date;
17109
17290
 
17110
- @Field({description: 'Can be Pending, In Progress, Completed, or Failed'})
17291
+ @Field({description: `Can be Pending, In Progress, Completed, or Failed`})
17111
17292
  @MaxLength(30)
17112
17293
  Status: string;
17113
17294
 
@@ -17409,6 +17590,12 @@ export class VectorDatabaseResolver extends ResolverBase {
17409
17590
  return this.UpdateRecord('Vector Databases', input, dataSource, userPayload, pubSub);
17410
17591
  }
17411
17592
 
17593
+ @Mutation(() => VectorDatabase_)
17594
+ async DeleteVectorDatabase(@Arg('ID', () => String) ID: string, @Arg('options___', () => DeleteOptionsInput) options: DeleteOptionsInput, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
17595
+ const key = new CompositeKey([{FieldName: 'ID', Value: ID}]);
17596
+ return this.DeleteRecord('Vector Databases', key, options, dataSource, userPayload, pubSub);
17597
+ }
17598
+
17412
17599
  }
17413
17600
 
17414
17601
  //****************************************************************************
@@ -17648,10 +17835,10 @@ export class EntityDocument_ {
17648
17835
  @MaxLength(16)
17649
17836
  AIModelID: string;
17650
17837
 
17651
- @Field(() => Float, {description: 'Value between 0 and 1 that determines what is considered a potential matching record. Value must be <= AbsoluteMatchThreshold. This is primarily used for duplicate detection but can be used for other applications as well where matching is relevant.'})
17838
+ @Field(() => Float, {description: `Value between 0 and 1 that determines what is considered a potential matching record. Value must be <= AbsoluteMatchThreshold. This is primarily used for duplicate detection but can be used for other applications as well where matching is relevant.`})
17652
17839
  PotentialMatchThreshold: number;
17653
17840
 
17654
- @Field(() => Float, {description: 'Value between 0 and 1 that determines what is considered an absolute matching record. Value must be >= PotentialMatchThreshold. This is primarily used for duplicate detection but can be used for other applications as well where matching is relevant.'})
17841
+ @Field(() => Float, {description: `Value between 0 and 1 that determines what is considered an absolute matching record. Value must be >= PotentialMatchThreshold. This is primarily used for duplicate detection but can be used for other applications as well where matching is relevant.`})
17655
17842
  AbsoluteMatchThreshold: number;
17656
17843
 
17657
17844
  @Field()
@@ -17865,7 +18052,7 @@ export class EntityDocumentResolver extends ResolverBase {
17865
18052
  //****************************************************************************
17866
18053
  // ENTITY CLASS for Data Context Items
17867
18054
  //****************************************************************************
17868
- @ObjectType({ description: 'Data Context Items store information about each item within a Data Context. Each item stores a link to a view, query, or raw sql statement and can optionally cache the JSON representing the last run of that data object as well.' })
18055
+ @ObjectType({ description: `Data Context Items store information about each item within a Data Context. Each item stores a link to a view, query, or raw sql statement and can optionally cache the JSON representing the last run of that data object as well.` })
17869
18056
  export class DataContextItem_ {
17870
18057
  @Field()
17871
18058
  @MaxLength(16)
@@ -17875,7 +18062,7 @@ export class DataContextItem_ {
17875
18062
  @MaxLength(16)
17876
18063
  DataContextID: string;
17877
18064
 
17878
- @Field({description: 'The type of the item, either "view", "query", "full_entity", "single_record", or "sql"'})
18065
+ @Field({description: `The type of the item, either "view", "query", "full_entity", "single_record", or "sql"`})
17879
18066
  @MaxLength(100)
17880
18067
  Type: string;
17881
18068
 
@@ -17891,17 +18078,17 @@ export class DataContextItem_ {
17891
18078
  @MaxLength(16)
17892
18079
  EntityID?: string;
17893
18080
 
17894
- @Field({nullable: true, description: 'The Primary Key value for the record, only used when Type=\'single_record\''})
18081
+ @Field({nullable: true, description: `The Primary Key value for the record, only used when Type='single_record'`})
17895
18082
  @MaxLength(900)
17896
18083
  RecordID?: string;
17897
18084
 
17898
- @Field({nullable: true, description: 'Only used when Type=sql'})
18085
+ @Field({nullable: true, description: `Only used when Type=sql`})
17899
18086
  SQL?: string;
17900
18087
 
17901
- @Field({nullable: true, description: 'Optionally used to cache results of an item. This can be used for performance optimization, and also for having snapshots of data for historical comparisons.'})
18088
+ @Field({nullable: true, description: `Optionally used to cache results of an item. This can be used for performance optimization, and also for having snapshots of data for historical comparisons.`})
17902
18089
  DataJSON?: string;
17903
18090
 
17904
- @Field({nullable: true, description: 'If DataJSON is populated, this field will show the date the the data was captured'})
18091
+ @Field({nullable: true, description: `If DataJSON is populated, this field will show the date the the data was captured`})
17905
18092
  @MaxLength(8)
17906
18093
  LastRefreshedAt?: Date;
17907
18094
 
@@ -18085,7 +18272,7 @@ export class DataContextItemResolver extends ResolverBase {
18085
18272
  //****************************************************************************
18086
18273
  // ENTITY CLASS for Data Contexts
18087
18274
  //****************************************************************************
18088
- @ObjectType({ description: 'Data Contexts are a primitive within the MemberJunction architecture. They store information about data contexts which are groups of data including views, queries, or raw SQL statements. Data contexts can be used in conversations, reports and more.' })
18275
+ @ObjectType({ description: `Data Contexts are a primitive within the MemberJunction architecture. They store information about data contexts which are groups of data including views, queries, or raw SQL statements. Data contexts can be used in conversations, reports and more.` })
18089
18276
  export class DataContext_ {
18090
18277
  @Field()
18091
18278
  @MaxLength(16)
@@ -19019,6 +19206,12 @@ export class FileStorageProviderResolver extends ResolverBase {
19019
19206
  return this.UpdateRecord('File Storage Providers', input, dataSource, userPayload, pubSub);
19020
19207
  }
19021
19208
 
19209
+ @Mutation(() => FileStorageProvider_)
19210
+ async DeleteFileStorageProvider(@Arg('ID', () => String) ID: string, @Arg('options___', () => DeleteOptionsInput) options: DeleteOptionsInput, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
19211
+ const key = new CompositeKey([{FieldName: 'ID', Value: ID}]);
19212
+ return this.DeleteRecord('File Storage Providers', key, options, dataSource, userPayload, pubSub);
19213
+ }
19214
+
19022
19215
  }
19023
19216
 
19024
19217
  //****************************************************************************
@@ -19053,7 +19246,7 @@ export class File_ {
19053
19246
  @MaxLength(1000)
19054
19247
  ProviderKey?: string;
19055
19248
 
19056
- @Field({description: 'Pending, Uploading, Uploaded, Deleting, Deleted'})
19249
+ @Field({description: `Pending, Uploading, Uploaded, Deleting, Deleted`})
19057
19250
  @MaxLength(40)
19058
19251
  Status: string;
19059
19252
 
@@ -19542,6 +19735,12 @@ export class FileEntityRecordLinkResolver extends ResolverBase {
19542
19735
  return this.UpdateRecord('File Entity Record Links', input, dataSource, userPayload, pubSub);
19543
19736
  }
19544
19737
 
19738
+ @Mutation(() => FileEntityRecordLink_)
19739
+ async DeleteFileEntityRecordLink(@Arg('ID', () => String) ID: string, @Arg('options___', () => DeleteOptionsInput) options: DeleteOptionsInput, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
19740
+ const key = new CompositeKey([{FieldName: 'ID', Value: ID}]);
19741
+ return this.DeleteRecord('File Entity Record Links', key, options, dataSource, userPayload, pubSub);
19742
+ }
19743
+
19545
19744
  }
19546
19745
 
19547
19746
  //****************************************************************************
@@ -19562,7 +19761,7 @@ export class VersionInstallation_ {
19562
19761
  @Field(() => Int)
19563
19762
  PatchVersion: number;
19564
19763
 
19565
- @Field({nullable: true, description: 'What type of installation was applied'})
19764
+ @Field({nullable: true, description: `What type of installation was applied`})
19566
19765
  @MaxLength(40)
19567
19766
  Type?: string;
19568
19767
 
@@ -19570,14 +19769,14 @@ export class VersionInstallation_ {
19570
19769
  @MaxLength(8)
19571
19770
  InstalledAt: Date;
19572
19771
 
19573
- @Field({description: 'Pending, Complete, Failed'})
19772
+ @Field({description: `Pending, Complete, Failed`})
19574
19773
  @MaxLength(40)
19575
19774
  Status: string;
19576
19775
 
19577
- @Field({nullable: true, description: 'Any logging that was saved from the installation process'})
19776
+ @Field({nullable: true, description: `Any logging that was saved from the installation process`})
19578
19777
  InstallLog?: string;
19579
19778
 
19580
- @Field({nullable: true, description: 'Optional, comments the administrator wants to save for each installed version'})
19779
+ @Field({nullable: true, description: `Optional, comments the administrator wants to save for each installed version`})
19581
19780
  Comments?: string;
19582
19781
 
19583
19782
  @Field()
@@ -19746,7 +19945,7 @@ export class DuplicateRunDetailMatch_ {
19746
19945
  @MaxLength(16)
19747
19946
  DuplicateRunDetailID: string;
19748
19947
 
19749
- @Field({description: 'Either Vector or SP'})
19948
+ @Field({description: `Either Vector or SP`})
19750
19949
  @MaxLength(40)
19751
19950
  MatchSource: string;
19752
19951
 
@@ -19754,7 +19953,7 @@ export class DuplicateRunDetailMatch_ {
19754
19953
  @MaxLength(1000)
19755
19954
  MatchRecordID: string;
19756
19955
 
19757
- @Field(() => Float, {description: 'Value between 0 and 1 designating the computed probability of a match'})
19956
+ @Field(() => Float, {description: `Value between 0 and 1 designating the computed probability of a match`})
19758
19957
  MatchProbability: number;
19759
19958
 
19760
19959
  @Field()
@@ -20092,6 +20291,12 @@ export class EntityDocumentSettingResolver extends ResolverBase {
20092
20291
  return this.UpdateRecord('Entity Document Settings', input, dataSource, userPayload, pubSub);
20093
20292
  }
20094
20293
 
20294
+ @Mutation(() => EntityDocumentSetting_)
20295
+ async DeleteEntityDocumentSetting(@Arg('ID', () => String) ID: string, @Arg('options___', () => DeleteOptionsInput) options: DeleteOptionsInput, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
20296
+ const key = new CompositeKey([{FieldName: 'ID', Value: ID}]);
20297
+ return this.DeleteRecord('Entity Document Settings', key, options, dataSource, userPayload, pubSub);
20298
+ }
20299
+
20095
20300
  }
20096
20301
 
20097
20302
  //****************************************************************************
@@ -20244,6 +20449,12 @@ export class EntitySettingResolver extends ResolverBase {
20244
20449
  return this.UpdateRecord('Entity Settings', input, dataSource, userPayload, pubSub);
20245
20450
  }
20246
20451
 
20452
+ @Mutation(() => EntitySetting_)
20453
+ async DeleteEntitySetting(@Arg('ID', () => String) ID: string, @Arg('options___', () => DeleteOptionsInput) options: DeleteOptionsInput, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
20454
+ const key = new CompositeKey([{FieldName: 'ID', Value: ID}]);
20455
+ return this.DeleteRecord('Entity Settings', key, options, dataSource, userPayload, pubSub);
20456
+ }
20457
+
20247
20458
  }
20248
20459
 
20249
20460
  //****************************************************************************
@@ -20502,10 +20713,10 @@ export class DuplicateRunDetail_ {
20502
20713
  @MaxLength(40)
20503
20714
  MatchStatus: string;
20504
20715
 
20505
- @Field({nullable: true, description: 'If MatchStatus=Skipped, this field can be used to store the reason why the record was skipped'})
20716
+ @Field({nullable: true, description: `If MatchStatus=Skipped, this field can be used to store the reason why the record was skipped`})
20506
20717
  SkippedReason?: string;
20507
20718
 
20508
- @Field({nullable: true, description: 'If MatchStatus=\'Error\' this field can be used to track the error from that phase of the process for logging/diagnostics.'})
20719
+ @Field({nullable: true, description: `If MatchStatus='Error' this field can be used to track the error from that phase of the process for logging/diagnostics.`})
20509
20720
  MatchErrorMessage?: string;
20510
20721
 
20511
20722
  @Field()
@@ -20830,24 +21041,24 @@ export class ApplicationSettingResolver extends ResolverBase {
20830
21041
  //****************************************************************************
20831
21042
  // ENTITY CLASS for Action Categories
20832
21043
  //****************************************************************************
20833
- @ObjectType({ description: 'Organizes actions into categories, including name, description, and optional parent category for hierarchy.' })
21044
+ @ObjectType({ description: `Organizes actions into categories, including name, description, and optional parent category for hierarchy.` })
20834
21045
  export class ActionCategory_ {
20835
21046
  @Field()
20836
21047
  @MaxLength(16)
20837
21048
  ID: string;
20838
21049
 
20839
- @Field({description: 'Name of the action category.'})
21050
+ @Field({description: `Name of the action category.`})
20840
21051
  @MaxLength(510)
20841
21052
  Name: string;
20842
21053
 
20843
- @Field({nullable: true, description: 'Description of the action category.'})
21054
+ @Field({nullable: true, description: `Description of the action category.`})
20844
21055
  Description?: string;
20845
21056
 
20846
21057
  @Field({nullable: true})
20847
21058
  @MaxLength(16)
20848
21059
  ParentID?: string;
20849
21060
 
20850
- @Field({description: 'Status of the action category (Pending, Active, Disabled).'})
21061
+ @Field({description: `Status of the action category (Pending, Active, Disabled).`})
20851
21062
  @MaxLength(40)
20852
21063
  Status: string;
20853
21064
 
@@ -21011,7 +21222,7 @@ export class ActionCategoryResolver extends ResolverBase {
21011
21222
  //****************************************************************************
21012
21223
  // ENTITY CLASS for Entity Actions
21013
21224
  //****************************************************************************
21014
- @ObjectType({ description: 'Links entities to actions - this is the main place where you define the actions that part of, or available, for a given entity.' })
21225
+ @ObjectType({ description: `Links entities to actions - this is the main place where you define the actions that part of, or available, for a given entity.` })
21015
21226
  export class EntityAction_ {
21016
21227
  @Field()
21017
21228
  @MaxLength(16)
@@ -21021,7 +21232,7 @@ export class EntityAction_ {
21021
21232
  @MaxLength(16)
21022
21233
  ActionID: string;
21023
21234
 
21024
- @Field({description: 'Status of the entity action (Pending, Active, Disabled).'})
21235
+ @Field({description: `Status of the entity action (Pending, Active, Disabled).`})
21025
21236
  @MaxLength(40)
21026
21237
  Status: string;
21027
21238
 
@@ -21198,7 +21409,7 @@ export class EntityActionResolver extends ResolverBase {
21198
21409
  //****************************************************************************
21199
21410
  // ENTITY CLASS for Entity Action Invocations
21200
21411
  //****************************************************************************
21201
- @ObjectType({ description: 'Links invocation types to entity actions – for example you might link a particular EntityAction to just “Create Record” and you might also have a second item in this table allowing the same Entity Action to be invoked from a User View or List, on demand.' })
21412
+ @ObjectType({ description: `Links invocation types to entity actions – for example you might link a particular EntityAction to just “Create Record” and you might also have a second item in this table allowing the same Entity Action to be invoked from a User View or List, on demand.` })
21202
21413
  export class EntityActionInvocation_ {
21203
21414
  @Field()
21204
21415
  @MaxLength(16)
@@ -21212,7 +21423,7 @@ export class EntityActionInvocation_ {
21212
21423
  @MaxLength(16)
21213
21424
  InvocationTypeID: string;
21214
21425
 
21215
- @Field({description: 'Status of the entity action invocation (Pending, Active, Disabled).'})
21426
+ @Field({description: `Status of the entity action invocation (Pending, Active, Disabled).`})
21216
21427
  @MaxLength(40)
21217
21428
  Status: string;
21218
21429
 
@@ -21348,7 +21559,7 @@ export class EntityActionInvocationResolver extends ResolverBase {
21348
21559
  //****************************************************************************
21349
21560
  // ENTITY CLASS for Action Authorizations
21350
21561
  //****************************************************************************
21351
- @ObjectType({ description: 'Links actions to authorizations, one or more of these must be possessed by a user in order to execute the action.' })
21562
+ @ObjectType({ description: `Links actions to authorizations, one or more of these must be possessed by a user in order to execute the action.` })
21352
21563
  export class ActionAuthorization_ {
21353
21564
  @Field()
21354
21565
  @MaxLength(16)
@@ -21501,17 +21712,17 @@ export class ActionAuthorizationResolver extends ResolverBase {
21501
21712
  //****************************************************************************
21502
21713
  // ENTITY CLASS for Entity Action Invocation Types
21503
21714
  //****************************************************************************
21504
- @ObjectType({ description: 'Stores the possible invocation types of an action within the context of an entity. Examples would be: Record Created/Updated/Deleted/Accessed as well as things like “View” or “List” where you could run an EntityAction against an entire set of records in a view or list – either by user click or programmatically.' })
21715
+ @ObjectType({ description: `Stores the possible invocation types of an action within the context of an entity. Examples would be: Record Created/Updated/Deleted/Accessed as well as things like “View” or “List” where you could run an EntityAction against an entire set of records in a view or list – either by user click or programmatically.` })
21505
21716
  export class EntityActionInvocationType_ {
21506
21717
  @Field()
21507
21718
  @MaxLength(16)
21508
21719
  ID: string;
21509
21720
 
21510
- @Field({description: 'Name of the invocation type such as Record Created/Updated/etc.'})
21721
+ @Field({description: `Name of the invocation type such as Record Created/Updated/etc.`})
21511
21722
  @MaxLength(510)
21512
21723
  Name: string;
21513
21724
 
21514
- @Field({nullable: true, description: 'Description of the invocation type.'})
21725
+ @Field({nullable: true, description: `Description of the invocation type.`})
21515
21726
  Description?: string;
21516
21727
 
21517
21728
  @Field(() => Int)
@@ -21656,7 +21867,7 @@ export class EntityActionInvocationTypeResolver extends ResolverBase {
21656
21867
  //****************************************************************************
21657
21868
  // ENTITY CLASS for Actions
21658
21869
  //****************************************************************************
21659
- @ObjectType({ description: 'Stores action definitions, including prompts, generated code, user comments, and status.' })
21870
+ @ObjectType({ description: `Stores action definitions, including prompts, generated code, user comments, and status.` })
21660
21871
  export class Action_ {
21661
21872
  @Field()
21662
21873
  @MaxLength(16)
@@ -21673,47 +21884,47 @@ export class Action_ {
21673
21884
  @Field({nullable: true})
21674
21885
  Description?: string;
21675
21886
 
21676
- @Field({description: 'Generated or Custom. Generated means the UserPrompt is used to prompt an AI model to automatically create the code for the Action. Custom means that a custom class has been implemented that subclasses the BaseAction class. The custom class needs to use the @RegisterClass decorator and be included in the MJAPI (or other runtime environment) to be available for execution.'})
21887
+ @Field({description: `Generated or Custom. Generated means the UserPrompt is used to prompt an AI model to automatically create the code for the Action. Custom means that a custom class has been implemented that subclasses the BaseAction class. The custom class needs to use the @RegisterClass decorator and be included in the MJAPI (or other runtime environment) to be available for execution.`})
21677
21888
  @MaxLength(40)
21678
21889
  Type: string;
21679
21890
 
21680
21891
  @Field({nullable: true})
21681
21892
  UserPrompt?: string;
21682
21893
 
21683
- @Field({nullable: true, description: 'User\'s comments not shared with the LLM.'})
21894
+ @Field({nullable: true, description: `User's comments not shared with the LLM.`})
21684
21895
  UserComments?: string;
21685
21896
 
21686
21897
  @Field({nullable: true})
21687
21898
  Code?: string;
21688
21899
 
21689
- @Field({nullable: true, description: 'AI\'s explanation of the code.'})
21900
+ @Field({nullable: true, description: `AI's explanation of the code.`})
21690
21901
  CodeComments?: string;
21691
21902
 
21692
- @Field({description: 'An action won\'t be usable until the code is approved.'})
21903
+ @Field({description: `An action won't be usable until the code is approved.`})
21693
21904
  @MaxLength(40)
21694
21905
  CodeApprovalStatus: string;
21695
21906
 
21696
- @Field({nullable: true, description: 'Optional comments when an individual (or an AI) reviews and approves the code.'})
21907
+ @Field({nullable: true, description: `Optional comments when an individual (or an AI) reviews and approves the code.`})
21697
21908
  CodeApprovalComments?: string;
21698
21909
 
21699
21910
  @Field({nullable: true})
21700
21911
  @MaxLength(16)
21701
21912
  CodeApprovedByUserID?: string;
21702
21913
 
21703
- @Field({nullable: true, description: 'When the code was approved.'})
21914
+ @Field({nullable: true, description: `When the code was approved.`})
21704
21915
  @MaxLength(8)
21705
21916
  CodeApprovedAt?: Date;
21706
21917
 
21707
- @Field(() => Boolean, {description: 'If set to 1, Code will never be generated by the AI system. This overrides all other settings including the ForceCodeGeneration bit'})
21918
+ @Field(() => Boolean, {description: `If set to 1, Code will never be generated by the AI system. This overrides all other settings including the ForceCodeGeneration bit`})
21708
21919
  CodeLocked: boolean;
21709
21920
 
21710
- @Field(() => Boolean, {description: 'If set to 1, the Action will generate code for the provided UserPrompt on the next Save even if the UserPrompt hasn\'t changed. This is useful to force regeneration when other candidates (such as a change in Action Inputs/Outputs) occurs or on demand by a user.'})
21921
+ @Field(() => Boolean, {description: `If set to 1, the Action will generate code for the provided UserPrompt on the next Save even if the UserPrompt hasn't changed. This is useful to force regeneration when other candidates (such as a change in Action Inputs/Outputs) occurs or on demand by a user.`})
21711
21922
  ForceCodeGeneration: boolean;
21712
21923
 
21713
- @Field(() => Int, {nullable: true, description: 'Number of days to retain execution logs; NULL for indefinite.'})
21924
+ @Field(() => Int, {nullable: true, description: `Number of days to retain execution logs; NULL for indefinite.`})
21714
21925
  RetentionPeriod?: number;
21715
21926
 
21716
- @Field({description: 'Status of the action (Pending, Active, Disabled).'})
21927
+ @Field({description: `Status of the action (Pending, Active, Disabled).`})
21717
21928
  @MaxLength(40)
21718
21929
  Status: string;
21719
21930
 
@@ -22030,7 +22241,7 @@ export class ActionResolver extends ResolverBase {
22030
22241
  //****************************************************************************
22031
22242
  // ENTITY CLASS for Entity Action Filters
22032
22243
  //****************************************************************************
22033
- @ObjectType({ description: 'Optional use. Maps Action Filters to specific EntityAction instances, specifying execution order and status. This allows for “pre-processing” before an Action actually is fired off, to check for various state/dirty/value conditions.' })
22244
+ @ObjectType({ description: `Optional use. Maps Action Filters to specific EntityAction instances, specifying execution order and status. This allows for “pre-processing” before an Action actually is fired off, to check for various state/dirty/value conditions.` })
22034
22245
  export class EntityActionFilter_ {
22035
22246
  @Field()
22036
22247
  @MaxLength(16)
@@ -22044,10 +22255,10 @@ export class EntityActionFilter_ {
22044
22255
  @MaxLength(16)
22045
22256
  ActionFilterID: string;
22046
22257
 
22047
- @Field(() => Int, {description: 'Order of filter execution.'})
22258
+ @Field(() => Int, {description: `Order of filter execution.`})
22048
22259
  Sequence: number;
22049
22260
 
22050
- @Field({description: 'Status of the entity action filter (Pending, Active, Disabled).'})
22261
+ @Field({description: `Status of the entity action filter (Pending, Active, Disabled).`})
22051
22262
  @MaxLength(40)
22052
22263
  Status: string;
22053
22264
 
@@ -22185,7 +22396,7 @@ export class EntityActionFilterResolver extends ResolverBase {
22185
22396
  //****************************************************************************
22186
22397
  // ENTITY CLASS for Action Filters
22187
22398
  //****************************************************************************
22188
- @ObjectType({ description: 'Defines filters that can be evaluated ahead of executing an action. Action Filters are usable in any code pipeline you can execute them with the same context as the action itself and use the outcome to determine if the action should execute or not.' })
22399
+ @ObjectType({ description: `Defines filters that can be evaluated ahead of executing an action. Action Filters are usable in any code pipeline you can execute them with the same context as the action itself and use the outcome to determine if the action should execute or not.` })
22189
22400
  export class ActionFilter_ {
22190
22401
  @Field()
22191
22402
  @MaxLength(16)
@@ -22348,17 +22559,17 @@ export class ActionFilterResolver extends ResolverBase {
22348
22559
  //****************************************************************************
22349
22560
  // ENTITY CLASS for Action Context Types
22350
22561
  //****************************************************************************
22351
- @ObjectType({ description: 'Lists possible contexts for action execution with optional descriptions.' })
22562
+ @ObjectType({ description: `Lists possible contexts for action execution with optional descriptions.` })
22352
22563
  export class ActionContextType_ {
22353
22564
  @Field()
22354
22565
  @MaxLength(16)
22355
22566
  ID: string;
22356
22567
 
22357
- @Field({description: 'Name of the context type.'})
22568
+ @Field({description: `Name of the context type.`})
22358
22569
  @MaxLength(510)
22359
22570
  Name: string;
22360
22571
 
22361
- @Field({nullable: true, description: 'Description of the context type.'})
22572
+ @Field({nullable: true, description: `Description of the context type.`})
22362
22573
  Description?: string;
22363
22574
 
22364
22575
  @Field()
@@ -22494,7 +22705,7 @@ export class ActionContextTypeResolver extends ResolverBase {
22494
22705
  //****************************************************************************
22495
22706
  // ENTITY CLASS for Action Result Codes
22496
22707
  //****************************************************************************
22497
- @ObjectType({ description: 'Defines the possible result codes for each action.' })
22708
+ @ObjectType({ description: `Defines the possible result codes for each action.` })
22498
22709
  export class ActionResultCode_ {
22499
22710
  @Field()
22500
22711
  @MaxLength(16)
@@ -22508,10 +22719,10 @@ export class ActionResultCode_ {
22508
22719
  @MaxLength(510)
22509
22720
  ResultCode: string;
22510
22721
 
22511
- @Field(() => Boolean, {description: 'Indicates if the result code is a success or not. It is possible an action might have more than one failure condition/result code and same for success conditions.'})
22722
+ @Field(() => Boolean, {description: `Indicates if the result code is a success or not. It is possible an action might have more than one failure condition/result code and same for success conditions.`})
22512
22723
  IsSuccess: boolean;
22513
22724
 
22514
- @Field({nullable: true, description: 'Description of the result code.'})
22725
+ @Field({nullable: true, description: `Description of the result code.`})
22515
22726
  Description?: string;
22516
22727
 
22517
22728
  @Field()
@@ -22652,7 +22863,7 @@ export class ActionResultCodeResolver extends ResolverBase {
22652
22863
  //****************************************************************************
22653
22864
  // ENTITY CLASS for Action Contexts
22654
22865
  //****************************************************************************
22655
- @ObjectType({ description: 'Links actions to their supported context types enabling a given action to be executable in more than one context.' })
22866
+ @ObjectType({ description: `Links actions to their supported context types enabling a given action to be executable in more than one context.` })
22656
22867
  export class ActionContext_ {
22657
22868
  @Field()
22658
22869
  @MaxLength(16)
@@ -22666,7 +22877,7 @@ export class ActionContext_ {
22666
22877
  @MaxLength(16)
22667
22878
  ContextTypeID?: string;
22668
22879
 
22669
- @Field({description: 'Status of the action context (Pending, Active, Disabled).'})
22880
+ @Field({description: `Status of the action context (Pending, Active, Disabled).`})
22670
22881
  @MaxLength(40)
22671
22882
  Status: string;
22672
22883
 
@@ -22806,7 +23017,7 @@ export class ActionContextResolver extends ResolverBase {
22806
23017
  //****************************************************************************
22807
23018
  // ENTITY CLASS for Action Execution Logs
22808
23019
  //****************************************************************************
22809
- @ObjectType({ description: 'Tracks every execution of an action, including start and end times, inputs, outputs, and result codes.' })
23020
+ @ObjectType({ description: `Tracks every execution of an action, including start and end times, inputs, outputs, and result codes.` })
22810
23021
  export class ActionExecutionLog_ {
22811
23022
  @Field()
22812
23023
  @MaxLength(16)
@@ -22816,11 +23027,11 @@ export class ActionExecutionLog_ {
22816
23027
  @MaxLength(16)
22817
23028
  ActionID: string;
22818
23029
 
22819
- @Field({description: 'Timestamp of when the action started execution.'})
23030
+ @Field({description: `Timestamp of when the action started execution.`})
22820
23031
  @MaxLength(8)
22821
23032
  StartedAt: Date;
22822
23033
 
22823
- @Field({nullable: true, description: 'Timestamp of when the action ended execution.'})
23034
+ @Field({nullable: true, description: `Timestamp of when the action ended execution.`})
22824
23035
  @MaxLength(8)
22825
23036
  EndedAt?: Date;
22826
23037
 
@@ -22835,7 +23046,7 @@ export class ActionExecutionLog_ {
22835
23046
  @MaxLength(16)
22836
23047
  UserID: string;
22837
23048
 
22838
- @Field(() => Int, {nullable: true, description: 'Number of days to retain the log; NULL for indefinite retention.'})
23049
+ @Field(() => Int, {nullable: true, description: `Number of days to retain the log; NULL for indefinite retention.`})
22839
23050
  RetentionPeriod?: number;
22840
23051
 
22841
23052
  @Field()
@@ -22998,7 +23209,7 @@ export class ActionExecutionLogResolver extends ResolverBase {
22998
23209
  //****************************************************************************
22999
23210
  // ENTITY CLASS for Action Params
23000
23211
  //****************************************************************************
23001
- @ObjectType({ description: 'Tracks the input and output parameters for Actions.' })
23212
+ @ObjectType({ description: `Tracks the input and output parameters for Actions.` })
23002
23213
  export class ActionParam_ {
23003
23214
  @Field()
23004
23215
  @MaxLength(16)
@@ -23019,7 +23230,7 @@ export class ActionParam_ {
23019
23230
  @MaxLength(20)
23020
23231
  Type: string;
23021
23232
 
23022
- @Field({description: 'Tracks the basic value type of the parameter, additional information can be provided in the Description field'})
23233
+ @Field({description: `Tracks the basic value type of the parameter, additional information can be provided in the Description field`})
23023
23234
  @MaxLength(60)
23024
23235
  ValueType: string;
23025
23236
 
@@ -23216,7 +23427,7 @@ export class ActionParamResolver extends ResolverBase {
23216
23427
  //****************************************************************************
23217
23428
  // ENTITY CLASS for Action Libraries
23218
23429
  //****************************************************************************
23219
- @ObjectType({ description: 'Tracks the list of libraries that a given Action uses, including a list of classes/functions for each library.' })
23430
+ @ObjectType({ description: `Tracks the list of libraries that a given Action uses, including a list of classes/functions for each library.` })
23220
23431
  export class ActionLibrary_ {
23221
23432
  @Field()
23222
23433
  @MaxLength(16)
@@ -23230,7 +23441,7 @@ export class ActionLibrary_ {
23230
23441
  @MaxLength(16)
23231
23442
  LibraryID: string;
23232
23443
 
23233
- @Field({nullable: true, description: 'List of classes and functions used by the action from the library.'})
23444
+ @Field({nullable: true, description: `List of classes and functions used by the action from the library.`})
23234
23445
  ItemsUsed?: string;
23235
23446
 
23236
23447
  @Field()
@@ -23369,7 +23580,7 @@ export class ActionLibraryResolver extends ResolverBase {
23369
23580
  //****************************************************************************
23370
23581
  // ENTITY CLASS for Libraries
23371
23582
  //****************************************************************************
23372
- @ObjectType({ description: 'Stores information about the available libraries, including a list of classes/functions, type definitions, and sample code. You can add additional custom libraries here to make them avaialable to code generation features within the system.' })
23583
+ @ObjectType({ description: `Stores information about the available libraries, including a list of classes/functions, type definitions, and sample code. You can add additional custom libraries here to make them avaialable to code generation features within the system.` })
23373
23584
  export class Library_ {
23374
23585
  @Field()
23375
23586
  @MaxLength(16)
@@ -23382,14 +23593,14 @@ export class Library_ {
23382
23593
  @Field({nullable: true})
23383
23594
  Description?: string;
23384
23595
 
23385
- @Field({description: 'Status of the library, only libraries marked as Active will be available for use by generated code. If a library was once active but no longer is, existing code that used the library will not be affected.'})
23596
+ @Field({description: `Status of the library, only libraries marked as Active will be available for use by generated code. If a library was once active but no longer is, existing code that used the library will not be affected.`})
23386
23597
  @MaxLength(40)
23387
23598
  Status: string;
23388
23599
 
23389
- @Field({nullable: true, description: 'Code showing the types and functions defined in the library to be used for reference by humans and AI'})
23600
+ @Field({nullable: true, description: `Code showing the types and functions defined in the library to be used for reference by humans and AI`})
23390
23601
  TypeDefinitions?: string;
23391
23602
 
23392
- @Field({nullable: true, description: 'Examples of code use of the classes and/or functions from within the library'})
23603
+ @Field({nullable: true, description: `Examples of code use of the classes and/or functions from within the library`})
23393
23604
  SampleCode?: string;
23394
23605
 
23395
23606
  @Field()
@@ -23543,6 +23754,12 @@ export class LibraryResolver extends ResolverBase {
23543
23754
  return this.UpdateRecord('Libraries', input, dataSource, userPayload, pubSub);
23544
23755
  }
23545
23756
 
23757
+ @Mutation(() => Library_)
23758
+ async DeleteLibrary(@Arg('ID', () => String) ID: string, @Arg('options___', () => DeleteOptionsInput) options: DeleteOptionsInput, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
23759
+ const key = new CompositeKey([{FieldName: 'ID', Value: ID}]);
23760
+ return this.DeleteRecord('Libraries', key, options, dataSource, userPayload, pubSub);
23761
+ }
23762
+
23546
23763
  }
23547
23764
 
23548
23765
  //****************************************************************************
@@ -23722,12 +23939,18 @@ export class ListCategoryResolver extends ResolverBase {
23722
23939
  return this.UpdateRecord('List Categories', input, dataSource, userPayload, pubSub);
23723
23940
  }
23724
23941
 
23942
+ @Mutation(() => ListCategory_)
23943
+ async DeleteListCategory(@Arg('ID', () => String) ID: string, @Arg('options___', () => DeleteOptionsInput) options: DeleteOptionsInput, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
23944
+ const key = new CompositeKey([{FieldName: 'ID', Value: ID}]);
23945
+ return this.DeleteRecord('List Categories', key, options, dataSource, userPayload, pubSub);
23946
+ }
23947
+
23725
23948
  }
23726
23949
 
23727
23950
  //****************************************************************************
23728
23951
  // ENTITY CLASS for Communication Providers
23729
23952
  //****************************************************************************
23730
- @ObjectType({ description: 'All supported communication providers.' })
23953
+ @ObjectType({ description: `All supported communication providers.` })
23731
23954
  export class CommunicationProvider_ {
23732
23955
  @Field()
23733
23956
  @MaxLength(16)
@@ -23740,14 +23963,14 @@ export class CommunicationProvider_ {
23740
23963
  @Field({nullable: true})
23741
23964
  Description?: string;
23742
23965
 
23743
- @Field({description: 'The status of the communication provider (Disabled or Active).'})
23966
+ @Field({description: `The status of the communication provider (Disabled or Active).`})
23744
23967
  @MaxLength(40)
23745
23968
  Status: string;
23746
23969
 
23747
- @Field(() => Boolean, {description: 'Indicates if the provider supports sending messages.'})
23970
+ @Field(() => Boolean, {description: `Indicates if the provider supports sending messages.`})
23748
23971
  SupportsSending: boolean;
23749
23972
 
23750
- @Field(() => Boolean, {description: 'Indicates if the provider supports receiving messages.'})
23973
+ @Field(() => Boolean, {description: `Indicates if the provider supports receiving messages.`})
23751
23974
  SupportsReceiving: boolean;
23752
23975
 
23753
23976
  @Field()
@@ -23758,7 +23981,7 @@ export class CommunicationProvider_ {
23758
23981
  @MaxLength(10)
23759
23982
  _mj__UpdatedAt: Date;
23760
23983
 
23761
- @Field(() => Boolean, {description: 'Whether or not the provider supports sending messages at a specific time'})
23984
+ @Field(() => Boolean, {description: `Whether or not the provider supports sending messages at a specific time`})
23762
23985
  SupportsScheduledSending: boolean;
23763
23986
 
23764
23987
  @Field(() => [CommunicationLog_])
@@ -23910,12 +24133,18 @@ export class CommunicationProviderResolver extends ResolverBase {
23910
24133
  return this.UpdateRecord('Communication Providers', input, dataSource, userPayload, pubSub);
23911
24134
  }
23912
24135
 
24136
+ @Mutation(() => CommunicationProvider_)
24137
+ async DeleteCommunicationProvider(@Arg('ID', () => String) ID: string, @Arg('options___', () => DeleteOptionsInput) options: DeleteOptionsInput, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
24138
+ const key = new CompositeKey([{FieldName: 'ID', Value: ID}]);
24139
+ return this.DeleteRecord('Communication Providers', key, options, dataSource, userPayload, pubSub);
24140
+ }
24141
+
23913
24142
  }
23914
24143
 
23915
24144
  //****************************************************************************
23916
24145
  // ENTITY CLASS for Communication Runs
23917
24146
  //****************************************************************************
23918
- @ObjectType({ description: 'Runs of bulk message sends and receives.' })
24147
+ @ObjectType({ description: `Runs of bulk message sends and receives.` })
23919
24148
  export class CommunicationRun_ {
23920
24149
  @Field()
23921
24150
  @MaxLength(16)
@@ -23925,11 +24154,11 @@ export class CommunicationRun_ {
23925
24154
  @MaxLength(16)
23926
24155
  UserID: string;
23927
24156
 
23928
- @Field({description: 'The direction of the communication run (Sending or Receiving).'})
24157
+ @Field({description: `The direction of the communication run (Sending or Receiving).`})
23929
24158
  @MaxLength(40)
23930
24159
  Direction: string;
23931
24160
 
23932
- @Field({description: 'The status of the communication run (Pending, In-Progress, Complete, Failed).'})
24161
+ @Field({description: `The status of the communication run (Pending, In-Progress, Complete, Failed).`})
23933
24162
  @MaxLength(40)
23934
24163
  Status: string;
23935
24164
 
@@ -23944,7 +24173,7 @@ export class CommunicationRun_ {
23944
24173
  @Field({nullable: true})
23945
24174
  Comments?: string;
23946
24175
 
23947
- @Field({nullable: true, description: 'The error message if the communication run failed.'})
24176
+ @Field({nullable: true, description: `The error message if the communication run failed.`})
23948
24177
  ErrorMessage?: string;
23949
24178
 
23950
24179
  @Field()
@@ -24108,7 +24337,7 @@ export class CommunicationRunResolver extends ResolverBase {
24108
24337
  //****************************************************************************
24109
24338
  // ENTITY CLASS for Communication Provider Message Types
24110
24339
  //****************************************************************************
24111
- @ObjectType({ description: 'Providers and their supported message types with additional attributes.' })
24340
+ @ObjectType({ description: `Providers and their supported message types with additional attributes.` })
24112
24341
  export class CommunicationProviderMessageType_ {
24113
24342
  @Field()
24114
24343
  @MaxLength(16)
@@ -24126,11 +24355,11 @@ export class CommunicationProviderMessageType_ {
24126
24355
  @MaxLength(510)
24127
24356
  Name: string;
24128
24357
 
24129
- @Field({description: 'The status of the provider message type (Disabled or Active).'})
24358
+ @Field({description: `The status of the provider message type (Disabled or Active).`})
24130
24359
  @MaxLength(40)
24131
24360
  Status: string;
24132
24361
 
24133
- @Field({nullable: true, description: 'Additional attributes specific to the provider message type.'})
24362
+ @Field({nullable: true, description: `Additional attributes specific to the provider message type.`})
24134
24363
  AdditionalAttributes?: string;
24135
24364
 
24136
24365
  @Field()
@@ -24292,7 +24521,7 @@ export class CommunicationProviderMessageTypeResolver extends ResolverBase {
24292
24521
  //****************************************************************************
24293
24522
  // ENTITY CLASS for Communication Logs
24294
24523
  //****************************************************************************
24295
- @ObjectType({ description: 'Logs of sent and received messages.' })
24524
+ @ObjectType({ description: `Logs of sent and received messages.` })
24296
24525
  export class CommunicationLog_ {
24297
24526
  @Field()
24298
24527
  @MaxLength(16)
@@ -24310,22 +24539,22 @@ export class CommunicationLog_ {
24310
24539
  @MaxLength(16)
24311
24540
  CommunicationRunID?: string;
24312
24541
 
24313
- @Field({description: 'The direction of the communication log (Sending or Receiving).'})
24542
+ @Field({description: `The direction of the communication log (Sending or Receiving).`})
24314
24543
  @MaxLength(40)
24315
24544
  Direction: string;
24316
24545
 
24317
- @Field({description: 'The date and time when the message was logged.'})
24546
+ @Field({description: `The date and time when the message was logged.`})
24318
24547
  @MaxLength(8)
24319
24548
  MessageDate: Date;
24320
24549
 
24321
- @Field({description: 'The status of the logged message (Pending, In-Progress, Complete, Failed).'})
24550
+ @Field({description: `The status of the logged message (Pending, In-Progress, Complete, Failed).`})
24322
24551
  @MaxLength(40)
24323
24552
  Status: string;
24324
24553
 
24325
- @Field({nullable: true, description: 'The content of the logged message.'})
24554
+ @Field({nullable: true, description: `The content of the logged message.`})
24326
24555
  MessageContent?: string;
24327
24556
 
24328
- @Field({nullable: true, description: 'The error message if the message sending failed.'})
24557
+ @Field({nullable: true, description: `The error message if the message sending failed.`})
24329
24558
  ErrorMessage?: string;
24330
24559
 
24331
24560
  @Field()
@@ -24488,7 +24717,7 @@ export class CommunicationLogResolver extends ResolverBase {
24488
24717
  //****************************************************************************
24489
24718
  // ENTITY CLASS for Communication Base Message Types
24490
24719
  //****************************************************************************
24491
- @ObjectType({ description: 'Base message types and their supported functionalities.' })
24720
+ @ObjectType({ description: `Base message types and their supported functionalities.` })
24492
24721
  export class CommunicationBaseMessageType_ {
24493
24722
  @Field()
24494
24723
  @MaxLength(16)
@@ -24498,16 +24727,16 @@ export class CommunicationBaseMessageType_ {
24498
24727
  @MaxLength(200)
24499
24728
  Type: string;
24500
24729
 
24501
- @Field(() => Boolean, {description: 'Indicates if attachments are supported.'})
24730
+ @Field(() => Boolean, {description: `Indicates if attachments are supported.`})
24502
24731
  SupportsAttachments: boolean;
24503
24732
 
24504
- @Field(() => Boolean, {description: 'Indicates if a subject line is supported.'})
24733
+ @Field(() => Boolean, {description: `Indicates if a subject line is supported.`})
24505
24734
  SupportsSubjectLine: boolean;
24506
24735
 
24507
- @Field(() => Boolean, {description: 'Indicates if HTML content is supported.'})
24736
+ @Field(() => Boolean, {description: `Indicates if HTML content is supported.`})
24508
24737
  SupportsHtml: boolean;
24509
24738
 
24510
- @Field(() => Int, {nullable: true, description: 'The maximum size in bytes for the message.'})
24739
+ @Field(() => Int, {nullable: true, description: `The maximum size in bytes for the message.`})
24511
24740
  MaxBytes?: number;
24512
24741
 
24513
24742
  @Field()
@@ -24661,44 +24890,50 @@ export class CommunicationBaseMessageTypeResolver extends ResolverBase {
24661
24890
  return this.UpdateRecord('Communication Base Message Types', input, dataSource, userPayload, pubSub);
24662
24891
  }
24663
24892
 
24893
+ @Mutation(() => CommunicationBaseMessageType_)
24894
+ async DeleteCommunicationBaseMessageType(@Arg('ID', () => String) ID: string, @Arg('options___', () => DeleteOptionsInput) options: DeleteOptionsInput, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
24895
+ const key = new CompositeKey([{FieldName: 'ID', Value: ID}]);
24896
+ return this.DeleteRecord('Communication Base Message Types', key, options, dataSource, userPayload, pubSub);
24897
+ }
24898
+
24664
24899
  }
24665
24900
 
24666
24901
  //****************************************************************************
24667
24902
  // ENTITY CLASS for Templates
24668
24903
  //****************************************************************************
24669
- @ObjectType({ description: 'Templates are used for dynamic expansion of a static template with data from a given context. Templates can be used to create documents, messages and anything else that requires dynamic document creation merging together static text, data and lightweight logic' })
24904
+ @ObjectType({ description: `Templates are used for dynamic expansion of a static template with data from a given context. Templates can be used to create documents, messages and anything else that requires dynamic document creation merging together static text, data and lightweight logic` })
24670
24905
  export class Template_ {
24671
24906
  @Field()
24672
24907
  @MaxLength(16)
24673
24908
  ID: string;
24674
24909
 
24675
- @Field({description: 'Name of the template'})
24910
+ @Field({description: `Name of the template`})
24676
24911
  @MaxLength(510)
24677
24912
  Name: string;
24678
24913
 
24679
- @Field({nullable: true, description: 'Description of the template'})
24914
+ @Field({nullable: true, description: `Description of the template`})
24680
24915
  Description?: string;
24681
24916
 
24682
24917
  @Field({nullable: true})
24683
24918
  @MaxLength(16)
24684
24919
  CategoryID?: string;
24685
24920
 
24686
- @Field({nullable: true, description: 'This prompt will be used by the AI to generate template content as requested by the user.'})
24921
+ @Field({nullable: true, description: `This prompt will be used by the AI to generate template content as requested by the user.`})
24687
24922
  UserPrompt?: string;
24688
24923
 
24689
24924
  @Field()
24690
24925
  @MaxLength(16)
24691
24926
  UserID: string;
24692
24927
 
24693
- @Field({nullable: true, description: 'Optional, if provided, this template will not be available for use until the specified date. Requires IsActive to be set to 1'})
24928
+ @Field({nullable: true, description: `Optional, if provided, this template will not be available for use until the specified date. Requires IsActive to be set to 1`})
24694
24929
  @MaxLength(8)
24695
24930
  ActiveAt?: Date;
24696
24931
 
24697
- @Field({nullable: true, description: 'Optional, if provided, this template will not be available for use after the specified date. If IsActive=0, this has no effect.'})
24932
+ @Field({nullable: true, description: `Optional, if provided, this template will not be available for use after the specified date. If IsActive=0, this has no effect.`})
24698
24933
  @MaxLength(8)
24699
24934
  DisabledAt?: Date;
24700
24935
 
24701
- @Field(() => Boolean, {description: 'If set to 0, the template will be disabled regardless of the values in ActiveAt/DisabledAt. '})
24936
+ @Field(() => Boolean, {description: `If set to 0, the template will be disabled regardless of the values in ActiveAt/DisabledAt. `})
24702
24937
  IsActive: boolean;
24703
24938
 
24704
24939
  @Field()
@@ -24900,22 +25135,28 @@ export class TemplateResolver extends ResolverBase {
24900
25135
  return this.UpdateRecord('Templates', input, dataSource, userPayload, pubSub);
24901
25136
  }
24902
25137
 
25138
+ @Mutation(() => Template_)
25139
+ async DeleteTemplate(@Arg('ID', () => String) ID: string, @Arg('options___', () => DeleteOptionsInput) options: DeleteOptionsInput, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
25140
+ const key = new CompositeKey([{FieldName: 'ID', Value: ID}]);
25141
+ return this.DeleteRecord('Templates', key, options, dataSource, userPayload, pubSub);
25142
+ }
25143
+
24903
25144
  }
24904
25145
 
24905
25146
  //****************************************************************************
24906
25147
  // ENTITY CLASS for Template Categories
24907
25148
  //****************************************************************************
24908
- @ObjectType({ description: 'Template categories for organizing templates' })
25149
+ @ObjectType({ description: `Template categories for organizing templates` })
24909
25150
  export class TemplateCategory_ {
24910
25151
  @Field()
24911
25152
  @MaxLength(16)
24912
25153
  ID: string;
24913
25154
 
24914
- @Field({description: 'Name of the template category'})
25155
+ @Field({description: `Name of the template category`})
24915
25156
  @MaxLength(510)
24916
25157
  Name: string;
24917
25158
 
24918
- @Field({nullable: true, description: 'Description of the template category'})
25159
+ @Field({nullable: true, description: `Description of the template category`})
24919
25160
  Description?: string;
24920
25161
 
24921
25162
  @Field({nullable: true})
@@ -25079,12 +25320,18 @@ export class TemplateCategoryResolver extends ResolverBase {
25079
25320
  return this.UpdateRecord('Template Categories', input, dataSource, userPayload, pubSub);
25080
25321
  }
25081
25322
 
25323
+ @Mutation(() => TemplateCategory_)
25324
+ async DeleteTemplateCategory(@Arg('ID', () => String) ID: string, @Arg('options___', () => DeleteOptionsInput) options: DeleteOptionsInput, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
25325
+ const key = new CompositeKey([{FieldName: 'ID', Value: ID}]);
25326
+ return this.DeleteRecord('Template Categories', key, options, dataSource, userPayload, pubSub);
25327
+ }
25328
+
25082
25329
  }
25083
25330
 
25084
25331
  //****************************************************************************
25085
25332
  // ENTITY CLASS for Template Contents
25086
25333
  //****************************************************************************
25087
- @ObjectType({ description: 'Template content for different versions of a template for purposes like HTML/Text/etc' })
25334
+ @ObjectType({ description: `Template content for different versions of a template for purposes like HTML/Text/etc` })
25088
25335
  export class TemplateContent_ {
25089
25336
  @Field()
25090
25337
  @MaxLength(16)
@@ -25098,13 +25345,13 @@ export class TemplateContent_ {
25098
25345
  @MaxLength(16)
25099
25346
  TypeID: string;
25100
25347
 
25101
- @Field({nullable: true, description: 'The actual text content for the template'})
25348
+ @Field({nullable: true, description: `The actual text content for the template`})
25102
25349
  TemplateText?: string;
25103
25350
 
25104
- @Field(() => Int, {description: 'Priority of the content version, higher priority versions will be used ahead of lower priority versions for a given Type'})
25351
+ @Field(() => Int, {description: `Priority of the content version, higher priority versions will be used ahead of lower priority versions for a given Type`})
25105
25352
  Priority: number;
25106
25353
 
25107
- @Field(() => Boolean, {description: 'Indicates whether the content is active or not. Use this to disable a particular Template Content item without having to remove it'})
25354
+ @Field(() => Boolean, {description: `Indicates whether the content is active or not. Use this to disable a particular Template Content item without having to remove it`})
25108
25355
  IsActive: boolean;
25109
25356
 
25110
25357
  @Field()
@@ -25244,12 +25491,18 @@ export class TemplateContentResolver extends ResolverBase {
25244
25491
  return this.UpdateRecord('Template Contents', input, dataSource, userPayload, pubSub);
25245
25492
  }
25246
25493
 
25494
+ @Mutation(() => TemplateContent_)
25495
+ async DeleteTemplateContent(@Arg('ID', () => String) ID: string, @Arg('options___', () => DeleteOptionsInput) options: DeleteOptionsInput, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
25496
+ const key = new CompositeKey([{FieldName: 'ID', Value: ID}]);
25497
+ return this.DeleteRecord('Template Contents', key, options, dataSource, userPayload, pubSub);
25498
+ }
25499
+
25247
25500
  }
25248
25501
 
25249
25502
  //****************************************************************************
25250
25503
  // ENTITY CLASS for Template Params
25251
25504
  //****************************************************************************
25252
- @ObjectType({ description: 'Parameters allowed for use inside the template' })
25505
+ @ObjectType({ description: `Parameters allowed for use inside the template` })
25253
25506
  export class TemplateParam_ {
25254
25507
  @Field()
25255
25508
  @MaxLength(16)
@@ -25259,39 +25512,39 @@ export class TemplateParam_ {
25259
25512
  @MaxLength(16)
25260
25513
  TemplateID: string;
25261
25514
 
25262
- @Field({description: 'Name of the parameter'})
25515
+ @Field({description: `Name of the parameter`})
25263
25516
  @MaxLength(510)
25264
25517
  Name: string;
25265
25518
 
25266
- @Field({nullable: true, description: 'Description of the parameter'})
25519
+ @Field({nullable: true, description: `Description of the parameter`})
25267
25520
  Description?: string;
25268
25521
 
25269
- @Field({description: 'Type of the parameter - Record is an individual record within the entity specified by EntityID. Entity means an entire Entity or an entity filtered by the LinkedParameterName/Field attributes and/or ExtraFilter. Object is any valid JSON object. Array and Scalar have their common meanings.'})
25522
+ @Field({description: `Type of the parameter - Record is an individual record within the entity specified by EntityID. Entity means an entire Entity or an entity filtered by the LinkedParameterName/Field attributes and/or ExtraFilter. Object is any valid JSON object. Array and Scalar have their common meanings.`})
25270
25523
  @MaxLength(40)
25271
25524
  Type: string;
25272
25525
 
25273
- @Field({nullable: true, description: 'Default value of the parameter'})
25526
+ @Field({nullable: true, description: `Default value of the parameter`})
25274
25527
  DefaultValue?: string;
25275
25528
 
25276
25529
  @Field(() => Boolean)
25277
25530
  IsRequired: boolean;
25278
25531
 
25279
- @Field({nullable: true, description: 'Only used when Type=Entity, this is used to link an Entity parameter with another parameter so that the rows in the Entity parameter can be filtered automatically based on the FKEY relationship between the Record and this Entity parameter. For example, if the Entity-based parameter is for an entity like Activities and there is another parameter of type Record for an entity like Contacts, in that situation the Activities Parameter would point to the Contacts parameter as the LinkedParameterName because we would filter down the Activities in each template render to only those linked to the Contact.'})
25532
+ @Field({nullable: true, description: `Only used when Type=Entity, this is used to link an Entity parameter with another parameter so that the rows in the Entity parameter can be filtered automatically based on the FKEY relationship between the Record and this Entity parameter. For example, if the Entity-based parameter is for an entity like Activities and there is another parameter of type Record for an entity like Contacts, in that situation the Activities Parameter would point to the Contacts parameter as the LinkedParameterName because we would filter down the Activities in each template render to only those linked to the Contact.`})
25280
25533
  @MaxLength(510)
25281
25534
  LinkedParameterName?: string;
25282
25535
 
25283
- @Field({nullable: true, description: 'If the LinkedParameterName is specified, this is an optional setting to specify the field within the LinkedParameter that will be used for filtering. This is only needed if there is more than one foreign key relationship between the Entity parameter and the Linked parameter, or if there is no defined foreign key in the database between the two entities.'})
25536
+ @Field({nullable: true, description: `If the LinkedParameterName is specified, this is an optional setting to specify the field within the LinkedParameter that will be used for filtering. This is only needed if there is more than one foreign key relationship between the Entity parameter and the Linked parameter, or if there is no defined foreign key in the database between the two entities.`})
25284
25537
  @MaxLength(1000)
25285
25538
  LinkedParameterField?: string;
25286
25539
 
25287
- @Field({nullable: true, description: 'Only used when Type = Entity, used to specify an optional filter to reduce the set of rows that are returned for each of the templates being rendered.'})
25540
+ @Field({nullable: true, description: `Only used when Type = Entity, used to specify an optional filter to reduce the set of rows that are returned for each of the templates being rendered.`})
25288
25541
  ExtraFilter?: string;
25289
25542
 
25290
25543
  @Field({nullable: true})
25291
25544
  @MaxLength(16)
25292
25545
  EntityID?: string;
25293
25546
 
25294
- @Field({nullable: true, description: 'Record ID, used only when Type is Record and a specific hardcoded record ID is desired, this is an uncommon use case, helpful for pulling in static types and metadata in some cases.'})
25547
+ @Field({nullable: true, description: `Record ID, used only when Type is Record and a specific hardcoded record ID is desired, this is an uncommon use case, helpful for pulling in static types and metadata in some cases.`})
25295
25548
  @MaxLength(4000)
25296
25549
  RecordID?: string;
25297
25550
 
@@ -25303,7 +25556,7 @@ export class TemplateParam_ {
25303
25556
  @MaxLength(10)
25304
25557
  _mj__UpdatedAt: Date;
25305
25558
 
25306
- @Field({nullable: true, description: 'This field is used only when the Type of the TemplateParam table is "Entity". It is an optional field used to specify the sorting order for the related entity data that is used in the template for the Entity specified.'})
25559
+ @Field({nullable: true, description: `This field is used only when the Type of the TemplateParam table is "Entity". It is an optional field used to specify the sorting order for the related entity data that is used in the template for the Entity specified.`})
25307
25560
  OrderBy?: string;
25308
25561
 
25309
25562
  @Field()
@@ -25477,25 +25730,31 @@ export class TemplateParamResolver extends ResolverBase {
25477
25730
  return this.UpdateRecord('Template Params', input, dataSource, userPayload, pubSub);
25478
25731
  }
25479
25732
 
25733
+ @Mutation(() => TemplateParam_)
25734
+ async DeleteTemplateParam(@Arg('ID', () => String) ID: string, @Arg('options___', () => DeleteOptionsInput) options: DeleteOptionsInput, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
25735
+ const key = new CompositeKey([{FieldName: 'ID', Value: ID}]);
25736
+ return this.DeleteRecord('Template Params', key, options, dataSource, userPayload, pubSub);
25737
+ }
25738
+
25480
25739
  }
25481
25740
 
25482
25741
  //****************************************************************************
25483
25742
  // ENTITY CLASS for Template Content Types
25484
25743
  //****************************************************************************
25485
- @ObjectType({ description: 'Template content types for categorizing content within templates' })
25744
+ @ObjectType({ description: `Template content types for categorizing content within templates` })
25486
25745
  export class TemplateContentType_ {
25487
25746
  @Field()
25488
25747
  @MaxLength(16)
25489
25748
  ID: string;
25490
25749
 
25491
- @Field({description: 'Name of the template content type'})
25750
+ @Field({description: `Name of the template content type`})
25492
25751
  @MaxLength(510)
25493
25752
  Name: string;
25494
25753
 
25495
- @Field({nullable: true, description: 'Description of the template content type'})
25754
+ @Field({nullable: true, description: `Description of the template content type`})
25496
25755
  Description?: string;
25497
25756
 
25498
- @Field({description: 'Refers to the primary language or codetype of the templates of this type, HTML, JSON, JavaScript, etc'})
25757
+ @Field({description: `Refers to the primary language or codetype of the templates of this type, HTML, JSON, JavaScript, etc`})
25499
25758
  @MaxLength(50)
25500
25759
  CodeType: string;
25501
25760
 
@@ -25627,12 +25886,18 @@ export class TemplateContentTypeResolver extends ResolverBase {
25627
25886
  return this.UpdateRecord('Template Content Types', input, dataSource, userPayload, pubSub);
25628
25887
  }
25629
25888
 
25889
+ @Mutation(() => TemplateContentType_)
25890
+ async DeleteTemplateContentType(@Arg('ID', () => String) ID: string, @Arg('options___', () => DeleteOptionsInput) options: DeleteOptionsInput, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
25891
+ const key = new CompositeKey([{FieldName: 'ID', Value: ID}]);
25892
+ return this.DeleteRecord('Template Content Types', key, options, dataSource, userPayload, pubSub);
25893
+ }
25894
+
25630
25895
  }
25631
25896
 
25632
25897
  //****************************************************************************
25633
25898
  // ENTITY CLASS for Recommendations
25634
25899
  //****************************************************************************
25635
- @ObjectType({ description: 'Recommendation headers that store the left side of the recommendation which we track in the SourceEntityID/SourceEntityRecordID' })
25900
+ @ObjectType({ description: `Recommendation headers that store the left side of the recommendation which we track in the SourceEntityID/SourceEntityRecordID` })
25636
25901
  export class Recommendation_ {
25637
25902
  @Field()
25638
25903
  @MaxLength(16)
@@ -25646,7 +25911,7 @@ export class Recommendation_ {
25646
25911
  @MaxLength(16)
25647
25912
  SourceEntityID: string;
25648
25913
 
25649
- @Field({description: 'The record ID of the source entity'})
25914
+ @Field({description: `The record ID of the source entity`})
25650
25915
  SourceEntityRecordID: string;
25651
25916
 
25652
25917
  @Field()
@@ -25786,7 +26051,7 @@ export class RecommendationResolver extends ResolverBase {
25786
26051
  //****************************************************************************
25787
26052
  // ENTITY CLASS for Recommendation Providers
25788
26053
  //****************************************************************************
25789
- @ObjectType({ description: 'Recommendation providers details' })
26054
+ @ObjectType({ description: `Recommendation providers details` })
25790
26055
  export class RecommendationProvider_ {
25791
26056
  @Field()
25792
26057
  @MaxLength(16)
@@ -25921,12 +26186,18 @@ export class RecommendationProviderResolver extends ResolverBase {
25921
26186
  return this.UpdateRecord('Recommendation Providers', input, dataSource, userPayload, pubSub);
25922
26187
  }
25923
26188
 
26189
+ @Mutation(() => RecommendationProvider_)
26190
+ async DeleteRecommendationProvider(@Arg('ID', () => String) ID: string, @Arg('options___', () => DeleteOptionsInput) options: DeleteOptionsInput, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
26191
+ const key = new CompositeKey([{FieldName: 'ID', Value: ID}]);
26192
+ return this.DeleteRecord('Recommendation Providers', key, options, dataSource, userPayload, pubSub);
26193
+ }
26194
+
25924
26195
  }
25925
26196
 
25926
26197
  //****************************************************************************
25927
26198
  // ENTITY CLASS for Recommendation Runs
25928
26199
  //****************************************************************************
25929
- @ObjectType({ description: 'Recommendation runs log each time a provider is requested to provide recommendations' })
26200
+ @ObjectType({ description: `Recommendation runs log each time a provider is requested to provide recommendations` })
25930
26201
  export class RecommendationRun_ {
25931
26202
  @Field()
25932
26203
  @MaxLength(16)
@@ -25936,15 +26207,15 @@ export class RecommendationRun_ {
25936
26207
  @MaxLength(16)
25937
26208
  RecommendationProviderID: string;
25938
26209
 
25939
- @Field({description: 'The start date of the recommendation run'})
26210
+ @Field({description: `The start date of the recommendation run`})
25940
26211
  @MaxLength(8)
25941
26212
  StartDate: Date;
25942
26213
 
25943
- @Field({nullable: true, description: 'The end date of the recommendation run'})
26214
+ @Field({nullable: true, description: `The end date of the recommendation run`})
25944
26215
  @MaxLength(8)
25945
26216
  EndDate?: Date;
25946
26217
 
25947
- @Field({description: 'The status of the recommendation run'})
26218
+ @Field({description: `The status of the recommendation run`})
25948
26219
  @MaxLength(100)
25949
26220
  Status: string;
25950
26221
 
@@ -26114,7 +26385,7 @@ export class RecommendationRunResolver extends ResolverBase {
26114
26385
  //****************************************************************************
26115
26386
  // ENTITY CLASS for Recommendation Items
26116
26387
  //****************************************************************************
26117
- @ObjectType({ description: 'Table to store individual recommendation items that are the right side of the recommendation which we track in the DestinationEntityID/DestinationEntityRecordID' })
26388
+ @ObjectType({ description: `Table to store individual recommendation items that are the right side of the recommendation which we track in the DestinationEntityID/DestinationEntityRecordID` })
26118
26389
  export class RecommendationItem_ {
26119
26390
  @Field()
26120
26391
  @MaxLength(16)
@@ -26128,11 +26399,11 @@ export class RecommendationItem_ {
26128
26399
  @MaxLength(16)
26129
26400
  DestinationEntityID: string;
26130
26401
 
26131
- @Field({description: 'The record ID of the destination entity'})
26402
+ @Field({description: `The record ID of the destination entity`})
26132
26403
  @MaxLength(900)
26133
26404
  DestinationEntityRecordID: string;
26134
26405
 
26135
- @Field(() => Float, {nullable: true, description: 'A value between 0 and 1 indicating the probability of the match, higher numbers indicating a more certain match/recommendation.'})
26406
+ @Field(() => Float, {nullable: true, description: `A value between 0 and 1 indicating the probability of the match, higher numbers indicating a more certain match/recommendation.`})
26136
26407
  MatchProbability?: number;
26137
26408
 
26138
26409
  @Field()
@@ -26267,7 +26538,7 @@ export class RecommendationItemResolver extends ResolverBase {
26267
26538
  //****************************************************************************
26268
26539
  // ENTITY CLASS for Entity Communication Message Types
26269
26540
  //****************************************************************************
26270
- @ObjectType({ description: 'Mapping between entities and communication base message types' })
26541
+ @ObjectType({ description: `Mapping between entities and communication base message types` })
26271
26542
  export class EntityCommunicationMessageType_ {
26272
26543
  @Field()
26273
26544
  @MaxLength(16)
@@ -26281,7 +26552,7 @@ export class EntityCommunicationMessageType_ {
26281
26552
  @MaxLength(16)
26282
26553
  BaseMessageTypeID: string;
26283
26554
 
26284
- @Field(() => Boolean, {description: 'Indicates whether the message type is active'})
26555
+ @Field(() => Boolean, {description: `Indicates whether the message type is active`})
26285
26556
  IsActive: boolean;
26286
26557
 
26287
26558
  @Field()
@@ -26420,12 +26691,18 @@ export class EntityCommunicationMessageTypeResolver extends ResolverBase {
26420
26691
  return this.UpdateRecord('Entity Communication Message Types', input, dataSource, userPayload, pubSub);
26421
26692
  }
26422
26693
 
26694
+ @Mutation(() => EntityCommunicationMessageType_)
26695
+ async DeleteEntityCommunicationMessageType(@Arg('ID', () => String) ID: string, @Arg('options___', () => DeleteOptionsInput) options: DeleteOptionsInput, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
26696
+ const key = new CompositeKey([{FieldName: 'ID', Value: ID}]);
26697
+ return this.DeleteRecord('Entity Communication Message Types', key, options, dataSource, userPayload, pubSub);
26698
+ }
26699
+
26423
26700
  }
26424
26701
 
26425
26702
  //****************************************************************************
26426
26703
  // ENTITY CLASS for Entity Communication Fields
26427
26704
  //****************************************************************************
26428
- @ObjectType({ description: 'Mapping between entity fields and communication base message types with priority' })
26705
+ @ObjectType({ description: `Mapping between entity fields and communication base message types with priority` })
26429
26706
  export class EntityCommunicationField_ {
26430
26707
  @Field()
26431
26708
  @MaxLength(16)
@@ -26435,11 +26712,11 @@ export class EntityCommunicationField_ {
26435
26712
  @MaxLength(16)
26436
26713
  EntityCommunicationMessageTypeID: string;
26437
26714
 
26438
- @Field({description: 'Name of the field in the entity that maps to the communication base message type'})
26715
+ @Field({description: `Name of the field in the entity that maps to the communication base message type`})
26439
26716
  @MaxLength(1000)
26440
26717
  FieldName: string;
26441
26718
 
26442
- @Field(() => Int, {description: 'Priority of the field for the communication base message type'})
26719
+ @Field(() => Int, {description: `Priority of the field for the communication base message type`})
26443
26720
  Priority: number;
26444
26721
 
26445
26722
  @Field()
@@ -26559,26 +26836,32 @@ export class EntityCommunicationFieldResolver extends ResolverBase {
26559
26836
  return this.UpdateRecord('Entity Communication Fields', input, dataSource, userPayload, pubSub);
26560
26837
  }
26561
26838
 
26839
+ @Mutation(() => EntityCommunicationField_)
26840
+ async DeleteEntityCommunicationField(@Arg('ID', () => String) ID: string, @Arg('options___', () => DeleteOptionsInput) options: DeleteOptionsInput, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
26841
+ const key = new CompositeKey([{FieldName: 'ID', Value: ID}]);
26842
+ return this.DeleteRecord('Entity Communication Fields', key, options, dataSource, userPayload, pubSub);
26843
+ }
26844
+
26562
26845
  }
26563
26846
 
26564
26847
  //****************************************************************************
26565
26848
  // ENTITY CLASS for Record Change Replay Runs
26566
26849
  //****************************************************************************
26567
- @ObjectType({ description: 'Table to track the runs of replaying external record changes' })
26850
+ @ObjectType({ description: `Table to track the runs of replaying external record changes` })
26568
26851
  export class RecordChangeReplayRun_ {
26569
26852
  @Field()
26570
26853
  @MaxLength(16)
26571
26854
  ID: string;
26572
26855
 
26573
- @Field({description: 'Timestamp when the replay run started'})
26856
+ @Field({description: `Timestamp when the replay run started`})
26574
26857
  @MaxLength(8)
26575
26858
  StartedAt: Date;
26576
26859
 
26577
- @Field({nullable: true, description: 'Timestamp when the replay run ended'})
26860
+ @Field({nullable: true, description: `Timestamp when the replay run ended`})
26578
26861
  @MaxLength(8)
26579
26862
  EndedAt?: Date;
26580
26863
 
26581
- @Field({description: 'Status of the replay run (Pending, In Progress, Complete, Error)'})
26864
+ @Field({description: `Status of the replay run (Pending, In Progress, Complete, Error)`})
26582
26865
  @MaxLength(100)
26583
26866
  Status: string;
26584
26867
 
@@ -26729,7 +27012,7 @@ export class RecordChangeReplayRunResolver extends ResolverBase {
26729
27012
  //****************************************************************************
26730
27013
  // ENTITY CLASS for Library Items
26731
27014
  //****************************************************************************
26732
- @ObjectType({ description: 'Table to store individual library items' })
27015
+ @ObjectType({ description: `Table to store individual library items` })
26733
27016
  export class LibraryItem_ {
26734
27017
  @Field()
26735
27018
  @MaxLength(16)
@@ -26743,7 +27026,7 @@ export class LibraryItem_ {
26743
27026
  @MaxLength(16)
26744
27027
  LibraryID: string;
26745
27028
 
26746
- @Field({description: 'Type of the library item for example Class, Interface, etc.'})
27029
+ @Field({description: `Type of the library item for example Class, Interface, etc.`})
26747
27030
  @MaxLength(100)
26748
27031
  Type: string;
26749
27032
 
@@ -26868,12 +27151,18 @@ export class LibraryItemResolver extends ResolverBase {
26868
27151
  return this.UpdateRecord('Library Items', input, dataSource, userPayload, pubSub);
26869
27152
  }
26870
27153
 
27154
+ @Mutation(() => LibraryItem_)
27155
+ async DeleteLibraryItem(@Arg('ID', () => String) ID: string, @Arg('options___', () => DeleteOptionsInput) options: DeleteOptionsInput, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
27156
+ const key = new CompositeKey([{FieldName: 'ID', Value: ID}]);
27157
+ return this.DeleteRecord('Library Items', key, options, dataSource, userPayload, pubSub);
27158
+ }
27159
+
26871
27160
  }
26872
27161
 
26873
27162
  //****************************************************************************
26874
27163
  // ENTITY CLASS for Entity Relationship Display Components
26875
27164
  //****************************************************************************
26876
- @ObjectType({ description: 'This table stores a list of components that are available for displaying relationships in the MJ Explorer UI' })
27165
+ @ObjectType({ description: `This table stores a list of components that are available for displaying relationships in the MJ Explorer UI` })
26877
27166
  export class EntityRelationshipDisplayComponent_ {
26878
27167
  @Field()
26879
27168
  @MaxLength(16)
@@ -26886,7 +27175,7 @@ export class EntityRelationshipDisplayComponent_ {
26886
27175
  @Field({nullable: true})
26887
27176
  Description?: string;
26888
27177
 
26889
- @Field({description: 'The type of relationship the component displays. Valid values are "One to Many", "Many to Many", or "Both".'})
27178
+ @Field({description: `The type of relationship the component displays. Valid values are "One to Many", "Many to Many", or "Both".`})
26890
27179
  @MaxLength(40)
26891
27180
  RelationshipType: string;
26892
27181
 
@@ -27023,7 +27312,7 @@ export class EntityRelationshipDisplayComponentResolver extends ResolverBase {
27023
27312
  //****************************************************************************
27024
27313
  // ENTITY CLASS for Entity Action Params
27025
27314
  //****************************************************************************
27026
- @ObjectType({ description: 'Stores paramater mappings to enable Entity Actions to automatically invoke Actions' })
27315
+ @ObjectType({ description: `Stores paramater mappings to enable Entity Actions to automatically invoke Actions` })
27027
27316
  export class EntityActionParam_ {
27028
27317
  @Field()
27029
27318
  @MaxLength(16)
@@ -27037,14 +27326,14 @@ export class EntityActionParam_ {
27037
27326
  @MaxLength(16)
27038
27327
  ActionParamID: string;
27039
27328
 
27040
- @Field({description: 'Type of the value, which can be Static, Entity Object, or Script.'})
27329
+ @Field({description: `Type of the value, which can be Static, Entity Object, or Script.`})
27041
27330
  @MaxLength(40)
27042
27331
  ValueType: string;
27043
27332
 
27044
- @Field({nullable: true, description: 'Value of the parameter, used only when ValueType is Static or Script. When value is Script, any valid JavaScript code can be provided. The script will have access to an object called EntityActionContext. This object will have a property called EntityObject on it that will contain the BaseEntity derived sub-class with the current data for the entity object this action is operating against. The script must provide the parameter value to the EntityActionContext.result property. This scripting capabilty is designed for very small and simple code, for anything of meaningful complexity, create a sub-class instead.'})
27333
+ @Field({nullable: true, description: `Value of the parameter, used only when ValueType is Static or Script. When value is Script, any valid JavaScript code can be provided. The script will have access to an object called EntityActionContext. This object will have a property called EntityObject on it that will contain the BaseEntity derived sub-class with the current data for the entity object this action is operating against. The script must provide the parameter value to the EntityActionContext.result property. This scripting capabilty is designed for very small and simple code, for anything of meaningful complexity, create a sub-class instead.`})
27045
27334
  Value?: string;
27046
27335
 
27047
- @Field({nullable: true, description: 'Additional comments regarding the parameter.'})
27336
+ @Field({nullable: true, description: `Additional comments regarding the parameter.`})
27048
27337
  Comments?: string;
27049
27338
 
27050
27339
  @Field()
@@ -27191,29 +27480,29 @@ export class EntityActionParamResolver extends ResolverBase {
27191
27480
  //****************************************************************************
27192
27481
  // ENTITY CLASS for Resource Permissions
27193
27482
  //****************************************************************************
27194
- @ObjectType({ description: 'Table for managing sharing of resources to users or roles with time constraints and permission levels' })
27483
+ @ObjectType({ description: `Table for managing sharing of resources to users or roles with time constraints and permission levels` })
27195
27484
  export class ResourcePermission_ {
27196
27485
  @Field()
27197
27486
  @MaxLength(16)
27198
27487
  ID: string;
27199
27488
 
27200
- @Field({description: 'Reference to the type of resource being shared (View, Dashboard, Report, etc.)'})
27489
+ @Field({description: `Reference to the type of resource being shared (View, Dashboard, Report, etc.)`})
27201
27490
  @MaxLength(16)
27202
27491
  ResourceTypeID: string;
27203
27492
 
27204
- @Field({description: 'ID of the specific resource being shared'})
27493
+ @Field({description: `ID of the specific resource being shared`})
27205
27494
  @MaxLength(510)
27206
27495
  ResourceRecordID: string;
27207
27496
 
27208
- @Field({description: 'The level of sharing either Role or User'})
27497
+ @Field({description: `The level of sharing either Role or User`})
27209
27498
  @MaxLength(20)
27210
27499
  Type: string;
27211
27500
 
27212
- @Field({nullable: true, description: 'Optional: Date when sharing starts'})
27501
+ @Field({nullable: true, description: `Optional: Date when sharing starts`})
27213
27502
  @MaxLength(10)
27214
27503
  StartSharingAt?: Date;
27215
27504
 
27216
- @Field({nullable: true, description: 'Optional: Date when sharing ends'})
27505
+ @Field({nullable: true, description: `Optional: Date when sharing ends`})
27217
27506
  @MaxLength(10)
27218
27507
  EndSharingAt?: Date;
27219
27508
 
@@ -27225,7 +27514,7 @@ export class ResourcePermission_ {
27225
27514
  @MaxLength(16)
27226
27515
  UserID?: string;
27227
27516
 
27228
- @Field({nullable: true, description: 'Permission level defining the type of access (View, Edit, Owner)'})
27517
+ @Field({nullable: true, description: `Permission level defining the type of access (View, Edit, Owner)`})
27229
27518
  @MaxLength(40)
27230
27519
  PermissionLevel?: string;
27231
27520
 
@@ -27237,7 +27526,7 @@ export class ResourcePermission_ {
27237
27526
  @MaxLength(10)
27238
27527
  _mj__UpdatedAt: Date;
27239
27528
 
27240
- @Field({description: 'Status of the resource permission request. Possible values are Requested, Approved, Rejected, or Revoked.'})
27529
+ @Field({description: `Status of the resource permission request. Possible values are Requested, Approved, Rejected, or Revoked.`})
27241
27530
  @MaxLength(40)
27242
27531
  Status: string;
27243
27532
 
@@ -27409,25 +27698,25 @@ export class ResourcePermissionResolver extends ResolverBase {
27409
27698
  //****************************************************************************
27410
27699
  // ENTITY CLASS for Resource Links
27411
27700
  //****************************************************************************
27412
- @ObjectType({ description: 'Table to track user links to shared resources such as views, dashboards, etc.' })
27701
+ @ObjectType({ description: `Table to track user links to shared resources such as views, dashboards, etc.` })
27413
27702
  export class ResourceLink_ {
27414
- @Field({description: 'Unique identifier for each resource link'})
27703
+ @Field({description: `Unique identifier for each resource link`})
27415
27704
  @MaxLength(16)
27416
27705
  ID: string;
27417
27706
 
27418
- @Field({description: 'Foreign key to the user linking the resource'})
27707
+ @Field({description: `Foreign key to the user linking the resource`})
27419
27708
  @MaxLength(16)
27420
27709
  UserID: string;
27421
27710
 
27422
- @Field({description: 'Foreign key to the resource type (view, dashboard, etc.)'})
27711
+ @Field({description: `Foreign key to the resource type (view, dashboard, etc.)`})
27423
27712
  @MaxLength(16)
27424
27713
  ResourceTypeID: string;
27425
27714
 
27426
- @Field({description: 'ID of the specific resource being linked'})
27715
+ @Field({description: `ID of the specific resource being linked`})
27427
27716
  @MaxLength(510)
27428
27717
  ResourceRecordID: string;
27429
27718
 
27430
- @Field({nullable: true, description: 'Optional folder where the user organizes the linked resource'})
27719
+ @Field({nullable: true, description: `Optional folder where the user organizes the linked resource`})
27431
27720
  @MaxLength(510)
27432
27721
  FolderID?: string;
27433
27722
 
@@ -27571,45 +27860,46 @@ export class ResourceLinkResolver extends ResolverBase {
27571
27860
  }
27572
27861
 
27573
27862
  //****************************************************************************
27574
- // ENTITY CLASS for flyway _schema _histories
27863
+ // ENTITY CLASS for AI Agent Requests
27575
27864
  //****************************************************************************
27576
27865
  @ObjectType()
27577
- export class flyway_schema_history_ {
27578
- @Field(() => Int)
27579
- installed_rank: number;
27866
+ export class AIAgentRequest_ {
27867
+ @Field({description: `Primary key for the AIAgentRequest table, uniquely identifies each record.`})
27868
+ @MaxLength(16)
27869
+ ID: string;
27580
27870
 
27581
- @Field({nullable: true})
27582
- @MaxLength(100)
27583
- version?: string;
27871
+ @Field({description: `Foreign key referencing the ID column in the AIAgent table.`})
27872
+ @MaxLength(16)
27873
+ AgentID: string;
27584
27874
 
27585
- @Field({nullable: true})
27586
- @MaxLength(400)
27587
- description?: string;
27875
+ @Field({description: `Timestamp when the request was made by the agent.`})
27876
+ @MaxLength(8)
27877
+ RequestedAt: Date;
27588
27878
 
27589
- @Field()
27879
+ @Field({nullable: true, description: `Optional, a user that the AI specifically is directing the request to, if null intended for general system owner.`})
27880
+ @MaxLength(16)
27881
+ RequestForUserID?: string;
27882
+
27883
+ @Field({description: `Current status of the request (Requested, Approved, Rejected, Canceled).`})
27590
27884
  @MaxLength(40)
27591
- type: string;
27885
+ Status: string;
27592
27886
 
27593
- @Field()
27594
- @MaxLength(2000)
27595
- script: string;
27887
+ @Field({description: `Details of what the AI Agent is requesting.`})
27888
+ Request: string;
27596
27889
 
27597
- @Field(() => Int, {nullable: true})
27598
- checksum?: number;
27890
+ @Field({nullable: true, description: `Response provided by the human to the agent request.`})
27891
+ Response?: string;
27599
27892
 
27600
- @Field()
27601
- @MaxLength(200)
27602
- installed_by: string;
27893
+ @Field({nullable: true, description: `Populated when a user responds indicating which user responded to the request.`})
27894
+ @MaxLength(16)
27895
+ ResponseByUserID?: string;
27603
27896
 
27604
- @Field()
27897
+ @Field({nullable: true, description: `Timestamp when the response was provided by the human.`})
27605
27898
  @MaxLength(8)
27606
- installed_on: Date;
27607
-
27608
- @Field(() => Int)
27609
- execution_time: number;
27899
+ RespondedAt?: Date;
27610
27900
 
27611
- @Field(() => Boolean)
27612
- success: boolean;
27901
+ @Field({nullable: true, description: `Additional comments about the request. Not shared with the agent, purely record keeping.`})
27902
+ Comments?: string;
27613
27903
 
27614
27904
  @Field()
27615
27905
  @MaxLength(10)
@@ -27619,242 +27909,36 @@ export class flyway_schema_history_ {
27619
27909
  @MaxLength(10)
27620
27910
  _mj__UpdatedAt: Date;
27621
27911
 
27912
+ @Field({nullable: true})
27913
+ @MaxLength(510)
27914
+ Agent?: string;
27915
+
27916
+ @Field({nullable: true})
27917
+ @MaxLength(200)
27918
+ RequestForUser?: string;
27919
+
27920
+ @Field({nullable: true})
27921
+ @MaxLength(200)
27922
+ ResponseByUser?: string;
27923
+
27622
27924
  }
27623
27925
 
27624
27926
  //****************************************************************************
27625
- // INPUT TYPE for flyway _schema _histories
27927
+ // INPUT TYPE for AI Agent Requests
27626
27928
  //****************************************************************************
27627
27929
  @InputType()
27628
- export class Createflyway_schema_historyInput {
27629
- @Field(() => Int)
27630
- installed_rank: number;
27930
+ export class CreateAIAgentRequestInput {
27931
+ @Field()
27932
+ AgentID: string;
27631
27933
 
27632
- @Field({ nullable: true })
27633
- version?: string;
27934
+ @Field()
27935
+ RequestedAt: Date;
27634
27936
 
27635
27937
  @Field({ nullable: true })
27636
- description?: string;
27938
+ RequestForUserID?: string;
27637
27939
 
27638
27940
  @Field()
27639
- type: string;
27640
-
27641
- @Field()
27642
- script: string;
27643
-
27644
- @Field(() => Int, { nullable: true })
27645
- checksum?: number;
27646
-
27647
- @Field()
27648
- installed_by: string;
27649
-
27650
- @Field()
27651
- installed_on: Date;
27652
-
27653
- @Field(() => Int)
27654
- execution_time: number;
27655
-
27656
- @Field(() => Boolean)
27657
- success: boolean;
27658
- }
27659
-
27660
-
27661
- //****************************************************************************
27662
- // INPUT TYPE for flyway _schema _histories
27663
- //****************************************************************************
27664
- @InputType()
27665
- export class Updateflyway_schema_historyInput {
27666
- @Field(() => Int)
27667
- installed_rank: number;
27668
-
27669
- @Field({ nullable: true })
27670
- version?: string;
27671
-
27672
- @Field({ nullable: true })
27673
- description?: string;
27674
-
27675
- @Field()
27676
- type: string;
27677
-
27678
- @Field()
27679
- script: string;
27680
-
27681
- @Field(() => Int, { nullable: true })
27682
- checksum?: number;
27683
-
27684
- @Field()
27685
- installed_by: string;
27686
-
27687
- @Field()
27688
- installed_on: Date;
27689
-
27690
- @Field(() => Int)
27691
- execution_time: number;
27692
-
27693
- @Field(() => Boolean)
27694
- success: boolean;
27695
-
27696
- @Field(() => [KeyValuePairInput], { nullable: true })
27697
- OldValues___?: KeyValuePairInput[];
27698
- }
27699
-
27700
- //****************************************************************************
27701
- // RESOLVER for flyway _schema _histories
27702
- //****************************************************************************
27703
- @ObjectType()
27704
- export class Runflyway_schema_historyViewResult {
27705
- @Field(() => [flyway_schema_history_])
27706
- Results: flyway_schema_history_[];
27707
-
27708
- @Field(() => String, {nullable: true})
27709
- UserViewRunID?: string;
27710
-
27711
- @Field(() => Int, {nullable: true})
27712
- RowCount: number;
27713
-
27714
- @Field(() => Int, {nullable: true})
27715
- TotalRowCount: number;
27716
-
27717
- @Field(() => Int, {nullable: true})
27718
- ExecutionTime: number;
27719
-
27720
- @Field({nullable: true})
27721
- ErrorMessage?: string;
27722
-
27723
- @Field(() => Boolean, {nullable: false})
27724
- Success: boolean;
27725
- }
27726
-
27727
- @Resolver(flyway_schema_history_)
27728
- export class flyway_schema_historyResolver extends ResolverBase {
27729
- @Query(() => Runflyway_schema_historyViewResult)
27730
- async Runflyway_schema_historyViewByID(@Arg('input', () => RunViewByIDInput) input: RunViewByIDInput, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
27731
- return super.RunViewByIDGeneric(input, dataSource, userPayload, pubSub);
27732
- }
27733
-
27734
- @Query(() => Runflyway_schema_historyViewResult)
27735
- async Runflyway_schema_historyViewByName(@Arg('input', () => RunViewByNameInput) input: RunViewByNameInput, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
27736
- return super.RunViewByNameGeneric(input, dataSource, userPayload, pubSub);
27737
- }
27738
-
27739
- @Query(() => Runflyway_schema_historyViewResult)
27740
- async Runflyway_schema_historyDynamicView(@Arg('input', () => RunDynamicViewInput) input: RunDynamicViewInput, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
27741
- input.EntityName = 'flyway _schema _histories';
27742
- return super.RunDynamicViewGeneric(input, dataSource, userPayload, pubSub);
27743
- }
27744
- @Query(() => flyway_schema_history_, { nullable: true })
27745
- async flyway_schema_history(@Arg('installed_rank', () => Int) installed_rank: number, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine): Promise<flyway_schema_history_ | null> {
27746
- this.CheckUserReadPermissions('flyway _schema _histories', userPayload);
27747
- const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwflyway_schema_histories] WHERE [installed_rank]=${installed_rank} ` + this.getRowLevelSecurityWhereClause('flyway _schema _histories', userPayload, EntityPermissionType.Read, 'AND');
27748
- const result = this.MapFieldNamesToCodeNames('flyway _schema _histories', await dataSource.query(sSQL).then((r) => r && r.length > 0 ? r[0] : {}))
27749
- return result;
27750
- }
27751
-
27752
- @Mutation(() => flyway_schema_history_)
27753
- async Createflyway_schema_history(
27754
- @Arg('input', () => Createflyway_schema_historyInput) input: Createflyway_schema_historyInput,
27755
- @Ctx() { dataSource, userPayload }: AppContext,
27756
- @PubSub() pubSub: PubSubEngine
27757
- ) {
27758
- return this.CreateRecord('flyway _schema _histories', input, dataSource, userPayload, pubSub)
27759
- }
27760
-
27761
- @Mutation(() => flyway_schema_history_)
27762
- async Updateflyway_schema_history(
27763
- @Arg('input', () => Updateflyway_schema_historyInput) input: Updateflyway_schema_historyInput,
27764
- @Ctx() { dataSource, userPayload }: AppContext,
27765
- @PubSub() pubSub: PubSubEngine
27766
- ) {
27767
- return this.UpdateRecord('flyway _schema _histories', input, dataSource, userPayload, pubSub);
27768
- }
27769
-
27770
- @Mutation(() => flyway_schema_history_)
27771
- async Deleteflyway_schema_history(@Arg('installed_rank', () => Int) installed_rank: number, @Arg('options___', () => DeleteOptionsInput) options: DeleteOptionsInput, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
27772
- const key = new CompositeKey([{FieldName: 'installed_rank', Value: installed_rank}]);
27773
- return this.DeleteRecord('flyway _schema _histories', key, options, dataSource, userPayload, pubSub);
27774
- }
27775
-
27776
- }
27777
-
27778
- //****************************************************************************
27779
- // ENTITY CLASS for AI Agent Requests
27780
- //****************************************************************************
27781
- @ObjectType()
27782
- export class AIAgentRequest_ {
27783
- @Field({description: 'Primary key for the AIAgentRequest table, uniquely identifies each record.'})
27784
- @MaxLength(16)
27785
- ID: string;
27786
-
27787
- @Field({description: 'Foreign key referencing the ID column in the AIAgent table.'})
27788
- @MaxLength(16)
27789
- AgentID: string;
27790
-
27791
- @Field({description: 'Timestamp when the request was made by the agent.'})
27792
- @MaxLength(8)
27793
- RequestedAt: Date;
27794
-
27795
- @Field({nullable: true, description: 'Optional, a user that the AI specifically is directing the request to, if null intended for general system owner.'})
27796
- @MaxLength(16)
27797
- RequestForUserID?: string;
27798
-
27799
- @Field({description: 'Current status of the request (Requested, Approved, Rejected, Canceled).'})
27800
- @MaxLength(40)
27801
- Status: string;
27802
-
27803
- @Field({description: 'Details of what the AI Agent is requesting.'})
27804
- Request: string;
27805
-
27806
- @Field({nullable: true, description: 'Response provided by the human to the agent request.'})
27807
- Response?: string;
27808
-
27809
- @Field({nullable: true, description: 'Populated when a user responds indicating which user responded to the request.'})
27810
- @MaxLength(16)
27811
- ResponseByUserID?: string;
27812
-
27813
- @Field({nullable: true, description: 'Timestamp when the response was provided by the human.'})
27814
- @MaxLength(8)
27815
- RespondedAt?: Date;
27816
-
27817
- @Field({nullable: true, description: 'Additional comments about the request. Not shared with the agent, purely record keeping.'})
27818
- Comments?: string;
27819
-
27820
- @Field()
27821
- @MaxLength(10)
27822
- _mj__CreatedAt: Date;
27823
-
27824
- @Field()
27825
- @MaxLength(10)
27826
- _mj__UpdatedAt: Date;
27827
-
27828
- @Field({nullable: true})
27829
- @MaxLength(510)
27830
- Agent?: string;
27831
-
27832
- @Field({nullable: true})
27833
- @MaxLength(200)
27834
- RequestForUser?: string;
27835
-
27836
- @Field({nullable: true})
27837
- @MaxLength(200)
27838
- ResponseByUser?: string;
27839
-
27840
- }
27841
-
27842
- //****************************************************************************
27843
- // INPUT TYPE for AI Agent Requests
27844
- //****************************************************************************
27845
- @InputType()
27846
- export class CreateAIAgentRequestInput {
27847
- @Field()
27848
- AgentID: string;
27849
-
27850
- @Field()
27851
- RequestedAt: Date;
27852
-
27853
- @Field({ nullable: true })
27854
- RequestForUserID?: string;
27855
-
27856
- @Field()
27857
- Status: string;
27941
+ Status: string;
27858
27942
 
27859
27943
  @Field()
27860
27944
  Request: string;
@@ -27993,17 +28077,17 @@ export class AIAgentRequestResolver extends ResolverBase {
27993
28077
  //****************************************************************************
27994
28078
  // ENTITY CLASS for Query Entities
27995
28079
  //****************************************************************************
27996
- @ObjectType({ description: 'Tracks which entities are involved in a given query. The Queries table stores SQL and descriptions for stored queries that can be executed and serve as examples for AI.' })
28080
+ @ObjectType({ description: `Tracks which entities are involved in a given query. The Queries table stores SQL and descriptions for stored queries that can be executed and serve as examples for AI.` })
27997
28081
  export class QueryEntity_ {
27998
- @Field({description: 'Unique identifier for the QueryEntity record.'})
28082
+ @Field({description: `Unique identifier for the QueryEntity record.`})
27999
28083
  @MaxLength(16)
28000
28084
  ID: string;
28001
28085
 
28002
- @Field({description: 'References the ID of the query in the Queries table.'})
28086
+ @Field({description: `References the ID of the query in the Queries table.`})
28003
28087
  @MaxLength(16)
28004
28088
  QueryID: string;
28005
28089
 
28006
- @Field({description: 'References the ID of the entity in the Entities table.'})
28090
+ @Field({description: `References the ID of the entity in the Entities table.`})
28007
28091
  @MaxLength(16)
28008
28092
  EntityID: string;
28009
28093
 
@@ -28134,6 +28218,211 @@ export class QueryEntityResolver extends ResolverBase {
28134
28218
 
28135
28219
  }
28136
28220
 
28221
+ //****************************************************************************
28222
+ // ENTITY CLASS for flyway _schema _histories
28223
+ //****************************************************************************
28224
+ @ObjectType()
28225
+ export class flyway_schema_history_ {
28226
+ @Field(() => Int)
28227
+ installed_rank: number;
28228
+
28229
+ @Field({nullable: true})
28230
+ @MaxLength(100)
28231
+ version?: string;
28232
+
28233
+ @Field({nullable: true})
28234
+ @MaxLength(400)
28235
+ description?: string;
28236
+
28237
+ @Field()
28238
+ @MaxLength(40)
28239
+ type: string;
28240
+
28241
+ @Field()
28242
+ @MaxLength(2000)
28243
+ script: string;
28244
+
28245
+ @Field(() => Int, {nullable: true})
28246
+ checksum?: number;
28247
+
28248
+ @Field()
28249
+ @MaxLength(200)
28250
+ installed_by: string;
28251
+
28252
+ @Field()
28253
+ @MaxLength(8)
28254
+ installed_on: Date;
28255
+
28256
+ @Field(() => Int)
28257
+ execution_time: number;
28258
+
28259
+ @Field(() => Boolean)
28260
+ success: boolean;
28261
+
28262
+ @Field()
28263
+ @MaxLength(10)
28264
+ _mj__CreatedAt: Date;
28265
+
28266
+ @Field()
28267
+ @MaxLength(10)
28268
+ _mj__UpdatedAt: Date;
28269
+
28270
+ }
28271
+
28272
+ //****************************************************************************
28273
+ // INPUT TYPE for flyway _schema _histories
28274
+ //****************************************************************************
28275
+ @InputType()
28276
+ export class Createflyway_schema_historyInput {
28277
+ @Field(() => Int)
28278
+ installed_rank: number;
28279
+
28280
+ @Field({ nullable: true })
28281
+ version?: string;
28282
+
28283
+ @Field({ nullable: true })
28284
+ description?: string;
28285
+
28286
+ @Field()
28287
+ type: string;
28288
+
28289
+ @Field()
28290
+ script: string;
28291
+
28292
+ @Field(() => Int, { nullable: true })
28293
+ checksum?: number;
28294
+
28295
+ @Field()
28296
+ installed_by: string;
28297
+
28298
+ @Field()
28299
+ installed_on: Date;
28300
+
28301
+ @Field(() => Int)
28302
+ execution_time: number;
28303
+
28304
+ @Field(() => Boolean)
28305
+ success: boolean;
28306
+ }
28307
+
28308
+
28309
+ //****************************************************************************
28310
+ // INPUT TYPE for flyway _schema _histories
28311
+ //****************************************************************************
28312
+ @InputType()
28313
+ export class Updateflyway_schema_historyInput {
28314
+ @Field(() => Int)
28315
+ installed_rank: number;
28316
+
28317
+ @Field({ nullable: true })
28318
+ version?: string;
28319
+
28320
+ @Field({ nullable: true })
28321
+ description?: string;
28322
+
28323
+ @Field()
28324
+ type: string;
28325
+
28326
+ @Field()
28327
+ script: string;
28328
+
28329
+ @Field(() => Int, { nullable: true })
28330
+ checksum?: number;
28331
+
28332
+ @Field()
28333
+ installed_by: string;
28334
+
28335
+ @Field()
28336
+ installed_on: Date;
28337
+
28338
+ @Field(() => Int)
28339
+ execution_time: number;
28340
+
28341
+ @Field(() => Boolean)
28342
+ success: boolean;
28343
+
28344
+ @Field(() => [KeyValuePairInput], { nullable: true })
28345
+ OldValues___?: KeyValuePairInput[];
28346
+ }
28347
+
28348
+ //****************************************************************************
28349
+ // RESOLVER for flyway _schema _histories
28350
+ //****************************************************************************
28351
+ @ObjectType()
28352
+ export class Runflyway_schema_historyViewResult {
28353
+ @Field(() => [flyway_schema_history_])
28354
+ Results: flyway_schema_history_[];
28355
+
28356
+ @Field(() => String, {nullable: true})
28357
+ UserViewRunID?: string;
28358
+
28359
+ @Field(() => Int, {nullable: true})
28360
+ RowCount: number;
28361
+
28362
+ @Field(() => Int, {nullable: true})
28363
+ TotalRowCount: number;
28364
+
28365
+ @Field(() => Int, {nullable: true})
28366
+ ExecutionTime: number;
28367
+
28368
+ @Field({nullable: true})
28369
+ ErrorMessage?: string;
28370
+
28371
+ @Field(() => Boolean, {nullable: false})
28372
+ Success: boolean;
28373
+ }
28374
+
28375
+ @Resolver(flyway_schema_history_)
28376
+ export class flyway_schema_historyResolver extends ResolverBase {
28377
+ @Query(() => Runflyway_schema_historyViewResult)
28378
+ async Runflyway_schema_historyViewByID(@Arg('input', () => RunViewByIDInput) input: RunViewByIDInput, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
28379
+ return super.RunViewByIDGeneric(input, dataSource, userPayload, pubSub);
28380
+ }
28381
+
28382
+ @Query(() => Runflyway_schema_historyViewResult)
28383
+ async Runflyway_schema_historyViewByName(@Arg('input', () => RunViewByNameInput) input: RunViewByNameInput, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
28384
+ return super.RunViewByNameGeneric(input, dataSource, userPayload, pubSub);
28385
+ }
28386
+
28387
+ @Query(() => Runflyway_schema_historyViewResult)
28388
+ async Runflyway_schema_historyDynamicView(@Arg('input', () => RunDynamicViewInput) input: RunDynamicViewInput, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
28389
+ input.EntityName = 'flyway _schema _histories';
28390
+ return super.RunDynamicViewGeneric(input, dataSource, userPayload, pubSub);
28391
+ }
28392
+ @Query(() => flyway_schema_history_, { nullable: true })
28393
+ async flyway_schema_history(@Arg('installed_rank', () => Int) installed_rank: number, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine): Promise<flyway_schema_history_ | null> {
28394
+ this.CheckUserReadPermissions('flyway _schema _histories', userPayload);
28395
+ const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwflyway_schema_histories] WHERE [installed_rank]=${installed_rank} ` + this.getRowLevelSecurityWhereClause('flyway _schema _histories', userPayload, EntityPermissionType.Read, 'AND');
28396
+ const result = this.MapFieldNamesToCodeNames('flyway _schema _histories', await dataSource.query(sSQL).then((r) => r && r.length > 0 ? r[0] : {}))
28397
+ return result;
28398
+ }
28399
+
28400
+ @Mutation(() => flyway_schema_history_)
28401
+ async Createflyway_schema_history(
28402
+ @Arg('input', () => Createflyway_schema_historyInput) input: Createflyway_schema_historyInput,
28403
+ @Ctx() { dataSource, userPayload }: AppContext,
28404
+ @PubSub() pubSub: PubSubEngine
28405
+ ) {
28406
+ return this.CreateRecord('flyway _schema _histories', input, dataSource, userPayload, pubSub)
28407
+ }
28408
+
28409
+ @Mutation(() => flyway_schema_history_)
28410
+ async Updateflyway_schema_history(
28411
+ @Arg('input', () => Updateflyway_schema_historyInput) input: Updateflyway_schema_historyInput,
28412
+ @Ctx() { dataSource, userPayload }: AppContext,
28413
+ @PubSub() pubSub: PubSubEngine
28414
+ ) {
28415
+ return this.UpdateRecord('flyway _schema _histories', input, dataSource, userPayload, pubSub);
28416
+ }
28417
+
28418
+ @Mutation(() => flyway_schema_history_)
28419
+ async Deleteflyway_schema_history(@Arg('installed_rank', () => Int) installed_rank: number, @Arg('options___', () => DeleteOptionsInput) options: DeleteOptionsInput, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
28420
+ const key = new CompositeKey([{FieldName: 'installed_rank', Value: installed_rank}]);
28421
+ return this.DeleteRecord('flyway _schema _histories', key, options, dataSource, userPayload, pubSub);
28422
+ }
28423
+
28424
+ }
28425
+
28137
28426
  //****************************************************************************
28138
28427
  // ENTITY CLASS for Content Process Runs
28139
28428
  //****************************************************************************
@@ -30019,29 +30308,29 @@ export class ContentItemTagResolver extends ResolverBase {
30019
30308
  //****************************************************************************
30020
30309
  // ENTITY CLASS for AI Agent Learning Cycles
30021
30310
  //****************************************************************************
30022
- @ObjectType({ description: 'Tracks the learning cycles for AI Agents where the Agent does offline reasoning, reflection, learning, and updates metadata.' })
30311
+ @ObjectType({ description: `Tracks the learning cycles for AI Agents where the Agent does offline reasoning, reflection, learning, and updates metadata.` })
30023
30312
  export class AIAgentLearningCycle_ {
30024
- @Field({description: 'Unique identifier for the learning cycle.'})
30313
+ @Field({description: `Unique identifier for the learning cycle.`})
30025
30314
  @MaxLength(16)
30026
30315
  ID: string;
30027
30316
 
30028
- @Field({description: 'Identifier for the AI Agent associated with this learning cycle.'})
30317
+ @Field({description: `Identifier for the AI Agent associated with this learning cycle.`})
30029
30318
  @MaxLength(16)
30030
30319
  AgentID: string;
30031
30320
 
30032
- @Field({description: 'Timestamp indicating when the learning cycle started.'})
30321
+ @Field({description: `Timestamp indicating when the learning cycle started.`})
30033
30322
  @MaxLength(10)
30034
30323
  StartedAt: Date;
30035
30324
 
30036
- @Field({nullable: true, description: 'Timestamp indicating when the learning cycle ended.'})
30325
+ @Field({nullable: true, description: `Timestamp indicating when the learning cycle ended.`})
30037
30326
  @MaxLength(10)
30038
30327
  EndedAt?: Date;
30039
30328
 
30040
- @Field({description: 'Status of the learning cycle (In-Progress, Complete, or Failed).'})
30329
+ @Field({description: `Status of the learning cycle (In-Progress, Complete, or Failed).`})
30041
30330
  @MaxLength(40)
30042
30331
  Status: string;
30043
30332
 
30044
- @Field({nullable: true, description: 'Text summary provided by the agent about what it learned and any changes it requested for stored metadata.'})
30333
+ @Field({nullable: true, description: `Text summary provided by the agent about what it learned and any changes it requested for stored metadata.`})
30045
30334
  AgentSummary?: string;
30046
30335
 
30047
30336
  @Field()