@burdenoff/microfe-subscriberbot 2026.1103.1 → 2026.1105.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 (200) hide show
  1. package/dist/index.js +3 -3
  2. package/dist/stories/Accessibility.stories.d.ts +13 -0
  3. package/dist/stories/Accessibility.stories.d.ts.map +1 -0
  4. package/dist/stories/pages/AgentDetailPage.stories.d.ts.map +1 -1
  5. package/dist/stories/pages/AgentNewPage.stories.d.ts.map +1 -1
  6. package/dist/stories/pages/AgentsListPage.stories.d.ts.map +1 -1
  7. package/dist/stories/pages/BankConnectionsPage.stories.d.ts +1 -0
  8. package/dist/stories/pages/BankConnectionsPage.stories.d.ts.map +1 -1
  9. package/dist/stories/pages/EnterpriseSpendPage.stories.d.ts.map +1 -1
  10. package/dist/stories/pages/InboxPage.stories.d.ts.map +1 -1
  11. package/dist/subscriberbot/admin/AdminDashboardPage.d.ts.map +1 -1
  12. package/dist/subscriberbot/admin/AdminDashboardPage.js +168 -168
  13. package/dist/subscriberbot/admin/AdminDashboardPage.js.map +1 -1
  14. package/dist/subscriberbot/admin/NegotiationDeskPanel.d.ts.map +1 -1
  15. package/dist/subscriberbot/admin/NegotiationDeskPanel.js +116 -116
  16. package/dist/subscriberbot/admin/NegotiationDeskPanel.js.map +1 -1
  17. package/dist/subscriberbot/admin/ProcurementDeskPanel.d.ts.map +1 -1
  18. package/dist/subscriberbot/admin/ProcurementDeskPanel.js +211 -211
  19. package/dist/subscriberbot/admin/ProcurementDeskPanel.js.map +1 -1
  20. package/dist/subscriberbot/components/Modal.d.ts.map +1 -1
  21. package/dist/subscriberbot/components/Modal.js +43 -33
  22. package/dist/subscriberbot/components/Modal.js.map +1 -1
  23. package/dist/subscriberbot/components/PostureOptions.d.ts.map +1 -1
  24. package/dist/subscriberbot/components/PostureOptions.js +10 -10
  25. package/dist/subscriberbot/components/PostureOptions.js.map +1 -1
  26. package/dist/subscriberbot/components/StateViews.d.ts.map +1 -1
  27. package/dist/subscriberbot/components/StateViews.js +45 -37
  28. package/dist/subscriberbot/components/StateViews.js.map +1 -1
  29. package/dist/subscriberbot/components/StatusBadge.d.ts.map +1 -1
  30. package/dist/subscriberbot/components/StatusBadge.js +6 -6
  31. package/dist/subscriberbot/components/StatusBadge.js.map +1 -1
  32. package/dist/subscriberbot/components/decisions/DecisionBanners.js +6 -6
  33. package/dist/subscriberbot/components/decisions/DecisionCard.d.ts.map +1 -1
  34. package/dist/subscriberbot/components/decisions/DecisionCard.js +149 -147
  35. package/dist/subscriberbot/components/decisions/DecisionCard.js.map +1 -1
  36. package/dist/subscriberbot/components/mobile/MobileDashboard.d.ts.map +1 -1
  37. package/dist/subscriberbot/components/mobile/MobileDashboard.js +127 -127
  38. package/dist/subscriberbot/components/mobile/MobileDashboard.js.map +1 -1
  39. package/dist/subscriberbot/components/mobile/MobileRelationshipList.d.ts.map +1 -1
  40. package/dist/subscriberbot/components/mobile/MobileRelationshipList.js +114 -114
  41. package/dist/subscriberbot/components/mobile/MobileRelationshipList.js.map +1 -1
  42. package/dist/subscriberbot/components/mobile/MobileScreen.js +1 -1
  43. package/dist/subscriberbot/components/mobile/MobileScreen.js.map +1 -1
  44. package/dist/subscriberbot/components/negotiations/NegotiationStatusPill.js +4 -4
  45. package/dist/subscriberbot/components/negotiations/NegotiationTimeline.d.ts.map +1 -1
  46. package/dist/subscriberbot/components/negotiations/NegotiationTimeline.js +11 -11
  47. package/dist/subscriberbot/components/negotiations/NegotiationTimeline.js.map +1 -1
  48. package/dist/subscriberbot/components/negotiations/OutcomeForm.d.ts.map +1 -1
  49. package/dist/subscriberbot/components/negotiations/OutcomeForm.js +29 -29
  50. package/dist/subscriberbot/components/negotiations/OutcomeForm.js.map +1 -1
  51. package/dist/subscriberbot/components/procurement/ProcurementOutcomeForm.d.ts.map +1 -1
  52. package/dist/subscriberbot/components/procurement/ProcurementOutcomeForm.js +43 -43
  53. package/dist/subscriberbot/components/procurement/ProcurementOutcomeForm.js.map +1 -1
  54. package/dist/subscriberbot/components/procurement/ProcurementStatusPill.js +4 -4
  55. package/dist/subscriberbot/components/procurement/ProcurementThread.d.ts.map +1 -1
  56. package/dist/subscriberbot/components/procurement/ProcurementThread.js +14 -14
  57. package/dist/subscriberbot/components/procurement/ProcurementThread.js.map +1 -1
  58. package/dist/subscriberbot/components/savings/SavingsCards.d.ts.map +1 -1
  59. package/dist/subscriberbot/components/savings/SavingsCards.js +242 -237
  60. package/dist/subscriberbot/components/savings/SavingsCards.js.map +1 -1
  61. package/dist/subscriberbot/components/viz.d.ts +1 -0
  62. package/dist/subscriberbot/components/viz.d.ts.map +1 -1
  63. package/dist/subscriberbot/components/viz.js +100 -101
  64. package/dist/subscriberbot/components/viz.js.map +1 -1
  65. package/dist/subscriberbot/hooks/index.js +1 -1
  66. package/dist/subscriberbot/hooks/useFormError.d.ts +7 -0
  67. package/dist/subscriberbot/hooks/useFormError.d.ts.map +1 -0
  68. package/dist/subscriberbot/hooks/useFormError.js +28 -0
  69. package/dist/subscriberbot/hooks/useFormError.js.map +1 -0
  70. package/dist/subscriberbot/hooks/useFormatters.d.ts +11 -0
  71. package/dist/subscriberbot/hooks/useFormatters.d.ts.map +1 -0
  72. package/dist/subscriberbot/hooks/useFormatters.js +13 -0
  73. package/dist/subscriberbot/hooks/useFormatters.js.map +1 -0
  74. package/dist/subscriberbot/hooks/useSubscriberBotApi.d.ts.map +1 -1
  75. package/dist/subscriberbot/hooks/useSubscriberBotApi.js +371 -370
  76. package/dist/subscriberbot/hooks/useSubscriberBotApi.js.map +1 -1
  77. package/dist/subscriberbot/hooks/useTr.d.ts.map +1 -1
  78. package/dist/subscriberbot/hooks/useTr.js +1 -1
  79. package/dist/subscriberbot/hooks/useTr.js.map +1 -1
  80. package/dist/subscriberbot/index.js +1 -1
  81. package/dist/subscriberbot/pages/AssetVaultPage.d.ts.map +1 -1
  82. package/dist/subscriberbot/pages/AssetVaultPage.js +124 -124
  83. package/dist/subscriberbot/pages/AssetVaultPage.js.map +1 -1
  84. package/dist/subscriberbot/pages/DashboardPage.d.ts +0 -10
  85. package/dist/subscriberbot/pages/DashboardPage.d.ts.map +1 -1
  86. package/dist/subscriberbot/pages/DashboardPage.js +107 -98
  87. package/dist/subscriberbot/pages/DashboardPage.js.map +1 -1
  88. package/dist/subscriberbot/pages/InboxPage.d.ts +0 -10
  89. package/dist/subscriberbot/pages/InboxPage.d.ts.map +1 -1
  90. package/dist/subscriberbot/pages/InboxPage.js +421 -402
  91. package/dist/subscriberbot/pages/InboxPage.js.map +1 -1
  92. package/dist/subscriberbot/pages/InsightsPage.d.ts.map +1 -1
  93. package/dist/subscriberbot/pages/InsightsPage.js +130 -121
  94. package/dist/subscriberbot/pages/InsightsPage.js.map +1 -1
  95. package/dist/subscriberbot/pages/InvoicesPage.d.ts +0 -12
  96. package/dist/subscriberbot/pages/InvoicesPage.d.ts.map +1 -1
  97. package/dist/subscriberbot/pages/InvoicesPage.js +237 -215
  98. package/dist/subscriberbot/pages/InvoicesPage.js.map +1 -1
  99. package/dist/subscriberbot/pages/RenewalsPage.d.ts.map +1 -1
  100. package/dist/subscriberbot/pages/RenewalsPage.js +303 -295
  101. package/dist/subscriberbot/pages/RenewalsPage.js.map +1 -1
  102. package/dist/subscriberbot/pages/SavingsPage.d.ts.map +1 -1
  103. package/dist/subscriberbot/pages/SavingsPage.js +57 -57
  104. package/dist/subscriberbot/pages/SavingsPage.js.map +1 -1
  105. package/dist/subscriberbot/pages/WorkflowsPage.d.ts +0 -13
  106. package/dist/subscriberbot/pages/WorkflowsPage.d.ts.map +1 -1
  107. package/dist/subscriberbot/pages/WorkflowsPage.js +202 -196
  108. package/dist/subscriberbot/pages/WorkflowsPage.js.map +1 -1
  109. package/dist/subscriberbot/pages/agents/AgentDetailPage.d.ts +0 -18
  110. package/dist/subscriberbot/pages/agents/AgentDetailPage.d.ts.map +1 -1
  111. package/dist/subscriberbot/pages/agents/AgentDetailPage.js +283 -275
  112. package/dist/subscriberbot/pages/agents/AgentDetailPage.js.map +1 -1
  113. package/dist/subscriberbot/pages/agents/AgentNewPage.d.ts +0 -6
  114. package/dist/subscriberbot/pages/agents/AgentNewPage.d.ts.map +1 -1
  115. package/dist/subscriberbot/pages/agents/AgentNewPage.js +85 -77
  116. package/dist/subscriberbot/pages/agents/AgentNewPage.js.map +1 -1
  117. package/dist/subscriberbot/pages/agents/AgentsListPage.d.ts +0 -9
  118. package/dist/subscriberbot/pages/agents/AgentsListPage.d.ts.map +1 -1
  119. package/dist/subscriberbot/pages/agents/AgentsListPage.js +136 -136
  120. package/dist/subscriberbot/pages/agents/AgentsListPage.js.map +1 -1
  121. package/dist/subscriberbot/pages/banking/BankConnectionsPage.d.ts +0 -9
  122. package/dist/subscriberbot/pages/banking/BankConnectionsPage.d.ts.map +1 -1
  123. package/dist/subscriberbot/pages/banking/BankConnectionsPage.js +267 -260
  124. package/dist/subscriberbot/pages/banking/BankConnectionsPage.js.map +1 -1
  125. package/dist/subscriberbot/pages/decisions/DecisionDetailPage.d.ts +0 -10
  126. package/dist/subscriberbot/pages/decisions/DecisionDetailPage.d.ts.map +1 -1
  127. package/dist/subscriberbot/pages/decisions/DecisionDetailPage.js +96 -96
  128. package/dist/subscriberbot/pages/decisions/DecisionDetailPage.js.map +1 -1
  129. package/dist/subscriberbot/pages/decisions/DecisionsPage.d.ts +0 -11
  130. package/dist/subscriberbot/pages/decisions/DecisionsPage.d.ts.map +1 -1
  131. package/dist/subscriberbot/pages/decisions/DecisionsPage.js +46 -46
  132. package/dist/subscriberbot/pages/decisions/DecisionsPage.js.map +1 -1
  133. package/dist/subscriberbot/pages/enterprise/EnterpriseSpendPage.d.ts +0 -11
  134. package/dist/subscriberbot/pages/enterprise/EnterpriseSpendPage.d.ts.map +1 -1
  135. package/dist/subscriberbot/pages/enterprise/EnterpriseSpendPage.js +181 -171
  136. package/dist/subscriberbot/pages/enterprise/EnterpriseSpendPage.js.map +1 -1
  137. package/dist/subscriberbot/pages/negotiations/NegotiationDetailPage.d.ts +0 -9
  138. package/dist/subscriberbot/pages/negotiations/NegotiationDetailPage.d.ts.map +1 -1
  139. package/dist/subscriberbot/pages/negotiations/NegotiationDetailPage.js +164 -164
  140. package/dist/subscriberbot/pages/negotiations/NegotiationDetailPage.js.map +1 -1
  141. package/dist/subscriberbot/pages/negotiations/NegotiationNewPage.d.ts +0 -9
  142. package/dist/subscriberbot/pages/negotiations/NegotiationNewPage.d.ts.map +1 -1
  143. package/dist/subscriberbot/pages/negotiations/NegotiationNewPage.js +197 -181
  144. package/dist/subscriberbot/pages/negotiations/NegotiationNewPage.js.map +1 -1
  145. package/dist/subscriberbot/pages/negotiations/NegotiationsPage.d.ts +0 -8
  146. package/dist/subscriberbot/pages/negotiations/NegotiationsPage.d.ts.map +1 -1
  147. package/dist/subscriberbot/pages/negotiations/NegotiationsPage.js +79 -79
  148. package/dist/subscriberbot/pages/negotiations/NegotiationsPage.js.map +1 -1
  149. package/dist/subscriberbot/pages/procurement/ProcurementDetailPage.d.ts +0 -9
  150. package/dist/subscriberbot/pages/procurement/ProcurementDetailPage.d.ts.map +1 -1
  151. package/dist/subscriberbot/pages/procurement/ProcurementDetailPage.js +147 -147
  152. package/dist/subscriberbot/pages/procurement/ProcurementDetailPage.js.map +1 -1
  153. package/dist/subscriberbot/pages/procurement/ProcurementNewPage.d.ts +0 -10
  154. package/dist/subscriberbot/pages/procurement/ProcurementNewPage.d.ts.map +1 -1
  155. package/dist/subscriberbot/pages/procurement/ProcurementNewPage.js +204 -188
  156. package/dist/subscriberbot/pages/procurement/ProcurementNewPage.js.map +1 -1
  157. package/dist/subscriberbot/pages/procurement/ProcurementPage.d.ts +0 -9
  158. package/dist/subscriberbot/pages/procurement/ProcurementPage.d.ts.map +1 -1
  159. package/dist/subscriberbot/pages/procurement/ProcurementPage.js +80 -80
  160. package/dist/subscriberbot/pages/procurement/ProcurementPage.js.map +1 -1
  161. package/dist/subscriberbot/pages/providers/ProviderDetailPage.d.ts +0 -10
  162. package/dist/subscriberbot/pages/providers/ProviderDetailPage.d.ts.map +1 -1
  163. package/dist/subscriberbot/pages/providers/ProviderDetailPage.js +484 -458
  164. package/dist/subscriberbot/pages/providers/ProviderDetailPage.js.map +1 -1
  165. package/dist/subscriberbot/pages/providers/ProviderNewPage.d.ts +0 -8
  166. package/dist/subscriberbot/pages/providers/ProviderNewPage.d.ts.map +1 -1
  167. package/dist/subscriberbot/pages/providers/ProviderNewPage.js +146 -136
  168. package/dist/subscriberbot/pages/providers/ProviderNewPage.js.map +1 -1
  169. package/dist/subscriberbot/pages/providers/ProvidersListPage.d.ts +0 -10
  170. package/dist/subscriberbot/pages/providers/ProvidersListPage.d.ts.map +1 -1
  171. package/dist/subscriberbot/pages/providers/ProvidersListPage.js +88 -87
  172. package/dist/subscriberbot/pages/providers/ProvidersListPage.js.map +1 -1
  173. package/dist/subscriberbot/pages/relationships/RelationshipDetailPage.d.ts +0 -11
  174. package/dist/subscriberbot/pages/relationships/RelationshipDetailPage.d.ts.map +1 -1
  175. package/dist/subscriberbot/pages/relationships/RelationshipDetailPage.js +520 -490
  176. package/dist/subscriberbot/pages/relationships/RelationshipDetailPage.js.map +1 -1
  177. package/dist/subscriberbot/pages/relationships/RelationshipNewPage.d.ts +0 -8
  178. package/dist/subscriberbot/pages/relationships/RelationshipNewPage.d.ts.map +1 -1
  179. package/dist/subscriberbot/pages/relationships/RelationshipNewPage.js +104 -90
  180. package/dist/subscriberbot/pages/relationships/RelationshipNewPage.js.map +1 -1
  181. package/dist/subscriberbot/pages/relationships/RelationshipsListPage.d.ts +0 -8
  182. package/dist/subscriberbot/pages/relationships/RelationshipsListPage.d.ts.map +1 -1
  183. package/dist/subscriberbot/pages/relationships/RelationshipsListPage.js +97 -96
  184. package/dist/subscriberbot/pages/relationships/RelationshipsListPage.js.map +1 -1
  185. package/dist/subscriberbot/pages/workflows/WorkflowBuilderPage.d.ts.map +1 -1
  186. package/dist/subscriberbot/pages/workflows/WorkflowBuilderPage.js +76 -74
  187. package/dist/subscriberbot/pages/workflows/WorkflowBuilderPage.js.map +1 -1
  188. package/dist/subscriberbot/pages/workflows/workflowBuilderGraph.d.ts +5 -3
  189. package/dist/subscriberbot/pages/workflows/workflowBuilderGraph.d.ts.map +1 -1
  190. package/dist/subscriberbot/pages/workflows/workflowBuilderGraph.js +26 -25
  191. package/dist/subscriberbot/pages/workflows/workflowBuilderGraph.js.map +1 -1
  192. package/dist/subscriberbot/utils/formatters.d.ts +16 -5
  193. package/dist/subscriberbot/utils/formatters.d.ts.map +1 -1
  194. package/dist/subscriberbot/utils/formatters.js +57 -25
  195. package/dist/subscriberbot/utils/formatters.js.map +1 -1
  196. package/dist/subscriberbot/utils/plaidLink.d.ts +2 -1
  197. package/dist/subscriberbot/utils/plaidLink.d.ts.map +1 -1
  198. package/dist/subscriberbot/utils/plaidLink.js +21 -21
  199. package/dist/subscriberbot/utils/plaidLink.js.map +1 -1
  200. package/package.json +1 -1
