@tesouro/embedded-components-react 0.5.279 → 0.5.281

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 (153) hide show
  1. package/dist/index.css +8 -0
  2. package/dist/index.d.ts +23 -8
  3. package/dist/lib/BankAccountOnboardingWidget.d.ts +2 -2
  4. package/dist/lib/ReceivablesWidget.d.ts +21 -6
  5. package/dist/lib/WidgetSuite.d.ts +2 -2
  6. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/labels.js +2 -2
  7. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index30.js +1 -1
  8. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index18.js +1 -0
  9. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index.js +6 -6
  10. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index13.js +8 -8
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index14.js +7 -28
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index15.js +8 -160
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index16.js +20 -13
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index17.js +148 -27
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index18.js +21 -96
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index19.js +37 -79
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index20.js +98 -3
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index21.js +83 -54
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index22.js +3 -113
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index23.js +54 -184
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index24.js +108 -75
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index25.js +181 -29
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index26.js +74 -83
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index27.js +27 -412
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index28.js +88 -12
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index29.js +413 -77
  27. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index30.js +13 -80
  28. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index31.js +77 -226
  29. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index32.js +78 -41
  30. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index33.js +216 -234
  31. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index34.js +44 -23
  32. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index35.js +233 -611
  33. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index36.js +25 -4
  34. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index37.js +647 -39
  35. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index38.js +4 -243
  36. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index39.js +42 -3
  37. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index40.js +250 -3
  38. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index41.js +2 -66
  39. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index42.js +5 -1
  40. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index43.js +67 -0
  41. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index44.js +1 -0
  42. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index12.js +11 -11
  43. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index15.js +47 -47
  44. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/lib/invalidatePayableQueries/invalidatePayableQueries.js +2 -2
  45. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/lib/invalidatePayableQueries/reconcileCancelledPaymentQueries.js +19 -19
  46. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidgetNative/BillsTab.js +1 -1
  47. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/data-access/dist/index4.js +15 -15
  48. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index.js +14 -13
  49. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index10.js +24 -168
  50. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index11.js +173 -44
  51. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index12.js +42 -94
  52. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index13.js +91 -76
  53. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index14.js +67 -173
  54. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index15.js +186 -17
  55. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index16.js +27 -0
  56. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index3.js +11 -13
  57. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index4.js +42 -27
  58. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index5.js +28 -132
  59. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index6.js +137 -16
  60. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index7.js +16 -62
  61. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index8.js +66 -28
  62. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index9.js +28 -34
  63. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivableAttachmentsSection.js +1 -1
  64. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivableCustomerSection.js +38 -0
  65. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivablesWidget.js +304 -287
  66. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/auditHistory/labels.js +1 -1
  67. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/customer.js +58 -0
  68. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/helpers.js +15 -15
  69. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/labels.js +14 -6
  70. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/paymentTerms.js +1 -1
  71. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/permissions.js +2 -1
  72. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/preview.js +62 -62
  73. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/recurrence.js +41 -35
  74. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/reminders.js +1 -1
  75. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/totals.js +21 -13
  76. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableActions.js +124 -124
  77. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableActionsModal.js +11 -11
  78. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableAttachmentUploads.js +13 -13
  79. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableBankAccount.js +1 -1
  80. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableCustomerPicker.js +109 -0
  81. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableDetails.js +6 -6
  82. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableForm.js +520 -476
  83. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableIssuePreflight.js +10 -10
  84. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablePaymentRecord.js +6 -6
  85. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablePaymentTerms.js +1 -1
  86. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablePreview.js +1 -1
  87. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableRecurrence.js +92 -77
  88. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableReminders.js +11 -11
  89. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableStatusCards.js +1 -1
  90. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablesTable.js +4 -4
  91. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablesWidget.js +79 -75
  92. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useSendReceivableWithPaymentLink.js +3 -3
  93. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index.js +26 -23
  94. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index12.js +9 -25
  95. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index13.js +26 -228
  96. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index14.js +227 -52
  97. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index15.js +50 -212
  98. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index16.js +193 -138
  99. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index17.js +157 -12
  100. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index18.js +10 -19
  101. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index19.js +23 -2
  102. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index20.js +2 -116
  103. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index21.js +118 -3
  104. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index22.js +3 -39
  105. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index23.js +209 -53
  106. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index24.js +2 -23
  107. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index25.js +36 -7
  108. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index26.js +53 -77
  109. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index27.js +17 -35
  110. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index28.js +8 -18
  111. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index29.js +73 -37
  112. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index30.js +36 -26
  113. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index31.js +17 -19
  114. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index32.js +39 -8
  115. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index33.js +26 -33
  116. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index34.js +20 -14
  117. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index35.js +8 -24
  118. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index36.js +34 -84
  119. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index37.js +14 -492
  120. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index38.js +28 -2
  121. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index39.js +79 -39
  122. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index40.js +490 -68
  123. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index41.js +2 -487
  124. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index42.js +41 -217
  125. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index43.js +70 -21
  126. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index44.js +440 -5
  127. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index45.js +224 -0
  128. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index46.js +21 -263
  129. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index47.js +8 -2
  130. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index49.js +261 -24
  131. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index50.js +2 -237
  132. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index51.js +100 -3
  133. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index52.js +21 -242
  134. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index53.js +226 -82
  135. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index54.js +3 -60
  136. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index55.js +233 -178
  137. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index56.js +85 -37
  138. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index57.js +60 -0
  139. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index58.js +194 -0
  140. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index59.js +45 -0
  141. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/index.js +9 -9
  142. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/CounterpartSelector.js +2 -23
  143. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/useCounterpartSelector.js +2 -51
  144. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index.js +8 -8
  145. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index15.js +4 -80
  146. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index2.js +10 -22
  147. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/zod.gen.js +2 -0
  148. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/user/useAllOrganizationUsersQuery.js +1 -0
  149. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  150. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/OnboardingShell/OnboardingShell.js +1 -1
  151. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/OnboardingShell/labels.js +2 -2
  152. package/package.json +1 -1
  153. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index48.js +0 -100
