@bizmap/sdk 0.0.111 → 0.0.112
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 +6 -6
- package/dist/main.js +3 -3
- package/package.json +1 -1
package/dist/main.d.ts
CHANGED
|
@@ -774,9 +774,9 @@ declare const CreateCompanyForm: z.ZodPipe<z.ZodObject<{
|
|
|
774
774
|
}, z.core.$strip>>>;
|
|
775
775
|
email: z.ZodEmail;
|
|
776
776
|
phoneNumber: z.ZodOptional<z.ZodString>;
|
|
777
|
-
|
|
777
|
+
_id: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
778
778
|
alias: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
779
|
-
|
|
779
|
+
logo: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
780
780
|
}, z.core.$strip>, z.ZodTransform<{
|
|
781
781
|
industry: "healthcare";
|
|
782
782
|
address: {
|
|
@@ -786,10 +786,10 @@ declare const CreateCompanyForm: z.ZodPipe<z.ZodObject<{
|
|
|
786
786
|
city?: string | undefined;
|
|
787
787
|
};
|
|
788
788
|
email: string;
|
|
789
|
-
|
|
789
|
+
_id: string;
|
|
790
790
|
phoneNumber?: string | undefined;
|
|
791
791
|
alias?: string | undefined;
|
|
792
|
-
|
|
792
|
+
logo?: string | null | undefined;
|
|
793
793
|
}, {
|
|
794
794
|
industry: "healthcare";
|
|
795
795
|
address: {
|
|
@@ -799,10 +799,10 @@ declare const CreateCompanyForm: z.ZodPipe<z.ZodObject<{
|
|
|
799
799
|
city?: string | undefined;
|
|
800
800
|
};
|
|
801
801
|
email: string;
|
|
802
|
-
|
|
802
|
+
_id: string;
|
|
803
803
|
phoneNumber?: string | undefined;
|
|
804
804
|
alias?: string | undefined;
|
|
805
|
-
|
|
805
|
+
logo?: string | null | undefined;
|
|
806
806
|
}>>;
|
|
807
807
|
type CreateCompanyForm = z.infer<typeof CreateCompanyForm>;
|
|
808
808
|
|
package/dist/main.js
CHANGED
|
@@ -730,15 +730,15 @@ var CompanyInviteList = z18.record(
|
|
|
730
730
|
// src/schemas/company/utils/CreateCompanyForm.ts
|
|
731
731
|
import * as z19 from "zod";
|
|
732
732
|
var CreateCompanyForm = z19.object({
|
|
733
|
-
|
|
733
|
+
_id: CompanyIdentity.shape._id,
|
|
734
734
|
alias: CompanyIdentity.shape.alias.optional(),
|
|
735
|
-
|
|
735
|
+
logo: CompanyIdentity.shape.logo.optional(),
|
|
736
736
|
...CompanyIdentity.shape.contact.pick({ email: true, phoneNumber: true }).shape,
|
|
737
737
|
industry: CompanyIdentity.shape.industry,
|
|
738
738
|
address: CompanyIdentity.shape.address.nonoptional()
|
|
739
739
|
}).transform((data) => {
|
|
740
740
|
if (!("alias" in data)) {
|
|
741
|
-
data.alias = normalizeCompanyId(data.
|
|
741
|
+
data.alias = normalizeCompanyId(data._id);
|
|
742
742
|
}
|
|
743
743
|
return data;
|
|
744
744
|
});
|