@deallony/shared 1.1.85 → 1.1.88
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/dist/cjs/dto/events/EventVenue.dto.d.ts +7 -0
- package/dist/cjs/dto/events/EventVenue.dto.js +2 -0
- package/dist/cjs/dto/events/index.d.ts +1 -0
- package/dist/cjs/dto/events/index.js +1 -0
- package/dist/cjs/schema/events/EventVenue.schema.d.ts +36 -0
- package/dist/cjs/schema/events/EventVenue.schema.js +35 -0
- package/dist/cjs/schema/events/index.d.ts +1 -0
- package/dist/cjs/schema/events/index.js +1 -0
- package/dist/esm/dto/events/EventVenue.dto.js +1 -0
- package/dist/esm/dto/events/index.js +1 -0
- package/dist/esm/schema/events/EventVenue.schema.js +32 -0
- package/dist/esm/schema/events/index.js +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { createEventVenueSchema, updateEventVenueSchema, getEventVenueFilterSchema, removeEventVenueSchema, removeManyEventVenuesSchema } from '../../schema/events/EventVenue.schema';
|
|
3
|
+
export type CreateEventVenueDto = z.infer<typeof createEventVenueSchema>;
|
|
4
|
+
export type UpdateEventVenueDto = z.infer<typeof updateEventVenueSchema>;
|
|
5
|
+
export type GetEventVenueFilterDto = z.infer<typeof getEventVenueFilterSchema>;
|
|
6
|
+
export type RemoveEventVenueDto = z.infer<typeof removeEventVenueSchema>;
|
|
7
|
+
export type RemoveManyEventVenuesDto = z.infer<typeof removeManyEventVenuesSchema>;
|
|
@@ -17,3 +17,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./Event.dto"), exports);
|
|
18
18
|
__exportStar(require("./EventTimeline.dto"), exports);
|
|
19
19
|
__exportStar(require("./EventWedding.dto"), exports);
|
|
20
|
+
__exportStar(require("./EventVenue.dto"), exports);
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const createEventVenueSchema: z.ZodObject<{
|
|
3
|
+
name: z.ZodString;
|
|
4
|
+
company_id: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
5
|
+
lat: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
6
|
+
long: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
7
|
+
images: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
8
|
+
url: z.ZodString;
|
|
9
|
+
}, z.core.$loose>>>>;
|
|
10
|
+
supported_event_types: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
11
|
+
social_links: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
export declare const updateEventVenueSchema: z.ZodObject<{
|
|
14
|
+
id: z.ZodCoercedNumber<unknown>;
|
|
15
|
+
name: z.ZodOptional<z.ZodString>;
|
|
16
|
+
company_id: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
17
|
+
lat: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
18
|
+
long: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
19
|
+
images: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
20
|
+
url: z.ZodString;
|
|
21
|
+
}, z.core.$loose>>>>;
|
|
22
|
+
supported_event_types: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
23
|
+
social_links: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
24
|
+
}, z.core.$strip>;
|
|
25
|
+
export declare const getEventVenueFilterSchema: z.ZodObject<{
|
|
26
|
+
search: z.ZodOptional<z.ZodString>;
|
|
27
|
+
company_id: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
28
|
+
page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
29
|
+
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
30
|
+
}, z.core.$strip>;
|
|
31
|
+
export declare const removeEventVenueSchema: z.ZodObject<{
|
|
32
|
+
id: z.ZodCoercedNumber<unknown>;
|
|
33
|
+
}, z.core.$strip>;
|
|
34
|
+
export declare const removeManyEventVenuesSchema: z.ZodObject<{
|
|
35
|
+
ids: z.ZodArray<z.ZodCoercedNumber<unknown>>;
|
|
36
|
+
}, z.core.$strip>;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.removeManyEventVenuesSchema = exports.removeEventVenueSchema = exports.getEventVenueFilterSchema = exports.updateEventVenueSchema = exports.createEventVenueSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.createEventVenueSchema = zod_1.z.object({
|
|
6
|
+
name: zod_1.z.string().trim().min(1).max(255),
|
|
7
|
+
company_id: zod_1.z.coerce.number().int().positive().nullable().optional(),
|
|
8
|
+
lat: zod_1.z.coerce.number().nullable().optional(),
|
|
9
|
+
long: zod_1.z.coerce.number().nullable().optional(),
|
|
10
|
+
images: zod_1.z.array(zod_1.z.object({ url: zod_1.z.string().url() }).passthrough()).nullable().optional(),
|
|
11
|
+
supported_event_types: zod_1.z.array(zod_1.z.string()).nullable().optional(),
|
|
12
|
+
social_links: zod_1.z.record(zod_1.z.string(), zod_1.z.string()).nullable().optional(),
|
|
13
|
+
});
|
|
14
|
+
exports.updateEventVenueSchema = zod_1.z.object({
|
|
15
|
+
id: zod_1.z.coerce.number().int().positive(),
|
|
16
|
+
name: zod_1.z.string().trim().min(1).max(255).optional(),
|
|
17
|
+
company_id: zod_1.z.coerce.number().int().positive().nullable().optional(),
|
|
18
|
+
lat: zod_1.z.coerce.number().nullable().optional(),
|
|
19
|
+
long: zod_1.z.coerce.number().nullable().optional(),
|
|
20
|
+
images: zod_1.z.array(zod_1.z.object({ url: zod_1.z.string().url() }).passthrough()).nullable().optional(),
|
|
21
|
+
supported_event_types: zod_1.z.array(zod_1.z.string()).nullable().optional(),
|
|
22
|
+
social_links: zod_1.z.record(zod_1.z.string(), zod_1.z.string()).nullable().optional(),
|
|
23
|
+
});
|
|
24
|
+
exports.getEventVenueFilterSchema = zod_1.z.object({
|
|
25
|
+
search: zod_1.z.string().trim().optional(),
|
|
26
|
+
company_id: zod_1.z.coerce.number().int().positive().optional(),
|
|
27
|
+
page: zod_1.z.coerce.number().int().positive().optional(),
|
|
28
|
+
limit: zod_1.z.coerce.number().int().positive().max(100).optional(),
|
|
29
|
+
});
|
|
30
|
+
exports.removeEventVenueSchema = zod_1.z.object({
|
|
31
|
+
id: zod_1.z.coerce.number().int().positive(),
|
|
32
|
+
});
|
|
33
|
+
exports.removeManyEventVenuesSchema = zod_1.z.object({
|
|
34
|
+
ids: zod_1.z.array(zod_1.z.coerce.number().int().positive()).min(1),
|
|
35
|
+
});
|
|
@@ -17,3 +17,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./Event.schema"), exports);
|
|
18
18
|
__exportStar(require("./EventTimeline.schema"), exports);
|
|
19
19
|
__exportStar(require("./EventWedding.schema"), exports);
|
|
20
|
+
__exportStar(require("./EventVenue.schema"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export const createEventVenueSchema = z.object({
|
|
3
|
+
name: z.string().trim().min(1).max(255),
|
|
4
|
+
company_id: z.coerce.number().int().positive().nullable().optional(),
|
|
5
|
+
lat: z.coerce.number().nullable().optional(),
|
|
6
|
+
long: z.coerce.number().nullable().optional(),
|
|
7
|
+
images: z.array(z.object({ url: z.string().url() }).passthrough()).nullable().optional(),
|
|
8
|
+
supported_event_types: z.array(z.string()).nullable().optional(),
|
|
9
|
+
social_links: z.record(z.string(), z.string()).nullable().optional(),
|
|
10
|
+
});
|
|
11
|
+
export const updateEventVenueSchema = z.object({
|
|
12
|
+
id: z.coerce.number().int().positive(),
|
|
13
|
+
name: z.string().trim().min(1).max(255).optional(),
|
|
14
|
+
company_id: z.coerce.number().int().positive().nullable().optional(),
|
|
15
|
+
lat: z.coerce.number().nullable().optional(),
|
|
16
|
+
long: z.coerce.number().nullable().optional(),
|
|
17
|
+
images: z.array(z.object({ url: z.string().url() }).passthrough()).nullable().optional(),
|
|
18
|
+
supported_event_types: z.array(z.string()).nullable().optional(),
|
|
19
|
+
social_links: z.record(z.string(), z.string()).nullable().optional(),
|
|
20
|
+
});
|
|
21
|
+
export const getEventVenueFilterSchema = z.object({
|
|
22
|
+
search: z.string().trim().optional(),
|
|
23
|
+
company_id: z.coerce.number().int().positive().optional(),
|
|
24
|
+
page: z.coerce.number().int().positive().optional(),
|
|
25
|
+
limit: z.coerce.number().int().positive().max(100).optional(),
|
|
26
|
+
});
|
|
27
|
+
export const removeEventVenueSchema = z.object({
|
|
28
|
+
id: z.coerce.number().int().positive(),
|
|
29
|
+
});
|
|
30
|
+
export const removeManyEventVenuesSchema = z.object({
|
|
31
|
+
ids: z.array(z.coerce.number().int().positive()).min(1),
|
|
32
|
+
});
|