@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.
Files changed (87) hide show
  1. package/dist/components/Banners/ResendPhoneBanner.mjs +1 -1
  2. package/dist/components/NetworkRules/editor/schema.d.ts +14 -110
  3. package/dist/components/NetworkRules/editor/schema.mjs +1 -1
  4. package/dist/components/form/AddressInput/autofill.hook.mjs +1 -1
  5. package/dist/components/form/AddressInput/hook.mjs +1 -1
  6. package/dist/components/form/NewOneClickForm/core/fields/address.d.ts +14 -36
  7. package/dist/components/form/NewOneClickForm/core/fields/birthDate.d.ts +1 -1
  8. package/dist/components/form/NewOneClickForm/core/fields/driversLicense.d.ts +32 -102
  9. package/dist/components/form/NewOneClickForm/core/fields/employer.d.ts +9 -101
  10. package/dist/components/form/NewOneClickForm/core/fields/fullName.d.ts +1 -9
  11. package/dist/components/form/NewOneClickForm/core/fields/healthInsurance.d.ts +4 -32
  12. package/dist/components/form/NewOneClickForm/core/fields/index.d.ts +66 -284
  13. package/dist/components/form/NewOneClickForm/core/fields/phone.d.ts +1 -1
  14. package/dist/components/form/NewOneClickForm/core/fields/sex.d.ts +3 -1
  15. package/dist/components/form/NewOneClickForm/core/fields/ssn.d.ts +1 -1
  16. package/dist/components/form/NewOneClickForm/core/form/formField.mjs +1 -1
  17. package/dist/components/form/NewOneClickForm/core/form/formFieldBuilder.mjs +1 -1
  18. package/dist/components/form/NewOneClickForm/core/validations/address/address.schema.d.ts +20 -87
  19. package/dist/components/form/NewOneClickForm/core/validations/address/address.schema.mjs +1 -1
  20. package/dist/components/form/NewOneClickForm/core/validations/address/city.schema.d.ts +1 -2
  21. package/dist/components/form/NewOneClickForm/core/validations/address/city.schema.mjs +1 -1
  22. package/dist/components/form/NewOneClickForm/core/validations/address/country.schema.d.ts +1 -2
  23. package/dist/components/form/NewOneClickForm/core/validations/address/country.schema.mjs +1 -1
  24. package/dist/components/form/NewOneClickForm/core/validations/address/line1.schema.d.ts +1 -2
  25. package/dist/components/form/NewOneClickForm/core/validations/address/line1.schema.mjs +1 -1
  26. package/dist/components/form/NewOneClickForm/core/validations/address/line2.schema.d.ts +1 -2
  27. package/dist/components/form/NewOneClickForm/core/validations/address/line2.schema.mjs +1 -1
  28. package/dist/components/form/NewOneClickForm/core/validations/address/state.schema.d.ts +3 -1
  29. package/dist/components/form/NewOneClickForm/core/validations/address/zipcode.schema.d.ts +1 -2
  30. package/dist/components/form/NewOneClickForm/core/validations/address/zipcode.schema.mjs +1 -1
  31. package/dist/components/form/NewOneClickForm/core/validations/driversLicense/driversLicense.schema.d.ts +17 -68
  32. package/dist/components/form/NewOneClickForm/core/validations/driversLicense/driversLicense.schema.mjs +1 -1
  33. package/dist/components/form/NewOneClickForm/core/validations/employer/employer.schema.d.ts +9 -101
  34. package/dist/components/form/NewOneClickForm/core/validations/employer/employer.schema.mjs +1 -1
  35. package/dist/components/form/NewOneClickForm/core/validations/employer/employerName.schema.d.ts +1 -2
  36. package/dist/components/form/NewOneClickForm/core/validations/employer/employerName.schema.mjs +1 -1
  37. package/dist/components/form/NewOneClickForm/core/validations/employer/legalName.schema.d.ts +1 -2
  38. package/dist/components/form/NewOneClickForm/core/validations/employer/legalName.schema.mjs +1 -1
  39. package/dist/components/form/NewOneClickForm/core/validations/healthInsurance/healthInsurance.schema.d.ts +3 -27
  40. package/dist/components/form/NewOneClickForm/core/validations/healthInsurance/healthInsurance.schema.mjs +1 -1
  41. package/dist/components/form/NewOneClickForm/core/validations/healthInsurance/memberId.schema.d.ts +1 -2
  42. package/dist/components/form/NewOneClickForm/core/validations/healthInsurance/memberId.schema.mjs +1 -1
  43. package/dist/components/form/NewOneClickForm/core/validations/healthInsurance/payerName.schema.d.ts +1 -2
  44. package/dist/components/form/NewOneClickForm/core/validations/healthInsurance/payerName.schema.mjs +1 -1
  45. package/dist/components/form/NewOneClickForm/core/validations/name/first.schema.d.ts +1 -2
  46. package/dist/components/form/NewOneClickForm/core/validations/name/first.schema.mjs +1 -1
  47. package/dist/components/form/NewOneClickForm/core/validations/name/fullName.schema.d.ts +5 -14
  48. package/dist/components/form/NewOneClickForm/core/validations/name/fullName.schema.mjs +1 -1
  49. package/dist/components/form/NewOneClickForm/core/validations/name/last.schema.d.ts +1 -2
  50. package/dist/components/form/NewOneClickForm/core/validations/name/last.schema.mjs +1 -1
  51. package/dist/components/form/NewOneClickForm/core/validations/name/middle.schema.d.ts +1 -2
  52. package/dist/components/form/NewOneClickForm/core/validations/name/middle.schema.mjs +1 -1
  53. package/dist/components/form/NewOneClickForm/core/validations/other/birthDate.schema.d.ts +1 -1
  54. package/dist/components/form/NewOneClickForm/core/validations/other/date.schema.d.ts +1 -1
  55. package/dist/components/form/NewOneClickForm/core/validations/other/documentNumber.schema.d.ts +1 -2
  56. package/dist/components/form/NewOneClickForm/core/validations/other/documentNumber.schema.mjs +1 -1
  57. package/dist/components/form/NewOneClickForm/core/validations/other/phone.schema.d.ts +1 -1
  58. package/dist/components/form/NewOneClickForm/core/validations/other/sex.schema.d.ts +3 -1
  59. package/dist/components/form/NewOneClickForm/core/validations/other/sex.schema.mjs +1 -1
  60. package/dist/components/form/NewOneClickForm/core/validations/other/ssn.schema.d.ts +1 -2
  61. package/dist/components/form/NewOneClickForm/core/validations/other/ssn.schema.mjs +1 -1
  62. package/dist/components/form/NewOneClickForm/react/core/field.hook.mjs +1 -1
  63. package/dist/components/form/NewOneClickForm/react/ui/fields/shared.d.ts +4 -4
  64. package/dist/hooks/useQRCode.mjs +1 -1
  65. package/dist/index.mjs +1 -1
  66. package/dist/utils/index.d.ts +1 -0
  67. package/dist/utils/index.mjs +1 -1
  68. package/dist/utils/zod/index.d.ts +22 -0
  69. package/dist/utils/zod/index.mjs +1 -0
  70. package/dist/validations/address.schema.d.ts +3 -1
  71. package/dist/validations/date.schema.d.ts +4 -4
  72. package/dist/validations/date.schema.mjs +1 -1
  73. package/dist/validations/description.schema.d.ts +1 -2
  74. package/dist/validations/description.schema.mjs +1 -1
  75. package/dist/validations/email.schema.d.ts +2 -2
  76. package/dist/validations/email.schema.mjs +1 -1
  77. package/dist/validations/field.schema.d.ts +1 -2
  78. package/dist/validations/field.schema.mjs +1 -1
  79. package/dist/validations/npi.schema.d.ts +1 -2
  80. package/dist/validations/npi.schema.mjs +1 -1
  81. package/dist/validations/phone.schema.d.ts +1 -2
  82. package/dist/validations/phone.schema.mjs +1 -1
  83. package/dist/validations/ssn.schema.d.ts +2 -3
  84. package/dist/validations/ssn.schema.mjs +1 -1
  85. package/dist/validations/unix.schema.d.ts +1 -2
  86. package/dist/validations/unix.schema.mjs +1 -1
  87. package/package.json +14 -19
