@iveri/contracts 0.105.0 → 0.106.0

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.
package/README.md CHANGED
@@ -8,6 +8,12 @@ entry offers exactly `types` and `default`. The CommonJS build and the `typesVer
8
8
  gone, so a consumer resolves the subpaths under `moduleResolution` `nodenext` or `bundler` — and
9
9
  under Node 26 a CommonJS consumer still loads it, through `require`. See `CHANGELOG.md`.
10
10
 
11
+ Release `0.106.0` adds `RealtimeResourceType.GYM_PERSON` (`gym.person`) and
12
+ `RealtimeEventType.GYM_PERSON_UPDATED`: a gym member's or trainer's own room, keyed by their
13
+ identity user id, so their apps learn at once that a conversation with the person they train with
14
+ opened. A gateway on an older release refuses the event, so `iveri-realtime` takes this release
15
+ before `gym-api` publishes it.
16
+
11
17
  Release `0.21.0` adds the shared realtime contract under `@iveri/contracts/realtime`: closed
12
18
  resource and event vocabularies, identifier-only publish messages, and short-lived subscription
13
19
  grants bound to one tenant, person and resource. It also separates permission to issue a grant
@@ -35,5 +35,11 @@ export declare enum RealtimeEventType {
35
35
  /** Something new happened to a member, so their activity list and its count are stale. */
36
36
  SOCIAL_ACTIVITY_UPDATED = "social.activity.updated",
37
37
  /** Somebody came through a branch's door or a class changed, so staff screens refetch. */
38
- GYM_BRANCH_UPDATED = "gym.branch.updated"
38
+ GYM_BRANCH_UPDATED = "gym.branch.updated",
39
+ /**
40
+ * Something a member or a trainer reads about themselves changed, such as the conversation with
41
+ * the person they train with opening, so their bookings or sessions refetch. Carried on the
42
+ * person, while the version is that of whatever moved.
43
+ */
44
+ GYM_PERSON_UPDATED = "gym.person.updated"
39
45
  }
@@ -37,4 +37,10 @@ export var RealtimeEventType;
37
37
  RealtimeEventType["SOCIAL_ACTIVITY_UPDATED"] = "social.activity.updated";
38
38
  /** Somebody came through a branch's door or a class changed, so staff screens refetch. */
39
39
  RealtimeEventType["GYM_BRANCH_UPDATED"] = "gym.branch.updated";
40
+ /**
41
+ * Something a member or a trainer reads about themselves changed, such as the conversation with
42
+ * the person they train with opening, so their bookings or sessions refetch. Carried on the
43
+ * person, while the version is that of whatever moved.
44
+ */
45
+ RealtimeEventType["GYM_PERSON_UPDATED"] = "gym.person.updated";
40
46
  })(RealtimeEventType || (RealtimeEventType = {}));
@@ -16,5 +16,11 @@ export declare enum RealtimeResourceType {
16
16
  * message or a like has happened, and the events on it say what became stale.
17
17
  */
18
18
  SOCIAL_MEMBER = "social.member",
19
- GYM_BRANCH = "gym.branch"
19
+ GYM_BRANCH = "gym.branch",
20
+ /**
21
+ * One person's own room at a gym, a member or a trainer, keyed by their identity user id. They
22
+ * subscribe to themselves, the one thing they can name before a conversation with their trainer
23
+ * or member exists, and the events on it say what of their own became stale.
24
+ */
25
+ GYM_PERSON = "gym.person"
20
26
  }
@@ -18,4 +18,10 @@ export var RealtimeResourceType;
18
18
  */
19
19
  RealtimeResourceType["SOCIAL_MEMBER"] = "social.member";
20
20
  RealtimeResourceType["GYM_BRANCH"] = "gym.branch";
21
+ /**
22
+ * One person's own room at a gym, a member or a trainer, keyed by their identity user id. They
23
+ * subscribe to themselves, the one thing they can name before a conversation with their trainer
24
+ * or member exists, and the events on it say what of their own became stale.
25
+ */
26
+ RealtimeResourceType["GYM_PERSON"] = "gym.person";
21
27
  })(RealtimeResourceType || (RealtimeResourceType = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iveri/contracts",
3
- "version": "0.105.0",
3
+ "version": "0.106.0",
4
4
  "description": "Wire contracts shared by every Iveri backend and frontend. Zero runtime dependencies.",
5
5
  "license": "MIT",
6
6
  "repository": {