@memberjunction/server 5.10.1 → 5.12.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/agents/skip-sdk.d.ts.map +1 -1
- package/dist/agents/skip-sdk.js +1 -0
- package/dist/agents/skip-sdk.js.map +1 -1
- package/dist/generated/generated.d.ts +220 -0
- package/dist/generated/generated.d.ts.map +1 -1
- package/dist/generated/generated.js +1516 -285
- package/dist/generated/generated.js.map +1 -1
- package/dist/generic/ResolverBase.js +3 -3
- package/dist/generic/ResolverBase.js.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +29 -2
- package/dist/index.js.map +1 -1
- package/dist/resolvers/AdhocQueryResolver.d.ts.map +1 -1
- package/dist/resolvers/AdhocQueryResolver.js +8 -0
- package/dist/resolvers/AdhocQueryResolver.js.map +1 -1
- package/dist/resolvers/CreateQueryResolver.d.ts +2 -0
- package/dist/resolvers/CreateQueryResolver.d.ts.map +1 -1
- package/dist/resolvers/CreateQueryResolver.js +11 -0
- package/dist/resolvers/CreateQueryResolver.js.map +1 -1
- package/dist/resolvers/GetDataResolver.d.ts.map +1 -1
- package/dist/resolvers/GetDataResolver.js +16 -2
- package/dist/resolvers/GetDataResolver.js.map +1 -1
- package/dist/resolvers/QueryResolver.d.ts +2 -0
- package/dist/resolvers/QueryResolver.d.ts.map +1 -1
- package/dist/resolvers/QueryResolver.js +20 -0
- package/dist/resolvers/QueryResolver.js.map +1 -1
- package/dist/resolvers/RunAIAgentResolver.d.ts +24 -0
- package/dist/resolvers/RunAIAgentResolver.d.ts.map +1 -1
- package/dist/resolvers/RunAIAgentResolver.js +264 -1
- package/dist/resolvers/RunAIAgentResolver.js.map +1 -1
- package/package.json +59 -59
- package/src/agents/skip-sdk.ts +1 -0
- package/src/generated/generated.ts +1135 -286
- package/src/generic/ResolverBase.ts +3 -3
- package/src/index.ts +31 -2
- package/src/resolvers/AdhocQueryResolver.ts +8 -0
- package/src/resolvers/CreateQueryResolver.ts +9 -0
- package/src/resolvers/GetDataResolver.ts +18 -2
- package/src/resolvers/QueryResolver.ts +18 -0
- package/src/resolvers/RunAIAgentResolver.ts +301 -2
|
@@ -18,7 +18,7 @@ import { mj_core_schema } from '../config.js';
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
import { MJAccessControlRuleEntity, MJActionAuthorizationEntity, MJActionCategoryEntity, MJActionContextTypeEntity, MJActionContextEntity, MJActionExecutionLogEntity, MJActionFilterEntity, MJActionLibraryEntity, MJActionParamEntity, MJActionResultCodeEntity, MJActionEntity, MJAIActionEntity, MJAIAgentActionEntity, MJAIAgentArtifactTypeEntity, MJAIAgentConfigurationEntity, MJAIAgentDataSourceEntity, MJAIAgentExampleEntity, MJAIAgentLearningCycleEntity, MJAIAgentModalityEntity, MJAIAgentModelEntity, MJAIAgentNoteTypeEntity, MJAIAgentNoteEntity, MJAIAgentPermissionEntity, MJAIAgentPromptEntity, MJAIAgentRelationshipEntity, MJAIAgentRequestEntity, MJAIAgentRunMediaEntity, MJAIAgentRunStepEntity, MJAIAgentRunEntity, MJAIAgentStepPathEntity, MJAIAgentStepEntity, MJAIAgentTypeEntity, MJAIAgentEntity, MJAIArchitectureEntity, MJAIConfigurationParamEntity, MJAIConfigurationEntity, MJAICredentialBindingEntity, MJAIModalityEntity, MJAIModelActionEntity, MJAIModelArchitectureEntity, MJAIModelCostEntity, MJAIModelModalityEntity, MJAIModelPriceTypeEntity, MJAIModelPriceUnitTypeEntity, MJAIModelTypeEntity, MJAIModelVendorEntity, MJAIModelEntity, MJAIPromptCategoryEntity, MJAIPromptModelEntity, MJAIPromptRunMediaEntity, MJAIPromptRunEntity, MJAIPromptTypeEntity, MJAIPromptEntity, MJAIResultCacheEntity, MJAIVendorTypeDefinitionEntity, MJAIVendorTypeEntity, MJAIVendorEntity, MJAPIApplicationScopeEntity, MJAPIApplicationEntity, MJAPIKeyApplicationEntity, MJAPIKeyScopeEntity, MJAPIKeyUsageLogEntity, MJAPIKeyEntity, MJAPIScopeEntity, MJApplicationEntityEntity, MJApplicationSettingEntity, MJApplicationEntity, MJArtifactPermissionEntity, MJArtifactTypeEntity, MJArtifactUseEntity, MJArtifactVersionAttributeEntity, MJArtifactVersionEntity, MJArtifactEntity, MJAuditLogTypeEntity, MJAuditLogEntity, MJAuthorizationRoleEntity, MJAuthorizationEntity, MJCollectionArtifactEntity, MJCollectionPermissionEntity, MJCollectionEntity, MJCommunicationBaseMessageTypeEntity, MJCommunicationLogEntity, MJCommunicationProviderMessageTypeEntity, MJCommunicationProviderEntity, MJCommunicationRunEntity, MJCompanyEntity, MJCompanyIntegrationEntityMapEntity, MJCompanyIntegrationFieldMapEntity, MJCompanyIntegrationRecordMapEntity, MJCompanyIntegrationRunAPILogEntity, MJCompanyIntegrationRunDetailEntity, MJCompanyIntegrationRunEntity, MJCompanyIntegrationSyncWatermarkEntity, MJCompanyIntegrationEntity, MJComponentDependencyEntity, MJComponentLibraryEntity, MJComponentLibraryLinkEntity, MJComponentRegistryEntity, MJComponentEntity, MJContentFileTypeEntity, MJContentItemAttributeEntity, MJContentItemTagEntity, MJContentItemEntity, MJContentProcessRunEntity, MJContentSourceParamEntity, MJContentSourceTypeParamEntity, MJContentSourceTypeEntity, MJContentSourceEntity, MJContentTypeAttributeEntity, MJContentTypeEntity, MJConversationArtifactPermissionEntity, MJConversationArtifactVersionEntity, MJConversationArtifactEntity, MJConversationDetailArtifactEntity, MJConversationDetailAttachmentEntity, MJConversationDetailRatingEntity, MJConversationDetailEntity, MJConversationEntity, MJCredentialCategoryEntity, MJCredentialTypeEntity, MJCredentialEntity, MJDashboardCategoryEntity, MJDashboardCategoryLinkEntity, MJDashboardCategoryPermissionEntity, MJDashboardPartTypeEntity, MJDashboardPermissionEntity, MJDashboardUserPreferenceEntity, MJDashboardUserStateEntity, MJDashboardEntity, MJDataContextItemEntity, MJDataContextEntity, MJDatasetItemEntity, MJDatasetEntity, MJDuplicateRunDetailMatchEntity, MJDuplicateRunDetailEntity, MJDuplicateRunEntity, MJEmployeeCompanyIntegrationEntity, MJEmployeeRoleEntity, MJEmployeeSkillEntity, MJEmployeeEntity, MJEncryptionAlgorithmEntity, MJEncryptionKeySourceEntity, MJEncryptionKeyEntity, MJEntityEntity, MJEntityActionFilterEntity, MJEntityActionInvocationTypeEntity, MJEntityActionInvocationEntity, MJEntityActionParamEntity, MJEntityActionEntity, MJEntityAIActionEntity, MJEntityCommunicationFieldEntity, MJEntityCommunicationMessageTypeEntity, MJEntityDocumentRunEntity, MJEntityDocumentSettingEntity, MJEntityDocumentTypeEntity, MJEntityDocumentEntity, MJEntityFieldValueEntity, MJEntityFieldEntity, MJEntityPermissionEntity, MJEntityRecordDocumentEntity, MJEntityRelationshipDisplayComponentEntity, MJEntityRelationshipEntity, MJEntitySettingEntity, MJEnvironmentEntity, MJErrorLogEntity, MJExplorerNavigationItemEntity, MJFileCategoryEntity, MJFileEntityRecordLinkEntity, MJFileStorageAccountEntity, MJFileStorageProviderEntity, MJFileEntity, MJGeneratedCodeCategoryEntity, MJGeneratedCodeEntity, MJIntegrationObjectFieldEntity, MJIntegrationObjectEntity, MJIntegrationSourceTypeEntity, MJIntegrationURLFormatEntity, MJIntegrationEntity, MJLibraryEntity, MJLibraryItemEntity, MJListCategoryEntity, MJListDetailEntity, MJListInvitationEntity, MJListShareEntity, MJListEntity, MJMCPServerConnectionPermissionEntity, MJMCPServerConnectionToolEntity, MJMCPServerConnectionEntity, MJMCPServerToolEntity, MJMCPServerEntity, MJMCPToolExecutionLogEntity, MJOAuthAuthServerMetadataCacheEntity, MJOAuthAuthorizationStateEntity, MJOAuthClientRegistrationEntity, MJOAuthTokenEntity, MJOpenAppDependencyEntity, MJOpenAppInstallHistoryEntity, MJOpenAppEntity, MJOutputDeliveryTypeEntity, MJOutputFormatTypeEntity, MJOutputTriggerTypeEntity, MJProjectEntity, MJPublicLinkEntity, MJQueryEntity, MJQueryCategoryEntity, MJQueryEntityEntity, MJQueryFieldEntity, MJQueryParameterEntity, MJQueryPermissionEntity, MJQuerySQLEntity, MJQueueTaskEntity, MJQueueTypeEntity, MJQueueEntity, MJRecommendationItemEntity, MJRecommendationProviderEntity, MJRecommendationRunEntity, MJRecommendationEntity, MJRecordChangeReplayRunEntity, MJRecordChangeEntity, MJRecordLinkEntity, MJRecordMergeDeletionLogEntity, MJRecordMergeLogEntity, MJReportCategoryEntity, MJReportSnapshotEntity, MJReportUserStateEntity, MJReportVersionEntity, MJReportEntity, MJResourceLinkEntity, MJResourcePermissionEntity, MJResourceTypeEntity, MJRoleEntity, MJRowLevelSecurityFilterEntity, MJScheduledActionParamEntity, MJScheduledActionEntity, MJScheduledJobRunEntity, MJScheduledJobTypeEntity, MJScheduledJobEntity, MJSchemaInfoEntity, MJSkillEntity, MJSQLDialectEntity, MJTaggedItemEntity, MJTagEntity, MJTaskDependencyEntity, MJTaskTypeEntity, MJTaskEntity, MJTemplateCategoryEntity, MJTemplateContentTypeEntity, MJTemplateContentEntity, MJTemplateParamEntity, MJTemplateEntity, MJTestRubricEntity, MJTestRunFeedbackEntity, MJTestRunOutputTypeEntity, MJTestRunOutputEntity, MJTestRunEntity, MJTestSuiteRunEntity, MJTestSuiteTestEntity, MJTestSuiteEntity, MJTestTypeEntity, MJTestEntity, MJUserApplicationEntityEntity, MJUserApplicationEntity, MJUserFavoriteEntity, MJUserNotificationPreferenceEntity, MJUserNotificationTypeEntity, MJUserNotificationEntity, MJUserRecordLogEntity, MJUserRoleEntity, MJUserSettingEntity, MJUserViewCategoryEntity, MJUserViewRunDetailEntity, MJUserViewRunEntity, MJUserViewEntity, MJUserEntity, MJVectorDatabaseEntity, MJVectorIndexEntity, MJVersionInstallationEntity, MJVersionLabelItemEntity, MJVersionLabelRestoreEntity, MJVersionLabelEntity, MJWorkflowEngineEntity, MJWorkflowRunEntity, MJWorkflowEntity, MJWorkspaceItemEntity, MJWorkspaceEntity } from '@memberjunction/core-entities';
|
|
21
|
+
import { MJAccessControlRuleEntity, MJActionAuthorizationEntity, MJActionCategoryEntity, MJActionContextTypeEntity, MJActionContextEntity, MJActionExecutionLogEntity, MJActionFilterEntity, MJActionLibraryEntity, MJActionParamEntity, MJActionResultCodeEntity, MJActionEntity, MJAIActionEntity, MJAIAgentActionEntity, MJAIAgentArtifactTypeEntity, MJAIAgentCategoryEntity, MJAIAgentConfigurationEntity, MJAIAgentDataSourceEntity, MJAIAgentExampleEntity, MJAIAgentLearningCycleEntity, MJAIAgentModalityEntity, MJAIAgentModelEntity, MJAIAgentNoteTypeEntity, MJAIAgentNoteEntity, MJAIAgentPermissionEntity, MJAIAgentPromptEntity, MJAIAgentRelationshipEntity, MJAIAgentRequestTypeEntity, MJAIAgentRequestEntity, MJAIAgentRunMediaEntity, MJAIAgentRunStepEntity, MJAIAgentRunEntity, MJAIAgentStepPathEntity, MJAIAgentStepEntity, MJAIAgentTypeEntity, MJAIAgentEntity, MJAIArchitectureEntity, MJAIConfigurationParamEntity, MJAIConfigurationEntity, MJAICredentialBindingEntity, MJAIModalityEntity, MJAIModelActionEntity, MJAIModelArchitectureEntity, MJAIModelCostEntity, MJAIModelModalityEntity, MJAIModelPriceTypeEntity, MJAIModelPriceUnitTypeEntity, MJAIModelTypeEntity, MJAIModelVendorEntity, MJAIModelEntity, MJAIPromptCategoryEntity, MJAIPromptModelEntity, MJAIPromptRunMediaEntity, MJAIPromptRunEntity, MJAIPromptTypeEntity, MJAIPromptEntity, MJAIResultCacheEntity, MJAIVendorTypeDefinitionEntity, MJAIVendorTypeEntity, MJAIVendorEntity, MJAPIApplicationScopeEntity, MJAPIApplicationEntity, MJAPIKeyApplicationEntity, MJAPIKeyScopeEntity, MJAPIKeyUsageLogEntity, MJAPIKeyEntity, MJAPIScopeEntity, MJApplicationEntityEntity, MJApplicationSettingEntity, MJApplicationEntity, MJArtifactPermissionEntity, MJArtifactTypeEntity, MJArtifactUseEntity, MJArtifactVersionAttributeEntity, MJArtifactVersionEntity, MJArtifactEntity, MJAuditLogTypeEntity, MJAuditLogEntity, MJAuthorizationRoleEntity, MJAuthorizationEntity, MJCollectionArtifactEntity, MJCollectionPermissionEntity, MJCollectionEntity, MJCommunicationBaseMessageTypeEntity, MJCommunicationLogEntity, MJCommunicationProviderMessageTypeEntity, MJCommunicationProviderEntity, MJCommunicationRunEntity, MJCompanyEntity, MJCompanyIntegrationEntityMapEntity, MJCompanyIntegrationFieldMapEntity, MJCompanyIntegrationRecordMapEntity, MJCompanyIntegrationRunAPILogEntity, MJCompanyIntegrationRunDetailEntity, MJCompanyIntegrationRunEntity, MJCompanyIntegrationSyncWatermarkEntity, MJCompanyIntegrationEntity, MJComponentDependencyEntity, MJComponentLibraryEntity, MJComponentLibraryLinkEntity, MJComponentRegistryEntity, MJComponentEntity, MJContentFileTypeEntity, MJContentItemAttributeEntity, MJContentItemTagEntity, MJContentItemEntity, MJContentProcessRunEntity, MJContentSourceParamEntity, MJContentSourceTypeParamEntity, MJContentSourceTypeEntity, MJContentSourceEntity, MJContentTypeAttributeEntity, MJContentTypeEntity, MJConversationArtifactPermissionEntity, MJConversationArtifactVersionEntity, MJConversationArtifactEntity, MJConversationDetailArtifactEntity, MJConversationDetailAttachmentEntity, MJConversationDetailRatingEntity, MJConversationDetailEntity, MJConversationEntity, MJCredentialCategoryEntity, MJCredentialTypeEntity, MJCredentialEntity, MJDashboardCategoryEntity, MJDashboardCategoryLinkEntity, MJDashboardCategoryPermissionEntity, MJDashboardPartTypeEntity, MJDashboardPermissionEntity, MJDashboardUserPreferenceEntity, MJDashboardUserStateEntity, MJDashboardEntity, MJDataContextItemEntity, MJDataContextEntity, MJDatasetItemEntity, MJDatasetEntity, MJDuplicateRunDetailMatchEntity, MJDuplicateRunDetailEntity, MJDuplicateRunEntity, MJEmployeeCompanyIntegrationEntity, MJEmployeeRoleEntity, MJEmployeeSkillEntity, MJEmployeeEntity, MJEncryptionAlgorithmEntity, MJEncryptionKeySourceEntity, MJEncryptionKeyEntity, MJEntityEntity, MJEntityActionFilterEntity, MJEntityActionInvocationTypeEntity, MJEntityActionInvocationEntity, MJEntityActionParamEntity, MJEntityActionEntity, MJEntityAIActionEntity, MJEntityCommunicationFieldEntity, MJEntityCommunicationMessageTypeEntity, MJEntityDocumentRunEntity, MJEntityDocumentSettingEntity, MJEntityDocumentTypeEntity, MJEntityDocumentEntity, MJEntityFieldValueEntity, MJEntityFieldEntity, MJEntityPermissionEntity, MJEntityRecordDocumentEntity, MJEntityRelationshipDisplayComponentEntity, MJEntityRelationshipEntity, MJEntitySettingEntity, MJEnvironmentEntity, MJErrorLogEntity, MJExplorerNavigationItemEntity, MJFileCategoryEntity, MJFileEntityRecordLinkEntity, MJFileStorageAccountEntity, MJFileStorageProviderEntity, MJFileEntity, MJGeneratedCodeCategoryEntity, MJGeneratedCodeEntity, MJIntegrationObjectFieldEntity, MJIntegrationObjectEntity, MJIntegrationSourceTypeEntity, MJIntegrationURLFormatEntity, MJIntegrationEntity, MJLibraryEntity, MJLibraryItemEntity, MJListCategoryEntity, MJListDetailEntity, MJListInvitationEntity, MJListShareEntity, MJListEntity, MJMCPServerConnectionPermissionEntity, MJMCPServerConnectionToolEntity, MJMCPServerConnectionEntity, MJMCPServerToolEntity, MJMCPServerEntity, MJMCPToolExecutionLogEntity, MJOAuthAuthServerMetadataCacheEntity, MJOAuthAuthorizationStateEntity, MJOAuthClientRegistrationEntity, MJOAuthTokenEntity, MJOpenAppDependencyEntity, MJOpenAppInstallHistoryEntity, MJOpenAppEntity, MJOutputDeliveryTypeEntity, MJOutputFormatTypeEntity, MJOutputTriggerTypeEntity, MJProjectEntity, MJPublicLinkEntity, MJQueryEntity, MJQueryCategoryEntity, MJQueryDependencyEntity, MJQueryEntityEntity, MJQueryFieldEntity, MJQueryParameterEntity, MJQueryPermissionEntity, MJQuerySQLEntity, MJQueueTaskEntity, MJQueueTypeEntity, MJQueueEntity, MJRecommendationItemEntity, MJRecommendationProviderEntity, MJRecommendationRunEntity, MJRecommendationEntity, MJRecordChangeReplayRunEntity, MJRecordChangeEntity, MJRecordLinkEntity, MJRecordMergeDeletionLogEntity, MJRecordMergeLogEntity, MJReportCategoryEntity, MJReportSnapshotEntity, MJReportUserStateEntity, MJReportVersionEntity, MJReportEntity, MJResourceLinkEntity, MJResourcePermissionEntity, MJResourceTypeEntity, MJRoleEntity, MJRowLevelSecurityFilterEntity, MJScheduledActionParamEntity, MJScheduledActionEntity, MJScheduledJobRunEntity, MJScheduledJobTypeEntity, MJScheduledJobEntity, MJSchemaInfoEntity, MJSkillEntity, MJSQLDialectEntity, MJTaggedItemEntity, MJTagEntity, MJTaskDependencyEntity, MJTaskTypeEntity, MJTaskEntity, MJTemplateCategoryEntity, MJTemplateContentTypeEntity, MJTemplateContentEntity, MJTemplateParamEntity, MJTemplateEntity, MJTestRubricEntity, MJTestRunFeedbackEntity, MJTestRunOutputTypeEntity, MJTestRunOutputEntity, MJTestRunEntity, MJTestSuiteRunEntity, MJTestSuiteTestEntity, MJTestSuiteEntity, MJTestTypeEntity, MJTestEntity, MJUserApplicationEntityEntity, MJUserApplicationEntity, MJUserFavoriteEntity, MJUserNotificationPreferenceEntity, MJUserNotificationTypeEntity, MJUserNotificationEntity, MJUserRecordLogEntity, MJUserRoleEntity, MJUserSettingEntity, MJUserViewCategoryEntity, MJUserViewRunDetailEntity, MJUserViewRunEntity, MJUserViewEntity, MJUserEntity, MJVectorDatabaseEntity, MJVectorIndexEntity, MJVersionInstallationEntity, MJVersionLabelItemEntity, MJVersionLabelRestoreEntity, MJVersionLabelEntity, MJWorkflowEngineEntity, MJWorkflowRunEntity, MJWorkflowEntity, MJWorkspaceItemEntity, MJWorkspaceEntity } from '@memberjunction/core-entities';
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
//****************************************************************************
|
|
@@ -225,7 +225,7 @@ export class MJAccessControlRuleResolver extends ResolverBase {
|
|
|
225
225
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
226
226
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAccessControlRules')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Access Control Rules', userPayload, EntityPermissionType.Read, 'AND');
|
|
227
227
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
228
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Access Control Rules', rows && rows.length > 0 ? rows[0] :
|
|
228
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Access Control Rules', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
229
229
|
return result;
|
|
230
230
|
}
|
|
231
231
|
|
|
@@ -387,7 +387,7 @@ export class MJActionAuthorizationResolver extends ResolverBase {
|
|
|
387
387
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
388
388
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwActionAuthorizations')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Action Authorizations', userPayload, EntityPermissionType.Read, 'AND');
|
|
389
389
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
390
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Action Authorizations', rows && rows.length > 0 ? rows[0] :
|
|
390
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Action Authorizations', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
391
391
|
return result;
|
|
392
392
|
}
|
|
393
393
|
|
|
@@ -568,7 +568,7 @@ export class MJActionCategoryResolver extends ResolverBase {
|
|
|
568
568
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
569
569
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwActionCategories')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Action Categories', userPayload, EntityPermissionType.Read, 'AND');
|
|
570
570
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
571
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Action Categories', rows && rows.length > 0 ? rows[0] :
|
|
571
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Action Categories', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
572
572
|
return result;
|
|
573
573
|
}
|
|
574
574
|
|
|
@@ -745,7 +745,7 @@ export class MJActionContextTypeResolver extends ResolverBase {
|
|
|
745
745
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
746
746
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwActionContextTypes')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Action Context Types', userPayload, EntityPermissionType.Read, 'AND');
|
|
747
747
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
748
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Action Context Types', rows && rows.length > 0 ? rows[0] :
|
|
748
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Action Context Types', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
749
749
|
return result;
|
|
750
750
|
}
|
|
751
751
|
|
|
@@ -918,7 +918,7 @@ export class MJActionContextResolver extends ResolverBase {
|
|
|
918
918
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
919
919
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwActionContexts')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Action Contexts', userPayload, EntityPermissionType.Read, 'AND');
|
|
920
920
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
921
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Action Contexts', rows && rows.length > 0 ? rows[0] :
|
|
921
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Action Contexts', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
922
922
|
return result;
|
|
923
923
|
}
|
|
924
924
|
|
|
@@ -1126,7 +1126,7 @@ export class MJActionExecutionLogResolver extends ResolverBase {
|
|
|
1126
1126
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
1127
1127
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwActionExecutionLogs')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Action Execution Logs', userPayload, EntityPermissionType.Read, 'AND');
|
|
1128
1128
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
1129
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Action Execution Logs', rows && rows.length > 0 ? rows[0] :
|
|
1129
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Action Execution Logs', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
1130
1130
|
return result;
|
|
1131
1131
|
}
|
|
1132
1132
|
|
|
@@ -1290,7 +1290,7 @@ export class MJActionFilterResolver extends ResolverBase {
|
|
|
1290
1290
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
1291
1291
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwActionFilters')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Action Filters', userPayload, EntityPermissionType.Read, 'AND');
|
|
1292
1292
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
1293
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Action Filters', rows && rows.length > 0 ? rows[0] :
|
|
1293
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Action Filters', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
1294
1294
|
return result;
|
|
1295
1295
|
}
|
|
1296
1296
|
|
|
@@ -1462,7 +1462,7 @@ export class MJActionLibraryResolver extends ResolverBase {
|
|
|
1462
1462
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
1463
1463
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwActionLibraries')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Action Libraries', userPayload, EntityPermissionType.Read, 'AND');
|
|
1464
1464
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
1465
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Action Libraries', rows && rows.length > 0 ? rows[0] :
|
|
1465
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Action Libraries', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
1466
1466
|
return result;
|
|
1467
1467
|
}
|
|
1468
1468
|
|
|
@@ -1683,7 +1683,7 @@ export class MJActionParamResolver extends ResolverBase {
|
|
|
1683
1683
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
1684
1684
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwActionParams')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Action Params', userPayload, EntityPermissionType.Read, 'AND');
|
|
1685
1685
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
1686
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Action Params', rows && rows.length > 0 ? rows[0] :
|
|
1686
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Action Params', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
1687
1687
|
return result;
|
|
1688
1688
|
}
|
|
1689
1689
|
|
|
@@ -1870,7 +1870,7 @@ export class MJActionResultCodeResolver extends ResolverBase {
|
|
|
1870
1870
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
1871
1871
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwActionResultCodes')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Action Result Codes', userPayload, EntityPermissionType.Read, 'AND');
|
|
1872
1872
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
1873
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Action Result Codes', rows && rows.length > 0 ? rows[0] :
|
|
1873
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Action Result Codes', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
1874
1874
|
return result;
|
|
1875
1875
|
}
|
|
1876
1876
|
|
|
@@ -1988,6 +1988,9 @@ export class MJAction_ {
|
|
|
1988
1988
|
@MaxLength(36)
|
|
1989
1989
|
DefaultCompactPromptID?: string;
|
|
1990
1990
|
|
|
1991
|
+
@Field({nullable: true, description: `Optional JSON configuration for the action. For integration actions, contains routing info: integrationName, objectName, verb, and optional connectorConfig. Non-integration actions leave this NULL.`})
|
|
1992
|
+
Config?: string;
|
|
1993
|
+
|
|
1991
1994
|
@Field({nullable: true})
|
|
1992
1995
|
@MaxLength(255)
|
|
1993
1996
|
Category?: string;
|
|
@@ -2113,6 +2116,9 @@ export class CreateMJActionInput {
|
|
|
2113
2116
|
|
|
2114
2117
|
@Field({ nullable: true })
|
|
2115
2118
|
DefaultCompactPromptID: string | null;
|
|
2119
|
+
|
|
2120
|
+
@Field({ nullable: true })
|
|
2121
|
+
Config: string | null;
|
|
2116
2122
|
}
|
|
2117
2123
|
|
|
2118
2124
|
|
|
@@ -2184,6 +2190,9 @@ export class UpdateMJActionInput {
|
|
|
2184
2190
|
@Field({ nullable: true })
|
|
2185
2191
|
DefaultCompactPromptID?: string | null;
|
|
2186
2192
|
|
|
2193
|
+
@Field({ nullable: true })
|
|
2194
|
+
Config?: string | null;
|
|
2195
|
+
|
|
2187
2196
|
@Field(() => [KeyValuePairInput], { nullable: true })
|
|
2188
2197
|
OldValues___?: KeyValuePairInput[];
|
|
2189
2198
|
}
|
|
@@ -2241,7 +2250,7 @@ export class MJActionResolver extends ResolverBase {
|
|
|
2241
2250
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
2242
2251
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwActions')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Actions', userPayload, EntityPermissionType.Read, 'AND');
|
|
2243
2252
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
2244
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Actions', rows && rows.length > 0 ? rows[0] :
|
|
2253
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Actions', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
2245
2254
|
return result;
|
|
2246
2255
|
}
|
|
2247
2256
|
|
|
@@ -2543,7 +2552,7 @@ export class MJAIActionResolver extends ResolverBase {
|
|
|
2543
2552
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
2544
2553
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIActions')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Actions', userPayload, EntityPermissionType.Read, 'AND');
|
|
2545
2554
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
2546
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: AI Actions', rows && rows.length > 0 ? rows[0] :
|
|
2555
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Actions', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
2547
2556
|
return result;
|
|
2548
2557
|
}
|
|
2549
2558
|
|
|
@@ -2806,7 +2815,7 @@ export class MJAIAgentActionResolver extends ResolverBase {
|
|
|
2806
2815
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
2807
2816
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIAgentActions')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Agent Actions', userPayload, EntityPermissionType.Read, 'AND');
|
|
2808
2817
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
2809
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: AI Agent Actions', rows && rows.length > 0 ? rows[0] :
|
|
2818
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Agent Actions', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
2810
2819
|
return result;
|
|
2811
2820
|
}
|
|
2812
2821
|
|
|
@@ -2968,7 +2977,7 @@ export class MJAIAgentArtifactTypeResolver extends ResolverBase {
|
|
|
2968
2977
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
2969
2978
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIAgentArtifactTypes')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Agent Artifact Types', userPayload, EntityPermissionType.Read, 'AND');
|
|
2970
2979
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
2971
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: AI Agent Artifact Types', rows && rows.length > 0 ? rows[0] :
|
|
2980
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Agent Artifact Types', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
2972
2981
|
return result;
|
|
2973
2982
|
}
|
|
2974
2983
|
|
|
@@ -3001,6 +3010,213 @@ export class MJAIAgentArtifactTypeResolver extends ResolverBase {
|
|
|
3001
3010
|
|
|
3002
3011
|
}
|
|
3003
3012
|
|
|
3013
|
+
//****************************************************************************
|
|
3014
|
+
// ENTITY CLASS for MJ: AI Agent Categories
|
|
3015
|
+
//****************************************************************************
|
|
3016
|
+
@ObjectType({ description: `Hierarchical organizational grouping for AI agents. Categories form a tree via the ParentID self-referencing foreign key and can carry inherited assignment strategies.` })
|
|
3017
|
+
export class MJAIAgentCategory_ {
|
|
3018
|
+
@Field({description: `Primary key for the AIAgentCategory record.`})
|
|
3019
|
+
@MaxLength(36)
|
|
3020
|
+
ID: string;
|
|
3021
|
+
|
|
3022
|
+
@Field({description: `Unique display name for the category (e.g., Research, Customer Support, Data Processing).`})
|
|
3023
|
+
@MaxLength(200)
|
|
3024
|
+
Name: string;
|
|
3025
|
+
|
|
3026
|
+
@Field({nullable: true, description: `Optional description explaining the purpose and scope of this category.`})
|
|
3027
|
+
Description?: string;
|
|
3028
|
+
|
|
3029
|
+
@Field({nullable: true, description: `Self-referencing foreign key to the parent category, forming a tree hierarchy. NULL for root categories.`})
|
|
3030
|
+
@MaxLength(36)
|
|
3031
|
+
ParentID?: string;
|
|
3032
|
+
|
|
3033
|
+
@Field({nullable: true, description: `JSON-serialized AgentRequestAssignmentStrategy defining who receives feedback requests for agents in this category. Inherited by child categories that do not define their own strategy.`})
|
|
3034
|
+
AssignmentStrategy?: string;
|
|
3035
|
+
|
|
3036
|
+
@Field({description: `Whether this category is Active, Disabled, or Pending.`})
|
|
3037
|
+
@MaxLength(20)
|
|
3038
|
+
Status: string;
|
|
3039
|
+
|
|
3040
|
+
@Field()
|
|
3041
|
+
_mj__CreatedAt: Date;
|
|
3042
|
+
|
|
3043
|
+
@Field()
|
|
3044
|
+
_mj__UpdatedAt: Date;
|
|
3045
|
+
|
|
3046
|
+
@Field({nullable: true})
|
|
3047
|
+
@MaxLength(200)
|
|
3048
|
+
Parent?: string;
|
|
3049
|
+
|
|
3050
|
+
@Field({nullable: true})
|
|
3051
|
+
@MaxLength(36)
|
|
3052
|
+
RootParentID?: string;
|
|
3053
|
+
|
|
3054
|
+
@Field(() => [MJAIAgentCategory_])
|
|
3055
|
+
MJAIAgentCategories_ParentIDArray: MJAIAgentCategory_[]; // Link to MJAIAgentCategories
|
|
3056
|
+
|
|
3057
|
+
@Field(() => [MJAIAgent_])
|
|
3058
|
+
MJAIAgents_CategoryIDArray: MJAIAgent_[]; // Link to MJAIAgents
|
|
3059
|
+
|
|
3060
|
+
}
|
|
3061
|
+
|
|
3062
|
+
//****************************************************************************
|
|
3063
|
+
// INPUT TYPE for MJ: AI Agent Categories
|
|
3064
|
+
//****************************************************************************
|
|
3065
|
+
@InputType()
|
|
3066
|
+
export class CreateMJAIAgentCategoryInput {
|
|
3067
|
+
@Field({ nullable: true })
|
|
3068
|
+
ID?: string;
|
|
3069
|
+
|
|
3070
|
+
@Field({ nullable: true })
|
|
3071
|
+
Name?: string;
|
|
3072
|
+
|
|
3073
|
+
@Field({ nullable: true })
|
|
3074
|
+
Description: string | null;
|
|
3075
|
+
|
|
3076
|
+
@Field({ nullable: true })
|
|
3077
|
+
ParentID: string | null;
|
|
3078
|
+
|
|
3079
|
+
@Field({ nullable: true })
|
|
3080
|
+
AssignmentStrategy: string | null;
|
|
3081
|
+
|
|
3082
|
+
@Field({ nullable: true })
|
|
3083
|
+
Status?: string;
|
|
3084
|
+
}
|
|
3085
|
+
|
|
3086
|
+
|
|
3087
|
+
//****************************************************************************
|
|
3088
|
+
// INPUT TYPE for MJ: AI Agent Categories
|
|
3089
|
+
//****************************************************************************
|
|
3090
|
+
@InputType()
|
|
3091
|
+
export class UpdateMJAIAgentCategoryInput {
|
|
3092
|
+
@Field()
|
|
3093
|
+
ID: string;
|
|
3094
|
+
|
|
3095
|
+
@Field({ nullable: true })
|
|
3096
|
+
Name?: string;
|
|
3097
|
+
|
|
3098
|
+
@Field({ nullable: true })
|
|
3099
|
+
Description?: string | null;
|
|
3100
|
+
|
|
3101
|
+
@Field({ nullable: true })
|
|
3102
|
+
ParentID?: string | null;
|
|
3103
|
+
|
|
3104
|
+
@Field({ nullable: true })
|
|
3105
|
+
AssignmentStrategy?: string | null;
|
|
3106
|
+
|
|
3107
|
+
@Field({ nullable: true })
|
|
3108
|
+
Status?: string;
|
|
3109
|
+
|
|
3110
|
+
@Field(() => [KeyValuePairInput], { nullable: true })
|
|
3111
|
+
OldValues___?: KeyValuePairInput[];
|
|
3112
|
+
}
|
|
3113
|
+
|
|
3114
|
+
//****************************************************************************
|
|
3115
|
+
// RESOLVER for MJ: AI Agent Categories
|
|
3116
|
+
//****************************************************************************
|
|
3117
|
+
@ObjectType()
|
|
3118
|
+
export class RunMJAIAgentCategoryViewResult {
|
|
3119
|
+
@Field(() => [MJAIAgentCategory_])
|
|
3120
|
+
Results: MJAIAgentCategory_[];
|
|
3121
|
+
|
|
3122
|
+
@Field(() => String, {nullable: true})
|
|
3123
|
+
UserViewRunID?: string;
|
|
3124
|
+
|
|
3125
|
+
@Field(() => Int, {nullable: true})
|
|
3126
|
+
RowCount: number;
|
|
3127
|
+
|
|
3128
|
+
@Field(() => Int, {nullable: true})
|
|
3129
|
+
TotalRowCount: number;
|
|
3130
|
+
|
|
3131
|
+
@Field(() => Int, {nullable: true})
|
|
3132
|
+
ExecutionTime: number;
|
|
3133
|
+
|
|
3134
|
+
@Field({nullable: true})
|
|
3135
|
+
ErrorMessage?: string;
|
|
3136
|
+
|
|
3137
|
+
@Field(() => Boolean, {nullable: false})
|
|
3138
|
+
Success: boolean;
|
|
3139
|
+
}
|
|
3140
|
+
|
|
3141
|
+
@Resolver(MJAIAgentCategory_)
|
|
3142
|
+
export class MJAIAgentCategoryResolver extends ResolverBase {
|
|
3143
|
+
@Query(() => RunMJAIAgentCategoryViewResult)
|
|
3144
|
+
async RunMJAIAgentCategoryViewByID(@Arg('input', () => RunViewByIDInput) input: RunViewByIDInput, @Ctx() { providers, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
3145
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
3146
|
+
return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
|
|
3147
|
+
}
|
|
3148
|
+
|
|
3149
|
+
@Query(() => RunMJAIAgentCategoryViewResult)
|
|
3150
|
+
async RunMJAIAgentCategoryViewByName(@Arg('input', () => RunViewByNameInput) input: RunViewByNameInput, @Ctx() { providers, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
3151
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
3152
|
+
return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
|
|
3153
|
+
}
|
|
3154
|
+
|
|
3155
|
+
@Query(() => RunMJAIAgentCategoryViewResult)
|
|
3156
|
+
async RunMJAIAgentCategoryDynamicView(@Arg('input', () => RunDynamicViewInput) input: RunDynamicViewInput, @Ctx() { providers, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
3157
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
3158
|
+
input.EntityName = 'MJ: AI Agent Categories';
|
|
3159
|
+
return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
|
|
3160
|
+
}
|
|
3161
|
+
@Query(() => MJAIAgentCategory_, { nullable: true })
|
|
3162
|
+
async MJAIAgentCategory(@Arg('ID', () => String) ID: string, @Ctx() { userPayload, providers }: AppContext, @PubSub() pubSub: PubSubEngine): Promise<MJAIAgentCategory_ | null> {
|
|
3163
|
+
this.CheckUserReadPermissions('MJ: AI Agent Categories', userPayload);
|
|
3164
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
3165
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIAgentCategories')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Agent Categories', userPayload, EntityPermissionType.Read, 'AND');
|
|
3166
|
+
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
3167
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Agent Categories', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
3168
|
+
return result;
|
|
3169
|
+
}
|
|
3170
|
+
|
|
3171
|
+
@FieldResolver(() => [MJAIAgentCategory_])
|
|
3172
|
+
async MJAIAgentCategories_ParentIDArray(@Root() mjaiagentcategory_: MJAIAgentCategory_, @Ctx() { userPayload, providers }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
3173
|
+
this.CheckUserReadPermissions('MJ: AI Agent Categories', userPayload);
|
|
3174
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
3175
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIAgentCategories')} WHERE ${provider.QuoteIdentifier('ParentID')}='${mjaiagentcategory_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Agent Categories', userPayload, EntityPermissionType.Read, 'AND');
|
|
3176
|
+
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
3177
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: AI Agent Categories', rows, this.GetUserFromPayload(userPayload));
|
|
3178
|
+
return result;
|
|
3179
|
+
}
|
|
3180
|
+
|
|
3181
|
+
@FieldResolver(() => [MJAIAgent_])
|
|
3182
|
+
async MJAIAgents_CategoryIDArray(@Root() mjaiagentcategory_: MJAIAgentCategory_, @Ctx() { userPayload, providers }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
3183
|
+
this.CheckUserReadPermissions('MJ: AI Agents', userPayload);
|
|
3184
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
3185
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIAgents')} WHERE ${provider.QuoteIdentifier('CategoryID')}='${mjaiagentcategory_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Agents', userPayload, EntityPermissionType.Read, 'AND');
|
|
3186
|
+
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
3187
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: AI Agents', rows, this.GetUserFromPayload(userPayload));
|
|
3188
|
+
return result;
|
|
3189
|
+
}
|
|
3190
|
+
|
|
3191
|
+
@Mutation(() => MJAIAgentCategory_)
|
|
3192
|
+
async CreateMJAIAgentCategory(
|
|
3193
|
+
@Arg('input', () => CreateMJAIAgentCategoryInput) input: CreateMJAIAgentCategoryInput,
|
|
3194
|
+
@Ctx() { providers, userPayload }: AppContext,
|
|
3195
|
+
@PubSub() pubSub: PubSubEngine
|
|
3196
|
+
) {
|
|
3197
|
+
const provider = GetReadWriteProvider(providers);
|
|
3198
|
+
return this.CreateRecord('MJ: AI Agent Categories', input, provider, userPayload, pubSub)
|
|
3199
|
+
}
|
|
3200
|
+
|
|
3201
|
+
@Mutation(() => MJAIAgentCategory_)
|
|
3202
|
+
async UpdateMJAIAgentCategory(
|
|
3203
|
+
@Arg('input', () => UpdateMJAIAgentCategoryInput) input: UpdateMJAIAgentCategoryInput,
|
|
3204
|
+
@Ctx() { providers, userPayload }: AppContext,
|
|
3205
|
+
@PubSub() pubSub: PubSubEngine
|
|
3206
|
+
) {
|
|
3207
|
+
const provider = GetReadWriteProvider(providers);
|
|
3208
|
+
return this.UpdateRecord('MJ: AI Agent Categories', input, provider, userPayload, pubSub);
|
|
3209
|
+
}
|
|
3210
|
+
|
|
3211
|
+
@Mutation(() => MJAIAgentCategory_)
|
|
3212
|
+
async DeleteMJAIAgentCategory(@Arg('ID', () => String) ID: string, @Arg('options___', () => DeleteOptionsInput) options: DeleteOptionsInput, @Ctx() { providers, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
3213
|
+
const provider = GetReadWriteProvider(providers);
|
|
3214
|
+
const key = new CompositeKey([{FieldName: 'ID', Value: ID}]);
|
|
3215
|
+
return this.DeleteRecord('MJ: AI Agent Categories', key, options, provider, userPayload, pubSub);
|
|
3216
|
+
}
|
|
3217
|
+
|
|
3218
|
+
}
|
|
3219
|
+
|
|
3004
3220
|
//****************************************************************************
|
|
3005
3221
|
// ENTITY CLASS for MJ: AI Agent Configurations
|
|
3006
3222
|
//****************************************************************************
|
|
@@ -3178,7 +3394,7 @@ export class MJAIAgentConfigurationResolver extends ResolverBase {
|
|
|
3178
3394
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
3179
3395
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIAgentConfigurations')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Agent Configurations', userPayload, EntityPermissionType.Read, 'AND');
|
|
3180
3396
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
3181
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: AI Agent Configurations', rows && rows.length > 0 ? rows[0] :
|
|
3397
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Agent Configurations', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
3182
3398
|
return result;
|
|
3183
3399
|
}
|
|
3184
3400
|
|
|
@@ -3490,7 +3706,7 @@ export class MJAIAgentDataSourceResolver extends ResolverBase {
|
|
|
3490
3706
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
3491
3707
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIAgentDataSources')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Agent Data Sources', userPayload, EntityPermissionType.Read, 'AND');
|
|
3492
3708
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
3493
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: AI Agent Data Sources', rows && rows.length > 0 ? rows[0] :
|
|
3709
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Agent Data Sources', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
3494
3710
|
return result;
|
|
3495
3711
|
}
|
|
3496
3712
|
|
|
@@ -3846,7 +4062,7 @@ export class MJAIAgentExampleResolver extends ResolverBase {
|
|
|
3846
4062
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
3847
4063
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIAgentExamples')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Agent Examples', userPayload, EntityPermissionType.Read, 'AND');
|
|
3848
4064
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
3849
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: AI Agent Examples', rows && rows.length > 0 ? rows[0] :
|
|
4065
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Agent Examples', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
3850
4066
|
return result;
|
|
3851
4067
|
}
|
|
3852
4068
|
|
|
@@ -4022,7 +4238,7 @@ export class MJAIAgentLearningCycleResolver extends ResolverBase {
|
|
|
4022
4238
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
4023
4239
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIAgentLearningCycles')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Agent Learning Cycles', userPayload, EntityPermissionType.Read, 'AND');
|
|
4024
4240
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
4025
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: AI Agent Learning Cycles', rows && rows.length > 0 ? rows[0] :
|
|
4241
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Agent Learning Cycles', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
4026
4242
|
return result;
|
|
4027
4243
|
}
|
|
4028
4244
|
|
|
@@ -4212,7 +4428,7 @@ export class MJAIAgentModalityResolver extends ResolverBase {
|
|
|
4212
4428
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
4213
4429
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIAgentModalities')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Agent Modalities', userPayload, EntityPermissionType.Read, 'AND');
|
|
4214
4430
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
4215
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: AI Agent Modalities', rows && rows.length > 0 ? rows[0] :
|
|
4431
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Agent Modalities', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
4216
4432
|
return result;
|
|
4217
4433
|
}
|
|
4218
4434
|
|
|
@@ -4383,7 +4599,7 @@ export class MJAIAgentModelResolver extends ResolverBase {
|
|
|
4383
4599
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
4384
4600
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIAgentModels')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Agent Models', userPayload, EntityPermissionType.Read, 'AND');
|
|
4385
4601
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
4386
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: AI Agent Models', rows && rows.length > 0 ? rows[0] :
|
|
4602
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Agent Models', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
4387
4603
|
return result;
|
|
4388
4604
|
}
|
|
4389
4605
|
|
|
@@ -4549,7 +4765,7 @@ export class MJAIAgentNoteTypeResolver extends ResolverBase {
|
|
|
4549
4765
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
4550
4766
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIAgentNoteTypes')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Agent Note Types', userPayload, EntityPermissionType.Read, 'AND');
|
|
4551
4767
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
4552
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: AI Agent Note Types', rows && rows.length > 0 ? rows[0] :
|
|
4768
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Agent Note Types', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
4553
4769
|
return result;
|
|
4554
4770
|
}
|
|
4555
4771
|
|
|
@@ -4911,7 +5127,7 @@ export class MJAIAgentNoteResolver extends ResolverBase {
|
|
|
4911
5127
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
4912
5128
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIAgentNotes')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Agent Notes', userPayload, EntityPermissionType.Read, 'AND');
|
|
4913
5129
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
4914
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: AI Agent Notes', rows && rows.length > 0 ? rows[0] :
|
|
5130
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Agent Notes', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
4915
5131
|
return result;
|
|
4916
5132
|
}
|
|
4917
5133
|
|
|
@@ -5123,7 +5339,7 @@ export class MJAIAgentPermissionResolver extends ResolverBase {
|
|
|
5123
5339
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
5124
5340
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIAgentPermissions')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Agent Permissions', userPayload, EntityPermissionType.Read, 'AND');
|
|
5125
5341
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
5126
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: AI Agent Permissions', rows && rows.length > 0 ? rows[0] :
|
|
5342
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Agent Permissions', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
5127
5343
|
return result;
|
|
5128
5344
|
}
|
|
5129
5345
|
|
|
@@ -5337,7 +5553,7 @@ export class MJAIAgentPromptResolver extends ResolverBase {
|
|
|
5337
5553
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
5338
5554
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIAgentPrompts')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Agent Prompts', userPayload, EntityPermissionType.Read, 'AND');
|
|
5339
5555
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
5340
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: AI Agent Prompts', rows && rows.length > 0 ? rows[0] :
|
|
5556
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Agent Prompts', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
5341
5557
|
return result;
|
|
5342
5558
|
}
|
|
5343
5559
|
|
|
@@ -5546,7 +5762,7 @@ export class MJAIAgentRelationshipResolver extends ResolverBase {
|
|
|
5546
5762
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
5547
5763
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIAgentRelationships')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Agent Relationships', userPayload, EntityPermissionType.Read, 'AND');
|
|
5548
5764
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
5549
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: AI Agent Relationships', rows && rows.length > 0 ? rows[0] :
|
|
5765
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Agent Relationships', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
5550
5766
|
return result;
|
|
5551
5767
|
}
|
|
5552
5768
|
|
|
@@ -5579,6 +5795,209 @@ export class MJAIAgentRelationshipResolver extends ResolverBase {
|
|
|
5579
5795
|
|
|
5580
5796
|
}
|
|
5581
5797
|
|
|
5798
|
+
//****************************************************************************
|
|
5799
|
+
// ENTITY CLASS for MJ: AI Agent Request Types
|
|
5800
|
+
//****************************************************************************
|
|
5801
|
+
@ObjectType({ description: `Lookup table categorizing the types of requests an agent can make to a human (e.g., Approval, Information, Choice, Review, Custom).` })
|
|
5802
|
+
export class MJAIAgentRequestType_ {
|
|
5803
|
+
@Field({description: `Primary key for the AIAgentRequestType record.`})
|
|
5804
|
+
@MaxLength(36)
|
|
5805
|
+
ID: string;
|
|
5806
|
+
|
|
5807
|
+
@Field({description: `Unique display name for the request type (e.g., Approval, Information, Choice).`})
|
|
5808
|
+
@MaxLength(100)
|
|
5809
|
+
Name: string;
|
|
5810
|
+
|
|
5811
|
+
@Field({nullable: true, description: `Explains when and how this request type should be used by agents.`})
|
|
5812
|
+
Description?: string;
|
|
5813
|
+
|
|
5814
|
+
@Field({nullable: true, description: `Font Awesome icon class for UI rendering of this request type.`})
|
|
5815
|
+
@MaxLength(100)
|
|
5816
|
+
Icon?: string;
|
|
5817
|
+
|
|
5818
|
+
@Field()
|
|
5819
|
+
_mj__CreatedAt: Date;
|
|
5820
|
+
|
|
5821
|
+
@Field()
|
|
5822
|
+
_mj__UpdatedAt: Date;
|
|
5823
|
+
|
|
5824
|
+
@Field({nullable: true, description: `JSON-serialized AgentRequestAssignmentStrategy defining the default assignment strategy for requests of this type. Used as the lowest-priority fallback in the resolution chain.`})
|
|
5825
|
+
DefaultAssignmentStrategy?: string;
|
|
5826
|
+
|
|
5827
|
+
@Field(() => Int, {nullable: true, description: `Default priority (1-100) for requests of this type when no explicit priority is provided. NULL means use the system default of 50.`})
|
|
5828
|
+
DefaultPriority?: number;
|
|
5829
|
+
|
|
5830
|
+
@Field(() => Int, {nullable: true, description: `Default expiration time in minutes for requests of this type. NULL means requests do not expire by default.`})
|
|
5831
|
+
DefaultExpirationMinutes?: number;
|
|
5832
|
+
|
|
5833
|
+
@Field(() => Boolean, {description: `Whether requests of this type require a structured response from the human before the agent can resume. When 0, the agent may proceed with just an acknowledgment.`})
|
|
5834
|
+
RequiresResponse: boolean;
|
|
5835
|
+
|
|
5836
|
+
@Field(() => [MJAIAgentRequest_])
|
|
5837
|
+
MJAIAgentRequests_RequestTypeIDArray: MJAIAgentRequest_[]; // Link to MJAIAgentRequests
|
|
5838
|
+
|
|
5839
|
+
}
|
|
5840
|
+
|
|
5841
|
+
//****************************************************************************
|
|
5842
|
+
// INPUT TYPE for MJ: AI Agent Request Types
|
|
5843
|
+
//****************************************************************************
|
|
5844
|
+
@InputType()
|
|
5845
|
+
export class CreateMJAIAgentRequestTypeInput {
|
|
5846
|
+
@Field({ nullable: true })
|
|
5847
|
+
ID?: string;
|
|
5848
|
+
|
|
5849
|
+
@Field({ nullable: true })
|
|
5850
|
+
Name?: string;
|
|
5851
|
+
|
|
5852
|
+
@Field({ nullable: true })
|
|
5853
|
+
Description: string | null;
|
|
5854
|
+
|
|
5855
|
+
@Field({ nullable: true })
|
|
5856
|
+
Icon: string | null;
|
|
5857
|
+
|
|
5858
|
+
@Field({ nullable: true })
|
|
5859
|
+
DefaultAssignmentStrategy: string | null;
|
|
5860
|
+
|
|
5861
|
+
@Field(() => Int, { nullable: true })
|
|
5862
|
+
DefaultPriority: number | null;
|
|
5863
|
+
|
|
5864
|
+
@Field(() => Int, { nullable: true })
|
|
5865
|
+
DefaultExpirationMinutes: number | null;
|
|
5866
|
+
|
|
5867
|
+
@Field(() => Boolean, { nullable: true })
|
|
5868
|
+
RequiresResponse?: boolean;
|
|
5869
|
+
}
|
|
5870
|
+
|
|
5871
|
+
|
|
5872
|
+
//****************************************************************************
|
|
5873
|
+
// INPUT TYPE for MJ: AI Agent Request Types
|
|
5874
|
+
//****************************************************************************
|
|
5875
|
+
@InputType()
|
|
5876
|
+
export class UpdateMJAIAgentRequestTypeInput {
|
|
5877
|
+
@Field()
|
|
5878
|
+
ID: string;
|
|
5879
|
+
|
|
5880
|
+
@Field({ nullable: true })
|
|
5881
|
+
Name?: string;
|
|
5882
|
+
|
|
5883
|
+
@Field({ nullable: true })
|
|
5884
|
+
Description?: string | null;
|
|
5885
|
+
|
|
5886
|
+
@Field({ nullable: true })
|
|
5887
|
+
Icon?: string | null;
|
|
5888
|
+
|
|
5889
|
+
@Field({ nullable: true })
|
|
5890
|
+
DefaultAssignmentStrategy?: string | null;
|
|
5891
|
+
|
|
5892
|
+
@Field(() => Int, { nullable: true })
|
|
5893
|
+
DefaultPriority?: number | null;
|
|
5894
|
+
|
|
5895
|
+
@Field(() => Int, { nullable: true })
|
|
5896
|
+
DefaultExpirationMinutes?: number | null;
|
|
5897
|
+
|
|
5898
|
+
@Field(() => Boolean, { nullable: true })
|
|
5899
|
+
RequiresResponse?: boolean;
|
|
5900
|
+
|
|
5901
|
+
@Field(() => [KeyValuePairInput], { nullable: true })
|
|
5902
|
+
OldValues___?: KeyValuePairInput[];
|
|
5903
|
+
}
|
|
5904
|
+
|
|
5905
|
+
//****************************************************************************
|
|
5906
|
+
// RESOLVER for MJ: AI Agent Request Types
|
|
5907
|
+
//****************************************************************************
|
|
5908
|
+
@ObjectType()
|
|
5909
|
+
export class RunMJAIAgentRequestTypeViewResult {
|
|
5910
|
+
@Field(() => [MJAIAgentRequestType_])
|
|
5911
|
+
Results: MJAIAgentRequestType_[];
|
|
5912
|
+
|
|
5913
|
+
@Field(() => String, {nullable: true})
|
|
5914
|
+
UserViewRunID?: string;
|
|
5915
|
+
|
|
5916
|
+
@Field(() => Int, {nullable: true})
|
|
5917
|
+
RowCount: number;
|
|
5918
|
+
|
|
5919
|
+
@Field(() => Int, {nullable: true})
|
|
5920
|
+
TotalRowCount: number;
|
|
5921
|
+
|
|
5922
|
+
@Field(() => Int, {nullable: true})
|
|
5923
|
+
ExecutionTime: number;
|
|
5924
|
+
|
|
5925
|
+
@Field({nullable: true})
|
|
5926
|
+
ErrorMessage?: string;
|
|
5927
|
+
|
|
5928
|
+
@Field(() => Boolean, {nullable: false})
|
|
5929
|
+
Success: boolean;
|
|
5930
|
+
}
|
|
5931
|
+
|
|
5932
|
+
@Resolver(MJAIAgentRequestType_)
|
|
5933
|
+
export class MJAIAgentRequestTypeResolver extends ResolverBase {
|
|
5934
|
+
@Query(() => RunMJAIAgentRequestTypeViewResult)
|
|
5935
|
+
async RunMJAIAgentRequestTypeViewByID(@Arg('input', () => RunViewByIDInput) input: RunViewByIDInput, @Ctx() { providers, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
5936
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
5937
|
+
return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
|
|
5938
|
+
}
|
|
5939
|
+
|
|
5940
|
+
@Query(() => RunMJAIAgentRequestTypeViewResult)
|
|
5941
|
+
async RunMJAIAgentRequestTypeViewByName(@Arg('input', () => RunViewByNameInput) input: RunViewByNameInput, @Ctx() { providers, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
5942
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
5943
|
+
return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
|
|
5944
|
+
}
|
|
5945
|
+
|
|
5946
|
+
@Query(() => RunMJAIAgentRequestTypeViewResult)
|
|
5947
|
+
async RunMJAIAgentRequestTypeDynamicView(@Arg('input', () => RunDynamicViewInput) input: RunDynamicViewInput, @Ctx() { providers, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
5948
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
5949
|
+
input.EntityName = 'MJ: AI Agent Request Types';
|
|
5950
|
+
return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
|
|
5951
|
+
}
|
|
5952
|
+
@Query(() => MJAIAgentRequestType_, { nullable: true })
|
|
5953
|
+
async MJAIAgentRequestType(@Arg('ID', () => String) ID: string, @Ctx() { userPayload, providers }: AppContext, @PubSub() pubSub: PubSubEngine): Promise<MJAIAgentRequestType_ | null> {
|
|
5954
|
+
this.CheckUserReadPermissions('MJ: AI Agent Request Types', userPayload);
|
|
5955
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
5956
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIAgentRequestTypes')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Agent Request Types', userPayload, EntityPermissionType.Read, 'AND');
|
|
5957
|
+
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
5958
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Agent Request Types', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
5959
|
+
return result;
|
|
5960
|
+
}
|
|
5961
|
+
|
|
5962
|
+
@FieldResolver(() => [MJAIAgentRequest_])
|
|
5963
|
+
async MJAIAgentRequests_RequestTypeIDArray(@Root() mjaiagentrequesttype_: MJAIAgentRequestType_, @Ctx() { userPayload, providers }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
5964
|
+
this.CheckUserReadPermissions('MJ: AI Agent Requests', userPayload);
|
|
5965
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
5966
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIAgentRequests')} WHERE ${provider.QuoteIdentifier('RequestTypeID')}='${mjaiagentrequesttype_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Agent Requests', userPayload, EntityPermissionType.Read, 'AND');
|
|
5967
|
+
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
5968
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: AI Agent Requests', rows, this.GetUserFromPayload(userPayload));
|
|
5969
|
+
return result;
|
|
5970
|
+
}
|
|
5971
|
+
|
|
5972
|
+
@Mutation(() => MJAIAgentRequestType_)
|
|
5973
|
+
async CreateMJAIAgentRequestType(
|
|
5974
|
+
@Arg('input', () => CreateMJAIAgentRequestTypeInput) input: CreateMJAIAgentRequestTypeInput,
|
|
5975
|
+
@Ctx() { providers, userPayload }: AppContext,
|
|
5976
|
+
@PubSub() pubSub: PubSubEngine
|
|
5977
|
+
) {
|
|
5978
|
+
const provider = GetReadWriteProvider(providers);
|
|
5979
|
+
return this.CreateRecord('MJ: AI Agent Request Types', input, provider, userPayload, pubSub)
|
|
5980
|
+
}
|
|
5981
|
+
|
|
5982
|
+
@Mutation(() => MJAIAgentRequestType_)
|
|
5983
|
+
async UpdateMJAIAgentRequestType(
|
|
5984
|
+
@Arg('input', () => UpdateMJAIAgentRequestTypeInput) input: UpdateMJAIAgentRequestTypeInput,
|
|
5985
|
+
@Ctx() { providers, userPayload }: AppContext,
|
|
5986
|
+
@PubSub() pubSub: PubSubEngine
|
|
5987
|
+
) {
|
|
5988
|
+
const provider = GetReadWriteProvider(providers);
|
|
5989
|
+
return this.UpdateRecord('MJ: AI Agent Request Types', input, provider, userPayload, pubSub);
|
|
5990
|
+
}
|
|
5991
|
+
|
|
5992
|
+
@Mutation(() => MJAIAgentRequestType_)
|
|
5993
|
+
async DeleteMJAIAgentRequestType(@Arg('ID', () => String) ID: string, @Arg('options___', () => DeleteOptionsInput) options: DeleteOptionsInput, @Ctx() { providers, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
5994
|
+
const provider = GetReadWriteProvider(providers);
|
|
5995
|
+
const key = new CompositeKey([{FieldName: 'ID', Value: ID}]);
|
|
5996
|
+
return this.DeleteRecord('MJ: AI Agent Request Types', key, options, provider, userPayload, pubSub);
|
|
5997
|
+
}
|
|
5998
|
+
|
|
5999
|
+
}
|
|
6000
|
+
|
|
5582
6001
|
//****************************************************************************
|
|
5583
6002
|
// ENTITY CLASS for MJ: AI Agent Requests
|
|
5584
6003
|
//****************************************************************************
|
|
@@ -5625,6 +6044,38 @@ export class MJAIAgentRequest_ {
|
|
|
5625
6044
|
@Field()
|
|
5626
6045
|
_mj__UpdatedAt: Date;
|
|
5627
6046
|
|
|
6047
|
+
@Field({nullable: true, description: `Foreign key to AIAgentRequestType. Categorizes the purpose of this request (Approval, Information, Choice, Review, Custom).`})
|
|
6048
|
+
@MaxLength(36)
|
|
6049
|
+
RequestTypeID?: string;
|
|
6050
|
+
|
|
6051
|
+
@Field({nullable: true, description: `JSON-serialized AgentResponseForm defining the structured input form the agent presents to the human. Uses the same form types as ConversationDetail.ResponseForm.`})
|
|
6052
|
+
ResponseSchema?: string;
|
|
6053
|
+
|
|
6054
|
+
@Field({nullable: true, description: `JSON structured response data provided by the human, conforming to the ResponseSchema definition.`})
|
|
6055
|
+
ResponseData?: string;
|
|
6056
|
+
|
|
6057
|
+
@Field(() => Int, {description: `Urgency level of the request as an integer from 1 (lowest) to 100 (highest). Default is 50. Suggested ranges: 1-25 Low, 26-50 Normal, 51-75 High, 76-100 Critical. Used for notification routing and dashboard sorting.`})
|
|
6058
|
+
Priority: number;
|
|
6059
|
+
|
|
6060
|
+
@Field({nullable: true, description: `Optional deadline for the human to respond. After this time the request may be marked Expired by a background process.`})
|
|
6061
|
+
ExpiresAt?: Date;
|
|
6062
|
+
|
|
6063
|
+
@Field({nullable: true, description: `Foreign key to AIAgentRun. The agent run that created this request. Used to trace request origin in run chains.`})
|
|
6064
|
+
@MaxLength(36)
|
|
6065
|
+
OriginatingAgentRunID?: string;
|
|
6066
|
+
|
|
6067
|
+
@Field({nullable: true, description: `Foreign key to AIAgentRunStep. The specific execution step that triggered this request.`})
|
|
6068
|
+
@MaxLength(36)
|
|
6069
|
+
OriginatingAgentRunStepID?: string;
|
|
6070
|
+
|
|
6071
|
+
@Field({nullable: true, description: `Foreign key to AIAgentRun. The new agent run spawned after the human responds. NULL until a response triggers a resuming run.`})
|
|
6072
|
+
@MaxLength(36)
|
|
6073
|
+
ResumingAgentRunID?: string;
|
|
6074
|
+
|
|
6075
|
+
@Field({nullable: true, description: `Identifies where the response originated: Conversation (handled by chat resolver), Dashboard (slide-in panel), or API (external integration). Used by the server-side entity subclass to determine whether agent resumption is needed.`})
|
|
6076
|
+
@MaxLength(20)
|
|
6077
|
+
ResponseSource?: string;
|
|
6078
|
+
|
|
5628
6079
|
@Field({nullable: true})
|
|
5629
6080
|
@MaxLength(255)
|
|
5630
6081
|
Agent?: string;
|
|
@@ -5637,6 +6088,22 @@ export class MJAIAgentRequest_ {
|
|
|
5637
6088
|
@MaxLength(100)
|
|
5638
6089
|
ResponseByUser?: string;
|
|
5639
6090
|
|
|
6091
|
+
@Field({nullable: true})
|
|
6092
|
+
@MaxLength(100)
|
|
6093
|
+
RequestType?: string;
|
|
6094
|
+
|
|
6095
|
+
@Field({nullable: true})
|
|
6096
|
+
@MaxLength(255)
|
|
6097
|
+
OriginatingAgentRun?: string;
|
|
6098
|
+
|
|
6099
|
+
@Field({nullable: true})
|
|
6100
|
+
@MaxLength(255)
|
|
6101
|
+
OriginatingAgentRunStep?: string;
|
|
6102
|
+
|
|
6103
|
+
@Field({nullable: true})
|
|
6104
|
+
@MaxLength(255)
|
|
6105
|
+
ResumingAgentRun?: string;
|
|
6106
|
+
|
|
5640
6107
|
}
|
|
5641
6108
|
|
|
5642
6109
|
//****************************************************************************
|
|
@@ -5673,6 +6140,33 @@ export class CreateMJAIAgentRequestInput {
|
|
|
5673
6140
|
|
|
5674
6141
|
@Field({ nullable: true })
|
|
5675
6142
|
Comments: string | null;
|
|
6143
|
+
|
|
6144
|
+
@Field({ nullable: true })
|
|
6145
|
+
RequestTypeID: string | null;
|
|
6146
|
+
|
|
6147
|
+
@Field({ nullable: true })
|
|
6148
|
+
ResponseSchema: string | null;
|
|
6149
|
+
|
|
6150
|
+
@Field({ nullable: true })
|
|
6151
|
+
ResponseData: string | null;
|
|
6152
|
+
|
|
6153
|
+
@Field(() => Int, { nullable: true })
|
|
6154
|
+
Priority?: number;
|
|
6155
|
+
|
|
6156
|
+
@Field({ nullable: true })
|
|
6157
|
+
ExpiresAt: Date | null;
|
|
6158
|
+
|
|
6159
|
+
@Field({ nullable: true })
|
|
6160
|
+
OriginatingAgentRunID: string | null;
|
|
6161
|
+
|
|
6162
|
+
@Field({ nullable: true })
|
|
6163
|
+
OriginatingAgentRunStepID: string | null;
|
|
6164
|
+
|
|
6165
|
+
@Field({ nullable: true })
|
|
6166
|
+
ResumingAgentRunID: string | null;
|
|
6167
|
+
|
|
6168
|
+
@Field({ nullable: true })
|
|
6169
|
+
ResponseSource: string | null;
|
|
5676
6170
|
}
|
|
5677
6171
|
|
|
5678
6172
|
|
|
@@ -5711,6 +6205,33 @@ export class UpdateMJAIAgentRequestInput {
|
|
|
5711
6205
|
@Field({ nullable: true })
|
|
5712
6206
|
Comments?: string | null;
|
|
5713
6207
|
|
|
6208
|
+
@Field({ nullable: true })
|
|
6209
|
+
RequestTypeID?: string | null;
|
|
6210
|
+
|
|
6211
|
+
@Field({ nullable: true })
|
|
6212
|
+
ResponseSchema?: string | null;
|
|
6213
|
+
|
|
6214
|
+
@Field({ nullable: true })
|
|
6215
|
+
ResponseData?: string | null;
|
|
6216
|
+
|
|
6217
|
+
@Field(() => Int, { nullable: true })
|
|
6218
|
+
Priority?: number;
|
|
6219
|
+
|
|
6220
|
+
@Field({ nullable: true })
|
|
6221
|
+
ExpiresAt?: Date | null;
|
|
6222
|
+
|
|
6223
|
+
@Field({ nullable: true })
|
|
6224
|
+
OriginatingAgentRunID?: string | null;
|
|
6225
|
+
|
|
6226
|
+
@Field({ nullable: true })
|
|
6227
|
+
OriginatingAgentRunStepID?: string | null;
|
|
6228
|
+
|
|
6229
|
+
@Field({ nullable: true })
|
|
6230
|
+
ResumingAgentRunID?: string | null;
|
|
6231
|
+
|
|
6232
|
+
@Field({ nullable: true })
|
|
6233
|
+
ResponseSource?: string | null;
|
|
6234
|
+
|
|
5714
6235
|
@Field(() => [KeyValuePairInput], { nullable: true })
|
|
5715
6236
|
OldValues___?: KeyValuePairInput[];
|
|
5716
6237
|
}
|
|
@@ -5768,7 +6289,7 @@ export class MJAIAgentRequestResolver extends ResolverBase {
|
|
|
5768
6289
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
5769
6290
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIAgentRequests')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Agent Requests', userPayload, EntityPermissionType.Read, 'AND');
|
|
5770
6291
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
5771
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: AI Agent Requests', rows && rows.length > 0 ? rows[0] :
|
|
6292
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Agent Requests', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
5772
6293
|
return result;
|
|
5773
6294
|
}
|
|
5774
6295
|
|
|
@@ -6060,7 +6581,7 @@ export class MJAIAgentRunMediaResolver extends ResolverBase {
|
|
|
6060
6581
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
6061
6582
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIAgentRunMedias')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Agent Run Medias', userPayload, EntityPermissionType.Read, 'AND');
|
|
6062
6583
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
6063
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: AI Agent Run Medias', rows && rows.length > 0 ? rows[0] :
|
|
6584
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Agent Run Medias', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
6064
6585
|
return result;
|
|
6065
6586
|
}
|
|
6066
6587
|
|
|
@@ -6191,6 +6712,9 @@ detailed information about what validation rules failed.`})
|
|
|
6191
6712
|
@Field(() => [MJAIAgentRunStep_])
|
|
6192
6713
|
MJAIAgentRunSteps_ParentIDArray: MJAIAgentRunStep_[]; // Link to MJAIAgentRunSteps
|
|
6193
6714
|
|
|
6715
|
+
@Field(() => [MJAIAgentRequest_])
|
|
6716
|
+
MJAIAgentRequests_OriginatingAgentRunStepIDArray: MJAIAgentRequest_[]; // Link to MJAIAgentRequests
|
|
6717
|
+
|
|
6194
6718
|
}
|
|
6195
6719
|
|
|
6196
6720
|
//****************************************************************************
|
|
@@ -6382,7 +6906,7 @@ export class MJAIAgentRunStepResolver extends ResolverBase {
|
|
|
6382
6906
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
6383
6907
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIAgentRunSteps')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Agent Run Steps', userPayload, EntityPermissionType.Read, 'AND');
|
|
6384
6908
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
6385
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: AI Agent Run Steps', rows && rows.length > 0 ? rows[0] :
|
|
6909
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Agent Run Steps', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
6386
6910
|
return result;
|
|
6387
6911
|
}
|
|
6388
6912
|
|
|
@@ -6396,6 +6920,16 @@ export class MJAIAgentRunStepResolver extends ResolverBase {
|
|
|
6396
6920
|
return result;
|
|
6397
6921
|
}
|
|
6398
6922
|
|
|
6923
|
+
@FieldResolver(() => [MJAIAgentRequest_])
|
|
6924
|
+
async MJAIAgentRequests_OriginatingAgentRunStepIDArray(@Root() mjaiagentrunstep_: MJAIAgentRunStep_, @Ctx() { userPayload, providers }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
6925
|
+
this.CheckUserReadPermissions('MJ: AI Agent Requests', userPayload);
|
|
6926
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
6927
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIAgentRequests')} WHERE ${provider.QuoteIdentifier('OriginatingAgentRunStepID')}='${mjaiagentrunstep_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Agent Requests', userPayload, EntityPermissionType.Read, 'AND');
|
|
6928
|
+
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
6929
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: AI Agent Requests', rows, this.GetUserFromPayload(userPayload));
|
|
6930
|
+
return result;
|
|
6931
|
+
}
|
|
6932
|
+
|
|
6399
6933
|
@Mutation(() => MJAIAgentRunStep_)
|
|
6400
6934
|
async CreateMJAIAgentRunStep(
|
|
6401
6935
|
@Arg('input', () => CreateMJAIAgentRunStepInput) input: CreateMJAIAgentRunStepInput,
|
|
@@ -6655,6 +7189,12 @@ each time the agent processes a prompt step.`})
|
|
|
6655
7189
|
@Field(() => [MJAIAgentRunMedia_])
|
|
6656
7190
|
MJAIAgentRunMedias_AgentRunIDArray: MJAIAgentRunMedia_[]; // Link to MJAIAgentRunMedias
|
|
6657
7191
|
|
|
7192
|
+
@Field(() => [MJAIAgentRequest_])
|
|
7193
|
+
MJAIAgentRequests_OriginatingAgentRunIDArray: MJAIAgentRequest_[]; // Link to MJAIAgentRequests
|
|
7194
|
+
|
|
7195
|
+
@Field(() => [MJAIAgentRequest_])
|
|
7196
|
+
MJAIAgentRequests_ResumingAgentRunIDArray: MJAIAgentRequest_[]; // Link to MJAIAgentRequests
|
|
7197
|
+
|
|
6658
7198
|
@Field(() => [MJAIPromptRun_])
|
|
6659
7199
|
MJAIPromptRuns_AgentRunIDArray: MJAIPromptRun_[]; // Link to MJAIPromptRuns
|
|
6660
7200
|
|
|
@@ -6990,7 +7530,7 @@ export class MJAIAgentRunResolver extends ResolverBase {
|
|
|
6990
7530
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
6991
7531
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIAgentRuns')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Agent Runs', userPayload, EntityPermissionType.Read, 'AND');
|
|
6992
7532
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
6993
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: AI Agent Runs', rows && rows.length > 0 ? rows[0] :
|
|
7533
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Agent Runs', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
6994
7534
|
return result;
|
|
6995
7535
|
}
|
|
6996
7536
|
|
|
@@ -7044,6 +7584,26 @@ export class MJAIAgentRunResolver extends ResolverBase {
|
|
|
7044
7584
|
return result;
|
|
7045
7585
|
}
|
|
7046
7586
|
|
|
7587
|
+
@FieldResolver(() => [MJAIAgentRequest_])
|
|
7588
|
+
async MJAIAgentRequests_OriginatingAgentRunIDArray(@Root() mjaiagentrun_: MJAIAgentRun_, @Ctx() { userPayload, providers }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
7589
|
+
this.CheckUserReadPermissions('MJ: AI Agent Requests', userPayload);
|
|
7590
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
7591
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIAgentRequests')} WHERE ${provider.QuoteIdentifier('OriginatingAgentRunID')}='${mjaiagentrun_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Agent Requests', userPayload, EntityPermissionType.Read, 'AND');
|
|
7592
|
+
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
7593
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: AI Agent Requests', rows, this.GetUserFromPayload(userPayload));
|
|
7594
|
+
return result;
|
|
7595
|
+
}
|
|
7596
|
+
|
|
7597
|
+
@FieldResolver(() => [MJAIAgentRequest_])
|
|
7598
|
+
async MJAIAgentRequests_ResumingAgentRunIDArray(@Root() mjaiagentrun_: MJAIAgentRun_, @Ctx() { userPayload, providers }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
7599
|
+
this.CheckUserReadPermissions('MJ: AI Agent Requests', userPayload);
|
|
7600
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
7601
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIAgentRequests')} WHERE ${provider.QuoteIdentifier('ResumingAgentRunID')}='${mjaiagentrun_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Agent Requests', userPayload, EntityPermissionType.Read, 'AND');
|
|
7602
|
+
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
7603
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: AI Agent Requests', rows, this.GetUserFromPayload(userPayload));
|
|
7604
|
+
return result;
|
|
7605
|
+
}
|
|
7606
|
+
|
|
7047
7607
|
@FieldResolver(() => [MJAIPromptRun_])
|
|
7048
7608
|
async MJAIPromptRuns_AgentRunIDArray(@Root() mjaiagentrun_: MJAIAgentRun_, @Ctx() { userPayload, providers }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
7049
7609
|
this.CheckUserReadPermissions('MJ: AI Prompt Runs', userPayload);
|
|
@@ -7250,7 +7810,7 @@ export class MJAIAgentStepPathResolver extends ResolverBase {
|
|
|
7250
7810
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
7251
7811
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIAgentStepPaths')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Agent Step Paths', userPayload, EntityPermissionType.Read, 'AND');
|
|
7252
7812
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
7253
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: AI Agent Step Paths', rows && rows.length > 0 ? rows[0] :
|
|
7813
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Agent Step Paths', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
7254
7814
|
return result;
|
|
7255
7815
|
}
|
|
7256
7816
|
|
|
@@ -7586,7 +8146,7 @@ export class MJAIAgentStepResolver extends ResolverBase {
|
|
|
7586
8146
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
7587
8147
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIAgentSteps')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Agent Steps', userPayload, EntityPermissionType.Read, 'AND');
|
|
7588
8148
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
7589
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: AI Agent Steps', rows && rows.length > 0 ? rows[0] :
|
|
8149
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Agent Steps', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
7590
8150
|
return result;
|
|
7591
8151
|
}
|
|
7592
8152
|
|
|
@@ -7690,6 +8250,9 @@ export class MJAIAgentType_ {
|
|
|
7690
8250
|
@Field({nullable: true, description: `JSON Schema defining the available prompt parameters for this agent type. Includes property definitions with types, defaults, and descriptions. Used by agents of this type to customize which prompt sections are included in the system prompt. The schema follows JSON Schema draft-07 format.`})
|
|
7691
8251
|
PromptParamsSchema?: string;
|
|
7692
8252
|
|
|
8253
|
+
@Field({nullable: true, description: `JSON-serialized AgentRequestAssignmentStrategy defining the default assignment strategy for all agents of this type. Overridden by per-invocation or category-level strategies in the resolution chain.`})
|
|
8254
|
+
AssignmentStrategy?: string;
|
|
8255
|
+
|
|
7693
8256
|
@Field({nullable: true})
|
|
7694
8257
|
@MaxLength(255)
|
|
7695
8258
|
SystemPrompt?: string;
|
|
@@ -7736,6 +8299,9 @@ export class CreateMJAIAgentTypeInput {
|
|
|
7736
8299
|
|
|
7737
8300
|
@Field({ nullable: true })
|
|
7738
8301
|
PromptParamsSchema: string | null;
|
|
8302
|
+
|
|
8303
|
+
@Field({ nullable: true })
|
|
8304
|
+
AssignmentStrategy: string | null;
|
|
7739
8305
|
}
|
|
7740
8306
|
|
|
7741
8307
|
|
|
@@ -7777,6 +8343,9 @@ export class UpdateMJAIAgentTypeInput {
|
|
|
7777
8343
|
@Field({ nullable: true })
|
|
7778
8344
|
PromptParamsSchema?: string | null;
|
|
7779
8345
|
|
|
8346
|
+
@Field({ nullable: true })
|
|
8347
|
+
AssignmentStrategy?: string | null;
|
|
8348
|
+
|
|
7780
8349
|
@Field(() => [KeyValuePairInput], { nullable: true })
|
|
7781
8350
|
OldValues___?: KeyValuePairInput[];
|
|
7782
8351
|
}
|
|
@@ -7834,7 +8403,7 @@ export class MJAIAgentTypeResolver extends ResolverBase {
|
|
|
7834
8403
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
7835
8404
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIAgentTypes')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Agent Types', userPayload, EntityPermissionType.Read, 'AND');
|
|
7836
8405
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
7837
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: AI Agent Types', rows && rows.length > 0 ? rows[0] :
|
|
8406
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Agent Types', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
7838
8407
|
return result;
|
|
7839
8408
|
}
|
|
7840
8409
|
|
|
@@ -8095,6 +8664,10 @@ if this limit is exceeded.`})
|
|
|
8095
8664
|
@Field({nullable: true, description: `JSON configuration for optional reranking of retrieved memory items. Schema: { enabled: boolean, rerankerModelId: string, retrievalMultiplier: number (default 3), minRelevanceThreshold: number (default 0.5), rerankPromptId?: string, contextFields?: string[], fallbackOnError: boolean (default true) }. When null or disabled, vector search results are used directly without reranking.`})
|
|
8096
8665
|
RerankerConfiguration?: string;
|
|
8097
8666
|
|
|
8667
|
+
@Field({nullable: true, description: `Foreign key to AIAgentCategory. Assigns this agent to an organizational category for grouping, filtering, and inherited assignment strategy resolution.`})
|
|
8668
|
+
@MaxLength(36)
|
|
8669
|
+
CategoryID?: string;
|
|
8670
|
+
|
|
8098
8671
|
@Field({nullable: true})
|
|
8099
8672
|
@MaxLength(255)
|
|
8100
8673
|
Parent?: string;
|
|
@@ -8119,6 +8692,10 @@ if this limit is exceeded.`})
|
|
|
8119
8692
|
@MaxLength(50)
|
|
8120
8693
|
AttachmentStorageProvider?: string;
|
|
8121
8694
|
|
|
8695
|
+
@Field({nullable: true})
|
|
8696
|
+
@MaxLength(200)
|
|
8697
|
+
Category?: string;
|
|
8698
|
+
|
|
8122
8699
|
@Field({nullable: true})
|
|
8123
8700
|
@MaxLength(36)
|
|
8124
8701
|
RootParentID?: string;
|
|
@@ -8372,6 +8949,9 @@ export class CreateMJAIAgentInput {
|
|
|
8372
8949
|
|
|
8373
8950
|
@Field({ nullable: true })
|
|
8374
8951
|
RerankerConfiguration: string | null;
|
|
8952
|
+
|
|
8953
|
+
@Field({ nullable: true })
|
|
8954
|
+
CategoryID: string | null;
|
|
8375
8955
|
}
|
|
8376
8956
|
|
|
8377
8957
|
|
|
@@ -8557,6 +9137,9 @@ export class UpdateMJAIAgentInput {
|
|
|
8557
9137
|
@Field({ nullable: true })
|
|
8558
9138
|
RerankerConfiguration?: string | null;
|
|
8559
9139
|
|
|
9140
|
+
@Field({ nullable: true })
|
|
9141
|
+
CategoryID?: string | null;
|
|
9142
|
+
|
|
8560
9143
|
@Field(() => [KeyValuePairInput], { nullable: true })
|
|
8561
9144
|
OldValues___?: KeyValuePairInput[];
|
|
8562
9145
|
}
|
|
@@ -8614,7 +9197,7 @@ export class MJAIAgentResolver extends ResolverBase {
|
|
|
8614
9197
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
8615
9198
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIAgents')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Agents', userPayload, EntityPermissionType.Read, 'AND');
|
|
8616
9199
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
8617
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: AI Agents', rows && rows.length > 0 ? rows[0] :
|
|
9200
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Agents', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
8618
9201
|
return result;
|
|
8619
9202
|
}
|
|
8620
9203
|
|
|
@@ -9041,7 +9624,7 @@ export class MJAIArchitectureResolver extends ResolverBase {
|
|
|
9041
9624
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
9042
9625
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIArchitectures')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Architectures', userPayload, EntityPermissionType.Read, 'AND');
|
|
9043
9626
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
9044
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: AI Architectures', rows && rows.length > 0 ? rows[0] :
|
|
9627
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Architectures', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
9045
9628
|
return result;
|
|
9046
9629
|
}
|
|
9047
9630
|
|
|
@@ -9238,7 +9821,7 @@ export class MJAIConfigurationParamResolver extends ResolverBase {
|
|
|
9238
9821
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
9239
9822
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIConfigurationParams')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Configuration Params', userPayload, EntityPermissionType.Read, 'AND');
|
|
9240
9823
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
9241
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: AI Configuration Params', rows && rows.length > 0 ? rows[0] :
|
|
9824
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Configuration Params', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
9242
9825
|
return result;
|
|
9243
9826
|
}
|
|
9244
9827
|
|
|
@@ -9495,7 +10078,7 @@ export class MJAIConfigurationResolver extends ResolverBase {
|
|
|
9495
10078
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
9496
10079
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIConfigurations')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Configurations', userPayload, EntityPermissionType.Read, 'AND');
|
|
9497
10080
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
9498
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: AI Configurations', rows && rows.length > 0 ? rows[0] :
|
|
10081
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Configurations', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
9499
10082
|
return result;
|
|
9500
10083
|
}
|
|
9501
10084
|
|
|
@@ -9784,7 +10367,7 @@ export class MJAICredentialBindingResolver extends ResolverBase {
|
|
|
9784
10367
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
9785
10368
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAICredentialBindings')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Credential Bindings', userPayload, EntityPermissionType.Read, 'AND');
|
|
9786
10369
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
9787
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: AI Credential Bindings', rows && rows.length > 0 ? rows[0] :
|
|
10370
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Credential Bindings', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
9788
10371
|
return result;
|
|
9789
10372
|
}
|
|
9790
10373
|
|
|
@@ -10007,7 +10590,7 @@ export class MJAIModalityResolver extends ResolverBase {
|
|
|
10007
10590
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
10008
10591
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIModalities')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Modalities', userPayload, EntityPermissionType.Read, 'AND');
|
|
10009
10592
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
10010
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: AI Modalities', rows && rows.length > 0 ? rows[0] :
|
|
10593
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Modalities', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
10011
10594
|
return result;
|
|
10012
10595
|
}
|
|
10013
10596
|
|
|
@@ -10239,7 +10822,7 @@ export class MJAIModelActionResolver extends ResolverBase {
|
|
|
10239
10822
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
10240
10823
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIModelActions')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Model Actions', userPayload, EntityPermissionType.Read, 'AND');
|
|
10241
10824
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
10242
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: AI Model Actions', rows && rows.length > 0 ? rows[0] :
|
|
10825
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Model Actions', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
10243
10826
|
return result;
|
|
10244
10827
|
}
|
|
10245
10828
|
|
|
@@ -10430,7 +11013,7 @@ export class MJAIModelArchitectureResolver extends ResolverBase {
|
|
|
10430
11013
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
10431
11014
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIModelArchitectures')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Model Architectures', userPayload, EntityPermissionType.Read, 'AND');
|
|
10432
11015
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
10433
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: AI Model Architectures', rows && rows.length > 0 ? rows[0] :
|
|
11016
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Model Architectures', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
10434
11017
|
return result;
|
|
10435
11018
|
}
|
|
10436
11019
|
|
|
@@ -10686,7 +11269,7 @@ export class MJAIModelCostResolver extends ResolverBase {
|
|
|
10686
11269
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
10687
11270
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIModelCosts')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Model Costs', userPayload, EntityPermissionType.Read, 'AND');
|
|
10688
11271
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
10689
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: AI Model Costs', rows && rows.length > 0 ? rows[0] :
|
|
11272
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Model Costs', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
10690
11273
|
return result;
|
|
10691
11274
|
}
|
|
10692
11275
|
|
|
@@ -10913,7 +11496,7 @@ export class MJAIModelModalityResolver extends ResolverBase {
|
|
|
10913
11496
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
10914
11497
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIModelModalities')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Model Modalities', userPayload, EntityPermissionType.Read, 'AND');
|
|
10915
11498
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
10916
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: AI Model Modalities', rows && rows.length > 0 ? rows[0] :
|
|
11499
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Model Modalities', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
10917
11500
|
return result;
|
|
10918
11501
|
}
|
|
10919
11502
|
|
|
@@ -11060,7 +11643,7 @@ export class MJAIModelPriceTypeResolver extends ResolverBase {
|
|
|
11060
11643
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
11061
11644
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIModelPriceTypes')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Model Price Types', userPayload, EntityPermissionType.Read, 'AND');
|
|
11062
11645
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
11063
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: AI Model Price Types', rows && rows.length > 0 ? rows[0] :
|
|
11646
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Model Price Types', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
11064
11647
|
return result;
|
|
11065
11648
|
}
|
|
11066
11649
|
|
|
@@ -11227,7 +11810,7 @@ export class MJAIModelPriceUnitTypeResolver extends ResolverBase {
|
|
|
11227
11810
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
11228
11811
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIModelPriceUnitTypes')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Model Price Unit Types', userPayload, EntityPermissionType.Read, 'AND');
|
|
11229
11812
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
11230
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: AI Model Price Unit Types', rows && rows.length > 0 ? rows[0] :
|
|
11813
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Model Price Unit Types', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
11231
11814
|
return result;
|
|
11232
11815
|
}
|
|
11233
11816
|
|
|
@@ -11415,7 +11998,7 @@ export class MJAIModelTypeResolver extends ResolverBase {
|
|
|
11415
11998
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
11416
11999
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIModelTypes')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Model Types', userPayload, EntityPermissionType.Read, 'AND');
|
|
11417
12000
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
11418
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: AI Model Types', rows && rows.length > 0 ? rows[0] :
|
|
12001
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Model Types', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
11419
12002
|
return result;
|
|
11420
12003
|
}
|
|
11421
12004
|
|
|
@@ -11710,7 +12293,7 @@ export class MJAIModelVendorResolver extends ResolverBase {
|
|
|
11710
12293
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
11711
12294
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIModelVendors')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Model Vendors', userPayload, EntityPermissionType.Read, 'AND');
|
|
11712
12295
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
11713
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: AI Model Vendors', rows && rows.length > 0 ? rows[0] :
|
|
12296
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Model Vendors', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
11714
12297
|
return result;
|
|
11715
12298
|
}
|
|
11716
12299
|
|
|
@@ -12073,7 +12656,7 @@ export class MJAIModelResolver extends ResolverBase {
|
|
|
12073
12656
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
12074
12657
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIModels')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Models', userPayload, EntityPermissionType.Read, 'AND');
|
|
12075
12658
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
12076
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: AI Models', rows && rows.length > 0 ? rows[0] :
|
|
12659
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Models', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
12077
12660
|
return result;
|
|
12078
12661
|
}
|
|
12079
12662
|
|
|
@@ -12461,7 +13044,7 @@ export class MJAIPromptCategoryResolver extends ResolverBase {
|
|
|
12461
13044
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
12462
13045
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIPromptCategories')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Prompt Categories', userPayload, EntityPermissionType.Read, 'AND');
|
|
12463
13046
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
12464
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: AI Prompt Categories', rows && rows.length > 0 ? rows[0] :
|
|
13047
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Prompt Categories', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
12465
13048
|
return result;
|
|
12466
13049
|
}
|
|
12467
13050
|
|
|
@@ -12740,7 +13323,7 @@ export class MJAIPromptModelResolver extends ResolverBase {
|
|
|
12740
13323
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
12741
13324
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIPromptModels')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Prompt Models', userPayload, EntityPermissionType.Read, 'AND');
|
|
12742
13325
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
12743
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: AI Prompt Models', rows && rows.length > 0 ? rows[0] :
|
|
13326
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Prompt Models', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
12744
13327
|
return result;
|
|
12745
13328
|
}
|
|
12746
13329
|
|
|
@@ -13021,7 +13604,7 @@ export class MJAIPromptRunMediaResolver extends ResolverBase {
|
|
|
13021
13604
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
13022
13605
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIPromptRunMedias')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Prompt Run Medias', userPayload, EntityPermissionType.Read, 'AND');
|
|
13023
13606
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
13024
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: AI Prompt Run Medias', rows && rows.length > 0 ? rows[0] :
|
|
13607
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Prompt Run Medias', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
13025
13608
|
return result;
|
|
13026
13609
|
}
|
|
13027
13610
|
|
|
@@ -13976,7 +14559,7 @@ export class MJAIPromptRunResolver extends ResolverBase {
|
|
|
13976
14559
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
13977
14560
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIPromptRuns')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Prompt Runs', userPayload, EntityPermissionType.Read, 'AND');
|
|
13978
14561
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
13979
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: AI Prompt Runs', rows && rows.length > 0 ? rows[0] :
|
|
14562
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Prompt Runs', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
13980
14563
|
return result;
|
|
13981
14564
|
}
|
|
13982
14565
|
|
|
@@ -14163,7 +14746,7 @@ export class MJAIPromptTypeResolver extends ResolverBase {
|
|
|
14163
14746
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
14164
14747
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIPromptTypes')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Prompt Types', userPayload, EntityPermissionType.Read, 'AND');
|
|
14165
14748
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
14166
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: AI Prompt Types', rows && rows.length > 0 ? rows[0] :
|
|
14749
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Prompt Types', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
14167
14750
|
return result;
|
|
14168
14751
|
}
|
|
14169
14752
|
|
|
@@ -14818,7 +15401,7 @@ export class MJAIPromptResolver extends ResolverBase {
|
|
|
14818
15401
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
14819
15402
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIPrompts')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Prompts', userPayload, EntityPermissionType.Read, 'AND');
|
|
14820
15403
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
14821
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: AI Prompts', rows && rows.length > 0 ? rows[0] :
|
|
15404
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Prompts', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
14822
15405
|
return result;
|
|
14823
15406
|
}
|
|
14824
15407
|
|
|
@@ -15222,7 +15805,7 @@ export class MJAIResultCacheResolver extends ResolverBase {
|
|
|
15222
15805
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
15223
15806
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIResultCaches')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Result Cache', userPayload, EntityPermissionType.Read, 'AND');
|
|
15224
15807
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
15225
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: AI Result Cache', rows && rows.length > 0 ? rows[0] :
|
|
15808
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Result Cache', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
15226
15809
|
return result;
|
|
15227
15810
|
}
|
|
15228
15811
|
|
|
@@ -15372,7 +15955,7 @@ export class MJAIVendorTypeDefinitionResolver extends ResolverBase {
|
|
|
15372
15955
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
15373
15956
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIVendorTypeDefinitions')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Vendor Type Definitions', userPayload, EntityPermissionType.Read, 'AND');
|
|
15374
15957
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
15375
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: AI Vendor Type Definitions', rows && rows.length > 0 ? rows[0] :
|
|
15958
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Vendor Type Definitions', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
15376
15959
|
return result;
|
|
15377
15960
|
}
|
|
15378
15961
|
|
|
@@ -15564,7 +16147,7 @@ export class MJAIVendorTypeResolver extends ResolverBase {
|
|
|
15564
16147
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
15565
16148
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIVendorTypes')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Vendor Types', userPayload, EntityPermissionType.Read, 'AND');
|
|
15566
16149
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
15567
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: AI Vendor Types', rows && rows.length > 0 ? rows[0] :
|
|
16150
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Vendor Types', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
15568
16151
|
return result;
|
|
15569
16152
|
}
|
|
15570
16153
|
|
|
@@ -15746,7 +16329,7 @@ export class MJAIVendorResolver extends ResolverBase {
|
|
|
15746
16329
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
15747
16330
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIVendors')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Vendors', userPayload, EntityPermissionType.Read, 'AND');
|
|
15748
16331
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
15749
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: AI Vendors', rows && rows.length > 0 ? rows[0] :
|
|
16332
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Vendors', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
15750
16333
|
return result;
|
|
15751
16334
|
}
|
|
15752
16335
|
|
|
@@ -16017,7 +16600,7 @@ export class MJAPIApplicationScopeResolver extends ResolverBase {
|
|
|
16017
16600
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
16018
16601
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAPIApplicationScopes')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: API Application Scopes', userPayload, EntityPermissionType.Read, 'AND');
|
|
16019
16602
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
16020
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: API Application Scopes', rows && rows.length > 0 ? rows[0] :
|
|
16603
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: API Application Scopes', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
16021
16604
|
return result;
|
|
16022
16605
|
}
|
|
16023
16606
|
|
|
@@ -16180,7 +16763,7 @@ export class MJAPIApplicationResolver extends ResolverBase {
|
|
|
16180
16763
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
16181
16764
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAPIApplications')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: API Applications', userPayload, EntityPermissionType.Read, 'AND');
|
|
16182
16765
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
16183
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: API Applications', rows && rows.length > 0 ? rows[0] :
|
|
16766
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: API Applications', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
16184
16767
|
return result;
|
|
16185
16768
|
}
|
|
16186
16769
|
|
|
@@ -16363,7 +16946,7 @@ export class MJAPIKeyApplicationResolver extends ResolverBase {
|
|
|
16363
16946
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
16364
16947
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAPIKeyApplications')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: API Key Applications', userPayload, EntityPermissionType.Read, 'AND');
|
|
16365
16948
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
16366
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: API Key Applications', rows && rows.length > 0 ? rows[0] :
|
|
16949
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: API Key Applications', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
16367
16950
|
return result;
|
|
16368
16951
|
}
|
|
16369
16952
|
|
|
@@ -16554,7 +17137,7 @@ export class MJAPIKeyScopeResolver extends ResolverBase {
|
|
|
16554
17137
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
16555
17138
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAPIKeyScopes')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: API Key Scopes', userPayload, EntityPermissionType.Read, 'AND');
|
|
16556
17139
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
16557
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: API Key Scopes', rows && rows.length > 0 ? rows[0] :
|
|
17140
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: API Key Scopes', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
16558
17141
|
return result;
|
|
16559
17142
|
}
|
|
16560
17143
|
|
|
@@ -16814,7 +17397,7 @@ export class MJAPIKeyUsageLogResolver extends ResolverBase {
|
|
|
16814
17397
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
16815
17398
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAPIKeyUsageLogs')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: API Key Usage Logs', userPayload, EntityPermissionType.Read, 'AND');
|
|
16816
17399
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
16817
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: API Key Usage Logs', rows && rows.length > 0 ? rows[0] :
|
|
17400
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: API Key Usage Logs', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
16818
17401
|
return result;
|
|
16819
17402
|
}
|
|
16820
17403
|
|
|
@@ -17034,7 +17617,7 @@ export class MJAPIKeyResolver extends ResolverBase {
|
|
|
17034
17617
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
17035
17618
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAPIKeys')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: API Keys', userPayload, EntityPermissionType.Read, 'AND');
|
|
17036
17619
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
17037
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: API Keys', rows && rows.length > 0 ? rows[0] :
|
|
17620
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: API Keys', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
17038
17621
|
return result;
|
|
17039
17622
|
}
|
|
17040
17623
|
|
|
@@ -17284,7 +17867,7 @@ export class MJAPIScopeResolver extends ResolverBase {
|
|
|
17284
17867
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
17285
17868
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAPIScopes')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: API Scopes', userPayload, EntityPermissionType.Read, 'AND');
|
|
17286
17869
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
17287
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: API Scopes', rows && rows.length > 0 ? rows[0] :
|
|
17870
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: API Scopes', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
17288
17871
|
return result;
|
|
17289
17872
|
}
|
|
17290
17873
|
|
|
@@ -17498,7 +18081,7 @@ export class MJApplicationEntityResolver extends ResolverBase {
|
|
|
17498
18081
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
17499
18082
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwApplicationEntities')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Application Entities', userPayload, EntityPermissionType.Read, 'AND');
|
|
17500
18083
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
17501
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Application Entities', rows && rows.length > 0 ? rows[0] :
|
|
18084
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Application Entities', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
17502
18085
|
return result;
|
|
17503
18086
|
}
|
|
17504
18087
|
|
|
@@ -17665,7 +18248,7 @@ export class MJApplicationSettingResolver extends ResolverBase {
|
|
|
17665
18248
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
17666
18249
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwApplicationSettings')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Application Settings', userPayload, EntityPermissionType.Read, 'AND');
|
|
17667
18250
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
17668
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Application Settings', rows && rows.length > 0 ? rows[0] :
|
|
18251
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Application Settings', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
17669
18252
|
return result;
|
|
17670
18253
|
}
|
|
17671
18254
|
|
|
@@ -17948,7 +18531,7 @@ export class MJApplicationResolver extends ResolverBase {
|
|
|
17948
18531
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
17949
18532
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwApplications')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Applications', userPayload, EntityPermissionType.Read, 'AND');
|
|
17950
18533
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
17951
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Applications', rows && rows.length > 0 ? rows[0] :
|
|
18534
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Applications', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
17952
18535
|
return result;
|
|
17953
18536
|
}
|
|
17954
18537
|
|
|
@@ -18211,7 +18794,7 @@ export class MJArtifactPermissionResolver extends ResolverBase {
|
|
|
18211
18794
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
18212
18795
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwArtifactPermissions')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Artifact Permissions', userPayload, EntityPermissionType.Read, 'AND');
|
|
18213
18796
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
18214
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Artifact Permissions', rows && rows.length > 0 ? rows[0] :
|
|
18797
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Artifact Permissions', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
18215
18798
|
return result;
|
|
18216
18799
|
}
|
|
18217
18800
|
|
|
@@ -18436,7 +19019,7 @@ export class MJArtifactTypeResolver extends ResolverBase {
|
|
|
18436
19019
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
18437
19020
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwArtifactTypes')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Artifact Types', userPayload, EntityPermissionType.Read, 'AND');
|
|
18438
19021
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
18439
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Artifact Types', rows && rows.length > 0 ? rows[0] :
|
|
19022
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Artifact Types', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
18440
19023
|
return result;
|
|
18441
19024
|
}
|
|
18442
19025
|
|
|
@@ -18658,7 +19241,7 @@ export class MJArtifactUseResolver extends ResolverBase {
|
|
|
18658
19241
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
18659
19242
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwArtifactUses')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Artifact Uses', userPayload, EntityPermissionType.Read, 'AND');
|
|
18660
19243
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
18661
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Artifact Uses', rows && rows.length > 0 ? rows[0] :
|
|
19244
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Artifact Uses', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
18662
19245
|
return result;
|
|
18663
19246
|
}
|
|
18664
19247
|
|
|
@@ -18836,7 +19419,7 @@ export class MJArtifactVersionAttributeResolver extends ResolverBase {
|
|
|
18836
19419
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
18837
19420
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwArtifactVersionAttributes')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Artifact Version Attributes', userPayload, EntityPermissionType.Read, 'AND');
|
|
18838
19421
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
18839
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Artifact Version Attributes', rows && rows.length > 0 ? rows[0] :
|
|
19422
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Artifact Version Attributes', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
18840
19423
|
return result;
|
|
18841
19424
|
}
|
|
18842
19425
|
|
|
@@ -19066,7 +19649,7 @@ export class MJArtifactVersionResolver extends ResolverBase {
|
|
|
19066
19649
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
19067
19650
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwArtifactVersions')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Artifact Versions', userPayload, EntityPermissionType.Read, 'AND');
|
|
19068
19651
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
19069
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Artifact Versions', rows && rows.length > 0 ? rows[0] :
|
|
19652
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Artifact Versions', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
19070
19653
|
return result;
|
|
19071
19654
|
}
|
|
19072
19655
|
|
|
@@ -19317,7 +19900,7 @@ export class MJArtifactResolver extends ResolverBase {
|
|
|
19317
19900
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
19318
19901
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwArtifacts')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Artifacts', userPayload, EntityPermissionType.Read, 'AND');
|
|
19319
19902
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
19320
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Artifacts', rows && rows.length > 0 ? rows[0] :
|
|
19903
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Artifacts', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
19321
19904
|
return result;
|
|
19322
19905
|
}
|
|
19323
19906
|
|
|
@@ -19519,7 +20102,7 @@ export class MJAuditLogTypeResolver extends ResolverBase {
|
|
|
19519
20102
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
19520
20103
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAuditLogTypes')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Audit Log Types', userPayload, EntityPermissionType.Read, 'AND');
|
|
19521
20104
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
19522
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Audit Log Types', rows && rows.length > 0 ? rows[0] :
|
|
20105
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Audit Log Types', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
19523
20106
|
return result;
|
|
19524
20107
|
}
|
|
19525
20108
|
|
|
@@ -19768,7 +20351,7 @@ export class MJAuditLogResolver extends ResolverBase {
|
|
|
19768
20351
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
19769
20352
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAuditLogs')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Audit Logs', userPayload, EntityPermissionType.Read, 'AND');
|
|
19770
20353
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
19771
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Audit Logs', rows && rows.length > 0 ? rows[0] :
|
|
20354
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Audit Logs', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
19772
20355
|
return result;
|
|
19773
20356
|
}
|
|
19774
20357
|
|
|
@@ -19931,7 +20514,7 @@ export class MJAuthorizationRoleResolver extends ResolverBase {
|
|
|
19931
20514
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
19932
20515
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAuthorizationRoles')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Authorization Roles', userPayload, EntityPermissionType.Read, 'AND');
|
|
19933
20516
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
19934
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Authorization Roles', rows && rows.length > 0 ? rows[0] :
|
|
20517
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Authorization Roles', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
19935
20518
|
return result;
|
|
19936
20519
|
}
|
|
19937
20520
|
|
|
@@ -20136,7 +20719,7 @@ export class MJAuthorizationResolver extends ResolverBase {
|
|
|
20136
20719
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
20137
20720
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAuthorizations')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Authorizations', userPayload, EntityPermissionType.Read, 'AND');
|
|
20138
20721
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
20139
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Authorizations', rows && rows.length > 0 ? rows[0] :
|
|
20722
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Authorizations', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
20140
20723
|
return result;
|
|
20141
20724
|
}
|
|
20142
20725
|
|
|
@@ -20358,7 +20941,7 @@ export class MJCollectionArtifactResolver extends ResolverBase {
|
|
|
20358
20941
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
20359
20942
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwCollectionArtifacts')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Collection Artifacts', userPayload, EntityPermissionType.Read, 'AND');
|
|
20360
20943
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
20361
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Collection Artifacts', rows && rows.length > 0 ? rows[0] :
|
|
20944
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Collection Artifacts', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
20362
20945
|
return result;
|
|
20363
20946
|
}
|
|
20364
20947
|
|
|
@@ -20561,7 +21144,7 @@ export class MJCollectionPermissionResolver extends ResolverBase {
|
|
|
20561
21144
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
20562
21145
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwCollectionPermissions')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Collection Permissions', userPayload, EntityPermissionType.Read, 'AND');
|
|
20563
21146
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
20564
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Collection Permissions', rows && rows.length > 0 ? rows[0] :
|
|
21147
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Collection Permissions', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
20565
21148
|
return result;
|
|
20566
21149
|
}
|
|
20567
21150
|
|
|
@@ -20789,7 +21372,7 @@ export class MJCollectionResolver extends ResolverBase {
|
|
|
20789
21372
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
20790
21373
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwCollections')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Collections', userPayload, EntityPermissionType.Read, 'AND');
|
|
20791
21374
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
20792
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Collections', rows && rows.length > 0 ? rows[0] :
|
|
21375
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Collections', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
20793
21376
|
return result;
|
|
20794
21377
|
}
|
|
20795
21378
|
|
|
@@ -20996,7 +21579,7 @@ export class MJCommunicationBaseMessageTypeResolver extends ResolverBase {
|
|
|
20996
21579
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
20997
21580
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwCommunicationBaseMessageTypes')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Communication Base Message Types', userPayload, EntityPermissionType.Read, 'AND');
|
|
20998
21581
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
20999
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Communication Base Message Types', rows && rows.length > 0 ? rows[0] :
|
|
21582
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Communication Base Message Types', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
21000
21583
|
return result;
|
|
21001
21584
|
}
|
|
21002
21585
|
|
|
@@ -21230,7 +21813,7 @@ export class MJCommunicationLogResolver extends ResolverBase {
|
|
|
21230
21813
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
21231
21814
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwCommunicationLogs')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Communication Logs', userPayload, EntityPermissionType.Read, 'AND');
|
|
21232
21815
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
21233
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Communication Logs', rows && rows.length > 0 ? rows[0] :
|
|
21816
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Communication Logs', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
21234
21817
|
return result;
|
|
21235
21818
|
}
|
|
21236
21819
|
|
|
@@ -21415,7 +21998,7 @@ export class MJCommunicationProviderMessageTypeResolver extends ResolverBase {
|
|
|
21415
21998
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
21416
21999
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwCommunicationProviderMessageTypes')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Communication Provider Message Types', userPayload, EntityPermissionType.Read, 'AND');
|
|
21417
22000
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
21418
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Communication Provider Message Types', rows && rows.length > 0 ? rows[0] :
|
|
22001
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Communication Provider Message Types', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
21419
22002
|
return result;
|
|
21420
22003
|
}
|
|
21421
22004
|
|
|
@@ -21639,7 +22222,7 @@ export class MJCommunicationProviderResolver extends ResolverBase {
|
|
|
21639
22222
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
21640
22223
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwCommunicationProviders')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Communication Providers', userPayload, EntityPermissionType.Read, 'AND');
|
|
21641
22224
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
21642
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Communication Providers', rows && rows.length > 0 ? rows[0] :
|
|
22225
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Communication Providers', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
21643
22226
|
return result;
|
|
21644
22227
|
}
|
|
21645
22228
|
|
|
@@ -21857,7 +22440,7 @@ export class MJCommunicationRunResolver extends ResolverBase {
|
|
|
21857
22440
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
21858
22441
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwCommunicationRuns')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Communication Runs', userPayload, EntityPermissionType.Read, 'AND');
|
|
21859
22442
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
21860
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Communication Runs', rows && rows.length > 0 ? rows[0] :
|
|
22443
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Communication Runs', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
21861
22444
|
return result;
|
|
21862
22445
|
}
|
|
21863
22446
|
|
|
@@ -22057,7 +22640,7 @@ export class MJCompanyResolver extends ResolverBase {
|
|
|
22057
22640
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
22058
22641
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwCompanies')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Companies', userPayload, EntityPermissionType.Read, 'AND');
|
|
22059
22642
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
22060
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Companies', rows && rows.length > 0 ? rows[0] :
|
|
22643
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Companies', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
22061
22644
|
return result;
|
|
22062
22645
|
}
|
|
22063
22646
|
|
|
@@ -22372,7 +22955,7 @@ export class MJCompanyIntegrationEntityMapResolver extends ResolverBase {
|
|
|
22372
22955
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
22373
22956
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwCompanyIntegrationEntityMaps')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Company Integration Entity Maps', userPayload, EntityPermissionType.Read, 'AND');
|
|
22374
22957
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
22375
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Company Integration Entity Maps', rows && rows.length > 0 ? rows[0] :
|
|
22958
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Company Integration Entity Maps', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
22376
22959
|
return result;
|
|
22377
22960
|
}
|
|
22378
22961
|
|
|
@@ -22636,7 +23219,7 @@ export class MJCompanyIntegrationFieldMapResolver extends ResolverBase {
|
|
|
22636
23219
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
22637
23220
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwCompanyIntegrationFieldMaps')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Company Integration Field Maps', userPayload, EntityPermissionType.Read, 'AND');
|
|
22638
23221
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
22639
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Company Integration Field Maps', rows && rows.length > 0 ? rows[0] :
|
|
23222
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Company Integration Field Maps', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
22640
23223
|
return result;
|
|
22641
23224
|
}
|
|
22642
23225
|
|
|
@@ -22809,7 +23392,7 @@ export class MJCompanyIntegrationRecordMapResolver extends ResolverBase {
|
|
|
22809
23392
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
22810
23393
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwCompanyIntegrationRecordMaps')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Company Integration Record Maps', userPayload, EntityPermissionType.Read, 'AND');
|
|
22811
23394
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
22812
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Company Integration Record Maps', rows && rows.length > 0 ? rows[0] :
|
|
23395
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Company Integration Record Maps', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
22813
23396
|
return result;
|
|
22814
23397
|
}
|
|
22815
23398
|
|
|
@@ -22994,7 +23577,7 @@ export class MJCompanyIntegrationRunAPILogResolver extends ResolverBase {
|
|
|
22994
23577
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
22995
23578
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwCompanyIntegrationRunAPILogs')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Company Integration Run API Logs', userPayload, EntityPermissionType.Read, 'AND');
|
|
22996
23579
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
22997
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Company Integration Run API Logs', rows && rows.length > 0 ? rows[0] :
|
|
23580
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Company Integration Run API Logs', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
22998
23581
|
return result;
|
|
22999
23582
|
}
|
|
23000
23583
|
|
|
@@ -23190,7 +23773,7 @@ export class MJCompanyIntegrationRunDetailResolver extends ResolverBase {
|
|
|
23190
23773
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
23191
23774
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwCompanyIntegrationRunDetails')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Company Integration Run Details', userPayload, EntityPermissionType.Read, 'AND');
|
|
23192
23775
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
23193
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Company Integration Run Details', rows && rows.length > 0 ? rows[0] :
|
|
23776
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Company Integration Run Details', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
23194
23777
|
return result;
|
|
23195
23778
|
}
|
|
23196
23779
|
|
|
@@ -23430,7 +24013,7 @@ export class MJCompanyIntegrationRunResolver extends ResolverBase {
|
|
|
23430
24013
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
23431
24014
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwCompanyIntegrationRuns')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Company Integration Runs', userPayload, EntityPermissionType.Read, 'AND');
|
|
23432
24015
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
23433
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Company Integration Runs', rows && rows.length > 0 ? rows[0] :
|
|
24016
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Company Integration Runs', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
23434
24017
|
return result;
|
|
23435
24018
|
}
|
|
23436
24019
|
|
|
@@ -23646,7 +24229,7 @@ export class MJCompanyIntegrationSyncWatermarkResolver extends ResolverBase {
|
|
|
23646
24229
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
23647
24230
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwCompanyIntegrationSyncWatermarks')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Company Integration Sync Watermarks', userPayload, EntityPermissionType.Read, 'AND');
|
|
23648
24231
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
23649
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Company Integration Sync Watermarks', rows && rows.length > 0 ? rows[0] :
|
|
24232
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Company Integration Sync Watermarks', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
23650
24233
|
return result;
|
|
23651
24234
|
}
|
|
23652
24235
|
|
|
@@ -24061,7 +24644,7 @@ export class MJCompanyIntegrationResolver extends ResolverBase {
|
|
|
24061
24644
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
24062
24645
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwCompanyIntegrations')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Company Integrations', userPayload, EntityPermissionType.Read, 'AND');
|
|
24063
24646
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
24064
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Company Integrations', rows && rows.length > 0 ? rows[0] :
|
|
24647
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Company Integrations', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
24065
24648
|
return result;
|
|
24066
24649
|
}
|
|
24067
24650
|
|
|
@@ -24264,7 +24847,7 @@ export class MJComponentDependencyResolver extends ResolverBase {
|
|
|
24264
24847
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
24265
24848
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwComponentDependencies')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Component Dependencies', userPayload, EntityPermissionType.Read, 'AND');
|
|
24266
24849
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
24267
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Component Dependencies', rows && rows.length > 0 ? rows[0] :
|
|
24850
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Component Dependencies', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
24268
24851
|
return result;
|
|
24269
24852
|
}
|
|
24270
24853
|
|
|
@@ -24509,7 +25092,7 @@ export class MJComponentLibraryResolver extends ResolverBase {
|
|
|
24509
25092
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
24510
25093
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwComponentLibraries')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Component Libraries', userPayload, EntityPermissionType.Read, 'AND');
|
|
24511
25094
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
24512
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Component Libraries', rows && rows.length > 0 ? rows[0] :
|
|
25095
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Component Libraries', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
24513
25096
|
return result;
|
|
24514
25097
|
}
|
|
24515
25098
|
|
|
@@ -24682,7 +25265,7 @@ export class MJComponentLibraryLinkResolver extends ResolverBase {
|
|
|
24682
25265
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
24683
25266
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwComponentLibraryLinks')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Component Library Links', userPayload, EntityPermissionType.Read, 'AND');
|
|
24684
25267
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
24685
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Component Library Links', rows && rows.length > 0 ? rows[0] :
|
|
25268
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Component Library Links', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
24686
25269
|
return result;
|
|
24687
25270
|
}
|
|
24688
25271
|
|
|
@@ -24869,7 +25452,7 @@ export class MJComponentRegistryResolver extends ResolverBase {
|
|
|
24869
25452
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
24870
25453
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwComponentRegistries')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Component Registries', userPayload, EntityPermissionType.Read, 'AND');
|
|
24871
25454
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
24872
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Component Registries', rows && rows.length > 0 ? rows[0] :
|
|
25455
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Component Registries', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
24873
25456
|
return result;
|
|
24874
25457
|
}
|
|
24875
25458
|
|
|
@@ -25260,7 +25843,7 @@ export class MJComponentResolver extends ResolverBase {
|
|
|
25260
25843
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
25261
25844
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwComponents')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Components', userPayload, EntityPermissionType.Read, 'AND');
|
|
25262
25845
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
25263
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Components', rows && rows.length > 0 ? rows[0] :
|
|
25846
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Components', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
25264
25847
|
return result;
|
|
25265
25848
|
}
|
|
25266
25849
|
|
|
@@ -25441,7 +26024,7 @@ export class MJContentFileTypeResolver extends ResolverBase {
|
|
|
25441
26024
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
25442
26025
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwContentFileTypes')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Content File Types', userPayload, EntityPermissionType.Read, 'AND');
|
|
25443
26026
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
25444
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Content File Types', rows && rows.length > 0 ? rows[0] :
|
|
26027
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Content File Types', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
25445
26028
|
return result;
|
|
25446
26029
|
}
|
|
25447
26030
|
|
|
@@ -25619,7 +26202,7 @@ export class MJContentItemAttributeResolver extends ResolverBase {
|
|
|
25619
26202
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
25620
26203
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwContentItemAttributes')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Content Item Attributes', userPayload, EntityPermissionType.Read, 'AND');
|
|
25621
26204
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
25622
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Content Item Attributes', rows && rows.length > 0 ? rows[0] :
|
|
26205
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Content Item Attributes', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
25623
26206
|
return result;
|
|
25624
26207
|
}
|
|
25625
26208
|
|
|
@@ -25768,7 +26351,7 @@ export class MJContentItemTagResolver extends ResolverBase {
|
|
|
25768
26351
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
25769
26352
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwContentItemTags')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Content Item Tags', userPayload, EntityPermissionType.Read, 'AND');
|
|
25770
26353
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
25771
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Content Item Tags', rows && rows.length > 0 ? rows[0] :
|
|
26354
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Content Item Tags', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
25772
26355
|
return result;
|
|
25773
26356
|
}
|
|
25774
26357
|
|
|
@@ -26003,7 +26586,7 @@ export class MJContentItemResolver extends ResolverBase {
|
|
|
26003
26586
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
26004
26587
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwContentItems')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Content Items', userPayload, EntityPermissionType.Read, 'AND');
|
|
26005
26588
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
26006
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Content Items', rows && rows.length > 0 ? rows[0] :
|
|
26589
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Content Items', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
26007
26590
|
return result;
|
|
26008
26591
|
}
|
|
26009
26592
|
|
|
@@ -26199,7 +26782,7 @@ export class MJContentProcessRunResolver extends ResolverBase {
|
|
|
26199
26782
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
26200
26783
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwContentProcessRuns')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Content Process Runs', userPayload, EntityPermissionType.Read, 'AND');
|
|
26201
26784
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
26202
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Content Process Runs', rows && rows.length > 0 ? rows[0] :
|
|
26785
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Content Process Runs', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
26203
26786
|
return result;
|
|
26204
26787
|
}
|
|
26205
26788
|
|
|
@@ -26357,7 +26940,7 @@ export class MJContentSourceParamResolver extends ResolverBase {
|
|
|
26357
26940
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
26358
26941
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwContentSourceParams')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Content Source Params', userPayload, EntityPermissionType.Read, 'AND');
|
|
26359
26942
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
26360
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Content Source Params', rows && rows.length > 0 ? rows[0] :
|
|
26943
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Content Source Params', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
26361
26944
|
return result;
|
|
26362
26945
|
}
|
|
26363
26946
|
|
|
@@ -26529,7 +27112,7 @@ export class MJContentSourceTypeParamResolver extends ResolverBase {
|
|
|
26529
27112
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
26530
27113
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwContentSourceTypeParams')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Content Source Type Params', userPayload, EntityPermissionType.Read, 'AND');
|
|
26531
27114
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
26532
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Content Source Type Params', rows && rows.length > 0 ? rows[0] :
|
|
27115
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Content Source Type Params', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
26533
27116
|
return result;
|
|
26534
27117
|
}
|
|
26535
27118
|
|
|
@@ -26680,7 +27263,7 @@ export class MJContentSourceTypeResolver extends ResolverBase {
|
|
|
26680
27263
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
26681
27264
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwContentSourceTypes')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Content Source Types', userPayload, EntityPermissionType.Read, 'AND');
|
|
26682
27265
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
26683
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Content Source Types', rows && rows.length > 0 ? rows[0] :
|
|
27266
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Content Source Types', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
26684
27267
|
return result;
|
|
26685
27268
|
}
|
|
26686
27269
|
|
|
@@ -26896,7 +27479,7 @@ export class MJContentSourceResolver extends ResolverBase {
|
|
|
26896
27479
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
26897
27480
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwContentSources')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Content Sources', userPayload, EntityPermissionType.Read, 'AND');
|
|
26898
27481
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
26899
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Content Sources', rows && rows.length > 0 ? rows[0] :
|
|
27482
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Content Sources', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
26900
27483
|
return result;
|
|
26901
27484
|
}
|
|
26902
27485
|
|
|
@@ -27089,7 +27672,7 @@ export class MJContentTypeAttributeResolver extends ResolverBase {
|
|
|
27089
27672
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
27090
27673
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwContentTypeAttributes')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Content Type Attributes', userPayload, EntityPermissionType.Read, 'AND');
|
|
27091
27674
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
27092
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Content Type Attributes', rows && rows.length > 0 ? rows[0] :
|
|
27675
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Content Type Attributes', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
27093
27676
|
return result;
|
|
27094
27677
|
}
|
|
27095
27678
|
|
|
@@ -27271,7 +27854,7 @@ export class MJContentTypeResolver extends ResolverBase {
|
|
|
27271
27854
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
27272
27855
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwContentTypes')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Content Types', userPayload, EntityPermissionType.Read, 'AND');
|
|
27273
27856
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
27274
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Content Types', rows && rows.length > 0 ? rows[0] :
|
|
27857
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Content Types', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
27275
27858
|
return result;
|
|
27276
27859
|
}
|
|
27277
27860
|
|
|
@@ -27450,7 +28033,7 @@ export class MJConversationArtifactPermissionResolver extends ResolverBase {
|
|
|
27450
28033
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
27451
28034
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwConversationArtifactPermissions')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Conversation Artifact Permissions', userPayload, EntityPermissionType.Read, 'AND');
|
|
27452
28035
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
27453
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Conversation Artifact Permissions', rows && rows.length > 0 ? rows[0] :
|
|
28036
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Conversation Artifact Permissions', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
27454
28037
|
return result;
|
|
27455
28038
|
}
|
|
27456
28039
|
|
|
@@ -27628,7 +28211,7 @@ export class MJConversationArtifactVersionResolver extends ResolverBase {
|
|
|
27628
28211
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
27629
28212
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwConversationArtifactVersions')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Conversation Artifact Versions', userPayload, EntityPermissionType.Read, 'AND');
|
|
27630
28213
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
27631
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Conversation Artifact Versions', rows && rows.length > 0 ? rows[0] :
|
|
28214
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Conversation Artifact Versions', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
27632
28215
|
return result;
|
|
27633
28216
|
}
|
|
27634
28217
|
|
|
@@ -27838,7 +28421,7 @@ export class MJConversationArtifactResolver extends ResolverBase {
|
|
|
27838
28421
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
27839
28422
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwConversationArtifacts')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Conversation Artifacts', userPayload, EntityPermissionType.Read, 'AND');
|
|
27840
28423
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
27841
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Conversation Artifacts', rows && rows.length > 0 ? rows[0] :
|
|
28424
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Conversation Artifacts', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
27842
28425
|
return result;
|
|
27843
28426
|
}
|
|
27844
28427
|
|
|
@@ -28030,7 +28613,7 @@ export class MJConversationDetailArtifactResolver extends ResolverBase {
|
|
|
28030
28613
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
28031
28614
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwConversationDetailArtifacts')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Conversation Detail Artifacts', userPayload, EntityPermissionType.Read, 'AND');
|
|
28032
28615
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
28033
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Conversation Detail Artifacts', rows && rows.length > 0 ? rows[0] :
|
|
28616
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Conversation Detail Artifacts', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
28034
28617
|
return result;
|
|
28035
28618
|
}
|
|
28036
28619
|
|
|
@@ -28288,7 +28871,7 @@ export class MJConversationDetailAttachmentResolver extends ResolverBase {
|
|
|
28288
28871
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
28289
28872
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwConversationDetailAttachments')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Conversation Detail Attachments', userPayload, EntityPermissionType.Read, 'AND');
|
|
28290
28873
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
28291
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Conversation Detail Attachments', rows && rows.length > 0 ? rows[0] :
|
|
28874
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Conversation Detail Attachments', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
28292
28875
|
return result;
|
|
28293
28876
|
}
|
|
28294
28877
|
|
|
@@ -28458,7 +29041,7 @@ export class MJConversationDetailRatingResolver extends ResolverBase {
|
|
|
28458
29041
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
28459
29042
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwConversationDetailRatings')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Conversation Detail Ratings', userPayload, EntityPermissionType.Read, 'AND');
|
|
28460
29043
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
28461
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Conversation Detail Ratings', rows && rows.length > 0 ? rows[0] :
|
|
29044
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Conversation Detail Ratings', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
28462
29045
|
return result;
|
|
28463
29046
|
}
|
|
28464
29047
|
|
|
@@ -28867,7 +29450,7 @@ export class MJConversationDetailResolver extends ResolverBase {
|
|
|
28867
29450
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
28868
29451
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwConversationDetails')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Conversation Details', userPayload, EntityPermissionType.Read, 'AND');
|
|
28869
29452
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
28870
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Conversation Details', rows && rows.length > 0 ? rows[0] :
|
|
29453
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Conversation Details', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
28871
29454
|
return result;
|
|
28872
29455
|
}
|
|
28873
29456
|
|
|
@@ -29261,7 +29844,7 @@ export class MJConversationResolver extends ResolverBase {
|
|
|
29261
29844
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
29262
29845
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwConversations')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Conversations', userPayload, EntityPermissionType.Read, 'AND');
|
|
29263
29846
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
29264
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Conversations', rows && rows.length > 0 ? rows[0] :
|
|
29847
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Conversations', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
29265
29848
|
return result;
|
|
29266
29849
|
}
|
|
29267
29850
|
|
|
@@ -29499,7 +30082,7 @@ export class MJCredentialCategoryResolver extends ResolverBase {
|
|
|
29499
30082
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
29500
30083
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwCredentialCategories')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Credential Categories', userPayload, EntityPermissionType.Read, 'AND');
|
|
29501
30084
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
29502
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Credential Categories', rows && rows.length > 0 ? rows[0] :
|
|
30085
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Credential Categories', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
29503
30086
|
return result;
|
|
29504
30087
|
}
|
|
29505
30088
|
|
|
@@ -29714,7 +30297,7 @@ export class MJCredentialTypeResolver extends ResolverBase {
|
|
|
29714
30297
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
29715
30298
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwCredentialTypes')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Credential Types', userPayload, EntityPermissionType.Read, 'AND');
|
|
29716
30299
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
29717
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Credential Types', rows && rows.length > 0 ? rows[0] :
|
|
30300
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Credential Types', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
29718
30301
|
return result;
|
|
29719
30302
|
}
|
|
29720
30303
|
|
|
@@ -30005,7 +30588,7 @@ export class MJCredentialResolver extends ResolverBase {
|
|
|
30005
30588
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
30006
30589
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwCredentials')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Credentials', userPayload, EntityPermissionType.Read, 'AND');
|
|
30007
30590
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
30008
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Credentials', rows && rows.length > 0 ? rows[0] :
|
|
30591
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Credentials', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
30009
30592
|
return result;
|
|
30010
30593
|
}
|
|
30011
30594
|
|
|
@@ -30243,7 +30826,7 @@ export class MJDashboardCategoryResolver extends ResolverBase {
|
|
|
30243
30826
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
30244
30827
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwDashboardCategories')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Dashboard Categories', userPayload, EntityPermissionType.Read, 'AND');
|
|
30245
30828
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
30246
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Dashboard Categories', rows && rows.length > 0 ? rows[0] :
|
|
30829
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Dashboard Categories', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
30247
30830
|
return result;
|
|
30248
30831
|
}
|
|
30249
30832
|
|
|
@@ -30469,7 +31052,7 @@ export class MJDashboardCategoryLinkResolver extends ResolverBase {
|
|
|
30469
31052
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
30470
31053
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwDashboardCategoryLinks')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Dashboard Category Links', userPayload, EntityPermissionType.Read, 'AND');
|
|
30471
31054
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
30472
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Dashboard Category Links', rows && rows.length > 0 ? rows[0] :
|
|
31055
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Dashboard Category Links', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
30473
31056
|
return result;
|
|
30474
31057
|
}
|
|
30475
31058
|
|
|
@@ -30672,7 +31255,7 @@ export class MJDashboardCategoryPermissionResolver extends ResolverBase {
|
|
|
30672
31255
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
30673
31256
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwDashboardCategoryPermissions')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Dashboard Category Permissions', userPayload, EntityPermissionType.Read, 'AND');
|
|
30674
31257
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
30675
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Dashboard Category Permissions', rows && rows.length > 0 ? rows[0] :
|
|
31258
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Dashboard Category Permissions', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
30676
31259
|
return result;
|
|
30677
31260
|
}
|
|
30678
31261
|
|
|
@@ -30873,7 +31456,7 @@ export class MJDashboardPartTypeResolver extends ResolverBase {
|
|
|
30873
31456
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
30874
31457
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwDashboardPartTypes')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Dashboard Part Types', userPayload, EntityPermissionType.Read, 'AND');
|
|
30875
31458
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
30876
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Dashboard Part Types', rows && rows.length > 0 ? rows[0] :
|
|
31459
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Dashboard Part Types', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
30877
31460
|
return result;
|
|
30878
31461
|
}
|
|
30879
31462
|
|
|
@@ -31076,7 +31659,7 @@ export class MJDashboardPermissionResolver extends ResolverBase {
|
|
|
31076
31659
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
31077
31660
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwDashboardPermissions')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Dashboard Permissions', userPayload, EntityPermissionType.Read, 'AND');
|
|
31078
31661
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
31079
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Dashboard Permissions', rows && rows.length > 0 ? rows[0] :
|
|
31662
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Dashboard Permissions', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
31080
31663
|
return result;
|
|
31081
31664
|
}
|
|
31082
31665
|
|
|
@@ -31262,7 +31845,7 @@ export class MJDashboardUserPreferenceResolver extends ResolverBase {
|
|
|
31262
31845
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
31263
31846
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwDashboardUserPreferences')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Dashboard User Preferences', userPayload, EntityPermissionType.Read, 'AND');
|
|
31264
31847
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
31265
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Dashboard User Preferences', rows && rows.length > 0 ? rows[0] :
|
|
31848
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Dashboard User Preferences', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
31266
31849
|
return result;
|
|
31267
31850
|
}
|
|
31268
31851
|
|
|
@@ -31424,7 +32007,7 @@ export class MJDashboardUserStateResolver extends ResolverBase {
|
|
|
31424
32007
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
31425
32008
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwDashboardUserStates')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Dashboard User States', userPayload, EntityPermissionType.Read, 'AND');
|
|
31426
32009
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
31427
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Dashboard User States', rows && rows.length > 0 ? rows[0] :
|
|
32010
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Dashboard User States', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
31428
32011
|
return result;
|
|
31429
32012
|
}
|
|
31430
32013
|
|
|
@@ -31694,7 +32277,7 @@ export class MJDashboardResolver extends ResolverBase {
|
|
|
31694
32277
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
31695
32278
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwDashboards')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Dashboards', userPayload, EntityPermissionType.Read, 'AND');
|
|
31696
32279
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
31697
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Dashboards', rows && rows.length > 0 ? rows[0] :
|
|
32280
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Dashboards', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
31698
32281
|
return result;
|
|
31699
32282
|
}
|
|
31700
32283
|
|
|
@@ -31981,7 +32564,7 @@ export class MJDataContextItemResolver extends ResolverBase {
|
|
|
31981
32564
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
31982
32565
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwDataContextItems')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Data Context Items', userPayload, EntityPermissionType.Read, 'AND');
|
|
31983
32566
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
31984
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Data Context Items', rows && rows.length > 0 ? rows[0] :
|
|
32567
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Data Context Items', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
31985
32568
|
return result;
|
|
31986
32569
|
}
|
|
31987
32570
|
|
|
@@ -32157,7 +32740,7 @@ export class MJDataContextResolver extends ResolverBase {
|
|
|
32157
32740
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
32158
32741
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwDataContexts')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Data Contexts', userPayload, EntityPermissionType.Read, 'AND');
|
|
32159
32742
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
32160
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Data Contexts', rows && rows.length > 0 ? rows[0] :
|
|
32743
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Data Contexts', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
32161
32744
|
return result;
|
|
32162
32745
|
}
|
|
32163
32746
|
|
|
@@ -32396,7 +32979,7 @@ export class MJDatasetItemResolver extends ResolverBase {
|
|
|
32396
32979
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
32397
32980
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwDatasetItems')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Dataset Items', userPayload, EntityPermissionType.Read, 'AND');
|
|
32398
32981
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
32399
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Dataset Items', rows && rows.length > 0 ? rows[0] :
|
|
32982
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Dataset Items', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
32400
32983
|
return result;
|
|
32401
32984
|
}
|
|
32402
32985
|
|
|
@@ -32543,7 +33126,7 @@ export class MJDatasetResolver extends ResolverBase {
|
|
|
32543
33126
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
32544
33127
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwDatasets')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Datasets', userPayload, EntityPermissionType.Read, 'AND');
|
|
32545
33128
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
32546
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Datasets', rows && rows.length > 0 ? rows[0] :
|
|
33129
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Datasets', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
32547
33130
|
return result;
|
|
32548
33131
|
}
|
|
32549
33132
|
|
|
@@ -32783,7 +33366,7 @@ export class MJDuplicateRunDetailMatchResolver extends ResolverBase {
|
|
|
32783
33366
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
32784
33367
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwDuplicateRunDetailMatches')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Duplicate Run Detail Matches', userPayload, EntityPermissionType.Read, 'AND');
|
|
32785
33368
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
32786
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Duplicate Run Detail Matches', rows && rows.length > 0 ? rows[0] :
|
|
33369
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Duplicate Run Detail Matches', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
32787
33370
|
return result;
|
|
32788
33371
|
}
|
|
32789
33372
|
|
|
@@ -32982,7 +33565,7 @@ export class MJDuplicateRunDetailResolver extends ResolverBase {
|
|
|
32982
33565
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
32983
33566
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwDuplicateRunDetails')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Duplicate Run Details', userPayload, EntityPermissionType.Read, 'AND');
|
|
32984
33567
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
32985
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Duplicate Run Details', rows && rows.length > 0 ? rows[0] :
|
|
33568
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Duplicate Run Details', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
32986
33569
|
return result;
|
|
32987
33570
|
}
|
|
32988
33571
|
|
|
@@ -33232,7 +33815,7 @@ export class MJDuplicateRunResolver extends ResolverBase {
|
|
|
33232
33815
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
33233
33816
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwDuplicateRuns')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Duplicate Runs', userPayload, EntityPermissionType.Read, 'AND');
|
|
33234
33817
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
33235
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Duplicate Runs', rows && rows.length > 0 ? rows[0] :
|
|
33818
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Duplicate Runs', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
33236
33819
|
return result;
|
|
33237
33820
|
}
|
|
33238
33821
|
|
|
@@ -33414,7 +33997,7 @@ export class MJEmployeeCompanyIntegrationResolver extends ResolverBase {
|
|
|
33414
33997
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
33415
33998
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwEmployeeCompanyIntegrations')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Employee Company Integrations', userPayload, EntityPermissionType.Read, 'AND');
|
|
33416
33999
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
33417
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Employee Company Integrations', rows && rows.length > 0 ? rows[0] :
|
|
34000
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Employee Company Integrations', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
33418
34001
|
return result;
|
|
33419
34002
|
}
|
|
33420
34003
|
|
|
@@ -33567,7 +34150,7 @@ export class MJEmployeeRoleResolver extends ResolverBase {
|
|
|
33567
34150
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
33568
34151
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwEmployeeRoles')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Employee Roles', userPayload, EntityPermissionType.Read, 'AND');
|
|
33569
34152
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
33570
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Employee Roles', rows && rows.length > 0 ? rows[0] :
|
|
34153
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Employee Roles', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
33571
34154
|
return result;
|
|
33572
34155
|
}
|
|
33573
34156
|
|
|
@@ -33720,7 +34303,7 @@ export class MJEmployeeSkillResolver extends ResolverBase {
|
|
|
33720
34303
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
33721
34304
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwEmployeeSkills')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Employee Skills', userPayload, EntityPermissionType.Read, 'AND');
|
|
33722
34305
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
33723
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Employee Skills', rows && rows.length > 0 ? rows[0] :
|
|
34306
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Employee Skills', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
33724
34307
|
return result;
|
|
33725
34308
|
}
|
|
33726
34309
|
|
|
@@ -33963,7 +34546,7 @@ export class MJEmployeeResolver extends ResolverBase {
|
|
|
33963
34546
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
33964
34547
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwEmployees')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Employees', userPayload, EntityPermissionType.Read, 'AND');
|
|
33965
34548
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
33966
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Employees', rows && rows.length > 0 ? rows[0] :
|
|
34549
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Employees', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
33967
34550
|
return result;
|
|
33968
34551
|
}
|
|
33969
34552
|
|
|
@@ -34216,7 +34799,7 @@ export class MJEncryptionAlgorithmResolver extends ResolverBase {
|
|
|
34216
34799
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
34217
34800
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwEncryptionAlgorithms')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Encryption Algorithms', userPayload, EntityPermissionType.Read, 'AND');
|
|
34218
34801
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
34219
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Encryption Algorithms', rows && rows.length > 0 ? rows[0] :
|
|
34802
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Encryption Algorithms', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
34220
34803
|
return result;
|
|
34221
34804
|
}
|
|
34222
34805
|
|
|
@@ -34421,7 +35004,7 @@ export class MJEncryptionKeySourceResolver extends ResolverBase {
|
|
|
34421
35004
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
34422
35005
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwEncryptionKeySources')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Encryption Key Sources', userPayload, EntityPermissionType.Read, 'AND');
|
|
34423
35006
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
34424
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Encryption Key Sources', rows && rows.length > 0 ? rows[0] :
|
|
35007
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Encryption Key Sources', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
34425
35008
|
return result;
|
|
34426
35009
|
}
|
|
34427
35010
|
|
|
@@ -34673,7 +35256,7 @@ export class MJEncryptionKeyResolver extends ResolverBase {
|
|
|
34673
35256
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
34674
35257
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwEncryptionKeys')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Encryption Keys', userPayload, EntityPermissionType.Read, 'AND');
|
|
34675
35258
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
34676
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Encryption Keys', rows && rows.length > 0 ? rows[0] :
|
|
35259
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Encryption Keys', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
34677
35260
|
return result;
|
|
34678
35261
|
}
|
|
34679
35262
|
|
|
@@ -35489,7 +36072,7 @@ export class MJEntityResolverBase extends ResolverBase {
|
|
|
35489
36072
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
35490
36073
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwEntities')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Entities', userPayload, EntityPermissionType.Read, 'AND');
|
|
35491
36074
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
35492
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Entities', rows && rows.length > 0 ? rows[0] :
|
|
36075
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Entities', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
35493
36076
|
return result;
|
|
35494
36077
|
}
|
|
35495
36078
|
|
|
@@ -36180,7 +36763,7 @@ export class MJEntityActionFilterResolver extends ResolverBase {
|
|
|
36180
36763
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
36181
36764
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwEntityActionFilters')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Entity Action Filters', userPayload, EntityPermissionType.Read, 'AND');
|
|
36182
36765
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
36183
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Entity Action Filters', rows && rows.length > 0 ? rows[0] :
|
|
36766
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Entity Action Filters', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
36184
36767
|
return result;
|
|
36185
36768
|
}
|
|
36186
36769
|
|
|
@@ -36336,7 +36919,7 @@ export class MJEntityActionInvocationTypeResolver extends ResolverBase {
|
|
|
36336
36919
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
36337
36920
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwEntityActionInvocationTypes')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Entity Action Invocation Types', userPayload, EntityPermissionType.Read, 'AND');
|
|
36338
36921
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
36339
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Entity Action Invocation Types', rows && rows.length > 0 ? rows[0] :
|
|
36922
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Entity Action Invocation Types', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
36340
36923
|
return result;
|
|
36341
36924
|
}
|
|
36342
36925
|
|
|
@@ -36509,7 +37092,7 @@ export class MJEntityActionInvocationResolver extends ResolverBase {
|
|
|
36509
37092
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
36510
37093
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwEntityActionInvocations')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Entity Action Invocations', userPayload, EntityPermissionType.Read, 'AND');
|
|
36511
37094
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
36512
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Entity Action Invocations', rows && rows.length > 0 ? rows[0] :
|
|
37095
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Entity Action Invocations', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
36513
37096
|
return result;
|
|
36514
37097
|
}
|
|
36515
37098
|
|
|
@@ -36690,7 +37273,7 @@ export class MJEntityActionParamResolver extends ResolverBase {
|
|
|
36690
37273
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
36691
37274
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwEntityActionParams')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Entity Action Params', userPayload, EntityPermissionType.Read, 'AND');
|
|
36692
37275
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
36693
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Entity Action Params', rows && rows.length > 0 ? rows[0] :
|
|
37276
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Entity Action Params', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
36694
37277
|
return result;
|
|
36695
37278
|
}
|
|
36696
37279
|
|
|
@@ -36862,7 +37445,7 @@ export class MJEntityActionResolver extends ResolverBase {
|
|
|
36862
37445
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
36863
37446
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwEntityActions')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Entity Actions', userPayload, EntityPermissionType.Read, 'AND');
|
|
36864
37447
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
36865
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Entity Actions', rows && rows.length > 0 ? rows[0] :
|
|
37448
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Entity Actions', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
36866
37449
|
return result;
|
|
36867
37450
|
}
|
|
36868
37451
|
|
|
@@ -37149,7 +37732,7 @@ export class MJEntityAIActionResolver extends ResolverBase {
|
|
|
37149
37732
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
37150
37733
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwEntityAIActions')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Entity AI Actions', userPayload, EntityPermissionType.Read, 'AND');
|
|
37151
37734
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
37152
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Entity AI Actions', rows && rows.length > 0 ? rows[0] :
|
|
37735
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Entity AI Actions', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
37153
37736
|
return result;
|
|
37154
37737
|
}
|
|
37155
37738
|
|
|
@@ -37317,7 +37900,7 @@ export class MJEntityCommunicationFieldResolver extends ResolverBase {
|
|
|
37317
37900
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
37318
37901
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwEntityCommunicationFields')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Entity Communication Fields', userPayload, EntityPermissionType.Read, 'AND');
|
|
37319
37902
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
37320
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Entity Communication Fields', rows && rows.length > 0 ? rows[0] :
|
|
37903
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Entity Communication Fields', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
37321
37904
|
return result;
|
|
37322
37905
|
}
|
|
37323
37906
|
|
|
@@ -37482,7 +38065,7 @@ export class MJEntityCommunicationMessageTypeResolver extends ResolverBase {
|
|
|
37482
38065
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
37483
38066
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwEntityCommunicationMessageTypes')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Entity Communication Message Types', userPayload, EntityPermissionType.Read, 'AND');
|
|
37484
38067
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
37485
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Entity Communication Message Types', rows && rows.length > 0 ? rows[0] :
|
|
38068
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Entity Communication Message Types', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
37486
38069
|
return result;
|
|
37487
38070
|
}
|
|
37488
38071
|
|
|
@@ -37659,7 +38242,7 @@ export class MJEntityDocumentRunResolver extends ResolverBase {
|
|
|
37659
38242
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
37660
38243
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwEntityDocumentRuns')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Entity Document Runs', userPayload, EntityPermissionType.Read, 'AND');
|
|
37661
38244
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
37662
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Entity Document Runs', rows && rows.length > 0 ? rows[0] :
|
|
38245
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Entity Document Runs', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
37663
38246
|
return result;
|
|
37664
38247
|
}
|
|
37665
38248
|
|
|
@@ -37826,7 +38409,7 @@ export class MJEntityDocumentSettingResolver extends ResolverBase {
|
|
|
37826
38409
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
37827
38410
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwEntityDocumentSettings')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Entity Document Settings', userPayload, EntityPermissionType.Read, 'AND');
|
|
37828
38411
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
37829
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Entity Document Settings', rows && rows.length > 0 ? rows[0] :
|
|
38412
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Entity Document Settings', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
37830
38413
|
return result;
|
|
37831
38414
|
}
|
|
37832
38415
|
|
|
@@ -37973,7 +38556,7 @@ export class MJEntityDocumentTypeResolver extends ResolverBase {
|
|
|
37973
38556
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
37974
38557
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwEntityDocumentTypes')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Entity Document Types', userPayload, EntityPermissionType.Read, 'AND');
|
|
37975
38558
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
37976
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Entity Document Types', rows && rows.length > 0 ? rows[0] :
|
|
38559
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Entity Document Types', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
37977
38560
|
return result;
|
|
37978
38561
|
}
|
|
37979
38562
|
|
|
@@ -38225,7 +38808,7 @@ export class MJEntityDocumentResolver extends ResolverBase {
|
|
|
38225
38808
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
38226
38809
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwEntityDocuments')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Entity Documents', userPayload, EntityPermissionType.Read, 'AND');
|
|
38227
38810
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
38228
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Entity Documents', rows && rows.length > 0 ? rows[0] :
|
|
38811
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Entity Documents', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
38229
38812
|
return result;
|
|
38230
38813
|
}
|
|
38231
38814
|
|
|
@@ -38440,7 +39023,7 @@ export class MJEntityFieldValueResolver extends ResolverBase {
|
|
|
38440
39023
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
38441
39024
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwEntityFieldValues')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Entity Field Values', userPayload, EntityPermissionType.Read, 'AND');
|
|
38442
39025
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
38443
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Entity Field Values', rows && rows.length > 0 ? rows[0] :
|
|
39026
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Entity Field Values', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
38444
39027
|
return result;
|
|
38445
39028
|
}
|
|
38446
39029
|
|
|
@@ -39056,7 +39639,7 @@ export class MJEntityFieldResolver extends ResolverBase {
|
|
|
39056
39639
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
39057
39640
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwEntityFields')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Entity Fields', userPayload, EntityPermissionType.Read, 'AND');
|
|
39058
39641
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
39059
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Entity Fields', rows && rows.length > 0 ? rows[0] :
|
|
39642
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Entity Fields', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
39060
39643
|
return result;
|
|
39061
39644
|
}
|
|
39062
39645
|
|
|
@@ -39325,7 +39908,7 @@ export class MJEntityPermissionResolver extends ResolverBase {
|
|
|
39325
39908
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
39326
39909
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwEntityPermissions')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Entity Permissions', userPayload, EntityPermissionType.Read, 'AND');
|
|
39327
39910
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
39328
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Entity Permissions', rows && rows.length > 0 ? rows[0] :
|
|
39911
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Entity Permissions', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
39329
39912
|
return result;
|
|
39330
39913
|
}
|
|
39331
39914
|
|
|
@@ -39549,7 +40132,7 @@ export class MJEntityRecordDocumentResolver extends ResolverBase {
|
|
|
39549
40132
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
39550
40133
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwEntityRecordDocuments')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Entity Record Documents', userPayload, EntityPermissionType.Read, 'AND');
|
|
39551
40134
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
39552
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Entity Record Documents', rows && rows.length > 0 ? rows[0] :
|
|
40135
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Entity Record Documents', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
39553
40136
|
return result;
|
|
39554
40137
|
}
|
|
39555
40138
|
|
|
@@ -39706,7 +40289,7 @@ export class MJEntityRelationshipDisplayComponentResolver extends ResolverBase {
|
|
|
39706
40289
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
39707
40290
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwEntityRelationshipDisplayComponents')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Entity Relationship Display Components', userPayload, EntityPermissionType.Read, 'AND');
|
|
39708
40291
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
39709
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Entity Relationship Display Components', rows && rows.length > 0 ? rows[0] :
|
|
40292
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Entity Relationship Display Components', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
39710
40293
|
return result;
|
|
39711
40294
|
}
|
|
39712
40295
|
|
|
@@ -40084,7 +40667,7 @@ export class MJEntityRelationshipResolver extends ResolverBase {
|
|
|
40084
40667
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
40085
40668
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwEntityRelationships')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Entity Relationships', userPayload, EntityPermissionType.Read, 'AND');
|
|
40086
40669
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
40087
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Entity Relationships', rows && rows.length > 0 ? rows[0] :
|
|
40670
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Entity Relationships', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
40088
40671
|
return result;
|
|
40089
40672
|
}
|
|
40090
40673
|
|
|
@@ -40261,7 +40844,7 @@ export class MJEntitySettingResolver extends ResolverBase {
|
|
|
40261
40844
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
40262
40845
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwEntitySettings')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Entity Settings', userPayload, EntityPermissionType.Read, 'AND');
|
|
40263
40846
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
40264
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Entity Settings', rows && rows.length > 0 ? rows[0] :
|
|
40847
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Entity Settings', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
40265
40848
|
return result;
|
|
40266
40849
|
}
|
|
40267
40850
|
|
|
@@ -40444,7 +41027,7 @@ export class MJEnvironmentResolver extends ResolverBase {
|
|
|
40444
41027
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
40445
41028
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwEnvironments')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Environments', userPayload, EntityPermissionType.Read, 'AND');
|
|
40446
41029
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
40447
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Environments', rows && rows.length > 0 ? rows[0] :
|
|
41030
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Environments', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
40448
41031
|
return result;
|
|
40449
41032
|
}
|
|
40450
41033
|
|
|
@@ -40725,7 +41308,7 @@ export class MJErrorLogResolver extends ResolverBase {
|
|
|
40725
41308
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
40726
41309
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwErrorLogs')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Error Logs', userPayload, EntityPermissionType.Read, 'AND');
|
|
40727
41310
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
40728
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Error Logs', rows && rows.length > 0 ? rows[0] :
|
|
41311
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Error Logs', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
40729
41312
|
return result;
|
|
40730
41313
|
}
|
|
40731
41314
|
|
|
@@ -40934,7 +41517,7 @@ export class MJExplorerNavigationItemResolver extends ResolverBase {
|
|
|
40934
41517
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
40935
41518
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwExplorerNavigationItems')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Explorer Navigation Items', userPayload, EntityPermissionType.Read, 'AND');
|
|
40936
41519
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
40937
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Explorer Navigation Items', rows && rows.length > 0 ? rows[0] :
|
|
41520
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Explorer Navigation Items', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
40938
41521
|
return result;
|
|
40939
41522
|
}
|
|
40940
41523
|
|
|
@@ -41102,7 +41685,7 @@ export class MJFileCategoryResolver extends ResolverBase {
|
|
|
41102
41685
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
41103
41686
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwFileCategories')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: File Categories', userPayload, EntityPermissionType.Read, 'AND');
|
|
41104
41687
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
41105
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: File Categories', rows && rows.length > 0 ? rows[0] :
|
|
41688
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: File Categories', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
41106
41689
|
return result;
|
|
41107
41690
|
}
|
|
41108
41691
|
|
|
@@ -41285,7 +41868,7 @@ export class MJFileEntityRecordLinkResolver extends ResolverBase {
|
|
|
41285
41868
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
41286
41869
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwFileEntityRecordLinks')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: File Entity Record Links', userPayload, EntityPermissionType.Read, 'AND');
|
|
41287
41870
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
41288
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: File Entity Record Links', rows && rows.length > 0 ? rows[0] :
|
|
41871
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: File Entity Record Links', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
41289
41872
|
return result;
|
|
41290
41873
|
}
|
|
41291
41874
|
|
|
@@ -41457,7 +42040,7 @@ export class MJFileStorageAccountResolver extends ResolverBase {
|
|
|
41457
42040
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
41458
42041
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwFileStorageAccounts')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: File Storage Accounts', userPayload, EntityPermissionType.Read, 'AND');
|
|
41459
42042
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
41460
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: File Storage Accounts', rows && rows.length > 0 ? rows[0] :
|
|
42043
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: File Storage Accounts', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
41461
42044
|
return result;
|
|
41462
42045
|
}
|
|
41463
42046
|
|
|
@@ -41678,7 +42261,7 @@ export class MJFileStorageProviderResolver extends ResolverBase {
|
|
|
41678
42261
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
41679
42262
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwFileStorageProviders')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: File Storage Providers', userPayload, EntityPermissionType.Read, 'AND');
|
|
41680
42263
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
41681
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: File Storage Providers', rows && rows.length > 0 ? rows[0] :
|
|
42264
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: File Storage Providers', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
41682
42265
|
return result;
|
|
41683
42266
|
}
|
|
41684
42267
|
|
|
@@ -41932,7 +42515,7 @@ export class MJFileResolver extends ResolverBase {
|
|
|
41932
42515
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
41933
42516
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwFiles')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Files', userPayload, EntityPermissionType.Read, 'AND');
|
|
41934
42517
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
41935
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Files', rows && rows.length > 0 ? rows[0] :
|
|
42518
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Files', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
41936
42519
|
return result;
|
|
41937
42520
|
}
|
|
41938
42521
|
|
|
@@ -42140,7 +42723,7 @@ export class MJGeneratedCodeCategoryResolver extends ResolverBase {
|
|
|
42140
42723
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
42141
42724
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwGeneratedCodeCategories')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Generated Code Categories', userPayload, EntityPermissionType.Read, 'AND');
|
|
42142
42725
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
42143
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Generated Code Categories', rows && rows.length > 0 ? rows[0] :
|
|
42726
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Generated Code Categories', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
42144
42727
|
return result;
|
|
42145
42728
|
}
|
|
42146
42729
|
|
|
@@ -42402,7 +42985,7 @@ export class MJGeneratedCodeResolver extends ResolverBase {
|
|
|
42402
42985
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
42403
42986
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwGeneratedCodes')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Generated Codes', userPayload, EntityPermissionType.Read, 'AND');
|
|
42404
42987
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
42405
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Generated Codes', rows && rows.length > 0 ? rows[0] :
|
|
42988
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Generated Codes', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
42406
42989
|
return result;
|
|
42407
42990
|
}
|
|
42408
42991
|
|
|
@@ -42724,7 +43307,7 @@ export class MJIntegrationObjectFieldResolver extends ResolverBase {
|
|
|
42724
43307
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
42725
43308
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwIntegrationObjectFields')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Integration Object Fields', userPayload, EntityPermissionType.Read, 'AND');
|
|
42726
43309
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
42727
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Integration Object Fields', rows && rows.length > 0 ? rows[0] :
|
|
43310
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Integration Object Fields', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
42728
43311
|
return result;
|
|
42729
43312
|
}
|
|
42730
43313
|
|
|
@@ -42828,6 +43411,18 @@ export class MJIntegrationObject_ {
|
|
|
42828
43411
|
@Field()
|
|
42829
43412
|
_mj__UpdatedAt: Date;
|
|
42830
43413
|
|
|
43414
|
+
@Field({nullable: true, description: `API path for create/update operations when different from the read APIPath. If NULL, the read APIPath is used for writes as well.`})
|
|
43415
|
+
@MaxLength(500)
|
|
43416
|
+
WriteAPIPath?: string;
|
|
43417
|
+
|
|
43418
|
+
@Field({nullable: true, description: `HTTP method for create operations. Defaults to POST.`})
|
|
43419
|
+
@MaxLength(10)
|
|
43420
|
+
WriteMethod?: string;
|
|
43421
|
+
|
|
43422
|
+
@Field({nullable: true, description: `HTTP method for delete operations. Defaults to DELETE.`})
|
|
43423
|
+
@MaxLength(10)
|
|
43424
|
+
DeleteMethod?: string;
|
|
43425
|
+
|
|
42831
43426
|
@Field()
|
|
42832
43427
|
@MaxLength(100)
|
|
42833
43428
|
Integration: string;
|
|
@@ -42895,6 +43490,15 @@ export class CreateMJIntegrationObjectInput {
|
|
|
42895
43490
|
|
|
42896
43491
|
@Field({ nullable: true })
|
|
42897
43492
|
Status?: string;
|
|
43493
|
+
|
|
43494
|
+
@Field({ nullable: true })
|
|
43495
|
+
WriteAPIPath: string | null;
|
|
43496
|
+
|
|
43497
|
+
@Field({ nullable: true })
|
|
43498
|
+
WriteMethod?: string | null;
|
|
43499
|
+
|
|
43500
|
+
@Field({ nullable: true })
|
|
43501
|
+
DeleteMethod?: string | null;
|
|
42898
43502
|
}
|
|
42899
43503
|
|
|
42900
43504
|
|
|
@@ -42954,6 +43558,15 @@ export class UpdateMJIntegrationObjectInput {
|
|
|
42954
43558
|
@Field({ nullable: true })
|
|
42955
43559
|
Status?: string;
|
|
42956
43560
|
|
|
43561
|
+
@Field({ nullable: true })
|
|
43562
|
+
WriteAPIPath?: string | null;
|
|
43563
|
+
|
|
43564
|
+
@Field({ nullable: true })
|
|
43565
|
+
WriteMethod?: string | null;
|
|
43566
|
+
|
|
43567
|
+
@Field({ nullable: true })
|
|
43568
|
+
DeleteMethod?: string | null;
|
|
43569
|
+
|
|
42957
43570
|
@Field(() => [KeyValuePairInput], { nullable: true })
|
|
42958
43571
|
OldValues___?: KeyValuePairInput[];
|
|
42959
43572
|
}
|
|
@@ -43011,7 +43624,7 @@ export class MJIntegrationObjectResolver extends ResolverBase {
|
|
|
43011
43624
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
43012
43625
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwIntegrationObjects')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Integration Objects', userPayload, EntityPermissionType.Read, 'AND');
|
|
43013
43626
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
43014
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Integration Objects', rows && rows.length > 0 ? rows[0] :
|
|
43627
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Integration Objects', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
43015
43628
|
return result;
|
|
43016
43629
|
}
|
|
43017
43630
|
|
|
@@ -43208,7 +43821,7 @@ export class MJIntegrationSourceTypeResolver extends ResolverBase {
|
|
|
43208
43821
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
43209
43822
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwIntegrationSourceTypes')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Integration Source Types', userPayload, EntityPermissionType.Read, 'AND');
|
|
43210
43823
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
43211
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Integration Source Types', rows && rows.length > 0 ? rows[0] :
|
|
43824
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Integration Source Types', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
43212
43825
|
return result;
|
|
43213
43826
|
}
|
|
43214
43827
|
|
|
@@ -43394,7 +44007,7 @@ export class MJIntegrationURLFormatResolver extends ResolverBase {
|
|
|
43394
44007
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
43395
44008
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwIntegrationURLFormats')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Integration URL Formats', userPayload, EntityPermissionType.Read, 'AND');
|
|
43396
44009
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
43397
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Integration URL Formats', rows && rows.length > 0 ? rows[0] :
|
|
44010
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Integration URL Formats', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
43398
44011
|
return result;
|
|
43399
44012
|
}
|
|
43400
44013
|
|
|
@@ -43482,6 +44095,9 @@ export class MJIntegration_ {
|
|
|
43482
44095
|
@MaxLength(36)
|
|
43483
44096
|
CredentialTypeID?: string;
|
|
43484
44097
|
|
|
44098
|
+
@Field({nullable: true, description: `Icon for the integration. Supports Font Awesome CSS classes, image URLs, or base64 data URIs.`})
|
|
44099
|
+
Icon?: string;
|
|
44100
|
+
|
|
43485
44101
|
@Field({nullable: true})
|
|
43486
44102
|
@MaxLength(100)
|
|
43487
44103
|
CredentialType?: string;
|
|
@@ -43531,6 +44147,9 @@ export class CreateMJIntegrationInput {
|
|
|
43531
44147
|
|
|
43532
44148
|
@Field({ nullable: true })
|
|
43533
44149
|
CredentialTypeID: string | null;
|
|
44150
|
+
|
|
44151
|
+
@Field({ nullable: true })
|
|
44152
|
+
Icon: string | null;
|
|
43534
44153
|
}
|
|
43535
44154
|
|
|
43536
44155
|
|
|
@@ -43566,6 +44185,9 @@ export class UpdateMJIntegrationInput {
|
|
|
43566
44185
|
@Field({ nullable: true })
|
|
43567
44186
|
CredentialTypeID?: string | null;
|
|
43568
44187
|
|
|
44188
|
+
@Field({ nullable: true })
|
|
44189
|
+
Icon?: string | null;
|
|
44190
|
+
|
|
43569
44191
|
@Field(() => [KeyValuePairInput], { nullable: true })
|
|
43570
44192
|
OldValues___?: KeyValuePairInput[];
|
|
43571
44193
|
}
|
|
@@ -43623,7 +44245,7 @@ export class MJIntegrationResolver extends ResolverBase {
|
|
|
43623
44245
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
43624
44246
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwIntegrations')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Integrations', userPayload, EntityPermissionType.Read, 'AND');
|
|
43625
44247
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
43626
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Integrations', rows && rows.length > 0 ? rows[0] :
|
|
44248
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Integrations', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
43627
44249
|
return result;
|
|
43628
44250
|
}
|
|
43629
44251
|
|
|
@@ -43851,7 +44473,7 @@ export class MJLibraryResolver extends ResolverBase {
|
|
|
43851
44473
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
43852
44474
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwLibraries')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Libraries', userPayload, EntityPermissionType.Read, 'AND');
|
|
43853
44475
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
43854
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Libraries', rows && rows.length > 0 ? rows[0] :
|
|
44476
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Libraries', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
43855
44477
|
return result;
|
|
43856
44478
|
}
|
|
43857
44479
|
|
|
@@ -44030,7 +44652,7 @@ export class MJLibraryItemResolver extends ResolverBase {
|
|
|
44030
44652
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
44031
44653
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwLibraryItems')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Library Items', userPayload, EntityPermissionType.Read, 'AND');
|
|
44032
44654
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
44033
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Library Items', rows && rows.length > 0 ? rows[0] :
|
|
44655
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Library Items', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
44034
44656
|
return result;
|
|
44035
44657
|
}
|
|
44036
44658
|
|
|
@@ -44212,7 +44834,7 @@ export class MJListCategoryResolver extends ResolverBase {
|
|
|
44212
44834
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
44213
44835
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwListCategories')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: List Categories', userPayload, EntityPermissionType.Read, 'AND');
|
|
44214
44836
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
44215
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: List Categories', rows && rows.length > 0 ? rows[0] :
|
|
44837
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: List Categories', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
44216
44838
|
return result;
|
|
44217
44839
|
}
|
|
44218
44840
|
|
|
@@ -44409,7 +45031,7 @@ export class MJListDetailResolver extends ResolverBase {
|
|
|
44409
45031
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
44410
45032
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwListDetails')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: List Details', userPayload, EntityPermissionType.Read, 'AND');
|
|
44411
45033
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
44412
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: List Details', rows && rows.length > 0 ? rows[0] :
|
|
45034
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: List Details', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
44413
45035
|
return result;
|
|
44414
45036
|
}
|
|
44415
45037
|
|
|
@@ -44611,7 +45233,7 @@ export class MJListInvitationResolver extends ResolverBase {
|
|
|
44611
45233
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
44612
45234
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwListInvitations')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: List Invitations', userPayload, EntityPermissionType.Read, 'AND');
|
|
44613
45235
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
44614
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: List Invitations', rows && rows.length > 0 ? rows[0] :
|
|
45236
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: List Invitations', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
44615
45237
|
return result;
|
|
44616
45238
|
}
|
|
44617
45239
|
|
|
@@ -44784,7 +45406,7 @@ export class MJListShareResolver extends ResolverBase {
|
|
|
44784
45406
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
44785
45407
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwListShares')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: List Shares', userPayload, EntityPermissionType.Read, 'AND');
|
|
44786
45408
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
44787
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: List Shares', rows && rows.length > 0 ? rows[0] :
|
|
45409
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: List Shares', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
44788
45410
|
return result;
|
|
44789
45411
|
}
|
|
44790
45412
|
|
|
@@ -45006,7 +45628,7 @@ export class MJListResolver extends ResolverBase {
|
|
|
45006
45628
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
45007
45629
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwLists')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Lists', userPayload, EntityPermissionType.Read, 'AND');
|
|
45008
45630
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
45009
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Lists', rows && rows.length > 0 ? rows[0] :
|
|
45631
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Lists', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
45010
45632
|
return result;
|
|
45011
45633
|
}
|
|
45012
45634
|
|
|
@@ -45240,7 +45862,7 @@ export class MJMCPServerConnectionPermissionResolver extends ResolverBase {
|
|
|
45240
45862
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
45241
45863
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwMCPServerConnectionPermissions')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: MCP Server Connection Permissions', userPayload, EntityPermissionType.Read, 'AND');
|
|
45242
45864
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
45243
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: MCP Server Connection Permissions', rows && rows.length > 0 ? rows[0] :
|
|
45865
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: MCP Server Connection Permissions', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
45244
45866
|
return result;
|
|
45245
45867
|
}
|
|
45246
45868
|
|
|
@@ -45420,7 +46042,7 @@ export class MJMCPServerConnectionToolResolver extends ResolverBase {
|
|
|
45420
46042
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
45421
46043
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwMCPServerConnectionTools')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: MCP Server Connection Tools', userPayload, EntityPermissionType.Read, 'AND');
|
|
45422
46044
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
45423
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: MCP Server Connection Tools', rows && rows.length > 0 ? rows[0] :
|
|
46045
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: MCP Server Connection Tools', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
45424
46046
|
return result;
|
|
45425
46047
|
}
|
|
45426
46048
|
|
|
@@ -45725,7 +46347,7 @@ export class MJMCPServerConnectionResolver extends ResolverBase {
|
|
|
45725
46347
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
45726
46348
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwMCPServerConnections')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: MCP Server Connections', userPayload, EntityPermissionType.Read, 'AND');
|
|
45727
46349
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
45728
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: MCP Server Connections', rows && rows.length > 0 ? rows[0] :
|
|
46350
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: MCP Server Connections', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
45729
46351
|
return result;
|
|
45730
46352
|
}
|
|
45731
46353
|
|
|
@@ -46042,7 +46664,7 @@ export class MJMCPServerToolResolver extends ResolverBase {
|
|
|
46042
46664
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
46043
46665
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwMCPServerTools')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: MCP Server Tools', userPayload, EntityPermissionType.Read, 'AND');
|
|
46044
46666
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
46045
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: MCP Server Tools', rows && rows.length > 0 ? rows[0] :
|
|
46667
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: MCP Server Tools', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
46046
46668
|
return result;
|
|
46047
46669
|
}
|
|
46048
46670
|
|
|
@@ -46410,7 +47032,7 @@ export class MJMCPServerResolver extends ResolverBase {
|
|
|
46410
47032
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
46411
47033
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwMCPServers')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: MCP Servers', userPayload, EntityPermissionType.Read, 'AND');
|
|
46412
47034
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
46413
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: MCP Servers', rows && rows.length > 0 ? rows[0] :
|
|
47035
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: MCP Servers', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
46414
47036
|
return result;
|
|
46415
47037
|
}
|
|
46416
47038
|
|
|
@@ -46689,7 +47311,7 @@ export class MJMCPToolExecutionLogResolver extends ResolverBase {
|
|
|
46689
47311
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
46690
47312
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwMCPToolExecutionLogs')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: MCP Tool Execution Logs', userPayload, EntityPermissionType.Read, 'AND');
|
|
46691
47313
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
46692
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: MCP Tool Execution Logs', rows && rows.length > 0 ? rows[0] :
|
|
47314
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: MCP Tool Execution Logs', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
46693
47315
|
return result;
|
|
46694
47316
|
}
|
|
46695
47317
|
|
|
@@ -46946,7 +47568,7 @@ export class MJOAuthAuthServerMetadataCacheResolver extends ResolverBase {
|
|
|
46946
47568
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
46947
47569
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwOAuthAuthServerMetadataCaches')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: O Auth Auth Server Metadata Caches', userPayload, EntityPermissionType.Read, 'AND');
|
|
46948
47570
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
46949
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: O Auth Auth Server Metadata Caches', rows && rows.length > 0 ? rows[0] :
|
|
47571
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: O Auth Auth Server Metadata Caches', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
46950
47572
|
return result;
|
|
46951
47573
|
}
|
|
46952
47574
|
|
|
@@ -47224,7 +47846,7 @@ export class MJOAuthAuthorizationStateResolver extends ResolverBase {
|
|
|
47224
47846
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
47225
47847
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwOAuthAuthorizationStates')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: O Auth Authorization States', userPayload, EntityPermissionType.Read, 'AND');
|
|
47226
47848
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
47227
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: O Auth Authorization States', rows && rows.length > 0 ? rows[0] :
|
|
47849
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: O Auth Authorization States', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
47228
47850
|
return result;
|
|
47229
47851
|
}
|
|
47230
47852
|
|
|
@@ -47499,7 +48121,7 @@ export class MJOAuthClientRegistrationResolver extends ResolverBase {
|
|
|
47499
48121
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
47500
48122
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwOAuthClientRegistrations')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: O Auth Client Registrations', userPayload, EntityPermissionType.Read, 'AND');
|
|
47501
48123
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
47502
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: O Auth Client Registrations', rows && rows.length > 0 ? rows[0] :
|
|
48124
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: O Auth Client Registrations', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
47503
48125
|
return result;
|
|
47504
48126
|
}
|
|
47505
48127
|
|
|
@@ -47709,7 +48331,7 @@ export class MJOAuthTokenResolver extends ResolverBase {
|
|
|
47709
48331
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
47710
48332
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwOAuthTokens')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: O Auth Tokens', userPayload, EntityPermissionType.Read, 'AND');
|
|
47711
48333
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
47712
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: O Auth Tokens', rows && rows.length > 0 ? rows[0] :
|
|
48334
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: O Auth Tokens', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
47713
48335
|
return result;
|
|
47714
48336
|
}
|
|
47715
48337
|
|
|
@@ -47902,7 +48524,7 @@ export class MJOpenAppDependencyResolver extends ResolverBase {
|
|
|
47902
48524
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
47903
48525
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwOpenAppDependencies')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Open App Dependencies', userPayload, EntityPermissionType.Read, 'AND');
|
|
47904
48526
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
47905
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Open App Dependencies', rows && rows.length > 0 ? rows[0] :
|
|
48527
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Open App Dependencies', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
47906
48528
|
return result;
|
|
47907
48529
|
}
|
|
47908
48530
|
|
|
@@ -48158,7 +48780,7 @@ export class MJOpenAppInstallHistoryResolver extends ResolverBase {
|
|
|
48158
48780
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
48159
48781
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwOpenAppInstallHistories')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Open App Install Histories', userPayload, EntityPermissionType.Read, 'AND');
|
|
48160
48782
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
48161
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Open App Install Histories', rows && rows.length > 0 ? rows[0] :
|
|
48783
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Open App Install Histories', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
48162
48784
|
return result;
|
|
48163
48785
|
}
|
|
48164
48786
|
|
|
@@ -48463,7 +49085,7 @@ export class MJOpenAppResolver extends ResolverBase {
|
|
|
48463
49085
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
48464
49086
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwOpenApps')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Open Apps', userPayload, EntityPermissionType.Read, 'AND');
|
|
48465
49087
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
48466
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Open Apps', rows && rows.length > 0 ? rows[0] :
|
|
49088
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Open Apps', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
48467
49089
|
return result;
|
|
48468
49090
|
}
|
|
48469
49091
|
|
|
@@ -48640,7 +49262,7 @@ export class MJOutputDeliveryTypeResolver extends ResolverBase {
|
|
|
48640
49262
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
48641
49263
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwOutputDeliveryTypes')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Output Delivery Types', userPayload, EntityPermissionType.Read, 'AND');
|
|
48642
49264
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
48643
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Output Delivery Types', rows && rows.length > 0 ? rows[0] :
|
|
49265
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Output Delivery Types', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
48644
49266
|
return result;
|
|
48645
49267
|
}
|
|
48646
49268
|
|
|
@@ -48806,7 +49428,7 @@ export class MJOutputFormatTypeResolver extends ResolverBase {
|
|
|
48806
49428
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
48807
49429
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwOutputFormatTypes')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Output Format Types', userPayload, EntityPermissionType.Read, 'AND');
|
|
48808
49430
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
48809
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Output Format Types', rows && rows.length > 0 ? rows[0] :
|
|
49431
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Output Format Types', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
48810
49432
|
return result;
|
|
48811
49433
|
}
|
|
48812
49434
|
|
|
@@ -48963,7 +49585,7 @@ export class MJOutputTriggerTypeResolver extends ResolverBase {
|
|
|
48963
49585
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
48964
49586
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwOutputTriggerTypes')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Output Trigger Types', userPayload, EntityPermissionType.Read, 'AND');
|
|
48965
49587
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
48966
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Output Trigger Types', rows && rows.length > 0 ? rows[0] :
|
|
49588
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Output Trigger Types', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
48967
49589
|
return result;
|
|
48968
49590
|
}
|
|
48969
49591
|
|
|
@@ -49187,7 +49809,7 @@ export class MJProjectResolver extends ResolverBase {
|
|
|
49187
49809
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
49188
49810
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwProjects')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Projects', userPayload, EntityPermissionType.Read, 'AND');
|
|
49189
49811
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
49190
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Projects', rows && rows.length > 0 ? rows[0] :
|
|
49812
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Projects', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
49191
49813
|
return result;
|
|
49192
49814
|
}
|
|
49193
49815
|
|
|
@@ -49432,7 +50054,7 @@ export class MJPublicLinkResolver extends ResolverBase {
|
|
|
49432
50054
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
49433
50055
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwPublicLinks')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Public Links', userPayload, EntityPermissionType.Read, 'AND');
|
|
49434
50056
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
49435
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Public Links', rows && rows.length > 0 ? rows[0] :
|
|
50057
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Public Links', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
49436
50058
|
return result;
|
|
49437
50059
|
}
|
|
49438
50060
|
|
|
@@ -49545,6 +50167,9 @@ export class MJQuery_ {
|
|
|
49545
50167
|
@MaxLength(36)
|
|
49546
50168
|
SQLDialectID: string;
|
|
49547
50169
|
|
|
50170
|
+
@Field(() => Boolean, {description: `When true, this query can be referenced by other queries using composition syntax. Only queries that are both Reusable and Approved can be composed into other queries.`})
|
|
50171
|
+
Reusable: boolean;
|
|
50172
|
+
|
|
49548
50173
|
@Field({nullable: true})
|
|
49549
50174
|
@MaxLength(50)
|
|
49550
50175
|
Category?: string;
|
|
@@ -49569,12 +50194,18 @@ export class MJQuery_ {
|
|
|
49569
50194
|
@Field(() => [MJQueryParameter_])
|
|
49570
50195
|
MJQueryParameters_QueryIDArray: MJQueryParameter_[]; // Link to MJQueryParameters
|
|
49571
50196
|
|
|
50197
|
+
@Field(() => [MJQueryDependency_])
|
|
50198
|
+
MJQueryDependencies_DependsOnQueryIDArray: MJQueryDependency_[]; // Link to MJQueryDependencies
|
|
50199
|
+
|
|
49572
50200
|
@Field(() => [MJQueryEntity_])
|
|
49573
50201
|
MJQueryEntities_QueryIDArray: MJQueryEntity_[]; // Link to MJQueryEntities
|
|
49574
50202
|
|
|
49575
50203
|
@Field(() => [MJQuerySQL_])
|
|
49576
50204
|
MJQuerySQLs_QueryIDArray: MJQuerySQL_[]; // Link to MJQuerySQLs
|
|
49577
50205
|
|
|
50206
|
+
@Field(() => [MJQueryDependency_])
|
|
50207
|
+
MJQueryDependencies_QueryIDArray: MJQueryDependency_[]; // Link to MJQueryDependencies
|
|
50208
|
+
|
|
49578
50209
|
}
|
|
49579
50210
|
|
|
49580
50211
|
//****************************************************************************
|
|
@@ -49644,6 +50275,9 @@ export class CreateMJQueryInput {
|
|
|
49644
50275
|
|
|
49645
50276
|
@Field({ nullable: true })
|
|
49646
50277
|
SQLDialectID?: string;
|
|
50278
|
+
|
|
50279
|
+
@Field(() => Boolean, { nullable: true })
|
|
50280
|
+
Reusable?: boolean;
|
|
49647
50281
|
}
|
|
49648
50282
|
|
|
49649
50283
|
|
|
@@ -49715,6 +50349,9 @@ export class UpdateMJQueryInput {
|
|
|
49715
50349
|
@Field({ nullable: true })
|
|
49716
50350
|
SQLDialectID?: string;
|
|
49717
50351
|
|
|
50352
|
+
@Field(() => Boolean, { nullable: true })
|
|
50353
|
+
Reusable?: boolean;
|
|
50354
|
+
|
|
49718
50355
|
@Field(() => [KeyValuePairInput], { nullable: true })
|
|
49719
50356
|
OldValues___?: KeyValuePairInput[];
|
|
49720
50357
|
}
|
|
@@ -49772,7 +50409,7 @@ export class MJQueryResolver extends ResolverBase {
|
|
|
49772
50409
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
49773
50410
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwQueries')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Queries', userPayload, EntityPermissionType.Read, 'AND');
|
|
49774
50411
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
49775
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Queries', rows && rows.length > 0 ? rows[0] :
|
|
50412
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Queries', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
49776
50413
|
return result;
|
|
49777
50414
|
}
|
|
49778
50415
|
|
|
@@ -49816,6 +50453,16 @@ export class MJQueryResolver extends ResolverBase {
|
|
|
49816
50453
|
return result;
|
|
49817
50454
|
}
|
|
49818
50455
|
|
|
50456
|
+
@FieldResolver(() => [MJQueryDependency_])
|
|
50457
|
+
async MJQueryDependencies_DependsOnQueryIDArray(@Root() mjquery_: MJQuery_, @Ctx() { userPayload, providers }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
50458
|
+
this.CheckUserReadPermissions('MJ: Query Dependencies', userPayload);
|
|
50459
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
50460
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwQueryDependencies')} WHERE ${provider.QuoteIdentifier('DependsOnQueryID')}='${mjquery_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Query Dependencies', userPayload, EntityPermissionType.Read, 'AND');
|
|
50461
|
+
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
50462
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: Query Dependencies', rows, this.GetUserFromPayload(userPayload));
|
|
50463
|
+
return result;
|
|
50464
|
+
}
|
|
50465
|
+
|
|
49819
50466
|
@FieldResolver(() => [MJQueryEntity_])
|
|
49820
50467
|
async MJQueryEntities_QueryIDArray(@Root() mjquery_: MJQuery_, @Ctx() { userPayload, providers }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
49821
50468
|
this.CheckUserReadPermissions('MJ: Query Entities', userPayload);
|
|
@@ -49836,6 +50483,16 @@ export class MJQueryResolver extends ResolverBase {
|
|
|
49836
50483
|
return result;
|
|
49837
50484
|
}
|
|
49838
50485
|
|
|
50486
|
+
@FieldResolver(() => [MJQueryDependency_])
|
|
50487
|
+
async MJQueryDependencies_QueryIDArray(@Root() mjquery_: MJQuery_, @Ctx() { userPayload, providers }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
50488
|
+
this.CheckUserReadPermissions('MJ: Query Dependencies', userPayload);
|
|
50489
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
50490
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwQueryDependencies')} WHERE ${provider.QuoteIdentifier('QueryID')}='${mjquery_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Query Dependencies', userPayload, EntityPermissionType.Read, 'AND');
|
|
50491
|
+
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
50492
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: Query Dependencies', rows, this.GetUserFromPayload(userPayload));
|
|
50493
|
+
return result;
|
|
50494
|
+
}
|
|
50495
|
+
|
|
49839
50496
|
@Mutation(() => MJQuery_)
|
|
49840
50497
|
async CreateMJQuery(
|
|
49841
50498
|
@Arg('input', () => CreateMJQueryInput) input: CreateMJQueryInput,
|
|
@@ -50050,7 +50707,7 @@ export class MJQueryCategoryResolver extends ResolverBase {
|
|
|
50050
50707
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
50051
50708
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwQueryCategories')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Query Categories', userPayload, EntityPermissionType.Read, 'AND');
|
|
50052
50709
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
50053
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Query Categories', rows && rows.length > 0 ? rows[0] :
|
|
50710
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Query Categories', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
50054
50711
|
return result;
|
|
50055
50712
|
}
|
|
50056
50713
|
|
|
@@ -50103,6 +50760,198 @@ export class MJQueryCategoryResolver extends ResolverBase {
|
|
|
50103
50760
|
|
|
50104
50761
|
}
|
|
50105
50762
|
|
|
50763
|
+
//****************************************************************************
|
|
50764
|
+
// ENTITY CLASS for MJ: Query Dependencies
|
|
50765
|
+
//****************************************************************************
|
|
50766
|
+
@ObjectType({ description: `Tracks which queries reference other queries via composition syntax. Auto-populated by the query save pipeline.` })
|
|
50767
|
+
export class MJQueryDependency_ {
|
|
50768
|
+
@Field()
|
|
50769
|
+
@MaxLength(36)
|
|
50770
|
+
ID: string;
|
|
50771
|
+
|
|
50772
|
+
@Field({description: `Foreign key to the query that contains the composition reference.`})
|
|
50773
|
+
@MaxLength(36)
|
|
50774
|
+
QueryID: string;
|
|
50775
|
+
|
|
50776
|
+
@Field({description: `Foreign key to the referenced (depended-upon) query.`})
|
|
50777
|
+
@MaxLength(36)
|
|
50778
|
+
DependsOnQueryID: string;
|
|
50779
|
+
|
|
50780
|
+
@Field({description: `The full composition reference path as written in the SQL.`})
|
|
50781
|
+
@MaxLength(500)
|
|
50782
|
+
ReferencePath: string;
|
|
50783
|
+
|
|
50784
|
+
@Field({nullable: true, description: `SQL alias used for the composed CTE in the referencing query.`})
|
|
50785
|
+
@MaxLength(100)
|
|
50786
|
+
Alias?: string;
|
|
50787
|
+
|
|
50788
|
+
@Field({nullable: true, description: `JSON object mapping parameter names to values or pass-through parameter names.`})
|
|
50789
|
+
ParameterMapping?: string;
|
|
50790
|
+
|
|
50791
|
+
@Field({description: `How the dependency was detected: Auto (parsed from SQL) or Manual (user-specified).`})
|
|
50792
|
+
@MaxLength(20)
|
|
50793
|
+
DetectionMethod: string;
|
|
50794
|
+
|
|
50795
|
+
@Field()
|
|
50796
|
+
_mj__CreatedAt: Date;
|
|
50797
|
+
|
|
50798
|
+
@Field()
|
|
50799
|
+
_mj__UpdatedAt: Date;
|
|
50800
|
+
|
|
50801
|
+
@Field()
|
|
50802
|
+
@MaxLength(255)
|
|
50803
|
+
Query: string;
|
|
50804
|
+
|
|
50805
|
+
@Field()
|
|
50806
|
+
@MaxLength(255)
|
|
50807
|
+
DependsOnQuery: string;
|
|
50808
|
+
|
|
50809
|
+
}
|
|
50810
|
+
|
|
50811
|
+
//****************************************************************************
|
|
50812
|
+
// INPUT TYPE for MJ: Query Dependencies
|
|
50813
|
+
//****************************************************************************
|
|
50814
|
+
@InputType()
|
|
50815
|
+
export class CreateMJQueryDependencyInput {
|
|
50816
|
+
@Field({ nullable: true })
|
|
50817
|
+
ID?: string;
|
|
50818
|
+
|
|
50819
|
+
@Field({ nullable: true })
|
|
50820
|
+
QueryID?: string;
|
|
50821
|
+
|
|
50822
|
+
@Field({ nullable: true })
|
|
50823
|
+
DependsOnQueryID?: string;
|
|
50824
|
+
|
|
50825
|
+
@Field({ nullable: true })
|
|
50826
|
+
ReferencePath?: string;
|
|
50827
|
+
|
|
50828
|
+
@Field({ nullable: true })
|
|
50829
|
+
Alias: string | null;
|
|
50830
|
+
|
|
50831
|
+
@Field({ nullable: true })
|
|
50832
|
+
ParameterMapping: string | null;
|
|
50833
|
+
|
|
50834
|
+
@Field({ nullable: true })
|
|
50835
|
+
DetectionMethod?: string;
|
|
50836
|
+
}
|
|
50837
|
+
|
|
50838
|
+
|
|
50839
|
+
//****************************************************************************
|
|
50840
|
+
// INPUT TYPE for MJ: Query Dependencies
|
|
50841
|
+
//****************************************************************************
|
|
50842
|
+
@InputType()
|
|
50843
|
+
export class UpdateMJQueryDependencyInput {
|
|
50844
|
+
@Field()
|
|
50845
|
+
ID: string;
|
|
50846
|
+
|
|
50847
|
+
@Field({ nullable: true })
|
|
50848
|
+
QueryID?: string;
|
|
50849
|
+
|
|
50850
|
+
@Field({ nullable: true })
|
|
50851
|
+
DependsOnQueryID?: string;
|
|
50852
|
+
|
|
50853
|
+
@Field({ nullable: true })
|
|
50854
|
+
ReferencePath?: string;
|
|
50855
|
+
|
|
50856
|
+
@Field({ nullable: true })
|
|
50857
|
+
Alias?: string | null;
|
|
50858
|
+
|
|
50859
|
+
@Field({ nullable: true })
|
|
50860
|
+
ParameterMapping?: string | null;
|
|
50861
|
+
|
|
50862
|
+
@Field({ nullable: true })
|
|
50863
|
+
DetectionMethod?: string;
|
|
50864
|
+
|
|
50865
|
+
@Field(() => [KeyValuePairInput], { nullable: true })
|
|
50866
|
+
OldValues___?: KeyValuePairInput[];
|
|
50867
|
+
}
|
|
50868
|
+
|
|
50869
|
+
//****************************************************************************
|
|
50870
|
+
// RESOLVER for MJ: Query Dependencies
|
|
50871
|
+
//****************************************************************************
|
|
50872
|
+
@ObjectType()
|
|
50873
|
+
export class RunMJQueryDependencyViewResult {
|
|
50874
|
+
@Field(() => [MJQueryDependency_])
|
|
50875
|
+
Results: MJQueryDependency_[];
|
|
50876
|
+
|
|
50877
|
+
@Field(() => String, {nullable: true})
|
|
50878
|
+
UserViewRunID?: string;
|
|
50879
|
+
|
|
50880
|
+
@Field(() => Int, {nullable: true})
|
|
50881
|
+
RowCount: number;
|
|
50882
|
+
|
|
50883
|
+
@Field(() => Int, {nullable: true})
|
|
50884
|
+
TotalRowCount: number;
|
|
50885
|
+
|
|
50886
|
+
@Field(() => Int, {nullable: true})
|
|
50887
|
+
ExecutionTime: number;
|
|
50888
|
+
|
|
50889
|
+
@Field({nullable: true})
|
|
50890
|
+
ErrorMessage?: string;
|
|
50891
|
+
|
|
50892
|
+
@Field(() => Boolean, {nullable: false})
|
|
50893
|
+
Success: boolean;
|
|
50894
|
+
}
|
|
50895
|
+
|
|
50896
|
+
@Resolver(MJQueryDependency_)
|
|
50897
|
+
export class MJQueryDependencyResolver extends ResolverBase {
|
|
50898
|
+
@Query(() => RunMJQueryDependencyViewResult)
|
|
50899
|
+
async RunMJQueryDependencyViewByID(@Arg('input', () => RunViewByIDInput) input: RunViewByIDInput, @Ctx() { providers, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
50900
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
50901
|
+
return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
|
|
50902
|
+
}
|
|
50903
|
+
|
|
50904
|
+
@Query(() => RunMJQueryDependencyViewResult)
|
|
50905
|
+
async RunMJQueryDependencyViewByName(@Arg('input', () => RunViewByNameInput) input: RunViewByNameInput, @Ctx() { providers, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
50906
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
50907
|
+
return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
|
|
50908
|
+
}
|
|
50909
|
+
|
|
50910
|
+
@Query(() => RunMJQueryDependencyViewResult)
|
|
50911
|
+
async RunMJQueryDependencyDynamicView(@Arg('input', () => RunDynamicViewInput) input: RunDynamicViewInput, @Ctx() { providers, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
50912
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
50913
|
+
input.EntityName = 'MJ: Query Dependencies';
|
|
50914
|
+
return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
|
|
50915
|
+
}
|
|
50916
|
+
@Query(() => MJQueryDependency_, { nullable: true })
|
|
50917
|
+
async MJQueryDependency(@Arg('ID', () => String) ID: string, @Ctx() { userPayload, providers }: AppContext, @PubSub() pubSub: PubSubEngine): Promise<MJQueryDependency_ | null> {
|
|
50918
|
+
this.CheckUserReadPermissions('MJ: Query Dependencies', userPayload);
|
|
50919
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
50920
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwQueryDependencies')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Query Dependencies', userPayload, EntityPermissionType.Read, 'AND');
|
|
50921
|
+
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
50922
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Query Dependencies', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
50923
|
+
return result;
|
|
50924
|
+
}
|
|
50925
|
+
|
|
50926
|
+
@Mutation(() => MJQueryDependency_)
|
|
50927
|
+
async CreateMJQueryDependency(
|
|
50928
|
+
@Arg('input', () => CreateMJQueryDependencyInput) input: CreateMJQueryDependencyInput,
|
|
50929
|
+
@Ctx() { providers, userPayload }: AppContext,
|
|
50930
|
+
@PubSub() pubSub: PubSubEngine
|
|
50931
|
+
) {
|
|
50932
|
+
const provider = GetReadWriteProvider(providers);
|
|
50933
|
+
return this.CreateRecord('MJ: Query Dependencies', input, provider, userPayload, pubSub)
|
|
50934
|
+
}
|
|
50935
|
+
|
|
50936
|
+
@Mutation(() => MJQueryDependency_)
|
|
50937
|
+
async UpdateMJQueryDependency(
|
|
50938
|
+
@Arg('input', () => UpdateMJQueryDependencyInput) input: UpdateMJQueryDependencyInput,
|
|
50939
|
+
@Ctx() { providers, userPayload }: AppContext,
|
|
50940
|
+
@PubSub() pubSub: PubSubEngine
|
|
50941
|
+
) {
|
|
50942
|
+
const provider = GetReadWriteProvider(providers);
|
|
50943
|
+
return this.UpdateRecord('MJ: Query Dependencies', input, provider, userPayload, pubSub);
|
|
50944
|
+
}
|
|
50945
|
+
|
|
50946
|
+
@Mutation(() => MJQueryDependency_)
|
|
50947
|
+
async DeleteMJQueryDependency(@Arg('ID', () => String) ID: string, @Arg('options___', () => DeleteOptionsInput) options: DeleteOptionsInput, @Ctx() { providers, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
50948
|
+
const provider = GetReadWriteProvider(providers);
|
|
50949
|
+
const key = new CompositeKey([{FieldName: 'ID', Value: ID}]);
|
|
50950
|
+
return this.DeleteRecord('MJ: Query Dependencies', key, options, provider, userPayload, pubSub);
|
|
50951
|
+
}
|
|
50952
|
+
|
|
50953
|
+
}
|
|
50954
|
+
|
|
50106
50955
|
//****************************************************************************
|
|
50107
50956
|
// ENTITY CLASS for MJ: Query Entities
|
|
50108
50957
|
//****************************************************************************
|
|
@@ -50242,7 +51091,7 @@ export class MJQueryEntityResolver extends ResolverBase {
|
|
|
50242
51091
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
50243
51092
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwQueryEntities')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Query Entities', userPayload, EntityPermissionType.Read, 'AND');
|
|
50244
51093
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
50245
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Query Entities', rows && rows.length > 0 ? rows[0] :
|
|
51094
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Query Entities', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
50246
51095
|
return result;
|
|
50247
51096
|
}
|
|
50248
51097
|
|
|
@@ -50508,7 +51357,7 @@ export class MJQueryFieldResolver extends ResolverBase {
|
|
|
50508
51357
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
50509
51358
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwQueryFields')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Query Fields', userPayload, EntityPermissionType.Read, 'AND');
|
|
50510
51359
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
50511
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Query Fields', rows && rows.length > 0 ? rows[0] :
|
|
51360
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Query Fields', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
50512
51361
|
return result;
|
|
50513
51362
|
}
|
|
50514
51363
|
|
|
@@ -50731,7 +51580,7 @@ export class MJQueryParameterResolver extends ResolverBase {
|
|
|
50731
51580
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
50732
51581
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwQueryParameters')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Query Parameters', userPayload, EntityPermissionType.Read, 'AND');
|
|
50733
51582
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
50734
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Query Parameters', rows && rows.length > 0 ? rows[0] :
|
|
51583
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Query Parameters', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
50735
51584
|
return result;
|
|
50736
51585
|
}
|
|
50737
51586
|
|
|
@@ -50884,7 +51733,7 @@ export class MJQueryPermissionResolver extends ResolverBase {
|
|
|
50884
51733
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
50885
51734
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwQueryPermissions')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Query Permissions', userPayload, EntityPermissionType.Read, 'AND');
|
|
50886
51735
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
50887
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Query Permissions', rows && rows.length > 0 ? rows[0] :
|
|
51736
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Query Permissions', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
50888
51737
|
return result;
|
|
50889
51738
|
}
|
|
50890
51739
|
|
|
@@ -51046,7 +51895,7 @@ export class MJQuerySQLResolver extends ResolverBase {
|
|
|
51046
51895
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
51047
51896
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwQuerySQLs')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Query SQLs', userPayload, EntityPermissionType.Read, 'AND');
|
|
51048
51897
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
51049
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Query SQLs', rows && rows.length > 0 ? rows[0] :
|
|
51898
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Query SQLs', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
51050
51899
|
return result;
|
|
51051
51900
|
}
|
|
51052
51901
|
|
|
@@ -51258,7 +52107,7 @@ export class MJQueueTaskResolver extends ResolverBase {
|
|
|
51258
52107
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
51259
52108
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwQueueTasks')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Queue Tasks', userPayload, EntityPermissionType.Read, 'AND');
|
|
51260
52109
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
51261
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Queue Tasks', rows && rows.length > 0 ? rows[0] :
|
|
52110
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Queue Tasks', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
51262
52111
|
return result;
|
|
51263
52112
|
}
|
|
51264
52113
|
|
|
@@ -51434,7 +52283,7 @@ export class MJQueueTypeResolver extends ResolverBase {
|
|
|
51434
52283
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
51435
52284
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwQueueTypes')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Queue Types', userPayload, EntityPermissionType.Read, 'AND');
|
|
51436
52285
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
51437
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Queue Types', rows && rows.length > 0 ? rows[0] :
|
|
52286
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Queue Types', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
51438
52287
|
return result;
|
|
51439
52288
|
}
|
|
51440
52289
|
|
|
@@ -51732,7 +52581,7 @@ export class MJQueueResolver extends ResolverBase {
|
|
|
51732
52581
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
51733
52582
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwQueues')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Queues', userPayload, EntityPermissionType.Read, 'AND');
|
|
51734
52583
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
51735
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Queues', rows && rows.length > 0 ? rows[0] :
|
|
52584
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Queues', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
51736
52585
|
return result;
|
|
51737
52586
|
}
|
|
51738
52587
|
|
|
@@ -51913,7 +52762,7 @@ export class MJRecommendationItemResolver extends ResolverBase {
|
|
|
51913
52762
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
51914
52763
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwRecommendationItems')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Recommendation Items', userPayload, EntityPermissionType.Read, 'AND');
|
|
51915
52764
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
51916
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Recommendation Items', rows && rows.length > 0 ? rows[0] :
|
|
52765
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Recommendation Items', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
51917
52766
|
return result;
|
|
51918
52767
|
}
|
|
51919
52768
|
|
|
@@ -52060,7 +52909,7 @@ export class MJRecommendationProviderResolver extends ResolverBase {
|
|
|
52060
52909
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
52061
52910
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwRecommendationProviders')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Recommendation Providers', userPayload, EntityPermissionType.Read, 'AND');
|
|
52062
52911
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
52063
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Recommendation Providers', rows && rows.length > 0 ? rows[0] :
|
|
52912
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Recommendation Providers', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
52064
52913
|
return result;
|
|
52065
52914
|
}
|
|
52066
52915
|
|
|
@@ -52263,7 +53112,7 @@ export class MJRecommendationRunResolver extends ResolverBase {
|
|
|
52263
53112
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
52264
53113
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwRecommendationRuns')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Recommendation Runs', userPayload, EntityPermissionType.Read, 'AND');
|
|
52265
53114
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
52266
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Recommendation Runs', rows && rows.length > 0 ? rows[0] :
|
|
53115
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Recommendation Runs', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
52267
53116
|
return result;
|
|
52268
53117
|
}
|
|
52269
53118
|
|
|
@@ -52438,7 +53287,7 @@ export class MJRecommendationResolver extends ResolverBase {
|
|
|
52438
53287
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
52439
53288
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwRecommendations')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Recommendations', userPayload, EntityPermissionType.Read, 'AND');
|
|
52440
53289
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
52441
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Recommendations', rows && rows.length > 0 ? rows[0] :
|
|
53290
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Recommendations', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
52442
53291
|
return result;
|
|
52443
53292
|
}
|
|
52444
53293
|
|
|
@@ -52618,7 +53467,7 @@ export class MJRecordChangeReplayRunResolver extends ResolverBase {
|
|
|
52618
53467
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
52619
53468
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwRecordChangeReplayRuns')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Record Change Replay Runs', userPayload, EntityPermissionType.Read, 'AND');
|
|
52620
53469
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
52621
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Record Change Replay Runs', rows && rows.length > 0 ? rows[0] :
|
|
53470
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Record Change Replay Runs', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
52622
53471
|
return result;
|
|
52623
53472
|
}
|
|
52624
53473
|
|
|
@@ -52906,7 +53755,7 @@ export class MJRecordChangeResolver extends ResolverBase {
|
|
|
52906
53755
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
52907
53756
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwRecordChanges')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Record Changes', userPayload, EntityPermissionType.Read, 'AND');
|
|
52908
53757
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
52909
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Record Changes', rows && rows.length > 0 ? rows[0] :
|
|
53758
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Record Changes', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
52910
53759
|
return result;
|
|
52911
53760
|
}
|
|
52912
53761
|
|
|
@@ -53117,7 +53966,7 @@ export class MJRecordLinkResolver extends ResolverBase {
|
|
|
53117
53966
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
53118
53967
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwRecordLinks')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Record Links', userPayload, EntityPermissionType.Read, 'AND');
|
|
53119
53968
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
53120
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Record Links', rows && rows.length > 0 ? rows[0] :
|
|
53969
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Record Links', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
53121
53970
|
return result;
|
|
53122
53971
|
}
|
|
53123
53972
|
|
|
@@ -53285,7 +54134,7 @@ export class MJRecordMergeDeletionLogResolver extends ResolverBase {
|
|
|
53285
54134
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
53286
54135
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwRecordMergeDeletionLogs')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Record Merge Deletion Logs', userPayload, EntityPermissionType.Read, 'AND');
|
|
53287
54136
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
53288
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Record Merge Deletion Logs', rows && rows.length > 0 ? rows[0] :
|
|
54137
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Record Merge Deletion Logs', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
53289
54138
|
return result;
|
|
53290
54139
|
}
|
|
53291
54140
|
|
|
@@ -53524,7 +54373,7 @@ export class MJRecordMergeLogResolver extends ResolverBase {
|
|
|
53524
54373
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
53525
54374
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwRecordMergeLogs')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Record Merge Logs', userPayload, EntityPermissionType.Read, 'AND');
|
|
53526
54375
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
53527
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Record Merge Logs', rows && rows.length > 0 ? rows[0] :
|
|
54376
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Record Merge Logs', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
53528
54377
|
return result;
|
|
53529
54378
|
}
|
|
53530
54379
|
|
|
@@ -53726,7 +54575,7 @@ export class MJReportCategoryResolver extends ResolverBase {
|
|
|
53726
54575
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
53727
54576
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwReportCategories')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Report Categories', userPayload, EntityPermissionType.Read, 'AND');
|
|
53728
54577
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
53729
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Report Categories', rows && rows.length > 0 ? rows[0] :
|
|
54578
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Report Categories', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
53730
54579
|
return result;
|
|
53731
54580
|
}
|
|
53732
54581
|
|
|
@@ -53908,7 +54757,7 @@ export class MJReportSnapshotResolver extends ResolverBase {
|
|
|
53908
54757
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
53909
54758
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwReportSnapshots')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Report Snapshots', userPayload, EntityPermissionType.Read, 'AND');
|
|
53910
54759
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
53911
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Report Snapshots', rows && rows.length > 0 ? rows[0] :
|
|
54760
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Report Snapshots', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
53912
54761
|
return result;
|
|
53913
54762
|
}
|
|
53914
54763
|
|
|
@@ -54070,7 +54919,7 @@ export class MJReportUserStateResolver extends ResolverBase {
|
|
|
54070
54919
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
54071
54920
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwReportUserStates')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Report User States', userPayload, EntityPermissionType.Read, 'AND');
|
|
54072
54921
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
54073
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Report User States', rows && rows.length > 0 ? rows[0] :
|
|
54922
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Report User States', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
54074
54923
|
return result;
|
|
54075
54924
|
}
|
|
54076
54925
|
|
|
@@ -54255,7 +55104,7 @@ export class MJReportVersionResolver extends ResolverBase {
|
|
|
54255
55104
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
54256
55105
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwReportVersions')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Report Versions', userPayload, EntityPermissionType.Read, 'AND');
|
|
54257
55106
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
54258
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Report Versions', rows && rows.length > 0 ? rows[0] :
|
|
55107
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Report Versions', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
54259
55108
|
return result;
|
|
54260
55109
|
}
|
|
54261
55110
|
|
|
@@ -54595,7 +55444,7 @@ export class MJReportResolver extends ResolverBase {
|
|
|
54595
55444
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
54596
55445
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwReports')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Reports', userPayload, EntityPermissionType.Read, 'AND');
|
|
54597
55446
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
54598
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Reports', rows && rows.length > 0 ? rows[0] :
|
|
55447
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Reports', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
54599
55448
|
return result;
|
|
54600
55449
|
}
|
|
54601
55450
|
|
|
@@ -54798,7 +55647,7 @@ export class MJResourceLinkResolver extends ResolverBase {
|
|
|
54798
55647
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
54799
55648
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwResourceLinks')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Resource Links', userPayload, EntityPermissionType.Read, 'AND');
|
|
54800
55649
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
54801
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Resource Links', rows && rows.length > 0 ? rows[0] :
|
|
55650
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Resource Links', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
54802
55651
|
return result;
|
|
54803
55652
|
}
|
|
54804
55653
|
|
|
@@ -55023,7 +55872,7 @@ export class MJResourcePermissionResolver extends ResolverBase {
|
|
|
55023
55872
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
55024
55873
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwResourcePermissions')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Resource Permissions', userPayload, EntityPermissionType.Read, 'AND');
|
|
55025
55874
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
55026
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Resource Permissions', rows && rows.length > 0 ? rows[0] :
|
|
55875
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Resource Permissions', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
55027
55876
|
return result;
|
|
55028
55877
|
}
|
|
55029
55878
|
|
|
@@ -55237,7 +56086,7 @@ export class MJResourceTypeResolver extends ResolverBase {
|
|
|
55237
56086
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
55238
56087
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwResourceTypes')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Resource Types', userPayload, EntityPermissionType.Read, 'AND');
|
|
55239
56088
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
55240
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Resource Types', rows && rows.length > 0 ? rows[0] :
|
|
56089
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Resource Types', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
55241
56090
|
return result;
|
|
55242
56091
|
}
|
|
55243
56092
|
|
|
@@ -55465,7 +56314,7 @@ export class MJRoleResolver extends ResolverBase {
|
|
|
55465
56314
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
55466
56315
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwRoles')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Roles', userPayload, EntityPermissionType.Read, 'AND');
|
|
55467
56316
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
55468
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Roles', rows && rows.length > 0 ? rows[0] :
|
|
56317
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Roles', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
55469
56318
|
return result;
|
|
55470
56319
|
}
|
|
55471
56320
|
|
|
@@ -55720,7 +56569,7 @@ export class MJRowLevelSecurityFilterResolver extends ResolverBase {
|
|
|
55720
56569
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
55721
56570
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwRowLevelSecurityFilters')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Row Level Security Filters', userPayload, EntityPermissionType.Read, 'AND');
|
|
55722
56571
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
55723
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Row Level Security Filters', rows && rows.length > 0 ? rows[0] :
|
|
56572
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Row Level Security Filters', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
55724
56573
|
return result;
|
|
55725
56574
|
}
|
|
55726
56575
|
|
|
@@ -55951,7 +56800,7 @@ export class MJScheduledActionParamResolver extends ResolverBase {
|
|
|
55951
56800
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
55952
56801
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwScheduledActionParams')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Scheduled Action Params', userPayload, EntityPermissionType.Read, 'AND');
|
|
55953
56802
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
55954
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Scheduled Action Params', rows && rows.length > 0 ? rows[0] :
|
|
56803
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Scheduled Action Params', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
55955
56804
|
return result;
|
|
55956
56805
|
}
|
|
55957
56806
|
|
|
@@ -56214,7 +57063,7 @@ export class MJScheduledActionResolver extends ResolverBase {
|
|
|
56214
57063
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
56215
57064
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwScheduledActions')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Scheduled Actions', userPayload, EntityPermissionType.Read, 'AND');
|
|
56216
57065
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
56217
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Scheduled Actions', rows && rows.length > 0 ? rows[0] :
|
|
57066
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Scheduled Actions', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
56218
57067
|
return result;
|
|
56219
57068
|
}
|
|
56220
57069
|
|
|
@@ -56444,7 +57293,7 @@ export class MJScheduledJobRunResolver extends ResolverBase {
|
|
|
56444
57293
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
56445
57294
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwScheduledJobRuns')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Scheduled Job Runs', userPayload, EntityPermissionType.Read, 'AND');
|
|
56446
57295
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
56447
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Scheduled Job Runs', rows && rows.length > 0 ? rows[0] :
|
|
57296
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Scheduled Job Runs', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
56448
57297
|
return result;
|
|
56449
57298
|
}
|
|
56450
57299
|
|
|
@@ -56640,7 +57489,7 @@ export class MJScheduledJobTypeResolver extends ResolverBase {
|
|
|
56640
57489
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
56641
57490
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwScheduledJobTypes')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Scheduled Job Types', userPayload, EntityPermissionType.Read, 'AND');
|
|
56642
57491
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
56643
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Scheduled Job Types', rows && rows.length > 0 ? rows[0] :
|
|
57492
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Scheduled Job Types', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
56644
57493
|
return result;
|
|
56645
57494
|
}
|
|
56646
57495
|
|
|
@@ -57025,7 +57874,7 @@ export class MJScheduledJobResolver extends ResolverBase {
|
|
|
57025
57874
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
57026
57875
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwScheduledJobs')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Scheduled Jobs', userPayload, EntityPermissionType.Read, 'AND');
|
|
57027
57876
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
57028
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Scheduled Jobs', rows && rows.length > 0 ? rows[0] :
|
|
57877
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Scheduled Jobs', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
57029
57878
|
return result;
|
|
57030
57879
|
}
|
|
57031
57880
|
|
|
@@ -57226,7 +58075,7 @@ export class MJSchemaInfoResolver extends ResolverBase {
|
|
|
57226
58075
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
57227
58076
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwSchemaInfos')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Schema Info', userPayload, EntityPermissionType.Read, 'AND');
|
|
57228
58077
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
57229
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Schema Info', rows && rows.length > 0 ? rows[0] :
|
|
58078
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Schema Info', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
57230
58079
|
return result;
|
|
57231
58080
|
}
|
|
57232
58081
|
|
|
@@ -57385,7 +58234,7 @@ export class MJSkillResolver extends ResolverBase {
|
|
|
57385
58234
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
57386
58235
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwSkills')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Skills', userPayload, EntityPermissionType.Read, 'AND');
|
|
57387
58236
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
57388
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Skills', rows && rows.length > 0 ? rows[0] :
|
|
58237
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Skills', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
57389
58238
|
return result;
|
|
57390
58239
|
}
|
|
57391
58240
|
|
|
@@ -57625,7 +58474,7 @@ export class MJSQLDialectResolver extends ResolverBase {
|
|
|
57625
58474
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
57626
58475
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwSQLDialects')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: SQL Dialects', userPayload, EntityPermissionType.Read, 'AND');
|
|
57627
58476
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
57628
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: SQL Dialects', rows && rows.length > 0 ? rows[0] :
|
|
58477
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: SQL Dialects', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
57629
58478
|
return result;
|
|
57630
58479
|
}
|
|
57631
58480
|
|
|
@@ -57808,7 +58657,7 @@ export class MJTaggedItemResolver extends ResolverBase {
|
|
|
57808
58657
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
57809
58658
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwTaggedItems')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Tagged Items', userPayload, EntityPermissionType.Read, 'AND');
|
|
57810
58659
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
57811
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Tagged Items', rows && rows.length > 0 ? rows[0] :
|
|
58660
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Tagged Items', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
57812
58661
|
return result;
|
|
57813
58662
|
}
|
|
57814
58663
|
|
|
@@ -57986,7 +58835,7 @@ export class MJTagResolver extends ResolverBase {
|
|
|
57986
58835
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
57987
58836
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwTags')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Tags', userPayload, EntityPermissionType.Read, 'AND');
|
|
57988
58837
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
57989
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Tags', rows && rows.length > 0 ? rows[0] :
|
|
58838
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Tags', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
57990
58839
|
return result;
|
|
57991
58840
|
}
|
|
57992
58841
|
|
|
@@ -58169,7 +59018,7 @@ export class MJTaskDependencyResolver extends ResolverBase {
|
|
|
58169
59018
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
58170
59019
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwTaskDependencies')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Task Dependencies', userPayload, EntityPermissionType.Read, 'AND');
|
|
58171
59020
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
58172
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Task Dependencies', rows && rows.length > 0 ? rows[0] :
|
|
59021
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Task Dependencies', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
58173
59022
|
return result;
|
|
58174
59023
|
}
|
|
58175
59024
|
|
|
@@ -58316,7 +59165,7 @@ export class MJTaskTypeResolver extends ResolverBase {
|
|
|
58316
59165
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
58317
59166
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwTaskTypes')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Task Types', userPayload, EntityPermissionType.Read, 'AND');
|
|
58318
59167
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
58319
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Task Types', rows && rows.length > 0 ? rows[0] :
|
|
59168
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Task Types', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
58320
59169
|
return result;
|
|
58321
59170
|
}
|
|
58322
59171
|
|
|
@@ -58626,7 +59475,7 @@ export class MJTaskResolver extends ResolverBase {
|
|
|
58626
59475
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
58627
59476
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwTasks')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Tasks', userPayload, EntityPermissionType.Read, 'AND');
|
|
58628
59477
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
58629
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Tasks', rows && rows.length > 0 ? rows[0] :
|
|
59478
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Tasks', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
58630
59479
|
return result;
|
|
58631
59480
|
}
|
|
58632
59481
|
|
|
@@ -58838,7 +59687,7 @@ export class MJTemplateCategoryResolver extends ResolverBase {
|
|
|
58838
59687
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
58839
59688
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwTemplateCategories')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Template Categories', userPayload, EntityPermissionType.Read, 'AND');
|
|
58840
59689
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
58841
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Template Categories', rows && rows.length > 0 ? rows[0] :
|
|
59690
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Template Categories', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
58842
59691
|
return result;
|
|
58843
59692
|
}
|
|
58844
59693
|
|
|
@@ -59015,7 +59864,7 @@ export class MJTemplateContentTypeResolver extends ResolverBase {
|
|
|
59015
59864
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
59016
59865
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwTemplateContentTypes')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Template Content Types', userPayload, EntityPermissionType.Read, 'AND');
|
|
59017
59866
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
59018
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Template Content Types', rows && rows.length > 0 ? rows[0] :
|
|
59867
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Template Content Types', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
59019
59868
|
return result;
|
|
59020
59869
|
}
|
|
59021
59870
|
|
|
@@ -59208,7 +60057,7 @@ export class MJTemplateContentResolver extends ResolverBase {
|
|
|
59208
60057
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
59209
60058
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwTemplateContents')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Template Contents', userPayload, EntityPermissionType.Read, 'AND');
|
|
59210
60059
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
59211
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Template Contents', rows && rows.length > 0 ? rows[0] :
|
|
60060
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Template Contents', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
59212
60061
|
return result;
|
|
59213
60062
|
}
|
|
59214
60063
|
|
|
@@ -59480,7 +60329,7 @@ export class MJTemplateParamResolver extends ResolverBase {
|
|
|
59480
60329
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
59481
60330
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwTemplateParams')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Template Params', userPayload, EntityPermissionType.Read, 'AND');
|
|
59482
60331
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
59483
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Template Params', rows && rows.length > 0 ? rows[0] :
|
|
60332
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Template Params', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
59484
60333
|
return result;
|
|
59485
60334
|
}
|
|
59486
60335
|
|
|
@@ -59706,7 +60555,7 @@ export class MJTemplateResolver extends ResolverBase {
|
|
|
59706
60555
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
59707
60556
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwTemplates')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Templates', userPayload, EntityPermissionType.Read, 'AND');
|
|
59708
60557
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
59709
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Templates', rows && rows.length > 0 ? rows[0] :
|
|
60558
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Templates', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
59710
60559
|
return result;
|
|
59711
60560
|
}
|
|
59712
60561
|
|
|
@@ -59962,7 +60811,7 @@ export class MJTestRubricResolver extends ResolverBase {
|
|
|
59962
60811
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
59963
60812
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwTestRubrics')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Test Rubrics', userPayload, EntityPermissionType.Read, 'AND');
|
|
59964
60813
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
59965
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Test Rubrics', rows && rows.length > 0 ? rows[0] :
|
|
60814
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Test Rubrics', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
59966
60815
|
return result;
|
|
59967
60816
|
}
|
|
59968
60817
|
|
|
@@ -60160,7 +61009,7 @@ export class MJTestRunFeedbackResolver extends ResolverBase {
|
|
|
60160
61009
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
60161
61010
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwTestRunFeedbacks')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Test Run Feedbacks', userPayload, EntityPermissionType.Read, 'AND');
|
|
60162
61011
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
60163
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Test Run Feedbacks', rows && rows.length > 0 ? rows[0] :
|
|
61012
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Test Run Feedbacks', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
60164
61013
|
return result;
|
|
60165
61014
|
}
|
|
60166
61015
|
|
|
@@ -60307,7 +61156,7 @@ export class MJTestRunOutputTypeResolver extends ResolverBase {
|
|
|
60307
61156
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
60308
61157
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwTestRunOutputTypes')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Test Run Output Types', userPayload, EntityPermissionType.Read, 'AND');
|
|
60309
61158
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
60310
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Test Run Output Types', rows && rows.length > 0 ? rows[0] :
|
|
61159
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Test Run Output Types', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
60311
61160
|
return result;
|
|
60312
61161
|
}
|
|
60313
61162
|
|
|
@@ -60571,7 +61420,7 @@ export class MJTestRunOutputResolver extends ResolverBase {
|
|
|
60571
61420
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
60572
61421
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwTestRunOutputs')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Test Run Outputs', userPayload, EntityPermissionType.Read, 'AND');
|
|
60573
61422
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
60574
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Test Run Outputs', rows && rows.length > 0 ? rows[0] :
|
|
61423
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Test Run Outputs', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
60575
61424
|
return result;
|
|
60576
61425
|
}
|
|
60577
61426
|
|
|
@@ -61002,7 +61851,7 @@ export class MJTestRunResolver extends ResolverBase {
|
|
|
61002
61851
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
61003
61852
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwTestRuns')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Test Runs', userPayload, EntityPermissionType.Read, 'AND');
|
|
61004
61853
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
61005
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Test Runs', rows && rows.length > 0 ? rows[0] :
|
|
61854
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Test Runs', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
61006
61855
|
return result;
|
|
61007
61856
|
}
|
|
61008
61857
|
|
|
@@ -61443,7 +62292,7 @@ export class MJTestSuiteRunResolver extends ResolverBase {
|
|
|
61443
62292
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
61444
62293
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwTestSuiteRuns')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Test Suite Runs', userPayload, EntityPermissionType.Read, 'AND');
|
|
61445
62294
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
61446
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Test Suite Runs', rows && rows.length > 0 ? rows[0] :
|
|
62295
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Test Suite Runs', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
61447
62296
|
return result;
|
|
61448
62297
|
}
|
|
61449
62298
|
|
|
@@ -61634,7 +62483,7 @@ export class MJTestSuiteTestResolver extends ResolverBase {
|
|
|
61634
62483
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
61635
62484
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwTestSuiteTests')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Test Suite Tests', userPayload, EntityPermissionType.Read, 'AND');
|
|
61636
62485
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
61637
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Test Suite Tests', rows && rows.length > 0 ? rows[0] :
|
|
62486
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Test Suite Tests', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
61638
62487
|
return result;
|
|
61639
62488
|
}
|
|
61640
62489
|
|
|
@@ -61851,7 +62700,7 @@ export class MJTestSuiteResolver extends ResolverBase {
|
|
|
61851
62700
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
61852
62701
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwTestSuites')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Test Suites', userPayload, EntityPermissionType.Read, 'AND');
|
|
61853
62702
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
61854
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Test Suites', rows && rows.length > 0 ? rows[0] :
|
|
62703
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Test Suites', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
61855
62704
|
return result;
|
|
61856
62705
|
}
|
|
61857
62706
|
|
|
@@ -62060,7 +62909,7 @@ export class MJTestTypeResolver extends ResolverBase {
|
|
|
62060
62909
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
62061
62910
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwTestTypes')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Test Types', userPayload, EntityPermissionType.Read, 'AND');
|
|
62062
62911
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
62063
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Test Types', rows && rows.length > 0 ? rows[0] :
|
|
62912
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Test Types', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
62064
62913
|
return result;
|
|
62065
62914
|
}
|
|
62066
62915
|
|
|
@@ -62344,7 +63193,7 @@ export class MJTestResolver extends ResolverBase {
|
|
|
62344
63193
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
62345
63194
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwTests')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Tests', userPayload, EntityPermissionType.Read, 'AND');
|
|
62346
63195
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
62347
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Tests', rows && rows.length > 0 ? rows[0] :
|
|
63196
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Tests', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
62348
63197
|
return result;
|
|
62349
63198
|
}
|
|
62350
63199
|
|
|
@@ -62530,7 +63379,7 @@ export class MJUserApplicationEntityResolver extends ResolverBase {
|
|
|
62530
63379
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
62531
63380
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwUserApplicationEntities')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: User Application Entities', userPayload, EntityPermissionType.Read, 'AND');
|
|
62532
63381
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
62533
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: User Application Entities', rows && rows.length > 0 ? rows[0] :
|
|
63382
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: User Application Entities', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
62534
63383
|
return result;
|
|
62535
63384
|
}
|
|
62536
63385
|
|
|
@@ -62704,7 +63553,7 @@ export class MJUserApplicationResolver extends ResolverBase {
|
|
|
62704
63553
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
62705
63554
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwUserApplications')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: User Applications', userPayload, EntityPermissionType.Read, 'AND');
|
|
62706
63555
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
62707
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: User Applications', rows && rows.length > 0 ? rows[0] :
|
|
63556
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: User Applications', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
62708
63557
|
return result;
|
|
62709
63558
|
}
|
|
62710
63559
|
|
|
@@ -62881,7 +63730,7 @@ export class MJUserFavoriteResolverBase extends ResolverBase {
|
|
|
62881
63730
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
62882
63731
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwUserFavorites')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: User Favorites', userPayload, EntityPermissionType.Read, 'AND');
|
|
62883
63732
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
62884
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: User Favorites', rows && rows.length > 0 ? rows[0] :
|
|
63733
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: User Favorites', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
62885
63734
|
return result;
|
|
62886
63735
|
}
|
|
62887
63736
|
|
|
@@ -63070,7 +63919,7 @@ export class MJUserNotificationPreferenceResolver extends ResolverBase {
|
|
|
63070
63919
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
63071
63920
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwUserNotificationPreferences')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: User Notification Preferences', userPayload, EntityPermissionType.Read, 'AND');
|
|
63072
63921
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
63073
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: User Notification Preferences', rows && rows.length > 0 ? rows[0] :
|
|
63922
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: User Notification Preferences', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
63074
63923
|
return result;
|
|
63075
63924
|
}
|
|
63076
63925
|
|
|
@@ -63323,7 +64172,7 @@ export class MJUserNotificationTypeResolver extends ResolverBase {
|
|
|
63323
64172
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
63324
64173
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwUserNotificationTypes')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: User Notification Types', userPayload, EntityPermissionType.Read, 'AND');
|
|
63325
64174
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
63326
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: User Notification Types', rows && rows.length > 0 ? rows[0] :
|
|
64175
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: User Notification Types', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
63327
64176
|
return result;
|
|
63328
64177
|
}
|
|
63329
64178
|
|
|
@@ -63566,7 +64415,7 @@ export class MJUserNotificationResolver extends ResolverBase {
|
|
|
63566
64415
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
63567
64416
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwUserNotifications')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: User Notifications', userPayload, EntityPermissionType.Read, 'AND');
|
|
63568
64417
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
63569
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: User Notifications', rows && rows.length > 0 ? rows[0] :
|
|
64418
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: User Notifications', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
63570
64419
|
return result;
|
|
63571
64420
|
}
|
|
63572
64421
|
|
|
@@ -63772,7 +64621,7 @@ export class MJUserRecordLogResolver extends ResolverBase {
|
|
|
63772
64621
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
63773
64622
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwUserRecordLogs')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: User Record Logs', userPayload, EntityPermissionType.Read, 'AND');
|
|
63774
64623
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
63775
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: User Record Logs', rows && rows.length > 0 ? rows[0] :
|
|
64624
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: User Record Logs', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
63776
64625
|
return result;
|
|
63777
64626
|
}
|
|
63778
64627
|
|
|
@@ -63925,7 +64774,7 @@ export class MJUserRoleResolver extends ResolverBase {
|
|
|
63925
64774
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
63926
64775
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwUserRoles')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: User Roles', userPayload, EntityPermissionType.Read, 'AND');
|
|
63927
64776
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
63928
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: User Roles', rows && rows.length > 0 ? rows[0] :
|
|
64777
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: User Roles', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
63929
64778
|
return result;
|
|
63930
64779
|
}
|
|
63931
64780
|
|
|
@@ -64093,7 +64942,7 @@ export class MJUserSettingResolver extends ResolverBase {
|
|
|
64093
64942
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
64094
64943
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwUserSettings')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: User Settings', userPayload, EntityPermissionType.Read, 'AND');
|
|
64095
64944
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
64096
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: User Settings', rows && rows.length > 0 ? rows[0] :
|
|
64945
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: User Settings', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
64097
64946
|
return result;
|
|
64098
64947
|
}
|
|
64099
64948
|
|
|
@@ -64289,7 +65138,7 @@ export class MJUserViewCategoryResolver extends ResolverBase {
|
|
|
64289
65138
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
64290
65139
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwUserViewCategories')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: User View Categories', userPayload, EntityPermissionType.Read, 'AND');
|
|
64291
65140
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
64292
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: User View Categories', rows && rows.length > 0 ? rows[0] :
|
|
65141
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: User View Categories', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
64293
65142
|
return result;
|
|
64294
65143
|
}
|
|
64295
65144
|
|
|
@@ -64462,7 +65311,7 @@ export class MJUserViewRunDetailResolver extends ResolverBase {
|
|
|
64462
65311
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
64463
65312
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwUserViewRunDetails')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: User View Run Details', userPayload, EntityPermissionType.Read, 'AND');
|
|
64464
65313
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
64465
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: User View Run Details', rows && rows.length > 0 ? rows[0] :
|
|
65314
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: User View Run Details', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
64466
65315
|
return result;
|
|
64467
65316
|
}
|
|
64468
65317
|
|
|
@@ -64627,7 +65476,7 @@ export class MJUserViewRunResolver extends ResolverBase {
|
|
|
64627
65476
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
64628
65477
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwUserViewRuns')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: User View Runs', userPayload, EntityPermissionType.Read, 'AND');
|
|
64629
65478
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
64630
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: User View Runs', rows && rows.length > 0 ? rows[0] :
|
|
65479
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: User View Runs', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
64631
65480
|
return result;
|
|
64632
65481
|
}
|
|
64633
65482
|
|
|
@@ -64979,7 +65828,7 @@ export class MJUserViewResolverBase extends ResolverBase {
|
|
|
64979
65828
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
64980
65829
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwUserViews')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: User Views', userPayload, EntityPermissionType.Read, 'AND');
|
|
64981
65830
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
64982
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: User Views', rows && rows.length > 0 ? rows[0] :
|
|
65831
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: User Views', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
64983
65832
|
return result;
|
|
64984
65833
|
}
|
|
64985
65834
|
|
|
@@ -65545,7 +66394,7 @@ export class MJUserResolverBase extends ResolverBase {
|
|
|
65545
66394
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
65546
66395
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwUsers')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Users', userPayload, EntityPermissionType.Read, 'AND');
|
|
65547
66396
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
65548
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Users', rows && rows.length > 0 ? rows[0] :
|
|
66397
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Users', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
65549
66398
|
return result;
|
|
65550
66399
|
}
|
|
65551
66400
|
|
|
@@ -66555,7 +67404,7 @@ export class MJVectorDatabaseResolver extends ResolverBase {
|
|
|
66555
67404
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
66556
67405
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwVectorDatabases')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Vector Databases', userPayload, EntityPermissionType.Read, 'AND');
|
|
66557
67406
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
66558
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Vector Databases', rows && rows.length > 0 ? rows[0] :
|
|
67407
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Vector Databases', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
66559
67408
|
return result;
|
|
66560
67409
|
}
|
|
66561
67410
|
|
|
@@ -66750,7 +67599,7 @@ export class MJVectorIndexResolver extends ResolverBase {
|
|
|
66750
67599
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
66751
67600
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwVectorIndexes')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Vector Indexes', userPayload, EntityPermissionType.Read, 'AND');
|
|
66752
67601
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
66753
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Vector Indexes', rows && rows.length > 0 ? rows[0] :
|
|
67602
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Vector Indexes', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
66754
67603
|
return result;
|
|
66755
67604
|
}
|
|
66756
67605
|
|
|
@@ -66963,7 +67812,7 @@ export class MJVersionInstallationResolver extends ResolverBase {
|
|
|
66963
67812
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
66964
67813
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwVersionInstallations')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Version Installations', userPayload, EntityPermissionType.Read, 'AND');
|
|
66965
67814
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
66966
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Version Installations', rows && rows.length > 0 ? rows[0] :
|
|
67815
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Version Installations', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
66967
67816
|
return result;
|
|
66968
67817
|
}
|
|
66969
67818
|
|
|
@@ -67139,7 +67988,7 @@ export class MJVersionLabelItemResolver extends ResolverBase {
|
|
|
67139
67988
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
67140
67989
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwVersionLabelItems')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Version Label Items', userPayload, EntityPermissionType.Read, 'AND');
|
|
67141
67990
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
67142
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Version Label Items', rows && rows.length > 0 ? rows[0] :
|
|
67991
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Version Label Items', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
67143
67992
|
return result;
|
|
67144
67993
|
}
|
|
67145
67994
|
|
|
@@ -67370,7 +68219,7 @@ export class MJVersionLabelRestoreResolver extends ResolverBase {
|
|
|
67370
68219
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
67371
68220
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwVersionLabelRestores')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Version Label Restores', userPayload, EntityPermissionType.Read, 'AND');
|
|
67372
68221
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
67373
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Version Label Restores', rows && rows.length > 0 ? rows[0] :
|
|
68222
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Version Label Restores', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
67374
68223
|
return result;
|
|
67375
68224
|
}
|
|
67376
68225
|
|
|
@@ -67630,7 +68479,7 @@ export class MJVersionLabelResolver extends ResolverBase {
|
|
|
67630
68479
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
67631
68480
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwVersionLabels')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Version Labels', userPayload, EntityPermissionType.Read, 'AND');
|
|
67632
68481
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
67633
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Version Labels', rows && rows.length > 0 ? rows[0] :
|
|
68482
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Version Labels', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
67634
68483
|
return result;
|
|
67635
68484
|
}
|
|
67636
68485
|
|
|
@@ -67837,7 +68686,7 @@ export class MJWorkflowEngineResolver extends ResolverBase {
|
|
|
67837
68686
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
67838
68687
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwWorkflowEngines')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Workflow Engines', userPayload, EntityPermissionType.Read, 'AND');
|
|
67839
68688
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
67840
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Workflow Engines', rows && rows.length > 0 ? rows[0] :
|
|
68689
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Workflow Engines', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
67841
68690
|
return result;
|
|
67842
68691
|
}
|
|
67843
68692
|
|
|
@@ -68037,7 +68886,7 @@ export class MJWorkflowRunResolver extends ResolverBase {
|
|
|
68037
68886
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
68038
68887
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwWorkflowRuns')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Workflow Runs', userPayload, EntityPermissionType.Read, 'AND');
|
|
68039
68888
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
68040
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Workflow Runs', rows && rows.length > 0 ? rows[0] :
|
|
68889
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Workflow Runs', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
68041
68890
|
return result;
|
|
68042
68891
|
}
|
|
68043
68892
|
|
|
@@ -68248,7 +69097,7 @@ export class MJWorkflowResolver extends ResolverBase {
|
|
|
68248
69097
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
68249
69098
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwWorkflows')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Workflows', userPayload, EntityPermissionType.Read, 'AND');
|
|
68250
69099
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
68251
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Workflows', rows && rows.length > 0 ? rows[0] :
|
|
69100
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Workflows', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
68252
69101
|
return result;
|
|
68253
69102
|
}
|
|
68254
69103
|
|
|
@@ -68468,7 +69317,7 @@ export class MJWorkspaceItemResolver extends ResolverBase {
|
|
|
68468
69317
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
68469
69318
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwWorkspaceItems')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Workspace Items', userPayload, EntityPermissionType.Read, 'AND');
|
|
68470
69319
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
68471
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Workspace Items', rows && rows.length > 0 ? rows[0] :
|
|
69320
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Workspace Items', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
68472
69321
|
return result;
|
|
68473
69322
|
}
|
|
68474
69323
|
|
|
@@ -68638,7 +69487,7 @@ export class MJWorkspaceResolver extends ResolverBase {
|
|
|
68638
69487
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
68639
69488
|
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwWorkspaces')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Workspaces', userPayload, EntityPermissionType.Read, 'AND');
|
|
68640
69489
|
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
68641
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Workspaces', rows && rows.length > 0 ? rows[0] :
|
|
69490
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Workspaces', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
68642
69491
|
return result;
|
|
68643
69492
|
}
|
|
68644
69493
|
|