@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.
Files changed (36) hide show
  1. package/README.md +2 -2
  2. package/dist/fixtures/index.d.ts +1 -1
  3. package/dist/index.d.ts +21 -14
  4. package/dist/lib/CounterpartsWidget.d.ts +16 -14
  5. package/dist/lib/CounterpartsWidgetPublic.d.ts +16 -14
  6. package/dist/lib/CustomersWidget.d.ts +16 -14
  7. package/dist/lib/TransfersWidget.d.ts +5 -0
  8. package/dist/lib/WidgetSuite.d.ts +5 -0
  9. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/fieldInput/formatPhoneNumberInput.js +2 -2
  10. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/mocks/bankAccounts.js +5 -5
  11. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/lib/CounterpartsWidget/CounterpartsWidget.js +30 -29
  12. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/lib/CounterpartsWidget/constants.js +6 -6
  13. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/lib/CounterpartsWidget/useCounterpartsTable.js +143 -95
  14. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/lib/CounterpartsWidget/useCounterpartsWidget.js +60 -48
  15. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/mocks/labels.js +1 -1
  16. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/ui/dist/index.js +4 -4
  17. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/ui/dist/index2.js +22 -15
  18. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/ui/dist/index3.js +137 -135
  19. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/helpers.js +106 -108
  20. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +2 -2
  21. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js +50 -50
  22. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +22 -22
  23. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  24. package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index.js +2 -2
  25. package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index3.js +6 -7
  26. package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index6.js +14 -34
  27. package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index7.js +16 -13
  28. package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index8.js +4 -10
  29. package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/lib/TransfersWidget/TransfersWidgetInner.js +99 -75
  30. package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/lib/TransfersWidget/featureLabels.js +2 -1
  31. package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/lib/TransfersWidget/useTransfersPageState.js +49 -0
  32. package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/mocks/labels.js +2 -1
  33. package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/mocks/transfers.js +103 -85
  34. package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransfersWidget/TransfersWidget.js +73 -61
  35. package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransfersWidget/labels.js +3 -0
  36. 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, getBankAccountTransfers as xe, getBankAccounts as Se, getBankDetails as Ce, getBankDetailsId as we, getCounterparts as Te, getCounterpartsId as Ee, getCounterpartsIdAddresses as De, getCounterpartsIdBankAccounts as Oe, getCreditCardById as ke, getCreditCards as Ae, getDebitCardById as je, getDebitCardCredentials as Me, getDebitCards as Ne, getDepartment as Pe, getDepositableBankAccounts as Fe, getDocumentsIdNextNumbers as Ie, getEntitiesIdPaymentMethods as Le, getEntitiesIdSettings as Re, getEntityUsers as ze, getEntityUsersMe as Be, getEntityUsersMyEntity as Ve, getExternalBankAccount as He, getExternalBankAccounts as Ue, getLedgerAccounts as We, getLocation as Ge, getMailboxes as Ke, getMe as qe, getMeasureUnits as Je, getMerchantCategoryGroups as Ye, getOrganization 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";
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 Ye({
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 Se({
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 Fe({
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("getBankAccount", e), an = (e) => o({
108
+ }), f = (e) => s("getOrganizationTransfers", e), an = (e) => o({
109
109
  queryFn: async ({ queryKey: t, signal: n }) => {
110
- let { data: r } = await _e({
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
- }), on = (e) => ({ mutationFn: async (t) => {
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
- } }), sn = (e) => s("getBankAccountAccess", e), cn = (e) => ({ mutationFn: async (t) => {
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
- } }), ln = (e) => ({ mutationFn: async (t) => {
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
- } }), p = (e) => s("getBankAccountStatements", e), un = (e) => o({
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("getBankAccountTransfers", e), fn = (e) => o({
162
+ }), h = (e) => s("getBankAccountTransactions", e), fn = (e) => o({
163
163
  queryFn: async ({ queryKey: t, signal: n }) => {
164
- let { data: r } = await xe({
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 Ae({
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 ke({
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 Ne({
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 je({
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 Me({
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 Ue({
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 He({
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 Ce({
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 we({
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 Te({
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 Ee({
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 De({
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 Oe({
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 Ie({
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 Le({
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 Re({
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 ze({
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 Be({
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 Ve({
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 We({
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 Ke({
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 Je({
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 Pe({
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 Ge({
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 Xe({
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 qe({
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, ln 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, sn as getBankAccountAccessQueryKey, Qt as getBankAccountApplicationOptions, l as getBankAccountApplicationQueryKey, an as getBankAccountOptions, f as getBankAccountQueryKey, un as getBankAccountStatementsOptions, p as getBankAccountStatementsQueryKey, dn as getBankAccountTransactionsOptions, m as getBankAccountTransactionsQueryKey, fn as getBankAccountTransfersOptions, h as getBankAccountTransfersQueryKey, 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, 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, cn 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, on as updateBankAccountMutation, bn as updateDebitCardMutation, kn as updateExternalBankAccountMutation, fi as upsertUserDataMutation, Nn as validateExternalBankAccountMutation, wn as verifyDebitCardMutation };
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 };
@@ -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.client ?? t).get({
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
- }), _ = (e) => (e.client ?? t).patch({
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
- }), v = (e) => (e.client ?? t).get({
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
- }), y = (e) => (e.client ?? t).post({
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
- }), b = (e) => (e.client ?? t).post({
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/{statementId}",
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}/transactions",
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/download",
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}/transfers",
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, b 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, w 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, g as getBankAccount, v as getBankAccountAccess, l as getBankAccountApplication, S as getBankAccountStatement, x as getBankAccountStatements, C as getBankAccountTransactions, T as getBankAccountTransfers, 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, 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, y 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, _ 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 };
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 };
@@ -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.37", n = "212e7a3c4a8ebaf5478e3dcf9ea079ad9a76f2b9", r = Object.freeze({
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
@@ -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 { useMergedRecentBankAccountTransfersQuery as r } from "./index6.js";
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 useMergedRecentBankAccountTransfersQuery, t as useTransferBankAccountsQuery, n as useTransferExternalAccountsQuery };
8
+ export { e as isPaginatedAccountsQueryInFlight, a as useCreateAchMoneyMovementMutation, i as useCreateBookTransferMutation, r as useOrganizationTransfersQuery, t as useTransferBankAccountsQuery, n as useTransferExternalAccountsQuery };
@@ -1,18 +1,17 @@
1
- import { getBankAccountQueryKey as e, getBankAccountTransfersQueryKey as t, getBankAccountsQueryKey as n } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
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: t }) => n({
5
+ var i = ({ client: e, organizationId: n }) => t({
6
6
  client: e,
7
- headers: r(t)
8
- }), a = ({ client: e, organizationId: n, bankAccountId: i }) => t({
7
+ headers: r(n)
8
+ }), a = ({ client: e, organizationId: t }) => n({
9
9
  client: e,
10
- headers: r(n),
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, a as bankAccountTransfersInvalidationKeyForAccount, i as bankAccountsInvalidationKey };
17
+ export { o as bankAccountInvalidationKeyForAccount, i as bankAccountsInvalidationKey, a as organizationTransfersInvalidationKey };
@@ -2,46 +2,26 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { getBankAccountTransfersOptions as e } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
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 { isPaginatedAccountsQueryInFlight as i } from "./index2.js";
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
- var c = 25;
16
- function l({ enabled: l, transfersPerAccount: u = c } = {}) {
17
- let { client: d, organizationId: f, widgetToken: p, authEpoch: m, organizationStatus: h } = n(), g = r(f), _ = !!(f && p) && (l === !0 || l === void 0), v = a({ enabled: _ }), y = o(() => [...v.data?.data?.map((e) => e.id).filter(Boolean) ?? []].sort(), [v.data?.data]), b = s({ queries: y.map((n) => ({
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: d,
20
- headers: g,
21
- path: { id: n },
22
- query: { limit: u }
16
+ client: s,
17
+ headers: r(c),
18
+ query: o
23
19
  }), {
24
- authEpoch: m,
25
- organizationStatus: h
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 { l as useMergedRecentBankAccountTransfersQuery };
27
+ export { a as useOrganizationTransfersQuery };