@tesouro/embedded-components-react 0.5.230 → 0.5.232

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 (175) hide show
  1. package/README.md +1 -0
  2. package/dist/index.css +14 -0
  3. package/dist/index.d.ts +125 -22
  4. package/dist/index.js +3 -3
  5. package/dist/lib/ExpenseManagementWidget.d.ts +22 -21
  6. package/dist/lib/ExpenseManagementWidget.js +1 -1
  7. package/dist/lib/ReceivablesWidget.d.ts +104 -2
  8. package/dist/lib/ReceivablesWidget.js +1 -1
  9. package/dist/lib/UploadReceiptWidget.d.ts +2 -2
  10. package/dist/lib/UploadReceiptWidget.js +2 -2
  11. package/dist/lib/WidgetSuite.d.ts +17 -15
  12. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/approval-policies/feature/dist/index.js +3 -0
  13. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/approval-policies/feature/dist/index2.js +5 -0
  14. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/{feature/dist/index24.js → approval-policies/feature/dist/index3.js} +7 -7
  15. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/{feature/dist/index25.js → approval-policies/feature/dist/index4.js} +1 -1
  16. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/{feature/dist/index26.js → approval-policies/feature/dist/index5.js} +1 -1
  17. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/{feature/dist/index27.js → approval-policies/feature/dist/index6.js} +53 -53
  18. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/approval-policies/ui/dist/index.js +8 -0
  19. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/{ui/dist/lib/ExpenseApprovalPoliciesWidget/lib/types.js → approval-policies/ui/dist/index2.js} +1 -1
  20. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/{ui/dist/lib/ExpenseApprovalPoliciesWidget/lib/labels.js → approval-policies/ui/dist/index3.js} +1 -1
  21. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/{ui/dist/lib/ExpenseApprovalPoliciesWidget/lib/conditionLabel.js → approval-policies/ui/dist/index4.js} +1 -1
  22. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/{ui/dist/lib/ExpenseApprovalPoliciesWidget/lib/EmptyApprovalRules.js → approval-policies/ui/dist/index5.js} +3 -3
  23. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/{ui/dist/lib/ExpenseApprovalPoliciesWidget/lib/ApprovalRuleCard.js → approval-policies/ui/dist/index6.js} +5 -5
  24. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/{ui/dist/lib/ExpenseApprovalPoliciesWidget/lib/ApprovalRuleForm.js → approval-policies/ui/dist/index7.js} +4 -4
  25. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/{ui/dist/lib/ExpenseApprovalPoliciesWidget/lib/ExpenseApprovalsPage.js → approval-policies/ui/dist/index8.js} +7 -7
  26. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index.js +18 -19
  27. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/invalidation.js +2 -0
  28. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/{index20.js → lib/invalidateTransactionViews.js} +4 -4
  29. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/{index10.js → lib/queryKeys.js} +4 -4
  30. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/{index5.js → lib/useEntityUsersByIdsQuery.js} +6 -6
  31. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/{index8.js → lib/useExpenseHistoryQuery.js} +6 -6
  32. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/{index7.js → lib/useExpenseLedgerAccountsQuery.js} +3 -3
  33. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/{index17.js → lib/useExpenseReceiptsCountQuery.js} +5 -5
  34. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/{index16.js → lib/useExpenseTransactionIdsQuery.js} +2 -2
  35. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/{index15.js → lib/useExpenseTransactionsCountQuery.js} +5 -5
  36. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/{index19.js → lib/useGetApprovalRequestsQuery.js} +5 -5
  37. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/{index9.js → lib/useGetTransactionQuery.js} +5 -5
  38. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/{index3.js → lib/useGetTransactionsQuery.js} +5 -5
  39. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/lib/useHasDirectReportsQuery.js +34 -0
  40. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/{index4.js → lib/useOrganizationDepartmentsQuery.js} +6 -6
  41. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/lib/useOrganizationLocationsQuery.js +28 -0
  42. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/{index11.js → lib/usePatchReceiptMutation.js} +7 -7
  43. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/{index14.js → lib/useTrackReceiptMatching.js} +7 -7
  44. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/{index21.js → lib/useTransactionReviewMutations.js} +6 -6
  45. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/{index18.js → lib/useTransactionValidationsQuery.js} +5 -5
  46. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/{index13.js → lib/useUploadReceiptMutation.js} +7 -7
  47. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index.js +10 -10
  48. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index10.js +77 -160
  49. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index11.js +356 -63
  50. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index12.js +36 -71
  51. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index13.js +130 -344
  52. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index14.js +223 -36
  53. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index15.js +192 -137
  54. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index16.js +11 -227
  55. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index17.js +81 -186
  56. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index18.js +37 -11
  57. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index19.js +309 -82
  58. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index2.js +30 -87
  59. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index20.js +1 -39
  60. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index3.js +3 -2
  61. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index5.js +23 -257
  62. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index6.js +18 -2
  63. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index7.js +160 -59
  64. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index8.js +62 -28
  65. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index9.js +28 -18
  66. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/receipt-match/data-access/dist/index.js +3 -0
  67. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/{data-access → receipt-match/data-access}/dist/index2.js +5 -5
  68. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/receipt-match/data-access/dist/index3.js +40 -0
  69. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/receipt-match/feature/dist/index.js +2 -0
  70. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/receipt-match/feature/dist/index2.js +256 -0
  71. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/receipt-match/feature/dist/index3.js +5 -0
  72. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/receipt-match/feature/dist/index4.js +65 -0
  73. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/receipt-match/ui/dist/index.js +8 -0
  74. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/{ui/dist/lib/ReceiptMatchWidget/lib/labels.js → receipt-match/ui/dist/index2.js} +1 -1
  75. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/{ui/dist/lib/ReceiptMatchWidget/lib/ReceiptInboxItem.js → receipt-match/ui/dist/index3.js} +3 -3
  76. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/{ui/dist/lib/ReceiptMatchWidget/lib/ReceiptInboxStep.js → receipt-match/ui/dist/index4.js} +6 -6
  77. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/{ui/dist/lib/ReceiptMatchWidget/lib/TransactionsMatchStep.js → receipt-match/ui/dist/index5.js} +27 -27
  78. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/{ui/dist/lib/ReceiptMatchWidget/lib/MatchConfirmationStep.js → receipt-match/ui/dist/index6.js} +3 -3
  79. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/{ui/dist/lib/ReceiptMatchWidget/lib/ReceiptMatchSidebar.js → receipt-match/ui/dist/index7.js} +6 -6
  80. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/{ui/dist/lib/ReceiptMatchWidget/lib/ReceiptMatchLauncher.js → receipt-match/ui/dist/index8.js} +1 -1
  81. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/index.js +9 -28
  82. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/ExpenseStatusBadge/ExpenseStatusBadge.js +7 -12
  83. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/ExpenseStatusBadge/badgeTones.js +1 -7
  84. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/ExpensesScreen/ExpensesScreen.js +61 -55
  85. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/ExpensesScreen/labels.js +2 -1
  86. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/ExpensesTransactionsTable/ExpensesTransactionsTable.js +42 -44
  87. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/FileViewer/FileViewer.js +6 -6
  88. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/TransactionDetails/TransactionDetails.js +137 -138
  89. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/TransactionDetailsActions/TransactionDetailsActions.js +82 -80
  90. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/{ui → util}/dist/lib/isPdf.js +1 -1
  91. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/util/dist/lib/widgetName.js +4 -0
  92. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index.js +11 -10
  93. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index10.js +92 -55
  94. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index11.js +64 -142
  95. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index12.js +186 -17
  96. package/dist/libs/tesouro-embedded-components-react/{expense-management-widget/data-access/dist/index6.js → invoicing-widget/data-access/dist/index13.js} +8 -9
  97. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index3.js +45 -74
  98. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index4.js +68 -53
  99. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index5.js +66 -32
  100. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index6.js +32 -34
  101. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index7.js +24 -166
  102. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index8.js +175 -1
  103. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index9.js +42 -95
  104. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index.js +1 -1
  105. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index13.js +36 -33
  106. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index14.js +38 -0
  107. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index16.js +1 -1
  108. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index17.js +206 -147
  109. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index18.js +2 -2
  110. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index19.js +39 -58
  111. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index20.js +53 -227
  112. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index21.js +216 -287
  113. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index22.js +453 -43
  114. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index23.js +103 -126
  115. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index24.js +122 -146
  116. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index25.js +145 -41
  117. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index26.js +39 -115
  118. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index27.js +113 -90
  119. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index28.js +81 -98
  120. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index29.js +111 -27
  121. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index30.js +26 -633
  122. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index31.js +639 -39
  123. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index32.js +41 -40
  124. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index33.js +35 -74
  125. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index34.js +73 -130
  126. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index35.js +133 -329
  127. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index36.js +345 -0
  128. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index.js +13 -12
  129. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index10.js +15 -12
  130. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index19.js +35 -24
  131. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index21.js +8 -71
  132. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index22.js +70 -17
  133. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index23.js +31 -12
  134. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index24.js +18 -30
  135. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index25.js +12 -301
  136. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index26.js +33 -1
  137. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index27.js +14 -46
  138. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index28.js +23 -67
  139. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index29.js +76 -485
  140. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index30.js +392 -95
  141. package/dist/libs/tesouro-embedded-components-react/{expense-management-widget/feature/dist/index22.js → invoicing-widget/ui/dist/index31.js} +1 -0
  142. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index32.js +48 -2
  143. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index33.js +72 -4
  144. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index34.js +496 -1
  145. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index35.js +97 -91
  146. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index37.js +2 -236
  147. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index38.js +3 -2
  148. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index39.js +1 -249
  149. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index40.js +89 -82
  150. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index41.js +23 -54
  151. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index42.js +223 -340
  152. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index43.js +3 -0
  153. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index44.js +249 -0
  154. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index45.js +93 -0
  155. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index46.js +59 -0
  156. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index47.js +353 -0
  157. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index9.js +17 -1
  158. package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index5.js +1 -1
  159. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +41 -41
  160. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +75 -43
  161. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  162. package/dist/libs/tesouro-embedded-components-react/shared/util/dist/lib/formatTimestampDate.js +13 -0
  163. package/dist/libs/tesouro-embedded-components-react/upload-receipt-widget/feature/dist/index.js +4 -0
  164. package/dist/libs/tesouro-embedded-components-react/upload-receipt-widget/feature/dist/index2.js +91 -0
  165. package/dist/libs/tesouro-embedded-components-react/upload-receipt-widget/ui/dist/index.js +4 -0
  166. package/dist/libs/tesouro-embedded-components-react/{expense-management-widget/ui/dist/lib/UploadReceiptWidget/labels.js → upload-receipt-widget/ui/dist/index2.js} +1 -1
  167. package/dist/libs/tesouro-embedded-components-react/{expense-management-widget/ui/dist/lib/UploadReceiptWidget/UploadReceiptButton.js → upload-receipt-widget/ui/dist/index3.js} +3 -3
  168. package/dist/libs/tesouro-embedded-components-react/{expense-management-widget/ui/dist/lib/UploadReceiptWidget/UploadReceiptModal.js → upload-receipt-widget/ui/dist/index4.js} +3 -3
  169. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index11.js +1 -1
  170. package/package.json +1 -1
  171. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index12.js +0 -39
  172. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index21.js +0 -297
  173. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index23.js +0 -4
  174. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/ExpenseStatusBadge/labels.js +0 -13
  175. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index36.js +0 -28
