@tesouro/embedded-components-react 0.2.318 → 0.2.320
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 +5 -4
- package/dist/index.css +9 -0
- package/dist/index.d.ts +4 -1
- package/dist/index.js +1 -1
- package/dist/lib/BillPayWidget.d.ts +4 -1
- package/dist/lib/BillPayWidget.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index.js +10 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index10.js +170 -32
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index11.js +13 -32
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index12.js +30 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index13.js +50 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index14.js +36 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index3.js +11 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index4.js +33 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index5.js +47 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index6.js +18 -63
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index7.js +40 -131
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index8.js +48 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index9.js +30 -20
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +18 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index10.js +29 -97
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index11.js +1 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index12.js +13 -109
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index13.js +24 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index14.js +30 -21
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index15.js +19 -46
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index16.js +49 -76
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index17.js +4 -45
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index18.js +73 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index19.js +50 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index2.js +4 -50
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index20.js +7 -43
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index21.js +38 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index22.js +115 -31
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index23.js +56 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index24.js +206 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index25.js +195 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index26.js +58 -64
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index27.js +46 -139
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index28.js +34 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index29.js +155 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index3.js +3 -60
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index30.js +36 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index31.js +92 -73
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index32.js +9 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index33.js +191 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index34.js +4 -114
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index35.js +26 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index36.js +78 -21
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index37.js +92 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index38.js +3 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index39.js +4 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index4.js +5 -206
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index40.js +45 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index41.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index42.js +53 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index43.js +11 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index44.js +18 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index45.js +8 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js +79 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index47.js +148 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +5 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index49.js +8 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index5.js +3 -197
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index50.js +9 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js +85 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index52.js +3 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index53.js +8 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index54.js +115 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js +25 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index6.js +30 -41
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index7.js +38 -30
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index8.js +20 -151
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index9.js +158 -31
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +29 -17
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index12.js +13 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index13.js +13 -47
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index14.js +24 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index15.js +2 -22
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index16.js +31 -283
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index17.js +261 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index18.js +2 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index19.js +7 -118
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index20.js +49 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index21.js +2 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.js +20 -94
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index23.js +286 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index24.js +1 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index25.js +14 -56
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index26.js +120 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index27.js +1 -19
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index28.js +8 -157
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index29.js +96 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index30.js +2 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index31.js +11 -42
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index32.js +57 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index33.js +2 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index34.js +50 -20
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index35.js +138 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index36.js +1 -54
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index37.js +5 -227
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index38.js +37 -188
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index39.js +2 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index40.js +55 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index41.js +229 -84
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index42.js +195 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index43.js +10 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index44.js +4 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index45.js +88 -25
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index47.js +2 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index48.js +5 -87
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index49.js +30 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index50.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index51.js +7 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index52.js +34 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index53.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index54.js +12 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index55.js +106 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index56.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index57.js +18 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index58.js +10 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index59.js +170 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index60.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index61.js +14 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index62.js +89 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index63.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +21 -21
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js +189 -156
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +157 -97
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/index.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index7.js +1 -1
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index46.js +0 -2
package/README.md
CHANGED
|
@@ -240,10 +240,11 @@ A Monite-backed bill pay widget wrapped in Tesouro widget auth and theming.
|
|
|
240
240
|
|
|
241
241
|
#### Props
|
|
242
242
|
|
|
243
|
-
| Prop | Type | Default | Description
|
|
244
|
-
| -------------------- | ------------------------------------ | ------------ |
|
|
245
|
-
| `pageTitleComponent` | `(children: ReactNode) => ReactNode` | Pass-through | Customizes Monite's page title action region.
|
|
246
|
-
| `finopsThemeColors` | `FinopsThemeColors` | `undefined` | Optional Monite theme color overrides.
|
|
243
|
+
| Prop | Type | Default | Description |
|
|
244
|
+
| -------------------- | ------------------------------------ | ------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
245
|
+
| `pageTitleComponent` | `(children: ReactNode) => ReactNode` | Pass-through | Customizes Monite's page title action region. |
|
|
246
|
+
| `finopsThemeColors` | `FinopsThemeColors` | `undefined` | Optional Monite theme color overrides. |
|
|
247
|
+
| `poweredByBankName` | `string` | `undefined` | Bank shown as "Powered by {bank}" next to the source account when paying a bill. Native implementation only (`implementation="native"`); has no effect under the default Monite implementation. |
|
|
247
248
|
|
|
248
249
|
### CardsWidget
|
|
249
250
|
|
package/dist/index.css
CHANGED
|
@@ -761,6 +761,9 @@
|
|
|
761
761
|
.ttw\:h-38 {
|
|
762
762
|
height: calc(var(--ttw-spacing) * 38);
|
|
763
763
|
}
|
|
764
|
+
.ttw\:h-40 {
|
|
765
|
+
height: calc(var(--ttw-spacing) * 40);
|
|
766
|
+
}
|
|
764
767
|
.ttw\:h-64 {
|
|
765
768
|
height: calc(var(--ttw-spacing) * 64);
|
|
766
769
|
}
|
|
@@ -3203,6 +3206,9 @@
|
|
|
3203
3206
|
.ttw\:text-nowrap {
|
|
3204
3207
|
text-wrap: nowrap;
|
|
3205
3208
|
}
|
|
3209
|
+
.ttw\:break-words {
|
|
3210
|
+
overflow-wrap: break-word;
|
|
3211
|
+
}
|
|
3206
3212
|
.ttw\:wrap-break-word {
|
|
3207
3213
|
overflow-wrap: break-word;
|
|
3208
3214
|
}
|
|
@@ -5434,6 +5440,9 @@
|
|
|
5434
5440
|
.ttw\:sm\:justify-end {
|
|
5435
5441
|
justify-content: flex-end;
|
|
5436
5442
|
}
|
|
5443
|
+
.ttw\:sm\:gap-3 {
|
|
5444
|
+
gap: calc(var(--ttw-spacing) * 3);
|
|
5445
|
+
}
|
|
5437
5446
|
.ttw\:sm\:border-t-0 {
|
|
5438
5447
|
border-top-style: var(--tw-border-style);
|
|
5439
5448
|
border-top-width: 0px;
|
package/dist/index.d.ts
CHANGED
|
@@ -1933,7 +1933,10 @@ type BillPayWidgetMoniteProps = MoniteRegionProviderProps & Omit<PayablesProps,
|
|
|
1933
1933
|
pageTitleComponent?: PayablesProps['pageTitleComponent'];
|
|
1934
1934
|
};
|
|
1935
1935
|
|
|
1936
|
-
type BillPayWidgetProps = BillPayWidgetMoniteProps
|
|
1936
|
+
type BillPayWidgetProps = BillPayWidgetMoniteProps & {
|
|
1937
|
+
/** Bank shown as "Powered by {bank}" next to the source account when paying a bill. Native implementation only; ignored under `monite`. */
|
|
1938
|
+
poweredByBankName?: string;
|
|
1939
|
+
};
|
|
1937
1940
|
/**
|
|
1938
1941
|
* BillPay widget entry point — selects the rendering implementation.
|
|
1939
1942
|
*
|
package/dist/index.js
CHANGED
|
@@ -16,7 +16,7 @@ import "./lib/AcceptDisclosuresWidget.js";
|
|
|
16
16
|
import { BankAccountsWidget as C } from "./libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/index8.js";
|
|
17
17
|
import "./lib/BankAccountsWidget.js";
|
|
18
18
|
import { CounterpartsWidget as w } from "./libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/index8.js";
|
|
19
|
-
import { BillPayWidget as T } from "./libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/
|
|
19
|
+
import { BillPayWidget as T } from "./libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js";
|
|
20
20
|
import "./lib/BillPayWidget.js";
|
|
21
21
|
import { CardDetailsWidget as E } from "./libs/tesouro-embedded-components-react/card-details-widget/feature/dist/index6.js";
|
|
22
22
|
import { CardFormatValue as D } from "./libs/tesouro-embedded-components-react/create-card-widget/feature/dist/index3.js";
|
|
@@ -755,7 +755,10 @@ type BillPayWidgetMoniteProps = MoniteRegionProviderProps & Omit<PayablesProps,
|
|
|
755
755
|
pageTitleComponent?: PayablesProps['pageTitleComponent'];
|
|
756
756
|
};
|
|
757
757
|
|
|
758
|
-
type BillPayWidgetProps = BillPayWidgetMoniteProps
|
|
758
|
+
type BillPayWidgetProps = BillPayWidgetMoniteProps & {
|
|
759
|
+
/** Bank shown as "Powered by {bank}" next to the source account when paying a bill. Native implementation only; ignored under `monite`. */
|
|
760
|
+
poweredByBankName?: string;
|
|
761
|
+
};
|
|
759
762
|
/**
|
|
760
763
|
* BillPay widget entry point — selects the rendering implementation.
|
|
761
764
|
*
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { BillPayWidget as e } from "../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/
|
|
1
|
+
import { BillPayWidget as e } from "../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js";
|
|
2
2
|
import "../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js";
|
|
3
3
|
export { e as BillPayWidget };
|
package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index.js
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { useEmbedApi as e } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
2
2
|
import "../../../shared/data-access/dist/index.js";
|
|
3
3
|
import "./index3.js";
|
|
4
|
-
import "./index5.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
|
|
4
|
+
import { usePayableApprovalRequestsQuery as t, useRejectPayableApprovalRequestMutation as n } from "./index5.js";
|
|
5
|
+
import { usePayableHistoryQuery as r } from "./index6.js";
|
|
6
|
+
import { useAllPayableLineItemsQuery as i, useReplacePayableLineItemsMutation as a } from "./index7.js";
|
|
7
|
+
import { usePayablePaymentRecordsQuery as o } from "./index8.js";
|
|
8
|
+
import { useSchedulePaymentMutation as s } from "./index9.js";
|
|
9
|
+
import { useAttachPayableFileMutation as c, useCreatePayableMutation as l, useDeletePayableFileMutation as u, useMarkPayableAsPaidMutation as d, useSubmitPayableForApprovalMutation as f, useUpdatePayableMutation as p, useUploadPayableFromFileMutation as m, useValidatePayableMutation as h } from "./index10.js";
|
|
10
|
+
import { usePayableOcrQueries as g } from "./index12.js";
|
|
11
|
+
import { usePayableQuery as _, usePayablesQuery as v, usePayablesTotalCountQuery as y } from "./index13.js";
|
|
12
|
+
import { usePayableSuggestionsQuery as b } from "./index14.js";
|
|
13
|
+
export { i as useAllPayableLineItemsQuery, c as useAttachPayableFileMutation, l as useCreatePayableMutation, u as useDeletePayableFileMutation, e as useEmbedApi, d as useMarkPayableAsPaidMutation, t as usePayableApprovalRequestsQuery, r as usePayableHistoryQuery, g as usePayableOcrQueries, o as usePayablePaymentRecordsQuery, _ as usePayableQuery, b as usePayableSuggestionsQuery, v as usePayablesQuery, y as usePayablesTotalCountQuery, n as useRejectPayableApprovalRequestMutation, a as useReplacePayableLineItemsMutation, s as useSchedulePaymentMutation, f as useSubmitPayableForApprovalMutation, p as useUpdatePayableMutation, m as useUploadPayableFromFileMutation, h as useValidatePayableMutation };
|
package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index10.js
CHANGED
|
@@ -4,47 +4,185 @@
|
|
|
4
4
|
"use client";
|
|
5
5
|
import { useEmbedApi as e } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
6
6
|
import { organizationHeaders as t } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
7
|
-
import {
|
|
8
|
-
import { withAuthEpoch as a } from "../../../shared/data-access/dist/lib/withAuthEpoch.js";
|
|
7
|
+
import { deleteFilesId as n, patchPayablesId as r, postPayables as i, postPayablesIdAttachFile as a, postPayablesIdMarkAsPaid as o, postPayablesIdSubmitForApproval as s, postPayablesIdValidate as c, postPayablesUploadFromFile as l } from "../../../shared/data-access/dist/lib/rest/sdk.gen.js";
|
|
9
8
|
import "../../../shared/data-access/dist/index.js";
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
9
|
+
import { invalidatePayableQueries as u } from "./index4.js";
|
|
10
|
+
import { useMutation as d } from "@tanstack/react-query";
|
|
12
11
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index10.js
|
|
13
|
-
function
|
|
14
|
-
let { client:
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
12
|
+
function f() {
|
|
13
|
+
let { client: n, organizationId: r } = e();
|
|
14
|
+
return d({
|
|
15
|
+
mutationFn: async ({ body: e }) => {
|
|
16
|
+
let { data: a } = await i({
|
|
17
|
+
client: n,
|
|
18
|
+
headers: t(r),
|
|
19
|
+
body: e,
|
|
20
|
+
throwOnError: !0
|
|
21
|
+
});
|
|
22
|
+
return a;
|
|
23
|
+
},
|
|
24
|
+
onSuccess: async () => {
|
|
25
|
+
await u({
|
|
26
|
+
client: n,
|
|
27
|
+
organizationId: r
|
|
28
|
+
});
|
|
29
|
+
}
|
|
18
30
|
});
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
31
|
+
}
|
|
32
|
+
function p() {
|
|
33
|
+
let { client: n, organizationId: i } = e();
|
|
34
|
+
return d({
|
|
35
|
+
mutationFn: async ({ path: e, body: a }) => {
|
|
36
|
+
let { data: o } = await r({
|
|
37
|
+
client: n,
|
|
38
|
+
headers: t(i),
|
|
39
|
+
path: e,
|
|
40
|
+
body: a,
|
|
41
|
+
throwOnError: !0
|
|
42
|
+
});
|
|
43
|
+
return o;
|
|
44
|
+
},
|
|
45
|
+
onSuccess: async (e, t) => {
|
|
46
|
+
await u({
|
|
47
|
+
client: n,
|
|
48
|
+
organizationId: i,
|
|
49
|
+
payableId: t.path.payable_id
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
function m() {
|
|
55
|
+
let { client: n, organizationId: i } = e();
|
|
56
|
+
return d({
|
|
57
|
+
mutationFn: async ({ file: e }) => {
|
|
58
|
+
let { data: a } = await l({
|
|
59
|
+
client: n,
|
|
60
|
+
headers: t(i),
|
|
61
|
+
body: { file: e },
|
|
62
|
+
throwOnError: !0
|
|
63
|
+
});
|
|
64
|
+
if (a?.id && a.currency !== "USD") try {
|
|
65
|
+
return await r({
|
|
66
|
+
client: n,
|
|
67
|
+
headers: t(i),
|
|
68
|
+
path: { payable_id: a.id },
|
|
69
|
+
body: { currency: "USD" },
|
|
70
|
+
throwOnError: !0
|
|
71
|
+
}), {
|
|
72
|
+
...a,
|
|
73
|
+
currency: "USD"
|
|
74
|
+
};
|
|
75
|
+
} catch {}
|
|
76
|
+
return a;
|
|
77
|
+
},
|
|
78
|
+
onSuccess: async () => {
|
|
79
|
+
await u({
|
|
80
|
+
client: n,
|
|
81
|
+
organizationId: i
|
|
82
|
+
});
|
|
83
|
+
}
|
|
22
84
|
});
|
|
23
85
|
}
|
|
24
|
-
function
|
|
25
|
-
let { client:
|
|
26
|
-
|
|
27
|
-
|
|
86
|
+
function h() {
|
|
87
|
+
let { client: n, organizationId: r } = e();
|
|
88
|
+
return d({
|
|
89
|
+
mutationFn: async ({ path: e, file: i }) => {
|
|
90
|
+
let { data: o } = await a({
|
|
91
|
+
client: n,
|
|
92
|
+
headers: t(r),
|
|
93
|
+
path: e,
|
|
94
|
+
body: { file: i },
|
|
95
|
+
throwOnError: !0
|
|
96
|
+
});
|
|
97
|
+
return o;
|
|
98
|
+
},
|
|
99
|
+
onSuccess: async (e, t) => {
|
|
100
|
+
await u({
|
|
101
|
+
client: n,
|
|
102
|
+
organizationId: r,
|
|
103
|
+
payableId: t.path.payable_id
|
|
104
|
+
});
|
|
105
|
+
}
|
|
28
106
|
});
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
107
|
+
}
|
|
108
|
+
function g() {
|
|
109
|
+
let { client: r, organizationId: i } = e();
|
|
110
|
+
return d({
|
|
111
|
+
mutationFn: async ({ path: e }) => {
|
|
112
|
+
await n({
|
|
113
|
+
client: r,
|
|
114
|
+
headers: t(i),
|
|
115
|
+
path: e,
|
|
116
|
+
throwOnError: !0
|
|
117
|
+
});
|
|
118
|
+
},
|
|
119
|
+
onSuccess: async (e, t) => {
|
|
120
|
+
await u({
|
|
121
|
+
client: r,
|
|
122
|
+
organizationId: i,
|
|
123
|
+
payableId: t.payableId
|
|
124
|
+
});
|
|
125
|
+
}
|
|
32
126
|
});
|
|
33
127
|
}
|
|
34
|
-
function
|
|
35
|
-
let { client:
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
128
|
+
function _() {
|
|
129
|
+
let { client: n, organizationId: r } = e();
|
|
130
|
+
return d({ mutationFn: async ({ path: e }) => {
|
|
131
|
+
let { data: i } = await c({
|
|
132
|
+
client: n,
|
|
133
|
+
headers: t(r),
|
|
134
|
+
path: e,
|
|
135
|
+
throwOnError: !0
|
|
136
|
+
});
|
|
137
|
+
return {
|
|
138
|
+
id: i.id,
|
|
139
|
+
validation_errors: i.validation_errors ?? []
|
|
140
|
+
};
|
|
141
|
+
} });
|
|
142
|
+
}
|
|
143
|
+
function v() {
|
|
144
|
+
let { client: n, organizationId: r } = e();
|
|
145
|
+
return d({
|
|
146
|
+
mutationFn: async ({ path: e }) => {
|
|
147
|
+
let { data: i } = await s({
|
|
148
|
+
client: n,
|
|
149
|
+
headers: t(r),
|
|
150
|
+
path: e,
|
|
151
|
+
throwOnError: !0
|
|
152
|
+
});
|
|
153
|
+
return i;
|
|
154
|
+
},
|
|
155
|
+
onSuccess: async (e, t) => {
|
|
156
|
+
await u({
|
|
157
|
+
client: n,
|
|
158
|
+
organizationId: r,
|
|
159
|
+
payableId: t.path.payable_id,
|
|
160
|
+
includeApprovalRequests: !0
|
|
161
|
+
});
|
|
162
|
+
}
|
|
43
163
|
});
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
164
|
+
}
|
|
165
|
+
function y() {
|
|
166
|
+
let { client: n, organizationId: r } = e();
|
|
167
|
+
return d({
|
|
168
|
+
mutationFn: async ({ path: e, body: i }) => {
|
|
169
|
+
let { data: a } = await o({
|
|
170
|
+
client: n,
|
|
171
|
+
headers: t(r),
|
|
172
|
+
path: e,
|
|
173
|
+
body: i,
|
|
174
|
+
throwOnError: !0
|
|
175
|
+
});
|
|
176
|
+
return a;
|
|
177
|
+
},
|
|
178
|
+
onSuccess: async (e, t) => {
|
|
179
|
+
await u({
|
|
180
|
+
client: n,
|
|
181
|
+
organizationId: r,
|
|
182
|
+
payableId: t.path.payable_id
|
|
183
|
+
});
|
|
184
|
+
}
|
|
47
185
|
});
|
|
48
186
|
}
|
|
49
187
|
//#endregion
|
|
50
|
-
export {
|
|
188
|
+
export { h as useAttachPayableFileMutation, f as useCreatePayableMutation, g as useDeletePayableFileMutation, y as useMarkPayableAsPaidMutation, v as useSubmitPayableForApprovalMutation, p as useUpdatePayableMutation, m as useUploadPayableFromFileMutation, _ as useValidatePayableMutation };
|
package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index11.js
CHANGED
|
@@ -1,36 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
"use client";
|
|
4
|
-
"use client";
|
|
5
|
-
import { useEmbedApi as e } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
6
|
-
import { organizationHeaders as t } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
7
|
-
import { getPayablesIdSuggestionsOptions as n } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
8
|
-
import { withAuthEpoch as r } from "../../../shared/data-access/dist/lib/withAuthEpoch.js";
|
|
9
|
-
import { isApiNotFoundError as i } from "../../../shared/data-access/dist/lib/isApiNotFoundError.js";
|
|
1
|
+
import { organizationHeaders as e } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
2
|
+
import { getPayablesIdOptions as t } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
10
3
|
import "../../../shared/data-access/dist/index.js";
|
|
11
|
-
import { useQuery as a } from "@tanstack/react-query";
|
|
12
4
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index11.js
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
queryFn: async (e) => {
|
|
24
|
-
try {
|
|
25
|
-
if (typeof h != "function") throw Error("getPayablesIdSuggestionsOptions has no queryFn");
|
|
26
|
-
return await h(e);
|
|
27
|
-
} catch (e) {
|
|
28
|
-
if (i(e)) return null;
|
|
29
|
-
throw e;
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
|
-
select: (e) => e ?? void 0
|
|
33
|
-
});
|
|
5
|
+
var n = 2500;
|
|
6
|
+
function r({ client: n, organizationId: r, payableId: i }) {
|
|
7
|
+
return {
|
|
8
|
+
...t({
|
|
9
|
+
client: n,
|
|
10
|
+
headers: e(r),
|
|
11
|
+
path: { payable_id: i }
|
|
12
|
+
}),
|
|
13
|
+
refetchInterval: (e) => e.state.data?.ocr_status === "processing" && 2500
|
|
14
|
+
};
|
|
34
15
|
}
|
|
35
16
|
//#endregion
|
|
36
|
-
export {
|
|
17
|
+
export { n as OCR_POLL_INTERVAL_MS, r as payableOcrQueryOptions };
|
package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index12.js
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
"use client";
|
|
4
|
+
"use client";
|
|
5
|
+
import { useEmbedApi as e } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
6
|
+
import { withAuthEpoch as t } from "../../../shared/data-access/dist/lib/withAuthEpoch.js";
|
|
7
|
+
import "../../../shared/data-access/dist/index.js";
|
|
8
|
+
import { payableOcrQueryOptions as n } from "./index11.js";
|
|
9
|
+
import { useQueries as r } from "@tanstack/react-query";
|
|
10
|
+
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index12.js
|
|
11
|
+
function i({ payableIds: i, enabled: a }) {
|
|
12
|
+
let { client: o, organizationId: s, widgetToken: c, authEpoch: l } = e(), u = !!(s && c) && (a === !0 || a === void 0);
|
|
13
|
+
return r({
|
|
14
|
+
queries: i.map((e) => ({
|
|
15
|
+
...t(n({
|
|
16
|
+
client: o,
|
|
17
|
+
organizationId: s,
|
|
18
|
+
payableId: e
|
|
19
|
+
}), l),
|
|
20
|
+
enabled: u && !!e
|
|
21
|
+
})),
|
|
22
|
+
combine: (e) => e.map((e, t) => ({
|
|
23
|
+
payableId: i[t],
|
|
24
|
+
ocrStatus: e.data?.ocr_status,
|
|
25
|
+
isError: e.isError
|
|
26
|
+
}))
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
//#endregion
|
|
30
|
+
export { i as usePayableOcrQueries };
|
package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index13.js
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
"use client";
|
|
4
|
+
"use client";
|
|
5
|
+
import { useEmbedApi as e } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
6
|
+
import { organizationHeaders as t } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
7
|
+
import { getPayablesAnalyticsOptions as n, getPayablesIdOptions as r, getPayablesOptions as i } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
8
|
+
import { withAuthEpoch as a } from "../../../shared/data-access/dist/lib/withAuthEpoch.js";
|
|
9
|
+
import "../../../shared/data-access/dist/index.js";
|
|
10
|
+
import { payableOcrQueryOptions as o } from "./index11.js";
|
|
11
|
+
import { useQuery as s } from "@tanstack/react-query";
|
|
12
|
+
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index13.js
|
|
13
|
+
function c({ enabled: n, ...r } = {}) {
|
|
14
|
+
let { client: o, organizationId: c, widgetToken: l, authEpoch: u } = e(), d = !!(c && l) && (n === !0 || n === void 0), f = i({
|
|
15
|
+
client: o,
|
|
16
|
+
headers: t(c),
|
|
17
|
+
query: r
|
|
18
|
+
});
|
|
19
|
+
return s({
|
|
20
|
+
...a(f, u),
|
|
21
|
+
enabled: d
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
function l({ enabled: r } = {}) {
|
|
25
|
+
let { client: i, organizationId: o, widgetToken: c, authEpoch: l } = e(), u = !!(o && c) && (r === !0 || r === void 0), d = n({
|
|
26
|
+
client: i,
|
|
27
|
+
headers: t(o)
|
|
28
|
+
});
|
|
29
|
+
return s({
|
|
30
|
+
...a(d, l),
|
|
31
|
+
enabled: u
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
function u(n, { enabled: i = !0, pollWhileOcrProcessing: c = !1 } = {}) {
|
|
35
|
+
let { client: l, organizationId: u, widgetToken: d, authEpoch: f } = e(), p = !!(u && d && n) && i, m = c ? o({
|
|
36
|
+
client: l,
|
|
37
|
+
organizationId: u,
|
|
38
|
+
payableId: n ?? ""
|
|
39
|
+
}) : r({
|
|
40
|
+
client: l,
|
|
41
|
+
headers: t(u),
|
|
42
|
+
path: { payable_id: n ?? "" }
|
|
43
|
+
});
|
|
44
|
+
return s({
|
|
45
|
+
...a(m, f),
|
|
46
|
+
enabled: p
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
//#endregion
|
|
50
|
+
export { u as usePayableQuery, c as usePayablesQuery, l as usePayablesTotalCountQuery };
|
package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index14.js
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
"use client";
|
|
4
|
+
"use client";
|
|
5
|
+
import { useEmbedApi as e } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
6
|
+
import { organizationHeaders as t } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
7
|
+
import { getPayablesIdSuggestionsOptions as n } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
8
|
+
import { withAuthEpoch as r } from "../../../shared/data-access/dist/lib/withAuthEpoch.js";
|
|
9
|
+
import { isApiNotFoundError as i } from "../../../shared/data-access/dist/lib/isApiNotFoundError.js";
|
|
10
|
+
import "../../../shared/data-access/dist/index.js";
|
|
11
|
+
import { useQuery as a } from "@tanstack/react-query";
|
|
12
|
+
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index14.js
|
|
13
|
+
function o(o, { enabled: s = !0 } = {}) {
|
|
14
|
+
let { client: c, organizationId: l, widgetToken: u, authEpoch: d } = e(), f = !!(l && u && o) && s, p = n({
|
|
15
|
+
client: c,
|
|
16
|
+
headers: t(l),
|
|
17
|
+
path: { payable_id: o ?? "" }
|
|
18
|
+
}), { queryKey: m, queryFn: h } = r(p, d);
|
|
19
|
+
return a({
|
|
20
|
+
queryKey: m,
|
|
21
|
+
enabled: f,
|
|
22
|
+
retry: !1,
|
|
23
|
+
queryFn: async (e) => {
|
|
24
|
+
try {
|
|
25
|
+
if (typeof h != "function") throw Error("getPayablesIdSuggestionsOptions has no queryFn");
|
|
26
|
+
return await h(e);
|
|
27
|
+
} catch (e) {
|
|
28
|
+
if (i(e)) return null;
|
|
29
|
+
throw e;
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
select: (e) => e ?? void 0
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
//#endregion
|
|
36
|
+
export { o as usePayableSuggestionsQuery };
|
package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index3.js
CHANGED
|
@@ -1,28 +1,31 @@
|
|
|
1
1
|
import { organizationHeaders as e } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
2
|
-
import { getApprovalRequestsQueryKey as t, getPayablesAnalyticsQueryKey as n, getPayablesIdHistoryQueryKey as r, getPayablesIdLineItemsQueryKey as i, getPayablesIdQueryKey as a, getPayablesQueryKey as o } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
2
|
+
import { getApprovalRequestsQueryKey as t, getPayablesAnalyticsQueryKey as n, getPayablesIdHistoryQueryKey as r, getPayablesIdLineItemsQueryKey as i, getPayablesIdQueryKey as a, getPayablesQueryKey as o, getPaymentRecordsQueryKey as s } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
3
3
|
import "../../../shared/data-access/dist/index.js";
|
|
4
4
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index3.js
|
|
5
|
-
var
|
|
5
|
+
var c = ({ client: t, organizationId: n }) => o({
|
|
6
6
|
client: t,
|
|
7
7
|
headers: e(n)
|
|
8
|
-
}),
|
|
8
|
+
}), l = ({ client: n, organizationId: r }) => t({
|
|
9
9
|
client: n,
|
|
10
10
|
headers: e(r)
|
|
11
|
-
}),
|
|
11
|
+
}), u = ({ client: t, organizationId: r }) => n({
|
|
12
12
|
client: t,
|
|
13
13
|
headers: e(r)
|
|
14
|
-
}),
|
|
14
|
+
}), d = ({ client: t, organizationId: n, payableId: r }) => a({
|
|
15
15
|
client: t,
|
|
16
16
|
headers: e(n),
|
|
17
17
|
path: { payable_id: r }
|
|
18
|
-
}),
|
|
18
|
+
}), f = ({ client: t, organizationId: n, payableId: i }) => r({
|
|
19
19
|
client: t,
|
|
20
20
|
headers: e(n),
|
|
21
21
|
path: { payable_id: i }
|
|
22
|
-
}),
|
|
22
|
+
}), p = ({ client: t, organizationId: n, payableId: r }) => i({
|
|
23
23
|
client: t,
|
|
24
24
|
headers: e(n),
|
|
25
25
|
path: { payable_id: r }
|
|
26
|
+
}), m = ({ client: t, organizationId: n }) => s({
|
|
27
|
+
client: t,
|
|
28
|
+
headers: e(n)
|
|
26
29
|
});
|
|
27
30
|
//#endregion
|
|
28
|
-
export {
|
|
31
|
+
export { l as approvalRequestsInvalidationKey, f as payableHistoryInvalidationKey, d as payableInvalidationKey, p as payableLineItemsInvalidationKey, m as payablePaymentRecordsInvalidationKey, u as payablesAnalyticsInvalidationKey, c as payablesInvalidationKey };
|
package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index4.js
CHANGED
|
@@ -1,22 +1,39 @@
|
|
|
1
1
|
import { invalidateAllClients as e } from "../../../shared/data-access/dist/lib/clientRegistry.js";
|
|
2
2
|
import "../../../shared/data-access/dist/index.js";
|
|
3
|
-
import { approvalRequestsInvalidationKey as t, payableHistoryInvalidationKey as n, payableInvalidationKey as r, payableLineItemsInvalidationKey as i,
|
|
3
|
+
import { approvalRequestsInvalidationKey as t, payableHistoryInvalidationKey as n, payableInvalidationKey as r, payableLineItemsInvalidationKey as i, payablePaymentRecordsInvalidationKey as a, payablesAnalyticsInvalidationKey as o, payablesInvalidationKey as s } from "./index3.js";
|
|
4
4
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index4.js
|
|
5
|
-
async function
|
|
6
|
-
let
|
|
7
|
-
client:
|
|
8
|
-
organizationId:
|
|
9
|
-
},
|
|
10
|
-
...
|
|
11
|
-
payableId:
|
|
12
|
-
} : void 0,
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
...
|
|
16
|
-
...
|
|
17
|
-
|
|
5
|
+
async function c({ client: c, organizationId: l, payableId: u, includeLineItems: d, includeApprovalRequests: f }) {
|
|
6
|
+
let p = {
|
|
7
|
+
client: c,
|
|
8
|
+
organizationId: l
|
|
9
|
+
}, m = u ? {
|
|
10
|
+
...p,
|
|
11
|
+
payableId: u
|
|
12
|
+
} : void 0, h = [
|
|
13
|
+
s(p),
|
|
14
|
+
o(p),
|
|
15
|
+
...f ? [t(p)] : [],
|
|
16
|
+
...m ? [
|
|
17
|
+
r(m),
|
|
18
|
+
n(m),
|
|
19
|
+
a(m)
|
|
20
|
+
] : [],
|
|
21
|
+
...m && d ? [i(m)] : []
|
|
18
22
|
];
|
|
19
|
-
await Promise.all(
|
|
23
|
+
await Promise.all(h.map((t) => e(t)));
|
|
24
|
+
}
|
|
25
|
+
var l = 500;
|
|
26
|
+
async function u({ client: n, organizationId: r, payableId: i }) {
|
|
27
|
+
await e(t({
|
|
28
|
+
client: n,
|
|
29
|
+
organizationId: r
|
|
30
|
+
})), await new Promise((e) => {
|
|
31
|
+
setTimeout(e, l);
|
|
32
|
+
}), await c({
|
|
33
|
+
client: n,
|
|
34
|
+
organizationId: r,
|
|
35
|
+
payableId: i
|
|
36
|
+
});
|
|
20
37
|
}
|
|
21
38
|
//#endregion
|
|
22
|
-
export {
|
|
39
|
+
export { u as invalidateApprovalDecisionQueries, c as invalidatePayableQueries };
|
package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index5.js
CHANGED
|
@@ -2,6 +2,51 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
+
import { useEmbedApi as e } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
6
|
+
import { organizationHeaders as t } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
7
|
+
import { postApprovalRequestsIdReject as n } from "../../../shared/data-access/dist/lib/rest/sdk.gen.js";
|
|
8
|
+
import { getApprovalRequestsOptions as r } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
9
|
+
import { withAuthEpoch as i } from "../../../shared/data-access/dist/lib/withAuthEpoch.js";
|
|
5
10
|
import "../../../shared/data-access/dist/index.js";
|
|
6
|
-
import "./index4.js";
|
|
7
|
-
import "@tanstack/react-query";
|
|
11
|
+
import { invalidateApprovalDecisionQueries as a } from "./index4.js";
|
|
12
|
+
import { useMutation as o, useQuery as s } from "@tanstack/react-query";
|
|
13
|
+
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index5.js
|
|
14
|
+
var c = "payable", l = "desc";
|
|
15
|
+
function u(n, { enabled: a } = {}) {
|
|
16
|
+
let { client: o, organizationId: u, widgetToken: d, authEpoch: f } = e(), p = !!(u && d && n) && a !== !1, m = r({
|
|
17
|
+
client: o,
|
|
18
|
+
headers: t(u),
|
|
19
|
+
query: {
|
|
20
|
+
object_id: n ?? "",
|
|
21
|
+
object_type: c,
|
|
22
|
+
order: l
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
return s({
|
|
26
|
+
...i(m, f),
|
|
27
|
+
enabled: p
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
function d() {
|
|
31
|
+
let { client: r, organizationId: i } = e();
|
|
32
|
+
return o({
|
|
33
|
+
mutationFn: async ({ path: e }) => {
|
|
34
|
+
let { data: a } = await n({
|
|
35
|
+
client: r,
|
|
36
|
+
headers: t(i),
|
|
37
|
+
path: e,
|
|
38
|
+
throwOnError: !0
|
|
39
|
+
});
|
|
40
|
+
return a;
|
|
41
|
+
},
|
|
42
|
+
onSuccess: async (e) => {
|
|
43
|
+
await a({
|
|
44
|
+
client: r,
|
|
45
|
+
organizationId: i,
|
|
46
|
+
payableId: e?.object_id
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
//#endregion
|
|
52
|
+
export { u as usePayableApprovalRequestsQuery, d as useRejectPayableApprovalRequestMutation };
|