@transcend-io/contact-form-schema
Advanced tools
Comparing version 2.5.3 to 2.6.0
@@ -32,2 +32,4 @@ import { z } from 'zod'; | ||
message: z.ZodOptional<z.ZodString>; | ||
/** If this is a partner contacting us */ | ||
partnerType: z.ZodOptional<z.ZodEnum<["Technology partner", "Law firm partner", "Consulting partner"]>>; | ||
/** If this is a partner submitting a referral */ | ||
@@ -68,2 +70,3 @@ referralPartner: z.ZodOptional<z.ZodObject<{ | ||
message?: string | undefined; | ||
partnerType?: "Technology partner" | "Law firm partner" | "Consulting partner" | undefined; | ||
referralPartner?: { | ||
@@ -87,2 +90,3 @@ partnerFirstName: string; | ||
message?: string | undefined; | ||
partnerType?: "Technology partner" | "Law firm partner" | "Consulting partner" | undefined; | ||
referralPartner?: { | ||
@@ -179,2 +183,4 @@ partnerFirstName: string; | ||
message: z.ZodOptional<z.ZodString>; | ||
/** If this is a partner contacting us */ | ||
partnerType: z.ZodOptional<z.ZodEnum<["Technology partner", "Law firm partner", "Consulting partner"]>>; | ||
/** If this is a partner submitting a referral */ | ||
@@ -215,2 +221,3 @@ referralPartner: z.ZodOptional<z.ZodObject<{ | ||
message?: string | undefined; | ||
partnerType?: "Technology partner" | "Law firm partner" | "Consulting partner" | undefined; | ||
referralPartner?: { | ||
@@ -234,2 +241,3 @@ partnerFirstName: string; | ||
message?: string | undefined; | ||
partnerType?: "Technology partner" | "Law firm partner" | "Consulting partner" | undefined; | ||
referralPartner?: { | ||
@@ -236,0 +244,0 @@ partnerFirstName: string; |
@@ -8,3 +8,3 @@ import { phone } from 'phone'; | ||
*/ | ||
const CONTACT_FORM_VERSION = '2.5.3'; | ||
const CONTACT_FORM_VERSION = '2.6.0'; | ||
/** | ||
@@ -48,2 +48,6 @@ * The fields that are part of the contact form itself. | ||
message: z.string().optional(), | ||
/** If this is a partner contacting us */ | ||
partnerType: z | ||
.enum(['Technology partner', 'Law firm partner', 'Consulting partner']) | ||
.optional(), | ||
/** If this is a partner submitting a referral */ | ||
@@ -50,0 +54,0 @@ referralPartner: z |
{ | ||
"name": "@transcend-io/contact-form-schema", | ||
"type": "module", | ||
"version": "2.5.3", | ||
"version": "2.6.0", | ||
"description": "Schema for the marketing contact form.", | ||
@@ -30,2 +30,3 @@ "license": "UNLICENSED", | ||
"lint:types": "tsc --noEmit", | ||
"lint:publint": "yarn build && publint --strict", | ||
"upgrades": "yarn dlx @yarnpkg/sdks" | ||
@@ -46,2 +47,3 @@ }, | ||
"prettier": "^2.8.8", | ||
"publint": "^0.2.7", | ||
"rollup": "^4.9.1", | ||
@@ -48,0 +50,0 @@ "rollup-plugin-ts": "^3.4.5", |
@@ -8,3 +8,3 @@ import { phone } from 'phone'; | ||
*/ | ||
export const CONTACT_FORM_VERSION: string = '2.5.3'; | ||
export const CONTACT_FORM_VERSION: string = '2.6.0'; | ||
@@ -59,2 +59,7 @@ /** | ||
/** If this is a partner contacting us */ | ||
partnerType: z | ||
.enum(['Technology partner', 'Law firm partner', 'Consulting partner']) | ||
.optional(), | ||
/** If this is a partner submitting a referral */ | ||
@@ -61,0 +66,0 @@ referralPartner: z |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
59892
625
17