@timothyw/pat-common 1.0.138 → 1.0.139
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.
|
@@ -224,34 +224,34 @@ export declare const updateNotificationTemplateRequestSchema: z.ZodObject<{
|
|
|
224
224
|
variantData?: any;
|
|
225
225
|
active?: boolean | undefined;
|
|
226
226
|
}>;
|
|
227
|
-
export declare const
|
|
227
|
+
export declare const getEntitySyncRequestSchema: z.ZodObject<{
|
|
228
228
|
targetEntityType: z.ZodNativeEnum<typeof NotificationEntityType>;
|
|
229
229
|
targetId: z.ZodString;
|
|
230
|
-
synced: z.ZodBoolean;
|
|
231
230
|
}, "strip", z.ZodTypeAny, {
|
|
232
231
|
targetEntityType: NotificationEntityType;
|
|
233
232
|
targetId: string;
|
|
234
|
-
synced: boolean;
|
|
235
233
|
}, {
|
|
236
234
|
targetEntityType: NotificationEntityType;
|
|
237
235
|
targetId: string;
|
|
238
|
-
synced: boolean;
|
|
239
236
|
}>;
|
|
240
|
-
export declare const
|
|
237
|
+
export declare const setEntitySyncRequestSchema: z.ZodObject<{
|
|
241
238
|
targetEntityType: z.ZodNativeEnum<typeof NotificationEntityType>;
|
|
242
239
|
targetId: z.ZodString;
|
|
240
|
+
synced: z.ZodBoolean;
|
|
243
241
|
}, "strip", z.ZodTypeAny, {
|
|
244
242
|
targetEntityType: NotificationEntityType;
|
|
245
243
|
targetId: string;
|
|
244
|
+
synced: boolean;
|
|
246
245
|
}, {
|
|
247
246
|
targetEntityType: NotificationEntityType;
|
|
248
247
|
targetId: string;
|
|
248
|
+
synced: boolean;
|
|
249
249
|
}>;
|
|
250
250
|
export type NotificationTrigger = z.infer<typeof notificationSchedulerDataSchema>;
|
|
251
251
|
export type NotificationTemplateData = z.infer<typeof notificationTemplateSchema>;
|
|
252
252
|
export type CreateNotificationTemplateRequest = z.infer<typeof createNotificationTemplateRequestSchema>;
|
|
253
253
|
export type UpdateNotificationTemplateRequest = z.infer<typeof updateNotificationTemplateRequestSchema>;
|
|
254
|
-
export type EntitySyncRequest = z.infer<typeof
|
|
254
|
+
export type EntitySyncRequest = z.infer<typeof setEntitySyncRequestSchema>;
|
|
255
255
|
export type GetEntitySyncRequest = z.infer<typeof getEntitySyncRequestSchema>;
|
|
256
256
|
export interface CreateNotificationTemplateResponse {
|
|
257
257
|
template: Serialized<NotificationTemplateData>;
|
|
@@ -267,14 +267,9 @@ export interface UpdateNotificationTemplateResponse {
|
|
|
267
267
|
}
|
|
268
268
|
export interface DeleteNotificationTemplateResponse {
|
|
269
269
|
}
|
|
270
|
-
export interface
|
|
271
|
-
success: boolean;
|
|
270
|
+
export interface GetEntitySyncResponse {
|
|
272
271
|
synced: boolean;
|
|
273
|
-
templates?: Serialized<NotificationTemplateData>[];
|
|
274
|
-
error?: string;
|
|
275
272
|
}
|
|
276
|
-
export interface
|
|
277
|
-
success: boolean;
|
|
273
|
+
export interface SetEntitySyncResponse {
|
|
278
274
|
synced: boolean;
|
|
279
|
-
error?: string;
|
|
280
275
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.setEntitySyncRequestSchema = exports.getEntitySyncRequestSchema = exports.updateNotificationTemplateRequestSchema = exports.createNotificationTemplateRequestSchema = exports.notificationTemplateSchema = exports.notificationSchedulerDataSchema = exports.NotificationVariantType = exports.NotificationSchedulerType = exports.NotificationEntityType = exports.NotificationTemplateLevel = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const id_types_1 = require("./id-types");
|
|
6
6
|
var NotificationTemplateLevel;
|
|
@@ -61,12 +61,12 @@ exports.updateNotificationTemplateRequestSchema = zod_1.z.object({
|
|
|
61
61
|
variantData: zod_1.z.any().optional(),
|
|
62
62
|
active: zod_1.z.boolean().optional()
|
|
63
63
|
});
|
|
64
|
-
exports.entitySyncRequestSchema = zod_1.z.object({
|
|
65
|
-
targetEntityType: zod_1.z.nativeEnum(NotificationEntityType),
|
|
66
|
-
targetId: zod_1.z.string(),
|
|
67
|
-
synced: zod_1.z.boolean()
|
|
68
|
-
});
|
|
69
64
|
exports.getEntitySyncRequestSchema = zod_1.z.object({
|
|
70
65
|
targetEntityType: zod_1.z.nativeEnum(NotificationEntityType),
|
|
71
66
|
targetId: zod_1.z.string()
|
|
72
67
|
});
|
|
68
|
+
exports.setEntitySyncRequestSchema = zod_1.z.object({
|
|
69
|
+
targetEntityType: zod_1.z.nativeEnum(NotificationEntityType),
|
|
70
|
+
targetId: zod_1.z.string(),
|
|
71
|
+
synced: zod_1.z.boolean()
|
|
72
|
+
});
|
package/package.json
CHANGED
|
@@ -72,15 +72,15 @@ export const updateNotificationTemplateRequestSchema = z.object({
|
|
|
72
72
|
active: z.boolean().optional()
|
|
73
73
|
});
|
|
74
74
|
|
|
75
|
-
export const
|
|
75
|
+
export const getEntitySyncRequestSchema = z.object({
|
|
76
76
|
targetEntityType: z.nativeEnum(NotificationEntityType),
|
|
77
|
-
targetId: z.string()
|
|
78
|
-
synced: z.boolean()
|
|
77
|
+
targetId: z.string()
|
|
79
78
|
});
|
|
80
79
|
|
|
81
|
-
export const
|
|
80
|
+
export const setEntitySyncRequestSchema = z.object({
|
|
82
81
|
targetEntityType: z.nativeEnum(NotificationEntityType),
|
|
83
|
-
targetId: z.string()
|
|
82
|
+
targetId: z.string(),
|
|
83
|
+
synced: z.boolean()
|
|
84
84
|
});
|
|
85
85
|
|
|
86
86
|
export type NotificationTrigger = z.infer<typeof notificationSchedulerDataSchema>;
|
|
@@ -88,7 +88,7 @@ export type NotificationTemplateData = z.infer<typeof notificationTemplateSchema
|
|
|
88
88
|
|
|
89
89
|
export type CreateNotificationTemplateRequest = z.infer<typeof createNotificationTemplateRequestSchema>;
|
|
90
90
|
export type UpdateNotificationTemplateRequest = z.infer<typeof updateNotificationTemplateRequestSchema>;
|
|
91
|
-
export type EntitySyncRequest = z.infer<typeof
|
|
91
|
+
export type EntitySyncRequest = z.infer<typeof setEntitySyncRequestSchema>;
|
|
92
92
|
export type GetEntitySyncRequest = z.infer<typeof getEntitySyncRequestSchema>;
|
|
93
93
|
|
|
94
94
|
export interface CreateNotificationTemplateResponse {
|
|
@@ -109,15 +109,10 @@ export interface UpdateNotificationTemplateResponse {
|
|
|
109
109
|
|
|
110
110
|
export interface DeleteNotificationTemplateResponse {}
|
|
111
111
|
|
|
112
|
-
export interface
|
|
113
|
-
success: boolean;
|
|
112
|
+
export interface GetEntitySyncResponse {
|
|
114
113
|
synced: boolean;
|
|
115
|
-
templates?: Serialized<NotificationTemplateData>[];
|
|
116
|
-
error?: string;
|
|
117
114
|
}
|
|
118
115
|
|
|
119
|
-
export interface
|
|
120
|
-
success: boolean;
|
|
116
|
+
export interface SetEntitySyncResponse {
|
|
121
117
|
synced: boolean;
|
|
122
|
-
error?: string;
|
|
123
118
|
}
|