chopme-frontend-common 1.0.62 → 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.
@@ -1,16 +1,7 @@
1
1
  import { z } from "zod";
2
- import { EnumNetwork } from "../enums/networks";
3
2
  import { EnumWalletTypes } from "../enums/wallet-types";
4
- export declare const mobileWalletDataInputSchema: z.ZodObject<{
5
- network: z.ZodEnum<typeof EnumNetwork>;
6
- number: z.ZodString;
7
- }, z.core.$strip>;
8
3
  export declare const addRestaurantWalletSchema: z.ZodObject<{
9
4
  type: z.ZodEnum<typeof EnumWalletTypes>;
10
- mobileData: z.ZodOptional<z.ZodObject<{
11
- network: z.ZodEnum<typeof EnumNetwork>;
12
- number: z.ZodString;
13
- }, z.core.$strip>>;
5
+ number: z.ZodOptional<z.ZodString>;
14
6
  }, z.core.$strip>;
15
- export type MobileWalletDataInputDto = z.infer<typeof mobileWalletDataInputSchema>;
16
7
  export type AddRestaurantWalletDto = z.infer<typeof addRestaurantWalletSchema>;
@@ -1,16 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.addRestaurantWalletSchema = exports.mobileWalletDataInputSchema = void 0;
3
+ exports.addRestaurantWalletSchema = void 0;
4
4
  const zod_1 = require("zod");
5
- const networks_1 = require("../enums/networks");
6
5
  const wallet_types_1 = require("../enums/wallet-types");
7
- exports.mobileWalletDataInputSchema = zod_1.z.object({
8
- network: zod_1.z.nativeEnum(networks_1.EnumNetwork),
9
- number: zod_1.z
10
- .string()
11
- .regex(/^\+2376\d{8}$/, "Phone number must be a valid Cameroonian number in the format +237620487789"),
12
- });
13
6
  exports.addRestaurantWalletSchema = zod_1.z.object({
14
7
  type: zod_1.z.nativeEnum(wallet_types_1.EnumWalletTypes),
15
- mobileData: exports.mobileWalletDataInputSchema.optional(),
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(),
16
12
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chopme-frontend-common",
3
- "version": "1.0.62",
3
+ "version": "1.0.63",
4
4
  "description": "",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",