@@ -32,13 +32,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
3232 } ) ;
3333} ;
3434Object . defineProperty ( exports , "__esModule" , { value : true } ) ;
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 ;
35+ exports . updateTask = exports . updateSection = exports . moveSection = exports . migrateSection = exports . findComment = exports . buildClient = exports . addComment = void 0 ;
4236const core = __importStar ( require ( "@actions/core" ) ) ;
4337const asana = __importStar ( require ( "asana" ) ) ;
4438// types not working asana
@@ -63,6 +57,7 @@ function moveSection(client, taskId, targets) {
6357 }
6458 } ) ;
6559}
60+ exports . moveSection = moveSection ;
6661function updateTask ( client , taskId , targets ) {
6762 return __awaiter ( this , void 0 , void 0 , function * ( ) {
6863 const task = yield client . tasks . findById ( taskId ) ;
@@ -80,6 +75,7 @@ function updateTask(client, taskId, targets) {
8075 }
8176 } ) ;
8277}
78+ exports . updateTask = updateTask ;
8379function updateSection ( client , targets ) {
8480 return __awaiter ( this , void 0 , void 0 , function * ( ) {
8581 for ( const target of targets ) {
@@ -114,6 +110,7 @@ function updateSection(client, targets) {
114110 }
115111 } ) ;
116112}
113+ exports . updateSection = updateSection ;
117114function migrateSection ( client , targets ) {
118115 return __awaiter ( this , void 0 , void 0 , function * ( ) {
119116 for ( const target of targets ) {
@@ -140,6 +137,7 @@ function migrateSection(client, targets) {
140137 }
141138 } ) ;
142139}
140+ exports . migrateSection = migrateSection ;
143141function findComment ( client , taskId , commentId ) {
144142 return __awaiter ( this , void 0 , void 0 , function * ( ) {
145143 let stories ;
@@ -154,6 +152,7 @@ function findComment(client, taskId, commentId) {
154152 return stories . find ( ( story ) => story . text . indexOf ( commentId ) !== - 1 ) ;
155153 } ) ;
156154}
155+ exports . findComment = findComment ;
157156function addComment ( client , taskId , commentId , text , isPinned ) {
158157 return __awaiter ( this , void 0 , void 0 , function * ( ) {
159158 if ( commentId ) {
@@ -172,6 +171,7 @@ function addComment(client, taskId, commentId, text, isPinned) {
172171 }
173172 } ) ;
174173}
174+ exports . addComment = addComment ;
175175function buildClient ( asanaPAT ) {
176176 return __awaiter ( this , void 0 , void 0 , function * ( ) {
177177 return asana . Client . create ( {
@@ -183,3 +183,4 @@ function buildClient(asanaPAT) {
183183 . authorize ( ) ;
184184 } ) ;
185185}
186+ exports . buildClient = buildClient ;
0 commit comments