@memberjunction/server 2.7.1 → 2.9.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/config.d.ts +30 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +4 -0
- package/dist/config.js.map +1 -1
- package/dist/entitySubclasses/userViewEntity.server.d.ts.map +1 -1
- package/dist/entitySubclasses/userViewEntity.server.js +5 -4
- package/dist/entitySubclasses/userViewEntity.server.js.map +1 -1
- package/dist/generated/generated.d.ts +119 -4
- package/dist/generated/generated.d.ts.map +1 -1
- package/dist/generated/generated.js +751 -30
- package/dist/generated/generated.js.map +1 -1
- package/dist/resolvers/AskSkipResolver.d.ts.map +1 -1
- package/dist/resolvers/AskSkipResolver.js +31 -5
- package/dist/resolvers/AskSkipResolver.js.map +1 -1
- package/package.json +22 -22
- package/src/config.ts +4 -0
- package/src/entitySubclasses/userViewEntity.server.ts +5 -4
- package/src/generated/generated.ts +472 -24
- package/src/resolvers/AskSkipResolver.ts +58 -18
|
@@ -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:
|
|
5
|
+
* GENERATED: 10/16/2024, 4:51:13 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, 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, ContentProcessRunEntity, ContentSourceEntity, ContentSourceParamEntity, ContentSourceTypeEntity, ContentSourceTypeParamEntity, ContentTypeEntity, ContentTypeAttributeEntity, ContentFileTypeEntity, ContentItemEntity, ContentItemAttributeEntity, ContentItemTagEntity } 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, ResourcePermissionEntity, ResourceLinkEntity, ContentProcessRunEntity, ContentSourceEntity, ContentSourceParamEntity, ContentSourceTypeEntity, ContentSourceTypeParamEntity, ContentTypeEntity, ContentTypeAttributeEntity, ContentFileTypeEntity, ContentItemEntity, ContentItemAttributeEntity, ContentItemTagEntity } from '@memberjunction/core-entities';
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
//****************************************************************************
|
|
@@ -1302,12 +1302,12 @@ export class AIPromptCategory_ {
|
|
|
1302
1302
|
@MaxLength(510)
|
|
1303
1303
|
Parent?: string;
|
|
1304
1304
|
|
|
1305
|
-
@Field(() => [AIPrompt_])
|
|
1306
|
-
AIPrompts_CategoryIDArray: AIPrompt_[]; // Link to AIPrompts
|
|
1307
|
-
|
|
1308
1305
|
@Field(() => [AIPromptCategory_])
|
|
1309
1306
|
AIPromptCategories_ParentIDArray: AIPromptCategory_[]; // Link to AIPromptCategories
|
|
1310
1307
|
|
|
1308
|
+
@Field(() => [AIPrompt_])
|
|
1309
|
+
AIPrompts_CategoryIDArray: AIPrompt_[]; // Link to AIPrompts
|
|
1310
|
+
|
|
1311
1311
|
}
|
|
1312
1312
|
|
|
1313
1313
|
//****************************************************************************
|
|
@@ -1399,14 +1399,6 @@ export class AIPromptCategoryResolver extends ResolverBase {
|
|
|
1399
1399
|
return result;
|
|
1400
1400
|
}
|
|
1401
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
1402
|
@FieldResolver(() => [AIPromptCategory_])
|
|
1411
1403
|
async AIPromptCategories_ParentIDArray(@Root() aipromptcategory_: AIPromptCategory_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
1412
1404
|
this.CheckUserReadPermissions('AI Prompt Categories', userPayload);
|
|
@@ -1415,6 +1407,14 @@ export class AIPromptCategoryResolver extends ResolverBase {
|
|
|
1415
1407
|
return result;
|
|
1416
1408
|
}
|
|
1417
1409
|
|
|
1410
|
+
@FieldResolver(() => [AIPrompt_])
|
|
1411
|
+
async AIPrompts_CategoryIDArray(@Root() aipromptcategory_: AIPromptCategory_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
1412
|
+
this.CheckUserReadPermissions('AI Prompts', userPayload);
|
|
1413
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIPrompts] WHERE [CategoryID]='${aipromptcategory_.ID}' ` + this.getRowLevelSecurityWhereClause('AI Prompts', userPayload, EntityPermissionType.Read, 'AND');
|
|
1414
|
+
const result = this.ArrayMapFieldNamesToCodeNames('AI Prompts', await dataSource.query(sSQL));
|
|
1415
|
+
return result;
|
|
1416
|
+
}
|
|
1417
|
+
|
|
1418
1418
|
@Mutation(() => AIPromptCategory_)
|
|
1419
1419
|
async CreateAIPromptCategory(
|
|
1420
1420
|
@Arg('input', () => CreateAIPromptCategoryInput) input: CreateAIPromptCategoryInput,
|
|
@@ -2626,6 +2626,9 @@ export class Role_ {
|
|
|
2626
2626
|
@Field(() => [EmployeeRole_])
|
|
2627
2627
|
EmployeeRoles_RoleIDArray: EmployeeRole_[]; // Link to EmployeeRoles
|
|
2628
2628
|
|
|
2629
|
+
@Field(() => [ResourcePermission_])
|
|
2630
|
+
ResourcePermissions_RoleIDArray: ResourcePermission_[]; // Link to ResourcePermissions
|
|
2631
|
+
|
|
2629
2632
|
}
|
|
2630
2633
|
|
|
2631
2634
|
//****************************************************************************
|
|
@@ -2771,6 +2774,14 @@ export class RoleResolver extends ResolverBase {
|
|
|
2771
2774
|
return result;
|
|
2772
2775
|
}
|
|
2773
2776
|
|
|
2777
|
+
@FieldResolver(() => [ResourcePermission_])
|
|
2778
|
+
async ResourcePermissions_RoleIDArray(@Root() role_: Role_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
2779
|
+
this.CheckUserReadPermissions('Resource Permissions', userPayload);
|
|
2780
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwResourcePermissions] WHERE [RoleID]='${role_.ID}' ` + this.getRowLevelSecurityWhereClause('Resource Permissions', userPayload, EntityPermissionType.Read, 'AND');
|
|
2781
|
+
const result = this.ArrayMapFieldNamesToCodeNames('Resource Permissions', await dataSource.query(sSQL));
|
|
2782
|
+
return result;
|
|
2783
|
+
}
|
|
2784
|
+
|
|
2774
2785
|
@Mutation(() => Role_)
|
|
2775
2786
|
async CreateRole(
|
|
2776
2787
|
@Arg('input', () => CreateRoleInput) input: CreateRoleInput,
|
|
@@ -5057,6 +5068,12 @@ export class User_ {
|
|
|
5057
5068
|
@Field(() => [ScheduledAction_])
|
|
5058
5069
|
ScheduledActions_CreatedByUserIDArray: ScheduledAction_[]; // Link to ScheduledActions
|
|
5059
5070
|
|
|
5071
|
+
@Field(() => [ResourceLink_])
|
|
5072
|
+
ResourceLinks_UserIDArray: ResourceLink_[]; // Link to ResourceLinks
|
|
5073
|
+
|
|
5074
|
+
@Field(() => [ResourcePermission_])
|
|
5075
|
+
ResourcePermissions_UserIDArray: ResourcePermission_[]; // Link to ResourcePermissions
|
|
5076
|
+
|
|
5060
5077
|
}
|
|
5061
5078
|
|
|
5062
5079
|
//****************************************************************************
|
|
@@ -5460,6 +5477,22 @@ export class UserResolverBase extends ResolverBase {
|
|
|
5460
5477
|
return result;
|
|
5461
5478
|
}
|
|
5462
5479
|
|
|
5480
|
+
@FieldResolver(() => [ResourceLink_])
|
|
5481
|
+
async ResourceLinks_UserIDArray(@Root() user_: User_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
5482
|
+
this.CheckUserReadPermissions('Resource Links', userPayload);
|
|
5483
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwResourceLinks] WHERE [UserID]='${user_.ID}' ` + this.getRowLevelSecurityWhereClause('Resource Links', userPayload, EntityPermissionType.Read, 'AND');
|
|
5484
|
+
const result = this.ArrayMapFieldNamesToCodeNames('Resource Links', await dataSource.query(sSQL));
|
|
5485
|
+
return result;
|
|
5486
|
+
}
|
|
5487
|
+
|
|
5488
|
+
@FieldResolver(() => [ResourcePermission_])
|
|
5489
|
+
async ResourcePermissions_UserIDArray(@Root() user_: User_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
5490
|
+
this.CheckUserReadPermissions('Resource Permissions', userPayload);
|
|
5491
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwResourcePermissions] WHERE [UserID]='${user_.ID}' ` + this.getRowLevelSecurityWhereClause('Resource Permissions', userPayload, EntityPermissionType.Read, 'AND');
|
|
5492
|
+
const result = this.ArrayMapFieldNamesToCodeNames('Resource Permissions', await dataSource.query(sSQL));
|
|
5493
|
+
return result;
|
|
5494
|
+
}
|
|
5495
|
+
|
|
5463
5496
|
@Mutation(() => User_)
|
|
5464
5497
|
async CreateUser(
|
|
5465
5498
|
@Arg('input', () => CreateUserInput) input: CreateUserInput,
|
|
@@ -10457,12 +10490,12 @@ export class AIModel_ {
|
|
|
10457
10490
|
@Field(() => [ContentType_])
|
|
10458
10491
|
ContentTypes_AIModelIDArray: ContentType_[]; // Link to ContentTypes
|
|
10459
10492
|
|
|
10460
|
-
@Field(() => [AIResultCache_])
|
|
10461
|
-
AIResultCache_AIModelIDArray: AIResultCache_[]; // Link to AIResultCache
|
|
10462
|
-
|
|
10463
10493
|
@Field(() => [EntityAIAction_])
|
|
10464
10494
|
EntityAIActions_AIModelIDArray: EntityAIAction_[]; // Link to EntityAIActions
|
|
10465
10495
|
|
|
10496
|
+
@Field(() => [AIResultCache_])
|
|
10497
|
+
AIResultCache_AIModelIDArray: AIResultCache_[]; // Link to AIResultCache
|
|
10498
|
+
|
|
10466
10499
|
}
|
|
10467
10500
|
|
|
10468
10501
|
//****************************************************************************
|
|
@@ -10662,14 +10695,6 @@ export class AIModelResolver extends ResolverBase {
|
|
|
10662
10695
|
return result;
|
|
10663
10696
|
}
|
|
10664
10697
|
|
|
10665
|
-
@FieldResolver(() => [AIResultCache_])
|
|
10666
|
-
async AIResultCache_AIModelIDArray(@Root() aimodel_: AIModel_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
10667
|
-
this.CheckUserReadPermissions('AI Result Cache', userPayload);
|
|
10668
|
-
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIResultCaches] WHERE [AIModelID]='${aimodel_.ID}' ` + this.getRowLevelSecurityWhereClause('AI Result Cache', userPayload, EntityPermissionType.Read, 'AND');
|
|
10669
|
-
const result = this.ArrayMapFieldNamesToCodeNames('AI Result Cache', await dataSource.query(sSQL));
|
|
10670
|
-
return result;
|
|
10671
|
-
}
|
|
10672
|
-
|
|
10673
10698
|
@FieldResolver(() => [EntityAIAction_])
|
|
10674
10699
|
async EntityAIActions_AIModelIDArray(@Root() aimodel_: AIModel_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
10675
10700
|
this.CheckUserReadPermissions('Entity AI Actions', userPayload);
|
|
@@ -10678,6 +10703,14 @@ export class AIModelResolver extends ResolverBase {
|
|
|
10678
10703
|
return result;
|
|
10679
10704
|
}
|
|
10680
10705
|
|
|
10706
|
+
@FieldResolver(() => [AIResultCache_])
|
|
10707
|
+
async AIResultCache_AIModelIDArray(@Root() aimodel_: AIModel_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
10708
|
+
this.CheckUserReadPermissions('AI Result Cache', userPayload);
|
|
10709
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIResultCaches] WHERE [AIModelID]='${aimodel_.ID}' ` + this.getRowLevelSecurityWhereClause('AI Result Cache', userPayload, EntityPermissionType.Read, 'AND');
|
|
10710
|
+
const result = this.ArrayMapFieldNamesToCodeNames('AI Result Cache', await dataSource.query(sSQL));
|
|
10711
|
+
return result;
|
|
10712
|
+
}
|
|
10713
|
+
|
|
10681
10714
|
@Mutation(() => AIModel_)
|
|
10682
10715
|
async CreateAIModel(
|
|
10683
10716
|
@Arg('input', () => CreateAIModelInput) input: CreateAIModelInput,
|
|
@@ -12995,16 +13028,30 @@ export class ResourceType_ {
|
|
|
12995
13028
|
@MaxLength(10)
|
|
12996
13029
|
_mj__UpdatedAt: Date;
|
|
12997
13030
|
|
|
13031
|
+
@Field({nullable: true, description: 'Nullable foreign key to the ID column in Entities entity, representing the category entity. ASSUMPTION: If provided, the assumption is there is a self-referencing/recursive foreign key establishing a hierarchy within the Category Entity, commonly called ParentID, but it can be named anything.'})
|
|
13032
|
+
@MaxLength(16)
|
|
13033
|
+
CategoryEntityID?: string;
|
|
13034
|
+
|
|
12998
13035
|
@Field({nullable: true})
|
|
12999
13036
|
@MaxLength(510)
|
|
13000
13037
|
Entity?: string;
|
|
13001
13038
|
|
|
13039
|
+
@Field({nullable: true})
|
|
13040
|
+
@MaxLength(510)
|
|
13041
|
+
CategoryEntity?: string;
|
|
13042
|
+
|
|
13002
13043
|
@Field(() => [WorkspaceItem_])
|
|
13003
13044
|
WorkspaceItems_ResourceTypeIDArray: WorkspaceItem_[]; // Link to WorkspaceItems
|
|
13004
13045
|
|
|
13005
13046
|
@Field(() => [UserNotification_])
|
|
13006
13047
|
UserNotifications_ResourceTypeIDArray: UserNotification_[]; // Link to UserNotifications
|
|
13007
13048
|
|
|
13049
|
+
@Field(() => [ResourceLink_])
|
|
13050
|
+
ResourceLinks_ResourceTypeIDArray: ResourceLink_[]; // Link to ResourceLinks
|
|
13051
|
+
|
|
13052
|
+
@Field(() => [ResourcePermission_])
|
|
13053
|
+
ResourcePermissions_ResourceTypeIDArray: ResourcePermission_[]; // Link to ResourcePermissions
|
|
13054
|
+
|
|
13008
13055
|
}
|
|
13009
13056
|
//****************************************************************************
|
|
13010
13057
|
// RESOLVER for Resource Types
|
|
@@ -13074,6 +13121,22 @@ export class ResourceTypeResolver extends ResolverBase {
|
|
|
13074
13121
|
return result;
|
|
13075
13122
|
}
|
|
13076
13123
|
|
|
13124
|
+
@FieldResolver(() => [ResourceLink_])
|
|
13125
|
+
async ResourceLinks_ResourceTypeIDArray(@Root() resourcetype_: ResourceType_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
13126
|
+
this.CheckUserReadPermissions('Resource Links', userPayload);
|
|
13127
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwResourceLinks] WHERE [ResourceTypeID]='${resourcetype_.ID}' ` + this.getRowLevelSecurityWhereClause('Resource Links', userPayload, EntityPermissionType.Read, 'AND');
|
|
13128
|
+
const result = this.ArrayMapFieldNamesToCodeNames('Resource Links', await dataSource.query(sSQL));
|
|
13129
|
+
return result;
|
|
13130
|
+
}
|
|
13131
|
+
|
|
13132
|
+
@FieldResolver(() => [ResourcePermission_])
|
|
13133
|
+
async ResourcePermissions_ResourceTypeIDArray(@Root() resourcetype_: ResourceType_, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
13134
|
+
this.CheckUserReadPermissions('Resource Permissions', userPayload);
|
|
13135
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwResourcePermissions] WHERE [ResourceTypeID]='${resourcetype_.ID}' ` + this.getRowLevelSecurityWhereClause('Resource Permissions', userPayload, EntityPermissionType.Read, 'AND');
|
|
13136
|
+
const result = this.ArrayMapFieldNamesToCodeNames('Resource Permissions', await dataSource.query(sSQL));
|
|
13137
|
+
return result;
|
|
13138
|
+
}
|
|
13139
|
+
|
|
13077
13140
|
}
|
|
13078
13141
|
|
|
13079
13142
|
//****************************************************************************
|
|
@@ -13764,6 +13827,9 @@ export class DatasetItem_ {
|
|
|
13764
13827
|
@MaxLength(10)
|
|
13765
13828
|
_mj__UpdatedAt: Date;
|
|
13766
13829
|
|
|
13830
|
+
@Field({nullable: true, description: 'Optional column to store a comma-delimited list of columns for the DatasetItem'})
|
|
13831
|
+
Columns?: string;
|
|
13832
|
+
|
|
13767
13833
|
@Field()
|
|
13768
13834
|
@MaxLength(200)
|
|
13769
13835
|
Dataset: string;
|
|
@@ -26349,6 +26415,388 @@ export class EntityActionParamResolver extends ResolverBase {
|
|
|
26349
26415
|
|
|
26350
26416
|
}
|
|
26351
26417
|
|
|
26418
|
+
//****************************************************************************
|
|
26419
|
+
// ENTITY CLASS for Resource Permissions
|
|
26420
|
+
//****************************************************************************
|
|
26421
|
+
@ObjectType({ description: 'Table for managing sharing of resources to users or roles with time constraints and permission levels' })
|
|
26422
|
+
export class ResourcePermission_ {
|
|
26423
|
+
@Field()
|
|
26424
|
+
@MaxLength(16)
|
|
26425
|
+
ID: string;
|
|
26426
|
+
|
|
26427
|
+
@Field({description: 'Reference to the type of resource being shared (View, Dashboard, Report, etc.)'})
|
|
26428
|
+
@MaxLength(16)
|
|
26429
|
+
ResourceTypeID: string;
|
|
26430
|
+
|
|
26431
|
+
@Field({description: 'ID of the specific resource being shared'})
|
|
26432
|
+
@MaxLength(510)
|
|
26433
|
+
ResourceRecordID: string;
|
|
26434
|
+
|
|
26435
|
+
@Field({description: 'The level of sharing either Role or User'})
|
|
26436
|
+
@MaxLength(20)
|
|
26437
|
+
Type: string;
|
|
26438
|
+
|
|
26439
|
+
@Field({nullable: true, description: 'Optional: Date when sharing starts'})
|
|
26440
|
+
@MaxLength(10)
|
|
26441
|
+
StartSharingAt?: Date;
|
|
26442
|
+
|
|
26443
|
+
@Field({nullable: true, description: 'Optional: Date when sharing ends'})
|
|
26444
|
+
@MaxLength(10)
|
|
26445
|
+
EndSharingAt?: Date;
|
|
26446
|
+
|
|
26447
|
+
@Field({nullable: true})
|
|
26448
|
+
@MaxLength(16)
|
|
26449
|
+
RoleID?: string;
|
|
26450
|
+
|
|
26451
|
+
@Field({nullable: true})
|
|
26452
|
+
@MaxLength(16)
|
|
26453
|
+
UserID?: string;
|
|
26454
|
+
|
|
26455
|
+
@Field({nullable: true, description: 'Permission level defining the type of access (View, Edit, Owner)'})
|
|
26456
|
+
@MaxLength(40)
|
|
26457
|
+
PermissionLevel?: string;
|
|
26458
|
+
|
|
26459
|
+
@Field()
|
|
26460
|
+
@MaxLength(10)
|
|
26461
|
+
_mj__CreatedAt: Date;
|
|
26462
|
+
|
|
26463
|
+
@Field()
|
|
26464
|
+
@MaxLength(10)
|
|
26465
|
+
_mj__UpdatedAt: Date;
|
|
26466
|
+
|
|
26467
|
+
@Field({description: 'Status of the resource permission request. Possible values are Requested, Approved, Rejected, or Revoked.'})
|
|
26468
|
+
@MaxLength(40)
|
|
26469
|
+
Status: string;
|
|
26470
|
+
|
|
26471
|
+
@Field()
|
|
26472
|
+
@MaxLength(510)
|
|
26473
|
+
ResourceType: string;
|
|
26474
|
+
|
|
26475
|
+
@Field({nullable: true})
|
|
26476
|
+
@MaxLength(100)
|
|
26477
|
+
Role?: string;
|
|
26478
|
+
|
|
26479
|
+
@Field({nullable: true})
|
|
26480
|
+
@MaxLength(200)
|
|
26481
|
+
User?: string;
|
|
26482
|
+
|
|
26483
|
+
}
|
|
26484
|
+
|
|
26485
|
+
//****************************************************************************
|
|
26486
|
+
// INPUT TYPE for Resource Permissions
|
|
26487
|
+
//****************************************************************************
|
|
26488
|
+
@InputType()
|
|
26489
|
+
export class CreateResourcePermissionInput {
|
|
26490
|
+
@Field()
|
|
26491
|
+
ResourceTypeID: string;
|
|
26492
|
+
|
|
26493
|
+
@Field()
|
|
26494
|
+
ResourceRecordID: string;
|
|
26495
|
+
|
|
26496
|
+
@Field()
|
|
26497
|
+
Type: string;
|
|
26498
|
+
|
|
26499
|
+
@Field({ nullable: true })
|
|
26500
|
+
StartSharingAt?: Date;
|
|
26501
|
+
|
|
26502
|
+
@Field({ nullable: true })
|
|
26503
|
+
EndSharingAt?: Date;
|
|
26504
|
+
|
|
26505
|
+
@Field({ nullable: true })
|
|
26506
|
+
RoleID?: string;
|
|
26507
|
+
|
|
26508
|
+
@Field({ nullable: true })
|
|
26509
|
+
UserID?: string;
|
|
26510
|
+
|
|
26511
|
+
@Field({ nullable: true })
|
|
26512
|
+
PermissionLevel?: string;
|
|
26513
|
+
|
|
26514
|
+
@Field()
|
|
26515
|
+
Status: string;
|
|
26516
|
+
}
|
|
26517
|
+
|
|
26518
|
+
|
|
26519
|
+
//****************************************************************************
|
|
26520
|
+
// INPUT TYPE for Resource Permissions
|
|
26521
|
+
//****************************************************************************
|
|
26522
|
+
@InputType()
|
|
26523
|
+
export class UpdateResourcePermissionInput {
|
|
26524
|
+
@Field()
|
|
26525
|
+
ID: string;
|
|
26526
|
+
|
|
26527
|
+
@Field()
|
|
26528
|
+
ResourceTypeID: string;
|
|
26529
|
+
|
|
26530
|
+
@Field()
|
|
26531
|
+
ResourceRecordID: string;
|
|
26532
|
+
|
|
26533
|
+
@Field()
|
|
26534
|
+
Type: string;
|
|
26535
|
+
|
|
26536
|
+
@Field({ nullable: true })
|
|
26537
|
+
StartSharingAt?: Date;
|
|
26538
|
+
|
|
26539
|
+
@Field({ nullable: true })
|
|
26540
|
+
EndSharingAt?: Date;
|
|
26541
|
+
|
|
26542
|
+
@Field({ nullable: true })
|
|
26543
|
+
RoleID?: string;
|
|
26544
|
+
|
|
26545
|
+
@Field({ nullable: true })
|
|
26546
|
+
UserID?: string;
|
|
26547
|
+
|
|
26548
|
+
@Field({ nullable: true })
|
|
26549
|
+
PermissionLevel?: string;
|
|
26550
|
+
|
|
26551
|
+
@Field()
|
|
26552
|
+
Status: string;
|
|
26553
|
+
|
|
26554
|
+
@Field(() => [KeyValuePairInput], { nullable: true })
|
|
26555
|
+
OldValues___?: KeyValuePairInput[];
|
|
26556
|
+
}
|
|
26557
|
+
|
|
26558
|
+
//****************************************************************************
|
|
26559
|
+
// RESOLVER for Resource Permissions
|
|
26560
|
+
//****************************************************************************
|
|
26561
|
+
@ObjectType()
|
|
26562
|
+
export class RunResourcePermissionViewResult {
|
|
26563
|
+
@Field(() => [ResourcePermission_])
|
|
26564
|
+
Results: ResourcePermission_[];
|
|
26565
|
+
|
|
26566
|
+
@Field(() => String, {nullable: true})
|
|
26567
|
+
UserViewRunID?: string;
|
|
26568
|
+
|
|
26569
|
+
@Field(() => Int, {nullable: true})
|
|
26570
|
+
RowCount: number;
|
|
26571
|
+
|
|
26572
|
+
@Field(() => Int, {nullable: true})
|
|
26573
|
+
TotalRowCount: number;
|
|
26574
|
+
|
|
26575
|
+
@Field(() => Int, {nullable: true})
|
|
26576
|
+
ExecutionTime: number;
|
|
26577
|
+
|
|
26578
|
+
@Field({nullable: true})
|
|
26579
|
+
ErrorMessage?: string;
|
|
26580
|
+
|
|
26581
|
+
@Field(() => Boolean, {nullable: false})
|
|
26582
|
+
Success: boolean;
|
|
26583
|
+
}
|
|
26584
|
+
|
|
26585
|
+
@Resolver(ResourcePermission_)
|
|
26586
|
+
export class ResourcePermissionResolver extends ResolverBase {
|
|
26587
|
+
@Query(() => RunResourcePermissionViewResult)
|
|
26588
|
+
async RunResourcePermissionViewByID(@Arg('input', () => RunViewByIDInput) input: RunViewByIDInput, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
26589
|
+
return super.RunViewByIDGeneric(input, dataSource, userPayload, pubSub);
|
|
26590
|
+
}
|
|
26591
|
+
|
|
26592
|
+
@Query(() => RunResourcePermissionViewResult)
|
|
26593
|
+
async RunResourcePermissionViewByName(@Arg('input', () => RunViewByNameInput) input: RunViewByNameInput, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
26594
|
+
return super.RunViewByNameGeneric(input, dataSource, userPayload, pubSub);
|
|
26595
|
+
}
|
|
26596
|
+
|
|
26597
|
+
@Query(() => RunResourcePermissionViewResult)
|
|
26598
|
+
async RunResourcePermissionDynamicView(@Arg('input', () => RunDynamicViewInput) input: RunDynamicViewInput, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
26599
|
+
input.EntityName = 'Resource Permissions';
|
|
26600
|
+
return super.RunDynamicViewGeneric(input, dataSource, userPayload, pubSub);
|
|
26601
|
+
}
|
|
26602
|
+
@Query(() => ResourcePermission_, { nullable: true })
|
|
26603
|
+
async ResourcePermission(@Arg('ID', () => String) ID: string, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine): Promise<ResourcePermission_ | null> {
|
|
26604
|
+
this.CheckUserReadPermissions('Resource Permissions', userPayload);
|
|
26605
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwResourcePermissions] WHERE [ID]='${ID}' ` + this.getRowLevelSecurityWhereClause('Resource Permissions', userPayload, EntityPermissionType.Read, 'AND');
|
|
26606
|
+
const result = this.MapFieldNamesToCodeNames('Resource Permissions', await dataSource.query(sSQL).then((r) => r && r.length > 0 ? r[0] : {}))
|
|
26607
|
+
return result;
|
|
26608
|
+
}
|
|
26609
|
+
|
|
26610
|
+
@Mutation(() => ResourcePermission_)
|
|
26611
|
+
async CreateResourcePermission(
|
|
26612
|
+
@Arg('input', () => CreateResourcePermissionInput) input: CreateResourcePermissionInput,
|
|
26613
|
+
@Ctx() { dataSource, userPayload }: AppContext,
|
|
26614
|
+
@PubSub() pubSub: PubSubEngine
|
|
26615
|
+
) {
|
|
26616
|
+
return this.CreateRecord('Resource Permissions', input, dataSource, userPayload, pubSub)
|
|
26617
|
+
}
|
|
26618
|
+
|
|
26619
|
+
@Mutation(() => ResourcePermission_)
|
|
26620
|
+
async UpdateResourcePermission(
|
|
26621
|
+
@Arg('input', () => UpdateResourcePermissionInput) input: UpdateResourcePermissionInput,
|
|
26622
|
+
@Ctx() { dataSource, userPayload }: AppContext,
|
|
26623
|
+
@PubSub() pubSub: PubSubEngine
|
|
26624
|
+
) {
|
|
26625
|
+
return this.UpdateRecord('Resource Permissions', input, dataSource, userPayload, pubSub);
|
|
26626
|
+
}
|
|
26627
|
+
|
|
26628
|
+
@Mutation(() => ResourcePermission_)
|
|
26629
|
+
async DeleteResourcePermission(@Arg('ID', () => String) ID: string, @Arg('options___', () => DeleteOptionsInput) options: DeleteOptionsInput, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
26630
|
+
const key = new CompositeKey([{FieldName: 'ID', Value: ID}]);
|
|
26631
|
+
return this.DeleteRecord('Resource Permissions', key, options, dataSource, userPayload, pubSub);
|
|
26632
|
+
}
|
|
26633
|
+
|
|
26634
|
+
}
|
|
26635
|
+
|
|
26636
|
+
//****************************************************************************
|
|
26637
|
+
// ENTITY CLASS for Resource Links
|
|
26638
|
+
//****************************************************************************
|
|
26639
|
+
@ObjectType({ description: 'Table to track user links to shared resources such as views, dashboards, etc.' })
|
|
26640
|
+
export class ResourceLink_ {
|
|
26641
|
+
@Field({description: 'Unique identifier for each resource link'})
|
|
26642
|
+
@MaxLength(16)
|
|
26643
|
+
ID: string;
|
|
26644
|
+
|
|
26645
|
+
@Field({description: 'Foreign key to the user linking the resource'})
|
|
26646
|
+
@MaxLength(16)
|
|
26647
|
+
UserID: string;
|
|
26648
|
+
|
|
26649
|
+
@Field({description: 'Foreign key to the resource type (view, dashboard, etc.)'})
|
|
26650
|
+
@MaxLength(16)
|
|
26651
|
+
ResourceTypeID: string;
|
|
26652
|
+
|
|
26653
|
+
@Field({description: 'ID of the specific resource being linked'})
|
|
26654
|
+
@MaxLength(510)
|
|
26655
|
+
ResourceRecordID: string;
|
|
26656
|
+
|
|
26657
|
+
@Field({nullable: true, description: 'Optional folder where the user organizes the linked resource'})
|
|
26658
|
+
@MaxLength(510)
|
|
26659
|
+
FolderID?: string;
|
|
26660
|
+
|
|
26661
|
+
@Field()
|
|
26662
|
+
@MaxLength(10)
|
|
26663
|
+
_mj__CreatedAt: Date;
|
|
26664
|
+
|
|
26665
|
+
@Field()
|
|
26666
|
+
@MaxLength(10)
|
|
26667
|
+
_mj__UpdatedAt: Date;
|
|
26668
|
+
|
|
26669
|
+
@Field()
|
|
26670
|
+
@MaxLength(200)
|
|
26671
|
+
User: string;
|
|
26672
|
+
|
|
26673
|
+
@Field()
|
|
26674
|
+
@MaxLength(510)
|
|
26675
|
+
ResourceType: string;
|
|
26676
|
+
|
|
26677
|
+
}
|
|
26678
|
+
|
|
26679
|
+
//****************************************************************************
|
|
26680
|
+
// INPUT TYPE for Resource Links
|
|
26681
|
+
//****************************************************************************
|
|
26682
|
+
@InputType()
|
|
26683
|
+
export class CreateResourceLinkInput {
|
|
26684
|
+
@Field()
|
|
26685
|
+
UserID: string;
|
|
26686
|
+
|
|
26687
|
+
@Field()
|
|
26688
|
+
ResourceTypeID: string;
|
|
26689
|
+
|
|
26690
|
+
@Field()
|
|
26691
|
+
ResourceRecordID: string;
|
|
26692
|
+
|
|
26693
|
+
@Field({ nullable: true })
|
|
26694
|
+
FolderID?: string;
|
|
26695
|
+
}
|
|
26696
|
+
|
|
26697
|
+
|
|
26698
|
+
//****************************************************************************
|
|
26699
|
+
// INPUT TYPE for Resource Links
|
|
26700
|
+
//****************************************************************************
|
|
26701
|
+
@InputType()
|
|
26702
|
+
export class UpdateResourceLinkInput {
|
|
26703
|
+
@Field()
|
|
26704
|
+
ID: string;
|
|
26705
|
+
|
|
26706
|
+
@Field()
|
|
26707
|
+
UserID: string;
|
|
26708
|
+
|
|
26709
|
+
@Field()
|
|
26710
|
+
ResourceTypeID: string;
|
|
26711
|
+
|
|
26712
|
+
@Field()
|
|
26713
|
+
ResourceRecordID: string;
|
|
26714
|
+
|
|
26715
|
+
@Field({ nullable: true })
|
|
26716
|
+
FolderID?: string;
|
|
26717
|
+
|
|
26718
|
+
@Field(() => [KeyValuePairInput], { nullable: true })
|
|
26719
|
+
OldValues___?: KeyValuePairInput[];
|
|
26720
|
+
}
|
|
26721
|
+
|
|
26722
|
+
//****************************************************************************
|
|
26723
|
+
// RESOLVER for Resource Links
|
|
26724
|
+
//****************************************************************************
|
|
26725
|
+
@ObjectType()
|
|
26726
|
+
export class RunResourceLinkViewResult {
|
|
26727
|
+
@Field(() => [ResourceLink_])
|
|
26728
|
+
Results: ResourceLink_[];
|
|
26729
|
+
|
|
26730
|
+
@Field(() => String, {nullable: true})
|
|
26731
|
+
UserViewRunID?: string;
|
|
26732
|
+
|
|
26733
|
+
@Field(() => Int, {nullable: true})
|
|
26734
|
+
RowCount: number;
|
|
26735
|
+
|
|
26736
|
+
@Field(() => Int, {nullable: true})
|
|
26737
|
+
TotalRowCount: number;
|
|
26738
|
+
|
|
26739
|
+
@Field(() => Int, {nullable: true})
|
|
26740
|
+
ExecutionTime: number;
|
|
26741
|
+
|
|
26742
|
+
@Field({nullable: true})
|
|
26743
|
+
ErrorMessage?: string;
|
|
26744
|
+
|
|
26745
|
+
@Field(() => Boolean, {nullable: false})
|
|
26746
|
+
Success: boolean;
|
|
26747
|
+
}
|
|
26748
|
+
|
|
26749
|
+
@Resolver(ResourceLink_)
|
|
26750
|
+
export class ResourceLinkResolver extends ResolverBase {
|
|
26751
|
+
@Query(() => RunResourceLinkViewResult)
|
|
26752
|
+
async RunResourceLinkViewByID(@Arg('input', () => RunViewByIDInput) input: RunViewByIDInput, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
26753
|
+
return super.RunViewByIDGeneric(input, dataSource, userPayload, pubSub);
|
|
26754
|
+
}
|
|
26755
|
+
|
|
26756
|
+
@Query(() => RunResourceLinkViewResult)
|
|
26757
|
+
async RunResourceLinkViewByName(@Arg('input', () => RunViewByNameInput) input: RunViewByNameInput, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
26758
|
+
return super.RunViewByNameGeneric(input, dataSource, userPayload, pubSub);
|
|
26759
|
+
}
|
|
26760
|
+
|
|
26761
|
+
@Query(() => RunResourceLinkViewResult)
|
|
26762
|
+
async RunResourceLinkDynamicView(@Arg('input', () => RunDynamicViewInput) input: RunDynamicViewInput, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
26763
|
+
input.EntityName = 'Resource Links';
|
|
26764
|
+
return super.RunDynamicViewGeneric(input, dataSource, userPayload, pubSub);
|
|
26765
|
+
}
|
|
26766
|
+
@Query(() => ResourceLink_, { nullable: true })
|
|
26767
|
+
async ResourceLink(@Arg('ID', () => String) ID: string, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine): Promise<ResourceLink_ | null> {
|
|
26768
|
+
this.CheckUserReadPermissions('Resource Links', userPayload);
|
|
26769
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwResourceLinks] WHERE [ID]='${ID}' ` + this.getRowLevelSecurityWhereClause('Resource Links', userPayload, EntityPermissionType.Read, 'AND');
|
|
26770
|
+
const result = this.MapFieldNamesToCodeNames('Resource Links', await dataSource.query(sSQL).then((r) => r && r.length > 0 ? r[0] : {}))
|
|
26771
|
+
return result;
|
|
26772
|
+
}
|
|
26773
|
+
|
|
26774
|
+
@Mutation(() => ResourceLink_)
|
|
26775
|
+
async CreateResourceLink(
|
|
26776
|
+
@Arg('input', () => CreateResourceLinkInput) input: CreateResourceLinkInput,
|
|
26777
|
+
@Ctx() { dataSource, userPayload }: AppContext,
|
|
26778
|
+
@PubSub() pubSub: PubSubEngine
|
|
26779
|
+
) {
|
|
26780
|
+
return this.CreateRecord('Resource Links', input, dataSource, userPayload, pubSub)
|
|
26781
|
+
}
|
|
26782
|
+
|
|
26783
|
+
@Mutation(() => ResourceLink_)
|
|
26784
|
+
async UpdateResourceLink(
|
|
26785
|
+
@Arg('input', () => UpdateResourceLinkInput) input: UpdateResourceLinkInput,
|
|
26786
|
+
@Ctx() { dataSource, userPayload }: AppContext,
|
|
26787
|
+
@PubSub() pubSub: PubSubEngine
|
|
26788
|
+
) {
|
|
26789
|
+
return this.UpdateRecord('Resource Links', input, dataSource, userPayload, pubSub);
|
|
26790
|
+
}
|
|
26791
|
+
|
|
26792
|
+
@Mutation(() => ResourceLink_)
|
|
26793
|
+
async DeleteResourceLink(@Arg('ID', () => String) ID: string, @Arg('options___', () => DeleteOptionsInput) options: DeleteOptionsInput, @Ctx() { dataSource, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
26794
|
+
const key = new CompositeKey([{FieldName: 'ID', Value: ID}]);
|
|
26795
|
+
return this.DeleteRecord('Resource Links', key, options, dataSource, userPayload, pubSub);
|
|
26796
|
+
}
|
|
26797
|
+
|
|
26798
|
+
}
|
|
26799
|
+
|
|
26352
26800
|
//****************************************************************************
|
|
26353
26801
|
// ENTITY CLASS for Content Process Runs
|
|
26354
26802
|
//****************************************************************************
|