@tesouro/embedded-components-react 0.7.37 → 0.7.41
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 +2 -2
- package/dist/fixtures/index.d.ts +1 -1
- package/dist/index.d.ts +21 -14
- package/dist/lib/CounterpartsWidget.d.ts +16 -14
- package/dist/lib/CounterpartsWidgetPublic.d.ts +16 -14
- package/dist/lib/CustomersWidget.d.ts +16 -14
- package/dist/lib/TransfersWidget.d.ts +5 -0
- package/dist/lib/WidgetSuite.d.ts +5 -0
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/fieldInput/formatPhoneNumberInput.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/mocks/bankAccounts.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/lib/CounterpartsWidget/CounterpartsWidget.js +30 -29
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/lib/CounterpartsWidget/constants.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/lib/CounterpartsWidget/useCounterpartsTable.js +143 -95
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/lib/CounterpartsWidget/useCounterpartsWidget.js +60 -48
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/mocks/labels.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/ui/dist/index.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/ui/dist/index2.js +22 -15
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/ui/dist/index3.js +137 -135
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/helpers.js +106 -108
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js +50 -50
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +22 -22
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index3.js +6 -7
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index6.js +14 -34
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index7.js +16 -13
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index8.js +4 -10
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/lib/TransfersWidget/TransfersWidgetInner.js +99 -75
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/lib/TransfersWidget/featureLabels.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/lib/TransfersWidget/useTransfersPageState.js +49 -0
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/mocks/labels.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/mocks/transfers.js +103 -85
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransfersWidget/TransfersWidget.js +73 -61
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransfersWidget/labels.js +3 -0
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { client as e } from "../client.gen.js";
|
|
2
|
-
import { activateCreditCard as t, activateDebitCard as n, connectExternalBankAccount as r, createAchMoneyMovement as i, createApplication as a, createBankAccount as ee, createBookTransfer as te, createCheckDeposit as ne, createDebitCard as re, createVelocityControl as ie, deleteApprovalPoliciesId as ae, deleteBankAccountApplication as oe, deleteLedgerAccountsId as se, deleteReceiptsId as ce, disableUser as le, getAnalyticsPayables as ue, getAnalyticsReceipts as de, getAnalyticsReceivables as fe, getAnalyticsTransactions as pe, getApplicationStatus as me, getApprovalPolicies as he, getApprovalRequests as ge, getBankAccount as _e, getBankAccountApplication as ve, getBankAccountStatements as ye, getBankAccountTransactions as be,
|
|
2
|
+
import { activateCreditCard as t, activateDebitCard as n, connectExternalBankAccount as r, createAchMoneyMovement as i, createApplication as a, createBankAccount as ee, createBookTransfer as te, createCheckDeposit as ne, createDebitCard as re, createVelocityControl as ie, deleteApprovalPoliciesId as ae, deleteBankAccountApplication as oe, deleteLedgerAccountsId as se, deleteReceiptsId as ce, disableUser as le, getAnalyticsPayables as ue, getAnalyticsReceipts as de, getAnalyticsReceivables as fe, getAnalyticsTransactions as pe, getApplicationStatus as me, getApprovalPolicies as he, getApprovalRequests as ge, getBankAccount as _e, getBankAccountApplication as ve, getBankAccountStatements as ye, getBankAccountTransactions as be, getBankAccounts as xe, getBankDetails as Se, getBankDetailsId as Ce, getCounterparts as we, getCounterpartsId as Te, getCounterpartsIdAddresses as Ee, getCounterpartsIdBankAccounts as De, getCreditCardById as Oe, getCreditCards as ke, getDebitCardById as Ae, getDebitCardCredentials as je, getDebitCards as Me, getDepartment as Ne, getDepositableBankAccounts as Pe, getDocumentsIdNextNumbers as Fe, getEntitiesIdPaymentMethods as Ie, getEntitiesIdSettings as Le, getEntityUsers as Re, getEntityUsersMe as ze, getEntityUsersMyEntity as Be, getExternalBankAccount as Ve, getExternalBankAccounts as He, getLedgerAccounts as Ue, getLocation as We, getMailboxes as Ge, getMe as Ke, getMeasureUnits as qe, getMerchantCategoryGroups as Je, getOrganization as Ye, getOrganizationTransfers as Xe, getOverdueReminders as Ze, getPayables as Qe, getPayablesId as $e, getPayablesIdHistory as et, getPayablesIdLineItems as tt, getPayablesIdSuggestions as nt, getPaymentRecords as rt, getPaymentReminders as it, getPaymentTerms as at, getProducts as ot, getProductsId as st, getReceipts as ct, getReceivables as lt, getReceivablesId as ut, getReceivablesIdPdfLink as dt, getReceivablesRequiredFields as ft, getRecurrencesId as pt, getTransactions as mt, getTransactionsId as ht, getTransactionsIdExpenseHistory as gt, getTransactionsValidations as _t, getUserData as vt, getUsers as yt, grantBankAccountAccess as bt, grantExternalBankAccountAccess as xt, linkExternalBankAccount as St, listDepartments as Ct, listLocations as wt, listRolePermissions as Tt, listRoles as Et, manageDebitCardAccess as Dt, patchApprovalPoliciesId as Ot, patchLedgerAccountsId as kt, patchReceiptsId as At, postApprovalPolicies as jt, postLedgerAccounts as Mt, postReceiptsUploadFromFile as Nt, putTransactionsValidations as Pt, setDebitCardLockStatus as Ft, submitApplication as It, unlinkExternalBankAccount as Lt, updateApplication as Rt, updateBankAccount as zt, updateDebitCard as Bt, updateExternalBankAccount as Vt, upsertUserData as Ht, validateExternalBankAccount as Ut, verifyDebitCard as Wt } from "../sdk.gen.js";
|
|
3
3
|
import { queryOptions as o } from "@tanstack/react-query";
|
|
4
4
|
//#region ../../libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js
|
|
5
5
|
var s = (t, n, r, i) => {
|
|
@@ -21,7 +21,7 @@ var s = (t, n, r, i) => {
|
|
|
21
21
|
queryKey: c(e)
|
|
22
22
|
}), Kt = (e) => s("getMerchantCategoryGroups", e), qt = (e) => o({
|
|
23
23
|
queryFn: async ({ queryKey: t, signal: n }) => {
|
|
24
|
-
let { data: r } = await
|
|
24
|
+
let { data: r } = await Je({
|
|
25
25
|
...e,
|
|
26
26
|
...t[0],
|
|
27
27
|
signal: n,
|
|
@@ -78,7 +78,7 @@ var s = (t, n, r, i) => {
|
|
|
78
78
|
return n;
|
|
79
79
|
} }), u = (e) => s("getBankAccounts", e), tn = (e) => o({
|
|
80
80
|
queryFn: async ({ queryKey: t, signal: n }) => {
|
|
81
|
-
let { data: r } = await
|
|
81
|
+
let { data: r } = await xe({
|
|
82
82
|
...e,
|
|
83
83
|
...t[0],
|
|
84
84
|
signal: n,
|
|
@@ -96,7 +96,7 @@ var s = (t, n, r, i) => {
|
|
|
96
96
|
return n;
|
|
97
97
|
} }), d = (e) => s("getDepositableBankAccounts", e), rn = (e) => o({
|
|
98
98
|
queryFn: async ({ queryKey: t, signal: n }) => {
|
|
99
|
-
let { data: r } = await
|
|
99
|
+
let { data: r } = await Pe({
|
|
100
100
|
...e,
|
|
101
101
|
...t[0],
|
|
102
102
|
signal: n,
|
|
@@ -105,9 +105,9 @@ var s = (t, n, r, i) => {
|
|
|
105
105
|
return r;
|
|
106
106
|
},
|
|
107
107
|
queryKey: d(e)
|
|
108
|
-
}), f = (e) => s("
|
|
108
|
+
}), f = (e) => s("getOrganizationTransfers", e), an = (e) => o({
|
|
109
109
|
queryFn: async ({ queryKey: t, signal: n }) => {
|
|
110
|
-
let { data: r } = await
|
|
110
|
+
let { data: r } = await Xe({
|
|
111
111
|
...e,
|
|
112
112
|
...t[0],
|
|
113
113
|
signal: n,
|
|
@@ -116,28 +116,39 @@ var s = (t, n, r, i) => {
|
|
|
116
116
|
return r;
|
|
117
117
|
},
|
|
118
118
|
queryKey: f(e)
|
|
119
|
-
}),
|
|
119
|
+
}), p = (e) => s("getBankAccount", e), on = (e) => o({
|
|
120
|
+
queryFn: async ({ queryKey: t, signal: n }) => {
|
|
121
|
+
let { data: r } = await _e({
|
|
122
|
+
...e,
|
|
123
|
+
...t[0],
|
|
124
|
+
signal: n,
|
|
125
|
+
throwOnError: !0
|
|
126
|
+
});
|
|
127
|
+
return r;
|
|
128
|
+
},
|
|
129
|
+
queryKey: p(e)
|
|
130
|
+
}), sn = (e) => ({ mutationFn: async (t) => {
|
|
120
131
|
let { data: n } = await zt({
|
|
121
132
|
...e,
|
|
122
133
|
...t,
|
|
123
134
|
throwOnError: !0
|
|
124
135
|
});
|
|
125
136
|
return n;
|
|
126
|
-
} }),
|
|
137
|
+
} }), cn = (e) => s("getBankAccountAccess", e), ln = (e) => ({ mutationFn: async (t) => {
|
|
127
138
|
let { data: n } = await bt({
|
|
128
139
|
...e,
|
|
129
140
|
...t,
|
|
130
141
|
throwOnError: !0
|
|
131
142
|
});
|
|
132
143
|
return n;
|
|
133
|
-
} }),
|
|
144
|
+
} }), un = (e) => ({ mutationFn: async (t) => {
|
|
134
145
|
let { data: n } = await ne({
|
|
135
146
|
...e,
|
|
136
147
|
...t,
|
|
137
148
|
throwOnError: !0
|
|
138
149
|
});
|
|
139
150
|
return n;
|
|
140
|
-
} }),
|
|
151
|
+
} }), m = (e) => s("getBankAccountStatements", e), dn = (e) => o({
|
|
141
152
|
queryFn: async ({ queryKey: t, signal: n }) => {
|
|
142
153
|
let { data: r } = await ye({
|
|
143
154
|
...e,
|
|
@@ -147,21 +158,10 @@ var s = (t, n, r, i) => {
|
|
|
147
158
|
});
|
|
148
159
|
return r;
|
|
149
160
|
},
|
|
150
|
-
queryKey: p(e)
|
|
151
|
-
}), m = (e) => s("getBankAccountTransactions", e), dn = (e) => o({
|
|
152
|
-
queryFn: async ({ queryKey: t, signal: n }) => {
|
|
153
|
-
let { data: r } = await be({
|
|
154
|
-
...e,
|
|
155
|
-
...t[0],
|
|
156
|
-
signal: n,
|
|
157
|
-
throwOnError: !0
|
|
158
|
-
});
|
|
159
|
-
return r;
|
|
160
|
-
},
|
|
161
161
|
queryKey: m(e)
|
|
162
|
-
}), h = (e) => s("
|
|
162
|
+
}), h = (e) => s("getBankAccountTransactions", e), fn = (e) => o({
|
|
163
163
|
queryFn: async ({ queryKey: t, signal: n }) => {
|
|
164
|
-
let { data: r } = await
|
|
164
|
+
let { data: r } = await be({
|
|
165
165
|
...e,
|
|
166
166
|
...t[0],
|
|
167
167
|
signal: n,
|
|
@@ -172,7 +172,7 @@ var s = (t, n, r, i) => {
|
|
|
172
172
|
queryKey: h(e)
|
|
173
173
|
}), g = (e) => s("getCreditCards", e), pn = (e) => o({
|
|
174
174
|
queryFn: async ({ queryKey: t, signal: n }) => {
|
|
175
|
-
let { data: r } = await
|
|
175
|
+
let { data: r } = await ke({
|
|
176
176
|
...e,
|
|
177
177
|
...t[0],
|
|
178
178
|
signal: n,
|
|
@@ -183,7 +183,7 @@ var s = (t, n, r, i) => {
|
|
|
183
183
|
queryKey: g(e)
|
|
184
184
|
}), _ = (e) => s("getCreditCardById", e), mn = (e) => o({
|
|
185
185
|
queryFn: async ({ queryKey: t, signal: n }) => {
|
|
186
|
-
let { data: r } = await
|
|
186
|
+
let { data: r } = await Oe({
|
|
187
187
|
...e,
|
|
188
188
|
...t[0],
|
|
189
189
|
signal: n,
|
|
@@ -201,7 +201,7 @@ var s = (t, n, r, i) => {
|
|
|
201
201
|
return r;
|
|
202
202
|
} }), v = (e) => s("getDebitCards", e), gn = (e) => o({
|
|
203
203
|
queryFn: async ({ queryKey: t, signal: n }) => {
|
|
204
|
-
let { data: r } = await
|
|
204
|
+
let { data: r } = await Me({
|
|
205
205
|
...e,
|
|
206
206
|
...t[0],
|
|
207
207
|
signal: n,
|
|
@@ -226,7 +226,7 @@ var s = (t, n, r, i) => {
|
|
|
226
226
|
return n;
|
|
227
227
|
} }), y = (e) => s("getDebitCardById", e), yn = (e) => o({
|
|
228
228
|
queryFn: async ({ queryKey: t, signal: n }) => {
|
|
229
|
-
let { data: r } = await
|
|
229
|
+
let { data: r } = await Ae({
|
|
230
230
|
...e,
|
|
231
231
|
...t[0],
|
|
232
232
|
signal: n,
|
|
@@ -251,7 +251,7 @@ var s = (t, n, r, i) => {
|
|
|
251
251
|
return r;
|
|
252
252
|
} }), b = (e) => s("getDebitCardCredentials", e), Sn = (e) => o({
|
|
253
253
|
queryFn: async ({ queryKey: t, signal: n }) => {
|
|
254
|
-
let { data: r } = await
|
|
254
|
+
let { data: r } = await je({
|
|
255
255
|
...e,
|
|
256
256
|
...t[0],
|
|
257
257
|
signal: n,
|
|
@@ -276,7 +276,7 @@ var s = (t, n, r, i) => {
|
|
|
276
276
|
return n;
|
|
277
277
|
} }), x = (e) => s("getExternalBankAccounts", e), Tn = (e) => o({
|
|
278
278
|
queryFn: async ({ queryKey: t, signal: n }) => {
|
|
279
|
-
let { data: r } = await
|
|
279
|
+
let { data: r } = await He({
|
|
280
280
|
...e,
|
|
281
281
|
...t[0],
|
|
282
282
|
signal: n,
|
|
@@ -301,7 +301,7 @@ var s = (t, n, r, i) => {
|
|
|
301
301
|
return n;
|
|
302
302
|
} }), S = (e) => s("getExternalBankAccount", e), On = (e) => o({
|
|
303
303
|
queryFn: async ({ queryKey: t, signal: n }) => {
|
|
304
|
-
let { data: r } = await
|
|
304
|
+
let { data: r } = await Ve({
|
|
305
305
|
...e,
|
|
306
306
|
...t[0],
|
|
307
307
|
signal: n,
|
|
@@ -441,7 +441,7 @@ var s = (t, n, r, i) => {
|
|
|
441
441
|
queryKey: O(e)
|
|
442
442
|
}), k = (e) => s("getBankDetails", e), Gn = (e) => o({
|
|
443
443
|
queryFn: async ({ queryKey: t, signal: n }) => {
|
|
444
|
-
let { data: r } = await
|
|
444
|
+
let { data: r } = await Se({
|
|
445
445
|
...e,
|
|
446
446
|
...t[0],
|
|
447
447
|
signal: n,
|
|
@@ -452,7 +452,7 @@ var s = (t, n, r, i) => {
|
|
|
452
452
|
queryKey: k(e)
|
|
453
453
|
}), A = (e) => s("getBankDetailsId", e), Kn = (e) => o({
|
|
454
454
|
queryFn: async ({ queryKey: t, signal: n }) => {
|
|
455
|
-
let { data: r } = await
|
|
455
|
+
let { data: r } = await Ce({
|
|
456
456
|
...e,
|
|
457
457
|
...t[0],
|
|
458
458
|
signal: n,
|
|
@@ -463,7 +463,7 @@ var s = (t, n, r, i) => {
|
|
|
463
463
|
queryKey: A(e)
|
|
464
464
|
}), j = (e) => s("getCounterparts", e), qn = (e) => o({
|
|
465
465
|
queryFn: async ({ queryKey: t, signal: n }) => {
|
|
466
|
-
let { data: r } = await
|
|
466
|
+
let { data: r } = await we({
|
|
467
467
|
...e,
|
|
468
468
|
...t[0],
|
|
469
469
|
signal: n,
|
|
@@ -474,7 +474,7 @@ var s = (t, n, r, i) => {
|
|
|
474
474
|
queryKey: j(e)
|
|
475
475
|
}), M = (e) => s("getCounterpartsId", e), Jn = (e) => o({
|
|
476
476
|
queryFn: async ({ queryKey: t, signal: n }) => {
|
|
477
|
-
let { data: r } = await
|
|
477
|
+
let { data: r } = await Te({
|
|
478
478
|
...e,
|
|
479
479
|
...t[0],
|
|
480
480
|
signal: n,
|
|
@@ -485,7 +485,7 @@ var s = (t, n, r, i) => {
|
|
|
485
485
|
queryKey: M(e)
|
|
486
486
|
}), N = (e) => s("getCounterpartsIdAddresses", e), Yn = (e) => o({
|
|
487
487
|
queryFn: async ({ queryKey: t, signal: n }) => {
|
|
488
|
-
let { data: r } = await
|
|
488
|
+
let { data: r } = await Ee({
|
|
489
489
|
...e,
|
|
490
490
|
...t[0],
|
|
491
491
|
signal: n,
|
|
@@ -496,7 +496,7 @@ var s = (t, n, r, i) => {
|
|
|
496
496
|
queryKey: N(e)
|
|
497
497
|
}), P = (e) => s("getCounterpartsIdBankAccounts", e), Xn = (e) => o({
|
|
498
498
|
queryFn: async ({ queryKey: t, signal: n }) => {
|
|
499
|
-
let { data: r } = await
|
|
499
|
+
let { data: r } = await De({
|
|
500
500
|
...e,
|
|
501
501
|
...t[0],
|
|
502
502
|
signal: n,
|
|
@@ -507,7 +507,7 @@ var s = (t, n, r, i) => {
|
|
|
507
507
|
queryKey: P(e)
|
|
508
508
|
}), F = (e) => s("getDocumentsIdNextNumbers", e), Zn = (e) => o({
|
|
509
509
|
queryFn: async ({ queryKey: t, signal: n }) => {
|
|
510
|
-
let { data: r } = await
|
|
510
|
+
let { data: r } = await Fe({
|
|
511
511
|
...e,
|
|
512
512
|
...t[0],
|
|
513
513
|
signal: n,
|
|
@@ -518,7 +518,7 @@ var s = (t, n, r, i) => {
|
|
|
518
518
|
queryKey: F(e)
|
|
519
519
|
}), I = (e) => s("getEntitiesIdPaymentMethods", e), Qn = (e) => o({
|
|
520
520
|
queryFn: async ({ queryKey: t, signal: n }) => {
|
|
521
|
-
let { data: r } = await
|
|
521
|
+
let { data: r } = await Ie({
|
|
522
522
|
...e,
|
|
523
523
|
...t[0],
|
|
524
524
|
signal: n,
|
|
@@ -529,7 +529,7 @@ var s = (t, n, r, i) => {
|
|
|
529
529
|
queryKey: I(e)
|
|
530
530
|
}), L = (e) => s("getEntitiesIdSettings", e), $n = (e) => o({
|
|
531
531
|
queryFn: async ({ queryKey: t, signal: n }) => {
|
|
532
|
-
let { data: r } = await
|
|
532
|
+
let { data: r } = await Le({
|
|
533
533
|
...e,
|
|
534
534
|
...t[0],
|
|
535
535
|
signal: n,
|
|
@@ -540,7 +540,7 @@ var s = (t, n, r, i) => {
|
|
|
540
540
|
queryKey: L(e)
|
|
541
541
|
}), R = (e) => s("getEntityUsers", e), er = (e) => o({
|
|
542
542
|
queryFn: async ({ queryKey: t, signal: n }) => {
|
|
543
|
-
let { data: r } = await
|
|
543
|
+
let { data: r } = await Re({
|
|
544
544
|
...e,
|
|
545
545
|
...t[0],
|
|
546
546
|
signal: n,
|
|
@@ -551,7 +551,7 @@ var s = (t, n, r, i) => {
|
|
|
551
551
|
queryKey: R(e)
|
|
552
552
|
}), z = (e) => s("getEntityUsersMe", e), tr = (e) => o({
|
|
553
553
|
queryFn: async ({ queryKey: t, signal: n }) => {
|
|
554
|
-
let { data: r } = await
|
|
554
|
+
let { data: r } = await ze({
|
|
555
555
|
...e,
|
|
556
556
|
...t[0],
|
|
557
557
|
signal: n,
|
|
@@ -562,7 +562,7 @@ var s = (t, n, r, i) => {
|
|
|
562
562
|
queryKey: z(e)
|
|
563
563
|
}), B = (e) => s("getEntityUsersMyEntity", e), nr = (e) => o({
|
|
564
564
|
queryFn: async ({ queryKey: t, signal: n }) => {
|
|
565
|
-
let { data: r } = await
|
|
565
|
+
let { data: r } = await Be({
|
|
566
566
|
...e,
|
|
567
567
|
...t[0],
|
|
568
568
|
signal: n,
|
|
@@ -573,7 +573,7 @@ var s = (t, n, r, i) => {
|
|
|
573
573
|
queryKey: B(e)
|
|
574
574
|
}), rr = (e) => s("getFiles", e), V = (e) => s("getLedgerAccounts", e), ir = (e) => o({
|
|
575
575
|
queryFn: async ({ queryKey: t, signal: n }) => {
|
|
576
|
-
let { data: r } = await
|
|
576
|
+
let { data: r } = await Ue({
|
|
577
577
|
...e,
|
|
578
578
|
...t[0],
|
|
579
579
|
signal: n,
|
|
@@ -605,7 +605,7 @@ var s = (t, n, r, i) => {
|
|
|
605
605
|
return n;
|
|
606
606
|
} }), H = (e) => s("getMailboxes", e), cr = (e) => o({
|
|
607
607
|
queryFn: async ({ queryKey: t, signal: n }) => {
|
|
608
|
-
let { data: r } = await
|
|
608
|
+
let { data: r } = await Ge({
|
|
609
609
|
...e,
|
|
610
610
|
...t[0],
|
|
611
611
|
signal: n,
|
|
@@ -616,7 +616,7 @@ var s = (t, n, r, i) => {
|
|
|
616
616
|
queryKey: H(e)
|
|
617
617
|
}), U = (e) => s("getMeasureUnits", e), lr = (e) => o({
|
|
618
618
|
queryFn: async ({ queryKey: t, signal: n }) => {
|
|
619
|
-
let { data: r } = await
|
|
619
|
+
let { data: r } = await qe({
|
|
620
620
|
...e,
|
|
621
621
|
...t[0],
|
|
622
622
|
signal: n,
|
|
@@ -897,7 +897,7 @@ var s = (t, n, r, i) => {
|
|
|
897
897
|
queryKey: Zr(e)
|
|
898
898
|
}), $ = (e) => s("getDepartment", e), $r = (e) => o({
|
|
899
899
|
queryFn: async ({ queryKey: t, signal: n }) => {
|
|
900
|
-
let { data: r } = await
|
|
900
|
+
let { data: r } = await Ne({
|
|
901
901
|
...e,
|
|
902
902
|
...t[0],
|
|
903
903
|
signal: n,
|
|
@@ -919,7 +919,7 @@ var s = (t, n, r, i) => {
|
|
|
919
919
|
queryKey: ei(e)
|
|
920
920
|
}), ni = (e) => s("getLocation", e), ri = (e) => o({
|
|
921
921
|
queryFn: async ({ queryKey: t, signal: n }) => {
|
|
922
|
-
let { data: r } = await
|
|
922
|
+
let { data: r } = await We({
|
|
923
923
|
...e,
|
|
924
924
|
...t[0],
|
|
925
925
|
signal: n,
|
|
@@ -930,7 +930,7 @@ var s = (t, n, r, i) => {
|
|
|
930
930
|
queryKey: ni(e)
|
|
931
931
|
}), ii = (e) => s("getOrganization", e), ai = (e) => o({
|
|
932
932
|
queryFn: async ({ queryKey: t, signal: n }) => {
|
|
933
|
-
let { data: r } = await
|
|
933
|
+
let { data: r } = await Ye({
|
|
934
934
|
...e,
|
|
935
935
|
...t[0],
|
|
936
936
|
signal: n,
|
|
@@ -992,7 +992,7 @@ var s = (t, n, r, i) => {
|
|
|
992
992
|
queryKey: pi(e)
|
|
993
993
|
}), hi = (e) => s("getMe", e), gi = (e) => o({
|
|
994
994
|
queryFn: async ({ queryKey: t, signal: n }) => {
|
|
995
|
-
let { data: r } = await
|
|
995
|
+
let { data: r } = await Ke({
|
|
996
996
|
...e,
|
|
997
997
|
...t[0],
|
|
998
998
|
signal: n,
|
|
@@ -1010,4 +1010,4 @@ var s = (t, n, r, i) => {
|
|
|
1010
1010
|
return n;
|
|
1011
1011
|
} });
|
|
1012
1012
|
//#endregion
|
|
1013
|
-
export { hn as activateCreditCardMutation, xn as activateDebitCardMutation, En as connectExternalBankAccountMutation, Pn as createAchMoneyMovementMutation, Xt as createApplicationMutation, nn as createBankAccountMutation, Fn as createBookTransferMutation,
|
|
1013
|
+
export { hn as activateCreditCardMutation, xn as activateDebitCardMutation, En as connectExternalBankAccountMutation, Pn as createAchMoneyMovementMutation, Xt as createApplicationMutation, nn as createBankAccountMutation, Fn as createBookTransferMutation, un as createCheckDepositMutation, _n as createDebitCardMutation, Yt as createVelocityControlMutation, Hn as deleteApprovalPoliciesIdMutation, Zt as deleteBankAccountApplicationMutation, or as deleteLedgerAccountsIdMutation, Er as deleteReceiptsIdMutation, _i as disableUserMutation, In as getAnalyticsPayablesOptions, C as getAnalyticsPayablesQueryKey, Ln as getAnalyticsReceiptsOptions, w as getAnalyticsReceiptsQueryKey, Rn as getAnalyticsReceivablesOptions, T as getAnalyticsReceivablesQueryKey, zn as getAnalyticsTransactionsOptions, E as getAnalyticsTransactionsQueryKey, Gt as getApplicationStatusOptions, c as getApplicationStatusQueryKey, Bn as getApprovalPoliciesOptions, D as getApprovalPoliciesQueryKey, Wn as getApprovalRequestsOptions, O as getApprovalRequestsQueryKey, cn as getBankAccountAccessQueryKey, Qt as getBankAccountApplicationOptions, l as getBankAccountApplicationQueryKey, on as getBankAccountOptions, p as getBankAccountQueryKey, dn as getBankAccountStatementsOptions, m as getBankAccountStatementsQueryKey, fn as getBankAccountTransactionsOptions, h as getBankAccountTransactionsQueryKey, tn as getBankAccountsOptions, u as getBankAccountsQueryKey, Kn as getBankDetailsIdOptions, A as getBankDetailsIdQueryKey, Gn as getBankDetailsOptions, k as getBankDetailsQueryKey, Yn as getCounterpartsIdAddressesOptions, N as getCounterpartsIdAddressesQueryKey, Xn as getCounterpartsIdBankAccountsOptions, P as getCounterpartsIdBankAccountsQueryKey, Jn as getCounterpartsIdOptions, M as getCounterpartsIdQueryKey, qn as getCounterpartsOptions, j as getCounterpartsQueryKey, mn as getCreditCardByIdOptions, _ as getCreditCardByIdQueryKey, pn as getCreditCardsOptions, g as getCreditCardsQueryKey, yn as getDebitCardByIdOptions, y as getDebitCardByIdQueryKey, Sn as getDebitCardCredentialsOptions, b as getDebitCardCredentialsQueryKey, gn as getDebitCardsOptions, v as getDebitCardsQueryKey, $r as getDepartmentOptions, $ as getDepartmentQueryKey, rn as getDepositableBankAccountsOptions, d as getDepositableBankAccountsQueryKey, Zn as getDocumentsIdNextNumbersOptions, F as getDocumentsIdNextNumbersQueryKey, Qn as getEntitiesIdPaymentMethodsOptions, I as getEntitiesIdPaymentMethodsQueryKey, $n as getEntitiesIdSettingsOptions, L as getEntitiesIdSettingsQueryKey, tr as getEntityUsersMeOptions, z as getEntityUsersMeQueryKey, nr as getEntityUsersMyEntityOptions, B as getEntityUsersMyEntityQueryKey, er as getEntityUsersOptions, R as getEntityUsersQueryKey, An as getExternalBankAccountAccessQueryKey, On as getExternalBankAccountOptions, S as getExternalBankAccountQueryKey, Tn as getExternalBankAccountsOptions, x as getExternalBankAccountsQueryKey, rr as getFilesQueryKey, ir as getLedgerAccountsOptions, V as getLedgerAccountsQueryKey, ri as getLocationOptions, ni as getLocationQueryKey, cr as getMailboxesOptions, H as getMailboxesQueryKey, gi as getMeOptions, hi as getMeQueryKey, lr as getMeasureUnitsOptions, U as getMeasureUnitsQueryKey, qt as getMerchantCategoryGroupsOptions, Kt as getMerchantCategoryGroupsQueryKey, ai as getOrganizationOptions, ii as getOrganizationQueryKey, an as getOrganizationTransfersOptions, f as getOrganizationTransfersQueryKey, dr as getOverdueRemindersOptions, ur as getOverdueRemindersQueryKey, mr as getPayablesIdHistoryOptions, K as getPayablesIdHistoryQueryKey, hr as getPayablesIdLineItemsOptions, q as getPayablesIdLineItemsQueryKey, pr as getPayablesIdOptions, G as getPayablesIdQueryKey, gr as getPayablesIdSuggestionsOptions, J as getPayablesIdSuggestionsQueryKey, fr as getPayablesOptions, W as getPayablesQueryKey, _r as getPaymentRecordsOptions, Y as getPaymentRecordsQueryKey, vr as getPaymentRemindersOptions, X as getPaymentRemindersQueryKey, yr as getPaymentTermsOptions, Z as getPaymentTermsQueryKey, Sr as getProductsIdOptions, xr as getProductsIdQueryKey, br as getProductsOptions, Q as getProductsQueryKey, Dr as getReceiptsIdQueryKey, wr as getReceiptsOptions, Cr as getReceiptsQueryKey, Fr as getReceivablesIdHistoryQueryKey, Ir as getReceivablesIdMailsQueryKey, Pr as getReceivablesIdOptions, Rr as getReceivablesIdPdfLinkOptions, Lr as getReceivablesIdPdfLinkQueryKey, Nr as getReceivablesIdQueryKey, Ar as getReceivablesOptions, kr as getReceivablesQueryKey, Mr as getReceivablesRequiredFieldsOptions, jr as getReceivablesRequiredFieldsQueryKey, Vr as getRecurrencesIdOptions, Br as getRecurrencesIdQueryKey, zr as getRecurrencesQueryKey, Xr as getTransactionsIdExpenseHistoryOptions, Yr as getTransactionsIdExpenseHistoryQueryKey, Jr as getTransactionsIdOptions, qr as getTransactionsIdQueryKey, Ur as getTransactionsOptions, Hr as getTransactionsQueryKey, Gr as getTransactionsValidationsOptions, Wr as getTransactionsValidationsQueryKey, di as getUserDataOptions, ui as getUserDataQueryKey, mi as getUsersOptions, pi as getUsersQueryKey, Jt as getVelocityControlsQueryKey, ln as grantBankAccountAccessMutation, jn as grantExternalBankAccountAccessMutation, Mn as linkExternalBankAccountMutation, Qr as listDepartmentsOptions, Zr as listDepartmentsQueryKey, ti as listLocationsOptions, ei as listLocationsQueryKey, li as listRolePermissionsOptions, ci as listRolePermissionsQueryKey, si as listRolesOptions, oi as listRolesQueryKey, vn as manageDebitCardAccessMutation, Un as patchApprovalPoliciesIdMutation, sr as patchLedgerAccountsIdMutation, Or as patchReceiptsIdMutation, Vn as postApprovalPoliciesMutation, ar as postLedgerAccountsMutation, Tr as postReceiptsUploadFromFileMutation, Kr as putTransactionsValidationsMutation, Cn as setDebitCardLockStatusMutation, en as submitApplicationMutation, Dn as unlinkExternalBankAccountMutation, $t as updateApplicationMutation, sn as updateBankAccountMutation, bn as updateDebitCardMutation, kn as updateExternalBankAccountMutation, fi as upsertUserDataMutation, Nn as validateExternalBankAccountMutation, wn as verifyDebitCardMutation };
|
package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js
CHANGED
|
@@ -162,7 +162,19 @@ var n = (e) => (e.client ?? t).post({
|
|
|
162
162
|
}],
|
|
163
163
|
url: "/embedded-banking/v1/bank-accounts/depositable",
|
|
164
164
|
...e
|
|
165
|
-
}), g = (e) => (e
|
|
165
|
+
}), g = (e) => (e?.client ?? t).get({
|
|
166
|
+
security: [{
|
|
167
|
+
key: "APPToken",
|
|
168
|
+
scheme: "bearer",
|
|
169
|
+
type: "http"
|
|
170
|
+
}, {
|
|
171
|
+
key: "USERToken",
|
|
172
|
+
scheme: "bearer",
|
|
173
|
+
type: "http"
|
|
174
|
+
}],
|
|
175
|
+
url: "/embedded-banking/v1/bank-accounts/transfers",
|
|
176
|
+
...e
|
|
177
|
+
}), _ = (e) => (e.client ?? t).get({
|
|
166
178
|
security: [{
|
|
167
179
|
key: "APPToken",
|
|
168
180
|
scheme: "bearer",
|
|
@@ -174,7 +186,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
174
186
|
}],
|
|
175
187
|
url: "/embedded-banking/v1/bank-accounts/{id}",
|
|
176
188
|
...e
|
|
177
|
-
}),
|
|
189
|
+
}), v = (e) => (e.client ?? t).patch({
|
|
178
190
|
security: [{
|
|
179
191
|
key: "APPToken",
|
|
180
192
|
scheme: "bearer",
|
|
@@ -190,7 +202,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
190
202
|
"Content-Type": "application/json",
|
|
191
203
|
...e.headers
|
|
192
204
|
}
|
|
193
|
-
}),
|
|
205
|
+
}), y = (e) => (e.client ?? t).get({
|
|
194
206
|
security: [{
|
|
195
207
|
key: "APPToken",
|
|
196
208
|
scheme: "bearer",
|
|
@@ -202,7 +214,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
202
214
|
}],
|
|
203
215
|
url: "/embedded-banking/v1/bank-accounts/{id}/access",
|
|
204
216
|
...e
|
|
205
|
-
}),
|
|
217
|
+
}), b = (e) => (e.client ?? t).post({
|
|
206
218
|
security: [{
|
|
207
219
|
key: "APPToken",
|
|
208
220
|
scheme: "bearer",
|
|
@@ -218,7 +230,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
218
230
|
"Content-Type": "application/json",
|
|
219
231
|
...e.headers
|
|
220
232
|
}
|
|
221
|
-
}),
|
|
233
|
+
}), x = (e) => (e.client ?? t).post({
|
|
222
234
|
security: [{
|
|
223
235
|
key: "USERToken",
|
|
224
236
|
scheme: "bearer",
|
|
@@ -230,18 +242,6 @@ var n = (e) => (e.client ?? t).post({
|
|
|
230
242
|
"Content-Type": "application/json",
|
|
231
243
|
...e.headers
|
|
232
244
|
}
|
|
233
|
-
}), x = (e) => (e.client ?? t).get({
|
|
234
|
-
security: [{
|
|
235
|
-
key: "APPToken",
|
|
236
|
-
scheme: "bearer",
|
|
237
|
-
type: "http"
|
|
238
|
-
}, {
|
|
239
|
-
key: "USERToken",
|
|
240
|
-
scheme: "bearer",
|
|
241
|
-
type: "http"
|
|
242
|
-
}],
|
|
243
|
-
url: "/embedded-banking/v1/bank-accounts/{id}/statements",
|
|
244
|
-
...e
|
|
245
245
|
}), S = (e) => (e.client ?? t).get({
|
|
246
246
|
security: [{
|
|
247
247
|
key: "APPToken",
|
|
@@ -252,7 +252,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
252
252
|
scheme: "bearer",
|
|
253
253
|
type: "http"
|
|
254
254
|
}],
|
|
255
|
-
url: "/embedded-banking/v1/bank-accounts/{id}/statements
|
|
255
|
+
url: "/embedded-banking/v1/bank-accounts/{id}/statements",
|
|
256
256
|
...e
|
|
257
257
|
}), C = (e) => (e.client ?? t).get({
|
|
258
258
|
security: [{
|
|
@@ -264,7 +264,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
264
264
|
scheme: "bearer",
|
|
265
265
|
type: "http"
|
|
266
266
|
}],
|
|
267
|
-
url: "/embedded-banking/v1/bank-accounts/{id}/
|
|
267
|
+
url: "/embedded-banking/v1/bank-accounts/{id}/statements/{statementId}",
|
|
268
268
|
...e
|
|
269
269
|
}), w = (e) => (e.client ?? t).get({
|
|
270
270
|
security: [{
|
|
@@ -276,7 +276,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
276
276
|
scheme: "bearer",
|
|
277
277
|
type: "http"
|
|
278
278
|
}],
|
|
279
|
-
url: "/embedded-banking/v1/bank-accounts/{id}/transactions
|
|
279
|
+
url: "/embedded-banking/v1/bank-accounts/{id}/transactions",
|
|
280
280
|
...e
|
|
281
281
|
}), T = (e) => (e.client ?? t).get({
|
|
282
282
|
security: [{
|
|
@@ -288,7 +288,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
288
288
|
scheme: "bearer",
|
|
289
289
|
type: "http"
|
|
290
290
|
}],
|
|
291
|
-
url: "/embedded-banking/v1/bank-accounts/{id}/
|
|
291
|
+
url: "/embedded-banking/v1/bank-accounts/{id}/transactions/download",
|
|
292
292
|
...e
|
|
293
293
|
}), E = (e) => (e?.client ?? t).get({
|
|
294
294
|
security: [{
|
|
@@ -2049,4 +2049,4 @@ var n = (e) => (e.client ?? t).post({
|
|
|
2049
2049
|
...e
|
|
2050
2050
|
});
|
|
2051
2051
|
//#endregion
|
|
2052
|
-
export { O as activateCreditCard, P as activateDebitCard, dn as bulkUpdateDepartmentMembers, vn as bulkUpdateLocationMembers, xn as bulkUpdateRoleMembers, z as connectExternalBankAccount, q as createAchMoneyMovement, s as createApplication, p as createBankAccount, J as createBookTransfer,
|
|
2052
|
+
export { O as activateCreditCard, P as activateDebitCard, dn as bulkUpdateDepartmentMembers, vn as bulkUpdateLocationMembers, xn as bulkUpdateRoleMembers, z as connectExternalBankAccount, q as createAchMoneyMovement, s as createApplication, p as createBankAccount, J as createBookTransfer, x as createCheckDeposit, A as createDebitCard, sn as createDepartment, mn as createLocation, En as createUser, o as createVelocityControl, cn as deactivateDepartment, hn as deactivateLocation, te as deleteApprovalPoliciesId, c as deleteBankAccountApplication, de as deleteCounterpartsId, ye as deleteCounterpartsIdBankAccountsId, Se as deleteEntitiesIdLogo, je as deleteFilesId, Pe as deleteLedgerAccountsId, ze as deleteMeasureUnitsId, Ke as deletePayablesId, et as deletePayablesIdFile, bt as deleteProductsId, Tt as deleteReceiptsId, At as deleteReceivablesId, kn as disableUser, T as downloadBankAccountTransactions, Y as getAnalyticsPayables, X as getAnalyticsReceipts, Z as getAnalyticsReceivables, Q as getAnalyticsTransactions, r as getApiWidgetGatewayInit, i as getApplicationStatus, $ as getApprovalPolicies, re as getApprovalRequests, _ as getBankAccount, y as getBankAccountAccess, l as getBankAccountApplication, C as getBankAccountStatement, S as getBankAccountStatements, w as getBankAccountTransactions, f as getBankAccounts, oe as getBankDetails, ce as getBankDetailsId, le as getCounterparts, fe as getCounterpartsId, me as getCounterpartsIdAddresses, _e as getCounterpartsIdBankAccounts, D as getCreditCardById, E as getCreditCards, M as getDebitCardById, F as getDebitCardCredentials, k as getDebitCards, ln as getDepartment, h as getDepositableBankAccounts, fn as getDisclosures, xe as getDocumentsIdNextNumbers, we as getEntitiesIdPaymentMethods, Te as getEntitiesIdSettings, De as getEntityUsers, Oe as getEntityUsersMe, ke as getEntityUsersMyEntity, V as getExternalBankAccount, U as getExternalBankAccountAccess, R as getExternalBankAccounts, Me as getLedgerAccounts, gn as getLocation, Ie as getMailboxes, Dn as getMe, Le as getMeasureUnits, a as getMerchantCategoryGroups, yn as getOrganization, g as getOrganizationTransfers, Ve as getOverdueReminders, Ue as getPayables, qe as getPayablesId, tt as getPayablesIdHistory, nt as getPayablesIdLineItems, lt as getPayablesIdSuggestions, pt as getPaymentRecords, ht as getPaymentReminders, _t as getPaymentTerms, vt as getProducts, xt as getProductsId, Ct as getReceipts, Dt as getReceivables, jt as getReceivablesId, Lt as getReceivablesIdHistory, Vt as getReceivablesIdPdfLink, kt as getReceivablesRequiredFields, Wt as getRecurrencesId, Yt as getTransactions, Qt as getTransactionsId, tn as getTransactionsIdExpenseHistory, Xt as getTransactionsValidations, Cn as getUserData, Tn as getUsers, b as grantBankAccountAccess, W as grantExternalBankAccountAccess, G as linkExternalBankAccount, on as listDepartments, pn as listLocations, Sn as listRolePermissions, bn as listRoles, m as manageBankAccountAccess, j as manageDebitCardAccess, ne as patchApprovalPoliciesId, pe as patchCounterpartsId, ge as patchCounterpartsIdAddressesId, be as patchCounterpartsIdBankAccountsId, Ee as patchEntitiesIdSettings, Fe as patchLedgerAccountsId, Be as patchMeasureUnitsId, Je as patchPayablesId, St as patchProductsId, Et as patchReceiptsId, Mt as patchReceivablesId, Gt as patchRecurrencesId, $t as patchTransactionsId, n as postApiWidgetGatewayDisclosureAcceptance, ee as postApprovalPolicies, ie as postApprovalRequestsIdApprove, ae as postApprovalRequestsIdReject, se as postBankDetails, ue as postCounterparts, he as postCounterpartsIdAddresses, ve as postCounterpartsIdBankAccounts, Ae as postFiles, Ne as postLedgerAccounts, Re as postMeasureUnits, He as postOverdueReminders, We as postPayables, Ye as postPayablesIdApprovePaymentOperation, Xe as postPayablesIdAttachFile, Ze as postPayablesIdCancel, Qe as postPayablesIdDuplicatesIdConfirm, $e as postPayablesIdDuplicatesIdDismiss, it as postPayablesIdMarkAsPaid, at as postPayablesIdReject, ot as postPayablesIdReopen, st as postPayablesIdSchedulePayment, ct as postPayablesIdSubmitForApproval, ut as postPayablesIdValidate, Ge as postPayablesUploadFromFile, dt as postPaymentIntentsIdCancel, ft as postPaymentLinks, mt as postPaymentRecords, gt as postPaymentReminders, yt as postProducts, wt as postReceiptsUploadFromFile, Ot as postReceivables, Nt as postReceivablesIdAccept, Pt as postReceivablesIdCancel, Ft as postReceivablesIdClone, It as postReceivablesIdDecline, Rt as postReceivablesIdIssue, zt as postReceivablesIdMarkAsPaid, Bt as postReceivablesIdMarkAsUncollectible, Ht as postReceivablesIdSend, Ut as postRecurrences, Kt as postRecurrencesIdCancel, qt as postRecurrencesIdPause, Jt as postRecurrencesIdResume, en as postTransactionsIdApprove, nn as postTransactionsIdReject, rn as postTransactionsIdReopen, an as postTransactionsIdSubmit, Ce as putEntitiesIdLogo, rt as putPayablesIdLineItems, Zt as putTransactionsValidations, I as setDebitCardLockStatus, d as submitApplication, B as unlinkExternalBankAccount, u as updateApplication, v as updateBankAccount, N as updateDebitCard, un as updateDepartment, H as updateExternalBankAccount, _n as updateLocation, On as updateUser, wn as upsertUserData, K as validateExternalBankAccount, L as verifyDebitCard };
|
package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region ../../libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
|
|
2
|
-
var e = "@tesouro/embedded-components-react", t = "0.7.
|
|
2
|
+
var e = "@tesouro/embedded-components-react", t = "0.7.41", n = "8fc402322752bda528f422bd8c30d412d5096566", r = Object.freeze({
|
|
3
3
|
library_name: e,
|
|
4
4
|
library_version: t,
|
|
5
5
|
library_sha: n
|
package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { isPaginatedAccountsQueryInFlight as e } from "./index2.js";
|
|
|
2
2
|
import "./index3.js";
|
|
3
3
|
import { useTransferBankAccountsQuery as t } from "./index4.js";
|
|
4
4
|
import { useTransferExternalAccountsQuery as n } from "./index5.js";
|
|
5
|
-
import {
|
|
5
|
+
import { useOrganizationTransfersQuery as r } from "./index6.js";
|
|
6
6
|
import { useCreateBookTransferMutation as i } from "./index7.js";
|
|
7
7
|
import { useCreateAchMoneyMovementMutation as a } from "./index8.js";
|
|
8
|
-
export { e as isPaginatedAccountsQueryInFlight, a as useCreateAchMoneyMovementMutation, i as useCreateBookTransferMutation, r as
|
|
8
|
+
export { e as isPaginatedAccountsQueryInFlight, a as useCreateAchMoneyMovementMutation, i as useCreateBookTransferMutation, r as useOrganizationTransfersQuery, t as useTransferBankAccountsQuery, n as useTransferExternalAccountsQuery };
|
package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index3.js
CHANGED
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
import { getBankAccountQueryKey as e,
|
|
1
|
+
import { getBankAccountQueryKey as e, getBankAccountsQueryKey as t, getOrganizationTransfersQueryKey as n } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
2
2
|
import { organizationHeaders as r } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
3
3
|
import "../../../shared/data-access/dist/index.js";
|
|
4
4
|
//#region ../../libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index3.js
|
|
5
|
-
var i = ({ client: e, organizationId:
|
|
5
|
+
var i = ({ client: e, organizationId: n }) => t({
|
|
6
6
|
client: e,
|
|
7
|
-
headers: r(
|
|
8
|
-
}), a = ({ client: e, organizationId:
|
|
7
|
+
headers: r(n)
|
|
8
|
+
}), a = ({ client: e, organizationId: t }) => n({
|
|
9
9
|
client: e,
|
|
10
|
-
headers: r(
|
|
11
|
-
path: { id: i }
|
|
10
|
+
headers: r(t)
|
|
12
11
|
}), o = ({ client: t, organizationId: n, bankAccountId: i }) => e({
|
|
13
12
|
client: t,
|
|
14
13
|
headers: r(n),
|
|
15
14
|
path: { id: i }
|
|
16
15
|
});
|
|
17
16
|
//#endregion
|
|
18
|
-
export { o as bankAccountInvalidationKeyForAccount,
|
|
17
|
+
export { o as bankAccountInvalidationKeyForAccount, i as bankAccountsInvalidationKey, a as organizationTransfersInvalidationKey };
|
package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index6.js
CHANGED
|
@@ -2,46 +2,26 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
5
|
+
import { getOrganizationTransfersOptions as e } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
6
6
|
import { withAuthEpoch as t } from "../../../shared/data-access/dist/lib/withAuthEpoch.js";
|
|
7
7
|
import { useEmbedApi as n } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
8
8
|
import { organizationHeaders as r } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
9
9
|
import "../../../shared/data-access/dist/index.js";
|
|
10
|
-
import {
|
|
11
|
-
import { useTransferBankAccountsQuery as a } from "./index4.js";
|
|
12
|
-
import { useMemo as o } from "react";
|
|
13
|
-
import { useQueries as s } from "@tanstack/react-query";
|
|
10
|
+
import { useQuery as i } from "@tanstack/react-query";
|
|
14
11
|
//#region ../../libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index6.js
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
12
|
+
function a({ enabled: a, ...o } = {}) {
|
|
13
|
+
let { client: s, organizationId: c, widgetToken: l, authEpoch: u, organizationStatus: d } = n(), f = !!(c && l) && (a === !0 || a === void 0);
|
|
14
|
+
return i({
|
|
18
15
|
...t(e({
|
|
19
|
-
client:
|
|
20
|
-
headers:
|
|
21
|
-
|
|
22
|
-
query: { limit: u }
|
|
16
|
+
client: s,
|
|
17
|
+
headers: r(c),
|
|
18
|
+
query: o
|
|
23
19
|
}), {
|
|
24
|
-
authEpoch:
|
|
25
|
-
organizationStatus:
|
|
26
|
-
}),
|
|
27
|
-
enabled:
|
|
28
|
-
})
|
|
29
|
-
return {
|
|
30
|
-
mergedTransfers: o(() => {
|
|
31
|
-
let e = /* @__PURE__ */ new Map();
|
|
32
|
-
for (let t of b) for (let n of t.data?.data ?? []) e.set(n.id, n);
|
|
33
|
-
return [...e.values()].sort((e, t) => t.date.localeCompare(e.date));
|
|
34
|
-
}, [b]),
|
|
35
|
-
accountIds: y,
|
|
36
|
-
isLoading: i(v) || b.some((e) => e.isLoading && e.fetchStatus !== "idle"),
|
|
37
|
-
isError: v.isError || b.some((e) => e.isError),
|
|
38
|
-
refetch: () => {
|
|
39
|
-
v.refetch();
|
|
40
|
-
for (let e of b) e.refetch();
|
|
41
|
-
},
|
|
42
|
-
accountsQuery: v,
|
|
43
|
-
transferQueries: b
|
|
44
|
-
};
|
|
20
|
+
authEpoch: u,
|
|
21
|
+
organizationStatus: d
|
|
22
|
+
}, { carryWithinOrg: !0 }),
|
|
23
|
+
enabled: f
|
|
24
|
+
});
|
|
45
25
|
}
|
|
46
26
|
//#endregion
|
|
47
|
-
export {
|
|
27
|
+
export { a as useOrganizationTransfersQuery };
|