@verifiedinc-public/shared-ui-elements 12.29.0 → 13.0.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/dist/components/Banners/ResendPhoneBanner.mjs +1 -1
- package/dist/components/NetworkRules/editor/schema.d.ts +14 -110
- package/dist/components/NetworkRules/editor/schema.mjs +1 -1
- package/dist/components/form/AddressInput/autofill.hook.mjs +1 -1
- package/dist/components/form/AddressInput/hook.mjs +1 -1
- package/dist/components/form/NewOneClickForm/core/fields/address.d.ts +14 -36
- package/dist/components/form/NewOneClickForm/core/fields/birthDate.d.ts +1 -1
- package/dist/components/form/NewOneClickForm/core/fields/driversLicense.d.ts +32 -102
- package/dist/components/form/NewOneClickForm/core/fields/employer.d.ts +9 -101
- package/dist/components/form/NewOneClickForm/core/fields/fullName.d.ts +1 -9
- package/dist/components/form/NewOneClickForm/core/fields/healthInsurance.d.ts +4 -32
- package/dist/components/form/NewOneClickForm/core/fields/index.d.ts +66 -284
- package/dist/components/form/NewOneClickForm/core/fields/phone.d.ts +1 -1
- package/dist/components/form/NewOneClickForm/core/fields/sex.d.ts +3 -1
- package/dist/components/form/NewOneClickForm/core/fields/ssn.d.ts +1 -1
- package/dist/components/form/NewOneClickForm/core/form/formField.mjs +1 -1
- package/dist/components/form/NewOneClickForm/core/form/formFieldBuilder.mjs +1 -1
- package/dist/components/form/NewOneClickForm/core/validations/address/address.schema.d.ts +20 -87
- package/dist/components/form/NewOneClickForm/core/validations/address/address.schema.mjs +1 -1
- package/dist/components/form/NewOneClickForm/core/validations/address/city.schema.d.ts +1 -2
- package/dist/components/form/NewOneClickForm/core/validations/address/city.schema.mjs +1 -1
- package/dist/components/form/NewOneClickForm/core/validations/address/country.schema.d.ts +1 -2
- package/dist/components/form/NewOneClickForm/core/validations/address/country.schema.mjs +1 -1
- package/dist/components/form/NewOneClickForm/core/validations/address/line1.schema.d.ts +1 -2
- package/dist/components/form/NewOneClickForm/core/validations/address/line1.schema.mjs +1 -1
- package/dist/components/form/NewOneClickForm/core/validations/address/line2.schema.d.ts +1 -2
- package/dist/components/form/NewOneClickForm/core/validations/address/line2.schema.mjs +1 -1
- package/dist/components/form/NewOneClickForm/core/validations/address/state.schema.d.ts +3 -1
- package/dist/components/form/NewOneClickForm/core/validations/address/zipcode.schema.d.ts +1 -2
- package/dist/components/form/NewOneClickForm/core/validations/address/zipcode.schema.mjs +1 -1
- package/dist/components/form/NewOneClickForm/core/validations/driversLicense/driversLicense.schema.d.ts +17 -68
- package/dist/components/form/NewOneClickForm/core/validations/driversLicense/driversLicense.schema.mjs +1 -1
- package/dist/components/form/NewOneClickForm/core/validations/employer/employer.schema.d.ts +9 -101
- package/dist/components/form/NewOneClickForm/core/validations/employer/employer.schema.mjs +1 -1
- package/dist/components/form/NewOneClickForm/core/validations/employer/employerName.schema.d.ts +1 -2
- package/dist/components/form/NewOneClickForm/core/validations/employer/employerName.schema.mjs +1 -1
- package/dist/components/form/NewOneClickForm/core/validations/employer/legalName.schema.d.ts +1 -2
- package/dist/components/form/NewOneClickForm/core/validations/employer/legalName.schema.mjs +1 -1
- package/dist/components/form/NewOneClickForm/core/validations/healthInsurance/healthInsurance.schema.d.ts +3 -27
- package/dist/components/form/NewOneClickForm/core/validations/healthInsurance/healthInsurance.schema.mjs +1 -1
- package/dist/components/form/NewOneClickForm/core/validations/healthInsurance/memberId.schema.d.ts +1 -2
- package/dist/components/form/NewOneClickForm/core/validations/healthInsurance/memberId.schema.mjs +1 -1
- package/dist/components/form/NewOneClickForm/core/validations/healthInsurance/payerName.schema.d.ts +1 -2
- package/dist/components/form/NewOneClickForm/core/validations/healthInsurance/payerName.schema.mjs +1 -1
- package/dist/components/form/NewOneClickForm/core/validations/name/first.schema.d.ts +1 -2
- package/dist/components/form/NewOneClickForm/core/validations/name/first.schema.mjs +1 -1
- package/dist/components/form/NewOneClickForm/core/validations/name/fullName.schema.d.ts +5 -14
- package/dist/components/form/NewOneClickForm/core/validations/name/fullName.schema.mjs +1 -1
- package/dist/components/form/NewOneClickForm/core/validations/name/last.schema.d.ts +1 -2
- package/dist/components/form/NewOneClickForm/core/validations/name/last.schema.mjs +1 -1
- package/dist/components/form/NewOneClickForm/core/validations/name/middle.schema.d.ts +1 -2
- package/dist/components/form/NewOneClickForm/core/validations/name/middle.schema.mjs +1 -1
- package/dist/components/form/NewOneClickForm/core/validations/other/birthDate.schema.d.ts +1 -1
- package/dist/components/form/NewOneClickForm/core/validations/other/date.schema.d.ts +1 -1
- package/dist/components/form/NewOneClickForm/core/validations/other/documentNumber.schema.d.ts +1 -2
- package/dist/components/form/NewOneClickForm/core/validations/other/documentNumber.schema.mjs +1 -1
- package/dist/components/form/NewOneClickForm/core/validations/other/phone.schema.d.ts +1 -1
- package/dist/components/form/NewOneClickForm/core/validations/other/sex.schema.d.ts +3 -1
- package/dist/components/form/NewOneClickForm/core/validations/other/sex.schema.mjs +1 -1
- package/dist/components/form/NewOneClickForm/core/validations/other/ssn.schema.d.ts +1 -2
- package/dist/components/form/NewOneClickForm/core/validations/other/ssn.schema.mjs +1 -1
- package/dist/components/form/NewOneClickForm/react/core/field.hook.mjs +1 -1
- package/dist/components/form/NewOneClickForm/react/ui/fields/shared.d.ts +4 -4
- package/dist/hooks/useQRCode.mjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.mjs +1 -1
- package/dist/utils/zod/index.d.ts +22 -0
- package/dist/utils/zod/index.mjs +1 -0
- package/dist/validations/address.schema.d.ts +3 -1
- package/dist/validations/date.schema.d.ts +4 -4
- package/dist/validations/date.schema.mjs +1 -1
- package/dist/validations/description.schema.d.ts +1 -2
- package/dist/validations/description.schema.mjs +1 -1
- package/dist/validations/email.schema.d.ts +2 -2
- package/dist/validations/email.schema.mjs +1 -1
- package/dist/validations/field.schema.d.ts +1 -2
- package/dist/validations/field.schema.mjs +1 -1
- package/dist/validations/npi.schema.d.ts +1 -2
- package/dist/validations/npi.schema.mjs +1 -1
- package/dist/validations/phone.schema.d.ts +1 -2
- package/dist/validations/phone.schema.mjs +1 -1
- package/dist/validations/ssn.schema.d.ts +2 -3
- package/dist/validations/ssn.schema.mjs +1 -1
- package/dist/validations/unix.schema.d.ts +1 -2
- package/dist/validations/unix.schema.mjs +1 -1
- package/package.json +14 -19
|
@@ -1,87 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
country?: string | undefined;
|
|
22
|
-
zipCode?: string | undefined;
|
|
23
|
-
}>, {
|
|
24
|
-
line1?: string | undefined;
|
|
25
|
-
line2?: string | undefined;
|
|
26
|
-
city?: string | undefined;
|
|
27
|
-
state?: string | undefined;
|
|
28
|
-
country?: "US" | undefined;
|
|
29
|
-
zipCode?: string | undefined;
|
|
30
|
-
}, {
|
|
31
|
-
line1?: string | undefined;
|
|
32
|
-
line2?: string | undefined;
|
|
33
|
-
city?: string | undefined;
|
|
34
|
-
state?: string | undefined;
|
|
35
|
-
country?: string | undefined;
|
|
36
|
-
zipCode?: string | undefined;
|
|
37
|
-
}>;
|
|
38
|
-
export declare const requiredAddressSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
39
|
-
line1: z.ZodOptional<z.ZodString>;
|
|
40
|
-
line2: z.ZodOptional<z.ZodString>;
|
|
41
|
-
city: z.ZodOptional<z.ZodString>;
|
|
42
|
-
state: z.ZodOptional<z.ZodEnum<[string, ...string[]]>>;
|
|
43
|
-
country: z.ZodOptional<z.ZodEffects<z.ZodString, "US", string>>;
|
|
44
|
-
zipCode: z.ZodOptional<z.ZodString>;
|
|
45
|
-
}, "strip", z.ZodTypeAny, {
|
|
46
|
-
line1?: string | undefined;
|
|
47
|
-
line2?: string | undefined;
|
|
48
|
-
city?: string | undefined;
|
|
49
|
-
state?: string | undefined;
|
|
50
|
-
country?: "US" | undefined;
|
|
51
|
-
zipCode?: string | undefined;
|
|
52
|
-
}, {
|
|
53
|
-
line1?: string | undefined;
|
|
54
|
-
line2?: string | undefined;
|
|
55
|
-
city?: string | undefined;
|
|
56
|
-
state?: string | undefined;
|
|
57
|
-
country?: string | undefined;
|
|
58
|
-
zipCode?: string | undefined;
|
|
59
|
-
}>, {
|
|
60
|
-
line1?: string | undefined;
|
|
61
|
-
line2?: string | undefined;
|
|
62
|
-
city?: string | undefined;
|
|
63
|
-
state?: string | undefined;
|
|
64
|
-
country?: "US" | undefined;
|
|
65
|
-
zipCode?: string | undefined;
|
|
66
|
-
}, {
|
|
67
|
-
line1?: string | undefined;
|
|
68
|
-
line2?: string | undefined;
|
|
69
|
-
city?: string | undefined;
|
|
70
|
-
state?: string | undefined;
|
|
71
|
-
country?: string | undefined;
|
|
72
|
-
zipCode?: string | undefined;
|
|
73
|
-
}>, {
|
|
74
|
-
line1?: string | undefined;
|
|
75
|
-
line2?: string | undefined;
|
|
76
|
-
city?: string | undefined;
|
|
77
|
-
state?: string | undefined;
|
|
78
|
-
country?: "US" | undefined;
|
|
79
|
-
zipCode?: string | undefined;
|
|
80
|
-
}, {
|
|
81
|
-
line1?: string | undefined;
|
|
82
|
-
line2?: string | undefined;
|
|
83
|
-
city?: string | undefined;
|
|
84
|
-
state?: string | undefined;
|
|
85
|
-
country?: string | undefined;
|
|
86
|
-
zipCode?: string | undefined;
|
|
87
|
-
}>;
|
|
1
|
+
export declare const addressSchema: import('zod').ZodObject<{
|
|
2
|
+
line1: import('zod').ZodOptional<import('zod').ZodString>;
|
|
3
|
+
line2: import('zod').ZodOptional<import('zod').ZodString>;
|
|
4
|
+
city: import('zod').ZodOptional<import('zod').ZodString>;
|
|
5
|
+
state: import('zod').ZodOptional<import('zod').ZodEnum<{
|
|
6
|
+
[x: string]: string;
|
|
7
|
+
}>>;
|
|
8
|
+
country: import('zod').ZodOptional<import('zod').ZodString & import('zod').ZodType<"US", string, import('zod/v4/core').$ZodTypeInternals<"US", string>>>;
|
|
9
|
+
zipCode: import('zod').ZodOptional<import('zod').ZodString>;
|
|
10
|
+
}, import('zod/v4/core').$strip>;
|
|
11
|
+
export declare const requiredAddressSchema: import('zod').ZodObject<{
|
|
12
|
+
line1: import('zod').ZodOptional<import('zod').ZodString>;
|
|
13
|
+
line2: import('zod').ZodOptional<import('zod').ZodString>;
|
|
14
|
+
city: import('zod').ZodOptional<import('zod').ZodString>;
|
|
15
|
+
state: import('zod').ZodOptional<import('zod').ZodEnum<{
|
|
16
|
+
[x: string]: string;
|
|
17
|
+
}>>;
|
|
18
|
+
country: import('zod').ZodOptional<import('zod').ZodString & import('zod').ZodType<"US", string, import('zod/v4/core').$ZodTypeInternals<"US", string>>>;
|
|
19
|
+
zipCode: import('zod').ZodOptional<import('zod').ZodString>;
|
|
20
|
+
}, import('zod/v4/core').$strip>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";import{
|
|
1
|
+
"use strict";import{zod3Object as h}from"../../../../../../utils/zod/index.mjs";import{line1Schema as s,line1ValidationMessage as o}from"./line1.schema.mjs";import{line2Schema as O}from"./line2.schema.mjs";import{citySchema as c,cityValidationMessage as r}from"./city.schema.mjs";import{stateSchema as p,stateValidationMessage as i}from"./state.schema.mjs";import{countrySchema as l,countryValidationMessage as n}from"./country.schema.mjs";import{zipCodeSchema as y,zipCodeValidationMessage as d}from"./zipcode.schema.mjs";const m=h({line1:s.optional(),line2:O.optional(),city:c.optional(),state:p.optional(),country:l.optional(),zipCode:y.optional()}).superRefine((e,t)=>{Object.values(e).every(a=>!a)||(Object.prototype.hasOwnProperty.call(e,"line1")||Object.prototype.hasOwnProperty.call(e,"line2")||Object.prototype.hasOwnProperty.call(e,"city")||Object.prototype.hasOwnProperty.call(e,"state")||Object.prototype.hasOwnProperty.call(e,"country")||Object.prototype.hasOwnProperty.call(e,"zipCode"))&&(Object.prototype.hasOwnProperty.call(e,"line1")&&(!e.line1||e.line1.trim()==="")&&(s.safeParse(e.line1).success||t.addIssue({code:"custom",path:["line1"],message:o})),Object.prototype.hasOwnProperty.call(e,"city")&&(!e.city||e.city.trim()==="")&&(c.safeParse(e.city).success||t.addIssue({code:"custom",path:["city"],message:r})),Object.prototype.hasOwnProperty.call(e,"state")&&(p.safeParse(e.state).success||t.addIssue({code:"custom",path:["state"],message:i})),Object.prototype.hasOwnProperty.call(e,"country")&&(l.safeParse(e.country).success||t.addIssue({code:"custom",path:["country"],message:n})),Object.prototype.hasOwnProperty.call(e,"zipCode")&&(y.safeParse(e.zipCode).success||t.addIssue({code:"custom",path:["zipCode"],message:d})))}),f=[["line1",o],["city",r],["state",i],["zipCode",d],["country",n]],P=m.superRefine((e,t)=>{f.forEach(([a,u])=>{e[a]||t.addIssue({code:"custom",path:[a],message:u})})});export{m as addressSchema,P as requiredAddressSchema};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
1
|
export declare const cityValidationMessage = "City is required";
|
|
3
2
|
/**
|
|
4
3
|
* Validation schema for city
|
|
5
4
|
* Basic string validation for city name
|
|
6
5
|
*/
|
|
7
|
-
export declare const citySchema:
|
|
6
|
+
export declare const citySchema: import('zod').ZodString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";import{
|
|
1
|
+
"use strict";import{zod3String as t}from"../../../../../../utils/zod/index.mjs";const i="City is required",a=t().min(1,i);export{a as citySchema,i as cityValidationMessage};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
1
|
export declare const countryValidationMessage = "Country must be US";
|
|
3
2
|
/**
|
|
4
3
|
* Validation schema for country
|
|
5
4
|
* Currently only supports US
|
|
6
5
|
*/
|
|
7
|
-
export declare const countrySchema:
|
|
6
|
+
export declare const countrySchema: import('zod').ZodString & import('zod').ZodType<"US", string, import('zod/v4/core').$ZodTypeInternals<"US", string>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";import{
|
|
1
|
+
"use strict";import{zod3String as e}from"../../../../../../utils/zod/index.mjs";const t="Country must be US",n=e().refine(o=>o==="US",t);export{n as countrySchema,t as countryValidationMessage};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
1
|
export declare const line1ValidationMessage = "Line 1 is required";
|
|
3
2
|
/**
|
|
4
3
|
* Validation schema for address line 1
|
|
5
4
|
* Basic string validation for street address
|
|
6
5
|
*/
|
|
7
|
-
export declare const line1Schema:
|
|
6
|
+
export declare const line1Schema: import('zod').ZodString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";import{
|
|
1
|
+
"use strict";import{zod3String as e}from"../../../../../../utils/zod/index.mjs";const i="Line 1 is required",a=e().min(1,i);export{a as line1Schema,i as line1ValidationMessage};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";import{
|
|
1
|
+
"use strict";import{zod3String as o}from"../../../../../../utils/zod/index.mjs";const t=o();export{t as line2Schema};
|
|
@@ -4,4 +4,6 @@ export declare const stateValidationMessage = "Invalid state";
|
|
|
4
4
|
* Validation schema for US state
|
|
5
5
|
* Validates against US state codes
|
|
6
6
|
*/
|
|
7
|
-
export declare const stateSchema: z.ZodEnum<
|
|
7
|
+
export declare const stateSchema: z.ZodEnum<{
|
|
8
|
+
[x: string]: string;
|
|
9
|
+
}>;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
1
|
export declare const zipCodeValidationMessage = "Invalid zip code";
|
|
3
2
|
/**
|
|
4
3
|
* Validation schema for US zip code
|
|
5
4
|
* Supports both 5-digit and 9-digit (with hyphen) formats
|
|
6
5
|
*/
|
|
7
|
-
export declare const zipCodeSchema:
|
|
6
|
+
export declare const zipCodeSchema: import('zod').ZodString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";import{
|
|
1
|
+
"use strict";import{zod3String as o}from"../../../../../../utils/zod/index.mjs";const e="Invalid zip code",i=o().regex(/^\d{5}(-\d{4})?$/,e);export{i as zipCodeSchema,e as zipCodeValidationMessage};
|
|
@@ -1,69 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
issuanceDate: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
6
|
-
expirationDate: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
7
|
-
address: z.ZodEffects<z.ZodObject<{
|
|
8
|
-
line1: z.ZodOptional<z.ZodString>;
|
|
9
|
-
line2: z.ZodOptional<z.ZodString>;
|
|
10
|
-
city: z.ZodOptional<z.ZodString>;
|
|
11
|
-
state: z.ZodOptional<z.ZodEnum<[string, ...string[]]>>;
|
|
12
|
-
country: z.ZodOptional<z.ZodEffects<z.ZodString, "US", string>>;
|
|
13
|
-
zipCode: z.ZodOptional<z.ZodString>;
|
|
14
|
-
}, "strip", z.ZodTypeAny, {
|
|
15
|
-
line1?: string | undefined;
|
|
16
|
-
line2?: string | undefined;
|
|
17
|
-
city?: string | undefined;
|
|
18
|
-
state?: string | undefined;
|
|
19
|
-
country?: "US" | undefined;
|
|
20
|
-
zipCode?: string | undefined;
|
|
21
|
-
}, {
|
|
22
|
-
line1?: string | undefined;
|
|
23
|
-
line2?: string | undefined;
|
|
24
|
-
city?: string | undefined;
|
|
25
|
-
state?: string | undefined;
|
|
26
|
-
country?: string | undefined;
|
|
27
|
-
zipCode?: string | undefined;
|
|
28
|
-
}>, {
|
|
29
|
-
line1?: string | undefined;
|
|
30
|
-
line2?: string | undefined;
|
|
31
|
-
city?: string | undefined;
|
|
32
|
-
state?: string | undefined;
|
|
33
|
-
country?: "US" | undefined;
|
|
34
|
-
zipCode?: string | undefined;
|
|
35
|
-
}, {
|
|
36
|
-
line1?: string | undefined;
|
|
37
|
-
line2?: string | undefined;
|
|
38
|
-
city?: string | undefined;
|
|
39
|
-
state?: string | undefined;
|
|
40
|
-
country?: string | undefined;
|
|
41
|
-
zipCode?: string | undefined;
|
|
1
|
+
export declare const driversLicenseSchema: import('zod').ZodObject<{
|
|
2
|
+
documentNumber: import('zod').ZodString;
|
|
3
|
+
issuanceState: import('zod').ZodEnum<{
|
|
4
|
+
[x: string]: string;
|
|
42
5
|
}>;
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
}, {
|
|
57
|
-
address: {
|
|
58
|
-
line1?: string | undefined;
|
|
59
|
-
line2?: string | undefined;
|
|
60
|
-
city?: string | undefined;
|
|
61
|
-
state?: string | undefined;
|
|
62
|
-
country?: string | undefined;
|
|
63
|
-
zipCode?: string | undefined;
|
|
64
|
-
};
|
|
65
|
-
documentNumber: string;
|
|
66
|
-
issuanceState: string;
|
|
67
|
-
issuanceDate: string;
|
|
68
|
-
expirationDate: string;
|
|
69
|
-
}>;
|
|
6
|
+
issuanceDate: import('zod').ZodString;
|
|
7
|
+
expirationDate: import('zod').ZodString;
|
|
8
|
+
address: import('zod').ZodObject<{
|
|
9
|
+
line1: import('zod').ZodOptional<import('zod').ZodString>;
|
|
10
|
+
line2: import('zod').ZodOptional<import('zod').ZodString>;
|
|
11
|
+
city: import('zod').ZodOptional<import('zod').ZodString>;
|
|
12
|
+
state: import('zod').ZodOptional<import('zod').ZodEnum<{
|
|
13
|
+
[x: string]: string;
|
|
14
|
+
}>>;
|
|
15
|
+
country: import('zod').ZodOptional<import('zod').ZodString & import('zod').ZodType<"US", string, import('zod/v4/core').$ZodTypeInternals<"US", string>>>;
|
|
16
|
+
zipCode: import('zod').ZodOptional<import('zod').ZodString>;
|
|
17
|
+
}, import('zod/v4/core').$strip>;
|
|
18
|
+
}, import('zod/v4/core').$strip>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";import{
|
|
1
|
+
"use strict";import{zod3Object as a}from"../../../../../../utils/zod/index.mjs";import{addressSchema as m}from"../address/address.schema.mjs";import{dateSchema as e}from"../other/date.schema.mjs";import{stateSchema as r}from"../address/state.schema.mjs";import{documentNumberSchema as t}from"../other/documentNumber.schema.mjs";const s=a({documentNumber:t,issuanceState:r,issuanceDate:e,expirationDate:e,address:m});export{s as driversLicenseSchema};
|
|
@@ -3,109 +3,17 @@ export declare const employerSchema: z.ZodObject<{
|
|
|
3
3
|
employer: z.ZodObject<{
|
|
4
4
|
name: z.ZodString;
|
|
5
5
|
legalName: z.ZodOptional<z.ZodString>;
|
|
6
|
-
address: z.ZodOptional<z.
|
|
6
|
+
address: z.ZodOptional<z.ZodObject<{
|
|
7
7
|
line1: z.ZodOptional<z.ZodString>;
|
|
8
8
|
line2: z.ZodOptional<z.ZodString>;
|
|
9
9
|
city: z.ZodOptional<z.ZodString>;
|
|
10
|
-
state: z.ZodOptional<z.ZodEnum<
|
|
11
|
-
|
|
10
|
+
state: z.ZodOptional<z.ZodEnum<{
|
|
11
|
+
[x: string]: string;
|
|
12
|
+
}>>;
|
|
13
|
+
country: z.ZodOptional<z.ZodString & z.ZodType<"US", string, z.core.$ZodTypeInternals<"US", string>>>;
|
|
12
14
|
zipCode: z.ZodOptional<z.ZodString>;
|
|
13
|
-
},
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
state?: string | undefined;
|
|
18
|
-
country?: "US" | undefined;
|
|
19
|
-
zipCode?: string | undefined;
|
|
20
|
-
}, {
|
|
21
|
-
line1?: string | undefined;
|
|
22
|
-
line2?: string | undefined;
|
|
23
|
-
city?: string | undefined;
|
|
24
|
-
state?: string | undefined;
|
|
25
|
-
country?: string | undefined;
|
|
26
|
-
zipCode?: string | undefined;
|
|
27
|
-
}>, {
|
|
28
|
-
line1?: string | undefined;
|
|
29
|
-
line2?: string | undefined;
|
|
30
|
-
city?: string | undefined;
|
|
31
|
-
state?: string | undefined;
|
|
32
|
-
country?: "US" | undefined;
|
|
33
|
-
zipCode?: string | undefined;
|
|
34
|
-
}, {
|
|
35
|
-
line1?: string | undefined;
|
|
36
|
-
line2?: string | undefined;
|
|
37
|
-
city?: string | undefined;
|
|
38
|
-
state?: string | undefined;
|
|
39
|
-
country?: string | undefined;
|
|
40
|
-
zipCode?: string | undefined;
|
|
41
|
-
}>, {
|
|
42
|
-
line1?: string | undefined;
|
|
43
|
-
line2?: string | undefined;
|
|
44
|
-
city?: string | undefined;
|
|
45
|
-
state?: string | undefined;
|
|
46
|
-
country?: "US" | undefined;
|
|
47
|
-
zipCode?: string | undefined;
|
|
48
|
-
}, {
|
|
49
|
-
line1?: string | undefined;
|
|
50
|
-
line2?: string | undefined;
|
|
51
|
-
city?: string | undefined;
|
|
52
|
-
state?: string | undefined;
|
|
53
|
-
country?: string | undefined;
|
|
54
|
-
zipCode?: string | undefined;
|
|
55
|
-
}>>;
|
|
56
|
-
logoUrl: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>>;
|
|
57
|
-
}, "strip", z.ZodTypeAny, {
|
|
58
|
-
name: string;
|
|
59
|
-
address?: {
|
|
60
|
-
line1?: string | undefined;
|
|
61
|
-
line2?: string | undefined;
|
|
62
|
-
city?: string | undefined;
|
|
63
|
-
state?: string | undefined;
|
|
64
|
-
country?: "US" | undefined;
|
|
65
|
-
zipCode?: string | undefined;
|
|
66
|
-
} | undefined;
|
|
67
|
-
logoUrl?: string | null | undefined;
|
|
68
|
-
legalName?: string | undefined;
|
|
69
|
-
}, {
|
|
70
|
-
name: string;
|
|
71
|
-
address?: {
|
|
72
|
-
line1?: string | undefined;
|
|
73
|
-
line2?: string | undefined;
|
|
74
|
-
city?: string | undefined;
|
|
75
|
-
state?: string | undefined;
|
|
76
|
-
country?: string | undefined;
|
|
77
|
-
zipCode?: string | undefined;
|
|
78
|
-
} | undefined;
|
|
79
|
-
logoUrl?: string | null | undefined;
|
|
80
|
-
legalName?: string | undefined;
|
|
81
|
-
}>;
|
|
82
|
-
}, "strip", z.ZodTypeAny, {
|
|
83
|
-
employer: {
|
|
84
|
-
name: string;
|
|
85
|
-
address?: {
|
|
86
|
-
line1?: string | undefined;
|
|
87
|
-
line2?: string | undefined;
|
|
88
|
-
city?: string | undefined;
|
|
89
|
-
state?: string | undefined;
|
|
90
|
-
country?: "US" | undefined;
|
|
91
|
-
zipCode?: string | undefined;
|
|
92
|
-
} | undefined;
|
|
93
|
-
logoUrl?: string | null | undefined;
|
|
94
|
-
legalName?: string | undefined;
|
|
95
|
-
};
|
|
96
|
-
}, {
|
|
97
|
-
employer: {
|
|
98
|
-
name: string;
|
|
99
|
-
address?: {
|
|
100
|
-
line1?: string | undefined;
|
|
101
|
-
line2?: string | undefined;
|
|
102
|
-
city?: string | undefined;
|
|
103
|
-
state?: string | undefined;
|
|
104
|
-
country?: string | undefined;
|
|
105
|
-
zipCode?: string | undefined;
|
|
106
|
-
} | undefined;
|
|
107
|
-
logoUrl?: string | null | undefined;
|
|
108
|
-
legalName?: string | undefined;
|
|
109
|
-
};
|
|
110
|
-
}>;
|
|
15
|
+
}, z.core.$strip>>;
|
|
16
|
+
logoUrl: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"">]>>>;
|
|
17
|
+
}, z.core.$strip>;
|
|
18
|
+
}, z.core.$strip>;
|
|
111
19
|
export type EmployerValue = z.infer<typeof employerSchema>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";import{z as
|
|
1
|
+
"use strict";import{z as o}from"zod";import{employerNameSchema as a}from"./employerName.schema.mjs";import{legalNameSchema as r}from"./legalName.schema.mjs";import{zod3Object as e,zod3Url as m}from"../../../../../../utils/zod/index.mjs";import{requiredAddressSchema as l}from"../address/address.schema.mjs";const s=e({employer:e({name:a,legalName:r.optional(),address:l.optional(),logoUrl:o.union([m("Invalid url"),o.literal("")]).nullish()})});export{s as employerSchema};
|
package/dist/components/form/NewOneClickForm/core/validations/employer/employerName.schema.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";import{
|
|
1
|
+
"use strict";import{zod3String as m}from"../../../../../../utils/zod/index.mjs";const e="Employer name is required",a=m().trim().min(1,e).max(255,e);export{a as employerNameSchema,e as employerNameValidationMessage};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";import{
|
|
1
|
+
"use strict";import{zod3String as e}from"../../../../../../utils/zod/index.mjs";const a="Legal name is required",i=e().trim().min(1,a).max(255,a);export{i as legalNameSchema,a as legalNameValidationMessage};
|
|
@@ -5,31 +5,7 @@ export declare const healthInsuranceSchema: z.ZodObject<{
|
|
|
5
5
|
payer: z.ZodObject<{
|
|
6
6
|
verifiedId: z.ZodString;
|
|
7
7
|
name: z.ZodString;
|
|
8
|
-
logoUrl: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>>;
|
|
9
|
-
},
|
|
10
|
-
|
|
11
|
-
verifiedId: string;
|
|
12
|
-
logoUrl?: string | null | undefined;
|
|
13
|
-
}, {
|
|
14
|
-
name: string;
|
|
15
|
-
verifiedId: string;
|
|
16
|
-
logoUrl?: string | null | undefined;
|
|
17
|
-
}>;
|
|
18
|
-
}, "strip", z.ZodTypeAny, {
|
|
19
|
-
memberId: string;
|
|
20
|
-
payer: {
|
|
21
|
-
name: string;
|
|
22
|
-
verifiedId: string;
|
|
23
|
-
logoUrl?: string | null | undefined;
|
|
24
|
-
};
|
|
25
|
-
id?: number | undefined;
|
|
26
|
-
}, {
|
|
27
|
-
memberId: string;
|
|
28
|
-
payer: {
|
|
29
|
-
name: string;
|
|
30
|
-
verifiedId: string;
|
|
31
|
-
logoUrl?: string | null | undefined;
|
|
32
|
-
};
|
|
33
|
-
id?: number | undefined;
|
|
34
|
-
}>;
|
|
8
|
+
logoUrl: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"">]>>>;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
}, z.core.$strip>;
|
|
35
11
|
export type HealthInsuranceValue = z.infer<typeof healthInsuranceSchema>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";import{z as
|
|
1
|
+
"use strict";import{z as r}from"zod";import{memberIdSchema as a}from"./memberId.schema.mjs";import{payerNameSchema as m}from"./payerName.schema.mjs";import{zod3Object as e,zod3Url as o,zod3String as i}from"../../../../../../utils/zod/index.mjs";const l=e({id:r.number().optional(),memberId:a,payer:e({verifiedId:i().regex(/^V\d+$/,"Invalid"),name:m,logoUrl:r.union([o("Invalid url"),r.literal("")]).nullish()})});export{l as healthInsuranceSchema};
|
package/dist/components/form/NewOneClickForm/core/validations/healthInsurance/memberId.schema.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";import{
|
|
1
|
+
"use strict";import{zod3String as m}from"../../../../../../utils/zod/index.mjs";const e="Member ID is required",r=m().min(1,e).max(255,e);export{r as memberIdSchema,e as memberIdValidationMessage};
|
package/dist/components/form/NewOneClickForm/core/validations/healthInsurance/payerName.schema.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";import{
|
|
1
|
+
"use strict";import{zod3String as e}from"../../../../../../utils/zod/index.mjs";const a="Payer name is required",m=e().min(1,a).max(255,a).trim();export{m as payerNameSchema,a as payerNameValidationMessage};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";import{
|
|
1
|
+
"use strict";import{zod3String as o}from"../../../../../../utils/zod/index.mjs";const t=o();export{t as firstSchema};
|
|
@@ -1,14 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}, "strip", z.ZodTypeAny, {
|
|
7
|
-
firstName: string;
|
|
8
|
-
lastName: string;
|
|
9
|
-
middleName: string;
|
|
10
|
-
}, {
|
|
11
|
-
firstName: string;
|
|
12
|
-
lastName: string;
|
|
13
|
-
middleName: string;
|
|
14
|
-
}>;
|
|
1
|
+
export declare const fullNameSchema: import('zod').ZodObject<{
|
|
2
|
+
firstName: import('zod').ZodString;
|
|
3
|
+
lastName: import('zod').ZodString;
|
|
4
|
+
middleName: import('zod').ZodString;
|
|
5
|
+
}, import('zod/v4/core').$strip>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";import{
|
|
1
|
+
"use strict";import{firstSchema as m}from"./first.schema.mjs";import{lastSchema as a}from"./last.schema.mjs";import{middleSchema as e}from"./middle.schema.mjs";import{zod3Object as o}from"../../../../../../utils/zod/index.mjs";const r=o({firstName:m,lastName:a,middleName:e});export{r as fullNameSchema};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";import{
|
|
1
|
+
"use strict";import{zod3String as o}from"../../../../../../utils/zod/index.mjs";const r=o();export{r as lastSchema};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";import{
|
|
1
|
+
"use strict";import{zod3String as o}from"../../../../../../utils/zod/index.mjs";const r=o();export{r as middleSchema};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const birthDateSchema: import('zod').
|
|
1
|
+
export declare const birthDateSchema: import('zod').ZodString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const dateSchema: import('zod').
|
|
1
|
+
export declare const dateSchema: import('zod').ZodString;
|
package/dist/components/form/NewOneClickForm/core/validations/other/documentNumber.schema.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";import{
|
|
1
|
+
"use strict";import{zod3String as o}from"../../../../../../utils/zod/index.mjs";const r=o();export{r as documentNumberSchema};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const phoneSchema: import('zod').
|
|
1
|
+
export declare const phoneSchema: import('zod').ZodString;
|
|
@@ -16,4 +16,6 @@ export declare const sexOptions: readonly [{
|
|
|
16
16
|
* Validation schema for sex selection
|
|
17
17
|
* Validates against predefined sex options
|
|
18
18
|
*/
|
|
19
|
-
export declare const sexSchema: z.ZodEnum<
|
|
19
|
+
export declare const sexSchema: z.ZodEnum<{
|
|
20
|
+
[x: string]: string;
|
|
21
|
+
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";import{z as l}from"zod";const a=[{label:"Male",value:"Male"},{label:"Female",value:"Female"},{label:"Non-Binary",value:"Non-Binary"}],
|
|
1
|
+
"use strict";import{z as l}from"zod";import{zod3EnumError as o}from"../../../../../../utils/zod/index.mjs";const a=[{label:"Male",value:"Male"},{label:"Female",value:"Female"},{label:"Non-Binary",value:"Non-Binary"}],r=l.enum(a.map(e=>e.value),{error:o});export{a as sexOptions,r as sexSchema};
|