@openrails/billing-ui 0.274.0 → 0.276.0

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 (179) hide show
  1. package/README.md +10 -1
  2. package/dist/admin/console.d.ts +33 -0
  3. package/dist/admin/context.d.ts +14 -0
  4. package/dist/admin/index.d.ts +1 -0
  5. package/dist/admin/lib/api/endpoints.d.ts +2 -1
  6. package/dist/admin/lib/api/index.d.ts +1 -0
  7. package/dist/admin/lib/api/order-endpoints.d.ts +1 -0
  8. package/dist/admin/lib/api/types.d.ts +2 -12
  9. package/dist/admin/lib/format.d.ts +5 -1
  10. package/dist/admin/lib/order-queries.d.ts +3 -0
  11. package/dist/admin/lib/queries.d.ts +3 -0
  12. package/dist/admin/messages.d.ts +13 -8
  13. package/dist/admin/pages/dashboard/lib.d.ts +1 -0
  14. package/dist/admin/pages/imports/shared.d.ts +1 -0
  15. package/dist/admin/pages/subscriptions/change-subscription-dialog.d.ts +4 -7
  16. package/dist/admin/pages/subscriptions/subscription-change-options.d.ts +6 -15
  17. package/dist/{admin-attempts-Dzipkstg.js → admin-attempts-CP5CWyNR.js} +28 -28
  18. package/dist/{admin-attempts-Dzipkstg.js.map → admin-attempts-CP5CWyNR.js.map} +1 -1
  19. package/dist/{admin-auth-BCl_Tv3t.js → admin-auth-DlIOmwPo.js} +2 -2
  20. package/dist/{admin-auth-BCl_Tv3t.js.map → admin-auth-DlIOmwPo.js.map} +1 -1
  21. package/dist/{admin-badge-kmYQM9Ge.js → admin-badge-DR_8AhdC.js} +2 -2
  22. package/dist/{admin-badge-kmYQM9Ge.js.map → admin-badge-DR_8AhdC.js.map} +1 -1
  23. package/dist/{admin-button-Cq9ZfX4R.js → admin-button-DBzTD6By.js} +2 -2
  24. package/dist/{admin-button-Cq9ZfX4R.js.map → admin-button-DBzTD6By.js.map} +1 -1
  25. package/dist/{admin-capabilities-k5fQZhN9.js → admin-capabilities-CZdT1Pxe.js} +2 -2
  26. package/dist/{admin-capabilities-k5fQZhN9.js.map → admin-capabilities-CZdT1Pxe.js.map} +1 -1
  27. package/dist/{admin-card-C8k67jJv.js → admin-card-mZl4-s5d.js} +2 -2
  28. package/dist/{admin-card-C8k67jJv.js.map → admin-card-mZl4-s5d.js.map} +1 -1
  29. package/dist/{admin-catalog-CON-GwKL.js → admin-catalog-DpTjS0Yo.js} +38 -38
  30. package/dist/{admin-catalog-CON-GwKL.js.map → admin-catalog-DpTjS0Yo.js.map} +1 -1
  31. package/dist/{admin-cursor-pager-DqFruoNu.js → admin-cursor-pager-C-KjCIy9.js} +4 -4
  32. package/dist/{admin-cursor-pager-DqFruoNu.js.map → admin-cursor-pager-C-KjCIy9.js.map} +1 -1
  33. package/dist/{admin-customers-CWWOrcVR.js → admin-customers-BE3N839X.js} +12 -12
  34. package/dist/{admin-customers-CWWOrcVR.js.map → admin-customers-BE3N839X.js.map} +1 -1
  35. package/dist/{admin-dashboard-BiShWFk2.js → admin-dashboard-BxjkV15J.js} +25 -17
  36. package/dist/admin-dashboard-BxjkV15J.js.map +1 -0
  37. package/dist/{admin-data-table-CdsjYJh5.js → admin-data-table-D89AwWz_.js} +5 -5
  38. package/dist/{admin-data-table-CdsjYJh5.js.map → admin-data-table-D89AwWz_.js.map} +1 -1
  39. package/dist/{admin-detail-BWSC1aCH.js → admin-detail-BKe9xqPd.js} +41 -41
  40. package/dist/{admin-detail-BWSC1aCH.js.map → admin-detail-BKe9xqPd.js.map} +1 -1
  41. package/dist/admin-detail-C8lD7U2t.js +699 -0
  42. package/dist/admin-detail-C8lD7U2t.js.map +1 -0
  43. package/dist/{admin-detail-CMmhZQ2A.js → admin-detail-D6zD085K.js} +45 -37
  44. package/dist/admin-detail-D6zD085K.js.map +1 -0
  45. package/dist/{admin-detail-Cyuf_i9U.js → admin-detail-Ln56otK0.js} +40 -40
  46. package/dist/{admin-detail-Cyuf_i9U.js.map → admin-detail-Ln56otK0.js.map} +1 -1
  47. package/dist/{admin-detail-CiONe1Pt.js → admin-detail-P-UnNvXJ.js} +171 -171
  48. package/dist/admin-detail-P-UnNvXJ.js.map +1 -0
  49. package/dist/{admin-dialog-Ch7rTOCr.js → admin-dialog-Dn2FRJu4.js} +3 -3
  50. package/dist/{admin-dialog-Ch7rTOCr.js.map → admin-dialog-Dn2FRJu4.js.map} +1 -1
  51. package/dist/{admin-dropdown-menu-Bah3f8AZ.js → admin-dropdown-menu-DLUn6Uj3.js} +2 -2
  52. package/dist/{admin-dropdown-menu-Bah3f8AZ.js.map → admin-dropdown-menu-DLUn6Uj3.js.map} +1 -1
  53. package/dist/{admin-dunning-B2zgtrOo.js → admin-dunning-COaHzrmN.js} +2 -2
  54. package/dist/{admin-dunning-B2zgtrOo.js.map → admin-dunning-COaHzrmN.js.map} +1 -1
  55. package/dist/{admin-fact-card-Bt__Cd_U.js → admin-fact-card-DKvBnUXB.js} +2 -2
  56. package/dist/{admin-fact-card-Bt__Cd_U.js.map → admin-fact-card-DKvBnUXB.js.map} +1 -1
  57. package/dist/admin-format-BbiTCqUG.js +171 -0
  58. package/dist/admin-format-BbiTCqUG.js.map +1 -0
  59. package/dist/{admin-health-pzTO6_0v.js → admin-health-DmnI4e8K.js} +10 -10
  60. package/dist/{admin-health-pzTO6_0v.js.map → admin-health-DmnI4e8K.js.map} +1 -1
  61. package/dist/{admin-imports-tT5et8-V.js → admin-imports-C0aMP6sj.js} +18 -18
  62. package/dist/{admin-imports-tT5et8-V.js.map → admin-imports-C0aMP6sj.js.map} +1 -1
  63. package/dist/{admin-input-DvRZy_2a.js → admin-input-JKrQIGfD.js} +2 -2
  64. package/dist/{admin-input-DvRZy_2a.js.map → admin-input-JKrQIGfD.js.map} +1 -1
  65. package/dist/{admin-label-QZtWJGH-.js → admin-label-CHWsVIZC.js} +2 -2
  66. package/dist/{admin-label-QZtWJGH-.js.map → admin-label-CHWsVIZC.js.map} +1 -1
  67. package/dist/{admin-linked-table-row-6jkCKwMn.js → admin-linked-table-row-BMZYYsuk.js} +3 -3
  68. package/dist/{admin-linked-table-row-6jkCKwMn.js.map → admin-linked-table-row-BMZYYsuk.js.map} +1 -1
  69. package/dist/{admin-map-dialog-BV54mvMQ.js → admin-map-dialog-BHUGdCcv.js} +10 -10
  70. package/dist/{admin-map-dialog-BV54mvMQ.js.map → admin-map-dialog-BHUGdCcv.js.map} +1 -1
  71. package/dist/{admin-metering-Bv5EcX6M.js → admin-metering-CDqueHUh.js} +15 -15
  72. package/dist/{admin-metering-Bv5EcX6M.js.map → admin-metering-CDqueHUh.js.map} +1 -1
  73. package/dist/{admin-missing-record-BXqGFDt3.js → admin-missing-record-BPFs3MmO.js} +2 -2
  74. package/dist/{admin-missing-record-BXqGFDt3.js.map → admin-missing-record-BPFs3MmO.js.map} +1 -1
  75. package/dist/{admin-ops-h3RjpcNu.js → admin-ops-CL2kjDwi.js} +18 -15
  76. package/dist/admin-ops-CL2kjDwi.js.map +1 -0
  77. package/dist/admin-orders-C1Sf2qhc.js +192 -0
  78. package/dist/admin-orders-C1Sf2qhc.js.map +1 -0
  79. package/dist/admin-parked-a0tB5bhG.js +193 -0
  80. package/dist/admin-parked-a0tB5bhG.js.map +1 -0
  81. package/dist/admin-payments-DJcjwRA4.js +221 -0
  82. package/dist/admin-payments-DJcjwRA4.js.map +1 -0
  83. package/dist/{admin-price-detail-BjWYU5A-.js → admin-price-detail-BOmeWw15.js} +15 -15
  84. package/dist/{admin-price-detail-BjWYU5A-.js.map → admin-price-detail-BOmeWw15.js.map} +1 -1
  85. package/dist/{admin-price-format-BVUpDoSC.js → admin-price-format-CqOmHrIn.js} +2 -2
  86. package/dist/{admin-price-format-BVUpDoSC.js.map → admin-price-format-CqOmHrIn.js.map} +1 -1
  87. package/dist/{admin-price-wizard-CTbkbmYc.js → admin-price-wizard-B6s5OJeO.js} +9 -9
  88. package/dist/{admin-price-wizard-CTbkbmYc.js.map → admin-price-wizard-B6s5OJeO.js.map} +1 -1
  89. package/dist/{admin-proposals-Ci9Q8j7Y.js → admin-proposals-DVrl-ym4.js} +20 -20
  90. package/dist/{admin-proposals-Ci9Q8j7Y.js.map → admin-proposals-DVrl-ym4.js.map} +1 -1
  91. package/dist/admin-provider-prices-BVVogH7Q.js +241 -0
  92. package/dist/admin-provider-prices-BVVogH7Q.js.map +1 -0
  93. package/dist/{admin-range-picker-nfflPp21.js → admin-range-picker-C6BtSm2B.js} +5 -5
  94. package/dist/{admin-range-picker-nfflPp21.js.map → admin-range-picker-C6BtSm2B.js.map} +1 -1
  95. package/dist/{admin-records-CrTCorWH.js → admin-records-DKtcgN11.js} +19 -19
  96. package/dist/{admin-records-CrTCorWH.js.map → admin-records-DKtcgN11.js.map} +1 -1
  97. package/dist/{admin-reports-BO6wrvtw.js → admin-reports-CtPoiceH.js} +8 -8
  98. package/dist/{admin-reports-BO6wrvtw.js.map → admin-reports-CtPoiceH.js.map} +1 -1
  99. package/dist/{admin-select-DvfJ80Rg.js → admin-select-6Yuh5M1Q.js} +2 -2
  100. package/dist/{admin-select-DvfJ80Rg.js.map → admin-select-6Yuh5M1Q.js.map} +1 -1
  101. package/dist/{admin-settings-BOoTzhyf.js → admin-settings-DscHu4ww.js} +560 -550
  102. package/dist/admin-settings-DscHu4ww.js.map +1 -0
  103. package/dist/{admin-shared-BbGT_qTo.js → admin-shared-BywM-MMp.js} +13 -9
  104. package/dist/{admin-shared-BbGT_qTo.js.map → admin-shared-BywM-MMp.js.map} +1 -1
  105. package/dist/{admin-skeleton-B2a4ScVE.js → admin-skeleton-lndmw89u.js} +2 -2
  106. package/dist/{admin-skeleton-B2a4ScVE.js.map → admin-skeleton-lndmw89u.js.map} +1 -1
  107. package/dist/{admin-status-badge-Bp6cssXY.js → admin-status-badge-IL8ofZ_6.js} +3 -3
  108. package/dist/{admin-status-badge-Bp6cssXY.js.map → admin-status-badge-IL8ofZ_6.js.map} +1 -1
  109. package/dist/{admin-subscriptions-D9JmoicC.js → admin-subscriptions-Cd5CGrue.js} +83 -87
  110. package/dist/admin-subscriptions-Cd5CGrue.js.map +1 -0
  111. package/dist/{admin-switch-DBBxJRZP.js → admin-switch-DpwQSzEm.js} +2 -2
  112. package/dist/{admin-switch-DBBxJRZP.js.map → admin-switch-DpwQSzEm.js.map} +1 -1
  113. package/dist/{admin-table-CPDoVfK4.js → admin-table-D-GdGM1m.js} +2 -2
  114. package/dist/{admin-table-CPDoVfK4.js.map → admin-table-D-GdGM1m.js.map} +1 -1
  115. package/dist/admin-tabs-B--1flzO.js +158 -0
  116. package/dist/admin-tabs-B--1flzO.js.map +1 -0
  117. package/dist/{admin-textarea-d3fu_waS.js → admin-textarea-xsp5V9xM.js} +2 -2
  118. package/dist/{admin-textarea-d3fu_waS.js.map → admin-textarea-xsp5V9xM.js.map} +1 -1
  119. package/dist/{admin-typed-confirm-dialog-BVklYjFo.js → admin-typed-confirm-dialog-NiEDwX_0.js} +6 -6
  120. package/dist/{admin-typed-confirm-dialog-BVklYjFo.js.map → admin-typed-confirm-dialog-NiEDwX_0.js.map} +1 -1
  121. package/dist/{admin-utils-DTT53IpS.js → admin-utils-wuPUD0uh.js} +152 -137
  122. package/dist/admin-utils-wuPUD0uh.js.map +1 -0
  123. package/dist/{admin-widget-viz-Exsqz3Dw.js → admin-widget-viz-kHHVmDEx.js} +215 -187
  124. package/dist/admin-widget-viz-kHHVmDEx.js.map +1 -0
  125. package/dist/admin.css +1 -1
  126. package/dist/admin.js +581 -434
  127. package/dist/admin.js.map +1 -1
  128. package/dist/client/generated/routes.d.ts +17 -0
  129. package/dist/client/generated/wire.d.ts +4 -0
  130. package/dist/client/types.d.ts +6 -0
  131. package/dist/{client-BYgnI6_h.js → client-ctrbivyN.js} +3 -2
  132. package/dist/client-ctrbivyN.js.map +1 -0
  133. package/dist/client.js +1 -1
  134. package/dist/{hooks-t2tSrCpa.js → hooks-KpTetx6F.js} +2 -2
  135. package/dist/{hooks-t2tSrCpa.js.map → hooks-KpTetx6F.js.map} +1 -1
  136. package/dist/index.js +750 -711
  137. package/dist/index.js.map +1 -1
  138. package/dist/lib/card-brands.d.ts +1 -0
  139. package/dist/locales/de.js +3 -0
  140. package/dist/locales/de.js.map +1 -1
  141. package/dist/locales/en.d.ts +3 -0
  142. package/dist/locales/en.js +3 -0
  143. package/dist/locales/en.js.map +1 -1
  144. package/dist/locales/es.js +3 -0
  145. package/dist/locales/es.js.map +1 -1
  146. package/dist/locales/ja.js +3 -0
  147. package/dist/locales/ja.js.map +1 -1
  148. package/dist/locales/ko.js +3 -0
  149. package/dist/locales/ko.js.map +1 -1
  150. package/dist/locales/zh.js +3 -0
  151. package/dist/locales/zh.js.map +1 -1
  152. package/dist/react.js +1 -1
  153. package/dist/styles.css +1 -1
  154. package/package.json +6 -2
  155. package/dist/admin-customer-search-CJHB80rg.js +0 -117
  156. package/dist/admin-customer-search-CJHB80rg.js.map +0 -1
  157. package/dist/admin-dashboard-BiShWFk2.js.map +0 -1
  158. package/dist/admin-detail-CKRtK43V.js +0 -728
  159. package/dist/admin-detail-CKRtK43V.js.map +0 -1
  160. package/dist/admin-detail-CMmhZQ2A.js.map +0 -1
  161. package/dist/admin-detail-CiONe1Pt.js.map +0 -1
  162. package/dist/admin-format-DoohJ7Fg.js +0 -136
  163. package/dist/admin-format-DoohJ7Fg.js.map +0 -1
  164. package/dist/admin-ops-h3RjpcNu.js.map +0 -1
  165. package/dist/admin-orders-DYxPiuTl.js +0 -192
  166. package/dist/admin-orders-DYxPiuTl.js.map +0 -1
  167. package/dist/admin-parked-ClKA60d5.js +0 -193
  168. package/dist/admin-parked-ClKA60d5.js.map +0 -1
  169. package/dist/admin-payments-BlIuy3wL.js +0 -220
  170. package/dist/admin-payments-BlIuy3wL.js.map +0 -1
  171. package/dist/admin-provider-prices-B6Ayq-eN.js +0 -246
  172. package/dist/admin-provider-prices-B6Ayq-eN.js.map +0 -1
  173. package/dist/admin-settings-BOoTzhyf.js.map +0 -1
  174. package/dist/admin-subscriptions-D9JmoicC.js.map +0 -1
  175. package/dist/admin-tabs-DDUv3kiu.js +0 -46
  176. package/dist/admin-tabs-DDUv3kiu.js.map +0 -1
  177. package/dist/admin-utils-DTT53IpS.js.map +0 -1
  178. package/dist/admin-widget-viz-Exsqz3Dw.js.map +0 -1
  179. package/dist/client-BYgnI6_h.js.map +0 -1
