@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
- time: z.ZodString;
38
+ offsetMinutes: z.ZodNumber;
39
39
  }, "strip", z.ZodTypeAny, {
40
40
  type: NotificationSchedulerType.DAY_TIME;
41
41
  days: number[];
42
- time: string;
42
+ offsetMinutes: number;
43
43
  }, {
44
44
  type: NotificationSchedulerType.DAY_TIME;
45
45
  days: number[];
46
- time: string;
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
- time: z.ZodString;
85
+ offsetMinutes: z.ZodNumber;
86
86
  }, "strip", z.ZodTypeAny, {
87
87
  type: NotificationSchedulerType.DAY_TIME;
88
88
  days: number[];
89
- time: string;
89
+ offsetMinutes: number;
90
90
  }, {
91
91
  type: NotificationSchedulerType.DAY_TIME;
92
92
  days: number[];
93
- time: string;
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
- time: string;
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
- time: string;
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
- time: z.ZodString;
186
+ offsetMinutes: z.ZodNumber;
187
187
  }, "strip", z.ZodTypeAny, {
188
188
  type: NotificationSchedulerType.DAY_TIME;
189
189
  days: number[];
190
- time: string;
190
+ offsetMinutes: number;
191
191
  }, {
192
192
  type: NotificationSchedulerType.DAY_TIME;
193
193
  days: number[];
194
- time: string;
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
- time: string;
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
- time: string;
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
- time: z.ZodString;
270
+ offsetMinutes: z.ZodNumber;
271
271
  }, "strip", z.ZodTypeAny, {
272
272
  type: NotificationSchedulerType.DAY_TIME;
273
273
  days: number[];
274
- time: string;
274
+ offsetMinutes: number;
275
275
  }, {
276
276
  type: NotificationSchedulerType.DAY_TIME;
277
277
  days: number[];
278
- time: string;
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
- time: string;
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
- time: string;
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
- time: zod_1.z.string().regex(/^(0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$/), // HH:mm format
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
@@ -2,7 +2,7 @@
2
2
  "name": "@timothyw/pat-common",
3
3
  "description": "",
4
4
  "author": "Timothy Washburn",
5
- "version": "1.0.155",
5
+ "version": "1.0.156",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
8
8
  "scripts": {
@@ -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
- time: z.string().regex(/^(0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$/), // HH:mm format
60
+ offsetMinutes: z.number().int()
61
61
  }),
62
62
  z.object({
63
63
  type: z.literal(NotificationSchedulerType.RELATIVE_DATE),