@juzi/wechaty-grpc 1.0.15 → 1.0.16

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.
@@ -3,7 +3,6 @@
3
3
 
4
4
  import * as jspb from "google-protobuf";
5
5
  import * as google_protobuf_wrappers_pb from "google-protobuf/google/protobuf/wrappers_pb";
6
- import * as wechaty_puppet_tag_pb from "../../wechaty/puppet/tag_pb";
7
6
 
8
7
  export class ContactListRequest extends jspb.Message {
9
8
  serializeBinary(): Uint8Array;
@@ -123,10 +122,10 @@ export class ContactPayloadResponse extends jspb.Message {
123
122
  getAdditionalInfo(): string;
124
123
  setAdditionalInfo(value: string): void;
125
124
 
126
- clearTagsList(): void;
127
- getTagsList(): Array<wechaty_puppet_tag_pb.TagIdentifier>;
128
- setTagsList(value: Array<wechaty_puppet_tag_pb.TagIdentifier>): void;
129
- addTags(value?: wechaty_puppet_tag_pb.TagIdentifier, index?: number): wechaty_puppet_tag_pb.TagIdentifier;
125
+ clearTagIdsList(): void;
126
+ getTagIdsList(): Array<string>;
127
+ setTagIdsList(value: Array<string>): void;
128
+ addTagIds(value: string, index?: number): string;
130
129
 
131
130
  serializeBinary(): Uint8Array;
132
131
  toObject(includeInstance?: boolean): ContactPayloadResponse.AsObject;
@@ -159,7 +158,7 @@ export namespace ContactPayloadResponse {
159
158
  coworker: boolean,
160
159
  phonesList: Array<string>,
161
160
  additionalInfo: string,
162
- tagsList: Array<wechaty_puppet_tag_pb.TagIdentifier.AsObject>,
161
+ tagIdsList: Array<string>,
163
162
  }
164
163
  }
165
164
 
@@ -17,8 +17,6 @@ var global = (function() { return this || window || global || self || Function('
17
17
 
18
18
  var google_protobuf_wrappers_pb = require('google-protobuf/google/protobuf/wrappers_pb.js');
19
19
  goog.object.extend(proto, google_protobuf_wrappers_pb);
20
- var wechaty_puppet_tag_pb = require('../../wechaty/puppet/tag_pb.js');
21
- goog.object.extend(proto, wechaty_puppet_tag_pb);
22
20
  goog.exportSymbol('proto.wechaty.puppet.ContactAliasRequest', null, global);
23
21
  goog.exportSymbol('proto.wechaty.puppet.ContactAliasResponse', null, global);
24
22
  goog.exportSymbol('proto.wechaty.puppet.ContactAvatarRequest', null, global);
@@ -906,8 +904,7 @@ proto.wechaty.puppet.ContactPayloadResponse.toObject = function(includeInstance,
906
904
  coworker: jspb.Message.getBooleanFieldWithDefault(msg, 17, false),
907
905
  phonesList: (f = jspb.Message.getRepeatedField(msg, 18)) == null ? undefined : f,
908
906
  additionalInfo: jspb.Message.getFieldWithDefault(msg, 19, ""),
909
- tagsList: jspb.Message.toObjectList(msg.getTagsList(),
910
- wechaty_puppet_tag_pb.TagIdentifier.toObject, includeInstance)
907
+ tagIdsList: (f = jspb.Message.getRepeatedField(msg, 20)) == null ? undefined : f
911
908
  };
912
909
 
913
910
  if (includeInstance) {
@@ -1021,9 +1018,8 @@ proto.wechaty.puppet.ContactPayloadResponse.deserializeBinaryFromReader = functi
1021
1018
  msg.setAdditionalInfo(value);
1022
1019
  break;
1023
1020
  case 20:
1024
- var value = new wechaty_puppet_tag_pb.TagIdentifier;
1025
- reader.readMessage(value,wechaty_puppet_tag_pb.TagIdentifier.deserializeBinaryFromReader);
1026
- msg.addTags(value);
1021
+ var value = /** @type {string} */ (reader.readString());
1022
+ msg.addTagIds(value);
1027
1023
  break;
1028
1024
  default:
1029
1025
  reader.skipField();
@@ -1187,12 +1183,11 @@ proto.wechaty.puppet.ContactPayloadResponse.serializeBinaryToWriter = function(m
1187
1183
  f
1188
1184
  );
1189
1185
  }
1190
- f = message.getTagsList();
1186
+ f = message.getTagIdsList();
1191
1187
  if (f.length > 0) {
1192
- writer.writeRepeatedMessage(
1188
+ writer.writeRepeatedString(
1193
1189
  20,
1194
- f,
1195
- wechaty_puppet_tag_pb.TagIdentifier.serializeBinaryToWriter
1190
+ f
1196
1191
  );
1197
1192
  }
1198
1193
  };
@@ -1560,31 +1555,30 @@ proto.wechaty.puppet.ContactPayloadResponse.prototype.setAdditionalInfo = functi
1560
1555
 
1561
1556
 
1562
1557
  /**
1563
- * repeated TagIdentifier tags = 20;
1564
- * @return {!Array<!proto.wechaty.puppet.TagIdentifier>}
1558
+ * repeated string tag_ids = 20;
1559
+ * @return {!Array<string>}
1565
1560
  */
1566
- proto.wechaty.puppet.ContactPayloadResponse.prototype.getTagsList = function() {
1567
- return /** @type{!Array<!proto.wechaty.puppet.TagIdentifier>} */ (
1568
- jspb.Message.getRepeatedWrapperField(this, wechaty_puppet_tag_pb.TagIdentifier, 20));
1561
+ proto.wechaty.puppet.ContactPayloadResponse.prototype.getTagIdsList = function() {
1562
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 20));
1569
1563
  };
1570
1564
 
1571
1565
 
1572
1566
  /**
1573
- * @param {!Array<!proto.wechaty.puppet.TagIdentifier>} value
1567
+ * @param {!Array<string>} value
1574
1568
  * @return {!proto.wechaty.puppet.ContactPayloadResponse} returns this
1575
- */
1576
- proto.wechaty.puppet.ContactPayloadResponse.prototype.setTagsList = function(value) {
1577
- return jspb.Message.setRepeatedWrapperField(this, 20, value);
1569
+ */
1570
+ proto.wechaty.puppet.ContactPayloadResponse.prototype.setTagIdsList = function(value) {
1571
+ return jspb.Message.setField(this, 20, value || []);
1578
1572
  };
1579
1573
 
1580
1574
 
1581
1575
  /**
1582
- * @param {!proto.wechaty.puppet.TagIdentifier=} opt_value
1576
+ * @param {string} value
1583
1577
  * @param {number=} opt_index
1584
- * @return {!proto.wechaty.puppet.TagIdentifier}
1578
+ * @return {!proto.wechaty.puppet.ContactPayloadResponse} returns this
1585
1579
  */
1586
- proto.wechaty.puppet.ContactPayloadResponse.prototype.addTags = function(opt_value, opt_index) {
1587
- return jspb.Message.addToRepeatedWrapperField(this, 20, opt_value, proto.wechaty.puppet.TagIdentifier, opt_index);
1580
+ proto.wechaty.puppet.ContactPayloadResponse.prototype.addTagIds = function(value, opt_index) {
1581
+ return jspb.Message.addToRepeatedField(this, 20, value, opt_index);
1588
1582
  };
1589
1583
 
1590
1584
 
@@ -1592,8 +1586,8 @@ proto.wechaty.puppet.ContactPayloadResponse.prototype.addTags = function(opt_val
1592
1586
  * Clears the list making it empty but non-null.
1593
1587
  * @return {!proto.wechaty.puppet.ContactPayloadResponse} returns this
1594
1588
  */
1595
- proto.wechaty.puppet.ContactPayloadResponse.prototype.clearTagsList = function() {
1596
- return this.setTagsList([]);
1589
+ proto.wechaty.puppet.ContactPayloadResponse.prototype.clearTagIdsList = function() {
1590
+ return this.setTagIdsList([]);
1597
1591
  };
1598
1592
 
1599
1593
 
@@ -35,30 +35,6 @@ export namespace TagPayload {
35
35
  }
36
36
  }
37
37
 
38
- export class TagIdentifier extends jspb.Message {
39
- getId(): string;
40
- setId(value: string): void;
41
-
42
- getGroupId(): string;
43
- setGroupId(value: string): void;
44
-
45
- serializeBinary(): Uint8Array;
46
- toObject(includeInstance?: boolean): TagIdentifier.AsObject;
47
- static toObject(includeInstance: boolean, msg: TagIdentifier): TagIdentifier.AsObject;
48
- static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
49
- static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
50
- static serializeBinaryToWriter(message: TagIdentifier, writer: jspb.BinaryWriter): void;
51
- static deserializeBinary(bytes: Uint8Array): TagIdentifier;
52
- static deserializeBinaryFromReader(message: TagIdentifier, reader: jspb.BinaryReader): TagIdentifier;
53
- }
54
-
55
- export namespace TagIdentifier {
56
- export type AsObject = {
57
- id: string,
58
- groupId: string,
59
- }
60
- }
61
-
62
38
  export class TagGroupPayload extends jspb.Message {
63
39
  getId(): string;
64
40
  setId(value: string): void;
@@ -88,10 +64,10 @@ export namespace TagGroupPayload {
88
64
  }
89
65
 
90
66
  export class TagContactTagAddRequest extends jspb.Message {
91
- clearTagsList(): void;
92
- getTagsList(): Array<TagIdentifier>;
93
- setTagsList(value: Array<TagIdentifier>): void;
94
- addTags(value?: TagIdentifier, index?: number): TagIdentifier;
67
+ clearTagIdsList(): void;
68
+ getTagIdsList(): Array<string>;
69
+ setTagIdsList(value: Array<string>): void;
70
+ addTagIds(value: string, index?: number): string;
95
71
 
96
72
  clearContactIdsList(): void;
97
73
  getContactIdsList(): Array<string>;
@@ -110,7 +86,7 @@ export class TagContactTagAddRequest extends jspb.Message {
110
86
 
111
87
  export namespace TagContactTagAddRequest {
112
88
  export type AsObject = {
113
- tagsList: Array<TagIdentifier.AsObject>,
89
+ tagIdsList: Array<string>,
114
90
  contactIdsList: Array<string>,
115
91
  }
116
92
  }
@@ -132,10 +108,10 @@ export namespace TagContactTagAddResponse {
132
108
  }
133
109
 
134
110
  export class TagContactTagRemoveRequest extends jspb.Message {
135
- clearTagsList(): void;
136
- getTagsList(): Array<TagIdentifier>;
137
- setTagsList(value: Array<TagIdentifier>): void;
138
- addTags(value?: TagIdentifier, index?: number): TagIdentifier;
111
+ clearTagIdsList(): void;
112
+ getTagIdsList(): Array<string>;
113
+ setTagIdsList(value: Array<string>): void;
114
+ addTagIds(value: string, index?: number): string;
139
115
 
140
116
  clearContactIdsList(): void;
141
117
  getContactIdsList(): Array<string>;
@@ -154,7 +130,7 @@ export class TagContactTagRemoveRequest extends jspb.Message {
154
130
 
155
131
  export namespace TagContactTagRemoveRequest {
156
132
  export type AsObject = {
157
- tagsList: Array<TagIdentifier.AsObject>,
133
+ tagIdsList: Array<string>,
158
134
  contactIdsList: Array<string>,
159
135
  }
160
136
  }
@@ -276,10 +252,8 @@ export namespace TagTagAddRequest {
276
252
  }
277
253
 
278
254
  export class TagTagAddResponse extends jspb.Message {
279
- hasTag(): boolean;
280
- clearTag(): void;
281
- getTag(): TagIdentifier | undefined;
282
- setTag(value?: TagIdentifier): void;
255
+ getTagId(): string;
256
+ setTagId(value: string): void;
283
257
 
284
258
  serializeBinary(): Uint8Array;
285
259
  toObject(includeInstance?: boolean): TagTagAddResponse.AsObject;
@@ -293,15 +267,13 @@ export class TagTagAddResponse extends jspb.Message {
293
267
 
294
268
  export namespace TagTagAddResponse {
295
269
  export type AsObject = {
296
- tag?: TagIdentifier.AsObject,
270
+ tagId: string,
297
271
  }
298
272
  }
299
273
 
300
274
  export class TagTagDeleteRequest extends jspb.Message {
301
- hasTag(): boolean;
302
- clearTag(): void;
303
- getTag(): TagIdentifier | undefined;
304
- setTag(value?: TagIdentifier): void;
275
+ getTagId(): string;
276
+ setTagId(value: string): void;
305
277
 
306
278
  serializeBinary(): Uint8Array;
307
279
  toObject(includeInstance?: boolean): TagTagDeleteRequest.AsObject;
@@ -315,7 +287,7 @@ export class TagTagDeleteRequest extends jspb.Message {
315
287
 
316
288
  export namespace TagTagDeleteRequest {
317
289
  export type AsObject = {
318
- tag?: TagIdentifier.AsObject,
290
+ tagId: string,
319
291
  }
320
292
  }
321
293
 
@@ -394,10 +366,10 @@ export namespace TagGroupTagListRequest {
394
366
  }
395
367
 
396
368
  export class TagGroupTagListResponse extends jspb.Message {
397
- clearTagsList(): void;
398
- getTagsList(): Array<TagIdentifier>;
399
- setTagsList(value: Array<TagIdentifier>): void;
400
- addTags(value?: TagIdentifier, index?: number): TagIdentifier;
369
+ clearTagIdsList(): void;
370
+ getTagIdsList(): Array<string>;
371
+ setTagIdsList(value: Array<string>): void;
372
+ addTagIds(value: string, index?: number): string;
401
373
 
402
374
  serializeBinary(): Uint8Array;
403
375
  toObject(includeInstance?: boolean): TagGroupTagListResponse.AsObject;
@@ -411,7 +383,7 @@ export class TagGroupTagListResponse extends jspb.Message {
411
383
 
412
384
  export namespace TagGroupTagListResponse {
413
385
  export type AsObject = {
414
- tagsList: Array<TagIdentifier.AsObject>,
386
+ tagIdsList: Array<string>,
415
387
  }
416
388
  }
417
389
 
@@ -432,10 +404,10 @@ export namespace TagTagListRequest {
432
404
  }
433
405
 
434
406
  export class TagTagListResponse extends jspb.Message {
435
- clearTagsList(): void;
436
- getTagsList(): Array<TagIdentifier>;
437
- setTagsList(value: Array<TagIdentifier>): void;
438
- addTags(value?: TagIdentifier, index?: number): TagIdentifier;
407
+ clearTagIdsList(): void;
408
+ getTagIdsList(): Array<string>;
409
+ setTagIdsList(value: Array<string>): void;
410
+ addTagIds(value: string, index?: number): string;
439
411
 
440
412
  serializeBinary(): Uint8Array;
441
413
  toObject(includeInstance?: boolean): TagTagListResponse.AsObject;
@@ -449,7 +421,7 @@ export class TagTagListResponse extends jspb.Message {
449
421
 
450
422
  export namespace TagTagListResponse {
451
423
  export type AsObject = {
452
- tagsList: Array<TagIdentifier.AsObject>,
424
+ tagIdsList: Array<string>,
453
425
  }
454
426
  }
455
427
 
@@ -474,10 +446,10 @@ export namespace TagContactTagListRequest {
474
446
  }
475
447
 
476
448
  export class TagContactTagListResponse extends jspb.Message {
477
- clearTagsList(): void;
478
- getTagsList(): Array<TagIdentifier>;
479
- setTagsList(value: Array<TagIdentifier>): void;
480
- addTags(value?: TagIdentifier, index?: number): TagIdentifier;
449
+ clearTagIdsList(): void;
450
+ getTagIdsList(): Array<string>;
451
+ setTagIdsList(value: Array<string>): void;
452
+ addTagIds(value: string, index?: number): string;
481
453
 
482
454
  serializeBinary(): Uint8Array;
483
455
  toObject(includeInstance?: boolean): TagContactTagListResponse.AsObject;
@@ -491,15 +463,13 @@ export class TagContactTagListResponse extends jspb.Message {
491
463
 
492
464
  export namespace TagContactTagListResponse {
493
465
  export type AsObject = {
494
- tagsList: Array<TagIdentifier.AsObject>,
466
+ tagIdsList: Array<string>,
495
467
  }
496
468
  }
497
469
 
498
470
  export class TagTagContactListRequest extends jspb.Message {
499
- hasTag(): boolean;
500
- clearTag(): void;
501
- getTag(): TagIdentifier | undefined;
502
- setTag(value?: TagIdentifier): void;
471
+ getTagId(): string;
472
+ setTagId(value: string): void;
503
473
 
504
474
  serializeBinary(): Uint8Array;
505
475
  toObject(includeInstance?: boolean): TagTagContactListRequest.AsObject;
@@ -513,7 +483,7 @@ export class TagTagContactListRequest extends jspb.Message {
513
483
 
514
484
  export namespace TagTagContactListRequest {
515
485
  export type AsObject = {
516
- tag?: TagIdentifier.AsObject,
486
+ tagId: string,
517
487
  }
518
488
  }
519
489
 
@@ -582,10 +552,8 @@ export namespace TagGroupPayloadResponse {
582
552
  }
583
553
 
584
554
  export class TagPayloadRequest extends jspb.Message {
585
- hasTag(): boolean;
586
- clearTag(): void;
587
- getTag(): TagIdentifier | undefined;
588
- setTag(value?: TagIdentifier): void;
555
+ getTagId(): string;
556
+ setTagId(value: string): void;
589
557
 
590
558
  serializeBinary(): Uint8Array;
591
559
  toObject(includeInstance?: boolean): TagPayloadRequest.AsObject;
@@ -599,7 +567,7 @@ export class TagPayloadRequest extends jspb.Message {
599
567
 
600
568
  export namespace TagPayloadRequest {
601
569
  export type AsObject = {
602
- tag?: TagIdentifier.AsObject,
570
+ tagId: string,
603
571
  }
604
572
  }
605
573