@wireapp/protocol-messaging 1.41.0 → 1.43.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/package.json +8 -3
- package/proto/messages.proto +1 -0
- package/web/messages.d.ts +2 -0
- package/web/messages.js +30 -1
package/package.json
CHANGED
|
@@ -10,17 +10,22 @@
|
|
|
10
10
|
"!web/compile.js"
|
|
11
11
|
],
|
|
12
12
|
"main": "web/messages.js",
|
|
13
|
-
"
|
|
14
|
-
"
|
|
13
|
+
"dependencies": {
|
|
14
|
+
"long": "5.2.0",
|
|
15
15
|
"protobufjs": "7.1.2",
|
|
16
16
|
"protobufjs-cli": "1.0.2",
|
|
17
17
|
"typescript": "4.8.4"
|
|
18
18
|
},
|
|
19
|
+
"devDependencies": {
|
|
20
|
+
"@types/long": "5.0.0",
|
|
21
|
+
"@types/node": "16.18.0",
|
|
22
|
+
"typescript": "4.8.4"
|
|
23
|
+
},
|
|
19
24
|
"scripts": {
|
|
20
25
|
"dist": "node web/compile.js",
|
|
21
26
|
"postversion": "git push origin master --tags && npm publish",
|
|
22
27
|
"preversion": "git checkout master && git pull && yarn && yarn dist && yarn test",
|
|
23
28
|
"test": "tsc --noEmit"
|
|
24
29
|
},
|
|
25
|
-
"version": "1.
|
|
30
|
+
"version": "1.43.0"
|
|
26
31
|
}
|
package/proto/messages.proto
CHANGED
package/web/messages.d.ts
CHANGED
|
@@ -907,11 +907,13 @@ export class Reaction implements IReaction {
|
|
|
907
907
|
|
|
908
908
|
export interface ICalling {
|
|
909
909
|
content: string;
|
|
910
|
+
qualifiedConversationId?: (IQualifiedConversationId|null);
|
|
910
911
|
}
|
|
911
912
|
|
|
912
913
|
export class Calling implements ICalling {
|
|
913
914
|
constructor(properties?: ICalling);
|
|
914
915
|
public content: string;
|
|
916
|
+
public qualifiedConversationId?: (IQualifiedConversationId|null);
|
|
915
917
|
public static create(properties?: ICalling): Calling;
|
|
916
918
|
public static encode(message: ICalling, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
917
919
|
public static encodeDelimited(message: ICalling, writer?: $protobuf.Writer): $protobuf.Writer;
|
package/web/messages.js
CHANGED
|
@@ -10681,6 +10681,7 @@ $root.Calling = (function() {
|
|
|
10681
10681
|
* @exports ICalling
|
|
10682
10682
|
* @interface ICalling
|
|
10683
10683
|
* @property {string} content Calling content
|
|
10684
|
+
* @property {IQualifiedConversationId|null} [qualifiedConversationId] Calling qualifiedConversationId
|
|
10684
10685
|
*/
|
|
10685
10686
|
|
|
10686
10687
|
/**
|
|
@@ -10706,6 +10707,14 @@ $root.Calling = (function() {
|
|
|
10706
10707
|
*/
|
|
10707
10708
|
Calling.prototype.content = "";
|
|
10708
10709
|
|
|
10710
|
+
/**
|
|
10711
|
+
* Calling qualifiedConversationId.
|
|
10712
|
+
* @member {IQualifiedConversationId|null|undefined} qualifiedConversationId
|
|
10713
|
+
* @memberof Calling
|
|
10714
|
+
* @instance
|
|
10715
|
+
*/
|
|
10716
|
+
Calling.prototype.qualifiedConversationId = null;
|
|
10717
|
+
|
|
10709
10718
|
/**
|
|
10710
10719
|
* Creates a new Calling instance using the specified properties.
|
|
10711
10720
|
* @function create
|
|
@@ -10731,6 +10740,8 @@ $root.Calling = (function() {
|
|
|
10731
10740
|
if (!writer)
|
|
10732
10741
|
writer = $Writer.create();
|
|
10733
10742
|
writer.uint32(/* id 1, wireType 2 =*/10).string(message.content);
|
|
10743
|
+
if (message.qualifiedConversationId != null && Object.hasOwnProperty.call(message, "qualifiedConversationId"))
|
|
10744
|
+
$root.QualifiedConversationId.encode(message.qualifiedConversationId, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
10734
10745
|
return writer;
|
|
10735
10746
|
};
|
|
10736
10747
|
|
|
@@ -10769,6 +10780,10 @@ $root.Calling = (function() {
|
|
|
10769
10780
|
message.content = reader.string();
|
|
10770
10781
|
break;
|
|
10771
10782
|
}
|
|
10783
|
+
case 2: {
|
|
10784
|
+
message.qualifiedConversationId = $root.QualifiedConversationId.decode(reader, reader.uint32());
|
|
10785
|
+
break;
|
|
10786
|
+
}
|
|
10772
10787
|
default:
|
|
10773
10788
|
reader.skipType(tag & 7);
|
|
10774
10789
|
break;
|
|
@@ -10808,6 +10823,11 @@ $root.Calling = (function() {
|
|
|
10808
10823
|
return "object expected";
|
|
10809
10824
|
if (!$util.isString(message.content))
|
|
10810
10825
|
return "content: string expected";
|
|
10826
|
+
if (message.qualifiedConversationId != null && message.hasOwnProperty("qualifiedConversationId")) {
|
|
10827
|
+
var error = $root.QualifiedConversationId.verify(message.qualifiedConversationId);
|
|
10828
|
+
if (error)
|
|
10829
|
+
return "qualifiedConversationId." + error;
|
|
10830
|
+
}
|
|
10811
10831
|
return null;
|
|
10812
10832
|
};
|
|
10813
10833
|
|
|
@@ -10825,6 +10845,11 @@ $root.Calling = (function() {
|
|
|
10825
10845
|
var message = new $root.Calling();
|
|
10826
10846
|
if (object.content != null)
|
|
10827
10847
|
message.content = String(object.content);
|
|
10848
|
+
if (object.qualifiedConversationId != null) {
|
|
10849
|
+
if (typeof object.qualifiedConversationId !== "object")
|
|
10850
|
+
throw TypeError(".Calling.qualifiedConversationId: object expected");
|
|
10851
|
+
message.qualifiedConversationId = $root.QualifiedConversationId.fromObject(object.qualifiedConversationId);
|
|
10852
|
+
}
|
|
10828
10853
|
return message;
|
|
10829
10854
|
};
|
|
10830
10855
|
|
|
@@ -10841,10 +10866,14 @@ $root.Calling = (function() {
|
|
|
10841
10866
|
if (!options)
|
|
10842
10867
|
options = {};
|
|
10843
10868
|
var object = {};
|
|
10844
|
-
if (options.defaults)
|
|
10869
|
+
if (options.defaults) {
|
|
10845
10870
|
object.content = "";
|
|
10871
|
+
object.qualifiedConversationId = null;
|
|
10872
|
+
}
|
|
10846
10873
|
if (message.content != null && message.hasOwnProperty("content"))
|
|
10847
10874
|
object.content = message.content;
|
|
10875
|
+
if (message.qualifiedConversationId != null && message.hasOwnProperty("qualifiedConversationId"))
|
|
10876
|
+
object.qualifiedConversationId = $root.QualifiedConversationId.toObject(message.qualifiedConversationId, options);
|
|
10848
10877
|
return object;
|
|
10849
10878
|
};
|
|
10850
10879
|
|