@@ -1,87 +1,20 @@
1
- import { z } from 'zod';
2
- export declare const addressSchema: z.ZodEffects<z.ZodObject<{
3
- line1: z.ZodOptional<z.ZodString>;
4
- line2: z.ZodOptional<z.ZodString>;
5
- city: z.ZodOptional<z.ZodString>;
6
- state: z.ZodOptional<z.ZodEnum<[string, ...string[]]>>;
7
- country: z.ZodOptional<z.ZodEffects<z.ZodString, "US", string>>;
8
- zipCode: z.ZodOptional<z.ZodString>;
9
- }, "strip", z.ZodTypeAny, {
10
- line1?: string | undefined;
11
- line2?: string | undefined;
12
- city?: string | undefined;
13
- state?: string | undefined;
14
- country?: "US" | undefined;
15
- zipCode?: string | undefined;
16
- }, {
17
- line1?: string | undefined;
18
- line2?: string | undefined;
19
- city?: string | undefined;
20
- state?: string | undefined;
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{z as s}from"zod";import{line1Schema as a,line1ValidationMessage as r}from"./line1.schema.mjs";import{line2Schema as O}from"./line2.schema.mjs";import{citySchema as c,cityValidationMessage as p}from"./city.schema.mjs";import{stateSchema as i,stateValidationMessage as d}from"./state.schema.mjs";import{countrySchema as l,countryValidationMessage as n}from"./country.schema.mjs";import{zipCodeSchema as y,zipCodeValidationMessage as m}from"./zipcode.schema.mjs";const u=s.object({line1:a.optional(),line2:O.optional(),city:c.optional(),state:i.optional(),country:l.optional(),zipCode:y.optional()}).superRefine((e,t)=>{if(Object.values(e).every(o=>!o))return!0;(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()==="")&&(a.safeParse(e.line1).success||t.addIssue({code:s.ZodIssueCode.custom,path:["line1"],message:r})),Object.prototype.hasOwnProperty.call(e,"city")&&(!e.city||e.city.trim()==="")&&(c.safeParse(e.city).success||t.addIssue({code:s.ZodIssueCode.custom,path:["city"],message:p})),Object.prototype.hasOwnProperty.call(e,"state")&&(i.safeParse(e.state).success||t.addIssue({code:s.ZodIssueCode.custom,path:["state"],message:d})),Object.prototype.hasOwnProperty.call(e,"country")&&(l.safeParse(e.country).success||t.addIssue({code:s.ZodIssueCode.custom,path:["country"],message:n})),Object.prototype.hasOwnProperty.call(e,"zipCode")&&(y.safeParse(e.zipCode).success||t.addIssue({code:s.ZodIssueCode.custom,path:["zipCode"],message:m})))}),f=[["line1",r],["city",p],["state",d],["zipCode",m],["country",n]],P=u.superRefine((e,t)=>{f.forEach(([o,h])=>{e[o]||t.addIssue({code:s.ZodIssueCode.custom,path:[o],message:h})})});export{u as addressSchema,P as requiredAddressSchema};
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: z.ZodString;
6
+ export declare const citySchema: import('zod').ZodString;
@@ -1 +1 @@
1
- "use strict";import{z as t}from"zod";const i="City is required",s=t.string().min(1,i);export{s as citySchema,i as cityValidationMessage};
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: z.ZodEffects<z.ZodString, "US", string>;
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{z as e}from"zod";const o="Country must be US",n=e.string().refine(t=>t==="US",o);export{n as countrySchema,o as countryValidationMessage};
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: z.ZodString;
6
+ export declare const line1Schema: import('zod').ZodString;
@@ -1 +1 @@
1
- "use strict";import{z as e}from"zod";const i="Line 1 is required",s=e.string().min(1,i);export{s as line1Schema,i as line1ValidationMessage};
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,6 +1,5 @@
1
- import { z } from 'zod';
2
1
  /**
3
2
  * Validation schema for address line 2
4
3
  * Basic string validation for apartment, suite, etc.
5
4
  */
