@tesouro/embedded-components-react 0.2.253 → 0.2.255
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/dist/core.js +1 -1
- package/dist/index.css +15 -0
- package/dist/index.js +2 -2
- package/dist/lib/BillPayWidget.d.ts +151 -151
- package/dist/lib/BillPayWidget.js +1 -1
- package/dist/lib/InsightsWidget.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/feature/dist/index4.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/balances-widget/feature/dist/index3.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index17.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/index7.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index.js +10 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index10.js +40 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index11.js +36 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index3.js +28 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index4.js +22 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index5.js +7 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index6.js +75 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index7.js +166 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index8.js +17 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index9.js +30 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +15 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index10.js +9 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index11.js +99 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index12.js +4 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index13.js +4 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index14.js +43 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index15.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index16.js +50 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index17.js +8 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index18.js +7 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index19.js +93 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index2.js +42 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index20.js +3 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index21.js +8 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index22.js +9 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index23.js +85 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index24.js +3 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index25.js +8 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index26.js +112 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index27.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index28.js +25 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index3.js +51 -35
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index4.js +235 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index5.js +106 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index6.js +35 -88
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index7.js +122 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index8.js +36 -22
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index9.js +74 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +15 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index10.js +24 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index11.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index12.js +12 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index13.js +83 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index14.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index15.js +18 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index16.js +205 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index17.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index18.js +10 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index19.js +89 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index20.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index21.js +10 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.js +131 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index23.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index24.js +10 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index25.js +45 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index27.js +17 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index28.js +149 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index3.js +73 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index33.js +14 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index34.js +24 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index35.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index36.js +24 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index38.js +145 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index39.js +10 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index40.js +8 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index41.js +93 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index43.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index44.js +7 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index45.js +30 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index46.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index47.js +13 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index48.js +88 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index7.js +62 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index9.js +7 -0
- package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/index4.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/index4.js +13 -13
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/index7.js +58 -58
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/index8.js +19 -19
- package/dist/libs/tesouro-embedded-components-react/gl-code-table-widget/feature/dist/index7.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index10.js +13 -62
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index11.js +66 -0
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index7.js +11 -109
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index8.js +113 -21
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index9.js +21 -15
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index7.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index9.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/index8.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/profile-widget/feature/dist/index4.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/feature/dist/lib/policyViewModel.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/index.js +15 -15
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/helpers.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/useAddressForm.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/useCounterpartForm.js +32 -29
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/useSubEntityForm.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index8.js +232 -220
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +19 -19
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js +171 -138
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/client/index.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/core/bodySerializer.gen.js +9 -2
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +404 -293
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/zod.gen.js +463 -456
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/WidgetTokenRefreshProvider.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/feature/dist/index.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/feature/dist/lib/MeasureUnitsManagerContainer.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/feature/dist/lib/useProductForm.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/util/dist/{index3.js → lib/amountOutputToMajorUnits.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/util/dist/{index14.js → lib/apiErrors.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/util/dist/{index2.js → lib/coerceAmountValueToMinorUnits.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/util/dist/lib/formatCalendarDate.js +13 -0
- package/dist/libs/tesouro-embedded-components-react/shared/util/dist/{index4.js → lib/formatMoneyExact.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/util/dist/{index5.js → lib/formatPhoneDisplay.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/util/dist/{index6.js → lib/getInitials.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/util/dist/{index7.js → lib/normalizeAmountOutputCurrencyCode.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/util/dist/{index8.js → lib/parseAmountOutputMajorUnits.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/util/dist/{index9.js → lib/parseDecimalAmountToMinorUnits.js} +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/util/dist/{index10.js → lib/sumAmountOutputsMajorUnits.js} +3 -3
- package/dist/libs/tesouro-embedded-components-react/shared/util/dist/{index11.js → lib/usStates.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/util/dist/{index13.js → lib/widgetDomEvents.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/util/dist/{index12.js → lib/widgetTokenManager.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/tags-widget/feature/dist/index8.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/team-widget/feature/dist/index11.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/team-widget/feature/dist/index4.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/index4.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/index5.js +1 -1
- package/dist/packages/shared-ui-shadcn/dist/index.js +3593 -3582
- package/package.json +1 -1
package/dist/core.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { createWidgetTokenManager as e } from "./libs/tesouro-embedded-components-react/shared/util/dist/
|
|
1
|
+
import { createWidgetTokenManager as e } from "./libs/tesouro-embedded-components-react/shared/util/dist/lib/widgetTokenManager.js";
|
|
2
2
|
export { e as createWidgetTokenManager };
|
package/dist/index.css
CHANGED
|
@@ -724,6 +724,9 @@
|
|
|
724
724
|
.ttw\:h-21 {
|
|
725
725
|
height: calc(var(--ttw-spacing) * 21);
|
|
726
726
|
}
|
|
727
|
+
.ttw\:h-24 {
|
|
728
|
+
height: calc(var(--ttw-spacing) * 24);
|
|
729
|
+
}
|
|
727
730
|
.ttw\:h-26 {
|
|
728
731
|
height: calc(var(--ttw-spacing) * 26);
|
|
729
732
|
}
|
|
@@ -793,6 +796,9 @@
|
|
|
793
796
|
.ttw\:h-\[calc\(100vh-290px\)\] {
|
|
794
797
|
height: calc(100vh - 290px);
|
|
795
798
|
}
|
|
799
|
+
.ttw\:h-\[min\(70vh\,44rem\)\] {
|
|
800
|
+
height: min(70vh, 44rem);
|
|
801
|
+
}
|
|
796
802
|
.ttw\:h-\[var\(--radix-navigation-menu-viewport-height\)\] {
|
|
797
803
|
height: var(--radix-navigation-menu-viewport-height);
|
|
798
804
|
}
|
|
@@ -901,6 +907,9 @@
|
|
|
901
907
|
.ttw\:min-h-28 {
|
|
902
908
|
min-height: calc(var(--ttw-spacing) * 28);
|
|
903
909
|
}
|
|
910
|
+
.ttw\:min-h-44 {
|
|
911
|
+
min-height: calc(var(--ttw-spacing) * 44);
|
|
912
|
+
}
|
|
904
913
|
.ttw\:min-h-48 {
|
|
905
914
|
min-height: calc(var(--ttw-spacing) * 48);
|
|
906
915
|
}
|
|
@@ -970,12 +979,18 @@
|
|
|
970
979
|
.ttw\:w-2\.5 {
|
|
971
980
|
width: calc(var(--ttw-spacing) * 2.5);
|
|
972
981
|
}
|
|
982
|
+
.ttw\:w-2\/5 {
|
|
983
|
+
width: calc(2 / 5 * 100%);
|
|
984
|
+
}
|
|
973
985
|
.ttw\:w-3 {
|
|
974
986
|
width: calc(var(--ttw-spacing) * 3);
|
|
975
987
|
}
|
|
976
988
|
.ttw\:w-3\/4 {
|
|
977
989
|
width: calc(3 / 4 * 100%);
|
|
978
990
|
}
|
|
991
|
+
.ttw\:w-3\/5 {
|
|
992
|
+
width: calc(3 / 5 * 100%);
|
|
993
|
+
}
|
|
979
994
|
.ttw\:w-4 {
|
|
980
995
|
width: calc(var(--ttw-spacing) * 4);
|
|
981
996
|
}
|
package/dist/index.js
CHANGED
|
@@ -15,7 +15,7 @@ import "./lib/AcceptDisclosuresWidget.js";
|
|
|
15
15
|
import { BankAccountsWidget as x } from "./libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/index8.js";
|
|
16
16
|
import "./lib/BankAccountsWidget.js";
|
|
17
17
|
import { CounterpartsWidget as S } from "./libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/index8.js";
|
|
18
|
-
import { BillPayWidget as C } from "./libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/
|
|
18
|
+
import { BillPayWidget as C } from "./libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index28.js";
|
|
19
19
|
import "./lib/BillPayWidget.js";
|
|
20
20
|
import { CardDetailsWidget as w } from "./libs/tesouro-embedded-components-react/card-details-widget/feature/dist/index6.js";
|
|
21
21
|
import { CardsWidget as T } from "./libs/tesouro-embedded-components-react/cards-widget/feature/dist/index8.js";
|
|
@@ -35,7 +35,7 @@ import "./lib/BalancesWidget.js";
|
|
|
35
35
|
import { INSIGHTS_FEATURE_LABELS_EN as M } from "./libs/tesouro-embedded-components-react/insights-widget/feature/dist/index3.js";
|
|
36
36
|
import { INSIGHTS_WIDGET_LABELS_EN as N } from "./libs/tesouro-embedded-components-react/insights-widget/ui/dist/index2.js";
|
|
37
37
|
import { SINGLE_INSIGHT_LABELS_EN as P } from "./libs/tesouro-embedded-components-react/insights-widget/ui/dist/index4.js";
|
|
38
|
-
import { InsightsWidget as F } from "./libs/tesouro-embedded-components-react/insights-widget/feature/dist/
|
|
38
|
+
import { InsightsWidget as F } from "./libs/tesouro-embedded-components-react/insights-widget/feature/dist/index11.js";
|
|
39
39
|
import "./lib/InsightsWidget.js";
|
|
40
40
|
import { CHART_OF_ACCOUNTS_MESSAGE_LABELS_EN as I } from "./libs/tesouro-embedded-components-react/gl-code-table-widget/feature/dist/index5.js";
|
|
41
41
|
import { ACCOUNT_DELETE_DIALOG_LABELS_EN as L, ACCOUNT_FORM_SHEET_LABELS_EN as R, CHART_OF_ACCOUNTS_LABELS_EN as z } from "./libs/tesouro-embedded-components-react/gl-code-table-widget/ui/dist/index2.js";
|
|
@@ -2,157 +2,6 @@ import * as React from 'react';
|
|
|
2
2
|
import { ReactNode, ComponentType, AnchorHTMLAttributes, ErrorInfo } from 'react';
|
|
3
3
|
import { FallbackProps } from 'react-error-boundary';
|
|
4
4
|
|
|
5
|
-
/**
|
|
6
|
-
* Action handlers for custom payment flows in payable operations.
|
|
7
|
-
*
|
|
8
|
-
* These handlers provide fine-grained control over payment workflows, allowing customers to:
|
|
9
|
-
* - Integrate external payment providers
|
|
10
|
-
* - Implement custom approval processes or multi-step authentication
|
|
11
|
-
* - Add specialized banking solutions or enterprise payment workflows
|
|
12
|
-
* - Control UI feedback and data refresh timing after payment completion
|
|
13
|
-
*
|
|
14
|
-
* @example Custom payment provider integration:
|
|
15
|
-
* ```typescript
|
|
16
|
-
* const onPay = (id: string, _data?: unknown, actions?: PayActionHandlers) => {
|
|
17
|
-
* // Start custom payment flow
|
|
18
|
-
* initiatePayment(id)
|
|
19
|
-
* .then(() => {
|
|
20
|
-
* // Payment successful - update SDK state and show success message
|
|
21
|
-
* actions?.resolve({ showToast: true });
|
|
22
|
-
* })
|
|
23
|
-
* .catch((error) => {
|
|
24
|
-
* // Payment failed - update SDK state and show error message
|
|
25
|
-
* actions?.reject(error, { showToast: true });
|
|
26
|
-
* });
|
|
27
|
-
* };
|
|
28
|
-
* ```
|
|
29
|
-
*/
|
|
30
|
-
type PayActionHandlers = {
|
|
31
|
-
/**
|
|
32
|
-
* Call when a custom payment flow has been successfully initiated/completed.
|
|
33
|
-
* This triggers SDK's built-in state management: refreshes payable data,
|
|
34
|
-
* payment records, and optionally displays success feedback to the user.
|
|
35
|
-
*
|
|
36
|
-
* @param options.showToast - Whether to display a success toast notification
|
|
37
|
-
*/
|
|
38
|
-
resolve: (options?: {
|
|
39
|
-
showToast?: boolean;
|
|
40
|
-
}) => void;
|
|
41
|
-
/**
|
|
42
|
-
* Call when a custom payment flow failed or was cancelled by the user.
|
|
43
|
-
* This triggers SDK's built-in state management: refreshes payable data,
|
|
44
|
-
* payment records, and optionally displays error feedback to the user.
|
|
45
|
-
*
|
|
46
|
-
* @param error - Optional error details from the failed payment attempt
|
|
47
|
-
* @param options.showToast - Whether to display an error toast notification
|
|
48
|
-
*/
|
|
49
|
-
reject: (error?: unknown, options?: {
|
|
50
|
-
showToast?: boolean;
|
|
51
|
-
}) => void;
|
|
52
|
-
};
|
|
53
|
-
|
|
54
|
-
type UsePayableDetailsProps = {
|
|
55
|
-
/**
|
|
56
|
-
* The ID of the payable
|
|
57
|
-
*/
|
|
58
|
-
id?: string;
|
|
59
|
-
/** when provided it takes precedence over component settings */
|
|
60
|
-
enableGLCodes?: boolean;
|
|
61
|
-
/** when provided it makes the payable open in edit mode */
|
|
62
|
-
shouldOpenInEditMode?: boolean;
|
|
63
|
-
/**
|
|
64
|
-
* Callback function that is called when the payable is saved
|
|
65
|
-
*
|
|
66
|
-
* @param {string} id - The ID of the payable
|
|
67
|
-
*
|
|
68
|
-
* @returns {void}
|
|
69
|
-
*/
|
|
70
|
-
onSaved?: (id: string) => void;
|
|
71
|
-
/**
|
|
72
|
-
* Callback function that is called when the payable is canceled
|
|
73
|
-
*
|
|
74
|
-
* @param {string} id - The ID of the payable
|
|
75
|
-
*
|
|
76
|
-
* @returns {void}
|
|
77
|
-
*/
|
|
78
|
-
onCanceled?: (id: string) => void;
|
|
79
|
-
/**
|
|
80
|
-
* Callback function that is called when the payable is submitted
|
|
81
|
-
*
|
|
82
|
-
* @param {string} id - The ID of the payable
|
|
83
|
-
*
|
|
84
|
-
* @returns {void}
|
|
85
|
-
*/
|
|
86
|
-
onSubmitted?: (id: string) => void;
|
|
87
|
-
/**
|
|
88
|
-
* Callback function that is called when the payable is rejected
|
|
89
|
-
*
|
|
90
|
-
* @param {string} id - The ID of the payable
|
|
91
|
-
*
|
|
92
|
-
* @returns {void}
|
|
93
|
-
*/
|
|
94
|
-
onRejected?: (id: string) => void;
|
|
95
|
-
/**
|
|
96
|
-
* Callback function that is called when the payable is approved
|
|
97
|
-
*
|
|
98
|
-
* @param {string} id - The ID of the payable
|
|
99
|
-
*
|
|
100
|
-
* @returns {void}
|
|
101
|
-
*/
|
|
102
|
-
onApproved?: (id: string) => void;
|
|
103
|
-
/** Callback function that is called when the payable is reopened
|
|
104
|
-
*
|
|
105
|
-
* @param {string} id - The ID of the payable
|
|
106
|
-
*
|
|
107
|
-
* @returns {void}
|
|
108
|
-
*/
|
|
109
|
-
onReopened?: (id: string) => void;
|
|
110
|
-
/** Callback function that is called when the payable is deleted
|
|
111
|
-
*
|
|
112
|
-
* @param {string} id - The ID of the payable
|
|
113
|
-
*
|
|
114
|
-
* @returns {void}
|
|
115
|
-
*/
|
|
116
|
-
onDeleted?: (id: string) => void;
|
|
117
|
-
/**
|
|
118
|
-
* Callback function that is called when the user press the Pay button
|
|
119
|
-
*
|
|
120
|
-
* @param {string} id - The ID of the payable
|
|
121
|
-
*
|
|
122
|
-
* @returns {void}
|
|
123
|
-
*/
|
|
124
|
-
onPay?: (id: string, _data?: unknown, actions?: PayActionHandlers) => void;
|
|
125
|
-
};
|
|
126
|
-
|
|
127
|
-
type PayablesProps = {
|
|
128
|
-
pageTitleComponent: (children: ReactNode) => ReactNode;
|
|
129
|
-
/**
|
|
130
|
-
* Enable GL code selection for payable line items.
|
|
131
|
-
* When true, users can assign GL codes to individual line items.
|
|
132
|
-
* GL codes are fetched from the connected accounting system.
|
|
133
|
-
*/
|
|
134
|
-
enableGLCodes?: boolean;
|
|
135
|
-
/** Arrival prop: 'create' opens the create-bill dialog on mount. */
|
|
136
|
-
initialView?: 'create';
|
|
137
|
-
/** Arrival prop: preselects this counterpart in the create-bill form. */
|
|
138
|
-
initialCounterpartId?: string;
|
|
139
|
-
} & Partial<Pick<UsePayableDetailsProps, 'onSaved' | 'onCanceled' | 'onSubmitted' | 'onRejected' | 'onApproved' | 'onReopened' | 'onDeleted' | 'onPay'>>;
|
|
140
|
-
|
|
141
|
-
type ALIGN_DIALOG_TYPES = 'left' | 'right';
|
|
142
|
-
declare module '@mui/material/transitions' {
|
|
143
|
-
interface TransitionProps {
|
|
144
|
-
alignDialog?: ALIGN_DIALOG_TYPES;
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
interface FinopsThemeColors {
|
|
149
|
-
primary?: string;
|
|
150
|
-
primaryForeground?: string;
|
|
151
|
-
}
|
|
152
|
-
interface MoniteWrapperProps {
|
|
153
|
-
finopsThemeColors?: FinopsThemeColors;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
5
|
type AuthToken = string | undefined;
|
|
157
6
|
interface Auth {
|
|
158
7
|
/**
|
|
@@ -482,6 +331,157 @@ type EmbeddedClient = Client;
|
|
|
482
331
|
type ExtractLiterals<T> = T extends string ? string extends T ? never : T : never;
|
|
483
332
|
type BaseUrl = ExtractLiterals<ClientOptions['baseUrl']>;
|
|
484
333
|
|
|
334
|
+
/**
|
|
335
|
+
* Action handlers for custom payment flows in payable operations.
|
|
336
|
+
*
|
|
337
|
+
* These handlers provide fine-grained control over payment workflows, allowing customers to:
|
|
338
|
+
* - Integrate external payment providers
|
|
339
|
+
* - Implement custom approval processes or multi-step authentication
|
|
340
|
+
* - Add specialized banking solutions or enterprise payment workflows
|
|
341
|
+
* - Control UI feedback and data refresh timing after payment completion
|
|
342
|
+
*
|
|
343
|
+
* @example Custom payment provider integration:
|
|
344
|
+
* ```typescript
|
|
345
|
+
* const onPay = (id: string, _data?: unknown, actions?: PayActionHandlers) => {
|
|
346
|
+
* // Start custom payment flow
|
|
347
|
+
* initiatePayment(id)
|
|
348
|
+
* .then(() => {
|
|
349
|
+
* // Payment successful - update SDK state and show success message
|
|
350
|
+
* actions?.resolve({ showToast: true });
|
|
351
|
+
* })
|
|
352
|
+
* .catch((error) => {
|
|
353
|
+
* // Payment failed - update SDK state and show error message
|
|
354
|
+
* actions?.reject(error, { showToast: true });
|
|
355
|
+
* });
|
|
356
|
+
* };
|
|
357
|
+
* ```
|
|
358
|
+
*/
|
|
359
|
+
type PayActionHandlers = {
|
|
360
|
+
/**
|
|
361
|
+
* Call when a custom payment flow has been successfully initiated/completed.
|
|
362
|
+
* This triggers SDK's built-in state management: refreshes payable data,
|
|
363
|
+
* payment records, and optionally displays success feedback to the user.
|
|
364
|
+
*
|
|
365
|
+
* @param options.showToast - Whether to display a success toast notification
|
|
366
|
+
*/
|
|
367
|
+
resolve: (options?: {
|
|
368
|
+
showToast?: boolean;
|
|
369
|
+
}) => void;
|
|
370
|
+
/**
|
|
371
|
+
* Call when a custom payment flow failed or was cancelled by the user.
|
|
372
|
+
* This triggers SDK's built-in state management: refreshes payable data,
|
|
373
|
+
* payment records, and optionally displays error feedback to the user.
|
|
374
|
+
*
|
|
375
|
+
* @param error - Optional error details from the failed payment attempt
|
|
376
|
+
* @param options.showToast - Whether to display an error toast notification
|
|
377
|
+
*/
|
|
378
|
+
reject: (error?: unknown, options?: {
|
|
379
|
+
showToast?: boolean;
|
|
380
|
+
}) => void;
|
|
381
|
+
};
|
|
382
|
+
|
|
383
|
+
type UsePayableDetailsProps = {
|
|
384
|
+
/**
|
|
385
|
+
* The ID of the payable
|
|
386
|
+
*/
|
|
387
|
+
id?: string;
|
|
388
|
+
/** when provided it takes precedence over component settings */
|
|
389
|
+
enableGLCodes?: boolean;
|
|
390
|
+
/** when provided it makes the payable open in edit mode */
|
|
391
|
+
shouldOpenInEditMode?: boolean;
|
|
392
|
+
/**
|
|
393
|
+
* Callback function that is called when the payable is saved
|
|
394
|
+
*
|
|
395
|
+
* @param {string} id - The ID of the payable
|
|
396
|
+
*
|
|
397
|
+
* @returns {void}
|
|
398
|
+
*/
|
|
399
|
+
onSaved?: (id: string) => void;
|
|
400
|
+
/**
|
|
401
|
+
* Callback function that is called when the payable is canceled
|
|
402
|
+
*
|
|
403
|
+
* @param {string} id - The ID of the payable
|
|
404
|
+
*
|
|
405
|
+
* @returns {void}
|
|
406
|
+
*/
|
|
407
|
+
onCanceled?: (id: string) => void;
|
|
408
|
+
/**
|
|
409
|
+
* Callback function that is called when the payable is submitted
|
|
410
|
+
*
|
|
411
|
+
* @param {string} id - The ID of the payable
|
|
412
|
+
*
|
|
413
|
+
* @returns {void}
|
|
414
|
+
*/
|
|
415
|
+
onSubmitted?: (id: string) => void;
|
|
416
|
+
/**
|
|
417
|
+
* Callback function that is called when the payable is rejected
|
|
418
|
+
*
|
|
419
|
+
* @param {string} id - The ID of the payable
|
|
420
|
+
*
|
|
421
|
+
* @returns {void}
|
|
422
|
+
*/
|
|
423
|
+
onRejected?: (id: string) => void;
|
|
424
|
+
/**
|
|
425
|
+
* Callback function that is called when the payable is approved
|
|
426
|
+
*
|
|
427
|
+
* @param {string} id - The ID of the payable
|
|
428
|
+
*
|
|
429
|
+
* @returns {void}
|
|
430
|
+
*/
|
|
431
|
+
onApproved?: (id: string) => void;
|
|
432
|
+
/** Callback function that is called when the payable is reopened
|
|
433
|
+
*
|
|
434
|
+
* @param {string} id - The ID of the payable
|
|
435
|
+
*
|
|
436
|
+
* @returns {void}
|
|
437
|
+
*/
|
|
438
|
+
onReopened?: (id: string) => void;
|
|
439
|
+
/** Callback function that is called when the payable is deleted
|
|
440
|
+
*
|
|
441
|
+
* @param {string} id - The ID of the payable
|
|
442
|
+
*
|
|
443
|
+
* @returns {void}
|
|
444
|
+
*/
|
|
445
|
+
onDeleted?: (id: string) => void;
|
|
446
|
+
/**
|
|
447
|
+
* Callback function that is called when the user press the Pay button
|
|
448
|
+
*
|
|
449
|
+
* @param {string} id - The ID of the payable
|
|
450
|
+
*
|
|
451
|
+
* @returns {void}
|
|
452
|
+
*/
|
|
453
|
+
onPay?: (id: string, _data?: unknown, actions?: PayActionHandlers) => void;
|
|
454
|
+
};
|
|
455
|
+
|
|
456
|
+
type PayablesProps = {
|
|
457
|
+
pageTitleComponent: (children: ReactNode) => ReactNode;
|
|
458
|
+
/**
|
|
459
|
+
* Enable GL code selection for payable line items.
|
|
460
|
+
* When true, users can assign GL codes to individual line items.
|
|
461
|
+
* GL codes are fetched from the connected accounting system.
|
|
462
|
+
*/
|
|
463
|
+
enableGLCodes?: boolean;
|
|
464
|
+
/** Arrival prop: 'create' opens the create-bill dialog on mount. */
|
|
465
|
+
initialView?: 'create';
|
|
466
|
+
/** Arrival prop: preselects this counterpart in the create-bill form. */
|
|
467
|
+
initialCounterpartId?: string;
|
|
468
|
+
} & Partial<Pick<UsePayableDetailsProps, 'onSaved' | 'onCanceled' | 'onSubmitted' | 'onRejected' | 'onApproved' | 'onReopened' | 'onDeleted' | 'onPay'>>;
|
|
469
|
+
|
|
470
|
+
type ALIGN_DIALOG_TYPES = 'left' | 'right';
|
|
471
|
+
declare module '@mui/material/transitions' {
|
|
472
|
+
interface TransitionProps {
|
|
473
|
+
alignDialog?: ALIGN_DIALOG_TYPES;
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
interface FinopsThemeColors {
|
|
478
|
+
primary?: string;
|
|
479
|
+
primaryForeground?: string;
|
|
480
|
+
}
|
|
481
|
+
interface MoniteWrapperProps {
|
|
482
|
+
finopsThemeColors?: FinopsThemeColors;
|
|
483
|
+
}
|
|
484
|
+
|
|
485
485
|
type LinkComponentProps = AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
486
486
|
children?: ReactNode;
|
|
487
487
|
};
|
|
@@ -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/index28.js";
|
|
2
2
|
import "../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js";
|
|
3
3
|
export { e as BillPayWidget };
|
|
@@ -2,6 +2,6 @@ import { INSIGHTS_FEATURE_LABELS_EN as e } from "../libs/tesouro-embedded-compon
|
|
|
2
2
|
import { INSIGHTS_WIDGET_LABELS_EN as t } from "../libs/tesouro-embedded-components-react/insights-widget/ui/dist/index2.js";
|
|
3
3
|
import { SINGLE_INSIGHT_LABELS_EN as n } from "../libs/tesouro-embedded-components-react/insights-widget/ui/dist/index4.js";
|
|
4
4
|
import "../libs/tesouro-embedded-components-react/insights-widget/ui/dist/index.js";
|
|
5
|
-
import { InsightsWidget as r } from "../libs/tesouro-embedded-components-react/insights-widget/feature/dist/
|
|
5
|
+
import { InsightsWidget as r } from "../libs/tesouro-embedded-components-react/insights-widget/feature/dist/index11.js";
|
|
6
6
|
import "../libs/tesouro-embedded-components-react/insights-widget/feature/dist/index.js";
|
|
7
7
|
export { e as INSIGHTS_FEATURE_LABELS_EN, t as INSIGHTS_WIDGET_LABELS_EN, r as InsightsWidget, n as SINGLE_INSIGHT_LABELS_EN };
|
package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/feature/dist/index4.js
CHANGED
|
@@ -11,7 +11,7 @@ import { useAcceptWidgetDisclosures as a } from "../../data-access/dist/index2.j
|
|
|
11
11
|
import "../../data-access/dist/index.js";
|
|
12
12
|
import { useAnalyticsTrack as o } from "../../../shared/feature/dist/lib/analytics/hooks.js";
|
|
13
13
|
import { WidgetProvider as s } from "../../../shared/feature/dist/lib/WidgetProvider/WidgetProvider.js";
|
|
14
|
-
import { extractApiErrorMessage as c } from "../../../shared/util/dist/
|
|
14
|
+
import { extractApiErrorMessage as c } from "../../../shared/util/dist/lib/apiErrors.js";
|
|
15
15
|
import { useRefetchWidget as l, useWidgetConfig as u } from "../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
|
|
16
16
|
import "../../../shared/feature/dist/index.js";
|
|
17
17
|
import { useCallback as d, useEffect as f, useRef as p, useState as m } from "react";
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
import { Scope as e } from "../../../shared/data-access/dist/lib/scopes.js";
|
|
6
6
|
import { useAllBankAccountsQuery as t } from "../../../shared/data-access/dist/lib/bank-account/useAllBankAccountsQuery.js";
|
|
7
7
|
import "../../../shared/data-access/dist/index.js";
|
|
8
|
-
import { formatMoneyExact as n } from "../../../shared/util/dist/
|
|
9
|
-
import { normalizeAmountOutputCurrencyCode as r } from "../../../shared/util/dist/
|
|
10
|
-
import { parseAmountOutputMajorUnits as i } from "../../../shared/util/dist/
|
|
11
|
-
import { sumAmountOutputsMajorUnits as a } from "../../../shared/util/dist/
|
|
8
|
+
import { formatMoneyExact as n } from "../../../shared/util/dist/lib/formatMoneyExact.js";
|
|
9
|
+
import { normalizeAmountOutputCurrencyCode as r } from "../../../shared/util/dist/lib/normalizeAmountOutputCurrencyCode.js";
|
|
10
|
+
import { parseAmountOutputMajorUnits as i } from "../../../shared/util/dist/lib/parseAmountOutputMajorUnits.js";
|
|
11
|
+
import { sumAmountOutputsMajorUnits as a } from "../../../shared/util/dist/lib/sumAmountOutputsMajorUnits.js";
|
|
12
12
|
import { useWidgetConfig as o } from "../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
|
|
13
13
|
import "../../../shared/feature/dist/index.js";
|
|
14
14
|
import { createContext as s, useCallback as c, useContext as l, useMemo as u } from "react";
|
|
@@ -9,8 +9,8 @@ import { OnboardingShell as i } from "../../../shared/ui/dist/lib/OnboardingShel
|
|
|
9
9
|
import "../../../shared/ui/dist/index.js";
|
|
10
10
|
import { useAnalyticsTrack as a } from "../../../shared/feature/dist/lib/analytics/hooks.js";
|
|
11
11
|
import { WidgetProvider as ee } from "../../../shared/feature/dist/lib/WidgetProvider/WidgetProvider.js";
|
|
12
|
-
import { getStateOptions as o } from "../../../shared/util/dist/
|
|
13
|
-
import { extractApiErrorMessage as s } from "../../../shared/util/dist/
|
|
12
|
+
import { getStateOptions as o } from "../../../shared/util/dist/lib/usStates.js";
|
|
13
|
+
import { extractApiErrorMessage as s } from "../../../shared/util/dist/lib/apiErrors.js";
|
|
14
14
|
import { useRefetchWidget as te, useWidgetConfig as ne } from "../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
|
|
15
15
|
import { getNaicsOptions as c } from "../../../shared/feature/dist/lib/naicsCodeMap.js";
|
|
16
16
|
import "../../../shared/feature/dist/index.js";
|
package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/index7.js
CHANGED
|
@@ -7,7 +7,7 @@ import { useAllBankAccountsQuery as t } from "../../../shared/data-access/dist/l
|
|
|
7
7
|
import { useAllOrganizationRolesQuery as n } from "../../../shared/data-access/dist/lib/role/useAllOrganizationRolesQuery.js";
|
|
8
8
|
import "../../../shared/ui/dist/index.js";
|
|
9
9
|
import { useAnalyticsTrack as r } from "../../../shared/feature/dist/lib/analytics/hooks.js";
|
|
10
|
-
import { TESOURO_NEW_EMBEDDED_BANK_ACCOUNT_CREATED_SUCCESS_EVENT as ee, emitWidgetDomEvent as te } from "../../../shared/util/dist/
|
|
10
|
+
import { TESOURO_NEW_EMBEDDED_BANK_ACCOUNT_CREATED_SUCCESS_EVENT as ee, emitWidgetDomEvent as te } from "../../../shared/util/dist/lib/widgetDomEvents.js";
|
|
11
11
|
import { useWidgetConfig as ne, useWidgetError as re, useWidgetLoading as ie } from "../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
|
|
12
12
|
import "../../../shared/feature/dist/index.js";
|
|
13
13
|
import { BankAccountsWidgetAnalyticsEvent as i } from "./index2.js";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { useEmbedApi as e } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
2
|
+
import "../../../shared/data-access/dist/index.js";
|
|
3
|
+
import "./index3.js";
|
|
4
|
+
import "./index5.js";
|
|
5
|
+
import { useAllPayableLineItemsQuery as t, useReplacePayableLineItemsMutation as n } from "./index6.js";
|
|
6
|
+
import { useAttachPayableFileMutation as r, useCreatePayableMutation as i, useDeletePayableFileMutation as a, useSubmitPayableForApprovalMutation as o, useUpdatePayableMutation as s, useUploadPayableFromFileMutation as c, useValidatePayableMutation as l } from "./index7.js";
|
|
7
|
+
import { usePayableOcrQueries as u } from "./index9.js";
|
|
8
|
+
import { usePayableQuery as d, usePayablesQuery as f } from "./index10.js";
|
|
9
|
+
import { usePayableSuggestionsQuery as p } from "./index11.js";
|
|
10
|
+
export { t as useAllPayableLineItemsQuery, r as useAttachPayableFileMutation, i as useCreatePayableMutation, a as useDeletePayableFileMutation, e as useEmbedApi, u as usePayableOcrQueries, d as usePayableQuery, p as usePayableSuggestionsQuery, f as usePayablesQuery, n as useReplacePayableLineItemsMutation, o as useSubmitPayableForApprovalMutation, s as useUpdatePayableMutation, c as useUploadPayableFromFileMutation, l as useValidatePayableMutation };
|
package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index10.js
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
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 { getPayablesIdOptions as n, getPayablesOptions as r } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
8
|
+
import { withAuthEpoch as i } from "../../../shared/data-access/dist/lib/withAuthEpoch.js";
|
|
9
|
+
import "../../../shared/data-access/dist/index.js";
|
|
10
|
+
import { payableOcrQueryOptions as a } from "./index8.js";
|
|
11
|
+
import { useQuery as o } from "@tanstack/react-query";
|
|
12
|
+
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index10.js
|
|
13
|
+
function s({ enabled: n, ...a } = {}) {
|
|
14
|
+
let { client: s, organizationId: c, widgetToken: l, authEpoch: u } = e(), d = !!(c && l) && (n === !0 || n === void 0), f = r({
|
|
15
|
+
client: s,
|
|
16
|
+
headers: t(c),
|
|
17
|
+
query: a
|
|
18
|
+
});
|
|
19
|
+
return o({
|
|
20
|
+
...i(f, u),
|
|
21
|
+
enabled: d
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
function c(r, { enabled: s = !0, pollWhileOcrProcessing: c = !1 } = {}) {
|
|
25
|
+
let { client: l, organizationId: u, widgetToken: d, authEpoch: f } = e(), p = !!(u && d && r) && s, m = c ? a({
|
|
26
|
+
client: l,
|
|
27
|
+
organizationId: u,
|
|
28
|
+
payableId: r ?? ""
|
|
29
|
+
}) : n({
|
|
30
|
+
client: l,
|
|
31
|
+
headers: t(u),
|
|
32
|
+
path: { payable_id: r ?? "" }
|
|
33
|
+
});
|
|
34
|
+
return o({
|
|
35
|
+
...i(m, f),
|
|
36
|
+
enabled: p
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
//#endregion
|
|
40
|
+
export { c as usePayableQuery, s as usePayablesQuery };
|
package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index11.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/index11.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
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
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";
|
|
3
|
+
import "../../../shared/data-access/dist/index.js";
|
|
4
|
+
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index3.js
|
|
5
|
+
var s = ({ client: t, organizationId: n }) => o({
|
|
6
|
+
client: t,
|
|
7
|
+
headers: e(n)
|
|
8
|
+
}), c = ({ client: n, organizationId: r }) => t({
|
|
9
|
+
client: n,
|
|
10
|
+
headers: e(r)
|
|
11
|
+
}), l = ({ client: t, organizationId: r }) => n({
|
|
12
|
+
client: t,
|
|
13
|
+
headers: e(r)
|
|
14
|
+
}), u = ({ client: t, organizationId: n, payableId: r }) => a({
|
|
15
|
+
client: t,
|
|
16
|
+
headers: e(n),
|
|
17
|
+
path: { payable_id: r }
|
|
18
|
+
}), d = ({ client: t, organizationId: n, payableId: i }) => r({
|
|
19
|
+
client: t,
|
|
20
|
+
headers: e(n),
|
|
21
|
+
path: { payable_id: i }
|
|
22
|
+
}), f = ({ client: t, organizationId: n, payableId: r }) => i({
|
|
23
|
+
client: t,
|
|
24
|
+
headers: e(n),
|
|
25
|
+
path: { payable_id: r }
|
|
26
|
+
});
|
|
27
|
+
//#endregion
|
|
28
|
+
export { c as approvalRequestsInvalidationKey, d as payableHistoryInvalidationKey, u as payableInvalidationKey, f as payableLineItemsInvalidationKey, l as payablesAnalyticsInvalidationKey, s as payablesInvalidationKey };
|
package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index4.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { invalidateAllClients as e } from "../../../shared/data-access/dist/lib/clientRegistry.js";
|
|
2
|
+
import "../../../shared/data-access/dist/index.js";
|
|
3
|
+
import { approvalRequestsInvalidationKey as t, payableHistoryInvalidationKey as n, payableInvalidationKey as r, payableLineItemsInvalidationKey as i, payablesAnalyticsInvalidationKey as a, payablesInvalidationKey as o } from "./index3.js";
|
|
4
|
+
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index4.js
|
|
5
|
+
async function s({ client: s, organizationId: c, payableId: l, includeLineItems: u, includeApprovalRequests: d }) {
|
|
6
|
+
let f = {
|
|
7
|
+
client: s,
|
|
8
|
+
organizationId: c
|
|
9
|
+
}, p = l ? {
|
|
10
|
+
...f,
|
|
11
|
+
payableId: l
|
|
12
|
+
} : void 0, m = [
|
|
13
|
+
o(f),
|
|
14
|
+
a(f),
|
|
15
|
+
...d ? [t(f)] : [],
|
|
16
|
+
...p ? [r(p), n(p)] : [],
|
|
17
|
+
...p && u ? [i(p)] : []
|
|
18
|
+
];
|
|
19
|
+
await Promise.all(m.map((t) => e(t)));
|
|
20
|
+
}
|
|
21
|
+
//#endregion
|
|
22
|
+
export { s as invalidatePayableQueries };
|