@futdevpro/fsm-dynamo 1.14.7 → 1.14.8
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/build/_modules/messaging/_collections/msg-module-settings.const.d.ts +7 -1
- package/build/_modules/messaging/_collections/msg-module-settings.const.d.ts.map +1 -1
- package/build/_modules/messaging/_collections/msg-module-settings.const.js +12 -0
- package/build/_modules/messaging/_collections/msg-module-settings.const.js.map +1 -1
- package/build/_modules/messaging/_models/msg-reaction.interface.d.ts +5 -11
- package/build/_modules/messaging/_models/msg-reaction.interface.d.ts.map +1 -1
- package/futdevpro-fsm-dynamo-01.14.08.tgz +0 -0
- package/package.json +1 -1
- package/src/_modules/messaging/_collections/msg-module-settings.const.ts +12 -0
- package/src/_modules/messaging/_models/msg-reaction.interface.ts +7 -16
- package/futdevpro-fsm-dynamo-01.14.07.tgz +0 -0
|
@@ -6,12 +6,18 @@ export declare enum DyFM_MsgRoute {
|
|
|
6
6
|
getConversations = "getConversations",
|
|
7
7
|
getConversation = "getConversation",
|
|
8
8
|
createConversation = "createConversation",
|
|
9
|
+
updateConversation = "updateConversation",
|
|
10
|
+
deleteConversation = "deleteConversation",
|
|
9
11
|
getMessages = "getMessages",
|
|
10
12
|
sendMessage = "sendMessage",
|
|
11
13
|
editMessage = "editMessage",
|
|
12
14
|
deleteMessage = "deleteMessage",
|
|
13
15
|
markAsRead = "markAsRead",
|
|
14
|
-
addReaction = "addReaction"
|
|
16
|
+
addReaction = "addReaction",
|
|
17
|
+
removeReaction = "removeReaction",
|
|
18
|
+
addParticipant = "addParticipant",
|
|
19
|
+
removeParticipant = "removeParticipant",
|
|
20
|
+
getAgentProcess = "getAgentProcess"
|
|
15
21
|
}
|
|
16
22
|
/**
|
|
17
23
|
* Messaging module route settings
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"msg-module-settings.const.d.ts","sourceRoot":"","sources":["../../../../src/_modules/messaging/_collections/msg-module-settings.const.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,sDAAsD,CAAC;AAE3F;;GAEG;AACH,oBAAY,aAAa;IACvB,gBAAgB,qBAAqB;IACrC,eAAe,oBAAoB;IACnC,kBAAkB,uBAAuB;IACzC,WAAW,gBAAgB;IAC3B,WAAW,gBAAgB;IAC3B,WAAW,gBAAgB;IAC3B,aAAa,kBAAkB;IAC/B,UAAU,eAAe;IACzB,WAAW,gBAAgB;
|
|
1
|
+
{"version":3,"file":"msg-module-settings.const.d.ts","sourceRoot":"","sources":["../../../../src/_modules/messaging/_collections/msg-module-settings.const.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,sDAAsD,CAAC;AAE3F;;GAEG;AACH,oBAAY,aAAa;IACvB,gBAAgB,qBAAqB;IACrC,eAAe,oBAAoB;IACnC,kBAAkB,uBAAuB;IACzC,kBAAkB,uBAAuB;IACzC,kBAAkB,uBAAuB;IACzC,WAAW,gBAAgB;IAC3B,WAAW,gBAAgB;IAC3B,WAAW,gBAAgB;IAC3B,aAAa,kBAAkB;IAC/B,UAAU,eAAe;IACzB,WAAW,gBAAgB;IAC3B,cAAc,mBAAmB;IACjC,cAAc,mBAAmB;IACjC,iBAAiB,sBAAsB;IACvC,eAAe,oBAAoB;CACpC;AAED;;GAEG;AACH,eAAO,MAAM,uBAAuB,EAAE,mBAAmB,CAAC,aAAa,CAmBtE,CAAC"}
|
|
@@ -9,12 +9,18 @@ var DyFM_MsgRoute;
|
|
|
9
9
|
DyFM_MsgRoute["getConversations"] = "getConversations";
|
|
10
10
|
DyFM_MsgRoute["getConversation"] = "getConversation";
|
|
11
11
|
DyFM_MsgRoute["createConversation"] = "createConversation";
|
|
12
|
+
DyFM_MsgRoute["updateConversation"] = "updateConversation";
|
|
13
|
+
DyFM_MsgRoute["deleteConversation"] = "deleteConversation";
|
|
12
14
|
DyFM_MsgRoute["getMessages"] = "getMessages";
|
|
13
15
|
DyFM_MsgRoute["sendMessage"] = "sendMessage";
|
|
14
16
|
DyFM_MsgRoute["editMessage"] = "editMessage";
|
|
15
17
|
DyFM_MsgRoute["deleteMessage"] = "deleteMessage";
|
|
16
18
|
DyFM_MsgRoute["markAsRead"] = "markAsRead";
|
|
17
19
|
DyFM_MsgRoute["addReaction"] = "addReaction";
|
|
20
|
+
DyFM_MsgRoute["removeReaction"] = "removeReaction";
|
|
21
|
+
DyFM_MsgRoute["addParticipant"] = "addParticipant";
|
|
22
|
+
DyFM_MsgRoute["removeParticipant"] = "removeParticipant";
|
|
23
|
+
DyFM_MsgRoute["getAgentProcess"] = "getAgentProcess";
|
|
18
24
|
})(DyFM_MsgRoute || (exports.DyFM_MsgRoute = DyFM_MsgRoute = {}));
|
|
19
25
|
/**
|
|
20
26
|
* Messaging module route settings
|
|
@@ -25,12 +31,18 @@ exports.DyFM_msgModule_settings = {
|
|
|
25
31
|
[DyFM_MsgRoute.getConversations]: '/conversations',
|
|
26
32
|
[DyFM_MsgRoute.getConversation]: '/conversations/:conversationId',
|
|
27
33
|
[DyFM_MsgRoute.createConversation]: '/conversations/create',
|
|
34
|
+
[DyFM_MsgRoute.updateConversation]: '/conversations/:conversationId',
|
|
35
|
+
[DyFM_MsgRoute.deleteConversation]: '/conversations/:conversationId',
|
|
28
36
|
[DyFM_MsgRoute.getMessages]: '/conversations/:conversationId/messages',
|
|
29
37
|
[DyFM_MsgRoute.sendMessage]: '/conversations/:conversationId/messages/send',
|
|
30
38
|
[DyFM_MsgRoute.editMessage]: '/messages/:messageId/edit',
|
|
31
39
|
[DyFM_MsgRoute.deleteMessage]: '/messages/:messageId',
|
|
32
40
|
[DyFM_MsgRoute.markAsRead]: '/messages/mark-read',
|
|
33
41
|
[DyFM_MsgRoute.addReaction]: '/messages/:messageId/reactions',
|
|
42
|
+
[DyFM_MsgRoute.removeReaction]: '/messages/:messageId/reactions/:emoji',
|
|
43
|
+
[DyFM_MsgRoute.addParticipant]: '/conversations/:conversationId/participants',
|
|
44
|
+
[DyFM_MsgRoute.removeParticipant]: '/conversations/:conversationId/participants/:userId',
|
|
45
|
+
[DyFM_MsgRoute.getAgentProcess]: '/messages/:messageId/agent-process',
|
|
34
46
|
},
|
|
35
47
|
};
|
|
36
48
|
//# sourceMappingURL=msg-module-settings.const.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"msg-module-settings.const.js","sourceRoot":"","sources":["../../../../src/_modules/messaging/_collections/msg-module-settings.const.ts"],"names":[],"mappings":";;;AAEA;;GAEG;AACH,IAAY,
|
|
1
|
+
{"version":3,"file":"msg-module-settings.const.js","sourceRoot":"","sources":["../../../../src/_modules/messaging/_collections/msg-module-settings.const.ts"],"names":[],"mappings":";;;AAEA;;GAEG;AACH,IAAY,aAgBX;AAhBD,WAAY,aAAa;IACvB,sDAAqC,CAAA;IACrC,oDAAmC,CAAA;IACnC,0DAAyC,CAAA;IACzC,0DAAyC,CAAA;IACzC,0DAAyC,CAAA;IACzC,4CAA2B,CAAA;IAC3B,4CAA2B,CAAA;IAC3B,4CAA2B,CAAA;IAC3B,gDAA+B,CAAA;IAC/B,0CAAyB,CAAA;IACzB,4CAA2B,CAAA;IAC3B,kDAAiC,CAAA;IACjC,kDAAiC,CAAA;IACjC,wDAAuC,CAAA;IACvC,oDAAmC,CAAA;AACrC,CAAC,EAhBW,aAAa,6BAAb,aAAa,QAgBxB;AAED;;GAEG;AACU,QAAA,uBAAuB,GAAuC;IACzE,SAAS,EAAE,YAAY;IACvB,SAAS,EAAE;QACT,CAAC,aAAa,CAAC,gBAAgB,CAAC,EAAE,gBAAgB;QAClD,CAAC,aAAa,CAAC,eAAe,CAAC,EAAE,gCAAgC;QACjE,CAAC,aAAa,CAAC,kBAAkB,CAAC,EAAE,uBAAuB;QAC3D,CAAC,aAAa,CAAC,kBAAkB,CAAC,EAAE,gCAAgC;QACpE,CAAC,aAAa,CAAC,kBAAkB,CAAC,EAAE,gCAAgC;QACpE,CAAC,aAAa,CAAC,WAAW,CAAC,EAAE,yCAAyC;QACtE,CAAC,aAAa,CAAC,WAAW,CAAC,EAAE,8CAA8C;QAC3E,CAAC,aAAa,CAAC,WAAW,CAAC,EAAE,2BAA2B;QACxD,CAAC,aAAa,CAAC,aAAa,CAAC,EAAE,sBAAsB;QACrD,CAAC,aAAa,CAAC,UAAU,CAAC,EAAE,qBAAqB;QACjD,CAAC,aAAa,CAAC,WAAW,CAAC,EAAE,gCAAgC;QAC7D,CAAC,aAAa,CAAC,cAAc,CAAC,EAAE,uCAAuC;QACvE,CAAC,aAAa,CAAC,cAAc,CAAC,EAAE,6CAA6C;QAC7E,CAAC,aAAa,CAAC,iBAAiB,CAAC,EAAE,qDAAqD;QACxF,CAAC,aAAa,CAAC,eAAe,CAAC,EAAE,oCAAoC;KACtE;CACF,CAAC"}
|
|
@@ -1,23 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Message Reaction Interface
|
|
3
|
-
* Represents an emoji reaction to a message
|
|
3
|
+
* Represents an individual emoji reaction to a message
|
|
4
4
|
*/
|
|
5
5
|
export interface DyFM_Msg_Reaction {
|
|
6
6
|
/** Emoji or reaction identifier */
|
|
7
7
|
emoji: string;
|
|
8
|
+
/** User ID who reacted */
|
|
9
|
+
userId: string;
|
|
10
|
+
/** Timestamp when user reacted */
|
|
11
|
+
reactedAt: Date;
|
|
8
12
|
/** Unicode representation of emoji */
|
|
9
13
|
unicode?: string;
|
|
10
14
|
/** Custom emoji ID (if custom emoji) */
|
|
11
15
|
customEmojiId?: string;
|
|
12
|
-
/** Array of user IDs who reacted with this emoji */
|
|
13
|
-
userIds: string[];
|
|
14
|
-
/** Count of reactions with this emoji */
|
|
15
|
-
count: number;
|
|
16
|
-
/** Whether the current user has reacted with this emoji */
|
|
17
|
-
hasReacted?: boolean;
|
|
18
|
-
/** Timestamp of first reaction */
|
|
19
|
-
firstReactedAt?: Date;
|
|
20
|
-
/** Timestamp of most recent reaction */
|
|
21
|
-
lastReactedAt?: Date;
|
|
22
16
|
}
|
|
23
17
|
//# sourceMappingURL=msg-reaction.interface.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"msg-reaction.interface.d.ts","sourceRoot":"","sources":["../../../../src/_modules/messaging/_models/msg-reaction.interface.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IAChC,mCAAmC;IACnC,KAAK,EAAE,MAAM,CAAC;IAEd,
|
|
1
|
+
{"version":3,"file":"msg-reaction.interface.d.ts","sourceRoot":"","sources":["../../../../src/_modules/messaging/_models/msg-reaction.interface.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IAChC,mCAAmC;IACnC,KAAK,EAAE,MAAM,CAAC;IAEd,0BAA0B;IAC1B,MAAM,EAAE,MAAM,CAAC;IAEf,kCAAkC;IAClC,SAAS,EAAE,IAAI,CAAC;IAEhB,sCAAsC;IACtC,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,wCAAwC;IACxC,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB"}
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@futdevpro/fsm-dynamo",
|
|
3
|
-
"version": "01.14.
|
|
3
|
+
"version": "01.14.08",
|
|
4
4
|
"description": "Full Stack Model Collection for Dynamic (NodeJS-Typescript) Framework called Dynamo, by Future Development Ltd.",
|
|
5
5
|
"DyBu_settings": {
|
|
6
6
|
"packageType": "full-stack-package",
|
|
@@ -7,12 +7,18 @@ export enum DyFM_MsgRoute {
|
|
|
7
7
|
getConversations = 'getConversations',
|
|
8
8
|
getConversation = 'getConversation',
|
|
9
9
|
createConversation = 'createConversation',
|
|
10
|
+
updateConversation = 'updateConversation',
|
|
11
|
+
deleteConversation = 'deleteConversation',
|
|
10
12
|
getMessages = 'getMessages',
|
|
11
13
|
sendMessage = 'sendMessage',
|
|
12
14
|
editMessage = 'editMessage',
|
|
13
15
|
deleteMessage = 'deleteMessage',
|
|
14
16
|
markAsRead = 'markAsRead',
|
|
15
17
|
addReaction = 'addReaction',
|
|
18
|
+
removeReaction = 'removeReaction',
|
|
19
|
+
addParticipant = 'addParticipant',
|
|
20
|
+
removeParticipant = 'removeParticipant',
|
|
21
|
+
getAgentProcess = 'getAgentProcess',
|
|
16
22
|
}
|
|
17
23
|
|
|
18
24
|
/**
|
|
@@ -24,11 +30,17 @@ export const DyFM_msgModule_settings: DyFM_Route_Settings<DyFM_MsgRoute> = {
|
|
|
24
30
|
[DyFM_MsgRoute.getConversations]: '/conversations',
|
|
25
31
|
[DyFM_MsgRoute.getConversation]: '/conversations/:conversationId',
|
|
26
32
|
[DyFM_MsgRoute.createConversation]: '/conversations/create',
|
|
33
|
+
[DyFM_MsgRoute.updateConversation]: '/conversations/:conversationId',
|
|
34
|
+
[DyFM_MsgRoute.deleteConversation]: '/conversations/:conversationId',
|
|
27
35
|
[DyFM_MsgRoute.getMessages]: '/conversations/:conversationId/messages',
|
|
28
36
|
[DyFM_MsgRoute.sendMessage]: '/conversations/:conversationId/messages/send',
|
|
29
37
|
[DyFM_MsgRoute.editMessage]: '/messages/:messageId/edit',
|
|
30
38
|
[DyFM_MsgRoute.deleteMessage]: '/messages/:messageId',
|
|
31
39
|
[DyFM_MsgRoute.markAsRead]: '/messages/mark-read',
|
|
32
40
|
[DyFM_MsgRoute.addReaction]: '/messages/:messageId/reactions',
|
|
41
|
+
[DyFM_MsgRoute.removeReaction]: '/messages/:messageId/reactions/:emoji',
|
|
42
|
+
[DyFM_MsgRoute.addParticipant]: '/conversations/:conversationId/participants',
|
|
43
|
+
[DyFM_MsgRoute.removeParticipant]: '/conversations/:conversationId/participants/:userId',
|
|
44
|
+
[DyFM_MsgRoute.getAgentProcess]: '/messages/:messageId/agent-process',
|
|
33
45
|
},
|
|
34
46
|
};
|
|
@@ -1,29 +1,20 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Message Reaction Interface
|
|
3
|
-
* Represents an emoji reaction to a message
|
|
3
|
+
* Represents an individual emoji reaction to a message
|
|
4
4
|
*/
|
|
5
5
|
export interface DyFM_Msg_Reaction {
|
|
6
6
|
/** Emoji or reaction identifier */
|
|
7
7
|
emoji: string;
|
|
8
8
|
|
|
9
|
+
/** User ID who reacted */
|
|
10
|
+
userId: string;
|
|
11
|
+
|
|
12
|
+
/** Timestamp when user reacted */
|
|
13
|
+
reactedAt: Date;
|
|
14
|
+
|
|
9
15
|
/** Unicode representation of emoji */
|
|
10
16
|
unicode?: string;
|
|
11
17
|
|
|
12
18
|
/** Custom emoji ID (if custom emoji) */
|
|
13
19
|
customEmojiId?: string;
|
|
14
|
-
|
|
15
|
-
/** Array of user IDs who reacted with this emoji */
|
|
16
|
-
userIds: string[];
|
|
17
|
-
|
|
18
|
-
/** Count of reactions with this emoji */
|
|
19
|
-
count: number;
|
|
20
|
-
|
|
21
|
-
/** Whether the current user has reacted with this emoji */
|
|
22
|
-
hasReacted?: boolean;
|
|
23
|
-
|
|
24
|
-
/** Timestamp of first reaction */
|
|
25
|
-
firstReactedAt?: Date;
|
|
26
|
-
|
|
27
|
-
/** Timestamp of most recent reaction */
|
|
28
|
-
lastReactedAt?: Date;
|
|
29
20
|
}
|
|
Binary file
|