6
- export declare const line2Schema: z.ZodString;
5
+ export declare const line2Schema: import('zod').ZodString;
@@ -1 +1 @@
1
- "use strict";import{z as o}from"zod";const t=o.string();export{t as line2Schema};
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<[string, ...string[]]>;
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: z.ZodString;
6
+ export declare const zipCodeSchema: import('zod').ZodString;
@@ -1 +1 @@
1
- "use strict";import{z as o}from"zod";const e="Invalid zip code",a=o.string().regex(/^\d{5}(-\d{4})?$/,e);export{a as zipCodeSchema,e as zipCodeValidationMessage};
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
- import { z } from 'zod';
2
- export declare const driversLicenseSchema: z.ZodObject<{
3
- documentNumber: z.ZodString;
4
- issuanceState: z.ZodEnum<[string, ...string[]]>;
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
- }, "strip", z.ZodTypeAny, {
44
- address: {
45
- line1?: string | undefined;
46
- line2?: string | undefined;
47
- city?: string | undefined;
48
- state?: string | undefined;
49
- country?: "US" | undefined;
50
- zipCode?: string | undefined;
51
- };
52
- documentNumber: string;
53
- issuanceState: string;
54
- issuanceDate: string;
55
- expirationDate: string;
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{z as a}from"zod";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.object({documentNumber:t,issuanceState:r,issuanceDate:e,expirationDate:e,address:m});export{s as driversLicenseSchema};
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.ZodEffects<z.ZodEffects<z.ZodObject<{
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<[string, ...string[]]>>;
11
- country: z.ZodOptional<z.ZodEffects<z.ZodString, "US", string>>;
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
- }, "strip", z.ZodTypeAny, {
14
- line1?: string | undefined;
15
- line2?: string | undefined;
16
- city?: string | undefined;
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 e}from"zod";import{employerNameSchema as o}from"./employerName.schema.mjs";import{legalNameSchema as r}from"./legalName.schema.mjs";import{requiredAddressSchema as m}from"../address/address.schema.mjs";const a=e.object({employer:e.object({name:o,legalName:r.optional(),address:m.optional(),logoUrl:e.union([e.string().url(),e.literal("")]).nullish()})});export{a as employerSchema};
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};
@@ -1,3 +1,2 @@
1
- import { z } from 'zod';
2
1
  export declare const employerNameValidationMessage = "Employer name is required";
