@timothyw/pat-common 1.0.155 → 1.0.156
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.
|
@@ -35,15 +35,15 @@ export declare const ENTITY_TYPE_VARIANT_MAP: Record<NotificationEntityType, Not
|
|
|
35
35
|
export declare const notificationSchedulerDataSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
36
36
|
type: z.ZodLiteral<NotificationSchedulerType.DAY_TIME>;
|
|
37
37
|
days: z.ZodArray<z.ZodNumber, "many">;
|
|
38
|
-
|
|
38
|
+
offsetMinutes: z.ZodNumber;
|
|
39
39
|
}, "strip", z.ZodTypeAny, {
|
|
40
40
|
type: NotificationSchedulerType.DAY_TIME;
|
|
41
41
|
days: number[];
|
|
42
|
-
|
|
42
|
+
offsetMinutes: number;
|
|
43
43
|
}, {
|
|
44
44
|
type: NotificationSchedulerType.DAY_TIME;
|
|
45
45
|
days: number[];
|
|
46
|
-
|
|
46
|
+
offsetMinutes: number;
|
|
47
47
|
}>, z.ZodObject<{
|
|
48
48
|
type: z.ZodLiteral<NotificationSchedulerType.RELATIVE_DATE>;
|
|
49
49
|
offsetMinutes: z.ZodNumber;
|
|
@@ -82,15 +82,15 @@ export declare const notificationTemplateSchema: z.ZodObject<{
|
|
|
82
82
|
schedulerData: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
83
83
|
type: z.ZodLiteral<NotificationSchedulerType.DAY_TIME>;
|
|
84
84
|
days: z.ZodArray<z.ZodNumber, "many">;
|
|
85
|
-
|
|
85
|
+
offsetMinutes: z.ZodNumber;
|
|
86
86
|
}, "strip", z.ZodTypeAny, {
|
|
87
87
|
type: NotificationSchedulerType.DAY_TIME;
|
|
88
88
|
days: number[];
|
|
89
|
-
|
|
89
|
+
offsetMinutes: number;
|
|
90
90
|
}, {
|
|
91
91
|
type: NotificationSchedulerType.DAY_TIME;
|
|
92
92
|
days: number[];
|
|
93
|
-
|
|
93
|
+
offsetMinutes: number;
|
|
94
94
|
}>, z.ZodObject<{
|
|
95
95
|
type: z.ZodLiteral<NotificationSchedulerType.RELATIVE_DATE>;
|
|
96
96
|
offsetMinutes: z.ZodNumber;
|
|
@@ -138,7 +138,7 @@ export declare const notificationTemplateSchema: z.ZodObject<{
|
|
|
138
138
|
schedulerData: {
|
|
139
139
|
type: NotificationSchedulerType.DAY_TIME;
|
|
140
140
|
days: number[];
|
|
141
|
-
|
|
141
|
+
offsetMinutes: number;
|
|
142
142
|
} | {
|
|
143
143
|
type: NotificationSchedulerType.RELATIVE_DATE;
|
|
144
144
|
offsetMinutes: number;
|
|
@@ -162,7 +162,7 @@ export declare const notificationTemplateSchema: z.ZodObject<{
|
|
|
162
162
|
schedulerData: {
|
|
163
163
|
type: NotificationSchedulerType.DAY_TIME;
|
|
164
164
|
days: number[];
|
|
165
|
-
|
|
165
|
+
offsetMinutes: number;
|
|
166
166
|
} | {
|
|
167
167
|
type: NotificationSchedulerType.RELATIVE_DATE;
|
|
168
168
|
offsetMinutes: number;
|
|
@@ -183,15 +183,15 @@ export declare const createNotificationTemplateRequestSchema: z.ZodObject<{
|
|
|
183
183
|
schedulerData: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
184
184
|
type: z.ZodLiteral<NotificationSchedulerType.DAY_TIME>;
|
|
185
185
|
days: z.ZodArray<z.ZodNumber, "many">;
|
|
186
|
-
|
|
186
|
+
offsetMinutes: z.ZodNumber;
|
|
187
187
|
}, "strip", z.ZodTypeAny, {
|
|
188
188
|
type: NotificationSchedulerType.DAY_TIME;
|
|
189
189
|
days: number[];
|
|
190
|
-
|
|
190
|
+
offsetMinutes: number;
|
|
191
191
|
}, {
|
|
192
192
|
type: NotificationSchedulerType.DAY_TIME;
|
|
193
193
|
days: number[];
|
|
194
|
-
|
|
194
|
+
offsetMinutes: number;
|
|
195
195
|
}>, z.ZodObject<{
|
|
196
196
|
type: z.ZodLiteral<NotificationSchedulerType.RELATIVE_DATE>;
|
|
197
197
|
offsetMinutes: z.ZodNumber;
|
|
@@ -228,7 +228,7 @@ export declare const createNotificationTemplateRequestSchema: z.ZodObject<{
|
|
|
228
228
|
schedulerData: {
|
|
229
229
|
type: NotificationSchedulerType.DAY_TIME;
|
|
230
230
|
days: number[];
|
|
231
|
-
|
|
231
|
+
offsetMinutes: number;
|
|
232
232
|
} | {
|
|
233
233
|
type: NotificationSchedulerType.RELATIVE_DATE;
|
|
234
234
|
offsetMinutes: number;
|
|
@@ -248,7 +248,7 @@ export declare const createNotificationTemplateRequestSchema: z.ZodObject<{
|
|
|
248
248
|
schedulerData: {
|
|
249
249
|
type: NotificationSchedulerType.DAY_TIME;
|
|
250
250
|
days: number[];
|
|
251
|
-
|
|
251
|
+
offsetMinutes: number;
|
|
252
252
|
} | {
|
|
253
253
|
type: NotificationSchedulerType.RELATIVE_DATE;
|
|
254
254
|
offsetMinutes: number;
|
|
@@ -267,15 +267,15 @@ export declare const updateNotificationTemplateRequestSchema: z.ZodObject<{
|
|
|
267
267
|
schedulerData: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
268
268
|
type: z.ZodLiteral<NotificationSchedulerType.DAY_TIME>;
|
|
269
269
|
days: z.ZodArray<z.ZodNumber, "many">;
|
|
270
|
-
|
|
270
|
+
offsetMinutes: z.ZodNumber;
|
|
271
271
|
}, "strip", z.ZodTypeAny, {
|
|
272
272
|
type: NotificationSchedulerType.DAY_TIME;
|
|
273
273
|
days: number[];
|
|
274
|
-
|
|
274
|
+
offsetMinutes: number;
|
|
275
275
|
}, {
|
|
276
276
|
type: NotificationSchedulerType.DAY_TIME;
|
|
277
277
|
days: number[];
|
|
278
|
-
|
|
278
|
+
offsetMinutes: number;
|
|
279
279
|
}>, z.ZodObject<{
|
|
280
280
|
type: z.ZodLiteral<NotificationSchedulerType.RELATIVE_DATE>;
|
|
281
281
|
offsetMinutes: z.ZodNumber;
|
|
@@ -310,7 +310,7 @@ export declare const updateNotificationTemplateRequestSchema: z.ZodObject<{
|
|
|
310
310
|
schedulerData?: {
|
|
311
311
|
type: NotificationSchedulerType.DAY_TIME;
|
|
312
312
|
days: number[];
|
|
313
|
-
|
|
313
|
+
offsetMinutes: number;
|
|
314
314
|
} | {
|
|
315
315
|
type: NotificationSchedulerType.RELATIVE_DATE;
|
|
316
316
|
offsetMinutes: number;
|
|
@@ -327,7 +327,7 @@ export declare const updateNotificationTemplateRequestSchema: z.ZodObject<{
|
|
|
327
327
|
schedulerData?: {
|
|
328
328
|
type: NotificationSchedulerType.DAY_TIME;
|
|
329
329
|
days: number[];
|
|
330
|
-
|
|
330
|
+
offsetMinutes: number;
|
|
331
331
|
} | {
|
|
332
332
|
type: NotificationSchedulerType.RELATIVE_DATE;
|
|
333
333
|
offsetMinutes: number;
|
|
@@ -49,7 +49,7 @@ exports.notificationSchedulerDataSchema = zod_1.z.discriminatedUnion('type', [
|
|
|
49
49
|
zod_1.z.object({
|
|
50
50
|
type: zod_1.z.literal(NotificationSchedulerType.DAY_TIME),
|
|
51
51
|
days: zod_1.z.array(zod_1.z.number().min(0).max(6)),
|
|
52
|
-
|
|
52
|
+
offsetMinutes: zod_1.z.number().int()
|
|
53
53
|
}),
|
|
54
54
|
zod_1.z.object({
|
|
55
55
|
type: zod_1.z.literal(NotificationSchedulerType.RELATIVE_DATE),
|
package/package.json
CHANGED
|
@@ -57,7 +57,7 @@ export const notificationSchedulerDataSchema = z.discriminatedUnion('type', [
|
|
|
57
57
|
z.object({
|
|
58
58
|
type: z.literal(NotificationSchedulerType.DAY_TIME),
|
|
59
59
|
days: z.array(z.number().min(0).max(6)),
|
|
60
|
-
|
|
60
|
+
offsetMinutes: z.number().int()
|
|
61
61
|
}),
|
|
62
62
|
z.object({
|
|
63
63
|
type: z.literal(NotificationSchedulerType.RELATIVE_DATE),
|