@awarevue/api-types 2.0.121 → 2.0.122

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.
@@ -44,7 +44,13 @@ export declare const sTrackableUpdatePayload: z.ZodObject<{
44
44
  }, z.core.$strip>>;
45
45
  }, z.core.$strip>;
46
46
  export type TrackableUpdatePayload = z.infer<typeof sTrackableUpdatePayload>;
47
+ export declare const sSubscribeTrackablePayload: z.ZodObject<{}, z.core.$strip>;
48
+ export type SubscribeTrackablePayload = z.infer<typeof sSubscribeTrackablePayload>;
49
+ export declare const sUnsubscribeTrackablePayload: z.ZodObject<{}, z.core.$strip>;
50
+ export type UnsubscribeTrackablePayload = z.infer<typeof sUnsubscribeTrackablePayload>;
47
51
  interface TrackableMessageMap {
52
+ subscribe: SubscribeTrackablePayload;
53
+ unsubscribe: UnsubscribeTrackablePayload;
48
54
  update: TrackableUpdatePayload;
49
55
  }
50
56
  export type TrackableWsMessage = {
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isTrackableMessage = exports.sTrackableUpdatePayload = exports.sTrackableUpdate = void 0;
3
+ exports.isTrackableMessage = exports.sUnsubscribeTrackablePayload = exports.sSubscribeTrackablePayload = exports.sTrackableUpdatePayload = exports.sTrackableUpdate = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const primitives_1 = require("../../primitives");
6
6
  exports.sTrackableUpdate = zod_1.z.object({
@@ -18,7 +18,11 @@ exports.sTrackableUpdate = zod_1.z.object({
18
18
  exports.sTrackableUpdatePayload = zod_1.z.object({
19
19
  updates: zod_1.z.record(zod_1.z.string(), exports.sTrackableUpdate),
20
20
  });
21
+ exports.sSubscribeTrackablePayload = zod_1.z.object({});
22
+ exports.sUnsubscribeTrackablePayload = zod_1.z.object({});
21
23
  const validators = {
24
+ subscribe: exports.sSubscribeTrackablePayload,
25
+ unsubscribe: exports.sUnsubscribeTrackablePayload,
22
26
  update: exports.sTrackableUpdatePayload,
23
27
  };
24
28
  const isTrackableMessage = (message) => {
package/dist/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "type": "git",
5
5
  "url": "git+https://github.com/Linc-Security-Systems/aware-essentials.git"
6
6
  },
7
- "version": "2.0.121",
7
+ "version": "2.0.122",
8
8
  "description": "Common types between backend, agent(s) and frontend(s)",
9
9
  "main": "dist/index.js",
10
10
  "types": "dist/index.d.ts",
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "type": "git",
5
5
  "url": "git+https://github.com/Linc-Security-Systems/aware-essentials.git"
6
6
  },
7
- "version": "2.0.121",
7
+ "version": "2.0.122",
8
8
  "description": "Common types between backend, agent(s) and frontend(s)",
9
9
  "main": "dist/index.js",
10
10
  "types": "dist/index.d.ts",