@burdenoff/microfe-subscriberbot 2026.1105.1 → 2026.1107.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 (50) hide show
  1. package/dist/stories/pages/DashboardPage.stories.d.ts.map +1 -1
  2. package/dist/stories/pages/ProviderDetailPage.stories.d.ts +1 -0
  3. package/dist/stories/pages/ProviderDetailPage.stories.d.ts.map +1 -1
  4. package/dist/stories/support/fixtures.d.ts +3 -1
  5. package/dist/stories/support/fixtures.d.ts.map +1 -1
  6. package/dist/stories/support/handlers.d.ts.map +1 -1
  7. package/dist/subscriberbot/components/PageLayout.d.ts +6 -0
  8. package/dist/subscriberbot/components/PageLayout.d.ts.map +1 -1
  9. package/dist/subscriberbot/components/PageLayout.js +2 -1
  10. package/dist/subscriberbot/components/PageLayout.js.map +1 -1
  11. package/dist/subscriberbot/components/StateViews.d.ts +2 -0
  12. package/dist/subscriberbot/components/StateViews.d.ts.map +1 -1
  13. package/dist/subscriberbot/components/StateViews.js +2 -1
  14. package/dist/subscriberbot/components/StateViews.js.map +1 -1
  15. package/dist/subscriberbot/components/index.d.ts +2 -2
  16. package/dist/subscriberbot/components/index.d.ts.map +1 -1
  17. package/dist/subscriberbot/components/mobile/MobileDashboard.d.ts.map +1 -1
  18. package/dist/subscriberbot/components/mobile/MobileDashboard.js +29 -21
  19. package/dist/subscriberbot/components/mobile/MobileDashboard.js.map +1 -1
  20. package/dist/subscriberbot/components/mobile/MobileScreen.d.ts +3 -0
  21. package/dist/subscriberbot/components/mobile/MobileScreen.d.ts.map +1 -1
  22. package/dist/subscriberbot/components/mobile/MobileScreen.js +4 -2
  23. package/dist/subscriberbot/components/mobile/MobileScreen.js.map +1 -1
  24. package/dist/subscriberbot/components/viz.d.ts +26 -0
  25. package/dist/subscriberbot/components/viz.d.ts.map +1 -1
  26. package/dist/subscriberbot/components/viz.js +99 -1
  27. package/dist/subscriberbot/components/viz.js.map +1 -1
  28. package/dist/subscriberbot/hooks/useSubscriberBotApi.d.ts +3 -1
  29. package/dist/subscriberbot/hooks/useSubscriberBotApi.d.ts.map +1 -1
  30. package/dist/subscriberbot/hooks/useSubscriberBotApi.js +114 -70
  31. package/dist/subscriberbot/hooks/useSubscriberBotApi.js.map +1 -1
  32. package/dist/subscriberbot/pages/DashboardPage.d.ts.map +1 -1
  33. package/dist/subscriberbot/pages/DashboardPage.js +8 -0
  34. package/dist/subscriberbot/pages/DashboardPage.js.map +1 -1
  35. package/dist/subscriberbot/pages/banking/BankConnectionsPage.d.ts.map +1 -1
  36. package/dist/subscriberbot/pages/banking/BankConnectionsPage.js +5 -0
  37. package/dist/subscriberbot/pages/banking/BankConnectionsPage.js.map +1 -1
  38. package/dist/subscriberbot/pages/providers/ProviderDetailPage.d.ts.map +1 -1
  39. package/dist/subscriberbot/pages/providers/ProviderDetailPage.js +306 -301
  40. package/dist/subscriberbot/pages/providers/ProviderDetailPage.js.map +1 -1
  41. package/dist/subscriberbot/pages/providers/ProviderInsights.d.ts +23 -0
  42. package/dist/subscriberbot/pages/providers/ProviderInsights.d.ts.map +1 -0
  43. package/dist/subscriberbot/pages/providers/ProviderInsights.js +293 -0
  44. package/dist/subscriberbot/pages/providers/ProviderInsights.js.map +1 -0
  45. package/dist/subscriberbot/pages/relationships/RelationshipNewPage.d.ts.map +1 -1
  46. package/dist/subscriberbot/pages/relationships/RelationshipNewPage.js +8 -1
  47. package/dist/subscriberbot/pages/relationships/RelationshipNewPage.js.map +1 -1
  48. package/dist/subscriberbot/types/index.d.ts +75 -0
  49. package/dist/subscriberbot/types/index.d.ts.map +1 -1
  50. package/package.json +1 -1
@@ -36,6 +36,19 @@ var l = async (e, t, n) => {
36
36
  "benchmarks",
37
37
  e
38
38
  ],
39
+ providerInsights: ["subscriberbot", "providerInsights"],
40
+ providerPriceHistory: (e) => [
41
+ "subscriberbot",
42
+ "providerInsights",
43
+ "priceHistory",
44
+ e
45
+ ],
46
+ providerAlternatives: (e) => [
47
+ "subscriberbot",
48
+ "providerInsights",
49
+ "alternatives",
50
+ e
51
+ ],
39
52
  inbox: ["subscriberbot", "inbox"],
