@memberjunction/server 2.132.0 → 3.0.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/apolloServer/TransactionPlugin.d.ts +4 -0
- package/dist/apolloServer/TransactionPlugin.d.ts.map +1 -0
- package/dist/apolloServer/TransactionPlugin.js +46 -0
- package/dist/apolloServer/TransactionPlugin.js.map +1 -0
- package/dist/config.d.ts +1 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +125 -4
- package/dist/config.js.map +1 -1
- package/dist/generated/generated.d.ts +134 -0
- package/dist/generated/generated.d.ts.map +1 -1
- package/dist/generated/generated.js +852 -0
- package/dist/generated/generated.js.map +1 -1
- package/dist/index.d.ts +4 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +44 -43
- package/src/config.ts +167 -4
- package/src/generated/generated.ts +547 -1
- package/src/index.ts +4 -4
|
@@ -19,7 +19,7 @@ import { mj_core_schema } from '../config.js';
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
import { ActionAuthorizationEntity, ActionCategoryEntity, ActionContextTypeEntity, ActionContextEntity, ActionExecutionLogEntity, ActionFilterEntity, ActionLibraryEntity, ActionParamEntity, ActionResultCodeEntity, ActionEntity, AIActionEntity, AIAgentActionEntity, AIAgentLearningCycleEntity, AIAgentModelEntity, AIAgentNoteTypeEntity, AIAgentNoteEntity, AIAgentRequestEntity, AIAgentEntity, AIModelActionEntity, AIModelTypeEntity, AIModelEntity, AIPromptCategoryEntity, AIPromptTypeEntity, AIPromptEntity, AIResultCacheEntity, ApplicationEntityEntity, ApplicationSettingEntity, ApplicationEntity, AuditLogTypeEntity, AuditLogEntity, AuthorizationRoleEntity, AuthorizationEntity, CommunicationBaseMessageTypeEntity, CommunicationLogEntity, CommunicationProviderMessageTypeEntity, CommunicationProviderEntity, CommunicationRunEntity, CompanyEntity, CompanyIntegrationRecordMapEntity, CompanyIntegrationRunAPILogEntity, CompanyIntegrationRunDetailEntity, CompanyIntegrationRunEntity, CompanyIntegrationEntity, ContentFileTypeEntity, ContentItemAttributeEntity, ContentItemTagEntity, ContentItemEntity, ContentProcessRunEntity, ContentSourceParamEntity, ContentSourceTypeParamEntity, ContentSourceTypeEntity, ContentSourceEntity, ContentTypeAttributeEntity, ContentTypeEntity, ConversationDetailEntity, ConversationEntity, DashboardCategoryEntity, DashboardEntity, DataContextItemEntity, DataContextEntity, DatasetItemEntity, DatasetEntity, DuplicateRunDetailMatchEntity, DuplicateRunDetailEntity, DuplicateRunEntity, EmployeeCompanyIntegrationEntity, EmployeeRoleEntity, EmployeeSkillEntity, EmployeeEntity, EntityEntity, EntityActionFilterEntity, EntityActionInvocationTypeEntity, EntityActionInvocationEntity, EntityActionParamEntity, EntityActionEntity, EntityAIActionEntity, EntityCommunicationFieldEntity, EntityCommunicationMessageTypeEntity, EntityDocumentRunEntity, EntityDocumentSettingEntity, EntityDocumentTypeEntity, EntityDocumentEntity, EntityFieldValueEntity, EntityFieldEntity, EntityPermissionEntity, EntityRecordDocumentEntity, EntityRelationshipDisplayComponentEntity, EntityRelationshipEntity, EntitySettingEntity, ErrorLogEntity, ExplorerNavigationItemEntity, FileCategoryEntity, FileEntityRecordLinkEntity, FileStorageProviderEntity, FileEntity, GeneratedCodeCategoryEntity, GeneratedCodeEntity, IntegrationURLFormatEntity, IntegrationEntity, LibraryEntity, LibraryItemEntity, ListCategoryEntity, ListDetailEntity, ListEntity, AccessControlRuleEntity, AIAgentArtifactTypeEntity, AIAgentConfigurationEntity, AIAgentDataSourceEntity, AIAgentExampleEntity, AIAgentModalityEntity, AIAgentPermissionEntity, AIAgentPromptEntity, AIAgentRelationshipEntity, AIAgentRunStepEntity, AIAgentRunEntity, AIAgentStepPathEntity, AIAgentStepEntity, AIAgentTypeEntity, AIArchitectureEntity, AIConfigurationParamEntity, AIConfigurationEntity, AICredentialBindingEntity, AIModalityEntity, AIModelArchitectureEntity, AIModelCostEntity, AIModelModalityEntity, AIModelPriceTypeEntity, AIModelPriceUnitTypeEntity, AIModelVendorEntity, AIPromptModelEntity, AIPromptRunEntity, AIVendorTypeDefinitionEntity, AIVendorTypeEntity, AIVendorEntity, ArtifactPermissionEntity, ArtifactTypeEntity, ArtifactUseEntity, ArtifactVersionAttributeEntity, ArtifactVersionEntity, ArtifactEntity, CollectionArtifactEntity, CollectionPermissionEntity, CollectionEntity, ComponentDependencyEntity, ComponentLibraryEntity, ComponentLibraryLinkEntity, ComponentRegistryEntity, ComponentEntity, ConversationArtifactPermissionEntity, ConversationArtifactVersionEntity, ConversationArtifactEntity, ConversationDetailArtifactEntity, ConversationDetailAttachmentEntity, ConversationDetailRatingEntity, CredentialCategoryEntity, CredentialTypeEntity, CredentialEntity, DashboardUserPreferenceEntity, DashboardUserStateEntity, EncryptionAlgorithmEntity, EncryptionKeySourceEntity, EncryptionKeyEntity, EnvironmentEntity, ProjectEntity, PublicLinkEntity, QueryParameterEntity, RecordLinkEntity, ReportUserStateEntity, ReportVersionEntity, ScheduledJobRunEntity, ScheduledJobTypeEntity, ScheduledJobEntity, TaskDependencyEntity, TaskTypeEntity, TaskEntity, TestRubricEntity, TestRunFeedbackEntity, TestRunEntity, TestSuiteRunEntity, TestSuiteTestEntity, TestSuiteEntity, TestTypeEntity, TestEntity, UserSettingEntity, OutputDeliveryTypeEntity, OutputFormatTypeEntity, OutputTriggerTypeEntity, QueryEntity, QueryCategoryEntity, QueryEntityEntity, QueryFieldEntity, QueryPermissionEntity, QueueTaskEntity, QueueTypeEntity, QueueEntity, RecommendationItemEntity, RecommendationProviderEntity, RecommendationRunEntity, RecommendationEntity, RecordChangeReplayRunEntity, RecordChangeEntity, RecordMergeDeletionLogEntity, RecordMergeLogEntity, ReportCategoryEntity, ReportSnapshotEntity, ReportEntity, ResourceLinkEntity, ResourcePermissionEntity, ResourceTypeEntity, RoleEntity, RowLevelSecurityFilterEntity, ScheduledActionParamEntity, ScheduledActionEntity, SchemaInfoEntity, SkillEntity, TaggedItemEntity, TagEntity, TemplateCategoryEntity, TemplateContentTypeEntity, TemplateContentEntity, TemplateParamEntity, TemplateEntity, UserApplicationEntityEntity, UserApplicationEntity, UserFavoriteEntity, UserNotificationEntity, UserRecordLogEntity, UserRoleEntity, UserViewCategoryEntity, UserViewRunDetailEntity, UserViewRunEntity, UserViewEntity, UserEntity, VectorDatabaseEntity, VectorIndexEntity, VersionInstallationEntity, WorkflowEngineEntity, WorkflowRunEntity, WorkflowEntity, WorkspaceItemEntity, WorkspaceEntity } from '@memberjunction/core-entities';
|
|
22
|
+
import { ActionAuthorizationEntity, ActionCategoryEntity, ActionContextTypeEntity, ActionContextEntity, ActionExecutionLogEntity, ActionFilterEntity, ActionLibraryEntity, ActionParamEntity, ActionResultCodeEntity, ActionEntity, AIActionEntity, AIAgentActionEntity, AIAgentLearningCycleEntity, AIAgentModelEntity, AIAgentNoteTypeEntity, AIAgentNoteEntity, AIAgentRequestEntity, AIAgentEntity, AIModelActionEntity, AIModelTypeEntity, AIModelEntity, AIPromptCategoryEntity, AIPromptTypeEntity, AIPromptEntity, AIResultCacheEntity, ApplicationEntityEntity, ApplicationSettingEntity, ApplicationEntity, AuditLogTypeEntity, AuditLogEntity, AuthorizationRoleEntity, AuthorizationEntity, CommunicationBaseMessageTypeEntity, CommunicationLogEntity, CommunicationProviderMessageTypeEntity, CommunicationProviderEntity, CommunicationRunEntity, CompanyEntity, CompanyIntegrationRecordMapEntity, CompanyIntegrationRunAPILogEntity, CompanyIntegrationRunDetailEntity, CompanyIntegrationRunEntity, CompanyIntegrationEntity, ContentFileTypeEntity, ContentItemAttributeEntity, ContentItemTagEntity, ContentItemEntity, ContentProcessRunEntity, ContentSourceParamEntity, ContentSourceTypeParamEntity, ContentSourceTypeEntity, ContentSourceEntity, ContentTypeAttributeEntity, ContentTypeEntity, ConversationDetailEntity, ConversationEntity, DashboardCategoryEntity, DashboardEntity, DataContextItemEntity, DataContextEntity, DatasetItemEntity, DatasetEntity, DuplicateRunDetailMatchEntity, DuplicateRunDetailEntity, DuplicateRunEntity, EmployeeCompanyIntegrationEntity, EmployeeRoleEntity, EmployeeSkillEntity, EmployeeEntity, EntityEntity, EntityActionFilterEntity, EntityActionInvocationTypeEntity, EntityActionInvocationEntity, EntityActionParamEntity, EntityActionEntity, EntityAIActionEntity, EntityCommunicationFieldEntity, EntityCommunicationMessageTypeEntity, EntityDocumentRunEntity, EntityDocumentSettingEntity, EntityDocumentTypeEntity, EntityDocumentEntity, EntityFieldValueEntity, EntityFieldEntity, EntityPermissionEntity, EntityRecordDocumentEntity, EntityRelationshipDisplayComponentEntity, EntityRelationshipEntity, EntitySettingEntity, ErrorLogEntity, ExplorerNavigationItemEntity, FileCategoryEntity, FileEntityRecordLinkEntity, FileStorageProviderEntity, FileEntity, GeneratedCodeCategoryEntity, GeneratedCodeEntity, IntegrationURLFormatEntity, IntegrationEntity, LibraryEntity, LibraryItemEntity, ListCategoryEntity, ListDetailEntity, ListEntity, AccessControlRuleEntity, AIAgentArtifactTypeEntity, AIAgentConfigurationEntity, AIAgentDataSourceEntity, AIAgentExampleEntity, AIAgentModalityEntity, AIAgentPermissionEntity, AIAgentPromptEntity, AIAgentRelationshipEntity, AIAgentRunStepEntity, AIAgentRunEntity, AIAgentStepPathEntity, AIAgentStepEntity, AIAgentTypeEntity, AIArchitectureEntity, AIConfigurationParamEntity, AIConfigurationEntity, AICredentialBindingEntity, AIModalityEntity, AIModelArchitectureEntity, AIModelCostEntity, AIModelModalityEntity, AIModelPriceTypeEntity, AIModelPriceUnitTypeEntity, AIModelVendorEntity, AIPromptModelEntity, AIPromptRunEntity, AIVendorTypeDefinitionEntity, AIVendorTypeEntity, AIVendorEntity, ArtifactPermissionEntity, ArtifactTypeEntity, ArtifactUseEntity, ArtifactVersionAttributeEntity, ArtifactVersionEntity, ArtifactEntity, CollectionArtifactEntity, CollectionPermissionEntity, CollectionEntity, ComponentDependencyEntity, ComponentLibraryEntity, ComponentLibraryLinkEntity, ComponentRegistryEntity, ComponentEntity, ConversationArtifactPermissionEntity, ConversationArtifactVersionEntity, ConversationArtifactEntity, ConversationDetailArtifactEntity, ConversationDetailAttachmentEntity, ConversationDetailRatingEntity, CredentialCategoryEntity, CredentialTypeEntity, CredentialEntity, DashboardUserPreferenceEntity, DashboardUserStateEntity, EncryptionAlgorithmEntity, EncryptionKeySourceEntity, EncryptionKeyEntity, EnvironmentEntity, ListInvitationEntity, ListShareEntity, ProjectEntity, PublicLinkEntity, QueryParameterEntity, RecordLinkEntity, ReportUserStateEntity, ReportVersionEntity, ScheduledJobRunEntity, ScheduledJobTypeEntity, ScheduledJobEntity, TaskDependencyEntity, TaskTypeEntity, TaskEntity, TestRubricEntity, TestRunFeedbackEntity, TestRunEntity, TestSuiteRunEntity, TestSuiteTestEntity, TestSuiteEntity, TestTypeEntity, TestEntity, UserSettingEntity, OutputDeliveryTypeEntity, OutputFormatTypeEntity, OutputTriggerTypeEntity, QueryEntity, QueryCategoryEntity, QueryEntityEntity, QueryFieldEntity, QueryPermissionEntity, QueueTaskEntity, QueueTypeEntity, QueueEntity, RecommendationItemEntity, RecommendationProviderEntity, RecommendationRunEntity, RecommendationEntity, RecordChangeReplayRunEntity, RecordChangeEntity, RecordMergeDeletionLogEntity, RecordMergeLogEntity, ReportCategoryEntity, ReportSnapshotEntity, ReportEntity, ResourceLinkEntity, ResourcePermissionEntity, ResourceTypeEntity, RoleEntity, RowLevelSecurityFilterEntity, ScheduledActionParamEntity, ScheduledActionEntity, SchemaInfoEntity, SkillEntity, TaggedItemEntity, TagEntity, TemplateCategoryEntity, TemplateContentTypeEntity, TemplateContentEntity, TemplateParamEntity, TemplateEntity, UserApplicationEntityEntity, UserApplicationEntity, UserFavoriteEntity, UserNotificationEntity, UserRecordLogEntity, UserRoleEntity, UserViewCategoryEntity, UserViewRunDetailEntity, UserViewRunEntity, UserViewEntity, UserEntity, VectorDatabaseEntity, VectorIndexEntity, VersionInstallationEntity, WorkflowEngineEntity, WorkflowRunEntity, WorkflowEntity, WorkspaceItemEntity, WorkspaceEntity } from '@memberjunction/core-entities';
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
//****************************************************************************
|
|
@@ -3246,6 +3246,13 @@ export class MJAIAgentNote_ {
|
|
|
3246
3246
|
@MaxLength(510)
|
|
3247
3247
|
SourceConversation?: string;
|
|
3248
3248
|
|
|
3249
|
+
@Field({nullable: true})
|
|
3250
|
+
SourceConversationDetail?: string;
|
|
3251
|
+
|
|
3252
|
+
@Field({nullable: true})
|
|
3253
|
+
@MaxLength(510)
|
|
3254
|
+
SourceAIAgentRun?: string;
|
|
3255
|
+
|
|
3249
3256
|
@Field({nullable: true})
|
|
3250
3257
|
@MaxLength(100)
|
|
3251
3258
|
Company?: string;
|
|
@@ -6788,6 +6795,10 @@ export class MJAIResultCache_ {
|
|
|
6788
6795
|
@MaxLength(200)
|
|
6789
6796
|
Configuration?: string;
|
|
6790
6797
|
|
|
6798
|
+
@Field({nullable: true})
|
|
6799
|
+
@MaxLength(510)
|
|
6800
|
+
PromptRun?: string;
|
|
6801
|
+
|
|
6791
6802
|
}
|
|
6792
6803
|
|
|
6793
6804
|
//****************************************************************************
|
|
@@ -13726,6 +13737,10 @@ export class MJConversation_ {
|
|
|
13726
13737
|
@MaxLength(510)
|
|
13727
13738
|
Project?: string;
|
|
13728
13739
|
|
|
13740
|
+
@Field({nullable: true})
|
|
13741
|
+
@MaxLength(510)
|
|
13742
|
+
TestRun?: string;
|
|
13743
|
+
|
|
13729
13744
|
@Field(() => [MJConversationDetail_])
|
|
13730
13745
|
ConversationDetails_ConversationIDArray: MJConversationDetail_[]; // Link to ConversationDetails
|
|
13731
13746
|
|
|
@@ -15615,6 +15630,10 @@ export class MJDuplicateRunDetail_ {
|
|
|
15615
15630
|
@MaxLength(10)
|
|
15616
15631
|
_mj__UpdatedAt: Date;
|
|
15617
15632
|
|
|
15633
|
+
@Field()
|
|
15634
|
+
@MaxLength(510)
|
|
15635
|
+
DuplicateRun: string;
|
|
15636
|
+
|
|
15618
15637
|
@Field(() => [MJDuplicateRunDetailMatch_])
|
|
15619
15638
|
DuplicateRunDetailMatches_DuplicateRunDetailIDArray: MJDuplicateRunDetailMatch_[]; // Link to DuplicateRunDetailMatches
|
|
15620
15639
|
|
|
@@ -16070,6 +16089,10 @@ export class MJEmployeeCompanyIntegration_ {
|
|
|
16070
16089
|
@MaxLength(10)
|
|
16071
16090
|
_mj__UpdatedAt: Date;
|
|
16072
16091
|
|
|
16092
|
+
@Field({nullable: true})
|
|
16093
|
+
@MaxLength(162)
|
|
16094
|
+
Employee?: string;
|
|
16095
|
+
|
|
16073
16096
|
@Field()
|
|
16074
16097
|
@MaxLength(510)
|
|
16075
16098
|
CompanyIntegration: string;
|
|
@@ -16234,6 +16257,10 @@ export class MJEmployeeRole_ {
|
|
|
16234
16257
|
@MaxLength(10)
|
|
16235
16258
|
_mj__UpdatedAt: Date;
|
|
16236
16259
|
|
|
16260
|
+
@Field({nullable: true})
|
|
16261
|
+
@MaxLength(162)
|
|
16262
|
+
Employee?: string;
|
|
16263
|
+
|
|
16237
16264
|
@Field()
|
|
16238
16265
|
@MaxLength(100)
|
|
16239
16266
|
Role: string;
|
|
@@ -16386,6 +16413,10 @@ export class MJEmployeeSkill_ {
|
|
|
16386
16413
|
@MaxLength(10)
|
|
16387
16414
|
_mj__UpdatedAt: Date;
|
|
16388
16415
|
|
|
16416
|
+
@Field({nullable: true})
|
|
16417
|
+
@MaxLength(162)
|
|
16418
|
+
Employee?: string;
|
|
16419
|
+
|
|
16389
16420
|
@Field()
|
|
16390
16421
|
@MaxLength(100)
|
|
16391
16422
|
Skill: string;
|
|
@@ -18090,6 +18121,13 @@ export class MJEntityActionFilter_ {
|
|
|
18090
18121
|
@MaxLength(10)
|
|
18091
18122
|
_mj__UpdatedAt: Date;
|
|
18092
18123
|
|
|
18124
|
+
@Field()
|
|
18125
|
+
@MaxLength(850)
|
|
18126
|
+
EntityAction: string;
|
|
18127
|
+
|
|
18128
|
+
@Field()
|
|
18129
|
+
ActionFilter: string;
|
|
18130
|
+
|
|
18093
18131
|
}
|
|
18094
18132
|
|
|
18095
18133
|
//****************************************************************************
|
|
@@ -18424,6 +18462,10 @@ export class MJEntityActionInvocation_ {
|
|
|
18424
18462
|
@MaxLength(10)
|
|
18425
18463
|
_mj__UpdatedAt: Date;
|
|
18426
18464
|
|
|
18465
|
+
@Field()
|
|
18466
|
+
@MaxLength(850)
|
|
18467
|
+
EntityAction: string;
|
|
18468
|
+
|
|
18427
18469
|
@Field()
|
|
18428
18470
|
@MaxLength(510)
|
|
18429
18471
|
InvocationType: string;
|
|
@@ -18592,6 +18634,10 @@ export class MJEntityActionParam_ {
|
|
|
18592
18634
|
@MaxLength(10)
|
|
18593
18635
|
_mj__UpdatedAt: Date;
|
|
18594
18636
|
|
|
18637
|
+
@Field()
|
|
18638
|
+
@MaxLength(850)
|
|
18639
|
+
EntityAction: string;
|
|
18640
|
+
|
|
18595
18641
|
@Field()
|
|
18596
18642
|
@MaxLength(510)
|
|
18597
18643
|
ActionParam: string;
|
|
@@ -19244,6 +19290,10 @@ export class MJEntityCommunicationField_ {
|
|
|
19244
19290
|
@MaxLength(10)
|
|
19245
19291
|
_mj__UpdatedAt: Date;
|
|
19246
19292
|
|
|
19293
|
+
@Field()
|
|
19294
|
+
@MaxLength(200)
|
|
19295
|
+
EntityCommunicationMessageType: string;
|
|
19296
|
+
|
|
19247
19297
|
}
|
|
19248
19298
|
|
|
19249
19299
|
//****************************************************************************
|
|
@@ -22387,6 +22437,14 @@ export class MJErrorLog_ {
|
|
|
22387
22437
|
@MaxLength(10)
|
|
22388
22438
|
_mj__UpdatedAt: Date;
|
|
22389
22439
|
|
|
22440
|
+
@Field({nullable: true})
|
|
22441
|
+
@MaxLength(200)
|
|
22442
|
+
CompanyIntegrationRun?: string;
|
|
22443
|
+
|
|
22444
|
+
@Field({nullable: true})
|
|
22445
|
+
@MaxLength(900)
|
|
22446
|
+
CompanyIntegrationRunDetail?: string;
|
|
22447
|
+
|
|
22390
22448
|
}
|
|
22391
22449
|
|
|
22392
22450
|
//****************************************************************************
|
|
@@ -25282,6 +25340,12 @@ export class MJList_ {
|
|
|
25282
25340
|
@Field(() => [MJDuplicateRun_])
|
|
25283
25341
|
DuplicateRuns_SourceListIDArray: MJDuplicateRun_[]; // Link to DuplicateRuns
|
|
25284
25342
|
|
|
25343
|
+
@Field(() => [MJListShare_])
|
|
25344
|
+
MJ_ListShares_ListIDArray: MJListShare_[]; // Link to MJ_ListShares
|
|
25345
|
+
|
|
25346
|
+
@Field(() => [MJListInvitation_])
|
|
25347
|
+
MJ_ListInvitations_ListIDArray: MJListInvitation_[]; // Link to MJ_ListInvitations
|
|
25348
|
+
|
|
25285
25349
|
}
|
|
25286
25350
|
|
|
25287
25351
|
//****************************************************************************
|
|
@@ -25428,6 +25492,28 @@ export class MJListResolver extends ResolverBase {
|
|
|
25428
25492
|
return result;
|
|
25429
25493
|
}
|
|
25430
25494
|
|
|
25495
|
+
@FieldResolver(() => [MJListShare_])
|
|
25496
|
+
async MJ_ListShares_ListIDArray(@Root() mjlist_: MJList_, @Ctx() { dataSources, userPayload, providers }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
25497
|
+
this.CheckUserReadPermissions('MJ: List Shares', userPayload);
|
|
25498
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
25499
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
25500
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwListShares] WHERE [ListID]='${mjlist_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: List Shares', userPayload, EntityPermissionType.Read, 'AND');
|
|
25501
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
25502
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: List Shares', rows, this.GetUserFromPayload(userPayload));
|
|
25503
|
+
return result;
|
|
25504
|
+
}
|
|
25505
|
+
|
|
25506
|
+
@FieldResolver(() => [MJListInvitation_])
|
|
25507
|
+
async MJ_ListInvitations_ListIDArray(@Root() mjlist_: MJList_, @Ctx() { dataSources, userPayload, providers }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
25508
|
+
this.CheckUserReadPermissions('MJ: List Invitations', userPayload);
|
|
25509
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
25510
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
25511
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwListInvitations] WHERE [ListID]='${mjlist_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: List Invitations', userPayload, EntityPermissionType.Read, 'AND');
|
|
25512
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
25513
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: List Invitations', rows, this.GetUserFromPayload(userPayload));
|
|
25514
|
+
return result;
|
|
25515
|
+
}
|
|
25516
|
+
|
|
25431
25517
|
@Mutation(() => MJList_)
|
|
25432
25518
|
async CreateMJList(
|
|
25433
25519
|
@Arg('input', () => CreateMJListInput) input: CreateMJListInput,
|
|
@@ -26478,6 +26564,13 @@ export class MJAIAgentExample_ {
|
|
|
26478
26564
|
@MaxLength(510)
|
|
26479
26565
|
SourceConversation?: string;
|
|
26480
26566
|
|
|
26567
|
+
@Field({nullable: true})
|
|
26568
|
+
SourceConversationDetail?: string;
|
|
26569
|
+
|
|
26570
|
+
@Field({nullable: true})
|
|
26571
|
+
@MaxLength(510)
|
|
26572
|
+
SourceAIAgentRun?: string;
|
|
26573
|
+
|
|
26481
26574
|
@Field({nullable: true})
|
|
26482
26575
|
@MaxLength(100)
|
|
26483
26576
|
EmbeddingModel?: string;
|
|
@@ -27607,6 +27700,14 @@ detailed information about what validation rules failed.`})
|
|
|
27607
27700
|
@Field({nullable: true, description: `Human-readable notes and comments about this agent run step`})
|
|
27608
27701
|
Comments?: string;
|
|
27609
27702
|
|
|
27703
|
+
@Field({nullable: true})
|
|
27704
|
+
@MaxLength(510)
|
|
27705
|
+
AgentRun?: string;
|
|
27706
|
+
|
|
27707
|
+
@Field({nullable: true})
|
|
27708
|
+
@MaxLength(510)
|
|
27709
|
+
Parent?: string;
|
|
27710
|
+
|
|
27610
27711
|
@Field({nullable: true})
|
|
27611
27712
|
@MaxLength(16)
|
|
27612
27713
|
RootParentID?: string;
|
|
@@ -28038,6 +28139,10 @@ each time the agent processes a prompt step.`})
|
|
|
28038
28139
|
@MaxLength(400)
|
|
28039
28140
|
ScheduledJobRun?: string;
|
|
28040
28141
|
|
|
28142
|
+
@Field({nullable: true})
|
|
28143
|
+
@MaxLength(510)
|
|
28144
|
+
TestRun?: string;
|
|
28145
|
+
|
|
28041
28146
|
@Field({nullable: true})
|
|
28042
28147
|
@MaxLength(16)
|
|
28043
28148
|
RootParentRunID?: string;
|
|
@@ -37476,6 +37581,9 @@ export class MJConversationDetailArtifact_ {
|
|
|
37476
37581
|
@MaxLength(10)
|
|
37477
37582
|
_mj__UpdatedAt: Date;
|
|
37478
37583
|
|
|
37584
|
+
@Field()
|
|
37585
|
+
ConversationDetail: string;
|
|
37586
|
+
|
|
37479
37587
|
@Field({nullable: true})
|
|
37480
37588
|
@MaxLength(510)
|
|
37481
37589
|
ArtifactVersion?: string;
|
|
@@ -37892,6 +38000,9 @@ export class MJConversationDetailRating_ {
|
|
|
37892
38000
|
@MaxLength(10)
|
|
37893
38001
|
_mj__UpdatedAt: Date;
|
|
37894
38002
|
|
|
38003
|
+
@Field()
|
|
38004
|
+
ConversationDetail: string;
|
|
38005
|
+
|
|
37895
38006
|
@Field()
|
|
37896
38007
|
@MaxLength(200)
|
|
37897
38008
|
User: string;
|
|
@@ -39995,6 +40106,388 @@ export class MJEnvironmentResolver extends ResolverBase {
|
|
|
39995
40106
|
|
|
39996
40107
|
}
|
|
39997
40108
|
|
|
40109
|
+
//****************************************************************************
|
|
40110
|
+
// ENTITY CLASS for MJ: List Invitations
|
|
40111
|
+
//****************************************************************************
|
|
40112
|
+
@ObjectType({ description: `Tracks pending invitations for users to access lists, including external users via email.` })
|
|
40113
|
+
export class MJListInvitation_ {
|
|
40114
|
+
@Field({description: `Unique identifier for the invitation.`})
|
|
40115
|
+
@MaxLength(16)
|
|
40116
|
+
ID: string;
|
|
40117
|
+
|
|
40118
|
+
@Field({description: `The list the user is being invited to.`})
|
|
40119
|
+
@MaxLength(16)
|
|
40120
|
+
ListID: string;
|
|
40121
|
+
|
|
40122
|
+
@Field({description: `Email address of the invitee.`})
|
|
40123
|
+
@MaxLength(510)
|
|
40124
|
+
Email: string;
|
|
40125
|
+
|
|
40126
|
+
@Field({description: `The role to be assigned upon acceptance (Editor or Viewer).`})
|
|
40127
|
+
@MaxLength(100)
|
|
40128
|
+
Role: string;
|
|
40129
|
+
|
|
40130
|
+
@Field({description: `Security token for validating the invitation.`})
|
|
40131
|
+
@MaxLength(200)
|
|
40132
|
+
Token: string;
|
|
40133
|
+
|
|
40134
|
+
@Field({description: `When the invitation expires.`})
|
|
40135
|
+
@MaxLength(8)
|
|
40136
|
+
ExpiresAt: Date;
|
|
40137
|
+
|
|
40138
|
+
@Field({description: `The user who created the invitation.`})
|
|
40139
|
+
@MaxLength(16)
|
|
40140
|
+
CreatedByUserID: string;
|
|
40141
|
+
|
|
40142
|
+
@Field({description: `Status of the invitation (Pending, Accepted, Expired, Revoked).`})
|
|
40143
|
+
@MaxLength(40)
|
|
40144
|
+
Status: string;
|
|
40145
|
+
|
|
40146
|
+
@Field()
|
|
40147
|
+
@MaxLength(10)
|
|
40148
|
+
_mj__CreatedAt: Date;
|
|
40149
|
+
|
|
40150
|
+
@Field()
|
|
40151
|
+
@MaxLength(10)
|
|
40152
|
+
_mj__UpdatedAt: Date;
|
|
40153
|
+
|
|
40154
|
+
@Field()
|
|
40155
|
+
@MaxLength(200)
|
|
40156
|
+
List: string;
|
|
40157
|
+
|
|
40158
|
+
@Field()
|
|
40159
|
+
@MaxLength(200)
|
|
40160
|
+
CreatedByUser: string;
|
|
40161
|
+
|
|
40162
|
+
}
|
|
40163
|
+
|
|
40164
|
+
//****************************************************************************
|
|
40165
|
+
// INPUT TYPE for MJ: List Invitations
|
|
40166
|
+
//****************************************************************************
|
|
40167
|
+
@InputType()
|
|
40168
|
+
export class CreateMJListInvitationInput {
|
|
40169
|
+
@Field({ nullable: true })
|
|
40170
|
+
ID?: string;
|
|
40171
|
+
|
|
40172
|
+
@Field({ nullable: true })
|
|
40173
|
+
ListID?: string;
|
|
40174
|
+
|
|
40175
|
+
@Field({ nullable: true })
|
|
40176
|
+
Email?: string;
|
|
40177
|
+
|
|
40178
|
+
@Field({ nullable: true })
|
|
40179
|
+
Role?: string;
|
|
40180
|
+
|
|
40181
|
+
@Field({ nullable: true })
|
|
40182
|
+
Token?: string;
|
|
40183
|
+
|
|
40184
|
+
@Field({ nullable: true })
|
|
40185
|
+
ExpiresAt?: Date;
|
|
40186
|
+
|
|
40187
|
+
@Field({ nullable: true })
|
|
40188
|
+
CreatedByUserID?: string;
|
|
40189
|
+
|
|
40190
|
+
@Field({ nullable: true })
|
|
40191
|
+
Status?: string;
|
|
40192
|
+
}
|
|
40193
|
+
|
|
40194
|
+
|
|
40195
|
+
//****************************************************************************
|
|
40196
|
+
// INPUT TYPE for MJ: List Invitations
|
|
40197
|
+
//****************************************************************************
|
|
40198
|
+
@InputType()
|
|
40199
|
+
export class UpdateMJListInvitationInput {
|
|
40200
|
+
@Field()
|
|
40201
|
+
ID: string;
|
|
40202
|
+
|
|
40203
|
+
@Field({ nullable: true })
|
|
40204
|
+
ListID?: string;
|
|
40205
|
+
|
|
40206
|
+
@Field({ nullable: true })
|
|
40207
|
+
Email?: string;
|
|
40208
|
+
|
|
40209
|
+
@Field({ nullable: true })
|
|
40210
|
+
Role?: string;
|
|
40211
|
+
|
|
40212
|
+
@Field({ nullable: true })
|
|
40213
|
+
Token?: string;
|
|
40214
|
+
|
|
40215
|
+
@Field({ nullable: true })
|
|
40216
|
+
ExpiresAt?: Date;
|
|
40217
|
+
|
|
40218
|
+
@Field({ nullable: true })
|
|
40219
|
+
CreatedByUserID?: string;
|
|
40220
|
+
|
|
40221
|
+
@Field({ nullable: true })
|
|
40222
|
+
Status?: string;
|
|
40223
|
+
|
|
40224
|
+
@Field(() => [KeyValuePairInput], { nullable: true })
|
|
40225
|
+
OldValues___?: KeyValuePairInput[];
|
|
40226
|
+
}
|
|
40227
|
+
|
|
40228
|
+
//****************************************************************************
|
|
40229
|
+
// RESOLVER for MJ: List Invitations
|
|
40230
|
+
//****************************************************************************
|
|
40231
|
+
@ObjectType()
|
|
40232
|
+
export class RunMJListInvitationViewResult {
|
|
40233
|
+
@Field(() => [MJListInvitation_])
|
|
40234
|
+
Results: MJListInvitation_[];
|
|
40235
|
+
|
|
40236
|
+
@Field(() => String, {nullable: true})
|
|
40237
|
+
UserViewRunID?: string;
|
|
40238
|
+
|
|
40239
|
+
@Field(() => Int, {nullable: true})
|
|
40240
|
+
RowCount: number;
|
|
40241
|
+
|
|
40242
|
+
@Field(() => Int, {nullable: true})
|
|
40243
|
+
TotalRowCount: number;
|
|
40244
|
+
|
|
40245
|
+
@Field(() => Int, {nullable: true})
|
|
40246
|
+
ExecutionTime: number;
|
|
40247
|
+
|
|
40248
|
+
@Field({nullable: true})
|
|
40249
|
+
ErrorMessage?: string;
|
|
40250
|
+
|
|
40251
|
+
@Field(() => Boolean, {nullable: false})
|
|
40252
|
+
Success: boolean;
|
|
40253
|
+
}
|
|
40254
|
+
|
|
40255
|
+
@Resolver(MJListInvitation_)
|
|
40256
|
+
export class MJListInvitationResolver extends ResolverBase {
|
|
40257
|
+
@Query(() => RunMJListInvitationViewResult)
|
|
40258
|
+
async RunMJListInvitationViewByID(@Arg('input', () => RunViewByIDInput) input: RunViewByIDInput, @Ctx() { providers, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
40259
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
40260
|
+
return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
|
|
40261
|
+
}
|
|
40262
|
+
|
|
40263
|
+
@Query(() => RunMJListInvitationViewResult)
|
|
40264
|
+
async RunMJListInvitationViewByName(@Arg('input', () => RunViewByNameInput) input: RunViewByNameInput, @Ctx() { providers, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
40265
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
40266
|
+
return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
|
|
40267
|
+
}
|
|
40268
|
+
|
|
40269
|
+
@Query(() => RunMJListInvitationViewResult)
|
|
40270
|
+
async RunMJListInvitationDynamicView(@Arg('input', () => RunDynamicViewInput) input: RunDynamicViewInput, @Ctx() { providers, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
40271
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
40272
|
+
input.EntityName = 'MJ: List Invitations';
|
|
40273
|
+
return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
|
|
40274
|
+
}
|
|
40275
|
+
@Query(() => MJListInvitation_, { nullable: true })
|
|
40276
|
+
async MJListInvitation(@Arg('ID', () => String) ID: string, @Ctx() { dataSources, userPayload, providers }: AppContext, @PubSub() pubSub: PubSubEngine): Promise<MJListInvitation_ | null> {
|
|
40277
|
+
this.CheckUserReadPermissions('MJ: List Invitations', userPayload);
|
|
40278
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
40279
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
40280
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwListInvitations] WHERE [ID]='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: List Invitations', userPayload, EntityPermissionType.Read, 'AND');
|
|
40281
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
40282
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: List Invitations', rows && rows.length > 0 ? rows[0] : {}, this.GetUserFromPayload(userPayload));
|
|
40283
|
+
return result;
|
|
40284
|
+
}
|
|
40285
|
+
|
|
40286
|
+
@Mutation(() => MJListInvitation_)
|
|
40287
|
+
async CreateMJListInvitation(
|
|
40288
|
+
@Arg('input', () => CreateMJListInvitationInput) input: CreateMJListInvitationInput,
|
|
40289
|
+
@Ctx() { providers, userPayload }: AppContext,
|
|
40290
|
+
@PubSub() pubSub: PubSubEngine
|
|
40291
|
+
) {
|
|
40292
|
+
const provider = GetReadWriteProvider(providers);
|
|
40293
|
+
return this.CreateRecord('MJ: List Invitations', input, provider, userPayload, pubSub)
|
|
40294
|
+
}
|
|
40295
|
+
|
|
40296
|
+
@Mutation(() => MJListInvitation_)
|
|
40297
|
+
async UpdateMJListInvitation(
|
|
40298
|
+
@Arg('input', () => UpdateMJListInvitationInput) input: UpdateMJListInvitationInput,
|
|
40299
|
+
@Ctx() { providers, userPayload }: AppContext,
|
|
40300
|
+
@PubSub() pubSub: PubSubEngine
|
|
40301
|
+
) {
|
|
40302
|
+
const provider = GetReadWriteProvider(providers);
|
|
40303
|
+
return this.UpdateRecord('MJ: List Invitations', input, provider, userPayload, pubSub);
|
|
40304
|
+
}
|
|
40305
|
+
|
|
40306
|
+
@Mutation(() => MJListInvitation_)
|
|
40307
|
+
async DeleteMJListInvitation(@Arg('ID', () => String) ID: string, @Arg('options___', () => DeleteOptionsInput) options: DeleteOptionsInput, @Ctx() { providers, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
40308
|
+
const provider = GetReadWriteProvider(providers);
|
|
40309
|
+
const key = new CompositeKey([{FieldName: 'ID', Value: ID}]);
|
|
40310
|
+
return this.DeleteRecord('MJ: List Invitations', key, options, provider, userPayload, pubSub);
|
|
40311
|
+
}
|
|
40312
|
+
|
|
40313
|
+
}
|
|
40314
|
+
|
|
40315
|
+
//****************************************************************************
|
|
40316
|
+
// ENTITY CLASS for MJ: List Shares
|
|
40317
|
+
//****************************************************************************
|
|
40318
|
+
@ObjectType({ description: `Manages user access and permissions for shared lists.` })
|
|
40319
|
+
export class MJListShare_ {
|
|
40320
|
+
@Field({description: `Unique identifier for the share record.`})
|
|
40321
|
+
@MaxLength(16)
|
|
40322
|
+
ID: string;
|
|
40323
|
+
|
|
40324
|
+
@Field({description: `The list being shared.`})
|
|
40325
|
+
@MaxLength(16)
|
|
40326
|
+
ListID: string;
|
|
40327
|
+
|
|
40328
|
+
@Field({description: `The user receiving access to the list.`})
|
|
40329
|
+
@MaxLength(16)
|
|
40330
|
+
UserID: string;
|
|
40331
|
+
|
|
40332
|
+
@Field({description: `The permission level granted (Editor or Viewer).`})
|
|
40333
|
+
@MaxLength(100)
|
|
40334
|
+
Role: string;
|
|
40335
|
+
|
|
40336
|
+
@Field({description: `Current status of the share (Active or Pending).`})
|
|
40337
|
+
@MaxLength(40)
|
|
40338
|
+
Status: string;
|
|
40339
|
+
|
|
40340
|
+
@Field()
|
|
40341
|
+
@MaxLength(10)
|
|
40342
|
+
_mj__CreatedAt: Date;
|
|
40343
|
+
|
|
40344
|
+
@Field()
|
|
40345
|
+
@MaxLength(10)
|
|
40346
|
+
_mj__UpdatedAt: Date;
|
|
40347
|
+
|
|
40348
|
+
@Field()
|
|
40349
|
+
@MaxLength(200)
|
|
40350
|
+
List: string;
|
|
40351
|
+
|
|
40352
|
+
@Field()
|
|
40353
|
+
@MaxLength(200)
|
|
40354
|
+
User: string;
|
|
40355
|
+
|
|
40356
|
+
}
|
|
40357
|
+
|
|
40358
|
+
//****************************************************************************
|
|
40359
|
+
// INPUT TYPE for MJ: List Shares
|
|
40360
|
+
//****************************************************************************
|
|
40361
|
+
@InputType()
|
|
40362
|
+
export class CreateMJListShareInput {
|
|
40363
|
+
@Field({ nullable: true })
|
|
40364
|
+
ID?: string;
|
|
40365
|
+
|
|
40366
|
+
@Field({ nullable: true })
|
|
40367
|
+
ListID?: string;
|
|
40368
|
+
|
|
40369
|
+
@Field({ nullable: true })
|
|
40370
|
+
UserID?: string;
|
|
40371
|
+
|
|
40372
|
+
@Field({ nullable: true })
|
|
40373
|
+
Role?: string;
|
|
40374
|
+
|
|
40375
|
+
@Field({ nullable: true })
|
|
40376
|
+
Status?: string;
|
|
40377
|
+
}
|
|
40378
|
+
|
|
40379
|
+
|
|
40380
|
+
//****************************************************************************
|
|
40381
|
+
// INPUT TYPE for MJ: List Shares
|
|
40382
|
+
//****************************************************************************
|
|
40383
|
+
@InputType()
|
|
40384
|
+
export class UpdateMJListShareInput {
|
|
40385
|
+
@Field()
|
|
40386
|
+
ID: string;
|
|
40387
|
+
|
|
40388
|
+
@Field({ nullable: true })
|
|
40389
|
+
ListID?: string;
|
|
40390
|
+
|
|
40391
|
+
@Field({ nullable: true })
|
|
40392
|
+
UserID?: string;
|
|
40393
|
+
|
|
40394
|
+
@Field({ nullable: true })
|
|
40395
|
+
Role?: string;
|
|
40396
|
+
|
|
40397
|
+
@Field({ nullable: true })
|
|
40398
|
+
Status?: string;
|
|
40399
|
+
|
|
40400
|
+
@Field(() => [KeyValuePairInput], { nullable: true })
|
|
40401
|
+
OldValues___?: KeyValuePairInput[];
|
|
40402
|
+
}
|
|
40403
|
+
|
|
40404
|
+
//****************************************************************************
|
|
40405
|
+
// RESOLVER for MJ: List Shares
|
|
40406
|
+
//****************************************************************************
|
|
40407
|
+
@ObjectType()
|
|
40408
|
+
export class RunMJListShareViewResult {
|
|
40409
|
+
@Field(() => [MJListShare_])
|
|
40410
|
+
Results: MJListShare_[];
|
|
40411
|
+
|
|
40412
|
+
@Field(() => String, {nullable: true})
|
|
40413
|
+
UserViewRunID?: string;
|
|
40414
|
+
|
|
40415
|
+
@Field(() => Int, {nullable: true})
|
|
40416
|
+
RowCount: number;
|
|
40417
|
+
|
|
40418
|
+
@Field(() => Int, {nullable: true})
|
|
40419
|
+
TotalRowCount: number;
|
|
40420
|
+
|
|
40421
|
+
@Field(() => Int, {nullable: true})
|
|
40422
|
+
ExecutionTime: number;
|
|
40423
|
+
|
|
40424
|
+
@Field({nullable: true})
|
|
40425
|
+
ErrorMessage?: string;
|
|
40426
|
+
|
|
40427
|
+
@Field(() => Boolean, {nullable: false})
|
|
40428
|
+
Success: boolean;
|
|
40429
|
+
}
|
|
40430
|
+
|
|
40431
|
+
@Resolver(MJListShare_)
|
|
40432
|
+
export class MJListShareResolver extends ResolverBase {
|
|
40433
|
+
@Query(() => RunMJListShareViewResult)
|
|
40434
|
+
async RunMJListShareViewByID(@Arg('input', () => RunViewByIDInput) input: RunViewByIDInput, @Ctx() { providers, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
40435
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
40436
|
+
return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
|
|
40437
|
+
}
|
|
40438
|
+
|
|
40439
|
+
@Query(() => RunMJListShareViewResult)
|
|
40440
|
+
async RunMJListShareViewByName(@Arg('input', () => RunViewByNameInput) input: RunViewByNameInput, @Ctx() { providers, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
40441
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
40442
|
+
return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
|
|
40443
|
+
}
|
|
40444
|
+
|
|
40445
|
+
@Query(() => RunMJListShareViewResult)
|
|
40446
|
+
async RunMJListShareDynamicView(@Arg('input', () => RunDynamicViewInput) input: RunDynamicViewInput, @Ctx() { providers, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
40447
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
40448
|
+
input.EntityName = 'MJ: List Shares';
|
|
40449
|
+
return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
|
|
40450
|
+
}
|
|
40451
|
+
@Query(() => MJListShare_, { nullable: true })
|
|
40452
|
+
async MJListShare(@Arg('ID', () => String) ID: string, @Ctx() { dataSources, userPayload, providers }: AppContext, @PubSub() pubSub: PubSubEngine): Promise<MJListShare_ | null> {
|
|
40453
|
+
this.CheckUserReadPermissions('MJ: List Shares', userPayload);
|
|
40454
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
40455
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
40456
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwListShares] WHERE [ID]='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: List Shares', userPayload, EntityPermissionType.Read, 'AND');
|
|
40457
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
40458
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: List Shares', rows && rows.length > 0 ? rows[0] : {}, this.GetUserFromPayload(userPayload));
|
|
40459
|
+
return result;
|
|
40460
|
+
}
|
|
40461
|
+
|
|
40462
|
+
@Mutation(() => MJListShare_)
|
|
40463
|
+
async CreateMJListShare(
|
|
40464
|
+
@Arg('input', () => CreateMJListShareInput) input: CreateMJListShareInput,
|
|
40465
|
+
@Ctx() { providers, userPayload }: AppContext,
|
|
40466
|
+
@PubSub() pubSub: PubSubEngine
|
|
40467
|
+
) {
|
|
40468
|
+
const provider = GetReadWriteProvider(providers);
|
|
40469
|
+
return this.CreateRecord('MJ: List Shares', input, provider, userPayload, pubSub)
|
|
40470
|
+
}
|
|
40471
|
+
|
|
40472
|
+
@Mutation(() => MJListShare_)
|
|
40473
|
+
async UpdateMJListShare(
|
|
40474
|
+
@Arg('input', () => UpdateMJListShareInput) input: UpdateMJListShareInput,
|
|
40475
|
+
@Ctx() { providers, userPayload }: AppContext,
|
|
40476
|
+
@PubSub() pubSub: PubSubEngine
|
|
40477
|
+
) {
|
|
40478
|
+
const provider = GetReadWriteProvider(providers);
|
|
40479
|
+
return this.UpdateRecord('MJ: List Shares', input, provider, userPayload, pubSub);
|
|
40480
|
+
}
|
|
40481
|
+
|
|
40482
|
+
@Mutation(() => MJListShare_)
|
|
40483
|
+
async DeleteMJListShare(@Arg('ID', () => String) ID: string, @Arg('options___', () => DeleteOptionsInput) options: DeleteOptionsInput, @Ctx() { providers, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
40484
|
+
const provider = GetReadWriteProvider(providers);
|
|
40485
|
+
const key = new CompositeKey([{FieldName: 'ID', Value: ID}]);
|
|
40486
|
+
return this.DeleteRecord('MJ: List Shares', key, options, provider, userPayload, pubSub);
|
|
40487
|
+
}
|
|
40488
|
+
|
|
40489
|
+
}
|
|
40490
|
+
|
|
39998
40491
|
//****************************************************************************
|
|
39999
40492
|
// ENTITY CLASS for MJ: Projects
|
|
40000
40493
|
//****************************************************************************
|
|
@@ -42493,6 +42986,9 @@ export class MJTask_ {
|
|
|
42493
42986
|
@MaxLength(510)
|
|
42494
42987
|
Project?: string;
|
|
42495
42988
|
|
|
42989
|
+
@Field({nullable: true})
|
|
42990
|
+
ConversationDetail?: string;
|
|
42991
|
+
|
|
42496
42992
|
@Field({nullable: true})
|
|
42497
42993
|
@MaxLength(200)
|
|
42498
42994
|
User?: string;
|
|
@@ -47532,6 +48028,9 @@ export class MJRecommendationItem_ {
|
|
|
47532
48028
|
@MaxLength(10)
|
|
47533
48029
|
_mj__UpdatedAt: Date;
|
|
47534
48030
|
|
|
48031
|
+
@Field()
|
|
48032
|
+
Recommendation: string;
|
|
48033
|
+
|
|
47535
48034
|
@Field()
|
|
47536
48035
|
@MaxLength(510)
|
|
47537
48036
|
DestinationEntity: string;
|
|
@@ -48069,6 +48568,10 @@ export class MJRecommendation_ {
|
|
|
48069
48568
|
@MaxLength(10)
|
|
48070
48569
|
_mj__UpdatedAt: Date;
|
|
48071
48570
|
|
|
48571
|
+
@Field()
|
|
48572
|
+
@MaxLength(510)
|
|
48573
|
+
RecommendationRun: string;
|
|
48574
|
+
|
|
48072
48575
|
@Field()
|
|
48073
48576
|
@MaxLength(510)
|
|
48074
48577
|
SourceEntity: string;
|
|
@@ -48478,6 +48981,10 @@ export class MJRecordChange_ {
|
|
|
48478
48981
|
@MaxLength(200)
|
|
48479
48982
|
User: string;
|
|
48480
48983
|
|
|
48984
|
+
@Field({nullable: true})
|
|
48985
|
+
@MaxLength(200)
|
|
48986
|
+
ReplayRun?: string;
|
|
48987
|
+
|
|
48481
48988
|
@Field({nullable: true})
|
|
48482
48989
|
@MaxLength(200)
|
|
48483
48990
|
Integration?: string;
|
|
@@ -48709,6 +49216,10 @@ export class MJRecordMergeDeletionLog_ {
|
|
|
48709
49216
|
@MaxLength(10)
|
|
48710
49217
|
_mj__UpdatedAt: Date;
|
|
48711
49218
|
|
|
49219
|
+
@Field()
|
|
49220
|
+
@MaxLength(900)
|
|
49221
|
+
RecordMergeLog: string;
|
|
49222
|
+
|
|
48712
49223
|
}
|
|
48713
49224
|
|
|
48714
49225
|
//****************************************************************************
|
|
@@ -49576,6 +50087,9 @@ export class MJReport_ {
|
|
|
49576
50087
|
@MaxLength(510)
|
|
49577
50088
|
Conversation?: string;
|
|
49578
50089
|
|
|
50090
|
+
@Field({nullable: true})
|
|
50091
|
+
ConversationDetail?: string;
|
|
50092
|
+
|
|
49579
50093
|
@Field({nullable: true})
|
|
49580
50094
|
@MaxLength(510)
|
|
49581
50095
|
DataContext?: string;
|
|
@@ -52825,6 +53339,10 @@ export class MJTemplateParam_ {
|
|
|
52825
53339
|
@MaxLength(510)
|
|
52826
53340
|
Entity?: string;
|
|
52827
53341
|
|
|
53342
|
+
@Field({nullable: true})
|
|
53343
|
+
@MaxLength(510)
|
|
53344
|
+
TemplateContent?: string;
|
|
53345
|
+
|
|
52828
53346
|
}
|
|
52829
53347
|
|
|
52830
53348
|
//****************************************************************************
|
|
@@ -55582,6 +56100,12 @@ export class MJUser_ {
|
|
|
55582
56100
|
@Field(() => [MJUserSetting_])
|
|
55583
56101
|
MJ_UserSettings_UserIDArray: MJUserSetting_[]; // Link to MJ_UserSettings
|
|
55584
56102
|
|
|
56103
|
+
@Field(() => [MJListInvitation_])
|
|
56104
|
+
MJ_ListInvitations_CreatedByUserIDArray: MJListInvitation_[]; // Link to MJ_ListInvitations
|
|
56105
|
+
|
|
56106
|
+
@Field(() => [MJListShare_])
|
|
56107
|
+
MJ_ListShares_UserIDArray: MJListShare_[]; // Link to MJ_ListShares
|
|
56108
|
+
|
|
55585
56109
|
@Field(() => [MJResourcePermission_])
|
|
55586
56110
|
ResourcePermissions_UserIDArray: MJResourcePermission_[]; // Link to ResourcePermissions
|
|
55587
56111
|
|
|
@@ -56329,6 +56853,28 @@ export class MJUserResolverBase extends ResolverBase {
|
|
|
56329
56853
|
return result;
|
|
56330
56854
|
}
|
|
56331
56855
|
|
|
56856
|
+
@FieldResolver(() => [MJListInvitation_])
|
|
56857
|
+
async MJ_ListInvitations_CreatedByUserIDArray(@Root() mjuser_: MJUser_, @Ctx() { dataSources, userPayload, providers }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
56858
|
+
this.CheckUserReadPermissions('MJ: List Invitations', userPayload);
|
|
56859
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
56860
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
56861
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwListInvitations] WHERE [CreatedByUserID]='${mjuser_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: List Invitations', userPayload, EntityPermissionType.Read, 'AND');
|
|
56862
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
56863
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: List Invitations', rows, this.GetUserFromPayload(userPayload));
|
|
56864
|
+
return result;
|
|
56865
|
+
}
|
|
56866
|
+
|
|
56867
|
+
@FieldResolver(() => [MJListShare_])
|
|
56868
|
+
async MJ_ListShares_UserIDArray(@Root() mjuser_: MJUser_, @Ctx() { dataSources, userPayload, providers }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
56869
|
+
this.CheckUserReadPermissions('MJ: List Shares', userPayload);
|
|
56870
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
56871
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
56872
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwListShares] WHERE [UserID]='${mjuser_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: List Shares', userPayload, EntityPermissionType.Read, 'AND');
|
|
56873
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
56874
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: List Shares', rows, this.GetUserFromPayload(userPayload));
|
|
56875
|
+
return result;
|
|
56876
|
+
}
|
|
56877
|
+
|
|
56332
56878
|
@FieldResolver(() => [MJResourcePermission_])
|
|
56333
56879
|
async ResourcePermissions_UserIDArray(@Root() mjuser_: MJUser_, @Ctx() { dataSources, userPayload, providers }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
56334
56880
|
this.CheckUserReadPermissions('Resource Permissions', userPayload);
|