@bizmap/sdk 0.0.104 → 0.0.105
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/main.d.ts +11 -11
- package/dist/main.js +2 -2
- package/package.json +1 -1
package/dist/main.d.ts
CHANGED
|
@@ -787,40 +787,40 @@ declare const CreateCompanyForm: z.ZodPipe<z.ZodObject<{
|
|
|
787
787
|
industry: z.ZodReadonly<z.ZodEnum<{
|
|
788
788
|
healthcare: "healthcare";
|
|
789
789
|
}>>;
|
|
790
|
-
address: z.ZodOptional<z.ZodObject<{
|
|
790
|
+
address: z.ZodNonOptional<z.ZodOptional<z.ZodObject<{
|
|
791
791
|
streetAddress: z.ZodString;
|
|
792
792
|
city: z.ZodOptional<z.ZodString>;
|
|
793
793
|
parish: z.ZodString;
|
|
794
794
|
country: z.ZodString;
|
|
795
|
-
}, z.core.$strip
|
|
795
|
+
}, z.core.$strip>>>;
|
|
796
796
|
email: z.ZodEmail;
|
|
797
797
|
phoneNumber: z.ZodOptional<z.ZodString>;
|
|
798
798
|
domain: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
799
799
|
alias: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
800
|
-
picture: z.ZodOptional<z.ZodNullable<z.ZodString
|
|
800
|
+
picture: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
801
801
|
}, z.core.$strip>, z.ZodTransform<{
|
|
802
802
|
industry: "healthcare";
|
|
803
|
-
|
|
804
|
-
domain: string;
|
|
805
|
-
address?: {
|
|
803
|
+
address: {
|
|
806
804
|
streetAddress: string;
|
|
807
805
|
parish: string;
|
|
808
806
|
country: string;
|
|
809
807
|
city?: string | undefined;
|
|
810
|
-
}
|
|
808
|
+
};
|
|
809
|
+
email: string;
|
|
810
|
+
domain: string;
|
|
811
811
|
phoneNumber?: string | undefined;
|
|
812
812
|
alias?: string | undefined;
|
|
813
813
|
picture?: string | null | undefined;
|
|
814
814
|
}, {
|
|
815
815
|
industry: "healthcare";
|
|
816
|
-
|
|
817
|
-
domain: string;
|
|
818
|
-
address?: {
|
|
816
|
+
address: {
|
|
819
817
|
streetAddress: string;
|
|
820
818
|
parish: string;
|
|
821
819
|
country: string;
|
|
822
820
|
city?: string | undefined;
|
|
823
|
-
}
|
|
821
|
+
};
|
|
822
|
+
email: string;
|
|
823
|
+
domain: string;
|
|
824
824
|
phoneNumber?: string | undefined;
|
|
825
825
|
alias?: string | undefined;
|
|
826
826
|
picture?: string | null | undefined;
|
package/dist/main.js
CHANGED
|
@@ -728,10 +728,10 @@ import * as z19 from "zod";
|
|
|
728
728
|
var CreateCompanyForm = z19.object({
|
|
729
729
|
domain: CompanyIdentity.shape._id,
|
|
730
730
|
alias: CompanyIdentity.shape.alias.optional(),
|
|
731
|
-
picture: CompanyIdentity.shape.logo,
|
|
731
|
+
picture: CompanyIdentity.shape.logo.optional(),
|
|
732
732
|
...CompanyIdentity.shape.contact.pick({ email: true, phoneNumber: true }).shape,
|
|
733
733
|
industry: CompanyIdentity.shape.industry,
|
|
734
|
-
address: CompanyIdentity.shape.address
|
|
734
|
+
address: CompanyIdentity.shape.address.nonoptional()
|
|
735
735
|
}).transform((data) => {
|
|
736
736
|
if (!("alias" in data)) {
|
|
737
737
|
data.alias = normalizeCompanyId(data.domain);
|