40
53
  invoices: ["subscriberbot", "invoices"],
41
54
  paymentInstruments: ["subscriberbot", "payment-instruments"],
@@ -92,7 +105,7 @@ var l = async (e, t, n) => {
92
105
  "enterprise",
93
106
  "budgets"
94
107
  ]
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 = {}) => {
108
+ }, 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", C = "\n id providerSlug providerName planName region currency interval amount\n contractSizeSeats sourceKind sourceLabel notes observedAt createdAt\n", w = "\n id workspaceId adapterId submitterWorkspaceId status notes createdAt updatedAt\n", T = "\n id workspaceId listingId reporterWorkspaceId reason status resolutionReason\n createdAt updatedAt\n", ne = (t = {}) => {
96
109
  let { apiGatewayUrl: n } = e();
97
110
  return a({
98
111
  queryKey: [...u.relationships, t],
@@ -131,7 +144,7 @@ var l = async (e, t, n) => {
131
144
  }
132
145
  }, n)).subListRelationships
133
146
  });
134
- }, T = (t) => {
147
+ }, re = (t) => {
135
148
  let { apiGatewayUrl: n } = e();
136
149
  return a({
137
150
  queryKey: u.relationship(t ?? ""),
@@ -163,7 +176,7 @@ var l = async (e, t, n) => {
163
176
  subCreateRelationship(input: $input) { ${p} }
164
177
  }`, { input: e }, n)).subCreateRelationship,
165
178
  onSuccess: () => {
166
- t.invalidateQueries({ queryKey: u.relationships }), t.invalidateQueries({ queryKey: u.renewals });
179
+ t.invalidateQueries({ queryKey: u.relationships }), t.invalidateQueries({ queryKey: u.providerInsights }), t.invalidateQueries({ queryKey: u.renewals });
167
180
  }
168
181
  });
169
182
  }, D = () => {
@@ -176,7 +189,7 @@ var l = async (e, t, n) => {
176
189
  status: t
177
190
  }, n)).subTransitionRelationship,
178
191
  onSuccess: (e) => {
179
- t.invalidateQueries({ queryKey: u.relationships }), t.invalidateQueries({ queryKey: u.relationship(e.id) }), t.invalidateQueries({ queryKey: u.renewals });
192
+ t.invalidateQueries({ queryKey: u.relationships }), t.invalidateQueries({ queryKey: u.relationship(e.id) }), t.invalidateQueries({ queryKey: u.providerInsights }), t.invalidateQueries({ queryKey: u.renewals });
180
193
  }
181
194
  });
182
195
  }, O = () => {
@@ -186,7 +199,7 @@ var l = async (e, t, n) => {
186
199
  subCancelRelationship(id: $id) { ${p} }
187
200
  }`, { id: e }, n)).subCancelRelationship,
188
201
  onSuccess: (e) => {
189
- t.invalidateQueries({ queryKey: u.relationships }), t.invalidateQueries({ queryKey: u.relationship(e.id) }), t.invalidateQueries({ queryKey: u.renewals });
202
+ t.invalidateQueries({ queryKey: u.relationships }), t.invalidateQueries({ queryKey: u.providerInsights }), t.invalidateQueries({ queryKey: u.relationship(e.id) }), t.invalidateQueries({ queryKey: u.renewals });
190
203
  }
191
204
  });
192
205
  }, k = () => {
@@ -199,7 +212,7 @@ var l = async (e, t, n) => {
199
212
  input: t
200
213
  }, n)).subUpdateRelationship,
201
214
  onSuccess: (e) => {
202
- t.invalidateQueries({ queryKey: u.relationships }), t.invalidateQueries({ queryKey: u.relationship(e.id) }), t.invalidateQueries({ queryKey: u.renewals });
215
+ t.invalidateQueries({ queryKey: u.relationships }), t.invalidateQueries({ queryKey: u.providerInsights }), t.invalidateQueries({ queryKey: u.relationship(e.id) }), t.invalidateQueries({ queryKey: u.renewals });
203
216
  }
204
217
  });
