@memberjunction/server 2.2.1 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/generated/generated.d.ts +443 -208
- package/dist/generated/generated.d.ts.map +1 -1
- package/dist/generated/generated.js +1834 -416
- package/dist/generated/generated.js.map +1 -1
- package/dist/generic/ResolverBase.js +3 -3
- package/dist/generic/ResolverBase.js.map +1 -1
- package/package.json +22 -22
- package/src/generated/generated.ts +1108 -210
- package/src/generic/ResolverBase.ts +10 -10
|
@@ -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: 8/
|
|
5
|
+
* GENERATED: 8/15/2024, 9:22:25 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.js';
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
import { ScheduledActionEntity, ScheduledActionParamEntity, ExplorerNavigationItemEntity, flyway_schema_historyEntity, CompanyEntity, EmployeeEntity, UserFavoriteEntity, EmployeeCompanyIntegrationEntity, EmployeeRoleEntity, EmployeeSkillEntity, RoleEntity, SkillEntity, IntegrationURLFormatEntity, IntegrationEntity, CompanyIntegrationEntity, EntityFieldEntity, EntityEntity, UserEntity, EntityRelationshipEntity, UserRecordLogEntity, UserViewEntity, CompanyIntegrationRunEntity, CompanyIntegrationRunDetailEntity, ErrorLogEntity, ApplicationEntity, ApplicationEntityEntity, EntityPermissionEntity, UserApplicationEntityEntity, UserApplicationEntity, CompanyIntegrationRunAPILogEntity, ListEntity, ListDetailEntity, UserViewRunEntity, UserViewRunDetailEntity, WorkflowRunEntity, WorkflowEntity, WorkflowEngineEntity, RecordChangeEntity, UserRoleEntity, RowLevelSecurityFilterEntity, AuditLogEntity, AuthorizationEntity, AuthorizationRoleEntity, AuditLogTypeEntity, EntityFieldValueEntity, AIModelEntity, AIActionEntity, AIModelActionEntity, EntityAIActionEntity, AIModelTypeEntity, QueueTypeEntity, QueueEntity, QueueTaskEntity, DashboardEntity, OutputTriggerTypeEntity, OutputFormatTypeEntity, OutputDeliveryTypeEntity, ReportEntity, ReportSnapshotEntity, ResourceTypeEntity, TagEntity, TaggedItemEntity, WorkspaceEntity, WorkspaceItemEntity, DatasetEntity, DatasetItemEntity, ConversationDetailEntity, ConversationEntity, UserNotificationEntity, SchemaInfoEntity, CompanyIntegrationRecordMapEntity, RecordMergeLogEntity, RecordMergeDeletionLogEntity, QueryFieldEntity, QueryCategoryEntity, QueryEntity, QueryPermissionEntity, VectorIndexEntity, EntityDocumentTypeEntity, EntityDocumentRunEntity, VectorDatabaseEntity, EntityRecordDocumentEntity, EntityDocumentEntity, DataContextItemEntity, DataContextEntity, UserViewCategoryEntity, DashboardCategoryEntity, ReportCategoryEntity, FileStorageProviderEntity, FileEntity, FileCategoryEntity, FileEntityRecordLinkEntity, VersionInstallationEntity, DuplicateRunDetailMatchEntity, EntityDocumentSettingEntity, EntitySettingEntity, DuplicateRunEntity, DuplicateRunDetailEntity, ApplicationSettingEntity, ActionCategoryEntity, EntityActionEntity, EntityActionInvocationEntity, ActionAuthorizationEntity, EntityActionInvocationTypeEntity, ActionEntity, EntityActionFilterEntity, ActionFilterEntity, ActionContextTypeEntity, ActionResultCodeEntity, ActionContextEntity, ActionExecutionLogEntity, ActionParamEntity, ActionLibraryEntity, LibraryEntity, ListCategoryEntity, CommunicationProviderEntity, CommunicationRunEntity, CommunicationProviderMessageTypeEntity, CommunicationLogEntity, CommunicationBaseMessageTypeEntity, TemplateEntity, TemplateCategoryEntity, TemplateContentEntity, TemplateParamEntity, TemplateContentTypeEntity, RecommendationEntity, RecommendationProviderEntity, RecommendationRunEntity, RecommendationItemEntity, EntityCommunicationMessageTypeEntity, EntityCommunicationFieldEntity, RecordChangeReplayRunEntity, LibraryItemEntity, EntityRelationshipDisplayComponentEntity, EntityActionParamEntity } from '@memberjunction/core-entities';
|
|
23
|
+
import { ScheduledActionEntity, ScheduledActionParamEntity, ExplorerNavigationItemEntity, flyway_schema_historyEntity, AIPromptEntity, AIResultCacheEntity, AIPromptCategoryEntity, AIPromptTypeEntity, CompanyEntity, EmployeeEntity, UserFavoriteEntity, EmployeeCompanyIntegrationEntity, EmployeeRoleEntity, EmployeeSkillEntity, RoleEntity, SkillEntity, IntegrationURLFormatEntity, IntegrationEntity, CompanyIntegrationEntity, EntityFieldEntity, EntityEntity, UserEntity, EntityRelationshipEntity, UserRecordLogEntity, UserViewEntity, CompanyIntegrationRunEntity, CompanyIntegrationRunDetailEntity, ErrorLogEntity, ApplicationEntity, ApplicationEntityEntity, EntityPermissionEntity, UserApplicationEntityEntity, UserApplicationEntity, CompanyIntegrationRunAPILogEntity, ListEntity, ListDetailEntity, UserViewRunEntity, UserViewRunDetailEntity, WorkflowRunEntity, WorkflowEntity, WorkflowEngineEntity, RecordChangeEntity, UserRoleEntity, RowLevelSecurityFilterEntity, AuditLogEntity, AuthorizationEntity, AuthorizationRoleEntity, AuditLogTypeEntity, EntityFieldValueEntity, AIModelEntity, AIActionEntity, AIModelActionEntity, EntityAIActionEntity, AIModelTypeEntity, QueueTypeEntity, QueueEntity, QueueTaskEntity, DashboardEntity, OutputTriggerTypeEntity, OutputFormatTypeEntity, OutputDeliveryTypeEntity, ReportEntity, ReportSnapshotEntity, ResourceTypeEntity, TagEntity, TaggedItemEntity, WorkspaceEntity, WorkspaceItemEntity, DatasetEntity, DatasetItemEntity, ConversationDetailEntity, ConversationEntity, UserNotificationEntity, SchemaInfoEntity, CompanyIntegrationRecordMapEntity, RecordMergeLogEntity, RecordMergeDeletionLogEntity, QueryFieldEntity, QueryCategoryEntity, QueryEntity, QueryPermissionEntity, VectorIndexEntity, EntityDocumentTypeEntity, EntityDocumentRunEntity, VectorDatabaseEntity, EntityRecordDocumentEntity, EntityDocumentEntity, DataContextItemEntity, DataContextEntity, UserViewCategoryEntity, DashboardCategoryEntity, ReportCategoryEntity, FileStorageProviderEntity, FileEntity, FileCategoryEntity, FileEntityRecordLinkEntity, VersionInstallationEntity, DuplicateRunDetailMatchEntity, EntityDocumentSettingEntity, EntitySettingEntity, DuplicateRunEntity, DuplicateRunDetailEntity, ApplicationSettingEntity, ActionCategoryEntity, EntityActionEntity, EntityActionInvocationEntity, ActionAuthorizationEntity, EntityActionInvocationTypeEntity, ActionEntity, EntityActionFilterEntity, ActionFilterEntity, ActionContextTypeEntity, ActionResultCodeEntity, ActionContextEntity, ActionExecutionLogEntity, ActionParamEntity, ActionLibraryEntity, LibraryEntity, ListCategoryEntity, CommunicationProviderEntity, CommunicationRunEntity, CommunicationProviderMessageTypeEntity, CommunicationLogEntity, CommunicationBaseMessageTypeEntity, TemplateEntity, TemplateCategoryEntity, TemplateContentEntity, TemplateParamEntity, TemplateContentTypeEntity, RecommendationEntity, RecommendationProviderEntity, RecommendationRunEntity, RecommendationItemEntity, EntityCommunicationMessageTypeEntity, EntityCommunicationFieldEntity, RecordChangeReplayRunEntity, LibraryItemEntity, EntityRelationshipDisplayComponentEntity, EntityActionParamEntity } from '@memberjunction/core-entities';
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
//****************************************************************************
|
|
@@ -252,7 +252,7 @@ export class ScheduledActionResolver extends ResolverBase {
|
|
|
252
252
|
}
|
|
253
253
|
|
|
254
254
|
@FieldResolver(() => [ScheduledActionParam_])
|
|
255
|
-
async
|
|
255
|
+
async ScheduledActionParams_ScheduledActionIDArray(@Root() scheduledaction_: ScheduledAction_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
256
256
|
this.CheckUserReadPermissions('Scheduled Action Params', userPayload);
|
|
257
257
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwScheduledActionParams] WHERE [ScheduledActionID]='${scheduledaction_.ID}' ` + this.getRowLevelSecurityWhereClause('Scheduled Action Params', userPayload, EntityPermissionType.Read, 'AND');
|
|
258
258
|
const result = this.ArrayMapFieldNamesToCodeNames('Scheduled Action Params', await dataSource.query(sSQL));
|
|
@@ -862,6 +862,731 @@ export class flyway_schema_historyResolver extends ResolverBase {
|
|
|
862
862
|
|
|
863
863
|
}
|
|
864
864
|
|
|
865
|
+
//****************************************************************************
|
|
866
|
+
// ENTITY CLASS for AI Prompts
|
|
867
|
+
//****************************************************************************
|
|
868
|
+
@ObjectType({ description: 'Stores AI prompts, including references to categories, types, and templates.' })
|
|
869
|
+
export class AIPrompt_ {
|
|
870
|
+
@Field()
|
|
871
|
+
@MaxLength(16)
|
|
872
|
+
ID: string;
|
|
873
|
+
|
|
874
|
+
@Field()
|
|
875
|
+
@MaxLength(510)
|
|
876
|
+
Name: string;
|
|
877
|
+
|
|
878
|
+
@Field({nullable: true})
|
|
879
|
+
Description?: string;
|
|
880
|
+
|
|
881
|
+
@Field({description: 'Reference to the template used for the prompt.'})
|
|
882
|
+
@MaxLength(16)
|
|
883
|
+
TemplateID: string;
|
|
884
|
+
|
|
885
|
+
@Field({nullable: true, description: 'Reference to the category the prompt belongs to.'})
|
|
886
|
+
@MaxLength(16)
|
|
887
|
+
CategoryID?: string;
|
|
888
|
+
|
|
889
|
+
@Field({description: 'Reference to the type of the prompt.'})
|
|
890
|
+
@MaxLength(16)
|
|
891
|
+
TypeID: string;
|
|
892
|
+
|
|
893
|
+
@Field()
|
|
894
|
+
@MaxLength(100)
|
|
895
|
+
Status: string;
|
|
896
|
+
|
|
897
|
+
@Field(() => Boolean, {description: 'Indicates whether the results of the prompt should be cached.'})
|
|
898
|
+
CacheResults: boolean;
|
|
899
|
+
|
|
900
|
+
@Field(() => Float, {description: 'Number of hours the cache is valid for; can be fractional or 0 if the cache never expires.'})
|
|
901
|
+
CacheExpiration: number;
|
|
902
|
+
|
|
903
|
+
@Field()
|
|
904
|
+
@MaxLength(10)
|
|
905
|
+
_mj__CreatedAt: Date;
|
|
906
|
+
|
|
907
|
+
@Field()
|
|
908
|
+
@MaxLength(10)
|
|
909
|
+
_mj__UpdatedAt: Date;
|
|
910
|
+
|
|
911
|
+
@Field()
|
|
912
|
+
@MaxLength(510)
|
|
913
|
+
Template: string;
|
|
914
|
+
|
|
915
|
+
@Field({nullable: true})
|
|
916
|
+
@MaxLength(510)
|
|
917
|
+
Category?: string;
|
|
918
|
+
|
|
919
|
+
@Field()
|
|
920
|
+
@MaxLength(510)
|
|
921
|
+
Type: string;
|
|
922
|
+
|
|
923
|
+
@Field(() => [AIResultCache_])
|
|
924
|
+
AIResultCacheArray: AIResultCache_[]; // Link to AIResultCache
|
|
925
|
+
|
|
926
|
+
}
|
|
927
|
+
|
|
928
|
+
//****************************************************************************
|
|
929
|
+
// INPUT TYPE for AI Prompts
|
|
930
|
+
//****************************************************************************
|
|
931
|
+
@InputType()
|
|
932
|
+
export class CreateAIPromptInput {
|
|
933
|
+
@Field()
|
|
934
|
+
Name: string;
|
|
935
|
+
|
|
936
|
+
@Field({ nullable: true })
|
|
937
|
+
Description?: string;
|
|
938
|
+
|
|
939
|
+
@Field()
|
|
940
|
+
TemplateID: string;
|
|
941
|
+
|
|
942
|
+
@Field({ nullable: true })
|
|
943
|
+
CategoryID?: string;
|
|
944
|
+
|
|
945
|
+
@Field()
|
|
946
|
+
TypeID: string;
|
|
947
|
+
|
|
948
|
+
@Field()
|
|
949
|
+
Status: string;
|
|
950
|
+
|
|
951
|
+
@Field(() => Boolean)
|
|
952
|
+
CacheResults: boolean;
|
|
953
|
+
|
|
954
|
+
@Field(() => Float)
|
|
955
|
+
CacheExpiration: number;
|
|
956
|
+
}
|
|
957
|
+
|
|
958
|
+
|
|
959
|
+
//****************************************************************************
|
|
960
|
+
// INPUT TYPE for AI Prompts
|
|
961
|
+
//****************************************************************************
|
|
962
|
+
@InputType()
|
|
963
|
+
export class UpdateAIPromptInput {
|
|
964
|
+
@Field()
|
|
965
|
+
ID: string;
|
|
966
|
+
|
|
967
|
+
@Field()
|
|
968
|
+
Name: string;
|
|
969
|
+
|
|
970
|
+
@Field({ nullable: true })
|
|
971
|
+
Description?: string;
|
|
972
|
+
|
|
973
|
+
@Field()
|
|
974
|
+
TemplateID: string;
|
|
975
|
+
|
|
976
|
+
@Field({ nullable: true })
|
|
977
|
+
CategoryID?: string;
|
|
978
|
+
|
|
979
|
+
@Field()
|
|
980
|
+
TypeID: string;
|
|
981
|
+
|
|
982
|
+
@Field()
|
|
983
|
+
Status: string;
|
|
984
|
+
|
|
985
|
+
@Field(() => Boolean)
|
|
986
|
+
CacheResults: boolean;
|
|
987
|
+
|
|
988
|
+
@Field(() => Float)
|
|
989
|
+
CacheExpiration: number;
|
|
990
|
+
|
|
991
|
+
@Field(() => [KeyValuePairInput], { nullable: true })
|
|
992
|
+
OldValues___?: KeyValuePairInput[];
|
|
993
|
+
}
|
|
994
|
+
|
|
995
|
+
//****************************************************************************
|
|
996
|
+
// RESOLVER for AI Prompts
|
|
997
|
+
//****************************************************************************
|
|
998
|
+
@ObjectType()
|
|
999
|
+
export class RunAIPromptViewResult {
|
|
1000
|
+
@Field(() => [AIPrompt_])
|
|
1001
|
+
Results: AIPrompt_[];
|
|
1002
|
+
|
|
1003
|
+
@Field(() => String, {nullable: true})
|
|
1004
|
+
UserViewRunID?: string;
|
|
1005
|
+
|
|
1006
|
+
@Field(() => Int, {nullable: true})
|
|
1007
|
+
RowCount: number;
|
|
1008
|
+
|
|
1009
|
+
@Field(() => Int, {nullable: true})
|
|
1010
|
+
TotalRowCount: number;
|
|
1011
|
+
|
|
1012
|
+
@Field(() => Int, {nullable: true})
|
|
1013
|
+
ExecutionTime: number;
|
|
1014
|
+
|
|
1015
|
+
@Field({nullable: true})
|
|
1016
|
+
ErrorMessage?: string;
|
|
1017
|
+
|
|
1018
|
+
@Field(() => Boolean, {nullable: false})
|
|
1019
|
+
Success: boolean;
|
|
1020
|
+
}
|
|
1021
|
+
|
|
1022
|
+
@Resolver(AIPrompt_)
|
|
1023
|
+
export class AIPromptResolver extends ResolverBase {
|
|
1024
|
+
@Query(() => RunAIPromptViewResult)
|
|
1025
|
+
async RunAIPromptViewByID(@Arg('input', () => RunViewByIDInput) input: RunViewByIDInput, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
1026
|
+
return super.RunViewByIDGeneric(input, dataSource, userPayload, pubSub);
|
|
1027
|
+
}
|
|
1028
|
+
|
|
1029
|
+
@Query(() => RunAIPromptViewResult)
|
|
1030
|
+
async RunAIPromptViewByName(@Arg('input', () => RunViewByNameInput) input: RunViewByNameInput, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
1031
|
+
return super.RunViewByNameGeneric(input, dataSource, userPayload, pubSub);
|
|
1032
|
+
}
|
|
1033
|
+
|
|
1034
|
+
@Query(() => RunAIPromptViewResult)
|
|
1035
|
+
async RunAIPromptDynamicView(@Arg('input', () => RunDynamicViewInput) input: RunDynamicViewInput, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
1036
|
+
input.EntityName = 'AI Prompts';
|
|
1037
|
+
return super.RunDynamicViewGeneric(input, dataSource, userPayload, pubSub);
|
|
1038
|
+
}
|
|
1039
|
+
@Query(() => AIPrompt_, { nullable: true })
|
|
1040
|
+
async AIPrompt(@Arg('ID', () => String) ID: string, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine): Promise<AIPrompt_ | null> {
|
|
1041
|
+
this.CheckUserReadPermissions('AI Prompts', userPayload);
|
|
1042
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIPrompts] WHERE [ID]='${ID}' ` + this.getRowLevelSecurityWhereClause('AI Prompts', userPayload, EntityPermissionType.Read, 'AND');
|
|
1043
|
+
const result = this.MapFieldNamesToCodeNames('AI Prompts', await dataSource.query(sSQL).then((r) => r && r.length > 0 ? r[0] : {}))
|
|
1044
|
+
return result;
|
|
1045
|
+
}
|
|
1046
|
+
|
|
1047
|
+
@FieldResolver(() => [AIResultCache_])
|
|
1048
|
+
async AIResultCache_AIPromptIDArray(@Root() aiprompt_: AIPrompt_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
1049
|
+
this.CheckUserReadPermissions('AI Result Cache', userPayload);
|
|
1050
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIResultCaches] WHERE [AIPromptID]='${aiprompt_.ID}' ` + this.getRowLevelSecurityWhereClause('AI Result Cache', userPayload, EntityPermissionType.Read, 'AND');
|
|
1051
|
+
const result = this.ArrayMapFieldNamesToCodeNames('AI Result Cache', await dataSource.query(sSQL));
|
|
1052
|
+
return result;
|
|
1053
|
+
}
|
|
1054
|
+
|
|
1055
|
+
@Mutation(() => AIPrompt_)
|
|
1056
|
+
async CreateAIPrompt(
|
|
1057
|
+
@Arg('input', () => CreateAIPromptInput) input: CreateAIPromptInput,
|
|
1058
|
+
@Ctx() { dataSource, userPayload }: AppContext,
|
|
1059
|
+
@PubSub() pubSub: PubSubEngine
|
|
1060
|
+
) {
|
|
1061
|
+
return this.CreateRecord('AI Prompts', input, dataSource, userPayload, pubSub)
|
|
1062
|
+
}
|
|
1063
|
+
|
|
1064
|
+
@Mutation(() => AIPrompt_)
|
|
1065
|
+
async UpdateAIPrompt(
|
|
1066
|
+
@Arg('input', () => UpdateAIPromptInput) input: UpdateAIPromptInput,
|
|
1067
|
+
@Ctx() { dataSource, userPayload }: AppContext,
|
|
1068
|
+
@PubSub() pubSub: PubSubEngine
|
|
1069
|
+
) {
|
|
1070
|
+
return this.UpdateRecord('AI Prompts', input, dataSource, userPayload, pubSub);
|
|
1071
|
+
}
|
|
1072
|
+
|
|
1073
|
+
@Mutation(() => AIPrompt_)
|
|
1074
|
+
async DeleteAIPrompt(@Arg('ID', () => String) ID: string, @Arg('options___', () => DeleteOptionsInput) options: DeleteOptionsInput, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
1075
|
+
const key = new CompositeKey([{FieldName: 'ID', Value: ID}]);
|
|
1076
|
+
return this.DeleteRecord('AI Prompts', key, options, dataSource, userPayload, pubSub);
|
|
1077
|
+
}
|
|
1078
|
+
|
|
1079
|
+
}
|
|
1080
|
+
|
|
1081
|
+
//****************************************************************************
|
|
1082
|
+
// ENTITY CLASS for AI Result Cache
|
|
1083
|
+
//****************************************************************************
|
|
1084
|
+
@ObjectType({ description: 'Stores cached results of AI prompts, including multiple runs for history and tracking purposes.' })
|
|
1085
|
+
export class AIResultCache_ {
|
|
1086
|
+
@Field()
|
|
1087
|
+
@MaxLength(16)
|
|
1088
|
+
ID: string;
|
|
1089
|
+
|
|
1090
|
+
@Field({description: 'Reference to the AI prompt this result corresponds to.'})
|
|
1091
|
+
@MaxLength(16)
|
|
1092
|
+
AIPromptID: string;
|
|
1093
|
+
|
|
1094
|
+
@Field({description: 'Reference to the AI model that generated this result.'})
|
|
1095
|
+
@MaxLength(16)
|
|
1096
|
+
AIModelID: string;
|
|
1097
|
+
|
|
1098
|
+
@Field({description: 'Timestamp of when this result was generated.'})
|
|
1099
|
+
@MaxLength(10)
|
|
1100
|
+
RunAt: Date;
|
|
1101
|
+
|
|
1102
|
+
@Field({description: 'The prompt text used to generate this result.'})
|
|
1103
|
+
PromptText: string;
|
|
1104
|
+
|
|
1105
|
+
@Field({nullable: true, description: 'The text of the result generated by the AI model.'})
|
|
1106
|
+
ResultText?: string;
|
|
1107
|
+
|
|
1108
|
+
@Field({description: 'The status of this result, indicating whether it is currently active or expired.'})
|
|
1109
|
+
@MaxLength(100)
|
|
1110
|
+
Status: string;
|
|
1111
|
+
|
|
1112
|
+
@Field({nullable: true, description: 'Timestamp of when this result was marked as expired.'})
|
|
1113
|
+
@MaxLength(10)
|
|
1114
|
+
ExpiredOn?: Date;
|
|
1115
|
+
|
|
1116
|
+
@Field()
|
|
1117
|
+
@MaxLength(10)
|
|
1118
|
+
_mj__CreatedAt: Date;
|
|
1119
|
+
|
|
1120
|
+
@Field()
|
|
1121
|
+
@MaxLength(10)
|
|
1122
|
+
_mj__UpdatedAt: Date;
|
|
1123
|
+
|
|
1124
|
+
@Field()
|
|
1125
|
+
@MaxLength(510)
|
|
1126
|
+
AIPrompt: string;
|
|
1127
|
+
|
|
1128
|
+
@Field()
|
|
1129
|
+
@MaxLength(100)
|
|
1130
|
+
AIModel: string;
|
|
1131
|
+
|
|
1132
|
+
}
|
|
1133
|
+
|
|
1134
|
+
//****************************************************************************
|
|
1135
|
+
// INPUT TYPE for AI Result Cache
|
|
1136
|
+
//****************************************************************************
|
|
1137
|
+
@InputType()
|
|
1138
|
+
export class CreateAIResultCacheInput {
|
|
1139
|
+
@Field()
|
|
1140
|
+
AIPromptID: string;
|
|
1141
|
+
|
|
1142
|
+
@Field()
|
|
1143
|
+
AIModelID: string;
|
|
1144
|
+
|
|
1145
|
+
@Field()
|
|
1146
|
+
RunAt: Date;
|
|
1147
|
+
|
|
1148
|
+
@Field()
|
|
1149
|
+
PromptText: string;
|
|
1150
|
+
|
|
1151
|
+
@Field({ nullable: true })
|
|
1152
|
+
ResultText?: string;
|
|
1153
|
+
|
|
1154
|
+
@Field()
|
|
1155
|
+
Status: string;
|
|
1156
|
+
|
|
1157
|
+
@Field({ nullable: true })
|
|
1158
|
+
ExpiredOn?: Date;
|
|
1159
|
+
}
|
|
1160
|
+
|
|
1161
|
+
|
|
1162
|
+
//****************************************************************************
|
|
1163
|
+
// INPUT TYPE for AI Result Cache
|
|
1164
|
+
//****************************************************************************
|
|
1165
|
+
@InputType()
|
|
1166
|
+
export class UpdateAIResultCacheInput {
|
|
1167
|
+
@Field()
|
|
1168
|
+
ID: string;
|
|
1169
|
+
|
|
1170
|
+
@Field()
|
|
1171
|
+
AIPromptID: string;
|
|
1172
|
+
|
|
1173
|
+
@Field()
|
|
1174
|
+
AIModelID: string;
|
|
1175
|
+
|
|
1176
|
+
@Field()
|
|
1177
|
+
RunAt: Date;
|
|
1178
|
+
|
|
1179
|
+
@Field()
|
|
1180
|
+
PromptText: string;
|
|
1181
|
+
|
|
1182
|
+
@Field({ nullable: true })
|
|
1183
|
+
ResultText?: string;
|
|
1184
|
+
|
|
1185
|
+
@Field()
|
|
1186
|
+
Status: string;
|
|
1187
|
+
|
|
1188
|
+
@Field({ nullable: true })
|
|
1189
|
+
ExpiredOn?: Date;
|
|
1190
|
+
|
|
1191
|
+
@Field(() => [KeyValuePairInput], { nullable: true })
|
|
1192
|
+
OldValues___?: KeyValuePairInput[];
|
|
1193
|
+
}
|
|
1194
|
+
|
|
1195
|
+
//****************************************************************************
|
|
1196
|
+
// RESOLVER for AI Result Cache
|
|
1197
|
+
//****************************************************************************
|
|
1198
|
+
@ObjectType()
|
|
1199
|
+
export class RunAIResultCacheViewResult {
|
|
1200
|
+
@Field(() => [AIResultCache_])
|
|
1201
|
+
Results: AIResultCache_[];
|
|
1202
|
+
|
|
1203
|
+
@Field(() => String, {nullable: true})
|
|
1204
|
+
UserViewRunID?: string;
|
|
1205
|
+
|
|
1206
|
+
@Field(() => Int, {nullable: true})
|
|
1207
|
+
RowCount: number;
|
|
1208
|
+
|
|
1209
|
+
@Field(() => Int, {nullable: true})
|
|
1210
|
+
TotalRowCount: number;
|
|
1211
|
+
|
|
1212
|
+
@Field(() => Int, {nullable: true})
|
|
1213
|
+
ExecutionTime: number;
|
|
1214
|
+
|
|
1215
|
+
@Field({nullable: true})
|
|
1216
|
+
ErrorMessage?: string;
|
|
1217
|
+
|
|
1218
|
+
@Field(() => Boolean, {nullable: false})
|
|
1219
|
+
Success: boolean;
|
|
1220
|
+
}
|
|
1221
|
+
|
|
1222
|
+
@Resolver(AIResultCache_)
|
|
1223
|
+
export class AIResultCacheResolver extends ResolverBase {
|
|
1224
|
+
@Query(() => RunAIResultCacheViewResult)
|
|
1225
|
+
async RunAIResultCacheViewByID(@Arg('input', () => RunViewByIDInput) input: RunViewByIDInput, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
1226
|
+
return super.RunViewByIDGeneric(input, dataSource, userPayload, pubSub);
|
|
1227
|
+
}
|
|
1228
|
+
|
|
1229
|
+
@Query(() => RunAIResultCacheViewResult)
|
|
1230
|
+
async RunAIResultCacheViewByName(@Arg('input', () => RunViewByNameInput) input: RunViewByNameInput, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
1231
|
+
return super.RunViewByNameGeneric(input, dataSource, userPayload, pubSub);
|
|
1232
|
+
}
|
|
1233
|
+
|
|
1234
|
+
@Query(() => RunAIResultCacheViewResult)
|
|
1235
|
+
async RunAIResultCacheDynamicView(@Arg('input', () => RunDynamicViewInput) input: RunDynamicViewInput, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
1236
|
+
input.EntityName = 'AI Result Cache';
|
|
1237
|
+
return super.RunDynamicViewGeneric(input, dataSource, userPayload, pubSub);
|
|
1238
|
+
}
|
|
1239
|
+
@Query(() => AIResultCache_, { nullable: true })
|
|
1240
|
+
async AIResultCache(@Arg('ID', () => String) ID: string, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine): Promise<AIResultCache_ | null> {
|
|
1241
|
+
this.CheckUserReadPermissions('AI Result Cache', userPayload);
|
|
1242
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIResultCaches] WHERE [ID]='${ID}' ` + this.getRowLevelSecurityWhereClause('AI Result Cache', userPayload, EntityPermissionType.Read, 'AND');
|
|
1243
|
+
const result = this.MapFieldNamesToCodeNames('AI Result Cache', await dataSource.query(sSQL).then((r) => r && r.length > 0 ? r[0] : {}))
|
|
1244
|
+
return result;
|
|
1245
|
+
}
|
|
1246
|
+
|
|
1247
|
+
@Mutation(() => AIResultCache_)
|
|
1248
|
+
async CreateAIResultCache(
|
|
1249
|
+
@Arg('input', () => CreateAIResultCacheInput) input: CreateAIResultCacheInput,
|
|
1250
|
+
@Ctx() { dataSource, userPayload }: AppContext,
|
|
1251
|
+
@PubSub() pubSub: PubSubEngine
|
|
1252
|
+
) {
|
|
1253
|
+
return this.CreateRecord('AI Result Cache', input, dataSource, userPayload, pubSub)
|
|
1254
|
+
}
|
|
1255
|
+
|
|
1256
|
+
@Mutation(() => AIResultCache_)
|
|
1257
|
+
async UpdateAIResultCache(
|
|
1258
|
+
@Arg('input', () => UpdateAIResultCacheInput) input: UpdateAIResultCacheInput,
|
|
1259
|
+
@Ctx() { dataSource, userPayload }: AppContext,
|
|
1260
|
+
@PubSub() pubSub: PubSubEngine
|
|
1261
|
+
) {
|
|
1262
|
+
return this.UpdateRecord('AI Result Cache', input, dataSource, userPayload, pubSub);
|
|
1263
|
+
}
|
|
1264
|
+
|
|
1265
|
+
@Mutation(() => AIResultCache_)
|
|
1266
|
+
async DeleteAIResultCache(@Arg('ID', () => String) ID: string, @Arg('options___', () => DeleteOptionsInput) options: DeleteOptionsInput, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
1267
|
+
const key = new CompositeKey([{FieldName: 'ID', Value: ID}]);
|
|
1268
|
+
return this.DeleteRecord('AI Result Cache', key, options, dataSource, userPayload, pubSub);
|
|
1269
|
+
}
|
|
1270
|
+
|
|
1271
|
+
}
|
|
1272
|
+
|
|
1273
|
+
//****************************************************************************
|
|
1274
|
+
// ENTITY CLASS for AI Prompt Categories
|
|
1275
|
+
//****************************************************************************
|
|
1276
|
+
@ObjectType({ description: 'Categories for organizing AI prompts in a hierarchical structure.' })
|
|
1277
|
+
export class AIPromptCategory_ {
|
|
1278
|
+
@Field()
|
|
1279
|
+
@MaxLength(16)
|
|
1280
|
+
ID: string;
|
|
1281
|
+
|
|
1282
|
+
@Field()
|
|
1283
|
+
@MaxLength(510)
|
|
1284
|
+
Name: string;
|
|
1285
|
+
|
|
1286
|
+
@Field({nullable: true, description: 'Parent category ID for hierarchical organization.'})
|
|
1287
|
+
@MaxLength(16)
|
|
1288
|
+
ParentID?: string;
|
|
1289
|
+
|
|
1290
|
+
@Field({nullable: true})
|
|
1291
|
+
Description?: string;
|
|
1292
|
+
|
|
1293
|
+
@Field()
|
|
1294
|
+
@MaxLength(10)
|
|
1295
|
+
_mj__CreatedAt: Date;
|
|
1296
|
+
|
|
1297
|
+
@Field()
|
|
1298
|
+
@MaxLength(10)
|
|
1299
|
+
_mj__UpdatedAt: Date;
|
|
1300
|
+
|
|
1301
|
+
@Field({nullable: true})
|
|
1302
|
+
@MaxLength(510)
|
|
1303
|
+
Parent?: string;
|
|
1304
|
+
|
|
1305
|
+
@Field(() => [AIPrompt_])
|
|
1306
|
+
AIPromptsArray: AIPrompt_[]; // Link to AIPrompts
|
|
1307
|
+
|
|
1308
|
+
@Field(() => [AIPromptCategory_])
|
|
1309
|
+
AIPromptCategoriesArray: AIPromptCategory_[]; // Link to AIPromptCategories
|
|
1310
|
+
|
|
1311
|
+
}
|
|
1312
|
+
|
|
1313
|
+
//****************************************************************************
|
|
1314
|
+
// INPUT TYPE for AI Prompt Categories
|
|
1315
|
+
//****************************************************************************
|
|
1316
|
+
@InputType()
|
|
1317
|
+
export class CreateAIPromptCategoryInput {
|
|
1318
|
+
@Field()
|
|
1319
|
+
Name: string;
|
|
1320
|
+
|
|
1321
|
+
@Field({ nullable: true })
|
|
1322
|
+
ParentID?: string;
|
|
1323
|
+
|
|
1324
|
+
@Field({ nullable: true })
|
|
1325
|
+
Description?: string;
|
|
1326
|
+
}
|
|
1327
|
+
|
|
1328
|
+
|
|
1329
|
+
//****************************************************************************
|
|
1330
|
+
// INPUT TYPE for AI Prompt Categories
|
|
1331
|
+
//****************************************************************************
|
|
1332
|
+
@InputType()
|
|
1333
|
+
export class UpdateAIPromptCategoryInput {
|
|
1334
|
+
@Field()
|
|
1335
|
+
ID: string;
|
|
1336
|
+
|
|
1337
|
+
@Field()
|
|
1338
|
+
Name: string;
|
|
1339
|
+
|
|
1340
|
+
@Field({ nullable: true })
|
|
1341
|
+
ParentID?: string;
|
|
1342
|
+
|
|
1343
|
+
@Field({ nullable: true })
|
|
1344
|
+
Description?: string;
|
|
1345
|
+
|
|
1346
|
+
@Field(() => [KeyValuePairInput], { nullable: true })
|
|
1347
|
+
OldValues___?: KeyValuePairInput[];
|
|
1348
|
+
}
|
|
1349
|
+
|
|
1350
|
+
//****************************************************************************
|
|
1351
|
+
// RESOLVER for AI Prompt Categories
|
|
1352
|
+
//****************************************************************************
|
|
1353
|
+
@ObjectType()
|
|
1354
|
+
export class RunAIPromptCategoryViewResult {
|
|
1355
|
+
@Field(() => [AIPromptCategory_])
|
|
1356
|
+
Results: AIPromptCategory_[];
|
|
1357
|
+
|
|
1358
|
+
@Field(() => String, {nullable: true})
|
|
1359
|
+
UserViewRunID?: string;
|
|
1360
|
+
|
|
1361
|
+
@Field(() => Int, {nullable: true})
|
|
1362
|
+
RowCount: number;
|
|
1363
|
+
|
|
1364
|
+
@Field(() => Int, {nullable: true})
|
|
1365
|
+
TotalRowCount: number;
|
|
1366
|
+
|
|
1367
|
+
@Field(() => Int, {nullable: true})
|
|
1368
|
+
ExecutionTime: number;
|
|
1369
|
+
|
|
1370
|
+
@Field({nullable: true})
|
|
1371
|
+
ErrorMessage?: string;
|
|
1372
|
+
|
|
1373
|
+
@Field(() => Boolean, {nullable: false})
|
|
1374
|
+
Success: boolean;
|
|
1375
|
+
}
|
|
1376
|
+
|
|
1377
|
+
@Resolver(AIPromptCategory_)
|
|
1378
|
+
export class AIPromptCategoryResolver extends ResolverBase {
|
|
1379
|
+
@Query(() => RunAIPromptCategoryViewResult)
|
|
1380
|
+
async RunAIPromptCategoryViewByID(@Arg('input', () => RunViewByIDInput) input: RunViewByIDInput, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
1381
|
+
return super.RunViewByIDGeneric(input, dataSource, userPayload, pubSub);
|
|
1382
|
+
}
|
|
1383
|
+
|
|
1384
|
+
@Query(() => RunAIPromptCategoryViewResult)
|
|
1385
|
+
async RunAIPromptCategoryViewByName(@Arg('input', () => RunViewByNameInput) input: RunViewByNameInput, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
1386
|
+
return super.RunViewByNameGeneric(input, dataSource, userPayload, pubSub);
|
|
1387
|
+
}
|
|
1388
|
+
|
|
1389
|
+
@Query(() => RunAIPromptCategoryViewResult)
|
|
1390
|
+
async RunAIPromptCategoryDynamicView(@Arg('input', () => RunDynamicViewInput) input: RunDynamicViewInput, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
1391
|
+
input.EntityName = 'AI Prompt Categories';
|
|
1392
|
+
return super.RunDynamicViewGeneric(input, dataSource, userPayload, pubSub);
|
|
1393
|
+
}
|
|
1394
|
+
@Query(() => AIPromptCategory_, { nullable: true })
|
|
1395
|
+
async AIPromptCategory(@Arg('ID', () => String) ID: string, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine): Promise<AIPromptCategory_ | null> {
|
|
1396
|
+
this.CheckUserReadPermissions('AI Prompt Categories', userPayload);
|
|
1397
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIPromptCategories] WHERE [ID]='${ID}' ` + this.getRowLevelSecurityWhereClause('AI Prompt Categories', userPayload, EntityPermissionType.Read, 'AND');
|
|
1398
|
+
const result = this.MapFieldNamesToCodeNames('AI Prompt Categories', await dataSource.query(sSQL).then((r) => r && r.length > 0 ? r[0] : {}))
|
|
1399
|
+
return result;
|
|
1400
|
+
}
|
|
1401
|
+
|
|
1402
|
+
@FieldResolver(() => [AIPrompt_])
|
|
1403
|
+
async AIPrompts_CategoryIDArray(@Root() aipromptcategory_: AIPromptCategory_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
1404
|
+
this.CheckUserReadPermissions('AI Prompts', userPayload);
|
|
1405
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIPrompts] WHERE [CategoryID]='${aipromptcategory_.ID}' ` + this.getRowLevelSecurityWhereClause('AI Prompts', userPayload, EntityPermissionType.Read, 'AND');
|
|
1406
|
+
const result = this.ArrayMapFieldNamesToCodeNames('AI Prompts', await dataSource.query(sSQL));
|
|
1407
|
+
return result;
|
|
1408
|
+
}
|
|
1409
|
+
|
|
1410
|
+
@FieldResolver(() => [AIPromptCategory_])
|
|
1411
|
+
async AIPromptCategories_ParentIDArray(@Root() aipromptcategory_: AIPromptCategory_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
1412
|
+
this.CheckUserReadPermissions('AI Prompt Categories', userPayload);
|
|
1413
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIPromptCategories] WHERE [ParentID]='${aipromptcategory_.ID}' ` + this.getRowLevelSecurityWhereClause('AI Prompt Categories', userPayload, EntityPermissionType.Read, 'AND');
|
|
1414
|
+
const result = this.ArrayMapFieldNamesToCodeNames('AI Prompt Categories', await dataSource.query(sSQL));
|
|
1415
|
+
return result;
|
|
1416
|
+
}
|
|
1417
|
+
|
|
1418
|
+
@Mutation(() => AIPromptCategory_)
|
|
1419
|
+
async CreateAIPromptCategory(
|
|
1420
|
+
@Arg('input', () => CreateAIPromptCategoryInput) input: CreateAIPromptCategoryInput,
|
|
1421
|
+
@Ctx() { dataSource, userPayload }: AppContext,
|
|
1422
|
+
@PubSub() pubSub: PubSubEngine
|
|
1423
|
+
) {
|
|
1424
|
+
return this.CreateRecord('AI Prompt Categories', input, dataSource, userPayload, pubSub)
|
|
1425
|
+
}
|
|
1426
|
+
|
|
1427
|
+
@Mutation(() => AIPromptCategory_)
|
|
1428
|
+
async UpdateAIPromptCategory(
|
|
1429
|
+
@Arg('input', () => UpdateAIPromptCategoryInput) input: UpdateAIPromptCategoryInput,
|
|
1430
|
+
@Ctx() { dataSource, userPayload }: AppContext,
|
|
1431
|
+
@PubSub() pubSub: PubSubEngine
|
|
1432
|
+
) {
|
|
1433
|
+
return this.UpdateRecord('AI Prompt Categories', input, dataSource, userPayload, pubSub);
|
|
1434
|
+
}
|
|
1435
|
+
|
|
1436
|
+
@Mutation(() => AIPromptCategory_)
|
|
1437
|
+
async DeleteAIPromptCategory(@Arg('ID', () => String) ID: string, @Arg('options___', () => DeleteOptionsInput) options: DeleteOptionsInput, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
1438
|
+
const key = new CompositeKey([{FieldName: 'ID', Value: ID}]);
|
|
1439
|
+
return this.DeleteRecord('AI Prompt Categories', key, options, dataSource, userPayload, pubSub);
|
|
1440
|
+
}
|
|
1441
|
+
|
|
1442
|
+
}
|
|
1443
|
+
|
|
1444
|
+
//****************************************************************************
|
|
1445
|
+
// ENTITY CLASS for AI Prompt Types
|
|
1446
|
+
//****************************************************************************
|
|
1447
|
+
@ObjectType({ description: 'Types of AI prompts such as Chat, Text-to-Image, Text-to-Video, etc.' })
|
|
1448
|
+
export class AIPromptType_ {
|
|
1449
|
+
@Field()
|
|
1450
|
+
@MaxLength(16)
|
|
1451
|
+
ID: string;
|
|
1452
|
+
|
|
1453
|
+
@Field()
|
|
1454
|
+
@MaxLength(510)
|
|
1455
|
+
Name: string;
|
|
1456
|
+
|
|
1457
|
+
@Field({nullable: true})
|
|
1458
|
+
Description?: string;
|
|
1459
|
+
|
|
1460
|
+
@Field()
|
|
1461
|
+
@MaxLength(10)
|
|
1462
|
+
_mj__CreatedAt: Date;
|
|
1463
|
+
|
|
1464
|
+
@Field()
|
|
1465
|
+
@MaxLength(10)
|
|
1466
|
+
_mj__UpdatedAt: Date;
|
|
1467
|
+
|
|
1468
|
+
@Field(() => [AIPrompt_])
|
|
1469
|
+
AIPromptsArray: AIPrompt_[]; // Link to AIPrompts
|
|
1470
|
+
|
|
1471
|
+
}
|
|
1472
|
+
|
|
1473
|
+
//****************************************************************************
|
|
1474
|
+
// INPUT TYPE for AI Prompt Types
|
|
1475
|
+
//****************************************************************************
|
|
1476
|
+
@InputType()
|
|
1477
|
+
export class CreateAIPromptTypeInput {
|
|
1478
|
+
@Field()
|
|
1479
|
+
Name: string;
|
|
1480
|
+
|
|
1481
|
+
@Field({ nullable: true })
|
|
1482
|
+
Description?: string;
|
|
1483
|
+
}
|
|
1484
|
+
|
|
1485
|
+
|
|
1486
|
+
//****************************************************************************
|
|
1487
|
+
// INPUT TYPE for AI Prompt Types
|
|
1488
|
+
//****************************************************************************
|
|
1489
|
+
@InputType()
|
|
1490
|
+
export class UpdateAIPromptTypeInput {
|
|
1491
|
+
@Field()
|
|
1492
|
+
ID: string;
|
|
1493
|
+
|
|
1494
|
+
@Field()
|
|
1495
|
+
Name: string;
|
|
1496
|
+
|
|
1497
|
+
@Field({ nullable: true })
|
|
1498
|
+
Description?: string;
|
|
1499
|
+
|
|
1500
|
+
@Field(() => [KeyValuePairInput], { nullable: true })
|
|
1501
|
+
OldValues___?: KeyValuePairInput[];
|
|
1502
|
+
}
|
|
1503
|
+
|
|
1504
|
+
//****************************************************************************
|
|
1505
|
+
// RESOLVER for AI Prompt Types
|
|
1506
|
+
//****************************************************************************
|
|
1507
|
+
@ObjectType()
|
|
1508
|
+
export class RunAIPromptTypeViewResult {
|
|
1509
|
+
@Field(() => [AIPromptType_])
|
|
1510
|
+
Results: AIPromptType_[];
|
|
1511
|
+
|
|
1512
|
+
@Field(() => String, {nullable: true})
|
|
1513
|
+
UserViewRunID?: string;
|
|
1514
|
+
|
|
1515
|
+
@Field(() => Int, {nullable: true})
|
|
1516
|
+
RowCount: number;
|
|
1517
|
+
|
|
1518
|
+
@Field(() => Int, {nullable: true})
|
|
1519
|
+
TotalRowCount: number;
|
|
1520
|
+
|
|
1521
|
+
@Field(() => Int, {nullable: true})
|
|
1522
|
+
ExecutionTime: number;
|
|
1523
|
+
|
|
1524
|
+
@Field({nullable: true})
|
|
1525
|
+
ErrorMessage?: string;
|
|
1526
|
+
|
|
1527
|
+
@Field(() => Boolean, {nullable: false})
|
|
1528
|
+
Success: boolean;
|
|
1529
|
+
}
|
|
1530
|
+
|
|
1531
|
+
@Resolver(AIPromptType_)
|
|
1532
|
+
export class AIPromptTypeResolver extends ResolverBase {
|
|
1533
|
+
@Query(() => RunAIPromptTypeViewResult)
|
|
1534
|
+
async RunAIPromptTypeViewByID(@Arg('input', () => RunViewByIDInput) input: RunViewByIDInput, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
1535
|
+
return super.RunViewByIDGeneric(input, dataSource, userPayload, pubSub);
|
|
1536
|
+
}
|
|
1537
|
+
|
|
1538
|
+
@Query(() => RunAIPromptTypeViewResult)
|
|
1539
|
+
async RunAIPromptTypeViewByName(@Arg('input', () => RunViewByNameInput) input: RunViewByNameInput, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
1540
|
+
return super.RunViewByNameGeneric(input, dataSource, userPayload, pubSub);
|
|
1541
|
+
}
|
|
1542
|
+
|
|
1543
|
+
@Query(() => RunAIPromptTypeViewResult)
|
|
1544
|
+
async RunAIPromptTypeDynamicView(@Arg('input', () => RunDynamicViewInput) input: RunDynamicViewInput, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
1545
|
+
input.EntityName = 'AI Prompt Types';
|
|
1546
|
+
return super.RunDynamicViewGeneric(input, dataSource, userPayload, pubSub);
|
|
1547
|
+
}
|
|
1548
|
+
@Query(() => AIPromptType_, { nullable: true })
|
|
1549
|
+
async AIPromptType(@Arg('ID', () => String) ID: string, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine): Promise<AIPromptType_ | null> {
|
|
1550
|
+
this.CheckUserReadPermissions('AI Prompt Types', userPayload);
|
|
1551
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIPromptTypes] WHERE [ID]='${ID}' ` + this.getRowLevelSecurityWhereClause('AI Prompt Types', userPayload, EntityPermissionType.Read, 'AND');
|
|
1552
|
+
const result = this.MapFieldNamesToCodeNames('AI Prompt Types', await dataSource.query(sSQL).then((r) => r && r.length > 0 ? r[0] : {}))
|
|
1553
|
+
return result;
|
|
1554
|
+
}
|
|
1555
|
+
|
|
1556
|
+
@FieldResolver(() => [AIPrompt_])
|
|
1557
|
+
async AIPrompts_TypeIDArray(@Root() aiprompttype_: AIPromptType_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
1558
|
+
this.CheckUserReadPermissions('AI Prompts', userPayload);
|
|
1559
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIPrompts] WHERE [TypeID]='${aiprompttype_.ID}' ` + this.getRowLevelSecurityWhereClause('AI Prompts', userPayload, EntityPermissionType.Read, 'AND');
|
|
1560
|
+
const result = this.ArrayMapFieldNamesToCodeNames('AI Prompts', await dataSource.query(sSQL));
|
|
1561
|
+
return result;
|
|
1562
|
+
}
|
|
1563
|
+
|
|
1564
|
+
@Mutation(() => AIPromptType_)
|
|
1565
|
+
async CreateAIPromptType(
|
|
1566
|
+
@Arg('input', () => CreateAIPromptTypeInput) input: CreateAIPromptTypeInput,
|
|
1567
|
+
@Ctx() { dataSource, userPayload }: AppContext,
|
|
1568
|
+
@PubSub() pubSub: PubSubEngine
|
|
1569
|
+
) {
|
|
1570
|
+
return this.CreateRecord('AI Prompt Types', input, dataSource, userPayload, pubSub)
|
|
1571
|
+
}
|
|
1572
|
+
|
|
1573
|
+
@Mutation(() => AIPromptType_)
|
|
1574
|
+
async UpdateAIPromptType(
|
|
1575
|
+
@Arg('input', () => UpdateAIPromptTypeInput) input: UpdateAIPromptTypeInput,
|
|
1576
|
+
@Ctx() { dataSource, userPayload }: AppContext,
|
|
1577
|
+
@PubSub() pubSub: PubSubEngine
|
|
1578
|
+
) {
|
|
1579
|
+
return this.UpdateRecord('AI Prompt Types', input, dataSource, userPayload, pubSub);
|
|
1580
|
+
}
|
|
1581
|
+
|
|
1582
|
+
@Mutation(() => AIPromptType_)
|
|
1583
|
+
async DeleteAIPromptType(@Arg('ID', () => String) ID: string, @Arg('options___', () => DeleteOptionsInput) options: DeleteOptionsInput, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
1584
|
+
const key = new CompositeKey([{FieldName: 'ID', Value: ID}]);
|
|
1585
|
+
return this.DeleteRecord('AI Prompt Types', key, options, dataSource, userPayload, pubSub);
|
|
1586
|
+
}
|
|
1587
|
+
|
|
1588
|
+
}
|
|
1589
|
+
|
|
865
1590
|
//****************************************************************************
|
|
866
1591
|
// ENTITY CLASS for Companies
|
|
867
1592
|
//****************************************************************************
|
|
@@ -1020,7 +1745,7 @@ export class CompanyResolver extends ResolverBase {
|
|
|
1020
1745
|
}
|
|
1021
1746
|
|
|
1022
1747
|
@FieldResolver(() => [Workflow_])
|
|
1023
|
-
async
|
|
1748
|
+
async Workflows_CompanyNameArray(@Root() company_: Company_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
1024
1749
|
this.CheckUserReadPermissions('Workflows', userPayload);
|
|
1025
1750
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwWorkflows] WHERE [CompanyName]='${company_.ID}' ` + this.getRowLevelSecurityWhereClause('Workflows', userPayload, EntityPermissionType.Read, 'AND');
|
|
1026
1751
|
const result = this.ArrayMapFieldNamesToCodeNames('Workflows', await dataSource.query(sSQL));
|
|
@@ -1028,7 +1753,7 @@ export class CompanyResolver extends ResolverBase {
|
|
|
1028
1753
|
}
|
|
1029
1754
|
|
|
1030
1755
|
@FieldResolver(() => [CompanyIntegration_])
|
|
1031
|
-
async
|
|
1756
|
+
async CompanyIntegrations_CompanyNameArray(@Root() company_: Company_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
1032
1757
|
this.CheckUserReadPermissions('Company Integrations', userPayload);
|
|
1033
1758
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwCompanyIntegrations] WHERE [CompanyName]='${company_.ID}' ` + this.getRowLevelSecurityWhereClause('Company Integrations', userPayload, EntityPermissionType.Read, 'AND');
|
|
1034
1759
|
const result = this.ArrayMapFieldNamesToCodeNames('Company Integrations', await dataSource.query(sSQL));
|
|
@@ -1036,7 +1761,7 @@ export class CompanyResolver extends ResolverBase {
|
|
|
1036
1761
|
}
|
|
1037
1762
|
|
|
1038
1763
|
@FieldResolver(() => [Employee_])
|
|
1039
|
-
async
|
|
1764
|
+
async Employees_CompanyIDArray(@Root() company_: Company_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
1040
1765
|
this.CheckUserReadPermissions('Employees', userPayload);
|
|
1041
1766
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwEmployees] WHERE [CompanyID]='${company_.ID}' ` + this.getRowLevelSecurityWhereClause('Employees', userPayload, EntityPermissionType.Read, 'AND');
|
|
1042
1767
|
const result = this.ArrayMapFieldNamesToCodeNames('Employees', await dataSource.query(sSQL));
|
|
@@ -1286,7 +2011,7 @@ export class EmployeeResolver extends ResolverBase {
|
|
|
1286
2011
|
}
|
|
1287
2012
|
|
|
1288
2013
|
@FieldResolver(() => [User_])
|
|
1289
|
-
async
|
|
2014
|
+
async Users_EmployeeIDArray(@Root() employee_: Employee_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
1290
2015
|
this.CheckUserReadPermissions('Users', userPayload);
|
|
1291
2016
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwUsers] WHERE [EmployeeID]='${employee_.ID}' ` + this.getRowLevelSecurityWhereClause('Users', userPayload, EntityPermissionType.Read, 'AND');
|
|
1292
2017
|
const result = this.ArrayMapFieldNamesToCodeNames('Users', await dataSource.query(sSQL));
|
|
@@ -1294,7 +2019,7 @@ export class EmployeeResolver extends ResolverBase {
|
|
|
1294
2019
|
}
|
|
1295
2020
|
|
|
1296
2021
|
@FieldResolver(() => [EmployeeSkill_])
|
|
1297
|
-
async
|
|
2022
|
+
async EmployeeSkills_EmployeeIDArray(@Root() employee_: Employee_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
1298
2023
|
this.CheckUserReadPermissions('Employee Skills', userPayload);
|
|
1299
2024
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwEmployeeSkills] WHERE [EmployeeID]='${employee_.ID}' ` + this.getRowLevelSecurityWhereClause('Employee Skills', userPayload, EntityPermissionType.Read, 'AND');
|
|
1300
2025
|
const result = this.ArrayMapFieldNamesToCodeNames('Employee Skills', await dataSource.query(sSQL));
|
|
@@ -1302,7 +2027,7 @@ export class EmployeeResolver extends ResolverBase {
|
|
|
1302
2027
|
}
|
|
1303
2028
|
|
|
1304
2029
|
@FieldResolver(() => [EmployeeCompanyIntegration_])
|
|
1305
|
-
async
|
|
2030
|
+
async EmployeeCompanyIntegrations_EmployeeIDArray(@Root() employee_: Employee_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
1306
2031
|
this.CheckUserReadPermissions('Employee Company Integrations', userPayload);
|
|
1307
2032
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwEmployeeCompanyIntegrations] WHERE [EmployeeID]='${employee_.ID}' ` + this.getRowLevelSecurityWhereClause('Employee Company Integrations', userPayload, EntityPermissionType.Read, 'AND');
|
|
1308
2033
|
const result = this.ArrayMapFieldNamesToCodeNames('Employee Company Integrations', await dataSource.query(sSQL));
|
|
@@ -1310,7 +2035,7 @@ export class EmployeeResolver extends ResolverBase {
|
|
|
1310
2035
|
}
|
|
1311
2036
|
|
|
1312
2037
|
@FieldResolver(() => [Employee_])
|
|
1313
|
-
async
|
|
2038
|
+
async Employees_SupervisorIDArray(@Root() employee_: Employee_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
1314
2039
|
this.CheckUserReadPermissions('Employees', userPayload);
|
|
1315
2040
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwEmployees] WHERE [SupervisorID]='${employee_.ID}' ` + this.getRowLevelSecurityWhereClause('Employees', userPayload, EntityPermissionType.Read, 'AND');
|
|
1316
2041
|
const result = this.ArrayMapFieldNamesToCodeNames('Employees', await dataSource.query(sSQL));
|
|
@@ -1318,7 +2043,7 @@ export class EmployeeResolver extends ResolverBase {
|
|
|
1318
2043
|
}
|
|
1319
2044
|
|
|
1320
2045
|
@FieldResolver(() => [EmployeeRole_])
|
|
1321
|
-
async
|
|
2046
|
+
async EmployeeRoles_EmployeeIDArray(@Root() employee_: Employee_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
1322
2047
|
this.CheckUserReadPermissions('Employee Roles', userPayload);
|
|
1323
2048
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwEmployeeRoles] WHERE [EmployeeID]='${employee_.ID}' ` + this.getRowLevelSecurityWhereClause('Employee Roles', userPayload, EntityPermissionType.Read, 'AND');
|
|
1324
2049
|
const result = this.ArrayMapFieldNamesToCodeNames('Employee Roles', await dataSource.query(sSQL));
|
|
@@ -2007,7 +2732,7 @@ export class RoleResolver extends ResolverBase {
|
|
|
2007
2732
|
}
|
|
2008
2733
|
|
|
2009
2734
|
@FieldResolver(() => [UserRole_])
|
|
2010
|
-
async
|
|
2735
|
+
async UserRoles_RoleNameArray(@Root() role_: Role_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
2011
2736
|
this.CheckUserReadPermissions('User Roles', userPayload);
|
|
2012
2737
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwUserRoles] WHERE [RoleName]='${role_.ID}' ` + this.getRowLevelSecurityWhereClause('User Roles', userPayload, EntityPermissionType.Read, 'AND');
|
|
2013
2738
|
const result = this.ArrayMapFieldNamesToCodeNames('User Roles', await dataSource.query(sSQL));
|
|
@@ -2015,7 +2740,7 @@ export class RoleResolver extends ResolverBase {
|
|
|
2015
2740
|
}
|
|
2016
2741
|
|
|
2017
2742
|
@FieldResolver(() => [AuthorizationRole_])
|
|
2018
|
-
async
|
|
2743
|
+
async AuthorizationRoles_RoleNameArray(@Root() role_: Role_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
2019
2744
|
this.CheckUserReadPermissions('Authorization Roles', userPayload);
|
|
2020
2745
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAuthorizationRoles] WHERE [RoleName]='${role_.ID}' ` + this.getRowLevelSecurityWhereClause('Authorization Roles', userPayload, EntityPermissionType.Read, 'AND');
|
|
2021
2746
|
const result = this.ArrayMapFieldNamesToCodeNames('Authorization Roles', await dataSource.query(sSQL));
|
|
@@ -2023,7 +2748,7 @@ export class RoleResolver extends ResolverBase {
|
|
|
2023
2748
|
}
|
|
2024
2749
|
|
|
2025
2750
|
@FieldResolver(() => [EntityPermission_])
|
|
2026
|
-
async
|
|
2751
|
+
async EntityPermissions_RoleNameArray(@Root() role_: Role_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
2027
2752
|
this.CheckUserReadPermissions('Entity Permissions', userPayload);
|
|
2028
2753
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwEntityPermissions] WHERE [RoleName]='${role_.ID}' ` + this.getRowLevelSecurityWhereClause('Entity Permissions', userPayload, EntityPermissionType.Read, 'AND');
|
|
2029
2754
|
const result = this.ArrayMapFieldNamesToCodeNames('Entity Permissions', await dataSource.query(sSQL));
|
|
@@ -2031,7 +2756,7 @@ export class RoleResolver extends ResolverBase {
|
|
|
2031
2756
|
}
|
|
2032
2757
|
|
|
2033
2758
|
@FieldResolver(() => [QueryPermission_])
|
|
2034
|
-
async
|
|
2759
|
+
async QueryPermissions_RoleNameArray(@Root() role_: Role_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
2035
2760
|
this.CheckUserReadPermissions('Query Permissions', userPayload);
|
|
2036
2761
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwQueryPermissions] WHERE [RoleName]='${role_.ID}' ` + this.getRowLevelSecurityWhereClause('Query Permissions', userPayload, EntityPermissionType.Read, 'AND');
|
|
2037
2762
|
const result = this.ArrayMapFieldNamesToCodeNames('Query Permissions', await dataSource.query(sSQL));
|
|
@@ -2039,7 +2764,7 @@ export class RoleResolver extends ResolverBase {
|
|
|
2039
2764
|
}
|
|
2040
2765
|
|
|
2041
2766
|
@FieldResolver(() => [EmployeeRole_])
|
|
2042
|
-
async
|
|
2767
|
+
async EmployeeRoles_RoleIDArray(@Root() role_: Role_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
2043
2768
|
this.CheckUserReadPermissions('Employee Roles', userPayload);
|
|
2044
2769
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwEmployeeRoles] WHERE [RoleID]='${role_.ID}' ` + this.getRowLevelSecurityWhereClause('Employee Roles', userPayload, EntityPermissionType.Read, 'AND');
|
|
2045
2770
|
const result = this.ArrayMapFieldNamesToCodeNames('Employee Roles', await dataSource.query(sSQL));
|
|
@@ -2169,7 +2894,7 @@ export class SkillResolver extends ResolverBase {
|
|
|
2169
2894
|
}
|
|
2170
2895
|
|
|
2171
2896
|
@FieldResolver(() => [EmployeeSkill_])
|
|
2172
|
-
async
|
|
2897
|
+
async EmployeeSkills_SkillIDArray(@Root() skill_: Skill_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
2173
2898
|
this.CheckUserReadPermissions('Employee Skills', userPayload);
|
|
2174
2899
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwEmployeeSkills] WHERE [SkillID]='${skill_.ID}' ` + this.getRowLevelSecurityWhereClause('Employee Skills', userPayload, EntityPermissionType.Read, 'AND');
|
|
2175
2900
|
const result = this.ArrayMapFieldNamesToCodeNames('Employee Skills', await dataSource.query(sSQL));
|
|
@@ -2177,7 +2902,7 @@ export class SkillResolver extends ResolverBase {
|
|
|
2177
2902
|
}
|
|
2178
2903
|
|
|
2179
2904
|
@FieldResolver(() => [Skill_])
|
|
2180
|
-
async
|
|
2905
|
+
async Skills_ParentIDArray(@Root() skill_: Skill_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
2181
2906
|
this.CheckUserReadPermissions('Skills', userPayload);
|
|
2182
2907
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwSkills] WHERE [ParentID]='${skill_.ID}' ` + this.getRowLevelSecurityWhereClause('Skills', userPayload, EntityPermissionType.Read, 'AND');
|
|
2183
2908
|
const result = this.ArrayMapFieldNamesToCodeNames('Skills', await dataSource.query(sSQL));
|
|
@@ -2475,7 +3200,7 @@ export class IntegrationResolver extends ResolverBase {
|
|
|
2475
3200
|
}
|
|
2476
3201
|
|
|
2477
3202
|
@FieldResolver(() => [IntegrationURLFormat_])
|
|
2478
|
-
async
|
|
3203
|
+
async IntegrationURLFormats_IntegrationIDArray(@Root() integration_: Integration_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
2479
3204
|
this.CheckUserReadPermissions('Integration URL Formats', userPayload);
|
|
2480
3205
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwIntegrationURLFormats] WHERE [IntegrationID]='${integration_.ID}' ` + this.getRowLevelSecurityWhereClause('Integration URL Formats', userPayload, EntityPermissionType.Read, 'AND');
|
|
2481
3206
|
const result = this.ArrayMapFieldNamesToCodeNames('Integration URL Formats', await dataSource.query(sSQL));
|
|
@@ -2483,7 +3208,7 @@ export class IntegrationResolver extends ResolverBase {
|
|
|
2483
3208
|
}
|
|
2484
3209
|
|
|
2485
3210
|
@FieldResolver(() => [CompanyIntegration_])
|
|
2486
|
-
async
|
|
3211
|
+
async CompanyIntegrations_IntegrationNameArray(@Root() integration_: Integration_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
2487
3212
|
this.CheckUserReadPermissions('Company Integrations', userPayload);
|
|
2488
3213
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwCompanyIntegrations] WHERE [IntegrationName]='${integration_.ID}' ` + this.getRowLevelSecurityWhereClause('Company Integrations', userPayload, EntityPermissionType.Read, 'AND');
|
|
2489
3214
|
const result = this.ArrayMapFieldNamesToCodeNames('Company Integrations', await dataSource.query(sSQL));
|
|
@@ -2491,7 +3216,7 @@ export class IntegrationResolver extends ResolverBase {
|
|
|
2491
3216
|
}
|
|
2492
3217
|
|
|
2493
3218
|
@FieldResolver(() => [RecordChange_])
|
|
2494
|
-
async
|
|
3219
|
+
async RecordChanges_IntegrationIDArray(@Root() integration_: Integration_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
2495
3220
|
this.CheckUserReadPermissions('Record Changes', userPayload);
|
|
2496
3221
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwRecordChanges] WHERE [IntegrationID]='${integration_.ID}' ` + this.getRowLevelSecurityWhereClause('Record Changes', userPayload, EntityPermissionType.Read, 'AND');
|
|
2497
3222
|
const result = this.ArrayMapFieldNamesToCodeNames('Record Changes', await dataSource.query(sSQL));
|
|
@@ -2715,7 +3440,7 @@ export class CompanyIntegrationResolver extends ResolverBase {
|
|
|
2715
3440
|
}
|
|
2716
3441
|
|
|
2717
3442
|
@FieldResolver(() => [CompanyIntegrationRecordMap_])
|
|
2718
|
-
async
|
|
3443
|
+
async CompanyIntegrationRecordMaps_CompanyIntegrationIDArray(@Root() companyintegration_: CompanyIntegration_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
2719
3444
|
this.CheckUserReadPermissions('Company Integration Record Maps', userPayload);
|
|
2720
3445
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwCompanyIntegrationRecordMaps] WHERE [CompanyIntegrationID]='${companyintegration_.ID}' ` + this.getRowLevelSecurityWhereClause('Company Integration Record Maps', userPayload, EntityPermissionType.Read, 'AND');
|
|
2721
3446
|
const result = this.ArrayMapFieldNamesToCodeNames('Company Integration Record Maps', await dataSource.query(sSQL));
|
|
@@ -2723,7 +3448,7 @@ export class CompanyIntegrationResolver extends ResolverBase {
|
|
|
2723
3448
|
}
|
|
2724
3449
|
|
|
2725
3450
|
@FieldResolver(() => [List_])
|
|
2726
|
-
async
|
|
3451
|
+
async Lists_CompanyIntegrationIDArray(@Root() companyintegration_: CompanyIntegration_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
2727
3452
|
this.CheckUserReadPermissions('Lists', userPayload);
|
|
2728
3453
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwLists] WHERE [CompanyIntegrationID]='${companyintegration_.ID}' ` + this.getRowLevelSecurityWhereClause('Lists', userPayload, EntityPermissionType.Read, 'AND');
|
|
2729
3454
|
const result = this.ArrayMapFieldNamesToCodeNames('Lists', await dataSource.query(sSQL));
|
|
@@ -2731,7 +3456,7 @@ export class CompanyIntegrationResolver extends ResolverBase {
|
|
|
2731
3456
|
}
|
|
2732
3457
|
|
|
2733
3458
|
@FieldResolver(() => [CompanyIntegrationRun_])
|
|
2734
|
-
async
|
|
3459
|
+
async CompanyIntegrationRuns_CompanyIntegrationIDArray(@Root() companyintegration_: CompanyIntegration_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
2735
3460
|
this.CheckUserReadPermissions('Company Integration Runs', userPayload);
|
|
2736
3461
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwCompanyIntegrationRuns] WHERE [CompanyIntegrationID]='${companyintegration_.ID}' ` + this.getRowLevelSecurityWhereClause('Company Integration Runs', userPayload, EntityPermissionType.Read, 'AND');
|
|
2737
3462
|
const result = this.ArrayMapFieldNamesToCodeNames('Company Integration Runs', await dataSource.query(sSQL));
|
|
@@ -2739,7 +3464,7 @@ export class CompanyIntegrationResolver extends ResolverBase {
|
|
|
2739
3464
|
}
|
|
2740
3465
|
|
|
2741
3466
|
@FieldResolver(() => [EmployeeCompanyIntegration_])
|
|
2742
|
-
async
|
|
3467
|
+
async EmployeeCompanyIntegrations_CompanyIntegrationIDArray(@Root() companyintegration_: CompanyIntegration_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
2743
3468
|
this.CheckUserReadPermissions('Employee Company Integrations', userPayload);
|
|
2744
3469
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwEmployeeCompanyIntegrations] WHERE [CompanyIntegrationID]='${companyintegration_.ID}' ` + this.getRowLevelSecurityWhereClause('Employee Company Integrations', userPayload, EntityPermissionType.Read, 'AND');
|
|
2745
3470
|
const result = this.ArrayMapFieldNamesToCodeNames('Employee Company Integrations', await dataSource.query(sSQL));
|
|
@@ -3186,7 +3911,7 @@ export class EntityFieldResolver extends ResolverBase {
|
|
|
3186
3911
|
}
|
|
3187
3912
|
|
|
3188
3913
|
@FieldResolver(() => [EntityFieldValue_])
|
|
3189
|
-
async
|
|
3914
|
+
async EntityFieldValues_EntityFieldIDArray(@Root() entityfield_: EntityField_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
3190
3915
|
this.CheckUserReadPermissions('Entity Field Values', userPayload);
|
|
3191
3916
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwEntityFieldValues] WHERE [EntityFieldID]='${entityfield_.ID}' ` + this.getRowLevelSecurityWhereClause('Entity Field Values', userPayload, EntityPermissionType.Read, 'AND');
|
|
3192
3917
|
const result = this.ArrayMapFieldNamesToCodeNames('Entity Field Values', await dataSource.query(sSQL));
|
|
@@ -3847,7 +4572,7 @@ export class EntityResolverBase extends ResolverBase {
|
|
|
3847
4572
|
}
|
|
3848
4573
|
|
|
3849
4574
|
@FieldResolver(() => [AuditLog_])
|
|
3850
|
-
async
|
|
4575
|
+
async AuditLogs_EntityIDArray(@Root() entity_: Entity_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
3851
4576
|
this.CheckUserReadPermissions('Audit Logs', userPayload);
|
|
3852
4577
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAuditLogs] WHERE [EntityID]='${entity_.ID}' ` + this.getRowLevelSecurityWhereClause('Audit Logs', userPayload, EntityPermissionType.Read, 'AND');
|
|
3853
4578
|
const result = this.ArrayMapFieldNamesToCodeNames('Audit Logs', await dataSource.query(sSQL));
|
|
@@ -3855,7 +4580,7 @@ export class EntityResolverBase extends ResolverBase {
|
|
|
3855
4580
|
}
|
|
3856
4581
|
|
|
3857
4582
|
@FieldResolver(() => [TemplateParam_])
|
|
3858
|
-
async
|
|
4583
|
+
async TemplateParams_EntityIDArray(@Root() entity_: Entity_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
3859
4584
|
this.CheckUserReadPermissions('Template Params', userPayload);
|
|
3860
4585
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwTemplateParams] WHERE [EntityID]='${entity_.ID}' ` + this.getRowLevelSecurityWhereClause('Template Params', userPayload, EntityPermissionType.Read, 'AND');
|
|
3861
4586
|
const result = this.ArrayMapFieldNamesToCodeNames('Template Params', await dataSource.query(sSQL));
|
|
@@ -3863,7 +4588,7 @@ export class EntityResolverBase extends ResolverBase {
|
|
|
3863
4588
|
}
|
|
3864
4589
|
|
|
3865
4590
|
@FieldResolver(() => [DatasetItem_])
|
|
3866
|
-
async
|
|
4591
|
+
async DatasetItems_EntityIDArray(@Root() entity_: Entity_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
3867
4592
|
this.CheckUserReadPermissions('Dataset Items', userPayload);
|
|
3868
4593
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwDatasetItems] WHERE [EntityID]='${entity_.ID}' ` + this.getRowLevelSecurityWhereClause('Dataset Items', userPayload, EntityPermissionType.Read, 'AND');
|
|
3869
4594
|
const result = this.ArrayMapFieldNamesToCodeNames('Dataset Items', await dataSource.query(sSQL));
|
|
@@ -3871,7 +4596,7 @@ export class EntityResolverBase extends ResolverBase {
|
|
|
3871
4596
|
}
|
|
3872
4597
|
|
|
3873
4598
|
@FieldResolver(() => [User_])
|
|
3874
|
-
async
|
|
4599
|
+
async Users_LinkedEntityIDArray(@Root() entity_: Entity_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
3875
4600
|
this.CheckUserReadPermissions('Users', userPayload);
|
|
3876
4601
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwUsers] WHERE [LinkedEntityID]='${entity_.ID}' ` + this.getRowLevelSecurityWhereClause('Users', userPayload, EntityPermissionType.Read, 'AND');
|
|
3877
4602
|
const result = this.ArrayMapFieldNamesToCodeNames('Users', await dataSource.query(sSQL));
|
|
@@ -3879,7 +4604,7 @@ export class EntityResolverBase extends ResolverBase {
|
|
|
3879
4604
|
}
|
|
3880
4605
|
|
|
3881
4606
|
@FieldResolver(() => [CompanyIntegrationRecordMap_])
|
|
3882
|
-
async
|
|
4607
|
+
async CompanyIntegrationRecordMaps_EntityIDArray(@Root() entity_: Entity_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
3883
4608
|
this.CheckUserReadPermissions('Company Integration Record Maps', userPayload);
|
|
3884
4609
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwCompanyIntegrationRecordMaps] WHERE [EntityID]='${entity_.ID}' ` + this.getRowLevelSecurityWhereClause('Company Integration Record Maps', userPayload, EntityPermissionType.Read, 'AND');
|
|
3885
4610
|
const result = this.ArrayMapFieldNamesToCodeNames('Company Integration Record Maps', await dataSource.query(sSQL));
|
|
@@ -3887,7 +4612,7 @@ export class EntityResolverBase extends ResolverBase {
|
|
|
3887
4612
|
}
|
|
3888
4613
|
|
|
3889
4614
|
@FieldResolver(() => [Entity_])
|
|
3890
|
-
async
|
|
4615
|
+
async Entities_ParentIDArray(@Root() entity_: Entity_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
3891
4616
|
this.CheckUserReadPermissions('Entities', userPayload);
|
|
3892
4617
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwEntities] WHERE [ParentID]='${entity_.ID}' ` + this.getRowLevelSecurityWhereClause('Entities', userPayload, EntityPermissionType.Read, 'AND');
|
|
3893
4618
|
const result = this.ArrayMapFieldNamesToCodeNames('Entities', await dataSource.query(sSQL));
|
|
@@ -3895,7 +4620,7 @@ export class EntityResolverBase extends ResolverBase {
|
|
|
3895
4620
|
}
|
|
3896
4621
|
|
|
3897
4622
|
@FieldResolver(() => [UserViewCategory_])
|
|
3898
|
-
async
|
|
4623
|
+
async UserViewCategories_EntityIDArray(@Root() entity_: Entity_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
3899
4624
|
this.CheckUserReadPermissions('User View Categories', userPayload);
|
|
3900
4625
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwUserViewCategories] WHERE [EntityID]='${entity_.ID}' ` + this.getRowLevelSecurityWhereClause('User View Categories', userPayload, EntityPermissionType.Read, 'AND');
|
|
3901
4626
|
const result = this.ArrayMapFieldNamesToCodeNames('User View Categories', await dataSource.query(sSQL));
|
|
@@ -3903,7 +4628,7 @@ export class EntityResolverBase extends ResolverBase {
|
|
|
3903
4628
|
}
|
|
3904
4629
|
|
|
3905
4630
|
@FieldResolver(() => [EntityAIAction_])
|
|
3906
|
-
async
|
|
4631
|
+
async EntityAIActions_EntityIDArray(@Root() entity_: Entity_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
3907
4632
|
this.CheckUserReadPermissions('Entity AI Actions', userPayload);
|
|
3908
4633
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwEntityAIActions] WHERE [EntityID]='${entity_.ID}' ` + this.getRowLevelSecurityWhereClause('Entity AI Actions', userPayload, EntityPermissionType.Read, 'AND');
|
|
3909
4634
|
const result = this.ArrayMapFieldNamesToCodeNames('Entity AI Actions', await dataSource.query(sSQL));
|
|
@@ -3911,7 +4636,7 @@ export class EntityResolverBase extends ResolverBase {
|
|
|
3911
4636
|
}
|
|
3912
4637
|
|
|
3913
4638
|
@FieldResolver(() => [EntityAction_])
|
|
3914
|
-
async
|
|
4639
|
+
async EntityActions_EntityIDArray(@Root() entity_: Entity_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
3915
4640
|
this.CheckUserReadPermissions('Entity Actions', userPayload);
|
|
3916
4641
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwEntityActions] WHERE [EntityID]='${entity_.ID}' ` + this.getRowLevelSecurityWhereClause('Entity Actions', userPayload, EntityPermissionType.Read, 'AND');
|
|
3917
4642
|
const result = this.ArrayMapFieldNamesToCodeNames('Entity Actions', await dataSource.query(sSQL));
|
|
@@ -3919,7 +4644,7 @@ export class EntityResolverBase extends ResolverBase {
|
|
|
3919
4644
|
}
|
|
3920
4645
|
|
|
3921
4646
|
@FieldResolver(() => [Conversation_])
|
|
3922
|
-
async
|
|
4647
|
+
async Conversations_LinkedEntityIDArray(@Root() entity_: Entity_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
3923
4648
|
this.CheckUserReadPermissions('Conversations', userPayload);
|
|
3924
4649
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwConversations] WHERE [LinkedEntityID]='${entity_.ID}' ` + this.getRowLevelSecurityWhereClause('Conversations', userPayload, EntityPermissionType.Read, 'AND');
|
|
3925
4650
|
const result = this.ArrayMapFieldNamesToCodeNames('Conversations', await dataSource.query(sSQL));
|
|
@@ -3927,7 +4652,7 @@ export class EntityResolverBase extends ResolverBase {
|
|
|
3927
4652
|
}
|
|
3928
4653
|
|
|
3929
4654
|
@FieldResolver(() => [DuplicateRun_])
|
|
3930
|
-
async
|
|
4655
|
+
async DuplicateRuns_EntityIDArray(@Root() entity_: Entity_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
3931
4656
|
this.CheckUserReadPermissions('Duplicate Runs', userPayload);
|
|
3932
4657
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwDuplicateRuns] WHERE [EntityID]='${entity_.ID}' ` + this.getRowLevelSecurityWhereClause('Duplicate Runs', userPayload, EntityPermissionType.Read, 'AND');
|
|
3933
4658
|
const result = this.ArrayMapFieldNamesToCodeNames('Duplicate Runs', await dataSource.query(sSQL));
|
|
@@ -3935,7 +4660,7 @@ export class EntityResolverBase extends ResolverBase {
|
|
|
3935
4660
|
}
|
|
3936
4661
|
|
|
3937
4662
|
@FieldResolver(() => [TaggedItem_])
|
|
3938
|
-
async
|
|
4663
|
+
async TaggedItems_EntityIDArray(@Root() entity_: Entity_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
3939
4664
|
this.CheckUserReadPermissions('Tagged Items', userPayload);
|
|
3940
4665
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwTaggedItems] WHERE [EntityID]='${entity_.ID}' ` + this.getRowLevelSecurityWhereClause('Tagged Items', userPayload, EntityPermissionType.Read, 'AND');
|
|
3941
4666
|
const result = this.ArrayMapFieldNamesToCodeNames('Tagged Items', await dataSource.query(sSQL));
|
|
@@ -3943,7 +4668,7 @@ export class EntityResolverBase extends ResolverBase {
|
|
|
3943
4668
|
}
|
|
3944
4669
|
|
|
3945
4670
|
@FieldResolver(() => [RecordMergeLog_])
|
|
3946
|
-
async
|
|
4671
|
+
async RecordMergeLogs_EntityIDArray(@Root() entity_: Entity_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
3947
4672
|
this.CheckUserReadPermissions('Record Merge Logs', userPayload);
|
|
3948
4673
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwRecordMergeLogs] WHERE [EntityID]='${entity_.ID}' ` + this.getRowLevelSecurityWhereClause('Record Merge Logs', userPayload, EntityPermissionType.Read, 'AND');
|
|
3949
4674
|
const result = this.ArrayMapFieldNamesToCodeNames('Record Merge Logs', await dataSource.query(sSQL));
|
|
@@ -3951,7 +4676,7 @@ export class EntityResolverBase extends ResolverBase {
|
|
|
3951
4676
|
}
|
|
3952
4677
|
|
|
3953
4678
|
@FieldResolver(() => [UserApplicationEntity_])
|
|
3954
|
-
async
|
|
4679
|
+
async UserApplicationEntities_EntityIDArray(@Root() entity_: Entity_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
3955
4680
|
this.CheckUserReadPermissions('User Application Entities', userPayload);
|
|
3956
4681
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwUserApplicationEntities] WHERE [EntityID]='${entity_.ID}' ` + this.getRowLevelSecurityWhereClause('User Application Entities', userPayload, EntityPermissionType.Read, 'AND');
|
|
3957
4682
|
const result = this.ArrayMapFieldNamesToCodeNames('User Application Entities', await dataSource.query(sSQL));
|
|
@@ -3959,7 +4684,7 @@ export class EntityResolverBase extends ResolverBase {
|
|
|
3959
4684
|
}
|
|
3960
4685
|
|
|
3961
4686
|
@FieldResolver(() => [QueryField_])
|
|
3962
|
-
async
|
|
4687
|
+
async QueryFields_SourceEntityIDArray(@Root() entity_: Entity_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
3963
4688
|
this.CheckUserReadPermissions('Query Fields', userPayload);
|
|
3964
4689
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwQueryFields] WHERE [SourceEntityID]='${entity_.ID}' ` + this.getRowLevelSecurityWhereClause('Query Fields', userPayload, EntityPermissionType.Read, 'AND');
|
|
3965
4690
|
const result = this.ArrayMapFieldNamesToCodeNames('Query Fields', await dataSource.query(sSQL));
|
|
@@ -3967,7 +4692,7 @@ export class EntityResolverBase extends ResolverBase {
|
|
|
3967
4692
|
}
|
|
3968
4693
|
|
|
3969
4694
|
@FieldResolver(() => [UserView_])
|
|
3970
|
-
async
|
|
4695
|
+
async UserViews_EntityIDArray(@Root() entity_: Entity_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
3971
4696
|
this.CheckUserReadPermissions('User Views', userPayload);
|
|
3972
4697
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwUserViews] WHERE [EntityID]='${entity_.ID}' ` + this.getRowLevelSecurityWhereClause('User Views', userPayload, EntityPermissionType.Read, 'AND');
|
|
3973
4698
|
const result = this.ArrayMapFieldNamesToCodeNames('User Views', await dataSource.query(sSQL));
|
|
@@ -3975,7 +4700,7 @@ export class EntityResolverBase extends ResolverBase {
|
|
|
3975
4700
|
}
|
|
3976
4701
|
|
|
3977
4702
|
@FieldResolver(() => [RecommendationItem_])
|
|
3978
|
-
async
|
|
4703
|
+
async RecommendationItems_DestinationEntityIDArray(@Root() entity_: Entity_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
3979
4704
|
this.CheckUserReadPermissions('Recommendation Items', userPayload);
|
|
3980
4705
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwRecommendationItems] WHERE [DestinationEntityID]='${entity_.ID}' ` + this.getRowLevelSecurityWhereClause('Recommendation Items', userPayload, EntityPermissionType.Read, 'AND');
|
|
3981
4706
|
const result = this.ArrayMapFieldNamesToCodeNames('Recommendation Items', await dataSource.query(sSQL));
|
|
@@ -3983,7 +4708,7 @@ export class EntityResolverBase extends ResolverBase {
|
|
|
3983
4708
|
}
|
|
3984
4709
|
|
|
3985
4710
|
@FieldResolver(() => [EntityPermission_])
|
|
3986
|
-
async
|
|
4711
|
+
async EntityPermissions_EntityIDArray(@Root() entity_: Entity_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
3987
4712
|
this.CheckUserReadPermissions('Entity Permissions', userPayload);
|
|
3988
4713
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwEntityPermissions] WHERE [EntityID]='${entity_.ID}' ` + this.getRowLevelSecurityWhereClause('Entity Permissions', userPayload, EntityPermissionType.Read, 'AND');
|
|
3989
4714
|
const result = this.ArrayMapFieldNamesToCodeNames('Entity Permissions', await dataSource.query(sSQL));
|
|
@@ -3991,7 +4716,7 @@ export class EntityResolverBase extends ResolverBase {
|
|
|
3991
4716
|
}
|
|
3992
4717
|
|
|
3993
4718
|
@FieldResolver(() => [List_])
|
|
3994
|
-
async
|
|
4719
|
+
async Lists_EntityIDArray(@Root() entity_: Entity_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
3995
4720
|
this.CheckUserReadPermissions('Lists', userPayload);
|
|
3996
4721
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwLists] WHERE [EntityID]='${entity_.ID}' ` + this.getRowLevelSecurityWhereClause('Lists', userPayload, EntityPermissionType.Read, 'AND');
|
|
3997
4722
|
const result = this.ArrayMapFieldNamesToCodeNames('Lists', await dataSource.query(sSQL));
|
|
@@ -3999,7 +4724,7 @@ export class EntityResolverBase extends ResolverBase {
|
|
|
3999
4724
|
}
|
|
4000
4725
|
|
|
4001
4726
|
@FieldResolver(() => [UserRecordLog_])
|
|
4002
|
-
async
|
|
4727
|
+
async UserRecordLogs_EntityIDArray(@Root() entity_: Entity_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
4003
4728
|
this.CheckUserReadPermissions('User Record Logs', userPayload);
|
|
4004
4729
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwUserRecordLogs] WHERE [EntityID]='${entity_.ID}' ` + this.getRowLevelSecurityWhereClause('User Record Logs', userPayload, EntityPermissionType.Read, 'AND');
|
|
4005
4730
|
const result = this.ArrayMapFieldNamesToCodeNames('User Record Logs', await dataSource.query(sSQL));
|
|
@@ -4007,7 +4732,7 @@ export class EntityResolverBase extends ResolverBase {
|
|
|
4007
4732
|
}
|
|
4008
4733
|
|
|
4009
4734
|
@FieldResolver(() => [EntityDocument_])
|
|
4010
|
-
async
|
|
4735
|
+
async EntityDocuments_EntityIDArray(@Root() entity_: Entity_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
4011
4736
|
this.CheckUserReadPermissions('Entity Documents', userPayload);
|
|
4012
4737
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwEntityDocuments] WHERE [EntityID]='${entity_.ID}' ` + this.getRowLevelSecurityWhereClause('Entity Documents', userPayload, EntityPermissionType.Read, 'AND');
|
|
4013
4738
|
const result = this.ArrayMapFieldNamesToCodeNames('Entity Documents', await dataSource.query(sSQL));
|
|
@@ -4015,7 +4740,7 @@ export class EntityResolverBase extends ResolverBase {
|
|
|
4015
4740
|
}
|
|
4016
4741
|
|
|
4017
4742
|
@FieldResolver(() => [Recommendation_])
|
|
4018
|
-
async
|
|
4743
|
+
async Recommendations_SourceEntityIDArray(@Root() entity_: Entity_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
4019
4744
|
this.CheckUserReadPermissions('Recommendations', userPayload);
|
|
4020
4745
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwRecommendations] WHERE [SourceEntityID]='${entity_.ID}' ` + this.getRowLevelSecurityWhereClause('Recommendations', userPayload, EntityPermissionType.Read, 'AND');
|
|
4021
4746
|
const result = this.ArrayMapFieldNamesToCodeNames('Recommendations', await dataSource.query(sSQL));
|
|
@@ -4023,7 +4748,7 @@ export class EntityResolverBase extends ResolverBase {
|
|
|
4023
4748
|
}
|
|
4024
4749
|
|
|
4025
4750
|
@FieldResolver(() => [FileEntityRecordLink_])
|
|
4026
|
-
async
|
|
4751
|
+
async FileEntityRecordLinks_EntityIDArray(@Root() entity_: Entity_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
4027
4752
|
this.CheckUserReadPermissions('File Entity Record Links', userPayload);
|
|
4028
4753
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwFileEntityRecordLinks] WHERE [EntityID]='${entity_.ID}' ` + this.getRowLevelSecurityWhereClause('File Entity Record Links', userPayload, EntityPermissionType.Read, 'AND');
|
|
4029
4754
|
const result = this.ArrayMapFieldNamesToCodeNames('File Entity Record Links', await dataSource.query(sSQL));
|
|
@@ -4031,7 +4756,7 @@ export class EntityResolverBase extends ResolverBase {
|
|
|
4031
4756
|
}
|
|
4032
4757
|
|
|
4033
4758
|
@FieldResolver(() => [EntitySetting_])
|
|
4034
|
-
async
|
|
4759
|
+
async EntitySettings_EntityIDArray(@Root() entity_: Entity_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
4035
4760
|
this.CheckUserReadPermissions('Entity Settings', userPayload);
|
|
4036
4761
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwEntitySettings] WHERE [EntityID]='${entity_.ID}' ` + this.getRowLevelSecurityWhereClause('Entity Settings', userPayload, EntityPermissionType.Read, 'AND');
|
|
4037
4762
|
const result = this.ArrayMapFieldNamesToCodeNames('Entity Settings', await dataSource.query(sSQL));
|
|
@@ -4039,7 +4764,7 @@ export class EntityResolverBase extends ResolverBase {
|
|
|
4039
4764
|
}
|
|
4040
4765
|
|
|
4041
4766
|
@FieldResolver(() => [EntityRelationship_])
|
|
4042
|
-
async
|
|
4767
|
+
async EntityRelationships_EntityIDArray(@Root() entity_: Entity_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
4043
4768
|
this.CheckUserReadPermissions('Entity Relationships', userPayload);
|
|
4044
4769
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwEntityRelationships] WHERE [EntityID]='${entity_.ID}' ` + this.getRowLevelSecurityWhereClause('Entity Relationships', userPayload, EntityPermissionType.Read, 'AND');
|
|
4045
4770
|
const result = this.ArrayMapFieldNamesToCodeNames('Entity Relationships', await dataSource.query(sSQL));
|
|
@@ -4047,7 +4772,7 @@ export class EntityResolverBase extends ResolverBase {
|
|
|
4047
4772
|
}
|
|
4048
4773
|
|
|
4049
4774
|
@FieldResolver(() => [CompanyIntegrationRunDetail_])
|
|
4050
|
-
async
|
|
4775
|
+
async CompanyIntegrationRunDetails_EntityIDArray(@Root() entity_: Entity_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
4051
4776
|
this.CheckUserReadPermissions('Company Integration Run Details', userPayload);
|
|
4052
4777
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwCompanyIntegrationRunDetails] WHERE [EntityID]='${entity_.ID}' ` + this.getRowLevelSecurityWhereClause('Company Integration Run Details', userPayload, EntityPermissionType.Read, 'AND');
|
|
4053
4778
|
const result = this.ArrayMapFieldNamesToCodeNames('Company Integration Run Details', await dataSource.query(sSQL));
|
|
@@ -4055,7 +4780,7 @@ export class EntityResolverBase extends ResolverBase {
|
|
|
4055
4780
|
}
|
|
4056
4781
|
|
|
4057
4782
|
@FieldResolver(() => [DataContextItem_])
|
|
4058
|
-
async
|
|
4783
|
+
async DataContextItems_EntityIDArray(@Root() entity_: Entity_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
4059
4784
|
this.CheckUserReadPermissions('Data Context Items', userPayload);
|
|
4060
4785
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwDataContextItems] WHERE [EntityID]='${entity_.ID}' ` + this.getRowLevelSecurityWhereClause('Data Context Items', userPayload, EntityPermissionType.Read, 'AND');
|
|
4061
4786
|
const result = this.ArrayMapFieldNamesToCodeNames('Data Context Items', await dataSource.query(sSQL));
|
|
@@ -4063,7 +4788,7 @@ export class EntityResolverBase extends ResolverBase {
|
|
|
4063
4788
|
}
|
|
4064
4789
|
|
|
4065
4790
|
@FieldResolver(() => [IntegrationURLFormat_])
|
|
4066
|
-
async
|
|
4791
|
+
async IntegrationURLFormats_EntityIDArray(@Root() entity_: Entity_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
4067
4792
|
this.CheckUserReadPermissions('Integration URL Formats', userPayload);
|
|
4068
4793
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwIntegrationURLFormats] WHERE [EntityID]='${entity_.ID}' ` + this.getRowLevelSecurityWhereClause('Integration URL Formats', userPayload, EntityPermissionType.Read, 'AND');
|
|
4069
4794
|
const result = this.ArrayMapFieldNamesToCodeNames('Integration URL Formats', await dataSource.query(sSQL));
|
|
@@ -4071,7 +4796,7 @@ export class EntityResolverBase extends ResolverBase {
|
|
|
4071
4796
|
}
|
|
4072
4797
|
|
|
4073
4798
|
@FieldResolver(() => [EntityField_])
|
|
4074
|
-
async
|
|
4799
|
+
async EntityFields_EntityIDArray(@Root() entity_: Entity_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
4075
4800
|
this.CheckUserReadPermissions('Entity Fields', userPayload);
|
|
4076
4801
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwEntityFields] WHERE [EntityID]='${entity_.ID}' ` + this.getRowLevelSecurityWhereClause('Entity Fields', userPayload, EntityPermissionType.Read, 'AND');
|
|
4077
4802
|
const result = this.ArrayMapFieldNamesToCodeNames('Entity Fields', await dataSource.query(sSQL));
|
|
@@ -4079,7 +4804,7 @@ export class EntityResolverBase extends ResolverBase {
|
|
|
4079
4804
|
}
|
|
4080
4805
|
|
|
4081
4806
|
@FieldResolver(() => [UserFavorite_])
|
|
4082
|
-
async
|
|
4807
|
+
async UserFavorites_EntityIDArray(@Root() entity_: Entity_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
4083
4808
|
this.CheckUserReadPermissions('User Favorites', userPayload);
|
|
4084
4809
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwUserFavorites] WHERE [EntityID]='${entity_.ID}' ` + this.getRowLevelSecurityWhereClause('User Favorites', userPayload, EntityPermissionType.Read, 'AND');
|
|
4085
4810
|
const result = this.ArrayMapFieldNamesToCodeNames('User Favorites', await dataSource.query(sSQL));
|
|
@@ -4087,7 +4812,7 @@ export class EntityResolverBase extends ResolverBase {
|
|
|
4087
4812
|
}
|
|
4088
4813
|
|
|
4089
4814
|
@FieldResolver(() => [EntityCommunicationMessageType_])
|
|
4090
|
-
async
|
|
4815
|
+
async EntityCommunicationMessageTypes_EntityIDArray(@Root() entity_: Entity_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
4091
4816
|
this.CheckUserReadPermissions('Entity Communication Message Types', userPayload);
|
|
4092
4817
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwEntityCommunicationMessageTypes] WHERE [EntityID]='${entity_.ID}' ` + this.getRowLevelSecurityWhereClause('Entity Communication Message Types', userPayload, EntityPermissionType.Read, 'AND');
|
|
4093
4818
|
const result = this.ArrayMapFieldNamesToCodeNames('Entity Communication Message Types', await dataSource.query(sSQL));
|
|
@@ -4095,7 +4820,7 @@ export class EntityResolverBase extends ResolverBase {
|
|
|
4095
4820
|
}
|
|
4096
4821
|
|
|
4097
4822
|
@FieldResolver(() => [EntityRecordDocument_])
|
|
4098
|
-
async
|
|
4823
|
+
async EntityRecordDocuments_EntityIDArray(@Root() entity_: Entity_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
4099
4824
|
this.CheckUserReadPermissions('Entity Record Documents', userPayload);
|
|
4100
4825
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwEntityRecordDocuments] WHERE [EntityID]='${entity_.ID}' ` + this.getRowLevelSecurityWhereClause('Entity Record Documents', userPayload, EntityPermissionType.Read, 'AND');
|
|
4101
4826
|
const result = this.ArrayMapFieldNamesToCodeNames('Entity Record Documents', await dataSource.query(sSQL));
|
|
@@ -4103,7 +4828,7 @@ export class EntityResolverBase extends ResolverBase {
|
|
|
4103
4828
|
}
|
|
4104
4829
|
|
|
4105
4830
|
@FieldResolver(() => [RecordChange_])
|
|
4106
|
-
async
|
|
4831
|
+
async RecordChanges_EntityIDArray(@Root() entity_: Entity_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
4107
4832
|
this.CheckUserReadPermissions('Record Changes', userPayload);
|
|
4108
4833
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwRecordChanges] WHERE [EntityID]='${entity_.ID}' ` + this.getRowLevelSecurityWhereClause('Record Changes', userPayload, EntityPermissionType.Read, 'AND');
|
|
4109
4834
|
const result = this.ArrayMapFieldNamesToCodeNames('Record Changes', await dataSource.query(sSQL));
|
|
@@ -4111,7 +4836,7 @@ export class EntityResolverBase extends ResolverBase {
|
|
|
4111
4836
|
}
|
|
4112
4837
|
|
|
4113
4838
|
@FieldResolver(() => [ApplicationEntity_])
|
|
4114
|
-
async
|
|
4839
|
+
async ApplicationEntities_EntityIDArray(@Root() entity_: Entity_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
4115
4840
|
this.CheckUserReadPermissions('Application Entities', userPayload);
|
|
4116
4841
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwApplicationEntities] WHERE [EntityID]='${entity_.ID}' ` + this.getRowLevelSecurityWhereClause('Application Entities', userPayload, EntityPermissionType.Read, 'AND');
|
|
4117
4842
|
const result = this.ArrayMapFieldNamesToCodeNames('Application Entities', await dataSource.query(sSQL));
|
|
@@ -4119,7 +4844,7 @@ export class EntityResolverBase extends ResolverBase {
|
|
|
4119
4844
|
}
|
|
4120
4845
|
|
|
4121
4846
|
@FieldResolver(() => [ResourceType_])
|
|
4122
|
-
async
|
|
4847
|
+
async ResourceTypes_EntityIDArray(@Root() entity_: Entity_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
4123
4848
|
this.CheckUserReadPermissions('Resource Types', userPayload);
|
|
4124
4849
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwResourceTypes] WHERE [EntityID]='${entity_.ID}' ` + this.getRowLevelSecurityWhereClause('Resource Types', userPayload, EntityPermissionType.Read, 'AND');
|
|
4125
4850
|
const result = this.ArrayMapFieldNamesToCodeNames('Resource Types', await dataSource.query(sSQL));
|
|
@@ -4480,7 +5205,7 @@ export class UserResolverBase extends ResolverBase {
|
|
|
4480
5205
|
}
|
|
4481
5206
|
|
|
4482
5207
|
@FieldResolver(() => [RecommendationRun_])
|
|
4483
|
-
async
|
|
5208
|
+
async RecommendationRuns_RunByUserIDArray(@Root() user_: User_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
4484
5209
|
this.CheckUserReadPermissions('Recommendation Runs', userPayload);
|
|
4485
5210
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwRecommendationRuns] WHERE [RunByUserID]='${user_.ID}' ` + this.getRowLevelSecurityWhereClause('Recommendation Runs', userPayload, EntityPermissionType.Read, 'AND');
|
|
4486
5211
|
const result = this.ArrayMapFieldNamesToCodeNames('Recommendation Runs', await dataSource.query(sSQL));
|
|
@@ -4488,7 +5213,7 @@ export class UserResolverBase extends ResolverBase {
|
|
|
4488
5213
|
}
|
|
4489
5214
|
|
|
4490
5215
|
@FieldResolver(() => [UserApplication_])
|
|
4491
|
-
async
|
|
5216
|
+
async UserApplications_UserIDArray(@Root() user_: User_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
4492
5217
|
this.CheckUserReadPermissions('User Applications', userPayload);
|
|
4493
5218
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwUserApplications] WHERE [UserID]='${user_.ID}' ` + this.getRowLevelSecurityWhereClause('User Applications', userPayload, EntityPermissionType.Read, 'AND');
|
|
4494
5219
|
const result = this.ArrayMapFieldNamesToCodeNames('User Applications', await dataSource.query(sSQL));
|
|
@@ -4496,7 +5221,7 @@ export class UserResolverBase extends ResolverBase {
|
|
|
4496
5221
|
}
|
|
4497
5222
|
|
|
4498
5223
|
@FieldResolver(() => [Dashboard_])
|
|
4499
|
-
async
|
|
5224
|
+
async Dashboards_UserIDArray(@Root() user_: User_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
4500
5225
|
this.CheckUserReadPermissions('Dashboards', userPayload);
|
|
4501
5226
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwDashboards] WHERE [UserID]='${user_.ID}' ` + this.getRowLevelSecurityWhereClause('Dashboards', userPayload, EntityPermissionType.Read, 'AND');
|
|
4502
5227
|
const result = this.ArrayMapFieldNamesToCodeNames('Dashboards', await dataSource.query(sSQL));
|
|
@@ -4504,7 +5229,7 @@ export class UserResolverBase extends ResolverBase {
|
|
|
4504
5229
|
}
|
|
4505
5230
|
|
|
4506
5231
|
@FieldResolver(() => [RecordChange_])
|
|
4507
|
-
async
|
|
5232
|
+
async RecordChanges_UserIDArray(@Root() user_: User_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
4508
5233
|
this.CheckUserReadPermissions('Record Changes', userPayload);
|
|
4509
5234
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwRecordChanges] WHERE [UserID]='${user_.ID}' ` + this.getRowLevelSecurityWhereClause('Record Changes', userPayload, EntityPermissionType.Read, 'AND');
|
|
4510
5235
|
const result = this.ArrayMapFieldNamesToCodeNames('Record Changes', await dataSource.query(sSQL));
|
|
@@ -4512,7 +5237,7 @@ export class UserResolverBase extends ResolverBase {
|
|
|
4512
5237
|
}
|
|
4513
5238
|
|
|
4514
5239
|
@FieldResolver(() => [Report_])
|
|
4515
|
-
async
|
|
5240
|
+
async Reports_UserIDArray(@Root() user_: User_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
4516
5241
|
this.CheckUserReadPermissions('Reports', userPayload);
|
|
4517
5242
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwReports] WHERE [UserID]='${user_.ID}' ` + this.getRowLevelSecurityWhereClause('Reports', userPayload, EntityPermissionType.Read, 'AND');
|
|
4518
5243
|
const result = this.ArrayMapFieldNamesToCodeNames('Reports', await dataSource.query(sSQL));
|
|
@@ -4520,7 +5245,7 @@ export class UserResolverBase extends ResolverBase {
|
|
|
4520
5245
|
}
|
|
4521
5246
|
|
|
4522
5247
|
@FieldResolver(() => [DashboardCategory_])
|
|
4523
|
-
async
|
|
5248
|
+
async DashboardCategories_UserIDArray(@Root() user_: User_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
4524
5249
|
this.CheckUserReadPermissions('Dashboard Categories', userPayload);
|
|
4525
5250
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwDashboardCategories] WHERE [UserID]='${user_.ID}' ` + this.getRowLevelSecurityWhereClause('Dashboard Categories', userPayload, EntityPermissionType.Read, 'AND');
|
|
4526
5251
|
const result = this.ArrayMapFieldNamesToCodeNames('Dashboard Categories', await dataSource.query(sSQL));
|
|
@@ -4528,7 +5253,7 @@ export class UserResolverBase extends ResolverBase {
|
|
|
4528
5253
|
}
|
|
4529
5254
|
|
|
4530
5255
|
@FieldResolver(() => [Action_])
|
|
4531
|
-
async
|
|
5256
|
+
async Actions_CodeApprovedByUserIDArray(@Root() user_: User_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
4532
5257
|
this.CheckUserReadPermissions('Actions', userPayload);
|
|
4533
5258
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwActions] WHERE [CodeApprovedByUserID]='${user_.ID}' ` + this.getRowLevelSecurityWhereClause('Actions', userPayload, EntityPermissionType.Read, 'AND');
|
|
4534
5259
|
const result = this.ArrayMapFieldNamesToCodeNames('Actions', await dataSource.query(sSQL));
|
|
@@ -4536,7 +5261,7 @@ export class UserResolverBase extends ResolverBase {
|
|
|
4536
5261
|
}
|
|
4537
5262
|
|
|
4538
5263
|
@FieldResolver(() => [QueryCategory_])
|
|
4539
|
-
async
|
|
5264
|
+
async QueryCategories_UserIDArray(@Root() user_: User_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
4540
5265
|
this.CheckUserReadPermissions('Query Categories', userPayload);
|
|
4541
5266
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwQueryCategories] WHERE [UserID]='${user_.ID}' ` + this.getRowLevelSecurityWhereClause('Query Categories', userPayload, EntityPermissionType.Read, 'AND');
|
|
4542
5267
|
const result = this.ArrayMapFieldNamesToCodeNames('Query Categories', await dataSource.query(sSQL));
|
|
@@ -4544,7 +5269,7 @@ export class UserResolverBase extends ResolverBase {
|
|
|
4544
5269
|
}
|
|
4545
5270
|
|
|
4546
5271
|
@FieldResolver(() => [UserViewCategory_])
|
|
4547
|
-
async
|
|
5272
|
+
async UserViewCategories_UserIDArray(@Root() user_: User_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
4548
5273
|
this.CheckUserReadPermissions('User View Categories', userPayload);
|
|
4549
5274
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwUserViewCategories] WHERE [UserID]='${user_.ID}' ` + this.getRowLevelSecurityWhereClause('User View Categories', userPayload, EntityPermissionType.Read, 'AND');
|
|
4550
5275
|
const result = this.ArrayMapFieldNamesToCodeNames('User View Categories', await dataSource.query(sSQL));
|
|
@@ -4552,7 +5277,7 @@ export class UserResolverBase extends ResolverBase {
|
|
|
4552
5277
|
}
|
|
4553
5278
|
|
|
4554
5279
|
@FieldResolver(() => [DataContext_])
|
|
4555
|
-
async
|
|
5280
|
+
async DataContexts_UserIDArray(@Root() user_: User_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
4556
5281
|
this.CheckUserReadPermissions('Data Contexts', userPayload);
|
|
4557
5282
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwDataContexts] WHERE [UserID]='${user_.ID}' ` + this.getRowLevelSecurityWhereClause('Data Contexts', userPayload, EntityPermissionType.Read, 'AND');
|
|
4558
5283
|
const result = this.ArrayMapFieldNamesToCodeNames('Data Contexts', await dataSource.query(sSQL));
|
|
@@ -4560,7 +5285,7 @@ export class UserResolverBase extends ResolverBase {
|
|
|
4560
5285
|
}
|
|
4561
5286
|
|
|
4562
5287
|
@FieldResolver(() => [RecordMergeLog_])
|
|
4563
|
-
async
|
|
5288
|
+
async RecordMergeLogs_InitiatedByUserIDArray(@Root() user_: User_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
4564
5289
|
this.CheckUserReadPermissions('Record Merge Logs', userPayload);
|
|
4565
5290
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwRecordMergeLogs] WHERE [InitiatedByUserID]='${user_.ID}' ` + this.getRowLevelSecurityWhereClause('Record Merge Logs', userPayload, EntityPermissionType.Read, 'AND');
|
|
4566
5291
|
const result = this.ArrayMapFieldNamesToCodeNames('Record Merge Logs', await dataSource.query(sSQL));
|
|
@@ -4568,7 +5293,7 @@ export class UserResolverBase extends ResolverBase {
|
|
|
4568
5293
|
}
|
|
4569
5294
|
|
|
4570
5295
|
@FieldResolver(() => [CompanyIntegrationRun_])
|
|
4571
|
-
async
|
|
5296
|
+
async CompanyIntegrationRuns_RunByUserIDArray(@Root() user_: User_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
4572
5297
|
this.CheckUserReadPermissions('Company Integration Runs', userPayload);
|
|
4573
5298
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwCompanyIntegrationRuns] WHERE [RunByUserID]='${user_.ID}' ` + this.getRowLevelSecurityWhereClause('Company Integration Runs', userPayload, EntityPermissionType.Read, 'AND');
|
|
4574
5299
|
const result = this.ArrayMapFieldNamesToCodeNames('Company Integration Runs', await dataSource.query(sSQL));
|
|
@@ -4576,7 +5301,7 @@ export class UserResolverBase extends ResolverBase {
|
|
|
4576
5301
|
}
|
|
4577
5302
|
|
|
4578
5303
|
@FieldResolver(() => [ReportCategory_])
|
|
4579
|
-
async
|
|
5304
|
+
async ReportCategories_UserIDArray(@Root() user_: User_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
4580
5305
|
this.CheckUserReadPermissions('Report Categories', userPayload);
|
|
4581
5306
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwReportCategories] WHERE [UserID]='${user_.ID}' ` + this.getRowLevelSecurityWhereClause('Report Categories', userPayload, EntityPermissionType.Read, 'AND');
|
|
4582
5307
|
const result = this.ArrayMapFieldNamesToCodeNames('Report Categories', await dataSource.query(sSQL));
|
|
@@ -4584,7 +5309,7 @@ export class UserResolverBase extends ResolverBase {
|
|
|
4584
5309
|
}
|
|
4585
5310
|
|
|
4586
5311
|
@FieldResolver(() => [RecordChangeReplayRun_])
|
|
4587
|
-
async
|
|
5312
|
+
async RecordChangeReplayRuns_UserIDArray(@Root() user_: User_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
4588
5313
|
this.CheckUserReadPermissions('Record Change Replay Runs', userPayload);
|
|
4589
5314
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwRecordChangeReplayRuns] WHERE [UserID]='${user_.ID}' ` + this.getRowLevelSecurityWhereClause('Record Change Replay Runs', userPayload, EntityPermissionType.Read, 'AND');
|
|
4590
5315
|
const result = this.ArrayMapFieldNamesToCodeNames('Record Change Replay Runs', await dataSource.query(sSQL));
|
|
@@ -4592,7 +5317,7 @@ export class UserResolverBase extends ResolverBase {
|
|
|
4592
5317
|
}
|
|
4593
5318
|
|
|
4594
5319
|
@FieldResolver(() => [UserRole_])
|
|
4595
|
-
async
|
|
5320
|
+
async UserRoles_UserIDArray(@Root() user_: User_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
4596
5321
|
this.CheckUserReadPermissions('User Roles', userPayload);
|
|
4597
5322
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwUserRoles] WHERE [UserID]='${user_.ID}' ` + this.getRowLevelSecurityWhereClause('User Roles', userPayload, EntityPermissionType.Read, 'AND');
|
|
4598
5323
|
const result = this.ArrayMapFieldNamesToCodeNames('User Roles', await dataSource.query(sSQL));
|
|
@@ -4600,7 +5325,7 @@ export class UserResolverBase extends ResolverBase {
|
|
|
4600
5325
|
}
|
|
4601
5326
|
|
|
4602
5327
|
@FieldResolver(() => [UserViewRun_])
|
|
4603
|
-
async
|
|
5328
|
+
async UserViewRuns_RunByUserIDArray(@Root() user_: User_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
4604
5329
|
this.CheckUserReadPermissions('User View Runs', userPayload);
|
|
4605
5330
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwUserViewRuns] WHERE [RunByUserID]='${user_.ID}' ` + this.getRowLevelSecurityWhereClause('User View Runs', userPayload, EntityPermissionType.Read, 'AND');
|
|
4606
5331
|
const result = this.ArrayMapFieldNamesToCodeNames('User View Runs', await dataSource.query(sSQL));
|
|
@@ -4608,7 +5333,7 @@ export class UserResolverBase extends ResolverBase {
|
|
|
4608
5333
|
}
|
|
4609
5334
|
|
|
4610
5335
|
@FieldResolver(() => [Workspace_])
|
|
4611
|
-
async
|
|
5336
|
+
async Workspaces_UserIDArray(@Root() user_: User_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
4612
5337
|
this.CheckUserReadPermissions('Workspaces', userPayload);
|
|
4613
5338
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwWorkspaces] WHERE [UserID]='${user_.ID}' ` + this.getRowLevelSecurityWhereClause('Workspaces', userPayload, EntityPermissionType.Read, 'AND');
|
|
4614
5339
|
const result = this.ArrayMapFieldNamesToCodeNames('Workspaces', await dataSource.query(sSQL));
|
|
@@ -4616,7 +5341,7 @@ export class UserResolverBase extends ResolverBase {
|
|
|
4616
5341
|
}
|
|
4617
5342
|
|
|
4618
5343
|
@FieldResolver(() => [Conversation_])
|
|
4619
|
-
async
|
|
5344
|
+
async Conversations_UserIDArray(@Root() user_: User_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
4620
5345
|
this.CheckUserReadPermissions('Conversations', userPayload);
|
|
4621
5346
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwConversations] WHERE [UserID]='${user_.ID}' ` + this.getRowLevelSecurityWhereClause('Conversations', userPayload, EntityPermissionType.Read, 'AND');
|
|
4622
5347
|
const result = this.ArrayMapFieldNamesToCodeNames('Conversations', await dataSource.query(sSQL));
|
|
@@ -4624,7 +5349,7 @@ export class UserResolverBase extends ResolverBase {
|
|
|
4624
5349
|
}
|
|
4625
5350
|
|
|
4626
5351
|
@FieldResolver(() => [List_])
|
|
4627
|
-
async
|
|
5352
|
+
async Lists_UserIDArray(@Root() user_: User_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
4628
5353
|
this.CheckUserReadPermissions('Lists', userPayload);
|
|
4629
5354
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwLists] WHERE [UserID]='${user_.ID}' ` + this.getRowLevelSecurityWhereClause('Lists', userPayload, EntityPermissionType.Read, 'AND');
|
|
4630
5355
|
const result = this.ArrayMapFieldNamesToCodeNames('Lists', await dataSource.query(sSQL));
|
|
@@ -4632,7 +5357,7 @@ export class UserResolverBase extends ResolverBase {
|
|
|
4632
5357
|
}
|
|
4633
5358
|
|
|
4634
5359
|
@FieldResolver(() => [CommunicationRun_])
|
|
4635
|
-
async
|
|
5360
|
+
async CommunicationRuns_UserIDArray(@Root() user_: User_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
4636
5361
|
this.CheckUserReadPermissions('Communication Runs', userPayload);
|
|
4637
5362
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwCommunicationRuns] WHERE [UserID]='${user_.ID}' ` + this.getRowLevelSecurityWhereClause('Communication Runs', userPayload, EntityPermissionType.Read, 'AND');
|
|
4638
5363
|
const result = this.ArrayMapFieldNamesToCodeNames('Communication Runs', await dataSource.query(sSQL));
|
|
@@ -4640,7 +5365,7 @@ export class UserResolverBase extends ResolverBase {
|
|
|
4640
5365
|
}
|
|
4641
5366
|
|
|
4642
5367
|
@FieldResolver(() => [ActionExecutionLog_])
|
|
4643
|
-
async
|
|
5368
|
+
async ActionExecutionLogs_UserIDArray(@Root() user_: User_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
4644
5369
|
this.CheckUserReadPermissions('Action Execution Logs', userPayload);
|
|
4645
5370
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwActionExecutionLogs] WHERE [UserID]='${user_.ID}' ` + this.getRowLevelSecurityWhereClause('Action Execution Logs', userPayload, EntityPermissionType.Read, 'AND');
|
|
4646
5371
|
const result = this.ArrayMapFieldNamesToCodeNames('Action Execution Logs', await dataSource.query(sSQL));
|
|
@@ -4648,7 +5373,7 @@ export class UserResolverBase extends ResolverBase {
|
|
|
4648
5373
|
}
|
|
4649
5374
|
|
|
4650
5375
|
@FieldResolver(() => [AuditLog_])
|
|
4651
|
-
async
|
|
5376
|
+
async AuditLogs_UserIDArray(@Root() user_: User_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
4652
5377
|
this.CheckUserReadPermissions('Audit Logs', userPayload);
|
|
4653
5378
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAuditLogs] WHERE [UserID]='${user_.ID}' ` + this.getRowLevelSecurityWhereClause('Audit Logs', userPayload, EntityPermissionType.Read, 'AND');
|
|
4654
5379
|
const result = this.ArrayMapFieldNamesToCodeNames('Audit Logs', await dataSource.query(sSQL));
|
|
@@ -4656,7 +5381,7 @@ export class UserResolverBase extends ResolverBase {
|
|
|
4656
5381
|
}
|
|
4657
5382
|
|
|
4658
5383
|
@FieldResolver(() => [ReportSnapshot_])
|
|
4659
|
-
async
|
|
5384
|
+
async ReportSnapshots_UserIDArray(@Root() user_: User_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
4660
5385
|
this.CheckUserReadPermissions('Report Snapshots', userPayload);
|
|
4661
5386
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwReportSnapshots] WHERE [UserID]='${user_.ID}' ` + this.getRowLevelSecurityWhereClause('Report Snapshots', userPayload, EntityPermissionType.Read, 'AND');
|
|
4662
5387
|
const result = this.ArrayMapFieldNamesToCodeNames('Report Snapshots', await dataSource.query(sSQL));
|
|
@@ -4664,7 +5389,7 @@ export class UserResolverBase extends ResolverBase {
|
|
|
4664
5389
|
}
|
|
4665
5390
|
|
|
4666
5391
|
@FieldResolver(() => [UserView_])
|
|
4667
|
-
async
|
|
5392
|
+
async UserViews_UserIDArray(@Root() user_: User_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
4668
5393
|
this.CheckUserReadPermissions('User Views', userPayload);
|
|
4669
5394
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwUserViews] WHERE [UserID]='${user_.ID}' ` + this.getRowLevelSecurityWhereClause('User Views', userPayload, EntityPermissionType.Read, 'AND');
|
|
4670
5395
|
const result = this.ArrayMapFieldNamesToCodeNames('User Views', await dataSource.query(sSQL));
|
|
@@ -4672,7 +5397,7 @@ export class UserResolverBase extends ResolverBase {
|
|
|
4672
5397
|
}
|
|
4673
5398
|
|
|
4674
5399
|
@FieldResolver(() => [TemplateCategory_])
|
|
4675
|
-
async
|
|
5400
|
+
async TemplateCategories_UserIDArray(@Root() user_: User_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
4676
5401
|
this.CheckUserReadPermissions('Template Categories', userPayload);
|
|
4677
5402
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwTemplateCategories] WHERE [UserID]='${user_.ID}' ` + this.getRowLevelSecurityWhereClause('Template Categories', userPayload, EntityPermissionType.Read, 'AND');
|
|
4678
5403
|
const result = this.ArrayMapFieldNamesToCodeNames('Template Categories', await dataSource.query(sSQL));
|
|
@@ -4680,7 +5405,7 @@ export class UserResolverBase extends ResolverBase {
|
|
|
4680
5405
|
}
|
|
4681
5406
|
|
|
4682
5407
|
@FieldResolver(() => [DuplicateRun_])
|
|
4683
|
-
async
|
|
5408
|
+
async DuplicateRuns_StartedByUserIDArray(@Root() user_: User_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
4684
5409
|
this.CheckUserReadPermissions('Duplicate Runs', userPayload);
|
|
4685
5410
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwDuplicateRuns] WHERE [StartedByUserID]='${user_.ID}' ` + this.getRowLevelSecurityWhereClause('Duplicate Runs', userPayload, EntityPermissionType.Read, 'AND');
|
|
4686
5411
|
const result = this.ArrayMapFieldNamesToCodeNames('Duplicate Runs', await dataSource.query(sSQL));
|
|
@@ -4688,7 +5413,7 @@ export class UserResolverBase extends ResolverBase {
|
|
|
4688
5413
|
}
|
|
4689
5414
|
|
|
4690
5415
|
@FieldResolver(() => [UserRecordLog_])
|
|
4691
|
-
async
|
|
5416
|
+
async UserRecordLogs_UserIDArray(@Root() user_: User_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
4692
5417
|
this.CheckUserReadPermissions('User Record Logs', userPayload);
|
|
4693
5418
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwUserRecordLogs] WHERE [UserID]='${user_.ID}' ` + this.getRowLevelSecurityWhereClause('User Record Logs', userPayload, EntityPermissionType.Read, 'AND');
|
|
4694
5419
|
const result = this.ArrayMapFieldNamesToCodeNames('User Record Logs', await dataSource.query(sSQL));
|
|
@@ -4696,7 +5421,7 @@ export class UserResolverBase extends ResolverBase {
|
|
|
4696
5421
|
}
|
|
4697
5422
|
|
|
4698
5423
|
@FieldResolver(() => [UserNotification_])
|
|
4699
|
-
async
|
|
5424
|
+
async UserNotifications_UserIDArray(@Root() user_: User_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
4700
5425
|
this.CheckUserReadPermissions('User Notifications', userPayload);
|
|
4701
5426
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwUserNotifications] WHERE [UserID]='${user_.ID}' ` + this.getRowLevelSecurityWhereClause('User Notifications', userPayload, EntityPermissionType.Read, 'AND');
|
|
4702
5427
|
const result = this.ArrayMapFieldNamesToCodeNames('User Notifications', await dataSource.query(sSQL));
|
|
@@ -4704,7 +5429,7 @@ export class UserResolverBase extends ResolverBase {
|
|
|
4704
5429
|
}
|
|
4705
5430
|
|
|
4706
5431
|
@FieldResolver(() => [Template_])
|
|
4707
|
-
async
|
|
5432
|
+
async Templates_UserIDArray(@Root() user_: User_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
4708
5433
|
this.CheckUserReadPermissions('Templates', userPayload);
|
|
4709
5434
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwTemplates] WHERE [UserID]='${user_.ID}' ` + this.getRowLevelSecurityWhereClause('Templates', userPayload, EntityPermissionType.Read, 'AND');
|
|
4710
5435
|
const result = this.ArrayMapFieldNamesToCodeNames('Templates', await dataSource.query(sSQL));
|
|
@@ -4712,7 +5437,7 @@ export class UserResolverBase extends ResolverBase {
|
|
|
4712
5437
|
}
|
|
4713
5438
|
|
|
4714
5439
|
@FieldResolver(() => [UserFavorite_])
|
|
4715
|
-
async
|
|
5440
|
+
async UserFavorites_UserIDArray(@Root() user_: User_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
4716
5441
|
this.CheckUserReadPermissions('User Favorites', userPayload);
|
|
4717
5442
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwUserFavorites] WHERE [UserID]='${user_.ID}' ` + this.getRowLevelSecurityWhereClause('User Favorites', userPayload, EntityPermissionType.Read, 'AND');
|
|
4718
5443
|
const result = this.ArrayMapFieldNamesToCodeNames('User Favorites', await dataSource.query(sSQL));
|
|
@@ -4720,7 +5445,7 @@ export class UserResolverBase extends ResolverBase {
|
|
|
4720
5445
|
}
|
|
4721
5446
|
|
|
4722
5447
|
@FieldResolver(() => [ListCategory_])
|
|
4723
|
-
async
|
|
5448
|
+
async ListCategories_UserIDArray(@Root() user_: User_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
4724
5449
|
this.CheckUserReadPermissions('List Categories', userPayload);
|
|
4725
5450
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwListCategories] WHERE [UserID]='${user_.ID}' ` + this.getRowLevelSecurityWhereClause('List Categories', userPayload, EntityPermissionType.Read, 'AND');
|
|
4726
5451
|
const result = this.ArrayMapFieldNamesToCodeNames('List Categories', await dataSource.query(sSQL));
|
|
@@ -4728,7 +5453,7 @@ export class UserResolverBase extends ResolverBase {
|
|
|
4728
5453
|
}
|
|
4729
5454
|
|
|
4730
5455
|
@FieldResolver(() => [ScheduledAction_])
|
|
4731
|
-
async
|
|
5456
|
+
async ScheduledActions_CreatedByUserIDArray(@Root() user_: User_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
4732
5457
|
this.CheckUserReadPermissions('Scheduled Actions', userPayload);
|
|
4733
5458
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwScheduledActions] WHERE [CreatedByUserID]='${user_.ID}' ` + this.getRowLevelSecurityWhereClause('Scheduled Actions', userPayload, EntityPermissionType.Read, 'AND');
|
|
4734
5459
|
const result = this.ArrayMapFieldNamesToCodeNames('Scheduled Actions', await dataSource.query(sSQL));
|
|
@@ -5549,7 +6274,7 @@ export class UserViewResolverBase extends ResolverBase {
|
|
|
5549
6274
|
}
|
|
5550
6275
|
|
|
5551
6276
|
@FieldResolver(() => [DataContextItem_])
|
|
5552
|
-
async
|
|
6277
|
+
async DataContextItems_ViewIDArray(@Root() userview_: UserView_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
5553
6278
|
this.CheckUserReadPermissions('Data Context Items', userPayload);
|
|
5554
6279
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwDataContextItems] WHERE [ViewID]='${userview_.ID}' ` + this.getRowLevelSecurityWhereClause('Data Context Items', userPayload, EntityPermissionType.Read, 'AND');
|
|
5555
6280
|
const result = this.ArrayMapFieldNamesToCodeNames('Data Context Items', await dataSource.query(sSQL));
|
|
@@ -5557,7 +6282,7 @@ export class UserViewResolverBase extends ResolverBase {
|
|
|
5557
6282
|
}
|
|
5558
6283
|
|
|
5559
6284
|
@FieldResolver(() => [UserViewRun_])
|
|
5560
|
-
async
|
|
6285
|
+
async UserViewRuns_UserViewIDArray(@Root() userview_: UserView_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
5561
6286
|
this.CheckUserReadPermissions('User View Runs', userPayload);
|
|
5562
6287
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwUserViewRuns] WHERE [UserViewID]='${userview_.ID}' ` + this.getRowLevelSecurityWhereClause('User View Runs', userPayload, EntityPermissionType.Read, 'AND');
|
|
5563
6288
|
const result = this.ArrayMapFieldNamesToCodeNames('User View Runs', await dataSource.query(sSQL));
|
|
@@ -5565,7 +6290,7 @@ export class UserViewResolverBase extends ResolverBase {
|
|
|
5565
6290
|
}
|
|
5566
6291
|
|
|
5567
6292
|
@FieldResolver(() => [EntityRelationship_])
|
|
5568
|
-
async
|
|
6293
|
+
async EntityRelationships_DisplayUserViewGUIDArray(@Root() userview_: UserView_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
5569
6294
|
this.CheckUserReadPermissions('Entity Relationships', userPayload);
|
|
5570
6295
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwEntityRelationships] WHERE [DisplayUserViewGUID]='${userview_.ID}' ` + this.getRowLevelSecurityWhereClause('Entity Relationships', userPayload, EntityPermissionType.Read, 'AND');
|
|
5571
6296
|
const result = this.ArrayMapFieldNamesToCodeNames('Entity Relationships', await dataSource.query(sSQL));
|
|
@@ -5652,6 +6377,31 @@ export class CompanyIntegrationRun_ {
|
|
|
5652
6377
|
|
|
5653
6378
|
}
|
|
5654
6379
|
|
|
6380
|
+
//****************************************************************************
|
|
6381
|
+
// INPUT TYPE for Company Integration Runs
|
|
6382
|
+
//****************************************************************************
|
|
6383
|
+
@InputType()
|
|
6384
|
+
export class CreateCompanyIntegrationRunInput {
|
|
6385
|
+
@Field()
|
|
6386
|
+
CompanyIntegrationID: string;
|
|
6387
|
+
|
|
6388
|
+
@Field()
|
|
6389
|
+
RunByUserID: string;
|
|
6390
|
+
|
|
6391
|
+
@Field({ nullable: true })
|
|
6392
|
+
StartedAt?: Date;
|
|
6393
|
+
|
|
6394
|
+
@Field({ nullable: true })
|
|
6395
|
+
EndedAt?: Date;
|
|
6396
|
+
|
|
6397
|
+
@Field(() => Int)
|
|
6398
|
+
TotalRecords: number;
|
|
6399
|
+
|
|
6400
|
+
@Field({ nullable: true })
|
|
6401
|
+
Comments?: string;
|
|
6402
|
+
}
|
|
6403
|
+
|
|
6404
|
+
|
|
5655
6405
|
//****************************************************************************
|
|
5656
6406
|
// INPUT TYPE for Company Integration Runs
|
|
5657
6407
|
//****************************************************************************
|
|
@@ -5735,7 +6485,7 @@ export class CompanyIntegrationRunResolver extends ResolverBase {
|
|
|
5735
6485
|
}
|
|
5736
6486
|
|
|
5737
6487
|
@FieldResolver(() => [ErrorLog_])
|
|
5738
|
-
async
|
|
6488
|
+
async ErrorLogs_CompanyIntegrationRunIDArray(@Root() companyintegrationrun_: CompanyIntegrationRun_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
5739
6489
|
this.CheckUserReadPermissions('Error Logs', userPayload);
|
|
5740
6490
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwErrorLogs] WHERE [CompanyIntegrationRunID]='${companyintegrationrun_.ID}' ` + this.getRowLevelSecurityWhereClause('Error Logs', userPayload, EntityPermissionType.Read, 'AND');
|
|
5741
6491
|
const result = this.ArrayMapFieldNamesToCodeNames('Error Logs', await dataSource.query(sSQL));
|
|
@@ -5743,7 +6493,7 @@ export class CompanyIntegrationRunResolver extends ResolverBase {
|
|
|
5743
6493
|
}
|
|
5744
6494
|
|
|
5745
6495
|
@FieldResolver(() => [CompanyIntegrationRunDetail_])
|
|
5746
|
-
async
|
|
6496
|
+
async CompanyIntegrationRunDetails_CompanyIntegrationRunIDArray(@Root() companyintegrationrun_: CompanyIntegrationRun_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
5747
6497
|
this.CheckUserReadPermissions('Company Integration Run Details', userPayload);
|
|
5748
6498
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwCompanyIntegrationRunDetails] WHERE [CompanyIntegrationRunID]='${companyintegrationrun_.ID}' ` + this.getRowLevelSecurityWhereClause('Company Integration Run Details', userPayload, EntityPermissionType.Read, 'AND');
|
|
5749
6499
|
const result = this.ArrayMapFieldNamesToCodeNames('Company Integration Run Details', await dataSource.query(sSQL));
|
|
@@ -5751,13 +6501,22 @@ export class CompanyIntegrationRunResolver extends ResolverBase {
|
|
|
5751
6501
|
}
|
|
5752
6502
|
|
|
5753
6503
|
@FieldResolver(() => [CompanyIntegrationRunAPILog_])
|
|
5754
|
-
async
|
|
6504
|
+
async CompanyIntegrationRunAPILogs_CompanyIntegrationRunIDArray(@Root() companyintegrationrun_: CompanyIntegrationRun_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
5755
6505
|
this.CheckUserReadPermissions('Company Integration Run API Logs', userPayload);
|
|
5756
6506
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwCompanyIntegrationRunAPILogs] WHERE [CompanyIntegrationRunID]='${companyintegrationrun_.ID}' ` + this.getRowLevelSecurityWhereClause('Company Integration Run API Logs', userPayload, EntityPermissionType.Read, 'AND');
|
|
5757
6507
|
const result = this.ArrayMapFieldNamesToCodeNames('Company Integration Run API Logs', await dataSource.query(sSQL));
|
|
5758
6508
|
return result;
|
|
5759
6509
|
}
|
|
5760
6510
|
|
|
6511
|
+
@Mutation(() => CompanyIntegrationRun_)
|
|
6512
|
+
async CreateCompanyIntegrationRun(
|
|
6513
|
+
@Arg('input', () => CreateCompanyIntegrationRunInput) input: CreateCompanyIntegrationRunInput,
|
|
6514
|
+
@Ctx() { dataSource, userPayload }: AppContext,
|
|
6515
|
+
@PubSub() pubSub: PubSubEngine
|
|
6516
|
+
) {
|
|
6517
|
+
return this.CreateRecord('Company Integration Runs', input, dataSource, userPayload, pubSub)
|
|
6518
|
+
}
|
|
6519
|
+
|
|
5761
6520
|
@Mutation(() => CompanyIntegrationRun_)
|
|
5762
6521
|
async UpdateCompanyIntegrationRun(
|
|
5763
6522
|
@Arg('input', () => UpdateCompanyIntegrationRunInput) input: UpdateCompanyIntegrationRunInput,
|
|
@@ -5826,6 +6585,31 @@ export class CompanyIntegrationRunDetail_ {
|
|
|
5826
6585
|
|
|
5827
6586
|
}
|
|
5828
6587
|
|
|
6588
|
+
//****************************************************************************
|
|
6589
|
+
// INPUT TYPE for Company Integration Run Details
|
|
6590
|
+
//****************************************************************************
|
|
6591
|
+
@InputType()
|
|
6592
|
+
export class CreateCompanyIntegrationRunDetailInput {
|
|
6593
|
+
@Field()
|
|
6594
|
+
CompanyIntegrationRunID: string;
|
|
6595
|
+
|
|
6596
|
+
@Field()
|
|
6597
|
+
EntityID: string;
|
|
6598
|
+
|
|
6599
|
+
@Field()
|
|
6600
|
+
RecordID: string;
|
|
6601
|
+
|
|
6602
|
+
@Field()
|
|
6603
|
+
Action: string;
|
|
6604
|
+
|
|
6605
|
+
@Field()
|
|
6606
|
+
ExecutedAt: Date;
|
|
6607
|
+
|
|
6608
|
+
@Field(() => Boolean)
|
|
6609
|
+
IsSuccess: boolean;
|
|
6610
|
+
}
|
|
6611
|
+
|
|
6612
|
+
|
|
5829
6613
|
//****************************************************************************
|
|
5830
6614
|
// INPUT TYPE for Company Integration Run Details
|
|
5831
6615
|
//****************************************************************************
|
|
@@ -5909,13 +6693,22 @@ export class CompanyIntegrationRunDetailResolver extends ResolverBase {
|
|
|
5909
6693
|
}
|
|
5910
6694
|
|
|
5911
6695
|
@FieldResolver(() => [ErrorLog_])
|
|
5912
|
-
async
|
|
6696
|
+
async ErrorLogs_CompanyIntegrationRunDetailIDArray(@Root() companyintegrationrundetail_: CompanyIntegrationRunDetail_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
5913
6697
|
this.CheckUserReadPermissions('Error Logs', userPayload);
|
|
5914
6698
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwErrorLogs] WHERE [CompanyIntegrationRunDetailID]='${companyintegrationrundetail_.ID}' ` + this.getRowLevelSecurityWhereClause('Error Logs', userPayload, EntityPermissionType.Read, 'AND');
|
|
5915
6699
|
const result = this.ArrayMapFieldNamesToCodeNames('Error Logs', await dataSource.query(sSQL));
|
|
5916
6700
|
return result;
|
|
5917
6701
|
}
|
|
5918
6702
|
|
|
6703
|
+
@Mutation(() => CompanyIntegrationRunDetail_)
|
|
6704
|
+
async CreateCompanyIntegrationRunDetail(
|
|
6705
|
+
@Arg('input', () => CreateCompanyIntegrationRunDetailInput) input: CreateCompanyIntegrationRunDetailInput,
|
|
6706
|
+
@Ctx() { dataSource, userPayload }: AppContext,
|
|
6707
|
+
@PubSub() pubSub: PubSubEngine
|
|
6708
|
+
) {
|
|
6709
|
+
return this.CreateRecord('Company Integration Run Details', input, dataSource, userPayload, pubSub)
|
|
6710
|
+
}
|
|
6711
|
+
|
|
5919
6712
|
@Mutation(() => CompanyIntegrationRunDetail_)
|
|
5920
6713
|
async UpdateCompanyIntegrationRunDetail(
|
|
5921
6714
|
@Arg('input', () => UpdateCompanyIntegrationRunDetailInput) input: UpdateCompanyIntegrationRunDetailInput,
|
|
@@ -5976,6 +6769,37 @@ export class ErrorLog_ {
|
|
|
5976
6769
|
|
|
5977
6770
|
}
|
|
5978
6771
|
|
|
6772
|
+
//****************************************************************************
|
|
6773
|
+
// INPUT TYPE for Error Logs
|
|
6774
|
+
//****************************************************************************
|
|
6775
|
+
@InputType()
|
|
6776
|
+
export class CreateErrorLogInput {
|
|
6777
|
+
@Field({ nullable: true })
|
|
6778
|
+
CompanyIntegrationRunID?: string;
|
|
6779
|
+
|
|
6780
|
+
@Field({ nullable: true })
|
|
6781
|
+
CompanyIntegrationRunDetailID?: string;
|
|
6782
|
+
|
|
6783
|
+
@Field({ nullable: true })
|
|
6784
|
+
Code?: string;
|
|
6785
|
+
|
|
6786
|
+
@Field({ nullable: true })
|
|
6787
|
+
Message?: string;
|
|
6788
|
+
|
|
6789
|
+
@Field({ nullable: true })
|
|
6790
|
+
CreatedBy?: string;
|
|
6791
|
+
|
|
6792
|
+
@Field({ nullable: true })
|
|
6793
|
+
Status?: string;
|
|
6794
|
+
|
|
6795
|
+
@Field({ nullable: true })
|
|
6796
|
+
Category?: string;
|
|
6797
|
+
|
|
6798
|
+
@Field({ nullable: true })
|
|
6799
|
+
Details?: string;
|
|
6800
|
+
}
|
|
6801
|
+
|
|
6802
|
+
|
|
5979
6803
|
//****************************************************************************
|
|
5980
6804
|
// INPUT TYPE for Error Logs
|
|
5981
6805
|
//****************************************************************************
|
|
@@ -6064,6 +6888,15 @@ export class ErrorLogResolver extends ResolverBase {
|
|
|
6064
6888
|
return result;
|
|
6065
6889
|
}
|
|
6066
6890
|
|
|
6891
|
+
@Mutation(() => ErrorLog_)
|
|
6892
|
+
async CreateErrorLog(
|
|
6893
|
+
@Arg('input', () => CreateErrorLogInput) input: CreateErrorLogInput,
|
|
6894
|
+
@Ctx() { dataSource, userPayload }: AppContext,
|
|
6895
|
+
@PubSub() pubSub: PubSubEngine
|
|
6896
|
+
) {
|
|
6897
|
+
return this.CreateRecord('Error Logs', input, dataSource, userPayload, pubSub)
|
|
6898
|
+
}
|
|
6899
|
+
|
|
6067
6900
|
@Mutation(() => ErrorLog_)
|
|
6068
6901
|
async UpdateErrorLog(
|
|
6069
6902
|
@Arg('input', () => UpdateErrorLogInput) input: UpdateErrorLogInput,
|
|
@@ -6221,7 +7054,7 @@ export class ApplicationResolver extends ResolverBase {
|
|
|
6221
7054
|
}
|
|
6222
7055
|
|
|
6223
7056
|
@FieldResolver(() => [ApplicationSetting_])
|
|
6224
|
-
async
|
|
7057
|
+
async ApplicationSettings_ApplicationIDArray(@Root() application_: Application_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
6225
7058
|
this.CheckUserReadPermissions('Application Settings', userPayload);
|
|
6226
7059
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwApplicationSettings] WHERE [ApplicationID]='${application_.ID}' ` + this.getRowLevelSecurityWhereClause('Application Settings', userPayload, EntityPermissionType.Read, 'AND');
|
|
6227
7060
|
const result = this.ArrayMapFieldNamesToCodeNames('Application Settings', await dataSource.query(sSQL));
|
|
@@ -6229,7 +7062,7 @@ export class ApplicationResolver extends ResolverBase {
|
|
|
6229
7062
|
}
|
|
6230
7063
|
|
|
6231
7064
|
@FieldResolver(() => [UserApplication_])
|
|
6232
|
-
async
|
|
7065
|
+
async UserApplications_ApplicationIDArray(@Root() application_: Application_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
6233
7066
|
this.CheckUserReadPermissions('User Applications', userPayload);
|
|
6234
7067
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwUserApplications] WHERE [ApplicationID]='${application_.ID}' ` + this.getRowLevelSecurityWhereClause('User Applications', userPayload, EntityPermissionType.Read, 'AND');
|
|
6235
7068
|
const result = this.ArrayMapFieldNamesToCodeNames('User Applications', await dataSource.query(sSQL));
|
|
@@ -6237,7 +7070,7 @@ export class ApplicationResolver extends ResolverBase {
|
|
|
6237
7070
|
}
|
|
6238
7071
|
|
|
6239
7072
|
@FieldResolver(() => [ApplicationEntity_])
|
|
6240
|
-
async
|
|
7073
|
+
async ApplicationEntities_ApplicationIDArray(@Root() application_: Application_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
6241
7074
|
this.CheckUserReadPermissions('Application Entities', userPayload);
|
|
6242
7075
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwApplicationEntities] WHERE [ApplicationID]='${application_.ID}' ` + this.getRowLevelSecurityWhereClause('Application Entities', userPayload, EntityPermissionType.Read, 'AND');
|
|
6243
7076
|
const result = this.ArrayMapFieldNamesToCodeNames('Application Entities', await dataSource.query(sSQL));
|
|
@@ -6990,7 +7823,7 @@ export class UserApplicationResolver extends ResolverBase {
|
|
|
6990
7823
|
}
|
|
6991
7824
|
|
|
6992
7825
|
@FieldResolver(() => [UserApplicationEntity_])
|
|
6993
|
-
async
|
|
7826
|
+
async UserApplicationEntities_UserApplicationIDArray(@Root() userapplication_: UserApplication_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
6994
7827
|
this.CheckUserReadPermissions('User Application Entities', userPayload);
|
|
6995
7828
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwUserApplicationEntities] WHERE [UserApplicationID]='${userapplication_.ID}' ` + this.getRowLevelSecurityWhereClause('User Application Entities', userPayload, EntityPermissionType.Read, 'AND');
|
|
6996
7829
|
const result = this.ArrayMapFieldNamesToCodeNames('User Application Entities', await dataSource.query(sSQL));
|
|
@@ -7063,6 +7896,31 @@ export class CompanyIntegrationRunAPILog_ {
|
|
|
7063
7896
|
|
|
7064
7897
|
}
|
|
7065
7898
|
|
|
7899
|
+
//****************************************************************************
|
|
7900
|
+
// INPUT TYPE for Company Integration Run API Logs
|
|
7901
|
+
//****************************************************************************
|
|
7902
|
+
@InputType()
|
|
7903
|
+
export class CreateCompanyIntegrationRunAPILogInput {
|
|
7904
|
+
@Field()
|
|
7905
|
+
CompanyIntegrationRunID: string;
|
|
7906
|
+
|
|
7907
|
+
@Field()
|
|
7908
|
+
ExecutedAt: Date;
|
|
7909
|
+
|
|
7910
|
+
@Field(() => Boolean)
|
|
7911
|
+
IsSuccess: boolean;
|
|
7912
|
+
|
|
7913
|
+
@Field({ nullable: true })
|
|
7914
|
+
RequestMethod?: string;
|
|
7915
|
+
|
|
7916
|
+
@Field({ nullable: true })
|
|
7917
|
+
URL?: string;
|
|
7918
|
+
|
|
7919
|
+
@Field({ nullable: true })
|
|
7920
|
+
Parameters?: string;
|
|
7921
|
+
}
|
|
7922
|
+
|
|
7923
|
+
|
|
7066
7924
|
//****************************************************************************
|
|
7067
7925
|
// INPUT TYPE for Company Integration Run API Logs
|
|
7068
7926
|
//****************************************************************************
|
|
@@ -7145,6 +8003,15 @@ export class CompanyIntegrationRunAPILogResolver extends ResolverBase {
|
|
|
7145
8003
|
return result;
|
|
7146
8004
|
}
|
|
7147
8005
|
|
|
8006
|
+
@Mutation(() => CompanyIntegrationRunAPILog_)
|
|
8007
|
+
async CreateCompanyIntegrationRunAPILog(
|
|
8008
|
+
@Arg('input', () => CreateCompanyIntegrationRunAPILogInput) input: CreateCompanyIntegrationRunAPILogInput,
|
|
8009
|
+
@Ctx() { dataSource, userPayload }: AppContext,
|
|
8010
|
+
@PubSub() pubSub: PubSubEngine
|
|
8011
|
+
) {
|
|
8012
|
+
return this.CreateRecord('Company Integration Run API Logs', input, dataSource, userPayload, pubSub)
|
|
8013
|
+
}
|
|
8014
|
+
|
|
7148
8015
|
@Mutation(() => CompanyIntegrationRunAPILog_)
|
|
7149
8016
|
async UpdateCompanyIntegrationRunAPILog(
|
|
7150
8017
|
@Arg('input', () => UpdateCompanyIntegrationRunAPILogInput) input: UpdateCompanyIntegrationRunAPILogInput,
|
|
@@ -7334,7 +8201,7 @@ export class ListResolver extends ResolverBase {
|
|
|
7334
8201
|
}
|
|
7335
8202
|
|
|
7336
8203
|
@FieldResolver(() => [ListDetail_])
|
|
7337
|
-
async
|
|
8204
|
+
async ListDetails_ListIDArray(@Root() list_: List_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
7338
8205
|
this.CheckUserReadPermissions('List Details', userPayload);
|
|
7339
8206
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwListDetails] WHERE [ListID]='${list_.ID}' ` + this.getRowLevelSecurityWhereClause('List Details', userPayload, EntityPermissionType.Read, 'AND');
|
|
7340
8207
|
const result = this.ArrayMapFieldNamesToCodeNames('List Details', await dataSource.query(sSQL));
|
|
@@ -7342,7 +8209,7 @@ export class ListResolver extends ResolverBase {
|
|
|
7342
8209
|
}
|
|
7343
8210
|
|
|
7344
8211
|
@FieldResolver(() => [DuplicateRun_])
|
|
7345
|
-
async
|
|
8212
|
+
async DuplicateRuns_SourceListIDArray(@Root() list_: List_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
7346
8213
|
this.CheckUserReadPermissions('Duplicate Runs', userPayload);
|
|
7347
8214
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwDuplicateRuns] WHERE [SourceListID]='${list_.ID}' ` + this.getRowLevelSecurityWhereClause('Duplicate Runs', userPayload, EntityPermissionType.Read, 'AND');
|
|
7348
8215
|
const result = this.ArrayMapFieldNamesToCodeNames('Duplicate Runs', await dataSource.query(sSQL));
|
|
@@ -7675,7 +8542,7 @@ export class UserViewRunResolver extends ResolverBase {
|
|
|
7675
8542
|
}
|
|
7676
8543
|
|
|
7677
8544
|
@FieldResolver(() => [UserViewRunDetail_])
|
|
7678
|
-
async
|
|
8545
|
+
async UserViewRunDetails_UserViewRunIDArray(@Root() userviewrun_: UserViewRun_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
7679
8546
|
this.CheckUserReadPermissions('User View Run Details', userPayload);
|
|
7680
8547
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwUserViewRunDetails] WHERE [UserViewRunID]='${userviewrun_.ID}' ` + this.getRowLevelSecurityWhereClause('User View Run Details', userPayload, EntityPermissionType.Read, 'AND');
|
|
7681
8548
|
const result = this.ArrayMapFieldNamesToCodeNames('User View Run Details', await dataSource.query(sSQL));
|
|
@@ -8129,7 +8996,7 @@ export class WorkflowResolver extends ResolverBase {
|
|
|
8129
8996
|
}
|
|
8130
8997
|
|
|
8131
8998
|
@FieldResolver(() => [Report_])
|
|
8132
|
-
async
|
|
8999
|
+
async Reports_OutputWorkflowIDArray(@Root() workflow_: Workflow_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
8133
9000
|
this.CheckUserReadPermissions('Reports', userPayload);
|
|
8134
9001
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwReports] WHERE [OutputWorkflowID]='${workflow_.ID}' ` + this.getRowLevelSecurityWhereClause('Reports', userPayload, EntityPermissionType.Read, 'AND');
|
|
8135
9002
|
const result = this.ArrayMapFieldNamesToCodeNames('Reports', await dataSource.query(sSQL));
|
|
@@ -8137,7 +9004,7 @@ export class WorkflowResolver extends ResolverBase {
|
|
|
8137
9004
|
}
|
|
8138
9005
|
|
|
8139
9006
|
@FieldResolver(() => [WorkflowRun_])
|
|
8140
|
-
async
|
|
9007
|
+
async WorkflowRuns_WorkflowNameArray(@Root() workflow_: Workflow_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
8141
9008
|
this.CheckUserReadPermissions('Workflow Runs', userPayload);
|
|
8142
9009
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwWorkflowRuns] WHERE [WorkflowName]='${workflow_.ID}' ` + this.getRowLevelSecurityWhereClause('Workflow Runs', userPayload, EntityPermissionType.Read, 'AND');
|
|
8143
9010
|
const result = this.ArrayMapFieldNamesToCodeNames('Workflow Runs', await dataSource.query(sSQL));
|
|
@@ -8269,7 +9136,7 @@ export class WorkflowEngineResolver extends ResolverBase {
|
|
|
8269
9136
|
}
|
|
8270
9137
|
|
|
8271
9138
|
@FieldResolver(() => [Workflow_])
|
|
8272
|
-
async
|
|
9139
|
+
async Workflows_WorkflowEngineNameArray(@Root() workflowengine_: WorkflowEngine_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
8273
9140
|
this.CheckUserReadPermissions('Workflows', userPayload);
|
|
8274
9141
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwWorkflows] WHERE [WorkflowEngineName]='${workflowengine_.ID}' ` + this.getRowLevelSecurityWhereClause('Workflows', userPayload, EntityPermissionType.Read, 'AND');
|
|
8275
9142
|
const result = this.ArrayMapFieldNamesToCodeNames('Workflows', await dataSource.query(sSQL));
|
|
@@ -8760,7 +9627,7 @@ export class RowLevelSecurityFilterResolver extends ResolverBase {
|
|
|
8760
9627
|
}
|
|
8761
9628
|
|
|
8762
9629
|
@FieldResolver(() => [EntityPermission_])
|
|
8763
|
-
async
|
|
9630
|
+
async EntityPermissions_ReadRLSFilterIDArray(@Root() rowlevelsecurityfilter_: RowLevelSecurityFilter_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
8764
9631
|
this.CheckUserReadPermissions('Entity Permissions', userPayload);
|
|
8765
9632
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwEntityPermissions] WHERE [ReadRLSFilterID]='${rowlevelsecurityfilter_.ID}' ` + this.getRowLevelSecurityWhereClause('Entity Permissions', userPayload, EntityPermissionType.Read, 'AND');
|
|
8766
9633
|
const result = this.ArrayMapFieldNamesToCodeNames('Entity Permissions', await dataSource.query(sSQL));
|
|
@@ -9088,7 +9955,7 @@ export class AuthorizationResolver extends ResolverBase {
|
|
|
9088
9955
|
}
|
|
9089
9956
|
|
|
9090
9957
|
@FieldResolver(() => [AuthorizationRole_])
|
|
9091
|
-
async
|
|
9958
|
+
async AuthorizationRoles_AuthorizationIDArray(@Root() authorization_: Authorization_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
9092
9959
|
this.CheckUserReadPermissions('Authorization Roles', userPayload);
|
|
9093
9960
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAuthorizationRoles] WHERE [AuthorizationID]='${authorization_.ID}' ` + this.getRowLevelSecurityWhereClause('Authorization Roles', userPayload, EntityPermissionType.Read, 'AND');
|
|
9094
9961
|
const result = this.ArrayMapFieldNamesToCodeNames('Authorization Roles', await dataSource.query(sSQL));
|
|
@@ -9096,7 +9963,7 @@ export class AuthorizationResolver extends ResolverBase {
|
|
|
9096
9963
|
}
|
|
9097
9964
|
|
|
9098
9965
|
@FieldResolver(() => [ActionAuthorization_])
|
|
9099
|
-
async
|
|
9966
|
+
async ActionAuthorizations_AuthorizationIDArray(@Root() authorization_: Authorization_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
9100
9967
|
this.CheckUserReadPermissions('Action Authorizations', userPayload);
|
|
9101
9968
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwActionAuthorizations] WHERE [AuthorizationID]='${authorization_.ID}' ` + this.getRowLevelSecurityWhereClause('Action Authorizations', userPayload, EntityPermissionType.Read, 'AND');
|
|
9102
9969
|
const result = this.ArrayMapFieldNamesToCodeNames('Action Authorizations', await dataSource.query(sSQL));
|
|
@@ -9104,7 +9971,7 @@ export class AuthorizationResolver extends ResolverBase {
|
|
|
9104
9971
|
}
|
|
9105
9972
|
|
|
9106
9973
|
@FieldResolver(() => [Authorization_])
|
|
9107
|
-
async
|
|
9974
|
+
async Authorizations_ParentIDArray(@Root() authorization_: Authorization_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
9108
9975
|
this.CheckUserReadPermissions('Authorizations', userPayload);
|
|
9109
9976
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAuthorizations] WHERE [ParentID]='${authorization_.ID}' ` + this.getRowLevelSecurityWhereClause('Authorizations', userPayload, EntityPermissionType.Read, 'AND');
|
|
9110
9977
|
const result = this.ArrayMapFieldNamesToCodeNames('Authorizations', await dataSource.query(sSQL));
|
|
@@ -9112,7 +9979,7 @@ export class AuthorizationResolver extends ResolverBase {
|
|
|
9112
9979
|
}
|
|
9113
9980
|
|
|
9114
9981
|
@FieldResolver(() => [AuditLog_])
|
|
9115
|
-
async
|
|
9982
|
+
async AuditLogs_AuthorizationNameArray(@Root() authorization_: Authorization_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
9116
9983
|
this.CheckUserReadPermissions('Audit Logs', userPayload);
|
|
9117
9984
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAuditLogs] WHERE [AuthorizationName]='${authorization_.ID}' ` + this.getRowLevelSecurityWhereClause('Audit Logs', userPayload, EntityPermissionType.Read, 'AND');
|
|
9118
9985
|
const result = this.ArrayMapFieldNamesToCodeNames('Audit Logs', await dataSource.query(sSQL));
|
|
@@ -9120,7 +9987,7 @@ export class AuthorizationResolver extends ResolverBase {
|
|
|
9120
9987
|
}
|
|
9121
9988
|
|
|
9122
9989
|
@FieldResolver(() => [AuditLogType_])
|
|
9123
|
-
async
|
|
9990
|
+
async AuditLogTypes_AuthorizationNameArray(@Root() authorization_: Authorization_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
9124
9991
|
this.CheckUserReadPermissions('Audit Log Types', userPayload);
|
|
9125
9992
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAuditLogTypes] WHERE [AuthorizationName]='${authorization_.ID}' ` + this.getRowLevelSecurityWhereClause('Audit Log Types', userPayload, EntityPermissionType.Read, 'AND');
|
|
9126
9993
|
const result = this.ArrayMapFieldNamesToCodeNames('Audit Log Types', await dataSource.query(sSQL));
|
|
@@ -9337,7 +10204,7 @@ export class AuditLogTypeResolver extends ResolverBase {
|
|
|
9337
10204
|
}
|
|
9338
10205
|
|
|
9339
10206
|
@FieldResolver(() => [AuditLogType_])
|
|
9340
|
-
async
|
|
10207
|
+
async AuditLogTypes_ParentIDArray(@Root() auditlogtype_: AuditLogType_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
9341
10208
|
this.CheckUserReadPermissions('Audit Log Types', userPayload);
|
|
9342
10209
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAuditLogTypes] WHERE [ParentID]='${auditlogtype_.ID}' ` + this.getRowLevelSecurityWhereClause('Audit Log Types', userPayload, EntityPermissionType.Read, 'AND');
|
|
9343
10210
|
const result = this.ArrayMapFieldNamesToCodeNames('Audit Log Types', await dataSource.query(sSQL));
|
|
@@ -9345,7 +10212,7 @@ export class AuditLogTypeResolver extends ResolverBase {
|
|
|
9345
10212
|
}
|
|
9346
10213
|
|
|
9347
10214
|
@FieldResolver(() => [AuditLog_])
|
|
9348
|
-
async
|
|
10215
|
+
async AuditLogs_AuditLogTypeNameArray(@Root() auditlogtype_: AuditLogType_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
9349
10216
|
this.CheckUserReadPermissions('Audit Logs', userPayload);
|
|
9350
10217
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAuditLogs] WHERE [AuditLogTypeName]='${auditlogtype_.ID}' ` + this.getRowLevelSecurityWhereClause('Audit Logs', userPayload, EntityPermissionType.Read, 'AND');
|
|
9351
10218
|
const result = this.ArrayMapFieldNamesToCodeNames('Audit Logs', await dataSource.query(sSQL));
|
|
@@ -9557,6 +10424,9 @@ export class AIModel_ {
|
|
|
9557
10424
|
@Field(() => Int, {nullable: true, description: 'Optional column that ranks the cost of the AI model. Default is 0 and should be non-negative.'})
|
|
9558
10425
|
CostRank?: number;
|
|
9559
10426
|
|
|
10427
|
+
@Field({nullable: true, description: 'This column stores unstructured text notes that provide insights into what the model is particularly good at and areas where it may not perform as well. These notes can be used by a human or an AI to determine if the model is a good fit for various purposes.'})
|
|
10428
|
+
ModelSelectionInsights?: string;
|
|
10429
|
+
|
|
9560
10430
|
@Field()
|
|
9561
10431
|
@MaxLength(100)
|
|
9562
10432
|
AIModelType: string;
|
|
@@ -9576,6 +10446,9 @@ export class AIModel_ {
|
|
|
9576
10446
|
@Field(() => [EntityAIAction_])
|
|
9577
10447
|
EntityAIActionsArray: EntityAIAction_[]; // Link to EntityAIActions
|
|
9578
10448
|
|
|
10449
|
+
@Field(() => [AIResultCache_])
|
|
10450
|
+
AIResultCacheArray: AIResultCache_[]; // Link to AIResultCache
|
|
10451
|
+
|
|
9579
10452
|
}
|
|
9580
10453
|
|
|
9581
10454
|
//****************************************************************************
|
|
@@ -9615,6 +10488,9 @@ export class CreateAIModelInput {
|
|
|
9615
10488
|
|
|
9616
10489
|
@Field(() => Int, { nullable: true })
|
|
9617
10490
|
CostRank?: number;
|
|
10491
|
+
|
|
10492
|
+
@Field({ nullable: true })
|
|
10493
|
+
ModelSelectionInsights?: string;
|
|
9618
10494
|
}
|
|
9619
10495
|
|
|
9620
10496
|
|
|
@@ -9659,6 +10535,9 @@ export class UpdateAIModelInput {
|
|
|
9659
10535
|
@Field(() => Int, { nullable: true })
|
|
9660
10536
|
CostRank?: number;
|
|
9661
10537
|
|
|
10538
|
+
@Field({ nullable: true })
|
|
10539
|
+
ModelSelectionInsights?: string;
|
|
10540
|
+
|
|
9662
10541
|
@Field(() => [KeyValuePairInput], { nullable: true })
|
|
9663
10542
|
OldValues___?: KeyValuePairInput[];
|
|
9664
10543
|
}
|
|
@@ -9724,7 +10603,7 @@ export class AIModelResolver extends ResolverBase {
|
|
|
9724
10603
|
}
|
|
9725
10604
|
|
|
9726
10605
|
@FieldResolver(() => [AIAction_])
|
|
9727
|
-
async
|
|
10606
|
+
async AIActions_DefaultModelIDArray(@Root() aimodel_: AIModel_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
9728
10607
|
this.CheckUserReadPermissions('AI Actions', userPayload);
|
|
9729
10608
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIActions] WHERE [DefaultModelID]='${aimodel_.ID}' ` + this.getRowLevelSecurityWhereClause('AI Actions', userPayload, EntityPermissionType.Read, 'AND');
|
|
9730
10609
|
const result = this.ArrayMapFieldNamesToCodeNames('AI Actions', await dataSource.query(sSQL));
|
|
@@ -9732,7 +10611,7 @@ export class AIModelResolver extends ResolverBase {
|
|
|
9732
10611
|
}
|
|
9733
10612
|
|
|
9734
10613
|
@FieldResolver(() => [EntityDocument_])
|
|
9735
|
-
async
|
|
10614
|
+
async EntityDocuments_AIModelIDArray(@Root() aimodel_: AIModel_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
9736
10615
|
this.CheckUserReadPermissions('Entity Documents', userPayload);
|
|
9737
10616
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwEntityDocuments] WHERE [AIModelID]='${aimodel_.ID}' ` + this.getRowLevelSecurityWhereClause('Entity Documents', userPayload, EntityPermissionType.Read, 'AND');
|
|
9738
10617
|
const result = this.ArrayMapFieldNamesToCodeNames('Entity Documents', await dataSource.query(sSQL));
|
|
@@ -9740,7 +10619,7 @@ export class AIModelResolver extends ResolverBase {
|
|
|
9740
10619
|
}
|
|
9741
10620
|
|
|
9742
10621
|
@FieldResolver(() => [AIModelAction_])
|
|
9743
|
-
async
|
|
10622
|
+
async AIModelActions_AIModelIDArray(@Root() aimodel_: AIModel_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
9744
10623
|
this.CheckUserReadPermissions('AI Model Actions', userPayload);
|
|
9745
10624
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIModelActions] WHERE [AIModelID]='${aimodel_.ID}' ` + this.getRowLevelSecurityWhereClause('AI Model Actions', userPayload, EntityPermissionType.Read, 'AND');
|
|
9746
10625
|
const result = this.ArrayMapFieldNamesToCodeNames('AI Model Actions', await dataSource.query(sSQL));
|
|
@@ -9748,7 +10627,7 @@ export class AIModelResolver extends ResolverBase {
|
|
|
9748
10627
|
}
|
|
9749
10628
|
|
|
9750
10629
|
@FieldResolver(() => [VectorIndex_])
|
|
9751
|
-
async
|
|
10630
|
+
async VectorIndexes_EmbeddingModelIDArray(@Root() aimodel_: AIModel_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
9752
10631
|
this.CheckUserReadPermissions('Vector Indexes', userPayload);
|
|
9753
10632
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwVectorIndexes] WHERE [EmbeddingModelID]='${aimodel_.ID}' ` + this.getRowLevelSecurityWhereClause('Vector Indexes', userPayload, EntityPermissionType.Read, 'AND');
|
|
9754
10633
|
const result = this.ArrayMapFieldNamesToCodeNames('Vector Indexes', await dataSource.query(sSQL));
|
|
@@ -9756,13 +10635,21 @@ export class AIModelResolver extends ResolverBase {
|
|
|
9756
10635
|
}
|
|
9757
10636
|
|
|
9758
10637
|
@FieldResolver(() => [EntityAIAction_])
|
|
9759
|
-
async
|
|
10638
|
+
async EntityAIActions_AIModelIDArray(@Root() aimodel_: AIModel_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
9760
10639
|
this.CheckUserReadPermissions('Entity AI Actions', userPayload);
|
|
9761
10640
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwEntityAIActions] WHERE [AIModelID]='${aimodel_.ID}' ` + this.getRowLevelSecurityWhereClause('Entity AI Actions', userPayload, EntityPermissionType.Read, 'AND');
|
|
9762
10641
|
const result = this.ArrayMapFieldNamesToCodeNames('Entity AI Actions', await dataSource.query(sSQL));
|
|
9763
10642
|
return result;
|
|
9764
10643
|
}
|
|
9765
10644
|
|
|
10645
|
+
@FieldResolver(() => [AIResultCache_])
|
|
10646
|
+
async AIResultCache_AIModelIDArray(@Root() aimodel_: AIModel_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
10647
|
+
this.CheckUserReadPermissions('AI Result Cache', userPayload);
|
|
10648
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIResultCaches] WHERE [AIModelID]='${aimodel_.ID}' ` + this.getRowLevelSecurityWhereClause('AI Result Cache', userPayload, EntityPermissionType.Read, 'AND');
|
|
10649
|
+
const result = this.ArrayMapFieldNamesToCodeNames('AI Result Cache', await dataSource.query(sSQL));
|
|
10650
|
+
return result;
|
|
10651
|
+
}
|
|
10652
|
+
|
|
9766
10653
|
@Mutation(() => AIModel_)
|
|
9767
10654
|
async CreateAIModel(
|
|
9768
10655
|
@Arg('input', () => CreateAIModelInput) input: CreateAIModelInput,
|
|
@@ -9945,7 +10832,7 @@ export class AIActionResolver extends ResolverBase {
|
|
|
9945
10832
|
}
|
|
9946
10833
|
|
|
9947
10834
|
@FieldResolver(() => [AIModelAction_])
|
|
9948
|
-
async
|
|
10835
|
+
async AIModelActions_AIActionIDArray(@Root() aiaction_: AIAction_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
9949
10836
|
this.CheckUserReadPermissions('AI Model Actions', userPayload);
|
|
9950
10837
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIModelActions] WHERE [AIActionID]='${aiaction_.ID}' ` + this.getRowLevelSecurityWhereClause('AI Model Actions', userPayload, EntityPermissionType.Read, 'AND');
|
|
9951
10838
|
const result = this.ArrayMapFieldNamesToCodeNames('AI Model Actions', await dataSource.query(sSQL));
|
|
@@ -9953,7 +10840,7 @@ export class AIActionResolver extends ResolverBase {
|
|
|
9953
10840
|
}
|
|
9954
10841
|
|
|
9955
10842
|
@FieldResolver(() => [EntityAIAction_])
|
|
9956
|
-
async
|
|
10843
|
+
async EntityAIActions_AIActionIDArray(@Root() aiaction_: AIAction_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
9957
10844
|
this.CheckUserReadPermissions('Entity AI Actions', userPayload);
|
|
9958
10845
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwEntityAIActions] WHERE [AIActionID]='${aiaction_.ID}' ` + this.getRowLevelSecurityWhereClause('Entity AI Actions', userPayload, EntityPermissionType.Read, 'AND');
|
|
9959
10846
|
const result = this.ArrayMapFieldNamesToCodeNames('Entity AI Actions', await dataSource.query(sSQL));
|
|
@@ -10524,7 +11411,7 @@ export class AIModelTypeResolver extends ResolverBase {
|
|
|
10524
11411
|
}
|
|
10525
11412
|
|
|
10526
11413
|
@FieldResolver(() => [AIModel_])
|
|
10527
|
-
async
|
|
11414
|
+
async AIModels_AIModelTypeIDArray(@Root() aimodeltype_: AIModelType_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
10528
11415
|
this.CheckUserReadPermissions('AI Models', userPayload);
|
|
10529
11416
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIModels] WHERE [AIModelTypeID]='${aimodeltype_.ID}' ` + this.getRowLevelSecurityWhereClause('AI Models', userPayload, EntityPermissionType.Read, 'AND');
|
|
10530
11417
|
const result = this.ArrayMapFieldNamesToCodeNames('AI Models', await dataSource.query(sSQL));
|
|
@@ -10649,7 +11536,7 @@ export class QueueTypeResolver extends ResolverBase {
|
|
|
10649
11536
|
}
|
|
10650
11537
|
|
|
10651
11538
|
@FieldResolver(() => [Queue_])
|
|
10652
|
-
async
|
|
11539
|
+
async Queues_QueueTypeIDArray(@Root() queuetype_: QueueType_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
10653
11540
|
this.CheckUserReadPermissions('Queues', userPayload);
|
|
10654
11541
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwQueues] WHERE [QueueTypeID]='${queuetype_.ID}' ` + this.getRowLevelSecurityWhereClause('Queues', userPayload, EntityPermissionType.Read, 'AND');
|
|
10655
11542
|
const result = this.ArrayMapFieldNamesToCodeNames('Queues', await dataSource.query(sSQL));
|
|
@@ -10913,7 +11800,7 @@ export class QueueResolver extends ResolverBase {
|
|
|
10913
11800
|
}
|
|
10914
11801
|
|
|
10915
11802
|
@FieldResolver(() => [QueueTask_])
|
|
10916
|
-
async
|
|
11803
|
+
async QueueTasks_QueueIDArray(@Root() queue_: Queue_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
10917
11804
|
this.CheckUserReadPermissions('Queue Tasks', userPayload);
|
|
10918
11805
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwQueueTasks] WHERE [QueueID]='${queue_.ID}' ` + this.getRowLevelSecurityWhereClause('Queue Tasks', userPayload, EntityPermissionType.Read, 'AND');
|
|
10919
11806
|
const result = this.ArrayMapFieldNamesToCodeNames('Queue Tasks', await dataSource.query(sSQL));
|
|
@@ -11392,7 +12279,7 @@ export class OutputTriggerTypeResolver extends ResolverBase {
|
|
|
11392
12279
|
}
|
|
11393
12280
|
|
|
11394
12281
|
@FieldResolver(() => [Report_])
|
|
11395
|
-
async
|
|
12282
|
+
async Reports_OutputTriggerTypeIDArray(@Root() outputtriggertype_: OutputTriggerType_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
11396
12283
|
this.CheckUserReadPermissions('Reports', userPayload);
|
|
11397
12284
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwReports] WHERE [OutputTriggerTypeID]='${outputtriggertype_.ID}' ` + this.getRowLevelSecurityWhereClause('Reports', userPayload, EntityPermissionType.Read, 'AND');
|
|
11398
12285
|
const result = this.ArrayMapFieldNamesToCodeNames('Reports', await dataSource.query(sSQL));
|
|
@@ -11485,7 +12372,7 @@ export class OutputFormatTypeResolver extends ResolverBase {
|
|
|
11485
12372
|
}
|
|
11486
12373
|
|
|
11487
12374
|
@FieldResolver(() => [Report_])
|
|
11488
|
-
async
|
|
12375
|
+
async Reports_OutputFormatTypeIDArray(@Root() outputformattype_: OutputFormatType_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
11489
12376
|
this.CheckUserReadPermissions('Reports', userPayload);
|
|
11490
12377
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwReports] WHERE [OutputFormatTypeID]='${outputformattype_.ID}' ` + this.getRowLevelSecurityWhereClause('Reports', userPayload, EntityPermissionType.Read, 'AND');
|
|
11491
12378
|
const result = this.ArrayMapFieldNamesToCodeNames('Reports', await dataSource.query(sSQL));
|
|
@@ -11575,7 +12462,7 @@ export class OutputDeliveryTypeResolver extends ResolverBase {
|
|
|
11575
12462
|
}
|
|
11576
12463
|
|
|
11577
12464
|
@FieldResolver(() => [Report_])
|
|
11578
|
-
async
|
|
12465
|
+
async Reports_OutputDeliveryTypeIDArray(@Root() outputdeliverytype_: OutputDeliveryType_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
11579
12466
|
this.CheckUserReadPermissions('Reports', userPayload);
|
|
11580
12467
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwReports] WHERE [OutputDeliveryTypeID]='${outputdeliverytype_.ID}' ` + this.getRowLevelSecurityWhereClause('Reports', userPayload, EntityPermissionType.Read, 'AND');
|
|
11581
12468
|
const result = this.ArrayMapFieldNamesToCodeNames('Reports', await dataSource.query(sSQL));
|
|
@@ -11858,7 +12745,7 @@ export class ReportResolver extends ResolverBase {
|
|
|
11858
12745
|
}
|
|
11859
12746
|
|
|
11860
12747
|
@FieldResolver(() => [ReportSnapshot_])
|
|
11861
|
-
async
|
|
12748
|
+
async ReportSnapshots_ReportIDArray(@Root() report_: Report_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
11862
12749
|
this.CheckUserReadPermissions('Report Snapshots', userPayload);
|
|
11863
12750
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwReportSnapshots] WHERE [ReportID]='${report_.ID}' ` + this.getRowLevelSecurityWhereClause('Report Snapshots', userPayload, EntityPermissionType.Read, 'AND');
|
|
11864
12751
|
const result = this.ArrayMapFieldNamesToCodeNames('Report Snapshots', await dataSource.query(sSQL));
|
|
@@ -12144,7 +13031,7 @@ export class ResourceTypeResolver extends ResolverBase {
|
|
|
12144
13031
|
}
|
|
12145
13032
|
|
|
12146
13033
|
@FieldResolver(() => [WorkspaceItem_])
|
|
12147
|
-
async
|
|
13034
|
+
async WorkspaceItems_ResourceTypeIDArray(@Root() resourcetype_: ResourceType_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
12148
13035
|
this.CheckUserReadPermissions('Workspace Items', userPayload);
|
|
12149
13036
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwWorkspaceItems] WHERE [ResourceTypeID]='${resourcetype_.ID}' ` + this.getRowLevelSecurityWhereClause('Workspace Items', userPayload, EntityPermissionType.Read, 'AND');
|
|
12150
13037
|
const result = this.ArrayMapFieldNamesToCodeNames('Workspace Items', await dataSource.query(sSQL));
|
|
@@ -12152,7 +13039,7 @@ export class ResourceTypeResolver extends ResolverBase {
|
|
|
12152
13039
|
}
|
|
12153
13040
|
|
|
12154
13041
|
@FieldResolver(() => [UserNotification_])
|
|
12155
|
-
async
|
|
13042
|
+
async UserNotifications_ResourceTypeIDArray(@Root() resourcetype_: ResourceType_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
12156
13043
|
this.CheckUserReadPermissions('User Notifications', userPayload);
|
|
12157
13044
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwUserNotifications] WHERE [ResourceTypeID]='${resourcetype_.ID}' ` + this.getRowLevelSecurityWhereClause('User Notifications', userPayload, EntityPermissionType.Read, 'AND');
|
|
12158
13045
|
const result = this.ArrayMapFieldNamesToCodeNames('User Notifications', await dataSource.query(sSQL));
|
|
@@ -12257,7 +13144,7 @@ export class TagResolver extends ResolverBase {
|
|
|
12257
13144
|
}
|
|
12258
13145
|
|
|
12259
13146
|
@FieldResolver(() => [Tag_])
|
|
12260
|
-
async
|
|
13147
|
+
async Tags_ParentIDArray(@Root() tag_: Tag_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
12261
13148
|
this.CheckUserReadPermissions('Tags', userPayload);
|
|
12262
13149
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwTags] WHERE [ParentID]='${tag_.ID}' ` + this.getRowLevelSecurityWhereClause('Tags', userPayload, EntityPermissionType.Read, 'AND');
|
|
12263
13150
|
const result = this.ArrayMapFieldNamesToCodeNames('Tags', await dataSource.query(sSQL));
|
|
@@ -12265,7 +13152,7 @@ export class TagResolver extends ResolverBase {
|
|
|
12265
13152
|
}
|
|
12266
13153
|
|
|
12267
13154
|
@FieldResolver(() => [TaggedItem_])
|
|
12268
|
-
async
|
|
13155
|
+
async TaggedItems_TagIDArray(@Root() tag_: Tag_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
12269
13156
|
this.CheckUserReadPermissions('Tagged Items', userPayload);
|
|
12270
13157
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwTaggedItems] WHERE [TagID]='${tag_.ID}' ` + this.getRowLevelSecurityWhereClause('Tagged Items', userPayload, EntityPermissionType.Read, 'AND');
|
|
12271
13158
|
const result = this.ArrayMapFieldNamesToCodeNames('Tagged Items', await dataSource.query(sSQL));
|
|
@@ -12493,7 +13380,7 @@ export class WorkspaceResolver extends ResolverBase {
|
|
|
12493
13380
|
}
|
|
12494
13381
|
|
|
12495
13382
|
@FieldResolver(() => [WorkspaceItem_])
|
|
12496
|
-
async
|
|
13383
|
+
async WorkspaceItems_WorkSpaceIDArray(@Root() workspace_: Workspace_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
12497
13384
|
this.CheckUserReadPermissions('Workspace Items', userPayload);
|
|
12498
13385
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwWorkspaceItems] WHERE [WorkSpaceID]='${workspace_.ID}' ` + this.getRowLevelSecurityWhereClause('Workspace Items', userPayload, EntityPermissionType.Read, 'AND');
|
|
12499
13386
|
const result = this.ArrayMapFieldNamesToCodeNames('Workspace Items', await dataSource.query(sSQL));
|
|
@@ -12798,7 +13685,7 @@ export class DatasetResolver extends ResolverBase {
|
|
|
12798
13685
|
}
|
|
12799
13686
|
|
|
12800
13687
|
@FieldResolver(() => [DatasetItem_])
|
|
12801
|
-
async
|
|
13688
|
+
async DatasetItems_DatasetNameArray(@Root() dataset_: Dataset_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
12802
13689
|
this.CheckUserReadPermissions('Dataset Items', userPayload);
|
|
12803
13690
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwDatasetItems] WHERE [DatasetName]='${dataset_.ID}' ` + this.getRowLevelSecurityWhereClause('Dataset Items', userPayload, EntityPermissionType.Read, 'AND');
|
|
12804
13691
|
const result = this.ArrayMapFieldNamesToCodeNames('Dataset Items', await dataSource.query(sSQL));
|
|
@@ -13067,7 +13954,7 @@ export class ConversationDetailResolver extends ResolverBase {
|
|
|
13067
13954
|
}
|
|
13068
13955
|
|
|
13069
13956
|
@FieldResolver(() => [Report_])
|
|
13070
|
-
async
|
|
13957
|
+
async Reports_ConversationDetailIDArray(@Root() conversationdetail_: ConversationDetail_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
13071
13958
|
this.CheckUserReadPermissions('Reports', userPayload);
|
|
13072
13959
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwReports] WHERE [ConversationDetailID]='${conversationdetail_.ID}' ` + this.getRowLevelSecurityWhereClause('Reports', userPayload, EntityPermissionType.Read, 'AND');
|
|
13073
13960
|
const result = this.ArrayMapFieldNamesToCodeNames('Reports', await dataSource.query(sSQL));
|
|
@@ -13297,7 +14184,7 @@ export class ConversationResolver extends ResolverBase {
|
|
|
13297
14184
|
}
|
|
13298
14185
|
|
|
13299
14186
|
@FieldResolver(() => [ConversationDetail_])
|
|
13300
|
-
async
|
|
14187
|
+
async ConversationDetails_ConversationIDArray(@Root() conversation_: Conversation_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
13301
14188
|
this.CheckUserReadPermissions('Conversation Details', userPayload);
|
|
13302
14189
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwConversationDetails] WHERE [ConversationID]='${conversation_.ID}' ` + this.getRowLevelSecurityWhereClause('Conversation Details', userPayload, EntityPermissionType.Read, 'AND');
|
|
13303
14190
|
const result = this.ArrayMapFieldNamesToCodeNames('Conversation Details', await dataSource.query(sSQL));
|
|
@@ -13305,7 +14192,7 @@ export class ConversationResolver extends ResolverBase {
|
|
|
13305
14192
|
}
|
|
13306
14193
|
|
|
13307
14194
|
@FieldResolver(() => [Report_])
|
|
13308
|
-
async
|
|
14195
|
+
async Reports_ConversationIDArray(@Root() conversation_: Conversation_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
13309
14196
|
this.CheckUserReadPermissions('Reports', userPayload);
|
|
13310
14197
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwReports] WHERE [ConversationID]='${conversation_.ID}' ` + this.getRowLevelSecurityWhereClause('Reports', userPayload, EntityPermissionType.Read, 'AND');
|
|
13311
14198
|
const result = this.ArrayMapFieldNamesToCodeNames('Reports', await dataSource.query(sSQL));
|
|
@@ -14047,7 +14934,7 @@ export class RecordMergeLogResolver extends ResolverBase {
|
|
|
14047
14934
|
}
|
|
14048
14935
|
|
|
14049
14936
|
@FieldResolver(() => [RecordMergeDeletionLog_])
|
|
14050
|
-
async
|
|
14937
|
+
async RecordMergeDeletionLogs_RecordMergeLogIDArray(@Root() recordmergelog_: RecordMergeLog_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
14051
14938
|
this.CheckUserReadPermissions('Record Merge Deletion Logs', userPayload);
|
|
14052
14939
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwRecordMergeDeletionLogs] WHERE [RecordMergeLogID]='${recordmergelog_.ID}' ` + this.getRowLevelSecurityWhereClause('Record Merge Deletion Logs', userPayload, EntityPermissionType.Read, 'AND');
|
|
14053
14940
|
const result = this.ArrayMapFieldNamesToCodeNames('Record Merge Deletion Logs', await dataSource.query(sSQL));
|
|
@@ -14055,7 +14942,7 @@ export class RecordMergeLogResolver extends ResolverBase {
|
|
|
14055
14942
|
}
|
|
14056
14943
|
|
|
14057
14944
|
@FieldResolver(() => [DuplicateRunDetailMatch_])
|
|
14058
|
-
async
|
|
14945
|
+
async DuplicateRunDetailMatches_RecordMergeLogIDArray(@Root() recordmergelog_: RecordMergeLog_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
14059
14946
|
this.CheckUserReadPermissions('Duplicate Run Detail Matches', userPayload);
|
|
14060
14947
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwDuplicateRunDetailMatches] WHERE [RecordMergeLogID]='${recordmergelog_.ID}' ` + this.getRowLevelSecurityWhereClause('Duplicate Run Detail Matches', userPayload, EntityPermissionType.Read, 'AND');
|
|
14061
14948
|
const result = this.ArrayMapFieldNamesToCodeNames('Duplicate Run Detail Matches', await dataSource.query(sSQL));
|
|
@@ -14607,7 +15494,7 @@ export class QueryCategoryResolver extends ResolverBase {
|
|
|
14607
15494
|
}
|
|
14608
15495
|
|
|
14609
15496
|
@FieldResolver(() => [QueryCategory_])
|
|
14610
|
-
async
|
|
15497
|
+
async QueryCategories_ParentIDArray(@Root() querycategory_: QueryCategory_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
14611
15498
|
this.CheckUserReadPermissions('Query Categories', userPayload);
|
|
14612
15499
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwQueryCategories] WHERE [ParentID]='${querycategory_.ID}' ` + this.getRowLevelSecurityWhereClause('Query Categories', userPayload, EntityPermissionType.Read, 'AND');
|
|
14613
15500
|
const result = this.ArrayMapFieldNamesToCodeNames('Query Categories', await dataSource.query(sSQL));
|
|
@@ -14615,7 +15502,7 @@ export class QueryCategoryResolver extends ResolverBase {
|
|
|
14615
15502
|
}
|
|
14616
15503
|
|
|
14617
15504
|
@FieldResolver(() => [Query_])
|
|
14618
|
-
async
|
|
15505
|
+
async Queries_CategoryIDArray(@Root() querycategory_: QueryCategory_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
14619
15506
|
this.CheckUserReadPermissions('Queries', userPayload);
|
|
14620
15507
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwQueries] WHERE [CategoryID]='${querycategory_.ID}' ` + this.getRowLevelSecurityWhereClause('Queries', userPayload, EntityPermissionType.Read, 'AND');
|
|
14621
15508
|
const result = this.ArrayMapFieldNamesToCodeNames('Queries', await dataSource.query(sSQL));
|
|
@@ -14854,7 +15741,7 @@ export class QueryResolver extends ResolverBase {
|
|
|
14854
15741
|
}
|
|
14855
15742
|
|
|
14856
15743
|
@FieldResolver(() => [QueryField_])
|
|
14857
|
-
async
|
|
15744
|
+
async QueryFields_QueryIDArray(@Root() query_: Query_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
14858
15745
|
this.CheckUserReadPermissions('Query Fields', userPayload);
|
|
14859
15746
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwQueryFields] WHERE [QueryID]='${query_.ID}' ` + this.getRowLevelSecurityWhereClause('Query Fields', userPayload, EntityPermissionType.Read, 'AND');
|
|
14860
15747
|
const result = this.ArrayMapFieldNamesToCodeNames('Query Fields', await dataSource.query(sSQL));
|
|
@@ -14862,7 +15749,7 @@ export class QueryResolver extends ResolverBase {
|
|
|
14862
15749
|
}
|
|
14863
15750
|
|
|
14864
15751
|
@FieldResolver(() => [DataContextItem_])
|
|
14865
|
-
async
|
|
15752
|
+
async DataContextItems_QueryIDArray(@Root() query_: Query_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
14866
15753
|
this.CheckUserReadPermissions('Data Context Items', userPayload);
|
|
14867
15754
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwDataContextItems] WHERE [QueryID]='${query_.ID}' ` + this.getRowLevelSecurityWhereClause('Data Context Items', userPayload, EntityPermissionType.Read, 'AND');
|
|
14868
15755
|
const result = this.ArrayMapFieldNamesToCodeNames('Data Context Items', await dataSource.query(sSQL));
|
|
@@ -14870,7 +15757,7 @@ export class QueryResolver extends ResolverBase {
|
|
|
14870
15757
|
}
|
|
14871
15758
|
|
|
14872
15759
|
@FieldResolver(() => [QueryPermission_])
|
|
14873
|
-
async
|
|
15760
|
+
async QueryPermissions_QueryIDArray(@Root() query_: Query_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
14874
15761
|
this.CheckUserReadPermissions('Query Permissions', userPayload);
|
|
14875
15762
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwQueryPermissions] WHERE [QueryID]='${query_.ID}' ` + this.getRowLevelSecurityWhereClause('Query Permissions', userPayload, EntityPermissionType.Read, 'AND');
|
|
14876
15763
|
const result = this.ArrayMapFieldNamesToCodeNames('Query Permissions', await dataSource.query(sSQL));
|
|
@@ -15176,7 +16063,7 @@ export class VectorIndexResolver extends ResolverBase {
|
|
|
15176
16063
|
}
|
|
15177
16064
|
|
|
15178
16065
|
@FieldResolver(() => [EntityRecordDocument_])
|
|
15179
|
-
async
|
|
16066
|
+
async EntityRecordDocuments_VectorIndexIDArray(@Root() vectorindex_: VectorIndex_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
15180
16067
|
this.CheckUserReadPermissions('Entity Record Documents', userPayload);
|
|
15181
16068
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwEntityRecordDocuments] WHERE [VectorIndexID]='${vectorindex_.ID}' ` + this.getRowLevelSecurityWhereClause('Entity Record Documents', userPayload, EntityPermissionType.Read, 'AND');
|
|
15182
16069
|
const result = this.ArrayMapFieldNamesToCodeNames('Entity Record Documents', await dataSource.query(sSQL));
|
|
@@ -15316,7 +16203,7 @@ export class EntityDocumentTypeResolver extends ResolverBase {
|
|
|
15316
16203
|
}
|
|
15317
16204
|
|
|
15318
16205
|
@FieldResolver(() => [EntityDocument_])
|
|
15319
|
-
async
|
|
16206
|
+
async EntityDocuments_TypeIDArray(@Root() entitydocumenttype_: EntityDocumentType_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
15320
16207
|
this.CheckUserReadPermissions('Entity Documents', userPayload);
|
|
15321
16208
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwEntityDocuments] WHERE [TypeID]='${entitydocumenttype_.ID}' ` + this.getRowLevelSecurityWhereClause('Entity Documents', userPayload, EntityPermissionType.Read, 'AND');
|
|
15322
16209
|
const result = this.ArrayMapFieldNamesToCodeNames('Entity Documents', await dataSource.query(sSQL));
|
|
@@ -15633,7 +16520,7 @@ export class VectorDatabaseResolver extends ResolverBase {
|
|
|
15633
16520
|
}
|
|
15634
16521
|
|
|
15635
16522
|
@FieldResolver(() => [EntityDocument_])
|
|
15636
|
-
async
|
|
16523
|
+
async EntityDocuments_IDArray(@Root() vectordatabase_: VectorDatabase_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
15637
16524
|
this.CheckUserReadPermissions('Entity Documents', userPayload);
|
|
15638
16525
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwEntityDocuments] WHERE [ID]='${vectordatabase_.ID}' ` + this.getRowLevelSecurityWhereClause('Entity Documents', userPayload, EntityPermissionType.Read, 'AND');
|
|
15639
16526
|
const result = this.ArrayMapFieldNamesToCodeNames('Entity Documents', await dataSource.query(sSQL));
|
|
@@ -15641,7 +16528,7 @@ export class VectorDatabaseResolver extends ResolverBase {
|
|
|
15641
16528
|
}
|
|
15642
16529
|
|
|
15643
16530
|
@FieldResolver(() => [VectorIndex_])
|
|
15644
|
-
async
|
|
16531
|
+
async VectorIndexes_VectorDatabaseIDArray(@Root() vectordatabase_: VectorDatabase_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
15645
16532
|
this.CheckUserReadPermissions('Vector Indexes', userPayload);
|
|
15646
16533
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwVectorIndexes] WHERE [VectorDatabaseID]='${vectordatabase_.ID}' ` + this.getRowLevelSecurityWhereClause('Vector Indexes', userPayload, EntityPermissionType.Read, 'AND');
|
|
15647
16534
|
const result = this.ArrayMapFieldNamesToCodeNames('Vector Indexes', await dataSource.query(sSQL));
|
|
@@ -16076,7 +16963,7 @@ export class EntityDocumentResolver extends ResolverBase {
|
|
|
16076
16963
|
}
|
|
16077
16964
|
|
|
16078
16965
|
@FieldResolver(() => [EntityDocumentSetting_])
|
|
16079
|
-
async
|
|
16966
|
+
async EntityDocumentSettings_EntityDocumentIDArray(@Root() entitydocument_: EntityDocument_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
16080
16967
|
this.CheckUserReadPermissions('Entity Document Settings', userPayload);
|
|
16081
16968
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwEntityDocumentSettings] WHERE [EntityDocumentID]='${entitydocument_.ID}' ` + this.getRowLevelSecurityWhereClause('Entity Document Settings', userPayload, EntityPermissionType.Read, 'AND');
|
|
16082
16969
|
const result = this.ArrayMapFieldNamesToCodeNames('Entity Document Settings', await dataSource.query(sSQL));
|
|
@@ -16084,7 +16971,7 @@ export class EntityDocumentResolver extends ResolverBase {
|
|
|
16084
16971
|
}
|
|
16085
16972
|
|
|
16086
16973
|
@FieldResolver(() => [EntityDocumentRun_])
|
|
16087
|
-
async
|
|
16974
|
+
async EntityDocumentRuns_EntityDocumentIDArray(@Root() entitydocument_: EntityDocument_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
16088
16975
|
this.CheckUserReadPermissions('Entity Document Runs', userPayload);
|
|
16089
16976
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwEntityDocumentRuns] WHERE [EntityDocumentID]='${entitydocument_.ID}' ` + this.getRowLevelSecurityWhereClause('Entity Document Runs', userPayload, EntityPermissionType.Read, 'AND');
|
|
16090
16977
|
const result = this.ArrayMapFieldNamesToCodeNames('Entity Document Runs', await dataSource.query(sSQL));
|
|
@@ -16092,7 +16979,7 @@ export class EntityDocumentResolver extends ResolverBase {
|
|
|
16092
16979
|
}
|
|
16093
16980
|
|
|
16094
16981
|
@FieldResolver(() => [EntityRecordDocument_])
|
|
16095
|
-
async
|
|
16982
|
+
async EntityRecordDocuments_EntityDocumentIDArray(@Root() entitydocument_: EntityDocument_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
16096
16983
|
this.CheckUserReadPermissions('Entity Record Documents', userPayload);
|
|
16097
16984
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwEntityRecordDocuments] WHERE [EntityDocumentID]='${entitydocument_.ID}' ` + this.getRowLevelSecurityWhereClause('Entity Record Documents', userPayload, EntityPermissionType.Read, 'AND');
|
|
16098
16985
|
const result = this.ArrayMapFieldNamesToCodeNames('Entity Record Documents', await dataSource.query(sSQL));
|
|
@@ -16482,7 +17369,7 @@ export class DataContextResolver extends ResolverBase {
|
|
|
16482
17369
|
}
|
|
16483
17370
|
|
|
16484
17371
|
@FieldResolver(() => [Report_])
|
|
16485
|
-
async
|
|
17372
|
+
async Reports_DataContextIDArray(@Root() datacontext_: DataContext_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
16486
17373
|
this.CheckUserReadPermissions('Reports', userPayload);
|
|
16487
17374
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwReports] WHERE [DataContextID]='${datacontext_.ID}' ` + this.getRowLevelSecurityWhereClause('Reports', userPayload, EntityPermissionType.Read, 'AND');
|
|
16488
17375
|
const result = this.ArrayMapFieldNamesToCodeNames('Reports', await dataSource.query(sSQL));
|
|
@@ -16490,7 +17377,7 @@ export class DataContextResolver extends ResolverBase {
|
|
|
16490
17377
|
}
|
|
16491
17378
|
|
|
16492
17379
|
@FieldResolver(() => [DataContextItem_])
|
|
16493
|
-
async
|
|
17380
|
+
async DataContextItems_DataContextIDArray(@Root() datacontext_: DataContext_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
16494
17381
|
this.CheckUserReadPermissions('Data Context Items', userPayload);
|
|
16495
17382
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwDataContextItems] WHERE [DataContextID]='${datacontext_.ID}' ` + this.getRowLevelSecurityWhereClause('Data Context Items', userPayload, EntityPermissionType.Read, 'AND');
|
|
16496
17383
|
const result = this.ArrayMapFieldNamesToCodeNames('Data Context Items', await dataSource.query(sSQL));
|
|
@@ -16498,7 +17385,7 @@ export class DataContextResolver extends ResolverBase {
|
|
|
16498
17385
|
}
|
|
16499
17386
|
|
|
16500
17387
|
@FieldResolver(() => [Conversation_])
|
|
16501
|
-
async
|
|
17388
|
+
async Conversations_DataContextIDArray(@Root() datacontext_: DataContext_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
16502
17389
|
this.CheckUserReadPermissions('Conversations', userPayload);
|
|
16503
17390
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwConversations] WHERE [DataContextID]='${datacontext_.ID}' ` + this.getRowLevelSecurityWhereClause('Conversations', userPayload, EntityPermissionType.Read, 'AND');
|
|
16504
17391
|
const result = this.ArrayMapFieldNamesToCodeNames('Conversations', await dataSource.query(sSQL));
|
|
@@ -16689,7 +17576,7 @@ export class UserViewCategoryResolver extends ResolverBase {
|
|
|
16689
17576
|
}
|
|
16690
17577
|
|
|
16691
17578
|
@FieldResolver(() => [UserViewCategory_])
|
|
16692
|
-
async
|
|
17579
|
+
async UserViewCategories_ParentIDArray(@Root() userviewcategory_: UserViewCategory_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
16693
17580
|
this.CheckUserReadPermissions('User View Categories', userPayload);
|
|
16694
17581
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwUserViewCategories] WHERE [ParentID]='${userviewcategory_.ID}' ` + this.getRowLevelSecurityWhereClause('User View Categories', userPayload, EntityPermissionType.Read, 'AND');
|
|
16695
17582
|
const result = this.ArrayMapFieldNamesToCodeNames('User View Categories', await dataSource.query(sSQL));
|
|
@@ -16697,7 +17584,7 @@ export class UserViewCategoryResolver extends ResolverBase {
|
|
|
16697
17584
|
}
|
|
16698
17585
|
|
|
16699
17586
|
@FieldResolver(() => [UserView_])
|
|
16700
|
-
async
|
|
17587
|
+
async UserViews_CategoryIDArray(@Root() userviewcategory_: UserViewCategory_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
16701
17588
|
this.CheckUserReadPermissions('User Views', userPayload);
|
|
16702
17589
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwUserViews] WHERE [CategoryID]='${userviewcategory_.ID}' ` + this.getRowLevelSecurityWhereClause('User Views', userPayload, EntityPermissionType.Read, 'AND');
|
|
16703
17590
|
const result = this.ArrayMapFieldNamesToCodeNames('User Views', await dataSource.query(sSQL));
|
|
@@ -16874,7 +17761,7 @@ export class DashboardCategoryResolver extends ResolverBase {
|
|
|
16874
17761
|
}
|
|
16875
17762
|
|
|
16876
17763
|
@FieldResolver(() => [DashboardCategory_])
|
|
16877
|
-
async
|
|
17764
|
+
async DashboardCategories_ParentIDArray(@Root() dashboardcategory_: DashboardCategory_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
16878
17765
|
this.CheckUserReadPermissions('Dashboard Categories', userPayload);
|
|
16879
17766
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwDashboardCategories] WHERE [ParentID]='${dashboardcategory_.ID}' ` + this.getRowLevelSecurityWhereClause('Dashboard Categories', userPayload, EntityPermissionType.Read, 'AND');
|
|
16880
17767
|
const result = this.ArrayMapFieldNamesToCodeNames('Dashboard Categories', await dataSource.query(sSQL));
|
|
@@ -16882,7 +17769,7 @@ export class DashboardCategoryResolver extends ResolverBase {
|
|
|
16882
17769
|
}
|
|
16883
17770
|
|
|
16884
17771
|
@FieldResolver(() => [Dashboard_])
|
|
16885
|
-
async
|
|
17772
|
+
async Dashboards_CategoryIDArray(@Root() dashboardcategory_: DashboardCategory_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
16886
17773
|
this.CheckUserReadPermissions('Dashboards', userPayload);
|
|
16887
17774
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwDashboards] WHERE [CategoryID]='${dashboardcategory_.ID}' ` + this.getRowLevelSecurityWhereClause('Dashboards', userPayload, EntityPermissionType.Read, 'AND');
|
|
16888
17775
|
const result = this.ArrayMapFieldNamesToCodeNames('Dashboards', await dataSource.query(sSQL));
|
|
@@ -17059,7 +17946,7 @@ export class ReportCategoryResolver extends ResolverBase {
|
|
|
17059
17946
|
}
|
|
17060
17947
|
|
|
17061
17948
|
@FieldResolver(() => [ReportCategory_])
|
|
17062
|
-
async
|
|
17949
|
+
async ReportCategories_ParentIDArray(@Root() reportcategory_: ReportCategory_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
17063
17950
|
this.CheckUserReadPermissions('Report Categories', userPayload);
|
|
17064
17951
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwReportCategories] WHERE [ParentID]='${reportcategory_.ID}' ` + this.getRowLevelSecurityWhereClause('Report Categories', userPayload, EntityPermissionType.Read, 'AND');
|
|
17065
17952
|
const result = this.ArrayMapFieldNamesToCodeNames('Report Categories', await dataSource.query(sSQL));
|
|
@@ -17067,7 +17954,7 @@ export class ReportCategoryResolver extends ResolverBase {
|
|
|
17067
17954
|
}
|
|
17068
17955
|
|
|
17069
17956
|
@FieldResolver(() => [Report_])
|
|
17070
|
-
async
|
|
17957
|
+
async Reports_CategoryIDArray(@Root() reportcategory_: ReportCategory_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
17071
17958
|
this.CheckUserReadPermissions('Reports', userPayload);
|
|
17072
17959
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwReports] WHERE [CategoryID]='${reportcategory_.ID}' ` + this.getRowLevelSecurityWhereClause('Reports', userPayload, EntityPermissionType.Read, 'AND');
|
|
17073
17960
|
const result = this.ArrayMapFieldNamesToCodeNames('Reports', await dataSource.query(sSQL));
|
|
@@ -17251,7 +18138,7 @@ export class FileStorageProviderResolver extends ResolverBase {
|
|
|
17251
18138
|
}
|
|
17252
18139
|
|
|
17253
18140
|
@FieldResolver(() => [File_])
|
|
17254
|
-
async
|
|
18141
|
+
async Files_ProviderIDArray(@Root() filestorageprovider_: FileStorageProvider_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
17255
18142
|
this.CheckUserReadPermissions('Files', userPayload);
|
|
17256
18143
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwFiles] WHERE [ProviderID]='${filestorageprovider_.ID}' ` + this.getRowLevelSecurityWhereClause('Files', userPayload, EntityPermissionType.Read, 'AND');
|
|
17257
18144
|
const result = this.ArrayMapFieldNamesToCodeNames('Files', await dataSource.query(sSQL));
|
|
@@ -17449,7 +18336,7 @@ export class FileResolver extends ResolverBase {
|
|
|
17449
18336
|
}
|
|
17450
18337
|
|
|
17451
18338
|
@FieldResolver(() => [FileEntityRecordLink_])
|
|
17452
|
-
async
|
|
18339
|
+
async FileEntityRecordLinks_FileIDArray(@Root() file_: File_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
17453
18340
|
this.CheckUserReadPermissions('File Entity Record Links', userPayload);
|
|
17454
18341
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwFileEntityRecordLinks] WHERE [FileID]='${file_.ID}' ` + this.getRowLevelSecurityWhereClause('File Entity Record Links', userPayload, EntityPermissionType.Read, 'AND');
|
|
17455
18342
|
const result = this.ArrayMapFieldNamesToCodeNames('File Entity Record Links', await dataSource.query(sSQL));
|
|
@@ -17612,7 +18499,7 @@ export class FileCategoryResolver extends ResolverBase {
|
|
|
17612
18499
|
}
|
|
17613
18500
|
|
|
17614
18501
|
@FieldResolver(() => [File_])
|
|
17615
|
-
async
|
|
18502
|
+
async Files_CategoryIDArray(@Root() filecategory_: FileCategory_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
17616
18503
|
this.CheckUserReadPermissions('Files', userPayload);
|
|
17617
18504
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwFiles] WHERE [CategoryID]='${filecategory_.ID}' ` + this.getRowLevelSecurityWhereClause('Files', userPayload, EntityPermissionType.Read, 'AND');
|
|
17618
18505
|
const result = this.ArrayMapFieldNamesToCodeNames('Files', await dataSource.query(sSQL));
|
|
@@ -17620,7 +18507,7 @@ export class FileCategoryResolver extends ResolverBase {
|
|
|
17620
18507
|
}
|
|
17621
18508
|
|
|
17622
18509
|
@FieldResolver(() => [FileCategory_])
|
|
17623
|
-
async
|
|
18510
|
+
async FileCategories_ParentIDArray(@Root() filecategory_: FileCategory_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
17624
18511
|
this.CheckUserReadPermissions('File Categories', userPayload);
|
|
17625
18512
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwFileCategories] WHERE [ParentID]='${filecategory_.ID}' ` + this.getRowLevelSecurityWhereClause('File Categories', userPayload, EntityPermissionType.Read, 'AND');
|
|
17626
18513
|
const result = this.ArrayMapFieldNamesToCodeNames('File Categories', await dataSource.query(sSQL));
|
|
@@ -18711,7 +19598,7 @@ export class DuplicateRunResolver extends ResolverBase {
|
|
|
18711
19598
|
}
|
|
18712
19599
|
|
|
18713
19600
|
@FieldResolver(() => [DuplicateRunDetail_])
|
|
18714
|
-
async
|
|
19601
|
+
async DuplicateRunDetails_DuplicateRunIDArray(@Root() duplicaterun_: DuplicateRun_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
18715
19602
|
this.CheckUserReadPermissions('Duplicate Run Details', userPayload);
|
|
18716
19603
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwDuplicateRunDetails] WHERE [DuplicateRunID]='${duplicaterun_.ID}' ` + this.getRowLevelSecurityWhereClause('Duplicate Run Details', userPayload, EntityPermissionType.Read, 'AND');
|
|
18717
19604
|
const result = this.ArrayMapFieldNamesToCodeNames('Duplicate Run Details', await dataSource.query(sSQL));
|
|
@@ -18899,7 +19786,7 @@ export class DuplicateRunDetailResolver extends ResolverBase {
|
|
|
18899
19786
|
}
|
|
18900
19787
|
|
|
18901
19788
|
@FieldResolver(() => [DuplicateRunDetailMatch_])
|
|
18902
|
-
async
|
|
19789
|
+
async DuplicateRunDetailMatches_DuplicateRunDetailIDArray(@Root() duplicaterundetail_: DuplicateRunDetail_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
18903
19790
|
this.CheckUserReadPermissions('Duplicate Run Detail Matches', userPayload);
|
|
18904
19791
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwDuplicateRunDetailMatches] WHERE [DuplicateRunDetailID]='${duplicaterundetail_.ID}' ` + this.getRowLevelSecurityWhereClause('Duplicate Run Detail Matches', userPayload, EntityPermissionType.Read, 'AND');
|
|
18905
19792
|
const result = this.ArrayMapFieldNamesToCodeNames('Duplicate Run Detail Matches', await dataSource.query(sSQL));
|
|
@@ -19224,7 +20111,7 @@ export class ActionCategoryResolver extends ResolverBase {
|
|
|
19224
20111
|
}
|
|
19225
20112
|
|
|
19226
20113
|
@FieldResolver(() => [ActionCategory_])
|
|
19227
|
-
async
|
|
20114
|
+
async ActionCategories_ParentIDArray(@Root() actioncategory_: ActionCategory_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
19228
20115
|
this.CheckUserReadPermissions('Action Categories', userPayload);
|
|
19229
20116
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwActionCategories] WHERE [ParentID]='${actioncategory_.ID}' ` + this.getRowLevelSecurityWhereClause('Action Categories', userPayload, EntityPermissionType.Read, 'AND');
|
|
19230
20117
|
const result = this.ArrayMapFieldNamesToCodeNames('Action Categories', await dataSource.query(sSQL));
|
|
@@ -19232,7 +20119,7 @@ export class ActionCategoryResolver extends ResolverBase {
|
|
|
19232
20119
|
}
|
|
19233
20120
|
|
|
19234
20121
|
@FieldResolver(() => [Action_])
|
|
19235
|
-
async
|
|
20122
|
+
async Actions_CategoryIDArray(@Root() actioncategory_: ActionCategory_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
19236
20123
|
this.CheckUserReadPermissions('Actions', userPayload);
|
|
19237
20124
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwActions] WHERE [CategoryID]='${actioncategory_.ID}' ` + this.getRowLevelSecurityWhereClause('Actions', userPayload, EntityPermissionType.Read, 'AND');
|
|
19238
20125
|
const result = this.ArrayMapFieldNamesToCodeNames('Actions', await dataSource.query(sSQL));
|
|
@@ -19403,7 +20290,7 @@ export class EntityActionResolver extends ResolverBase {
|
|
|
19403
20290
|
}
|
|
19404
20291
|
|
|
19405
20292
|
@FieldResolver(() => [EntityActionInvocation_])
|
|
19406
|
-
async
|
|
20293
|
+
async EntityActionInvocations_EntityActionIDArray(@Root() entityaction_: EntityAction_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
19407
20294
|
this.CheckUserReadPermissions('Entity Action Invocations', userPayload);
|
|
19408
20295
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwEntityActionInvocations] WHERE [EntityActionID]='${entityaction_.ID}' ` + this.getRowLevelSecurityWhereClause('Entity Action Invocations', userPayload, EntityPermissionType.Read, 'AND');
|
|
19409
20296
|
const result = this.ArrayMapFieldNamesToCodeNames('Entity Action Invocations', await dataSource.query(sSQL));
|
|
@@ -19411,7 +20298,7 @@ export class EntityActionResolver extends ResolverBase {
|
|
|
19411
20298
|
}
|
|
19412
20299
|
|
|
19413
20300
|
@FieldResolver(() => [EntityActionFilter_])
|
|
19414
|
-
async
|
|
20301
|
+
async EntityActionFilters_EntityActionIDArray(@Root() entityaction_: EntityAction_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
19415
20302
|
this.CheckUserReadPermissions('Entity Action Filters', userPayload);
|
|
19416
20303
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwEntityActionFilters] WHERE [EntityActionID]='${entityaction_.ID}' ` + this.getRowLevelSecurityWhereClause('Entity Action Filters', userPayload, EntityPermissionType.Read, 'AND');
|
|
19417
20304
|
const result = this.ArrayMapFieldNamesToCodeNames('Entity Action Filters', await dataSource.query(sSQL));
|
|
@@ -19419,7 +20306,7 @@ export class EntityActionResolver extends ResolverBase {
|
|
|
19419
20306
|
}
|
|
19420
20307
|
|
|
19421
20308
|
@FieldResolver(() => [EntityActionParam_])
|
|
19422
|
-
async
|
|
20309
|
+
async EntityActionParams_EntityActionIDArray(@Root() entityaction_: EntityAction_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
19423
20310
|
this.CheckUserReadPermissions('Entity Action Params', userPayload);
|
|
19424
20311
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwEntityActionParams] WHERE [EntityActionID]='${entityaction_.ID}' ` + this.getRowLevelSecurityWhereClause('Entity Action Params', userPayload, EntityPermissionType.Read, 'AND');
|
|
19425
20312
|
const result = this.ArrayMapFieldNamesToCodeNames('Entity Action Params', await dataSource.query(sSQL));
|
|
@@ -19877,7 +20764,7 @@ export class EntityActionInvocationTypeResolver extends ResolverBase {
|
|
|
19877
20764
|
}
|
|
19878
20765
|
|
|
19879
20766
|
@FieldResolver(() => [EntityActionInvocation_])
|
|
19880
|
-
async
|
|
20767
|
+
async EntityActionInvocations_InvocationTypeIDArray(@Root() entityactioninvocationtype_: EntityActionInvocationType_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
19881
20768
|
this.CheckUserReadPermissions('Entity Action Invocations', userPayload);
|
|
19882
20769
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwEntityActionInvocations] WHERE [InvocationTypeID]='${entityactioninvocationtype_.ID}' ` + this.getRowLevelSecurityWhereClause('Entity Action Invocations', userPayload, EntityPermissionType.Read, 'AND');
|
|
19883
20770
|
const result = this.ArrayMapFieldNamesToCodeNames('Entity Action Invocations', await dataSource.query(sSQL));
|
|
@@ -20184,7 +21071,7 @@ export class ActionResolver extends ResolverBase {
|
|
|
20184
21071
|
}
|
|
20185
21072
|
|
|
20186
21073
|
@FieldResolver(() => [ActionParam_])
|
|
20187
|
-
async
|
|
21074
|
+
async ActionParams_ActionIDArray(@Root() action_: Action_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
20188
21075
|
this.CheckUserReadPermissions('Action Params', userPayload);
|
|
20189
21076
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwActionParams] WHERE [ActionID]='${action_.ID}' ` + this.getRowLevelSecurityWhereClause('Action Params', userPayload, EntityPermissionType.Read, 'AND');
|
|
20190
21077
|
const result = this.ArrayMapFieldNamesToCodeNames('Action Params', await dataSource.query(sSQL));
|
|
@@ -20192,7 +21079,7 @@ export class ActionResolver extends ResolverBase {
|
|
|
20192
21079
|
}
|
|
20193
21080
|
|
|
20194
21081
|
@FieldResolver(() => [ActionLibrary_])
|
|
20195
|
-
async
|
|
21082
|
+
async ActionLibraries_ActionIDArray(@Root() action_: Action_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
20196
21083
|
this.CheckUserReadPermissions('Action Libraries', userPayload);
|
|
20197
21084
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwActionLibraries] WHERE [ActionID]='${action_.ID}' ` + this.getRowLevelSecurityWhereClause('Action Libraries', userPayload, EntityPermissionType.Read, 'AND');
|
|
20198
21085
|
const result = this.ArrayMapFieldNamesToCodeNames('Action Libraries', await dataSource.query(sSQL));
|
|
@@ -20200,7 +21087,7 @@ export class ActionResolver extends ResolverBase {
|
|
|
20200
21087
|
}
|
|
20201
21088
|
|
|
20202
21089
|
@FieldResolver(() => [ScheduledAction_])
|
|
20203
|
-
async
|
|
21090
|
+
async ScheduledActions_ActionIDArray(@Root() action_: Action_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
20204
21091
|
this.CheckUserReadPermissions('Scheduled Actions', userPayload);
|
|
20205
21092
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwScheduledActions] WHERE [ActionID]='${action_.ID}' ` + this.getRowLevelSecurityWhereClause('Scheduled Actions', userPayload, EntityPermissionType.Read, 'AND');
|
|
20206
21093
|
const result = this.ArrayMapFieldNamesToCodeNames('Scheduled Actions', await dataSource.query(sSQL));
|
|
@@ -20208,7 +21095,7 @@ export class ActionResolver extends ResolverBase {
|
|
|
20208
21095
|
}
|
|
20209
21096
|
|
|
20210
21097
|
@FieldResolver(() => [ActionResultCode_])
|
|
20211
|
-
async
|
|
21098
|
+
async ActionResultCodes_ActionIDArray(@Root() action_: Action_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
20212
21099
|
this.CheckUserReadPermissions('Action Result Codes', userPayload);
|
|
20213
21100
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwActionResultCodes] WHERE [ActionID]='${action_.ID}' ` + this.getRowLevelSecurityWhereClause('Action Result Codes', userPayload, EntityPermissionType.Read, 'AND');
|
|
20214
21101
|
const result = this.ArrayMapFieldNamesToCodeNames('Action Result Codes', await dataSource.query(sSQL));
|
|
@@ -20216,7 +21103,7 @@ export class ActionResolver extends ResolverBase {
|
|
|
20216
21103
|
}
|
|
20217
21104
|
|
|
20218
21105
|
@FieldResolver(() => [ActionContext_])
|
|
20219
|
-
async
|
|
21106
|
+
async ActionContexts_ActionIDArray(@Root() action_: Action_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
20220
21107
|
this.CheckUserReadPermissions('Action Contexts', userPayload);
|
|
20221
21108
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwActionContexts] WHERE [ActionID]='${action_.ID}' ` + this.getRowLevelSecurityWhereClause('Action Contexts', userPayload, EntityPermissionType.Read, 'AND');
|
|
20222
21109
|
const result = this.ArrayMapFieldNamesToCodeNames('Action Contexts', await dataSource.query(sSQL));
|
|
@@ -20224,7 +21111,7 @@ export class ActionResolver extends ResolverBase {
|
|
|
20224
21111
|
}
|
|
20225
21112
|
|
|
20226
21113
|
@FieldResolver(() => [EntityAction_])
|
|
20227
|
-
async
|
|
21114
|
+
async EntityActions_ActionIDArray(@Root() action_: Action_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
20228
21115
|
this.CheckUserReadPermissions('Entity Actions', userPayload);
|
|
20229
21116
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwEntityActions] WHERE [ActionID]='${action_.ID}' ` + this.getRowLevelSecurityWhereClause('Entity Actions', userPayload, EntityPermissionType.Read, 'AND');
|
|
20230
21117
|
const result = this.ArrayMapFieldNamesToCodeNames('Entity Actions', await dataSource.query(sSQL));
|
|
@@ -20232,7 +21119,7 @@ export class ActionResolver extends ResolverBase {
|
|
|
20232
21119
|
}
|
|
20233
21120
|
|
|
20234
21121
|
@FieldResolver(() => [ActionExecutionLog_])
|
|
20235
|
-
async
|
|
21122
|
+
async ActionExecutionLogs_ActionIDArray(@Root() action_: Action_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
20236
21123
|
this.CheckUserReadPermissions('Action Execution Logs', userPayload);
|
|
20237
21124
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwActionExecutionLogs] WHERE [ActionID]='${action_.ID}' ` + this.getRowLevelSecurityWhereClause('Action Execution Logs', userPayload, EntityPermissionType.Read, 'AND');
|
|
20238
21125
|
const result = this.ArrayMapFieldNamesToCodeNames('Action Execution Logs', await dataSource.query(sSQL));
|
|
@@ -20240,7 +21127,7 @@ export class ActionResolver extends ResolverBase {
|
|
|
20240
21127
|
}
|
|
20241
21128
|
|
|
20242
21129
|
@FieldResolver(() => [ActionAuthorization_])
|
|
20243
|
-
async
|
|
21130
|
+
async ActionAuthorizations_ActionIDArray(@Root() action_: Action_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
20244
21131
|
this.CheckUserReadPermissions('Action Authorizations', userPayload);
|
|
20245
21132
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwActionAuthorizations] WHERE [ActionID]='${action_.ID}' ` + this.getRowLevelSecurityWhereClause('Action Authorizations', userPayload, EntityPermissionType.Read, 'AND');
|
|
20246
21133
|
const result = this.ArrayMapFieldNamesToCodeNames('Action Authorizations', await dataSource.query(sSQL));
|
|
@@ -20558,7 +21445,7 @@ export class ActionFilterResolver extends ResolverBase {
|
|
|
20558
21445
|
}
|
|
20559
21446
|
|
|
20560
21447
|
@FieldResolver(() => [EntityActionFilter_])
|
|
20561
|
-
async
|
|
21448
|
+
async EntityActionFilters_ActionFilterIDArray(@Root() actionfilter_: ActionFilter_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
20562
21449
|
this.CheckUserReadPermissions('Entity Action Filters', userPayload);
|
|
20563
21450
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwEntityActionFilters] WHERE [ActionFilterID]='${actionfilter_.ID}' ` + this.getRowLevelSecurityWhereClause('Entity Action Filters', userPayload, EntityPermissionType.Read, 'AND');
|
|
20564
21451
|
const result = this.ArrayMapFieldNamesToCodeNames('Entity Action Filters', await dataSource.query(sSQL));
|
|
@@ -20704,7 +21591,7 @@ export class ActionContextTypeResolver extends ResolverBase {
|
|
|
20704
21591
|
}
|
|
20705
21592
|
|
|
20706
21593
|
@FieldResolver(() => [ActionContext_])
|
|
20707
|
-
async
|
|
21594
|
+
async ActionContexts_ContextTypeIDArray(@Root() actioncontexttype_: ActionContextType_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
20708
21595
|
this.CheckUserReadPermissions('Action Contexts', userPayload);
|
|
20709
21596
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwActionContexts] WHERE [ContextTypeID]='${actioncontexttype_.ID}' ` + this.getRowLevelSecurityWhereClause('Action Contexts', userPayload, EntityPermissionType.Read, 'AND');
|
|
20710
21597
|
const result = this.ArrayMapFieldNamesToCodeNames('Action Contexts', await dataSource.query(sSQL));
|
|
@@ -21418,7 +22305,7 @@ export class ActionParamResolver extends ResolverBase {
|
|
|
21418
22305
|
}
|
|
21419
22306
|
|
|
21420
22307
|
@FieldResolver(() => [EntityActionParam_])
|
|
21421
|
-
async
|
|
22308
|
+
async EntityActionParams_ActionParamIDArray(@Root() actionparam_: ActionParam_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
21422
22309
|
this.CheckUserReadPermissions('Entity Action Params', userPayload);
|
|
21423
22310
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwEntityActionParams] WHERE [ActionParamID]='${actionparam_.ID}' ` + this.getRowLevelSecurityWhereClause('Entity Action Params', userPayload, EntityPermissionType.Read, 'AND');
|
|
21424
22311
|
const result = this.ArrayMapFieldNamesToCodeNames('Entity Action Params', await dataSource.query(sSQL));
|
|
@@ -21426,7 +22313,7 @@ export class ActionParamResolver extends ResolverBase {
|
|
|
21426
22313
|
}
|
|
21427
22314
|
|
|
21428
22315
|
@FieldResolver(() => [ScheduledActionParam_])
|
|
21429
|
-
async
|
|
22316
|
+
async ScheduledActionParams_ActionParamIDArray(@Root() actionparam_: ActionParam_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
21430
22317
|
this.CheckUserReadPermissions('Scheduled Action Params', userPayload);
|
|
21431
22318
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwScheduledActionParams] WHERE [ActionParamID]='${actionparam_.ID}' ` + this.getRowLevelSecurityWhereClause('Scheduled Action Params', userPayload, EntityPermissionType.Read, 'AND');
|
|
21432
22319
|
const result = this.ArrayMapFieldNamesToCodeNames('Scheduled Action Params', await dataSource.query(sSQL));
|
|
@@ -21756,7 +22643,7 @@ export class LibraryResolver extends ResolverBase {
|
|
|
21756
22643
|
}
|
|
21757
22644
|
|
|
21758
22645
|
@FieldResolver(() => [ActionLibrary_])
|
|
21759
|
-
async
|
|
22646
|
+
async ActionLibraries_LibraryIDArray(@Root() library_: Library_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
21760
22647
|
this.CheckUserReadPermissions('Action Libraries', userPayload);
|
|
21761
22648
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwActionLibraries] WHERE [LibraryID]='${library_.ID}' ` + this.getRowLevelSecurityWhereClause('Action Libraries', userPayload, EntityPermissionType.Read, 'AND');
|
|
21762
22649
|
const result = this.ArrayMapFieldNamesToCodeNames('Action Libraries', await dataSource.query(sSQL));
|
|
@@ -21764,7 +22651,7 @@ export class LibraryResolver extends ResolverBase {
|
|
|
21764
22651
|
}
|
|
21765
22652
|
|
|
21766
22653
|
@FieldResolver(() => [LibraryItem_])
|
|
21767
|
-
async
|
|
22654
|
+
async LibraryItems_LibraryIDArray(@Root() library_: Library_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
21768
22655
|
this.CheckUserReadPermissions('Library Items', userPayload);
|
|
21769
22656
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwLibraryItems] WHERE [LibraryID]='${library_.ID}' ` + this.getRowLevelSecurityWhereClause('Library Items', userPayload, EntityPermissionType.Read, 'AND');
|
|
21770
22657
|
const result = this.ArrayMapFieldNamesToCodeNames('Library Items', await dataSource.query(sSQL));
|
|
@@ -21935,7 +22822,7 @@ export class ListCategoryResolver extends ResolverBase {
|
|
|
21935
22822
|
}
|
|
21936
22823
|
|
|
21937
22824
|
@FieldResolver(() => [ListCategory_])
|
|
21938
|
-
async
|
|
22825
|
+
async ListCategories_ParentIDArray(@Root() listcategory_: ListCategory_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
21939
22826
|
this.CheckUserReadPermissions('List Categories', userPayload);
|
|
21940
22827
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwListCategories] WHERE [ParentID]='${listcategory_.ID}' ` + this.getRowLevelSecurityWhereClause('List Categories', userPayload, EntityPermissionType.Read, 'AND');
|
|
21941
22828
|
const result = this.ArrayMapFieldNamesToCodeNames('List Categories', await dataSource.query(sSQL));
|
|
@@ -21943,7 +22830,7 @@ export class ListCategoryResolver extends ResolverBase {
|
|
|
21943
22830
|
}
|
|
21944
22831
|
|
|
21945
22832
|
@FieldResolver(() => [List_])
|
|
21946
|
-
async
|
|
22833
|
+
async Lists_CategoryIDArray(@Root() listcategory_: ListCategory_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
21947
22834
|
this.CheckUserReadPermissions('Lists', userPayload);
|
|
21948
22835
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwLists] WHERE [CategoryID]='${listcategory_.ID}' ` + this.getRowLevelSecurityWhereClause('Lists', userPayload, EntityPermissionType.Read, 'AND');
|
|
21949
22836
|
const result = this.ArrayMapFieldNamesToCodeNames('Lists', await dataSource.query(sSQL));
|
|
@@ -22114,7 +23001,7 @@ export class CommunicationProviderResolver extends ResolverBase {
|
|
|
22114
23001
|
}
|
|
22115
23002
|
|
|
22116
23003
|
@FieldResolver(() => [CommunicationLog_])
|
|
22117
|
-
async
|
|
23004
|
+
async CommunicationLogs_CommunicationProviderIDArray(@Root() communicationprovider_: CommunicationProvider_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
22118
23005
|
this.CheckUserReadPermissions('Communication Logs', userPayload);
|
|
22119
23006
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwCommunicationLogs] WHERE [CommunicationProviderID]='${communicationprovider_.ID}' ` + this.getRowLevelSecurityWhereClause('Communication Logs', userPayload, EntityPermissionType.Read, 'AND');
|
|
22120
23007
|
const result = this.ArrayMapFieldNamesToCodeNames('Communication Logs', await dataSource.query(sSQL));
|
|
@@ -22122,7 +23009,7 @@ export class CommunicationProviderResolver extends ResolverBase {
|
|
|
22122
23009
|
}
|
|
22123
23010
|
|
|
22124
23011
|
@FieldResolver(() => [CommunicationProviderMessageType_])
|
|
22125
|
-
async
|
|
23012
|
+
async CommunicationProviderMessageTypes_CommunicationProviderIDArray(@Root() communicationprovider_: CommunicationProvider_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
22126
23013
|
this.CheckUserReadPermissions('Communication Provider Message Types', userPayload);
|
|
22127
23014
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwCommunicationProviderMessageTypes] WHERE [CommunicationProviderID]='${communicationprovider_.ID}' ` + this.getRowLevelSecurityWhereClause('Communication Provider Message Types', userPayload, EntityPermissionType.Read, 'AND');
|
|
22128
23015
|
const result = this.ArrayMapFieldNamesToCodeNames('Communication Provider Message Types', await dataSource.query(sSQL));
|
|
@@ -22315,7 +23202,7 @@ export class CommunicationRunResolver extends ResolverBase {
|
|
|
22315
23202
|
}
|
|
22316
23203
|
|
|
22317
23204
|
@FieldResolver(() => [CommunicationLog_])
|
|
22318
|
-
async
|
|
23205
|
+
async CommunicationLogs_CommunicationRunIDArray(@Root() communicationrun_: CommunicationRun_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
22319
23206
|
this.CheckUserReadPermissions('Communication Logs', userPayload);
|
|
22320
23207
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwCommunicationLogs] WHERE [CommunicationRunID]='${communicationrun_.ID}' ` + this.getRowLevelSecurityWhereClause('Communication Logs', userPayload, EntityPermissionType.Read, 'AND');
|
|
22321
23208
|
const result = this.ArrayMapFieldNamesToCodeNames('Communication Logs', await dataSource.query(sSQL));
|
|
@@ -22493,7 +23380,7 @@ export class CommunicationProviderMessageTypeResolver extends ResolverBase {
|
|
|
22493
23380
|
}
|
|
22494
23381
|
|
|
22495
23382
|
@FieldResolver(() => [CommunicationLog_])
|
|
22496
|
-
async
|
|
23383
|
+
async CommunicationLogs_CommunicationProviderMessageTypeIDArray(@Root() communicationprovidermessagetype_: CommunicationProviderMessageType_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
22497
23384
|
this.CheckUserReadPermissions('Communication Logs', userPayload);
|
|
22498
23385
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwCommunicationLogs] WHERE [CommunicationProviderMessageTypeID]='${communicationprovidermessagetype_.ID}' ` + this.getRowLevelSecurityWhereClause('Communication Logs', userPayload, EntityPermissionType.Read, 'AND');
|
|
22499
23386
|
const result = this.ArrayMapFieldNamesToCodeNames('Communication Logs', await dataSource.query(sSQL));
|
|
@@ -22865,7 +23752,7 @@ export class CommunicationBaseMessageTypeResolver extends ResolverBase {
|
|
|
22865
23752
|
}
|
|
22866
23753
|
|
|
22867
23754
|
@FieldResolver(() => [CommunicationProviderMessageType_])
|
|
22868
|
-
async
|
|
23755
|
+
async CommunicationProviderMessageTypes_CommunicationBaseMessageTypeIDArray(@Root() communicationbasemessagetype_: CommunicationBaseMessageType_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
22869
23756
|
this.CheckUserReadPermissions('Communication Provider Message Types', userPayload);
|
|
22870
23757
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwCommunicationProviderMessageTypes] WHERE [CommunicationBaseMessageTypeID]='${communicationbasemessagetype_.ID}' ` + this.getRowLevelSecurityWhereClause('Communication Provider Message Types', userPayload, EntityPermissionType.Read, 'AND');
|
|
22871
23758
|
const result = this.ArrayMapFieldNamesToCodeNames('Communication Provider Message Types', await dataSource.query(sSQL));
|
|
@@ -22873,7 +23760,7 @@ export class CommunicationBaseMessageTypeResolver extends ResolverBase {
|
|
|
22873
23760
|
}
|
|
22874
23761
|
|
|
22875
23762
|
@FieldResolver(() => [EntityCommunicationMessageType_])
|
|
22876
|
-
async
|
|
23763
|
+
async EntityCommunicationMessageTypes_BaseMessageTypeIDArray(@Root() communicationbasemessagetype_: CommunicationBaseMessageType_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
22877
23764
|
this.CheckUserReadPermissions('Entity Communication Message Types', userPayload);
|
|
22878
23765
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwEntityCommunicationMessageTypes] WHERE [BaseMessageTypeID]='${communicationbasemessagetype_.ID}' ` + this.getRowLevelSecurityWhereClause('Entity Communication Message Types', userPayload, EntityPermissionType.Read, 'AND');
|
|
22879
23766
|
const result = this.ArrayMapFieldNamesToCodeNames('Entity Communication Message Types', await dataSource.query(sSQL));
|
|
@@ -22960,6 +23847,9 @@ export class Template_ {
|
|
|
22960
23847
|
@Field(() => [TemplateParam_])
|
|
22961
23848
|
TemplateParamsArray: TemplateParam_[]; // Link to TemplateParams
|
|
22962
23849
|
|
|
23850
|
+
@Field(() => [AIPrompt_])
|
|
23851
|
+
AIPromptsArray: AIPrompt_[]; // Link to AIPrompts
|
|
23852
|
+
|
|
22963
23853
|
@Field(() => [EntityDocument_])
|
|
22964
23854
|
EntityDocumentsArray: EntityDocument_[]; // Link to EntityDocuments
|
|
22965
23855
|
|
|
@@ -23085,7 +23975,7 @@ export class TemplateResolver extends ResolverBase {
|
|
|
23085
23975
|
}
|
|
23086
23976
|
|
|
23087
23977
|
@FieldResolver(() => [TemplateContent_])
|
|
23088
|
-
async
|
|
23978
|
+
async TemplateContents_TemplateIDArray(@Root() template_: Template_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
23089
23979
|
this.CheckUserReadPermissions('Template Contents', userPayload);
|
|
23090
23980
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwTemplateContents] WHERE [TemplateID]='${template_.ID}' ` + this.getRowLevelSecurityWhereClause('Template Contents', userPayload, EntityPermissionType.Read, 'AND');
|
|
23091
23981
|
const result = this.ArrayMapFieldNamesToCodeNames('Template Contents', await dataSource.query(sSQL));
|
|
@@ -23093,15 +23983,23 @@ export class TemplateResolver extends ResolverBase {
|
|
|
23093
23983
|
}
|
|
23094
23984
|
|
|
23095
23985
|
@FieldResolver(() => [TemplateParam_])
|
|
23096
|
-
async
|
|
23986
|
+
async TemplateParams_TemplateIDArray(@Root() template_: Template_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
23097
23987
|
this.CheckUserReadPermissions('Template Params', userPayload);
|
|
23098
23988
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwTemplateParams] WHERE [TemplateID]='${template_.ID}' ` + this.getRowLevelSecurityWhereClause('Template Params', userPayload, EntityPermissionType.Read, 'AND');
|
|
23099
23989
|
const result = this.ArrayMapFieldNamesToCodeNames('Template Params', await dataSource.query(sSQL));
|
|
23100
23990
|
return result;
|
|
23101
23991
|
}
|
|
23102
23992
|
|
|
23993
|
+
@FieldResolver(() => [AIPrompt_])
|
|
23994
|
+
async AIPrompts_TemplateIDArray(@Root() template_: Template_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
23995
|
+
this.CheckUserReadPermissions('AI Prompts', userPayload);
|
|
23996
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIPrompts] WHERE [TemplateID]='${template_.ID}' ` + this.getRowLevelSecurityWhereClause('AI Prompts', userPayload, EntityPermissionType.Read, 'AND');
|
|
23997
|
+
const result = this.ArrayMapFieldNamesToCodeNames('AI Prompts', await dataSource.query(sSQL));
|
|
23998
|
+
return result;
|
|
23999
|
+
}
|
|
24000
|
+
|
|
23103
24001
|
@FieldResolver(() => [EntityDocument_])
|
|
23104
|
-
async
|
|
24002
|
+
async EntityDocuments_TemplateIDArray(@Root() template_: Template_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
23105
24003
|
this.CheckUserReadPermissions('Entity Documents', userPayload);
|
|
23106
24004
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwEntityDocuments] WHERE [TemplateID]='${template_.ID}' ` + this.getRowLevelSecurityWhereClause('Entity Documents', userPayload, EntityPermissionType.Read, 'AND');
|
|
23107
24005
|
const result = this.ArrayMapFieldNamesToCodeNames('Entity Documents', await dataSource.query(sSQL));
|
|
@@ -23272,7 +24170,7 @@ export class TemplateCategoryResolver extends ResolverBase {
|
|
|
23272
24170
|
}
|
|
23273
24171
|
|
|
23274
24172
|
@FieldResolver(() => [Template_])
|
|
23275
|
-
async
|
|
24173
|
+
async Templates_CategoryIDArray(@Root() templatecategory_: TemplateCategory_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
23276
24174
|
this.CheckUserReadPermissions('Templates', userPayload);
|
|
23277
24175
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwTemplates] WHERE [CategoryID]='${templatecategory_.ID}' ` + this.getRowLevelSecurityWhereClause('Templates', userPayload, EntityPermissionType.Read, 'AND');
|
|
23278
24176
|
const result = this.ArrayMapFieldNamesToCodeNames('Templates', await dataSource.query(sSQL));
|
|
@@ -23280,7 +24178,7 @@ export class TemplateCategoryResolver extends ResolverBase {
|
|
|
23280
24178
|
}
|
|
23281
24179
|
|
|
23282
24180
|
@FieldResolver(() => [TemplateCategory_])
|
|
23283
|
-
async
|
|
24181
|
+
async TemplateCategories_ParentIDArray(@Root() templatecategory_: TemplateCategory_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
23284
24182
|
this.CheckUserReadPermissions('Template Categories', userPayload);
|
|
23285
24183
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwTemplateCategories] WHERE [ParentID]='${templatecategory_.ID}' ` + this.getRowLevelSecurityWhereClause('Template Categories', userPayload, EntityPermissionType.Read, 'AND');
|
|
23286
24184
|
const result = this.ArrayMapFieldNamesToCodeNames('Template Categories', await dataSource.query(sSQL));
|
|
@@ -23819,7 +24717,7 @@ export class TemplateContentTypeResolver extends ResolverBase {
|
|
|
23819
24717
|
}
|
|
23820
24718
|
|
|
23821
24719
|
@FieldResolver(() => [TemplateContent_])
|
|
23822
|
-
async
|
|
24720
|
+
async TemplateContents_TypeIDArray(@Root() templatecontenttype_: TemplateContentType_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
23823
24721
|
this.CheckUserReadPermissions('Template Contents', userPayload);
|
|
23824
24722
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwTemplateContents] WHERE [TypeID]='${templatecontenttype_.ID}' ` + this.getRowLevelSecurityWhereClause('Template Contents', userPayload, EntityPermissionType.Read, 'AND');
|
|
23825
24723
|
const result = this.ArrayMapFieldNamesToCodeNames('Template Contents', await dataSource.query(sSQL));
|
|
@@ -23973,7 +24871,7 @@ export class RecommendationResolver extends ResolverBase {
|
|
|
23973
24871
|
}
|
|
23974
24872
|
|
|
23975
24873
|
@FieldResolver(() => [RecommendationItem_])
|
|
23976
|
-
async
|
|
24874
|
+
async RecommendationItems_RecommendationIDArray(@Root() recommendation_: Recommendation_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
23977
24875
|
this.CheckUserReadPermissions('Recommendation Items', userPayload);
|
|
23978
24876
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwRecommendationItems] WHERE [RecommendationID]='${recommendation_.ID}' ` + this.getRowLevelSecurityWhereClause('Recommendation Items', userPayload, EntityPermissionType.Read, 'AND');
|
|
23979
24877
|
const result = this.ArrayMapFieldNamesToCodeNames('Recommendation Items', await dataSource.query(sSQL));
|
|
@@ -24113,7 +25011,7 @@ export class RecommendationProviderResolver extends ResolverBase {
|
|
|
24113
25011
|
}
|
|
24114
25012
|
|
|
24115
25013
|
@FieldResolver(() => [RecommendationRun_])
|
|
24116
|
-
async
|
|
25014
|
+
async RecommendationRuns_RecommendationProviderIDArray(@Root() recommendationprovider_: RecommendationProvider_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
24117
25015
|
this.CheckUserReadPermissions('Recommendation Runs', userPayload);
|
|
24118
25016
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwRecommendationRuns] WHERE [RecommendationProviderID]='${recommendationprovider_.ID}' ` + this.getRowLevelSecurityWhereClause('Recommendation Runs', userPayload, EntityPermissionType.Read, 'AND');
|
|
24119
25017
|
const result = this.ArrayMapFieldNamesToCodeNames('Recommendation Runs', await dataSource.query(sSQL));
|
|
@@ -24301,7 +25199,7 @@ export class RecommendationRunResolver extends ResolverBase {
|
|
|
24301
25199
|
}
|
|
24302
25200
|
|
|
24303
25201
|
@FieldResolver(() => [Recommendation_])
|
|
24304
|
-
async
|
|
25202
|
+
async Recommendations_RecommendationRunIDArray(@Root() recommendationrun_: RecommendationRun_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
24305
25203
|
this.CheckUserReadPermissions('Recommendations', userPayload);
|
|
24306
25204
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwRecommendations] WHERE [RecommendationRunID]='${recommendationrun_.ID}' ` + this.getRowLevelSecurityWhereClause('Recommendations', userPayload, EntityPermissionType.Read, 'AND');
|
|
24307
25205
|
const result = this.ArrayMapFieldNamesToCodeNames('Recommendations', await dataSource.query(sSQL));
|
|
@@ -24612,7 +25510,7 @@ export class EntityCommunicationMessageTypeResolver extends ResolverBase {
|
|
|
24612
25510
|
}
|
|
24613
25511
|
|
|
24614
25512
|
@FieldResolver(() => [EntityCommunicationField_])
|
|
24615
|
-
async
|
|
25513
|
+
async EntityCommunicationFields_EntityCommunicationMessageTypeIDArray(@Root() entitycommunicationmessagetype_: EntityCommunicationMessageType_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
24616
25514
|
this.CheckUserReadPermissions('Entity Communication Fields', userPayload);
|
|
24617
25515
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwEntityCommunicationFields] WHERE [EntityCommunicationMessageTypeID]='${entitycommunicationmessagetype_.ID}' ` + this.getRowLevelSecurityWhereClause('Entity Communication Fields', userPayload, EntityPermissionType.Read, 'AND');
|
|
24618
25516
|
const result = this.ArrayMapFieldNamesToCodeNames('Entity Communication Fields', await dataSource.query(sSQL));
|
|
@@ -24916,7 +25814,7 @@ export class RecordChangeReplayRunResolver extends ResolverBase {
|
|
|
24916
25814
|
}
|
|
24917
25815
|
|
|
24918
25816
|
@FieldResolver(() => [RecordChange_])
|
|
24919
|
-
async
|
|
25817
|
+
async RecordChanges_ReplayRunIDArray(@Root() recordchangereplayrun_: RecordChangeReplayRun_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
24920
25818
|
this.CheckUserReadPermissions('Record Changes', userPayload);
|
|
24921
25819
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwRecordChanges] WHERE [ReplayRunID]='${recordchangereplayrun_.ID}' ` + this.getRowLevelSecurityWhereClause('Record Changes', userPayload, EntityPermissionType.Read, 'AND');
|
|
24922
25820
|
const result = this.ArrayMapFieldNamesToCodeNames('Record Changes', await dataSource.query(sSQL));
|
|
@@ -25210,7 +26108,7 @@ export class EntityRelationshipDisplayComponentResolver extends ResolverBase {
|
|
|
25210
26108
|
}
|
|
25211
26109
|
|
|
25212
26110
|
@FieldResolver(() => [EntityRelationship_])
|
|
25213
|
-
async
|
|
26111
|
+
async EntityRelationships_DisplayComponentIDArray(@Root() entityrelationshipdisplaycomponent_: EntityRelationshipDisplayComponent_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
25214
26112
|
this.CheckUserReadPermissions('Entity Relationships', userPayload);
|
|
25215
26113
|
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwEntityRelationships] WHERE [DisplayComponentID]='${entityrelationshipdisplaycomponent_.ID}' ` + this.getRowLevelSecurityWhereClause('Entity Relationships', userPayload, EntityPermissionType.Read, 'AND');
|
|
25216
26114
|
const result = this.ArrayMapFieldNamesToCodeNames('Entity Relationships', await dataSource.query(sSQL));
|