@tesouro/embedded-components-react 0.3.49 → 0.3.51

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 (144) hide show
  1. package/dist/index.css +8 -2
  2. package/dist/index.js +2 -2
  3. package/dist/lib/BillPayWidget.js +1 -1
  4. package/dist/lib/LinkedAccountsWidget.js +1 -1
  5. package/dist/libs/shared/util-validation/dist/{index22.js → index23.js} +1 -1
  6. package/dist/libs/shared/util-validation/dist/index7.js +6 -0
  7. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index.js +11 -10
  8. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index10.js +39 -30
  9. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index11.js +26 -311
  10. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index12.js +325 -12
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index13.js +13 -26
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index14.js +20 -40
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index15.js +75 -24
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index16.js +36 -0
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index5.js +80 -68
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index6.js +86 -73
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index7.js +77 -14
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index8.js +18 -63
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index9.js +50 -29
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +22 -18
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index10.js +82 -30
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index11.js +7 -42
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index12.js +15 -159
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index13.js +23 -33
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index14.js +66 -1
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index15.js +2 -50
  27. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index16.js +3 -4
  28. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index17.js +5 -14
  29. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index18.js +3 -14
  30. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index19.js +31 -63
  31. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index2.js +23 -18
  32. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index20.js +37 -24
  33. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index21.js +161 -61
  34. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index22.js +29 -130
  35. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index23.js +1 -25
  36. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index24.js +47 -4
  37. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index25.js +4 -41
  38. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index26.js +12 -55
  39. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index27.js +13 -4
  40. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index28.js +63 -72
  41. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index29.js +26 -49
  42. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index3.js +23 -23
  43. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index30.js +62 -93
  44. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index31.js +133 -34
  45. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index32.js +20 -163
  46. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index33.js +4 -77
  47. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index34.js +39 -21
  48. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index35.js +5 -210
  49. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index36.js +70 -211
  50. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index37.js +47 -103
  51. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index38.js +92 -12
  52. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index39.js +34 -47
  53. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index4.js +59 -62
  54. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index40.js +163 -29
  55. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index41.js +67 -181
  56. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index42.js +20 -32
  57. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index43.js +203 -94
  58. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index44.js +214 -15
  59. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index45.js +98 -312
  60. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js +16 -4
  61. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index47.js +49 -31
  62. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +29 -80
  63. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index49.js +183 -156
  64. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index5.js +9 -2
  65. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index50.js +38 -3
  66. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js +102 -2
  67. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index52.js +18 -44
  68. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index53.js +343 -1
  69. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index54.js +4 -8
  70. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js +30 -8
  71. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js +79 -88
  72. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index57.js +179 -3
  73. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index58.js +3 -9
  74. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js +2 -20
  75. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index6.js +4 -2
  76. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js +38 -51
  77. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index61.js +0 -2
  78. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index62.js +6 -126
  79. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index63.js +9 -9
  80. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index64.js +92 -44
  81. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index65.js +3 -23
  82. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index66.js +123 -26
  83. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index67.js +7 -82
  84. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index68.js +8 -48
  85. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index69.js +45 -250
  86. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index7.js +69 -5
  87. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index70.js +21 -113
  88. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index71.js +27 -208
  89. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index72.js +86 -4
  90. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index73.js +47 -5
  91. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index74.js +244 -106
  92. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index75.js +115 -1
  93. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index76.js +201 -16
  94. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index77.js +4 -0
  95. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index78.js +8 -0
  96. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index79.js +115 -0
  97. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index8.js +44 -5
  98. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index80.js +1 -0
  99. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index81.js +25 -0
  100. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index9.js +94 -3
  101. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +19 -19
  102. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index18.js +1 -0
  103. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index50.js +28 -28
  104. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index59.js +1 -3
  105. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index60.js +6 -16
  106. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index73.js +119 -16
  107. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index74.js +24 -111
  108. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index75.js +89 -2
  109. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index76.js +2 -7
  110. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index77.js +5 -28
  111. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index78.js +30 -2
  112. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index79.js +2 -7
  113. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index80.js +5 -32
  114. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index81.js +34 -2
  115. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index82.js +2 -12
  116. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index83.js +10 -104
  117. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index84.js +105 -1
  118. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index85.js +2 -17
  119. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index86.js +15 -123
  120. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index87.js +125 -2
  121. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index88.js +2 -18
  122. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index89.js +14 -6
  123. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index90.js +7 -167
  124. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index91.js +170 -2
  125. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index92.js +2 -14
  126. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index93.js +11 -105
  127. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index94.js +108 -2
  128. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index95.js +2 -10
  129. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index96.js +8 -45
  130. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index97.js +47 -2
  131. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index98.js +2 -0
  132. package/dist/libs/tesouro-embedded-components-react/create-card-widget/feature/dist/index8.js +95 -94
  133. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/index.js +1 -1
  134. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/index10.js +45 -0
  135. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/index7.js +18 -55
  136. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/index8.js +46 -265
  137. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/index9.js +273 -34
  138. package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/feature/dist/lib/useApproverOptions.js +1 -1
  139. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +23 -23
  140. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +87 -71
  141. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  142. package/dist/libs/tesouro-embedded-components-react/team-widget/feature/dist/index11.js +1 -1
  143. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index8.js +1 -1
  144. package/package.json +1 -1
