@memberjunction/server 6.2.0-edge.3 → 6.2.0-edge.4
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/BridgeHostInstance.d.ts +25 -0
- package/dist/agentSessions/BridgeHostInstance.d.ts.map +1 -0
- package/dist/agentSessions/BridgeHostInstance.js +30 -0
- package/dist/agentSessions/BridgeHostInstance.js.map +1 -0
- package/dist/agentSessions/HostInstance.d.ts +75 -11
- package/dist/agentSessions/HostInstance.d.ts.map +1 -1
- package/dist/agentSessions/HostInstance.js +99 -28
- package/dist/agentSessions/HostInstance.js.map +1 -1
- package/dist/agentSessions/ReturningVisitorRecap.d.ts.map +1 -1
- package/dist/agentSessions/ReturningVisitorRecap.js +7 -3
- package/dist/agentSessions/ReturningVisitorRecap.js.map +1 -1
- package/dist/agentSessions/SessionJanitor.d.ts +173 -25
- package/dist/agentSessions/SessionJanitor.d.ts.map +1 -1
- package/dist/agentSessions/SessionJanitor.js +452 -54
- package/dist/agentSessions/SessionJanitor.js.map +1 -1
- package/dist/agentSessions/SessionManager.d.ts +43 -2
- package/dist/agentSessions/SessionManager.d.ts.map +1 -1
- package/dist/agentSessions/SessionManager.js +99 -8
- package/dist/agentSessions/SessionManager.js.map +1 -1
- package/dist/agentSessions/SessionRunIDVerifier.d.ts +63 -0
- package/dist/agentSessions/SessionRunIDVerifier.d.ts.map +1 -0
- package/dist/agentSessions/SessionRunIDVerifier.js +129 -0
- package/dist/agentSessions/SessionRunIDVerifier.js.map +1 -0
- package/dist/agentSessions/index.d.ts +2 -0
- package/dist/agentSessions/index.d.ts.map +1 -1
- package/dist/agentSessions/index.js +10 -3
- package/dist/agentSessions/index.js.map +1 -1
- package/dist/auth/actionAuthorization.d.ts +40 -0
- package/dist/auth/actionAuthorization.d.ts.map +1 -0
- package/dist/auth/actionAuthorization.js +94 -0
- package/dist/auth/actionAuthorization.js.map +1 -0
- package/dist/auth/index.d.ts.map +1 -1
- package/dist/auth/index.js +3 -10
- package/dist/auth/index.js.map +1 -1
- package/dist/auth/magicLink/MagicLinkService.d.ts.map +1 -1
- package/dist/auth/magicLink/MagicLinkService.js +6 -3
- package/dist/auth/magicLink/MagicLinkService.js.map +1 -1
- package/dist/auth/newUsers.d.ts +10 -0
- package/dist/auth/newUsers.d.ts.map +1 -1
- package/dist/auth/newUsers.js +80 -11
- package/dist/auth/newUsers.js.map +1 -1
- package/dist/config.d.ts +2378 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +123 -0
- package/dist/config.js.map +1 -1
- package/dist/context.d.ts +8 -0
- package/dist/context.d.ts.map +1 -1
- package/dist/context.js +14 -11
- package/dist/context.js.map +1 -1
- package/dist/generated/graphql-schemas/__mj.d.ts +135 -0
- package/dist/generated/graphql-schemas/__mj.d.ts.map +1 -1
- package/dist/generated/graphql-schemas/__mj.js +706 -0
- package/dist/generated/graphql-schemas/__mj.js.map +1 -1
- package/dist/generic/OrphanedConversationDetailReconciler.js +3 -3
- package/dist/generic/OrphanedConversationDetailReconciler.js.map +1 -1
- package/dist/generic/ResolverBase.d.ts +20 -4
- package/dist/generic/ResolverBase.d.ts.map +1 -1
- package/dist/generic/ResolverBase.js +39 -10
- package/dist/generic/ResolverBase.js.map +1 -1
- package/dist/generic/RunViewResolver.d.ts.map +1 -1
- package/dist/generic/RunViewResolver.js +4 -0
- package/dist/generic/RunViewResolver.js.map +1 -1
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +120 -131
- package/dist/index.js.map +1 -1
- package/dist/isolatedProvider.d.ts +20 -0
- package/dist/isolatedProvider.d.ts.map +1 -0
- package/dist/isolatedProvider.js +22 -0
- package/dist/isolatedProvider.js.map +1 -0
- package/dist/realtimeProxy/RealtimeProxyServer.d.ts +44 -4
- package/dist/realtimeProxy/RealtimeProxyServer.d.ts.map +1 -1
- package/dist/realtimeProxy/RealtimeProxyServer.js +121 -16
- package/dist/realtimeProxy/RealtimeProxyServer.js.map +1 -1
- package/dist/realtimeProxy/RealtimeRelayTunnel.d.ts +171 -0
- package/dist/realtimeProxy/RealtimeRelayTunnel.d.ts.map +1 -0
- package/dist/realtimeProxy/RealtimeRelayTunnel.js +532 -0
- package/dist/realtimeProxy/RealtimeRelayTunnel.js.map +1 -0
- package/dist/realtimeSessions/RealtimeSessionEventService.d.ts +148 -0
- package/dist/realtimeSessions/RealtimeSessionEventService.d.ts.map +1 -0
- package/dist/realtimeSessions/RealtimeSessionEventService.js +191 -0
- package/dist/realtimeSessions/RealtimeSessionEventService.js.map +1 -0
- package/dist/realtimeSessions/RealtimeSessionVerificationService.d.ts +66 -0
- package/dist/realtimeSessions/RealtimeSessionVerificationService.d.ts.map +1 -0
- package/dist/realtimeSessions/RealtimeSessionVerificationService.js +138 -0
- package/dist/realtimeSessions/RealtimeSessionVerificationService.js.map +1 -0
- package/dist/realtimeSessions/RealtimeVerifyRouter.d.ts +38 -0
- package/dist/realtimeSessions/RealtimeVerifyRouter.d.ts.map +1 -0
- package/dist/realtimeSessions/RealtimeVerifyRouter.js +98 -0
- package/dist/realtimeSessions/RealtimeVerifyRouter.js.map +1 -0
- package/dist/realtimeSessions/SessionVerificationPortsBase.d.ts +61 -0
- package/dist/realtimeSessions/SessionVerificationPortsBase.d.ts.map +1 -0
- package/dist/realtimeSessions/SessionVerificationPortsBase.js +149 -0
- package/dist/realtimeSessions/SessionVerificationPortsBase.js.map +1 -0
- package/dist/realtimeSessions/SlidingWindowRateLimiter.d.ts +57 -0
- package/dist/realtimeSessions/SlidingWindowRateLimiter.d.ts.map +1 -0
- package/dist/realtimeSessions/SlidingWindowRateLimiter.js +69 -0
- package/dist/realtimeSessions/SlidingWindowRateLimiter.js.map +1 -0
- package/dist/realtimeSessions/index.d.ts +17 -0
- package/dist/realtimeSessions/index.d.ts.map +1 -0
- package/dist/realtimeSessions/index.js +17 -0
- package/dist/realtimeSessions/index.js.map +1 -0
- package/dist/realtimeSessions/sessionAccess.d.ts +86 -0
- package/dist/realtimeSessions/sessionAccess.d.ts.map +1 -0
- package/dist/realtimeSessions/sessionAccess.js +90 -0
- package/dist/realtimeSessions/sessionAccess.js.map +1 -0
- package/dist/realtimeSessions/sessionConfigStamps.d.ts +70 -0
- package/dist/realtimeSessions/sessionConfigStamps.d.ts.map +1 -0
- package/dist/realtimeSessions/sessionConfigStamps.js +93 -0
- package/dist/realtimeSessions/sessionConfigStamps.js.map +1 -0
- package/dist/realtimeSessions/subscriptionAuthorization.d.ts +65 -0
- package/dist/realtimeSessions/subscriptionAuthorization.d.ts.map +1 -0
- package/dist/realtimeSessions/subscriptionAuthorization.js +71 -0
- package/dist/realtimeSessions/subscriptionAuthorization.js.map +1 -0
- package/dist/realtimeSessions/verificationCore.d.ts +243 -0
- package/dist/realtimeSessions/verificationCore.d.ts.map +1 -0
- package/dist/realtimeSessions/verificationCore.js +356 -0
- package/dist/realtimeSessions/verificationCore.js.map +1 -0
- package/dist/realtimeSessions/verificationPages.d.ts +66 -0
- package/dist/realtimeSessions/verificationPages.d.ts.map +1 -0
- package/dist/realtimeSessions/verificationPages.js +110 -0
- package/dist/realtimeSessions/verificationPages.js.map +1 -0
- package/dist/realtimeSessions/verificationPolicy.d.ts +147 -0
- package/dist/realtimeSessions/verificationPolicy.d.ts.map +1 -0
- package/dist/realtimeSessions/verificationPolicy.js +249 -0
- package/dist/realtimeSessions/verificationPolicy.js.map +1 -0
- package/dist/realtimeSessions/verificationWorkflow.d.ts +263 -0
- package/dist/realtimeSessions/verificationWorkflow.d.ts.map +1 -0
- package/dist/realtimeSessions/verificationWorkflow.js +435 -0
- package/dist/realtimeSessions/verificationWorkflow.js.map +1 -0
- package/dist/realtimeWidget/widgetGuestElevation.d.ts +20 -2
- package/dist/realtimeWidget/widgetGuestElevation.d.ts.map +1 -1
- package/dist/realtimeWidget/widgetGuestElevation.js +31 -2
- package/dist/realtimeWidget/widgetGuestElevation.js.map +1 -1
- package/dist/resolvers/ActionResolver.d.ts +31 -5
- package/dist/resolvers/ActionResolver.d.ts.map +1 -1
- package/dist/resolvers/ActionResolver.js +75 -14
- package/dist/resolvers/ActionResolver.js.map +1 -1
- package/dist/resolvers/AdhocQueryResolver.d.ts +14 -1
- package/dist/resolvers/AdhocQueryResolver.d.ts.map +1 -1
- package/dist/resolvers/AdhocQueryResolver.js +21 -5
- package/dist/resolvers/AdhocQueryResolver.js.map +1 -1
- package/dist/resolvers/CacheStatsResolver.d.ts +27 -0
- package/dist/resolvers/CacheStatsResolver.d.ts.map +1 -1
- package/dist/resolvers/CacheStatsResolver.js +113 -2
- package/dist/resolvers/CacheStatsResolver.js.map +1 -1
- package/dist/resolvers/ClientToolRequestResolver.d.ts +4 -2
- package/dist/resolvers/ClientToolRequestResolver.d.ts.map +1 -1
- package/dist/resolvers/ClientToolRequestResolver.js +28 -10
- package/dist/resolvers/ClientToolRequestResolver.js.map +1 -1
- package/dist/resolvers/FetchEntityVectorsResolver.d.ts +12 -1
- package/dist/resolvers/FetchEntityVectorsResolver.d.ts.map +1 -1
- package/dist/resolvers/FetchEntityVectorsResolver.js +83 -2
- package/dist/resolvers/FetchEntityVectorsResolver.js.map +1 -1
- package/dist/resolvers/HumanHandoffResolver.d.ts.map +1 -1
- package/dist/resolvers/HumanHandoffResolver.js +7 -1
- package/dist/resolvers/HumanHandoffResolver.js.map +1 -1
- package/dist/resolvers/MCPResolver.d.ts.map +1 -1
- package/dist/resolvers/MCPResolver.js +9 -4
- package/dist/resolvers/MCPResolver.js.map +1 -1
- package/dist/resolvers/RealtimeBridgeResolver.d.ts +54 -2
- package/dist/resolvers/RealtimeBridgeResolver.d.ts.map +1 -1
- package/dist/resolvers/RealtimeBridgeResolver.js +155 -10
- package/dist/resolvers/RealtimeBridgeResolver.js.map +1 -1
- package/dist/resolvers/RealtimeClientSessionResolver.d.ts +155 -25
- package/dist/resolvers/RealtimeClientSessionResolver.d.ts.map +1 -1
- package/dist/resolvers/RealtimeClientSessionResolver.js +394 -90
- package/dist/resolvers/RealtimeClientSessionResolver.js.map +1 -1
- package/dist/resolvers/RealtimeSessionEventsResolver.d.ts +61 -0
- package/dist/resolvers/RealtimeSessionEventsResolver.d.ts.map +1 -0
- package/dist/resolvers/RealtimeSessionEventsResolver.js +130 -0
- package/dist/resolvers/RealtimeSessionEventsResolver.js.map +1 -0
- package/dist/resolvers/RealtimeSessionVerificationResolver.d.ts +85 -0
- package/dist/resolvers/RealtimeSessionVerificationResolver.d.ts.map +1 -0
- package/dist/resolvers/RealtimeSessionVerificationResolver.js +188 -0
- package/dist/resolvers/RealtimeSessionVerificationResolver.js.map +1 -0
- package/dist/resolvers/RemoteBrowserActionResolver.d.ts +2 -0
- package/dist/resolvers/RemoteBrowserActionResolver.d.ts.map +1 -1
- package/dist/resolvers/RemoteBrowserActionResolver.js +5 -1
- package/dist/resolvers/RemoteBrowserActionResolver.js.map +1 -1
- package/dist/resolvers/RunAIAgentResolver.d.ts +10 -0
- package/dist/resolvers/RunAIAgentResolver.d.ts.map +1 -1
- package/dist/resolvers/RunAIAgentResolver.js +68 -11
- package/dist/resolvers/RunAIAgentResolver.js.map +1 -1
- package/dist/resolvers/RunTemplateResolver.d.ts.map +1 -1
- package/dist/resolvers/RunTemplateResolver.js +12 -11
- package/dist/resolvers/RunTemplateResolver.js.map +1 -1
- package/dist/resolvers/SyncDataResolver.d.ts.map +1 -1
- package/dist/resolvers/SyncDataResolver.js +6 -2
- package/dist/resolvers/SyncDataResolver.js.map +1 -1
- package/dist/resolvers/SyncRolesUsersResolver.d.ts +2 -0
- package/dist/resolvers/SyncRolesUsersResolver.d.ts.map +1 -1
- package/dist/resolvers/SyncRolesUsersResolver.js +23 -6
- package/dist/resolvers/SyncRolesUsersResolver.js.map +1 -1
- package/dist/resolvers/UserAvatarResolver.d.ts +16 -0
- package/dist/resolvers/UserAvatarResolver.d.ts.map +1 -0
- package/dist/resolvers/UserAvatarResolver.js +124 -0
- package/dist/resolvers/UserAvatarResolver.js.map +1 -0
- package/dist/resolvers/UserResolver.d.ts.map +1 -1
- package/dist/resolvers/UserResolver.js +2 -17
- package/dist/resolvers/UserResolver.js.map +1 -1
- package/dist/resolvers/agentVisionConsentAudit.d.ts +37 -0
- package/dist/resolvers/agentVisionConsentAudit.d.ts.map +1 -0
- package/dist/resolvers/agentVisionConsentAudit.js +63 -0
- package/dist/resolvers/agentVisionConsentAudit.js.map +1 -0
- package/dist/resolvers/avatarInputValidation.d.ts +40 -0
- package/dist/resolvers/avatarInputValidation.d.ts.map +1 -0
- package/dist/resolvers/avatarInputValidation.js +97 -0
- package/dist/resolvers/avatarInputValidation.js.map +1 -0
- package/dist/resolvers/currentUserRoles.d.ts +29 -0
- package/dist/resolvers/currentUserRoles.d.ts.map +1 -1
- package/dist/resolvers/currentUserRoles.js +30 -0
- package/dist/resolvers/currentUserRoles.js.map +1 -1
- package/dist/resolvers/meetings/meetingMutations.d.ts +6 -0
- package/dist/resolvers/meetings/meetingMutations.d.ts.map +1 -1
- package/dist/resolvers/meetings/meetingMutations.js +21 -0
- package/dist/resolvers/meetings/meetingMutations.js.map +1 -1
- package/dist/services/TaskGraphContinuationDeliverer.d.ts +4 -3
- package/dist/services/TaskGraphContinuationDeliverer.d.ts.map +1 -1
- package/dist/services/TaskGraphContinuationDeliverer.js +13 -7
- package/dist/services/TaskGraphContinuationDeliverer.js.map +1 -1
- package/dist/sharedCache.d.ts +105 -0
- package/dist/sharedCache.d.ts.map +1 -0
- package/dist/sharedCache.js +276 -0
- package/dist/sharedCache.js.map +1 -0
- package/dist/types.d.ts +6 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js.map +1 -1
- package/package.json +97 -95
- package/src/__tests__/ActionResolver.authorization.test.ts +353 -0
- package/src/__tests__/AdhocQueryResolver.sqlAuthorizer.test.ts +104 -0
- package/src/__tests__/BridgeHostInstance.test.ts +232 -0
- package/src/__tests__/ClientToolRequestResolver.test.ts +116 -0
- package/src/__tests__/FetchEntityVectorsResolver.test.ts +285 -0
- package/src/__tests__/HostInstance.test.ts +84 -0
- package/src/__tests__/HumanHandoffResolver.test.ts +17 -0
- package/src/__tests__/MeetingResolver.test.ts +75 -1
- package/src/__tests__/RealtimeBridgeResolver.test.ts +415 -6
- package/src/__tests__/RealtimeClientSessionResolver.configTamper.test.ts +383 -0
- package/src/__tests__/RealtimeClientSessionResolver.test.ts +682 -58
- package/src/__tests__/RealtimeProxyServer.test.ts +16 -1
- package/src/__tests__/RealtimeRelay.test.ts +876 -0
- package/src/__tests__/RemoteBrowserActionResolver.goalRunLink.test.ts +129 -0
- package/src/__tests__/ResolverBase.aggregateScreen.test.ts +174 -0
- package/src/__tests__/ResolverBase.clientOldValues.test.ts +6 -3
- package/src/__tests__/ReturningVisitorRecap.test.ts +115 -0
- package/src/__tests__/RunAIAgentResolver.branch.test.ts +169 -0
- package/src/__tests__/RunAIAgentResolver.historyFrom.test.ts +4 -4
- package/src/__tests__/RunAIAgentResolver.stoppedPredecessor.test.ts +166 -0
- package/src/__tests__/RunTemplateResolver.test.ts +132 -0
- package/src/__tests__/RunViewResolver.cacheCheckForwarding.test.ts +63 -0
- package/src/__tests__/SessionJanitor.test.ts +845 -18
- package/src/__tests__/SessionManager.test.ts +213 -17
- package/src/__tests__/SessionRunIDVerifier.test.ts +251 -0
- package/src/__tests__/SyncRolesUsersResolver.userRoles.test.ts +97 -0
- package/src/__tests__/TaskGraphContinuationDeliverer.test.ts +50 -3
- package/src/__tests__/UserAvatarResolver.test.ts +255 -0
- package/src/__tests__/UserResolver.currentUser.test.ts +16 -1
- package/src/__tests__/actionAuthorization.test.ts +130 -0
- package/src/__tests__/agentVisionConsentAudit.test.ts +118 -0
- package/src/__tests__/avatarInputValidation.test.ts +160 -0
- package/src/__tests__/isolatedProviderTransactions.test.ts +169 -0
- package/src/__tests__/magicLinkService.consume.test.ts +6 -0
- package/src/__tests__/magicLinkService.provisionLog.test.ts +5 -0
- package/src/__tests__/newUsers.template.test.ts +151 -0
- package/src/__tests__/newUsers.test.ts +74 -5
- package/src/__tests__/orphanedConversationDetailReconciler.test.ts +17 -2
- package/src/__tests__/realtimeSessions/RealtimeSessionEventService.test.ts +201 -0
- package/src/__tests__/realtimeSessions/RealtimeSessionEventsResolver.test.ts +215 -0
- package/src/__tests__/realtimeSessions/RealtimeSessionVerificationResolver.test.ts +102 -0
- package/src/__tests__/realtimeSessions/RealtimeSessionVerificationService.test.ts +349 -0
- package/src/__tests__/realtimeSessions/RealtimeVerifyRouter.test.ts +131 -0
- package/src/__tests__/realtimeSessions/SlidingWindowRateLimiter.test.ts +56 -0
- package/src/__tests__/realtimeSessions/helpers.ts +4 -0
- package/src/__tests__/realtimeSessions/sessionAccess.test.ts +129 -0
- package/src/__tests__/realtimeSessions/sessionConfigStamps.test.ts +124 -0
- package/src/__tests__/realtimeSessions/verificationCore.test.ts +355 -0
- package/src/__tests__/realtimeSessions/verificationPages.test.ts +84 -0
- package/src/__tests__/realtimeSessions/verificationPolicy.test.ts +226 -0
- package/src/__tests__/realtimeSessions/verificationWorkflow.test.ts +633 -0
- package/src/__tests__/resolverBase.fls.test.ts +87 -4
- package/src/__tests__/serverExtensionReservedRoots.test.ts +2 -0
- package/src/__tests__/sharedCache.test.ts +310 -0
- package/src/__tests__/widgetGuestElevation.test.ts +44 -0
- package/src/agentSessions/BridgeHostInstance.ts +32 -0
- package/src/agentSessions/HostInstance.ts +124 -28
- package/src/agentSessions/ReturningVisitorRecap.ts +7 -3
- package/src/agentSessions/SessionJanitor.ts +543 -57
- package/src/agentSessions/SessionManager.ts +125 -25
- package/src/agentSessions/SessionRunIDVerifier.ts +171 -0
- package/src/agentSessions/index.ts +10 -3
- package/src/auth/actionAuthorization.ts +116 -0
- package/src/auth/index.ts +3 -8
- package/src/auth/magicLink/MagicLinkService.ts +6 -3
- package/src/auth/newUsers.ts +99 -11
- package/src/config.ts +125 -0
- package/src/context.ts +15 -10
- package/src/generated/graphql-schemas/__mj.ts +496 -1
- package/src/generic/OrphanedConversationDetailReconciler.ts +3 -3
- package/src/generic/ResolverBase.ts +39 -9
- package/src/generic/RunViewResolver.ts +4 -0
- package/src/index.ts +132 -143
- package/src/isolatedProvider.ts +22 -0
- package/src/realtimeProxy/RealtimeProxyServer.ts +148 -16
- package/src/realtimeProxy/RealtimeRelayTunnel.ts +645 -0
- package/src/realtimeSessions/README.md +179 -0
- package/src/realtimeSessions/RealtimeSessionEventService.ts +274 -0
- package/src/realtimeSessions/RealtimeSessionVerificationService.ts +167 -0
- package/src/realtimeSessions/RealtimeVerifyRouter.ts +108 -0
- package/src/realtimeSessions/SessionVerificationPortsBase.ts +189 -0
- package/src/realtimeSessions/SlidingWindowRateLimiter.ts +92 -0
- package/src/realtimeSessions/index.ts +16 -0
- package/src/realtimeSessions/sessionAccess.ts +141 -0
- package/src/realtimeSessions/sessionConfigStamps.ts +123 -0
- package/src/realtimeSessions/subscriptionAuthorization.ts +116 -0
- package/src/realtimeSessions/verificationCore.ts +502 -0
- package/src/realtimeSessions/verificationPages.ts +149 -0
- package/src/realtimeSessions/verificationPolicy.ts +321 -0
- package/src/realtimeSessions/verificationWorkflow.ts +702 -0
- package/src/realtimeWidget/widgetGuestElevation.ts +34 -2
- package/src/resolvers/ActionResolver.ts +84 -21
- package/src/resolvers/AdhocQueryResolver.ts +24 -6
- package/src/resolvers/CacheStatsResolver.ts +89 -2
- package/src/resolvers/ClientToolRequestResolver.ts +25 -7
- package/src/resolvers/FetchEntityVectorsResolver.ts +97 -2
- package/src/resolvers/HumanHandoffResolver.ts +8 -0
- package/src/resolvers/MCPResolver.ts +8 -5
- package/src/resolvers/RealtimeBridgeResolver.ts +163 -11
- package/src/resolvers/RealtimeClientSessionResolver.ts +501 -96
- package/src/resolvers/RealtimeSessionEventsResolver.ts +133 -0
- package/src/resolvers/RealtimeSessionVerificationResolver.ts +174 -0
- package/src/resolvers/RemoteBrowserActionResolver.ts +11 -1
- package/src/resolvers/RunAIAgentResolver.ts +78 -11
- package/src/resolvers/RunTemplateResolver.ts +13 -12
- package/src/resolvers/SyncDataResolver.ts +6 -2
- package/src/resolvers/SyncRolesUsersResolver.ts +24 -6
- package/src/resolvers/UserAvatarResolver.ts +111 -0
- package/src/resolvers/UserResolver.ts +2 -16
- package/src/resolvers/agentVisionConsentAudit.ts +82 -0
- package/src/resolvers/avatarInputValidation.ts +123 -0
- package/src/resolvers/currentUserRoles.ts +32 -1
- package/src/resolvers/meetings/meetingMutations.ts +21 -0
- package/src/services/TaskGraphContinuationDeliverer.ts +13 -7
- package/src/sharedCache.ts +302 -0
- package/src/types.ts +7 -0
|
@@ -18,7 +18,7 @@ import { mj_core_schema } from '../../config.js';
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
import { MJAIActionEntity, MJAIAgentActionEntity, MJAIAgentArtifactTypeEntity, MJAIAgentCategoryEntity, MJAIAgentChannelEntity, MJAIAgentClientToolEntity, MJAIAgentCoAgentEntity, MJAIAgentConfigurationEntity, MJAIAgentCredentialEntity, MJAIAgentDataSourceEntity, MJAIAgentExampleEntity, MJAIAgentHarnessEntity, MJAIAgentLearningCycleEntity, MJAIAgentModalityEntity, MJAIAgentModelEntity, MJAIAgentNoteTypeEntity, MJAIAgentNoteEntity, MJAIAgentPermissionEntity, MJAIAgentPersonaEntity, MJAIAgentPromptEntity, MJAIAgentRelationshipEntity, MJAIAgentRequestTypeEntity, MJAIAgentRequestEntity, MJAIAgentRubricEntity, MJAIAgentRunMediaEntity, MJAIAgentRunStepEntity, MJAIAgentRunEntity, MJAIAgentSearchScopeEntity, MJAIAgentSessionBridgeParticipantEntity, MJAIAgentSessionBridgeEntity, MJAIAgentSessionChannelEntity, MJAIAgentSessionEntity, MJAIAgentSkillEntity, MJAIAgentStepPathEntity, MJAIAgentStepEntity, MJAIAgentTypeEntity, MJAIAgentEntity, MJAIArchitectureEntity, MJAIBridgeAgentIdentityEntity, MJAIBridgeProviderChannelEntity, MJAIBridgeProviderEntity, MJAIClientToolDefinitionEntity, MJAIConfigurationParamEntity, MJAIConfigurationEntity, MJAICredentialBindingEntity, MJAIModalityEntity, MJAIModelActionEntity, MJAIModelArchitectureEntity, MJAIModelCostEntity, MJAIModelModalityEntity, MJAIModelPersonaEntity, MJAIModelPriceTypeEntity, MJAIModelPriceUnitTypeEntity, MJAIModelTypeEntity, MJAIModelVendorEntity, MJAIModelEntity, MJAIPersonaVendorEntity, MJAIPersonaEntity, MJAIPromptCategoryEntity, MJAIPromptModelEntity, MJAIPromptRunMediaEntity, MJAIPromptRunEntity, MJAIPromptTypeEntity, MJAIPromptEntity, MJAIRemoteBrowserProviderEntity, MJAIResultCacheEntity, MJAISkillActionEntity, MJAISkillPermissionEntity, MJAISkillSearchScopeEntity, MJAISkillSubAgentEntity, MJAISkillEntity, MJAIUsageTypeEntity, MJAIVendorTypeDefinitionEntity, MJAIVendorTypeEntity, MJAIVendorEntity, MJAPIApplicationScopeEntity, MJAPIApplicationEntity, MJAPIKeyApplicationEntity, MJAPIKeyScopeEntity, MJAPIKeyUsageLogEntity, MJAPIKeyEntity, MJAPIScopeEntity, MJAccessControlRuleEntity, MJActionAuthorizationEntity, MJActionCategoryEntity, MJActionContextTypeEntity, MJActionContextEntity, MJActionExecutionLogEntity, MJActionFilterEntity, MJActionLibraryEntity, MJActionParamEntity, MJActionResultCodeEntity, MJActionEntity, MJApplicationEntityEntity, MJApplicationRoleEntity, MJApplicationSettingEntity, MJApplicationEntity, MJArchiveConfigurationEntityEntity, MJArchiveConfigurationEntity, MJArchiveRunDetailEntity, MJArchiveRunEntity, MJArtifactPermissionEntity, MJArtifactTypeEntity, MJArtifactUseEntity, MJArtifactVersionAttributeEntity, MJArtifactVersionEntity, MJArtifactEntity, MJAuditLogTypeEntity, MJAuditLogEntity, MJAuthenticationProviderEntity, MJAuthorizationRoleEntity, MJAuthorizationEntity, MJClusterAnalysisEntity, MJClusterAnalysisClusterEntity, MJCollectionArtifactEntity, MJCollectionPermissionEntity, MJCollectionEntity, MJCommunicationBaseMessageTypeEntity, MJCommunicationLogEntity, MJCommunicationProviderMessageTypeEntity, MJCommunicationProviderEntity, MJCommunicationRunEntity, MJCompanyEntity, MJCompanyIntegrationEntityMapEntity, MJCompanyIntegrationFieldMapEntity, MJCompanyIntegrationRecordMapEntity, MJCompanyIntegrationRunAPILogEntity, MJCompanyIntegrationRunDetailEntity, MJCompanyIntegrationRunEntity, MJCompanyIntegrationSyncWatermarkEntity, MJCompanyIntegrationEntity, MJComponentDependencyEntity, MJComponentLibraryEntity, MJComponentLibraryLinkEntity, MJComponentRegistryEntity, MJComponentEntity, MJContentFileTypeEntity, MJContentItemAttributeEntity, MJContentItemChunkEntity, MJContentItemDuplicateEntity, MJContentItemTagEntity, MJContentItemEntity, MJContentProcessRunDetailEntity, MJContentProcessRunPromptRunEntity, MJContentProcessRunEntity, MJContentSourceParamEntity, MJContentSourceTypeParamEntity, MJContentSourceTypeEntity, MJContentSourceEntity, MJContentTypeAttributeEntity, MJContentTypeEntity, MJConversationArtifactPermissionEntity, MJConversationArtifactVersionEntity, MJConversationArtifactEntity, MJConversationCompactionRunEntity, MJConversationDetailArtifactEntity, MJConversationDetailAttachmentEntity, MJConversationDetailRatingEntity, MJConversationDetailEntity, MJConversationSkillEntity, MJConversationWidgetInstanceEntity, MJConversationEntity, MJCountryEntity, MJCredentialCategoryEntity, MJCredentialTypeEntity, MJCredentialEntity, MJDashboardCategoryEntity, MJDashboardCategoryLinkEntity, MJDashboardCategoryPermissionEntity, MJDashboardPartTypeEntity, MJDashboardPermissionEntity, MJDashboardUserPreferenceEntity, MJDashboardUserStateEntity, MJDashboardEntity, MJDataContextItemEntity, MJDataContextEntity, MJDatasetItemEntity, MJDatasetEntity, MJDuplicateRunDetailMatchEntity, MJDuplicateRunDetailEntity, MJDuplicateRunEntity, MJEmployeeCompanyIntegrationEntity, MJEmployeeRoleEntity, MJEmployeeSkillEntity, MJEmployeeEntity, MJEncryptionAlgorithmEntity, MJEncryptionKeySourceEntity, MJEncryptionKeyEntity, MJEntityEntity, MJEntityAIActionEntity, MJEntityActionFilterEntity, MJEntityActionInvocationTypeEntity, MJEntityActionInvocationEntity, MJEntityActionParamEntity, MJEntityActionEntity, MJEntityCommunicationFieldEntity, MJEntityCommunicationMessageTypeEntity, MJEntityDocumentRunEntity, MJEntityDocumentSettingEntity, MJEntityDocumentTypeEntity, MJEntityDocumentEntity, MJEntityFieldPermissionEntity, MJEntityFieldValueEntity, MJEntityFieldEntity, MJEntityFormContributionEntity, MJEntityFormOverrideEntity, MJEntityOrganicKeyRelatedEntityEntity, MJEntityOrganicKeyEntity, MJEntityPermissionEntity, MJEntityRecordDocumentEntity, MJEntityRelationshipDisplayComponentEntity, MJEntityRelationshipEntity, MJEntitySettingEntity, MJEnvironmentEntity, MJErrorLogEntity, MJExperimentSessionIterationEntity, MJExperimentSessionEntity, MJExperimentEntity, MJExplorerNavigationItemEntity, MJExternalDataSourceTypeEntity, MJExternalDataSourceEntity, MJFeaturePipelineTypeEntity, MJFeatureValueCacheEntity, MJFeatureValueEntity, MJFileCategoryEntity, MJFileEntityRecordLinkEntity, MJFileStorageAccountPermissionEntity, MJFileStorageAccountEntity, MJFileStorageProviderEntity, MJFileEntity, MJFormChromeRuleEntity, MJGeneratedCodeCategoryEntity, MJGeneratedCodeEntity, MJIdentityClaimTypeEntity, MJIdentityClaimEntity, MJInstanceConfigurationEntity, MJIntegrationObjectFieldEntity, MJIntegrationObjectEntity, MJIntegrationSourceTypeEntity, MJIntegrationURLFormatEntity, MJIntegrationEntity, MJInteractionEventEntity, MJInteractionLinkEntity, MJInteractionOfferEntity, MJInteractionEntity, MJKnowledgeHubSavedSearchEntity, MJLibraryEntity, MJLibraryItemEntity, MJListCategoryEntity, MJListDetailEntity, MJListInvitationEntity, MJListShareEntity, MJListEntity, MJMCPServerConnectionPermissionEntity, MJMCPServerConnectionToolEntity, MJMCPServerConnectionEntity, MJMCPServerToolEntity, MJMCPServerEntity, MJMCPToolExecutionLogEntity, MJMCPToolFavoriteEntity, MJMLAlgorithmUseCaseRankingEntity, MJMLAlgorithmUseCaseEntity, MJMLAlgorithmEntity, MJMLModelScoringBindingEntity, MJMLModelEntity, MJMLTrainingPipelineEntity, MJMLTrainingRunEntity, MJMagicLinkInviteAllowedDomainEntity, MJMagicLinkInviteAllowedPathEntity, MJMagicLinkInviteApplicationEntity, MJMagicLinkInviteRoleEntity, MJMagicLinkInviteEntity, MJMagicLinkRedemptionEntity, MJMaterializedResultQueryEntity, MJMaterializedResultEntity, MJMeetingParticipantEntity, MJMeetingEntity, MJNumberPoolEntity, MJOAuthAuthServerMetadataCacheEntity, MJOAuthAuthorizationStateEntity, MJOAuthClientRegistrationEntity, MJOAuthTokenEntity, MJOpenAppDependencyEntity, MJOpenAppInstallHistoryEntity, MJOpenAppEntity, MJOutputDeliveryTypeEntity, MJOutputFormatTypeEntity, MJPermissionDomainEntity, MJPhoneNumberEntity, MJProcessRunDetailEntity, MJProcessRunEntity, MJProjectEntity, MJPublicLinkEntity, MJQueryEntity, MJQueryCategoryEntity, MJQueryDependencyEntity, MJQueryEntityEntity, MJQueryFieldEntity, MJQueryParameterEntity, MJQueryPermissionEntity, MJQuerySQLEntity, MJQueueTaskEntity, MJQueueTypeEntity, MJQueueEntity, MJRSUPendingWorkEntity, MJRecommendationItemEntity, MJRecommendationProviderEntity, MJRecommendationRunEntity, MJRecommendationEntity, MJRecordChangeReplayRunEntity, MJRecordChangeEntity, MJRecordCloneLogItemEntity, MJRecordCloneLogEntity, MJRecordGeoCodeEntity, MJRecordLinkEntity, MJRecordMergeDeletionLogEntity, MJRecordMergeLogEntity, MJRecordProcessCategoryEntity, MJRecordProcessWatermarkEntity, MJRecordProcessEntity, MJRemoteOperationCategoryEntity, MJRemoteOperationEntity, MJResourceLinkEntity, MJResourcePermissionEntity, MJResourceTypeEntity, MJRoleEntity, MJRowLevelSecurityFilterEntity, MJRubricBandEntity, MJRubricCategoryEntity, MJRubricCriterionEntity, MJRubricCriterionLevelEntity, MJRubricEvaluationScoreEntity, MJRubricEvaluationEntity, MJRubricScaleLevelEntity, MJRubricScaleEntity, MJRubricVersionEntity, MJRubricEntity, MJSQLDialectEntity, MJScheduledJobRunEntity, MJScheduledJobTypeEntity, MJScheduledJobEntity, MJSchemaInfoEntity, MJScopedPromptConfigEntity, MJScopedPromptPartEntity, MJSearchExecutionLogEntity, MJSearchProviderEntity, MJSearchScopeEntityEntity, MJSearchScopeExternalIndexEntity, MJSearchScopePermissionEntity, MJSearchScopeProviderEntity, MJSearchScopeStorageAccountEntity, MJSearchScopeTestQueryEntity, MJSearchScopeEntity, MJSignatureAccountEntity, MJSignatureProviderEntity, MJSignatureRequestDocumentEntity, MJSignatureRequestLogEntity, MJSignatureRequestRecipientEntity, MJSignatureRequestEntity, MJSkillEntity, MJStateProvinceEntity, MJTagAuditLogEntity, MJTagCoOccurrenceEntity, MJTagScopeEntity, MJTagSuggestionEntity, MJTagSynonymEntity, MJTaggedItemEntity, MJTagEntity, MJTaskDependencyEntity, MJTaskTypeEntity, MJTaskEntity, MJTemplateCategoryEntity, MJTemplateContentTypeEntity, MJTemplateContentEntity, MJTemplateParamEntity, MJTemplateEntity, MJTestRubricEntity, MJTestRunFeedbackEntity, MJTestRunOutputTypeEntity, MJTestRunOutputEntity, MJTestRunEntity, MJTestSuiteRunEntity, MJTestSuiteTestEntity, MJTestSuiteEntity, MJTestTypeEntity, MJTestEntity, MJThemeEntity, MJUserApplicationEntityEntity, MJUserApplicationEntity, MJUserFavoriteEntity, MJUserNotificationPreferenceEntity, MJUserNotificationTypeEntity, MJUserNotificationEntity, MJUserRecordLogEntity, MJUserRoleEntity, MJUserRoutineRecipientEntity, MJUserRoutineRunEntity, MJUserRoutineEntity, MJUserSettingEntity, MJUserViewCategoryEntity, MJUserViewRunDetailEntity, MJUserViewRunEntity, MJUserViewEntity, MJUserEntity, MJVectorDatabaseEntity, MJVectorIndexEntity, MJVersionInstallationEntity, MJVersionLabelItemEntity, MJVersionLabelRestoreEntity, MJVersionLabelEntity, MJViewTypeEntity, MJWebSearchProviderEntity, MJWorkQueueDeduplicationEntity, MJWorkQueueDeliveryEntity, MJWorkQueueMessageEntity, MJWorkQueueSubscriptionEntity, MJWorkQueueTopicEntity, MJWorkQueueTransportEntity, MJWorkspaceItemEntity, MJWorkspaceEntity } from '@memberjunction/core-entities';
|
|
21
|
+
import { MJAIActionEntity, MJAIAgentActionEntity, MJAIAgentArtifactTypeEntity, MJAIAgentCategoryEntity, MJAIAgentChannelEntity, MJAIAgentClientToolEntity, MJAIAgentCoAgentEntity, MJAIAgentConfigurationEntity, MJAIAgentCredentialEntity, MJAIAgentDataSourceEntity, MJAIAgentExampleEntity, MJAIAgentHarnessEntity, MJAIAgentLearningCycleEntity, MJAIAgentModalityEntity, MJAIAgentModelEntity, MJAIAgentNoteTypeEntity, MJAIAgentNoteEntity, MJAIAgentPermissionEntity, MJAIAgentPersonaEntity, MJAIAgentPromptEntity, MJAIAgentRelationshipEntity, MJAIAgentRequestTypeEntity, MJAIAgentRequestEntity, MJAIAgentRubricEntity, MJAIAgentRunMediaEntity, MJAIAgentRunStepEntity, MJAIAgentRunEntity, MJAIAgentSearchScopeEntity, MJAIAgentSessionBridgeParticipantEntity, MJAIAgentSessionBridgeEntity, MJAIAgentSessionChannelEntity, MJAIAgentSessionEntity, MJAIAgentSkillEntity, MJAIAgentStepPathEntity, MJAIAgentStepEntity, MJAIAgentTypeEntity, MJAIAgentEntity, MJAIArchitectureEntity, MJAIBridgeAgentIdentityEntity, MJAIBridgeProviderChannelEntity, MJAIBridgeProviderEntity, MJAIClientToolDefinitionEntity, MJAIConfigurationParamEntity, MJAIConfigurationEntity, MJAICredentialBindingEntity, MJAIModalityEntity, MJAIModelActionEntity, MJAIModelArchitectureEntity, MJAIModelCostEntity, MJAIModelModalityEntity, MJAIModelPersonaEntity, MJAIModelPriceTypeEntity, MJAIModelPriceUnitTypeEntity, MJAIModelTypeEntity, MJAIModelVendorEntity, MJAIModelEntity, MJAIPersonaVendorEntity, MJAIPersonaEntity, MJAIPromptCategoryEntity, MJAIPromptModelEntity, MJAIPromptRunMediaEntity, MJAIPromptRunEntity, MJAIPromptTypeEntity, MJAIPromptEntity, MJAIRemoteBrowserProviderEntity, MJAIResultCacheEntity, MJAISkillActionEntity, MJAISkillPermissionEntity, MJAISkillSearchScopeEntity, MJAISkillSubAgentEntity, MJAISkillEntity, MJAIUsageTypeEntity, MJAIVendorTypeDefinitionEntity, MJAIVendorTypeEntity, MJAIVendorEntity, MJAPIApplicationScopeEntity, MJAPIApplicationEntity, MJAPIKeyApplicationEntity, MJAPIKeyScopeEntity, MJAPIKeyUsageLogEntity, MJAPIKeyEntity, MJAPIScopeEntity, MJAccessControlRuleEntity, MJActionAuthorizationEntity, MJActionCategoryEntity, MJActionContextTypeEntity, MJActionContextEntity, MJActionExecutionLogEntity, MJActionFilterEntity, MJActionLibraryEntity, MJActionParamEntity, MJActionResultCodeEntity, MJActionEntity, MJApplicationEntityEntity, MJApplicationRoleEntity, MJApplicationSettingEntity, MJApplicationEntity, MJArchiveConfigurationEntityEntity, MJArchiveConfigurationEntity, MJArchiveRunDetailEntity, MJArchiveRunEntity, MJArtifactPermissionEntity, MJArtifactTypeEntity, MJArtifactUseEntity, MJArtifactVersionAttributeEntity, MJArtifactVersionEntity, MJArtifactEntity, MJAuditLogTypeEntity, MJAuditLogEntity, MJAuthenticationProviderEntity, MJAuthorizationRoleEntity, MJAuthorizationEntity, MJClusterAnalysisEntity, MJClusterAnalysisClusterEntity, MJCollectionArtifactEntity, MJCollectionPermissionEntity, MJCollectionEntity, MJCommunicationBaseMessageTypeEntity, MJCommunicationLogEntity, MJCommunicationProviderMessageTypeEntity, MJCommunicationProviderEntity, MJCommunicationRunEntity, MJCompanyEntity, MJCompanyIntegrationEntityMapEntity, MJCompanyIntegrationFieldMapEntity, MJCompanyIntegrationRecordMapEntity, MJCompanyIntegrationRunAPILogEntity, MJCompanyIntegrationRunDetailEntity, MJCompanyIntegrationRunEntity, MJCompanyIntegrationSyncWatermarkEntity, MJCompanyIntegrationEntity, MJComponentDependencyEntity, MJComponentLibraryEntity, MJComponentLibraryLinkEntity, MJComponentRegistryEntity, MJComponentEntity, MJContentFileTypeEntity, MJContentItemAttributeEntity, MJContentItemChunkEntity, MJContentItemDuplicateEntity, MJContentItemTagEntity, MJContentItemEntity, MJContentProcessRunDetailEntity, MJContentProcessRunPromptRunEntity, MJContentProcessRunEntity, MJContentSourceParamEntity, MJContentSourceTypeParamEntity, MJContentSourceTypeEntity, MJContentSourceEntity, MJContentTypeAttributeEntity, MJContentTypeEntity, MJConversationArtifactPermissionEntity, MJConversationArtifactVersionEntity, MJConversationArtifactEntity, MJConversationBranchEntity, MJConversationCompactionRunEntity, MJConversationDetailArtifactEntity, MJConversationDetailAttachmentEntity, MJConversationDetailRatingEntity, MJConversationDetailEntity, MJConversationSkillEntity, MJConversationWidgetInstanceEntity, MJConversationEntity, MJCountryEntity, MJCredentialCategoryEntity, MJCredentialTypeEntity, MJCredentialEntity, MJDashboardCategoryEntity, MJDashboardCategoryLinkEntity, MJDashboardCategoryPermissionEntity, MJDashboardPartTypeEntity, MJDashboardPermissionEntity, MJDashboardUserPreferenceEntity, MJDashboardUserStateEntity, MJDashboardEntity, MJDataContextItemEntity, MJDataContextEntity, MJDatasetItemEntity, MJDatasetEntity, MJDuplicateRunDetailMatchEntity, MJDuplicateRunDetailEntity, MJDuplicateRunEntity, MJEmployeeCompanyIntegrationEntity, MJEmployeeRoleEntity, MJEmployeeSkillEntity, MJEmployeeEntity, MJEncryptionAlgorithmEntity, MJEncryptionKeySourceEntity, MJEncryptionKeyEntity, MJEntityEntity, MJEntityAIActionEntity, MJEntityActionFilterEntity, MJEntityActionInvocationTypeEntity, MJEntityActionInvocationEntity, MJEntityActionParamEntity, MJEntityActionEntity, MJEntityCommunicationFieldEntity, MJEntityCommunicationMessageTypeEntity, MJEntityDocumentRunEntity, MJEntityDocumentSettingEntity, MJEntityDocumentTypeEntity, MJEntityDocumentEntity, MJEntityFieldPermissionEntity, MJEntityFieldValueEntity, MJEntityFieldEntity, MJEntityFormContributionEntity, MJEntityFormOverrideEntity, MJEntityOrganicKeyRelatedEntityEntity, MJEntityOrganicKeyEntity, MJEntityPermissionEntity, MJEntityRecordDocumentEntity, MJEntityRelationshipDisplayComponentEntity, MJEntityRelationshipEntity, MJEntitySettingEntity, MJEnvironmentEntity, MJErrorLogEntity, MJExperimentSessionIterationEntity, MJExperimentSessionEntity, MJExperimentEntity, MJExplorerNavigationItemEntity, MJExternalDataSourceTypeEntity, MJExternalDataSourceEntity, MJFeaturePipelineTypeEntity, MJFeatureValueCacheEntity, MJFeatureValueEntity, MJFileCategoryEntity, MJFileEntityRecordLinkEntity, MJFileStorageAccountPermissionEntity, MJFileStorageAccountEntity, MJFileStorageProviderEntity, MJFileEntity, MJFormChromeRuleEntity, MJGeneratedCodeCategoryEntity, MJGeneratedCodeEntity, MJIdentityClaimTypeEntity, MJIdentityClaimEntity, MJInstanceConfigurationEntity, MJIntegrationObjectFieldEntity, MJIntegrationObjectEntity, MJIntegrationSourceTypeEntity, MJIntegrationURLFormatEntity, MJIntegrationEntity, MJInteractionEventEntity, MJInteractionLinkEntity, MJInteractionOfferEntity, MJInteractionEntity, MJKnowledgeHubSavedSearchEntity, MJLibraryEntity, MJLibraryItemEntity, MJListCategoryEntity, MJListDetailEntity, MJListInvitationEntity, MJListShareEntity, MJListEntity, MJMCPServerConnectionPermissionEntity, MJMCPServerConnectionToolEntity, MJMCPServerConnectionEntity, MJMCPServerToolEntity, MJMCPServerEntity, MJMCPToolExecutionLogEntity, MJMCPToolFavoriteEntity, MJMLAlgorithmUseCaseRankingEntity, MJMLAlgorithmUseCaseEntity, MJMLAlgorithmEntity, MJMLModelScoringBindingEntity, MJMLModelEntity, MJMLTrainingPipelineEntity, MJMLTrainingRunEntity, MJMagicLinkInviteAllowedDomainEntity, MJMagicLinkInviteAllowedPathEntity, MJMagicLinkInviteApplicationEntity, MJMagicLinkInviteRoleEntity, MJMagicLinkInviteEntity, MJMagicLinkRedemptionEntity, MJMaterializedResultQueryEntity, MJMaterializedResultEntity, MJMeetingParticipantEntity, MJMeetingEntity, MJNumberPoolEntity, MJOAuthAuthServerMetadataCacheEntity, MJOAuthAuthorizationStateEntity, MJOAuthClientRegistrationEntity, MJOAuthTokenEntity, MJOpenAppDependencyEntity, MJOpenAppInstallHistoryEntity, MJOpenAppEntity, MJOutputDeliveryTypeEntity, MJOutputFormatTypeEntity, MJPermissionDomainEntity, MJPhoneNumberEntity, MJProcessRunDetailEntity, MJProcessRunEntity, MJProjectEntity, MJPublicLinkEntity, MJQueryEntity, MJQueryCategoryEntity, MJQueryDependencyEntity, MJQueryEntityEntity, MJQueryFieldEntity, MJQueryParameterEntity, MJQueryPermissionEntity, MJQuerySQLEntity, MJQueueTaskEntity, MJQueueTypeEntity, MJQueueEntity, MJRSUPendingWorkEntity, MJRecommendationItemEntity, MJRecommendationProviderEntity, MJRecommendationRunEntity, MJRecommendationEntity, MJRecordChangeReplayRunEntity, MJRecordChangeEntity, MJRecordCloneLogItemEntity, MJRecordCloneLogEntity, MJRecordGeoCodeEntity, MJRecordLinkEntity, MJRecordMergeDeletionLogEntity, MJRecordMergeLogEntity, MJRecordProcessCategoryEntity, MJRecordProcessWatermarkEntity, MJRecordProcessEntity, MJRemoteOperationCategoryEntity, MJRemoteOperationEntity, MJResourceLinkEntity, MJResourcePermissionEntity, MJResourceTypeEntity, MJRoleEntity, MJRowLevelSecurityFilterEntity, MJRubricBandEntity, MJRubricCategoryEntity, MJRubricCriterionEntity, MJRubricCriterionLevelEntity, MJRubricEvaluationScoreEntity, MJRubricEvaluationEntity, MJRubricScaleLevelEntity, MJRubricScaleEntity, MJRubricVersionEntity, MJRubricEntity, MJSQLDialectEntity, MJScheduledJobRunEntity, MJScheduledJobTypeEntity, MJScheduledJobEntity, MJSchemaInfoEntity, MJScopedNotificationConfigEntity, MJScopedPromptConfigEntity, MJScopedPromptPartEntity, MJSearchExecutionLogEntity, MJSearchProviderEntity, MJSearchScopeEntityEntity, MJSearchScopeExternalIndexEntity, MJSearchScopePermissionEntity, MJSearchScopeProviderEntity, MJSearchScopeStorageAccountEntity, MJSearchScopeTestQueryEntity, MJSearchScopeEntity, MJSignatureAccountEntity, MJSignatureProviderEntity, MJSignatureRequestDocumentEntity, MJSignatureRequestLogEntity, MJSignatureRequestRecipientEntity, MJSignatureRequestEntity, MJSkillEntity, MJStateProvinceEntity, MJTagAuditLogEntity, MJTagCoOccurrenceEntity, MJTagScopeEntity, MJTagSuggestionEntity, MJTagSynonymEntity, MJTaggedItemEntity, MJTagEntity, MJTaskDependencyEntity, MJTaskTypeEntity, MJTaskEntity, MJTemplateCategoryEntity, MJTemplateContentTypeEntity, MJTemplateContentEntity, MJTemplateParamEntity, MJTemplateEntity, MJTestRubricEntity, MJTestRunFeedbackEntity, MJTestRunOutputTypeEntity, MJTestRunOutputEntity, MJTestRunEntity, MJTestSuiteRunEntity, MJTestSuiteTestEntity, MJTestSuiteEntity, MJTestTypeEntity, MJTestEntity, MJThemeEntity, MJUserApplicationEntityEntity, MJUserApplicationEntity, MJUserFavoriteEntity, MJUserNotificationPreferenceEntity, MJUserNotificationTypeEntity, MJUserNotificationEntity, MJUserRecordLogEntity, MJUserRoleEntity, MJUserRoutineRecipientEntity, MJUserRoutineRunEntity, MJUserRoutineEntity, MJUserSettingEntity, MJUserViewCategoryEntity, MJUserViewRunDetailEntity, MJUserViewRunEntity, MJUserViewEntity, MJUserEntity, MJVectorDatabaseEntity, MJVectorIndexEntity, MJVersionInstallationEntity, MJVersionLabelItemEntity, MJVersionLabelRestoreEntity, MJVersionLabelEntity, MJViewTypeEntity, MJWebSearchProviderEntity, MJWorkQueueDeduplicationEntity, MJWorkQueueDeliveryEntity, MJWorkQueueMessageEntity, MJWorkQueueSubscriptionEntity, MJWorkQueueTopicEntity, MJWorkQueueTransportEntity, MJWorkspaceItemEntity, MJWorkspaceEntity } from '@memberjunction/core-entities';
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
//****************************************************************************
|
|
@@ -37255,6 +37255,221 @@ export class MJConversationArtifactResolver extends ResolverBase {
|
|
|
37255
37255
|
|
|
37256
37256
|
}
|
|
37257
37257
|
|
|
37258
|
+
//****************************************************************************
|
|
37259
|
+
// ENTITY CLASS for MJ: Conversation Branches
|
|
37260
|
+
//****************************************************************************
|
|
37261
|
+
@ObjectType({ description: "A fork of a conversation: another path that starts at a message. Main (the trunk) is the messages with no branch. A fork's path is its own messages plus each ancestor's messages up to that ancestor's ForkFromSequence." })
|
|
37262
|
+
export class MJConversationBranch_ {
|
|
37263
|
+
@Field()
|
|
37264
|
+
@MaxLength(36)
|
|
37265
|
+
ID: string;
|
|
37266
|
+
|
|
37267
|
+
@Field({nullable: true, description: "The conversation this fork belongs to."})
|
|
37268
|
+
@MaxLength(36)
|
|
37269
|
+
ConversationID?: string;
|
|
37270
|
+
|
|
37271
|
+
@Field({nullable: true, description: "The fork this one started from. NULL means it started from Main, or before the first message when ForkFromSequence is also NULL."})
|
|
37272
|
+
@MaxLength(36)
|
|
37273
|
+
ParentBranchID?: string;
|
|
37274
|
+
|
|
37275
|
+
@Field(() => Int, {nullable: true, description: "Sequence of the last message shared with the parent path. NULL means the fork starts before the first message, in which case ParentBranchID is also NULL."})
|
|
37276
|
+
ForkFromSequence?: number;
|
|
37277
|
+
|
|
37278
|
+
@Field({nullable: true, description: "Optional name of the fork. With no name, the UI shows a default label from Kind: a Fork is named from its first message."})
|
|
37279
|
+
@MaxLength(255)
|
|
37280
|
+
Name?: string;
|
|
37281
|
+
|
|
37282
|
+
@Field({nullable: true, description: "How the fork started: Fork (Fork from here), Edit (a sent message was edited) or Regenerate (an answer was regenerated)."})
|
|
37283
|
+
@MaxLength(20)
|
|
37284
|
+
Kind?: string;
|
|
37285
|
+
|
|
37286
|
+
@Field({nullable: true, description: "The edited message (Kind Edit) or the replaced answer (Kind Regenerate); NULL otherwise. Not a foreign key, to avoid a CodeGen cascade cycle with ConversationDetail."})
|
|
37287
|
+
@MaxLength(36)
|
|
37288
|
+
SourceDetailID?: string;
|
|
37289
|
+
|
|
37290
|
+
@Field({nullable: true, description: "The person who started the fork."})
|
|
37291
|
+
@MaxLength(36)
|
|
37292
|
+
UserID?: string;
|
|
37293
|
+
|
|
37294
|
+
@Field()
|
|
37295
|
+
_mj__CreatedAt: Date;
|
|
37296
|
+
|
|
37297
|
+
@Field()
|
|
37298
|
+
_mj__UpdatedAt: Date;
|
|
37299
|
+
|
|
37300
|
+
@Field({nullable: true})
|
|
37301
|
+
@MaxLength(255)
|
|
37302
|
+
Conversation?: string;
|
|
37303
|
+
|
|
37304
|
+
@Field({nullable: true})
|
|
37305
|
+
@MaxLength(255)
|
|
37306
|
+
ParentBranch?: string;
|
|
37307
|
+
|
|
37308
|
+
@Field({nullable: true})
|
|
37309
|
+
@MaxLength(100)
|
|
37310
|
+
User?: string;
|
|
37311
|
+
|
|
37312
|
+
@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.` })
|
|
37313
|
+
ReadableFields___?: string[];
|
|
37314
|
+
|
|
37315
|
+
}
|
|
37316
|
+
|
|
37317
|
+
//****************************************************************************
|
|
37318
|
+
// INPUT TYPE for MJ: Conversation Branches
|
|
37319
|
+
//****************************************************************************
|
|
37320
|
+
@InputType()
|
|
37321
|
+
export class CreateMJConversationBranchInput {
|
|
37322
|
+
@Field({ nullable: true })
|
|
37323
|
+
ID?: string;
|
|
37324
|
+
|
|
37325
|
+
@Field({ nullable: true })
|
|
37326
|
+
ConversationID?: string;
|
|
37327
|
+
|
|
37328
|
+
@Field({ nullable: true })
|
|
37329
|
+
ParentBranchID: string | null;
|
|
37330
|
+
|
|
37331
|
+
@Field(() => Int, { nullable: true })
|
|
37332
|
+
ForkFromSequence: number | null;
|
|
37333
|
+
|
|
37334
|
+
@Field({ nullable: true })
|
|
37335
|
+
Name: string | null;
|
|
37336
|
+
|
|
37337
|
+
@Field({ nullable: true })
|
|
37338
|
+
Kind?: string;
|
|
37339
|
+
|
|
37340
|
+
@Field({ nullable: true })
|
|
37341
|
+
SourceDetailID: string | null;
|
|
37342
|
+
|
|
37343
|
+
@Field({ nullable: true })
|
|
37344
|
+
UserID?: string;
|
|
37345
|
+
|
|
37346
|
+
@Field(() => RestoreContextInput, { nullable: true })
|
|
37347
|
+
RestoreContext___?: RestoreContextInput;
|
|
37348
|
+
}
|
|
37349
|
+
|
|
37350
|
+
|
|
37351
|
+
//****************************************************************************
|
|
37352
|
+
// INPUT TYPE for MJ: Conversation Branches
|
|
37353
|
+
//****************************************************************************
|
|
37354
|
+
@InputType()
|
|
37355
|
+
export class UpdateMJConversationBranchInput {
|
|
37356
|
+
@Field()
|
|
37357
|
+
ID: string;
|
|
37358
|
+
|
|
37359
|
+
@Field({ nullable: true })
|
|
37360
|
+
ConversationID?: string;
|
|
37361
|
+
|
|
37362
|
+
@Field({ nullable: true })
|
|
37363
|
+
ParentBranchID?: string | null;
|
|
37364
|
+
|
|
37365
|
+
@Field(() => Int, { nullable: true })
|
|
37366
|
+
ForkFromSequence?: number | null;
|
|
37367
|
+
|
|
37368
|
+
@Field({ nullable: true })
|
|
37369
|
+
Name?: string | null;
|
|
37370
|
+
|
|
37371
|
+
@Field({ nullable: true })
|
|
37372
|
+
Kind?: string;
|
|
37373
|
+
|
|
37374
|
+
@Field({ nullable: true })
|
|
37375
|
+
SourceDetailID?: string | null;
|
|
37376
|
+
|
|
37377
|
+
@Field({ nullable: true })
|
|
37378
|
+
UserID?: string;
|
|
37379
|
+
|
|
37380
|
+
@Field(() => [KeyValuePairInput], { nullable: true })
|
|
37381
|
+
OldValues___?: KeyValuePairInput[];
|
|
37382
|
+
|
|
37383
|
+
@Field(() => RestoreContextInput, { nullable: true })
|
|
37384
|
+
RestoreContext___?: RestoreContextInput;
|
|
37385
|
+
}
|
|
37386
|
+
|
|
37387
|
+
//****************************************************************************
|
|
37388
|
+
// RESOLVER for MJ: Conversation Branches
|
|
37389
|
+
//****************************************************************************
|
|
37390
|
+
@ObjectType()
|
|
37391
|
+
export class RunMJConversationBranchViewResult {
|
|
37392
|
+
@Field(() => [MJConversationBranch_])
|
|
37393
|
+
Results: MJConversationBranch_[];
|
|
37394
|
+
|
|
37395
|
+
@Field(() => String, {nullable: true})
|
|
37396
|
+
UserViewRunID?: string;
|
|
37397
|
+
|
|
37398
|
+
@Field(() => Int, {nullable: true})
|
|
37399
|
+
RowCount: number;
|
|
37400
|
+
|
|
37401
|
+
@Field(() => Int, {nullable: true})
|
|
37402
|
+
TotalRowCount: number;
|
|
37403
|
+
|
|
37404
|
+
@Field(() => Int, {nullable: true})
|
|
37405
|
+
ExecutionTime: number;
|
|
37406
|
+
|
|
37407
|
+
@Field({nullable: true})
|
|
37408
|
+
ErrorMessage?: string;
|
|
37409
|
+
|
|
37410
|
+
@Field(() => Boolean, {nullable: false})
|
|
37411
|
+
Success: boolean;
|
|
37412
|
+
}
|
|
37413
|
+
|
|
37414
|
+
@Resolver(MJConversationBranch_)
|
|
37415
|
+
export class MJConversationBranchResolver extends ResolverBase {
|
|
37416
|
+
@Query(() => RunMJConversationBranchViewResult)
|
|
37417
|
+
async RunMJConversationBranchViewByID(@Arg('input', () => RunViewByIDInput) input: RunViewByIDInput, @Ctx() { providers, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
37418
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
37419
|
+
return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
|
|
37420
|
+
}
|
|
37421
|
+
|
|
37422
|
+
@Query(() => RunMJConversationBranchViewResult)
|
|
37423
|
+
async RunMJConversationBranchViewByName(@Arg('input', () => RunViewByNameInput) input: RunViewByNameInput, @Ctx() { providers, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
37424
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
37425
|
+
return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
|
|
37426
|
+
}
|
|
37427
|
+
|
|
37428
|
+
@Query(() => RunMJConversationBranchViewResult)
|
|
37429
|
+
async RunMJConversationBranchDynamicView(@Arg('input', () => RunDynamicViewInput) input: RunDynamicViewInput, @Ctx() { providers, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
37430
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
37431
|
+
input.EntityName = 'MJ: Conversation Branches';
|
|
37432
|
+
return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
|
|
37433
|
+
}
|
|
37434
|
+
@Query(() => MJConversationBranch_, { nullable: true })
|
|
37435
|
+
async MJConversationBranch(@Arg('ID', () => String) ID: string, @Ctx() { userPayload, providers }: AppContext, @PubSub() pubSub: PubSubEngine): Promise<MJConversationBranch_ | null> {
|
|
37436
|
+
this.CheckUserReadPermissions('MJ: Conversation Branches', userPayload);
|
|
37437
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
37438
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwConversationBranches')} WHERE ${provider.QuoteIdentifier('ID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Conversation Branches', userPayload, EntityPermissionType.Read, 'AND');
|
|
37439
|
+
const rows = await provider.ExecuteSQL(sSQL, [ID], undefined, this.GetUserFromPayload(userPayload));
|
|
37440
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Conversation Branches', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
37441
|
+
return result;
|
|
37442
|
+
}
|
|
37443
|
+
|
|
37444
|
+
@Mutation(() => MJConversationBranch_)
|
|
37445
|
+
async CreateMJConversationBranch(
|
|
37446
|
+
@Arg('input', () => CreateMJConversationBranchInput) input: CreateMJConversationBranchInput,
|
|
37447
|
+
@Ctx() { providers, userPayload }: AppContext,
|
|
37448
|
+
@PubSub() pubSub: PubSubEngine
|
|
37449
|
+
) {
|
|
37450
|
+
const provider = GetReadWriteProvider(providers);
|
|
37451
|
+
return this.CreateRecord('MJ: Conversation Branches', input, provider, userPayload, pubSub)
|
|
37452
|
+
}
|
|
37453
|
+
|
|
37454
|
+
@Mutation(() => MJConversationBranch_)
|
|
37455
|
+
async UpdateMJConversationBranch(
|
|
37456
|
+
@Arg('input', () => UpdateMJConversationBranchInput) input: UpdateMJConversationBranchInput,
|
|
37457
|
+
@Ctx() { providers, userPayload }: AppContext,
|
|
37458
|
+
@PubSub() pubSub: PubSubEngine
|
|
37459
|
+
) {
|
|
37460
|
+
const provider = GetReadWriteProvider(providers);
|
|
37461
|
+
return this.UpdateRecord('MJ: Conversation Branches', input, provider, userPayload, pubSub);
|
|
37462
|
+
}
|
|
37463
|
+
|
|
37464
|
+
@Mutation(() => MJConversationBranch_)
|
|
37465
|
+
async DeleteMJConversationBranch(@Arg('ID', () => String) ID: string, @Arg('options___', () => DeleteOptionsInput) options: DeleteOptionsInput, @Ctx() { providers, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
37466
|
+
const provider = GetReadWriteProvider(providers);
|
|
37467
|
+
const key = new CompositeKey([{FieldName: 'ID', Value: ID}]);
|
|
37468
|
+
return this.DeleteRecord('MJ: Conversation Branches', key, options, provider, userPayload, pubSub);
|
|
37469
|
+
}
|
|
37470
|
+
|
|
37471
|
+
}
|
|
37472
|
+
|
|
37258
37473
|
//****************************************************************************
|
|
37259
37474
|
// ENTITY CLASS for MJ: Conversation Compaction Runs
|
|
37260
37475
|
//****************************************************************************
|
|
@@ -38168,6 +38383,13 @@ export class MJConversationDetail_ {
|
|
|
38168
38383
|
@Field(() => Int, {nullable: true, description: "Monotonic, per-conversation ordinal assigned on insert (1-based). Provides a stable symbolic handle used by conversation-history retrieval tools and by the sequence markers embedded in compaction summaries. A summary stored in SummaryOfEarlierConversation on a given row covers all rows with a lower Sequence in the same conversation."})
|
|
38169
38384
|
Sequence?: number;
|
|
38170
38385
|
|
|
38386
|
+
@Field({nullable: true, description: "The fork this message belongs to. NULL means Main (the trunk). Every writer sets it explicitly."})
|
|
38387
|
+
@MaxLength(36)
|
|
38388
|
+
BranchID?: string;
|
|
38389
|
+
|
|
38390
|
+
@Field({nullable: true, description: "When a rerun of this message's turn replaced it (Regenerate or Save and resend while forking is off). A replaced row is kept for audit, is hidden from the user and is never sent to an agent. NULL means the row is live."})
|
|
38391
|
+
ReplacedAt?: Date;
|
|
38392
|
+
|
|
38171
38393
|
@Field({nullable: true})
|
|
38172
38394
|
@MaxLength(255)
|
|
38173
38395
|
Conversation?: string;
|
|
@@ -38196,6 +38418,10 @@ export class MJConversationDetail_ {
|
|
|
38196
38418
|
@MaxLength(255)
|
|
38197
38419
|
TestRun?: string;
|
|
38198
38420
|
|
|
38421
|
+
@Field({nullable: true})
|
|
38422
|
+
@MaxLength(255)
|
|
38423
|
+
Branch?: string;
|
|
38424
|
+
|
|
38199
38425
|
@Field({nullable: true})
|
|
38200
38426
|
@MaxLength(36)
|
|
38201
38427
|
RootParentID?: string;
|
|
@@ -38312,6 +38538,12 @@ export class CreateMJConversationDetailInput {
|
|
|
38312
38538
|
@Field({ nullable: true })
|
|
38313
38539
|
MediaType: string | null;
|
|
38314
38540
|
|
|
38541
|
+
@Field({ nullable: true })
|
|
38542
|
+
BranchID: string | null;
|
|
38543
|
+
|
|
38544
|
+
@Field({ nullable: true })
|
|
38545
|
+
ReplacedAt: Date | null;
|
|
38546
|
+
|
|
38315
38547
|
@Field(() => RestoreContextInput, { nullable: true })
|
|
38316
38548
|
RestoreContext___?: RestoreContextInput;
|
|
38317
38549
|
}
|
|
@@ -38412,6 +38644,12 @@ export class UpdateMJConversationDetailInput {
|
|
|
38412
38644
|
@Field({ nullable: true })
|
|
38413
38645
|
MediaType?: string | null;
|
|
38414
38646
|
|
|
38647
|
+
@Field({ nullable: true })
|
|
38648
|
+
BranchID?: string | null;
|
|
38649
|
+
|
|
38650
|
+
@Field({ nullable: true })
|
|
38651
|
+
ReplacedAt?: Date | null;
|
|
38652
|
+
|
|
38415
38653
|
@Field(() => [KeyValuePairInput], { nullable: true })
|
|
38416
38654
|
OldValues___?: KeyValuePairInput[];
|
|
38417
38655
|
|
|
@@ -81676,6 +81914,254 @@ export class MJSchemaInfoResolver extends ResolverBase {
|
|
|
81676
81914
|
|
|
81677
81915
|
}
|
|
81678
81916
|
|
|
81917
|
+
//****************************************************************************
|
|
81918
|
+
// ENTITY CLASS for MJ: Scoped Notification Configs
|
|
81919
|
+
//****************************************************************************
|
|
81920
|
+
@ObjectType({ description: "A notification config at one scope: the level between a notification type's defaults and a recipient's preference where an application, a role, a user or the notice's origin can allow or deny a channel. Scoped by the same primary record + secondary dimensions as Scoped Prompt Configs. Resolution: most specific in-scope row wins per channel; at equal specificity Deny beats Allow; a locked Deny caps every level below it, the recipient's preference included." })
|
|
81921
|
+
export class MJScopedNotificationConfig_ {
|
|
81922
|
+
@Field()
|
|
81923
|
+
@MaxLength(36)
|
|
81924
|
+
ID: string;
|
|
81925
|
+
|
|
81926
|
+
@Field({nullable: true, description: "The notification type this config is for."})
|
|
81927
|
+
@MaxLength(36)
|
|
81928
|
+
NotificationTypeID?: string;
|
|
81929
|
+
|
|
81930
|
+
@Field({nullable: true, description: "Why the row exists, for the administrator who finds it."})
|
|
81931
|
+
Description?: string;
|
|
81932
|
+
|
|
81933
|
+
@Field({nullable: true, description: "The entity of the primary scope record (Applications, Roles, Users, Companies, ...). NULL with PrimaryScopeRecordID NULL = a global row."})
|
|
81934
|
+
@MaxLength(36)
|
|
81935
|
+
PrimaryScopeEntityID?: string;
|
|
81936
|
+
|
|
81937
|
+
@Field({nullable: true, description: "The record ID within the primary scope entity this config is scoped to. NULL = global. In scope when it is the caller's primary scope record, the recipient, or a role the recipient holds."})
|
|
81938
|
+
@MaxLength(100)
|
|
81939
|
+
PrimaryScopeRecordID?: string;
|
|
81940
|
+
|
|
81941
|
+
@Field({nullable: true, description: "JSON object of additional scope dimensions, e.g. {\"origin\":\"System\"}. Every dimension named must match the notice's scope for the row to apply. origin is Person, System (the Owner-type user) or Automation."})
|
|
81942
|
+
SecondaryScopes?: string;
|
|
81943
|
+
|
|
81944
|
+
@Field({nullable: true, description: "The in-app channel: Allow, Deny, or NULL to leave it to the next row."})
|
|
81945
|
+
@MaxLength(20)
|
|
81946
|
+
InApp?: string;
|
|
81947
|
+
|
|
81948
|
+
@Field({nullable: true, description: "The email channel: Allow, Deny, or NULL to leave it to the next row."})
|
|
81949
|
+
@MaxLength(20)
|
|
81950
|
+
Email?: string;
|
|
81951
|
+
|
|
81952
|
+
@Field({nullable: true, description: "The SMS channel: Allow, Deny, or NULL to leave it to the next row."})
|
|
81953
|
+
@MaxLength(20)
|
|
81954
|
+
SMS?: string;
|
|
81955
|
+
|
|
81956
|
+
@Field(() => Boolean, {nullable: true, description: "When set, a Deny on this row is absorbing: no less specific row and no recipient preference may turn the channel on. The way a notification type's AllowUserPreference caps the recipient today."})
|
|
81957
|
+
IsLocked?: boolean;
|
|
81958
|
+
|
|
81959
|
+
@Field(() => Int, {nullable: true, description: "Tie-break for resolution. Higher wins when two rows tie on scope specificity and neither denies. Default 0."})
|
|
81960
|
+
Priority?: number;
|
|
81961
|
+
|
|
81962
|
+
@Field({nullable: true, description: "Lifecycle: Active (live), Provisional (staged; eligible), Archived (excluded from resolution)."})
|
|
81963
|
+
@MaxLength(20)
|
|
81964
|
+
Status?: string;
|
|
81965
|
+
|
|
81966
|
+
@Field()
|
|
81967
|
+
_mj__CreatedAt: Date;
|
|
81968
|
+
|
|
81969
|
+
@Field()
|
|
81970
|
+
_mj__UpdatedAt: Date;
|
|
81971
|
+
|
|
81972
|
+
@Field({nullable: true})
|
|
81973
|
+
@MaxLength(100)
|
|
81974
|
+
NotificationType?: string;
|
|
81975
|
+
|
|
81976
|
+
@Field({nullable: true})
|
|
81977
|
+
@MaxLength(255)
|
|
81978
|
+
PrimaryScopeEntity?: string;
|
|
81979
|
+
|
|
81980
|
+
@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.` })
|
|
81981
|
+
ReadableFields___?: string[];
|
|
81982
|
+
|
|
81983
|
+
}
|
|
81984
|
+
|
|
81985
|
+
//****************************************************************************
|
|
81986
|
+
// INPUT TYPE for MJ: Scoped Notification Configs
|
|
81987
|
+
//****************************************************************************
|
|
81988
|
+
@InputType()
|
|
81989
|
+
export class CreateMJScopedNotificationConfigInput {
|
|
81990
|
+
@Field({ nullable: true })
|
|
81991
|
+
ID?: string;
|
|
81992
|
+
|
|
81993
|
+
@Field({ nullable: true })
|
|
81994
|
+
NotificationTypeID?: string;
|
|
81995
|
+
|
|
81996
|
+
@Field({ nullable: true })
|
|
81997
|
+
Description: string | null;
|
|
81998
|
+
|
|
81999
|
+
@Field({ nullable: true })
|
|
82000
|
+
PrimaryScopeEntityID: string | null;
|
|
82001
|
+
|
|
82002
|
+
@Field({ nullable: true })
|
|
82003
|
+
PrimaryScopeRecordID: string | null;
|
|
82004
|
+
|
|
82005
|
+
@Field({ nullable: true })
|
|
82006
|
+
SecondaryScopes: string | null;
|
|
82007
|
+
|
|
82008
|
+
@Field({ nullable: true })
|
|
82009
|
+
InApp: string | null;
|
|
82010
|
+
|
|
82011
|
+
@Field({ nullable: true })
|
|
82012
|
+
Email: string | null;
|
|
82013
|
+
|
|
82014
|
+
@Field({ nullable: true })
|
|
82015
|
+
SMS: string | null;
|
|
82016
|
+
|
|
82017
|
+
@Field(() => Boolean, { nullable: true })
|
|
82018
|
+
IsLocked?: boolean;
|
|
82019
|
+
|
|
82020
|
+
@Field(() => Int, { nullable: true })
|
|
82021
|
+
Priority?: number;
|
|
82022
|
+
|
|
82023
|
+
@Field({ nullable: true })
|
|
82024
|
+
Status?: string;
|
|
82025
|
+
|
|
82026
|
+
@Field(() => RestoreContextInput, { nullable: true })
|
|
82027
|
+
RestoreContext___?: RestoreContextInput;
|
|
82028
|
+
}
|
|
82029
|
+
|
|
82030
|
+
|
|
82031
|
+
//****************************************************************************
|
|
82032
|
+
// INPUT TYPE for MJ: Scoped Notification Configs
|
|
82033
|
+
//****************************************************************************
|
|
82034
|
+
@InputType()
|
|
82035
|
+
export class UpdateMJScopedNotificationConfigInput {
|
|
82036
|
+
@Field()
|
|
82037
|
+
ID: string;
|
|
82038
|
+
|
|
82039
|
+
@Field({ nullable: true })
|
|
82040
|
+
NotificationTypeID?: string;
|
|
82041
|
+
|
|
82042
|
+
@Field({ nullable: true })
|
|
82043
|
+
Description?: string | null;
|
|
82044
|
+
|
|
82045
|
+
@Field({ nullable: true })
|
|
82046
|
+
PrimaryScopeEntityID?: string | null;
|
|
82047
|
+
|
|
82048
|
+
@Field({ nullable: true })
|
|
82049
|
+
PrimaryScopeRecordID?: string | null;
|
|
82050
|
+
|
|
82051
|
+
@Field({ nullable: true })
|
|
82052
|
+
SecondaryScopes?: string | null;
|
|
82053
|
+
|
|
82054
|
+
@Field({ nullable: true })
|
|
82055
|
+
InApp?: string | null;
|
|
82056
|
+
|
|
82057
|
+
@Field({ nullable: true })
|
|
82058
|
+
Email?: string | null;
|
|
82059
|
+
|
|
82060
|
+
@Field({ nullable: true })
|
|
82061
|
+
SMS?: string | null;
|
|
82062
|
+
|
|
82063
|
+
@Field(() => Boolean, { nullable: true })
|
|
82064
|
+
IsLocked?: boolean;
|
|
82065
|
+
|
|
82066
|
+
@Field(() => Int, { nullable: true })
|
|
82067
|
+
Priority?: number;
|
|
82068
|
+
|
|
82069
|
+
@Field({ nullable: true })
|
|
82070
|
+
Status?: string;
|
|
82071
|
+
|
|
82072
|
+
@Field(() => [KeyValuePairInput], { nullable: true })
|
|
82073
|
+
OldValues___?: KeyValuePairInput[];
|
|
82074
|
+
|
|
82075
|
+
@Field(() => RestoreContextInput, { nullable: true })
|
|
82076
|
+
RestoreContext___?: RestoreContextInput;
|
|
82077
|
+
}
|
|
82078
|
+
|
|
82079
|
+
//****************************************************************************
|
|
82080
|
+
// RESOLVER for MJ: Scoped Notification Configs
|
|
82081
|
+
//****************************************************************************
|
|
82082
|
+
@ObjectType()
|
|
82083
|
+
export class RunMJScopedNotificationConfigViewResult {
|
|
82084
|
+
@Field(() => [MJScopedNotificationConfig_])
|
|
82085
|
+
Results: MJScopedNotificationConfig_[];
|
|
82086
|
+
|
|
82087
|
+
@Field(() => String, {nullable: true})
|
|
82088
|
+
UserViewRunID?: string;
|
|
82089
|
+
|
|
82090
|
+
@Field(() => Int, {nullable: true})
|
|
82091
|
+
RowCount: number;
|
|
82092
|
+
|
|
82093
|
+
@Field(() => Int, {nullable: true})
|
|
82094
|
+
TotalRowCount: number;
|
|
82095
|
+
|
|
82096
|
+
@Field(() => Int, {nullable: true})
|
|
82097
|
+
ExecutionTime: number;
|
|
82098
|
+
|
|
82099
|
+
@Field({nullable: true})
|
|
82100
|
+
ErrorMessage?: string;
|
|
82101
|
+
|
|
82102
|
+
@Field(() => Boolean, {nullable: false})
|
|
82103
|
+
Success: boolean;
|
|
82104
|
+
}
|
|
82105
|
+
|
|
82106
|
+
@Resolver(MJScopedNotificationConfig_)
|
|
82107
|
+
export class MJScopedNotificationConfigResolver extends ResolverBase {
|
|
82108
|
+
@Query(() => RunMJScopedNotificationConfigViewResult)
|
|
82109
|
+
async RunMJScopedNotificationConfigViewByID(@Arg('input', () => RunViewByIDInput) input: RunViewByIDInput, @Ctx() { providers, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
82110
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
82111
|
+
return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
|
|
82112
|
+
}
|
|
82113
|
+
|
|
82114
|
+
@Query(() => RunMJScopedNotificationConfigViewResult)
|
|
82115
|
+
async RunMJScopedNotificationConfigViewByName(@Arg('input', () => RunViewByNameInput) input: RunViewByNameInput, @Ctx() { providers, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
82116
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
82117
|
+
return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
|
|
82118
|
+
}
|
|
82119
|
+
|
|
82120
|
+
@Query(() => RunMJScopedNotificationConfigViewResult)
|
|
82121
|
+
async RunMJScopedNotificationConfigDynamicView(@Arg('input', () => RunDynamicViewInput) input: RunDynamicViewInput, @Ctx() { providers, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
82122
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
82123
|
+
input.EntityName = 'MJ: Scoped Notification Configs';
|
|
82124
|
+
return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
|
|
82125
|
+
}
|
|
82126
|
+
@Query(() => MJScopedNotificationConfig_, { nullable: true })
|
|
82127
|
+
async MJScopedNotificationConfig(@Arg('ID', () => String) ID: string, @Ctx() { userPayload, providers }: AppContext, @PubSub() pubSub: PubSubEngine): Promise<MJScopedNotificationConfig_ | null> {
|
|
82128
|
+
this.CheckUserReadPermissions('MJ: Scoped Notification Configs', userPayload);
|
|
82129
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
82130
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwScopedNotificationConfigs')} WHERE ${provider.QuoteIdentifier('ID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Scoped Notification Configs', userPayload, EntityPermissionType.Read, 'AND');
|
|
82131
|
+
const rows = await provider.ExecuteSQL(sSQL, [ID], undefined, this.GetUserFromPayload(userPayload));
|
|
82132
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Scoped Notification Configs', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
82133
|
+
return result;
|
|
82134
|
+
}
|
|
82135
|
+
|
|
82136
|
+
@Mutation(() => MJScopedNotificationConfig_)
|
|
82137
|
+
async CreateMJScopedNotificationConfig(
|
|
82138
|
+
@Arg('input', () => CreateMJScopedNotificationConfigInput) input: CreateMJScopedNotificationConfigInput,
|
|
82139
|
+
@Ctx() { providers, userPayload }: AppContext,
|
|
82140
|
+
@PubSub() pubSub: PubSubEngine
|
|
82141
|
+
) {
|
|
82142
|
+
const provider = GetReadWriteProvider(providers);
|
|
82143
|
+
return this.CreateRecord('MJ: Scoped Notification Configs', input, provider, userPayload, pubSub)
|
|
82144
|
+
}
|
|
82145
|
+
|
|
82146
|
+
@Mutation(() => MJScopedNotificationConfig_)
|
|
82147
|
+
async UpdateMJScopedNotificationConfig(
|
|
82148
|
+
@Arg('input', () => UpdateMJScopedNotificationConfigInput) input: UpdateMJScopedNotificationConfigInput,
|
|
82149
|
+
@Ctx() { providers, userPayload }: AppContext,
|
|
82150
|
+
@PubSub() pubSub: PubSubEngine
|
|
82151
|
+
) {
|
|
82152
|
+
const provider = GetReadWriteProvider(providers);
|
|
82153
|
+
return this.UpdateRecord('MJ: Scoped Notification Configs', input, provider, userPayload, pubSub);
|
|
82154
|
+
}
|
|
82155
|
+
|
|
82156
|
+
@Mutation(() => MJScopedNotificationConfig_)
|
|
82157
|
+
async DeleteMJScopedNotificationConfig(@Arg('ID', () => String) ID: string, @Arg('options___', () => DeleteOptionsInput) options: DeleteOptionsInput, @Ctx() { providers, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
82158
|
+
const provider = GetReadWriteProvider(providers);
|
|
82159
|
+
const key = new CompositeKey([{FieldName: 'ID', Value: ID}]);
|
|
82160
|
+
return this.DeleteRecord('MJ: Scoped Notification Configs', key, options, provider, userPayload, pubSub);
|
|
82161
|
+
}
|
|
82162
|
+
|
|
82163
|
+
}
|
|
82164
|
+
|
|
81679
82165
|
//****************************************************************************
|
|
81680
82166
|
// ENTITY CLASS for MJ: Scoped Prompt Configs
|
|
81681
82167
|
//****************************************************************************
|
|
@@ -95614,6 +96100,9 @@ export class MJUser_ {
|
|
|
95614
96100
|
@MaxLength(100)
|
|
95615
96101
|
UserImageIconClass?: string;
|
|
95616
96102
|
|
|
96103
|
+
@Field(() => Boolean, {nullable: true, description: "When true, this user is a template: its configuration (pinned apps, views, settings, dashboards, conversations) is copied to new users through the template clone preset or userHandling.newUserTemplate. Template users are for setting things up, not for everyday use; Explorer shows a banner while one is signed in."})
|
|
96104
|
+
IsTemplate?: boolean;
|
|
96105
|
+
|
|
95617
96106
|
@Field({nullable: true})
|
|
95618
96107
|
@MaxLength(101)
|
|
95619
96108
|
FirstLast?: string;
|
|
@@ -95690,6 +96179,9 @@ export class CreateMJUserInput {
|
|
|
95690
96179
|
@Field({ nullable: true })
|
|
95691
96180
|
UserImageIconClass: string | null;
|
|
95692
96181
|
|
|
96182
|
+
@Field(() => Boolean, { nullable: true })
|
|
96183
|
+
IsTemplate?: boolean;
|
|
96184
|
+
|
|
95693
96185
|
@Field(() => RestoreContextInput, { nullable: true })
|
|
95694
96186
|
RestoreContext___?: RestoreContextInput;
|
|
95695
96187
|
}
|
|
@@ -95742,6 +96234,9 @@ export class UpdateMJUserInput {
|
|
|
95742
96234
|
@Field({ nullable: true })
|
|
95743
96235
|
UserImageIconClass?: string | null;
|
|
95744
96236
|
|
|
96237
|
+
@Field(() => Boolean, { nullable: true })
|
|
96238
|
+
IsTemplate?: boolean;
|
|
96239
|
+
|
|
95745
96240
|
@Field(() => [KeyValuePairInput], { nullable: true })
|
|
95746
96241
|
OldValues___?: KeyValuePairInput[];
|
|
95747
96242
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LogError, LogStatus, RunView } from '@memberjunction/core';
|
|
2
|
-
import {
|
|
2
|
+
import { IndexByUUID } from '@memberjunction/global';
|
|
3
3
|
import { UserCache } from '@memberjunction/sqlserver-dataprovider';
|
|
4
4
|
import type { IMetadataProvider, UserInfo } from '@memberjunction/core';
|
|
5
5
|
import type { MJAIAgentRunEntity, MJConversationDetailEntity } from '@memberjunction/core-entities';
|
|
@@ -253,12 +253,12 @@ async function loadConversationOwners(
|
|
|
253
253
|
if (!result.Success) {
|
|
254
254
|
return owners;
|
|
255
255
|
}
|
|
256
|
-
const
|
|
256
|
+
const usersByID = IndexByUUID(UserCache.Instance.Users);
|
|
257
257
|
for (const row of result.Results ?? []) {
|
|
258
258
|
if (!row.UserID) {
|
|
259
259
|
continue;
|
|
260
260
|
}
|
|
261
|
-
const user =
|
|
261
|
+
const user = usersByID.Get(row.UserID);
|
|
262
262
|
if (user) {
|
|
263
263
|
owners.set(row.ID, user);
|
|
264
264
|
}
|