@bwi-mentorspaces/application-utils-npm 0.0.76 → 0.0.78
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.
|
@@ -148,10 +148,10 @@ export interface IEventTypesData {
|
|
|
148
148
|
id: number;
|
|
149
149
|
ref: string;
|
|
150
150
|
title: string;
|
|
151
|
-
jobType: JobType;
|
|
151
|
+
jobType: JobType | string;
|
|
152
152
|
description: string;
|
|
153
153
|
experienceLevel: string;
|
|
154
|
-
salaryType?: SalaryType;
|
|
154
|
+
salaryType?: SalaryType | string;
|
|
155
155
|
salaryRangeMin?: number;
|
|
156
156
|
salaryRangeMax?: number;
|
|
157
157
|
applicationLink?: string;
|
|
@@ -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, custom?: object): Promise<MessageResponse>;
|
|
10
|
+
send(channelId: string, messageText: string, userId?: string, custom?: object, silent?: boolean): Promise<MessageResponse>;
|
|
11
11
|
/**
|
|
12
12
|
* Delete a message
|
|
13
13
|
*/
|
|
@@ -32,9 +32,10 @@ export declare class StreamMessage extends StreamBase implements IStreamMessage
|
|
|
32
32
|
* @param {string} messageText message text
|
|
33
33
|
* @param {string} userId user who send the message text
|
|
34
34
|
* @param {object} custom custom fields that needs to be part of the message
|
|
35
|
+
* @param {boolean} silent if true, message is sent as silent
|
|
35
36
|
* @returns {Promise<MessageResponse>} promise of the result to send a message
|
|
36
37
|
*/
|
|
37
|
-
send(channelId: string, messageText: string, userId?: string, custom?: object): Promise<MessageResponse>;
|
|
38
|
+
send(channelId: string, messageText: string, userId?: string, custom?: object, silent?: boolean): Promise<MessageResponse>;
|
|
38
39
|
/**
|
|
39
40
|
* This will be delete a specific message from Stream
|
|
40
41
|
* @param {string} messageId channel id of the channel
|
|
@@ -31,9 +31,10 @@ class StreamMessage extends stream_base_1.StreamBase {
|
|
|
31
31
|
* @param {string} messageText message text
|
|
32
32
|
* @param {string} userId user who send the message text
|
|
33
33
|
* @param {object} custom custom fields that needs to be part of the message
|
|
34
|
+
* @param {boolean} silent if true, message is sent as silent
|
|
34
35
|
* @returns {Promise<MessageResponse>} promise of the result to send a message
|
|
35
36
|
*/
|
|
36
|
-
send(channelId, messageText, userId, custom) {
|
|
37
|
+
send(channelId, messageText, userId, custom, silent) {
|
|
37
38
|
const _super = Object.create(null, {
|
|
38
39
|
getChannelById: { get: () => super.getChannelById }
|
|
39
40
|
});
|
|
@@ -48,7 +49,7 @@ class StreamMessage extends stream_base_1.StreamBase {
|
|
|
48
49
|
//if the user id is undefined is a system message
|
|
49
50
|
userId = userId === undefined ? channel.data.created_by["id"] : userId;
|
|
50
51
|
//Create the Stream new message instance
|
|
51
|
-
const newMessage = { text: messageText, user_id: userId, custom: custom };
|
|
52
|
+
const newMessage = { text: messageText, user_id: userId, silent, custom: custom };
|
|
52
53
|
//Send the message
|
|
53
54
|
const r = yield channel.sendMessage(newMessage);
|
|
54
55
|
//Check the result
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stream.message.js","sourceRoot":"","sources":["../../../chat/stream/stream.message.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,+CAA2C;
|
|
1
|
+
{"version":3,"file":"stream.message.js","sourceRoot":"","sources":["../../../chat/stream/stream.message.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,+CAA2C;AA4B3C;;GAEG;AACH,MAAa,aAAc,SAAQ,wBAAU;IACzC,aAAa;IAEb;;;OAGG;IACH,YAAY,MAAkB;QAC1B,KAAK,EAAE,CAAC;QACR,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC;IAC1B,CAAC;IACD,UAAU;IAEV;;;;;;;;OAQG;IACG,IAAI,CACN,SAAiB,EACjB,WAAmB,EACnB,MAAe,EACf,MAAe,EACf,MAAgB;;;;;YAEhB,IAAI,eAAe,GAAoB,IAAI,CAAC;YAC5C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E,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,EAAE,EAAE,CAAC;YAChD,gBAAgB;YAChB,MAAM,cAAc,GAAmB,EAAE,IAAI,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,CAAC;YACjE,mBAAmB;YACnB,OAAO,OAAM,MAAM,CAAC,MAAM,CAAC,OAAO,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;AAvFD,sCAuFC"}
|
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.78",
|
|
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",
|