@mac777/project-pinecone-schema 1.0.4 → 1.0.6
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.
|
@@ -32,7 +32,6 @@ export declare const limitsSchema: z.ZodObject<{
|
|
|
32
32
|
export declare const displayTicketSchema: z.ZodObject<{
|
|
33
33
|
_id: z.ZodOptional<z.ZodString>;
|
|
34
34
|
name: z.ZodString;
|
|
35
|
-
description: z.ZodOptional<z.ZodString>;
|
|
36
35
|
price: z.ZodObject<{
|
|
37
36
|
amount: z.ZodNumber;
|
|
38
37
|
currency: z.ZodDefault<z.ZodString>;
|
|
@@ -44,16 +43,6 @@ export declare const displayTicketSchema: z.ZodObject<{
|
|
|
44
43
|
currency?: string | undefined;
|
|
45
44
|
}>;
|
|
46
45
|
quantity: z.ZodNumber;
|
|
47
|
-
salesWindow: z.ZodOptional<z.ZodObject<{
|
|
48
|
-
startDate: z.ZodOptional<z.ZodString>;
|
|
49
|
-
endDate: z.ZodOptional<z.ZodString>;
|
|
50
|
-
}, "strip", z.ZodTypeAny, {
|
|
51
|
-
startDate?: string | undefined;
|
|
52
|
-
endDate?: string | undefined;
|
|
53
|
-
}, {
|
|
54
|
-
startDate?: string | undefined;
|
|
55
|
-
endDate?: string | undefined;
|
|
56
|
-
}>>;
|
|
57
46
|
limits: z.ZodOptional<z.ZodObject<{
|
|
58
47
|
minPerOrder: z.ZodDefault<z.ZodNumber>;
|
|
59
48
|
maxPerOrder: z.ZodDefault<z.ZodNumber>;
|
|
@@ -64,13 +53,23 @@ export declare const displayTicketSchema: z.ZodObject<{
|
|
|
64
53
|
minPerOrder?: number | undefined;
|
|
65
54
|
maxPerOrder?: number | undefined;
|
|
66
55
|
}>>;
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
56
|
+
sold: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
57
|
+
reserved: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
58
|
+
wristbandColor: z.ZodOptional<z.ZodString>;
|
|
59
|
+
isVisible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
60
|
+
isActive: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
72
61
|
benefits: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
73
62
|
tier: z.ZodDefault<z.ZodString>;
|
|
63
|
+
salesWindow: z.ZodOptional<z.ZodObject<{
|
|
64
|
+
startDate: z.ZodOptional<z.ZodString>;
|
|
65
|
+
endDate: z.ZodOptional<z.ZodString>;
|
|
66
|
+
}, "strip", z.ZodTypeAny, {
|
|
67
|
+
startDate?: string | undefined;
|
|
68
|
+
endDate?: string | undefined;
|
|
69
|
+
}, {
|
|
70
|
+
startDate?: string | undefined;
|
|
71
|
+
endDate?: string | undefined;
|
|
72
|
+
}>>;
|
|
74
73
|
}, "strip", z.ZodTypeAny, {
|
|
75
74
|
name: string;
|
|
76
75
|
price: {
|
|
@@ -79,22 +78,21 @@ export declare const displayTicketSchema: z.ZodObject<{
|
|
|
79
78
|
};
|
|
80
79
|
quantity: number;
|
|
81
80
|
tier: string;
|
|
82
|
-
status?: "active" | "inactive" | undefined;
|
|
83
81
|
_id?: string | undefined;
|
|
84
|
-
description?: string | undefined;
|
|
85
|
-
salesWindow?: {
|
|
86
|
-
startDate?: string | undefined;
|
|
87
|
-
endDate?: string | undefined;
|
|
88
|
-
} | undefined;
|
|
89
82
|
limits?: {
|
|
90
83
|
minPerOrder: number;
|
|
91
84
|
maxPerOrder: number;
|
|
92
85
|
} | undefined;
|
|
93
|
-
remaining?: number | undefined;
|
|
94
86
|
sold?: number | undefined;
|
|
95
87
|
reserved?: number | undefined;
|
|
96
|
-
|
|
88
|
+
wristbandColor?: string | undefined;
|
|
89
|
+
isVisible?: boolean | undefined;
|
|
90
|
+
isActive?: boolean | undefined;
|
|
97
91
|
benefits?: string[] | undefined;
|
|
92
|
+
salesWindow?: {
|
|
93
|
+
startDate?: string | undefined;
|
|
94
|
+
endDate?: string | undefined;
|
|
95
|
+
} | undefined;
|
|
98
96
|
}, {
|
|
99
97
|
name: string;
|
|
100
98
|
price: {
|
|
@@ -102,21 +100,20 @@ export declare const displayTicketSchema: z.ZodObject<{
|
|
|
102
100
|
currency?: string | undefined;
|
|
103
101
|
};
|
|
104
102
|
quantity: number;
|
|
105
|
-
status?: "active" | "inactive" | undefined;
|
|
106
103
|
_id?: string | undefined;
|
|
107
|
-
description?: string | undefined;
|
|
108
|
-
salesWindow?: {
|
|
109
|
-
startDate?: string | undefined;
|
|
110
|
-
endDate?: string | undefined;
|
|
111
|
-
} | undefined;
|
|
112
104
|
limits?: {
|
|
113
105
|
minPerOrder?: number | undefined;
|
|
114
106
|
maxPerOrder?: number | undefined;
|
|
115
107
|
} | undefined;
|
|
116
|
-
remaining?: number | undefined;
|
|
117
108
|
sold?: number | undefined;
|
|
118
109
|
reserved?: number | undefined;
|
|
119
|
-
|
|
110
|
+
wristbandColor?: string | undefined;
|
|
111
|
+
isVisible?: boolean | undefined;
|
|
112
|
+
isActive?: boolean | undefined;
|
|
120
113
|
benefits?: string[] | undefined;
|
|
121
114
|
tier?: string | undefined;
|
|
115
|
+
salesWindow?: {
|
|
116
|
+
startDate?: string | undefined;
|
|
117
|
+
endDate?: string | undefined;
|
|
118
|
+
} | undefined;
|
|
122
119
|
}>;
|
|
@@ -17,16 +17,15 @@ exports.limitsSchema = zod_1.z.object({
|
|
|
17
17
|
exports.displayTicketSchema = zod_1.z.object({
|
|
18
18
|
_id: zod_1.z.string().optional(),
|
|
19
19
|
name: zod_1.z.string({ required_error: 'Ticket name is required' }),
|
|
20
|
-
description: zod_1.z.string().optional(),
|
|
21
20
|
price: exports.priceSchema,
|
|
22
21
|
quantity: zod_1.z.number({ required_error: 'Ticket quantity is required' }).int('Quantity must be an integer').positive('Quantity must be positive'),
|
|
23
|
-
salesWindow: exports.salesWindowSchema.optional(),
|
|
24
22
|
limits: exports.limitsSchema.optional(),
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
23
|
+
sold: zod_1.z.number().default(0).optional(),
|
|
24
|
+
reserved: zod_1.z.number().default(0).optional(),
|
|
25
|
+
wristbandColor: zod_1.z.string().optional(),
|
|
26
|
+
isVisible: zod_1.z.boolean().default(true).optional(),
|
|
27
|
+
isActive: zod_1.z.boolean().default(true).optional(),
|
|
30
28
|
benefits: zod_1.z.array(zod_1.z.string(), { required_error: 'Benefits must be an array of strings' }).optional(),
|
|
31
|
-
tier: zod_1.z.string({ required_error: 'Ticket tier
|
|
29
|
+
tier: zod_1.z.string({ required_error: 'Ticket tier must be early_bird, regular or vip' }).default('regular'),
|
|
30
|
+
salesWindow: exports.salesWindowSchema.optional(),
|
|
32
31
|
});
|
package/package.json
CHANGED
|
@@ -18,16 +18,15 @@ export const limitsSchema = z.object({
|
|
|
18
18
|
export const displayTicketSchema = z.object({
|
|
19
19
|
_id: z.string().optional(),
|
|
20
20
|
name: z.string({ required_error: 'Ticket name is required' }),
|
|
21
|
-
description: z.string().optional(),
|
|
22
21
|
price: priceSchema,
|
|
23
22
|
quantity: z.number({ required_error: 'Ticket quantity is required' }).int('Quantity must be an integer').positive('Quantity must be positive'),
|
|
24
|
-
salesWindow: salesWindowSchema.optional(),
|
|
25
23
|
limits: limitsSchema.optional(),
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
24
|
+
sold: z.number().default(0).optional(),
|
|
25
|
+
reserved: z.number().default(0).optional(),
|
|
26
|
+
wristbandColor: z.string().optional(),
|
|
27
|
+
isVisible: z.boolean().default(true).optional(),
|
|
28
|
+
isActive: z.boolean().default(true).optional(),
|
|
31
29
|
benefits: z.array(z.string(), { required_error: 'Benefits must be an array of strings' }).optional(),
|
|
32
|
-
tier: z.string({ required_error: 'Ticket tier
|
|
30
|
+
tier: z.string({ required_error: 'Ticket tier must be early_bird, regular or vip' }).default('regular'),
|
|
31
|
+
salesWindow: salesWindowSchema.optional(),
|
|
33
32
|
});
|