@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.
Files changed (65) hide show
  1. package/dist/cjs/commonjs/generated/puppet.cjs +1 -0
  2. package/dist/cjs/commonjs/generated/puppet.cjs.d.ts +1 -0
  3. package/dist/cjs/out/wechaty/puppet/chat-history_pb.d.ts +4 -0
  4. package/dist/cjs/out/wechaty/puppet/chat-history_pb.js +35 -5
  5. package/dist/cjs/out/wechaty/puppet/wecom_grpc_pb.js +1 -0
  6. package/dist/cjs/out/wechaty/puppet/wecom_pb.d.ts +77 -0
  7. package/dist/cjs/out/wechaty/puppet/wecom_pb.js +590 -0
  8. package/dist/cjs/out/wechaty/puppet/wecom_pb_service.d.ts +3 -0
  9. package/dist/cjs/out/wechaty/puppet/wecom_pb_service.js +3 -0
  10. package/dist/cjs/out/wechaty/puppet.openapi.yaml +47 -1
  11. package/dist/cjs/out/wechaty/puppet.swagger.json +73 -1
  12. package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +18 -0
  13. package/dist/cjs/out/wechaty/puppet_grpc_pb.js +37 -0
  14. package/dist/cjs/out/wechaty/puppet_pb.d.ts +1 -0
  15. package/dist/cjs/out/wechaty/puppet_pb.js +2 -0
  16. package/dist/cjs/out/wechaty/puppet_pb_service.d.ts +20 -0
  17. package/dist/cjs/out/wechaty/puppet_pb_service.js +41 -0
  18. package/dist/cjs/proto/wechaty/puppet/chat-history.proto +2 -1
  19. package/dist/cjs/proto/wechaty/puppet/wecom.proto +20 -0
  20. package/dist/cjs/proto/wechaty/puppet.proto +11 -0
  21. package/dist/cjs/src/package-json.js +1 -1
  22. package/dist/cjs/tests/puppet-server-impl.d.ts.map +1 -1
  23. package/dist/cjs/tests/puppet-server-impl.js +5 -0
  24. package/dist/cjs/tests/puppet-server-impl.js.map +1 -1
  25. package/dist/esm/commonjs/generated/puppet.cjs +1 -0
  26. package/dist/esm/commonjs/generated/puppet.cjs.d.ts +1 -0
  27. package/dist/esm/out/wechaty/puppet/chat-history_pb.d.ts +4 -0
  28. package/dist/esm/out/wechaty/puppet/chat-history_pb.js +35 -5
  29. package/dist/esm/out/wechaty/puppet/wecom_grpc_pb.js +1 -0
  30. package/dist/esm/out/wechaty/puppet/wecom_pb.d.ts +77 -0
  31. package/dist/esm/out/wechaty/puppet/wecom_pb.js +590 -0
  32. package/dist/esm/out/wechaty/puppet/wecom_pb_service.d.ts +3 -0
  33. package/dist/esm/out/wechaty/puppet/wecom_pb_service.js +3 -0
  34. package/dist/esm/out/wechaty/puppet.openapi.yaml +47 -1
  35. package/dist/esm/out/wechaty/puppet.swagger.json +73 -1
  36. package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +18 -0
  37. package/dist/esm/out/wechaty/puppet_grpc_pb.js +37 -0
  38. package/dist/esm/out/wechaty/puppet_pb.d.ts +1 -0
  39. package/dist/esm/out/wechaty/puppet_pb.js +2 -0
  40. package/dist/esm/out/wechaty/puppet_pb_service.d.ts +20 -0
  41. package/dist/esm/out/wechaty/puppet_pb_service.js +41 -0
  42. package/dist/esm/proto/wechaty/puppet/chat-history.proto +2 -1
  43. package/dist/esm/proto/wechaty/puppet/wecom.proto +20 -0
  44. package/dist/esm/proto/wechaty/puppet.proto +11 -0
  45. package/dist/esm/src/package-json.js +1 -1
  46. package/dist/esm/tests/puppet-server-impl.d.ts.map +1 -1
  47. package/dist/esm/tests/puppet-server-impl.js +5 -0
  48. package/dist/esm/tests/puppet-server-impl.js.map +1 -1
  49. package/out/wechaty/puppet/chat-history_pb.d.ts +4 -0
  50. package/out/wechaty/puppet/chat-history_pb.js +35 -5
  51. package/out/wechaty/puppet/wecom_grpc_pb.js +1 -0
  52. package/out/wechaty/puppet/wecom_pb.d.ts +77 -0
  53. package/out/wechaty/puppet/wecom_pb.js +590 -0
  54. package/out/wechaty/puppet/wecom_pb_service.d.ts +3 -0
  55. package/out/wechaty/puppet/wecom_pb_service.js +3 -0
  56. package/out/wechaty/puppet.openapi.yaml +47 -1
  57. package/out/wechaty/puppet.swagger.json +73 -1
  58. package/out/wechaty/puppet_grpc_pb.d.ts +18 -0
  59. package/out/wechaty/puppet_grpc_pb.js +37 -0
  60. package/out/wechaty/puppet_pb.d.ts +1 -0
  61. package/out/wechaty/puppet_pb.js +2 -0
  62. package/out/wechaty/puppet_pb_service.d.ts +20 -0
  63. package/out/wechaty/puppet_pb_service.js +41 -0
  64. package/package.json +1 -1
  65. 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
- 6,
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 ChatHistoryContent message = 6;
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, 6));
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, 6, value);
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, 6) != null;
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
+