@aichatwar/shared 1.0.66 → 1.0.68

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.
@@ -21,8 +21,8 @@ interface FriendshipRequestedEvent extends BaseEvent {
21
21
  version: number;
22
22
  };
23
23
  }
24
- interface FriendshipBlockedEvent extends BaseEvent {
25
- subject: Subjects.FriendshipBlocked;
24
+ interface FriendshipUpdatedEvent extends BaseEvent {
25
+ subject: Subjects.FriendshipUpdated;
26
26
  data: {
27
27
  id: string;
28
28
  requester: string;
@@ -32,37 +32,4 @@ interface FriendshipBlockedEvent extends BaseEvent {
32
32
  timeStamp?: string;
33
33
  };
34
34
  }
35
- interface FriendshipDeclinedEvent extends BaseEvent {
36
- subject: Subjects.FriendshipDeclined;
37
- data: {
38
- id: string;
39
- requester: string;
40
- recipient: number;
41
- status: FriendshipStatus;
42
- version: number;
43
- timeStamp?: string;
44
- };
45
- }
46
- interface FriendshipRemovedEvent extends BaseEvent {
47
- subject: Subjects.FriendshipRemoved;
48
- data: {
49
- id: string;
50
- requester: string;
51
- recipient: number;
52
- status: FriendshipStatus;
53
- version: number;
54
- timeStamp?: string;
55
- };
56
- }
57
- interface FriendshipRequestWithdrawnEvent extends BaseEvent {
58
- subject: Subjects.FriendshipRequestWithdrwan;
59
- data: {
60
- id: string;
61
- requester: string;
62
- recipient: number;
63
- status: FriendshipStatus;
64
- version: number;
65
- timeStamp?: string;
66
- };
67
- }
68
- export { FriendshipAcceptedEvent, FriendshipRequestWithdrawnEvent, FriendshipRemovedEvent, FriendshipDeclinedEvent, FriendshipBlockedEvent, FriendshipRequestedEvent };
35
+ export { FriendshipAcceptedEvent, FriendshipUpdatedEvent, FriendshipRequestedEvent };
@@ -6,10 +6,7 @@ export declare enum Subjects {
6
6
  EcommerceOrderExpired = "ecommerce-order:expired",
7
7
  FriendshipRequested = "friendship:requested",
8
8
  FriendshipAccepted = "friendship:accepted",
9
- FriendshipDeclined = "friendship:declined",
10
- FriendshipRequestWithdrwan = "friendship:withdrawn",
11
- FriendshipBlocked = "friendship:blocked",
12
- FriendshipRemoved = "friendship:removed",
9
+ FriendshipUpdated = "friendship:updated",
13
10
  UserCreated = "user:created",
14
11
  UserUpdated = "user:updated",
15
12
  UserDeleted = "user:deleted",
@@ -10,10 +10,7 @@ var Subjects;
10
10
  Subjects["EcommerceOrderExpired"] = "ecommerce-order:expired";
11
11
  Subjects["FriendshipRequested"] = "friendship:requested";
12
12
  Subjects["FriendshipAccepted"] = "friendship:accepted";
13
- Subjects["FriendshipDeclined"] = "friendship:declined";
14
- Subjects["FriendshipRequestWithdrwan"] = "friendship:withdrawn";
15
- Subjects["FriendshipBlocked"] = "friendship:blocked";
16
- Subjects["FriendshipRemoved"] = "friendship:removed";
13
+ Subjects["FriendshipUpdated"] = "friendship:updated";
17
14
  Subjects["UserCreated"] = "user:created";
18
15
  Subjects["UserUpdated"] = "user:updated";
19
16
  Subjects["UserDeleted"] = "user:deleted";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aichatwar/shared",
3
- "version": "1.0.66",
3
+ "version": "1.0.68",
4
4
  "main": "./build/index.js",
5
5
  "typs": "./build/index.d.ts",
6
6
  "files": [
@@ -20,6 +20,7 @@
20
20
  "typescript": "^5.9.2"
21
21
  },
22
22
  "dependencies": {
23
+ "@aichatwar/shared": "^1.0.66",
23
24
  "@types/cookie-session": "^2.0.49",
24
25
  "@types/express": "^4.17.21",
25
26
  "@types/jsonwebtoken": "^9.0.10",