@tesouro/embedded-components-react 0.5.226 → 0.5.228
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -21
- package/dist/index.d.ts +54 -34
- package/dist/index.js +1 -1
- package/dist/lib/ReceivablesWidget.d.ts +54 -34
- package/dist/lib/ReceivablesWidget.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/balances-widget/feature/dist/index3.js +41 -39
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index12.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index2.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index3.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index4.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/feature/dist/index9.js +150 -147
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/data-access/dist/index5.js +46 -51
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/index7.js +130 -128
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index18.js +31 -32
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index19.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index2.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index21.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index22.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index3.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index4.js +36 -37
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/data-access/dist/index2.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/feature/dist/index4.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/data-access/dist/index2.js +6 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/data-access/dist/index3.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/data-access/dist/index4.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/data-access/dist/index5.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index6.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index7.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index8.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/index13.js +154 -150
- package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/data-access/dist/index7.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/cards-widget/data-access/dist/index2.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/cards-widget/data-access/dist/index3.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/index9.js +151 -149
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/data-access/dist/index2.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/data-access/dist/index3.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index15.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index17.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index18.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index19.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index2.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index3.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index4.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index5.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index6.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index8.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index9.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index24.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index27.js +89 -87
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index5.js +133 -130
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index8.js +36 -34
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index10.js +33 -63
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index11.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index12.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index3.js +40 -39
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index12.js +36 -141
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index13.js +26 -16
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index17.js +58 -37
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index18.js +228 -122
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index19.js +300 -147
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index20.js +34 -37
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index21.js +126 -122
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index22.js +150 -58
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index23.js +38 -91
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index24.js +113 -107
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index25.js +98 -231
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index26.js +111 -27
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index27.js +25 -624
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index28.js +631 -39
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index29.js +41 -40
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index30.js +35 -74
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index31.js +73 -115
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index32.js +115 -313
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index33.js +325 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index7.js +15 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index.js +11 -12
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index14.js +42 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index15.js +19 -3
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index16.js +73 -3
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index17.js +3 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index18.js +16 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index19.js +32 -4
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index20.js +304 -11
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index22.js +42 -258
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index23.js +62 -38
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index24.js +485 -61
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index25.js +90 -480
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index27.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index28.js +3 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index29.js +0 -3
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index30.js +100 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index31.js +23 -95
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index32.js +231 -23
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index33.js +3 -236
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index34.js +249 -3
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index35.js +78 -234
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index36.js +53 -87
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index37.js +343 -49
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index4.js +29 -20
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/data-access/dist/index4.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/index9.js +209 -207
- package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index4.js +10 -5
- package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index5.js +10 -5
- package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index6.js +11 -6
- package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index2.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index3.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/settings-widget/profile/data-access/dist/index2.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index12.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index13.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index14.js +30 -28
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index17.js +28 -26
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index18.js +37 -34
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index21.js +28 -26
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index22.js +37 -34
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index17.js +294 -292
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index5.js +58 -58
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/data-access/dist/lib/approvalPoliciesApi.js +47 -48
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index3.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index5.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index7.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +4 -3
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/EmbedApiContext.js +14 -13
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/allPages.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/applicationStatusQueryOptions.js +16 -15
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/bank-account/useAllBankAccountsQuery.js +7 -5
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/debit-card/useAllDebitCardsQuery.js +7 -5
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/disclosures/useDisclosuresQuery.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/external-bank-account/useAllExternalBankAccountsQuery.js +7 -5
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/merchant-category-group/useAllMerchantCategoryGroupsQuery.js +28 -29
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/organizationStatus.js +10 -0
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/reference-data/useLedgerAccountsQuery.js +26 -27
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/reference-data/usePaymentTermsQuery.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js +189 -211
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +43 -59
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/role/useAllOrganizationRolesQuery.js +31 -32
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/role/useRolePermissionsQueries.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useCurrentUserQuery.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useGetUserDataQuery.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useMailboxAddress.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useMyEntityQuery.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/user/useAllOrganizationUsersQuery.js +33 -34
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/withAuthEpoch.js +33 -22
- package/dist/libs/tesouro-embedded-components-react/shared/expense-requirements/data-access/dist/index3.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/RootWidgetProvider.js +43 -32
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/WidgetProvider.js +138 -127
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/deriveOrganizationStatus.js +6 -0
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/useWidgetFetch.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index10.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index2.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index3.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index4.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index9.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index6.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/index6.js +60 -58
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index26.js +0 -106
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index38.js +0 -353
package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js
CHANGED
|
@@ -1475,15 +1475,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
1475
1475
|
"Content-Type": "application/json",
|
|
1476
1476
|
...e.headers
|
|
1477
1477
|
}
|
|
1478
|
-
}), Nt = (e) => (e.client ?? t).
|
|
1479
|
-
security: [{
|
|
1480
|
-
key: "HTTPBearer",
|
|
1481
|
-
scheme: "bearer",
|
|
1482
|
-
type: "http"
|
|
1483
|
-
}],
|
|
1484
|
-
url: "/finops/v1/receivables/{receivable_id}/history",
|
|
1485
|
-
...e
|
|
1486
|
-
}), Pt = (e) => (e.client ?? t).post({
|
|
1478
|
+
}), Nt = (e) => (e.client ?? t).post({
|
|
1487
1479
|
security: [{
|
|
1488
1480
|
key: "HTTPBearer",
|
|
1489
1481
|
scheme: "bearer",
|
|
@@ -1491,15 +1483,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
1491
1483
|
}],
|
|
1492
1484
|
url: "/finops/v1/receivables/{receivable_id}/issue",
|
|
1493
1485
|
...e
|
|
1494
|
-
}),
|
|
1495
|
-
security: [{
|
|
1496
|
-
key: "HTTPBearer",
|
|
1497
|
-
scheme: "bearer",
|
|
1498
|
-
type: "http"
|
|
1499
|
-
}],
|
|
1500
|
-
url: "/finops/v1/receivables/{receivable_id}/mails",
|
|
1501
|
-
...e
|
|
1502
|
-
}), It = (e) => (e.client ?? t).post({
|
|
1486
|
+
}), Pt = (e) => (e.client ?? t).post({
|
|
1503
1487
|
security: [{
|
|
1504
1488
|
key: "HTTPBearer",
|
|
1505
1489
|
scheme: "bearer",
|
|
@@ -1511,7 +1495,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
1511
1495
|
"Content-Type": "application/json",
|
|
1512
1496
|
...e.headers
|
|
1513
1497
|
}
|
|
1514
|
-
}),
|
|
1498
|
+
}), Ft = (e) => (e.client ?? t).post({
|
|
1515
1499
|
security: [{
|
|
1516
1500
|
key: "HTTPBearer",
|
|
1517
1501
|
scheme: "bearer",
|
|
@@ -1523,7 +1507,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
1523
1507
|
"Content-Type": "application/json",
|
|
1524
1508
|
...e.headers
|
|
1525
1509
|
}
|
|
1526
|
-
}),
|
|
1510
|
+
}), It = (e) => (e.client ?? t).post({
|
|
1527
1511
|
security: [{
|
|
1528
1512
|
key: "HTTPBearer",
|
|
1529
1513
|
scheme: "bearer",
|
|
@@ -1535,7 +1519,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
1535
1519
|
"Content-Type": "application/json",
|
|
1536
1520
|
...e.headers
|
|
1537
1521
|
}
|
|
1538
|
-
}),
|
|
1522
|
+
}), Lt = (e) => (e.client ?? t).get({
|
|
1539
1523
|
security: [{
|
|
1540
1524
|
key: "HTTPBearer",
|
|
1541
1525
|
scheme: "bearer",
|
|
@@ -1543,7 +1527,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
1543
1527
|
}],
|
|
1544
1528
|
url: "/finops/v1/receivables/{receivable_id}/pdf-link",
|
|
1545
1529
|
...e
|
|
1546
|
-
}),
|
|
1530
|
+
}), Rt = (e) => (e.client ?? t).post({
|
|
1547
1531
|
security: [{
|
|
1548
1532
|
key: "HTTPBearer",
|
|
1549
1533
|
scheme: "bearer",
|
|
@@ -1555,7 +1539,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
1555
1539
|
"Content-Type": "application/json",
|
|
1556
1540
|
...e.headers
|
|
1557
1541
|
}
|
|
1558
|
-
}),
|
|
1542
|
+
}), zt = (e) => (e.client ?? t).post({
|
|
1559
1543
|
security: [{
|
|
1560
1544
|
key: "HTTPBearer",
|
|
1561
1545
|
scheme: "bearer",
|
|
@@ -1567,7 +1551,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
1567
1551
|
"Content-Type": "application/json",
|
|
1568
1552
|
...e.headers
|
|
1569
1553
|
}
|
|
1570
|
-
}),
|
|
1554
|
+
}), Bt = (e) => (e.client ?? t).get({
|
|
1571
1555
|
security: [{
|
|
1572
1556
|
key: "HTTPBearer",
|
|
1573
1557
|
scheme: "bearer",
|
|
@@ -1575,7 +1559,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
1575
1559
|
}],
|
|
1576
1560
|
url: "/finops/v1/recurrences/{recurrence_id}",
|
|
1577
1561
|
...e
|
|
1578
|
-
}),
|
|
1562
|
+
}), Vt = (e) => (e.client ?? t).patch({
|
|
1579
1563
|
security: [{
|
|
1580
1564
|
key: "HTTPBearer",
|
|
1581
1565
|
scheme: "bearer",
|
|
@@ -1587,7 +1571,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
1587
1571
|
"Content-Type": "application/json",
|
|
1588
1572
|
...e.headers
|
|
1589
1573
|
}
|
|
1590
|
-
}),
|
|
1574
|
+
}), Ht = (e) => (e.client ?? t).get({
|
|
1591
1575
|
security: [{
|
|
1592
1576
|
key: "HTTPBearer",
|
|
1593
1577
|
scheme: "bearer",
|
|
@@ -1595,7 +1579,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
1595
1579
|
}],
|
|
1596
1580
|
url: "/finops/v1/transactions",
|
|
1597
1581
|
...e
|
|
1598
|
-
}),
|
|
1582
|
+
}), Ut = (e) => (e.client ?? t).get({
|
|
1599
1583
|
security: [{
|
|
1600
1584
|
key: "HTTPBearer",
|
|
1601
1585
|
scheme: "bearer",
|
|
@@ -1603,7 +1587,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
1603
1587
|
}],
|
|
1604
1588
|
url: "/finops/v1/transactions/validations",
|
|
1605
1589
|
...e
|
|
1606
|
-
}),
|
|
1590
|
+
}), Wt = (e) => (e.client ?? t).put({
|
|
1607
1591
|
security: [{
|
|
1608
1592
|
key: "HTTPBearer",
|
|
1609
1593
|
scheme: "bearer",
|
|
@@ -1615,7 +1599,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
1615
1599
|
"Content-Type": "application/json",
|
|
1616
1600
|
...e.headers
|
|
1617
1601
|
}
|
|
1618
|
-
}),
|
|
1602
|
+
}), Gt = (e) => (e.client ?? t).get({
|
|
1619
1603
|
security: [{
|
|
1620
1604
|
key: "HTTPBearer",
|
|
1621
1605
|
scheme: "bearer",
|
|
@@ -1623,7 +1607,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
1623
1607
|
}],
|
|
1624
1608
|
url: "/finops/v1/transactions/{transaction_id}",
|
|
1625
1609
|
...e
|
|
1626
|
-
}),
|
|
1610
|
+
}), Kt = (e) => (e.client ?? t).patch({
|
|
1627
1611
|
security: [{
|
|
1628
1612
|
key: "HTTPBearer",
|
|
1629
1613
|
scheme: "bearer",
|
|
@@ -1635,7 +1619,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
1635
1619
|
"Content-Type": "application/json",
|
|
1636
1620
|
...e.headers
|
|
1637
1621
|
}
|
|
1638
|
-
}),
|
|
1622
|
+
}), qt = (e) => (e.client ?? t).post({
|
|
1639
1623
|
security: [{
|
|
1640
1624
|
key: "HTTPBearer",
|
|
1641
1625
|
scheme: "bearer",
|
|
@@ -1643,7 +1627,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
1643
1627
|
}],
|
|
1644
1628
|
url: "/finops/v1/transactions/{transaction_id}/approve",
|
|
1645
1629
|
...e
|
|
1646
|
-
}),
|
|
1630
|
+
}), Jt = (e) => (e.client ?? t).get({
|
|
1647
1631
|
security: [{
|
|
1648
1632
|
key: "HTTPBearer",
|
|
1649
1633
|
scheme: "bearer",
|
|
@@ -1651,7 +1635,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
1651
1635
|
}],
|
|
1652
1636
|
url: "/finops/v1/transactions/{transaction_id}/expense_history",
|
|
1653
1637
|
...e
|
|
1654
|
-
}),
|
|
1638
|
+
}), Yt = (e) => (e.client ?? t).post({
|
|
1655
1639
|
security: [{
|
|
1656
1640
|
key: "HTTPBearer",
|
|
1657
1641
|
scheme: "bearer",
|
|
@@ -1663,7 +1647,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
1663
1647
|
"Content-Type": "application/json",
|
|
1664
1648
|
...e.headers
|
|
1665
1649
|
}
|
|
1666
|
-
}),
|
|
1650
|
+
}), Xt = (e) => (e.client ?? t).post({
|
|
1667
1651
|
security: [{
|
|
1668
1652
|
key: "HTTPBearer",
|
|
1669
1653
|
scheme: "bearer",
|
|
@@ -1671,7 +1655,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
1671
1655
|
}],
|
|
1672
1656
|
url: "/finops/v1/transactions/{transaction_id}/reopen",
|
|
1673
1657
|
...e
|
|
1674
|
-
}),
|
|
1658
|
+
}), Zt = (e) => (e.client ?? t).post({
|
|
1675
1659
|
security: [{
|
|
1676
1660
|
key: "HTTPBearer",
|
|
1677
1661
|
scheme: "bearer",
|
|
@@ -1683,7 +1667,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
1683
1667
|
"Content-Type": "application/json",
|
|
1684
1668
|
...e.headers
|
|
1685
1669
|
}
|
|
1686
|
-
}),
|
|
1670
|
+
}), Qt = (e) => (e?.client ?? t).get({
|
|
1687
1671
|
security: [{
|
|
1688
1672
|
key: "APPToken",
|
|
1689
1673
|
scheme: "bearer",
|
|
@@ -1695,7 +1679,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
1695
1679
|
}],
|
|
1696
1680
|
url: "/identity/v1/departments",
|
|
1697
1681
|
...e
|
|
1698
|
-
}),
|
|
1682
|
+
}), $t = (e) => (e.client ?? t).post({
|
|
1699
1683
|
security: [{
|
|
1700
1684
|
key: "APPToken",
|
|
1701
1685
|
scheme: "bearer",
|
|
@@ -1711,7 +1695,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
1711
1695
|
"Content-Type": "application/json",
|
|
1712
1696
|
...e.headers
|
|
1713
1697
|
}
|
|
1714
|
-
}),
|
|
1698
|
+
}), en = (e) => (e.client ?? t).delete({
|
|
1715
1699
|
security: [{
|
|
1716
1700
|
key: "APPToken",
|
|
1717
1701
|
scheme: "bearer",
|
|
@@ -1723,7 +1707,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
1723
1707
|
}],
|
|
1724
1708
|
url: "/identity/v1/departments/{departmentId}",
|
|
1725
1709
|
...e
|
|
1726
|
-
}),
|
|
1710
|
+
}), tn = (e) => (e.client ?? t).get({
|
|
1727
1711
|
security: [{
|
|
1728
1712
|
key: "APPToken",
|
|
1729
1713
|
scheme: "bearer",
|
|
@@ -1735,7 +1719,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
1735
1719
|
}],
|
|
1736
1720
|
url: "/identity/v1/departments/{departmentId}",
|
|
1737
1721
|
...e
|
|
1738
|
-
}),
|
|
1722
|
+
}), nn = (e) => (e.client ?? t).put({
|
|
1739
1723
|
security: [{
|
|
1740
1724
|
key: "APPToken",
|
|
1741
1725
|
scheme: "bearer",
|
|
@@ -1751,7 +1735,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
1751
1735
|
"Content-Type": "application/json",
|
|
1752
1736
|
...e.headers
|
|
1753
1737
|
}
|
|
1754
|
-
}),
|
|
1738
|
+
}), rn = (e) => (e.client ?? t).post({
|
|
1755
1739
|
security: [{
|
|
1756
1740
|
key: "APPToken",
|
|
1757
1741
|
scheme: "bearer",
|
|
@@ -1767,7 +1751,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
1767
1751
|
"Content-Type": "application/json",
|
|
1768
1752
|
...e.headers
|
|
1769
1753
|
}
|
|
1770
|
-
}),
|
|
1754
|
+
}), an = (e) => (e?.client ?? t).get({
|
|
1771
1755
|
security: [{
|
|
1772
1756
|
key: "HTTPBearer",
|
|
1773
1757
|
scheme: "bearer",
|
|
@@ -1775,7 +1759,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
1775
1759
|
}],
|
|
1776
1760
|
url: "/identity/v1/disclosures",
|
|
1777
1761
|
...e
|
|
1778
|
-
}),
|
|
1762
|
+
}), on = (e) => (e?.client ?? t).get({
|
|
1779
1763
|
security: [{
|
|
1780
1764
|
key: "APPToken",
|
|
1781
1765
|
scheme: "bearer",
|
|
@@ -1787,7 +1771,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
1787
1771
|
}],
|
|
1788
1772
|
url: "/identity/v1/locations",
|
|
1789
1773
|
...e
|
|
1790
|
-
}),
|
|
1774
|
+
}), sn = (e) => (e.client ?? t).post({
|
|
1791
1775
|
security: [{
|
|
1792
1776
|
key: "APPToken",
|
|
1793
1777
|
scheme: "bearer",
|
|
@@ -1803,7 +1787,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
1803
1787
|
"Content-Type": "application/json",
|
|
1804
1788
|
...e.headers
|
|
1805
1789
|
}
|
|
1806
|
-
}),
|
|
1790
|
+
}), cn = (e) => (e.client ?? t).delete({
|
|
1807
1791
|
security: [{
|
|
1808
1792
|
key: "APPToken",
|
|
1809
1793
|
scheme: "bearer",
|
|
@@ -1815,7 +1799,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
1815
1799
|
}],
|
|
1816
1800
|
url: "/identity/v1/locations/{locationId}",
|
|
1817
1801
|
...e
|
|
1818
|
-
}),
|
|
1802
|
+
}), ln = (e) => (e.client ?? t).get({
|
|
1819
1803
|
security: [{
|
|
1820
1804
|
key: "APPToken",
|
|
1821
1805
|
scheme: "bearer",
|
|
@@ -1827,7 +1811,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
1827
1811
|
}],
|
|
1828
1812
|
url: "/identity/v1/locations/{locationId}",
|
|
1829
1813
|
...e
|
|
1830
|
-
}),
|
|
1814
|
+
}), un = (e) => (e.client ?? t).put({
|
|
1831
1815
|
security: [{
|
|
1832
1816
|
key: "APPToken",
|
|
1833
1817
|
scheme: "bearer",
|
|
@@ -1843,7 +1827,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
1843
1827
|
"Content-Type": "application/json",
|
|
1844
1828
|
...e.headers
|
|
1845
1829
|
}
|
|
1846
|
-
}),
|
|
1830
|
+
}), dn = (e) => (e.client ?? t).post({
|
|
1847
1831
|
security: [{
|
|
1848
1832
|
key: "APPToken",
|
|
1849
1833
|
scheme: "bearer",
|
|
@@ -1859,7 +1843,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
1859
1843
|
"Content-Type": "application/json",
|
|
1860
1844
|
...e.headers
|
|
1861
1845
|
}
|
|
1862
|
-
}),
|
|
1846
|
+
}), fn = (e) => (e.client ?? t).get({
|
|
1863
1847
|
security: [{
|
|
1864
1848
|
key: "APPToken",
|
|
1865
1849
|
scheme: "bearer",
|
|
@@ -1871,7 +1855,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
1871
1855
|
}],
|
|
1872
1856
|
url: "/identity/v1/organizations/{organizationId}",
|
|
1873
1857
|
...e
|
|
1874
|
-
}),
|
|
1858
|
+
}), pn = (e) => (e?.client ?? t).get({
|
|
1875
1859
|
security: [{
|
|
1876
1860
|
key: "APPToken",
|
|
1877
1861
|
scheme: "bearer",
|
|
@@ -1883,7 +1867,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
1883
1867
|
}],
|
|
1884
1868
|
url: "/identity/v1/roles",
|
|
1885
1869
|
...e
|
|
1886
|
-
}),
|
|
1870
|
+
}), mn = (e) => (e.client ?? t).post({
|
|
1887
1871
|
security: [{
|
|
1888
1872
|
key: "APPToken",
|
|
1889
1873
|
scheme: "bearer",
|
|
@@ -1899,7 +1883,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
1899
1883
|
"Content-Type": "application/json",
|
|
1900
1884
|
...e.headers
|
|
1901
1885
|
}
|
|
1902
|
-
}),
|
|
1886
|
+
}), hn = (e) => (e.client ?? t).get({
|
|
1903
1887
|
security: [{
|
|
1904
1888
|
key: "APPToken",
|
|
1905
1889
|
scheme: "bearer",
|
|
@@ -1911,7 +1895,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
1911
1895
|
}],
|
|
1912
1896
|
url: "/identity/v1/roles/{roleId}/permissions",
|
|
1913
1897
|
...e
|
|
1914
|
-
}),
|
|
1898
|
+
}), gn = (e) => (e.client ?? t).get({
|
|
1915
1899
|
security: [{
|
|
1916
1900
|
key: "HTTPBearer",
|
|
1917
1901
|
scheme: "bearer",
|
|
@@ -1919,7 +1903,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
1919
1903
|
}],
|
|
1920
1904
|
url: "/identity/v1/user-data/{key}",
|
|
1921
1905
|
...e
|
|
1922
|
-
}),
|
|
1906
|
+
}), _n = (e) => (e.client ?? t).put({
|
|
1923
1907
|
security: [{
|
|
1924
1908
|
key: "HTTPBearer",
|
|
1925
1909
|
scheme: "bearer",
|
|
@@ -1931,7 +1915,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
1931
1915
|
"Content-Type": "application/json",
|
|
1932
1916
|
...e.headers
|
|
1933
1917
|
}
|
|
1934
|
-
}),
|
|
1918
|
+
}), vn = (e) => (e?.client ?? t).get({
|
|
1935
1919
|
security: [{
|
|
1936
1920
|
key: "APPToken",
|
|
1937
1921
|
scheme: "bearer",
|
|
@@ -1943,7 +1927,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
1943
1927
|
}],
|
|
1944
1928
|
url: "/identity/v1/users",
|
|
1945
1929
|
...e
|
|
1946
|
-
}),
|
|
1930
|
+
}), yn = (e) => (e.client ?? t).post({
|
|
1947
1931
|
security: [{
|
|
1948
1932
|
key: "APPToken",
|
|
1949
1933
|
scheme: "bearer",
|
|
@@ -1959,7 +1943,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
1959
1943
|
"Content-Type": "application/json",
|
|
1960
1944
|
...e.headers
|
|
1961
1945
|
}
|
|
1962
|
-
}),
|
|
1946
|
+
}), bn = (e) => (e.client ?? t).patch({
|
|
1963
1947
|
security: [{
|
|
1964
1948
|
key: "APPToken",
|
|
1965
1949
|
scheme: "bearer",
|
|
@@ -1975,7 +1959,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
1975
1959
|
"Content-Type": "application/json",
|
|
1976
1960
|
...e.headers
|
|
1977
1961
|
}
|
|
1978
|
-
}),
|
|
1962
|
+
}), xn = (e) => (e.client ?? t).post({
|
|
1979
1963
|
security: [{
|
|
1980
1964
|
key: "APPToken",
|
|
1981
1965
|
scheme: "bearer",
|
|
@@ -1989,4 +1973,4 @@ var n = (e) => (e.client ?? t).post({
|
|
|
1989
1973
|
...e
|
|
1990
1974
|
});
|
|
1991
1975
|
//#endregion
|
|
1992
|
-
export { O as activateCreditCard, P as activateDebitCard,
|
|
1976
|
+
export { O as activateCreditCard, P as activateDebitCard, rn as bulkUpdateDepartmentMembers, dn as bulkUpdateLocationMembers, mn as bulkUpdateRoleMembers, z as connectExternalBankAccount, K as createAchMoneyMovement, s as createApplication, p as createBankAccount, q as createBookTransfer, b as createCheckDeposit, A as createDebitCard, $t as createDepartment, sn as createLocation, yn as createUser, o as createVelocityControl, en as deactivateDepartment, cn as deactivateLocation, ee as deleteApprovalPoliciesId, c as deleteBankAccountApplication, le as deleteCounterpartsId, _e as deleteCounterpartsIdBankAccountsId, xe as deleteEntitiesIdLogo, ke as deleteFilesId, Me as deleteLedgerAccountsId, Le as deleteMeasureUnitsId, We as deletePayablesId, Qe as deletePayablesIdFile, gt as deleteProductsId, xt as deleteReceiptsId, Et as deleteReceivablesId, xn as disableUser, w as downloadBankAccountTransactions, J as getAnalyticsPayables, Y as getAnalyticsReceipts, X as getAnalyticsReceivables, Z as getAnalyticsTransactions, r as getApiWidgetGatewayInit, i as getApplicationStatus, Q as getApprovalPolicies, ne 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, ae as getBankDetails, se as getCounterparts, ue as getCounterpartsId, fe as getCounterpartsIdAddresses, he as getCounterpartsIdBankAccounts, D as getCreditCardById, E as getCreditCards, M as getDebitCardById, F as getDebitCardCredentials, k as getDebitCards, tn as getDepartment, h as getDepositableBankAccounts, an as getDisclosures, be as getDocumentsIdNextNumbers, Ce as getEntitiesIdSettings, Te as getEntityUsers, Ee as getEntityUsersMe, De as getEntityUsersMyEntity, H as getExternalBankAccountAccess, R as getExternalBankAccounts, Ae as getLedgerAccounts, ln as getLocation, Pe as getMailboxes, Fe as getMeasureUnits, a as getMerchantCategoryGroups, fn as getOrganization, ze as getOverdueReminders, Ve as getPayables, Ge as getPayablesId, $e as getPayablesIdHistory, et as getPayablesIdLineItems, st as getPayablesIdSuggestions, ut as getPaymentRecords, dt as getPaymentReminders, pt as getPaymentTerms, mt as getProducts, _t as getProductsId, yt as getReceipts, Ct as getReceivables, Dt as getReceivablesId, Lt as getReceivablesIdPdfLink, Tt as getReceivablesRequiredFields, Bt as getRecurrencesId, Ht as getTransactions, Gt as getTransactionsId, Jt as getTransactionsIdExpenseHistory, Ut as getTransactionsValidations, gn as getUserData, vn as getUsers, y as grantBankAccountAccess, U as grantExternalBankAccountAccess, W as linkExternalBankAccount, Qt as listDepartments, on as listLocations, hn as listRolePermissions, pn as listRoles, m as manageBankAccountAccess, j as manageDebitCardAccess, te as patchApprovalPoliciesId, de as patchCounterpartsId, me as patchCounterpartsIdAddressesId, ve as patchCounterpartsIdBankAccountsId, we as patchEntitiesIdSettings, Ne as patchLedgerAccountsId, Re as patchMeasureUnitsId, Ke as patchPayablesId, vt as patchProductsId, St as patchReceiptsId, Ot as patchReceivablesId, Vt as patchRecurrencesId, Kt as patchTransactionsId, n as postApiWidgetGatewayDisclosureAcceptance, $ as postApprovalPolicies, re as postApprovalRequestsIdApprove, ie as postApprovalRequestsIdReject, oe as postBankDetails, ce as postCounterparts, pe as postCounterpartsIdAddresses, ge as postCounterpartsIdBankAccounts, ye as postCounterpartsIdBankAccountsIdMakeDefault, Oe as postFiles, je as postLedgerAccounts, Ie as postMeasureUnits, Be as postOverdueReminders, He as postPayables, qe as postPayablesIdApprovePaymentOperation, Je as postPayablesIdAttachFile, Ye as postPayablesIdCancel, Xe as postPayablesIdDuplicatesIdConfirm, Ze as postPayablesIdDuplicatesIdDismiss, nt as postPayablesIdMarkAsPaid, rt as postPayablesIdReject, it as postPayablesIdReopen, at as postPayablesIdSchedulePayment, ot as postPayablesIdSubmitForApproval, ct as postPayablesIdValidate, Ue as postPayablesUploadFromFile, lt as postPaymentIntentsIdCancel, ft as postPaymentReminders, ht as postProducts, bt as postReceiptsUploadFromFile, wt as postReceivables, kt as postReceivablesIdAccept, At as postReceivablesIdCancel, jt as postReceivablesIdClone, Mt as postReceivablesIdDecline, Nt as postReceivablesIdIssue, Pt as postReceivablesIdMarkAsPaid, Ft as postReceivablesIdMarkAsPartiallyPaid, It as postReceivablesIdMarkAsUncollectible, Rt as postReceivablesIdSend, zt as postRecurrences, qt as postTransactionsIdApprove, Yt as postTransactionsIdReject, Xt as postTransactionsIdReopen, Zt as postTransactionsIdSubmit, Se as putEntitiesIdLogo, tt as putPayablesIdLineItems, Wt as putTransactionsValidations, I as setDebitCardLockStatus, d as submitApplication, B as unlinkExternalBankAccount, u as updateApplication, _ as updateBankAccount, N as updateDebitCard, nn as updateDepartment, V as updateExternalBankAccount, un as updateLocation, bn as updateUser, _n as upsertUserData, G as validateExternalBankAccount, L as verifyDebitCard };
|
|
@@ -4,33 +4,32 @@
|
|
|
4
4
|
"use client";
|
|
5
5
|
import { listRoles as e } from "../rest/sdk.gen.js";
|
|
6
6
|
import { listRolesOptions as t } from "../rest/@tanstack/react-query.gen.js";
|
|
7
|
-
import {
|
|
8
|
-
import { useEmbedApi as
|
|
9
|
-
import { organizationHeaders as
|
|
10
|
-
import { getAllPagesNextPageParam as
|
|
11
|
-
import { useMemo as
|
|
12
|
-
import { useInfiniteQuery as
|
|
7
|
+
import { withAuthEpochInfinite as n } from "../withAuthEpoch.js";
|
|
8
|
+
import { useEmbedApi as r } from "../EmbedApiContext.js";
|
|
9
|
+
import { organizationHeaders as i } from "../organizationHeaders.js";
|
|
10
|
+
import { getAllPagesNextPageParam as a, isAllPagesResolving as o, useAutoFetchNextPage as s } from "../allPages.js";
|
|
11
|
+
import { useMemo as c } from "react";
|
|
12
|
+
import { useInfiniteQuery as l } from "@tanstack/react-query";
|
|
13
13
|
//#region ../../libs/tesouro-embedded-components-react/shared/data-access/dist/lib/role/useAllOrganizationRolesQuery.js
|
|
14
|
-
var
|
|
15
|
-
function
|
|
16
|
-
let { client:
|
|
17
|
-
client:
|
|
18
|
-
headers:
|
|
19
|
-
query: { limit:
|
|
20
|
-
}),
|
|
21
|
-
|
|
22
|
-
authEpoch:
|
|
23
|
-
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
enabled: y,
|
|
14
|
+
var u = 100;
|
|
15
|
+
function d({ enabled: d } = {}) {
|
|
16
|
+
let { client: f, organizationId: p, widgetToken: m, authEpoch: h, organizationStatus: g } = r(), _ = i(p), v = !!(p && m) && (d === !0 || d === void 0), y = t({
|
|
17
|
+
client: f,
|
|
18
|
+
headers: _,
|
|
19
|
+
query: { limit: u }
|
|
20
|
+
}), b = l({
|
|
21
|
+
...n(y.queryKey, {
|
|
22
|
+
authEpoch: h,
|
|
23
|
+
organizationStatus: g
|
|
24
|
+
}, { suffix: ["all"] }),
|
|
25
|
+
enabled: v,
|
|
27
26
|
initialPageParam: void 0,
|
|
28
27
|
queryFn: async ({ signal: t, pageParam: n }) => {
|
|
29
28
|
let { data: r } = await e({
|
|
30
|
-
client:
|
|
31
|
-
headers:
|
|
29
|
+
client: f,
|
|
30
|
+
headers: _,
|
|
32
31
|
query: {
|
|
33
|
-
limit:
|
|
32
|
+
limit: u,
|
|
34
33
|
...n ? { paginationToken: n } : {}
|
|
35
34
|
},
|
|
36
35
|
signal: t,
|
|
@@ -38,21 +37,21 @@ function f({ enabled: f } = {}) {
|
|
|
38
37
|
});
|
|
39
38
|
return r;
|
|
40
39
|
},
|
|
41
|
-
getNextPageParam:
|
|
40
|
+
getNextPageParam: a
|
|
42
41
|
});
|
|
43
|
-
|
|
44
|
-
let
|
|
45
|
-
if (
|
|
46
|
-
data:
|
|
42
|
+
s(b, v);
|
|
43
|
+
let x = c(() => {
|
|
44
|
+
if (b.data) return {
|
|
45
|
+
data: b.data.pages.flatMap((e) => e.data ?? []),
|
|
47
46
|
nextPaginationToken: null,
|
|
48
47
|
prevPaginationToken: null
|
|
49
48
|
};
|
|
50
|
-
}, [
|
|
49
|
+
}, [b.data]);
|
|
51
50
|
return {
|
|
52
|
-
...
|
|
53
|
-
data:
|
|
54
|
-
isResolving:
|
|
51
|
+
...b,
|
|
52
|
+
data: x,
|
|
53
|
+
isResolving: o(b)
|
|
55
54
|
};
|
|
56
55
|
}
|
|
57
56
|
//#endregion
|
|
58
|
-
export {
|
|
57
|
+
export { d as useAllOrganizationRolesQuery };
|
|
@@ -10,14 +10,14 @@ import { useCallback as i, useMemo as a, useRef as o } from "react";
|
|
|
10
10
|
import { useQueries as s } from "@tanstack/react-query";
|
|
11
11
|
//#region ../../libs/tesouro-embedded-components-react/shared/data-access/dist/lib/role/useRolePermissionsQueries.js
|
|
12
12
|
function c({ roleIds: c, enabled: l }) {
|
|
13
|
-
let { client: u, organizationId: d, widgetToken: f, authEpoch: p,
|
|
13
|
+
let { client: u, organizationId: d, widgetToken: f, authEpoch: p, organizationStatus: m } = n(), h = r(d), g = !!(d && f) && (l === !0 || l === void 0), _ = a(() => [...new Set(c)].sort(), [c]), v = s({ queries: _.map((n) => ({
|
|
14
14
|
...t(e({
|
|
15
15
|
client: u,
|
|
16
16
|
headers: h,
|
|
17
17
|
path: { roleId: n }
|
|
18
18
|
}), {
|
|
19
19
|
authEpoch: p,
|
|
20
|
-
|
|
20
|
+
organizationStatus: m
|
|
21
21
|
}),
|
|
22
22
|
enabled: g
|
|
23
23
|
})) }), y = o(v);
|
|
@@ -9,14 +9,14 @@ import { organizationHeaders as r } from "./organizationHeaders.js";
|
|
|
9
9
|
import { useQuery as i } from "@tanstack/react-query";
|
|
10
10
|
//#region ../../libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useCurrentUserQuery.js
|
|
11
11
|
function a({ enabled: a } = {}) {
|
|
12
|
-
let { client: o, organizationId: s, widgetToken: c, authEpoch: l,
|
|
12
|
+
let { client: o, organizationId: s, widgetToken: c, authEpoch: l, organizationStatus: u } = n(), d = !!(s && c) && (a === !0 || a === void 0);
|
|
13
13
|
return i({
|
|
14
14
|
...t(e({
|
|
15
15
|
client: o,
|
|
16
16
|
headers: r(s)
|
|
17
17
|
}), {
|
|
18
18
|
authEpoch: l,
|
|
19
|
-
|
|
19
|
+
organizationStatus: u
|
|
20
20
|
}),
|
|
21
21
|
enabled: d,
|
|
22
22
|
staleTime: Infinity,
|
|
@@ -9,12 +9,12 @@ import { isUserDataNotFoundError as r } from "./isUserDataNotFoundError.js";
|
|
|
9
9
|
import { useQuery as i } from "@tanstack/react-query";
|
|
10
10
|
//#region ../../libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useGetUserDataQuery.js
|
|
11
11
|
function a({ key: a, enabled: o, defaultWhenNotFound: s }) {
|
|
12
|
-
let { client: c, widgetToken: l, authEpoch: u,
|
|
12
|
+
let { client: c, widgetToken: l, authEpoch: u, organizationStatus: d } = n(), f = !!(l && a) && o !== !1, p = e({
|
|
13
13
|
client: c,
|
|
14
14
|
path: { key: a }
|
|
15
15
|
}), m = p.queryFn, h = t(p, {
|
|
16
16
|
authEpoch: u,
|
|
17
|
-
|
|
17
|
+
organizationStatus: d
|
|
18
18
|
});
|
|
19
19
|
return i(s !== void 0 && m ? {
|
|
20
20
|
...h,
|
package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useMailboxAddress.js
CHANGED
|
@@ -9,13 +9,13 @@ import { organizationHeaders as r } from "./organizationHeaders.js";
|
|
|
9
9
|
import { useQuery as i } from "@tanstack/react-query";
|
|
10
10
|
//#region ../../libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useMailboxAddress.js
|
|
11
11
|
function a({ relatedObjectType: a, enabled: o }) {
|
|
12
|
-
let { client: s, organizationId: c, widgetToken: l, authEpoch: u,
|
|
12
|
+
let { client: s, organizationId: c, widgetToken: l, authEpoch: u, organizationStatus: d } = n(), f = !!(c && l) && (o === !0 || o === void 0), p = i({
|
|
13
13
|
...t(e({
|
|
14
14
|
client: s,
|
|
15
15
|
headers: r(c)
|
|
16
16
|
}), {
|
|
17
17
|
authEpoch: u,
|
|
18
|
-
|
|
18
|
+
organizationStatus: d
|
|
19
19
|
}),
|
|
20
20
|
enabled: f
|
|
21
21
|
});
|
package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useMyEntityQuery.js
CHANGED
|
@@ -9,14 +9,14 @@ import { organizationHeaders as r } from "./organizationHeaders.js";
|
|
|
9
9
|
import { useQuery as i } from "@tanstack/react-query";
|
|
10
10
|
//#region ../../libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useMyEntityQuery.js
|
|
11
11
|
function a({ enabled: a } = {}) {
|
|
12
|
-
let { client: o, organizationId: s, widgetToken: c, authEpoch: l,
|
|
12
|
+
let { client: o, organizationId: s, widgetToken: c, authEpoch: l, organizationStatus: u } = n(), d = !!(s && c) && (a === !0 || a === void 0), f = e({
|
|
13
13
|
client: o,
|
|
14
14
|
headers: r(s)
|
|
15
15
|
});
|
|
16
16
|
return i({
|
|
17
17
|
...t(f, {
|
|
18
18
|
authEpoch: l,
|
|
19
|
-
|
|
19
|
+
organizationStatus: u
|
|
20
20
|
}),
|
|
21
21
|
enabled: d
|
|
22
22
|
});
|