package/dist/index.css CHANGED
@@ -2313,6 +2313,9 @@
2313
2313
  .ttw\:border-b-\[\#EAECF0\] {
2314
2314
  border-bottom-color: #EAECF0;
2315
2315
  }
2316
+ .ttw\:border-b-transparent {
2317
+ border-bottom-color: transparent;
2318
+ }
2316
2319
  .ttw\:\!bg-gray-800 {
2317
2320
  background-color: var(--ttw-color-gray-800) !important;
2318
2321
  }
@@ -4521,6 +4524,9 @@
4521
4524
  .ttw\:hover\:no-underline:hover {
4522
4525
  text-decoration-line: none;
4523
4526
  }
4527
+ .ttw\:hover\:no-underline\!:hover {
4528
+ text-decoration-line: none !important;
4529
+ }
4524
4530
  .ttw\:hover\:underline:hover {
4525
4531
  text-decoration-line: underline;
4526
4532
  }
@@ -5575,8 +5581,8 @@
5575
5581
  .ttw\:sm\:max-w-180 {
5576
5582
  max-width: calc(var(--ttw-spacing) * 180);
5577
5583
  }
5578
- .ttw\:sm\:max-w-208\.75 {
5579
- max-width: calc(var(--ttw-spacing) * 208.75);
5584
+ .ttw\:sm\:max-w-240 {
5585
+ max-width: calc(var(--ttw-spacing) * 240);
5580
5586
  }
5581
5587
  .ttw\:sm\:max-w-\[423px\] {
5582
5588
  max-width: 423px;
package/dist/index.js CHANGED
@@ -14,7 +14,7 @@ import { RefreshingRootWidgetProvider as _ } from "./libs/tesouro-embedded-compo
14
14
  import { useDisclosuresAcceptanceSurface as v, useOwnWidgetConfig as y, useRefetchWidget as b, useWidgetConfig as x, useWidgetError as S, useWidgetLoading as C } from "./libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/hooks.js";
15
15
  import { BankAccountsWidget as w } from "./libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/index8.js";
16
16
  import { CounterpartsWidget as T } from "./libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/index8.js";
17
- import { BillPayWidget as E } from "./libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index76.js";
17
+ import { BillPayWidget as E } from "./libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index81.js";
18
18
  import { CardDetailsWidget as D } from "./libs/tesouro-embedded-components-react/card-details-widget/feature/dist/index6.js";
19
19
  import { CardFormatValue as O } from "./libs/tesouro-embedded-components-react/create-card-widget/feature/dist/index3.js";
20
20
  import { CREATE_CARD_FEATURE_LABELS_EN as k, resolveCreateCardFeatureLabels as A } from "./libs/tesouro-embedded-components-react/create-card-widget/feature/dist/index5.js";
@@ -71,7 +71,7 @@ import "./lib/InsightsWidget.js";
71
71
  import "./lib/ChartOfAccountsWidget.js";
72
72
  import "./lib/HelpWidget.js";
73
73
  import "./lib/InvoicingWidget.js";
74
- import { LinkedAccountsWidget as he } from "./libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/index9.js";
74
+ import { LinkedAccountsWidget as he } from "./libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/index10.js";
75
75
  import "./lib/LinkedAccountsWidget.js";
76
76
  import { ADDITIONAL_OWNERS_LABELS_EN as ge } from "./libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index4.js";
77
77
  import { BUSINESS_DETAILS_LABELS_EN as _e } from "./libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index6.js";
@@ -1,3 +1,3 @@
1
- import { BillPayWidget as e } from "../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index76.js";
1
+ import { BillPayWidget as e } from "../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index81.js";
2
2
  import "../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js";
3
3
  export { e as BillPayWidget };
@@ -1,3 +1,3 @@
1
- import { LinkedAccountsWidget as e } from "../libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/index9.js";
1
+ import { LinkedAccountsWidget as e } from "../libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/index10.js";
2
2
  import "../libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/index.js";
3
3
  export { e as LinkedAccountsWidget };
@@ -1,4 +1,4 @@
1
- //#region ../../libs/shared/util-validation/dist/index22.js
1
+ //#region ../../libs/shared/util-validation/dist/index23.js
2
2
  function e(e) {
3
3
  let t = typeof e == "string" ? Number(e) : e;
4
4
  return typeof t == "number" && Number.isFinite(t) ? t : Infinity;
@@ -0,0 +1,6 @@
1
+ //#region ../../libs/shared/util-validation/dist/index7.js
2
+ function e(e, t) {
3
+ return e.filter((e) => e.organizationId === t);
4
+ }
5
+ //#endregion
6
+ export { e as filterUsersForOrganization };
@@ -2,13 +2,14 @@ import { useEmbedApi as e } from "../../../shared/data-access/dist/lib/EmbedApiC
2
2
  import "../../../shared/data-access/dist/index.js";
3
3
  import { isLiveScheduledPaymentRecord as t } from "./index3.js";
4
4
  import "./index4.js";
5
- import { useApprovePayableApprovalRequestMutation as n, usePayableApprovalRequestsQuery as r, useRejectPayableApprovalRequestMutation as i } from "./index6.js";
6
- import { usePayableHistoryQuery as a } from "./index7.js";
7
- import { useAllPayableLineItemsQuery as o, useReplacePayableLineItemsMutation as s } from "./index8.js";
8
- import { usePayablePaymentRecordsQuery as c } from "./index9.js";
9
- import { useSchedulePaymentMutation as l } from "./index10.js";
10
- import { useAttachPayableFileMutation as u, useCancelPayableMutation as d, useCancelScheduledPaymentMutation as f, useCreatePayableMutation as p, useDeletePayableFileMutation as m, useDeletePayableMutation as h, useForceApprovePayableMutation as g, useForceRejectPayableMutation as _, useMarkPayableAsPaidMutation as v, useReopenPayableMutation as y, useSubmitPayableForApprovalMutation as b, useUpdatePayableMutation as x, useUploadPayableFromFileMutation as S, useValidatePayableMutation as C } from "./index11.js";
11
- import { usePayableOcrQueries as w } from "./index13.js";
12
- import { usePayableQuery as T, usePayablesQuery as E, usePayablesTotalCountQuery as D } from "./index14.js";
13
- import { usePayableSuggestionsQuery as O } from "./index15.js";
14
- export { t as isLiveScheduledPaymentRecord, o as useAllPayableLineItemsQuery, n as useApprovePayableApprovalRequestMutation, u as useAttachPayableFileMutation, d as useCancelPayableMutation, f as useCancelScheduledPaymentMutation, p as useCreatePayableMutation, m as useDeletePayableFileMutation, h as useDeletePayableMutation, e as useEmbedApi, g as useForceApprovePayableMutation, _ as useForceRejectPayableMutation, v as useMarkPayableAsPaidMutation, r as usePayableApprovalRequestsQuery, a as usePayableHistoryQuery, w as usePayableOcrQueries, c as usePayablePaymentRecordsQuery, T as usePayableQuery, O as usePayableSuggestionsQuery, E as usePayablesQuery, D as usePayablesTotalCountQuery, i as useRejectPayableApprovalRequestMutation, y as useReopenPayableMutation, s as useReplacePayableLineItemsMutation, l as useSchedulePaymentMutation, b as useSubmitPayableForApprovalMutation, x as useUpdatePayableMutation, S as useUploadPayableFromFileMutation, C as useValidatePayableMutation };
5
+ import { DuplicateVerdict as n, hasSuspectedPayableDuplicate as r, suspectedPayableDuplicates as i, useApplyDuplicateVerdictsMutation as a } from "./index6.js";
6
+ import { useApprovePayableApprovalRequestMutation as o, usePayableApprovalRequestsQuery as s, useRejectPayableApprovalRequestMutation as c } from "./index7.js";
7
+ import { usePayableHistoryQuery as l } from "./index8.js";
8
+ import { useAllPayableLineItemsQuery as u, useReplacePayableLineItemsMutation as d } from "./index9.js";
9
+ import { usePayablePaymentRecordsQuery as f } from "./index10.js";
10
+ import { useSchedulePaymentMutation as p } from "./index11.js";
11
+ import { useAttachPayableFileMutation as m, useCancelPayableMutation as h, useCancelScheduledPaymentMutation as g, useCreatePayableMutation as _, useDeletePayableFileMutation as v, useDeletePayableMutation as y, useForceApprovePayableMutation as b, useForceRejectPayableMutation as x, useMarkPayableAsPaidMutation as S, useReopenPayableMutation as C, useSubmitPayableForApprovalMutation as w, useUpdatePayableMutation as T, useUploadPayableFromFileMutation as E, useValidatePayableMutation as D } from "./index12.js";
12
+ import { usePayableOcrQueries as O } from "./index14.js";
13
+ import { useAllSuspectedDuplicatePayablesQuery as k, usePayableQuery as A, usePayablesQuery as j, usePayablesTotalCountQuery as M } from "./index15.js";
14
+ import { usePayableSuggestionsQuery as N } from "./index16.js";
15
+ export { n as DuplicateVerdict, r as hasSuspectedPayableDuplicate, t as isLiveScheduledPaymentRecord, i as suspectedPayableDuplicates, u as useAllPayableLineItemsQuery, k as useAllSuspectedDuplicatePayablesQuery, a as useApplyDuplicateVerdictsMutation, o as useApprovePayableApprovalRequestMutation, m as useAttachPayableFileMutation, h as useCancelPayableMutation, g as useCancelScheduledPaymentMutation, _ as useCreatePayableMutation, v as useDeletePayableFileMutation, y as useDeletePayableMutation, e as useEmbedApi, b as useForceApprovePayableMutation, x as useForceRejectPayableMutation, S as useMarkPayableAsPaidMutation, s as usePayableApprovalRequestsQuery, l as usePayableHistoryQuery, O as usePayableOcrQueries, f as usePayablePaymentRecordsQuery, A as usePayableQuery, N as usePayableSuggestionsQuery, j as usePayablesQuery, M as usePayablesTotalCountQuery, c as useRejectPayableApprovalRequestMutation, C as useReopenPayableMutation, d as useReplacePayableLineItemsMutation, p as useSchedulePaymentMutation, w as useSubmitPayableForApprovalMutation, T as useUpdatePayableMutation, E as useUploadPayableFromFileMutation, D as useValidatePayableMutation };
@@ -4,42 +4,51 @@
4
4
  "use client";
5
5
  import { useEmbedApi as e } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
6
6
  import { organizationHeaders as t } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
7
- import { postPayablesIdSchedulePayment as n } from "../../../shared/data-access/dist/lib/rest/sdk.gen.js";
7
+ import { getPaymentRecords as n } from "../../../shared/data-access/dist/lib/rest/sdk.gen.js";
8
+ import { getPaymentRecordsOptions as r } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
9
+ import { withAuthEpoch as i } from "../../../shared/data-access/dist/lib/withAuthEpoch.js";
10
+ import { getAllPagesNextPaginationTokenParam as a, isAllPagesResolving as o, useAutoFetchNextPage as s } from "../../../shared/data-access/dist/lib/allPages.js";
8
11
  import "../../../shared/data-access/dist/index.js";
9
- import { invalidatePayableQueries as r, reconcileScheduledPaymentQueries as i } from "./index5.js";
10
- import { useMutation as a } from "@tanstack/react-query";
12
+ import { useMemo as c } from "react";
13
+ import { useInfiniteQuery as l } from "@tanstack/react-query";
11
14
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index10.js
12
- function o() {
13
- let { client: o, organizationId: s } = e();
14
- return a({
15
- mutationFn: async ({ payableId: e, paymentDate: r, sourceBankAccountId: i }) => {
16
- let { data: a } = await n({
17
- client: o,
18
- headers: t(s),
19
- path: { payable_id: e },
20
- body: {
21
- payment_date: r,
22
- source_bank_account_id: i
15
+ var u = 100;
16
+ function d(d, { enabled: f } = {}) {
17
+ let { client: p, organizationId: m, widgetToken: h, authEpoch: g } = e(), _ = t(m), v = !!(m && h && d) && f !== !1, y = {
18
+ limit: u,
19
+ object_id__in: d ? [d] : [],
20
+ order: "desc",
21
+ sort: "paid_at"
22
+ }, b = r({
23
+ client: p,
24
+ headers: _,
25
+ query: y
26
+ }), x = l({
27
+ queryKey: [...i(b, g).queryKey, "all"],
28
+ enabled: v,
29
+ initialPageParam: void 0,
30
+ queryFn: async ({ signal: e, pageParam: t }) => {
31
+ let { data: r } = await n({
32
+ client: p,
33
+ headers: _,
34
+ query: {
35
+ ...y,
36
+ ...t ? { pagination_token: t } : {}
23
37
  },
38
+ signal: e,
24
39
  throwOnError: !0
25
40
  });
26
- return a;
41
+ return r;
27
42
  },
28
- onSuccess: async (e, t) => {
29
- try {
30
- await r({
31
- client: o,
32
- organizationId: s,
33
- payableId: t.payableId
34
- });
35
- } catch {}
36
- i({
37
- client: o,
38
- organizationId: s,
39
- payableId: t.payableId
40
- }).catch(() => {});
41
- }
43
+ getNextPageParam: a
42
44
  });
45
+ s(x, v);
46
+ let S = c(() => x.data?.pages.flatMap((e) => e.data ?? []) ?? [], [x.data]);
47
+ return {
48
+ ...x,
49
+ paymentRecords: S,
50
+ isResolving: v && o(x)
51
+ };
43
52
  }
44
53
  //#endregion
45
- export { o as useSchedulePaymentMutation };
54
+ export { d as usePayablePaymentRecordsQuery };
@@ -4,327 +4,42 @@
4
4
  "use client";
5
5
  import { useEmbedApi as e } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
6
6
  import { organizationHeaders as t } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
7
- import { deletePayablesId as n, deletePayablesIdFile as r, patchPayablesId as i, postPayables as a, postPayablesIdApprovePaymentOperation as o, postPayablesIdAttachFile as s, postPayablesIdCancel as c, postPayablesIdMarkAsPaid as l, postPayablesIdReject as u, postPayablesIdReopen as d, postPayablesIdSubmitForApproval as f, postPayablesIdValidate as p, postPayablesUploadFromFile as m, postPaymentIntentsIdCancel as h } from "../../../shared/data-access/dist/lib/rest/sdk.gen.js";
7
+ import { postPayablesIdSchedulePayment as n } from "../../../shared/data-access/dist/lib/rest/sdk.gen.js";
8
8
  import "../../../shared/data-access/dist/index.js";
9
- import { beginApprovalRequestWatch as g, invalidateDeletedPayableQueries as _, invalidatePayableQueries as v, reconcileCancelledPaymentQueries as y, reconcileSubmittedForApprovalQueries as b } from "./index5.js";
10
- import { useMutation as x } from "@tanstack/react-query";
9
+ import { invalidatePayableQueries as r, reconcileScheduledPaymentQueries as i } from "./index5.js";
10
+ import { useMutation as a } from "@tanstack/react-query";
11
11
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index11.js
12
- function S() {
13
- let { client: n, organizationId: r } = e();
14
- return x({
15
- mutationFn: async ({ body: e }) => {
16
- let { data: i } = await a({
17
- client: n,
18
- headers: t(r),
19
- body: e,
20
- throwOnError: !0
21
- });
22
- return i;
23
- },
24
- onSuccess: async () => {
25
- await v({
26
- client: n,
27
- organizationId: r
28
- });
29
- }
30
- });
31
- }
32
- function C() {
33
- let { client: n, organizationId: r } = e();
34
- return x({
35
- mutationFn: async ({ path: e, body: a }) => {
36
- let { data: o } = await i({
37
- client: n,
38
- headers: t(r),
39
- path: e,
40
- body: a,
41
- throwOnError: !0
42
- });
43
- return o;
44
- },
45
- onSuccess: async (e, t) => {
46
- await v({
47
- client: n,
48
- organizationId: r,
49
- payableId: t.path.payable_id
50
- });
51
- }
52
- });
53
- }
54
- function w() {
55
- let { client: r, organizationId: i } = e();
56
- return x({
57
- mutationFn: async ({ path: e }) => {
58
- await n({
59
- client: r,
60
- headers: t(i),
61
- path: e,
62
- throwOnError: !0
63
- });
64
- },
65
- onSuccess: async (e, t) => {
66
- await _({
67
- client: r,
68
- organizationId: i,
69
- payableId: t.path.payable_id
70
- });
71
- }
72
- });
73
- }
74
- function T() {
75
- let { client: n, organizationId: r } = e();
76
- return x({
77
- mutationFn: async ({ file: e }) => {
78
- let { data: a } = await m({
79
- client: n,
80
- headers: t(r),
81
- body: { file: e },
82
- throwOnError: !0
83
- });
84
- if (a?.id && a.currency !== "USD") try {
85
- return await i({
86
- client: n,
87
- headers: t(r),
88
- path: { payable_id: a.id },
89
- body: { currency: "USD" },
90
- throwOnError: !0
91
- }), {
92
- ...a,
93
- currency: "USD"
94
- };
95
- } catch {}
96
- return a;
97
- },
98
- onSuccess: async () => {
99
- await v({
100
- client: n,
101
- organizationId: r
102
- });
103
- }
104
- });
105
- }
106
- function E() {
107
- let { client: n, organizationId: r } = e();
108
- return x({
109
- mutationFn: async ({ path: e, file: i }) => {
110
- let { data: a } = await s({
111
- client: n,
112
- headers: t(r),
113
- path: e,
114
- body: { file: i },
12
+ function o() {
13
+ let { client: o, organizationId: s } = e();
14
+ return a({
15
+ mutationFn: async ({ payableId: e, paymentDate: r, sourceBankAccountId: i }) => {
16
+ let { data: a } = await n({
17
+ client: o,
18
+ headers: t(s),
19
+ path: { payable_id: e },
20
+ body: {
21
+ payment_date: r,
22
+ source_bank_account_id: i
23
+ },
115
24
  throwOnError: !0
116
25
  });
117
26
  return a;
118
27
  },
119
28
  onSuccess: async (e, t) => {
120
- await v({
121
- client: n,
122
- organizationId: r,
123
- payableId: t.path.payable_id
124
- });
125
- }
126
- });
127
- }
128
- function D() {
129
- let { client: n, organizationId: i } = e();
130
- return x({
131
- mutationFn: async ({ path: e }) => {
132
- await r({
133
- client: n,
134
- headers: t(i),
135
- path: e,
136
- throwOnError: !0
137
- });
138
- },
139
- onSuccess: async (e, t) => {
140
- await v({
141
- client: n,
142
- organizationId: i,
143
- payableId: t.path.payable_id
144
- });
145
- }
146
- });
147
- }
148
- function O() {
149
- let { client: n, organizationId: r } = e();
150
- return x({ mutationFn: async ({ path: e }) => {
151
- let { data: i } = await p({
152
- client: n,
153
- headers: t(r),
154
- path: e,
155
- throwOnError: !0
156
- });
157
- return {
158
- id: i.id,
159
- validation_errors: i.validation_errors ?? []
160
- };
161
- } });
162
- }
163
- function k() {
164
- let { client: n, organizationId: r } = e();
165
- return x({
166
- onMutate: async ({ path: e }) => g({
167
- client: n,
168
- organizationId: r,
169
- payableId: e.payable_id
170
- }, { requireRoundMarker: !0 }),
171
- mutationFn: async ({ path: e }) => {
172
- let { data: i } = await f({
173
- client: n,
174
- headers: t(r),
175
- path: e,
176
- throwOnError: !0
177
- });
178
- return i;
179
- },
180
- onSuccess: async (e, t, i) => {
181
- let a = t.path.payable_id, o = e?.status === "approve_in_progress";
182
- await v({
183
- client: n,
184
- organizationId: r,
185
- payableId: a,
186
- includeApprovalRequests: !0
187
- }), !(!o || !i) && b({
188
- client: n,
189
- organizationId: r,
190
- payableId: a,
191
- watch: i
192
- }).catch(() => {});
193
- }
194
- });
195
- }
196
- function A() {
197
- let { client: n, organizationId: r } = e();
198
- return x({
199
- mutationFn: async ({ path: e }) => {
200
- let { data: i } = await o({
201
- client: n,
202
- headers: t(r),
203
- path: e,
204
- throwOnError: !0
205
- });
206
- return i;
207
- },
208
- onSuccess: async (e, t) => {
209
- await v({
210
- client: n,
211
- organizationId: r,
212
- payableId: t.path.payable_id,
213
- includeApprovalRequests: !0
214
- });
215
- }
216
- });
217
- }
218
- function j() {
219
- let { client: n, organizationId: r } = e();
220
- return x({
221
- mutationFn: async ({ path: e }) => {
222
- let { data: i } = await u({
223
- client: n,
224
- headers: t(r),
225
- path: e,
226
- throwOnError: !0
227
- });
228
- return i;
229
- },
230
- onSuccess: async (e, t) => {
231
- await v({
232
- client: n,
233
- organizationId: r,
234
- payableId: t.path.payable_id,
235
- includeApprovalRequests: !0
236
- });
237
- }
238
- });
239
- }
240
- function M() {
241
- let { client: n, organizationId: r } = e();
242
- return x({
243
- mutationFn: async ({ path: e }) => {
244
- let { data: i } = await c({
245
- client: n,
246
- headers: t(r),
247
- path: e,
248
- throwOnError: !0
249
- });
250
- return i;
251
- },
252
- onSuccess: async (e, t) => {
253
- await v({
254
- client: n,
255
- organizationId: r,
256
- payableId: t.path.payable_id
257
- });
258
- }
259
- });
260
- }
261
- function N() {
262
- let { client: n, organizationId: r } = e();
263
- return x({
264
- mutationFn: async ({ path: e }) => {
265
- let { data: i } = await h({
266
- client: n,
267
- headers: t(r),
268
- path: e,
269
- throwOnError: !0
270
- });
271
- return i;
272
- },
273
- onSuccess: async (e, t) => {
274
- await v({
275
- client: n,
276
- organizationId: r,
277
- payableId: t.payableId
278
- }), y({
279
- client: n,
280
- organizationId: r,
29
+ try {
30
+ await r({
31
+ client: o,
32
+ organizationId: s,
33
+ payableId: t.payableId
34
+ });
35
+ } catch {}
36
+ i({
37
+ client: o,
38
+ organizationId: s,
281
39
  payableId: t.payableId
282
40
  }).catch(() => {});
283
41
  }
284
42
  });
285
43
  }
286
- function P() {
287
- let { client: n, organizationId: r } = e();
288
- return x({
289
- mutationFn: async ({ path: e }) => {
290
- let { data: i } = await d({
291
- client: n,
292
- headers: t(r),
293
- path: e,
294
- throwOnError: !0
295
- });
296
- return i;
297
- },
298
- onSuccess: async (e, t) => {
299
- await v({
300
- client: n,
301
- organizationId: r,
302
- payableId: t.path.payable_id
303
- });
304
- }
305
- });
306
- }
307
- function F() {
308
- let { client: n, organizationId: r } = e();
309
- return x({
310
- mutationFn: async ({ path: e, body: i }) => {
311
- let { data: a } = await l({
312
- client: n,
313
- headers: t(r),
314
- path: e,
315
- body: i,
316
- throwOnError: !0
317
- });
318
- return a;
319
- },
320
- onSuccess: async (e, t) => {
321
- await v({
322
- client: n,
323
- organizationId: r,
324
- payableId: t.path.payable_id
325
- });
326
- }
327
- });
328
- }
329
44
  //#endregion
330
- export { E as useAttachPayableFileMutation, M as useCancelPayableMutation, N as useCancelScheduledPaymentMutation, S as useCreatePayableMutation, D as useDeletePayableFileMutation, w as useDeletePayableMutation, A as useForceApprovePayableMutation, j as useForceRejectPayableMutation, F as useMarkPayableAsPaidMutation, P as useReopenPayableMutation, k as useSubmitPayableForApprovalMutation, C as useUpdatePayableMutation, T as useUploadPayableFromFileMutation, O as useValidatePayableMutation };
45
+ export { o as useSchedulePaymentMutation };