chopme-frontend-common 1.0.61 → 1.0.63
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/build/dto/index.d.ts
CHANGED
package/build/dto/index.js
CHANGED
|
@@ -28,3 +28,4 @@ __exportStar(require("./create-rating.dto"), exports);
|
|
|
28
28
|
__exportStar(require("./update-user-profile.dto"), exports);
|
|
29
29
|
__exportStar(require("./update-password.dto"), exports);
|
|
30
30
|
__exportStar(require("./update-client-information.dto"), exports);
|
|
31
|
+
__exportStar(require("./restaurant-wallet.dto"), exports);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { EnumWalletTypes } from "../enums/wallet-types";
|
|
3
|
+
export declare const addRestaurantWalletSchema: z.ZodObject<{
|
|
4
|
+
type: z.ZodEnum<typeof EnumWalletTypes>;
|
|
5
|
+
number: z.ZodOptional<z.ZodString>;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
export type AddRestaurantWalletDto = z.infer<typeof addRestaurantWalletSchema>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.addRestaurantWalletSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const wallet_types_1 = require("../enums/wallet-types");
|
|
6
|
+
exports.addRestaurantWalletSchema = zod_1.z.object({
|
|
7
|
+
type: zod_1.z.nativeEnum(wallet_types_1.EnumWalletTypes),
|
|
8
|
+
number: zod_1.z
|
|
9
|
+
.string()
|
|
10
|
+
.regex(/^\+2376\d{8}$/, "Phone number must be a valid Cameroonian number in the format +237620487789")
|
|
11
|
+
.optional(),
|
|
12
|
+
});
|