@juzi/wechaty-grpc 1.0.10 → 1.0.13

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 (77) hide show
  1. package/dist/cjs/commonjs/generated/puppet.cjs.d.ts +0 -1
  2. package/dist/cjs/out/wechaty/puppet/event_pb.d.ts +1 -0
  3. package/dist/cjs/out/wechaty/puppet/event_pb.js +2 -1
  4. package/dist/cjs/out/wechaty/puppet/room_pb.d.ts +6 -0
  5. package/dist/cjs/out/wechaty/puppet/room_pb.js +58 -2
  6. package/dist/cjs/out/wechaty/puppet/tag_pb.d.ts +536 -76
  7. package/dist/cjs/out/wechaty/puppet/tag_pb.js +3909 -328
  8. package/dist/cjs/out/wechaty/puppet.openapi.yaml +413 -362
  9. package/dist/cjs/out/wechaty/puppet.swagger.json +652 -556
  10. package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +182 -183
  11. package/dist/cjs/out/wechaty/puppet_grpc_pb.js +343 -351
  12. package/dist/cjs/out/wechaty/puppet_pb.d.ts +0 -1
  13. package/dist/cjs/out/wechaty/puppet_pb.js +0 -2
  14. package/dist/cjs/out/wechaty/puppet_pb_service.d.ts +130 -131
  15. package/dist/cjs/out/wechaty/puppet_pb_service.js +78 -79
  16. package/dist/cjs/proto/wechaty/puppet/event.proto +1 -0
  17. package/dist/cjs/proto/wechaty/puppet/room.proto +14 -13
  18. package/dist/cjs/proto/wechaty/puppet/tag.proto +115 -29
  19. package/dist/cjs/proto/wechaty/puppet.proto +36 -37
  20. package/dist/cjs/src/package-json.js +1 -1
  21. package/dist/cjs/tests/puppet-server-impl.js +13 -13
  22. package/dist/cjs/tests/puppet-server-impl.js.map +1 -1
  23. package/dist/esm/commonjs/generated/puppet.cjs.d.ts +0 -1
  24. package/dist/esm/out/wechaty/puppet/event_pb.d.ts +1 -0
  25. package/dist/esm/out/wechaty/puppet/event_pb.js +2 -1
  26. package/dist/esm/out/wechaty/puppet/room_pb.d.ts +6 -0
  27. package/dist/esm/out/wechaty/puppet/room_pb.js +58 -2
  28. package/dist/esm/out/wechaty/puppet/tag_pb.d.ts +536 -76
  29. package/dist/esm/out/wechaty/puppet/tag_pb.js +3909 -328
  30. package/dist/esm/out/wechaty/puppet.openapi.yaml +413 -362
  31. package/dist/esm/out/wechaty/puppet.swagger.json +652 -556
  32. package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +182 -183
  33. package/dist/esm/out/wechaty/puppet_grpc_pb.js +343 -351
  34. package/dist/esm/out/wechaty/puppet_pb.d.ts +0 -1
  35. package/dist/esm/out/wechaty/puppet_pb.js +0 -2
  36. package/dist/esm/out/wechaty/puppet_pb_service.d.ts +130 -131
  37. package/dist/esm/out/wechaty/puppet_pb_service.js +78 -79
  38. package/dist/esm/proto/wechaty/puppet/event.proto +1 -0
  39. package/dist/esm/proto/wechaty/puppet/room.proto +14 -13
  40. package/dist/esm/proto/wechaty/puppet/tag.proto +115 -29
  41. package/dist/esm/proto/wechaty/puppet.proto +36 -37
  42. package/dist/esm/src/package-json.js +1 -1
  43. package/dist/esm/tests/puppet-server-impl.js +13 -13
  44. package/dist/esm/tests/puppet-server-impl.js.map +1 -1
  45. package/out/wechaty/puppet/event_pb.d.ts +1 -0
  46. package/out/wechaty/puppet/event_pb.js +2 -1
  47. package/out/wechaty/puppet/room_pb.d.ts +6 -0
  48. package/out/wechaty/puppet/room_pb.js +58 -2
  49. package/out/wechaty/puppet/tag_pb.d.ts +536 -76
  50. package/out/wechaty/puppet/tag_pb.js +3909 -328
  51. package/out/wechaty/puppet.openapi.yaml +413 -362
  52. package/out/wechaty/puppet.swagger.json +652 -556
  53. package/out/wechaty/puppet_grpc_pb.d.ts +182 -183
  54. package/out/wechaty/puppet_grpc_pb.js +343 -351
  55. package/out/wechaty/puppet_pb.d.ts +0 -1
  56. package/out/wechaty/puppet_pb.js +0 -2
  57. package/out/wechaty/puppet_pb_service.d.ts +130 -131
  58. package/out/wechaty/puppet_pb_service.js +78 -79
  59. package/package.json +1 -1
  60. package/src/package-json.ts +1 -1
  61. package/dist/cjs/out/wechaty/puppet/corp-tag_grpc_pb.js +0 -1
  62. package/dist/cjs/out/wechaty/puppet/corp-tag_pb.d.ts +0 -431
  63. package/dist/cjs/out/wechaty/puppet/corp-tag_pb.js +0 -3315
  64. package/dist/cjs/out/wechaty/puppet/corp-tag_pb_service.d.ts +0 -3
  65. package/dist/cjs/out/wechaty/puppet/corp-tag_pb_service.js +0 -3
  66. package/dist/cjs/proto/wechaty/puppet/corp-tag.proto +0 -90
  67. package/dist/esm/out/wechaty/puppet/corp-tag_grpc_pb.js +0 -1
  68. package/dist/esm/out/wechaty/puppet/corp-tag_pb.d.ts +0 -431
  69. package/dist/esm/out/wechaty/puppet/corp-tag_pb.js +0 -3315
  70. package/dist/esm/out/wechaty/puppet/corp-tag_pb_service.d.ts +0 -3
  71. package/dist/esm/out/wechaty/puppet/corp-tag_pb_service.js +0 -3
  72. package/dist/esm/proto/wechaty/puppet/corp-tag.proto +0 -90
  73. package/out/wechaty/puppet/corp-tag_grpc_pb.js +0 -1
  74. package/out/wechaty/puppet/corp-tag_pb.d.ts +0 -431
  75. package/out/wechaty/puppet/corp-tag_pb.js +0 -3315
  76. package/out/wechaty/puppet/corp-tag_pb_service.d.ts +0 -3
  77. package/out/wechaty/puppet/corp-tag_pb_service.js +0 -3
