@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.
- package/README.md +32 -0
- package/dist/api/auth.d.ts +3 -0
- package/dist/api/bankAccounts.d.ts +4 -0
- package/dist/api/client.d.ts +7 -0
- package/dist/api/dashboard.d.ts +5 -0
- package/dist/api/entities.d.ts +10 -0
- package/dist/api/federalPayments.d.ts +8 -0
- package/dist/api/form8655Authorization.d.ts +5 -0
- package/dist/api/form9783Enrollment.d.ts +5 -0
- package/dist/api/statePayments.d.ts +5 -0
- package/dist/components/dashboard/DashboardActionBar.d.ts +5 -0
- package/dist/components/dashboard/DashboardSectionLoader.d.ts +5 -0
- package/dist/components/dashboard/EmptyPaymentCard.d.ts +9 -0
- package/dist/components/dashboard/MonthlyOverviewSection.d.ts +8 -0
- package/dist/components/dashboard/MyPaymentsTable.d.ts +8 -0
- package/dist/components/dashboard/PaymentSummaryCard.d.ts +21 -0
- package/dist/components/dashboard/dashboardMappers.d.ts +12 -0
- package/dist/components/dashboard/dashboardUtils.d.ts +31 -0
- package/dist/components/entities/entityListUtils.d.ts +7 -0
- package/dist/components/forms/FormField.d.ts +28 -0
- package/dist/components/icons/payment-tabs/DraftTabIcon.d.ts +2 -0
- package/dist/components/icons/payment-tabs/PaidTabIcon.d.ts +2 -0
- package/dist/components/icons/payment-tabs/RejectedTabIcon.d.ts +2 -0
- package/dist/components/icons/payment-tabs/ScheduledTabIcon.d.ts +2 -0
- package/dist/components/icons/payment-tabs/SubmittedTabIcon.d.ts +2 -0
- package/dist/components/icons/payment-tabs/index.d.ts +5 -0
- package/dist/components/onboarding/CreateEntityCard.d.ts +5 -0
- package/dist/components/onboarding/EntityForm.d.ts +1 -0
- package/dist/components/payments/AddFederalPaymentForm.d.ts +10 -0
- package/dist/components/payments/AddStatePaymentForm.d.ts +6 -0
- package/dist/components/payments/BankAccountSelect.d.ts +14 -0
- package/dist/components/payments/EftpsIndividualEnrollmentForm.d.ts +11 -0
- package/dist/components/payments/EntityDetailsCard.d.ts +8 -0
- package/dist/components/payments/PaymentField.d.ts +23 -0
- package/dist/components/payments/PaymentFormSection.d.ts +8 -0
- package/dist/components/payments/PaymentRowActions.d.ts +11 -0
- package/dist/components/payments/ReportingAgentAuthorizationForm.d.ts +11 -0
- package/dist/components/payments/SettlementDatePicker.d.ts +8 -0
- package/dist/components/payments/SignatureFieldGroup.d.ts +17 -0
- package/dist/components/payments/StatePaymentAuthorizationForm.d.ts +8 -0
- package/dist/components/payments/TaxPeriodMonthPicker.d.ts +9 -0
- package/dist/components/payments/eftpsIndividualEnrollmentConfig.d.ts +3 -0
- package/dist/components/payments/federalPaymentUtils.d.ts +7 -0
- package/dist/components/payments/federalSubcategoryRules.d.ts +32 -0
- package/dist/components/payments/federalTaxPeriodRules.d.ts +11 -0
- package/dist/components/payments/paymentsTableConfig.d.ts +15 -0
- package/dist/components/payments/remittancePaymentMappers.d.ts +19 -0
- package/dist/components/payments/reportingAgentAuthorizationConfig.d.ts +3 -0
- package/dist/components/payments/settlementDateRules.d.ts +12 -0
- package/dist/components/payments/statePaymentAuthorizationConfig.d.ts +2 -0
- package/dist/components/payments/statePaymentConfig.d.ts +20 -0
- package/dist/components/settings/AddBankAccountManualForm.d.ts +7 -0
- package/dist/components/settings/AddBankAccountModal.d.ts +8 -0
- package/dist/components/settings/BankAccountsSection.d.ts +5 -0
- package/dist/components/settings/PaymentHistorySection.d.ts +9 -0
- package/dist/components/settings/SettingsNav.d.ts +8 -0
- package/dist/components/settings/SettingsPlaceholderSection.d.ts +6 -0
- package/dist/components/settings/SettingsSectionHeader.d.ts +9 -0
- package/dist/components/settings/TaxAccountsSection.d.ts +9 -0
- package/dist/components/settings/settingsNavConfig.d.ts +9 -0
- package/dist/components/tax-forms/TaxFormsTable.d.ts +8 -0
- package/dist/components/ui/Alert.d.ts +7 -0
- package/dist/components/ui/Button.d.ts +8 -0
- package/dist/components/ui/Input.d.ts +7 -0
- package/dist/config.d.ts +22 -0
- package/dist/embedded/EmbeddedAuthContext.d.ts +27 -0
- package/dist/embedded/EmbeddedContext.d.ts +16 -0
- package/dist/embedded/EmbeddedLayout.d.ts +18 -0
- package/dist/embedded/EmbeddedRoutes.d.ts +10 -0
- package/dist/embedded/EmbeddedWidgetBase.d.ts +28 -0
- package/dist/embedded/EntityGate.d.ts +10 -0
- package/dist/embedded/TaxRemittanceEmbedded.d.ts +60 -0
- package/dist/embedded/ThemeProvider.d.ts +47 -0
- package/dist/embedded/pages/EmbeddedCreateEntityPage.d.ts +7 -0
- package/dist/embedded/pages/EmbeddedDashboardPage.d.ts +6 -0
- package/dist/embedded/pages/EmbeddedEntityFormPage.d.ts +9 -0
- package/dist/embedded/widgets/FederalPaymentWidget.d.ts +22 -0
- package/dist/embedded/widgets/StatePaymentWidget.d.ts +22 -0
- package/dist/index.cjs +76 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.mjs +14189 -0
- package/dist/index.mjs.map +1 -0
- package/dist/lib/admin-storage.d.ts +4 -0
- package/dist/lib/auth-events.d.ts +2 -0
- package/dist/lib/auth-storage.d.ts +6 -0
- package/dist/lib/entityAccountType.d.ts +3 -0
- package/dist/lib/errors.d.ts +1 -0
- package/dist/lib/initials.d.ts +7 -0
- package/dist/lib/navigation.d.ts +4 -0
- package/dist/lib/paymentStatus.d.ts +13 -0
- package/dist/lib/paymentsNavigation.d.ts +2 -0
- package/dist/lib/query-client.d.ts +2 -0
- package/dist/pages/AddFederalPaymentPage.d.ts +1 -0
- package/dist/pages/AddStatePaymentPage.d.ts +1 -0
- package/dist/pages/EditFederalPaymentPage.d.ts +2 -0
- package/dist/pages/EftpsIndividualEnrollmentPage.d.ts +1 -0
- package/dist/pages/FederalPaymentEditorPage.d.ts +5 -0
- package/dist/pages/PaymentsPage.d.ts +4 -0
- package/dist/pages/ReportingAgentAuthorizationPage.d.ts +1 -0
- package/dist/pages/SettingsPage.d.ts +1 -0
- package/dist/pages/StatePaymentAuthorizationPage.d.ts +1 -0
- package/dist/pages/TaxFormsPage.d.ts +1 -0
- package/dist/styles.css +1 -0
- package/dist/styles.css.d.ts +4 -0
- package/dist/types/api.d.ts +18 -0
- package/dist/types/apiClient.d.ts +29 -0
- package/dist/types/auth.d.ts +28 -0
- package/dist/types/bankAccount.d.ts +11 -0
- package/dist/types/createBankAccount.d.ts +7 -0
- package/dist/types/dashboard.d.ts +50 -0
- package/dist/types/entity.d.ts +54 -0
- package/dist/types/federalPayment.d.ts +62 -0
- package/dist/types/federalPaymentFlow.d.ts +41 -0
- package/dist/types/form8655Authorization.d.ts +48 -0
- package/dist/types/form8655AuthorizationFlow.d.ts +25 -0
- package/dist/types/form9783Enrollment.d.ts +70 -0
- package/dist/types/form9783EnrollmentFlow.d.ts +32 -0
- package/dist/types/paymentHistory.d.ts +11 -0
- package/dist/types/statePayment.d.ts +32 -0
- package/dist/types/statePaymentFlow.d.ts +28 -0
- package/dist/types/taxAccount.d.ts +9 -0
- package/dist/types/taxForm.d.ts +11 -0
- package/package.json +61 -0
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { CreateForm9783EnrollmentRequest, Form9783EnrollmentResponse, UpdateForm9783EnrollmentRequest } from './form9783Enrollment';
|
|
2
|
+
export interface Form9783EnrollmentFormValues {
|
|
3
|
+
primarySsn: string;
|
|
4
|
+
jointFilerSsn?: string;
|
|
5
|
+
taxpayerNames: string;
|
|
6
|
+
primaryAddress: string;
|
|
7
|
+
city: string;
|
|
8
|
+
state: string;
|
|
9
|
+
zipCode: string;
|
|
10
|
+
country: string;
|
|
11
|
+
internationalAddress?: string;
|
|
12
|
+
primaryPhone: string;
|
|
13
|
+
primaryContactName: string;
|
|
14
|
+
primaryContactAddress: string;
|
|
15
|
+
contactCity: string;
|
|
16
|
+
financialPrimarySsn: string;
|
|
17
|
+
routingTransitNumber: string;
|
|
18
|
+
accountNumber: string;
|
|
19
|
+
accountType: 'Checking' | 'Savings';
|
|
20
|
+
disclosureAgreementOne: boolean;
|
|
21
|
+
disclosureAgreementTwo: boolean;
|
|
22
|
+
authorityAgreement: boolean;
|
|
23
|
+
taxpayerSignature: string;
|
|
24
|
+
taxpayerTitle: string;
|
|
25
|
+
taxpayerSignatureDate: string;
|
|
26
|
+
jointFilerSignature?: string;
|
|
27
|
+
jointFilerTitle?: string;
|
|
28
|
+
jointFilerSignatureDate?: string;
|
|
29
|
+
}
|
|
30
|
+
export declare function toCreateForm9783EnrollmentRequest(enrollmentId: number, values: Form9783EnrollmentFormValues): CreateForm9783EnrollmentRequest;
|
|
31
|
+
export declare function toUpdateForm9783EnrollmentRequest(values: Form9783EnrollmentFormValues): UpdateForm9783EnrollmentRequest;
|
|
32
|
+
export declare function toForm9783EnrollmentFormValues(enrollment: Form9783EnrollmentResponse): Form9783EnrollmentFormValues;
|
|
@@ -0,0 +1,11 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export interface CreateStatePaymentRequest {
|
|
2
|
+
entityId: number;
|
|
3
|
+
state: string;
|
|
4
|
+
reasonForPayment: string;
|
|
5
|
+
stateAccountId: string;
|
|
6
|
+
accountId: string;
|
|
7
|
+
taxPeriod: string;
|
|
8
|
+
taxAmount: number;
|
|
9
|
+
paymentDate: string;
|
|
10
|
+
bankAccountDetailId: number;
|
|
11
|
+
}
|
|
12
|
+
export interface UpdateStatePaymentRequest {
|
|
13
|
+
state: string;
|
|
14
|
+
reasonForPayment: string;
|
|
15
|
+
stateAccountId: string;
|
|
16
|
+
accountId: string;
|
|
17
|
+
taxPeriod: string;
|
|
18
|
+
taxAmount: number;
|
|
19
|
+
paymentDate: string;
|
|
20
|
+
bankAccountDetailId: number;
|
|
21
|
+
}
|
|
22
|
+
export interface StatePaymentResponse {
|
|
23
|
+
statePaymentDetailId: number;
|
|
24
|
+
entityId: number;
|
|
25
|
+
state: string;
|
|
26
|
+
taxPeriod: string;
|
|
27
|
+
taxAmount: number;
|
|
28
|
+
paymentDate: string;
|
|
29
|
+
status: string | null;
|
|
30
|
+
reason: string | null;
|
|
31
|
+
createdAt: string;
|
|
32
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { CreateStatePaymentRequest, UpdateStatePaymentRequest } from './statePayment';
|
|
2
|
+
export interface StatePaymentDraft {
|
|
3
|
+
statePaymentDetailId?: number;
|
|
4
|
+
state: string;
|
|
5
|
+
reasonForPayment: string;
|
|
6
|
+
stateAccountId: string;
|
|
7
|
+
accountId: string;
|
|
8
|
+
letterId?: string;
|
|
9
|
+
taxYear: string;
|
|
10
|
+
taxPeriod: string;
|
|
11
|
+
taxAmount: string;
|
|
12
|
+
paymentDate: string;
|
|
13
|
+
bankAccountDetailId: string;
|
|
14
|
+
routingNumber?: string;
|
|
15
|
+
accountType?: string;
|
|
16
|
+
bankName?: string;
|
|
17
|
+
}
|
|
18
|
+
export interface StatePaymentFlowState {
|
|
19
|
+
from?: string;
|
|
20
|
+
paymentDraft?: StatePaymentDraft;
|
|
21
|
+
}
|
|
22
|
+
export declare const STATE_PAYMENT_DRAFT_KEY = "state-payment-draft";
|
|
23
|
+
export declare function saveStatePaymentDraft(draft: StatePaymentDraft): void;
|
|
24
|
+
export declare function loadStatePaymentDraft(): StatePaymentDraft | null;
|
|
25
|
+
export declare function clearStatePaymentDraft(): void;
|
|
26
|
+
export declare function buildStateTaxPeriod(taxYear: string, taxPeriod: string): string;
|
|
27
|
+
export declare function toCreateStatePaymentRequest(entityId: number, draft: StatePaymentDraft): CreateStatePaymentRequest;
|
|
28
|
+
export declare function toUpdateStatePaymentRequest(draft: StatePaymentDraft): UpdateStatePaymentRequest;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export type TaxFormType = 'W-2' | '1099' | '941' | 'State' | string;
|
|
2
|
+
export type TaxFormStatus = 'Submitted to State' | 'Submitted to Fed' | 'IRS Accepted' | 'IRS Rejected' | 'Pending' | string;
|
|
3
|
+
export interface TaxFormResponse {
|
|
4
|
+
taxFormId: number;
|
|
5
|
+
fileName: string;
|
|
6
|
+
type: TaxFormType;
|
|
7
|
+
client: string;
|
|
8
|
+
status: TaxFormStatus;
|
|
9
|
+
date: string;
|
|
10
|
+
canSubmit: boolean;
|
|
11
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@npm-zenwork/tax-remittance-ui",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Embeddable Tax Remittance portal — React component library",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/index.cjs",
|
|
7
|
+
"module": "./dist/index.mjs",
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"import": {
|
|
12
|
+
"types": "./dist/index.d.ts",
|
|
13
|
+
"default": "./dist/index.mjs"
|
|
14
|
+
},
|
|
15
|
+
"require": {
|
|
16
|
+
"types": "./dist/index.d.cts",
|
|
17
|
+
"default": "./dist/index.cjs"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"./css": {
|
|
21
|
+
"types": "./dist/styles.css.d.ts",
|
|
22
|
+
"default": "./dist/styles.css"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"files": [
|
|
26
|
+
"dist",
|
|
27
|
+
"README.md",
|
|
28
|
+
"LICENSE"
|
|
29
|
+
],
|
|
30
|
+
"scripts": {
|
|
31
|
+
"build:lib": "tsc -b && vite build --config vite.sdk.config.ts",
|
|
32
|
+
"build:umd": "vite build --config vite.sdk.config.ts --mode umd",
|
|
33
|
+
"prepublishOnly": "npm run build:lib",
|
|
34
|
+
"lint": "oxlint"
|
|
35
|
+
},
|
|
36
|
+
"peerDependencies": {
|
|
37
|
+
"react": ">=18",
|
|
38
|
+
"react-dom": ">=18"
|
|
39
|
+
},
|
|
40
|
+
"dependencies": {
|
|
41
|
+
"@hookform/resolvers": "^5.4.0",
|
|
42
|
+
"@tanstack/react-query": "^5.101.2",
|
|
43
|
+
"react-hook-form": "^7.81.0",
|
|
44
|
+
"react-router-dom": "^7.18.1",
|
|
45
|
+
"zod": "^4.4.3"
|
|
46
|
+
},
|
|
47
|
+
"devDependencies": {
|
|
48
|
+
"@tailwindcss/vite": "^4.3.2",
|
|
49
|
+
"@types/node": "^24.13.2",
|
|
50
|
+
"@types/react": "^19.2.17",
|
|
51
|
+
"@types/react-dom": "^19.2.3",
|
|
52
|
+
"@vitejs/plugin-react": "^4.5.2",
|
|
53
|
+
"oxlint": "^1.71.0",
|
|
54
|
+
"react": "^19.2.7",
|
|
55
|
+
"react-dom": "^19.2.7",
|
|
56
|
+
"tailwindcss": "^4.3.2",
|
|
57
|
+
"typescript": "~6.0.2",
|
|
58
|
+
"vite": "^6.3.5",
|
|
59
|
+
"vite-plugin-dts": "^5.0.3"
|
|
60
|
+
}
|
|
61
|
+
}
|