@bizmap/sdk 0.0.115 → 0.0.116

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
@@ -750,7 +750,7 @@ declare const CompanyInviteList: z.ZodRecord<z.ZodEmail, z.ZodObject<{
750
750
  }, z.core.$strip>>;
751
751
  type CompanyInviteList = z.infer<typeof CompanyInviteList>;
752
752
 
753
- declare const CreateCompanyForm: z.ZodPipe<z.ZodObject<{
753
+ declare const CreateCompanyForm: z.ZodObject<{
754
754
  industry: z.ZodReadonly<z.ZodEnum<{
755
755
  healthcare: "healthcare";
756
756
  }>>;
@@ -766,35 +766,7 @@ declare const CreateCompanyForm: z.ZodPipe<z.ZodObject<{
766
766
  _id: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
767
767
  alias: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
768
768
  logo: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
769
- }, z.core.$strip>, z.ZodTransform<{
770
- industry: "healthcare";
771
- sector: string;
772
- address: {
773
- streetAddress: string;
774
- parish: string;
775
- country: string;
776
- city?: string | undefined;
777
- };
778
- email: string;
779
- _id: string;
780
- phoneNumber?: string | undefined;
781
- alias?: string | undefined;
782
- logo?: string | null | undefined;
783
- }, {
784
- industry: "healthcare";
785
- sector: string;
786
- address: {
787
- streetAddress: string;
788
- parish: string;
789
- country: string;
790
- city?: string | undefined;
791
- };
792
- email: string;
793
- _id: string;
794
- phoneNumber?: string | undefined;
795
- alias?: string | undefined;
796
- logo?: string | null | undefined;
797
- }>>;
769
+ }, z.core.$strip>;
798
770
  type CreateCompanyForm = z.infer<typeof CreateCompanyForm>;
799
771
 
800
772
  /** industry -> sectors */
package/dist/main.js CHANGED
@@ -751,11 +751,6 @@ var CreateCompanyForm = z20.object({
751
751
  industry: CompanyIdentity.shape.industry,
752
752
  sector: CompanyIdentity.shape.sector,
753
753
  address: CompanyIdentity.shape.address.nonoptional()
754
- }).transform((data) => {
755
- if (!("alias" in data)) {
756
- data.alias = normalizeCompanyId(data._id);
757
- }
758
- return data;
759
754
  }).superRefine((data, ctx) => {
760
755
  if (!CompanyIndustry.shape[data.industry].safeParse(data.sector).success) {
761
756
  ctx.addIssue(getInvalidSectorError(data.industry, data.sector));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bizmap/sdk",
3
- "version": "0.0.115",
3
+ "version": "0.0.116",
4
4
  "main": "./dist/main.js",
5
5
  "types": "./dist/main.d.ts",
6
6
  "type": "module",