@bwi-mentorspaces/application-utils-npm 0.0.89 → 0.0.90
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.
|
@@ -7,7 +7,7 @@ interface IStreamMessage {
|
|
|
7
7
|
/**
|
|
8
8
|
* Send a message through a specific channel
|
|
9
9
|
*/
|
|
10
|
-
send(channelId: string, messageText: string, userId?: string,
|
|
10
|
+
send(channelId: string, messageText: string, userId?: string, custom?: object, silent?: boolean, parentId?: string): Promise<MessageResponse>;
|
|
11
11
|
/**
|
|
12
12
|
* Delete a message
|
|
13
13
|
*/
|
|
@@ -33,12 +33,12 @@ export declare class StreamMessage extends StreamBase implements IStreamMessage
|
|
|
33
33
|
* @param {string} channelId channel id
|
|
34
34
|
* @param {string} messageText message text
|
|
35
35
|
* @param {string} userId user who send the message text
|
|
36
|
-
* @param {string} parentId parent message id
|
|
37
36
|
* @param {object} custom custom fields that needs to be part of the message
|
|
38
37
|
* @param {boolean} silent if true, message is sent as silent
|
|
38
|
+
* @param {string} parentId parent message id
|
|
39
39
|
* @returns {Promise<MessageResponse>} promise of the result to send a message
|
|
40
40
|
*/
|
|
41
|
-
send(channelId: string, messageText: string, userId?: string,
|
|
41
|
+
send(channelId: string, messageText: string, userId?: string, custom?: object, silent?: boolean, parentId?: string): Promise<MessageResponse>;
|
|
42
42
|
/**
|
|
43
43
|
* This will be delete a specific message from Stream
|
|
44
44
|
*
|
|
@@ -32,12 +32,12 @@ class StreamMessage extends stream_base_1.StreamBase {
|
|
|
32
32
|
* @param {string} channelId channel id
|
|
33
33
|
* @param {string} messageText message text
|
|
34
34
|
* @param {string} userId user who send the message text
|
|
35
|
-
* @param {string} parentId parent message id
|
|
36
35
|
* @param {object} custom custom fields that needs to be part of the message
|
|
37
36
|
* @param {boolean} silent if true, message is sent as silent
|
|
37
|
+
* @param {string} parentId parent message id
|
|
38
38
|
* @returns {Promise<MessageResponse>} promise of the result to send a message
|
|
39
39
|
*/
|
|
40
|
-
send(channelId, messageText, userId,
|
|
40
|
+
send(channelId, messageText, userId, custom, silent, parentId) {
|
|
41
41
|
const _super = Object.create(null, {
|
|
42
42
|
getChannelById: { get: () => super.getChannelById }
|
|
43
43
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stream.message.js","sourceRoot":"","sources":["../../../chat/stream/stream.message.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,+CAA2C;AA6B3C;;GAEG;AACH,MAAa,aAAc,SAAQ,wBAAU;IACzC,aAAa;IAEb;;;;OAIG;IACH,YAAY,MAAkB;QAC1B,KAAK,EAAE,CAAC;QACR,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC;IAC1B,CAAC;IACD,UAAU;IAEV;;;;;;;;;;OAUG;IACG,IAAI,CACN,SAAiB,EACjB,WAAmB,EACnB,MAAe,EACf,
|
|
1
|
+
{"version":3,"file":"stream.message.js","sourceRoot":"","sources":["../../../chat/stream/stream.message.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,+CAA2C;AA6B3C;;GAEG;AACH,MAAa,aAAc,SAAQ,wBAAU;IACzC,aAAa;IAEb;;;;OAIG;IACH,YAAY,MAAkB;QAC1B,KAAK,EAAE,CAAC;QACR,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC;IAC1B,CAAC;IACD,UAAU;IAEV;;;;;;;;;;OAUG;IACG,IAAI,CACN,SAAiB,EACjB,WAAmB,EACnB,MAAe,EACf,MAAe,EACf,MAAgB,EAChB,QAAiB;;;;;YAEjB,IAAI,eAAe,GAAoB,IAAI,CAAC;YAC5C,6BAA6B;YAC7B,MAAM,QAAQ,GAAG,MAAM,OAAM,cAAc,YAAC,SAAS,CAAC,CAAC;YACvD,6BAA6B;YAC7B,IAAI,QAAQ,IAAI,QAAQ,CAAC,MAAM,GAAG,CAAC,EAAE;gBACjC,+BAA+B;gBAC/B,MAAM,OAAO,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;gBAC5B,iDAAi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AO,EAAE,cAAc,EAAE;gBAChD,KAAK,EAAE,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK;gBACvC,MAAM,EAAE,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM;aAC5C,CAAC,CAAC;QACP,CAAC;KAAA;CACJ;AAnGD,sCAmGC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bwi-mentorspaces/application-utils-npm",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.90",
|
|
4
4
|
"description": "Mentor Spaces npm packages for reusable models, utils, and abstracted, commonly used processes for DB Repo, Logging, etc.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Mentor Spaces",
|