File tree 4 files changed +52
-5
lines changed
4 files changed +52
-5
lines changed Original file line number Diff line number Diff line change @@ -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
Original file line number Diff line number Diff line change @@ -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 {
Original file line number Diff line number Diff line change @@ -1109,7 +1109,9 @@ export default class Backlog extends Request {
1109
1109
/**
1110
1110
* https://developer.nulab.com/docs/backlog/api/2/add-watching
1111
1111
*/
1112
- public postWatchingListItem ( params : any ) : Promise < Entity . WatchingList . WatchingListItem > {
1112
+ public postWatchingListItem (
1113
+ params : Option . WatchingList . PostWatchingListItemParams ,
1114
+ ) : Promise < Entity . WatchingList . WatchingListItem > {
1113
1115
return this . post ( `watchings` , params ) ;
1114
1116
}
1115
1117
@@ -1147,7 +1149,10 @@ export default class Backlog extends Request {
1147
1149
* https://developer.nulab.com/docs/backlog/api/2/add-project-group
1148
1150
* @deprecated
1149
1151
*/
1150
- public postProjectGroup ( projectIdOrKey : string | number , params : any ) : Promise < Entity . Group . Group > {
1152
+ public postProjectGroup (
1153
+ projectIdOrKey : string | number ,
1154
+ params : Option . Group . PostProjectGroupParams ,
1155
+ ) : Promise < Entity . Group . Group > {
1151
1156
console . warn ( "Deprecated: Use postProjectTeam instead." ) ;
1152
1157
return this . post ( `projects/${ projectIdOrKey } /groups` , params ) ;
1153
1158
}
Original file line number Diff line number Diff line change 79
79
80
80
}
81
81
82
- export namespace Group {
82
+ export namespace WatchingList {
83
+ export interface PostWatchingListItemParams {
84
+ issueIdOrKey : string | number ;
85
+ note : string ;
86
+ }
87
+ }
83
88
89
+ export namespace Group {
90
+ /**
91
+ * @deprecated
92
+ */
84
93
export interface GetGroupsParams {
85
94
order ?: Order ;
86
95
offset ?: number ;
87
96
count ?: number ;
88
97
}
89
98
99
+ /**
100
+ * @deprecated
101
+ */
90
102
export interface PostGroupsParams {
91
103
name : string ;
92
104
members ?: string [ ] ;
93
105
}
94
106
107
+ /**
108
+ * @deprecated
109
+ */
95
110
export interface PatchGroupParams {
96
111
name ?: string ;
97
112
members ?: string [ ] ;
98
113
}
99
114
115
+ /**
116
+ * @deprecated
117
+ */
118
+ export interface PostProjectGroupParams {
119
+ groupId : number ;
120
+ }
100
121
}
101
122
102
123
export namespace Team {
You can’t perform that action at this time.
0 commit comments