@@ -1,12 +1,13 @@
1
1
  import { useSubscriberBot as e } from "../context/SubscriberBotContext.js";
2
+ import { useTr as t } from "./useTr.js";
2
3
  import "../context/index.js";
3
- import { useCallback as t, useState as n } from "react";
4
- import { useMutation as r, useQuery as i, useQueryClient as a } from "@tanstack/react-query";
5
- import { graphqlFetch as o } from "@burdenoff/fe-libs/shared/graphql";
6
- import { clearGraphqlFetchResponseCache as s } from "@burdenoff/fe-libs/shared/graphql/fetch";
4
+ import { useCallback as n, useState as r } from "react";
5
+ import { useMutation as i, useQuery as a, useQueryClient as o } from "@tanstack/react-query";
6
+ import { graphqlFetch as s } from "@burdenoff/fe-libs/shared/graphql";
7
+ import { clearGraphqlFetchResponseCache as c } from "@burdenoff/fe-libs/shared/graphql/fetch";
7
8
  //#region src/subscriberbot/hooks/useSubscriberBotApi.ts
8
- var c = async (e, t, n) => {
9
- let r = await o({
9
+ var l = async (e, t, n) => {
10
+ let r = await s({
10
11
  gateway: "workspace",
11
12
  baseUrl: n,
12
13
  query: e,
@@ -15,8 +16,8 @@ var c = async (e, t, n) => {
15
16
  });
16
17
  if (r.errors?.length) throw Error(r.errors[0]?.message ?? "GraphQL request failed");
17
18
  if (!r.data) throw Error("GraphQL response did not include data");
18
- return /^\s*mutation\b/.test(e) && s(), r.data;
19
- }, l = {
19
+ return /^\s*mutation\b/.test(e) && c(), r.data;
20
+ }, u = {
20
21
  relationships: ["subscriberbot", "relationships"],
21
22
  relationship: (e) => [
22
23
  "subscriberbot",
@@ -91,11 +92,11 @@ var c = async (e, t, n) => {
91
92
  "enterprise",
92
93
  "budgets"
93
94
  ]
94
- }, u = "\n id name slug category status description industry region language websiteUrl\n logoFileId tags churnRiskScore vendorHealthScore workspaceId createdAt updatedAt\n", d = "\n id name description providerId amount currency interval features isActive\n workspaceId createdAt updatedAt\n", f = "\n id label kind status amount currency interval autoRenew discoverySource notes\n tags healthScore ownerId providerId planId startedAt renewsAt trialEndsAt\n cancelledAt department workspaceId createdAt updatedAt\n", p = "\n id subject preview category categoryConfidence channelId relationshipId\n externalId actionRequired isRead receivedAt workspaceId createdAt updatedAt\n", m = "\n id number relationshipId status currency subtotal taxAmount total issueDate\n dueDate paidAt paymentInstrumentId workspaceId createdAt updatedAt\n", h = "\n id name description kind status ownerId lastRunAt workspaceId createdAt updatedAt\n", g = "\n id agentId runId relationshipId kind recommendation status rationale confidence\n estimatedSavings currency evidence proposedChange validationErrors invocationRef\n applyInvocationRef appliedAt appliedBy dismissedAt dismissedReason workspaceId\n createdAt updatedAt\n agent { id name kind status }\n relationship { id label status amount currency interval providerId planId }\n", _ = "\n id name description triggerEvent status runCount lastRunAt workspaceId\n createdAt updatedAt\n", v = "\n workflowId valid\n nodes { id workflowId kind label config positionX positionY }\n edges { id workflowId sourceNodeId targetNodeId sourceHandle label }\n issues { code message nodeId edgeId }\n", ee = "\n id name description type relationshipId quota used unit isActive\n workspaceId createdAt updatedAt\n", y = "\n id name type relationshipId secretRef expiresAt workspaceId createdAt\n updatedAt file { id }\n", te = "\n id label type status brand last4 expiryMonth expiryYear isDefault ownerId\n workspaceId createdAt updatedAt\n", b = "\n id label type status address ingestEnabled ownerId verifiedAt workspaceId\n createdAt updatedAt\n", x = "\n id name description action agentId condition isEnabled triggerCount\n lastTriggeredAt workspaceId createdAt updatedAt\n", ne = "\n id providerSlug providerName planName region currency interval amount\n contractSizeSeats sourceKind sourceLabel notes observedAt createdAt\n", S = "\n id workspaceId adapterId submitterWorkspaceId status notes createdAt updatedAt\n", C = "\n id workspaceId listingId reporterWorkspaceId reason status resolutionReason\n createdAt updatedAt\n", re = (t = {}) => {
95
+ }, d = "\n id name slug category status description industry region language websiteUrl\n logoFileId tags churnRiskScore vendorHealthScore workspaceId createdAt updatedAt\n", f = "\n id name description providerId amount currency interval features isActive\n workspaceId createdAt updatedAt\n", p = "\n id label kind status amount currency interval autoRenew discoverySource notes\n tags healthScore ownerId providerId planId startedAt renewsAt trialEndsAt\n cancelledAt department workspaceId createdAt updatedAt\n", m = "\n id subject preview category categoryConfidence channelId relationshipId\n externalId actionRequired isRead receivedAt workspaceId createdAt updatedAt\n", h = "\n id number relationshipId status currency subtotal taxAmount total issueDate\n dueDate paidAt paymentInstrumentId workspaceId createdAt updatedAt\n", g = "\n id name description kind status ownerId lastRunAt workspaceId createdAt updatedAt\n", _ = "\n id agentId runId relationshipId kind recommendation status rationale confidence\n estimatedSavings currency evidence proposedChange validationErrors invocationRef\n applyInvocationRef appliedAt appliedBy dismissedAt dismissedReason workspaceId\n createdAt updatedAt\n agent { id name kind status }\n relationship { id label status amount currency interval providerId planId }\n", v = "\n id name description triggerEvent status runCount lastRunAt workspaceId\n createdAt updatedAt\n", y = "\n workflowId valid\n nodes { id workflowId kind label config positionX positionY }\n edges { id workflowId sourceNodeId targetNodeId sourceHandle label }\n issues { code message nodeId edgeId }\n", ee = "\n id name description type relationshipId quota used unit isActive\n workspaceId createdAt updatedAt\n", b = "\n id name type relationshipId secretRef expiresAt workspaceId createdAt\n updatedAt file { id }\n", te = "\n id label type status brand last4 expiryMonth expiryYear isDefault ownerId\n workspaceId createdAt updatedAt\n", x = "\n id label type status address ingestEnabled ownerId verifiedAt workspaceId\n createdAt updatedAt\n", S = "\n id name description action agentId condition isEnabled triggerCount\n lastTriggeredAt workspaceId createdAt updatedAt\n", ne = "\n id providerSlug providerName planName region currency interval amount\n contractSizeSeats sourceKind sourceLabel notes observedAt createdAt\n", C = "\n id workspaceId adapterId submitterWorkspaceId status notes createdAt updatedAt\n", w = "\n id workspaceId listingId reporterWorkspaceId reason status resolutionReason\n createdAt updatedAt\n", re = (t = {}) => {
95
96
  let { apiGatewayUrl: n } = e();
96
- return i({
97
- queryKey: [...l.relationships, t],
98
- queryFn: async () => (await c(`query SubRelationships(
97
+ return a({
98
+ queryKey: [...u.relationships, t],
99
+ queryFn: async () => (await l(`query SubRelationships(
99
100
  $kind: SubRelationshipKind
100
101
  $status: SubRelationshipStatus
101
102
  $providerId: ID
@@ -112,7 +113,7 @@ var c = async (e, t, n) => {
112
113
  pagination: $pagination
113
114
  ) {
114
115
  items {
115
- ${f}
116
+ ${p}
116
117
  provider { id name category status logoFileId }
117
118
  plan { id name amount currency interval }
118
119
  }
@@ -130,16 +131,16 @@ var c = async (e, t, n) => {
130
131
  }
131
132
  }, n)).subListRelationships
132
133
  });
133
- }, w = (t) => {
134
+ }, T = (t) => {
134
135
  let { apiGatewayUrl: n } = e();
135
- return i({
136
- queryKey: l.relationship(t ?? ""),
136
+ return a({
137
+ queryKey: u.relationship(t ?? ""),
137
138
  enabled: !!t,
138
- queryFn: async () => (await c(`query SubRelationship($id: ID!) {
139
+ queryFn: async () => (await l(`query SubRelationship($id: ID!) {
139
140
  subRelationship(id: $id) {
140
- ${f}
141
- provider { ${u} }
142
- plan { ${d} }
141
+ ${p}
142
+ provider { ${d} }
143
+ plan { ${f} }
143
144
  entitlements {
144
145
  id name description type relationshipId quota used unit isActive
145
146
  workspaceId createdAt updatedAt
@@ -155,141 +156,141 @@ var c = async (e, t, n) => {
155
156
  }
156
157
  }`, { id: t }, n)).subRelationship
157
158
  });
158
- }, T = () => {
159
- let t = a(), { apiGatewayUrl: n } = e();
160
- return r({
161
- mutationFn: async (e) => (await c(`mutation SubCreateRelationship($input: SubCreateRelationshipInput!) {
162
- subCreateRelationship(input: $input) { ${f} }
159
+ }, E = () => {
160
+ let t = o(), { apiGatewayUrl: n } = e();
161
+ return i({
162
+ mutationFn: async (e) => (await l(`mutation SubCreateRelationship($input: SubCreateRelationshipInput!) {
163
+ subCreateRelationship(input: $input) { ${p} }
163
164
  }`, { input: e }, n)).subCreateRelationship,
164
165
  onSuccess: () => {
165
- t.invalidateQueries({ queryKey: l.relationships }), t.invalidateQueries({ queryKey: l.renewals });
166
+ t.invalidateQueries({ queryKey: u.relationships }), t.invalidateQueries({ queryKey: u.renewals });
166
167
  }
167
168
  });
168
- }, E = () => {
169
- let t = a(), { apiGatewayUrl: n } = e();
170
- return r({
171
- mutationFn: async ({ id: e, status: t }) => (await c(`mutation SubTransitionRelationship($id: ID!, $status: SubRelationshipStatus!) {
172
- subTransitionRelationship(id: $id, status: $status) { ${f} }
169
+ }, D = () => {
170
+ let t = o(), { apiGatewayUrl: n } = e();
171
+ return i({
172
+ mutationFn: async ({ id: e, status: t }) => (await l(`mutation SubTransitionRelationship($id: ID!, $status: SubRelationshipStatus!) {
173
+ subTransitionRelationship(id: $id, status: $status) { ${p} }
173
174
  }`, {
174
175
  id: e,
175
176
  status: t
176
177
  }, n)).subTransitionRelationship,
177
178
  onSuccess: (e) => {
178
- t.invalidateQueries({ queryKey: l.relationships }), t.invalidateQueries({ queryKey: l.relationship(e.id) }), t.invalidateQueries({ queryKey: l.renewals });
179
+ t.invalidateQueries({ queryKey: u.relationships }), t.invalidateQueries({ queryKey: u.relationship(e.id) }), t.invalidateQueries({ queryKey: u.renewals });
179
180
  }
180
181
  });
181
- }, D = () => {
182
- let t = a(), { apiGatewayUrl: n } = e();
183
- return r({
184
- mutationFn: async (e) => (await c(`mutation SubCancelRelationship($id: ID!) {
185
- subCancelRelationship(id: $id) { ${f} }
182
+ }, O = () => {
183
+ let t = o(), { apiGatewayUrl: n } = e();
184
+ return i({
185
+ mutationFn: async (e) => (await l(`mutation SubCancelRelationship($id: ID!) {
186
+ subCancelRelationship(id: $id) { ${p} }
186
187
  }`, { id: e }, n)).subCancelRelationship,
187
188
  onSuccess: (e) => {
188
- t.invalidateQueries({ queryKey: l.relationships }), t.invalidateQueries({ queryKey: l.relationship(e.id) }), t.invalidateQueries({ queryKey: l.renewals });
189
+ t.invalidateQueries({ queryKey: u.relationships }), t.invalidateQueries({ queryKey: u.relationship(e.id) }), t.invalidateQueries({ queryKey: u.renewals });
189
190
  }
190
191
  });
191
- }, O = () => {
192
- let t = a(), { apiGatewayUrl: n } = e();
193
- return r({
194
- mutationFn: async ({ id: e, input: t }) => (await c(`mutation SubUpdateRelationship($id: ID!, $input: SubUpdateRelationshipInput!) {
195
- subUpdateRelationship(id: $id, input: $input) { ${f} }
192
+ }, k = () => {
193
+ let t = o(), { apiGatewayUrl: n } = e();
194
+ return i({
195
+ mutationFn: async ({ id: e, input: t }) => (await l(`mutation SubUpdateRelationship($id: ID!, $input: SubUpdateRelationshipInput!) {
196
+ subUpdateRelationship(id: $id, input: $input) { ${p} }
196
197
  }`, {
197
198
  id: e,
198
199
  input: t
199
200
  }, n)).subUpdateRelationship,
200
201
  onSuccess: (e) => {
201
- t.invalidateQueries({ queryKey: l.relationships }), t.invalidateQueries({ queryKey: l.relationship(e.id) }), t.invalidateQueries({ queryKey: l.renewals });
202
+ t.invalidateQueries({ queryKey: u.relationships }), t.invalidateQueries({ queryKey: u.relationship(e.id) }), t.invalidateQueries({ queryKey: u.renewals });
202
203
  }
203
204
  });
204
- }, k = (t = {}) => {
205
+ }, A = (t = {}) => {
205
206
  let { apiGatewayUrl: n } = e();
206
- return i({
207
- queryKey: [...l.renewals, t],
208
- queryFn: async () => (await c("query SubRenewalEvents($relationshipId: ID, $upcomingOnly: Boolean) {\n subListRenewalEvents(relationshipId: $relationshipId, upcomingOnly: $upcomingOnly) {\n items {\n id relationshipId eventType occursAt amount currency detail notified\n workspaceId createdAt updatedAt\n }\n pageInfo { cursor hasMore }\n }\n }", {
207
+ return a({
208
+ queryKey: [...u.renewals, t],
209
+ queryFn: async () => (await l("query SubRenewalEvents($relationshipId: ID, $upcomingOnly: Boolean) {\n subListRenewalEvents(relationshipId: $relationshipId, upcomingOnly: $upcomingOnly) {\n items {\n id relationshipId eventType occursAt amount currency detail notified\n workspaceId createdAt updatedAt\n }\n pageInfo { cursor hasMore }\n }\n }", {
209
210
  relationshipId: t.relationshipId,
210
211
  upcomingOnly: t.upcomingOnly
211
212
  }, n)).subListRenewalEvents.items
212
213
  });
213
- }, A = () => {
214
- let t = a(), { apiGatewayUrl: n } = e();
215
- return r({
216
- mutationFn: async (e) => (await c(`mutation SubCreateEntitlement($input: SubCreateEntitlementInput!) {
214
+ }, j = () => {
215
+ let t = o(), { apiGatewayUrl: n } = e();
216
+ return i({
217
+ mutationFn: async (e) => (await l(`mutation SubCreateEntitlement($input: SubCreateEntitlementInput!) {
217
218
  subCreateEntitlement(input: $input) { ${ee} }
218
219
  }`, { input: e }, n)).subCreateEntitlement,
219
220
  onSuccess: (e) => {
220
- t.invalidateQueries({ queryKey: l.entitlements }), t.invalidateQueries({ queryKey: l.relationship(e.relationshipId) });
221
+ t.invalidateQueries({ queryKey: u.entitlements }), t.invalidateQueries({ queryKey: u.relationship(e.relationshipId) });
221
222
  }
222
223
  });
223
- }, j = () => {
224
+ }, M = () => {
224
225
  let { apiGatewayUrl: t } = e();
225
- return i({
226
- queryKey: [...l.assets, "all"],
227
- queryFn: async () => (await c(`query SubAllAssets {
228
- subListAssets { items { ${y} } pageInfo { cursor hasMore } }
226
+ return a({
227
+ queryKey: [...u.assets, "all"],
228
+ queryFn: async () => (await l(`query SubAllAssets {
229
+ subListAssets { items { ${b} } pageInfo { cursor hasMore } }
229
230
  }`, {}, t)).subListAssets.items
230
231
  });
231
- }, M = () => {
232
- let t = a(), { apiGatewayUrl: n } = e();
233
- return r({
234
- mutationFn: async (e) => (await c(`mutation SubCreateAsset($input: SubCreateAssetInput!) {
235
- subCreateAsset(input: $input) { ${y} }
232
+ }, N = () => {
233
+ let t = o(), { apiGatewayUrl: n } = e();
234
+ return i({
235
+ mutationFn: async (e) => (await l(`mutation SubCreateAsset($input: SubCreateAssetInput!) {
236
+ subCreateAsset(input: $input) { ${b} }
236
237
  }`, { input: e }, n)).subCreateAsset,
237
238
  onSuccess: (e) => {
238
- t.invalidateQueries({ queryKey: l.assets }), t.invalidateQueries({ queryKey: l.relationship(e.relationshipId) });
239
+ t.invalidateQueries({ queryKey: u.assets }), t.invalidateQueries({ queryKey: u.relationship(e.relationshipId) });
239
240
  }
240
241
  });
241
- }, N = "/SubscriberBot/Assets", P = () => {
242
- let { apiGatewayUrl: r } = e(), [i, a] = n(0), [o, s] = n(!1);
242
+ }, P = "/SubscriberBot/Assets", F = () => {
243
+ let i = t(), { apiGatewayUrl: a } = e(), [o, s] = r(0), [c, u] = r(!1);
243
244
  return {
244
- uploadFile: t(async (e) => {
245
- s(!0), a(0);
245
+ uploadFile: n(async (e) => {
246
+ u(!0), s(0);
246
247
  try {
247
- let t = (await c("mutation SubEnsureFolder($path: String!) {\n ensureFolderByPath(path: $path) { id }\n }", { path: N }, r)).ensureFolderByPath?.id;
248
- if (!t) throw Error("Could not resolve the upload folder.");
249
- let n = e.type || "application/octet-stream", i = e.name.lastIndexOf("."), o = i > -1 ? e.name.slice(i + 1) : "bin", s = await c("mutation SubInitiateUpload($input: InitiateUploadInput!) {\n initiateUpload(input: $input) {\n uploadUrl\n session { id }\n }\n }", { input: {
248
+ let t = (await l("mutation SubEnsureFolder($path: String!) {\n ensureFolderByPath(path: $path) { id }\n }", { path: P }, a)).ensureFolderByPath?.id;
249
+ if (!t) throw Error(i("assets.upload.error.folder", "Could not resolve the upload folder."));
250
+ let n = e.type || "application/octet-stream", r = e.name.lastIndexOf("."), o = r > -1 ? e.name.slice(r + 1) : "bin", c = await l("mutation SubInitiateUpload($input: InitiateUploadInput!) {\n initiateUpload(input: $input) {\n uploadUrl\n session { id }\n }\n }", { input: {
250
251
  fileName: e.name,
251
252
  extension: o,
252
253
  mimeType: n,
253
254
  fileSize: String(e.size),
254
255
  folderId: t
255
- } }, r), l = s.initiateUpload?.uploadUrl, u = s.initiateUpload?.session.id;
256
- if (!l || !u) throw Error("The files service did not return an upload URL.");
256
+ } }, a), u = c.initiateUpload?.uploadUrl, d = c.initiateUpload?.session.id;
257
+ if (!u || !d) throw Error(i("assets.upload.error.url", "The files service did not return an upload URL."));
257
258
  await new Promise((t, r) => {
258
- let i = new XMLHttpRequest();
259
- i.open("PUT", l), i.setRequestHeader("Content-Type", n), i.upload.onprogress = (e) => {
260
- e.lengthComputable && a(Math.round(e.loaded / e.total * 100));
261
- }, i.onload = () => {
262
- i.status >= 200 && i.status < 300 ? t() : r(/* @__PURE__ */ Error(`Upload to storage failed (${i.status}).`));
263
- }, i.onerror = () => r(/* @__PURE__ */ Error("Upload to storage failed.")), i.send(e);
259
+ let a = new XMLHttpRequest();
260
+ a.open("PUT", u), a.setRequestHeader("Content-Type", n), a.upload.onprogress = (e) => {
261
+ e.lengthComputable && s(Math.round(e.loaded / e.total * 100));
262
+ }, a.onload = () => {
263
+ a.status >= 200 && a.status < 300 ? t() : r(Error(i("assets.upload.error.status", "Upload to storage failed ({{status}}).", { status: a.status })));
264
+ }, a.onerror = () => r(Error(i("assets.upload.error.storage", "Upload to storage failed."))), a.send(e);
264
265
  });
265
- let d = await c("mutation SubCompleteUpload($input: CompleteUploadInput!) {\n completeUpload(input: $input) {\n fileId\n file { id name }\n }\n }", { input: {
266
- sessionId: u,
266
+ let f = await l("mutation SubCompleteUpload($input: CompleteUploadInput!) {\n completeUpload(input: $input) {\n fileId\n file { id name }\n }\n }", { input: {
267
+ sessionId: d,
267
268
  fileSize: String(e.size),
268
269
  folderId: t
269
- } }, r), f = d.completeUpload?.file?.id ?? d.completeUpload?.fileId;
270
- if (!f) throw Error("The upload could not be finalized.");
270
+ } }, a), p = f.completeUpload?.file?.id ?? f.completeUpload?.fileId;
271
+ if (!p) throw Error(i("assets.upload.error.finalize", "The upload could not be finalized."));
271
272
  return {
272
- fileId: f,
273
- fileName: d.completeUpload?.file?.name ?? e.name
273
+ fileId: p,
274
+ fileName: f.completeUpload?.file?.name ?? e.name
274
275
  };
275
276
  } finally {
276
- s(!1);
277
+ u(!1);
277
278
  }
278
- }, [r]),
279
- progress: i,
280
- isUploading: o
279
+ }, [a, i]),
280
+ progress: o,
281
+ isUploading: c
281
282
  };
282
- }, F = () => {
283
- let { apiGatewayUrl: n } = e();
284
- return t(async (e) => (await c("query SubFileDownloadUrl($id: ID!, $expiresIn: Int) {\n getFileDownloadUrl(id: $id, expiresIn: $expiresIn)\n }", {
283
+ }, I = () => {
284
+ let { apiGatewayUrl: t } = e();
285
+ return n(async (e) => (await l("query SubFileDownloadUrl($id: ID!, $expiresIn: Int) {\n getFileDownloadUrl(id: $id, expiresIn: $expiresIn)\n }", {
285
286
  id: e,
286
287
  expiresIn: 21600
287
- }, n)).getFileDownloadUrl, [n]);
288
- }, I = (t = {}) => {
288
+ }, t)).getFileDownloadUrl, [t]);
289
+ }, L = (t = {}) => {
289
290
  let { apiGatewayUrl: n } = e();
290
- return i({
291
- queryKey: [...l.providers, t],
292
- queryFn: async () => (await c(`query SubProviders(
291
+ return a({
292
+ queryKey: [...u.providers, t],
293
+ queryFn: async () => (await l(`query SubProviders(
293
294
  $category: SubProviderCategory
294
295
  $status: SubProviderStatus
295
296
  $search: String
@@ -301,7 +302,7 @@ var c = async (e, t, n) => {
301
302
  search: $search
302
303
  pagination: $pagination
303
304
  ) {
304
- items { ${u} }
305
+ items { ${d} }
305
306
  pageInfo { cursor hasMore }
306
307
  }
307
308
  }`, {
@@ -314,76 +315,76 @@ var c = async (e, t, n) => {
314
315
  }
315
316
  }, n)).subListProviders
316
317
  });
317
- }, L = (t) => {
318
+ }, R = (t) => {
318
319
  let { apiGatewayUrl: n } = e();
319
- return i({
320
- queryKey: l.provider(t ?? ""),
320
+ return a({
321
+ queryKey: u.provider(t ?? ""),
321
322
  enabled: !!t,
322
- queryFn: async () => (await c(`query SubProvider($id: ID!) {
323
+ queryFn: async () => (await l(`query SubProvider($id: ID!) {
323
324
  subProvider(id: $id) {
324
- ${u}
325
- plans { ${d} }
325
+ ${d}
326
+ plans { ${f} }
326
327
  }
327
328
  }`, { id: t }, n)).subProvider
328
329
  });
329
- }, R = () => {
330
- let t = a(), { apiGatewayUrl: n } = e();
331
- return r({
332
- mutationFn: async (e) => (await c(`mutation SubCreateProvider($input: SubCreateProviderInput!) {
333
- subCreateProvider(input: $input) { ${u} }
330
+ }, z = () => {
331
+ let t = o(), { apiGatewayUrl: n } = e();
332
+ return i({
333
+ mutationFn: async (e) => (await l(`mutation SubCreateProvider($input: SubCreateProviderInput!) {
334
+ subCreateProvider(input: $input) { ${d} }
334
335
  }`, { input: e }, n)).subCreateProvider,
335
336
  onSuccess: () => {
336
- t.invalidateQueries({ queryKey: l.providers });
337
+ t.invalidateQueries({ queryKey: u.providers });
337
338
  }
338
339
  });
339
- }, z = () => {
340
- let t = a(), { apiGatewayUrl: n } = e();
341
- return r({
342
- mutationFn: async ({ id: e, input: t }) => (await c(`mutation SubUpdateProvider($id: ID!, $input: SubUpdateProviderInput!) {
343
- subUpdateProvider(id: $id, input: $input) { ${u} }
340
+ }, B = () => {
341
+ let t = o(), { apiGatewayUrl: n } = e();
342
+ return i({
343
+ mutationFn: async ({ id: e, input: t }) => (await l(`mutation SubUpdateProvider($id: ID!, $input: SubUpdateProviderInput!) {
344
+ subUpdateProvider(id: $id, input: $input) { ${d} }
344
345
  }`, {
345
346
  id: e,
346
347
  input: t
347
348
  }, n)).subUpdateProvider,
348
349
  onSuccess: (e) => {
349
- t.invalidateQueries({ queryKey: l.providers }), t.invalidateQueries({ queryKey: l.provider(e.id) });
350
+ t.invalidateQueries({ queryKey: u.providers }), t.invalidateQueries({ queryKey: u.provider(e.id) });
350
351
  }
351
352
  });
352
- }, B = () => {
353
- let t = a(), { apiGatewayUrl: n } = e();
354
- return r({
355
- mutationFn: async (e) => (await c("mutation SubArchiveProvider($id: ID!) {\n subArchiveProvider(id: $id)\n }", { id: e }, n)).subArchiveProvider,
353
+ }, V = () => {
354
+ let t = o(), { apiGatewayUrl: n } = e();
355
+ return i({
356
+ mutationFn: async (e) => (await l("mutation SubArchiveProvider($id: ID!) {\n subArchiveProvider(id: $id)\n }", { id: e }, n)).subArchiveProvider,
356
357
  onSuccess: () => {
357
- t.invalidateQueries({ queryKey: l.providers });
358
+ t.invalidateQueries({ queryKey: u.providers });
358
359
  }
359
360
  });
360
- }, V = (t) => {
361
+ }, H = (t) => {
361
362
  let { apiGatewayUrl: n } = e();
362
- return i({
363
- queryKey: [...l.plans, t],
363
+ return a({
364
+ queryKey: [...u.plans, t],
364
365
  enabled: !!t,
365
- queryFn: async () => (await c(`query SubPlans($providerId: ID) {
366
- subListPlans(providerId: $providerId) { items { ${d} } pageInfo { cursor hasMore } }
366
+ queryFn: async () => (await l(`query SubPlans($providerId: ID) {
367
+ subListPlans(providerId: $providerId) { items { ${f} } pageInfo { cursor hasMore } }
367
368
  }`, { providerId: t }, n)).subListPlans.items
368
369
  });
369
- }, H = () => {
370
- let t = a(), { apiGatewayUrl: n } = e();
371
- return r({
372
- mutationFn: async (e) => (await c(`mutation SubCreatePlan($input: SubCreatePlanInput!) {
373
- subCreatePlan(input: $input) { ${d} }
370
+ }, U = () => {
371
+ let t = o(), { apiGatewayUrl: n } = e();
372
+ return i({
373
+ mutationFn: async (e) => (await l(`mutation SubCreatePlan($input: SubCreatePlanInput!) {
374
+ subCreatePlan(input: $input) { ${f} }
374
375
  }`, { input: e }, n)).subCreatePlan,
375
376
  onSuccess: (e) => {
376
- t.invalidateQueries({ queryKey: l.plans }), t.invalidateQueries({ queryKey: l.provider(e.providerId) });
377
+ t.invalidateQueries({ queryKey: u.plans }), t.invalidateQueries({ queryKey: u.provider(e.providerId) });
377
378
  }
378
379
  });
379
- }, U = (t) => {
380
+ }, W = (t) => {
380
381
  let { apiGatewayUrl: n } = e();
381
- return i({
382
- queryKey: l.benchmarks(t ?? ""),
382
+ return a({
383
+ queryKey: u.benchmarks(t ?? ""),
383
384
  enabled: !!t,
384
385
  queryFn: async () => {
385
386
  let e = { providerSlug: t ?? void 0 };
386
- return (await c(`query SubBenchmarkDataPoints(
387
+ return (await l(`query SubBenchmarkDataPoints(
387
388
  $filter: SubBenchmarkFilterInput
388
389
  $pagination: PaginationInput
389
390
  ) {
@@ -400,11 +401,11 @@ var c = async (e, t, n) => {
400
401
  }, n)).subListBenchmarkDataPoints.items;
401
402
  }
402
403
  });
403
- }, W = (t = {}) => {
404
+ }, G = (t = {}) => {
404
405
  let { apiGatewayUrl: n } = e();
405
- return i({
406
- queryKey: [...l.inbox, t],
407
- queryFn: async () => (await c(`query SubInboxMessages(
406
+ return a({
407
+ queryKey: [...u.inbox, t],
408
+ queryFn: async () => (await l(`query SubInboxMessages(
408
409
  $category: SubMessageCategory
409
410
  $channelId: ID
410
411
  $relationshipId: ID
@@ -418,7 +419,7 @@ var c = async (e, t, n) => {
418
419
  unreadOnly: $unreadOnly
419
420
  pagination: $pagination
420
421
  ) {
421
- items { ${p} }
422
+ items { ${m} }
422
423
  pageInfo { cursor hasMore }
423
424
  }
424
425
  }`, {
@@ -432,38 +433,38 @@ var c = async (e, t, n) => {
432
433
  }
433
434
  }, n)).subListInboxMessages
434
435
  });
435
- }, G = () => {
436
- let t = a(), { apiGatewayUrl: n } = e();
437
- return r({
438
- mutationFn: async (e) => (await c(`mutation SubMarkMessageRead($id: ID!) {
439
- subMarkMessageRead(id: $id) { ${p} }
436
+ }, K = () => {
437
+ let t = o(), { apiGatewayUrl: n } = e();
438
+ return i({
439
+ mutationFn: async (e) => (await l(`mutation SubMarkMessageRead($id: ID!) {
440
+ subMarkMessageRead(id: $id) { ${m} }
440
441
  }`, { id: e }, n)).subMarkMessageRead,
441
- onSuccess: () => t.invalidateQueries({ queryKey: l.inbox })
442
+ onSuccess: () => t.invalidateQueries({ queryKey: u.inbox })
442
443
  });
443
- }, K = () => {
444
- let t = a(), { apiGatewayUrl: n } = e();
445
- return r({
446
- mutationFn: async (e) => (await c(`mutation SubMarkMessageUnread($id: ID!) {
447
- subMarkMessageUnread(id: $id) { ${p} }
444
+ }, q = () => {
445
+ let t = o(), { apiGatewayUrl: n } = e();
446
+ return i({
447
+ mutationFn: async (e) => (await l(`mutation SubMarkMessageUnread($id: ID!) {
448
+ subMarkMessageUnread(id: $id) { ${m} }
448
449
  }`, { id: e }, n)).subMarkMessageUnread,
449
- onSuccess: () => t.invalidateQueries({ queryKey: l.inbox })
450
+ onSuccess: () => t.invalidateQueries({ queryKey: u.inbox })
450
451
  });
451
- }, q = () => {
452
- let t = a(), { apiGatewayUrl: n } = e();
453
- return r({
454
- mutationFn: async (e) => (await c(`mutation SubIngestMessage($input: SubIngestMessageInput!) {
455
- subIngestMessage(input: $input) { ${p} }
452
+ }, J = () => {
453
+ let t = o(), { apiGatewayUrl: n } = e();
454
+ return i({
455
+ mutationFn: async (e) => (await l(`mutation SubIngestMessage($input: SubIngestMessageInput!) {
456
+ subIngestMessage(input: $input) { ${m} }
456
457
  }`, { input: e }, n)).subIngestMessage,
457
458
  onSuccess: () => {
458
- t.invalidateQueries({ queryKey: l.inbox });
459
+ t.invalidateQueries({ queryKey: u.inbox });
459
460
  }
460
461
  });
461
- }, J = (t = {}, n = {}) => {
462
+ }, Y = (t = {}, n = {}) => {
462
463
  let { apiGatewayUrl: r } = e();
463
- return i({
464
- queryKey: [...l.invoices, t],
464
+ return a({
465
+ queryKey: [...u.invoices, t],
465
466
  enabled: n.enabled ?? !0,
466
- queryFn: async () => (await c(`query SubInvoices(
467
+ queryFn: async () => (await l(`query SubInvoices(
467
468
  $status: SubInvoiceStatus
468
469
  $relationshipId: ID
469
470
  $pagination: PaginationInput
@@ -473,7 +474,7 @@ var c = async (e, t, n) => {
473
474
  relationshipId: $relationshipId
474
475
  pagination: $pagination
475
476
  ) {
476
- items { ${m} }
477
+ items { ${h} }
477
478
  pageInfo { cursor hasMore }
478
479
  }
479
480
  }`, {
@@ -485,83 +486,83 @@ var c = async (e, t, n) => {
485
486
  }
486
487
  }, r)).subListInvoices
487
488
  });
488
- }, Y = () => {
489
- let t = a(), { apiGatewayUrl: n } = e();
490
- return r({
491
- mutationFn: async (e) => (await c(`mutation SubMarkInvoicePaid($id: ID!) {
492
- subMarkInvoicePaid(id: $id) { ${m} }
489
+ }, X = () => {
490
+ let t = o(), { apiGatewayUrl: n } = e();
491
+ return i({
492
+ mutationFn: async (e) => (await l(`mutation SubMarkInvoicePaid($id: ID!) {
493
+ subMarkInvoicePaid(id: $id) { ${h} }
493
494
  }`, { id: e }, n)).subMarkInvoicePaid,
494
495
  onSuccess: () => {
495
- t.invalidateQueries({ queryKey: l.invoices });
496
+ t.invalidateQueries({ queryKey: u.invoices });
496
497
  }
497
498
  });
498
- }, X = () => {
499
- let t = a(), { apiGatewayUrl: n } = e();
500
- return r({
501
- mutationFn: async (e) => (await c(`mutation SubCreateInvoice($input: SubCreateInvoiceInput!) {
502
- subCreateInvoice(input: $input) { ${m} }
499
+ }, ie = () => {
500
+ let t = o(), { apiGatewayUrl: n } = e();
501
+ return i({
502
+ mutationFn: async (e) => (await l(`mutation SubCreateInvoice($input: SubCreateInvoiceInput!) {
503
+ subCreateInvoice(input: $input) { ${h} }
503
504
  }`, { input: e }, n)).subCreateInvoice,
504
505
  onSuccess: () => {
505
- t.invalidateQueries({ queryKey: l.invoices });
506
+ t.invalidateQueries({ queryKey: u.invoices });
506
507
  }
507
508
  });
508
- }, ie = (t) => {
509
+ }, ae = (t) => {
509
510
  let { apiGatewayUrl: n } = e();
510
- return i({
511
- queryKey: [...l.paymentInstruments, t],
512
- queryFn: async () => (await c("query SubPaymentInstruments($ownerId: ID) {\n subListPaymentInstruments(ownerId: $ownerId) {\n items {\n id label type status brand last4 expiryMonth expiryYear isDefault\n ownerId workspaceId createdAt updatedAt\n }\n pageInfo { cursor hasMore }\n }\n }", { ownerId: t }, n)).subListPaymentInstruments.items
511
+ return a({
512
+ queryKey: [...u.paymentInstruments, t],
513
+ queryFn: async () => (await l("query SubPaymentInstruments($ownerId: ID) {\n subListPaymentInstruments(ownerId: $ownerId) {\n items {\n id label type status brand last4 expiryMonth expiryYear isDefault\n ownerId workspaceId createdAt updatedAt\n }\n pageInfo { cursor hasMore }\n }\n }", { ownerId: t }, n)).subListPaymentInstruments.items
513
514
  });
514
- }, ae = () => {
515
- let t = a(), { apiGatewayUrl: n } = e();
516
- return r({
517
- mutationFn: async (e) => (await c(`mutation SubCreatePaymentInstrument($input: SubCreatePaymentInstrumentInput!) {
515
+ }, oe = () => {
516
+ let t = o(), { apiGatewayUrl: n } = e();
517
+ return i({
518
+ mutationFn: async (e) => (await l(`mutation SubCreatePaymentInstrument($input: SubCreatePaymentInstrumentInput!) {
518
519
  subCreatePaymentInstrument(input: $input) { ${te} }
519
520
  }`, { input: e }, n)).subCreatePaymentInstrument,
520
521
  onSuccess: () => {
521
- t.invalidateQueries({ queryKey: l.paymentInstruments });
522
+ t.invalidateQueries({ queryKey: u.paymentInstruments });
522
523
  }
523
524
  });
524
- }, oe = () => {
525
- let t = a(), { apiGatewayUrl: n } = e();
526
- return r({
527
- mutationFn: async (e) => (await c("mutation SubRemovePaymentInstrument($id: ID!) {\n subRemovePaymentInstrument(id: $id)\n }", { id: e }, n)).subRemovePaymentInstrument,
525
+ }, se = () => {
526
+ let t = o(), { apiGatewayUrl: n } = e();
527
+ return i({
528
+ mutationFn: async (e) => (await l("mutation SubRemovePaymentInstrument($id: ID!) {\n subRemovePaymentInstrument(id: $id)\n }", { id: e }, n)).subRemovePaymentInstrument,
528
529
  onSuccess: () => {
529
- t.invalidateQueries({ queryKey: l.paymentInstruments });
530
+ t.invalidateQueries({ queryKey: u.paymentInstruments });
530
531
  }
531
532
  });
532
- }, se = (t) => {
533
+ }, ce = (t) => {
533
534
  let { apiGatewayUrl: n } = e();
534
- return i({
535
- queryKey: [...l.channels, t],
536
- queryFn: async () => (await c("query SubChannels($ownerId: ID) {\n subListChannels(ownerId: $ownerId) {\n items {\n id label type status address ingestEnabled ownerId verifiedAt\n workspaceId createdAt updatedAt\n }\n pageInfo { cursor hasMore }\n }\n }", { ownerId: t }, n)).subListChannels.items
535
+ return a({
536
+ queryKey: [...u.channels, t],
537
+ queryFn: async () => (await l("query SubChannels($ownerId: ID) {\n subListChannels(ownerId: $ownerId) {\n items {\n id label type status address ingestEnabled ownerId verifiedAt\n workspaceId createdAt updatedAt\n }\n pageInfo { cursor hasMore }\n }\n }", { ownerId: t }, n)).subListChannels.items
537
538
  });
538
- }, ce = () => {
539
- let t = a(), { apiGatewayUrl: n } = e();
540
- return r({
541
- mutationFn: async (e) => (await c(`mutation SubCreateChannel($input: SubCreateChannelInput!) {
542
- subCreateChannel(input: $input) { ${b} }
539
+ }, le = () => {
540
+ let t = o(), { apiGatewayUrl: n } = e();
541
+ return i({
542
+ mutationFn: async (e) => (await l(`mutation SubCreateChannel($input: SubCreateChannelInput!) {
543
+ subCreateChannel(input: $input) { ${x} }
543
544
  }`, { input: e }, n)).subCreateChannel,
544
545
  onSuccess: () => {
545
- t.invalidateQueries({ queryKey: l.channels });
546
+ t.invalidateQueries({ queryKey: u.channels });
546
547
  }
547
548
  });
548
- }, le = () => {
549
- let t = a(), { apiGatewayUrl: n } = e();
550
- return r({
551
- mutationFn: async (e) => (await c(`mutation SubVerifyChannel($id: ID!) {
552
- subVerifyChannel(id: $id) { ${b} }
549
+ }, ue = () => {
550
+ let t = o(), { apiGatewayUrl: n } = e();
551
+ return i({
552
+ mutationFn: async (e) => (await l(`mutation SubVerifyChannel($id: ID!) {
553
+ subVerifyChannel(id: $id) { ${x} }
553
554
  }`, { id: e }, n)).subVerifyChannel,
554
555
  onSuccess: () => {
555
- t.invalidateQueries({ queryKey: l.channels });
556
+ t.invalidateQueries({ queryKey: u.channels });
556
557
  }
557
558
  });
558
- }, ue = (t = {}) => {
559
+ }, de = (t = {}) => {
559
560
  let { apiGatewayUrl: n } = e();
560
- return i({
561
- queryKey: [...l.agents, t],
562
- queryFn: async () => (await c(`query SubAgents($kind: SubAgentKind, $status: SubAgentStatus, $ownerId: ID) {
561
+ return a({
562
+ queryKey: [...u.agents, t],
563
+ queryFn: async () => (await l(`query SubAgents($kind: SubAgentKind, $status: SubAgentStatus, $ownerId: ID) {
563
564
  subListAgents(kind: $kind, status: $status, ownerId: $ownerId) {
564
- items { ${h} }
565
+ items { ${g} }
565
566
  pageInfo { cursor hasMore }
566
567
  }
567
568
  }`, {
@@ -570,94 +571,94 @@ var c = async (e, t, n) => {
570
571
  ownerId: t.ownerId
571
572
  }, n)).subListAgents.items
572
573
  });
573
- }, de = (t) => {
574
+ }, fe = (t) => {
574
575
  let { apiGatewayUrl: n } = e();
575
- return i({
576
- queryKey: l.agent(t ?? ""),
576
+ return a({
577
+ queryKey: u.agent(t ?? ""),
577
578
  enabled: !!t,
578
- queryFn: async () => (await c(`query SubAgent($id: ID!) {
579
+ queryFn: async () => (await l(`query SubAgent($id: ID!) {
579
580
  subAgent(id: $id) {
580
- ${h}
581
- policies { ${x} }
581
+ ${g}
582
+ policies { ${S} }
582
583
  }
583
584
  }`, { id: t }, n)).subAgent
584
585
  });
585
- }, fe = () => {
586
- let t = a(), { apiGatewayUrl: n } = e();
587
- return r({
588
- mutationFn: async (e) => (await c(`mutation SubCreateAgent($input: SubCreateAgentInput!) {
589
- subCreateAgent(input: $input) { ${h} }
586
+ }, pe = () => {
587
+ let t = o(), { apiGatewayUrl: n } = e();
588
+ return i({
589
+ mutationFn: async (e) => (await l(`mutation SubCreateAgent($input: SubCreateAgentInput!) {
590
+ subCreateAgent(input: $input) { ${g} }
590
591
  }`, { input: e }, n)).subCreateAgent,
591
592
  onSuccess: () => {
592
- t.invalidateQueries({ queryKey: l.agents });
593
+ t.invalidateQueries({ queryKey: u.agents });
593
594
  }
594
595
  });
595
- }, pe = () => {
596
- let t = a(), { apiGatewayUrl: n } = e();
597
- return r({
598
- mutationFn: async ({ id: e, status: t }) => (await c(`mutation SubSetAgentStatus($id: ID!, $status: SubAgentStatus!) {
599
- subSetAgentStatus(id: $id, status: $status) { ${h} }
596
+ }, me = () => {
597
+ let t = o(), { apiGatewayUrl: n } = e();
598
+ return i({
599
+ mutationFn: async ({ id: e, status: t }) => (await l(`mutation SubSetAgentStatus($id: ID!, $status: SubAgentStatus!) {
600
+ subSetAgentStatus(id: $id, status: $status) { ${g} }
600
601
  }`, {
601
602
  id: e,
602
603
  status: t
603
604
  }, n)).subSetAgentStatus,
604
605
  onSuccess: (e) => {
605
- t.invalidateQueries({ queryKey: l.agents }), t.invalidateQueries({ queryKey: l.agent(e.id) });
606
+ t.invalidateQueries({ queryKey: u.agents }), t.invalidateQueries({ queryKey: u.agent(e.id) });
606
607
  }
607
608
  });
608
- }, me = () => {
609
- let t = a(), { apiGatewayUrl: n } = e();
610
- return r({
611
- mutationFn: async (e) => (await c(`mutation SubCreatePolicy($input: SubCreatePolicyInput!) {
612
- subCreatePolicy(input: $input) { ${x} }
609
+ }, he = () => {
610
+ let t = o(), { apiGatewayUrl: n } = e();
611
+ return i({
612
+ mutationFn: async (e) => (await l(`mutation SubCreatePolicy($input: SubCreatePolicyInput!) {
613
+ subCreatePolicy(input: $input) { ${S} }
613
614
  }`, { input: e }, n)).subCreatePolicy,
614
615
  onSuccess: (e) => {
615
- t.invalidateQueries({ queryKey: l.agents }), t.invalidateQueries({ queryKey: l.agent(e.agentId) });
616
+ t.invalidateQueries({ queryKey: u.agents }), t.invalidateQueries({ queryKey: u.agent(e.agentId) });
616
617
  }
617
618
  });
618
- }, he = 100, ge = (t = {}, n = {}) => {
619
+ }, ge = 100, _e = (t = {}, n = {}) => {
619
620
  let { apiGatewayUrl: r } = e();
620
- return i({
621
- queryKey: [...l.decisions, t],
621
+ return a({
622
+ queryKey: [...u.decisions, t],
622
623
  enabled: n.enabled ?? !0,
623
624
  retry: 1,
624
- queryFn: async () => (await c(`query SubDecisions($filter: SubDecisionFilter, $pagination: PaginationInput) {
625
+ queryFn: async () => (await l(`query SubDecisions($filter: SubDecisionFilter, $pagination: PaginationInput) {
625
626
  subListDecisions(filter: $filter, pagination: $pagination) {
626
- items { ${g} }
627
+ items { ${_} }
627
628
  pageInfo { cursor hasMore }
628
629
  }
629
630
  }`, {
630
631
  filter: t,
631
- pagination: { limit: he }
632
+ pagination: { limit: ge }
632
633
  }, r)).subListDecisions
633
634
  });
634
- }, _e = (t) => {
635
+ }, ve = (t) => {
635
636
  let { apiGatewayUrl: n } = e();
636
- return i({
637
- queryKey: l.decision(t ?? ""),
637
+ return a({
638
+ queryKey: u.decision(t ?? ""),
638
639
  enabled: !!t,
639
640
  retry: 1,
640
- queryFn: async () => (await c(`query SubDecision($id: ID!) {
641
- subDecision(id: $id) { ${g} }
641
+ queryFn: async () => (await l(`query SubDecision($id: ID!) {
642
+ subDecision(id: $id) { ${_} }
642
643
  }`, { id: t }, n)).subDecision
643
644
  });
644
645
  }, Z = (e, t) => {
645
- e.invalidateQueries({ queryKey: l.decisions }), e.invalidateQueries({ queryKey: l.renewals }), t.decisionId && e.invalidateQueries({ queryKey: l.decision(t.decisionId) }), t.agentId && (e.invalidateQueries({ queryKey: l.agent(t.agentId) }), e.invalidateQueries({ queryKey: l.agents })), t.relationshipId && (e.invalidateQueries({ queryKey: l.relationship(t.relationshipId) }), e.invalidateQueries({ queryKey: l.relationships }));
646
- }, ve = () => {
647
- let t = a(), { apiGatewayUrl: n } = e();
648
- return r({
649
- mutationFn: async (e) => (await c("mutation SubRunAgent($id: ID!, $dryRun: Boolean) {\n subRunAgent(id: $id, dryRun: $dryRun) {\n runId agentId kind dryRun evaluated proposed flagged applied truncated\n invocationRef ranAt\n }\n }", {
646
+ e.invalidateQueries({ queryKey: u.decisions }), e.invalidateQueries({ queryKey: u.renewals }), t.decisionId && e.invalidateQueries({ queryKey: u.decision(t.decisionId) }), t.agentId && (e.invalidateQueries({ queryKey: u.agent(t.agentId) }), e.invalidateQueries({ queryKey: u.agents })), t.relationshipId && (e.invalidateQueries({ queryKey: u.relationship(t.relationshipId) }), e.invalidateQueries({ queryKey: u.relationships }));
647
+ }, ye = () => {
648
+ let t = o(), { apiGatewayUrl: n } = e();
649
+ return i({
650
+ mutationFn: async (e) => (await l("mutation SubRunAgent($id: ID!, $dryRun: Boolean) {\n subRunAgent(id: $id, dryRun: $dryRun) {\n runId agentId kind dryRun evaluated proposed flagged applied truncated\n invocationRef ranAt\n }\n }", {
650
651
  id: e,
651
652
  dryRun: !0
652
653
  }, n)).subRunAgent,
653
654
  onSuccess: (e) => Z(t, { agentId: e.agentId })
654
655
  });
655
- }, ye = () => {
656
- let t = a(), { apiGatewayUrl: n } = e();
657
- return r({
658
- mutationFn: async (e) => (await c(`mutation SubApplyDecision($id: ID!) {
656
+ }, be = () => {
657
+ let t = o(), { apiGatewayUrl: n } = e();
658
+ return i({
659
+ mutationFn: async (e) => (await l(`mutation SubApplyDecision($id: ID!) {
659
660
  subApplyDecision(id: $id) {
660
- decision { ${g} }
661
+ decision { ${_} }
661
662
  relationship { id label status }
662
663
  }
663
664
  }`, { id: e }, n)).subApplyDecision,
@@ -666,13 +667,13 @@ var c = async (e, t, n) => {
666
667
  agentId: e.decision.agentId,
667
668
  relationshipId: e.decision.relationshipId
668
669
  }),
669
- onError: () => void t.invalidateQueries({ queryKey: l.decisions })
670
+ onError: () => void t.invalidateQueries({ queryKey: u.decisions })
670
671
  });
671
- }, be = () => {
672
- let t = a(), { apiGatewayUrl: n } = e();
673
- return r({
674
- mutationFn: async ({ id: e, reason: t }) => (await c(`mutation SubDismissDecision($id: ID!, $reason: String) {
675
- subDismissDecision(id: $id, reason: $reason) { ${g} }
672
+ }, xe = () => {
673
+ let t = o(), { apiGatewayUrl: n } = e();
674
+ return i({
675
+ mutationFn: async ({ id: e, reason: t }) => (await l(`mutation SubDismissDecision($id: ID!, $reason: String) {
676
+ subDismissDecision(id: $id, reason: $reason) { ${_} }
676
677
  }`, {
677
678
  id: e,
678
679
  reason: t?.trim() ? t.trim() : void 0
@@ -682,94 +683,94 @@ var c = async (e, t, n) => {
682
683
  agentId: e.agentId
683
684
  })
684
685
  });
685
- }, xe = "\n generatedAt openDecisions truncated\n totals { currency annualSavings fromDecisions fromBundles }\n groups { recommendation currency count annualSavings }\n bundles {\n id type key title currency keepRelationshipId dropRelationshipIds\n annualSpend annualSavings confidence rationale\n members {\n relationshipId label providerId providerName amount currency interval\n annualCost capabilities\n }\n }\n", Se = () => {
686
+ }, Se = "\n generatedAt openDecisions truncated\n totals { currency annualSavings fromDecisions fromBundles }\n groups { recommendation currency count annualSavings }\n bundles {\n id type key title currency keepRelationshipId dropRelationshipIds\n annualSpend annualSavings confidence rationale\n members {\n relationshipId label providerId providerName amount currency interval\n annualCost capabilities\n }\n }\n", Ce = () => {
686
687
  let { apiGatewayUrl: t } = e();
687
- return i({
688
- queryKey: l.savings,
688
+ return a({
689
+ queryKey: u.savings,
689
690
  retry: 1,
690
- queryFn: async () => (await c(`query SubSavingsOverview { subSavingsOverview { ${xe} } }`, {}, t)).subSavingsOverview
691
+ queryFn: async () => (await l(`query SubSavingsOverview { subSavingsOverview { ${Se} } }`, {}, t)).subSavingsOverview
691
692
  });
692
- }, Ce = () => {
693
- let t = a(), { apiGatewayUrl: n } = e();
694
- return r({
695
- mutationFn: async (e) => (await c("mutation SubConsolidateRelationships($input: SubConsolidateRelationshipsInput!) {\n subConsolidateRelationships(input: $input) {\n kept { id label status amount currency interval }\n cancelled { id label status }\n failed { relationshipId message }\n estimatedSavings currency\n }\n }", { input: e }, n)).subConsolidateRelationships,
693
+ }, we = () => {
694
+ let t = o(), { apiGatewayUrl: n } = e();
695
+ return i({
696
+ mutationFn: async (e) => (await l("mutation SubConsolidateRelationships($input: SubConsolidateRelationshipsInput!) {\n subConsolidateRelationships(input: $input) {\n kept { id label status amount currency interval }\n cancelled { id label status }\n failed { relationshipId message }\n estimatedSavings currency\n }\n }", { input: e }, n)).subConsolidateRelationships,
696
697
  onSettled: (e, n, r) => {
697
- t.invalidateQueries({ queryKey: l.decisions }), t.invalidateQueries({ queryKey: l.relationships }), t.invalidateQueries({ queryKey: l.renewals });
698
- for (let e of [r.keepRelationshipId, ...r.cancelRelationshipIds]) t.invalidateQueries({ queryKey: l.relationship(e) });
698
+ t.invalidateQueries({ queryKey: u.decisions }), t.invalidateQueries({ queryKey: u.relationships }), t.invalidateQueries({ queryKey: u.renewals });
699
+ for (let e of [r.keepRelationshipId, ...r.cancelRelationshipIds]) t.invalidateQueries({ queryKey: u.relationship(e) });
699
700
  }
700
701
  });
701
- }, we = () => {
702
- let t = a(), { apiGatewayUrl: n } = e();
703
- return r({
704
- mutationFn: async ({ id: e, reason: t }) => (await c("mutation SubDismissBundle($id: ID!, $reason: String) {\n subDismissBundle(id: $id, reason: $reason)\n }", {
702
+ }, Te = () => {
703
+ let t = o(), { apiGatewayUrl: n } = e();
704
+ return i({
705
+ mutationFn: async ({ id: e, reason: t }) => (await l("mutation SubDismissBundle($id: ID!, $reason: String) {\n subDismissBundle(id: $id, reason: $reason)\n }", {
705
706
  id: e,
706
707
  reason: t?.trim() ? t.trim() : void 0
707
708
  }, n)).subDismissBundle,
708
- onSuccess: () => void t.invalidateQueries({ queryKey: l.savings })
709
+ onSuccess: () => void t.invalidateQueries({ queryKey: u.savings })
709
710
  });
710
- }, Te = (t) => {
711
+ }, Ee = (t) => {
711
712
  let { apiGatewayUrl: n } = e();
712
- return i({
713
- queryKey: [...l.workflows, t],
714
- queryFn: async () => (await c(`query SubWorkflows($status: SubWorkflowStatus) {
715
- subListWorkflows(status: $status) { items { ${_} } pageInfo { cursor hasMore } }
713
+ return a({
714
+ queryKey: [...u.workflows, t],
715
+ queryFn: async () => (await l(`query SubWorkflows($status: SubWorkflowStatus) {
716
+ subListWorkflows(status: $status) { items { ${v} } pageInfo { cursor hasMore } }
716
717
  }`, { status: t }, n)).subListWorkflows.items
717
718
  });
718
- }, Ee = () => {
719
- let t = a(), { apiGatewayUrl: n } = e();
720
- return r({
721
- mutationFn: async (e) => (await c(`mutation SubCreateWorkflow($input: SubCreateWorkflowInput!) {
722
- subCreateWorkflow(input: $input) { ${_} }
719
+ }, De = () => {
720
+ let t = o(), { apiGatewayUrl: n } = e();
721
+ return i({
722
+ mutationFn: async (e) => (await l(`mutation SubCreateWorkflow($input: SubCreateWorkflowInput!) {
723
+ subCreateWorkflow(input: $input) { ${v} }
723
724
  }`, { input: e }, n)).subCreateWorkflow,
724
725
  onSuccess: () => {
725
- t.invalidateQueries({ queryKey: l.workflows });
726
+ t.invalidateQueries({ queryKey: u.workflows });
726
727
  }
727
728
  });
728
- }, De = () => {
729
- let t = a(), { apiGatewayUrl: n } = e();
730
- return r({
731
- mutationFn: async (e) => (await c(`mutation SubActivateWorkflow($id: ID!) {
732
- subActivateWorkflow(id: $id) { ${_} }
729
+ }, Oe = () => {
730
+ let t = o(), { apiGatewayUrl: n } = e();
731
+ return i({
732
+ mutationFn: async (e) => (await l(`mutation SubActivateWorkflow($id: ID!) {
733
+ subActivateWorkflow(id: $id) { ${v} }
733
734
  }`, { id: e }, n)).subActivateWorkflow,
734
735
  onSuccess: () => {
735
- t.invalidateQueries({ queryKey: l.workflows });
736
+ t.invalidateQueries({ queryKey: u.workflows });
736
737
  }
737
738
  });
738
- }, Oe = (t) => {
739
+ }, ke = (t) => {
739
740
  let { apiGatewayUrl: n } = e();
740
- return i({
741
- queryKey: l.workflow(t ?? ""),
741
+ return a({
742
+ queryKey: u.workflow(t ?? ""),
742
743
  enabled: !!t,
743
- queryFn: async () => (await c(`query SubWorkflow($id: ID!) {
744
- subWorkflow(id: $id) { ${_} graph { ${v} } }
744
+ queryFn: async () => (await l(`query SubWorkflow($id: ID!) {
745
+ subWorkflow(id: $id) { ${v} graph { ${y} } }
745
746
  }`, { id: t }, n)).subWorkflow
746
747
  });
747
- }, ke = () => {
748
- let t = a(), { apiGatewayUrl: n } = e();
749
- return r({
750
- mutationFn: async ({ workflowId: e, input: t }) => (await c(`mutation SubSaveWorkflowGraph($workflowId: ID!, $input: SubSaveWorkflowGraphInput!) {
751
- subSaveWorkflowGraph(workflowId: $workflowId, input: $input) { ${v} }
748
+ }, Ae = () => {
749
+ let t = o(), { apiGatewayUrl: n } = e();
750
+ return i({
751
+ mutationFn: async ({ workflowId: e, input: t }) => (await l(`mutation SubSaveWorkflowGraph($workflowId: ID!, $input: SubSaveWorkflowGraphInput!) {
752
+ subSaveWorkflowGraph(workflowId: $workflowId, input: $input) { ${y} }
752
753
  }`, {
753
754
  workflowId: e,
754
755
  input: t
755
756
  }, n)).subSaveWorkflowGraph,
756
- onSuccess: () => void t.invalidateQueries({ queryKey: l.workflows })
757
+ onSuccess: () => void t.invalidateQueries({ queryKey: u.workflows })
757
758
  });
758
- }, Ae = () => {
759
- let t = a(), { apiGatewayUrl: n } = e();
760
- return r({
761
- mutationFn: async (e) => (await c(`mutation SubPauseWorkflow($id: ID!) {
762
- subPauseWorkflow(id: $id) { ${_} }
759
+ }, je = () => {
760
+ let t = o(), { apiGatewayUrl: n } = e();
761
+ return i({
762
+ mutationFn: async (e) => (await l(`mutation SubPauseWorkflow($id: ID!) {
763
+ subPauseWorkflow(id: $id) { ${v} }
763
764
  }`, { id: e }, n)).subPauseWorkflow,
764
- onSuccess: () => void t.invalidateQueries({ queryKey: l.workflows })
765
+ onSuccess: () => void t.invalidateQueries({ queryKey: u.workflows })
765
766
  });
766
- }, je = (t = {}) => {
767
+ }, Me = (t = {}) => {
767
768
  let { apiGatewayUrl: n } = e();
768
- return i({
769
- queryKey: [...l.adapterSubmissions, t],
770
- queryFn: async () => (await c(`query SubAdapterSubmissions($status: SubSubmissionStatus, $pagination: PaginationInput) {
769
+ return a({
770
+ queryKey: [...u.adapterSubmissions, t],
771
+ queryFn: async () => (await l(`query SubAdapterSubmissions($status: SubSubmissionStatus, $pagination: PaginationInput) {
771
772
  subListAdapterSubmissions(status: $status, pagination: $pagination) {
772
- items { ${S} }
773
+ items { ${C} }
773
774
  pageInfo { cursor hasMore }
774
775
  }
775
776
  }`, {
@@ -780,39 +781,39 @@ var c = async (e, t, n) => {
780
781
  }
781
782
  }, n)).subListAdapterSubmissions
782
783
  });
783
- }, Me = () => {
784
- let t = a(), { apiGatewayUrl: n } = e();
785
- return r({
786
- mutationFn: async ({ id: e, notes: t }) => (await c(`mutation SubApproveAdapter($id: ID!, $notes: String) {
787
- subApproveAdapter(id: $id, notes: $notes) { ${S} }
784
+ }, Ne = () => {
785
+ let t = o(), { apiGatewayUrl: n } = e();
786
+ return i({
787
+ mutationFn: async ({ id: e, notes: t }) => (await l(`mutation SubApproveAdapter($id: ID!, $notes: String) {
788
+ subApproveAdapter(id: $id, notes: $notes) { ${C} }
788
789
  }`, {
789
790
  id: e,
790
791
  notes: t
791
792
  }, n)).subApproveAdapter,
792
793
  onSuccess: () => {
793
- t.invalidateQueries({ queryKey: l.adapterSubmissions });
794
+ t.invalidateQueries({ queryKey: u.adapterSubmissions });
794
795
  }
795
796
  });
796
- }, Ne = () => {
797
- let t = a(), { apiGatewayUrl: n } = e();
798
- return r({
799
- mutationFn: async ({ id: e, reason: t }) => (await c(`mutation SubRejectAdapter($id: ID!, $reason: String!) {
800
- subRejectAdapter(id: $id, reason: $reason) { ${S} }
797
+ }, Pe = () => {
798
+ let t = o(), { apiGatewayUrl: n } = e();
799
+ return i({
800
+ mutationFn: async ({ id: e, reason: t }) => (await l(`mutation SubRejectAdapter($id: ID!, $reason: String!) {
801
+ subRejectAdapter(id: $id, reason: $reason) { ${C} }
801
802
  }`, {
802
803
  id: e,
803
804
  reason: t
804
805
  }, n)).subRejectAdapter,
805
806
  onSuccess: () => {
806
- t.invalidateQueries({ queryKey: l.adapterSubmissions });
807
+ t.invalidateQueries({ queryKey: u.adapterSubmissions });
807
808
  }
808
809
  });
809
- }, Pe = (t = {}) => {
810
+ }, Fe = (t = {}) => {
810
811
  let { apiGatewayUrl: n } = e();
811
- return i({
812
- queryKey: [...l.marketplaceReports, t],
813
- queryFn: async () => (await c(`query SubMarketplaceReports($status: SubReportStatus, $pagination: PaginationInput) {
812
+ return a({
813
+ queryKey: [...u.marketplaceReports, t],
814
+ queryFn: async () => (await l(`query SubMarketplaceReports($status: SubReportStatus, $pagination: PaginationInput) {
814
815
  subListMarketplaceReports(status: $status, pagination: $pagination) {
815
- items { ${C} }
816
+ items { ${w} }
816
817
  pageInfo { cursor hasMore }
817
818
  }
818
819
  }`, {
@@ -823,28 +824,28 @@ var c = async (e, t, n) => {
823
824
  }
824
825
  }, n)).subListMarketplaceReports
825
826
  });
826
- }, Fe = () => {
827
- let t = a(), { apiGatewayUrl: n } = e();
828
- return r({
829
- mutationFn: async ({ id: e, action: t, reason: r }) => (await c(`mutation SubModerateListing($id: ID!, $action: SubModerationAction!, $reason: String!) {
830
- subModerateListing(id: $id, action: $action, reason: $reason) { ${C} }
827
+ }, Q = () => {
828
+ let t = o(), { apiGatewayUrl: n } = e();
829
+ return i({
830
+ mutationFn: async ({ id: e, action: t, reason: r }) => (await l(`mutation SubModerateListing($id: ID!, $action: SubModerationAction!, $reason: String!) {
831
+ subModerateListing(id: $id, action: $action, reason: $reason) { ${w} }
831
832
  }`, {
832
833
  id: e,
833
834
  action: t,
834
835
  reason: r
835
836
  }, n)).subModerateListing,
836
837
  onSuccess: () => {
837
- t.invalidateQueries({ queryKey: l.marketplaceReports });
838
+ t.invalidateQueries({ queryKey: u.marketplaceReports });
838
839
  }
839
840
  });
840
- }, Q = "monthlyBudget monthlySpend variance utilizationPct overBudget", Ie = `
841
+ }, $ = "monthlyBudget monthlySpend variance utilizationPct overBudget", Ie = `
841
842
  currency generatedAt monthlySpend annualSpend activeRelationshipCount
842
843
  previousMonthlySpend monthlySpendChangePct
843
844
  trend { at monthlySpend }
844
- budget { ${Q} }
845
+ budget { ${$} }
845
846
  departments {
846
847
  department monthlySpend annualSpend relationshipCount sharePct
847
- budget { ${Q} }
848
+ budget { ${$} }
848
849
  }
849
850
  shadowIt {
850
851
  relationshipId label providerId providerName department discoverySource
@@ -872,31 +873,31 @@ var c = async (e, t, n) => {
872
873
  truncated
873
874
  `, Le = (t) => {
874
875
  let { apiGatewayUrl: n } = e();
875
- return i({
876
- queryKey: [...l.enterpriseSpend, t ?? null],
877
- queryFn: async () => (await c(`query SubEnterpriseSpendDashboard($currency: String) {
876
+ return a({
877
+ queryKey: [...u.enterpriseSpend, t ?? null],
878
+ queryFn: async () => (await l(`query SubEnterpriseSpendDashboard($currency: String) {
878
879
  subEnterpriseSpendDashboard(currency: $currency) { ${Ie} }
879
880
  }`, { currency: t || null }, n)).subEnterpriseSpendDashboard
880
881
  });
881
- }, $ = () => {
882
+ }, Re = () => {
882
883
  let { apiGatewayUrl: t } = e();
883
- return i({
884
- queryKey: l.spendBudgets,
885
- queryFn: async () => (await c("query SubListSpendBudgets {\n subListSpendBudgets { id department currency monthlyAmount updatedAt }\n }", {}, t)).subListSpendBudgets
884
+ return a({
885
+ queryKey: u.spendBudgets,
886
+ queryFn: async () => (await l("query SubListSpendBudgets {\n subListSpendBudgets { id department currency monthlyAmount updatedAt }\n }", {}, t)).subListSpendBudgets
886
887
  });
887
- }, Re = () => {
888
- let t = a(), { apiGatewayUrl: n } = e();
889
- return r({
890
- mutationFn: async (e) => (await c("mutation SubSetSpendBudget($input: SubSetSpendBudgetInput!) {\n subSetSpendBudget(input: $input) { id department currency monthlyAmount updatedAt }\n }", { input: e }, n)).subSetSpendBudget,
888
+ }, ze = () => {
889
+ let t = o(), { apiGatewayUrl: n } = e();
890
+ return i({
891
+ mutationFn: async (e) => (await l("mutation SubSetSpendBudget($input: SubSetSpendBudgetInput!) {\n subSetSpendBudget(input: $input) { id department currency monthlyAmount updatedAt }\n }", { input: e }, n)).subSetSpendBudget,
891
892
  onSuccess: () => {
892
- t.invalidateQueries({ queryKey: l.spendBudgets }), t.invalidateQueries({ queryKey: l.enterpriseSpend });
893
+ t.invalidateQueries({ queryKey: u.spendBudgets }), t.invalidateQueries({ queryKey: u.enterpriseSpend });
893
894
  }
894
895
  });
895
- }, ze = "\n currency generatedAt from to trialWindowDays statuses totalAmount renewalCount\n relationshipCount truncated\n otherCurrencyTotals { currency amount renewalCount }\n months {\n key year month startsAt endsAt amount renewalCount\n otherCurrencyTotals { currency amount renewalCount }\n items {\n relationshipId label providerId providerName kind status interval currency\n renewsAt daysRemaining amount occurrenceCount autoRenew healthScore\n reminderId reminderAt openDecisionId openDecisionKind needsReview\n }\n }\n trialsEndingSoon {\n relationshipId label providerId providerName trialEndsAt daysRemaining amount\n currency interval autoRenew reminderId reminderAt openDecisionId openDecisionKind\n }\n", Be = (t = {}) => {
896
+ }, Be = "\n currency generatedAt from to trialWindowDays statuses totalAmount renewalCount\n relationshipCount truncated\n otherCurrencyTotals { currency amount renewalCount }\n months {\n key year month startsAt endsAt amount renewalCount\n otherCurrencyTotals { currency amount renewalCount }\n items {\n relationshipId label providerId providerName kind status interval currency\n renewsAt daysRemaining amount occurrenceCount autoRenew healthScore\n reminderId reminderAt openDecisionId openDecisionKind needsReview\n }\n }\n trialsEndingSoon {\n relationshipId label providerId providerName trialEndsAt daysRemaining amount\n currency interval autoRenew reminderId reminderAt openDecisionId openDecisionKind\n }\n", Ve = (t = {}) => {
896
897
  let { apiGatewayUrl: n } = e();
897
- return i({
898
- queryKey: [...l.renewalForecast, t],
899
- queryFn: async () => (await c(`query SubRenewalForecast(
898
+ return a({
899
+ queryKey: [...u.renewalForecast, t],
900
+ queryFn: async () => (await l(`query SubRenewalForecast(
900
901
  $from: DateTime
901
902
  $to: DateTime
902
903
  $statuses: [SubRelationshipStatus!]
@@ -909,7 +910,7 @@ var c = async (e, t, n) => {
909
910
  statuses: $statuses
910
911
  trialWindowDays: $trialWindowDays
911
912
  currency: $currency
912
- ) { ${ze} }
913
+ ) { ${Be} }
913
914
  }`, {
914
915
  from: t.from ?? null,
915
916
  to: t.to ?? null,
@@ -918,28 +919,28 @@ var c = async (e, t, n) => {
918
919
  currency: t.currency || null
919
920
  }, n)).subRenewalForecast
920
921
  });
921
- }, Ve = () => {
922
- let t = a(), { apiGatewayUrl: n } = e();
923
- return r({
924
- mutationFn: async (e) => (await c("mutation SubSetRenewalReminder($relationshipId: ID!, $remindAt: DateTime, $note: String) {\n subSetRenewalReminder(relationshipId: $relationshipId, remindAt: $remindAt, note: $note) {\n id relationshipId eventType occursAt amount currency detail notified\n workspaceId createdAt updatedAt\n }\n }", {
922
+ }, He = () => {
923
+ let t = o(), { apiGatewayUrl: n } = e();
924
+ return i({
925
+ mutationFn: async (e) => (await l("mutation SubSetRenewalReminder($relationshipId: ID!, $remindAt: DateTime, $note: String) {\n subSetRenewalReminder(relationshipId: $relationshipId, remindAt: $remindAt, note: $note) {\n id relationshipId eventType occursAt amount currency detail notified\n workspaceId createdAt updatedAt\n }\n }", {
925
926
  relationshipId: e.relationshipId,
926
927
  remindAt: e.remindAt || null,
927
928
  note: e.note || null
928
929
  }, n)).subSetRenewalReminder,
929
930
  onSuccess: () => {
930
- t.invalidateQueries({ queryKey: l.renewals });
931
+ t.invalidateQueries({ queryKey: u.renewals });
931
932
  }
932
933
  });
933
- }, He = () => {
934
- let t = a(), { apiGatewayUrl: n } = e();
935
- return r({
936
- mutationFn: async (e) => (await c("mutation SubCancelRenewalReminder($id: ID!) {\n subCancelRenewalReminder(id: $id)\n }", { id: e }, n)).subCancelRenewalReminder,
934
+ }, Ue = () => {
935
+ let t = o(), { apiGatewayUrl: n } = e();
936
+ return i({
937
+ mutationFn: async (e) => (await l("mutation SubCancelRenewalReminder($id: ID!) {\n subCancelRenewalReminder(id: $id)\n }", { id: e }, n)).subCancelRenewalReminder,
937
938
  onSuccess: () => {
938
- t.invalidateQueries({ queryKey: l.renewals });
939
+ t.invalidateQueries({ queryKey: u.renewals });
939
940
  }
940
941
  });
941
942
  };
942
943
  //#endregion
943
- export { c as subQuery, De as useActivateWorkflow, je as useAdapterSubmissions, de as useAgent, ue as useAgents, j as useAllAssets, ye as useApplyDecision, Me as useApproveAdapter, B as useArchiveProvider, U as useBenchmarkDataPoints, D as useCancelRelationship, He as useCancelRenewalReminder, se as useChannels, Ce as useConsolidateRelationships, fe as useCreateAgent, M as useCreateAsset, ce as useCreateChannel, A as useCreateEntitlement, X as useCreateInvoice, ae as useCreatePaymentInstrument, H as useCreatePlan, me as useCreatePolicy, R as useCreateProvider, T as useCreateRelationship, Ee as useCreateWorkflow, _e as useDecision, ge as useDecisions, we as useDismissBundle, be as useDismissDecision, Le as useEnterpriseSpendDashboard, F as useFileDownloadUrl, W as useInboxMessages, q as useIngestMessage, J as useInvoices, Y as useMarkInvoicePaid, G as useMarkMessageRead, K as useMarkMessageUnread, Pe as useMarketplaceReports, Fe as useModerateListing, Ae as usePauseWorkflow, ie as usePaymentInstruments, V as usePlans, L as useProvider, I as useProviders, Ne as useRejectAdapter, w as useRelationship, re as useRelationships, oe as useRemovePaymentInstrument, k as useRenewalEvents, Be as useRenewalForecast, ve as useRunAgent, ke as useSaveWorkflowGraph, Se as useSavingsOverview, pe as useSetAgentStatus, Ve as useSetRenewalReminder, Re as useSetSpendBudget, $ as useSpendBudgets, E as useTransitionRelationship, z as useUpdateProvider, O as useUpdateRelationship, P as useUploadFile, le as useVerifyChannel, Oe as useWorkflow, Te as useWorkflows };
944
+ export { l as subQuery, Oe as useActivateWorkflow, Me as useAdapterSubmissions, fe as useAgent, de as useAgents, M as useAllAssets, be as useApplyDecision, Ne as useApproveAdapter, V as useArchiveProvider, W as useBenchmarkDataPoints, O as useCancelRelationship, Ue as useCancelRenewalReminder, ce as useChannels, we as useConsolidateRelationships, pe as useCreateAgent, N as useCreateAsset, le as useCreateChannel, j as useCreateEntitlement, ie as useCreateInvoice, oe as useCreatePaymentInstrument, U as useCreatePlan, he as useCreatePolicy, z as useCreateProvider, E as useCreateRelationship, De as useCreateWorkflow, ve as useDecision, _e as useDecisions, Te as useDismissBundle, xe as useDismissDecision, Le as useEnterpriseSpendDashboard, I as useFileDownloadUrl, G as useInboxMessages, J as useIngestMessage, Y as useInvoices, X as useMarkInvoicePaid, K as useMarkMessageRead, q as useMarkMessageUnread, Fe as useMarketplaceReports, Q as useModerateListing, je as usePauseWorkflow, ae as usePaymentInstruments, H as usePlans, R as useProvider, L as useProviders, Pe as useRejectAdapter, T as useRelationship, re as useRelationships, se as useRemovePaymentInstrument, A as useRenewalEvents, Ve as useRenewalForecast, ye as useRunAgent, Ae as useSaveWorkflowGraph, Ce as useSavingsOverview, me as useSetAgentStatus, He as useSetRenewalReminder, ze as useSetSpendBudget, Re as useSpendBudgets, D as useTransitionRelationship, B as useUpdateProvider, k as useUpdateRelationship, F as useUploadFile, ue as useVerifyChannel, ke as useWorkflow, Ee as useWorkflows };
944
945
 
945
946
  //# sourceMappingURL=useSubscriberBotApi.js.map