@timothyw/pat-common 1.0.136 → 1.0.138

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.
@@ -12,6 +12,7 @@ export declare enum NotificationTemplateLevel {
12
12
  }
13
13
  export declare enum NotificationEntityType {
14
14
  AGENDA_ITEM = "agenda_item",
15
+ HABIT = "habit",
15
16
  AGENDA_PANEL = "agenda_item",
16
17
  INBOX_PANEL = "inbox_panel"
17
18
  }
@@ -37,15 +38,12 @@ export declare const notificationSchedulerDataSchema: z.ZodDiscriminatedUnion<"t
37
38
  time: string;
38
39
  }>, z.ZodObject<{
39
40
  type: z.ZodLiteral<NotificationSchedulerType.RELATIVE_DATE>;
40
- date: z.ZodString;
41
41
  offsetMinutes: z.ZodNumber;
42
42
  }, "strip", z.ZodTypeAny, {
43
43
  type: NotificationSchedulerType.RELATIVE_DATE;
44
- date: string;
45
44
  offsetMinutes: number;
46
45
  }, {
47
46
  type: NotificationSchedulerType.RELATIVE_DATE;
48
- date: string;
49
47
  offsetMinutes: number;
50
48
  }>]>;
51
49
  export declare const notificationTemplateSchema: z.ZodObject<{
@@ -68,15 +66,12 @@ export declare const notificationTemplateSchema: z.ZodObject<{
68
66
  time: string;
69
67
  }>, z.ZodObject<{
70
68
  type: z.ZodLiteral<NotificationSchedulerType.RELATIVE_DATE>;
71
- date: z.ZodString;
72
69
  offsetMinutes: z.ZodNumber;
73
70
  }, "strip", z.ZodTypeAny, {
74
71
  type: NotificationSchedulerType.RELATIVE_DATE;
75
- date: string;
76
72
  offsetMinutes: number;
77
73
  }, {
78
74
  type: NotificationSchedulerType.RELATIVE_DATE;
79
- date: string;
80
75
  offsetMinutes: number;
81
76
  }>]>;
82
77
  variantData: z.ZodAny;
@@ -101,7 +96,6 @@ export declare const notificationTemplateSchema: z.ZodObject<{
101
96
  time: string;
102
97
  } | {
103
98
  type: NotificationSchedulerType.RELATIVE_DATE;
104
- date: string;
105
99
  offsetMinutes: number;
106
100
  };
107
101
  active: boolean;
@@ -120,7 +114,6 @@ export declare const notificationTemplateSchema: z.ZodObject<{
120
114
  time: string;
121
115
  } | {
122
116
  type: NotificationSchedulerType.RELATIVE_DATE;
123
- date: string;
124
117
  offsetMinutes: number;
125
118
  };
126
119
  active: boolean;
@@ -144,15 +137,12 @@ export declare const createNotificationTemplateRequestSchema: z.ZodObject<{
144
137
  time: string;
145
138
  }>, z.ZodObject<{
146
139
  type: z.ZodLiteral<NotificationSchedulerType.RELATIVE_DATE>;
147
- date: z.ZodString;
148
140
  offsetMinutes: z.ZodNumber;
149
141
  }, "strip", z.ZodTypeAny, {
150
142
  type: NotificationSchedulerType.RELATIVE_DATE;
151
- date: string;
152
143
  offsetMinutes: number;
153
144
  }, {
154
145
  type: NotificationSchedulerType.RELATIVE_DATE;
155
- date: string;
156
146
  offsetMinutes: number;
157
147
  }>]>;
158
148
  variantData: z.ZodAny;
@@ -166,7 +156,6 @@ export declare const createNotificationTemplateRequestSchema: z.ZodObject<{
166
156
  time: string;
167
157
  } | {
168
158
  type: NotificationSchedulerType.RELATIVE_DATE;
169
- date: string;
170
159
  offsetMinutes: number;
171
160
  };
172
161
  active: boolean;
@@ -181,7 +170,6 @@ export declare const createNotificationTemplateRequestSchema: z.ZodObject<{
181
170
  time: string;
182
171
  } | {
183
172
  type: NotificationSchedulerType.RELATIVE_DATE;
184
- date: string;
185
173
  offsetMinutes: number;
186
174
  };
187
175
  targetId?: string | undefined;
@@ -203,15 +191,12 @@ export declare const updateNotificationTemplateRequestSchema: z.ZodObject<{
203
191
  time: string;
204
192
  }>, z.ZodObject<{
205
193
  type: z.ZodLiteral<NotificationSchedulerType.RELATIVE_DATE>;
206
- date: z.ZodString;
207
194
  offsetMinutes: z.ZodNumber;
208
195
  }, "strip", z.ZodTypeAny, {
209
196
  type: NotificationSchedulerType.RELATIVE_DATE;
210
- date: string;
211
197
  offsetMinutes: number;
212
198
  }, {
213
199
  type: NotificationSchedulerType.RELATIVE_DATE;
214
- date: string;
215
200
  offsetMinutes: number;
216
201
  }>]>>;
217
202
  variantData: z.ZodOptional<z.ZodAny>;
@@ -223,7 +208,6 @@ export declare const updateNotificationTemplateRequestSchema: z.ZodObject<{
223
208
  time: string;
224
209
  } | {
225
210
  type: NotificationSchedulerType.RELATIVE_DATE;
226
- date: string;
227
211
  offsetMinutes: number;
228
212
  } | undefined;
229
213
  variantData?: any;
@@ -235,7 +219,6 @@ export declare const updateNotificationTemplateRequestSchema: z.ZodObject<{
235
219
  time: string;
236
220
  } | {
237
221
  type: NotificationSchedulerType.RELATIVE_DATE;
238
- date: string;
239
222
  offsetMinutes: number;
240
223
  } | undefined;
241
224
  variantData?: any;
@@ -11,6 +11,7 @@ var NotificationTemplateLevel;
11
11
  var NotificationEntityType;
12
12
  (function (NotificationEntityType) {
13
13
  NotificationEntityType["AGENDA_ITEM"] = "agenda_item";
14
+ NotificationEntityType["HABIT"] = "habit";
14
15
  NotificationEntityType["AGENDA_PANEL"] = "agenda_item";
15
16
  NotificationEntityType["INBOX_PANEL"] = "inbox_panel";
16
17
  })(NotificationEntityType || (exports.NotificationEntityType = NotificationEntityType = {}));
@@ -32,7 +33,6 @@ exports.notificationSchedulerDataSchema = zod_1.z.discriminatedUnion('type', [
32
33
  }),
33
34
  zod_1.z.object({
34
35
  type: zod_1.z.literal(NotificationSchedulerType.RELATIVE_DATE),
35
- date: zod_1.z.string(),
36
36
  offsetMinutes: zod_1.z.number().int()
37
37
  })
38
38
  ]);
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.136",
5
+ "version": "1.0.138",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
8
8
  "scripts": {
@@ -16,6 +16,7 @@ export enum NotificationTemplateLevel {
16
16
 
17
17
  export enum NotificationEntityType {
18
18
  AGENDA_ITEM = 'agenda_item',
19
+ HABIT = 'habit',
19
20
 
20
21
  AGENDA_PANEL = 'agenda_item',
21
22
  INBOX_PANEL = 'inbox_panel',
@@ -39,7 +40,6 @@ export const notificationSchedulerDataSchema = z.discriminatedUnion('type', [
39
40
  }),
40
41
  z.object({
41
42
  type: z.literal(NotificationSchedulerType.RELATIVE_DATE),
42
- date: z.string(),
43
43
  offsetMinutes: z.number().int()
44
44
  })
45
45
  ])