@npm-zenwork/tax-remittance-ui 0.1.0

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.
Files changed (124) hide show
  1. package/README.md +32 -0
  2. package/dist/api/auth.d.ts +3 -0
  3. package/dist/api/bankAccounts.d.ts +4 -0
  4. package/dist/api/client.d.ts +7 -0
  5. package/dist/api/dashboard.d.ts +5 -0
  6. package/dist/api/entities.d.ts +10 -0
  7. package/dist/api/federalPayments.d.ts +8 -0
  8. package/dist/api/form8655Authorization.d.ts +5 -0
  9. package/dist/api/form9783Enrollment.d.ts +5 -0
  10. package/dist/api/statePayments.d.ts +5 -0
  11. package/dist/components/dashboard/DashboardActionBar.d.ts +5 -0
  12. package/dist/components/dashboard/DashboardSectionLoader.d.ts +5 -0
  13. package/dist/components/dashboard/EmptyPaymentCard.d.ts +9 -0
  14. package/dist/components/dashboard/MonthlyOverviewSection.d.ts +8 -0
  15. package/dist/components/dashboard/MyPaymentsTable.d.ts +8 -0
  16. package/dist/components/dashboard/PaymentSummaryCard.d.ts +21 -0
  17. package/dist/components/dashboard/dashboardMappers.d.ts +12 -0
  18. package/dist/components/dashboard/dashboardUtils.d.ts +31 -0
  19. package/dist/components/entities/entityListUtils.d.ts +7 -0
  20. package/dist/components/forms/FormField.d.ts +28 -0
  21. package/dist/components/icons/payment-tabs/DraftTabIcon.d.ts +2 -0
  22. package/dist/components/icons/payment-tabs/PaidTabIcon.d.ts +2 -0
  23. package/dist/components/icons/payment-tabs/RejectedTabIcon.d.ts +2 -0
  24. package/dist/components/icons/payment-tabs/ScheduledTabIcon.d.ts +2 -0
  25. package/dist/components/icons/payment-tabs/SubmittedTabIcon.d.ts +2 -0
  26. package/dist/components/icons/payment-tabs/index.d.ts +5 -0
  27. package/dist/components/onboarding/CreateEntityCard.d.ts +5 -0
  28. package/dist/components/onboarding/EntityForm.d.ts +1 -0
  29. package/dist/components/payments/AddFederalPaymentForm.d.ts +10 -0
  30. package/dist/components/payments/AddStatePaymentForm.d.ts +6 -0
  31. package/dist/components/payments/BankAccountSelect.d.ts +14 -0
  32. package/dist/components/payments/EftpsIndividualEnrollmentForm.d.ts +11 -0
  33. package/dist/components/payments/EntityDetailsCard.d.ts +8 -0
  34. package/dist/components/payments/PaymentField.d.ts +23 -0
  35. package/dist/components/payments/PaymentFormSection.d.ts +8 -0
  36. package/dist/components/payments/PaymentRowActions.d.ts +11 -0
  37. package/dist/components/payments/ReportingAgentAuthorizationForm.d.ts +11 -0
  38. package/dist/components/payments/SettlementDatePicker.d.ts +8 -0
  39. package/dist/components/payments/SignatureFieldGroup.d.ts +17 -0
  40. package/dist/components/payments/StatePaymentAuthorizationForm.d.ts +8 -0
  41. package/dist/components/payments/TaxPeriodMonthPicker.d.ts +9 -0
  42. package/dist/components/payments/eftpsIndividualEnrollmentConfig.d.ts +3 -0
  43. package/dist/components/payments/federalPaymentUtils.d.ts +7 -0
  44. package/dist/components/payments/federalSubcategoryRules.d.ts +32 -0
  45. package/dist/components/payments/federalTaxPeriodRules.d.ts +11 -0
  46. package/dist/components/payments/paymentsTableConfig.d.ts +15 -0
  47. package/dist/components/payments/remittancePaymentMappers.d.ts +19 -0
  48. package/dist/components/payments/reportingAgentAuthorizationConfig.d.ts +3 -0
  49. package/dist/components/payments/settlementDateRules.d.ts +12 -0
  50. package/dist/components/payments/statePaymentAuthorizationConfig.d.ts +2 -0
  51. package/dist/components/payments/statePaymentConfig.d.ts +20 -0
  52. package/dist/components/settings/AddBankAccountManualForm.d.ts +7 -0
  53. package/dist/components/settings/AddBankAccountModal.d.ts +8 -0
  54. package/dist/components/settings/BankAccountsSection.d.ts +5 -0
  55. package/dist/components/settings/PaymentHistorySection.d.ts +9 -0
  56. package/dist/components/settings/SettingsNav.d.ts +8 -0
  57. package/dist/components/settings/SettingsPlaceholderSection.d.ts +6 -0
  58. package/dist/components/settings/SettingsSectionHeader.d.ts +9 -0
  59. package/dist/components/settings/TaxAccountsSection.d.ts +9 -0
  60. package/dist/components/settings/settingsNavConfig.d.ts +9 -0
  61. package/dist/components/tax-forms/TaxFormsTable.d.ts +8 -0
  62. package/dist/components/ui/Alert.d.ts +7 -0
  63. package/dist/components/ui/Button.d.ts +8 -0
  64. package/dist/components/ui/Input.d.ts +7 -0
  65. package/dist/config.d.ts +22 -0
  66. package/dist/embedded/EmbeddedAuthContext.d.ts +27 -0
  67. package/dist/embedded/EmbeddedContext.d.ts +16 -0
  68. package/dist/embedded/EmbeddedLayout.d.ts +18 -0
  69. package/dist/embedded/EmbeddedRoutes.d.ts +10 -0
  70. package/dist/embedded/EmbeddedWidgetBase.d.ts +28 -0
  71. package/dist/embedded/EntityGate.d.ts +10 -0
  72. package/dist/embedded/TaxRemittanceEmbedded.d.ts +60 -0
  73. package/dist/embedded/ThemeProvider.d.ts +47 -0
  74. package/dist/embedded/pages/EmbeddedCreateEntityPage.d.ts +7 -0
  75. package/dist/embedded/pages/EmbeddedDashboardPage.d.ts +6 -0
  76. package/dist/embedded/pages/EmbeddedEntityFormPage.d.ts +9 -0
  77. package/dist/embedded/widgets/FederalPaymentWidget.d.ts +22 -0
  78. package/dist/embedded/widgets/StatePaymentWidget.d.ts +22 -0
  79. package/dist/index.cjs +76 -0
  80. package/dist/index.cjs.map +1 -0
  81. package/dist/index.d.ts +10 -0
  82. package/dist/index.mjs +14189 -0
  83. package/dist/index.mjs.map +1 -0
  84. package/dist/lib/admin-storage.d.ts +4 -0
  85. package/dist/lib/auth-events.d.ts +2 -0
  86. package/dist/lib/auth-storage.d.ts +6 -0
  87. package/dist/lib/entityAccountType.d.ts +3 -0
  88. package/dist/lib/errors.d.ts +1 -0
  89. package/dist/lib/initials.d.ts +7 -0
  90. package/dist/lib/navigation.d.ts +4 -0
  91. package/dist/lib/paymentStatus.d.ts +13 -0
  92. package/dist/lib/paymentsNavigation.d.ts +2 -0
  93. package/dist/lib/query-client.d.ts +2 -0
  94. package/dist/pages/AddFederalPaymentPage.d.ts +1 -0
  95. package/dist/pages/AddStatePaymentPage.d.ts +1 -0
  96. package/dist/pages/EditFederalPaymentPage.d.ts +2 -0
  97. package/dist/pages/EftpsIndividualEnrollmentPage.d.ts +1 -0
  98. package/dist/pages/FederalPaymentEditorPage.d.ts +5 -0
  99. package/dist/pages/PaymentsPage.d.ts +4 -0
  100. package/dist/pages/ReportingAgentAuthorizationPage.d.ts +1 -0
  101. package/dist/pages/SettingsPage.d.ts +1 -0
  102. package/dist/pages/StatePaymentAuthorizationPage.d.ts +1 -0
  103. package/dist/pages/TaxFormsPage.d.ts +1 -0
  104. package/dist/styles.css +1 -0
  105. package/dist/styles.css.d.ts +4 -0
  106. package/dist/types/api.d.ts +18 -0
  107. package/dist/types/apiClient.d.ts +29 -0
  108. package/dist/types/auth.d.ts +28 -0
  109. package/dist/types/bankAccount.d.ts +11 -0
  110. package/dist/types/createBankAccount.d.ts +7 -0
  111. package/dist/types/dashboard.d.ts +50 -0
  112. package/dist/types/entity.d.ts +54 -0
  113. package/dist/types/federalPayment.d.ts +62 -0
  114. package/dist/types/federalPaymentFlow.d.ts +41 -0
  115. package/dist/types/form8655Authorization.d.ts +48 -0
  116. package/dist/types/form8655AuthorizationFlow.d.ts +25 -0
  117. package/dist/types/form9783Enrollment.d.ts +70 -0
  118. package/dist/types/form9783EnrollmentFlow.d.ts +32 -0
  119. package/dist/types/paymentHistory.d.ts +11 -0
  120. package/dist/types/statePayment.d.ts +32 -0
  121. package/dist/types/statePaymentFlow.d.ts +28 -0
  122. package/dist/types/taxAccount.d.ts +9 -0
  123. package/dist/types/taxForm.d.ts +11 -0
  124. package/package.json +61 -0
