@deallony/shared 1.2.25 → 1.2.26
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,4 +1,4 @@
|
|
|
1
|
-
import { z } from
|
|
1
|
+
import { z } from "zod";
|
|
2
2
|
export declare const createEventVenueSchema: z.ZodObject<{
|
|
3
3
|
name: z.ZodString;
|
|
4
4
|
company_id: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
@@ -9,6 +9,7 @@ export declare const createEventVenueSchema: z.ZodObject<{
|
|
|
9
9
|
}, z.core.$loose>>>>;
|
|
10
10
|
supported_event_types: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
11
11
|
social_links: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
12
|
+
location_label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
13
|
}, z.core.$strip>;
|
|
13
14
|
export declare const updateEventVenueSchema: z.ZodObject<{
|
|
14
15
|
id: z.ZodCoercedNumber<unknown>;
|
|
@@ -21,6 +22,7 @@ export declare const updateEventVenueSchema: z.ZodObject<{
|
|
|
21
22
|
}, z.core.$loose>>>>;
|
|
22
23
|
supported_event_types: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
23
24
|
social_links: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
25
|
+
location_label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
26
|
}, z.core.$strip>;
|
|
25
27
|
export declare const getEventVenueFilterSchema: z.ZodObject<{
|
|
26
28
|
search: z.ZodOptional<z.ZodString>;
|
|
@@ -7,9 +7,13 @@ exports.createEventVenueSchema = zod_1.z.object({
|
|
|
7
7
|
company_id: zod_1.z.coerce.number().int().positive().nullable().optional(),
|
|
8
8
|
lat: zod_1.z.coerce.number().nullable().optional(),
|
|
9
9
|
long: zod_1.z.coerce.number().nullable().optional(),
|
|
10
|
-
images: zod_1.z
|
|
10
|
+
images: zod_1.z
|
|
11
|
+
.array(zod_1.z.object({ url: zod_1.z.string().url() }).passthrough())
|
|
12
|
+
.nullable()
|
|
13
|
+
.optional(),
|
|
11
14
|
supported_event_types: zod_1.z.array(zod_1.z.string()).nullable().optional(),
|
|
12
15
|
social_links: zod_1.z.record(zod_1.z.string(), zod_1.z.string()).nullable().optional(),
|
|
16
|
+
location_label: zod_1.z.string().trim().max(500).nullable().optional(),
|
|
13
17
|
});
|
|
14
18
|
exports.updateEventVenueSchema = zod_1.z.object({
|
|
15
19
|
id: zod_1.z.coerce.number().int().positive(),
|
|
@@ -17,9 +21,13 @@ exports.updateEventVenueSchema = zod_1.z.object({
|
|
|
17
21
|
company_id: zod_1.z.coerce.number().int().positive().nullable().optional(),
|
|
18
22
|
lat: zod_1.z.coerce.number().nullable().optional(),
|
|
19
23
|
long: zod_1.z.coerce.number().nullable().optional(),
|
|
20
|
-
images: zod_1.z
|
|
24
|
+
images: zod_1.z
|
|
25
|
+
.array(zod_1.z.object({ url: zod_1.z.string().url() }).passthrough())
|
|
26
|
+
.nullable()
|
|
27
|
+
.optional(),
|
|
21
28
|
supported_event_types: zod_1.z.array(zod_1.z.string()).nullable().optional(),
|
|
22
29
|
social_links: zod_1.z.record(zod_1.z.string(), zod_1.z.string()).nullable().optional(),
|
|
30
|
+
location_label: zod_1.z.string().trim().max(500).nullable().optional(),
|
|
23
31
|
});
|
|
24
32
|
exports.getEventVenueFilterSchema = zod_1.z.object({
|
|
25
33
|
search: zod_1.z.string().trim().optional(),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ICompany } from
|
|
1
|
+
import type { ICompany } from "../company/Company";
|
|
2
2
|
export type IEventVenue = {
|
|
3
3
|
id?: number;
|
|
4
4
|
company_id?: number | null;
|
|
@@ -11,5 +11,6 @@ export type IEventVenue = {
|
|
|
11
11
|
}> | null;
|
|
12
12
|
supported_event_types: string[] | null;
|
|
13
13
|
social_links: Record<string, string> | null;
|
|
14
|
+
location_label?: string | null;
|
|
14
15
|
company?: ICompany | null;
|
|
15
16
|
};
|
|
@@ -1,12 +1,16 @@
|
|
|
1
|
-
import { z } from
|
|
1
|
+
import { z } from "zod";
|
|
2
2
|
export const createEventVenueSchema = z.object({
|
|
3
3
|
name: z.string().trim().min(1).max(255),
|
|
4
4
|
company_id: z.coerce.number().int().positive().nullable().optional(),
|
|
5
5
|
lat: z.coerce.number().nullable().optional(),
|
|
6
6
|
long: z.coerce.number().nullable().optional(),
|
|
7
|
-
images: z
|
|
7
|
+
images: z
|
|
8
|
+
.array(z.object({ url: z.string().url() }).passthrough())
|
|
9
|
+
.nullable()
|
|
10
|
+
.optional(),
|
|
8
11
|
supported_event_types: z.array(z.string()).nullable().optional(),
|
|
9
12
|
social_links: z.record(z.string(), z.string()).nullable().optional(),
|
|
13
|
+
location_label: z.string().trim().max(500).nullable().optional(),
|
|
10
14
|
});
|
|
11
15
|
export const updateEventVenueSchema = z.object({
|
|
12
16
|
id: z.coerce.number().int().positive(),
|
|
@@ -14,9 +18,13 @@ export const updateEventVenueSchema = z.object({
|
|
|
14
18
|
company_id: z.coerce.number().int().positive().nullable().optional(),
|
|
15
19
|
lat: z.coerce.number().nullable().optional(),
|
|
16
20
|
long: z.coerce.number().nullable().optional(),
|
|
17
|
-
images: z
|
|
21
|
+
images: z
|
|
22
|
+
.array(z.object({ url: z.string().url() }).passthrough())
|
|
23
|
+
.nullable()
|
|
24
|
+
.optional(),
|
|
18
25
|
supported_event_types: z.array(z.string()).nullable().optional(),
|
|
19
26
|
social_links: z.record(z.string(), z.string()).nullable().optional(),
|
|
27
|
+
location_label: z.string().trim().max(500).nullable().optional(),
|
|
20
28
|
});
|
|
21
29
|
export const getEventVenueFilterSchema = z.object({
|
|
22
30
|
search: z.string().trim().optional(),
|