chopme-frontend-common 1.0.48 → 1.0.50

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.
@@ -4,7 +4,7 @@ exports.createClientSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  exports.createClientSchema = zod_1.z
6
6
  .object({
7
- fullName: zod_1.z.string().min(1, "Full name is required"),
7
+ fullName: zod_1.z.string().min(5, "Full name must be at least 5 characters long"),
8
8
  email: zod_1.z.email("Enter a valid email address"),
9
9
  password: zod_1.z
10
10
  .string()
@@ -5,6 +5,6 @@ const zod_1 = require("zod");
5
5
  exports.updateClientInformationSchema = zod_1.z.object({
6
6
  phoneNumber: zod_1.z
7
7
  .string()
8
- .regex(/^\+2376\d{8}$/, "Phone number must be a valid Cameroonian number in the format +237620487789")
8
+ .regex(/^\+2376\d{8}$/, "Phone number must be a valid Cameroonian number in the format +237677452145")
9
9
  .optional(),
10
10
  });
@@ -3,5 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.updateUserProfileSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  exports.updateUserProfileSchema = zod_1.z.object({
6
- fullName: zod_1.z.string().optional(),
6
+ fullName: zod_1.z
7
+ .string()
8
+ .min(5, "Full name must be at least 5 characters long")
9
+ .optional(),
7
10
  });
@@ -7,3 +7,4 @@ export * from "./order.entity";
7
7
  export * from "./restaurant.entity";
8
8
  export * from "./address.entity";
9
9
  export * from "./restaurant-rating.entity";
10
+ export * from "./restaurant-member.entity";
@@ -23,3 +23,4 @@ __exportStar(require("./order.entity"), exports);
23
23
  __exportStar(require("./restaurant.entity"), exports);
24
24
  __exportStar(require("./address.entity"), exports);
25
25
  __exportStar(require("./restaurant-rating.entity"), exports);
26
+ __exportStar(require("./restaurant-member.entity"), exports);
@@ -0,0 +1,12 @@
1
+ import { EnumRestaurantMemberRole } from "../enums/restaurant-member-role";
2
+ import { IUserEntity } from "./user.entity";
3
+ export interface IRestaurantMemberEntity {
4
+ id: string;
5
+ role: EnumRestaurantMemberRole;
6
+ createdAt: Date;
7
+ updatedAt: Date;
8
+ deletedAt?: Date | null;
9
+ }
10
+ export interface IRestaurantMemberWithUserEntity extends IRestaurantMemberEntity {
11
+ user: IUserEntity;
12
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chopme-frontend-common",
3
- "version": "1.0.48",
3
+ "version": "1.0.50",
4
4
  "description": "",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",