@@ -38,7 +38,6 @@ export * from '../../out/wechaty/puppet/room-member_pb.js'
38
38
  export * from '../../out/wechaty/puppet/tag_pb.js'
39
39
  export * from '../../out/wechaty/puppet/url-link_pb.js'
40
40
  export * from '../../out/wechaty/puppet/channel_pb.js'
41
- export * from '../../out/wechaty/puppet/corp-tag_pb.js'
42
41
 
43
42
  export * from '../../out/wechaty/puppet_grpc_pb.js'
44
43
  export * from '../../out/wechaty/puppet_pb.js'
@@ -61,6 +61,7 @@ export interface EventTypeMap {
61
61
  EVENT_TYPE_LOGIN: 25;
62
62
  EVENT_TYPE_LOGOUT: 26;
63
63
  EVENT_TYPE_DIRTY: 27;
64
+ EVENT_TYPE_TAG: 28;
64
65
  }
65
66
 
66
67
  export const EventType: EventTypeMap;
@@ -341,7 +341,8 @@ proto.wechaty.puppet.EventType = {
341
341
  EVENT_TYPE_RESET: 24,
342
342
  EVENT_TYPE_LOGIN: 25,
343
343
  EVENT_TYPE_LOGOUT: 26,
344
- EVENT_TYPE_DIRTY: 27
344
+ EVENT_TYPE_DIRTY: 27,
345
+ EVENT_TYPE_TAG: 28
345
346
  };
346
347
 
347
348
  goog.object.extend(exports, proto.wechaty.puppet);
