@zeniai/web-components 4.1.41-betaAK1 → 4.1.41-betaAS01
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/{SessionTimeoutPopup-DYgosay6.js → SessionTimeoutPopup-APLlf35P.js} +58467 -60528
- package/dist/{SessionTimeoutPopup-D6HvNkd5.cjs → SessionTimeoutPopup-ObCiYIrx.cjs} +13402 -14177
- package/dist/appLocale.d.ts +0 -150
- package/dist/cockpit.cjs.js +2 -2
- package/dist/cockpit.esm.js +251 -255
- package/dist/components/aiCfo/components/AiCfoArtifact.d.ts +26 -14
- package/dist/components/common/StyledCapsule.d.ts +1 -1
- package/dist/components/common/skeletons/StatementListSkeleton.d.ts +5 -0
- package/dist/components/spendManagement/autoTransferRules/AutoTransferRulePage.d.ts +1 -7
- package/dist/components/spendManagement/treasury/TreasuryNavBarPieces.d.ts +1 -2
- package/dist/components/spendManagement/treasury/TreasuryOverviewPage.d.ts +0 -8
- package/dist/components/spendManagement/zeniAccounts/ZeniAccountHelper.d.ts +1 -10
- package/dist/components/spendManagement/zeniAccounts/ZeniAccountListViewPage.d.ts +1 -9
- package/dist/components/spendManagement/zeniAccounts/ZeniAccountNavBarPieces.d.ts +1 -2
- package/dist/context/featureProvider/FeatureGateNameConstants.d.ts +0 -2
- package/dist/index.cjs.js +1 -1
- package/dist/index.d.ts +0 -10
- package/dist/index.esm.js +279 -283
- package/dist/strings/strings.d.ts +0 -150
- package/package.json +2 -2
- package/dist/components/spendManagement/cashManagement/AutoSweepFlow.d.ts +0 -50
- package/dist/components/spendManagement/cashManagement/AutoSweepReviewPage.d.ts +0 -43
- package/dist/components/spendManagement/cashManagement/AutoSweepSetupPage.d.ts +0 -117
- package/dist/components/spendManagement/cashManagement/CashManagementBanner.d.ts +0 -20
- package/dist/components/spendManagement/cashManagement/CashManagementNavCTA.d.ts +0 -14
- package/dist/components/spendManagement/cashManagement/CashOverview.d.ts +0 -53
- package/dist/components/spendManagement/cashManagement/OutflowSection.d.ts +0 -8
- package/dist/components/spendManagement/cashManagement/SweepAmountCard.d.ts +0 -11
- package/dist/components/spendManagement/cashManagement/SweepFlowRow.d.ts +0 -29
|
@@ -7202,156 +7202,6 @@ export declare const zeniStrings: {
|
|
|
7202
7202
|
termsLink: string;
|
|
7203
7203
|
};
|
|
7204
7204
|
};
|
|
7205
|
-
cashManagement: {
|
|
7206
|
-
navCTA: {
|
|
7207
|
-
label: string;
|
|
7208
|
-
ariaLabel: string;
|
|
7209
|
-
};
|
|
7210
|
-
banner: {
|
|
7211
|
-
notSetUp: {
|
|
7212
|
-
moveToTreasuryPrefix: string;
|
|
7213
|
-
moveToTreasurySuffix: string;
|
|
7214
|
-
toEarnPrefix: string;
|
|
7215
|
-
toEarnSuffix: string;
|
|
7216
|
-
approxPrefix: string;
|
|
7217
|
-
recommended: string;
|
|
7218
|
-
setUpAutoSweep: string;
|
|
7219
|
-
bufferIntroPrefix: string;
|
|
7220
|
-
bufferIntroAboveBuffer: string;
|
|
7221
|
-
bufferIntroSuffix: string;
|
|
7222
|
-
payrollProjectionPrefix: string;
|
|
7223
|
-
payrollProjectionAmountOpen: string;
|
|
7224
|
-
payrollProjectionAmountClose: string;
|
|
7225
|
-
payrollProjectionSuffix: string;
|
|
7226
|
-
ourAgentWill: string;
|
|
7227
|
-
features: {
|
|
7228
|
-
minimum: string;
|
|
7229
|
-
detect: string;
|
|
7230
|
-
consolidate: string;
|
|
7231
|
-
sweep: string;
|
|
7232
|
-
};
|
|
7233
|
-
};
|
|
7234
|
-
inProgress: {
|
|
7235
|
-
titlePrefix: string;
|
|
7236
|
-
titleSuffix: string;
|
|
7237
|
-
initiatedPrefix: string;
|
|
7238
|
-
pendingBadge: string;
|
|
7239
|
-
};
|
|
7240
|
-
complete: {
|
|
7241
|
-
titlePrefix: string;
|
|
7242
|
-
titleSuffix: string;
|
|
7243
|
-
completeBadge: string;
|
|
7244
|
-
nextAutoSweepPrefix: string;
|
|
7245
|
-
};
|
|
7246
|
-
footer: {
|
|
7247
|
-
frequencyPrefix: string;
|
|
7248
|
-
defaultFrequencyLabel: string;
|
|
7249
|
-
defaultEstimatedDaysLabel: string;
|
|
7250
|
-
dotSeparator: string;
|
|
7251
|
-
};
|
|
7252
|
-
};
|
|
7253
|
-
sweepAmountCard: {
|
|
7254
|
-
title: string;
|
|
7255
|
-
coversLabel: string;
|
|
7256
|
-
sweepFrequencyLabel: string;
|
|
7257
|
-
daysSuffix: string;
|
|
7258
|
-
payrollAndBillsPrefix: string;
|
|
7259
|
-
payrollAndBillsSuffix: string;
|
|
7260
|
-
};
|
|
7261
|
-
sweepFlowRow: {
|
|
7262
|
-
moveFundsFrom: string;
|
|
7263
|
-
to: string;
|
|
7264
|
-
treasury: string;
|
|
7265
|
-
bubbleMorePrefix: string;
|
|
7266
|
-
};
|
|
7267
|
-
setupPage: {
|
|
7268
|
-
title: string;
|
|
7269
|
-
askAiCfo: string;
|
|
7270
|
-
sourceAccountsHeader: string;
|
|
7271
|
-
sweepAmountHeader: string;
|
|
7272
|
-
primaryAccount: string;
|
|
7273
|
-
descriptionPrefix: string;
|
|
7274
|
-
descriptionSuffix: string;
|
|
7275
|
-
riskLabel: string;
|
|
7276
|
-
riskAdditional: string;
|
|
7277
|
-
memoLabel: string;
|
|
7278
|
-
memoPlaceholder: string;
|
|
7279
|
-
frequencyLabel: string;
|
|
7280
|
-
frequencyAdditionalPrefix: string;
|
|
7281
|
-
bufferAmountSuffix: string;
|
|
7282
|
-
cancel: string;
|
|
7283
|
-
reviewSweep: string;
|
|
7284
|
-
viewMore: string;
|
|
7285
|
-
viewLess: string;
|
|
7286
|
-
riskOptions: {
|
|
7287
|
-
low: string;
|
|
7288
|
-
moderate: string;
|
|
7289
|
-
high: string;
|
|
7290
|
-
};
|
|
7291
|
-
frequencyOptions: {
|
|
7292
|
-
daily: string;
|
|
7293
|
-
weekly: string;
|
|
7294
|
-
biweekly: string;
|
|
7295
|
-
monthly: string;
|
|
7296
|
-
};
|
|
7297
|
-
};
|
|
7298
|
-
reviewPage: {
|
|
7299
|
-
title: string;
|
|
7300
|
-
askAiCfo: string;
|
|
7301
|
-
descriptionPrefix: string;
|
|
7302
|
-
descriptionMiddle: string;
|
|
7303
|
-
descriptionSuffix: string;
|
|
7304
|
-
defaultEstimatedDaysLabel: string;
|
|
7305
|
-
safetyCheck: string;
|
|
7306
|
-
risk: string;
|
|
7307
|
-
bufferCushion: string;
|
|
7308
|
-
bufferCushionPrefix: string;
|
|
7309
|
-
bufferCushionSuffix: string;
|
|
7310
|
-
operatingBalance: string;
|
|
7311
|
-
minimumRequired: string;
|
|
7312
|
-
edit: string;
|
|
7313
|
-
confirmSweep: string;
|
|
7314
|
-
disclaimer: string;
|
|
7315
|
-
bufferAmountWrapPrefix: string;
|
|
7316
|
-
bufferAmountWrapSuffix: string;
|
|
7317
|
-
riskLabels: {
|
|
7318
|
-
low: string;
|
|
7319
|
-
moderate: string;
|
|
7320
|
-
high: string;
|
|
7321
|
-
};
|
|
7322
|
-
};
|
|
7323
|
-
overview: {
|
|
7324
|
-
title: string;
|
|
7325
|
-
tabs: {
|
|
7326
|
-
overview: string;
|
|
7327
|
-
autoTransferRules: string;
|
|
7328
|
-
};
|
|
7329
|
-
emptyAutoTransferRules: string;
|
|
7330
|
-
totalCash: string;
|
|
7331
|
-
cashBalance: string;
|
|
7332
|
-
treasury: string;
|
|
7333
|
-
cashFlow: string;
|
|
7334
|
-
outflows: string;
|
|
7335
|
-
inflows: string;
|
|
7336
|
-
cashBalanceProjection: string;
|
|
7337
|
-
legend: {
|
|
7338
|
-
expectedInflow: string;
|
|
7339
|
-
expectedOutflow: string;
|
|
7340
|
-
safetyBuffer: string;
|
|
7341
|
-
};
|
|
7342
|
-
bufferLabelPrefix: string;
|
|
7343
|
-
granularity: {
|
|
7344
|
-
daily: string;
|
|
7345
|
-
weekly: string;
|
|
7346
|
-
monthly: string;
|
|
7347
|
-
};
|
|
7348
|
-
outflowSection: {
|
|
7349
|
-
outflow: string;
|
|
7350
|
-
paymentDate: string;
|
|
7351
|
-
amount: string;
|
|
7352
|
-
};
|
|
7353
|
-
};
|
|
7354
|
-
};
|
|
7355
7205
|
};
|
|
7356
7206
|
taskManagement: {
|
|
7357
7207
|
common: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeniai/web-components",
|
|
3
|
-
"version": "4.1.41-
|
|
3
|
+
"version": "4.1.41-betaAS01",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": [
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"@stripe/react-stripe-js": "^2.7.3",
|
|
51
51
|
"@stripe/stripe-js": "^4.4.0",
|
|
52
52
|
"@zeniai/client-analytics": "2.0.19",
|
|
53
|
-
"@zeniai/client-epic-state": "5.0.77
|
|
53
|
+
"@zeniai/client-epic-state": "5.0.77",
|
|
54
54
|
"autosuggest-highlight": "^3.2.1",
|
|
55
55
|
"browser-image-compression": "^2.0.2",
|
|
56
56
|
"countries-list": "^2.6.1",
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { Amount, FundingAccount, ID } from '@zeniai/client-epic-state';
|
|
3
|
-
import { RiskLevel, SweepFrequency } from './AutoSweepSetupPage';
|
|
4
|
-
interface TreasurySummaryWithBalance {
|
|
5
|
-
availableBalance: Amount;
|
|
6
|
-
fundAllocations: {
|
|
7
|
-
amount: Amount;
|
|
8
|
-
fundCode: string;
|
|
9
|
-
}[];
|
|
10
|
-
insuredFunds: Amount;
|
|
11
|
-
processingBalance: Amount;
|
|
12
|
-
totalBalance: Amount;
|
|
13
|
-
totalYield: Amount;
|
|
14
|
-
}
|
|
15
|
-
export interface AutoSweepFlowProps {
|
|
16
|
-
averageDailySpend: number;
|
|
17
|
-
coverageDays: number;
|
|
18
|
-
primaryAccount: FundingAccount;
|
|
19
|
-
sourceAccounts: FundingAccount[];
|
|
20
|
-
sweepAmount: number;
|
|
21
|
-
initialFrequency?: SweepFrequency;
|
|
22
|
-
initialMemo?: string;
|
|
23
|
-
/** Initial state for the form. */
|
|
24
|
-
initialRisk?: RiskLevel;
|
|
25
|
-
sweepAmounts?: Record<ID, number>;
|
|
26
|
-
treasurySummary?: TreasurySummaryWithBalance;
|
|
27
|
-
/** Fired when the user clicks "Confirm Sweep" on the review screen. */
|
|
28
|
-
onConfirm?: (params: {
|
|
29
|
-
frequency: SweepFrequency;
|
|
30
|
-
memo: string;
|
|
31
|
-
risk: RiskLevel;
|
|
32
|
-
selectedSourceAccountIds: ID[];
|
|
33
|
-
}) => void;
|
|
34
|
-
/** Fired when the user clicks the back arrow on the setup screen. */
|
|
35
|
-
onExit?: () => void;
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Step state machine that pairs `AutoSweepSetupPage` and `AutoSweepReviewPage`.
|
|
39
|
-
*
|
|
40
|
-
* - Setup → Review: triggered by `onReviewClick` (Review Sweep button).
|
|
41
|
-
* - Review → Setup: triggered by `onEditClick` (Edit button).
|
|
42
|
-
* - Review → Confirm: triggered by `onConfirmClick`; bubbles up via `onConfirm`.
|
|
43
|
-
*
|
|
44
|
-
* Use this component in stories or screens that need the full
|
|
45
|
-
* "configure → review → confirm" flow without their own routing layer.
|
|
46
|
-
* In production a router-driven container can render the two pages on
|
|
47
|
-
* separate routes instead of using this wrapper.
|
|
48
|
-
*/
|
|
49
|
-
declare const AutoSweepFlow: React.FC<AutoSweepFlowProps>;
|
|
50
|
-
export default AutoSweepFlow;
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { Amount, FundingAccount, ID } from '@zeniai/client-epic-state';
|
|
3
|
-
import { RiskLevel } from './AutoSweepSetupPage';
|
|
4
|
-
interface TreasurySummaryWithBalance {
|
|
5
|
-
availableBalance: Amount;
|
|
6
|
-
fundAllocations: {
|
|
7
|
-
amount: Amount;
|
|
8
|
-
fundCode: string;
|
|
9
|
-
}[];
|
|
10
|
-
insuredFunds: Amount;
|
|
11
|
-
processingBalance: Amount;
|
|
12
|
-
totalBalance: Amount;
|
|
13
|
-
totalYield: Amount;
|
|
14
|
-
}
|
|
15
|
-
export interface AutoSweepReviewPageProps {
|
|
16
|
-
averageDailySpend: number;
|
|
17
|
-
bufferAmount: number;
|
|
18
|
-
bufferCushionAmount: number;
|
|
19
|
-
coverageDays: number;
|
|
20
|
-
operatingBalance: number;
|
|
21
|
-
primaryAccount: FundingAccount;
|
|
22
|
-
risk: RiskLevel;
|
|
23
|
-
/**
|
|
24
|
-
* Subset of `sourceAccounts` ids the user picked on the setup page.
|
|
25
|
-
* Drives the source-icon cluster + count badge in the FlowRow so it
|
|
26
|
-
* matches what was shown on the setup screen.
|
|
27
|
-
*/
|
|
28
|
-
selectedSourceAccountIds: ID[];
|
|
29
|
-
sourceAccounts: FundingAccount[];
|
|
30
|
-
sweepAmount: number;
|
|
31
|
-
estimatedDaysLabel?: string;
|
|
32
|
-
/**
|
|
33
|
-
* Treasury account summary used to render the destination ("Treasury")
|
|
34
|
-
* label and its current available balance. Source:
|
|
35
|
-
* `getTreasuryDetail(state).accountSummary`.
|
|
36
|
-
*/
|
|
37
|
-
treasurySummary?: TreasurySummaryWithBalance;
|
|
38
|
-
onBackClick?: () => void;
|
|
39
|
-
onConfirmClick?: () => void;
|
|
40
|
-
onEditClick?: () => void;
|
|
41
|
-
}
|
|
42
|
-
declare const AutoSweepReviewPage: React.FC<AutoSweepReviewPageProps>;
|
|
43
|
-
export default AutoSweepReviewPage;
|
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { Amount, FundingAccount, ID } from '@zeniai/client-epic-state';
|
|
3
|
-
interface TreasurySummaryWithBalance {
|
|
4
|
-
availableBalance: Amount;
|
|
5
|
-
fundAllocations: {
|
|
6
|
-
amount: Amount;
|
|
7
|
-
fundCode: string;
|
|
8
|
-
}[];
|
|
9
|
-
insuredFunds: Amount;
|
|
10
|
-
processingBalance: Amount;
|
|
11
|
-
totalBalance: Amount;
|
|
12
|
-
totalYield: Amount;
|
|
13
|
-
}
|
|
14
|
-
export type RiskLevel = "low" | "moderate" | "high";
|
|
15
|
-
export type SweepFrequency = "daily" | "weekly" | "biweekly" | "monthly";
|
|
16
|
-
/**
|
|
17
|
-
* Wiring (web-app-ui container):
|
|
18
|
-
*
|
|
19
|
-
* ```ts
|
|
20
|
-
* import {
|
|
21
|
-
* getCommonSetupViewDetails,
|
|
22
|
-
* SetupView,
|
|
23
|
-
* } from "@zeniai/client-epic-state";
|
|
24
|
-
*
|
|
25
|
-
* const setupView: SetupView = useSelector((state: RootState) =>
|
|
26
|
-
* getCommonSetupViewDetails(state, companyId, "zeni_treasury", "zeniAccounts")
|
|
27
|
-
* );
|
|
28
|
-
*
|
|
29
|
-
* // primaryFundingAccount is resolved via companyTreasuryInfo.primaryFundingAccount
|
|
30
|
-
* // → mapped to FundingAccount through mapDepositAccToFundingAccount /
|
|
31
|
-
* // mapPaymentAccToFundingAccount inside the selector.
|
|
32
|
-
* if (setupView.primaryFundingAccount == null) {
|
|
33
|
-
* return <TreasurySetupPromo />; // no primary set yet — guard upstream
|
|
34
|
-
* }
|
|
35
|
-
*
|
|
36
|
-
* return (
|
|
37
|
-
* <AutoSweepSetupPage
|
|
38
|
-
* primaryAccount={setupView.primaryFundingAccount}
|
|
39
|
-
* sourceAccounts={setupView.allFundingAccounts}
|
|
40
|
-
* sweepAmounts={...} // TODO(CES): see notes below
|
|
41
|
-
* sweepAmount={...} // TODO(CES): see notes below
|
|
42
|
-
* coverageDays={...} // TODO(CES): see notes below
|
|
43
|
-
* averageDailySpend={...} // TODO(CES): see notes below
|
|
44
|
-
* treasurySummary={treasuryDetail.accountSummary}
|
|
45
|
-
* onReviewClick={(params) => {
|
|
46
|
-
* // TODO(web-app-ui): persist params into local form state and
|
|
47
|
-
* // navigate to AutoSweepReviewPage route.
|
|
48
|
-
* }}
|
|
49
|
-
* />
|
|
50
|
-
* );
|
|
51
|
-
* ```
|
|
52
|
-
*
|
|
53
|
-
* TODO(CES) — additional state/selectors/actions still needed to fully wire
|
|
54
|
-
* this up against backend data; the existing `getCommonSetupViewDetails`
|
|
55
|
-
* only covers `primaryFundingAccount` + `allFundingAccounts`:
|
|
56
|
-
* 1. Auto-sweep recommendation selector — returns
|
|
57
|
-
* `{sweepAmount, coverageDays, averageDailySpend, perAccountSweepAmount}`
|
|
58
|
-
* computed from balances, payroll schedule, and the chosen risk buffer.
|
|
59
|
-
* 2. Auto-sweep config state slice — persists user selections
|
|
60
|
-
* `{risk, memo, frequency, selectedSourceAccountIds}`, plus a
|
|
61
|
-
* `FetchStateAndError` for save/submit.
|
|
62
|
-
* 3. Action + epic to submit the auto-sweep config (create / update).
|
|
63
|
-
* 4. Action + epic to initiate a one-off sweep transfer (used by
|
|
64
|
-
* AutoSweepReviewPage's `Confirm Sweep`).
|
|
65
|
-
* 5. Selector to derive the in-progress / completed sweep status that
|
|
66
|
-
* drives `CashManagementBanner` (`status: "in_progress" | "complete"`).
|
|
67
|
-
*
|
|
68
|
-
* TODO(web-app-ui) — container/screen still needed:
|
|
69
|
-
* 1. New route + screen `AutoSweepSetupScreen` under
|
|
70
|
-
* `screens/cashManagement/` that calls `getCommonSetupViewDetails(
|
|
71
|
-
* state, companyId, "zeni_treasury", "zeniAccounts")` and the
|
|
72
|
-
* recommendation selector above, then renders this component.
|
|
73
|
-
* 2. `onReviewClick` handler — store form params (e.g. via location
|
|
74
|
-
* state or a route-scoped reducer) and `navigate` to
|
|
75
|
-
* `AutoSweepReviewScreen`.
|
|
76
|
-
* 3. `AutoSweepReviewScreen` — reads the same form params, renders
|
|
77
|
-
* `AutoSweepReviewPage`, and on `onConfirmClick` dispatches the
|
|
78
|
-
* submit-config + initiate-sweep actions, then navigates to the
|
|
79
|
-
* cash overview with the in-progress banner showing.
|
|
80
|
-
*/
|
|
81
|
-
export interface AutoSweepSetupPageProps {
|
|
82
|
-
averageDailySpend: number;
|
|
83
|
-
coverageDays: number;
|
|
84
|
-
/**
|
|
85
|
-
* Primary funding account that performs the actual transfer to Treasury.
|
|
86
|
-
* Source: `getCommonSetupViewDetails(...).primaryFundingAccount` with
|
|
87
|
-
* `setupViewType: "zeni_treasury"`.
|
|
88
|
-
*/
|
|
89
|
-
primaryAccount: FundingAccount;
|
|
90
|
-
/**
|
|
91
|
-
* All connected source accounts that can top up the primary.
|
|
92
|
-
* Source: `getCommonSetupViewDetails(...).allFundingAccounts`.
|
|
93
|
-
*/
|
|
94
|
-
sourceAccounts: FundingAccount[];
|
|
95
|
-
sweepAmount: number;
|
|
96
|
-
frequency?: SweepFrequency;
|
|
97
|
-
memo?: string;
|
|
98
|
-
risk?: RiskLevel;
|
|
99
|
-
/** Per-account sweep amount keyed by FundingAccount id. */
|
|
100
|
-
sweepAmounts?: Record<ID, number>;
|
|
101
|
-
/**
|
|
102
|
-
* Treasury account summary used to render the destination ("Treasury")
|
|
103
|
-
* label and its current available balance. Source:
|
|
104
|
-
* `getTreasuryDetail(state).accountSummary`.
|
|
105
|
-
*/
|
|
106
|
-
treasurySummary?: TreasurySummaryWithBalance;
|
|
107
|
-
onBackClick?: () => void;
|
|
108
|
-
onCancelClick?: () => void;
|
|
109
|
-
onReviewClick?: (params: {
|
|
110
|
-
frequency: SweepFrequency;
|
|
111
|
-
memo: string;
|
|
112
|
-
risk: RiskLevel;
|
|
113
|
-
selectedSourceAccountIds: ID[];
|
|
114
|
-
}) => void;
|
|
115
|
-
}
|
|
116
|
-
declare const AutoSweepSetupPage: React.FC<AutoSweepSetupPageProps>;
|
|
117
|
-
export default AutoSweepSetupPage;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
export type CashManagementBannerStatus = "not_set_up" | "in_progress" | "complete";
|
|
3
|
-
export interface CashManagementBannerProps {
|
|
4
|
-
amount: number;
|
|
5
|
-
status: CashManagementBannerStatus;
|
|
6
|
-
bufferAmount?: number;
|
|
7
|
-
completedAtLabel?: string;
|
|
8
|
-
estimatedAnnualYield?: number;
|
|
9
|
-
estimatedDaysLabel?: string;
|
|
10
|
-
frequencyLabel?: string;
|
|
11
|
-
initiatedAtLabel?: string;
|
|
12
|
-
nextSweepDateLabel?: string;
|
|
13
|
-
payrollAmount?: number;
|
|
14
|
-
payrollDateLabel?: string;
|
|
15
|
-
style?: React.CSSProperties;
|
|
16
|
-
onSetUpAutoSweepClick?: () => void;
|
|
17
|
-
onViewDetailsClick?: () => void;
|
|
18
|
-
}
|
|
19
|
-
declare const CashManagementBanner: React.FC<CashManagementBannerProps>;
|
|
20
|
-
export default CashManagementBanner;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
export interface CashManagementNavCTAProps {
|
|
3
|
-
/** Override the gate check (e.g. for storybook). When omitted, reads `is_cash_management_feature_enabled`. */
|
|
4
|
-
isFeatureEnabled?: boolean;
|
|
5
|
-
onClick: () => void;
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* Right-side navbar CTA that links to the Cash Management page.
|
|
9
|
-
*
|
|
10
|
-
* Gated behind `is_cash_management_feature_enabled`. Renders nothing when
|
|
11
|
-
* the gate is off so it can be safely dropped into existing navbars.
|
|
12
|
-
*/
|
|
13
|
-
declare const CashManagementNavCTA: React.FC<CashManagementNavCTAProps>;
|
|
14
|
-
export default CashManagementNavCTA;
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { UpcomingPaymentEvent } from '@zeniai/client-epic-state';
|
|
3
|
-
import { AutoTransferRulePageProps } from '../autoTransferRules/AutoTransferRulePage';
|
|
4
|
-
import { CashManagementBannerProps } from './CashManagementBanner';
|
|
5
|
-
export type ProjectionGranularity = "daily" | "weekly" | "monthly";
|
|
6
|
-
export interface ProjectionDataPoint {
|
|
7
|
-
balance: number;
|
|
8
|
-
date: string;
|
|
9
|
-
isInflow?: boolean;
|
|
10
|
-
isOutflow?: boolean;
|
|
11
|
-
}
|
|
12
|
-
export type CashManagementTabId = "overview" | "autoTransferRules";
|
|
13
|
-
export interface CashOverviewProps {
|
|
14
|
-
bufferAmount: number;
|
|
15
|
-
cashBalance: number;
|
|
16
|
-
cashFlowTotal: number;
|
|
17
|
-
inflows: number;
|
|
18
|
-
outflowItems: UpcomingPaymentEvent[];
|
|
19
|
-
outflows: number;
|
|
20
|
-
projectionData: ProjectionDataPoint[];
|
|
21
|
-
totalCash: number;
|
|
22
|
-
treasuryBalance: number;
|
|
23
|
-
/**
|
|
24
|
-
* Props passed through to `<AutoTransferRulePage />` rendered under the
|
|
25
|
-
* "Auto Transfer Rules" tab. When omitted and `isAutoTransferRulesLoading`
|
|
26
|
-
* is false, that tab renders an empty state.
|
|
27
|
-
*/
|
|
28
|
-
autoTransferRulePageProps?: AutoTransferRulePageProps;
|
|
29
|
-
/**
|
|
30
|
-
* When provided, renders `<CashManagementBanner>` just below the NavBar.
|
|
31
|
-
* The consumer is responsible for picking the right `status` and
|
|
32
|
-
* gating on the cash-management feature flag.
|
|
33
|
-
*/
|
|
34
|
-
cashManagementBannerProps?: CashManagementBannerProps;
|
|
35
|
-
granularity?: ProjectionGranularity;
|
|
36
|
-
/** Initial active tab; defaults to `"overview"`. */
|
|
37
|
-
initialTab?: CashManagementTabId;
|
|
38
|
-
/**
|
|
39
|
-
* When `true`, the auto transfer rules tab renders a skeleton placeholder
|
|
40
|
-
* instead of the empty state. Use while the rules selector is fetching.
|
|
41
|
-
*/
|
|
42
|
-
isAutoTransferRulesLoading?: boolean;
|
|
43
|
-
/**
|
|
44
|
-
* When `true`, the upcoming outflows table renders a skeleton placeholder
|
|
45
|
-
* in place of its rows. Use while the upcoming-payment-events selector is
|
|
46
|
-
* fetching.
|
|
47
|
-
*/
|
|
48
|
-
isOutflowsLoading?: boolean;
|
|
49
|
-
onBackClick?: () => void;
|
|
50
|
-
onGranularityChange?: (granularity: ProjectionGranularity) => void;
|
|
51
|
-
}
|
|
52
|
-
declare const CashOverview: React.FC<CashOverviewProps>;
|
|
53
|
-
export default CashOverview;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { UpcomingPaymentEvent } from '@zeniai/client-epic-state';
|
|
3
|
-
export interface OutflowSectionProps {
|
|
4
|
-
items: UpcomingPaymentEvent[];
|
|
5
|
-
}
|
|
6
|
-
export declare const OUTFLOW_COL_PCTS: readonly [45, 30, 25];
|
|
7
|
-
declare const OutflowSection: React.FC<OutflowSectionProps>;
|
|
8
|
-
export default OutflowSection;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
export interface SweepAmountCardProps {
|
|
3
|
-
averageDailySpend: number;
|
|
4
|
-
coverageDays: number;
|
|
5
|
-
sweepAmount: number;
|
|
6
|
-
/** Word(s) preceding the days count. Defaults to "Covers". */
|
|
7
|
-
coverageLabel?: string;
|
|
8
|
-
style?: React.CSSProperties;
|
|
9
|
-
}
|
|
10
|
-
declare const SweepAmountCard: React.FC<SweepAmountCardProps>;
|
|
11
|
-
export default SweepAmountCard;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { Amount, FundingAccount } from '@zeniai/client-epic-state';
|
|
3
|
-
interface TreasurySummaryWithBalance {
|
|
4
|
-
availableBalance: Amount;
|
|
5
|
-
fundAllocations: {
|
|
6
|
-
amount: Amount;
|
|
7
|
-
fundCode: string;
|
|
8
|
-
}[];
|
|
9
|
-
insuredFunds: Amount;
|
|
10
|
-
processingBalance: Amount;
|
|
11
|
-
totalBalance: Amount;
|
|
12
|
-
totalYield: Amount;
|
|
13
|
-
}
|
|
14
|
-
export interface SweepFlowRowProps {
|
|
15
|
-
/** Primary funding account that performs the actual transfer to Treasury. */
|
|
16
|
-
primaryAccount: FundingAccount;
|
|
17
|
-
/**
|
|
18
|
-
* Subset of `sourceAccounts` to display in the icon cluster + count.
|
|
19
|
-
* - On the setup page this is reactive to checkbox state.
|
|
20
|
-
* - On the review page this is read-only (passed in by the caller).
|
|
21
|
-
*/
|
|
22
|
-
selectedAccounts: FundingAccount[];
|
|
23
|
-
/** Full list of source accounts (used as the lookup pool for icons/sublabels). */
|
|
24
|
-
sourceAccounts: FundingAccount[];
|
|
25
|
-
/** Treasury account summary; rendered as the destination ("Treasury" + available balance). */
|
|
26
|
-
treasurySummary?: TreasurySummaryWithBalance;
|
|
27
|
-
}
|
|
28
|
-
declare const SweepFlowRow: React.FC<SweepFlowRowProps>;
|
|
29
|
-
export default SweepFlowRow;
|