@awarevue/api-types 2.0.10 → 2.0.11

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.
@@ -47,8 +47,8 @@ export declare const sNotificationAcknowledgedPayload: z.ZodObject<{
47
47
  }>;
48
48
  export type NotificationAcknowledgedPayload = z.infer<typeof sNotificationAcknowledgedPayload>;
49
49
  interface NotificationEventMap {
50
- 'notifications:created': NotificationCreatedPayload;
51
- 'notifications:acknowledged': NotificationAcknowledgedPayload;
50
+ new: NotificationCreatedPayload;
51
+ ack: NotificationAcknowledgedPayload;
52
52
  }
53
53
  export type NotificationWsMessage = {
54
54
  [K in keyof NotificationEventMap]: {
@@ -13,8 +13,8 @@ exports.sNotificationAcknowledgedPayload = zod_1.default.object({
13
13
  acknowledgedOn: zod_1.default.number().int().nonnegative(),
14
14
  });
15
15
  const validators = {
16
- 'notifications:created': exports.sNotificationCreatedPayload,
17
- 'notifications:acknowledged': exports.sNotificationAcknowledgedPayload,
16
+ new: exports.sNotificationCreatedPayload,
17
+ ack: exports.sNotificationAcknowledgedPayload,
18
18
  };
19
19
  // validate a web socket message as a Notification message (use validators according to event)
20
20
  const isNotificationWebSocketMessage = (message) => {
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awarevue/api-types",
3
- "version": "2.0.10",
3
+ "version": "2.0.11",
4
4
  "description": "Common types between backend, agent(s) and frontend(s)",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awarevue/api-types",
3
- "version": "2.0.10",
3
+ "version": "2.0.11",
4
4
  "description": "Common types between backend, agent(s) and frontend(s)",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",