@@ -2,181 +2,37 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { deleteReceivablesId as e, patchReceivablesId as t, postReceivables as n, postReceivablesIdAccept as r, postReceivablesIdCancel as i, postReceivablesIdClone as a, postReceivablesIdDecline as o, postReceivablesIdIssue as s } from "../../../shared/data-access/dist/lib/rest/sdk.gen.js";
6
- import { useEmbedApi as c } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
7
- import { organizationHeaders as l } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
5
+ import { postReceivablesIdSend as e } from "../../../shared/data-access/dist/lib/rest/sdk.gen.js";
6
+ import { invalidateAllClients as t } from "../../../shared/data-access/dist/lib/clientRegistry.js";
7
+ import { useEmbedApi as n } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
8
+ import { organizationHeaders as r } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
8
9
  import "../../../shared/data-access/dist/index.js";
9
- import { invalidateReceivable as u } from "./index8.js";
10
- import { useMutation as d } from "@tanstack/react-query";
10
+ import { receivableMailsInvalidationKey as i } from "./index2.js";
11
+ import { invalidateReceivable as a } from "./index9.js";
12
+ import { useMutation as o } from "@tanstack/react-query";
11
13
  //#region ../../libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index10.js
12
- function f() {
13
- let { client: e, organizationId: t } = c();
14
- return d({
15
- mutationFn: async ({ body: r }) => {
16
- let { data: i } = await n({
17
- client: e,
18
- headers: l(t),
19
- body: r,
14
+ function s() {
15
+ let { client: s, organizationId: c } = n();
16
+ return o({
17
+ mutationFn: async ({ path: t, body: n }) => {
18
+ let { data: i } = await e({
19
+ client: s,
20
+ headers: r(c),
21
+ path: t,
22
+ body: n,
20
23
  throwOnError: !0
21
24
  });
22
25
  return i;
23
26
  },
24
- onSuccess: async () => {
25
- await u({
26
- client: e,
27
- organizationId: t
28
- });
29
- }
30
- });
31
- }
32
- function p() {
33
- let { client: e, organizationId: n } = c();
34
- return d({
35
- mutationFn: async ({ path: r, body: i }) => {
36
- let { data: a } = await t({
37
- client: e,
38
- headers: l(n),
39
- path: r,
40
- body: i,
41
- throwOnError: !0
42
- });
43
- return a;
44
- },
45
- onSuccess: async (t, r) => {
46
- await u({
47
- client: e,
48
- organizationId: n,
49
- receivableId: r.path.receivable_id,
50
- resetPdf: !0
51
- });
52
- }
53
- });
54
- }
55
- function m() {
56
- let { client: t, organizationId: n } = c();
57
- return d({
58
- mutationFn: async ({ path: r }) => {
59
- await e({
60
- client: t,
61
- headers: l(n),
62
- path: r,
63
- throwOnError: !0
64
- });
65
- },
66
- onSuccess: async (e, r) => {
67
- await u({
68
- client: t,
69
- organizationId: n,
70
- receivableId: r.path.receivable_id
71
- });
72
- }
73
- });
74
- }
75
- function h() {
76
- let { client: e, organizationId: t } = c();
77
- return d({
78
- mutationFn: async ({ path: n }) => {
79
- let { data: r } = await s({
80
- client: e,
81
- headers: l(t),
82
- path: n,
83
- throwOnError: !0
84
- });
85
- return r;
86
- },
87
- onSuccess: async (n, r) => {
88
- await u({
89
- client: e,
90
- organizationId: t,
91
- receivableId: r.path.receivable_id,
92
- resetPdf: !0
93
- });
94
- }
95
- });
96
- }
97
- function g() {
98
- let { client: e, organizationId: t } = c();
99
- return d({
100
- mutationFn: async ({ path: n }) => {
101
- await i({
102
- client: e,
103
- headers: l(t),
104
- path: n,
105
- throwOnError: !0
106
- });
107
- },
108
- onSuccess: async (n, r) => {
109
- await u({
110
- client: e,
111
- organizationId: t,
112
- receivableId: r.path.receivable_id
113
- });
114
- }
115
- });
116
- }
117
- function _() {
118
- let { client: e, organizationId: t } = c();
119
- return d({
120
- mutationFn: async ({ path: n }) => {
121
- let { data: r } = await a({
122
- client: e,
123
- headers: l(t),
124
- path: n,
125
- throwOnError: !0
126
- });
127
- return r;
128
- },
129
- onSuccess: async () => {
130
- await u({
131
- client: e,
132
- organizationId: t
133
- });
134
- }
135
- });
136
- }
137
- function v() {
138
- let { client: e, organizationId: t } = c();
139
- return d({
140
- mutationFn: async ({ path: n, body: i }) => {
141
- let { data: a } = await r({
142
- client: e,
143
- headers: l(t),
144
- path: n,
145
- body: i,
146
- throwOnError: !0
147
- });
148
- return a;
149
- },
150
- onSuccess: async (n, r) => {
151
- await u({
152
- client: e,
153
- organizationId: t,
154
- receivableId: r.path.receivable_id
155
- });
156
- }
157
- });
158
- }
159
- function y() {
160
- let { client: e, organizationId: t } = c();
161
- return d({
162
- mutationFn: async ({ path: n, body: r }) => {
163
- let { data: i } = await o({
164
- client: e,
165
- headers: l(t),
166
- path: n,
167
- body: r,
168
- throwOnError: !0
169
- });
170
- return i;
171
- },
172
- onSuccess: async (n, r) => {
173
- await u({
174
- client: e,
175
- organizationId: t,
176
- receivableId: r.path.receivable_id
177
- });
27
+ onSuccess: async (e, n) => {
28
+ let r = {
29
+ client: s,
30
+ organizationId: c,
31
+ receivableId: n.path.receivable_id
32
+ };
33
+ await Promise.all([t(i(r)), a(r)]);
178
34
  }
179
35
  });
180
36
  }
181
37
  //#endregion
182
- export { v as useAcceptReceivableMutation, g as useCancelReceivableMutation, _ as useCloneReceivableMutation, f as useCreateReceivableMutation, y as useDeclineReceivableMutation, m as useDeleteReceivableMutation, h as useIssueReceivableMutation, p as useUpdateReceivableMutation };
38
+ export { s as useSendReceivableEmailMutation };
@@ -2,52 +2,181 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { getPaymentRecords as e } from "../../../shared/data-access/dist/lib/rest/sdk.gen.js";
6
- import { getPaymentRecordsQueryKey as t } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
7
- import { withAuthEpoch as n } from "../../../shared/data-access/dist/lib/withAuthEpoch.js";
8
- import { useEmbedApi as r } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
9
- import { organizationHeaders as i } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
5
+ import { deleteReceivablesId as e, patchReceivablesId as t, postReceivables as n, postReceivablesIdAccept as r, postReceivablesIdCancel as i, postReceivablesIdClone as a, postReceivablesIdDecline as o, postReceivablesIdIssue as s } from "../../../shared/data-access/dist/lib/rest/sdk.gen.js";
6
+ import { useEmbedApi as c } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
7
+ import { organizationHeaders as l } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
10
8
  import "../../../shared/data-access/dist/index.js";
11
- import { queryOptions as a, useQuery as o } from "@tanstack/react-query";
9
+ import { invalidateReceivable as u } from "./index9.js";
10
+ import { useMutation as d } from "@tanstack/react-query";
12
11
  //#region ../../libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index11.js
13
- var s = 100;
14
- function c(c, { enabled: l = !0 } = {}) {
15
- let { client: u, organizationId: d, widgetToken: f, authEpoch: p, organizationStatus: m } = r(), h = i(d), g = {
16
- object_id: c ?? "",
17
- limit: s
18
- }, _ = a({
19
- queryKey: [...t({
20
- client: u,
21
- headers: h,
22
- query: g
23
- }), "all"],
24
- queryFn: async ({ signal: t }) => {
25
- let n = [], r = /* @__PURE__ */ new Set(), i;
26
- do {
27
- let { data: a } = await e({
28
- client: u,
29
- headers: h,
30
- query: {
31
- ...g,
32
- ...i ? { pagination_token: i } : {}
33
- },
34
- signal: t,
35
- throwOnError: !0
36
- });
37
- n.push(...a.data ?? []);
38
- let o = a.next_pagination_token ?? void 0;
39
- i = o && !r.has(o) ? o : void 0, i && r.add(i);
40
- } while (i);
41
- return { data: n };
42
- }
43
- });
44
- return o({
45
- ...n(_, {
46
- authEpoch: p,
47
- organizationStatus: m
48
- }),
49
- enabled: !!(d && f && c) && l
12
+ function f() {
13
+ let { client: e, organizationId: t } = c();
14
+ return d({
15
+ mutationFn: async ({ body: r }) => {
16
+ let { data: i } = await n({
17
+ client: e,
18
+ headers: l(t),
19
+ body: r,
20
+ throwOnError: !0
21
+ });
22
+ return i;
23
+ },
24
+ onSuccess: async () => {
25
+ await u({
26
+ client: e,
27
+ organizationId: t
28
+ });
29
+ }
30
+ });
31
+ }
32
+ function p() {
33
+ let { client: e, organizationId: n } = c();
34
+ return d({
35
+ mutationFn: async ({ path: r, body: i }) => {
36
+ let { data: a } = await t({
37
+ client: e,
38
+ headers: l(n),
39
+ path: r,
40
+ body: i,
41
+ throwOnError: !0
42
+ });
43
+ return a;
44
+ },
45
+ onSuccess: async (t, r) => {
46
+ await u({
47
+ client: e,
48
+ organizationId: n,
49
+ receivableId: r.path.receivable_id,
50
+ resetPdf: !0
51
+ });
52
+ }
53
+ });
54
+ }
55
+ function m() {
56
+ let { client: t, organizationId: n } = c();
57
+ return d({
58
+ mutationFn: async ({ path: r }) => {
59
+ await e({
60
+ client: t,
61
+ headers: l(n),
62
+ path: r,
63
+ throwOnError: !0
64
+ });
65
+ },
66
+ onSuccess: async (e, r) => {
67
+ await u({
68
+ client: t,
69
+ organizationId: n,
70
+ receivableId: r.path.receivable_id
71
+ });
72
+ }
73
+ });
74
+ }
75
+ function h() {
76
+ let { client: e, organizationId: t } = c();
77
+ return d({
78
+ mutationFn: async ({ path: n }) => {
79
+ let { data: r } = await s({
80
+ client: e,
81
+ headers: l(t),
82
+ path: n,
83
+ throwOnError: !0
84
+ });
85
+ return r;
86
+ },
87
+ onSuccess: async (n, r) => {
88
+ await u({
89
+ client: e,
90
+ organizationId: t,
91
+ receivableId: r.path.receivable_id,
92
+ resetPdf: !0
93
+ });
94
+ }
95
+ });
96
+ }
97
+ function g() {
98
+ let { client: e, organizationId: t } = c();
99
+ return d({
100
+ mutationFn: async ({ path: n }) => {
101
+ await i({
102
+ client: e,
103
+ headers: l(t),
104
+ path: n,
105
+ throwOnError: !0
106
+ });
107
+ },
108
+ onSuccess: async (n, r) => {
109
+ await u({
110
+ client: e,
111
+ organizationId: t,
112
+ receivableId: r.path.receivable_id
113
+ });
114
+ }
115
+ });
116
+ }
117
+ function _() {
118
+ let { client: e, organizationId: t } = c();
119
+ return d({
120
+ mutationFn: async ({ path: n }) => {
121
+ let { data: r } = await a({
122
+ client: e,
123
+ headers: l(t),
124
+ path: n,
125
+ throwOnError: !0
126
+ });
127
+ return r;
128
+ },
129
+ onSuccess: async () => {
130
+ await u({
131
+ client: e,
132
+ organizationId: t
133
+ });
134
+ }
135
+ });
136
+ }
137
+ function v() {
138
+ let { client: e, organizationId: t } = c();
139
+ return d({
140
+ mutationFn: async ({ path: n, body: i }) => {
141
+ let { data: a } = await r({
142
+ client: e,
143
+ headers: l(t),
144
+ path: n,
145
+ body: i,
146
+ throwOnError: !0
147
+ });
148
+ return a;
149
+ },
150
+ onSuccess: async (n, r) => {
151
+ await u({
152
+ client: e,
153
+ organizationId: t,
154
+ receivableId: r.path.receivable_id
155
+ });
156
+ }
157
+ });
158
+ }
159
+ function y() {
160
+ let { client: e, organizationId: t } = c();
161
+ return d({
162
+ mutationFn: async ({ path: n, body: r }) => {
163
+ let { data: i } = await o({
164
+ client: e,
165
+ headers: l(t),
166
+ path: n,
167
+ body: r,
168
+ throwOnError: !0
169
+ });
170
+ return i;
171
+ },
172
+ onSuccess: async (n, r) => {
173
+ await u({
174
+ client: e,
175
+ organizationId: t,
176
+ receivableId: r.path.receivable_id
177
+ });
178
+ }
50
179
  });
51
180
  }
52
181
  //#endregion
53
- export { c as useReceivablePaymentRecordsQuery };
182
+ export { v as useAcceptReceivableMutation, g as useCancelReceivableMutation, _ as useCloneReceivableMutation, f as useCreateReceivableMutation, y as useDeclineReceivableMutation, m as useDeleteReceivableMutation, h as useIssueReceivableMutation, p as useUpdateReceivableMutation };
@@ -2,104 +2,52 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { postPaymentRecords as e, postReceivablesIdMarkAsPaid as t, postReceivablesIdMarkAsUncollectible as n } from "../../../shared/data-access/dist/lib/rest/sdk.gen.js";
6
- import { invalidateAllClients as r } from "../../../shared/data-access/dist/lib/clientRegistry.js";
7
- import { useEmbedApi as i } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
8
- import { organizationHeaders as a } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
5
+ import { getPaymentRecords as e } from "../../../shared/data-access/dist/lib/rest/sdk.gen.js";
6
+ import { getPaymentRecordsQueryKey as t } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
7
+ import { withAuthEpoch as n } from "../../../shared/data-access/dist/lib/withAuthEpoch.js";
8
+ import { useEmbedApi as r } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
9
+ import { organizationHeaders as i } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
9
10
  import "../../../shared/data-access/dist/index.js";
10
- import { paymentRecordsInvalidationKey as o, receivableHistoryInvalidationKey as s, receivableInvalidationKey as c, receivablesAnalyticsInvalidationKey as l, receivablesInvalidationKey as u } from "./index2.js";
11
- import { useMutation as d } from "@tanstack/react-query";
11
+ import { queryOptions as a, useQuery as o } from "@tanstack/react-query";
12
12
  //#region ../../libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index12.js
13
- async function f({ client: e, organizationId: t, receivableId: n }) {
14
- await Promise.all([
15
- r(u({
16
- client: e,
17
- organizationId: t
18
- })),
19
- r(c({
20
- client: e,
21
- organizationId: t,
22
- receivableId: n
23
- })),
24
- r(s({
25
- client: e,
26
- organizationId: t,
27
- receivableId: n
28
- })),
29
- r(l({
30
- client: e,
31
- organizationId: t
32
- })),
33
- r(o({
34
- client: e,
35
- organizationId: t
36
- }))
37
- ]);
38
- }
39
- function p() {
40
- let { client: e, organizationId: n } = i();
41
- return d({
42
- mutationFn: async ({ path: r, body: i }) => {
43
- let { data: o } = await t({
44
- client: e,
45
- headers: a(n),
46
- path: r,
47
- body: i,
48
- throwOnError: !0
49
- });
50
- return o;
51
- },
52
- onSuccess: async (t, r) => {
53
- await f({
54
- client: e,
55
- organizationId: n,
56
- receivableId: r.path.receivable_id
57
- });
58
- }
59
- });
60
- }
61
- function m() {
62
- let { client: t, organizationId: n } = i();
63
- return d({
64
- mutationFn: async ({ body: r }) => {
65
- let { data: i } = await e({
66
- client: t,
67
- headers: a(n),
68
- body: r,
69
- throwOnError: !0
70
- });
71
- return i;
72
- },
73
- onSuccess: async (e, r) => {
74
- await f({
75
- client: t,
76
- organizationId: n,
77
- receivableId: r.body.object.id
78
- });
13
+ var s = 100;
14
+ function c(c, { enabled: l = !0 } = {}) {
15
+ let { client: u, organizationId: d, widgetToken: f, authEpoch: p, organizationStatus: m } = r(), h = i(d), g = {
16
+ object_id: c ?? "",
17
+ limit: s
18
+ }, _ = a({
19
+ queryKey: [...t({
20
+ client: u,
21
+ headers: h,
22
+ query: g
23
+ }), "all"],
24
+ queryFn: async ({ signal: t }) => {
25
+ let n = [], r = /* @__PURE__ */ new Set(), i;
26
+ do {
27
+ let { data: a } = await e({
28
+ client: u,
29
+ headers: h,
30
+ query: {
31
+ ...g,
32
+ ...i ? { pagination_token: i } : {}
33
+ },
34
+ signal: t,
35
+ throwOnError: !0
36
+ });
37
+ n.push(...a.data ?? []);
38
+ let o = a.next_pagination_token ?? void 0;
39
+ i = o && !r.has(o) ? o : void 0, i && r.add(i);
40
+ } while (i);
41
+ return { data: n };
79
42
  }
80
43
  });
81
- }
82
- function h() {
83
- let { client: e, organizationId: t } = i();
84
- return d({
85
- mutationFn: async ({ path: r, body: i }) => {
86
- let { data: o } = await n({
87
- client: e,
88
- headers: a(t),
89
- path: r,
90
- body: i,
91
- throwOnError: !0
92
- });
93
- return o;
94
- },
95
- onSuccess: async (n, r) => {
96
- await f({
97
- client: e,
98
- organizationId: t,
99
- receivableId: r.path.receivable_id
100
- });
101
- }
44
+ return o({
45
+ ...n(_, {
46
+ authEpoch: p,
47
+ organizationStatus: m
48
+ }),
49
+ enabled: !!(d && f && c) && l
102
50
  });
103
51
  }
104
52
  //#endregion
105
- export { m as useCreateReceivablePaymentRecordMutation, p as useMarkReceivablePaidMutation, h as useMarkReceivableUncollectibleMutation };
53
+ export { c as useReceivablePaymentRecordsQuery };