@@ -2,179 +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 "./index5.js";
10
- import { useMutation as d } from "@tanstack/react-query";
10
+ import { receivableMailsInvalidationKey as i } from "./index2.js";
11
+ import { invalidateReceivable as a } from "./index6.js";
12
+ import { useMutation as o } from "@tanstack/react-query";
11
13
  //#region ../../libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index7.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
- });
51
- }
52
- });
53
- }
54
- function m() {
55
- let { client: t, organizationId: n } = c();
56
- return d({
57
- mutationFn: async ({ path: r }) => {
58
- await e({
59
- client: t,
60
- headers: l(n),
61
- path: r,
62
- throwOnError: !0
63
- });
64
- },
65
- onSuccess: async (e, r) => {
66
- await u({
67
- client: t,
68
- organizationId: n,
69
- receivableId: r.path.receivable_id
70
- });
71
- }
72
- });
73
- }
74
- function h() {
75
- let { client: e, organizationId: t } = c();
76
- return d({
77
- mutationFn: async ({ path: n }) => {
78
- let { data: r } = await s({
79
- client: e,
80
- headers: l(t),
81
- path: n,
82
- throwOnError: !0
83
- });
84
- return r;
85
- },
86
- onSuccess: async (n, r) => {
87
- await u({
88
- client: e,
89
- organizationId: t,
90
- receivableId: r.path.receivable_id
91
- });
92
- }
93
- });
94
- }
95
- function g() {
96
- let { client: e, organizationId: t } = c();
97
- return d({
98
- mutationFn: async ({ path: n }) => {
99
- await i({
100
- client: e,
101
- headers: l(t),
102
- path: n,
103
- throwOnError: !0
104
- });
105
- },
106
- onSuccess: async (n, r) => {
107
- await u({
108
- client: e,
109
- organizationId: t,
110
- receivableId: r.path.receivable_id
111
- });
112
- }
113
- });
114
- }
115
- function _() {
116
- let { client: e, organizationId: t } = c();
117
- return d({
118
- mutationFn: async ({ path: n }) => {
119
- let { data: r } = await a({
120
- client: e,
121
- headers: l(t),
122
- path: n,
123
- throwOnError: !0
124
- });
125
- return r;
126
- },
127
- onSuccess: async () => {
128
- await u({
129
- client: e,
130
- organizationId: t
131
- });
132
- }
133
- });
134
- }
135
- function v() {
136
- let { client: e, organizationId: t } = c();
137
- return d({
138
- mutationFn: async ({ path: n, body: i }) => {
139
- let { data: a } = await r({
140
- client: e,
141
- headers: l(t),
142
- path: n,
143
- body: i,
144
- throwOnError: !0
145
- });
146
- return a;
147
- },
148
- onSuccess: async (n, r) => {
149
- await u({
150
- client: e,
151
- organizationId: t,
152
- receivableId: r.path.receivable_id
153
- });
154
- }
155
- });
156
- }
157
- function y() {
158
- let { client: e, organizationId: t } = c();
159
- return d({
160
- mutationFn: async ({ path: n, body: r }) => {
161
- let { data: i } = await o({
162
- client: e,
163
- headers: l(t),
164
- path: n,
165
- body: r,
166
- throwOnError: !0
167
- });
168
- return i;
169
- },
170
- onSuccess: async (n, r) => {
171
- await u({
172
- client: e,
173
- organizationId: t,
174
- receivableId: r.path.receivable_id
175
- });
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)]);
176
34
  }
