(
userId: string,
addressBookId: string,
contactId: string,
vCard: string,
)
| 83 | } |
| 84 | |
| 85 | static async create( |
| 86 | userId: string, |
| 87 | addressBookId: string, |
| 88 | contactId: string, |
| 89 | vCard: string, |
| 90 | ): Promise<void> { |
| 91 | const client = await getClient(userId); |
| 92 | |
| 93 | const addressBookUrl = `${contactsConfig.cardDavUrl}/${userId}/${addressBookId}/`; |
| 94 | |
| 95 | await client.createVCard({ |
| 96 | addressBook: { |
| 97 | url: addressBookUrl, |
| 98 | }, |
| 99 | vCardString: vCard, |
| 100 | filename: `${contactId}.vcf`, |
| 101 | }); |
| 102 | } |
| 103 | |
| 104 | static async update( |
| 105 | userId: string, |
nothing calls this directly
no test coverage detected