@memberjunction/server 5.10.1 → 5.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/generated/generated.d.ts +57 -0
- package/dist/generated/generated.d.ts.map +1 -1
- package/dist/generated/generated.js +619 -285
- package/dist/generated/generated.js.map +1 -1
- package/package.json +59 -59
- package/src/generated/generated.ts +513 -286
|
@@ -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, 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, 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
|
|
|
@@ -2241,7 +2241,7 @@ export class MJActionResolver extends ResolverBase {
|
|
|
2241
2241
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
2242
2242
|
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
2243
|
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] :
|
|
2244
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Actions', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
2245
2245
|
return result;
|
|
2246
2246
|
}
|
|
2247
2247
|
|
|
@@ -2543,7 +2543,7 @@ export class MJAIActionResolver extends ResolverBase {
|
|
|
2543
2543
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
2544
2544
|
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
2545
|
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] :
|
|
2546
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Actions', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
2547
2547
|
return result;
|
|
2548
2548
|
}
|
|
2549
2549
|
|
|
@@ -2806,7 +2806,7 @@ export class MJAIAgentActionResolver extends ResolverBase {
|
|
|
2806
2806
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
2807
2807
|
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
2808
|
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] :
|
|
2809
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Agent Actions', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
2810
2810
|
return result;
|
|
2811
2811
|
}
|
|
2812
2812
|
|
|
@@ -2968,7 +2968,7 @@ export class MJAIAgentArtifactTypeResolver extends ResolverBase {
|
|
|
2968
2968
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
2969
2969
|
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
2970
|
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] :
|
|
2971
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Agent Artifact Types', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
2972
2972
|
return result;
|
|
2973
2973
|
}
|
|
2974
2974
|
|
|
@@ -3178,7 +3178,7 @@ export class MJAIAgentConfigurationResolver extends ResolverBase {
|
|
|
3178
3178
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
3179
3179
|
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
3180
|
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] :
|
|
3181
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Agent Configurations', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
3182
3182
|
return result;
|
|
3183
3183
|
}
|
|
3184
3184
|
|
|
@@ -3490,7 +3490,7 @@ export class MJAIAgentDataSourceResolver extends ResolverBase {
|
|
|
3490
3490
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
3491
3491
|
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
3492
|
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] :
|
|
3493
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Agent Data Sources', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
3494
3494
|
return result;
|
|
3495
3495
|
}
|
|
3496
3496
|
|
|
@@ -3846,7 +3846,7 @@ export class MJAIAgentExampleResolver extends ResolverBase {
|
|
|
3846
3846
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
3847
3847
|
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
3848
|
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] :
|
|
3849
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Agent Examples', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
3850
3850
|
return result;
|
|
3851
3851
|
}
|
|
3852
3852
|
|
|
@@ -4022,7 +4022,7 @@ export class MJAIAgentLearningCycleResolver extends ResolverBase {
|
|
|
4022
4022
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
4023
4023
|
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
4024
|
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] :
|
|
4025
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Agent Learning Cycles', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
4026
4026
|
return result;
|
|
4027
4027
|
}
|
|
4028
4028
|
|
|
@@ -4212,7 +4212,7 @@ export class MJAIAgentModalityResolver extends ResolverBase {
|
|
|
4212
4212
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
4213
4213
|
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
4214
|
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] :
|
|
4215
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Agent Modalities', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
4216
4216
|
return result;
|
|
4217
4217
|
}
|
|
4218
4218
|
|
|
@@ -4383,7 +4383,7 @@ export class MJAIAgentModelResolver extends ResolverBase {
|
|
|
4383
4383
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
4384
4384
|
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
4385
|
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] :
|
|
4386
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Agent Models', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
4387
4387
|
return result;
|
|
4388
4388
|
}
|
|
4389
4389
|
|
|
@@ -4549,7 +4549,7 @@ export class MJAIAgentNoteTypeResolver extends ResolverBase {
|
|
|
4549
4549
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
4550
4550
|
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
4551
|
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] :
|
|
4552
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Agent Note Types', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
4553
4553
|
return result;
|
|
4554
4554
|
}
|
|
4555
4555
|
|
|
@@ -4911,7 +4911,7 @@ export class MJAIAgentNoteResolver extends ResolverBase {
|
|
|
4911
4911
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
4912
4912
|
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
4913
|
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] :
|
|
4914
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Agent Notes', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
4915
4915
|
return result;
|
|
4916
4916
|
}
|
|
4917
4917
|
|
|
@@ -5123,7 +5123,7 @@ export class MJAIAgentPermissionResolver extends ResolverBase {
|
|
|
5123
5123
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
5124
5124
|
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
5125
|
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] :
|
|
5126
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Agent Permissions', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
5127
5127
|
return result;
|
|
5128
5128
|
}
|
|
5129
5129
|
|
|
@@ -5337,7 +5337,7 @@ export class MJAIAgentPromptResolver extends ResolverBase {
|
|
|
5337
5337
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
5338
5338
|
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
5339
|
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] :
|
|
5340
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Agent Prompts', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
5341
5341
|
return result;
|
|
5342
5342
|
}
|
|
5343
5343
|
|
|
@@ -5546,7 +5546,7 @@ export class MJAIAgentRelationshipResolver extends ResolverBase {
|
|
|
5546
5546
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
5547
5547
|
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
5548
|
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] :
|
|
5549
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Agent Relationships', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
5550
5550
|
return result;
|
|
5551
5551
|
}
|
|
5552
5552
|
|
|
@@ -5768,7 +5768,7 @@ export class MJAIAgentRequestResolver extends ResolverBase {
|
|
|
5768
5768
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
5769
5769
|
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
5770
|
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] :
|
|
5771
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Agent Requests', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
5772
5772
|
return result;
|
|
5773
5773
|
}
|
|
5774
5774
|
|
|
@@ -6060,7 +6060,7 @@ export class MJAIAgentRunMediaResolver extends ResolverBase {
|
|
|
6060
6060
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
6061
6061
|
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
6062
|
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] :
|
|
6063
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Agent Run Medias', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
6064
6064
|
return result;
|
|
6065
6065
|
}
|
|
6066
6066
|
|
|
@@ -6382,7 +6382,7 @@ export class MJAIAgentRunStepResolver extends ResolverBase {
|
|
|
6382
6382
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
6383
6383
|
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
6384
|
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] :
|
|
6385
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Agent Run Steps', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
6386
6386
|
return result;
|
|
6387
6387
|
}
|
|
6388
6388
|
|
|
@@ -6990,7 +6990,7 @@ export class MJAIAgentRunResolver extends ResolverBase {
|
|
|
6990
6990
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
6991
6991
|
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
6992
|
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] :
|
|
6993
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Agent Runs', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
6994
6994
|
return result;
|
|
6995
6995
|
}
|
|
6996
6996
|
|
|
@@ -7250,7 +7250,7 @@ export class MJAIAgentStepPathResolver extends ResolverBase {
|
|
|
7250
7250
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
7251
7251
|
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
7252
|
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] :
|
|
7253
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Agent Step Paths', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
7254
7254
|
return result;
|
|
7255
7255
|
}
|
|
7256
7256
|
|
|
@@ -7586,7 +7586,7 @@ export class MJAIAgentStepResolver extends ResolverBase {
|
|
|
7586
7586
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
7587
7587
|
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
7588
|
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] :
|
|
7589
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Agent Steps', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
7590
7590
|
return result;
|
|
7591
7591
|
}
|
|
7592
7592
|
|
|
@@ -7834,7 +7834,7 @@ export class MJAIAgentTypeResolver extends ResolverBase {
|
|
|
7834
7834
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
7835
7835
|
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
7836
|
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] :
|
|
7837
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Agent Types', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
7838
7838
|
return result;
|
|
7839
7839
|
}
|
|
7840
7840
|
|
|
@@ -8614,7 +8614,7 @@ export class MJAIAgentResolver extends ResolverBase {
|
|
|
8614
8614
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
8615
8615
|
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
8616
|
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] :
|
|
8617
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Agents', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
8618
8618
|
return result;
|
|
8619
8619
|
}
|
|
8620
8620
|
|
|
@@ -9041,7 +9041,7 @@ export class MJAIArchitectureResolver extends ResolverBase {
|
|
|
9041
9041
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
9042
9042
|
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
9043
|
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] :
|
|
9044
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Architectures', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
9045
9045
|
return result;
|
|
9046
9046
|
}
|
|
9047
9047
|
|
|
@@ -9238,7 +9238,7 @@ export class MJAIConfigurationParamResolver extends ResolverBase {
|
|
|
9238
9238
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
9239
9239
|
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
9240
|
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] :
|
|
9241
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Configuration Params', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
9242
9242
|
return result;
|
|
9243
9243
|
}
|
|
9244
9244
|
|
|
@@ -9495,7 +9495,7 @@ export class MJAIConfigurationResolver extends ResolverBase {
|
|
|
9495
9495
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
9496
9496
|
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
9497
|
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] :
|
|
9498
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Configurations', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
9499
9499
|
return result;
|
|
9500
9500
|
}
|
|
9501
9501
|
|
|
@@ -9784,7 +9784,7 @@ export class MJAICredentialBindingResolver extends ResolverBase {
|
|
|
9784
9784
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
9785
9785
|
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
9786
|
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] :
|
|
9787
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Credential Bindings', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
9788
9788
|
return result;
|
|
9789
9789
|
}
|
|
9790
9790
|
|
|
@@ -10007,7 +10007,7 @@ export class MJAIModalityResolver extends ResolverBase {
|
|
|
10007
10007
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
10008
10008
|
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
10009
|
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] :
|
|
10010
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Modalities', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
10011
10011
|
return result;
|
|
10012
10012
|
}
|
|
10013
10013
|
|
|
@@ -10239,7 +10239,7 @@ export class MJAIModelActionResolver extends ResolverBase {
|
|
|
10239
10239
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
10240
10240
|
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
10241
|
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] :
|
|
10242
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Model Actions', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
10243
10243
|
return result;
|
|
10244
10244
|
}
|
|
10245
10245
|
|
|
@@ -10430,7 +10430,7 @@ export class MJAIModelArchitectureResolver extends ResolverBase {
|
|
|
10430
10430
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
10431
10431
|
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
10432
|
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] :
|
|
10433
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Model Architectures', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
10434
10434
|
return result;
|
|
10435
10435
|
}
|
|
10436
10436
|
|
|
@@ -10686,7 +10686,7 @@ export class MJAIModelCostResolver extends ResolverBase {
|
|
|
10686
10686
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
10687
10687
|
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
10688
|
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] :
|
|
10689
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Model Costs', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
10690
10690
|
return result;
|
|
10691
10691
|
}
|
|
10692
10692
|
|
|
@@ -10913,7 +10913,7 @@ export class MJAIModelModalityResolver extends ResolverBase {
|
|
|
10913
10913
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
10914
10914
|
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
10915
|
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] :
|
|
10916
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Model Modalities', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
10917
10917
|
return result;
|
|
10918
10918
|
}
|
|
10919
10919
|
|
|
@@ -11060,7 +11060,7 @@ export class MJAIModelPriceTypeResolver extends ResolverBase {
|
|
|
11060
11060
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
11061
11061
|
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
11062
|
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] :
|
|
11063
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Model Price Types', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
11064
11064
|
return result;
|
|
11065
11065
|
}
|
|
11066
11066
|
|
|
@@ -11227,7 +11227,7 @@ export class MJAIModelPriceUnitTypeResolver extends ResolverBase {
|
|
|
11227
11227
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
11228
11228
|
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
11229
|
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] :
|
|
11230
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Model Price Unit Types', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
11231
11231
|
return result;
|
|
11232
11232
|
}
|
|
11233
11233
|
|
|
@@ -11415,7 +11415,7 @@ export class MJAIModelTypeResolver extends ResolverBase {
|
|
|
11415
11415
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
11416
11416
|
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
11417
|
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] :
|
|
11418
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Model Types', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
11419
11419
|
return result;
|
|
11420
11420
|
}
|
|
11421
11421
|
|
|
@@ -11710,7 +11710,7 @@ export class MJAIModelVendorResolver extends ResolverBase {
|
|
|
11710
11710
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
11711
11711
|
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
11712
|
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] :
|
|
11713
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Model Vendors', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
11714
11714
|
return result;
|
|
11715
11715
|
}
|
|
11716
11716
|
|
|
@@ -12073,7 +12073,7 @@ export class MJAIModelResolver extends ResolverBase {
|
|
|
12073
12073
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
12074
12074
|
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
12075
|
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] :
|
|
12076
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Models', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
12077
12077
|
return result;
|
|
12078
12078
|
}
|
|
12079
12079
|
|
|
@@ -12461,7 +12461,7 @@ export class MJAIPromptCategoryResolver extends ResolverBase {
|
|
|
12461
12461
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
12462
12462
|
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
12463
|
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] :
|
|
12464
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Prompt Categories', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
12465
12465
|
return result;
|
|
12466
12466
|
}
|
|
12467
12467
|
|
|
@@ -12740,7 +12740,7 @@ export class MJAIPromptModelResolver extends ResolverBase {
|
|
|
12740
12740
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
12741
12741
|
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
12742
|
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] :
|
|
12743
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Prompt Models', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
12744
12744
|
return result;
|
|
12745
12745
|
}
|
|
12746
12746
|
|
|
@@ -13021,7 +13021,7 @@ export class MJAIPromptRunMediaResolver extends ResolverBase {
|
|
|
13021
13021
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
13022
13022
|
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
13023
|
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] :
|
|
13024
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Prompt Run Medias', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
13025
13025
|
return result;
|
|
13026
13026
|
}
|
|
13027
13027
|
|
|
@@ -13976,7 +13976,7 @@ export class MJAIPromptRunResolver extends ResolverBase {
|
|
|
13976
13976
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
13977
13977
|
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
13978
|
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] :
|
|
13979
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Prompt Runs', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
13980
13980
|
return result;
|
|
13981
13981
|
}
|
|
13982
13982
|
|
|
@@ -14163,7 +14163,7 @@ export class MJAIPromptTypeResolver extends ResolverBase {
|
|
|
14163
14163
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
14164
14164
|
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
14165
|
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] :
|
|
14166
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Prompt Types', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
14167
14167
|
return result;
|
|
14168
14168
|
}
|
|
14169
14169
|
|
|
@@ -14818,7 +14818,7 @@ export class MJAIPromptResolver extends ResolverBase {
|
|
|
14818
14818
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
14819
14819
|
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
14820
|
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] :
|
|
14821
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Prompts', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
14822
14822
|
return result;
|
|
14823
14823
|
}
|
|
14824
14824
|
|
|
@@ -15222,7 +15222,7 @@ export class MJAIResultCacheResolver extends ResolverBase {
|
|
|
15222
15222
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
15223
15223
|
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
15224
|
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] :
|
|
15225
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Result Cache', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
15226
15226
|
return result;
|
|
15227
15227
|
}
|
|
15228
15228
|
|
|
@@ -15372,7 +15372,7 @@ export class MJAIVendorTypeDefinitionResolver extends ResolverBase {
|
|
|
15372
15372
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
15373
15373
|
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
15374
|
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] :
|
|
15375
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Vendor Type Definitions', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
15376
15376
|
return result;
|
|
15377
15377
|
}
|
|
15378
15378
|
|
|
@@ -15564,7 +15564,7 @@ export class MJAIVendorTypeResolver extends ResolverBase {
|
|
|
15564
15564
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
15565
15565
|
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
15566
|
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] :
|
|
15567
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Vendor Types', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
15568
15568
|
return result;
|
|
15569
15569
|
}
|
|
15570
15570
|
|
|
@@ -15746,7 +15746,7 @@ export class MJAIVendorResolver extends ResolverBase {
|
|
|
15746
15746
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
15747
15747
|
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
15748
|
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] :
|
|
15749
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Vendors', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
15750
15750
|
return result;
|
|
15751
15751
|
}
|
|
15752
15752
|
|
|
@@ -16017,7 +16017,7 @@ export class MJAPIApplicationScopeResolver extends ResolverBase {
|
|
|
16017
16017
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
16018
16018
|
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
16019
|
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] :
|
|
16020
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: API Application Scopes', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
16021
16021
|
return result;
|
|
16022
16022
|
}
|
|
16023
16023
|
|
|
@@ -16180,7 +16180,7 @@ export class MJAPIApplicationResolver extends ResolverBase {
|
|
|
16180
16180
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
16181
16181
|
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
16182
|
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] :
|
|
16183
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: API Applications', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
16184
16184
|
return result;
|
|
16185
16185
|
}
|
|
16186
16186
|
|
|
@@ -16363,7 +16363,7 @@ export class MJAPIKeyApplicationResolver extends ResolverBase {
|
|
|
16363
16363
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
16364
16364
|
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
16365
|
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] :
|
|
16366
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: API Key Applications', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
16367
16367
|
return result;
|
|
16368
16368
|
}
|
|
16369
16369
|
|
|
@@ -16554,7 +16554,7 @@ export class MJAPIKeyScopeResolver extends ResolverBase {
|
|
|
16554
16554
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
16555
16555
|
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
16556
|
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] :
|
|
16557
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: API Key Scopes', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
16558
16558
|
return result;
|
|
16559
16559
|
}
|
|
16560
16560
|
|
|
@@ -16814,7 +16814,7 @@ export class MJAPIKeyUsageLogResolver extends ResolverBase {
|
|
|
16814
16814
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
16815
16815
|
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
16816
|
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] :
|
|
16817
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: API Key Usage Logs', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
16818
16818
|
return result;
|
|
16819
16819
|
}
|
|
16820
16820
|
|
|
@@ -17034,7 +17034,7 @@ export class MJAPIKeyResolver extends ResolverBase {
|
|
|
17034
17034
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
17035
17035
|
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
17036
|
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] :
|
|
17037
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: API Keys', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
17038
17038
|
return result;
|
|
17039
17039
|
}
|
|
17040
17040
|
|
|
@@ -17284,7 +17284,7 @@ export class MJAPIScopeResolver extends ResolverBase {
|
|
|
17284
17284
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
17285
17285
|
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
17286
|
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] :
|
|
17287
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: API Scopes', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
17288
17288
|
return result;
|
|
17289
17289
|
}
|
|
17290
17290
|
|
|
@@ -17498,7 +17498,7 @@ export class MJApplicationEntityResolver extends ResolverBase {
|
|
|
17498
17498
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
17499
17499
|
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
17500
|
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] :
|
|
17501
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Application Entities', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
17502
17502
|
return result;
|
|
17503
17503
|
}
|
|
17504
17504
|
|
|
@@ -17665,7 +17665,7 @@ export class MJApplicationSettingResolver extends ResolverBase {
|
|
|
17665
17665
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
17666
17666
|
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
17667
|
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] :
|
|
17668
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Application Settings', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
17669
17669
|
return result;
|
|
17670
17670
|
}
|
|
17671
17671
|
|
|
@@ -17948,7 +17948,7 @@ export class MJApplicationResolver extends ResolverBase {
|
|
|
17948
17948
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
17949
17949
|
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
17950
|
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] :
|
|
17951
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Applications', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
17952
17952
|
return result;
|
|
17953
17953
|
}
|
|
17954
17954
|
|
|
@@ -18211,7 +18211,7 @@ export class MJArtifactPermissionResolver extends ResolverBase {
|
|
|
18211
18211
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
18212
18212
|
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
18213
|
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] :
|
|
18214
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Artifact Permissions', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
18215
18215
|
return result;
|
|
18216
18216
|
}
|
|
18217
18217
|
|
|
@@ -18436,7 +18436,7 @@ export class MJArtifactTypeResolver extends ResolverBase {
|
|
|
18436
18436
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
18437
18437
|
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
18438
|
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] :
|
|
18439
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Artifact Types', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
18440
18440
|
return result;
|
|
18441
18441
|
}
|
|
18442
18442
|
|
|
@@ -18658,7 +18658,7 @@ export class MJArtifactUseResolver extends ResolverBase {
|
|
|
18658
18658
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
18659
18659
|
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
18660
|
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] :
|
|
18661
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Artifact Uses', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
18662
18662
|
return result;
|
|
18663
18663
|
}
|
|
18664
18664
|
|
|
@@ -18836,7 +18836,7 @@ export class MJArtifactVersionAttributeResolver extends ResolverBase {
|
|
|
18836
18836
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
18837
18837
|
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
18838
|
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] :
|
|
18839
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Artifact Version Attributes', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
18840
18840
|
return result;
|
|
18841
18841
|
}
|
|
18842
18842
|
|
|
@@ -19066,7 +19066,7 @@ export class MJArtifactVersionResolver extends ResolverBase {
|
|
|
19066
19066
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
19067
19067
|
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
19068
|
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] :
|
|
19069
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Artifact Versions', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
19070
19070
|
return result;
|
|
19071
19071
|
}
|
|
19072
19072
|
|
|
@@ -19317,7 +19317,7 @@ export class MJArtifactResolver extends ResolverBase {
|
|
|
19317
19317
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
19318
19318
|
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
19319
|
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] :
|
|
19320
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Artifacts', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
19321
19321
|
return result;
|
|
19322
19322
|
}
|
|
19323
19323
|
|
|
@@ -19519,7 +19519,7 @@ export class MJAuditLogTypeResolver extends ResolverBase {
|
|
|
19519
19519
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
19520
19520
|
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
19521
|
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] :
|
|
19522
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Audit Log Types', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
19523
19523
|
return result;
|
|
19524
19524
|
}
|
|
19525
19525
|
|
|
@@ -19768,7 +19768,7 @@ export class MJAuditLogResolver extends ResolverBase {
|
|
|
19768
19768
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
19769
19769
|
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
19770
|
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] :
|
|
19771
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Audit Logs', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
19772
19772
|
return result;
|
|
19773
19773
|
}
|
|
19774
19774
|
|
|
@@ -19931,7 +19931,7 @@ export class MJAuthorizationRoleResolver extends ResolverBase {
|
|
|
19931
19931
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
19932
19932
|
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
19933
|
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] :
|
|
19934
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Authorization Roles', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
19935
19935
|
return result;
|
|
19936
19936
|
}
|
|
19937
19937
|
|
|
@@ -20136,7 +20136,7 @@ export class MJAuthorizationResolver extends ResolverBase {
|
|
|
20136
20136
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
20137
20137
|
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
20138
|
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] :
|
|
20139
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Authorizations', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
20140
20140
|
return result;
|
|
20141
20141
|
}
|
|
20142
20142
|
|
|
@@ -20358,7 +20358,7 @@ export class MJCollectionArtifactResolver extends ResolverBase {
|
|
|
20358
20358
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
20359
20359
|
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
20360
|
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] :
|
|
20361
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Collection Artifacts', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
20362
20362
|
return result;
|
|
20363
20363
|
}
|
|
20364
20364
|
|
|
@@ -20561,7 +20561,7 @@ export class MJCollectionPermissionResolver extends ResolverBase {
|
|
|
20561
20561
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
20562
20562
|
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
20563
|
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] :
|
|
20564
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Collection Permissions', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
20565
20565
|
return result;
|
|
20566
20566
|
}
|
|
20567
20567
|
|
|
@@ -20789,7 +20789,7 @@ export class MJCollectionResolver extends ResolverBase {
|
|
|
20789
20789
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
20790
20790
|
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
20791
|
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] :
|
|
20792
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Collections', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
20793
20793
|
return result;
|
|
20794
20794
|
}
|
|
20795
20795
|
|
|
@@ -20996,7 +20996,7 @@ export class MJCommunicationBaseMessageTypeResolver extends ResolverBase {
|
|
|
20996
20996
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
20997
20997
|
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
20998
|
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] :
|
|
20999
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Communication Base Message Types', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
21000
21000
|
return result;
|
|
21001
21001
|
}
|
|
21002
21002
|
|
|
@@ -21230,7 +21230,7 @@ export class MJCommunicationLogResolver extends ResolverBase {
|
|
|
21230
21230
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
21231
21231
|
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
21232
|
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] :
|
|
21233
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Communication Logs', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
21234
21234
|
return result;
|
|
21235
21235
|
}
|
|
21236
21236
|
|
|
@@ -21415,7 +21415,7 @@ export class MJCommunicationProviderMessageTypeResolver extends ResolverBase {
|
|
|
21415
21415
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
21416
21416
|
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
21417
|
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] :
|
|
21418
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Communication Provider Message Types', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
21419
21419
|
return result;
|
|
21420
21420
|
}
|
|
21421
21421
|
|
|
@@ -21639,7 +21639,7 @@ export class MJCommunicationProviderResolver extends ResolverBase {
|
|
|
21639
21639
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
21640
21640
|
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
21641
|
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] :
|
|
21642
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Communication Providers', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
21643
21643
|
return result;
|
|
21644
21644
|
}
|
|
21645
21645
|
|
|
@@ -21857,7 +21857,7 @@ export class MJCommunicationRunResolver extends ResolverBase {
|
|
|
21857
21857
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
21858
21858
|
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
21859
|
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] :
|
|
21860
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Communication Runs', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
21861
21861
|
return result;
|
|
21862
21862
|
}
|
|
21863
21863
|
|
|
@@ -22057,7 +22057,7 @@ export class MJCompanyResolver extends ResolverBase {
|
|
|
22057
22057
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
22058
22058
|
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
22059
|
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] :
|
|
22060
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Companies', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
22061
22061
|
return result;
|
|
22062
22062
|
}
|
|
22063
22063
|
|
|
@@ -22372,7 +22372,7 @@ export class MJCompanyIntegrationEntityMapResolver extends ResolverBase {
|
|
|
22372
22372
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
22373
22373
|
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
22374
|
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] :
|
|
22375
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Company Integration Entity Maps', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
22376
22376
|
return result;
|
|
22377
22377
|
}
|
|
22378
22378
|
|
|
@@ -22636,7 +22636,7 @@ export class MJCompanyIntegrationFieldMapResolver extends ResolverBase {
|
|
|
22636
22636
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
22637
22637
|
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
22638
|
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] :
|
|
22639
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Company Integration Field Maps', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
22640
22640
|
return result;
|
|
22641
22641
|
}
|
|
22642
22642
|
|
|
@@ -22809,7 +22809,7 @@ export class MJCompanyIntegrationRecordMapResolver extends ResolverBase {
|
|
|
22809
22809
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
22810
22810
|
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
22811
|
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] :
|
|
22812
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Company Integration Record Maps', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
22813
22813
|
return result;
|
|
22814
22814
|
}
|
|
22815
22815
|
|
|
@@ -22994,7 +22994,7 @@ export class MJCompanyIntegrationRunAPILogResolver extends ResolverBase {
|
|
|
22994
22994
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
22995
22995
|
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
22996
|
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] :
|
|
22997
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Company Integration Run API Logs', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
22998
22998
|
return result;
|
|
22999
22999
|
}
|
|
23000
23000
|
|
|
@@ -23190,7 +23190,7 @@ export class MJCompanyIntegrationRunDetailResolver extends ResolverBase {
|
|
|
23190
23190
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
23191
23191
|
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
23192
|
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] :
|
|
23193
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Company Integration Run Details', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
23194
23194
|
return result;
|
|
23195
23195
|
}
|
|
23196
23196
|
|
|
@@ -23430,7 +23430,7 @@ export class MJCompanyIntegrationRunResolver extends ResolverBase {
|
|
|
23430
23430
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
23431
23431
|
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
23432
|
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] :
|
|
23433
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Company Integration Runs', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
23434
23434
|
return result;
|
|
23435
23435
|
}
|
|
23436
23436
|
|
|
@@ -23646,7 +23646,7 @@ export class MJCompanyIntegrationSyncWatermarkResolver extends ResolverBase {
|
|
|
23646
23646
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
23647
23647
|
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
23648
|
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] :
|
|
23649
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Company Integration Sync Watermarks', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
23650
23650
|
return result;
|
|
23651
23651
|
}
|
|
23652
23652
|
|
|
@@ -24061,7 +24061,7 @@ export class MJCompanyIntegrationResolver extends ResolverBase {
|
|
|
24061
24061
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
24062
24062
|
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
24063
|
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] :
|
|
24064
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Company Integrations', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
24065
24065
|
return result;
|
|
24066
24066
|
}
|
|
24067
24067
|
|
|
@@ -24264,7 +24264,7 @@ export class MJComponentDependencyResolver extends ResolverBase {
|
|
|
24264
24264
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
24265
24265
|
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
24266
|
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] :
|
|
24267
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Component Dependencies', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
24268
24268
|
return result;
|
|
24269
24269
|
}
|
|
24270
24270
|
|
|
@@ -24509,7 +24509,7 @@ export class MJComponentLibraryResolver extends ResolverBase {
|
|
|
24509
24509
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
24510
24510
|
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
24511
|
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] :
|
|
24512
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Component Libraries', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
24513
24513
|
return result;
|
|
24514
24514
|
}
|
|
24515
24515
|
|
|
@@ -24682,7 +24682,7 @@ export class MJComponentLibraryLinkResolver extends ResolverBase {
|
|
|
24682
24682
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
24683
24683
|
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
24684
|
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] :
|
|
24685
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Component Library Links', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
24686
24686
|
return result;
|
|
24687
24687
|
}
|
|
24688
24688
|
|
|
@@ -24869,7 +24869,7 @@ export class MJComponentRegistryResolver extends ResolverBase {
|
|
|
24869
24869
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
24870
24870
|
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
24871
|
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] :
|
|
24872
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Component Registries', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
24873
24873
|
return result;
|
|
24874
24874
|
}
|
|
24875
24875
|
|
|
@@ -25260,7 +25260,7 @@ export class MJComponentResolver extends ResolverBase {
|
|
|
25260
25260
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
25261
25261
|
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
25262
|
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] :
|
|
25263
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Components', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
25264
25264
|
return result;
|
|
25265
25265
|
}
|
|
25266
25266
|
|
|
@@ -25441,7 +25441,7 @@ export class MJContentFileTypeResolver extends ResolverBase {
|
|
|
25441
25441
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
25442
25442
|
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
25443
|
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] :
|
|
25444
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Content File Types', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
25445
25445
|
return result;
|
|
25446
25446
|
}
|
|
25447
25447
|
|
|
@@ -25619,7 +25619,7 @@ export class MJContentItemAttributeResolver extends ResolverBase {
|
|
|
25619
25619
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
25620
25620
|
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
25621
|
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] :
|
|
25622
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Content Item Attributes', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
25623
25623
|
return result;
|
|
25624
25624
|
}
|
|
25625
25625
|
|
|
@@ -25768,7 +25768,7 @@ export class MJContentItemTagResolver extends ResolverBase {
|
|
|
25768
25768
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
25769
25769
|
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
25770
|
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] :
|
|
25771
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Content Item Tags', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
25772
25772
|
return result;
|
|
25773
25773
|
}
|
|
25774
25774
|
|
|
@@ -26003,7 +26003,7 @@ export class MJContentItemResolver extends ResolverBase {
|
|
|
26003
26003
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
26004
26004
|
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
26005
|
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] :
|
|
26006
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Content Items', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
26007
26007
|
return result;
|
|
26008
26008
|
}
|
|
26009
26009
|
|
|
@@ -26199,7 +26199,7 @@ export class MJContentProcessRunResolver extends ResolverBase {
|
|
|
26199
26199
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
26200
26200
|
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
26201
|
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] :
|
|
26202
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Content Process Runs', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
26203
26203
|
return result;
|
|
26204
26204
|
}
|
|
26205
26205
|
|
|
@@ -26357,7 +26357,7 @@ export class MJContentSourceParamResolver extends ResolverBase {
|
|
|
26357
26357
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
26358
26358
|
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
26359
|
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] :
|
|
26360
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Content Source Params', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
26361
26361
|
return result;
|
|
26362
26362
|
}
|
|
26363
26363
|
|
|
@@ -26529,7 +26529,7 @@ export class MJContentSourceTypeParamResolver extends ResolverBase {
|
|
|
26529
26529
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
26530
26530
|
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
26531
|
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] :
|
|
26532
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Content Source Type Params', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
26533
26533
|
return result;
|
|
26534
26534
|
}
|
|
26535
26535
|
|
|
@@ -26680,7 +26680,7 @@ export class MJContentSourceTypeResolver extends ResolverBase {
|
|
|
26680
26680
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
26681
26681
|
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
26682
|
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] :
|
|
26683
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Content Source Types', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
26684
26684
|
return result;
|
|
26685
26685
|
}
|
|
26686
26686
|
|
|
@@ -26896,7 +26896,7 @@ export class MJContentSourceResolver extends ResolverBase {
|
|
|
26896
26896
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
26897
26897
|
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
26898
|
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] :
|
|
26899
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Content Sources', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
26900
26900
|
return result;
|
|
26901
26901
|
}
|
|
26902
26902
|
|
|
@@ -27089,7 +27089,7 @@ export class MJContentTypeAttributeResolver extends ResolverBase {
|
|
|
27089
27089
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
27090
27090
|
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
27091
|
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] :
|
|
27092
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Content Type Attributes', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
27093
27093
|
return result;
|
|
27094
27094
|
}
|
|
27095
27095
|
|
|
@@ -27271,7 +27271,7 @@ export class MJContentTypeResolver extends ResolverBase {
|
|
|
27271
27271
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
27272
27272
|
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
27273
|
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] :
|
|
27274
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Content Types', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
27275
27275
|
return result;
|
|
27276
27276
|
}
|
|
27277
27277
|
|
|
@@ -27450,7 +27450,7 @@ export class MJConversationArtifactPermissionResolver extends ResolverBase {
|
|
|
27450
27450
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
27451
27451
|
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
27452
|
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] :
|
|
27453
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Conversation Artifact Permissions', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
27454
27454
|
return result;
|
|
27455
27455
|
}
|
|
27456
27456
|
|
|
@@ -27628,7 +27628,7 @@ export class MJConversationArtifactVersionResolver extends ResolverBase {
|
|
|
27628
27628
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
27629
27629
|
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
27630
|
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] :
|
|
27631
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Conversation Artifact Versions', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
27632
27632
|
return result;
|
|
27633
27633
|
}
|
|
27634
27634
|
|
|
@@ -27838,7 +27838,7 @@ export class MJConversationArtifactResolver extends ResolverBase {
|
|
|
27838
27838
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
27839
27839
|
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
27840
|
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] :
|
|
27841
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Conversation Artifacts', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
27842
27842
|
return result;
|
|
27843
27843
|
}
|
|
27844
27844
|
|
|
@@ -28030,7 +28030,7 @@ export class MJConversationDetailArtifactResolver extends ResolverBase {
|
|
|
28030
28030
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
28031
28031
|
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
28032
|
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] :
|
|
28033
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Conversation Detail Artifacts', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
28034
28034
|
return result;
|
|
28035
28035
|
}
|
|
28036
28036
|
|
|
@@ -28288,7 +28288,7 @@ export class MJConversationDetailAttachmentResolver extends ResolverBase {
|
|
|
28288
28288
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
28289
28289
|
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
28290
|
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] :
|
|
28291
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Conversation Detail Attachments', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
28292
28292
|
return result;
|
|
28293
28293
|
}
|
|
28294
28294
|
|
|
@@ -28458,7 +28458,7 @@ export class MJConversationDetailRatingResolver extends ResolverBase {
|
|
|
28458
28458
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
28459
28459
|
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
28460
|
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] :
|
|
28461
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Conversation Detail Ratings', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
28462
28462
|
return result;
|
|
28463
28463
|
}
|
|
28464
28464
|
|
|
@@ -28867,7 +28867,7 @@ export class MJConversationDetailResolver extends ResolverBase {
|
|
|
28867
28867
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
28868
28868
|
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
28869
|
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] :
|
|
28870
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Conversation Details', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
28871
28871
|
return result;
|
|
28872
28872
|
}
|
|
28873
28873
|
|
|
@@ -29261,7 +29261,7 @@ export class MJConversationResolver extends ResolverBase {
|
|
|
29261
29261
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
29262
29262
|
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
29263
|
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] :
|
|
29264
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Conversations', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
29265
29265
|
return result;
|
|
29266
29266
|
}
|
|
29267
29267
|
|
|
@@ -29499,7 +29499,7 @@ export class MJCredentialCategoryResolver extends ResolverBase {
|
|
|
29499
29499
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
29500
29500
|
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
29501
|
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] :
|
|
29502
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Credential Categories', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
29503
29503
|
return result;
|
|
29504
29504
|
}
|
|
29505
29505
|
|
|
@@ -29714,7 +29714,7 @@ export class MJCredentialTypeResolver extends ResolverBase {
|
|
|
29714
29714
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
29715
29715
|
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
29716
|
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] :
|
|
29717
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Credential Types', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
29718
29718
|
return result;
|
|
29719
29719
|
}
|
|
29720
29720
|
|
|
@@ -30005,7 +30005,7 @@ export class MJCredentialResolver extends ResolverBase {
|
|
|
30005
30005
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
30006
30006
|
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
30007
|
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] :
|
|
30008
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Credentials', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
30009
30009
|
return result;
|
|
30010
30010
|
}
|
|
30011
30011
|
|
|
@@ -30243,7 +30243,7 @@ export class MJDashboardCategoryResolver extends ResolverBase {
|
|
|
30243
30243
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
30244
30244
|
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
30245
|
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] :
|
|
30246
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Dashboard Categories', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
30247
30247
|
return result;
|
|
30248
30248
|
}
|
|
30249
30249
|
|
|
@@ -30469,7 +30469,7 @@ export class MJDashboardCategoryLinkResolver extends ResolverBase {
|
|
|
30469
30469
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
30470
30470
|
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
30471
|
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] :
|
|
30472
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Dashboard Category Links', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
30473
30473
|
return result;
|
|
30474
30474
|
}
|
|
30475
30475
|
|
|
@@ -30672,7 +30672,7 @@ export class MJDashboardCategoryPermissionResolver extends ResolverBase {
|
|
|
30672
30672
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
30673
30673
|
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
30674
|
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] :
|
|
30675
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Dashboard Category Permissions', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
30676
30676
|
return result;
|
|
30677
30677
|
}
|
|
30678
30678
|
|
|
@@ -30873,7 +30873,7 @@ export class MJDashboardPartTypeResolver extends ResolverBase {
|
|
|
30873
30873
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
30874
30874
|
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
30875
|
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] :
|
|
30876
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Dashboard Part Types', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
30877
30877
|
return result;
|
|
30878
30878
|
}
|
|
30879
30879
|
|
|
@@ -31076,7 +31076,7 @@ export class MJDashboardPermissionResolver extends ResolverBase {
|
|
|
31076
31076
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
31077
31077
|
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
31078
|
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] :
|
|
31079
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Dashboard Permissions', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
31080
31080
|
return result;
|
|
31081
31081
|
}
|
|
31082
31082
|
|
|
@@ -31262,7 +31262,7 @@ export class MJDashboardUserPreferenceResolver extends ResolverBase {
|
|
|
31262
31262
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
31263
31263
|
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
31264
|
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] :
|
|
31265
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Dashboard User Preferences', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
31266
31266
|
return result;
|
|
31267
31267
|
}
|
|
31268
31268
|
|
|
@@ -31424,7 +31424,7 @@ export class MJDashboardUserStateResolver extends ResolverBase {
|
|
|
31424
31424
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
31425
31425
|
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
31426
|
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] :
|
|
31427
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Dashboard User States', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
31428
31428
|
return result;
|
|
31429
31429
|
}
|
|
31430
31430
|
|
|
@@ -31694,7 +31694,7 @@ export class MJDashboardResolver extends ResolverBase {
|
|
|
31694
31694
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
31695
31695
|
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
31696
|
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] :
|
|
31697
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Dashboards', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
31698
31698
|
return result;
|
|
31699
31699
|
}
|
|
31700
31700
|
|
|
@@ -31981,7 +31981,7 @@ export class MJDataContextItemResolver extends ResolverBase {
|
|
|
31981
31981
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
31982
31982
|
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
31983
|
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] :
|
|
31984
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Data Context Items', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
31985
31985
|
return result;
|
|
31986
31986
|
}
|
|
31987
31987
|
|
|
@@ -32157,7 +32157,7 @@ export class MJDataContextResolver extends ResolverBase {
|
|
|
32157
32157
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
32158
32158
|
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
32159
|
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] :
|
|
32160
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Data Contexts', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
32161
32161
|
return result;
|
|
32162
32162
|
}
|
|
32163
32163
|
|
|
@@ -32396,7 +32396,7 @@ export class MJDatasetItemResolver extends ResolverBase {
|
|
|
32396
32396
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
32397
32397
|
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
32398
|
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] :
|
|
32399
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Dataset Items', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
32400
32400
|
return result;
|
|
32401
32401
|
}
|
|
32402
32402
|
|
|
@@ -32543,7 +32543,7 @@ export class MJDatasetResolver extends ResolverBase {
|
|
|
32543
32543
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
32544
32544
|
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
32545
|
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] :
|
|
32546
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Datasets', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
32547
32547
|
return result;
|
|
32548
32548
|
}
|
|
32549
32549
|
|
|
@@ -32783,7 +32783,7 @@ export class MJDuplicateRunDetailMatchResolver extends ResolverBase {
|
|
|
32783
32783
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
32784
32784
|
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
32785
|
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] :
|
|
32786
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Duplicate Run Detail Matches', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
32787
32787
|
return result;
|
|
32788
32788
|
}
|
|
32789
32789
|
|
|
@@ -32982,7 +32982,7 @@ export class MJDuplicateRunDetailResolver extends ResolverBase {
|
|
|
32982
32982
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
32983
32983
|
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
32984
|
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] :
|
|
32985
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Duplicate Run Details', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
32986
32986
|
return result;
|
|
32987
32987
|
}
|
|
32988
32988
|
|
|
@@ -33232,7 +33232,7 @@ export class MJDuplicateRunResolver extends ResolverBase {
|
|
|
33232
33232
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
33233
33233
|
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
33234
|
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] :
|
|
33235
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Duplicate Runs', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
33236
33236
|
return result;
|
|
33237
33237
|
}
|
|
33238
33238
|
|
|
@@ -33414,7 +33414,7 @@ export class MJEmployeeCompanyIntegrationResolver extends ResolverBase {
|
|
|
33414
33414
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
33415
33415
|
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
33416
|
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] :
|
|
33417
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Employee Company Integrations', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
33418
33418
|
return result;
|
|
33419
33419
|
}
|
|
33420
33420
|
|
|
@@ -33567,7 +33567,7 @@ export class MJEmployeeRoleResolver extends ResolverBase {
|
|
|
33567
33567
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
33568
33568
|
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
33569
|
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] :
|
|
33570
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Employee Roles', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
33571
33571
|
return result;
|
|
33572
33572
|
}
|
|
33573
33573
|
|
|
@@ -33720,7 +33720,7 @@ export class MJEmployeeSkillResolver extends ResolverBase {
|
|
|
33720
33720
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
33721
33721
|
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
33722
|
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] :
|
|
33723
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Employee Skills', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
33724
33724
|
return result;
|
|
33725
33725
|
}
|
|
33726
33726
|
|
|
@@ -33963,7 +33963,7 @@ export class MJEmployeeResolver extends ResolverBase {
|
|
|
33963
33963
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
33964
33964
|
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
33965
|
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] :
|
|
33966
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Employees', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
33967
33967
|
return result;
|
|
33968
33968
|
}
|
|
33969
33969
|
|
|
@@ -34216,7 +34216,7 @@ export class MJEncryptionAlgorithmResolver extends ResolverBase {
|
|
|
34216
34216
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
34217
34217
|
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
34218
|
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] :
|
|
34219
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Encryption Algorithms', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
34220
34220
|
return result;
|
|
34221
34221
|
}
|
|
34222
34222
|
|
|
@@ -34421,7 +34421,7 @@ export class MJEncryptionKeySourceResolver extends ResolverBase {
|
|
|
34421
34421
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
34422
34422
|
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
34423
|
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] :
|
|
34424
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Encryption Key Sources', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
34425
34425
|
return result;
|
|
34426
34426
|
}
|
|
34427
34427
|
|
|
@@ -34673,7 +34673,7 @@ export class MJEncryptionKeyResolver extends ResolverBase {
|
|
|
34673
34673
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
34674
34674
|
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
34675
|
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] :
|
|
34676
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Encryption Keys', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
34677
34677
|
return result;
|
|
34678
34678
|
}
|
|
34679
34679
|
|
|
@@ -35489,7 +35489,7 @@ export class MJEntityResolverBase extends ResolverBase {
|
|
|
35489
35489
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
35490
35490
|
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
35491
|
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] :
|
|
35492
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Entities', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
35493
35493
|
return result;
|
|
35494
35494
|
}
|
|
35495
35495
|
|
|
@@ -36180,7 +36180,7 @@ export class MJEntityActionFilterResolver extends ResolverBase {
|
|
|
36180
36180
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
36181
36181
|
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
36182
|
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] :
|
|
36183
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Entity Action Filters', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
36184
36184
|
return result;
|
|
36185
36185
|
}
|
|
36186
36186
|
|
|
@@ -36336,7 +36336,7 @@ export class MJEntityActionInvocationTypeResolver extends ResolverBase {
|
|
|
36336
36336
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
36337
36337
|
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
36338
|
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] :
|
|
36339
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Entity Action Invocation Types', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
36340
36340
|
return result;
|
|
36341
36341
|
}
|
|
36342
36342
|
|
|
@@ -36509,7 +36509,7 @@ export class MJEntityActionInvocationResolver extends ResolverBase {
|
|
|
36509
36509
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
36510
36510
|
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
36511
|
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] :
|
|
36512
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Entity Action Invocations', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
36513
36513
|
return result;
|
|
36514
36514
|
}
|
|
36515
36515
|
|
|
@@ -36690,7 +36690,7 @@ export class MJEntityActionParamResolver extends ResolverBase {
|
|
|
36690
36690
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
36691
36691
|
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
36692
|
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] :
|
|
36693
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Entity Action Params', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
36694
36694
|
return result;
|
|
36695
36695
|
}
|
|
36696
36696
|
|
|
@@ -36862,7 +36862,7 @@ export class MJEntityActionResolver extends ResolverBase {
|
|
|
36862
36862
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
36863
36863
|
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
36864
|
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] :
|
|
36865
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Entity Actions', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
36866
36866
|
return result;
|
|
36867
36867
|
}
|
|
36868
36868
|
|
|
@@ -37149,7 +37149,7 @@ export class MJEntityAIActionResolver extends ResolverBase {
|
|
|
37149
37149
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
37150
37150
|
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
37151
|
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] :
|
|
37152
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Entity AI Actions', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
37153
37153
|
return result;
|
|
37154
37154
|
}
|
|
37155
37155
|
|
|
@@ -37317,7 +37317,7 @@ export class MJEntityCommunicationFieldResolver extends ResolverBase {
|
|
|
37317
37317
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
37318
37318
|
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
37319
|
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] :
|
|
37320
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Entity Communication Fields', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
37321
37321
|
return result;
|
|
37322
37322
|
}
|
|
37323
37323
|
|
|
@@ -37482,7 +37482,7 @@ export class MJEntityCommunicationMessageTypeResolver extends ResolverBase {
|
|
|
37482
37482
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
37483
37483
|
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
37484
|
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] :
|
|
37485
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Entity Communication Message Types', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
37486
37486
|
return result;
|
|
37487
37487
|
}
|
|
37488
37488
|
|
|
@@ -37659,7 +37659,7 @@ export class MJEntityDocumentRunResolver extends ResolverBase {
|
|
|
37659
37659
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
37660
37660
|
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
37661
|
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] :
|
|
37662
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Entity Document Runs', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
37663
37663
|
return result;
|
|
37664
37664
|
}
|
|
37665
37665
|
|
|
@@ -37826,7 +37826,7 @@ export class MJEntityDocumentSettingResolver extends ResolverBase {
|
|
|
37826
37826
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
37827
37827
|
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
37828
|
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] :
|
|
37829
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Entity Document Settings', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
37830
37830
|
return result;
|
|
37831
37831
|
}
|
|
37832
37832
|
|
|
@@ -37973,7 +37973,7 @@ export class MJEntityDocumentTypeResolver extends ResolverBase {
|
|
|
37973
37973
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
37974
37974
|
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
37975
|
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] :
|
|
37976
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Entity Document Types', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
37977
37977
|
return result;
|
|
37978
37978
|
}
|
|
37979
37979
|
|
|
@@ -38225,7 +38225,7 @@ export class MJEntityDocumentResolver extends ResolverBase {
|
|
|
38225
38225
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
38226
38226
|
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
38227
|
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] :
|
|
38228
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Entity Documents', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
38229
38229
|
return result;
|
|
38230
38230
|
}
|
|
38231
38231
|
|
|
@@ -38440,7 +38440,7 @@ export class MJEntityFieldValueResolver extends ResolverBase {
|
|
|
38440
38440
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
38441
38441
|
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
38442
|
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] :
|
|
38443
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Entity Field Values', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
38444
38444
|
return result;
|
|
38445
38445
|
}
|
|
38446
38446
|
|
|
@@ -39056,7 +39056,7 @@ export class MJEntityFieldResolver extends ResolverBase {
|
|
|
39056
39056
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
39057
39057
|
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
39058
|
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] :
|
|
39059
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Entity Fields', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
39060
39060
|
return result;
|
|
39061
39061
|
}
|
|
39062
39062
|
|
|
@@ -39325,7 +39325,7 @@ export class MJEntityPermissionResolver extends ResolverBase {
|
|
|
39325
39325
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
39326
39326
|
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
39327
|
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] :
|
|
39328
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Entity Permissions', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
39329
39329
|
return result;
|
|
39330
39330
|
}
|
|
39331
39331
|
|
|
@@ -39549,7 +39549,7 @@ export class MJEntityRecordDocumentResolver extends ResolverBase {
|
|
|
39549
39549
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
39550
39550
|
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
39551
|
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] :
|
|
39552
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Entity Record Documents', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
39553
39553
|
return result;
|
|
39554
39554
|
}
|
|
39555
39555
|
|
|
@@ -39706,7 +39706,7 @@ export class MJEntityRelationshipDisplayComponentResolver extends ResolverBase {
|
|
|
39706
39706
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
39707
39707
|
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
39708
|
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] :
|
|
39709
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Entity Relationship Display Components', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
39710
39710
|
return result;
|
|
39711
39711
|
}
|
|
39712
39712
|
|
|
@@ -40084,7 +40084,7 @@ export class MJEntityRelationshipResolver extends ResolverBase {
|
|
|
40084
40084
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
40085
40085
|
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
40086
|
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] :
|
|
40087
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Entity Relationships', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
40088
40088
|
return result;
|
|
40089
40089
|
}
|
|
40090
40090
|
|
|
@@ -40261,7 +40261,7 @@ export class MJEntitySettingResolver extends ResolverBase {
|
|
|
40261
40261
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
40262
40262
|
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
40263
|
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] :
|
|
40264
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Entity Settings', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
40265
40265
|
return result;
|
|
40266
40266
|
}
|
|
40267
40267
|
|
|
@@ -40444,7 +40444,7 @@ export class MJEnvironmentResolver extends ResolverBase {
|
|
|
40444
40444
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
40445
40445
|
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
40446
|
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] :
|
|
40447
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Environments', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
40448
40448
|
return result;
|
|
40449
40449
|
}
|
|
40450
40450
|
|
|
@@ -40725,7 +40725,7 @@ export class MJErrorLogResolver extends ResolverBase {
|
|
|
40725
40725
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
40726
40726
|
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
40727
|
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] :
|
|
40728
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Error Logs', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
40729
40729
|
return result;
|
|
40730
40730
|
}
|
|
40731
40731
|
|
|
@@ -40934,7 +40934,7 @@ export class MJExplorerNavigationItemResolver extends ResolverBase {
|
|
|
40934
40934
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
40935
40935
|
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
40936
|
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] :
|
|
40937
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Explorer Navigation Items', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
40938
40938
|
return result;
|
|
40939
40939
|
}
|
|
40940
40940
|
|
|
@@ -41102,7 +41102,7 @@ export class MJFileCategoryResolver extends ResolverBase {
|
|
|
41102
41102
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
41103
41103
|
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
41104
|
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] :
|
|
41105
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: File Categories', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
41106
41106
|
return result;
|
|
41107
41107
|
}
|
|
41108
41108
|
|
|
@@ -41285,7 +41285,7 @@ export class MJFileEntityRecordLinkResolver extends ResolverBase {
|
|
|
41285
41285
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
41286
41286
|
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
41287
|
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] :
|
|
41288
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: File Entity Record Links', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
41289
41289
|
return result;
|
|
41290
41290
|
}
|
|
41291
41291
|
|
|
@@ -41457,7 +41457,7 @@ export class MJFileStorageAccountResolver extends ResolverBase {
|
|
|
41457
41457
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
41458
41458
|
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
41459
|
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] :
|
|
41460
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: File Storage Accounts', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
41461
41461
|
return result;
|
|
41462
41462
|
}
|
|
41463
41463
|
|
|
@@ -41678,7 +41678,7 @@ export class MJFileStorageProviderResolver extends ResolverBase {
|
|
|
41678
41678
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
41679
41679
|
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
41680
|
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] :
|
|
41681
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: File Storage Providers', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
41682
41682
|
return result;
|
|
41683
41683
|
}
|
|
41684
41684
|
|
|
@@ -41932,7 +41932,7 @@ export class MJFileResolver extends ResolverBase {
|
|
|
41932
41932
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
41933
41933
|
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
41934
|
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] :
|
|
41935
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Files', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
41936
41936
|
return result;
|
|
41937
41937
|
}
|
|
41938
41938
|
|
|
@@ -42140,7 +42140,7 @@ export class MJGeneratedCodeCategoryResolver extends ResolverBase {
|
|
|
42140
42140
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
42141
42141
|
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
42142
|
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] :
|
|
42143
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Generated Code Categories', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
42144
42144
|
return result;
|
|
42145
42145
|
}
|
|
42146
42146
|
|
|
@@ -42402,7 +42402,7 @@ export class MJGeneratedCodeResolver extends ResolverBase {
|
|
|
42402
42402
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
42403
42403
|
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
42404
|
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] :
|
|
42405
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Generated Codes', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
42406
42406
|
return result;
|
|
42407
42407
|
}
|
|
42408
42408
|
|
|
@@ -42724,7 +42724,7 @@ export class MJIntegrationObjectFieldResolver extends ResolverBase {
|
|
|
42724
42724
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
42725
42725
|
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
42726
|
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] :
|
|
42727
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Integration Object Fields', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
42728
42728
|
return result;
|
|
42729
42729
|
}
|
|
42730
42730
|
|
|
@@ -43011,7 +43011,7 @@ export class MJIntegrationObjectResolver extends ResolverBase {
|
|
|
43011
43011
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
43012
43012
|
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
43013
|
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] :
|
|
43014
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Integration Objects', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
43015
43015
|
return result;
|
|
43016
43016
|
}
|
|
43017
43017
|
|
|
@@ -43208,7 +43208,7 @@ export class MJIntegrationSourceTypeResolver extends ResolverBase {
|
|
|
43208
43208
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
43209
43209
|
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
43210
|
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] :
|
|
43211
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Integration Source Types', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
43212
43212
|
return result;
|
|
43213
43213
|
}
|
|
43214
43214
|
|
|
@@ -43394,7 +43394,7 @@ export class MJIntegrationURLFormatResolver extends ResolverBase {
|
|
|
43394
43394
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
43395
43395
|
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
43396
|
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] :
|
|
43397
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Integration URL Formats', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
43398
43398
|
return result;
|
|
43399
43399
|
}
|
|
43400
43400
|
|
|
@@ -43623,7 +43623,7 @@ export class MJIntegrationResolver extends ResolverBase {
|
|
|
43623
43623
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
43624
43624
|
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
43625
|
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] :
|
|
43626
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Integrations', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
43627
43627
|
return result;
|
|
43628
43628
|
}
|
|
43629
43629
|
|
|
@@ -43851,7 +43851,7 @@ export class MJLibraryResolver extends ResolverBase {
|
|
|
43851
43851
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
43852
43852
|
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
43853
|
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] :
|
|
43854
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Libraries', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
43855
43855
|
return result;
|
|
43856
43856
|
}
|
|
43857
43857
|
|
|
@@ -44030,7 +44030,7 @@ export class MJLibraryItemResolver extends ResolverBase {
|
|
|
44030
44030
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
44031
44031
|
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
44032
|
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] :
|
|
44033
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Library Items', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
44034
44034
|
return result;
|
|
44035
44035
|
}
|
|
44036
44036
|
|
|
@@ -44212,7 +44212,7 @@ export class MJListCategoryResolver extends ResolverBase {
|
|
|
44212
44212
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
44213
44213
|
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
44214
|
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] :
|
|
44215
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: List Categories', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
44216
44216
|
return result;
|
|
44217
44217
|
}
|
|
44218
44218
|
|
|
@@ -44409,7 +44409,7 @@ export class MJListDetailResolver extends ResolverBase {
|
|
|
44409
44409
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
44410
44410
|
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
44411
|
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] :
|
|
44412
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: List Details', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
44413
44413
|
return result;
|
|
44414
44414
|
}
|
|
44415
44415
|
|
|
@@ -44611,7 +44611,7 @@ export class MJListInvitationResolver extends ResolverBase {
|
|
|
44611
44611
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
44612
44612
|
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
44613
|
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] :
|
|
44614
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: List Invitations', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
44615
44615
|
return result;
|
|
44616
44616
|
}
|
|
44617
44617
|
|
|
@@ -44784,7 +44784,7 @@ export class MJListShareResolver extends ResolverBase {
|
|
|
44784
44784
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
44785
44785
|
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
44786
|
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] :
|
|
44787
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: List Shares', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
44788
44788
|
return result;
|
|
44789
44789
|
}
|
|
44790
44790
|
|
|
@@ -45006,7 +45006,7 @@ export class MJListResolver extends ResolverBase {
|
|
|
45006
45006
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
45007
45007
|
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
45008
|
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] :
|
|
45009
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Lists', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
45010
45010
|
return result;
|
|
45011
45011
|
}
|
|
45012
45012
|
|
|
@@ -45240,7 +45240,7 @@ export class MJMCPServerConnectionPermissionResolver extends ResolverBase {
|
|
|
45240
45240
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
45241
45241
|
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
45242
|
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] :
|
|
45243
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: MCP Server Connection Permissions', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
45244
45244
|
return result;
|
|
45245
45245
|
}
|
|
45246
45246
|
|
|
@@ -45420,7 +45420,7 @@ export class MJMCPServerConnectionToolResolver extends ResolverBase {
|
|
|
45420
45420
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
45421
45421
|
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
45422
|
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] :
|
|
45423
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: MCP Server Connection Tools', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
45424
45424
|
return result;
|
|
45425
45425
|
}
|
|
45426
45426
|
|
|
@@ -45725,7 +45725,7 @@ export class MJMCPServerConnectionResolver extends ResolverBase {
|
|
|
45725
45725
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
45726
45726
|
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
45727
|
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] :
|
|
45728
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: MCP Server Connections', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
45729
45729
|
return result;
|
|
45730
45730
|
}
|
|
45731
45731
|
|
|
@@ -46042,7 +46042,7 @@ export class MJMCPServerToolResolver extends ResolverBase {
|
|
|
46042
46042
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
46043
46043
|
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
46044
|
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] :
|
|
46045
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: MCP Server Tools', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
46046
46046
|
return result;
|
|
46047
46047
|
}
|
|
46048
46048
|
|
|
@@ -46410,7 +46410,7 @@ export class MJMCPServerResolver extends ResolverBase {
|
|
|
46410
46410
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
46411
46411
|
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
46412
|
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] :
|
|
46413
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: MCP Servers', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
46414
46414
|
return result;
|
|
46415
46415
|
}
|
|
46416
46416
|
|
|
@@ -46689,7 +46689,7 @@ export class MJMCPToolExecutionLogResolver extends ResolverBase {
|
|
|
46689
46689
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
46690
46690
|
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
46691
|
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] :
|
|
46692
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: MCP Tool Execution Logs', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
46693
46693
|
return result;
|
|
46694
46694
|
}
|
|
46695
46695
|
|
|
@@ -46946,7 +46946,7 @@ export class MJOAuthAuthServerMetadataCacheResolver extends ResolverBase {
|
|
|
46946
46946
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
46947
46947
|
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
46948
|
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] :
|
|
46949
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: O Auth Auth Server Metadata Caches', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
46950
46950
|
return result;
|
|
46951
46951
|
}
|
|
46952
46952
|
|
|
@@ -47224,7 +47224,7 @@ export class MJOAuthAuthorizationStateResolver extends ResolverBase {
|
|
|
47224
47224
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
47225
47225
|
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
47226
|
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] :
|
|
47227
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: O Auth Authorization States', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
47228
47228
|
return result;
|
|
47229
47229
|
}
|
|
47230
47230
|
|
|
@@ -47499,7 +47499,7 @@ export class MJOAuthClientRegistrationResolver extends ResolverBase {
|
|
|
47499
47499
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
47500
47500
|
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
47501
|
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] :
|
|
47502
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: O Auth Client Registrations', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
47503
47503
|
return result;
|
|
47504
47504
|
}
|
|
47505
47505
|
|
|
@@ -47709,7 +47709,7 @@ export class MJOAuthTokenResolver extends ResolverBase {
|
|
|
47709
47709
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
47710
47710
|
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
47711
|
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] :
|
|
47712
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: O Auth Tokens', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
47713
47713
|
return result;
|
|
47714
47714
|
}
|
|
47715
47715
|
|
|
@@ -47902,7 +47902,7 @@ export class MJOpenAppDependencyResolver extends ResolverBase {
|
|
|
47902
47902
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
47903
47903
|
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
47904
|
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] :
|
|
47905
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Open App Dependencies', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
47906
47906
|
return result;
|
|
47907
47907
|
}
|
|
47908
47908
|
|
|
@@ -48158,7 +48158,7 @@ export class MJOpenAppInstallHistoryResolver extends ResolverBase {
|
|
|
48158
48158
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
48159
48159
|
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
48160
|
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] :
|
|
48161
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Open App Install Histories', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
48162
48162
|
return result;
|
|
48163
48163
|
}
|
|
48164
48164
|
|
|
@@ -48463,7 +48463,7 @@ export class MJOpenAppResolver extends ResolverBase {
|
|
|
48463
48463
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
48464
48464
|
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
48465
|
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] :
|
|
48466
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Open Apps', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
48467
48467
|
return result;
|
|
48468
48468
|
}
|
|
48469
48469
|
|
|
@@ -48640,7 +48640,7 @@ export class MJOutputDeliveryTypeResolver extends ResolverBase {
|
|
|
48640
48640
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
48641
48641
|
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
48642
|
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] :
|
|
48643
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Output Delivery Types', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
48644
48644
|
return result;
|
|
48645
48645
|
}
|
|
48646
48646
|
|
|
@@ -48806,7 +48806,7 @@ export class MJOutputFormatTypeResolver extends ResolverBase {
|
|
|
48806
48806
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
48807
48807
|
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
48808
|
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] :
|
|
48809
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Output Format Types', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
48810
48810
|
return result;
|
|
48811
48811
|
}
|
|
48812
48812
|
|
|
@@ -48963,7 +48963,7 @@ export class MJOutputTriggerTypeResolver extends ResolverBase {
|
|
|
48963
48963
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
48964
48964
|
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
48965
|
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] :
|
|
48966
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Output Trigger Types', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
48967
48967
|
return result;
|
|
48968
48968
|
}
|
|
48969
48969
|
|
|
@@ -49187,7 +49187,7 @@ export class MJProjectResolver extends ResolverBase {
|
|
|
49187
49187
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
49188
49188
|
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
49189
|
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] :
|
|
49190
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Projects', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
49191
49191
|
return result;
|
|
49192
49192
|
}
|
|
49193
49193
|
|
|
@@ -49432,7 +49432,7 @@ export class MJPublicLinkResolver extends ResolverBase {
|
|
|
49432
49432
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
49433
49433
|
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
49434
|
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] :
|
|
49435
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Public Links', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
49436
49436
|
return result;
|
|
49437
49437
|
}
|
|
49438
49438
|
|
|
@@ -49545,6 +49545,9 @@ export class MJQuery_ {
|
|
|
49545
49545
|
@MaxLength(36)
|
|
49546
49546
|
SQLDialectID: string;
|
|
49547
49547
|
|
|
49548
|
+
@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.`})
|
|
49549
|
+
Reusable: boolean;
|
|
49550
|
+
|
|
49548
49551
|
@Field({nullable: true})
|
|
49549
49552
|
@MaxLength(50)
|
|
49550
49553
|
Category?: string;
|
|
@@ -49569,12 +49572,18 @@ export class MJQuery_ {
|
|
|
49569
49572
|
@Field(() => [MJQueryParameter_])
|
|
49570
49573
|
MJQueryParameters_QueryIDArray: MJQueryParameter_[]; // Link to MJQueryParameters
|
|
49571
49574
|
|
|
49575
|
+
@Field(() => [MJQueryDependency_])
|
|
49576
|
+
MJQueryDependencies_DependsOnQueryIDArray: MJQueryDependency_[]; // Link to MJQueryDependencies
|
|
49577
|
+
|
|
49572
49578
|
@Field(() => [MJQueryEntity_])
|
|
49573
49579
|
MJQueryEntities_QueryIDArray: MJQueryEntity_[]; // Link to MJQueryEntities
|
|
49574
49580
|
|
|
49575
49581
|
@Field(() => [MJQuerySQL_])
|
|
49576
49582
|
MJQuerySQLs_QueryIDArray: MJQuerySQL_[]; // Link to MJQuerySQLs
|
|
49577
49583
|
|
|
49584
|
+
@Field(() => [MJQueryDependency_])
|
|
49585
|
+
MJQueryDependencies_QueryIDArray: MJQueryDependency_[]; // Link to MJQueryDependencies
|
|
49586
|
+
|
|
49578
49587
|
}
|
|
49579
49588
|
|
|
49580
49589
|
//****************************************************************************
|
|
@@ -49644,6 +49653,9 @@ export class CreateMJQueryInput {
|
|
|
49644
49653
|
|
|
49645
49654
|
@Field({ nullable: true })
|
|
49646
49655
|
SQLDialectID?: string;
|
|
49656
|
+
|
|
49657
|
+
@Field(() => Boolean, { nullable: true })
|
|
49658
|
+
Reusable?: boolean;
|
|
49647
49659
|
}
|
|
49648
49660
|
|
|
49649
49661
|
|
|
@@ -49715,6 +49727,9 @@ export class UpdateMJQueryInput {
|
|
|
49715
49727
|
@Field({ nullable: true })
|
|
49716
49728
|
SQLDialectID?: string;
|
|
49717
49729
|
|
|
49730
|
+
@Field(() => Boolean, { nullable: true })
|
|
49731
|
+
Reusable?: boolean;
|
|
49732
|
+
|
|
49718
49733
|
@Field(() => [KeyValuePairInput], { nullable: true })
|
|
49719
49734
|
OldValues___?: KeyValuePairInput[];
|
|
49720
49735
|
}
|
|
@@ -49772,7 +49787,7 @@ export class MJQueryResolver extends ResolverBase {
|
|
|
49772
49787
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
49773
49788
|
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
49789
|
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] :
|
|
49790
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Queries', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
49776
49791
|
return result;
|
|
49777
49792
|
}
|
|
49778
49793
|
|
|
@@ -49816,6 +49831,16 @@ export class MJQueryResolver extends ResolverBase {
|
|
|
49816
49831
|
return result;
|
|
49817
49832
|
}
|
|
49818
49833
|
|
|
49834
|
+
@FieldResolver(() => [MJQueryDependency_])
|
|
49835
|
+
async MJQueryDependencies_DependsOnQueryIDArray(@Root() mjquery_: MJQuery_, @Ctx() { userPayload, providers }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
49836
|
+
this.CheckUserReadPermissions('MJ: Query Dependencies', userPayload);
|
|
49837
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
49838
|
+
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');
|
|
49839
|
+
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
49840
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: Query Dependencies', rows, this.GetUserFromPayload(userPayload));
|
|
49841
|
+
return result;
|
|
49842
|
+
}
|
|
49843
|
+
|
|
49819
49844
|
@FieldResolver(() => [MJQueryEntity_])
|
|
49820
49845
|
async MJQueryEntities_QueryIDArray(@Root() mjquery_: MJQuery_, @Ctx() { userPayload, providers }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
49821
49846
|
this.CheckUserReadPermissions('MJ: Query Entities', userPayload);
|
|
@@ -49836,6 +49861,16 @@ export class MJQueryResolver extends ResolverBase {
|
|
|
49836
49861
|
return result;
|
|
49837
49862
|
}
|
|
49838
49863
|
|
|
49864
|
+
@FieldResolver(() => [MJQueryDependency_])
|
|
49865
|
+
async MJQueryDependencies_QueryIDArray(@Root() mjquery_: MJQuery_, @Ctx() { userPayload, providers }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
49866
|
+
this.CheckUserReadPermissions('MJ: Query Dependencies', userPayload);
|
|
49867
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
49868
|
+
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');
|
|
49869
|
+
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
49870
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: Query Dependencies', rows, this.GetUserFromPayload(userPayload));
|
|
49871
|
+
return result;
|
|
49872
|
+
}
|
|
49873
|
+
|
|
49839
49874
|
@Mutation(() => MJQuery_)
|
|
49840
49875
|
async CreateMJQuery(
|
|
49841
49876
|
@Arg('input', () => CreateMJQueryInput) input: CreateMJQueryInput,
|
|
@@ -50050,7 +50085,7 @@ export class MJQueryCategoryResolver extends ResolverBase {
|
|
|
50050
50085
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
50051
50086
|
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
50087
|
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] :
|
|
50088
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Query Categories', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
50054
50089
|
return result;
|
|
50055
50090
|
}
|
|
50056
50091
|
|
|
@@ -50103,6 +50138,198 @@ export class MJQueryCategoryResolver extends ResolverBase {
|
|
|
50103
50138
|
|
|
50104
50139
|
}
|
|
50105
50140
|
|
|
50141
|
+
//****************************************************************************
|
|
50142
|
+
// ENTITY CLASS for MJ: Query Dependencies
|
|
50143
|
+
//****************************************************************************
|
|
50144
|
+
@ObjectType({ description: `Tracks which queries reference other queries via composition syntax. Auto-populated by the query save pipeline.` })
|
|
50145
|
+
export class MJQueryDependency_ {
|
|
50146
|
+
@Field()
|
|
50147
|
+
@MaxLength(36)
|
|
50148
|
+
ID: string;
|
|
50149
|
+
|
|
50150
|
+
@Field({description: `Foreign key to the query that contains the composition reference.`})
|
|
50151
|
+
@MaxLength(36)
|
|
50152
|
+
QueryID: string;
|
|
50153
|
+
|
|
50154
|
+
@Field({description: `Foreign key to the referenced (depended-upon) query.`})
|
|
50155
|
+
@MaxLength(36)
|
|
50156
|
+
DependsOnQueryID: string;
|
|
50157
|
+
|
|
50158
|
+
@Field({description: `The full composition reference path as written in the SQL.`})
|
|
50159
|
+
@MaxLength(500)
|
|
50160
|
+
ReferencePath: string;
|
|
50161
|
+
|
|
50162
|
+
@Field({nullable: true, description: `SQL alias used for the composed CTE in the referencing query.`})
|
|
50163
|
+
@MaxLength(100)
|
|
50164
|
+
Alias?: string;
|
|
50165
|
+
|
|
50166
|
+
@Field({nullable: true, description: `JSON object mapping parameter names to values or pass-through parameter names.`})
|
|
50167
|
+
ParameterMapping?: string;
|
|
50168
|
+
|
|
50169
|
+
@Field({description: `How the dependency was detected: Auto (parsed from SQL) or Manual (user-specified).`})
|
|
50170
|
+
@MaxLength(20)
|
|
50171
|
+
DetectionMethod: string;
|
|
50172
|
+
|
|
50173
|
+
@Field()
|
|
50174
|
+
_mj__CreatedAt: Date;
|
|
50175
|
+
|
|
50176
|
+
@Field()
|
|
50177
|
+
_mj__UpdatedAt: Date;
|
|
50178
|
+
|
|
50179
|
+
@Field()
|
|
50180
|
+
@MaxLength(255)
|
|
50181
|
+
Query: string;
|
|
50182
|
+
|
|
50183
|
+
@Field()
|
|
50184
|
+
@MaxLength(255)
|
|
50185
|
+
DependsOnQuery: string;
|
|
50186
|
+
|
|
50187
|
+
}
|
|
50188
|
+
|
|
50189
|
+
//****************************************************************************
|
|
50190
|
+
// INPUT TYPE for MJ: Query Dependencies
|
|
50191
|
+
//****************************************************************************
|
|
50192
|
+
@InputType()
|
|
50193
|
+
export class CreateMJQueryDependencyInput {
|
|
50194
|
+
@Field({ nullable: true })
|
|
50195
|
+
ID?: string;
|
|
50196
|
+
|
|
50197
|
+
@Field({ nullable: true })
|
|
50198
|
+
QueryID?: string;
|
|
50199
|
+
|
|
50200
|
+
@Field({ nullable: true })
|
|
50201
|
+
DependsOnQueryID?: string;
|
|
50202
|
+
|
|
50203
|
+
@Field({ nullable: true })
|
|
50204
|
+
ReferencePath?: string;
|
|
50205
|
+
|
|
50206
|
+
@Field({ nullable: true })
|
|
50207
|
+
Alias: string | null;
|
|
50208
|
+
|
|
50209
|
+
@Field({ nullable: true })
|
|
50210
|
+
ParameterMapping: string | null;
|
|
50211
|
+
|
|
50212
|
+
@Field({ nullable: true })
|
|
50213
|
+
DetectionMethod?: string;
|
|
50214
|
+
}
|
|
50215
|
+
|
|
50216
|
+
|
|
50217
|
+
//****************************************************************************
|
|
50218
|
+
// INPUT TYPE for MJ: Query Dependencies
|
|
50219
|
+
//****************************************************************************
|
|
50220
|
+
@InputType()
|
|
50221
|
+
export class UpdateMJQueryDependencyInput {
|
|
50222
|
+
@Field()
|
|
50223
|
+
ID: string;
|
|
50224
|
+
|
|
50225
|
+
@Field({ nullable: true })
|
|
50226
|
+
QueryID?: string;
|
|
50227
|
+
|
|
50228
|
+
@Field({ nullable: true })
|
|
50229
|
+
DependsOnQueryID?: string;
|
|
50230
|
+
|
|
50231
|
+
@Field({ nullable: true })
|
|
50232
|
+
ReferencePath?: string;
|
|
50233
|
+
|
|
50234
|
+
@Field({ nullable: true })
|
|
50235
|
+
Alias?: string | null;
|
|
50236
|
+
|
|
50237
|
+
@Field({ nullable: true })
|
|
50238
|
+
ParameterMapping?: string | null;
|
|
50239
|
+
|
|
50240
|
+
@Field({ nullable: true })
|
|
50241
|
+
DetectionMethod?: string;
|
|
50242
|
+
|
|
50243
|
+
@Field(() => [KeyValuePairInput], { nullable: true })
|
|
50244
|
+
OldValues___?: KeyValuePairInput[];
|
|
50245
|
+
}
|
|
50246
|
+
|
|
50247
|
+
//****************************************************************************
|
|
50248
|
+
// RESOLVER for MJ: Query Dependencies
|
|
50249
|
+
//****************************************************************************
|
|
50250
|
+
@ObjectType()
|
|
50251
|
+
export class RunMJQueryDependencyViewResult {
|
|
50252
|
+
@Field(() => [MJQueryDependency_])
|
|
50253
|
+
Results: MJQueryDependency_[];
|
|
50254
|
+
|
|
50255
|
+
@Field(() => String, {nullable: true})
|
|
50256
|
+
UserViewRunID?: string;
|
|
50257
|
+
|
|
50258
|
+
@Field(() => Int, {nullable: true})
|
|
50259
|
+
RowCount: number;
|
|
50260
|
+
|
|
50261
|
+
@Field(() => Int, {nullable: true})
|
|
50262
|
+
TotalRowCount: number;
|
|
50263
|
+
|
|
50264
|
+
@Field(() => Int, {nullable: true})
|
|
50265
|
+
ExecutionTime: number;
|
|
50266
|
+
|
|
50267
|
+
@Field({nullable: true})
|
|
50268
|
+
ErrorMessage?: string;
|
|
50269
|
+
|
|
50270
|
+
@Field(() => Boolean, {nullable: false})
|
|
50271
|
+
Success: boolean;
|
|
50272
|
+
}
|
|
50273
|
+
|
|
50274
|
+
@Resolver(MJQueryDependency_)
|
|
50275
|
+
export class MJQueryDependencyResolver extends ResolverBase {
|
|
50276
|
+
@Query(() => RunMJQueryDependencyViewResult)
|
|
50277
|
+
async RunMJQueryDependencyViewByID(@Arg('input', () => RunViewByIDInput) input: RunViewByIDInput, @Ctx() { providers, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
50278
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
50279
|
+
return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
|
|
50280
|
+
}
|
|
50281
|
+
|
|
50282
|
+
@Query(() => RunMJQueryDependencyViewResult)
|
|
50283
|
+
async RunMJQueryDependencyViewByName(@Arg('input', () => RunViewByNameInput) input: RunViewByNameInput, @Ctx() { providers, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
50284
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
50285
|
+
return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
|
|
50286
|
+
}
|
|
50287
|
+
|
|
50288
|
+
@Query(() => RunMJQueryDependencyViewResult)
|
|
50289
|
+
async RunMJQueryDependencyDynamicView(@Arg('input', () => RunDynamicViewInput) input: RunDynamicViewInput, @Ctx() { providers, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
50290
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
50291
|
+
input.EntityName = 'MJ: Query Dependencies';
|
|
50292
|
+
return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
|
|
50293
|
+
}
|
|
50294
|
+
@Query(() => MJQueryDependency_, { nullable: true })
|
|
50295
|
+
async MJQueryDependency(@Arg('ID', () => String) ID: string, @Ctx() { userPayload, providers }: AppContext, @PubSub() pubSub: PubSubEngine): Promise<MJQueryDependency_ | null> {
|
|
50296
|
+
this.CheckUserReadPermissions('MJ: Query Dependencies', userPayload);
|
|
50297
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
50298
|
+
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');
|
|
50299
|
+
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
50300
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Query Dependencies', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
50301
|
+
return result;
|
|
50302
|
+
}
|
|
50303
|
+
|
|
50304
|
+
@Mutation(() => MJQueryDependency_)
|
|
50305
|
+
async CreateMJQueryDependency(
|
|
50306
|
+
@Arg('input', () => CreateMJQueryDependencyInput) input: CreateMJQueryDependencyInput,
|
|
50307
|
+
@Ctx() { providers, userPayload }: AppContext,
|
|
50308
|
+
@PubSub() pubSub: PubSubEngine
|
|
50309
|
+
) {
|
|
50310
|
+
const provider = GetReadWriteProvider(providers);
|
|
50311
|
+
return this.CreateRecord('MJ: Query Dependencies', input, provider, userPayload, pubSub)
|
|
50312
|
+
}
|
|
50313
|
+
|
|
50314
|
+
@Mutation(() => MJQueryDependency_)
|
|
50315
|
+
async UpdateMJQueryDependency(
|
|
50316
|
+
@Arg('input', () => UpdateMJQueryDependencyInput) input: UpdateMJQueryDependencyInput,
|
|
50317
|
+
@Ctx() { providers, userPayload }: AppContext,
|
|
50318
|
+
@PubSub() pubSub: PubSubEngine
|
|
50319
|
+
) {
|
|
50320
|
+
const provider = GetReadWriteProvider(providers);
|
|
50321
|
+
return this.UpdateRecord('MJ: Query Dependencies', input, provider, userPayload, pubSub);
|
|
50322
|
+
}
|
|
50323
|
+
|
|
50324
|
+
@Mutation(() => MJQueryDependency_)
|
|
50325
|
+
async DeleteMJQueryDependency(@Arg('ID', () => String) ID: string, @Arg('options___', () => DeleteOptionsInput) options: DeleteOptionsInput, @Ctx() { providers, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
50326
|
+
const provider = GetReadWriteProvider(providers);
|
|
50327
|
+
const key = new CompositeKey([{FieldName: 'ID', Value: ID}]);
|
|
50328
|
+
return this.DeleteRecord('MJ: Query Dependencies', key, options, provider, userPayload, pubSub);
|
|
50329
|
+
}
|
|
50330
|
+
|
|
50331
|
+
}
|
|
50332
|
+
|
|
50106
50333
|
//****************************************************************************
|
|
50107
50334
|
// ENTITY CLASS for MJ: Query Entities
|
|
50108
50335
|
//****************************************************************************
|
|
@@ -50242,7 +50469,7 @@ export class MJQueryEntityResolver extends ResolverBase {
|
|
|
50242
50469
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
50243
50470
|
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
50471
|
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] :
|
|
50472
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Query Entities', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
50246
50473
|
return result;
|
|
50247
50474
|
}
|
|
50248
50475
|
|
|
@@ -50508,7 +50735,7 @@ export class MJQueryFieldResolver extends ResolverBase {
|
|
|
50508
50735
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
50509
50736
|
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
50737
|
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] :
|
|
50738
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Query Fields', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
50512
50739
|
return result;
|
|
50513
50740
|
}
|
|
50514
50741
|
|
|
@@ -50731,7 +50958,7 @@ export class MJQueryParameterResolver extends ResolverBase {
|
|
|
50731
50958
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
50732
50959
|
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
50960
|
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] :
|
|
50961
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Query Parameters', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
50735
50962
|
return result;
|
|
50736
50963
|
}
|
|
50737
50964
|
|
|
@@ -50884,7 +51111,7 @@ export class MJQueryPermissionResolver extends ResolverBase {
|
|
|
50884
51111
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
50885
51112
|
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
51113
|
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] :
|
|
51114
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Query Permissions', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
50888
51115
|
return result;
|
|
50889
51116
|
}
|
|
50890
51117
|
|
|
@@ -51046,7 +51273,7 @@ export class MJQuerySQLResolver extends ResolverBase {
|
|
|
51046
51273
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
51047
51274
|
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
51275
|
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] :
|
|
51276
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Query SQLs', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
51050
51277
|
return result;
|
|
51051
51278
|
}
|
|
51052
51279
|
|
|
@@ -51258,7 +51485,7 @@ export class MJQueueTaskResolver extends ResolverBase {
|
|
|
51258
51485
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
51259
51486
|
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
51487
|
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] :
|
|
51488
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Queue Tasks', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
51262
51489
|
return result;
|
|
51263
51490
|
}
|
|
51264
51491
|
|
|
@@ -51434,7 +51661,7 @@ export class MJQueueTypeResolver extends ResolverBase {
|
|
|
51434
51661
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
51435
51662
|
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
51663
|
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] :
|
|
51664
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Queue Types', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
51438
51665
|
return result;
|
|
51439
51666
|
}
|
|
51440
51667
|
|
|
@@ -51732,7 +51959,7 @@ export class MJQueueResolver extends ResolverBase {
|
|
|
51732
51959
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
51733
51960
|
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
51961
|
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] :
|
|
51962
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Queues', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
51736
51963
|
return result;
|
|
51737
51964
|
}
|
|
51738
51965
|
|
|
@@ -51913,7 +52140,7 @@ export class MJRecommendationItemResolver extends ResolverBase {
|
|
|
51913
52140
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
51914
52141
|
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
52142
|
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] :
|
|
52143
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Recommendation Items', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
51917
52144
|
return result;
|
|
51918
52145
|
}
|
|
51919
52146
|
|
|
@@ -52060,7 +52287,7 @@ export class MJRecommendationProviderResolver extends ResolverBase {
|
|
|
52060
52287
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
52061
52288
|
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
52289
|
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] :
|
|
52290
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Recommendation Providers', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
52064
52291
|
return result;
|
|
52065
52292
|
}
|
|
52066
52293
|
|
|
@@ -52263,7 +52490,7 @@ export class MJRecommendationRunResolver extends ResolverBase {
|
|
|
52263
52490
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
52264
52491
|
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
52492
|
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] :
|
|
52493
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Recommendation Runs', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
52267
52494
|
return result;
|
|
52268
52495
|
}
|
|
52269
52496
|
|
|
@@ -52438,7 +52665,7 @@ export class MJRecommendationResolver extends ResolverBase {
|
|
|
52438
52665
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
52439
52666
|
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
52667
|
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] :
|
|
52668
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Recommendations', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
52442
52669
|
return result;
|
|
52443
52670
|
}
|
|
52444
52671
|
|
|
@@ -52618,7 +52845,7 @@ export class MJRecordChangeReplayRunResolver extends ResolverBase {
|
|
|
52618
52845
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
52619
52846
|
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
52847
|
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] :
|
|
52848
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Record Change Replay Runs', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
52622
52849
|
return result;
|
|
52623
52850
|
}
|
|
52624
52851
|
|
|
@@ -52906,7 +53133,7 @@ export class MJRecordChangeResolver extends ResolverBase {
|
|
|
52906
53133
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
52907
53134
|
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
53135
|
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] :
|
|
53136
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Record Changes', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
52910
53137
|
return result;
|
|
52911
53138
|
}
|
|
52912
53139
|
|
|
@@ -53117,7 +53344,7 @@ export class MJRecordLinkResolver extends ResolverBase {
|
|
|
53117
53344
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
53118
53345
|
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
53346
|
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] :
|
|
53347
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Record Links', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
53121
53348
|
return result;
|
|
53122
53349
|
}
|
|
53123
53350
|
|
|
@@ -53285,7 +53512,7 @@ export class MJRecordMergeDeletionLogResolver extends ResolverBase {
|
|
|
53285
53512
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
53286
53513
|
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
53514
|
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] :
|
|
53515
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Record Merge Deletion Logs', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
53289
53516
|
return result;
|
|
53290
53517
|
}
|
|
53291
53518
|
|
|
@@ -53524,7 +53751,7 @@ export class MJRecordMergeLogResolver extends ResolverBase {
|
|
|
53524
53751
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
53525
53752
|
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
53753
|
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] :
|
|
53754
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Record Merge Logs', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
53528
53755
|
return result;
|
|
53529
53756
|
}
|
|
53530
53757
|
|
|
@@ -53726,7 +53953,7 @@ export class MJReportCategoryResolver extends ResolverBase {
|
|
|
53726
53953
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
53727
53954
|
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
53955
|
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] :
|
|
53956
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Report Categories', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
53730
53957
|
return result;
|
|
53731
53958
|
}
|
|
53732
53959
|
|
|
@@ -53908,7 +54135,7 @@ export class MJReportSnapshotResolver extends ResolverBase {
|
|
|
53908
54135
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
53909
54136
|
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
54137
|
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] :
|
|
54138
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Report Snapshots', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
53912
54139
|
return result;
|
|
53913
54140
|
}
|
|
53914
54141
|
|
|
@@ -54070,7 +54297,7 @@ export class MJReportUserStateResolver extends ResolverBase {
|
|
|
54070
54297
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
54071
54298
|
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
54299
|
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] :
|
|
54300
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Report User States', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
54074
54301
|
return result;
|
|
54075
54302
|
}
|
|
54076
54303
|
|
|
@@ -54255,7 +54482,7 @@ export class MJReportVersionResolver extends ResolverBase {
|
|
|
54255
54482
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
54256
54483
|
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
54484
|
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] :
|
|
54485
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Report Versions', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
54259
54486
|
return result;
|
|
54260
54487
|
}
|
|
54261
54488
|
|
|
@@ -54595,7 +54822,7 @@ export class MJReportResolver extends ResolverBase {
|
|
|
54595
54822
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
54596
54823
|
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
54824
|
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] :
|
|
54825
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Reports', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
54599
54826
|
return result;
|
|
54600
54827
|
}
|
|
54601
54828
|
|
|
@@ -54798,7 +55025,7 @@ export class MJResourceLinkResolver extends ResolverBase {
|
|
|
54798
55025
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
54799
55026
|
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
55027
|
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] :
|
|
55028
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Resource Links', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
54802
55029
|
return result;
|
|
54803
55030
|
}
|
|
54804
55031
|
|
|
@@ -55023,7 +55250,7 @@ export class MJResourcePermissionResolver extends ResolverBase {
|
|
|
55023
55250
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
55024
55251
|
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
55252
|
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] :
|
|
55253
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Resource Permissions', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
55027
55254
|
return result;
|
|
55028
55255
|
}
|
|
55029
55256
|
|
|
@@ -55237,7 +55464,7 @@ export class MJResourceTypeResolver extends ResolverBase {
|
|
|
55237
55464
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
55238
55465
|
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
55466
|
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] :
|
|
55467
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Resource Types', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
55241
55468
|
return result;
|
|
55242
55469
|
}
|
|
55243
55470
|
|
|
@@ -55465,7 +55692,7 @@ export class MJRoleResolver extends ResolverBase {
|
|
|
55465
55692
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
55466
55693
|
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
55694
|
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] :
|
|
55695
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Roles', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
55469
55696
|
return result;
|
|
55470
55697
|
}
|
|
55471
55698
|
|
|
@@ -55720,7 +55947,7 @@ export class MJRowLevelSecurityFilterResolver extends ResolverBase {
|
|
|
55720
55947
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
55721
55948
|
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
55949
|
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] :
|
|
55950
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Row Level Security Filters', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
55724
55951
|
return result;
|
|
55725
55952
|
}
|
|
55726
55953
|
|
|
@@ -55951,7 +56178,7 @@ export class MJScheduledActionParamResolver extends ResolverBase {
|
|
|
55951
56178
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
55952
56179
|
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
56180
|
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] :
|
|
56181
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Scheduled Action Params', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
55955
56182
|
return result;
|
|
55956
56183
|
}
|
|
55957
56184
|
|
|
@@ -56214,7 +56441,7 @@ export class MJScheduledActionResolver extends ResolverBase {
|
|
|
56214
56441
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
56215
56442
|
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
56443
|
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] :
|
|
56444
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Scheduled Actions', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
56218
56445
|
return result;
|
|
56219
56446
|
}
|
|
56220
56447
|
|
|
@@ -56444,7 +56671,7 @@ export class MJScheduledJobRunResolver extends ResolverBase {
|
|
|
56444
56671
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
56445
56672
|
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
56673
|
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] :
|
|
56674
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Scheduled Job Runs', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
56448
56675
|
return result;
|
|
56449
56676
|
}
|
|
56450
56677
|
|
|
@@ -56640,7 +56867,7 @@ export class MJScheduledJobTypeResolver extends ResolverBase {
|
|
|
56640
56867
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
56641
56868
|
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
56869
|
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] :
|
|
56870
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Scheduled Job Types', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
56644
56871
|
return result;
|
|
56645
56872
|
}
|
|
56646
56873
|
|
|
@@ -57025,7 +57252,7 @@ export class MJScheduledJobResolver extends ResolverBase {
|
|
|
57025
57252
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
57026
57253
|
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
57254
|
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] :
|
|
57255
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Scheduled Jobs', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
57029
57256
|
return result;
|
|
57030
57257
|
}
|
|
57031
57258
|
|
|
@@ -57226,7 +57453,7 @@ export class MJSchemaInfoResolver extends ResolverBase {
|
|
|
57226
57453
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
57227
57454
|
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
57455
|
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] :
|
|
57456
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Schema Info', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
57230
57457
|
return result;
|
|
57231
57458
|
}
|
|
57232
57459
|
|
|
@@ -57385,7 +57612,7 @@ export class MJSkillResolver extends ResolverBase {
|
|
|
57385
57612
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
57386
57613
|
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
57614
|
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] :
|
|
57615
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Skills', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
57389
57616
|
return result;
|
|
57390
57617
|
}
|
|
57391
57618
|
|
|
@@ -57625,7 +57852,7 @@ export class MJSQLDialectResolver extends ResolverBase {
|
|
|
57625
57852
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
57626
57853
|
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
57854
|
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] :
|
|
57855
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: SQL Dialects', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
57629
57856
|
return result;
|
|
57630
57857
|
}
|
|
57631
57858
|
|
|
@@ -57808,7 +58035,7 @@ export class MJTaggedItemResolver extends ResolverBase {
|
|
|
57808
58035
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
57809
58036
|
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
58037
|
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] :
|
|
58038
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Tagged Items', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
57812
58039
|
return result;
|
|
57813
58040
|
}
|
|
57814
58041
|
|
|
@@ -57986,7 +58213,7 @@ export class MJTagResolver extends ResolverBase {
|
|
|
57986
58213
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
57987
58214
|
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
58215
|
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] :
|
|
58216
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Tags', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
57990
58217
|
return result;
|
|
57991
58218
|
}
|
|
57992
58219
|
|
|
@@ -58169,7 +58396,7 @@ export class MJTaskDependencyResolver extends ResolverBase {
|
|
|
58169
58396
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
58170
58397
|
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
58398
|
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] :
|
|
58399
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Task Dependencies', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
58173
58400
|
return result;
|
|
58174
58401
|
}
|
|
58175
58402
|
|
|
@@ -58316,7 +58543,7 @@ export class MJTaskTypeResolver extends ResolverBase {
|
|
|
58316
58543
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
58317
58544
|
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
58545
|
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] :
|
|
58546
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Task Types', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
58320
58547
|
return result;
|
|
58321
58548
|
}
|
|
58322
58549
|
|
|
@@ -58626,7 +58853,7 @@ export class MJTaskResolver extends ResolverBase {
|
|
|
58626
58853
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
58627
58854
|
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
58855
|
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] :
|
|
58856
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Tasks', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
58630
58857
|
return result;
|
|
58631
58858
|
}
|
|
58632
58859
|
|
|
@@ -58838,7 +59065,7 @@ export class MJTemplateCategoryResolver extends ResolverBase {
|
|
|
58838
59065
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
58839
59066
|
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
59067
|
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] :
|
|
59068
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Template Categories', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
58842
59069
|
return result;
|
|
58843
59070
|
}
|
|
58844
59071
|
|
|
@@ -59015,7 +59242,7 @@ export class MJTemplateContentTypeResolver extends ResolverBase {
|
|
|
59015
59242
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
59016
59243
|
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
59244
|
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] :
|
|
59245
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Template Content Types', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
59019
59246
|
return result;
|
|
59020
59247
|
}
|
|
59021
59248
|
|
|
@@ -59208,7 +59435,7 @@ export class MJTemplateContentResolver extends ResolverBase {
|
|
|
59208
59435
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
59209
59436
|
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
59437
|
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] :
|
|
59438
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Template Contents', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
59212
59439
|
return result;
|
|
59213
59440
|
}
|
|
59214
59441
|
|
|
@@ -59480,7 +59707,7 @@ export class MJTemplateParamResolver extends ResolverBase {
|
|
|
59480
59707
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
59481
59708
|
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
59709
|
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] :
|
|
59710
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Template Params', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
59484
59711
|
return result;
|
|
59485
59712
|
}
|
|
59486
59713
|
|
|
@@ -59706,7 +59933,7 @@ export class MJTemplateResolver extends ResolverBase {
|
|
|
59706
59933
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
59707
59934
|
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
59935
|
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] :
|
|
59936
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Templates', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
59710
59937
|
return result;
|
|
59711
59938
|
}
|
|
59712
59939
|
|
|
@@ -59962,7 +60189,7 @@ export class MJTestRubricResolver extends ResolverBase {
|
|
|
59962
60189
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
59963
60190
|
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
60191
|
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] :
|
|
60192
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Test Rubrics', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
59966
60193
|
return result;
|
|
59967
60194
|
}
|
|
59968
60195
|
|
|
@@ -60160,7 +60387,7 @@ export class MJTestRunFeedbackResolver extends ResolverBase {
|
|
|
60160
60387
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
60161
60388
|
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
60389
|
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] :
|
|
60390
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Test Run Feedbacks', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
60164
60391
|
return result;
|
|
60165
60392
|
}
|
|
60166
60393
|
|
|
@@ -60307,7 +60534,7 @@ export class MJTestRunOutputTypeResolver extends ResolverBase {
|
|
|
60307
60534
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
60308
60535
|
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
60536
|
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] :
|
|
60537
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Test Run Output Types', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
60311
60538
|
return result;
|
|
60312
60539
|
}
|
|
60313
60540
|
|
|
@@ -60571,7 +60798,7 @@ export class MJTestRunOutputResolver extends ResolverBase {
|
|
|
60571
60798
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
60572
60799
|
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
60800
|
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] :
|
|
60801
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Test Run Outputs', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
60575
60802
|
return result;
|
|
60576
60803
|
}
|
|
60577
60804
|
|
|
@@ -61002,7 +61229,7 @@ export class MJTestRunResolver extends ResolverBase {
|
|
|
61002
61229
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
61003
61230
|
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
61231
|
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] :
|
|
61232
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Test Runs', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
61006
61233
|
return result;
|
|
61007
61234
|
}
|
|
61008
61235
|
|
|
@@ -61443,7 +61670,7 @@ export class MJTestSuiteRunResolver extends ResolverBase {
|
|
|
61443
61670
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
61444
61671
|
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
61672
|
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] :
|
|
61673
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Test Suite Runs', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
61447
61674
|
return result;
|
|
61448
61675
|
}
|
|
61449
61676
|
|
|
@@ -61634,7 +61861,7 @@ export class MJTestSuiteTestResolver extends ResolverBase {
|
|
|
61634
61861
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
61635
61862
|
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
61863
|
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] :
|
|
61864
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Test Suite Tests', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
61638
61865
|
return result;
|
|
61639
61866
|
}
|
|
61640
61867
|
|
|
@@ -61851,7 +62078,7 @@ export class MJTestSuiteResolver extends ResolverBase {
|
|
|
61851
62078
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
61852
62079
|
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
62080
|
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] :
|
|
62081
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Test Suites', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
61855
62082
|
return result;
|
|
61856
62083
|
}
|
|
61857
62084
|
|
|
@@ -62060,7 +62287,7 @@ export class MJTestTypeResolver extends ResolverBase {
|
|
|
62060
62287
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
62061
62288
|
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
62289
|
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] :
|
|
62290
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Test Types', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
62064
62291
|
return result;
|
|
62065
62292
|
}
|
|
62066
62293
|
|
|
@@ -62344,7 +62571,7 @@ export class MJTestResolver extends ResolverBase {
|
|
|
62344
62571
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
62345
62572
|
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
62573
|
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] :
|
|
62574
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Tests', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
62348
62575
|
return result;
|
|
62349
62576
|
}
|
|
62350
62577
|
|
|
@@ -62530,7 +62757,7 @@ export class MJUserApplicationEntityResolver extends ResolverBase {
|
|
|
62530
62757
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
62531
62758
|
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
62759
|
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] :
|
|
62760
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: User Application Entities', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
62534
62761
|
return result;
|
|
62535
62762
|
}
|
|
62536
62763
|
|
|
@@ -62704,7 +62931,7 @@ export class MJUserApplicationResolver extends ResolverBase {
|
|
|
62704
62931
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
62705
62932
|
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
62933
|
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] :
|
|
62934
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: User Applications', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
62708
62935
|
return result;
|
|
62709
62936
|
}
|
|
62710
62937
|
|
|
@@ -62881,7 +63108,7 @@ export class MJUserFavoriteResolverBase extends ResolverBase {
|
|
|
62881
63108
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
62882
63109
|
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
63110
|
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] :
|
|
63111
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: User Favorites', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
62885
63112
|
return result;
|
|
62886
63113
|
}
|
|
62887
63114
|
|
|
@@ -63070,7 +63297,7 @@ export class MJUserNotificationPreferenceResolver extends ResolverBase {
|
|
|
63070
63297
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
63071
63298
|
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
63299
|
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] :
|
|
63300
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: User Notification Preferences', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
63074
63301
|
return result;
|
|
63075
63302
|
}
|
|
63076
63303
|
|
|
@@ -63323,7 +63550,7 @@ export class MJUserNotificationTypeResolver extends ResolverBase {
|
|
|
63323
63550
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
63324
63551
|
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
63552
|
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] :
|
|
63553
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: User Notification Types', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
63327
63554
|
return result;
|
|
63328
63555
|
}
|
|
63329
63556
|
|
|
@@ -63566,7 +63793,7 @@ export class MJUserNotificationResolver extends ResolverBase {
|
|
|
63566
63793
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
63567
63794
|
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
63795
|
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] :
|
|
63796
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: User Notifications', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
63570
63797
|
return result;
|
|
63571
63798
|
}
|
|
63572
63799
|
|
|
@@ -63772,7 +63999,7 @@ export class MJUserRecordLogResolver extends ResolverBase {
|
|
|
63772
63999
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
63773
64000
|
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
64001
|
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] :
|
|
64002
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: User Record Logs', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
63776
64003
|
return result;
|
|
63777
64004
|
}
|
|
63778
64005
|
|
|
@@ -63925,7 +64152,7 @@ export class MJUserRoleResolver extends ResolverBase {
|
|
|
63925
64152
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
63926
64153
|
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
64154
|
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] :
|
|
64155
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: User Roles', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
63929
64156
|
return result;
|
|
63930
64157
|
}
|
|
63931
64158
|
|
|
@@ -64093,7 +64320,7 @@ export class MJUserSettingResolver extends ResolverBase {
|
|
|
64093
64320
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
64094
64321
|
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
64322
|
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] :
|
|
64323
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: User Settings', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
64097
64324
|
return result;
|
|
64098
64325
|
}
|
|
64099
64326
|
|
|
@@ -64289,7 +64516,7 @@ export class MJUserViewCategoryResolver extends ResolverBase {
|
|
|
64289
64516
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
64290
64517
|
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
64518
|
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] :
|
|
64519
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: User View Categories', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
64293
64520
|
return result;
|
|
64294
64521
|
}
|
|
64295
64522
|
|
|
@@ -64462,7 +64689,7 @@ export class MJUserViewRunDetailResolver extends ResolverBase {
|
|
|
64462
64689
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
64463
64690
|
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
64691
|
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] :
|
|
64692
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: User View Run Details', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
64466
64693
|
return result;
|
|
64467
64694
|
}
|
|
64468
64695
|
|
|
@@ -64627,7 +64854,7 @@ export class MJUserViewRunResolver extends ResolverBase {
|
|
|
64627
64854
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
64628
64855
|
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
64856
|
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] :
|
|
64857
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: User View Runs', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
64631
64858
|
return result;
|
|
64632
64859
|
}
|
|
64633
64860
|
|
|
@@ -64979,7 +65206,7 @@ export class MJUserViewResolverBase extends ResolverBase {
|
|
|
64979
65206
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
64980
65207
|
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
65208
|
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] :
|
|
65209
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: User Views', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
64983
65210
|
return result;
|
|
64984
65211
|
}
|
|
64985
65212
|
|
|
@@ -65545,7 +65772,7 @@ export class MJUserResolverBase extends ResolverBase {
|
|
|
65545
65772
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
65546
65773
|
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
65774
|
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] :
|
|
65775
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Users', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
65549
65776
|
return result;
|
|
65550
65777
|
}
|
|
65551
65778
|
|
|
@@ -66555,7 +66782,7 @@ export class MJVectorDatabaseResolver extends ResolverBase {
|
|
|
66555
66782
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
66556
66783
|
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
66784
|
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] :
|
|
66785
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Vector Databases', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
66559
66786
|
return result;
|
|
66560
66787
|
}
|
|
66561
66788
|
|
|
@@ -66750,7 +66977,7 @@ export class MJVectorIndexResolver extends ResolverBase {
|
|
|
66750
66977
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
66751
66978
|
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
66979
|
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] :
|
|
66980
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Vector Indexes', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
66754
66981
|
return result;
|
|
66755
66982
|
}
|
|
66756
66983
|
|
|
@@ -66963,7 +67190,7 @@ export class MJVersionInstallationResolver extends ResolverBase {
|
|
|
66963
67190
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
66964
67191
|
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
67192
|
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] :
|
|
67193
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Version Installations', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
66967
67194
|
return result;
|
|
66968
67195
|
}
|
|
66969
67196
|
|
|
@@ -67139,7 +67366,7 @@ export class MJVersionLabelItemResolver extends ResolverBase {
|
|
|
67139
67366
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
67140
67367
|
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
67368
|
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] :
|
|
67369
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Version Label Items', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
67143
67370
|
return result;
|
|
67144
67371
|
}
|
|
67145
67372
|
|
|
@@ -67370,7 +67597,7 @@ export class MJVersionLabelRestoreResolver extends ResolverBase {
|
|
|
67370
67597
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
67371
67598
|
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
67599
|
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] :
|
|
67600
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Version Label Restores', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
67374
67601
|
return result;
|
|
67375
67602
|
}
|
|
67376
67603
|
|
|
@@ -67630,7 +67857,7 @@ export class MJVersionLabelResolver extends ResolverBase {
|
|
|
67630
67857
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
67631
67858
|
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
67859
|
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] :
|
|
67860
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Version Labels', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
67634
67861
|
return result;
|
|
67635
67862
|
}
|
|
67636
67863
|
|
|
@@ -67837,7 +68064,7 @@ export class MJWorkflowEngineResolver extends ResolverBase {
|
|
|
67837
68064
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
67838
68065
|
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
68066
|
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] :
|
|
68067
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Workflow Engines', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
67841
68068
|
return result;
|
|
67842
68069
|
}
|
|
67843
68070
|
|
|
@@ -68037,7 +68264,7 @@ export class MJWorkflowRunResolver extends ResolverBase {
|
|
|
68037
68264
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
68038
68265
|
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
68266
|
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] :
|
|
68267
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Workflow Runs', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
68041
68268
|
return result;
|
|
68042
68269
|
}
|
|
68043
68270
|
|
|
@@ -68248,7 +68475,7 @@ export class MJWorkflowResolver extends ResolverBase {
|
|
|
68248
68475
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
68249
68476
|
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
68477
|
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] :
|
|
68478
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Workflows', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
68252
68479
|
return result;
|
|
68253
68480
|
}
|
|
68254
68481
|
|
|
@@ -68468,7 +68695,7 @@ export class MJWorkspaceItemResolver extends ResolverBase {
|
|
|
68468
68695
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
68469
68696
|
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
68697
|
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] :
|
|
68698
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Workspace Items', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
68472
68699
|
return result;
|
|
68473
68700
|
}
|
|
68474
68701
|
|
|
@@ -68638,7 +68865,7 @@ export class MJWorkspaceResolver extends ResolverBase {
|
|
|
68638
68865
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
68639
68866
|
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
68867
|
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] :
|
|
68868
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Workspaces', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
68642
68869
|
return result;
|
|
68643
68870
|
}
|
|
68644
68871
|
|