@tesouro/embedded-components-react 0.5.116 → 0.5.117
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/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/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
|
@@ -2,19 +2,19 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
5
|
+
import { getOrganizationOptions 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
8
|
import "../../../../shared/data-access/dist/index.js";
|
|
9
9
|
import { useQuery as r } from "@tanstack/react-query";
|
|
10
10
|
//#region ../../libs/tesouro-embedded-components-react/cards-widget/create-card/data-access/dist/index7.js
|
|
11
11
|
function i({ enabled: i } = {}) {
|
|
12
|
-
let { client: a, organizationId: o, widgetToken: s, authEpoch: c } =
|
|
12
|
+
let { client: a, organizationId: o, widgetToken: s, authEpoch: c } = n(), l = e({
|
|
13
13
|
client: a,
|
|
14
14
|
path: { organizationId: o ?? "" }
|
|
15
15
|
});
|
|
16
16
|
return r({
|
|
17
|
-
...
|
|
17
|
+
...t(l, c),
|
|
18
18
|
enabled: !!(o && s) && (i === !0 || i === void 0)
|
|
19
19
|
});
|
|
20
20
|
}
|
|
@@ -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 { getCreditCardsOptions 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/cards-widget/data-access/dist/index2.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
|
}
|
|
@@ -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 { getDebitCardsOptions 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/cards-widget/data-access/dist/index3.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
|
}
|
package/dist/libs/tesouro-embedded-components-react/counterparts-widget/data-access/dist/index2.js
CHANGED
|
@@ -2,20 +2,20 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
5
|
+
import { getAnalyticsPayablesOptions as e, getAnalyticsReceivablesOptions as t } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
6
|
+
import { withAuthEpoch as n } from "../../../shared/data-access/dist/lib/withAuthEpoch.js";
|
|
7
|
+
import { useEmbedApi as r } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
8
|
+
import { organizationHeaders as i } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
9
9
|
import "../../../shared/data-access/dist/index.js";
|
|
10
10
|
import { useQuery as a } from "@tanstack/react-query";
|
|
11
11
|
//#region ../../libs/tesouro-embedded-components-react/counterparts-widget/data-access/dist/index2.js
|
|
12
|
-
function o({ metric:
|
|
13
|
-
let { client: u, organizationId: d, widgetToken: f, authEpoch: p } =
|
|
12
|
+
function o({ metric: e = "total_amount", type: o, statusIn: s, counterpartIdIn: c, enabled: l } = {}) {
|
|
13
|
+
let { client: u, organizationId: d, widgetToken: f, authEpoch: p } = r(), m = c == null || c.length > 0, h = !!(d && f) && m && (l === !0 || l === void 0), g = t({
|
|
14
14
|
client: u,
|
|
15
|
-
headers:
|
|
15
|
+
headers: i(d),
|
|
16
16
|
query: {
|
|
17
17
|
dimension: "counterpart_id",
|
|
18
|
-
metric:
|
|
18
|
+
metric: e,
|
|
19
19
|
aggregation_function: "summary",
|
|
20
20
|
type: o,
|
|
21
21
|
status__in: s,
|
|
@@ -23,24 +23,24 @@ function o({ metric: n = "total_amount", type: o, statusIn: s, counterpartIdIn:
|
|
|
23
23
|
}
|
|
24
24
|
});
|
|
25
25
|
return a({
|
|
26
|
-
...
|
|
26
|
+
...n(g, p),
|
|
27
27
|
enabled: h
|
|
28
28
|
});
|
|
29
29
|
}
|
|
30
|
-
function s({ metric:
|
|
31
|
-
let { client: l, organizationId: u, widgetToken: d, authEpoch: f } =
|
|
30
|
+
function s({ metric: t = "total_amount", statusIn: o, counterpartIdIn: s, enabled: c } = {}) {
|
|
31
|
+
let { client: l, organizationId: u, widgetToken: d, authEpoch: f } = r(), p = s == null || s.length > 0, m = !!(u && d) && p && (c === !0 || c === void 0), h = e({
|
|
32
32
|
client: l,
|
|
33
|
-
headers:
|
|
33
|
+
headers: i(u),
|
|
34
34
|
query: {
|
|
35
35
|
dimension: "counterpart_id",
|
|
36
|
-
metric:
|
|
36
|
+
metric: t,
|
|
37
37
|
aggregation_function: "summary",
|
|
38
38
|
status__in: o,
|
|
39
39
|
counterpart_id__in: s
|
|
40
40
|
}
|
|
41
41
|
});
|
|
42
42
|
return a({
|
|
43
|
-
...
|
|
43
|
+
...n(h, f),
|
|
44
44
|
enabled: m
|
|
45
45
|
});
|
|
46
46
|
}
|
package/dist/libs/tesouro-embedded-components-react/counterparts-widget/data-access/dist/index3.js
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
5
|
+
import { getPayablesOptions as e, getReceivablesOptions as t } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
6
|
+
import { withAuthEpoch as n } from "../../../shared/data-access/dist/lib/withAuthEpoch.js";
|
|
7
|
+
import { useEmbedApi as r } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
8
|
+
import { organizationHeaders as i } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
9
9
|
import "../../../shared/data-access/dist/index.js";
|
|
10
10
|
import { useQuery as a } from "@tanstack/react-query";
|
|
11
11
|
//#region ../../libs/tesouro-embedded-components-react/counterparts-widget/data-access/dist/index3.js
|
|
@@ -23,12 +23,12 @@ var o = [
|
|
|
23
23
|
"partially_paid",
|
|
24
24
|
"paid"
|
|
25
25
|
];
|
|
26
|
-
function c({ counterpartId:
|
|
27
|
-
let { client: c, organizationId: l, widgetToken: u, authEpoch: d } =
|
|
26
|
+
function c({ counterpartId: t, enabled: s }) {
|
|
27
|
+
let { client: c, organizationId: l, widgetToken: u, authEpoch: d } = r(), f = !!(l && u && t) && (s === !0 || s === void 0), p = e({
|
|
28
28
|
client: c,
|
|
29
|
-
headers:
|
|
29
|
+
headers: i(l),
|
|
30
30
|
query: {
|
|
31
|
-
counterpart_id:
|
|
31
|
+
counterpart_id: t ?? void 0,
|
|
32
32
|
sort: "created_at",
|
|
33
33
|
order: "desc",
|
|
34
34
|
status__in: [...o],
|
|
@@ -36,16 +36,16 @@ function c({ counterpartId: r, enabled: s }) {
|
|
|
36
36
|
}
|
|
37
37
|
});
|
|
38
38
|
return a({
|
|
39
|
-
...
|
|
39
|
+
...n(p, d),
|
|
40
40
|
enabled: f
|
|
41
41
|
});
|
|
42
42
|
}
|
|
43
|
-
function l({ counterpartId:
|
|
44
|
-
let { client: c, organizationId: l, widgetToken: u, authEpoch: d } =
|
|
43
|
+
function l({ counterpartId: e, enabled: o }) {
|
|
44
|
+
let { client: c, organizationId: l, widgetToken: u, authEpoch: d } = r(), f = !!(l && u && e) && (o === !0 || o === void 0), p = t({
|
|
45
45
|
client: c,
|
|
46
|
-
headers:
|
|
46
|
+
headers: i(l),
|
|
47
47
|
query: {
|
|
48
|
-
counterpart_id:
|
|
48
|
+
counterpart_id: e ?? void 0,
|
|
49
49
|
sort: "created_at",
|
|
50
50
|
order: "desc",
|
|
51
51
|
status__in: [...s],
|
|
@@ -54,7 +54,7 @@ function l({ counterpartId: n, enabled: o }) {
|
|
|
54
54
|
}
|
|
55
55
|
});
|
|
56
56
|
return a({
|
|
57
|
-
...
|
|
57
|
+
...n(p, d),
|
|
58
58
|
enabled: f
|
|
59
59
|
});
|
|
60
60
|
}
|
|
@@ -2,20 +2,20 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
5
|
+
import { getReceiptsOptions 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
8
|
import "../../../shared/data-access/dist/index.js";
|
|
9
9
|
import { useQuery as r } from "@tanstack/react-query";
|
|
10
10
|
//#region ../../libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index2.js
|
|
11
11
|
function i({ enabled: i, ...a } = {}) {
|
|
12
|
-
let { client: o, organizationId: s, widgetToken: c, authEpoch: l } =
|
|
12
|
+
let { client: o, organizationId: s, widgetToken: c, authEpoch: l } = n(), u = !!(s && c) && (i === !0 || i === void 0), d = e({
|
|
13
13
|
query: a,
|
|
14
14
|
client: o,
|
|
15
15
|
headers: { "x-organization-id": s ?? "" }
|
|
16
16
|
});
|
|
17
17
|
return r({
|
|
18
|
-
...
|
|
18
|
+
...t(d, l),
|
|
19
19
|
enabled: u
|
|
20
20
|
});
|
|
21
21
|
}
|
|
@@ -2,20 +2,20 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
5
|
+
import { getTransactionsOptions as e } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
6
|
+
import { withAuthEpoch as t } from "../../../shared/data-access/dist/lib/withAuthEpoch.js";
|
|
7
|
+
import { useEmbedApi as n } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
8
8
|
import "../../../shared/data-access/dist/index.js";
|
|
9
9
|
import { useQuery as r } from "@tanstack/react-query";
|
|
10
10
|
//#region ../../libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index3.js
|
|
11
11
|
function i({ enabled: i, ...a } = {}) {
|
|
12
|
-
let { client: o, organizationId: s, widgetToken: c, authEpoch: l } =
|
|
12
|
+
let { client: o, organizationId: s, widgetToken: c, authEpoch: l } = n(), u = !!(s && c) && (i === !0 || i === void 0), d = e({
|
|
13
13
|
query: a,
|
|
14
14
|
client: o,
|
|
15
15
|
headers: { "x-organization-id": s ?? "" }
|
|
16
16
|
});
|
|
17
17
|
return r({
|
|
18
|
-
...
|
|
18
|
+
...t(d, l),
|
|
19
19
|
enabled: u
|
|
20
20
|
});
|
|
21
21
|
}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { getReceiptsIdQueryKey as e, getReceiptsQueryKey as t, getTransactionsIdQueryKey as n, getTransactionsQueryKey as r } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
2
|
+
import { organizationHeaders as i } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
3
3
|
import "../../../shared/data-access/dist/index.js";
|
|
4
4
|
//#region ../../libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index4.js
|
|
5
|
-
var a = ({ client:
|
|
5
|
+
var a = ({ client: e, organizationId: n }) => t({
|
|
6
|
+
client: e,
|
|
7
|
+
headers: i(n)
|
|
8
|
+
}), o = ({ client: e, organizationId: t }) => r({
|
|
9
|
+
client: e,
|
|
10
|
+
headers: i(t)
|
|
11
|
+
}), s = ({ client: t, organizationId: n, receiptId: r }) => e({
|
|
6
12
|
client: t,
|
|
7
|
-
headers:
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
headers: e(r),
|
|
14
|
-
path: { receipt_id: i }
|
|
15
|
-
}), c = ({ client: t, organizationId: n, transactionId: i }) => r({
|
|
16
|
-
client: t,
|
|
17
|
-
headers: e(n),
|
|
18
|
-
path: { transaction_id: i }
|
|
13
|
+
headers: i(n),
|
|
14
|
+
path: { receipt_id: r }
|
|
15
|
+
}), c = ({ client: e, organizationId: t, transactionId: r }) => n({
|
|
16
|
+
client: e,
|
|
17
|
+
headers: i(t),
|
|
18
|
+
path: { transaction_id: r }
|
|
19
19
|
});
|
|
20
20
|
//#endregion
|
|
21
21
|
export { s as receiptsIdInvalidationKey, a as receiptsInvalidationKey, c as transactionsIdInvalidationKey, o as transactionsInvalidationKey };
|
|
@@ -2,38 +2,38 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
5
|
+
import { patchReceiptsIdMutation as e } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
6
|
+
import { invalidateAllClients as t } from "../../../shared/data-access/dist/lib/clientRegistry.js";
|
|
7
|
+
import { useEmbedApi as n } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
8
|
+
import { organizationHeaders as r } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
9
9
|
import "../../../shared/data-access/dist/index.js";
|
|
10
10
|
import { receiptsIdInvalidationKey as i, receiptsInvalidationKey as a, transactionsIdInvalidationKey as o, transactionsInvalidationKey as s } from "./index4.js";
|
|
11
11
|
import { useMutation as c } from "@tanstack/react-query";
|
|
12
12
|
//#region ../../libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index5.js
|
|
13
13
|
function l() {
|
|
14
|
-
let { client: l, organizationId: u } =
|
|
14
|
+
let { client: l, organizationId: u } = n();
|
|
15
15
|
return c({
|
|
16
|
-
...
|
|
16
|
+
...e({
|
|
17
17
|
client: l,
|
|
18
|
-
headers:
|
|
18
|
+
headers: r(u)
|
|
19
19
|
}),
|
|
20
|
-
onSuccess: async (
|
|
20
|
+
onSuccess: async (e, n) => {
|
|
21
21
|
let r = n.path.receipt_id, c = n.body?.transaction_id;
|
|
22
22
|
await Promise.all([
|
|
23
|
-
|
|
23
|
+
t(a({
|
|
24
24
|
client: l,
|
|
25
25
|
organizationId: u
|
|
26
26
|
})),
|
|
27
|
-
|
|
27
|
+
t(s({
|
|
28
28
|
client: l,
|
|
29
29
|
organizationId: u
|
|
30
30
|
})),
|
|
31
|
-
|
|
31
|
+
t(i({
|
|
32
32
|
client: l,
|
|
33
33
|
organizationId: u,
|
|
34
34
|
receiptId: r
|
|
35
35
|
})),
|
|
36
|
-
...c ? [
|
|
36
|
+
...c ? [t(o({
|
|
37
37
|
client: l,
|
|
38
38
|
organizationId: u,
|
|
39
39
|
transactionId: c
|
|
@@ -2,26 +2,26 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
5
|
+
import { deleteReceiptsIdMutation 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
|
import { receiptsInvalidationKey as i, transactionsInvalidationKey as a } from "./index4.js";
|
|
11
11
|
import { useMutation as o } from "@tanstack/react-query";
|
|
12
12
|
//#region ../../libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index6.js
|
|
13
13
|
function s() {
|
|
14
|
-
let { client: s, organizationId: c } =
|
|
14
|
+
let { client: s, organizationId: c } = n();
|
|
15
15
|
return o({
|
|
16
|
-
...
|
|
16
|
+
...e({
|
|
17
17
|
client: s,
|
|
18
|
-
headers:
|
|
18
|
+
headers: r(c)
|
|
19
19
|
}),
|
|
20
20
|
onSuccess: async () => {
|
|
21
|
-
await Promise.all([
|
|
21
|
+
await Promise.all([t(i({
|
|
22
22
|
client: s,
|
|
23
23
|
organizationId: c
|
|
24
|
-
})),
|
|
24
|
+
})), t(a({
|
|
25
25
|
client: s,
|
|
26
26
|
organizationId: c
|
|
27
27
|
}))]);
|
package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index2.js
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { getReceivablesIdHistoryQueryKey as e, getReceivablesIdMailsQueryKey as t, getReceivablesIdPdfLinkQueryKey as n, getReceivablesIdQueryKey as r, getReceivablesQueryKey as i } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
2
|
+
import { organizationHeaders as a } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
3
3
|
import "../../../shared/data-access/dist/index.js";
|
|
4
4
|
//#region ../../libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index2.js
|
|
5
|
-
var o = ({ client:
|
|
6
|
-
let [
|
|
7
|
-
client:
|
|
8
|
-
headers:
|
|
9
|
-
}),
|
|
10
|
-
return delete
|
|
11
|
-
}, s = ({ client:
|
|
5
|
+
var o = ({ client: e, organizationId: t }) => {
|
|
6
|
+
let [n] = i({
|
|
7
|
+
client: e,
|
|
8
|
+
headers: a(t)
|
|
9
|
+
}), r = { ...n };
|
|
10
|
+
return delete r.query, [r];
|
|
11
|
+
}, s = ({ client: e, organizationId: t, receivableId: n }) => r({
|
|
12
|
+
client: e,
|
|
13
|
+
headers: a(t),
|
|
14
|
+
path: { receivable_id: n }
|
|
15
|
+
}), c = ({ client: t, organizationId: n, receivableId: r }) => e({
|
|
12
16
|
client: t,
|
|
13
|
-
headers:
|
|
17
|
+
headers: a(n),
|
|
18
|
+
path: { receivable_id: r }
|
|
19
|
+
}), l = ({ client: e, organizationId: n, receivableId: r }) => t({
|
|
20
|
+
client: e,
|
|
21
|
+
headers: a(n),
|
|
22
|
+
path: { receivable_id: r }
|
|
23
|
+
}), u = ({ client: e, organizationId: t, receivableId: r }) => n({
|
|
24
|
+
client: e,
|
|
25
|
+
headers: a(t),
|
|
14
26
|
path: { receivable_id: r }
|
|
15
|
-
}), c = ({ client: n, organizationId: r, receivableId: i }) => t({
|
|
16
|
-
client: n,
|
|
17
|
-
headers: e(r),
|
|
18
|
-
path: { receivable_id: i }
|
|
19
|
-
}), l = ({ client: t, organizationId: r, receivableId: i }) => n({
|
|
20
|
-
client: t,
|
|
21
|
-
headers: e(r),
|
|
22
|
-
path: { receivable_id: i }
|
|
23
|
-
}), u = ({ client: t, organizationId: n, receivableId: i }) => r({
|
|
24
|
-
client: t,
|
|
25
|
-
headers: e(n),
|
|
26
|
-
path: { receivable_id: i }
|
|
27
27
|
});
|
|
28
28
|
//#endregion
|
|
29
29
|
export { c as receivableHistoryInvalidationKey, s as receivableInvalidationKey, l as receivableMailsInvalidationKey, u as receivablePdfInvalidationKey, o as receivablesInvalidationKey };
|
package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index3.js
CHANGED
|
@@ -2,34 +2,34 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
5
|
+
import { postReceivablesIdSend as e } from "../../../shared/data-access/dist/lib/rest/sdk.gen.js";
|
|
6
|
+
import { invalidateAllClients as t } from "../../../shared/data-access/dist/lib/clientRegistry.js";
|
|
7
|
+
import { useEmbedApi as n } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
8
|
+
import { organizationHeaders as r } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
9
9
|
import "../../../shared/data-access/dist/index.js";
|
|
10
10
|
import { receivableHistoryInvalidationKey as i, receivableMailsInvalidationKey as a } from "./index2.js";
|
|
11
11
|
import { useMutation as o } from "@tanstack/react-query";
|
|
12
12
|
//#region ../../libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index3.js
|
|
13
13
|
function s() {
|
|
14
|
-
let { client: s, organizationId: c } =
|
|
14
|
+
let { client: s, organizationId: c } = n();
|
|
15
15
|
return o({
|
|
16
|
-
mutationFn: async ({ path:
|
|
17
|
-
let { data: i } = await
|
|
16
|
+
mutationFn: async ({ path: t, body: n }) => {
|
|
17
|
+
let { data: i } = await e({
|
|
18
18
|
client: s,
|
|
19
|
-
headers:
|
|
20
|
-
path:
|
|
21
|
-
body:
|
|
19
|
+
headers: r(c),
|
|
20
|
+
path: t,
|
|
21
|
+
body: n,
|
|
22
22
|
throwOnError: !0
|
|
23
23
|
});
|
|
24
24
|
return i;
|
|
25
25
|
},
|
|
26
|
-
onSuccess: async (
|
|
26
|
+
onSuccess: async (e, n) => {
|
|
27
27
|
let r = {
|
|
28
28
|
client: s,
|
|
29
29
|
organizationId: c,
|
|
30
30
|
receivableId: n.path.receivable_id
|
|
31
31
|
};
|
|
32
|
-
await Promise.all([
|
|
32
|
+
await Promise.all([t(a(r)), t(i(r))]);
|
|
33
33
|
}
|
|
34
34
|
});
|
|
35
35
|
}
|