@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
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { EXPENSE_MANAGEMENT_WIDGET_NAME as e } from "../../../util/dist/lib/widgetName.js";
|
|
2
|
+
//#region ../../libs/tesouro-embedded-components-react/expense-management-widget/approval-policies/feature/dist/index2.js
|
|
3
|
+
var t = `${e}.expense_approval_policies`, n = { Mounted: `${t}.mounted` };
|
|
4
|
+
//#endregion
|
|
5
|
+
export { n as ExpenseApprovalPoliciesAnalyticsEvent, t as WIDGET_NAME };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { useEmbedApi as e } from "
|
|
2
|
-
import "
|
|
3
|
-
import { ApprovalPolicyObjectType as t } from "
|
|
4
|
-
import { useDeleteApprovalPoliciesIdMutation as n, useGetApprovalPoliciesQuery as r, usePatchApprovalPoliciesIdMutation as i, usePostApprovalPoliciesMutation as a } from "
|
|
5
|
-
import "
|
|
6
|
-
import { AmountConditionType as o, ApprovalOutcomeType as s } from "../../ui/dist/
|
|
1
|
+
import { useEmbedApi as e } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
2
|
+
import "../../../../shared/data-access/dist/index.js";
|
|
3
|
+
import { ApprovalPolicyObjectType as t } from "../../../../shared/approval-policy/data-access/dist/lib/queryKeys.js";
|
|
4
|
+
import { useDeleteApprovalPoliciesIdMutation as n, useGetApprovalPoliciesQuery as r, usePatchApprovalPoliciesIdMutation as i, usePostApprovalPoliciesMutation as a } from "../../../../shared/approval-policy/data-access/dist/lib/approvalPoliciesApi.js";
|
|
5
|
+
import "../../../../shared/approval-policy/data-access/dist/index.js";
|
|
6
|
+
import { AmountConditionType as o, ApprovalOutcomeType as s } from "../../ui/dist/index2.js";
|
|
7
7
|
import "../../ui/dist/index.js";
|
|
8
8
|
import { useCallback as c, useEffect as l, useRef as u, useState as d } from "react";
|
|
9
|
-
//#region ../../libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/
|
|
9
|
+
//#region ../../libs/tesouro-embedded-components-react/expense-management-widget/approval-policies/feature/dist/index3.js
|
|
10
10
|
var f = t.Transaction, p = "{event_name == 'submitted_for_approval'}";
|
|
11
11
|
function m(e, t, n) {
|
|
12
12
|
switch (e) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/
|
|
1
|
+
//#region ../../libs/tesouro-embedded-components-react/expense-management-widget/approval-policies/feature/dist/index4.js
|
|
2
2
|
var e = {
|
|
3
3
|
AdminLabel: "Company admin",
|
|
4
4
|
AdminSublabel: "Any company admin can approve",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/
|
|
1
|
+
//#region ../../libs/tesouro-embedded-components-react/expense-management-widget/approval-policies/feature/dist/index5.js
|
|
2
2
|
var e = {
|
|
3
3
|
ruleCard: "expense-approval-rule-card",
|
|
4
4
|
ruleForm: "expense-approval-rule-form",
|
|
@@ -2,34 +2,34 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { toast as e } from "
|
|
6
|
-
import { isOrganizationOnItsWay as t } from "
|
|
7
|
-
import { useEmbedApi as n } from "
|
|
8
|
-
import { Scope as r } from "
|
|
9
|
-
import { useAllOrganizationRolesQuery as i } from "
|
|
10
|
-
import "
|
|
11
|
-
import { EmbeddedToaster as a } from "
|
|
12
|
-
import { ErrorState as o } from "
|
|
13
|
-
import "
|
|
14
|
-
import { useAnalyticsTrack as s } from "
|
|
15
|
-
import { WidgetProvider as c } from "
|
|
16
|
-
import { useWidgetConfig as
|
|
17
|
-
import "
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
5
|
+
import { toast as e } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
6
|
+
import { isOrganizationOnItsWay as t } from "../../../../shared/data-access/dist/lib/organizationStatus.js";
|
|
7
|
+
import { useEmbedApi as n } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
8
|
+
import { Scope as r } from "../../../../shared/data-access/dist/lib/scopes.js";
|
|
9
|
+
import { useAllOrganizationRolesQuery as i } from "../../../../shared/data-access/dist/lib/role/useAllOrganizationRolesQuery.js";
|
|
10
|
+
import "../../../../shared/data-access/dist/index.js";
|
|
11
|
+
import { EmbeddedToaster as a } from "../../../../shared/ui/dist/lib/EmbeddedToaster.js";
|
|
12
|
+
import { ErrorState as o } from "../../../../shared/ui/dist/lib/ErrorState/ErrorState.js";
|
|
13
|
+
import "../../../../shared/ui/dist/index.js";
|
|
14
|
+
import { useAnalyticsTrack as s } from "../../../../shared/feature/dist/lib/analytics/hooks.js";
|
|
15
|
+
import { WidgetProvider as c } from "../../../../shared/feature/dist/lib/WidgetProvider/WidgetProvider.js";
|
|
16
|
+
import { useWidgetConfig as l, useWidgetLoading as ee } from "../../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
|
|
17
|
+
import "../../../../shared/feature/dist/index.js";
|
|
18
|
+
import { ApproverOptionLabels as u, PermissionErrorLabels as d, ValidationErrorLabels as f } from "./index4.js";
|
|
19
|
+
import { ExpenseApprovalPoliciesAnalyticsEvent as p, WIDGET_NAME as m } from "./index2.js";
|
|
20
|
+
import { AmountConditionType as h, ApprovalOutcomeType as g } from "../../ui/dist/index2.js";
|
|
21
|
+
import { ApprovalRuleToastLabels as _ } from "../../ui/dist/index3.js";
|
|
22
|
+
import { ExpenseApprovalsPage as v } from "../../ui/dist/index8.js";
|
|
21
23
|
import "../../ui/dist/index.js";
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import { useApprovalPolicies as v } from "./index24.js";
|
|
25
|
-
import { expenseApprovalPoliciesTestIds as y } from "./index26.js";
|
|
24
|
+
import { useApprovalPolicies as te } from "./index3.js";
|
|
25
|
+
import { expenseApprovalPoliciesTestIds as y } from "./index5.js";
|
|
26
26
|
import { useEffect as b, useMemo as x, useState as S } from "react";
|
|
27
|
-
import { Fragment as
|
|
28
|
-
//#region ../../libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/
|
|
27
|
+
import { Fragment as ne, jsx as C, jsxs as w } from "react/jsx-runtime";
|
|
28
|
+
//#region ../../libs/tesouro-embedded-components-react/expense-management-widget/approval-policies/feature/dist/index6.js
|
|
29
29
|
var T = {
|
|
30
30
|
minAmount: "",
|
|
31
31
|
maxAmount: "",
|
|
32
|
-
outcome:
|
|
32
|
+
outcome: g.AutoApprove,
|
|
33
33
|
approvers: []
|
|
34
34
|
};
|
|
35
35
|
function E(e, t) {
|
|
@@ -53,18 +53,18 @@ function k(e) {
|
|
|
53
53
|
return [
|
|
54
54
|
...t ? [{
|
|
55
55
|
id: t.id,
|
|
56
|
-
label:
|
|
57
|
-
sublabel:
|
|
56
|
+
label: u.AdminLabel,
|
|
57
|
+
sublabel: u.AdminSublabel
|
|
58
58
|
}] : [],
|
|
59
59
|
{
|
|
60
60
|
id: "reporting_manager",
|
|
61
|
-
label:
|
|
62
|
-
sublabel:
|
|
61
|
+
label: u.ReportingManagerLabel,
|
|
62
|
+
sublabel: u.ReportingManagerSublabel
|
|
63
63
|
},
|
|
64
64
|
...n ? [{
|
|
65
65
|
id: n.id,
|
|
66
|
-
label:
|
|
67
|
-
sublabel:
|
|
66
|
+
label: u.CfoLabel,
|
|
67
|
+
sublabel: u.CfoSublabel
|
|
68
68
|
}] : [],
|
|
69
69
|
...r,
|
|
70
70
|
...i
|
|
@@ -72,10 +72,10 @@ function k(e) {
|
|
|
72
72
|
}
|
|
73
73
|
function A(e) {
|
|
74
74
|
let t = e.minAmount.trim() !== "", n = e.maxAmount.trim() !== "";
|
|
75
|
-
return t && n ?
|
|
75
|
+
return t && n ? h.InRange : t ? h.GreaterThanOrEqual : n ? h.LessThan : h.All;
|
|
76
76
|
}
|
|
77
77
|
function j(e) {
|
|
78
|
-
return [e.conditionType ===
|
|
78
|
+
return [e.conditionType === h.LessThan || e.conditionType === h.All ? 0 : e.minAmount ?? 0, e.conditionType === h.GreaterThanOrEqual || e.conditionType === h.All ? Infinity : e.maxAmount ?? 0];
|
|
79
79
|
}
|
|
80
80
|
function M(e) {
|
|
81
81
|
if (e.length === 0) return !1;
|
|
@@ -102,7 +102,7 @@ function N(e) {
|
|
|
102
102
|
}
|
|
103
103
|
function P(e) {
|
|
104
104
|
let t = Number(e.minAmount) || 0, n = Number(e.maxAmount) || 0, r = A(e);
|
|
105
|
-
return [r ===
|
|
105
|
+
return [r === h.LessThan || r === h.All ? 0 : t, r === h.GreaterThanOrEqual || r === h.All ? Infinity : n];
|
|
106
106
|
}
|
|
107
107
|
function F(e, t, n) {
|
|
108
108
|
let [r, i] = P(e);
|
|
@@ -113,17 +113,17 @@ function F(e, t, n) {
|
|
|
113
113
|
}
|
|
114
114
|
function I(e, t, n) {
|
|
115
115
|
let r = {}, i = e.minAmount.trim() !== "", a = e.maxAmount.trim() !== "", o = Number(e.minAmount.trim()), s = Number(e.maxAmount.trim());
|
|
116
|
-
return i && (!Number.isFinite(o) || o < 0) && (r.minAmount =
|
|
116
|
+
return i && (!Number.isFinite(o) || o < 0) && (r.minAmount = f.InvalidMinAmount), a && (!Number.isFinite(s) || s <= 0) && (r.maxAmount = f.InvalidMaxAmount), i && a && !r.minAmount && !r.maxAmount && o >= s && (r.maxAmount = f.MaxLessThanOrEqualToMin), e.outcome === g.RequireApproval && e.approvers.length === 0 && (r.approvers = f.ApproversRequired), !r.minAmount && !r.maxAmount && F(e, t, n) && (a ? r.maxAmount = f.ConflictsWithAnotherRule : r.minAmount = f.ConflictsWithAnotherRule), r;
|
|
117
117
|
}
|
|
118
118
|
function L(e, t) {
|
|
119
119
|
let n = A(t);
|
|
120
120
|
return {
|
|
121
121
|
id: e,
|
|
122
122
|
conditionType: n,
|
|
123
|
-
minAmount: n ===
|
|
124
|
-
maxAmount: n ===
|
|
123
|
+
minAmount: n === h.InRange || n === h.GreaterThanOrEqual ? Number(t.minAmount) : void 0,
|
|
124
|
+
maxAmount: n === h.LessThan || n === h.InRange ? Number(t.maxAmount) : void 0,
|
|
125
125
|
outcome: t.outcome,
|
|
126
|
-
approvers: t.outcome ===
|
|
126
|
+
approvers: t.outcome === g.RequireApproval ? t.approvers : []
|
|
127
127
|
};
|
|
128
128
|
}
|
|
129
129
|
function R(e) {
|
|
@@ -137,18 +137,18 @@ function R(e) {
|
|
|
137
137
|
function z() {
|
|
138
138
|
let c = s();
|
|
139
139
|
b(() => {
|
|
140
|
-
c(
|
|
140
|
+
c(p.Mounted);
|
|
141
141
|
}, [c]);
|
|
142
|
-
let { initResponse:
|
|
143
|
-
let e = D?.data ?? [], t = e.find((e) => e.isSystemRole === !0 && E(e.key, "admin")), n = e.find((e) => e.isSystemRole === !0 && O(e.key)), r = { reporting_manager:
|
|
144
|
-
t && (r[t.id] =
|
|
142
|
+
let { initResponse: f } = l(), m = ee(), h = t(n().organizationStatus), g = f?.scopes?.includes(r.RoleReadOrg) ?? !1, { data: D, isResolving: A, isError: j } = i({ enabled: g }), P = x(() => k(D?.data ?? []), [D]), F = x(() => {
|
|
143
|
+
let e = D?.data ?? [], t = e.find((e) => e.isSystemRole === !0 && E(e.key, "admin")), n = e.find((e) => e.isSystemRole === !0 && O(e.key)), r = { reporting_manager: u.ReportingManagerLabel };
|
|
144
|
+
t && (r[t.id] = u.AdminLabel), n && (r[n.id] = u.CfoLabel);
|
|
145
145
|
for (let t of e) r[t.id] || (r[t.id] = t.name);
|
|
146
146
|
return r;
|
|
147
|
-
}, [D]), { rules: z, isLoading: B, hasLoaded: re, saveStatus: V, createRule: ie, updateRule: H, deleteRule: U } =
|
|
147
|
+
}, [D]), { rules: z, isLoading: B, hasLoaded: re, saveStatus: V, createRule: ie, updateRule: H, deleteRule: U } = te(F), [W, G] = S(!1), [K, q] = S(T), [J, Y] = S(null), [X, Z] = S(null);
|
|
148
148
|
b(() => {
|
|
149
|
-
V === "success" && e.success(
|
|
149
|
+
V === "success" && e.success(_.Saved), V === "error" && e.error(_.FailedToSave);
|
|
150
150
|
}, [V]);
|
|
151
|
-
let Q = B ||
|
|
151
|
+
let Q = B || m && !f || h && !re, ae = M(z), oe = N(z), $ = Q || A || V === "saving", se = W ? I(K, z) : {}, ce = X && J ? I(X, z, J) : {}, le = () => {
|
|
152
152
|
G(!0), q(T);
|
|
153
153
|
}, ue = () => {
|
|
154
154
|
G(!1);
|
|
@@ -173,13 +173,13 @@ function z() {
|
|
|
173
173
|
}, _e = async (e) => {
|
|
174
174
|
await U(e), J === e && (Y(null), Z(null));
|
|
175
175
|
};
|
|
176
|
-
return
|
|
177
|
-
title:
|
|
178
|
-
description:
|
|
179
|
-
}) : j ? /* @__PURE__ */
|
|
180
|
-
title:
|
|
181
|
-
description:
|
|
182
|
-
}) : /* @__PURE__ */ ne
|
|
176
|
+
return f !== void 0 && !g ? /* @__PURE__ */ C(o, {
|
|
177
|
+
title: d.MissingRolePermissionTitle,
|
|
178
|
+
description: d.MissingRolePermissionDescription
|
|
179
|
+
}) : j ? /* @__PURE__ */ C(o, {
|
|
180
|
+
title: d.RolesUnavailableTitle,
|
|
181
|
+
description: d.RolesUnavailableDescription
|
|
182
|
+
}) : /* @__PURE__ */ w(ne, { children: [/* @__PURE__ */ C(a, {}), /* @__PURE__ */ C(v, {
|
|
183
183
|
rules: z,
|
|
184
184
|
isBusy: $,
|
|
185
185
|
isLoading: Q,
|
|
@@ -213,12 +213,12 @@ function z() {
|
|
|
213
213
|
})] });
|
|
214
214
|
}
|
|
215
215
|
function B({ token: e, orgId: t, widgetToken: n, organizationId: r, ...i } = {}) {
|
|
216
|
-
return /* @__PURE__ */
|
|
216
|
+
return /* @__PURE__ */ C(c, {
|
|
217
217
|
...i,
|
|
218
|
-
widgetName:
|
|
218
|
+
widgetName: m,
|
|
219
219
|
widgetToken: n === void 0 ? e : n,
|
|
220
220
|
organizationId: r === void 0 ? t : r,
|
|
221
|
-
children: /* @__PURE__ */
|
|
221
|
+
children: /* @__PURE__ */ C(z, {})
|
|
222
222
|
});
|
|
223
223
|
}
|
|
224
224
|
//#endregion
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { AmountConditionType as e, ApprovalOutcomeType as t } from "./index2.js";
|
|
2
|
+
import { ApprovalRuleToastLabels as n } from "./index3.js";
|
|
3
|
+
import "./index4.js";
|
|
4
|
+
import "./index5.js";
|
|
5
|
+
import "./index6.js";
|
|
6
|
+
import "./index7.js";
|
|
7
|
+
import { ExpenseApprovalsPage as r } from "./index8.js";
|
|
8
|
+
export { e as AmountConditionType, t as ApprovalOutcomeType, n as ApprovalRuleToastLabels, r as ExpenseApprovalsPage };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/
|
|
1
|
+
//#region ../../libs/tesouro-embedded-components-react/expense-management-widget/approval-policies/ui/dist/index2.js
|
|
2
2
|
var e = {
|
|
3
3
|
All: "all",
|
|
4
4
|
LessThan: "less_than",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/
|
|
1
|
+
//#region ../../libs/tesouro-embedded-components-react/expense-management-widget/approval-policies/ui/dist/index3.js
|
|
2
2
|
var e = {
|
|
3
3
|
Title: "Expense approvals",
|
|
4
4
|
Description: "Configure who needs to approve expenses and under what conditions. A company admin can always approve a transaction even if the manager hasn't yet got to it.",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/
|
|
1
|
+
//#region ../../libs/tesouro-embedded-components-react/expense-management-widget/approval-policies/ui/dist/index4.js
|
|
2
2
|
function e(e) {
|
|
3
3
|
return `$${e.toLocaleString(void 0, {
|
|
4
4
|
minimumFractionDigits: 0,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Button as e, Typography as t } from "
|
|
2
|
-
import { EmptyApprovalRulesLabels as n } from "./
|
|
1
|
+
import { Button as e, Typography as t } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { EmptyApprovalRulesLabels as n } from "./index3.js";
|
|
3
3
|
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
4
4
|
import { PlusIcon as a, ShieldCheck as o } from "lucide-react";
|
|
5
|
-
//#region ../../libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/
|
|
5
|
+
//#region ../../libs/tesouro-embedded-components-react/expense-management-widget/approval-policies/ui/dist/index5.js
|
|
6
6
|
var s = ({ onAddRule: s, onLearnMore: c }) => /* @__PURE__ */ i("div", {
|
|
7
7
|
className: "ttw:flex ttw:flex-col ttw:items-center ttw:py-12 ttw:gap-4 ttw:w-full ttw:max-w-[600px] ttw:mx-auto",
|
|
8
8
|
children: [
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Badge as e, Button as t } from "
|
|
2
|
-
import { AmountConditionType as n, ApprovalOutcomeType as r } from "./
|
|
3
|
-
import { ApprovalRuleCardLabels as i } from "./
|
|
4
|
-
import { formatAmount as a } from "./
|
|
1
|
+
import { Badge as e, Button as t } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { AmountConditionType as n, ApprovalOutcomeType as r } from "./index2.js";
|
|
3
|
+
import { ApprovalRuleCardLabels as i } from "./index3.js";
|
|
4
|
+
import { formatAmount as a } from "./index4.js";
|
|
5
5
|
import { Fragment as o, jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
6
6
|
import { RefreshCw as l, SquarePen as u, Trash2 as d } from "lucide-react";
|
|
7
|
-
//#region ../../libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/
|
|
7
|
+
//#region ../../libs/tesouro-embedded-components-react/expense-management-widget/approval-policies/ui/dist/index6.js
|
|
8
8
|
function f({ conditionType: e, minAmount: t, maxAmount: r }) {
|
|
9
9
|
let i = (e) => /* @__PURE__ */ s("strong", { children: a(e) });
|
|
10
10
|
switch (e) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Button as e, Combobox as t, Input as n, Tooltip as r, TooltipContent as i, TooltipProvider as a, TooltipTrigger as o, Typography as s } from "
|
|
2
|
-
import { ApprovalOutcomeType as c } from "./
|
|
3
|
-
import { ApprovalRuleFormLabels as l } from "./
|
|
1
|
+
import { Button as e, Combobox as t, Input as n, Tooltip as r, TooltipContent as i, TooltipProvider as a, TooltipTrigger as o, Typography as s } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { ApprovalOutcomeType as c } from "./index2.js";
|
|
3
|
+
import { ApprovalRuleFormLabels as l } from "./index3.js";
|
|
4
4
|
import { useId as u, useState as d } from "react";
|
|
5
5
|
import { jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
6
6
|
import { CircleAlert as m, FilePenLine as h, RefreshCw as g, Trash2 as _ } from "lucide-react";
|
|
7
|
-
//#region ../../libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/
|
|
7
|
+
//#region ../../libs/tesouro-embedded-components-react/expense-management-widget/approval-policies/ui/dist/index7.js
|
|
8
8
|
function v({ value: e, onChange: t, onBlur: a, placeholder: s, error: c, disabled: l, testId: u }) {
|
|
9
9
|
return /* @__PURE__ */ p("div", {
|
|
10
10
|
className: "ttw:relative ttw:w-39",
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { Button as e, Skeleton as t } from "
|
|
2
|
-
import { ExpenseApprovalsPageLabels as n, GapCalloutLabels as r } from "./
|
|
3
|
-
import { formatAmount as i } from "./
|
|
4
|
-
import { EmptyApprovalRules as a } from "./
|
|
5
|
-
import { ApprovalRuleCard as o } from "./
|
|
6
|
-
import { ApprovalRuleForm as s } from "./
|
|
1
|
+
import { Button as e, Skeleton as t } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { ExpenseApprovalsPageLabels as n, GapCalloutLabels as r } from "./index3.js";
|
|
3
|
+
import { formatAmount as i } from "./index4.js";
|
|
4
|
+
import { EmptyApprovalRules as a } from "./index5.js";
|
|
5
|
+
import { ApprovalRuleCard as o } from "./index6.js";
|
|
6
|
+
import { ApprovalRuleForm as s } from "./index7.js";
|
|
7
7
|
import { Fragment as c, jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
8
8
|
import { CircleCheck as d, Info as f, PlusIcon as p } from "lucide-react";
|
|
9
|
-
//#region ../../libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/
|
|
9
|
+
//#region ../../libs/tesouro-embedded-components-react/expense-management-widget/approval-policies/ui/dist/index8.js
|
|
10
10
|
function m(e) {
|
|
11
11
|
return e.to === null ? `${r.Above} ${i(e.from)}` : `${i(e.from)} ${r.RangeSeparator} ${i(e.to)}`;
|
|
12
12
|
}
|
|
@@ -1,19 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
|
|
19
|
-
export { _ as useApproveApprovalRequestMutation, v as useApproveTransactionMutation, l as useDeleteReceiptMutation, r as useEntityUsersByIdsQuery, o as useExpenseHistoryQuery, a as useExpenseLedgerAccountsQuery, m as useExpenseReceiptsCountQuery, p as useExpenseTransactionIdsQuery, f as useExpenseTransactionsCountQuery, g as useGetApprovalRequestsQuery, e as useGetReceiptsQuery, s as useGetTransactionQuery, t as useGetTransactionsQuery, n as useOrganizationDepartmentsQuery, i as useOrganizationLocationsQuery, c as usePatchReceiptMutation, y as useRejectApprovalRequestMutation, b as useRejectTransactionMutation, x as useReopenTransactionMutation, S as useSubmitTransactionMutation, d as useTrackReceiptMatching, h as useTransactionValidationsQuery, C as useUpdateTransactionMutation, u as useUploadReceiptMutation };
|
|
1
|
+
import { useGetTransactionsQuery as e } from "./lib/useGetTransactionsQuery.js";
|
|
2
|
+
import { useOrganizationDepartmentsQuery as t } from "./lib/useOrganizationDepartmentsQuery.js";
|
|
3
|
+
import { useEntityUsersByIdsQuery as n } from "./lib/useEntityUsersByIdsQuery.js";
|
|
4
|
+
import { useOrganizationLocationsQuery as r } from "./lib/useOrganizationLocationsQuery.js";
|
|
5
|
+
import { useExpenseLedgerAccountsQuery as i } from "./lib/useExpenseLedgerAccountsQuery.js";
|
|
6
|
+
import { useExpenseHistoryQuery as a } from "./lib/useExpenseHistoryQuery.js";
|
|
7
|
+
import { useGetTransactionQuery as o } from "./lib/useGetTransactionQuery.js";
|
|
8
|
+
import { usePatchReceiptMutation as s } from "./lib/usePatchReceiptMutation.js";
|
|
9
|
+
import { useUploadReceiptMutation as c } from "./lib/useUploadReceiptMutation.js";
|
|
10
|
+
import { useTrackReceiptMatching as l } from "./lib/useTrackReceiptMatching.js";
|
|
11
|
+
import { useExpenseTransactionsCountQuery as u } from "./lib/useExpenseTransactionsCountQuery.js";
|
|
12
|
+
import { useExpenseTransactionIdsQuery as d } from "./lib/useExpenseTransactionIdsQuery.js";
|
|
13
|
+
import { useExpenseReceiptsCountQuery as f } from "./lib/useExpenseReceiptsCountQuery.js";
|
|
14
|
+
import { useTransactionValidationsQuery as p } from "./lib/useTransactionValidationsQuery.js";
|
|
15
|
+
import { useGetApprovalRequestsQuery as m } from "./lib/useGetApprovalRequestsQuery.js";
|
|
16
|
+
import { useApproveApprovalRequestMutation as h, useApproveTransactionMutation as g, useRejectApprovalRequestMutation as _, useRejectTransactionMutation as v, useReopenTransactionMutation as y, useSubmitTransactionMutation as b, useUpdateTransactionMutation as x } from "./lib/useTransactionReviewMutations.js";
|
|
17
|
+
import { useHasDirectReportsQuery as S } from "./lib/useHasDirectReportsQuery.js";
|
|
18
|
+
export { h as useApproveApprovalRequestMutation, g as useApproveTransactionMutation, n as useEntityUsersByIdsQuery, a as useExpenseHistoryQuery, i as useExpenseLedgerAccountsQuery, f as useExpenseReceiptsCountQuery, d as useExpenseTransactionIdsQuery, u as useExpenseTransactionsCountQuery, m as useGetApprovalRequestsQuery, o as useGetTransactionQuery, e as useGetTransactionsQuery, S as useHasDirectReportsQuery, t as useOrganizationDepartmentsQuery, r as useOrganizationLocationsQuery, s as usePatchReceiptMutation, _ as useRejectApprovalRequestMutation, v as useRejectTransactionMutation, y as useReopenTransactionMutation, b as useSubmitTransactionMutation, l as useTrackReceiptMatching, p as useTransactionValidationsQuery, x as useUpdateTransactionMutation, c as useUploadReceiptMutation };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { invalidateAllClients as e } from "
|
|
2
|
-
import "
|
|
3
|
-
import { analyticsTransactionsInvalidationKey as t, transactionsIdExpenseHistoryInvalidationKey as n, transactionsIdInvalidationKey as r, transactionsInvalidationKey as i } from "./
|
|
4
|
-
//#region ../../libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/
|
|
1
|
+
import { invalidateAllClients as e } from "../../../../shared/data-access/dist/lib/clientRegistry.js";
|
|
2
|
+
import "../../../../shared/data-access/dist/index.js";
|
|
3
|
+
import { analyticsTransactionsInvalidationKey as t, transactionsIdExpenseHistoryInvalidationKey as n, transactionsIdInvalidationKey as r, transactionsInvalidationKey as i } from "./queryKeys.js";
|
|
4
|
+
//#region ../../libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/lib/invalidateTransactionViews.js
|
|
5
5
|
async function a({ client: a, organizationId: o, transactionId: s }) {
|
|
6
6
|
await Promise.all([
|
|
7
7
|
e(i({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { getAnalyticsReceiptsQueryKey as e, getAnalyticsTransactionsQueryKey as t, getReceiptsIdQueryKey as n, getReceiptsQueryKey as r, getTransactionsIdExpenseHistoryQueryKey as i, getTransactionsIdQueryKey as a, getTransactionsQueryKey as o } from "
|
|
2
|
-
import { organizationHeaders as s } from "
|
|
3
|
-
import "
|
|
4
|
-
//#region ../../libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/
|
|
1
|
+
import { getAnalyticsReceiptsQueryKey as e, getAnalyticsTransactionsQueryKey as t, getReceiptsIdQueryKey as n, getReceiptsQueryKey as r, getTransactionsIdExpenseHistoryQueryKey as i, getTransactionsIdQueryKey as a, getTransactionsQueryKey as o } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
2
|
+
import { organizationHeaders as s } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
3
|
+
import "../../../../shared/data-access/dist/index.js";
|
|
4
|
+
//#region ../../libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/lib/queryKeys.js
|
|
5
5
|
var c = {
|
|
6
6
|
metric: "id",
|
|
7
7
|
aggregation_function: "count"
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { getEntityUsersOptions as e } from "
|
|
6
|
-
import { withAuthEpoch as t } from "
|
|
7
|
-
import { useEmbedApi as n } from "
|
|
8
|
-
import { organizationHeaders as r } from "
|
|
9
|
-
import "
|
|
5
|
+
import { getEntityUsersOptions as e } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
6
|
+
import { withAuthEpoch as t } from "../../../../shared/data-access/dist/lib/withAuthEpoch.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";
|
|
9
|
+
import "../../../../shared/data-access/dist/index.js";
|
|
10
10
|
import { useMemo as i } from "react";
|
|
11
11
|
import { useQuery as a } from "@tanstack/react-query";
|
|
12
|
-
//#region ../../libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/
|
|
12
|
+
//#region ../../libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/lib/useEntityUsersByIdsQuery.js
|
|
13
13
|
var o = 100;
|
|
14
14
|
function s({ ids: s, enabled: c = !0 }) {
|
|
15
15
|
let { client: l, organizationId: u, widgetToken: d, authEpoch: f, organizationStatus: p } = n(), m = i(() => [...new Set(s.filter(Boolean))].sort().slice(0, o), [s]), h = e({
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { getTransactionsIdExpenseHistoryOptions as e } from "
|
|
6
|
-
import { withAuthEpoch as t } from "
|
|
7
|
-
import { useEmbedApi as n } from "
|
|
8
|
-
import { organizationHeaders as r } from "
|
|
9
|
-
import "
|
|
5
|
+
import { getTransactionsIdExpenseHistoryOptions as e } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
6
|
+
import { withAuthEpoch as t } from "../../../../shared/data-access/dist/lib/withAuthEpoch.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";
|
|
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/expense-management-widget/data-access/dist/
|
|
11
|
+
//#region ../../libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/lib/useExpenseHistoryQuery.js
|
|
12
12
|
var a = 500;
|
|
13
13
|
function o({ transactionId: o, enabled: s = !0 } = {}) {
|
|
14
14
|
let { client: c, organizationId: l, widgetToken: u, authEpoch: d, organizationStatus: f } = n(), p = e({
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { useLedgerAccountsQuery as e } from "
|
|
6
|
-
import "
|
|
7
|
-
//#region ../../libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/
|
|
5
|
+
import { useLedgerAccountsQuery as e } from "../../../../shared/data-access/dist/lib/reference-data/useLedgerAccountsQuery.js";
|
|
6
|
+
import "../../../../shared/data-access/dist/index.js";
|
|
7
|
+
//#region ../../libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/lib/useExpenseLedgerAccountsQuery.js
|
|
8
8
|
var t = 100;
|
|
9
9
|
function n({ enabled: n = !0 } = {}) {
|
|
10
10
|
return e({
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { getAnalyticsReceiptsOptions as e } from "
|
|
6
|
-
import { withAuthEpoch as t } from "
|
|
7
|
-
import { useEmbedApi as n } from "
|
|
8
|
-
import "
|
|
5
|
+
import { getAnalyticsReceiptsOptions as e } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
6
|
+
import { withAuthEpoch as t } from "../../../../shared/data-access/dist/lib/withAuthEpoch.js";
|
|
7
|
+
import { useEmbedApi as n } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
8
|
+
import "../../../../shared/data-access/dist/index.js";
|
|
9
9
|
import { useQuery as r } from "@tanstack/react-query";
|
|
10
|
-
//#region ../../libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/
|
|
10
|
+
//#region ../../libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/lib/useExpenseReceiptsCountQuery.js
|
|
11
11
|
function i({ enabled: i, ...a } = {}) {
|
|
12
12
|
let { client: o, organizationId: s, widgetToken: c, authEpoch: l, organizationStatus: u } = n(), d = !!(s && c) && (i === !0 || i === void 0), f = e({
|
|
13
13
|
query: {
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { useGetTransactionsQuery as e } from "./
|
|
5
|
+
import { useGetTransactionsQuery as e } from "./useGetTransactionsQuery.js";
|
|
6
6
|
import { useMemo as t } from "react";
|
|
7
|
-
//#region ../../libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/
|
|
7
|
+
//#region ../../libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/lib/useExpenseTransactionIdsQuery.js
|
|
8
8
|
function n(n = {}) {
|
|
9
9
|
let r = e({
|
|
10
10
|
...n,
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { getAnalyticsTransactionsOptions as e } from "
|
|
6
|
-
import { withAuthEpoch as t } from "
|
|
7
|
-
import { useEmbedApi as n } from "
|
|
8
|
-
import "
|
|
5
|
+
import { getAnalyticsTransactionsOptions as e } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
6
|
+
import { withAuthEpoch as t } from "../../../../shared/data-access/dist/lib/withAuthEpoch.js";
|
|
7
|
+
import { useEmbedApi as n } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
8
|
+
import "../../../../shared/data-access/dist/index.js";
|
|
9
9
|
import { useQuery as r } from "@tanstack/react-query";
|
|
10
|
-
//#region ../../libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/
|
|
10
|
+
//#region ../../libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/lib/useExpenseTransactionsCountQuery.js
|
|
11
11
|
function i({ enabled: i, ...a } = {}) {
|
|
12
12
|
let { client: o, organizationId: s, widgetToken: c, authEpoch: l, organizationStatus: u } = n(), d = !!(s && c) && (i === !0 || i === void 0), f = e({
|
|
13
13
|
query: {
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { getApprovalRequestsOptions as e } from "
|
|
6
|
-
import { withAuthEpoch as t } from "
|
|
7
|
-
import { useEmbedApi as n } from "
|
|
8
|
-
import "
|
|
5
|
+
import { getApprovalRequestsOptions as e } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
6
|
+
import { withAuthEpoch as t } from "../../../../shared/data-access/dist/lib/withAuthEpoch.js";
|
|
7
|
+
import { useEmbedApi as n } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
8
|
+
import "../../../../shared/data-access/dist/index.js";
|
|
9
9
|
import { useQuery as r } from "@tanstack/react-query";
|
|
10
|
-
//#region ../../libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/
|
|
10
|
+
//#region ../../libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/lib/useGetApprovalRequestsQuery.js
|
|
11
11
|
function i({ transactionId: i, enabled: a } = {}) {
|
|
12
12
|
let { client: o, organizationId: s, widgetToken: c, authEpoch: l, organizationStatus: u } = n(), d = !!(s && c && i) && (a === !0 || a === void 0), f = e({
|
|
13
13
|
client: o,
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { getTransactionsIdOptions as e } from "
|
|
6
|
-
import { withAuthEpoch as t } from "
|
|
7
|
-
import { useEmbedApi as n } from "
|
|
8
|
-
import "
|
|
5
|
+
import { getTransactionsIdOptions as e } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
6
|
+
import { withAuthEpoch as t } from "../../../../shared/data-access/dist/lib/withAuthEpoch.js";
|
|
7
|
+
import { useEmbedApi as n } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
8
|
+
import "../../../../shared/data-access/dist/index.js";
|
|
9
9
|
import { useQuery as r } from "@tanstack/react-query";
|
|
10
|
-
//#region ../../libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/
|
|
10
|
+
//#region ../../libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/lib/useGetTransactionQuery.js
|
|
11
11
|
function i({ transactionId: i, enabled: a } = {}) {
|
|
12
12
|
let { client: o, organizationId: s, widgetToken: c, authEpoch: l, organizationStatus: u } = n(), d = !!(s && c && i) && (a === !0 || a === void 0), f = e({
|
|
13
13
|
client: o,
|