@bizmap/sdk 0.0.103 → 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 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
- email: string;
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
- } | undefined;
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
- email: string;
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
- } | undefined;
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
@@ -91,7 +91,7 @@ var TicketNo = z5.int().positive().refine(
91
91
  "A ticket no. can only have (10) max digits."
92
92
  ).readonly();
93
93
  var Reason = z5.object({
94
- value: z5.string().trim().max(150),
94
+ value: z5.string().trim().min(3).max(100),
95
95
  lastModified: Timestamp
96
96
  });
97
97
  var Version = z5.int().min(1);
@@ -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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bizmap/sdk",
3
- "version": "0.0.103",
3
+ "version": "0.0.105",
4
4
  "main": "./dist/main.js",
5
5
  "types": "./dist/main.d.ts",
6
6
  "type": "module",