@memberjunction/server 6.1.4 → 6.2.0-edge.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.tsbuildinfo +1 -1
- package/dist/agentSessions/ReturningVisitorRecap.d.ts +2 -0
- package/dist/agentSessions/ReturningVisitorRecap.d.ts.map +1 -1
- package/dist/agentSessions/ReturningVisitorRecap.js +5 -1
- package/dist/agentSessions/ReturningVisitorRecap.js.map +1 -1
- package/dist/agentSessions/SessionManager.js +2 -2
- package/dist/agentSessions/remoteBrowserGoalEngine.d.ts +8 -0
- package/dist/agentSessions/remoteBrowserGoalEngine.d.ts.map +1 -1
- package/dist/agentSessions/remoteBrowserGoalEngine.js +21 -5
- package/dist/agentSessions/remoteBrowserGoalEngine.js.map +1 -1
- package/dist/auth/AuthProviderCatalogRouter.d.ts +2 -0
- package/dist/auth/AuthProviderCatalogRouter.d.ts.map +1 -1
- package/dist/auth/AuthProviderCatalogRouter.js +5 -1
- package/dist/auth/AuthProviderCatalogRouter.js.map +1 -1
- package/dist/auth/exampleNewUserSubClass.js +2 -1
- package/dist/auth/exampleNewUserSubClass.js.map +1 -1
- package/dist/auth/index.d.ts +20 -1
- package/dist/auth/index.d.ts.map +1 -1
- package/dist/auth/index.js +20 -10
- package/dist/auth/index.js.map +1 -1
- package/dist/auth/initializeProviders.d.ts +8 -0
- package/dist/auth/initializeProviders.d.ts.map +1 -1
- package/dist/auth/initializeProviders.js +21 -5
- package/dist/auth/initializeProviders.js.map +1 -1
- package/dist/auth/magicLink/MagicLinkRouter.d.ts +9 -0
- package/dist/auth/magicLink/MagicLinkRouter.d.ts.map +1 -1
- package/dist/auth/magicLink/MagicLinkRouter.js +22 -10
- package/dist/auth/magicLink/MagicLinkRouter.js.map +1 -1
- package/dist/auth/magicLink/MagicLinkService.d.ts +17 -15
- package/dist/auth/magicLink/MagicLinkService.d.ts.map +1 -1
- package/dist/auth/magicLink/MagicLinkService.js +65 -51
- package/dist/auth/magicLink/MagicLinkService.js.map +1 -1
- package/dist/auth/magicLink/index.d.ts +2 -2
- package/dist/auth/magicLink/index.d.ts.map +1 -1
- package/dist/auth/magicLink/index.js +2 -2
- package/dist/auth/magicLink/index.js.map +1 -1
- package/dist/auth/magicLink/magicLinkCore.d.ts +54 -33
- package/dist/auth/magicLink/magicLinkCore.d.ts.map +1 -1
- package/dist/auth/magicLink/magicLinkCore.js +61 -61
- package/dist/auth/magicLink/magicLinkCore.js.map +1 -1
- package/dist/auth/magicLink/redeemLanding.d.ts +4 -0
- package/dist/auth/magicLink/redeemLanding.d.ts.map +1 -1
- package/dist/auth/magicLink/redeemLanding.js +12 -4
- package/dist/auth/magicLink/redeemLanding.js.map +1 -1
- package/dist/auth/magicLink/types.d.ts +4 -4
- package/dist/auth/principals.d.ts +2 -0
- package/dist/auth/principals.d.ts.map +1 -1
- package/dist/auth/principals.js +6 -2
- package/dist/auth/principals.js.map +1 -1
- package/dist/cache.d.ts +2 -0
- package/dist/cache.d.ts.map +1 -1
- package/dist/cache.js +3 -1
- package/dist/cache.js.map +1 -1
- package/dist/config.d.ts +293 -2
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +11 -4
- package/dist/config.js.map +1 -1
- package/dist/context.d.ts +20 -0
- package/dist/context.d.ts.map +1 -1
- package/dist/context.js +27 -19
- package/dist/context.js.map +1 -1
- package/dist/directives/Public.d.ts +2 -0
- package/dist/directives/Public.d.ts.map +1 -1
- package/dist/directives/Public.js +3 -1
- package/dist/directives/Public.js.map +1 -1
- package/dist/directives/RequireSystemUser.d.ts +2 -0
- package/dist/directives/RequireSystemUser.d.ts.map +1 -1
- package/dist/directives/RequireSystemUser.js +3 -1
- package/dist/directives/RequireSystemUser.js.map +1 -1
- package/dist/generated/graphql-schemas/__mj.d.ts +266 -4
- package/dist/generated/graphql-schemas/__mj.d.ts.map +1 -1
- package/dist/generated/graphql-schemas/__mj.js +1304 -0
- package/dist/generated/graphql-schemas/__mj.js.map +1 -1
- package/dist/generic/CacheInvalidationResolver.d.ts +8 -2
- package/dist/generic/CacheInvalidationResolver.d.ts.map +1 -1
- package/dist/generic/CacheInvalidationResolver.js +7 -3
- package/dist/generic/CacheInvalidationResolver.js.map +1 -1
- package/dist/generic/FireAndForgetHeartbeat.d.ts +3 -1
- package/dist/generic/FireAndForgetHeartbeat.d.ts.map +1 -1
- package/dist/generic/FireAndForgetHeartbeat.js +8 -4
- package/dist/generic/FireAndForgetHeartbeat.js.map +1 -1
- package/dist/generic/PushStatusResolver.d.ts +10 -1
- package/dist/generic/PushStatusResolver.d.ts.map +1 -1
- package/dist/generic/PushStatusResolver.js +11 -3
- package/dist/generic/PushStatusResolver.js.map +1 -1
- package/dist/generic/ResolverBase.d.ts +27 -1
- package/dist/generic/ResolverBase.d.ts.map +1 -1
- package/dist/generic/ResolverBase.js +64 -6
- package/dist/generic/ResolverBase.js.map +1 -1
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +29 -6
- package/dist/index.js.map +1 -1
- package/dist/integration/CustomColumnPromoter.d.ts +2 -0
- package/dist/integration/CustomColumnPromoter.d.ts.map +1 -1
- package/dist/integration/CustomColumnPromoter.js +5 -1
- package/dist/integration/CustomColumnPromoter.js.map +1 -1
- package/dist/integration/EntityMapLifecycle.d.ts +4 -0
- package/dist/integration/EntityMapLifecycle.d.ts.map +1 -1
- package/dist/integration/EntityMapLifecycle.js +10 -2
- package/dist/integration/EntityMapLifecycle.js.map +1 -1
- package/dist/logging/NoLog.d.ts +4 -0
- package/dist/logging/NoLog.d.ts.map +1 -1
- package/dist/logging/NoLog.js +10 -2
- package/dist/logging/NoLog.js.map +1 -1
- package/dist/logging/StartupLogger.d.ts +2 -0
- package/dist/logging/StartupLogger.d.ts.map +1 -1
- package/dist/logging/StartupLogger.js +5 -1
- package/dist/logging/StartupLogger.js.map +1 -1
- package/dist/logging/bootAudit.d.ts +11 -7
- package/dist/logging/bootAudit.d.ts.map +1 -1
- package/dist/logging/bootAudit.js +15 -7
- package/dist/logging/bootAudit.js.map +1 -1
- package/dist/logging/boundaryLogPayload.d.ts +4 -0
- package/dist/logging/boundaryLogPayload.d.ts.map +1 -1
- package/dist/logging/boundaryLogPayload.js +5 -1
- package/dist/logging/boundaryLogPayload.js.map +1 -1
- package/dist/logging/secretRedactor.d.ts +2 -0
- package/dist/logging/secretRedactor.d.ts.map +1 -1
- package/dist/logging/secretRedactor.js +8 -4
- package/dist/logging/secretRedactor.js.map +1 -1
- package/dist/logging/shortenForLog.d.ts +2 -0
- package/dist/logging/shortenForLog.d.ts.map +1 -1
- package/dist/logging/shortenForLog.js +7 -3
- package/dist/logging/shortenForLog.js.map +1 -1
- package/dist/logging/variablesLoggingMiddleware.d.ts +2 -0
- package/dist/logging/variablesLoggingMiddleware.d.ts.map +1 -1
- package/dist/logging/variablesLoggingMiddleware.js +8 -6
- package/dist/logging/variablesLoggingMiddleware.js.map +1 -1
- package/dist/metadataRefreshSignal.d.ts +19 -0
- package/dist/metadataRefreshSignal.d.ts.map +1 -0
- package/dist/metadataRefreshSignal.js +45 -0
- package/dist/metadataRefreshSignal.js.map +1 -0
- package/dist/middleware/MJTenantFilterMiddleware.js +4 -4
- package/dist/multiTenancy/index.d.ts +8 -0
- package/dist/multiTenancy/index.d.ts.map +1 -1
- package/dist/multiTenancy/index.js +21 -5
- package/dist/multiTenancy/index.js.map +1 -1
- package/dist/realtimeWidget/WidgetRouter.d.ts +5 -0
- package/dist/realtimeWidget/WidgetRouter.d.ts.map +1 -1
- package/dist/realtimeWidget/WidgetRouter.js +14 -10
- package/dist/realtimeWidget/WidgetRouter.js.map +1 -1
- package/dist/realtimeWidget/WidgetSessionService.d.ts +6 -6
- package/dist/realtimeWidget/WidgetSessionService.js +27 -27
- package/dist/realtimeWidget/host-identity.d.ts +5 -1
- package/dist/realtimeWidget/host-identity.d.ts.map +1 -1
- package/dist/realtimeWidget/host-identity.js +11 -3
- package/dist/realtimeWidget/host-identity.js.map +1 -1
- package/dist/realtimeWidget/index.d.ts +2 -2
- package/dist/realtimeWidget/index.d.ts.map +1 -1
- package/dist/realtimeWidget/index.js +2 -2
- package/dist/realtimeWidget/index.js.map +1 -1
- package/dist/realtimeWidget/visitorIdentity.d.ts +21 -1
- package/dist/realtimeWidget/visitorIdentity.d.ts.map +1 -1
- package/dist/realtimeWidget/visitorIdentity.js +16 -4
- package/dist/realtimeWidget/visitorIdentity.js.map +1 -1
- package/dist/realtimeWidget/widgetCore.d.ts +48 -0
- package/dist/realtimeWidget/widgetCore.d.ts.map +1 -1
- package/dist/realtimeWidget/widgetCore.js +38 -10
- package/dist/realtimeWidget/widgetCore.js.map +1 -1
- package/dist/realtimeWidget/widgetGuestElevation.d.ts +10 -6
- package/dist/realtimeWidget/widgetGuestElevation.d.ts.map +1 -1
- package/dist/realtimeWidget/widgetGuestElevation.js +14 -6
- package/dist/realtimeWidget/widgetGuestElevation.js.map +1 -1
- package/dist/resolvers/AdhocQueryResolver.js +3 -3
- package/dist/resolvers/FetchEntityVectorsResolver.js +2 -2
- package/dist/resolvers/FetchEntityVectorsResolver.js.map +1 -1
- package/dist/resolvers/FileResolver.js +3 -3
- package/dist/resolvers/GeoResolver.d.ts +2 -2
- package/dist/resolvers/GeoResolver.js +4 -4
- package/dist/resolvers/GetDataResolver.d.ts +14 -0
- package/dist/resolvers/GetDataResolver.d.ts.map +1 -1
- package/dist/resolvers/GetDataResolver.js +43 -15
- package/dist/resolvers/GetDataResolver.js.map +1 -1
- package/dist/resolvers/IntegrationDiscoveryResolver.js +2 -2
- package/dist/resolvers/ListOperationsResolver.d.ts +20 -0
- package/dist/resolvers/ListOperationsResolver.d.ts.map +1 -1
- package/dist/resolvers/ListOperationsResolver.js +68 -28
- package/dist/resolvers/ListOperationsResolver.js.map +1 -1
- package/dist/resolvers/MCPResolver.d.ts +11 -1
- package/dist/resolvers/MCPResolver.d.ts.map +1 -1
- package/dist/resolvers/MCPResolver.js +7 -3
- package/dist/resolvers/MCPResolver.js.map +1 -1
- package/dist/resolvers/QuerySystemUserResolver.d.ts.map +1 -1
- package/dist/resolvers/QuerySystemUserResolver.js +2 -1
- package/dist/resolvers/QuerySystemUserResolver.js.map +1 -1
- package/dist/resolvers/RealtimeBridgeResolver.js +3 -3
- package/dist/resolvers/RealtimeClientSessionResolver.d.ts +37 -0
- package/dist/resolvers/RealtimeClientSessionResolver.d.ts.map +1 -1
- package/dist/resolvers/RealtimeClientSessionResolver.js +101 -11
- package/dist/resolvers/RealtimeClientSessionResolver.js.map +1 -1
- package/dist/resolvers/RemoteBrowserActionResolver.js +5 -5
- package/dist/resolvers/RunAIAgentResolver.d.ts +10 -4
- package/dist/resolvers/RunAIAgentResolver.d.ts.map +1 -1
- package/dist/resolvers/RunAIAgentResolver.js +74 -42
- package/dist/resolvers/RunAIAgentResolver.js.map +1 -1
- package/dist/resolvers/RunAIPromptResolver.d.ts +1 -1
- package/dist/resolvers/RunAIPromptResolver.js +2 -2
- package/dist/resolvers/RunTestResolver.js +5 -5
- package/dist/resolvers/SearchEntitiesResolver.d.ts.map +1 -1
- package/dist/resolvers/SearchEntitiesResolver.js +3 -1
- package/dist/resolvers/SearchEntitiesResolver.js.map +1 -1
- package/dist/resolvers/SearchKnowledgeResolver.d.ts +1 -0
- package/dist/resolvers/SearchKnowledgeResolver.d.ts.map +1 -1
- package/dist/resolvers/SearchKnowledgeResolver.js +5 -0
- package/dist/resolvers/SearchKnowledgeResolver.js.map +1 -1
- package/dist/resolvers/SearchKnowledgeSystemUserResolver.d.ts.map +1 -1
- package/dist/resolvers/SearchKnowledgeSystemUserResolver.js +1 -0
- package/dist/resolvers/SearchKnowledgeSystemUserResolver.js.map +1 -1
- package/dist/resolvers/SqlLoggingConfigResolver.d.ts +8 -4
- package/dist/resolvers/SqlLoggingConfigResolver.d.ts.map +1 -1
- package/dist/resolvers/SqlLoggingConfigResolver.js +5 -5
- package/dist/resolvers/TaskGraphFrameResolver.d.ts +8 -1
- package/dist/resolvers/TaskGraphFrameResolver.d.ts.map +1 -1
- package/dist/resolvers/TaskGraphFrameResolver.js +6 -2
- package/dist/resolvers/TaskGraphFrameResolver.js.map +1 -1
- package/dist/resolvers/TransactionGroupResolver.d.ts.map +1 -1
- package/dist/resolvers/TransactionGroupResolver.js +53 -4
- package/dist/resolvers/TransactionGroupResolver.js.map +1 -1
- package/dist/resolvers/adhoc-query-helpers.d.ts +6 -0
- package/dist/resolvers/adhoc-query-helpers.d.ts.map +1 -1
- package/dist/resolvers/adhoc-query-helpers.js +10 -2
- package/dist/resolvers/adhoc-query-helpers.js.map +1 -1
- package/dist/resolvers/artifact-routing.d.ts +8 -8
- package/dist/resolvers/artifact-routing.js +2 -2
- package/dist/resolvers/artifact-routing.js.map +1 -1
- package/dist/resolvers/meetingRecordingRegistration.d.ts +10 -2
- package/dist/resolvers/meetingRecordingRegistration.d.ts.map +1 -1
- package/dist/resolvers/meetingRecordingRegistration.js +24 -8
- package/dist/resolvers/meetingRecordingRegistration.js.map +1 -1
- package/dist/resolvers/peaksSidecar.d.ts +4 -0
- package/dist/resolvers/peaksSidecar.d.ts.map +1 -1
- package/dist/resolvers/peaksSidecar.js +10 -2
- package/dist/resolvers/peaksSidecar.js.map +1 -1
- package/dist/rest/EntityCRUDHandler.d.ts +28 -0
- package/dist/rest/EntityCRUDHandler.d.ts.map +1 -1
- package/dist/rest/EntityCRUDHandler.js +20 -4
- package/dist/rest/EntityCRUDHandler.js.map +1 -1
- package/dist/rest/MediaStreamHandler.d.ts +2 -0
- package/dist/rest/MediaStreamHandler.d.ts.map +1 -1
- package/dist/rest/MediaStreamHandler.js +10 -6
- package/dist/rest/MediaStreamHandler.js.map +1 -1
- package/dist/rest/OAuthCallbackHandler.d.ts +9 -0
- package/dist/rest/OAuthCallbackHandler.d.ts.map +1 -1
- package/dist/rest/OAuthCallbackHandler.js +15 -3
- package/dist/rest/OAuthCallbackHandler.js.map +1 -1
- package/dist/rest/RESTEndpointHandler.d.ts +6 -4
- package/dist/rest/RESTEndpointHandler.d.ts.map +1 -1
- package/dist/rest/RESTEndpointHandler.js +15 -11
- package/dist/rest/RESTEndpointHandler.js.map +1 -1
- package/dist/rest/RealtimeSdpBrokerHandler.d.ts +5 -1
- package/dist/rest/RealtimeSdpBrokerHandler.d.ts.map +1 -1
- package/dist/rest/RealtimeSdpBrokerHandler.js +12 -4
- package/dist/rest/RealtimeSdpBrokerHandler.js.map +1 -1
- package/dist/rest/SignatureWebhookHandler.d.ts +2 -0
- package/dist/rest/SignatureWebhookHandler.d.ts.map +1 -1
- package/dist/rest/SignatureWebhookHandler.js +5 -1
- package/dist/rest/SignatureWebhookHandler.js.map +1 -1
- package/dist/rest/UploadTokenManager.d.ts +24 -8
- package/dist/rest/UploadTokenManager.d.ts.map +1 -1
- package/dist/rest/UploadTokenManager.js +53 -21
- package/dist/rest/UploadTokenManager.js.map +1 -1
- package/dist/rest/ViewOperationsHandler.d.ts +20 -0
- package/dist/rest/ViewOperationsHandler.d.ts.map +1 -1
- package/dist/rest/ViewOperationsHandler.js +20 -4
- package/dist/rest/ViewOperationsHandler.js.map +1 -1
- package/dist/rest/mediaRange.d.ts +4 -0
- package/dist/rest/mediaRange.d.ts.map +1 -1
- package/dist/rest/mediaRange.js +10 -2
- package/dist/rest/mediaRange.js.map +1 -1
- package/dist/rest/setupRESTEndpoints.d.ts +4 -0
- package/dist/rest/setupRESTEndpoints.d.ts.map +1 -1
- package/dist/rest/setupRESTEndpoints.js +13 -7
- package/dist/rest/setupRESTEndpoints.js.map +1 -1
- package/dist/serverExtensionReservedRoots.d.ts +2 -0
- package/dist/serverExtensionReservedRoots.d.ts.map +1 -1
- package/dist/serverExtensionReservedRoots.js +5 -1
- package/dist/serverExtensionReservedRoots.js.map +1 -1
- package/dist/services/MJStorageBlobStore.d.ts +41 -0
- package/dist/services/MJStorageBlobStore.d.ts.map +1 -0
- package/dist/services/MJStorageBlobStore.js +160 -0
- package/dist/services/MJStorageBlobStore.js.map +1 -0
- package/dist/services/TaskGraphActionRunner.d.ts +13 -8
- package/dist/services/TaskGraphActionRunner.d.ts.map +1 -1
- package/dist/services/TaskGraphActionRunner.js +16 -15
- package/dist/services/TaskGraphActionRunner.js.map +1 -1
- package/dist/types.d.ts +2 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +7 -3
- package/dist/types.js.map +1 -1
- package/dist/util.d.ts +12 -3
- package/dist/util.d.ts.map +1 -1
- package/dist/util.js +19 -8
- package/dist/util.js.map +1 -1
- package/package.json +92 -92
- package/src/__tests__/FileResolverPeaks.test.ts +13 -13
- package/src/__tests__/ListOperationsResolver.test.ts +17 -17
- package/src/__tests__/MediaStreamHandler.test.ts +28 -28
- package/src/__tests__/NoLog.test.ts +11 -11
- package/src/__tests__/PrimaryKeyAlwaysMapped.test.ts +10 -10
- package/src/__tests__/RESTEndpointHandler.test.ts +14 -14
- package/src/__tests__/RealtimeBridgeResolver.test.ts +4 -2
- package/src/__tests__/RealtimeClientSessionResolver.test.ts +229 -0
- package/src/__tests__/RealtimeSdpBrokerHandler.test.ts +6 -6
- package/src/__tests__/RefreshAdoptsNewColumns.test.ts +8 -8
- package/src/__tests__/RemoteBrowserGoalEngine.test.ts +18 -18
- package/src/__tests__/ResolverBase.isaPromotionCreate.test.ts +412 -0
- package/src/__tests__/RunAIAgentResolver.historyFrom.test.ts +228 -0
- package/src/__tests__/SearchEntitiesResolver.readOnlyFallback.test.ts +78 -0
- package/src/__tests__/TaskGraphActionRunner.durablePayload.test.ts +129 -0
- package/src/__tests__/TaskGraphFrameResolver.test.ts +2 -2
- package/src/__tests__/TransactionGroupResolver.refusals.test.ts +290 -0
- package/src/__tests__/WidgetSessionService.test.ts +8 -4
- package/src/__tests__/adhoc-query-helpers.test.ts +21 -21
- package/src/__tests__/bootAudit.test.ts +11 -11
- package/src/__tests__/boundaryLogPayload.test.ts +6 -6
- package/src/__tests__/databaseAbstraction.test.ts +12 -6
- package/src/__tests__/getDataTokenRedaction.test.ts +7 -7
- package/src/__tests__/initializeProviders.refresh.test.ts +4 -4
- package/src/__tests__/magicLink.test.ts +73 -134
- package/src/__tests__/magicLinkService.consume.test.ts +224 -0
- package/src/__tests__/meetingRecordingRegistration.test.ts +12 -12
- package/src/__tests__/metadataRefreshSignal.test.ts +78 -0
- package/src/__tests__/multiTenancy.security.test.ts +40 -40
- package/src/__tests__/multiTenancy.test.ts +18 -18
- package/src/__tests__/newUsers.test.ts +24 -23
- package/src/__tests__/principals.test.ts +22 -22
- package/src/__tests__/pushStatusResolver.filter.test.ts +8 -8
- package/src/__tests__/secretRedactor.failOpen.test.ts +12 -12
- package/src/__tests__/secretRedactor.test.ts +12 -12
- package/src/__tests__/serverExtensionReservedRoots.test.ts +7 -7
- package/src/__tests__/subscriptionRedaction.test.ts +5 -5
- package/src/__tests__/unifiedAuth.test.ts +15 -9
- package/src/__tests__/visitorIdentity.resolve.test.ts +6 -6
- package/src/__tests__/widget.test.ts +45 -45
- package/src/__tests__/widgetGuestElevation.test.ts +7 -7
- package/src/__tests__/widgetHostIdentity.test.ts +14 -14
- package/src/agentSessions/ReturningVisitorRecap.ts +12 -1
- package/src/agentSessions/SessionManager.ts +2 -2
- package/src/agentSessions/remoteBrowserGoalEngine.ts +30 -5
- package/src/auth/AuthProviderCatalogRouter.ts +6 -1
- package/src/auth/__tests__/backward-compatibility.test.ts +3 -3
- package/src/auth/exampleNewUserSubClass.ts +2 -2
- package/src/auth/index.ts +43 -28
- package/src/auth/initializeProviders.ts +25 -5
- package/src/auth/magicLink/MagicLinkRouter.ts +28 -10
- package/src/auth/magicLink/MagicLinkService.ts +71 -52
- package/src/auth/magicLink/index.ts +7 -7
- package/src/auth/magicLink/magicLinkCore.ts +96 -64
- package/src/auth/magicLink/redeemLanding.ts +14 -4
- package/src/auth/magicLink/types.ts +54 -54
- package/src/auth/newUsers.ts +1 -1
- package/src/auth/principals.ts +11 -2
- package/src/cache.ts +4 -1
- package/src/config.ts +14 -4
- package/src/context.ts +37 -24
- package/src/directives/Public.ts +4 -1
- package/src/directives/RequireSystemUser.ts +4 -1
- package/src/generated/graphql-schemas/__mj.ts +933 -5
- package/src/generic/CacheInvalidationResolver.ts +12 -4
- package/src/generic/FireAndForgetHeartbeat.ts +19 -14
- package/src/generic/PushStatusResolver.ts +21 -7
- package/src/generic/ResolverBase.ts +66 -5
- package/src/generic/RunViewResolver.ts +22 -22
- package/src/generic/__tests__/FireAndForgetHeartbeat.test.ts +7 -7
- package/src/index.ts +34 -7
- package/src/integration/CustomColumnPromoter.ts +6 -1
- package/src/integration/EntityMapLifecycle.ts +20 -2
- package/src/logging/NoLog.ts +16 -2
- package/src/logging/StartupLogger.ts +6 -1
- package/src/logging/bootAudit.ts +26 -16
- package/src/logging/boundaryLogPayload.ts +8 -1
- package/src/logging/secretRedactor.ts +14 -9
- package/src/logging/shortenForLog.ts +8 -3
- package/src/logging/variablesLoggingMiddleware.ts +9 -6
- package/src/metadataRefreshSignal.ts +45 -0
- package/src/middleware/MJTenantFilterMiddleware.ts +4 -4
- package/src/multiTenancy/index.ts +29 -5
- package/src/realtimeWidget/WidgetRouter.ts +15 -10
- package/src/realtimeWidget/WidgetSessionService.ts +76 -76
- package/src/realtimeWidget/host-identity.ts +24 -10
- package/src/realtimeWidget/index.ts +3 -3
- package/src/realtimeWidget/visitorIdentity.ts +39 -8
- package/src/realtimeWidget/widgetCore.ts +75 -10
- package/src/realtimeWidget/widgetGuestElevation.ts +25 -12
- package/src/resolvers/AdhocQueryResolver.ts +3 -3
- package/src/resolvers/AgentSessionResolver.ts +3 -3
- package/src/resolvers/ColorResolver.ts +6 -6
- package/src/resolvers/ComponentRegistryResolver.ts +36 -36
- package/src/resolvers/EntityCommunicationsResolver.ts +4 -4
- package/src/resolvers/ExecuteRemoteOperationResolver.ts +9 -9
- package/src/resolvers/FetchEntityVectorsResolver.ts +2 -2
- package/src/resolvers/FileResolver.ts +42 -42
- package/src/resolvers/GeoResolver.ts +4 -4
- package/src/resolvers/GetDataResolver.ts +50 -15
- package/src/resolvers/IntegrationDiscoveryResolver.ts +2 -2
- package/src/resolvers/ListOperationsResolver.ts +78 -28
- package/src/resolvers/MCPResolver.ts +30 -15
- package/src/resolvers/QueryResolver.ts +13 -13
- package/src/resolvers/QuerySystemUserResolver.ts +2 -1
- package/src/resolvers/RealtimeBridgeResolver.ts +3 -3
- package/src/resolvers/RealtimeClientSessionResolver.ts +126 -13
- package/src/resolvers/RemoteBrowserActionResolver.ts +5 -5
- package/src/resolvers/RunAIAgentResolver.ts +118 -76
- package/src/resolvers/RunAIPromptResolver.ts +22 -22
- package/src/resolvers/RunTemplateResolver.ts +4 -4
- package/src/resolvers/RunTestResolver.ts +25 -25
- package/src/resolvers/SearchEntitiesResolver.ts +3 -1
- package/src/resolvers/SearchKnowledgeResolver.ts +4 -0
- package/src/resolvers/SearchKnowledgeSystemUserResolver.ts +1 -0
- package/src/resolvers/SqlLoggingConfigResolver.ts +56 -56
- package/src/resolvers/TaskGraphFrameResolver.ts +37 -28
- package/src/resolvers/TelemetryResolver.ts +79 -79
- package/src/resolvers/TransactionGroupResolver.ts +57 -4
- package/src/resolvers/__tests__/GetDataResolver.tokens.test.ts +40 -38
- package/src/resolvers/__tests__/artifact-routing.test.ts +23 -23
- package/src/resolvers/adhoc-query-helpers.ts +19 -2
- package/src/resolvers/artifact-routing.ts +19 -19
- package/src/resolvers/meetingRecordingRegistration.ts +44 -10
- package/src/resolvers/peaksSidecar.ts +12 -2
- package/src/rest/EntityCRUDHandler.ts +24 -4
- package/src/rest/MediaStreamHandler.ts +11 -6
- package/src/rest/OAuthCallbackHandler.ts +25 -7
- package/src/rest/RESTEndpointHandler.ts +20 -15
- package/src/rest/RealtimeSdpBrokerHandler.ts +14 -4
- package/src/rest/SignatureWebhookHandler.ts +6 -1
- package/src/rest/UploadTokenManager.ts +66 -30
- package/src/rest/ViewOperationsHandler.ts +24 -4
- package/src/rest/mediaRange.ts +16 -6
- package/src/rest/setupRESTEndpoints.ts +24 -12
- package/src/serverExtensionReservedRoots.ts +6 -1
- package/src/services/MJStorageBlobStore.ts +209 -0
- package/src/services/TaskGraphActionRunner.ts +16 -15
- package/src/types.ts +21 -16
- package/src/util.ts +22 -9
|
@@ -22311,6 +22311,11 @@ __decorate([
|
|
|
22311
22311
|
MaxLength(25),
|
|
22312
22312
|
__metadata("design:type", String)
|
|
22313
22313
|
], MJAIPromptRun_.prototype, "ToolCallingMode", void 0);
|
|
22314
|
+
__decorate([
|
|
22315
|
+
Field({ nullable: true, description: `The user on whose behalf this prompt was executed, written when the run is created. NULL for automated/unauthenticated runs and for runs that pre-date this column. For an agent-driven run the agent run's user is also reachable through AIAgentRunStep.TargetLogID, which vwAIUsageFacts falls back to.` }),
|
|
22316
|
+
MaxLength(36),
|
|
22317
|
+
__metadata("design:type", String)
|
|
22318
|
+
], MJAIPromptRun_.prototype, "UserID", void 0);
|
|
22314
22319
|
__decorate([
|
|
22315
22320
|
Field({ nullable: true }),
|
|
22316
22321
|
MaxLength(255),
|
|
@@ -22371,6 +22376,11 @@ __decorate([
|
|
|
22371
22376
|
MaxLength(50),
|
|
22372
22377
|
__metadata("design:type", String)
|
|
22373
22378
|
], MJAIPromptRun_.prototype, "UsageType", void 0);
|
|
22379
|
+
__decorate([
|
|
22380
|
+
Field({ nullable: true }),
|
|
22381
|
+
MaxLength(100),
|
|
22382
|
+
__metadata("design:type", String)
|
|
22383
|
+
], MJAIPromptRun_.prototype, "User", void 0);
|
|
22374
22384
|
__decorate([
|
|
22375
22385
|
Field({ nullable: true }),
|
|
22376
22386
|
MaxLength(36),
|
|
@@ -22765,6 +22775,10 @@ __decorate([
|
|
|
22765
22775
|
Field({ nullable: true }),
|
|
22766
22776
|
__metadata("design:type", String)
|
|
22767
22777
|
], CreateMJAIPromptRunInput.prototype, "ToolCallingMode", void 0);
|
|
22778
|
+
__decorate([
|
|
22779
|
+
Field({ nullable: true }),
|
|
22780
|
+
__metadata("design:type", String)
|
|
22781
|
+
], CreateMJAIPromptRunInput.prototype, "UserID", void 0);
|
|
22768
22782
|
__decorate([
|
|
22769
22783
|
Field(() => RestoreContextInput, { nullable: true }),
|
|
22770
22784
|
__metadata("design:type", RestoreContextInput)
|
|
@@ -23138,6 +23152,10 @@ __decorate([
|
|
|
23138
23152
|
Field({ nullable: true }),
|
|
23139
23153
|
__metadata("design:type", String)
|
|
23140
23154
|
], UpdateMJAIPromptRunInput.prototype, "ToolCallingMode", void 0);
|
|
23155
|
+
__decorate([
|
|
23156
|
+
Field({ nullable: true }),
|
|
23157
|
+
__metadata("design:type", String)
|
|
23158
|
+
], UpdateMJAIPromptRunInput.prototype, "UserID", void 0);
|
|
23141
23159
|
__decorate([
|
|
23142
23160
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
23143
23161
|
__metadata("design:type", Array)
|
|
@@ -27327,6 +27345,10 @@ __decorate([
|
|
|
27327
27345
|
MaxLength(36),
|
|
27328
27346
|
__metadata("design:type", String)
|
|
27329
27347
|
], MJAIVendor_.prototype, "CredentialTypeID", void 0);
|
|
27348
|
+
__decorate([
|
|
27349
|
+
Field({ nullable: true, description: `Vendor configuration bag (JSON, IAIVendorConfiguration shape). Its ModelDefaults key is an IAIModelConfiguration bag (LLM / Realtime / Vision / Audio sections) that forms the default model configuration for every model this vendor serves: the vendor layer of the ModelConfiguration cascade, above AIModelType and AIModel and below AIModelVendor, which may override it per key. NULL = contributes nothing.` }),
|
|
27350
|
+
__metadata("design:type", String)
|
|
27351
|
+
], MJAIVendor_.prototype, "Configuration", void 0);
|
|
27330
27352
|
__decorate([
|
|
27331
27353
|
Field({ nullable: true }),
|
|
27332
27354
|
MaxLength(100),
|
|
@@ -27361,6 +27383,10 @@ __decorate([
|
|
|
27361
27383
|
Field({ nullable: true }),
|
|
27362
27384
|
__metadata("design:type", String)
|
|
27363
27385
|
], CreateMJAIVendorInput.prototype, "CredentialTypeID", void 0);
|
|
27386
|
+
__decorate([
|
|
27387
|
+
Field({ nullable: true }),
|
|
27388
|
+
__metadata("design:type", String)
|
|
27389
|
+
], CreateMJAIVendorInput.prototype, "Configuration", void 0);
|
|
27364
27390
|
__decorate([
|
|
27365
27391
|
Field(() => RestoreContextInput, { nullable: true }),
|
|
27366
27392
|
__metadata("design:type", RestoreContextInput)
|
|
@@ -27390,6 +27416,10 @@ __decorate([
|
|
|
27390
27416
|
Field({ nullable: true }),
|
|
27391
27417
|
__metadata("design:type", String)
|
|
27392
27418
|
], UpdateMJAIVendorInput.prototype, "CredentialTypeID", void 0);
|
|
27419
|
+
__decorate([
|
|
27420
|
+
Field({ nullable: true }),
|
|
27421
|
+
__metadata("design:type", String)
|
|
27422
|
+
], UpdateMJAIVendorInput.prototype, "Configuration", void 0);
|
|
27393
27423
|
__decorate([
|
|
27394
27424
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
27395
27425
|
__metadata("design:type", Array)
|
|
@@ -69465,6 +69495,15 @@ __decorate([
|
|
|
69465
69495
|
Field({ nullable: true, description: `Optional JSON configuration bag defining field-level policies and capabilities (shape = IEntityFieldConfiguration). Includes Hierarchy options (IsHierarchy, MaxDepth) to explicitly declare recursive tree hierarchies.` }),
|
|
69466
69496
|
__metadata("design:type", String)
|
|
69467
69497
|
], MJEntityField_.prototype, "Configuration", void 0);
|
|
69498
|
+
__decorate([
|
|
69499
|
+
Field({ nullable: true, description: `Optional SQL WHERE fragment applied to every lookup on this foreign key (e.g. Status = 'Active'), AND-ed with whatever the user types, on both the browse list and the search path. Lets a picker be scoped from metadata rather than from every form template that renders the field. Authored by hand — CodeGen never derives or overwrites it. NULL means no filter, which is the pre-feature behaviour.` }),
|
|
69500
|
+
__metadata("design:type", String)
|
|
69501
|
+
], MJEntityField_.prototype, "RelatedEntityFilter", void 0);
|
|
69502
|
+
__decorate([
|
|
69503
|
+
Field({ nullable: true, description: `Optional ORDER BY fragment for the empty-query browse list on this foreign key, e.g. [Name] or [LastActivityDate] DESC. Does not affect the typed-query path, which is ordered by search relevance. Authored by hand — CodeGen never derives or overwrites it. NULL means order by the related entity's name field.` }),
|
|
69504
|
+
MaxLength(500),
|
|
69505
|
+
__metadata("design:type", String)
|
|
69506
|
+
], MJEntityField_.prototype, "RelatedEntityOrderBy", void 0);
|
|
69468
69507
|
__decorate([
|
|
69469
69508
|
Field({ nullable: true }),
|
|
69470
69509
|
__metadata("design:type", String)
|
|
@@ -69750,6 +69789,14 @@ __decorate([
|
|
|
69750
69789
|
Field({ nullable: true }),
|
|
69751
69790
|
__metadata("design:type", String)
|
|
69752
69791
|
], CreateMJEntityFieldInput.prototype, "Configuration", void 0);
|
|
69792
|
+
__decorate([
|
|
69793
|
+
Field({ nullable: true }),
|
|
69794
|
+
__metadata("design:type", String)
|
|
69795
|
+
], CreateMJEntityFieldInput.prototype, "RelatedEntityFilter", void 0);
|
|
69796
|
+
__decorate([
|
|
69797
|
+
Field({ nullable: true }),
|
|
69798
|
+
__metadata("design:type", String)
|
|
69799
|
+
], CreateMJEntityFieldInput.prototype, "RelatedEntityOrderBy", void 0);
|
|
69753
69800
|
__decorate([
|
|
69754
69801
|
Field(() => RestoreContextInput, { nullable: true }),
|
|
69755
69802
|
__metadata("design:type", RestoreContextInput)
|
|
@@ -69975,6 +70022,14 @@ __decorate([
|
|
|
69975
70022
|
Field({ nullable: true }),
|
|
69976
70023
|
__metadata("design:type", String)
|
|
69977
70024
|
], UpdateMJEntityFieldInput.prototype, "Configuration", void 0);
|
|
70025
|
+
__decorate([
|
|
70026
|
+
Field({ nullable: true }),
|
|
70027
|
+
__metadata("design:type", String)
|
|
70028
|
+
], UpdateMJEntityFieldInput.prototype, "RelatedEntityFilter", void 0);
|
|
70029
|
+
__decorate([
|
|
70030
|
+
Field({ nullable: true }),
|
|
70031
|
+
__metadata("design:type", String)
|
|
70032
|
+
], UpdateMJEntityFieldInput.prototype, "RelatedEntityOrderBy", void 0);
|
|
69978
70033
|
__decorate([
|
|
69979
70034
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
69980
70035
|
__metadata("design:type", Array)
|
|
@@ -75494,6 +75549,865 @@ MJExternalDataSourceResolver = __decorate([
|
|
|
75494
75549
|
], MJExternalDataSourceResolver);
|
|
75495
75550
|
export { MJExternalDataSourceResolver };
|
|
75496
75551
|
//****************************************************************************
|
|
75552
|
+
// ENTITY CLASS for MJ: Feature Value Caches
|
|
75553
|
+
//****************************************************************************
|
|
75554
|
+
let MJFeatureValueCache_ = class MJFeatureValueCache_ {
|
|
75555
|
+
};
|
|
75556
|
+
__decorate([
|
|
75557
|
+
Field({ description: `Unique identifier for this feature value cache entry.` }),
|
|
75558
|
+
MaxLength(36),
|
|
75559
|
+
__metadata("design:type", String)
|
|
75560
|
+
], MJFeatureValueCache_.prototype, "ID", void 0);
|
|
75561
|
+
__decorate([
|
|
75562
|
+
Field({ nullable: true, description: `Optional reference to the RecordProcess that produced this cache entry. When NULL, the cached result is scoped by PromptID only and shared across pipelines using the same prompt.` }),
|
|
75563
|
+
MaxLength(36),
|
|
75564
|
+
__metadata("design:type", String)
|
|
75565
|
+
], MJFeatureValueCache_.prototype, "RecordProcessID", void 0);
|
|
75566
|
+
__decorate([
|
|
75567
|
+
Field({ nullable: true, description: `Reference to the AI Prompt used to compute this cached entry.` }),
|
|
75568
|
+
MaxLength(36),
|
|
75569
|
+
__metadata("design:type", String)
|
|
75570
|
+
], MJFeatureValueCache_.prototype, "PromptID", void 0);
|
|
75571
|
+
__decorate([
|
|
75572
|
+
Field({ nullable: true, description: `SHA-256 content hash of the rendered prompt template, output schema, and constraint instructions at execution time.` }),
|
|
75573
|
+
MaxLength(64),
|
|
75574
|
+
__metadata("design:type", String)
|
|
75575
|
+
], MJFeatureValueCache_.prototype, "PromptVersionHash", void 0);
|
|
75576
|
+
__decorate([
|
|
75577
|
+
Field({ nullable: true, description: `SHA-256 hash of the output value constraint definitions. Changes to allowed enum values or ranges invalidate cached results.` }),
|
|
75578
|
+
MaxLength(64),
|
|
75579
|
+
__metadata("design:type", String)
|
|
75580
|
+
], MJFeatureValueCache_.prototype, "ConstraintHash", void 0);
|
|
75581
|
+
__decorate([
|
|
75582
|
+
Field({ nullable: true, description: `SHA-256 hash over the canonicalized JSON key field values. The primary lookup key.` }),
|
|
75583
|
+
MaxLength(64),
|
|
75584
|
+
__metadata("design:type", String)
|
|
75585
|
+
], MJFeatureValueCache_.prototype, "KeyHash", void 0);
|
|
75586
|
+
__decorate([
|
|
75587
|
+
Field({ nullable: true, description: `Human-readable plain text display of the key (e.g. "Senior Director, Field Marketing"). Makes this table legible as reference data.` }),
|
|
75588
|
+
MaxLength(500),
|
|
75589
|
+
__metadata("design:type", String)
|
|
75590
|
+
], MJFeatureValueCache_.prototype, "KeyDisplay", void 0);
|
|
75591
|
+
__decorate([
|
|
75592
|
+
Field({ nullable: true, description: `Full JSON representation of the input key fields and their values.` }),
|
|
75593
|
+
__metadata("design:type", String)
|
|
75594
|
+
], MJFeatureValueCache_.prototype, "KeyJSON", void 0);
|
|
75595
|
+
__decorate([
|
|
75596
|
+
Field({ nullable: true, description: `Cached computed outputs JSON fragment. Stored directly so archival of AI Prompt Runs does not lose cached values.` }),
|
|
75597
|
+
__metadata("design:type", String)
|
|
75598
|
+
], MJFeatureValueCache_.prototype, "OutputsJSON", void 0);
|
|
75599
|
+
__decorate([
|
|
75600
|
+
Field({ nullable: true, description: `Optional model reasoning or rationale captured from the prompt execution.` }),
|
|
75601
|
+
__metadata("design:type", String)
|
|
75602
|
+
], MJFeatureValueCache_.prototype, "Reasoning", void 0);
|
|
75603
|
+
__decorate([
|
|
75604
|
+
Field({ nullable: true, description: `Soft reference to the AI Prompt Run that first computed and populated this cached result.` }),
|
|
75605
|
+
MaxLength(36),
|
|
75606
|
+
__metadata("design:type", String)
|
|
75607
|
+
], MJFeatureValueCache_.prototype, "AIPromptRunID", void 0);
|
|
75608
|
+
__decorate([
|
|
75609
|
+
Field(() => Int, { nullable: true, description: `Total number of times this cached result has been served to skip an LLM invocation.` }),
|
|
75610
|
+
__metadata("design:type", Number)
|
|
75611
|
+
], MJFeatureValueCache_.prototype, "HitCount", void 0);
|
|
75612
|
+
__decorate([
|
|
75613
|
+
Field({ nullable: true, description: `Timestamp when this cached entry was last read and served.` }),
|
|
75614
|
+
__metadata("design:type", Date)
|
|
75615
|
+
], MJFeatureValueCache_.prototype, "LastHitAt", void 0);
|
|
75616
|
+
__decorate([
|
|
75617
|
+
Field({ nullable: true, description: `Timestamp when this cached entry was originally computed.` }),
|
|
75618
|
+
__metadata("design:type", Date)
|
|
75619
|
+
], MJFeatureValueCache_.prototype, "ComputedAt", void 0);
|
|
75620
|
+
__decorate([
|
|
75621
|
+
Field({ nullable: true, description: `Optional expiration timestamp for time-to-live invalidation. NULL means no expiration.` }),
|
|
75622
|
+
__metadata("design:type", Date)
|
|
75623
|
+
], MJFeatureValueCache_.prototype, "ExpiresAt", void 0);
|
|
75624
|
+
__decorate([
|
|
75625
|
+
Field({ description: `Timestamp when this record was created.` }),
|
|
75626
|
+
__metadata("design:type", Date)
|
|
75627
|
+
], MJFeatureValueCache_.prototype, "_mj__CreatedAt", void 0);
|
|
75628
|
+
__decorate([
|
|
75629
|
+
Field({ description: `Timestamp when this record was last updated.` }),
|
|
75630
|
+
__metadata("design:type", Date)
|
|
75631
|
+
], MJFeatureValueCache_.prototype, "_mj__UpdatedAt", void 0);
|
|
75632
|
+
__decorate([
|
|
75633
|
+
Field({ nullable: true }),
|
|
75634
|
+
MaxLength(255),
|
|
75635
|
+
__metadata("design:type", String)
|
|
75636
|
+
], MJFeatureValueCache_.prototype, "RecordProcess", void 0);
|
|
75637
|
+
__decorate([
|
|
75638
|
+
Field({ nullable: true }),
|
|
75639
|
+
MaxLength(255),
|
|
75640
|
+
__metadata("design:type", String)
|
|
75641
|
+
], MJFeatureValueCache_.prototype, "Prompt", void 0);
|
|
75642
|
+
__decorate([
|
|
75643
|
+
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.` }),
|
|
75644
|
+
__metadata("design:type", Array)
|
|
75645
|
+
], MJFeatureValueCache_.prototype, "ReadableFields___", void 0);
|
|
75646
|
+
MJFeatureValueCache_ = __decorate([
|
|
75647
|
+
ObjectType({ description: `Dedup dictionary table for Feature Pipelines. Caches computed outputs by canonical input key hash, prompt version, and constraint hash. Distinct input strings (e.g. unique job titles) are computed once and reused across all matching records.` })
|
|
75648
|
+
], MJFeatureValueCache_);
|
|
75649
|
+
export { MJFeatureValueCache_ };
|
|
75650
|
+
//****************************************************************************
|
|
75651
|
+
// INPUT TYPE for MJ: Feature Value Caches
|
|
75652
|
+
//****************************************************************************
|
|
75653
|
+
let CreateMJFeatureValueCacheInput = class CreateMJFeatureValueCacheInput {
|
|
75654
|
+
};
|
|
75655
|
+
__decorate([
|
|
75656
|
+
Field({ nullable: true }),
|
|
75657
|
+
__metadata("design:type", String)
|
|
75658
|
+
], CreateMJFeatureValueCacheInput.prototype, "ID", void 0);
|
|
75659
|
+
__decorate([
|
|
75660
|
+
Field({ nullable: true }),
|
|
75661
|
+
__metadata("design:type", String)
|
|
75662
|
+
], CreateMJFeatureValueCacheInput.prototype, "RecordProcessID", void 0);
|
|
75663
|
+
__decorate([
|
|
75664
|
+
Field({ nullable: true }),
|
|
75665
|
+
__metadata("design:type", String)
|
|
75666
|
+
], CreateMJFeatureValueCacheInput.prototype, "PromptID", void 0);
|
|
75667
|
+
__decorate([
|
|
75668
|
+
Field({ nullable: true }),
|
|
75669
|
+
__metadata("design:type", String)
|
|
75670
|
+
], CreateMJFeatureValueCacheInput.prototype, "PromptVersionHash", void 0);
|
|
75671
|
+
__decorate([
|
|
75672
|
+
Field({ nullable: true }),
|
|
75673
|
+
__metadata("design:type", String)
|
|
75674
|
+
], CreateMJFeatureValueCacheInput.prototype, "ConstraintHash", void 0);
|
|
75675
|
+
__decorate([
|
|
75676
|
+
Field({ nullable: true }),
|
|
75677
|
+
__metadata("design:type", String)
|
|
75678
|
+
], CreateMJFeatureValueCacheInput.prototype, "KeyHash", void 0);
|
|
75679
|
+
__decorate([
|
|
75680
|
+
Field({ nullable: true }),
|
|
75681
|
+
__metadata("design:type", String)
|
|
75682
|
+
], CreateMJFeatureValueCacheInput.prototype, "KeyDisplay", void 0);
|
|
75683
|
+
__decorate([
|
|
75684
|
+
Field({ nullable: true }),
|
|
75685
|
+
__metadata("design:type", String)
|
|
75686
|
+
], CreateMJFeatureValueCacheInput.prototype, "KeyJSON", void 0);
|
|
75687
|
+
__decorate([
|
|
75688
|
+
Field({ nullable: true }),
|
|
75689
|
+
__metadata("design:type", String)
|
|
75690
|
+
], CreateMJFeatureValueCacheInput.prototype, "OutputsJSON", void 0);
|
|
75691
|
+
__decorate([
|
|
75692
|
+
Field({ nullable: true }),
|
|
75693
|
+
__metadata("design:type", String)
|
|
75694
|
+
], CreateMJFeatureValueCacheInput.prototype, "Reasoning", void 0);
|
|
75695
|
+
__decorate([
|
|
75696
|
+
Field({ nullable: true }),
|
|
75697
|
+
__metadata("design:type", String)
|
|
75698
|
+
], CreateMJFeatureValueCacheInput.prototype, "AIPromptRunID", void 0);
|
|
75699
|
+
__decorate([
|
|
75700
|
+
Field(() => Int, { nullable: true }),
|
|
75701
|
+
__metadata("design:type", Number)
|
|
75702
|
+
], CreateMJFeatureValueCacheInput.prototype, "HitCount", void 0);
|
|
75703
|
+
__decorate([
|
|
75704
|
+
Field({ nullable: true }),
|
|
75705
|
+
__metadata("design:type", Date)
|
|
75706
|
+
], CreateMJFeatureValueCacheInput.prototype, "LastHitAt", void 0);
|
|
75707
|
+
__decorate([
|
|
75708
|
+
Field({ nullable: true }),
|
|
75709
|
+
__metadata("design:type", Date)
|
|
75710
|
+
], CreateMJFeatureValueCacheInput.prototype, "ComputedAt", void 0);
|
|
75711
|
+
__decorate([
|
|
75712
|
+
Field({ nullable: true }),
|
|
75713
|
+
__metadata("design:type", Date)
|
|
75714
|
+
], CreateMJFeatureValueCacheInput.prototype, "ExpiresAt", void 0);
|
|
75715
|
+
__decorate([
|
|
75716
|
+
Field(() => RestoreContextInput, { nullable: true }),
|
|
75717
|
+
__metadata("design:type", RestoreContextInput)
|
|
75718
|
+
], CreateMJFeatureValueCacheInput.prototype, "RestoreContext___", void 0);
|
|
75719
|
+
CreateMJFeatureValueCacheInput = __decorate([
|
|
75720
|
+
InputType()
|
|
75721
|
+
], CreateMJFeatureValueCacheInput);
|
|
75722
|
+
export { CreateMJFeatureValueCacheInput };
|
|
75723
|
+
//****************************************************************************
|
|
75724
|
+
// INPUT TYPE for MJ: Feature Value Caches
|
|
75725
|
+
//****************************************************************************
|
|
75726
|
+
let UpdateMJFeatureValueCacheInput = class UpdateMJFeatureValueCacheInput {
|
|
75727
|
+
};
|
|
75728
|
+
__decorate([
|
|
75729
|
+
Field(),
|
|
75730
|
+
__metadata("design:type", String)
|
|
75731
|
+
], UpdateMJFeatureValueCacheInput.prototype, "ID", void 0);
|
|
75732
|
+
__decorate([
|
|
75733
|
+
Field({ nullable: true }),
|
|
75734
|
+
__metadata("design:type", String)
|
|
75735
|
+
], UpdateMJFeatureValueCacheInput.prototype, "RecordProcessID", void 0);
|
|
75736
|
+
__decorate([
|
|
75737
|
+
Field({ nullable: true }),
|
|
75738
|
+
__metadata("design:type", String)
|
|
75739
|
+
], UpdateMJFeatureValueCacheInput.prototype, "PromptID", void 0);
|
|
75740
|
+
__decorate([
|
|
75741
|
+
Field({ nullable: true }),
|
|
75742
|
+
__metadata("design:type", String)
|
|
75743
|
+
], UpdateMJFeatureValueCacheInput.prototype, "PromptVersionHash", void 0);
|
|
75744
|
+
__decorate([
|
|
75745
|
+
Field({ nullable: true }),
|
|
75746
|
+
__metadata("design:type", String)
|
|
75747
|
+
], UpdateMJFeatureValueCacheInput.prototype, "ConstraintHash", void 0);
|
|
75748
|
+
__decorate([
|
|
75749
|
+
Field({ nullable: true }),
|
|
75750
|
+
__metadata("design:type", String)
|
|
75751
|
+
], UpdateMJFeatureValueCacheInput.prototype, "KeyHash", void 0);
|
|
75752
|
+
__decorate([
|
|
75753
|
+
Field({ nullable: true }),
|
|
75754
|
+
__metadata("design:type", String)
|
|
75755
|
+
], UpdateMJFeatureValueCacheInput.prototype, "KeyDisplay", void 0);
|
|
75756
|
+
__decorate([
|
|
75757
|
+
Field({ nullable: true }),
|
|
75758
|
+
__metadata("design:type", String)
|
|
75759
|
+
], UpdateMJFeatureValueCacheInput.prototype, "KeyJSON", void 0);
|
|
75760
|
+
__decorate([
|
|
75761
|
+
Field({ nullable: true }),
|
|
75762
|
+
__metadata("design:type", String)
|
|
75763
|
+
], UpdateMJFeatureValueCacheInput.prototype, "OutputsJSON", void 0);
|
|
75764
|
+
__decorate([
|
|
75765
|
+
Field({ nullable: true }),
|
|
75766
|
+
__metadata("design:type", String)
|
|
75767
|
+
], UpdateMJFeatureValueCacheInput.prototype, "Reasoning", void 0);
|
|
75768
|
+
__decorate([
|
|
75769
|
+
Field({ nullable: true }),
|
|
75770
|
+
__metadata("design:type", String)
|
|
75771
|
+
], UpdateMJFeatureValueCacheInput.prototype, "AIPromptRunID", void 0);
|
|
75772
|
+
__decorate([
|
|
75773
|
+
Field(() => Int, { nullable: true }),
|
|
75774
|
+
__metadata("design:type", Number)
|
|
75775
|
+
], UpdateMJFeatureValueCacheInput.prototype, "HitCount", void 0);
|
|
75776
|
+
__decorate([
|
|
75777
|
+
Field({ nullable: true }),
|
|
75778
|
+
__metadata("design:type", Date)
|
|
75779
|
+
], UpdateMJFeatureValueCacheInput.prototype, "LastHitAt", void 0);
|
|
75780
|
+
__decorate([
|
|
75781
|
+
Field({ nullable: true }),
|
|
75782
|
+
__metadata("design:type", Date)
|
|
75783
|
+
], UpdateMJFeatureValueCacheInput.prototype, "ComputedAt", void 0);
|
|
75784
|
+
__decorate([
|
|
75785
|
+
Field({ nullable: true }),
|
|
75786
|
+
__metadata("design:type", Date)
|
|
75787
|
+
], UpdateMJFeatureValueCacheInput.prototype, "ExpiresAt", void 0);
|
|
75788
|
+
__decorate([
|
|
75789
|
+
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
75790
|
+
__metadata("design:type", Array)
|
|
75791
|
+
], UpdateMJFeatureValueCacheInput.prototype, "OldValues___", void 0);
|
|
75792
|
+
__decorate([
|
|
75793
|
+
Field(() => RestoreContextInput, { nullable: true }),
|
|
75794
|
+
__metadata("design:type", RestoreContextInput)
|
|
75795
|
+
], UpdateMJFeatureValueCacheInput.prototype, "RestoreContext___", void 0);
|
|
75796
|
+
UpdateMJFeatureValueCacheInput = __decorate([
|
|
75797
|
+
InputType()
|
|
75798
|
+
], UpdateMJFeatureValueCacheInput);
|
|
75799
|
+
export { UpdateMJFeatureValueCacheInput };
|
|
75800
|
+
//****************************************************************************
|
|
75801
|
+
// RESOLVER for MJ: Feature Value Caches
|
|
75802
|
+
//****************************************************************************
|
|
75803
|
+
let RunMJFeatureValueCacheViewResult = class RunMJFeatureValueCacheViewResult {
|
|
75804
|
+
};
|
|
75805
|
+
__decorate([
|
|
75806
|
+
Field(() => [MJFeatureValueCache_]),
|
|
75807
|
+
__metadata("design:type", Array)
|
|
75808
|
+
], RunMJFeatureValueCacheViewResult.prototype, "Results", void 0);
|
|
75809
|
+
__decorate([
|
|
75810
|
+
Field(() => String, { nullable: true }),
|
|
75811
|
+
__metadata("design:type", String)
|
|
75812
|
+
], RunMJFeatureValueCacheViewResult.prototype, "UserViewRunID", void 0);
|
|
75813
|
+
__decorate([
|
|
75814
|
+
Field(() => Int, { nullable: true }),
|
|
75815
|
+
__metadata("design:type", Number)
|
|
75816
|
+
], RunMJFeatureValueCacheViewResult.prototype, "RowCount", void 0);
|
|
75817
|
+
__decorate([
|
|
75818
|
+
Field(() => Int, { nullable: true }),
|
|
75819
|
+
__metadata("design:type", Number)
|
|
75820
|
+
], RunMJFeatureValueCacheViewResult.prototype, "TotalRowCount", void 0);
|
|
75821
|
+
__decorate([
|
|
75822
|
+
Field(() => Int, { nullable: true }),
|
|
75823
|
+
__metadata("design:type", Number)
|
|
75824
|
+
], RunMJFeatureValueCacheViewResult.prototype, "ExecutionTime", void 0);
|
|
75825
|
+
__decorate([
|
|
75826
|
+
Field({ nullable: true }),
|
|
75827
|
+
__metadata("design:type", String)
|
|
75828
|
+
], RunMJFeatureValueCacheViewResult.prototype, "ErrorMessage", void 0);
|
|
75829
|
+
__decorate([
|
|
75830
|
+
Field(() => Boolean, { nullable: false }),
|
|
75831
|
+
__metadata("design:type", Boolean)
|
|
75832
|
+
], RunMJFeatureValueCacheViewResult.prototype, "Success", void 0);
|
|
75833
|
+
RunMJFeatureValueCacheViewResult = __decorate([
|
|
75834
|
+
ObjectType()
|
|
75835
|
+
], RunMJFeatureValueCacheViewResult);
|
|
75836
|
+
export { RunMJFeatureValueCacheViewResult };
|
|
75837
|
+
let MJFeatureValueCacheResolver = class MJFeatureValueCacheResolver extends ResolverBase {
|
|
75838
|
+
async RunMJFeatureValueCacheViewByID(input, { providers, userPayload }, pubSub) {
|
|
75839
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
75840
|
+
return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
|
|
75841
|
+
}
|
|
75842
|
+
async RunMJFeatureValueCacheViewByName(input, { providers, userPayload }, pubSub) {
|
|
75843
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
75844
|
+
return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
|
|
75845
|
+
}
|
|
75846
|
+
async RunMJFeatureValueCacheDynamicView(input, { providers, userPayload }, pubSub) {
|
|
75847
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
75848
|
+
input.EntityName = 'MJ: Feature Value Caches';
|
|
75849
|
+
return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
|
|
75850
|
+
}
|
|
75851
|
+
async MJFeatureValueCache(ID, { userPayload, providers }, pubSub) {
|
|
75852
|
+
this.CheckUserReadPermissions('MJ: Feature Value Caches', userPayload);
|
|
75853
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
75854
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwFeatureValueCaches')} WHERE ${provider.QuoteIdentifier('ID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Feature Value Caches', userPayload, EntityPermissionType.Read, 'AND');
|
|
75855
|
+
const rows = await provider.ExecuteSQL(sSQL, [ID], undefined, this.GetUserFromPayload(userPayload));
|
|
75856
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Feature Value Caches', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
75857
|
+
return result;
|
|
75858
|
+
}
|
|
75859
|
+
async CreateMJFeatureValueCache(input, { providers, userPayload }, pubSub) {
|
|
75860
|
+
const provider = GetReadWriteProvider(providers);
|
|
75861
|
+
return this.CreateRecord('MJ: Feature Value Caches', input, provider, userPayload, pubSub);
|
|
75862
|
+
}
|
|
75863
|
+
async UpdateMJFeatureValueCache(input, { providers, userPayload }, pubSub) {
|
|
75864
|
+
const provider = GetReadWriteProvider(providers);
|
|
75865
|
+
return this.UpdateRecord('MJ: Feature Value Caches', input, provider, userPayload, pubSub);
|
|
75866
|
+
}
|
|
75867
|
+
async DeleteMJFeatureValueCache(ID, options, { providers, userPayload }, pubSub) {
|
|
75868
|
+
const provider = GetReadWriteProvider(providers);
|
|
75869
|
+
const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
|
|
75870
|
+
return this.DeleteRecord('MJ: Feature Value Caches', key, options, provider, userPayload, pubSub);
|
|
75871
|
+
}
|
|
75872
|
+
};
|
|
75873
|
+
__decorate([
|
|
75874
|
+
Query(() => RunMJFeatureValueCacheViewResult),
|
|
75875
|
+
__param(0, Arg('input', () => RunViewByIDInput)),
|
|
75876
|
+
__param(1, Ctx()),
|
|
75877
|
+
__param(2, PubSub()),
|
|
75878
|
+
__metadata("design:type", Function),
|
|
75879
|
+
__metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
|
|
75880
|
+
__metadata("design:returntype", Promise)
|
|
75881
|
+
], MJFeatureValueCacheResolver.prototype, "RunMJFeatureValueCacheViewByID", null);
|
|
75882
|
+
__decorate([
|
|
75883
|
+
Query(() => RunMJFeatureValueCacheViewResult),
|
|
75884
|
+
__param(0, Arg('input', () => RunViewByNameInput)),
|
|
75885
|
+
__param(1, Ctx()),
|
|
75886
|
+
__param(2, PubSub()),
|
|
75887
|
+
__metadata("design:type", Function),
|
|
75888
|
+
__metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
|
|
75889
|
+
__metadata("design:returntype", Promise)
|
|
75890
|
+
], MJFeatureValueCacheResolver.prototype, "RunMJFeatureValueCacheViewByName", null);
|
|
75891
|
+
__decorate([
|
|
75892
|
+
Query(() => RunMJFeatureValueCacheViewResult),
|
|
75893
|
+
__param(0, Arg('input', () => RunDynamicViewInput)),
|
|
75894
|
+
__param(1, Ctx()),
|
|
75895
|
+
__param(2, PubSub()),
|
|
75896
|
+
__metadata("design:type", Function),
|
|
75897
|
+
__metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
|
|
75898
|
+
__metadata("design:returntype", Promise)
|
|
75899
|
+
], MJFeatureValueCacheResolver.prototype, "RunMJFeatureValueCacheDynamicView", null);
|
|
75900
|
+
__decorate([
|
|
75901
|
+
Query(() => MJFeatureValueCache_, { nullable: true }),
|
|
75902
|
+
__param(0, Arg('ID', () => String)),
|
|
75903
|
+
__param(1, Ctx()),
|
|
75904
|
+
__param(2, PubSub()),
|
|
75905
|
+
__metadata("design:type", Function),
|
|
75906
|
+
__metadata("design:paramtypes", [String, Object, PubSubEngine]),
|
|
75907
|
+
__metadata("design:returntype", Promise)
|
|
75908
|
+
], MJFeatureValueCacheResolver.prototype, "MJFeatureValueCache", null);
|
|
75909
|
+
__decorate([
|
|
75910
|
+
Mutation(() => MJFeatureValueCache_),
|
|
75911
|
+
__param(0, Arg('input', () => CreateMJFeatureValueCacheInput)),
|
|
75912
|
+
__param(1, Ctx()),
|
|
75913
|
+
__param(2, PubSub()),
|
|
75914
|
+
__metadata("design:type", Function),
|
|
75915
|
+
__metadata("design:paramtypes", [CreateMJFeatureValueCacheInput, Object, PubSubEngine]),
|
|
75916
|
+
__metadata("design:returntype", Promise)
|
|
75917
|
+
], MJFeatureValueCacheResolver.prototype, "CreateMJFeatureValueCache", null);
|
|
75918
|
+
__decorate([
|
|
75919
|
+
Mutation(() => MJFeatureValueCache_),
|
|
75920
|
+
__param(0, Arg('input', () => UpdateMJFeatureValueCacheInput)),
|
|
75921
|
+
__param(1, Ctx()),
|
|
75922
|
+
__param(2, PubSub()),
|
|
75923
|
+
__metadata("design:type", Function),
|
|
75924
|
+
__metadata("design:paramtypes", [UpdateMJFeatureValueCacheInput, Object, PubSubEngine]),
|
|
75925
|
+
__metadata("design:returntype", Promise)
|
|
75926
|
+
], MJFeatureValueCacheResolver.prototype, "UpdateMJFeatureValueCache", null);
|
|
75927
|
+
__decorate([
|
|
75928
|
+
Mutation(() => MJFeatureValueCache_),
|
|
75929
|
+
__param(0, Arg('ID', () => String)),
|
|
75930
|
+
__param(1, Arg('options___', () => DeleteOptionsInput)),
|
|
75931
|
+
__param(2, Ctx()),
|
|
75932
|
+
__param(3, PubSub()),
|
|
75933
|
+
__metadata("design:type", Function),
|
|
75934
|
+
__metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
|
|
75935
|
+
__metadata("design:returntype", Promise)
|
|
75936
|
+
], MJFeatureValueCacheResolver.prototype, "DeleteMJFeatureValueCache", null);
|
|
75937
|
+
MJFeatureValueCacheResolver = __decorate([
|
|
75938
|
+
Resolver(MJFeatureValueCache_)
|
|
75939
|
+
], MJFeatureValueCacheResolver);
|
|
75940
|
+
export { MJFeatureValueCacheResolver };
|
|
75941
|
+
//****************************************************************************
|
|
75942
|
+
// ENTITY CLASS for MJ: Feature Values
|
|
75943
|
+
//****************************************************************************
|
|
75944
|
+
let MJFeatureValue_ = class MJFeatureValue_ {
|
|
75945
|
+
};
|
|
75946
|
+
__decorate([
|
|
75947
|
+
Field({ description: `Unique identifier for this feature value history record.` }),
|
|
75948
|
+
MaxLength(36),
|
|
75949
|
+
__metadata("design:type", String)
|
|
75950
|
+
], MJFeatureValue_.prototype, "ID", void 0);
|
|
75951
|
+
__decorate([
|
|
75952
|
+
Field({ nullable: true, description: `The Record Process (Feature Pipeline) that computed this feature value.` }),
|
|
75953
|
+
MaxLength(36),
|
|
75954
|
+
__metadata("design:type", String)
|
|
75955
|
+
], MJFeatureValue_.prototype, "RecordProcessID", void 0);
|
|
75956
|
+
__decorate([
|
|
75957
|
+
Field({ nullable: true, description: `The entity of the record this feature was computed for.` }),
|
|
75958
|
+
MaxLength(36),
|
|
75959
|
+
__metadata("design:type", String)
|
|
75960
|
+
], MJFeatureValue_.prototype, "EntityID", void 0);
|
|
75961
|
+
__decorate([
|
|
75962
|
+
Field({ nullable: true, description: `Serialized primary key of the record this feature was computed for. Matches ProcessRunDetail.RecordID.` }),
|
|
75963
|
+
MaxLength(900),
|
|
75964
|
+
__metadata("design:type", String)
|
|
75965
|
+
], MJFeatureValue_.prototype, "RecordID", void 0);
|
|
75966
|
+
__decorate([
|
|
75967
|
+
Field({ nullable: true, description: `Name of the feature, matching DataFeatureOutput.Name.` }),
|
|
75968
|
+
MaxLength(255),
|
|
75969
|
+
__metadata("design:type", String)
|
|
75970
|
+
], MJFeatureValue_.prototype, "FeatureName", void 0);
|
|
75971
|
+
__decorate([
|
|
75972
|
+
Field({ nullable: true, description: `Computed value as text, for text and categorical features.` }),
|
|
75973
|
+
__metadata("design:type", String)
|
|
75974
|
+
], MJFeatureValue_.prototype, "ValueText", void 0);
|
|
75975
|
+
__decorate([
|
|
75976
|
+
Field(() => Float, { nullable: true, description: `Computed value as floating-point numeric, for numeric and score features.` }),
|
|
75977
|
+
__metadata("design:type", Number)
|
|
75978
|
+
], MJFeatureValue_.prototype, "ValueNumeric", void 0);
|
|
75979
|
+
__decorate([
|
|
75980
|
+
Field({ nullable: true, description: `Computed value as datetimeoffset, for date and timestamp features.` }),
|
|
75981
|
+
__metadata("design:type", Date)
|
|
75982
|
+
], MJFeatureValue_.prototype, "ValueDate", void 0);
|
|
75983
|
+
__decorate([
|
|
75984
|
+
Field(() => Boolean, { nullable: true, description: `Computed value as boolean bit flag.` }),
|
|
75985
|
+
__metadata("design:type", Boolean)
|
|
75986
|
+
], MJFeatureValue_.prototype, "ValueBoolean", void 0);
|
|
75987
|
+
__decorate([
|
|
75988
|
+
Field({ nullable: true, description: `Computed value as raw JSON string, for array or complex object features.` }),
|
|
75989
|
+
__metadata("design:type", String)
|
|
75990
|
+
], MJFeatureValue_.prototype, "ValueJSON", void 0);
|
|
75991
|
+
__decorate([
|
|
75992
|
+
Field({ nullable: true, description: `Optional model reasoning or rationale captured from the prompt execution.` }),
|
|
75993
|
+
__metadata("design:type", String)
|
|
75994
|
+
], MJFeatureValue_.prototype, "Reasoning", void 0);
|
|
75995
|
+
__decorate([
|
|
75996
|
+
Field(() => Float, { nullable: true, description: `Optional confidence score associated with this computed value.` }),
|
|
75997
|
+
__metadata("design:type", Number)
|
|
75998
|
+
], MJFeatureValue_.prototype, "Confidence", void 0);
|
|
75999
|
+
__decorate([
|
|
76000
|
+
Field({ nullable: true, description: `Reference to the AI Prompt used to compute this feature value.` }),
|
|
76001
|
+
MaxLength(36),
|
|
76002
|
+
__metadata("design:type", String)
|
|
76003
|
+
], MJFeatureValue_.prototype, "PromptID", void 0);
|
|
76004
|
+
__decorate([
|
|
76005
|
+
Field({ nullable: true, description: `SHA-256 content hash of the rendered prompt template and instructions at execution time.` }),
|
|
76006
|
+
MaxLength(64),
|
|
76007
|
+
__metadata("design:type", String)
|
|
76008
|
+
], MJFeatureValue_.prototype, "PromptVersionHash", void 0);
|
|
76009
|
+
__decorate([
|
|
76010
|
+
Field({ nullable: true, description: `SHA-256 hash of the value constraint definitions in effect when this feature was computed.` }),
|
|
76011
|
+
MaxLength(64),
|
|
76012
|
+
__metadata("design:type", String)
|
|
76013
|
+
], MJFeatureValue_.prototype, "ConstraintHash", void 0);
|
|
76014
|
+
__decorate([
|
|
76015
|
+
Field({ nullable: true, description: `Reference to the Process Run during which this feature was computed.` }),
|
|
76016
|
+
MaxLength(36),
|
|
76017
|
+
__metadata("design:type", String)
|
|
76018
|
+
], MJFeatureValue_.prototype, "ProcessRunID", void 0);
|
|
76019
|
+
__decorate([
|
|
76020
|
+
Field({ nullable: true, description: `Reference to the specific Process Run Detail row for this record execution.` }),
|
|
76021
|
+
MaxLength(36),
|
|
76022
|
+
__metadata("design:type", String)
|
|
76023
|
+
], MJFeatureValue_.prototype, "ProcessRunDetailID", void 0);
|
|
76024
|
+
__decorate([
|
|
76025
|
+
Field({ nullable: true, description: `Soft reference to the AI Prompt Run that computed this value.` }),
|
|
76026
|
+
MaxLength(36),
|
|
76027
|
+
__metadata("design:type", String)
|
|
76028
|
+
], MJFeatureValue_.prototype, "AIPromptRunID", void 0);
|
|
76029
|
+
__decorate([
|
|
76030
|
+
Field({ nullable: true, description: `Optional reference to the FeatureValueCache entry if this value was served from cache.` }),
|
|
76031
|
+
MaxLength(36),
|
|
76032
|
+
__metadata("design:type", String)
|
|
76033
|
+
], MJFeatureValue_.prototype, "FeatureValueCacheID", void 0);
|
|
76034
|
+
__decorate([
|
|
76035
|
+
Field({ nullable: true, description: `Timestamp when this feature value was computed.` }),
|
|
76036
|
+
__metadata("design:type", Date)
|
|
76037
|
+
], MJFeatureValue_.prototype, "ComputedAt", void 0);
|
|
76038
|
+
__decorate([
|
|
76039
|
+
Field({ description: `Timestamp when this record was created.` }),
|
|
76040
|
+
__metadata("design:type", Date)
|
|
76041
|
+
], MJFeatureValue_.prototype, "_mj__CreatedAt", void 0);
|
|
76042
|
+
__decorate([
|
|
76043
|
+
Field({ description: `Timestamp when this record was last updated.` }),
|
|
76044
|
+
__metadata("design:type", Date)
|
|
76045
|
+
], MJFeatureValue_.prototype, "_mj__UpdatedAt", void 0);
|
|
76046
|
+
__decorate([
|
|
76047
|
+
Field({ nullable: true }),
|
|
76048
|
+
MaxLength(255),
|
|
76049
|
+
__metadata("design:type", String)
|
|
76050
|
+
], MJFeatureValue_.prototype, "RecordProcess", void 0);
|
|
76051
|
+
__decorate([
|
|
76052
|
+
Field({ nullable: true }),
|
|
76053
|
+
MaxLength(255),
|
|
76054
|
+
__metadata("design:type", String)
|
|
76055
|
+
], MJFeatureValue_.prototype, "Entity", void 0);
|
|
76056
|
+
__decorate([
|
|
76057
|
+
Field({ nullable: true }),
|
|
76058
|
+
MaxLength(255),
|
|
76059
|
+
__metadata("design:type", String)
|
|
76060
|
+
], MJFeatureValue_.prototype, "Prompt", void 0);
|
|
76061
|
+
__decorate([
|
|
76062
|
+
Field({ nullable: true }),
|
|
76063
|
+
MaxLength(450),
|
|
76064
|
+
__metadata("design:type", String)
|
|
76065
|
+
], MJFeatureValue_.prototype, "ProcessRunDetail", void 0);
|
|
76066
|
+
__decorate([
|
|
76067
|
+
Field({ nullable: true }),
|
|
76068
|
+
MaxLength(500),
|
|
76069
|
+
__metadata("design:type", String)
|
|
76070
|
+
], MJFeatureValue_.prototype, "FeatureValueCache", void 0);
|
|
76071
|
+
__decorate([
|
|
76072
|
+
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.` }),
|
|
76073
|
+
__metadata("design:type", Array)
|
|
76074
|
+
], MJFeatureValue_.prototype, "ReadableFields___", void 0);
|
|
76075
|
+
MJFeatureValue_ = __decorate([
|
|
76076
|
+
ObjectType({ description: `Complete historical audit table for Feature Pipelines. Records every feature value ever computed per entity record, with full provenance, model reasoning, and run back-links.` })
|
|
76077
|
+
], MJFeatureValue_);
|
|
76078
|
+
export { MJFeatureValue_ };
|
|
76079
|
+
//****************************************************************************
|
|
76080
|
+
// INPUT TYPE for MJ: Feature Values
|
|
76081
|
+
//****************************************************************************
|
|
76082
|
+
let CreateMJFeatureValueInput = class CreateMJFeatureValueInput {
|
|
76083
|
+
};
|
|
76084
|
+
__decorate([
|
|
76085
|
+
Field({ nullable: true }),
|
|
76086
|
+
__metadata("design:type", String)
|
|
76087
|
+
], CreateMJFeatureValueInput.prototype, "ID", void 0);
|
|
76088
|
+
__decorate([
|
|
76089
|
+
Field({ nullable: true }),
|
|
76090
|
+
__metadata("design:type", String)
|
|
76091
|
+
], CreateMJFeatureValueInput.prototype, "RecordProcessID", void 0);
|
|
76092
|
+
__decorate([
|
|
76093
|
+
Field({ nullable: true }),
|
|
76094
|
+
__metadata("design:type", String)
|
|
76095
|
+
], CreateMJFeatureValueInput.prototype, "EntityID", void 0);
|
|
76096
|
+
__decorate([
|
|
76097
|
+
Field({ nullable: true }),
|
|
76098
|
+
__metadata("design:type", String)
|
|
76099
|
+
], CreateMJFeatureValueInput.prototype, "RecordID", void 0);
|
|
76100
|
+
__decorate([
|
|
76101
|
+
Field({ nullable: true }),
|
|
76102
|
+
__metadata("design:type", String)
|
|
76103
|
+
], CreateMJFeatureValueInput.prototype, "FeatureName", void 0);
|
|
76104
|
+
__decorate([
|
|
76105
|
+
Field({ nullable: true }),
|
|
76106
|
+
__metadata("design:type", String)
|
|
76107
|
+
], CreateMJFeatureValueInput.prototype, "ValueText", void 0);
|
|
76108
|
+
__decorate([
|
|
76109
|
+
Field(() => Float, { nullable: true }),
|
|
76110
|
+
__metadata("design:type", Number)
|
|
76111
|
+
], CreateMJFeatureValueInput.prototype, "ValueNumeric", void 0);
|
|
76112
|
+
__decorate([
|
|
76113
|
+
Field({ nullable: true }),
|
|
76114
|
+
__metadata("design:type", Date)
|
|
76115
|
+
], CreateMJFeatureValueInput.prototype, "ValueDate", void 0);
|
|
76116
|
+
__decorate([
|
|
76117
|
+
Field(() => Boolean, { nullable: true }),
|
|
76118
|
+
__metadata("design:type", Boolean)
|
|
76119
|
+
], CreateMJFeatureValueInput.prototype, "ValueBoolean", void 0);
|
|
76120
|
+
__decorate([
|
|
76121
|
+
Field({ nullable: true }),
|
|
76122
|
+
__metadata("design:type", String)
|
|
76123
|
+
], CreateMJFeatureValueInput.prototype, "ValueJSON", void 0);
|
|
76124
|
+
__decorate([
|
|
76125
|
+
Field({ nullable: true }),
|
|
76126
|
+
__metadata("design:type", String)
|
|
76127
|
+
], CreateMJFeatureValueInput.prototype, "Reasoning", void 0);
|
|
76128
|
+
__decorate([
|
|
76129
|
+
Field(() => Float, { nullable: true }),
|
|
76130
|
+
__metadata("design:type", Number)
|
|
76131
|
+
], CreateMJFeatureValueInput.prototype, "Confidence", void 0);
|
|
76132
|
+
__decorate([
|
|
76133
|
+
Field({ nullable: true }),
|
|
76134
|
+
__metadata("design:type", String)
|
|
76135
|
+
], CreateMJFeatureValueInput.prototype, "PromptID", void 0);
|
|
76136
|
+
__decorate([
|
|
76137
|
+
Field({ nullable: true }),
|
|
76138
|
+
__metadata("design:type", String)
|
|
76139
|
+
], CreateMJFeatureValueInput.prototype, "PromptVersionHash", void 0);
|
|
76140
|
+
__decorate([
|
|
76141
|
+
Field({ nullable: true }),
|
|
76142
|
+
__metadata("design:type", String)
|
|
76143
|
+
], CreateMJFeatureValueInput.prototype, "ConstraintHash", void 0);
|
|
76144
|
+
__decorate([
|
|
76145
|
+
Field({ nullable: true }),
|
|
76146
|
+
__metadata("design:type", String)
|
|
76147
|
+
], CreateMJFeatureValueInput.prototype, "ProcessRunID", void 0);
|
|
76148
|
+
__decorate([
|
|
76149
|
+
Field({ nullable: true }),
|
|
76150
|
+
__metadata("design:type", String)
|
|
76151
|
+
], CreateMJFeatureValueInput.prototype, "ProcessRunDetailID", void 0);
|
|
76152
|
+
__decorate([
|
|
76153
|
+
Field({ nullable: true }),
|
|
76154
|
+
__metadata("design:type", String)
|
|
76155
|
+
], CreateMJFeatureValueInput.prototype, "AIPromptRunID", void 0);
|
|
76156
|
+
__decorate([
|
|
76157
|
+
Field({ nullable: true }),
|
|
76158
|
+
__metadata("design:type", String)
|
|
76159
|
+
], CreateMJFeatureValueInput.prototype, "FeatureValueCacheID", void 0);
|
|
76160
|
+
__decorate([
|
|
76161
|
+
Field({ nullable: true }),
|
|
76162
|
+
__metadata("design:type", Date)
|
|
76163
|
+
], CreateMJFeatureValueInput.prototype, "ComputedAt", void 0);
|
|
76164
|
+
__decorate([
|
|
76165
|
+
Field(() => RestoreContextInput, { nullable: true }),
|
|
76166
|
+
__metadata("design:type", RestoreContextInput)
|
|
76167
|
+
], CreateMJFeatureValueInput.prototype, "RestoreContext___", void 0);
|
|
76168
|
+
CreateMJFeatureValueInput = __decorate([
|
|
76169
|
+
InputType()
|
|
76170
|
+
], CreateMJFeatureValueInput);
|
|
76171
|
+
export { CreateMJFeatureValueInput };
|
|
76172
|
+
//****************************************************************************
|
|
76173
|
+
// INPUT TYPE for MJ: Feature Values
|
|
76174
|
+
//****************************************************************************
|
|
76175
|
+
let UpdateMJFeatureValueInput = class UpdateMJFeatureValueInput {
|
|
76176
|
+
};
|
|
76177
|
+
__decorate([
|
|
76178
|
+
Field(),
|
|
76179
|
+
__metadata("design:type", String)
|
|
76180
|
+
], UpdateMJFeatureValueInput.prototype, "ID", void 0);
|
|
76181
|
+
__decorate([
|
|
76182
|
+
Field({ nullable: true }),
|
|
76183
|
+
__metadata("design:type", String)
|
|
76184
|
+
], UpdateMJFeatureValueInput.prototype, "RecordProcessID", void 0);
|
|
76185
|
+
__decorate([
|
|
76186
|
+
Field({ nullable: true }),
|
|
76187
|
+
__metadata("design:type", String)
|
|
76188
|
+
], UpdateMJFeatureValueInput.prototype, "EntityID", void 0);
|
|
76189
|
+
__decorate([
|
|
76190
|
+
Field({ nullable: true }),
|
|
76191
|
+
__metadata("design:type", String)
|
|
76192
|
+
], UpdateMJFeatureValueInput.prototype, "RecordID", void 0);
|
|
76193
|
+
__decorate([
|
|
76194
|
+
Field({ nullable: true }),
|
|
76195
|
+
__metadata("design:type", String)
|
|
76196
|
+
], UpdateMJFeatureValueInput.prototype, "FeatureName", void 0);
|
|
76197
|
+
__decorate([
|
|
76198
|
+
Field({ nullable: true }),
|
|
76199
|
+
__metadata("design:type", String)
|
|
76200
|
+
], UpdateMJFeatureValueInput.prototype, "ValueText", void 0);
|
|
76201
|
+
__decorate([
|
|
76202
|
+
Field(() => Float, { nullable: true }),
|
|
76203
|
+
__metadata("design:type", Number)
|
|
76204
|
+
], UpdateMJFeatureValueInput.prototype, "ValueNumeric", void 0);
|
|
76205
|
+
__decorate([
|
|
76206
|
+
Field({ nullable: true }),
|
|
76207
|
+
__metadata("design:type", Date)
|
|
76208
|
+
], UpdateMJFeatureValueInput.prototype, "ValueDate", void 0);
|
|
76209
|
+
__decorate([
|
|
76210
|
+
Field(() => Boolean, { nullable: true }),
|
|
76211
|
+
__metadata("design:type", Boolean)
|
|
76212
|
+
], UpdateMJFeatureValueInput.prototype, "ValueBoolean", void 0);
|
|
76213
|
+
__decorate([
|
|
76214
|
+
Field({ nullable: true }),
|
|
76215
|
+
__metadata("design:type", String)
|
|
76216
|
+
], UpdateMJFeatureValueInput.prototype, "ValueJSON", void 0);
|
|
76217
|
+
__decorate([
|
|
76218
|
+
Field({ nullable: true }),
|
|
76219
|
+
__metadata("design:type", String)
|
|
76220
|
+
], UpdateMJFeatureValueInput.prototype, "Reasoning", void 0);
|
|
76221
|
+
__decorate([
|
|
76222
|
+
Field(() => Float, { nullable: true }),
|
|
76223
|
+
__metadata("design:type", Number)
|
|
76224
|
+
], UpdateMJFeatureValueInput.prototype, "Confidence", void 0);
|
|
76225
|
+
__decorate([
|
|
76226
|
+
Field({ nullable: true }),
|
|
76227
|
+
__metadata("design:type", String)
|
|
76228
|
+
], UpdateMJFeatureValueInput.prototype, "PromptID", void 0);
|
|
76229
|
+
__decorate([
|
|
76230
|
+
Field({ nullable: true }),
|
|
76231
|
+
__metadata("design:type", String)
|
|
76232
|
+
], UpdateMJFeatureValueInput.prototype, "PromptVersionHash", void 0);
|
|
76233
|
+
__decorate([
|
|
76234
|
+
Field({ nullable: true }),
|
|
76235
|
+
__metadata("design:type", String)
|
|
76236
|
+
], UpdateMJFeatureValueInput.prototype, "ConstraintHash", void 0);
|
|
76237
|
+
__decorate([
|
|
76238
|
+
Field({ nullable: true }),
|
|
76239
|
+
__metadata("design:type", String)
|
|
76240
|
+
], UpdateMJFeatureValueInput.prototype, "ProcessRunID", void 0);
|
|
76241
|
+
__decorate([
|
|
76242
|
+
Field({ nullable: true }),
|
|
76243
|
+
__metadata("design:type", String)
|
|
76244
|
+
], UpdateMJFeatureValueInput.prototype, "ProcessRunDetailID", void 0);
|
|
76245
|
+
__decorate([
|
|
76246
|
+
Field({ nullable: true }),
|
|
76247
|
+
__metadata("design:type", String)
|
|
76248
|
+
], UpdateMJFeatureValueInput.prototype, "AIPromptRunID", void 0);
|
|
76249
|
+
__decorate([
|
|
76250
|
+
Field({ nullable: true }),
|
|
76251
|
+
__metadata("design:type", String)
|
|
76252
|
+
], UpdateMJFeatureValueInput.prototype, "FeatureValueCacheID", void 0);
|
|
76253
|
+
__decorate([
|
|
76254
|
+
Field({ nullable: true }),
|
|
76255
|
+
__metadata("design:type", Date)
|
|
76256
|
+
], UpdateMJFeatureValueInput.prototype, "ComputedAt", void 0);
|
|
76257
|
+
__decorate([
|
|
76258
|
+
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
76259
|
+
__metadata("design:type", Array)
|
|
76260
|
+
], UpdateMJFeatureValueInput.prototype, "OldValues___", void 0);
|
|
76261
|
+
__decorate([
|
|
76262
|
+
Field(() => RestoreContextInput, { nullable: true }),
|
|
76263
|
+
__metadata("design:type", RestoreContextInput)
|
|
76264
|
+
], UpdateMJFeatureValueInput.prototype, "RestoreContext___", void 0);
|
|
76265
|
+
UpdateMJFeatureValueInput = __decorate([
|
|
76266
|
+
InputType()
|
|
76267
|
+
], UpdateMJFeatureValueInput);
|
|
76268
|
+
export { UpdateMJFeatureValueInput };
|
|
76269
|
+
//****************************************************************************
|
|
76270
|
+
// RESOLVER for MJ: Feature Values
|
|
76271
|
+
//****************************************************************************
|
|
76272
|
+
let RunMJFeatureValueViewResult = class RunMJFeatureValueViewResult {
|
|
76273
|
+
};
|
|
76274
|
+
__decorate([
|
|
76275
|
+
Field(() => [MJFeatureValue_]),
|
|
76276
|
+
__metadata("design:type", Array)
|
|
76277
|
+
], RunMJFeatureValueViewResult.prototype, "Results", void 0);
|
|
76278
|
+
__decorate([
|
|
76279
|
+
Field(() => String, { nullable: true }),
|
|
76280
|
+
__metadata("design:type", String)
|
|
76281
|
+
], RunMJFeatureValueViewResult.prototype, "UserViewRunID", void 0);
|
|
76282
|
+
__decorate([
|
|
76283
|
+
Field(() => Int, { nullable: true }),
|
|
76284
|
+
__metadata("design:type", Number)
|
|
76285
|
+
], RunMJFeatureValueViewResult.prototype, "RowCount", void 0);
|
|
76286
|
+
__decorate([
|
|
76287
|
+
Field(() => Int, { nullable: true }),
|
|
76288
|
+
__metadata("design:type", Number)
|
|
76289
|
+
], RunMJFeatureValueViewResult.prototype, "TotalRowCount", void 0);
|
|
76290
|
+
__decorate([
|
|
76291
|
+
Field(() => Int, { nullable: true }),
|
|
76292
|
+
__metadata("design:type", Number)
|
|
76293
|
+
], RunMJFeatureValueViewResult.prototype, "ExecutionTime", void 0);
|
|
76294
|
+
__decorate([
|
|
76295
|
+
Field({ nullable: true }),
|
|
76296
|
+
__metadata("design:type", String)
|
|
76297
|
+
], RunMJFeatureValueViewResult.prototype, "ErrorMessage", void 0);
|
|
76298
|
+
__decorate([
|
|
76299
|
+
Field(() => Boolean, { nullable: false }),
|
|
76300
|
+
__metadata("design:type", Boolean)
|
|
76301
|
+
], RunMJFeatureValueViewResult.prototype, "Success", void 0);
|
|
76302
|
+
RunMJFeatureValueViewResult = __decorate([
|
|
76303
|
+
ObjectType()
|
|
76304
|
+
], RunMJFeatureValueViewResult);
|
|
76305
|
+
export { RunMJFeatureValueViewResult };
|
|
76306
|
+
let MJFeatureValueResolver = class MJFeatureValueResolver extends ResolverBase {
|
|
76307
|
+
async RunMJFeatureValueViewByID(input, { providers, userPayload }, pubSub) {
|
|
76308
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
76309
|
+
return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
|
|
76310
|
+
}
|
|
76311
|
+
async RunMJFeatureValueViewByName(input, { providers, userPayload }, pubSub) {
|
|
76312
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
76313
|
+
return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
|
|
76314
|
+
}
|
|
76315
|
+
async RunMJFeatureValueDynamicView(input, { providers, userPayload }, pubSub) {
|
|
76316
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
76317
|
+
input.EntityName = 'MJ: Feature Values';
|
|
76318
|
+
return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
|
|
76319
|
+
}
|
|
76320
|
+
async MJFeatureValue(ID, { userPayload, providers }, pubSub) {
|
|
76321
|
+
this.CheckUserReadPermissions('MJ: Feature Values', userPayload);
|
|
76322
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
76323
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwFeatureValues')} WHERE ${provider.QuoteIdentifier('ID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Feature Values', userPayload, EntityPermissionType.Read, 'AND');
|
|
76324
|
+
const rows = await provider.ExecuteSQL(sSQL, [ID], undefined, this.GetUserFromPayload(userPayload));
|
|
76325
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Feature Values', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
76326
|
+
return result;
|
|
76327
|
+
}
|
|
76328
|
+
async CreateMJFeatureValue(input, { providers, userPayload }, pubSub) {
|
|
76329
|
+
const provider = GetReadWriteProvider(providers);
|
|
76330
|
+
return this.CreateRecord('MJ: Feature Values', input, provider, userPayload, pubSub);
|
|
76331
|
+
}
|
|
76332
|
+
async UpdateMJFeatureValue(input, { providers, userPayload }, pubSub) {
|
|
76333
|
+
const provider = GetReadWriteProvider(providers);
|
|
76334
|
+
return this.UpdateRecord('MJ: Feature Values', input, provider, userPayload, pubSub);
|
|
76335
|
+
}
|
|
76336
|
+
async DeleteMJFeatureValue(ID, options, { providers, userPayload }, pubSub) {
|
|
76337
|
+
const provider = GetReadWriteProvider(providers);
|
|
76338
|
+
const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
|
|
76339
|
+
return this.DeleteRecord('MJ: Feature Values', key, options, provider, userPayload, pubSub);
|
|
76340
|
+
}
|
|
76341
|
+
};
|
|
76342
|
+
__decorate([
|
|
76343
|
+
Query(() => RunMJFeatureValueViewResult),
|
|
76344
|
+
__param(0, Arg('input', () => RunViewByIDInput)),
|
|
76345
|
+
__param(1, Ctx()),
|
|
76346
|
+
__param(2, PubSub()),
|
|
76347
|
+
__metadata("design:type", Function),
|
|
76348
|
+
__metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
|
|
76349
|
+
__metadata("design:returntype", Promise)
|
|
76350
|
+
], MJFeatureValueResolver.prototype, "RunMJFeatureValueViewByID", null);
|
|
76351
|
+
__decorate([
|
|
76352
|
+
Query(() => RunMJFeatureValueViewResult),
|
|
76353
|
+
__param(0, Arg('input', () => RunViewByNameInput)),
|
|
76354
|
+
__param(1, Ctx()),
|
|
76355
|
+
__param(2, PubSub()),
|
|
76356
|
+
__metadata("design:type", Function),
|
|
76357
|
+
__metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
|
|
76358
|
+
__metadata("design:returntype", Promise)
|
|
76359
|
+
], MJFeatureValueResolver.prototype, "RunMJFeatureValueViewByName", null);
|
|
76360
|
+
__decorate([
|
|
76361
|
+
Query(() => RunMJFeatureValueViewResult),
|
|
76362
|
+
__param(0, Arg('input', () => RunDynamicViewInput)),
|
|
76363
|
+
__param(1, Ctx()),
|
|
76364
|
+
__param(2, PubSub()),
|
|
76365
|
+
__metadata("design:type", Function),
|
|
76366
|
+
__metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
|
|
76367
|
+
__metadata("design:returntype", Promise)
|
|
76368
|
+
], MJFeatureValueResolver.prototype, "RunMJFeatureValueDynamicView", null);
|
|
76369
|
+
__decorate([
|
|
76370
|
+
Query(() => MJFeatureValue_, { nullable: true }),
|
|
76371
|
+
__param(0, Arg('ID', () => String)),
|
|
76372
|
+
__param(1, Ctx()),
|
|
76373
|
+
__param(2, PubSub()),
|
|
76374
|
+
__metadata("design:type", Function),
|
|
76375
|
+
__metadata("design:paramtypes", [String, Object, PubSubEngine]),
|
|
76376
|
+
__metadata("design:returntype", Promise)
|
|
76377
|
+
], MJFeatureValueResolver.prototype, "MJFeatureValue", null);
|
|
76378
|
+
__decorate([
|
|
76379
|
+
Mutation(() => MJFeatureValue_),
|
|
76380
|
+
__param(0, Arg('input', () => CreateMJFeatureValueInput)),
|
|
76381
|
+
__param(1, Ctx()),
|
|
76382
|
+
__param(2, PubSub()),
|
|
76383
|
+
__metadata("design:type", Function),
|
|
76384
|
+
__metadata("design:paramtypes", [CreateMJFeatureValueInput, Object, PubSubEngine]),
|
|
76385
|
+
__metadata("design:returntype", Promise)
|
|
76386
|
+
], MJFeatureValueResolver.prototype, "CreateMJFeatureValue", null);
|
|
76387
|
+
__decorate([
|
|
76388
|
+
Mutation(() => MJFeatureValue_),
|
|
76389
|
+
__param(0, Arg('input', () => UpdateMJFeatureValueInput)),
|
|
76390
|
+
__param(1, Ctx()),
|
|
76391
|
+
__param(2, PubSub()),
|
|
76392
|
+
__metadata("design:type", Function),
|
|
76393
|
+
__metadata("design:paramtypes", [UpdateMJFeatureValueInput, Object, PubSubEngine]),
|
|
76394
|
+
__metadata("design:returntype", Promise)
|
|
76395
|
+
], MJFeatureValueResolver.prototype, "UpdateMJFeatureValue", null);
|
|
76396
|
+
__decorate([
|
|
76397
|
+
Mutation(() => MJFeatureValue_),
|
|
76398
|
+
__param(0, Arg('ID', () => String)),
|
|
76399
|
+
__param(1, Arg('options___', () => DeleteOptionsInput)),
|
|
76400
|
+
__param(2, Ctx()),
|
|
76401
|
+
__param(3, PubSub()),
|
|
76402
|
+
__metadata("design:type", Function),
|
|
76403
|
+
__metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
|
|
76404
|
+
__metadata("design:returntype", Promise)
|
|
76405
|
+
], MJFeatureValueResolver.prototype, "DeleteMJFeatureValue", null);
|
|
76406
|
+
MJFeatureValueResolver = __decorate([
|
|
76407
|
+
Resolver(MJFeatureValue_)
|
|
76408
|
+
], MJFeatureValueResolver);
|
|
76409
|
+
export { MJFeatureValueResolver };
|
|
76410
|
+
//****************************************************************************
|
|
75497
76411
|
// ENTITY CLASS for MJ: File Categories
|
|
75498
76412
|
//****************************************************************************
|
|
75499
76413
|
let MJFileCategory_ = class MJFileCategory_ {
|
|
@@ -95098,6 +96012,11 @@ __decorate([
|
|
|
95098
96012
|
Field(),
|
|
95099
96013
|
__metadata("design:type", Date)
|
|
95100
96014
|
], MJProject_.prototype, "_mj__UpdatedAt", void 0);
|
|
96015
|
+
__decorate([
|
|
96016
|
+
Field({ nullable: true, description: `The user who owns this folder, or NULL when the folder is shared with the whole environment. NULL (the value every pre-existing folder carries) means SHARED: visible to anyone who can read projects in the environment, which was the only possible behaviour before this column existed. A set value means PERSONAL: the folder belongs to that user and consumers filter it to them, so it stays out of other people's sidebars. Personal is opt-in at create time; nothing is migrated.` }),
|
|
96017
|
+
MaxLength(36),
|
|
96018
|
+
__metadata("design:type", String)
|
|
96019
|
+
], MJProject_.prototype, "OwnerUserID", void 0);
|
|
95101
96020
|
__decorate([
|
|
95102
96021
|
Field({ nullable: true }),
|
|
95103
96022
|
MaxLength(255),
|
|
@@ -95108,6 +96027,11 @@ __decorate([
|
|
|
95108
96027
|
MaxLength(255),
|
|
95109
96028
|
__metadata("design:type", String)
|
|
95110
96029
|
], MJProject_.prototype, "Parent", void 0);
|
|
96030
|
+
__decorate([
|
|
96031
|
+
Field({ nullable: true }),
|
|
96032
|
+
MaxLength(100),
|
|
96033
|
+
__metadata("design:type", String)
|
|
96034
|
+
], MJProject_.prototype, "OwnerUser", void 0);
|
|
95111
96035
|
__decorate([
|
|
95112
96036
|
Field({ nullable: true }),
|
|
95113
96037
|
MaxLength(36),
|
|
@@ -95174,6 +96098,10 @@ __decorate([
|
|
|
95174
96098
|
Field(() => Boolean, { nullable: true }),
|
|
95175
96099
|
__metadata("design:type", Boolean)
|
|
95176
96100
|
], CreateMJProjectInput.prototype, "IsArchived", void 0);
|
|
96101
|
+
__decorate([
|
|
96102
|
+
Field({ nullable: true }),
|
|
96103
|
+
__metadata("design:type", String)
|
|
96104
|
+
], CreateMJProjectInput.prototype, "OwnerUserID", void 0);
|
|
95177
96105
|
__decorate([
|
|
95178
96106
|
Field(() => RestoreContextInput, { nullable: true }),
|
|
95179
96107
|
__metadata("design:type", RestoreContextInput)
|
|
@@ -95219,6 +96147,10 @@ __decorate([
|
|
|
95219
96147
|
Field(() => Boolean, { nullable: true }),
|
|
95220
96148
|
__metadata("design:type", Boolean)
|
|
95221
96149
|
], UpdateMJProjectInput.prototype, "IsArchived", void 0);
|
|
96150
|
+
__decorate([
|
|
96151
|
+
Field({ nullable: true }),
|
|
96152
|
+
__metadata("design:type", String)
|
|
96153
|
+
], UpdateMJProjectInput.prototype, "OwnerUserID", void 0);
|
|
95222
96154
|
__decorate([
|
|
95223
96155
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
95224
96156
|
__metadata("design:type", Array)
|
|
@@ -95811,6 +96743,10 @@ __decorate([
|
|
|
95811
96743
|
Field(() => Boolean, { nullable: true, description: `Author's declared intent that this Query should be materialized. CodeGen scans for IsMaterialized = 1 and, if the query qualifies (§9/§10), materializes it. The authoritative state lives on the linked MJ: Materialized Results row (found via the MaterializedResultQuery join table).` }),
|
|
95812
96744
|
__metadata("design:type", Boolean)
|
|
95813
96745
|
], MJQuery_.prototype, "IsMaterialized", void 0);
|
|
96746
|
+
__decorate([
|
|
96747
|
+
Field({ nullable: true, description: `Optional JSON configuration bag defining query-level policies and semantic capabilities (shape = IQueryConfiguration). Includes Priority (1-100) for ground-truth ranking in the semantic layer, LogExecution to control query execution logging, AlternativeQuestions for multi-phrasing vector recall, UsageGuidance and WhenNotToUse bounds for AI agents, and DomainScope.` }),
|
|
96748
|
+
__metadata("design:type", String)
|
|
96749
|
+
], MJQuery_.prototype, "Configuration", void 0);
|
|
95814
96750
|
__decorate([
|
|
95815
96751
|
Field({ nullable: true }),
|
|
95816
96752
|
MaxLength(50),
|
|
@@ -95940,6 +96876,10 @@ __decorate([
|
|
|
95940
96876
|
Field(() => Boolean, { nullable: true }),
|
|
95941
96877
|
__metadata("design:type", Boolean)
|
|
95942
96878
|
], CreateMJQueryInput.prototype, "IsMaterialized", void 0);
|
|
96879
|
+
__decorate([
|
|
96880
|
+
Field({ nullable: true }),
|
|
96881
|
+
__metadata("design:type", String)
|
|
96882
|
+
], CreateMJQueryInput.prototype, "Configuration", void 0);
|
|
95943
96883
|
__decorate([
|
|
95944
96884
|
Field(() => RestoreContextInput, { nullable: true }),
|
|
95945
96885
|
__metadata("design:type", RestoreContextInput)
|
|
@@ -96049,6 +96989,10 @@ __decorate([
|
|
|
96049
96989
|
Field(() => Boolean, { nullable: true }),
|
|
96050
96990
|
__metadata("design:type", Boolean)
|
|
96051
96991
|
], UpdateMJQueryInput.prototype, "IsMaterialized", void 0);
|
|
96992
|
+
__decorate([
|
|
96993
|
+
Field({ nullable: true }),
|
|
96994
|
+
__metadata("design:type", String)
|
|
96995
|
+
], UpdateMJQueryInput.prototype, "Configuration", void 0);
|
|
96052
96996
|
__decorate([
|
|
96053
96997
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
96054
96998
|
__metadata("design:type", Array)
|
|
@@ -130355,6 +131299,366 @@ MJViewTypeResolver = __decorate([
|
|
|
130355
131299
|
], MJViewTypeResolver);
|
|
130356
131300
|
export { MJViewTypeResolver };
|
|
130357
131301
|
//****************************************************************************
|
|
131302
|
+
// ENTITY CLASS for MJ: Web Search Providers
|
|
131303
|
+
//****************************************************************************
|
|
131304
|
+
let MJWebSearchProvider_ = class MJWebSearchProvider_ {
|
|
131305
|
+
};
|
|
131306
|
+
__decorate([
|
|
131307
|
+
Field(),
|
|
131308
|
+
MaxLength(36),
|
|
131309
|
+
__metadata("design:type", String)
|
|
131310
|
+
], MJWebSearchProvider_.prototype, "ID", void 0);
|
|
131311
|
+
__decorate([
|
|
131312
|
+
Field({ nullable: true, description: `Administrator-facing name for this provider, e.g. "Brave" or "Tavily". Unique, and usable as the Provider value when a caller pins a search to one vendor.` }),
|
|
131313
|
+
MaxLength(200),
|
|
131314
|
+
__metadata("design:type", String)
|
|
131315
|
+
], MJWebSearchProvider_.prototype, "Name", void 0);
|
|
131316
|
+
__decorate([
|
|
131317
|
+
Field({ nullable: true, description: `What this provider searches, what it costs, and when it is the right choice.` }),
|
|
131318
|
+
__metadata("design:type", String)
|
|
131319
|
+
], MJWebSearchProvider_.prototype, "Description", void 0);
|
|
131320
|
+
__decorate([
|
|
131321
|
+
Field({ nullable: true, description: `ClassFactory key used with @RegisterClass(BaseWebSearchProvider, DriverClass) to instantiate the driver at runtime, e.g. "BraveWebSearchProvider". A value with no matching registration leaves the provider unavailable and is logged at engine startup.` }),
|
|
131322
|
+
MaxLength(500),
|
|
131323
|
+
__metadata("design:type", String)
|
|
131324
|
+
], MJWebSearchProvider_.prototype, "DriverClass", void 0);
|
|
131325
|
+
__decorate([
|
|
131326
|
+
Field({ nullable: true, description: `Provider lifecycle status: Pending (configured but not yet in use), Active (participates in searches), Terminated (disabled). Only Active providers are loaded. Matches the vocabulary used by SearchProvider.` }),
|
|
131327
|
+
MaxLength(20),
|
|
131328
|
+
__metadata("design:type", String)
|
|
131329
|
+
], MJWebSearchProvider_.prototype, "Status", void 0);
|
|
131330
|
+
__decorate([
|
|
131331
|
+
Field(() => Int, { nullable: true, description: `Failover order: LOWER values are tried FIRST. The engine serves a search from the first available provider in this order, moving on only when one fails transiently. Must be >= 0.` }),
|
|
131332
|
+
__metadata("design:type", Number)
|
|
131333
|
+
], MJWebSearchProvider_.prototype, "Priority", void 0);
|
|
131334
|
+
__decorate([
|
|
131335
|
+
Field({ nullable: true, description: `Optional FK to the Credential record holding this provider's API key. When NULL the driver falls back to its documented environment variable, so a host that has not yet migrated its secrets into the Credential store keeps working.` }),
|
|
131336
|
+
MaxLength(36),
|
|
131337
|
+
__metadata("design:type", String)
|
|
131338
|
+
], MJWebSearchProvider_.prototype, "CredentialID", void 0);
|
|
131339
|
+
__decorate([
|
|
131340
|
+
Field({ nullable: true, description: `Optional JSON blob of non-secret, driver-specific settings (endpoint overrides, tier flags, answer model). Schema is defined by each driver; invalid JSON is logged and ignored rather than disabling the provider.` }),
|
|
131341
|
+
__metadata("design:type", String)
|
|
131342
|
+
], MJWebSearchProvider_.prototype, "ProviderConfig", void 0);
|
|
131343
|
+
__decorate([
|
|
131344
|
+
Field(() => Int, { nullable: true, description: `Optional per-provider cap on results per request, for pay-per-query vendors. The effective cap is the smallest of the caller's request, this value, and the vendor's own hard limit. NULL means the driver's own limit applies.` }),
|
|
131345
|
+
__metadata("design:type", Number)
|
|
131346
|
+
], MJWebSearchProvider_.prototype, "MaxResultsOverride", void 0);
|
|
131347
|
+
__decorate([
|
|
131348
|
+
Field(() => Boolean, { nullable: true, description: `Whether this vendor's terms permit storing returned results. Defaults to 0 (deny), because caching rights differ sharply between vendors and violating them is silent: some sell storage rights as a plan tier, others forbid persistent caching outright. Nothing in the engine caches today; this column exists so the first caching layer reads a per-provider gate instead of inventing one.` }),
|
|
131349
|
+
__metadata("design:type", Boolean)
|
|
131350
|
+
], MJWebSearchProvider_.prototype, "AllowResultCaching", void 0);
|
|
131351
|
+
__decorate([
|
|
131352
|
+
Field({ nullable: true, description: `UI display name shown in admin surfaces and result attribution. When NULL, falls back to the Name column.` }),
|
|
131353
|
+
MaxLength(200),
|
|
131354
|
+
__metadata("design:type", String)
|
|
131355
|
+
], MJWebSearchProvider_.prototype, "DisplayName", void 0);
|
|
131356
|
+
__decorate([
|
|
131357
|
+
Field({ nullable: true, description: `CSS icon class for UI display, e.g. "fa-brands fa-brave". Supports any CSS-based icon library. When NULL a default icon is used.` }),
|
|
131358
|
+
MaxLength(200),
|
|
131359
|
+
__metadata("design:type", String)
|
|
131360
|
+
], MJWebSearchProvider_.prototype, "Icon", void 0);
|
|
131361
|
+
__decorate([
|
|
131362
|
+
Field({ nullable: true, description: `Free-form administrator notes, e.g. contract terms, billing owner, or why this provider sits at its priority.` }),
|
|
131363
|
+
__metadata("design:type", String)
|
|
131364
|
+
], MJWebSearchProvider_.prototype, "Comments", void 0);
|
|
131365
|
+
__decorate([
|
|
131366
|
+
Field(),
|
|
131367
|
+
__metadata("design:type", Date)
|
|
131368
|
+
], MJWebSearchProvider_.prototype, "_mj__CreatedAt", void 0);
|
|
131369
|
+
__decorate([
|
|
131370
|
+
Field(),
|
|
131371
|
+
__metadata("design:type", Date)
|
|
131372
|
+
], MJWebSearchProvider_.prototype, "_mj__UpdatedAt", void 0);
|
|
131373
|
+
__decorate([
|
|
131374
|
+
Field({ nullable: true }),
|
|
131375
|
+
MaxLength(200),
|
|
131376
|
+
__metadata("design:type", String)
|
|
131377
|
+
], MJWebSearchProvider_.prototype, "Credential", void 0);
|
|
131378
|
+
__decorate([
|
|
131379
|
+
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.` }),
|
|
131380
|
+
__metadata("design:type", Array)
|
|
131381
|
+
], MJWebSearchProvider_.prototype, "ReadableFields___", void 0);
|
|
131382
|
+
MJWebSearchProvider_ = __decorate([
|
|
131383
|
+
ObjectType({ description: `Registry of external web search vendors available to @memberjunction/web-search-engine. Each row configures one driver: whether it is active, its position in the failover order, and where its credential lives. Provider capabilities (answer synthesis, domain filtering, freshness) are declared by the driver class, not stored here.` })
|
|
131384
|
+
], MJWebSearchProvider_);
|
|
131385
|
+
export { MJWebSearchProvider_ };
|
|
131386
|
+
//****************************************************************************
|
|
131387
|
+
// INPUT TYPE for MJ: Web Search Providers
|
|
131388
|
+
//****************************************************************************
|
|
131389
|
+
let CreateMJWebSearchProviderInput = class CreateMJWebSearchProviderInput {
|
|
131390
|
+
};
|
|
131391
|
+
__decorate([
|
|
131392
|
+
Field({ nullable: true }),
|
|
131393
|
+
__metadata("design:type", String)
|
|
131394
|
+
], CreateMJWebSearchProviderInput.prototype, "ID", void 0);
|
|
131395
|
+
__decorate([
|
|
131396
|
+
Field({ nullable: true }),
|
|
131397
|
+
__metadata("design:type", String)
|
|
131398
|
+
], CreateMJWebSearchProviderInput.prototype, "Name", void 0);
|
|
131399
|
+
__decorate([
|
|
131400
|
+
Field({ nullable: true }),
|
|
131401
|
+
__metadata("design:type", String)
|
|
131402
|
+
], CreateMJWebSearchProviderInput.prototype, "Description", void 0);
|
|
131403
|
+
__decorate([
|
|
131404
|
+
Field({ nullable: true }),
|
|
131405
|
+
__metadata("design:type", String)
|
|
131406
|
+
], CreateMJWebSearchProviderInput.prototype, "DriverClass", void 0);
|
|
131407
|
+
__decorate([
|
|
131408
|
+
Field({ nullable: true }),
|
|
131409
|
+
__metadata("design:type", String)
|
|
131410
|
+
], CreateMJWebSearchProviderInput.prototype, "Status", void 0);
|
|
131411
|
+
__decorate([
|
|
131412
|
+
Field(() => Int, { nullable: true }),
|
|
131413
|
+
__metadata("design:type", Number)
|
|
131414
|
+
], CreateMJWebSearchProviderInput.prototype, "Priority", void 0);
|
|
131415
|
+
__decorate([
|
|
131416
|
+
Field({ nullable: true }),
|
|
131417
|
+
__metadata("design:type", String)
|
|
131418
|
+
], CreateMJWebSearchProviderInput.prototype, "CredentialID", void 0);
|
|
131419
|
+
__decorate([
|
|
131420
|
+
Field({ nullable: true }),
|
|
131421
|
+
__metadata("design:type", String)
|
|
131422
|
+
], CreateMJWebSearchProviderInput.prototype, "ProviderConfig", void 0);
|
|
131423
|
+
__decorate([
|
|
131424
|
+
Field(() => Int, { nullable: true }),
|
|
131425
|
+
__metadata("design:type", Number)
|
|
131426
|
+
], CreateMJWebSearchProviderInput.prototype, "MaxResultsOverride", void 0);
|
|
131427
|
+
__decorate([
|
|
131428
|
+
Field(() => Boolean, { nullable: true }),
|
|
131429
|
+
__metadata("design:type", Boolean)
|
|
131430
|
+
], CreateMJWebSearchProviderInput.prototype, "AllowResultCaching", void 0);
|
|
131431
|
+
__decorate([
|
|
131432
|
+
Field({ nullable: true }),
|
|
131433
|
+
__metadata("design:type", String)
|
|
131434
|
+
], CreateMJWebSearchProviderInput.prototype, "DisplayName", void 0);
|
|
131435
|
+
__decorate([
|
|
131436
|
+
Field({ nullable: true }),
|
|
131437
|
+
__metadata("design:type", String)
|
|
131438
|
+
], CreateMJWebSearchProviderInput.prototype, "Icon", void 0);
|
|
131439
|
+
__decorate([
|
|
131440
|
+
Field({ nullable: true }),
|
|
131441
|
+
__metadata("design:type", String)
|
|
131442
|
+
], CreateMJWebSearchProviderInput.prototype, "Comments", void 0);
|
|
131443
|
+
__decorate([
|
|
131444
|
+
Field(() => RestoreContextInput, { nullable: true }),
|
|
131445
|
+
__metadata("design:type", RestoreContextInput)
|
|
131446
|
+
], CreateMJWebSearchProviderInput.prototype, "RestoreContext___", void 0);
|
|
131447
|
+
CreateMJWebSearchProviderInput = __decorate([
|
|
131448
|
+
InputType()
|
|
131449
|
+
], CreateMJWebSearchProviderInput);
|
|
131450
|
+
export { CreateMJWebSearchProviderInput };
|
|
131451
|
+
//****************************************************************************
|
|
131452
|
+
// INPUT TYPE for MJ: Web Search Providers
|
|
131453
|
+
//****************************************************************************
|
|
131454
|
+
let UpdateMJWebSearchProviderInput = class UpdateMJWebSearchProviderInput {
|
|
131455
|
+
};
|
|
131456
|
+
__decorate([
|
|
131457
|
+
Field(),
|
|
131458
|
+
__metadata("design:type", String)
|
|
131459
|
+
], UpdateMJWebSearchProviderInput.prototype, "ID", void 0);
|
|
131460
|
+
__decorate([
|
|
131461
|
+
Field({ nullable: true }),
|
|
131462
|
+
__metadata("design:type", String)
|
|
131463
|
+
], UpdateMJWebSearchProviderInput.prototype, "Name", void 0);
|
|
131464
|
+
__decorate([
|
|
131465
|
+
Field({ nullable: true }),
|
|
131466
|
+
__metadata("design:type", String)
|
|
131467
|
+
], UpdateMJWebSearchProviderInput.prototype, "Description", void 0);
|
|
131468
|
+
__decorate([
|
|
131469
|
+
Field({ nullable: true }),
|
|
131470
|
+
__metadata("design:type", String)
|
|
131471
|
+
], UpdateMJWebSearchProviderInput.prototype, "DriverClass", void 0);
|
|
131472
|
+
__decorate([
|
|
131473
|
+
Field({ nullable: true }),
|
|
131474
|
+
__metadata("design:type", String)
|
|
131475
|
+
], UpdateMJWebSearchProviderInput.prototype, "Status", void 0);
|
|
131476
|
+
__decorate([
|
|
131477
|
+
Field(() => Int, { nullable: true }),
|
|
131478
|
+
__metadata("design:type", Number)
|
|
131479
|
+
], UpdateMJWebSearchProviderInput.prototype, "Priority", void 0);
|
|
131480
|
+
__decorate([
|
|
131481
|
+
Field({ nullable: true }),
|
|
131482
|
+
__metadata("design:type", String)
|
|
131483
|
+
], UpdateMJWebSearchProviderInput.prototype, "CredentialID", void 0);
|
|
131484
|
+
__decorate([
|
|
131485
|
+
Field({ nullable: true }),
|
|
131486
|
+
__metadata("design:type", String)
|
|
131487
|
+
], UpdateMJWebSearchProviderInput.prototype, "ProviderConfig", void 0);
|
|
131488
|
+
__decorate([
|
|
131489
|
+
Field(() => Int, { nullable: true }),
|
|
131490
|
+
__metadata("design:type", Number)
|
|
131491
|
+
], UpdateMJWebSearchProviderInput.prototype, "MaxResultsOverride", void 0);
|
|
131492
|
+
__decorate([
|
|
131493
|
+
Field(() => Boolean, { nullable: true }),
|
|
131494
|
+
__metadata("design:type", Boolean)
|
|
131495
|
+
], UpdateMJWebSearchProviderInput.prototype, "AllowResultCaching", void 0);
|
|
131496
|
+
__decorate([
|
|
131497
|
+
Field({ nullable: true }),
|
|
131498
|
+
__metadata("design:type", String)
|
|
131499
|
+
], UpdateMJWebSearchProviderInput.prototype, "DisplayName", void 0);
|
|
131500
|
+
__decorate([
|
|
131501
|
+
Field({ nullable: true }),
|
|
131502
|
+
__metadata("design:type", String)
|
|
131503
|
+
], UpdateMJWebSearchProviderInput.prototype, "Icon", void 0);
|
|
131504
|
+
__decorate([
|
|
131505
|
+
Field({ nullable: true }),
|
|
131506
|
+
__metadata("design:type", String)
|
|
131507
|
+
], UpdateMJWebSearchProviderInput.prototype, "Comments", void 0);
|
|
131508
|
+
__decorate([
|
|
131509
|
+
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
131510
|
+
__metadata("design:type", Array)
|
|
131511
|
+
], UpdateMJWebSearchProviderInput.prototype, "OldValues___", void 0);
|
|
131512
|
+
__decorate([
|
|
131513
|
+
Field(() => RestoreContextInput, { nullable: true }),
|
|
131514
|
+
__metadata("design:type", RestoreContextInput)
|
|
131515
|
+
], UpdateMJWebSearchProviderInput.prototype, "RestoreContext___", void 0);
|
|
131516
|
+
UpdateMJWebSearchProviderInput = __decorate([
|
|
131517
|
+
InputType()
|
|
131518
|
+
], UpdateMJWebSearchProviderInput);
|
|
131519
|
+
export { UpdateMJWebSearchProviderInput };
|
|
131520
|
+
//****************************************************************************
|
|
131521
|
+
// RESOLVER for MJ: Web Search Providers
|
|
131522
|
+
//****************************************************************************
|
|
131523
|
+
let RunMJWebSearchProviderViewResult = class RunMJWebSearchProviderViewResult {
|
|
131524
|
+
};
|
|
131525
|
+
__decorate([
|
|
131526
|
+
Field(() => [MJWebSearchProvider_]),
|
|
131527
|
+
__metadata("design:type", Array)
|
|
131528
|
+
], RunMJWebSearchProviderViewResult.prototype, "Results", void 0);
|
|
131529
|
+
__decorate([
|
|
131530
|
+
Field(() => String, { nullable: true }),
|
|
131531
|
+
__metadata("design:type", String)
|
|
131532
|
+
], RunMJWebSearchProviderViewResult.prototype, "UserViewRunID", void 0);
|
|
131533
|
+
__decorate([
|
|
131534
|
+
Field(() => Int, { nullable: true }),
|
|
131535
|
+
__metadata("design:type", Number)
|
|
131536
|
+
], RunMJWebSearchProviderViewResult.prototype, "RowCount", void 0);
|
|
131537
|
+
__decorate([
|
|
131538
|
+
Field(() => Int, { nullable: true }),
|
|
131539
|
+
__metadata("design:type", Number)
|
|
131540
|
+
], RunMJWebSearchProviderViewResult.prototype, "TotalRowCount", void 0);
|
|
131541
|
+
__decorate([
|
|
131542
|
+
Field(() => Int, { nullable: true }),
|
|
131543
|
+
__metadata("design:type", Number)
|
|
131544
|
+
], RunMJWebSearchProviderViewResult.prototype, "ExecutionTime", void 0);
|
|
131545
|
+
__decorate([
|
|
131546
|
+
Field({ nullable: true }),
|
|
131547
|
+
__metadata("design:type", String)
|
|
131548
|
+
], RunMJWebSearchProviderViewResult.prototype, "ErrorMessage", void 0);
|
|
131549
|
+
__decorate([
|
|
131550
|
+
Field(() => Boolean, { nullable: false }),
|
|
131551
|
+
__metadata("design:type", Boolean)
|
|
131552
|
+
], RunMJWebSearchProviderViewResult.prototype, "Success", void 0);
|
|
131553
|
+
RunMJWebSearchProviderViewResult = __decorate([
|
|
131554
|
+
ObjectType()
|
|
131555
|
+
], RunMJWebSearchProviderViewResult);
|
|
131556
|
+
export { RunMJWebSearchProviderViewResult };
|
|
131557
|
+
let MJWebSearchProviderResolver = class MJWebSearchProviderResolver extends ResolverBase {
|
|
131558
|
+
async RunMJWebSearchProviderViewByID(input, { providers, userPayload }, pubSub) {
|
|
131559
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
131560
|
+
return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
|
|
131561
|
+
}
|
|
131562
|
+
async RunMJWebSearchProviderViewByName(input, { providers, userPayload }, pubSub) {
|
|
131563
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
131564
|
+
return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
|
|
131565
|
+
}
|
|
131566
|
+
async RunMJWebSearchProviderDynamicView(input, { providers, userPayload }, pubSub) {
|
|
131567
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
131568
|
+
input.EntityName = 'MJ: Web Search Providers';
|
|
131569
|
+
return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
|
|
131570
|
+
}
|
|
131571
|
+
async MJWebSearchProvider(ID, { userPayload, providers }, pubSub) {
|
|
131572
|
+
this.CheckUserReadPermissions('MJ: Web Search Providers', userPayload);
|
|
131573
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
131574
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwWebSearchProviders')} WHERE ${provider.QuoteIdentifier('ID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Web Search Providers', userPayload, EntityPermissionType.Read, 'AND');
|
|
131575
|
+
const rows = await provider.ExecuteSQL(sSQL, [ID], undefined, this.GetUserFromPayload(userPayload));
|
|
131576
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Web Search Providers', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
131577
|
+
return result;
|
|
131578
|
+
}
|
|
131579
|
+
async CreateMJWebSearchProvider(input, { providers, userPayload }, pubSub) {
|
|
131580
|
+
const provider = GetReadWriteProvider(providers);
|
|
131581
|
+
return this.CreateRecord('MJ: Web Search Providers', input, provider, userPayload, pubSub);
|
|
131582
|
+
}
|
|
131583
|
+
async UpdateMJWebSearchProvider(input, { providers, userPayload }, pubSub) {
|
|
131584
|
+
const provider = GetReadWriteProvider(providers);
|
|
131585
|
+
return this.UpdateRecord('MJ: Web Search Providers', input, provider, userPayload, pubSub);
|
|
131586
|
+
}
|
|
131587
|
+
async DeleteMJWebSearchProvider(ID, options, { providers, userPayload }, pubSub) {
|
|
131588
|
+
const provider = GetReadWriteProvider(providers);
|
|
131589
|
+
const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
|
|
131590
|
+
return this.DeleteRecord('MJ: Web Search Providers', key, options, provider, userPayload, pubSub);
|
|
131591
|
+
}
|
|
131592
|
+
};
|
|
131593
|
+
__decorate([
|
|
131594
|
+
Query(() => RunMJWebSearchProviderViewResult),
|
|
131595
|
+
__param(0, Arg('input', () => RunViewByIDInput)),
|
|
131596
|
+
__param(1, Ctx()),
|
|
131597
|
+
__param(2, PubSub()),
|
|
131598
|
+
__metadata("design:type", Function),
|
|
131599
|
+
__metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
|
|
131600
|
+
__metadata("design:returntype", Promise)
|
|
131601
|
+
], MJWebSearchProviderResolver.prototype, "RunMJWebSearchProviderViewByID", null);
|
|
131602
|
+
__decorate([
|
|
131603
|
+
Query(() => RunMJWebSearchProviderViewResult),
|
|
131604
|
+
__param(0, Arg('input', () => RunViewByNameInput)),
|
|
131605
|
+
__param(1, Ctx()),
|
|
131606
|
+
__param(2, PubSub()),
|
|
131607
|
+
__metadata("design:type", Function),
|
|
131608
|
+
__metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
|
|
131609
|
+
__metadata("design:returntype", Promise)
|
|
131610
|
+
], MJWebSearchProviderResolver.prototype, "RunMJWebSearchProviderViewByName", null);
|
|
131611
|
+
__decorate([
|
|
131612
|
+
Query(() => RunMJWebSearchProviderViewResult),
|
|
131613
|
+
__param(0, Arg('input', () => RunDynamicViewInput)),
|
|
131614
|
+
__param(1, Ctx()),
|
|
131615
|
+
__param(2, PubSub()),
|
|
131616
|
+
__metadata("design:type", Function),
|
|
131617
|
+
__metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
|
|
131618
|
+
__metadata("design:returntype", Promise)
|
|
131619
|
+
], MJWebSearchProviderResolver.prototype, "RunMJWebSearchProviderDynamicView", null);
|
|
131620
|
+
__decorate([
|
|
131621
|
+
Query(() => MJWebSearchProvider_, { nullable: true }),
|
|
131622
|
+
__param(0, Arg('ID', () => String)),
|
|
131623
|
+
__param(1, Ctx()),
|
|
131624
|
+
__param(2, PubSub()),
|
|
131625
|
+
__metadata("design:type", Function),
|
|
131626
|
+
__metadata("design:paramtypes", [String, Object, PubSubEngine]),
|
|
131627
|
+
__metadata("design:returntype", Promise)
|
|
131628
|
+
], MJWebSearchProviderResolver.prototype, "MJWebSearchProvider", null);
|
|
131629
|
+
__decorate([
|
|
131630
|
+
Mutation(() => MJWebSearchProvider_),
|
|
131631
|
+
__param(0, Arg('input', () => CreateMJWebSearchProviderInput)),
|
|
131632
|
+
__param(1, Ctx()),
|
|
131633
|
+
__param(2, PubSub()),
|
|
131634
|
+
__metadata("design:type", Function),
|
|
131635
|
+
__metadata("design:paramtypes", [CreateMJWebSearchProviderInput, Object, PubSubEngine]),
|
|
131636
|
+
__metadata("design:returntype", Promise)
|
|
131637
|
+
], MJWebSearchProviderResolver.prototype, "CreateMJWebSearchProvider", null);
|
|
131638
|
+
__decorate([
|
|
131639
|
+
Mutation(() => MJWebSearchProvider_),
|
|
131640
|
+
__param(0, Arg('input', () => UpdateMJWebSearchProviderInput)),
|
|
131641
|
+
__param(1, Ctx()),
|
|
131642
|
+
__param(2, PubSub()),
|
|
131643
|
+
__metadata("design:type", Function),
|
|
131644
|
+
__metadata("design:paramtypes", [UpdateMJWebSearchProviderInput, Object, PubSubEngine]),
|
|
131645
|
+
__metadata("design:returntype", Promise)
|
|
131646
|
+
], MJWebSearchProviderResolver.prototype, "UpdateMJWebSearchProvider", null);
|
|
131647
|
+
__decorate([
|
|
131648
|
+
Mutation(() => MJWebSearchProvider_),
|
|
131649
|
+
__param(0, Arg('ID', () => String)),
|
|
131650
|
+
__param(1, Arg('options___', () => DeleteOptionsInput)),
|
|
131651
|
+
__param(2, Ctx()),
|
|
131652
|
+
__param(3, PubSub()),
|
|
131653
|
+
__metadata("design:type", Function),
|
|
131654
|
+
__metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
|
|
131655
|
+
__metadata("design:returntype", Promise)
|
|
131656
|
+
], MJWebSearchProviderResolver.prototype, "DeleteMJWebSearchProvider", null);
|
|
131657
|
+
MJWebSearchProviderResolver = __decorate([
|
|
131658
|
+
Resolver(MJWebSearchProvider_)
|
|
131659
|
+
], MJWebSearchProviderResolver);
|
|
131660
|
+
export { MJWebSearchProviderResolver };
|
|
131661
|
+
//****************************************************************************
|
|
130358
131662
|
// ENTITY CLASS for MJ: Workspace Items
|
|
130359
131663
|
//****************************************************************************
|
|
130360
131664
|
let MJWorkspaceItem_ = class MJWorkspaceItem_ {
|