user 6 anos atrás
pai
commit
9c6b19d95b

+ 1 - 0
lib/contact-item.d.ts

@@ -5,6 +5,7 @@ export declare class ContactItem {
     readonly hash: string;
     addrs: string[];
     groups: string[];
+    names: string[];
     notes: string;
     constructor(props: ContactParams);
     matchesAddressOrName(search: string): boolean;

+ 2 - 0
lib/contact-item.js

@@ -7,6 +7,7 @@ class ContactItem {
         this.id = props.id;
         this.addrs = props.addrs || [];
         this.groups = props.groups || [];
+        this.names = props.names || [];
         this.notes = props.notes || '';
     }
     matchesAddressOrName(search) {
@@ -37,6 +38,7 @@ class ContactItem {
             groups: this.groups,
             hash: this.hash,
             id: this.id,
+            names: this.names,
             notes: this.notes
         };
     }

Diferenças do arquivo suprimidas por serem muito extensas
+ 1 - 1
lib/contact-item.js.map


+ 1 - 0
lib/contact-params.d.ts

@@ -1,6 +1,7 @@
 export interface ContactParams {
     id: string;
     hash: string;
+    names: string[];
     addrs: string[];
     groups: string[];
     notes: string;

+ 3 - 0
src/contact-item.ts

@@ -7,6 +7,7 @@ export class ContactItem {
   public readonly hash: string;
   public addrs: string[];
   public groups: string[];
+  public names: string[];
   public notes: string;
   
   constructor(props: ContactParams) {
@@ -15,6 +16,7 @@ export class ContactItem {
     this.id = props.id;
     this.addrs = props.addrs || [];
     this.groups = props.groups || [];
+    this.names = props.names || [];
     this.notes = props.notes || '';
   }
 
@@ -50,6 +52,7 @@ export class ContactItem {
       groups: this.groups,
       hash: this.hash,
       id: this.id,
+      names: this.names,
       notes: this.notes
     };
   }

+ 1 - 0
src/contact-params.ts

@@ -1,6 +1,7 @@
 export interface ContactParams {
     id: string;
     hash: string;
+    names: string[];
     addrs: string[];
     groups: string[];
     notes: string;