@@ -251,6 +251,11 @@ export class RoomDelRequest extends jspb.Message {
251
251
  getContactId(): string;
252
252
  setContactId(value: string): void;
253
253
 
254
+ clearContactIdsList(): void;
255
+ getContactIdsList(): Array<string>;
256
+ setContactIdsList(value: Array<string>): void;
257
+ addContactIds(value: string, index?: number): string;
258
+
254
259
  serializeBinary(): Uint8Array;
255
260
  toObject(includeInstance?: boolean): RoomDelRequest.AsObject;
256
261
  static toObject(includeInstance: boolean, msg: RoomDelRequest): RoomDelRequest.AsObject;
@@ -265,6 +270,7 @@ export namespace RoomDelRequest {
265
270
  export type AsObject = {
266
271
  id: string,
267
272
  contactId: string,
273
+ contactIdsList: Array<string>,
268
274
  }
269
275
  }
270
276
 
@@ -258,7 +258,7 @@ if (goog.DEBUG && !COMPILED) {
258
258
  * @constructor
259
259
  */
260
260
  proto.wechaty.puppet.RoomDelRequest = function(opt_data) {
261
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
261
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.wechaty.puppet.RoomDelRequest.repeatedFields_, null);
262
262
  };
263
263
  goog.inherits(proto.wechaty.puppet.RoomDelRequest, jspb.Message);
264
264
  if (goog.DEBUG && !COMPILED) {
@@ -2097,6 +2097,13 @@ proto.wechaty.puppet.RoomCreateResponse.prototype.setId = function(value) {
2097
2097
 
2098
2098
 
2099
2099
 
2100
+ /**
2101
+ * List of repeated fields within this message type.
2102
+ * @private {!Array<number>}
2103
+ * @const
2104
+ */
2105
+ proto.wechaty.puppet.RoomDelRequest.repeatedFields_ = [3];
2106
+
2100
2107
 
2101
2108
 
2102
2109
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -2129,7 +2136,8 @@ proto.wechaty.puppet.RoomDelRequest.prototype.toObject = function(opt_includeIns
2129
2136
  proto.wechaty.puppet.RoomDelRequest.toObject = function(includeInstance, msg) {
2130
2137
  var f, obj = {
2131
2138
  id: jspb.Message.getFieldWithDefault(msg, 1, ""),
2132
- contactId: jspb.Message.getFieldWithDefault(msg, 2, "")
2139
+ contactId: jspb.Message.getFieldWithDefault(msg, 2, ""),
2140
+ contactIdsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f
2133
2141
  };
2134
2142
 
2135
2143
  if (includeInstance) {
@@ -2174,6 +2182,10 @@ proto.wechaty.puppet.RoomDelRequest.deserializeBinaryFromReader = function(msg,
2174
2182
  var value = /** @type {string} */ (reader.readString());
2175
2183
  msg.setContactId(value);
2176
2184
  break;
2185
+ case 3:
2186
+ var value = /** @type {string} */ (reader.readString());
2187
+ msg.addContactIds(value);
2188
+ break;
2177
2189
  default:
2178
2190
  reader.skipField();
2179
2191
  break;
@@ -2217,6 +2229,13 @@ proto.wechaty.puppet.RoomDelRequest.serializeBinaryToWriter = function(message,
2217
2229
  f
2218
2230
  );
2219
2231
  }
2232
+ f = message.getContactIdsList();
2233
+ if (f.length > 0) {
2234
+ writer.writeRepeatedString(
2235
+ 3,
2236
+ f
2237
+ );
2238
+ }
2220
2239
  };
2221
2240
 
2222
2241
 
@@ -2256,6 +2275,43 @@ proto.wechaty.puppet.RoomDelRequest.prototype.setContactId = function(value) {
2256
2275
  };
2257
2276
 
2258
2277
 
2278
+ /**
2279
+ * repeated string contact_ids = 3;
2280
+ * @return {!Array<string>}
2281
+ */
2282
+ proto.wechaty.puppet.RoomDelRequest.prototype.getContactIdsList = function() {
2283
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3));
2284
+ };
2285
+
2286
+
2287
+ /**
2288
+ * @param {!Array<string>} value
2289
+ * @return {!proto.wechaty.puppet.RoomDelRequest} returns this
2290
+ */
2291
+ proto.wechaty.puppet.RoomDelRequest.prototype.setContactIdsList = function(value) {
2292
+ return jspb.Message.setField(this, 3, value || []);
2293
+ };
2294
+
2295
+
2296
+ /**
2297
+ * @param {string} value
2298
+ * @param {number=} opt_index
2299
+ * @return {!proto.wechaty.puppet.RoomDelRequest} returns this
2300
+ */
2301
+ proto.wechaty.puppet.RoomDelRequest.prototype.addContactIds = function(value, opt_index) {
2302
+ return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
2303
+ };
2304
+
2305
+
2306
+ /**
2307
+ * Clears the list making it empty but non-null.
2308
+ * @return {!proto.wechaty.puppet.RoomDelRequest} returns this
2309
+ */
2310
+ proto.wechaty.puppet.RoomDelRequest.prototype.clearContactIdsList = function() {
2311
+ return this.setContactIdsList([]);
2312
+ };
2313
+
2314
+
2259
2315
 
2260
2316
 
2261
2317