@npm-zenwork/tax-remittance-ui 0.2.4 → 0.2.6

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 (137) hide show
  1. package/dist/api/bankAccounts.d.ts +9 -7
  2. package/dist/api/dashboard.d.ts +3 -1
  3. package/dist/api/entities.d.ts +10 -7
  4. package/dist/api/remittancePayments.d.ts +2 -0
  5. package/dist/api/taxAccounts.d.ts +10 -1
  6. package/dist/components/dashboard/AddFirstPaymentModal.d.ts +12 -0
  7. package/dist/components/dashboard/DashboardKpiCards.d.ts +10 -0
  8. package/dist/components/dashboard/FederalPaymentsChartCard.d.ts +11 -0
  9. package/dist/components/dashboard/NeedAttentionCarousel.d.ts +6 -0
  10. package/dist/components/dashboard/PaymentsTypeCard.d.ts +7 -0
  11. package/dist/components/dashboard/RecentPaymentsCard.d.ts +6 -0
  12. package/dist/components/dashboard/RowActionsMenu.d.ts +13 -0
  13. package/dist/components/dashboard/SetupChecklist.d.ts +22 -0
  14. package/dist/components/dashboard/StatePaymentsChartCard.d.ts +11 -0
  15. package/dist/components/dashboard/TaxYearSelect.d.ts +9 -0
  16. package/dist/components/dashboard/UpcomingPaymentsCard.d.ts +6 -0
  17. package/dist/components/dashboard/dashboardMockData.d.ts +63 -0
  18. package/dist/components/dashboard/dashboardOverviewMappers.d.ts +15 -0
  19. package/dist/components/dashboard/dashboardUtils.d.ts +18 -0
  20. package/dist/components/dashboard/useSetupProgress.d.ts +30 -0
  21. package/dist/components/entities/EntityActionsMenu.d.ts +3 -1
  22. package/dist/components/entities/EntityCard.d.ts +8 -0
  23. package/dist/components/entities/EntityTypeFilter.d.ts +8 -0
  24. package/dist/components/entities/entityListUtils.d.ts +5 -8
  25. package/dist/components/forms/PhoneInputGroup.d.ts +5 -7
  26. package/dist/components/forms/SegmentedControl.d.ts +9 -5
  27. package/dist/components/icons/BankIcon.d.ts +1 -0
  28. package/dist/components/icons/BusinessIcon.d.ts +1 -0
  29. package/dist/components/icons/CheckCircleIcon.d.ts +1 -0
  30. package/dist/components/icons/EmptyTaxAccountsIllustration.d.ts +5 -0
  31. package/dist/components/icons/EntitySuccessIllustration.d.ts +2 -0
  32. package/dist/components/icons/EyeIcon.d.ts +1 -0
  33. package/dist/components/icons/EyeOffIcon.d.ts +1 -0
  34. package/dist/components/icons/IndividualEntitySuccessIllustration.d.ts +2 -0
  35. package/dist/components/icons/PersonIcon.d.ts +1 -0
  36. package/dist/components/icons/XCircleIcon.d.ts +1 -0
  37. package/dist/components/onboarding/EntityAccountTypeRow.d.ts +16 -0
  38. package/dist/components/onboarding/EntityAddressFields.d.ts +17 -0
  39. package/dist/components/onboarding/EntityBusinessFields.d.ts +17 -0
  40. package/dist/components/onboarding/EntityCreatedModal.d.ts +14 -0
  41. package/dist/components/onboarding/EntityForm.d.ts +5 -0
  42. package/dist/components/onboarding/EntityFormHelpPanel.d.ts +8 -0
  43. package/dist/components/onboarding/EntityIdNumberInput.d.ts +14 -0
  44. package/dist/components/onboarding/EntityPhoneField.d.ts +9 -0
  45. package/dist/components/onboarding/EntityPrimaryTaxpayerFields.d.ts +16 -0
  46. package/dist/components/onboarding/EntitySuccessModal.d.ts +35 -0
  47. package/dist/components/onboarding/SecondaryTaxpayerSection.d.ts +23 -0
  48. package/dist/components/onboarding/SecondaryTaxpayerToggle.d.ts +10 -0
  49. package/dist/components/onboarding/entityHelpContent.d.ts +123 -0
  50. package/dist/components/onboarding/useEntityForm.d.ts +80 -0
  51. package/dist/components/payments/BankAccountCard.d.ts +16 -0
  52. package/dist/components/payments/BankAccountDrawer.d.ts +15 -0
  53. package/dist/components/payments/BankConnectionMethodModal.d.ts +11 -0
  54. package/dist/components/payments/BankConnectionMethodPicker.d.ts +10 -0
  55. package/dist/components/payments/FederalPaymentReviewPanel.d.ts +14 -0
  56. package/dist/components/payments/FederalPaymentReviewStep.d.ts +13 -0
  57. package/dist/components/payments/InlineRowActions.d.ts +17 -0
  58. package/dist/components/payments/PaymentActionButton.d.ts +9 -0
  59. package/dist/components/payments/PaymentActionsFooter.d.ts +43 -0
  60. package/dist/components/payments/PaymentFormSection.d.ts +1 -1
  61. package/dist/components/payments/PaymentRowMenu.d.ts +14 -0
  62. package/dist/components/payments/PaymentStatusBadge.d.ts +7 -0
  63. package/dist/components/payments/PaymentStepper.d.ts +14 -0
  64. package/dist/components/payments/PaymentTableRow.d.ts +14 -0
  65. package/dist/components/payments/PaymentsNeedAttention.d.ts +14 -0
  66. package/dist/components/payments/RecurringPaymentToggle.d.ts +16 -0
  67. package/dist/components/payments/RecurringPeriodRows.d.ts +34 -0
  68. package/dist/components/payments/StateBankDetailsForm.d.ts +8 -0
  69. package/dist/components/payments/StatePaymentReviewPanel.d.ts +14 -0
  70. package/dist/components/payments/eftpsIndividualEnrollmentConfig.d.ts +3 -3
  71. package/dist/components/payments/federalPaymentSteps.d.ts +6 -0
  72. package/dist/components/payments/federalPaymentUtils.d.ts +4 -0
  73. package/dist/components/payments/paymentsTableConfig.d.ts +20 -9
  74. package/dist/components/payments/remittancePaymentMappers.d.ts +3 -0
  75. package/dist/components/payments/statePaymentAuthorizationConfig.d.ts +1 -1
  76. package/dist/components/payments/useStatePaymentDraftSave.d.ts +11 -0
  77. package/dist/components/settings/BankAccountActionsMenu.d.ts +3 -1
  78. package/dist/components/settings/EditEntityForm.d.ts +12 -0
  79. package/dist/components/settings/TaxAccountDrawer.d.ts +22 -0
  80. package/dist/components/settings/settingsNavConfig.d.ts +1 -1
  81. package/dist/components/settings/taxAccountDrawerConfig.d.ts +1 -0
  82. package/dist/components/tax-forms/TaxFormCard.d.ts +7 -0
  83. package/dist/components/tax-forms/TaxFormsGrid.d.ts +9 -0
  84. package/dist/components/tax-forms/states/virginia/VA16Form.d.ts +53 -0
  85. package/dist/components/tax-forms/states/virginia/VA16Form.preview.d.ts +2 -0
  86. package/dist/components/ui/SideDrawer.d.ts +18 -0
  87. package/dist/components/ui/StatusPill.d.ts +10 -0
  88. package/dist/components/ui/ToastProvider.d.ts +2 -2
  89. package/dist/embedded/EmbeddedContext.d.ts +4 -1
  90. package/dist/embedded/EmbeddedWidgetBase.d.ts +3 -1
  91. package/dist/embedded/TaxRemittanceEmbedded.d.ts +6 -0
  92. package/dist/embedded/pages/EmbeddedEntityEditPage.d.ts +6 -0
  93. package/dist/index.cjs +34 -34
  94. package/dist/index.cjs.map +1 -1
  95. package/dist/index.d.ts +2 -0
  96. package/dist/index.mjs +14305 -11075
  97. package/dist/index.mjs.map +1 -1
  98. package/dist/lib/bankAccountInputRules.d.ts +17 -0
  99. package/dist/lib/entityFormUtils.d.ts +63 -8
  100. package/dist/lib/fieldRules.d.ts +92 -0
  101. package/dist/lib/fieldSchemas.d.ts +12 -0
  102. package/dist/lib/jwt.d.ts +10 -0
  103. package/dist/lib/paymentFrequency.d.ts +10 -0
  104. package/dist/lib/paymentStatus.d.ts +7 -0
  105. package/dist/lib/paymentsNavigation.d.ts +16 -2
  106. package/dist/lib/useElementWidth.d.ts +9 -0
  107. package/dist/pages/FederalPaymentReviewPage.d.ts +1 -0
  108. package/dist/pages/StateBankDetailsPage.d.ts +2 -0
  109. package/dist/styles.css +1 -1
  110. package/dist/types/bankAccount.d.ts +2 -0
  111. package/dist/types/createBankAccount.d.ts +2 -0
  112. package/dist/types/dashboard.d.ts +59 -0
  113. package/dist/types/entity.d.ts +27 -2
  114. package/dist/types/federalPaymentFlow.d.ts +2 -0
  115. package/dist/types/statePayment.d.ts +7 -0
  116. package/dist/types/statePaymentFlow.d.ts +3 -0
  117. package/dist/types/taxAccountDetails.d.ts +31 -29
  118. package/package.json +1 -1
  119. package/dist/api/paymentTransactions.d.ts +0 -7
  120. package/dist/components/dashboard/EmptyPaymentCard.d.ts +0 -9
  121. package/dist/components/dashboard/MonthlyOverviewSection.d.ts +0 -8
  122. package/dist/components/dashboard/MyPaymentsTable.d.ts +0 -8
  123. package/dist/components/dashboard/PaymentSummaryCard.d.ts +0 -21
  124. package/dist/components/payments/PaymentRowActions.d.ts +0 -13
  125. package/dist/components/settings/AddBankAccountManualForm.d.ts +0 -7
  126. package/dist/components/settings/AddBankAccountModal.d.ts +0 -8
  127. package/dist/components/settings/AddTaxAccountForm.d.ts +0 -32
  128. package/dist/components/settings/EditBankAccountModal.d.ts +0 -8
  129. package/dist/components/settings/EditEntityModal.d.ts +0 -8
  130. package/dist/components/settings/PaymentHistorySection.d.ts +0 -5
  131. package/dist/components/settings/SettingsPlaceholderSection.d.ts +0 -6
  132. package/dist/components/settings/taxAccountFormConfig.d.ts +0 -18
  133. package/dist/components/tax-forms/TaxFormsTable.d.ts +0 -8
  134. package/dist/pages/AddTaxAccountPage.d.ts +0 -1
  135. package/dist/pages/StatePaymentEditorPage.d.ts +0 -5
  136. package/dist/types/paymentHistory.d.ts +0 -26
  137. package/dist/types/taxAccount.d.ts +0 -9
