clubhouse-lib
Advanced tools
Comparing version 0.7.0 to 0.8.0
@@ -187,2 +187,22 @@ 'use strict'; | ||
}, { | ||
key: 'addReaction', | ||
value: function addReaction(storyId, commentId, emoji) { | ||
return this.createResource('stories/' + storyId + '/comments/' + commentId + '/reactions', { | ||
emoji: emoji | ||
}); | ||
} | ||
/** */ | ||
}, { | ||
key: 'deleteReaction', | ||
value: function deleteReaction(storyId, commentId, emoji) { | ||
return this.deleteResource('stories/' + storyId + '/comments/' + commentId + '/reactions', { | ||
emoji: emoji | ||
}); | ||
} | ||
/** */ | ||
}, { | ||
key: 'listStories', | ||
@@ -259,2 +279,20 @@ value: function listStories(projectID) { | ||
}, { | ||
key: 'deleteStoryComment', | ||
value: function deleteStoryComment(storyID, commentID) { | ||
return this.deleteResource('stories/' + storyID + '/comments/' + commentID); | ||
} | ||
/** */ | ||
}, { | ||
key: 'updateStoryComment', | ||
value: function updateStoryComment(storyID, commentID, text) { | ||
return this.updateResource('stories/' + storyID + '/comments/' + commentID, { | ||
text: text | ||
}); | ||
} | ||
/** */ | ||
}, { | ||
key: 'listTasks', | ||
@@ -388,2 +426,18 @@ value: function listTasks(storyID) { | ||
}, { | ||
key: 'createLabel', | ||
value: function createLabel(name, color) { | ||
return this.createResource('labels', { name: name, color: color }); | ||
} | ||
/** */ | ||
}, { | ||
key: 'listLabels', | ||
value: function listLabels() { | ||
return this.listResource('labels'); | ||
} | ||
/** */ | ||
}, { | ||
key: 'listTeams', | ||
@@ -390,0 +444,0 @@ value: function listTeams() { |
{ | ||
"name": "clubhouse-lib", | ||
"version": "0.7.0", | ||
"version": "0.8.0", | ||
"description": "A Promise based library to the Clubhouse REST API", | ||
@@ -5,0 +5,0 @@ "files": [ |
@@ -20,2 +20,4 @@ export default class Client { | ||
deleteEpic(epicID: ID): Promise<{}> | ||
addReaction(storyId: ID, commentId: ID, emoji: string): Promise<void> | ||
deleteReaction(storyId: ID, commentId: ID, emoji: string): Promise<void> | ||
listStories(projectID: ID): Promise<Array<Story>> | ||
@@ -28,2 +30,3 @@ searchStories(query: String, pageSize?: number): Promise<StorySearchResult> | ||
createStoryComment(storyID: ID, text: string): Promise<StoryComment> | ||
deleteStoryComment(storyID: ID, commentID: ID): Promise<{}> | ||
listTasks(storyID: ID): Promise<Array<Task>> | ||
@@ -44,2 +47,4 @@ createTask(storyID: ID, params: TaskChange): Promise<Task> | ||
deleteLinkedFile(linkedFileID: ID): Promise<{}> | ||
createLabel(name: string, color: string): Promise<any> | ||
listLabels(): Promise<Array<Label>> | ||
listTeams(): Promise<Array<Team>> | ||
@@ -46,0 +51,0 @@ getTeam(teamID: ID): Promise<Team> |
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
50792
924
2