@deallony/shared 1.2.14 → 1.2.15
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.
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getEventWeddingFilterSchema = exports.saveEventWeddingSchema = exports.updateEventWeddingSchema = exports.createEventWeddingSchema = exports.eventWeddingBaseSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
-
const
|
|
5
|
+
const Phone_schema_1 = require("../common/Phone.schema");
|
|
6
6
|
exports.eventWeddingBaseSchema = zod_1.z.object({
|
|
7
7
|
event_id: zod_1.z.coerce.number().int().positive().optional(),
|
|
8
8
|
cover: zod_1.z.record(zod_1.z.string(), zod_1.z.any()).nullable().optional(),
|
|
@@ -10,8 +10,8 @@ exports.eventWeddingBaseSchema = zod_1.z.object({
|
|
|
10
10
|
last_bride_name: zod_1.z.string().trim().max(255).nullable().optional(),
|
|
11
11
|
first_groom_name: zod_1.z.string().trim().max(255).nullable().optional(),
|
|
12
12
|
last_groom_name: zod_1.z.string().trim().max(255).nullable().optional(),
|
|
13
|
-
bride_phone:
|
|
14
|
-
groom_phone:
|
|
13
|
+
bride_phone: Phone_schema_1.internationalPhoneSchema.nullable().optional(),
|
|
14
|
+
groom_phone: Phone_schema_1.internationalPhoneSchema.nullable().optional(),
|
|
15
15
|
});
|
|
16
16
|
exports.createEventWeddingSchema = exports.eventWeddingBaseSchema;
|
|
17
17
|
exports.updateEventWeddingSchema = exports.eventWeddingBaseSchema.extend({
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
1
|
+
export * from "./Event.schema";
|
|
2
|
+
export * from "./EventRsvp.schema";
|
|
3
|
+
export * from "./EventTimeline.schema";
|
|
4
|
+
export * from "./EventWedding.schema";
|
|
5
|
+
export * from "./EventVenue.schema";
|
|
6
|
+
export { internationalPhoneSchema } from "../common/Phone.schema";
|
|
@@ -14,8 +14,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.internationalPhoneSchema = void 0;
|
|
17
18
|
__exportStar(require("./Event.schema"), exports);
|
|
18
19
|
__exportStar(require("./EventRsvp.schema"), exports);
|
|
19
20
|
__exportStar(require("./EventTimeline.schema"), exports);
|
|
20
21
|
__exportStar(require("./EventWedding.schema"), exports);
|
|
21
22
|
__exportStar(require("./EventVenue.schema"), exports);
|
|
23
|
+
var Phone_schema_1 = require("../common/Phone.schema");
|
|
24
|
+
Object.defineProperty(exports, "internationalPhoneSchema", { enumerable: true, get: function () { return Phone_schema_1.internationalPhoneSchema; } });
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { internationalPhoneSchema } from "../common/
|
|
2
|
+
import { internationalPhoneSchema } from "../common/Phone.schema.js";
|
|
3
3
|
export const eventWeddingBaseSchema = z.object({
|
|
4
4
|
event_id: z.coerce.number().int().positive().optional(),
|
|
5
5
|
cover: z.record(z.string(), z.any()).nullable().optional(),
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
1
|
+
export * from "./Event.schema.js";
|
|
2
|
+
export * from "./EventRsvp.schema.js";
|
|
3
|
+
export * from "./EventTimeline.schema.js";
|
|
4
|
+
export * from "./EventWedding.schema.js";
|
|
5
|
+
export * from "./EventVenue.schema.js";
|
|
6
|
+
export { internationalPhoneSchema } from "../common/Phone.schema.js";
|