177
35
  });
178
36
  }
179
37
  //#endregion
180
- 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,5 +2,179 @@
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
8
  import "../../../shared/data-access/dist/index.js";
6
- import "@tanstack/react-query";
9
+ import { invalidateReceivable as u } from "./index6.js";
10
+ import { useMutation as d } from "@tanstack/react-query";
11
+ //#region ../../libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index8.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,
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
+ });
51
+ }
52
+ });
53
+ }
54
+ function m() {
55
+ let { client: t, organizationId: n } = c();
56
+ return d({
57
+ mutationFn: async ({ path: r }) => {
58
+ await e({
59
+ client: t,
60
+ headers: l(n),
61
+ path: r,
62
+ throwOnError: !0
63
+ });
64
+ },
65
+ onSuccess: async (e, r) => {
66
+ await u({
67
+ client: t,
68
+ organizationId: n,
69
+ receivableId: r.path.receivable_id
70
+ });
71
+ }
72
+ });
73
+ }
74
+ function h() {
75
+ let { client: e, organizationId: t } = c();
76
+ return d({
77
+ mutationFn: async ({ path: n }) => {
78
+ let { data: r } = await s({
79
+ client: e,
80
+ headers: l(t),
81
+ path: n,
82
+ throwOnError: !0
83
+ });
84
+ return r;
85
+ },
86
+ onSuccess: async (n, r) => {
87
+ await u({
88
+ client: e,
89
+ organizationId: t,
90
+ receivableId: r.path.receivable_id
91
+ });
92
+ }
93
+ });
94
+ }
95
+ function g() {
96
+ let { client: e, organizationId: t } = c();
97
+ return d({
98
+ mutationFn: async ({ path: n }) => {
99
+ await i({
100
+ client: e,
101
+ headers: l(t),
102
+ path: n,
103
+ throwOnError: !0
104
+ });
105
+ },
106
+ onSuccess: async (n, r) => {
107
+ await u({
108
+ client: e,
109
+ organizationId: t,
110
+ receivableId: r.path.receivable_id
111
+ });
112
+ }
113
+ });
114
+ }
115
+ function _() {
116
+ let { client: e, organizationId: t } = c();
117
+ return d({
118
+ mutationFn: async ({ path: n }) => {
119
+ let { data: r } = await a({
120
+ client: e,
121
+ headers: l(t),
122
+ path: n,
123
+ throwOnError: !0
124
+ });
125
+ return r;
126
+ },
127
+ onSuccess: async () => {
128
+ await u({
129
+ client: e,
130
+ organizationId: t
131
+ });
132
+ }
133
+ });
134
+ }
135
+ function v() {
136
+ let { client: e, organizationId: t } = c();
137
+ return d({
138
+ mutationFn: async ({ path: n, body: i }) => {
139
+ let { data: a } = await r({
140
+ client: e,
141
+ headers: l(t),
142
+ path: n,
143
+ body: i,
144
+ throwOnError: !0
145
+ });
146
+ return a;
147
+ },
148
+ onSuccess: async (n, r) => {
149
+ await u({
150
+ client: e,
151
+ organizationId: t,
152
+ receivableId: r.path.receivable_id
153
+ });
154
+ }
155
+ });
156
+ }
157
+ function y() {
158
+ let { client: e, organizationId: t } = c();
159
+ return d({
160
+ mutationFn: async ({ path: n, body: r }) => {
161
+ let { data: i } = await o({
162
+ client: e,
163
+ headers: l(t),
164
+ path: n,
165
+ body: r,
166
+ throwOnError: !0
167
+ });
168
+ return i;
169
+ },
170
+ onSuccess: async (n, r) => {
171
+ await u({
172
+ client: e,
173
+ organizationId: t,
174
+ receivableId: r.path.receivable_id
175
+ });
176
+ }
177
+ });
178
+ }
179
+ //#endregion
180
+ 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,105 +2,52 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { postReceivablesIdMarkAsPaid as e, postReceivablesIdMarkAsPartiallyPaid 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/index9.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: t, organizationId: n } = i();
41
- return d({
42
- mutationFn: async ({ path: r, body: i }) => {
43
- let { data: o } = await e({
44
- client: t,
45
- headers: a(n),
46
- path: r,
47
- body: i,
48
- throwOnError: !0
49
- });
50
- return o;
51
- },
52
- onSuccess: async (e, r) => {
53
- await f({
54
- client: t,
55
- organizationId: n,
56
- receivableId: r.path.receivable_id
57
- });
58
- }
59
- });
60
- }
61
- function m() {
62
- let { client: e, organizationId: n } = i();
63
- return d({
64
- mutationFn: async ({ path: r, body: i }) => {
65
- let { data: o } = await t({
66
- client: e,
67
- headers: a(n),
68
- path: r,
69
- body: i,
70
- throwOnError: !0
71
- });
72
- return o;
73
- },
74
- onSuccess: async (t, r) => {
75
- await f({
76
- client: e,
77
- organizationId: n,
78
- receivableId: r.path.receivable_id
79
- });
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 };
80
42
  }
81
43
  });
