File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,6 +8,12 @@ class Projects extends BaseService {
88 return RequestHelper . get ( this , 'projects' , options ) ;
99 }
1010
11+ archive ( projectId ) {
12+ const pId = encodeURIComponent ( projectId ) ;
13+
14+ return RequestHelper . post ( this , `projects/${ pId } /archive` ) ;
15+ }
16+
1117 create ( options ) {
1218 const url = options . userId ? `projects/user/${ encodeURIComponent ( options . userId ) } ` : 'projects' ;
1319
@@ -93,6 +99,12 @@ class Projects extends BaseService {
9399 return RequestHelper . put ( this , `projects/${ pId } /transfer` , namespace ) ;
94100 }
95101
102+ unarchive ( projectId ) {
103+ const pId = encodeURIComponent ( projectId ) ;
104+
105+ return RequestHelper . post ( this , `projects/${ pId } /unarchive` ) ;
106+ }
107+
96108 unshare ( projectId , groupId ) {
97109 const [ pId , gId ] = [ projectId , groupId ] . map ( encodeURIComponent ) ;
98110
You can’t perform that action at this time.
0 commit comments