@memberjunction/server 6.2.0-edge.6 → 6.2.0-edge.7
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/README.md +69 -0
- package/dist/.tsbuildinfo +1 -1
- package/dist/agentSessions/BridgeHostInstance.d.ts +8 -3
- package/dist/agentSessions/BridgeHostInstance.d.ts.map +1 -1
- package/dist/agentSessions/BridgeHostInstance.js +14 -4
- package/dist/agentSessions/BridgeHostInstance.js.map +1 -1
- package/dist/agentSessions/HandoffOfferExpiry.d.ts +10 -0
- package/dist/agentSessions/HandoffOfferExpiry.d.ts.map +1 -0
- package/dist/agentSessions/HandoffOfferExpiry.js +18 -0
- package/dist/agentSessions/HandoffOfferExpiry.js.map +1 -0
- package/dist/agentSessions/ReturningVisitorRecap.js +1 -0
- package/dist/agentSessions/ReturningVisitorRecap.js.map +1 -1
- package/dist/agentSessions/SessionJanitor.d.ts +31 -8
- package/dist/agentSessions/SessionJanitor.d.ts.map +1 -1
- package/dist/agentSessions/SessionJanitor.js +85 -41
- package/dist/agentSessions/SessionJanitor.js.map +1 -1
- package/dist/agentSessions/SessionManager.d.ts +14 -4
- package/dist/agentSessions/SessionManager.d.ts.map +1 -1
- package/dist/agentSessions/SessionManager.js +28 -4
- package/dist/agentSessions/SessionManager.js.map +1 -1
- package/dist/agentSessions/conversationBrowsers.d.ts +61 -0
- package/dist/agentSessions/conversationBrowsers.d.ts.map +1 -0
- package/dist/agentSessions/conversationBrowsers.js +118 -0
- package/dist/agentSessions/conversationBrowsers.js.map +1 -0
- package/dist/agentSessions/sessionDeadline.d.ts +43 -0
- package/dist/agentSessions/sessionDeadline.d.ts.map +1 -0
- package/dist/agentSessions/sessionDeadline.js +68 -0
- package/dist/agentSessions/sessionDeadline.js.map +1 -0
- package/dist/auth/APIKeyScopeAuth.d.ts.map +1 -1
- package/dist/auth/APIKeyScopeAuth.js +5 -4
- package/dist/auth/APIKeyScopeAuth.js.map +1 -1
- package/dist/auth/loginEmailResolution.d.ts +41 -0
- package/dist/auth/loginEmailResolution.d.ts.map +1 -0
- package/dist/auth/loginEmailResolution.js +47 -0
- package/dist/auth/loginEmailResolution.js.map +1 -0
- package/dist/auth/magicLink/MagicLinkKeys.d.ts +50 -2
- package/dist/auth/magicLink/MagicLinkKeys.d.ts.map +1 -1
- package/dist/auth/magicLink/MagicLinkKeys.js +129 -12
- package/dist/auth/magicLink/MagicLinkKeys.js.map +1 -1
- package/dist/auth/magicLink/MagicLinkRouter.d.ts +3 -0
- package/dist/auth/magicLink/MagicLinkRouter.d.ts.map +1 -1
- package/dist/auth/magicLink/MagicLinkRouter.js +23 -5
- package/dist/auth/magicLink/MagicLinkRouter.js.map +1 -1
- package/dist/auth/magicLink/MagicLinkService.d.ts +39 -5
- package/dist/auth/magicLink/MagicLinkService.d.ts.map +1 -1
- package/dist/auth/magicLink/MagicLinkService.js +221 -9
- package/dist/auth/magicLink/MagicLinkService.js.map +1 -1
- package/dist/auth/magicLink/index.d.ts +1 -1
- package/dist/auth/magicLink/index.d.ts.map +1 -1
- package/dist/auth/magicLink/index.js +1 -1
- package/dist/auth/magicLink/index.js.map +1 -1
- package/dist/auth/magicLink/redeemLanding.d.ts +2 -2
- package/dist/auth/magicLink/redeemLanding.d.ts.map +1 -1
- package/dist/auth/magicLink/redeemLanding.js +7 -4
- package/dist/auth/magicLink/redeemLanding.js.map +1 -1
- package/dist/auth/magicLink/types.d.ts +27 -3
- package/dist/auth/magicLink/types.d.ts.map +1 -1
- package/dist/auth/magicLink/types.js +0 -4
- package/dist/auth/magicLink/types.js.map +1 -1
- package/dist/auth/newUsers.d.ts.map +1 -1
- package/dist/auth/newUsers.js +1 -0
- package/dist/auth/newUsers.js.map +1 -1
- package/dist/backgroundSweepConfigUnits.d.ts +231 -0
- package/dist/backgroundSweepConfigUnits.d.ts.map +1 -0
- package/dist/backgroundSweepConfigUnits.js +180 -0
- package/dist/backgroundSweepConfigUnits.js.map +1 -0
- package/dist/config.d.ts +906 -8
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +59 -0
- package/dist/config.js.map +1 -1
- package/dist/context.d.ts +2 -0
- package/dist/context.d.ts.map +1 -1
- package/dist/context.js +35 -4
- package/dist/context.js.map +1 -1
- package/dist/coreRoutes.d.ts +3 -1
- package/dist/coreRoutes.d.ts.map +1 -1
- package/dist/coreRoutes.js +6 -4
- package/dist/coreRoutes.js.map +1 -1
- package/dist/generated/graphql-schemas/__mj.d.ts +228 -0
- package/dist/generated/graphql-schemas/__mj.d.ts.map +1 -1
- package/dist/generated/graphql-schemas/__mj.js +1163 -6
- package/dist/generated/graphql-schemas/__mj.js.map +1 -1
- package/dist/generic/OrphanedConversationDetailReconciler.d.ts +11 -0
- package/dist/generic/OrphanedConversationDetailReconciler.d.ts.map +1 -1
- package/dist/generic/OrphanedConversationDetailReconciler.js +27 -1
- package/dist/generic/OrphanedConversationDetailReconciler.js.map +1 -1
- package/dist/generic/ResolverBase.d.ts +50 -5
- package/dist/generic/ResolverBase.d.ts.map +1 -1
- package/dist/generic/ResolverBase.js +321 -132
- package/dist/generic/ResolverBase.js.map +1 -1
- package/dist/generic/RunViewResolver.d.ts +4 -0
- package/dist/generic/RunViewResolver.d.ts.map +1 -1
- package/dist/generic/RunViewResolver.js +47 -7
- package/dist/generic/RunViewResolver.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +157 -35
- package/dist/index.js.map +1 -1
- package/dist/integration/ConnectionPause.d.ts +121 -0
- package/dist/integration/ConnectionPause.d.ts.map +1 -0
- package/dist/integration/ConnectionPause.js +183 -0
- package/dist/integration/ConnectionPause.js.map +1 -0
- package/dist/integration/CustomColumnPromoter.d.ts +72 -6
- package/dist/integration/CustomColumnPromoter.d.ts.map +1 -1
- package/dist/integration/CustomColumnPromoter.js +87 -46
- package/dist/integration/CustomColumnPromoter.js.map +1 -1
- package/dist/integration/EntityMapLifecycle.d.ts +78 -4
- package/dist/integration/EntityMapLifecycle.d.ts.map +1 -1
- package/dist/integration/EntityMapLifecycle.js +199 -5
- package/dist/integration/EntityMapLifecycle.js.map +1 -1
- package/dist/integration/InactiveRowWarnings.d.ts +31 -0
- package/dist/integration/InactiveRowWarnings.d.ts.map +1 -1
- package/dist/integration/InactiveRowWarnings.js +29 -0
- package/dist/integration/InactiveRowWarnings.js.map +1 -1
- package/dist/integration/ObjectNamesByID.d.ts +28 -0
- package/dist/integration/ObjectNamesByID.d.ts.map +1 -0
- package/dist/integration/ObjectNamesByID.js +87 -0
- package/dist/integration/ObjectNamesByID.js.map +1 -0
- package/dist/integration/PostRestartIntrospect.d.ts +26 -0
- package/dist/integration/PostRestartIntrospect.d.ts.map +1 -0
- package/dist/integration/PostRestartIntrospect.js +27 -0
- package/dist/integration/PostRestartIntrospect.js.map +1 -0
- package/dist/integration/RSUPostRestartProgress.d.ts +176 -0
- package/dist/integration/RSUPostRestartProgress.d.ts.map +1 -0
- package/dist/integration/RSUPostRestartProgress.js +323 -0
- package/dist/integration/RSUPostRestartProgress.js.map +1 -0
- package/dist/integration/RSUProgressBridge.d.ts +41 -2
- package/dist/integration/RSUProgressBridge.d.ts.map +1 -1
- package/dist/integration/RSUProgressBridge.js +84 -1
- package/dist/integration/RSUProgressBridge.js.map +1 -1
- package/dist/integration/RunArtifactAuthorization.d.ts +39 -0
- package/dist/integration/RunArtifactAuthorization.d.ts.map +1 -0
- package/dist/integration/RunArtifactAuthorization.js +45 -0
- package/dist/integration/RunArtifactAuthorization.js.map +1 -0
- package/dist/integration/SchemaRefreshLaunch.d.ts +9 -0
- package/dist/integration/SchemaRefreshLaunch.d.ts.map +1 -1
- package/dist/integration/SchemaRefreshLaunch.js +3 -2
- package/dist/integration/SchemaRefreshLaunch.js.map +1 -1
- package/dist/integration/ScopedFieldsForBuild.d.ts +46 -0
- package/dist/integration/ScopedFieldsForBuild.d.ts.map +1 -0
- package/dist/integration/ScopedFieldsForBuild.js +91 -0
- package/dist/integration/ScopedFieldsForBuild.js.map +1 -0
- package/dist/integration/TargetConfigGuard.d.ts +40 -0
- package/dist/integration/TargetConfigGuard.d.ts.map +1 -0
- package/dist/integration/TargetConfigGuard.js +40 -0
- package/dist/integration/TargetConfigGuard.js.map +1 -0
- package/dist/realtimeSessions/ownedRealtimeSession.d.ts.map +1 -1
- package/dist/realtimeSessions/ownedRealtimeSession.js +2 -3
- package/dist/realtimeSessions/ownedRealtimeSession.js.map +1 -1
- package/dist/realtimeSessions/sessionAccess.d.ts +15 -0
- package/dist/realtimeSessions/sessionAccess.d.ts.map +1 -1
- package/dist/realtimeSessions/sessionAccess.js +22 -0
- package/dist/realtimeSessions/sessionAccess.js.map +1 -1
- package/dist/realtimeWidget/WidgetSessionService.d.ts.map +1 -1
- package/dist/realtimeWidget/WidgetSessionService.js +2 -0
- package/dist/realtimeWidget/WidgetSessionService.js.map +1 -1
- package/dist/realtimeWidget/visitorIdentity.d.ts.map +1 -1
- package/dist/realtimeWidget/visitorIdentity.js +1 -0
- package/dist/realtimeWidget/visitorIdentity.js.map +1 -1
- package/dist/realtimeWidget/widgetCore.d.ts.map +1 -1
- package/dist/realtimeWidget/widgetCore.js +4 -7
- package/dist/realtimeWidget/widgetCore.js.map +1 -1
- package/dist/realtimeWidget/widgetGuestElevation.js +1 -0
- package/dist/realtimeWidget/widgetGuestElevation.js.map +1 -1
- package/dist/requestOrigin.d.ts +22 -0
- package/dist/requestOrigin.d.ts.map +1 -0
- package/dist/requestOrigin.js +60 -0
- package/dist/requestOrigin.js.map +1 -0
- package/dist/resolvers/AgentSessionResolver.d.ts.map +1 -1
- package/dist/resolvers/AgentSessionResolver.js +6 -2
- package/dist/resolvers/AgentSessionResolver.js.map +1 -1
- package/dist/resolvers/AutotagPipelineResolver.d.ts.map +1 -1
- package/dist/resolvers/AutotagPipelineResolver.js +2 -1
- package/dist/resolvers/AutotagPipelineResolver.js.map +1 -1
- package/dist/resolvers/ConversationRunEventsResolver.d.ts.map +1 -1
- package/dist/resolvers/ConversationRunEventsResolver.js +2 -0
- package/dist/resolvers/ConversationRunEventsResolver.js.map +1 -1
- package/dist/resolvers/ExecuteRemoteOperationResolver.d.ts +6 -0
- package/dist/resolvers/ExecuteRemoteOperationResolver.d.ts.map +1 -1
- package/dist/resolvers/ExecuteRemoteOperationResolver.js +30 -7
- package/dist/resolvers/ExecuteRemoteOperationResolver.js.map +1 -1
- package/dist/resolvers/GetDataResolver.d.ts.map +1 -1
- package/dist/resolvers/GetDataResolver.js +34 -13
- package/dist/resolvers/GetDataResolver.js.map +1 -1
- package/dist/resolvers/IntegrationDiscoveryResolver.d.ts +401 -11
- package/dist/resolvers/IntegrationDiscoveryResolver.d.ts.map +1 -1
- package/dist/resolvers/IntegrationDiscoveryResolver.js +2690 -1305
- package/dist/resolvers/IntegrationDiscoveryResolver.js.map +1 -1
- package/dist/resolvers/MCPResolver.d.ts.map +1 -1
- package/dist/resolvers/MCPResolver.js +13 -2
- package/dist/resolvers/MCPResolver.js.map +1 -1
- package/dist/resolvers/QuerySystemUserResolver.d.ts +36 -0
- package/dist/resolvers/QuerySystemUserResolver.d.ts.map +1 -1
- package/dist/resolvers/QuerySystemUserResolver.js +174 -87
- package/dist/resolvers/QuerySystemUserResolver.js.map +1 -1
- package/dist/resolvers/RealtimeBridgeResolver.d.ts.map +1 -1
- package/dist/resolvers/RealtimeBridgeResolver.js +1 -0
- package/dist/resolvers/RealtimeBridgeResolver.js.map +1 -1
- package/dist/resolvers/RealtimeClientSessionResolver.d.ts +6 -0
- package/dist/resolvers/RealtimeClientSessionResolver.d.ts.map +1 -1
- package/dist/resolvers/RealtimeClientSessionResolver.js +36 -5
- package/dist/resolvers/RealtimeClientSessionResolver.js.map +1 -1
- package/dist/resolvers/RemoteBrowserActionResolver.d.ts +62 -10
- package/dist/resolvers/RemoteBrowserActionResolver.d.ts.map +1 -1
- package/dist/resolvers/RemoteBrowserActionResolver.js +217 -34
- package/dist/resolvers/RemoteBrowserActionResolver.js.map +1 -1
- package/dist/resolvers/RunAIAgentResolver.d.ts +24 -8
- package/dist/resolvers/RunAIAgentResolver.d.ts.map +1 -1
- package/dist/resolvers/RunAIAgentResolver.js +185 -67
- package/dist/resolvers/RunAIAgentResolver.js.map +1 -1
- package/dist/resolvers/RunAIPromptResolver.d.ts +5 -3
- package/dist/resolvers/RunAIPromptResolver.d.ts.map +1 -1
- package/dist/resolvers/RunAIPromptResolver.js +19 -18
- package/dist/resolvers/RunAIPromptResolver.js.map +1 -1
- package/dist/resolvers/RunTemplateResolver.d.ts.map +1 -1
- package/dist/resolvers/RunTemplateResolver.js +3 -1
- package/dist/resolvers/RunTemplateResolver.js.map +1 -1
- package/dist/resolvers/meetingRecordingRegistration.d.ts.map +1 -1
- package/dist/resolvers/meetingRecordingRegistration.js +2 -0
- package/dist/resolvers/meetingRecordingRegistration.js.map +1 -1
- package/dist/rest/MediaAccessKeys.d.ts.map +1 -1
- package/dist/rest/MediaAccessKeys.js +6 -2
- package/dist/rest/MediaAccessKeys.js.map +1 -1
- package/dist/rest/OAuthCallbackHandler.d.ts.map +1 -1
- package/dist/rest/OAuthCallbackHandler.js +11 -5
- package/dist/rest/OAuthCallbackHandler.js.map +1 -1
- package/dist/rest/RealtimeRecordingHandler.d.ts +3 -3
- package/dist/rest/RealtimeRecordingHandler.d.ts.map +1 -1
- package/dist/rest/RealtimeRecordingHandler.js +2 -4
- package/dist/rest/RealtimeRecordingHandler.js.map +1 -1
- package/dist/rest/ViewOperationsHandler.d.ts.map +1 -1
- package/dist/rest/ViewOperationsHandler.js +2 -1
- package/dist/rest/ViewOperationsHandler.js.map +1 -1
- package/dist/rest/setupRESTEndpoints.d.ts +3 -1
- package/dist/rest/setupRESTEndpoints.d.ts.map +1 -1
- package/dist/rest/setupRESTEndpoints.js +11 -2
- package/dist/rest/setupRESTEndpoints.js.map +1 -1
- package/dist/services/DurableEntityActionTaskSubmitter.d.ts.map +1 -1
- package/dist/services/DurableEntityActionTaskSubmitter.js +6 -1
- package/dist/services/DurableEntityActionTaskSubmitter.js.map +1 -1
- package/dist/services/TaskGraphActionRunner.d.ts.map +1 -1
- package/dist/services/TaskGraphActionRunner.js +2 -26
- package/dist/services/TaskGraphActionRunner.js.map +1 -1
- package/dist/services/TaskGraphAgentRunner.d.ts +6 -0
- package/dist/services/TaskGraphAgentRunner.d.ts.map +1 -1
- package/dist/services/TaskGraphAgentRunner.js +38 -0
- package/dist/services/TaskGraphAgentRunner.js.map +1 -1
- package/dist/services/TaskGraphContinuationDeliverer.d.ts.map +1 -1
- package/dist/services/TaskGraphContinuationDeliverer.js +1 -0
- package/dist/services/TaskGraphContinuationDeliverer.js.map +1 -1
- package/dist/services/WorkQueueHostService.d.ts +2 -1
- package/dist/services/WorkQueueHostService.d.ts.map +1 -1
- package/dist/services/WorkQueueHostService.js +19 -4
- package/dist/services/WorkQueueHostService.js.map +1 -1
- package/dist/services/workQueueConfig.d.ts +2 -2
- package/dist/services/workQueueConfig.js +5 -5
- package/dist/services/workQueueConfig.js.map +1 -1
- package/dist/sharedCache.js +1 -1
- package/dist/sharedCache.js.map +1 -1
- package/dist/types.d.ts +17 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js.map +1 -1
- package/package.json +98 -98
- package/src/__tests__/APIKeyScopeAuth.test.ts +4 -8
- package/src/__tests__/ActiveOperations.test.ts +68 -0
- package/src/__tests__/AgentSessionResolver.ownership.test.ts +13 -0
- package/src/__tests__/AssertTargetConfigs.test.ts +75 -0
- package/src/__tests__/BatchApplyParity.test.ts +109 -0
- package/src/__tests__/BridgeHostInstance.test.ts +42 -0
- package/src/__tests__/CollectInactiveRowWarnings.test.ts +115 -0
- package/src/__tests__/ConnectionPause.test.ts +192 -0
- package/src/__tests__/ConnectionPauseResolver.test.ts +166 -0
- package/src/__tests__/ConnectionPauseSave.test.ts +143 -0
- package/src/__tests__/CustomColumnPromoterCompletion.test.ts +142 -0
- package/src/__tests__/DeleteConnectionRemovesPerConnectionCatalog.test.ts +51 -0
- package/src/__tests__/DetachedDiscoveryStart.test.ts +65 -0
- package/src/__tests__/DurableEntityActionTaskSubmitter.test.ts +73 -0
- package/src/__tests__/EntityMapLifecycle.rekey.test.ts +252 -0
- package/src/__tests__/ExecuteRemoteOperationResolver.test.ts +213 -0
- package/src/__tests__/HandoffOfferExpiry.test.ts +40 -0
- package/src/__tests__/IntegrationRunArtifactAuthorization.test.ts +126 -0
- package/src/__tests__/MagicLinkKeys.test.ts +102 -0
- package/src/__tests__/MediaAccessKeys.test.ts +57 -10
- package/src/__tests__/NewArrivalsDefaultDisabled.test.ts +50 -0
- package/src/__tests__/ObjectNamesByID.test.ts +176 -0
- package/src/__tests__/PostRestartMapsInCatalogScope.test.ts +146 -0
- package/src/__tests__/QuerySystemUserResolver.childRows.test.ts +80 -0
- package/src/__tests__/QuerySystemUserResolver.collision.test.ts +200 -0
- package/src/__tests__/QuerySystemUserResolver.permissions.test.ts +132 -0
- package/src/__tests__/RSUPostRestartProgress.test.ts +343 -0
- package/src/__tests__/RSUProgressBridge.test.ts +188 -5
- package/src/__tests__/RSUStartupSweepWiring.test.ts +30 -0
- package/src/__tests__/ReactivateRefreshMessage.test.ts +10 -3
- package/src/__tests__/RealtimeClientSessionResolver.test.ts +22 -0
- package/src/__tests__/{RefreshAdoptsNewColumns.test.ts → RefreshReportsNewColumns.test.ts} +25 -16
- package/src/__tests__/RemoteBrowserActionRecovery.test.ts +287 -0
- package/src/__tests__/RemoteBrowserActionResolver.goalRunLink.test.ts +3 -0
- package/src/__tests__/RemoteBrowserActionResolver.ownership.test.ts +6 -4
- package/src/__tests__/RemoteBrowserAudioStream.test.ts +3 -0
- package/src/__tests__/RemoteBrowserSnapshot.test.ts +3 -0
- package/src/__tests__/ResolverBase.clientOldValues.test.ts +323 -26
- package/src/__tests__/ResolverBase.encryptedApiZeroReencrypt.test.ts +307 -0
- package/src/__tests__/ResolverBase.entityMessageRelay.test.ts +53 -2
- package/src/__tests__/ResolverBase.includeBinaryFields.test.ts +60 -0
- package/src/__tests__/RunAIAgentResolver.branch.test.ts +4 -0
- package/src/__tests__/RunAIAgentResolver.consultPredecessor.test.ts +289 -0
- package/src/__tests__/RunAIAgentResolver.handoff.test.ts +649 -0
- package/src/__tests__/RunAIAgentResolver.historyFrom.test.ts +2 -0
- package/src/__tests__/RunAIAgentResolver.runDataGuard.test.ts +2 -0
- package/src/__tests__/RunAIAgentResolver.stoppedPredecessor.test.ts +87 -12
- package/src/__tests__/SchemaEvolutionCustomColumns.test.ts +119 -0
- package/src/__tests__/SchemaRefreshLaunch.test.ts +24 -2
- package/src/__tests__/ScopedFieldsForBuild.test.ts +192 -0
- package/src/__tests__/SessionJanitor.test.ts +195 -4
- package/src/__tests__/SessionManager.test.ts +69 -0
- package/src/__tests__/TaskGraphActionRunner.durablePayload.test.ts +2 -2
- package/src/__tests__/TaskGraphAgentRunner.test.ts +272 -16
- package/src/__tests__/ViewOperationsHandler.test.ts +2 -5
- package/src/__tests__/WorkQueueHostService.test.ts +25 -7
- package/src/__tests__/backgroundSweepConfigUnits.test.ts +153 -0
- package/src/__tests__/contextRequestOrigin.test.ts +105 -0
- package/src/__tests__/conversationBrowsers.test.ts +62 -0
- package/src/__tests__/magicLinkExtensionCapabilities.test.ts +413 -0
- package/src/__tests__/orphanedConversationDetailReconciler.start.test.ts +82 -0
- package/src/__tests__/ownedRealtimeSession.test.ts +14 -0
- package/src/__tests__/realtimeRecordingHandler.test.ts +7 -2
- package/src/__tests__/realtimeSessions/sessionAccess.test.ts +79 -1
- package/src/__tests__/requestOrigin.test.ts +104 -0
- package/src/__tests__/securityHardeningPr6034.test.ts +120 -0
- package/src/__tests__/sessionDeadline.test.ts +51 -0
- package/src/__tests__/sharedCache.test.ts +11 -0
- package/src/__tests__/unifiedAuth.test.ts +73 -1
- package/src/agentSessions/BridgeHostInstance.ts +20 -5
- package/src/agentSessions/HandoffOfferExpiry.ts +18 -0
- package/src/agentSessions/ReturningVisitorRecap.ts +1 -0
- package/src/agentSessions/SessionJanitor.ts +92 -42
- package/src/agentSessions/SessionManager.ts +38 -8
- package/src/agentSessions/conversationBrowsers.ts +143 -0
- package/src/agentSessions/sessionDeadline.ts +81 -0
- package/src/auth/APIKeyScopeAuth.ts +5 -4
- package/src/auth/__tests__/loginEmailResolution.test.ts +67 -0
- package/src/auth/loginEmailResolution.ts +67 -0
- package/src/auth/magicLink/MagicLinkKeys.ts +146 -14
- package/src/auth/magicLink/MagicLinkRouter.ts +33 -6
- package/src/auth/magicLink/MagicLinkService.ts +250 -10
- package/src/auth/magicLink/index.ts +1 -1
- package/src/auth/magicLink/redeemLanding.ts +7 -4
- package/src/auth/magicLink/types.ts +28 -3
- package/src/auth/newUsers.ts +1 -0
- package/src/backgroundSweepConfigUnits.ts +213 -0
- package/src/config.ts +69 -0
- package/src/context.ts +39 -6
- package/src/coreRoutes.ts +14 -7
- package/src/generated/graphql-schemas/__mj.ts +822 -7
- package/src/generic/OrphanedConversationDetailReconciler.ts +32 -1
- package/src/generic/ResolverBase.ts +414 -143
- package/src/generic/RunViewResolver.ts +96 -49
- package/src/index.ts +201 -35
- package/src/integration/ConnectionPause.ts +222 -0
- package/src/integration/CustomColumnPromoter.ts +123 -53
- package/src/integration/EntityMapLifecycle.ts +229 -6
- package/src/integration/InactiveRowWarnings.ts +50 -0
- package/src/integration/ObjectNamesByID.ts +97 -0
- package/src/integration/PostRestartIntrospect.ts +49 -0
- package/src/integration/RSUPostRestartProgress.ts +359 -0
- package/src/integration/RSUProgressBridge.ts +85 -2
- package/src/integration/RunArtifactAuthorization.ts +65 -0
- package/src/integration/SchemaRefreshLaunch.ts +12 -2
- package/src/integration/ScopedFieldsForBuild.ts +113 -0
- package/src/integration/TargetConfigGuard.ts +71 -0
- package/src/realtimeSessions/ownedRealtimeSession.ts +2 -6
- package/src/realtimeSessions/sessionAccess.ts +30 -0
- package/src/realtimeWidget/WidgetSessionService.ts +2 -0
- package/src/realtimeWidget/visitorIdentity.ts +1 -0
- package/src/realtimeWidget/widgetCore.ts +4 -8
- package/src/realtimeWidget/widgetGuestElevation.ts +1 -0
- package/src/requestOrigin.ts +64 -0
- package/src/resolvers/AgentSessionResolver.ts +6 -2
- package/src/resolvers/AutotagPipelineResolver.ts +2 -1
- package/src/resolvers/ConversationRunEventsResolver.ts +2 -0
- package/src/resolvers/ExecuteRemoteOperationResolver.ts +41 -9
- package/src/resolvers/GetDataResolver.ts +35 -13
- package/src/resolvers/IntegrationDiscoveryResolver.ts +1522 -203
- package/src/resolvers/MCPResolver.ts +15 -2
- package/src/resolvers/QuerySystemUserResolver.ts +197 -98
- package/src/resolvers/RealtimeBridgeResolver.ts +1 -0
- package/src/resolvers/RealtimeClientSessionResolver.ts +40 -7
- package/src/resolvers/RemoteBrowserActionResolver.ts +242 -32
- package/src/resolvers/RunAIAgentResolver.ts +265 -86
- package/src/resolvers/RunAIPromptResolver.ts +18 -18
- package/src/resolvers/RunTemplateResolver.ts +3 -1
- package/src/resolvers/__tests__/GetDataResolver.tokens.test.ts +52 -0
- package/src/resolvers/meetingRecordingRegistration.ts +2 -0
- package/src/rest/MediaAccessKeys.ts +6 -2
- package/src/rest/OAuthCallbackHandler.ts +13 -5
- package/src/rest/RealtimeRecordingHandler.ts +5 -9
- package/src/rest/ViewOperationsHandler.ts +2 -1
- package/src/rest/setupRESTEndpoints.ts +11 -2
- package/src/services/DurableEntityActionTaskSubmitter.ts +10 -2
- package/src/services/TaskGraphActionRunner.ts +2 -23
- package/src/services/TaskGraphAgentRunner.ts +43 -0
- package/src/services/TaskGraphContinuationDeliverer.ts +1 -0
- package/src/services/WorkQueueHostService.ts +26 -4
- package/src/services/workQueueConfig.ts +5 -5
- package/src/sharedCache.ts +1 -1
- package/src/types.ts +18 -0
- package/src/services/TaskOrchestration-Integration.md +0 -188
|
@@ -18,7 +18,7 @@ import { mj_core_schema } from '../../config.js';
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
import { MJAIActionEntity, MJAIAgentActionEntity, MJAIAgentArtifactTypeEntity, MJAIAgentCategoryEntity, MJAIAgentChannelEntity, MJAIAgentClientToolEntity, MJAIAgentCoAgentEntity, MJAIAgentConfigurationEntity, MJAIAgentCredentialEntity, MJAIAgentDataSourceEntity, MJAIAgentExampleEntity, MJAIAgentHarnessEntity, MJAIAgentLearningCycleEntity, MJAIAgentModalityEntity, MJAIAgentModelEntity, MJAIAgentNoteTypeEntity, MJAIAgentNoteEntity, MJAIAgentPermissionEntity, MJAIAgentPersonaEntity, MJAIAgentPromptEntity, MJAIAgentRelationshipEntity, MJAIAgentRequestTypeEntity, MJAIAgentRequestEntity, MJAIAgentRubricEntity, MJAIAgentRunMediaEntity, MJAIAgentRunStepEntity, MJAIAgentRunEntity, MJAIAgentSearchScopeEntity, MJAIAgentSessionBridgeParticipantEntity, MJAIAgentSessionBridgeEntity, MJAIAgentSessionChannelEntity, MJAIAgentSessionRecordingShardEntity, MJAIAgentSessionEntity, MJAIAgentSkillEntity, MJAIAgentStepPathEntity, MJAIAgentStepEntity, MJAIAgentTypeEntity, MJAIAgentUserPolicyEntity, MJAIAgentEntity, MJAIArchitectureEntity, MJAIBridgeAgentIdentityEntity, MJAIBridgeProviderChannelEntity, MJAIBridgeProviderEntity, MJAIClientToolDefinitionEntity, MJAIConfigurationParamEntity, MJAIConfigurationEntity, MJAICredentialBindingEntity, MJAIModalityEntity, MJAIModelActionEntity, MJAIModelArchitectureEntity, MJAIModelCostEntity, MJAIModelModalityEntity, MJAIModelPersonaEntity, MJAIModelPriceTypeEntity, MJAIModelPriceUnitTypeEntity, MJAIModelTypeEntity, MJAIModelVendorEntity, MJAIModelEntity, MJAIPersonaVendorEntity, MJAIPersonaEntity, MJAIPromptCategoryEntity, MJAIPromptModelEntity, MJAIPromptRunMediaEntity, MJAIPromptRunEntity, MJAIPromptTypeEntity, MJAIPromptEntity, MJAIRemoteBrowserProviderEntity, MJAIResultCacheEntity, MJAISkillActionEntity, MJAISkillPermissionEntity, MJAISkillSearchScopeEntity, MJAISkillSubAgentEntity, MJAISkillEntity, MJAIUsageTypeEntity, MJAIVendorTypeDefinitionEntity, MJAIVendorTypeEntity, MJAIVendorEntity, MJAPIApplicationScopeEntity, MJAPIApplicationEntity, MJAPIKeyApplicationEntity, MJAPIKeyScopeEntity, MJAPIKeyUsageLogEntity, MJAPIKeyEntity, MJAPIScopeEntity, MJAccessControlRuleEntity, MJActionAuthorizationEntity, MJActionCategoryEntity, MJActionContextTypeEntity, MJActionContextEntity, MJActionExecutionLogEntity, MJActionFilterEntity, MJActionLibraryEntity, MJActionParamEntity, MJActionResultCodeEntity, MJActionEntity, MJApplicationEntityEntity, MJApplicationRoleEntity, MJApplicationSettingEntity, MJApplicationEntity, MJArchiveConfigurationEntityEntity, MJArchiveConfigurationEntity, MJArchiveRunDetailEntity, MJArchiveRunEntity, MJArtifactPermissionEntity, MJArtifactTypeEntity, MJArtifactUseEntity, MJArtifactVersionAttributeEntity, MJArtifactVersionEntity, MJArtifactEntity, MJAuditLogTypeEntity, MJAuditLogEntity, MJAuthenticationProviderEntity, MJAuthorizationRoleEntity, MJAuthorizationEntity, MJCalendarEventLinkEntity, MJCalendarSyncStateEntity, MJClusterAnalysisEntity, MJClusterAnalysisClusterEntity, MJCollectionArtifactEntity, MJCollectionPermissionEntity, MJCollectionEntity, MJCommunicationBaseMessageTypeEntity, MJCommunicationLogEntity, MJCommunicationProviderMessageTypeEntity, MJCommunicationProviderEntity, MJCommunicationRunEntity, MJCompanyEntity, MJCompanyIntegrationEntityMapEntity, MJCompanyIntegrationFieldMapEntity, MJCompanyIntegrationObjectFieldEntity, MJCompanyIntegrationObjectEntity, MJCompanyIntegrationRecordMapEntity, MJCompanyIntegrationRunAPILogEntity, MJCompanyIntegrationRunDetailEntity, MJCompanyIntegrationRunEntity, MJCompanyIntegrationSyncWatermarkEntity, MJCompanyIntegrationEntity, MJComponentDependencyEntity, MJComponentLibraryEntity, MJComponentLibraryLinkEntity, MJComponentRegistryEntity, MJComponentEntity, MJContentFileTypeEntity, MJContentItemAttributeEntity, MJContentItemChunkEntity, MJContentItemDuplicateEntity, MJContentItemTagEntity, MJContentItemEntity, MJContentProcessRunDetailEntity, MJContentProcessRunPromptRunEntity, MJContentProcessRunEntity, MJContentSourceParamEntity, MJContentSourceTypeParamEntity, MJContentSourceTypeEntity, MJContentSourceEntity, MJContentTypeAttributeEntity, MJContentTypeEntity, MJConversationArtifactPermissionEntity, MJConversationArtifactVersionEntity, MJConversationArtifactEntity, MJConversationBranchEntity, MJConversationCompactionRunEntity, MJConversationDetailArtifactEntity, MJConversationDetailAttachmentEntity, MJConversationDetailRatingEntity, MJConversationDetailEntity, MJConversationSkillEntity, MJConversationWidgetInstanceEntity, MJConversationEntity, MJCountryEntity, 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, MJEntityAIActionEntity, MJEntityActionFilterEntity, MJEntityActionInvocationTypeEntity, MJEntityActionInvocationEntity, MJEntityActionParamEntity, MJEntityActionEntity, MJEntityAlternateBaseViewEntity, MJEntityCommunicationFieldEntity, MJEntityCommunicationMessageTypeEntity, MJEntityDocumentRunEntity, MJEntityDocumentSettingEntity, MJEntityDocumentTypeEntity, MJEntityDocumentEntity, MJEntityFieldPermissionEntity, MJEntityFieldValueEntity, MJEntityFieldEntity, MJEntityFormContributionEntity, MJEntityFormOverrideEntity, MJEntityOrganicKeyRelatedEntityEntity, MJEntityOrganicKeyEntity, MJEntityPermissionEntity, MJEntityRecordDocumentEntity, MJEntityRelationshipDisplayComponentEntity, MJEntityRelationshipEntity, MJEntitySettingEntity, MJEnvironmentEntity, MJErrorLogEntity, MJExperimentSessionIterationEntity, MJExperimentSessionEntity, MJExperimentEntity, MJExplorerNavigationItemEntity, MJExternalDataSourceTypeEntity, MJExternalDataSourceEntity, MJFeaturePipelineTypeEntity, MJFeaturePipelineVersionEntity, MJFeatureValueCacheEntity, MJFeatureValueEntity, MJFileCategoryEntity, MJFileEntityRecordLinkEntity, MJFileStorageAccountPermissionEntity, MJFileStorageAccountEntity, MJFileStorageProviderEntity, MJFileEntity, MJFormChromeRuleEntity, MJGeneratedCodeCategoryEntity, MJGeneratedCodeEntity, MJIdentityClaimTypeEntity, MJIdentityClaimEntity, MJInstanceConfigurationEntity, MJIntegrationObjectFieldEntity, MJIntegrationObjectEntity, MJIntegrationSourceTypeEntity, MJIntegrationURLFormatEntity, MJIntegrationEntity, MJInteractionEventEntity, MJInteractionLinkEntity, MJInteractionOfferEntity, MJInteractionEntity, MJKnowledgeHubSavedSearchEntity, MJLibraryEntity, MJLibraryItemEntity, MJListCategoryEntity, MJListDetailEntity, MJListInvitationEntity, MJListShareEntity, MJListEntity, MJMCPServerConnectionPermissionEntity, MJMCPServerConnectionToolEntity, MJMCPServerConnectionEntity, MJMCPServerToolEntity, MJMCPServerEntity, MJMCPToolExecutionLogEntity, MJMCPToolFavoriteEntity, MJMLAlgorithmUseCaseRankingEntity, MJMLAlgorithmUseCaseEntity, MJMLAlgorithmEntity, MJMLModelScoringBindingEntity, MJMLModelEntity, MJMLTrainingPipelineEntity, MJMLTrainingRunEntity, MJMagicLinkInviteAllowedDomainEntity, MJMagicLinkInviteAllowedPathEntity, MJMagicLinkInviteApplicationEntity, MJMagicLinkInviteRoleEntity, MJMagicLinkInviteEntity, MJMagicLinkRedemptionEntity, MJMaterializedResultQueryEntity, MJMaterializedResultEntity, MJMeetingParticipantEntity, MJMeetingEntity, MJNumberPoolEntity, MJOAuthAuthServerMetadataCacheEntity, MJOAuthAuthorizationStateEntity, MJOAuthClientRegistrationEntity, MJOAuthTokenEntity, MJOpenAppDependencyEntity, MJOpenAppInstallHistoryEntity, MJOpenAppEntity, MJOutputDeliveryTypeEntity, MJOutputFormatTypeEntity, MJPermissionDomainEntity, MJPhoneNumberEntity, MJProcessRunDetailEntity, MJProcessRunEntity, MJProjectEntity, MJPublicLinkEntity, MJQueryEntity, MJQueryCategoryEntity, MJQueryDependencyEntity, MJQueryEntityEntity, MJQueryFieldEntity, MJQueryParameterEntity, MJQueryPermissionEntity, MJQuerySQLEntity, MJQueueTaskEntity, MJQueueTypeEntity, MJQueueEntity, MJRSUPendingWorkEntity, MJRecommendationItemEntity, MJRecommendationProviderEntity, MJRecommendationRunEntity, MJRecommendationEntity, MJRecordChangeReplayRunEntity, MJRecordChangeEntity, MJRecordCloneLogItemEntity, MJRecordCloneLogEntity, MJRecordGeoCodeEntity, MJRecordLinkEntity, MJRecordMergeDeletionLogEntity, MJRecordMergeLogEntity, MJRecordProcessCategoryEntity, MJRecordProcessWatermarkEntity, MJRecordProcessEntity, MJRemoteOperationCategoryEntity, MJRemoteOperationEntity, MJResourceLinkEntity, MJResourcePermissionEntity, MJResourceTypeEntity, MJRoleEntity, MJRowLevelSecurityFilterEntity, MJRubricBandEntity, MJRubricCategoryEntity, MJRubricCriterionEntity, MJRubricCriterionLevelEntity, MJRubricEvaluationScoreEntity, MJRubricEvaluationEntity, MJRubricScaleLevelEntity, MJRubricScaleEntity, MJRubricVersionEntity, MJRubricEntity, MJSQLDialectEntity, MJScheduledJobRunEntity, MJScheduledJobTypeEntity, MJScheduledJobEntity, MJSchemaInfoEntity, MJScopedNotificationConfigEntity, MJScopedPromptConfigEntity, MJScopedPromptPartEntity, MJSearchExecutionLogEntity, MJSearchProviderEntity, MJSearchScopeEntityEntity, MJSearchScopeExternalIndexEntity, MJSearchScopePermissionEntity, MJSearchScopeProviderEntity, MJSearchScopeStorageAccountEntity, MJSearchScopeTestQueryEntity, MJSearchScopeEntity, MJSignatureAccountEntity, MJSignatureProviderEntity, MJSignatureRequestDocumentEntity, MJSignatureRequestLogEntity, MJSignatureRequestRecipientEntity, MJSignatureRequestEntity, MJSkillEntity, MJStateProvinceEntity, MJTagAuditLogEntity, MJTagCoOccurrenceEntity, MJTagScopeEntity, MJTagSuggestionEntity, MJTagSynonymEntity, MJTaggedItemEntity, MJTagEntity, MJTaskDependencyEntity, MJTaskTypeEntity, MJTaskEntity, MJTemplateCategoryEntity, MJTemplateContentTypeEntity, MJTemplateContentEntity, MJTemplateParamEntity, MJTemplateEntity, MJTestRubricEntity, MJTestRunFeedbackEntity, MJTestRunOutputTypeEntity, MJTestRunOutputEntity, MJTestRunEntity, MJTestSuiteRunEntity, MJTestSuiteTestEntity, MJTestSuiteEntity, MJTestTypeEntity, MJTestEntity, MJThemeEntity, MJUserApplicationEntityEntity, MJUserApplicationEntity, MJUserFavoriteEntity, MJUserNotificationPreferenceEntity, MJUserNotificationTypeEntity, MJUserNotificationEntity, MJUserRecordLogEntity, MJUserRoleEntity, MJUserRoutineRecipientEntity, MJUserRoutineRunEntity, MJUserRoutineEntity, MJUserSettingEntity, MJUserViewCategoryEntity, MJUserViewRunDetailEntity, MJUserViewRunEntity, MJUserViewEntity, MJUserEntity, MJVectorDatabaseEntity, MJVectorIndexEntity, MJVersionInstallationEntity, MJVersionLabelItemEntity, MJVersionLabelRestoreEntity, MJVersionLabelEntity, MJViewTypeEntity, MJWebSearchProviderEntity, MJWorkQueueDeduplicationEntity, MJWorkQueueDeliveryEntity, MJWorkQueueMessageEntity, MJWorkQueueSubscriptionEntity, MJWorkQueueTopicEntity, MJWorkQueueTransportEntity, MJWorkspaceItemEntity, MJWorkspaceEntity } from '@memberjunction/core-entities';
|
|
21
|
+
import { MJAIActionEntity, MJAIAgentActionEntity, MJAIAgentArtifactTypeEntity, MJAIAgentCategoryEntity, MJAIAgentChannelEntity, MJAIAgentClientToolEntity, MJAIAgentCoAgentEntity, MJAIAgentConfigurationEntity, MJAIAgentCredentialEntity, MJAIAgentDataSourceEntity, MJAIAgentExampleEntity, MJAIAgentHarnessEntity, MJAIAgentLearningCycleEntity, MJAIAgentModalityEntity, MJAIAgentModelEntity, MJAIAgentNoteTypeEntity, MJAIAgentNoteEntity, MJAIAgentPermissionEntity, MJAIAgentPersonaEntity, MJAIAgentPromptEntity, MJAIAgentRelationshipEntity, MJAIAgentRequestTypeEntity, MJAIAgentRequestEntity, MJAIAgentRubricEntity, MJAIAgentRunMediaEntity, MJAIAgentRunStepEntity, MJAIAgentRunEntity, MJAIAgentSearchScopeEntity, MJAIAgentSessionBridgeParticipantEntity, MJAIAgentSessionBridgeEntity, MJAIAgentSessionChannelEntity, MJAIAgentSessionRecordingShardEntity, MJAIAgentSessionEntity, MJAIAgentSkillEntity, MJAIAgentStepPathEntity, MJAIAgentStepEntity, MJAIAgentTypeEntity, MJAIAgentUserPolicyEntity, MJAIAgentEntity, MJAIArchitectureEntity, MJAIBridgeAgentIdentityEntity, MJAIBridgeProviderChannelEntity, MJAIBridgeProviderEntity, MJAIClientToolDefinitionEntity, MJAIConfigurationParamEntity, MJAIConfigurationEntity, MJAICredentialBindingEntity, MJAIModalityEntity, MJAIModelActionEntity, MJAIModelArchitectureEntity, MJAIModelCostEntity, MJAIModelModalityEntity, MJAIModelPersonaEntity, MJAIModelPriceTypeEntity, MJAIModelPriceUnitTypeEntity, MJAIModelTypeEntity, MJAIModelVendorEntity, MJAIModelEntity, MJAIPersonaVendorEntity, MJAIPersonaEntity, MJAIPromptCategoryEntity, MJAIPromptModelEntity, MJAIPromptRunMediaEntity, MJAIPromptRunEntity, MJAIPromptTypeEntity, MJAIPromptEntity, MJAIRemoteBrowserProviderEntity, MJAIResultCacheEntity, MJAISkillActionEntity, MJAISkillPermissionEntity, MJAISkillSearchScopeEntity, MJAISkillSubAgentEntity, MJAISkillEntity, MJAIUsageTypeEntity, MJAIVendorTypeDefinitionEntity, MJAIVendorTypeEntity, MJAIVendorEntity, MJAPIApplicationScopeEntity, MJAPIApplicationEntity, MJAPIKeyApplicationEntity, MJAPIKeyScopeEntity, MJAPIKeyUsageLogEntity, MJAPIKeyEntity, MJAPIScopeEntity, MJAccessControlRuleEntity, MJActionAuthorizationEntity, MJActionCategoryEntity, MJActionContextTypeEntity, MJActionContextEntity, MJActionExecutionLogEntity, MJActionFilterEntity, MJActionLibraryEntity, MJActionParamEntity, MJActionResultCodeEntity, MJActionEntity, MJApplicationEntityEntity, MJApplicationRoleEntity, MJApplicationSettingEntity, MJApplicationEntity, MJArchiveConfigurationEntityEntity, MJArchiveConfigurationEntity, MJArchiveRunDetailEntity, MJArchiveRunEntity, MJArtifactPermissionEntity, MJArtifactTypeEntity, MJArtifactUseEntity, MJArtifactVersionAttributeEntity, MJArtifactVersionEntity, MJArtifactEntity, MJAuditLogTypeEntity, MJAuditLogEntity, MJAuthenticationProviderEntity, MJAuthorizationRoleEntity, MJAuthorizationEntity, MJBrandKitAssetEntity, MJBrandKitEntity, MJCalendarEventLinkEntity, MJCalendarSyncStateEntity, MJClusterAnalysisEntity, MJClusterAnalysisClusterEntity, MJCollectionArtifactEntity, MJCollectionPermissionEntity, MJCollectionEntity, MJCommunicationBaseMessageTypeEntity, MJCommunicationLogEntity, MJCommunicationProviderMessageTypeEntity, MJCommunicationProviderEntity, MJCommunicationRunEntity, MJCompanyEntity, MJCompanyIntegrationEntityMapEntity, MJCompanyIntegrationFieldMapEntity, MJCompanyIntegrationObjectFieldEntity, MJCompanyIntegrationObjectEntity, MJCompanyIntegrationRecordMapEntity, MJCompanyIntegrationRunAPILogEntity, MJCompanyIntegrationRunDetailEntity, MJCompanyIntegrationRunEntity, MJCompanyIntegrationSyncWatermarkEntity, MJCompanyIntegrationEntity, MJComponentDependencyEntity, MJComponentLibraryEntity, MJComponentLibraryLinkEntity, MJComponentRegistryEntity, MJComponentEntity, MJContentFileTypeEntity, MJContentItemAttributeEntity, MJContentItemChunkEntity, MJContentItemDuplicateEntity, MJContentItemTagEntity, MJContentItemEntity, MJContentProcessRunDetailEntity, MJContentProcessRunPromptRunEntity, MJContentProcessRunEntity, MJContentSourceParamEntity, MJContentSourceTypeParamEntity, MJContentSourceTypeEntity, MJContentSourceEntity, MJContentTypeAttributeEntity, MJContentTypeEntity, MJConversationArtifactPermissionEntity, MJConversationArtifactVersionEntity, MJConversationArtifactEntity, MJConversationBranchEntity, MJConversationCompactionRunEntity, MJConversationDetailArtifactEntity, MJConversationDetailAttachmentEntity, MJConversationDetailRatingEntity, MJConversationDetailEntity, MJConversationSkillEntity, MJConversationWidgetInstanceEntity, MJConversationEntity, MJCountryEntity, 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, MJEntityAIActionEntity, MJEntityActionFilterEntity, MJEntityActionInvocationTypeEntity, MJEntityActionInvocationEntity, MJEntityActionParamEntity, MJEntityActionEntity, MJEntityAlternateBaseViewEntity, MJEntityCommunicationFieldEntity, MJEntityCommunicationMessageTypeEntity, MJEntityDocumentRunEntity, MJEntityDocumentSettingEntity, MJEntityDocumentTypeEntity, MJEntityDocumentEntity, MJEntityFieldPermissionEntity, MJEntityFieldValueEntity, MJEntityFieldEntity, MJEntityFormContributionEntity, MJEntityFormOverrideEntity, MJEntityOrganicKeyRelatedEntityEntity, MJEntityOrganicKeyEntity, MJEntityPermissionEntity, MJEntityRecordDocumentEntity, MJEntityRelationshipDisplayComponentEntity, MJEntityRelationshipEntity, MJEntitySettingEntity, MJEnvironmentEntity, MJErrorLogEntity, MJExperimentSessionIterationEntity, MJExperimentSessionEntity, MJExperimentEntity, MJExplorerNavigationItemEntity, MJExternalDataSourceTypeEntity, MJExternalDataSourceEntity, MJFeaturePipelineTypeEntity, MJFeaturePipelineVersionEntity, MJFeatureValueCacheEntity, MJFeatureValueEntity, MJFileCategoryEntity, MJFileEntityRecordLinkEntity, MJFileStorageAccountPermissionEntity, MJFileStorageAccountEntity, MJFileStorageProviderEntity, MJFileEntity, MJFormChromeRuleEntity, MJGeneratedCodeCategoryEntity, MJGeneratedCodeEntity, MJIdentityClaimTypeEntity, MJIdentityClaimEntity, MJInstanceConfigurationEntity, MJIntegrationObjectFieldEntity, MJIntegrationObjectEntity, MJIntegrationSourceTypeEntity, MJIntegrationURLFormatEntity, MJIntegrationEntity, MJInteractionEventEntity, MJInteractionLinkEntity, MJInteractionOfferEntity, MJInteractionEntity, MJKnowledgeHubSavedSearchEntity, MJLibraryEntity, MJLibraryItemEntity, MJListCategoryEntity, MJListDetailEntity, MJListInvitationEntity, MJListShareEntity, MJListEntity, MJMCPServerConnectionPermissionEntity, MJMCPServerConnectionToolEntity, MJMCPServerConnectionEntity, MJMCPServerToolEntity, MJMCPServerEntity, MJMCPToolExecutionLogEntity, MJMCPToolFavoriteEntity, MJMLAlgorithmUseCaseRankingEntity, MJMLAlgorithmUseCaseEntity, MJMLAlgorithmEntity, MJMLModelScoringBindingEntity, MJMLModelEntity, MJMLTrainingPipelineEntity, MJMLTrainingRunEntity, MJMagicLinkInviteAllowedDomainEntity, MJMagicLinkInviteAllowedPathEntity, MJMagicLinkInviteApplicationEntity, MJMagicLinkInviteRoleEntity, MJMagicLinkInviteEntity, MJMagicLinkRedemptionEntity, MJMaterializedResultQueryEntity, MJMaterializedResultEntity, MJMeetingParticipantEntity, MJMeetingEntity, MJNumberPoolEntity, MJOAuthAuthServerMetadataCacheEntity, MJOAuthAuthorizationStateEntity, MJOAuthClientRegistrationEntity, MJOAuthTokenEntity, MJOpenAppDependencyEntity, MJOpenAppInstallHistoryEntity, MJOpenAppEntity, MJOutputDeliveryTypeEntity, MJOutputFormatTypeEntity, MJPermissionDomainEntity, MJPhoneNumberEntity, MJProcessRunDetailEntity, MJProcessRunEntity, MJProjectEntity, MJPublicLinkEntity, MJQueryEntity, MJQueryCategoryEntity, MJQueryDependencyEntity, MJQueryEntityEntity, MJQueryFieldEntity, MJQueryParameterEntity, MJQueryPermissionEntity, MJQuerySQLEntity, MJQueueTaskEntity, MJQueueTypeEntity, MJQueueEntity, MJRSUPendingWorkEntity, MJRecommendationItemEntity, MJRecommendationProviderEntity, MJRecommendationRunEntity, MJRecommendationEntity, MJRecordChangeReplayRunEntity, MJRecordChangeEntity, MJRecordCloneLogItemEntity, MJRecordCloneLogEntity, MJRecordGeoCodeEntity, MJRecordLinkEntity, MJRecordMergeDeletionLogEntity, MJRecordMergeLogEntity, MJRecordProcessCategoryEntity, MJRecordProcessWatermarkEntity, MJRecordProcessEntity, MJRemoteOperationCategoryEntity, MJRemoteOperationEntity, MJResourceLinkEntity, MJResourcePermissionEntity, MJResourceTypeEntity, MJRoleEntity, MJRowLevelSecurityFilterEntity, MJRubricBandEntity, MJRubricCategoryEntity, MJRubricCriterionEntity, MJRubricCriterionLevelEntity, MJRubricEvaluationScoreEntity, MJRubricEvaluationEntity, MJRubricScaleLevelEntity, MJRubricScaleEntity, MJRubricVersionEntity, MJRubricEntity, MJSQLDialectEntity, MJScheduledJobRunEntity, MJScheduledJobTypeEntity, MJScheduledJobEntity, MJSchemaInfoEntity, MJScopedNotificationConfigEntity, MJScopedPromptConfigEntity, MJScopedPromptPartEntity, MJSearchExecutionLogEntity, MJSearchProviderEntity, MJSearchScopeEntityEntity, MJSearchScopeExternalIndexEntity, MJSearchScopePermissionEntity, MJSearchScopeProviderEntity, MJSearchScopeStorageAccountEntity, MJSearchScopeTestQueryEntity, MJSearchScopeEntity, MJSignatureAccountEntity, MJSignatureProviderEntity, MJSignatureRequestDocumentEntity, MJSignatureRequestLogEntity, MJSignatureRequestRecipientEntity, MJSignatureRequestEntity, MJSkillEntity, MJStateProvinceEntity, MJTagAuditLogEntity, MJTagCoOccurrenceEntity, MJTagScopeEntity, MJTagSuggestionEntity, MJTagSynonymEntity, MJTaggedItemEntity, MJTagEntity, MJTaskDependencyEntity, MJTaskTypeEntity, MJTaskEntity, MJTemplateCategoryEntity, MJTemplateContentTypeEntity, MJTemplateContentEntity, MJTemplateParamEntity, MJTemplateEntity, MJTestRubricEntity, MJTestRunFeedbackEntity, MJTestRunOutputTypeEntity, MJTestRunOutputEntity, MJTestRunEntity, MJTestSuiteRunEntity, MJTestSuiteTestEntity, MJTestSuiteEntity, MJTestTypeEntity, MJTestEntity, MJThemeEntity, MJUserApplicationEntityEntity, MJUserApplicationEntity, MJUserFavoriteEntity, MJUserNotificationPreferenceEntity, MJUserNotificationTypeEntity, MJUserNotificationEntity, MJUserRecordLogEntity, MJUserRoleEntity, MJUserRoutineRecipientEntity, MJUserRoutineRunEntity, MJUserRoutineEntity, MJUserSettingEntity, MJUserViewCategoryEntity, MJUserViewRunDetailEntity, MJUserViewRunEntity, MJUserViewEntity, MJUserEntity, MJVectorDatabaseEntity, MJVectorIndexEntity, MJVersionInstallationEntity, MJVersionLabelItemEntity, MJVersionLabelRestoreEntity, MJVersionLabelEntity, MJVideoArchetypeEntity, MJViewTypeEntity, MJWebSearchProviderEntity, MJWorkQueueDeduplicationEntity, MJWorkQueueDeliveryEntity, MJWorkQueueMessageEntity, MJWorkQueueSubscriptionEntity, MJWorkQueueTopicEntity, MJWorkQueueTransportEntity, MJWorkspaceItemEntity, MJWorkspaceEntity } from '@memberjunction/core-entities';
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
//****************************************************************************
|
|
@@ -4676,6 +4676,14 @@ export class MJAIAgentRelationship_ {
|
|
|
4676
4676
|
@Field(() => Int, {nullable: true, description: "Maximum number of conversation messages to include when MessageMode is 'Latest' or 'Bookend'. NULL means no limit (ignored for 'None' and 'All' modes). Must be greater than 0 if specified. For 'Latest': keeps most recent N messages. For 'Bookend': keeps first 2 + most recent (N-2) messages."})
|
|
4677
4677
|
MaxMessages?: number;
|
|
4678
4678
|
|
|
4679
|
+
@Field({nullable: true, description: "How the parent agent handles a Chat step returned by this sub-agent. Same values as AIAgent.ChatHandlingOption. NULL inherits the parent agent's ChatHandlingOption."})
|
|
4680
|
+
@MaxLength(30)
|
|
4681
|
+
ChatHandlingOption?: string;
|
|
4682
|
+
|
|
4683
|
+
@Field({nullable: true, description: "Default configuration preset (an MJ: AI Agent Configurations row of the sub-agent) the parent uses when it calls this sub-agent. NULL runs the sub-agent under the parent's configuration. A per-call presetName overrides it."})
|
|
4684
|
+
@MaxLength(36)
|
|
4685
|
+
ConfigurationPresetID?: string;
|
|
4686
|
+
|
|
4679
4687
|
@Field({nullable: true})
|
|
4680
4688
|
@MaxLength(255)
|
|
4681
4689
|
Agent?: string;
|
|
@@ -4684,6 +4692,10 @@ export class MJAIAgentRelationship_ {
|
|
|
4684
4692
|
@MaxLength(255)
|
|
4685
4693
|
SubAgent?: string;
|
|
4686
4694
|
|
|
4695
|
+
@Field({nullable: true})
|
|
4696
|
+
@MaxLength(100)
|
|
4697
|
+
ConfigurationPreset?: string;
|
|
4698
|
+
|
|
4687
4699
|
@Field(() => [String], { nullable: true, description: `Field-level security: when non-null, the fields on this entity the calling user may read. Any other field arriving as null was withheld by the server rather than genuinely empty. Null for callers with no field restrictions.` })
|
|
4688
4700
|
ReadableFields___?: string[];
|
|
4689
4701
|
|
|
@@ -4721,6 +4733,12 @@ export class CreateMJAIAgentRelationshipInput {
|
|
|
4721
4733
|
@Field(() => Int, { nullable: true })
|
|
4722
4734
|
MaxMessages: number | null;
|
|
4723
4735
|
|
|
4736
|
+
@Field({ nullable: true })
|
|
4737
|
+
ChatHandlingOption: string | null;
|
|
4738
|
+
|
|
4739
|
+
@Field({ nullable: true })
|
|
4740
|
+
ConfigurationPresetID: string | null;
|
|
4741
|
+
|
|
4724
4742
|
@Field(() => RestoreContextInput, { nullable: true })
|
|
4725
4743
|
RestoreContext___?: RestoreContextInput;
|
|
4726
4744
|
}
|
|
@@ -4758,6 +4776,12 @@ export class UpdateMJAIAgentRelationshipInput {
|
|
|
4758
4776
|
@Field(() => Int, { nullable: true })
|
|
4759
4777
|
MaxMessages?: number | null;
|
|
4760
4778
|
|
|
4779
|
+
@Field({ nullable: true })
|
|
4780
|
+
ChatHandlingOption?: string | null;
|
|
4781
|
+
|
|
4782
|
+
@Field({ nullable: true })
|
|
4783
|
+
ConfigurationPresetID?: string | null;
|
|
4784
|
+
|
|
4761
4785
|
@Field(() => [KeyValuePairInput], { nullable: true })
|
|
4762
4786
|
OldValues___?: KeyValuePairInput[];
|
|
4763
4787
|
|
|
@@ -5950,7 +5974,7 @@ export class MJAIAgentRunStep_ {
|
|
|
5950
5974
|
@Field(() => Int, {nullable: true, description: "Sequential number of this step within the agent run, starting from 1"})
|
|
5951
5975
|
StepNumber?: number;
|
|
5952
5976
|
|
|
5953
|
-
@Field({nullable: true, description: "Type of execution step: Prompt,
|
|
5977
|
+
@Field({nullable: true, description: "Type of execution step: Actions, Chat, Compaction, Decision, ForEach, Handoff, Plan, Prompt, Skill, Sub-Agent, TaskGraph, Tool, Validation, While."})
|
|
5954
5978
|
@MaxLength(50)
|
|
5955
5979
|
StepType?: string;
|
|
5956
5980
|
|
|
@@ -8250,7 +8274,7 @@ export class MJAIAgentSession_ {
|
|
|
8250
8274
|
@Field({nullable: true, description: "When the session was closed (terminal). NULL while the session is Active or Idle."})
|
|
8251
8275
|
ClosedAt?: Date;
|
|
8252
8276
|
|
|
8253
|
-
@Field({nullable: true, description: "Why the session was closed: Explicit (user hang-up / deliberate API close), Janitor (orphan
|
|
8277
|
+
@Field({nullable: true, description: "Why the session was closed: Explicit (user hang-up / deliberate API close), Janitor (orphan sweep; also every expiry close made before TimeLimit and Idle existed), Shutdown (graceful server shutdown), Error (session failure), TimeLimit (the session's authored deadline passed), Idle (no activity for longer than the idle threshold). NULL while Status is Active or Idle."})
|
|
8254
8278
|
@MaxLength(20)
|
|
8255
8279
|
CloseReason?: string;
|
|
8256
8280
|
|
|
@@ -10043,7 +10067,7 @@ export class MJAIAgent_ {
|
|
|
10043
10067
|
@Field(() => Int, {nullable: true, description: "Default effort level for all prompts executed by this agent (1-100, where 1=minimal effort, 100=maximum effort). Takes precedence over individual prompt EffortLevel settings but can be overridden by runtime parameters. Inherited by sub-agents unless explicitly overridden."})
|
|
10044
10068
|
DefaultPromptEffortLevel?: number;
|
|
10045
10069
|
|
|
10046
|
-
@Field({nullable: true, description: "Controls how Chat next steps are handled.
|
|
10070
|
+
@Field({nullable: true, description: "Controls how Chat next steps are handled. NULL (default): Chat propagates to the caller. Success, Failed or Retry: the Chat is remapped to that step. Consult: when a sub-agent of this agent returns Chat, this agent answers it itself (or asks its own caller) instead of ending its run; this agent's own Chat still goes to its caller. AIAgentRelationship.ChatHandlingOption overrides this per sub-agent."})
|
|
10047
10071
|
@MaxLength(30)
|
|
10048
10072
|
ChatHandlingOption?: string;
|
|
10049
10073
|
|
|
@@ -10198,6 +10222,9 @@ export class MJAIAgent_ {
|
|
|
10198
10222
|
@Field(() => Boolean, {nullable: true, description: "When native tool calling is in effect for a run, whether this agent's Actions are declared as native tools (1, default) or withheld so the agent runs on the envelope path with the prose action catalog (0). Set 0 for coordinator agents whose prompt forbids doing work themselves. Controls supply only: capability and preference on the model and prompt still decide whether declared tools are used."})
|
|
10199
10223
|
DeclareActionsAsNativeTools?: boolean;
|
|
10200
10224
|
|
|
10225
|
+
@Field(() => Int, {nullable: true, description: "Maximum number of Consult rounds this agent answers for a sub-agent before that sub-agent's question propagates to this agent's caller. NULL uses the framework default (3)."})
|
|
10226
|
+
MaxSubAgentConsultRounds?: number;
|
|
10227
|
+
|
|
10201
10228
|
@Field({nullable: true})
|
|
10202
10229
|
@MaxLength(255)
|
|
10203
10230
|
Parent?: string;
|
|
@@ -10509,6 +10536,9 @@ export class CreateMJAIAgentInput {
|
|
|
10509
10536
|
@Field(() => Boolean, { nullable: true })
|
|
10510
10537
|
DeclareActionsAsNativeTools?: boolean;
|
|
10511
10538
|
|
|
10539
|
+
@Field(() => Int, { nullable: true })
|
|
10540
|
+
MaxSubAgentConsultRounds: number | null;
|
|
10541
|
+
|
|
10512
10542
|
@Field(() => RestoreContextInput, { nullable: true })
|
|
10513
10543
|
RestoreContext___?: RestoreContextInput;
|
|
10514
10544
|
}
|
|
@@ -10756,6 +10786,9 @@ export class UpdateMJAIAgentInput {
|
|
|
10756
10786
|
@Field(() => Boolean, { nullable: true })
|
|
10757
10787
|
DeclareActionsAsNativeTools?: boolean;
|
|
10758
10788
|
|
|
10789
|
+
@Field(() => Int, { nullable: true })
|
|
10790
|
+
MaxSubAgentConsultRounds?: number | null;
|
|
10791
|
+
|
|
10759
10792
|
@Field(() => [KeyValuePairInput], { nullable: true })
|
|
10760
10793
|
OldValues___?: KeyValuePairInput[];
|
|
10761
10794
|
|
|
@@ -28501,6 +28534,456 @@ export class MJAuthorizationResolver extends ResolverBase {
|
|
|
28501
28534
|
|
|
28502
28535
|
}
|
|
28503
28536
|
|
|
28537
|
+
//****************************************************************************
|
|
28538
|
+
// ENTITY CLASS for MJ: Brand Kit Assets
|
|
28539
|
+
//****************************************************************************
|
|
28540
|
+
@ObjectType({ description: "A file in a brand kit, with usage guidance, license notes, and whether generation models may receive it as a reference." })
|
|
28541
|
+
export class MJBrandKitAsset_ {
|
|
28542
|
+
@Field()
|
|
28543
|
+
@MaxLength(36)
|
|
28544
|
+
ID: string;
|
|
28545
|
+
|
|
28546
|
+
@Field({nullable: true, description: "The brand kit this file belongs to."})
|
|
28547
|
+
@MaxLength(36)
|
|
28548
|
+
BrandKitID?: string;
|
|
28549
|
+
|
|
28550
|
+
@Field({nullable: true, description: "Display name of the asset."})
|
|
28551
|
+
@MaxLength(255)
|
|
28552
|
+
Name?: string;
|
|
28553
|
+
|
|
28554
|
+
@Field({nullable: true, description: "Logo, LogoMark, Font, Image, Screenshot, Video, Music, SoundEffect or Other."})
|
|
28555
|
+
@MaxLength(30)
|
|
28556
|
+
AssetType?: string;
|
|
28557
|
+
|
|
28558
|
+
@Field({nullable: true, description: "The stored file (MJ: Files)."})
|
|
28559
|
+
@MaxLength(36)
|
|
28560
|
+
FileID?: string;
|
|
28561
|
+
|
|
28562
|
+
@Field({nullable: true, description: "When and how to use the asset."})
|
|
28563
|
+
Usage?: string;
|
|
28564
|
+
|
|
28565
|
+
@Field(() => Boolean, {nullable: true, description: "The main asset of its type, for example the primary logo."})
|
|
28566
|
+
IsPrimary?: boolean;
|
|
28567
|
+
|
|
28568
|
+
@Field(() => Int, {nullable: true, description: "Order within the kit; lower first."})
|
|
28569
|
+
Sequence?: number;
|
|
28570
|
+
|
|
28571
|
+
@Field({nullable: true, description: "Who may use the file, and where (fonts, music, stock imagery)."})
|
|
28572
|
+
@MaxLength(500)
|
|
28573
|
+
LicenseNotes?: string;
|
|
28574
|
+
|
|
28575
|
+
@Field(() => Boolean, {nullable: true, description: "When set, the file may be sent to image or video generation models as a style or subject reference. Allowed only for Image, Screenshot, Logo, LogoMark and Video assets."})
|
|
28576
|
+
IsGenerationReference?: boolean;
|
|
28577
|
+
|
|
28578
|
+
@Field()
|
|
28579
|
+
_mj__CreatedAt: Date;
|
|
28580
|
+
|
|
28581
|
+
@Field()
|
|
28582
|
+
_mj__UpdatedAt: Date;
|
|
28583
|
+
|
|
28584
|
+
@Field({nullable: true})
|
|
28585
|
+
@MaxLength(255)
|
|
28586
|
+
BrandKit?: string;
|
|
28587
|
+
|
|
28588
|
+
@Field({nullable: true})
|
|
28589
|
+
@MaxLength(500)
|
|
28590
|
+
File?: string;
|
|
28591
|
+
|
|
28592
|
+
@Field(() => [String], { nullable: true, description: `Field-level security: when non-null, the fields on this entity the calling user may read. Any other field arriving as null was withheld by the server rather than genuinely empty. Null for callers with no field restrictions.` })
|
|
28593
|
+
ReadableFields___?: string[];
|
|
28594
|
+
|
|
28595
|
+
}
|
|
28596
|
+
|
|
28597
|
+
//****************************************************************************
|
|
28598
|
+
// INPUT TYPE for MJ: Brand Kit Assets
|
|
28599
|
+
//****************************************************************************
|
|
28600
|
+
@InputType()
|
|
28601
|
+
export class CreateMJBrandKitAssetInput {
|
|
28602
|
+
@Field({ nullable: true })
|
|
28603
|
+
ID?: string;
|
|
28604
|
+
|
|
28605
|
+
@Field({ nullable: true })
|
|
28606
|
+
BrandKitID?: string;
|
|
28607
|
+
|
|
28608
|
+
@Field({ nullable: true })
|
|
28609
|
+
Name?: string;
|
|
28610
|
+
|
|
28611
|
+
@Field({ nullable: true })
|
|
28612
|
+
AssetType?: string;
|
|
28613
|
+
|
|
28614
|
+
@Field({ nullable: true })
|
|
28615
|
+
FileID?: string;
|
|
28616
|
+
|
|
28617
|
+
@Field({ nullable: true })
|
|
28618
|
+
Usage: string | null;
|
|
28619
|
+
|
|
28620
|
+
@Field(() => Boolean, { nullable: true })
|
|
28621
|
+
IsPrimary?: boolean;
|
|
28622
|
+
|
|
28623
|
+
@Field(() => Int, { nullable: true })
|
|
28624
|
+
Sequence?: number;
|
|
28625
|
+
|
|
28626
|
+
@Field({ nullable: true })
|
|
28627
|
+
LicenseNotes: string | null;
|
|
28628
|
+
|
|
28629
|
+
@Field(() => Boolean, { nullable: true })
|
|
28630
|
+
IsGenerationReference?: boolean;
|
|
28631
|
+
|
|
28632
|
+
@Field(() => RestoreContextInput, { nullable: true })
|
|
28633
|
+
RestoreContext___?: RestoreContextInput;
|
|
28634
|
+
}
|
|
28635
|
+
|
|
28636
|
+
|
|
28637
|
+
//****************************************************************************
|
|
28638
|
+
// INPUT TYPE for MJ: Brand Kit Assets
|
|
28639
|
+
//****************************************************************************
|
|
28640
|
+
@InputType()
|
|
28641
|
+
export class UpdateMJBrandKitAssetInput {
|
|
28642
|
+
@Field()
|
|
28643
|
+
ID: string;
|
|
28644
|
+
|
|
28645
|
+
@Field({ nullable: true })
|
|
28646
|
+
BrandKitID?: string;
|
|
28647
|
+
|
|
28648
|
+
@Field({ nullable: true })
|
|
28649
|
+
Name?: string;
|
|
28650
|
+
|
|
28651
|
+
@Field({ nullable: true })
|
|
28652
|
+
AssetType?: string;
|
|
28653
|
+
|
|
28654
|
+
@Field({ nullable: true })
|
|
28655
|
+
FileID?: string;
|
|
28656
|
+
|
|
28657
|
+
@Field({ nullable: true })
|
|
28658
|
+
Usage?: string | null;
|
|
28659
|
+
|
|
28660
|
+
@Field(() => Boolean, { nullable: true })
|
|
28661
|
+
IsPrimary?: boolean;
|
|
28662
|
+
|
|
28663
|
+
@Field(() => Int, { nullable: true })
|
|
28664
|
+
Sequence?: number;
|
|
28665
|
+
|
|
28666
|
+
@Field({ nullable: true })
|
|
28667
|
+
LicenseNotes?: string | null;
|
|
28668
|
+
|
|
28669
|
+
@Field(() => Boolean, { nullable: true })
|
|
28670
|
+
IsGenerationReference?: boolean;
|
|
28671
|
+
|
|
28672
|
+
@Field(() => [KeyValuePairInput], { nullable: true })
|
|
28673
|
+
OldValues___?: KeyValuePairInput[];
|
|
28674
|
+
|
|
28675
|
+
@Field(() => RestoreContextInput, { nullable: true })
|
|
28676
|
+
RestoreContext___?: RestoreContextInput;
|
|
28677
|
+
}
|
|
28678
|
+
|
|
28679
|
+
//****************************************************************************
|
|
28680
|
+
// RESOLVER for MJ: Brand Kit Assets
|
|
28681
|
+
//****************************************************************************
|
|
28682
|
+
@ObjectType()
|
|
28683
|
+
export class RunMJBrandKitAssetViewResult {
|
|
28684
|
+
@Field(() => [MJBrandKitAsset_])
|
|
28685
|
+
Results: MJBrandKitAsset_[];
|
|
28686
|
+
|
|
28687
|
+
@Field(() => String, {nullable: true})
|
|
28688
|
+
UserViewRunID?: string;
|
|
28689
|
+
|
|
28690
|
+
@Field(() => Int, {nullable: true})
|
|
28691
|
+
RowCount: number;
|
|
28692
|
+
|
|
28693
|
+
@Field(() => Int, {nullable: true})
|
|
28694
|
+
TotalRowCount: number;
|
|
28695
|
+
|
|
28696
|
+
@Field(() => Int, {nullable: true})
|
|
28697
|
+
ExecutionTime: number;
|
|
28698
|
+
|
|
28699
|
+
@Field({nullable: true})
|
|
28700
|
+
ErrorMessage?: string;
|
|
28701
|
+
|
|
28702
|
+
@Field(() => Boolean, {nullable: false})
|
|
28703
|
+
Success: boolean;
|
|
28704
|
+
}
|
|
28705
|
+
|
|
28706
|
+
@Resolver(MJBrandKitAsset_)
|
|
28707
|
+
export class MJBrandKitAssetResolver extends ResolverBase {
|
|
28708
|
+
@Query(() => RunMJBrandKitAssetViewResult)
|
|
28709
|
+
async RunMJBrandKitAssetViewByID(@Arg('input', () => RunViewByIDInput) input: RunViewByIDInput, @Ctx() { providers, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
28710
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
28711
|
+
return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
|
|
28712
|
+
}
|
|
28713
|
+
|
|
28714
|
+
@Query(() => RunMJBrandKitAssetViewResult)
|
|
28715
|
+
async RunMJBrandKitAssetViewByName(@Arg('input', () => RunViewByNameInput) input: RunViewByNameInput, @Ctx() { providers, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
28716
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
28717
|
+
return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
|
|
28718
|
+
}
|
|
28719
|
+
|
|
28720
|
+
@Query(() => RunMJBrandKitAssetViewResult)
|
|
28721
|
+
async RunMJBrandKitAssetDynamicView(@Arg('input', () => RunDynamicViewInput) input: RunDynamicViewInput, @Ctx() { providers, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
28722
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
28723
|
+
input.EntityName = 'MJ: Brand Kit Assets';
|
|
28724
|
+
return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
|
|
28725
|
+
}
|
|
28726
|
+
@Query(() => MJBrandKitAsset_, { nullable: true })
|
|
28727
|
+
async MJBrandKitAsset(@Arg('ID', () => String) ID: string, @Ctx() { userPayload, providers }: AppContext, @PubSub() pubSub: PubSubEngine): Promise<MJBrandKitAsset_ | null> {
|
|
28728
|
+
this.CheckUserReadPermissions('MJ: Brand Kit Assets', userPayload);
|
|
28729
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
28730
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwBrandKitAssets')} WHERE ${provider.QuoteIdentifier('ID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Brand Kit Assets', userPayload, EntityPermissionType.Read, 'AND');
|
|
28731
|
+
const rows = await provider.ExecuteSQL(sSQL, [ID], undefined, this.GetUserFromPayload(userPayload));
|
|
28732
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Brand Kit Assets', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
28733
|
+
return result;
|
|
28734
|
+
}
|
|
28735
|
+
|
|
28736
|
+
@Mutation(() => MJBrandKitAsset_)
|
|
28737
|
+
async CreateMJBrandKitAsset(
|
|
28738
|
+
@Arg('input', () => CreateMJBrandKitAssetInput) input: CreateMJBrandKitAssetInput,
|
|
28739
|
+
@Ctx() { providers, userPayload }: AppContext,
|
|
28740
|
+
@PubSub() pubSub: PubSubEngine
|
|
28741
|
+
) {
|
|
28742
|
+
const provider = GetReadWriteProvider(providers);
|
|
28743
|
+
return this.CreateRecord('MJ: Brand Kit Assets', input, provider, userPayload, pubSub)
|
|
28744
|
+
}
|
|
28745
|
+
|
|
28746
|
+
@Mutation(() => MJBrandKitAsset_)
|
|
28747
|
+
async UpdateMJBrandKitAsset(
|
|
28748
|
+
@Arg('input', () => UpdateMJBrandKitAssetInput) input: UpdateMJBrandKitAssetInput,
|
|
28749
|
+
@Ctx() { providers, userPayload }: AppContext,
|
|
28750
|
+
@PubSub() pubSub: PubSubEngine
|
|
28751
|
+
) {
|
|
28752
|
+
const provider = GetReadWriteProvider(providers);
|
|
28753
|
+
return this.UpdateRecord('MJ: Brand Kit Assets', input, provider, userPayload, pubSub);
|
|
28754
|
+
}
|
|
28755
|
+
|
|
28756
|
+
@Mutation(() => MJBrandKitAsset_)
|
|
28757
|
+
async DeleteMJBrandKitAsset(@Arg('ID', () => String) ID: string, @Arg('options___', () => DeleteOptionsInput) options: DeleteOptionsInput, @Ctx() { providers, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
28758
|
+
const provider = GetReadWriteProvider(providers);
|
|
28759
|
+
const key = new CompositeKey([{FieldName: 'ID', Value: ID}]);
|
|
28760
|
+
return this.DeleteRecord('MJ: Brand Kit Assets', key, options, provider, userPayload, pubSub);
|
|
28761
|
+
}
|
|
28762
|
+
|
|
28763
|
+
}
|
|
28764
|
+
|
|
28765
|
+
//****************************************************************************
|
|
28766
|
+
// ENTITY CLASS for MJ: Brand Kits
|
|
28767
|
+
//****************************************************************************
|
|
28768
|
+
@ObjectType({ description: "A brand kit: colors, type, voice, generation policy, facts never to invent, and the files (logos, fonts, reference imagery, music) that generators, forms and applications use to stay on brand. CompanyID NULL makes the kit available to all companies." })
|
|
28769
|
+
export class MJBrandKit_ {
|
|
28770
|
+
@Field()
|
|
28771
|
+
@MaxLength(36)
|
|
28772
|
+
ID: string;
|
|
28773
|
+
|
|
28774
|
+
@Field({nullable: true, description: "Display name of the brand kit."})
|
|
28775
|
+
@MaxLength(255)
|
|
28776
|
+
Name?: string;
|
|
28777
|
+
|
|
28778
|
+
@Field({nullable: true, description: "What the kit is for and when to use it."})
|
|
28779
|
+
Description?: string;
|
|
28780
|
+
|
|
28781
|
+
@Field({nullable: true, description: "The company this kit belongs to. NULL means org-wide: available to all companies."})
|
|
28782
|
+
@MaxLength(36)
|
|
28783
|
+
CompanyID?: string;
|
|
28784
|
+
|
|
28785
|
+
@Field(() => Boolean, {nullable: true, description: "The kit used when a caller names none. At most one default per CompanyID scope (NULL is its own scope), enforced on save by the server entity."})
|
|
28786
|
+
IsDefault?: boolean;
|
|
28787
|
+
|
|
28788
|
+
@Field({nullable: true, description: "Active kits are offered to users and generators; Inactive kits are kept but hidden."})
|
|
28789
|
+
@MaxLength(20)
|
|
28790
|
+
Status?: string;
|
|
28791
|
+
|
|
28792
|
+
@Field({nullable: true, description: "JSON (IBrandStyle): palette, typography, imagery style, keep and avoid lists, and an optional Motion section."})
|
|
28793
|
+
Style?: string;
|
|
28794
|
+
|
|
28795
|
+
@Field({nullable: true, description: "JSON (IBrandVoice): text-to-speech provider, voice ID, settings and pronunciation notes."})
|
|
28796
|
+
Voice?: string;
|
|
28797
|
+
|
|
28798
|
+
@Field({nullable: true, description: "JSON (IBrandGenerationPolicy): whether generated images and video may be used, a style prompt, subjects to avoid, whether generated people are allowed (default: not allowed), and an optional per-run generation spend cap. NULL applies the defaults."})
|
|
28799
|
+
GenerationPolicy?: string;
|
|
28800
|
+
|
|
28801
|
+
@Field({nullable: true, description: "JSON array of strings: facts about the brand a model must never fabricate, for example product screens, logos, metrics or customer names."})
|
|
28802
|
+
NeverInvent?: string;
|
|
28803
|
+
|
|
28804
|
+
@Field()
|
|
28805
|
+
_mj__CreatedAt: Date;
|
|
28806
|
+
|
|
28807
|
+
@Field()
|
|
28808
|
+
_mj__UpdatedAt: Date;
|
|
28809
|
+
|
|
28810
|
+
@Field({nullable: true})
|
|
28811
|
+
@MaxLength(50)
|
|
28812
|
+
Company?: string;
|
|
28813
|
+
|
|
28814
|
+
@Field(() => [String], { nullable: true, description: `Field-level security: when non-null, the fields on this entity the calling user may read. Any other field arriving as null was withheld by the server rather than genuinely empty. Null for callers with no field restrictions.` })
|
|
28815
|
+
ReadableFields___?: string[];
|
|
28816
|
+
|
|
28817
|
+
}
|
|
28818
|
+
|
|
28819
|
+
//****************************************************************************
|
|
28820
|
+
// INPUT TYPE for MJ: Brand Kits
|
|
28821
|
+
//****************************************************************************
|
|
28822
|
+
@InputType()
|
|
28823
|
+
export class CreateMJBrandKitInput {
|
|
28824
|
+
@Field({ nullable: true })
|
|
28825
|
+
ID?: string;
|
|
28826
|
+
|
|
28827
|
+
@Field({ nullable: true })
|
|
28828
|
+
Name?: string;
|
|
28829
|
+
|
|
28830
|
+
@Field({ nullable: true })
|
|
28831
|
+
Description: string | null;
|
|
28832
|
+
|
|
28833
|
+
@Field({ nullable: true })
|
|
28834
|
+
CompanyID: string | null;
|
|
28835
|
+
|
|
28836
|
+
@Field(() => Boolean, { nullable: true })
|
|
28837
|
+
IsDefault?: boolean;
|
|
28838
|
+
|
|
28839
|
+
@Field({ nullable: true })
|
|
28840
|
+
Status?: string;
|
|
28841
|
+
|
|
28842
|
+
@Field({ nullable: true })
|
|
28843
|
+
Style: string | null;
|
|
28844
|
+
|
|
28845
|
+
@Field({ nullable: true })
|
|
28846
|
+
Voice: string | null;
|
|
28847
|
+
|
|
28848
|
+
@Field({ nullable: true })
|
|
28849
|
+
GenerationPolicy: string | null;
|
|
28850
|
+
|
|
28851
|
+
@Field({ nullable: true })
|
|
28852
|
+
NeverInvent: string | null;
|
|
28853
|
+
|
|
28854
|
+
@Field(() => RestoreContextInput, { nullable: true })
|
|
28855
|
+
RestoreContext___?: RestoreContextInput;
|
|
28856
|
+
}
|
|
28857
|
+
|
|
28858
|
+
|
|
28859
|
+
//****************************************************************************
|
|
28860
|
+
// INPUT TYPE for MJ: Brand Kits
|
|
28861
|
+
//****************************************************************************
|
|
28862
|
+
@InputType()
|
|
28863
|
+
export class UpdateMJBrandKitInput {
|
|
28864
|
+
@Field()
|
|
28865
|
+
ID: string;
|
|
28866
|
+
|
|
28867
|
+
@Field({ nullable: true })
|
|
28868
|
+
Name?: string;
|
|
28869
|
+
|
|
28870
|
+
@Field({ nullable: true })
|
|
28871
|
+
Description?: string | null;
|
|
28872
|
+
|
|
28873
|
+
@Field({ nullable: true })
|
|
28874
|
+
CompanyID?: string | null;
|
|
28875
|
+
|
|
28876
|
+
@Field(() => Boolean, { nullable: true })
|
|
28877
|
+
IsDefault?: boolean;
|
|
28878
|
+
|
|
28879
|
+
@Field({ nullable: true })
|
|
28880
|
+
Status?: string;
|
|
28881
|
+
|
|
28882
|
+
@Field({ nullable: true })
|
|
28883
|
+
Style?: string | null;
|
|
28884
|
+
|
|
28885
|
+
@Field({ nullable: true })
|
|
28886
|
+
Voice?: string | null;
|
|
28887
|
+
|
|
28888
|
+
@Field({ nullable: true })
|
|
28889
|
+
GenerationPolicy?: string | null;
|
|
28890
|
+
|
|
28891
|
+
@Field({ nullable: true })
|
|
28892
|
+
NeverInvent?: string | null;
|
|
28893
|
+
|
|
28894
|
+
@Field(() => [KeyValuePairInput], { nullable: true })
|
|
28895
|
+
OldValues___?: KeyValuePairInput[];
|
|
28896
|
+
|
|
28897
|
+
@Field(() => RestoreContextInput, { nullable: true })
|
|
28898
|
+
RestoreContext___?: RestoreContextInput;
|
|
28899
|
+
}
|
|
28900
|
+
|
|
28901
|
+
//****************************************************************************
|
|
28902
|
+
// RESOLVER for MJ: Brand Kits
|
|
28903
|
+
//****************************************************************************
|
|
28904
|
+
@ObjectType()
|
|
28905
|
+
export class RunMJBrandKitViewResult {
|
|
28906
|
+
@Field(() => [MJBrandKit_])
|
|
28907
|
+
Results: MJBrandKit_[];
|
|
28908
|
+
|
|
28909
|
+
@Field(() => String, {nullable: true})
|
|
28910
|
+
UserViewRunID?: string;
|
|
28911
|
+
|
|
28912
|
+
@Field(() => Int, {nullable: true})
|
|
28913
|
+
RowCount: number;
|
|
28914
|
+
|
|
28915
|
+
@Field(() => Int, {nullable: true})
|
|
28916
|
+
TotalRowCount: number;
|
|
28917
|
+
|
|
28918
|
+
@Field(() => Int, {nullable: true})
|
|
28919
|
+
ExecutionTime: number;
|
|
28920
|
+
|
|
28921
|
+
@Field({nullable: true})
|
|
28922
|
+
ErrorMessage?: string;
|
|
28923
|
+
|
|
28924
|
+
@Field(() => Boolean, {nullable: false})
|
|
28925
|
+
Success: boolean;
|
|
28926
|
+
}
|
|
28927
|
+
|
|
28928
|
+
@Resolver(MJBrandKit_)
|
|
28929
|
+
export class MJBrandKitResolver extends ResolverBase {
|
|
28930
|
+
@Query(() => RunMJBrandKitViewResult)
|
|
28931
|
+
async RunMJBrandKitViewByID(@Arg('input', () => RunViewByIDInput) input: RunViewByIDInput, @Ctx() { providers, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
28932
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
28933
|
+
return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
|
|
28934
|
+
}
|
|
28935
|
+
|
|
28936
|
+
@Query(() => RunMJBrandKitViewResult)
|
|
28937
|
+
async RunMJBrandKitViewByName(@Arg('input', () => RunViewByNameInput) input: RunViewByNameInput, @Ctx() { providers, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
28938
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
28939
|
+
return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
|
|
28940
|
+
}
|
|
28941
|
+
|
|
28942
|
+
@Query(() => RunMJBrandKitViewResult)
|
|
28943
|
+
async RunMJBrandKitDynamicView(@Arg('input', () => RunDynamicViewInput) input: RunDynamicViewInput, @Ctx() { providers, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
28944
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
28945
|
+
input.EntityName = 'MJ: Brand Kits';
|
|
28946
|
+
return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
|
|
28947
|
+
}
|
|
28948
|
+
@Query(() => MJBrandKit_, { nullable: true })
|
|
28949
|
+
async MJBrandKit(@Arg('ID', () => String) ID: string, @Ctx() { userPayload, providers }: AppContext, @PubSub() pubSub: PubSubEngine): Promise<MJBrandKit_ | null> {
|
|
28950
|
+
this.CheckUserReadPermissions('MJ: Brand Kits', userPayload);
|
|
28951
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
28952
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwBrandKits')} WHERE ${provider.QuoteIdentifier('ID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Brand Kits', userPayload, EntityPermissionType.Read, 'AND');
|
|
28953
|
+
const rows = await provider.ExecuteSQL(sSQL, [ID], undefined, this.GetUserFromPayload(userPayload));
|
|
28954
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Brand Kits', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
28955
|
+
return result;
|
|
28956
|
+
}
|
|
28957
|
+
|
|
28958
|
+
@Mutation(() => MJBrandKit_)
|
|
28959
|
+
async CreateMJBrandKit(
|
|
28960
|
+
@Arg('input', () => CreateMJBrandKitInput) input: CreateMJBrandKitInput,
|
|
28961
|
+
@Ctx() { providers, userPayload }: AppContext,
|
|
28962
|
+
@PubSub() pubSub: PubSubEngine
|
|
28963
|
+
) {
|
|
28964
|
+
const provider = GetReadWriteProvider(providers);
|
|
28965
|
+
return this.CreateRecord('MJ: Brand Kits', input, provider, userPayload, pubSub)
|
|
28966
|
+
}
|
|
28967
|
+
|
|
28968
|
+
@Mutation(() => MJBrandKit_)
|
|
28969
|
+
async UpdateMJBrandKit(
|
|
28970
|
+
@Arg('input', () => UpdateMJBrandKitInput) input: UpdateMJBrandKitInput,
|
|
28971
|
+
@Ctx() { providers, userPayload }: AppContext,
|
|
28972
|
+
@PubSub() pubSub: PubSubEngine
|
|
28973
|
+
) {
|
|
28974
|
+
const provider = GetReadWriteProvider(providers);
|
|
28975
|
+
return this.UpdateRecord('MJ: Brand Kits', input, provider, userPayload, pubSub);
|
|
28976
|
+
}
|
|
28977
|
+
|
|
28978
|
+
@Mutation(() => MJBrandKit_)
|
|
28979
|
+
async DeleteMJBrandKit(@Arg('ID', () => String) ID: string, @Arg('options___', () => DeleteOptionsInput) options: DeleteOptionsInput, @Ctx() { providers, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
28980
|
+
const provider = GetReadWriteProvider(providers);
|
|
28981
|
+
const key = new CompositeKey([{FieldName: 'ID', Value: ID}]);
|
|
28982
|
+
return this.DeleteRecord('MJ: Brand Kits', key, options, provider, userPayload, pubSub);
|
|
28983
|
+
}
|
|
28984
|
+
|
|
28985
|
+
}
|
|
28986
|
+
|
|
28504
28987
|
//****************************************************************************
|
|
28505
28988
|
// ENTITY CLASS for MJ: Calendar Event Links
|
|
28506
28989
|
//****************************************************************************
|
|
@@ -47938,6 +48421,9 @@ export class MJEntity_ {
|
|
|
47938
48421
|
@Field(() => Boolean, {nullable: true, description: "When 1, field-level (column-level) security is enforced for this entity and every enforcement point consults EntityFieldPermission rows. When 0 (the default), field-level security is off entirely and any existing permission rows are retained but inactive. Enabling snapshots the entity's current entity-level permissions into per-field rows, so turning it on changes no behavior until an administrator tightens a field; disabling preserves the rows so re-enabling does not lose the configuration."})
|
|
47939
48422
|
EnableFieldLevelSecurity?: boolean;
|
|
47940
48423
|
|
|
48424
|
+
@Field(() => Boolean, {nullable: true, description: "When 1 (the default), CodeGen may auto-update this entity's DisplayName — currently via the optional EntityDisplayNames advanced-generation feature, which asks an LLM to expand opaque table-derived names (ACCT_STAT_CD) into readable ones (Account Status Codes). When 0, the DisplayName is locked and CodeGen will not change it, whatever any generator proposes. Mirrors EntityField.AutoUpdateDisplayName. Note this flag governs only AUTOMATIC updates: a user editing the DisplayName directly is unaffected either way."})
|
|
48425
|
+
AutoUpdateDisplayName?: boolean;
|
|
48426
|
+
|
|
47941
48427
|
@Field({nullable: true, description: "Schema-based programmatic code name derived from the entity Name. Uses GetClassNameSchemaPrefix(SchemaName) as the prefix, then strips EntityNamePrefix from the Name and removes spaces. For \"__mj\" schema with entity \"MJ: AI Models\", this produces \"MJAIModels\". For entities in other schemas, the sanitized schema name is prepended. Used in GraphQL type generation and internal code references."})
|
|
47942
48428
|
CodeName?: string;
|
|
47943
48429
|
|
|
@@ -48183,6 +48669,9 @@ export class CreateMJEntityInput {
|
|
|
48183
48669
|
@Field(() => Boolean, { nullable: true })
|
|
48184
48670
|
EnableFieldLevelSecurity?: boolean;
|
|
48185
48671
|
|
|
48672
|
+
@Field(() => Boolean, { nullable: true })
|
|
48673
|
+
AutoUpdateDisplayName?: boolean;
|
|
48674
|
+
|
|
48186
48675
|
@Field(() => RestoreContextInput, { nullable: true })
|
|
48187
48676
|
RestoreContext___?: RestoreContextInput;
|
|
48188
48677
|
}
|
|
@@ -48403,6 +48892,9 @@ export class UpdateMJEntityInput {
|
|
|
48403
48892
|
@Field(() => Boolean, { nullable: true })
|
|
48404
48893
|
EnableFieldLevelSecurity?: boolean;
|
|
48405
48894
|
|
|
48895
|
+
@Field(() => Boolean, { nullable: true })
|
|
48896
|
+
AutoUpdateDisplayName?: boolean;
|
|
48897
|
+
|
|
48406
48898
|
@Field(() => [KeyValuePairInput], { nullable: true })
|
|
48407
48899
|
OldValues___?: KeyValuePairInput[];
|
|
48408
48900
|
|
|
@@ -73644,6 +74136,17 @@ export class MJQuery_ {
|
|
|
73644
74136
|
@MaxLength(100)
|
|
73645
74137
|
ApprovedFingerprint?: string;
|
|
73646
74138
|
|
|
74139
|
+
@Field({nullable: true, description: "Hash of the platform SQL and dialect the query's child rows (fields, parameters, entities, dependencies) were last extracted from. NULL means the query has never been extracted by the current extraction service. A value that differs from the current SQL's hash means the rows may be stale."})
|
|
74140
|
+
@MaxLength(64)
|
|
74141
|
+
ExtractedSQLHash?: string;
|
|
74142
|
+
|
|
74143
|
+
@Field({nullable: true, description: "Outcome of the last extraction run. \"OK\" means all facts were extracted. \"Warning\" means extraction succeeded with findings (see ExtractionMessage). \"Error\" means the database server could not describe the query, so existing rows were kept. \"Skipped\" means the facts could not be checked, for example for queries on an external data source. NULL means never extracted."})
|
|
74144
|
+
@MaxLength(20)
|
|
74145
|
+
ExtractionStatus?: string;
|
|
74146
|
+
|
|
74147
|
+
@Field({nullable: true, description: "Diagnostics from the last extraction run: validation findings, authored parameters no longer present in the SQL, describe errors, and output drift on queries with role-based permissions."})
|
|
74148
|
+
ExtractionMessage?: string;
|
|
74149
|
+
|
|
73647
74150
|
@Field({nullable: true})
|
|
73648
74151
|
@MaxLength(50)
|
|
73649
74152
|
Category?: string;
|
|
@@ -73764,6 +74267,15 @@ export class CreateMJQueryInput {
|
|
|
73764
74267
|
@Field({ nullable: true })
|
|
73765
74268
|
ApprovedFingerprint: string | null;
|
|
73766
74269
|
|
|
74270
|
+
@Field({ nullable: true })
|
|
74271
|
+
ExtractedSQLHash: string | null;
|
|
74272
|
+
|
|
74273
|
+
@Field({ nullable: true })
|
|
74274
|
+
ExtractionStatus: string | null;
|
|
74275
|
+
|
|
74276
|
+
@Field({ nullable: true })
|
|
74277
|
+
ExtractionMessage: string | null;
|
|
74278
|
+
|
|
73767
74279
|
@Field(() => RestoreContextInput, { nullable: true })
|
|
73768
74280
|
RestoreContext___?: RestoreContextInput;
|
|
73769
74281
|
}
|
|
@@ -73864,6 +74376,15 @@ export class UpdateMJQueryInput {
|
|
|
73864
74376
|
@Field({ nullable: true })
|
|
73865
74377
|
ApprovedFingerprint?: string | null;
|
|
73866
74378
|
|
|
74379
|
+
@Field({ nullable: true })
|
|
74380
|
+
ExtractedSQLHash?: string | null;
|
|
74381
|
+
|
|
74382
|
+
@Field({ nullable: true })
|
|
74383
|
+
ExtractionStatus?: string | null;
|
|
74384
|
+
|
|
74385
|
+
@Field({ nullable: true })
|
|
74386
|
+
ExtractionMessage?: string | null;
|
|
74387
|
+
|
|
73867
74388
|
@Field(() => [KeyValuePairInput], { nullable: true })
|
|
73868
74389
|
OldValues___?: KeyValuePairInput[];
|
|
73869
74390
|
|
|
@@ -74414,7 +74935,7 @@ export class MJQueryEntity_ {
|
|
|
74414
74935
|
@Field()
|
|
74415
74936
|
_mj__UpdatedAt: Date;
|
|
74416
74937
|
|
|
74417
|
-
@Field({nullable: true, description: "
|
|
74938
|
+
@Field({nullable: true, description: "Who wrote this entity link. \"Parser\" means MJ's structural analysis of the query found a read of the entity's base view, base table or an alternate base view. \"Manual\" means a user authored the link. \"AI\" marks links written by the earlier LLM-based extraction."})
|
|
74418
74939
|
@MaxLength(50)
|
|
74419
74940
|
DetectionMethod?: string;
|
|
74420
74941
|
|
|
@@ -74643,13 +75164,24 @@ export class MJQueryField_ {
|
|
|
74643
75164
|
@Field()
|
|
74644
75165
|
_mj__UpdatedAt: Date;
|
|
74645
75166
|
|
|
74646
|
-
@Field({nullable: true, description: "
|
|
75167
|
+
@Field({nullable: true, description: "Who wrote this field row. \"Database\" means its facts (name, order, types, nullability, source) came from the database server describing the query output. \"Parser\" means they came from MJ's analysis of the query template and structure. \"Manual\" means a user authored the row. \"AI\" means an LLM wrote its description; an LLM never sets types or sources."})
|
|
74647
75168
|
@MaxLength(50)
|
|
74648
75169
|
DetectionMethod?: string;
|
|
74649
75170
|
|
|
74650
75171
|
@Field(() => Float, {nullable: true, description: "Confidence score (0.00-1.00) indicating how certain the AI was about this field detection. Only populated when DetectionMethod=\"AI\". Factors include: clarity of the SELECT clause, complexity of any expressions or transformations, confidence in type inference, and ability to trace back to source entity/column. Complex computed fields or ambiguous aliases result in lower scores. This helps identify fields that may need manual verification."})
|
|
74651
75172
|
AutoDetectConfidenceScore?: number;
|
|
74652
75173
|
|
|
75174
|
+
@Field({nullable: true, description: "The MJ Entity Field this output column passes through unchanged, resolved by extraction from the source the database server reports for the column (schema, view, column) mapped through entity metadata. NULL when the column is computed, comes from an object that backs no entity, or the link was cleared because the entity field was deleted."})
|
|
75175
|
+
@MaxLength(36)
|
|
75176
|
+
SourceEntityFieldID?: string;
|
|
75177
|
+
|
|
75178
|
+
@Field(() => Boolean, {nullable: true, description: "Whether the database server reports that this output column can be NULL. NULL means unknown, for example on platforms whose describe result does not report nullability."})
|
|
75179
|
+
IsNullable?: boolean;
|
|
75180
|
+
|
|
75181
|
+
@Field({nullable: true, description: "The source of this output column as the database server reported it (schema.object.column), recorded when the source is a table or view that backs no MJ entity. NULL when the column maps to an entity field (see SourceEntityFieldID) or has no direct source."})
|
|
75182
|
+
@MaxLength(500)
|
|
75183
|
+
SourceObjectName?: string;
|
|
75184
|
+
|
|
74653
75185
|
@Field({nullable: true})
|
|
74654
75186
|
@MaxLength(255)
|
|
74655
75187
|
Query?: string;
|
|
@@ -74658,6 +75190,10 @@ export class MJQueryField_ {
|
|
|
74658
75190
|
@MaxLength(255)
|
|
74659
75191
|
SourceEntity?: string;
|
|
74660
75192
|
|
|
75193
|
+
@Field({nullable: true})
|
|
75194
|
+
@MaxLength(255)
|
|
75195
|
+
SourceEntityField?: string;
|
|
75196
|
+
|
|
74661
75197
|
@Field(() => [String], { nullable: true, description: `Field-level security: when non-null, the fields on this entity the calling user may read. Any other field arriving as null was withheld by the server rather than genuinely empty. Null for callers with no field restrictions.` })
|
|
74662
75198
|
ReadableFields___?: string[];
|
|
74663
75199
|
|
|
@@ -74713,6 +75249,15 @@ export class CreateMJQueryFieldInput {
|
|
|
74713
75249
|
@Field(() => Float, { nullable: true })
|
|
74714
75250
|
AutoDetectConfidenceScore: number | null;
|
|
74715
75251
|
|
|
75252
|
+
@Field({ nullable: true })
|
|
75253
|
+
SourceEntityFieldID: string | null;
|
|
75254
|
+
|
|
75255
|
+
@Field(() => Boolean, { nullable: true })
|
|
75256
|
+
IsNullable: boolean | null;
|
|
75257
|
+
|
|
75258
|
+
@Field({ nullable: true })
|
|
75259
|
+
SourceObjectName: string | null;
|
|
75260
|
+
|
|
74716
75261
|
@Field(() => RestoreContextInput, { nullable: true })
|
|
74717
75262
|
RestoreContext___?: RestoreContextInput;
|
|
74718
75263
|
}
|
|
@@ -74768,6 +75313,15 @@ export class UpdateMJQueryFieldInput {
|
|
|
74768
75313
|
@Field(() => Float, { nullable: true })
|
|
74769
75314
|
AutoDetectConfidenceScore?: number | null;
|
|
74770
75315
|
|
|
75316
|
+
@Field({ nullable: true })
|
|
75317
|
+
SourceEntityFieldID?: string | null;
|
|
75318
|
+
|
|
75319
|
+
@Field(() => Boolean, { nullable: true })
|
|
75320
|
+
IsNullable?: boolean | null;
|
|
75321
|
+
|
|
75322
|
+
@Field({ nullable: true })
|
|
75323
|
+
SourceObjectName?: string | null;
|
|
75324
|
+
|
|
74771
75325
|
@Field(() => [KeyValuePairInput], { nullable: true })
|
|
74772
75326
|
OldValues___?: KeyValuePairInput[];
|
|
74773
75327
|
|
|
@@ -74897,7 +75451,7 @@ export class MJQueryParameter_ {
|
|
|
74897
75451
|
@Field({nullable: true, description: "JSON array of Nunjucks filter definitions that validate and transform the parameter value. Each filter is an object with \"name\" and optional \"args\" properties. Filters are applied in order and can include: validation (required, email, min, max), transformation (trim, upper, lower), SQL safety (sqlsafe, sqljoin), and type conversion (number, date). Example: [{\"name\":\"required\"},{\"name\":\"email\"},{\"name\":\"sqlsafe\"}]. The filter chain ensures type safety and prevents SQL injection."})
|
|
74898
75452
|
ValidationFilters?: string;
|
|
74899
75453
|
|
|
74900
|
-
@Field({nullable: true, description: "
|
|
75454
|
+
@Field({nullable: true, description: "Who wrote this parameter row. \"Parser\" means MJ's analysis of the query template found the parameter (its name, inferred type, whether it is required and its default). \"Manual\" means a user authored the row; its type, required flag, default, sample, validation filters and description are never overwritten by extraction, and it is kept (and flagged on the query) when the SQL no longer uses it. \"AI\" marks rows written by the earlier LLM-based extraction."})
|
|
74901
75455
|
@MaxLength(50)
|
|
74902
75456
|
DetectionMethod?: string;
|
|
74903
75457
|
|
|
@@ -101062,6 +101616,267 @@ export class MJVersionLabelResolver extends ResolverBase {
|
|
|
101062
101616
|
|
|
101063
101617
|
}
|
|
101064
101618
|
|
|
101619
|
+
//****************************************************************************
|
|
101620
|
+
// ENTITY CLASS for MJ: Video Archetypes
|
|
101621
|
+
//****************************************************************************
|
|
101622
|
+
@ObjectType({ description: "A Video Studio film template: duration bounds, default formats, a beat template, pacing, and guidance for the Director and Storyboard. CompanyID NULL marks a shipped or org-wide archetype." })
|
|
101623
|
+
export class MJVideoArchetype_ {
|
|
101624
|
+
@Field()
|
|
101625
|
+
@MaxLength(36)
|
|
101626
|
+
ID: string;
|
|
101627
|
+
|
|
101628
|
+
@Field({nullable: true, description: "Archetype name, unique within its CompanyID scope."})
|
|
101629
|
+
@MaxLength(100)
|
|
101630
|
+
Name?: string;
|
|
101631
|
+
|
|
101632
|
+
@Field({nullable: true, description: "What the archetype is for; the Director reads it to pick one."})
|
|
101633
|
+
Description?: string;
|
|
101634
|
+
|
|
101635
|
+
@Field({nullable: true, description: "The company that owns this archetype. NULL means shipped or org-wide: available to all companies."})
|
|
101636
|
+
@MaxLength(36)
|
|
101637
|
+
CompanyID?: string;
|
|
101638
|
+
|
|
101639
|
+
@Field({nullable: true, description: "Explainer, Product, DataStory, Social, Tutorial, Announcement or Briefing."})
|
|
101640
|
+
@MaxLength(30)
|
|
101641
|
+
Category?: string;
|
|
101642
|
+
|
|
101643
|
+
@Field({nullable: true, description: "Active archetypes are offered; Inactive are hidden."})
|
|
101644
|
+
@MaxLength(20)
|
|
101645
|
+
Status?: string;
|
|
101646
|
+
|
|
101647
|
+
@Field(() => Int, {nullable: true, description: "Default film length, in seconds."})
|
|
101648
|
+
DefaultDurationSeconds?: number;
|
|
101649
|
+
|
|
101650
|
+
@Field(() => Int, {nullable: true, description: "Shortest film length, in seconds."})
|
|
101651
|
+
MinDurationSeconds?: number;
|
|
101652
|
+
|
|
101653
|
+
@Field(() => Int, {nullable: true, description: "Longest film length, in seconds."})
|
|
101654
|
+
MaxDurationSeconds?: number;
|
|
101655
|
+
|
|
101656
|
+
@Field({nullable: true, description: "Comma-separated default formats: any of 16:9, 9:16, 1:1."})
|
|
101657
|
+
@MaxLength(100)
|
|
101658
|
+
DefaultFormats?: string;
|
|
101659
|
+
|
|
101660
|
+
@Field({nullable: true, description: "JSON array (VideoBeatTemplate[]): the beat slots a film of this archetype follows, with per-beat duration bounds."})
|
|
101661
|
+
BeatTemplate?: string;
|
|
101662
|
+
|
|
101663
|
+
@Field({nullable: true, description: "JSON (VideoPacing): cut cadence and hold rules."})
|
|
101664
|
+
Pacing?: string;
|
|
101665
|
+
|
|
101666
|
+
@Field({nullable: true, description: "Markdown guidance for the Director and Storyboard."})
|
|
101667
|
+
Guidance?: string;
|
|
101668
|
+
|
|
101669
|
+
@Field({nullable: true, description: "Default approval mode: Autonomous, ApproveStoryboard or ApproveStoryboardAndRoughCut."})
|
|
101670
|
+
@MaxLength(30)
|
|
101671
|
+
DefaultInteractionMode?: string;
|
|
101672
|
+
|
|
101673
|
+
@Field()
|
|
101674
|
+
_mj__CreatedAt: Date;
|
|
101675
|
+
|
|
101676
|
+
@Field()
|
|
101677
|
+
_mj__UpdatedAt: Date;
|
|
101678
|
+
|
|
101679
|
+
@Field({nullable: true})
|
|
101680
|
+
@MaxLength(50)
|
|
101681
|
+
Company?: string;
|
|
101682
|
+
|
|
101683
|
+
@Field(() => [String], { nullable: true, description: `Field-level security: when non-null, the fields on this entity the calling user may read. Any other field arriving as null was withheld by the server rather than genuinely empty. Null for callers with no field restrictions.` })
|
|
101684
|
+
ReadableFields___?: string[];
|
|
101685
|
+
|
|
101686
|
+
}
|
|
101687
|
+
|
|
101688
|
+
//****************************************************************************
|
|
101689
|
+
// INPUT TYPE for MJ: Video Archetypes
|
|
101690
|
+
//****************************************************************************
|
|
101691
|
+
@InputType()
|
|
101692
|
+
export class CreateMJVideoArchetypeInput {
|
|
101693
|
+
@Field({ nullable: true })
|
|
101694
|
+
ID?: string;
|
|
101695
|
+
|
|
101696
|
+
@Field({ nullable: true })
|
|
101697
|
+
Name?: string;
|
|
101698
|
+
|
|
101699
|
+
@Field({ nullable: true })
|
|
101700
|
+
Description?: string;
|
|
101701
|
+
|
|
101702
|
+
@Field({ nullable: true })
|
|
101703
|
+
CompanyID: string | null;
|
|
101704
|
+
|
|
101705
|
+
@Field({ nullable: true })
|
|
101706
|
+
Category?: string;
|
|
101707
|
+
|
|
101708
|
+
@Field({ nullable: true })
|
|
101709
|
+
Status?: string;
|
|
101710
|
+
|
|
101711
|
+
@Field(() => Int, { nullable: true })
|
|
101712
|
+
DefaultDurationSeconds?: number;
|
|
101713
|
+
|
|
101714
|
+
@Field(() => Int, { nullable: true })
|
|
101715
|
+
MinDurationSeconds?: number;
|
|
101716
|
+
|
|
101717
|
+
@Field(() => Int, { nullable: true })
|
|
101718
|
+
MaxDurationSeconds?: number;
|
|
101719
|
+
|
|
101720
|
+
@Field({ nullable: true })
|
|
101721
|
+
DefaultFormats?: string;
|
|
101722
|
+
|
|
101723
|
+
@Field({ nullable: true })
|
|
101724
|
+
BeatTemplate?: string;
|
|
101725
|
+
|
|
101726
|
+
@Field({ nullable: true })
|
|
101727
|
+
Pacing: string | null;
|
|
101728
|
+
|
|
101729
|
+
@Field({ nullable: true })
|
|
101730
|
+
Guidance: string | null;
|
|
101731
|
+
|
|
101732
|
+
@Field({ nullable: true })
|
|
101733
|
+
DefaultInteractionMode?: string;
|
|
101734
|
+
|
|
101735
|
+
@Field(() => RestoreContextInput, { nullable: true })
|
|
101736
|
+
RestoreContext___?: RestoreContextInput;
|
|
101737
|
+
}
|
|
101738
|
+
|
|
101739
|
+
|
|
101740
|
+
//****************************************************************************
|
|
101741
|
+
// INPUT TYPE for MJ: Video Archetypes
|
|
101742
|
+
//****************************************************************************
|
|
101743
|
+
@InputType()
|
|
101744
|
+
export class UpdateMJVideoArchetypeInput {
|
|
101745
|
+
@Field()
|
|
101746
|
+
ID: string;
|
|
101747
|
+
|
|
101748
|
+
@Field({ nullable: true })
|
|
101749
|
+
Name?: string;
|
|
101750
|
+
|
|
101751
|
+
@Field({ nullable: true })
|
|
101752
|
+
Description?: string;
|
|
101753
|
+
|
|
101754
|
+
@Field({ nullable: true })
|
|
101755
|
+
CompanyID?: string | null;
|
|
101756
|
+
|
|
101757
|
+
@Field({ nullable: true })
|
|
101758
|
+
Category?: string;
|
|
101759
|
+
|
|
101760
|
+
@Field({ nullable: true })
|
|
101761
|
+
Status?: string;
|
|
101762
|
+
|
|
101763
|
+
@Field(() => Int, { nullable: true })
|
|
101764
|
+
DefaultDurationSeconds?: number;
|
|
101765
|
+
|
|
101766
|
+
@Field(() => Int, { nullable: true })
|
|
101767
|
+
MinDurationSeconds?: number;
|
|
101768
|
+
|
|
101769
|
+
@Field(() => Int, { nullable: true })
|
|
101770
|
+
MaxDurationSeconds?: number;
|
|
101771
|
+
|
|
101772
|
+
@Field({ nullable: true })
|
|
101773
|
+
DefaultFormats?: string;
|
|
101774
|
+
|
|
101775
|
+
@Field({ nullable: true })
|
|
101776
|
+
BeatTemplate?: string;
|
|
101777
|
+
|
|
101778
|
+
@Field({ nullable: true })
|
|
101779
|
+
Pacing?: string | null;
|
|
101780
|
+
|
|
101781
|
+
@Field({ nullable: true })
|
|
101782
|
+
Guidance?: string | null;
|
|
101783
|
+
|
|
101784
|
+
@Field({ nullable: true })
|
|
101785
|
+
DefaultInteractionMode?: string;
|
|
101786
|
+
|
|
101787
|
+
@Field(() => [KeyValuePairInput], { nullable: true })
|
|
101788
|
+
OldValues___?: KeyValuePairInput[];
|
|
101789
|
+
|
|
101790
|
+
@Field(() => RestoreContextInput, { nullable: true })
|
|
101791
|
+
RestoreContext___?: RestoreContextInput;
|
|
101792
|
+
}
|
|
101793
|
+
|
|
101794
|
+
//****************************************************************************
|
|
101795
|
+
// RESOLVER for MJ: Video Archetypes
|
|
101796
|
+
//****************************************************************************
|
|
101797
|
+
@ObjectType()
|
|
101798
|
+
export class RunMJVideoArchetypeViewResult {
|
|
101799
|
+
@Field(() => [MJVideoArchetype_])
|
|
101800
|
+
Results: MJVideoArchetype_[];
|
|
101801
|
+
|
|
101802
|
+
@Field(() => String, {nullable: true})
|
|
101803
|
+
UserViewRunID?: string;
|
|
101804
|
+
|
|
101805
|
+
@Field(() => Int, {nullable: true})
|
|
101806
|
+
RowCount: number;
|
|
101807
|
+
|
|
101808
|
+
@Field(() => Int, {nullable: true})
|
|
101809
|
+
TotalRowCount: number;
|
|
101810
|
+
|
|
101811
|
+
@Field(() => Int, {nullable: true})
|
|
101812
|
+
ExecutionTime: number;
|
|
101813
|
+
|
|
101814
|
+
@Field({nullable: true})
|
|
101815
|
+
ErrorMessage?: string;
|
|
101816
|
+
|
|
101817
|
+
@Field(() => Boolean, {nullable: false})
|
|
101818
|
+
Success: boolean;
|
|
101819
|
+
}
|
|
101820
|
+
|
|
101821
|
+
@Resolver(MJVideoArchetype_)
|
|
101822
|
+
export class MJVideoArchetypeResolver extends ResolverBase {
|
|
101823
|
+
@Query(() => RunMJVideoArchetypeViewResult)
|
|
101824
|
+
async RunMJVideoArchetypeViewByID(@Arg('input', () => RunViewByIDInput) input: RunViewByIDInput, @Ctx() { providers, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
101825
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
101826
|
+
return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
|
|
101827
|
+
}
|
|
101828
|
+
|
|
101829
|
+
@Query(() => RunMJVideoArchetypeViewResult)
|
|
101830
|
+
async RunMJVideoArchetypeViewByName(@Arg('input', () => RunViewByNameInput) input: RunViewByNameInput, @Ctx() { providers, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
101831
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
101832
|
+
return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
|
|
101833
|
+
}
|
|
101834
|
+
|
|
101835
|
+
@Query(() => RunMJVideoArchetypeViewResult)
|
|
101836
|
+
async RunMJVideoArchetypeDynamicView(@Arg('input', () => RunDynamicViewInput) input: RunDynamicViewInput, @Ctx() { providers, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
101837
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
101838
|
+
input.EntityName = 'MJ: Video Archetypes';
|
|
101839
|
+
return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
|
|
101840
|
+
}
|
|
101841
|
+
@Query(() => MJVideoArchetype_, { nullable: true })
|
|
101842
|
+
async MJVideoArchetype(@Arg('ID', () => String) ID: string, @Ctx() { userPayload, providers }: AppContext, @PubSub() pubSub: PubSubEngine): Promise<MJVideoArchetype_ | null> {
|
|
101843
|
+
this.CheckUserReadPermissions('MJ: Video Archetypes', userPayload);
|
|
101844
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
101845
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwVideoArchetypes')} WHERE ${provider.QuoteIdentifier('ID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Video Archetypes', userPayload, EntityPermissionType.Read, 'AND');
|
|
101846
|
+
const rows = await provider.ExecuteSQL(sSQL, [ID], undefined, this.GetUserFromPayload(userPayload));
|
|
101847
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Video Archetypes', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
101848
|
+
return result;
|
|
101849
|
+
}
|
|
101850
|
+
|
|
101851
|
+
@Mutation(() => MJVideoArchetype_)
|
|
101852
|
+
async CreateMJVideoArchetype(
|
|
101853
|
+
@Arg('input', () => CreateMJVideoArchetypeInput) input: CreateMJVideoArchetypeInput,
|
|
101854
|
+
@Ctx() { providers, userPayload }: AppContext,
|
|
101855
|
+
@PubSub() pubSub: PubSubEngine
|
|
101856
|
+
) {
|
|
101857
|
+
const provider = GetReadWriteProvider(providers);
|
|
101858
|
+
return this.CreateRecord('MJ: Video Archetypes', input, provider, userPayload, pubSub)
|
|
101859
|
+
}
|
|
101860
|
+
|
|
101861
|
+
@Mutation(() => MJVideoArchetype_)
|
|
101862
|
+
async UpdateMJVideoArchetype(
|
|
101863
|
+
@Arg('input', () => UpdateMJVideoArchetypeInput) input: UpdateMJVideoArchetypeInput,
|
|
101864
|
+
@Ctx() { providers, userPayload }: AppContext,
|
|
101865
|
+
@PubSub() pubSub: PubSubEngine
|
|
101866
|
+
) {
|
|
101867
|
+
const provider = GetReadWriteProvider(providers);
|
|
101868
|
+
return this.UpdateRecord('MJ: Video Archetypes', input, provider, userPayload, pubSub);
|
|
101869
|
+
}
|
|
101870
|
+
|
|
101871
|
+
@Mutation(() => MJVideoArchetype_)
|
|
101872
|
+
async DeleteMJVideoArchetype(@Arg('ID', () => String) ID: string, @Arg('options___', () => DeleteOptionsInput) options: DeleteOptionsInput, @Ctx() { providers, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
101873
|
+
const provider = GetReadWriteProvider(providers);
|
|
101874
|
+
const key = new CompositeKey([{FieldName: 'ID', Value: ID}]);
|
|
101875
|
+
return this.DeleteRecord('MJ: Video Archetypes', key, options, provider, userPayload, pubSub);
|
|
101876
|
+
}
|
|
101877
|
+
|
|
101878
|
+
}
|
|
101879
|
+
|
|
101065
101880
|
//****************************************************************************
|
|
101066
101881
|
// ENTITY CLASS for MJ: View Types
|
|
101067
101882
|
//****************************************************************************
|