205
218
  }, A = (t = {}) => {
@@ -334,7 +347,7 @@ var l = async (e, t, n) => {
334
347
  subCreateProvider(input: $input) { ${d} }
335
348
  }`, { input: e }, n)).subCreateProvider,
336
349
  onSuccess: () => {
337
- t.invalidateQueries({ queryKey: u.providers });
350
+ t.invalidateQueries({ queryKey: u.providers }), t.invalidateQueries({ queryKey: u.providerInsights });
338
351
  }
339
352
  });
340
353
  }, B = () => {
@@ -347,7 +360,7 @@ var l = async (e, t, n) => {
347
360
  input: t
348
361
  }, n)).subUpdateProvider,
349
362
  onSuccess: (e) => {
350
- t.invalidateQueries({ queryKey: u.providers }), t.invalidateQueries({ queryKey: u.provider(e.id) });
363
+ t.invalidateQueries({ queryKey: u.providers }), t.invalidateQueries({ queryKey: u.providerInsights }), t.invalidateQueries({ queryKey: u.provider(e.id) });
351
364
  }
352
365
  });
353
366
  }, V = () => {
@@ -355,7 +368,7 @@ var l = async (e, t, n) => {
355
368
  return i({
356
369
  mutationFn: async (e) => (await l("mutation SubArchiveProvider($id: ID!) {\n subArchiveProvider(id: $id)\n }", { id: e }, n)).subArchiveProvider,
357
370
  onSuccess: () => {
358
- t.invalidateQueries({ queryKey: u.providers });
371
+ t.invalidateQueries({ queryKey: u.providers }), t.invalidateQueries({ queryKey: u.providerInsights });
359
372
  }
360
373
  });
361
374
  }, H = (t) => {
@@ -374,10 +387,41 @@ var l = async (e, t, n) => {
374
387
  subCreatePlan(input: $input) { ${f} }
375
388
  }`, { input: e }, n)).subCreatePlan,
376
389
  onSuccess: (e) => {
377
- t.invalidateQueries({ queryKey: u.plans }), t.invalidateQueries({ queryKey: u.provider(e.providerId) });
390
+ t.invalidateQueries({ queryKey: u.plans }), t.invalidateQueries({ queryKey: u.providerInsights }), t.invalidateQueries({ queryKey: u.provider(e.providerId) });
378
391
  }
379
392
  });
