@timothyw/pat-common 1.0.144 → 1.0.146

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.
@@ -10,6 +10,11 @@ export declare enum NotificationTemplateLevel {
10
10
  PARENT = "parent",
11
11
  ENTITY = "entity"
12
12
  }
13
+ export declare enum NotificationTemplateSyncState {
14
+ SYNCED = "synced",
15
+ DESYNCED = "desynced",
16
+ NO_PARENT = "no_parent"
17
+ }
13
18
  export declare enum NotificationEntityType {
14
19
  AGENDA_ITEM = "agenda_item",
15
20
  HABIT = "habit",
@@ -262,13 +267,13 @@ export declare const setEntitySyncRequestSchema: z.ZodObject<{
262
267
  targetId: z.ZodString;
263
268
  synced: z.ZodBoolean;
264
269
  }, "strip", z.ZodTypeAny, {
270
+ synced: boolean;
265
271
  targetEntityType: NotificationEntityType;
266
272
  targetId: string;
267
- synced: boolean;
268
273
  }, {
274
+ synced: boolean;
269
275
  targetEntityType: NotificationEntityType;
270
276
  targetId: string;
271
- synced: boolean;
272
277
  }>;
273
278
  export type NotificationTemplateData = z.infer<typeof notificationTemplateSchema>;
274
279
  export type NotificationDesyncData = z.infer<typeof notificationDesyncSchema>;
@@ -288,8 +293,8 @@ export interface UpdateNotificationTemplateResponse {
288
293
  export interface DeleteNotificationTemplateResponse {
289
294
  }
290
295
  export interface GetEntitySyncResponse {
291
- synced: boolean;
296
+ syncState: NotificationTemplateSyncState;
292
297
  }
293
298
  export interface SetEntitySyncResponse {
294
- synced: boolean;
299
+ syncState: NotificationTemplateSyncState;
295
300
  }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.setEntitySyncRequestSchema = exports.getEntitySyncRequestSchema = exports.updateNotificationTemplateRequestSchema = exports.createNotificationTemplateRequestSchema = exports.notificationDesyncSchema = exports.notificationTemplateSchema = exports.notificationSchedulerDataSchema = exports.NotificationVariantType = exports.NotificationSchedulerType = exports.NotificationEntityType = exports.NotificationTemplateLevel = void 0;
3
+ exports.setEntitySyncRequestSchema = exports.getEntitySyncRequestSchema = exports.updateNotificationTemplateRequestSchema = exports.createNotificationTemplateRequestSchema = exports.notificationDesyncSchema = exports.notificationTemplateSchema = exports.notificationSchedulerDataSchema = exports.NotificationVariantType = exports.NotificationSchedulerType = exports.NotificationEntityType = exports.NotificationTemplateSyncState = exports.NotificationTemplateLevel = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const id_types_1 = require("./id-types");
6
6
  var NotificationTemplateLevel;
@@ -8,6 +8,12 @@ var NotificationTemplateLevel;
8
8
  NotificationTemplateLevel["PARENT"] = "parent";
9
9
  NotificationTemplateLevel["ENTITY"] = "entity";
10
10
  })(NotificationTemplateLevel || (exports.NotificationTemplateLevel = NotificationTemplateLevel = {}));
11
+ var NotificationTemplateSyncState;
12
+ (function (NotificationTemplateSyncState) {
13
+ NotificationTemplateSyncState["SYNCED"] = "synced";
14
+ NotificationTemplateSyncState["DESYNCED"] = "desynced";
15
+ NotificationTemplateSyncState["NO_PARENT"] = "no_parent";
16
+ })(NotificationTemplateSyncState || (exports.NotificationTemplateSyncState = NotificationTemplateSyncState = {}));
11
17
  var NotificationEntityType;
12
18
  (function (NotificationEntityType) {
13
19
  NotificationEntityType["AGENDA_ITEM"] = "agenda_item";
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.144",
5
+ "version": "1.0.146",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
8
8
  "scripts": {
@@ -14,6 +14,12 @@ export enum NotificationTemplateLevel {
14
14
  ENTITY = 'entity'
15
15
  }
16
16
 
17
+ export enum NotificationTemplateSyncState {
18
+ SYNCED = 'synced',
19
+ DESYNCED = 'desynced',
20
+ NO_PARENT = 'no_parent'
21
+ }
22
+
17
23
  export enum NotificationEntityType {
18
24
  AGENDA_ITEM = 'agenda_item',
19
25
  HABIT = 'habit',
@@ -115,9 +121,9 @@ export interface UpdateNotificationTemplateResponse {
115
121
  export interface DeleteNotificationTemplateResponse {}
116
122
 
117
123
  export interface GetEntitySyncResponse {
118
- synced: boolean;
124
+ syncState: NotificationTemplateSyncState;
119
125
  }
120
126
 
121
127
  export interface SetEntitySyncResponse {
122
- synced: boolean;
128
+ syncState: NotificationTemplateSyncState;
123
129
  }