@tesouro/embedded-components-react 0.2.327 → 0.2.328
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/index.css +3 -0
- package/dist/index.d.ts +59 -59
- package/dist/index.js +1 -1
- package/dist/lib/BillPayWidget.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index10.js +119 -33
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index4.js +50 -21
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index5.js +39 -17
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index8.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index9.js +17 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index10.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index12.js +45 -17
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index13.js +4 -21
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index14.js +9 -24
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index15.js +42 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index16.js +25 -50
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index17.js +49 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index18.js +91 -63
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index19.js +20 -49
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index20.js +52 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index21.js +5 -35
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index22.js +67 -113
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index23.js +46 -53
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index24.js +80 -205
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index25.js +32 -192
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index26.js +117 -62
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index27.js +54 -45
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index28.js +205 -31
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index29.js +184 -143
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index30.js +63 -33
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index31.js +46 -100
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index32.js +32 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index33.js +146 -182
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index34.js +38 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index35.js +102 -24
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index36.js +10 -80
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index37.js +200 -78
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index38.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index39.js +27 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index40.js +78 -41
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index41.js +132 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index42.js +3 -53
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index43.js +2 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index44.js +43 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index45.js +1 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js +50 -77
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index47.js +8 -145
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +18 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index49.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index50.js +78 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js +138 -75
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index52.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index53.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index54.js +7 -113
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js +85 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js +2 -24
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index57.js +8 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index58.js +115 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js +25 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index7.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +33 -25
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index12.js +13 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index13.js +58 -13
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index14.js +2 -24
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index15.js +22 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index16.js +23 -31
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index17.js +1 -262
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index18.js +15 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index19.js +23 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index20.js +2 -49
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index21.js +41 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.js +271 -20
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index23.js +2 -286
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index24.js +9 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index25.js +47 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index26.js +2 -120
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index27.js +22 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index28.js +284 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index29.js +2 -96
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index30.js +16 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index31.js +118 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index32.js +1 -57
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index33.js +10 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index34.js +93 -51
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index35.js +1 -138
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index36.js +12 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index37.js +56 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index38.js +2 -44
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index39.js +53 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index40.js +137 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index41.js +2 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index42.js +7 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index43.js +42 -59
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index44.js +2 -238
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index45.js +2 -202
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index46.js +61 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index47.js +2 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index48.js +2 -91
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index49.js +16 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index50.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index51.js +67 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index52.js +248 -25
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index53.js +204 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index54.js +6 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index55.js +6 -32
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index56.js +93 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index58.js +1 -105
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index59.js +7 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index60.js +28 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index61.js +2 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index62.js +4 -167
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index63.js +34 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index64.js +2 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index65.js +10 -87
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index66.js +105 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index67.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index68.js +18 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index69.js +10 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index70.js +170 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index71.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index72.js +14 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index73.js +89 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index74.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/data-access/dist/lib/approvalPoliciesApi.js +20 -20
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/feature/dist/index.js +4 -4
- 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/sdk.gen.js +142 -102
- 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/index57.js +0 -12
package/dist/index.css
CHANGED
|
@@ -4412,6 +4412,9 @@
|
|
|
4412
4412
|
.ttw\:hover\:bg-transparent:hover {
|
|
4413
4413
|
background-color: transparent;
|
|
4414
4414
|
}
|
|
4415
|
+
.ttw\:hover\:bg-violet-50:hover {
|
|
4416
|
+
background-color: var(--ttw-color-violet-50);
|
|
4417
|
+
}
|
|
4415
4418
|
.ttw\:hover\:bg-white\/10:hover {
|
|
4416
4419
|
background-color: var(--ttw-color-white);
|
|
4417
4420
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1741,6 +1741,65 @@ interface ConfirmDeleteDialogLabels {
|
|
|
1741
1741
|
cancelButton: string;
|
|
1742
1742
|
}
|
|
1743
1743
|
|
|
1744
|
+
interface NoPolicyBannerLabels {
|
|
1745
|
+
Title: string;
|
|
1746
|
+
Body: string;
|
|
1747
|
+
/**
|
|
1748
|
+
* Heading for an org that *has* rules, none of which this editor can show. The
|
|
1749
|
+
* plain `Title` would contradict the notice sitting directly above it, which
|
|
1750
|
+
* has just said how many rules exist.
|
|
1751
|
+
*/
|
|
1752
|
+
TitleWithUnlistedRules: string;
|
|
1753
|
+
/** Body for that case. The notice above already explains the why. */
|
|
1754
|
+
BodyWithUnlistedRules: string;
|
|
1755
|
+
CreateRule: string;
|
|
1756
|
+
}
|
|
1757
|
+
|
|
1758
|
+
interface NoPolicyBannerProps {
|
|
1759
|
+
onCreateRule: () => void;
|
|
1760
|
+
disabled?: boolean;
|
|
1761
|
+
/**
|
|
1762
|
+
* Why Create rule is off, shown on hover and on keyboard focus. Omit it for the
|
|
1763
|
+
* transient reasons that explain themselves on screen (a write in flight).
|
|
1764
|
+
*/
|
|
1765
|
+
createRuleDisabledReason?: string;
|
|
1766
|
+
/**
|
|
1767
|
+
* Whether the org has rules that simply are not shown here. Switches the copy
|
|
1768
|
+
* off the "none created yet" claim, which would contradict the notice that
|
|
1769
|
+
* sits above this banner and has just counted them.
|
|
1770
|
+
*/
|
|
1771
|
+
hasUnlistedRules?: boolean;
|
|
1772
|
+
labels?: Partial<NoPolicyBannerLabels>;
|
|
1773
|
+
}
|
|
1774
|
+
|
|
1775
|
+
interface GapCoverageAlertLabels {
|
|
1776
|
+
Title: string;
|
|
1777
|
+
Footer: string;
|
|
1778
|
+
}
|
|
1779
|
+
|
|
1780
|
+
/**
|
|
1781
|
+
* One uncovered bill-amount range. `label` is pre-formatted by the caller
|
|
1782
|
+
* (e.g. "$10.01 to $99.99" or "$500.01 or more") — this component renders it
|
|
1783
|
+
* as-is rather than composing range/currency copy itself.
|
|
1784
|
+
*/
|
|
1785
|
+
interface GapRange {
|
|
1786
|
+
id: string;
|
|
1787
|
+
label: string;
|
|
1788
|
+
/**
|
|
1789
|
+
* Why a new rule cannot take this range, for the link's tooltip. A range can be
|
|
1790
|
+
* uncovered today and still be spoken for — a rule whose schedule has not
|
|
1791
|
+
* started covers nothing yet but claims its range — in which case starting a
|
|
1792
|
+
* rule here only ever ends in a rejected save. Omit for a range that is free.
|
|
1793
|
+
*/
|
|
1794
|
+
blockedReason?: string;
|
|
1795
|
+
}
|
|
1796
|
+
interface GapCoverageAlertProps {
|
|
1797
|
+
gaps: GapRange[];
|
|
1798
|
+
onSelectGap: (id: string) => void;
|
|
1799
|
+
disabled?: boolean;
|
|
1800
|
+
labels?: Partial<GapCoverageAlertLabels>;
|
|
1801
|
+
}
|
|
1802
|
+
|
|
1744
1803
|
/**
|
|
1745
1804
|
* Action handlers for custom payment flows in payable operations.
|
|
1746
1805
|
*
|
|
@@ -4796,65 +4855,6 @@ interface CheckAmountAndDetailScreenProps {
|
|
|
4796
4855
|
continueDisabled?: boolean;
|
|
4797
4856
|
}
|
|
4798
4857
|
|
|
4799
|
-
interface NoPolicyBannerLabels {
|
|
4800
|
-
Title: string;
|
|
4801
|
-
Body: string;
|
|
4802
|
-
/**
|
|
4803
|
-
* Heading for an org that *has* rules, none of which this editor can show. The
|
|
4804
|
-
* plain `Title` would contradict the notice sitting directly above it, which
|
|
4805
|
-
* has just said how many rules exist.
|
|
4806
|
-
*/
|
|
4807
|
-
TitleWithUnlistedRules: string;
|
|
4808
|
-
/** Body for that case. The notice above already explains the why. */
|
|
4809
|
-
BodyWithUnlistedRules: string;
|
|
4810
|
-
CreateRule: string;
|
|
4811
|
-
}
|
|
4812
|
-
|
|
4813
|
-
interface NoPolicyBannerProps {
|
|
4814
|
-
onCreateRule: () => void;
|
|
4815
|
-
disabled?: boolean;
|
|
4816
|
-
/**
|
|
4817
|
-
* Why Create rule is off, shown on hover and on keyboard focus. Omit it for the
|
|
4818
|
-
* transient reasons that explain themselves on screen (a write in flight).
|
|
4819
|
-
*/
|
|
4820
|
-
createRuleDisabledReason?: string;
|
|
4821
|
-
/**
|
|
4822
|
-
* Whether the org has rules that simply are not shown here. Switches the copy
|
|
4823
|
-
* off the "none created yet" claim, which would contradict the notice that
|
|
4824
|
-
* sits above this banner and has just counted them.
|
|
4825
|
-
*/
|
|
4826
|
-
hasUnlistedRules?: boolean;
|
|
4827
|
-
labels?: Partial<NoPolicyBannerLabels>;
|
|
4828
|
-
}
|
|
4829
|
-
|
|
4830
|
-
interface GapCoverageAlertLabels {
|
|
4831
|
-
Title: string;
|
|
4832
|
-
Footer: string;
|
|
4833
|
-
}
|
|
4834
|
-
|
|
4835
|
-
/**
|
|
4836
|
-
* One uncovered bill-amount range. `label` is pre-formatted by the caller
|
|
4837
|
-
* (e.g. "$10.01 to $99.99" or "$500.01 or more") — this component renders it
|
|
4838
|
-
* as-is rather than composing range/currency copy itself.
|
|
4839
|
-
*/
|
|
4840
|
-
interface GapRange {
|
|
4841
|
-
id: string;
|
|
4842
|
-
label: string;
|
|
4843
|
-
/**
|
|
4844
|
-
* Why a new rule cannot take this range, for the link's tooltip. A range can be
|
|
4845
|
-
* uncovered today and still be spoken for — a rule whose schedule has not
|
|
4846
|
-
* started covers nothing yet but claims its range — in which case starting a
|
|
4847
|
-
* rule here only ever ends in a rejected save. Omit for a range that is free.
|
|
4848
|
-
*/
|
|
4849
|
-
blockedReason?: string;
|
|
4850
|
-
}
|
|
4851
|
-
interface GapCoverageAlertProps {
|
|
4852
|
-
gaps: GapRange[];
|
|
4853
|
-
onSelectGap: (id: string) => void;
|
|
4854
|
-
disabled?: boolean;
|
|
4855
|
-
labels?: Partial<GapCoverageAlertLabels>;
|
|
4856
|
-
}
|
|
4857
|
-
|
|
4858
4858
|
type PendingFeatureStyleSources = CheckAmountAndDetailScreenProps | GapCoverageAlertProps | NoPolicyBannerProps;
|
|
4859
4859
|
|
|
4860
4860
|
export { ACCEPT_DISCLOSURES_WIDGET_LABELS_EN, ACCOUNT_DELETE_DIALOG_LABELS_EN, ACCOUNT_FORM_SHEET_LABELS_EN, ADDITIONAL_OWNERS_LABELS_EN, AcceptDisclosuresWidget, AccountDeleteDialog, AccountFormSheet, BALANCES_WIDGET_LABELS_EN, BUSINESS_DETAILS_LABELS_EN, BalancesWidget, BankAccountOnboardingWidget, BankAccountsWidget, BillPayWidget, CHART_OF_ACCOUNTS_LABELS_EN, CHART_OF_ACCOUNTS_MESSAGE_LABELS_EN, CREATE_CARD_FEATURE_LABELS_EN, CardDetailsWidget, CardFormatValue, CardsWidget, ChartOfAccountsTable, ChartOfAccountsWidget, CounterpartsWidget, CreateCardWidget, ERROR_STATE_ID, ExpenseApprovalPoliciesWidget, ExpenseManagementWidget, ExpenseRequirementsWidget, HELP_FAQ_EN, HELP_WIDGET_LABELS_EN, HelpWidget, INSIGHTS_FEATURE_LABELS_EN, INSIGHTS_WIDGET_LABELS_EN, Implementation, InsightsWidget, ReceivablesWidgetMonite as InvoicingWidget, LinkedAccountsWidget, PERSONAL_DETAILS_LABELS_EN, ProductsWidget, ProfileWidget, RESULT_LABELS_EN, ReceiptMatchWidget, ReceivablesWidget, RefreshingRootWidgetProvider, RootWidgetProvider, SINGLE_INSIGHT_LABELS_EN, SettingsSection, SettingsWidget, DEFAULT_FEATURE_LABELS as TRANSFERS_FEATURE_LABELS_EN, TRANSFERS_WIDGET_LABELS_EN, TagsWidget, TeamWidget, TransfersWidget, UIFramework, UploadReceiptWidget, WidgetProvider, WidgetTokenRefreshProvider, cloneEmbeddedClient, getGlobalWidgetConfig, getGlobalWidgetInitState, registerDesignSystemEnsurer, registerUIRenderers, resolveCreateCardFeatureLabels, setGlobalWidgetConfig, subscribeToGlobalWidgetInitState, updateGlobalWidgetConfig, useDisclosuresAcceptanceSurface, useOwnWidgetConfig, useRefetchWidget, useWidgetConfig, useWidgetError, useWidgetLoading, useWidgetToken };
|
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/index60.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";
|
|
@@ -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/index60.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,13 +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 {
|
|
5
|
-
import { usePayableHistoryQuery as
|
|
6
|
-
import { useAllPayableLineItemsQuery as
|
|
7
|
-
import { usePayablePaymentRecordsQuery as
|
|
8
|
-
import { useSchedulePaymentMutation as
|
|
9
|
-
import { useAttachPayableFileMutation as
|
|
10
|
-
import { usePayableOcrQueries as
|
|
11
|
-
import { usePayableQuery as
|
|
12
|
-
import { usePayableSuggestionsQuery as
|
|
13
|
-
export {
|
|
4
|
+
import { useApprovePayableApprovalRequestMutation as t, usePayableApprovalRequestsQuery as n, useRejectPayableApprovalRequestMutation as r } from "./index5.js";
|
|
5
|
+
import { usePayableHistoryQuery as i } from "./index6.js";
|
|
6
|
+
import { useAllPayableLineItemsQuery as a, useReplacePayableLineItemsMutation as o } from "./index7.js";
|
|
7
|
+
import { usePayablePaymentRecordsQuery as s } from "./index8.js";
|
|
8
|
+
import { useSchedulePaymentMutation as c } from "./index9.js";
|
|
9
|
+
import { useAttachPayableFileMutation as l, useCancelPayableMutation as u, useCreatePayableMutation as d, useDeletePayableFileMutation as f, useForceApprovePayableMutation as p, useForceRejectPayableMutation as m, useMarkPayableAsPaidMutation as h, useReopenPayableMutation as g, useSubmitPayableForApprovalMutation as _, useUpdatePayableMutation as v, useUploadPayableFromFileMutation as y, useValidatePayableMutation as b } from "./index10.js";
|
|
10
|
+
import { usePayableOcrQueries as x } from "./index12.js";
|
|
11
|
+
import { usePayableQuery as S, usePayablesQuery as C, usePayablesTotalCountQuery as w } from "./index13.js";
|
|
12
|
+
import { usePayableSuggestionsQuery as T } from "./index14.js";
|
|
13
|
+
export { a as useAllPayableLineItemsQuery, t as useApprovePayableApprovalRequestMutation, l as useAttachPayableFileMutation, u as useCancelPayableMutation, d as useCreatePayableMutation, f as useDeletePayableFileMutation, e as useEmbedApi, p as useForceApprovePayableMutation, m as useForceRejectPayableMutation, h as useMarkPayableAsPaidMutation, n as usePayableApprovalRequestsQuery, i as usePayableHistoryQuery, x as usePayableOcrQueries, s as usePayablePaymentRecordsQuery, S as usePayableQuery, T as usePayableSuggestionsQuery, C as usePayablesQuery, w as usePayablesTotalCountQuery, r as useRejectPayableApprovalRequestMutation, g as useReopenPayableMutation, o as useReplacePayableLineItemsMutation, c as useSchedulePaymentMutation, _ as useSubmitPayableForApprovalMutation, v as useUpdatePayableMutation, y as useUploadPayableFromFileMutation, b as useValidatePayableMutation };
|
package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index10.js
CHANGED
|
@@ -4,14 +4,14 @@
|
|
|
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 { deleteFilesId as n, patchPayablesId as r, postPayables as i,
|
|
7
|
+
import { deleteFilesId as n, patchPayablesId as r, postPayables as i, postPayablesIdApprovePaymentOperation as a, postPayablesIdAttachFile as o, postPayablesIdCancel as s, postPayablesIdMarkAsPaid as c, postPayablesIdReject as l, postPayablesIdReopen as u, postPayablesIdSubmitForApproval as d, postPayablesIdValidate as f, postPayablesUploadFromFile as p } from "../../../shared/data-access/dist/lib/rest/sdk.gen.js";
|
|
8
8
|
import "../../../shared/data-access/dist/index.js";
|
|
9
|
-
import { invalidatePayableQueries as
|
|
10
|
-
import { useMutation as
|
|
9
|
+
import { invalidatePayableQueries as m } from "./index4.js";
|
|
10
|
+
import { useMutation as h } from "@tanstack/react-query";
|
|
11
11
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index10.js
|
|
12
|
-
function
|
|
12
|
+
function g() {
|
|
13
13
|
let { client: n, organizationId: r } = e();
|
|
14
|
-
return
|
|
14
|
+
return h({
|
|
15
15
|
mutationFn: async ({ body: e }) => {
|
|
16
16
|
let { data: a } = await i({
|
|
17
17
|
client: n,
|
|
@@ -22,16 +22,16 @@ function f() {
|
|
|
22
22
|
return a;
|
|
23
23
|
},
|
|
24
24
|
onSuccess: async () => {
|
|
25
|
-
await
|
|
25
|
+
await m({
|
|
26
26
|
client: n,
|
|
27
27
|
organizationId: r
|
|
28
28
|
});
|
|
29
29
|
}
|
|
30
30
|
});
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function _() {
|
|
33
33
|
let { client: n, organizationId: i } = e();
|
|
34
|
-
return
|
|
34
|
+
return h({
|
|
35
35
|
mutationFn: async ({ path: e, body: a }) => {
|
|
36
36
|
let { data: o } = await r({
|
|
37
37
|
client: n,
|
|
@@ -43,7 +43,7 @@ function p() {
|
|
|
43
43
|
return o;
|
|
44
44
|
},
|
|
45
45
|
onSuccess: async (e, t) => {
|
|
46
|
-
await
|
|
46
|
+
await m({
|
|
47
47
|
client: n,
|
|
48
48
|
organizationId: i,
|
|
49
49
|
payableId: t.path.payable_id
|
|
@@ -51,11 +51,11 @@ function p() {
|
|
|
51
51
|
}
|
|
52
52
|
});
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function v() {
|
|
55
55
|
let { client: n, organizationId: i } = e();
|
|
56
|
-
return
|
|
56
|
+
return h({
|
|
57
57
|
mutationFn: async ({ file: e }) => {
|
|
58
|
-
let { data: a } = await
|
|
58
|
+
let { data: a } = await p({
|
|
59
59
|
client: n,
|
|
60
60
|
headers: t(i),
|
|
61
61
|
body: { file: e },
|
|
@@ -76,28 +76,28 @@ function m() {
|
|
|
76
76
|
return a;
|
|
77
77
|
},
|
|
78
78
|
onSuccess: async () => {
|
|
79
|
-
await
|
|
79
|
+
await m({
|
|
80
80
|
client: n,
|
|
81
81
|
organizationId: i
|
|
82
82
|
});
|
|
83
83
|
}
|
|
84
84
|
});
|
|
85
85
|
}
|
|
86
|
-
function
|
|
86
|
+
function y() {
|
|
87
87
|
let { client: n, organizationId: r } = e();
|
|
88
|
-
return
|
|
88
|
+
return h({
|
|
89
89
|
mutationFn: async ({ path: e, file: i }) => {
|
|
90
|
-
let { data:
|
|
90
|
+
let { data: a } = await o({
|
|
91
91
|
client: n,
|
|
92
92
|
headers: t(r),
|
|
93
93
|
path: e,
|
|
94
94
|
body: { file: i },
|
|
95
95
|
throwOnError: !0
|
|
96
96
|
});
|
|
97
|
-
return
|
|
97
|
+
return a;
|
|
98
98
|
},
|
|
99
99
|
onSuccess: async (e, t) => {
|
|
100
|
-
await
|
|
100
|
+
await m({
|
|
101
101
|
client: n,
|
|
102
102
|
organizationId: r,
|
|
103
103
|
payableId: t.path.payable_id
|
|
@@ -105,9 +105,9 @@ function h() {
|
|
|
105
105
|
}
|
|
106
106
|
});
|
|
107
107
|
}
|
|
108
|
-
function
|
|
108
|
+
function b() {
|
|
109
109
|
let { client: r, organizationId: i } = e();
|
|
110
|
-
return
|
|
110
|
+
return h({
|
|
111
111
|
mutationFn: async ({ path: e }) => {
|
|
112
112
|
await n({
|
|
113
113
|
client: r,
|
|
@@ -117,7 +117,7 @@ function g() {
|
|
|
117
117
|
});
|
|
118
118
|
},
|
|
119
119
|
onSuccess: async (e, t) => {
|
|
120
|
-
await
|
|
120
|
+
await m({
|
|
121
121
|
client: r,
|
|
122
122
|
organizationId: i,
|
|
123
123
|
payableId: t.payableId
|
|
@@ -125,10 +125,10 @@ function g() {
|
|
|
125
125
|
}
|
|
126
126
|
});
|
|
127
127
|
}
|
|
128
|
-
function
|
|
128
|
+
function x() {
|
|
129
129
|
let { client: n, organizationId: r } = e();
|
|
130
|
-
return
|
|
131
|
-
let { data: i } = await
|
|
130
|
+
return h({ mutationFn: async ({ path: e }) => {
|
|
131
|
+
let { data: i } = await f({
|
|
132
132
|
client: n,
|
|
133
133
|
headers: t(r),
|
|
134
134
|
path: e,
|
|
@@ -140,11 +140,11 @@ function _() {
|
|
|
140
140
|
};
|
|
141
141
|
} });
|
|
142
142
|
}
|
|
143
|
-
function
|
|
143
|
+
function S() {
|
|
144
144
|
let { client: n, organizationId: r } = e();
|
|
145
|
-
return
|
|
145
|
+
return h({
|
|
146
146
|
mutationFn: async ({ path: e }) => {
|
|
147
|
-
let { data: i } = await
|
|
147
|
+
let { data: i } = await d({
|
|
148
148
|
client: n,
|
|
149
149
|
headers: t(r),
|
|
150
150
|
path: e,
|
|
@@ -153,7 +153,7 @@ function v() {
|
|
|
153
153
|
return i;
|
|
154
154
|
},
|
|
155
155
|
onSuccess: async (e, t) => {
|
|
156
|
-
await
|
|
156
|
+
await m({
|
|
157
157
|
client: n,
|
|
158
158
|
organizationId: r,
|
|
159
159
|
payableId: t.path.payable_id,
|
|
@@ -162,11 +162,97 @@ function v() {
|
|
|
162
162
|
}
|
|
163
163
|
});
|
|
164
164
|
}
|
|
165
|
-
function
|
|
165
|
+
function C() {
|
|
166
|
+
let { client: n, organizationId: r } = e();
|
|
167
|
+
return h({
|
|
168
|
+
mutationFn: async ({ path: e }) => {
|
|
169
|
+
let { data: i } = await a({
|
|
170
|
+
client: n,
|
|
171
|
+
headers: t(r),
|
|
172
|
+
path: e,
|
|
173
|
+
throwOnError: !0
|
|
174
|
+
});
|
|
175
|
+
return i;
|
|
176
|
+
},
|
|
177
|
+
onSuccess: async (e, t) => {
|
|
178
|
+
await m({
|
|
179
|
+
client: n,
|
|
180
|
+
organizationId: r,
|
|
181
|
+
payableId: t.path.payable_id,
|
|
182
|
+
includeApprovalRequests: !0
|
|
183
|
+
});
|
|
184
|
+
}
|
|
185
|
+
});
|
|
186
|
+
}
|
|
187
|
+
function w() {
|
|
188
|
+
let { client: n, organizationId: r } = e();
|
|
189
|
+
return h({
|
|
190
|
+
mutationFn: async ({ path: e }) => {
|
|
191
|
+
let { data: i } = await l({
|
|
192
|
+
client: n,
|
|
193
|
+
headers: t(r),
|
|
194
|
+
path: e,
|
|
195
|
+
throwOnError: !0
|
|
196
|
+
});
|
|
197
|
+
return i;
|
|
198
|
+
},
|
|
199
|
+
onSuccess: async (e, t) => {
|
|
200
|
+
await m({
|
|
201
|
+
client: n,
|
|
202
|
+
organizationId: r,
|
|
203
|
+
payableId: t.path.payable_id,
|
|
204
|
+
includeApprovalRequests: !0
|
|
205
|
+
});
|
|
206
|
+
}
|
|
207
|
+
});
|
|
208
|
+
}
|
|
209
|
+
function T() {
|
|
210
|
+
let { client: n, organizationId: r } = e();
|
|
211
|
+
return h({
|
|
212
|
+
mutationFn: async ({ path: e }) => {
|
|
213
|
+
let { data: i } = await s({
|
|
214
|
+
client: n,
|
|
215
|
+
headers: t(r),
|
|
216
|
+
path: e,
|
|
217
|
+
throwOnError: !0
|
|
218
|
+
});
|
|
219
|
+
return i;
|
|
220
|
+
},
|
|
221
|
+
onSuccess: async (e, t) => {
|
|
222
|
+
await m({
|
|
223
|
+
client: n,
|
|
224
|
+
organizationId: r,
|
|
225
|
+
payableId: t.path.payable_id
|
|
226
|
+
});
|
|
227
|
+
}
|
|
228
|
+
});
|
|
229
|
+
}
|
|
230
|
+
function E() {
|
|
166
231
|
let { client: n, organizationId: r } = e();
|
|
167
|
-
return
|
|
232
|
+
return h({
|
|
233
|
+
mutationFn: async ({ path: e }) => {
|
|
234
|
+
let { data: i } = await u({
|
|
235
|
+
client: n,
|
|
236
|
+
headers: t(r),
|
|
237
|
+
path: e,
|
|
238
|
+
throwOnError: !0
|
|
239
|
+
});
|
|
240
|
+
return i;
|
|
241
|
+
},
|
|
242
|
+
onSuccess: async (e, t) => {
|
|
243
|
+
await m({
|
|
244
|
+
client: n,
|
|
245
|
+
organizationId: r,
|
|
246
|
+
payableId: t.path.payable_id
|
|
247
|
+
});
|
|
248
|
+
}
|
|
249
|
+
});
|
|
250
|
+
}
|
|
251
|
+
function D() {
|
|
252
|
+
let { client: n, organizationId: r } = e();
|
|
253
|
+
return h({
|
|
168
254
|
mutationFn: async ({ path: e, body: i }) => {
|
|
169
|
-
let { data: a } = await
|
|
255
|
+
let { data: a } = await c({
|
|
170
256
|
client: n,
|
|
171
257
|
headers: t(r),
|
|
172
258
|
path: e,
|
|
@@ -176,7 +262,7 @@ function y() {
|
|
|
176
262
|
return a;
|
|
177
263
|
},
|
|
178
264
|
onSuccess: async (e, t) => {
|
|
179
|
-
await
|
|
265
|
+
await m({
|
|
180
266
|
client: n,
|
|
181
267
|
organizationId: r,
|
|
182
268
|
payableId: t.path.payable_id
|
|
@@ -185,4 +271,4 @@ function y() {
|
|
|
185
271
|
});
|
|
186
272
|
}
|
|
187
273
|
//#endregion
|
|
188
|
-
export {
|
|
274
|
+
export { y as useAttachPayableFileMutation, T as useCancelPayableMutation, g as useCreatePayableMutation, b as useDeletePayableFileMutation, C as useForceApprovePayableMutation, w as useForceRejectPayableMutation, D as useMarkPayableAsPaidMutation, E as useReopenPayableMutation, S as useSubmitPayableForApprovalMutation, _ as useUpdatePayableMutation, v as useUploadPayableFromFileMutation, x as useValidatePayableMutation };
|
package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index4.js
CHANGED
|
@@ -1,39 +1,68 @@
|
|
|
1
1
|
import { invalidateAllClients as e } from "../../../shared/data-access/dist/lib/clientRegistry.js";
|
|
2
|
+
import { organizationHeaders as t } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
3
|
+
import { getPaymentRecords as n } from "../../../shared/data-access/dist/lib/rest/sdk.gen.js";
|
|
2
4
|
import "../../../shared/data-access/dist/index.js";
|
|
3
|
-
import { approvalRequestsInvalidationKey as
|
|
5
|
+
import { approvalRequestsInvalidationKey as r, payableHistoryInvalidationKey as i, payableInvalidationKey as a, payableLineItemsInvalidationKey as o, payablePaymentRecordsInvalidationKey as s, payablesAnalyticsInvalidationKey as c, payablesInvalidationKey as l } from "./index3.js";
|
|
4
6
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index4.js
|
|
5
|
-
async function
|
|
7
|
+
async function u({ client: t, organizationId: n, payableId: u, includeLineItems: d, includeApprovalRequests: f }) {
|
|
6
8
|
let p = {
|
|
7
|
-
client:
|
|
8
|
-
organizationId:
|
|
9
|
+
client: t,
|
|
10
|
+
organizationId: n
|
|
9
11
|
}, m = u ? {
|
|
10
12
|
...p,
|
|
11
13
|
payableId: u
|
|
12
14
|
} : void 0, h = [
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
...f ? [
|
|
15
|
+
l(p),
|
|
16
|
+
c(p),
|
|
17
|
+
...f ? [r(p)] : [],
|
|
16
18
|
...m ? [
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
19
|
+
a(m),
|
|
20
|
+
i(m),
|
|
21
|
+
s(m)
|
|
20
22
|
] : [],
|
|
21
|
-
...m && d ? [
|
|
23
|
+
...m && d ? [o(m)] : []
|
|
22
24
|
];
|
|
23
25
|
await Promise.all(h.map((t) => e(t)));
|
|
24
26
|
}
|
|
25
|
-
var
|
|
26
|
-
async function
|
|
27
|
-
await e(
|
|
28
|
-
client:
|
|
29
|
-
organizationId:
|
|
27
|
+
var d = 500;
|
|
28
|
+
async function f({ client: t, organizationId: n, payableId: i }) {
|
|
29
|
+
await e(r({
|
|
30
|
+
client: t,
|
|
31
|
+
organizationId: n
|
|
30
32
|
})), await new Promise((e) => {
|
|
31
|
-
setTimeout(e,
|
|
32
|
-
}), await
|
|
33
|
-
client:
|
|
34
|
-
organizationId:
|
|
33
|
+
setTimeout(e, d);
|
|
34
|
+
}), await u({
|
|
35
|
+
client: t,
|
|
36
|
+
organizationId: n,
|
|
35
37
|
payableId: i
|
|
36
38
|
});
|
|
37
39
|
}
|
|
40
|
+
var p = 2e4, m = 1e3, h = /* @__PURE__ */ new Set(["created", "processing"]);
|
|
41
|
+
async function g({ client: e, organizationId: r, payableId: i }) {
|
|
42
|
+
let a = Date.now() + p, o = !1;
|
|
43
|
+
for (; !o && Date.now() < a;) {
|
|
44
|
+
await new Promise((e) => {
|
|
45
|
+
setTimeout(e, m);
|
|
46
|
+
});
|
|
47
|
+
try {
|
|
48
|
+
let { data: a } = await n({
|
|
49
|
+
client: e,
|
|
50
|
+
headers: t(r),
|
|
51
|
+
query: {
|
|
52
|
+
limit: 100,
|
|
53
|
+
object_id__in: [i],
|
|
54
|
+
order: "desc",
|
|
55
|
+
sort: "paid_at"
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
o = (a?.data ?? []).some((e) => !!e.status && h.has(e.status));
|
|
59
|
+
} catch {}
|
|
60
|
+
}
|
|
61
|
+
return await u({
|
|
62
|
+
client: e,
|
|
63
|
+
organizationId: r,
|
|
64
|
+
payableId: i
|
|
65
|
+
}), o;
|
|
66
|
+
}
|
|
38
67
|
//#endregion
|
|
39
|
-
export {
|
|
68
|
+
export { f as invalidateApprovalDecisionQueries, u as invalidatePayableQueries, g as reconcileScheduledPaymentQueries };
|
package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index5.js
CHANGED
|
@@ -4,32 +4,32 @@
|
|
|
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 { getApprovalRequestsOptions as
|
|
9
|
-
import { withAuthEpoch as
|
|
7
|
+
import { postApprovalRequestsIdApprove as n, postApprovalRequestsIdReject as r } from "../../../shared/data-access/dist/lib/rest/sdk.gen.js";
|
|
8
|
+
import { getApprovalRequestsOptions as i } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
9
|
+
import { withAuthEpoch as a } from "../../../shared/data-access/dist/lib/withAuthEpoch.js";
|
|
10
10
|
import "../../../shared/data-access/dist/index.js";
|
|
11
|
-
import { invalidateApprovalDecisionQueries as
|
|
12
|
-
import { useMutation as
|
|
11
|
+
import { invalidateApprovalDecisionQueries as o } from "./index4.js";
|
|
12
|
+
import { useMutation as s, useQuery as c } from "@tanstack/react-query";
|
|
13
13
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index5.js
|
|
14
|
-
var
|
|
15
|
-
function
|
|
16
|
-
let { client: o, organizationId:
|
|
14
|
+
var l = "payable", u = "desc";
|
|
15
|
+
function d(n, { enabled: r } = {}) {
|
|
16
|
+
let { client: o, organizationId: s, widgetToken: d, authEpoch: f } = e(), p = !!(s && d && n) && r !== !1, m = i({
|
|
17
17
|
client: o,
|
|
18
|
-
headers: t(
|
|
18
|
+
headers: t(s),
|
|
19
19
|
query: {
|
|
20
20
|
object_id: n ?? "",
|
|
21
|
-
object_type:
|
|
22
|
-
order:
|
|
21
|
+
object_type: l,
|
|
22
|
+
order: u
|
|
23
23
|
}
|
|
24
24
|
});
|
|
25
|
-
return
|
|
26
|
-
...
|
|
25
|
+
return c({
|
|
26
|
+
...a(m, f),
|
|
27
27
|
enabled: p
|
|
28
28
|
});
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function f() {
|
|
31
31
|
let { client: r, organizationId: i } = e();
|
|
32
|
-
return
|
|
32
|
+
return s({
|
|
33
33
|
mutationFn: async ({ path: e }) => {
|
|
34
34
|
let { data: a } = await n({
|
|
35
35
|
client: r,
|
|
@@ -40,7 +40,7 @@ function d() {
|
|
|
40
40
|
return a;
|
|
41
41
|
},
|
|
42
42
|
onSuccess: async (e) => {
|
|
43
|
-
await
|
|
43
|
+
await o({
|
|
44
44
|
client: r,
|
|
45
45
|
organizationId: i,
|
|
46
46
|
payableId: e?.object_id
|
|
@@ -48,5 +48,27 @@ function d() {
|
|
|
48
48
|
}
|
|
49
49
|
});
|
|
50
50
|
}
|
|
51
|
+
function p() {
|
|
52
|
+
let { client: n, organizationId: i } = e();
|
|
53
|
+
return s({
|
|
54
|
+
mutationFn: async ({ path: e, body: a }) => {
|
|
55
|
+
let { data: o } = await r({
|
|
56
|
+
client: n,
|
|
57
|
+
headers: t(i),
|
|
58
|
+
path: e,
|
|
59
|
+
body: a?.reject_reason ? a : void 0,
|
|
60
|
+
throwOnError: !0
|
|
61
|
+
});
|
|
62
|
+
return o;
|
|
63
|
+
},
|
|
64
|
+
onSuccess: async (e) => {
|
|
65
|
+
await o({
|
|
66
|
+
client: n,
|
|
67
|
+
organizationId: i,
|
|
68
|
+
payableId: e?.object_id
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
}
|
|
51
73
|
//#endregion
|
|
52
|
-
export {
|
|
74
|
+
export { f as useApprovePayableApprovalRequestMutation, d as usePayableApprovalRequestsQuery, p as useRejectPayableApprovalRequestMutation };
|