@@ -315,6 +315,9 @@ var b = {
315
315
  service_unavailable: "Billing is temporarily unavailable. Try again soon.",
316
316
  internal_error: "Something went wrong on our side. Please try again.",
317
317
  card_declined: "The card was declined.",
318
+ ccbill_email_required: "Verify your email to pay with CCBill.",
319
+ ccbill_username_required: "Set a username to pay with CCBill.",
320
+ customer_email_required: "Verify your email and set a username to pay with CCBill.",
318
321
  payment_provider_rejected: "The payment provider rejected the request.",
319
322
  provider_outcome_unknown: "We couldn't confirm the result with the provider. Check again shortly.",
320
323
  payment_in_progress: "A payment is already in progress.",
@@ -528,20 +531,20 @@ function j(e) {
528
531
  }), f = (e) => t(`/admin/subscriptions/${e}/resume`, { method: "POST" }), p = (e, n) => t(`/admin/subscriptions/${e}/payment-method`, {
529
532
  method: "PUT",
530
533
  body: { payment_method_id: n }
531
- }), m = (e, n) => t(`/admin/subscriptions/${e}/change/preview`, {
534
+ }), m = (e, n) => t(`/admin/subscriptions/${e}/change/options`, { signal: n }), h = (e, n) => t(`/admin/subscriptions/${e}/change/preview`, {
532
535
  method: "POST",
533
536
  body: n
534
- }), h = (e, n, r) => t(`/admin/subscriptions/${e}/change`, {
537
+ }), g = (e, n, r) => t(`/admin/subscriptions/${e}/change`, {
535
538
  method: "POST",
536
539
  headers: { "Idempotency-Key": r },
537
540
  body: n
538
- }), g = (e, n, r) => t("/admin/payments", {
541
+ }), _ = (e, n, r) => t("/admin/payments", {
539
542
  query: {
540
543
  ...e,
541
544
  ...n
542
545
  },
543
546
  signal: r
544
- }), _ = (e, n) => t(`/admin/payments/${e}`, { signal: n }), v = (e, n, r, i) => {
547
+ }), v = (e, n) => t(`/admin/payments/${e}`, { signal: n }), y = (e, n, r, i) => {
545
548
  let a = {
546
549
  amount: n,
547
550
  reason: r || void 0,
@@ -552,41 +555,41 @@ function j(e) {
552
555
  headers: { "Idempotency-Key": crypto.randomUUID() },
553
556
  body: a
554
557
  });
555
- }, y = (e, n, r) => t("/admin/payment-attempts", {
558
+ }, b = (e, n, r) => t("/admin/payment-attempts", {
556
559
  query: {
557
560
  ...e,
558
561
  ...n
559
562
  },
560
563
  signal: r
561
- }), b = (e, n) => t(`/admin/payment-attempts/${e}`, { signal: n }), x = (e, n, r) => t("/admin/renewals", {
564
+ }), x = (e, n) => t(`/admin/payment-attempts/${e}`, { signal: n }), S = (e, n, r) => t("/admin/renewals", {
562
565
  query: {
563
566
  ...e,
564
567
  ...n
565
568
  },
566
569
  signal: r
567
- }), S = (e, n) => t(`/admin/renewals/${e}`, { signal: n }), C = (e, n, r, i) => t("/catalog/products", {
570
+ }), C = (e, n) => t(`/admin/renewals/${e}`, { signal: n }), w = (e, n, r, i) => t("/catalog/products", {
568
571
  query: {
569
572
  limit: e,
570
573
  cursor: n,
571
574
  archived: r
572
575
  },
573
576
  signal: i
574
- }), w = (e, n) => t(`/catalog/products/${e}`, { signal: n }), T = (e) => t("/catalog/products", {
577
+ }), T = (e, n) => t(`/catalog/products/${e}`, { signal: n }), E = (e) => t("/catalog/products", {
575
578
  method: "POST",
576
579
  body: e
577
- }), E = (e, n) => t(`/catalog/products/${e}`, {
580
+ }), D = (e, n) => t(`/catalog/products/${e}`, {
578
581
  method: "PATCH",
579
582
  body: n
580
- }), D = (e = 500, n, r) => t("/catalog/meters", {
583
+ }), O = (e = 500, n, r) => t("/catalog/meters", {
581
584
  query: {
582
585
  limit: e,
583
586
  cursor: n
584
587
  },
585
588
  signal: r
586
- }), O = (e, n) => t(`/catalog/meters/${encodeURIComponent(e)}`, { signal: n }), k = (e, n) => t(`/catalog/meters/${encodeURIComponent(e)}`, {
589
+ }), k = (e, n) => t(`/catalog/meters/${encodeURIComponent(e)}`, { signal: n }), A = (e, n) => t(`/catalog/meters/${encodeURIComponent(e)}`, {
587
590
  method: "PUT",
588
591
  body: n
589
- }), A = (e, t) => k(e.key, {
592
+ }), j = (e, t) => A(e.key, {
590
593
  event_type: e.event_type,
591
594
  value_property: e.value_property,
592
595
  aggregation: e.aggregation,
@@ -594,36 +597,36 @@ function j(e) {
594
597
  group_by: e.group_by ?? {},
595
598
  rate_card: t,
596
599
  expected_revision: e.revision
597
- }), j = (e, n, r, i) => t("/catalog/prices", {
600
+ }), M = (e, n, r, i) => t("/catalog/prices", {
598
601
  query: {
599
602
  limit: e,
600
603
  cursor: n,
601
604
  product_id: r
602
605
  },
603
606
  signal: i
604
- }), M = (e) => t("/catalog/prices", {
607
+ }), N = (e) => t("/catalog/prices", {
605
608
  method: "POST",
606
609
  body: e
607
- }), N = (e, n = !1, r) => t(`/catalog/prices/${encodeURIComponent(e)}`, {
610
+ }), P = (e, n = !1, r) => t(`/catalog/prices/${encodeURIComponent(e)}`, {
608
611
  query: n ? { verify: !0 } : void 0,
609
612
  signal: r
610
- }), P = async (e) => {
613
+ }), F = async (e) => {
611
614
  let n = (await t("/catalog/products", { query: { keys: e } })).data[0];
612
615
  if (!n) throw Error(`No product ${e}`);
613
616
  return n;
614
- }, F = (e, n) => t(`/catalog/prices/${encodeURIComponent(e)}`, {
617
+ }, I = (e, n) => t(`/catalog/prices/${encodeURIComponent(e)}`, {
615
618
  method: "PATCH",
616
619
  body: n
617
- }), I = (e, n) => t(`/catalog/prices/${encodeURIComponent(e)}/history`, {
620
+ }), L = (e, n) => t(`/catalog/prices/${encodeURIComponent(e)}/history`, {
618
621
  query: { limit: 500 },
619
622
  signal: n
620
- }), L = (e, n) => t("/catalog/price-migrations/preview", {
623
+ }), R = (e, n) => t("/catalog/price-migrations/preview", {
621
624
  method: "POST",
622
625
  body: {
623
626
  product_key: e,
624
627
  price_key: n
625
628
  }
626
- }), R = (e, n, r, i) => t("/catalog/price-migrations", {
629
+ }), z = (e, n, r, i) => t("/catalog/price-migrations", {
627
630
  method: "POST",
628
631
  body: {
629
632
  product_key: e,
@@ -631,56 +634,56 @@ function j(e) {
631
634
  to_price_id: r,
632
635
  effective_at: i
633
636
  }
634
- }), z = (e, n, r = 20, i) => t("/catalog/price-migrations", {
637
+ }), B = (e, n, r = 20, i) => t("/catalog/price-migrations", {
635
638
  query: {
636
639
  product_key: e,
637
640
  price_key: n,
638
641
  limit: r
639
642
  },
640
643
  signal: i
641
- }), B = (e) => t(`/catalog/price-migrations/${e}/cancel`, { method: "POST" }), V = (e, n = !1) => t("/catalog/apply", {
644
+ }), V = (e) => t(`/catalog/price-migrations/${e}/cancel`, { method: "POST" }), H = (e, n = !1) => t("/catalog/apply", {
642
645
  method: "POST",
643
646
  rawBody: e,
644
647
  headers: { "Content-Type": "application/yaml" },
645
648
  ...n ? { query: { force: "true" } } : {}
646
- }), H = (e, n, r) => t("/merchant/findings", {
649
+ }), U = (e, n, r) => t("/merchant/findings", {
647
650
  query: {
648
651
  ...e,
649
652
  limit: n
650
653
  },
651
654
  signal: r
652
- }), U = (e) => t(`/merchant/findings/${e}`), W = (e, n, r) => t(`/merchant/findings/${e}/resolve`, {
655
+ }), W = (e) => t(`/merchant/findings/${e}`), G = (e, n, r) => t(`/merchant/findings/${e}/resolve`, {
653
656
  method: "POST",
654
657
  body: {
655
658
  outcome: n,
656
659
  notes: r
657
660
  }
658
- }), G = (e, n) => t("/merchant/destructive-holds", {
661
+ }), K = (e, n) => t("/merchant/destructive-holds", {
659
662
  query: {
660
663
  limit: 100,
661
664
  cursor: e
662
665
  },
663
666
  signal: n
664
- }), K = (e, n) => t(`/merchant/destructive-holds/${encodeURIComponent(e)}/clear`, {
667
+ }), q = (e, n) => t(`/merchant/destructive-holds/${encodeURIComponent(e)}/clear`, {
665
668
  method: "POST",
666
669
  body: { reason: n }
667
- }), q = (e) => t("/merchant/configuration", { signal: e }), ee = (e) => t("/merchant/configuration", {
670
+ }), ee = (e) => t("/merchant/configuration", { signal: e }), J = (e) => t("/merchant/configuration", {
668
671
  method: "PATCH",
669
672
  body: e
670
- }), J = (e) => t("/merchant/psps?limit=500", { signal: e }), te = (e) => t("/merchant/custodians", { signal: e }), ne = (e, n) => t(`/admin/customers/${encodeURIComponent(e)}/payment-methods/${encodeURIComponent(n)}`, { method: "DELETE" }), re = (e, n) => t(`/merchant/custodians/${encodeURIComponent(e)}`, {
673
+ }), te = (e) => t("/merchant/psps?limit=500", { signal: e }), ne = (e) => t("/merchant/custodians", { signal: e }), re = (e, n) => t(`/admin/customers/${encodeURIComponent(e)}/payment-methods/${encodeURIComponent(n)}`, { method: "DELETE" }), Y = (e, n) => t(`/merchant/custodians/${encodeURIComponent(e)}`, {
671
674
  method: "PUT",
672
675
  body: n
673
- }), Y = async (e) => (await ie(e)).rails, X = (e) => t("/merchant/psps", {
676
+ }), X = async (e) => (await ae(e)).rails, Z = (e) => t("/merchant/psps", {
674
677
  method: "POST",
675
678
  body: e
676
- }), Z = (e, n) => t(`/merchant/psps/${encodeURIComponent(e)}`, {
679
+ }), Q = (e, n) => t(`/merchant/psps/${encodeURIComponent(e)}`, {
677
680
  method: "PATCH",
678
681
  body: n
679
- }), Q = (e, n) => t("/merchant/psps/routing-preview", {
682
+ }), ie = (e, n) => t("/merchant/psps/routing-preview", {
680
683
  method: "POST",
681
684
  body: e,
682
685
  signal: n
683
- }), ie = (e) => t("/config", { signal: e });
686
+ }), ae = (e) => t("/config", { signal: e });
684
687
  return {
685
688
  listCustomers: n,
686
689
  getCustomer: r,
@@ -694,50 +697,51 @@ function j(e) {
694
697
  cancelSubscription: d,
695
698
  resumeSubscription: f,
696
699
  changeSubscriptionPaymentMethod: p,
697
- previewSubscriptionChange: m,
698
- changeSubscription: h,
699
- listPayments: g,
700
- getPayment: _,
701
- refundPayment: v,
702
- listPaymentAttempts: y,
703
- getPaymentAttempt: b,
704
- listRenewals: x,
705
- getRenewal: S,
706
- listProducts: C,
707
- getProduct: w,
708
- createProduct: T,
709
- updateProduct: E,
710
- listUsageMeters: D,
711
- getUsageMeter: O,
712
- putUsageMeter: k,
713
- putUsageMeterRateCard: A,
714
- listPrices: j,
715
- createPrice: M,
716
- getPrice: N,
717
- getProductByKey: P,
718
- updatePrice: F,
719
- getPriceHistory: I,
720
- previewPriceMigration: L,
721
- createPriceMigration: R,
722
- listPriceMigrations: z,
723
- cancelPriceMigration: B,
724
- applyCatalog: V,
725
- listFindings: H,
726
- getFinding: U,
727
- resolveFinding: W,
728
- listDestructiveHolds: G,
729
- clearDestructiveHold: K,
730
- getMerchantConfiguration: q,
731
- updateMerchantConfiguration: ee,
732
- listPSPs: J,
733
- listRails: Y,
734
- createPSP: X,
735
- listCustodians: te,
736
- putCustodian: re,
737
- deleteCustomerPaymentMethod: ne,
738
- updatePSP: Z,
739
- previewPSPRouting: Q,
740
- getConfig: ie,
700
+ listSubscriptionChangeOptions: m,
701
+ previewSubscriptionChange: h,
702
+ changeSubscription: g,
703
+ listPayments: _,
704
+ getPayment: v,
705
+ refundPayment: y,
706
+ listPaymentAttempts: b,
707
+ getPaymentAttempt: x,
708
+ listRenewals: S,
709
+ getRenewal: C,
710
+ listProducts: w,
711
+ getProduct: T,
712
+ createProduct: E,
713
+ updateProduct: D,
714
+ listUsageMeters: O,
715
+ getUsageMeter: k,
716
+ putUsageMeter: A,
717
+ putUsageMeterRateCard: j,
718
+ listPrices: M,
719
+ createPrice: N,
720
+ getPrice: P,
721
+ getProductByKey: F,
722
+ updatePrice: I,
723
+ getPriceHistory: L,
724
+ previewPriceMigration: R,
725
+ createPriceMigration: z,
726
+ listPriceMigrations: B,
727
+ cancelPriceMigration: V,
728
+ applyCatalog: H,
729
+ listFindings: U,
730
+ getFinding: W,
731
+ resolveFinding: G,
732
+ listDestructiveHolds: K,
733
+ clearDestructiveHold: q,
734
+ getMerchantConfiguration: ee,
735
+ updateMerchantConfiguration: J,
736
+ listPSPs: te,
737
+ listRails: X,
738
+ createPSP: Z,
739
+ listCustodians: ne,
740
+ putCustodian: Y,
741
+ deleteCustomerPaymentMethod: re,
742
+ updatePSP: Q,
743
+ previewPSPRouting: ie,
744
+ getConfig: ae,
741
745
  getAdminAccess: (e) => t("/admin/access", { signal: e }),
742
746
  updateCustomer: (e, n) => t(`/admin/customers/${e}`, {
743
747
  method: "PATCH",
@@ -1081,16 +1085,16 @@ var ee = (e) => ({
1081
1085
  notifications: () => [...e(), "notifications"]
1082
1086
  }), J = (e) => e ? { errorAction: e } : void 0;
1083
1087
  function te(e, t) {
1084
- let { queryRoot: n } = e, { getCustomer: r, getMerchantConfiguration: i, getPayment: a, getPaymentAttempt: o, getPrice: c, getPriceHistory: u, getProduct: d, getRenewal: f, getSubscription: p, getUsageMeter: m, listCustomerEntitlements: h, listCustomerPaymentMethods: g, listCustomerProductAccess: _, listCustomers: v, listFindings: y, listDestructiveHolds: b, listPaymentAttempts: x, listPSPs: S, listRails: C, previewPSPRouting: w, listPayments: E, listPrices: D, listProducts: O, listRenewals: k, listPriceMigrations: A, listSubscriptions: j, listUsageMeters: M, getAdminAccess: N, getConfig: P, listWebhooks: F, getDashboard: I, metricsQuery: L } = t, R = n, z = ee(R);
1088
+ let { queryRoot: n } = e, { getCustomer: r, getMerchantConfiguration: i, getPayment: a, getPaymentAttempt: o, getPrice: c, getPriceHistory: u, getProduct: d, getRenewal: f, getSubscription: p, getUsageMeter: m, listCustomerEntitlements: h, listCustomerPaymentMethods: g, listCustomerProductAccess: _, listCustomers: v, listFindings: y, listDestructiveHolds: b, listPaymentAttempts: x, listPSPs: S, listRails: C, previewPSPRouting: w, listPayments: E, listPrices: D, listProducts: O, listRenewals: k, listPriceMigrations: A, listSubscriptionChangeOptions: j, listSubscriptions: M, listUsageMeters: N, getAdminAccess: P, getConfig: F, listWebhooks: I, getDashboard: L, metricsQuery: R } = t, z = n, B = ee(z);
1085
1089
  return {
1086
- queryKeys: z,
1090
+ queryKeys: B,
1087
1091
  merchantQueryKeys: () => {
1088
- let e = R();
1092
+ let e = z();
1089
1093
  return ee(() => e);
1090
1094
  },
1091
1095
  adminQueries: {
1092
1096
  customers: (e, t, n) => l({
1093
- queryKey: [...z.customers(), {
1097
+ queryKey: [...B.customers(), {
1094
1098
  search: e,
1095
1099
  limit: t,
1096
1100
  cursor: n
@@ -1100,28 +1104,27 @@ function te(e, t) {
1100
1104
  meta: { errorAction: "Load customers" }
1101
1105
  }),
1102
1106
  customer: (e) => l({
1103
- queryKey: z.customer(e),
1107
+ queryKey: B.customer(e),
1104
1108
  queryFn: ({ signal: t }) => r(e, t),
1105
- enabled: !!e,
1106
- meta: { errorAction: "Load customer" }
1109
+ enabled: !!e
1107
1110
  }),
1108
1111
  customerSubscriptions: (e, t, n) => l({
1109
1112
  queryKey: [
1110
- ...z.customer(e),
1113
+ ...B.customer(e),
1111
1114
  "subscriptions",
1112
1115
  {
1113
1116
  limit: t,
1114
1117
  cursor: n
1115
1118
  }
1116
1119
  ],
1117
- queryFn: ({ signal: r }) => j({ customer_id: e }, t, n || void 0, r),
1120
+ queryFn: ({ signal: r }) => M({ customer_id: e }, t, n || void 0, r),
1118
1121
  enabled: !!e,
1119
1122
  placeholderData: s,
1120
1123
  meta: { errorAction: "Load subscriptions" }
1121
1124
  }),
1122
1125
  customerPayments: (e, t, n) => l({
1123
1126
  queryKey: [
1124
- ...z.customer(e),
1127
+ ...B.customer(e),
1125
1128
  "payments",
1126
1129
  {
1127
1130
  limit: t,
@@ -1138,7 +1141,7 @@ function te(e, t) {
1138
1141
  }),
1139
1142
  customerPaymentMethodsPage: (e, t, n) => l({
1140
1143
  queryKey: [
1141
- ...z.customer(e),
1144
+ ...B.customer(e),
1142
1145
  "payment-methods",
1143
1146
  {
1144
1147
  limit: t,
@@ -1155,7 +1158,7 @@ function te(e, t) {
1155
1158
  }),
1156
1159
  customerEntitlements: (e, t, n) => l({
1157
1160
  queryKey: [
1158
- ...z.customer(e),
1161
+ ...B.customer(e),
1159
1162
  "entitlements",
1160
1163
  {
1161
1164
  limit: t,
@@ -1172,7 +1175,7 @@ function te(e, t) {
1172
1175
  }),
1173
1176
  customerProductAccess: (e, t, n) => l({
1174
1177
  queryKey: [
1175
- ...z.customer(e),
1178
+ ...B.customer(e),
1176
1179
  "product-access",
1177
1180
  {
1178
1181
  limit: t,
@@ -1188,23 +1191,27 @@ function te(e, t) {
1188
1191
  meta: { errorAction: "Load product access" }
1189
1192
  }),
1190
1193
  subscriptions: (e, t, n) => l({
1191
- queryKey: [...z.subscriptions(), {
1194
+ queryKey: [...B.subscriptions(), {
1192
1195
  filters: e,
1193
1196
  limit: t,
1194
1197
  cursor: n
1195
1198
  }],
1196
- queryFn: ({ signal: r }) => j(e, t, n || void 0, r),
1199
+ queryFn: ({ signal: r }) => M(e, t, n || void 0, r),
1197
1200
  placeholderData: s,
1198
1201
  meta: { errorAction: "Load subscriptions" }
1199
1202
  }),
1200
1203
  subscription: (e) => l({
1201
- queryKey: z.subscription(e),
1204
+ queryKey: B.subscription(e),
1202
1205
  queryFn: ({ signal: t }) => p(e, t),
1203
- enabled: !!e,
1204
- meta: { errorAction: "Load subscription" }
1206
+ enabled: !!e
1207
+ }),
1208
+ subscriptionChangeOptions: (e) => l({
1209
+ queryKey: [...B.subscription(e), "change-options"],
1210
+ queryFn: ({ signal: t }) => j(e, t),
1211
+ staleTime: 6e4
1205
1212
  }),
1206
1213
  customerPaymentMethods: (e) => l({
1207
- queryKey: [...z.customer(e ?? "unselected"), "payment-methods"],
1214
+ queryKey: [...B.customer(e ?? "unselected"), "payment-methods"],
1208
1215
  queryFn: ({ signal: t }) => T((n) => g(e, {
1209
1216
  limit: 100,
1210
1217
  cursor: n
@@ -1212,7 +1219,7 @@ function te(e, t) {
1212
1219
  enabled: !!e
1213
1220
  }),
1214
1221
  payments: (e, t, n) => l({
1215
- queryKey: [...z.payments(), {
1222
+ queryKey: [...B.payments(), {
1216
1223
  filters: e,
1217
1224
  limit: t,
1218
1225
  cursor: n
@@ -1225,13 +1232,12 @@ function te(e, t) {
1225
1232
  meta: { errorAction: "Load payments" }
1226
1233
  }),
1227
1234
  payment: (e) => l({
1228
- queryKey: z.payment(e),
1235
+ queryKey: B.payment(e),
1229
1236
  queryFn: ({ signal: t }) => a(e, t),
1230
- enabled: !!e,
1231
- meta: { errorAction: "Load payment" }
1237
+ enabled: !!e
1232
1238
  }),
1233
1239
  attempts: (e, t, n) => l({
1234
- queryKey: [...z.attempts(), {
1240
+ queryKey: [...B.attempts(), {
1235
1241
  filters: e,
1236
1242
  limit: t,
1237
1243
  cursor: n
@@ -1244,13 +1250,13 @@ function te(e, t) {
1244
1250
  meta: { errorAction: "Load payment attempts" }
1245
1251
  }),
1246
1252
  attempt: (e) => l({
1247
- queryKey: [...z.attempts(), e],
1253
+ queryKey: [...B.attempts(), e],
1248
1254
  queryFn: ({ signal: t }) => o(e, t),
1249
1255
  enabled: !!e,
1250
1256
  meta: { errorAction: "Load payment attempt" }
1251
1257
  }),
1252
1258
  cycles: (e, t, n) => l({
1253
- queryKey: [...z.cycles(), {
1259
+ queryKey: [...B.cycles(), {
1254
1260
  filters: e,
1255
1261
  limit: t,
1256
1262
  cursor: n
@@ -1263,7 +1269,7 @@ function te(e, t) {
1263
1269
  meta: { errorAction: "Load renewals" }
1264
1270
  }),
1265
1271
  cycle: (e) => l({
1266
- queryKey: [...z.cycles(), e],
1272
+ queryKey: [...B.cycles(), e],
1267
1273
  queryFn: ({ signal: t }) => f(e, t),
1268
1274
  enabled: !!e,
1269
1275
  meta: { errorAction: "Load renewal" }
@@ -1272,7 +1278,7 @@ function te(e, t) {
1272
1278
  let { limit: t = 100, cursor: n, errorAction: r } = e;
1273
1279
  return l({
1274
1280
  queryKey: [
1275
- ...z.catalog(),
1281
+ ...B.catalog(),
1276
1282
  "products",
1277
1283
  {
1278
1284
  limit: t,
@@ -1286,7 +1292,7 @@ function te(e, t) {
1286
1292
  },
1287
1293
  allProducts: (e = {}) => l({
1288
1294
  queryKey: [
1289
- ...z.catalog(),
1295
+ ...B.catalog(),
1290
1296
  "products",
1291
1297
  "all"
1292
1298
  ],
@@ -1297,7 +1303,7 @@ function te(e, t) {
1297
1303
  let { productId: t, limit: n = 100, cursor: r, errorAction: i } = e;
1298
1304
  return l({
1299
1305
  queryKey: [
1300
- ...z.catalog(),
1306
+ ...B.catalog(),
1301
1307
  "prices",
1302
1308
  {
1303
1309
  productId: t,
@@ -1312,7 +1318,7 @@ function te(e, t) {
1312
1318
  },
1313
1319
  allPrices: (e = {}) => l({
1314
1320
  queryKey: [
1315
- ...z.catalog(),
1321
+ ...B.catalog(),
1316
1322
  "prices",
1317
1323
  "all",
1318
1324
  { productId: e.productId }
@@ -1324,7 +1330,7 @@ function te(e, t) {
1324
1330
  let { verify: n = !1, errorAction: r } = t;
1325
1331
  return l({
1326
1332
  queryKey: [
1327
- ...z.catalog(),
1333
+ ...B.catalog(),
1328
1334
  "prices",
1329
1335
  e,
1330
1336
  { verify: n }
@@ -1337,7 +1343,7 @@ function te(e, t) {
1337
1343
  },
1338
1344
  product: (e) => l({
1339
1345
  queryKey: [
1340
- ...z.catalog(),
1346
+ ...B.catalog(),
1341
1347
  "products",
1342
1348
  e ?? "unselected"
1343
1349
  ],
@@ -1346,7 +1352,7 @@ function te(e, t) {
1346
1352
  }),
1347
1353
  priceHistory: (e) => l({
1348
1354
  queryKey: [
1349
- ...z.catalog(),
1355
+ ...B.catalog(),
1350
1356
  "prices",
1351
1357
  "history",
1352
1358
  e ?? "unselected"
@@ -1356,7 +1362,7 @@ function te(e, t) {
1356
1362
  }),
1357
1363
  priceMigrations: (e, t, n = 5) => l({
1358
1364
  queryKey: [
1359
- ...z.catalog(),
1365
+ ...B.catalog(),
1360
1366
  "price-migrations",
1361
1367
  {
1362
1368
  productKey: e,
@@ -1369,7 +1375,7 @@ function te(e, t) {
1369
1375
  }),
1370
1376
  pspRouting: (e) => l({
1371
1377
  queryKey: [
1372
- ...z.catalog(),
1378
+ ...B.catalog(),
1373
1379
  "prices",
1374
1380
  e,
1375
1381
  "routing"
@@ -1379,28 +1385,28 @@ function te(e, t) {
1379
1385
  meta: { errorAction: "Check purchase readiness" }
1380
1386
  }),
1381
1387
  usageMeters: (e = 200, t) => l({
1382
- queryKey: [...z.usageMeters(), {
1388
+ queryKey: [...B.usageMeters(), {
1383
1389
  limit: e,
1384
1390
  cursor: t
1385
1391
  }],
1386
- queryFn: ({ signal: n }) => M(e, t, n),
1392
+ queryFn: ({ signal: n }) => N(e, t, n),
1387
1393
  placeholderData: s,
1388
1394
  meta: { errorAction: "Load usage meters" }
1389
1395
  }),
1390
1396
  allUsageMeters: () => l({
1391
- queryKey: [...z.usageMeters(), "all"],
1392
- queryFn: ({ signal: e }) => q((e, t) => M(500, e, t), e),
1397
+ queryKey: [...B.usageMeters(), "all"],
1398
+ queryFn: ({ signal: e }) => q((e, t) => N(500, e, t), e),
1393
1399
  meta: { errorAction: "Load usage meters" }
1394
1400
  }),
1395
1401
  usageMeter: (e) => l({
1396
- queryKey: z.usageMeter(e),
1402
+ queryKey: B.usageMeter(e),
1397
1403
  queryFn: ({ signal: t }) => m(e, t),
1398
1404
  enabled: !!e,
1399
1405
  meta: { errorAction: "Load usage meter" }
1400
1406
  }),
1401
1407
  findings: (e = !0) => l({
1402
1408
  queryKey: [
1403
- ...z.ops(),
1409
+ ...B.ops(),
1404
1410
  "findings",
1405
1411
  { limit: 100 }
1406
1412
  ],
@@ -1409,19 +1415,19 @@ function te(e, t) {
1409
1415
  meta: { errorAction: "Load findings" }
1410
1416
  }),
1411
1417
  destructiveHolds: (e = !0) => l({
1412
- queryKey: [...z.ops(), "destructive-holds"],
1418
+ queryKey: [...B.ops(), "destructive-holds"],
1413
1419
  queryFn: ({ signal: e }) => q((e, t) => b(e, t), e),
1414
1420
  enabled: e,
1415
1421
  meta: { errorAction: "Load holds" }
1416
1422
  }),
1417
1423
  findingSummary: () => l({
1418
1424
  queryKey: [
1419
- ...z.ops(),
1425
+ ...B.ops(),
1420
1426
  "findings",
1421
1427
  "summary"
1422
1428
  ],
1423
1429
  queryFn: async ({ signal: e }) => {
1424
- let t = K(await L({
1430
+ let t = K(await R({
1425
1431
  measures: [
1426
1432
  "open_findings",
1427
1433
  "orphaned_members",
@@ -1440,60 +1446,60 @@ function te(e, t) {
1440
1446
  meta: { errorAction: "Load the findings summary" }
1441
1447
  }),
1442
1448
  merchantConfiguration: (e) => l({
1443
- queryKey: z.settings(),
1449
+ queryKey: B.settings(),
1444
1450
  queryFn: ({ signal: e }) => i(e),
1445
1451
  meta: J(e)
1446
1452
  }),
1447
1453
  psps: () => l({
1448
- queryKey: [...z.settings(), "psps"],
1454
+ queryKey: [...B.settings(), "psps"],
1449
1455
  queryFn: ({ signal: e }) => S(e),
1450
1456
  meta: { errorAction: "Load PSPs" }
1451
1457
  }),
1452
1458
  rails: () => l({
1453
- queryKey: [...z.settings(), "rails"],
1459
+ queryKey: [...B.settings(), "rails"],
1454
1460
  queryFn: ({ signal: e }) => C(e),
1455
1461
  staleTime: Infinity,
1456
1462
  meta: { errorAction: "Load rails" }
1457
1463
  }),
1458
1464
  config: () => l({
1459
1465
  queryKey: ["config"],
1460
- queryFn: ({ signal: e }) => P(e),
1466
+ queryFn: ({ signal: e }) => F(e),
1461
1467
  staleTime: 3e5,
1462
1468
  meta: { errorAction: "Load configuration" }
1463
1469
  }),
1464
1470
  access: () => l({
1465
- queryKey: [...z.merchant(), "access"],
1466
- queryFn: ({ signal: e }) => N(e),
1471
+ queryKey: [...B.merchant(), "access"],
1472
+ queryFn: ({ signal: e }) => P(e),
1467
1473
  staleTime: 3e5,
1468
1474
  meta: { errorAction: "Load your access" }
1469
1475
  }),
1470
1476
  webhooks: () => l({
1471
- queryKey: [...z.alerts(), "webhooks"],
1472
- queryFn: ({ signal: e }) => F(e),
1477
+ queryKey: [...B.alerts(), "webhooks"],
1478
+ queryFn: ({ signal: e }) => I(e),
1473
1479
  meta: { errorAction: "Load webhooks" }
1474
1480
  }),
1475
1481
  dashboard: () => l({
1476
- queryKey: z.dashboard(),
1477
- queryFn: ({ signal: e }) => I(e),
1482
+ queryKey: B.dashboard(),
1483
+ queryFn: ({ signal: e }) => L(e),
1478
1484
  meta: { errorAction: "Load dashboard" }
1479
1485
  }),
1480
1486
  widgetMetrics: (e) => l({
1481
1487
  queryKey: [
1482
- ...z.dashboard(),
1488
+ ...B.dashboard(),
1483
1489
  "metrics",
1484
1490
  e ?? "unselected"
1485
1491
  ],
1486
- queryFn: ({ signal: t }) => L(e, t),
1492
+ queryFn: ({ signal: t }) => R(e, t),
1487
1493
  enabled: !!e
1488
1494
  }),
1489
1495
  notifications: (e) => l({
1490
- queryKey: z.notifications(),
1496
+ queryKey: B.notifications(),
1491
1497
  queryFn: ({ signal: e }) => y({ status: "requires_review" }, 10, e),
1492
1498
  enabled: e
1493
1499
  }),
1494
1500
  unreadNotifications: () => l({
1495
- queryKey: [...z.notifications(), "count"],
1496
- queryFn: async ({ signal: e }) => Number(K(await L({
1501
+ queryKey: [...B.notifications(), "count"],
1502
+ queryFn: async ({ signal: e }) => Number(K(await R({
1497
1503
  measures: ["open_findings"],
1498
1504
  range: { last: "1d" },
1499
1505
  filters: { finding_status: ["requires_review"] }
@@ -2073,6 +2079,15 @@ function oe(e, t, n) {
2073
2079
  }, r),
2074
2080
  placeholderData: s
2075
2081
  }),
2082
+ byIds: (e) => l({
2083
+ queryKey: [
2084
+ ...u.root(),
2085
+ "ids",
2086
+ e
2087
+ ],
2088
+ queryFn: ({ signal: t }) => a.listOrders({ ids: e.join(",") }, {}, t),
2089
+ enabled: e.length > 0
2090
+ }),
2076
2091
  detail: (e) => l({
2077
2092
  queryKey: u.detail(e),
2078
2093
  queryFn: ({ signal: t }) => a.getOrder(e, t),
@@ -2426,4 +2441,4 @@ function Ee(...e) {
2426
2441
  //#endregion
2427
2442
  export { k as C, m as D, g as E, h as O, A as S, E as T, U as _, Te as a, D as b, xe as c, de as d, pe as f, G as g, W as h, we as i, Se as l, se as m, ve as n, ye as o, me as p, Ce as r, be as s, Ee as t, fe as u, B as v, x as w, O as x, M as y };
2428
2443
 
2429
- //# sourceMappingURL=admin-utils-DTT53IpS.js.map
2444
+ //# sourceMappingURL=admin-utils-wuPUD0uh.js.map