@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
|
@@ -53367,6 +53367,316 @@ MJConversationArtifactResolver = __decorate([
|
|
|
53367
53367
|
], MJConversationArtifactResolver);
|
|
53368
53368
|
export { MJConversationArtifactResolver };
|
|
53369
53369
|
//****************************************************************************
|
|
53370
|
+
// ENTITY CLASS for MJ: Conversation Branches
|
|
53371
|
+
//****************************************************************************
|
|
53372
|
+
let MJConversationBranch_ = class MJConversationBranch_ {
|
|
53373
|
+
};
|
|
53374
|
+
__decorate([
|
|
53375
|
+
Field(),
|
|
53376
|
+
MaxLength(36),
|
|
53377
|
+
__metadata("design:type", String)
|
|
53378
|
+
], MJConversationBranch_.prototype, "ID", void 0);
|
|
53379
|
+
__decorate([
|
|
53380
|
+
Field({ nullable: true, description: "The conversation this fork belongs to." }),
|
|
53381
|
+
MaxLength(36),
|
|
53382
|
+
__metadata("design:type", String)
|
|
53383
|
+
], MJConversationBranch_.prototype, "ConversationID", void 0);
|
|
53384
|
+
__decorate([
|
|
53385
|
+
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." }),
|
|
53386
|
+
MaxLength(36),
|
|
53387
|
+
__metadata("design:type", String)
|
|
53388
|
+
], MJConversationBranch_.prototype, "ParentBranchID", void 0);
|
|
53389
|
+
__decorate([
|
|
53390
|
+
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." }),
|
|
53391
|
+
__metadata("design:type", Number)
|
|
53392
|
+
], MJConversationBranch_.prototype, "ForkFromSequence", void 0);
|
|
53393
|
+
__decorate([
|
|
53394
|
+
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." }),
|
|
53395
|
+
MaxLength(255),
|
|
53396
|
+
__metadata("design:type", String)
|
|
53397
|
+
], MJConversationBranch_.prototype, "Name", void 0);
|
|
53398
|
+
__decorate([
|
|
53399
|
+
Field({ nullable: true, description: "How the fork started: Fork (Fork from here), Edit (a sent message was edited) or Regenerate (an answer was regenerated)." }),
|
|
53400
|
+
MaxLength(20),
|
|
53401
|
+
__metadata("design:type", String)
|
|
53402
|
+
], MJConversationBranch_.prototype, "Kind", void 0);
|
|
53403
|
+
__decorate([
|
|
53404
|
+
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." }),
|
|
53405
|
+
MaxLength(36),
|
|
53406
|
+
__metadata("design:type", String)
|
|
53407
|
+
], MJConversationBranch_.prototype, "SourceDetailID", void 0);
|
|
53408
|
+
__decorate([
|
|
53409
|
+
Field({ nullable: true, description: "The person who started the fork." }),
|
|
53410
|
+
MaxLength(36),
|
|
53411
|
+
__metadata("design:type", String)
|
|
53412
|
+
], MJConversationBranch_.prototype, "UserID", void 0);
|
|
53413
|
+
__decorate([
|
|
53414
|
+
Field(),
|
|
53415
|
+
__metadata("design:type", Date)
|
|
53416
|
+
], MJConversationBranch_.prototype, "_mj__CreatedAt", void 0);
|
|
53417
|
+
__decorate([
|
|
53418
|
+
Field(),
|
|
53419
|
+
__metadata("design:type", Date)
|
|
53420
|
+
], MJConversationBranch_.prototype, "_mj__UpdatedAt", void 0);
|
|
53421
|
+
__decorate([
|
|
53422
|
+
Field({ nullable: true }),
|
|
53423
|
+
MaxLength(255),
|
|
53424
|
+
__metadata("design:type", String)
|
|
53425
|
+
], MJConversationBranch_.prototype, "Conversation", void 0);
|
|
53426
|
+
__decorate([
|
|
53427
|
+
Field({ nullable: true }),
|
|
53428
|
+
MaxLength(255),
|
|
53429
|
+
__metadata("design:type", String)
|
|
53430
|
+
], MJConversationBranch_.prototype, "ParentBranch", void 0);
|
|
53431
|
+
__decorate([
|
|
53432
|
+
Field({ nullable: true }),
|
|
53433
|
+
MaxLength(100),
|
|
53434
|
+
__metadata("design:type", String)
|
|
53435
|
+
], MJConversationBranch_.prototype, "User", void 0);
|
|
53436
|
+
__decorate([
|
|
53437
|
+
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.` }),
|
|
53438
|
+
__metadata("design:type", Array)
|
|
53439
|
+
], MJConversationBranch_.prototype, "ReadableFields___", void 0);
|
|
53440
|
+
MJConversationBranch_ = __decorate([
|
|
53441
|
+
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." })
|
|
53442
|
+
], MJConversationBranch_);
|
|
53443
|
+
export { MJConversationBranch_ };
|
|
53444
|
+
//****************************************************************************
|
|
53445
|
+
// INPUT TYPE for MJ: Conversation Branches
|
|
53446
|
+
//****************************************************************************
|
|
53447
|
+
let CreateMJConversationBranchInput = class CreateMJConversationBranchInput {
|
|
53448
|
+
};
|
|
53449
|
+
__decorate([
|
|
53450
|
+
Field({ nullable: true }),
|
|
53451
|
+
__metadata("design:type", String)
|
|
53452
|
+
], CreateMJConversationBranchInput.prototype, "ID", void 0);
|
|
53453
|
+
__decorate([
|
|
53454
|
+
Field({ nullable: true }),
|
|
53455
|
+
__metadata("design:type", String)
|
|
53456
|
+
], CreateMJConversationBranchInput.prototype, "ConversationID", void 0);
|
|
53457
|
+
__decorate([
|
|
53458
|
+
Field({ nullable: true }),
|
|
53459
|
+
__metadata("design:type", String)
|
|
53460
|
+
], CreateMJConversationBranchInput.prototype, "ParentBranchID", void 0);
|
|
53461
|
+
__decorate([
|
|
53462
|
+
Field(() => Int, { nullable: true }),
|
|
53463
|
+
__metadata("design:type", Number)
|
|
53464
|
+
], CreateMJConversationBranchInput.prototype, "ForkFromSequence", void 0);
|
|
53465
|
+
__decorate([
|
|
53466
|
+
Field({ nullable: true }),
|
|
53467
|
+
__metadata("design:type", String)
|
|
53468
|
+
], CreateMJConversationBranchInput.prototype, "Name", void 0);
|
|
53469
|
+
__decorate([
|
|
53470
|
+
Field({ nullable: true }),
|
|
53471
|
+
__metadata("design:type", String)
|
|
53472
|
+
], CreateMJConversationBranchInput.prototype, "Kind", void 0);
|
|
53473
|
+
__decorate([
|
|
53474
|
+
Field({ nullable: true }),
|
|
53475
|
+
__metadata("design:type", String)
|
|
53476
|
+
], CreateMJConversationBranchInput.prototype, "SourceDetailID", void 0);
|
|
53477
|
+
__decorate([
|
|
53478
|
+
Field({ nullable: true }),
|
|
53479
|
+
__metadata("design:type", String)
|
|
53480
|
+
], CreateMJConversationBranchInput.prototype, "UserID", void 0);
|
|
53481
|
+
__decorate([
|
|
53482
|
+
Field(() => RestoreContextInput, { nullable: true }),
|
|
53483
|
+
__metadata("design:type", RestoreContextInput)
|
|
53484
|
+
], CreateMJConversationBranchInput.prototype, "RestoreContext___", void 0);
|
|
53485
|
+
CreateMJConversationBranchInput = __decorate([
|
|
53486
|
+
InputType()
|
|
53487
|
+
], CreateMJConversationBranchInput);
|
|
53488
|
+
export { CreateMJConversationBranchInput };
|
|
53489
|
+
//****************************************************************************
|
|
53490
|
+
// INPUT TYPE for MJ: Conversation Branches
|
|
53491
|
+
//****************************************************************************
|
|
53492
|
+
let UpdateMJConversationBranchInput = class UpdateMJConversationBranchInput {
|
|
53493
|
+
};
|
|
53494
|
+
__decorate([
|
|
53495
|
+
Field(),
|
|
53496
|
+
__metadata("design:type", String)
|
|
53497
|
+
], UpdateMJConversationBranchInput.prototype, "ID", void 0);
|
|
53498
|
+
__decorate([
|
|
53499
|
+
Field({ nullable: true }),
|
|
53500
|
+
__metadata("design:type", String)
|
|
53501
|
+
], UpdateMJConversationBranchInput.prototype, "ConversationID", void 0);
|
|
53502
|
+
__decorate([
|
|
53503
|
+
Field({ nullable: true }),
|
|
53504
|
+
__metadata("design:type", String)
|
|
53505
|
+
], UpdateMJConversationBranchInput.prototype, "ParentBranchID", void 0);
|
|
53506
|
+
__decorate([
|
|
53507
|
+
Field(() => Int, { nullable: true }),
|
|
53508
|
+
__metadata("design:type", Number)
|
|
53509
|
+
], UpdateMJConversationBranchInput.prototype, "ForkFromSequence", void 0);
|
|
53510
|
+
__decorate([
|
|
53511
|
+
Field({ nullable: true }),
|
|
53512
|
+
__metadata("design:type", String)
|
|
53513
|
+
], UpdateMJConversationBranchInput.prototype, "Name", void 0);
|
|
53514
|
+
__decorate([
|
|
53515
|
+
Field({ nullable: true }),
|
|
53516
|
+
__metadata("design:type", String)
|
|
53517
|
+
], UpdateMJConversationBranchInput.prototype, "Kind", void 0);
|
|
53518
|
+
__decorate([
|
|
53519
|
+
Field({ nullable: true }),
|
|
53520
|
+
__metadata("design:type", String)
|
|
53521
|
+
], UpdateMJConversationBranchInput.prototype, "SourceDetailID", void 0);
|
|
53522
|
+
__decorate([
|
|
53523
|
+
Field({ nullable: true }),
|
|
53524
|
+
__metadata("design:type", String)
|
|
53525
|
+
], UpdateMJConversationBranchInput.prototype, "UserID", void 0);
|
|
53526
|
+
__decorate([
|
|
53527
|
+
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
53528
|
+
__metadata("design:type", Array)
|
|
53529
|
+
], UpdateMJConversationBranchInput.prototype, "OldValues___", void 0);
|
|
53530
|
+
__decorate([
|
|
53531
|
+
Field(() => RestoreContextInput, { nullable: true }),
|
|
53532
|
+
__metadata("design:type", RestoreContextInput)
|
|
53533
|
+
], UpdateMJConversationBranchInput.prototype, "RestoreContext___", void 0);
|
|
53534
|
+
UpdateMJConversationBranchInput = __decorate([
|
|
53535
|
+
InputType()
|
|
53536
|
+
], UpdateMJConversationBranchInput);
|
|
53537
|
+
export { UpdateMJConversationBranchInput };
|
|
53538
|
+
//****************************************************************************
|
|
53539
|
+
// RESOLVER for MJ: Conversation Branches
|
|
53540
|
+
//****************************************************************************
|
|
53541
|
+
let RunMJConversationBranchViewResult = class RunMJConversationBranchViewResult {
|
|
53542
|
+
};
|
|
53543
|
+
__decorate([
|
|
53544
|
+
Field(() => [MJConversationBranch_]),
|
|
53545
|
+
__metadata("design:type", Array)
|
|
53546
|
+
], RunMJConversationBranchViewResult.prototype, "Results", void 0);
|
|
53547
|
+
__decorate([
|
|
53548
|
+
Field(() => String, { nullable: true }),
|
|
53549
|
+
__metadata("design:type", String)
|
|
53550
|
+
], RunMJConversationBranchViewResult.prototype, "UserViewRunID", void 0);
|
|
53551
|
+
__decorate([
|
|
53552
|
+
Field(() => Int, { nullable: true }),
|
|
53553
|
+
__metadata("design:type", Number)
|
|
53554
|
+
], RunMJConversationBranchViewResult.prototype, "RowCount", void 0);
|
|
53555
|
+
__decorate([
|
|
53556
|
+
Field(() => Int, { nullable: true }),
|
|
53557
|
+
__metadata("design:type", Number)
|
|
53558
|
+
], RunMJConversationBranchViewResult.prototype, "TotalRowCount", void 0);
|
|
53559
|
+
__decorate([
|
|
53560
|
+
Field(() => Int, { nullable: true }),
|
|
53561
|
+
__metadata("design:type", Number)
|
|
53562
|
+
], RunMJConversationBranchViewResult.prototype, "ExecutionTime", void 0);
|
|
53563
|
+
__decorate([
|
|
53564
|
+
Field({ nullable: true }),
|
|
53565
|
+
__metadata("design:type", String)
|
|
53566
|
+
], RunMJConversationBranchViewResult.prototype, "ErrorMessage", void 0);
|
|
53567
|
+
__decorate([
|
|
53568
|
+
Field(() => Boolean, { nullable: false }),
|
|
53569
|
+
__metadata("design:type", Boolean)
|
|
53570
|
+
], RunMJConversationBranchViewResult.prototype, "Success", void 0);
|
|
53571
|
+
RunMJConversationBranchViewResult = __decorate([
|
|
53572
|
+
ObjectType()
|
|
53573
|
+
], RunMJConversationBranchViewResult);
|
|
53574
|
+
export { RunMJConversationBranchViewResult };
|
|
53575
|
+
let MJConversationBranchResolver = class MJConversationBranchResolver extends ResolverBase {
|
|
53576
|
+
async RunMJConversationBranchViewByID(input, { providers, userPayload }, pubSub) {
|
|
53577
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
53578
|
+
return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
|
|
53579
|
+
}
|
|
53580
|
+
async RunMJConversationBranchViewByName(input, { providers, userPayload }, pubSub) {
|
|
53581
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
53582
|
+
return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
|
|
53583
|
+
}
|
|
53584
|
+
async RunMJConversationBranchDynamicView(input, { providers, userPayload }, pubSub) {
|
|
53585
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
53586
|
+
input.EntityName = 'MJ: Conversation Branches';
|
|
53587
|
+
return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
|
|
53588
|
+
}
|
|
53589
|
+
async MJConversationBranch(ID, { userPayload, providers }, pubSub) {
|
|
53590
|
+
this.CheckUserReadPermissions('MJ: Conversation Branches', userPayload);
|
|
53591
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
53592
|
+
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');
|
|
53593
|
+
const rows = await provider.ExecuteSQL(sSQL, [ID], undefined, this.GetUserFromPayload(userPayload));
|
|
53594
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Conversation Branches', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
53595
|
+
return result;
|
|
53596
|
+
}
|
|
53597
|
+
async CreateMJConversationBranch(input, { providers, userPayload }, pubSub) {
|
|
53598
|
+
const provider = GetReadWriteProvider(providers);
|
|
53599
|
+
return this.CreateRecord('MJ: Conversation Branches', input, provider, userPayload, pubSub);
|
|
53600
|
+
}
|
|
53601
|
+
async UpdateMJConversationBranch(input, { providers, userPayload }, pubSub) {
|
|
53602
|
+
const provider = GetReadWriteProvider(providers);
|
|
53603
|
+
return this.UpdateRecord('MJ: Conversation Branches', input, provider, userPayload, pubSub);
|
|
53604
|
+
}
|
|
53605
|
+
async DeleteMJConversationBranch(ID, options, { providers, userPayload }, pubSub) {
|
|
53606
|
+
const provider = GetReadWriteProvider(providers);
|
|
53607
|
+
const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
|
|
53608
|
+
return this.DeleteRecord('MJ: Conversation Branches', key, options, provider, userPayload, pubSub);
|
|
53609
|
+
}
|
|
53610
|
+
};
|
|
53611
|
+
__decorate([
|
|
53612
|
+
Query(() => RunMJConversationBranchViewResult),
|
|
53613
|
+
__param(0, Arg('input', () => RunViewByIDInput)),
|
|
53614
|
+
__param(1, Ctx()),
|
|
53615
|
+
__param(2, PubSub()),
|
|
53616
|
+
__metadata("design:type", Function),
|
|
53617
|
+
__metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
|
|
53618
|
+
__metadata("design:returntype", Promise)
|
|
53619
|
+
], MJConversationBranchResolver.prototype, "RunMJConversationBranchViewByID", null);
|
|
53620
|
+
__decorate([
|
|
53621
|
+
Query(() => RunMJConversationBranchViewResult),
|
|
53622
|
+
__param(0, Arg('input', () => RunViewByNameInput)),
|
|
53623
|
+
__param(1, Ctx()),
|
|
53624
|
+
__param(2, PubSub()),
|
|
53625
|
+
__metadata("design:type", Function),
|
|
53626
|
+
__metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
|
|
53627
|
+
__metadata("design:returntype", Promise)
|
|
53628
|
+
], MJConversationBranchResolver.prototype, "RunMJConversationBranchViewByName", null);
|
|
53629
|
+
__decorate([
|
|
53630
|
+
Query(() => RunMJConversationBranchViewResult),
|
|
53631
|
+
__param(0, Arg('input', () => RunDynamicViewInput)),
|
|
53632
|
+
__param(1, Ctx()),
|
|
53633
|
+
__param(2, PubSub()),
|
|
53634
|
+
__metadata("design:type", Function),
|
|
53635
|
+
__metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
|
|
53636
|
+
__metadata("design:returntype", Promise)
|
|
53637
|
+
], MJConversationBranchResolver.prototype, "RunMJConversationBranchDynamicView", null);
|
|
53638
|
+
__decorate([
|
|
53639
|
+
Query(() => MJConversationBranch_, { nullable: true }),
|
|
53640
|
+
__param(0, Arg('ID', () => String)),
|
|
53641
|
+
__param(1, Ctx()),
|
|
53642
|
+
__param(2, PubSub()),
|
|
53643
|
+
__metadata("design:type", Function),
|
|
53644
|
+
__metadata("design:paramtypes", [String, Object, PubSubEngine]),
|
|
53645
|
+
__metadata("design:returntype", Promise)
|
|
53646
|
+
], MJConversationBranchResolver.prototype, "MJConversationBranch", null);
|
|
53647
|
+
__decorate([
|
|
53648
|
+
Mutation(() => MJConversationBranch_),
|
|
53649
|
+
__param(0, Arg('input', () => CreateMJConversationBranchInput)),
|
|
53650
|
+
__param(1, Ctx()),
|
|
53651
|
+
__param(2, PubSub()),
|
|
53652
|
+
__metadata("design:type", Function),
|
|
53653
|
+
__metadata("design:paramtypes", [CreateMJConversationBranchInput, Object, PubSubEngine]),
|
|
53654
|
+
__metadata("design:returntype", Promise)
|
|
53655
|
+
], MJConversationBranchResolver.prototype, "CreateMJConversationBranch", null);
|
|
53656
|
+
__decorate([
|
|
53657
|
+
Mutation(() => MJConversationBranch_),
|
|
53658
|
+
__param(0, Arg('input', () => UpdateMJConversationBranchInput)),
|
|
53659
|
+
__param(1, Ctx()),
|
|
53660
|
+
__param(2, PubSub()),
|
|
53661
|
+
__metadata("design:type", Function),
|
|
53662
|
+
__metadata("design:paramtypes", [UpdateMJConversationBranchInput, Object, PubSubEngine]),
|
|
53663
|
+
__metadata("design:returntype", Promise)
|
|
53664
|
+
], MJConversationBranchResolver.prototype, "UpdateMJConversationBranch", null);
|
|
53665
|
+
__decorate([
|
|
53666
|
+
Mutation(() => MJConversationBranch_),
|
|
53667
|
+
__param(0, Arg('ID', () => String)),
|
|
53668
|
+
__param(1, Arg('options___', () => DeleteOptionsInput)),
|
|
53669
|
+
__param(2, Ctx()),
|
|
53670
|
+
__param(3, PubSub()),
|
|
53671
|
+
__metadata("design:type", Function),
|
|
53672
|
+
__metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
|
|
53673
|
+
__metadata("design:returntype", Promise)
|
|
53674
|
+
], MJConversationBranchResolver.prototype, "DeleteMJConversationBranch", null);
|
|
53675
|
+
MJConversationBranchResolver = __decorate([
|
|
53676
|
+
Resolver(MJConversationBranch_)
|
|
53677
|
+
], MJConversationBranchResolver);
|
|
53678
|
+
export { MJConversationBranchResolver };
|
|
53679
|
+
//****************************************************************************
|
|
53370
53680
|
// ENTITY CLASS for MJ: Conversation Compaction Runs
|
|
53371
53681
|
//****************************************************************************
|
|
53372
53682
|
let MJConversationCompactionRun_ = class MJConversationCompactionRun_ {
|
|
@@ -54675,6 +54985,15 @@ __decorate([
|
|
|
54675
54985
|
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." }),
|
|
54676
54986
|
__metadata("design:type", Number)
|
|
54677
54987
|
], MJConversationDetail_.prototype, "Sequence", void 0);
|
|
54988
|
+
__decorate([
|
|
54989
|
+
Field({ nullable: true, description: "The fork this message belongs to. NULL means Main (the trunk). Every writer sets it explicitly." }),
|
|
54990
|
+
MaxLength(36),
|
|
54991
|
+
__metadata("design:type", String)
|
|
54992
|
+
], MJConversationDetail_.prototype, "BranchID", void 0);
|
|
54993
|
+
__decorate([
|
|
54994
|
+
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." }),
|
|
54995
|
+
__metadata("design:type", Date)
|
|
54996
|
+
], MJConversationDetail_.prototype, "ReplacedAt", void 0);
|
|
54678
54997
|
__decorate([
|
|
54679
54998
|
Field({ nullable: true }),
|
|
54680
54999
|
MaxLength(255),
|
|
@@ -54710,6 +55029,11 @@ __decorate([
|
|
|
54710
55029
|
MaxLength(255),
|
|
54711
55030
|
__metadata("design:type", String)
|
|
54712
55031
|
], MJConversationDetail_.prototype, "TestRun", void 0);
|
|
55032
|
+
__decorate([
|
|
55033
|
+
Field({ nullable: true }),
|
|
55034
|
+
MaxLength(255),
|
|
55035
|
+
__metadata("design:type", String)
|
|
55036
|
+
], MJConversationDetail_.prototype, "Branch", void 0);
|
|
54713
55037
|
__decorate([
|
|
54714
55038
|
Field({ nullable: true }),
|
|
54715
55039
|
MaxLength(36),
|
|
@@ -54864,6 +55188,14 @@ __decorate([
|
|
|
54864
55188
|
Field({ nullable: true }),
|
|
54865
55189
|
__metadata("design:type", String)
|
|
54866
55190
|
], CreateMJConversationDetailInput.prototype, "MediaType", void 0);
|
|
55191
|
+
__decorate([
|
|
55192
|
+
Field({ nullable: true }),
|
|
55193
|
+
__metadata("design:type", String)
|
|
55194
|
+
], CreateMJConversationDetailInput.prototype, "BranchID", void 0);
|
|
55195
|
+
__decorate([
|
|
55196
|
+
Field({ nullable: true }),
|
|
55197
|
+
__metadata("design:type", Date)
|
|
55198
|
+
], CreateMJConversationDetailInput.prototype, "ReplacedAt", void 0);
|
|
54867
55199
|
__decorate([
|
|
54868
55200
|
Field(() => RestoreContextInput, { nullable: true }),
|
|
54869
55201
|
__metadata("design:type", RestoreContextInput)
|
|
@@ -54997,6 +55329,14 @@ __decorate([
|
|
|
54997
55329
|
Field({ nullable: true }),
|
|
54998
55330
|
__metadata("design:type", String)
|
|
54999
55331
|
], UpdateMJConversationDetailInput.prototype, "MediaType", void 0);
|
|
55332
|
+
__decorate([
|
|
55333
|
+
Field({ nullable: true }),
|
|
55334
|
+
__metadata("design:type", String)
|
|
55335
|
+
], UpdateMJConversationDetailInput.prototype, "BranchID", void 0);
|
|
55336
|
+
__decorate([
|
|
55337
|
+
Field({ nullable: true }),
|
|
55338
|
+
__metadata("design:type", Date)
|
|
55339
|
+
], UpdateMJConversationDetailInput.prototype, "ReplacedAt", void 0);
|
|
55000
55340
|
__decorate([
|
|
55001
55341
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
55002
55342
|
__metadata("design:type", Array)
|
|
@@ -117106,6 +117446,360 @@ MJSchemaInfoResolver = __decorate([
|
|
|
117106
117446
|
], MJSchemaInfoResolver);
|
|
117107
117447
|
export { MJSchemaInfoResolver };
|
|
117108
117448
|
//****************************************************************************
|
|
117449
|
+
// ENTITY CLASS for MJ: Scoped Notification Configs
|
|
117450
|
+
//****************************************************************************
|
|
117451
|
+
let MJScopedNotificationConfig_ = class MJScopedNotificationConfig_ {
|
|
117452
|
+
};
|
|
117453
|
+
__decorate([
|
|
117454
|
+
Field(),
|
|
117455
|
+
MaxLength(36),
|
|
117456
|
+
__metadata("design:type", String)
|
|
117457
|
+
], MJScopedNotificationConfig_.prototype, "ID", void 0);
|
|
117458
|
+
__decorate([
|
|
117459
|
+
Field({ nullable: true, description: "The notification type this config is for." }),
|
|
117460
|
+
MaxLength(36),
|
|
117461
|
+
__metadata("design:type", String)
|
|
117462
|
+
], MJScopedNotificationConfig_.prototype, "NotificationTypeID", void 0);
|
|
117463
|
+
__decorate([
|
|
117464
|
+
Field({ nullable: true, description: "Why the row exists, for the administrator who finds it." }),
|
|
117465
|
+
__metadata("design:type", String)
|
|
117466
|
+
], MJScopedNotificationConfig_.prototype, "Description", void 0);
|
|
117467
|
+
__decorate([
|
|
117468
|
+
Field({ nullable: true, description: "The entity of the primary scope record (Applications, Roles, Users, Companies, ...). NULL with PrimaryScopeRecordID NULL = a global row." }),
|
|
117469
|
+
MaxLength(36),
|
|
117470
|
+
__metadata("design:type", String)
|
|
117471
|
+
], MJScopedNotificationConfig_.prototype, "PrimaryScopeEntityID", void 0);
|
|
117472
|
+
__decorate([
|
|
117473
|
+
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." }),
|
|
117474
|
+
MaxLength(100),
|
|
117475
|
+
__metadata("design:type", String)
|
|
117476
|
+
], MJScopedNotificationConfig_.prototype, "PrimaryScopeRecordID", void 0);
|
|
117477
|
+
__decorate([
|
|
117478
|
+
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." }),
|
|
117479
|
+
__metadata("design:type", String)
|
|
117480
|
+
], MJScopedNotificationConfig_.prototype, "SecondaryScopes", void 0);
|
|
117481
|
+
__decorate([
|
|
117482
|
+
Field({ nullable: true, description: "The in-app channel: Allow, Deny, or NULL to leave it to the next row." }),
|
|
117483
|
+
MaxLength(20),
|
|
117484
|
+
__metadata("design:type", String)
|
|
117485
|
+
], MJScopedNotificationConfig_.prototype, "InApp", void 0);
|
|
117486
|
+
__decorate([
|
|
117487
|
+
Field({ nullable: true, description: "The email channel: Allow, Deny, or NULL to leave it to the next row." }),
|
|
117488
|
+
MaxLength(20),
|
|
117489
|
+
__metadata("design:type", String)
|
|
117490
|
+
], MJScopedNotificationConfig_.prototype, "Email", void 0);
|
|
117491
|
+
__decorate([
|
|
117492
|
+
Field({ nullable: true, description: "The SMS channel: Allow, Deny, or NULL to leave it to the next row." }),
|
|
117493
|
+
MaxLength(20),
|
|
117494
|
+
__metadata("design:type", String)
|
|
117495
|
+
], MJScopedNotificationConfig_.prototype, "SMS", void 0);
|
|
117496
|
+
__decorate([
|
|
117497
|
+
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." }),
|
|
117498
|
+
__metadata("design:type", Boolean)
|
|
117499
|
+
], MJScopedNotificationConfig_.prototype, "IsLocked", void 0);
|
|
117500
|
+
__decorate([
|
|
117501
|
+
Field(() => Int, { nullable: true, description: "Tie-break for resolution. Higher wins when two rows tie on scope specificity and neither denies. Default 0." }),
|
|
117502
|
+
__metadata("design:type", Number)
|
|
117503
|
+
], MJScopedNotificationConfig_.prototype, "Priority", void 0);
|
|
117504
|
+
__decorate([
|
|
117505
|
+
Field({ nullable: true, description: "Lifecycle: Active (live), Provisional (staged; eligible), Archived (excluded from resolution)." }),
|
|
117506
|
+
MaxLength(20),
|
|
117507
|
+
__metadata("design:type", String)
|
|
117508
|
+
], MJScopedNotificationConfig_.prototype, "Status", void 0);
|
|
117509
|
+
__decorate([
|
|
117510
|
+
Field(),
|
|
117511
|
+
__metadata("design:type", Date)
|
|
117512
|
+
], MJScopedNotificationConfig_.prototype, "_mj__CreatedAt", void 0);
|
|
117513
|
+
__decorate([
|
|
117514
|
+
Field(),
|
|
117515
|
+
__metadata("design:type", Date)
|
|
117516
|
+
], MJScopedNotificationConfig_.prototype, "_mj__UpdatedAt", void 0);
|
|
117517
|
+
__decorate([
|
|
117518
|
+
Field({ nullable: true }),
|
|
117519
|
+
MaxLength(100),
|
|
117520
|
+
__metadata("design:type", String)
|
|
117521
|
+
], MJScopedNotificationConfig_.prototype, "NotificationType", void 0);
|
|
117522
|
+
__decorate([
|
|
117523
|
+
Field({ nullable: true }),
|
|
117524
|
+
MaxLength(255),
|
|
117525
|
+
__metadata("design:type", String)
|
|
117526
|
+
], MJScopedNotificationConfig_.prototype, "PrimaryScopeEntity", void 0);
|
|
117527
|
+
__decorate([
|
|
117528
|
+
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.` }),
|
|
117529
|
+
__metadata("design:type", Array)
|
|
117530
|
+
], MJScopedNotificationConfig_.prototype, "ReadableFields___", void 0);
|
|
117531
|
+
MJScopedNotificationConfig_ = __decorate([
|
|
117532
|
+
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." })
|
|
117533
|
+
], MJScopedNotificationConfig_);
|
|
117534
|
+
export { MJScopedNotificationConfig_ };
|
|
117535
|
+
//****************************************************************************
|
|
117536
|
+
// INPUT TYPE for MJ: Scoped Notification Configs
|
|
117537
|
+
//****************************************************************************
|
|
117538
|
+
let CreateMJScopedNotificationConfigInput = class CreateMJScopedNotificationConfigInput {
|
|
117539
|
+
};
|
|
117540
|
+
__decorate([
|
|
117541
|
+
Field({ nullable: true }),
|
|
117542
|
+
__metadata("design:type", String)
|
|
117543
|
+
], CreateMJScopedNotificationConfigInput.prototype, "ID", void 0);
|
|
117544
|
+
__decorate([
|
|
117545
|
+
Field({ nullable: true }),
|
|
117546
|
+
__metadata("design:type", String)
|
|
117547
|
+
], CreateMJScopedNotificationConfigInput.prototype, "NotificationTypeID", void 0);
|
|
117548
|
+
__decorate([
|
|
117549
|
+
Field({ nullable: true }),
|
|
117550
|
+
__metadata("design:type", String)
|
|
117551
|
+
], CreateMJScopedNotificationConfigInput.prototype, "Description", void 0);
|
|
117552
|
+
__decorate([
|
|
117553
|
+
Field({ nullable: true }),
|
|
117554
|
+
__metadata("design:type", String)
|
|
117555
|
+
], CreateMJScopedNotificationConfigInput.prototype, "PrimaryScopeEntityID", void 0);
|
|
117556
|
+
__decorate([
|
|
117557
|
+
Field({ nullable: true }),
|
|
117558
|
+
__metadata("design:type", String)
|
|
117559
|
+
], CreateMJScopedNotificationConfigInput.prototype, "PrimaryScopeRecordID", void 0);
|
|
117560
|
+
__decorate([
|
|
117561
|
+
Field({ nullable: true }),
|
|
117562
|
+
__metadata("design:type", String)
|
|
117563
|
+
], CreateMJScopedNotificationConfigInput.prototype, "SecondaryScopes", void 0);
|
|
117564
|
+
__decorate([
|
|
117565
|
+
Field({ nullable: true }),
|
|
117566
|
+
__metadata("design:type", String)
|
|
117567
|
+
], CreateMJScopedNotificationConfigInput.prototype, "InApp", void 0);
|
|
117568
|
+
__decorate([
|
|
117569
|
+
Field({ nullable: true }),
|
|
117570
|
+
__metadata("design:type", String)
|
|
117571
|
+
], CreateMJScopedNotificationConfigInput.prototype, "Email", void 0);
|
|
117572
|
+
__decorate([
|
|
117573
|
+
Field({ nullable: true }),
|
|
117574
|
+
__metadata("design:type", String)
|
|
117575
|
+
], CreateMJScopedNotificationConfigInput.prototype, "SMS", void 0);
|
|
117576
|
+
__decorate([
|
|
117577
|
+
Field(() => Boolean, { nullable: true }),
|
|
117578
|
+
__metadata("design:type", Boolean)
|
|
117579
|
+
], CreateMJScopedNotificationConfigInput.prototype, "IsLocked", void 0);
|
|
117580
|
+
__decorate([
|
|
117581
|
+
Field(() => Int, { nullable: true }),
|
|
117582
|
+
__metadata("design:type", Number)
|
|
117583
|
+
], CreateMJScopedNotificationConfigInput.prototype, "Priority", void 0);
|
|
117584
|
+
__decorate([
|
|
117585
|
+
Field({ nullable: true }),
|
|
117586
|
+
__metadata("design:type", String)
|
|
117587
|
+
], CreateMJScopedNotificationConfigInput.prototype, "Status", void 0);
|
|
117588
|
+
__decorate([
|
|
117589
|
+
Field(() => RestoreContextInput, { nullable: true }),
|
|
117590
|
+
__metadata("design:type", RestoreContextInput)
|
|
117591
|
+
], CreateMJScopedNotificationConfigInput.prototype, "RestoreContext___", void 0);
|
|
117592
|
+
CreateMJScopedNotificationConfigInput = __decorate([
|
|
117593
|
+
InputType()
|
|
117594
|
+
], CreateMJScopedNotificationConfigInput);
|
|
117595
|
+
export { CreateMJScopedNotificationConfigInput };
|
|
117596
|
+
//****************************************************************************
|
|
117597
|
+
// INPUT TYPE for MJ: Scoped Notification Configs
|
|
117598
|
+
//****************************************************************************
|
|
117599
|
+
let UpdateMJScopedNotificationConfigInput = class UpdateMJScopedNotificationConfigInput {
|
|
117600
|
+
};
|
|
117601
|
+
__decorate([
|
|
117602
|
+
Field(),
|
|
117603
|
+
__metadata("design:type", String)
|
|
117604
|
+
], UpdateMJScopedNotificationConfigInput.prototype, "ID", void 0);
|
|
117605
|
+
__decorate([
|
|
117606
|
+
Field({ nullable: true }),
|
|
117607
|
+
__metadata("design:type", String)
|
|
117608
|
+
], UpdateMJScopedNotificationConfigInput.prototype, "NotificationTypeID", void 0);
|
|
117609
|
+
__decorate([
|
|
117610
|
+
Field({ nullable: true }),
|
|
117611
|
+
__metadata("design:type", String)
|
|
117612
|
+
], UpdateMJScopedNotificationConfigInput.prototype, "Description", void 0);
|
|
117613
|
+
__decorate([
|
|
117614
|
+
Field({ nullable: true }),
|
|
117615
|
+
__metadata("design:type", String)
|
|
117616
|
+
], UpdateMJScopedNotificationConfigInput.prototype, "PrimaryScopeEntityID", void 0);
|
|
117617
|
+
__decorate([
|
|
117618
|
+
Field({ nullable: true }),
|
|
117619
|
+
__metadata("design:type", String)
|
|
117620
|
+
], UpdateMJScopedNotificationConfigInput.prototype, "PrimaryScopeRecordID", void 0);
|
|
117621
|
+
__decorate([
|
|
117622
|
+
Field({ nullable: true }),
|
|
117623
|
+
__metadata("design:type", String)
|
|
117624
|
+
], UpdateMJScopedNotificationConfigInput.prototype, "SecondaryScopes", void 0);
|
|
117625
|
+
__decorate([
|
|
117626
|
+
Field({ nullable: true }),
|
|
117627
|
+
__metadata("design:type", String)
|
|
117628
|
+
], UpdateMJScopedNotificationConfigInput.prototype, "InApp", void 0);
|
|
117629
|
+
__decorate([
|
|
117630
|
+
Field({ nullable: true }),
|
|
117631
|
+
__metadata("design:type", String)
|
|
117632
|
+
], UpdateMJScopedNotificationConfigInput.prototype, "Email", void 0);
|
|
117633
|
+
__decorate([
|
|
117634
|
+
Field({ nullable: true }),
|
|
117635
|
+
__metadata("design:type", String)
|
|
117636
|
+
], UpdateMJScopedNotificationConfigInput.prototype, "SMS", void 0);
|
|
117637
|
+
__decorate([
|
|
117638
|
+
Field(() => Boolean, { nullable: true }),
|
|
117639
|
+
__metadata("design:type", Boolean)
|
|
117640
|
+
], UpdateMJScopedNotificationConfigInput.prototype, "IsLocked", void 0);
|
|
117641
|
+
__decorate([
|
|
117642
|
+
Field(() => Int, { nullable: true }),
|
|
117643
|
+
__metadata("design:type", Number)
|
|
117644
|
+
], UpdateMJScopedNotificationConfigInput.prototype, "Priority", void 0);
|
|
117645
|
+
__decorate([
|
|
117646
|
+
Field({ nullable: true }),
|
|
117647
|
+
__metadata("design:type", String)
|
|
117648
|
+
], UpdateMJScopedNotificationConfigInput.prototype, "Status", void 0);
|
|
117649
|
+
__decorate([
|
|
117650
|
+
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
117651
|
+
__metadata("design:type", Array)
|
|
117652
|
+
], UpdateMJScopedNotificationConfigInput.prototype, "OldValues___", void 0);
|
|
117653
|
+
__decorate([
|
|
117654
|
+
Field(() => RestoreContextInput, { nullable: true }),
|
|
117655
|
+
__metadata("design:type", RestoreContextInput)
|
|
117656
|
+
], UpdateMJScopedNotificationConfigInput.prototype, "RestoreContext___", void 0);
|
|
117657
|
+
UpdateMJScopedNotificationConfigInput = __decorate([
|
|
117658
|
+
InputType()
|
|
117659
|
+
], UpdateMJScopedNotificationConfigInput);
|
|
117660
|
+
export { UpdateMJScopedNotificationConfigInput };
|
|
117661
|
+
//****************************************************************************
|
|
117662
|
+
// RESOLVER for MJ: Scoped Notification Configs
|
|
117663
|
+
//****************************************************************************
|
|
117664
|
+
let RunMJScopedNotificationConfigViewResult = class RunMJScopedNotificationConfigViewResult {
|
|
117665
|
+
};
|
|
117666
|
+
__decorate([
|
|
117667
|
+
Field(() => [MJScopedNotificationConfig_]),
|
|
117668
|
+
__metadata("design:type", Array)
|
|
117669
|
+
], RunMJScopedNotificationConfigViewResult.prototype, "Results", void 0);
|
|
117670
|
+
__decorate([
|
|
117671
|
+
Field(() => String, { nullable: true }),
|
|
117672
|
+
__metadata("design:type", String)
|
|
117673
|
+
], RunMJScopedNotificationConfigViewResult.prototype, "UserViewRunID", void 0);
|
|
117674
|
+
__decorate([
|
|
117675
|
+
Field(() => Int, { nullable: true }),
|
|
117676
|
+
__metadata("design:type", Number)
|
|
117677
|
+
], RunMJScopedNotificationConfigViewResult.prototype, "RowCount", void 0);
|
|
117678
|
+
__decorate([
|
|
117679
|
+
Field(() => Int, { nullable: true }),
|
|
117680
|
+
__metadata("design:type", Number)
|
|
117681
|
+
], RunMJScopedNotificationConfigViewResult.prototype, "TotalRowCount", void 0);
|
|
117682
|
+
__decorate([
|
|
117683
|
+
Field(() => Int, { nullable: true }),
|
|
117684
|
+
__metadata("design:type", Number)
|
|
117685
|
+
], RunMJScopedNotificationConfigViewResult.prototype, "ExecutionTime", void 0);
|
|
117686
|
+
__decorate([
|
|
117687
|
+
Field({ nullable: true }),
|
|
117688
|
+
__metadata("design:type", String)
|
|
117689
|
+
], RunMJScopedNotificationConfigViewResult.prototype, "ErrorMessage", void 0);
|
|
117690
|
+
__decorate([
|
|
117691
|
+
Field(() => Boolean, { nullable: false }),
|
|
117692
|
+
__metadata("design:type", Boolean)
|
|
117693
|
+
], RunMJScopedNotificationConfigViewResult.prototype, "Success", void 0);
|
|
117694
|
+
RunMJScopedNotificationConfigViewResult = __decorate([
|
|
117695
|
+
ObjectType()
|
|
117696
|
+
], RunMJScopedNotificationConfigViewResult);
|
|
117697
|
+
export { RunMJScopedNotificationConfigViewResult };
|
|
117698
|
+
let MJScopedNotificationConfigResolver = class MJScopedNotificationConfigResolver extends ResolverBase {
|
|
117699
|
+
async RunMJScopedNotificationConfigViewByID(input, { providers, userPayload }, pubSub) {
|
|
117700
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
117701
|
+
return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
|
|
117702
|
+
}
|
|
117703
|
+
async RunMJScopedNotificationConfigViewByName(input, { providers, userPayload }, pubSub) {
|
|
117704
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
117705
|
+
return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
|
|
117706
|
+
}
|
|
117707
|
+
async RunMJScopedNotificationConfigDynamicView(input, { providers, userPayload }, pubSub) {
|
|
117708
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
117709
|
+
input.EntityName = 'MJ: Scoped Notification Configs';
|
|
117710
|
+
return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
|
|
117711
|
+
}
|
|
117712
|
+
async MJScopedNotificationConfig(ID, { userPayload, providers }, pubSub) {
|
|
117713
|
+
this.CheckUserReadPermissions('MJ: Scoped Notification Configs', userPayload);
|
|
117714
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
117715
|
+
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');
|
|
117716
|
+
const rows = await provider.ExecuteSQL(sSQL, [ID], undefined, this.GetUserFromPayload(userPayload));
|
|
117717
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Scoped Notification Configs', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
117718
|
+
return result;
|
|
117719
|
+
}
|
|
117720
|
+
async CreateMJScopedNotificationConfig(input, { providers, userPayload }, pubSub) {
|
|
117721
|
+
const provider = GetReadWriteProvider(providers);
|
|
117722
|
+
return this.CreateRecord('MJ: Scoped Notification Configs', input, provider, userPayload, pubSub);
|
|
117723
|
+
}
|
|
117724
|
+
async UpdateMJScopedNotificationConfig(input, { providers, userPayload }, pubSub) {
|
|
117725
|
+
const provider = GetReadWriteProvider(providers);
|
|
117726
|
+
return this.UpdateRecord('MJ: Scoped Notification Configs', input, provider, userPayload, pubSub);
|
|
117727
|
+
}
|
|
117728
|
+
async DeleteMJScopedNotificationConfig(ID, options, { providers, userPayload }, pubSub) {
|
|
117729
|
+
const provider = GetReadWriteProvider(providers);
|
|
117730
|
+
const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
|
|
117731
|
+
return this.DeleteRecord('MJ: Scoped Notification Configs', key, options, provider, userPayload, pubSub);
|
|
117732
|
+
}
|
|
117733
|
+
};
|
|
117734
|
+
__decorate([
|
|
117735
|
+
Query(() => RunMJScopedNotificationConfigViewResult),
|
|
117736
|
+
__param(0, Arg('input', () => RunViewByIDInput)),
|
|
117737
|
+
__param(1, Ctx()),
|
|
117738
|
+
__param(2, PubSub()),
|
|
117739
|
+
__metadata("design:type", Function),
|
|
117740
|
+
__metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
|
|
117741
|
+
__metadata("design:returntype", Promise)
|
|
117742
|
+
], MJScopedNotificationConfigResolver.prototype, "RunMJScopedNotificationConfigViewByID", null);
|
|
117743
|
+
__decorate([
|
|
117744
|
+
Query(() => RunMJScopedNotificationConfigViewResult),
|
|
117745
|
+
__param(0, Arg('input', () => RunViewByNameInput)),
|
|
117746
|
+
__param(1, Ctx()),
|
|
117747
|
+
__param(2, PubSub()),
|
|
117748
|
+
__metadata("design:type", Function),
|
|
117749
|
+
__metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
|
|
117750
|
+
__metadata("design:returntype", Promise)
|
|
117751
|
+
], MJScopedNotificationConfigResolver.prototype, "RunMJScopedNotificationConfigViewByName", null);
|
|
117752
|
+
__decorate([
|
|
117753
|
+
Query(() => RunMJScopedNotificationConfigViewResult),
|
|
117754
|
+
__param(0, Arg('input', () => RunDynamicViewInput)),
|
|
117755
|
+
__param(1, Ctx()),
|
|
117756
|
+
__param(2, PubSub()),
|
|
117757
|
+
__metadata("design:type", Function),
|
|
117758
|
+
__metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
|
|
117759
|
+
__metadata("design:returntype", Promise)
|
|
117760
|
+
], MJScopedNotificationConfigResolver.prototype, "RunMJScopedNotificationConfigDynamicView", null);
|
|
117761
|
+
__decorate([
|
|
117762
|
+
Query(() => MJScopedNotificationConfig_, { nullable: true }),
|
|
117763
|
+
__param(0, Arg('ID', () => String)),
|
|
117764
|
+
__param(1, Ctx()),
|
|
117765
|
+
__param(2, PubSub()),
|
|
117766
|
+
__metadata("design:type", Function),
|
|
117767
|
+
__metadata("design:paramtypes", [String, Object, PubSubEngine]),
|
|
117768
|
+
__metadata("design:returntype", Promise)
|
|
117769
|
+
], MJScopedNotificationConfigResolver.prototype, "MJScopedNotificationConfig", null);
|
|
117770
|
+
__decorate([
|
|
117771
|
+
Mutation(() => MJScopedNotificationConfig_),
|
|
117772
|
+
__param(0, Arg('input', () => CreateMJScopedNotificationConfigInput)),
|
|
117773
|
+
__param(1, Ctx()),
|
|
117774
|
+
__param(2, PubSub()),
|
|
117775
|
+
__metadata("design:type", Function),
|
|
117776
|
+
__metadata("design:paramtypes", [CreateMJScopedNotificationConfigInput, Object, PubSubEngine]),
|
|
117777
|
+
__metadata("design:returntype", Promise)
|
|
117778
|
+
], MJScopedNotificationConfigResolver.prototype, "CreateMJScopedNotificationConfig", null);
|
|
117779
|
+
__decorate([
|
|
117780
|
+
Mutation(() => MJScopedNotificationConfig_),
|
|
117781
|
+
__param(0, Arg('input', () => UpdateMJScopedNotificationConfigInput)),
|
|
117782
|
+
__param(1, Ctx()),
|
|
117783
|
+
__param(2, PubSub()),
|
|
117784
|
+
__metadata("design:type", Function),
|
|
117785
|
+
__metadata("design:paramtypes", [UpdateMJScopedNotificationConfigInput, Object, PubSubEngine]),
|
|
117786
|
+
__metadata("design:returntype", Promise)
|
|
117787
|
+
], MJScopedNotificationConfigResolver.prototype, "UpdateMJScopedNotificationConfig", null);
|
|
117788
|
+
__decorate([
|
|
117789
|
+
Mutation(() => MJScopedNotificationConfig_),
|
|
117790
|
+
__param(0, Arg('ID', () => String)),
|
|
117791
|
+
__param(1, Arg('options___', () => DeleteOptionsInput)),
|
|
117792
|
+
__param(2, Ctx()),
|
|
117793
|
+
__param(3, PubSub()),
|
|
117794
|
+
__metadata("design:type", Function),
|
|
117795
|
+
__metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
|
|
117796
|
+
__metadata("design:returntype", Promise)
|
|
117797
|
+
], MJScopedNotificationConfigResolver.prototype, "DeleteMJScopedNotificationConfig", null);
|
|
117798
|
+
MJScopedNotificationConfigResolver = __decorate([
|
|
117799
|
+
Resolver(MJScopedNotificationConfig_)
|
|
117800
|
+
], MJScopedNotificationConfigResolver);
|
|
117801
|
+
export { MJScopedNotificationConfigResolver };
|
|
117802
|
+
//****************************************************************************
|
|
117109
117803
|
// ENTITY CLASS for MJ: Scoped Prompt Configs
|
|
117110
117804
|
//****************************************************************************
|
|
117111
117805
|
let MJScopedPromptConfig_ = class MJScopedPromptConfig_ {
|
|
@@ -137156,6 +137850,10 @@ __decorate([
|
|
|
137156
137850
|
MaxLength(100),
|
|
137157
137851
|
__metadata("design:type", String)
|
|
137158
137852
|
], MJUser_.prototype, "UserImageIconClass", void 0);
|
|
137853
|
+
__decorate([
|
|
137854
|
+
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." }),
|
|
137855
|
+
__metadata("design:type", Boolean)
|
|
137856
|
+
], MJUser_.prototype, "IsTemplate", void 0);
|
|
137159
137857
|
__decorate([
|
|
137160
137858
|
Field({ nullable: true }),
|
|
137161
137859
|
MaxLength(101),
|
|
@@ -137255,6 +137953,10 @@ __decorate([
|
|
|
137255
137953
|
Field({ nullable: true }),
|
|
137256
137954
|
__metadata("design:type", String)
|
|
137257
137955
|
], CreateMJUserInput.prototype, "UserImageIconClass", void 0);
|
|
137956
|
+
__decorate([
|
|
137957
|
+
Field(() => Boolean, { nullable: true }),
|
|
137958
|
+
__metadata("design:type", Boolean)
|
|
137959
|
+
], CreateMJUserInput.prototype, "IsTemplate", void 0);
|
|
137258
137960
|
__decorate([
|
|
137259
137961
|
Field(() => RestoreContextInput, { nullable: true }),
|
|
137260
137962
|
__metadata("design:type", RestoreContextInput)
|
|
@@ -137324,6 +138026,10 @@ __decorate([
|
|
|
137324
138026
|
Field({ nullable: true }),
|
|
137325
138027
|
__metadata("design:type", String)
|
|
137326
138028
|
], UpdateMJUserInput.prototype, "UserImageIconClass", void 0);
|
|
138029
|
+
__decorate([
|
|
138030
|
+
Field(() => Boolean, { nullable: true }),
|
|
138031
|
+
__metadata("design:type", Boolean)
|
|
138032
|
+
], UpdateMJUserInput.prototype, "IsTemplate", void 0);
|
|
137327
138033
|
__decorate([
|
|
137328
138034
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
137329
138035
|
__metadata("design:type", Array)
|