@juzi/wechaty-grpc 1.0.50 → 1.0.51

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.
@@ -133,24 +133,24 @@ message ContactDeleteResponse {}
133
133
 
134
134
  message ContactPayloadModifyRequest {
135
135
  string id = 1;
136
- ContactGender gender = 2; // 性别
137
- ContactType type = 3; // 类型
138
- string name = 4; // 姓名
139
- string avatar = 5; // 头像
140
- string address = 6; // 地址
141
- string alias = 7; // 别名,即备注
142
- string city = 8; // 城市
143
- bool friend = 9; // 是否为好友
144
- string province = 10; // 省份
145
- string signature = 11; // 签名
146
- bool star = 12; // 是否为特别好友
147
- string weixin = 13; // IM专属id,在企微环境中特指weixinId
148
- string corporation = 14; // 企业
149
- string title = 15; // 头衔
150
- string description = 16; // 描述
151
- bool coworker = 17; // 是否为同事
136
+ optional ContactGender gender = 2; // 性别
137
+ optional ContactType type = 3; // 类型
138
+ optional string name = 4; // 姓名
139
+ optional string avatar = 5; // 头像
140
+ optional string address = 6; // 地址
141
+ optional string alias = 7; // 别名,即备注
142
+ optional string city = 8; // 城市
143
+ optional bool friend = 9; // 是否为好友
144
+ optional string province = 10; // 省份
145
+ optional string signature = 11; // 签名
146
+ optional bool star = 12; // 是否为特别好友
147
+ optional string weixin = 13; // IM专属id,在企微环境中特指weixinId
148
+ optional string corporation = 14; // 企业
149
+ optional string title = 15; // 头衔
150
+ optional string description = 16; // 描述
151
+ optional bool coworker = 17; // 是否为同事
152
152
  repeated string phones = 18; // 电话号码,企微中最多5个
153
- string additional_info = 19; // 额外信息,是由JS对象stringify得到的字符串,目前支持的内容包含addContactTime、corpId等。
153
+ optional string additional_info = 19; // 额外信息,是由JS对象stringify得到的字符串,目前支持的内容包含addContactTime、corpId等。
154
154
  repeated string tag_ids = 20; // 标签(的id)
155
155
  }
156
156
 
@@ -1,6 +1,6 @@
1
1
  export const packageJson = {
2
2
  "name": "@juzi/wechaty-grpc",
3
- "version": "1.0.50",
3
+ "version": "1.0.51",
4
4
  "description": "gRPC for Wechaty",
5
5
  "type": "module",
6
6
  "exports": {
@@ -566,51 +566,83 @@ export class ContactPayloadModifyRequest extends jspb.Message {
566
566
  getId(): string;
567
567
  setId(value: string): void;
568
568
 
569
+ hasGender(): boolean;
570
+ clearGender(): void;
569
571
  getGender(): ContactGenderMap[keyof ContactGenderMap];
570
572
  setGender(value: ContactGenderMap[keyof ContactGenderMap]): void;
571
573
 
574
+ hasType(): boolean;
575
+ clearType(): void;
572
576
  getType(): ContactTypeMap[keyof ContactTypeMap];
573
577
  setType(value: ContactTypeMap[keyof ContactTypeMap]): void;
574
578
 
579
+ hasName(): boolean;
580
+ clearName(): void;
575
581
  getName(): string;
576
582
  setName(value: string): void;
577
583
 
584
+ hasAvatar(): boolean;
585
+ clearAvatar(): void;
578
586
  getAvatar(): string;
579
587
  setAvatar(value: string): void;
580
588
 
589
+ hasAddress(): boolean;
590
+ clearAddress(): void;
581
591
  getAddress(): string;
582
592
  setAddress(value: string): void;
583
593
 
594
+ hasAlias(): boolean;
595
+ clearAlias(): void;
584
596
  getAlias(): string;
585
597
  setAlias(value: string): void;
586
598
 
599
+ hasCity(): boolean;
600
+ clearCity(): void;
587
601
  getCity(): string;
588
602
  setCity(value: string): void;
589
603
 
604
+ hasFriend(): boolean;
605
+ clearFriend(): void;
590
606
  getFriend(): boolean;
591
607
  setFriend(value: boolean): void;
592
608
 
609
+ hasProvince(): boolean;
610
+ clearProvince(): void;
593
611
  getProvince(): string;
594
612
  setProvince(value: string): void;
595
613
 
614
+ hasSignature(): boolean;
615
+ clearSignature(): void;
596
616
  getSignature(): string;
597
617
  setSignature(value: string): void;
598
618
 
619
+ hasStar(): boolean;
620
+ clearStar(): void;
599
621
  getStar(): boolean;
600
622
  setStar(value: boolean): void;
601
623
 
624
+ hasWeixin(): boolean;
625
+ clearWeixin(): void;
602
626
  getWeixin(): string;
603
627
  setWeixin(value: string): void;
604
628
 
629
+ hasCorporation(): boolean;
630
+ clearCorporation(): void;
605
631
  getCorporation(): string;
606
632
  setCorporation(value: string): void;
607
633
 
634
+ hasTitle(): boolean;
635
+ clearTitle(): void;
608
636
  getTitle(): string;
609
637
  setTitle(value: string): void;
610
638
 
639
+ hasDescription(): boolean;
640
+ clearDescription(): void;
611
641
  getDescription(): string;
612
642
  setDescription(value: string): void;
613
643
 
644
+ hasCoworker(): boolean;
645
+ clearCoworker(): void;
614
646
  getCoworker(): boolean;
615
647
  setCoworker(value: boolean): void;
616
648
 
@@ -619,6 +651,8 @@ export class ContactPayloadModifyRequest extends jspb.Message {
619
651
  setPhonesList(value: Array<string>): void;
620
652
  addPhones(value: string, index?: number): string;
621
653
 
654
+ hasAdditionalInfo(): boolean;
655
+ clearAdditionalInfo(): void;
622
656
  getAdditionalInfo(): string;
623
657
  setAdditionalInfo(value: string): void;
624
658