package/README.md ADDED
@@ -0,0 +1,32 @@
1
+ # React + TypeScript + Vite
2
+
3
+ This template provides a minimal setup to get React working in Vite with HMR and some Oxlint rules.
4
+
5
+ Currently, two official plugins are available:
6
+
7
+ - [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react) uses [Oxc](https://oxc.rs)
8
+ - [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react-swc) uses [SWC](https://swc.rs/)
9
+
10
+ ## React Compiler
11
+
12
+ The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see [this documentation](https://react.dev/learn/react-compiler/installation).
13
+
14
+ ## Expanding the Oxlint configuration
15
+
16
+ If you are developing a production application, we recommend enabling type-aware lint rules by installing `oxlint-tsgolint` and editing `.oxlintrc.json`:
17
+
18
+ ```json
19
+ {
20
+ "$schema": "./node_modules/oxlint/configuration_schema.json",
21
+ "plugins": ["react", "typescript", "oxc"],
22
+ "options": {
23
+ "typeAware": true
24
+ },
25
+ "rules": {
26
+ "react/rules-of-hooks": "error",
27
+ "react/only-export-components": ["warn", { "allowConstantExport": true }]
28
+ }
29
+ }
30
+ ```
31
+
32
+ See the [Oxlint rules documentation](https://oxc.rs/docs/guide/usage/linter/rules) for the full list of rules and categories.
@@ -0,0 +1,3 @@
1
+ import { AuthResponse, LoginRequest, RegisterRequest } from '../types/auth';
2
+ export declare function login(request: LoginRequest): Promise<AuthResponse>;
3
+ export declare function register(request: RegisterRequest): Promise<AuthResponse>;
@@ -0,0 +1,4 @@
1
+ import { BankAccountResponse } from '../types/bankAccount';
2
+ import { CreateBankAccountRequest } from '../types/createBankAccount';
3
+ export declare function getBankAccounts(entityId: number): Promise<BankAccountResponse[]>;
4
+ export declare function createBankAccount(request: CreateBankAccountRequest): Promise<BankAccountResponse>;
@@ -0,0 +1,7 @@
1
+ type RequestOptions = Omit<RequestInit, 'body'> & {
2
+ body?: unknown;
3
+ auth?: boolean;
4
+ };
5
+ export declare function apiRequest<T>(path: string, options?: RequestOptions): Promise<T>;
6
+ export declare function apiData<T>(path: string, options?: RequestOptions): Promise<T>;
7
+ export {};
@@ -0,0 +1,5 @@
1
+ import { DashboardPaymentsPage, DashboardPaymentsQuery, DashboardResponse, MonthlyOverview, PaymentCategorySummary } from '../types/dashboard';
2
+ export declare function getDashboard(entityId: number, taxYear?: number): Promise<DashboardResponse>;
3
+ export declare function getDashboardSummary(entityId: number, category: string, taxYear: number): Promise<PaymentCategorySummary>;
4
+ export declare function getDashboardMonthlyOverview(entityId: number, month: number, year?: number): Promise<MonthlyOverview>;
5
+ export declare function getDashboardPayments({ entityId, search, taxYear, status, page, pageSize, }: DashboardPaymentsQuery): Promise<DashboardPaymentsPage>;
@@ -0,0 +1,10 @@
1
+ import { CreateEntityDetailsRequest, EntityDetailsResponse } from '../types/entity';
2
+ interface CreateEntityDetailsResponse {
3
+ entityId: number;
4
+ userId: number | null;
5
+ apiClientId: number | null;
6
+ status: string;
7
+ }
8
+ export declare function getMyEntities(): Promise<EntityDetailsResponse[]>;
9
+ export declare function createEntity(request: CreateEntityDetailsRequest): Promise<CreateEntityDetailsResponse>;
10
+ export {};
@@ -0,0 +1,8 @@
1
+ import { CreateFederalPaymentRequest, FederalPaymentResponse, FederalTaxFormOption, FederalTaxTypeCodeOption, UpdateFederalPaymentRequest } from '../types/federalPayment';
2
+ export declare function getFederalPayments(entityId: number): Promise<FederalPaymentResponse[]>;
3
+ export declare function getFederalPaymentById(federalPaymentId: number): Promise<FederalPaymentResponse>;
4
+ export declare function getFederalFormTypes(entityId: number): Promise<FederalTaxFormOption[]>;
5
+ export declare function getFederalTaxTypeCodes(formType: string): Promise<FederalTaxTypeCodeOption[]>;
6
+ export declare function createFederalPayment(request: CreateFederalPaymentRequest): Promise<FederalPaymentResponse>;
7
+ export declare function updateFederalPayment(federalPaymentId: number, request: UpdateFederalPaymentRequest): Promise<FederalPaymentResponse>;
8
+ export declare function submitFederalPayment(federalPaymentId: number): Promise<FederalPaymentResponse>;
@@ -0,0 +1,5 @@
1
+ import { CreateForm8655AuthorizationRequest, Form8655AuthorizationResponse, UpdateForm8655AuthorizationRequest } from '../types/form8655Authorization';
2
+ export declare function createForm8655Authorization(request: CreateForm8655AuthorizationRequest): Promise<Form8655AuthorizationResponse>;
3
+ export declare function getForm8655AuthorizationByEnrolment(enrollmentId: number): Promise<Form8655AuthorizationResponse>;
4
+ export declare function updateForm8655Authorization(form8655AuthorizationId: number, request: UpdateForm8655AuthorizationRequest): Promise<Form8655AuthorizationResponse>;
5
+ export declare function tryGetForm8655AuthorizationByEnrolment(enrollmentId: number): Promise<Form8655AuthorizationResponse | null>;
@@ -0,0 +1,5 @@
1
+ import { CreateForm9783EnrollmentRequest, Form9783EnrollmentResponse, UpdateForm9783EnrollmentRequest } from '../types/form9783Enrollment';
2
+ export declare function createForm9783Enrollment(request: CreateForm9783EnrollmentRequest): Promise<Form9783EnrollmentResponse>;
3
+ export declare function getForm9783EnrollmentByEnrolment(enrollmentId: number): Promise<Form9783EnrollmentResponse>;
4
+ export declare function updateForm9783Enrollment(form9783EnrollmentId: number, request: UpdateForm9783EnrollmentRequest): Promise<Form9783EnrollmentResponse>;
5
+ export declare function tryGetForm9783EnrollmentByEnrolment(enrollmentId: number): Promise<Form9783EnrollmentResponse | null>;
@@ -0,0 +1,5 @@
1
+ import { CreateStatePaymentRequest, StatePaymentResponse, UpdateStatePaymentRequest } from '../types/statePayment';
2
+ export declare function getStatePayments(entityId: number): Promise<StatePaymentResponse[]>;
3
+ export declare function createStatePayment(request: CreateStatePaymentRequest): Promise<StatePaymentResponse>;
4
+ export declare function updateStatePayment(statePaymentDetailId: number, request: UpdateStatePaymentRequest): Promise<StatePaymentResponse>;
5
+ export declare function submitStatePayment(statePaymentDetailId: number): Promise<StatePaymentResponse>;
@@ -0,0 +1,5 @@
1
+ interface DashboardActionBarProps {
2
+ entityCount: number;
3
+ }
4
+ export declare function DashboardActionBar({ entityCount }: DashboardActionBarProps): import("react").JSX.Element;
5
+ export {};
@@ -0,0 +1,5 @@
1
+ interface DashboardSectionLoaderProps {
2
+ label?: string;
3
+ }
4
+ export declare function DashboardSectionLoader({ label }: DashboardSectionLoaderProps): import("react").JSX.Element;
5
+ export {};
@@ -0,0 +1,9 @@
1
+ interface EmptyPaymentCardProps {
2
+ title: string;
3
+ description: string;
4
+ buttonLabel: string;
5
+ onAdd?: () => void;
6
+ comingSoon?: boolean;
7
+ }
8
+ export declare function EmptyPaymentCard({ title, description, buttonLabel, onAdd, comingSoon, }: EmptyPaymentCardProps): import("react").JSX.Element;
9
+ export {};
@@ -0,0 +1,8 @@
1
+ import { MonthlyOverview } from '../../types/dashboard';
2
+ interface MonthlyOverviewSectionProps {
3
+ entityId: number | null;
4
+ initialOverview?: MonthlyOverview;
5
+ isDashboardLoading?: boolean;
6
+ }
7
+ export declare function MonthlyOverviewSection({ entityId, initialOverview, isDashboardLoading, }: MonthlyOverviewSectionProps): import("react").JSX.Element;
8
+ export {};
@@ -0,0 +1,8 @@
1
+ import { DashboardPaymentsPage } from '../../types/dashboard';
2
+ interface MyPaymentsTableProps {
3
+ entityId: number | null;
4
+ initialPayments?: DashboardPaymentsPage;
5
+ isDashboardLoading?: boolean;
6
+ }
7
+ export declare function MyPaymentsTable({ entityId, initialPayments, isDashboardLoading, }: MyPaymentsTableProps): import("react").JSX.Element;
8
+ export {};
@@ -0,0 +1,21 @@
1
+ import { PaymentCategorySummary as ApiPaymentCategorySummary } from '../../types/dashboard';
2
+ type SummaryAmountKey = 'submitted' | 'paid' | 'scheduled' | 'failed';
3
+ interface StatItem {
4
+ label: string;
5
+ key: SummaryAmountKey;
6
+ dotClassName: string;
7
+ }
8
+ interface PaymentSummaryCardProps {
9
+ entityId: number | null;
10
+ category: 'federal' | 'state' | 'local';
11
+ title: string;
12
+ subtitlePrefix: string;
13
+ defaultTaxYear: number;
14
+ taxYearOptions: number[];
15
+ initialSummary?: ApiPaymentCategorySummary;
16
+ isDashboardLoading?: boolean;
17
+ stats: StatItem[];
18
+ comingSoon?: boolean;
19
+ }
20
+ export declare function PaymentSummaryCard({ entityId, category, title, subtitlePrefix, defaultTaxYear, taxYearOptions, initialSummary, isDashboardLoading, stats, comingSoon, }: PaymentSummaryCardProps): import("react").JSX.Element;
21
+ export {};
@@ -0,0 +1,12 @@
1
+ import { DashboardPaymentItem, PaymentCategorySummary } from '../../types/dashboard';
2
+ import { DashboardPaymentRow } from './dashboardUtils';
3
+ export declare function mapSummaryFromApi(summary: PaymentCategorySummary): {
4
+ count: number;
5
+ submitted: number;
6
+ paid: number;
7
+ scheduled: number;
8
+ failed: number;
9
+ percentDone: number;
10
+ };
11
+ export declare function mapPaymentItemToRow(payment: DashboardPaymentItem): DashboardPaymentRow;
12
+ export declare function emptyCategorySummary(): PaymentCategorySummary;
@@ -0,0 +1,31 @@
1
+ import { FederalPaymentResponse } from '../../types/federalPayment';
2
+ export type DashboardPaymentStatus = 'submitted' | 'paid' | 'scheduled' | 'failed';
3
+ export interface DashboardPaymentRow {
4
+ id: number;
5
+ jurisdiction: string;
6
+ period: string;
7
+ amount: number;
8
+ paymentDate: string;
9
+ status: DashboardPaymentStatus;
10
+ statusLabel: string;
11
+ formType: string;
12
+ category: 'federal' | 'state' | 'local';
13
+ }
14
+ export interface PaymentCategorySummary {
15
+ count: number;
16
+ submitted: number;
17
+ paid: number;
18
+ scheduled: number;
19
+ failed: number;
20
+ percentDone: number;
21
+ }
22
+ export declare function formatDashboardCurrency(amount: number): string;
23
+ export declare function normalizePaymentStatus(status: string | null): DashboardPaymentStatus;
24
+ export declare function getStatusLabel(status: DashboardPaymentStatus, rawStatus?: string | null): string;
25
+ export declare function mapFederalPaymentToRow(payment: FederalPaymentResponse): DashboardPaymentRow;
26
+ export declare function summarizePayments(rows: DashboardPaymentRow[]): PaymentCategorySummary;
27
+ export declare function emptyCategorySummary(): PaymentCategorySummary;
28
+ export declare function getProgressSegments(summary: PaymentCategorySummary): {
29
+ color: string;
30
+ width: number;
31
+ }[];
@@ -0,0 +1,7 @@
1
+ import { EntityDetailsResponse } from '../../types/entity';
2
+ export declare function formatEin(idNumber: string): string;
3
+ export declare function formatPhone(phoneNumber: string): string;
4
+ export declare function formatJoinedDate(date: string): string;
5
+ export declare function getJoinedYear(date: string): string;
6
+ export declare function matchesEntitySearch(entity: EntityDetailsResponse, query: string): boolean;
7
+ export declare const businessTypeOptions: readonly ["All", "LLP", "LLC", "Corporation", "S-Corp", "Sole Proprietorship", "Partnership"];
@@ -0,0 +1,28 @@
1
+ import { InputHTMLAttributes, ReactNode, SelectHTMLAttributes } from 'react';
2
+ export interface FormLabelProps {
3
+ label: string;
4
+ required?: boolean;
5
+ htmlFor?: string;
6
+ }
7
+ export declare function FormLabel({ label, required, htmlFor }: FormLabelProps): import("react").JSX.Element;
8
+ interface FormInputProps extends InputHTMLAttributes<HTMLInputElement> {
9
+ label: string;
10
+ required?: boolean;
11
+ error?: string;
12
+ }
13
+ export declare const FormInput: import('react').ForwardRefExoticComponent<FormInputProps & import('react').RefAttributes<HTMLInputElement>>;
14
+ interface FormSelectProps extends SelectHTMLAttributes<HTMLSelectElement> {
15
+ label: string;
16
+ required?: boolean;
17
+ error?: string;
18
+ children: ReactNode;
19
+ }
20
+ export declare const FormSelect: import('react').ForwardRefExoticComponent<FormSelectProps & import('react').RefAttributes<HTMLSelectElement>>;
21
+ interface FormSectionProps {
22
+ step?: number;
23
+ title: string;
24
+ muted?: boolean;
25
+ children: ReactNode;
26
+ }
27
+ export declare function FormSection({ step, title, muted, children }: FormSectionProps): import("react").JSX.Element;
28
+ export {};
@@ -0,0 +1,2 @@
1
+ import { SVGProps } from 'react';
2
+ export declare function DraftTabIcon({ className, ...props }: SVGProps<SVGSVGElement>): import("react").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { SVGProps } from 'react';
2
+ export declare function PaidTabIcon({ className, ...props }: SVGProps<SVGSVGElement>): import("react").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { SVGProps } from 'react';
2
+ export declare function RejectedTabIcon({ className, ...props }: SVGProps<SVGSVGElement>): import("react").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { SVGProps } from 'react';
2
+ export declare function ScheduledTabIcon({ className, ...props }: SVGProps<SVGSVGElement>): import("react").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { SVGProps } from 'react';
2
+ export declare function SubmittedTabIcon({ className, ...props }: SVGProps<SVGSVGElement>): import("react").JSX.Element;
@@ -0,0 +1,5 @@
1
+ export { DraftTabIcon } from './DraftTabIcon';
2
+ export { ScheduledTabIcon } from './ScheduledTabIcon';
3
+ export { SubmittedTabIcon } from './SubmittedTabIcon';
4
+ export { RejectedTabIcon } from './RejectedTabIcon';
5
+ export { PaidTabIcon } from './PaidTabIcon';
@@ -0,0 +1,5 @@
1
+ interface CreateEntityCardProps {
2
+ onCreateClick?: () => void;
3
+ }
4
+ export declare function CreateEntityCard({ onCreateClick }: CreateEntityCardProps): import("react").JSX.Element;
5
+ export {};
@@ -0,0 +1 @@
1
+ export declare function EntityForm(): import("react").JSX.Element;
@@ -0,0 +1,10 @@
1
+ import { EntityDetailsResponse } from '../../types/entity';
2
+ import { FederalPaymentDraft } from '../../types/federalPaymentFlow';
3
+ interface AddFederalPaymentFormProps {
4
+ entity: EntityDetailsResponse | null;
5
+ initialDraft?: FederalPaymentDraft;
6
+ readonly?: boolean;
7
+ onCancel?: () => void;
8
+ }
9
+ export declare function AddFederalPaymentForm({ entity, initialDraft, readonly, onCancel, }: AddFederalPaymentFormProps): import("react").JSX.Element;
10
+ export {};
@@ -0,0 +1,6 @@
1
+ import { EntityDetailsResponse } from '../../types/entity';
2
+ interface AddStatePaymentFormProps {
3
+ entity: EntityDetailsResponse | null;
4
+ }
5
+ export declare function AddStatePaymentForm({ entity }: AddStatePaymentFormProps): import("react").JSX.Element;
6
+ export {};
@@ -0,0 +1,14 @@
1
+ import { BankAccountResponse } from '../../types/bankAccount';
2
+ interface BankAccountSelectProps {
3
+ value: string;
4
+ onChange: (bankAccountDetailId: string) => void;
5
+ entityId: number | null;
6
+ entityType?: string;
7
+ bankAccounts: BankAccountResponse[];
8
+ isLoading?: boolean;
9
+ disabled?: boolean;
10
+ error?: string;
11
+ label?: string;
12
+ }
13
+ export declare function BankAccountSelect({ value, onChange, entityId, entityType, bankAccounts, isLoading, disabled, error, label, }: BankAccountSelectProps): import("react").JSX.Element;
14
+ export {};
@@ -0,0 +1,11 @@
1
+ import { EntityDetailsResponse } from '../../types/entity';
2
+ import { Form9783EnrollmentResponse } from '../../types/form9783Enrollment';
3
+ import { FederalPaymentDraft } from '../../types/federalPaymentFlow';
4
+ interface EftpsIndividualEnrollmentFormProps {
5
+ entity: EntityDetailsResponse | null;
6
+ paymentDraft: FederalPaymentDraft;
7
+ initialEnrollment?: Form9783EnrollmentResponse | null;
8
+ readonly?: boolean;
9
+ }
10
+ export declare function EftpsIndividualEnrollmentForm({ entity, paymentDraft, initialEnrollment, readonly, }: EftpsIndividualEnrollmentFormProps): import("react").JSX.Element;
11
+ export {};
@@ -0,0 +1,8 @@
1
+ import { EntityDetailsResponse } from '../../types/entity';
2
+ interface EntityDetailsCardProps {
3
+ entity: EntityDetailsResponse | null;
4
+ remittanceAmount?: string;
5
+ className?: string;
6
+ }
7
+ export declare function EntityDetailsCard({ entity, remittanceAmount, className, }: EntityDetailsCardProps): import("react").JSX.Element;
8
+ export {};
@@ -0,0 +1,23 @@
1
+ import { ReactNode } from 'react';
2
+ interface PaymentFieldLabelProps {
3
+ label: string;
4
+ required?: boolean;
5
+ htmlFor?: string;
6
+ }
7
+ export declare function PaymentFieldLabel({ label, required, htmlFor }: PaymentFieldLabelProps): import("react").JSX.Element;
8
+ interface PaymentFieldProps {
9
+ label: string;
10
+ required?: boolean;
11
+ error?: string;
12
+ children: ReactNode;
13
+ }
14
+ export declare function PaymentField({ label, required, error, children }: PaymentFieldProps): import("react").JSX.Element;
15
+ export declare function paymentInputClass(hasError?: boolean, readOnly?: boolean): string;
16
+ export declare function paymentSelectClass(hasError?: boolean): string;
17
+ declare function ChevronDownIcon({ className }: {
18
+ className?: string;
19
+ }): import("react").JSX.Element;
20
+ export declare function SelectWrapper({ children }: {
21
+ children: ReactNode;
22
+ }): import("react").JSX.Element;
23
+ export { ChevronDownIcon };
@@ -0,0 +1,8 @@
1
+ import { ReactNode } from 'react';
2
+ interface PaymentFormSectionProps {
3
+ title: string;
4
+ children: ReactNode;
5
+ isFirst?: boolean;
6
+ }
7
+ export declare function PaymentFormSection({ title, children, isFirst }: PaymentFormSectionProps): import("react").JSX.Element;
8
+ export {};
@@ -0,0 +1,11 @@
1
+ import { PaymentActionType } from './paymentsTableConfig';
2
+ interface PaymentRowActionsProps {
3
+ actionType: PaymentActionType;
4
+ onView?: () => void;
5
+ onEdit?: () => void;
6
+ onSubmit?: () => void;
7
+ isSubmitting?: boolean;
8
+ }
9
+ /** Row actions per tab — used when payment list API is wired. */
10
+ export declare function PaymentRowActions({ actionType, onView, onEdit, onSubmit, isSubmitting, }: PaymentRowActionsProps): import("react").JSX.Element;
11
+ export {};
@@ -0,0 +1,11 @@
1
+ import { EntityDetailsResponse } from '../../types/entity';
2
+ import { Form8655AuthorizationResponse } from '../../types/form8655Authorization';
3
+ import { FederalPaymentDraft } from '../../types/federalPaymentFlow';
4
+ interface ReportingAgentAuthorizationFormProps {
5
+ entity: EntityDetailsResponse | null;
6
+ paymentDraft: FederalPaymentDraft;
7
+ initialAuthorization?: Form8655AuthorizationResponse | null;
8
+ readonly?: boolean;
9
+ }
10
+ export declare function ReportingAgentAuthorizationForm({ entity, paymentDraft, initialAuthorization, readonly, }: ReportingAgentAuthorizationFormProps): import("react").JSX.Element;
11
+ export {};
@@ -0,0 +1,8 @@
1
+ interface SettlementDatePickerProps {
2
+ value: string;
3
+ onChange: (value: string) => void;
4
+ disabled?: boolean;
5
+ hasError?: boolean;
6
+ }
7
+ export declare function SettlementDatePicker({ value, onChange, disabled, hasError, }: SettlementDatePickerProps): import("react").JSX.Element;
8
+ export {};
@@ -0,0 +1,17 @@
1
+ import { UseFormRegisterReturn } from 'react-hook-form';
2
+ interface SignatureFieldGroupProps {
3
+ label?: string;
4
+ required?: boolean;
5
+ signature: UseFormRegisterReturn;
6
+ title: UseFormRegisterReturn;
7
+ date: UseFormRegisterReturn;
8
+ signatureValue: string;
9
+ errors?: {
10
+ signature?: string;
11
+ title?: string;
12
+ date?: string;
13
+ };
14
+ signatureCaption?: string;
15
+ }
16
+ export declare function SignatureFieldGroup({ label, required, signature, title, date, signatureValue, errors, signatureCaption, }: SignatureFieldGroupProps): import("react").JSX.Element;
17
+ export {};
@@ -0,0 +1,8 @@
1
+ import { EntityDetailsResponse } from '../../types/entity';
2
+ import { StatePaymentDraft } from '../../types/statePaymentFlow';
3
+ interface StatePaymentAuthorizationFormProps {
4
+ entity: EntityDetailsResponse | null;
5
+ paymentDraft: StatePaymentDraft;
6
+ }
7
+ export declare function StatePaymentAuthorizationForm({ entity, paymentDraft, }: StatePaymentAuthorizationFormProps): import("react").JSX.Element;
8
+ export {};
@@ -0,0 +1,9 @@
1
+ interface TaxPeriodMonthPickerProps {
2
+ value: string;
3
+ onChange: (value: string) => void;
4
+ disabled?: boolean;
5
+ hasError?: boolean;
6
+ disabledMonths?: number[];
7
+ }
8
+ export declare function TaxPeriodMonthPicker({ value, onChange, disabled, hasError, disabledMonths, }: TaxPeriodMonthPickerProps): import("react").JSX.Element;
9
+ export {};
@@ -0,0 +1,3 @@
1
+ export declare const disclosureAuthorizationAgreementOne = "I hereby authorize the contact person listed in item 5 on this form, and the financial institution(s) listed in items 9-11 on this form, to process EFTPS payments and to receive confidential information for enrollment purposes, to answer inquiries regarding my account, and to resolve any issues that may arise. This authorization includes passwords, payment instructions, taxpayer names, and identifying numbers.";
2
+ export declare const disclosureAuthorizationAgreementTwo = "By completing the financial institution information in items 9-11 on this form, I authorize the designated Financial Agents of the U.S. Treasury to initiate EFTPS debit entries to my financial institution account for federal tax payments. All debits will be made in accordance with U.S. Treasury regulations. This authorization remains in effect until written notification of termination is received and the Financial Agent has had a reasonable opportunity to act on it.";
3
+ export declare const authorityToExecuteAgreement = "Under penalties of perjury, I certify that I have the authority to sign this authorization on behalf of the taxpayer. If I am a corporate officer, partner, guardian, executor, receiver, administrator, trustee, or other party, I certify that I have the authority to execute this authorization on behalf of the taxpayer. If I am a tax practitioner, I certify that Form 2848 or Form 8655 is on file with the IRS.";
@@ -0,0 +1,7 @@
1
+ export { getMinSettlementDate } from './settlementDateRules';
2
+ export declare function maskAccountNumber(accountNumber: string): string;
3
+ export declare function getTaxPeriodOptions(): Array<{
4
+ value: string;
5
+ label: string;
6
+ }>;
7
+ export declare function formatRemittanceAmount(value: string): string;
@@ -0,0 +1,32 @@
1
+ /** Federal tax deposit payment type codes that require subcategory breakdown (Tax1099). */
2
+ export declare const FEDERAL_TAX_DEPOSIT_TYPE_CODES: {
3
+ readonly '941': "94105";
4
+ readonly '944': "94405";
5
+ readonly 'CT-1': "10005";
6
+ };
7
+ export declare const SUBCATEGORY_CODE_LABELS: {
8
+ readonly socialSecurity: "Social Security";
9
+ readonly medicare: "Medicare";
10
+ readonly withheld: "Withheld";
11
+ readonly tier1: "Tier 1(FICA)";
12
+ readonly tier2: "Tier 2 (Industry)";
13
+ };
14
+ export declare const AMOUNT_FIELD_ERROR_MESSAGE = "Payment amount must be a number greater than 0, can include up to 2 decimal places, and must not exceed 100,000,000.";
15
+ export declare function isSubcategoryFieldsActive(taxFormType: string, taxTypeCode: string): boolean;
16
+ export declare function isCt1SubcategoryFieldsActive(taxFormType: string, taxTypeCode: string): boolean;
17
+ export declare function is941Or944SubcategoryMode(taxFormType: string, taxTypeCode: string): boolean;
18
+ export declare function getSubcategoryCodeLabels(taxFormType: string): {
19
+ code1: string;
20
+ code2: string;
21
+ code3: string;
22
+ };
23
+ export declare function isValidAmountField(value: string): boolean;
24
+ export declare function parseAmountField(value: string): number | null;
25
+ export declare function sumSubcategoryAmounts(amount1: string, amount2: string, amount3: string, includeAmount3: boolean): number;
26
+ export declare function amountsEqual(left: number, right: number): boolean;
27
+ /** Maps subcategory amounts to IRS API codes ("1", "2", "3") per Tax1099 backend. */
28
+ export declare function toSubcategoryApiCodes(taxFormType: string, taxTypeCode: string, amount1: string, amount2: string, amount3: string): {
29
+ subcategoryCode1: string | null;
30
+ subcategoryCode2: string | null;
31
+ subcategoryCode3: string | null;
32
+ };
@@ -0,0 +1,11 @@
1
+ export declare function getDisabledMonthsForTaxForm(taxFormType: string): number[];
2
+ export declare function formatTaxPeriodDisplay(value: string): string;
3
+ export declare function parseTaxPeriodValue(value: string): {
4
+ year: number;
5
+ month: number;
6
+ } | null;
7
+ export declare function toTaxPeriodValue(year: number, monthIndex: number): string;
8
+ export declare function getTaxPeriodYearBounds(): {
9
+ minYear: number;
10
+ maxYear: number;
11
+ };
@@ -0,0 +1,15 @@
1
+ import { ComponentType, SVGProps } from 'react';
2
+ export type PaymentStatus = 'drafts' | 'scheduled' | 'submitted' | 'rejected' | 'paid';
3
+ export type PaymentActionType = 'draft-actions' | 'view-pdf' | 'view-link' | 'rejected-actions';
4
+ export interface TabTableConfig {
5
+ columns: string[];
6
+ emptyMessage: string;
7
+ actionType: PaymentActionType;
8
+ }
9
+ export declare const statusTabs: {
10
+ key: PaymentStatus;
11
+ label: string;
12
+ Icon: ComponentType<SVGProps<SVGSVGElement>>;
13
+ iconClassName: string;
14
+ }[];
15
+ export declare const tabTableConfig: Record<PaymentStatus, TabTableConfig>;
@@ -0,0 +1,19 @@
1
+ import { PaymentStatus } from './paymentsTableConfig';
2
+ import { FederalPaymentResponse } from '../../types/federalPayment';
3
+ import { StatePaymentResponse } from '../../types/statePayment';
4
+ export interface RemittancePaymentRow {
5
+ id: number;
6
+ category: 'federal' | 'state';
7
+ referenceNo: string;
8
+ jurisdiction: string;
9
+ period: string;
10
+ amount: number;
11
+ paymentDate: string;
12
+ status: string | null;
13
+ reason: string | null;
14
+ tab: PaymentStatus;
15
+ }
16
+ export declare function mapFederalPaymentToRemittanceRow(payment: FederalPaymentResponse): RemittancePaymentRow;
17
+ export declare function mapStatePaymentToRemittanceRow(payment: StatePaymentResponse): RemittancePaymentRow;
18
+ export declare function filterRemittanceRows(rows: RemittancePaymentRow[], tab: PaymentStatus, paymentTypeFilter: string): RemittancePaymentRow[];
19
+ export declare function countRemittanceRowsByTab(rows: RemittancePaymentRow[]): Record<PaymentStatus, number>;
@@ -0,0 +1,3 @@
1
+ export declare const authorizationTaxForms: readonly ["720", "940", "941", "943", "944", "945", "990-PF", "990-T", "1041", "1042", "1120", "CT-1", "Other"];
2
+ export declare const authorizationAgreementLead = "I understand that this agreement does not relieve me, as the taxpayer, of the responsibility to ensure that all tax returns are filed and that all deposits and payments are made and that I may enroll in the Electronic Federal Tax Payment System (EFTPS) to view deposits and payments made on my behalf.";
3
+ export declare const authorizationAgreementBody = "I further understand that this agreement does not authorize the reporting agent to sign any tax returns, to otherwise act as a legal representative of the taxpayer, or to represent the taxpayer before the IRS. I also understand that the reporting agent is not responsible for any penalties or interest that may be assessed against the taxpayer. I authorize the reporting agent to complete Form 8655, Reporting Agent Authorization, and to make deposits and payments on my behalf for the tax return(s) indicated above. I also authorize the reporting agent to receive confidential information and to perform acts as specified on Form 2848, Power of Attorney and Declaration of Representative, or Form 8821, Tax Information Authorization, as applicable.";
@@ -0,0 +1,12 @@
1
+ export declare const SETTLEMENT_DATE_NOON_CUTOFF_HOUR = 12;
2
+ export declare function toDateString(date: Date): string;
3
+ export declare function parseDateString(value: string): Date | null;
4
+ /** Earliest selectable date: today before noon, otherwise tomorrow (Tax1099). */
5
+ export declare function getMinSettlementDate(reference?: Date): string;
6
+ /** Latest selectable date: one year from today (Tax1099). */
7
+ export declare function getMaxSettlementDate(reference?: Date): string;
8
+ export declare function isWeekday(date: Date): boolean;
9
+ export declare function isSettlementDateSelectable(date: Date, reference?: Date): boolean;
10
+ export declare function isValidSettlementDate(value: string, reference?: Date): boolean;
11
+ export declare function formatSettlementMonthLabel(year: number, monthIndex: number): string;
12
+ export declare function getCalendarDays(year: number, monthIndex: number): Array<Date | null>;
@@ -0,0 +1,2 @@
1
+ export declare const statePaymentAuthorizationText = "By proceeding, you authorize the payment to the selected tax authority and acknowledge that you are responsible for the accuracy of the information provided.";
2
+ export declare const statePaymentAuthorizationCheckboxLabel = "I have reviewed the details and authorize this payment.";
@@ -0,0 +1,20 @@
1
+ export declare const statePaymentReasons: readonly ["Withholding Tax", "Estimated Tax", "Income Tax"];
2
+ export type StatePaymentReason = (typeof statePaymentReasons)[number];
3
+ export declare const usStates: readonly [{
4
+ readonly code: "VA";
5
+ readonly name: "Virginia";
6
+ }];
7
+ export declare const stateTaxPeriodOptions: readonly [{
8
+ readonly value: "Q1";
9
+ readonly label: "Q1";
10
+ }, {
11
+ readonly value: "Q2";
12
+ readonly label: "Q2";
13
+ }, {
14
+ readonly value: "Q3";
15
+ readonly label: "Q3";
16
+ }, {
17
+ readonly value: "Q4";
18
+ readonly label: "Q4";
19
+ }];
20
+ export declare function getStateTaxYearOptions(): number[];
@@ -0,0 +1,7 @@
1
+ interface AddBankAccountManualFormProps {
2
+ entityId: number;
3
+ onCancel: () => void;
4
+ onSuccess: (bankAccountDetailId: number) => void;
5
+ }
6
+ export declare function AddBankAccountManualForm({ entityId, onCancel, onSuccess }: AddBankAccountManualFormProps): import("react").JSX.Element;
7
+ export {};