@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
package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index.js
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { usePaymentTermsQuery as e } from "../../../shared/data-access/dist/lib/reference-data/usePaymentTermsQuery.js";
|
|
2
2
|
import "../../../shared/data-access/dist/index.js";
|
|
3
3
|
import "./index2.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import "./index8.js";
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
|
|
4
|
+
import { useAllReceivableHistoryQuery as t } from "./index3.js";
|
|
5
|
+
import { useCreateEntityBankAccountMutation as n, usePaymentAccountsQuery as r } from "./index4.js";
|
|
6
|
+
import { useDeleteReceivableAttachmentMutation as i, useUploadReceivableAttachmentMutation as a } from "./index5.js";
|
|
7
|
+
import { useSendReceivableEmailMutation as o } from "./index7.js";
|
|
8
|
+
import { useAcceptReceivableMutation as s, useCancelReceivableMutation as c, useCloneReceivableMutation as l, useCreateReceivableMutation as u, useDeclineReceivableMutation as d, useDeleteReceivableMutation as f, useIssueReceivableMutation as p, useUpdateReceivableMutation as m } from "./index8.js";
|
|
9
|
+
import { useReceivablePaymentRecordsQuery as h } from "./index9.js";
|
|
10
|
+
import { useMarkReceivablePaidMutation as g, useMarkReceivablePartiallyPaidMutation as _, useMarkReceivableUncollectibleMutation as v } from "./index10.js";
|
|
11
|
+
import { useReceivablePdfLinkQuery as y, useReceivableQuery as b, useReceivableRequiredFieldsQuery as x, useReceivablesByIdQueries as S, useReceivablesQuery as C } from "./index11.js";
|
|
12
|
+
import { useCancelRecurrenceMutation as w, useCreateOverdueReminderMutation as T, useCreatePaymentReminderMutation as E, useCreateRecurrenceMutation as D, useOverdueRemindersQuery as O, usePauseRecurrenceMutation as k, usePaymentRemindersQuery as A, useRecurrenceQuery as j, useResumeRecurrenceMutation as M, useUpdateRecurrenceMutation as N } from "./index12.js";
|
|
13
|
+
import { useReceivablesAnalyticsQuery as P } from "./index13.js";
|
|
14
|
+
export { s as useAcceptReceivableMutation, t as useAllReceivableHistoryQuery, c as useCancelReceivableMutation, w as useCancelRecurrenceMutation, l as useCloneReceivableMutation, n as useCreateEntityBankAccountMutation, T as useCreateOverdueReminderMutation, E as useCreatePaymentReminderMutation, u as useCreateReceivableMutation, D as useCreateRecurrenceMutation, d as useDeclineReceivableMutation, i as useDeleteReceivableAttachmentMutation, f as useDeleteReceivableMutation, p as useIssueReceivableMutation, g as useMarkReceivablePaidMutation, _ as useMarkReceivablePartiallyPaidMutation, v as useMarkReceivableUncollectibleMutation, O as useOverdueRemindersQuery, k as usePauseRecurrenceMutation, r as usePaymentAccountsQuery, A as usePaymentRemindersQuery, e as usePaymentTermsQuery, h as useReceivablePaymentRecordsQuery, y as useReceivablePdfLinkQuery, b as useReceivableQuery, x as useReceivableRequiredFieldsQuery, P as useReceivablesAnalyticsQuery, S as useReceivablesByIdQueries, C as useReceivablesQuery, j as useRecurrenceQuery, M as useResumeRecurrenceMutation, o as useSendReceivableEmailMutation, m as useUpdateReceivableMutation, N as useUpdateRecurrenceMutation, a as useUploadReceivableAttachmentMutation };
|
package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index10.js
CHANGED
|
@@ -2,68 +2,105 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { useEmbedApi as
|
|
8
|
-
import { organizationHeaders as
|
|
5
|
+
import { postReceivablesIdMarkAsPaid as e, postReceivablesIdMarkAsPartiallyPaid as t, postReceivablesIdMarkAsUncollectible as n } from "../../../shared/data-access/dist/lib/rest/sdk.gen.js";
|
|
6
|
+
import { invalidateAllClients as r } from "../../../shared/data-access/dist/lib/clientRegistry.js";
|
|
7
|
+
import { useEmbedApi as i } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
8
|
+
import { organizationHeaders as a } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
9
9
|
import "../../../shared/data-access/dist/index.js";
|
|
10
|
-
import {
|
|
10
|
+
import { paymentRecordsInvalidationKey as o, receivableHistoryInvalidationKey as s, receivableInvalidationKey as c, receivablesAnalyticsInvalidationKey as l, receivablesInvalidationKey as u } from "./index2.js";
|
|
11
|
+
import { useMutation as d } from "@tanstack/react-query";
|
|
11
12
|
//#region ../../libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index10.js
|
|
12
|
-
function
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
|
|
13
|
+
async function f({ client: e, organizationId: t, receivableId: n }) {
|
|
14
|
+
await Promise.all([
|
|
15
|
+
r(u({
|
|
16
|
+
client: e,
|
|
17
|
+
organizationId: t
|
|
18
|
+
})),
|
|
19
|
+
r(c({
|
|
20
|
+
client: e,
|
|
21
|
+
organizationId: t,
|
|
22
|
+
receivableId: n
|
|
23
|
+
})),
|
|
24
|
+
r(s({
|
|
25
|
+
client: e,
|
|
26
|
+
organizationId: t,
|
|
27
|
+
receivableId: n
|
|
28
|
+
})),
|
|
29
|
+
r(l({
|
|
30
|
+
client: e,
|
|
31
|
+
organizationId: t
|
|
32
|
+
})),
|
|
33
|
+
r(o({
|
|
34
|
+
client: e,
|
|
35
|
+
organizationId: t
|
|
36
|
+
}))
|
|
37
|
+
]);
|
|
25
38
|
}
|
|
26
|
-
function
|
|
27
|
-
let { client:
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
39
|
+
function p() {
|
|
40
|
+
let { client: t, organizationId: n } = i();
|
|
41
|
+
return d({
|
|
42
|
+
mutationFn: async ({ path: r, body: i }) => {
|
|
43
|
+
let { data: o } = await e({
|
|
44
|
+
client: t,
|
|
45
|
+
headers: a(n),
|
|
46
|
+
path: r,
|
|
47
|
+
body: i,
|
|
48
|
+
throwOnError: !0
|
|
49
|
+
});
|
|
50
|
+
return o;
|
|
51
|
+
},
|
|
52
|
+
onSuccess: async (e, r) => {
|
|
53
|
+
await f({
|
|
54
|
+
client: t,
|
|
55
|
+
organizationId: n,
|
|
56
|
+
receivableId: r.path.receivable_id
|
|
57
|
+
});
|
|
58
|
+
}
|
|
38
59
|
});
|
|
39
60
|
}
|
|
40
|
-
function
|
|
41
|
-
let { client:
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
61
|
+
function m() {
|
|
62
|
+
let { client: e, organizationId: n } = i();
|
|
63
|
+
return d({
|
|
64
|
+
mutationFn: async ({ path: r, body: i }) => {
|
|
65
|
+
let { data: o } = await t({
|
|
66
|
+
client: e,
|
|
67
|
+
headers: a(n),
|
|
68
|
+
path: r,
|
|
69
|
+
body: i,
|
|
70
|
+
throwOnError: !0
|
|
71
|
+
});
|
|
72
|
+
return o;
|
|
73
|
+
},
|
|
74
|
+
onSuccess: async (t, r) => {
|
|
75
|
+
await f({
|
|
76
|
+
client: e,
|
|
77
|
+
organizationId: n,
|
|
78
|
+
receivableId: r.path.receivable_id
|
|
79
|
+
});
|
|
80
|
+
}
|
|
52
81
|
});
|
|
53
82
|
}
|
|
54
|
-
function
|
|
55
|
-
let { client:
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
83
|
+
function h() {
|
|
84
|
+
let { client: e, organizationId: t } = i();
|
|
85
|
+
return d({
|
|
86
|
+
mutationFn: async ({ path: r, body: i }) => {
|
|
87
|
+
let { data: o } = await n({
|
|
88
|
+
client: e,
|
|
89
|
+
headers: a(t),
|
|
90
|
+
path: r,
|
|
91
|
+
body: i,
|
|
92
|
+
throwOnError: !0
|
|
93
|
+
});
|
|
94
|
+
return o;
|
|
95
|
+
},
|
|
96
|
+
onSuccess: async (n, r) => {
|
|
97
|
+
await f({
|
|
98
|
+
client: e,
|
|
99
|
+
organizationId: t,
|
|
100
|
+
receivableId: r.path.receivable_id
|
|
101
|
+
});
|
|
102
|
+
}
|
|
66
103
|
});
|
|
67
104
|
}
|
|
68
105
|
//#endregion
|
|
69
|
-
export {
|
|
106
|
+
export { p as useMarkReceivablePaidMutation, m as useMarkReceivablePartiallyPaidMutation, h as useMarkReceivableUncollectibleMutation };
|
package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index11.js
CHANGED
|
@@ -2,164 +2,86 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { useEmbedApi as l } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
10
|
-
import { organizationHeaders as u } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
5
|
+
import { getReceivablesIdOptions as e, getReceivablesIdPdfLinkOptions as t, getReceivablesOptions as n, getReceivablesRequiredFieldsOptions as r } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
6
|
+
import { withAuthEpoch as i } from "../../../shared/data-access/dist/lib/withAuthEpoch.js";
|
|
7
|
+
import { useEmbedApi as a } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
8
|
+
import { organizationHeaders as o } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
11
9
|
import "../../../shared/data-access/dist/index.js";
|
|
12
|
-
import {
|
|
13
|
-
import { invalidateReceivable as h } from "./index5.js";
|
|
14
|
-
import { useMutation as g, useQuery as _ } from "@tanstack/react-query";
|
|
10
|
+
import { useQueries as s, useQuery as c } from "@tanstack/react-query";
|
|
15
11
|
//#region ../../libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index11.js
|
|
16
|
-
function
|
|
17
|
-
let
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
function y({ enabled: e = !0 } = {}) {
|
|
24
|
-
let { client: t, organizationId: n, authEpoch: r, organizationStatus: i, isEnabled: o } = v(), c = a({
|
|
25
|
-
client: t,
|
|
26
|
-
headers: u(n)
|
|
12
|
+
function l({ enabled: e, ...t } = {}) {
|
|
13
|
+
let { client: r, organizationId: s, widgetToken: l, authEpoch: u, organizationStatus: d } = a(), f = !!(s && l) && (e === !0 || e === void 0), p = n({
|
|
14
|
+
client: r,
|
|
15
|
+
headers: o(s),
|
|
16
|
+
query: t
|
|
27
17
|
});
|
|
28
|
-
return
|
|
29
|
-
...
|
|
30
|
-
authEpoch:
|
|
31
|
-
organizationStatus:
|
|
32
|
-
}),
|
|
33
|
-
enabled:
|
|
18
|
+
return c({
|
|
19
|
+
...i(p, {
|
|
20
|
+
authEpoch: u,
|
|
21
|
+
organizationStatus: d
|
|
22
|
+
}, { carryWithinOrg: !0 }),
|
|
23
|
+
enabled: f
|
|
34
24
|
});
|
|
35
25
|
}
|
|
36
|
-
function
|
|
37
|
-
let { client:
|
|
38
|
-
client:
|
|
39
|
-
headers:
|
|
26
|
+
function u(t, { enabled: n = !0 } = {}) {
|
|
27
|
+
let { client: r, organizationId: s, widgetToken: l, authEpoch: u, organizationStatus: d } = a(), f = !!(s && l && t) && n, p = e({
|
|
28
|
+
client: r,
|
|
29
|
+
headers: o(s),
|
|
30
|
+
path: { receivable_id: t ?? "" }
|
|
40
31
|
});
|
|
41
|
-
return
|
|
42
|
-
...
|
|
43
|
-
authEpoch:
|
|
44
|
-
organizationStatus:
|
|
32
|
+
return c({
|
|
33
|
+
...i(p, {
|
|
34
|
+
authEpoch: u,
|
|
35
|
+
organizationStatus: d
|
|
45
36
|
}),
|
|
46
|
-
enabled:
|
|
37
|
+
enabled: f
|
|
47
38
|
});
|
|
48
39
|
}
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
})
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
client: e,
|
|
64
|
-
organizationId: t
|
|
65
|
-
}));
|
|
66
|
-
}
|
|
67
|
-
});
|
|
68
|
-
}
|
|
69
|
-
function S() {
|
|
70
|
-
let { client: e, organizationId: n } = l();
|
|
71
|
-
return g({
|
|
72
|
-
mutationFn: async ({ body: r }) => {
|
|
73
|
-
let { data: i } = await t({
|
|
74
|
-
client: e,
|
|
75
|
-
headers: u(n),
|
|
76
|
-
body: r,
|
|
77
|
-
throwOnError: !0
|
|
78
|
-
});
|
|
79
|
-
return i;
|
|
80
|
-
},
|
|
81
|
-
onSuccess: async () => {
|
|
82
|
-
await c(d({
|
|
83
|
-
client: e,
|
|
84
|
-
organizationId: n
|
|
85
|
-
}));
|
|
86
|
-
}
|
|
87
|
-
});
|
|
88
|
-
}
|
|
89
|
-
async function C({ client: e, organizationId: t, recurrenceId: n, receivableId: r }) {
|
|
90
|
-
await Promise.all([
|
|
91
|
-
c(m({
|
|
92
|
-
client: e,
|
|
93
|
-
organizationId: t
|
|
40
|
+
var d = (e) => e.map((e) => e.data);
|
|
41
|
+
function f(t, { enabled: n = !0 } = {}) {
|
|
42
|
+
let { client: r, organizationId: c, widgetToken: l, authEpoch: u, organizationStatus: f } = a(), p = !!(c && l) && n;
|
|
43
|
+
return s({
|
|
44
|
+
queries: t.map((t) => ({
|
|
45
|
+
...i(e({
|
|
46
|
+
client: r,
|
|
47
|
+
headers: o(c),
|
|
48
|
+
path: { receivable_id: t }
|
|
49
|
+
}), {
|
|
50
|
+
authEpoch: u,
|
|
51
|
+
organizationStatus: f
|
|
52
|
+
}),
|
|
53
|
+
enabled: p
|
|
94
54
|
})),
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
organizationId: t,
|
|
98
|
-
recurrenceId: n
|
|
99
|
-
}))] : [],
|
|
100
|
-
h({
|
|
101
|
-
client: e,
|
|
102
|
-
organizationId: t,
|
|
103
|
-
receivableId: r
|
|
104
|
-
})
|
|
105
|
-
]);
|
|
55
|
+
combine: d
|
|
56
|
+
});
|
|
106
57
|
}
|
|
107
|
-
function
|
|
108
|
-
let { client:
|
|
109
|
-
client:
|
|
110
|
-
headers:
|
|
111
|
-
|
|
58
|
+
function p({ enabled: e, ...t } = {}) {
|
|
59
|
+
let { client: n, organizationId: s, widgetToken: l, authEpoch: u, organizationStatus: d } = a(), f = !!(s && l) && (e === !0 || e === void 0), p = r({
|
|
60
|
+
client: n,
|
|
61
|
+
headers: o(s),
|
|
62
|
+
query: t
|
|
112
63
|
});
|
|
113
|
-
return
|
|
114
|
-
...
|
|
115
|
-
authEpoch:
|
|
116
|
-
organizationStatus:
|
|
64
|
+
return c({
|
|
65
|
+
...i(p, {
|
|
66
|
+
authEpoch: u,
|
|
67
|
+
organizationStatus: d
|
|
117
68
|
}),
|
|
118
|
-
enabled:
|
|
69
|
+
enabled: f
|
|
119
70
|
});
|
|
120
71
|
}
|
|
121
|
-
function
|
|
122
|
-
let { client:
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
client: e,
|
|
127
|
-
headers: u(t),
|
|
128
|
-
body: n,
|
|
129
|
-
throwOnError: !0
|
|
130
|
-
});
|
|
131
|
-
return i;
|
|
132
|
-
},
|
|
133
|
-
onSuccess: async (n, r) => {
|
|
134
|
-
await C({
|
|
135
|
-
client: e,
|
|
136
|
-
organizationId: t,
|
|
137
|
-
receivableId: r.body.invoice_id
|
|
138
|
-
});
|
|
139
|
-
}
|
|
72
|
+
function m(e, { enabled: n = !0 } = {}) {
|
|
73
|
+
let { client: r, organizationId: s, widgetToken: l, authEpoch: u, organizationStatus: d } = a(), f = !!(s && l && e) && n, p = t({
|
|
74
|
+
client: r,
|
|
75
|
+
headers: o(s),
|
|
76
|
+
path: { receivable_id: e ?? "" }
|
|
140
77
|
});
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
client: t,
|
|
148
|
-
headers: u(n),
|
|
149
|
-
path: r,
|
|
150
|
-
body: i,
|
|
151
|
-
throwOnError: !0
|
|
152
|
-
});
|
|
153
|
-
return a;
|
|
154
|
-
},
|
|
155
|
-
onSuccess: async (e, r) => {
|
|
156
|
-
await C({
|
|
157
|
-
client: t,
|
|
158
|
-
organizationId: n,
|
|
159
|
-
recurrenceId: r.path.recurrence_id
|
|
160
|
-
});
|
|
161
|
-
}
|
|
78
|
+
return c({
|
|
79
|
+
...i(p, {
|
|
80
|
+
authEpoch: u,
|
|
81
|
+
organizationStatus: d
|
|
82
|
+
}),
|
|
83
|
+
enabled: f
|
|
162
84
|
});
|
|
163
85
|
}
|
|
164
86
|
//#endregion
|
|
165
|
-
export {
|
|
87
|
+
export { m as useReceivablePdfLinkQuery, u as useReceivableQuery, p as useReceivableRequiredFieldsQuery, f as useReceivablesByIdQueries, l as useReceivablesQuery };
|
package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index12.js
CHANGED
|
@@ -2,26 +2,195 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
5
|
+
import { patchRecurrencesId as e, postOverdueReminders as t, postPaymentReminders as n, postRecurrences as r, postRecurrencesIdCancel as i, postRecurrencesIdPause as a, postRecurrencesIdResume as o } from "../../../shared/data-access/dist/lib/rest/sdk.gen.js";
|
|
6
|
+
import { getOverdueRemindersOptions as s, getPaymentRemindersOptions as c, getRecurrencesIdOptions as l } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
7
|
+
import { withAuthEpoch as u } from "../../../shared/data-access/dist/lib/withAuthEpoch.js";
|
|
8
|
+
import { invalidateAllClients as d } from "../../../shared/data-access/dist/lib/clientRegistry.js";
|
|
9
|
+
import { useEmbedApi as f } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
10
|
+
import { organizationHeaders as p } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
9
11
|
import "../../../shared/data-access/dist/index.js";
|
|
10
|
-
import {
|
|
12
|
+
import { overdueRemindersInvalidationKey as m, paymentRemindersInvalidationKey as h, recurrenceInvalidationKey as g, recurrencesInvalidationKey as _ } from "./index2.js";
|
|
13
|
+
import { invalidateReceivable as v } from "./index6.js";
|
|
14
|
+
import { useMutation as y, useQuery as b } from "@tanstack/react-query";
|
|
11
15
|
//#region ../../libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index12.js
|
|
12
|
-
function
|
|
13
|
-
let
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
16
|
+
function x() {
|
|
17
|
+
let e = f();
|
|
18
|
+
return {
|
|
19
|
+
...e,
|
|
20
|
+
isEnabled: !!(e.organizationId && e.widgetToken)
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
function S({ enabled: e = !0 } = {}) {
|
|
24
|
+
let { client: t, organizationId: n, authEpoch: r, organizationStatus: i, isEnabled: a } = x(), o = c({
|
|
25
|
+
client: t,
|
|
26
|
+
headers: p(n)
|
|
27
|
+
});
|
|
28
|
+
return b({
|
|
29
|
+
...u(o, {
|
|
30
|
+
authEpoch: r,
|
|
31
|
+
organizationStatus: i
|
|
32
|
+
}),
|
|
33
|
+
enabled: a && e
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
function C({ enabled: e = !0 } = {}) {
|
|
37
|
+
let { client: t, organizationId: n, authEpoch: r, organizationStatus: i, isEnabled: a } = x(), o = s({
|
|
38
|
+
client: t,
|
|
39
|
+
headers: p(n)
|
|
40
|
+
});
|
|
41
|
+
return b({
|
|
42
|
+
...u(o, {
|
|
43
|
+
authEpoch: r,
|
|
44
|
+
organizationStatus: i
|
|
45
|
+
}),
|
|
46
|
+
enabled: a && e
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
function w() {
|
|
50
|
+
let { client: e, organizationId: t } = f();
|
|
51
|
+
return y({
|
|
52
|
+
mutationFn: async ({ body: r }) => {
|
|
53
|
+
let { data: i } = await n({
|
|
54
|
+
client: e,
|
|
55
|
+
headers: p(t),
|
|
56
|
+
body: r,
|
|
57
|
+
throwOnError: !0
|
|
58
|
+
});
|
|
59
|
+
return i;
|
|
60
|
+
},
|
|
61
|
+
onSuccess: async () => {
|
|
62
|
+
await d(h({
|
|
63
|
+
client: e,
|
|
64
|
+
organizationId: t
|
|
65
|
+
}));
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
function T() {
|
|
70
|
+
let { client: e, organizationId: n } = f();
|
|
71
|
+
return y({
|
|
72
|
+
mutationFn: async ({ body: r }) => {
|
|
73
|
+
let { data: i } = await t({
|
|
74
|
+
client: e,
|
|
75
|
+
headers: p(n),
|
|
76
|
+
body: r,
|
|
77
|
+
throwOnError: !0
|
|
78
|
+
});
|
|
79
|
+
return i;
|
|
80
|
+
},
|
|
81
|
+
onSuccess: async () => {
|
|
82
|
+
await d(m({
|
|
83
|
+
client: e,
|
|
84
|
+
organizationId: n
|
|
85
|
+
}));
|
|
86
|
+
}
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
async function E({ client: e, organizationId: t, recurrenceId: n, receivableId: r }) {
|
|
90
|
+
await Promise.all([
|
|
91
|
+
d(_({
|
|
92
|
+
client: e,
|
|
93
|
+
organizationId: t
|
|
94
|
+
})),
|
|
95
|
+
...n ? [d(g({
|
|
96
|
+
client: e,
|
|
97
|
+
organizationId: t,
|
|
98
|
+
recurrenceId: n
|
|
99
|
+
}))] : [],
|
|
100
|
+
v({
|
|
101
|
+
client: e,
|
|
102
|
+
organizationId: t,
|
|
103
|
+
receivableId: r
|
|
104
|
+
})
|
|
105
|
+
]);
|
|
106
|
+
}
|
|
107
|
+
function D(e) {
|
|
108
|
+
let { client: t, organizationId: n, authEpoch: r, organizationStatus: i, isEnabled: a } = x(), o = l({
|
|
109
|
+
client: t,
|
|
110
|
+
headers: p(n),
|
|
111
|
+
path: { recurrence_id: e ?? "" }
|
|
112
|
+
});
|
|
113
|
+
return b({
|
|
114
|
+
...u(o, {
|
|
115
|
+
authEpoch: r,
|
|
116
|
+
organizationStatus: i
|
|
22
117
|
}),
|
|
23
|
-
enabled:
|
|
118
|
+
enabled: a && !!e
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
function O() {
|
|
122
|
+
let { client: e, organizationId: t } = f();
|
|
123
|
+
return y({
|
|
124
|
+
mutationFn: async ({ body: n }) => {
|
|
125
|
+
let { data: i } = await r({
|
|
126
|
+
client: e,
|
|
127
|
+
headers: p(t),
|
|
128
|
+
body: n,
|
|
129
|
+
throwOnError: !0
|
|
130
|
+
});
|
|
131
|
+
return i;
|
|
132
|
+
},
|
|
133
|
+
onSuccess: async (n, r) => {
|
|
134
|
+
await E({
|
|
135
|
+
client: e,
|
|
136
|
+
organizationId: t,
|
|
137
|
+
receivableId: r.body.invoice_id
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
function k() {
|
|
143
|
+
let { client: t, organizationId: n } = f();
|
|
144
|
+
return y({
|
|
145
|
+
mutationFn: async ({ path: r, body: i }) => {
|
|
146
|
+
let { data: a } = await e({
|
|
147
|
+
client: t,
|
|
148
|
+
headers: p(n),
|
|
149
|
+
path: r,
|
|
150
|
+
body: i,
|
|
151
|
+
throwOnError: !0
|
|
152
|
+
});
|
|
153
|
+
return a;
|
|
154
|
+
},
|
|
155
|
+
onSuccess: async (e, r) => {
|
|
156
|
+
await E({
|
|
157
|
+
client: t,
|
|
158
|
+
organizationId: n,
|
|
159
|
+
recurrenceId: r.path.recurrence_id
|
|
160
|
+
});
|
|
161
|
+
}
|
|
162
|
+
});
|
|
163
|
+
}
|
|
164
|
+
function A(e) {
|
|
165
|
+
let { client: t, organizationId: n } = f();
|
|
166
|
+
return y({
|
|
167
|
+
mutationFn: async ({ path: r }) => {
|
|
168
|
+
let { data: i } = await e({
|
|
169
|
+
client: t,
|
|
170
|
+
headers: p(n),
|
|
171
|
+
path: r,
|
|
172
|
+
throwOnError: !0
|
|
173
|
+
});
|
|
174
|
+
return i;
|
|
175
|
+
},
|
|
176
|
+
onSuccess: async (e, r) => {
|
|
177
|
+
await E({
|
|
178
|
+
client: t,
|
|
179
|
+
organizationId: n,
|
|
180
|
+
recurrenceId: r.path.recurrence_id,
|
|
181
|
+
receivableId: r.receivableId
|
|
182
|
+
});
|
|
183
|
+
}
|
|
24
184
|
});
|
|
25
185
|
}
|
|
186
|
+
function j() {
|
|
187
|
+
return A(i);
|
|
188
|
+
}
|
|
189
|
+
function M() {
|
|
190
|
+
return A(a);
|
|
191
|
+
}
|
|
192
|
+
function N() {
|
|
193
|
+
return A(o);
|
|
194
|
+
}
|
|
26
195
|
//#endregion
|
|
27
|
-
export {
|
|
196
|
+
export { j as useCancelRecurrenceMutation, T as useCreateOverdueReminderMutation, w as useCreatePaymentReminderMutation, O as useCreateRecurrenceMutation, C as useOverdueRemindersQuery, M as usePauseRecurrenceMutation, S as usePaymentRemindersQuery, D as useRecurrenceQuery, N as useResumeRecurrenceMutation, k as useUpdateRecurrenceMutation };
|