@burdenoff/microfe-botmanor 2026.1106.1 → 2026.1109.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (334) hide show
  1. package/dist/botlit/BotlitRoutes.d.ts +2 -0
  2. package/dist/botlit/BotlitRoutes.js +40 -37
  3. package/dist/botlit/BotlitRoutes.js.map +1 -1
  4. package/dist/botlit/BotmanorRoot.d.ts +3 -0
  5. package/dist/botlit/BotmanorRoot.js +1 -2
  6. package/dist/botlit/BotmanorRoot.js.map +1 -1
  7. package/dist/botlit/BotmanorRootInner.d.ts +3 -0
  8. package/dist/botlit/BotmanorRootInner.js +9 -10
  9. package/dist/botlit/BotmanorRootInner.js.map +1 -1
  10. package/dist/botlit/components/AgentApprovalPanel.d.ts +20 -0
  11. package/dist/botlit/components/AgentApprovalPanel.js +49 -50
  12. package/dist/botlit/components/AgentApprovalPanel.js.map +1 -1
  13. package/dist/botlit/components/AiOperationsPanel.d.ts +14 -0
  14. package/dist/botlit/components/AiOperationsPanel.js +253 -0
  15. package/dist/botlit/components/AiOperationsPanel.js.map +1 -0
  16. package/dist/botlit/components/AssistantChannelPanel.d.ts +3 -0
  17. package/dist/botlit/components/AssistantChannelPanel.js +12 -13
  18. package/dist/botlit/components/AssistantChannelPanel.js.map +1 -1
  19. package/dist/botlit/components/AssistantRuntimeSetupPanel.d.ts +4 -0
  20. package/dist/botlit/components/AssistantRuntimeSetupPanel.js +14 -14
  21. package/dist/botlit/components/AssistantRuntimeSetupPanel.js.map +1 -1
  22. package/dist/botlit/components/AssistantWebsitePanel.d.ts +5 -0
  23. package/dist/botlit/components/AssistantWebsitePanel.js +15 -16
  24. package/dist/botlit/components/AssistantWebsitePanel.js.map +1 -1
  25. package/dist/botlit/components/Badge.d.ts +9 -0
  26. package/dist/botlit/components/Badge.js +1 -2
  27. package/dist/botlit/components/Badge.js.map +1 -1
  28. package/dist/botlit/components/Button.d.ts +10 -0
  29. package/dist/botlit/components/Button.js +1 -2
  30. package/dist/botlit/components/Button.js.map +1 -1
  31. package/dist/botlit/components/Card.d.ts +16 -0
  32. package/dist/botlit/components/Card.js +1 -2
  33. package/dist/botlit/components/Card.js.map +1 -1
  34. package/dist/botlit/components/ChannelSelectorSheet.d.ts +23 -0
  35. package/dist/botlit/components/ChannelSelectorSheet.js +1 -2
  36. package/dist/botlit/components/ChannelSelectorSheet.js.map +1 -1
  37. package/dist/botlit/components/EmptyState.d.ts +12 -0
  38. package/dist/botlit/components/EmptyState.js +1 -2
  39. package/dist/botlit/components/EmptyState.js.map +1 -1
  40. package/dist/botlit/components/ErrorState.d.ts +10 -0
  41. package/dist/botlit/components/ErrorState.js +5 -6
  42. package/dist/botlit/components/ErrorState.js.map +1 -1
  43. package/dist/botlit/components/Input.d.ts +27 -0
  44. package/dist/botlit/components/Input.js +2 -3
  45. package/dist/botlit/components/Input.js.map +1 -1
  46. package/dist/botlit/components/KnowledgeSourceImportPanel.d.ts +3 -0
  47. package/dist/botlit/components/KnowledgeSourceImportPanel.js +12 -13
  48. package/dist/botlit/components/KnowledgeSourceImportPanel.js.map +1 -1
  49. package/dist/botlit/components/ModelRegistrationPanel.d.ts +5 -0
  50. package/dist/botlit/components/ModelRegistrationPanel.js +1 -2
  51. package/dist/botlit/components/ModelRegistrationPanel.js.map +1 -1
  52. package/dist/botlit/components/PageLayout.d.ts +12 -0
  53. package/dist/botlit/components/PageLayout.js +1 -2
  54. package/dist/botlit/components/PageLayout.js.map +1 -1
  55. package/dist/botlit/components/QuotaExhaustedDialog.d.ts +9 -0
  56. package/dist/botlit/components/QuotaExhaustedDialog.js +1 -2
  57. package/dist/botlit/components/QuotaExhaustedDialog.js.map +1 -1
  58. package/dist/botlit/components/RetentionStatusPanel.d.ts +2 -0
  59. package/dist/botlit/components/RetentionStatusPanel.js +18 -19
  60. package/dist/botlit/components/RetentionStatusPanel.js.map +1 -1
  61. package/dist/botlit/components/RouteLoader.d.ts +23 -0
  62. package/dist/botlit/components/RouteLoader.js +1 -2
  63. package/dist/botlit/components/RouteLoader.js.map +1 -1
  64. package/dist/botlit/components/VersionHistoryPanel.d.ts +12 -0
  65. package/dist/botlit/components/VersionHistoryPanel.js +23 -24
  66. package/dist/botlit/components/VersionHistoryPanel.js.map +1 -1
  67. package/dist/botlit/components/WorkspaceRequired.d.ts +18 -0
  68. package/dist/botlit/components/WorkspaceRequired.js +1 -2
  69. package/dist/botlit/components/WorkspaceRequired.js.map +1 -1
  70. package/dist/botlit/components/index.d.ts +14 -0
  71. package/dist/botlit/hooks/index.d.ts +36 -0
  72. package/dist/botlit/hooks/index.js +15 -13
  73. package/dist/botlit/hooks/internal/mutationInput.d.ts +56 -0
  74. package/dist/botlit/hooks/internal/mutationInput.js +1 -2
  75. package/dist/botlit/hooks/internal/mutationInput.js.map +1 -1
  76. package/dist/botlit/hooks/internal/workspaceGateway.d.ts +54 -0
  77. package/dist/botlit/hooks/internal/workspaceGateway.js +17 -19
  78. package/dist/botlit/hooks/internal/workspaceGateway.js.map +1 -1
  79. package/dist/botlit/hooks/useA2A.d.ts +104 -0
  80. package/dist/botlit/hooks/useA2A.js +45 -45
  81. package/dist/botlit/hooks/useA2A.js.map +1 -1
  82. package/dist/botlit/hooks/useAgentApprovals.d.ts +62 -0
  83. package/dist/botlit/hooks/useAgentApprovals.js +38 -39
  84. package/dist/botlit/hooks/useAgentApprovals.js.map +1 -1
  85. package/dist/botlit/hooks/useAgents.d.ts +105 -0
  86. package/dist/botlit/hooks/useAgents.js +53 -54
  87. package/dist/botlit/hooks/useAgents.js.map +1 -1
  88. package/dist/botlit/hooks/useAiOperations.d.ts +95 -0
  89. package/dist/botlit/hooks/useAiOperations.js +154 -0
  90. package/dist/botlit/hooks/useAiOperations.js.map +1 -0
  91. package/dist/botlit/hooks/useAssistantChannels.d.ts +16 -0
  92. package/dist/botlit/hooks/useAssistantChannels.js +1 -2
  93. package/dist/botlit/hooks/useAssistantChannels.js.map +1 -1
  94. package/dist/botlit/hooks/useAssistantRuntimeSetup.d.ts +17 -0
  95. package/dist/botlit/hooks/useAssistantRuntimeSetup.js +1 -2
  96. package/dist/botlit/hooks/useAssistantRuntimeSetup.js.map +1 -1
  97. package/dist/botlit/hooks/useAssistantWebsites.d.ts +18 -0
  98. package/dist/botlit/hooks/useAssistantWebsites.js +1 -2
  99. package/dist/botlit/hooks/useAssistantWebsites.js.map +1 -1
  100. package/dist/botlit/hooks/useBotWorkflow.d.ts +22 -0
  101. package/dist/botlit/hooks/useBotWorkflow.js +1 -2
  102. package/dist/botlit/hooks/useBotWorkflow.js.map +1 -1
  103. package/dist/botlit/hooks/useBots.d.ts +68 -0
  104. package/dist/botlit/hooks/useBots.js +32 -33
  105. package/dist/botlit/hooks/useBots.js.map +1 -1
  106. package/dist/botlit/hooks/useBuckets.d.ts +57 -0
  107. package/dist/botlit/hooks/useBuckets.js +38 -39
  108. package/dist/botlit/hooks/useBuckets.js.map +1 -1
  109. package/dist/botlit/hooks/useChannels.d.ts +87 -0
  110. package/dist/botlit/hooks/useChannels.js +73 -73
  111. package/dist/botlit/hooks/useChannels.js.map +1 -1
  112. package/dist/botlit/hooks/useConversations.d.ts +42 -0
  113. package/dist/botlit/hooks/useConversations.js +1 -2
  114. package/dist/botlit/hooks/useConversations.js.map +1 -1
  115. package/dist/botlit/hooks/useExecutions.d.ts +87 -0
  116. package/dist/botlit/hooks/useExecutions.js +37 -37
  117. package/dist/botlit/hooks/useExecutions.js.map +1 -1
  118. package/dist/botlit/hooks/useKnowledgeBases.d.ts +79 -0
  119. package/dist/botlit/hooks/useKnowledgeBases.js +40 -39
  120. package/dist/botlit/hooks/useKnowledgeBases.js.map +1 -1
  121. package/dist/botlit/hooks/useKnowledgeSourceImports.d.ts +21 -0
  122. package/dist/botlit/hooks/useKnowledgeSourceImports.js +1 -2
  123. package/dist/botlit/hooks/useKnowledgeSourceImports.js.map +1 -1
  124. package/dist/botlit/hooks/useLLMProviders.d.ts +66 -0
  125. package/dist/botlit/hooks/useLLMProviders.js +25 -26
  126. package/dist/botlit/hooks/useLLMProviders.js.map +1 -1
  127. package/dist/botlit/hooks/useMCPServers.d.ts +71 -0
  128. package/dist/botlit/hooks/useMCPServers.js +40 -38
  129. package/dist/botlit/hooks/useMCPServers.js.map +1 -1
  130. package/dist/botlit/hooks/usePolicies.d.ts +60 -0
  131. package/dist/botlit/hooks/usePolicies.js +49 -49
  132. package/dist/botlit/hooks/usePolicies.js.map +1 -1
  133. package/dist/botlit/hooks/usePromptTemplates.d.ts +88 -0
  134. package/dist/botlit/hooks/usePromptTemplates.js +57 -57
  135. package/dist/botlit/hooks/usePromptTemplates.js.map +1 -1
  136. package/dist/botlit/hooks/useRetention.d.ts +26 -0
  137. package/dist/botlit/hooks/useRetention.js +3 -3
  138. package/dist/botlit/hooks/useRetention.js.map +1 -1
  139. package/dist/botlit/hooks/useRetrievalProfiles.d.ts +75 -0
  140. package/dist/botlit/hooks/useRetrievalProfiles.js +47 -47
  141. package/dist/botlit/hooks/useRetrievalProfiles.js.map +1 -1
  142. package/dist/botlit/hooks/useSkills.d.ts +64 -0
  143. package/dist/botlit/hooks/useSkills.js +53 -53
  144. package/dist/botlit/hooks/useSkills.js.map +1 -1
  145. package/dist/botlit/hooks/useStore.d.ts +112 -0
  146. package/dist/botlit/hooks/useStore.js +55 -55
  147. package/dist/botlit/hooks/useStore.js.map +1 -1
  148. package/dist/botlit/hooks/useUserPlatformConnection.d.ts +80 -0
  149. package/dist/botlit/hooks/useUserPlatformConnection.js +19 -19
  150. package/dist/botlit/hooks/useUserPlatformConnection.js.map +1 -1
  151. package/dist/botlit/index.d.ts +16 -0
  152. package/dist/botlit/index.js +12 -11
  153. package/dist/botlit/pages/A2AAgentDetailPage.d.ts +6 -0
  154. package/dist/botlit/pages/A2AAgentDetailPage.js +171 -178
  155. package/dist/botlit/pages/A2AAgentDetailPage.js.map +1 -1
  156. package/dist/botlit/pages/A2ARegistryPage.d.ts +2 -0
  157. package/dist/botlit/pages/A2ARegistryPage.js +25 -26
  158. package/dist/botlit/pages/A2ARegistryPage.js.map +1 -1
  159. package/dist/botlit/pages/AgentApprovalsPage.d.ts +2 -0
  160. package/dist/botlit/pages/AgentApprovalsPage.js +32 -33
  161. package/dist/botlit/pages/AgentApprovalsPage.js.map +1 -1
  162. package/dist/botlit/pages/AgentBuilderPage.d.ts +2 -0
  163. package/dist/botlit/pages/AgentBuilderPage.js +59 -60
  164. package/dist/botlit/pages/AgentBuilderPage.js.map +1 -1
  165. package/dist/botlit/pages/AgentDetailPage.d.ts +2 -0
  166. package/dist/botlit/pages/AgentDetailPage.js +202 -190
  167. package/dist/botlit/pages/AgentDetailPage.js.map +1 -1
  168. package/dist/botlit/pages/AgentsListPage.d.ts +2 -0
  169. package/dist/botlit/pages/AgentsListPage.js +71 -72
  170. package/dist/botlit/pages/AgentsListPage.js.map +1 -1
  171. package/dist/botlit/pages/AiOperationsPage.d.ts +2 -0
  172. package/dist/botlit/pages/AiOperationsPage.js +165 -0
  173. package/dist/botlit/pages/AiOperationsPage.js.map +1 -0
  174. package/dist/botlit/pages/BotChannelsTab.d.ts +7 -0
  175. package/dist/botlit/pages/BotChannelsTab.js +120 -122
  176. package/dist/botlit/pages/BotChannelsTab.js.map +1 -1
  177. package/dist/botlit/pages/BotDetailPage.d.ts +7 -0
  178. package/dist/botlit/pages/BotDetailPage.js +246 -237
  179. package/dist/botlit/pages/BotDetailPage.js.map +1 -1
  180. package/dist/botlit/pages/BotWorkflowTab.d.ts +11 -0
  181. package/dist/botlit/pages/BotWorkflowTab.js +20 -21
  182. package/dist/botlit/pages/BotWorkflowTab.js.map +1 -1
  183. package/dist/botlit/pages/BotsListPage.d.ts +2 -0
  184. package/dist/botlit/pages/BotsListPage.js +52 -53
  185. package/dist/botlit/pages/BotsListPage.js.map +1 -1
  186. package/dist/botlit/pages/BucketsPage.d.ts +2 -0
  187. package/dist/botlit/pages/BucketsPage.js +260 -261
  188. package/dist/botlit/pages/BucketsPage.js.map +1 -1
  189. package/dist/botlit/pages/ChannelDetailPage.d.ts +6 -0
  190. package/dist/botlit/pages/ChannelDetailPage.js +97 -96
  191. package/dist/botlit/pages/ChannelDetailPage.js.map +1 -1
  192. package/dist/botlit/pages/ChannelRoutesPage.d.ts +2 -0
  193. package/dist/botlit/pages/ChannelRoutesPage.js +23 -24
  194. package/dist/botlit/pages/ChannelRoutesPage.js.map +1 -1
  195. package/dist/botlit/pages/ChannelsPage.d.ts +2 -0
  196. package/dist/botlit/pages/ChannelsPage.js +44 -45
  197. package/dist/botlit/pages/ChannelsPage.js.map +1 -1
  198. package/dist/botlit/pages/ChatPage.d.ts +1 -0
  199. package/dist/botlit/pages/ChatPage.js +10 -11
  200. package/dist/botlit/pages/ChatPage.js.map +1 -1
  201. package/dist/botlit/pages/ConversationDetailPage.d.ts +2 -0
  202. package/dist/botlit/pages/ConversationsPage.d.ts +2 -0
  203. package/dist/botlit/pages/DashboardPage.d.ts +2 -0
  204. package/dist/botlit/pages/DashboardPage.js +37 -38
  205. package/dist/botlit/pages/DashboardPage.js.map +1 -1
  206. package/dist/botlit/pages/ExecutionDetailPage.d.ts +2 -0
  207. package/dist/botlit/pages/ExecutionDetailPage.js +47 -48
  208. package/dist/botlit/pages/ExecutionDetailPage.js.map +1 -1
  209. package/dist/botlit/pages/ExecutionsPage.d.ts +2 -0
  210. package/dist/botlit/pages/ExecutionsPage.js +72 -70
  211. package/dist/botlit/pages/ExecutionsPage.js.map +1 -1
  212. package/dist/botlit/pages/InstalledPackagesPage.d.ts +2 -0
  213. package/dist/botlit/pages/InstalledPackagesPage.js +77 -78
  214. package/dist/botlit/pages/InstalledPackagesPage.js.map +1 -1
  215. package/dist/botlit/pages/KnowledgeBaseDetailPage.d.ts +6 -0
  216. package/dist/botlit/pages/KnowledgeBaseDetailPage.js +171 -181
  217. package/dist/botlit/pages/KnowledgeBaseDetailPage.js.map +1 -1
  218. package/dist/botlit/pages/KnowledgeBasesPage.d.ts +2 -0
  219. package/dist/botlit/pages/KnowledgeBasesPage.js +30 -31
  220. package/dist/botlit/pages/KnowledgeBasesPage.js.map +1 -1
  221. package/dist/botlit/pages/MCPServerDetailPage.d.ts +6 -0
  222. package/dist/botlit/pages/MCPServerDetailPage.js +82 -83
  223. package/dist/botlit/pages/MCPServerDetailPage.js.map +1 -1
  224. package/dist/botlit/pages/MCPServersPage.d.ts +2 -0
  225. package/dist/botlit/pages/MCPServersPage.js +54 -55
  226. package/dist/botlit/pages/MCPServersPage.js.map +1 -1
  227. package/dist/botlit/pages/PoliciesPage.d.ts +2 -0
  228. package/dist/botlit/pages/PoliciesPage.js +25 -26
  229. package/dist/botlit/pages/PoliciesPage.js.map +1 -1
  230. package/dist/botlit/pages/PolicyDetailPage.d.ts +6 -0
  231. package/dist/botlit/pages/PolicyDetailPage.js +257 -259
  232. package/dist/botlit/pages/PolicyDetailPage.js.map +1 -1
  233. package/dist/botlit/pages/PromptStudioPage.d.ts +2 -0
  234. package/dist/botlit/pages/PromptStudioPage.js +35 -35
  235. package/dist/botlit/pages/PromptStudioPage.js.map +1 -1
  236. package/dist/botlit/pages/PromptTemplateDetailPage.d.ts +6 -0
  237. package/dist/botlit/pages/PromptTemplateDetailPage.js +363 -362
  238. package/dist/botlit/pages/PromptTemplateDetailPage.js.map +1 -1
  239. package/dist/botlit/pages/PromptTemplatesPage.d.ts +2 -0
  240. package/dist/botlit/pages/PromptTemplatesPage.js +26 -27
  241. package/dist/botlit/pages/PromptTemplatesPage.js.map +1 -1
  242. package/dist/botlit/pages/RetrievalProfileDetailPage.d.ts +6 -0
  243. package/dist/botlit/pages/RetrievalProfileDetailPage.js +150 -158
  244. package/dist/botlit/pages/RetrievalProfileDetailPage.js.map +1 -1
  245. package/dist/botlit/pages/RetrievalProfilesPage.d.ts +2 -0
  246. package/dist/botlit/pages/RetrievalProfilesPage.js +24 -25
  247. package/dist/botlit/pages/RetrievalProfilesPage.js.map +1 -1
  248. package/dist/botlit/pages/SettingsPage.d.ts +2 -0
  249. package/dist/botlit/pages/SettingsPage.js +124 -125
  250. package/dist/botlit/pages/SettingsPage.js.map +1 -1
  251. package/dist/botlit/pages/SkillDetailPage.d.ts +6 -0
  252. package/dist/botlit/pages/SkillDetailPage.js +216 -217
  253. package/dist/botlit/pages/SkillDetailPage.js.map +1 -1
  254. package/dist/botlit/pages/SkillsPage.d.ts +2 -0
  255. package/dist/botlit/pages/SkillsPage.js +24 -25
  256. package/dist/botlit/pages/SkillsPage.js.map +1 -1
  257. package/dist/botlit/pages/StorePackageDetailPage.d.ts +2 -0
  258. package/dist/botlit/pages/StorePackageDetailPage.js +38 -39
  259. package/dist/botlit/pages/StorePackageDetailPage.js.map +1 -1
  260. package/dist/botlit/pages/StorePage.d.ts +2 -0
  261. package/dist/botlit/pages/StorePage.js +135 -136
  262. package/dist/botlit/pages/StorePage.js.map +1 -1
  263. package/dist/botlit/pages/index.d.ts +39 -0
  264. package/dist/botlit/permissions/PermissionRequired.d.ts +20 -0
  265. package/dist/botlit/permissions/PermissionRequired.js +10 -11
  266. package/dist/botlit/permissions/PermissionRequired.js.map +1 -1
  267. package/dist/botlit/permissions/botmanorPermissions.d.ts +82 -0
  268. package/dist/botlit/permissions/botmanorPermissions.js +1 -2
  269. package/dist/botlit/permissions/botmanorPermissions.js.map +1 -1
  270. package/dist/botlit/permissions/index.d.ts +7 -0
  271. package/dist/botlit/permissions/index.js +4 -3
  272. package/dist/botlit/permissions/useBotmanorPermissions.d.ts +41 -0
  273. package/dist/botlit/permissions/useBotmanorPermissions.js +1 -2
  274. package/dist/botlit/permissions/useBotmanorPermissions.js.map +1 -1
  275. package/dist/botlit/providers/BotlitProvider.d.ts +14 -0
  276. package/dist/botlit/providers/BotlitProvider.js +3 -3
  277. package/dist/botlit/providers/BotlitProvider.js.map +1 -1
  278. package/dist/botlit/store/botlitStore.d.ts +85 -0
  279. package/dist/botlit/store/botlitStore.js +1 -2
  280. package/dist/botlit/store/botlitStore.js.map +1 -1
  281. package/dist/botlit/store/renamedKeyStorage.d.ts +13 -0
  282. package/dist/botlit/store/renamedKeyStorage.js +1 -2
  283. package/dist/botlit/store/renamedKeyStorage.js.map +1 -1
  284. package/dist/botlit/types/index.d.ts +1008 -0
  285. package/dist/botlit/utils/cn.d.ts +2 -0
  286. package/dist/botlit/utils/cn.js +1 -2
  287. package/dist/botlit/utils/cn.js.map +1 -1
  288. package/dist/botlit/utils/embedding-models.d.ts +9 -0
  289. package/dist/botlit/utils/embedding-models.js +1 -2
  290. package/dist/botlit/utils/embedding-models.js.map +1 -1
  291. package/dist/botlit/utils/errors.d.ts +19 -0
  292. package/dist/botlit/utils/errors.js +1 -2
  293. package/dist/botlit/utils/errors.js.map +1 -1
  294. package/dist/botlit/utils/formatters.d.ts +38 -0
  295. package/dist/botlit/utils/formatters.js +0 -1
  296. package/dist/botlit/utils/formatters.js.map +1 -1
  297. package/dist/botlit/utils/navigation.d.ts +19 -0
  298. package/dist/botlit/utils/navigation.js +1 -2
  299. package/dist/botlit/utils/navigation.js.map +1 -1
  300. package/dist/botlit/utils/policyConfig.d.ts +68 -0
  301. package/dist/botlit/utils/policyConfig.js +2 -3
  302. package/dist/botlit/utils/policyConfig.js.map +1 -1
  303. package/dist/botlit/utils/unions.d.ts +25 -0
  304. package/dist/botlit/utils/unions.js +1 -2
  305. package/dist/botlit/utils/unions.js.map +1 -1
  306. package/dist/dev/App.d.ts +2 -0
  307. package/dist/dev/main.d.ts +0 -0
  308. package/dist/generated/global-operations.d.ts +197 -0
  309. package/dist/generated/global-operations.js +1 -2
  310. package/dist/generated/global-operations.js.map +1 -1
  311. package/dist/generated/global-types.d.ts +27678 -0
  312. package/dist/generated/global-types.js +1 -2
  313. package/dist/generated/global-types.js.map +1 -1
  314. package/dist/generated/wspace-operations.d.ts +5489 -0
  315. package/dist/generated/wspace-operations.js +172 -75
  316. package/dist/generated/wspace-operations.js.map +1 -1
  317. package/dist/generated/wspace-types.d.ts +152017 -0
  318. package/dist/generated/wspace-types.js +6 -5
  319. package/dist/generated/wspace-types.js.map +1 -1
  320. package/dist/index.d.ts +5 -0
  321. package/dist/shared/hooks/useTr.d.ts +16 -0
  322. package/dist/shared/hooks/useTr.js +1 -2
  323. package/dist/shared/hooks/useTr.js.map +1 -1
  324. package/dist/stories/Badge.stories.d.ts +11 -0
  325. package/dist/stories/Button.stories.d.ts +13 -0
  326. package/dist/stories/EmptyState.stories.d.ts +8 -0
  327. package/dist/stories/StatusBadge.stories.d.ts +9 -0
  328. package/dist/test/fixtures.d.ts +39 -0
  329. package/dist/test/happydom.d.ts +1 -0
  330. package/dist/test/renderPage.d.ts +18 -0
  331. package/dist/test/setup.d.ts +9 -0
  332. package/dist/utils/nativeBridge.d.ts +2 -0
  333. package/dist/utils/nativeBridge.js +1 -2
  334. package/package.json +87 -60
