@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
|
@@ -6704,6 +6704,16 @@ __decorate([
|
|
|
6704
6704
|
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." }),
|
|
6705
6705
|
__metadata("design:type", Number)
|
|
6706
6706
|
], MJAIAgentRelationship_.prototype, "MaxMessages", void 0);
|
|
6707
|
+
__decorate([
|
|
6708
|
+
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." }),
|
|
6709
|
+
MaxLength(30),
|
|
6710
|
+
__metadata("design:type", String)
|
|
6711
|
+
], MJAIAgentRelationship_.prototype, "ChatHandlingOption", void 0);
|
|
6712
|
+
__decorate([
|
|
6713
|
+
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." }),
|
|
6714
|
+
MaxLength(36),
|
|
6715
|
+
__metadata("design:type", String)
|
|
6716
|
+
], MJAIAgentRelationship_.prototype, "ConfigurationPresetID", void 0);
|
|
6707
6717
|
__decorate([
|
|
6708
6718
|
Field({ nullable: true }),
|
|
6709
6719
|
MaxLength(255),
|
|
@@ -6714,6 +6724,11 @@ __decorate([
|
|
|
6714
6724
|
MaxLength(255),
|
|
6715
6725
|
__metadata("design:type", String)
|
|
6716
6726
|
], MJAIAgentRelationship_.prototype, "SubAgent", void 0);
|
|
6727
|
+
__decorate([
|
|
6728
|
+
Field({ nullable: true }),
|
|
6729
|
+
MaxLength(100),
|
|
6730
|
+
__metadata("design:type", String)
|
|
6731
|
+
], MJAIAgentRelationship_.prototype, "ConfigurationPreset", void 0);
|
|
6717
6732
|
__decorate([
|
|
6718
6733
|
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.` }),
|
|
6719
6734
|
__metadata("design:type", Array)
|
|
@@ -6763,6 +6778,14 @@ __decorate([
|
|
|
6763
6778
|
Field(() => Int, { nullable: true }),
|
|
6764
6779
|
__metadata("design:type", Number)
|
|
6765
6780
|
], CreateMJAIAgentRelationshipInput.prototype, "MaxMessages", void 0);
|
|
6781
|
+
__decorate([
|
|
6782
|
+
Field({ nullable: true }),
|
|
6783
|
+
__metadata("design:type", String)
|
|
6784
|
+
], CreateMJAIAgentRelationshipInput.prototype, "ChatHandlingOption", void 0);
|
|
6785
|
+
__decorate([
|
|
6786
|
+
Field({ nullable: true }),
|
|
6787
|
+
__metadata("design:type", String)
|
|
6788
|
+
], CreateMJAIAgentRelationshipInput.prototype, "ConfigurationPresetID", void 0);
|
|
6766
6789
|
__decorate([
|
|
6767
6790
|
Field(() => RestoreContextInput, { nullable: true }),
|
|
6768
6791
|
__metadata("design:type", RestoreContextInput)
|
|
@@ -6812,6 +6835,14 @@ __decorate([
|
|
|
6812
6835
|
Field(() => Int, { nullable: true }),
|
|
6813
6836
|
__metadata("design:type", Number)
|
|
6814
6837
|
], UpdateMJAIAgentRelationshipInput.prototype, "MaxMessages", void 0);
|
|
6838
|
+
__decorate([
|
|
6839
|
+
Field({ nullable: true }),
|
|
6840
|
+
__metadata("design:type", String)
|
|
6841
|
+
], UpdateMJAIAgentRelationshipInput.prototype, "ChatHandlingOption", void 0);
|
|
6842
|
+
__decorate([
|
|
6843
|
+
Field({ nullable: true }),
|
|
6844
|
+
__metadata("design:type", String)
|
|
6845
|
+
], UpdateMJAIAgentRelationshipInput.prototype, "ConfigurationPresetID", void 0);
|
|
6815
6846
|
__decorate([
|
|
6816
6847
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
6817
6848
|
__metadata("design:type", Array)
|
|
@@ -8522,7 +8553,7 @@ __decorate([
|
|
|
8522
8553
|
__metadata("design:type", Number)
|
|
8523
8554
|
], MJAIAgentRunStep_.prototype, "StepNumber", void 0);
|
|
8524
8555
|
__decorate([
|
|
8525
|
-
Field({ nullable: true, description: "Type of execution step: Prompt,
|
|
8556
|
+
Field({ nullable: true, description: "Type of execution step: Actions, Chat, Compaction, Decision, ForEach, Handoff, Plan, Prompt, Skill, Sub-Agent, TaskGraph, Tool, Validation, While." }),
|
|
8526
8557
|
MaxLength(50),
|
|
8527
8558
|
__metadata("design:type", String)
|
|
8528
8559
|
], MJAIAgentRunStep_.prototype, "StepType", void 0);
|
|
@@ -11743,7 +11774,7 @@ __decorate([
|
|
|
11743
11774
|
__metadata("design:type", Date)
|
|
11744
11775
|
], MJAIAgentSession_.prototype, "ClosedAt", void 0);
|
|
11745
11776
|
__decorate([
|
|
11746
|
-
Field({ nullable: true, description: "Why the session was closed: Explicit (user hang-up / deliberate API close), Janitor (orphan
|
|
11777
|
+
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." }),
|
|
11747
11778
|
MaxLength(20),
|
|
11748
11779
|
__metadata("design:type", String)
|
|
11749
11780
|
], MJAIAgentSession_.prototype, "CloseReason", void 0);
|
|
@@ -14267,7 +14298,7 @@ __decorate([
|
|
|
14267
14298
|
__metadata("design:type", Number)
|
|
14268
14299
|
], MJAIAgent_.prototype, "DefaultPromptEffortLevel", void 0);
|
|
14269
14300
|
__decorate([
|
|
14270
|
-
Field({ nullable: true, description: "Controls how Chat next steps are handled.
|
|
14301
|
+
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." }),
|
|
14271
14302
|
MaxLength(30),
|
|
14272
14303
|
__metadata("design:type", String)
|
|
14273
14304
|
], MJAIAgent_.prototype, "ChatHandlingOption", void 0);
|
|
@@ -14466,6 +14497,10 @@ __decorate([
|
|
|
14466
14497
|
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." }),
|
|
14467
14498
|
__metadata("design:type", Boolean)
|
|
14468
14499
|
], MJAIAgent_.prototype, "DeclareActionsAsNativeTools", void 0);
|
|
14500
|
+
__decorate([
|
|
14501
|
+
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)." }),
|
|
14502
|
+
__metadata("design:type", Number)
|
|
14503
|
+
], MJAIAgent_.prototype, "MaxSubAgentConsultRounds", void 0);
|
|
14469
14504
|
__decorate([
|
|
14470
14505
|
Field({ nullable: true }),
|
|
14471
14506
|
MaxLength(255),
|
|
@@ -14876,6 +14911,10 @@ __decorate([
|
|
|
14876
14911
|
Field(() => Boolean, { nullable: true }),
|
|
14877
14912
|
__metadata("design:type", Boolean)
|
|
14878
14913
|
], CreateMJAIAgentInput.prototype, "DeclareActionsAsNativeTools", void 0);
|
|
14914
|
+
__decorate([
|
|
14915
|
+
Field(() => Int, { nullable: true }),
|
|
14916
|
+
__metadata("design:type", Number)
|
|
14917
|
+
], CreateMJAIAgentInput.prototype, "MaxSubAgentConsultRounds", void 0);
|
|
14879
14918
|
__decorate([
|
|
14880
14919
|
Field(() => RestoreContextInput, { nullable: true }),
|
|
14881
14920
|
__metadata("design:type", RestoreContextInput)
|
|
@@ -15205,6 +15244,10 @@ __decorate([
|
|
|
15205
15244
|
Field(() => Boolean, { nullable: true }),
|
|
15206
15245
|
__metadata("design:type", Boolean)
|
|
15207
15246
|
], UpdateMJAIAgentInput.prototype, "DeclareActionsAsNativeTools", void 0);
|
|
15247
|
+
__decorate([
|
|
15248
|
+
Field(() => Int, { nullable: true }),
|
|
15249
|
+
__metadata("design:type", Number)
|
|
15250
|
+
], UpdateMJAIAgentInput.prototype, "MaxSubAgentConsultRounds", void 0);
|
|
15208
15251
|
__decorate([
|
|
15209
15252
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
15210
15253
|
__metadata("design:type", Array)
|
|
@@ -40722,6 +40765,655 @@ MJAuthorizationResolver = __decorate([
|
|
|
40722
40765
|
], MJAuthorizationResolver);
|
|
40723
40766
|
export { MJAuthorizationResolver };
|
|
40724
40767
|
//****************************************************************************
|
|
40768
|
+
// ENTITY CLASS for MJ: Brand Kit Assets
|
|
40769
|
+
//****************************************************************************
|
|
40770
|
+
let MJBrandKitAsset_ = class MJBrandKitAsset_ {
|
|
40771
|
+
};
|
|
40772
|
+
__decorate([
|
|
40773
|
+
Field(),
|
|
40774
|
+
MaxLength(36),
|
|
40775
|
+
__metadata("design:type", String)
|
|
40776
|
+
], MJBrandKitAsset_.prototype, "ID", void 0);
|
|
40777
|
+
__decorate([
|
|
40778
|
+
Field({ nullable: true, description: "The brand kit this file belongs to." }),
|
|
40779
|
+
MaxLength(36),
|
|
40780
|
+
__metadata("design:type", String)
|
|
40781
|
+
], MJBrandKitAsset_.prototype, "BrandKitID", void 0);
|
|
40782
|
+
__decorate([
|
|
40783
|
+
Field({ nullable: true, description: "Display name of the asset." }),
|
|
40784
|
+
MaxLength(255),
|
|
40785
|
+
__metadata("design:type", String)
|
|
40786
|
+
], MJBrandKitAsset_.prototype, "Name", void 0);
|
|
40787
|
+
__decorate([
|
|
40788
|
+
Field({ nullable: true, description: "Logo, LogoMark, Font, Image, Screenshot, Video, Music, SoundEffect or Other." }),
|
|
40789
|
+
MaxLength(30),
|
|
40790
|
+
__metadata("design:type", String)
|
|
40791
|
+
], MJBrandKitAsset_.prototype, "AssetType", void 0);
|
|
40792
|
+
__decorate([
|
|
40793
|
+
Field({ nullable: true, description: "The stored file (MJ: Files)." }),
|
|
40794
|
+
MaxLength(36),
|
|
40795
|
+
__metadata("design:type", String)
|
|
40796
|
+
], MJBrandKitAsset_.prototype, "FileID", void 0);
|
|
40797
|
+
__decorate([
|
|
40798
|
+
Field({ nullable: true, description: "When and how to use the asset." }),
|
|
40799
|
+
__metadata("design:type", String)
|
|
40800
|
+
], MJBrandKitAsset_.prototype, "Usage", void 0);
|
|
40801
|
+
__decorate([
|
|
40802
|
+
Field(() => Boolean, { nullable: true, description: "The main asset of its type, for example the primary logo." }),
|
|
40803
|
+
__metadata("design:type", Boolean)
|
|
40804
|
+
], MJBrandKitAsset_.prototype, "IsPrimary", void 0);
|
|
40805
|
+
__decorate([
|
|
40806
|
+
Field(() => Int, { nullable: true, description: "Order within the kit; lower first." }),
|
|
40807
|
+
__metadata("design:type", Number)
|
|
40808
|
+
], MJBrandKitAsset_.prototype, "Sequence", void 0);
|
|
40809
|
+
__decorate([
|
|
40810
|
+
Field({ nullable: true, description: "Who may use the file, and where (fonts, music, stock imagery)." }),
|
|
40811
|
+
MaxLength(500),
|
|
40812
|
+
__metadata("design:type", String)
|
|
40813
|
+
], MJBrandKitAsset_.prototype, "LicenseNotes", void 0);
|
|
40814
|
+
__decorate([
|
|
40815
|
+
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." }),
|
|
40816
|
+
__metadata("design:type", Boolean)
|
|
40817
|
+
], MJBrandKitAsset_.prototype, "IsGenerationReference", void 0);
|
|
40818
|
+
__decorate([
|
|
40819
|
+
Field(),
|
|
40820
|
+
__metadata("design:type", Date)
|
|
40821
|
+
], MJBrandKitAsset_.prototype, "_mj__CreatedAt", void 0);
|
|
40822
|
+
__decorate([
|
|
40823
|
+
Field(),
|
|
40824
|
+
__metadata("design:type", Date)
|
|
40825
|
+
], MJBrandKitAsset_.prototype, "_mj__UpdatedAt", void 0);
|
|
40826
|
+
__decorate([
|
|
40827
|
+
Field({ nullable: true }),
|
|
40828
|
+
MaxLength(255),
|
|
40829
|
+
__metadata("design:type", String)
|
|
40830
|
+
], MJBrandKitAsset_.prototype, "BrandKit", void 0);
|
|
40831
|
+
__decorate([
|
|
40832
|
+
Field({ nullable: true }),
|
|
40833
|
+
MaxLength(500),
|
|
40834
|
+
__metadata("design:type", String)
|
|
40835
|
+
], MJBrandKitAsset_.prototype, "File", void 0);
|
|
40836
|
+
__decorate([
|
|
40837
|
+
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.` }),
|
|
40838
|
+
__metadata("design:type", Array)
|
|
40839
|
+
], MJBrandKitAsset_.prototype, "ReadableFields___", void 0);
|
|
40840
|
+
MJBrandKitAsset_ = __decorate([
|
|
40841
|
+
ObjectType({ description: "A file in a brand kit, with usage guidance, license notes, and whether generation models may receive it as a reference." })
|
|
40842
|
+
], MJBrandKitAsset_);
|
|
40843
|
+
export { MJBrandKitAsset_ };
|
|
40844
|
+
//****************************************************************************
|
|
40845
|
+
// INPUT TYPE for MJ: Brand Kit Assets
|
|
40846
|
+
//****************************************************************************
|
|
40847
|
+
let CreateMJBrandKitAssetInput = class CreateMJBrandKitAssetInput {
|
|
40848
|
+
};
|
|
40849
|
+
__decorate([
|
|
40850
|
+
Field({ nullable: true }),
|
|
40851
|
+
__metadata("design:type", String)
|
|
40852
|
+
], CreateMJBrandKitAssetInput.prototype, "ID", void 0);
|
|
40853
|
+
__decorate([
|
|
40854
|
+
Field({ nullable: true }),
|
|
40855
|
+
__metadata("design:type", String)
|
|
40856
|
+
], CreateMJBrandKitAssetInput.prototype, "BrandKitID", void 0);
|
|
40857
|
+
__decorate([
|
|
40858
|
+
Field({ nullable: true }),
|
|
40859
|
+
__metadata("design:type", String)
|
|
40860
|
+
], CreateMJBrandKitAssetInput.prototype, "Name", void 0);
|
|
40861
|
+
__decorate([
|
|
40862
|
+
Field({ nullable: true }),
|
|
40863
|
+
__metadata("design:type", String)
|
|
40864
|
+
], CreateMJBrandKitAssetInput.prototype, "AssetType", void 0);
|
|
40865
|
+
__decorate([
|
|
40866
|
+
Field({ nullable: true }),
|
|
40867
|
+
__metadata("design:type", String)
|
|
40868
|
+
], CreateMJBrandKitAssetInput.prototype, "FileID", void 0);
|
|
40869
|
+
__decorate([
|
|
40870
|
+
Field({ nullable: true }),
|
|
40871
|
+
__metadata("design:type", String)
|
|
40872
|
+
], CreateMJBrandKitAssetInput.prototype, "Usage", void 0);
|
|
40873
|
+
__decorate([
|
|
40874
|
+
Field(() => Boolean, { nullable: true }),
|
|
40875
|
+
__metadata("design:type", Boolean)
|
|
40876
|
+
], CreateMJBrandKitAssetInput.prototype, "IsPrimary", void 0);
|
|
40877
|
+
__decorate([
|
|
40878
|
+
Field(() => Int, { nullable: true }),
|
|
40879
|
+
__metadata("design:type", Number)
|
|
40880
|
+
], CreateMJBrandKitAssetInput.prototype, "Sequence", void 0);
|
|
40881
|
+
__decorate([
|
|
40882
|
+
Field({ nullable: true }),
|
|
40883
|
+
__metadata("design:type", String)
|
|
40884
|
+
], CreateMJBrandKitAssetInput.prototype, "LicenseNotes", void 0);
|
|
40885
|
+
__decorate([
|
|
40886
|
+
Field(() => Boolean, { nullable: true }),
|
|
40887
|
+
__metadata("design:type", Boolean)
|
|
40888
|
+
], CreateMJBrandKitAssetInput.prototype, "IsGenerationReference", void 0);
|
|
40889
|
+
__decorate([
|
|
40890
|
+
Field(() => RestoreContextInput, { nullable: true }),
|
|
40891
|
+
__metadata("design:type", RestoreContextInput)
|
|
40892
|
+
], CreateMJBrandKitAssetInput.prototype, "RestoreContext___", void 0);
|
|
40893
|
+
CreateMJBrandKitAssetInput = __decorate([
|
|
40894
|
+
InputType()
|
|
40895
|
+
], CreateMJBrandKitAssetInput);
|
|
40896
|
+
export { CreateMJBrandKitAssetInput };
|
|
40897
|
+
//****************************************************************************
|
|
40898
|
+
// INPUT TYPE for MJ: Brand Kit Assets
|
|
40899
|
+
//****************************************************************************
|
|
40900
|
+
let UpdateMJBrandKitAssetInput = class UpdateMJBrandKitAssetInput {
|
|
40901
|
+
};
|
|
40902
|
+
__decorate([
|
|
40903
|
+
Field(),
|
|
40904
|
+
__metadata("design:type", String)
|
|
40905
|
+
], UpdateMJBrandKitAssetInput.prototype, "ID", void 0);
|
|
40906
|
+
__decorate([
|
|
40907
|
+
Field({ nullable: true }),
|
|
40908
|
+
__metadata("design:type", String)
|
|
40909
|
+
], UpdateMJBrandKitAssetInput.prototype, "BrandKitID", void 0);
|
|
40910
|
+
__decorate([
|
|
40911
|
+
Field({ nullable: true }),
|
|
40912
|
+
__metadata("design:type", String)
|
|
40913
|
+
], UpdateMJBrandKitAssetInput.prototype, "Name", void 0);
|
|
40914
|
+
__decorate([
|
|
40915
|
+
Field({ nullable: true }),
|
|
40916
|
+
__metadata("design:type", String)
|
|
40917
|
+
], UpdateMJBrandKitAssetInput.prototype, "AssetType", void 0);
|
|
40918
|
+
__decorate([
|
|
40919
|
+
Field({ nullable: true }),
|
|
40920
|
+
__metadata("design:type", String)
|
|
40921
|
+
], UpdateMJBrandKitAssetInput.prototype, "FileID", void 0);
|
|
40922
|
+
__decorate([
|
|
40923
|
+
Field({ nullable: true }),
|
|
40924
|
+
__metadata("design:type", String)
|
|
40925
|
+
], UpdateMJBrandKitAssetInput.prototype, "Usage", void 0);
|
|
40926
|
+
__decorate([
|
|
40927
|
+
Field(() => Boolean, { nullable: true }),
|
|
40928
|
+
__metadata("design:type", Boolean)
|
|
40929
|
+
], UpdateMJBrandKitAssetInput.prototype, "IsPrimary", void 0);
|
|
40930
|
+
__decorate([
|
|
40931
|
+
Field(() => Int, { nullable: true }),
|
|
40932
|
+
__metadata("design:type", Number)
|
|
40933
|
+
], UpdateMJBrandKitAssetInput.prototype, "Sequence", void 0);
|
|
40934
|
+
__decorate([
|
|
40935
|
+
Field({ nullable: true }),
|
|
40936
|
+
__metadata("design:type", String)
|
|
40937
|
+
], UpdateMJBrandKitAssetInput.prototype, "LicenseNotes", void 0);
|
|
40938
|
+
__decorate([
|
|
40939
|
+
Field(() => Boolean, { nullable: true }),
|
|
40940
|
+
__metadata("design:type", Boolean)
|
|
40941
|
+
], UpdateMJBrandKitAssetInput.prototype, "IsGenerationReference", void 0);
|
|
40942
|
+
__decorate([
|
|
40943
|
+
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
40944
|
+
__metadata("design:type", Array)
|
|
40945
|
+
], UpdateMJBrandKitAssetInput.prototype, "OldValues___", void 0);
|
|
40946
|
+
__decorate([
|
|
40947
|
+
Field(() => RestoreContextInput, { nullable: true }),
|
|
40948
|
+
__metadata("design:type", RestoreContextInput)
|
|
40949
|
+
], UpdateMJBrandKitAssetInput.prototype, "RestoreContext___", void 0);
|
|
40950
|
+
UpdateMJBrandKitAssetInput = __decorate([
|
|
40951
|
+
InputType()
|
|
40952
|
+
], UpdateMJBrandKitAssetInput);
|
|
40953
|
+
export { UpdateMJBrandKitAssetInput };
|
|
40954
|
+
//****************************************************************************
|
|
40955
|
+
// RESOLVER for MJ: Brand Kit Assets
|
|
40956
|
+
//****************************************************************************
|
|
40957
|
+
let RunMJBrandKitAssetViewResult = class RunMJBrandKitAssetViewResult {
|
|
40958
|
+
};
|
|
40959
|
+
__decorate([
|
|
40960
|
+
Field(() => [MJBrandKitAsset_]),
|
|
40961
|
+
__metadata("design:type", Array)
|
|
40962
|
+
], RunMJBrandKitAssetViewResult.prototype, "Results", void 0);
|
|
40963
|
+
__decorate([
|
|
40964
|
+
Field(() => String, { nullable: true }),
|
|
40965
|
+
__metadata("design:type", String)
|
|
40966
|
+
], RunMJBrandKitAssetViewResult.prototype, "UserViewRunID", void 0);
|
|
40967
|
+
__decorate([
|
|
40968
|
+
Field(() => Int, { nullable: true }),
|
|
40969
|
+
__metadata("design:type", Number)
|
|
40970
|
+
], RunMJBrandKitAssetViewResult.prototype, "RowCount", void 0);
|
|
40971
|
+
__decorate([
|
|
40972
|
+
Field(() => Int, { nullable: true }),
|
|
40973
|
+
__metadata("design:type", Number)
|
|
40974
|
+
], RunMJBrandKitAssetViewResult.prototype, "TotalRowCount", void 0);
|
|
40975
|
+
__decorate([
|
|
40976
|
+
Field(() => Int, { nullable: true }),
|
|
40977
|
+
__metadata("design:type", Number)
|
|
40978
|
+
], RunMJBrandKitAssetViewResult.prototype, "ExecutionTime", void 0);
|
|
40979
|
+
__decorate([
|
|
40980
|
+
Field({ nullable: true }),
|
|
40981
|
+
__metadata("design:type", String)
|
|
40982
|
+
], RunMJBrandKitAssetViewResult.prototype, "ErrorMessage", void 0);
|
|
40983
|
+
__decorate([
|
|
40984
|
+
Field(() => Boolean, { nullable: false }),
|
|
40985
|
+
__metadata("design:type", Boolean)
|
|
40986
|
+
], RunMJBrandKitAssetViewResult.prototype, "Success", void 0);
|
|
40987
|
+
RunMJBrandKitAssetViewResult = __decorate([
|
|
40988
|
+
ObjectType()
|
|
40989
|
+
], RunMJBrandKitAssetViewResult);
|
|
40990
|
+
export { RunMJBrandKitAssetViewResult };
|
|
40991
|
+
let MJBrandKitAssetResolver = class MJBrandKitAssetResolver extends ResolverBase {
|
|
40992
|
+
async RunMJBrandKitAssetViewByID(input, { providers, userPayload }, pubSub) {
|
|
40993
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
40994
|
+
return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
|
|
40995
|
+
}
|
|
40996
|
+
async RunMJBrandKitAssetViewByName(input, { providers, userPayload }, pubSub) {
|
|
40997
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
40998
|
+
return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
|
|
40999
|
+
}
|
|
41000
|
+
async RunMJBrandKitAssetDynamicView(input, { providers, userPayload }, pubSub) {
|
|
41001
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
41002
|
+
input.EntityName = 'MJ: Brand Kit Assets';
|
|
41003
|
+
return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
|
|
41004
|
+
}
|
|
41005
|
+
async MJBrandKitAsset(ID, { userPayload, providers }, pubSub) {
|
|
41006
|
+
this.CheckUserReadPermissions('MJ: Brand Kit Assets', userPayload);
|
|
41007
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
41008
|
+
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');
|
|
41009
|
+
const rows = await provider.ExecuteSQL(sSQL, [ID], undefined, this.GetUserFromPayload(userPayload));
|
|
41010
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Brand Kit Assets', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
41011
|
+
return result;
|
|
41012
|
+
}
|
|
41013
|
+
async CreateMJBrandKitAsset(input, { providers, userPayload }, pubSub) {
|
|
41014
|
+
const provider = GetReadWriteProvider(providers);
|
|
41015
|
+
return this.CreateRecord('MJ: Brand Kit Assets', input, provider, userPayload, pubSub);
|
|
41016
|
+
}
|
|
41017
|
+
async UpdateMJBrandKitAsset(input, { providers, userPayload }, pubSub) {
|
|
41018
|
+
const provider = GetReadWriteProvider(providers);
|
|
41019
|
+
return this.UpdateRecord('MJ: Brand Kit Assets', input, provider, userPayload, pubSub);
|
|
41020
|
+
}
|
|
41021
|
+
async DeleteMJBrandKitAsset(ID, options, { providers, userPayload }, pubSub) {
|
|
41022
|
+
const provider = GetReadWriteProvider(providers);
|
|
41023
|
+
const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
|
|
41024
|
+
return this.DeleteRecord('MJ: Brand Kit Assets', key, options, provider, userPayload, pubSub);
|
|
41025
|
+
}
|
|
41026
|
+
};
|
|
41027
|
+
__decorate([
|
|
41028
|
+
Query(() => RunMJBrandKitAssetViewResult),
|
|
41029
|
+
__param(0, Arg('input', () => RunViewByIDInput)),
|
|
41030
|
+
__param(1, Ctx()),
|
|
41031
|
+
__param(2, PubSub()),
|
|
41032
|
+
__metadata("design:type", Function),
|
|
41033
|
+
__metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
|
|
41034
|
+
__metadata("design:returntype", Promise)
|
|
41035
|
+
], MJBrandKitAssetResolver.prototype, "RunMJBrandKitAssetViewByID", null);
|
|
41036
|
+
__decorate([
|
|
41037
|
+
Query(() => RunMJBrandKitAssetViewResult),
|
|
41038
|
+
__param(0, Arg('input', () => RunViewByNameInput)),
|
|
41039
|
+
__param(1, Ctx()),
|
|
41040
|
+
__param(2, PubSub()),
|
|
41041
|
+
__metadata("design:type", Function),
|
|
41042
|
+
__metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
|
|
41043
|
+
__metadata("design:returntype", Promise)
|
|
41044
|
+
], MJBrandKitAssetResolver.prototype, "RunMJBrandKitAssetViewByName", null);
|
|
41045
|
+
__decorate([
|
|
41046
|
+
Query(() => RunMJBrandKitAssetViewResult),
|
|
41047
|
+
__param(0, Arg('input', () => RunDynamicViewInput)),
|
|
41048
|
+
__param(1, Ctx()),
|
|
41049
|
+
__param(2, PubSub()),
|
|
41050
|
+
__metadata("design:type", Function),
|
|
41051
|
+
__metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
|
|
41052
|
+
__metadata("design:returntype", Promise)
|
|
41053
|
+
], MJBrandKitAssetResolver.prototype, "RunMJBrandKitAssetDynamicView", null);
|
|
41054
|
+
__decorate([
|
|
41055
|
+
Query(() => MJBrandKitAsset_, { nullable: true }),
|
|
41056
|
+
__param(0, Arg('ID', () => String)),
|
|
41057
|
+
__param(1, Ctx()),
|
|
41058
|
+
__param(2, PubSub()),
|
|
41059
|
+
__metadata("design:type", Function),
|
|
41060
|
+
__metadata("design:paramtypes", [String, Object, PubSubEngine]),
|
|
41061
|
+
__metadata("design:returntype", Promise)
|
|
41062
|
+
], MJBrandKitAssetResolver.prototype, "MJBrandKitAsset", null);
|
|
41063
|
+
__decorate([
|
|
41064
|
+
Mutation(() => MJBrandKitAsset_),
|
|
41065
|
+
__param(0, Arg('input', () => CreateMJBrandKitAssetInput)),
|
|
41066
|
+
__param(1, Ctx()),
|
|
41067
|
+
__param(2, PubSub()),
|
|
41068
|
+
__metadata("design:type", Function),
|
|
41069
|
+
__metadata("design:paramtypes", [CreateMJBrandKitAssetInput, Object, PubSubEngine]),
|
|
41070
|
+
__metadata("design:returntype", Promise)
|
|
41071
|
+
], MJBrandKitAssetResolver.prototype, "CreateMJBrandKitAsset", null);
|
|
41072
|
+
__decorate([
|
|
41073
|
+
Mutation(() => MJBrandKitAsset_),
|
|
41074
|
+
__param(0, Arg('input', () => UpdateMJBrandKitAssetInput)),
|
|
41075
|
+
__param(1, Ctx()),
|
|
41076
|
+
__param(2, PubSub()),
|
|
41077
|
+
__metadata("design:type", Function),
|
|
41078
|
+
__metadata("design:paramtypes", [UpdateMJBrandKitAssetInput, Object, PubSubEngine]),
|
|
41079
|
+
__metadata("design:returntype", Promise)
|
|
41080
|
+
], MJBrandKitAssetResolver.prototype, "UpdateMJBrandKitAsset", null);
|
|
41081
|
+
__decorate([
|
|
41082
|
+
Mutation(() => MJBrandKitAsset_),
|
|
41083
|
+
__param(0, Arg('ID', () => String)),
|
|
41084
|
+
__param(1, Arg('options___', () => DeleteOptionsInput)),
|
|
41085
|
+
__param(2, Ctx()),
|
|
41086
|
+
__param(3, PubSub()),
|
|
41087
|
+
__metadata("design:type", Function),
|
|
41088
|
+
__metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
|
|
41089
|
+
__metadata("design:returntype", Promise)
|
|
41090
|
+
], MJBrandKitAssetResolver.prototype, "DeleteMJBrandKitAsset", null);
|
|
41091
|
+
MJBrandKitAssetResolver = __decorate([
|
|
41092
|
+
Resolver(MJBrandKitAsset_)
|
|
41093
|
+
], MJBrandKitAssetResolver);
|
|
41094
|
+
export { MJBrandKitAssetResolver };
|
|
41095
|
+
//****************************************************************************
|
|
41096
|
+
// ENTITY CLASS for MJ: Brand Kits
|
|
41097
|
+
//****************************************************************************
|
|
41098
|
+
let MJBrandKit_ = class MJBrandKit_ {
|
|
41099
|
+
};
|
|
41100
|
+
__decorate([
|
|
41101
|
+
Field(),
|
|
41102
|
+
MaxLength(36),
|
|
41103
|
+
__metadata("design:type", String)
|
|
41104
|
+
], MJBrandKit_.prototype, "ID", void 0);
|
|
41105
|
+
__decorate([
|
|
41106
|
+
Field({ nullable: true, description: "Display name of the brand kit." }),
|
|
41107
|
+
MaxLength(255),
|
|
41108
|
+
__metadata("design:type", String)
|
|
41109
|
+
], MJBrandKit_.prototype, "Name", void 0);
|
|
41110
|
+
__decorate([
|
|
41111
|
+
Field({ nullable: true, description: "What the kit is for and when to use it." }),
|
|
41112
|
+
__metadata("design:type", String)
|
|
41113
|
+
], MJBrandKit_.prototype, "Description", void 0);
|
|
41114
|
+
__decorate([
|
|
41115
|
+
Field({ nullable: true, description: "The company this kit belongs to. NULL means org-wide: available to all companies." }),
|
|
41116
|
+
MaxLength(36),
|
|
41117
|
+
__metadata("design:type", String)
|
|
41118
|
+
], MJBrandKit_.prototype, "CompanyID", void 0);
|
|
41119
|
+
__decorate([
|
|
41120
|
+
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." }),
|
|
41121
|
+
__metadata("design:type", Boolean)
|
|
41122
|
+
], MJBrandKit_.prototype, "IsDefault", void 0);
|
|
41123
|
+
__decorate([
|
|
41124
|
+
Field({ nullable: true, description: "Active kits are offered to users and generators; Inactive kits are kept but hidden." }),
|
|
41125
|
+
MaxLength(20),
|
|
41126
|
+
__metadata("design:type", String)
|
|
41127
|
+
], MJBrandKit_.prototype, "Status", void 0);
|
|
41128
|
+
__decorate([
|
|
41129
|
+
Field({ nullable: true, description: "JSON (IBrandStyle): palette, typography, imagery style, keep and avoid lists, and an optional Motion section." }),
|
|
41130
|
+
__metadata("design:type", String)
|
|
41131
|
+
], MJBrandKit_.prototype, "Style", void 0);
|
|
41132
|
+
__decorate([
|
|
41133
|
+
Field({ nullable: true, description: "JSON (IBrandVoice): text-to-speech provider, voice ID, settings and pronunciation notes." }),
|
|
41134
|
+
__metadata("design:type", String)
|
|
41135
|
+
], MJBrandKit_.prototype, "Voice", void 0);
|
|
41136
|
+
__decorate([
|
|
41137
|
+
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." }),
|
|
41138
|
+
__metadata("design:type", String)
|
|
41139
|
+
], MJBrandKit_.prototype, "GenerationPolicy", void 0);
|
|
41140
|
+
__decorate([
|
|
41141
|
+
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." }),
|
|
41142
|
+
__metadata("design:type", String)
|
|
41143
|
+
], MJBrandKit_.prototype, "NeverInvent", void 0);
|
|
41144
|
+
__decorate([
|
|
41145
|
+
Field(),
|
|
41146
|
+
__metadata("design:type", Date)
|
|
41147
|
+
], MJBrandKit_.prototype, "_mj__CreatedAt", void 0);
|
|
41148
|
+
__decorate([
|
|
41149
|
+
Field(),
|
|
41150
|
+
__metadata("design:type", Date)
|
|
41151
|
+
], MJBrandKit_.prototype, "_mj__UpdatedAt", void 0);
|
|
41152
|
+
__decorate([
|
|
41153
|
+
Field({ nullable: true }),
|
|
41154
|
+
MaxLength(50),
|
|
41155
|
+
__metadata("design:type", String)
|
|
41156
|
+
], MJBrandKit_.prototype, "Company", void 0);
|
|
41157
|
+
__decorate([
|
|
41158
|
+
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.` }),
|
|
41159
|
+
__metadata("design:type", Array)
|
|
41160
|
+
], MJBrandKit_.prototype, "ReadableFields___", void 0);
|
|
41161
|
+
MJBrandKit_ = __decorate([
|
|
41162
|
+
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." })
|
|
41163
|
+
], MJBrandKit_);
|
|
41164
|
+
export { MJBrandKit_ };
|
|
41165
|
+
//****************************************************************************
|
|
41166
|
+
// INPUT TYPE for MJ: Brand Kits
|
|
41167
|
+
//****************************************************************************
|
|
41168
|
+
let CreateMJBrandKitInput = class CreateMJBrandKitInput {
|
|
41169
|
+
};
|
|
41170
|
+
__decorate([
|
|
41171
|
+
Field({ nullable: true }),
|
|
41172
|
+
__metadata("design:type", String)
|
|
41173
|
+
], CreateMJBrandKitInput.prototype, "ID", void 0);
|
|
41174
|
+
__decorate([
|
|
41175
|
+
Field({ nullable: true }),
|
|
41176
|
+
__metadata("design:type", String)
|
|
41177
|
+
], CreateMJBrandKitInput.prototype, "Name", void 0);
|
|
41178
|
+
__decorate([
|
|
41179
|
+
Field({ nullable: true }),
|
|
41180
|
+
__metadata("design:type", String)
|
|
41181
|
+
], CreateMJBrandKitInput.prototype, "Description", void 0);
|
|
41182
|
+
__decorate([
|
|
41183
|
+
Field({ nullable: true }),
|
|
41184
|
+
__metadata("design:type", String)
|
|
41185
|
+
], CreateMJBrandKitInput.prototype, "CompanyID", void 0);
|
|
41186
|
+
__decorate([
|
|
41187
|
+
Field(() => Boolean, { nullable: true }),
|
|
41188
|
+
__metadata("design:type", Boolean)
|
|
41189
|
+
], CreateMJBrandKitInput.prototype, "IsDefault", void 0);
|
|
41190
|
+
__decorate([
|
|
41191
|
+
Field({ nullable: true }),
|
|
41192
|
+
__metadata("design:type", String)
|
|
41193
|
+
], CreateMJBrandKitInput.prototype, "Status", void 0);
|
|
41194
|
+
__decorate([
|
|
41195
|
+
Field({ nullable: true }),
|
|
41196
|
+
__metadata("design:type", String)
|
|
41197
|
+
], CreateMJBrandKitInput.prototype, "Style", void 0);
|
|
41198
|
+
__decorate([
|
|
41199
|
+
Field({ nullable: true }),
|
|
41200
|
+
__metadata("design:type", String)
|
|
41201
|
+
], CreateMJBrandKitInput.prototype, "Voice", void 0);
|
|
41202
|
+
__decorate([
|
|
41203
|
+
Field({ nullable: true }),
|
|
41204
|
+
__metadata("design:type", String)
|
|
41205
|
+
], CreateMJBrandKitInput.prototype, "GenerationPolicy", void 0);
|
|
41206
|
+
__decorate([
|
|
41207
|
+
Field({ nullable: true }),
|
|
41208
|
+
__metadata("design:type", String)
|
|
41209
|
+
], CreateMJBrandKitInput.prototype, "NeverInvent", void 0);
|
|
41210
|
+
__decorate([
|
|
41211
|
+
Field(() => RestoreContextInput, { nullable: true }),
|
|
41212
|
+
__metadata("design:type", RestoreContextInput)
|
|
41213
|
+
], CreateMJBrandKitInput.prototype, "RestoreContext___", void 0);
|
|
41214
|
+
CreateMJBrandKitInput = __decorate([
|
|
41215
|
+
InputType()
|
|
41216
|
+
], CreateMJBrandKitInput);
|
|
41217
|
+
export { CreateMJBrandKitInput };
|
|
41218
|
+
//****************************************************************************
|
|
41219
|
+
// INPUT TYPE for MJ: Brand Kits
|
|
41220
|
+
//****************************************************************************
|
|
41221
|
+
let UpdateMJBrandKitInput = class UpdateMJBrandKitInput {
|
|
41222
|
+
};
|
|
41223
|
+
__decorate([
|
|
41224
|
+
Field(),
|
|
41225
|
+
__metadata("design:type", String)
|
|
41226
|
+
], UpdateMJBrandKitInput.prototype, "ID", void 0);
|
|
41227
|
+
__decorate([
|
|
41228
|
+
Field({ nullable: true }),
|
|
41229
|
+
__metadata("design:type", String)
|
|
41230
|
+
], UpdateMJBrandKitInput.prototype, "Name", void 0);
|
|
41231
|
+
__decorate([
|
|
41232
|
+
Field({ nullable: true }),
|
|
41233
|
+
__metadata("design:type", String)
|
|
41234
|
+
], UpdateMJBrandKitInput.prototype, "Description", void 0);
|
|
41235
|
+
__decorate([
|
|
41236
|
+
Field({ nullable: true }),
|
|
41237
|
+
__metadata("design:type", String)
|
|
41238
|
+
], UpdateMJBrandKitInput.prototype, "CompanyID", void 0);
|
|
41239
|
+
__decorate([
|
|
41240
|
+
Field(() => Boolean, { nullable: true }),
|
|
41241
|
+
__metadata("design:type", Boolean)
|
|
41242
|
+
], UpdateMJBrandKitInput.prototype, "IsDefault", void 0);
|
|
41243
|
+
__decorate([
|
|
41244
|
+
Field({ nullable: true }),
|
|
41245
|
+
__metadata("design:type", String)
|
|
41246
|
+
], UpdateMJBrandKitInput.prototype, "Status", void 0);
|
|
41247
|
+
__decorate([
|
|
41248
|
+
Field({ nullable: true }),
|
|
41249
|
+
__metadata("design:type", String)
|
|
41250
|
+
], UpdateMJBrandKitInput.prototype, "Style", void 0);
|
|
41251
|
+
__decorate([
|
|
41252
|
+
Field({ nullable: true }),
|
|
41253
|
+
__metadata("design:type", String)
|
|
41254
|
+
], UpdateMJBrandKitInput.prototype, "Voice", void 0);
|
|
41255
|
+
__decorate([
|
|
41256
|
+
Field({ nullable: true }),
|
|
41257
|
+
__metadata("design:type", String)
|
|
41258
|
+
], UpdateMJBrandKitInput.prototype, "GenerationPolicy", void 0);
|
|
41259
|
+
__decorate([
|
|
41260
|
+
Field({ nullable: true }),
|
|
41261
|
+
__metadata("design:type", String)
|
|
41262
|
+
], UpdateMJBrandKitInput.prototype, "NeverInvent", void 0);
|
|
41263
|
+
__decorate([
|
|
41264
|
+
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
41265
|
+
__metadata("design:type", Array)
|
|
41266
|
+
], UpdateMJBrandKitInput.prototype, "OldValues___", void 0);
|
|
41267
|
+
__decorate([
|
|
41268
|
+
Field(() => RestoreContextInput, { nullable: true }),
|
|
41269
|
+
__metadata("design:type", RestoreContextInput)
|
|
41270
|
+
], UpdateMJBrandKitInput.prototype, "RestoreContext___", void 0);
|
|
41271
|
+
UpdateMJBrandKitInput = __decorate([
|
|
41272
|
+
InputType()
|
|
41273
|
+
], UpdateMJBrandKitInput);
|
|
41274
|
+
export { UpdateMJBrandKitInput };
|
|
41275
|
+
//****************************************************************************
|
|
41276
|
+
// RESOLVER for MJ: Brand Kits
|
|
41277
|
+
//****************************************************************************
|
|
41278
|
+
let RunMJBrandKitViewResult = class RunMJBrandKitViewResult {
|
|
41279
|
+
};
|
|
41280
|
+
__decorate([
|
|
41281
|
+
Field(() => [MJBrandKit_]),
|
|
41282
|
+
__metadata("design:type", Array)
|
|
41283
|
+
], RunMJBrandKitViewResult.prototype, "Results", void 0);
|
|
41284
|
+
__decorate([
|
|
41285
|
+
Field(() => String, { nullable: true }),
|
|
41286
|
+
__metadata("design:type", String)
|
|
41287
|
+
], RunMJBrandKitViewResult.prototype, "UserViewRunID", void 0);
|
|
41288
|
+
__decorate([
|
|
41289
|
+
Field(() => Int, { nullable: true }),
|
|
41290
|
+
__metadata("design:type", Number)
|
|
41291
|
+
], RunMJBrandKitViewResult.prototype, "RowCount", void 0);
|
|
41292
|
+
__decorate([
|
|
41293
|
+
Field(() => Int, { nullable: true }),
|
|
41294
|
+
__metadata("design:type", Number)
|
|
41295
|
+
], RunMJBrandKitViewResult.prototype, "TotalRowCount", void 0);
|
|
41296
|
+
__decorate([
|
|
41297
|
+
Field(() => Int, { nullable: true }),
|
|
41298
|
+
__metadata("design:type", Number)
|
|
41299
|
+
], RunMJBrandKitViewResult.prototype, "ExecutionTime", void 0);
|
|
41300
|
+
__decorate([
|
|
41301
|
+
Field({ nullable: true }),
|
|
41302
|
+
__metadata("design:type", String)
|
|
41303
|
+
], RunMJBrandKitViewResult.prototype, "ErrorMessage", void 0);
|
|
41304
|
+
__decorate([
|
|
41305
|
+
Field(() => Boolean, { nullable: false }),
|
|
41306
|
+
__metadata("design:type", Boolean)
|
|
41307
|
+
], RunMJBrandKitViewResult.prototype, "Success", void 0);
|
|
41308
|
+
RunMJBrandKitViewResult = __decorate([
|
|
41309
|
+
ObjectType()
|
|
41310
|
+
], RunMJBrandKitViewResult);
|
|
41311
|
+
export { RunMJBrandKitViewResult };
|
|
41312
|
+
let MJBrandKitResolver = class MJBrandKitResolver extends ResolverBase {
|
|
41313
|
+
async RunMJBrandKitViewByID(input, { providers, userPayload }, pubSub) {
|
|
41314
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
41315
|
+
return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
|
|
41316
|
+
}
|
|
41317
|
+
async RunMJBrandKitViewByName(input, { providers, userPayload }, pubSub) {
|
|
41318
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
41319
|
+
return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
|
|
41320
|
+
}
|
|
41321
|
+
async RunMJBrandKitDynamicView(input, { providers, userPayload }, pubSub) {
|
|
41322
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
41323
|
+
input.EntityName = 'MJ: Brand Kits';
|
|
41324
|
+
return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
|
|
41325
|
+
}
|
|
41326
|
+
async MJBrandKit(ID, { userPayload, providers }, pubSub) {
|
|
41327
|
+
this.CheckUserReadPermissions('MJ: Brand Kits', userPayload);
|
|
41328
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
41329
|
+
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');
|
|
41330
|
+
const rows = await provider.ExecuteSQL(sSQL, [ID], undefined, this.GetUserFromPayload(userPayload));
|
|
41331
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Brand Kits', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
41332
|
+
return result;
|
|
41333
|
+
}
|
|
41334
|
+
async CreateMJBrandKit(input, { providers, userPayload }, pubSub) {
|
|
41335
|
+
const provider = GetReadWriteProvider(providers);
|
|
41336
|
+
return this.CreateRecord('MJ: Brand Kits', input, provider, userPayload, pubSub);
|
|
41337
|
+
}
|
|
41338
|
+
async UpdateMJBrandKit(input, { providers, userPayload }, pubSub) {
|
|
41339
|
+
const provider = GetReadWriteProvider(providers);
|
|
41340
|
+
return this.UpdateRecord('MJ: Brand Kits', input, provider, userPayload, pubSub);
|
|
41341
|
+
}
|
|
41342
|
+
async DeleteMJBrandKit(ID, options, { providers, userPayload }, pubSub) {
|
|
41343
|
+
const provider = GetReadWriteProvider(providers);
|
|
41344
|
+
const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
|
|
41345
|
+
return this.DeleteRecord('MJ: Brand Kits', key, options, provider, userPayload, pubSub);
|
|
41346
|
+
}
|
|
41347
|
+
};
|
|
41348
|
+
__decorate([
|
|
41349
|
+
Query(() => RunMJBrandKitViewResult),
|
|
41350
|
+
__param(0, Arg('input', () => RunViewByIDInput)),
|
|
41351
|
+
__param(1, Ctx()),
|
|
41352
|
+
__param(2, PubSub()),
|
|
41353
|
+
__metadata("design:type", Function),
|
|
41354
|
+
__metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
|
|
41355
|
+
__metadata("design:returntype", Promise)
|
|
41356
|
+
], MJBrandKitResolver.prototype, "RunMJBrandKitViewByID", null);
|
|
41357
|
+
__decorate([
|
|
41358
|
+
Query(() => RunMJBrandKitViewResult),
|
|
41359
|
+
__param(0, Arg('input', () => RunViewByNameInput)),
|
|
41360
|
+
__param(1, Ctx()),
|
|
41361
|
+
__param(2, PubSub()),
|
|
41362
|
+
__metadata("design:type", Function),
|
|
41363
|
+
__metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
|
|
41364
|
+
__metadata("design:returntype", Promise)
|
|
41365
|
+
], MJBrandKitResolver.prototype, "RunMJBrandKitViewByName", null);
|
|
41366
|
+
__decorate([
|
|
41367
|
+
Query(() => RunMJBrandKitViewResult),
|
|
41368
|
+
__param(0, Arg('input', () => RunDynamicViewInput)),
|
|
41369
|
+
__param(1, Ctx()),
|
|
41370
|
+
__param(2, PubSub()),
|
|
41371
|
+
__metadata("design:type", Function),
|
|
41372
|
+
__metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
|
|
41373
|
+
__metadata("design:returntype", Promise)
|
|
41374
|
+
], MJBrandKitResolver.prototype, "RunMJBrandKitDynamicView", null);
|
|
41375
|
+
__decorate([
|
|
41376
|
+
Query(() => MJBrandKit_, { nullable: true }),
|
|
41377
|
+
__param(0, Arg('ID', () => String)),
|
|
41378
|
+
__param(1, Ctx()),
|
|
41379
|
+
__param(2, PubSub()),
|
|
41380
|
+
__metadata("design:type", Function),
|
|
41381
|
+
__metadata("design:paramtypes", [String, Object, PubSubEngine]),
|
|
41382
|
+
__metadata("design:returntype", Promise)
|
|
41383
|
+
], MJBrandKitResolver.prototype, "MJBrandKit", null);
|
|
41384
|
+
__decorate([
|
|
41385
|
+
Mutation(() => MJBrandKit_),
|
|
41386
|
+
__param(0, Arg('input', () => CreateMJBrandKitInput)),
|
|
41387
|
+
__param(1, Ctx()),
|
|
41388
|
+
__param(2, PubSub()),
|
|
41389
|
+
__metadata("design:type", Function),
|
|
41390
|
+
__metadata("design:paramtypes", [CreateMJBrandKitInput, Object, PubSubEngine]),
|
|
41391
|
+
__metadata("design:returntype", Promise)
|
|
41392
|
+
], MJBrandKitResolver.prototype, "CreateMJBrandKit", null);
|
|
41393
|
+
__decorate([
|
|
41394
|
+
Mutation(() => MJBrandKit_),
|
|
41395
|
+
__param(0, Arg('input', () => UpdateMJBrandKitInput)),
|
|
41396
|
+
__param(1, Ctx()),
|
|
41397
|
+
__param(2, PubSub()),
|
|
41398
|
+
__metadata("design:type", Function),
|
|
41399
|
+
__metadata("design:paramtypes", [UpdateMJBrandKitInput, Object, PubSubEngine]),
|
|
41400
|
+
__metadata("design:returntype", Promise)
|
|
41401
|
+
], MJBrandKitResolver.prototype, "UpdateMJBrandKit", null);
|
|
41402
|
+
__decorate([
|
|
41403
|
+
Mutation(() => MJBrandKit_),
|
|
41404
|
+
__param(0, Arg('ID', () => String)),
|
|
41405
|
+
__param(1, Arg('options___', () => DeleteOptionsInput)),
|
|
41406
|
+
__param(2, Ctx()),
|
|
41407
|
+
__param(3, PubSub()),
|
|
41408
|
+
__metadata("design:type", Function),
|
|
41409
|
+
__metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
|
|
41410
|
+
__metadata("design:returntype", Promise)
|
|
41411
|
+
], MJBrandKitResolver.prototype, "DeleteMJBrandKit", null);
|
|
41412
|
+
MJBrandKitResolver = __decorate([
|
|
41413
|
+
Resolver(MJBrandKit_)
|
|
41414
|
+
], MJBrandKitResolver);
|
|
41415
|
+
export { MJBrandKitResolver };
|
|
41416
|
+
//****************************************************************************
|
|
40725
41417
|
// ENTITY CLASS for MJ: Calendar Event Links
|
|
40726
41418
|
//****************************************************************************
|
|
40727
41419
|
let MJCalendarEventLink_ = class MJCalendarEventLink_ {
|
|
@@ -68556,6 +69248,10 @@ __decorate([
|
|
|
68556
69248
|
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." }),
|
|
68557
69249
|
__metadata("design:type", Boolean)
|
|
68558
69250
|
], MJEntity_.prototype, "EnableFieldLevelSecurity", void 0);
|
|
69251
|
+
__decorate([
|
|
69252
|
+
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." }),
|
|
69253
|
+
__metadata("design:type", Boolean)
|
|
69254
|
+
], MJEntity_.prototype, "AutoUpdateDisplayName", void 0);
|
|
68559
69255
|
__decorate([
|
|
68560
69256
|
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." }),
|
|
68561
69257
|
__metadata("design:type", String)
|
|
@@ -68881,6 +69577,10 @@ __decorate([
|
|
|
68881
69577
|
Field(() => Boolean, { nullable: true }),
|
|
68882
69578
|
__metadata("design:type", Boolean)
|
|
68883
69579
|
], CreateMJEntityInput.prototype, "EnableFieldLevelSecurity", void 0);
|
|
69580
|
+
__decorate([
|
|
69581
|
+
Field(() => Boolean, { nullable: true }),
|
|
69582
|
+
__metadata("design:type", Boolean)
|
|
69583
|
+
], CreateMJEntityInput.prototype, "AutoUpdateDisplayName", void 0);
|
|
68884
69584
|
__decorate([
|
|
68885
69585
|
Field(() => RestoreContextInput, { nullable: true }),
|
|
68886
69586
|
__metadata("design:type", RestoreContextInput)
|
|
@@ -69174,6 +69874,10 @@ __decorate([
|
|
|
69174
69874
|
Field(() => Boolean, { nullable: true }),
|
|
69175
69875
|
__metadata("design:type", Boolean)
|
|
69176
69876
|
], UpdateMJEntityInput.prototype, "EnableFieldLevelSecurity", void 0);
|
|
69877
|
+
__decorate([
|
|
69878
|
+
Field(() => Boolean, { nullable: true }),
|
|
69879
|
+
__metadata("design:type", Boolean)
|
|
69880
|
+
], UpdateMJEntityInput.prototype, "AutoUpdateDisplayName", void 0);
|
|
69177
69881
|
__decorate([
|
|
69178
69882
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
69179
69883
|
__metadata("design:type", Array)
|
|
@@ -105395,6 +106099,20 @@ __decorate([
|
|
|
105395
106099
|
MaxLength(100),
|
|
105396
106100
|
__metadata("design:type", String)
|
|
105397
106101
|
], MJQuery_.prototype, "ApprovedFingerprint", void 0);
|
|
106102
|
+
__decorate([
|
|
106103
|
+
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." }),
|
|
106104
|
+
MaxLength(64),
|
|
106105
|
+
__metadata("design:type", String)
|
|
106106
|
+
], MJQuery_.prototype, "ExtractedSQLHash", void 0);
|
|
106107
|
+
__decorate([
|
|
106108
|
+
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." }),
|
|
106109
|
+
MaxLength(20),
|
|
106110
|
+
__metadata("design:type", String)
|
|
106111
|
+
], MJQuery_.prototype, "ExtractionStatus", void 0);
|
|
106112
|
+
__decorate([
|
|
106113
|
+
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." }),
|
|
106114
|
+
__metadata("design:type", String)
|
|
106115
|
+
], MJQuery_.prototype, "ExtractionMessage", void 0);
|
|
105398
106116
|
__decorate([
|
|
105399
106117
|
Field({ nullable: true }),
|
|
105400
106118
|
MaxLength(50),
|
|
@@ -105553,6 +106271,18 @@ __decorate([
|
|
|
105553
106271
|
Field({ nullable: true }),
|
|
105554
106272
|
__metadata("design:type", String)
|
|
105555
106273
|
], CreateMJQueryInput.prototype, "ApprovedFingerprint", void 0);
|
|
106274
|
+
__decorate([
|
|
106275
|
+
Field({ nullable: true }),
|
|
106276
|
+
__metadata("design:type", String)
|
|
106277
|
+
], CreateMJQueryInput.prototype, "ExtractedSQLHash", void 0);
|
|
106278
|
+
__decorate([
|
|
106279
|
+
Field({ nullable: true }),
|
|
106280
|
+
__metadata("design:type", String)
|
|
106281
|
+
], CreateMJQueryInput.prototype, "ExtractionStatus", void 0);
|
|
106282
|
+
__decorate([
|
|
106283
|
+
Field({ nullable: true }),
|
|
106284
|
+
__metadata("design:type", String)
|
|
106285
|
+
], CreateMJQueryInput.prototype, "ExtractionMessage", void 0);
|
|
105556
106286
|
__decorate([
|
|
105557
106287
|
Field(() => RestoreContextInput, { nullable: true }),
|
|
105558
106288
|
__metadata("design:type", RestoreContextInput)
|
|
@@ -105686,6 +106416,18 @@ __decorate([
|
|
|
105686
106416
|
Field({ nullable: true }),
|
|
105687
106417
|
__metadata("design:type", String)
|
|
105688
106418
|
], UpdateMJQueryInput.prototype, "ApprovedFingerprint", void 0);
|
|
106419
|
+
__decorate([
|
|
106420
|
+
Field({ nullable: true }),
|
|
106421
|
+
__metadata("design:type", String)
|
|
106422
|
+
], UpdateMJQueryInput.prototype, "ExtractedSQLHash", void 0);
|
|
106423
|
+
__decorate([
|
|
106424
|
+
Field({ nullable: true }),
|
|
106425
|
+
__metadata("design:type", String)
|
|
106426
|
+
], UpdateMJQueryInput.prototype, "ExtractionStatus", void 0);
|
|
106427
|
+
__decorate([
|
|
106428
|
+
Field({ nullable: true }),
|
|
106429
|
+
__metadata("design:type", String)
|
|
106430
|
+
], UpdateMJQueryInput.prototype, "ExtractionMessage", void 0);
|
|
105689
106431
|
__decorate([
|
|
105690
106432
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
105691
106433
|
__metadata("design:type", Array)
|
|
@@ -106495,7 +107237,7 @@ __decorate([
|
|
|
106495
107237
|
__metadata("design:type", Date)
|
|
106496
107238
|
], MJQueryEntity_.prototype, "_mj__UpdatedAt", void 0);
|
|
106497
107239
|
__decorate([
|
|
106498
|
-
Field({ nullable: true, description: "
|
|
107240
|
+
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." }),
|
|
106499
107241
|
MaxLength(50),
|
|
106500
107242
|
__metadata("design:type", String)
|
|
106501
107243
|
], MJQueryEntity_.prototype, "DetectionMethod", void 0);
|
|
@@ -106823,7 +107565,7 @@ __decorate([
|
|
|
106823
107565
|
__metadata("design:type", Date)
|
|
106824
107566
|
], MJQueryField_.prototype, "_mj__UpdatedAt", void 0);
|
|
106825
107567
|
__decorate([
|
|
106826
|
-
Field({ nullable: true, description: "
|
|
107568
|
+
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." }),
|
|
106827
107569
|
MaxLength(50),
|
|
106828
107570
|
__metadata("design:type", String)
|
|
106829
107571
|
], MJQueryField_.prototype, "DetectionMethod", void 0);
|
|
@@ -106831,6 +107573,20 @@ __decorate([
|
|
|
106831
107573
|
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." }),
|
|
106832
107574
|
__metadata("design:type", Number)
|
|
106833
107575
|
], MJQueryField_.prototype, "AutoDetectConfidenceScore", void 0);
|
|
107576
|
+
__decorate([
|
|
107577
|
+
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." }),
|
|
107578
|
+
MaxLength(36),
|
|
107579
|
+
__metadata("design:type", String)
|
|
107580
|
+
], MJQueryField_.prototype, "SourceEntityFieldID", void 0);
|
|
107581
|
+
__decorate([
|
|
107582
|
+
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." }),
|
|
107583
|
+
__metadata("design:type", Boolean)
|
|
107584
|
+
], MJQueryField_.prototype, "IsNullable", void 0);
|
|
107585
|
+
__decorate([
|
|
107586
|
+
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." }),
|
|
107587
|
+
MaxLength(500),
|
|
107588
|
+
__metadata("design:type", String)
|
|
107589
|
+
], MJQueryField_.prototype, "SourceObjectName", void 0);
|
|
106834
107590
|
__decorate([
|
|
106835
107591
|
Field({ nullable: true }),
|
|
106836
107592
|
MaxLength(255),
|
|
@@ -106841,6 +107597,11 @@ __decorate([
|
|
|
106841
107597
|
MaxLength(255),
|
|
106842
107598
|
__metadata("design:type", String)
|
|
106843
107599
|
], MJQueryField_.prototype, "SourceEntity", void 0);
|
|
107600
|
+
__decorate([
|
|
107601
|
+
Field({ nullable: true }),
|
|
107602
|
+
MaxLength(255),
|
|
107603
|
+
__metadata("design:type", String)
|
|
107604
|
+
], MJQueryField_.prototype, "SourceEntityField", void 0);
|
|
106844
107605
|
__decorate([
|
|
106845
107606
|
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.` }),
|
|
106846
107607
|
__metadata("design:type", Array)
|
|
@@ -106914,6 +107675,18 @@ __decorate([
|
|
|
106914
107675
|
Field(() => Float, { nullable: true }),
|
|
106915
107676
|
__metadata("design:type", Number)
|
|
106916
107677
|
], CreateMJQueryFieldInput.prototype, "AutoDetectConfidenceScore", void 0);
|
|
107678
|
+
__decorate([
|
|
107679
|
+
Field({ nullable: true }),
|
|
107680
|
+
__metadata("design:type", String)
|
|
107681
|
+
], CreateMJQueryFieldInput.prototype, "SourceEntityFieldID", void 0);
|
|
107682
|
+
__decorate([
|
|
107683
|
+
Field(() => Boolean, { nullable: true }),
|
|
107684
|
+
__metadata("design:type", Boolean)
|
|
107685
|
+
], CreateMJQueryFieldInput.prototype, "IsNullable", void 0);
|
|
107686
|
+
__decorate([
|
|
107687
|
+
Field({ nullable: true }),
|
|
107688
|
+
__metadata("design:type", String)
|
|
107689
|
+
], CreateMJQueryFieldInput.prototype, "SourceObjectName", void 0);
|
|
106917
107690
|
__decorate([
|
|
106918
107691
|
Field(() => RestoreContextInput, { nullable: true }),
|
|
106919
107692
|
__metadata("design:type", RestoreContextInput)
|
|
@@ -106987,6 +107760,18 @@ __decorate([
|
|
|
106987
107760
|
Field(() => Float, { nullable: true }),
|
|
106988
107761
|
__metadata("design:type", Number)
|
|
106989
107762
|
], UpdateMJQueryFieldInput.prototype, "AutoDetectConfidenceScore", void 0);
|
|
107763
|
+
__decorate([
|
|
107764
|
+
Field({ nullable: true }),
|
|
107765
|
+
__metadata("design:type", String)
|
|
107766
|
+
], UpdateMJQueryFieldInput.prototype, "SourceEntityFieldID", void 0);
|
|
107767
|
+
__decorate([
|
|
107768
|
+
Field(() => Boolean, { nullable: true }),
|
|
107769
|
+
__metadata("design:type", Boolean)
|
|
107770
|
+
], UpdateMJQueryFieldInput.prototype, "IsNullable", void 0);
|
|
107771
|
+
__decorate([
|
|
107772
|
+
Field({ nullable: true }),
|
|
107773
|
+
__metadata("design:type", String)
|
|
107774
|
+
], UpdateMJQueryFieldInput.prototype, "SourceObjectName", void 0);
|
|
106990
107775
|
__decorate([
|
|
106991
107776
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
106992
107777
|
__metadata("design:type", Array)
|
|
@@ -107186,7 +107971,7 @@ __decorate([
|
|
|
107186
107971
|
__metadata("design:type", String)
|
|
107187
107972
|
], MJQueryParameter_.prototype, "ValidationFilters", void 0);
|
|
107188
107973
|
__decorate([
|
|
107189
|
-
Field({ nullable: true, description: "
|
|
107974
|
+
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." }),
|
|
107190
107975
|
MaxLength(50),
|
|
107191
107976
|
__metadata("design:type", String)
|
|
107192
107977
|
], MJQueryParameter_.prototype, "DetectionMethod", void 0);
|
|
@@ -144798,6 +145583,378 @@ MJVersionLabelResolver = __decorate([
|
|
|
144798
145583
|
], MJVersionLabelResolver);
|
|
144799
145584
|
export { MJVersionLabelResolver };
|
|
144800
145585
|
//****************************************************************************
|
|
145586
|
+
// ENTITY CLASS for MJ: Video Archetypes
|
|
145587
|
+
//****************************************************************************
|
|
145588
|
+
let MJVideoArchetype_ = class MJVideoArchetype_ {
|
|
145589
|
+
};
|
|
145590
|
+
__decorate([
|
|
145591
|
+
Field(),
|
|
145592
|
+
MaxLength(36),
|
|
145593
|
+
__metadata("design:type", String)
|
|
145594
|
+
], MJVideoArchetype_.prototype, "ID", void 0);
|
|
145595
|
+
__decorate([
|
|
145596
|
+
Field({ nullable: true, description: "Archetype name, unique within its CompanyID scope." }),
|
|
145597
|
+
MaxLength(100),
|
|
145598
|
+
__metadata("design:type", String)
|
|
145599
|
+
], MJVideoArchetype_.prototype, "Name", void 0);
|
|
145600
|
+
__decorate([
|
|
145601
|
+
Field({ nullable: true, description: "What the archetype is for; the Director reads it to pick one." }),
|
|
145602
|
+
__metadata("design:type", String)
|
|
145603
|
+
], MJVideoArchetype_.prototype, "Description", void 0);
|
|
145604
|
+
__decorate([
|
|
145605
|
+
Field({ nullable: true, description: "The company that owns this archetype. NULL means shipped or org-wide: available to all companies." }),
|
|
145606
|
+
MaxLength(36),
|
|
145607
|
+
__metadata("design:type", String)
|
|
145608
|
+
], MJVideoArchetype_.prototype, "CompanyID", void 0);
|
|
145609
|
+
__decorate([
|
|
145610
|
+
Field({ nullable: true, description: "Explainer, Product, DataStory, Social, Tutorial, Announcement or Briefing." }),
|
|
145611
|
+
MaxLength(30),
|
|
145612
|
+
__metadata("design:type", String)
|
|
145613
|
+
], MJVideoArchetype_.prototype, "Category", void 0);
|
|
145614
|
+
__decorate([
|
|
145615
|
+
Field({ nullable: true, description: "Active archetypes are offered; Inactive are hidden." }),
|
|
145616
|
+
MaxLength(20),
|
|
145617
|
+
__metadata("design:type", String)
|
|
145618
|
+
], MJVideoArchetype_.prototype, "Status", void 0);
|
|
145619
|
+
__decorate([
|
|
145620
|
+
Field(() => Int, { nullable: true, description: "Default film length, in seconds." }),
|
|
145621
|
+
__metadata("design:type", Number)
|
|
145622
|
+
], MJVideoArchetype_.prototype, "DefaultDurationSeconds", void 0);
|
|
145623
|
+
__decorate([
|
|
145624
|
+
Field(() => Int, { nullable: true, description: "Shortest film length, in seconds." }),
|
|
145625
|
+
__metadata("design:type", Number)
|
|
145626
|
+
], MJVideoArchetype_.prototype, "MinDurationSeconds", void 0);
|
|
145627
|
+
__decorate([
|
|
145628
|
+
Field(() => Int, { nullable: true, description: "Longest film length, in seconds." }),
|
|
145629
|
+
__metadata("design:type", Number)
|
|
145630
|
+
], MJVideoArchetype_.prototype, "MaxDurationSeconds", void 0);
|
|
145631
|
+
__decorate([
|
|
145632
|
+
Field({ nullable: true, description: "Comma-separated default formats: any of 16:9, 9:16, 1:1." }),
|
|
145633
|
+
MaxLength(100),
|
|
145634
|
+
__metadata("design:type", String)
|
|
145635
|
+
], MJVideoArchetype_.prototype, "DefaultFormats", void 0);
|
|
145636
|
+
__decorate([
|
|
145637
|
+
Field({ nullable: true, description: "JSON array (VideoBeatTemplate[]): the beat slots a film of this archetype follows, with per-beat duration bounds." }),
|
|
145638
|
+
__metadata("design:type", String)
|
|
145639
|
+
], MJVideoArchetype_.prototype, "BeatTemplate", void 0);
|
|
145640
|
+
__decorate([
|
|
145641
|
+
Field({ nullable: true, description: "JSON (VideoPacing): cut cadence and hold rules." }),
|
|
145642
|
+
__metadata("design:type", String)
|
|
145643
|
+
], MJVideoArchetype_.prototype, "Pacing", void 0);
|
|
145644
|
+
__decorate([
|
|
145645
|
+
Field({ nullable: true, description: "Markdown guidance for the Director and Storyboard." }),
|
|
145646
|
+
__metadata("design:type", String)
|
|
145647
|
+
], MJVideoArchetype_.prototype, "Guidance", void 0);
|
|
145648
|
+
__decorate([
|
|
145649
|
+
Field({ nullable: true, description: "Default approval mode: Autonomous, ApproveStoryboard or ApproveStoryboardAndRoughCut." }),
|
|
145650
|
+
MaxLength(30),
|
|
145651
|
+
__metadata("design:type", String)
|
|
145652
|
+
], MJVideoArchetype_.prototype, "DefaultInteractionMode", void 0);
|
|
145653
|
+
__decorate([
|
|
145654
|
+
Field(),
|
|
145655
|
+
__metadata("design:type", Date)
|
|
145656
|
+
], MJVideoArchetype_.prototype, "_mj__CreatedAt", void 0);
|
|
145657
|
+
__decorate([
|
|
145658
|
+
Field(),
|
|
145659
|
+
__metadata("design:type", Date)
|
|
145660
|
+
], MJVideoArchetype_.prototype, "_mj__UpdatedAt", void 0);
|
|
145661
|
+
__decorate([
|
|
145662
|
+
Field({ nullable: true }),
|
|
145663
|
+
MaxLength(50),
|
|
145664
|
+
__metadata("design:type", String)
|
|
145665
|
+
], MJVideoArchetype_.prototype, "Company", void 0);
|
|
145666
|
+
__decorate([
|
|
145667
|
+
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.` }),
|
|
145668
|
+
__metadata("design:type", Array)
|
|
145669
|
+
], MJVideoArchetype_.prototype, "ReadableFields___", void 0);
|
|
145670
|
+
MJVideoArchetype_ = __decorate([
|
|
145671
|
+
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." })
|
|
145672
|
+
], MJVideoArchetype_);
|
|
145673
|
+
export { MJVideoArchetype_ };
|
|
145674
|
+
//****************************************************************************
|
|
145675
|
+
// INPUT TYPE for MJ: Video Archetypes
|
|
145676
|
+
//****************************************************************************
|
|
145677
|
+
let CreateMJVideoArchetypeInput = class CreateMJVideoArchetypeInput {
|
|
145678
|
+
};
|
|
145679
|
+
__decorate([
|
|
145680
|
+
Field({ nullable: true }),
|
|
145681
|
+
__metadata("design:type", String)
|
|
145682
|
+
], CreateMJVideoArchetypeInput.prototype, "ID", void 0);
|
|
145683
|
+
__decorate([
|
|
145684
|
+
Field({ nullable: true }),
|
|
145685
|
+
__metadata("design:type", String)
|
|
145686
|
+
], CreateMJVideoArchetypeInput.prototype, "Name", void 0);
|
|
145687
|
+
__decorate([
|
|
145688
|
+
Field({ nullable: true }),
|
|
145689
|
+
__metadata("design:type", String)
|
|
145690
|
+
], CreateMJVideoArchetypeInput.prototype, "Description", void 0);
|
|
145691
|
+
__decorate([
|
|
145692
|
+
Field({ nullable: true }),
|
|
145693
|
+
__metadata("design:type", String)
|
|
145694
|
+
], CreateMJVideoArchetypeInput.prototype, "CompanyID", void 0);
|
|
145695
|
+
__decorate([
|
|
145696
|
+
Field({ nullable: true }),
|
|
145697
|
+
__metadata("design:type", String)
|
|
145698
|
+
], CreateMJVideoArchetypeInput.prototype, "Category", void 0);
|
|
145699
|
+
__decorate([
|
|
145700
|
+
Field({ nullable: true }),
|
|
145701
|
+
__metadata("design:type", String)
|
|
145702
|
+
], CreateMJVideoArchetypeInput.prototype, "Status", void 0);
|
|
145703
|
+
__decorate([
|
|
145704
|
+
Field(() => Int, { nullable: true }),
|
|
145705
|
+
__metadata("design:type", Number)
|
|
145706
|
+
], CreateMJVideoArchetypeInput.prototype, "DefaultDurationSeconds", void 0);
|
|
145707
|
+
__decorate([
|
|
145708
|
+
Field(() => Int, { nullable: true }),
|
|
145709
|
+
__metadata("design:type", Number)
|
|
145710
|
+
], CreateMJVideoArchetypeInput.prototype, "MinDurationSeconds", void 0);
|
|
145711
|
+
__decorate([
|
|
145712
|
+
Field(() => Int, { nullable: true }),
|
|
145713
|
+
__metadata("design:type", Number)
|
|
145714
|
+
], CreateMJVideoArchetypeInput.prototype, "MaxDurationSeconds", void 0);
|
|
145715
|
+
__decorate([
|
|
145716
|
+
Field({ nullable: true }),
|
|
145717
|
+
__metadata("design:type", String)
|
|
145718
|
+
], CreateMJVideoArchetypeInput.prototype, "DefaultFormats", void 0);
|
|
145719
|
+
__decorate([
|
|
145720
|
+
Field({ nullable: true }),
|
|
145721
|
+
__metadata("design:type", String)
|
|
145722
|
+
], CreateMJVideoArchetypeInput.prototype, "BeatTemplate", void 0);
|
|
145723
|
+
__decorate([
|
|
145724
|
+
Field({ nullable: true }),
|
|
145725
|
+
__metadata("design:type", String)
|
|
145726
|
+
], CreateMJVideoArchetypeInput.prototype, "Pacing", void 0);
|
|
145727
|
+
__decorate([
|
|
145728
|
+
Field({ nullable: true }),
|
|
145729
|
+
__metadata("design:type", String)
|
|
145730
|
+
], CreateMJVideoArchetypeInput.prototype, "Guidance", void 0);
|
|
145731
|
+
__decorate([
|
|
145732
|
+
Field({ nullable: true }),
|
|
145733
|
+
__metadata("design:type", String)
|
|
145734
|
+
], CreateMJVideoArchetypeInput.prototype, "DefaultInteractionMode", void 0);
|
|
145735
|
+
__decorate([
|
|
145736
|
+
Field(() => RestoreContextInput, { nullable: true }),
|
|
145737
|
+
__metadata("design:type", RestoreContextInput)
|
|
145738
|
+
], CreateMJVideoArchetypeInput.prototype, "RestoreContext___", void 0);
|
|
145739
|
+
CreateMJVideoArchetypeInput = __decorate([
|
|
145740
|
+
InputType()
|
|
145741
|
+
], CreateMJVideoArchetypeInput);
|
|
145742
|
+
export { CreateMJVideoArchetypeInput };
|
|
145743
|
+
//****************************************************************************
|
|
145744
|
+
// INPUT TYPE for MJ: Video Archetypes
|
|
145745
|
+
//****************************************************************************
|
|
145746
|
+
let UpdateMJVideoArchetypeInput = class UpdateMJVideoArchetypeInput {
|
|
145747
|
+
};
|
|
145748
|
+
__decorate([
|
|
145749
|
+
Field(),
|
|
145750
|
+
__metadata("design:type", String)
|
|
145751
|
+
], UpdateMJVideoArchetypeInput.prototype, "ID", void 0);
|
|
145752
|
+
__decorate([
|
|
145753
|
+
Field({ nullable: true }),
|
|
145754
|
+
__metadata("design:type", String)
|
|
145755
|
+
], UpdateMJVideoArchetypeInput.prototype, "Name", void 0);
|
|
145756
|
+
__decorate([
|
|
145757
|
+
Field({ nullable: true }),
|
|
145758
|
+
__metadata("design:type", String)
|
|
145759
|
+
], UpdateMJVideoArchetypeInput.prototype, "Description", void 0);
|
|
145760
|
+
__decorate([
|
|
145761
|
+
Field({ nullable: true }),
|
|
145762
|
+
__metadata("design:type", String)
|
|
145763
|
+
], UpdateMJVideoArchetypeInput.prototype, "CompanyID", void 0);
|
|
145764
|
+
__decorate([
|
|
145765
|
+
Field({ nullable: true }),
|
|
145766
|
+
__metadata("design:type", String)
|
|
145767
|
+
], UpdateMJVideoArchetypeInput.prototype, "Category", void 0);
|
|
145768
|
+
__decorate([
|
|
145769
|
+
Field({ nullable: true }),
|
|
145770
|
+
__metadata("design:type", String)
|
|
145771
|
+
], UpdateMJVideoArchetypeInput.prototype, "Status", void 0);
|
|
145772
|
+
__decorate([
|
|
145773
|
+
Field(() => Int, { nullable: true }),
|
|
145774
|
+
__metadata("design:type", Number)
|
|
145775
|
+
], UpdateMJVideoArchetypeInput.prototype, "DefaultDurationSeconds", void 0);
|
|
145776
|
+
__decorate([
|
|
145777
|
+
Field(() => Int, { nullable: true }),
|
|
145778
|
+
__metadata("design:type", Number)
|
|
145779
|
+
], UpdateMJVideoArchetypeInput.prototype, "MinDurationSeconds", void 0);
|
|
145780
|
+
__decorate([
|
|
145781
|
+
Field(() => Int, { nullable: true }),
|
|
145782
|
+
__metadata("design:type", Number)
|
|
145783
|
+
], UpdateMJVideoArchetypeInput.prototype, "MaxDurationSeconds", void 0);
|
|
145784
|
+
__decorate([
|
|
145785
|
+
Field({ nullable: true }),
|
|
145786
|
+
__metadata("design:type", String)
|
|
145787
|
+
], UpdateMJVideoArchetypeInput.prototype, "DefaultFormats", void 0);
|
|
145788
|
+
__decorate([
|
|
145789
|
+
Field({ nullable: true }),
|
|
145790
|
+
__metadata("design:type", String)
|
|
145791
|
+
], UpdateMJVideoArchetypeInput.prototype, "BeatTemplate", void 0);
|
|
145792
|
+
__decorate([
|
|
145793
|
+
Field({ nullable: true }),
|
|
145794
|
+
__metadata("design:type", String)
|
|
145795
|
+
], UpdateMJVideoArchetypeInput.prototype, "Pacing", void 0);
|
|
145796
|
+
__decorate([
|
|
145797
|
+
Field({ nullable: true }),
|
|
145798
|
+
__metadata("design:type", String)
|
|
145799
|
+
], UpdateMJVideoArchetypeInput.prototype, "Guidance", void 0);
|
|
145800
|
+
__decorate([
|
|
145801
|
+
Field({ nullable: true }),
|
|
145802
|
+
__metadata("design:type", String)
|
|
145803
|
+
], UpdateMJVideoArchetypeInput.prototype, "DefaultInteractionMode", void 0);
|
|
145804
|
+
__decorate([
|
|
145805
|
+
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
145806
|
+
__metadata("design:type", Array)
|
|
145807
|
+
], UpdateMJVideoArchetypeInput.prototype, "OldValues___", void 0);
|
|
145808
|
+
__decorate([
|
|
145809
|
+
Field(() => RestoreContextInput, { nullable: true }),
|
|
145810
|
+
__metadata("design:type", RestoreContextInput)
|
|
145811
|
+
], UpdateMJVideoArchetypeInput.prototype, "RestoreContext___", void 0);
|
|
145812
|
+
UpdateMJVideoArchetypeInput = __decorate([
|
|
145813
|
+
InputType()
|
|
145814
|
+
], UpdateMJVideoArchetypeInput);
|
|
145815
|
+
export { UpdateMJVideoArchetypeInput };
|
|
145816
|
+
//****************************************************************************
|
|
145817
|
+
// RESOLVER for MJ: Video Archetypes
|
|
145818
|
+
//****************************************************************************
|
|
145819
|
+
let RunMJVideoArchetypeViewResult = class RunMJVideoArchetypeViewResult {
|
|
145820
|
+
};
|
|
145821
|
+
__decorate([
|
|
145822
|
+
Field(() => [MJVideoArchetype_]),
|
|
145823
|
+
__metadata("design:type", Array)
|
|
145824
|
+
], RunMJVideoArchetypeViewResult.prototype, "Results", void 0);
|
|
145825
|
+
__decorate([
|
|
145826
|
+
Field(() => String, { nullable: true }),
|
|
145827
|
+
__metadata("design:type", String)
|
|
145828
|
+
], RunMJVideoArchetypeViewResult.prototype, "UserViewRunID", void 0);
|
|
145829
|
+
__decorate([
|
|
145830
|
+
Field(() => Int, { nullable: true }),
|
|
145831
|
+
__metadata("design:type", Number)
|
|
145832
|
+
], RunMJVideoArchetypeViewResult.prototype, "RowCount", void 0);
|
|
145833
|
+
__decorate([
|
|
145834
|
+
Field(() => Int, { nullable: true }),
|
|
145835
|
+
__metadata("design:type", Number)
|
|
145836
|
+
], RunMJVideoArchetypeViewResult.prototype, "TotalRowCount", void 0);
|
|
145837
|
+
__decorate([
|
|
145838
|
+
Field(() => Int, { nullable: true }),
|
|
145839
|
+
__metadata("design:type", Number)
|
|
145840
|
+
], RunMJVideoArchetypeViewResult.prototype, "ExecutionTime", void 0);
|
|
145841
|
+
__decorate([
|
|
145842
|
+
Field({ nullable: true }),
|
|
145843
|
+
__metadata("design:type", String)
|
|
145844
|
+
], RunMJVideoArchetypeViewResult.prototype, "ErrorMessage", void 0);
|
|
145845
|
+
__decorate([
|
|
145846
|
+
Field(() => Boolean, { nullable: false }),
|
|
145847
|
+
__metadata("design:type", Boolean)
|
|
145848
|
+
], RunMJVideoArchetypeViewResult.prototype, "Success", void 0);
|
|
145849
|
+
RunMJVideoArchetypeViewResult = __decorate([
|
|
145850
|
+
ObjectType()
|
|
145851
|
+
], RunMJVideoArchetypeViewResult);
|
|
145852
|
+
export { RunMJVideoArchetypeViewResult };
|
|
145853
|
+
let MJVideoArchetypeResolver = class MJVideoArchetypeResolver extends ResolverBase {
|
|
145854
|
+
async RunMJVideoArchetypeViewByID(input, { providers, userPayload }, pubSub) {
|
|
145855
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
145856
|
+
return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
|
|
145857
|
+
}
|
|
145858
|
+
async RunMJVideoArchetypeViewByName(input, { providers, userPayload }, pubSub) {
|
|
145859
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
145860
|
+
return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
|
|
145861
|
+
}
|
|
145862
|
+
async RunMJVideoArchetypeDynamicView(input, { providers, userPayload }, pubSub) {
|
|
145863
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
145864
|
+
input.EntityName = 'MJ: Video Archetypes';
|
|
145865
|
+
return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
|
|
145866
|
+
}
|
|
145867
|
+
async MJVideoArchetype(ID, { userPayload, providers }, pubSub) {
|
|
145868
|
+
this.CheckUserReadPermissions('MJ: Video Archetypes', userPayload);
|
|
145869
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
145870
|
+
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');
|
|
145871
|
+
const rows = await provider.ExecuteSQL(sSQL, [ID], undefined, this.GetUserFromPayload(userPayload));
|
|
145872
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Video Archetypes', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
145873
|
+
return result;
|
|
145874
|
+
}
|
|
145875
|
+
async CreateMJVideoArchetype(input, { providers, userPayload }, pubSub) {
|
|
145876
|
+
const provider = GetReadWriteProvider(providers);
|
|
145877
|
+
return this.CreateRecord('MJ: Video Archetypes', input, provider, userPayload, pubSub);
|
|
145878
|
+
}
|
|
145879
|
+
async UpdateMJVideoArchetype(input, { providers, userPayload }, pubSub) {
|
|
145880
|
+
const provider = GetReadWriteProvider(providers);
|
|
145881
|
+
return this.UpdateRecord('MJ: Video Archetypes', input, provider, userPayload, pubSub);
|
|
145882
|
+
}
|
|
145883
|
+
async DeleteMJVideoArchetype(ID, options, { providers, userPayload }, pubSub) {
|
|
145884
|
+
const provider = GetReadWriteProvider(providers);
|
|
145885
|
+
const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
|
|
145886
|
+
return this.DeleteRecord('MJ: Video Archetypes', key, options, provider, userPayload, pubSub);
|
|
145887
|
+
}
|
|
145888
|
+
};
|
|
145889
|
+
__decorate([
|
|
145890
|
+
Query(() => RunMJVideoArchetypeViewResult),
|
|
145891
|
+
__param(0, Arg('input', () => RunViewByIDInput)),
|
|
145892
|
+
__param(1, Ctx()),
|
|
145893
|
+
__param(2, PubSub()),
|
|
145894
|
+
__metadata("design:type", Function),
|
|
145895
|
+
__metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
|
|
145896
|
+
__metadata("design:returntype", Promise)
|
|
145897
|
+
], MJVideoArchetypeResolver.prototype, "RunMJVideoArchetypeViewByID", null);
|
|
145898
|
+
__decorate([
|
|
145899
|
+
Query(() => RunMJVideoArchetypeViewResult),
|
|
145900
|
+
__param(0, Arg('input', () => RunViewByNameInput)),
|
|
145901
|
+
__param(1, Ctx()),
|
|
145902
|
+
__param(2, PubSub()),
|
|
145903
|
+
__metadata("design:type", Function),
|
|
145904
|
+
__metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
|
|
145905
|
+
__metadata("design:returntype", Promise)
|
|
145906
|
+
], MJVideoArchetypeResolver.prototype, "RunMJVideoArchetypeViewByName", null);
|
|
145907
|
+
__decorate([
|
|
145908
|
+
Query(() => RunMJVideoArchetypeViewResult),
|
|
145909
|
+
__param(0, Arg('input', () => RunDynamicViewInput)),
|
|
145910
|
+
__param(1, Ctx()),
|
|
145911
|
+
__param(2, PubSub()),
|
|
145912
|
+
__metadata("design:type", Function),
|
|
145913
|
+
__metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
|
|
145914
|
+
__metadata("design:returntype", Promise)
|
|
145915
|
+
], MJVideoArchetypeResolver.prototype, "RunMJVideoArchetypeDynamicView", null);
|
|
145916
|
+
__decorate([
|
|
145917
|
+
Query(() => MJVideoArchetype_, { nullable: true }),
|
|
145918
|
+
__param(0, Arg('ID', () => String)),
|
|
145919
|
+
__param(1, Ctx()),
|
|
145920
|
+
__param(2, PubSub()),
|
|
145921
|
+
__metadata("design:type", Function),
|
|
145922
|
+
__metadata("design:paramtypes", [String, Object, PubSubEngine]),
|
|
145923
|
+
__metadata("design:returntype", Promise)
|
|
145924
|
+
], MJVideoArchetypeResolver.prototype, "MJVideoArchetype", null);
|
|
145925
|
+
__decorate([
|
|
145926
|
+
Mutation(() => MJVideoArchetype_),
|
|
145927
|
+
__param(0, Arg('input', () => CreateMJVideoArchetypeInput)),
|
|
145928
|
+
__param(1, Ctx()),
|
|
145929
|
+
__param(2, PubSub()),
|
|
145930
|
+
__metadata("design:type", Function),
|
|
145931
|
+
__metadata("design:paramtypes", [CreateMJVideoArchetypeInput, Object, PubSubEngine]),
|
|
145932
|
+
__metadata("design:returntype", Promise)
|
|
145933
|
+
], MJVideoArchetypeResolver.prototype, "CreateMJVideoArchetype", null);
|
|
145934
|
+
__decorate([
|
|
145935
|
+
Mutation(() => MJVideoArchetype_),
|
|
145936
|
+
__param(0, Arg('input', () => UpdateMJVideoArchetypeInput)),
|
|
145937
|
+
__param(1, Ctx()),
|
|
145938
|
+
__param(2, PubSub()),
|
|
145939
|
+
__metadata("design:type", Function),
|
|
145940
|
+
__metadata("design:paramtypes", [UpdateMJVideoArchetypeInput, Object, PubSubEngine]),
|
|
145941
|
+
__metadata("design:returntype", Promise)
|
|
145942
|
+
], MJVideoArchetypeResolver.prototype, "UpdateMJVideoArchetype", null);
|
|
145943
|
+
__decorate([
|
|
145944
|
+
Mutation(() => MJVideoArchetype_),
|
|
145945
|
+
__param(0, Arg('ID', () => String)),
|
|
145946
|
+
__param(1, Arg('options___', () => DeleteOptionsInput)),
|
|
145947
|
+
__param(2, Ctx()),
|
|
145948
|
+
__param(3, PubSub()),
|
|
145949
|
+
__metadata("design:type", Function),
|
|
145950
|
+
__metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
|
|
145951
|
+
__metadata("design:returntype", Promise)
|
|
145952
|
+
], MJVideoArchetypeResolver.prototype, "DeleteMJVideoArchetype", null);
|
|
145953
|
+
MJVideoArchetypeResolver = __decorate([
|
|
145954
|
+
Resolver(MJVideoArchetype_)
|
|
145955
|
+
], MJVideoArchetypeResolver);
|
|
145956
|
+
export { MJVideoArchetypeResolver };
|
|
145957
|
+
//****************************************************************************
|
|
144801
145958
|
// ENTITY CLASS for MJ: View Types
|
|
144802
145959
|
//****************************************************************************
|
|
144803
145960
|
let MJViewType_ = class MJViewType_ {
|