3
- export declare const employerNameSchema: z.ZodString;
2
+ export declare const employerNameSchema: import('zod').ZodString;
@@ -1 +1 @@
1
- "use strict";import{z as m}from"zod";const e="Employer name is required",a=m.string().trim().min(1,e).max(255,e);export{a as employerNameSchema,e as employerNameValidationMessage};
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,3 +1,2 @@
1
- import { z } from 'zod';
2
1
  export declare const legalNameValidationMessage = "Legal name is required";
3
- export declare const legalNameSchema: z.ZodString;
2
+ export declare const legalNameSchema: import('zod').ZodString;
@@ -1 +1 @@
1
- "use strict";import{z as e}from"zod";const a="Legal name is required",i=e.string().trim().min(1,a).max(255,a);export{i as legalNameSchema,a as legalNameValidationMessage};
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
- }, "strip", z.ZodTypeAny, {
10
- name: string;
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 e}from"zod";import{memberIdSchema as r}from"./memberId.schema.mjs";import{payerNameSchema as m}from"./payerName.schema.mjs";const a=e.object({id:e.number().optional(),memberId:r,payer:e.object({verifiedId:e.string().regex(/^V\d+$/),name:m,logoUrl:e.union([e.string().url(),e.literal("")]).nullish()})});export{a as healthInsuranceSchema};
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};
@@ -1,3 +1,2 @@
1
- import { z } from 'zod';
2
1
  export declare const memberIdValidationMessage = "Member ID is required";