@@ -0,0 +1,197 @@
1
+ /** Internal type. DO NOT USE DIRECTLY. */
2
+ type Exact<T extends {
3
+ [key: string]: unknown;
4
+ }> = {
5
+ [K in keyof T]: T[K];
6
+ };
7
+ /** Internal type. DO NOT USE DIRECTLY. */
8
+ export type Incremental<T> = T | {
9
+ [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never;
10
+ };
11
+ import * as Types from './global-types';
12
+ import * as Apollo from '../../node_modules/@apollo/client';
13
+ import * as ApolloReactHooks from '../../node_modules/@apollo/client/react';
14
+ /** Supported channel platforms for bi-directional communication */
15
+ export type ChannelPlatform =
16
+ /** Discord server integration */
17
+ 'DISCORD'
18
+ /** Email via SMTP/IMAP/SendGrid/SES/ACS */
19
+ | 'EMAIL'
20
+ /** Push notifications via FCM/APNs */
21
+ | 'PUSH'
22
+ /** Slack workspace integration */
23
+ | 'SLACK'
24
+ /** SMS via Twilio/AWS SNS */
25
+ | 'SMS'
26
+ /** Microsoft Teams integration */
27
+ | 'TEAMS'
28
+ /** Custom webchat widget */
29
+ | 'WEBCHAT'
30
+ /** Generic HTTP webhooks */
31
+ | 'WEBHOOK'
32
+ /** WhatsApp Business API */
33
+ | 'WHATSAPP';
34
+ export type MyUserPlatformConnectionQueryVariables = Exact<{
35
+ channelId: string | number;
36
+ }>;
37
+ export type MyUserPlatformConnectionQuery = {
38
+ myUserPlatformConnection: {
39
+ id: string;
40
+ channelId: string;
41
+ platform: Types.ChannelPlatform;
42
+ externalUserId: string;
43
+ externalUsername: string | null;
44
+ externalDisplayName: string | null;
45
+ dmAllowed: boolean;
46
+ notificationsEnabled: boolean;
47
+ connectedAt: string | null;
48
+ canReceiveDm: boolean;
49
+ isTokenExpired: boolean;
50
+ userTokenExpiresAt: string | null;
51
+ integrationConnectionId: string | null;
52
+ } | null;
53
+ };
54
+ export type UpdateUserPlatformConnectionNotificationsMutationVariables = Exact<{
55
+ id: string | number;
56
+ notificationsEnabled: boolean;
57
+ }>;
58
+ export type UpdateUserPlatformConnectionNotificationsMutation = {
59
+ updateUserPlatformConnectionNotifications: {
60
+ id: string;
61
+ notificationsEnabled: boolean;
62
+ updatedAt: string;
63
+ };
64
+ };
65
+ export type RevokeUserPlatformConnectionMutationVariables = Exact<{
66
+ id: string | number;
67
+ }>;
68
+ export type RevokeUserPlatformConnectionMutation = {
69
+ revokeUserPlatformConnection: {
70
+ id: string;
71
+ dmAllowed: boolean;
72
+ updatedAt: string;
73
+ };
74
+ };
75
+ export type LinkIntegrationConnectionMutationVariables = Exact<{
76
+ integrationConnectionId: string | number;
77
+ channelId: string | number;
78
+ }>;
79
+ export type LinkIntegrationConnectionMutation = {
80
+ linkIntegrationConnection: {
81
+ id: string;
82
+ channelId: string;
83
+ platform: Types.ChannelPlatform;
84
+ externalUserId: string;
85
+ externalUsername: string | null;
86
+ externalDisplayName: string | null;
87
+ dmAllowed: boolean;
88
+ notificationsEnabled: boolean;
89
+ connectedAt: string | null;
90
+ canReceiveDm: boolean;
91
+ isTokenExpired: boolean;
92
+ userTokenExpiresAt: string | null;
93
+ integrationConnectionId: string | null;
94
+ };
95
+ };
96
+ export declare const MyUserPlatformConnectionDocument: Apollo.DocumentNode;
97
+ /**
98
+ * __useMyUserPlatformConnectionQuery__
99
+ *
100
+ * To run a query within a React component, call `useMyUserPlatformConnectionQuery` and pass it any options that fit your needs.
101
+ * When your component renders, `useMyUserPlatformConnectionQuery` returns an object from Apollo Client that contains loading, error, and data properties
102
+ * you can use to render your UI.
103
+ *
104
+ * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
105
+ *
106
+ * @example
107
+ * const { data, loading, error } = useMyUserPlatformConnectionQuery({
108
+ * variables: {
109
+ * channelId: // value for 'channelId'
110
+ * },
111
+ * });
112
+ */
113
+ export declare function useMyUserPlatformConnectionQuery(baseOptions: ApolloReactHooks.QueryHookOptions<Types.MyUserPlatformConnectionQuery, Types.MyUserPlatformConnectionQueryVariables> & ({
114
+ variables: Types.MyUserPlatformConnectionQueryVariables;
115
+ skip?: boolean;
116
+ } | {
117
+ skip: boolean;
118
+ })): ApolloReactHooks.useQuery.Result<Types.MyUserPlatformConnectionQuery, Types.MyUserPlatformConnectionQueryVariables, "empty" | "complete" | "streaming", Types.MyUserPlatformConnectionQueryVariables, undefined>;
119
+ export declare function useMyUserPlatformConnectionLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions<Types.MyUserPlatformConnectionQuery, Types.MyUserPlatformConnectionQueryVariables>): ApolloReactHooks.useLazyQuery.ResultTuple<Types.MyUserPlatformConnectionQuery, Types.MyUserPlatformConnectionQueryVariables, "empty" | "complete" | "streaming", undefined>;
120
+ export declare function useMyUserPlatformConnectionSuspenseQuery(baseOptions?: ApolloReactHooks.SuspenseQueryHookOptions<Types.MyUserPlatformConnectionQuery, Types.MyUserPlatformConnectionQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.MyUserPlatformConnectionQuery, Types.MyUserPlatformConnectionQueryVariables>;
121
+ export declare function useMyUserPlatformConnectionSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<Types.MyUserPlatformConnectionQuery, Types.MyUserPlatformConnectionQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.MyUserPlatformConnectionQuery | undefined, Types.MyUserPlatformConnectionQueryVariables>;
122
+ export type MyUserPlatformConnectionQueryHookResult = ReturnType<typeof useMyUserPlatformConnectionQuery>;
123
+ export type MyUserPlatformConnectionLazyQueryHookResult = ReturnType<typeof useMyUserPlatformConnectionLazyQuery>;
124
+ export type MyUserPlatformConnectionSuspenseQueryHookResult = ReturnType<typeof useMyUserPlatformConnectionSuspenseQuery>;
125
+ export type MyUserPlatformConnectionQueryResult = Apollo.QueryResult<Types.MyUserPlatformConnectionQuery, Types.MyUserPlatformConnectionQueryVariables>;
126
+ export declare const UpdateUserPlatformConnectionNotificationsDocument: Apollo.DocumentNode;
127
+ export type UpdateUserPlatformConnectionNotificationsMutationFn = Apollo.MutationFunction<Types.UpdateUserPlatformConnectionNotificationsMutation, Types.UpdateUserPlatformConnectionNotificationsMutationVariables>;
128
+ /**
129
+ * __useUpdateUserPlatformConnectionNotificationsMutation__
130
+ *
131
+ * To run a mutation, you first call `useUpdateUserPlatformConnectionNotificationsMutation` within a React component and pass it any options that fit your needs.
132
+ * When your component renders, `useUpdateUserPlatformConnectionNotificationsMutation` returns a tuple that includes:
133
+ * - A mutate function that you can call at any time to execute the mutation
134
+ * - An object with fields that represent the current status of the mutation's execution
135
+ *
136
+ * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
137
+ *
138
+ * @example
139
+ * const [updateUserPlatformConnectionNotificationsMutation, { data, loading, error }] = useUpdateUserPlatformConnectionNotificationsMutation({
140
+ * variables: {
141
+ * id: // value for 'id'
142
+ * notificationsEnabled: // value for 'notificationsEnabled'
143
+ * },
144
+ * });
145
+ */
146
+ export declare function useUpdateUserPlatformConnectionNotificationsMutation(baseOptions?: ApolloReactHooks.MutationHookOptions<Types.UpdateUserPlatformConnectionNotificationsMutation, Types.UpdateUserPlatformConnectionNotificationsMutationVariables>): ApolloReactHooks.useMutation.ResultTuple<Types.UpdateUserPlatformConnectionNotificationsMutation, any, Apollo.ApolloCache, undefined>;
147
+ export type UpdateUserPlatformConnectionNotificationsMutationHookResult = ReturnType<typeof useUpdateUserPlatformConnectionNotificationsMutation>;
148
+ export type UpdateUserPlatformConnectionNotificationsMutationResult = Apollo.MutationResult<Types.UpdateUserPlatformConnectionNotificationsMutation>;
149
+ export type UpdateUserPlatformConnectionNotificationsMutationOptions = Apollo.BaseMutationOptions<Types.UpdateUserPlatformConnectionNotificationsMutation, Types.UpdateUserPlatformConnectionNotificationsMutationVariables>;
150
+ export declare const RevokeUserPlatformConnectionDocument: Apollo.DocumentNode;
151
+ export type RevokeUserPlatformConnectionMutationFn = Apollo.MutationFunction<Types.RevokeUserPlatformConnectionMutation, Types.RevokeUserPlatformConnectionMutationVariables>;
152
+ /**
153
+ * __useRevokeUserPlatformConnectionMutation__
154
+ *
155
+ * To run a mutation, you first call `useRevokeUserPlatformConnectionMutation` within a React component and pass it any options that fit your needs.
156
+ * When your component renders, `useRevokeUserPlatformConnectionMutation` returns a tuple that includes:
157
+ * - A mutate function that you can call at any time to execute the mutation
158
+ * - An object with fields that represent the current status of the mutation's execution
159
+ *
160
+ * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
161
+ *
162
+ * @example
163
+ * const [revokeUserPlatformConnectionMutation, { data, loading, error }] = useRevokeUserPlatformConnectionMutation({
164
+ * variables: {
165
+ * id: // value for 'id'
166
+ * },
167
+ * });
168
+ */
169
+ export declare function useRevokeUserPlatformConnectionMutation(baseOptions?: ApolloReactHooks.MutationHookOptions<Types.RevokeUserPlatformConnectionMutation, Types.RevokeUserPlatformConnectionMutationVariables>): ApolloReactHooks.useMutation.ResultTuple<Types.RevokeUserPlatformConnectionMutation, any, Apollo.ApolloCache, undefined>;
170
+ export type RevokeUserPlatformConnectionMutationHookResult = ReturnType<typeof useRevokeUserPlatformConnectionMutation>;
171
+ export type RevokeUserPlatformConnectionMutationResult = Apollo.MutationResult<Types.RevokeUserPlatformConnectionMutation>;
172
+ export type RevokeUserPlatformConnectionMutationOptions = Apollo.BaseMutationOptions<Types.RevokeUserPlatformConnectionMutation, Types.RevokeUserPlatformConnectionMutationVariables>;
173
+ export declare const LinkIntegrationConnectionDocument: Apollo.DocumentNode;
174
+ export type LinkIntegrationConnectionMutationFn = Apollo.MutationFunction<Types.LinkIntegrationConnectionMutation, Types.LinkIntegrationConnectionMutationVariables>;
175
+ /**
176
+ * __useLinkIntegrationConnectionMutation__
177
+ *
178
+ * To run a mutation, you first call `useLinkIntegrationConnectionMutation` within a React component and pass it any options that fit your needs.
179
+ * When your component renders, `useLinkIntegrationConnectionMutation` returns a tuple that includes:
180
+ * - A mutate function that you can call at any time to execute the mutation
181
+ * - An object with fields that represent the current status of the mutation's execution
182
+ *
183
+ * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
184
+ *
185
+ * @example
186
+ * const [linkIntegrationConnectionMutation, { data, loading, error }] = useLinkIntegrationConnectionMutation({
187
+ * variables: {
188
+ * integrationConnectionId: // value for 'integrationConnectionId'
189
+ * channelId: // value for 'channelId'
190
+ * },
191
+ * });
192
+ */
193
+ export declare function useLinkIntegrationConnectionMutation(baseOptions?: ApolloReactHooks.MutationHookOptions<Types.LinkIntegrationConnectionMutation, Types.LinkIntegrationConnectionMutationVariables>): ApolloReactHooks.useMutation.ResultTuple<Types.LinkIntegrationConnectionMutation, any, Apollo.ApolloCache, undefined>;
194
+ export type LinkIntegrationConnectionMutationHookResult = ReturnType<typeof useLinkIntegrationConnectionMutation>;
195
+ export type LinkIntegrationConnectionMutationResult = Apollo.MutationResult<Types.LinkIntegrationConnectionMutation>;
196
+ export type LinkIntegrationConnectionMutationOptions = Apollo.BaseMutationOptions<Types.LinkIntegrationConnectionMutation, Types.LinkIntegrationConnectionMutationVariables>;
197
+ export {};
@@ -1,6 +1,6 @@
1
1
  import { gql as e } from "@apollo/client";
2
2
  import "@apollo/client/react";
3
- //#region src/generated/global-operations.ts
3
+ // src/generated/global-operations.ts
4
4
  var t = e`
5
5
  query MyUserPlatformConnection($channelId: ID!) {
6
6
  myUserPlatformConnection(channelId: $channelId) {
@@ -60,7 +60,6 @@ var t = e`
60
60
  }
