chopme-frontend-common 1.0.26 → 1.0.28
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,11 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { EnumRestaurantType } from "../enums/restaurant-types";
|
|
3
|
+
export declare const findRestaurantSchema: z.ZodOptional<z.ZodObject<{
|
|
4
|
+
search: z.ZodOptional<z.ZodString>;
|
|
5
|
+
city: z.ZodOptional<z.ZodString>;
|
|
6
|
+
longitude: z.ZodOptional<z.ZodNumber>;
|
|
7
|
+
latitude: z.ZodOptional<z.ZodNumber>;
|
|
8
|
+
radiusKm: z.ZodOptional<z.ZodNumber>;
|
|
9
|
+
type: z.ZodOptional<z.ZodEnum<typeof EnumRestaurantType>>;
|
|
10
|
+
}, z.core.$strip>>;
|
|
11
|
+
export type FindRestaurantDto = z.infer<typeof findRestaurantSchema>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.findRestaurantSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const restaurant_types_1 = require("../enums/restaurant-types");
|
|
6
|
+
exports.findRestaurantSchema = zod_1.z
|
|
7
|
+
.object({
|
|
8
|
+
search: zod_1.z.string().optional(),
|
|
9
|
+
city: zod_1.z.string().optional(),
|
|
10
|
+
longitude: zod_1.z.number().optional(),
|
|
11
|
+
latitude: zod_1.z.number().optional(),
|
|
12
|
+
radiusKm: zod_1.z.number().optional(),
|
|
13
|
+
type: zod_1.z.nativeEnum(restaurant_types_1.EnumRestaurantType).optional(),
|
|
14
|
+
})
|
|
15
|
+
.optional();
|
package/build/dto/index.d.ts
CHANGED
package/build/dto/index.js
CHANGED
|
@@ -17,3 +17,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./create-client.dto"), exports);
|
|
18
18
|
__exportStar(require("./email-password-login.dto"), exports);
|
|
19
19
|
__exportStar(require("./update-address.dto"), exports);
|
|
20
|
+
__exportStar(require("./find-restaurant.dto"), exports);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "chopme-frontend-common",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.28",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"types": "build/index.d.ts",
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
"author": "",
|
|
21
21
|
"license": "ISC",
|
|
22
22
|
"dependencies": {
|
|
23
|
+
"@headlessui/react": "^2.2.10",
|
|
23
24
|
"@hookform/resolvers": "^5.4.0",
|
|
24
25
|
"@reduxjs/toolkit": "^2.12.0",
|
|
25
26
|
"axios": "^1.18.1",
|