@memberjunction/server 1.7.1 → 1.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,7 @@
2
2
  * ALL ENTITIES - TypeGraphQL Type Class Definition - AUTO GENERATED FILE
3
3
  * Generated Entities and Resolvers for Server
4
4
  *
5
- * GENERATED: 6/12/2024, 12:19:28 AM
5
+ * GENERATED: 6/20/2024, 3:35:35 PM
6
6
  *
7
7
  * >>> DO NOT MODIFY THIS FILE!!!!!!!!!!!!
8
8
  * >>> YOUR CHANGES WILL BE OVERWRITTEN
@@ -20,7 +20,7 @@ import { mj_core_schema } from '../config';
20
20
 
21
21
  import * as mj_core_schema_server_object_types from '@memberjunction/server'
22
22
 
23
- import { 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, EntityBehaviorEntity, EntityBehaviorTypeEntity, 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 } from '@memberjunction/core-entities';
23
+ import { 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, EntityBehaviorEntity, EntityBehaviorTypeEntity, 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 } from '@memberjunction/core-entities';
24
24
 
25
25
 
26
26
  //****************************************************************************
@@ -47,17 +47,17 @@ export class Company_ {
47
47
  @MaxLength(1000)
48
48
  LogoURL?: string;
49
49
 
50
- @Field()
51
- @MaxLength(8)
52
- CreatedAt: Date;
53
-
54
- @Field()
55
- @MaxLength(8)
56
- UpdatedAt: Date;
57
-
58
50
  @Field({nullable: true})
59
51
  @MaxLength(510)
60
52
  Domain?: string;
53
+
54
+ @Field()
55
+ @MaxLength(10)
56
+ _mj__CreatedAt: Date;
57
+
58
+ @Field()
59
+ @MaxLength(10)
60
+ _mj__UpdatedAt: Date;
61
61
 
62
62
  @Field(() => [mj_core_schema_server_object_types.Employee_])
63
63
  EmployeesArray: mj_core_schema_server_object_types.Employee_[]; // Link to Employees
@@ -271,12 +271,12 @@ export class Employee_ {
271
271
  SupervisorID?: number;
272
272
 
273
273
  @Field()
274
- @MaxLength(8)
275
- CreatedAt: Date;
274
+ @MaxLength(10)
275
+ _mj__CreatedAt: Date;
276
276
 
277
277
  @Field()
278
- @MaxLength(8)
279
- UpdatedAt: Date;
278
+ @MaxLength(10)
279
+ _mj__UpdatedAt: Date;
280
280
 
281
281
  @Field({nullable: true})
282
282
  @MaxLength(162)
@@ -527,12 +527,12 @@ export class UserFavorite_ {
527
527
  RecordID: string;
528
528
 
529
529
  @Field()
530
- @MaxLength(8)
531
- CreatedAt: Date;
530
+ @MaxLength(10)
531
+ _mj__CreatedAt: Date;
532
532
 
533
533
  @Field()
534
- @MaxLength(8)
535
- UpdatedAt: Date;
534
+ @MaxLength(10)
535
+ _mj__UpdatedAt: Date;
536
536
 
537
537
  @Field()
538
538
  @MaxLength(510)
@@ -685,12 +685,12 @@ export class EmployeeCompanyIntegration_ {
685
685
  IsActive: boolean;
686
686
 
687
687
  @Field()
688
- @MaxLength(8)
689
- CreatedAt: Date;
688
+ @MaxLength(10)
689
+ _mj__CreatedAt: Date;
690
690
 
691
691
  @Field()
692
- @MaxLength(8)
693
- UpdatedAt: Date;
692
+ @MaxLength(10)
693
+ _mj__UpdatedAt: Date;
694
694
 
695
695
  }
696
696
 
@@ -796,12 +796,12 @@ export class EmployeeRole_ {
796
796
  RoleID: number;
797
797
 
798
798
  @Field()
799
- @MaxLength(8)
800
- CreatedAt: Date;
799
+ @MaxLength(10)
800
+ _mj__CreatedAt: Date;
801
801
 
802
802
  @Field()
803
- @MaxLength(8)
804
- UpdatedAt: Date;
803
+ @MaxLength(10)
804
+ _mj__UpdatedAt: Date;
805
805
 
806
806
  @Field()
807
807
  @MaxLength(100)
@@ -905,12 +905,12 @@ export class EmployeeSkill_ {
905
905
  SkillID: number;
906
906
 
907
907
  @Field()
908
- @MaxLength(8)
909
- CreatedAt: Date;
908
+ @MaxLength(10)
909
+ _mj__CreatedAt: Date;
910
910
 
911
911
  @Field()
912
- @MaxLength(8)
913
- UpdatedAt: Date;
912
+ @MaxLength(10)
913
+ _mj__UpdatedAt: Date;
914
914
 
915
915
  @Field()
916
916
  @MaxLength(100)
@@ -1023,12 +1023,12 @@ export class Role_ {
1023
1023
  SQLName?: string;
1024
1024
 
1025
1025
  @Field()
1026
- @MaxLength(8)
1027
- CreatedAt: Date;
1026
+ @MaxLength(10)
1027
+ _mj__CreatedAt: Date;
1028
1028
 
1029
1029
  @Field()
1030
- @MaxLength(8)
1031
- UpdatedAt: Date;
1030
+ @MaxLength(10)
1031
+ _mj__UpdatedAt: Date;
1032
1032
 
1033
1033
  @Field(() => [mj_core_schema_server_object_types.EmployeeRole_])
1034
1034
  EmployeeRolesArray: mj_core_schema_server_object_types.EmployeeRole_[]; // Link to EmployeeRoles
@@ -1232,12 +1232,12 @@ export class Skill_ {
1232
1232
  ParentID?: number;
1233
1233
 
1234
1234
  @Field()
1235
- @MaxLength(8)
1236
- CreatedAt: Date;
1235
+ @MaxLength(10)
1236
+ _mj__CreatedAt: Date;
1237
1237
 
1238
1238
  @Field()
1239
- @MaxLength(8)
1240
- UpdatedAt: Date;
1239
+ @MaxLength(10)
1240
+ _mj__UpdatedAt: Date;
1241
1241
 
1242
1242
  @Field({nullable: true})
1243
1243
  @MaxLength(100)
@@ -1347,6 +1347,14 @@ export class IntegrationURLFormat_ {
1347
1347
  @MaxLength(1000)
1348
1348
  URLFormat: string;
1349
1349
 
1350
+ @Field()
1351
+ @MaxLength(10)
1352
+ _mj__CreatedAt: Date;
1353
+
1354
+ @Field()
1355
+ @MaxLength(10)
1356
+ _mj__UpdatedAt: Date;
1357
+
1350
1358
  @Field(() => Int)
1351
1359
  IntegrationID: number;
1352
1360
 
@@ -1491,12 +1499,12 @@ export class Integration_ {
1491
1499
  BatchRequestWaitTime: number;
1492
1500
 
1493
1501
  @Field()
1494
- @MaxLength(8)
1495
- CreatedAt: Date;
1502
+ @MaxLength(10)
1503
+ _mj__CreatedAt: Date;
1496
1504
 
1497
1505
  @Field()
1498
- @MaxLength(8)
1499
- UpdatedAt: Date;
1506
+ @MaxLength(10)
1507
+ _mj__UpdatedAt: Date;
1500
1508
 
1501
1509
  @Field(() => [mj_core_schema_server_object_types.IntegrationURLFormat_])
1502
1510
  IntegrationURLFormatsArray: mj_core_schema_server_object_types.IntegrationURLFormat_[]; // Link to IntegrationURLFormats
@@ -1672,14 +1680,6 @@ export class CompanyIntegration_ {
1672
1680
  @MaxLength(510)
1673
1681
  APIKey?: string;
1674
1682
 
1675
- @Field()
1676
- @MaxLength(8)
1677
- CreatedAt: Date;
1678
-
1679
- @Field()
1680
- @MaxLength(8)
1681
- UpdatedAt: Date;
1682
-
1683
1683
  @Field({nullable: true})
1684
1684
  @MaxLength(200)
1685
1685
  ExternalSystemID?: string;
@@ -1699,6 +1699,14 @@ export class CompanyIntegration_ {
1699
1699
  @MaxLength(510)
1700
1700
  CustomAttribute1?: string;
1701
1701
 
1702
+ @Field()
1703
+ @MaxLength(10)
1704
+ _mj__CreatedAt: Date;
1705
+
1706
+ @Field()
1707
+ @MaxLength(10)
1708
+ _mj__UpdatedAt: Date;
1709
+
1702
1710
  @Field(() => Int)
1703
1711
  CompanyID: number;
1704
1712
 
@@ -2014,13 +2022,17 @@ export class EntityField_ {
2014
2022
  @MaxLength(510)
2015
2023
  RelatedEntityNameFieldMap?: string;
2016
2024
 
2025
+ @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'})
2026
+ @MaxLength(40)
2027
+ RelatedEntityDisplayType: string;
2028
+
2017
2029
  @Field()
2018
- @MaxLength(8)
2019
- CreatedAt: Date;
2030
+ @MaxLength(10)
2031
+ _mj__CreatedAt: Date;
2020
2032
 
2021
2033
  @Field()
2022
- @MaxLength(8)
2023
- UpdatedAt: Date;
2034
+ @MaxLength(10)
2035
+ _mj__UpdatedAt: Date;
2024
2036
 
2025
2037
  @Field()
2026
2038
  @MaxLength(510)
@@ -2147,6 +2159,9 @@ export class CreateEntityFieldInput {
2147
2159
 
2148
2160
  @Field({ nullable: true })
2149
2161
  RelatedEntityNameFieldMap?: string;
2162
+
2163
+ @Field()
2164
+ RelatedEntityDisplayType: string;
2150
2165
  }
2151
2166
 
2152
2167
 
@@ -2230,6 +2245,9 @@ export class UpdateEntityFieldInput {
2230
2245
  @Field({ nullable: true })
2231
2246
  RelatedEntityNameFieldMap?: string;
2232
2247
 
2248
+ @Field()
2249
+ RelatedEntityDisplayType: string;
2250
+
2233
2251
  @Field(() => [KeyValuePairInput], { nullable: true })
2234
2252
  OldValues___?: KeyValuePairInput[];
2235
2253
  }
@@ -2371,7 +2389,7 @@ export class Entity_ {
2371
2389
  @Field(() => Boolean)
2372
2390
  VirtualEntity: boolean;
2373
2391
 
2374
- @Field(() => Boolean, {description: 'When set to 1, changes made via the MemberJunction architecture will result in tracking records being created in the RecordChange table'})
2392
+ @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.'})
2375
2393
  TrackRecordChanges: boolean;
2376
2394
 
2377
2395
  @Field(() => Boolean, {description: 'When set to 1, accessing a record by an end-user will result in an Audit Log record being created'})
@@ -2467,14 +2485,6 @@ export class Entity_ {
2467
2485
  @MaxLength(510)
2468
2486
  EntityObjectSubclassImport?: string;
2469
2487
 
2470
- @Field()
2471
- @MaxLength(8)
2472
- CreatedAt: Date;
2473
-
2474
- @Field()
2475
- @MaxLength(8)
2476
- UpdatedAt: Date;
2477
-
2478
2488
  @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.'})
2479
2489
  @MaxLength(510)
2480
2490
  PreferredCommunicationField?: string;
@@ -2483,6 +2493,18 @@ export class Entity_ {
2483
2493
  @MaxLength(1000)
2484
2494
  Icon?: string;
2485
2495
 
2496
+ @Field()
2497
+ @MaxLength(10)
2498
+ _mj__CreatedAt: Date;
2499
+
2500
+ @Field()
2501
+ @MaxLength(10)
2502
+ _mj__UpdatedAt: Date;
2503
+
2504
+ @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.'})
2505
+ @MaxLength(40)
2506
+ RelationshipDefaultDisplayType: string;
2507
+
2486
2508
  @Field({nullable: true})
2487
2509
  CodeName?: string;
2488
2510
 
@@ -2738,6 +2760,9 @@ export class CreateEntityInput {
2738
2760
 
2739
2761
  @Field({ nullable: true })
2740
2762
  Icon?: string;
2763
+
2764
+ @Field()
2765
+ RelationshipDefaultDisplayType: string;
2741
2766
  }
2742
2767
 
2743
2768
 
@@ -2866,6 +2891,9 @@ export class UpdateEntityInput {
2866
2891
  @Field({ nullable: true })
2867
2892
  Icon?: string;
2868
2893
 
2894
+ @Field()
2895
+ RelationshipDefaultDisplayType: string;
2896
+
2869
2897
  @Field(() => [KeyValuePairInput], { nullable: true })
2870
2898
  OldValues___?: KeyValuePairInput[];
2871
2899
  }
@@ -3293,12 +3321,12 @@ export class User_ {
3293
3321
  LinkedEntityRecordID?: number;
3294
3322
 
3295
3323
  @Field()
3296
- @MaxLength(8)
3297
- CreatedAt: Date;
3324
+ @MaxLength(10)
3325
+ _mj__CreatedAt: Date;
3298
3326
 
3299
3327
  @Field()
3300
- @MaxLength(8)
3301
- UpdatedAt: Date;
3328
+ @MaxLength(10)
3329
+ _mj__UpdatedAt: Date;
3302
3330
 
3303
3331
  @Field({nullable: true})
3304
3332
  @MaxLength(202)
@@ -3411,6 +3439,9 @@ export class User_ {
3411
3439
  @Field(() => [mj_core_schema_server_object_types.RecommendationRun_])
3412
3440
  RecommendationRunsArray: mj_core_schema_server_object_types.RecommendationRun_[]; // Link to RecommendationRuns
3413
3441
 
3442
+ @Field(() => [mj_core_schema_server_object_types.RecordChangeReplayRun_])
3443
+ RecordChangeReplayRunsArray: mj_core_schema_server_object_types.RecordChangeReplayRun_[]; // Link to RecordChangeReplayRuns
3444
+
3414
3445
  }
3415
3446
 
3416
3447
  //****************************************************************************
@@ -3789,6 +3820,14 @@ export class UserResolverBase extends ResolverBase {
3789
3820
  const result = this.ArrayMapFieldNamesToCodeNames('Recommendation Runs', await dataSource.query(sSQL));
3790
3821
  return result;
3791
3822
  }
3823
+
3824
+ @FieldResolver(() => [mj_core_schema_server_object_types.RecordChangeReplayRun_])
3825
+ async RecordChangeReplayRunsArray(@Root() user_: User_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
3826
+ this.CheckUserReadPermissions('Record Change Replay Runs', userPayload);
3827
+ const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwRecordChangeReplayRuns] WHERE [UserID]=${user_.ID} ` + this.getRowLevelSecurityWhereClause('Record Change Replay Runs', userPayload, EntityPermissionType.Read, 'AND');
3828
+ const result = this.ArrayMapFieldNamesToCodeNames('Record Change Replay Runs', await dataSource.query(sSQL));
3829
+ return result;
3830
+ }
3792
3831
 
3793
3832
  @Mutation(() => User_)
3794
3833
  async CreateUser(
@@ -3863,24 +3902,42 @@ export class EntityRelationship_ {
3863
3902
  @MaxLength(510)
3864
3903
  JoinEntityInverseJoinField?: string;
3865
3904
 
3866
- @Field(() => Boolean)
3905
+ @Field(() => Boolean, {description: 'When unchecked the relationship will NOT be displayed on the generated form'})
3867
3906
  DisplayInForm: boolean;
3868
3907
 
3869
- @Field({nullable: true})
3908
+ @Field()
3909
+ @MaxLength(100)
3910
+ DisplayLocation: string;
3911
+
3912
+ @Field({nullable: true, description: 'Optional, when specified this value overrides the related entity name for the label on the tab'})
3870
3913
  @MaxLength(510)
3871
3914
  DisplayName?: string;
3872
3915
 
3916
+ @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'})
3917
+ @MaxLength(100)
3918
+ DisplayIconType: string;
3919
+
3920
+ @Field({nullable: true, description: 'If specified, the icon '})
3921
+ @MaxLength(510)
3922
+ DisplayIcon?: string;
3923
+
3873
3924
  @Field({nullable: true})
3874
3925
  @MaxLength(16)
3875
3926
  DisplayUserViewGUID?: string;
3876
3927
 
3928
+ @Field(() => Int, {nullable: true, description: 'If specified, this component will be used for displaying the relationship within the parent entity\'s form'})
3929
+ DisplayComponentID?: number;
3930
+
3931
+ @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.'})
3932
+ DisplayComponentConfiguration?: string;
3933
+
3877
3934
  @Field()
3878
- @MaxLength(8)
3879
- CreatedAt: Date;
3935
+ @MaxLength(10)
3936
+ _mj__CreatedAt: Date;
3880
3937
 
3881
3938
  @Field()
3882
- @MaxLength(8)
3883
- UpdatedAt: Date;
3939
+ @MaxLength(10)
3940
+ _mj__UpdatedAt: Date;
3884
3941
 
3885
3942
  @Field()
3886
3943
  @MaxLength(510)
@@ -3965,8 +4022,23 @@ export class CreateEntityRelationshipInput {
3965
4022
  @Field(() => Boolean)
3966
4023
  DisplayInForm: boolean;
3967
4024
 
4025
+ @Field()
4026
+ DisplayLocation: string;
4027
+
3968
4028
  @Field({ nullable: true })
3969
4029
  DisplayName?: string;
4030
+
4031
+ @Field()
4032
+ DisplayIconType: string;
4033
+
4034
+ @Field({ nullable: true })
4035
+ DisplayIcon?: string;
4036
+
4037
+ @Field(() => Int, { nullable: true })
4038
+ DisplayComponentID?: number;
4039
+
4040
+ @Field({ nullable: true })
4041
+ DisplayComponentConfiguration?: string;
3970
4042
  }
3971
4043
 
3972
4044
 
@@ -4014,9 +4086,24 @@ export class UpdateEntityRelationshipInput {
4014
4086
  @Field(() => Boolean)
4015
4087
  DisplayInForm: boolean;
4016
4088
 
4089
+ @Field()
4090
+ DisplayLocation: string;
4091
+
4017
4092
  @Field({ nullable: true })
4018
4093
  DisplayName?: string;
4019
4094
 
4095
+ @Field()
4096
+ DisplayIconType: string;
4097
+
4098
+ @Field({ nullable: true })
4099
+ DisplayIcon?: string;
4100
+
4101
+ @Field(() => Int, { nullable: true })
4102
+ DisplayComponentID?: number;
4103
+
4104
+ @Field({ nullable: true })
4105
+ DisplayComponentConfiguration?: string;
4106
+
4020
4107
  @Field(() => [KeyValuePairInput], { nullable: true })
4021
4108
  OldValues___?: KeyValuePairInput[];
4022
4109
  }
@@ -4136,6 +4223,14 @@ export class UserRecordLog_ {
4136
4223
  @Field(() => Int)
4137
4224
  TotalCount: number;
4138
4225
 
4226
+ @Field()
4227
+ @MaxLength(10)
4228
+ _mj__CreatedAt: Date;
4229
+
4230
+ @Field()
4231
+ @MaxLength(10)
4232
+ _mj__UpdatedAt: Date;
4233
+
4139
4234
  @Field()
4140
4235
  @MaxLength(510)
4141
4236
  Entity: string;
@@ -4319,13 +4414,13 @@ export class UserView_ {
4319
4414
  @Field({nullable: true})
4320
4415
  SortState?: string;
4321
4416
 
4322
- @Field({nullable: true})
4323
- @MaxLength(8)
4324
- CreatedAt?: Date;
4417
+ @Field()
4418
+ @MaxLength(10)
4419
+ _mj__CreatedAt: Date;
4325
4420
 
4326
- @Field({nullable: true})
4327
- @MaxLength(8)
4328
- UpdatedAt?: Date;
4421
+ @Field()
4422
+ @MaxLength(10)
4423
+ _mj__UpdatedAt: Date;
4329
4424
 
4330
4425
  @Field()
4331
4426
  @MaxLength(200)
@@ -4621,6 +4716,14 @@ export class CompanyIntegrationRun_ {
4621
4716
  @Field({nullable: true})
4622
4717
  Comments?: string;
4623
4718
 
4719
+ @Field()
4720
+ @MaxLength(10)
4721
+ _mj__CreatedAt: Date;
4722
+
4723
+ @Field()
4724
+ @MaxLength(10)
4725
+ _mj__UpdatedAt: Date;
4726
+
4624
4727
  @Field()
4625
4728
  @MaxLength(200)
4626
4729
  RunByUser: string;
@@ -4782,6 +4885,14 @@ export class CompanyIntegrationRunDetail_ {
4782
4885
  @Field(() => Boolean)
4783
4886
  IsSuccess: boolean;
4784
4887
 
4888
+ @Field()
4889
+ @MaxLength(10)
4890
+ _mj__CreatedAt: Date;
4891
+
4892
+ @Field()
4893
+ @MaxLength(10)
4894
+ _mj__UpdatedAt: Date;
4895
+
4785
4896
  @Field()
4786
4897
  @MaxLength(510)
4787
4898
  Entity: string;
@@ -4921,10 +5032,6 @@ export class ErrorLog_ {
4921
5032
  @Field({nullable: true})
4922
5033
  Message?: string;
4923
5034
 
4924
- @Field()
4925
- @MaxLength(8)
4926
- CreatedAt: Date;
4927
-
4928
5035
  @Field({nullable: true})
4929
5036
  @MaxLength(100)
4930
5037
  CreatedBy?: string;
@@ -4939,6 +5046,14 @@ export class ErrorLog_ {
4939
5046
 
4940
5047
  @Field({nullable: true})
4941
5048
  Details?: string;
5049
+
5050
+ @Field()
5051
+ @MaxLength(10)
5052
+ _mj__CreatedAt: Date;
5053
+
5054
+ @Field()
5055
+ @MaxLength(10)
5056
+ _mj__UpdatedAt: Date;
4942
5057
 
4943
5058
  }
4944
5059
 
@@ -5064,12 +5179,12 @@ export class Application_ {
5064
5179
  DefaultForNewUser: boolean;
5065
5180
 
5066
5181
  @Field()
5067
- @MaxLength(8)
5068
- CreatedAt: Date;
5182
+ @MaxLength(10)
5183
+ _mj__CreatedAt: Date;
5069
5184
 
5070
5185
  @Field()
5071
- @MaxLength(8)
5072
- UpdatedAt: Date;
5186
+ @MaxLength(10)
5187
+ _mj__UpdatedAt: Date;
5073
5188
 
5074
5189
  @Field(() => [mj_core_schema_server_object_types.ApplicationEntity_])
5075
5190
  ApplicationEntitiesArray: mj_core_schema_server_object_types.ApplicationEntity_[]; // Link to ApplicationEntities
@@ -5257,12 +5372,12 @@ export class ApplicationEntity_ {
5257
5372
  DefaultForNewUser: boolean;
5258
5373
 
5259
5374
  @Field()
5260
- @MaxLength(8)
5261
- CreatedAt: Date;
5375
+ @MaxLength(10)
5376
+ _mj__CreatedAt: Date;
5262
5377
 
5263
5378
  @Field()
5264
- @MaxLength(8)
5265
- UpdatedAt: Date;
5379
+ @MaxLength(10)
5380
+ _mj__UpdatedAt: Date;
5266
5381
 
5267
5382
  @Field()
5268
5383
  @MaxLength(100)
@@ -5448,12 +5563,12 @@ export class EntityPermission_ {
5448
5563
  DeleteRLSFilterID?: number;
5449
5564
 
5450
5565
  @Field()
5451
- @MaxLength(8)
5452
- CreatedAt: Date;
5566
+ @MaxLength(10)
5567
+ _mj__CreatedAt: Date;
5453
5568
 
5454
5569
  @Field()
5455
- @MaxLength(8)
5456
- UpdatedAt: Date;
5570
+ @MaxLength(10)
5571
+ _mj__UpdatedAt: Date;
5457
5572
 
5458
5573
  @Field()
5459
5574
  @MaxLength(510)
@@ -5663,6 +5778,14 @@ export class UserApplicationEntity_ {
5663
5778
  @Field(() => Int)
5664
5779
  Sequence: number;
5665
5780
 
5781
+ @Field()
5782
+ @MaxLength(10)
5783
+ _mj__CreatedAt: Date;
5784
+
5785
+ @Field()
5786
+ @MaxLength(10)
5787
+ _mj__UpdatedAt: Date;
5788
+
5666
5789
  @Field()
5667
5790
  @MaxLength(100)
5668
5791
  Application: string;
@@ -5812,6 +5935,14 @@ export class UserApplication_ {
5812
5935
  @Field(() => Boolean)
5813
5936
  IsActive: boolean;
5814
5937
 
5938
+ @Field()
5939
+ @MaxLength(10)
5940
+ _mj__CreatedAt: Date;
5941
+
5942
+ @Field()
5943
+ @MaxLength(10)
5944
+ _mj__UpdatedAt: Date;
5945
+
5815
5946
  @Field()
5816
5947
  @MaxLength(200)
5817
5948
  User: string;
@@ -5981,6 +6112,14 @@ export class CompanyIntegrationRunAPILog_ {
5981
6112
 
5982
6113
  @Field({nullable: true})
5983
6114
  Parameters?: string;
6115
+
6116
+ @Field()
6117
+ @MaxLength(10)
6118
+ _mj__CreatedAt: Date;
6119
+
6120
+ @Field()
6121
+ @MaxLength(10)
6122
+ _mj__UpdatedAt: Date;
5984
6123
 
5985
6124
  }
5986
6125
 
@@ -6105,16 +6244,16 @@ export class List_ {
6105
6244
  @Field(() => Int, {nullable: true})
6106
6245
  CompanyIntegrationID?: number;
6107
6246
 
6108
- @Field()
6109
- @MaxLength(8)
6110
- CreatedAt: Date;
6247
+ @Field(() => Int, {nullable: true})
6248
+ CategoryID?: number;
6111
6249
 
6112
6250
  @Field()
6113
- @MaxLength(8)
6114
- UpdatedAt: Date;
6251
+ @MaxLength(10)
6252
+ _mj__CreatedAt: Date;
6115
6253
 
6116
- @Field(() => Int, {nullable: true})
6117
- CategoryID?: number;
6254
+ @Field()
6255
+ @MaxLength(10)
6256
+ _mj__UpdatedAt: Date;
6118
6257
 
6119
6258
  @Field()
6120
6259
  @MaxLength(510)
@@ -6305,6 +6444,14 @@ export class ListDetail_ {
6305
6444
  @Field(() => Int)
6306
6445
  Sequence: number;
6307
6446
 
6447
+ @Field()
6448
+ @MaxLength(10)
6449
+ _mj__CreatedAt: Date;
6450
+
6451
+ @Field()
6452
+ @MaxLength(10)
6453
+ _mj__UpdatedAt: Date;
6454
+
6308
6455
  @Field()
6309
6456
  @MaxLength(200)
6310
6457
  List: string;
@@ -6444,6 +6591,14 @@ export class UserViewRun_ {
6444
6591
  @Field(() => Int)
6445
6592
  RunByUserID: number;
6446
6593
 
6594
+ @Field()
6595
+ @MaxLength(10)
6596
+ _mj__CreatedAt: Date;
6597
+
6598
+ @Field()
6599
+ @MaxLength(10)
6600
+ _mj__UpdatedAt: Date;
6601
+
6447
6602
  @Field()
6448
6603
  @MaxLength(200)
6449
6604
  UserView: string;
@@ -6589,6 +6744,14 @@ export class UserViewRunDetail_ {
6589
6744
  @MaxLength(510)
6590
6745
  RecordID: string;
6591
6746
 
6747
+ @Field()
6748
+ @MaxLength(10)
6749
+ _mj__CreatedAt: Date;
6750
+
6751
+ @Field()
6752
+ @MaxLength(10)
6753
+ _mj__UpdatedAt: Date;
6754
+
6592
6755
  @Field(() => Int)
6593
6756
  UserViewID: number;
6594
6757
 
@@ -6731,6 +6894,14 @@ export class WorkflowRun_ {
6731
6894
  @Field({nullable: true})
6732
6895
  Results?: string;
6733
6896
 
6897
+ @Field()
6898
+ @MaxLength(10)
6899
+ _mj__CreatedAt: Date;
6900
+
6901
+ @Field()
6902
+ @MaxLength(10)
6903
+ _mj__UpdatedAt: Date;
6904
+
6734
6905
  @Field()
6735
6906
  @MaxLength(200)
6736
6907
  Workflow: string;
@@ -6861,14 +7032,6 @@ export class Workflow_ {
6861
7032
  @MaxLength(200)
6862
7033
  ExternalSystemRecordID: string;
6863
7034
 
6864
- @Field()
6865
- @MaxLength(8)
6866
- CreatedAt: Date;
6867
-
6868
- @Field()
6869
- @MaxLength(8)
6870
- UpdatedAt: Date;
6871
-
6872
7035
  @Field(() => Boolean, {description: 'If set to 1, the workflow will be run automatically on the interval specified by the AutoRunIntervalType and AutoRunInterval fields'})
6873
7036
  AutoRunEnabled: boolean;
6874
7037
 
@@ -6883,6 +7046,14 @@ export class Workflow_ {
6883
7046
  @MaxLength(400)
6884
7047
  SubclassName?: string;
6885
7048
 
7049
+ @Field()
7050
+ @MaxLength(10)
7051
+ _mj__CreatedAt: Date;
7052
+
7053
+ @Field()
7054
+ @MaxLength(10)
7055
+ _mj__UpdatedAt: Date;
7056
+
6886
7057
  @Field(() => Int, {nullable: true})
6887
7058
  AutoRunIntervalMinutes?: number;
6888
7059
 
@@ -7036,12 +7207,12 @@ export class WorkflowEngine_ {
7036
7207
  DriverClass: string;
7037
7208
 
7038
7209
  @Field()
7039
- @MaxLength(8)
7040
- CreatedAt: Date;
7210
+ @MaxLength(10)
7211
+ _mj__CreatedAt: Date;
7041
7212
 
7042
7213
  @Field()
7043
- @MaxLength(8)
7044
- UpdatedAt: Date;
7214
+ @MaxLength(10)
7215
+ _mj__UpdatedAt: Date;
7045
7216
 
7046
7217
  @Field(() => [mj_core_schema_server_object_types.Workflow_])
7047
7218
  WorkflowsArray: mj_core_schema_server_object_types.Workflow_[]; // Link to Workflows
@@ -7165,15 +7336,15 @@ export class RecordChange_ {
7165
7336
  @MaxLength(40)
7166
7337
  Type: string;
7167
7338
 
7168
- @Field({nullable: true, description: 'Internal or External'})
7339
+ @Field({description: 'Internal or External'})
7169
7340
  @MaxLength(40)
7170
- Source?: string;
7341
+ Source: string;
7171
7342
 
7172
7343
  @Field(() => Int, {nullable: true, description: 'If Source=External, this field can optionally specify which integration created the change, if known'})
7173
7344
  IntegrationID?: number;
7174
7345
 
7175
7346
  @Field({description: 'The date/time that the change occured.'})
7176
- @MaxLength(8)
7347
+ @MaxLength(10)
7177
7348
  ChangedAt: Date;
7178
7349
 
7179
7350
  @Field({description: 'JSON structure that describes what was changed in a structured format.'})
@@ -7189,6 +7360,9 @@ export class RecordChange_ {
7189
7360
  @MaxLength(100)
7190
7361
  Status: string;
7191
7362
 
7363
+ @Field(() => Int, {nullable: true, description: 'For external changes only, this run ID is the link to the replay run that the change record was part of'})
7364
+ ReplayRunID?: number;
7365
+
7192
7366
  @Field({nullable: true})
7193
7367
  ErrorLog?: string;
7194
7368
 
@@ -7196,11 +7370,11 @@ export class RecordChange_ {
7196
7370
  Comments?: string;
7197
7371
 
7198
7372
  @Field()
7199
- @MaxLength(8)
7373
+ @MaxLength(10)
7200
7374
  CreatedAt: Date;
7201
7375
 
7202
7376
  @Field()
7203
- @MaxLength(8)
7377
+ @MaxLength(10)
7204
7378
  UpdatedAt: Date;
7205
7379
 
7206
7380
  @Field()
@@ -7234,8 +7408,8 @@ export class CreateRecordChangeInput {
7234
7408
  @Field()
7235
7409
  Type: string;
7236
7410
 
7237
- @Field({ nullable: true })
7238
- Source?: string;
7411
+ @Field()
7412
+ Source: string;
7239
7413
 
7240
7414
  @Field(() => Int, { nullable: true })
7241
7415
  IntegrationID?: number;
@@ -7255,6 +7429,9 @@ export class CreateRecordChangeInput {
7255
7429
  @Field()
7256
7430
  Status: string;
7257
7431
 
7432
+ @Field(() => Int, { nullable: true })
7433
+ ReplayRunID?: number;
7434
+
7258
7435
  @Field({ nullable: true })
7259
7436
  ErrorLog?: string;
7260
7437
 
@@ -7262,25 +7439,80 @@ export class CreateRecordChangeInput {
7262
7439
  Comments?: string;
7263
7440
  }
7264
7441
 
7442
+
7265
7443
  //****************************************************************************
7266
- // RESOLVER for Record Changes
7444
+ // INPUT TYPE for Record Changes
7267
7445
  //****************************************************************************
7268
- @ObjectType()
7269
- export class RunRecordChangeViewResult {
7270
- @Field(() => [RecordChange_])
7271
- Results: RecordChange_[];
7272
-
7273
- @Field(() => Int, {nullable: true})
7274
- UserViewRunID?: number;
7446
+ @InputType()
7447
+ export class UpdateRecordChangeInput {
7448
+ @Field(() => Int)
7449
+ ID: number;
7275
7450
 
7276
- @Field(() => Int, {nullable: true})
7277
- RowCount: number;
7451
+ @Field(() => Int)
7452
+ EntityID: number;
7278
7453
 
7279
- @Field(() => Int, {nullable: true})
7280
- TotalRowCount: number;
7454
+ @Field()
7455
+ RecordID: string;
7281
7456
 
7282
- @Field(() => Int, {nullable: true})
7283
- ExecutionTime: number;
7457
+ @Field(() => Int)
7458
+ UserID: number;
7459
+
7460
+ @Field()
7461
+ Type: string;
7462
+
7463
+ @Field()
7464
+ Source: string;
7465
+
7466
+ @Field(() => Int, { nullable: true })
7467
+ IntegrationID?: number;
7468
+
7469
+ @Field()
7470
+ ChangedAt: Date;
7471
+
7472
+ @Field()
7473
+ ChangesJSON: string;
7474
+
7475
+ @Field()
7476
+ ChangesDescription: string;
7477
+
7478
+ @Field()
7479
+ FullRecordJSON: string;
7480
+
7481
+ @Field()
7482
+ Status: string;
7483
+
7484
+ @Field(() => Int, { nullable: true })
7485
+ ReplayRunID?: number;
7486
+
7487
+ @Field({ nullable: true })
7488
+ ErrorLog?: string;
7489
+
7490
+ @Field({ nullable: true })
7491
+ Comments?: string;
7492
+
7493
+ @Field(() => [KeyValuePairInput], { nullable: true })
7494
+ OldValues___?: KeyValuePairInput[];
7495
+ }
7496
+
7497
+ //****************************************************************************
7498
+ // RESOLVER for Record Changes
7499
+ //****************************************************************************
7500
+ @ObjectType()
7501
+ export class RunRecordChangeViewResult {
7502
+ @Field(() => [RecordChange_])
7503
+ Results: RecordChange_[];
7504
+
7505
+ @Field(() => Int, {nullable: true})
7506
+ UserViewRunID?: number;
7507
+
7508
+ @Field(() => Int, {nullable: true})
7509
+ RowCount: number;
7510
+
7511
+ @Field(() => Int, {nullable: true})
7512
+ TotalRowCount: number;
7513
+
7514
+ @Field(() => Int, {nullable: true})
7515
+ ExecutionTime: number;
7284
7516
 
7285
7517
  @Field({nullable: true})
7286
7518
  ErrorMessage?: string;
@@ -7323,6 +7555,15 @@ export class RecordChangeResolver extends ResolverBase {
7323
7555
  return this.CreateRecord('Record Changes', input, dataSource, userPayload, pubSub)
7324
7556
  }
7325
7557
 
7558
+ @Mutation(() => RecordChange_)
7559
+ async UpdateRecordChange(
7560
+ @Arg('input', () => UpdateRecordChangeInput) input: UpdateRecordChangeInput,
7561
+ @Ctx() { dataSource, userPayload }: AppContext,
7562
+ @PubSub() pubSub: PubSubEngine
7563
+ ) {
7564
+ return this.UpdateRecord('Record Changes', input, dataSource, userPayload, pubSub);
7565
+ }
7566
+
7326
7567
  }
7327
7568
 
7328
7569
  //****************************************************************************
@@ -7341,12 +7582,12 @@ export class UserRole_ {
7341
7582
  RoleName: string;
7342
7583
 
7343
7584
  @Field()
7344
- @MaxLength(8)
7345
- CreatedAt: Date;
7585
+ @MaxLength(10)
7586
+ _mj__CreatedAt: Date;
7346
7587
 
7347
7588
  @Field()
7348
- @MaxLength(8)
7349
- UpdatedAt: Date;
7589
+ @MaxLength(10)
7590
+ _mj__UpdatedAt: Date;
7350
7591
 
7351
7592
  @Field()
7352
7593
  @MaxLength(200)
@@ -7462,12 +7703,12 @@ export class RowLevelSecurityFilter_ {
7462
7703
  FilterText?: string;
7463
7704
 
7464
7705
  @Field()
7465
- @MaxLength(8)
7466
- CreatedAt: Date;
7706
+ @MaxLength(10)
7707
+ _mj__CreatedAt: Date;
7467
7708
 
7468
7709
  @Field()
7469
- @MaxLength(8)
7470
- UpdatedAt: Date;
7710
+ @MaxLength(10)
7711
+ _mj__UpdatedAt: Date;
7471
7712
 
7472
7713
  @Field(() => [mj_core_schema_server_object_types.EntityPermission_])
7473
7714
  EntityPermissionsArray: mj_core_schema_server_object_types.EntityPermission_[]; // Link to EntityPermissions
@@ -7580,12 +7821,12 @@ export class AuditLog_ {
7580
7821
  RecordID?: string;
7581
7822
 
7582
7823
  @Field()
7583
- @MaxLength(8)
7584
- CreatedAt: Date;
7824
+ @MaxLength(10)
7825
+ _mj__CreatedAt: Date;
7585
7826
 
7586
7827
  @Field()
7587
- @MaxLength(8)
7588
- UpdatedAt: Date;
7828
+ @MaxLength(10)
7829
+ _mj__UpdatedAt: Date;
7589
7830
 
7590
7831
  @Field()
7591
7832
  @MaxLength(200)
@@ -7761,12 +8002,12 @@ export class Authorization_ {
7761
8002
  Description?: string;
7762
8003
 
7763
8004
  @Field()
7764
- @MaxLength(8)
7765
- CreatedAt: Date;
8005
+ @MaxLength(10)
8006
+ _mj__CreatedAt: Date;
7766
8007
 
7767
8008
  @Field()
7768
- @MaxLength(8)
7769
- UpdatedAt: Date;
8009
+ @MaxLength(10)
8010
+ _mj__UpdatedAt: Date;
7770
8011
 
7771
8012
  @Field({nullable: true})
7772
8013
  @MaxLength(200)
@@ -7911,12 +8152,12 @@ export class AuthorizationRole_ {
7911
8152
  Type: string;
7912
8153
 
7913
8154
  @Field()
7914
- @MaxLength(8)
7915
- CreatedAt: Date;
8155
+ @MaxLength(10)
8156
+ _mj__CreatedAt: Date;
7916
8157
 
7917
8158
  @Field()
7918
- @MaxLength(8)
7919
- UpdatedAt: Date;
8159
+ @MaxLength(10)
8160
+ _mj__UpdatedAt: Date;
7920
8161
 
7921
8162
  }
7922
8163
  //****************************************************************************
@@ -8004,12 +8245,12 @@ export class AuditLogType_ {
8004
8245
  AuthorizationName?: string;
8005
8246
 
8006
8247
  @Field()
8007
- @MaxLength(8)
8008
- CreatedAt: Date;
8248
+ @MaxLength(10)
8249
+ _mj__CreatedAt: Date;
8009
8250
 
8010
8251
  @Field()
8011
- @MaxLength(8)
8012
- UpdatedAt: Date;
8252
+ @MaxLength(10)
8253
+ _mj__UpdatedAt: Date;
8013
8254
 
8014
8255
  @Field({nullable: true})
8015
8256
  @MaxLength(100)
@@ -8130,12 +8371,12 @@ export class EntityFieldValue_ {
8130
8371
  Description?: string;
8131
8372
 
8132
8373
  @Field()
8133
- @MaxLength(8)
8134
- CreatedAt: Date;
8374
+ @MaxLength(10)
8375
+ _mj__CreatedAt: Date;
8135
8376
 
8136
8377
  @Field()
8137
- @MaxLength(8)
8138
- UpdatedAt: Date;
8378
+ @MaxLength(10)
8379
+ _mj__UpdatedAt: Date;
8139
8380
 
8140
8381
  @Field()
8141
8382
  @MaxLength(510)
@@ -8146,6 +8387,37 @@ export class EntityFieldValue_ {
8146
8387
  Entity: string;
8147
8388
 
8148
8389
  }
8390
+
8391
+ //****************************************************************************
8392
+ // INPUT TYPE for Entity Field Values
8393
+ //****************************************************************************
8394
+ @InputType()
8395
+ export class UpdateEntityFieldValueInput {
8396
+ @Field(() => Int)
8397
+ ID: number;
8398
+
8399
+ @Field(() => Int)
8400
+ EntityID: number;
8401
+
8402
+ @Field()
8403
+ EntityFieldName: string;
8404
+
8405
+ @Field(() => Int)
8406
+ Sequence: number;
8407
+
8408
+ @Field()
8409
+ Value: string;
8410
+
8411
+ @Field({ nullable: true })
8412
+ Code?: string;
8413
+
8414
+ @Field({ nullable: true })
8415
+ Description?: string;
8416
+
8417
+ @Field(() => [KeyValuePairInput], { nullable: true })
8418
+ OldValues___?: KeyValuePairInput[];
8419
+ }
8420
+
8149
8421
  //****************************************************************************
8150
8422
  // RESOLVER for Entity Field Values
8151
8423
  //****************************************************************************
@@ -8206,6 +8478,15 @@ export class EntityFieldValueResolver extends ResolverBase {
8206
8478
  return result;
8207
8479
  }
8208
8480
 
8481
+ @Mutation(() => EntityFieldValue_)
8482
+ async UpdateEntityFieldValue(
8483
+ @Arg('input', () => UpdateEntityFieldValueInput) input: UpdateEntityFieldValueInput,
8484
+ @Ctx() { dataSource, userPayload }: AppContext,
8485
+ @PubSub() pubSub: PubSubEngine
8486
+ ) {
8487
+ return this.UpdateRecord('Entity Field Values', input, dataSource, userPayload, pubSub);
8488
+ }
8489
+
8209
8490
  }
8210
8491
 
8211
8492
  //****************************************************************************
@@ -8249,12 +8530,12 @@ export class AIModel_ {
8249
8530
  PowerRank?: number;
8250
8531
 
8251
8532
  @Field()
8252
- @MaxLength(8)
8253
- CreatedAt: Date;
8533
+ @MaxLength(10)
8534
+ _mj__CreatedAt: Date;
8254
8535
 
8255
8536
  @Field()
8256
- @MaxLength(8)
8257
- UpdatedAt: Date;
8537
+ @MaxLength(10)
8538
+ _mj__UpdatedAt: Date;
8258
8539
 
8259
8540
  @Field()
8260
8541
  @MaxLength(100)
@@ -8501,12 +8782,12 @@ export class AIAction_ {
8501
8782
  IsActive: boolean;
8502
8783
 
8503
8784
  @Field()
8504
- @MaxLength(8)
8505
- CreatedAt: Date;
8785
+ @MaxLength(10)
8786
+ _mj__CreatedAt: Date;
8506
8787
 
8507
8788
  @Field()
8508
- @MaxLength(8)
8509
- UpdatedAt: Date;
8789
+ @MaxLength(10)
8790
+ _mj__UpdatedAt: Date;
8510
8791
 
8511
8792
  @Field({nullable: true})
8512
8793
  @MaxLength(100)
@@ -8689,12 +8970,12 @@ export class AIModelAction_ {
8689
8970
  IsActive: boolean;
8690
8971
 
8691
8972
  @Field()
8692
- @MaxLength(8)
8693
- CreatedAt: Date;
8973
+ @MaxLength(10)
8974
+ _mj__CreatedAt: Date;
8694
8975
 
8695
8976
  @Field()
8696
- @MaxLength(8)
8697
- UpdatedAt: Date;
8977
+ @MaxLength(10)
8978
+ _mj__UpdatedAt: Date;
8698
8979
 
8699
8980
  @Field()
8700
8981
  @MaxLength(100)
@@ -8877,6 +9158,14 @@ export class EntityAIAction_ {
8877
9158
  @Field({nullable: true})
8878
9159
  Comments?: string;
8879
9160
 
9161
+ @Field()
9162
+ @MaxLength(10)
9163
+ _mj__CreatedAt: Date;
9164
+
9165
+ @Field()
9166
+ @MaxLength(10)
9167
+ _mj__UpdatedAt: Date;
9168
+
8880
9169
  @Field()
8881
9170
  @MaxLength(510)
8882
9171
  Entity: string;
@@ -9086,6 +9375,14 @@ export class AIModelType_ {
9086
9375
 
9087
9376
  @Field({nullable: true})
9088
9377
  Description?: string;
9378
+
9379
+ @Field()
9380
+ @MaxLength(10)
9381
+ _mj__CreatedAt: Date;
9382
+
9383
+ @Field()
9384
+ @MaxLength(10)
9385
+ _mj__UpdatedAt: Date;
9089
9386
 
9090
9387
  @Field(() => [mj_core_schema_server_object_types.AIModel_])
9091
9388
  AIModelsArray: mj_core_schema_server_object_types.AIModel_[]; // Link to AIModels
@@ -9242,6 +9539,14 @@ export class QueueType_ {
9242
9539
 
9243
9540
  @Field(() => Boolean)
9244
9541
  IsActive: boolean;
9542
+
9543
+ @Field()
9544
+ @MaxLength(10)
9545
+ _mj__CreatedAt: Date;
9546
+
9547
+ @Field()
9548
+ @MaxLength(10)
9549
+ _mj__UpdatedAt: Date;
9245
9550
 
9246
9551
  @Field(() => [mj_core_schema_server_object_types.Queue_])
9247
9552
  QueuesArray: mj_core_schema_server_object_types.Queue_[]; // Link to Queues
@@ -9378,12 +9683,12 @@ export class Queue_ {
9378
9683
  LastHeartbeat: Date;
9379
9684
 
9380
9685
  @Field()
9381
- @MaxLength(8)
9382
- CreatedAt: Date;
9686
+ @MaxLength(10)
9687
+ _mj__CreatedAt: Date;
9383
9688
 
9384
9689
  @Field()
9385
- @MaxLength(8)
9386
- UpdatedAt: Date;
9690
+ @MaxLength(10)
9691
+ _mj__UpdatedAt: Date;
9387
9692
 
9388
9693
  @Field()
9389
9694
  @MaxLength(100)
@@ -9627,6 +9932,14 @@ export class QueueTask_ {
9627
9932
  @Field({nullable: true})
9628
9933
  Comments?: string;
9629
9934
 
9935
+ @Field()
9936
+ @MaxLength(10)
9937
+ _mj__CreatedAt: Date;
9938
+
9939
+ @Field()
9940
+ @MaxLength(10)
9941
+ _mj__UpdatedAt: Date;
9942
+
9630
9943
  @Field()
9631
9944
  @MaxLength(100)
9632
9945
  Queue: string;
@@ -9802,6 +10115,14 @@ export class Dashboard_ {
9802
10115
  @Field(() => Int, {nullable: true})
9803
10116
  UserID?: number;
9804
10117
 
10118
+ @Field()
10119
+ @MaxLength(10)
10120
+ _mj__CreatedAt: Date;
10121
+
10122
+ @Field()
10123
+ @MaxLength(10)
10124
+ _mj__UpdatedAt: Date;
10125
+
9805
10126
  @Field({nullable: true})
9806
10127
  @MaxLength(200)
9807
10128
  Category?: string;
@@ -9953,6 +10274,14 @@ export class OutputTriggerType_ {
9953
10274
 
9954
10275
  @Field({nullable: true})
9955
10276
  Description?: string;
10277
+
10278
+ @Field()
10279
+ @MaxLength(10)
10280
+ _mj__CreatedAt: Date;
10281
+
10282
+ @Field()
10283
+ @MaxLength(10)
10284
+ _mj__UpdatedAt: Date;
9956
10285
 
9957
10286
  @Field(() => [mj_core_schema_server_object_types.Report_])
9958
10287
  ReportsArray: mj_core_schema_server_object_types.Report_[]; // Link to Reports
@@ -10037,6 +10366,14 @@ export class OutputFormatType_ {
10037
10366
 
10038
10367
  @Field({nullable: true})
10039
10368
  DisplayFormat?: string;
10369
+
10370
+ @Field()
10371
+ @MaxLength(10)
10372
+ _mj__CreatedAt: Date;
10373
+
10374
+ @Field()
10375
+ @MaxLength(10)
10376
+ _mj__UpdatedAt: Date;
10040
10377
 
10041
10378
  @Field(() => [mj_core_schema_server_object_types.Report_])
10042
10379
  ReportsArray: mj_core_schema_server_object_types.Report_[]; // Link to Reports
@@ -10118,6 +10455,14 @@ export class OutputDeliveryType_ {
10118
10455
 
10119
10456
  @Field({nullable: true})
10120
10457
  Description?: string;
10458
+
10459
+ @Field()
10460
+ @MaxLength(10)
10461
+ _mj__CreatedAt: Date;
10462
+
10463
+ @Field()
10464
+ @MaxLength(10)
10465
+ _mj__UpdatedAt: Date;
10121
10466
 
10122
10467
  @Field(() => [mj_core_schema_server_object_types.Report_])
10123
10468
  ReportsArray: mj_core_schema_server_object_types.Report_[]; // Link to Reports
@@ -10246,12 +10591,12 @@ export class Report_ {
10246
10591
  OutputWorkflowID?: number;
10247
10592
 
10248
10593
  @Field()
10249
- @MaxLength(8)
10250
- CreatedAt: Date;
10594
+ @MaxLength(10)
10595
+ _mj__CreatedAt: Date;
10251
10596
 
10252
10597
  @Field()
10253
- @MaxLength(8)
10254
- UpdatedAt: Date;
10598
+ @MaxLength(10)
10599
+ _mj__UpdatedAt: Date;
10255
10600
 
10256
10601
  @Field({nullable: true})
10257
10602
  @MaxLength(200)
@@ -10509,13 +10854,17 @@ export class ReportSnapshot_ {
10509
10854
  @Field()
10510
10855
  ResultSet: string;
10511
10856
 
10512
- @Field()
10513
- @MaxLength(8)
10514
- CreatedAt: Date;
10515
-
10516
10857
  @Field(() => Int, {nullable: true})
10517
10858
  UserID?: number;
10518
10859
 
10860
+ @Field()
10861
+ @MaxLength(10)
10862
+ _mj__CreatedAt: Date;
10863
+
10864
+ @Field()
10865
+ @MaxLength(10)
10866
+ _mj__UpdatedAt: Date;
10867
+
10519
10868
  @Field()
10520
10869
  @MaxLength(510)
10521
10870
  Report: string;
@@ -10668,12 +11017,12 @@ export class ResourceType_ {
10668
11017
  EntityID?: number;
10669
11018
 
10670
11019
  @Field()
10671
- @MaxLength(8)
10672
- CreatedAt: Date;
11020
+ @MaxLength(10)
11021
+ _mj__CreatedAt: Date;
10673
11022
 
10674
11023
  @Field()
10675
- @MaxLength(8)
10676
- UpdatedAt: Date;
11024
+ @MaxLength(10)
11025
+ _mj__UpdatedAt: Date;
10677
11026
 
10678
11027
  @Field({nullable: true})
10679
11028
  @MaxLength(510)
@@ -10767,6 +11116,14 @@ export class Tag_ {
10767
11116
  @Field(() => Int, {nullable: true})
10768
11117
  ParentID?: number;
10769
11118
 
11119
+ @Field()
11120
+ @MaxLength(10)
11121
+ _mj__CreatedAt: Date;
11122
+
11123
+ @Field()
11124
+ @MaxLength(10)
11125
+ _mj__UpdatedAt: Date;
11126
+
10770
11127
  @Field({nullable: true})
10771
11128
  @MaxLength(510)
10772
11129
  Parent?: string;
@@ -10866,6 +11223,14 @@ export class TaggedItem_ {
10866
11223
  @MaxLength(510)
10867
11224
  RecordID: string;
10868
11225
 
11226
+ @Field()
11227
+ @MaxLength(10)
11228
+ _mj__CreatedAt: Date;
11229
+
11230
+ @Field()
11231
+ @MaxLength(10)
11232
+ _mj__UpdatedAt: Date;
11233
+
10869
11234
  @Field()
10870
11235
  @MaxLength(510)
10871
11236
  Tag: string;
@@ -10948,12 +11313,12 @@ export class Workspace_ {
10948
11313
  UserID: number;
10949
11314
 
10950
11315
  @Field()
10951
- @MaxLength(8)
10952
- CreatedAt: Date;
11316
+ @MaxLength(10)
11317
+ _mj__CreatedAt: Date;
10953
11318
 
10954
11319
  @Field()
10955
- @MaxLength(8)
10956
- UpdatedAt: Date;
11320
+ @MaxLength(10)
11321
+ _mj__UpdatedAt: Date;
10957
11322
 
10958
11323
  @Field()
10959
11324
  @MaxLength(200)
@@ -11119,12 +11484,12 @@ export class WorkspaceItem_ {
11119
11484
  Configuration?: string;
11120
11485
 
11121
11486
  @Field()
11122
- @MaxLength(8)
11123
- CreatedAt: Date;
11487
+ @MaxLength(10)
11488
+ _mj__CreatedAt: Date;
11124
11489
 
11125
11490
  @Field()
11126
- @MaxLength(8)
11127
- UpdatedAt: Date;
11491
+ @MaxLength(10)
11492
+ _mj__UpdatedAt: Date;
11128
11493
 
11129
11494
  @Field()
11130
11495
  @MaxLength(510)
@@ -11291,12 +11656,12 @@ export class Dataset_ {
11291
11656
  Description?: string;
11292
11657
 
11293
11658
  @Field()
11294
- @MaxLength(8)
11295
- CreatedAt: Date;
11659
+ @MaxLength(10)
11660
+ _mj__CreatedAt: Date;
11296
11661
 
11297
11662
  @Field()
11298
- @MaxLength(8)
11299
- UpdatedAt: Date;
11663
+ @MaxLength(10)
11664
+ _mj__UpdatedAt: Date;
11300
11665
 
11301
11666
  @Field(() => [mj_core_schema_server_object_types.DatasetItem_])
11302
11667
  DatasetItemsArray: mj_core_schema_server_object_types.DatasetItem_[]; // Link to DatasetItems
@@ -11397,12 +11762,12 @@ export class DatasetItem_ {
11397
11762
  Description?: string;
11398
11763
 
11399
11764
  @Field()
11400
- @MaxLength(8)
11401
- CreatedAt: Date;
11765
+ @MaxLength(10)
11766
+ _mj__CreatedAt: Date;
11402
11767
 
11403
11768
  @Field()
11404
- @MaxLength(8)
11405
- UpdatedAt: Date;
11769
+ @MaxLength(10)
11770
+ _mj__UpdatedAt: Date;
11406
11771
 
11407
11772
  @Field()
11408
11773
  @MaxLength(510)
@@ -11492,12 +11857,12 @@ export class ConversationDetail_ {
11492
11857
  HiddenToUser: boolean;
11493
11858
 
11494
11859
  @Field()
11495
- @MaxLength(8)
11496
- CreatedAt: Date;
11860
+ @MaxLength(10)
11861
+ _mj__CreatedAt: Date;
11497
11862
 
11498
11863
  @Field()
11499
- @MaxLength(8)
11500
- UpdatedAt: Date;
11864
+ @MaxLength(10)
11865
+ _mj__UpdatedAt: Date;
11501
11866
 
11502
11867
  @Field({nullable: true})
11503
11868
  @MaxLength(200)
@@ -11689,12 +12054,12 @@ export class Conversation_ {
11689
12054
  DataContextID?: number;
11690
12055
 
11691
12056
  @Field()
11692
- @MaxLength(8)
11693
- CreatedAt: Date;
12057
+ @MaxLength(10)
12058
+ _mj__CreatedAt: Date;
11694
12059
 
11695
12060
  @Field()
11696
- @MaxLength(8)
11697
- UpdatedAt: Date;
12061
+ @MaxLength(10)
12062
+ _mj__UpdatedAt: Date;
11698
12063
 
11699
12064
  @Field()
11700
12065
  @MaxLength(200)
@@ -11914,12 +12279,12 @@ export class UserNotification_ {
11914
12279
  ReadAt?: Date;
11915
12280
 
11916
12281
  @Field()
11917
- @MaxLength(8)
11918
- CreatedAt: Date;
12282
+ @MaxLength(10)
12283
+ _mj__CreatedAt: Date;
11919
12284
 
11920
12285
  @Field()
11921
- @MaxLength(8)
11922
- UpdatedAt: Date;
12286
+ @MaxLength(10)
12287
+ _mj__UpdatedAt: Date;
11923
12288
 
11924
12289
  @Field()
11925
12290
  @MaxLength(200)
@@ -12094,12 +12459,12 @@ export class SchemaInfo_ {
12094
12459
  Comments?: string;
12095
12460
 
12096
12461
  @Field()
12097
- @MaxLength(8)
12098
- CreatedAt: Date;
12462
+ @MaxLength(10)
12463
+ _mj__CreatedAt: Date;
12099
12464
 
12100
12465
  @Field()
12101
- @MaxLength(8)
12102
- UpdatedAt: Date;
12466
+ @MaxLength(10)
12467
+ _mj__UpdatedAt: Date;
12103
12468
 
12104
12469
  }
12105
12470
 
@@ -12241,12 +12606,12 @@ export class CompanyIntegrationRecordMap_ {
12241
12606
  EntityRecordID: string;
12242
12607
 
12243
12608
  @Field()
12244
- @MaxLength(8)
12245
- CreatedAt: Date;
12609
+ @MaxLength(10)
12610
+ _mj__CreatedAt: Date;
12246
12611
 
12247
12612
  @Field()
12248
- @MaxLength(8)
12249
- UpdatedAt: Date;
12613
+ @MaxLength(10)
12614
+ _mj__UpdatedAt: Date;
12250
12615
 
12251
12616
  @Field()
12252
12617
  @MaxLength(510)
@@ -12413,12 +12778,12 @@ export class RecordMergeLog_ {
12413
12778
  Comments?: string;
12414
12779
 
12415
12780
  @Field()
12416
- @MaxLength(8)
12417
- CreatedAt: Date;
12781
+ @MaxLength(10)
12782
+ _mj__CreatedAt: Date;
12418
12783
 
12419
- @Field({nullable: true})
12420
- @MaxLength(8)
12421
- UpdatedAt?: Date;
12784
+ @Field()
12785
+ @MaxLength(10)
12786
+ _mj__UpdatedAt: Date;
12422
12787
 
12423
12788
  @Field()
12424
12789
  @MaxLength(510)
@@ -12626,12 +12991,12 @@ export class RecordMergeDeletionLog_ {
12626
12991
  ProcessingLog?: string;
12627
12992
 
12628
12993
  @Field()
12629
- @MaxLength(8)
12630
- CreatedAt: Date;
12994
+ @MaxLength(10)
12995
+ _mj__CreatedAt: Date;
12631
12996
 
12632
12997
  @Field()
12633
- @MaxLength(8)
12634
- UpdatedAt: Date;
12998
+ @MaxLength(10)
12999
+ _mj__UpdatedAt: Date;
12635
13000
 
12636
13001
  }
12637
13002
 
@@ -12799,12 +13164,12 @@ export class QueryField_ {
12799
13164
  SummaryDescription?: string;
12800
13165
 
12801
13166
  @Field()
12802
- @MaxLength(8)
12803
- CreatedAt: Date;
13167
+ @MaxLength(10)
13168
+ _mj__CreatedAt: Date;
12804
13169
 
12805
13170
  @Field()
12806
- @MaxLength(8)
12807
- UpdatedAt: Date;
13171
+ @MaxLength(10)
13172
+ _mj__UpdatedAt: Date;
12808
13173
 
12809
13174
  @Field()
12810
13175
  @MaxLength(510)
@@ -12997,16 +13362,16 @@ export class QueryCategory_ {
12997
13362
  @Field({nullable: true})
12998
13363
  Description?: string;
12999
13364
 
13000
- @Field()
13001
- @MaxLength(8)
13002
- CreatedAt: Date;
13365
+ @Field(() => Int)
13366
+ UserID: number;
13003
13367
 
13004
13368
  @Field()
13005
- @MaxLength(8)
13006
- UpdatedAt: Date;
13369
+ @MaxLength(10)
13370
+ _mj__CreatedAt: Date;
13007
13371
 
13008
- @Field(() => Int)
13009
- UserID: number;
13372
+ @Field()
13373
+ @MaxLength(10)
13374
+ _mj__UpdatedAt: Date;
13010
13375
 
13011
13376
  @Field({nullable: true})
13012
13377
  @MaxLength(100)
@@ -13205,12 +13570,12 @@ export class Query_ {
13205
13570
  ExecutionCostRank?: number;
13206
13571
 
13207
13572
  @Field()
13208
- @MaxLength(8)
13209
- CreatedAt: Date;
13573
+ @MaxLength(10)
13574
+ _mj__CreatedAt: Date;
13210
13575
 
13211
13576
  @Field()
13212
- @MaxLength(8)
13213
- UpdatedAt: Date;
13577
+ @MaxLength(10)
13578
+ _mj__UpdatedAt: Date;
13214
13579
 
13215
13580
  @Field({nullable: true})
13216
13581
  @MaxLength(100)
@@ -13424,12 +13789,12 @@ export class QueryPermission_ {
13424
13789
  RoleName: string;
13425
13790
 
13426
13791
  @Field()
13427
- @MaxLength(8)
13428
- CreatedAt: Date;
13792
+ @MaxLength(10)
13793
+ _mj__CreatedAt: Date;
13429
13794
 
13430
13795
  @Field()
13431
- @MaxLength(8)
13432
- UpdatedAt: Date;
13796
+ @MaxLength(10)
13797
+ _mj__UpdatedAt: Date;
13433
13798
 
13434
13799
  }
13435
13800
 
@@ -13558,12 +13923,12 @@ export class VectorIndex_ {
13558
13923
  EmbeddingModelID: number;
13559
13924
 
13560
13925
  @Field()
13561
- @MaxLength(8)
13562
- CreatedAt: Date;
13926
+ @MaxLength(10)
13927
+ _mj__CreatedAt: Date;
13563
13928
 
13564
13929
  @Field()
13565
- @MaxLength(8)
13566
- UpdatedAt: Date;
13930
+ @MaxLength(10)
13931
+ _mj__UpdatedAt: Date;
13567
13932
 
13568
13933
  @Field()
13569
13934
  @MaxLength(200)
@@ -13706,12 +14071,12 @@ export class EntityDocumentType_ {
13706
14071
  Description?: string;
13707
14072
 
13708
14073
  @Field()
13709
- @MaxLength(8)
13710
- CreatedAt: Date;
14074
+ @MaxLength(10)
14075
+ _mj__CreatedAt: Date;
13711
14076
 
13712
14077
  @Field()
13713
- @MaxLength(8)
13714
- UpdatedAt: Date;
14078
+ @MaxLength(10)
14079
+ _mj__UpdatedAt: Date;
13715
14080
 
13716
14081
  @Field(() => [mj_core_schema_server_object_types.EntityDocument_])
13717
14082
  EntityDocumentsArray: mj_core_schema_server_object_types.EntityDocument_[]; // Link to EntityDocuments
@@ -13853,12 +14218,12 @@ export class EntityDocumentRun_ {
13853
14218
  Status: string;
13854
14219
 
13855
14220
  @Field()
13856
- @MaxLength(8)
13857
- CreatedAt: Date;
14221
+ @MaxLength(10)
14222
+ _mj__CreatedAt: Date;
13858
14223
 
13859
14224
  @Field()
13860
- @MaxLength(8)
13861
- UpdatedAt: Date;
14225
+ @MaxLength(10)
14226
+ _mj__UpdatedAt: Date;
13862
14227
 
13863
14228
  @Field()
13864
14229
  @MaxLength(500)
@@ -14005,12 +14370,12 @@ export class VectorDatabase_ {
14005
14370
  ClassKey?: string;
14006
14371
 
14007
14372
  @Field()
14008
- @MaxLength(8)
14009
- CreatedAt: Date;
14373
+ @MaxLength(10)
14374
+ _mj__CreatedAt: Date;
14010
14375
 
14011
14376
  @Field()
14012
- @MaxLength(8)
14013
- UpdatedAt: Date;
14377
+ @MaxLength(10)
14378
+ _mj__UpdatedAt: Date;
14014
14379
 
14015
14380
  @Field(() => [mj_core_schema_server_object_types.VectorIndex_])
14016
14381
  VectorIndexesArray: mj_core_schema_server_object_types.VectorIndex_[]; // Link to VectorIndexes
@@ -14183,16 +14548,16 @@ export class EntityRecordDocument_ {
14183
14548
  @MaxLength(8)
14184
14549
  EntityRecordUpdatedAt: Date;
14185
14550
 
14186
- @Field()
14187
- @MaxLength(8)
14188
- CreatedAt: Date;
14551
+ @Field(() => Int)
14552
+ EntityDocumentID: number;
14189
14553
 
14190
14554
  @Field()
14191
- @MaxLength(8)
14192
- UpdatedAt: Date;
14555
+ @MaxLength(10)
14556
+ _mj__CreatedAt: Date;
14193
14557
 
14194
- @Field(() => Int)
14195
- EntityDocumentID: number;
14558
+ @Field()
14559
+ @MaxLength(10)
14560
+ _mj__UpdatedAt: Date;
14196
14561
 
14197
14562
  }
14198
14563
 
@@ -14373,12 +14738,12 @@ export class EntityDocument_ {
14373
14738
  AbsoluteMatchThreshold: number;
14374
14739
 
14375
14740
  @Field()
14376
- @MaxLength(8)
14377
- CreatedAt: Date;
14741
+ @MaxLength(10)
14742
+ _mj__CreatedAt: Date;
14378
14743
 
14379
14744
  @Field()
14380
- @MaxLength(8)
14381
- UpdatedAt: Date;
14745
+ @MaxLength(10)
14746
+ _mj__UpdatedAt: Date;
14382
14747
 
14383
14748
  @Field()
14384
14749
  @MaxLength(510)
@@ -14596,12 +14961,12 @@ export class DataContextItem_ {
14596
14961
  LastRefreshedAt?: Date;
14597
14962
 
14598
14963
  @Field()
14599
- @MaxLength(8)
14600
- CreatedAt: Date;
14964
+ @MaxLength(10)
14965
+ _mj__CreatedAt: Date;
14601
14966
 
14602
14967
  @Field()
14603
- @MaxLength(8)
14604
- UpdatedAt: Date;
14968
+ @MaxLength(10)
14969
+ _mj__UpdatedAt: Date;
14605
14970
 
14606
14971
  @Field()
14607
14972
  @MaxLength(510)
@@ -14795,12 +15160,12 @@ export class DataContext_ {
14795
15160
  LastRefreshedAt?: Date;
14796
15161
 
14797
15162
  @Field()
14798
- @MaxLength(8)
14799
- CreatedAt: Date;
15163
+ @MaxLength(10)
15164
+ _mj__CreatedAt: Date;
14800
15165
 
14801
15166
  @Field()
14802
- @MaxLength(8)
14803
- UpdatedAt: Date;
15167
+ @MaxLength(10)
15168
+ _mj__UpdatedAt: Date;
14804
15169
 
14805
15170
  @Field()
14806
15171
  @MaxLength(200)
@@ -14969,20 +15334,20 @@ export class UserViewCategory_ {
14969
15334
  @Field(() => Int, {nullable: true})
14970
15335
  ParentID?: number;
14971
15336
 
14972
- @Field()
14973
- @MaxLength(8)
14974
- CreatedAt: Date;
14975
-
14976
- @Field()
14977
- @MaxLength(8)
14978
- UpdatedAt: Date;
14979
-
14980
15337
  @Field(() => Int)
14981
15338
  EntityID: number;
14982
15339
 
14983
15340
  @Field(() => Int)
14984
15341
  UserID: number;
14985
15342
 
15343
+ @Field()
15344
+ @MaxLength(10)
15345
+ _mj__CreatedAt: Date;
15346
+
15347
+ @Field()
15348
+ @MaxLength(10)
15349
+ _mj__UpdatedAt: Date;
15350
+
14986
15351
  @Field({nullable: true})
14987
15352
  @MaxLength(200)
14988
15353
  Parent?: string;
@@ -15160,16 +15525,16 @@ export class DashboardCategory_ {
15160
15525
  @Field(() => Int, {nullable: true})
15161
15526
  ParentID?: number;
15162
15527
 
15163
- @Field()
15164
- @MaxLength(8)
15165
- CreatedAt: Date;
15528
+ @Field(() => Int)
15529
+ UserID: number;
15166
15530
 
15167
15531
  @Field()
15168
- @MaxLength(8)
15169
- UpdatedAt: Date;
15532
+ @MaxLength(10)
15533
+ _mj__CreatedAt: Date;
15170
15534
 
15171
- @Field(() => Int)
15172
- UserID: number;
15535
+ @Field()
15536
+ @MaxLength(10)
15537
+ _mj__UpdatedAt: Date;
15173
15538
 
15174
15539
  @Field({nullable: true})
15175
15540
  @MaxLength(200)
@@ -15342,16 +15707,16 @@ export class ReportCategory_ {
15342
15707
  @Field(() => Int, {nullable: true})
15343
15708
  ParentID?: number;
15344
15709
 
15345
- @Field()
15346
- @MaxLength(8)
15347
- CreatedAt: Date;
15710
+ @Field(() => Int)
15711
+ UserID: number;
15348
15712
 
15349
15713
  @Field()
15350
- @MaxLength(8)
15351
- UpdatedAt: Date;
15714
+ @MaxLength(10)
15715
+ _mj__CreatedAt: Date;
15352
15716
 
15353
- @Field(() => Int)
15354
- UserID: number;
15717
+ @Field()
15718
+ @MaxLength(10)
15719
+ _mj__UpdatedAt: Date;
15355
15720
 
15356
15721
  @Field({nullable: true})
15357
15722
  @MaxLength(200)
@@ -15536,12 +15901,12 @@ export class FileStorageProvider_ {
15536
15901
  IsActive: boolean;
15537
15902
 
15538
15903
  @Field()
15539
- @MaxLength(8)
15540
- CreatedAt: Date;
15904
+ @MaxLength(10)
15905
+ _mj__CreatedAt: Date;
15541
15906
 
15542
15907
  @Field()
15543
- @MaxLength(8)
15544
- UpdatedAt: Date;
15908
+ @MaxLength(10)
15909
+ _mj__UpdatedAt: Date;
15545
15910
 
15546
15911
  @Field(() => [mj_core_schema_server_object_types.File_])
15547
15912
  FilesArray: mj_core_schema_server_object_types.File_[]; // Link to Files
@@ -15717,12 +16082,12 @@ export class File_ {
15717
16082
  Status: string;
15718
16083
 
15719
16084
  @Field()
15720
- @MaxLength(8)
15721
- CreatedAt: Date;
16085
+ @MaxLength(10)
16086
+ _mj__CreatedAt: Date;
15722
16087
 
15723
16088
  @Field()
15724
- @MaxLength(8)
15725
- UpdatedAt: Date;
16089
+ @MaxLength(10)
16090
+ _mj__UpdatedAt: Date;
15726
16091
 
15727
16092
  @Field()
15728
16093
  @MaxLength(100)
@@ -15903,12 +16268,12 @@ export class FileCategory_ {
15903
16268
  ParentID?: number;
15904
16269
 
15905
16270
  @Field()
15906
- @MaxLength(8)
15907
- CreatedAt: Date;
16271
+ @MaxLength(10)
16272
+ _mj__CreatedAt: Date;
15908
16273
 
15909
16274
  @Field()
15910
- @MaxLength(8)
15911
- UpdatedAt: Date;
16275
+ @MaxLength(10)
16276
+ _mj__UpdatedAt: Date;
15912
16277
 
15913
16278
  @Field({nullable: true})
15914
16279
  @MaxLength(510)
@@ -16072,12 +16437,12 @@ export class FileEntityRecordLink_ {
16072
16437
  RecordID: string;
16073
16438
 
16074
16439
  @Field()
16075
- @MaxLength(8)
16076
- CreatedAt: Date;
16440
+ @MaxLength(10)
16441
+ _mj__CreatedAt: Date;
16077
16442
 
16078
16443
  @Field()
16079
- @MaxLength(8)
16080
- UpdatedAt: Date;
16444
+ @MaxLength(10)
16445
+ _mj__UpdatedAt: Date;
16081
16446
 
16082
16447
  @Field()
16083
16448
  @MaxLength(1000)
@@ -16234,12 +16599,12 @@ export class VersionInstallation_ {
16234
16599
  Comments?: string;
16235
16600
 
16236
16601
  @Field()
16237
- @MaxLength(8)
16238
- CreatedAt: Date;
16602
+ @MaxLength(10)
16603
+ _mj__CreatedAt: Date;
16239
16604
 
16240
16605
  @Field()
16241
- @MaxLength(8)
16242
- UpdatedAt: Date;
16606
+ @MaxLength(10)
16607
+ _mj__UpdatedAt: Date;
16243
16608
 
16244
16609
  @Field({nullable: true})
16245
16610
  @MaxLength(604)
@@ -16432,12 +16797,12 @@ export class DuplicateRunDetailMatch_ {
16432
16797
  RecordMergeLogID?: number;
16433
16798
 
16434
16799
  @Field()
16435
- @MaxLength(8)
16436
- CreatedAt: Date;
16800
+ @MaxLength(10)
16801
+ _mj__CreatedAt: Date;
16437
16802
 
16438
16803
  @Field()
16439
- @MaxLength(8)
16440
- UpdatedAt: Date;
16804
+ @MaxLength(10)
16805
+ _mj__UpdatedAt: Date;
16441
16806
 
16442
16807
  }
16443
16808
 
@@ -16614,12 +16979,12 @@ export class EntityDocumentSetting_ {
16614
16979
  Comments?: string;
16615
16980
 
16616
16981
  @Field()
16617
- @MaxLength(8)
16618
- CreatedAt: Date;
16982
+ @MaxLength(10)
16983
+ _mj__CreatedAt: Date;
16619
16984
 
16620
16985
  @Field()
16621
- @MaxLength(8)
16622
- UpdatedAt: Date;
16986
+ @MaxLength(10)
16987
+ _mj__UpdatedAt: Date;
16623
16988
 
16624
16989
  @Field()
16625
16990
  @MaxLength(500)
@@ -16764,12 +17129,12 @@ export class EntitySetting_ {
16764
17129
  Comments?: string;
16765
17130
 
16766
17131
  @Field()
16767
- @MaxLength(8)
16768
- CreatedAt: Date;
17132
+ @MaxLength(10)
17133
+ _mj__CreatedAt: Date;
16769
17134
 
16770
17135
  @Field()
16771
- @MaxLength(8)
16772
- UpdatedAt: Date;
17136
+ @MaxLength(10)
17137
+ _mj__UpdatedAt: Date;
16773
17138
 
16774
17139
  @Field()
16775
17140
  @MaxLength(510)
@@ -16935,12 +17300,12 @@ export class DuplicateRun_ {
16935
17300
  SourceListID: number;
16936
17301
 
16937
17302
  @Field()
16938
- @MaxLength(8)
16939
- CreatedAt: Date;
17303
+ @MaxLength(10)
17304
+ _mj__CreatedAt: Date;
16940
17305
 
16941
17306
  @Field()
16942
- @MaxLength(8)
16943
- UpdatedAt: Date;
17307
+ @MaxLength(10)
17308
+ _mj__UpdatedAt: Date;
16944
17309
 
16945
17310
  @Field()
16946
17311
  @MaxLength(510)
@@ -17155,12 +17520,12 @@ export class DuplicateRunDetail_ {
17155
17520
  MergeErrorMessage?: string;
17156
17521
 
17157
17522
  @Field()
17158
- @MaxLength(8)
17159
- CreatedAt: Date;
17523
+ @MaxLength(10)
17524
+ _mj__CreatedAt: Date;
17160
17525
 
17161
17526
  @Field()
17162
- @MaxLength(8)
17163
- UpdatedAt: Date;
17527
+ @MaxLength(10)
17528
+ _mj__UpdatedAt: Date;
17164
17529
 
17165
17530
  @Field(() => [mj_core_schema_server_object_types.DuplicateRunDetailMatch_])
17166
17531
  DuplicateRunDetailMatchesArray: mj_core_schema_server_object_types.DuplicateRunDetailMatch_[]; // Link to DuplicateRunDetailMatches
@@ -17338,12 +17703,12 @@ export class EntityBehavior_ {
17338
17703
  CodeGenerated: boolean;
17339
17704
 
17340
17705
  @Field()
17341
- @MaxLength(8)
17342
- CreatedAt: Date;
17706
+ @MaxLength(10)
17707
+ _mj__CreatedAt: Date;
17343
17708
 
17344
17709
  @Field()
17345
- @MaxLength(8)
17346
- UpdatedAt: Date;
17710
+ @MaxLength(10)
17711
+ _mj__UpdatedAt: Date;
17347
17712
 
17348
17713
  @Field()
17349
17714
  @MaxLength(510)
@@ -17506,12 +17871,12 @@ export class EntityBehaviorType_ {
17506
17871
  Description?: string;
17507
17872
 
17508
17873
  @Field()
17509
- @MaxLength(8)
17510
- CreatedAt: Date;
17874
+ @MaxLength(10)
17875
+ _mj__CreatedAt: Date;
17511
17876
 
17512
17877
  @Field()
17513
- @MaxLength(8)
17514
- UpdatedAt: Date;
17878
+ @MaxLength(10)
17879
+ _mj__UpdatedAt: Date;
17515
17880
 
17516
17881
  @Field(() => [mj_core_schema_server_object_types.EntityBehavior_])
17517
17882
  EntityBehaviorsArray: mj_core_schema_server_object_types.EntityBehavior_[]; // Link to EntityBehaviors
@@ -17658,12 +18023,12 @@ export class ApplicationSetting_ {
17658
18023
  Comments?: string;
17659
18024
 
17660
18025
  @Field()
17661
- @MaxLength(8)
17662
- CreatedAt: Date;
18026
+ @MaxLength(10)
18027
+ _mj__CreatedAt: Date;
17663
18028
 
17664
18029
  @Field()
17665
- @MaxLength(8)
17666
- UpdatedAt: Date;
18030
+ @MaxLength(10)
18031
+ _mj__UpdatedAt: Date;
17667
18032
 
17668
18033
  }
17669
18034
 
@@ -17811,12 +18176,12 @@ export class ActionCategory_ {
17811
18176
  Status: string;
17812
18177
 
17813
18178
  @Field()
17814
- @MaxLength(8)
17815
- CreatedAt: Date;
18179
+ @MaxLength(10)
18180
+ _mj__CreatedAt: Date;
17816
18181
 
17817
18182
  @Field()
17818
- @MaxLength(8)
17819
- UpdatedAt: Date;
18183
+ @MaxLength(10)
18184
+ _mj__UpdatedAt: Date;
17820
18185
 
17821
18186
  @Field({nullable: true})
17822
18187
  @MaxLength(510)
@@ -17986,12 +18351,12 @@ export class EntityAction_ {
17986
18351
  Status: string;
17987
18352
 
17988
18353
  @Field()
17989
- @MaxLength(8)
17990
- CreatedAt: Date;
18354
+ @MaxLength(10)
18355
+ _mj__CreatedAt: Date;
17991
18356
 
17992
18357
  @Field()
17993
- @MaxLength(8)
17994
- UpdatedAt: Date;
18358
+ @MaxLength(10)
18359
+ _mj__UpdatedAt: Date;
17995
18360
 
17996
18361
  @Field()
17997
18362
  @MaxLength(510)
@@ -18007,6 +18372,9 @@ export class EntityAction_ {
18007
18372
  @Field(() => [mj_core_schema_server_object_types.EntityActionFilter_])
18008
18373
  EntityActionFiltersArray: mj_core_schema_server_object_types.EntityActionFilter_[]; // Link to EntityActionFilters
18009
18374
 
18375
+ @Field(() => [mj_core_schema_server_object_types.EntityActionParam_])
18376
+ EntityActionParamsArray: mj_core_schema_server_object_types.EntityActionParam_[]; // Link to EntityActionParams
18377
+
18010
18378
  }
18011
18379
 
18012
18380
  //****************************************************************************
@@ -18113,6 +18481,14 @@ export class EntityActionResolver extends ResolverBase {
18113
18481
  const result = this.ArrayMapFieldNamesToCodeNames('Entity Action Filters', await dataSource.query(sSQL));
18114
18482
  return result;
18115
18483
  }
18484
+
18485
+ @FieldResolver(() => [mj_core_schema_server_object_types.EntityActionParam_])
18486
+ async EntityActionParamsArray(@Root() entityaction_: EntityAction_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
18487
+ this.CheckUserReadPermissions('Entity Action Params', userPayload);
18488
+ const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwEntityActionParams] WHERE [EntityActionID]=${entityaction_.ID} ` + this.getRowLevelSecurityWhereClause('Entity Action Params', userPayload, EntityPermissionType.Read, 'AND');
18489
+ const result = this.ArrayMapFieldNamesToCodeNames('Entity Action Params', await dataSource.query(sSQL));
18490
+ return result;
18491
+ }
18116
18492
 
18117
18493
  @Mutation(() => EntityAction_)
18118
18494
  async CreateEntityAction(
@@ -18159,12 +18535,12 @@ export class EntityActionInvocation_ {
18159
18535
  Status: string;
18160
18536
 
18161
18537
  @Field()
18162
- @MaxLength(8)
18163
- CreatedAt: Date;
18538
+ @MaxLength(10)
18539
+ _mj__CreatedAt: Date;
18164
18540
 
18165
18541
  @Field()
18166
- @MaxLength(8)
18167
- UpdatedAt: Date;
18542
+ @MaxLength(10)
18543
+ _mj__UpdatedAt: Date;
18168
18544
 
18169
18545
  @Field()
18170
18546
  @MaxLength(510)
@@ -18306,12 +18682,12 @@ export class ActionAuthorization_ {
18306
18682
  Comments?: string;
18307
18683
 
18308
18684
  @Field()
18309
- @MaxLength(8)
18310
- CreatedAt: Date;
18685
+ @MaxLength(10)
18686
+ _mj__CreatedAt: Date;
18311
18687
 
18312
18688
  @Field()
18313
- @MaxLength(8)
18314
- UpdatedAt: Date;
18689
+ @MaxLength(10)
18690
+ _mj__UpdatedAt: Date;
18315
18691
 
18316
18692
  @Field()
18317
18693
  @MaxLength(850)
@@ -18453,12 +18829,12 @@ export class EntityActionInvocationType_ {
18453
18829
  DisplaySequence: number;
18454
18830
 
18455
18831
  @Field()
18456
- @MaxLength(8)
18457
- CreatedAt: Date;
18832
+ @MaxLength(10)
18833
+ _mj__CreatedAt: Date;
18458
18834
 
18459
18835
  @Field()
18460
- @MaxLength(8)
18461
- UpdatedAt: Date;
18836
+ @MaxLength(10)
18837
+ _mj__UpdatedAt: Date;
18462
18838
 
18463
18839
  @Field(() => [mj_core_schema_server_object_types.EntityActionInvocation_])
18464
18840
  EntityActionInvocationsArray: mj_core_schema_server_object_types.EntityActionInvocation_[]; // Link to EntityActionInvocations
@@ -18603,8 +18979,15 @@ export class Action_ {
18603
18979
  @MaxLength(850)
18604
18980
  Name: string;
18605
18981
 
18606
- @Field()
18607
- UserPrompt: string;
18982
+ @Field({nullable: true})
18983
+ Description?: string;
18984
+
18985
+ @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.'})
18986
+ @MaxLength(40)
18987
+ Type: string;
18988
+
18989
+ @Field({nullable: true})
18990
+ UserPrompt?: string;
18608
18991
 
18609
18992
  @Field({nullable: true, description: 'User\'s comments not shared with the LLM.'})
18610
18993
  UserComments?: string;
@@ -18629,6 +19012,9 @@ export class Action_ {
18629
19012
  @MaxLength(8)
18630
19013
  CodeApprovedAt?: Date;
18631
19014
 
19015
+ @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'})
19016
+ CodeLocked: boolean;
19017
+
18632
19018
  @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.'})
18633
19019
  ForceCodeGeneration: boolean;
18634
19020
 
@@ -18640,12 +19026,12 @@ export class Action_ {
18640
19026
  Status: string;
18641
19027
 
18642
19028
  @Field()
18643
- @MaxLength(8)
18644
- CreatedAt: Date;
19029
+ @MaxLength(10)
19030
+ _mj__CreatedAt: Date;
18645
19031
 
18646
19032
  @Field()
18647
- @MaxLength(8)
18648
- UpdatedAt: Date;
19033
+ @MaxLength(10)
19034
+ _mj__UpdatedAt: Date;
18649
19035
 
18650
19036
  @Field({nullable: true})
18651
19037
  @MaxLength(510)
@@ -18655,8 +19041,11 @@ export class Action_ {
18655
19041
  @MaxLength(200)
18656
19042
  CodeApprovedByUser?: string;
18657
19043
 
18658
- @Field(() => [mj_core_schema_server_object_types.ActionAuthorization_])
18659
- ActionAuthorizationsArray: mj_core_schema_server_object_types.ActionAuthorization_[]; // Link to ActionAuthorizations
19044
+ @Field(() => [mj_core_schema_server_object_types.ActionParam_])
19045
+ ActionParamsArray: mj_core_schema_server_object_types.ActionParam_[]; // Link to ActionParams
19046
+
19047
+ @Field(() => [mj_core_schema_server_object_types.ActionLibrary_])
19048
+ ActionLibrariesArray: mj_core_schema_server_object_types.ActionLibrary_[]; // Link to ActionLibraries
18660
19049
 
18661
19050
  @Field(() => [mj_core_schema_server_object_types.ActionResultCode_])
18662
19051
  ActionResultCodesArray: mj_core_schema_server_object_types.ActionResultCode_[]; // Link to ActionResultCodes
@@ -18670,11 +19059,8 @@ export class Action_ {
18670
19059
  @Field(() => [mj_core_schema_server_object_types.ActionExecutionLog_])
18671
19060
  ActionExecutionLogsArray: mj_core_schema_server_object_types.ActionExecutionLog_[]; // Link to ActionExecutionLogs
18672
19061
 
18673
- @Field(() => [mj_core_schema_server_object_types.ActionParam_])
18674
- ActionParamsArray: mj_core_schema_server_object_types.ActionParam_[]; // Link to ActionParams
18675
-
18676
- @Field(() => [mj_core_schema_server_object_types.ActionLibrary_])
18677
- ActionLibrariesArray: mj_core_schema_server_object_types.ActionLibrary_[]; // Link to ActionLibraries
19062
+ @Field(() => [mj_core_schema_server_object_types.ActionAuthorization_])
19063
+ ActionAuthorizationsArray: mj_core_schema_server_object_types.ActionAuthorization_[]; // Link to ActionAuthorizations
18678
19064
 
18679
19065
  }
18680
19066
 
@@ -18689,8 +19075,14 @@ export class CreateActionInput {
18689
19075
  @Field()
18690
19076
  Name: string;
18691
19077
 
19078
+ @Field({ nullable: true })
19079
+ Description?: string;
19080
+
18692
19081
  @Field()
18693
- UserPrompt: string;
19082
+ Type: string;
19083
+
19084
+ @Field({ nullable: true })
19085
+ UserPrompt?: string;
18694
19086
 
18695
19087
  @Field({ nullable: true })
18696
19088
  UserComments?: string;
@@ -18713,6 +19105,9 @@ export class CreateActionInput {
18713
19105
  @Field({ nullable: true })
18714
19106
  CodeApprovedAt?: Date;
18715
19107
 
19108
+ @Field(() => Boolean)
19109
+ CodeLocked: boolean;
19110
+
18716
19111
  @Field(() => Boolean)
18717
19112
  ForceCodeGeneration: boolean;
18718
19113
 
@@ -18738,8 +19133,14 @@ export class UpdateActionInput {
18738
19133
  @Field()
18739
19134
  Name: string;
18740
19135
 
19136
+ @Field({ nullable: true })
19137
+ Description?: string;
19138
+
18741
19139
  @Field()
18742
- UserPrompt: string;
19140
+ Type: string;
19141
+
19142
+ @Field({ nullable: true })
19143
+ UserPrompt?: string;
18743
19144
 
18744
19145
  @Field({ nullable: true })
18745
19146
  UserComments?: string;
@@ -18762,6 +19163,9 @@ export class UpdateActionInput {
18762
19163
  @Field({ nullable: true })
18763
19164
  CodeApprovedAt?: Date;
18764
19165
 
19166
+ @Field(() => Boolean)
19167
+ CodeLocked: boolean;
19168
+
18765
19169
  @Field(() => Boolean)
18766
19170
  ForceCodeGeneration: boolean;
18767
19171
 
@@ -18827,11 +19231,19 @@ export class ActionResolver extends ResolverBase {
18827
19231
  return result;
18828
19232
  }
18829
19233
 
18830
- @FieldResolver(() => [mj_core_schema_server_object_types.ActionAuthorization_])
18831
- async ActionAuthorizationsArray(@Root() action_: Action_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
18832
- this.CheckUserReadPermissions('Action Authorizations', userPayload);
18833
- const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwActionAuthorizations] WHERE [ActionID]=${action_.ID} ` + this.getRowLevelSecurityWhereClause('Action Authorizations', userPayload, EntityPermissionType.Read, 'AND');
18834
- const result = this.ArrayMapFieldNamesToCodeNames('Action Authorizations', await dataSource.query(sSQL));
19234
+ @FieldResolver(() => [mj_core_schema_server_object_types.ActionParam_])
19235
+ async ActionParamsArray(@Root() action_: Action_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
19236
+ this.CheckUserReadPermissions('Action Params', userPayload);
19237
+ const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwActionParams] WHERE [ActionID]=${action_.ID} ` + this.getRowLevelSecurityWhereClause('Action Params', userPayload, EntityPermissionType.Read, 'AND');
19238
+ const result = this.ArrayMapFieldNamesToCodeNames('Action Params', await dataSource.query(sSQL));
19239
+ return result;
19240
+ }
19241
+
19242
+ @FieldResolver(() => [mj_core_schema_server_object_types.ActionLibrary_])
19243
+ async ActionLibrariesArray(@Root() action_: Action_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
19244
+ this.CheckUserReadPermissions('Action Libraries', userPayload);
19245
+ const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwActionLibraries] WHERE [ActionID]=${action_.ID} ` + this.getRowLevelSecurityWhereClause('Action Libraries', userPayload, EntityPermissionType.Read, 'AND');
19246
+ const result = this.ArrayMapFieldNamesToCodeNames('Action Libraries', await dataSource.query(sSQL));
18835
19247
  return result;
18836
19248
  }
18837
19249
 
@@ -18867,19 +19279,11 @@ export class ActionResolver extends ResolverBase {
18867
19279
  return result;
18868
19280
  }
18869
19281
 
18870
- @FieldResolver(() => [mj_core_schema_server_object_types.ActionParam_])
18871
- async ActionParamsArray(@Root() action_: Action_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
18872
- this.CheckUserReadPermissions('Action Params', userPayload);
18873
- const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwActionParams] WHERE [ActionID]=${action_.ID} ` + this.getRowLevelSecurityWhereClause('Action Params', userPayload, EntityPermissionType.Read, 'AND');
18874
- const result = this.ArrayMapFieldNamesToCodeNames('Action Params', await dataSource.query(sSQL));
18875
- return result;
18876
- }
18877
-
18878
- @FieldResolver(() => [mj_core_schema_server_object_types.ActionLibrary_])
18879
- async ActionLibrariesArray(@Root() action_: Action_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
18880
- this.CheckUserReadPermissions('Action Libraries', userPayload);
18881
- const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwActionLibraries] WHERE [ActionID]=${action_.ID} ` + this.getRowLevelSecurityWhereClause('Action Libraries', userPayload, EntityPermissionType.Read, 'AND');
18882
- const result = this.ArrayMapFieldNamesToCodeNames('Action Libraries', await dataSource.query(sSQL));
19282
+ @FieldResolver(() => [mj_core_schema_server_object_types.ActionAuthorization_])
19283
+ async ActionAuthorizationsArray(@Root() action_: Action_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
19284
+ this.CheckUserReadPermissions('Action Authorizations', userPayload);
19285
+ const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwActionAuthorizations] WHERE [ActionID]=${action_.ID} ` + this.getRowLevelSecurityWhereClause('Action Authorizations', userPayload, EntityPermissionType.Read, 'AND');
19286
+ const result = this.ArrayMapFieldNamesToCodeNames('Action Authorizations', await dataSource.query(sSQL));
18883
19287
  return result;
18884
19288
  }
18885
19289
 
@@ -18931,12 +19335,12 @@ export class EntityActionFilter_ {
18931
19335
  Status: string;
18932
19336
 
18933
19337
  @Field()
18934
- @MaxLength(8)
18935
- CreatedAt: Date;
19338
+ @MaxLength(10)
19339
+ _mj__CreatedAt: Date;
18936
19340
 
18937
19341
  @Field()
18938
- @MaxLength(8)
18939
- UpdatedAt: Date;
19342
+ @MaxLength(10)
19343
+ _mj__UpdatedAt: Date;
18940
19344
 
18941
19345
  }
18942
19346
 
@@ -19082,12 +19486,12 @@ export class ActionFilter_ {
19082
19486
  CodeExplanation?: string;
19083
19487
 
19084
19488
  @Field()
19085
- @MaxLength(8)
19086
- CreatedAt: Date;
19489
+ @MaxLength(10)
19490
+ _mj__CreatedAt: Date;
19087
19491
 
19088
19492
  @Field()
19089
- @MaxLength(8)
19090
- UpdatedAt: Date;
19493
+ @MaxLength(10)
19494
+ _mj__UpdatedAt: Date;
19091
19495
 
19092
19496
  @Field(() => [mj_core_schema_server_object_types.EntityActionFilter_])
19093
19497
  EntityActionFiltersArray: mj_core_schema_server_object_types.EntityActionFilter_[]; // Link to EntityActionFilters
@@ -19239,12 +19643,12 @@ export class ActionContextType_ {
19239
19643
  Description?: string;
19240
19644
 
19241
19645
  @Field()
19242
- @MaxLength(8)
19243
- CreatedAt: Date;
19646
+ @MaxLength(10)
19647
+ _mj__CreatedAt: Date;
19244
19648
 
19245
19649
  @Field()
19246
- @MaxLength(8)
19247
- UpdatedAt: Date;
19650
+ @MaxLength(10)
19651
+ _mj__UpdatedAt: Date;
19248
19652
 
19249
19653
  @Field(() => [mj_core_schema_server_object_types.ActionContext_])
19250
19654
  ActionContextsArray: mj_core_schema_server_object_types.ActionContext_[]; // Link to ActionContexts
@@ -19383,16 +19787,19 @@ export class ActionResultCode_ {
19383
19787
  @MaxLength(510)
19384
19788
  ResultCode: string;
19385
19789
 
19790
+ @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.'})
19791
+ IsSuccess: boolean;
19792
+
19386
19793
  @Field({nullable: true, description: 'Description of the result code.'})
19387
19794
  Description?: string;
19388
19795
 
19389
19796
  @Field()
19390
- @MaxLength(8)
19391
- CreatedAt: Date;
19797
+ @MaxLength(10)
19798
+ _mj__CreatedAt: Date;
19392
19799
 
19393
19800
  @Field()
19394
- @MaxLength(8)
19395
- UpdatedAt: Date;
19801
+ @MaxLength(10)
19802
+ _mj__UpdatedAt: Date;
19396
19803
 
19397
19804
  @Field()
19398
19805
  @MaxLength(850)
@@ -19411,6 +19818,9 @@ export class CreateActionResultCodeInput {
19411
19818
  @Field()
19412
19819
  ResultCode: string;
19413
19820
 
19821
+ @Field(() => Boolean)
19822
+ IsSuccess: boolean;
19823
+
19414
19824
  @Field({ nullable: true })
19415
19825
  Description?: string;
19416
19826
  }
@@ -19430,7 +19840,10 @@ export class UpdateActionResultCodeInput {
19430
19840
  @Field()
19431
19841
  ResultCode: string;
19432
19842
 
19433
- @Field({ nullable: true })
19843
+ @Field(() => Boolean)
19844
+ IsSuccess: boolean;
19845
+
19846
+ @Field({ nullable: true })
19434
19847
  Description?: string;
19435
19848
 
19436
19849
  @Field(() => [KeyValuePairInput], { nullable: true })
@@ -19534,12 +19947,12 @@ export class ActionContext_ {
19534
19947
  Status: string;
19535
19948
 
19536
19949
  @Field()
19537
- @MaxLength(8)
19538
- CreatedAt: Date;
19950
+ @MaxLength(10)
19951
+ _mj__CreatedAt: Date;
19539
19952
 
19540
19953
  @Field()
19541
- @MaxLength(8)
19542
- UpdatedAt: Date;
19954
+ @MaxLength(10)
19955
+ _mj__UpdatedAt: Date;
19543
19956
 
19544
19957
  @Field()
19545
19958
  @MaxLength(850)
@@ -19699,12 +20112,12 @@ export class ActionExecutionLog_ {
19699
20112
  RetentionPeriod?: number;
19700
20113
 
19701
20114
  @Field()
19702
- @MaxLength(8)
19703
- CreatedAt: Date;
20115
+ @MaxLength(10)
20116
+ _mj__CreatedAt: Date;
19704
20117
 
19705
20118
  @Field()
19706
- @MaxLength(8)
19707
- UpdatedAt: Date;
20119
+ @MaxLength(10)
20120
+ _mj__UpdatedAt: Date;
19708
20121
 
19709
20122
  @Field()
19710
20123
  @MaxLength(850)
@@ -19891,17 +20304,20 @@ export class ActionParam_ {
19891
20304
  IsRequired: boolean;
19892
20305
 
19893
20306
  @Field()
19894
- @MaxLength(8)
19895
- CreatedAt: Date;
20307
+ @MaxLength(10)
20308
+ _mj__CreatedAt: Date;
19896
20309
 
19897
20310
  @Field()
19898
- @MaxLength(8)
19899
- UpdatedAt: Date;
20311
+ @MaxLength(10)
20312
+ _mj__UpdatedAt: Date;
19900
20313
 
19901
20314
  @Field()
19902
20315
  @MaxLength(850)
19903
20316
  Action: string;
19904
20317
 
20318
+ @Field(() => [mj_core_schema_server_object_types.EntityActionParam_])
20319
+ EntityActionParamsArray: mj_core_schema_server_object_types.EntityActionParam_[]; // Link to EntityActionParams
20320
+
19905
20321
  }
19906
20322
 
19907
20323
  //****************************************************************************
@@ -20022,7 +20438,15 @@ export class ActionParamResolver extends ResolverBase {
20022
20438
  const result = this.MapFieldNamesToCodeNames('Action Params', await dataSource.query(sSQL).then((r) => r && r.length > 0 ? r[0] : {}))
20023
20439
  return result;
20024
20440
  }
20025
-
20441
+
20442
+ @FieldResolver(() => [mj_core_schema_server_object_types.EntityActionParam_])
20443
+ async EntityActionParamsArray(@Root() actionparam_: ActionParam_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
20444
+ this.CheckUserReadPermissions('Entity Action Params', userPayload);
20445
+ const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwEntityActionParams] WHERE [ActionParamID]=${actionparam_.ID} ` + this.getRowLevelSecurityWhereClause('Entity Action Params', userPayload, EntityPermissionType.Read, 'AND');
20446
+ const result = this.ArrayMapFieldNamesToCodeNames('Entity Action Params', await dataSource.query(sSQL));
20447
+ return result;
20448
+ }
20449
+
20026
20450
  @Mutation(() => ActionParam_)
20027
20451
  async CreateActionParam(
20028
20452
  @Arg('input', () => CreateActionParamInput) input: CreateActionParamInput,
@@ -20067,12 +20491,12 @@ export class ActionLibrary_ {
20067
20491
  ItemsUsed?: string;
20068
20492
 
20069
20493
  @Field()
20070
- @MaxLength(8)
20071
- CreatedAt: Date;
20494
+ @MaxLength(10)
20495
+ _mj__CreatedAt: Date;
20072
20496
 
20073
20497
  @Field()
20074
- @MaxLength(8)
20075
- UpdatedAt: Date;
20498
+ @MaxLength(10)
20499
+ _mj__UpdatedAt: Date;
20076
20500
 
20077
20501
  @Field()
20078
20502
  @MaxLength(850)
@@ -20218,9 +20642,6 @@ export class Library_ {
20218
20642
  @MaxLength(40)
20219
20643
  Status: string;
20220
20644
 
20221
- @Field({nullable: true, description: 'List of classes and functions exported by the library.'})
20222
- ExportedItems?: string;
20223
-
20224
20645
  @Field({nullable: true, description: 'Code showing the types and functions defined in the library to be used for reference by humans and AI'})
20225
20646
  TypeDefinitions?: string;
20226
20647
 
@@ -20228,16 +20649,19 @@ export class Library_ {
20228
20649
  SampleCode?: string;
20229
20650
 
20230
20651
  @Field()
20231
- @MaxLength(8)
20232
- CreatedAt: Date;
20652
+ @MaxLength(10)
20653
+ _mj__CreatedAt: Date;
20233
20654
 
20234
20655
  @Field()
20235
- @MaxLength(8)
20236
- UpdatedAt: Date;
20656
+ @MaxLength(10)
20657
+ _mj__UpdatedAt: Date;
20237
20658
 
20238
20659
  @Field(() => [mj_core_schema_server_object_types.ActionLibrary_])
20239
20660
  ActionLibrariesArray: mj_core_schema_server_object_types.ActionLibrary_[]; // Link to ActionLibraries
20240
20661
 
20662
+ @Field(() => [mj_core_schema_server_object_types.LibraryItem_])
20663
+ LibraryItemsArray: mj_core_schema_server_object_types.LibraryItem_[]; // Link to LibraryItems
20664
+
20241
20665
  }
20242
20666
 
20243
20667
  //****************************************************************************
@@ -20254,9 +20678,6 @@ export class CreateLibraryInput {
20254
20678
  @Field()
20255
20679
  Status: string;
20256
20680
 
20257
- @Field({ nullable: true })
20258
- ExportedItems?: string;
20259
-
20260
20681
  @Field({ nullable: true })
20261
20682
  TypeDefinitions?: string;
20262
20683
 
@@ -20282,9 +20703,6 @@ export class UpdateLibraryInput {
20282
20703
  @Field()
20283
20704
  Status: string;
20284
20705
 
20285
- @Field({ nullable: true })
20286
- ExportedItems?: string;
20287
-
20288
20706
  @Field({ nullable: true })
20289
20707
  TypeDefinitions?: string;
20290
20708
 
@@ -20354,6 +20772,14 @@ export class LibraryResolver extends ResolverBase {
20354
20772
  const result = this.ArrayMapFieldNamesToCodeNames('Action Libraries', await dataSource.query(sSQL));
20355
20773
  return result;
20356
20774
  }
20775
+
20776
+ @FieldResolver(() => [mj_core_schema_server_object_types.LibraryItem_])
20777
+ async LibraryItemsArray(@Root() library_: Library_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
20778
+ this.CheckUserReadPermissions('Library Items', userPayload);
20779
+ const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwLibraryItems] WHERE [LibraryID]=${library_.ID} ` + this.getRowLevelSecurityWhereClause('Library Items', userPayload, EntityPermissionType.Read, 'AND');
20780
+ const result = this.ArrayMapFieldNamesToCodeNames('Library Items', await dataSource.query(sSQL));
20781
+ return result;
20782
+ }
20357
20783
 
20358
20784
  @Mutation(() => Library_)
20359
20785
  async CreateLibrary(
@@ -20393,16 +20819,16 @@ export class ListCategory_ {
20393
20819
  @Field(() => Int, {nullable: true})
20394
20820
  ParentID?: number;
20395
20821
 
20396
- @Field()
20397
- @MaxLength(8)
20398
- CreatedAt: Date;
20822
+ @Field(() => Int)
20823
+ UserID: number;
20399
20824
 
20400
20825
  @Field()
20401
- @MaxLength(8)
20402
- UpdatedAt: Date;
20826
+ @MaxLength(10)
20827
+ _mj__CreatedAt: Date;
20403
20828
 
20404
- @Field(() => Int)
20405
- UserID: number;
20829
+ @Field()
20830
+ @MaxLength(10)
20831
+ _mj__UpdatedAt: Date;
20406
20832
 
20407
20833
  }
20408
20834
 
@@ -20547,12 +20973,12 @@ export class CommunicationProvider_ {
20547
20973
  SupportsReceiving: boolean;
20548
20974
 
20549
20975
  @Field()
20550
- @MaxLength(8)
20551
- CreatedAt: Date;
20976
+ @MaxLength(10)
20977
+ _mj__CreatedAt: Date;
20552
20978
 
20553
20979
  @Field()
20554
- @MaxLength(8)
20555
- UpdatedAt: Date;
20980
+ @MaxLength(10)
20981
+ _mj__UpdatedAt: Date;
20556
20982
 
20557
20983
  @Field(() => [mj_core_schema_server_object_types.CommunicationProviderMessageType_])
20558
20984
  CommunicationProviderMessageTypesArray: mj_core_schema_server_object_types.CommunicationProviderMessageType_[]; // Link to CommunicationProviderMessageTypes
@@ -20733,12 +21159,12 @@ export class CommunicationRun_ {
20733
21159
  ErrorMessage?: string;
20734
21160
 
20735
21161
  @Field()
20736
- @MaxLength(8)
20737
- CreatedAt: Date;
21162
+ @MaxLength(10)
21163
+ _mj__CreatedAt: Date;
20738
21164
 
20739
21165
  @Field()
20740
- @MaxLength(8)
20741
- UpdatedAt: Date;
21166
+ @MaxLength(10)
21167
+ _mj__UpdatedAt: Date;
20742
21168
 
20743
21169
  @Field()
20744
21170
  @MaxLength(200)
@@ -20916,12 +21342,12 @@ export class CommunicationProviderMessageType_ {
20916
21342
  AdditionalAttributes?: string;
20917
21343
 
20918
21344
  @Field()
20919
- @MaxLength(8)
20920
- CreatedAt: Date;
21345
+ @MaxLength(10)
21346
+ _mj__CreatedAt: Date;
20921
21347
 
20922
21348
  @Field()
20923
- @MaxLength(8)
20924
- UpdatedAt: Date;
21349
+ @MaxLength(10)
21350
+ _mj__UpdatedAt: Date;
20925
21351
 
20926
21352
  @Field()
20927
21353
  @MaxLength(510)
@@ -21063,6 +21489,12 @@ export class CommunicationProviderMessageTypeResolver extends ResolverBase {
21063
21489
  return this.UpdateRecord('Communication Provider Message Types', input, dataSource, userPayload, pubSub);
21064
21490
  }
21065
21491
 
21492
+ @Mutation(() => CommunicationProviderMessageType_)
21493
+ async DeleteCommunicationProviderMessageType(@Arg('ID', () => Int) ID: number, @Arg('options___', () => DeleteOptionsInput) options: DeleteOptionsInput, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
21494
+ const key = new CompositeKey([{FieldName: 'ID', Value: ID}]);
21495
+ return this.DeleteRecord('Communication Provider Message Types', key, options, dataSource, userPayload, pubSub);
21496
+ }
21497
+
21066
21498
  }
21067
21499
 
21068
21500
  //****************************************************************************
@@ -21101,12 +21533,12 @@ export class CommunicationLog_ {
21101
21533
  ErrorMessage?: string;
21102
21534
 
21103
21535
  @Field()
21104
- @MaxLength(8)
21105
- CreatedAt: Date;
21536
+ @MaxLength(10)
21537
+ _mj__CreatedAt: Date;
21106
21538
 
21107
21539
  @Field()
21108
- @MaxLength(8)
21109
- UpdatedAt: Date;
21540
+ @MaxLength(10)
21541
+ _mj__UpdatedAt: Date;
21110
21542
 
21111
21543
  @Field()
21112
21544
  @MaxLength(510)
@@ -21282,12 +21714,12 @@ export class CommunicationBaseMessageType_ {
21282
21714
  MaxBytes?: number;
21283
21715
 
21284
21716
  @Field()
21285
- @MaxLength(8)
21286
- CreatedAt: Date;
21717
+ @MaxLength(10)
21718
+ _mj__CreatedAt: Date;
21287
21719
 
21288
21720
  @Field()
21289
- @MaxLength(8)
21290
- UpdatedAt: Date;
21721
+ @MaxLength(10)
21722
+ _mj__UpdatedAt: Date;
21291
21723
 
21292
21724
  @Field(() => [mj_core_schema_server_object_types.CommunicationProviderMessageType_])
21293
21725
  CommunicationProviderMessageTypesArray: mj_core_schema_server_object_types.CommunicationProviderMessageType_[]; // Link to CommunicationProviderMessageTypes
@@ -21470,12 +21902,12 @@ export class Template_ {
21470
21902
  IsActive: boolean;
21471
21903
 
21472
21904
  @Field()
21473
- @MaxLength(8)
21474
- CreatedAt: Date;
21905
+ @MaxLength(10)
21906
+ _mj__CreatedAt: Date;
21475
21907
 
21476
21908
  @Field()
21477
- @MaxLength(8)
21478
- UpdatedAt: Date;
21909
+ @MaxLength(10)
21910
+ _mj__UpdatedAt: Date;
21479
21911
 
21480
21912
  @Field({nullable: true})
21481
21913
  @MaxLength(510)
@@ -21670,12 +22102,12 @@ export class TemplateCategory_ {
21670
22102
  UserID: number;
21671
22103
 
21672
22104
  @Field()
21673
- @MaxLength(8)
21674
- CreatedAt: Date;
22105
+ @MaxLength(10)
22106
+ _mj__CreatedAt: Date;
21675
22107
 
21676
22108
  @Field()
21677
- @MaxLength(8)
21678
- UpdatedAt: Date;
22109
+ @MaxLength(10)
22110
+ _mj__UpdatedAt: Date;
21679
22111
 
21680
22112
  @Field({nullable: true})
21681
22113
  @MaxLength(510)
@@ -21848,12 +22280,12 @@ export class TemplateContent_ {
21848
22280
  IsActive: boolean;
21849
22281
 
21850
22282
  @Field()
21851
- @MaxLength(8)
21852
- CreatedAt: Date;
22283
+ @MaxLength(10)
22284
+ _mj__CreatedAt: Date;
21853
22285
 
21854
22286
  @Field()
21855
- @MaxLength(8)
21856
- UpdatedAt: Date;
22287
+ @MaxLength(10)
22288
+ _mj__UpdatedAt: Date;
21857
22289
 
21858
22290
  @Field()
21859
22291
  @MaxLength(510)
@@ -22022,12 +22454,12 @@ export class TemplateParam_ {
22022
22454
  RecordID?: string;
22023
22455
 
22024
22456
  @Field()
22025
- @MaxLength(8)
22026
- CreatedAt: Date;
22457
+ @MaxLength(10)
22458
+ _mj__CreatedAt: Date;
22027
22459
 
22028
22460
  @Field()
22029
- @MaxLength(8)
22030
- UpdatedAt: Date;
22461
+ @MaxLength(10)
22462
+ _mj__UpdatedAt: Date;
22031
22463
 
22032
22464
  @Field()
22033
22465
  @MaxLength(510)
@@ -22194,12 +22626,12 @@ export class TemplateContentType_ {
22194
22626
  Description?: string;
22195
22627
 
22196
22628
  @Field()
22197
- @MaxLength(8)
22198
- CreatedAt: Date;
22629
+ @MaxLength(10)
22630
+ _mj__CreatedAt: Date;
22199
22631
 
22200
22632
  @Field()
22201
- @MaxLength(8)
22202
- UpdatedAt: Date;
22633
+ @MaxLength(10)
22634
+ _mj__UpdatedAt: Date;
22203
22635
 
22204
22636
  @Field(() => [mj_core_schema_server_object_types.TemplateContent_])
22205
22637
  TemplateContentsArray: mj_core_schema_server_object_types.TemplateContent_[]; // Link to TemplateContents
@@ -22334,13 +22766,13 @@ export class Recommendation_ {
22334
22766
  @Field({description: 'The record ID of the source entity'})
22335
22767
  SourceEntityRecordID: string;
22336
22768
 
22337
- @Field({nullable: true})
22338
- @MaxLength(8)
22339
- CreatedAt?: Date;
22769
+ @Field()
22770
+ @MaxLength(10)
22771
+ _mj__CreatedAt: Date;
22340
22772
 
22341
- @Field({nullable: true})
22342
- @MaxLength(8)
22343
- UpdatedAt?: Date;
22773
+ @Field()
22774
+ @MaxLength(10)
22775
+ _mj__UpdatedAt: Date;
22344
22776
 
22345
22777
  @Field()
22346
22778
  @MaxLength(510)
@@ -22483,13 +22915,13 @@ export class RecommendationProvider_ {
22483
22915
  @Field({nullable: true})
22484
22916
  Description?: string;
22485
22917
 
22486
- @Field({nullable: true})
22487
- @MaxLength(8)
22488
- CreatedAt?: Date;
22918
+ @Field()
22919
+ @MaxLength(10)
22920
+ _mj__CreatedAt: Date;
22489
22921
 
22490
- @Field({nullable: true})
22491
- @MaxLength(8)
22492
- UpdatedAt?: Date;
22922
+ @Field()
22923
+ @MaxLength(10)
22924
+ _mj__UpdatedAt: Date;
22493
22925
 
22494
22926
  @Field(() => [mj_core_schema_server_object_types.RecommendationRun_])
22495
22927
  RecommendationRunsArray: mj_core_schema_server_object_types.RecommendationRun_[]; // Link to RecommendationRuns
@@ -22636,13 +23068,13 @@ export class RecommendationRun_ {
22636
23068
  @Field(() => Int)
22637
23069
  RunByUserID: number;
22638
23070
 
22639
- @Field({nullable: true})
22640
- @MaxLength(8)
22641
- CreatedAt?: Date;
23071
+ @Field()
23072
+ @MaxLength(10)
23073
+ _mj__CreatedAt: Date;
22642
23074
 
22643
- @Field({nullable: true})
22644
- @MaxLength(8)
22645
- UpdatedAt?: Date;
23075
+ @Field()
23076
+ @MaxLength(10)
23077
+ _mj__UpdatedAt: Date;
22646
23078
 
22647
23079
  @Field()
22648
23080
  @MaxLength(510)
@@ -22812,13 +23244,13 @@ export class RecommendationItem_ {
22812
23244
  @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.'})
22813
23245
  MatchProbability?: number;
22814
23246
 
22815
- @Field({nullable: true})
22816
- @MaxLength(8)
22817
- CreatedAt?: Date;
23247
+ @Field()
23248
+ @MaxLength(10)
23249
+ _mj__CreatedAt: Date;
22818
23250
 
22819
- @Field({nullable: true})
22820
- @MaxLength(8)
22821
- UpdatedAt?: Date;
23251
+ @Field()
23252
+ @MaxLength(10)
23253
+ _mj__UpdatedAt: Date;
22822
23254
 
22823
23255
  @Field()
22824
23256
  @MaxLength(510)
@@ -22959,12 +23391,12 @@ export class EntityCommunicationMessageType_ {
22959
23391
  IsActive: boolean;
22960
23392
 
22961
23393
  @Field()
22962
- @MaxLength(8)
22963
- CreatedAt: Date;
23394
+ @MaxLength(10)
23395
+ _mj__CreatedAt: Date;
22964
23396
 
22965
23397
  @Field()
22966
- @MaxLength(8)
22967
- UpdatedAt: Date;
23398
+ @MaxLength(10)
23399
+ _mj__UpdatedAt: Date;
22968
23400
 
22969
23401
  @Field()
22970
23402
  @MaxLength(510)
@@ -23115,12 +23547,12 @@ export class EntityCommunicationField_ {
23115
23547
  Priority: number;
23116
23548
 
23117
23549
  @Field()
23118
- @MaxLength(8)
23119
- CreatedAt: Date;
23550
+ @MaxLength(10)
23551
+ _mj__CreatedAt: Date;
23120
23552
 
23121
23553
  @Field()
23122
- @MaxLength(8)
23123
- UpdatedAt: Date;
23554
+ @MaxLength(10)
23555
+ _mj__UpdatedAt: Date;
23124
23556
 
23125
23557
  }
23126
23558
 
@@ -23231,4 +23663,623 @@ export class EntityCommunicationFieldResolver extends ResolverBase {
23231
23663
  return this.UpdateRecord('Entity Communication Fields', input, dataSource, userPayload, pubSub);
23232
23664
  }
23233
23665
 
23666
+ }
23667
+
23668
+ //****************************************************************************
23669
+ // ENTITY CLASS for Record Change Replay Runs
23670
+ //****************************************************************************
23671
+ @ObjectType({ description: 'Table to track the runs of replaying external record changes' })
23672
+ export class RecordChangeReplayRun_ {
23673
+ @Field(() => Int)
23674
+ ID: number;
23675
+
23676
+ @Field({description: 'Timestamp when the replay run started'})
23677
+ @MaxLength(8)
23678
+ StartedAt: Date;
23679
+
23680
+ @Field({nullable: true, description: 'Timestamp when the replay run ended'})
23681
+ @MaxLength(8)
23682
+ EndedAt?: Date;
23683
+
23684
+ @Field({description: 'Status of the replay run (Pending, In Progress, Complete, Error)'})
23685
+ @MaxLength(100)
23686
+ Status: string;
23687
+
23688
+ @Field(() => Int)
23689
+ UserID: number;
23690
+
23691
+ @Field()
23692
+ @MaxLength(10)
23693
+ _mj__CreatedAt: Date;
23694
+
23695
+ @Field()
23696
+ @MaxLength(10)
23697
+ _mj__UpdatedAt: Date;
23698
+
23699
+ @Field()
23700
+ @MaxLength(200)
23701
+ User: string;
23702
+
23703
+ @Field(() => [mj_core_schema_server_object_types.RecordChange_])
23704
+ RecordChangesArray: mj_core_schema_server_object_types.RecordChange_[]; // Link to RecordChanges
23705
+
23706
+ }
23707
+
23708
+ //****************************************************************************
23709
+ // INPUT TYPE for Record Change Replay Runs
23710
+ //****************************************************************************
23711
+ @InputType()
23712
+ export class CreateRecordChangeReplayRunInput {
23713
+ @Field()
23714
+ StartedAt: Date;
23715
+
23716
+ @Field({ nullable: true })
23717
+ EndedAt?: Date;
23718
+
23719
+ @Field()
23720
+ Status: string;
23721
+
23722
+ @Field(() => Int)
23723
+ UserID: number;
23724
+ }
23725
+
23726
+
23727
+ //****************************************************************************
23728
+ // INPUT TYPE for Record Change Replay Runs
23729
+ //****************************************************************************
23730
+ @InputType()
23731
+ export class UpdateRecordChangeReplayRunInput {
23732
+ @Field(() => Int)
23733
+ ID: number;
23734
+
23735
+ @Field()
23736
+ StartedAt: Date;
23737
+
23738
+ @Field({ nullable: true })
23739
+ EndedAt?: Date;
23740
+
23741
+ @Field()
23742
+ Status: string;
23743
+
23744
+ @Field(() => Int)
23745
+ UserID: number;
23746
+
23747
+ @Field(() => [KeyValuePairInput], { nullable: true })
23748
+ OldValues___?: KeyValuePairInput[];
23749
+ }
23750
+
23751
+ //****************************************************************************
23752
+ // RESOLVER for Record Change Replay Runs
23753
+ //****************************************************************************
23754
+ @ObjectType()
23755
+ export class RunRecordChangeReplayRunViewResult {
23756
+ @Field(() => [RecordChangeReplayRun_])
23757
+ Results: RecordChangeReplayRun_[];
23758
+
23759
+ @Field(() => Int, {nullable: true})
23760
+ UserViewRunID?: number;
23761
+
23762
+ @Field(() => Int, {nullable: true})
23763
+ RowCount: number;
23764
+
23765
+ @Field(() => Int, {nullable: true})
23766
+ TotalRowCount: number;
23767
+
23768
+ @Field(() => Int, {nullable: true})
23769
+ ExecutionTime: number;
23770
+
23771
+ @Field({nullable: true})
23772
+ ErrorMessage?: string;
23773
+
23774
+ @Field(() => Boolean, {nullable: false})
23775
+ Success: boolean;
23776
+ }
23777
+
23778
+ @Resolver(RecordChangeReplayRun_)
23779
+ export class RecordChangeReplayRunResolver extends ResolverBase {
23780
+ @Query(() => RunRecordChangeReplayRunViewResult)
23781
+ async RunRecordChangeReplayRunViewByID(@Arg('input', () => RunViewByIDInput) input: RunViewByIDInput, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
23782
+ return super.RunViewByIDGeneric(input, dataSource, userPayload, pubSub);
23783
+ }
23784
+
23785
+ @Query(() => RunRecordChangeReplayRunViewResult)
23786
+ async RunRecordChangeReplayRunViewByName(@Arg('input', () => RunViewByNameInput) input: RunViewByNameInput, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
23787
+ return super.RunViewByNameGeneric(input, dataSource, userPayload, pubSub);
23788
+ }
23789
+
23790
+ @Query(() => RunRecordChangeReplayRunViewResult)
23791
+ async RunRecordChangeReplayRunDynamicView(@Arg('input', () => RunDynamicViewInput) input: RunDynamicViewInput, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
23792
+ input.EntityName = 'Record Change Replay Runs';
23793
+ return super.RunDynamicViewGeneric(input, dataSource, userPayload, pubSub);
23794
+ }
23795
+ @Query(() => RecordChangeReplayRun_, { nullable: true })
23796
+ async RecordChangeReplayRun(@Arg('ID', () => Int) ID: number, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine): Promise<RecordChangeReplayRun_ | null> {
23797
+ this.CheckUserReadPermissions('Record Change Replay Runs', userPayload);
23798
+ const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwRecordChangeReplayRuns] WHERE [ID]=${ID} ` + this.getRowLevelSecurityWhereClause('Record Change Replay Runs', userPayload, EntityPermissionType.Read, 'AND');
23799
+ const result = this.MapFieldNamesToCodeNames('Record Change Replay Runs', await dataSource.query(sSQL).then((r) => r && r.length > 0 ? r[0] : {}))
23800
+ return result;
23801
+ }
23802
+
23803
+ @FieldResolver(() => [mj_core_schema_server_object_types.RecordChange_])
23804
+ async RecordChangesArray(@Root() recordchangereplayrun_: RecordChangeReplayRun_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
23805
+ this.CheckUserReadPermissions('Record Changes', userPayload);
23806
+ const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwRecordChanges] WHERE [ReplayRunID]=${recordchangereplayrun_.ID} ` + this.getRowLevelSecurityWhereClause('Record Changes', userPayload, EntityPermissionType.Read, 'AND');
23807
+ const result = this.ArrayMapFieldNamesToCodeNames('Record Changes', await dataSource.query(sSQL));
23808
+ return result;
23809
+ }
23810
+
23811
+ @Mutation(() => RecordChangeReplayRun_)
23812
+ async CreateRecordChangeReplayRun(
23813
+ @Arg('input', () => CreateRecordChangeReplayRunInput) input: CreateRecordChangeReplayRunInput,
23814
+ @Ctx() { dataSource, userPayload }: AppContext,
23815
+ @PubSub() pubSub: PubSubEngine
23816
+ ) {
23817
+ return this.CreateRecord('Record Change Replay Runs', input, dataSource, userPayload, pubSub)
23818
+ }
23819
+
23820
+ @Mutation(() => RecordChangeReplayRun_)
23821
+ async UpdateRecordChangeReplayRun(
23822
+ @Arg('input', () => UpdateRecordChangeReplayRunInput) input: UpdateRecordChangeReplayRunInput,
23823
+ @Ctx() { dataSource, userPayload }: AppContext,
23824
+ @PubSub() pubSub: PubSubEngine
23825
+ ) {
23826
+ return this.UpdateRecord('Record Change Replay Runs', input, dataSource, userPayload, pubSub);
23827
+ }
23828
+
23829
+ }
23830
+
23831
+ //****************************************************************************
23832
+ // ENTITY CLASS for Library Items
23833
+ //****************************************************************************
23834
+ @ObjectType({ description: 'Table to store individual library items' })
23835
+ export class LibraryItem_ {
23836
+ @Field(() => Int, {description: 'Primary key of the LibraryItem table.'})
23837
+ ID: number;
23838
+
23839
+ @Field()
23840
+ @MaxLength(510)
23841
+ Name: string;
23842
+
23843
+ @Field(() => Int)
23844
+ LibraryID: number;
23845
+
23846
+ @Field({description: 'Type of the library item for example Class, Interface, etc.'})
23847
+ @MaxLength(100)
23848
+ Type: string;
23849
+
23850
+ @Field()
23851
+ @MaxLength(10)
23852
+ _mj__CreatedAt: Date;
23853
+
23854
+ @Field()
23855
+ @MaxLength(10)
23856
+ _mj__UpdatedAt: Date;
23857
+
23858
+ @Field()
23859
+ @MaxLength(510)
23860
+ Library: string;
23861
+
23862
+ }
23863
+
23864
+ //****************************************************************************
23865
+ // INPUT TYPE for Library Items
23866
+ //****************************************************************************
23867
+ @InputType()
23868
+ export class CreateLibraryItemInput {
23869
+ @Field()
23870
+ Name: string;
23871
+
23872
+ @Field(() => Int)
23873
+ LibraryID: number;
23874
+
23875
+ @Field()
23876
+ Type: string;
23877
+ }
23878
+
23879
+
23880
+ //****************************************************************************
23881
+ // INPUT TYPE for Library Items
23882
+ //****************************************************************************
23883
+ @InputType()
23884
+ export class UpdateLibraryItemInput {
23885
+ @Field(() => Int)
23886
+ ID: number;
23887
+
23888
+ @Field()
23889
+ Name: string;
23890
+
23891
+ @Field(() => Int)
23892
+ LibraryID: number;
23893
+
23894
+ @Field()
23895
+ Type: string;
23896
+
23897
+ @Field(() => [KeyValuePairInput], { nullable: true })
23898
+ OldValues___?: KeyValuePairInput[];
23899
+ }
23900
+
23901
+ //****************************************************************************
23902
+ // RESOLVER for Library Items
23903
+ //****************************************************************************
23904
+ @ObjectType()
23905
+ export class RunLibraryItemViewResult {
23906
+ @Field(() => [LibraryItem_])
23907
+ Results: LibraryItem_[];
23908
+
23909
+ @Field(() => Int, {nullable: true})
23910
+ UserViewRunID?: number;
23911
+
23912
+ @Field(() => Int, {nullable: true})
23913
+ RowCount: number;
23914
+
23915
+ @Field(() => Int, {nullable: true})
23916
+ TotalRowCount: number;
23917
+
23918
+ @Field(() => Int, {nullable: true})
23919
+ ExecutionTime: number;
23920
+
23921
+ @Field({nullable: true})
23922
+ ErrorMessage?: string;
23923
+
23924
+ @Field(() => Boolean, {nullable: false})
23925
+ Success: boolean;
23926
+ }
23927
+
23928
+ @Resolver(LibraryItem_)
23929
+ export class LibraryItemResolver extends ResolverBase {
23930
+ @Query(() => RunLibraryItemViewResult)
23931
+ async RunLibraryItemViewByID(@Arg('input', () => RunViewByIDInput) input: RunViewByIDInput, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
23932
+ return super.RunViewByIDGeneric(input, dataSource, userPayload, pubSub);
23933
+ }
23934
+
23935
+ @Query(() => RunLibraryItemViewResult)
23936
+ async RunLibraryItemViewByName(@Arg('input', () => RunViewByNameInput) input: RunViewByNameInput, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
23937
+ return super.RunViewByNameGeneric(input, dataSource, userPayload, pubSub);
23938
+ }
23939
+
23940
+ @Query(() => RunLibraryItemViewResult)
23941
+ async RunLibraryItemDynamicView(@Arg('input', () => RunDynamicViewInput) input: RunDynamicViewInput, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
23942
+ input.EntityName = 'Library Items';
23943
+ return super.RunDynamicViewGeneric(input, dataSource, userPayload, pubSub);
23944
+ }
23945
+ @Query(() => LibraryItem_, { nullable: true })
23946
+ async LibraryItem(@Arg('ID', () => Int) ID: number, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine): Promise<LibraryItem_ | null> {
23947
+ this.CheckUserReadPermissions('Library Items', userPayload);
23948
+ const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwLibraryItems] WHERE [ID]=${ID} ` + this.getRowLevelSecurityWhereClause('Library Items', userPayload, EntityPermissionType.Read, 'AND');
23949
+ const result = this.MapFieldNamesToCodeNames('Library Items', await dataSource.query(sSQL).then((r) => r && r.length > 0 ? r[0] : {}))
23950
+ return result;
23951
+ }
23952
+
23953
+ @Mutation(() => LibraryItem_)
23954
+ async CreateLibraryItem(
23955
+ @Arg('input', () => CreateLibraryItemInput) input: CreateLibraryItemInput,
23956
+ @Ctx() { dataSource, userPayload }: AppContext,
23957
+ @PubSub() pubSub: PubSubEngine
23958
+ ) {
23959
+ return this.CreateRecord('Library Items', input, dataSource, userPayload, pubSub)
23960
+ }
23961
+
23962
+ @Mutation(() => LibraryItem_)
23963
+ async UpdateLibraryItem(
23964
+ @Arg('input', () => UpdateLibraryItemInput) input: UpdateLibraryItemInput,
23965
+ @Ctx() { dataSource, userPayload }: AppContext,
23966
+ @PubSub() pubSub: PubSubEngine
23967
+ ) {
23968
+ return this.UpdateRecord('Library Items', input, dataSource, userPayload, pubSub);
23969
+ }
23970
+
23971
+ }
23972
+
23973
+ //****************************************************************************
23974
+ // ENTITY CLASS for Entity Relationship Display Components
23975
+ //****************************************************************************
23976
+ @ObjectType({ description: 'This table stores a list of components that are available for displaying relationships in the MJ Explorer UI' })
23977
+ export class EntityRelationshipDisplayComponent_ {
23978
+ @Field(() => Int)
23979
+ ID: number;
23980
+
23981
+ @Field()
23982
+ @MaxLength(510)
23983
+ Name: string;
23984
+
23985
+ @Field({nullable: true})
23986
+ Description?: string;
23987
+
23988
+ @Field({description: 'The type of relationship the component displays. Valid values are "One to Many", "Many to Many", or "Both".'})
23989
+ @MaxLength(40)
23990
+ RelationshipType: string;
23991
+
23992
+ @Field()
23993
+ @MaxLength(10)
23994
+ _mj__CreatedAt: Date;
23995
+
23996
+ @Field()
23997
+ @MaxLength(10)
23998
+ _mj__UpdatedAt: Date;
23999
+
24000
+ @Field(() => [mj_core_schema_server_object_types.EntityRelationship_])
24001
+ EntityRelationshipsArray: mj_core_schema_server_object_types.EntityRelationship_[]; // Link to EntityRelationships
24002
+
24003
+ }
24004
+
24005
+ //****************************************************************************
24006
+ // INPUT TYPE for Entity Relationship Display Components
24007
+ //****************************************************************************
24008
+ @InputType()
24009
+ export class CreateEntityRelationshipDisplayComponentInput {
24010
+ @Field()
24011
+ Name: string;
24012
+
24013
+ @Field({ nullable: true })
24014
+ Description?: string;
24015
+
24016
+ @Field()
24017
+ RelationshipType: string;
24018
+ }
24019
+
24020
+
24021
+ //****************************************************************************
24022
+ // INPUT TYPE for Entity Relationship Display Components
24023
+ //****************************************************************************
24024
+ @InputType()
24025
+ export class UpdateEntityRelationshipDisplayComponentInput {
24026
+ @Field(() => Int)
24027
+ ID: number;
24028
+
24029
+ @Field()
24030
+ Name: string;
24031
+
24032
+ @Field({ nullable: true })
24033
+ Description?: string;
24034
+
24035
+ @Field()
24036
+ RelationshipType: string;
24037
+
24038
+ @Field(() => [KeyValuePairInput], { nullable: true })
24039
+ OldValues___?: KeyValuePairInput[];
24040
+ }
24041
+
24042
+ //****************************************************************************
24043
+ // RESOLVER for Entity Relationship Display Components
24044
+ //****************************************************************************
24045
+ @ObjectType()
24046
+ export class RunEntityRelationshipDisplayComponentViewResult {
24047
+ @Field(() => [EntityRelationshipDisplayComponent_])
24048
+ Results: EntityRelationshipDisplayComponent_[];
24049
+
24050
+ @Field(() => Int, {nullable: true})
24051
+ UserViewRunID?: number;
24052
+
24053
+ @Field(() => Int, {nullable: true})
24054
+ RowCount: number;
24055
+
24056
+ @Field(() => Int, {nullable: true})
24057
+ TotalRowCount: number;
24058
+
24059
+ @Field(() => Int, {nullable: true})
24060
+ ExecutionTime: number;
24061
+
24062
+ @Field({nullable: true})
24063
+ ErrorMessage?: string;
24064
+
24065
+ @Field(() => Boolean, {nullable: false})
24066
+ Success: boolean;
24067
+ }
24068
+
24069
+ @Resolver(EntityRelationshipDisplayComponent_)
24070
+ export class EntityRelationshipDisplayComponentResolver extends ResolverBase {
24071
+ @Query(() => RunEntityRelationshipDisplayComponentViewResult)
24072
+ async RunEntityRelationshipDisplayComponentViewByID(@Arg('input', () => RunViewByIDInput) input: RunViewByIDInput, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
24073
+ return super.RunViewByIDGeneric(input, dataSource, userPayload, pubSub);
24074
+ }
24075
+
24076
+ @Query(() => RunEntityRelationshipDisplayComponentViewResult)
24077
+ async RunEntityRelationshipDisplayComponentViewByName(@Arg('input', () => RunViewByNameInput) input: RunViewByNameInput, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
24078
+ return super.RunViewByNameGeneric(input, dataSource, userPayload, pubSub);
24079
+ }
24080
+
24081
+ @Query(() => RunEntityRelationshipDisplayComponentViewResult)
24082
+ async RunEntityRelationshipDisplayComponentDynamicView(@Arg('input', () => RunDynamicViewInput) input: RunDynamicViewInput, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
24083
+ input.EntityName = 'Entity Relationship Display Components';
24084
+ return super.RunDynamicViewGeneric(input, dataSource, userPayload, pubSub);
24085
+ }
24086
+ @Query(() => EntityRelationshipDisplayComponent_, { nullable: true })
24087
+ async EntityRelationshipDisplayComponent(@Arg('ID', () => Int) ID: number, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine): Promise<EntityRelationshipDisplayComponent_ | null> {
24088
+ this.CheckUserReadPermissions('Entity Relationship Display Components', userPayload);
24089
+ const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwEntityRelationshipDisplayComponents] WHERE [ID]=${ID} ` + this.getRowLevelSecurityWhereClause('Entity Relationship Display Components', userPayload, EntityPermissionType.Read, 'AND');
24090
+ const result = this.MapFieldNamesToCodeNames('Entity Relationship Display Components', await dataSource.query(sSQL).then((r) => r && r.length > 0 ? r[0] : {}))
24091
+ return result;
24092
+ }
24093
+
24094
+ @FieldResolver(() => [mj_core_schema_server_object_types.EntityRelationship_])
24095
+ async EntityRelationshipsArray(@Root() entityrelationshipdisplaycomponent_: EntityRelationshipDisplayComponent_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
24096
+ this.CheckUserReadPermissions('Entity Relationships', userPayload);
24097
+ const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwEntityRelationships] WHERE [DisplayComponentID]=${entityrelationshipdisplaycomponent_.ID} ` + this.getRowLevelSecurityWhereClause('Entity Relationships', userPayload, EntityPermissionType.Read, 'AND');
24098
+ const result = this.ArrayMapFieldNamesToCodeNames('Entity Relationships', await dataSource.query(sSQL));
24099
+ return result;
24100
+ }
24101
+
24102
+ @Mutation(() => EntityRelationshipDisplayComponent_)
24103
+ async CreateEntityRelationshipDisplayComponent(
24104
+ @Arg('input', () => CreateEntityRelationshipDisplayComponentInput) input: CreateEntityRelationshipDisplayComponentInput,
24105
+ @Ctx() { dataSource, userPayload }: AppContext,
24106
+ @PubSub() pubSub: PubSubEngine
24107
+ ) {
24108
+ return this.CreateRecord('Entity Relationship Display Components', input, dataSource, userPayload, pubSub)
24109
+ }
24110
+
24111
+ @Mutation(() => EntityRelationshipDisplayComponent_)
24112
+ async UpdateEntityRelationshipDisplayComponent(
24113
+ @Arg('input', () => UpdateEntityRelationshipDisplayComponentInput) input: UpdateEntityRelationshipDisplayComponentInput,
24114
+ @Ctx() { dataSource, userPayload }: AppContext,
24115
+ @PubSub() pubSub: PubSubEngine
24116
+ ) {
24117
+ return this.UpdateRecord('Entity Relationship Display Components', input, dataSource, userPayload, pubSub);
24118
+ }
24119
+
24120
+ }
24121
+
24122
+ //****************************************************************************
24123
+ // ENTITY CLASS for Entity Action Params
24124
+ //****************************************************************************
24125
+ @ObjectType({ description: 'Stores paramater mappings to enable Entity Actions to automatically invoke Actions' })
24126
+ export class EntityActionParam_ {
24127
+ @Field(() => Int)
24128
+ ID: number;
24129
+
24130
+ @Field(() => Int)
24131
+ EntityActionID: number;
24132
+
24133
+ @Field(() => Int)
24134
+ ActionParamID: number;
24135
+
24136
+ @Field({description: 'Type of the value, which can be Static, Entity Object, or Script.'})
24137
+ @MaxLength(40)
24138
+ ValueType: string;
24139
+
24140
+ @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.'})
24141
+ Value?: string;
24142
+
24143
+ @Field({nullable: true, description: 'Additional comments regarding the parameter.'})
24144
+ Comments?: string;
24145
+
24146
+ @Field()
24147
+ @MaxLength(10)
24148
+ _mj__CreatedAt: Date;
24149
+
24150
+ @Field()
24151
+ @MaxLength(10)
24152
+ _mj__UpdatedAt: Date;
24153
+
24154
+ @Field()
24155
+ @MaxLength(510)
24156
+ ActionParam: string;
24157
+
24158
+ }
24159
+
24160
+ //****************************************************************************
24161
+ // INPUT TYPE for Entity Action Params
24162
+ //****************************************************************************
24163
+ @InputType()
24164
+ export class CreateEntityActionParamInput {
24165
+ @Field(() => Int)
24166
+ EntityActionID: number;
24167
+
24168
+ @Field(() => Int)
24169
+ ActionParamID: number;
24170
+
24171
+ @Field()
24172
+ ValueType: string;
24173
+
24174
+ @Field({ nullable: true })
24175
+ Value?: string;
24176
+
24177
+ @Field({ nullable: true })
24178
+ Comments?: string;
24179
+ }
24180
+
24181
+
24182
+ //****************************************************************************
24183
+ // INPUT TYPE for Entity Action Params
24184
+ //****************************************************************************
24185
+ @InputType()
24186
+ export class UpdateEntityActionParamInput {
24187
+ @Field(() => Int)
24188
+ ID: number;
24189
+
24190
+ @Field(() => Int)
24191
+ EntityActionID: number;
24192
+
24193
+ @Field(() => Int)
24194
+ ActionParamID: number;
24195
+
24196
+ @Field()
24197
+ ValueType: string;
24198
+
24199
+ @Field({ nullable: true })
24200
+ Value?: string;
24201
+
24202
+ @Field({ nullable: true })
24203
+ Comments?: string;
24204
+
24205
+ @Field(() => [KeyValuePairInput], { nullable: true })
24206
+ OldValues___?: KeyValuePairInput[];
24207
+ }
24208
+
24209
+ //****************************************************************************
24210
+ // RESOLVER for Entity Action Params
24211
+ //****************************************************************************
24212
+ @ObjectType()
24213
+ export class RunEntityActionParamViewResult {
24214
+ @Field(() => [EntityActionParam_])
24215
+ Results: EntityActionParam_[];
24216
+
24217
+ @Field(() => Int, {nullable: true})
24218
+ UserViewRunID?: number;
24219
+
24220
+ @Field(() => Int, {nullable: true})
24221
+ RowCount: number;
24222
+
24223
+ @Field(() => Int, {nullable: true})
24224
+ TotalRowCount: number;
24225
+
24226
+ @Field(() => Int, {nullable: true})
24227
+ ExecutionTime: number;
24228
+
24229
+ @Field({nullable: true})
24230
+ ErrorMessage?: string;
24231
+
24232
+ @Field(() => Boolean, {nullable: false})
24233
+ Success: boolean;
24234
+ }
24235
+
24236
+ @Resolver(EntityActionParam_)
24237
+ export class EntityActionParamResolver extends ResolverBase {
24238
+ @Query(() => RunEntityActionParamViewResult)
24239
+ async RunEntityActionParamViewByID(@Arg('input', () => RunViewByIDInput) input: RunViewByIDInput, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
24240
+ return super.RunViewByIDGeneric(input, dataSource, userPayload, pubSub);
24241
+ }
24242
+
24243
+ @Query(() => RunEntityActionParamViewResult)
24244
+ async RunEntityActionParamViewByName(@Arg('input', () => RunViewByNameInput) input: RunViewByNameInput, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
24245
+ return super.RunViewByNameGeneric(input, dataSource, userPayload, pubSub);
24246
+ }
24247
+
24248
+ @Query(() => RunEntityActionParamViewResult)
24249
+ async RunEntityActionParamDynamicView(@Arg('input', () => RunDynamicViewInput) input: RunDynamicViewInput, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
24250
+ input.EntityName = 'Entity Action Params';
24251
+ return super.RunDynamicViewGeneric(input, dataSource, userPayload, pubSub);
24252
+ }
24253
+ @Query(() => EntityActionParam_, { nullable: true })
24254
+ async EntityActionParam(@Arg('ID', () => Int) ID: number, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine): Promise<EntityActionParam_ | null> {
24255
+ this.CheckUserReadPermissions('Entity Action Params', userPayload);
24256
+ const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwEntityActionParams] WHERE [ID]=${ID} ` + this.getRowLevelSecurityWhereClause('Entity Action Params', userPayload, EntityPermissionType.Read, 'AND');
24257
+ const result = this.MapFieldNamesToCodeNames('Entity Action Params', await dataSource.query(sSQL).then((r) => r && r.length > 0 ? r[0] : {}))
24258
+ return result;
24259
+ }
24260
+
24261
+ @Mutation(() => EntityActionParam_)
24262
+ async CreateEntityActionParam(
24263
+ @Arg('input', () => CreateEntityActionParamInput) input: CreateEntityActionParamInput,
24264
+ @Ctx() { dataSource, userPayload }: AppContext,
24265
+ @PubSub() pubSub: PubSubEngine
24266
+ ) {
24267
+ return this.CreateRecord('Entity Action Params', input, dataSource, userPayload, pubSub)
24268
+ }
24269
+
24270
+ @Mutation(() => EntityActionParam_)
24271
+ async UpdateEntityActionParam(
24272
+ @Arg('input', () => UpdateEntityActionParamInput) input: UpdateEntityActionParamInput,
24273
+ @Ctx() { dataSource, userPayload }: AppContext,
24274
+ @PubSub() pubSub: PubSubEngine
24275
+ ) {
24276
+ return this.UpdateRecord('Entity Action Params', input, dataSource, userPayload, pubSub);
24277
+ }
24278
+
24279
+ @Mutation(() => EntityActionParam_)
24280
+ async DeleteEntityActionParam(@Arg('ID', () => Int) ID: number, @Arg('options___', () => DeleteOptionsInput) options: DeleteOptionsInput, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
24281
+ const key = new CompositeKey([{FieldName: 'ID', Value: ID}]);
24282
+ return this.DeleteRecord('Entity Action Params', key, options, dataSource, userPayload, pubSub);
24283
+ }
24284
+
23234
24285
  }