Skip to content

Commit

Permalink
Rename deleteIssuesCount to deleteIssue #89
Browse files Browse the repository at this point in the history
  • Loading branch information
mmktomato committed Jul 1, 2024
1 parent 84fd2ff commit 4cda9dd
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 1 deletion.
7 changes: 7 additions & 0 deletions dist/backlog.js
Original file line number Diff line number Diff line change
Expand Up @@ -504,8 +504,15 @@ var Backlog = /** @class */ (function (_super) {
};
/**
* https://developer.nulab.com/docs/backlog/api/2/delete-issue/
* @deprecated Renamed to `deleteIssue`.
*/
Backlog.prototype.deleteIssuesCount = function (issueIdOrKey) {
return this.deleteIssue(issueIdOrKey);
};
/**
* https://developer.nulab.com/docs/backlog/api/2/delete-issue/
*/
Backlog.prototype.deleteIssue = function (issueIdOrKey) {
return this.delete("issues/".concat(issueIdOrKey));
};
/**
Expand Down
2 changes: 1 addition & 1 deletion dist/backlog.min.js

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions dist/types/backlog.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -328,8 +328,13 @@ export default class Backlog extends Request {
getIssue(issueIdOrKey: string | number): Promise<Entity.Issue.Issue>;
/**
* https://developer.nulab.com/docs/backlog/api/2/delete-issue/
* @deprecated Renamed to `deleteIssue`.
*/
deleteIssuesCount(issueIdOrKey: string | number): Promise<Entity.Issue.Issue>;
/**
* https://developer.nulab.com/docs/backlog/api/2/delete-issue/
*/
deleteIssue(issueIdOrKey: string | number): Promise<Entity.Issue.Issue>;
/**
* https://developer.nulab.com/docs/backlog/api/2/get-comment-list/
*/
Expand Down
8 changes: 8 additions & 0 deletions src/backlog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -657,8 +657,16 @@ export default class Backlog extends Request {

/**
* https://developer.nulab.com/docs/backlog/api/2/delete-issue/
* @deprecated Renamed to `deleteIssue`.
*/
public deleteIssuesCount(issueIdOrKey: string | number): Promise<Entity.Issue.Issue> {
return this.deleteIssue(issueIdOrKey);
}

/**
* https://developer.nulab.com/docs/backlog/api/2/delete-issue/
*/
public deleteIssue(issueIdOrKey: string | number): Promise<Entity.Issue.Issue> {
return this.delete(`issues/${issueIdOrKey}`);
}

Expand Down

0 comments on commit 4cda9dd

Please sign in to comment.