82
- }
83
- function h() {
84
- let { client: e, organizationId: t } = i();
85
- return d({
86
- mutationFn: async ({ path: r, body: i }) => {
87
- let { data: o } = await n({
88
- client: e,
89
- headers: a(t),
90
- path: r,
91
- body: i,
92
- throwOnError: !0
93
- });
94
- return o;
95
- },
96
- onSuccess: async (n, r) => {
97
- await f({
98
- client: e,
99
- organizationId: t,
100
- receivableId: r.path.receivable_id
101
- });
102
- }
44
+ return o({
45
+ ...n(_, {
46
+ authEpoch: p,
47
+ organizationStatus: m
48
+ }),
49
+ enabled: !!(d && f && c) && l
103
50
  });
104
51
  }
105
52
  //#endregion
106
- export { p as useMarkReceivablePaidMutation, m as useMarkReceivablePartiallyPaidMutation, h as useMarkReceivableUncollectibleMutation };
53
+ export { c as useReceivablePaymentRecordsQuery };
@@ -1,3 +1,3 @@
1
1
  import { InvoicingWidget as e } from "./index3.js";
2
- import { ReceivablesWidget as t } from "./index35.js";
2
+ import { ReceivablesWidget as t } from "./index36.js";
3
3
  export { e as InvoicingWidget, t as ReceivablesWidget };