@tesouro/embedded-components-react 0.5.226 → 0.5.228
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 +21 -21
- package/dist/index.d.ts +54 -34
- package/dist/index.js +1 -1
- package/dist/lib/ReceivablesWidget.d.ts +54 -34
- package/dist/lib/ReceivablesWidget.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/balances-widget/feature/dist/index3.js +41 -39
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index12.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index2.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index3.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index4.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/feature/dist/index9.js +150 -147
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/data-access/dist/index5.js +46 -51
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/index7.js +130 -128
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index18.js +31 -32
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index19.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index2.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index21.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index22.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index3.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index4.js +36 -37
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/data-access/dist/index2.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/feature/dist/index4.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/data-access/dist/index2.js +6 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/data-access/dist/index3.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/data-access/dist/index4.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/data-access/dist/index5.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index6.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index7.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index8.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/index13.js +154 -150
- package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/data-access/dist/index7.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/cards-widget/data-access/dist/index2.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/cards-widget/data-access/dist/index3.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/index9.js +151 -149
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/data-access/dist/index2.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/data-access/dist/index3.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index15.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index17.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index18.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index19.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index2.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index3.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index4.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index5.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index6.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index8.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index9.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index24.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index27.js +89 -87
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index5.js +133 -130
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index8.js +36 -34
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index10.js +33 -63
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index11.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index12.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index3.js +40 -39
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index12.js +36 -141
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index13.js +26 -16
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index17.js +58 -37
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index18.js +228 -122
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index19.js +300 -147
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index20.js +34 -37
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index21.js +126 -122
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index22.js +150 -58
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index23.js +38 -91
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index24.js +113 -107
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index25.js +98 -231
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index26.js +111 -27
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index27.js +25 -624
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index28.js +631 -39
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index29.js +41 -40
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index30.js +35 -74
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index31.js +73 -115
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index32.js +115 -313
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index33.js +325 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index7.js +15 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index.js +11 -12
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index14.js +42 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index15.js +19 -3
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index16.js +73 -3
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index17.js +3 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index18.js +16 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index19.js +32 -4
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index20.js +304 -11
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index22.js +42 -258
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index23.js +62 -38
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index24.js +485 -61
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index25.js +90 -480
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index27.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index28.js +3 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index29.js +0 -3
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index30.js +100 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index31.js +23 -95
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index32.js +231 -23
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index33.js +3 -236
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index34.js +249 -3
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index35.js +78 -234
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index36.js +53 -87
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index37.js +343 -49
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index4.js +29 -20
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/data-access/dist/index4.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/index9.js +209 -207
- package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index4.js +10 -5
- package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index5.js +10 -5
- package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index6.js +11 -6
- package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index2.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index3.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/settings-widget/profile/data-access/dist/index2.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index12.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index13.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index14.js +30 -28
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index17.js +28 -26
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index18.js +37 -34
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index21.js +28 -26
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index22.js +37 -34
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index17.js +294 -292
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index5.js +58 -58
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/data-access/dist/lib/approvalPoliciesApi.js +47 -48
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index3.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index5.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index7.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +4 -3
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/EmbedApiContext.js +14 -13
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/allPages.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/applicationStatusQueryOptions.js +16 -15
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/bank-account/useAllBankAccountsQuery.js +7 -5
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/debit-card/useAllDebitCardsQuery.js +7 -5
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/disclosures/useDisclosuresQuery.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/external-bank-account/useAllExternalBankAccountsQuery.js +7 -5
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/merchant-category-group/useAllMerchantCategoryGroupsQuery.js +28 -29
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/organizationStatus.js +10 -0
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/reference-data/useLedgerAccountsQuery.js +26 -27
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/reference-data/usePaymentTermsQuery.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js +189 -211
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +43 -59
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/role/useAllOrganizationRolesQuery.js +31 -32
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/role/useRolePermissionsQueries.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useCurrentUserQuery.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useGetUserDataQuery.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useMailboxAddress.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useMyEntityQuery.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/user/useAllOrganizationUsersQuery.js +33 -34
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/withAuthEpoch.js +33 -22
- package/dist/libs/tesouro-embedded-components-react/shared/expense-requirements/data-access/dist/index3.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/RootWidgetProvider.js +43 -32
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/WidgetProvider.js +138 -127
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/deriveOrganizationStatus.js +6 -0
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/useWidgetFetch.js +1 -1
- 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 +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index2.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index3.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index4.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index9.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index6.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/index6.js +60 -58
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index26.js +0 -106
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index38.js +0 -353
package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index5.js
CHANGED
|
@@ -6,58 +6,58 @@ import { diffMemberSelection as e, formatMembersCount as t } from "./index4.js";
|
|
|
6
6
|
import { useEffect as n, useRef as r, useState as i } from "react";
|
|
7
7
|
//#region ../../libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index5.js
|
|
8
8
|
function a(a) {
|
|
9
|
-
let { canRead: o, canWrite: s, directory: c, directoryReady: l, assignedAvatarsByGroupId: u, useListQuery: d, useEditMembers: f, useMutations: p, panelLabels: m, drawerLabels: h, countLabels: g, saveFailedMessage: _, deleteFailedMessage: v } = a, y = d(), b = p(),
|
|
9
|
+
let { canRead: o, canWrite: s, directory: c, directoryReady: l, assignedAvatarsByGroupId: u, useListQuery: d, useEditMembers: f, useMutations: p, panelLabels: m, drawerLabels: h, countLabels: g, saveFailedMessage: _, deleteFailedMessage: v } = a, y = d(), b = p(), x = s && !y.isPlaceholderData, [S, C] = i("closed"), [w, T] = i(), [E, D] = i(""), [O, k] = i(""), [A, j] = i([]), [M, N] = i(), [P, F] = i(), [I, L] = i(), R = f(S === "edit" ? w : void 0), z = (R.data?.members?.data ?? []).map((e) => e.id), B = o ? y.data?.data ?? [] : [], V = l && (S !== "edit" || !!R.data), H = r(void 0);
|
|
10
10
|
n(() => {
|
|
11
|
-
|
|
11
|
+
S === "edit" && w && H.current !== w && R.data && l && (H.current = w, j(z.map((e) => c.idToOption.get(e)).filter((e) => !!e)));
|
|
12
12
|
}, [
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
S,
|
|
14
|
+
w,
|
|
15
|
+
R.data,
|
|
16
16
|
l,
|
|
17
|
-
|
|
17
|
+
z,
|
|
18
18
|
c
|
|
19
19
|
]);
|
|
20
|
-
let
|
|
21
|
-
|
|
22
|
-
},
|
|
23
|
-
|
|
24
|
-
},
|
|
25
|
-
let t =
|
|
26
|
-
|
|
27
|
-
},
|
|
28
|
-
let t =
|
|
29
|
-
if (t &&
|
|
30
|
-
|
|
20
|
+
let U = () => {
|
|
21
|
+
C("closed"), T(void 0), D(""), k(""), j([]), N(void 0), H.current = void 0;
|
|
22
|
+
}, W = () => {
|
|
23
|
+
U(), C("create");
|
|
24
|
+
}, G = (e) => {
|
|
25
|
+
let t = B.find((t) => t.id === e);
|
|
26
|
+
C("edit"), T(e), D(t?.name ?? ""), k(t?.name ?? ""), j([]), N(void 0), H.current = void 0;
|
|
27
|
+
}, K = () => A.map((e) => c.optionToId.get(e)).filter((e) => !!e), q = async () => {
|
|
28
|
+
let t = E.trim();
|
|
29
|
+
if (t && V) {
|
|
30
|
+
N(void 0);
|
|
31
31
|
try {
|
|
32
|
-
if (
|
|
32
|
+
if (S === "create") {
|
|
33
33
|
let e = await b.create(t);
|
|
34
|
-
|
|
35
|
-
let n =
|
|
34
|
+
C("edit"), T(e.id), k(t), H.current = e.id;
|
|
35
|
+
let n = K();
|
|
36
36
|
n.length > 0 && await b.assignMembers(e.id, n);
|
|
37
|
-
} else if (
|
|
38
|
-
t !==
|
|
39
|
-
let n =
|
|
40
|
-
r.length > 0 && await b.assignMembers(
|
|
37
|
+
} else if (S === "edit" && w) {
|
|
38
|
+
t !== O.trim() && await b.rename(w, t);
|
|
39
|
+
let n = z.filter((e) => c.idToOption.has(e)), { toAssign: r, toRemove: i } = e(n, K());
|
|
40
|
+
r.length > 0 && await b.assignMembers(w, r), i.length > 0 && await b.removeMembers(w, i);
|
|
41
41
|
}
|
|
42
|
-
|
|
42
|
+
U();
|
|
43
43
|
} catch {
|
|
44
|
-
|
|
44
|
+
N(_);
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
},
|
|
48
|
-
|
|
49
|
-
},
|
|
50
|
-
|
|
51
|
-
},
|
|
52
|
-
if (
|
|
53
|
-
|
|
47
|
+
}, J = (e) => {
|
|
48
|
+
F(e), L(void 0);
|
|
49
|
+
}, Y = () => {
|
|
50
|
+
F(void 0), L(void 0);
|
|
51
|
+
}, X = async () => {
|
|
52
|
+
if (P) {
|
|
53
|
+
L(void 0);
|
|
54
54
|
try {
|
|
55
|
-
await b.remove(
|
|
55
|
+
await b.remove(P), Y(), w === P && U();
|
|
56
56
|
} catch {
|
|
57
|
-
|
|
57
|
+
L(v);
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
|
-
},
|
|
60
|
+
}, Z = B.map((e) => {
|
|
61
61
|
let n = typeof e.memberCount == "string" ? Number.parseInt(e.memberCount, 10) : e.memberCount ?? 0, r = Number.isNaN(n) ? 0 : n, i = u?.get(e.id), a = i ? Math.max(0, r - i.length) : 0;
|
|
62
62
|
return {
|
|
63
63
|
key: e.id,
|
|
@@ -65,45 +65,45 @@ function a(a) {
|
|
|
65
65
|
membersLabel: t(e.memberCount, g),
|
|
66
66
|
assignedAvatars: i,
|
|
67
67
|
assignedOverflowLabel: a > 0 ? `+${a}` : void 0,
|
|
68
|
-
onEdit:
|
|
69
|
-
onDelete:
|
|
68
|
+
onEdit: x ? () => G(e.id) : void 0,
|
|
69
|
+
onDelete: x ? () => J(e.id) : void 0
|
|
70
70
|
};
|
|
71
|
-
}),
|
|
71
|
+
}), Q = B.find((e) => e.id === P)?.name ?? "";
|
|
72
72
|
return {
|
|
73
73
|
canRead: o,
|
|
74
74
|
panel: {
|
|
75
|
-
rows:
|
|
76
|
-
isLoading: o && (y.isLoading || y.isComplete === !1),
|
|
75
|
+
rows: Z,
|
|
76
|
+
isLoading: o && (y.isLoading || y.isComplete === !1 && !y.isPlaceholderData),
|
|
77
77
|
isError: y.isError,
|
|
78
|
-
onAddClick:
|
|
78
|
+
onAddClick: x ? W : void 0,
|
|
79
79
|
labels: m
|
|
80
80
|
},
|
|
81
81
|
drawer: {
|
|
82
|
-
open:
|
|
83
|
-
isEditMode:
|
|
84
|
-
name:
|
|
85
|
-
onNameChange:
|
|
82
|
+
open: S !== "closed",
|
|
83
|
+
isEditMode: S === "edit",
|
|
84
|
+
name: E,
|
|
85
|
+
onNameChange: D,
|
|
86
86
|
options: c.options,
|
|
87
|
-
selectedOptions:
|
|
88
|
-
onSelectedOptionsChange: (e) =>
|
|
89
|
-
isSaveDisabled: !
|
|
90
|
-
submitErrorMessage:
|
|
87
|
+
selectedOptions: A,
|
|
88
|
+
onSelectedOptionsChange: (e) => j(Array.isArray(e) ? e : [e]),
|
|
89
|
+
isSaveDisabled: !E.trim() || b.isMutating || !V,
|
|
90
|
+
submitErrorMessage: M,
|
|
91
91
|
onOpenChange: (e) => {
|
|
92
|
-
e ||
|
|
92
|
+
e || U();
|
|
93
93
|
},
|
|
94
|
-
onSubmit:
|
|
95
|
-
onDelete:
|
|
94
|
+
onSubmit: q,
|
|
95
|
+
onDelete: S === "edit" && w ? () => J(w) : void 0,
|
|
96
96
|
labels: h
|
|
97
97
|
},
|
|
98
98
|
deleteDialog: {
|
|
99
|
-
open: !!
|
|
100
|
-
subjectName:
|
|
99
|
+
open: !!P,
|
|
100
|
+
subjectName: Q,
|
|
101
101
|
isConfirming: b.isMutating,
|
|
102
|
-
errorMessage:
|
|
102
|
+
errorMessage: I,
|
|
103
103
|
onOpenChange: (e) => {
|
|
104
|
-
e ||
|
|
104
|
+
e || Y();
|
|
105
105
|
},
|
|
106
|
-
onConfirm:
|
|
106
|
+
onConfirm: X
|
|
107
107
|
}
|
|
108
108
|
};
|
|
109
109
|
}
|
|
@@ -4,21 +4,21 @@
|
|
|
4
4
|
"use client";
|
|
5
5
|
import { getApprovalPolicies as e } from "../../../../data-access/dist/lib/rest/sdk.gen.js";
|
|
6
6
|
import { deleteApprovalPoliciesIdMutation as t, getApprovalPoliciesOptions as n, patchApprovalPoliciesIdMutation as r, postApprovalPoliciesMutation as i } from "../../../../data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
7
|
-
import {
|
|
8
|
-
import { invalidateAllClients as
|
|
9
|
-
import { useEmbedApi as
|
|
10
|
-
import { getAllPagesNextPaginationTokenParam as
|
|
7
|
+
import { withAuthEpochInfinite as a } from "../../../../data-access/dist/lib/withAuthEpoch.js";
|
|
8
|
+
import { invalidateAllClients as o, setAllClientsQueriesData as s } from "../../../../data-access/dist/lib/clientRegistry.js";
|
|
9
|
+
import { useEmbedApi as c } from "../../../../data-access/dist/lib/EmbedApiContext.js";
|
|
10
|
+
import { getAllPagesNextPaginationTokenParam as l, isAllPagesResolving as u, useAutoFetchNextPage as d } from "../../../../data-access/dist/lib/allPages.js";
|
|
11
11
|
import "../../../../data-access/dist/index.js";
|
|
12
|
-
import { ApprovalPolicyObjectType as
|
|
13
|
-
import { useMemo as
|
|
14
|
-
import { useInfiniteQuery as
|
|
12
|
+
import { ApprovalPolicyObjectType as f, approvalPoliciesInvalidationKey as p } from "./queryKeys.js";
|
|
13
|
+
import { useMemo as m } from "react";
|
|
14
|
+
import { useInfiniteQuery as h, useMutation as g, useQueryClient as _ } from "@tanstack/react-query";
|
|
15
15
|
//#region ../../libs/tesouro-embedded-components-react/shared/approval-policy/data-access/dist/lib/approvalPoliciesApi.js
|
|
16
|
-
var
|
|
17
|
-
function
|
|
16
|
+
var v = 100;
|
|
17
|
+
function y(e, t, n) {
|
|
18
18
|
let r = (e) => e && n(e);
|
|
19
|
-
e.setQueriesData({ queryKey: t }, r),
|
|
19
|
+
e.setQueriesData({ queryKey: t }, r), s(t, r);
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function b(e, t) {
|
|
22
22
|
return {
|
|
23
23
|
...e,
|
|
24
24
|
pages: e.pages.map((e) => ({
|
|
@@ -27,56 +27,55 @@ function x(e, t) {
|
|
|
27
27
|
}))
|
|
28
28
|
};
|
|
29
29
|
}
|
|
30
|
-
function
|
|
31
|
-
let { client: i, organizationId:
|
|
30
|
+
function x({ objectType: t = f.Payable, enabled: r = !0 } = {}) {
|
|
31
|
+
let { client: i, organizationId: o, widgetToken: s, authEpoch: p, organizationStatus: g } = c(), _ = o, y = !!(_ && s) && r, b = { "x-organization-id": _ ?? "" }, x = { object_type: t }, S = n({
|
|
32
32
|
client: i,
|
|
33
|
-
headers:
|
|
34
|
-
query:
|
|
35
|
-
}),
|
|
36
|
-
|
|
37
|
-
authEpoch:
|
|
38
|
-
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
enabled: b,
|
|
33
|
+
headers: b,
|
|
34
|
+
query: x
|
|
35
|
+
}), C = h({
|
|
36
|
+
...a(S.queryKey, {
|
|
37
|
+
authEpoch: p,
|
|
38
|
+
organizationStatus: g
|
|
39
|
+
}, { suffix: ["all"] }),
|
|
40
|
+
enabled: y,
|
|
42
41
|
initialPageParam: void 0,
|
|
43
42
|
queryFn: async ({ signal: t, pageParam: n }) => {
|
|
44
43
|
let { data: r } = await e({
|
|
45
44
|
client: i,
|
|
46
|
-
headers:
|
|
45
|
+
headers: b,
|
|
47
46
|
query: n ? { pagination_token: n } : {
|
|
48
|
-
...
|
|
49
|
-
limit:
|
|
47
|
+
...x,
|
|
48
|
+
limit: v
|
|
50
49
|
},
|
|
51
50
|
signal: t,
|
|
52
51
|
throwOnError: !0
|
|
53
52
|
});
|
|
54
53
|
return r;
|
|
55
54
|
},
|
|
56
|
-
getNextPageParam:
|
|
55
|
+
getNextPageParam: l
|
|
57
56
|
});
|
|
58
|
-
|
|
59
|
-
let
|
|
57
|
+
d(C, y);
|
|
58
|
+
let w = m(() => C.data ? { data: C.data.pages.flatMap((e) => e.data ?? []) } : void 0, [C.data]);
|
|
60
59
|
return {
|
|
61
|
-
...
|
|
62
|
-
data:
|
|
63
|
-
isResolving:
|
|
60
|
+
...C,
|
|
61
|
+
data: w,
|
|
62
|
+
isResolving: u(C)
|
|
64
63
|
};
|
|
65
64
|
}
|
|
66
|
-
function
|
|
67
|
-
let { client: t, organizationId: n } =
|
|
68
|
-
return
|
|
65
|
+
function S({ objectType: e = f.Payable } = {}) {
|
|
66
|
+
let { client: t, organizationId: n } = c(), r = _();
|
|
67
|
+
return g({
|
|
69
68
|
...i({
|
|
70
69
|
client: t,
|
|
71
70
|
headers: { "x-organization-id": n ?? "" }
|
|
72
71
|
}),
|
|
73
72
|
onSuccess: async (i) => {
|
|
74
|
-
|
|
73
|
+
y(r, p({
|
|
75
74
|
client: t,
|
|
76
75
|
organizationId: n,
|
|
77
76
|
objectType: e
|
|
78
77
|
}), (e) => {
|
|
79
|
-
if (e.pages.some((e) => e.data?.some((e) => e.id === i.id))) return
|
|
78
|
+
if (e.pages.some((e) => e.data?.some((e) => e.id === i.id))) return b(e, (e) => e.map((e) => e.id === i.id ? i : e));
|
|
80
79
|
let t = e.pages.length - 1;
|
|
81
80
|
return t < 0 ? e : {
|
|
82
81
|
...e,
|
|
@@ -85,7 +84,7 @@ function C({ objectType: e = p.Payable } = {}) {
|
|
|
85
84
|
data: [...e.data ?? [], i]
|
|
86
85
|
} : e)
|
|
87
86
|
};
|
|
88
|
-
}), await
|
|
87
|
+
}), await o(p({
|
|
89
88
|
client: t,
|
|
90
89
|
organizationId: n,
|
|
91
90
|
objectType: e
|
|
@@ -93,19 +92,19 @@ function C({ objectType: e = p.Payable } = {}) {
|
|
|
93
92
|
}
|
|
94
93
|
});
|
|
95
94
|
}
|
|
96
|
-
function
|
|
97
|
-
let { client: t, organizationId: n } =
|
|
98
|
-
return
|
|
95
|
+
function C({ objectType: e = f.Payable } = {}) {
|
|
96
|
+
let { client: t, organizationId: n } = c(), i = _();
|
|
97
|
+
return g({
|
|
99
98
|
...r({
|
|
100
99
|
client: t,
|
|
101
100
|
headers: { "x-organization-id": n ?? "" }
|
|
102
101
|
}),
|
|
103
102
|
onSuccess: async (r) => {
|
|
104
|
-
|
|
103
|
+
y(i, p({
|
|
105
104
|
client: t,
|
|
106
105
|
organizationId: n,
|
|
107
106
|
objectType: e
|
|
108
|
-
}), (e) =>
|
|
107
|
+
}), (e) => b(e, (e) => e.map((e) => e.id === r.id ? r : e))), await o(p({
|
|
109
108
|
client: t,
|
|
110
109
|
organizationId: n,
|
|
111
110
|
objectType: e
|
|
@@ -113,19 +112,19 @@ function w({ objectType: e = p.Payable } = {}) {
|
|
|
113
112
|
}
|
|
114
113
|
});
|
|
115
114
|
}
|
|
116
|
-
function
|
|
117
|
-
let { client: n, organizationId: r } =
|
|
118
|
-
return
|
|
115
|
+
function w({ objectType: e = f.Payable } = {}) {
|
|
116
|
+
let { client: n, organizationId: r } = c(), i = _();
|
|
117
|
+
return g({
|
|
119
118
|
...t({
|
|
120
119
|
client: n,
|
|
121
120
|
headers: { "x-organization-id": r ?? "" }
|
|
122
121
|
}),
|
|
123
122
|
onSuccess: async (t, a) => {
|
|
124
|
-
|
|
123
|
+
y(i, p({
|
|
125
124
|
client: n,
|
|
126
125
|
organizationId: r,
|
|
127
126
|
objectType: e
|
|
128
|
-
}), (e) =>
|
|
127
|
+
}), (e) => b(e, (e) => e.filter((e) => e.id !== a.path.approval_policy_id))), await o(p({
|
|
129
128
|
client: n,
|
|
130
129
|
organizationId: r,
|
|
131
130
|
objectType: e
|
|
@@ -134,4 +133,4 @@ function T({ objectType: e = p.Payable } = {}) {
|
|
|
134
133
|
});
|
|
135
134
|
}
|
|
136
135
|
//#endregion
|
|
137
|
-
export {
|
|
136
|
+
export { w as useDeleteApprovalPoliciesIdMutation, x as useGetApprovalPoliciesQuery, C as usePatchApprovalPoliciesIdMutation, S as usePostApprovalPoliciesMutation };
|
|
@@ -14,7 +14,7 @@ import { useMemo as d } from "react";
|
|
|
14
14
|
import { useMutation as f, useQuery as p } from "@tanstack/react-query";
|
|
15
15
|
//#region ../../libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index3.js
|
|
16
16
|
function m({ enabled: e, ...t } = {}) {
|
|
17
|
-
let { client: n, organizationId: r, widgetToken: o, authEpoch: l,
|
|
17
|
+
let { client: n, organizationId: r, widgetToken: o, authEpoch: l, organizationStatus: u } = s(), d = !!(r && o) && (e === !0 || e === void 0), f = i({
|
|
18
18
|
query: t,
|
|
19
19
|
client: n,
|
|
20
20
|
headers: c(r)
|
|
@@ -22,13 +22,13 @@ function m({ enabled: e, ...t } = {}) {
|
|
|
22
22
|
return p({
|
|
23
23
|
...a(f, {
|
|
24
24
|
authEpoch: l,
|
|
25
|
-
|
|
25
|
+
organizationStatus: u
|
|
26
26
|
}, { carryWithinOrg: !0 }),
|
|
27
27
|
enabled: d
|
|
28
28
|
});
|
|
29
29
|
}
|
|
30
30
|
function h(e) {
|
|
31
|
-
let { client: t, organizationId: n, widgetToken: i, authEpoch: o,
|
|
31
|
+
let { client: t, organizationId: n, widgetToken: i, authEpoch: o, organizationStatus: l } = s(), u = !!(n && i && e), d = r({
|
|
32
32
|
client: t,
|
|
33
33
|
headers: c(n),
|
|
34
34
|
path: { counterpart_id: e ?? "" }
|
|
@@ -36,7 +36,7 @@ function h(e) {
|
|
|
36
36
|
return p({
|
|
37
37
|
...a(d, {
|
|
38
38
|
authEpoch: o,
|
|
39
|
-
|
|
39
|
+
organizationStatus: l
|
|
40
40
|
}),
|
|
41
41
|
enabled: u
|
|
42
42
|
});
|
|
@@ -13,7 +13,7 @@ import { counterpartBankAccountsInvalidationKey as l, counterpartInvalidationKey
|
|
|
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
15
|
function p(e, { enabled: t = !0 } = {}) {
|
|
16
|
-
let { client: n, organizationId: r, widgetToken: o, authEpoch: l,
|
|
16
|
+
let { client: n, organizationId: r, widgetToken: o, authEpoch: l, organizationStatus: u } = s(), d = !!(t && r && o && e), p = i({
|
|
17
17
|
client: n,
|
|
18
18
|
headers: c(r),
|
|
19
19
|
path: { counterpart_id: e ?? "" }
|
|
@@ -21,7 +21,7 @@ function p(e, { enabled: t = !0 } = {}) {
|
|
|
21
21
|
return f({
|
|
22
22
|
...a(p, {
|
|
23
23
|
authEpoch: l,
|
|
24
|
-
|
|
24
|
+
organizationStatus: u
|
|
25
25
|
}),
|
|
26
26
|
enabled: d
|
|
27
27
|
});
|
|
@@ -13,7 +13,7 @@ import { counterpartAddressesInvalidationKey as s, counterpartInvalidationKey as
|
|
|
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: t, organizationId: i, widgetToken: s, authEpoch: c,
|
|
16
|
+
let { client: t, organizationId: i, widgetToken: s, authEpoch: c, organizationStatus: l } = a(), u = !!(i && s && e), f = n({
|
|
17
17
|
client: t,
|
|
18
18
|
headers: o(i),
|
|
19
19
|
path: { counterpart_id: e ?? "" }
|
|
@@ -21,13 +21,13 @@ function f(e) {
|
|
|
21
21
|
return d({
|
|
22
22
|
...r(f, {
|
|
23
23
|
authEpoch: c,
|
|
24
|
-
|
|
24
|
+
organizationStatus: l
|
|
25
25
|
}),
|
|
26
26
|
enabled: u
|
|
27
27
|
});
|
|
28
28
|
}
|
|
29
29
|
function p({ counterpartIds: e, enabled: t }) {
|
|
30
|
-
let { client: i, organizationId: s, widgetToken: c, authEpoch: l,
|
|
30
|
+
let { client: i, organizationId: s, widgetToken: c, authEpoch: l, organizationStatus: d } = a(), f = !!(s && c) && e.length > 0 && (t === !0 || t === void 0);
|
|
31
31
|
return u({ queries: e.map((e) => ({
|
|
32
32
|
...r(n({
|
|
33
33
|
client: i,
|
|
@@ -35,7 +35,7 @@ function p({ counterpartIds: e, enabled: t }) {
|
|
|
35
35
|
path: { counterpart_id: e }
|
|
36
36
|
}), {
|
|
37
37
|
authEpoch: l,
|
|
38
|
-
|
|
38
|
+
organizationStatus: d
|
|
39
39
|
}),
|
|
40
40
|
enabled: f && !!e
|
|
41
41
|
})) });
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import "./lib/finopsApiVersion.js";
|
|
2
2
|
import "./lib/rest/client.gen.js";
|
|
3
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, deleteFilesId as d, deleteMeasureUnitsId as f, deletePayablesId as p, deletePayablesIdFile as m, deleteProductsId as h, deleteReceivablesId as g, downloadBankAccountTransactions as _, getApplicationStatus as v, getApprovalPolicies as y, getApprovalRequests as b, getBankAccountAccess as x, getBankAccountStatement as S, getCounterparts as C, getDepartment as w, getDepositableBankAccounts as T, getExternalBankAccountAccess as E, getLocation as D, getPayables as O, getPayablesId as k, getPayablesIdHistory as A, getPayablesIdLineItems as j, getPaymentRecords as M, getProducts as N, getReceipts as P, getReceivables as F, getUsers as I, listDepartments as L, listLocations as R, listRoles as z, manageBankAccountAccess as B, manageDebitCardAccess as V, patchCounterpartsId as H, patchCounterpartsIdAddressesId as U, patchCounterpartsIdBankAccountsId as W, patchEntitiesIdSettings as G, patchMeasureUnitsId as K, patchPayablesId as q, patchProductsId as J, patchReceivablesId as Y, patchRecurrencesId as X, patchTransactionsId as Z, postApprovalRequestsIdApprove as Q, postApprovalRequestsIdReject as $, postBankDetails as ee, postCounterparts as te, postCounterpartsIdAddresses as ne, postCounterpartsIdBankAccounts as re, postCounterpartsIdBankAccountsIdMakeDefault as ie, postFiles as ae, postMeasureUnits as oe, postOverdueReminders as se, postPayables as ce, postPayablesIdApprovePaymentOperation as le, postPayablesIdAttachFile as ue, postPayablesIdCancel as de, postPayablesIdDuplicatesIdConfirm as fe, postPayablesIdDuplicatesIdDismiss as pe, postPayablesIdMarkAsPaid as me, postPayablesIdReject as he, postPayablesIdReopen as ge, postPayablesIdSchedulePayment as _e, postPayablesIdSubmitForApproval as ve, postPayablesIdValidate as ye, postPayablesUploadFromFile as be, postPaymentIntentsIdCancel as xe, postPaymentReminders as Se, postProducts as Ce, postReceivables as we, postReceivablesIdAccept as Te, postReceivablesIdCancel as Ee, postReceivablesIdClone as De, postReceivablesIdDecline as Oe, postReceivablesIdIssue as ke, postReceivablesIdMarkAsPaid as Ae, postReceivablesIdMarkAsPartiallyPaid as je, postReceivablesIdMarkAsUncollectible as Me, postReceivablesIdSend as Ne, postRecurrences as Pe, postTransactionsIdApprove as Fe, postTransactionsIdReject as Ie, postTransactionsIdReopen as Le, postTransactionsIdSubmit as Re, putEntitiesIdLogo as ze, putPayablesIdLineItems as Be, updateDepartment as Ve, updateLocation as He, updateUser as Ue } from "./lib/rest/sdk.gen.js";
|
|
4
|
-
import { activateCreditCardMutation as We, activateDebitCardMutation as Ge, connectExternalBankAccountMutation as Ke, createAchMoneyMovementMutation as qe, createApplicationMutation as Je, createBankAccountMutation as Ye, createBookTransferMutation as Xe, createCheckDepositMutation as Ze, createDebitCardMutation as Qe, createVelocityControlMutation as $e, deleteApprovalPoliciesIdMutation as et, deleteBankAccountApplicationMutation as tt, deleteLedgerAccountsIdMutation as nt, deleteReceiptsIdMutation as rt, disableUserMutation as it, getAnalyticsPayablesOptions as at, getAnalyticsPayablesQueryKey as ot, getAnalyticsReceiptsOptions as st, getAnalyticsReceiptsQueryKey as ct, getAnalyticsReceivablesOptions as lt, getAnalyticsReceivablesQueryKey as ut, getAnalyticsTransactionsOptions as dt, getAnalyticsTransactionsQueryKey as ft, getApprovalPoliciesOptions as pt, getApprovalPoliciesQueryKey as mt, getApprovalRequestsOptions as ht, getApprovalRequestsQueryKey as gt, getBankAccountAccessQueryKey as _t, getBankAccountApplicationOptions as vt, getBankAccountOptions as yt, getBankAccountQueryKey as bt, getBankAccountStatementsOptions as xt, getBankAccountTransactionsOptions as St, getBankAccountTransactionsQueryKey as Ct, getBankAccountTransfersOptions as wt, getBankAccountTransfersQueryKey as Tt, getBankAccountsQueryKey as Et, getBankDetailsOptions as Dt, getBankDetailsQueryKey as Ot, getCounterpartsIdAddressesOptions as kt, getCounterpartsIdAddressesQueryKey as At, getCounterpartsIdBankAccountsOptions as jt, getCounterpartsIdBankAccountsQueryKey as Mt, getCounterpartsIdOptions as Nt, getCounterpartsIdQueryKey as Pt, getCounterpartsOptions as Ft, getCounterpartsQueryKey as It, getCreditCardByIdOptions as Lt, getCreditCardByIdQueryKey as Rt, getCreditCardsOptions as zt, getCreditCardsQueryKey as Bt, getDebitCardByIdOptions as Vt, getDebitCardByIdQueryKey as Ht, getDebitCardCredentialsOptions as Ut, getDebitCardsOptions as Wt, getDebitCardsQueryKey as Gt, getDepartmentOptions as Kt, getDepartmentQueryKey as qt, getDepositableBankAccountsOptions as Jt, getDocumentsIdNextNumbersOptions as Yt, getDocumentsIdNextNumbersQueryKey as Xt, getEntitiesIdSettingsOptions as Zt, getEntitiesIdSettingsQueryKey as Qt, getEntityUsersMyEntityOptions as $t, getEntityUsersOptions as en, getExternalBankAccountAccessQueryKey as tn, getExternalBankAccountsOptions as nn, getExternalBankAccountsQueryKey as rn, getFilesQueryKey as an, getLedgerAccountsQueryKey as on, getLocationOptions as sn, getLocationQueryKey as cn, getMeasureUnitsOptions as ln, getMeasureUnitsQueryKey as un, getOrganizationOptions as dn, getOverdueRemindersOptions as fn, getOverdueRemindersQueryKey as pn, getPayablesIdHistoryOptions as mn, getPayablesIdHistoryQueryKey as hn, getPayablesIdLineItemsOptions as gn, getPayablesIdLineItemsQueryKey as _n, getPayablesIdOptions as vn, getPayablesIdQueryKey as yn, getPayablesIdSuggestionsOptions as bn, getPayablesOptions as xn, getPayablesQueryKey as Sn, getPaymentRecordsOptions as Cn, getPaymentRecordsQueryKey as wn, getPaymentRemindersOptions as Tn, getPaymentRemindersQueryKey as En, getProductsIdOptions as Dn, getProductsIdQueryKey as On, getProductsOptions as kn, getProductsQueryKey as An, getReceiptsIdQueryKey as jn, getReceiptsOptions as Mn, getReceiptsQueryKey as Nn,
|
|
5
|
-
import {
|
|
4
|
+
import { activateCreditCardMutation as We, activateDebitCardMutation as Ge, connectExternalBankAccountMutation as Ke, createAchMoneyMovementMutation as qe, createApplicationMutation as Je, createBankAccountMutation as Ye, createBookTransferMutation as Xe, createCheckDepositMutation as Ze, createDebitCardMutation as Qe, createVelocityControlMutation as $e, deleteApprovalPoliciesIdMutation as et, deleteBankAccountApplicationMutation as tt, deleteLedgerAccountsIdMutation as nt, deleteReceiptsIdMutation as rt, disableUserMutation as it, getAnalyticsPayablesOptions as at, getAnalyticsPayablesQueryKey as ot, getAnalyticsReceiptsOptions as st, getAnalyticsReceiptsQueryKey as ct, getAnalyticsReceivablesOptions as lt, getAnalyticsReceivablesQueryKey as ut, getAnalyticsTransactionsOptions as dt, getAnalyticsTransactionsQueryKey as ft, getApprovalPoliciesOptions as pt, getApprovalPoliciesQueryKey as mt, getApprovalRequestsOptions as ht, getApprovalRequestsQueryKey as gt, getBankAccountAccessQueryKey as _t, getBankAccountApplicationOptions as vt, getBankAccountOptions as yt, getBankAccountQueryKey as bt, getBankAccountStatementsOptions as xt, getBankAccountTransactionsOptions as St, getBankAccountTransactionsQueryKey as Ct, getBankAccountTransfersOptions as wt, getBankAccountTransfersQueryKey as Tt, getBankAccountsQueryKey as Et, getBankDetailsOptions as Dt, getBankDetailsQueryKey as Ot, getCounterpartsIdAddressesOptions as kt, getCounterpartsIdAddressesQueryKey as At, getCounterpartsIdBankAccountsOptions as jt, getCounterpartsIdBankAccountsQueryKey as Mt, getCounterpartsIdOptions as Nt, getCounterpartsIdQueryKey as Pt, getCounterpartsOptions as Ft, getCounterpartsQueryKey as It, getCreditCardByIdOptions as Lt, getCreditCardByIdQueryKey as Rt, getCreditCardsOptions as zt, getCreditCardsQueryKey as Bt, getDebitCardByIdOptions as Vt, getDebitCardByIdQueryKey as Ht, getDebitCardCredentialsOptions as Ut, getDebitCardsOptions as Wt, getDebitCardsQueryKey as Gt, getDepartmentOptions as Kt, getDepartmentQueryKey as qt, getDepositableBankAccountsOptions as Jt, getDocumentsIdNextNumbersOptions as Yt, getDocumentsIdNextNumbersQueryKey as Xt, getEntitiesIdSettingsOptions as Zt, getEntitiesIdSettingsQueryKey as Qt, getEntityUsersMyEntityOptions as $t, getEntityUsersOptions as en, getExternalBankAccountAccessQueryKey as tn, getExternalBankAccountsOptions as nn, getExternalBankAccountsQueryKey as rn, getFilesQueryKey as an, getLedgerAccountsQueryKey as on, getLocationOptions as sn, getLocationQueryKey as cn, getMeasureUnitsOptions as ln, getMeasureUnitsQueryKey as un, getOrganizationOptions as dn, getOverdueRemindersOptions as fn, getOverdueRemindersQueryKey as pn, getPayablesIdHistoryOptions as mn, getPayablesIdHistoryQueryKey as hn, getPayablesIdLineItemsOptions as gn, getPayablesIdLineItemsQueryKey as _n, getPayablesIdOptions as vn, getPayablesIdQueryKey as yn, getPayablesIdSuggestionsOptions as bn, getPayablesOptions as xn, getPayablesQueryKey as Sn, getPaymentRecordsOptions as Cn, getPaymentRecordsQueryKey as wn, getPaymentRemindersOptions as Tn, getPaymentRemindersQueryKey as En, getProductsIdOptions as Dn, getProductsIdQueryKey as On, getProductsOptions as kn, getProductsQueryKey as An, getReceiptsIdQueryKey as jn, getReceiptsOptions as Mn, getReceiptsQueryKey as Nn, getReceivablesIdHistoryQueryKey as Pn, getReceivablesIdMailsQueryKey as Fn, getReceivablesIdOptions as In, getReceivablesIdPdfLinkOptions as Ln, getReceivablesIdPdfLinkQueryKey as Rn, getReceivablesIdQueryKey as zn, getReceivablesOptions as Bn, getReceivablesQueryKey as Vn, getReceivablesRequiredFieldsOptions as Hn, getRecurrencesIdOptions as Un, getRecurrencesIdQueryKey as Wn, getRecurrencesQueryKey as Gn, getTransactionsIdExpenseHistoryOptions as Kn, getTransactionsIdExpenseHistoryQueryKey as qn, getTransactionsIdOptions as Jn, getTransactionsIdQueryKey as Yn, getTransactionsOptions as Xn, getTransactionsQueryKey as Zn, getTransactionsValidationsOptions as Qn, getTransactionsValidationsQueryKey as $n, getUsersOptions as er, getUsersQueryKey as tr, getVelocityControlsQueryKey as nr, grantBankAccountAccessMutation as rr, grantExternalBankAccountAccessMutation as ir, linkExternalBankAccountMutation as ar, listDepartmentsOptions as or, listDepartmentsQueryKey as sr, listLocationsOptions as cr, listLocationsQueryKey as lr, listRolesQueryKey as ur, manageDebitCardAccessMutation as dr, patchApprovalPoliciesIdMutation as fr, patchLedgerAccountsIdMutation as pr, patchReceiptsIdMutation as mr, postApprovalPoliciesMutation as hr, postLedgerAccountsMutation as gr, postReceiptsUploadFromFileMutation as _r, putTransactionsValidationsMutation as vr, setDebitCardLockStatusMutation as yr, submitApplicationMutation as br, unlinkExternalBankAccountMutation as xr, updateApplicationMutation as Sr, updateBankAccountMutation as Cr, updateDebitCardMutation as wr, updateExternalBankAccountMutation as Tr, validateExternalBankAccountMutation as Er, verifyDebitCardMutation as Dr } from "./lib/rest/@tanstack/react-query.gen.js";
|
|
5
|
+
import { OrganizationStatus as Or, isOrganizationOnItsWay as kr } from "./lib/organizationStatus.js";
|
|
6
|
+
import { withAuthEpoch as Ar, withAuthEpochInfinite as jr } from "./lib/withAuthEpoch.js";
|
|
6
7
|
import { applicationStatusInvalidationKey as Mr, applicationStatusQueryOptions as Nr } from "./lib/applicationStatusQueryOptions.js";
|
|
7
8
|
import { createClientSecretInstaller as Pr } from "./lib/scopedClientSecret.js";
|
|
8
9
|
import { cancelAllClients as Fr, invalidateAllClients as Ir, registerQueryClient as Lr, removeInactiveFromAllClients as Rr, setAllClientsQueriesData as zr, unregisterQueryClient as Br } from "./lib/clientRegistry.js";
|
|
@@ -43,4 +44,4 @@ import { useDisclosuresQuery as wi } from "./lib/disclosures/useDisclosuresQuery
|
|
|
43
44
|
import { OnboardingSuppressionReason as Ti } from "./lib/onboardingSuppressionReason.js";
|
|
44
45
|
import { useOrganizationOnboardingSuppression as Ei } from "./lib/useOrganizationOnboardingSuppression.js";
|
|
45
46
|
import { useOrganizationApplicationStatus as Di } from "./lib/useOrganizationApplicationStatus.js";
|
|
46
|
-
export { Wr as EmbedApiProvider, Ti as OnboardingSuppressionReason, oi as Scope, We as activateCreditCardMutation, Ge as activateDebitCardMutation, Mr as applicationStatusInvalidationKey, Nr as applicationStatusQueryOptions, Ur as attachTransportInterceptors,
|
|
47
|
+
export { Wr as EmbedApiProvider, Ti as OnboardingSuppressionReason, Or as OrganizationStatus, oi as Scope, We as activateCreditCardMutation, Ge as activateDebitCardMutation, Mr as applicationStatusInvalidationKey, Nr as applicationStatusQueryOptions, Ur as attachTransportInterceptors, e as bulkUpdateDepartmentMembers, t as bulkUpdateLocationMembers, n as bulkUpdateRoleMembers, Fr as cancelAllClients, Vr as cloneEmbeddedClient, Ke as connectExternalBankAccountMutation, qe as createAchMoneyMovementMutation, Je as createApplicationMutation, Ye as createBankAccountMutation, Xe as createBookTransferMutation, Ze as createCheckDepositMutation, Pr as createClientSecretInstaller, Qe as createDebitCardMutation, r as createDepartment, Hr as createEmbeddedClient, i as createLocation, a as createUser, $e as createVelocityControlMutation, o as deactivateDepartment, s as deactivateLocation, et as deleteApprovalPoliciesIdMutation, tt as deleteBankAccountApplicationMutation, c as deleteCounterpartsId, l as deleteCounterpartsIdBankAccountsId, u as deleteEntitiesIdLogo, d as deleteFilesId, nt as deleteLedgerAccountsIdMutation, f as deleteMeasureUnitsId, p as deletePayablesId, m as deletePayablesIdFile, h as deleteProductsId, rt as deleteReceiptsIdMutation, g as deleteReceivablesId, it as disableUserMutation, _ as downloadBankAccountTransactions, Jr as fetchWidgetInit, ci as getAllPagesNextPageParam, li as getAllPagesNextPaginationTokenParam, at as getAnalyticsPayablesOptions, ot as getAnalyticsPayablesQueryKey, st as getAnalyticsReceiptsOptions, ct as getAnalyticsReceiptsQueryKey, lt as getAnalyticsReceivablesOptions, ut as getAnalyticsReceivablesQueryKey, dt as getAnalyticsTransactionsOptions, ft as getAnalyticsTransactionsQueryKey, v as getApplicationStatus, y as getApprovalPolicies, pt as getApprovalPoliciesOptions, mt as getApprovalPoliciesQueryKey, b as getApprovalRequests, ht as getApprovalRequestsOptions, gt as getApprovalRequestsQueryKey, x as getBankAccountAccess, _t as getBankAccountAccessQueryKey, vt as getBankAccountApplicationOptions, yt as getBankAccountOptions, bt as getBankAccountQueryKey, S as getBankAccountStatement, xt as getBankAccountStatementsOptions, St as getBankAccountTransactionsOptions, Ct as getBankAccountTransactionsQueryKey, wt as getBankAccountTransfersOptions, Tt as getBankAccountTransfersQueryKey, Et as getBankAccountsQueryKey, Dt as getBankDetailsOptions, Ot as getBankDetailsQueryKey, C as getCounterparts, kt as getCounterpartsIdAddressesOptions, At as getCounterpartsIdAddressesQueryKey, jt as getCounterpartsIdBankAccountsOptions, Mt as getCounterpartsIdBankAccountsQueryKey, Nt as getCounterpartsIdOptions, Pt as getCounterpartsIdQueryKey, Ft as getCounterpartsOptions, It as getCounterpartsQueryKey, Lt as getCreditCardByIdOptions, Rt as getCreditCardByIdQueryKey, zt as getCreditCardsOptions, Bt as getCreditCardsQueryKey, Vt as getDebitCardByIdOptions, Ht as getDebitCardByIdQueryKey, Ut as getDebitCardCredentialsOptions, Wt as getDebitCardsOptions, Gt as getDebitCardsQueryKey, w as getDepartment, Kt as getDepartmentOptions, qt as getDepartmentQueryKey, T as getDepositableBankAccounts, Jt as getDepositableBankAccountsOptions, Yt as getDocumentsIdNextNumbersOptions, Xt as getDocumentsIdNextNumbersQueryKey, Zt as getEntitiesIdSettingsOptions, Qt as getEntitiesIdSettingsQueryKey, $t as getEntityUsersMyEntityOptions, en as getEntityUsersOptions, E as getExternalBankAccountAccess, tn as getExternalBankAccountAccessQueryKey, nn as getExternalBankAccountsOptions, rn as getExternalBankAccountsQueryKey, an as getFilesQueryKey, on as getLedgerAccountsQueryKey, D as getLocation, sn as getLocationOptions, cn as getLocationQueryKey, ln as getMeasureUnitsOptions, un as getMeasureUnitsQueryKey, dn as getOrganizationOptions, fn as getOverdueRemindersOptions, pn as getOverdueRemindersQueryKey, O as getPayables, k as getPayablesId, A as getPayablesIdHistory, mn as getPayablesIdHistoryOptions, hn as getPayablesIdHistoryQueryKey, j as getPayablesIdLineItems, gn as getPayablesIdLineItemsOptions, _n as getPayablesIdLineItemsQueryKey, vn as getPayablesIdOptions, yn as getPayablesIdQueryKey, bn as getPayablesIdSuggestionsOptions, xn as getPayablesOptions, Sn as getPayablesQueryKey, M as getPaymentRecords, Cn as getPaymentRecordsOptions, wn as getPaymentRecordsQueryKey, Tn as getPaymentRemindersOptions, En as getPaymentRemindersQueryKey, N as getProducts, Dn as getProductsIdOptions, On as getProductsIdQueryKey, kn as getProductsOptions, An as getProductsQueryKey, P as getReceipts, jn as getReceiptsIdQueryKey, Mn as getReceiptsOptions, Nn as getReceiptsQueryKey, F as getReceivables, Pn as getReceivablesIdHistoryQueryKey, Fn as getReceivablesIdMailsQueryKey, In as getReceivablesIdOptions, Ln as getReceivablesIdPdfLinkOptions, Rn as getReceivablesIdPdfLinkQueryKey, zn as getReceivablesIdQueryKey, Bn as getReceivablesOptions, Vn as getReceivablesQueryKey, Hn as getReceivablesRequiredFieldsOptions, Un as getRecurrencesIdOptions, Wn as getRecurrencesIdQueryKey, Gn as getRecurrencesQueryKey, Kn as getTransactionsIdExpenseHistoryOptions, qn as getTransactionsIdExpenseHistoryQueryKey, Jn as getTransactionsIdOptions, Yn as getTransactionsIdQueryKey, Xn as getTransactionsOptions, Zn as getTransactionsQueryKey, Qn as getTransactionsValidationsOptions, $n as getTransactionsValidationsQueryKey, I as getUsers, er as getUsersOptions, tr as getUsersQueryKey, nr as getVelocityControlsQueryKey, rr as grantBankAccountAccessMutation, ir as grantExternalBankAccountAccessMutation, Yr as hasAnyScope, Ir as invalidateAllClients, ui as isAllPagesResolving, ei as isApiConflictError, ti as isApiForbiddenError, ni as isApiNotFoundError, ri as isApiUnprocessableError, kr as isOrganizationOnItsWay, si as isScope, ar as linkExternalBankAccountMutation, L as listDepartments, or as listDepartmentsOptions, sr as listDepartmentsQueryKey, R as listLocations, cr as listLocationsOptions, lr as listLocationsQueryKey, z as listRoles, ur as listRolesQueryKey, B as manageBankAccountAccess, V as manageDebitCardAccess, dr as manageDebitCardAccessMutation, Xr as myEntityInvalidationKey, Kr as optionalOrganizationHeaders, qr as organizationHeaders, fr as patchApprovalPoliciesIdMutation, H as patchCounterpartsId, U as patchCounterpartsIdAddressesId, W as patchCounterpartsIdBankAccountsId, G as patchEntitiesIdSettings, pr as patchLedgerAccountsIdMutation, K as patchMeasureUnitsId, q as patchPayablesId, J as patchProductsId, mr as patchReceiptsIdMutation, Y as patchReceivablesId, X as patchRecurrencesId, Z as patchTransactionsId, Si as personDisclosure, hr as postApprovalPoliciesMutation, Q as postApprovalRequestsIdApprove, $ as postApprovalRequestsIdReject, ee as postBankDetails, te as postCounterparts, ne as postCounterpartsIdAddresses, re as postCounterpartsIdBankAccounts, ie as postCounterpartsIdBankAccountsIdMakeDefault, ae as postFiles, gr as postLedgerAccountsMutation, oe as postMeasureUnits, se as postOverdueReminders, ce as postPayables, le as postPayablesIdApprovePaymentOperation, ue as postPayablesIdAttachFile, de as postPayablesIdCancel, fe as postPayablesIdDuplicatesIdConfirm, pe as postPayablesIdDuplicatesIdDismiss, me as postPayablesIdMarkAsPaid, he as postPayablesIdReject, ge as postPayablesIdReopen, _e as postPayablesIdSchedulePayment, ve as postPayablesIdSubmitForApproval, ye as postPayablesIdValidate, be as postPayablesUploadFromFile, xe as postPaymentIntentsIdCancel, Se as postPaymentReminders, Ce as postProducts, _r as postReceiptsUploadFromFileMutation, we as postReceivables, Te as postReceivablesIdAccept, Ee as postReceivablesIdCancel, De as postReceivablesIdClone, Oe as postReceivablesIdDecline, ke as postReceivablesIdIssue, Ae as postReceivablesIdMarkAsPaid, je as postReceivablesIdMarkAsPartiallyPaid, Me as postReceivablesIdMarkAsUncollectible, Ne as postReceivablesIdSend, Pe as postRecurrences, Fe as postTransactionsIdApprove, Ie as postTransactionsIdReject, Le as postTransactionsIdReopen, Re as postTransactionsIdSubmit, ze as putEntitiesIdLogo, Be as putPayablesIdLineItems, vr as putTransactionsValidationsMutation, Lr as registerQueryClient, Rr as removeInactiveFromAllClients, zr as setAllClientsQueriesData, yr as setDebitCardLockStatusMutation, br as submitApplicationMutation, xr as unlinkExternalBankAccountMutation, Br as unregisterQueryClient, Sr as updateApplicationMutation, Cr as updateBankAccountMutation, wr as updateDebitCardMutation, Ve as updateDepartment, Tr as updateExternalBankAccountMutation, He as updateLocation, Ue as updateUser, Ci as useAcceptWidgetDisclosures, fi as useAllBankAccountsQuery, pi as useAllDebitCardsQuery, mi as useAllExternalBankAccountsQuery, gi as useAllLedgerAccountsQuery, hi as useAllMerchantCategoryGroupsQuery, yi as useAllOrganizationRolesQuery, xi as useAllOrganizationUsersQuery, di as useAutoFetchNextPage, Zr as useCurrentUserQuery, wi as useDisclosuresQuery, Gr as useEmbedApi, ii as useGetUserDataQuery, _i as useLedgerAccountsQuery, $r as useMailboxAddress, Qr as useMyEntityQuery, Di as useOrganizationApplicationStatus, Ei as useOrganizationOnboardingSuppression, vi as usePaymentTermsQuery, bi as useRolePermissionsQueries, ai as useUpsertUserDataMutation, Er as validateExternalBankAccountMutation, Dr as verifyDebitCardMutation, Ar as withAuthEpoch, jr as withAuthEpochInfinite };
|
package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/EmbedApiContext.js
CHANGED
|
@@ -3,37 +3,38 @@
|
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
5
|
import { client as e } from "./rest/client.gen.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
6
|
+
import { OrganizationStatus as t } from "./organizationStatus.js";
|
|
7
|
+
import { createContext as n, useContext as r, useMemo as i } from "react";
|
|
8
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
8
9
|
//#region ../../libs/tesouro-embedded-components-react/shared/data-access/dist/lib/EmbedApiContext.js
|
|
9
|
-
var
|
|
10
|
+
var o = n({
|
|
10
11
|
client: e,
|
|
11
12
|
authEpoch: 0,
|
|
12
|
-
|
|
13
|
+
organizationStatus: t.None
|
|
13
14
|
});
|
|
14
|
-
function
|
|
15
|
-
let u =
|
|
15
|
+
function s({ children: e, client: t, widgetToken: n, organizationId: r, installClientSecret: s, authEpoch: c, organizationStatus: l }) {
|
|
16
|
+
let u = i(() => ({
|
|
16
17
|
client: t,
|
|
17
|
-
organizationId:
|
|
18
|
+
organizationId: r,
|
|
18
19
|
widgetToken: n,
|
|
19
20
|
installClientSecret: s,
|
|
20
21
|
authEpoch: c,
|
|
21
|
-
|
|
22
|
+
organizationStatus: l
|
|
22
23
|
}), [
|
|
23
24
|
t,
|
|
24
|
-
|
|
25
|
+
r,
|
|
25
26
|
n,
|
|
26
27
|
s,
|
|
27
28
|
c,
|
|
28
29
|
l
|
|
29
30
|
]);
|
|
30
|
-
return /* @__PURE__ */
|
|
31
|
+
return /* @__PURE__ */ a(o.Provider, {
|
|
31
32
|
value: u,
|
|
32
33
|
children: e
|
|
33
34
|
});
|
|
34
35
|
}
|
|
35
|
-
function
|
|
36
|
-
return
|
|
36
|
+
function c() {
|
|
37
|
+
return r(o);
|
|
37
38
|
}
|
|
38
39
|
//#endregion
|
|
39
|
-
export {
|
|
40
|
+
export { s as EmbedApiProvider, c as useEmbedApi };
|
|
@@ -12,7 +12,7 @@ function t(e) {
|
|
|
12
12
|
}
|
|
13
13
|
var n = t((e) => e.nextPaginationToken), r = t((e) => e.next_pagination_token);
|
|
14
14
|
function i(e) {
|
|
15
|
-
return !e.isError && (e.isLoading || e.isFetchingNextPage || !!e.hasNextPage);
|
|
15
|
+
return !e.isError && (e.isLoading || e.isPlaceholderData || e.isFetchingNextPage || !!e.hasNextPage);
|
|
16
16
|
}
|
|
17
17
|
function a(t, n) {
|
|
18
18
|
e(() => {
|
|
@@ -1,28 +1,29 @@
|
|
|
1
1
|
import { getApplicationStatusOptions as e } from "./rest/@tanstack/react-query.gen.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { OrganizationStatus as t } from "./organizationStatus.js";
|
|
3
|
+
import { withAuthEpoch as n } from "./withAuthEpoch.js";
|
|
4
|
+
import { widgetTokenCacheId as r } from "./widgetTokenCacheId.js";
|
|
4
5
|
//#region ../../libs/tesouro-embedded-components-react/shared/data-access/dist/lib/applicationStatusQueryOptions.js
|
|
5
|
-
var
|
|
6
|
-
function
|
|
6
|
+
var i = 1e4;
|
|
7
|
+
function a({ client: t }) {
|
|
7
8
|
return e({ client: t }).queryKey;
|
|
8
9
|
}
|
|
9
|
-
function
|
|
10
|
-
let { queryFn:
|
|
11
|
-
authEpoch:
|
|
12
|
-
|
|
10
|
+
function o({ client: a, widgetToken: o, authEpoch: s }) {
|
|
11
|
+
let { queryFn: c, queryKey: l } = e({ client: a }), { placeholderData: u } = n({ queryKey: l }, {
|
|
12
|
+
authEpoch: s,
|
|
13
|
+
organizationStatus: t.Known
|
|
13
14
|
});
|
|
14
15
|
return {
|
|
15
16
|
queryKey: [
|
|
16
|
-
|
|
17
|
-
{ authEpoch:
|
|
18
|
-
{ widgetTokenId:
|
|
17
|
+
l[0],
|
|
18
|
+
{ authEpoch: s },
|
|
19
|
+
{ widgetTokenId: r(o) }
|
|
19
20
|
],
|
|
20
|
-
queryFn:
|
|
21
|
-
placeholderData:
|
|
21
|
+
queryFn: c,
|
|
22
|
+
placeholderData: u,
|
|
22
23
|
retry: 2,
|
|
23
24
|
retryDelay: 300,
|
|
24
|
-
staleTime:
|
|
25
|
+
staleTime: i
|
|
25
26
|
};
|
|
26
27
|
}
|
|
27
28
|
//#endregion
|
|
28
|
-
export {
|
|
29
|
+
export { a as applicationStatusInvalidationKey, o as applicationStatusQueryOptions };
|