61
61
  }
62
62
  `;
63
- //#endregion
64
63
  export { i as LinkIntegrationConnectionDocument, t as MyUserPlatformConnectionDocument, r as RevokeUserPlatformConnectionDocument, n as UpdateUserPlatformConnectionNotificationsDocument };
65
64
 
66
65
  //# sourceMappingURL=global-operations.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"global-operations.js","names":[],"sources":["../../src/generated/global-operations.ts"],"sourcesContent":["// @ts-nocheck\nimport * as Types from './global-types';\n\nimport { gql } from '@apollo/client';\nimport * as Apollo from '@apollo/client';\nimport * as ApolloReactHooks from '@apollo/client/react';\nconst defaultOptions = {} as const;\nexport type MyUserPlatformConnectionQueryVariables = Types.Exact<{\n channelId: Types.Scalars['ID']['input'];\n}>;\n\n\nexport type MyUserPlatformConnectionQuery = { __typename?: 'Query', myUserPlatformConnection?: { __typename?: 'UserPlatformConnection', id: string, channelId: string, platform: Types.ChannelPlatform, externalUserId: string, externalUsername?: string | null, externalDisplayName?: string | null, dmAllowed: boolean, notificationsEnabled: boolean, connectedAt?: string | null, canReceiveDm: boolean, isTokenExpired: boolean, userTokenExpiresAt?: string | null, integrationConnectionId?: string | null } | null };\n\nexport type UpdateUserPlatformConnectionNotificationsMutationVariables = Types.Exact<{\n id: Types.Scalars['ID']['input'];\n notificationsEnabled: Types.Scalars['Boolean']['input'];\n}>;\n\n\nexport type UpdateUserPlatformConnectionNotificationsMutation = { __typename?: 'Mutation', updateUserPlatformConnectionNotifications: { __typename?: 'UserPlatformConnection', id: string, notificationsEnabled: boolean, updatedAt: string } };\n\nexport type RevokeUserPlatformConnectionMutationVariables = Types.Exact<{\n id: Types.Scalars['ID']['input'];\n}>;\n\n\nexport type RevokeUserPlatformConnectionMutation = { __typename?: 'Mutation', revokeUserPlatformConnection: { __typename?: 'UserPlatformConnection', id: string, dmAllowed: boolean, updatedAt: string } };\n\nexport type LinkIntegrationConnectionMutationVariables = Types.Exact<{\n integrationConnectionId: Types.Scalars['ID']['input'];\n channelId: Types.Scalars['ID']['input'];\n}>;\n\n\nexport type LinkIntegrationConnectionMutation = { __typename?: 'Mutation', linkIntegrationConnection: { __typename?: 'UserPlatformConnection', id: string, channelId: string, platform: Types.ChannelPlatform, externalUserId: string, externalUsername?: string | null, externalDisplayName?: string | null, dmAllowed: boolean, notificationsEnabled: boolean, connectedAt?: string | null, canReceiveDm: boolean, isTokenExpired: boolean, userTokenExpiresAt?: string | null, integrationConnectionId?: string | null } };\n\n\nexport const MyUserPlatformConnectionDocument = gql`\n query MyUserPlatformConnection($channelId: ID!) {\n myUserPlatformConnection(channelId: $channelId) {\n id\n channelId\n platform\n externalUserId\n externalUsername\n externalDisplayName\n dmAllowed\n notificationsEnabled\n connectedAt\n canReceiveDm\n isTokenExpired\n userTokenExpiresAt\n integrationConnectionId\n }\n}\n `;\n\n/**\n * __useMyUserPlatformConnectionQuery__\n *\n * To run a query within a React component, call `useMyUserPlatformConnectionQuery` and pass it any options that fit your needs.\n * When your component renders, `useMyUserPlatformConnectionQuery` returns an object from Apollo Client that contains loading, error, and data properties\n * you can use to render your UI.\n *\n * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;\n *\n * @example\n * const { data, loading, error } = useMyUserPlatformConnectionQuery({\n * variables: {\n * channelId: // value for 'channelId'\n * },\n * });\n */\nexport function useMyUserPlatformConnectionQuery(baseOptions: ApolloReactHooks.QueryHookOptions<Types.MyUserPlatformConnectionQuery, Types.MyUserPlatformConnectionQueryVariables> & ({ variables: Types.MyUserPlatformConnectionQueryVariables; skip?: boolean; } | { skip: boolean; }) ) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useQuery<Types.MyUserPlatformConnectionQuery, Types.MyUserPlatformConnectionQueryVariables>(MyUserPlatformConnectionDocument, options);\n }\nexport function useMyUserPlatformConnectionLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions<Types.MyUserPlatformConnectionQuery, Types.MyUserPlatformConnectionQueryVariables>) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useLazyQuery<Types.MyUserPlatformConnectionQuery, Types.MyUserPlatformConnectionQueryVariables>(MyUserPlatformConnectionDocument, options);\n }\n// @ts-ignore\nexport function useMyUserPlatformConnectionSuspenseQuery(baseOptions?: ApolloReactHooks.SuspenseQueryHookOptions<Types.MyUserPlatformConnectionQuery, Types.MyUserPlatformConnectionQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.MyUserPlatformConnectionQuery, Types.MyUserPlatformConnectionQueryVariables>;\nexport function useMyUserPlatformConnectionSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<Types.MyUserPlatformConnectionQuery, Types.MyUserPlatformConnectionQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.MyUserPlatformConnectionQuery | undefined, Types.MyUserPlatformConnectionQueryVariables>;\nexport function useMyUserPlatformConnectionSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<Types.MyUserPlatformConnectionQuery, Types.MyUserPlatformConnectionQueryVariables>) {\n const options = baseOptions === ApolloReactHooks.skipToken ? baseOptions : {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useSuspenseQuery<Types.MyUserPlatformConnectionQuery, Types.MyUserPlatformConnectionQueryVariables>(MyUserPlatformConnectionDocument, options);\n }\nexport type MyUserPlatformConnectionQueryHookResult = ReturnType<typeof useMyUserPlatformConnectionQuery>;\nexport type MyUserPlatformConnectionLazyQueryHookResult = ReturnType<typeof useMyUserPlatformConnectionLazyQuery>;\nexport type MyUserPlatformConnectionSuspenseQueryHookResult = ReturnType<typeof useMyUserPlatformConnectionSuspenseQuery>;\nexport type MyUserPlatformConnectionQueryResult = Apollo.QueryResult<Types.MyUserPlatformConnectionQuery, Types.MyUserPlatformConnectionQueryVariables>;\nexport const UpdateUserPlatformConnectionNotificationsDocument = gql`\n mutation UpdateUserPlatformConnectionNotifications($id: ID!, $notificationsEnabled: Boolean!) {\n updateUserPlatformConnectionNotifications(\n id: $id\n notificationsEnabled: $notificationsEnabled\n ) {\n id\n notificationsEnabled\n updatedAt\n }\n}\n `;\nexport type UpdateUserPlatformConnectionNotificationsMutationFn = Apollo.MutationFunction<Types.UpdateUserPlatformConnectionNotificationsMutation, Types.UpdateUserPlatformConnectionNotificationsMutationVariables>;\n\n/**\n * __useUpdateUserPlatformConnectionNotificationsMutation__\n *\n * To run a mutation, you first call `useUpdateUserPlatformConnectionNotificationsMutation` within a React component and pass it any options that fit your needs.\n * When your component renders, `useUpdateUserPlatformConnectionNotificationsMutation` returns a tuple that includes:\n * - A mutate function that you can call at any time to execute the mutation\n * - An object with fields that represent the current status of the mutation's execution\n *\n * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;\n *\n * @example\n * const [updateUserPlatformConnectionNotificationsMutation, { data, loading, error }] = useUpdateUserPlatformConnectionNotificationsMutation({\n * variables: {\n * id: // value for 'id'\n * notificationsEnabled: // value for 'notificationsEnabled'\n * },\n * });\n */\nexport function useUpdateUserPlatformConnectionNotificationsMutation(baseOptions?: ApolloReactHooks.MutationHookOptions<Types.UpdateUserPlatformConnectionNotificationsMutation, Types.UpdateUserPlatformConnectionNotificationsMutationVariables>) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useMutation<Types.UpdateUserPlatformConnectionNotificationsMutation, Types.UpdateUserPlatformConnectionNotificationsMutationVariables>(UpdateUserPlatformConnectionNotificationsDocument, options);\n }\nexport type UpdateUserPlatformConnectionNotificationsMutationHookResult = ReturnType<typeof useUpdateUserPlatformConnectionNotificationsMutation>;\nexport type UpdateUserPlatformConnectionNotificationsMutationResult = Apollo.MutationResult<Types.UpdateUserPlatformConnectionNotificationsMutation>;\nexport type UpdateUserPlatformConnectionNotificationsMutationOptions = Apollo.BaseMutationOptions<Types.UpdateUserPlatformConnectionNotificationsMutation, Types.UpdateUserPlatformConnectionNotificationsMutationVariables>;\nexport const RevokeUserPlatformConnectionDocument = gql`\n mutation RevokeUserPlatformConnection($id: ID!) {\n revokeUserPlatformConnection(id: $id) {\n id\n dmAllowed\n updatedAt\n }\n}\n `;\nexport type RevokeUserPlatformConnectionMutationFn = Apollo.MutationFunction<Types.RevokeUserPlatformConnectionMutation, Types.RevokeUserPlatformConnectionMutationVariables>;\n\n/**\n * __useRevokeUserPlatformConnectionMutation__\n *\n * To run a mutation, you first call `useRevokeUserPlatformConnectionMutation` within a React component and pass it any options that fit your needs.\n * When your component renders, `useRevokeUserPlatformConnectionMutation` returns a tuple that includes:\n * - A mutate function that you can call at any time to execute the mutation\n * - An object with fields that represent the current status of the mutation's execution\n *\n * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;\n *\n * @example\n * const [revokeUserPlatformConnectionMutation, { data, loading, error }] = useRevokeUserPlatformConnectionMutation({\n * variables: {\n * id: // value for 'id'\n * },\n * });\n */\nexport function useRevokeUserPlatformConnectionMutation(baseOptions?: ApolloReactHooks.MutationHookOptions<Types.RevokeUserPlatformConnectionMutation, Types.RevokeUserPlatformConnectionMutationVariables>) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useMutation<Types.RevokeUserPlatformConnectionMutation, Types.RevokeUserPlatformConnectionMutationVariables>(RevokeUserPlatformConnectionDocument, options);\n }\nexport type RevokeUserPlatformConnectionMutationHookResult = ReturnType<typeof useRevokeUserPlatformConnectionMutation>;\nexport type RevokeUserPlatformConnectionMutationResult = Apollo.MutationResult<Types.RevokeUserPlatformConnectionMutation>;\nexport type RevokeUserPlatformConnectionMutationOptions = Apollo.BaseMutationOptions<Types.RevokeUserPlatformConnectionMutation, Types.RevokeUserPlatformConnectionMutationVariables>;\nexport const LinkIntegrationConnectionDocument = gql`\n mutation LinkIntegrationConnection($integrationConnectionId: ID!, $channelId: ID!) {\n linkIntegrationConnection(\n integrationConnectionId: $integrationConnectionId\n channelId: $channelId\n ) {\n id\n channelId\n platform\n externalUserId\n externalUsername\n externalDisplayName\n dmAllowed\n notificationsEnabled\n connectedAt\n canReceiveDm\n isTokenExpired\n userTokenExpiresAt\n integrationConnectionId\n }\n}\n `;\nexport type LinkIntegrationConnectionMutationFn = Apollo.MutationFunction<Types.LinkIntegrationConnectionMutation, Types.LinkIntegrationConnectionMutationVariables>;\n\n/**\n * __useLinkIntegrationConnectionMutation__\n *\n * To run a mutation, you first call `useLinkIntegrationConnectionMutation` within a React component and pass it any options that fit your needs.\n * When your component renders, `useLinkIntegrationConnectionMutation` returns a tuple that includes:\n * - A mutate function that you can call at any time to execute the mutation\n * - An object with fields that represent the current status of the mutation's execution\n *\n * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;\n *\n * @example\n * const [linkIntegrationConnectionMutation, { data, loading, error }] = useLinkIntegrationConnectionMutation({\n * variables: {\n * integrationConnectionId: // value for 'integrationConnectionId'\n * channelId: // value for 'channelId'\n * },\n * });\n */\nexport function useLinkIntegrationConnectionMutation(baseOptions?: ApolloReactHooks.MutationHookOptions<Types.LinkIntegrationConnectionMutation, Types.LinkIntegrationConnectionMutationVariables>) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useMutation<Types.LinkIntegrationConnectionMutation, Types.LinkIntegrationConnectionMutationVariables>(LinkIntegrationConnectionDocument, options);\n }\nexport type LinkIntegrationConnectionMutationHookResult = ReturnType<typeof useLinkIntegrationConnectionMutation>;\nexport type LinkIntegrationConnectionMutationResult = Apollo.MutationResult<Types.LinkIntegrationConnectionMutation>;\nexport type LinkIntegrationConnectionMutationOptions = Apollo.BaseMutationOptions<Types.LinkIntegrationConnectionMutation, Types.LinkIntegrationConnectionMutationVariables>;"],"mappings":";;;AAsCA,IAAa,IAAmC,CAAG;;;;;;;;;;;;;;;;;;OAuDtC,IAAoD,CAAG;;;;;;;;;;;OAuCvD,IAAuC,CAAG;;;;;;;;OAmC1C,IAAoC,CAAG"}
1
+ {"version":3,"file":"global-operations.js","names":["MyUserPlatformConnectionDocument","UpdateUserPlatformConnectionNotificationsDocument","RevokeUserPlatformConnectionDocument","LinkIntegrationConnectionDocument"],"sources":["../../src/generated/global-operations.ts"],"sourcesContent":["// @ts-nocheck\n/** Internal type. DO NOT USE DIRECTLY. */\ntype Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };\n/** Internal type. DO NOT USE DIRECTLY. */\nexport type Incremental<T> = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never };\nimport * as Types from './global-types';\n\nimport { gql } from '@apollo/client';\nimport * as Apollo from '@apollo/client';\nimport * as ApolloReactHooks from '@apollo/client/react';\nconst defaultOptions = {} as const;\n/** Supported channel platforms for bi-directional communication */\nexport type ChannelPlatform =\n /** Discord server integration */\n | 'DISCORD'\n /** Email via SMTP/IMAP/SendGrid/SES/ACS */\n | 'EMAIL'\n /** Push notifications via FCM/APNs */\n | 'PUSH'\n /** Slack workspace integration */\n | 'SLACK'\n /** SMS via Twilio/AWS SNS */\n | 'SMS'\n /** Microsoft Teams integration */\n | 'TEAMS'\n /** Custom webchat widget */\n | 'WEBCHAT'\n /** Generic HTTP webhooks */\n | 'WEBHOOK'\n /** WhatsApp Business API */\n | 'WHATSAPP';\n\nexport type MyUserPlatformConnectionQueryVariables = Exact<{\n channelId: string | number;\n}>;\n\n\nexport type MyUserPlatformConnectionQuery = { myUserPlatformConnection: { id: string, channelId: string, platform: Types.ChannelPlatform, externalUserId: string, externalUsername: string | null, externalDisplayName: string | null, dmAllowed: boolean, notificationsEnabled: boolean, connectedAt: string | null, canReceiveDm: boolean, isTokenExpired: boolean, userTokenExpiresAt: string | null, integrationConnectionId: string | null } | null };\n\nexport type UpdateUserPlatformConnectionNotificationsMutationVariables = Exact<{\n id: string | number;\n notificationsEnabled: boolean;\n}>;\n\n\nexport type UpdateUserPlatformConnectionNotificationsMutation = { updateUserPlatformConnectionNotifications: { id: string, notificationsEnabled: boolean, updatedAt: string } };\n\nexport type RevokeUserPlatformConnectionMutationVariables = Exact<{\n id: string | number;\n}>;\n\n\nexport type RevokeUserPlatformConnectionMutation = { revokeUserPlatformConnection: { id: string, dmAllowed: boolean, updatedAt: string } };\n\nexport type LinkIntegrationConnectionMutationVariables = Exact<{\n integrationConnectionId: string | number;\n channelId: string | number;\n}>;\n\n\nexport type LinkIntegrationConnectionMutation = { linkIntegrationConnection: { id: string, channelId: string, platform: Types.ChannelPlatform, externalUserId: string, externalUsername: string | null, externalDisplayName: string | null, dmAllowed: boolean, notificationsEnabled: boolean, connectedAt: string | null, canReceiveDm: boolean, isTokenExpired: boolean, userTokenExpiresAt: string | null, integrationConnectionId: string | null } };\n\n\nexport const MyUserPlatformConnectionDocument = gql`\n query MyUserPlatformConnection($channelId: ID!) {\n myUserPlatformConnection(channelId: $channelId) {\n id\n channelId\n platform\n externalUserId\n externalUsername\n externalDisplayName\n dmAllowed\n notificationsEnabled\n connectedAt\n canReceiveDm\n isTokenExpired\n userTokenExpiresAt\n integrationConnectionId\n }\n}\n `;\n\n/**\n * __useMyUserPlatformConnectionQuery__\n *\n * To run a query within a React component, call `useMyUserPlatformConnectionQuery` and pass it any options that fit your needs.\n * When your component renders, `useMyUserPlatformConnectionQuery` returns an object from Apollo Client that contains loading, error, and data properties\n * you can use to render your UI.\n *\n * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;\n *\n * @example\n * const { data, loading, error } = useMyUserPlatformConnectionQuery({\n * variables: {\n * channelId: // value for 'channelId'\n * },\n * });\n */\nexport function useMyUserPlatformConnectionQuery(baseOptions: ApolloReactHooks.QueryHookOptions<Types.MyUserPlatformConnectionQuery, Types.MyUserPlatformConnectionQueryVariables> & ({ variables: Types.MyUserPlatformConnectionQueryVariables; skip?: boolean; } | { skip: boolean; }) ) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useQuery<Types.MyUserPlatformConnectionQuery, Types.MyUserPlatformConnectionQueryVariables>(MyUserPlatformConnectionDocument, options);\n }\nexport function useMyUserPlatformConnectionLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions<Types.MyUserPlatformConnectionQuery, Types.MyUserPlatformConnectionQueryVariables>) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useLazyQuery<Types.MyUserPlatformConnectionQuery, Types.MyUserPlatformConnectionQueryVariables>(MyUserPlatformConnectionDocument, options);\n }\n// @ts-ignore\nexport function useMyUserPlatformConnectionSuspenseQuery(baseOptions?: ApolloReactHooks.SuspenseQueryHookOptions<Types.MyUserPlatformConnectionQuery, Types.MyUserPlatformConnectionQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.MyUserPlatformConnectionQuery, Types.MyUserPlatformConnectionQueryVariables>;\nexport function useMyUserPlatformConnectionSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<Types.MyUserPlatformConnectionQuery, Types.MyUserPlatformConnectionQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.MyUserPlatformConnectionQuery | undefined, Types.MyUserPlatformConnectionQueryVariables>;\nexport function useMyUserPlatformConnectionSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<Types.MyUserPlatformConnectionQuery, Types.MyUserPlatformConnectionQueryVariables>) {\n const options = baseOptions === ApolloReactHooks.skipToken ? baseOptions : {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useSuspenseQuery<Types.MyUserPlatformConnectionQuery, Types.MyUserPlatformConnectionQueryVariables>(MyUserPlatformConnectionDocument, options);\n }\nexport type MyUserPlatformConnectionQueryHookResult = ReturnType<typeof useMyUserPlatformConnectionQuery>;\nexport type MyUserPlatformConnectionLazyQueryHookResult = ReturnType<typeof useMyUserPlatformConnectionLazyQuery>;\nexport type MyUserPlatformConnectionSuspenseQueryHookResult = ReturnType<typeof useMyUserPlatformConnectionSuspenseQuery>;\nexport type MyUserPlatformConnectionQueryResult = Apollo.QueryResult<Types.MyUserPlatformConnectionQuery, Types.MyUserPlatformConnectionQueryVariables>;\nexport const UpdateUserPlatformConnectionNotificationsDocument = gql`\n mutation UpdateUserPlatformConnectionNotifications($id: ID!, $notificationsEnabled: Boolean!) {\n updateUserPlatformConnectionNotifications(\n id: $id\n notificationsEnabled: $notificationsEnabled\n ) {\n id\n notificationsEnabled\n updatedAt\n }\n}\n `;\nexport type UpdateUserPlatformConnectionNotificationsMutationFn = Apollo.MutationFunction<Types.UpdateUserPlatformConnectionNotificationsMutation, Types.UpdateUserPlatformConnectionNotificationsMutationVariables>;\n\n/**\n * __useUpdateUserPlatformConnectionNotificationsMutation__\n *\n * To run a mutation, you first call `useUpdateUserPlatformConnectionNotificationsMutation` within a React component and pass it any options that fit your needs.\n * When your component renders, `useUpdateUserPlatformConnectionNotificationsMutation` returns a tuple that includes:\n * - A mutate function that you can call at any time to execute the mutation\n * - An object with fields that represent the current status of the mutation's execution\n *\n * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;\n *\n * @example\n * const [updateUserPlatformConnectionNotificationsMutation, { data, loading, error }] = useUpdateUserPlatformConnectionNotificationsMutation({\n * variables: {\n * id: // value for 'id'\n * notificationsEnabled: // value for 'notificationsEnabled'\n * },\n * });\n */\nexport function useUpdateUserPlatformConnectionNotificationsMutation(baseOptions?: ApolloReactHooks.MutationHookOptions<Types.UpdateUserPlatformConnectionNotificationsMutation, Types.UpdateUserPlatformConnectionNotificationsMutationVariables>) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useMutation<Types.UpdateUserPlatformConnectionNotificationsMutation, Types.UpdateUserPlatformConnectionNotificationsMutationVariables>(UpdateUserPlatformConnectionNotificationsDocument, options);\n }\nexport type UpdateUserPlatformConnectionNotificationsMutationHookResult = ReturnType<typeof useUpdateUserPlatformConnectionNotificationsMutation>;\nexport type UpdateUserPlatformConnectionNotificationsMutationResult = Apollo.MutationResult<Types.UpdateUserPlatformConnectionNotificationsMutation>;\nexport type UpdateUserPlatformConnectionNotificationsMutationOptions = Apollo.BaseMutationOptions<Types.UpdateUserPlatformConnectionNotificationsMutation, Types.UpdateUserPlatformConnectionNotificationsMutationVariables>;\nexport const RevokeUserPlatformConnectionDocument = gql`\n mutation RevokeUserPlatformConnection($id: ID!) {\n revokeUserPlatformConnection(id: $id) {\n id\n dmAllowed\n updatedAt\n }\n}\n `;\nexport type RevokeUserPlatformConnectionMutationFn = Apollo.MutationFunction<Types.RevokeUserPlatformConnectionMutation, Types.RevokeUserPlatformConnectionMutationVariables>;\n\n/**\n * __useRevokeUserPlatformConnectionMutation__\n *\n * To run a mutation, you first call `useRevokeUserPlatformConnectionMutation` within a React component and pass it any options that fit your needs.\n * When your component renders, `useRevokeUserPlatformConnectionMutation` returns a tuple that includes:\n * - A mutate function that you can call at any time to execute the mutation\n * - An object with fields that represent the current status of the mutation's execution\n *\n * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;\n *\n * @example\n * const [revokeUserPlatformConnectionMutation, { data, loading, error }] = useRevokeUserPlatformConnectionMutation({\n * variables: {\n * id: // value for 'id'\n * },\n * });\n */\nexport function useRevokeUserPlatformConnectionMutation(baseOptions?: ApolloReactHooks.MutationHookOptions<Types.RevokeUserPlatformConnectionMutation, Types.RevokeUserPlatformConnectionMutationVariables>) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useMutation<Types.RevokeUserPlatformConnectionMutation, Types.RevokeUserPlatformConnectionMutationVariables>(RevokeUserPlatformConnectionDocument, options);\n }\nexport type RevokeUserPlatformConnectionMutationHookResult = ReturnType<typeof useRevokeUserPlatformConnectionMutation>;\nexport type RevokeUserPlatformConnectionMutationResult = Apollo.MutationResult<Types.RevokeUserPlatformConnectionMutation>;\nexport type RevokeUserPlatformConnectionMutationOptions = Apollo.BaseMutationOptions<Types.RevokeUserPlatformConnectionMutation, Types.RevokeUserPlatformConnectionMutationVariables>;\nexport const LinkIntegrationConnectionDocument = gql`\n mutation LinkIntegrationConnection($integrationConnectionId: ID!, $channelId: ID!) {\n linkIntegrationConnection(\n integrationConnectionId: $integrationConnectionId\n channelId: $channelId\n ) {\n id\n channelId\n platform\n externalUserId\n externalUsername\n externalDisplayName\n dmAllowed\n notificationsEnabled\n connectedAt\n canReceiveDm\n isTokenExpired\n userTokenExpiresAt\n integrationConnectionId\n }\n}\n `;\nexport type LinkIntegrationConnectionMutationFn = Apollo.MutationFunction<Types.LinkIntegrationConnectionMutation, Types.LinkIntegrationConnectionMutationVariables>;\n\n/**\n * __useLinkIntegrationConnectionMutation__\n *\n * To run a mutation, you first call `useLinkIntegrationConnectionMutation` within a React component and pass it any options that fit your needs.\n * When your component renders, `useLinkIntegrationConnectionMutation` returns a tuple that includes:\n * - A mutate function that you can call at any time to execute the mutation\n * - An object with fields that represent the current status of the mutation's execution\n *\n * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;\n *\n * @example\n * const [linkIntegrationConnectionMutation, { data, loading, error }] = useLinkIntegrationConnectionMutation({\n * variables: {\n * integrationConnectionId: // value for 'integrationConnectionId'\n * channelId: // value for 'channelId'\n * },\n * });\n */\nexport function useLinkIntegrationConnectionMutation(baseOptions?: ApolloReactHooks.MutationHookOptions<Types.LinkIntegrationConnectionMutation, Types.LinkIntegrationConnectionMutationVariables>) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useMutation<Types.LinkIntegrationConnectionMutation, Types.LinkIntegrationConnectionMutationVariables>(LinkIntegrationConnectionDocument, options);\n }\nexport type LinkIntegrationConnectionMutationHookResult = ReturnType<typeof useLinkIntegrationConnectionMutation>;\nexport type LinkIntegrationConnectionMutationResult = Apollo.MutationResult<Types.LinkIntegrationConnectionMutation>;\nexport type LinkIntegrationConnectionMutationOptions = Apollo.BaseMutationOptions<Types.LinkIntegrationConnectionMutation, Types.LinkIntegrationConnectionMutationVariables>;"],"mappings":";;;AA+DA,IAAaA,IAAmC,CAAG;;;;;;;;;;;;;;;;;;OAuDtCC,IAAoD,CAAG;;;;;;;;;;;OAuCvDC,IAAuC,CAAG;;;;;;;;OAmC1CC,IAAoC,CAAG"}