Skip to content

Commit

Permalink
Add deprecated annotation (resolves #29)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmktomato committed Mar 19, 2021
1 parent fdb0389 commit c033613
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions dist/backlog.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,17 @@ declare module 'backlog-js' {
getRecentlyViewedIssues(params: Option.User.GetRecentlyViewedParams): Promise<any>;
getRecentlyViewedProjects(params: Option.User.GetRecentlyViewedParams): Promise<any>;
getRecentlyViewedWikis(params: Option.User.GetRecentlyViewedParams): Promise<any>;
/** @deprecated */
getGroups(params: Option.Group.GetGroupsParams): Promise<any>;
/** @deprecated */
postGroups(params: Option.Group.PostGroupsParams): Promise<any>;
/** @deprecated */
getGroup(groupId: number): Promise<any>;
/** @deprecated */
patchGroup(groupId: number, params: Option.Group.PatchGroupParams): Promise<any>;
/** @deprecated */
deleteGroup(groupId: number): Promise<any>;
/** @deprecated */
getStatuses(): Promise<any>;
getProjectStatuses(projectIdOrKey: string): Promise<any>;
getResolutions(): Promise<any>;
Expand Down Expand Up @@ -173,9 +179,13 @@ declare module 'backlog-js' {
patchWatchingListItem(watchId: number, note: string): Promise<any>;
deletehWatchingListItem(watchId: number);
resetWatchingListItemAsRead(watchId: number): Promise<undefined>;
/** @deprecated */
getProjectGroupList(projectIdOrKey: string|number);
/** @deprecated */
postProjectGroup(projectIdOrKey: string|number, params: any);
/** @deprecated */
deleteProjectGroup(projectIdOrKey: string|number);
/** @deprecated */
getGroupIcon(groupId: string): Promise<any>;
getLicence(): Promise<any>;
getTeams(params?: Option.Team.GetTeamsParams): Promise<any>;
Expand Down
10 changes: 10 additions & 0 deletions src/backlog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ export default class Backlog extends Request {

/**
* https://developer.nulab.com/docs/backlog/api/2/get-list-of-groups/
* @deprecated
*/
public getGroups(params: Option.Group.GetGroupsParams): Promise<any> {
console.warn("Deprecated: Use getTeams instead.");
Expand All @@ -178,6 +179,7 @@ export default class Backlog extends Request {

/**
* https://developer.nulab.com/docs/backlog/api/2/add-group/
* @deprecated
*/
public postGroups(params: Option.Group.PostGroupsParams): Promise<any> {
console.warn("Deprecated: Use postTeam instead.");
Expand All @@ -186,6 +188,7 @@ export default class Backlog extends Request {

/**
* https://developer.nulab.com/docs/backlog/api/2/get-group/
* @deprecated
*/
public getGroup(groupId: number): Promise<any> {
console.warn("Deprecated: Use getTeam instead.");
Expand All @@ -194,6 +197,7 @@ export default class Backlog extends Request {

/**
* https://developer.nulab.com/docs/backlog/api/2/update-group/
* @deprecated
*/
public patchGroup(
groupId: number, params: Option.Group.PatchGroupParams
Expand All @@ -204,6 +208,7 @@ export default class Backlog extends Request {

/**
* https://developer.nulab.com/docs/backlog/api/2/delete-group/
* @deprecated
*/
public deleteGroup(groupId: number): Promise<any> {
console.warn("Deprecated: Use deleteTeam instead.");
Expand All @@ -212,6 +217,7 @@ export default class Backlog extends Request {

/**
* https://developer.nulab.com/docs/backlog/api/2/get-status-list/
* @deprecated
*/
public getStatuses(): Promise<any> {
console.warn("Deprecated: Use getProjectStatuses instead.");
Expand Down Expand Up @@ -1122,6 +1128,7 @@ export default class Backlog extends Request {

/**
* https://developer.nulab.com/docs/backlog/api/2/get-project-group-list
* @deprecated
*/
public getProjectGroupList(projectIdOrKey: string|number) {
console.warn("Deprecated: Use getProjectTeams instead.");
Expand All @@ -1130,6 +1137,7 @@ export default class Backlog extends Request {

/**
* https://developer.nulab.com/docs/backlog/api/2/add-project-group
* @deprecated
*/
public postProjectGroup(projectIdOrKey: string|number, params: any) {
console.warn("Deprecated: Use postProjectTeam instead.");
Expand All @@ -1138,6 +1146,7 @@ export default class Backlog extends Request {

/**
* https://developer.nulab.com/docs/backlog/api/2/delete-project-group
* @deprecated
*/
public deleteProjectGroup(projectIdOrKey: string|number) {
console.warn("Deprecated: Use deleteProjectTeam instead.");
Expand All @@ -1146,6 +1155,7 @@ export default class Backlog extends Request {

/**
* https://developer.nulab.com/docs/backlog/api/2/get-group-icon
* @deprecated
*/
public getGroupIcon(groupId: string): Promise<any> {
console.warn("Deprecated: Use getTeamIcon instead.");
Expand Down

0 comments on commit c033613

Please sign in to comment.