Skip to content

Commit a4a92ae

Browse files
committed
contacts: add tsdoc and changelog for createNewGroup
1 parent 3b35f84 commit a4a92ae

2 files changed

Lines changed: 25 additions & 0 deletions

File tree

contacts/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ All notable changes to this module will be documented in this file.
44

55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## Unreleased
8+
9+
### Added
10+
11+
- [createNewGroup](https://solid-contrib.github.io/data-modules/contacts-rdflib-api/interfaces/ContactsModule.html#createNewGroup)
12+
713
## 0.2.1
814

915
### Fixed

contacts/src/index.ts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,16 @@ export interface ContactsModule {
3434
* @return Contact name, email addresses and phone numbers
3535
*/
3636
readContact(uri: string): Promise<FullContact>;
37+
38+
/**
39+
* Creates a new group within a given address book
40+
* @param command
41+
* @return The URI of the newly created group
42+
*/
43+
createNewGroup({
44+
addressBookUri,
45+
groupName,
46+
}: CreateNewGroupCommand): Promise<string>;
3747
}
3848

3949
/**
@@ -122,7 +132,16 @@ export interface PhoneNumber {
122132
*/
123133
export interface Group {}
124134

135+
/**
136+
* Data needed to create a new group within an address book
137+
*/
125138
export interface CreateNewGroupCommand {
139+
/**
140+
* The URI of an existing address book the new group should be added to
141+
*/
126142
addressBookUri: string;
143+
/**
144+
* The name of the group to create
145+
*/
127146
groupName: string;
128147
}

0 commit comments

Comments
 (0)