380
- }, W = (t) => {
393
+ }, W = "\n id source observedAt amount currency interval monthlyAmount relationshipId label\n", G = (t) => {
394
+ let { apiGatewayUrl: n } = e();
395
+ return a({
396
+ queryKey: u.providerPriceHistory(t ?? ""),
397
+ enabled: !!t,
398
+ queryFn: async () => (await l(`query SubProviderPriceHistory($providerId: ID!) {
399
+ subProviderPriceHistory(providerId: $providerId) {
400
+ providerId
401
+ points { ${W} }
402
+ series {
403
+ key label source currency interval relationshipId
404
+ firstMonthlyAmount latestMonthlyAmount changePercent
405
+ points { ${W} }
406
+ }
407
+ summary {
408
+ currency pointCount minMonthlyAmount maxMonthlyAmount
409
+ priceChangeCount latestChangePercent latestChangeAt
410
+ }
411
+ }
412
+ }`, { providerId: t }, n)).subProviderPriceHistory
413
+ });
414
+ }, K = (t, n = 5) => {
415
+ let { apiGatewayUrl: r } = e();
416
+ return a({
417
+ queryKey: [...u.providerAlternatives(t ?? ""), n],
418
+ enabled: !!t,
419
+ queryFn: async () => (await l("query SubProviderAlternatives($providerId: ID!, $limit: Int) {\n subProviderAlternatives(providerId: $providerId, limit: $limit) {\n providerId name matchReason sharedCapabilities capabilities\n priceRanges { currency minMonthlyAmount maxMonthlyAmount count basis }\n activeRelationshipCount trackedRelationshipCount\n relationships { id label status amount currency interval }\n provider { id name category status }\n }\n }", {
420
+ providerId: t,
421
+ limit: n
422
+ }, r)).subProviderAlternatives
423
+ });
424
+ }, q = (t) => {
381
425
  let { apiGatewayUrl: n } = e();
382
426
  return a({
383
427
  queryKey: u.benchmarks(t ?? ""),
@@ -389,7 +433,7 @@ var l = async (e, t, n) => {
389
433
  $pagination: PaginationInput
390
434
  ) {
391
435
  subListBenchmarkDataPoints(filter: $filter, pagination: $pagination) {
392
- items { ${ne} }
436
+ items { ${C} }
393
437
  pageInfo { cursor hasMore }
394
438
  }
395
439
  }`, {
@@ -401,7 +445,7 @@ var l = async (e, t, n) => {
401
445
  }, n)).subListBenchmarkDataPoints.items;
402
446
  }
403
447
  });
404
- }, G = (t = {}) => {
448
+ }, J = (t = {}) => {
405
449
  let { apiGatewayUrl: n } = e();
406
450
  return a({
407
451
  queryKey: [...u.inbox, t],
@@ -433,7 +477,7 @@ var l = async (e, t, n) => {
433
477
  }
434
478
  }, n)).subListInboxMessages
435
479
  });
436
- }, K = () => {
480
+ }, Y = () => {
437
481
  let t = o(), { apiGatewayUrl: n } = e();
438
482
  return i({
439
483
  mutationFn: async (e) => (await l(`mutation SubMarkMessageRead($id: ID!) {
@@ -441,7 +485,7 @@ var l = async (e, t, n) => {
441
485
  }`, { id: e }, n)).subMarkMessageRead,
442
486
  onSuccess: () => t.invalidateQueries({ queryKey: u.inbox })
443
487
  });
444
- }, q = () => {
488
+ }, X = () => {
445
489
  let t = o(), { apiGatewayUrl: n } = e();
446
490
  return i({
447
491
  mutationFn: async (e) => (await l(`mutation SubMarkMessageUnread($id: ID!) {
@@ -449,7 +493,7 @@ var l = async (e, t, n) => {
449
493
  }`, { id: e }, n)).subMarkMessageUnread,
450
494
  onSuccess: () => t.invalidateQueries({ queryKey: u.inbox })
451
495
  });
452
- }, J = () => {
496
+ }, ie = () => {
453
497
  let t = o(), { apiGatewayUrl: n } = e();
454
498
  return i({
455
499
  mutationFn: async (e) => (await l(`mutation SubIngestMessage($input: SubIngestMessageInput!) {
@@ -459,7 +503,7 @@ var l = async (e, t, n) => {
459
503
  t.invalidateQueries({ queryKey: u.inbox });
460
504
  }
461
505
  });
462
- }, Y = (t = {}, n = {}) => {
506
+ }, ae = (t = {}, n = {}) => {
463
507
  let { apiGatewayUrl: r } = e();
464
508
  return a({
465
509
  queryKey: [...u.invoices, t],
@@ -486,33 +530,33 @@ var l = async (e, t, n) => {
486
530
  }
487
531
  }, r)).subListInvoices
488
532
  });
489
- }, X = () => {
533
+ }, oe = () => {
490
534
  let t = o(), { apiGatewayUrl: n } = e();
491
535
  return i({
492
536
  mutationFn: async (e) => (await l(`mutation SubMarkInvoicePaid($id: ID!) {
493
537
  subMarkInvoicePaid(id: $id) { ${h} }
494
538
  }`, { id: e }, n)).subMarkInvoicePaid,
495
539
  onSuccess: () => {
496
- t.invalidateQueries({ queryKey: u.invoices });
540
+ t.invalidateQueries({ queryKey: u.invoices }), t.invalidateQueries({ queryKey: u.providerInsights });
497
541
  }
498
542
  });
499
- }, ie = () => {
543
+ }, se = () => {
500
544
  let t = o(), { apiGatewayUrl: n } = e();
501
545
  return i({
502
546
  mutationFn: async (e) => (await l(`mutation SubCreateInvoice($input: SubCreateInvoiceInput!) {
503
547
  subCreateInvoice(input: $input) { ${h} }
504
548
  }`, { input: e }, n)).subCreateInvoice,
505
549
  onSuccess: () => {
506
- t.invalidateQueries({ queryKey: u.invoices });
550
+ t.invalidateQueries({ queryKey: u.invoices }), t.invalidateQueries({ queryKey: u.providerInsights });
507
551
  }
508
552
  });
509
- }, ae = (t) => {
553
+ }, ce = (t) => {
510
554
  let { apiGatewayUrl: n } = e();
511
555
  return a({
512
556
  queryKey: [...u.paymentInstruments, t],
513
557
  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
514
558
  });
515
- }, oe = () => {
559
+ }, le = () => {
516
560
  let t = o(), { apiGatewayUrl: n } = e();
517
561
  return i({
518
562
  mutationFn: async (e) => (await l(`mutation SubCreatePaymentInstrument($input: SubCreatePaymentInstrumentInput!) {
@@ -522,7 +566,7 @@ var l = async (e, t, n) => {
522
566
  t.invalidateQueries({ queryKey: u.paymentInstruments });
523
567
  }
524
568
  });
525
- }, se = () => {
569
+ }, ue = () => {
526
570
  let t = o(), { apiGatewayUrl: n } = e();
527
571
  return i({
528
572
  mutationFn: async (e) => (await l("mutation SubRemovePaymentInstrument($id: ID!) {\n subRemovePaymentInstrument(id: $id)\n }", { id: e }, n)).subRemovePaymentInstrument,
@@ -530,13 +574,13 @@ var l = async (e, t, n) => {
530
574
  t.invalidateQueries({ queryKey: u.paymentInstruments });
531
575
  }
532
576
  });
533
- }, ce = (t) => {
577
+ }, de = (t) => {
534
578
  let { apiGatewayUrl: n } = e();
535
579
  return a({
536
580
  queryKey: [...u.channels, t],
537
581
  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
538
582
  });
539
- }, le = () => {
583
+ }, fe = () => {
540
584
  let t = o(), { apiGatewayUrl: n } = e();
541
585
  return i({
542
586
  mutationFn: async (e) => (await l(`mutation SubCreateChannel($input: SubCreateChannelInput!) {
@@ -546,7 +590,7 @@ var l = async (e, t, n) => {
546
590
  t.invalidateQueries({ queryKey: u.channels });
547
591
  }
548
592
  });
549
- }, ue = () => {
593
+ }, pe = () => {
550
594
  let t = o(), { apiGatewayUrl: n } = e();
551
595
  return i({
552
596
  mutationFn: async (e) => (await l(`mutation SubVerifyChannel($id: ID!) {
@@ -556,7 +600,7 @@ var l = async (e, t, n) => {
556
600
  t.invalidateQueries({ queryKey: u.channels });
557
601
  }
558
602
  });
559
- }, de = (t = {}) => {
603
+ }, me = (t = {}) => {
560
604
  let { apiGatewayUrl: n } = e();
561
605
  return a({
562
606
  queryKey: [...u.agents, t],
@@ -571,7 +615,7 @@ var l = async (e, t, n) => {
571
615
  ownerId: t.ownerId
572
616
  }, n)).subListAgents.items
573
617
  });
574
- }, fe = (t) => {
618
+ }, he = (t) => {
575
619
  let { apiGatewayUrl: n } = e();
576
620
  return a({
577
621
  queryKey: u.agent(t ?? ""),
@@ -583,7 +627,7 @@ var l = async (e, t, n) => {
583
627
  }
584
628
  }`, { id: t }, n)).subAgent
585
629
  });
586
- }, pe = () => {
630
+ }, ge = () => {
587
631
  let t = o(), { apiGatewayUrl: n } = e();
588
632
  return i({
589
633
  mutationFn: async (e) => (await l(`mutation SubCreateAgent($input: SubCreateAgentInput!) {
@@ -593,7 +637,7 @@ var l = async (e, t, n) => {
593
637
  t.invalidateQueries({ queryKey: u.agents });
594
638
  }
595
639
  });
596
- }, me = () => {
640
+ }, _e = () => {
597
641
  let t = o(), { apiGatewayUrl: n } = e();
598
642
  return i({
599
643
  mutationFn: async ({ id: e, status: t }) => (await l(`mutation SubSetAgentStatus($id: ID!, $status: SubAgentStatus!) {
@@ -606,7 +650,7 @@ var l = async (e, t, n) => {
606
650
  t.invalidateQueries({ queryKey: u.agents }), t.invalidateQueries({ queryKey: u.agent(e.id) });
607
651
  }
608
652
  });
609
- }, he = () => {
653
+ }, ve = () => {
610
654
  let t = o(), { apiGatewayUrl: n } = e();
611
655
  return i({
612
656
  mutationFn: async (e) => (await l(`mutation SubCreatePolicy($input: SubCreatePolicyInput!) {
@@ -616,7 +660,7 @@ var l = async (e, t, n) => {
616
660
  t.invalidateQueries({ queryKey: u.agents }), t.invalidateQueries({ queryKey: u.agent(e.agentId) });
617
661
  }
618
662
  });
619
- }, ge = 100, _e = (t = {}, n = {}) => {
663
+ }, ye = 100, be = (t = {}, n = {}) => {
620
664
  let { apiGatewayUrl: r } = e();
621
665
  return a({
622
666
  queryKey: [...u.decisions, t],
@@ -629,10 +673,10 @@ var l = async (e, t, n) => {
629
673
  }
630
674
  }`, {
631
675
  filter: t,
632
- pagination: { limit: ge }
676
+ pagination: { limit: ye }
633
677
  }, r)).subListDecisions
634
678
  });
635
- }, ve = (t) => {
679
+ }, xe = (t) => {
636
680
  let { apiGatewayUrl: n } = e();
637
681
  return a({
638
682
  queryKey: u.decision(t ?? ""),
@@ -643,8 +687,8 @@ var l = async (e, t, n) => {
643
687
  }`, { id: t }, n)).subDecision
644
688
  });
645
689
  }, Z = (e, t) => {
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 = () => {
690
+ 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 }), e.invalidateQueries({ queryKey: u.providerInsights }));
691
+ }, Se = () => {
648
692
  let t = o(), { apiGatewayUrl: n } = e();
649
693
  return i({
650
694
  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 }", {
@@ -653,7 +697,7 @@ var l = async (e, t, n) => {
653
697
  }, n)).subRunAgent,
654
698
  onSuccess: (e) => Z(t, { agentId: e.agentId })
655
699
  });
656
- }, be = () => {
700
+ }, Ce = () => {
657
701
  let t = o(), { apiGatewayUrl: n } = e();
658
702
  return i({
659
703
  mutationFn: async (e) => (await l(`mutation SubApplyDecision($id: ID!) {
@@ -669,7 +713,7 @@ var l = async (e, t, n) => {
669
713
  }),
670
714
  onError: () => void t.invalidateQueries({ queryKey: u.decisions })
671
715
  });
672
- }, xe = () => {
716
+ }, we = () => {
673
717
  let t = o(), { apiGatewayUrl: n } = e();
674
718
  return i({
675
719
  mutationFn: async ({ id: e, reason: t }) => (await l(`mutation SubDismissDecision($id: ID!, $reason: String) {
@@ -683,23 +727,23 @@ var l = async (e, t, n) => {
683
727
  agentId: e.agentId
684
728
  })
685
729
  });
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 = () => {
730
+ }, Te = "\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", Ee = () => {
687
731
  let { apiGatewayUrl: t } = e();
688
732
  return a({
689
733
  queryKey: u.savings,
690
734
  retry: 1,
691
- queryFn: async () => (await l(`query SubSavingsOverview { subSavingsOverview { ${Se} } }`, {}, t)).subSavingsOverview
735
+ queryFn: async () => (await l(`query SubSavingsOverview { subSavingsOverview { ${Te} } }`, {}, t)).subSavingsOverview
692
736
  });
693
- }, we = () => {
737
+ }, De = () => {
694
738
  let t = o(), { apiGatewayUrl: n } = e();
695
739
  return i({
696
740
  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,
697
741
  onSettled: (e, n, r) => {
698
- t.invalidateQueries({ queryKey: u.decisions }), t.invalidateQueries({ queryKey: u.relationships }), t.invalidateQueries({ queryKey: u.renewals });
742
+ t.invalidateQueries({ queryKey: u.decisions }), t.invalidateQueries({ queryKey: u.relationships }), t.invalidateQueries({ queryKey: u.providerInsights }), t.invalidateQueries({ queryKey: u.renewals });
699
743
  for (let e of [r.keepRelationshipId, ...r.cancelRelationshipIds]) t.invalidateQueries({ queryKey: u.relationship(e) });
700
744
  }
701
745
  });
702
- }, Te = () => {
746
+ }, Oe = () => {
703
747
  let t = o(), { apiGatewayUrl: n } = e();
704
748
  return i({
705
749
  mutationFn: async ({ id: e, reason: t }) => (await l("mutation SubDismissBundle($id: ID!, $reason: String) {\n subDismissBundle(id: $id, reason: $reason)\n }", {
@@ -708,7 +752,7 @@ var l = async (e, t, n) => {
708
752
  }, n)).subDismissBundle,
709
753
  onSuccess: () => void t.invalidateQueries({ queryKey: u.savings })
710
754
  });
711
- }, Ee = (t) => {
755
+ }, ke = (t) => {
712
756
  let { apiGatewayUrl: n } = e();
713
757
  return a({
714
758
  queryKey: [...u.workflows, t],
@@ -716,7 +760,7 @@ var l = async (e, t, n) => {
716
760
  subListWorkflows(status: $status) { items { ${v} } pageInfo { cursor hasMore } }
717
761
  }`, { status: t }, n)).subListWorkflows.items
718
762
  });
719
- }, De = () => {
763
+ }, Ae = () => {
720
764
  let t = o(), { apiGatewayUrl: n } = e();
721
765
  return i({
722
766
  mutationFn: async (e) => (await l(`mutation SubCreateWorkflow($input: SubCreateWorkflowInput!) {
@@ -726,7 +770,7 @@ var l = async (e, t, n) => {
726
770
  t.invalidateQueries({ queryKey: u.workflows });
727
771
  }
728
772
  });
729
- }, Oe = () => {
773
+ }, je = () => {
730
774
  let t = o(), { apiGatewayUrl: n } = e();
731
775
  return i({
732
776
  mutationFn: async (e) => (await l(`mutation SubActivateWorkflow($id: ID!) {
@@ -736,7 +780,7 @@ var l = async (e, t, n) => {
736
780
  t.invalidateQueries({ queryKey: u.workflows });
737
781
  }
738
782
  });
739
- }, ke = (t) => {
783
+ }, Me = (t) => {
740
784
  let { apiGatewayUrl: n } = e();
741
785
  return a({
742
786
  queryKey: u.workflow(t ?? ""),
@@ -745,7 +789,7 @@ var l = async (e, t, n) => {
745
789
  subWorkflow(id: $id) { ${v} graph { ${y} } }
746
790
  }`, { id: t }, n)).subWorkflow
747
791
  });
748
- }, Ae = () => {
792
+ }, Ne = () => {
749
793
  let t = o(), { apiGatewayUrl: n } = e();
750
794
  return i({
751
795
  mutationFn: async ({ workflowId: e, input: t }) => (await l(`mutation SubSaveWorkflowGraph($workflowId: ID!, $input: SubSaveWorkflowGraphInput!) {
@@ -756,7 +800,7 @@ var l = async (e, t, n) => {
756
800
  }, n)).subSaveWorkflowGraph,
757
801
  onSuccess: () => void t.invalidateQueries({ queryKey: u.workflows })
758
802
  });
759
- }, je = () => {
803
+ }, Pe = () => {
760
804
  let t = o(), { apiGatewayUrl: n } = e();
761
805
  return i({
762
806
  mutationFn: async (e) => (await l(`mutation SubPauseWorkflow($id: ID!) {
@@ -764,13 +808,13 @@ var l = async (e, t, n) => {
764
808
  }`, { id: e }, n)).subPauseWorkflow,
765
809
  onSuccess: () => void t.invalidateQueries({ queryKey: u.workflows })
766
810
  });
767
- }, Me = (t = {}) => {
811
+ }, Fe = (t = {}) => {
768
812
  let { apiGatewayUrl: n } = e();
769
813
  return a({
770
814
  queryKey: [...u.adapterSubmissions, t],
771
815
  queryFn: async () => (await l(`query SubAdapterSubmissions($status: SubSubmissionStatus, $pagination: PaginationInput) {
772
816
  subListAdapterSubmissions(status: $status, pagination: $pagination) {
773
- items { ${C} }
817
+ items { ${w} }
774
818
  pageInfo { cursor hasMore }
775
819
  }
776
820
  }`, {
@@ -781,11 +825,11 @@ var l = async (e, t, n) => {
781
825
  }
782
826
  }, n)).subListAdapterSubmissions
783
827
  });
784
- }, Ne = () => {
828
+ }, Q = () => {
785
829
  let t = o(), { apiGatewayUrl: n } = e();
786
830
  return i({
787
831
  mutationFn: async ({ id: e, notes: t }) => (await l(`mutation SubApproveAdapter($id: ID!, $notes: String) {
788
- subApproveAdapter(id: $id, notes: $notes) { ${C} }
832
+ subApproveAdapter(id: $id, notes: $notes) { ${w} }
789
833
  }`, {
790
834
  id: e,
791
835
  notes: t
@@ -794,11 +838,11 @@ var l = async (e, t, n) => {
794
838
  t.invalidateQueries({ queryKey: u.adapterSubmissions });
795
839
  }
796
840
  });
797
- }, Pe = () => {
841
+ }, Ie = () => {
798
842
  let t = o(), { apiGatewayUrl: n } = e();
799
843
  return i({
800
844
  mutationFn: async ({ id: e, reason: t }) => (await l(`mutation SubRejectAdapter($id: ID!, $reason: String!) {
801
- subRejectAdapter(id: $id, reason: $reason) { ${C} }
845
+ subRejectAdapter(id: $id, reason: $reason) { ${w} }
802
846
  }`, {
803
847
  id: e,
804
848
  reason: t
@@ -807,13 +851,13 @@ var l = async (e, t, n) => {
807
851
  t.invalidateQueries({ queryKey: u.adapterSubmissions });
808
852
  }
809
853
  });
810
- }, Fe = (t = {}) => {
854
+ }, Le = (t = {}) => {
811
855
  let { apiGatewayUrl: n } = e();
812
856
  return a({
813
857
  queryKey: [...u.marketplaceReports, t],
814
858
  queryFn: async () => (await l(`query SubMarketplaceReports($status: SubReportStatus, $pagination: PaginationInput) {
815
859
  subListMarketplaceReports(status: $status, pagination: $pagination) {
816
- items { ${w} }
860
+ items { ${T} }
817
861
  pageInfo { cursor hasMore }
818
862
  }
819
863
  }`, {
@@ -824,11 +868,11 @@ var l = async (e, t, n) => {
824
868
  }
825
869
  }, n)).subListMarketplaceReports
826
870
  });
827
- }, Q = () => {
871
+ }, Re = () => {
828
872
  let t = o(), { apiGatewayUrl: n } = e();
829
873
  return i({
830
874
  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} }
875
+ subModerateListing(id: $id, action: $action, reason: $reason) { ${T} }
832
876
  }`, {
833
877
  id: e,
834
878
  action: t,
@@ -838,7 +882,7 @@ var l = async (e, t, n) => {
838
882
  t.invalidateQueries({ queryKey: u.marketplaceReports });
839
883
  }
840
884
  });
841
- }, $ = "monthlyBudget monthlySpend variance utilizationPct overBudget", Ie = `
885
+ }, $ = "monthlyBudget monthlySpend variance utilizationPct overBudget", ze = `
842
886
  currency generatedAt monthlySpend annualSpend activeRelationshipCount
843
887
  previousMonthlySpend monthlySpendChangePct
844
888
  trend { at monthlySpend }
@@ -871,21 +915,21 @@ var l = async (e, t, n) => {
871
915
  utilizationPct monthlySpend annualCost renewsAt
872
916
  }
873
917
  truncated
874
- `, Le = (t) => {
918
+ `, Be = (t) => {
875
919
  let { apiGatewayUrl: n } = e();
876
920
  return a({
877
921
  queryKey: [...u.enterpriseSpend, t ?? null],
878
922
  queryFn: async () => (await l(`query SubEnterpriseSpendDashboard($currency: String) {
879
- subEnterpriseSpendDashboard(currency: $currency) { ${Ie} }
923
+ subEnterpriseSpendDashboard(currency: $currency) { ${ze} }
880
924
  }`, { currency: t || null }, n)).subEnterpriseSpendDashboard
881
925
  });
882
- }, Re = () => {
926
+ }, Ve = () => {
883
927
  let { apiGatewayUrl: t } = e();
884
928
  return a({
885
929
  queryKey: u.spendBudgets,
886
930
  queryFn: async () => (await l("query SubListSpendBudgets {\n subListSpendBudgets { id department currency monthlyAmount updatedAt }\n }", {}, t)).subListSpendBudgets
887
931
  });
888
- }, ze = () => {
932
+ }, He = () => {
889
933
  let t = o(), { apiGatewayUrl: n } = e();
890
934
  return i({
891
935
  mutationFn: async (e) => (await l("mutation SubSetSpendBudget($input: SubSetSpendBudgetInput!) {\n subSetSpendBudget(input: $input) { id department currency monthlyAmount updatedAt }\n }", { input: e }, n)).subSetSpendBudget,
@@ -893,7 +937,7 @@ var l = async (e, t, n) => {
893
937
  t.invalidateQueries({ queryKey: u.spendBudgets }), t.invalidateQueries({ queryKey: u.enterpriseSpend });
894
938
  }
895
939
  });
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 = {}) => {
940
+ }, Ue = "\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", We = (t = {}) => {
897
941
  let { apiGatewayUrl: n } = e();
898
942
  return a({
899
943
  queryKey: [...u.renewalForecast, t],
@@ -910,7 +954,7 @@ var l = async (e, t, n) => {
910
954
  statuses: $statuses
911
955
  trialWindowDays: $trialWindowDays
912
956
  currency: $currency
913
- ) { ${Be} }
957
+ ) { ${Ue} }
914
958
  }`, {
915
959
  from: t.from ?? null,
916
960
  to: t.to ?? null,
@@ -919,7 +963,7 @@ var l = async (e, t, n) => {
919
963
  currency: t.currency || null
920
964
  }, n)).subRenewalForecast
921
965
  });
922
- }, He = () => {
966
+ }, Ge = () => {
923
967
  let t = o(), { apiGatewayUrl: n } = e();
924
968
  return i({
925
969
  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 }", {
@@ -931,7 +975,7 @@ var l = async (e, t, n) => {
931
975
  t.invalidateQueries({ queryKey: u.renewals });
932
976
  }
933
977
  });
934
- }, Ue = () => {
978
+ }, Ke = () => {
935
979
  let t = o(), { apiGatewayUrl: n } = e();
936
980
  return i({
937
981
  mutationFn: async (e) => (await l("mutation SubCancelRenewalReminder($id: ID!) {\n subCancelRenewalReminder(id: $id)\n }", { id: e }, n)).subCancelRenewalReminder,
@@ -941,6 +985,6 @@ var l = async (e, t, n) => {
941
985
  });
942
986
  };
943
987
  //#endregion
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 };
988
+ export { l as subQuery, je as useActivateWorkflow, Fe as useAdapterSubmissions, he as useAgent, me as useAgents, M as useAllAssets, Ce as useApplyDecision, Q as useApproveAdapter, V as useArchiveProvider, q as useBenchmarkDataPoints, O as useCancelRelationship, Ke as useCancelRenewalReminder, de as useChannels, De as useConsolidateRelationships, ge as useCreateAgent, N as useCreateAsset, fe as useCreateChannel, j as useCreateEntitlement, se as useCreateInvoice, le as useCreatePaymentInstrument, U as useCreatePlan, ve as useCreatePolicy, z as useCreateProvider, E as useCreateRelationship, Ae as useCreateWorkflow, xe as useDecision, be as useDecisions, Oe as useDismissBundle, we as useDismissDecision, Be as useEnterpriseSpendDashboard, I as useFileDownloadUrl, J as useInboxMessages, ie as useIngestMessage, ae as useInvoices, oe as useMarkInvoicePaid, Y as useMarkMessageRead, X as useMarkMessageUnread, Le as useMarketplaceReports, Re as useModerateListing, Pe as usePauseWorkflow, ce as usePaymentInstruments, H as usePlans, R as useProvider, K as useProviderAlternatives, G as useProviderPriceHistory, L as useProviders, Ie as useRejectAdapter, re as useRelationship, ne as useRelationships, ue as useRemovePaymentInstrument, A as useRenewalEvents, We as useRenewalForecast, Se as useRunAgent, Ne as useSaveWorkflowGraph, Ee as useSavingsOverview, _e as useSetAgentStatus, Ge as useSetRenewalReminder, He as useSetSpendBudget, Ve as useSpendBudgets, D as useTransitionRelationship, B as useUpdateProvider, k as useUpdateRelationship, F as useUploadFile, pe as useVerifyChannel, Me as useWorkflow, ke as useWorkflows };
945
989
 
946
990
  //# sourceMappingURL=useSubscriberBotApi.js.map