@tesouro/embedded-components-react 0.5.116 → 0.5.118
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 +6 -6
- package/dist/index.css +13 -6
- package/dist/index.d.ts +31 -4
- package/dist/index.js +5 -4
- package/dist/lib/MarketingWidget.d.ts +31 -4
- package/dist/lib/MarketingWidget.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index10.js +25 -31
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index11.js +41 -0
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index4.js +6 -15
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index5.js +15 -11
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index6.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index7.js +14 -37
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index8.js +43 -3
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index9.js +3 -31
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index22.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index2.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index3.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index4.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index5.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/data-access/dist/index3.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/data-access/dist/index4.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/data-access/dist/index5.js +13 -13
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index10.js +25 -25
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index11.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index12.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index13.js +168 -168
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index15.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index16.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index17.js +44 -44
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index18.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index4.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index5.js +24 -24
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index6.js +81 -81
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index7.js +17 -17
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index8.js +31 -31
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index9.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index70.js +15 -15
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index10.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index11.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index2.js +15 -15
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index4.js +15 -15
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index6.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index7.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index8.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index9.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/data-access/dist/index3.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/data-access/dist/index4.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/data-access/dist/index5.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/data-access/dist/index6.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/data-access/dist/index7.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/cards-widget/data-access/dist/index2.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/cards-widget/data-access/dist/index3.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/data-access/dist/index2.js +14 -14
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/data-access/dist/index3.js +14 -14
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index2.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index3.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index4.js +15 -15
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index5.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index6.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index2.js +22 -22
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index3.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index4.js +87 -87
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index5.js +44 -44
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index6.js +36 -36
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/data-access/dist/index2.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/data-access/dist/index4.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/marketing-widget/feature/dist/index.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/marketing-widget/feature/dist/index3.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/marketing-widget/feature/dist/index4.js +27 -23
- package/dist/libs/tesouro-embedded-components-react/marketing-widget/ui/dist/index.js +4 -3
- package/dist/libs/tesouro-embedded-components-react/marketing-widget/ui/dist/index2.js +3 -1
- package/dist/libs/tesouro-embedded-components-react/marketing-widget/ui/dist/index3.js +8 -17
- package/dist/libs/tesouro-embedded-components-react/marketing-widget/ui/dist/index4.js +10 -80
- package/dist/libs/tesouro-embedded-components-react/marketing-widget/ui/dist/index5.js +16 -72
- package/dist/libs/tesouro-embedded-components-react/marketing-widget/ui/dist/index6.js +45 -0
- package/dist/libs/tesouro-embedded-components-react/marketing-widget/ui/dist/index7.js +109 -0
- package/dist/libs/tesouro-embedded-components-react/marketing-widget/ui/dist/index8.js +88 -0
- package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index2.js +21 -21
- package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index3.js +13 -13
- package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index4.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index5.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index6.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/settings-widget/chart-of-accounts/data-access/dist/index2.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/settings-widget/chart-of-accounts/data-access/dist/index3.js +22 -22
- package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index2.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index3.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index4.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index5.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index6.js +13 -13
- package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index7.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index8.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/settings-widget/profile/data-access/dist/index2.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index10.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index2.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index3.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index4.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index5.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index6.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index7.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index8.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index9.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index10.js +16 -16
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index12.js +14 -14
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index13.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index14.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index15.js +59 -59
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index17.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index18.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index19.js +41 -41
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index2.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index21.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index22.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index23.js +41 -41
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index3.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index4.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index5.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index6.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index7.js +73 -73
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index8.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index9.js +20 -20
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/data-access/dist/lib/approvalPoliciesApi.js +61 -61
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/data-access/dist/lib/queryKeys.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index2.js +16 -16
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index3.js +51 -51
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index5.js +63 -63
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index7.js +44 -44
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +35 -34
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/applicationStatusQueryOptions.js +22 -0
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/bank-account/useAllBankAccountsQuery.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/disclosures/useAcceptWidgetDisclosures.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/disclosures/useDisclosuresQuery.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/external-bank-account/useAllExternalBankAccountsQuery.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/merchant-category-group/useAllMerchantCategoryGroupsQuery.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/reference-data/useLedgerAccountsQuery.js +15 -15
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/reference-data/usePaymentTermsQuery.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/role/useAllOrganizationRolesQuery.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/role/useRolePermissionsQueries.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useCurrentUserQuery.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useGetUserDataQuery.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useOrganizationOnboardingSuppression.js +22 -21
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useUpsertUserDataMutation.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/user/useAllOrganizationUsersQuery.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/widgetTokenCacheId.js +11 -0
- package/dist/libs/tesouro-embedded-components-react/shared/expense-requirements/data-access/dist/index2.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/shared/expense-requirements/data-access/dist/index3.js +14 -14
- 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/data-access/dist/index10.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index11.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index12.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index2.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index3.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index4.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index5.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index6.js +13 -13
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index7.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index8.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index9.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index3.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index6.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index7.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index8.js +11 -11
- package/package.json +1 -1
package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index4.js
CHANGED
|
@@ -2,45 +2,45 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
5
|
+
import { deleteReceivablesId as e, patchReceivablesId as t, postReceivables as n, postReceivablesIdAccept as r, postReceivablesIdCancel as i, postReceivablesIdClone as a, postReceivablesIdDecline as o, postReceivablesIdIssue as s } from "../../../shared/data-access/dist/lib/rest/sdk.gen.js";
|
|
6
|
+
import { invalidateAllClients as c } from "../../../shared/data-access/dist/lib/clientRegistry.js";
|
|
7
|
+
import { useEmbedApi as l } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
8
|
+
import { organizationHeaders as u } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
9
9
|
import "../../../shared/data-access/dist/index.js";
|
|
10
10
|
import { receivableHistoryInvalidationKey as d, receivableInvalidationKey as f, receivablePdfInvalidationKey as p, receivablesInvalidationKey as m } from "./index2.js";
|
|
11
11
|
import { useMutation as h } from "@tanstack/react-query";
|
|
12
12
|
//#region ../../libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index4.js
|
|
13
|
-
async function g({ client:
|
|
14
|
-
let
|
|
15
|
-
client:
|
|
16
|
-
organizationId:
|
|
17
|
-
}), ...
|
|
13
|
+
async function g({ client: e, organizationId: t, receivableId: n }) {
|
|
14
|
+
let r = [m({
|
|
15
|
+
client: e,
|
|
16
|
+
organizationId: t
|
|
17
|
+
}), ...n ? [
|
|
18
18
|
f({
|
|
19
|
-
client:
|
|
20
|
-
organizationId:
|
|
21
|
-
receivableId:
|
|
19
|
+
client: e,
|
|
20
|
+
organizationId: t,
|
|
21
|
+
receivableId: n
|
|
22
22
|
}),
|
|
23
23
|
d({
|
|
24
|
-
client:
|
|
25
|
-
organizationId:
|
|
26
|
-
receivableId:
|
|
24
|
+
client: e,
|
|
25
|
+
organizationId: t,
|
|
26
|
+
receivableId: n
|
|
27
27
|
}),
|
|
28
28
|
p({
|
|
29
|
-
client:
|
|
30
|
-
organizationId:
|
|
31
|
-
receivableId:
|
|
29
|
+
client: e,
|
|
30
|
+
organizationId: t,
|
|
31
|
+
receivableId: n
|
|
32
32
|
})
|
|
33
33
|
] : []];
|
|
34
|
-
await Promise.all(
|
|
34
|
+
await Promise.all(r.map((e) => c(e)));
|
|
35
35
|
}
|
|
36
36
|
function _() {
|
|
37
|
-
let { client: e, organizationId:
|
|
37
|
+
let { client: e, organizationId: t } = l();
|
|
38
38
|
return h({
|
|
39
|
-
mutationFn: async ({ body:
|
|
40
|
-
let { data: i } = await
|
|
39
|
+
mutationFn: async ({ body: r }) => {
|
|
40
|
+
let { data: i } = await n({
|
|
41
41
|
client: e,
|
|
42
|
-
headers:
|
|
43
|
-
body:
|
|
42
|
+
headers: u(t),
|
|
43
|
+
body: r,
|
|
44
44
|
throwOnError: !0
|
|
45
45
|
});
|
|
46
46
|
return i;
|
|
@@ -48,154 +48,154 @@ function _() {
|
|
|
48
48
|
onSuccess: async () => {
|
|
49
49
|
await g({
|
|
50
50
|
client: e,
|
|
51
|
-
organizationId:
|
|
51
|
+
organizationId: t
|
|
52
52
|
});
|
|
53
53
|
}
|
|
54
54
|
});
|
|
55
55
|
}
|
|
56
56
|
function v() {
|
|
57
|
-
let { client: e, organizationId:
|
|
57
|
+
let { client: e, organizationId: n } = l();
|
|
58
58
|
return h({
|
|
59
|
-
mutationFn: async ({ path:
|
|
60
|
-
let { data:
|
|
59
|
+
mutationFn: async ({ path: r, body: i }) => {
|
|
60
|
+
let { data: a } = await t({
|
|
61
61
|
client: e,
|
|
62
|
-
headers: n
|
|
63
|
-
path:
|
|
64
|
-
body:
|
|
62
|
+
headers: u(n),
|
|
63
|
+
path: r,
|
|
64
|
+
body: i,
|
|
65
65
|
throwOnError: !0
|
|
66
66
|
});
|
|
67
|
-
return
|
|
67
|
+
return a;
|
|
68
68
|
},
|
|
69
|
-
onSuccess: async (t,
|
|
69
|
+
onSuccess: async (t, r) => {
|
|
70
70
|
await g({
|
|
71
71
|
client: e,
|
|
72
|
-
organizationId:
|
|
73
|
-
receivableId:
|
|
72
|
+
organizationId: n,
|
|
73
|
+
receivableId: r.path.receivable_id
|
|
74
74
|
});
|
|
75
75
|
}
|
|
76
76
|
});
|
|
77
77
|
}
|
|
78
78
|
function y() {
|
|
79
|
-
let { client:
|
|
79
|
+
let { client: t, organizationId: n } = l();
|
|
80
80
|
return h({
|
|
81
|
-
mutationFn: async ({ path:
|
|
82
|
-
await
|
|
83
|
-
client:
|
|
84
|
-
headers: n
|
|
85
|
-
path:
|
|
81
|
+
mutationFn: async ({ path: r }) => {
|
|
82
|
+
await e({
|
|
83
|
+
client: t,
|
|
84
|
+
headers: u(n),
|
|
85
|
+
path: r,
|
|
86
86
|
throwOnError: !0
|
|
87
87
|
});
|
|
88
88
|
},
|
|
89
|
-
onSuccess: async (
|
|
89
|
+
onSuccess: async (e, r) => {
|
|
90
90
|
await g({
|
|
91
|
-
client:
|
|
92
|
-
organizationId:
|
|
93
|
-
receivableId:
|
|
91
|
+
client: t,
|
|
92
|
+
organizationId: n,
|
|
93
|
+
receivableId: r.path.receivable_id
|
|
94
94
|
});
|
|
95
95
|
}
|
|
96
96
|
});
|
|
97
97
|
}
|
|
98
98
|
function b() {
|
|
99
|
-
let { client: e, organizationId:
|
|
99
|
+
let { client: e, organizationId: t } = l();
|
|
100
100
|
return h({
|
|
101
|
-
mutationFn: async ({ path:
|
|
102
|
-
let { data:
|
|
101
|
+
mutationFn: async ({ path: n }) => {
|
|
102
|
+
let { data: r } = await s({
|
|
103
103
|
client: e,
|
|
104
|
-
headers:
|
|
105
|
-
path:
|
|
104
|
+
headers: u(t),
|
|
105
|
+
path: n,
|
|
106
106
|
throwOnError: !0
|
|
107
107
|
});
|
|
108
|
-
return
|
|
108
|
+
return r;
|
|
109
109
|
},
|
|
110
|
-
onSuccess: async (
|
|
110
|
+
onSuccess: async (n, r) => {
|
|
111
111
|
await g({
|
|
112
112
|
client: e,
|
|
113
|
-
organizationId:
|
|
114
|
-
receivableId:
|
|
113
|
+
organizationId: t,
|
|
114
|
+
receivableId: r.path.receivable_id
|
|
115
115
|
});
|
|
116
116
|
}
|
|
117
117
|
});
|
|
118
118
|
}
|
|
119
119
|
function x() {
|
|
120
|
-
let { client: e, organizationId:
|
|
120
|
+
let { client: e, organizationId: t } = l();
|
|
121
121
|
return h({
|
|
122
|
-
mutationFn: async ({ path:
|
|
123
|
-
await
|
|
122
|
+
mutationFn: async ({ path: n }) => {
|
|
123
|
+
await i({
|
|
124
124
|
client: e,
|
|
125
|
-
headers:
|
|
126
|
-
path:
|
|
125
|
+
headers: u(t),
|
|
126
|
+
path: n,
|
|
127
127
|
throwOnError: !0
|
|
128
128
|
});
|
|
129
129
|
},
|
|
130
|
-
onSuccess: async (
|
|
130
|
+
onSuccess: async (n, r) => {
|
|
131
131
|
await g({
|
|
132
132
|
client: e,
|
|
133
|
-
organizationId:
|
|
134
|
-
receivableId:
|
|
133
|
+
organizationId: t,
|
|
134
|
+
receivableId: r.path.receivable_id
|
|
135
135
|
});
|
|
136
136
|
}
|
|
137
137
|
});
|
|
138
138
|
}
|
|
139
139
|
function S() {
|
|
140
|
-
let { client: e, organizationId:
|
|
140
|
+
let { client: e, organizationId: t } = l();
|
|
141
141
|
return h({
|
|
142
|
-
mutationFn: async ({ path:
|
|
143
|
-
let { data:
|
|
142
|
+
mutationFn: async ({ path: n }) => {
|
|
143
|
+
let { data: r } = await a({
|
|
144
144
|
client: e,
|
|
145
|
-
headers:
|
|
146
|
-
path:
|
|
145
|
+
headers: u(t),
|
|
146
|
+
path: n,
|
|
147
147
|
throwOnError: !0
|
|
148
148
|
});
|
|
149
|
-
return
|
|
149
|
+
return r;
|
|
150
150
|
},
|
|
151
151
|
onSuccess: async () => {
|
|
152
152
|
await g({
|
|
153
153
|
client: e,
|
|
154
|
-
organizationId:
|
|
154
|
+
organizationId: t
|
|
155
155
|
});
|
|
156
156
|
}
|
|
157
157
|
});
|
|
158
158
|
}
|
|
159
159
|
function C() {
|
|
160
|
-
let { client: e, organizationId:
|
|
160
|
+
let { client: e, organizationId: t } = l();
|
|
161
161
|
return h({
|
|
162
|
-
mutationFn: async ({ path:
|
|
163
|
-
let { data: a } = await
|
|
162
|
+
mutationFn: async ({ path: n, body: i }) => {
|
|
163
|
+
let { data: a } = await r({
|
|
164
164
|
client: e,
|
|
165
|
-
headers:
|
|
166
|
-
path:
|
|
165
|
+
headers: u(t),
|
|
166
|
+
path: n,
|
|
167
167
|
body: i,
|
|
168
168
|
throwOnError: !0
|
|
169
169
|
});
|
|
170
170
|
return a;
|
|
171
171
|
},
|
|
172
|
-
onSuccess: async (
|
|
172
|
+
onSuccess: async (n, r) => {
|
|
173
173
|
await g({
|
|
174
174
|
client: e,
|
|
175
|
-
organizationId:
|
|
176
|
-
receivableId:
|
|
175
|
+
organizationId: t,
|
|
176
|
+
receivableId: r.path.receivable_id
|
|
177
177
|
});
|
|
178
178
|
}
|
|
179
179
|
});
|
|
180
180
|
}
|
|
181
181
|
function w() {
|
|
182
|
-
let { client: e, organizationId:
|
|
182
|
+
let { client: e, organizationId: t } = l();
|
|
183
183
|
return h({
|
|
184
|
-
mutationFn: async ({ path:
|
|
185
|
-
let { data:
|
|
184
|
+
mutationFn: async ({ path: n, body: r }) => {
|
|
185
|
+
let { data: i } = await o({
|
|
186
186
|
client: e,
|
|
187
|
-
headers:
|
|
188
|
-
path:
|
|
189
|
-
body:
|
|
187
|
+
headers: u(t),
|
|
188
|
+
path: n,
|
|
189
|
+
body: r,
|
|
190
190
|
throwOnError: !0
|
|
191
191
|
});
|
|
192
|
-
return
|
|
192
|
+
return i;
|
|
193
193
|
},
|
|
194
|
-
onSuccess: async (
|
|
194
|
+
onSuccess: async (n, r) => {
|
|
195
195
|
await g({
|
|
196
196
|
client: e,
|
|
197
|
-
organizationId:
|
|
198
|
-
receivableId:
|
|
197
|
+
organizationId: t,
|
|
198
|
+
receivableId: r.path.receivable_id
|
|
199
199
|
});
|
|
200
200
|
}
|
|
201
201
|
});
|
package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index5.js
CHANGED
|
@@ -2,94 +2,94 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
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
10
|
import { receivableHistoryInvalidationKey as o, receivableInvalidationKey as s, receivablesInvalidationKey as c } from "./index2.js";
|
|
11
11
|
import { useMutation as l } from "@tanstack/react-query";
|
|
12
12
|
//#region ../../libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index5.js
|
|
13
|
-
async function u({ client:
|
|
13
|
+
async function u({ client: e, organizationId: t, receivableId: n }) {
|
|
14
14
|
await Promise.all([
|
|
15
|
-
|
|
16
|
-
client:
|
|
17
|
-
organizationId:
|
|
15
|
+
r(c({
|
|
16
|
+
client: e,
|
|
17
|
+
organizationId: t
|
|
18
18
|
})),
|
|
19
|
-
|
|
20
|
-
client:
|
|
21
|
-
organizationId:
|
|
22
|
-
receivableId:
|
|
19
|
+
r(s({
|
|
20
|
+
client: e,
|
|
21
|
+
organizationId: t,
|
|
22
|
+
receivableId: n
|
|
23
23
|
})),
|
|
24
|
-
|
|
25
|
-
client:
|
|
26
|
-
organizationId:
|
|
27
|
-
receivableId:
|
|
24
|
+
r(o({
|
|
25
|
+
client: e,
|
|
26
|
+
organizationId: t,
|
|
27
|
+
receivableId: n
|
|
28
28
|
}))
|
|
29
29
|
]);
|
|
30
30
|
}
|
|
31
31
|
function d() {
|
|
32
|
-
let { client:
|
|
32
|
+
let { client: t, organizationId: n } = i();
|
|
33
33
|
return l({
|
|
34
|
-
mutationFn: async ({ path:
|
|
35
|
-
let { data: o } = await
|
|
36
|
-
client:
|
|
37
|
-
headers: n
|
|
38
|
-
path:
|
|
39
|
-
body:
|
|
34
|
+
mutationFn: async ({ path: r, body: i }) => {
|
|
35
|
+
let { data: o } = await e({
|
|
36
|
+
client: t,
|
|
37
|
+
headers: a(n),
|
|
38
|
+
path: r,
|
|
39
|
+
body: i,
|
|
40
40
|
throwOnError: !0
|
|
41
41
|
});
|
|
42
42
|
return o;
|
|
43
43
|
},
|
|
44
|
-
onSuccess: async (
|
|
44
|
+
onSuccess: async (e, r) => {
|
|
45
45
|
await u({
|
|
46
|
-
client:
|
|
47
|
-
organizationId:
|
|
48
|
-
receivableId:
|
|
46
|
+
client: t,
|
|
47
|
+
organizationId: n,
|
|
48
|
+
receivableId: r.path.receivable_id
|
|
49
49
|
});
|
|
50
50
|
}
|
|
51
51
|
});
|
|
52
52
|
}
|
|
53
53
|
function f() {
|
|
54
|
-
let { client: e, organizationId:
|
|
54
|
+
let { client: e, organizationId: n } = i();
|
|
55
55
|
return l({
|
|
56
|
-
mutationFn: async ({ path:
|
|
57
|
-
let { data: o } = await
|
|
56
|
+
mutationFn: async ({ path: r, body: i }) => {
|
|
57
|
+
let { data: o } = await t({
|
|
58
58
|
client: e,
|
|
59
|
-
headers: n
|
|
60
|
-
path:
|
|
61
|
-
body:
|
|
59
|
+
headers: a(n),
|
|
60
|
+
path: r,
|
|
61
|
+
body: i,
|
|
62
62
|
throwOnError: !0
|
|
63
63
|
});
|
|
64
64
|
return o;
|
|
65
65
|
},
|
|
66
|
-
onSuccess: async (t,
|
|
66
|
+
onSuccess: async (t, r) => {
|
|
67
67
|
await u({
|
|
68
68
|
client: e,
|
|
69
|
-
organizationId:
|
|
70
|
-
receivableId:
|
|
69
|
+
organizationId: n,
|
|
70
|
+
receivableId: r.path.receivable_id
|
|
71
71
|
});
|
|
72
72
|
}
|
|
73
73
|
});
|
|
74
74
|
}
|
|
75
75
|
function p() {
|
|
76
|
-
let { client: e, organizationId:
|
|
76
|
+
let { client: e, organizationId: t } = i();
|
|
77
77
|
return l({
|
|
78
|
-
mutationFn: async ({ path:
|
|
79
|
-
let { data: o } = await
|
|
78
|
+
mutationFn: async ({ path: r, body: i }) => {
|
|
79
|
+
let { data: o } = await n({
|
|
80
80
|
client: e,
|
|
81
|
-
headers:
|
|
82
|
-
path:
|
|
81
|
+
headers: a(t),
|
|
82
|
+
path: r,
|
|
83
83
|
body: i,
|
|
84
84
|
throwOnError: !0
|
|
85
85
|
});
|
|
86
86
|
return o;
|
|
87
87
|
},
|
|
88
|
-
onSuccess: async (
|
|
88
|
+
onSuccess: async (n, r) => {
|
|
89
89
|
await u({
|
|
90
90
|
client: e,
|
|
91
|
-
organizationId:
|
|
92
|
-
receivableId:
|
|
91
|
+
organizationId: t,
|
|
92
|
+
receivableId: r.path.receivable_id
|
|
93
93
|
});
|
|
94
94
|
}
|
|
95
95
|
});
|
package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index6.js
CHANGED
|
@@ -2,67 +2,67 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
5
|
+
import { getReceivablesIdHistoryOptions as e, getReceivablesIdMailsOptions as t, getReceivablesIdOptions as n, getReceivablesIdPdfLinkOptions as r, getReceivablesOptions as i } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
6
|
+
import { withAuthEpoch as a } from "../../../shared/data-access/dist/lib/withAuthEpoch.js";
|
|
7
|
+
import { useEmbedApi as o } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
8
|
+
import { organizationHeaders as s } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
9
9
|
import "../../../shared/data-access/dist/index.js";
|
|
10
10
|
import { useQuery as c } from "@tanstack/react-query";
|
|
11
11
|
//#region ../../libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index6.js
|
|
12
|
-
function l({ enabled:
|
|
13
|
-
let { client:
|
|
14
|
-
client:
|
|
15
|
-
headers:
|
|
16
|
-
query:
|
|
12
|
+
function l({ enabled: e, ...t } = {}) {
|
|
13
|
+
let { client: n, organizationId: r, widgetToken: l, authEpoch: u } = o(), d = !!(r && l) && (e === !0 || e === void 0), f = i({
|
|
14
|
+
client: n,
|
|
15
|
+
headers: s(r),
|
|
16
|
+
query: t
|
|
17
17
|
});
|
|
18
18
|
return c({
|
|
19
|
-
...
|
|
19
|
+
...a(f, u),
|
|
20
20
|
enabled: d
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
|
-
function u(
|
|
24
|
-
let { client:
|
|
25
|
-
client:
|
|
26
|
-
headers:
|
|
27
|
-
path: { receivable_id:
|
|
23
|
+
function u(e, { enabled: t = !0 } = {}) {
|
|
24
|
+
let { client: r, organizationId: i, widgetToken: l, authEpoch: u } = o(), d = !!(i && l && e) && t, f = n({
|
|
25
|
+
client: r,
|
|
26
|
+
headers: s(i),
|
|
27
|
+
path: { receivable_id: e ?? "" }
|
|
28
28
|
});
|
|
29
29
|
return c({
|
|
30
|
-
...
|
|
30
|
+
...a(f, u),
|
|
31
31
|
enabled: d
|
|
32
32
|
});
|
|
33
33
|
}
|
|
34
|
-
function d(
|
|
35
|
-
let { client:
|
|
36
|
-
client:
|
|
37
|
-
headers:
|
|
38
|
-
path: { receivable_id:
|
|
39
|
-
query:
|
|
34
|
+
function d(t, { enabled: n, ...r } = {}) {
|
|
35
|
+
let { client: i, organizationId: l, widgetToken: u, authEpoch: d } = o(), f = !!(l && u && t) && (n === !0 || n === void 0), p = e({
|
|
36
|
+
client: i,
|
|
37
|
+
headers: s(l),
|
|
38
|
+
path: { receivable_id: t ?? "" },
|
|
39
|
+
query: r
|
|
40
40
|
});
|
|
41
41
|
return c({
|
|
42
|
-
...
|
|
42
|
+
...a(p, d),
|
|
43
43
|
enabled: f
|
|
44
44
|
});
|
|
45
45
|
}
|
|
46
|
-
function f(
|
|
47
|
-
let { client:
|
|
48
|
-
client:
|
|
49
|
-
headers:
|
|
50
|
-
path: { receivable_id:
|
|
51
|
-
query:
|
|
46
|
+
function f(e, { enabled: n, ...r } = {}) {
|
|
47
|
+
let { client: i, organizationId: l, widgetToken: u, authEpoch: d } = o(), f = !!(l && u && e) && (n === !0 || n === void 0), p = t({
|
|
48
|
+
client: i,
|
|
49
|
+
headers: s(l),
|
|
50
|
+
path: { receivable_id: e ?? "" },
|
|
51
|
+
query: r
|
|
52
52
|
});
|
|
53
53
|
return c({
|
|
54
|
-
...
|
|
54
|
+
...a(p, d),
|
|
55
55
|
enabled: f
|
|
56
56
|
});
|
|
57
57
|
}
|
|
58
|
-
function p(
|
|
59
|
-
let { client:
|
|
60
|
-
client:
|
|
61
|
-
headers:
|
|
62
|
-
path: { receivable_id:
|
|
58
|
+
function p(e, { enabled: t = !0 } = {}) {
|
|
59
|
+
let { client: n, organizationId: i, widgetToken: l, authEpoch: u } = o(), d = !!(i && l && e) && t, f = r({
|
|
60
|
+
client: n,
|
|
61
|
+
headers: s(i),
|
|
62
|
+
path: { receivable_id: e ?? "" }
|
|
63
63
|
});
|
|
64
64
|
return c({
|
|
65
|
-
...
|
|
65
|
+
...a(f, u),
|
|
66
66
|
enabled: d
|
|
67
67
|
});
|
|
68
68
|
}
|
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
5
|
+
import { getExternalBankAccountsQueryKey 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
9
|
import "../../../shared/data-access/dist/index.js";
|
|
10
10
|
//#region ../../libs/tesouro-embedded-components-react/linked-accounts-widget/data-access/dist/index2.js
|
|
11
11
|
function i() {
|
|
12
|
-
let { client: i, organizationId: a } =
|
|
12
|
+
let { client: i, organizationId: a } = n(), o = r(a);
|
|
13
13
|
return {
|
|
14
14
|
client: i,
|
|
15
15
|
headers: o,
|
|
16
|
-
invalidate: () => e(
|
|
16
|
+
invalidate: () => t(e({
|
|
17
17
|
client: i,
|
|
18
18
|
headers: o
|
|
19
19
|
}))
|
|
@@ -2,21 +2,21 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
5
|
+
import { getExternalBankAccountsOptions 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
9
|
import "../../../shared/data-access/dist/index.js";
|
|
10
10
|
import { useQuery as i } from "@tanstack/react-query";
|
|
11
11
|
//#region ../../libs/tesouro-embedded-components-react/linked-accounts-widget/data-access/dist/index4.js
|
|
12
12
|
function a({ enabled: a, ...o } = {}) {
|
|
13
|
-
let { client: s, organizationId: c, widgetToken: l, authEpoch: u } =
|
|
13
|
+
let { client: s, organizationId: c, widgetToken: l, authEpoch: u } = n(), d = e({
|
|
14
14
|
query: o,
|
|
15
15
|
client: s,
|
|
16
|
-
headers:
|
|
16
|
+
headers: r(c)
|
|
17
17
|
});
|
|
18
18
|
return i({
|
|
19
|
-
...
|
|
19
|
+
...t(d, u),
|
|
20
20
|
enabled: !!(c && l) && (a === !0 || a === void 0)
|
|
21
21
|
});
|
|
22
22
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { MARKETING_WIDGET_LABELS_EN as e } from "../../ui/dist/index2.js";
|
|
2
|
-
import {
|
|
3
|
-
|
|
2
|
+
import { MarketingBenefitIcon as t } from "../../ui/dist/index3.js";
|
|
3
|
+
import { MarketingWidget as n } from "./index4.js";
|
|
4
|
+
export { e as MARKETING_WIDGET_LABELS_EN, t as MarketingBenefitIcon, n as MarketingWidget };
|