@tesouro/embedded-components-react 0.5.154 → 0.5.155
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 +1 -2
- package/dist/index.css +0 -3
- package/dist/index.d.ts +0 -3
- package/dist/lib/SettingsWidget.d.ts +0 -3
- package/dist/lib/WidgetSuite.d.ts +0 -3
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index3.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index4.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index6.js +56 -64
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +34 -34
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js +191 -231
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +91 -147
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index.js +0 -10
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index10.js +0 -28
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index2.js +0 -27
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index3.js +0 -13
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index4.js +0 -34
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index5.js +0 -35
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index6.js +0 -33
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index7.js +0 -22
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index8.js +0 -25
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index9.js +0 -26
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/feature/dist/index.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/feature/dist/index10.js +0 -62
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/feature/dist/index11.js +0 -60
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/feature/dist/index12.js +0 -107
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/feature/dist/index2.js +0 -5
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/feature/dist/index3.js +0 -10
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/feature/dist/index4.js +0 -14
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/feature/dist/index5.js +0 -28
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/feature/dist/index6.js +0 -99
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/feature/dist/index7.js +0 -36
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/feature/dist/index8.js +0 -80
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/feature/dist/index9.js +0 -146
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/ui/dist/index.js +0 -5
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/ui/dist/index2.js +0 -41
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/ui/dist/index3.js +0 -143
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/ui/dist/index4.js +0 -36
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/ui/dist/index5.js +0 -127
package/README.md
CHANGED
|
@@ -563,7 +563,7 @@ A self-contained native widget for listing, creating, editing, and acting on cus
|
|
|
563
563
|
|
|
564
564
|
### SettingsWidget
|
|
565
565
|
|
|
566
|
-
A composite settings widget that combines profile, team, invoice, bill-pay, expense, accounting,
|
|
566
|
+
A composite settings widget that combines profile, team, invoice, bill-pay, expense, accounting, legal and help settings in one navigable surface.
|
|
567
567
|
|
|
568
568
|
#### Props
|
|
569
569
|
|
|
@@ -577,7 +577,6 @@ A composite settings widget that combines profile, team, invoice, bill-pay, expe
|
|
|
577
577
|
| `invoiceContent` | `ReactNode` | Invoice settings widget | Replaces invoice settings content. |
|
|
578
578
|
| `billPayContent` | `ReactNode` | Approval policies settings | Replaces bill-pay settings content. |
|
|
579
579
|
| `accountingContent` | `ReactNode` | Chart of accounts widget | Replaces accounting content. |
|
|
580
|
-
| `tagsContent` | `ReactNode` | Tags widget | Replaces tags content. |
|
|
581
580
|
| `expenseContent` | `ReactNode` | Expense policies and requirements | Replaces expense content. |
|
|
582
581
|
| `legalContent` | `ReactNode` | Bank disclosures widget | Replaces the Legal section content. |
|
|
583
582
|
| `profileContactUrl` | `string` | `undefined` | Forwarded to the Profile section's widget — where its "to change this information, contact your bank" line links. Left unset, the card shows the plain unlinked sentence instead; the bank name comes from widget init. |
|
package/dist/index.css
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -3117,7 +3117,6 @@ interface FeatureLabels$1 {
|
|
|
3117
3117
|
billPaySection: string;
|
|
3118
3118
|
billPayDescription: string;
|
|
3119
3119
|
accountingSection: string;
|
|
3120
|
-
tagsSection: string;
|
|
3121
3120
|
expenseSection: string;
|
|
3122
3121
|
legalSection: string;
|
|
3123
3122
|
helpSection: string;
|
|
@@ -3137,7 +3136,6 @@ declare const SettingsSection: {
|
|
|
3137
3136
|
readonly Expense: "expense";
|
|
3138
3137
|
readonly BillPay: "bill-pay";
|
|
3139
3138
|
readonly Accounting: "accounting";
|
|
3140
|
-
readonly Tags: "tags";
|
|
3141
3139
|
readonly Legal: "legal";
|
|
3142
3140
|
readonly Help: "help";
|
|
3143
3141
|
};
|
|
@@ -3215,7 +3213,6 @@ interface SettingsWidgetProps extends MoniteRegionProviderProps {
|
|
|
3215
3213
|
helpContent?: ReactNode;
|
|
3216
3214
|
expenseContent?: ReactNode;
|
|
3217
3215
|
accountingContent?: ReactNode;
|
|
3218
|
-
tagsContent?: ReactNode;
|
|
3219
3216
|
invoiceContent?: ReactNode;
|
|
3220
3217
|
legalContent?: ReactNode;
|
|
3221
3218
|
}
|
|
@@ -695,7 +695,6 @@ interface FeatureLabels {
|
|
|
695
695
|
billPaySection: string;
|
|
696
696
|
billPayDescription: string;
|
|
697
697
|
accountingSection: string;
|
|
698
|
-
tagsSection: string;
|
|
699
698
|
expenseSection: string;
|
|
700
699
|
legalSection: string;
|
|
701
700
|
helpSection: string;
|
|
@@ -715,7 +714,6 @@ declare const SettingsSection: {
|
|
|
715
714
|
readonly Expense: "expense";
|
|
716
715
|
readonly BillPay: "bill-pay";
|
|
717
716
|
readonly Accounting: "accounting";
|
|
718
|
-
readonly Tags: "tags";
|
|
719
717
|
readonly Legal: "legal";
|
|
720
718
|
readonly Help: "help";
|
|
721
719
|
};
|
|
@@ -793,7 +791,6 @@ interface SettingsWidgetProps extends MoniteRegionProviderProps {
|
|
|
793
791
|
helpContent?: ReactNode;
|
|
794
792
|
expenseContent?: ReactNode;
|
|
795
793
|
accountingContent?: ReactNode;
|
|
796
|
-
tagsContent?: ReactNode;
|
|
797
794
|
invoiceContent?: ReactNode;
|
|
798
795
|
legalContent?: ReactNode;
|
|
799
796
|
}
|
|
@@ -2260,7 +2260,6 @@ interface FeatureLabels$1 {
|
|
|
2260
2260
|
billPaySection: string;
|
|
2261
2261
|
billPayDescription: string;
|
|
2262
2262
|
accountingSection: string;
|
|
2263
|
-
tagsSection: string;
|
|
2264
2263
|
expenseSection: string;
|
|
2265
2264
|
legalSection: string;
|
|
2266
2265
|
helpSection: string;
|
|
@@ -2280,7 +2279,6 @@ declare const SettingsSection: {
|
|
|
2280
2279
|
readonly Expense: "expense";
|
|
2281
2280
|
readonly BillPay: "bill-pay";
|
|
2282
2281
|
readonly Accounting: "accounting";
|
|
2283
|
-
readonly Tags: "tags";
|
|
2284
2282
|
readonly Legal: "legal";
|
|
2285
2283
|
readonly Help: "help";
|
|
2286
2284
|
};
|
|
@@ -2358,7 +2356,6 @@ interface SettingsWidgetProps extends MoniteRegionProviderProps {
|
|
|
2358
2356
|
helpContent?: ReactNode;
|
|
2359
2357
|
expenseContent?: ReactNode;
|
|
2360
2358
|
accountingContent?: ReactNode;
|
|
2361
|
-
tagsContent?: ReactNode;
|
|
2362
2359
|
invoiceContent?: ReactNode;
|
|
2363
2360
|
legalContent?: ReactNode;
|
|
2364
2361
|
}
|
|
@@ -18,25 +18,23 @@ import { SettingsWidgetAnalyticsEvent as l, WIDGET_NAME as u } from "./index2.js
|
|
|
18
18
|
import { ExpenseSettingsTabs as d } from "./index5.js";
|
|
19
19
|
import { InvoiceSettings as f } from "../../invoice-settings/feature/dist/index10.js";
|
|
20
20
|
import "../../invoice-settings/feature/dist/index.js";
|
|
21
|
-
import {
|
|
22
|
-
import "../../tags/feature/dist/index.js";
|
|
23
|
-
import { BankDisclosuresWidget as m } from "../../../shared/bank-disclosures/feature/dist/lib/BankDisclosuresWidget/BankDisclosuresWidget.js";
|
|
21
|
+
import { BankDisclosuresWidget as p } from "../../../shared/bank-disclosures/feature/dist/lib/BankDisclosuresWidget/BankDisclosuresWidget.js";
|
|
24
22
|
import "../../../shared/bank-disclosures/feature/dist/index.js";
|
|
25
|
-
import { TeamWidget as
|
|
23
|
+
import { TeamWidget as m } from "../../team/feature/dist/index17.js";
|
|
26
24
|
import "../../team/feature/dist/index.js";
|
|
27
|
-
import { SettingsWidgetUi as
|
|
25
|
+
import { SettingsWidgetUi as h } from "../../ui/dist/lib/SettingsWidgetUi/SettingsWidgetUi.js";
|
|
28
26
|
import "../../ui/dist/index.js";
|
|
29
|
-
import { ChartOfAccountsWidget as
|
|
27
|
+
import { ChartOfAccountsWidget as g } from "../../chart-of-accounts/feature/dist/index8.js";
|
|
30
28
|
import "../../chart-of-accounts/feature/dist/index.js";
|
|
31
|
-
import { HelpWidget as
|
|
29
|
+
import { HelpWidget as _ } from "../../help/feature/dist/index3.js";
|
|
32
30
|
import "../../help/feature/dist/index.js";
|
|
33
|
-
import { ProfileWidget as
|
|
31
|
+
import { ProfileWidget as v } from "../../profile/feature/dist/index4.js";
|
|
34
32
|
import "../../profile/feature/dist/index.js";
|
|
35
|
-
import { useCallback as
|
|
36
|
-
import { jsx as
|
|
37
|
-
import { useControllableState as
|
|
33
|
+
import { useCallback as y, useEffect as b, useRef as x } from "react";
|
|
34
|
+
import { jsx as S } from "react/jsx-runtime";
|
|
35
|
+
import { useControllableState as C } from "@radix-ui/react-use-controllable-state";
|
|
38
36
|
//#region ../../libs/tesouro-embedded-components-react/settings-widget/feature/dist/index6.js
|
|
39
|
-
var
|
|
37
|
+
var w = {
|
|
40
38
|
[s.Profile]: [],
|
|
41
39
|
[s.Team]: [t.UserReadOrg],
|
|
42
40
|
[s.Invoice]: [t.OrganizationSettingsWriteOrg],
|
|
@@ -47,98 +45,92 @@ var T = {
|
|
|
47
45
|
t.UserReadOrg
|
|
48
46
|
],
|
|
49
47
|
[s.Accounting]: [t.AccountingConfigReadOrg],
|
|
50
|
-
[s.Tags]: [t.AccountingConfigReadOrg],
|
|
51
48
|
[s.Expense]: [t.ApprovalPolicyWriteOrg, t.ExpenseWriteOrg],
|
|
52
49
|
[s.Legal]: [],
|
|
53
50
|
[s.Help]: []
|
|
54
51
|
};
|
|
55
|
-
function
|
|
56
|
-
let
|
|
52
|
+
function T({ labels: t, featureLabels: a, acceptInviteRedirectUri: u, helpContactUrl: T, helpFaq: E, profileContactUrl: D, selectedSection: O, defaultSelectedSection: k, onSelectedSectionChange: A, additionalSections: j, profileContent: M, teamContent: N, billPayContent: P, helpContent: F, expenseContent: I, accountingContent: L, invoiceContent: R, legalContent: z }) {
|
|
53
|
+
let B = {
|
|
57
54
|
...o,
|
|
58
55
|
...a
|
|
59
|
-
},
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
}, [
|
|
63
|
-
let { initResponse:
|
|
56
|
+
}, V = x(null), H = n();
|
|
57
|
+
b(() => {
|
|
58
|
+
H(l.Mounted);
|
|
59
|
+
}, [H]);
|
|
60
|
+
let { initResponse: U } = r(), W = U?.scopes, G = [
|
|
64
61
|
{
|
|
65
62
|
id: s.Profile,
|
|
66
|
-
label:
|
|
67
|
-
content:
|
|
63
|
+
label: B.profileSection,
|
|
64
|
+
content: M ?? /* @__PURE__ */ S(v, { contactUrl: D })
|
|
68
65
|
},
|
|
69
66
|
{
|
|
70
67
|
id: s.Team,
|
|
71
|
-
label:
|
|
72
|
-
content:
|
|
68
|
+
label: B.teamSection,
|
|
69
|
+
content: N ?? /* @__PURE__ */ S(m, { acceptInviteRedirectUri: u })
|
|
73
70
|
},
|
|
74
71
|
{
|
|
75
72
|
id: s.Invoice,
|
|
76
|
-
label:
|
|
77
|
-
content:
|
|
73
|
+
label: B.invoiceSection,
|
|
74
|
+
content: R ?? /* @__PURE__ */ S(f, { ref: V })
|
|
78
75
|
},
|
|
79
76
|
{
|
|
80
77
|
id: s.Expense,
|
|
81
|
-
label:
|
|
82
|
-
content:
|
|
83
|
-
approvalsLabel:
|
|
84
|
-
requirementsLabel:
|
|
78
|
+
label: B.expenseSection,
|
|
79
|
+
content: I ?? /* @__PURE__ */ S(d, {
|
|
80
|
+
approvalsLabel: B.expenseApprovalsTab,
|
|
81
|
+
requirementsLabel: B.expenseRequirementsTab
|
|
85
82
|
})
|
|
86
83
|
},
|
|
87
84
|
{
|
|
88
85
|
id: s.BillPay,
|
|
89
|
-
label:
|
|
90
|
-
content:
|
|
86
|
+
label: B.billPaySection,
|
|
87
|
+
content: P ?? /* @__PURE__ */ S(i, {
|
|
91
88
|
showHeaderTitle: !1,
|
|
92
|
-
componentLabels: { header: { Description:
|
|
89
|
+
componentLabels: { header: { Description: B.billPayDescription } }
|
|
93
90
|
})
|
|
94
91
|
},
|
|
95
92
|
{
|
|
96
93
|
id: s.Accounting,
|
|
97
|
-
label:
|
|
98
|
-
content:
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
id: s.Tags,
|
|
102
|
-
label: H.tagsSection,
|
|
103
|
-
content: z ?? /* @__PURE__ */ C(p, {})
|
|
94
|
+
label: B.accountingSection,
|
|
95
|
+
content: L ?? /* @__PURE__ */ S(g, {})
|
|
104
96
|
},
|
|
105
97
|
{
|
|
106
98
|
id: s.Legal,
|
|
107
|
-
label:
|
|
108
|
-
content:
|
|
99
|
+
label: B.legalSection,
|
|
100
|
+
content: z ?? /* @__PURE__ */ S(p, {})
|
|
109
101
|
},
|
|
110
102
|
{
|
|
111
103
|
id: s.Help,
|
|
112
|
-
label:
|
|
113
|
-
content:
|
|
114
|
-
contactUrl:
|
|
115
|
-
faq:
|
|
104
|
+
label: B.helpSection,
|
|
105
|
+
content: F ?? /* @__PURE__ */ S(_, {
|
|
106
|
+
contactUrl: T,
|
|
107
|
+
faq: E
|
|
116
108
|
})
|
|
117
109
|
}
|
|
118
|
-
],
|
|
119
|
-
prop:
|
|
120
|
-
defaultProp:
|
|
121
|
-
onChange:
|
|
110
|
+
], K = c(G.filter((t) => w[t.id].every((t) => e(W, [t]))), j ?? []), q = K[0]?.id ?? "", [J, Y] = C({
|
|
111
|
+
prop: O,
|
|
112
|
+
defaultProp: k ?? q,
|
|
113
|
+
onChange: A,
|
|
122
114
|
caller: "SettingsWidget"
|
|
123
|
-
}),
|
|
124
|
-
let t =
|
|
125
|
-
if (
|
|
126
|
-
|
|
115
|
+
}), X = K.some((e) => e.id === J) ? J : q, Z = y((e) => {
|
|
116
|
+
let t = V.current;
|
|
117
|
+
if (X !== s.Invoice || !t) {
|
|
118
|
+
Y(e);
|
|
127
119
|
return;
|
|
128
120
|
}
|
|
129
121
|
t.confirmLeave().then((t) => {
|
|
130
|
-
t &&
|
|
122
|
+
t && Y(e);
|
|
131
123
|
});
|
|
132
|
-
}, [
|
|
133
|
-
return /* @__PURE__ */
|
|
124
|
+
}, [X, Y]);
|
|
125
|
+
return /* @__PURE__ */ S(h, {
|
|
134
126
|
labels: t,
|
|
135
|
-
sections:
|
|
136
|
-
selectedSectionId:
|
|
137
|
-
onSectionChange:
|
|
127
|
+
sections: K,
|
|
128
|
+
selectedSectionId: X,
|
|
129
|
+
onSectionChange: Z
|
|
138
130
|
});
|
|
139
131
|
}
|
|
140
|
-
function
|
|
141
|
-
return /* @__PURE__ */
|
|
132
|
+
function E({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gatewayRouting: i, linkComponent: o, implementation: s, uiFramework: c, errorFallback: l, onError: d, finopsThemeColors: f, analytics: p, disclosuresAcceptance: m, providerLabels: h, ...g }) {
|
|
133
|
+
return /* @__PURE__ */ S(a, {
|
|
142
134
|
widgetName: u,
|
|
143
135
|
baseUrl: e,
|
|
144
136
|
widgetToken: t,
|
|
@@ -154,8 +146,8 @@ function D({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gat
|
|
|
154
146
|
analytics: p,
|
|
155
147
|
disclosuresAcceptance: m,
|
|
156
148
|
providerLabels: h,
|
|
157
|
-
children: /* @__PURE__ */
|
|
149
|
+
children: /* @__PURE__ */ S(T, { ...g })
|
|
158
150
|
});
|
|
159
151
|
}
|
|
160
152
|
//#endregion
|
|
161
|
-
export {
|
|
153
|
+
export { E as SettingsWidget, E as default };
|
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
import "./lib/finopsApiVersion.js";
|
|
2
2
|
import "./lib/rest/client.gen.js";
|
|
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,
|
|
4
|
-
import { activateCreditCardMutation as
|
|
5
|
-
import { withAuthEpoch as
|
|
6
|
-
import { applicationStatusInvalidationKey as
|
|
7
|
-
import { createClientSecretInstaller as
|
|
8
|
-
import { cancelAllClients as
|
|
9
|
-
import { cloneEmbeddedClient as
|
|
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, downloadBankAccountTransactions as g, getApplicationStatus as _, getApprovalPolicies as v, getApprovalRequests as y, getBankAccountAccess as b, getBankAccountStatement 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, postApprovalRequestsIdApprove as K, postApprovalRequestsIdReject as q, postCounterparts as J, postCounterpartsIdAddresses as Y, postCounterpartsIdBankAccounts as X, postCounterpartsIdBankAccountsIdMakeDefault as Z, postMeasureUnits as Q, postPayables as $, postPayablesIdApprovePaymentOperation as ee, postPayablesIdAttachFile as te, postPayablesIdCancel as ne, postPayablesIdDuplicatesIdConfirm as re, postPayablesIdDuplicatesIdDismiss as ie, postPayablesIdMarkAsPaid as ae, postPayablesIdReject as oe, postPayablesIdReopen as se, postPayablesIdSchedulePayment as ce, postPayablesIdSubmitForApproval as le, postPayablesIdValidate as ue, postPayablesUploadFromFile as de, postPaymentIntentsIdCancel as fe, postProducts as pe, postReceivables as me, postReceivablesIdAccept as he, postReceivablesIdCancel as ge, postReceivablesIdClone as _e, postReceivablesIdDecline as ve, postReceivablesIdIssue as ye, postReceivablesIdMarkAsPaid as be, postReceivablesIdMarkAsPartiallyPaid as xe, postReceivablesIdMarkAsUncollectible as Se, postReceivablesIdSend as Ce, putEntitiesIdLogo as we, putPayablesIdLineItems as Te, updateDepartment as Ee, updateLocation as De, updateUser as Oe } from "./lib/rest/sdk.gen.js";
|
|
4
|
+
import { activateCreditCardMutation as ke, activateDebitCardMutation as Ae, connectExternalBankAccountMutation as je, createAchMoneyMovementMutation as Me, createApplicationMutation as Ne, createBankAccountMutation as Pe, createBookTransferMutation as Fe, createCheckDepositMutation as Ie, createDebitCardMutation as Le, createVelocityControlMutation as Re, deleteApprovalPoliciesIdMutation as ze, deleteLedgerAccountsIdMutation as Be, deleteReceiptsIdMutation as Ve, disableUserMutation as He, getAnalyticsPayablesOptions as Ue, getAnalyticsPayablesQueryKey as We, getAnalyticsReceivablesOptions as Ge, getApprovalPoliciesOptions as Ke, getApprovalPoliciesQueryKey as qe, getApprovalRequestsOptions as Je, getApprovalRequestsQueryKey as Ye, getBankAccountAccessQueryKey as Xe, getBankAccountApplicationOptions as Ze, getBankAccountOptions as Qe, getBankAccountQueryKey as $e, getBankAccountStatementsOptions as et, getBankAccountTransactionsOptions as tt, getBankAccountTransactionsQueryKey as nt, getBankAccountTransfersOptions as rt, getBankAccountTransfersQueryKey as it, getBankAccountsQueryKey as at, getCounterpartsIdAddressesOptions as ot, getCounterpartsIdAddressesQueryKey as st, getCounterpartsIdBankAccountsOptions as ct, getCounterpartsIdBankAccountsQueryKey as lt, getCounterpartsIdOptions as ut, getCounterpartsIdQueryKey as dt, getCounterpartsOptions as ft, getCounterpartsQueryKey as pt, getCreditCardByIdOptions as mt, getCreditCardByIdQueryKey as ht, getCreditCardsOptions as gt, getCreditCardsQueryKey as _t, getDebitCardByIdOptions as vt, getDebitCardByIdQueryKey as yt, getDebitCardCredentialsOptions as bt, getDebitCardsOptions as xt, getDebitCardsQueryKey as St, getDepartmentOptions as Ct, getDepartmentQueryKey as wt, getDepositableBankAccountsOptions as Tt, getDocumentsIdNextNumbersOptions as Et, getDocumentsIdNextNumbersQueryKey as Dt, getEntitiesIdSettingsOptions as Ot, getEntitiesIdSettingsQueryKey as kt, getEntityUsersMyEntityOptions as At, getEntityUsersMyEntityQueryKey as jt, getExternalBankAccountAccessQueryKey as Mt, getExternalBankAccountsOptions as Nt, getExternalBankAccountsQueryKey as Pt, getLedgerAccountsQueryKey as Ft, getLocationOptions as It, getLocationQueryKey as Lt, getMeasureUnitsOptions as Rt, getMeasureUnitsQueryKey as zt, getOrganizationOptions as Bt, getPayablesIdHistoryOptions as Vt, getPayablesIdHistoryQueryKey as Ht, getPayablesIdLineItemsOptions as Ut, getPayablesIdLineItemsQueryKey as Wt, getPayablesIdOptions as Gt, getPayablesIdQueryKey as Kt, getPayablesIdSuggestionsOptions as qt, getPayablesOptions as Jt, getPayablesQueryKey as Yt, getPaymentRecordsOptions as Xt, getPaymentRecordsQueryKey as Zt, getProductsIdOptions as Qt, getProductsIdQueryKey as $t, getProductsOptions as en, getProductsQueryKey as tn, getReceiptsIdQueryKey as nn, getReceiptsOptions as rn, getReceiptsQueryKey as an, getReceivablesIdHistoryOptions as on, getReceivablesIdHistoryQueryKey as sn, getReceivablesIdMailsOptions as cn, getReceivablesIdMailsQueryKey as ln, getReceivablesIdOptions as un, getReceivablesIdPdfLinkOptions as dn, getReceivablesIdPdfLinkQueryKey as fn, getReceivablesIdQueryKey as pn, getReceivablesOptions as mn, getReceivablesQueryKey as hn, getTransactionsIdQueryKey as gn, getTransactionsOptions as _n, getTransactionsQueryKey as vn, getTransactionsValidationsOptions as yn, getTransactionsValidationsQueryKey as bn, getUsersOptions as xn, getUsersQueryKey as Sn, getVelocityControlsQueryKey as Cn, grantBankAccountAccessMutation as wn, grantExternalBankAccountAccessMutation as Tn, linkExternalBankAccountMutation as En, listDepartmentsOptions as Dn, listDepartmentsQueryKey as On, listLocationsOptions as kn, listLocationsQueryKey as An, listRolesQueryKey as jn, manageDebitCardAccessMutation as Mn, patchApprovalPoliciesIdMutation as Nn, patchLedgerAccountsIdMutation as Pn, patchReceiptsIdMutation as Fn, postApprovalPoliciesMutation as In, postLedgerAccountsMutation as Ln, putTransactionsValidationsMutation as Rn, setDebitCardLockStatusMutation as zn, submitApplicationMutation as Bn, unlinkExternalBankAccountMutation as Vn, updateApplicationMutation as Hn, updateBankAccountMutation as Un, updateDebitCardMutation as Wn, updateExternalBankAccountMutation as Gn, validateExternalBankAccountMutation as Kn, verifyDebitCardMutation as qn } from "./lib/rest/@tanstack/react-query.gen.js";
|
|
5
|
+
import { withAuthEpoch as Jn } from "./lib/withAuthEpoch.js";
|
|
6
|
+
import { applicationStatusInvalidationKey as Yn, applicationStatusQueryOptions as Xn } from "./lib/applicationStatusQueryOptions.js";
|
|
7
|
+
import { createClientSecretInstaller as Zn } from "./lib/scopedClientSecret.js";
|
|
8
|
+
import { cancelAllClients as Qn, invalidateAllClients as $n, registerQueryClient as er, removeInactiveFromAllClients as tr, setAllClientsQueriesData as nr, unregisterQueryClient as rr } from "./lib/clientRegistry.js";
|
|
9
|
+
import { cloneEmbeddedClient as ir, createEmbeddedClient as ar } from "./lib/createEmbeddedClient.js";
|
|
10
10
|
import "./lib/widgetGatewayHosts.js";
|
|
11
|
-
import { attachTransportInterceptors as
|
|
12
|
-
import { EmbedApiProvider as
|
|
13
|
-
import { optionalOrganizationHeaders as
|
|
14
|
-
import { fetchWidgetInit as
|
|
15
|
-
import { hasAnyScope as
|
|
11
|
+
import { attachTransportInterceptors as or } from "./lib/transportInterceptors.js";
|
|
12
|
+
import { EmbedApiProvider as sr, useEmbedApi as cr } from "./lib/EmbedApiContext.js";
|
|
13
|
+
import { optionalOrganizationHeaders as lr, organizationHeaders as ur } from "./lib/organizationHeaders.js";
|
|
14
|
+
import { fetchWidgetInit as dr } from "./lib/fetchWidgetInit.js";
|
|
15
|
+
import { hasAnyScope as fr } from "./lib/hasAnyScope.js";
|
|
16
16
|
import "./lib/queryKeys.js";
|
|
17
|
-
import { useCurrentUserQuery as
|
|
17
|
+
import { useCurrentUserQuery as pr } from "./lib/useCurrentUserQuery.js";
|
|
18
18
|
import "./lib/apiErrorStatus.js";
|
|
19
|
-
import { isApiConflictError as
|
|
20
|
-
import { isApiForbiddenError as
|
|
21
|
-
import { isApiNotFoundError as
|
|
22
|
-
import { isApiUnprocessableError as
|
|
19
|
+
import { isApiConflictError as mr } from "./lib/isApiConflictError.js";
|
|
20
|
+
import { isApiForbiddenError as hr } from "./lib/isApiForbiddenError.js";
|
|
21
|
+
import { isApiNotFoundError as gr } from "./lib/isApiNotFoundError.js";
|
|
22
|
+
import { isApiUnprocessableError as _r } from "./lib/isApiUnprocessableError.js";
|
|
23
23
|
import "./lib/isUserDataNotFoundError.js";
|
|
24
|
-
import { useGetUserDataQuery as
|
|
25
|
-
import { useUpsertUserDataMutation as
|
|
24
|
+
import { useGetUserDataQuery as vr } from "./lib/useGetUserDataQuery.js";
|
|
25
|
+
import { useUpsertUserDataMutation as yr } from "./lib/useUpsertUserDataMutation.js";
|
|
26
26
|
import "./lib/rest/zod.gen.js";
|
|
27
|
-
import { Scope as
|
|
28
|
-
import { getAllPagesNextPageParam as
|
|
29
|
-
import { useAllBankAccountsQuery as
|
|
30
|
-
import { useAllExternalBankAccountsQuery as
|
|
31
|
-
import { useAllMerchantCategoryGroupsQuery as
|
|
32
|
-
import { useAllLedgerAccountsQuery as
|
|
33
|
-
import { usePaymentTermsQuery as
|
|
34
|
-
import { useAllOrganizationRolesQuery as
|
|
35
|
-
import { useRolePermissionsQueries as
|
|
36
|
-
import { useAllOrganizationUsersQuery as
|
|
37
|
-
import { useAcceptWidgetDisclosures as
|
|
38
|
-
import { useDisclosuresQuery as
|
|
39
|
-
import { OnboardingSuppressionReason as
|
|
40
|
-
import { useOrganizationOnboardingSuppression as
|
|
41
|
-
export {
|
|
27
|
+
import { Scope as br, isScope as xr } from "./lib/scopes.js";
|
|
28
|
+
import { getAllPagesNextPageParam as Sr, getAllPagesNextPaginationTokenParam as Cr, isAllPagesResolving as wr, useAutoFetchNextPage as Tr } from "./lib/allPages.js";
|
|
29
|
+
import { useAllBankAccountsQuery as Er } from "./lib/bank-account/useAllBankAccountsQuery.js";
|
|
30
|
+
import { useAllExternalBankAccountsQuery as Dr } from "./lib/external-bank-account/useAllExternalBankAccountsQuery.js";
|
|
31
|
+
import { useAllMerchantCategoryGroupsQuery as Or } from "./lib/merchant-category-group/useAllMerchantCategoryGroupsQuery.js";
|
|
32
|
+
import { useAllLedgerAccountsQuery as kr, useLedgerAccountsQuery as Ar } from "./lib/reference-data/useLedgerAccountsQuery.js";
|
|
33
|
+
import { usePaymentTermsQuery as jr } from "./lib/reference-data/usePaymentTermsQuery.js";
|
|
34
|
+
import { useAllOrganizationRolesQuery as Mr } from "./lib/role/useAllOrganizationRolesQuery.js";
|
|
35
|
+
import { useRolePermissionsQueries as Nr } from "./lib/role/useRolePermissionsQueries.js";
|
|
36
|
+
import { useAllOrganizationUsersQuery as Pr } from "./lib/user/useAllOrganizationUsersQuery.js";
|
|
37
|
+
import { useAcceptWidgetDisclosures as Fr } from "./lib/disclosures/useAcceptWidgetDisclosures.js";
|
|
38
|
+
import { useDisclosuresQuery as Ir } from "./lib/disclosures/useDisclosuresQuery.js";
|
|
39
|
+
import { OnboardingSuppressionReason as Lr } from "./lib/onboardingSuppressionReason.js";
|
|
40
|
+
import { useOrganizationOnboardingSuppression as Rr } from "./lib/useOrganizationOnboardingSuppression.js";
|
|
41
|
+
export { sr as EmbedApiProvider, Lr as OnboardingSuppressionReason, br as Scope, ke as activateCreditCardMutation, Ae as activateDebitCardMutation, Yn as applicationStatusInvalidationKey, Xn as applicationStatusQueryOptions, or as attachTransportInterceptors, e as bulkUpdateDepartmentMembers, t as bulkUpdateLocationMembers, n as bulkUpdateRoleMembers, Qn as cancelAllClients, ir as cloneEmbeddedClient, je as connectExternalBankAccountMutation, Me as createAchMoneyMovementMutation, Ne as createApplicationMutation, Pe as createBankAccountMutation, Fe as createBookTransferMutation, Ie as createCheckDepositMutation, Zn as createClientSecretInstaller, Le as createDebitCardMutation, r as createDepartment, ar as createEmbeddedClient, i as createLocation, a as createUser, Re as createVelocityControlMutation, o as deactivateDepartment, s as deactivateLocation, ze as deleteApprovalPoliciesIdMutation, c as deleteCounterpartsId, l as deleteCounterpartsIdBankAccountsId, u as deleteEntitiesIdLogo, Be as deleteLedgerAccountsIdMutation, d as deleteMeasureUnitsId, f as deletePayablesId, p as deletePayablesIdFile, m as deleteProductsId, Ve as deleteReceiptsIdMutation, h as deleteReceivablesId, He as disableUserMutation, g as downloadBankAccountTransactions, dr as fetchWidgetInit, Sr as getAllPagesNextPageParam, Cr as getAllPagesNextPaginationTokenParam, Ue as getAnalyticsPayablesOptions, We as getAnalyticsPayablesQueryKey, Ge as getAnalyticsReceivablesOptions, _ as getApplicationStatus, v as getApprovalPolicies, Ke as getApprovalPoliciesOptions, qe as getApprovalPoliciesQueryKey, y as getApprovalRequests, Je as getApprovalRequestsOptions, Ye as getApprovalRequestsQueryKey, b as getBankAccountAccess, Xe as getBankAccountAccessQueryKey, Ze as getBankAccountApplicationOptions, Qe as getBankAccountOptions, $e as getBankAccountQueryKey, x as getBankAccountStatement, et as getBankAccountStatementsOptions, tt as getBankAccountTransactionsOptions, nt as getBankAccountTransactionsQueryKey, rt as getBankAccountTransfersOptions, it as getBankAccountTransfersQueryKey, at as getBankAccountsQueryKey, S as getCounterparts, ot as getCounterpartsIdAddressesOptions, st as getCounterpartsIdAddressesQueryKey, ct as getCounterpartsIdBankAccountsOptions, lt as getCounterpartsIdBankAccountsQueryKey, ut as getCounterpartsIdOptions, dt as getCounterpartsIdQueryKey, ft as getCounterpartsOptions, pt as getCounterpartsQueryKey, mt as getCreditCardByIdOptions, ht as getCreditCardByIdQueryKey, gt as getCreditCardsOptions, _t as getCreditCardsQueryKey, vt as getDebitCardByIdOptions, yt as getDebitCardByIdQueryKey, bt as getDebitCardCredentialsOptions, xt as getDebitCardsOptions, St as getDebitCardsQueryKey, C as getDepartment, Ct as getDepartmentOptions, wt as getDepartmentQueryKey, w as getDepositableBankAccounts, Tt as getDepositableBankAccountsOptions, Et as getDocumentsIdNextNumbersOptions, Dt as getDocumentsIdNextNumbersQueryKey, Ot as getEntitiesIdSettingsOptions, kt as getEntitiesIdSettingsQueryKey, At as getEntityUsersMyEntityOptions, jt as getEntityUsersMyEntityQueryKey, T as getExternalBankAccountAccess, Mt as getExternalBankAccountAccessQueryKey, Nt as getExternalBankAccountsOptions, Pt as getExternalBankAccountsQueryKey, Ft as getLedgerAccountsQueryKey, E as getLocation, It as getLocationOptions, Lt as getLocationQueryKey, Rt as getMeasureUnitsOptions, zt as getMeasureUnitsQueryKey, Bt as getOrganizationOptions, D as getPayables, O as getPayablesId, k as getPayablesIdHistory, Vt as getPayablesIdHistoryOptions, Ht as getPayablesIdHistoryQueryKey, A as getPayablesIdLineItems, Ut as getPayablesIdLineItemsOptions, Wt as getPayablesIdLineItemsQueryKey, Gt as getPayablesIdOptions, Kt as getPayablesIdQueryKey, qt as getPayablesIdSuggestionsOptions, Jt as getPayablesOptions, Yt as getPayablesQueryKey, j as getPaymentRecords, Xt as getPaymentRecordsOptions, Zt as getPaymentRecordsQueryKey, Qt as getProductsIdOptions, $t as getProductsIdQueryKey, en as getProductsOptions, tn as getProductsQueryKey, nn as getReceiptsIdQueryKey, rn as getReceiptsOptions, an as getReceiptsQueryKey, M as getReceivables, on as getReceivablesIdHistoryOptions, sn as getReceivablesIdHistoryQueryKey, cn as getReceivablesIdMailsOptions, ln as getReceivablesIdMailsQueryKey, un as getReceivablesIdOptions, dn as getReceivablesIdPdfLinkOptions, fn as getReceivablesIdPdfLinkQueryKey, pn as getReceivablesIdQueryKey, mn as getReceivablesOptions, hn as getReceivablesQueryKey, gn as getTransactionsIdQueryKey, _n as getTransactionsOptions, vn as getTransactionsQueryKey, yn as getTransactionsValidationsOptions, bn as getTransactionsValidationsQueryKey, N as getUsers, xn as getUsersOptions, Sn as getUsersQueryKey, Cn as getVelocityControlsQueryKey, wn as grantBankAccountAccessMutation, Tn as grantExternalBankAccountAccessMutation, fr as hasAnyScope, $n as invalidateAllClients, wr as isAllPagesResolving, mr as isApiConflictError, hr as isApiForbiddenError, gr as isApiNotFoundError, _r as isApiUnprocessableError, xr as isScope, En as linkExternalBankAccountMutation, P as listDepartments, Dn as listDepartmentsOptions, On as listDepartmentsQueryKey, F as listLocations, kn as listLocationsOptions, An as listLocationsQueryKey, I as listRoles, jn as listRolesQueryKey, L as manageBankAccountAccess, Mn as manageDebitCardAccessMutation, lr as optionalOrganizationHeaders, ur as organizationHeaders, Nn as patchApprovalPoliciesIdMutation, R as patchCounterpartsId, z as patchCounterpartsIdAddressesId, B as patchCounterpartsIdBankAccountsId, V as patchEntitiesIdSettings, Pn as patchLedgerAccountsIdMutation, H as patchMeasureUnitsId, U as patchPayablesId, W as patchProductsId, Fn as patchReceiptsIdMutation, G as patchReceivablesId, In as postApprovalPoliciesMutation, K as postApprovalRequestsIdApprove, q as postApprovalRequestsIdReject, J as postCounterparts, Y as postCounterpartsIdAddresses, X as postCounterpartsIdBankAccounts, Z as postCounterpartsIdBankAccountsIdMakeDefault, Ln as postLedgerAccountsMutation, Q as postMeasureUnits, $ as postPayables, ee as postPayablesIdApprovePaymentOperation, te as postPayablesIdAttachFile, ne as postPayablesIdCancel, re as postPayablesIdDuplicatesIdConfirm, ie as postPayablesIdDuplicatesIdDismiss, ae as postPayablesIdMarkAsPaid, oe as postPayablesIdReject, se as postPayablesIdReopen, ce as postPayablesIdSchedulePayment, le as postPayablesIdSubmitForApproval, ue as postPayablesIdValidate, de as postPayablesUploadFromFile, fe as postPaymentIntentsIdCancel, pe as postProducts, me as postReceivables, he as postReceivablesIdAccept, ge as postReceivablesIdCancel, _e as postReceivablesIdClone, ve as postReceivablesIdDecline, ye as postReceivablesIdIssue, be as postReceivablesIdMarkAsPaid, xe as postReceivablesIdMarkAsPartiallyPaid, Se as postReceivablesIdMarkAsUncollectible, Ce as postReceivablesIdSend, we as putEntitiesIdLogo, Te as putPayablesIdLineItems, Rn as putTransactionsValidationsMutation, er as registerQueryClient, tr as removeInactiveFromAllClients, nr as setAllClientsQueriesData, zn as setDebitCardLockStatusMutation, Bn as submitApplicationMutation, Vn as unlinkExternalBankAccountMutation, rr as unregisterQueryClient, Hn as updateApplicationMutation, Un as updateBankAccountMutation, Wn as updateDebitCardMutation, Ee as updateDepartment, Gn as updateExternalBankAccountMutation, De as updateLocation, Oe as updateUser, Fr as useAcceptWidgetDisclosures, Er as useAllBankAccountsQuery, Dr as useAllExternalBankAccountsQuery, kr as useAllLedgerAccountsQuery, Or as useAllMerchantCategoryGroupsQuery, Mr as useAllOrganizationRolesQuery, Pr as useAllOrganizationUsersQuery, Tr as useAutoFetchNextPage, pr as useCurrentUserQuery, Ir as useDisclosuresQuery, cr as useEmbedApi, vr as useGetUserDataQuery, Ar as useLedgerAccountsQuery, Rr as useOrganizationOnboardingSuppression, jr as usePaymentTermsQuery, Nr as useRolePermissionsQueries, yr as useUpsertUserDataMutation, Kn as validateExternalBankAccountMutation, qn as verifyDebitCardMutation, Jn as withAuthEpoch };
|