@deallony/shared 1.1.66 → 1.1.69
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/constants/events/Event.d.ts +2 -0
- package/dist/cjs/constants/events/Event.js +16 -0
- package/dist/cjs/constants/events/EventTemplate.d.ts +18 -0
- package/dist/cjs/constants/events/EventTemplate.js +11 -0
- package/dist/cjs/constants/events/EventType.d.ts +16 -0
- package/dist/cjs/constants/events/EventType.js +10 -0
- package/dist/cjs/constants/events/EventWedding.d.ts +2 -0
- package/dist/cjs/constants/events/EventWedding.js +12 -0
- package/dist/cjs/constants/events/index.d.ts +4 -0
- package/dist/cjs/constants/events/index.js +20 -0
- package/dist/cjs/constants/index.d.ts +1 -0
- package/dist/cjs/constants/index.js +17 -0
- package/dist/cjs/dto/events/Event.dto.d.ts +81 -2
- package/dist/cjs/dto/events/Event.dto.js +3 -14
- package/dist/cjs/dto/events/index.d.ts +0 -2
- package/dist/cjs/dto/events/index.js +0 -2
- package/dist/esm/constants/events/Event.js +13 -0
- package/dist/esm/constants/events/EventTemplate.js +8 -0
- package/dist/esm/constants/events/EventType.js +7 -0
- package/dist/esm/constants/events/EventWedding.js +9 -0
- package/dist/esm/constants/events/index.js +4 -0
- package/dist/esm/constants/index.js +1 -0
- package/dist/esm/dto/events/Event.dto.js +2 -13
- package/dist/esm/dto/events/index.js +0 -2
- package/package.json +1 -1
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.emptyEvent = void 0;
|
|
4
|
+
exports.emptyEvent = {
|
|
5
|
+
id: 0,
|
|
6
|
+
lat: null,
|
|
7
|
+
long: null,
|
|
8
|
+
start_date: null,
|
|
9
|
+
end_date: null,
|
|
10
|
+
is_published: false,
|
|
11
|
+
event_type: null,
|
|
12
|
+
event_template: null,
|
|
13
|
+
slug: '',
|
|
14
|
+
wedding: null,
|
|
15
|
+
timeline: null,
|
|
16
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare const EventTemplate: {
|
|
2
|
+
WEDDING: {
|
|
3
|
+
value: string;
|
|
4
|
+
name: {
|
|
5
|
+
en: string;
|
|
6
|
+
ar: string;
|
|
7
|
+
};
|
|
8
|
+
event_types: string[];
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export declare const EventTemplateOptions: {
|
|
12
|
+
value: string;
|
|
13
|
+
name: {
|
|
14
|
+
en: string;
|
|
15
|
+
ar: string;
|
|
16
|
+
};
|
|
17
|
+
event_types: string[];
|
|
18
|
+
}[];
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EventTemplateOptions = exports.EventTemplate = void 0;
|
|
4
|
+
exports.EventTemplate = {
|
|
5
|
+
WEDDING: { value: 'wedding-1', name: { en: 'Wedding', ar: 'زفاف' }, event_types: ['wedding'] },
|
|
6
|
+
};
|
|
7
|
+
exports.EventTemplateOptions = Object.values(exports.EventTemplate).map((type) => ({
|
|
8
|
+
value: type.value,
|
|
9
|
+
name: type.name,
|
|
10
|
+
event_types: type.event_types,
|
|
11
|
+
}));
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EventTypeOptions = exports.EventTypes = void 0;
|
|
4
|
+
exports.EventTypes = {
|
|
5
|
+
WEDDING: { value: 'wedding', name: { en: 'Wedding', ar: 'زفاف' } },
|
|
6
|
+
};
|
|
7
|
+
exports.EventTypeOptions = Object.values(exports.EventTypes).map((type) => ({
|
|
8
|
+
value: type.value,
|
|
9
|
+
name: type.name,
|
|
10
|
+
}));
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.emptyEventWedding = void 0;
|
|
4
|
+
exports.emptyEventWedding = {
|
|
5
|
+
id: 0,
|
|
6
|
+
event_id: 0,
|
|
7
|
+
cover: null,
|
|
8
|
+
first_bride_name: null,
|
|
9
|
+
last_bride_name: null,
|
|
10
|
+
first_groom_name: null,
|
|
11
|
+
last_groom_name: null,
|
|
12
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./Event"), exports);
|
|
18
|
+
__exportStar(require("./EventType"), exports);
|
|
19
|
+
__exportStar(require("./EventWedding"), exports);
|
|
20
|
+
__exportStar(require("./EventTemplate"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './events';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./events"), exports);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import type
|
|
2
|
+
import { type IEventWedding } from './EventWedding.dto';
|
|
3
3
|
import type { IEventTimeline } from './EventTimeline.dto';
|
|
4
4
|
export declare const eventBaseSchema: z.ZodObject<{
|
|
5
5
|
lat: z.ZodNullable<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
|
|
@@ -10,6 +10,22 @@ export declare const eventBaseSchema: z.ZodObject<{
|
|
|
10
10
|
event_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
11
|
event_template: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
12
|
slug: z.ZodString;
|
|
13
|
+
wedding: z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
14
|
+
event_id: z.ZodCoercedNumber<unknown>;
|
|
15
|
+
cover: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
16
|
+
first_bride_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
last_bride_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
first_groom_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
last_groom_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
21
|
+
event_id: z.ZodCoercedNumber<unknown>;
|
|
22
|
+
cover: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
23
|
+
first_bride_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
+
last_bride_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
|
+
first_groom_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
|
+
last_groom_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
|
+
id: z.ZodCoercedNumber<unknown>;
|
|
28
|
+
}, z.core.$strip>]>>>;
|
|
13
29
|
}, z.core.$strip>;
|
|
14
30
|
export declare const createEventSchema: z.ZodObject<{
|
|
15
31
|
lat: z.ZodNullable<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
|
|
@@ -20,6 +36,22 @@ export declare const createEventSchema: z.ZodObject<{
|
|
|
20
36
|
event_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
37
|
event_template: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
38
|
slug: z.ZodString;
|
|
39
|
+
wedding: z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
40
|
+
event_id: z.ZodCoercedNumber<unknown>;
|
|
41
|
+
cover: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
42
|
+
first_bride_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
43
|
+
last_bride_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
44
|
+
first_groom_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
45
|
+
last_groom_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
46
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
47
|
+
event_id: z.ZodCoercedNumber<unknown>;
|
|
48
|
+
cover: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
49
|
+
first_bride_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
50
|
+
last_bride_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
51
|
+
first_groom_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
52
|
+
last_groom_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
53
|
+
id: z.ZodCoercedNumber<unknown>;
|
|
54
|
+
}, z.core.$strip>]>>>;
|
|
23
55
|
}, z.core.$strip>;
|
|
24
56
|
export declare const updateEventSchema: z.ZodObject<{
|
|
25
57
|
lat: z.ZodNullable<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
|
|
@@ -30,6 +62,22 @@ export declare const updateEventSchema: z.ZodObject<{
|
|
|
30
62
|
event_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31
63
|
event_template: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
32
64
|
slug: z.ZodString;
|
|
65
|
+
wedding: z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
66
|
+
event_id: z.ZodCoercedNumber<unknown>;
|
|
67
|
+
cover: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
68
|
+
first_bride_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
69
|
+
last_bride_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
70
|
+
first_groom_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
71
|
+
last_groom_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
72
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
73
|
+
event_id: z.ZodCoercedNumber<unknown>;
|
|
74
|
+
cover: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
75
|
+
first_bride_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
76
|
+
last_bride_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
77
|
+
first_groom_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
78
|
+
last_groom_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
79
|
+
id: z.ZodCoercedNumber<unknown>;
|
|
80
|
+
}, z.core.$strip>]>>>;
|
|
33
81
|
id: z.ZodCoercedNumber<unknown>;
|
|
34
82
|
}, z.core.$strip>;
|
|
35
83
|
export declare const saveEventSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -41,6 +89,22 @@ export declare const saveEventSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
41
89
|
event_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
42
90
|
event_template: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
43
91
|
slug: z.ZodString;
|
|
92
|
+
wedding: z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
93
|
+
event_id: z.ZodCoercedNumber<unknown>;
|
|
94
|
+
cover: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
95
|
+
first_bride_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
96
|
+
last_bride_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
97
|
+
first_groom_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
98
|
+
last_groom_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
99
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
100
|
+
event_id: z.ZodCoercedNumber<unknown>;
|
|
101
|
+
cover: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
102
|
+
first_bride_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
103
|
+
last_bride_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
104
|
+
first_groom_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
105
|
+
last_groom_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
106
|
+
id: z.ZodCoercedNumber<unknown>;
|
|
107
|
+
}, z.core.$strip>]>>>;
|
|
44
108
|
}, z.core.$strip>, z.ZodObject<{
|
|
45
109
|
lat: z.ZodNullable<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
|
|
46
110
|
long: z.ZodNullable<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
|
|
@@ -50,6 +114,22 @@ export declare const saveEventSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
50
114
|
event_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
51
115
|
event_template: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
52
116
|
slug: z.ZodString;
|
|
117
|
+
wedding: z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
118
|
+
event_id: z.ZodCoercedNumber<unknown>;
|
|
119
|
+
cover: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
120
|
+
first_bride_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
121
|
+
last_bride_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
122
|
+
first_groom_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
123
|
+
last_groom_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
124
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
125
|
+
event_id: z.ZodCoercedNumber<unknown>;
|
|
126
|
+
cover: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
127
|
+
first_bride_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
128
|
+
last_bride_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
129
|
+
first_groom_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
130
|
+
last_groom_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
131
|
+
id: z.ZodCoercedNumber<unknown>;
|
|
132
|
+
}, z.core.$strip>]>>>;
|
|
53
133
|
id: z.ZodCoercedNumber<unknown>;
|
|
54
134
|
}, z.core.$strip>]>;
|
|
55
135
|
export declare const getEventsFilterSchema: z.ZodObject<{
|
|
@@ -75,4 +155,3 @@ export type IEvent = {
|
|
|
75
155
|
wedding?: IEventWedding | null;
|
|
76
156
|
timeline?: IEventTimeline | null;
|
|
77
157
|
};
|
|
78
|
-
export declare const emptyEvent: IEvent;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.getEventsFilterSchema = exports.saveEventSchema = exports.updateEventSchema = exports.createEventSchema = exports.eventBaseSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
+
const EventWedding_dto_1 = require("./EventWedding.dto");
|
|
5
6
|
exports.eventBaseSchema = zod_1.z.object({
|
|
6
7
|
lat: zod_1.z.coerce.number().optional().nullable(),
|
|
7
8
|
long: zod_1.z.coerce.number().optional().nullable(),
|
|
@@ -11,6 +12,7 @@ exports.eventBaseSchema = zod_1.z.object({
|
|
|
11
12
|
event_type: zod_1.z.string().trim().max(255).nullable().optional(),
|
|
12
13
|
event_template: zod_1.z.string().trim().max(255).nullable().optional(),
|
|
13
14
|
slug: zod_1.z.string().trim().min(1).max(255),
|
|
15
|
+
wedding: EventWedding_dto_1.saveEventWeddingSchema.optional().nullable(),
|
|
14
16
|
});
|
|
15
17
|
exports.createEventSchema = exports.eventBaseSchema;
|
|
16
18
|
exports.updateEventSchema = exports.eventBaseSchema.extend({
|
|
@@ -23,16 +25,3 @@ exports.getEventsFilterSchema = zod_1.z.object({
|
|
|
23
25
|
page: zod_1.z.coerce.number().int().positive().optional(),
|
|
24
26
|
limit: zod_1.z.coerce.number().int().positive().max(100).optional(),
|
|
25
27
|
});
|
|
26
|
-
exports.emptyEvent = {
|
|
27
|
-
id: 0,
|
|
28
|
-
lat: null,
|
|
29
|
-
long: null,
|
|
30
|
-
start_date: null,
|
|
31
|
-
end_date: null,
|
|
32
|
-
is_published: false,
|
|
33
|
-
event_type: null,
|
|
34
|
-
event_template: null,
|
|
35
|
-
slug: '',
|
|
36
|
-
wedding: null,
|
|
37
|
-
timeline: null,
|
|
38
|
-
};
|
|
@@ -15,7 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./Event.dto"), exports);
|
|
18
|
-
__exportStar(require("./EventTemplate.dto"), exports);
|
|
19
18
|
__exportStar(require("./EventTimeline.dto"), exports);
|
|
20
19
|
__exportStar(require("./EventWedding.dto"), exports);
|
|
21
|
-
__exportStar(require("./EventType.dto"), exports);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export const EventTemplate = {
|
|
2
|
+
WEDDING: { value: 'wedding-1', name: { en: 'Wedding', ar: 'زفاف' }, event_types: ['wedding'] },
|
|
3
|
+
};
|
|
4
|
+
export const EventTemplateOptions = Object.values(EventTemplate).map((type) => ({
|
|
5
|
+
value: type.value,
|
|
6
|
+
name: type.name,
|
|
7
|
+
event_types: type.event_types,
|
|
8
|
+
}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './events/index.js';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { saveEventWeddingSchema } from './EventWedding.dto.js';
|
|
2
3
|
export const eventBaseSchema = z.object({
|
|
3
4
|
lat: z.coerce.number().optional().nullable(),
|
|
4
5
|
long: z.coerce.number().optional().nullable(),
|
|
@@ -8,6 +9,7 @@ export const eventBaseSchema = z.object({
|
|
|
8
9
|
event_type: z.string().trim().max(255).nullable().optional(),
|
|
9
10
|
event_template: z.string().trim().max(255).nullable().optional(),
|
|
10
11
|
slug: z.string().trim().min(1).max(255),
|
|
12
|
+
wedding: saveEventWeddingSchema.optional().nullable(),
|
|
11
13
|
});
|
|
12
14
|
export const createEventSchema = eventBaseSchema;
|
|
13
15
|
export const updateEventSchema = eventBaseSchema.extend({
|
|
@@ -20,16 +22,3 @@ export const getEventsFilterSchema = z.object({
|
|
|
20
22
|
page: z.coerce.number().int().positive().optional(),
|
|
21
23
|
limit: z.coerce.number().int().positive().max(100).optional(),
|
|
22
24
|
});
|
|
23
|
-
export const emptyEvent = {
|
|
24
|
-
id: 0,
|
|
25
|
-
lat: null,
|
|
26
|
-
long: null,
|
|
27
|
-
start_date: null,
|
|
28
|
-
end_date: null,
|
|
29
|
-
is_published: false,
|
|
30
|
-
event_type: null,
|
|
31
|
-
event_template: null,
|
|
32
|
-
slug: '',
|
|
33
|
-
wedding: null,
|
|
34
|
-
timeline: null,
|
|
35
|
-
};
|