@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.
- package/README.md +1 -0
- package/dist/index.css +14 -0
- package/dist/index.d.ts +125 -22
- package/dist/index.js +3 -3
- package/dist/lib/ExpenseManagementWidget.d.ts +22 -21
- package/dist/lib/ExpenseManagementWidget.js +1 -1
- package/dist/lib/ReceivablesWidget.d.ts +104 -2
- package/dist/lib/ReceivablesWidget.js +1 -1
- package/dist/lib/UploadReceiptWidget.d.ts +2 -2
- package/dist/lib/UploadReceiptWidget.js +2 -2
- package/dist/lib/WidgetSuite.d.ts +17 -15
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/approval-policies/feature/dist/index.js +3 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/approval-policies/feature/dist/index2.js +5 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/{feature/dist/index24.js → approval-policies/feature/dist/index3.js} +7 -7
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/{feature/dist/index25.js → approval-policies/feature/dist/index4.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/{feature/dist/index26.js → approval-policies/feature/dist/index5.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/{feature/dist/index27.js → approval-policies/feature/dist/index6.js} +53 -53
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/approval-policies/ui/dist/index.js +8 -0
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index.js +18 -19
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/invalidation.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/{index20.js → lib/invalidateTransactionViews.js} +4 -4
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/{index10.js → lib/queryKeys.js} +4 -4
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/{index5.js → lib/useEntityUsersByIdsQuery.js} +6 -6
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/{index8.js → lib/useExpenseHistoryQuery.js} +6 -6
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/{index7.js → lib/useExpenseLedgerAccountsQuery.js} +3 -3
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/{index17.js → lib/useExpenseReceiptsCountQuery.js} +5 -5
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/{index16.js → lib/useExpenseTransactionIdsQuery.js} +2 -2
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/{index15.js → lib/useExpenseTransactionsCountQuery.js} +5 -5
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/{index19.js → lib/useGetApprovalRequestsQuery.js} +5 -5
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/{index9.js → lib/useGetTransactionQuery.js} +5 -5
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/{index3.js → lib/useGetTransactionsQuery.js} +5 -5
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/lib/useHasDirectReportsQuery.js +34 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/{index4.js → lib/useOrganizationDepartmentsQuery.js} +6 -6
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/lib/useOrganizationLocationsQuery.js +28 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/{index11.js → lib/usePatchReceiptMutation.js} +7 -7
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/{index14.js → lib/useTrackReceiptMatching.js} +7 -7
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/{index21.js → lib/useTransactionReviewMutations.js} +6 -6
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/{index18.js → lib/useTransactionValidationsQuery.js} +5 -5
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/{index13.js → lib/useUploadReceiptMutation.js} +7 -7
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index10.js +77 -160
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index11.js +356 -63
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index12.js +36 -71
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index13.js +130 -344
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index14.js +223 -36
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index15.js +192 -137
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index16.js +11 -227
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index17.js +81 -186
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index18.js +37 -11
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index19.js +309 -82
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index2.js +30 -87
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index20.js +1 -39
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index3.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index5.js +23 -257
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index6.js +18 -2
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index7.js +160 -59
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index8.js +62 -28
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index9.js +28 -18
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/receipt-match/data-access/dist/index.js +3 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/{data-access → receipt-match/data-access}/dist/index2.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/receipt-match/data-access/dist/index3.js +40 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/receipt-match/feature/dist/index.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/receipt-match/feature/dist/index2.js +256 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/receipt-match/feature/dist/index3.js +5 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/receipt-match/feature/dist/index4.js +65 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/receipt-match/ui/dist/index.js +8 -0
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/index.js +9 -28
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/ExpenseStatusBadge/ExpenseStatusBadge.js +7 -12
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/ExpenseStatusBadge/badgeTones.js +1 -7
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/ExpensesScreen/ExpensesScreen.js +61 -55
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/ExpensesScreen/labels.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/ExpensesTransactionsTable/ExpensesTransactionsTable.js +42 -44
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/FileViewer/FileViewer.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/TransactionDetails/TransactionDetails.js +137 -138
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/TransactionDetailsActions/TransactionDetailsActions.js +82 -80
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/{ui → util}/dist/lib/isPdf.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/util/dist/lib/widgetName.js +4 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index.js +11 -10
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index10.js +92 -55
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index11.js +64 -142
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index12.js +186 -17
- package/dist/libs/tesouro-embedded-components-react/{expense-management-widget/data-access/dist/index6.js → invoicing-widget/data-access/dist/index13.js} +8 -9
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index3.js +45 -74
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index4.js +68 -53
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index5.js +66 -32
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index6.js +32 -34
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index7.js +24 -166
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index8.js +175 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index9.js +42 -95
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index13.js +36 -33
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index14.js +38 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index16.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index17.js +206 -147
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index18.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index19.js +39 -58
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index20.js +53 -227
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index21.js +216 -287
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index22.js +453 -43
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index23.js +103 -126
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index24.js +122 -146
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index25.js +145 -41
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index26.js +39 -115
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index27.js +113 -90
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index28.js +81 -98
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index29.js +111 -27
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index30.js +26 -633
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index31.js +639 -39
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index32.js +41 -40
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index33.js +35 -74
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index34.js +73 -130
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index35.js +133 -329
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index36.js +345 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index.js +13 -12
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index10.js +15 -12
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index19.js +35 -24
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index21.js +8 -71
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index22.js +70 -17
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index23.js +31 -12
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index24.js +18 -30
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index25.js +12 -301
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index26.js +33 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index27.js +14 -46
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index28.js +23 -67
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index29.js +76 -485
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index30.js +392 -95
- package/dist/libs/tesouro-embedded-components-react/{expense-management-widget/feature/dist/index22.js → invoicing-widget/ui/dist/index31.js} +1 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index32.js +48 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index33.js +72 -4
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index34.js +496 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index35.js +97 -91
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index37.js +2 -236
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index38.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index39.js +1 -249
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index40.js +89 -82
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index41.js +23 -54
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index42.js +223 -340
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index43.js +3 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index44.js +249 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index45.js +93 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index46.js +59 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index47.js +353 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index9.js +17 -1
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index5.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +41 -41
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +75 -43
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/util/dist/lib/formatTimestampDate.js +13 -0
- package/dist/libs/tesouro-embedded-components-react/upload-receipt-widget/feature/dist/index.js +4 -0
- package/dist/libs/tesouro-embedded-components-react/upload-receipt-widget/feature/dist/index2.js +91 -0
- package/dist/libs/tesouro-embedded-components-react/upload-receipt-widget/ui/dist/index.js +4 -0
- 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
- 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
- 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
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index11.js +1 -1
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index12.js +0 -39
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index21.js +0 -297
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index23.js +0 -4
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/ExpenseStatusBadge/labels.js +0 -13
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index36.js +0 -28
|
@@ -2,27 +2,26 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
5
|
+
import { getAnalyticsReceivablesOptions as e } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
6
6
|
import { withAuthEpoch as t } from "../../../shared/data-access/dist/lib/withAuthEpoch.js";
|
|
7
7
|
import { useEmbedApi as n } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
8
8
|
import { organizationHeaders as r } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
9
9
|
import "../../../shared/data-access/dist/index.js";
|
|
10
10
|
import { useQuery as i } from "@tanstack/react-query";
|
|
11
|
-
//#region ../../libs/tesouro-embedded-components-react/
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
let { client: s, organizationId: c, widgetToken: l, authEpoch: u, organizationStatus: d } = n(), f = e({
|
|
11
|
+
//#region ../../libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index13.js
|
|
12
|
+
function a({ enabled: a = !0, ...o }) {
|
|
13
|
+
let { client: s, organizationId: c, widgetToken: l, authEpoch: u, organizationStatus: d } = n(), f = !!(c && l) && a, p = e({
|
|
15
14
|
client: s,
|
|
16
15
|
headers: r(c),
|
|
17
|
-
query:
|
|
16
|
+
query: o
|
|
18
17
|
});
|
|
19
18
|
return i({
|
|
20
|
-
...t(
|
|
19
|
+
...t(p, {
|
|
21
20
|
authEpoch: u,
|
|
22
21
|
organizationStatus: d
|
|
23
22
|
}),
|
|
24
|
-
enabled:
|
|
23
|
+
enabled: f
|
|
25
24
|
});
|
|
26
25
|
}
|
|
27
26
|
//#endregion
|
|
28
|
-
export {
|
|
27
|
+
export { a as useReceivablesAnalyticsQuery };
|
package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index3.js
CHANGED
|
@@ -2,84 +2,55 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { useEmbedApi as a } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
11
|
-
import { organizationHeaders as o } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
12
|
-
import { useAllBankAccountsQuery as s } from "../../../shared/data-access/dist/lib/bank-account/useAllBankAccountsQuery.js";
|
|
13
|
-
import { useAllExternalBankAccountsQuery as c } from "../../../shared/data-access/dist/lib/external-bank-account/useAllExternalBankAccountsQuery.js";
|
|
5
|
+
import { getReceivablesIdHistory as e } from "../../../shared/data-access/dist/lib/rest/sdk.gen.js";
|
|
6
|
+
import { getReceivablesIdHistoryQueryKey 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";
|
|
14
10
|
import "../../../shared/data-access/dist/index.js";
|
|
15
|
-
import {
|
|
16
|
-
import { useMemo as u } from "react";
|
|
17
|
-
import { useMutation as d, useQuery as f } from "@tanstack/react-query";
|
|
11
|
+
import { queryOptions as a, useQuery as o } from "@tanstack/react-query";
|
|
18
12
|
//#region ../../libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index3.js
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
13
|
+
var s = {
|
|
14
|
+
limit: 100,
|
|
15
|
+
sort: "timestamp",
|
|
16
|
+
order: "desc"
|
|
17
|
+
};
|
|
18
|
+
function c(c, { enabled: l = !0 } = {}) {
|
|
19
|
+
let { client: u, organizationId: d, widgetToken: f, authEpoch: p, organizationStatus: m } = r(), h = i(d), g = { receivable_id: c ?? "" }, _ = a({
|
|
20
|
+
queryKey: [...t({
|
|
21
|
+
client: u,
|
|
22
|
+
headers: h,
|
|
23
|
+
path: g,
|
|
24
|
+
query: s
|
|
25
|
+
}), "all"],
|
|
26
|
+
queryFn: async ({ signal: t }) => {
|
|
27
|
+
let n = [], r = /* @__PURE__ */ new Set(), i;
|
|
28
|
+
do {
|
|
29
|
+
let { data: a } = await e({
|
|
30
|
+
client: u,
|
|
31
|
+
headers: h,
|
|
32
|
+
path: g,
|
|
33
|
+
query: {
|
|
34
|
+
...s,
|
|
35
|
+
...i ? { pagination_token: i } : {}
|
|
36
|
+
},
|
|
37
|
+
signal: t,
|
|
38
|
+
throwOnError: !0
|
|
39
|
+
});
|
|
40
|
+
n.push(...a.data ?? []);
|
|
41
|
+
let o = a.next_pagination_token ?? void 0;
|
|
42
|
+
i = o && !r.has(o) ? o : void 0, i && r.add(i);
|
|
43
|
+
} while (i);
|
|
44
|
+
return { data: n };
|
|
45
|
+
}
|
|
23
46
|
});
|
|
24
|
-
return
|
|
25
|
-
...
|
|
26
|
-
authEpoch:
|
|
27
|
-
organizationStatus:
|
|
47
|
+
return o({
|
|
48
|
+
...n(_, {
|
|
49
|
+
authEpoch: p,
|
|
50
|
+
organizationStatus: m
|
|
28
51
|
}),
|
|
29
|
-
enabled:
|
|
52
|
+
enabled: !!(d && f && c) && l
|
|
30
53
|
});
|
|
31
54
|
}
|
|
32
|
-
function m() {
|
|
33
|
-
let { client: t, organizationId: n } = a();
|
|
34
|
-
return d({
|
|
35
|
-
mutationFn: async ({ body: r }) => {
|
|
36
|
-
let { data: i } = await e({
|
|
37
|
-
client: t,
|
|
38
|
-
headers: o(n),
|
|
39
|
-
body: r,
|
|
40
|
-
throwOnError: !0
|
|
41
|
-
});
|
|
42
|
-
return i;
|
|
43
|
-
},
|
|
44
|
-
onSuccess: async () => {
|
|
45
|
-
await i(l({
|
|
46
|
-
client: t,
|
|
47
|
-
organizationId: n
|
|
48
|
-
}));
|
|
49
|
-
}
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
var h = (e) => e ? e.slice(-4) : null;
|
|
53
|
-
function g({ enabled: e = !0, canReadEmbedded: t = !1, canReadExternal: r = !1 } = {}) {
|
|
54
|
-
let { organizationId: i, widgetToken: o, organizationStatus: l } = a(), d = l === n.Rotating, f = e && !!(o && (i || d)), m = f && t, g = f && r, _ = p({ enabled: e }), v = s({ enabled: m }), y = c({ enabled: g }), b = f ? _.data?.data : void 0, x = m ? v.data?.data : void 0, S = g ? y.data?.data : void 0, C = u(() => [
|
|
55
|
-
...(b ?? []).map((e) => ({
|
|
56
|
-
id: e.id,
|
|
57
|
-
type: "BANK_DETAILS",
|
|
58
|
-
displayName: e.display_name ?? null,
|
|
59
|
-
accountNumberLast4: h(e.account_number) ?? e.account_number_last4 ?? null
|
|
60
|
-
})),
|
|
61
|
-
...(x ?? []).filter((e) => e.status === "ACTIVE").map((e) => ({
|
|
62
|
-
id: e.id,
|
|
63
|
-
type: "INTERNAL",
|
|
64
|
-
displayName: e.nickname ?? null,
|
|
65
|
-
accountNumberLast4: h(e.accountNumber)
|
|
66
|
-
})),
|
|
67
|
-
...(S ?? []).filter((e) => e.accountStatus === "ACTIVE" && e.verificationStatus === "VERIFIED").map((e) => ({
|
|
68
|
-
id: e.id,
|
|
69
|
-
type: "EXTERNAL",
|
|
70
|
-
displayName: e.nickname || e.nameOnAccount || null,
|
|
71
|
-
accountNumberLast4: h(e.accountNumber)
|
|
72
|
-
}))
|
|
73
|
-
], [
|
|
74
|
-
b,
|
|
75
|
-
x,
|
|
76
|
-
S
|
|
77
|
-
]), w = f && _.isLoading || m && v.isLoading || g && y.isLoading;
|
|
78
|
-
return {
|
|
79
|
-
paymentAccounts: C,
|
|
80
|
-
isLoading: w,
|
|
81
|
-
isIncomplete: w || f && d || f && (_.isFetching || _.isError) || m && (v.isFetching || v.isError || v.hasNextPage) || g && (y.isFetching || y.isError || y.hasNextPage) || !!(f && _.data?.next_pagination_token)
|
|
82
|
-
};
|
|
83
|
-
}
|
|
84
55
|
//#endregion
|
|
85
|
-
export {
|
|
56
|
+
export { c as useAllReceivableHistoryQuery };
|
package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index4.js
CHANGED
|
@@ -2,69 +2,84 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
5
|
+
import { postBankDetails as e } from "../../../shared/data-access/dist/lib/rest/sdk.gen.js";
|
|
6
|
+
import { getBankDetailsOptions as t } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
7
|
+
import { OrganizationStatus as n } from "../../../shared/data-access/dist/lib/organizationStatus.js";
|
|
8
|
+
import { withAuthEpoch as r } from "../../../shared/data-access/dist/lib/withAuthEpoch.js";
|
|
9
|
+
import { invalidateAllClients as i } from "../../../shared/data-access/dist/lib/clientRegistry.js";
|
|
10
|
+
import { useEmbedApi as a } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
11
|
+
import { organizationHeaders as o } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
12
|
+
import { useAllBankAccountsQuery as s } from "../../../shared/data-access/dist/lib/bank-account/useAllBankAccountsQuery.js";
|
|
13
|
+
import { useAllExternalBankAccountsQuery as c } from "../../../shared/data-access/dist/lib/external-bank-account/useAllExternalBankAccountsQuery.js";
|
|
9
14
|
import "../../../shared/data-access/dist/index.js";
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
15
|
+
import { entityBankAccountsInvalidationKey as l } from "./index2.js";
|
|
16
|
+
import { useMemo as u } from "react";
|
|
17
|
+
import { useMutation as d, useQuery as f } from "@tanstack/react-query";
|
|
12
18
|
//#region ../../libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index4.js
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}
|
|
25
|
-
function u() {
|
|
26
|
-
let { client: e, organizationId: n } = r();
|
|
27
|
-
return s({
|
|
28
|
-
mutationFn: async ({ file: r }) => {
|
|
29
|
-
let { data: a } = await t({
|
|
30
|
-
client: e,
|
|
31
|
-
headers: i(n),
|
|
32
|
-
body: {
|
|
33
|
-
file: r,
|
|
34
|
-
file_type: c
|
|
35
|
-
},
|
|
36
|
-
throwOnError: !0
|
|
37
|
-
});
|
|
38
|
-
return a;
|
|
39
|
-
},
|
|
40
|
-
onSuccess: async (t, r) => {
|
|
41
|
-
await l({
|
|
42
|
-
client: e,
|
|
43
|
-
organizationId: n,
|
|
44
|
-
receivableId: r.receivableId
|
|
45
|
-
});
|
|
46
|
-
}
|
|
19
|
+
function p({ enabled: e = !0 } = {}) {
|
|
20
|
+
let { client: n, organizationId: i, widgetToken: s, authEpoch: c, organizationStatus: l } = a(), u = t({
|
|
21
|
+
client: n,
|
|
22
|
+
headers: o(i)
|
|
23
|
+
});
|
|
24
|
+
return f({
|
|
25
|
+
...r(u, {
|
|
26
|
+
authEpoch: c,
|
|
27
|
+
organizationStatus: l
|
|
28
|
+
}),
|
|
29
|
+
enabled: e && !!(i && s)
|
|
47
30
|
});
|
|
48
31
|
}
|
|
49
|
-
function
|
|
50
|
-
let { client: t, organizationId: n } =
|
|
51
|
-
return
|
|
52
|
-
mutationFn: async ({
|
|
53
|
-
await e({
|
|
32
|
+
function m() {
|
|
33
|
+
let { client: t, organizationId: n } = a();
|
|
34
|
+
return d({
|
|
35
|
+
mutationFn: async ({ body: r }) => {
|
|
36
|
+
let { data: i } = await e({
|
|
54
37
|
client: t,
|
|
55
|
-
headers:
|
|
56
|
-
|
|
38
|
+
headers: o(n),
|
|
39
|
+
body: r,
|
|
57
40
|
throwOnError: !0
|
|
58
41
|
});
|
|
42
|
+
return i;
|
|
59
43
|
},
|
|
60
|
-
onSuccess: async (
|
|
61
|
-
await l({
|
|
44
|
+
onSuccess: async () => {
|
|
45
|
+
await i(l({
|
|
62
46
|
client: t,
|
|
63
|
-
organizationId: n
|
|
64
|
-
|
|
65
|
-
});
|
|
47
|
+
organizationId: n
|
|
48
|
+
}));
|
|
66
49
|
}
|
|
67
50
|
});
|
|
68
51
|
}
|
|
52
|
+
var h = (e) => e ? e.slice(-4) : null;
|
|
53
|
+
function g({ enabled: e = !0, canReadEmbedded: t = !1, canReadExternal: r = !1 } = {}) {
|
|
54
|
+
let { organizationId: i, widgetToken: o, organizationStatus: l } = a(), d = l === n.Rotating, f = e && !!(o && (i || d)), m = f && t, g = f && r, _ = p({ enabled: e }), v = s({ enabled: m }), y = c({ enabled: g }), b = f ? _.data?.data : void 0, x = m ? v.data?.data : void 0, S = g ? y.data?.data : void 0, C = u(() => [
|
|
55
|
+
...(b ?? []).map((e) => ({
|
|
56
|
+
id: e.id,
|
|
57
|
+
type: "BANK_DETAILS",
|
|
58
|
+
displayName: e.display_name ?? null,
|
|
59
|
+
accountNumberLast4: h(e.account_number) ?? e.account_number_last4 ?? null
|
|
60
|
+
})),
|
|
61
|
+
...(x ?? []).filter((e) => e.status === "ACTIVE").map((e) => ({
|
|
62
|
+
id: e.id,
|
|
63
|
+
type: "INTERNAL",
|
|
64
|
+
displayName: e.nickname ?? null,
|
|
65
|
+
accountNumberLast4: h(e.accountNumber)
|
|
66
|
+
})),
|
|
67
|
+
...(S ?? []).filter((e) => e.accountStatus === "ACTIVE" && e.verificationStatus === "VERIFIED").map((e) => ({
|
|
68
|
+
id: e.id,
|
|
69
|
+
type: "EXTERNAL",
|
|
70
|
+
displayName: e.nickname || e.nameOnAccount || null,
|
|
71
|
+
accountNumberLast4: h(e.accountNumber)
|
|
72
|
+
}))
|
|
73
|
+
], [
|
|
74
|
+
b,
|
|
75
|
+
x,
|
|
76
|
+
S
|
|
77
|
+
]), w = f && _.isLoading || m && v.isLoading || g && y.isLoading;
|
|
78
|
+
return {
|
|
79
|
+
paymentAccounts: C,
|
|
80
|
+
isLoading: w,
|
|
81
|
+
isIncomplete: w || f && d || f && (_.isFetching || _.isError) || m && (v.isFetching || v.isError || v.hasNextPage) || g && (y.isFetching || y.isError || y.hasNextPage) || !!(f && _.data?.next_pagination_token)
|
|
82
|
+
};
|
|
83
|
+
}
|
|
69
84
|
//#endregion
|
|
70
|
-
export {
|
|
85
|
+
export { m as useCreateEntityBankAccountMutation, p as useEntityBankAccountsQuery, g as usePaymentAccountsQuery };
|
package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index5.js
CHANGED
|
@@ -1,36 +1,70 @@
|
|
|
1
|
-
|
|
1
|
+
"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
"use client";
|
|
4
|
+
"use client";
|
|
5
|
+
import { deleteFilesId as e, postFiles as t } from "../../../shared/data-access/dist/lib/rest/sdk.gen.js";
|
|
6
|
+
import { invalidateAllClients as n } from "../../../shared/data-access/dist/lib/clientRegistry.js";
|
|
7
|
+
import { useEmbedApi as r } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
8
|
+
import { organizationHeaders as i } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
2
9
|
import "../../../shared/data-access/dist/index.js";
|
|
3
|
-
import {
|
|
10
|
+
import { receivableAttachmentsInvalidationKey as a, receivableInvalidationKey as o } from "./index2.js";
|
|
11
|
+
import { useMutation as s } from "@tanstack/react-query";
|
|
4
12
|
//#region ../../libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index5.js
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
t({
|
|
22
|
-
client:
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
13
|
+
var c = "attachments";
|
|
14
|
+
async function l({ client: e, organizationId: t, receivableId: r }) {
|
|
15
|
+
let i = [a({
|
|
16
|
+
client: e,
|
|
17
|
+
organizationId: t
|
|
18
|
+
}), ...r ? [o({
|
|
19
|
+
client: e,
|
|
20
|
+
organizationId: t,
|
|
21
|
+
receivableId: r
|
|
22
|
+
})] : []];
|
|
23
|
+
await Promise.all(i.map((e) => n(e)));
|
|
24
|
+
}
|
|
25
|
+
function u() {
|
|
26
|
+
let { client: e, organizationId: n } = r();
|
|
27
|
+
return s({
|
|
28
|
+
mutationFn: async ({ file: r }) => {
|
|
29
|
+
let { data: a } = await t({
|
|
30
|
+
client: e,
|
|
31
|
+
headers: i(n),
|
|
32
|
+
body: {
|
|
33
|
+
file: r,
|
|
34
|
+
file_type: c
|
|
35
|
+
},
|
|
36
|
+
throwOnError: !0
|
|
37
|
+
});
|
|
38
|
+
return a;
|
|
39
|
+
},
|
|
40
|
+
onSuccess: async (t, r) => {
|
|
41
|
+
await l({
|
|
42
|
+
client: e,
|
|
43
|
+
organizationId: n,
|
|
44
|
+
receivableId: r.receivableId
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
function d() {
|
|
50
|
+
let { client: t, organizationId: n } = r();
|
|
51
|
+
return s({
|
|
52
|
+
mutationFn: async ({ path: r }) => {
|
|
53
|
+
await e({
|
|
54
|
+
client: t,
|
|
55
|
+
headers: i(n),
|
|
56
|
+
path: r,
|
|
57
|
+
throwOnError: !0
|
|
58
|
+
});
|
|
59
|
+
},
|
|
60
|
+
onSuccess: async (e, r) => {
|
|
61
|
+
await l({
|
|
62
|
+
client: t,
|
|
63
|
+
organizationId: n,
|
|
64
|
+
receivableId: r.receivableId
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
});
|
|
34
68
|
}
|
|
35
69
|
//#endregion
|
|
36
|
-
export {
|
|
70
|
+
export { d as useDeleteReceivableAttachmentMutation, u as useUploadReceivableAttachmentMutation };
|
package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index6.js
CHANGED
|
@@ -1,38 +1,36 @@
|
|
|
1
|
-
|
|
2
|
-
"use client";
|
|
3
|
-
"use client";
|
|
4
|
-
"use client";
|
|
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";
|
|
1
|
+
import { invalidateAllClients as e } from "../../../shared/data-access/dist/lib/clientRegistry.js";
|
|
9
2
|
import "../../../shared/data-access/dist/index.js";
|
|
10
|
-
import {
|
|
11
|
-
import { invalidateReceivable as a } from "./index5.js";
|
|
12
|
-
import { useMutation as o } from "@tanstack/react-query";
|
|
3
|
+
import { receivableHistoryInvalidationKey as t, receivableInvalidationKey as n, receivablePdfInvalidationKey as r, receivablesAnalyticsInvalidationKey as i, receivablesInvalidationKey as a } from "./index2.js";
|
|
13
4
|
//#region ../../libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index6.js
|
|
14
|
-
function s
|
|
15
|
-
let
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
5
|
+
async function o({ client: o, organizationId: s, receivableId: c }) {
|
|
6
|
+
let l = [
|
|
7
|
+
a({
|
|
8
|
+
client: o,
|
|
9
|
+
organizationId: s
|
|
10
|
+
}),
|
|
11
|
+
i({
|
|
12
|
+
client: o,
|
|
13
|
+
organizationId: s
|
|
14
|
+
}),
|
|
15
|
+
...c ? [
|
|
16
|
+
n({
|
|
17
|
+
client: o,
|
|
18
|
+
organizationId: s,
|
|
19
|
+
receivableId: c
|
|
20
|
+
}),
|
|
21
|
+
t({
|
|
22
|
+
client: o,
|
|
23
|
+
organizationId: s,
|
|
24
|
+
receivableId: c
|
|
25
|
+
}),
|
|
26
|
+
r({
|
|
27
|
+
client: o,
|
|
28
|
+
organizationId: s,
|
|
29
|
+
receivableId: c
|
|
30
|
+
})
|
|
31
|
+
] : []
|
|
32
|
+
];
|
|
33
|
+
await Promise.all(l.map((t) => e(t)));
|
|
36
34
|
}
|
|
37
35
|
//#endregion
|
|
38
|
-
export {
|
|
36
|
+
export { o as invalidateReceivable };
|