backlog-js 0.13.2 → 0.13.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.13.3](https://github.com/nulab/backlog-js/compare/0.13.2...0.13.3) (2024-07-18)
4
+
5
+ * Add type annotation for parameters [#93](https://github.com/nulab/backlog-js/pull/93) ([mmktomato](https://github.com/mmktomato))
6
+
3
7
  ## [0.13.2](https://github.com/nulab/backlog-js/compare/0.13.1...0.13.2) (2024-07-01)
4
8
 
5
9
  * Rename `deleteIssuesCount` to `deleteIssue` [#91](https://github.com/nulab/backlog-js/pull/91) ([mmktomato](https://github.com/mmktomato))
@@ -550,7 +550,7 @@ export default class Backlog extends Request {
550
550
  /**
551
551
  * https://developer.nulab.com/docs/backlog/api/2/add-watching
552
552
  */
553
- postWatchingListItem(params: any): Promise<Entity.WatchingList.WatchingListItem>;
553
+ postWatchingListItem(params: Option.WatchingList.PostWatchingListItemParams): Promise<Entity.WatchingList.WatchingListItem>;
554
554
  /**
555
555
  * https://developer.nulab.com/docs/backlog/api/2/update-watching
556
556
  */
@@ -572,7 +572,7 @@ export default class Backlog extends Request {
572
572
  * https://developer.nulab.com/docs/backlog/api/2/add-project-group
573
573
  * @deprecated
574
574
  */
575
- postProjectGroup(projectIdOrKey: string | number, params: any): Promise<Entity.Group.Group>;
575
+ postProjectGroup(projectIdOrKey: string | number, params: Option.Group.PostProjectGroupParams): Promise<Entity.Group.Group>;
576
576
  /**
577
577
  * https://developer.nulab.com/docs/backlog/api/2/delete-project-group
578
578
  * @deprecated
@@ -61,20 +61,41 @@ export declare namespace User {
61
61
  count?: number;
62
62
  }
63
63
  }
64
+ export declare namespace WatchingList {
65
+ interface PostWatchingListItemParams {
66
+ issueIdOrKey: string | number;
67
+ note: string;
68
+ }
69
+ }
64
70
  export declare namespace Group {
71
+ /**
72
+ * @deprecated
73
+ */
65
74
  interface GetGroupsParams {
66
75
  order?: Order;
67
76
  offset?: number;
68
77
  count?: number;
69
78
  }
79
+ /**
80
+ * @deprecated
81
+ */
70
82
  interface PostGroupsParams {
71
83
  name: string;
72
84
  members?: string[];
73
85
  }
86
+ /**
87
+ * @deprecated
88
+ */
74
89
  interface PatchGroupParams {
75
90
  name?: string;
76
91
  members?: string[];
77
92
  }
93
+ /**
94
+ * @deprecated
95
+ */
96
+ interface PostProjectGroupParams {
97
+ groupId: number;
98
+ }
78
99
  }
79
100
  export declare namespace Team {
80
101
  interface GetTeamsParams {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "backlog-js",
3
- "version": "0.13.2",
3
+ "version": "0.13.3",
4
4
  "description": "Backlog API v2 client for browser and node",
5
5
  "main": "dist/backlog.min.js",
6
6
  "types": "dist/types/index.d.ts",