@@ -13,6 +13,18 @@ export interface CreateEntityDetailsRequest {
13
13
  state: string;
14
14
  country: string;
15
15
  zipCode: string;
16
+ filingStatus?: string;
17
+ secondaryFirstName?: string;
18
+ secondaryLastName?: string;
19
+ secondarySsn?: string;
20
+ secondaryEmail?: string;
21
+ secondaryPhoneNumber?: string;
22
+ secondaryAddress1?: string;
23
+ secondaryAddress2?: string | null;
24
+ secondaryCity?: string;
25
+ secondaryState?: string;
26
+ secondaryCountry?: string;
27
+ secondaryZipCode?: string;
16
28
  }
17
29
  export interface EntityDetailsResponse {
18
30
  entityId: number;
@@ -33,6 +45,18 @@ export interface EntityDetailsResponse {
33
45
  country: string;
34
46
  zipCode: string;
35
47
  status: string;
48
+ filingStatus: string | null;
49
+ secondaryFirstName: string | null;
50
+ secondaryLastName: string | null;
51
+ secondarySsn: string | null;
52
+ secondaryEmail: string | null;
53
+ secondaryPhoneNumber: string | null;
54
+ secondaryAddress1: string | null;
55
+ secondaryAddress2: string | null;
56
+ secondaryCity: string | null;
57
+ secondaryState: string | null;
58
+ secondaryCountry: string | null;
59
+ secondaryZipCode: string | null;
36
60
  createdAt: string;
37
61
  updatedAt: string;
38
62
  }
@@ -44,7 +68,7 @@ export interface EntityFormValues {
44
68
  ein: string;
45
69
  entityType: string;
46
70
  email: string;
47
- countryCode: string;
71
+ /** 10 national digits only — the "+1" country code is added when submitting. */
48
72
  phoneNumber: string;
49
73
  address1: string;
50
74
  address2: string;
@@ -53,4 +77,5 @@ export interface EntityFormValues {
53
77
  zipCode: string;
54
78
  country: string;
55
79
  }
56
- export type UpdateEntityDetailsRequest = Omit<CreateEntityDetailsRequest, 'idNumber'>;
80
+ /** Update carries the same fields as create, identifier included. */
81
+ export type UpdateEntityDetailsRequest = CreateEntityDetailsRequest;
@@ -29,6 +29,8 @@ export declare function toUpdateFederalPaymentRequest(draft: FederalPaymentDraft
29
29
  export interface FederalPaymentFlowState {
30
30
  from?: string;
31
31
  paymentDraft?: FederalPaymentDraft;
32
+ /** When true, start a blank form and discard any leftover session draft. */
33
+ resetDraft?: boolean;
32
34
  }
33
35
  export declare const FEDERAL_PAYMENT_DRAFT_KEY = "federal-payment-draft";
34
36
  export declare function saveFederalPaymentDraft(draft: FederalPaymentDraft): void;
@@ -11,6 +11,9 @@ export interface CreateStatePaymentRequest {
11
11
  taxAmount: number;
12
12
  paymentDate: string;
13
13
  bankAccountDetailId: number;
14
+ isRecurring?: boolean;
15
+ frequency?: string | null;
16
+ recurringEndDate?: string | null;
14
17
  }
15
18
  export interface UpdateStatePaymentRequest {
16
19
  state: string;
@@ -41,6 +44,10 @@ export interface StatePaymentResponse {
41
44
  status: string | null;
42
45
  reason: string | null;
43
46
  referenceNumber: string | null;
47
+ isRecurring: boolean;
48
+ frequency: string | null;
49
+ recurringEndDate: string | null;
50
+ recurringGroupId: string | null;
44
51
  createdAt: string;
45
52
  }
46
53
  export interface StatePaymentStateOption {
@@ -14,6 +14,9 @@ export interface StatePaymentDraft {
14
14
  routingNumber?: string;
15
15
  accountType?: string;
16
16
  bankName?: string;
17
+ isRecurring?: boolean;
18
+ frequency?: string;
19
+ recurringEndDate?: string;
17
20
  }
18
21
  export interface StatePaymentFlowState {
19
22
  from?: string;
@@ -1,50 +1,52 @@
1
1
  /**
2
2
  * Tax account detail types — mirror the backend `portal/tax-accounts` contract
3
- * (TaxAccountResponse + nested Virginia). Distinct from the list-summary
4
- * `TaxAccountResponse` in ./taxAccount.ts.
3
+ * (TaxAccountResponse). One generic shape for every state; no state-specific
4
+ * sub-fields — a saved account is scoped to State + ReasonForPayment. Address
5
+ * fields aren't part of the redesigned Tax Accounts UI and are optional.
5
6
  */
6
- export interface VirginiaTaxAccountRequest {
7
- virginiaTaxAccountId: string;
8
- virginiaWithholdingAccountingId: string;
9
- unemploymentTaxAccountId: string;
10
- virginiaDepartmentOfTaxationClientNumber: string;
11
- businessLocationCode: string;
12
- franchiseTaxAccount: string;
13
- transientOccupancyTaxAccountId?: string | null;
14
- certificateOfAuthorityNumber?: string | null;
15
- licensedProfessionalEmployerEntityNumber?: string | null;
16
- }
17
7
  export interface CreateTaxAccountRequest {
18
8
  entityId: number;
19
9
  state: string;
20
- city: string;
21
- zipCode: string;
22
- address1: string;
10
+ reasonForPayment: string;
11
+ stateAccountId: string;
12
+ accountId: string;
13
+ taxYear?: string | null;
14
+ frequency?: string | null;
15
+ notes?: string | null;
16
+ city?: string | null;
17
+ zipCode?: string | null;
18
+ address1?: string | null;
23
19
  address2?: string | null;
24
- virginia?: VirginiaTaxAccountRequest | null;
25
20
  }
26
21
  export interface UpdateTaxAccountRequest {
27
22
  state?: string;
28
- city?: string;
29
- zipCode?: string;
30
- address1?: string;
23
+ reasonForPayment?: string;
24
+ stateAccountId?: string;
25
+ accountId?: string;
26
+ taxYear?: string | null;
27
+ frequency?: string | null;
28
+ notes?: string | null;
29
+ city?: string | null;
30
+ zipCode?: string | null;
31
+ address1?: string | null;
31
32
  address2?: string | null;
32
33
  status?: string;
33
- virginia?: VirginiaTaxAccountRequest | null;
34
- }
35
- export interface VirginiaTaxAccountDetailResponse extends VirginiaTaxAccountRequest {
36
- virginiaTaxAccountDetailId: number;
37
34
  }
38
35
  export interface TaxAccountDetailResponse {
39
36
  taxAccountDetailId: number;
40
37
  entityId: number;
41
38
  state: string;
42
- city: string;
43
- zipCode: string;
44
- address1: string;
39
+ reasonForPayment: string;
40
+ stateAccountId: string;
41
+ accountId: string;
42
+ taxYear: string | null;
43
+ frequency: string | null;
44
+ notes: string | null;
45
+ city: string | null;
46
+ zipCode: string | null;
47
+ address1: string | null;
45
48
  address2: string | null;
46
- status: string | null;
49
+ status: string;
47
50
  createdAt: string;
48
51
  updatedAt: string;
49
- virginia: VirginiaTaxAccountDetailResponse | null;
50
52
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npm-zenwork/tax-remittance-ui",
3
- "version": "0.2.4",
3
+ "version": "0.2.6",
4
4
  "description": "Embeddable Tax Remittance portal — React component library",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -1,7 +0,0 @@
1
- import { GovPayTransaction } from '../types/paymentHistory';
2
- import { PagedResult } from '../types/pagination';
3
- export interface GetPaymentTransactionsQuery {
4
- pageNumber?: number;
5
- pageSize?: number;
6
- }
7
- export declare function getPaymentTransactions({ pageNumber, pageSize, }?: GetPaymentTransactionsQuery): Promise<PagedResult<GovPayTransaction>>;
@@ -1,9 +0,0 @@
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 {};
@@ -1,8 +0,0 @@
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 {};
@@ -1,8 +0,0 @@
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 {};
@@ -1,21 +0,0 @@
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 {};
@@ -1,13 +0,0 @@
1
- import { PaymentActionType } from './paymentsTableConfig';
2
- interface PaymentRowActionsProps {
3
- actionType: PaymentActionType;
4
- onView?: () => void;
5
- onViewPdf?: () => void;
6
- onEdit?: () => void;
7
- onSubmit?: () => void;
8
- isSubmitting?: boolean;
9
- isViewPdfLoading?: boolean;
10
- }
11
- /** Row actions per tab — used when payment list API is wired. */
12
- export declare function PaymentRowActions({ actionType, onView, onViewPdf, onEdit, onSubmit, isSubmitting, isViewPdfLoading, }: PaymentRowActionsProps): import("react").JSX.Element;
13
- export {};
@@ -1,7 +0,0 @@
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 {};
@@ -1,8 +0,0 @@
1
- interface AddBankAccountModalProps {
2
- open: boolean;
3
- entityId: number | null;
4
- onClose: () => void;
5
- onAccountAdded?: (bankAccountDetailId: number) => void;
6
- }
7
- export declare function AddBankAccountModal({ open, entityId, onClose, onAccountAdded, }: AddBankAccountModalProps): import("react").JSX.Element | null;
8
- export {};
@@ -1,32 +0,0 @@
1
- import { z } from 'zod';
2
- import { TaxAccountDetailResponse } from '../../types/taxAccountDetails';
3
- declare const taxAccountSchema: z.ZodObject<{
4
- state: z.ZodString;
5
- city: z.ZodString;
6
- zipCode: z.ZodString;
7
- address1: z.ZodString;
8
- address2: z.ZodOptional<z.ZodString>;
9
- virginiaTaxAccountId: z.ZodOptional<z.ZodString>;
10
- virginiaWithholdingAccountingId: z.ZodOptional<z.ZodString>;
11
- unemploymentTaxAccountId: z.ZodOptional<z.ZodString>;
12
- virginiaDepartmentOfTaxationClientNumber: z.ZodOptional<z.ZodString>;
13
- businessLocationCode: z.ZodOptional<z.ZodString>;
14
- franchiseTaxAccount: z.ZodOptional<z.ZodString>;
15
- transientOccupancyTaxAccountId: z.ZodOptional<z.ZodString>;
16
- certificateOfAuthorityNumber: z.ZodOptional<z.ZodString>;
17
- licensedProfessionalEmployerEntityNumber: z.ZodOptional<z.ZodString>;
18
- }, z.core.$strip>;
19
- export type TaxAccountFormValues = z.infer<typeof taxAccountSchema>;
20
- interface AddTaxAccountFormProps {
21
- entityId: number;
22
- /** When set, the form edits this tax account (PATCH) instead of creating one. */
23
- taxAccountDetailId?: number;
24
- initialValues?: TaxAccountFormValues;
25
- onCancel: () => void;
26
- onSuccess?: () => void;
27
- }
28
- export declare const emptyTaxAccountValues: TaxAccountFormValues;
29
- /** Maps a fetched tax account into form values for editing. */
30
- export declare function toTaxAccountFormValues(account: TaxAccountDetailResponse): TaxAccountFormValues;
31
- export declare function AddTaxAccountForm({ entityId, taxAccountDetailId, initialValues, onCancel, onSuccess, }: AddTaxAccountFormProps): import("react").JSX.Element;
32
- export {};
@@ -1,8 +0,0 @@
1
- import { BankAccountResponse } from '../../types/bankAccount';
2
- interface EditBankAccountModalProps {
3
- open: boolean;
4
- account: BankAccountResponse | null;
5
- onClose: () => void;
6
- }
7
- export declare function EditBankAccountModal({ open, account, onClose }: EditBankAccountModalProps): import('react').ReactPortal | null;
8
- export {};
@@ -1,8 +0,0 @@
1
- import { EntityDetailsResponse } from '../../types/entity';
2
- interface EditEntityModalProps {
3
- open: boolean;
4
- entity: EntityDetailsResponse;
5
- onClose: () => void;
6
- }
7
- export declare function EditEntityModal({ open, entity, onClose }: EditEntityModalProps): import('react').ReactPortal | null;
8
- export {};
@@ -1,5 +0,0 @@
1
- interface PaymentHistorySectionProps {
2
- entityId: number | null;
3
- }
4
- export declare function PaymentHistorySection({ entityId }: PaymentHistorySectionProps): import("react").JSX.Element;
5
- export {};
@@ -1,6 +0,0 @@
1
- import { SettingsSectionId } from './settingsNavConfig';
2
- interface SettingsPlaceholderSectionProps {
3
- sectionId: Exclude<SettingsSectionId, 'bank-accounts'>;
4
- }
5
- export declare function SettingsPlaceholderSection({ sectionId }: SettingsPlaceholderSectionProps): import("react").JSX.Element;
6
- export {};
@@ -1,18 +0,0 @@
1
- export declare const virginiaCities: readonly ["Alexandria", "Arlington", "Chesapeake", "Hampton", "Lynchburg", "Newport News", "Norfolk", "Richmond", "Roanoke", "Virginia Beach"];
2
- export type TaxAccountFieldName = 'virginiaTaxAccountId' | 'virginiaWithholdingAccountingId' | 'unemploymentTaxAccountId' | 'virginiaDepartmentOfTaxationClientNumber' | 'businessLocationCode' | 'franchiseTaxAccount' | 'transientOccupancyTaxAccountId' | 'certificateOfAuthorityNumber' | 'licensedProfessionalEmployerEntityNumber';
3
- export interface TaxAccountFieldDef {
4
- name: TaxAccountFieldName;
5
- label: string;
6
- required: boolean;
7
- placeholder?: string;
8
- }
9
- export interface TaxAccountFieldGroup {
10
- title: string;
11
- fields: TaxAccountFieldDef[];
12
- }
13
- /**
14
- * State-specific field sections, keyed by state code. A state with no entry
15
- * here has no state-specific card rendered — supporting a new state is adding
16
- * a key here, never a change to the form's rendering components.
17
- */
18
- export declare const STATE_TAX_FIELD_GROUPS: Partial<Record<string, TaxAccountFieldGroup[]>>;
@@ -1,8 +0,0 @@
1
- import { TaxFormResponse } from '../../types/taxForm';
2
- interface TaxFormsTableProps {
3
- forms?: TaxFormResponse[];
4
- isLoading?: boolean;
5
- isError?: boolean;
6
- }
7
- export declare function TaxFormsTable({ forms, isLoading, isError }: TaxFormsTableProps): import("react").JSX.Element;
8
- export {};
@@ -1 +0,0 @@
1
- export declare function AddTaxAccountPage(): import("react").JSX.Element;
@@ -1,5 +0,0 @@
1
- interface StatePaymentEditorPageProps {
2
- mode: 'edit' | 'view';
3
- }
4
- export declare function StatePaymentEditorPage({ mode }: StatePaymentEditorPageProps): import("react").JSX.Element;
5
- export {};
@@ -1,26 +0,0 @@
1
- export type PaymentHistoryType = 'Federal' | 'State' | 'Local';
2
- export interface PaymentHistoryResponse {
3
- paymentHistoryId: number;
4
- entityId: number;
5
- date: string;
6
- amount: number;
7
- jurisdiction: string;
8
- type: PaymentHistoryType;
9
- accountName: string;
10
- reference: string;
11
- }
12
- /** Raw shape returned by GET /portal/payments/transactions */
13
- export interface GovPayTransaction {
14
- govPayTransactionId: number;
15
- paymentType: 'federal' | 'state';
16
- paymentId: number;
17
- stripePaymentIntentId: string;
18
- amount: number;
19
- currency: string;
20
- cardLast4: string | null;
21
- cardBrand: string | null;
22
- cardholderName: string | null;
23
- status: string;
24
- createdAt: string;
25
- }
26
- export declare function mapGovPayTransaction(t: GovPayTransaction): PaymentHistoryResponse;
@@ -1,9 +0,0 @@
1
- export interface TaxAccountResponse {
2
- taxAccountId: number;
3
- entityId: number;
4
- accountName: string;
5
- federalStateId: string;
6
- paymentCount: number;
7
- formTypes: string[];
8
- status: string | null;
9
- }