3
- export declare const memberIdSchema: z.ZodString;
2
+ export declare const memberIdSchema: import('zod').ZodString;
@@ -1 +1 @@
1
- "use strict";import{z as m}from"zod";const e="Member ID is required",r=m.string().min(1,e).max(255,e);export{r as memberIdSchema,e as memberIdValidationMessage};
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};
@@ -1,3 +1,2 @@
1
- import { z } from 'zod';
2
1
  export declare const payerNameValidationMessage = "Payer name is required";
3
- export declare const payerNameSchema: z.ZodString;
2
+ export declare const payerNameSchema: import('zod').ZodString;
@@ -1 +1 @@
1
- "use strict";import{z as e}from"zod";const a="Payer name is required",m=e.string().min(1,a).max(255,a).trim();export{m as payerNameSchema,a as payerNameValidationMessage};
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,6 +1,5 @@
1
- import { z } from 'zod';
2
1
  /**
3
2
  * Validation schema for first name
4
3
  * Basic string validation for first name
5
4
  */
6
- export declare const firstSchema: z.ZodString;
5
+ export declare const firstSchema: import('zod').ZodString;
@@ -1 +1 @@
1
- "use strict";import{z as r}from"zod";const o=r.string();export{o as firstSchema};
1
+ "use strict";import{zod3String as o}from"../../../../../../utils/zod/index.mjs";const t=o();export{t as firstSchema};
@@ -1,14 +1,5 @@
1
- import { z } from 'zod';
2
- export declare const fullNameSchema: z.ZodObject<{
3
- firstName: z.ZodString;
4
- lastName: z.ZodString;
5
- middleName: z.ZodString;
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{z as m}from"zod";import{firstSchema as a}from"./first.schema.mjs";import{lastSchema as e}from"./last.schema.mjs";import{middleSchema as o}from"./middle.schema.mjs";const r=m.object({firstName:a,lastName:e,middleName:o});export{r as fullNameSchema};
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,6 +1,5 @@
1
- import { z } from 'zod';
2
1
  /**
3
2
  * Validation schema for last name
4
3
  * Basic string validation for last name
5
4
  */
6
- export declare const lastSchema: z.ZodString;
5
+ export declare const lastSchema: import('zod').ZodString;
@@ -1 +1 @@
1
- "use strict";import{z as t}from"zod";const r=t.string();export{r as lastSchema};
1
+ "use strict";import{zod3String as o}from"../../../../../../utils/zod/index.mjs";const r=o();export{r as lastSchema};
@@ -1,6 +1,5 @@
1
- import { z } from 'zod';
2
1
  /**
3
2
  * Validation schema for middle name
4
3
  * Basic string validation for middle name
5
4
  */
6
- export declare const middleSchema: z.ZodString;
5
+ export declare const middleSchema: import('zod').ZodString;
@@ -1 +1 @@
1
- "use strict";import{z as m}from"zod";const r=m.string();export{r as middleSchema};
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').ZodEffects<import('zod').ZodEffects<import('zod').ZodEffects<import('zod').ZodString, string, string>, string, string>, string, string>;
1
+ export declare const birthDateSchema: import('zod').ZodString;
@@ -1 +1 @@
1
- export declare const dateSchema: import('zod').ZodEffects<import('zod').ZodEffects<import('zod').ZodString, string, string>, string, string>;
1
+ export declare const dateSchema: import('zod').ZodString;
@@ -1,6 +1,5 @@
1
- import { z } from 'zod';
2
1
  /**
3
2
  * Validation schema for document number
4
3
  * Basic string validation for document number
5
4
  */
6
- export declare const documentNumberSchema: z.ZodString;
5
+ export declare const documentNumberSchema: import('zod').ZodString;
@@ -1 +1 @@
1
- "use strict";import{z as m}from"zod";const r=m.string();export{r as documentNumberSchema};
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').ZodEffects<import('zod').ZodString, string, string>;
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<[string, ...string[]]>;
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"}],o=l.enum(a.map(e=>e.value));export{a as sexOptions,o as sexSchema};
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};