@tesouro/embedded-components-react 0.5.230 → 0.5.231
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/dist/index.css +10 -0
- package/dist/index.d.ts +22 -21
- package/dist/index.js +2 -2
- package/dist/lib/ExpenseManagementWidget.d.ts +22 -21
- package/dist/lib/ExpenseManagementWidget.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/{index6.js → lib/useOrganizationLocationsQuery.js} +6 -6
- 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/settings-widget/feature/dist/index5.js +1 -1
- 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/index22.js +0 -1
- 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
|
@@ -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,
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { getTransactionsOptions as e } from "
|
|
6
|
-
import { withAuthEpoch as t } from "
|
|
7
|
-
import { useEmbedApi as n } from "
|
|
8
|
-
import "
|
|
5
|
+
import { getTransactionsOptions 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/useGetTransactionsQuery.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: a,
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
"use client";
|
|
4
|
+
"use client";
|
|
5
|
+
import { getUsersOptions 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
|
+
import { useQuery as i } from "@tanstack/react-query";
|
|
11
|
+
//#region ../../libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/lib/useHasDirectReportsQuery.js
|
|
12
|
+
function a({ userId: a, enabled: o = !0 }) {
|
|
13
|
+
let { client: s, organizationId: c, widgetToken: l, authEpoch: u, organizationStatus: d } = n(), f = e({
|
|
14
|
+
client: s,
|
|
15
|
+
headers: r(c),
|
|
16
|
+
query: {
|
|
17
|
+
Status: "ACTIVE",
|
|
18
|
+
Limit: 1,
|
|
19
|
+
ReportingManagerUserId: a
|
|
20
|
+
}
|
|
21
|
+
}), p = i({
|
|
22
|
+
...t(f, {
|
|
23
|
+
authEpoch: u,
|
|
24
|
+
organizationStatus: d
|
|
25
|
+
}),
|
|
26
|
+
enabled: !!(c && l && a) && o === !0
|
|
27
|
+
});
|
|
28
|
+
return {
|
|
29
|
+
...p,
|
|
30
|
+
hasDirectReports: (p.data?.data?.length ?? 0) > 0
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
//#endregion
|
|
34
|
+
export { a as useHasDirectReportsQuery };
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { listDepartmentsOptions 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 { listDepartmentsOptions 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/useOrganizationDepartmentsQuery.js
|
|
12
12
|
var a = 100;
|
|
13
13
|
function o({ enabled: o = !0 } = {}) {
|
|
14
14
|
let { client: s, organizationId: c, widgetToken: l, authEpoch: u, organizationStatus: d } = n(), f = e({
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { listLocationsOptions 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 { listLocationsOptions 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/useOrganizationLocationsQuery.js
|
|
12
12
|
var a = 100;
|
|
13
13
|
function o({ enabled: o = !0 } = {}) {
|
|
14
14
|
let { client: s, organizationId: c, widgetToken: l, authEpoch: u, organizationStatus: d } = n(), f = e({
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { patchReceiptsIdMutation as e } from "
|
|
6
|
-
import { invalidateAllClients as t } from "
|
|
7
|
-
import { useEmbedApi as n } from "
|
|
8
|
-
import { organizationHeaders as r } from "
|
|
9
|
-
import "
|
|
10
|
-
import { analyticsReceiptsInvalidationKey as i, analyticsTransactionsInvalidationKey as a, receiptsIdInvalidationKey as o, receiptsInvalidationKey as s, transactionsIdExpenseHistoryInvalidationKey as c, transactionsIdInvalidationKey as l, transactionsInvalidationKey as u } from "./
|
|
5
|
+
import { patchReceiptsIdMutation as e } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.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";
|
|
9
|
+
import "../../../../shared/data-access/dist/index.js";
|
|
10
|
+
import { analyticsReceiptsInvalidationKey as i, analyticsTransactionsInvalidationKey as a, receiptsIdInvalidationKey as o, receiptsInvalidationKey as s, transactionsIdExpenseHistoryInvalidationKey as c, transactionsIdInvalidationKey as l, transactionsInvalidationKey as u } from "./queryKeys.js";
|
|
11
11
|
import { useMutation as d } 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/usePatchReceiptMutation.js
|
|
13
13
|
function f() {
|
|
14
14
|
let { client: f, organizationId: p } = n(), m = e({
|
|
15
15
|
client: f,
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { getReceipts as e } from "
|
|
6
|
-
import { invalidateAllClients as t } from "
|
|
7
|
-
import { useEmbedApi as n } from "
|
|
8
|
-
import { organizationHeaders as r } from "
|
|
9
|
-
import "
|
|
10
|
-
import { analyticsReceiptsInvalidationKey as i, analyticsTransactionsInvalidationKey as a, receiptsIdInvalidationKey as o, receiptsInvalidationKey as s, transactionsIdInvalidationKey as c, transactionsInvalidationKey as l } from "./
|
|
5
|
+
import { getReceipts 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";
|
|
9
|
+
import "../../../../shared/data-access/dist/index.js";
|
|
10
|
+
import { analyticsReceiptsInvalidationKey as i, analyticsTransactionsInvalidationKey as a, receiptsIdInvalidationKey as o, receiptsInvalidationKey as s, transactionsIdInvalidationKey as c, transactionsInvalidationKey as l } from "./queryKeys.js";
|
|
11
11
|
import { useCallback as u, useEffect as d, useRef as f } from "react";
|
|
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/useTrackReceiptMatching.js
|
|
13
13
|
var p = 3e3, m = 30, h = 10;
|
|
14
14
|
function g(e) {
|
|
15
15
|
return e.transaction_id ? "matched" : e.ocr_status === "processing" ? null : e.ocr_status === "error" ? "unreadable" : "unmatched";
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { patchTransactionsId as e, postApprovalRequestsIdApprove as t, postApprovalRequestsIdReject as n, postTransactionsIdApprove as r, postTransactionsIdReject as i, postTransactionsIdReopen as a, postTransactionsIdSubmit as o } from "
|
|
6
|
-
import { useEmbedApi as s } from "
|
|
7
|
-
import { organizationHeaders as c } from "
|
|
8
|
-
import "
|
|
9
|
-
import { invalidateTransactionViews as l } from "./
|
|
5
|
+
import { patchTransactionsId as e, postApprovalRequestsIdApprove as t, postApprovalRequestsIdReject as n, postTransactionsIdApprove as r, postTransactionsIdReject as i, postTransactionsIdReopen as a, postTransactionsIdSubmit as o } from "../../../../shared/data-access/dist/lib/rest/sdk.gen.js";
|
|
6
|
+
import { useEmbedApi as s } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
7
|
+
import { organizationHeaders as c } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
8
|
+
import "../../../../shared/data-access/dist/index.js";
|
|
9
|
+
import { invalidateTransactionViews as l } from "./invalidateTransactionViews.js";
|
|
10
10
|
import { useMutation as u } 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/useTransactionReviewMutations.js
|
|
12
12
|
function d() {
|
|
13
13
|
let { client: e, organizationId: t } = s();
|
|
14
14
|
return u({
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { getTransactionsValidationsOptions as e } from "
|
|
6
|
-
import { withAuthEpoch as t } from "
|
|
7
|
-
import { useEmbedApi as n } from "
|
|
8
|
-
import "
|
|
5
|
+
import { getTransactionsValidationsOptions 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/useTransactionValidationsQuery.js
|
|
11
11
|
function i({ enabled: i } = {}) {
|
|
12
12
|
let { client: a, organizationId: o, widgetToken: s, authEpoch: c, organizationStatus: l } = n(), u = !!(o && s) && (i === !0 || i === void 0), d = e({
|
|
13
13
|
client: a,
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { postReceiptsUploadFromFileMutation as e } from "
|
|
6
|
-
import { invalidateAllClients as t } from "
|
|
7
|
-
import { useEmbedApi as n } from "
|
|
8
|
-
import { organizationHeaders as r } from "
|
|
9
|
-
import "
|
|
10
|
-
import { analyticsReceiptsInvalidationKey as i, receiptsInvalidationKey as a } from "./
|
|
5
|
+
import { postReceiptsUploadFromFileMutation as e } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.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";
|
|
9
|
+
import "../../../../shared/data-access/dist/index.js";
|
|
10
|
+
import { analyticsReceiptsInvalidationKey as i, receiptsInvalidationKey as a } from "./queryKeys.js";
|
|
11
11
|
import { useMutation as o } 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/useUploadReceiptMutation.js
|
|
13
13
|
function s() {
|
|
14
14
|
let { client: s, organizationId: c } = n();
|
|
15
15
|
return o({
|
package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import "./
|
|
3
|
-
import "./
|
|
4
|
-
import "./
|
|
5
|
-
import "./
|
|
6
|
-
import
|
|
7
|
-
import "
|
|
8
|
-
import "
|
|
9
|
-
import
|
|
10
|
-
export {
|
|
1
|
+
import "./index2.js";
|
|
2
|
+
import "./index6.js";
|
|
3
|
+
import "./index10.js";
|
|
4
|
+
import "./index11.js";
|
|
5
|
+
import { ExpenseManagementWidget as e } from "./index19.js";
|
|
6
|
+
import "./index20.js";
|
|
7
|
+
import "../../approval-policies/feature/dist/index4.js";
|
|
8
|
+
import { ExpenseApprovalPoliciesWidget as t } from "../../approval-policies/feature/dist/index6.js";
|
|
9
|
+
import "../../approval-policies/feature/dist/index.js";
|
|
10
|
+
export { t as ExpenseApprovalPoliciesWidget, e as ExpenseManagementWidget };
|