@tesouro/embedded-components-react 0.11.141 → 0.11.168
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/NOTICE +24 -0
- package/README.md +15 -37
- package/dist/experimental/BalanceHistoryWidget.d.ts +0 -11
- package/dist/experimental/QuickViewWidget.d.ts +0 -11
- package/dist/experimental/RemoteCheckCapture.d.ts +0 -11
- package/dist/experimental/index.d.ts +0 -11
- package/dist/fixtures/index.d.ts +27 -1
- package/dist/index.css +6976 -6246
- package/dist/index.d.ts +67 -173
- package/dist/index.js +9 -10
- package/dist/lib/AcceptDisclosuresWidget.d.ts +0 -11
- package/dist/lib/BalancesWidget.d.ts +0 -11
- package/dist/lib/BankAccountOnboardingWidget.d.ts +0 -11
- package/dist/lib/BankAccountsWidget.d.ts +3 -11
- package/dist/lib/BankingComplianceBannerWidget.d.ts +0 -11
- package/dist/lib/BillPayWidget.d.ts +0 -11
- package/dist/lib/CardDetailsWidget.d.ts +0 -11
- package/dist/lib/CounterpartsWidget.d.ts +1 -12
- package/dist/lib/CounterpartsWidgetPublic.d.ts +1 -12
- package/dist/lib/CreditCardsWidget.d.ts +1 -11
- package/dist/lib/DebitCardsWidget.d.ts +1 -11
- package/dist/lib/ExpenseManagementWidget.d.ts +1 -12
- package/dist/lib/InsightsWidget.d.ts +0 -11
- package/dist/lib/LinkedAccountsWidget.d.ts +1 -11
- package/dist/lib/OfferWidget.d.ts +0 -11
- package/dist/lib/ReceivablesWidget.d.ts +60 -17
- package/dist/lib/ReceivablesWidget.js +3 -2
- package/dist/lib/SettingsWidget.d.ts +0 -11
- package/dist/lib/TransfersWidget.d.ts +0 -11
- package/dist/lib/WidgetProvider.d.ts +0 -11
- package/dist/lib/WidgetProviderPublic.d.ts +0 -11
- package/dist/lib/WidgetSuite.d.ts +63 -15
- package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/feature/dist/lib/AcceptDisclosuresWidget/AcceptDisclosuresWidget.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/BankAccountOnboardingWidget.js +20 -19
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/feature/dist/index10.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/feature/dist/index4.js +2 -3
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index10.js +83 -82
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index4.js +84 -79
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index9.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/lib/BankAccountsWidget/BankAccountsWidget.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/lib/formatters.js +2 -3
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/lib/useBankAccountsWidget.js +122 -121
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/ui/dist/lib/AccountCard.js +51 -46
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/ui/dist/lib/BankAccountsWidgetUi.js +63 -59
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/ui/dist/lib/labels.js +3 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index22.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index25.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index35.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index36.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index4.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index40.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/feature/dist/index4.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index16.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index17.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index10.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index4.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/lib/useActivateCard.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/lib/useCardLock.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/lib/useEditCardNickname.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/feature/dist/index8.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/lib/testIds.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/lib/useCardsWidget.js +161 -160
- package/dist/libs/tesouro-embedded-components-react/cards-widget/ui/dist/lib/CardsList/CardsList.js +126 -122
- package/dist/libs/tesouro-embedded-components-react/cards-widget/ui/dist/lib/CardsList/labels.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/lib/CounterpartsWidget/useCounterpartDetailsActions.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/approval-policies/feature/dist/index7.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/lib/ExpenseManagementWidget/ExpenseManagementWidget.js +10 -9
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/lib/TransactionDetails/TransactionDetailsFeature.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/receipt-match/feature/dist/index2.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index16.js +66 -74
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivablesWidget.js +351 -318
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/details.js +126 -133
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/helpers.js +63 -56
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/invoicesFilter.js +78 -72
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/invoicesFilterLabels.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/labels.js +14 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/recurrence.js +138 -129
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/recurringSeries.js +119 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/statusCards.js +37 -28
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/tabs.js +1 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useInvoicesFilter.js +131 -81
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useLocalDayStart.js +15 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableActions.js +46 -46
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableActionsModal.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableAttachmentUploads.js +13 -13
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableBankAccount.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableForm.js +440 -438
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablePaymentRecord.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablePaymentTerms.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableRecurrence.js +62 -56
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableReminders.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableStatusCards.js +47 -16
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablesTable.js +78 -86
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablesWidget.js +180 -158
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useRecurringSeriesTable.js +132 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/mocks/invoicing.js +4 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/mocks/receivables.js +153 -137
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index.js +22 -19
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index18.js +6 -4
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index2.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index47.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index60.js +137 -129
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index61.js +21 -46
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index62.js +143 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index63.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index64.js +47 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index7.js +25 -25
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/lib/useLinkedAccountsWidget.js +193 -192
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index13.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index14.js +100 -96
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index6.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/products-widget/feature/dist/lib/ProductsWidget/useProductDelete.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/products-widget/feature/dist/mocks/products.js +3 -11
- package/dist/libs/tesouro-embedded-components-react/products-widget/feature/dist/scenarios.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/quick-view-widget/cards/data-access/dist/index2.js +36 -77
- package/dist/libs/tesouro-embedded-components-react/quick-view-widget/cards/feature/dist/lib/CardsQuickViewWidget/summarizeCardSpend.js +11 -13
- package/dist/libs/tesouro-embedded-components-react/quick-view-widget/cards/feature/dist/lib/CardsQuickViewWidget/useCardSpendSummary.js +20 -17
- package/dist/libs/tesouro-embedded-components-react/remote-check-capture/feature/dist/lib/RemoteCheckCaptureWidget/useRemoteCheckCaptureWidget.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/settings-widget/chart-of-accounts/feature/dist/index7.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/mocks/settings.js +7 -0
- package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/feature/dist/index7.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/feature/dist/index8.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index8.js +4 -9
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index12.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index16.js +2 -3
- package/dist/libs/tesouro-embedded-components-react/settings-widget/ui/dist/lib/SettingsWidgetUi/SettingsWidgetUi.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/feature/dist/lib/useApprovalPolicyRules.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index3.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/subEntityForms.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/useDeleteController.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +43 -43
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js +233 -211
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +66 -42
- package/dist/libs/tesouro-embedded-components-react/shared/document-status/util/dist/lib/receivableFilledTone.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/expense-requirements/feature/dist/lib/ExpenseRequirementsWidget.js +5 -4
- 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/product-catalog/feature/dist/lib/MeasureUnitsManagerContainer.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/feature/dist/lib/toasts.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/index.js +28 -28
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/EmbeddedToaster.js +33 -32
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/lib/TransfersWidget/useTransferMoneyModalController.js +9 -8
- package/dist/node_modules/sonner/dist/index.js +620 -0
- package/dist/packages/shared-ui-shadcn/dist/index.js +6072 -6062
- package/dist/scenarios/index.d.ts +1 -3
- package/dist/scenarios/index.js +17 -20
- package/package.json +17 -4
- package/dist/lib/CustomersWidget.d.ts +0 -993
- package/dist/lib/CustomersWidget.js +0 -2
- package/dist/lib/ProductsWidget.d.ts +0 -893
- package/dist/lib/ProductsWidget.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/customers-widget/feature/dist/index.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/customers-widget/feature/dist/lib/CustomersWidget/CustomersWidget.js +0 -41
- package/dist/libs/tesouro-embedded-components-react/customers-widget/feature/dist/lib/analytics/events.js +0 -3
- package/dist/libs/tesouro-embedded-components-react/customers-widget/feature/dist/scenarios.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useUtcDayStart.js +0 -15
package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index16.js
CHANGED
|
@@ -3,19 +3,19 @@
|
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
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
|
|
8
|
-
import { invalidateAllClients as
|
|
9
|
-
import { useEmbedApi as
|
|
10
|
-
import { organizationHeaders as
|
|
6
|
+
import { getOverdueRemindersOptions as s, getPaymentRemindersOptions as c, getRecurrencesIdOptions as l, getRecurrencesOptions as u } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
7
|
+
import { withAuthEpoch as d } from "../../../shared/data-access/dist/lib/withAuthEpoch.js";
|
|
8
|
+
import { invalidateAllClients as f } from "../../../shared/data-access/dist/lib/clientRegistry.js";
|
|
9
|
+
import { useEmbedApi as p } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
10
|
+
import { organizationHeaders as m } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
11
11
|
import "../../../shared/data-access/dist/index.js";
|
|
12
|
-
import { overdueRemindersInvalidationKey as
|
|
13
|
-
import { invalidateReceivable as
|
|
14
|
-
import { REFETCH_ON_RETURN as
|
|
15
|
-
import { useMutation as
|
|
12
|
+
import { overdueRemindersInvalidationKey as h, paymentRemindersInvalidationKey as g, recurrenceInvalidationKey as _, recurrencesInvalidationKey as v } from "./index2.js";
|
|
13
|
+
import { invalidateReceivable as y } from "./index9.js";
|
|
14
|
+
import { REFETCH_ON_RETURN as b } from "./index14.js";
|
|
15
|
+
import { useMutation as x, useQuery as S } from "@tanstack/react-query";
|
|
16
16
|
// ../../libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index16.js
|
|
17
17
|
function C() {
|
|
18
|
-
let e =
|
|
18
|
+
let e = p();
|
|
19
19
|
return {
|
|
20
20
|
...e,
|
|
21
21
|
isEnabled: !!(e.organizationId && e.widgetToken)
|
|
@@ -24,10 +24,10 @@ function C() {
|
|
|
24
24
|
function w({ enabled: e = !0 } = {}) {
|
|
25
25
|
let { client: t, organizationId: n, authEpoch: r, organizationStatus: i, isEnabled: a } = C(), o = c({
|
|
26
26
|
client: t,
|
|
27
|
-
headers:
|
|
27
|
+
headers: m(n)
|
|
28
28
|
});
|
|
29
29
|
return S({
|
|
30
|
-
...
|
|
30
|
+
...d(o, {
|
|
31
31
|
authEpoch: r,
|
|
32
32
|
organizationStatus: i
|
|
33
33
|
}),
|
|
@@ -37,125 +37,117 @@ function w({ enabled: e = !0 } = {}) {
|
|
|
37
37
|
function T({ enabled: e = !0 } = {}) {
|
|
38
38
|
let { client: t, organizationId: n, authEpoch: r, organizationStatus: i, isEnabled: a } = C(), o = s({
|
|
39
39
|
client: t,
|
|
40
|
-
headers:
|
|
40
|
+
headers: m(n)
|
|
41
41
|
});
|
|
42
42
|
return S({
|
|
43
|
-
...
|
|
43
|
+
...d(o, {
|
|
44
44
|
authEpoch: r,
|
|
45
45
|
organizationStatus: i
|
|
46
46
|
}),
|
|
47
47
|
enabled: a && e
|
|
48
48
|
});
|
|
49
49
|
}
|
|
50
|
-
function E() {
|
|
51
|
-
let { client:
|
|
52
|
-
|
|
50
|
+
function E({ enabled: e = !0 } = {}) {
|
|
51
|
+
let { client: t, organizationId: n, authEpoch: r, organizationStatus: i, isEnabled: a } = C(), o = u({
|
|
52
|
+
client: t,
|
|
53
|
+
headers: m(n)
|
|
54
|
+
});
|
|
55
|
+
return S({
|
|
56
|
+
...d(o, {
|
|
57
|
+
authEpoch: r,
|
|
58
|
+
organizationStatus: i
|
|
59
|
+
}),
|
|
60
|
+
...b,
|
|
61
|
+
enabled: a && e
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
function D() {
|
|
65
|
+
let { client: e, organizationId: t } = p();
|
|
66
|
+
return x({
|
|
53
67
|
mutationFn: async ({ body: r }) => {
|
|
54
68
|
let { data: i } = await n({
|
|
55
69
|
client: e,
|
|
56
|
-
headers:
|
|
70
|
+
headers: m(t),
|
|
57
71
|
body: r,
|
|
58
72
|
throwOnError: !0
|
|
59
73
|
});
|
|
60
74
|
return i;
|
|
61
75
|
},
|
|
62
76
|
onSuccess: async () => {
|
|
63
|
-
await
|
|
77
|
+
await f(g({
|
|
64
78
|
client: e,
|
|
65
79
|
organizationId: t
|
|
66
80
|
}));
|
|
67
81
|
}
|
|
68
82
|
});
|
|
69
83
|
}
|
|
70
|
-
function
|
|
71
|
-
let { client: e, organizationId: n } =
|
|
72
|
-
return
|
|
84
|
+
function O() {
|
|
85
|
+
let { client: e, organizationId: n } = p();
|
|
86
|
+
return x({
|
|
73
87
|
mutationFn: async ({ body: r }) => {
|
|
74
88
|
let { data: i } = await t({
|
|
75
89
|
client: e,
|
|
76
|
-
headers:
|
|
90
|
+
headers: m(n),
|
|
77
91
|
body: r,
|
|
78
92
|
throwOnError: !0
|
|
79
93
|
});
|
|
80
94
|
return i;
|
|
81
95
|
},
|
|
82
96
|
onSuccess: async () => {
|
|
83
|
-
await
|
|
97
|
+
await f(h({
|
|
84
98
|
client: e,
|
|
85
99
|
organizationId: n
|
|
86
100
|
}));
|
|
87
101
|
}
|
|
88
102
|
});
|
|
89
103
|
}
|
|
90
|
-
async function
|
|
104
|
+
async function k({ client: e, organizationId: t, recurrenceId: n, receivableId: r }) {
|
|
91
105
|
await Promise.all([
|
|
92
|
-
|
|
106
|
+
f(v({
|
|
93
107
|
client: e,
|
|
94
108
|
organizationId: t
|
|
95
109
|
})),
|
|
96
|
-
...n ? [
|
|
110
|
+
...n ? [f(_({
|
|
97
111
|
client: e,
|
|
98
112
|
organizationId: t,
|
|
99
113
|
recurrenceId: n
|
|
100
114
|
}))] : [],
|
|
101
|
-
|
|
115
|
+
y({
|
|
102
116
|
client: e,
|
|
103
117
|
organizationId: t,
|
|
104
118
|
receivableId: r
|
|
105
119
|
})
|
|
106
120
|
]);
|
|
107
121
|
}
|
|
108
|
-
function
|
|
122
|
+
function A(e) {
|
|
109
123
|
let { client: t, organizationId: n, authEpoch: r, organizationStatus: i, isEnabled: a } = C(), o = l({
|
|
110
124
|
client: t,
|
|
111
|
-
headers:
|
|
125
|
+
headers: m(n),
|
|
112
126
|
path: { recurrence_id: e ?? "" }
|
|
113
127
|
});
|
|
114
128
|
return S({
|
|
115
|
-
...
|
|
129
|
+
...d(o, {
|
|
116
130
|
authEpoch: r,
|
|
117
131
|
organizationStatus: i
|
|
118
132
|
}),
|
|
119
|
-
...
|
|
133
|
+
...b,
|
|
120
134
|
enabled: a && !!e
|
|
121
135
|
});
|
|
122
136
|
}
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
isLoading: t
|
|
126
|
-
}));
|
|
127
|
-
function j(e, { enabled: t = !0 } = {}) {
|
|
128
|
-
let { client: n, organizationId: r, authEpoch: i, organizationStatus: a, isEnabled: o } = C();
|
|
137
|
+
function j() {
|
|
138
|
+
let { client: e, organizationId: t } = p();
|
|
129
139
|
return x({
|
|
130
|
-
queries: e.map((e) => ({
|
|
131
|
-
...u(l({
|
|
132
|
-
client: n,
|
|
133
|
-
headers: p(r),
|
|
134
|
-
path: { recurrence_id: e }
|
|
135
|
-
}), {
|
|
136
|
-
authEpoch: i,
|
|
137
|
-
organizationStatus: a
|
|
138
|
-
}),
|
|
139
|
-
...y,
|
|
140
|
-
enabled: o && t
|
|
141
|
-
})),
|
|
142
|
-
combine: A
|
|
143
|
-
});
|
|
144
|
-
}
|
|
145
|
-
function M() {
|
|
146
|
-
let { client: e, organizationId: t } = f();
|
|
147
|
-
return b({
|
|
148
140
|
mutationFn: async ({ body: n }) => {
|
|
149
141
|
let { data: i } = await r({
|
|
150
142
|
client: e,
|
|
151
|
-
headers:
|
|
143
|
+
headers: m(t),
|
|
152
144
|
body: n,
|
|
153
145
|
throwOnError: !0
|
|
154
146
|
});
|
|
155
147
|
return i;
|
|
156
148
|
},
|
|
157
149
|
onSuccess: async (n, r) => {
|
|
158
|
-
await
|
|
150
|
+
await k({
|
|
159
151
|
client: e,
|
|
160
152
|
organizationId: t,
|
|
161
153
|
receivableId: r.body.invoice_id
|
|
@@ -163,13 +155,13 @@ function M() {
|
|
|
163
155
|
}
|
|
164
156
|
});
|
|
165
157
|
}
|
|
166
|
-
function
|
|
167
|
-
let { client: t, organizationId: n } =
|
|
168
|
-
return
|
|
158
|
+
function M() {
|
|
159
|
+
let { client: t, organizationId: n } = p();
|
|
160
|
+
return x({
|
|
169
161
|
mutationFn: async ({ path: r, body: i }) => {
|
|
170
162
|
let { data: a } = await e({
|
|
171
163
|
client: t,
|
|
172
|
-
headers:
|
|
164
|
+
headers: m(n),
|
|
173
165
|
path: r,
|
|
174
166
|
body: i,
|
|
175
167
|
throwOnError: !0
|
|
@@ -177,7 +169,7 @@ function N() {
|
|
|
177
169
|
return a;
|
|
178
170
|
},
|
|
179
171
|
onSuccess: async (e, r) => {
|
|
180
|
-
await
|
|
172
|
+
await k({
|
|
181
173
|
client: t,
|
|
182
174
|
organizationId: n,
|
|
183
175
|
recurrenceId: r.path.recurrence_id
|
|
@@ -185,20 +177,20 @@ function N() {
|
|
|
185
177
|
}
|
|
186
178
|
});
|
|
187
179
|
}
|
|
188
|
-
function
|
|
189
|
-
let { client: t, organizationId: n } =
|
|
190
|
-
return
|
|
180
|
+
function N(e) {
|
|
181
|
+
let { client: t, organizationId: n } = p();
|
|
182
|
+
return x({
|
|
191
183
|
mutationFn: async ({ path: r }) => {
|
|
192
184
|
let { data: i } = await e({
|
|
193
185
|
client: t,
|
|
194
|
-
headers:
|
|
186
|
+
headers: m(n),
|
|
195
187
|
path: r,
|
|
196
188
|
throwOnError: !0
|
|
197
189
|
});
|
|
198
190
|
return i;
|
|
199
191
|
},
|
|
200
192
|
onSuccess: async (e, r) => {
|
|
201
|
-
await
|
|
193
|
+
await k({
|
|
202
194
|
client: t,
|
|
203
195
|
organizationId: n,
|
|
204
196
|
recurrenceId: r.path.recurrence_id,
|
|
@@ -207,13 +199,13 @@ function P(e) {
|
|
|
207
199
|
}
|
|
208
200
|
});
|
|
209
201
|
}
|
|
202
|
+
function P() {
|
|
203
|
+
return N(i);
|
|
204
|
+
}
|
|
210
205
|
function F() {
|
|
211
|
-
return
|
|
206
|
+
return N(a);
|
|
212
207
|
}
|
|
213
208
|
function I() {
|
|
214
|
-
return
|
|
215
|
-
}
|
|
216
|
-
function L() {
|
|
217
|
-
return P(o);
|
|
209
|
+
return N(o);
|
|
218
210
|
}
|
|
219
|
-
export {
|
|
211
|
+
export { P as useCancelRecurrenceMutation, O as useCreateOverdueReminderMutation, D as useCreatePaymentReminderMutation, j as useCreateRecurrenceMutation, T as useOverdueRemindersQuery, F as usePauseRecurrenceMutation, w as usePaymentRemindersQuery, A as useRecurrenceQuery, E as useRecurrencesQuery, I as useResumeRecurrenceMutation, M as useUpdateRecurrenceMutation };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { InvoicingTab as e } from "./lib/ReceivablesWidget/tabs.js";
|
|
2
|
-
import {
|
|
3
|
-
|
|
2
|
+
import { ReceivableStatusCard as t } from "./lib/ReceivablesWidget/statusCards.js";
|
|
3
|
+
import { ReceivablesWidget as n } from "./lib/ReceivablesWidget/ReceivablesWidget.js";
|
|
4
|
+
export { e as InvoicingTab, t as ReceivableStatusCard, n as ReceivablesWidget };
|