@memberjunction/server 6.2.0-edge.5 → 6.2.0-edge.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (664) hide show
  1. package/README.md +96 -1
  2. package/dist/.tsbuildinfo +1 -1
  3. package/dist/agentSessions/BridgeHostInstance.d.ts +8 -3
  4. package/dist/agentSessions/BridgeHostInstance.d.ts.map +1 -1
  5. package/dist/agentSessions/BridgeHostInstance.js +14 -4
  6. package/dist/agentSessions/BridgeHostInstance.js.map +1 -1
  7. package/dist/agentSessions/HandoffOfferExpiry.d.ts +10 -0
  8. package/dist/agentSessions/HandoffOfferExpiry.d.ts.map +1 -0
  9. package/dist/agentSessions/HandoffOfferExpiry.js +18 -0
  10. package/dist/agentSessions/HandoffOfferExpiry.js.map +1 -0
  11. package/dist/agentSessions/ReturningVisitorRecap.js +1 -0
  12. package/dist/agentSessions/ReturningVisitorRecap.js.map +1 -1
  13. package/dist/agentSessions/SessionJanitor.d.ts +34 -11
  14. package/dist/agentSessions/SessionJanitor.d.ts.map +1 -1
  15. package/dist/agentSessions/SessionJanitor.js +88 -44
  16. package/dist/agentSessions/SessionJanitor.js.map +1 -1
  17. package/dist/agentSessions/SessionManager.d.ts +29 -9
  18. package/dist/agentSessions/SessionManager.d.ts.map +1 -1
  19. package/dist/agentSessions/SessionManager.js +62 -16
  20. package/dist/agentSessions/SessionManager.js.map +1 -1
  21. package/dist/agentSessions/conversationBrowsers.d.ts +61 -0
  22. package/dist/agentSessions/conversationBrowsers.d.ts.map +1 -0
  23. package/dist/agentSessions/conversationBrowsers.js +118 -0
  24. package/dist/agentSessions/conversationBrowsers.js.map +1 -0
  25. package/dist/agentSessions/sessionDeadline.d.ts +43 -0
  26. package/dist/agentSessions/sessionDeadline.d.ts.map +1 -0
  27. package/dist/agentSessions/sessionDeadline.js +68 -0
  28. package/dist/agentSessions/sessionDeadline.js.map +1 -0
  29. package/dist/auth/APIKeyScopeAuth.d.ts.map +1 -1
  30. package/dist/auth/APIKeyScopeAuth.js +5 -4
  31. package/dist/auth/APIKeyScopeAuth.js.map +1 -1
  32. package/dist/auth/AuthProviderCatalogRouter.d.ts.map +1 -1
  33. package/dist/auth/AuthProviderCatalogRouter.js +2 -0
  34. package/dist/auth/AuthProviderCatalogRouter.js.map +1 -1
  35. package/dist/auth/index.d.ts.map +1 -1
  36. package/dist/auth/index.js +51 -10
  37. package/dist/auth/index.js.map +1 -1
  38. package/dist/auth/initializeProviders.d.ts +10 -0
  39. package/dist/auth/initializeProviders.d.ts.map +1 -1
  40. package/dist/auth/initializeProviders.js +37 -1
  41. package/dist/auth/initializeProviders.js.map +1 -1
  42. package/dist/auth/localDevAuth.d.ts +79 -0
  43. package/dist/auth/localDevAuth.d.ts.map +1 -0
  44. package/dist/auth/localDevAuth.js +439 -0
  45. package/dist/auth/localDevAuth.js.map +1 -0
  46. package/dist/auth/loginEmailResolution.d.ts +41 -0
  47. package/dist/auth/loginEmailResolution.d.ts.map +1 -0
  48. package/dist/auth/loginEmailResolution.js +47 -0
  49. package/dist/auth/loginEmailResolution.js.map +1 -0
  50. package/dist/auth/magicLink/MagicLinkKeys.d.ts +51 -3
  51. package/dist/auth/magicLink/MagicLinkKeys.d.ts.map +1 -1
  52. package/dist/auth/magicLink/MagicLinkKeys.js +130 -13
  53. package/dist/auth/magicLink/MagicLinkKeys.js.map +1 -1
  54. package/dist/auth/magicLink/MagicLinkRouter.d.ts +3 -0
  55. package/dist/auth/magicLink/MagicLinkRouter.d.ts.map +1 -1
  56. package/dist/auth/magicLink/MagicLinkRouter.js +23 -5
  57. package/dist/auth/magicLink/MagicLinkRouter.js.map +1 -1
  58. package/dist/auth/magicLink/MagicLinkService.d.ts +39 -5
  59. package/dist/auth/magicLink/MagicLinkService.d.ts.map +1 -1
  60. package/dist/auth/magicLink/MagicLinkService.js +221 -9
  61. package/dist/auth/magicLink/MagicLinkService.js.map +1 -1
  62. package/dist/auth/magicLink/index.d.ts +1 -1
  63. package/dist/auth/magicLink/index.d.ts.map +1 -1
  64. package/dist/auth/magicLink/index.js +1 -1
  65. package/dist/auth/magicLink/index.js.map +1 -1
  66. package/dist/auth/magicLink/redeemLanding.d.ts +2 -2
  67. package/dist/auth/magicLink/redeemLanding.d.ts.map +1 -1
  68. package/dist/auth/magicLink/redeemLanding.js +7 -4
  69. package/dist/auth/magicLink/redeemLanding.js.map +1 -1
  70. package/dist/auth/magicLink/types.d.ts +39 -3
  71. package/dist/auth/magicLink/types.d.ts.map +1 -1
  72. package/dist/auth/magicLink/types.js +0 -4
  73. package/dist/auth/magicLink/types.js.map +1 -1
  74. package/dist/auth/newUsers.d.ts.map +1 -1
  75. package/dist/auth/newUsers.js +1 -0
  76. package/dist/auth/newUsers.js.map +1 -1
  77. package/dist/auth/sessionUserClone.d.ts +1 -1
  78. package/dist/auth/sessionUserClone.d.ts.map +1 -1
  79. package/dist/auth/sessionUserClone.js +3 -2
  80. package/dist/auth/sessionUserClone.js.map +1 -1
  81. package/dist/backgroundSweepConfigUnits.d.ts +231 -0
  82. package/dist/backgroundSweepConfigUnits.d.ts.map +1 -0
  83. package/dist/backgroundSweepConfigUnits.js +180 -0
  84. package/dist/backgroundSweepConfigUnits.js.map +1 -0
  85. package/dist/broadcast/BaseCacheInvalidationBroadcastProvider.d.ts +292 -0
  86. package/dist/broadcast/BaseCacheInvalidationBroadcastProvider.d.ts.map +1 -0
  87. package/dist/broadcast/BaseCacheInvalidationBroadcastProvider.js +442 -0
  88. package/dist/broadcast/BaseCacheInvalidationBroadcastProvider.js.map +1 -0
  89. package/dist/broadcast/index.d.ts +6 -0
  90. package/dist/broadcast/index.d.ts.map +1 -0
  91. package/dist/broadcast/index.js +6 -0
  92. package/dist/broadcast/index.js.map +1 -0
  93. package/dist/broadcast/providers/AWSIoTCoreBroadcastProvider.d.ts +43 -0
  94. package/dist/broadcast/providers/AWSIoTCoreBroadcastProvider.d.ts.map +1 -0
  95. package/dist/broadcast/providers/AWSIoTCoreBroadcastProvider.js +144 -0
  96. package/dist/broadcast/providers/AWSIoTCoreBroadcastProvider.js.map +1 -0
  97. package/dist/broadcast/providers/AzureWebPubSubBroadcastProvider.d.ts +46 -0
  98. package/dist/broadcast/providers/AzureWebPubSubBroadcastProvider.d.ts.map +1 -0
  99. package/dist/broadcast/providers/AzureWebPubSubBroadcastProvider.js +149 -0
  100. package/dist/broadcast/providers/AzureWebPubSubBroadcastProvider.js.map +1 -0
  101. package/dist/broadcast/providers/GCPPubSubBroadcastProvider.d.ts +49 -0
  102. package/dist/broadcast/providers/GCPPubSubBroadcastProvider.d.ts.map +1 -0
  103. package/dist/broadcast/providers/GCPPubSubBroadcastProvider.js +131 -0
  104. package/dist/broadcast/providers/GCPPubSubBroadcastProvider.js.map +1 -0
  105. package/dist/broadcast/providers/SequencedRoleBucketBroadcastProvider.d.ts +24 -0
  106. package/dist/broadcast/providers/SequencedRoleBucketBroadcastProvider.d.ts.map +1 -0
  107. package/dist/broadcast/providers/SequencedRoleBucketBroadcastProvider.js +51 -0
  108. package/dist/broadcast/providers/SequencedRoleBucketBroadcastProvider.js.map +1 -0
  109. package/dist/cache.d.ts +3 -2
  110. package/dist/cache.d.ts.map +1 -1
  111. package/dist/cache.js.map +1 -1
  112. package/dist/config.d.ts +1402 -8
  113. package/dist/config.d.ts.map +1 -1
  114. package/dist/config.js +120 -0
  115. package/dist/config.js.map +1 -1
  116. package/dist/context.d.ts +5 -1
  117. package/dist/context.d.ts.map +1 -1
  118. package/dist/context.js +64 -12
  119. package/dist/context.js.map +1 -1
  120. package/dist/coreRoutes.d.ts +3 -1
  121. package/dist/coreRoutes.d.ts.map +1 -1
  122. package/dist/coreRoutes.js +20 -4
  123. package/dist/coreRoutes.js.map +1 -1
  124. package/dist/generated/graphql-schemas/__mj.d.ts +863 -14
  125. package/dist/generated/graphql-schemas/__mj.d.ts.map +1 -1
  126. package/dist/generated/graphql-schemas/__mj.js +4167 -62
  127. package/dist/generated/graphql-schemas/__mj.js.map +1 -1
  128. package/dist/generic/CacheInvalidationResolver.d.ts +50 -30
  129. package/dist/generic/CacheInvalidationResolver.d.ts.map +1 -1
  130. package/dist/generic/CacheInvalidationResolver.js +154 -79
  131. package/dist/generic/CacheInvalidationResolver.js.map +1 -1
  132. package/dist/generic/OrphanedConversationDetailReconciler.d.ts +11 -0
  133. package/dist/generic/OrphanedConversationDetailReconciler.d.ts.map +1 -1
  134. package/dist/generic/OrphanedConversationDetailReconciler.js +29 -1
  135. package/dist/generic/OrphanedConversationDetailReconciler.js.map +1 -1
  136. package/dist/generic/PubSubManager.d.ts +10 -0
  137. package/dist/generic/PubSubManager.d.ts.map +1 -1
  138. package/dist/generic/PubSubManager.js +44 -1
  139. package/dist/generic/PubSubManager.js.map +1 -1
  140. package/dist/generic/PushStatusResolver.d.ts +39 -6
  141. package/dist/generic/PushStatusResolver.d.ts.map +1 -1
  142. package/dist/generic/PushStatusResolver.js +93 -11
  143. package/dist/generic/PushStatusResolver.js.map +1 -1
  144. package/dist/generic/ResolverBase.d.ts +114 -29
  145. package/dist/generic/ResolverBase.d.ts.map +1 -1
  146. package/dist/generic/ResolverBase.js +509 -220
  147. package/dist/generic/ResolverBase.js.map +1 -1
  148. package/dist/generic/RunViewResolver.d.ts +15 -3
  149. package/dist/generic/RunViewResolver.d.ts.map +1 -1
  150. package/dist/generic/RunViewResolver.js +126 -20
  151. package/dist/generic/RunViewResolver.js.map +1 -1
  152. package/dist/generic/actionOutputFieldSecurity.d.ts +26 -0
  153. package/dist/generic/actionOutputFieldSecurity.d.ts.map +1 -0
  154. package/dist/generic/actionOutputFieldSecurity.js +47 -0
  155. package/dist/generic/actionOutputFieldSecurity.js.map +1 -0
  156. package/dist/generic/fieldSecurityTransport.d.ts +30 -0
  157. package/dist/generic/fieldSecurityTransport.d.ts.map +1 -0
  158. package/dist/generic/fieldSecurityTransport.js +30 -0
  159. package/dist/generic/fieldSecurityTransport.js.map +1 -0
  160. package/dist/index.d.ts +4 -0
  161. package/dist/index.d.ts.map +1 -1
  162. package/dist/index.js +262 -84
  163. package/dist/index.js.map +1 -1
  164. package/dist/integration/ConnectionPause.d.ts +121 -0
  165. package/dist/integration/ConnectionPause.d.ts.map +1 -0
  166. package/dist/integration/ConnectionPause.js +183 -0
  167. package/dist/integration/ConnectionPause.js.map +1 -0
  168. package/dist/integration/CustomColumnPromoter.d.ts +72 -6
  169. package/dist/integration/CustomColumnPromoter.d.ts.map +1 -1
  170. package/dist/integration/CustomColumnPromoter.js +93 -47
  171. package/dist/integration/CustomColumnPromoter.js.map +1 -1
  172. package/dist/integration/EntityMapLifecycle.d.ts +78 -4
  173. package/dist/integration/EntityMapLifecycle.d.ts.map +1 -1
  174. package/dist/integration/EntityMapLifecycle.js +199 -5
  175. package/dist/integration/EntityMapLifecycle.js.map +1 -1
  176. package/dist/integration/InactiveRowWarnings.d.ts +31 -0
  177. package/dist/integration/InactiveRowWarnings.d.ts.map +1 -1
  178. package/dist/integration/InactiveRowWarnings.js +29 -0
  179. package/dist/integration/InactiveRowWarnings.js.map +1 -1
  180. package/dist/integration/ObjectNamesByID.d.ts +28 -0
  181. package/dist/integration/ObjectNamesByID.d.ts.map +1 -0
  182. package/dist/integration/ObjectNamesByID.js +87 -0
  183. package/dist/integration/ObjectNamesByID.js.map +1 -0
  184. package/dist/integration/PostRestartIntrospect.d.ts +26 -0
  185. package/dist/integration/PostRestartIntrospect.d.ts.map +1 -0
  186. package/dist/integration/PostRestartIntrospect.js +27 -0
  187. package/dist/integration/PostRestartIntrospect.js.map +1 -0
  188. package/dist/integration/RSUPostRestartProgress.d.ts +176 -0
  189. package/dist/integration/RSUPostRestartProgress.d.ts.map +1 -0
  190. package/dist/integration/RSUPostRestartProgress.js +323 -0
  191. package/dist/integration/RSUPostRestartProgress.js.map +1 -0
  192. package/dist/integration/RSUProgressBridge.d.ts +41 -2
  193. package/dist/integration/RSUProgressBridge.d.ts.map +1 -1
  194. package/dist/integration/RSUProgressBridge.js +84 -1
  195. package/dist/integration/RSUProgressBridge.js.map +1 -1
  196. package/dist/integration/RunArtifactAuthorization.d.ts +39 -0
  197. package/dist/integration/RunArtifactAuthorization.d.ts.map +1 -0
  198. package/dist/integration/RunArtifactAuthorization.js +45 -0
  199. package/dist/integration/RunArtifactAuthorization.js.map +1 -0
  200. package/dist/integration/SchemaRefreshLaunch.d.ts +9 -0
  201. package/dist/integration/SchemaRefreshLaunch.d.ts.map +1 -1
  202. package/dist/integration/SchemaRefreshLaunch.js +3 -2
  203. package/dist/integration/SchemaRefreshLaunch.js.map +1 -1
  204. package/dist/integration/ScopedFieldsForBuild.d.ts +46 -0
  205. package/dist/integration/ScopedFieldsForBuild.d.ts.map +1 -0
  206. package/dist/integration/ScopedFieldsForBuild.js +91 -0
  207. package/dist/integration/ScopedFieldsForBuild.js.map +1 -0
  208. package/dist/integration/TargetConfigGuard.d.ts +40 -0
  209. package/dist/integration/TargetConfigGuard.d.ts.map +1 -0
  210. package/dist/integration/TargetConfigGuard.js +40 -0
  211. package/dist/integration/TargetConfigGuard.js.map +1 -0
  212. package/dist/logging/variablesLoggingMiddleware.d.ts +12 -0
  213. package/dist/logging/variablesLoggingMiddleware.d.ts.map +1 -1
  214. package/dist/logging/variablesLoggingMiddleware.js +50 -1
  215. package/dist/logging/variablesLoggingMiddleware.js.map +1 -1
  216. package/dist/realtimeSessions/SessionVerificationPortsBase.d.ts.map +1 -1
  217. package/dist/realtimeSessions/SessionVerificationPortsBase.js +1 -0
  218. package/dist/realtimeSessions/SessionVerificationPortsBase.js.map +1 -1
  219. package/dist/realtimeSessions/ownedRealtimeSession.d.ts +8 -6
  220. package/dist/realtimeSessions/ownedRealtimeSession.d.ts.map +1 -1
  221. package/dist/realtimeSessions/ownedRealtimeSession.js +14 -6
  222. package/dist/realtimeSessions/ownedRealtimeSession.js.map +1 -1
  223. package/dist/realtimeSessions/sessionAccess.d.ts +103 -11
  224. package/dist/realtimeSessions/sessionAccess.d.ts.map +1 -1
  225. package/dist/realtimeSessions/sessionAccess.js +147 -22
  226. package/dist/realtimeSessions/sessionAccess.js.map +1 -1
  227. package/dist/realtimeSessions/sessionConfigStamps.js +1 -1
  228. package/dist/realtimeSessions/sessionConfigStamps.js.map +1 -1
  229. package/dist/realtimeSessions/subscriptionAuthorization.d.ts.map +1 -1
  230. package/dist/realtimeSessions/subscriptionAuthorization.js +5 -2
  231. package/dist/realtimeSessions/subscriptionAuthorization.js.map +1 -1
  232. package/dist/realtimeSessions/verificationWorkflow.d.ts +2 -0
  233. package/dist/realtimeSessions/verificationWorkflow.d.ts.map +1 -1
  234. package/dist/realtimeSessions/verificationWorkflow.js +1 -1
  235. package/dist/realtimeSessions/verificationWorkflow.js.map +1 -1
  236. package/dist/realtimeWidget/WidgetRouter.d.ts.map +1 -1
  237. package/dist/realtimeWidget/WidgetRouter.js +19 -3
  238. package/dist/realtimeWidget/WidgetRouter.js.map +1 -1
  239. package/dist/realtimeWidget/WidgetSessionService.d.ts +67 -7
  240. package/dist/realtimeWidget/WidgetSessionService.d.ts.map +1 -1
  241. package/dist/realtimeWidget/WidgetSessionService.js +203 -19
  242. package/dist/realtimeWidget/WidgetSessionService.js.map +1 -1
  243. package/dist/realtimeWidget/host-identity.d.ts +1 -1
  244. package/dist/realtimeWidget/host-identity.js +1 -1
  245. package/dist/realtimeWidget/visitorIdentity.d.ts.map +1 -1
  246. package/dist/realtimeWidget/visitorIdentity.js +1 -0
  247. package/dist/realtimeWidget/visitorIdentity.js.map +1 -1
  248. package/dist/realtimeWidget/widgetCore.d.ts +20 -1
  249. package/dist/realtimeWidget/widgetCore.d.ts.map +1 -1
  250. package/dist/realtimeWidget/widgetCore.js +21 -8
  251. package/dist/realtimeWidget/widgetCore.js.map +1 -1
  252. package/dist/realtimeWidget/widgetGuestElevation.d.ts +1 -1
  253. package/dist/realtimeWidget/widgetGuestElevation.d.ts.map +1 -1
  254. package/dist/realtimeWidget/widgetGuestElevation.js +3 -1
  255. package/dist/realtimeWidget/widgetGuestElevation.js.map +1 -1
  256. package/dist/requestOrigin.d.ts +22 -0
  257. package/dist/requestOrigin.d.ts.map +1 -0
  258. package/dist/requestOrigin.js +60 -0
  259. package/dist/requestOrigin.js.map +1 -0
  260. package/dist/resolvers/ActionResolver.d.ts +19 -1
  261. package/dist/resolvers/ActionResolver.d.ts.map +1 -1
  262. package/dist/resolvers/ActionResolver.js +63 -12
  263. package/dist/resolvers/ActionResolver.js.map +1 -1
  264. package/dist/resolvers/AdhocQueryResolver.d.ts.map +1 -1
  265. package/dist/resolvers/AdhocQueryResolver.js +1 -0
  266. package/dist/resolvers/AdhocQueryResolver.js.map +1 -1
  267. package/dist/resolvers/AgentRunStatusPublisher.d.ts +18 -4
  268. package/dist/resolvers/AgentRunStatusPublisher.d.ts.map +1 -1
  269. package/dist/resolvers/AgentRunStatusPublisher.js +32 -8
  270. package/dist/resolvers/AgentRunStatusPublisher.js.map +1 -1
  271. package/dist/resolvers/AgentSessionResolver.d.ts +10 -4
  272. package/dist/resolvers/AgentSessionResolver.d.ts.map +1 -1
  273. package/dist/resolvers/AgentSessionResolver.js +44 -17
  274. package/dist/resolvers/AgentSessionResolver.js.map +1 -1
  275. package/dist/resolvers/AutotagPipelineResolver.d.ts.map +1 -1
  276. package/dist/resolvers/AutotagPipelineResolver.js +2 -1
  277. package/dist/resolvers/AutotagPipelineResolver.js.map +1 -1
  278. package/dist/resolvers/ConversationRunEventsResolver.d.ts.map +1 -1
  279. package/dist/resolvers/ConversationRunEventsResolver.js +2 -0
  280. package/dist/resolvers/ConversationRunEventsResolver.js.map +1 -1
  281. package/dist/resolvers/EntityCommunicationsResolver.d.ts +13 -1
  282. package/dist/resolvers/EntityCommunicationsResolver.d.ts.map +1 -1
  283. package/dist/resolvers/EntityCommunicationsResolver.js +50 -14
  284. package/dist/resolvers/EntityCommunicationsResolver.js.map +1 -1
  285. package/dist/resolvers/ExecuteRemoteOperationResolver.d.ts +6 -0
  286. package/dist/resolvers/ExecuteRemoteOperationResolver.d.ts.map +1 -1
  287. package/dist/resolvers/ExecuteRemoteOperationResolver.js +30 -7
  288. package/dist/resolvers/ExecuteRemoteOperationResolver.js.map +1 -1
  289. package/dist/resolvers/FetchEntityVectorsResolver.d.ts +28 -0
  290. package/dist/resolvers/FetchEntityVectorsResolver.d.ts.map +1 -1
  291. package/dist/resolvers/FetchEntityVectorsResolver.js +117 -21
  292. package/dist/resolvers/FetchEntityVectorsResolver.js.map +1 -1
  293. package/dist/resolvers/FileCategoryResolver.d.ts.map +1 -1
  294. package/dist/resolvers/FileCategoryResolver.js +1 -0
  295. package/dist/resolvers/FileCategoryResolver.js.map +1 -1
  296. package/dist/resolvers/FileResolver.d.ts +5 -0
  297. package/dist/resolvers/FileResolver.d.ts.map +1 -1
  298. package/dist/resolvers/FileResolver.js +13 -4
  299. package/dist/resolvers/FileResolver.js.map +1 -1
  300. package/dist/resolvers/GetDataResolver.d.ts.map +1 -1
  301. package/dist/resolvers/GetDataResolver.js +34 -13
  302. package/dist/resolvers/GetDataResolver.js.map +1 -1
  303. package/dist/resolvers/IntegrationDiscoveryResolver.d.ts +401 -11
  304. package/dist/resolvers/IntegrationDiscoveryResolver.d.ts.map +1 -1
  305. package/dist/resolvers/IntegrationDiscoveryResolver.js +2713 -1290
  306. package/dist/resolvers/IntegrationDiscoveryResolver.js.map +1 -1
  307. package/dist/resolvers/MCPResolver.d.ts.map +1 -1
  308. package/dist/resolvers/MCPResolver.js +13 -2
  309. package/dist/resolvers/MCPResolver.js.map +1 -1
  310. package/dist/resolvers/MergeRecordsResolver.d.ts +8 -1
  311. package/dist/resolvers/MergeRecordsResolver.d.ts.map +1 -1
  312. package/dist/resolvers/MergeRecordsResolver.js +31 -3
  313. package/dist/resolvers/MergeRecordsResolver.js.map +1 -1
  314. package/dist/resolvers/PipelineProgressResolver.d.ts +6 -0
  315. package/dist/resolvers/PipelineProgressResolver.d.ts.map +1 -1
  316. package/dist/resolvers/PipelineProgressResolver.js +5 -3
  317. package/dist/resolvers/PipelineProgressResolver.js.map +1 -1
  318. package/dist/resolvers/QueryResolver.d.ts.map +1 -1
  319. package/dist/resolvers/QueryResolver.js +20 -6
  320. package/dist/resolvers/QueryResolver.js.map +1 -1
  321. package/dist/resolvers/QuerySystemUserResolver.d.ts +38 -0
  322. package/dist/resolvers/QuerySystemUserResolver.d.ts.map +1 -1
  323. package/dist/resolvers/QuerySystemUserResolver.js +184 -88
  324. package/dist/resolvers/QuerySystemUserResolver.js.map +1 -1
  325. package/dist/resolvers/RSUResolver.d.ts.map +1 -1
  326. package/dist/resolvers/RSUResolver.js +12 -0
  327. package/dist/resolvers/RSUResolver.js.map +1 -1
  328. package/dist/resolvers/RealtimeBridgeResolver.d.ts.map +1 -1
  329. package/dist/resolvers/RealtimeBridgeResolver.js +1 -0
  330. package/dist/resolvers/RealtimeBridgeResolver.js.map +1 -1
  331. package/dist/resolvers/RealtimeClientSessionResolver.d.ts +22 -2
  332. package/dist/resolvers/RealtimeClientSessionResolver.d.ts.map +1 -1
  333. package/dist/resolvers/RealtimeClientSessionResolver.js +118 -33
  334. package/dist/resolvers/RealtimeClientSessionResolver.js.map +1 -1
  335. package/dist/resolvers/RemoteBrowserActionResolver.d.ts +62 -10
  336. package/dist/resolvers/RemoteBrowserActionResolver.d.ts.map +1 -1
  337. package/dist/resolvers/RemoteBrowserActionResolver.js +224 -39
  338. package/dist/resolvers/RemoteBrowserActionResolver.js.map +1 -1
  339. package/dist/resolvers/RunAIAgentResolver.d.ts +80 -16
  340. package/dist/resolvers/RunAIAgentResolver.d.ts.map +1 -1
  341. package/dist/resolvers/RunAIAgentResolver.js +388 -125
  342. package/dist/resolvers/RunAIAgentResolver.js.map +1 -1
  343. package/dist/resolvers/RunAIPromptResolver.d.ts +5 -3
  344. package/dist/resolvers/RunAIPromptResolver.d.ts.map +1 -1
  345. package/dist/resolvers/RunAIPromptResolver.js +19 -18
  346. package/dist/resolvers/RunAIPromptResolver.js.map +1 -1
  347. package/dist/resolvers/RunTemplateResolver.d.ts.map +1 -1
  348. package/dist/resolvers/RunTemplateResolver.js +7 -5
  349. package/dist/resolvers/RunTemplateResolver.js.map +1 -1
  350. package/dist/resolvers/RunTestResolver.d.ts.map +1 -1
  351. package/dist/resolvers/RunTestResolver.js +3 -1
  352. package/dist/resolvers/RunTestResolver.js.map +1 -1
  353. package/dist/resolvers/SyncDataResolver.d.ts.map +1 -1
  354. package/dist/resolvers/SyncDataResolver.js +4 -0
  355. package/dist/resolvers/SyncDataResolver.js.map +1 -1
  356. package/dist/resolvers/TestQuerySQLResolver.d.ts.map +1 -1
  357. package/dist/resolvers/TestQuerySQLResolver.js +1 -0
  358. package/dist/resolvers/TestQuerySQLResolver.js.map +1 -1
  359. package/dist/resolvers/TransactionGroupResolver.d.ts +17 -2
  360. package/dist/resolvers/TransactionGroupResolver.d.ts.map +1 -1
  361. package/dist/resolvers/TransactionGroupResolver.js +60 -15
  362. package/dist/resolvers/TransactionGroupResolver.js.map +1 -1
  363. package/dist/resolvers/UserViewResolver.d.ts +1 -1
  364. package/dist/resolvers/UserViewResolver.d.ts.map +1 -1
  365. package/dist/resolvers/UserViewResolver.js +2 -1
  366. package/dist/resolvers/UserViewResolver.js.map +1 -1
  367. package/dist/resolvers/meetingRecordingRegistration.d.ts.map +1 -1
  368. package/dist/resolvers/meetingRecordingRegistration.js +2 -0
  369. package/dist/resolvers/meetingRecordingRegistration.js.map +1 -1
  370. package/dist/rest/EntityCRUDHandler.d.ts +6 -0
  371. package/dist/rest/EntityCRUDHandler.d.ts.map +1 -1
  372. package/dist/rest/EntityCRUDHandler.js +19 -5
  373. package/dist/rest/EntityCRUDHandler.js.map +1 -1
  374. package/dist/rest/MediaAccessKeys.d.ts.map +1 -1
  375. package/dist/rest/MediaAccessKeys.js +6 -2
  376. package/dist/rest/MediaAccessKeys.js.map +1 -1
  377. package/dist/rest/OAuthCallbackHandler.d.ts.map +1 -1
  378. package/dist/rest/OAuthCallbackHandler.js +11 -5
  379. package/dist/rest/OAuthCallbackHandler.js.map +1 -1
  380. package/dist/rest/RESTEndpointHandler.d.ts.map +1 -1
  381. package/dist/rest/RESTEndpointHandler.js +8 -5
  382. package/dist/rest/RESTEndpointHandler.js.map +1 -1
  383. package/dist/rest/RealtimeRecordingHandler.d.ts +3 -3
  384. package/dist/rest/RealtimeRecordingHandler.d.ts.map +1 -1
  385. package/dist/rest/RealtimeRecordingHandler.js +6 -8
  386. package/dist/rest/RealtimeRecordingHandler.js.map +1 -1
  387. package/dist/rest/ViewOperationsHandler.d.ts +6 -0
  388. package/dist/rest/ViewOperationsHandler.d.ts.map +1 -1
  389. package/dist/rest/ViewOperationsHandler.js +24 -6
  390. package/dist/rest/ViewOperationsHandler.js.map +1 -1
  391. package/dist/rest/setupRESTEndpoints.d.ts +3 -1
  392. package/dist/rest/setupRESTEndpoints.d.ts.map +1 -1
  393. package/dist/rest/setupRESTEndpoints.js +11 -2
  394. package/dist/rest/setupRESTEndpoints.js.map +1 -1
  395. package/dist/serverRoleConfigUnits.d.ts +29 -0
  396. package/dist/serverRoleConfigUnits.d.ts.map +1 -0
  397. package/dist/serverRoleConfigUnits.js +33 -0
  398. package/dist/serverRoleConfigUnits.js.map +1 -0
  399. package/dist/services/DurableEntityActionTaskSubmitter.d.ts.map +1 -1
  400. package/dist/services/DurableEntityActionTaskSubmitter.js +6 -1
  401. package/dist/services/DurableEntityActionTaskSubmitter.js.map +1 -1
  402. package/dist/services/TaskGraphActionRunner.d.ts.map +1 -1
  403. package/dist/services/TaskGraphActionRunner.js +2 -26
  404. package/dist/services/TaskGraphActionRunner.js.map +1 -1
  405. package/dist/services/TaskGraphAgentRunner.d.ts +6 -0
  406. package/dist/services/TaskGraphAgentRunner.d.ts.map +1 -1
  407. package/dist/services/TaskGraphAgentRunner.js +38 -0
  408. package/dist/services/TaskGraphAgentRunner.js.map +1 -1
  409. package/dist/services/TaskGraphContinuationDeliverer.d.ts +5 -0
  410. package/dist/services/TaskGraphContinuationDeliverer.d.ts.map +1 -1
  411. package/dist/services/TaskGraphContinuationDeliverer.js +43 -15
  412. package/dist/services/TaskGraphContinuationDeliverer.js.map +1 -1
  413. package/dist/services/WorkQueueHostService.d.ts +2 -1
  414. package/dist/services/WorkQueueHostService.d.ts.map +1 -1
  415. package/dist/services/WorkQueueHostService.js +19 -4
  416. package/dist/services/WorkQueueHostService.js.map +1 -1
  417. package/dist/services/workQueueConfig.d.ts +2 -2
  418. package/dist/services/workQueueConfig.js +5 -5
  419. package/dist/services/workQueueConfig.js.map +1 -1
  420. package/dist/sharedCache.js +1 -1
  421. package/dist/sharedCache.js.map +1 -1
  422. package/dist/types.d.ts +40 -1
  423. package/dist/types.d.ts.map +1 -1
  424. package/dist/types.js.map +1 -1
  425. package/package.json +98 -98
  426. package/src/__tests__/APIKeyScopeAuth.test.ts +4 -8
  427. package/src/__tests__/ActionResolver.fieldSecurity.test.ts +237 -0
  428. package/src/__tests__/ActiveOperations.test.ts +68 -0
  429. package/src/__tests__/AdhocQueryResolver.dialect.test.ts +137 -0
  430. package/src/__tests__/AgentRunStatusPublisher.test.ts +49 -0
  431. package/src/__tests__/AgentSessionResolver.ownership.test.ts +150 -0
  432. package/src/__tests__/AssertTargetConfigs.test.ts +75 -0
  433. package/src/__tests__/BatchApplyParity.test.ts +109 -0
  434. package/src/__tests__/BridgeHostInstance.test.ts +42 -0
  435. package/src/__tests__/CollectInactiveRowWarnings.test.ts +115 -0
  436. package/src/__tests__/ConnectionPause.test.ts +192 -0
  437. package/src/__tests__/ConnectionPauseResolver.test.ts +166 -0
  438. package/src/__tests__/ConnectionPauseSave.test.ts +143 -0
  439. package/src/__tests__/CustomColumnPromoterCompletion.test.ts +142 -0
  440. package/src/__tests__/CustomColumnPromoterOnePass.test.ts +15 -1
  441. package/src/__tests__/DeleteConnectionRemovesPerConnectionCatalog.test.ts +51 -0
  442. package/src/__tests__/DetachedDiscoveryStart.test.ts +65 -0
  443. package/src/__tests__/DurableEntityActionTaskSubmitter.test.ts +73 -0
  444. package/src/__tests__/EntityCommunicationsResolver.actingUser.test.ts +151 -0
  445. package/src/__tests__/EntityMapLifecycle.rekey.test.ts +252 -0
  446. package/src/__tests__/EvolutionActsOnWhatItDetects.test.ts +113 -0
  447. package/src/__tests__/ExecuteRemoteOperationResolver.test.ts +213 -0
  448. package/src/__tests__/FetchEntityVectorsResolver.test.ts +206 -3
  449. package/src/__tests__/FileResolver.fieldSecurity.test.ts +82 -0
  450. package/src/__tests__/HandoffOfferExpiry.test.ts +40 -0
  451. package/src/__tests__/IntegrationRunArtifactAuthorization.test.ts +126 -0
  452. package/src/__tests__/MagicLinkKeys.test.ts +102 -0
  453. package/src/__tests__/MediaAccessKeys.test.ts +57 -10
  454. package/src/__tests__/NewArrivalsDefaultDisabled.test.ts +50 -0
  455. package/src/__tests__/ObjectNamesByID.test.ts +176 -0
  456. package/src/__tests__/PipelineProgressResolver.filter.test.ts +58 -0
  457. package/src/__tests__/PostRestartMapsInCatalogScope.test.ts +146 -0
  458. package/src/__tests__/QuerySystemUserResolver.childRows.test.ts +80 -0
  459. package/src/__tests__/QuerySystemUserResolver.collision.test.ts +200 -0
  460. package/src/__tests__/QuerySystemUserResolver.fieldSecurity.test.ts +49 -0
  461. package/src/__tests__/QuerySystemUserResolver.permissions.test.ts +132 -0
  462. package/src/__tests__/RESTEndpointHandler.test.ts +25 -0
  463. package/src/__tests__/RSUPostRestartProgress.test.ts +343 -0
  464. package/src/__tests__/RSUProgressBridge.test.ts +188 -5
  465. package/src/__tests__/RSUStartupSweepWiring.test.ts +30 -0
  466. package/src/__tests__/ReactivateRefreshMessage.test.ts +10 -3
  467. package/src/__tests__/RealtimeClientSessionResolver.configTamper.test.ts +23 -3
  468. package/src/__tests__/RealtimeClientSessionResolver.test.ts +346 -46
  469. package/src/__tests__/{RefreshAdoptsNewColumns.test.ts → RefreshReportsNewColumns.test.ts} +25 -16
  470. package/src/__tests__/RemoteBrowserActionRecovery.test.ts +287 -0
  471. package/src/__tests__/RemoteBrowserActionResolver.goalRunLink.test.ts +3 -0
  472. package/src/__tests__/RemoteBrowserActionResolver.ownership.test.ts +100 -0
  473. package/src/__tests__/RemoteBrowserAudioStream.test.ts +3 -0
  474. package/src/__tests__/RemoteBrowserSnapshot.test.ts +3 -0
  475. package/src/__tests__/ResolverBase.clientOldValues.test.ts +344 -14
  476. package/src/__tests__/ResolverBase.deleteReturnProjection.test.ts +52 -0
  477. package/src/__tests__/ResolverBase.encryptedApiZeroReencrypt.test.ts +307 -0
  478. package/src/__tests__/ResolverBase.entityMessageRelay.test.ts +227 -0
  479. package/src/__tests__/ResolverBase.includeBinaryFields.test.ts +83 -1
  480. package/src/__tests__/ResolverBase.publishStatusUpdate.test.ts +68 -0
  481. package/src/__tests__/ResolverBase.userViewCacheAndDedup.test.ts +130 -0
  482. package/src/__tests__/RunAIAgentResolver.branch.test.ts +72 -13
  483. package/src/__tests__/RunAIAgentResolver.consultPredecessor.test.ts +289 -0
  484. package/src/__tests__/RunAIAgentResolver.conversationWriter.test.ts +210 -0
  485. package/src/__tests__/RunAIAgentResolver.fireAndForgetCompletion.test.ts +209 -0
  486. package/src/__tests__/RunAIAgentResolver.handoff.test.ts +649 -0
  487. package/src/__tests__/RunAIAgentResolver.historyFrom.test.ts +19 -27
  488. package/src/__tests__/RunAIAgentResolver.runDataGuard.test.ts +10 -2
  489. package/src/__tests__/RunAIAgentResolver.serverReply.test.ts +358 -0
  490. package/src/__tests__/RunAIAgentResolver.stoppedPredecessor.test.ts +91 -13
  491. package/src/__tests__/RunTemplateResolver.test.ts +35 -2
  492. package/src/__tests__/RunViewResolver.cacheCheckForwarding.test.ts +11 -0
  493. package/src/__tests__/SchemaEvolutionCustomColumns.test.ts +119 -0
  494. package/src/__tests__/SchemaRefreshLaunch.test.ts +24 -2
  495. package/src/__tests__/ScopedFieldsForBuild.test.ts +192 -0
  496. package/src/__tests__/SessionJanitor.test.ts +195 -4
  497. package/src/__tests__/SessionManager.test.ts +164 -0
  498. package/src/__tests__/TaskGraphActionRunner.durablePayload.test.ts +2 -2
  499. package/src/__tests__/TaskGraphAgentRunner.test.ts +272 -16
  500. package/src/__tests__/TaskGraphContinuationDeliverer.test.ts +114 -3
  501. package/src/__tests__/TransactionGroupResolver.fieldSecurity.test.ts +199 -0
  502. package/src/__tests__/UserViewResolver.updateWhereClause.test.ts +15 -0
  503. package/src/__tests__/ViewOperationsHandler.test.ts +9 -7
  504. package/src/__tests__/WidgetSessionService.test.ts +583 -4
  505. package/src/__tests__/WorkQueueHostService.test.ts +25 -7
  506. package/src/__tests__/apiRootBoot.test.ts +1 -1
  507. package/src/__tests__/backgroundSweepConfigUnits.test.ts +153 -0
  508. package/src/__tests__/buildMagicLinkSessionUser.test.ts +96 -0
  509. package/src/__tests__/cacheBroadcastProviders.test.ts +403 -0
  510. package/src/__tests__/cacheInvalidationRecordData.test.ts +45 -0
  511. package/src/__tests__/contextRequestOrigin.test.ts +105 -0
  512. package/src/__tests__/conversationBrowsers.test.ts +62 -0
  513. package/src/__tests__/fieldSecurityFixtures.ts +91 -0
  514. package/src/__tests__/globalCors.test.ts +3 -3
  515. package/src/__tests__/localDevAuth.test.ts +196 -0
  516. package/src/__tests__/magicLinkExtensionCapabilities.test.ts +413 -0
  517. package/src/__tests__/orphanedConversationDetailReconciler.start.test.ts +82 -0
  518. package/src/__tests__/orphanedConversationDetailReconciler.test.ts +10 -0
  519. package/src/__tests__/ownedRealtimeSession.test.ts +14 -0
  520. package/src/__tests__/pushStatusResolver.filter.test.ts +57 -1
  521. package/src/__tests__/realtimeRecordingHandler.test.ts +24 -2
  522. package/src/__tests__/realtimeSessions/RealtimeSessionEventsResolver.test.ts +29 -1
  523. package/src/__tests__/realtimeSessions/ownedRealtimeSession.anonymous.test.ts +31 -0
  524. package/src/__tests__/realtimeSessions/ownedRealtimeSession.namedScoped.test.ts +37 -0
  525. package/src/__tests__/realtimeSessions/sessionAccess.test.ts +224 -7
  526. package/src/__tests__/realtimeSessions/sessionConfigStamps.test.ts +1 -1
  527. package/src/__tests__/realtimeSessions/verificationWorkflow.test.ts +25 -4
  528. package/src/__tests__/requestOrigin.test.ts +104 -0
  529. package/src/__tests__/resolverBase.cloudEventChangedFields.test.ts +157 -0
  530. package/src/__tests__/resolverBase.fieldSecurityTransport.test.ts +222 -0
  531. package/src/__tests__/resolverBase.fls.test.ts +146 -97
  532. package/src/__tests__/restTransport.fieldSecurity.test.ts +148 -0
  533. package/src/__tests__/runParamsTimeZone.test.ts +179 -0
  534. package/src/__tests__/runStreams.fieldSecurity.test.ts +100 -0
  535. package/src/__tests__/runViewProperties.test.ts +114 -0
  536. package/src/__tests__/scalabilityBenchmarks.test.ts +765 -0
  537. package/src/__tests__/scalabilityDatabaseIntegration.test.ts +207 -0
  538. package/src/__tests__/securityHardeningPr6034.test.ts +120 -0
  539. package/src/__tests__/sessionDeadline.test.ts +51 -0
  540. package/src/__tests__/sessionUserClone.test.ts +5 -1
  541. package/src/__tests__/sharedCache.test.ts +11 -0
  542. package/src/__tests__/startupSweepOrder.test.ts +40 -0
  543. package/src/__tests__/unifiedAuth.test.ts +101 -1
  544. package/src/__tests__/widgetGuestElevation.test.ts +2 -0
  545. package/src/agentSessions/BridgeHostInstance.ts +20 -5
  546. package/src/agentSessions/HandoffOfferExpiry.ts +18 -0
  547. package/src/agentSessions/ReturningVisitorRecap.ts +1 -0
  548. package/src/agentSessions/SessionJanitor.ts +95 -45
  549. package/src/agentSessions/SessionManager.ts +73 -20
  550. package/src/agentSessions/conversationBrowsers.ts +143 -0
  551. package/src/agentSessions/sessionDeadline.ts +81 -0
  552. package/src/auth/APIKeyScopeAuth.ts +5 -4
  553. package/src/auth/AuthProviderCatalogRouter.ts +3 -0
  554. package/src/auth/__tests__/loginEmailResolution.test.ts +67 -0
  555. package/src/auth/index.ts +56 -12
  556. package/src/auth/initializeProviders.ts +43 -1
  557. package/src/auth/localDevAuth.ts +528 -0
  558. package/src/auth/loginEmailResolution.ts +67 -0
  559. package/src/auth/magicLink/MagicLinkKeys.ts +147 -15
  560. package/src/auth/magicLink/MagicLinkRouter.ts +33 -6
  561. package/src/auth/magicLink/MagicLinkService.ts +250 -10
  562. package/src/auth/magicLink/index.ts +1 -1
  563. package/src/auth/magicLink/redeemLanding.ts +7 -4
  564. package/src/auth/magicLink/types.ts +38 -3
  565. package/src/auth/newUsers.ts +1 -0
  566. package/src/auth/sessionUserClone.ts +3 -2
  567. package/src/backgroundSweepConfigUnits.ts +213 -0
  568. package/src/broadcast/BaseCacheInvalidationBroadcastProvider.ts +674 -0
  569. package/src/broadcast/index.ts +5 -0
  570. package/src/broadcast/providers/AWSIoTCoreBroadcastProvider.ts +180 -0
  571. package/src/broadcast/providers/AzureWebPubSubBroadcastProvider.ts +182 -0
  572. package/src/broadcast/providers/GCPPubSubBroadcastProvider.ts +169 -0
  573. package/src/broadcast/providers/SequencedRoleBucketBroadcastProvider.ts +57 -0
  574. package/src/cache.ts +2 -1
  575. package/src/config.ts +138 -0
  576. package/src/context.ts +71 -14
  577. package/src/coreRoutes.ts +29 -7
  578. package/src/generated/graphql-schemas/__mj.ts +4145 -1193
  579. package/src/generic/CacheInvalidationResolver.ts +135 -78
  580. package/src/generic/OrphanedConversationDetailReconciler.ts +36 -3
  581. package/src/generic/PubSubManager.ts +54 -1
  582. package/src/generic/PushStatusResolver.ts +108 -11
  583. package/src/generic/ResolverBase.ts +635 -234
  584. package/src/generic/RunViewResolver.ts +176 -64
  585. package/src/generic/actionOutputFieldSecurity.ts +75 -0
  586. package/src/generic/fieldSecurityTransport.ts +62 -0
  587. package/src/index.ts +310 -85
  588. package/src/integration/ConnectionPause.ts +222 -0
  589. package/src/integration/CustomColumnPromoter.ts +129 -54
  590. package/src/integration/EntityMapLifecycle.ts +229 -6
  591. package/src/integration/InactiveRowWarnings.ts +50 -0
  592. package/src/integration/ObjectNamesByID.ts +97 -0
  593. package/src/integration/PostRestartIntrospect.ts +49 -0
  594. package/src/integration/RSUPostRestartProgress.ts +359 -0
  595. package/src/integration/RSUProgressBridge.ts +85 -2
  596. package/src/integration/RunArtifactAuthorization.ts +65 -0
  597. package/src/integration/SchemaRefreshLaunch.ts +12 -2
  598. package/src/integration/ScopedFieldsForBuild.ts +113 -0
  599. package/src/integration/TargetConfigGuard.ts +71 -0
  600. package/src/logging/variablesLoggingMiddleware.ts +59 -3
  601. package/src/realtimeSessions/README.md +7 -3
  602. package/src/realtimeSessions/SessionVerificationPortsBase.ts +1 -0
  603. package/src/realtimeSessions/ownedRealtimeSession.ts +16 -6
  604. package/src/realtimeSessions/sessionAccess.ts +211 -25
  605. package/src/realtimeSessions/sessionConfigStamps.ts +1 -1
  606. package/src/realtimeSessions/subscriptionAuthorization.ts +4 -2
  607. package/src/realtimeSessions/verificationWorkflow.ts +3 -1
  608. package/src/realtimeWidget/WidgetRouter.ts +22 -4
  609. package/src/realtimeWidget/WidgetSessionService.ts +254 -17
  610. package/src/realtimeWidget/host-identity.ts +1 -1
  611. package/src/realtimeWidget/visitorIdentity.ts +1 -0
  612. package/src/realtimeWidget/widgetCore.ts +34 -9
  613. package/src/realtimeWidget/widgetGuestElevation.ts +3 -1
  614. package/src/requestOrigin.ts +64 -0
  615. package/src/resolvers/ActionResolver.ts +78 -15
  616. package/src/resolvers/AdhocQueryResolver.ts +1 -0
  617. package/src/resolvers/AgentRunStatusPublisher.ts +36 -8
  618. package/src/resolvers/AgentSessionResolver.ts +50 -18
  619. package/src/resolvers/AutotagPipelineResolver.ts +2 -1
  620. package/src/resolvers/ConversationRunEventsResolver.ts +2 -0
  621. package/src/resolvers/EntityCommunicationsResolver.ts +56 -15
  622. package/src/resolvers/ExecuteRemoteOperationResolver.ts +41 -9
  623. package/src/resolvers/FetchEntityVectorsResolver.ts +132 -21
  624. package/src/resolvers/FileCategoryResolver.ts +1 -0
  625. package/src/resolvers/FileResolver.ts +14 -4
  626. package/src/resolvers/GetDataResolver.ts +35 -13
  627. package/src/resolvers/IntegrationDiscoveryResolver.ts +1570 -209
  628. package/src/resolvers/MCPResolver.ts +15 -2
  629. package/src/resolvers/MergeRecordsResolver.ts +23 -2
  630. package/src/resolvers/PipelineProgressResolver.ts +12 -3
  631. package/src/resolvers/QueryResolver.ts +20 -6
  632. package/src/resolvers/QuerySystemUserResolver.ts +207 -99
  633. package/src/resolvers/RSUResolver.ts +12 -0
  634. package/src/resolvers/RealtimeBridgeResolver.ts +1 -0
  635. package/src/resolvers/RealtimeClientSessionResolver.ts +144 -40
  636. package/src/resolvers/RemoteBrowserActionResolver.ts +252 -37
  637. package/src/resolvers/RunAIAgentResolver.ts +518 -163
  638. package/src/resolvers/RunAIPromptResolver.ts +18 -18
  639. package/src/resolvers/RunTemplateResolver.ts +9 -5
  640. package/src/resolvers/RunTestResolver.ts +3 -1
  641. package/src/resolvers/SyncDataResolver.ts +4 -0
  642. package/src/resolvers/TestQuerySQLResolver.ts +1 -0
  643. package/src/resolvers/TransactionGroupResolver.ts +66 -15
  644. package/src/resolvers/UserViewResolver.ts +2 -1
  645. package/src/resolvers/__tests__/GetDataResolver.tokens.test.ts +52 -0
  646. package/src/resolvers/__tests__/MergeRecordsResolver.test.ts +43 -0
  647. package/src/resolvers/meetingRecordingRegistration.ts +2 -0
  648. package/src/rest/EntityCRUDHandler.ts +22 -5
  649. package/src/rest/MediaAccessKeys.ts +6 -2
  650. package/src/rest/OAuthCallbackHandler.ts +13 -5
  651. package/src/rest/RESTEndpointHandler.ts +8 -5
  652. package/src/rest/RealtimeRecordingHandler.ts +9 -10
  653. package/src/rest/ViewOperationsHandler.ts +26 -7
  654. package/src/rest/setupRESTEndpoints.ts +11 -2
  655. package/src/serverRoleConfigUnits.ts +48 -0
  656. package/src/services/DurableEntityActionTaskSubmitter.ts +10 -2
  657. package/src/services/TaskGraphActionRunner.ts +2 -23
  658. package/src/services/TaskGraphAgentRunner.ts +43 -0
  659. package/src/services/TaskGraphContinuationDeliverer.ts +53 -20
  660. package/src/services/WorkQueueHostService.ts +26 -4
  661. package/src/services/workQueueConfig.ts +5 -5
  662. package/src/sharedCache.ts +1 -1
  663. package/src/types.ts +41 -1
  664. package/src/services/TaskOrchestration-Integration.md +0 -188
@@ -6704,6 +6704,16 @@ __decorate([
6704
6704
  Field(() => Int, { nullable: true, description: "Maximum number of conversation messages to include when MessageMode is 'Latest' or 'Bookend'. NULL means no limit (ignored for 'None' and 'All' modes). Must be greater than 0 if specified. For 'Latest': keeps most recent N messages. For 'Bookend': keeps first 2 + most recent (N-2) messages." }),
6705
6705
  __metadata("design:type", Number)
6706
6706
  ], MJAIAgentRelationship_.prototype, "MaxMessages", void 0);
6707
+ __decorate([
6708
+ Field({ nullable: true, description: "How the parent agent handles a Chat step returned by this sub-agent. Same values as AIAgent.ChatHandlingOption. NULL inherits the parent agent's ChatHandlingOption." }),
6709
+ MaxLength(30),
6710
+ __metadata("design:type", String)
6711
+ ], MJAIAgentRelationship_.prototype, "ChatHandlingOption", void 0);
6712
+ __decorate([
6713
+ Field({ nullable: true, description: "Default configuration preset (an MJ: AI Agent Configurations row of the sub-agent) the parent uses when it calls this sub-agent. NULL runs the sub-agent under the parent's configuration. A per-call presetName overrides it." }),
6714
+ MaxLength(36),
6715
+ __metadata("design:type", String)
6716
+ ], MJAIAgentRelationship_.prototype, "ConfigurationPresetID", void 0);
6707
6717
  __decorate([
6708
6718
  Field({ nullable: true }),
6709
6719
  MaxLength(255),
@@ -6714,6 +6724,11 @@ __decorate([
6714
6724
  MaxLength(255),
6715
6725
  __metadata("design:type", String)
6716
6726
  ], MJAIAgentRelationship_.prototype, "SubAgent", void 0);
6727
+ __decorate([
6728
+ Field({ nullable: true }),
6729
+ MaxLength(100),
6730
+ __metadata("design:type", String)
6731
+ ], MJAIAgentRelationship_.prototype, "ConfigurationPreset", void 0);
6717
6732
  __decorate([
6718
6733
  Field(() => [String], { nullable: true, description: `Field-level security: when non-null, the fields on this entity the calling user may read. Any other field arriving as null was withheld by the server rather than genuinely empty. Null for callers with no field restrictions.` }),
6719
6734
  __metadata("design:type", Array)
@@ -6763,6 +6778,14 @@ __decorate([
6763
6778
  Field(() => Int, { nullable: true }),
6764
6779
  __metadata("design:type", Number)
6765
6780
  ], CreateMJAIAgentRelationshipInput.prototype, "MaxMessages", void 0);
6781
+ __decorate([
6782
+ Field({ nullable: true }),
6783
+ __metadata("design:type", String)
6784
+ ], CreateMJAIAgentRelationshipInput.prototype, "ChatHandlingOption", void 0);
6785
+ __decorate([
6786
+ Field({ nullable: true }),
6787
+ __metadata("design:type", String)
6788
+ ], CreateMJAIAgentRelationshipInput.prototype, "ConfigurationPresetID", void 0);
6766
6789
  __decorate([
6767
6790
  Field(() => RestoreContextInput, { nullable: true }),
6768
6791
  __metadata("design:type", RestoreContextInput)
@@ -6812,6 +6835,14 @@ __decorate([
6812
6835
  Field(() => Int, { nullable: true }),
6813
6836
  __metadata("design:type", Number)
6814
6837
  ], UpdateMJAIAgentRelationshipInput.prototype, "MaxMessages", void 0);
6838
+ __decorate([
6839
+ Field({ nullable: true }),
6840
+ __metadata("design:type", String)
6841
+ ], UpdateMJAIAgentRelationshipInput.prototype, "ChatHandlingOption", void 0);
6842
+ __decorate([
6843
+ Field({ nullable: true }),
6844
+ __metadata("design:type", String)
6845
+ ], UpdateMJAIAgentRelationshipInput.prototype, "ConfigurationPresetID", void 0);
6815
6846
  __decorate([
6816
6847
  Field(() => [KeyValuePairInput], { nullable: true }),
6817
6848
  __metadata("design:type", Array)
@@ -8522,7 +8553,7 @@ __decorate([
8522
8553
  __metadata("design:type", Number)
8523
8554
  ], MJAIAgentRunStep_.prototype, "StepNumber", void 0);
8524
8555
  __decorate([
8525
- Field({ nullable: true, description: "Type of execution step: Prompt, Actions, Sub-Agent, Decision, Chat, Validation, ForEach, While, Tool" }),
8556
+ Field({ nullable: true, description: "Type of execution step: Actions, Chat, Compaction, Decision, ForEach, Handoff, Plan, Prompt, Skill, Sub-Agent, TaskGraph, Tool, Validation, While." }),
8526
8557
  MaxLength(50),
8527
8558
  __metadata("design:type", String)
8528
8559
  ], MJAIAgentRunStep_.prototype, "StepType", void 0);
@@ -9310,6 +9341,10 @@ __decorate([
9310
9341
  Field(() => Int, { nullable: true, description: "How many task-graph continuations led to this run. 0 (the default, and the value every ordinary run carries) means the run was not started by a finished graph. A run started because a graph declared continuation='reinvoke' records its source graph's depth plus one, and any graph that run subsequently submits inherits that value — which is what allows MAX_REINVOKE_DEPTH to bound a chain of graph-reinvokes-agent-emits-graph. Without a durable value here the cap could never fire, because a reinvoked agent has no other way to learn it was a continuation. Distinct from ParentRunID, which tracks sub-agent lineage within a single turn; a continuation is a NEW top-level turn caused by work that already completed." }),
9311
9342
  __metadata("design:type", Number)
9312
9343
  ], MJAIAgentRun_.prototype, "ContinuationDepth", void 0);
9344
+ __decorate([
9345
+ Field({ nullable: true, description: "The run's bound action parameters (ExecuteAgentParams.boundActionParams) as JSON, keyed by Action ID and then parameter name. Written when the run starts, so a run resumed from a stored request applies the same bindings. Null when the run had none." }),
9346
+ __metadata("design:type", String)
9347
+ ], MJAIAgentRun_.prototype, "BoundActionParams", void 0);
9313
9348
  __decorate([
9314
9349
  Field({ nullable: true }),
9315
9350
  MaxLength(255),
@@ -9608,6 +9643,10 @@ __decorate([
9608
9643
  Field(() => Int, { nullable: true }),
9609
9644
  __metadata("design:type", Number)
9610
9645
  ], CreateMJAIAgentRunInput.prototype, "ContinuationDepth", void 0);
9646
+ __decorate([
9647
+ Field({ nullable: true }),
9648
+ __metadata("design:type", String)
9649
+ ], CreateMJAIAgentRunInput.prototype, "BoundActionParams", void 0);
9611
9650
  __decorate([
9612
9651
  Field(() => RestoreContextInput, { nullable: true }),
9613
9652
  __metadata("design:type", RestoreContextInput)
@@ -9825,6 +9864,10 @@ __decorate([
9825
9864
  Field(() => Int, { nullable: true }),
9826
9865
  __metadata("design:type", Number)
9827
9866
  ], UpdateMJAIAgentRunInput.prototype, "ContinuationDepth", void 0);
9867
+ __decorate([
9868
+ Field({ nullable: true }),
9869
+ __metadata("design:type", String)
9870
+ ], UpdateMJAIAgentRunInput.prototype, "BoundActionParams", void 0);
9828
9871
  __decorate([
9829
9872
  Field(() => [KeyValuePairInput], { nullable: true }),
9830
9873
  __metadata("design:type", Array)
@@ -11731,7 +11774,7 @@ __decorate([
11731
11774
  __metadata("design:type", Date)
11732
11775
  ], MJAIAgentSession_.prototype, "ClosedAt", void 0);
11733
11776
  __decorate([
11734
- Field({ nullable: true, description: "Why the session was closed: Explicit (user hang-up / deliberate API close), Janitor (orphan or staleness sweep), Shutdown (graceful server shutdown), Error (session failure). NULL while the session is Active/Idle." }),
11777
+ Field({ nullable: true, description: "Why the session was closed: Explicit (user hang-up / deliberate API close), Janitor (orphan sweep; also every expiry close made before TimeLimit and Idle existed), Shutdown (graceful server shutdown), Error (session failure), TimeLimit (the session's authored deadline passed), Idle (no activity for longer than the idle threshold). NULL while Status is Active or Idle." }),
11735
11778
  MaxLength(20),
11736
11779
  __metadata("design:type", String)
11737
11780
  ], MJAIAgentSession_.prototype, "CloseReason", void 0);
@@ -11870,18 +11913,10 @@ __decorate([
11870
11913
  Field({ nullable: true }),
11871
11914
  __metadata("design:type", String)
11872
11915
  ], CreateMJAIAgentSessionInput.prototype, "CloseReason", void 0);
11873
- __decorate([
11874
- Field({ nullable: true }),
11875
- __metadata("design:type", String)
11876
- ], CreateMJAIAgentSessionInput.prototype, "RecordingMedia", void 0);
11877
11916
  __decorate([
11878
11917
  Field({ nullable: true }),
11879
11918
  __metadata("design:type", Date)
11880
11919
  ], CreateMJAIAgentSessionInput.prototype, "RecordingStartedAt", void 0);
11881
- __decorate([
11882
- Field({ nullable: true }),
11883
- __metadata("design:type", String)
11884
- ], CreateMJAIAgentSessionInput.prototype, "RecordingFileID", void 0);
11885
11920
  __decorate([
11886
11921
  Field({ nullable: true }),
11887
11922
  __metadata("design:type", String)
@@ -11890,26 +11925,6 @@ __decorate([
11890
11925
  Field({ nullable: true }),
11891
11926
  __metadata("design:type", String)
11892
11927
  ], CreateMJAIAgentSessionInput.prototype, "LinkedRecordID", void 0);
11893
- __decorate([
11894
- Field({ nullable: true }),
11895
- __metadata("design:type", String)
11896
- ], CreateMJAIAgentSessionInput.prototype, "RecordingStatus", void 0);
11897
- __decorate([
11898
- Field(() => Int, { nullable: true }),
11899
- __metadata("design:type", Number)
11900
- ], CreateMJAIAgentSessionInput.prototype, "RecordingExpectedShards", void 0);
11901
- __decorate([
11902
- Field(() => Int, { nullable: true }),
11903
- __metadata("design:type", Number)
11904
- ], CreateMJAIAgentSessionInput.prototype, "RecordingCapturedSamples", void 0);
11905
- __decorate([
11906
- Field({ nullable: true }),
11907
- __metadata("design:type", String)
11908
- ], CreateMJAIAgentSessionInput.prototype, "RecordingGaps", void 0);
11909
- __decorate([
11910
- Field(() => Int, { nullable: true }),
11911
- __metadata("design:type", Number)
11912
- ], CreateMJAIAgentSessionInput.prototype, "RecordingAssemblyVersion", void 0);
11913
11928
  __decorate([
11914
11929
  Field(() => RestoreContextInput, { nullable: true }),
11915
11930
  __metadata("design:type", RestoreContextInput)
@@ -11967,18 +11982,10 @@ __decorate([
11967
11982
  Field({ nullable: true }),
11968
11983
  __metadata("design:type", String)
11969
11984
  ], UpdateMJAIAgentSessionInput.prototype, "CloseReason", void 0);
11970
- __decorate([
11971
- Field({ nullable: true }),
11972
- __metadata("design:type", String)
11973
- ], UpdateMJAIAgentSessionInput.prototype, "RecordingMedia", void 0);
11974
11985
  __decorate([
11975
11986
  Field({ nullable: true }),
11976
11987
  __metadata("design:type", Date)
11977
11988
  ], UpdateMJAIAgentSessionInput.prototype, "RecordingStartedAt", void 0);
11978
- __decorate([
11979
- Field({ nullable: true }),
11980
- __metadata("design:type", String)
11981
- ], UpdateMJAIAgentSessionInput.prototype, "RecordingFileID", void 0);
11982
11989
  __decorate([
11983
11990
  Field({ nullable: true }),
11984
11991
  __metadata("design:type", String)
@@ -11987,26 +11994,6 @@ __decorate([
11987
11994
  Field({ nullable: true }),
11988
11995
  __metadata("design:type", String)
11989
11996
  ], UpdateMJAIAgentSessionInput.prototype, "LinkedRecordID", void 0);
11990
- __decorate([
11991
- Field({ nullable: true }),
11992
- __metadata("design:type", String)
11993
- ], UpdateMJAIAgentSessionInput.prototype, "RecordingStatus", void 0);
11994
- __decorate([
11995
- Field(() => Int, { nullable: true }),
11996
- __metadata("design:type", Number)
11997
- ], UpdateMJAIAgentSessionInput.prototype, "RecordingExpectedShards", void 0);
11998
- __decorate([
11999
- Field(() => Int, { nullable: true }),
12000
- __metadata("design:type", Number)
12001
- ], UpdateMJAIAgentSessionInput.prototype, "RecordingCapturedSamples", void 0);
12002
- __decorate([
12003
- Field({ nullable: true }),
12004
- __metadata("design:type", String)
12005
- ], UpdateMJAIAgentSessionInput.prototype, "RecordingGaps", void 0);
12006
- __decorate([
12007
- Field(() => Int, { nullable: true }),
12008
- __metadata("design:type", Number)
12009
- ], UpdateMJAIAgentSessionInput.prototype, "RecordingAssemblyVersion", void 0);
12010
11997
  __decorate([
12011
11998
  Field(() => [KeyValuePairInput], { nullable: true }),
12012
11999
  __metadata("design:type", Array)
@@ -14311,7 +14298,7 @@ __decorate([
14311
14298
  __metadata("design:type", Number)
14312
14299
  ], MJAIAgent_.prototype, "DefaultPromptEffortLevel", void 0);
14313
14300
  __decorate([
14314
- Field({ nullable: true, description: "Controls how Chat next steps are handled. When null (default), Chat propagates to caller. When set to Success, Failed, or Retry, Chat steps are remapped to that value and re-validated." }),
14301
+ Field({ nullable: true, description: "Controls how Chat next steps are handled. NULL (default): Chat propagates to the caller. Success, Failed or Retry: the Chat is remapped to that step. Consult: when a sub-agent of this agent returns Chat, this agent answers it itself (or asks its own caller) instead of ending its run; this agent's own Chat still goes to its caller. AIAgentRelationship.ChatHandlingOption overrides this per sub-agent." }),
14315
14302
  MaxLength(30),
14316
14303
  __metadata("design:type", String)
14317
14304
  ], MJAIAgent_.prototype, "ChatHandlingOption", void 0);
@@ -14510,6 +14497,10 @@ __decorate([
14510
14497
  Field(() => Boolean, { nullable: true, description: "When native tool calling is in effect for a run, whether this agent's Actions are declared as native tools (1, default) or withheld so the agent runs on the envelope path with the prose action catalog (0). Set 0 for coordinator agents whose prompt forbids doing work themselves. Controls supply only: capability and preference on the model and prompt still decide whether declared tools are used." }),
14511
14498
  __metadata("design:type", Boolean)
14512
14499
  ], MJAIAgent_.prototype, "DeclareActionsAsNativeTools", void 0);
14500
+ __decorate([
14501
+ Field(() => Int, { nullable: true, description: "Maximum number of Consult rounds this agent answers for a sub-agent before that sub-agent's question propagates to this agent's caller. NULL uses the framework default (3)." }),
14502
+ __metadata("design:type", Number)
14503
+ ], MJAIAgent_.prototype, "MaxSubAgentConsultRounds", void 0);
14513
14504
  __decorate([
14514
14505
  Field({ nullable: true }),
14515
14506
  MaxLength(255),
@@ -14920,6 +14911,10 @@ __decorate([
14920
14911
  Field(() => Boolean, { nullable: true }),
14921
14912
  __metadata("design:type", Boolean)
14922
14913
  ], CreateMJAIAgentInput.prototype, "DeclareActionsAsNativeTools", void 0);
14914
+ __decorate([
14915
+ Field(() => Int, { nullable: true }),
14916
+ __metadata("design:type", Number)
14917
+ ], CreateMJAIAgentInput.prototype, "MaxSubAgentConsultRounds", void 0);
14923
14918
  __decorate([
14924
14919
  Field(() => RestoreContextInput, { nullable: true }),
14925
14920
  __metadata("design:type", RestoreContextInput)
@@ -15249,6 +15244,10 @@ __decorate([
15249
15244
  Field(() => Boolean, { nullable: true }),
15250
15245
  __metadata("design:type", Boolean)
15251
15246
  ], UpdateMJAIAgentInput.prototype, "DeclareActionsAsNativeTools", void 0);
15247
+ __decorate([
15248
+ Field(() => Int, { nullable: true }),
15249
+ __metadata("design:type", Number)
15250
+ ], UpdateMJAIAgentInput.prototype, "MaxSubAgentConsultRounds", void 0);
15252
15251
  __decorate([
15253
15252
  Field(() => [KeyValuePairInput], { nullable: true }),
15254
15253
  __metadata("design:type", Array)
@@ -40766,6 +40765,1272 @@ MJAuthorizationResolver = __decorate([
40766
40765
  ], MJAuthorizationResolver);
40767
40766
  export { MJAuthorizationResolver };
40768
40767
  //****************************************************************************
40768
+ // ENTITY CLASS for MJ: Brand Kit Assets
40769
+ //****************************************************************************
40770
+ let MJBrandKitAsset_ = class MJBrandKitAsset_ {
40771
+ };
40772
+ __decorate([
40773
+ Field(),
40774
+ MaxLength(36),
40775
+ __metadata("design:type", String)
40776
+ ], MJBrandKitAsset_.prototype, "ID", void 0);
40777
+ __decorate([
40778
+ Field({ nullable: true, description: "The brand kit this file belongs to." }),
40779
+ MaxLength(36),
40780
+ __metadata("design:type", String)
40781
+ ], MJBrandKitAsset_.prototype, "BrandKitID", void 0);
40782
+ __decorate([
40783
+ Field({ nullable: true, description: "Display name of the asset." }),
40784
+ MaxLength(255),
40785
+ __metadata("design:type", String)
40786
+ ], MJBrandKitAsset_.prototype, "Name", void 0);
40787
+ __decorate([
40788
+ Field({ nullable: true, description: "Logo, LogoMark, Font, Image, Screenshot, Video, Music, SoundEffect or Other." }),
40789
+ MaxLength(30),
40790
+ __metadata("design:type", String)
40791
+ ], MJBrandKitAsset_.prototype, "AssetType", void 0);
40792
+ __decorate([
40793
+ Field({ nullable: true, description: "The stored file (MJ: Files)." }),
40794
+ MaxLength(36),
40795
+ __metadata("design:type", String)
40796
+ ], MJBrandKitAsset_.prototype, "FileID", void 0);
40797
+ __decorate([
40798
+ Field({ nullable: true, description: "When and how to use the asset." }),
40799
+ __metadata("design:type", String)
40800
+ ], MJBrandKitAsset_.prototype, "Usage", void 0);
40801
+ __decorate([
40802
+ Field(() => Boolean, { nullable: true, description: "The main asset of its type, for example the primary logo." }),
40803
+ __metadata("design:type", Boolean)
40804
+ ], MJBrandKitAsset_.prototype, "IsPrimary", void 0);
40805
+ __decorate([
40806
+ Field(() => Int, { nullable: true, description: "Order within the kit; lower first." }),
40807
+ __metadata("design:type", Number)
40808
+ ], MJBrandKitAsset_.prototype, "Sequence", void 0);
40809
+ __decorate([
40810
+ Field({ nullable: true, description: "Who may use the file, and where (fonts, music, stock imagery)." }),
40811
+ MaxLength(500),
40812
+ __metadata("design:type", String)
40813
+ ], MJBrandKitAsset_.prototype, "LicenseNotes", void 0);
40814
+ __decorate([
40815
+ Field(() => Boolean, { nullable: true, description: "When set, the file may be sent to image or video generation models as a style or subject reference. Allowed only for Image, Screenshot, Logo, LogoMark and Video assets." }),
40816
+ __metadata("design:type", Boolean)
40817
+ ], MJBrandKitAsset_.prototype, "IsGenerationReference", void 0);
40818
+ __decorate([
40819
+ Field(),
40820
+ __metadata("design:type", Date)
40821
+ ], MJBrandKitAsset_.prototype, "_mj__CreatedAt", void 0);
40822
+ __decorate([
40823
+ Field(),
40824
+ __metadata("design:type", Date)
40825
+ ], MJBrandKitAsset_.prototype, "_mj__UpdatedAt", void 0);
40826
+ __decorate([
40827
+ Field({ nullable: true }),
40828
+ MaxLength(255),
40829
+ __metadata("design:type", String)
40830
+ ], MJBrandKitAsset_.prototype, "BrandKit", void 0);
40831
+ __decorate([
40832
+ Field({ nullable: true }),
40833
+ MaxLength(500),
40834
+ __metadata("design:type", String)
40835
+ ], MJBrandKitAsset_.prototype, "File", void 0);
40836
+ __decorate([
40837
+ Field(() => [String], { nullable: true, description: `Field-level security: when non-null, the fields on this entity the calling user may read. Any other field arriving as null was withheld by the server rather than genuinely empty. Null for callers with no field restrictions.` }),
40838
+ __metadata("design:type", Array)
40839
+ ], MJBrandKitAsset_.prototype, "ReadableFields___", void 0);
40840
+ MJBrandKitAsset_ = __decorate([
40841
+ ObjectType({ description: "A file in a brand kit, with usage guidance, license notes, and whether generation models may receive it as a reference." })
40842
+ ], MJBrandKitAsset_);
40843
+ export { MJBrandKitAsset_ };
40844
+ //****************************************************************************
40845
+ // INPUT TYPE for MJ: Brand Kit Assets
40846
+ //****************************************************************************
40847
+ let CreateMJBrandKitAssetInput = class CreateMJBrandKitAssetInput {
40848
+ };
40849
+ __decorate([
40850
+ Field({ nullable: true }),
40851
+ __metadata("design:type", String)
40852
+ ], CreateMJBrandKitAssetInput.prototype, "ID", void 0);
40853
+ __decorate([
40854
+ Field({ nullable: true }),
40855
+ __metadata("design:type", String)
40856
+ ], CreateMJBrandKitAssetInput.prototype, "BrandKitID", void 0);
40857
+ __decorate([
40858
+ Field({ nullable: true }),
40859
+ __metadata("design:type", String)
40860
+ ], CreateMJBrandKitAssetInput.prototype, "Name", void 0);
40861
+ __decorate([
40862
+ Field({ nullable: true }),
40863
+ __metadata("design:type", String)
40864
+ ], CreateMJBrandKitAssetInput.prototype, "AssetType", void 0);
40865
+ __decorate([
40866
+ Field({ nullable: true }),
40867
+ __metadata("design:type", String)
40868
+ ], CreateMJBrandKitAssetInput.prototype, "FileID", void 0);
40869
+ __decorate([
40870
+ Field({ nullable: true }),
40871
+ __metadata("design:type", String)
40872
+ ], CreateMJBrandKitAssetInput.prototype, "Usage", void 0);
40873
+ __decorate([
40874
+ Field(() => Boolean, { nullable: true }),
40875
+ __metadata("design:type", Boolean)
40876
+ ], CreateMJBrandKitAssetInput.prototype, "IsPrimary", void 0);
40877
+ __decorate([
40878
+ Field(() => Int, { nullable: true }),
40879
+ __metadata("design:type", Number)
40880
+ ], CreateMJBrandKitAssetInput.prototype, "Sequence", void 0);
40881
+ __decorate([
40882
+ Field({ nullable: true }),
40883
+ __metadata("design:type", String)
40884
+ ], CreateMJBrandKitAssetInput.prototype, "LicenseNotes", void 0);
40885
+ __decorate([
40886
+ Field(() => Boolean, { nullable: true }),
40887
+ __metadata("design:type", Boolean)
40888
+ ], CreateMJBrandKitAssetInput.prototype, "IsGenerationReference", void 0);
40889
+ __decorate([
40890
+ Field(() => RestoreContextInput, { nullable: true }),
40891
+ __metadata("design:type", RestoreContextInput)
40892
+ ], CreateMJBrandKitAssetInput.prototype, "RestoreContext___", void 0);
40893
+ CreateMJBrandKitAssetInput = __decorate([
40894
+ InputType()
40895
+ ], CreateMJBrandKitAssetInput);
40896
+ export { CreateMJBrandKitAssetInput };
40897
+ //****************************************************************************
40898
+ // INPUT TYPE for MJ: Brand Kit Assets
40899
+ //****************************************************************************
40900
+ let UpdateMJBrandKitAssetInput = class UpdateMJBrandKitAssetInput {
40901
+ };
40902
+ __decorate([
40903
+ Field(),
40904
+ __metadata("design:type", String)
40905
+ ], UpdateMJBrandKitAssetInput.prototype, "ID", void 0);
40906
+ __decorate([
40907
+ Field({ nullable: true }),
40908
+ __metadata("design:type", String)
40909
+ ], UpdateMJBrandKitAssetInput.prototype, "BrandKitID", void 0);
40910
+ __decorate([
40911
+ Field({ nullable: true }),
40912
+ __metadata("design:type", String)
40913
+ ], UpdateMJBrandKitAssetInput.prototype, "Name", void 0);
40914
+ __decorate([
40915
+ Field({ nullable: true }),
40916
+ __metadata("design:type", String)
40917
+ ], UpdateMJBrandKitAssetInput.prototype, "AssetType", void 0);
40918
+ __decorate([
40919
+ Field({ nullable: true }),
40920
+ __metadata("design:type", String)
40921
+ ], UpdateMJBrandKitAssetInput.prototype, "FileID", void 0);
40922
+ __decorate([
40923
+ Field({ nullable: true }),
40924
+ __metadata("design:type", String)
40925
+ ], UpdateMJBrandKitAssetInput.prototype, "Usage", void 0);
40926
+ __decorate([
40927
+ Field(() => Boolean, { nullable: true }),
40928
+ __metadata("design:type", Boolean)
40929
+ ], UpdateMJBrandKitAssetInput.prototype, "IsPrimary", void 0);
40930
+ __decorate([
40931
+ Field(() => Int, { nullable: true }),
40932
+ __metadata("design:type", Number)
40933
+ ], UpdateMJBrandKitAssetInput.prototype, "Sequence", void 0);
40934
+ __decorate([
40935
+ Field({ nullable: true }),
40936
+ __metadata("design:type", String)
40937
+ ], UpdateMJBrandKitAssetInput.prototype, "LicenseNotes", void 0);
40938
+ __decorate([
40939
+ Field(() => Boolean, { nullable: true }),
40940
+ __metadata("design:type", Boolean)
40941
+ ], UpdateMJBrandKitAssetInput.prototype, "IsGenerationReference", void 0);
40942
+ __decorate([
40943
+ Field(() => [KeyValuePairInput], { nullable: true }),
40944
+ __metadata("design:type", Array)
40945
+ ], UpdateMJBrandKitAssetInput.prototype, "OldValues___", void 0);
40946
+ __decorate([
40947
+ Field(() => RestoreContextInput, { nullable: true }),
40948
+ __metadata("design:type", RestoreContextInput)
40949
+ ], UpdateMJBrandKitAssetInput.prototype, "RestoreContext___", void 0);
40950
+ UpdateMJBrandKitAssetInput = __decorate([
40951
+ InputType()
40952
+ ], UpdateMJBrandKitAssetInput);
40953
+ export { UpdateMJBrandKitAssetInput };
40954
+ //****************************************************************************
40955
+ // RESOLVER for MJ: Brand Kit Assets
40956
+ //****************************************************************************
40957
+ let RunMJBrandKitAssetViewResult = class RunMJBrandKitAssetViewResult {
40958
+ };
40959
+ __decorate([
40960
+ Field(() => [MJBrandKitAsset_]),
40961
+ __metadata("design:type", Array)
40962
+ ], RunMJBrandKitAssetViewResult.prototype, "Results", void 0);
40963
+ __decorate([
40964
+ Field(() => String, { nullable: true }),
40965
+ __metadata("design:type", String)
40966
+ ], RunMJBrandKitAssetViewResult.prototype, "UserViewRunID", void 0);
40967
+ __decorate([
40968
+ Field(() => Int, { nullable: true }),
40969
+ __metadata("design:type", Number)
40970
+ ], RunMJBrandKitAssetViewResult.prototype, "RowCount", void 0);
40971
+ __decorate([
40972
+ Field(() => Int, { nullable: true }),
40973
+ __metadata("design:type", Number)
40974
+ ], RunMJBrandKitAssetViewResult.prototype, "TotalRowCount", void 0);
40975
+ __decorate([
40976
+ Field(() => Int, { nullable: true }),
40977
+ __metadata("design:type", Number)
40978
+ ], RunMJBrandKitAssetViewResult.prototype, "ExecutionTime", void 0);
40979
+ __decorate([
40980
+ Field({ nullable: true }),
40981
+ __metadata("design:type", String)
40982
+ ], RunMJBrandKitAssetViewResult.prototype, "ErrorMessage", void 0);
40983
+ __decorate([
40984
+ Field(() => Boolean, { nullable: false }),
40985
+ __metadata("design:type", Boolean)
40986
+ ], RunMJBrandKitAssetViewResult.prototype, "Success", void 0);
40987
+ RunMJBrandKitAssetViewResult = __decorate([
40988
+ ObjectType()
40989
+ ], RunMJBrandKitAssetViewResult);
40990
+ export { RunMJBrandKitAssetViewResult };
40991
+ let MJBrandKitAssetResolver = class MJBrandKitAssetResolver extends ResolverBase {
40992
+ async RunMJBrandKitAssetViewByID(input, { providers, userPayload }, pubSub) {
40993
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
40994
+ return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
40995
+ }
40996
+ async RunMJBrandKitAssetViewByName(input, { providers, userPayload }, pubSub) {
40997
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
40998
+ return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
40999
+ }
41000
+ async RunMJBrandKitAssetDynamicView(input, { providers, userPayload }, pubSub) {
41001
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
41002
+ input.EntityName = 'MJ: Brand Kit Assets';
41003
+ return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
41004
+ }
41005
+ async MJBrandKitAsset(ID, { userPayload, providers }, pubSub) {
41006
+ this.CheckUserReadPermissions('MJ: Brand Kit Assets', userPayload);
41007
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
41008
+ const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwBrandKitAssets')} WHERE ${provider.QuoteIdentifier('ID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Brand Kit Assets', userPayload, EntityPermissionType.Read, 'AND');
41009
+ const rows = await provider.ExecuteSQL(sSQL, [ID], undefined, this.GetUserFromPayload(userPayload));
41010
+ const result = await this.MapFieldNamesToCodeNames('MJ: Brand Kit Assets', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
41011
+ return result;
41012
+ }
41013
+ async CreateMJBrandKitAsset(input, { providers, userPayload }, pubSub) {
41014
+ const provider = GetReadWriteProvider(providers);
41015
+ return this.CreateRecord('MJ: Brand Kit Assets', input, provider, userPayload, pubSub);
41016
+ }
41017
+ async UpdateMJBrandKitAsset(input, { providers, userPayload }, pubSub) {
41018
+ const provider = GetReadWriteProvider(providers);
41019
+ return this.UpdateRecord('MJ: Brand Kit Assets', input, provider, userPayload, pubSub);
41020
+ }
41021
+ async DeleteMJBrandKitAsset(ID, options, { providers, userPayload }, pubSub) {
41022
+ const provider = GetReadWriteProvider(providers);
41023
+ const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
41024
+ return this.DeleteRecord('MJ: Brand Kit Assets', key, options, provider, userPayload, pubSub);
41025
+ }
41026
+ };
41027
+ __decorate([
41028
+ Query(() => RunMJBrandKitAssetViewResult),
41029
+ __param(0, Arg('input', () => RunViewByIDInput)),
41030
+ __param(1, Ctx()),
41031
+ __param(2, PubSub()),
41032
+ __metadata("design:type", Function),
41033
+ __metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
41034
+ __metadata("design:returntype", Promise)
41035
+ ], MJBrandKitAssetResolver.prototype, "RunMJBrandKitAssetViewByID", null);
41036
+ __decorate([
41037
+ Query(() => RunMJBrandKitAssetViewResult),
41038
+ __param(0, Arg('input', () => RunViewByNameInput)),
41039
+ __param(1, Ctx()),
41040
+ __param(2, PubSub()),
41041
+ __metadata("design:type", Function),
41042
+ __metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
41043
+ __metadata("design:returntype", Promise)
41044
+ ], MJBrandKitAssetResolver.prototype, "RunMJBrandKitAssetViewByName", null);
41045
+ __decorate([
41046
+ Query(() => RunMJBrandKitAssetViewResult),
41047
+ __param(0, Arg('input', () => RunDynamicViewInput)),
41048
+ __param(1, Ctx()),
41049
+ __param(2, PubSub()),
41050
+ __metadata("design:type", Function),
41051
+ __metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
41052
+ __metadata("design:returntype", Promise)
41053
+ ], MJBrandKitAssetResolver.prototype, "RunMJBrandKitAssetDynamicView", null);
41054
+ __decorate([
41055
+ Query(() => MJBrandKitAsset_, { nullable: true }),
41056
+ __param(0, Arg('ID', () => String)),
41057
+ __param(1, Ctx()),
41058
+ __param(2, PubSub()),
41059
+ __metadata("design:type", Function),
41060
+ __metadata("design:paramtypes", [String, Object, PubSubEngine]),
41061
+ __metadata("design:returntype", Promise)
41062
+ ], MJBrandKitAssetResolver.prototype, "MJBrandKitAsset", null);
41063
+ __decorate([
41064
+ Mutation(() => MJBrandKitAsset_),
41065
+ __param(0, Arg('input', () => CreateMJBrandKitAssetInput)),
41066
+ __param(1, Ctx()),
41067
+ __param(2, PubSub()),
41068
+ __metadata("design:type", Function),
41069
+ __metadata("design:paramtypes", [CreateMJBrandKitAssetInput, Object, PubSubEngine]),
41070
+ __metadata("design:returntype", Promise)
41071
+ ], MJBrandKitAssetResolver.prototype, "CreateMJBrandKitAsset", null);
41072
+ __decorate([
41073
+ Mutation(() => MJBrandKitAsset_),
41074
+ __param(0, Arg('input', () => UpdateMJBrandKitAssetInput)),
41075
+ __param(1, Ctx()),
41076
+ __param(2, PubSub()),
41077
+ __metadata("design:type", Function),
41078
+ __metadata("design:paramtypes", [UpdateMJBrandKitAssetInput, Object, PubSubEngine]),
41079
+ __metadata("design:returntype", Promise)
41080
+ ], MJBrandKitAssetResolver.prototype, "UpdateMJBrandKitAsset", null);
41081
+ __decorate([
41082
+ Mutation(() => MJBrandKitAsset_),
41083
+ __param(0, Arg('ID', () => String)),
41084
+ __param(1, Arg('options___', () => DeleteOptionsInput)),
41085
+ __param(2, Ctx()),
41086
+ __param(3, PubSub()),
41087
+ __metadata("design:type", Function),
41088
+ __metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
41089
+ __metadata("design:returntype", Promise)
41090
+ ], MJBrandKitAssetResolver.prototype, "DeleteMJBrandKitAsset", null);
41091
+ MJBrandKitAssetResolver = __decorate([
41092
+ Resolver(MJBrandKitAsset_)
41093
+ ], MJBrandKitAssetResolver);
41094
+ export { MJBrandKitAssetResolver };
41095
+ //****************************************************************************
41096
+ // ENTITY CLASS for MJ: Brand Kits
41097
+ //****************************************************************************
41098
+ let MJBrandKit_ = class MJBrandKit_ {
41099
+ };
41100
+ __decorate([
41101
+ Field(),
41102
+ MaxLength(36),
41103
+ __metadata("design:type", String)
41104
+ ], MJBrandKit_.prototype, "ID", void 0);
41105
+ __decorate([
41106
+ Field({ nullable: true, description: "Display name of the brand kit." }),
41107
+ MaxLength(255),
41108
+ __metadata("design:type", String)
41109
+ ], MJBrandKit_.prototype, "Name", void 0);
41110
+ __decorate([
41111
+ Field({ nullable: true, description: "What the kit is for and when to use it." }),
41112
+ __metadata("design:type", String)
41113
+ ], MJBrandKit_.prototype, "Description", void 0);
41114
+ __decorate([
41115
+ Field({ nullable: true, description: "The company this kit belongs to. NULL means org-wide: available to all companies." }),
41116
+ MaxLength(36),
41117
+ __metadata("design:type", String)
41118
+ ], MJBrandKit_.prototype, "CompanyID", void 0);
41119
+ __decorate([
41120
+ Field(() => Boolean, { nullable: true, description: "The kit used when a caller names none. At most one default per CompanyID scope (NULL is its own scope), enforced on save by the server entity." }),
41121
+ __metadata("design:type", Boolean)
41122
+ ], MJBrandKit_.prototype, "IsDefault", void 0);
41123
+ __decorate([
41124
+ Field({ nullable: true, description: "Active kits are offered to users and generators; Inactive kits are kept but hidden." }),
41125
+ MaxLength(20),
41126
+ __metadata("design:type", String)
41127
+ ], MJBrandKit_.prototype, "Status", void 0);
41128
+ __decorate([
41129
+ Field({ nullable: true, description: "JSON (IBrandStyle): palette, typography, imagery style, keep and avoid lists, and an optional Motion section." }),
41130
+ __metadata("design:type", String)
41131
+ ], MJBrandKit_.prototype, "Style", void 0);
41132
+ __decorate([
41133
+ Field({ nullable: true, description: "JSON (IBrandVoice): text-to-speech provider, voice ID, settings and pronunciation notes." }),
41134
+ __metadata("design:type", String)
41135
+ ], MJBrandKit_.prototype, "Voice", void 0);
41136
+ __decorate([
41137
+ Field({ nullable: true, description: "JSON (IBrandGenerationPolicy): whether generated images and video may be used, a style prompt, subjects to avoid, whether generated people are allowed (default: not allowed), and an optional per-run generation spend cap. NULL applies the defaults." }),
41138
+ __metadata("design:type", String)
41139
+ ], MJBrandKit_.prototype, "GenerationPolicy", void 0);
41140
+ __decorate([
41141
+ Field({ nullable: true, description: "JSON array of strings: facts about the brand a model must never fabricate, for example product screens, logos, metrics or customer names." }),
41142
+ __metadata("design:type", String)
41143
+ ], MJBrandKit_.prototype, "NeverInvent", void 0);
41144
+ __decorate([
41145
+ Field(),
41146
+ __metadata("design:type", Date)
41147
+ ], MJBrandKit_.prototype, "_mj__CreatedAt", void 0);
41148
+ __decorate([
41149
+ Field(),
41150
+ __metadata("design:type", Date)
41151
+ ], MJBrandKit_.prototype, "_mj__UpdatedAt", void 0);
41152
+ __decorate([
41153
+ Field({ nullable: true }),
41154
+ MaxLength(50),
41155
+ __metadata("design:type", String)
41156
+ ], MJBrandKit_.prototype, "Company", void 0);
41157
+ __decorate([
41158
+ Field(() => [String], { nullable: true, description: `Field-level security: when non-null, the fields on this entity the calling user may read. Any other field arriving as null was withheld by the server rather than genuinely empty. Null for callers with no field restrictions.` }),
41159
+ __metadata("design:type", Array)
41160
+ ], MJBrandKit_.prototype, "ReadableFields___", void 0);
41161
+ MJBrandKit_ = __decorate([
41162
+ ObjectType({ description: "A brand kit: colors, type, voice, generation policy, facts never to invent, and the files (logos, fonts, reference imagery, music) that generators, forms and applications use to stay on brand. CompanyID NULL makes the kit available to all companies." })
41163
+ ], MJBrandKit_);
41164
+ export { MJBrandKit_ };
41165
+ //****************************************************************************
41166
+ // INPUT TYPE for MJ: Brand Kits
41167
+ //****************************************************************************
41168
+ let CreateMJBrandKitInput = class CreateMJBrandKitInput {
41169
+ };
41170
+ __decorate([
41171
+ Field({ nullable: true }),
41172
+ __metadata("design:type", String)
41173
+ ], CreateMJBrandKitInput.prototype, "ID", void 0);
41174
+ __decorate([
41175
+ Field({ nullable: true }),
41176
+ __metadata("design:type", String)
41177
+ ], CreateMJBrandKitInput.prototype, "Name", void 0);
41178
+ __decorate([
41179
+ Field({ nullable: true }),
41180
+ __metadata("design:type", String)
41181
+ ], CreateMJBrandKitInput.prototype, "Description", void 0);
41182
+ __decorate([
41183
+ Field({ nullable: true }),
41184
+ __metadata("design:type", String)
41185
+ ], CreateMJBrandKitInput.prototype, "CompanyID", void 0);
41186
+ __decorate([
41187
+ Field(() => Boolean, { nullable: true }),
41188
+ __metadata("design:type", Boolean)
41189
+ ], CreateMJBrandKitInput.prototype, "IsDefault", void 0);
41190
+ __decorate([
41191
+ Field({ nullable: true }),
41192
+ __metadata("design:type", String)
41193
+ ], CreateMJBrandKitInput.prototype, "Status", void 0);
41194
+ __decorate([
41195
+ Field({ nullable: true }),
41196
+ __metadata("design:type", String)
41197
+ ], CreateMJBrandKitInput.prototype, "Style", void 0);
41198
+ __decorate([
41199
+ Field({ nullable: true }),
41200
+ __metadata("design:type", String)
41201
+ ], CreateMJBrandKitInput.prototype, "Voice", void 0);
41202
+ __decorate([
41203
+ Field({ nullable: true }),
41204
+ __metadata("design:type", String)
41205
+ ], CreateMJBrandKitInput.prototype, "GenerationPolicy", void 0);
41206
+ __decorate([
41207
+ Field({ nullable: true }),
41208
+ __metadata("design:type", String)
41209
+ ], CreateMJBrandKitInput.prototype, "NeverInvent", void 0);
41210
+ __decorate([
41211
+ Field(() => RestoreContextInput, { nullable: true }),
41212
+ __metadata("design:type", RestoreContextInput)
41213
+ ], CreateMJBrandKitInput.prototype, "RestoreContext___", void 0);
41214
+ CreateMJBrandKitInput = __decorate([
41215
+ InputType()
41216
+ ], CreateMJBrandKitInput);
41217
+ export { CreateMJBrandKitInput };
41218
+ //****************************************************************************
41219
+ // INPUT TYPE for MJ: Brand Kits
41220
+ //****************************************************************************
41221
+ let UpdateMJBrandKitInput = class UpdateMJBrandKitInput {
41222
+ };
41223
+ __decorate([
41224
+ Field(),
41225
+ __metadata("design:type", String)
41226
+ ], UpdateMJBrandKitInput.prototype, "ID", void 0);
41227
+ __decorate([
41228
+ Field({ nullable: true }),
41229
+ __metadata("design:type", String)
41230
+ ], UpdateMJBrandKitInput.prototype, "Name", void 0);
41231
+ __decorate([
41232
+ Field({ nullable: true }),
41233
+ __metadata("design:type", String)
41234
+ ], UpdateMJBrandKitInput.prototype, "Description", void 0);
41235
+ __decorate([
41236
+ Field({ nullable: true }),
41237
+ __metadata("design:type", String)
41238
+ ], UpdateMJBrandKitInput.prototype, "CompanyID", void 0);
41239
+ __decorate([
41240
+ Field(() => Boolean, { nullable: true }),
41241
+ __metadata("design:type", Boolean)
41242
+ ], UpdateMJBrandKitInput.prototype, "IsDefault", void 0);
41243
+ __decorate([
41244
+ Field({ nullable: true }),
41245
+ __metadata("design:type", String)
41246
+ ], UpdateMJBrandKitInput.prototype, "Status", void 0);
41247
+ __decorate([
41248
+ Field({ nullable: true }),
41249
+ __metadata("design:type", String)
41250
+ ], UpdateMJBrandKitInput.prototype, "Style", void 0);
41251
+ __decorate([
41252
+ Field({ nullable: true }),
41253
+ __metadata("design:type", String)
41254
+ ], UpdateMJBrandKitInput.prototype, "Voice", void 0);
41255
+ __decorate([
41256
+ Field({ nullable: true }),
41257
+ __metadata("design:type", String)
41258
+ ], UpdateMJBrandKitInput.prototype, "GenerationPolicy", void 0);
41259
+ __decorate([
41260
+ Field({ nullable: true }),
41261
+ __metadata("design:type", String)
41262
+ ], UpdateMJBrandKitInput.prototype, "NeverInvent", void 0);
41263
+ __decorate([
41264
+ Field(() => [KeyValuePairInput], { nullable: true }),
41265
+ __metadata("design:type", Array)
41266
+ ], UpdateMJBrandKitInput.prototype, "OldValues___", void 0);
41267
+ __decorate([
41268
+ Field(() => RestoreContextInput, { nullable: true }),
41269
+ __metadata("design:type", RestoreContextInput)
41270
+ ], UpdateMJBrandKitInput.prototype, "RestoreContext___", void 0);
41271
+ UpdateMJBrandKitInput = __decorate([
41272
+ InputType()
41273
+ ], UpdateMJBrandKitInput);
41274
+ export { UpdateMJBrandKitInput };
41275
+ //****************************************************************************
41276
+ // RESOLVER for MJ: Brand Kits
41277
+ //****************************************************************************
41278
+ let RunMJBrandKitViewResult = class RunMJBrandKitViewResult {
41279
+ };
41280
+ __decorate([
41281
+ Field(() => [MJBrandKit_]),
41282
+ __metadata("design:type", Array)
41283
+ ], RunMJBrandKitViewResult.prototype, "Results", void 0);
41284
+ __decorate([
41285
+ Field(() => String, { nullable: true }),
41286
+ __metadata("design:type", String)
41287
+ ], RunMJBrandKitViewResult.prototype, "UserViewRunID", void 0);
41288
+ __decorate([
41289
+ Field(() => Int, { nullable: true }),
41290
+ __metadata("design:type", Number)
41291
+ ], RunMJBrandKitViewResult.prototype, "RowCount", void 0);
41292
+ __decorate([
41293
+ Field(() => Int, { nullable: true }),
41294
+ __metadata("design:type", Number)
41295
+ ], RunMJBrandKitViewResult.prototype, "TotalRowCount", void 0);
41296
+ __decorate([
41297
+ Field(() => Int, { nullable: true }),
41298
+ __metadata("design:type", Number)
41299
+ ], RunMJBrandKitViewResult.prototype, "ExecutionTime", void 0);
41300
+ __decorate([
41301
+ Field({ nullable: true }),
41302
+ __metadata("design:type", String)
41303
+ ], RunMJBrandKitViewResult.prototype, "ErrorMessage", void 0);
41304
+ __decorate([
41305
+ Field(() => Boolean, { nullable: false }),
41306
+ __metadata("design:type", Boolean)
41307
+ ], RunMJBrandKitViewResult.prototype, "Success", void 0);
41308
+ RunMJBrandKitViewResult = __decorate([
41309
+ ObjectType()
41310
+ ], RunMJBrandKitViewResult);
41311
+ export { RunMJBrandKitViewResult };
41312
+ let MJBrandKitResolver = class MJBrandKitResolver extends ResolverBase {
41313
+ async RunMJBrandKitViewByID(input, { providers, userPayload }, pubSub) {
41314
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
41315
+ return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
41316
+ }
41317
+ async RunMJBrandKitViewByName(input, { providers, userPayload }, pubSub) {
41318
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
41319
+ return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
41320
+ }
41321
+ async RunMJBrandKitDynamicView(input, { providers, userPayload }, pubSub) {
41322
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
41323
+ input.EntityName = 'MJ: Brand Kits';
41324
+ return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
41325
+ }
41326
+ async MJBrandKit(ID, { userPayload, providers }, pubSub) {
41327
+ this.CheckUserReadPermissions('MJ: Brand Kits', userPayload);
41328
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
41329
+ const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwBrandKits')} WHERE ${provider.QuoteIdentifier('ID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Brand Kits', userPayload, EntityPermissionType.Read, 'AND');
41330
+ const rows = await provider.ExecuteSQL(sSQL, [ID], undefined, this.GetUserFromPayload(userPayload));
41331
+ const result = await this.MapFieldNamesToCodeNames('MJ: Brand Kits', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
41332
+ return result;
41333
+ }
41334
+ async CreateMJBrandKit(input, { providers, userPayload }, pubSub) {
41335
+ const provider = GetReadWriteProvider(providers);
41336
+ return this.CreateRecord('MJ: Brand Kits', input, provider, userPayload, pubSub);
41337
+ }
41338
+ async UpdateMJBrandKit(input, { providers, userPayload }, pubSub) {
41339
+ const provider = GetReadWriteProvider(providers);
41340
+ return this.UpdateRecord('MJ: Brand Kits', input, provider, userPayload, pubSub);
41341
+ }
41342
+ async DeleteMJBrandKit(ID, options, { providers, userPayload }, pubSub) {
41343
+ const provider = GetReadWriteProvider(providers);
41344
+ const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
41345
+ return this.DeleteRecord('MJ: Brand Kits', key, options, provider, userPayload, pubSub);
41346
+ }
41347
+ };
41348
+ __decorate([
41349
+ Query(() => RunMJBrandKitViewResult),
41350
+ __param(0, Arg('input', () => RunViewByIDInput)),
41351
+ __param(1, Ctx()),
41352
+ __param(2, PubSub()),
41353
+ __metadata("design:type", Function),
41354
+ __metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
41355
+ __metadata("design:returntype", Promise)
41356
+ ], MJBrandKitResolver.prototype, "RunMJBrandKitViewByID", null);
41357
+ __decorate([
41358
+ Query(() => RunMJBrandKitViewResult),
41359
+ __param(0, Arg('input', () => RunViewByNameInput)),
41360
+ __param(1, Ctx()),
41361
+ __param(2, PubSub()),
41362
+ __metadata("design:type", Function),
41363
+ __metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
41364
+ __metadata("design:returntype", Promise)
41365
+ ], MJBrandKitResolver.prototype, "RunMJBrandKitViewByName", null);
41366
+ __decorate([
41367
+ Query(() => RunMJBrandKitViewResult),
41368
+ __param(0, Arg('input', () => RunDynamicViewInput)),
41369
+ __param(1, Ctx()),
41370
+ __param(2, PubSub()),
41371
+ __metadata("design:type", Function),
41372
+ __metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
41373
+ __metadata("design:returntype", Promise)
41374
+ ], MJBrandKitResolver.prototype, "RunMJBrandKitDynamicView", null);
41375
+ __decorate([
41376
+ Query(() => MJBrandKit_, { nullable: true }),
41377
+ __param(0, Arg('ID', () => String)),
41378
+ __param(1, Ctx()),
41379
+ __param(2, PubSub()),
41380
+ __metadata("design:type", Function),
41381
+ __metadata("design:paramtypes", [String, Object, PubSubEngine]),
41382
+ __metadata("design:returntype", Promise)
41383
+ ], MJBrandKitResolver.prototype, "MJBrandKit", null);
41384
+ __decorate([
41385
+ Mutation(() => MJBrandKit_),
41386
+ __param(0, Arg('input', () => CreateMJBrandKitInput)),
41387
+ __param(1, Ctx()),
41388
+ __param(2, PubSub()),
41389
+ __metadata("design:type", Function),
41390
+ __metadata("design:paramtypes", [CreateMJBrandKitInput, Object, PubSubEngine]),
41391
+ __metadata("design:returntype", Promise)
41392
+ ], MJBrandKitResolver.prototype, "CreateMJBrandKit", null);
41393
+ __decorate([
41394
+ Mutation(() => MJBrandKit_),
41395
+ __param(0, Arg('input', () => UpdateMJBrandKitInput)),
41396
+ __param(1, Ctx()),
41397
+ __param(2, PubSub()),
41398
+ __metadata("design:type", Function),
41399
+ __metadata("design:paramtypes", [UpdateMJBrandKitInput, Object, PubSubEngine]),
41400
+ __metadata("design:returntype", Promise)
41401
+ ], MJBrandKitResolver.prototype, "UpdateMJBrandKit", null);
41402
+ __decorate([
41403
+ Mutation(() => MJBrandKit_),
41404
+ __param(0, Arg('ID', () => String)),
41405
+ __param(1, Arg('options___', () => DeleteOptionsInput)),
41406
+ __param(2, Ctx()),
41407
+ __param(3, PubSub()),
41408
+ __metadata("design:type", Function),
41409
+ __metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
41410
+ __metadata("design:returntype", Promise)
41411
+ ], MJBrandKitResolver.prototype, "DeleteMJBrandKit", null);
41412
+ MJBrandKitResolver = __decorate([
41413
+ Resolver(MJBrandKit_)
41414
+ ], MJBrandKitResolver);
41415
+ export { MJBrandKitResolver };
41416
+ //****************************************************************************
41417
+ // ENTITY CLASS for MJ: Calendar Event Links
41418
+ //****************************************************************************
41419
+ let MJCalendarEventLink_ = class MJCalendarEventLink_ {
41420
+ };
41421
+ __decorate([
41422
+ Field(),
41423
+ MaxLength(36),
41424
+ __metadata("design:type", String)
41425
+ ], MJCalendarEventLink_.prototype, "ID", void 0);
41426
+ __decorate([
41427
+ Field({ nullable: true }),
41428
+ MaxLength(36),
41429
+ __metadata("design:type", String)
41430
+ ], MJCalendarEventLink_.prototype, "CommunicationProviderID", void 0);
41431
+ __decorate([
41432
+ Field({ nullable: true, description: "The calendar account the event lives in: a mailbox address for MS Graph, the account for Google. Later syncs and changes go to the same account." }),
41433
+ MaxLength(255),
41434
+ __metadata("design:type", String)
41435
+ ], MJCalendarEventLink_.prototype, "AccountIdentifier", void 0);
41436
+ __decorate([
41437
+ Field({ nullable: true, description: "The calendar within the account. Null means the account's default calendar." }),
41438
+ MaxLength(500),
41439
+ __metadata("design:type", String)
41440
+ ], MJCalendarEventLink_.prototype, "CalendarID", void 0);
41441
+ __decorate([
41442
+ Field({ nullable: true, description: "The provider's ID for the event in this account. It differs between attendees' calendars; match across calendars on ICalUID." }),
41443
+ MaxLength(500),
41444
+ __metadata("design:type", String)
41445
+ ], MJCalendarEventLink_.prototype, "ExternalEventID", void 0);
41446
+ __decorate([
41447
+ Field({ nullable: true, description: "The provider's ID for the recurring series this event belongs to, when it is an occurrence or exception of one." }),
41448
+ MaxLength(500),
41449
+ __metadata("design:type", String)
41450
+ ], MJCalendarEventLink_.prototype, "ExternalSeriesID", void 0);
41451
+ __decorate([
41452
+ Field({ nullable: true, description: "The event's iCalendar UID (Graph iCalUId, Google iCalUID). The same in every attendee's calendar, so other apps match an imported event to this link by it." }),
41453
+ MaxLength(1000),
41454
+ __metadata("design:type", String)
41455
+ ], MJCalendarEventLink_.prototype, "ICalUID", void 0);
41456
+ __decorate([
41457
+ Field({ nullable: true, description: "The entity of the linked record." }),
41458
+ MaxLength(36),
41459
+ __metadata("design:type", String)
41460
+ ], MJCalendarEventLink_.prototype, "EntityID", void 0);
41461
+ __decorate([
41462
+ Field({ nullable: true, description: "The linked record's primary key, in the compact URL-segment form (a bare value for a single-column key)." }),
41463
+ MaxLength(450),
41464
+ __metadata("design:type", String)
41465
+ ], MJCalendarEventLink_.prototype, "RecordID", void 0);
41466
+ __decorate([
41467
+ Field({ nullable: true, description: "Active, or Cancelled once the event is cancelled, in the calendar or through MemberJunction." }),
41468
+ MaxLength(20),
41469
+ __metadata("design:type", String)
41470
+ ], MJCalendarEventLink_.prototype, "Status", void 0);
41471
+ __decorate([
41472
+ Field({ nullable: true, description: "When a change to this event was last read from or written to the calendar." }),
41473
+ __metadata("design:type", Date)
41474
+ ], MJCalendarEventLink_.prototype, "LastSyncedAt", void 0);
41475
+ __decorate([
41476
+ Field(),
41477
+ __metadata("design:type", Date)
41478
+ ], MJCalendarEventLink_.prototype, "_mj__CreatedAt", void 0);
41479
+ __decorate([
41480
+ Field(),
41481
+ __metadata("design:type", Date)
41482
+ ], MJCalendarEventLink_.prototype, "_mj__UpdatedAt", void 0);
41483
+ __decorate([
41484
+ Field({ nullable: true }),
41485
+ MaxLength(255),
41486
+ __metadata("design:type", String)
41487
+ ], MJCalendarEventLink_.prototype, "CommunicationProvider", void 0);
41488
+ __decorate([
41489
+ Field({ nullable: true }),
41490
+ MaxLength(255),
41491
+ __metadata("design:type", String)
41492
+ ], MJCalendarEventLink_.prototype, "Entity", void 0);
41493
+ __decorate([
41494
+ 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.` }),
41495
+ __metadata("design:type", Array)
41496
+ ], MJCalendarEventLink_.prototype, "ReadableFields___", void 0);
41497
+ MJCalendarEventLink_ = __decorate([
41498
+ ObjectType({ description: "Ties a record to an event in an external calendar (MS Graph, Google Calendar), so any record can be linked to an event without a calendar column on its own table." })
41499
+ ], MJCalendarEventLink_);
41500
+ export { MJCalendarEventLink_ };
41501
+ //****************************************************************************
41502
+ // INPUT TYPE for MJ: Calendar Event Links
41503
+ //****************************************************************************
41504
+ let CreateMJCalendarEventLinkInput = class CreateMJCalendarEventLinkInput {
41505
+ };
41506
+ __decorate([
41507
+ Field({ nullable: true }),
41508
+ __metadata("design:type", String)
41509
+ ], CreateMJCalendarEventLinkInput.prototype, "ID", void 0);
41510
+ __decorate([
41511
+ Field({ nullable: true }),
41512
+ __metadata("design:type", String)
41513
+ ], CreateMJCalendarEventLinkInput.prototype, "CommunicationProviderID", void 0);
41514
+ __decorate([
41515
+ Field({ nullable: true }),
41516
+ __metadata("design:type", String)
41517
+ ], CreateMJCalendarEventLinkInput.prototype, "AccountIdentifier", void 0);
41518
+ __decorate([
41519
+ Field({ nullable: true }),
41520
+ __metadata("design:type", String)
41521
+ ], CreateMJCalendarEventLinkInput.prototype, "CalendarID", void 0);
41522
+ __decorate([
41523
+ Field({ nullable: true }),
41524
+ __metadata("design:type", String)
41525
+ ], CreateMJCalendarEventLinkInput.prototype, "ExternalEventID", void 0);
41526
+ __decorate([
41527
+ Field({ nullable: true }),
41528
+ __metadata("design:type", String)
41529
+ ], CreateMJCalendarEventLinkInput.prototype, "ExternalSeriesID", void 0);
41530
+ __decorate([
41531
+ Field({ nullable: true }),
41532
+ __metadata("design:type", String)
41533
+ ], CreateMJCalendarEventLinkInput.prototype, "ICalUID", void 0);
41534
+ __decorate([
41535
+ Field({ nullable: true }),
41536
+ __metadata("design:type", String)
41537
+ ], CreateMJCalendarEventLinkInput.prototype, "EntityID", void 0);
41538
+ __decorate([
41539
+ Field({ nullable: true }),
41540
+ __metadata("design:type", String)
41541
+ ], CreateMJCalendarEventLinkInput.prototype, "RecordID", void 0);
41542
+ __decorate([
41543
+ Field({ nullable: true }),
41544
+ __metadata("design:type", String)
41545
+ ], CreateMJCalendarEventLinkInput.prototype, "Status", void 0);
41546
+ __decorate([
41547
+ Field({ nullable: true }),
41548
+ __metadata("design:type", Date)
41549
+ ], CreateMJCalendarEventLinkInput.prototype, "LastSyncedAt", void 0);
41550
+ __decorate([
41551
+ Field(() => RestoreContextInput, { nullable: true }),
41552
+ __metadata("design:type", RestoreContextInput)
41553
+ ], CreateMJCalendarEventLinkInput.prototype, "RestoreContext___", void 0);
41554
+ CreateMJCalendarEventLinkInput = __decorate([
41555
+ InputType()
41556
+ ], CreateMJCalendarEventLinkInput);
41557
+ export { CreateMJCalendarEventLinkInput };
41558
+ //****************************************************************************
41559
+ // INPUT TYPE for MJ: Calendar Event Links
41560
+ //****************************************************************************
41561
+ let UpdateMJCalendarEventLinkInput = class UpdateMJCalendarEventLinkInput {
41562
+ };
41563
+ __decorate([
41564
+ Field(),
41565
+ __metadata("design:type", String)
41566
+ ], UpdateMJCalendarEventLinkInput.prototype, "ID", void 0);
41567
+ __decorate([
41568
+ Field({ nullable: true }),
41569
+ __metadata("design:type", String)
41570
+ ], UpdateMJCalendarEventLinkInput.prototype, "CommunicationProviderID", void 0);
41571
+ __decorate([
41572
+ Field({ nullable: true }),
41573
+ __metadata("design:type", String)
41574
+ ], UpdateMJCalendarEventLinkInput.prototype, "AccountIdentifier", void 0);
41575
+ __decorate([
41576
+ Field({ nullable: true }),
41577
+ __metadata("design:type", String)
41578
+ ], UpdateMJCalendarEventLinkInput.prototype, "CalendarID", void 0);
41579
+ __decorate([
41580
+ Field({ nullable: true }),
41581
+ __metadata("design:type", String)
41582
+ ], UpdateMJCalendarEventLinkInput.prototype, "ExternalEventID", void 0);
41583
+ __decorate([
41584
+ Field({ nullable: true }),
41585
+ __metadata("design:type", String)
41586
+ ], UpdateMJCalendarEventLinkInput.prototype, "ExternalSeriesID", void 0);
41587
+ __decorate([
41588
+ Field({ nullable: true }),
41589
+ __metadata("design:type", String)
41590
+ ], UpdateMJCalendarEventLinkInput.prototype, "ICalUID", void 0);
41591
+ __decorate([
41592
+ Field({ nullable: true }),
41593
+ __metadata("design:type", String)
41594
+ ], UpdateMJCalendarEventLinkInput.prototype, "EntityID", void 0);
41595
+ __decorate([
41596
+ Field({ nullable: true }),
41597
+ __metadata("design:type", String)
41598
+ ], UpdateMJCalendarEventLinkInput.prototype, "RecordID", void 0);
41599
+ __decorate([
41600
+ Field({ nullable: true }),
41601
+ __metadata("design:type", String)
41602
+ ], UpdateMJCalendarEventLinkInput.prototype, "Status", void 0);
41603
+ __decorate([
41604
+ Field({ nullable: true }),
41605
+ __metadata("design:type", Date)
41606
+ ], UpdateMJCalendarEventLinkInput.prototype, "LastSyncedAt", void 0);
41607
+ __decorate([
41608
+ Field(() => [KeyValuePairInput], { nullable: true }),
41609
+ __metadata("design:type", Array)
41610
+ ], UpdateMJCalendarEventLinkInput.prototype, "OldValues___", void 0);
41611
+ __decorate([
41612
+ Field(() => RestoreContextInput, { nullable: true }),
41613
+ __metadata("design:type", RestoreContextInput)
41614
+ ], UpdateMJCalendarEventLinkInput.prototype, "RestoreContext___", void 0);
41615
+ UpdateMJCalendarEventLinkInput = __decorate([
41616
+ InputType()
41617
+ ], UpdateMJCalendarEventLinkInput);
41618
+ export { UpdateMJCalendarEventLinkInput };
41619
+ //****************************************************************************
41620
+ // RESOLVER for MJ: Calendar Event Links
41621
+ //****************************************************************************
41622
+ let RunMJCalendarEventLinkViewResult = class RunMJCalendarEventLinkViewResult {
41623
+ };
41624
+ __decorate([
41625
+ Field(() => [MJCalendarEventLink_]),
41626
+ __metadata("design:type", Array)
41627
+ ], RunMJCalendarEventLinkViewResult.prototype, "Results", void 0);
41628
+ __decorate([
41629
+ Field(() => String, { nullable: true }),
41630
+ __metadata("design:type", String)
41631
+ ], RunMJCalendarEventLinkViewResult.prototype, "UserViewRunID", void 0);
41632
+ __decorate([
41633
+ Field(() => Int, { nullable: true }),
41634
+ __metadata("design:type", Number)
41635
+ ], RunMJCalendarEventLinkViewResult.prototype, "RowCount", void 0);
41636
+ __decorate([
41637
+ Field(() => Int, { nullable: true }),
41638
+ __metadata("design:type", Number)
41639
+ ], RunMJCalendarEventLinkViewResult.prototype, "TotalRowCount", void 0);
41640
+ __decorate([
41641
+ Field(() => Int, { nullable: true }),
41642
+ __metadata("design:type", Number)
41643
+ ], RunMJCalendarEventLinkViewResult.prototype, "ExecutionTime", void 0);
41644
+ __decorate([
41645
+ Field({ nullable: true }),
41646
+ __metadata("design:type", String)
41647
+ ], RunMJCalendarEventLinkViewResult.prototype, "ErrorMessage", void 0);
41648
+ __decorate([
41649
+ Field(() => Boolean, { nullable: false }),
41650
+ __metadata("design:type", Boolean)
41651
+ ], RunMJCalendarEventLinkViewResult.prototype, "Success", void 0);
41652
+ RunMJCalendarEventLinkViewResult = __decorate([
41653
+ ObjectType()
41654
+ ], RunMJCalendarEventLinkViewResult);
41655
+ export { RunMJCalendarEventLinkViewResult };
41656
+ let MJCalendarEventLinkResolver = class MJCalendarEventLinkResolver extends ResolverBase {
41657
+ async RunMJCalendarEventLinkViewByID(input, { providers, userPayload }, pubSub) {
41658
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
41659
+ return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
41660
+ }
41661
+ async RunMJCalendarEventLinkViewByName(input, { providers, userPayload }, pubSub) {
41662
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
41663
+ return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
41664
+ }
41665
+ async RunMJCalendarEventLinkDynamicView(input, { providers, userPayload }, pubSub) {
41666
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
41667
+ input.EntityName = 'MJ: Calendar Event Links';
41668
+ return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
41669
+ }
41670
+ async MJCalendarEventLink(ID, { userPayload, providers }, pubSub) {
41671
+ this.CheckUserReadPermissions('MJ: Calendar Event Links', userPayload);
41672
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
41673
+ const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwCalendarEventLinks')} WHERE ${provider.QuoteIdentifier('ID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Calendar Event Links', userPayload, EntityPermissionType.Read, 'AND');
41674
+ const rows = await provider.ExecuteSQL(sSQL, [ID], undefined, this.GetUserFromPayload(userPayload));
41675
+ const result = await this.MapFieldNamesToCodeNames('MJ: Calendar Event Links', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
41676
+ return result;
41677
+ }
41678
+ async CreateMJCalendarEventLink(input, { providers, userPayload }, pubSub) {
41679
+ const provider = GetReadWriteProvider(providers);
41680
+ return this.CreateRecord('MJ: Calendar Event Links', input, provider, userPayload, pubSub);
41681
+ }
41682
+ async UpdateMJCalendarEventLink(input, { providers, userPayload }, pubSub) {
41683
+ const provider = GetReadWriteProvider(providers);
41684
+ return this.UpdateRecord('MJ: Calendar Event Links', input, provider, userPayload, pubSub);
41685
+ }
41686
+ async DeleteMJCalendarEventLink(ID, options, { providers, userPayload }, pubSub) {
41687
+ const provider = GetReadWriteProvider(providers);
41688
+ const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
41689
+ return this.DeleteRecord('MJ: Calendar Event Links', key, options, provider, userPayload, pubSub);
41690
+ }
41691
+ };
41692
+ __decorate([
41693
+ Query(() => RunMJCalendarEventLinkViewResult),
41694
+ __param(0, Arg('input', () => RunViewByIDInput)),
41695
+ __param(1, Ctx()),
41696
+ __param(2, PubSub()),
41697
+ __metadata("design:type", Function),
41698
+ __metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
41699
+ __metadata("design:returntype", Promise)
41700
+ ], MJCalendarEventLinkResolver.prototype, "RunMJCalendarEventLinkViewByID", null);
41701
+ __decorate([
41702
+ Query(() => RunMJCalendarEventLinkViewResult),
41703
+ __param(0, Arg('input', () => RunViewByNameInput)),
41704
+ __param(1, Ctx()),
41705
+ __param(2, PubSub()),
41706
+ __metadata("design:type", Function),
41707
+ __metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
41708
+ __metadata("design:returntype", Promise)
41709
+ ], MJCalendarEventLinkResolver.prototype, "RunMJCalendarEventLinkViewByName", null);
41710
+ __decorate([
41711
+ Query(() => RunMJCalendarEventLinkViewResult),
41712
+ __param(0, Arg('input', () => RunDynamicViewInput)),
41713
+ __param(1, Ctx()),
41714
+ __param(2, PubSub()),
41715
+ __metadata("design:type", Function),
41716
+ __metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
41717
+ __metadata("design:returntype", Promise)
41718
+ ], MJCalendarEventLinkResolver.prototype, "RunMJCalendarEventLinkDynamicView", null);
41719
+ __decorate([
41720
+ Query(() => MJCalendarEventLink_, { nullable: true }),
41721
+ __param(0, Arg('ID', () => String)),
41722
+ __param(1, Ctx()),
41723
+ __param(2, PubSub()),
41724
+ __metadata("design:type", Function),
41725
+ __metadata("design:paramtypes", [String, Object, PubSubEngine]),
41726
+ __metadata("design:returntype", Promise)
41727
+ ], MJCalendarEventLinkResolver.prototype, "MJCalendarEventLink", null);
41728
+ __decorate([
41729
+ Mutation(() => MJCalendarEventLink_),
41730
+ __param(0, Arg('input', () => CreateMJCalendarEventLinkInput)),
41731
+ __param(1, Ctx()),
41732
+ __param(2, PubSub()),
41733
+ __metadata("design:type", Function),
41734
+ __metadata("design:paramtypes", [CreateMJCalendarEventLinkInput, Object, PubSubEngine]),
41735
+ __metadata("design:returntype", Promise)
41736
+ ], MJCalendarEventLinkResolver.prototype, "CreateMJCalendarEventLink", null);
41737
+ __decorate([
41738
+ Mutation(() => MJCalendarEventLink_),
41739
+ __param(0, Arg('input', () => UpdateMJCalendarEventLinkInput)),
41740
+ __param(1, Ctx()),
41741
+ __param(2, PubSub()),
41742
+ __metadata("design:type", Function),
41743
+ __metadata("design:paramtypes", [UpdateMJCalendarEventLinkInput, Object, PubSubEngine]),
41744
+ __metadata("design:returntype", Promise)
41745
+ ], MJCalendarEventLinkResolver.prototype, "UpdateMJCalendarEventLink", null);
41746
+ __decorate([
41747
+ Mutation(() => MJCalendarEventLink_),
41748
+ __param(0, Arg('ID', () => String)),
41749
+ __param(1, Arg('options___', () => DeleteOptionsInput)),
41750
+ __param(2, Ctx()),
41751
+ __param(3, PubSub()),
41752
+ __metadata("design:type", Function),
41753
+ __metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
41754
+ __metadata("design:returntype", Promise)
41755
+ ], MJCalendarEventLinkResolver.prototype, "DeleteMJCalendarEventLink", null);
41756
+ MJCalendarEventLinkResolver = __decorate([
41757
+ Resolver(MJCalendarEventLink_)
41758
+ ], MJCalendarEventLinkResolver);
41759
+ export { MJCalendarEventLinkResolver };
41760
+ //****************************************************************************
41761
+ // ENTITY CLASS for MJ: Calendar Sync States
41762
+ //****************************************************************************
41763
+ let MJCalendarSyncState_ = class MJCalendarSyncState_ {
41764
+ };
41765
+ __decorate([
41766
+ Field(),
41767
+ MaxLength(36),
41768
+ __metadata("design:type", String)
41769
+ ], MJCalendarSyncState_.prototype, "ID", void 0);
41770
+ __decorate([
41771
+ Field({ nullable: true }),
41772
+ MaxLength(36),
41773
+ __metadata("design:type", String)
41774
+ ], MJCalendarSyncState_.prototype, "CommunicationProviderID", void 0);
41775
+ __decorate([
41776
+ Field({ nullable: true, description: "The calendar account: a mailbox address for MS Graph, the account for Google." }),
41777
+ MaxLength(255),
41778
+ __metadata("design:type", String)
41779
+ ], MJCalendarSyncState_.prototype, "AccountIdentifier", void 0);
41780
+ __decorate([
41781
+ Field({ nullable: true, description: "The calendar within the account. Null means the account's default calendar." }),
41782
+ MaxLength(500),
41783
+ __metadata("design:type", String)
41784
+ ], MJCalendarSyncState_.prototype, "CalendarID", void 0);
41785
+ __decorate([
41786
+ Field({ nullable: true, description: "The provider's cursor for the next incremental sync: a Graph delta link or a Google sync token. Null until the first sync." }),
41787
+ __metadata("design:type", String)
41788
+ ], MJCalendarSyncState_.prototype, "SyncToken", void 0);
41789
+ __decorate([
41790
+ Field({ nullable: true, description: "When this calendar was last synced." }),
41791
+ __metadata("design:type", Date)
41792
+ ], MJCalendarSyncState_.prototype, "LastSyncedAt", void 0);
41793
+ __decorate([
41794
+ Field(),
41795
+ __metadata("design:type", Date)
41796
+ ], MJCalendarSyncState_.prototype, "_mj__CreatedAt", void 0);
41797
+ __decorate([
41798
+ Field(),
41799
+ __metadata("design:type", Date)
41800
+ ], MJCalendarSyncState_.prototype, "_mj__UpdatedAt", void 0);
41801
+ __decorate([
41802
+ Field({ nullable: true }),
41803
+ MaxLength(255),
41804
+ __metadata("design:type", String)
41805
+ ], MJCalendarSyncState_.prototype, "CommunicationProvider", void 0);
41806
+ __decorate([
41807
+ 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.` }),
41808
+ __metadata("design:type", Array)
41809
+ ], MJCalendarSyncState_.prototype, "ReadableFields___", void 0);
41810
+ MJCalendarSyncState_ = __decorate([
41811
+ ObjectType({ description: "One sync cursor per external calendar, so an incremental sync reads only what changed since the last one." })
41812
+ ], MJCalendarSyncState_);
41813
+ export { MJCalendarSyncState_ };
41814
+ //****************************************************************************
41815
+ // INPUT TYPE for MJ: Calendar Sync States
41816
+ //****************************************************************************
41817
+ let CreateMJCalendarSyncStateInput = class CreateMJCalendarSyncStateInput {
41818
+ };
41819
+ __decorate([
41820
+ Field({ nullable: true }),
41821
+ __metadata("design:type", String)
41822
+ ], CreateMJCalendarSyncStateInput.prototype, "ID", void 0);
41823
+ __decorate([
41824
+ Field({ nullable: true }),
41825
+ __metadata("design:type", String)
41826
+ ], CreateMJCalendarSyncStateInput.prototype, "CommunicationProviderID", void 0);
41827
+ __decorate([
41828
+ Field({ nullable: true }),
41829
+ __metadata("design:type", String)
41830
+ ], CreateMJCalendarSyncStateInput.prototype, "AccountIdentifier", void 0);
41831
+ __decorate([
41832
+ Field({ nullable: true }),
41833
+ __metadata("design:type", String)
41834
+ ], CreateMJCalendarSyncStateInput.prototype, "CalendarID", void 0);
41835
+ __decorate([
41836
+ Field({ nullable: true }),
41837
+ __metadata("design:type", String)
41838
+ ], CreateMJCalendarSyncStateInput.prototype, "SyncToken", void 0);
41839
+ __decorate([
41840
+ Field({ nullable: true }),
41841
+ __metadata("design:type", Date)
41842
+ ], CreateMJCalendarSyncStateInput.prototype, "LastSyncedAt", void 0);
41843
+ __decorate([
41844
+ Field(() => RestoreContextInput, { nullable: true }),
41845
+ __metadata("design:type", RestoreContextInput)
41846
+ ], CreateMJCalendarSyncStateInput.prototype, "RestoreContext___", void 0);
41847
+ CreateMJCalendarSyncStateInput = __decorate([
41848
+ InputType()
41849
+ ], CreateMJCalendarSyncStateInput);
41850
+ export { CreateMJCalendarSyncStateInput };
41851
+ //****************************************************************************
41852
+ // INPUT TYPE for MJ: Calendar Sync States
41853
+ //****************************************************************************
41854
+ let UpdateMJCalendarSyncStateInput = class UpdateMJCalendarSyncStateInput {
41855
+ };
41856
+ __decorate([
41857
+ Field(),
41858
+ __metadata("design:type", String)
41859
+ ], UpdateMJCalendarSyncStateInput.prototype, "ID", void 0);
41860
+ __decorate([
41861
+ Field({ nullable: true }),
41862
+ __metadata("design:type", String)
41863
+ ], UpdateMJCalendarSyncStateInput.prototype, "CommunicationProviderID", void 0);
41864
+ __decorate([
41865
+ Field({ nullable: true }),
41866
+ __metadata("design:type", String)
41867
+ ], UpdateMJCalendarSyncStateInput.prototype, "AccountIdentifier", void 0);
41868
+ __decorate([
41869
+ Field({ nullable: true }),
41870
+ __metadata("design:type", String)
41871
+ ], UpdateMJCalendarSyncStateInput.prototype, "CalendarID", void 0);
41872
+ __decorate([
41873
+ Field({ nullable: true }),
41874
+ __metadata("design:type", String)
41875
+ ], UpdateMJCalendarSyncStateInput.prototype, "SyncToken", void 0);
41876
+ __decorate([
41877
+ Field({ nullable: true }),
41878
+ __metadata("design:type", Date)
41879
+ ], UpdateMJCalendarSyncStateInput.prototype, "LastSyncedAt", void 0);
41880
+ __decorate([
41881
+ Field(() => [KeyValuePairInput], { nullable: true }),
41882
+ __metadata("design:type", Array)
41883
+ ], UpdateMJCalendarSyncStateInput.prototype, "OldValues___", void 0);
41884
+ __decorate([
41885
+ Field(() => RestoreContextInput, { nullable: true }),
41886
+ __metadata("design:type", RestoreContextInput)
41887
+ ], UpdateMJCalendarSyncStateInput.prototype, "RestoreContext___", void 0);
41888
+ UpdateMJCalendarSyncStateInput = __decorate([
41889
+ InputType()
41890
+ ], UpdateMJCalendarSyncStateInput);
41891
+ export { UpdateMJCalendarSyncStateInput };
41892
+ //****************************************************************************
41893
+ // RESOLVER for MJ: Calendar Sync States
41894
+ //****************************************************************************
41895
+ let RunMJCalendarSyncStateViewResult = class RunMJCalendarSyncStateViewResult {
41896
+ };
41897
+ __decorate([
41898
+ Field(() => [MJCalendarSyncState_]),
41899
+ __metadata("design:type", Array)
41900
+ ], RunMJCalendarSyncStateViewResult.prototype, "Results", void 0);
41901
+ __decorate([
41902
+ Field(() => String, { nullable: true }),
41903
+ __metadata("design:type", String)
41904
+ ], RunMJCalendarSyncStateViewResult.prototype, "UserViewRunID", void 0);
41905
+ __decorate([
41906
+ Field(() => Int, { nullable: true }),
41907
+ __metadata("design:type", Number)
41908
+ ], RunMJCalendarSyncStateViewResult.prototype, "RowCount", void 0);
41909
+ __decorate([
41910
+ Field(() => Int, { nullable: true }),
41911
+ __metadata("design:type", Number)
41912
+ ], RunMJCalendarSyncStateViewResult.prototype, "TotalRowCount", void 0);
41913
+ __decorate([
41914
+ Field(() => Int, { nullable: true }),
41915
+ __metadata("design:type", Number)
41916
+ ], RunMJCalendarSyncStateViewResult.prototype, "ExecutionTime", void 0);
41917
+ __decorate([
41918
+ Field({ nullable: true }),
41919
+ __metadata("design:type", String)
41920
+ ], RunMJCalendarSyncStateViewResult.prototype, "ErrorMessage", void 0);
41921
+ __decorate([
41922
+ Field(() => Boolean, { nullable: false }),
41923
+ __metadata("design:type", Boolean)
41924
+ ], RunMJCalendarSyncStateViewResult.prototype, "Success", void 0);
41925
+ RunMJCalendarSyncStateViewResult = __decorate([
41926
+ ObjectType()
41927
+ ], RunMJCalendarSyncStateViewResult);
41928
+ export { RunMJCalendarSyncStateViewResult };
41929
+ let MJCalendarSyncStateResolver = class MJCalendarSyncStateResolver extends ResolverBase {
41930
+ async RunMJCalendarSyncStateViewByID(input, { providers, userPayload }, pubSub) {
41931
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
41932
+ return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
41933
+ }
41934
+ async RunMJCalendarSyncStateViewByName(input, { providers, userPayload }, pubSub) {
41935
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
41936
+ return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
41937
+ }
41938
+ async RunMJCalendarSyncStateDynamicView(input, { providers, userPayload }, pubSub) {
41939
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
41940
+ input.EntityName = 'MJ: Calendar Sync States';
41941
+ return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
41942
+ }
41943
+ async MJCalendarSyncState(ID, { userPayload, providers }, pubSub) {
41944
+ this.CheckUserReadPermissions('MJ: Calendar Sync States', userPayload);
41945
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
41946
+ const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwCalendarSyncStates')} WHERE ${provider.QuoteIdentifier('ID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Calendar Sync States', userPayload, EntityPermissionType.Read, 'AND');
41947
+ const rows = await provider.ExecuteSQL(sSQL, [ID], undefined, this.GetUserFromPayload(userPayload));
41948
+ const result = await this.MapFieldNamesToCodeNames('MJ: Calendar Sync States', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
41949
+ return result;
41950
+ }
41951
+ async CreateMJCalendarSyncState(input, { providers, userPayload }, pubSub) {
41952
+ const provider = GetReadWriteProvider(providers);
41953
+ return this.CreateRecord('MJ: Calendar Sync States', input, provider, userPayload, pubSub);
41954
+ }
41955
+ async UpdateMJCalendarSyncState(input, { providers, userPayload }, pubSub) {
41956
+ const provider = GetReadWriteProvider(providers);
41957
+ return this.UpdateRecord('MJ: Calendar Sync States', input, provider, userPayload, pubSub);
41958
+ }
41959
+ async DeleteMJCalendarSyncState(ID, options, { providers, userPayload }, pubSub) {
41960
+ const provider = GetReadWriteProvider(providers);
41961
+ const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
41962
+ return this.DeleteRecord('MJ: Calendar Sync States', key, options, provider, userPayload, pubSub);
41963
+ }
41964
+ };
41965
+ __decorate([
41966
+ Query(() => RunMJCalendarSyncStateViewResult),
41967
+ __param(0, Arg('input', () => RunViewByIDInput)),
41968
+ __param(1, Ctx()),
41969
+ __param(2, PubSub()),
41970
+ __metadata("design:type", Function),
41971
+ __metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
41972
+ __metadata("design:returntype", Promise)
41973
+ ], MJCalendarSyncStateResolver.prototype, "RunMJCalendarSyncStateViewByID", null);
41974
+ __decorate([
41975
+ Query(() => RunMJCalendarSyncStateViewResult),
41976
+ __param(0, Arg('input', () => RunViewByNameInput)),
41977
+ __param(1, Ctx()),
41978
+ __param(2, PubSub()),
41979
+ __metadata("design:type", Function),
41980
+ __metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
41981
+ __metadata("design:returntype", Promise)
41982
+ ], MJCalendarSyncStateResolver.prototype, "RunMJCalendarSyncStateViewByName", null);
41983
+ __decorate([
41984
+ Query(() => RunMJCalendarSyncStateViewResult),
41985
+ __param(0, Arg('input', () => RunDynamicViewInput)),
41986
+ __param(1, Ctx()),
41987
+ __param(2, PubSub()),
41988
+ __metadata("design:type", Function),
41989
+ __metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
41990
+ __metadata("design:returntype", Promise)
41991
+ ], MJCalendarSyncStateResolver.prototype, "RunMJCalendarSyncStateDynamicView", null);
41992
+ __decorate([
41993
+ Query(() => MJCalendarSyncState_, { nullable: true }),
41994
+ __param(0, Arg('ID', () => String)),
41995
+ __param(1, Ctx()),
41996
+ __param(2, PubSub()),
41997
+ __metadata("design:type", Function),
41998
+ __metadata("design:paramtypes", [String, Object, PubSubEngine]),
41999
+ __metadata("design:returntype", Promise)
42000
+ ], MJCalendarSyncStateResolver.prototype, "MJCalendarSyncState", null);
42001
+ __decorate([
42002
+ Mutation(() => MJCalendarSyncState_),
42003
+ __param(0, Arg('input', () => CreateMJCalendarSyncStateInput)),
42004
+ __param(1, Ctx()),
42005
+ __param(2, PubSub()),
42006
+ __metadata("design:type", Function),
42007
+ __metadata("design:paramtypes", [CreateMJCalendarSyncStateInput, Object, PubSubEngine]),
42008
+ __metadata("design:returntype", Promise)
42009
+ ], MJCalendarSyncStateResolver.prototype, "CreateMJCalendarSyncState", null);
42010
+ __decorate([
42011
+ Mutation(() => MJCalendarSyncState_),
42012
+ __param(0, Arg('input', () => UpdateMJCalendarSyncStateInput)),
42013
+ __param(1, Ctx()),
42014
+ __param(2, PubSub()),
42015
+ __metadata("design:type", Function),
42016
+ __metadata("design:paramtypes", [UpdateMJCalendarSyncStateInput, Object, PubSubEngine]),
42017
+ __metadata("design:returntype", Promise)
42018
+ ], MJCalendarSyncStateResolver.prototype, "UpdateMJCalendarSyncState", null);
42019
+ __decorate([
42020
+ Mutation(() => MJCalendarSyncState_),
42021
+ __param(0, Arg('ID', () => String)),
42022
+ __param(1, Arg('options___', () => DeleteOptionsInput)),
42023
+ __param(2, Ctx()),
42024
+ __param(3, PubSub()),
42025
+ __metadata("design:type", Function),
42026
+ __metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
42027
+ __metadata("design:returntype", Promise)
42028
+ ], MJCalendarSyncStateResolver.prototype, "DeleteMJCalendarSyncState", null);
42029
+ MJCalendarSyncStateResolver = __decorate([
42030
+ Resolver(MJCalendarSyncState_)
42031
+ ], MJCalendarSyncStateResolver);
42032
+ export { MJCalendarSyncStateResolver };
42033
+ //****************************************************************************
40769
42034
  // ENTITY CLASS for MJ: Cluster Analysis
40770
42035
  //****************************************************************************
40771
42036
  let MJClusterAnalysis_ = class MJClusterAnalysis_ {
@@ -43262,6 +44527,15 @@ __decorate([
43262
44527
  MaxLength(36),
43263
44528
  __metadata("design:type", String)
43264
44529
  ], MJCommunicationProvider_.prototype, "DefaultCredentialID", void 0);
44530
+ __decorate([
44531
+ Field(() => Boolean, { nullable: true, description: "Posture 3 master switch (Gate 1). When 1, users may connect their own mailbox/calendar to this provider through per-user delegated OAuth 2.0 (3LO) with PKCE, subject to AllowedEmailDomains and AllowedOAuthTenantIDs. Default 0: no user can initiate a personal OAuth flow." }),
44532
+ __metadata("design:type", Boolean)
44533
+ ], MJCommunicationProvider_.prototype, "AllowUserDelegatedOAuth", void 0);
44534
+ __decorate([
44535
+ Field({ nullable: true, description: "Optional comma-separated allowlist of identity tenant identifiers (Gate 3) that a user-delegated OAuth token must carry: Azure AD tenant IDs (tid) or Google Workspace hosted domains (hd). NULL means no tenant restriction beyond AllowedEmailDomains." }),
44536
+ MaxLength(1000),
44537
+ __metadata("design:type", String)
44538
+ ], MJCommunicationProvider_.prototype, "AllowedOAuthTenantIDs", void 0);
43265
44539
  __decorate([
43266
44540
  Field({ nullable: true }),
43267
44541
  MaxLength(200),
@@ -43340,6 +44614,14 @@ __decorate([
43340
44614
  Field({ nullable: true }),
43341
44615
  __metadata("design:type", String)
43342
44616
  ], CreateMJCommunicationProviderInput.prototype, "DefaultCredentialID", void 0);
44617
+ __decorate([
44618
+ Field(() => Boolean, { nullable: true }),
44619
+ __metadata("design:type", Boolean)
44620
+ ], CreateMJCommunicationProviderInput.prototype, "AllowUserDelegatedOAuth", void 0);
44621
+ __decorate([
44622
+ Field({ nullable: true }),
44623
+ __metadata("design:type", String)
44624
+ ], CreateMJCommunicationProviderInput.prototype, "AllowedOAuthTenantIDs", void 0);
43343
44625
  __decorate([
43344
44626
  Field(() => RestoreContextInput, { nullable: true }),
43345
44627
  __metadata("design:type", RestoreContextInput)
@@ -43413,6 +44695,14 @@ __decorate([
43413
44695
  Field({ nullable: true }),
43414
44696
  __metadata("design:type", String)
43415
44697
  ], UpdateMJCommunicationProviderInput.prototype, "DefaultCredentialID", void 0);
44698
+ __decorate([
44699
+ Field(() => Boolean, { nullable: true }),
44700
+ __metadata("design:type", Boolean)
44701
+ ], UpdateMJCommunicationProviderInput.prototype, "AllowUserDelegatedOAuth", void 0);
44702
+ __decorate([
44703
+ Field({ nullable: true }),
44704
+ __metadata("design:type", String)
44705
+ ], UpdateMJCommunicationProviderInput.prototype, "AllowedOAuthTenantIDs", void 0);
43416
44706
  __decorate([
43417
44707
  Field(() => [KeyValuePairInput], { nullable: true }),
43418
44708
  __metadata("design:type", Array)
@@ -44878,6 +46168,1445 @@ MJCompanyIntegrationFieldMapResolver = __decorate([
44878
46168
  ], MJCompanyIntegrationFieldMapResolver);
44879
46169
  export { MJCompanyIntegrationFieldMapResolver };
44880
46170
  //****************************************************************************
46171
+ // ENTITY CLASS for MJ: Company Integration Object Fields
46172
+ //****************************************************************************
46173
+ let MJCompanyIntegrationObjectField_ = class MJCompanyIntegrationObjectField_ {
46174
+ };
46175
+ __decorate([
46176
+ Field(),
46177
+ MaxLength(36),
46178
+ __metadata("design:type", String)
46179
+ ], MJCompanyIntegrationObjectField_.prototype, "ID", void 0);
46180
+ __decorate([
46181
+ Field({ nullable: true, description: "Field name as returned by the external API" }),
46182
+ MaxLength(255),
46183
+ __metadata("design:type", String)
46184
+ ], MJCompanyIntegrationObjectField_.prototype, "Name", void 0);
46185
+ __decorate([
46186
+ Field({ nullable: true, description: "Human-friendly display label for the field" }),
46187
+ MaxLength(255),
46188
+ __metadata("design:type", String)
46189
+ ], MJCompanyIntegrationObjectField_.prototype, "DisplayName", void 0);
46190
+ __decorate([
46191
+ Field({ nullable: true, description: "Description of what this field represents" }),
46192
+ __metadata("design:type", String)
46193
+ ], MJCompanyIntegrationObjectField_.prototype, "Description", void 0);
46194
+ __decorate([
46195
+ Field({ nullable: true, description: "UI grouping category within the object" }),
46196
+ MaxLength(100),
46197
+ __metadata("design:type", String)
46198
+ ], MJCompanyIntegrationObjectField_.prototype, "Category", void 0);
46199
+ __decorate([
46200
+ Field({ nullable: true, description: "Data type of the field (e.g., nvarchar, int, datetime, decimal, bit). Uses same type vocabulary as EntityField." }),
46201
+ MaxLength(100),
46202
+ __metadata("design:type", String)
46203
+ ], MJCompanyIntegrationObjectField_.prototype, "Type", void 0);
46204
+ __decorate([
46205
+ Field(() => Int, { nullable: true, description: "Maximum length for string types" }),
46206
+ __metadata("design:type", Number)
46207
+ ], MJCompanyIntegrationObjectField_.prototype, "Length", void 0);
46208
+ __decorate([
46209
+ Field(() => Int, { nullable: true, description: "Numeric precision" }),
46210
+ __metadata("design:type", Number)
46211
+ ], MJCompanyIntegrationObjectField_.prototype, "Precision", void 0);
46212
+ __decorate([
46213
+ Field(() => Int, { nullable: true, description: "Numeric scale" }),
46214
+ __metadata("design:type", Number)
46215
+ ], MJCompanyIntegrationObjectField_.prototype, "Scale", void 0);
46216
+ __decorate([
46217
+ Field(() => Boolean, { nullable: true, description: "Whether the field can contain NULL values" }),
46218
+ __metadata("design:type", Boolean)
46219
+ ], MJCompanyIntegrationObjectField_.prototype, "AllowsNull", void 0);
46220
+ __decorate([
46221
+ Field({ nullable: true, description: "Default value from the source system" }),
46222
+ MaxLength(255),
46223
+ __metadata("design:type", String)
46224
+ ], MJCompanyIntegrationObjectField_.prototype, "DefaultValue", void 0);
46225
+ __decorate([
46226
+ Field(() => Boolean, { nullable: true, description: "Whether this field is part of the object primary key" }),
46227
+ __metadata("design:type", Boolean)
46228
+ ], MJCompanyIntegrationObjectField_.prototype, "IsPrimaryKey", void 0);
46229
+ __decorate([
46230
+ Field(() => Boolean, { nullable: true, description: "Whether values must be unique across all records" }),
46231
+ __metadata("design:type", Boolean)
46232
+ ], MJCompanyIntegrationObjectField_.prototype, "IsUniqueKey", void 0);
46233
+ __decorate([
46234
+ Field(() => Boolean, { nullable: true, description: "Whether this field cannot be written back to the source system" }),
46235
+ __metadata("design:type", Boolean)
46236
+ ], MJCompanyIntegrationObjectField_.prototype, "IsReadOnly", void 0);
46237
+ __decorate([
46238
+ Field(() => Boolean, { nullable: true, description: "Whether this field is required for create/update operations" }),
46239
+ __metadata("design:type", Boolean)
46240
+ ], MJCompanyIntegrationObjectField_.prototype, "IsRequired", void 0);
46241
+ __decorate([
46242
+ Field({ nullable: true, description: "The field name on the related IntegrationObject that this FK points to (typically the PK field)" }),
46243
+ MaxLength(255),
46244
+ __metadata("design:type", String)
46245
+ ], MJCompanyIntegrationObjectField_.prototype, "RelatedIntegrationObjectFieldName", void 0);
46246
+ __decorate([
46247
+ Field(() => Int, { nullable: true, description: "Display and processing order within the object. Lower numbers appear first." }),
46248
+ __metadata("design:type", Number)
46249
+ ], MJCompanyIntegrationObjectField_.prototype, "Sequence", void 0);
46250
+ __decorate([
46251
+ Field({ nullable: true, description: "Freeform JSON for connector-specific field configuration" }),
46252
+ __metadata("design:type", String)
46253
+ ], MJCompanyIntegrationObjectField_.prototype, "Configuration", void 0);
46254
+ __decorate([
46255
+ Field({ nullable: true, description: "Active, Deprecated, or Disabled. Mirrors EntityField status values." }),
46256
+ MaxLength(25),
46257
+ __metadata("design:type", String)
46258
+ ], MJCompanyIntegrationObjectField_.prototype, "Status", void 0);
46259
+ __decorate([
46260
+ Field(() => Boolean, { nullable: true, description: "When true, this field was dynamically discovered by IntrospectSchema and is not defined in static connector metadata." }),
46261
+ __metadata("design:type", Boolean)
46262
+ ], MJCompanyIntegrationObjectField_.prototype, "IsCustom", void 0);
46263
+ __decorate([
46264
+ Field({ nullable: true, description: "Provenance of this CompanyIntegrationObjectField row: Declared (from static research/docs), Discovered (from runtime API introspection), Custom (customer-defined custom field, e.g., HubSpot custom property on standard object). Drives merge precedence — discovered/runtime wins for type/constraints; declared wins for description/label/sequence/category." }),
46265
+ MaxLength(20),
46266
+ __metadata("design:type", String)
46267
+ ], MJCompanyIntegrationObjectField_.prototype, "MetadataSource", void 0);
46268
+ __decorate([
46269
+ Field({ nullable: true }),
46270
+ MaxLength(36),
46271
+ __metadata("design:type", String)
46272
+ ], MJCompanyIntegrationObjectField_.prototype, "CompanyIntegrationObjectID", void 0);
46273
+ __decorate([
46274
+ Field({ nullable: true }),
46275
+ MaxLength(36),
46276
+ __metadata("design:type", String)
46277
+ ], MJCompanyIntegrationObjectField_.prototype, "RelatedCompanyIntegrationObjectID", void 0);
46278
+ __decorate([
46279
+ Field({ nullable: true }),
46280
+ MaxLength(36),
46281
+ __metadata("design:type", String)
46282
+ ], MJCompanyIntegrationObjectField_.prototype, "IntegrationObjectFieldID", void 0);
46283
+ __decorate([
46284
+ Field(() => Int, { nullable: true, description: "The longest value sampling actually saw, kept SEPARATE from Length. Length carries the padded width the schema builder will use; this carries the evidence. Without both, a width cannot be audited and a truncation cannot be distinguished from a bad guess." }),
46285
+ __metadata("design:type", Number)
46286
+ ], MJCompanyIntegrationObjectField_.prototype, "ObservedMaxLength", void 0);
46287
+ __decorate([
46288
+ Field({ nullable: true, description: "Where this row came from: Declared (the connector shipped catalog), Endpoint (the source listed it) or Sampled (only streaming records revealed it). Answers \"whose is this\" for a connection whose catalog no longer matches the connector default." }),
46289
+ MaxLength(20),
46290
+ __metadata("design:type", String)
46291
+ ], MJCompanyIntegrationObjectField_.prototype, "Provenance", void 0);
46292
+ __decorate([
46293
+ Field({ nullable: true, description: "The per-attribute merge log for this row: which side won each overlay decision and why. The persist already computes this and throws it away, so the operator has never been able to see why a width or a key looks the way it does." }),
46294
+ __metadata("design:type", String)
46295
+ ], MJCompanyIntegrationObjectField_.prototype, "ProvenanceDetail", void 0);
46296
+ __decorate([
46297
+ Field(() => Boolean, { nullable: true, description: "Whether this connection syncs this item. THE AXIS THAT MAKES THE CONTRACT SATISFIABLE: Status says whether the item is in the catalog at all, IsSelected says whether the customer chose it. Conflating the two is why a newly discovered object had to arrive ENABLED — a disabled object was excluded from schema introspection, so it never reached key inference and never reached a migration." }),
46298
+ __metadata("design:type", Boolean)
46299
+ ], MJCompanyIntegrationObjectField_.prototype, "IsSelected", void 0);
46300
+ __decorate([
46301
+ Field({ nullable: true, description: "When the selection last changed. Lets the UI distinguish \"never chosen\" from \"deliberately deselected\"." }),
46302
+ __metadata("design:type", Date)
46303
+ ], MJCompanyIntegrationObjectField_.prototype, "SelectedAt", void 0);
46304
+ __decorate([
46305
+ Field({ nullable: true, description: "When this connection first observed this item. Set once and never updated, so a catalog can be read as a history of what the source exposed and when." }),
46306
+ __metadata("design:type", Date)
46307
+ ], MJCompanyIntegrationObjectField_.prototype, "FirstSeenAt", void 0);
46308
+ __decorate([
46309
+ Field({ nullable: true, description: "When this connection most recently observed this item. A row whose LastSeenAt is older than the connection last discovery is what \"absent from the source\" means." }),
46310
+ __metadata("design:type", Date)
46311
+ ], MJCompanyIntegrationObjectField_.prototype, "LastSeenAt", void 0);
46312
+ __decorate([
46313
+ Field({ nullable: true, description: "When sampling last streamed records for this item. Distinct from LastSeenAt: an item can be listed by an endpoint without ever being sampled, and unsampled items are exactly the ones whose widths and keys came from the declared catalog rather than from data." }),
46314
+ __metadata("design:type", Date)
46315
+ ], MJCompanyIntegrationObjectField_.prototype, "LastSampledAt", void 0);
46316
+ __decorate([
46317
+ Field(),
46318
+ __metadata("design:type", Date)
46319
+ ], MJCompanyIntegrationObjectField_.prototype, "_mj__CreatedAt", void 0);
46320
+ __decorate([
46321
+ Field(),
46322
+ __metadata("design:type", Date)
46323
+ ], MJCompanyIntegrationObjectField_.prototype, "_mj__UpdatedAt", void 0);
46324
+ __decorate([
46325
+ Field({ nullable: true }),
46326
+ MaxLength(255),
46327
+ __metadata("design:type", String)
46328
+ ], MJCompanyIntegrationObjectField_.prototype, "CompanyIntegrationObject", void 0);
46329
+ __decorate([
46330
+ Field({ nullable: true }),
46331
+ MaxLength(255),
46332
+ __metadata("design:type", String)
46333
+ ], MJCompanyIntegrationObjectField_.prototype, "RelatedCompanyIntegrationObject", void 0);
46334
+ __decorate([
46335
+ Field({ nullable: true }),
46336
+ MaxLength(255),
46337
+ __metadata("design:type", String)
46338
+ ], MJCompanyIntegrationObjectField_.prototype, "IntegrationObjectField", void 0);
46339
+ __decorate([
46340
+ 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.` }),
46341
+ __metadata("design:type", Array)
46342
+ ], MJCompanyIntegrationObjectField_.prototype, "ReadableFields___", void 0);
46343
+ MJCompanyIntegrationObjectField_ = __decorate([
46344
+ ObjectType({ description: "A field of a CompanyIntegrationObject: the declared field definition rebased with this connection's own discovery and sampling (observed width, provenance), with selection separate from Status." })
46345
+ ], MJCompanyIntegrationObjectField_);
46346
+ export { MJCompanyIntegrationObjectField_ };
46347
+ //****************************************************************************
46348
+ // INPUT TYPE for MJ: Company Integration Object Fields
46349
+ //****************************************************************************
46350
+ let CreateMJCompanyIntegrationObjectFieldInput = class CreateMJCompanyIntegrationObjectFieldInput {
46351
+ };
46352
+ __decorate([
46353
+ Field({ nullable: true }),
46354
+ __metadata("design:type", String)
46355
+ ], CreateMJCompanyIntegrationObjectFieldInput.prototype, "ID", void 0);
46356
+ __decorate([
46357
+ Field({ nullable: true }),
46358
+ __metadata("design:type", String)
46359
+ ], CreateMJCompanyIntegrationObjectFieldInput.prototype, "Name", void 0);
46360
+ __decorate([
46361
+ Field({ nullable: true }),
46362
+ __metadata("design:type", String)
46363
+ ], CreateMJCompanyIntegrationObjectFieldInput.prototype, "DisplayName", void 0);
46364
+ __decorate([
46365
+ Field({ nullable: true }),
46366
+ __metadata("design:type", String)
46367
+ ], CreateMJCompanyIntegrationObjectFieldInput.prototype, "Description", void 0);
46368
+ __decorate([
46369
+ Field({ nullable: true }),
46370
+ __metadata("design:type", String)
46371
+ ], CreateMJCompanyIntegrationObjectFieldInput.prototype, "Category", void 0);
46372
+ __decorate([
46373
+ Field({ nullable: true }),
46374
+ __metadata("design:type", String)
46375
+ ], CreateMJCompanyIntegrationObjectFieldInput.prototype, "Type", void 0);
46376
+ __decorate([
46377
+ Field(() => Int, { nullable: true }),
46378
+ __metadata("design:type", Number)
46379
+ ], CreateMJCompanyIntegrationObjectFieldInput.prototype, "Length", void 0);
46380
+ __decorate([
46381
+ Field(() => Int, { nullable: true }),
46382
+ __metadata("design:type", Number)
46383
+ ], CreateMJCompanyIntegrationObjectFieldInput.prototype, "Precision", void 0);
46384
+ __decorate([
46385
+ Field(() => Int, { nullable: true }),
46386
+ __metadata("design:type", Number)
46387
+ ], CreateMJCompanyIntegrationObjectFieldInput.prototype, "Scale", void 0);
46388
+ __decorate([
46389
+ Field(() => Boolean, { nullable: true }),
46390
+ __metadata("design:type", Boolean)
46391
+ ], CreateMJCompanyIntegrationObjectFieldInput.prototype, "AllowsNull", void 0);
46392
+ __decorate([
46393
+ Field({ nullable: true }),
46394
+ __metadata("design:type", String)
46395
+ ], CreateMJCompanyIntegrationObjectFieldInput.prototype, "DefaultValue", void 0);
46396
+ __decorate([
46397
+ Field(() => Boolean, { nullable: true }),
46398
+ __metadata("design:type", Boolean)
46399
+ ], CreateMJCompanyIntegrationObjectFieldInput.prototype, "IsPrimaryKey", void 0);
46400
+ __decorate([
46401
+ Field(() => Boolean, { nullable: true }),
46402
+ __metadata("design:type", Boolean)
46403
+ ], CreateMJCompanyIntegrationObjectFieldInput.prototype, "IsUniqueKey", void 0);
46404
+ __decorate([
46405
+ Field(() => Boolean, { nullable: true }),
46406
+ __metadata("design:type", Boolean)
46407
+ ], CreateMJCompanyIntegrationObjectFieldInput.prototype, "IsReadOnly", void 0);
46408
+ __decorate([
46409
+ Field(() => Boolean, { nullable: true }),
46410
+ __metadata("design:type", Boolean)
46411
+ ], CreateMJCompanyIntegrationObjectFieldInput.prototype, "IsRequired", void 0);
46412
+ __decorate([
46413
+ Field({ nullable: true }),
46414
+ __metadata("design:type", String)
46415
+ ], CreateMJCompanyIntegrationObjectFieldInput.prototype, "RelatedIntegrationObjectFieldName", void 0);
46416
+ __decorate([
46417
+ Field(() => Int, { nullable: true }),
46418
+ __metadata("design:type", Number)
46419
+ ], CreateMJCompanyIntegrationObjectFieldInput.prototype, "Sequence", void 0);
46420
+ __decorate([
46421
+ Field({ nullable: true }),
46422
+ __metadata("design:type", String)
46423
+ ], CreateMJCompanyIntegrationObjectFieldInput.prototype, "Configuration", void 0);
46424
+ __decorate([
46425
+ Field({ nullable: true }),
46426
+ __metadata("design:type", String)
46427
+ ], CreateMJCompanyIntegrationObjectFieldInput.prototype, "Status", void 0);
46428
+ __decorate([
46429
+ Field(() => Boolean, { nullable: true }),
46430
+ __metadata("design:type", Boolean)
46431
+ ], CreateMJCompanyIntegrationObjectFieldInput.prototype, "IsCustom", void 0);
46432
+ __decorate([
46433
+ Field({ nullable: true }),
46434
+ __metadata("design:type", String)
46435
+ ], CreateMJCompanyIntegrationObjectFieldInput.prototype, "MetadataSource", void 0);
46436
+ __decorate([
46437
+ Field({ nullable: true }),
46438
+ __metadata("design:type", String)
46439
+ ], CreateMJCompanyIntegrationObjectFieldInput.prototype, "CompanyIntegrationObjectID", void 0);
46440
+ __decorate([
46441
+ Field({ nullable: true }),
46442
+ __metadata("design:type", String)
46443
+ ], CreateMJCompanyIntegrationObjectFieldInput.prototype, "RelatedCompanyIntegrationObjectID", void 0);
46444
+ __decorate([
46445
+ Field({ nullable: true }),
46446
+ __metadata("design:type", String)
46447
+ ], CreateMJCompanyIntegrationObjectFieldInput.prototype, "IntegrationObjectFieldID", void 0);
46448
+ __decorate([
46449
+ Field(() => Int, { nullable: true }),
46450
+ __metadata("design:type", Number)
46451
+ ], CreateMJCompanyIntegrationObjectFieldInput.prototype, "ObservedMaxLength", void 0);
46452
+ __decorate([
46453
+ Field({ nullable: true }),
46454
+ __metadata("design:type", String)
46455
+ ], CreateMJCompanyIntegrationObjectFieldInput.prototype, "Provenance", void 0);
46456
+ __decorate([
46457
+ Field({ nullable: true }),
46458
+ __metadata("design:type", String)
46459
+ ], CreateMJCompanyIntegrationObjectFieldInput.prototype, "ProvenanceDetail", void 0);
46460
+ __decorate([
46461
+ Field(() => Boolean, { nullable: true }),
46462
+ __metadata("design:type", Boolean)
46463
+ ], CreateMJCompanyIntegrationObjectFieldInput.prototype, "IsSelected", void 0);
46464
+ __decorate([
46465
+ Field({ nullable: true }),
46466
+ __metadata("design:type", Date)
46467
+ ], CreateMJCompanyIntegrationObjectFieldInput.prototype, "SelectedAt", void 0);
46468
+ __decorate([
46469
+ Field({ nullable: true }),
46470
+ __metadata("design:type", Date)
46471
+ ], CreateMJCompanyIntegrationObjectFieldInput.prototype, "FirstSeenAt", void 0);
46472
+ __decorate([
46473
+ Field({ nullable: true }),
46474
+ __metadata("design:type", Date)
46475
+ ], CreateMJCompanyIntegrationObjectFieldInput.prototype, "LastSeenAt", void 0);
46476
+ __decorate([
46477
+ Field({ nullable: true }),
46478
+ __metadata("design:type", Date)
46479
+ ], CreateMJCompanyIntegrationObjectFieldInput.prototype, "LastSampledAt", void 0);
46480
+ __decorate([
46481
+ Field(() => RestoreContextInput, { nullable: true }),
46482
+ __metadata("design:type", RestoreContextInput)
46483
+ ], CreateMJCompanyIntegrationObjectFieldInput.prototype, "RestoreContext___", void 0);
46484
+ CreateMJCompanyIntegrationObjectFieldInput = __decorate([
46485
+ InputType()
46486
+ ], CreateMJCompanyIntegrationObjectFieldInput);
46487
+ export { CreateMJCompanyIntegrationObjectFieldInput };
46488
+ //****************************************************************************
46489
+ // INPUT TYPE for MJ: Company Integration Object Fields
46490
+ //****************************************************************************
46491
+ let UpdateMJCompanyIntegrationObjectFieldInput = class UpdateMJCompanyIntegrationObjectFieldInput {
46492
+ };
46493
+ __decorate([
46494
+ Field(),
46495
+ __metadata("design:type", String)
46496
+ ], UpdateMJCompanyIntegrationObjectFieldInput.prototype, "ID", void 0);
46497
+ __decorate([
46498
+ Field({ nullable: true }),
46499
+ __metadata("design:type", String)
46500
+ ], UpdateMJCompanyIntegrationObjectFieldInput.prototype, "Name", void 0);
46501
+ __decorate([
46502
+ Field({ nullable: true }),
46503
+ __metadata("design:type", String)
46504
+ ], UpdateMJCompanyIntegrationObjectFieldInput.prototype, "DisplayName", void 0);
46505
+ __decorate([
46506
+ Field({ nullable: true }),
46507
+ __metadata("design:type", String)
46508
+ ], UpdateMJCompanyIntegrationObjectFieldInput.prototype, "Description", void 0);
46509
+ __decorate([
46510
+ Field({ nullable: true }),
46511
+ __metadata("design:type", String)
46512
+ ], UpdateMJCompanyIntegrationObjectFieldInput.prototype, "Category", void 0);
46513
+ __decorate([
46514
+ Field({ nullable: true }),
46515
+ __metadata("design:type", String)
46516
+ ], UpdateMJCompanyIntegrationObjectFieldInput.prototype, "Type", void 0);
46517
+ __decorate([
46518
+ Field(() => Int, { nullable: true }),
46519
+ __metadata("design:type", Number)
46520
+ ], UpdateMJCompanyIntegrationObjectFieldInput.prototype, "Length", void 0);
46521
+ __decorate([
46522
+ Field(() => Int, { nullable: true }),
46523
+ __metadata("design:type", Number)
46524
+ ], UpdateMJCompanyIntegrationObjectFieldInput.prototype, "Precision", void 0);
46525
+ __decorate([
46526
+ Field(() => Int, { nullable: true }),
46527
+ __metadata("design:type", Number)
46528
+ ], UpdateMJCompanyIntegrationObjectFieldInput.prototype, "Scale", void 0);
46529
+ __decorate([
46530
+ Field(() => Boolean, { nullable: true }),
46531
+ __metadata("design:type", Boolean)
46532
+ ], UpdateMJCompanyIntegrationObjectFieldInput.prototype, "AllowsNull", void 0);
46533
+ __decorate([
46534
+ Field({ nullable: true }),
46535
+ __metadata("design:type", String)
46536
+ ], UpdateMJCompanyIntegrationObjectFieldInput.prototype, "DefaultValue", void 0);
46537
+ __decorate([
46538
+ Field(() => Boolean, { nullable: true }),
46539
+ __metadata("design:type", Boolean)
46540
+ ], UpdateMJCompanyIntegrationObjectFieldInput.prototype, "IsPrimaryKey", void 0);
46541
+ __decorate([
46542
+ Field(() => Boolean, { nullable: true }),
46543
+ __metadata("design:type", Boolean)
46544
+ ], UpdateMJCompanyIntegrationObjectFieldInput.prototype, "IsUniqueKey", void 0);
46545
+ __decorate([
46546
+ Field(() => Boolean, { nullable: true }),
46547
+ __metadata("design:type", Boolean)
46548
+ ], UpdateMJCompanyIntegrationObjectFieldInput.prototype, "IsReadOnly", void 0);
46549
+ __decorate([
46550
+ Field(() => Boolean, { nullable: true }),
46551
+ __metadata("design:type", Boolean)
46552
+ ], UpdateMJCompanyIntegrationObjectFieldInput.prototype, "IsRequired", void 0);
46553
+ __decorate([
46554
+ Field({ nullable: true }),
46555
+ __metadata("design:type", String)
46556
+ ], UpdateMJCompanyIntegrationObjectFieldInput.prototype, "RelatedIntegrationObjectFieldName", void 0);
46557
+ __decorate([
46558
+ Field(() => Int, { nullable: true }),
46559
+ __metadata("design:type", Number)
46560
+ ], UpdateMJCompanyIntegrationObjectFieldInput.prototype, "Sequence", void 0);
46561
+ __decorate([
46562
+ Field({ nullable: true }),
46563
+ __metadata("design:type", String)
46564
+ ], UpdateMJCompanyIntegrationObjectFieldInput.prototype, "Configuration", void 0);
46565
+ __decorate([
46566
+ Field({ nullable: true }),
46567
+ __metadata("design:type", String)
46568
+ ], UpdateMJCompanyIntegrationObjectFieldInput.prototype, "Status", void 0);
46569
+ __decorate([
46570
+ Field(() => Boolean, { nullable: true }),
46571
+ __metadata("design:type", Boolean)
46572
+ ], UpdateMJCompanyIntegrationObjectFieldInput.prototype, "IsCustom", void 0);
46573
+ __decorate([
46574
+ Field({ nullable: true }),
46575
+ __metadata("design:type", String)
46576
+ ], UpdateMJCompanyIntegrationObjectFieldInput.prototype, "MetadataSource", void 0);
46577
+ __decorate([
46578
+ Field({ nullable: true }),
46579
+ __metadata("design:type", String)
46580
+ ], UpdateMJCompanyIntegrationObjectFieldInput.prototype, "CompanyIntegrationObjectID", void 0);
46581
+ __decorate([
46582
+ Field({ nullable: true }),
46583
+ __metadata("design:type", String)
46584
+ ], UpdateMJCompanyIntegrationObjectFieldInput.prototype, "RelatedCompanyIntegrationObjectID", void 0);
46585
+ __decorate([
46586
+ Field({ nullable: true }),
46587
+ __metadata("design:type", String)
46588
+ ], UpdateMJCompanyIntegrationObjectFieldInput.prototype, "IntegrationObjectFieldID", void 0);
46589
+ __decorate([
46590
+ Field(() => Int, { nullable: true }),
46591
+ __metadata("design:type", Number)
46592
+ ], UpdateMJCompanyIntegrationObjectFieldInput.prototype, "ObservedMaxLength", void 0);
46593
+ __decorate([
46594
+ Field({ nullable: true }),
46595
+ __metadata("design:type", String)
46596
+ ], UpdateMJCompanyIntegrationObjectFieldInput.prototype, "Provenance", void 0);
46597
+ __decorate([
46598
+ Field({ nullable: true }),
46599
+ __metadata("design:type", String)
46600
+ ], UpdateMJCompanyIntegrationObjectFieldInput.prototype, "ProvenanceDetail", void 0);
46601
+ __decorate([
46602
+ Field(() => Boolean, { nullable: true }),
46603
+ __metadata("design:type", Boolean)
46604
+ ], UpdateMJCompanyIntegrationObjectFieldInput.prototype, "IsSelected", void 0);
46605
+ __decorate([
46606
+ Field({ nullable: true }),
46607
+ __metadata("design:type", Date)
46608
+ ], UpdateMJCompanyIntegrationObjectFieldInput.prototype, "SelectedAt", void 0);
46609
+ __decorate([
46610
+ Field({ nullable: true }),
46611
+ __metadata("design:type", Date)
46612
+ ], UpdateMJCompanyIntegrationObjectFieldInput.prototype, "FirstSeenAt", void 0);
46613
+ __decorate([
46614
+ Field({ nullable: true }),
46615
+ __metadata("design:type", Date)
46616
+ ], UpdateMJCompanyIntegrationObjectFieldInput.prototype, "LastSeenAt", void 0);
46617
+ __decorate([
46618
+ Field({ nullable: true }),
46619
+ __metadata("design:type", Date)
46620
+ ], UpdateMJCompanyIntegrationObjectFieldInput.prototype, "LastSampledAt", void 0);
46621
+ __decorate([
46622
+ Field(() => [KeyValuePairInput], { nullable: true }),
46623
+ __metadata("design:type", Array)
46624
+ ], UpdateMJCompanyIntegrationObjectFieldInput.prototype, "OldValues___", void 0);
46625
+ __decorate([
46626
+ Field(() => RestoreContextInput, { nullable: true }),
46627
+ __metadata("design:type", RestoreContextInput)
46628
+ ], UpdateMJCompanyIntegrationObjectFieldInput.prototype, "RestoreContext___", void 0);
46629
+ UpdateMJCompanyIntegrationObjectFieldInput = __decorate([
46630
+ InputType()
46631
+ ], UpdateMJCompanyIntegrationObjectFieldInput);
46632
+ export { UpdateMJCompanyIntegrationObjectFieldInput };
46633
+ //****************************************************************************
46634
+ // RESOLVER for MJ: Company Integration Object Fields
46635
+ //****************************************************************************
46636
+ let RunMJCompanyIntegrationObjectFieldViewResult = class RunMJCompanyIntegrationObjectFieldViewResult {
46637
+ };
46638
+ __decorate([
46639
+ Field(() => [MJCompanyIntegrationObjectField_]),
46640
+ __metadata("design:type", Array)
46641
+ ], RunMJCompanyIntegrationObjectFieldViewResult.prototype, "Results", void 0);
46642
+ __decorate([
46643
+ Field(() => String, { nullable: true }),
46644
+ __metadata("design:type", String)
46645
+ ], RunMJCompanyIntegrationObjectFieldViewResult.prototype, "UserViewRunID", void 0);
46646
+ __decorate([
46647
+ Field(() => Int, { nullable: true }),
46648
+ __metadata("design:type", Number)
46649
+ ], RunMJCompanyIntegrationObjectFieldViewResult.prototype, "RowCount", void 0);
46650
+ __decorate([
46651
+ Field(() => Int, { nullable: true }),
46652
+ __metadata("design:type", Number)
46653
+ ], RunMJCompanyIntegrationObjectFieldViewResult.prototype, "TotalRowCount", void 0);
46654
+ __decorate([
46655
+ Field(() => Int, { nullable: true }),
46656
+ __metadata("design:type", Number)
46657
+ ], RunMJCompanyIntegrationObjectFieldViewResult.prototype, "ExecutionTime", void 0);
46658
+ __decorate([
46659
+ Field({ nullable: true }),
46660
+ __metadata("design:type", String)
46661
+ ], RunMJCompanyIntegrationObjectFieldViewResult.prototype, "ErrorMessage", void 0);
46662
+ __decorate([
46663
+ Field(() => Boolean, { nullable: false }),
46664
+ __metadata("design:type", Boolean)
46665
+ ], RunMJCompanyIntegrationObjectFieldViewResult.prototype, "Success", void 0);
46666
+ RunMJCompanyIntegrationObjectFieldViewResult = __decorate([
46667
+ ObjectType()
46668
+ ], RunMJCompanyIntegrationObjectFieldViewResult);
46669
+ export { RunMJCompanyIntegrationObjectFieldViewResult };
46670
+ let MJCompanyIntegrationObjectFieldResolver = class MJCompanyIntegrationObjectFieldResolver extends ResolverBase {
46671
+ async RunMJCompanyIntegrationObjectFieldViewByID(input, { providers, userPayload }, pubSub) {
46672
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
46673
+ return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
46674
+ }
46675
+ async RunMJCompanyIntegrationObjectFieldViewByName(input, { providers, userPayload }, pubSub) {
46676
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
46677
+ return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
46678
+ }
46679
+ async RunMJCompanyIntegrationObjectFieldDynamicView(input, { providers, userPayload }, pubSub) {
46680
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
46681
+ input.EntityName = 'MJ: Company Integration Object Fields';
46682
+ return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
46683
+ }
46684
+ async MJCompanyIntegrationObjectField(ID, { userPayload, providers }, pubSub) {
46685
+ this.CheckUserReadPermissions('MJ: Company Integration Object Fields', userPayload);
46686
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
46687
+ const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwCompanyIntegrationObjectFields')} WHERE ${provider.QuoteIdentifier('ID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Company Integration Object Fields', userPayload, EntityPermissionType.Read, 'AND');
46688
+ const rows = await provider.ExecuteSQL(sSQL, [ID], undefined, this.GetUserFromPayload(userPayload));
46689
+ const result = await this.MapFieldNamesToCodeNames('MJ: Company Integration Object Fields', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
46690
+ return result;
46691
+ }
46692
+ async CreateMJCompanyIntegrationObjectField(input, { providers, userPayload }, pubSub) {
46693
+ const provider = GetReadWriteProvider(providers);
46694
+ return this.CreateRecord('MJ: Company Integration Object Fields', input, provider, userPayload, pubSub);
46695
+ }
46696
+ async UpdateMJCompanyIntegrationObjectField(input, { providers, userPayload }, pubSub) {
46697
+ const provider = GetReadWriteProvider(providers);
46698
+ return this.UpdateRecord('MJ: Company Integration Object Fields', input, provider, userPayload, pubSub);
46699
+ }
46700
+ async DeleteMJCompanyIntegrationObjectField(ID, options, { providers, userPayload }, pubSub) {
46701
+ const provider = GetReadWriteProvider(providers);
46702
+ const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
46703
+ return this.DeleteRecord('MJ: Company Integration Object Fields', key, options, provider, userPayload, pubSub);
46704
+ }
46705
+ };
46706
+ __decorate([
46707
+ Query(() => RunMJCompanyIntegrationObjectFieldViewResult),
46708
+ __param(0, Arg('input', () => RunViewByIDInput)),
46709
+ __param(1, Ctx()),
46710
+ __param(2, PubSub()),
46711
+ __metadata("design:type", Function),
46712
+ __metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
46713
+ __metadata("design:returntype", Promise)
46714
+ ], MJCompanyIntegrationObjectFieldResolver.prototype, "RunMJCompanyIntegrationObjectFieldViewByID", null);
46715
+ __decorate([
46716
+ Query(() => RunMJCompanyIntegrationObjectFieldViewResult),
46717
+ __param(0, Arg('input', () => RunViewByNameInput)),
46718
+ __param(1, Ctx()),
46719
+ __param(2, PubSub()),
46720
+ __metadata("design:type", Function),
46721
+ __metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
46722
+ __metadata("design:returntype", Promise)
46723
+ ], MJCompanyIntegrationObjectFieldResolver.prototype, "RunMJCompanyIntegrationObjectFieldViewByName", null);
46724
+ __decorate([
46725
+ Query(() => RunMJCompanyIntegrationObjectFieldViewResult),
46726
+ __param(0, Arg('input', () => RunDynamicViewInput)),
46727
+ __param(1, Ctx()),
46728
+ __param(2, PubSub()),
46729
+ __metadata("design:type", Function),
46730
+ __metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
46731
+ __metadata("design:returntype", Promise)
46732
+ ], MJCompanyIntegrationObjectFieldResolver.prototype, "RunMJCompanyIntegrationObjectFieldDynamicView", null);
46733
+ __decorate([
46734
+ Query(() => MJCompanyIntegrationObjectField_, { nullable: true }),
46735
+ __param(0, Arg('ID', () => String)),
46736
+ __param(1, Ctx()),
46737
+ __param(2, PubSub()),
46738
+ __metadata("design:type", Function),
46739
+ __metadata("design:paramtypes", [String, Object, PubSubEngine]),
46740
+ __metadata("design:returntype", Promise)
46741
+ ], MJCompanyIntegrationObjectFieldResolver.prototype, "MJCompanyIntegrationObjectField", null);
46742
+ __decorate([
46743
+ Mutation(() => MJCompanyIntegrationObjectField_),
46744
+ __param(0, Arg('input', () => CreateMJCompanyIntegrationObjectFieldInput)),
46745
+ __param(1, Ctx()),
46746
+ __param(2, PubSub()),
46747
+ __metadata("design:type", Function),
46748
+ __metadata("design:paramtypes", [CreateMJCompanyIntegrationObjectFieldInput, Object, PubSubEngine]),
46749
+ __metadata("design:returntype", Promise)
46750
+ ], MJCompanyIntegrationObjectFieldResolver.prototype, "CreateMJCompanyIntegrationObjectField", null);
46751
+ __decorate([
46752
+ Mutation(() => MJCompanyIntegrationObjectField_),
46753
+ __param(0, Arg('input', () => UpdateMJCompanyIntegrationObjectFieldInput)),
46754
+ __param(1, Ctx()),
46755
+ __param(2, PubSub()),
46756
+ __metadata("design:type", Function),
46757
+ __metadata("design:paramtypes", [UpdateMJCompanyIntegrationObjectFieldInput, Object, PubSubEngine]),
46758
+ __metadata("design:returntype", Promise)
46759
+ ], MJCompanyIntegrationObjectFieldResolver.prototype, "UpdateMJCompanyIntegrationObjectField", null);
46760
+ __decorate([
46761
+ Mutation(() => MJCompanyIntegrationObjectField_),
46762
+ __param(0, Arg('ID', () => String)),
46763
+ __param(1, Arg('options___', () => DeleteOptionsInput)),
46764
+ __param(2, Ctx()),
46765
+ __param(3, PubSub()),
46766
+ __metadata("design:type", Function),
46767
+ __metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
46768
+ __metadata("design:returntype", Promise)
46769
+ ], MJCompanyIntegrationObjectFieldResolver.prototype, "DeleteMJCompanyIntegrationObjectField", null);
46770
+ MJCompanyIntegrationObjectFieldResolver = __decorate([
46771
+ Resolver(MJCompanyIntegrationObjectField_)
46772
+ ], MJCompanyIntegrationObjectFieldResolver);
46773
+ export { MJCompanyIntegrationObjectFieldResolver };
46774
+ //****************************************************************************
46775
+ // ENTITY CLASS for MJ: Company Integration Objects
46776
+ //****************************************************************************
46777
+ let MJCompanyIntegrationObject_ = class MJCompanyIntegrationObject_ {
46778
+ };
46779
+ __decorate([
46780
+ Field(),
46781
+ MaxLength(36),
46782
+ __metadata("design:type", String)
46783
+ ], MJCompanyIntegrationObject_.prototype, "ID", void 0);
46784
+ __decorate([
46785
+ Field({ nullable: true, description: "The integration (connector) this object belongs to. Always the IntegrationID of the owning CompanyIntegration, copied onto the row by the catalog writer so the per-connection catalog can be read through the same projection as the shared IntegrationObject catalog." }),
46786
+ MaxLength(36),
46787
+ __metadata("design:type", String)
46788
+ ], MJCompanyIntegrationObject_.prototype, "IntegrationID", void 0);
46789
+ __decorate([
46790
+ Field({ nullable: true, description: "Internal/programmatic name of the external object (e.g., Members, Events)" }),
46791
+ MaxLength(255),
46792
+ __metadata("design:type", String)
46793
+ ], MJCompanyIntegrationObject_.prototype, "Name", void 0);
46794
+ __decorate([
46795
+ Field({ nullable: true, description: "Human-friendly display label" }),
46796
+ MaxLength(255),
46797
+ __metadata("design:type", String)
46798
+ ], MJCompanyIntegrationObject_.prototype, "DisplayName", void 0);
46799
+ __decorate([
46800
+ Field({ nullable: true, description: "Description of what this external object represents" }),
46801
+ __metadata("design:type", String)
46802
+ ], MJCompanyIntegrationObject_.prototype, "Description", void 0);
46803
+ __decorate([
46804
+ Field({ nullable: true, description: "UI grouping category (e.g., Membership, Events, Finance)" }),
46805
+ MaxLength(100),
46806
+ __metadata("design:type", String)
46807
+ ], MJCompanyIntegrationObject_.prototype, "Category", void 0);
46808
+ __decorate([
46809
+ Field({ nullable: true, description: "API endpoint path, may include template variables like {ProfileID} that are resolved at runtime from parent object records" }),
46810
+ MaxLength(500),
46811
+ __metadata("design:type", String)
46812
+ ], MJCompanyIntegrationObject_.prototype, "APIPath", void 0);
46813
+ __decorate([
46814
+ Field({ nullable: true, description: "JSON key used to extract the data array from the API response envelope. NULL means the response is a root-level array." }),
46815
+ MaxLength(255),
46816
+ __metadata("design:type", String)
46817
+ ], MJCompanyIntegrationObject_.prototype, "ResponseDataKey", void 0);
46818
+ __decorate([
46819
+ Field(() => Int, { nullable: true, description: "Number of records to request per page from the API" }),
46820
+ __metadata("design:type", Number)
46821
+ ], MJCompanyIntegrationObject_.prototype, "DefaultPageSize", void 0);
46822
+ __decorate([
46823
+ Field(() => Boolean, { nullable: true, description: "Whether this endpoint supports paginated fetching" }),
46824
+ __metadata("design:type", Boolean)
46825
+ ], MJCompanyIntegrationObject_.prototype, "SupportsPagination", void 0);
46826
+ __decorate([
46827
+ Field({ nullable: true, description: "Pagination strategy: PageNumber (page index), Offset (record offset), Cursor (opaque token), or None" }),
46828
+ MaxLength(20),
46829
+ __metadata("design:type", String)
46830
+ ], MJCompanyIntegrationObject_.prototype, "PaginationType", void 0);
46831
+ __decorate([
46832
+ Field(() => Boolean, { nullable: true, description: "Whether this object supports watermark-based incremental sync" }),
46833
+ __metadata("design:type", Boolean)
46834
+ ], MJCompanyIntegrationObject_.prototype, "SupportsIncrementalSync", void 0);
46835
+ __decorate([
46836
+ Field(() => Boolean, { nullable: true, description: "Whether data can be pushed back to this object via the API" }),
46837
+ __metadata("design:type", Boolean)
46838
+ ], MJCompanyIntegrationObject_.prototype, "SupportsWrite", void 0);
46839
+ __decorate([
46840
+ Field({ nullable: true, description: "JSON object of default query parameters to include with every API request for this object" }),
46841
+ __metadata("design:type", String)
46842
+ ], MJCompanyIntegrationObject_.prototype, "DefaultQueryParams", void 0);
46843
+ __decorate([
46844
+ Field({ nullable: true, description: "Freeform JSON for connector-specific configuration not covered by standard columns" }),
46845
+ __metadata("design:type", String)
46846
+ ], MJCompanyIntegrationObject_.prototype, "Configuration", void 0);
46847
+ __decorate([
46848
+ Field(() => Int, { nullable: true, description: "Processing and display order. Lower numbers are processed first." }),
46849
+ __metadata("design:type", Number)
46850
+ ], MJCompanyIntegrationObject_.prototype, "Sequence", void 0);
46851
+ __decorate([
46852
+ Field({ nullable: true, description: "Active, Deprecated, or Disabled. Mirrors EntityField status values." }),
46853
+ MaxLength(25),
46854
+ __metadata("design:type", String)
46855
+ ], MJCompanyIntegrationObject_.prototype, "Status", void 0);
46856
+ __decorate([
46857
+ Field({ nullable: true, description: "API path for create/update operations when different from the read APIPath. If NULL, the read APIPath is used for writes as well." }),
46858
+ MaxLength(500),
46859
+ __metadata("design:type", String)
46860
+ ], MJCompanyIntegrationObject_.prototype, "WriteAPIPath", void 0);
46861
+ __decorate([
46862
+ Field({ nullable: true, description: "HTTP method for create operations. Defaults to POST." }),
46863
+ MaxLength(10),
46864
+ __metadata("design:type", String)
46865
+ ], MJCompanyIntegrationObject_.prototype, "WriteMethod", void 0);
46866
+ __decorate([
46867
+ Field({ nullable: true, description: "HTTP method for delete operations. Defaults to DELETE." }),
46868
+ MaxLength(10),
46869
+ __metadata("design:type", String)
46870
+ ], MJCompanyIntegrationObject_.prototype, "DeleteMethod", void 0);
46871
+ __decorate([
46872
+ Field(() => Boolean, { nullable: true, description: "When true, this object was dynamically discovered by IntrospectSchema and is not defined in static connector metadata." }),
46873
+ __metadata("design:type", Boolean)
46874
+ ], MJCompanyIntegrationObject_.prototype, "IsCustom", void 0);
46875
+ __decorate([
46876
+ Field({ nullable: true, description: "HTTP path template for create operations. Generic CRUD in BaseRESTIntegrationConnector substitutes parent IDs into {var} placeholders. NULL means create not supported via metadata-driven path." }),
46877
+ __metadata("design:type", String)
46878
+ ], MJCompanyIntegrationObject_.prototype, "CreateAPIPath", void 0);
46879
+ __decorate([
46880
+ Field({ nullable: true, description: "HTTP method for create (typically POST). NULL means create not supported via metadata-driven path." }),
46881
+ MaxLength(20),
46882
+ __metadata("design:type", String)
46883
+ ], MJCompanyIntegrationObject_.prototype, "CreateMethod", void 0);
46884
+ __decorate([
46885
+ Field({ nullable: true, description: "Request body shape for create: flat (top-level fields), wrapped (under CreateBodyKey), or literal (connector overrides CreateRecord and supplies own body)." }),
46886
+ MaxLength(50),
46887
+ __metadata("design:type", String)
46888
+ ], MJCompanyIntegrationObject_.prototype, "CreateBodyShape", void 0);
46889
+ __decorate([
46890
+ Field({ nullable: true, description: "Wrapper key for create body when CreateBodyShape=wrapped. Example: 'member' for YourMembership which wraps body as {member:{...}}." }),
46891
+ MaxLength(100),
46892
+ __metadata("design:type", String)
46893
+ ], MJCompanyIntegrationObject_.prototype, "CreateBodyKey", void 0);
46894
+ __decorate([
46895
+ Field({ nullable: true, description: "Where the created record ID is found in the create response: path (URL of returned Location header), body (parsed from JSON response), header (specific named header)." }),
46896
+ MaxLength(20),
46897
+ __metadata("design:type", String)
46898
+ ], MJCompanyIntegrationObject_.prototype, "CreateIDLocation", void 0);
46899
+ __decorate([
46900
+ Field({ nullable: true, description: "HTTP path template for update operations. Typically contains {ID} placeholder substituted with the record ExternalID at runtime." }),
46901
+ __metadata("design:type", String)
46902
+ ], MJCompanyIntegrationObject_.prototype, "UpdateAPIPath", void 0);
46903
+ __decorate([
46904
+ Field({ nullable: true, description: "HTTP method for update (typically PATCH or PUT)." }),
46905
+ MaxLength(20),
46906
+ __metadata("design:type", String)
46907
+ ], MJCompanyIntegrationObject_.prototype, "UpdateMethod", void 0);
46908
+ __decorate([
46909
+ Field({ nullable: true, description: "Request body shape for update: flat | wrapped | literal. See CreateBodyShape." }),
46910
+ MaxLength(50),
46911
+ __metadata("design:type", String)
46912
+ ], MJCompanyIntegrationObject_.prototype, "UpdateBodyShape", void 0);
46913
+ __decorate([
46914
+ Field({ nullable: true, description: "Wrapper key for update body when UpdateBodyShape=wrapped." }),
46915
+ MaxLength(100),
46916
+ __metadata("design:type", String)
46917
+ ], MJCompanyIntegrationObject_.prototype, "UpdateBodyKey", void 0);
46918
+ __decorate([
46919
+ Field({ nullable: true, description: "For update: where the target record ID is located in the request — typically 'path' (substituted into UpdateAPIPath URL template)." }),
46920
+ MaxLength(20),
46921
+ __metadata("design:type", String)
46922
+ ], MJCompanyIntegrationObject_.prototype, "UpdateIDLocation", void 0);
46923
+ __decorate([
46924
+ Field({ nullable: true, description: "HTTP path template for delete operations. Typically contains {ID} placeholder. NULL means delete not supported via metadata-driven path. (Existing DeleteMethod column carries the verb.)" }),
46925
+ __metadata("design:type", String)
46926
+ ], MJCompanyIntegrationObject_.prototype, "DeleteAPIPath", void 0);
46927
+ __decorate([
46928
+ Field({ nullable: true, description: "For delete: where the target record ID is located — typically 'path'." }),
46929
+ MaxLength(20),
46930
+ __metadata("design:type", String)
46931
+ ], MJCompanyIntegrationObject_.prototype, "DeleteIDLocation", void 0);
46932
+ __decorate([
46933
+ Field({ nullable: true, description: "Vendor field name marking \"last changed\" — drives incremental sync filter when SupportsIncrementalSync=1. The exact filter syntax (e.g., $filter=Modified gt {value} or modified_since={value}) lives in Configuration.incrementalFilterFormat. Provable-only: leave NULL if docs do not name a watermark field." }),
46934
+ MaxLength(255),
46935
+ __metadata("design:type", String)
46936
+ ], MJCompanyIntegrationObject_.prototype, "IncrementalWatermarkField", void 0);
46937
+ __decorate([
46938
+ Field({ nullable: true, description: "Provenance of this CompanyIntegrationObject row: Declared (from static research/docs), Discovered (from runtime API introspection like Salesforce /describe), Custom (genuinely customer-created, e.g., HubSpot custom objects). Drives merge precedence in IntegrationSchemaSync." }),
46939
+ MaxLength(20),
46940
+ __metadata("design:type", String)
46941
+ ], MJCompanyIntegrationObject_.prototype, "MetadataSource", void 0);
46942
+ __decorate([
46943
+ Field(() => Boolean, { nullable: true, description: "Whether this object supports record creation in the external system (per-operation granularity beyond SupportsWrite). Drives whether the generic CreateRecord path is wired and whether the object is offered for write-back create." }),
46944
+ __metadata("design:type", Boolean)
46945
+ ], MJCompanyIntegrationObject_.prototype, "SupportsCreate", void 0);
46946
+ __decorate([
46947
+ Field(() => Boolean, { nullable: true, description: "Whether this object supports record updates in the external system (per-operation granularity beyond SupportsWrite)." }),
46948
+ __metadata("design:type", Boolean)
46949
+ ], MJCompanyIntegrationObject_.prototype, "SupportsUpdate", void 0);
46950
+ __decorate([
46951
+ Field(() => Boolean, { nullable: true, description: "Whether this object supports record deletion/tombstoning in the external system (per-operation granularity beyond SupportsWrite)." }),
46952
+ __metadata("design:type", Boolean)
46953
+ ], MJCompanyIntegrationObject_.prototype, "SupportsDelete", void 0);
46954
+ __decorate([
46955
+ Field({ nullable: true, description: "Declared incremental sync strategy for this object (e.g. WatermarkIncremental, ContentHash, FullSnapshot). Informs how the engine narrows subsequent syncs." }),
46956
+ MaxLength(50),
46957
+ __metadata("design:type", String)
46958
+ ], MJCompanyIntegrationObject_.prototype, "SyncStrategy", void 0);
46959
+ __decorate([
46960
+ Field(() => Boolean, { nullable: true, description: "Whether per-record content hashing is meaningful for this object (false for append-only/event streams where every row is new). Controls whether the engine uses content-hash to skip unchanged-row writes." }),
46961
+ __metadata("design:type", Boolean)
46962
+ ], MJCompanyIntegrationObject_.prototype, "ContentHashApplicable", void 0);
46963
+ __decorate([
46964
+ Field({ nullable: true, description: "Stable, monotonic ordering column (usually the PK) used for keyset/no-watermark resume of a scan. Null when the object has no stable key." }),
46965
+ MaxLength(255),
46966
+ __metadata("design:type", String)
46967
+ ], MJCompanyIntegrationObject_.prototype, "StableOrderingKey", void 0);
46968
+ __decorate([
46969
+ Field({ nullable: true }),
46970
+ MaxLength(36),
46971
+ __metadata("design:type", String)
46972
+ ], MJCompanyIntegrationObject_.prototype, "CompanyIntegrationID", void 0);
46973
+ __decorate([
46974
+ Field({ nullable: true }),
46975
+ MaxLength(36),
46976
+ __metadata("design:type", String)
46977
+ ], MJCompanyIntegrationObject_.prototype, "IntegrationObjectID", void 0);
46978
+ __decorate([
46979
+ Field({ nullable: true, description: "Where this row came from: Declared (the connector shipped catalog), Endpoint (the source listed it) or Sampled (only streaming records revealed it). Answers \"whose is this\" for a connection whose catalog no longer matches the connector default." }),
46980
+ MaxLength(20),
46981
+ __metadata("design:type", String)
46982
+ ], MJCompanyIntegrationObject_.prototype, "Provenance", void 0);
46983
+ __decorate([
46984
+ Field({ nullable: true, description: "The per-attribute merge log for this row: which side won each overlay decision and why. The persist already computes this and throws it away, so the operator has never been able to see why a width or a key looks the way it does." }),
46985
+ __metadata("design:type", String)
46986
+ ], MJCompanyIntegrationObject_.prototype, "ProvenanceDetail", void 0);
46987
+ __decorate([
46988
+ Field(() => Boolean, { nullable: true, description: "Whether this connection syncs this item. THE AXIS THAT MAKES THE CONTRACT SATISFIABLE: Status says whether the item is in the catalog at all, IsSelected says whether the customer chose it. Conflating the two is why a newly discovered object had to arrive ENABLED — a disabled object was excluded from schema introspection, so it never reached key inference and never reached a migration." }),
46989
+ __metadata("design:type", Boolean)
46990
+ ], MJCompanyIntegrationObject_.prototype, "IsSelected", void 0);
46991
+ __decorate([
46992
+ Field({ nullable: true, description: "When the selection last changed. Lets the UI distinguish \"never chosen\" from \"deliberately deselected\"." }),
46993
+ __metadata("design:type", Date)
46994
+ ], MJCompanyIntegrationObject_.prototype, "SelectedAt", void 0);
46995
+ __decorate([
46996
+ Field({ nullable: true, description: "When this connection first observed this item. Set once and never updated, so a catalog can be read as a history of what the source exposed and when." }),
46997
+ __metadata("design:type", Date)
46998
+ ], MJCompanyIntegrationObject_.prototype, "FirstSeenAt", void 0);
46999
+ __decorate([
47000
+ Field({ nullable: true, description: "When this connection most recently observed this item. A row whose LastSeenAt is older than the connection last discovery is what \"absent from the source\" means." }),
47001
+ __metadata("design:type", Date)
47002
+ ], MJCompanyIntegrationObject_.prototype, "LastSeenAt", void 0);
47003
+ __decorate([
47004
+ Field({ nullable: true, description: "When sampling last streamed records for this item. Distinct from LastSeenAt: an item can be listed by an endpoint without ever being sampled, and unsampled items are exactly the ones whose widths and keys came from the declared catalog rather than from data." }),
47005
+ __metadata("design:type", Date)
47006
+ ], MJCompanyIntegrationObject_.prototype, "LastSampledAt", void 0);
47007
+ __decorate([
47008
+ Field(),
47009
+ __metadata("design:type", Date)
47010
+ ], MJCompanyIntegrationObject_.prototype, "_mj__CreatedAt", void 0);
47011
+ __decorate([
47012
+ Field(),
47013
+ __metadata("design:type", Date)
47014
+ ], MJCompanyIntegrationObject_.prototype, "_mj__UpdatedAt", void 0);
47015
+ __decorate([
47016
+ Field({ nullable: true }),
47017
+ MaxLength(100),
47018
+ __metadata("design:type", String)
47019
+ ], MJCompanyIntegrationObject_.prototype, "Integration", void 0);
47020
+ __decorate([
47021
+ Field({ nullable: true }),
47022
+ MaxLength(255),
47023
+ __metadata("design:type", String)
47024
+ ], MJCompanyIntegrationObject_.prototype, "CompanyIntegration", void 0);
47025
+ __decorate([
47026
+ Field({ nullable: true }),
47027
+ MaxLength(255),
47028
+ __metadata("design:type", String)
47029
+ ], MJCompanyIntegrationObject_.prototype, "IntegrationObject", void 0);
47030
+ __decorate([
47031
+ 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.` }),
47032
+ __metadata("design:type", Array)
47033
+ ], MJCompanyIntegrationObject_.prototype, "ReadableFields___", void 0);
47034
+ MJCompanyIntegrationObject_ = __decorate([
47035
+ ObjectType({ description: "One connection's (CompanyIntegration's) own copy of an integration object: the vendor's declared definition rebased with what THIS connection discovered and sampled, with provenance, and with selection (IsSelected) as an axis separate from Status. Replaces reading IntegrationObject directly so two connections of one connector no longer overwrite each other." })
47036
+ ], MJCompanyIntegrationObject_);
47037
+ export { MJCompanyIntegrationObject_ };
47038
+ //****************************************************************************
47039
+ // INPUT TYPE for MJ: Company Integration Objects
47040
+ //****************************************************************************
47041
+ let CreateMJCompanyIntegrationObjectInput = class CreateMJCompanyIntegrationObjectInput {
47042
+ };
47043
+ __decorate([
47044
+ Field({ nullable: true }),
47045
+ __metadata("design:type", String)
47046
+ ], CreateMJCompanyIntegrationObjectInput.prototype, "ID", void 0);
47047
+ __decorate([
47048
+ Field({ nullable: true }),
47049
+ __metadata("design:type", String)
47050
+ ], CreateMJCompanyIntegrationObjectInput.prototype, "IntegrationID", void 0);
47051
+ __decorate([
47052
+ Field({ nullable: true }),
47053
+ __metadata("design:type", String)
47054
+ ], CreateMJCompanyIntegrationObjectInput.prototype, "Name", void 0);
47055
+ __decorate([
47056
+ Field({ nullable: true }),
47057
+ __metadata("design:type", String)
47058
+ ], CreateMJCompanyIntegrationObjectInput.prototype, "DisplayName", void 0);
47059
+ __decorate([
47060
+ Field({ nullable: true }),
47061
+ __metadata("design:type", String)
47062
+ ], CreateMJCompanyIntegrationObjectInput.prototype, "Description", void 0);
47063
+ __decorate([
47064
+ Field({ nullable: true }),
47065
+ __metadata("design:type", String)
47066
+ ], CreateMJCompanyIntegrationObjectInput.prototype, "Category", void 0);
47067
+ __decorate([
47068
+ Field({ nullable: true }),
47069
+ __metadata("design:type", String)
47070
+ ], CreateMJCompanyIntegrationObjectInput.prototype, "APIPath", void 0);
47071
+ __decorate([
47072
+ Field({ nullable: true }),
47073
+ __metadata("design:type", String)
47074
+ ], CreateMJCompanyIntegrationObjectInput.prototype, "ResponseDataKey", void 0);
47075
+ __decorate([
47076
+ Field(() => Int, { nullable: true }),
47077
+ __metadata("design:type", Number)
47078
+ ], CreateMJCompanyIntegrationObjectInput.prototype, "DefaultPageSize", void 0);
47079
+ __decorate([
47080
+ Field(() => Boolean, { nullable: true }),
47081
+ __metadata("design:type", Boolean)
47082
+ ], CreateMJCompanyIntegrationObjectInput.prototype, "SupportsPagination", void 0);
47083
+ __decorate([
47084
+ Field({ nullable: true }),
47085
+ __metadata("design:type", String)
47086
+ ], CreateMJCompanyIntegrationObjectInput.prototype, "PaginationType", void 0);
47087
+ __decorate([
47088
+ Field(() => Boolean, { nullable: true }),
47089
+ __metadata("design:type", Boolean)
47090
+ ], CreateMJCompanyIntegrationObjectInput.prototype, "SupportsIncrementalSync", void 0);
47091
+ __decorate([
47092
+ Field(() => Boolean, { nullable: true }),
47093
+ __metadata("design:type", Boolean)
47094
+ ], CreateMJCompanyIntegrationObjectInput.prototype, "SupportsWrite", void 0);
47095
+ __decorate([
47096
+ Field({ nullable: true }),
47097
+ __metadata("design:type", String)
47098
+ ], CreateMJCompanyIntegrationObjectInput.prototype, "DefaultQueryParams", void 0);
47099
+ __decorate([
47100
+ Field({ nullable: true }),
47101
+ __metadata("design:type", String)
47102
+ ], CreateMJCompanyIntegrationObjectInput.prototype, "Configuration", void 0);
47103
+ __decorate([
47104
+ Field(() => Int, { nullable: true }),
47105
+ __metadata("design:type", Number)
47106
+ ], CreateMJCompanyIntegrationObjectInput.prototype, "Sequence", void 0);
47107
+ __decorate([
47108
+ Field({ nullable: true }),
47109
+ __metadata("design:type", String)
47110
+ ], CreateMJCompanyIntegrationObjectInput.prototype, "Status", void 0);
47111
+ __decorate([
47112
+ Field({ nullable: true }),
47113
+ __metadata("design:type", String)
47114
+ ], CreateMJCompanyIntegrationObjectInput.prototype, "WriteAPIPath", void 0);
47115
+ __decorate([
47116
+ Field({ nullable: true }),
47117
+ __metadata("design:type", String)
47118
+ ], CreateMJCompanyIntegrationObjectInput.prototype, "WriteMethod", void 0);
47119
+ __decorate([
47120
+ Field({ nullable: true }),
47121
+ __metadata("design:type", String)
47122
+ ], CreateMJCompanyIntegrationObjectInput.prototype, "DeleteMethod", void 0);
47123
+ __decorate([
47124
+ Field(() => Boolean, { nullable: true }),
47125
+ __metadata("design:type", Boolean)
47126
+ ], CreateMJCompanyIntegrationObjectInput.prototype, "IsCustom", void 0);
47127
+ __decorate([
47128
+ Field({ nullable: true }),
47129
+ __metadata("design:type", String)
47130
+ ], CreateMJCompanyIntegrationObjectInput.prototype, "CreateAPIPath", void 0);
47131
+ __decorate([
47132
+ Field({ nullable: true }),
47133
+ __metadata("design:type", String)
47134
+ ], CreateMJCompanyIntegrationObjectInput.prototype, "CreateMethod", void 0);
47135
+ __decorate([
47136
+ Field({ nullable: true }),
47137
+ __metadata("design:type", String)
47138
+ ], CreateMJCompanyIntegrationObjectInput.prototype, "CreateBodyShape", void 0);
47139
+ __decorate([
47140
+ Field({ nullable: true }),
47141
+ __metadata("design:type", String)
47142
+ ], CreateMJCompanyIntegrationObjectInput.prototype, "CreateBodyKey", void 0);
47143
+ __decorate([
47144
+ Field({ nullable: true }),
47145
+ __metadata("design:type", String)
47146
+ ], CreateMJCompanyIntegrationObjectInput.prototype, "CreateIDLocation", void 0);
47147
+ __decorate([
47148
+ Field({ nullable: true }),
47149
+ __metadata("design:type", String)
47150
+ ], CreateMJCompanyIntegrationObjectInput.prototype, "UpdateAPIPath", void 0);
47151
+ __decorate([
47152
+ Field({ nullable: true }),
47153
+ __metadata("design:type", String)
47154
+ ], CreateMJCompanyIntegrationObjectInput.prototype, "UpdateMethod", void 0);
47155
+ __decorate([
47156
+ Field({ nullable: true }),
47157
+ __metadata("design:type", String)
47158
+ ], CreateMJCompanyIntegrationObjectInput.prototype, "UpdateBodyShape", void 0);
47159
+ __decorate([
47160
+ Field({ nullable: true }),
47161
+ __metadata("design:type", String)
47162
+ ], CreateMJCompanyIntegrationObjectInput.prototype, "UpdateBodyKey", void 0);
47163
+ __decorate([
47164
+ Field({ nullable: true }),
47165
+ __metadata("design:type", String)
47166
+ ], CreateMJCompanyIntegrationObjectInput.prototype, "UpdateIDLocation", void 0);
47167
+ __decorate([
47168
+ Field({ nullable: true }),
47169
+ __metadata("design:type", String)
47170
+ ], CreateMJCompanyIntegrationObjectInput.prototype, "DeleteAPIPath", void 0);
47171
+ __decorate([
47172
+ Field({ nullable: true }),
47173
+ __metadata("design:type", String)
47174
+ ], CreateMJCompanyIntegrationObjectInput.prototype, "DeleteIDLocation", void 0);
47175
+ __decorate([
47176
+ Field({ nullable: true }),
47177
+ __metadata("design:type", String)
47178
+ ], CreateMJCompanyIntegrationObjectInput.prototype, "IncrementalWatermarkField", void 0);
47179
+ __decorate([
47180
+ Field({ nullable: true }),
47181
+ __metadata("design:type", String)
47182
+ ], CreateMJCompanyIntegrationObjectInput.prototype, "MetadataSource", void 0);
47183
+ __decorate([
47184
+ Field(() => Boolean, { nullable: true }),
47185
+ __metadata("design:type", Boolean)
47186
+ ], CreateMJCompanyIntegrationObjectInput.prototype, "SupportsCreate", void 0);
47187
+ __decorate([
47188
+ Field(() => Boolean, { nullable: true }),
47189
+ __metadata("design:type", Boolean)
47190
+ ], CreateMJCompanyIntegrationObjectInput.prototype, "SupportsUpdate", void 0);
47191
+ __decorate([
47192
+ Field(() => Boolean, { nullable: true }),
47193
+ __metadata("design:type", Boolean)
47194
+ ], CreateMJCompanyIntegrationObjectInput.prototype, "SupportsDelete", void 0);
47195
+ __decorate([
47196
+ Field({ nullable: true }),
47197
+ __metadata("design:type", String)
47198
+ ], CreateMJCompanyIntegrationObjectInput.prototype, "SyncStrategy", void 0);
47199
+ __decorate([
47200
+ Field(() => Boolean, { nullable: true }),
47201
+ __metadata("design:type", Boolean)
47202
+ ], CreateMJCompanyIntegrationObjectInput.prototype, "ContentHashApplicable", void 0);
47203
+ __decorate([
47204
+ Field({ nullable: true }),
47205
+ __metadata("design:type", String)
47206
+ ], CreateMJCompanyIntegrationObjectInput.prototype, "StableOrderingKey", void 0);
47207
+ __decorate([
47208
+ Field({ nullable: true }),
47209
+ __metadata("design:type", String)
47210
+ ], CreateMJCompanyIntegrationObjectInput.prototype, "CompanyIntegrationID", void 0);
47211
+ __decorate([
47212
+ Field({ nullable: true }),
47213
+ __metadata("design:type", String)
47214
+ ], CreateMJCompanyIntegrationObjectInput.prototype, "IntegrationObjectID", void 0);
47215
+ __decorate([
47216
+ Field({ nullable: true }),
47217
+ __metadata("design:type", String)
47218
+ ], CreateMJCompanyIntegrationObjectInput.prototype, "Provenance", void 0);
47219
+ __decorate([
47220
+ Field({ nullable: true }),
47221
+ __metadata("design:type", String)
47222
+ ], CreateMJCompanyIntegrationObjectInput.prototype, "ProvenanceDetail", void 0);
47223
+ __decorate([
47224
+ Field(() => Boolean, { nullable: true }),
47225
+ __metadata("design:type", Boolean)
47226
+ ], CreateMJCompanyIntegrationObjectInput.prototype, "IsSelected", void 0);
47227
+ __decorate([
47228
+ Field({ nullable: true }),
47229
+ __metadata("design:type", Date)
47230
+ ], CreateMJCompanyIntegrationObjectInput.prototype, "SelectedAt", void 0);
47231
+ __decorate([
47232
+ Field({ nullable: true }),
47233
+ __metadata("design:type", Date)
47234
+ ], CreateMJCompanyIntegrationObjectInput.prototype, "FirstSeenAt", void 0);
47235
+ __decorate([
47236
+ Field({ nullable: true }),
47237
+ __metadata("design:type", Date)
47238
+ ], CreateMJCompanyIntegrationObjectInput.prototype, "LastSeenAt", void 0);
47239
+ __decorate([
47240
+ Field({ nullable: true }),
47241
+ __metadata("design:type", Date)
47242
+ ], CreateMJCompanyIntegrationObjectInput.prototype, "LastSampledAt", void 0);
47243
+ __decorate([
47244
+ Field(() => RestoreContextInput, { nullable: true }),
47245
+ __metadata("design:type", RestoreContextInput)
47246
+ ], CreateMJCompanyIntegrationObjectInput.prototype, "RestoreContext___", void 0);
47247
+ CreateMJCompanyIntegrationObjectInput = __decorate([
47248
+ InputType()
47249
+ ], CreateMJCompanyIntegrationObjectInput);
47250
+ export { CreateMJCompanyIntegrationObjectInput };
47251
+ //****************************************************************************
47252
+ // INPUT TYPE for MJ: Company Integration Objects
47253
+ //****************************************************************************
47254
+ let UpdateMJCompanyIntegrationObjectInput = class UpdateMJCompanyIntegrationObjectInput {
47255
+ };
47256
+ __decorate([
47257
+ Field(),
47258
+ __metadata("design:type", String)
47259
+ ], UpdateMJCompanyIntegrationObjectInput.prototype, "ID", void 0);
47260
+ __decorate([
47261
+ Field({ nullable: true }),
47262
+ __metadata("design:type", String)
47263
+ ], UpdateMJCompanyIntegrationObjectInput.prototype, "IntegrationID", void 0);
47264
+ __decorate([
47265
+ Field({ nullable: true }),
47266
+ __metadata("design:type", String)
47267
+ ], UpdateMJCompanyIntegrationObjectInput.prototype, "Name", void 0);
47268
+ __decorate([
47269
+ Field({ nullable: true }),
47270
+ __metadata("design:type", String)
47271
+ ], UpdateMJCompanyIntegrationObjectInput.prototype, "DisplayName", void 0);
47272
+ __decorate([
47273
+ Field({ nullable: true }),
47274
+ __metadata("design:type", String)
47275
+ ], UpdateMJCompanyIntegrationObjectInput.prototype, "Description", void 0);
47276
+ __decorate([
47277
+ Field({ nullable: true }),
47278
+ __metadata("design:type", String)
47279
+ ], UpdateMJCompanyIntegrationObjectInput.prototype, "Category", void 0);
47280
+ __decorate([
47281
+ Field({ nullable: true }),
47282
+ __metadata("design:type", String)
47283
+ ], UpdateMJCompanyIntegrationObjectInput.prototype, "APIPath", void 0);
47284
+ __decorate([
47285
+ Field({ nullable: true }),
47286
+ __metadata("design:type", String)
47287
+ ], UpdateMJCompanyIntegrationObjectInput.prototype, "ResponseDataKey", void 0);
47288
+ __decorate([
47289
+ Field(() => Int, { nullable: true }),
47290
+ __metadata("design:type", Number)
47291
+ ], UpdateMJCompanyIntegrationObjectInput.prototype, "DefaultPageSize", void 0);
47292
+ __decorate([
47293
+ Field(() => Boolean, { nullable: true }),
47294
+ __metadata("design:type", Boolean)
47295
+ ], UpdateMJCompanyIntegrationObjectInput.prototype, "SupportsPagination", void 0);
47296
+ __decorate([
47297
+ Field({ nullable: true }),
47298
+ __metadata("design:type", String)
47299
+ ], UpdateMJCompanyIntegrationObjectInput.prototype, "PaginationType", void 0);
47300
+ __decorate([
47301
+ Field(() => Boolean, { nullable: true }),
47302
+ __metadata("design:type", Boolean)
47303
+ ], UpdateMJCompanyIntegrationObjectInput.prototype, "SupportsIncrementalSync", void 0);
47304
+ __decorate([
47305
+ Field(() => Boolean, { nullable: true }),
47306
+ __metadata("design:type", Boolean)
47307
+ ], UpdateMJCompanyIntegrationObjectInput.prototype, "SupportsWrite", void 0);
47308
+ __decorate([
47309
+ Field({ nullable: true }),
47310
+ __metadata("design:type", String)
47311
+ ], UpdateMJCompanyIntegrationObjectInput.prototype, "DefaultQueryParams", void 0);
47312
+ __decorate([
47313
+ Field({ nullable: true }),
47314
+ __metadata("design:type", String)
47315
+ ], UpdateMJCompanyIntegrationObjectInput.prototype, "Configuration", void 0);
47316
+ __decorate([
47317
+ Field(() => Int, { nullable: true }),
47318
+ __metadata("design:type", Number)
47319
+ ], UpdateMJCompanyIntegrationObjectInput.prototype, "Sequence", void 0);
47320
+ __decorate([
47321
+ Field({ nullable: true }),
47322
+ __metadata("design:type", String)
47323
+ ], UpdateMJCompanyIntegrationObjectInput.prototype, "Status", void 0);
47324
+ __decorate([
47325
+ Field({ nullable: true }),
47326
+ __metadata("design:type", String)
47327
+ ], UpdateMJCompanyIntegrationObjectInput.prototype, "WriteAPIPath", void 0);
47328
+ __decorate([
47329
+ Field({ nullable: true }),
47330
+ __metadata("design:type", String)
47331
+ ], UpdateMJCompanyIntegrationObjectInput.prototype, "WriteMethod", void 0);
47332
+ __decorate([
47333
+ Field({ nullable: true }),
47334
+ __metadata("design:type", String)
47335
+ ], UpdateMJCompanyIntegrationObjectInput.prototype, "DeleteMethod", void 0);
47336
+ __decorate([
47337
+ Field(() => Boolean, { nullable: true }),
47338
+ __metadata("design:type", Boolean)
47339
+ ], UpdateMJCompanyIntegrationObjectInput.prototype, "IsCustom", void 0);
47340
+ __decorate([
47341
+ Field({ nullable: true }),
47342
+ __metadata("design:type", String)
47343
+ ], UpdateMJCompanyIntegrationObjectInput.prototype, "CreateAPIPath", void 0);
47344
+ __decorate([
47345
+ Field({ nullable: true }),
47346
+ __metadata("design:type", String)
47347
+ ], UpdateMJCompanyIntegrationObjectInput.prototype, "CreateMethod", void 0);
47348
+ __decorate([
47349
+ Field({ nullable: true }),
47350
+ __metadata("design:type", String)
47351
+ ], UpdateMJCompanyIntegrationObjectInput.prototype, "CreateBodyShape", void 0);
47352
+ __decorate([
47353
+ Field({ nullable: true }),
47354
+ __metadata("design:type", String)
47355
+ ], UpdateMJCompanyIntegrationObjectInput.prototype, "CreateBodyKey", void 0);
47356
+ __decorate([
47357
+ Field({ nullable: true }),
47358
+ __metadata("design:type", String)
47359
+ ], UpdateMJCompanyIntegrationObjectInput.prototype, "CreateIDLocation", void 0);
47360
+ __decorate([
47361
+ Field({ nullable: true }),
47362
+ __metadata("design:type", String)
47363
+ ], UpdateMJCompanyIntegrationObjectInput.prototype, "UpdateAPIPath", void 0);
47364
+ __decorate([
47365
+ Field({ nullable: true }),
47366
+ __metadata("design:type", String)
47367
+ ], UpdateMJCompanyIntegrationObjectInput.prototype, "UpdateMethod", void 0);
47368
+ __decorate([
47369
+ Field({ nullable: true }),
47370
+ __metadata("design:type", String)
47371
+ ], UpdateMJCompanyIntegrationObjectInput.prototype, "UpdateBodyShape", void 0);
47372
+ __decorate([
47373
+ Field({ nullable: true }),
47374
+ __metadata("design:type", String)
47375
+ ], UpdateMJCompanyIntegrationObjectInput.prototype, "UpdateBodyKey", void 0);
47376
+ __decorate([
47377
+ Field({ nullable: true }),
47378
+ __metadata("design:type", String)
47379
+ ], UpdateMJCompanyIntegrationObjectInput.prototype, "UpdateIDLocation", void 0);
47380
+ __decorate([
47381
+ Field({ nullable: true }),
47382
+ __metadata("design:type", String)
47383
+ ], UpdateMJCompanyIntegrationObjectInput.prototype, "DeleteAPIPath", void 0);
47384
+ __decorate([
47385
+ Field({ nullable: true }),
47386
+ __metadata("design:type", String)
47387
+ ], UpdateMJCompanyIntegrationObjectInput.prototype, "DeleteIDLocation", void 0);
47388
+ __decorate([
47389
+ Field({ nullable: true }),
47390
+ __metadata("design:type", String)
47391
+ ], UpdateMJCompanyIntegrationObjectInput.prototype, "IncrementalWatermarkField", void 0);
47392
+ __decorate([
47393
+ Field({ nullable: true }),
47394
+ __metadata("design:type", String)
47395
+ ], UpdateMJCompanyIntegrationObjectInput.prototype, "MetadataSource", void 0);
47396
+ __decorate([
47397
+ Field(() => Boolean, { nullable: true }),
47398
+ __metadata("design:type", Boolean)
47399
+ ], UpdateMJCompanyIntegrationObjectInput.prototype, "SupportsCreate", void 0);
47400
+ __decorate([
47401
+ Field(() => Boolean, { nullable: true }),
47402
+ __metadata("design:type", Boolean)
47403
+ ], UpdateMJCompanyIntegrationObjectInput.prototype, "SupportsUpdate", void 0);
47404
+ __decorate([
47405
+ Field(() => Boolean, { nullable: true }),
47406
+ __metadata("design:type", Boolean)
47407
+ ], UpdateMJCompanyIntegrationObjectInput.prototype, "SupportsDelete", void 0);
47408
+ __decorate([
47409
+ Field({ nullable: true }),
47410
+ __metadata("design:type", String)
47411
+ ], UpdateMJCompanyIntegrationObjectInput.prototype, "SyncStrategy", void 0);
47412
+ __decorate([
47413
+ Field(() => Boolean, { nullable: true }),
47414
+ __metadata("design:type", Boolean)
47415
+ ], UpdateMJCompanyIntegrationObjectInput.prototype, "ContentHashApplicable", void 0);
47416
+ __decorate([
47417
+ Field({ nullable: true }),
47418
+ __metadata("design:type", String)
47419
+ ], UpdateMJCompanyIntegrationObjectInput.prototype, "StableOrderingKey", void 0);
47420
+ __decorate([
47421
+ Field({ nullable: true }),
47422
+ __metadata("design:type", String)
47423
+ ], UpdateMJCompanyIntegrationObjectInput.prototype, "CompanyIntegrationID", void 0);
47424
+ __decorate([
47425
+ Field({ nullable: true }),
47426
+ __metadata("design:type", String)
47427
+ ], UpdateMJCompanyIntegrationObjectInput.prototype, "IntegrationObjectID", void 0);
47428
+ __decorate([
47429
+ Field({ nullable: true }),
47430
+ __metadata("design:type", String)
47431
+ ], UpdateMJCompanyIntegrationObjectInput.prototype, "Provenance", void 0);
47432
+ __decorate([
47433
+ Field({ nullable: true }),
47434
+ __metadata("design:type", String)
47435
+ ], UpdateMJCompanyIntegrationObjectInput.prototype, "ProvenanceDetail", void 0);
47436
+ __decorate([
47437
+ Field(() => Boolean, { nullable: true }),
47438
+ __metadata("design:type", Boolean)
47439
+ ], UpdateMJCompanyIntegrationObjectInput.prototype, "IsSelected", void 0);
47440
+ __decorate([
47441
+ Field({ nullable: true }),
47442
+ __metadata("design:type", Date)
47443
+ ], UpdateMJCompanyIntegrationObjectInput.prototype, "SelectedAt", void 0);
47444
+ __decorate([
47445
+ Field({ nullable: true }),
47446
+ __metadata("design:type", Date)
47447
+ ], UpdateMJCompanyIntegrationObjectInput.prototype, "FirstSeenAt", void 0);
47448
+ __decorate([
47449
+ Field({ nullable: true }),
47450
+ __metadata("design:type", Date)
47451
+ ], UpdateMJCompanyIntegrationObjectInput.prototype, "LastSeenAt", void 0);
47452
+ __decorate([
47453
+ Field({ nullable: true }),
47454
+ __metadata("design:type", Date)
47455
+ ], UpdateMJCompanyIntegrationObjectInput.prototype, "LastSampledAt", void 0);
47456
+ __decorate([
47457
+ Field(() => [KeyValuePairInput], { nullable: true }),
47458
+ __metadata("design:type", Array)
47459
+ ], UpdateMJCompanyIntegrationObjectInput.prototype, "OldValues___", void 0);
47460
+ __decorate([
47461
+ Field(() => RestoreContextInput, { nullable: true }),
47462
+ __metadata("design:type", RestoreContextInput)
47463
+ ], UpdateMJCompanyIntegrationObjectInput.prototype, "RestoreContext___", void 0);
47464
+ UpdateMJCompanyIntegrationObjectInput = __decorate([
47465
+ InputType()
47466
+ ], UpdateMJCompanyIntegrationObjectInput);
47467
+ export { UpdateMJCompanyIntegrationObjectInput };
47468
+ //****************************************************************************
47469
+ // RESOLVER for MJ: Company Integration Objects
47470
+ //****************************************************************************
47471
+ let RunMJCompanyIntegrationObjectViewResult = class RunMJCompanyIntegrationObjectViewResult {
47472
+ };
47473
+ __decorate([
47474
+ Field(() => [MJCompanyIntegrationObject_]),
47475
+ __metadata("design:type", Array)
47476
+ ], RunMJCompanyIntegrationObjectViewResult.prototype, "Results", void 0);
47477
+ __decorate([
47478
+ Field(() => String, { nullable: true }),
47479
+ __metadata("design:type", String)
47480
+ ], RunMJCompanyIntegrationObjectViewResult.prototype, "UserViewRunID", void 0);
47481
+ __decorate([
47482
+ Field(() => Int, { nullable: true }),
47483
+ __metadata("design:type", Number)
47484
+ ], RunMJCompanyIntegrationObjectViewResult.prototype, "RowCount", void 0);
47485
+ __decorate([
47486
+ Field(() => Int, { nullable: true }),
47487
+ __metadata("design:type", Number)
47488
+ ], RunMJCompanyIntegrationObjectViewResult.prototype, "TotalRowCount", void 0);
47489
+ __decorate([
47490
+ Field(() => Int, { nullable: true }),
47491
+ __metadata("design:type", Number)
47492
+ ], RunMJCompanyIntegrationObjectViewResult.prototype, "ExecutionTime", void 0);
47493
+ __decorate([
47494
+ Field({ nullable: true }),
47495
+ __metadata("design:type", String)
47496
+ ], RunMJCompanyIntegrationObjectViewResult.prototype, "ErrorMessage", void 0);
47497
+ __decorate([
47498
+ Field(() => Boolean, { nullable: false }),
47499
+ __metadata("design:type", Boolean)
47500
+ ], RunMJCompanyIntegrationObjectViewResult.prototype, "Success", void 0);
47501
+ RunMJCompanyIntegrationObjectViewResult = __decorate([
47502
+ ObjectType()
47503
+ ], RunMJCompanyIntegrationObjectViewResult);
47504
+ export { RunMJCompanyIntegrationObjectViewResult };
47505
+ let MJCompanyIntegrationObjectResolver = class MJCompanyIntegrationObjectResolver extends ResolverBase {
47506
+ async RunMJCompanyIntegrationObjectViewByID(input, { providers, userPayload }, pubSub) {
47507
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
47508
+ return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
47509
+ }
47510
+ async RunMJCompanyIntegrationObjectViewByName(input, { providers, userPayload }, pubSub) {
47511
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
47512
+ return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
47513
+ }
47514
+ async RunMJCompanyIntegrationObjectDynamicView(input, { providers, userPayload }, pubSub) {
47515
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
47516
+ input.EntityName = 'MJ: Company Integration Objects';
47517
+ return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
47518
+ }
47519
+ async MJCompanyIntegrationObject(ID, { userPayload, providers }, pubSub) {
47520
+ this.CheckUserReadPermissions('MJ: Company Integration Objects', userPayload);
47521
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
47522
+ const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwCompanyIntegrationObjects')} WHERE ${provider.QuoteIdentifier('ID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Company Integration Objects', userPayload, EntityPermissionType.Read, 'AND');
47523
+ const rows = await provider.ExecuteSQL(sSQL, [ID], undefined, this.GetUserFromPayload(userPayload));
47524
+ const result = await this.MapFieldNamesToCodeNames('MJ: Company Integration Objects', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
47525
+ return result;
47526
+ }
47527
+ async CreateMJCompanyIntegrationObject(input, { providers, userPayload }, pubSub) {
47528
+ const provider = GetReadWriteProvider(providers);
47529
+ return this.CreateRecord('MJ: Company Integration Objects', input, provider, userPayload, pubSub);
47530
+ }
47531
+ async UpdateMJCompanyIntegrationObject(input, { providers, userPayload }, pubSub) {
47532
+ const provider = GetReadWriteProvider(providers);
47533
+ return this.UpdateRecord('MJ: Company Integration Objects', input, provider, userPayload, pubSub);
47534
+ }
47535
+ async DeleteMJCompanyIntegrationObject(ID, options, { providers, userPayload }, pubSub) {
47536
+ const provider = GetReadWriteProvider(providers);
47537
+ const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
47538
+ return this.DeleteRecord('MJ: Company Integration Objects', key, options, provider, userPayload, pubSub);
47539
+ }
47540
+ };
47541
+ __decorate([
47542
+ Query(() => RunMJCompanyIntegrationObjectViewResult),
47543
+ __param(0, Arg('input', () => RunViewByIDInput)),
47544
+ __param(1, Ctx()),
47545
+ __param(2, PubSub()),
47546
+ __metadata("design:type", Function),
47547
+ __metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
47548
+ __metadata("design:returntype", Promise)
47549
+ ], MJCompanyIntegrationObjectResolver.prototype, "RunMJCompanyIntegrationObjectViewByID", null);
47550
+ __decorate([
47551
+ Query(() => RunMJCompanyIntegrationObjectViewResult),
47552
+ __param(0, Arg('input', () => RunViewByNameInput)),
47553
+ __param(1, Ctx()),
47554
+ __param(2, PubSub()),
47555
+ __metadata("design:type", Function),
47556
+ __metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
47557
+ __metadata("design:returntype", Promise)
47558
+ ], MJCompanyIntegrationObjectResolver.prototype, "RunMJCompanyIntegrationObjectViewByName", null);
47559
+ __decorate([
47560
+ Query(() => RunMJCompanyIntegrationObjectViewResult),
47561
+ __param(0, Arg('input', () => RunDynamicViewInput)),
47562
+ __param(1, Ctx()),
47563
+ __param(2, PubSub()),
47564
+ __metadata("design:type", Function),
47565
+ __metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
47566
+ __metadata("design:returntype", Promise)
47567
+ ], MJCompanyIntegrationObjectResolver.prototype, "RunMJCompanyIntegrationObjectDynamicView", null);
47568
+ __decorate([
47569
+ Query(() => MJCompanyIntegrationObject_, { nullable: true }),
47570
+ __param(0, Arg('ID', () => String)),
47571
+ __param(1, Ctx()),
47572
+ __param(2, PubSub()),
47573
+ __metadata("design:type", Function),
47574
+ __metadata("design:paramtypes", [String, Object, PubSubEngine]),
47575
+ __metadata("design:returntype", Promise)
47576
+ ], MJCompanyIntegrationObjectResolver.prototype, "MJCompanyIntegrationObject", null);
47577
+ __decorate([
47578
+ Mutation(() => MJCompanyIntegrationObject_),
47579
+ __param(0, Arg('input', () => CreateMJCompanyIntegrationObjectInput)),
47580
+ __param(1, Ctx()),
47581
+ __param(2, PubSub()),
47582
+ __metadata("design:type", Function),
47583
+ __metadata("design:paramtypes", [CreateMJCompanyIntegrationObjectInput, Object, PubSubEngine]),
47584
+ __metadata("design:returntype", Promise)
47585
+ ], MJCompanyIntegrationObjectResolver.prototype, "CreateMJCompanyIntegrationObject", null);
47586
+ __decorate([
47587
+ Mutation(() => MJCompanyIntegrationObject_),
47588
+ __param(0, Arg('input', () => UpdateMJCompanyIntegrationObjectInput)),
47589
+ __param(1, Ctx()),
47590
+ __param(2, PubSub()),
47591
+ __metadata("design:type", Function),
47592
+ __metadata("design:paramtypes", [UpdateMJCompanyIntegrationObjectInput, Object, PubSubEngine]),
47593
+ __metadata("design:returntype", Promise)
47594
+ ], MJCompanyIntegrationObjectResolver.prototype, "UpdateMJCompanyIntegrationObject", null);
47595
+ __decorate([
47596
+ Mutation(() => MJCompanyIntegrationObject_),
47597
+ __param(0, Arg('ID', () => String)),
47598
+ __param(1, Arg('options___', () => DeleteOptionsInput)),
47599
+ __param(2, Ctx()),
47600
+ __param(3, PubSub()),
47601
+ __metadata("design:type", Function),
47602
+ __metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
47603
+ __metadata("design:returntype", Promise)
47604
+ ], MJCompanyIntegrationObjectResolver.prototype, "DeleteMJCompanyIntegrationObject", null);
47605
+ MJCompanyIntegrationObjectResolver = __decorate([
47606
+ Resolver(MJCompanyIntegrationObject_)
47607
+ ], MJCompanyIntegrationObjectResolver);
47608
+ export { MJCompanyIntegrationObjectResolver };
47609
+ //****************************************************************************
44881
47610
  // ENTITY CLASS for MJ: Company Integration Record Maps
44882
47611
  //****************************************************************************
44883
47612
  let MJCompanyIntegrationRecordMap_ = class MJCompanyIntegrationRecordMap_ {
@@ -48288,11 +51017,39 @@ __decorate([
48288
51017
  Field({ nullable: true, description: "The technical-design embedding as little-endian IEEE-754 float32 bytes (4 bytes per dimension): the compact form of TechnicalDesignVector. Written alongside TechnicalDesignVector; readers prefer it and fall back to TechnicalDesignVector when it is NULL." }),
48289
51018
  __metadata("design:type", String)
48290
51019
  ], MJComponent_.prototype, "TechnicalDesignVectorBinary", void 0);
51020
+ __decorate([
51021
+ Field({ nullable: true, description: "Whether this component version's definition is approved: Pending, Approved or Rejected. Separate from Status, which is publication. An approval is current only while ApprovedFingerprint matches the current definition." }),
51022
+ MaxLength(20),
51023
+ __metadata("design:type", String)
51024
+ ], MJComponent_.prototype, "ApprovalStatus", void 0);
51025
+ __decorate([
51026
+ Field({ nullable: true, description: "Reviewer comments recorded with the approval decision, such as the tests the definition passed." }),
51027
+ __metadata("design:type", String)
51028
+ ], MJComponent_.prototype, "ApprovalComments", void 0);
51029
+ __decorate([
51030
+ Field({ nullable: true, description: "The user who approved this component version." }),
51031
+ MaxLength(36),
51032
+ __metadata("design:type", String)
51033
+ ], MJComponent_.prototype, "ApprovedByUserID", void 0);
51034
+ __decorate([
51035
+ Field({ nullable: true, description: "When this component version was approved." }),
51036
+ __metadata("design:type", Date)
51037
+ ], MJComponent_.prototype, "ApprovedAt", void 0);
51038
+ __decorate([
51039
+ Field({ nullable: true, description: "SHA-256 fingerprint of the definition that was approved: the component's specification for this version. The approval is current only while this matches the fingerprint of the current definition." }),
51040
+ MaxLength(100),
51041
+ __metadata("design:type", String)
51042
+ ], MJComponent_.prototype, "ApprovedFingerprint", void 0);
48291
51043
  __decorate([
48292
51044
  Field({ nullable: true }),
48293
51045
  MaxLength(255),
48294
51046
  __metadata("design:type", String)
48295
51047
  ], MJComponent_.prototype, "SourceRegistry", void 0);
51048
+ __decorate([
51049
+ Field({ nullable: true }),
51050
+ MaxLength(100),
51051
+ __metadata("design:type", String)
51052
+ ], MJComponent_.prototype, "ApprovedByUser", void 0);
48296
51053
  __decorate([
48297
51054
  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.` }),
48298
51055
  __metadata("design:type", Array)
@@ -48422,6 +51179,26 @@ __decorate([
48422
51179
  Field({ nullable: true }),
48423
51180
  __metadata("design:type", String)
48424
51181
  ], CreateMJComponentInput.prototype, "TechnicalDesignVectorBinary", void 0);
51182
+ __decorate([
51183
+ Field({ nullable: true }),
51184
+ __metadata("design:type", String)
51185
+ ], CreateMJComponentInput.prototype, "ApprovalStatus", void 0);
51186
+ __decorate([
51187
+ Field({ nullable: true }),
51188
+ __metadata("design:type", String)
51189
+ ], CreateMJComponentInput.prototype, "ApprovalComments", void 0);
51190
+ __decorate([
51191
+ Field({ nullable: true }),
51192
+ __metadata("design:type", String)
51193
+ ], CreateMJComponentInput.prototype, "ApprovedByUserID", void 0);
51194
+ __decorate([
51195
+ Field({ nullable: true }),
51196
+ __metadata("design:type", Date)
51197
+ ], CreateMJComponentInput.prototype, "ApprovedAt", void 0);
51198
+ __decorate([
51199
+ Field({ nullable: true }),
51200
+ __metadata("design:type", String)
51201
+ ], CreateMJComponentInput.prototype, "ApprovedFingerprint", void 0);
48425
51202
  __decorate([
48426
51203
  Field(() => RestoreContextInput, { nullable: true }),
48427
51204
  __metadata("design:type", RestoreContextInput)
@@ -48551,6 +51328,26 @@ __decorate([
48551
51328
  Field({ nullable: true }),
48552
51329
  __metadata("design:type", String)
48553
51330
  ], UpdateMJComponentInput.prototype, "TechnicalDesignVectorBinary", void 0);
51331
+ __decorate([
51332
+ Field({ nullable: true }),
51333
+ __metadata("design:type", String)
51334
+ ], UpdateMJComponentInput.prototype, "ApprovalStatus", void 0);
51335
+ __decorate([
51336
+ Field({ nullable: true }),
51337
+ __metadata("design:type", String)
51338
+ ], UpdateMJComponentInput.prototype, "ApprovalComments", void 0);
51339
+ __decorate([
51340
+ Field({ nullable: true }),
51341
+ __metadata("design:type", String)
51342
+ ], UpdateMJComponentInput.prototype, "ApprovedByUserID", void 0);
51343
+ __decorate([
51344
+ Field({ nullable: true }),
51345
+ __metadata("design:type", Date)
51346
+ ], UpdateMJComponentInput.prototype, "ApprovedAt", void 0);
51347
+ __decorate([
51348
+ Field({ nullable: true }),
51349
+ __metadata("design:type", String)
51350
+ ], UpdateMJComponentInput.prototype, "ApprovedFingerprint", void 0);
48554
51351
  __decorate([
48555
51352
  Field(() => [KeyValuePairInput], { nullable: true }),
48556
51353
  __metadata("design:type", Array)
@@ -48732,6 +51529,19 @@ __decorate([
48732
51529
  Field(),
48733
51530
  __metadata("design:type", Date)
48734
51531
  ], MJContentFileType_.prototype, "_mj__UpdatedAt", void 0);
51532
+ __decorate([
51533
+ Field({ nullable: true, description: "How this file type is recognised from its own content, as JSON. Either magic bytes - {\"Magic\":[37,80,68,70],\"Offset\":0,\"Unambiguous\":true} - or, for a text format, the characters it opens with: {\"TextPrefix\":[\"<!doctype html\",\"<html\"]}, matched after a byte-order mark and leading whitespace are stripped and case is folded. Unambiguous means a match may override a declared type; a container format such as zip recognises without identifying, so it may not." }),
51534
+ __metadata("design:type", String)
51535
+ ], MJContentFileType_.prototype, "ByteSignature", void 0);
51536
+ __decorate([
51537
+ Field(() => Boolean, { nullable: true, description: "Whether this file type is text. Decides whether an unrecognised file is attempted as plain text or routed down the multi-modal path. NULL means unknown, and the pipeline falls back to inspecting the bytes." }),
51538
+ __metadata("design:type", Boolean)
51539
+ ], MJContentFileType_.prototype, "IsText", void 0);
51540
+ __decorate([
51541
+ Field({ nullable: true, description: "The registered content extractor that reads this file type. Lets a deployment add support for a format by pointing its file type at an extractor, rather than editing the extractor's own list of what it supports." }),
51542
+ MaxLength(100),
51543
+ __metadata("design:type", String)
51544
+ ], MJContentFileType_.prototype, "ExtractorKey", void 0);
48735
51545
  __decorate([
48736
51546
  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.` }),
48737
51547
  __metadata("design:type", Array)
@@ -48757,6 +51567,18 @@ __decorate([
48757
51567
  Field({ nullable: true }),
48758
51568
  __metadata("design:type", String)
48759
51569
  ], CreateMJContentFileTypeInput.prototype, "FileExtension", void 0);
51570
+ __decorate([
51571
+ Field({ nullable: true }),
51572
+ __metadata("design:type", String)
51573
+ ], CreateMJContentFileTypeInput.prototype, "ByteSignature", void 0);
51574
+ __decorate([
51575
+ Field(() => Boolean, { nullable: true }),
51576
+ __metadata("design:type", Boolean)
51577
+ ], CreateMJContentFileTypeInput.prototype, "IsText", void 0);
51578
+ __decorate([
51579
+ Field({ nullable: true }),
51580
+ __metadata("design:type", String)
51581
+ ], CreateMJContentFileTypeInput.prototype, "ExtractorKey", void 0);
48760
51582
  __decorate([
48761
51583
  Field(() => RestoreContextInput, { nullable: true }),
48762
51584
  __metadata("design:type", RestoreContextInput)
@@ -48782,6 +51604,18 @@ __decorate([
48782
51604
  Field({ nullable: true }),
48783
51605
  __metadata("design:type", String)
48784
51606
  ], UpdateMJContentFileTypeInput.prototype, "FileExtension", void 0);
51607
+ __decorate([
51608
+ Field({ nullable: true }),
51609
+ __metadata("design:type", String)
51610
+ ], UpdateMJContentFileTypeInput.prototype, "ByteSignature", void 0);
51611
+ __decorate([
51612
+ Field(() => Boolean, { nullable: true }),
51613
+ __metadata("design:type", Boolean)
51614
+ ], UpdateMJContentFileTypeInput.prototype, "IsText", void 0);
51615
+ __decorate([
51616
+ Field({ nullable: true }),
51617
+ __metadata("design:type", String)
51618
+ ], UpdateMJContentFileTypeInput.prototype, "ExtractorKey", void 0);
48785
51619
  __decorate([
48786
51620
  Field(() => [KeyValuePairInput], { nullable: true }),
48787
51621
  __metadata("design:type", Array)
@@ -49294,6 +52128,14 @@ __decorate([
49294
52128
  MaxLength(36),
49295
52129
  __metadata("design:type", String)
49296
52130
  ], MJContentItemChunk_.prototype, "ParentChunkID", void 0);
52131
+ __decorate([
52132
+ Field({ nullable: true, description: "Per-field provenance for the pipeline: for each well-known field, the confidence the winning stage had and which stage set it." }),
52133
+ __metadata("design:type", String)
52134
+ ], MJContentItemChunk_.prototype, "FieldConfidence", void 0);
52135
+ __decorate([
52136
+ Field({ nullable: true, description: "Text that accompanies this chunk so it still makes sense retrieved on its own — normally inherited from its parent item. Kept as its own field rather than prefixed into Text so it stays separately searchable and can be revised without rewriting the chunk." }),
52137
+ __metadata("design:type", String)
52138
+ ], MJContentItemChunk_.prototype, "Decorator", void 0);
49297
52139
  __decorate([
49298
52140
  Field({ nullable: true }),
49299
52141
  MaxLength(250),
@@ -49426,6 +52268,14 @@ __decorate([
49426
52268
  Field({ nullable: true }),
49427
52269
  __metadata("design:type", String)
49428
52270
  ], CreateMJContentItemChunkInput.prototype, "ParentChunkID", void 0);
52271
+ __decorate([
52272
+ Field({ nullable: true }),
52273
+ __metadata("design:type", String)
52274
+ ], CreateMJContentItemChunkInput.prototype, "FieldConfidence", void 0);
52275
+ __decorate([
52276
+ Field({ nullable: true }),
52277
+ __metadata("design:type", String)
52278
+ ], CreateMJContentItemChunkInput.prototype, "Decorator", void 0);
49429
52279
  __decorate([
49430
52280
  Field(() => RestoreContextInput, { nullable: true }),
49431
52281
  __metadata("design:type", RestoreContextInput)
@@ -49527,6 +52377,14 @@ __decorate([
49527
52377
  Field({ nullable: true }),
49528
52378
  __metadata("design:type", String)
49529
52379
  ], UpdateMJContentItemChunkInput.prototype, "ParentChunkID", void 0);
52380
+ __decorate([
52381
+ Field({ nullable: true }),
52382
+ __metadata("design:type", String)
52383
+ ], UpdateMJContentItemChunkInput.prototype, "FieldConfidence", void 0);
52384
+ __decorate([
52385
+ Field({ nullable: true }),
52386
+ __metadata("design:type", String)
52387
+ ], UpdateMJContentItemChunkInput.prototype, "Decorator", void 0);
49530
52388
  __decorate([
49531
52389
  Field(() => [KeyValuePairInput], { nullable: true }),
49532
52390
  __metadata("design:type", Array)
@@ -50402,6 +53260,53 @@ __decorate([
50402
53260
  MaxLength(2000),
50403
53261
  __metadata("design:type", String)
50404
53262
  ], MJContentItem_.prototype, "DisplayLink", void 0);
53263
+ __decorate([
53264
+ Field({ nullable: true, description: "Per-field provenance for the pipeline: for each well-known field, the confidence the winning stage had and which stage set it. Lets two stages that know nothing about each other resolve a shared field on merit rather than by running order." }),
53265
+ __metadata("design:type", String)
53266
+ ], MJContentItem_.prototype, "FieldConfidence", void 0);
53267
+ __decorate([
53268
+ Field({ nullable: true, description: "Status of the Extract stage for this item: Pending, Processing, Complete, Failed or Skipped." }),
53269
+ MaxLength(40),
53270
+ __metadata("design:type", String)
53271
+ ], MJContentItem_.prototype, "ExtractionStatus", void 0);
53272
+ __decorate([
53273
+ Field({ nullable: true, description: "Status of the Segment stage for this item: Pending, Processing, Complete, Failed or Skipped." }),
53274
+ MaxLength(40),
53275
+ __metadata("design:type", String)
53276
+ ], MJContentItem_.prototype, "SegmentationStatus", void 0);
53277
+ __decorate([
53278
+ Field({ nullable: true, description: "Soft-delete marker: Pending once something has been removed at the source, Deleted once the Delete stage has cleaned up everything downstream of it. Marking rather than deleting keeps the outside-system cleanup in one place and makes it retryable." }),
53279
+ MaxLength(20),
53280
+ __metadata("design:type", String)
53281
+ ], MJContentItem_.prototype, "DeleteStatus", void 0);
53282
+ __decorate([
53283
+ Field({ nullable: true, description: "The registered content extractor that actually read this item, recorded as a receipt of what ran. Distinct from the defaults on Content Type and in the source configuration, which say what should run." }),
53284
+ MaxLength(100),
53285
+ __metadata("design:type", String)
53286
+ ], MJContentItem_.prototype, "ExtractorKey", void 0);
53287
+ __decorate([
53288
+ Field({ nullable: true, description: "Forces a specific content extractor for this item, overriding every default in the cascade. Set by a splitting extractor that already knows what one of its own children is, and by an operator correcting a misrouted item." }),
53289
+ MaxLength(100),
53290
+ __metadata("design:type", String)
53291
+ ], MJContentItem_.prototype, "ExtractorKeyOverride", void 0);
53292
+ __decorate([
53293
+ Field({ nullable: true, description: "What kind of content this item holds: text, image, audio, video or multimodal. Determines whether the item can be embedded without extracted text." }),
53294
+ MaxLength(20),
53295
+ __metadata("design:type", String)
53296
+ ], MJContentItem_.prototype, "Modality", void 0);
53297
+ __decorate([
53298
+ Field({ nullable: true, description: "The date the content itself carries — published, issued or authored — as opposed to when this row was created." }),
53299
+ __metadata("design:type", Date)
53300
+ ], MJContentItem_.prototype, "Date", void 0);
53301
+ __decorate([
53302
+ Field({ nullable: true, description: "Text that accompanies this item so it still makes sense retrieved on its own. Kept as its own field rather than prefixed into Text so it stays separately searchable and can be revised without rewriting the content." }),
53303
+ __metadata("design:type", String)
53304
+ ], MJContentItem_.prototype, "Decorator", void 0);
53305
+ __decorate([
53306
+ Field({ nullable: true, description: "The durable copy of the fetched artifact, held as an MJ File so the bytes live in whichever storage provider the source is configured for rather than in this database." }),
53307
+ MaxLength(36),
53308
+ __metadata("design:type", String)
53309
+ ], MJContentItem_.prototype, "FileID", void 0);
50405
53310
  __decorate([
50406
53311
  Field({ nullable: true }),
50407
53312
  MaxLength(255),
@@ -50437,6 +53342,11 @@ __decorate([
50437
53342
  MaxLength(250),
50438
53343
  __metadata("design:type", String)
50439
53344
  ], MJContentItem_.prototype, "Parent", void 0);
53345
+ __decorate([
53346
+ Field({ nullable: true }),
53347
+ MaxLength(500),
53348
+ __metadata("design:type", String)
53349
+ ], MJContentItem_.prototype, "File", void 0);
50440
53350
  __decorate([
50441
53351
  Field({ nullable: true }),
50442
53352
  MaxLength(36),
@@ -50547,6 +53457,46 @@ __decorate([
50547
53457
  Field({ nullable: true }),
50548
53458
  __metadata("design:type", String)
50549
53459
  ], CreateMJContentItemInput.prototype, "DisplayLink", void 0);
53460
+ __decorate([
53461
+ Field({ nullable: true }),
53462
+ __metadata("design:type", String)
53463
+ ], CreateMJContentItemInput.prototype, "FieldConfidence", void 0);
53464
+ __decorate([
53465
+ Field({ nullable: true }),
53466
+ __metadata("design:type", String)
53467
+ ], CreateMJContentItemInput.prototype, "ExtractionStatus", void 0);
53468
+ __decorate([
53469
+ Field({ nullable: true }),
53470
+ __metadata("design:type", String)
53471
+ ], CreateMJContentItemInput.prototype, "SegmentationStatus", void 0);
53472
+ __decorate([
53473
+ Field({ nullable: true }),
53474
+ __metadata("design:type", String)
53475
+ ], CreateMJContentItemInput.prototype, "DeleteStatus", void 0);
53476
+ __decorate([
53477
+ Field({ nullable: true }),
53478
+ __metadata("design:type", String)
53479
+ ], CreateMJContentItemInput.prototype, "ExtractorKey", void 0);
53480
+ __decorate([
53481
+ Field({ nullable: true }),
53482
+ __metadata("design:type", String)
53483
+ ], CreateMJContentItemInput.prototype, "ExtractorKeyOverride", void 0);
53484
+ __decorate([
53485
+ Field({ nullable: true }),
53486
+ __metadata("design:type", String)
53487
+ ], CreateMJContentItemInput.prototype, "Modality", void 0);
53488
+ __decorate([
53489
+ Field({ nullable: true }),
53490
+ __metadata("design:type", Date)
53491
+ ], CreateMJContentItemInput.prototype, "Date", void 0);
53492
+ __decorate([
53493
+ Field({ nullable: true }),
53494
+ __metadata("design:type", String)
53495
+ ], CreateMJContentItemInput.prototype, "Decorator", void 0);
53496
+ __decorate([
53497
+ Field({ nullable: true }),
53498
+ __metadata("design:type", String)
53499
+ ], CreateMJContentItemInput.prototype, "FileID", void 0);
50550
53500
  __decorate([
50551
53501
  Field(() => RestoreContextInput, { nullable: true }),
50552
53502
  __metadata("design:type", RestoreContextInput)
@@ -50636,6 +53586,46 @@ __decorate([
50636
53586
  Field({ nullable: true }),
50637
53587
  __metadata("design:type", String)
50638
53588
  ], UpdateMJContentItemInput.prototype, "DisplayLink", void 0);
53589
+ __decorate([
53590
+ Field({ nullable: true }),
53591
+ __metadata("design:type", String)
53592
+ ], UpdateMJContentItemInput.prototype, "FieldConfidence", void 0);
53593
+ __decorate([
53594
+ Field({ nullable: true }),
53595
+ __metadata("design:type", String)
53596
+ ], UpdateMJContentItemInput.prototype, "ExtractionStatus", void 0);
53597
+ __decorate([
53598
+ Field({ nullable: true }),
53599
+ __metadata("design:type", String)
53600
+ ], UpdateMJContentItemInput.prototype, "SegmentationStatus", void 0);
53601
+ __decorate([
53602
+ Field({ nullable: true }),
53603
+ __metadata("design:type", String)
53604
+ ], UpdateMJContentItemInput.prototype, "DeleteStatus", void 0);
53605
+ __decorate([
53606
+ Field({ nullable: true }),
53607
+ __metadata("design:type", String)
53608
+ ], UpdateMJContentItemInput.prototype, "ExtractorKey", void 0);
53609
+ __decorate([
53610
+ Field({ nullable: true }),
53611
+ __metadata("design:type", String)
53612
+ ], UpdateMJContentItemInput.prototype, "ExtractorKeyOverride", void 0);
53613
+ __decorate([
53614
+ Field({ nullable: true }),
53615
+ __metadata("design:type", String)
53616
+ ], UpdateMJContentItemInput.prototype, "Modality", void 0);
53617
+ __decorate([
53618
+ Field({ nullable: true }),
53619
+ __metadata("design:type", Date)
53620
+ ], UpdateMJContentItemInput.prototype, "Date", void 0);
53621
+ __decorate([
53622
+ Field({ nullable: true }),
53623
+ __metadata("design:type", String)
53624
+ ], UpdateMJContentItemInput.prototype, "Decorator", void 0);
53625
+ __decorate([
53626
+ Field({ nullable: true }),
53627
+ __metadata("design:type", String)
53628
+ ], UpdateMJContentItemInput.prototype, "FileID", void 0);
50639
53629
  __decorate([
50640
53630
  Field(() => [KeyValuePairInput], { nullable: true }),
50641
53631
  __metadata("design:type", Array)
@@ -52645,6 +55635,22 @@ __decorate([
52645
55635
  MaxLength(36),
52646
55636
  __metadata("design:type", String)
52647
55637
  ], MJContentSource_.prototype, "ScheduledJobID", void 0);
55638
+ __decorate([
55639
+ Field({ nullable: true, description: "Per-field provenance for the pipeline: for each well-known field, the confidence the winning stage had and which stage set it." }),
55640
+ __metadata("design:type", String)
55641
+ ], MJContentSource_.prototype, "FieldConfidence", void 0);
55642
+ __decorate([
55643
+ Field(() => Boolean, { nullable: true, description: "Walk this source on the next pass regardless of its schedule. A one-shot: the Discover stage clears it when the walk completes. Scheduling is deployment-owned and the shipped Discover process selects ForceDiscovery = 1, which is why there is no discovery status column to re-arm." }),
55644
+ __metadata("design:type", Boolean)
55645
+ ], MJContentSource_.prototype, "ForceDiscovery", void 0);
55646
+ __decorate([
55647
+ Field({ nullable: true, description: "When this source was last walked by the Discover stage. Stamped with the time a completed walk started, and passed back as Since on subsequent incremental walks." }),
55648
+ __metadata("design:type", Date)
55649
+ ], MJContentSource_.prototype, "LastDiscoveredAt", void 0);
55650
+ __decorate([
55651
+ Field({ nullable: true, description: "When this source last completed a full Sync walk (reconciling removals). Stamped with the time a completed sync walk started. The shipped Sync Record Process selects sources by LastSyncedAt (LastSyncedAt IS NULL OR LastSyncedAt < DATEADD(day, -30, GETUTCDATE())), never by ForceDiscovery; to force a sync, set LastSyncedAt back or to NULL." }),
55652
+ __metadata("design:type", Date)
55653
+ ], MJContentSource_.prototype, "LastSyncedAt", void 0);
52648
55654
  __decorate([
52649
55655
  Field({ nullable: true }),
52650
55656
  MaxLength(255),
@@ -52754,6 +55760,22 @@ __decorate([
52754
55760
  Field({ nullable: true }),
52755
55761
  __metadata("design:type", String)
52756
55762
  ], CreateMJContentSourceInput.prototype, "ScheduledJobID", void 0);
55763
+ __decorate([
55764
+ Field({ nullable: true }),
55765
+ __metadata("design:type", String)
55766
+ ], CreateMJContentSourceInput.prototype, "FieldConfidence", void 0);
55767
+ __decorate([
55768
+ Field(() => Boolean, { nullable: true }),
55769
+ __metadata("design:type", Boolean)
55770
+ ], CreateMJContentSourceInput.prototype, "ForceDiscovery", void 0);
55771
+ __decorate([
55772
+ Field({ nullable: true }),
55773
+ __metadata("design:type", Date)
55774
+ ], CreateMJContentSourceInput.prototype, "LastDiscoveredAt", void 0);
55775
+ __decorate([
55776
+ Field({ nullable: true }),
55777
+ __metadata("design:type", Date)
55778
+ ], CreateMJContentSourceInput.prototype, "LastSyncedAt", void 0);
52757
55779
  __decorate([
52758
55780
  Field(() => RestoreContextInput, { nullable: true }),
52759
55781
  __metadata("design:type", RestoreContextInput)
@@ -52823,6 +55845,22 @@ __decorate([
52823
55845
  Field({ nullable: true }),
52824
55846
  __metadata("design:type", String)
52825
55847
  ], UpdateMJContentSourceInput.prototype, "ScheduledJobID", void 0);
55848
+ __decorate([
55849
+ Field({ nullable: true }),
55850
+ __metadata("design:type", String)
55851
+ ], UpdateMJContentSourceInput.prototype, "FieldConfidence", void 0);
55852
+ __decorate([
55853
+ Field(() => Boolean, { nullable: true }),
55854
+ __metadata("design:type", Boolean)
55855
+ ], UpdateMJContentSourceInput.prototype, "ForceDiscovery", void 0);
55856
+ __decorate([
55857
+ Field({ nullable: true }),
55858
+ __metadata("design:type", Date)
55859
+ ], UpdateMJContentSourceInput.prototype, "LastDiscoveredAt", void 0);
55860
+ __decorate([
55861
+ Field({ nullable: true }),
55862
+ __metadata("design:type", Date)
55863
+ ], UpdateMJContentSourceInput.prototype, "LastSyncedAt", void 0);
52826
55864
  __decorate([
52827
55865
  Field(() => [KeyValuePairInput], { nullable: true }),
52828
55866
  __metadata("design:type", Array)
@@ -53295,6 +56333,11 @@ __decorate([
53295
56333
  MaxLength(100),
53296
56334
  __metadata("design:type", String)
53297
56335
  ], MJContentType_.prototype, "CleanerKey", void 0);
56336
+ __decorate([
56337
+ Field({ nullable: true, description: "The default content extractor for items of this content type, beside SegmenterKey and CleanerKey. A per-type default has no home in a source's Configuration, and reading it from a run's Options would make it per-run." }),
56338
+ MaxLength(100),
56339
+ __metadata("design:type", String)
56340
+ ], MJContentType_.prototype, "ExtractorKey", void 0);
53298
56341
  __decorate([
53299
56342
  Field({ nullable: true }),
53300
56343
  MaxLength(50),
@@ -53367,6 +56410,10 @@ __decorate([
53367
56410
  Field({ nullable: true }),
53368
56411
  __metadata("design:type", String)
53369
56412
  ], CreateMJContentTypeInput.prototype, "CleanerKey", void 0);
56413
+ __decorate([
56414
+ Field({ nullable: true }),
56415
+ __metadata("design:type", String)
56416
+ ], CreateMJContentTypeInput.prototype, "ExtractorKey", void 0);
53370
56417
  __decorate([
53371
56418
  Field(() => RestoreContextInput, { nullable: true }),
53372
56419
  __metadata("design:type", RestoreContextInput)
@@ -53424,6 +56471,10 @@ __decorate([
53424
56471
  Field({ nullable: true }),
53425
56472
  __metadata("design:type", String)
53426
56473
  ], UpdateMJContentTypeInput.prototype, "CleanerKey", void 0);
56474
+ __decorate([
56475
+ Field({ nullable: true }),
56476
+ __metadata("design:type", String)
56477
+ ], UpdateMJContentTypeInput.prototype, "ExtractorKey", void 0);
53427
56478
  __decorate([
53428
56479
  Field(() => [KeyValuePairInput], { nullable: true }),
53429
56480
  __metadata("design:type", Array)
@@ -61073,6 +64124,29 @@ __decorate([
61073
64124
  MaxLength(36),
61074
64125
  __metadata("design:type", String)
61075
64126
  ], MJDashboard_.prototype, "EnvironmentID", void 0);
64127
+ __decorate([
64128
+ Field({ nullable: true, description: "Whether this dashboard's definition is approved: Pending, Approved or Rejected. An approval is current only while ApprovedFingerprint matches the current definition." }),
64129
+ MaxLength(20),
64130
+ __metadata("design:type", String)
64131
+ ], MJDashboard_.prototype, "ApprovalStatus", void 0);
64132
+ __decorate([
64133
+ Field({ nullable: true, description: "Reviewer comments recorded with the approval decision, such as the tests the definition passed." }),
64134
+ __metadata("design:type", String)
64135
+ ], MJDashboard_.prototype, "ApprovalComments", void 0);
64136
+ __decorate([
64137
+ Field({ nullable: true, description: "The user who approved this dashboard." }),
64138
+ MaxLength(36),
64139
+ __metadata("design:type", String)
64140
+ ], MJDashboard_.prototype, "ApprovedByUserID", void 0);
64141
+ __decorate([
64142
+ Field({ nullable: true, description: "When this dashboard was approved." }),
64143
+ __metadata("design:type", Date)
64144
+ ], MJDashboard_.prototype, "ApprovedAt", void 0);
64145
+ __decorate([
64146
+ Field({ nullable: true, description: "SHA-256 fingerprint of the definition that was approved: its layout, parts, property mappings, wires and code. The approval is current only while this matches the fingerprint of the current definition." }),
64147
+ MaxLength(100),
64148
+ __metadata("design:type", String)
64149
+ ], MJDashboard_.prototype, "ApprovedFingerprint", void 0);
61076
64150
  __decorate([
61077
64151
  Field({ nullable: true }),
61078
64152
  MaxLength(100),
@@ -61093,6 +64167,11 @@ __decorate([
61093
64167
  MaxLength(255),
61094
64168
  __metadata("design:type", String)
61095
64169
  ], MJDashboard_.prototype, "Environment", void 0);
64170
+ __decorate([
64171
+ Field({ nullable: true }),
64172
+ MaxLength(100),
64173
+ __metadata("design:type", String)
64174
+ ], MJDashboard_.prototype, "ApprovedByUser", void 0);
61096
64175
  __decorate([
61097
64176
  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.` }),
61098
64177
  __metadata("design:type", Array)
@@ -61158,6 +64237,26 @@ __decorate([
61158
64237
  Field({ nullable: true }),
61159
64238
  __metadata("design:type", String)
61160
64239
  ], CreateMJDashboardInput.prototype, "EnvironmentID", void 0);
64240
+ __decorate([
64241
+ Field({ nullable: true }),
64242
+ __metadata("design:type", String)
64243
+ ], CreateMJDashboardInput.prototype, "ApprovalStatus", void 0);
64244
+ __decorate([
64245
+ Field({ nullable: true }),
64246
+ __metadata("design:type", String)
64247
+ ], CreateMJDashboardInput.prototype, "ApprovalComments", void 0);
64248
+ __decorate([
64249
+ Field({ nullable: true }),
64250
+ __metadata("design:type", String)
64251
+ ], CreateMJDashboardInput.prototype, "ApprovedByUserID", void 0);
64252
+ __decorate([
64253
+ Field({ nullable: true }),
64254
+ __metadata("design:type", Date)
64255
+ ], CreateMJDashboardInput.prototype, "ApprovedAt", void 0);
64256
+ __decorate([
64257
+ Field({ nullable: true }),
64258
+ __metadata("design:type", String)
64259
+ ], CreateMJDashboardInput.prototype, "ApprovedFingerprint", void 0);
61161
64260
  __decorate([
61162
64261
  Field(() => RestoreContextInput, { nullable: true }),
61163
64262
  __metadata("design:type", RestoreContextInput)
@@ -61223,6 +64322,26 @@ __decorate([
61223
64322
  Field({ nullable: true }),
61224
64323
  __metadata("design:type", String)
61225
64324
  ], UpdateMJDashboardInput.prototype, "EnvironmentID", void 0);
64325
+ __decorate([
64326
+ Field({ nullable: true }),
64327
+ __metadata("design:type", String)
64328
+ ], UpdateMJDashboardInput.prototype, "ApprovalStatus", void 0);
64329
+ __decorate([
64330
+ Field({ nullable: true }),
64331
+ __metadata("design:type", String)
64332
+ ], UpdateMJDashboardInput.prototype, "ApprovalComments", void 0);
64333
+ __decorate([
64334
+ Field({ nullable: true }),
64335
+ __metadata("design:type", String)
64336
+ ], UpdateMJDashboardInput.prototype, "ApprovedByUserID", void 0);
64337
+ __decorate([
64338
+ Field({ nullable: true }),
64339
+ __metadata("design:type", Date)
64340
+ ], UpdateMJDashboardInput.prototype, "ApprovedAt", void 0);
64341
+ __decorate([
64342
+ Field({ nullable: true }),
64343
+ __metadata("design:type", String)
64344
+ ], UpdateMJDashboardInput.prototype, "ApprovedFingerprint", void 0);
61226
64345
  __decorate([
61227
64346
  Field(() => [KeyValuePairInput], { nullable: true }),
61228
64347
  __metadata("design:type", Array)
@@ -63415,6 +66534,11 @@ __decorate([
63415
66534
  Field(() => Boolean, { nullable: true, description: "When set to 1, duplicate detection stops after the current batch. Used for pause/cancel." }),
63416
66535
  __metadata("design:type", Boolean)
63417
66536
  ], MJDuplicateRun_.prototype, "CancellationRequested", void 0);
66537
+ __decorate([
66538
+ Field({ nullable: true, description: "The Entity Document this run used: its template, vectors, match thresholds and LLM reasoning settings produced the run's matches." }),
66539
+ MaxLength(36),
66540
+ __metadata("design:type", String)
66541
+ ], MJDuplicateRun_.prototype, "EntityDocumentID", void 0);
63418
66542
  __decorate([
63419
66543
  Field({ nullable: true }),
63420
66544
  MaxLength(255),
@@ -63435,6 +66559,11 @@ __decorate([
63435
66559
  MaxLength(100),
63436
66560
  __metadata("design:type", String)
63437
66561
  ], MJDuplicateRun_.prototype, "ApprovedByUser", void 0);
66562
+ __decorate([
66563
+ Field({ nullable: true }),
66564
+ MaxLength(250),
66565
+ __metadata("design:type", String)
66566
+ ], MJDuplicateRun_.prototype, "EntityDocument", void 0);
63438
66567
  __decorate([
63439
66568
  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.` }),
63440
66569
  __metadata("design:type", Array)
@@ -63512,6 +66641,10 @@ __decorate([
63512
66641
  Field(() => Boolean, { nullable: true }),
63513
66642
  __metadata("design:type", Boolean)
63514
66643
  ], CreateMJDuplicateRunInput.prototype, "CancellationRequested", void 0);
66644
+ __decorate([
66645
+ Field({ nullable: true }),
66646
+ __metadata("design:type", String)
66647
+ ], CreateMJDuplicateRunInput.prototype, "EntityDocumentID", void 0);
63515
66648
  __decorate([
63516
66649
  Field(() => RestoreContextInput, { nullable: true }),
63517
66650
  __metadata("design:type", RestoreContextInput)
@@ -63589,6 +66722,10 @@ __decorate([
63589
66722
  Field(() => Boolean, { nullable: true }),
63590
66723
  __metadata("design:type", Boolean)
63591
66724
  ], UpdateMJDuplicateRunInput.prototype, "CancellationRequested", void 0);
66725
+ __decorate([
66726
+ Field({ nullable: true }),
66727
+ __metadata("design:type", String)
66728
+ ], UpdateMJDuplicateRunInput.prototype, "EntityDocumentID", void 0);
63592
66729
  __decorate([
63593
66730
  Field(() => [KeyValuePairInput], { nullable: true }),
63594
66731
  __metadata("design:type", Array)
@@ -66111,6 +69248,10 @@ __decorate([
66111
69248
  Field(() => Boolean, { nullable: true, description: "When 1, field-level (column-level) security is enforced for this entity and every enforcement point consults EntityFieldPermission rows. When 0 (the default), field-level security is off entirely and any existing permission rows are retained but inactive. Enabling snapshots the entity's current entity-level permissions into per-field rows, so turning it on changes no behavior until an administrator tightens a field; disabling preserves the rows so re-enabling does not lose the configuration." }),
66112
69249
  __metadata("design:type", Boolean)
66113
69250
  ], MJEntity_.prototype, "EnableFieldLevelSecurity", void 0);
69251
+ __decorate([
69252
+ Field(() => Boolean, { nullable: true, description: "When 1 (the default), CodeGen may auto-update this entity's DisplayName — currently via the optional EntityDisplayNames advanced-generation feature, which asks an LLM to expand opaque table-derived names (ACCT_STAT_CD) into readable ones (Account Status Codes). When 0, the DisplayName is locked and CodeGen will not change it, whatever any generator proposes. Mirrors EntityField.AutoUpdateDisplayName. Note this flag governs only AUTOMATIC updates: a user editing the DisplayName directly is unaffected either way." }),
69253
+ __metadata("design:type", Boolean)
69254
+ ], MJEntity_.prototype, "AutoUpdateDisplayName", void 0);
66114
69255
  __decorate([
66115
69256
  Field({ nullable: true, description: "Schema-based programmatic code name derived from the entity Name. Uses GetClassNameSchemaPrefix(SchemaName) as the prefix, then strips EntityNamePrefix from the Name and removes spaces. For \"__mj\" schema with entity \"MJ: AI Models\", this produces \"MJAIModels\". For entities in other schemas, the sanitized schema name is prepended. Used in GraphQL type generation and internal code references." }),
66116
69257
  __metadata("design:type", String)
@@ -66436,6 +69577,10 @@ __decorate([
66436
69577
  Field(() => Boolean, { nullable: true }),
66437
69578
  __metadata("design:type", Boolean)
66438
69579
  ], CreateMJEntityInput.prototype, "EnableFieldLevelSecurity", void 0);
69580
+ __decorate([
69581
+ Field(() => Boolean, { nullable: true }),
69582
+ __metadata("design:type", Boolean)
69583
+ ], CreateMJEntityInput.prototype, "AutoUpdateDisplayName", void 0);
66439
69584
  __decorate([
66440
69585
  Field(() => RestoreContextInput, { nullable: true }),
66441
69586
  __metadata("design:type", RestoreContextInput)
@@ -66729,6 +69874,10 @@ __decorate([
66729
69874
  Field(() => Boolean, { nullable: true }),
66730
69875
  __metadata("design:type", Boolean)
66731
69876
  ], UpdateMJEntityInput.prototype, "EnableFieldLevelSecurity", void 0);
69877
+ __decorate([
69878
+ Field(() => Boolean, { nullable: true }),
69879
+ __metadata("design:type", Boolean)
69880
+ ], UpdateMJEntityInput.prototype, "AutoUpdateDisplayName", void 0);
66732
69881
  __decorate([
66733
69882
  Field(() => [KeyValuePairInput], { nullable: true }),
66734
69883
  __metadata("design:type", Array)
@@ -68664,6 +71813,349 @@ MJEntityActionResolver = __decorate([
68664
71813
  ], MJEntityActionResolver);
68665
71814
  export { MJEntityActionResolver };
68666
71815
  //****************************************************************************
71816
+ // ENTITY CLASS for MJ: Entity Alternate Base Views
71817
+ //****************************************************************************
71818
+ let MJEntityAlternateBaseView_ = class MJEntityAlternateBaseView_ {
71819
+ };
71820
+ __decorate([
71821
+ Field(),
71822
+ MaxLength(36),
71823
+ __metadata("design:type", String)
71824
+ ], MJEntityAlternateBaseView_.prototype, "ID", void 0);
71825
+ __decorate([
71826
+ Field({ nullable: true, description: "Owning entity whose column contract this alternate base view shares." }),
71827
+ MaxLength(36),
71828
+ __metadata("design:type", String)
71829
+ ], MJEntityAlternateBaseView_.prototype, "EntityID", void 0);
71830
+ __decorate([
71831
+ Field({ nullable: true, description: "Optional parent alternate base view on the same entity that this view derives from (e.g. an Active Auto-Renew Members view built on top of Active Members). NULL when the view selects directly from the entity's BaseView. Automatically populated on save via SQL AST extraction when the view's FROM clause references another registered alternate base view." }),
71832
+ MaxLength(36),
71833
+ __metadata("design:type", String)
71834
+ ], MJEntityAlternateBaseView_.prototype, "ParentID", void 0);
71835
+ __decorate([
71836
+ Field({ nullable: true, description: "Logical name of the alternate base view, unique per entity (case-insensitive). Cannot contain pipe (|) or colon (:) characters. Callers pass this name via RunViewParams.AlternateBaseView or pin it on a User View." }),
71837
+ MaxLength(100),
71838
+ __metadata("design:type", String)
71839
+ ], MJEntityAlternateBaseView_.prototype, "Name", void 0);
71840
+ __decorate([
71841
+ Field({ nullable: true, description: "Human-friendly label shown in UI pickers and badges. Falls back to Name when NULL." }),
71842
+ MaxLength(255),
71843
+ __metadata("design:type", String)
71844
+ ], MJEntityAlternateBaseView_.prototype, "DisplayName", void 0);
71845
+ __decorate([
71846
+ Field({ nullable: true, description: "Plain-language definition of which rows this alternate base view includes. Surfaced as help text in pickers and in agent and QueryGen discovery context." }),
71847
+ __metadata("design:type", String)
71848
+ ], MJEntityAlternateBaseView_.prototype, "Description", void 0);
71849
+ __decorate([
71850
+ Field({ nullable: true, description: "Database schema of ViewName. When NULL, defaults to the owning entity's SchemaName. Cross-schema views allow an Open App to register an alternate view in its own schema on an upstream entity." }),
71851
+ MaxLength(255),
71852
+ __metadata("design:type", String)
71853
+ ], MJEntityAlternateBaseView_.prototype, "SchemaName", void 0);
71854
+ __decorate([
71855
+ Field({ nullable: true, description: "Physical SQL view name in the database. Must select all columns from the owning entity's BaseView." }),
71856
+ MaxLength(255),
71857
+ __metadata("design:type", String)
71858
+ ], MJEntityAlternateBaseView_.prototype, "ViewName", void 0);
71859
+ __decorate([
71860
+ Field({ nullable: true, description: "Controls RunView caching for this alternate view: Default caches results under an isolated abv: fingerprint segment and invalidates on entity writes; Bypass disables caching for views whose predicates depend on the clock or other tables." }),
71861
+ MaxLength(20),
71862
+ __metadata("design:type", String)
71863
+ ], MJEntityAlternateBaseView_.prototype, "CachePolicy", void 0);
71864
+ __decorate([
71865
+ Field({ nullable: true, description: "Lifecycle status of the alternate view: Active (selectable and shown in pickers and agent context), Deprecated (executable with a warning, hidden from pickers and agents), or Disabled (rejected at runtime)." }),
71866
+ MaxLength(20),
71867
+ __metadata("design:type", String)
71868
+ ], MJEntityAlternateBaseView_.prototype, "Status", void 0);
71869
+ __decorate([
71870
+ Field(() => Int, { nullable: true, description: "Display ordering of this alternate view within its owning entity (lower numbers appear first)." }),
71871
+ __metadata("design:type", Number)
71872
+ ], MJEntityAlternateBaseView_.prototype, "Sequence", void 0);
71873
+ __decorate([
71874
+ Field(),
71875
+ __metadata("design:type", Date)
71876
+ ], MJEntityAlternateBaseView_.prototype, "_mj__CreatedAt", void 0);
71877
+ __decorate([
71878
+ Field(),
71879
+ __metadata("design:type", Date)
71880
+ ], MJEntityAlternateBaseView_.prototype, "_mj__UpdatedAt", void 0);
71881
+ __decorate([
71882
+ Field({ nullable: true }),
71883
+ MaxLength(255),
71884
+ __metadata("design:type", String)
71885
+ ], MJEntityAlternateBaseView_.prototype, "Entity", void 0);
71886
+ __decorate([
71887
+ Field({ nullable: true }),
71888
+ MaxLength(100),
71889
+ __metadata("design:type", String)
71890
+ ], MJEntityAlternateBaseView_.prototype, "Parent", void 0);
71891
+ __decorate([
71892
+ 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.` }),
71893
+ __metadata("design:type", Array)
71894
+ ], MJEntityAlternateBaseView_.prototype, "ReadableFields___", void 0);
71895
+ MJEntityAlternateBaseView_ = __decorate([
71896
+ ObjectType({ description: "Registers alternate base views for an entity: SQL views that expose the same columns as the entity's BaseView while returning a canonical row subset (such as Active Members or Open Orders)." })
71897
+ ], MJEntityAlternateBaseView_);
71898
+ export { MJEntityAlternateBaseView_ };
71899
+ //****************************************************************************
71900
+ // INPUT TYPE for MJ: Entity Alternate Base Views
71901
+ //****************************************************************************
71902
+ let CreateMJEntityAlternateBaseViewInput = class CreateMJEntityAlternateBaseViewInput {
71903
+ };
71904
+ __decorate([
71905
+ Field({ nullable: true }),
71906
+ __metadata("design:type", String)
71907
+ ], CreateMJEntityAlternateBaseViewInput.prototype, "ID", void 0);
71908
+ __decorate([
71909
+ Field({ nullable: true }),
71910
+ __metadata("design:type", String)
71911
+ ], CreateMJEntityAlternateBaseViewInput.prototype, "EntityID", void 0);
71912
+ __decorate([
71913
+ Field({ nullable: true }),
71914
+ __metadata("design:type", String)
71915
+ ], CreateMJEntityAlternateBaseViewInput.prototype, "ParentID", void 0);
71916
+ __decorate([
71917
+ Field({ nullable: true }),
71918
+ __metadata("design:type", String)
71919
+ ], CreateMJEntityAlternateBaseViewInput.prototype, "Name", void 0);
71920
+ __decorate([
71921
+ Field({ nullable: true }),
71922
+ __metadata("design:type", String)
71923
+ ], CreateMJEntityAlternateBaseViewInput.prototype, "DisplayName", void 0);
71924
+ __decorate([
71925
+ Field({ nullable: true }),
71926
+ __metadata("design:type", String)
71927
+ ], CreateMJEntityAlternateBaseViewInput.prototype, "Description", void 0);
71928
+ __decorate([
71929
+ Field({ nullable: true }),
71930
+ __metadata("design:type", String)
71931
+ ], CreateMJEntityAlternateBaseViewInput.prototype, "SchemaName", void 0);
71932
+ __decorate([
71933
+ Field({ nullable: true }),
71934
+ __metadata("design:type", String)
71935
+ ], CreateMJEntityAlternateBaseViewInput.prototype, "ViewName", void 0);
71936
+ __decorate([
71937
+ Field({ nullable: true }),
71938
+ __metadata("design:type", String)
71939
+ ], CreateMJEntityAlternateBaseViewInput.prototype, "CachePolicy", void 0);
71940
+ __decorate([
71941
+ Field({ nullable: true }),
71942
+ __metadata("design:type", String)
71943
+ ], CreateMJEntityAlternateBaseViewInput.prototype, "Status", void 0);
71944
+ __decorate([
71945
+ Field(() => Int, { nullable: true }),
71946
+ __metadata("design:type", Number)
71947
+ ], CreateMJEntityAlternateBaseViewInput.prototype, "Sequence", void 0);
71948
+ __decorate([
71949
+ Field(() => RestoreContextInput, { nullable: true }),
71950
+ __metadata("design:type", RestoreContextInput)
71951
+ ], CreateMJEntityAlternateBaseViewInput.prototype, "RestoreContext___", void 0);
71952
+ CreateMJEntityAlternateBaseViewInput = __decorate([
71953
+ InputType()
71954
+ ], CreateMJEntityAlternateBaseViewInput);
71955
+ export { CreateMJEntityAlternateBaseViewInput };
71956
+ //****************************************************************************
71957
+ // INPUT TYPE for MJ: Entity Alternate Base Views
71958
+ //****************************************************************************
71959
+ let UpdateMJEntityAlternateBaseViewInput = class UpdateMJEntityAlternateBaseViewInput {
71960
+ };
71961
+ __decorate([
71962
+ Field(),
71963
+ __metadata("design:type", String)
71964
+ ], UpdateMJEntityAlternateBaseViewInput.prototype, "ID", void 0);
71965
+ __decorate([
71966
+ Field({ nullable: true }),
71967
+ __metadata("design:type", String)
71968
+ ], UpdateMJEntityAlternateBaseViewInput.prototype, "EntityID", void 0);
71969
+ __decorate([
71970
+ Field({ nullable: true }),
71971
+ __metadata("design:type", String)
71972
+ ], UpdateMJEntityAlternateBaseViewInput.prototype, "ParentID", void 0);
71973
+ __decorate([
71974
+ Field({ nullable: true }),
71975
+ __metadata("design:type", String)
71976
+ ], UpdateMJEntityAlternateBaseViewInput.prototype, "Name", void 0);
71977
+ __decorate([
71978
+ Field({ nullable: true }),
71979
+ __metadata("design:type", String)
71980
+ ], UpdateMJEntityAlternateBaseViewInput.prototype, "DisplayName", void 0);
71981
+ __decorate([
71982
+ Field({ nullable: true }),
71983
+ __metadata("design:type", String)
71984
+ ], UpdateMJEntityAlternateBaseViewInput.prototype, "Description", void 0);
71985
+ __decorate([
71986
+ Field({ nullable: true }),
71987
+ __metadata("design:type", String)
71988
+ ], UpdateMJEntityAlternateBaseViewInput.prototype, "SchemaName", void 0);
71989
+ __decorate([
71990
+ Field({ nullable: true }),
71991
+ __metadata("design:type", String)
71992
+ ], UpdateMJEntityAlternateBaseViewInput.prototype, "ViewName", void 0);
71993
+ __decorate([
71994
+ Field({ nullable: true }),
71995
+ __metadata("design:type", String)
71996
+ ], UpdateMJEntityAlternateBaseViewInput.prototype, "CachePolicy", void 0);
71997
+ __decorate([
71998
+ Field({ nullable: true }),
71999
+ __metadata("design:type", String)
72000
+ ], UpdateMJEntityAlternateBaseViewInput.prototype, "Status", void 0);
72001
+ __decorate([
72002
+ Field(() => Int, { nullable: true }),
72003
+ __metadata("design:type", Number)
72004
+ ], UpdateMJEntityAlternateBaseViewInput.prototype, "Sequence", void 0);
72005
+ __decorate([
72006
+ Field(() => [KeyValuePairInput], { nullable: true }),
72007
+ __metadata("design:type", Array)
72008
+ ], UpdateMJEntityAlternateBaseViewInput.prototype, "OldValues___", void 0);
72009
+ __decorate([
72010
+ Field(() => RestoreContextInput, { nullable: true }),
72011
+ __metadata("design:type", RestoreContextInput)
72012
+ ], UpdateMJEntityAlternateBaseViewInput.prototype, "RestoreContext___", void 0);
72013
+ UpdateMJEntityAlternateBaseViewInput = __decorate([
72014
+ InputType()
72015
+ ], UpdateMJEntityAlternateBaseViewInput);
72016
+ export { UpdateMJEntityAlternateBaseViewInput };
72017
+ //****************************************************************************
72018
+ // RESOLVER for MJ: Entity Alternate Base Views
72019
+ //****************************************************************************
72020
+ let RunMJEntityAlternateBaseViewViewResult = class RunMJEntityAlternateBaseViewViewResult {
72021
+ };
72022
+ __decorate([
72023
+ Field(() => [MJEntityAlternateBaseView_]),
72024
+ __metadata("design:type", Array)
72025
+ ], RunMJEntityAlternateBaseViewViewResult.prototype, "Results", void 0);
72026
+ __decorate([
72027
+ Field(() => String, { nullable: true }),
72028
+ __metadata("design:type", String)
72029
+ ], RunMJEntityAlternateBaseViewViewResult.prototype, "UserViewRunID", void 0);
72030
+ __decorate([
72031
+ Field(() => Int, { nullable: true }),
72032
+ __metadata("design:type", Number)
72033
+ ], RunMJEntityAlternateBaseViewViewResult.prototype, "RowCount", void 0);
72034
+ __decorate([
72035
+ Field(() => Int, { nullable: true }),
72036
+ __metadata("design:type", Number)
72037
+ ], RunMJEntityAlternateBaseViewViewResult.prototype, "TotalRowCount", void 0);
72038
+ __decorate([
72039
+ Field(() => Int, { nullable: true }),
72040
+ __metadata("design:type", Number)
72041
+ ], RunMJEntityAlternateBaseViewViewResult.prototype, "ExecutionTime", void 0);
72042
+ __decorate([
72043
+ Field({ nullable: true }),
72044
+ __metadata("design:type", String)
72045
+ ], RunMJEntityAlternateBaseViewViewResult.prototype, "ErrorMessage", void 0);
72046
+ __decorate([
72047
+ Field(() => Boolean, { nullable: false }),
72048
+ __metadata("design:type", Boolean)
72049
+ ], RunMJEntityAlternateBaseViewViewResult.prototype, "Success", void 0);
72050
+ RunMJEntityAlternateBaseViewViewResult = __decorate([
72051
+ ObjectType()
72052
+ ], RunMJEntityAlternateBaseViewViewResult);
72053
+ export { RunMJEntityAlternateBaseViewViewResult };
72054
+ let MJEntityAlternateBaseViewResolver = class MJEntityAlternateBaseViewResolver extends ResolverBase {
72055
+ async RunMJEntityAlternateBaseViewViewByID(input, { providers, userPayload }, pubSub) {
72056
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
72057
+ return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
72058
+ }
72059
+ async RunMJEntityAlternateBaseViewViewByName(input, { providers, userPayload }, pubSub) {
72060
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
72061
+ return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
72062
+ }
72063
+ async RunMJEntityAlternateBaseViewDynamicView(input, { providers, userPayload }, pubSub) {
72064
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
72065
+ input.EntityName = 'MJ: Entity Alternate Base Views';
72066
+ return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
72067
+ }
72068
+ async MJEntityAlternateBaseView(ID, { userPayload, providers }, pubSub) {
72069
+ this.CheckUserReadPermissions('MJ: Entity Alternate Base Views', userPayload);
72070
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
72071
+ const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwEntityAlternateBaseViews')} WHERE ${provider.QuoteIdentifier('ID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Entity Alternate Base Views', userPayload, EntityPermissionType.Read, 'AND');
72072
+ const rows = await provider.ExecuteSQL(sSQL, [ID], undefined, this.GetUserFromPayload(userPayload));
72073
+ const result = await this.MapFieldNamesToCodeNames('MJ: Entity Alternate Base Views', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
72074
+ return result;
72075
+ }
72076
+ async CreateMJEntityAlternateBaseView(input, { providers, userPayload }, pubSub) {
72077
+ const provider = GetReadWriteProvider(providers);
72078
+ return this.CreateRecord('MJ: Entity Alternate Base Views', input, provider, userPayload, pubSub);
72079
+ }
72080
+ async UpdateMJEntityAlternateBaseView(input, { providers, userPayload }, pubSub) {
72081
+ const provider = GetReadWriteProvider(providers);
72082
+ return this.UpdateRecord('MJ: Entity Alternate Base Views', input, provider, userPayload, pubSub);
72083
+ }
72084
+ async DeleteMJEntityAlternateBaseView(ID, options, { providers, userPayload }, pubSub) {
72085
+ const provider = GetReadWriteProvider(providers);
72086
+ const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
72087
+ return this.DeleteRecord('MJ: Entity Alternate Base Views', key, options, provider, userPayload, pubSub);
72088
+ }
72089
+ };
72090
+ __decorate([
72091
+ Query(() => RunMJEntityAlternateBaseViewViewResult),
72092
+ __param(0, Arg('input', () => RunViewByIDInput)),
72093
+ __param(1, Ctx()),
72094
+ __param(2, PubSub()),
72095
+ __metadata("design:type", Function),
72096
+ __metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
72097
+ __metadata("design:returntype", Promise)
72098
+ ], MJEntityAlternateBaseViewResolver.prototype, "RunMJEntityAlternateBaseViewViewByID", null);
72099
+ __decorate([
72100
+ Query(() => RunMJEntityAlternateBaseViewViewResult),
72101
+ __param(0, Arg('input', () => RunViewByNameInput)),
72102
+ __param(1, Ctx()),
72103
+ __param(2, PubSub()),
72104
+ __metadata("design:type", Function),
72105
+ __metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
72106
+ __metadata("design:returntype", Promise)
72107
+ ], MJEntityAlternateBaseViewResolver.prototype, "RunMJEntityAlternateBaseViewViewByName", null);
72108
+ __decorate([
72109
+ Query(() => RunMJEntityAlternateBaseViewViewResult),
72110
+ __param(0, Arg('input', () => RunDynamicViewInput)),
72111
+ __param(1, Ctx()),
72112
+ __param(2, PubSub()),
72113
+ __metadata("design:type", Function),
72114
+ __metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
72115
+ __metadata("design:returntype", Promise)
72116
+ ], MJEntityAlternateBaseViewResolver.prototype, "RunMJEntityAlternateBaseViewDynamicView", null);
72117
+ __decorate([
72118
+ Query(() => MJEntityAlternateBaseView_, { nullable: true }),
72119
+ __param(0, Arg('ID', () => String)),
72120
+ __param(1, Ctx()),
72121
+ __param(2, PubSub()),
72122
+ __metadata("design:type", Function),
72123
+ __metadata("design:paramtypes", [String, Object, PubSubEngine]),
72124
+ __metadata("design:returntype", Promise)
72125
+ ], MJEntityAlternateBaseViewResolver.prototype, "MJEntityAlternateBaseView", null);
72126
+ __decorate([
72127
+ Mutation(() => MJEntityAlternateBaseView_),
72128
+ __param(0, Arg('input', () => CreateMJEntityAlternateBaseViewInput)),
72129
+ __param(1, Ctx()),
72130
+ __param(2, PubSub()),
72131
+ __metadata("design:type", Function),
72132
+ __metadata("design:paramtypes", [CreateMJEntityAlternateBaseViewInput, Object, PubSubEngine]),
72133
+ __metadata("design:returntype", Promise)
72134
+ ], MJEntityAlternateBaseViewResolver.prototype, "CreateMJEntityAlternateBaseView", null);
72135
+ __decorate([
72136
+ Mutation(() => MJEntityAlternateBaseView_),
72137
+ __param(0, Arg('input', () => UpdateMJEntityAlternateBaseViewInput)),
72138
+ __param(1, Ctx()),
72139
+ __param(2, PubSub()),
72140
+ __metadata("design:type", Function),
72141
+ __metadata("design:paramtypes", [UpdateMJEntityAlternateBaseViewInput, Object, PubSubEngine]),
72142
+ __metadata("design:returntype", Promise)
72143
+ ], MJEntityAlternateBaseViewResolver.prototype, "UpdateMJEntityAlternateBaseView", null);
72144
+ __decorate([
72145
+ Mutation(() => MJEntityAlternateBaseView_),
72146
+ __param(0, Arg('ID', () => String)),
72147
+ __param(1, Arg('options___', () => DeleteOptionsInput)),
72148
+ __param(2, Ctx()),
72149
+ __param(3, PubSub()),
72150
+ __metadata("design:type", Function),
72151
+ __metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
72152
+ __metadata("design:returntype", Promise)
72153
+ ], MJEntityAlternateBaseViewResolver.prototype, "DeleteMJEntityAlternateBaseView", null);
72154
+ MJEntityAlternateBaseViewResolver = __decorate([
72155
+ Resolver(MJEntityAlternateBaseView_)
72156
+ ], MJEntityAlternateBaseViewResolver);
72157
+ export { MJEntityAlternateBaseViewResolver };
72158
+ //****************************************************************************
68667
72159
  // ENTITY CLASS for MJ: Entity Communication Fields
68668
72160
  //****************************************************************************
68669
72161
  let MJEntityCommunicationField_ = class MJEntityCommunicationField_ {
@@ -102589,6 +106081,38 @@ __decorate([
102589
106081
  Field({ nullable: true, description: "The query embedding as little-endian IEEE-754 float32 bytes (4 bytes per dimension): the compact form of EmbeddingVector. Written alongside EmbeddingVector; readers prefer it and fall back to EmbeddingVector when it is NULL." }),
102590
106082
  __metadata("design:type", String)
102591
106083
  ], MJQuery_.prototype, "EmbeddingVectorBinary", void 0);
106084
+ __decorate([
106085
+ Field({ nullable: true, description: "Reviewer comments recorded with the approval decision, such as the tests the definition passed." }),
106086
+ __metadata("design:type", String)
106087
+ ], MJQuery_.prototype, "ApprovalComments", void 0);
106088
+ __decorate([
106089
+ Field({ nullable: true, description: "The user who approved this query." }),
106090
+ MaxLength(36),
106091
+ __metadata("design:type", String)
106092
+ ], MJQuery_.prototype, "ApprovedByUserID", void 0);
106093
+ __decorate([
106094
+ Field({ nullable: true, description: "When this query was approved." }),
106095
+ __metadata("design:type", Date)
106096
+ ], MJQuery_.prototype, "ApprovedAt", void 0);
106097
+ __decorate([
106098
+ Field({ nullable: true, description: "SHA-256 fingerprint of the definition that was approved: its SQL, dialect variants and parameter contract. The approval is current only while this matches the fingerprint of the current definition." }),
106099
+ MaxLength(100),
106100
+ __metadata("design:type", String)
106101
+ ], MJQuery_.prototype, "ApprovedFingerprint", void 0);
106102
+ __decorate([
106103
+ Field({ nullable: true, description: "Hash of the platform SQL and dialect the query's child rows (fields, parameters, entities, dependencies) were last extracted from. NULL means the query has never been extracted by the current extraction service. A value that differs from the current SQL's hash means the rows may be stale." }),
106104
+ MaxLength(64),
106105
+ __metadata("design:type", String)
106106
+ ], MJQuery_.prototype, "ExtractedSQLHash", void 0);
106107
+ __decorate([
106108
+ Field({ nullable: true, description: "Outcome of the last extraction run. \"OK\" means all facts were extracted. \"Warning\" means extraction succeeded with findings (see ExtractionMessage). \"Error\" means the database server could not describe the query, so existing rows were kept. \"Skipped\" means the facts could not be checked, for example for queries on an external data source. NULL means never extracted." }),
106109
+ MaxLength(20),
106110
+ __metadata("design:type", String)
106111
+ ], MJQuery_.prototype, "ExtractionStatus", void 0);
106112
+ __decorate([
106113
+ Field({ nullable: true, description: "Diagnostics from the last extraction run: validation findings, authored parameters no longer present in the SQL, describe errors, and output drift on queries with role-based permissions." }),
106114
+ __metadata("design:type", String)
106115
+ ], MJQuery_.prototype, "ExtractionMessage", void 0);
102592
106116
  __decorate([
102593
106117
  Field({ nullable: true }),
102594
106118
  MaxLength(50),
@@ -102609,6 +106133,11 @@ __decorate([
102609
106133
  MaxLength(100),
102610
106134
  __metadata("design:type", String)
102611
106135
  ], MJQuery_.prototype, "ExternalDataSource", void 0);
106136
+ __decorate([
106137
+ Field({ nullable: true }),
106138
+ MaxLength(100),
106139
+ __metadata("design:type", String)
106140
+ ], MJQuery_.prototype, "ApprovedByUser", void 0);
102612
106141
  __decorate([
102613
106142
  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.` }),
102614
106143
  __metadata("design:type", Array)
@@ -102726,6 +106255,34 @@ __decorate([
102726
106255
  Field({ nullable: true }),
102727
106256
  __metadata("design:type", String)
102728
106257
  ], CreateMJQueryInput.prototype, "EmbeddingVectorBinary", void 0);
106258
+ __decorate([
106259
+ Field({ nullable: true }),
106260
+ __metadata("design:type", String)
106261
+ ], CreateMJQueryInput.prototype, "ApprovalComments", void 0);
106262
+ __decorate([
106263
+ Field({ nullable: true }),
106264
+ __metadata("design:type", String)
106265
+ ], CreateMJQueryInput.prototype, "ApprovedByUserID", void 0);
106266
+ __decorate([
106267
+ Field({ nullable: true }),
106268
+ __metadata("design:type", Date)
106269
+ ], CreateMJQueryInput.prototype, "ApprovedAt", void 0);
106270
+ __decorate([
106271
+ Field({ nullable: true }),
106272
+ __metadata("design:type", String)
106273
+ ], CreateMJQueryInput.prototype, "ApprovedFingerprint", void 0);
106274
+ __decorate([
106275
+ Field({ nullable: true }),
106276
+ __metadata("design:type", String)
106277
+ ], CreateMJQueryInput.prototype, "ExtractedSQLHash", void 0);
106278
+ __decorate([
106279
+ Field({ nullable: true }),
106280
+ __metadata("design:type", String)
106281
+ ], CreateMJQueryInput.prototype, "ExtractionStatus", void 0);
106282
+ __decorate([
106283
+ Field({ nullable: true }),
106284
+ __metadata("design:type", String)
106285
+ ], CreateMJQueryInput.prototype, "ExtractionMessage", void 0);
102729
106286
  __decorate([
102730
106287
  Field(() => RestoreContextInput, { nullable: true }),
102731
106288
  __metadata("design:type", RestoreContextInput)
@@ -102843,6 +106400,34 @@ __decorate([
102843
106400
  Field({ nullable: true }),
102844
106401
  __metadata("design:type", String)
102845
106402
  ], UpdateMJQueryInput.prototype, "EmbeddingVectorBinary", void 0);
106403
+ __decorate([
106404
+ Field({ nullable: true }),
106405
+ __metadata("design:type", String)
106406
+ ], UpdateMJQueryInput.prototype, "ApprovalComments", void 0);
106407
+ __decorate([
106408
+ Field({ nullable: true }),
106409
+ __metadata("design:type", String)
106410
+ ], UpdateMJQueryInput.prototype, "ApprovedByUserID", void 0);
106411
+ __decorate([
106412
+ Field({ nullable: true }),
106413
+ __metadata("design:type", Date)
106414
+ ], UpdateMJQueryInput.prototype, "ApprovedAt", void 0);
106415
+ __decorate([
106416
+ Field({ nullable: true }),
106417
+ __metadata("design:type", String)
106418
+ ], UpdateMJQueryInput.prototype, "ApprovedFingerprint", void 0);
106419
+ __decorate([
106420
+ Field({ nullable: true }),
106421
+ __metadata("design:type", String)
106422
+ ], UpdateMJQueryInput.prototype, "ExtractedSQLHash", void 0);
106423
+ __decorate([
106424
+ Field({ nullable: true }),
106425
+ __metadata("design:type", String)
106426
+ ], UpdateMJQueryInput.prototype, "ExtractionStatus", void 0);
106427
+ __decorate([
106428
+ Field({ nullable: true }),
106429
+ __metadata("design:type", String)
106430
+ ], UpdateMJQueryInput.prototype, "ExtractionMessage", void 0);
102846
106431
  __decorate([
102847
106432
  Field(() => [KeyValuePairInput], { nullable: true }),
102848
106433
  __metadata("design:type", Array)
@@ -103652,7 +107237,7 @@ __decorate([
103652
107237
  __metadata("design:type", Date)
103653
107238
  ], MJQueryEntity_.prototype, "_mj__UpdatedAt", void 0);
103654
107239
  __decorate([
103655
- Field({ nullable: true, description: "Indicates how this entity-query relationship was identified. \"AI\" means the QueryEntityServer used LLM analysis to parse the SQL/template and identify which MemberJunction entities are referenced (by analyzing table names, joins, and query structure). \"Manual\" means a user explicitly marked this entity as being used by the query. AI detection helps maintain accurate metadata automatically as queries evolve." }),
107240
+ Field({ nullable: true, description: "Who wrote this entity link. \"Parser\" means MJ's structural analysis of the query found a read of the entity's base view, base table or an alternate base view. \"Manual\" means a user authored the link. \"AI\" marks links written by the earlier LLM-based extraction." }),
103656
107241
  MaxLength(50),
103657
107242
  __metadata("design:type", String)
103658
107243
  ], MJQueryEntity_.prototype, "DetectionMethod", void 0);
@@ -103660,6 +107245,11 @@ __decorate([
103660
107245
  Field(() => Float, { nullable: true, description: "Confidence score (0.00-1.00) indicating how certain the AI was that this entity is actually used in the query. Only populated when DetectionMethod=\"AI\". Considers factors like: direct table references vs indirect joins, clear entity names vs ambiguous aliases, and context from the query purpose. Lower scores might indicate the entity is only peripherally involved or the detection was uncertain." }),
103661
107246
  __metadata("design:type", Number)
103662
107247
  ], MJQueryEntity_.prototype, "AutoDetectConfidenceScore", void 0);
107248
+ __decorate([
107249
+ Field({ nullable: true, description: "When this query references an alternate base view rather than the entity's primary BaseView, records the specific MJ: Entity Alternate Base Views row while EntityID continues to reference the owning entity." }),
107250
+ MaxLength(36),
107251
+ __metadata("design:type", String)
107252
+ ], MJQueryEntity_.prototype, "AlternateBaseViewID", void 0);
103663
107253
  __decorate([
103664
107254
  Field({ nullable: true }),
103665
107255
  MaxLength(255),
@@ -103670,6 +107260,11 @@ __decorate([
103670
107260
  MaxLength(255),
103671
107261
  __metadata("design:type", String)
103672
107262
  ], MJQueryEntity_.prototype, "Entity", void 0);
107263
+ __decorate([
107264
+ Field({ nullable: true }),
107265
+ MaxLength(100),
107266
+ __metadata("design:type", String)
107267
+ ], MJQueryEntity_.prototype, "AlternateBaseView", void 0);
103673
107268
  __decorate([
103674
107269
  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.` }),
103675
107270
  __metadata("design:type", Array)
@@ -103703,6 +107298,10 @@ __decorate([
103703
107298
  Field(() => Float, { nullable: true }),
103704
107299
  __metadata("design:type", Number)
103705
107300
  ], CreateMJQueryEntityInput.prototype, "AutoDetectConfidenceScore", void 0);
107301
+ __decorate([
107302
+ Field({ nullable: true }),
107303
+ __metadata("design:type", String)
107304
+ ], CreateMJQueryEntityInput.prototype, "AlternateBaseViewID", void 0);
103706
107305
  __decorate([
103707
107306
  Field(() => RestoreContextInput, { nullable: true }),
103708
107307
  __metadata("design:type", RestoreContextInput)
@@ -103736,6 +107335,10 @@ __decorate([
103736
107335
  Field(() => Float, { nullable: true }),
103737
107336
  __metadata("design:type", Number)
103738
107337
  ], UpdateMJQueryEntityInput.prototype, "AutoDetectConfidenceScore", void 0);
107338
+ __decorate([
107339
+ Field({ nullable: true }),
107340
+ __metadata("design:type", String)
107341
+ ], UpdateMJQueryEntityInput.prototype, "AlternateBaseViewID", void 0);
103739
107342
  __decorate([
103740
107343
  Field(() => [KeyValuePairInput], { nullable: true }),
103741
107344
  __metadata("design:type", Array)
@@ -103962,7 +107565,7 @@ __decorate([
103962
107565
  __metadata("design:type", Date)
103963
107566
  ], MJQueryField_.prototype, "_mj__UpdatedAt", void 0);
103964
107567
  __decorate([
103965
- Field({ nullable: true, description: "Indicates how this field was identified in the query output. \"AI\" means the QueryEntityServer used LLM analysis to parse the SELECT clause and determine field names, types, and their source entities/columns. This includes handling aliased columns, computed expressions, aggregations, and CASE statements. \"Manual\" means a user explicitly defined this output field. AI detection ensures the field list stays synchronized with query changes." }),
107568
+ Field({ nullable: true, description: "Who wrote this field row. \"Database\" means its facts (name, order, types, nullability, source) came from the database server describing the query output. \"Parser\" means they came from MJ's analysis of the query template and structure. \"Manual\" means a user authored the row. \"AI\" means an LLM wrote its description; an LLM never sets types or sources." }),
103966
107569
  MaxLength(50),
103967
107570
  __metadata("design:type", String)
103968
107571
  ], MJQueryField_.prototype, "DetectionMethod", void 0);
@@ -103970,6 +107573,20 @@ __decorate([
103970
107573
  Field(() => Float, { nullable: true, description: "Confidence score (0.00-1.00) indicating how certain the AI was about this field detection. Only populated when DetectionMethod=\"AI\". Factors include: clarity of the SELECT clause, complexity of any expressions or transformations, confidence in type inference, and ability to trace back to source entity/column. Complex computed fields or ambiguous aliases result in lower scores. This helps identify fields that may need manual verification." }),
103971
107574
  __metadata("design:type", Number)
103972
107575
  ], MJQueryField_.prototype, "AutoDetectConfidenceScore", void 0);
107576
+ __decorate([
107577
+ Field({ nullable: true, description: "The MJ Entity Field this output column passes through unchanged, resolved by extraction from the source the database server reports for the column (schema, view, column) mapped through entity metadata. NULL when the column is computed, comes from an object that backs no entity, or the link was cleared because the entity field was deleted." }),
107578
+ MaxLength(36),
107579
+ __metadata("design:type", String)
107580
+ ], MJQueryField_.prototype, "SourceEntityFieldID", void 0);
107581
+ __decorate([
107582
+ Field(() => Boolean, { nullable: true, description: "Whether the database server reports that this output column can be NULL. NULL means unknown, for example on platforms whose describe result does not report nullability." }),
107583
+ __metadata("design:type", Boolean)
107584
+ ], MJQueryField_.prototype, "IsNullable", void 0);
107585
+ __decorate([
107586
+ Field({ nullable: true, description: "The source of this output column as the database server reported it (schema.object.column), recorded when the source is a table or view that backs no MJ entity. NULL when the column maps to an entity field (see SourceEntityFieldID) or has no direct source." }),
107587
+ MaxLength(500),
107588
+ __metadata("design:type", String)
107589
+ ], MJQueryField_.prototype, "SourceObjectName", void 0);
103973
107590
  __decorate([
103974
107591
  Field({ nullable: true }),
103975
107592
  MaxLength(255),
@@ -103980,6 +107597,11 @@ __decorate([
103980
107597
  MaxLength(255),
103981
107598
  __metadata("design:type", String)
103982
107599
  ], MJQueryField_.prototype, "SourceEntity", void 0);
107600
+ __decorate([
107601
+ Field({ nullable: true }),
107602
+ MaxLength(255),
107603
+ __metadata("design:type", String)
107604
+ ], MJQueryField_.prototype, "SourceEntityField", void 0);
103983
107605
  __decorate([
103984
107606
  Field(() => [String], { nullable: true, description: `Field-level security: when non-null, the fields on this entity the calling user may read. Any other field arriving as null was withheld by the server rather than genuinely empty. Null for callers with no field restrictions.` }),
103985
107607
  __metadata("design:type", Array)
@@ -104053,6 +107675,18 @@ __decorate([
104053
107675
  Field(() => Float, { nullable: true }),
104054
107676
  __metadata("design:type", Number)
104055
107677
  ], CreateMJQueryFieldInput.prototype, "AutoDetectConfidenceScore", void 0);
107678
+ __decorate([
107679
+ Field({ nullable: true }),
107680
+ __metadata("design:type", String)
107681
+ ], CreateMJQueryFieldInput.prototype, "SourceEntityFieldID", void 0);
107682
+ __decorate([
107683
+ Field(() => Boolean, { nullable: true }),
107684
+ __metadata("design:type", Boolean)
107685
+ ], CreateMJQueryFieldInput.prototype, "IsNullable", void 0);
107686
+ __decorate([
107687
+ Field({ nullable: true }),
107688
+ __metadata("design:type", String)
107689
+ ], CreateMJQueryFieldInput.prototype, "SourceObjectName", void 0);
104056
107690
  __decorate([
104057
107691
  Field(() => RestoreContextInput, { nullable: true }),
104058
107692
  __metadata("design:type", RestoreContextInput)
@@ -104126,6 +107760,18 @@ __decorate([
104126
107760
  Field(() => Float, { nullable: true }),
104127
107761
  __metadata("design:type", Number)
104128
107762
  ], UpdateMJQueryFieldInput.prototype, "AutoDetectConfidenceScore", void 0);
107763
+ __decorate([
107764
+ Field({ nullable: true }),
107765
+ __metadata("design:type", String)
107766
+ ], UpdateMJQueryFieldInput.prototype, "SourceEntityFieldID", void 0);
107767
+ __decorate([
107768
+ Field(() => Boolean, { nullable: true }),
107769
+ __metadata("design:type", Boolean)
107770
+ ], UpdateMJQueryFieldInput.prototype, "IsNullable", void 0);
107771
+ __decorate([
107772
+ Field({ nullable: true }),
107773
+ __metadata("design:type", String)
107774
+ ], UpdateMJQueryFieldInput.prototype, "SourceObjectName", void 0);
104129
107775
  __decorate([
104130
107776
  Field(() => [KeyValuePairInput], { nullable: true }),
104131
107777
  __metadata("design:type", Array)
@@ -104325,7 +107971,7 @@ __decorate([
104325
107971
  __metadata("design:type", String)
104326
107972
  ], MJQueryParameter_.prototype, "ValidationFilters", void 0);
104327
107973
  __decorate([
104328
- Field({ nullable: true, description: "Indicates how this parameter was identified and added to the system. \"AI\" means it was automatically detected by LLM analysis of the query template, including extraction of parameter name, type inference from filters, and generation of description. \"Manual\" means it was explicitly defined by a user. This helps track which parameters might need human review and provides transparency about the source of metadata." }),
107974
+ Field({ nullable: true, description: "Who wrote this parameter row. \"Parser\" means MJ's analysis of the query template found the parameter (its name, inferred type, whether it is required and its default). \"Manual\" means a user authored the row; its type, required flag, default, sample, validation filters and description are never overwritten by extraction, and it is kept (and flagged on the query) when the SQL no longer uses it. \"AI\" marks rows written by the earlier LLM-based extraction." }),
104329
107975
  MaxLength(50),
104330
107976
  __metadata("design:type", String)
104331
107977
  ], MJQueryParameter_.prototype, "DetectionMethod", void 0);
@@ -104341,6 +107987,10 @@ __decorate([
104341
107987
  Field(),
104342
107988
  __metadata("design:type", Date)
104343
107989
  ], MJQueryParameter_.prototype, "_mj__UpdatedAt", void 0);
107990
+ __decorate([
107991
+ Field(() => Boolean, { nullable: true, description: "When true, only server code may supply this parameter's value (RunQueryParams.ServerParameters). A value for it from a client is refused." }),
107992
+ __metadata("design:type", Boolean)
107993
+ ], MJQueryParameter_.prototype, "IsServerSet", void 0);
104344
107994
  __decorate([
104345
107995
  Field({ nullable: true }),
104346
107996
  MaxLength(255),
@@ -104403,6 +108053,10 @@ __decorate([
104403
108053
  Field(() => Float, { nullable: true }),
104404
108054
  __metadata("design:type", Number)
104405
108055
  ], CreateMJQueryParameterInput.prototype, "AutoDetectConfidenceScore", void 0);
108056
+ __decorate([
108057
+ Field(() => Boolean, { nullable: true }),
108058
+ __metadata("design:type", Boolean)
108059
+ ], CreateMJQueryParameterInput.prototype, "IsServerSet", void 0);
104406
108060
  __decorate([
104407
108061
  Field(() => RestoreContextInput, { nullable: true }),
104408
108062
  __metadata("design:type", RestoreContextInput)
@@ -104460,6 +108114,10 @@ __decorate([
104460
108114
  Field(() => Float, { nullable: true }),
104461
108115
  __metadata("design:type", Number)
104462
108116
  ], UpdateMJQueryParameterInput.prototype, "AutoDetectConfidenceScore", void 0);
108117
+ __decorate([
108118
+ Field(() => Boolean, { nullable: true }),
108119
+ __metadata("design:type", Boolean)
108120
+ ], UpdateMJQueryParameterInput.prototype, "IsServerSet", void 0);
104463
108121
  __decorate([
104464
108122
  Field(() => [KeyValuePairInput], { nullable: true }),
104465
108123
  __metadata("design:type", Array)
@@ -139111,6 +142769,33 @@ __decorate([
139111
142769
  MaxLength(36),
139112
142770
  __metadata("design:type", String)
139113
142771
  ], MJUserView_.prototype, "ViewTypeID", void 0);
142772
+ __decorate([
142773
+ Field({ nullable: true, description: "JSON array of the view's declared properties: named, typed inputs, each of which adds one predicate on a target field when a run gives it a value or it has a default. A property with AllowOverride false may be set only by server code. Null for a view with no properties." }),
142774
+ __metadata("design:type", String)
142775
+ ], MJUserView_.prototype, "Properties", void 0);
142776
+ __decorate([
142777
+ Field({ nullable: true, description: "Whether this view's definition is approved: Pending, Approved or Rejected. An approval is current only while ApprovedFingerprint matches the current definition." }),
142778
+ MaxLength(20),
142779
+ __metadata("design:type", String)
142780
+ ], MJUserView_.prototype, "ApprovalStatus", void 0);
142781
+ __decorate([
142782
+ Field({ nullable: true, description: "Reviewer comments recorded with the approval decision, such as the tests the definition passed." }),
142783
+ __metadata("design:type", String)
142784
+ ], MJUserView_.prototype, "ApprovalComments", void 0);
142785
+ __decorate([
142786
+ Field({ nullable: true, description: "The user who approved this view." }),
142787
+ MaxLength(36),
142788
+ __metadata("design:type", String)
142789
+ ], MJUserView_.prototype, "ApprovedByUserID", void 0);
142790
+ __decorate([
142791
+ Field({ nullable: true, description: "When this view was approved." }),
142792
+ __metadata("design:type", Date)
142793
+ ], MJUserView_.prototype, "ApprovedAt", void 0);
142794
+ __decorate([
142795
+ Field({ nullable: true, description: "SHA-256 fingerprint of the definition that was approved: its entity, filters and properties. The approval is current only while this matches the fingerprint of the current definition." }),
142796
+ MaxLength(100),
142797
+ __metadata("design:type", String)
142798
+ ], MJUserView_.prototype, "ApprovedFingerprint", void 0);
139114
142799
  __decorate([
139115
142800
  Field({ nullable: true }),
139116
142801
  MaxLength(100),
@@ -139242,6 +142927,30 @@ __decorate([
139242
142927
  Field({ nullable: true }),
139243
142928
  __metadata("design:type", String)
139244
142929
  ], CreateMJUserViewInput.prototype, "ViewTypeID", void 0);
142930
+ __decorate([
142931
+ Field({ nullable: true }),
142932
+ __metadata("design:type", String)
142933
+ ], CreateMJUserViewInput.prototype, "Properties", void 0);
142934
+ __decorate([
142935
+ Field({ nullable: true }),
142936
+ __metadata("design:type", String)
142937
+ ], CreateMJUserViewInput.prototype, "ApprovalStatus", void 0);
142938
+ __decorate([
142939
+ Field({ nullable: true }),
142940
+ __metadata("design:type", String)
142941
+ ], CreateMJUserViewInput.prototype, "ApprovalComments", void 0);
142942
+ __decorate([
142943
+ Field({ nullable: true }),
142944
+ __metadata("design:type", String)
142945
+ ], CreateMJUserViewInput.prototype, "ApprovedByUserID", void 0);
142946
+ __decorate([
142947
+ Field({ nullable: true }),
142948
+ __metadata("design:type", Date)
142949
+ ], CreateMJUserViewInput.prototype, "ApprovedAt", void 0);
142950
+ __decorate([
142951
+ Field({ nullable: true }),
142952
+ __metadata("design:type", String)
142953
+ ], CreateMJUserViewInput.prototype, "ApprovedFingerprint", void 0);
139245
142954
  __decorate([
139246
142955
  Field(() => RestoreContextInput, { nullable: true }),
139247
142956
  __metadata("design:type", RestoreContextInput)
@@ -139343,6 +143052,30 @@ __decorate([
139343
143052
  Field({ nullable: true }),
139344
143053
  __metadata("design:type", String)
139345
143054
  ], UpdateMJUserViewInput.prototype, "ViewTypeID", void 0);
143055
+ __decorate([
143056
+ Field({ nullable: true }),
143057
+ __metadata("design:type", String)
143058
+ ], UpdateMJUserViewInput.prototype, "Properties", void 0);
143059
+ __decorate([
143060
+ Field({ nullable: true }),
143061
+ __metadata("design:type", String)
143062
+ ], UpdateMJUserViewInput.prototype, "ApprovalStatus", void 0);
143063
+ __decorate([
143064
+ Field({ nullable: true }),
143065
+ __metadata("design:type", String)
143066
+ ], UpdateMJUserViewInput.prototype, "ApprovalComments", void 0);
143067
+ __decorate([
143068
+ Field({ nullable: true }),
143069
+ __metadata("design:type", String)
143070
+ ], UpdateMJUserViewInput.prototype, "ApprovedByUserID", void 0);
143071
+ __decorate([
143072
+ Field({ nullable: true }),
143073
+ __metadata("design:type", Date)
143074
+ ], UpdateMJUserViewInput.prototype, "ApprovedAt", void 0);
143075
+ __decorate([
143076
+ Field({ nullable: true }),
143077
+ __metadata("design:type", String)
143078
+ ], UpdateMJUserViewInput.prototype, "ApprovedFingerprint", void 0);
139346
143079
  __decorate([
139347
143080
  Field(() => [KeyValuePairInput], { nullable: true }),
139348
143081
  __metadata("design:type", Array)
@@ -141850,6 +145583,378 @@ MJVersionLabelResolver = __decorate([
141850
145583
  ], MJVersionLabelResolver);
141851
145584
  export { MJVersionLabelResolver };
141852
145585
  //****************************************************************************
145586
+ // ENTITY CLASS for MJ: Video Archetypes
145587
+ //****************************************************************************
145588
+ let MJVideoArchetype_ = class MJVideoArchetype_ {
145589
+ };
145590
+ __decorate([
145591
+ Field(),
145592
+ MaxLength(36),
145593
+ __metadata("design:type", String)
145594
+ ], MJVideoArchetype_.prototype, "ID", void 0);
145595
+ __decorate([
145596
+ Field({ nullable: true, description: "Archetype name, unique within its CompanyID scope." }),
145597
+ MaxLength(100),
145598
+ __metadata("design:type", String)
145599
+ ], MJVideoArchetype_.prototype, "Name", void 0);
145600
+ __decorate([
145601
+ Field({ nullable: true, description: "What the archetype is for; the Director reads it to pick one." }),
145602
+ __metadata("design:type", String)
145603
+ ], MJVideoArchetype_.prototype, "Description", void 0);
145604
+ __decorate([
145605
+ Field({ nullable: true, description: "The company that owns this archetype. NULL means shipped or org-wide: available to all companies." }),
145606
+ MaxLength(36),
145607
+ __metadata("design:type", String)
145608
+ ], MJVideoArchetype_.prototype, "CompanyID", void 0);
145609
+ __decorate([
145610
+ Field({ nullable: true, description: "Explainer, Product, DataStory, Social, Tutorial, Announcement or Briefing." }),
145611
+ MaxLength(30),
145612
+ __metadata("design:type", String)
145613
+ ], MJVideoArchetype_.prototype, "Category", void 0);
145614
+ __decorate([
145615
+ Field({ nullable: true, description: "Active archetypes are offered; Inactive are hidden." }),
145616
+ MaxLength(20),
145617
+ __metadata("design:type", String)
145618
+ ], MJVideoArchetype_.prototype, "Status", void 0);
145619
+ __decorate([
145620
+ Field(() => Int, { nullable: true, description: "Default film length, in seconds." }),
145621
+ __metadata("design:type", Number)
145622
+ ], MJVideoArchetype_.prototype, "DefaultDurationSeconds", void 0);
145623
+ __decorate([
145624
+ Field(() => Int, { nullable: true, description: "Shortest film length, in seconds." }),
145625
+ __metadata("design:type", Number)
145626
+ ], MJVideoArchetype_.prototype, "MinDurationSeconds", void 0);
145627
+ __decorate([
145628
+ Field(() => Int, { nullable: true, description: "Longest film length, in seconds." }),
145629
+ __metadata("design:type", Number)
145630
+ ], MJVideoArchetype_.prototype, "MaxDurationSeconds", void 0);
145631
+ __decorate([
145632
+ Field({ nullable: true, description: "Comma-separated default formats: any of 16:9, 9:16, 1:1." }),
145633
+ MaxLength(100),
145634
+ __metadata("design:type", String)
145635
+ ], MJVideoArchetype_.prototype, "DefaultFormats", void 0);
145636
+ __decorate([
145637
+ Field({ nullable: true, description: "JSON array (VideoBeatTemplate[]): the beat slots a film of this archetype follows, with per-beat duration bounds." }),
145638
+ __metadata("design:type", String)
145639
+ ], MJVideoArchetype_.prototype, "BeatTemplate", void 0);
145640
+ __decorate([
145641
+ Field({ nullable: true, description: "JSON (VideoPacing): cut cadence and hold rules." }),
145642
+ __metadata("design:type", String)
145643
+ ], MJVideoArchetype_.prototype, "Pacing", void 0);
145644
+ __decorate([
145645
+ Field({ nullable: true, description: "Markdown guidance for the Director and Storyboard." }),
145646
+ __metadata("design:type", String)
145647
+ ], MJVideoArchetype_.prototype, "Guidance", void 0);
145648
+ __decorate([
145649
+ Field({ nullable: true, description: "Default approval mode: Autonomous, ApproveStoryboard or ApproveStoryboardAndRoughCut." }),
145650
+ MaxLength(30),
145651
+ __metadata("design:type", String)
145652
+ ], MJVideoArchetype_.prototype, "DefaultInteractionMode", void 0);
145653
+ __decorate([
145654
+ Field(),
145655
+ __metadata("design:type", Date)
145656
+ ], MJVideoArchetype_.prototype, "_mj__CreatedAt", void 0);
145657
+ __decorate([
145658
+ Field(),
145659
+ __metadata("design:type", Date)
145660
+ ], MJVideoArchetype_.prototype, "_mj__UpdatedAt", void 0);
145661
+ __decorate([
145662
+ Field({ nullable: true }),
145663
+ MaxLength(50),
145664
+ __metadata("design:type", String)
145665
+ ], MJVideoArchetype_.prototype, "Company", void 0);
145666
+ __decorate([
145667
+ Field(() => [String], { nullable: true, description: `Field-level security: when non-null, the fields on this entity the calling user may read. Any other field arriving as null was withheld by the server rather than genuinely empty. Null for callers with no field restrictions.` }),
145668
+ __metadata("design:type", Array)
145669
+ ], MJVideoArchetype_.prototype, "ReadableFields___", void 0);
145670
+ MJVideoArchetype_ = __decorate([
145671
+ ObjectType({ description: "A Video Studio film template: duration bounds, default formats, a beat template, pacing, and guidance for the Director and Storyboard. CompanyID NULL marks a shipped or org-wide archetype." })
145672
+ ], MJVideoArchetype_);
145673
+ export { MJVideoArchetype_ };
145674
+ //****************************************************************************
145675
+ // INPUT TYPE for MJ: Video Archetypes
145676
+ //****************************************************************************
145677
+ let CreateMJVideoArchetypeInput = class CreateMJVideoArchetypeInput {
145678
+ };
145679
+ __decorate([
145680
+ Field({ nullable: true }),
145681
+ __metadata("design:type", String)
145682
+ ], CreateMJVideoArchetypeInput.prototype, "ID", void 0);
145683
+ __decorate([
145684
+ Field({ nullable: true }),
145685
+ __metadata("design:type", String)
145686
+ ], CreateMJVideoArchetypeInput.prototype, "Name", void 0);
145687
+ __decorate([
145688
+ Field({ nullable: true }),
145689
+ __metadata("design:type", String)
145690
+ ], CreateMJVideoArchetypeInput.prototype, "Description", void 0);
145691
+ __decorate([
145692
+ Field({ nullable: true }),
145693
+ __metadata("design:type", String)
145694
+ ], CreateMJVideoArchetypeInput.prototype, "CompanyID", void 0);
145695
+ __decorate([
145696
+ Field({ nullable: true }),
145697
+ __metadata("design:type", String)
145698
+ ], CreateMJVideoArchetypeInput.prototype, "Category", void 0);
145699
+ __decorate([
145700
+ Field({ nullable: true }),
145701
+ __metadata("design:type", String)
145702
+ ], CreateMJVideoArchetypeInput.prototype, "Status", void 0);
145703
+ __decorate([
145704
+ Field(() => Int, { nullable: true }),
145705
+ __metadata("design:type", Number)
145706
+ ], CreateMJVideoArchetypeInput.prototype, "DefaultDurationSeconds", void 0);
145707
+ __decorate([
145708
+ Field(() => Int, { nullable: true }),
145709
+ __metadata("design:type", Number)
145710
+ ], CreateMJVideoArchetypeInput.prototype, "MinDurationSeconds", void 0);
145711
+ __decorate([
145712
+ Field(() => Int, { nullable: true }),
145713
+ __metadata("design:type", Number)
145714
+ ], CreateMJVideoArchetypeInput.prototype, "MaxDurationSeconds", void 0);
145715
+ __decorate([
145716
+ Field({ nullable: true }),
145717
+ __metadata("design:type", String)
145718
+ ], CreateMJVideoArchetypeInput.prototype, "DefaultFormats", void 0);
145719
+ __decorate([
145720
+ Field({ nullable: true }),
145721
+ __metadata("design:type", String)
145722
+ ], CreateMJVideoArchetypeInput.prototype, "BeatTemplate", void 0);
145723
+ __decorate([
145724
+ Field({ nullable: true }),
145725
+ __metadata("design:type", String)
145726
+ ], CreateMJVideoArchetypeInput.prototype, "Pacing", void 0);
145727
+ __decorate([
145728
+ Field({ nullable: true }),
145729
+ __metadata("design:type", String)
145730
+ ], CreateMJVideoArchetypeInput.prototype, "Guidance", void 0);
145731
+ __decorate([
145732
+ Field({ nullable: true }),
145733
+ __metadata("design:type", String)
145734
+ ], CreateMJVideoArchetypeInput.prototype, "DefaultInteractionMode", void 0);
145735
+ __decorate([
145736
+ Field(() => RestoreContextInput, { nullable: true }),
145737
+ __metadata("design:type", RestoreContextInput)
145738
+ ], CreateMJVideoArchetypeInput.prototype, "RestoreContext___", void 0);
145739
+ CreateMJVideoArchetypeInput = __decorate([
145740
+ InputType()
145741
+ ], CreateMJVideoArchetypeInput);
145742
+ export { CreateMJVideoArchetypeInput };
145743
+ //****************************************************************************
145744
+ // INPUT TYPE for MJ: Video Archetypes
145745
+ //****************************************************************************
145746
+ let UpdateMJVideoArchetypeInput = class UpdateMJVideoArchetypeInput {
145747
+ };
145748
+ __decorate([
145749
+ Field(),
145750
+ __metadata("design:type", String)
145751
+ ], UpdateMJVideoArchetypeInput.prototype, "ID", void 0);
145752
+ __decorate([
145753
+ Field({ nullable: true }),
145754
+ __metadata("design:type", String)
145755
+ ], UpdateMJVideoArchetypeInput.prototype, "Name", void 0);
145756
+ __decorate([
145757
+ Field({ nullable: true }),
145758
+ __metadata("design:type", String)
145759
+ ], UpdateMJVideoArchetypeInput.prototype, "Description", void 0);
145760
+ __decorate([
145761
+ Field({ nullable: true }),
145762
+ __metadata("design:type", String)
145763
+ ], UpdateMJVideoArchetypeInput.prototype, "CompanyID", void 0);
145764
+ __decorate([
145765
+ Field({ nullable: true }),
145766
+ __metadata("design:type", String)
145767
+ ], UpdateMJVideoArchetypeInput.prototype, "Category", void 0);
145768
+ __decorate([
145769
+ Field({ nullable: true }),
145770
+ __metadata("design:type", String)
145771
+ ], UpdateMJVideoArchetypeInput.prototype, "Status", void 0);
145772
+ __decorate([
145773
+ Field(() => Int, { nullable: true }),
145774
+ __metadata("design:type", Number)
145775
+ ], UpdateMJVideoArchetypeInput.prototype, "DefaultDurationSeconds", void 0);
145776
+ __decorate([
145777
+ Field(() => Int, { nullable: true }),
145778
+ __metadata("design:type", Number)
145779
+ ], UpdateMJVideoArchetypeInput.prototype, "MinDurationSeconds", void 0);
145780
+ __decorate([
145781
+ Field(() => Int, { nullable: true }),
145782
+ __metadata("design:type", Number)
145783
+ ], UpdateMJVideoArchetypeInput.prototype, "MaxDurationSeconds", void 0);
145784
+ __decorate([
145785
+ Field({ nullable: true }),
145786
+ __metadata("design:type", String)
145787
+ ], UpdateMJVideoArchetypeInput.prototype, "DefaultFormats", void 0);
145788
+ __decorate([
145789
+ Field({ nullable: true }),
145790
+ __metadata("design:type", String)
145791
+ ], UpdateMJVideoArchetypeInput.prototype, "BeatTemplate", void 0);
145792
+ __decorate([
145793
+ Field({ nullable: true }),
145794
+ __metadata("design:type", String)
145795
+ ], UpdateMJVideoArchetypeInput.prototype, "Pacing", void 0);
145796
+ __decorate([
145797
+ Field({ nullable: true }),
145798
+ __metadata("design:type", String)
145799
+ ], UpdateMJVideoArchetypeInput.prototype, "Guidance", void 0);
145800
+ __decorate([
145801
+ Field({ nullable: true }),
145802
+ __metadata("design:type", String)
145803
+ ], UpdateMJVideoArchetypeInput.prototype, "DefaultInteractionMode", void 0);
145804
+ __decorate([
145805
+ Field(() => [KeyValuePairInput], { nullable: true }),
145806
+ __metadata("design:type", Array)
145807
+ ], UpdateMJVideoArchetypeInput.prototype, "OldValues___", void 0);
145808
+ __decorate([
145809
+ Field(() => RestoreContextInput, { nullable: true }),
145810
+ __metadata("design:type", RestoreContextInput)
145811
+ ], UpdateMJVideoArchetypeInput.prototype, "RestoreContext___", void 0);
145812
+ UpdateMJVideoArchetypeInput = __decorate([
145813
+ InputType()
145814
+ ], UpdateMJVideoArchetypeInput);
145815
+ export { UpdateMJVideoArchetypeInput };
145816
+ //****************************************************************************
145817
+ // RESOLVER for MJ: Video Archetypes
145818
+ //****************************************************************************
145819
+ let RunMJVideoArchetypeViewResult = class RunMJVideoArchetypeViewResult {
145820
+ };
145821
+ __decorate([
145822
+ Field(() => [MJVideoArchetype_]),
145823
+ __metadata("design:type", Array)
145824
+ ], RunMJVideoArchetypeViewResult.prototype, "Results", void 0);
145825
+ __decorate([
145826
+ Field(() => String, { nullable: true }),
145827
+ __metadata("design:type", String)
145828
+ ], RunMJVideoArchetypeViewResult.prototype, "UserViewRunID", void 0);
145829
+ __decorate([
145830
+ Field(() => Int, { nullable: true }),
145831
+ __metadata("design:type", Number)
145832
+ ], RunMJVideoArchetypeViewResult.prototype, "RowCount", void 0);
145833
+ __decorate([
145834
+ Field(() => Int, { nullable: true }),
145835
+ __metadata("design:type", Number)
145836
+ ], RunMJVideoArchetypeViewResult.prototype, "TotalRowCount", void 0);
145837
+ __decorate([
145838
+ Field(() => Int, { nullable: true }),
145839
+ __metadata("design:type", Number)
145840
+ ], RunMJVideoArchetypeViewResult.prototype, "ExecutionTime", void 0);
145841
+ __decorate([
145842
+ Field({ nullable: true }),
145843
+ __metadata("design:type", String)
145844
+ ], RunMJVideoArchetypeViewResult.prototype, "ErrorMessage", void 0);
145845
+ __decorate([
145846
+ Field(() => Boolean, { nullable: false }),
145847
+ __metadata("design:type", Boolean)
145848
+ ], RunMJVideoArchetypeViewResult.prototype, "Success", void 0);
145849
+ RunMJVideoArchetypeViewResult = __decorate([
145850
+ ObjectType()
145851
+ ], RunMJVideoArchetypeViewResult);
145852
+ export { RunMJVideoArchetypeViewResult };
145853
+ let MJVideoArchetypeResolver = class MJVideoArchetypeResolver extends ResolverBase {
145854
+ async RunMJVideoArchetypeViewByID(input, { providers, userPayload }, pubSub) {
145855
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
145856
+ return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
145857
+ }
145858
+ async RunMJVideoArchetypeViewByName(input, { providers, userPayload }, pubSub) {
145859
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
145860
+ return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
145861
+ }
145862
+ async RunMJVideoArchetypeDynamicView(input, { providers, userPayload }, pubSub) {
145863
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
145864
+ input.EntityName = 'MJ: Video Archetypes';
145865
+ return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
145866
+ }
145867
+ async MJVideoArchetype(ID, { userPayload, providers }, pubSub) {
145868
+ this.CheckUserReadPermissions('MJ: Video Archetypes', userPayload);
145869
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
145870
+ const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwVideoArchetypes')} WHERE ${provider.QuoteIdentifier('ID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Video Archetypes', userPayload, EntityPermissionType.Read, 'AND');
145871
+ const rows = await provider.ExecuteSQL(sSQL, [ID], undefined, this.GetUserFromPayload(userPayload));
145872
+ const result = await this.MapFieldNamesToCodeNames('MJ: Video Archetypes', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
145873
+ return result;
145874
+ }
145875
+ async CreateMJVideoArchetype(input, { providers, userPayload }, pubSub) {
145876
+ const provider = GetReadWriteProvider(providers);
145877
+ return this.CreateRecord('MJ: Video Archetypes', input, provider, userPayload, pubSub);
145878
+ }
145879
+ async UpdateMJVideoArchetype(input, { providers, userPayload }, pubSub) {
145880
+ const provider = GetReadWriteProvider(providers);
145881
+ return this.UpdateRecord('MJ: Video Archetypes', input, provider, userPayload, pubSub);
145882
+ }
145883
+ async DeleteMJVideoArchetype(ID, options, { providers, userPayload }, pubSub) {
145884
+ const provider = GetReadWriteProvider(providers);
145885
+ const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
145886
+ return this.DeleteRecord('MJ: Video Archetypes', key, options, provider, userPayload, pubSub);
145887
+ }
145888
+ };
145889
+ __decorate([
145890
+ Query(() => RunMJVideoArchetypeViewResult),
145891
+ __param(0, Arg('input', () => RunViewByIDInput)),
145892
+ __param(1, Ctx()),
145893
+ __param(2, PubSub()),
145894
+ __metadata("design:type", Function),
145895
+ __metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
145896
+ __metadata("design:returntype", Promise)
145897
+ ], MJVideoArchetypeResolver.prototype, "RunMJVideoArchetypeViewByID", null);
145898
+ __decorate([
145899
+ Query(() => RunMJVideoArchetypeViewResult),
145900
+ __param(0, Arg('input', () => RunViewByNameInput)),
145901
+ __param(1, Ctx()),
145902
+ __param(2, PubSub()),
145903
+ __metadata("design:type", Function),
145904
+ __metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
145905
+ __metadata("design:returntype", Promise)
145906
+ ], MJVideoArchetypeResolver.prototype, "RunMJVideoArchetypeViewByName", null);
145907
+ __decorate([
145908
+ Query(() => RunMJVideoArchetypeViewResult),
145909
+ __param(0, Arg('input', () => RunDynamicViewInput)),
145910
+ __param(1, Ctx()),
145911
+ __param(2, PubSub()),
145912
+ __metadata("design:type", Function),
145913
+ __metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
145914
+ __metadata("design:returntype", Promise)
145915
+ ], MJVideoArchetypeResolver.prototype, "RunMJVideoArchetypeDynamicView", null);
145916
+ __decorate([
145917
+ Query(() => MJVideoArchetype_, { nullable: true }),
145918
+ __param(0, Arg('ID', () => String)),
145919
+ __param(1, Ctx()),
145920
+ __param(2, PubSub()),
145921
+ __metadata("design:type", Function),
145922
+ __metadata("design:paramtypes", [String, Object, PubSubEngine]),
145923
+ __metadata("design:returntype", Promise)
145924
+ ], MJVideoArchetypeResolver.prototype, "MJVideoArchetype", null);
145925
+ __decorate([
145926
+ Mutation(() => MJVideoArchetype_),
145927
+ __param(0, Arg('input', () => CreateMJVideoArchetypeInput)),
145928
+ __param(1, Ctx()),
145929
+ __param(2, PubSub()),
145930
+ __metadata("design:type", Function),
145931
+ __metadata("design:paramtypes", [CreateMJVideoArchetypeInput, Object, PubSubEngine]),
145932
+ __metadata("design:returntype", Promise)
145933
+ ], MJVideoArchetypeResolver.prototype, "CreateMJVideoArchetype", null);
145934
+ __decorate([
145935
+ Mutation(() => MJVideoArchetype_),
145936
+ __param(0, Arg('input', () => UpdateMJVideoArchetypeInput)),
145937
+ __param(1, Ctx()),
145938
+ __param(2, PubSub()),
145939
+ __metadata("design:type", Function),
145940
+ __metadata("design:paramtypes", [UpdateMJVideoArchetypeInput, Object, PubSubEngine]),
145941
+ __metadata("design:returntype", Promise)
145942
+ ], MJVideoArchetypeResolver.prototype, "UpdateMJVideoArchetype", null);
145943
+ __decorate([
145944
+ Mutation(() => MJVideoArchetype_),
145945
+ __param(0, Arg('ID', () => String)),
145946
+ __param(1, Arg('options___', () => DeleteOptionsInput)),
145947
+ __param(2, Ctx()),
145948
+ __param(3, PubSub()),
145949
+ __metadata("design:type", Function),
145950
+ __metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
145951
+ __metadata("design:returntype", Promise)
145952
+ ], MJVideoArchetypeResolver.prototype, "DeleteMJVideoArchetype", null);
145953
+ MJVideoArchetypeResolver = __decorate([
145954
+ Resolver(MJVideoArchetype_)
145955
+ ], MJVideoArchetypeResolver);
145956
+ export { MJVideoArchetypeResolver };
145957
+ //****************************************************************************
141853
145958
  // ENTITY CLASS for MJ: View Types
141854
145959
  //****************************************************************************
141855
145960
  let MJViewType_ = class MJViewType_ {