@juzi/wechaty-grpc 1.0.13 → 1.0.14

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.
@@ -66,6 +66,9 @@ export class TagGroupPayload extends jspb.Message {
66
66
  getName(): string;
67
67
  setName(value: string): void;
68
68
 
69
+ getType(): TagTypeMap[keyof TagTypeMap];
70
+ setType(value: TagTypeMap[keyof TagTypeMap]): void;
71
+
69
72
  serializeBinary(): Uint8Array;
70
73
  toObject(includeInstance?: boolean): TagGroupPayload.AsObject;
71
74
  static toObject(includeInstance: boolean, msg: TagGroupPayload): TagGroupPayload.AsObject;
@@ -80,6 +83,7 @@ export namespace TagGroupPayload {
80
83
  export type AsObject = {
81
84
  id: string,
82
85
  name: string,
86
+ type: TagTypeMap[keyof TagTypeMap],
83
87
  }
84
88
  }
85
89
 
@@ -1067,7 +1067,8 @@ proto.wechaty.puppet.TagGroupPayload.prototype.toObject = function(opt_includeIn
1067
1067
  proto.wechaty.puppet.TagGroupPayload.toObject = function(includeInstance, msg) {
1068
1068
  var f, obj = {
1069
1069
  id: jspb.Message.getFieldWithDefault(msg, 1, ""),
1070
- name: jspb.Message.getFieldWithDefault(msg, 2, "")
1070
+ name: jspb.Message.getFieldWithDefault(msg, 2, ""),
1071
+ type: jspb.Message.getFieldWithDefault(msg, 3, 0)
1071
1072
  };
1072
1073
 
1073
1074
  if (includeInstance) {
@@ -1112,6 +1113,10 @@ proto.wechaty.puppet.TagGroupPayload.deserializeBinaryFromReader = function(msg,
1112
1113
  var value = /** @type {string} */ (reader.readString());
1113
1114
  msg.setName(value);
1114
1115
  break;
1116
+ case 3:
1117
+ var value = /** @type {!proto.wechaty.puppet.TagType} */ (reader.readEnum());
1118
+ msg.setType(value);
1119
+ break;
1115
1120
  default:
1116
1121
  reader.skipField();
1117
1122
  break;
@@ -1155,6 +1160,13 @@ proto.wechaty.puppet.TagGroupPayload.serializeBinaryToWriter = function(message,
1155
1160
  f
1156
1161
  );
1157
1162
  }
1163
+ f = message.getType();
1164
+ if (f !== 0.0) {
1165
+ writer.writeEnum(
1166
+ 3,
1167
+ f
1168
+ );
1169
+ }
1158
1170
  };
1159
1171
 
1160
1172
 
@@ -1194,6 +1206,24 @@ proto.wechaty.puppet.TagGroupPayload.prototype.setName = function(value) {
1194
1206
  };
1195
1207
 
1196
1208
 
1209
+ /**
1210
+ * optional TagType type = 3;
1211
+ * @return {!proto.wechaty.puppet.TagType}
1212
+ */
1213
+ proto.wechaty.puppet.TagGroupPayload.prototype.getType = function() {
1214
+ return /** @type {!proto.wechaty.puppet.TagType} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
1215
+ };
1216
+
1217
+
1218
+ /**
1219
+ * @param {!proto.wechaty.puppet.TagType} value
1220
+ * @return {!proto.wechaty.puppet.TagGroupPayload} returns this
1221
+ */
1222
+ proto.wechaty.puppet.TagGroupPayload.prototype.setType = function(value) {
1223
+ return jspb.Message.setProto3EnumField(this, 3, value);
1224
+ };
1225
+
1226
+
1197
1227
 
1198
1228
  /**
1199
1229
  * List of repeated fields within this message type.
@@ -9,7 +9,7 @@ info:
9
9
 
10
10
  Wechaty Puppet Service is the RESTful API for Wechaty API, which is build on
11
11
  top of the Wechaty Puppet Abstraction and the gRPC proto definition.
12
- version: 1.0.13
12
+ version: 1.0.14
13
13
  contact:
14
14
  name: Wechaty
15
15
  url: 'https://github.com/wechaty/openapi'
@@ -2699,6 +2699,8 @@ definitions:
2699
2699
  type: string
2700
2700
  name:
2701
2701
  type: string
2702
+ type:
2703
+ $ref: '#/definitions/puppetTagType'
2702
2704
  puppetTagGroupPayloadRequest:
2703
2705
  type: object
2704
2706
  properties:
@@ -3,7 +3,7 @@
3
3
  "info": {
4
4
  "title": "Wechaty Puppet Service OpenAPI Specification",
5
5
  "description": "Wechaty is a Conversational RPA SDK for chatbot makers. With only 6 lines of code, you can create a bot on the most popular IMs like WeChat, Whatsapp, WeCom, Gitter, etc.\n\nWechaty Puppet Service is the RESTful API for Wechaty API, which is build on top of the Wechaty Puppet Abstraction and the gRPC proto definition.",
6
- "version": "1.0.13",
6
+ "version": "1.0.14",
7
7
  "contact": {
8
8
  "name": "Wechaty",
9
9
  "url": "https://github.com/wechaty/openapi",
@@ -3907,6 +3907,9 @@
3907
3907
  },
3908
3908
  "name": {
3909
3909
  "type": "string"
3910
+ },
3911
+ "type": {
3912
+ "$ref": "#/definitions/puppetTagType"
3910
3913
  }
3911
3914
  }
3912
3915
  },
@@ -23,8 +23,9 @@ message TagIdentifier {
23
23
  }
24
24
 
25
25
  message TagGroupPayload {
26
- string id = 1;
27
- string name = 2;
26
+ string id = 1;
27
+ string name = 2;
28
+ TagType type = 3;
28
29
  }
29
30
 
30
31
  message TagContactTagAddRequest {
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.packageJson = void 0;
4
4
  exports.packageJson = {
5
5
  "name": "@juzi/wechaty-grpc",
6
- "version": "1.0.13",
6
+ "version": "1.0.14",
7
7
  "description": "gRPC for Wechaty",
8
8
  "type": "module",
9
9
  "exports": {
@@ -66,6 +66,9 @@ export class TagGroupPayload extends jspb.Message {
66
66
  getName(): string;
67
67
  setName(value: string): void;
68
68
 
69
+ getType(): TagTypeMap[keyof TagTypeMap];
70
+ setType(value: TagTypeMap[keyof TagTypeMap]): void;
71
+
69
72
  serializeBinary(): Uint8Array;
70
73
  toObject(includeInstance?: boolean): TagGroupPayload.AsObject;
71
74
  static toObject(includeInstance: boolean, msg: TagGroupPayload): TagGroupPayload.AsObject;
@@ -80,6 +83,7 @@ export namespace TagGroupPayload {
80
83
  export type AsObject = {
81
84
  id: string,
82
85
  name: string,
86
+ type: TagTypeMap[keyof TagTypeMap],
83
87
  }
84
88
  }
85
89
 
@@ -1067,7 +1067,8 @@ proto.wechaty.puppet.TagGroupPayload.prototype.toObject = function(opt_includeIn
1067
1067
  proto.wechaty.puppet.TagGroupPayload.toObject = function(includeInstance, msg) {
1068
1068
  var f, obj = {
1069
1069
  id: jspb.Message.getFieldWithDefault(msg, 1, ""),
1070
- name: jspb.Message.getFieldWithDefault(msg, 2, "")
1070
+ name: jspb.Message.getFieldWithDefault(msg, 2, ""),
1071
+ type: jspb.Message.getFieldWithDefault(msg, 3, 0)
1071
1072
  };
1072
1073
 
1073
1074
  if (includeInstance) {
@@ -1112,6 +1113,10 @@ proto.wechaty.puppet.TagGroupPayload.deserializeBinaryFromReader = function(msg,
1112
1113
  var value = /** @type {string} */ (reader.readString());
1113
1114
  msg.setName(value);
1114
1115
  break;
1116
+ case 3:
1117
+ var value = /** @type {!proto.wechaty.puppet.TagType} */ (reader.readEnum());
1118
+ msg.setType(value);
1119
+ break;
1115
1120
  default:
1116
1121
  reader.skipField();
1117
1122
  break;
@@ -1155,6 +1160,13 @@ proto.wechaty.puppet.TagGroupPayload.serializeBinaryToWriter = function(message,
1155
1160
  f
1156
1161
  );
1157
1162
  }
1163
+ f = message.getType();
1164
+ if (f !== 0.0) {
1165
+ writer.writeEnum(
1166
+ 3,
1167
+ f
1168
+ );
1169
+ }
1158
1170
  };
1159
1171
 
1160
1172
 
@@ -1194,6 +1206,24 @@ proto.wechaty.puppet.TagGroupPayload.prototype.setName = function(value) {
1194
1206
  };
1195
1207
 
1196
1208
 
1209
+ /**
1210
+ * optional TagType type = 3;
1211
+ * @return {!proto.wechaty.puppet.TagType}
1212
+ */
1213
+ proto.wechaty.puppet.TagGroupPayload.prototype.getType = function() {
1214
+ return /** @type {!proto.wechaty.puppet.TagType} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
1215
+ };
1216
+
1217
+
1218
+ /**
1219
+ * @param {!proto.wechaty.puppet.TagType} value
1220
+ * @return {!proto.wechaty.puppet.TagGroupPayload} returns this
1221
+ */
1222
+ proto.wechaty.puppet.TagGroupPayload.prototype.setType = function(value) {
1223
+ return jspb.Message.setProto3EnumField(this, 3, value);
1224
+ };
1225
+
1226
+
1197
1227
 
1198
1228
  /**
1199
1229
  * List of repeated fields within this message type.
@@ -9,7 +9,7 @@ info:
9
9
 
10
10
  Wechaty Puppet Service is the RESTful API for Wechaty API, which is build on
11
11
  top of the Wechaty Puppet Abstraction and the gRPC proto definition.
12
- version: 1.0.13
12
+ version: 1.0.14
13
13
  contact:
14
14
  name: Wechaty
15
15
  url: 'https://github.com/wechaty/openapi'
@@ -2699,6 +2699,8 @@ definitions:
2699
2699
  type: string
2700
2700
  name:
2701
2701
  type: string
2702
+ type:
2703
+ $ref: '#/definitions/puppetTagType'
2702
2704
  puppetTagGroupPayloadRequest:
2703
2705
  type: object
2704
2706
  properties:
@@ -3,7 +3,7 @@
3
3
  "info": {
4
4
  "title": "Wechaty Puppet Service OpenAPI Specification",
5
5
  "description": "Wechaty is a Conversational RPA SDK for chatbot makers. With only 6 lines of code, you can create a bot on the most popular IMs like WeChat, Whatsapp, WeCom, Gitter, etc.\n\nWechaty Puppet Service is the RESTful API for Wechaty API, which is build on top of the Wechaty Puppet Abstraction and the gRPC proto definition.",
6
- "version": "1.0.13",
6
+ "version": "1.0.14",
7
7
  "contact": {
8
8
  "name": "Wechaty",
9
9
  "url": "https://github.com/wechaty/openapi",
@@ -3907,6 +3907,9 @@
3907
3907
  },
3908
3908
  "name": {
3909
3909
  "type": "string"
3910
+ },
3911
+ "type": {
3912
+ "$ref": "#/definitions/puppetTagType"
3910
3913
  }
3911
3914
  }
3912
3915
  },
@@ -23,8 +23,9 @@ message TagIdentifier {
23
23
  }
24
24
 
25
25
  message TagGroupPayload {
26
- string id = 1;
27
- string name = 2;
26
+ string id = 1;
27
+ string name = 2;
28
+ TagType type = 3;
28
29
  }
29
30
 
30
31
  message TagContactTagAddRequest {
@@ -1,6 +1,6 @@
1
1
  export const packageJson = {
2
2
  "name": "@juzi/wechaty-grpc",
3
- "version": "1.0.13",
3
+ "version": "1.0.14",
4
4
  "description": "gRPC for Wechaty",
5
5
  "type": "module",
6
6
  "exports": {
@@ -66,6 +66,9 @@ export class TagGroupPayload extends jspb.Message {
66
66
  getName(): string;
67
67
  setName(value: string): void;
68
68
 
69
+ getType(): TagTypeMap[keyof TagTypeMap];
70
+ setType(value: TagTypeMap[keyof TagTypeMap]): void;
71
+
69
72
  serializeBinary(): Uint8Array;
70
73
  toObject(includeInstance?: boolean): TagGroupPayload.AsObject;
71
74
  static toObject(includeInstance: boolean, msg: TagGroupPayload): TagGroupPayload.AsObject;
@@ -80,6 +83,7 @@ export namespace TagGroupPayload {
80
83
  export type AsObject = {
81
84
  id: string,
82
85
  name: string,
86
+ type: TagTypeMap[keyof TagTypeMap],
83
87
  }
84
88
  }
85
89
 
@@ -1067,7 +1067,8 @@ proto.wechaty.puppet.TagGroupPayload.prototype.toObject = function(opt_includeIn
1067
1067
  proto.wechaty.puppet.TagGroupPayload.toObject = function(includeInstance, msg) {
1068
1068
  var f, obj = {
1069
1069
  id: jspb.Message.getFieldWithDefault(msg, 1, ""),
1070
- name: jspb.Message.getFieldWithDefault(msg, 2, "")
1070
+ name: jspb.Message.getFieldWithDefault(msg, 2, ""),
1071
+ type: jspb.Message.getFieldWithDefault(msg, 3, 0)
1071
1072
  };
1072
1073
 
1073
1074
  if (includeInstance) {
@@ -1112,6 +1113,10 @@ proto.wechaty.puppet.TagGroupPayload.deserializeBinaryFromReader = function(msg,
1112
1113
  var value = /** @type {string} */ (reader.readString());
1113
1114
  msg.setName(value);
1114
1115
  break;
1116
+ case 3:
1117
+ var value = /** @type {!proto.wechaty.puppet.TagType} */ (reader.readEnum());
1118
+ msg.setType(value);
1119
+ break;
1115
1120
  default:
1116
1121
  reader.skipField();
1117
1122
  break;
@@ -1155,6 +1160,13 @@ proto.wechaty.puppet.TagGroupPayload.serializeBinaryToWriter = function(message,
1155
1160
  f
1156
1161
  );
1157
1162
  }
1163
+ f = message.getType();
1164
+ if (f !== 0.0) {
1165
+ writer.writeEnum(
1166
+ 3,
1167
+ f
1168
+ );
1169
+ }
1158
1170
  };
1159
1171
 
1160
1172
 
@@ -1194,6 +1206,24 @@ proto.wechaty.puppet.TagGroupPayload.prototype.setName = function(value) {
1194
1206
  };
1195
1207
 
1196
1208
 
1209
+ /**
1210
+ * optional TagType type = 3;
1211
+ * @return {!proto.wechaty.puppet.TagType}
1212
+ */
1213
+ proto.wechaty.puppet.TagGroupPayload.prototype.getType = function() {
1214
+ return /** @type {!proto.wechaty.puppet.TagType} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
1215
+ };
1216
+
1217
+
1218
+ /**
1219
+ * @param {!proto.wechaty.puppet.TagType} value
1220
+ * @return {!proto.wechaty.puppet.TagGroupPayload} returns this
1221
+ */
1222
+ proto.wechaty.puppet.TagGroupPayload.prototype.setType = function(value) {
1223
+ return jspb.Message.setProto3EnumField(this, 3, value);
1224
+ };
1225
+
1226
+
1197
1227
 
1198
1228
  /**
1199
1229
  * List of repeated fields within this message type.
@@ -9,7 +9,7 @@ info:
9
9
 
10
10
  Wechaty Puppet Service is the RESTful API for Wechaty API, which is build on
11
11
  top of the Wechaty Puppet Abstraction and the gRPC proto definition.
12
- version: 1.0.13
12
+ version: 1.0.14
13
13
  contact:
14
14
  name: Wechaty
15
15
  url: 'https://github.com/wechaty/openapi'
@@ -2699,6 +2699,8 @@ definitions:
2699
2699
  type: string
2700
2700
  name:
2701
2701
  type: string
2702
+ type:
2703
+ $ref: '#/definitions/puppetTagType'
2702
2704
  puppetTagGroupPayloadRequest:
2703
2705
  type: object
2704
2706
  properties:
@@ -3,7 +3,7 @@
3
3
  "info": {
4
4
  "title": "Wechaty Puppet Service OpenAPI Specification",
5
5
  "description": "Wechaty is a Conversational RPA SDK for chatbot makers. With only 6 lines of code, you can create a bot on the most popular IMs like WeChat, Whatsapp, WeCom, Gitter, etc.\n\nWechaty Puppet Service is the RESTful API for Wechaty API, which is build on top of the Wechaty Puppet Abstraction and the gRPC proto definition.",
6
- "version": "1.0.13",
6
+ "version": "1.0.14",
7
7
  "contact": {
8
8
  "name": "Wechaty",
9
9
  "url": "https://github.com/wechaty/openapi",
@@ -3907,6 +3907,9 @@
3907
3907
  },
3908
3908
  "name": {
3909
3909
  "type": "string"
3910
+ },
3911
+ "type": {
3912
+ "$ref": "#/definitions/puppetTagType"
3910
3913
  }
3911
3914
  }
3912
3915
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juzi/wechaty-grpc",
3
- "version": "1.0.13",
3
+ "version": "1.0.14",
4
4
  "description": "gRPC for Wechaty",
5
5
  "type": "module",
6
6
  "exports": {
@@ -4,7 +4,7 @@
4
4
  import type { PackageJson } from 'type-fest'
5
5
  export const packageJson: PackageJson = {
6
6
  "name": "@juzi/wechaty-grpc",
7
- "version": "1.0.13",
7
+ "version": "1.0.14",
8
8
  "description": "gRPC for Wechaty",
9
9
  "type": "module",
10
10
  "exports": {