@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,98 +2,98 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
5
|
+
import { deleteCounterpartsId as e, patchCounterpartsId as t, postCounterparts as n } from "../../../data-access/dist/lib/rest/sdk.gen.js";
|
|
6
|
+
import { getCounterpartsIdOptions as r, getCounterpartsOptions as i } from "../../../data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
7
|
+
import { withAuthEpoch as a } from "../../../data-access/dist/lib/withAuthEpoch.js";
|
|
8
|
+
import { invalidateAllClients as o } from "../../../data-access/dist/lib/clientRegistry.js";
|
|
9
|
+
import { useEmbedApi as s } from "../../../data-access/dist/lib/EmbedApiContext.js";
|
|
10
|
+
import { organizationHeaders as c } from "../../../data-access/dist/lib/organizationHeaders.js";
|
|
11
11
|
import "../../../data-access/dist/index.js";
|
|
12
12
|
import { counterpartInvalidationKey as l, counterpartsInvalidationKey as u } from "./index2.js";
|
|
13
13
|
import { useMutation as d, useQuery as f } from "@tanstack/react-query";
|
|
14
14
|
//#region ../../libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index3.js
|
|
15
|
-
function p({ enabled: e, ...
|
|
16
|
-
let { client:
|
|
17
|
-
query:
|
|
18
|
-
client:
|
|
19
|
-
headers:
|
|
15
|
+
function p({ enabled: e, ...t } = {}) {
|
|
16
|
+
let { client: n, organizationId: r, widgetToken: o, authEpoch: l } = s(), u = !!(r && o) && (e === !0 || e === void 0), d = i({
|
|
17
|
+
query: t,
|
|
18
|
+
client: n,
|
|
19
|
+
headers: c(r)
|
|
20
20
|
});
|
|
21
21
|
return f({
|
|
22
|
-
...
|
|
22
|
+
...a(d, l),
|
|
23
23
|
enabled: u
|
|
24
24
|
});
|
|
25
25
|
}
|
|
26
26
|
function m(e) {
|
|
27
|
-
let { client:
|
|
28
|
-
client:
|
|
29
|
-
headers: n
|
|
27
|
+
let { client: t, organizationId: n, widgetToken: i, authEpoch: o } = s(), l = !!(n && i && e), u = r({
|
|
28
|
+
client: t,
|
|
29
|
+
headers: c(n),
|
|
30
30
|
path: { counterpart_id: e ?? "" }
|
|
31
31
|
});
|
|
32
32
|
return f({
|
|
33
|
-
...
|
|
33
|
+
...a(u, o),
|
|
34
34
|
enabled: l
|
|
35
35
|
});
|
|
36
36
|
}
|
|
37
37
|
function h() {
|
|
38
|
-
let { client:
|
|
38
|
+
let { client: e, organizationId: t } = s();
|
|
39
39
|
return d({
|
|
40
|
-
mutationFn: async ({ body:
|
|
41
|
-
let { data:
|
|
42
|
-
client:
|
|
43
|
-
headers:
|
|
44
|
-
body:
|
|
40
|
+
mutationFn: async ({ body: r }) => {
|
|
41
|
+
let { data: i } = await n({
|
|
42
|
+
client: e,
|
|
43
|
+
headers: c(t),
|
|
44
|
+
body: r,
|
|
45
45
|
throwOnError: !0
|
|
46
46
|
});
|
|
47
|
-
return
|
|
47
|
+
return i;
|
|
48
48
|
},
|
|
49
49
|
onSuccess: async () => {
|
|
50
|
-
await
|
|
51
|
-
client:
|
|
52
|
-
organizationId:
|
|
50
|
+
await o(u({
|
|
51
|
+
client: e,
|
|
52
|
+
organizationId: t
|
|
53
53
|
}));
|
|
54
54
|
}
|
|
55
55
|
});
|
|
56
56
|
}
|
|
57
57
|
function g() {
|
|
58
|
-
let { client:
|
|
58
|
+
let { client: e, organizationId: n } = s();
|
|
59
59
|
return d({
|
|
60
|
-
mutationFn: async ({ path:
|
|
61
|
-
let { data:
|
|
62
|
-
client:
|
|
63
|
-
headers: n
|
|
64
|
-
path:
|
|
65
|
-
body:
|
|
60
|
+
mutationFn: async ({ path: r, body: i }) => {
|
|
61
|
+
let { data: a } = await t({
|
|
62
|
+
client: e,
|
|
63
|
+
headers: c(n),
|
|
64
|
+
path: r,
|
|
65
|
+
body: i,
|
|
66
66
|
throwOnError: !0
|
|
67
67
|
});
|
|
68
|
-
return
|
|
68
|
+
return a;
|
|
69
69
|
},
|
|
70
|
-
onSuccess: async (t,
|
|
71
|
-
await Promise.all([
|
|
72
|
-
client:
|
|
73
|
-
organizationId:
|
|
74
|
-
})),
|
|
75
|
-
client:
|
|
76
|
-
organizationId:
|
|
77
|
-
counterpartId:
|
|
70
|
+
onSuccess: async (t, r) => {
|
|
71
|
+
await Promise.all([o(u({
|
|
72
|
+
client: e,
|
|
73
|
+
organizationId: n
|
|
74
|
+
})), o(l({
|
|
75
|
+
client: e,
|
|
76
|
+
organizationId: n,
|
|
77
|
+
counterpartId: r.path.counterpart_id
|
|
78
78
|
}))]);
|
|
79
79
|
}
|
|
80
80
|
});
|
|
81
81
|
}
|
|
82
82
|
function _() {
|
|
83
|
-
let { client:
|
|
83
|
+
let { client: t, organizationId: n } = s();
|
|
84
84
|
return d({
|
|
85
|
-
mutationFn: async ({ path:
|
|
86
|
-
await
|
|
87
|
-
client:
|
|
88
|
-
headers: n
|
|
89
|
-
path:
|
|
85
|
+
mutationFn: async ({ path: r }) => {
|
|
86
|
+
await e({
|
|
87
|
+
client: t,
|
|
88
|
+
headers: c(n),
|
|
89
|
+
path: r,
|
|
90
90
|
throwOnError: !0
|
|
91
91
|
});
|
|
92
92
|
},
|
|
93
93
|
onSuccess: async () => {
|
|
94
|
-
await
|
|
95
|
-
client:
|
|
96
|
-
organizationId:
|
|
94
|
+
await o(u({
|
|
95
|
+
client: t,
|
|
96
|
+
organizationId: n
|
|
97
97
|
}));
|
|
98
98
|
}
|
|
99
99
|
});
|
|
@@ -2,111 +2,111 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
5
|
+
import { deleteCounterpartsIdBankAccountsId as e, patchCounterpartsIdBankAccountsId as t, postCounterpartsIdBankAccounts as n, postCounterpartsIdBankAccountsIdMakeDefault as r } from "../../../data-access/dist/lib/rest/sdk.gen.js";
|
|
6
|
+
import { getCounterpartsIdBankAccountsOptions as i } from "../../../data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
7
|
+
import { withAuthEpoch as a } from "../../../data-access/dist/lib/withAuthEpoch.js";
|
|
8
|
+
import { invalidateAllClients as o } from "../../../data-access/dist/lib/clientRegistry.js";
|
|
9
|
+
import { useEmbedApi as s } from "../../../data-access/dist/lib/EmbedApiContext.js";
|
|
10
|
+
import { organizationHeaders as c } from "../../../data-access/dist/lib/organizationHeaders.js";
|
|
11
11
|
import "../../../data-access/dist/index.js";
|
|
12
12
|
import { counterpartBankAccountsInvalidationKey as l, counterpartInvalidationKey as u } from "./index2.js";
|
|
13
13
|
import { useMutation as d, useQuery as f } from "@tanstack/react-query";
|
|
14
14
|
//#region ../../libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index5.js
|
|
15
|
-
function p(e, { enabled:
|
|
16
|
-
let { client:
|
|
17
|
-
client:
|
|
18
|
-
headers:
|
|
15
|
+
function p(e, { enabled: t = !0 } = {}) {
|
|
16
|
+
let { client: n, organizationId: r, widgetToken: o, authEpoch: l } = s(), u = !!(t && r && o && e), d = i({
|
|
17
|
+
client: n,
|
|
18
|
+
headers: c(r),
|
|
19
19
|
path: { counterpart_id: e ?? "" }
|
|
20
20
|
});
|
|
21
21
|
return f({
|
|
22
|
-
...
|
|
22
|
+
...a(d, l),
|
|
23
23
|
enabled: u
|
|
24
24
|
});
|
|
25
25
|
}
|
|
26
26
|
function m() {
|
|
27
|
-
let { client:
|
|
27
|
+
let { client: e, organizationId: t } = s();
|
|
28
28
|
return d({
|
|
29
|
-
mutationFn: async ({ path:
|
|
30
|
-
let { data:
|
|
31
|
-
client:
|
|
32
|
-
headers:
|
|
33
|
-
path:
|
|
34
|
-
body:
|
|
29
|
+
mutationFn: async ({ path: r, body: i }) => {
|
|
30
|
+
let { data: a } = await n({
|
|
31
|
+
client: e,
|
|
32
|
+
headers: c(t),
|
|
33
|
+
path: r,
|
|
34
|
+
body: i,
|
|
35
35
|
throwOnError: !0
|
|
36
36
|
});
|
|
37
|
-
return
|
|
37
|
+
return a;
|
|
38
38
|
},
|
|
39
|
-
onSuccess: async (
|
|
40
|
-
await
|
|
41
|
-
client:
|
|
42
|
-
organizationId:
|
|
43
|
-
counterpartId:
|
|
39
|
+
onSuccess: async (n, r) => {
|
|
40
|
+
await o(l({
|
|
41
|
+
client: e,
|
|
42
|
+
organizationId: t,
|
|
43
|
+
counterpartId: r.path.counterpart_id
|
|
44
44
|
}));
|
|
45
45
|
}
|
|
46
46
|
});
|
|
47
47
|
}
|
|
48
48
|
function h() {
|
|
49
|
-
let { client:
|
|
49
|
+
let { client: e, organizationId: n } = s();
|
|
50
50
|
return d({
|
|
51
|
-
mutationFn: async ({ path:
|
|
52
|
-
let { data:
|
|
53
|
-
client:
|
|
54
|
-
headers: n
|
|
55
|
-
path:
|
|
56
|
-
body:
|
|
51
|
+
mutationFn: async ({ path: r, body: i }) => {
|
|
52
|
+
let { data: a } = await t({
|
|
53
|
+
client: e,
|
|
54
|
+
headers: c(n),
|
|
55
|
+
path: r,
|
|
56
|
+
body: i,
|
|
57
57
|
throwOnError: !0
|
|
58
58
|
});
|
|
59
|
-
return
|
|
59
|
+
return a;
|
|
60
60
|
},
|
|
61
|
-
onSuccess: async (t,
|
|
62
|
-
await
|
|
63
|
-
client:
|
|
64
|
-
organizationId:
|
|
65
|
-
counterpartId:
|
|
61
|
+
onSuccess: async (t, r) => {
|
|
62
|
+
await o(l({
|
|
63
|
+
client: e,
|
|
64
|
+
organizationId: n,
|
|
65
|
+
counterpartId: r.path.counterpart_id
|
|
66
66
|
}));
|
|
67
67
|
}
|
|
68
68
|
});
|
|
69
69
|
}
|
|
70
70
|
function g() {
|
|
71
|
-
let { client:
|
|
71
|
+
let { client: t, organizationId: n } = s();
|
|
72
72
|
return d({
|
|
73
|
-
mutationFn: async ({ path:
|
|
74
|
-
await
|
|
75
|
-
client:
|
|
76
|
-
headers: n
|
|
77
|
-
path:
|
|
73
|
+
mutationFn: async ({ path: r }) => {
|
|
74
|
+
await e({
|
|
75
|
+
client: t,
|
|
76
|
+
headers: c(n),
|
|
77
|
+
path: r,
|
|
78
78
|
throwOnError: !0
|
|
79
79
|
});
|
|
80
80
|
},
|
|
81
|
-
onSuccess: async (
|
|
82
|
-
await
|
|
83
|
-
client:
|
|
84
|
-
organizationId:
|
|
85
|
-
counterpartId:
|
|
81
|
+
onSuccess: async (e, r) => {
|
|
82
|
+
await o(l({
|
|
83
|
+
client: t,
|
|
84
|
+
organizationId: n,
|
|
85
|
+
counterpartId: r.path.counterpart_id
|
|
86
86
|
}));
|
|
87
87
|
}
|
|
88
88
|
});
|
|
89
89
|
}
|
|
90
90
|
function _() {
|
|
91
|
-
let { client:
|
|
91
|
+
let { client: e, organizationId: t } = s();
|
|
92
92
|
return d({
|
|
93
|
-
mutationFn: async ({ path:
|
|
94
|
-
await
|
|
95
|
-
client:
|
|
96
|
-
headers:
|
|
97
|
-
path:
|
|
93
|
+
mutationFn: async ({ path: n }) => {
|
|
94
|
+
await r({
|
|
95
|
+
client: e,
|
|
96
|
+
headers: c(t),
|
|
97
|
+
path: n,
|
|
98
98
|
throwOnError: !0
|
|
99
99
|
});
|
|
100
100
|
},
|
|
101
|
-
onSuccess: async (
|
|
102
|
-
await Promise.all([
|
|
103
|
-
client:
|
|
104
|
-
organizationId:
|
|
105
|
-
counterpartId:
|
|
106
|
-
})),
|
|
107
|
-
client:
|
|
108
|
-
organizationId:
|
|
109
|
-
counterpartId:
|
|
101
|
+
onSuccess: async (n, r) => {
|
|
102
|
+
await Promise.all([o(l({
|
|
103
|
+
client: e,
|
|
104
|
+
organizationId: t,
|
|
105
|
+
counterpartId: r.path.counterpart_id
|
|
106
|
+
})), o(u({
|
|
107
|
+
client: e,
|
|
108
|
+
organizationId: t,
|
|
109
|
+
counterpartId: r.path.counterpart_id
|
|
110
110
|
}))]);
|
|
111
111
|
}
|
|
112
112
|
});
|
|
@@ -2,82 +2,82 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
5
|
+
import { patchCounterpartsIdAddressesId as e, postCounterpartsIdAddresses as t } from "../../../data-access/dist/lib/rest/sdk.gen.js";
|
|
6
|
+
import { getCounterpartsIdAddressesOptions as n } from "../../../data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
7
|
+
import { withAuthEpoch as r } from "../../../data-access/dist/lib/withAuthEpoch.js";
|
|
8
|
+
import { invalidateAllClients as i } from "../../../data-access/dist/lib/clientRegistry.js";
|
|
9
|
+
import { useEmbedApi as a } from "../../../data-access/dist/lib/EmbedApiContext.js";
|
|
10
|
+
import { organizationHeaders as o } from "../../../data-access/dist/lib/organizationHeaders.js";
|
|
11
11
|
import "../../../data-access/dist/index.js";
|
|
12
12
|
import { counterpartAddressesInvalidationKey as s, counterpartInvalidationKey as c } from "./index2.js";
|
|
13
13
|
import { useMutation as l, useQueries as u, useQuery as d } from "@tanstack/react-query";
|
|
14
14
|
//#region ../../libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index7.js
|
|
15
15
|
function f(e) {
|
|
16
|
-
let { client:
|
|
17
|
-
client:
|
|
18
|
-
headers:
|
|
16
|
+
let { client: t, organizationId: i, widgetToken: s, authEpoch: c } = a(), l = !!(i && s && e), u = n({
|
|
17
|
+
client: t,
|
|
18
|
+
headers: o(i),
|
|
19
19
|
path: { counterpart_id: e ?? "" }
|
|
20
20
|
});
|
|
21
21
|
return d({
|
|
22
|
-
...
|
|
22
|
+
...r(u, c),
|
|
23
23
|
enabled: l
|
|
24
24
|
});
|
|
25
25
|
}
|
|
26
|
-
function p({ counterpartIds: e, enabled:
|
|
27
|
-
let { client: i, organizationId: s, widgetToken: c, authEpoch: l } =
|
|
26
|
+
function p({ counterpartIds: e, enabled: t }) {
|
|
27
|
+
let { client: i, organizationId: s, widgetToken: c, authEpoch: l } = a(), d = !!(s && c) && e.length > 0 && (t === !0 || t === void 0);
|
|
28
28
|
return u({ queries: e.map((e) => ({
|
|
29
|
-
...
|
|
29
|
+
...r(n({
|
|
30
30
|
client: i,
|
|
31
|
-
headers:
|
|
31
|
+
headers: o(s),
|
|
32
32
|
path: { counterpart_id: e }
|
|
33
33
|
}), l),
|
|
34
34
|
enabled: d && !!e
|
|
35
35
|
})) });
|
|
36
36
|
}
|
|
37
37
|
function m() {
|
|
38
|
-
let { client:
|
|
38
|
+
let { client: e, organizationId: n } = a();
|
|
39
39
|
return l({
|
|
40
|
-
mutationFn: async ({ path:
|
|
41
|
-
let { data:
|
|
42
|
-
client:
|
|
43
|
-
headers: n
|
|
44
|
-
path:
|
|
45
|
-
body:
|
|
40
|
+
mutationFn: async ({ path: r, body: i }) => {
|
|
41
|
+
let { data: a } = await t({
|
|
42
|
+
client: e,
|
|
43
|
+
headers: o(n),
|
|
44
|
+
path: r,
|
|
45
|
+
body: i,
|
|
46
46
|
throwOnError: !0
|
|
47
47
|
});
|
|
48
|
-
return
|
|
48
|
+
return a;
|
|
49
49
|
},
|
|
50
|
-
onSuccess: async (t,
|
|
51
|
-
await Promise.all([
|
|
52
|
-
client:
|
|
53
|
-
organizationId:
|
|
54
|
-
counterpartId:
|
|
55
|
-
})),
|
|
56
|
-
client:
|
|
57
|
-
organizationId:
|
|
58
|
-
counterpartId:
|
|
50
|
+
onSuccess: async (t, r) => {
|
|
51
|
+
await Promise.all([i(s({
|
|
52
|
+
client: e,
|
|
53
|
+
organizationId: n,
|
|
54
|
+
counterpartId: r.path.counterpart_id
|
|
55
|
+
})), i(c({
|
|
56
|
+
client: e,
|
|
57
|
+
organizationId: n,
|
|
58
|
+
counterpartId: r.path.counterpart_id
|
|
59
59
|
}))]);
|
|
60
60
|
}
|
|
61
61
|
});
|
|
62
62
|
}
|
|
63
63
|
function h() {
|
|
64
|
-
let { client:
|
|
64
|
+
let { client: t, organizationId: n } = a();
|
|
65
65
|
return l({
|
|
66
|
-
mutationFn: async ({ path:
|
|
67
|
-
let { data:
|
|
68
|
-
client:
|
|
69
|
-
headers: n
|
|
70
|
-
path:
|
|
71
|
-
body:
|
|
66
|
+
mutationFn: async ({ path: r, body: i }) => {
|
|
67
|
+
let { data: a } = await e({
|
|
68
|
+
client: t,
|
|
69
|
+
headers: o(n),
|
|
70
|
+
path: r,
|
|
71
|
+
body: i,
|
|
72
72
|
throwOnError: !0
|
|
73
73
|
});
|
|
74
|
-
return
|
|
74
|
+
return a;
|
|
75
75
|
},
|
|
76
|
-
onSuccess: async (
|
|
77
|
-
await
|
|
78
|
-
client:
|
|
79
|
-
organizationId:
|
|
80
|
-
counterpartId:
|
|
76
|
+
onSuccess: async (e, r) => {
|
|
77
|
+
await i(s({
|
|
78
|
+
client: t,
|
|
79
|
+
organizationId: n,
|
|
80
|
+
counterpartId: r.path.counterpart_id
|
|
81
81
|
}));
|
|
82
82
|
}
|
|
83
83
|
});
|
|
@@ -1,40 +1,41 @@
|
|
|
1
1
|
import "./lib/finopsApiVersion.js";
|
|
2
|
-
import { createClientSecretInstaller as e } from "./lib/scopedClientSecret.js";
|
|
3
|
-
import { cancelAllClients as t, invalidateAllClients as n, registerQueryClient as r, removeInactiveFromAllClients as i, setAllClientsQueriesData as a, unregisterQueryClient as o } from "./lib/clientRegistry.js";
|
|
4
|
-
import { cloneEmbeddedClient as s, createEmbeddedClient as c } from "./lib/createEmbeddedClient.js";
|
|
5
|
-
import "./lib/widgetGatewayHosts.js";
|
|
6
|
-
import { attachTransportInterceptors as l } from "./lib/transportInterceptors.js";
|
|
7
2
|
import "./lib/rest/client.gen.js";
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
3
|
+
import { bulkUpdateDepartmentMembers as e, bulkUpdateLocationMembers as t, bulkUpdateRoleMembers as n, createDepartment as r, createLocation as i, createUser as a, deactivateDepartment as o, deactivateLocation as s, deleteCounterpartsId as c, deleteCounterpartsIdBankAccountsId as l, deleteEntitiesIdLogo as u, deleteMeasureUnitsId as d, deletePayablesId as f, deletePayablesIdFile as p, deleteProductsId as m, deleteReceivablesId as h, deleteTagsId as g, downloadBankAccountTransactions as _, getApplicationStatus as v, getApprovalPolicies as y, getApprovalRequests as b, getBankAccountAccess as x, getCounterparts as S, getDepartment as C, getDepositableBankAccounts as w, getExternalBankAccountAccess as T, getLocation as E, getPayables as D, getPayablesId as O, getPayablesIdHistory as k, getPayablesIdLineItems as A, getPaymentRecords as j, getReceivables as M, getUsers as N, listDepartments as P, listLocations as F, listRoles as I, manageBankAccountAccess as L, patchCounterpartsId as R, patchCounterpartsIdAddressesId as z, patchCounterpartsIdBankAccountsId as B, patchEntitiesIdSettings as V, patchMeasureUnitsId as H, patchPayablesId as U, patchProductsId as W, patchReceivablesId as G, patchTagsId as K, postApprovalRequestsIdApprove as q, postApprovalRequestsIdReject as J, postCounterparts as Y, postCounterpartsIdAddresses as X, postCounterpartsIdBankAccounts as Z, postCounterpartsIdBankAccountsIdMakeDefault as Q, postMeasureUnits as $, postPayables as ee, postPayablesIdApprovePaymentOperation as te, postPayablesIdAttachFile as ne, postPayablesIdCancel as re, postPayablesIdDuplicatesIdConfirm as ie, postPayablesIdDuplicatesIdDismiss as ae, postPayablesIdMarkAsPaid as oe, postPayablesIdReject as se, postPayablesIdReopen as ce, postPayablesIdSchedulePayment as le, postPayablesIdSubmitForApproval as ue, postPayablesIdValidate as de, postPayablesUploadFromFile as fe, postPaymentIntentsIdCancel as pe, postProducts as me, postReceivables as he, postReceivablesIdAccept as ge, postReceivablesIdCancel as _e, postReceivablesIdClone as ve, postReceivablesIdDecline as ye, postReceivablesIdIssue as be, postReceivablesIdMarkAsPaid as xe, postReceivablesIdMarkAsPartiallyPaid as Se, postReceivablesIdMarkAsUncollectible as Ce, postReceivablesIdSend as we, postTags as Te, putEntitiesIdLogo as Ee, putPayablesIdLineItems as De, updateDepartment as Oe, updateLocation as ke, updateUser as Ae } from "./lib/rest/sdk.gen.js";
|
|
4
|
+
import { activateCreditCardMutation as je, activateDebitCardMutation as Me, connectExternalBankAccountMutation as Ne, createAchMoneyMovementMutation as Pe, createApplicationMutation as Fe, createBankAccountMutation as Ie, createBookTransferMutation as Le, createCheckDepositMutation as Re, createDebitCardMutation as ze, createVelocityControlMutation as Be, deleteApprovalPoliciesIdMutation as Ve, deleteLedgerAccountsIdMutation as He, deleteReceiptsIdMutation as Ue, disableUserMutation as We, getAnalyticsPayablesOptions as Ge, getAnalyticsPayablesQueryKey as Ke, getAnalyticsReceivablesOptions as qe, getApprovalPoliciesOptions as Je, getApprovalPoliciesQueryKey as Ye, getApprovalRequestsOptions as Xe, getApprovalRequestsQueryKey as Ze, getBankAccountAccessQueryKey as Qe, getBankAccountApplicationOptions as $e, getBankAccountOptions as et, getBankAccountQueryKey as tt, getBankAccountTransactionsOptions as nt, getBankAccountTransactionsQueryKey as rt, getBankAccountTransfersOptions as it, getBankAccountTransfersQueryKey as at, getBankAccountsQueryKey as ot, getCounterpartsIdAddressesOptions as st, getCounterpartsIdAddressesQueryKey as ct, getCounterpartsIdBankAccountsOptions as lt, getCounterpartsIdBankAccountsQueryKey as ut, getCounterpartsIdOptions as dt, getCounterpartsIdQueryKey as ft, getCounterpartsOptions as pt, getCounterpartsQueryKey as mt, getCreditCardByIdOptions as ht, getCreditCardByIdQueryKey as gt, getCreditCardsOptions as _t, getCreditCardsQueryKey as vt, getDebitCardByIdOptions as yt, getDebitCardByIdQueryKey as bt, getDebitCardCredentialsOptions as xt, getDebitCardsOptions as St, getDebitCardsQueryKey as Ct, getDepartmentOptions as wt, getDepartmentQueryKey as Tt, getDepositableBankAccountsOptions as Et, getDocumentsIdNextNumbersOptions as Dt, getDocumentsIdNextNumbersQueryKey as Ot, getEntitiesIdSettingsOptions as kt, getEntitiesIdSettingsQueryKey as At, getEntitiesMeOptions as jt, getEntityUsersMyEntityOptions as Mt, getEntityUsersMyEntityQueryKey as Nt, getEntityUsersOptions as Pt, getExternalBankAccountAccessQueryKey as Ft, getExternalBankAccountsOptions as It, getExternalBankAccountsQueryKey as Lt, getLedgerAccountsQueryKey as Rt, getLocationOptions as zt, getLocationQueryKey as Bt, getMeasureUnitsOptions as Vt, getMeasureUnitsQueryKey as Ht, getOrganizationOptions as Ut, getPayablesIdHistoryOptions as Wt, getPayablesIdHistoryQueryKey as Gt, getPayablesIdLineItemsOptions as Kt, getPayablesIdLineItemsQueryKey as qt, getPayablesIdOptions as Jt, getPayablesIdQueryKey as Yt, getPayablesIdSuggestionsOptions as Xt, getPayablesOptions as Zt, getPayablesQueryKey as Qt, getPaymentRecordsOptions as $t, getPaymentRecordsQueryKey as en, getProductsIdOptions as tn, getProductsIdQueryKey as nn, getProductsOptions as rn, getProductsQueryKey as an, getReceiptsIdQueryKey as on, getReceiptsOptions as sn, getReceiptsQueryKey as cn, getReceivablesIdHistoryOptions as ln, getReceivablesIdHistoryQueryKey as un, getReceivablesIdMailsOptions as dn, getReceivablesIdMailsQueryKey as fn, getReceivablesIdOptions as pn, getReceivablesIdPdfLinkOptions as mn, getReceivablesIdPdfLinkQueryKey as hn, getReceivablesIdQueryKey as gn, getReceivablesOptions as _n, getReceivablesQueryKey as vn, getTagsOptions as yn, getTagsQueryKey as bn, getTransactionsIdQueryKey as xn, getTransactionsOptions as Sn, getTransactionsQueryKey as Cn, getTransactionsValidationsOptions as wn, getTransactionsValidationsQueryKey as Tn, getUsersOptions as En, getUsersQueryKey as Dn, getVelocityControlsQueryKey as On, grantBankAccountAccessMutation as kn, grantExternalBankAccountAccessMutation as An, linkExternalBankAccountMutation as jn, listDepartmentsOptions as Mn, listDepartmentsQueryKey as Nn, listLocationsOptions as Pn, listLocationsQueryKey as Fn, listRolesQueryKey as In, manageDebitCardAccessMutation as Ln, patchApprovalPoliciesIdMutation as Rn, patchEntitiesIdSettingsMutation as zn, patchLedgerAccountsIdMutation as Bn, patchReceiptsIdMutation as Vn, postApprovalPoliciesMutation as Hn, postLedgerAccountsMutation as Un, putTransactionsValidationsMutation as Wn, setDebitCardLockStatusMutation as Gn, submitApplicationMutation as Kn, unlinkExternalBankAccountMutation as qn, updateApplicationMutation as Jn, updateBankAccountMutation as Yn, updateDebitCardMutation as Xn, updateExternalBankAccountMutation as Zn, validateExternalBankAccountMutation as Qn, verifyDebitCardMutation as $n } from "./lib/rest/@tanstack/react-query.gen.js";
|
|
5
|
+
import { withAuthEpoch as er } from "./lib/withAuthEpoch.js";
|
|
6
|
+
import { applicationStatusInvalidationKey as tr, applicationStatusQueryOptions as nr } from "./lib/applicationStatusQueryOptions.js";
|
|
7
|
+
import { createClientSecretInstaller as rr } from "./lib/scopedClientSecret.js";
|
|
8
|
+
import { cancelAllClients as ir, invalidateAllClients as ar, registerQueryClient as or, removeInactiveFromAllClients as sr, setAllClientsQueriesData as cr, unregisterQueryClient as lr } from "./lib/clientRegistry.js";
|
|
9
|
+
import { cloneEmbeddedClient as ur, createEmbeddedClient as dr } from "./lib/createEmbeddedClient.js";
|
|
10
|
+
import "./lib/widgetGatewayHosts.js";
|
|
11
|
+
import { attachTransportInterceptors as fr } from "./lib/transportInterceptors.js";
|
|
12
|
+
import { EmbedApiProvider as pr, useEmbedApi as mr } from "./lib/EmbedApiContext.js";
|
|
13
|
+
import { optionalOrganizationHeaders as hr, organizationHeaders as gr } from "./lib/organizationHeaders.js";
|
|
14
|
+
import { fetchWidgetInit as _r } from "./lib/fetchWidgetInit.js";
|
|
15
|
+
import { hasAnyScope as vr } from "./lib/hasAnyScope.js";
|
|
14
16
|
import "./lib/queryKeys.js";
|
|
15
|
-
import {
|
|
16
|
-
import { useCurrentUserQuery as vr } from "./lib/useCurrentUserQuery.js";
|
|
17
|
+
import { useCurrentUserQuery as yr } from "./lib/useCurrentUserQuery.js";
|
|
17
18
|
import "./lib/apiErrorStatus.js";
|
|
18
|
-
import { isApiConflictError as
|
|
19
|
-
import { isApiForbiddenError as
|
|
20
|
-
import { isApiNotFoundError as
|
|
21
|
-
import { isApiUnprocessableError as
|
|
19
|
+
import { isApiConflictError as br } from "./lib/isApiConflictError.js";
|
|
20
|
+
import { isApiForbiddenError as xr } from "./lib/isApiForbiddenError.js";
|
|
21
|
+
import { isApiNotFoundError as Sr } from "./lib/isApiNotFoundError.js";
|
|
22
|
+
import { isApiUnprocessableError as Cr } from "./lib/isApiUnprocessableError.js";
|
|
22
23
|
import "./lib/isUserDataNotFoundError.js";
|
|
23
|
-
import { useGetUserDataQuery as
|
|
24
|
-
import { useUpsertUserDataMutation as
|
|
24
|
+
import { useGetUserDataQuery as wr } from "./lib/useGetUserDataQuery.js";
|
|
25
|
+
import { useUpsertUserDataMutation as Tr } from "./lib/useUpsertUserDataMutation.js";
|
|
25
26
|
import "./lib/rest/zod.gen.js";
|
|
26
|
-
import { Scope as
|
|
27
|
-
import { getAllPagesNextPageParam as
|
|
28
|
-
import { useAllBankAccountsQuery as
|
|
29
|
-
import { useAllExternalBankAccountsQuery as
|
|
30
|
-
import { useAllMerchantCategoryGroupsQuery as
|
|
31
|
-
import { useAllLedgerAccountsQuery as
|
|
32
|
-
import { usePaymentTermsQuery as
|
|
33
|
-
import { useAllOrganizationRolesQuery as
|
|
34
|
-
import { useRolePermissionsQueries as
|
|
35
|
-
import { useAllOrganizationUsersQuery as
|
|
36
|
-
import { useAcceptWidgetDisclosures as
|
|
37
|
-
import { useDisclosuresQuery as
|
|
38
|
-
import { OnboardingSuppressionReason as
|
|
39
|
-
import { useOrganizationOnboardingSuppression as
|
|
40
|
-
export {
|
|
27
|
+
import { Scope as Er } from "./lib/scopes.js";
|
|
28
|
+
import { getAllPagesNextPageParam as Dr, getAllPagesNextPaginationTokenParam as Or, isAllPagesResolving as kr, useAutoFetchNextPage as Ar } from "./lib/allPages.js";
|
|
29
|
+
import { useAllBankAccountsQuery as jr } from "./lib/bank-account/useAllBankAccountsQuery.js";
|
|
30
|
+
import { useAllExternalBankAccountsQuery as Mr } from "./lib/external-bank-account/useAllExternalBankAccountsQuery.js";
|
|
31
|
+
import { useAllMerchantCategoryGroupsQuery as Nr } from "./lib/merchant-category-group/useAllMerchantCategoryGroupsQuery.js";
|
|
32
|
+
import { useAllLedgerAccountsQuery as Pr, useLedgerAccountsQuery as Fr } from "./lib/reference-data/useLedgerAccountsQuery.js";
|
|
33
|
+
import { usePaymentTermsQuery as Ir } from "./lib/reference-data/usePaymentTermsQuery.js";
|
|
34
|
+
import { useAllOrganizationRolesQuery as Lr } from "./lib/role/useAllOrganizationRolesQuery.js";
|
|
35
|
+
import { useRolePermissionsQueries as Rr } from "./lib/role/useRolePermissionsQueries.js";
|
|
36
|
+
import { useAllOrganizationUsersQuery as zr } from "./lib/user/useAllOrganizationUsersQuery.js";
|
|
37
|
+
import { useAcceptWidgetDisclosures as Br } from "./lib/disclosures/useAcceptWidgetDisclosures.js";
|
|
38
|
+
import { useDisclosuresQuery as Vr } from "./lib/disclosures/useDisclosuresQuery.js";
|
|
39
|
+
import { OnboardingSuppressionReason as Hr } from "./lib/onboardingSuppressionReason.js";
|
|
40
|
+
import { useOrganizationOnboardingSuppression as Ur } from "./lib/useOrganizationOnboardingSuppression.js";
|
|
41
|
+
export { pr as EmbedApiProvider, Hr as OnboardingSuppressionReason, Er as Scope, je as activateCreditCardMutation, Me as activateDebitCardMutation, tr as applicationStatusInvalidationKey, nr as applicationStatusQueryOptions, fr as attachTransportInterceptors, e as bulkUpdateDepartmentMembers, t as bulkUpdateLocationMembers, n as bulkUpdateRoleMembers, ir as cancelAllClients, ur as cloneEmbeddedClient, Ne as connectExternalBankAccountMutation, Pe as createAchMoneyMovementMutation, Fe as createApplicationMutation, Ie as createBankAccountMutation, Le as createBookTransferMutation, Re as createCheckDepositMutation, rr as createClientSecretInstaller, ze as createDebitCardMutation, r as createDepartment, dr as createEmbeddedClient, i as createLocation, a as createUser, Be as createVelocityControlMutation, o as deactivateDepartment, s as deactivateLocation, Ve as deleteApprovalPoliciesIdMutation, c as deleteCounterpartsId, l as deleteCounterpartsIdBankAccountsId, u as deleteEntitiesIdLogo, He as deleteLedgerAccountsIdMutation, d as deleteMeasureUnitsId, f as deletePayablesId, p as deletePayablesIdFile, m as deleteProductsId, Ue as deleteReceiptsIdMutation, h as deleteReceivablesId, g as deleteTagsId, We as disableUserMutation, _ as downloadBankAccountTransactions, _r as fetchWidgetInit, Dr as getAllPagesNextPageParam, Or as getAllPagesNextPaginationTokenParam, Ge as getAnalyticsPayablesOptions, Ke as getAnalyticsPayablesQueryKey, qe as getAnalyticsReceivablesOptions, v as getApplicationStatus, y as getApprovalPolicies, Je as getApprovalPoliciesOptions, Ye as getApprovalPoliciesQueryKey, b as getApprovalRequests, Xe as getApprovalRequestsOptions, Ze as getApprovalRequestsQueryKey, x as getBankAccountAccess, Qe as getBankAccountAccessQueryKey, $e as getBankAccountApplicationOptions, et as getBankAccountOptions, tt as getBankAccountQueryKey, nt as getBankAccountTransactionsOptions, rt as getBankAccountTransactionsQueryKey, it as getBankAccountTransfersOptions, at as getBankAccountTransfersQueryKey, ot as getBankAccountsQueryKey, S as getCounterparts, st as getCounterpartsIdAddressesOptions, ct as getCounterpartsIdAddressesQueryKey, lt as getCounterpartsIdBankAccountsOptions, ut as getCounterpartsIdBankAccountsQueryKey, dt as getCounterpartsIdOptions, ft as getCounterpartsIdQueryKey, pt as getCounterpartsOptions, mt as getCounterpartsQueryKey, ht as getCreditCardByIdOptions, gt as getCreditCardByIdQueryKey, _t as getCreditCardsOptions, vt as getCreditCardsQueryKey, yt as getDebitCardByIdOptions, bt as getDebitCardByIdQueryKey, xt as getDebitCardCredentialsOptions, St as getDebitCardsOptions, Ct as getDebitCardsQueryKey, C as getDepartment, wt as getDepartmentOptions, Tt as getDepartmentQueryKey, w as getDepositableBankAccounts, Et as getDepositableBankAccountsOptions, Dt as getDocumentsIdNextNumbersOptions, Ot as getDocumentsIdNextNumbersQueryKey, kt as getEntitiesIdSettingsOptions, At as getEntitiesIdSettingsQueryKey, jt as getEntitiesMeOptions, Mt as getEntityUsersMyEntityOptions, Nt as getEntityUsersMyEntityQueryKey, Pt as getEntityUsersOptions, T as getExternalBankAccountAccess, Ft as getExternalBankAccountAccessQueryKey, It as getExternalBankAccountsOptions, Lt as getExternalBankAccountsQueryKey, Rt as getLedgerAccountsQueryKey, E as getLocation, zt as getLocationOptions, Bt as getLocationQueryKey, Vt as getMeasureUnitsOptions, Ht as getMeasureUnitsQueryKey, Ut as getOrganizationOptions, D as getPayables, O as getPayablesId, k as getPayablesIdHistory, Wt as getPayablesIdHistoryOptions, Gt as getPayablesIdHistoryQueryKey, A as getPayablesIdLineItems, Kt as getPayablesIdLineItemsOptions, qt as getPayablesIdLineItemsQueryKey, Jt as getPayablesIdOptions, Yt as getPayablesIdQueryKey, Xt as getPayablesIdSuggestionsOptions, Zt as getPayablesOptions, Qt as getPayablesQueryKey, j as getPaymentRecords, $t as getPaymentRecordsOptions, en as getPaymentRecordsQueryKey, tn as getProductsIdOptions, nn as getProductsIdQueryKey, rn as getProductsOptions, an as getProductsQueryKey, on as getReceiptsIdQueryKey, sn as getReceiptsOptions, cn as getReceiptsQueryKey, M as getReceivables, ln as getReceivablesIdHistoryOptions, un as getReceivablesIdHistoryQueryKey, dn as getReceivablesIdMailsOptions, fn as getReceivablesIdMailsQueryKey, pn as getReceivablesIdOptions, mn as getReceivablesIdPdfLinkOptions, hn as getReceivablesIdPdfLinkQueryKey, gn as getReceivablesIdQueryKey, _n as getReceivablesOptions, vn as getReceivablesQueryKey, yn as getTagsOptions, bn as getTagsQueryKey, xn as getTransactionsIdQueryKey, Sn as getTransactionsOptions, Cn as getTransactionsQueryKey, wn as getTransactionsValidationsOptions, Tn as getTransactionsValidationsQueryKey, N as getUsers, En as getUsersOptions, Dn as getUsersQueryKey, On as getVelocityControlsQueryKey, kn as grantBankAccountAccessMutation, An as grantExternalBankAccountAccessMutation, vr as hasAnyScope, ar as invalidateAllClients, kr as isAllPagesResolving, br as isApiConflictError, xr as isApiForbiddenError, Sr as isApiNotFoundError, Cr as isApiUnprocessableError, jn as linkExternalBankAccountMutation, P as listDepartments, Mn as listDepartmentsOptions, Nn as listDepartmentsQueryKey, F as listLocations, Pn as listLocationsOptions, Fn as listLocationsQueryKey, I as listRoles, In as listRolesQueryKey, L as manageBankAccountAccess, Ln as manageDebitCardAccessMutation, hr as optionalOrganizationHeaders, gr as organizationHeaders, Rn as patchApprovalPoliciesIdMutation, R as patchCounterpartsId, z as patchCounterpartsIdAddressesId, B as patchCounterpartsIdBankAccountsId, V as patchEntitiesIdSettings, zn as patchEntitiesIdSettingsMutation, Bn as patchLedgerAccountsIdMutation, H as patchMeasureUnitsId, U as patchPayablesId, W as patchProductsId, Vn as patchReceiptsIdMutation, G as patchReceivablesId, K as patchTagsId, Hn as postApprovalPoliciesMutation, q as postApprovalRequestsIdApprove, J as postApprovalRequestsIdReject, Y as postCounterparts, X as postCounterpartsIdAddresses, Z as postCounterpartsIdBankAccounts, Q as postCounterpartsIdBankAccountsIdMakeDefault, Un as postLedgerAccountsMutation, $ as postMeasureUnits, ee as postPayables, te as postPayablesIdApprovePaymentOperation, ne as postPayablesIdAttachFile, re as postPayablesIdCancel, ie as postPayablesIdDuplicatesIdConfirm, ae as postPayablesIdDuplicatesIdDismiss, oe as postPayablesIdMarkAsPaid, se as postPayablesIdReject, ce as postPayablesIdReopen, le as postPayablesIdSchedulePayment, ue as postPayablesIdSubmitForApproval, de as postPayablesIdValidate, fe as postPayablesUploadFromFile, pe as postPaymentIntentsIdCancel, me as postProducts, he as postReceivables, ge as postReceivablesIdAccept, _e as postReceivablesIdCancel, ve as postReceivablesIdClone, ye as postReceivablesIdDecline, be as postReceivablesIdIssue, xe as postReceivablesIdMarkAsPaid, Se as postReceivablesIdMarkAsPartiallyPaid, Ce as postReceivablesIdMarkAsUncollectible, we as postReceivablesIdSend, Te as postTags, Ee as putEntitiesIdLogo, De as putPayablesIdLineItems, Wn as putTransactionsValidationsMutation, or as registerQueryClient, sr as removeInactiveFromAllClients, cr as setAllClientsQueriesData, Gn as setDebitCardLockStatusMutation, Kn as submitApplicationMutation, qn as unlinkExternalBankAccountMutation, lr as unregisterQueryClient, Jn as updateApplicationMutation, Yn as updateBankAccountMutation, Xn as updateDebitCardMutation, Oe as updateDepartment, Zn as updateExternalBankAccountMutation, ke as updateLocation, Ae as updateUser, Br as useAcceptWidgetDisclosures, jr as useAllBankAccountsQuery, Mr as useAllExternalBankAccountsQuery, Pr as useAllLedgerAccountsQuery, Nr as useAllMerchantCategoryGroupsQuery, Lr as useAllOrganizationRolesQuery, zr as useAllOrganizationUsersQuery, Ar as useAutoFetchNextPage, yr as useCurrentUserQuery, Vr as useDisclosuresQuery, mr as useEmbedApi, wr as useGetUserDataQuery, Fr as useLedgerAccountsQuery, Ur as useOrganizationOnboardingSuppression, Ir as usePaymentTermsQuery, Rr as useRolePermissionsQueries, Tr as useUpsertUserDataMutation, Qn as validateExternalBankAccountMutation, $n as verifyDebitCardMutation, er as withAuthEpoch };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { getApplicationStatusOptions as e } from "./rest/@tanstack/react-query.gen.js";
|
|
2
|
+
import { withAuthEpoch as t } from "./withAuthEpoch.js";
|
|
3
|
+
import { widgetTokenCacheId as n } from "./widgetTokenCacheId.js";
|
|
4
|
+
//#region ../../libs/tesouro-embedded-components-react/shared/data-access/dist/lib/applicationStatusQueryOptions.js
|
|
5
|
+
var r = 1e4;
|
|
6
|
+
function i({ client: t }) {
|
|
7
|
+
return e({ client: t }).queryKey;
|
|
8
|
+
}
|
|
9
|
+
function a({ client: i, widgetToken: a, authEpoch: o }) {
|
|
10
|
+
let { queryFn: s, queryKey: c } = e({ client: i });
|
|
11
|
+
return {
|
|
12
|
+
...t({
|
|
13
|
+
queryKey: [c[0], { widgetTokenId: n(a) }],
|
|
14
|
+
queryFn: s
|
|
15
|
+
}, o),
|
|
16
|
+
retry: 2,
|
|
17
|
+
retryDelay: 300,
|
|
18
|
+
staleTime: r
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
//#endregion
|
|
22
|
+
export { i as applicationStatusInvalidationKey, a as applicationStatusQueryOptions };
|