chopme-frontend-common 1.0.52 → 1.0.54

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.
@@ -0,0 +1,6 @@
1
+ import { z } from "zod";
2
+ export declare const createCategorySchema: z.ZodObject<{
3
+ name: z.ZodString;
4
+ description: z.ZodOptional<z.ZodString>;
5
+ }, z.core.$strip>;
6
+ export type CreateCategoryDto = z.infer<typeof createCategorySchema>;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createCategorySchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.createCategorySchema = zod_1.z.object({
6
+ name: zod_1.z.string().min(1, "Category name is required"),
7
+ description: zod_1.z.string().optional(),
8
+ });
@@ -1,5 +1,7 @@
1
+ export * from "./create-category.dto";
1
2
  export * from "./create-client.dto";
2
3
  export * from "./create-order.dto";
4
+ export * from "./create-restaurant-member.dto";
3
5
  export * from "./email-password-login.dto";
4
6
  export * from "./update-address.dto";
5
7
  export * from "./find-restaurant.dto";
@@ -14,8 +14,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./create-category.dto"), exports);
17
18
  __exportStar(require("./create-client.dto"), exports);
18
19
  __exportStar(require("./create-order.dto"), exports);
20
+ __exportStar(require("./create-restaurant-member.dto"), exports);
19
21
  __exportStar(require("./email-password-login.dto"), exports);
20
22
  __exportStar(require("./update-address.dto"), exports);
21
23
  __exportStar(require("./find-restaurant.dto"), exports);
@@ -53,5 +53,6 @@ export declare enum EnumStatusCode {
53
53
  WALLET_EXISTS_ALREADY = "WALLET_EXISTS_ALREADY",
54
54
  NO_WALLET = "NO_WALLET",
55
55
  UNABLE_TO_START_TRANSFER = "UNABLE_TO_START_TRANSFER",
56
- STARTED_SUCCESSFULLY = "STARTED_SUCCESSFULLY"
56
+ STARTED_SUCCESSFULLY = "STARTED_SUCCESSFULLY",
57
+ CATEGORY_IN_USE = "CATEGORY_IN_USE"
57
58
  }
@@ -58,4 +58,5 @@ var EnumStatusCode;
58
58
  EnumStatusCode["NO_WALLET"] = "NO_WALLET";
59
59
  EnumStatusCode["UNABLE_TO_START_TRANSFER"] = "UNABLE_TO_START_TRANSFER";
60
60
  EnumStatusCode["STARTED_SUCCESSFULLY"] = "STARTED_SUCCESSFULLY";
61
+ EnumStatusCode["CATEGORY_IN_USE"] = "CATEGORY_IN_USE";
61
62
  })(EnumStatusCode || (exports.EnumStatusCode = EnumStatusCode = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chopme-frontend-common",
3
- "version": "1.0.52",
3
+ "version": "1.0.54",
4
4
  "description": "",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",