@mac777/project-pinecone-schema 1.1.3 → 1.1.5
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.
|
@@ -45,10 +45,10 @@ exports.stepLogisticsSchema = zod_1.z.object({
|
|
|
45
45
|
});
|
|
46
46
|
// Step 4: Verification
|
|
47
47
|
exports.stepVerifySchema = zod_1.z.object({
|
|
48
|
-
organizer: organizer_schema_1.organizerSchema,
|
|
48
|
+
organizer: organizer_schema_1.organizerSchema.optional(), // Will be auto-populated from host profile
|
|
49
49
|
verification: zod_1.z.object({
|
|
50
|
-
documents: zod_1.z.array(document_schema_1.documentSchema).
|
|
51
|
-
})
|
|
50
|
+
documents: zod_1.z.array(document_schema_1.documentSchema).max(events_constants_1.MAX_DOCUMENTS, `Maximum ${events_constants_1.MAX_DOCUMENTS} documents allowed`).optional() // Documents are optional
|
|
51
|
+
}).optional()
|
|
52
52
|
}).passthrough();
|
|
53
53
|
// Step 5: Tickets
|
|
54
54
|
exports.stepTicketsSchema = zod_1.z.object({
|
|
@@ -1,20 +1,67 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
export declare const sessionSchema: z.ZodObject<{
|
|
3
|
+
date: z.ZodString;
|
|
4
|
+
startTime: z.ZodString;
|
|
5
|
+
endTime: z.ZodString;
|
|
6
|
+
doorsOpen: z.ZodOptional<z.ZodString>;
|
|
7
|
+
}, "strip", z.ZodTypeAny, {
|
|
8
|
+
date: string;
|
|
9
|
+
startTime: string;
|
|
10
|
+
endTime: string;
|
|
11
|
+
doorsOpen?: string | undefined;
|
|
12
|
+
}, {
|
|
13
|
+
date: string;
|
|
14
|
+
startTime: string;
|
|
15
|
+
endTime: string;
|
|
16
|
+
doorsOpen?: string | undefined;
|
|
17
|
+
}>;
|
|
2
18
|
export declare const scheduleSchema: z.ZodObject<{
|
|
3
19
|
startDate: z.ZodString;
|
|
4
20
|
endDate: z.ZodString;
|
|
5
21
|
timezone: z.ZodOptional<z.ZodString>;
|
|
6
22
|
isMultiDay: z.ZodOptional<z.ZodBoolean>;
|
|
7
23
|
doors: z.ZodOptional<z.ZodString>;
|
|
24
|
+
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<["single", "multiple"]>>>;
|
|
25
|
+
sessions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
26
|
+
date: z.ZodString;
|
|
27
|
+
startTime: z.ZodString;
|
|
28
|
+
endTime: z.ZodString;
|
|
29
|
+
doorsOpen: z.ZodOptional<z.ZodString>;
|
|
30
|
+
}, "strip", z.ZodTypeAny, {
|
|
31
|
+
date: string;
|
|
32
|
+
startTime: string;
|
|
33
|
+
endTime: string;
|
|
34
|
+
doorsOpen?: string | undefined;
|
|
35
|
+
}, {
|
|
36
|
+
date: string;
|
|
37
|
+
startTime: string;
|
|
38
|
+
endTime: string;
|
|
39
|
+
doorsOpen?: string | undefined;
|
|
40
|
+
}>, "many">>;
|
|
8
41
|
}, "strip", z.ZodTypeAny, {
|
|
9
42
|
startDate: string;
|
|
10
43
|
endDate: string;
|
|
44
|
+
type?: "single" | "multiple" | undefined;
|
|
11
45
|
timezone?: string | undefined;
|
|
12
46
|
isMultiDay?: boolean | undefined;
|
|
13
47
|
doors?: string | undefined;
|
|
48
|
+
sessions?: {
|
|
49
|
+
date: string;
|
|
50
|
+
startTime: string;
|
|
51
|
+
endTime: string;
|
|
52
|
+
doorsOpen?: string | undefined;
|
|
53
|
+
}[] | undefined;
|
|
14
54
|
}, {
|
|
15
55
|
startDate: string;
|
|
16
56
|
endDate: string;
|
|
57
|
+
type?: "single" | "multiple" | undefined;
|
|
17
58
|
timezone?: string | undefined;
|
|
18
59
|
isMultiDay?: boolean | undefined;
|
|
19
60
|
doors?: string | undefined;
|
|
61
|
+
sessions?: {
|
|
62
|
+
date: string;
|
|
63
|
+
startTime: string;
|
|
64
|
+
endTime: string;
|
|
65
|
+
doorsOpen?: string | undefined;
|
|
66
|
+
}[] | undefined;
|
|
20
67
|
}>;
|
|
@@ -1,11 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.scheduleSchema = void 0;
|
|
3
|
+
exports.scheduleSchema = exports.sessionSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
+
exports.sessionSchema = zod_1.z.object({
|
|
6
|
+
date: zod_1.z.string().datetime(),
|
|
7
|
+
startTime: zod_1.z.string().datetime(),
|
|
8
|
+
endTime: zod_1.z.string().datetime(),
|
|
9
|
+
doorsOpen: zod_1.z.string().datetime().optional()
|
|
10
|
+
});
|
|
5
11
|
exports.scheduleSchema = zod_1.z.object({
|
|
6
12
|
startDate: zod_1.z.string({ required_error: 'Event start date is required' }).datetime('Start date must be a valid ISO datetime string'),
|
|
7
13
|
endDate: zod_1.z.string({ required_error: 'Event end date is required' }).datetime('End date must be a valid ISO datetime string'),
|
|
8
14
|
timezone: zod_1.z.string().optional(),
|
|
9
15
|
isMultiDay: zod_1.z.boolean().optional(),
|
|
10
16
|
doors: zod_1.z.string().optional(),
|
|
17
|
+
type: zod_1.z.enum(['single', 'multiple']).default('single').optional(),
|
|
18
|
+
sessions: zod_1.z.array(exports.sessionSchema).optional()
|
|
11
19
|
});
|
package/package.json
CHANGED
|
@@ -48,10 +48,10 @@ export const stepLogisticsSchema = z.object({
|
|
|
48
48
|
|
|
49
49
|
// Step 4: Verification
|
|
50
50
|
export const stepVerifySchema = z.object({
|
|
51
|
-
organizer: organizerSchema,
|
|
51
|
+
organizer: organizerSchema.optional(), // Will be auto-populated from host profile
|
|
52
52
|
verification: z.object({
|
|
53
|
-
documents: z.array(documentSchema).
|
|
54
|
-
})
|
|
53
|
+
documents: z.array(documentSchema).max(MAX_DOCUMENTS, `Maximum ${MAX_DOCUMENTS} documents allowed`).optional() // Documents are optional
|
|
54
|
+
}).optional()
|
|
55
55
|
}).passthrough();
|
|
56
56
|
|
|
57
57
|
// Step 5: Tickets
|