@npm-zenwork/tax-remittance-ui 0.4.0 → 0.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +6 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +2445 -2435
- package/dist/index.mjs.map +1 -1
- package/dist/lib/fieldRules.d.ts +0 -18
- package/dist/types/statePayment.d.ts +2 -0
- package/dist/types/statePaymentFlow.d.ts +1 -0
- package/package.json +2 -2
package/dist/lib/fieldRules.d.ts
CHANGED
|
@@ -1,21 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Single source of truth for the person/taxpayer fields collected on more than
|
|
3
|
-
* one screen — taxpayer id (SSN / EIN / TIN), phone, email and names.
|
|
4
|
-
*
|
|
5
|
-
* The same value is asked for under a dozen different names across the apps
|
|
6
|
-
* (`idNumber`, `ein`, `ssn`, `secondarySsn`, `primarySsn`, `jointFilerSsn`,
|
|
7
|
-
* `financialPrimarySsn`, `secondaryTin`, …). Formatting and validation for all
|
|
8
|
-
* of them live here, so a rule change lands in one place and reaches every
|
|
9
|
-
* form that collects the field.
|
|
10
|
-
*
|
|
11
|
-
* Two ways in, one implementation behind both:
|
|
12
|
-
* - plain-state forms call the `validate*` helpers directly;
|
|
13
|
-
* - react-hook-form schemas use the zod wrappers in `fieldSchemas.ts`,
|
|
14
|
-
* which delegate to these same functions.
|
|
15
|
-
*
|
|
16
|
-
* Deliberately free of zod and React so the portals can import it straight
|
|
17
|
-
* from the published package without taking on those dependencies.
|
|
18
|
-
*/
|
|
19
1
|
/** Strip everything that is not a digit. */
|
|
20
2
|
export declare function digitsOnly(value: string): string;
|
|
21
3
|
/** SSN, EIN and TIN are all 9 digits — the display shape differs, the length does not. */
|
|
@@ -27,6 +27,7 @@ export interface CreateStatePaymentRequest {
|
|
|
27
27
|
frequency?: string | null;
|
|
28
28
|
recurringEndDate?: string | null;
|
|
29
29
|
formName?: string | null;
|
|
30
|
+
depositFrequency?: string | null;
|
|
30
31
|
occurrences?: StatePaymentOccurrenceRequest[];
|
|
31
32
|
}
|
|
32
33
|
export interface UpdateStatePaymentRequest {
|
|
@@ -42,6 +43,7 @@ export interface UpdateStatePaymentRequest {
|
|
|
42
43
|
paymentDate: string;
|
|
43
44
|
bankAccountDetailId: number;
|
|
44
45
|
formName?: string | null;
|
|
46
|
+
depositFrequency?: string | null;
|
|
45
47
|
}
|
|
46
48
|
export interface StatePaymentResponse {
|
|
47
49
|
statePaymentDetailId: number;
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@npm-zenwork/tax-remittance-ui",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.2",
|
|
4
4
|
"description": "Embeddable Tax Remittance portal — React component library",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
7
7
|
"module": "./dist/index.mjs",
|
|
8
8
|
"types": "./dist/index.d.ts",
|
|
9
|
-
"exports": {
|
|
9
|
+
"exports": {
|
|
10
10
|
".": {
|
|
11
11
|
"import": {
|
|
12
12
|
"types": "./dist/index.d.ts",
|