@@ -32,7 +32,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
3232 } ) ;
3333} ;
3434Object . defineProperty ( exports , "__esModule" , { value : true } ) ;
35- exports . updateTask = exports . updateSection = exports . moveSection = exports . migrateSection = exports . findComment = exports . buildClient = exports . addComment = void 0 ;
35+ exports . addComment = addComment ;
36+ exports . buildClient = buildClient ;
37+ exports . findComment = findComment ;
38+ exports . migrateSection = migrateSection ;
39+ exports . moveSection = moveSection ;
40+ exports . updateSection = updateSection ;
41+ exports . updateTask = updateTask ;
3642const core = __importStar ( require ( "@actions/core" ) ) ;
3743const asana = __importStar ( require ( "asana" ) ) ;
3844// types not working asana
@@ -57,7 +63,6 @@ function moveSection(client, taskId, targets) {
5763 }
5864 } ) ;
5965}
60- exports . moveSection = moveSection ;
6166function updateTask ( client , taskId , targets ) {
6267 return __awaiter ( this , void 0 , void 0 , function * ( ) {
6368 const task = yield client . tasks . findById ( taskId ) ;
@@ -75,7 +80,6 @@ function updateTask(client, taskId, targets) {
7580 }
7681 } ) ;
7782}
78- exports . updateTask = updateTask ;
7983function updateSection ( client , targets ) {
8084 return __awaiter ( this , void 0 , void 0 , function * ( ) {
8185 for ( const target of targets ) {
@@ -110,7 +114,6 @@ function updateSection(client, targets) {
110114 }
111115 } ) ;
112116}
113- exports . updateSection = updateSection ;
114117function migrateSection ( client , targets ) {
115118 return __awaiter ( this , void 0 , void 0 , function * ( ) {
116119 for ( const target of targets ) {
@@ -137,7 +140,6 @@ function migrateSection(client, targets) {
137140 }
138141 } ) ;
139142}
140- exports . migrateSection = migrateSection ;
141143function findComment ( client , taskId , commentId ) {
142144 return __awaiter ( this , void 0 , void 0 , function * ( ) {
143145 let stories ;
@@ -152,7 +154,6 @@ function findComment(client, taskId, commentId) {
152154 return stories . find ( ( story ) => story . text . indexOf ( commentId ) !== - 1 ) ;
153155 } ) ;
154156}
155- exports . findComment = findComment ;
156157function addComment ( client , taskId , commentId , text , isPinned ) {
157158 return __awaiter ( this , void 0 , void 0 , function * ( ) {
158159 if ( commentId ) {
@@ -171,7 +172,6 @@ function addComment(client, taskId, commentId, text, isPinned) {
171172 }
172173 } ) ;
173174}
174- exports . addComment = addComment ;
175175function buildClient ( asanaPAT ) {
176176 return __awaiter ( this , void 0 , void 0 , function * ( ) {
177177 return asana . Client . create ( {
@@ -183,4 +183,3 @@ function buildClient(asanaPAT) {
183183 . authorize ( ) ;
184184 } ) ;
185185}
186- exports . buildClient = buildClient ;
0 commit comments