@juzi/wechaty-grpc 1.0.70 → 1.0.72
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/dist/cjs/commonjs/generated/puppet.cjs +1 -0
- package/dist/cjs/commonjs/generated/puppet.cjs.d.ts +1 -0
- package/dist/cjs/out/wechaty/puppet/chat-history_pb.d.ts +4 -0
- package/dist/cjs/out/wechaty/puppet/chat-history_pb.js +35 -5
- package/dist/cjs/out/wechaty/puppet/wecom_grpc_pb.js +1 -0
- package/dist/cjs/out/wechaty/puppet/wecom_pb.d.ts +77 -0
- package/dist/cjs/out/wechaty/puppet/wecom_pb.js +590 -0
- package/dist/cjs/out/wechaty/puppet/wecom_pb_service.d.ts +3 -0
- package/dist/cjs/out/wechaty/puppet/wecom_pb_service.js +3 -0
- package/dist/cjs/out/wechaty/puppet.openapi.yaml +47 -1
- package/dist/cjs/out/wechaty/puppet.swagger.json +73 -1
- package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +18 -0
- package/dist/cjs/out/wechaty/puppet_grpc_pb.js +37 -0
- package/dist/cjs/out/wechaty/puppet_pb.d.ts +1 -0
- package/dist/cjs/out/wechaty/puppet_pb.js +2 -0
- package/dist/cjs/out/wechaty/puppet_pb_service.d.ts +20 -0
- package/dist/cjs/out/wechaty/puppet_pb_service.js +41 -0
- package/dist/cjs/proto/wechaty/puppet/chat-history.proto +2 -1
- package/dist/cjs/proto/wechaty/puppet/wecom.proto +20 -0
- package/dist/cjs/proto/wechaty/puppet.proto +11 -0
- package/dist/cjs/src/package-json.js +1 -1
- package/dist/cjs/tests/puppet-server-impl.d.ts.map +1 -1
- package/dist/cjs/tests/puppet-server-impl.js +5 -0
- package/dist/cjs/tests/puppet-server-impl.js.map +1 -1
- package/dist/esm/commonjs/generated/puppet.cjs +1 -0
- package/dist/esm/commonjs/generated/puppet.cjs.d.ts +1 -0
- package/dist/esm/out/wechaty/puppet/chat-history_pb.d.ts +4 -0
- package/dist/esm/out/wechaty/puppet/chat-history_pb.js +35 -5
- package/dist/esm/out/wechaty/puppet/wecom_grpc_pb.js +1 -0
- package/dist/esm/out/wechaty/puppet/wecom_pb.d.ts +77 -0
- package/dist/esm/out/wechaty/puppet/wecom_pb.js +590 -0
- package/dist/esm/out/wechaty/puppet/wecom_pb_service.d.ts +3 -0
- package/dist/esm/out/wechaty/puppet/wecom_pb_service.js +3 -0
- package/dist/esm/out/wechaty/puppet.openapi.yaml +47 -1
- package/dist/esm/out/wechaty/puppet.swagger.json +73 -1
- package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +18 -0
- package/dist/esm/out/wechaty/puppet_grpc_pb.js +37 -0
- package/dist/esm/out/wechaty/puppet_pb.d.ts +1 -0
- package/dist/esm/out/wechaty/puppet_pb.js +2 -0
- package/dist/esm/out/wechaty/puppet_pb_service.d.ts +20 -0
- package/dist/esm/out/wechaty/puppet_pb_service.js +41 -0
- package/dist/esm/proto/wechaty/puppet/chat-history.proto +2 -1
- package/dist/esm/proto/wechaty/puppet/wecom.proto +20 -0
- package/dist/esm/proto/wechaty/puppet.proto +11 -0
- package/dist/esm/src/package-json.js +1 -1
- package/dist/esm/tests/puppet-server-impl.d.ts.map +1 -1
- package/dist/esm/tests/puppet-server-impl.js +5 -0
- package/dist/esm/tests/puppet-server-impl.js.map +1 -1
- package/out/wechaty/puppet/chat-history_pb.d.ts +4 -0
- package/out/wechaty/puppet/chat-history_pb.js +35 -5
- package/out/wechaty/puppet/wecom_grpc_pb.js +1 -0
- package/out/wechaty/puppet/wecom_pb.d.ts +77 -0
- package/out/wechaty/puppet/wecom_pb.js +590 -0
- package/out/wechaty/puppet/wecom_pb_service.d.ts +3 -0
- package/out/wechaty/puppet/wecom_pb_service.js +3 -0
- package/out/wechaty/puppet.openapi.yaml +47 -1
- package/out/wechaty/puppet.swagger.json +73 -1
- package/out/wechaty/puppet_grpc_pb.d.ts +18 -0
- package/out/wechaty/puppet_grpc_pb.js +37 -0
- package/out/wechaty/puppet_pb.d.ts +1 -0
- package/out/wechaty/puppet_pb.js +2 -0
- package/out/wechaty/puppet_pb_service.d.ts +20 -0
- package/out/wechaty/puppet_pb_service.js +41 -0
- package/package.json +1 -1
- package/src/package-json.ts +1 -1
|
@@ -559,6 +559,7 @@ proto.wechaty.puppet.ChatHistoryPayload.toObject = function(includeInstance, msg
|
|
|
559
559
|
senderName: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
560
560
|
corpName: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
561
561
|
time: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
|
562
|
+
title: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
562
563
|
message: (f = msg.getMessage()) && proto.wechaty.puppet.ChatHistoryContent.toObject(includeInstance, f)
|
|
563
564
|
};
|
|
564
565
|
|
|
@@ -617,6 +618,10 @@ proto.wechaty.puppet.ChatHistoryPayload.deserializeBinaryFromReader = function(m
|
|
|
617
618
|
msg.setTime(value);
|
|
618
619
|
break;
|
|
619
620
|
case 6:
|
|
621
|
+
var value = /** @type {string} */ (reader.readString());
|
|
622
|
+
msg.setTitle(value);
|
|
623
|
+
break;
|
|
624
|
+
case 7:
|
|
620
625
|
var value = new proto.wechaty.puppet.ChatHistoryContent;
|
|
621
626
|
reader.readMessage(value,proto.wechaty.puppet.ChatHistoryContent.deserializeBinaryFromReader);
|
|
622
627
|
msg.setMessage(value);
|
|
@@ -685,10 +690,17 @@ proto.wechaty.puppet.ChatHistoryPayload.serializeBinaryToWriter = function(messa
|
|
|
685
690
|
f
|
|
686
691
|
);
|
|
687
692
|
}
|
|
693
|
+
f = message.getTitle();
|
|
694
|
+
if (f.length > 0) {
|
|
695
|
+
writer.writeString(
|
|
696
|
+
6,
|
|
697
|
+
f
|
|
698
|
+
);
|
|
699
|
+
}
|
|
688
700
|
f = message.getMessage();
|
|
689
701
|
if (f != null) {
|
|
690
702
|
writer.writeMessage(
|
|
691
|
-
|
|
703
|
+
7,
|
|
692
704
|
f,
|
|
693
705
|
proto.wechaty.puppet.ChatHistoryContent.serializeBinaryToWriter
|
|
694
706
|
);
|
|
@@ -787,12 +799,30 @@ proto.wechaty.puppet.ChatHistoryPayload.prototype.setTime = function(value) {
|
|
|
787
799
|
|
|
788
800
|
|
|
789
801
|
/**
|
|
790
|
-
* optional
|
|
802
|
+
* optional string title = 6;
|
|
803
|
+
* @return {string}
|
|
804
|
+
*/
|
|
805
|
+
proto.wechaty.puppet.ChatHistoryPayload.prototype.getTitle = function() {
|
|
806
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
|
807
|
+
};
|
|
808
|
+
|
|
809
|
+
|
|
810
|
+
/**
|
|
811
|
+
* @param {string} value
|
|
812
|
+
* @return {!proto.wechaty.puppet.ChatHistoryPayload} returns this
|
|
813
|
+
*/
|
|
814
|
+
proto.wechaty.puppet.ChatHistoryPayload.prototype.setTitle = function(value) {
|
|
815
|
+
return jspb.Message.setProto3StringField(this, 6, value);
|
|
816
|
+
};
|
|
817
|
+
|
|
818
|
+
|
|
819
|
+
/**
|
|
820
|
+
* optional ChatHistoryContent message = 7;
|
|
791
821
|
* @return {?proto.wechaty.puppet.ChatHistoryContent}
|
|
792
822
|
*/
|
|
793
823
|
proto.wechaty.puppet.ChatHistoryPayload.prototype.getMessage = function() {
|
|
794
824
|
return /** @type{?proto.wechaty.puppet.ChatHistoryContent} */ (
|
|
795
|
-
jspb.Message.getWrapperField(this, proto.wechaty.puppet.ChatHistoryContent,
|
|
825
|
+
jspb.Message.getWrapperField(this, proto.wechaty.puppet.ChatHistoryContent, 7));
|
|
796
826
|
};
|
|
797
827
|
|
|
798
828
|
|
|
@@ -801,7 +831,7 @@ proto.wechaty.puppet.ChatHistoryPayload.prototype.getMessage = function() {
|
|
|
801
831
|
* @return {!proto.wechaty.puppet.ChatHistoryPayload} returns this
|
|
802
832
|
*/
|
|
803
833
|
proto.wechaty.puppet.ChatHistoryPayload.prototype.setMessage = function(value) {
|
|
804
|
-
return jspb.Message.setWrapperField(this,
|
|
834
|
+
return jspb.Message.setWrapperField(this, 7, value);
|
|
805
835
|
};
|
|
806
836
|
|
|
807
837
|
|
|
@@ -819,7 +849,7 @@ proto.wechaty.puppet.ChatHistoryPayload.prototype.clearMessage = function() {
|
|
|
819
849
|
* @return {boolean}
|
|
820
850
|
*/
|
|
821
851
|
proto.wechaty.puppet.ChatHistoryPayload.prototype.hasMessage = function() {
|
|
822
|
-
return jspb.Message.getField(this,
|
|
852
|
+
return jspb.Message.getField(this, 7) != null;
|
|
823
853
|
};
|
|
824
854
|
|
|
825
855
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
// GENERATED CODE -- NO SERVICES IN PROTO
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
// package: wechaty.puppet
|
|
2
|
+
// file: wechaty/puppet/wecom.proto
|
|
3
|
+
|
|
4
|
+
import * as jspb from "google-protobuf";
|
|
5
|
+
|
|
6
|
+
export class ContactExternalUserIdPair extends jspb.Message {
|
|
7
|
+
getContactId(): string;
|
|
8
|
+
setContactId(value: string): void;
|
|
9
|
+
|
|
10
|
+
getExternalUserId(): string;
|
|
11
|
+
setExternalUserId(value: string): void;
|
|
12
|
+
|
|
13
|
+
serializeBinary(): Uint8Array;
|
|
14
|
+
toObject(includeInstance?: boolean): ContactExternalUserIdPair.AsObject;
|
|
15
|
+
static toObject(includeInstance: boolean, msg: ContactExternalUserIdPair): ContactExternalUserIdPair.AsObject;
|
|
16
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
17
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
18
|
+
static serializeBinaryToWriter(message: ContactExternalUserIdPair, writer: jspb.BinaryWriter): void;
|
|
19
|
+
static deserializeBinary(bytes: Uint8Array): ContactExternalUserIdPair;
|
|
20
|
+
static deserializeBinaryFromReader(message: ContactExternalUserIdPair, reader: jspb.BinaryReader): ContactExternalUserIdPair;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export namespace ContactExternalUserIdPair {
|
|
24
|
+
export type AsObject = {
|
|
25
|
+
contactId: string,
|
|
26
|
+
externalUserId: string,
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export class GetContactExternalUserIdRequest extends jspb.Message {
|
|
31
|
+
clearContactIdsList(): void;
|
|
32
|
+
getContactIdsList(): Array<string>;
|
|
33
|
+
setContactIdsList(value: Array<string>): void;
|
|
34
|
+
addContactIds(value: string, index?: number): string;
|
|
35
|
+
|
|
36
|
+
getServiceProviderId(): string;
|
|
37
|
+
setServiceProviderId(value: string): void;
|
|
38
|
+
|
|
39
|
+
serializeBinary(): Uint8Array;
|
|
40
|
+
toObject(includeInstance?: boolean): GetContactExternalUserIdRequest.AsObject;
|
|
41
|
+
static toObject(includeInstance: boolean, msg: GetContactExternalUserIdRequest): GetContactExternalUserIdRequest.AsObject;
|
|
42
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
43
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
44
|
+
static serializeBinaryToWriter(message: GetContactExternalUserIdRequest, writer: jspb.BinaryWriter): void;
|
|
45
|
+
static deserializeBinary(bytes: Uint8Array): GetContactExternalUserIdRequest;
|
|
46
|
+
static deserializeBinaryFromReader(message: GetContactExternalUserIdRequest, reader: jspb.BinaryReader): GetContactExternalUserIdRequest;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export namespace GetContactExternalUserIdRequest {
|
|
50
|
+
export type AsObject = {
|
|
51
|
+
contactIdsList: Array<string>,
|
|
52
|
+
serviceProviderId: string,
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export class GetContactExternalUserIdResponse extends jspb.Message {
|
|
57
|
+
clearContactExternalUserIdParisList(): void;
|
|
58
|
+
getContactExternalUserIdParisList(): Array<ContactExternalUserIdPair>;
|
|
59
|
+
setContactExternalUserIdParisList(value: Array<ContactExternalUserIdPair>): void;
|
|
60
|
+
addContactExternalUserIdParis(value?: ContactExternalUserIdPair, index?: number): ContactExternalUserIdPair;
|
|
61
|
+
|
|
62
|
+
serializeBinary(): Uint8Array;
|
|
63
|
+
toObject(includeInstance?: boolean): GetContactExternalUserIdResponse.AsObject;
|
|
64
|
+
static toObject(includeInstance: boolean, msg: GetContactExternalUserIdResponse): GetContactExternalUserIdResponse.AsObject;
|
|
65
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
66
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
67
|
+
static serializeBinaryToWriter(message: GetContactExternalUserIdResponse, writer: jspb.BinaryWriter): void;
|
|
68
|
+
static deserializeBinary(bytes: Uint8Array): GetContactExternalUserIdResponse;
|
|
69
|
+
static deserializeBinaryFromReader(message: GetContactExternalUserIdResponse, reader: jspb.BinaryReader): GetContactExternalUserIdResponse;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export namespace GetContactExternalUserIdResponse {
|
|
73
|
+
export type AsObject = {
|
|
74
|
+
contactExternalUserIdParisList: Array<ContactExternalUserIdPair.AsObject>,
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|