asana 1.0.2 → 2.0.0

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.
Files changed (1041) hide show
  1. package/.babelrc +33 -0
  2. package/.github/workflows/publish.yaml +72 -0
  3. package/.swagger-codegen/VERSION +1 -0
  4. package/.swagger-codegen-ignore +21 -1
  5. package/README.md +885 -296
  6. package/codegen/swagger/README.md +74 -0
  7. package/codegen/swagger/pom.xml +129 -0
  8. package/codegen/swagger/src/main/java/com/asana/codegen/ExampleUtility.java +27 -0
  9. package/codegen/swagger/src/main/java/com/asana/codegen/JavascriptClientCodegenGenerator.java +79 -0
  10. package/codegen/swagger/src/main/java/com/asana/codegen/ReadMe.java +164 -0
  11. package/codegen/swagger/src/main/resources/META-INF/services/io.swagger.codegen.v3.CodegenConfig +1 -0
  12. package/codegen/templates/ApiClient.mustache +618 -0
  13. package/codegen/templates/README.mustache +439 -0
  14. package/codegen/templates/api_doc.mustache +51 -0
  15. package/codegen/templates/code_sample.mustache +47 -0
  16. package/codegen/templates/code_samples.mustache +11 -0
  17. package/dist/ApiClient.js +607 -0
  18. package/dist/api/AttachmentsApi.js +217 -0
  19. package/dist/api/AuditLogAPIApi.js +105 -0
  20. package/dist/api/BatchAPIApi.js +90 -0
  21. package/dist/api/CustomFieldSettingsApi.js +139 -0
  22. package/dist/api/CustomFieldsApi.js +376 -0
  23. package/dist/api/EventsApi.js +93 -0
  24. package/dist/api/GoalRelationshipsApi.js +271 -0
  25. package/dist/api/GoalsApi.js +486 -0
  26. package/dist/api/JobsApi.js +91 -0
  27. package/dist/api/MembershipsApi.js +161 -0
  28. package/dist/api/OrganizationExportsApi.js +130 -0
  29. package/dist/api/PortfolioMembershipsApi.js +181 -0
  30. package/dist/api/PortfoliosApi.js +560 -0
  31. package/dist/api/ProjectBriefsApi.js +219 -0
  32. package/dist/api/ProjectMembershipsApi.js +138 -0
  33. package/dist/api/ProjectStatusesApi.js +218 -0
  34. package/dist/api/ProjectTemplatesApi.js +256 -0
  35. package/dist/api/ProjectsApi.js +881 -0
  36. package/dist/api/RulesApi.js +92 -0
  37. package/dist/api/SectionsApi.js +334 -0
  38. package/dist/api/StatusUpdatesApi.js +216 -0
  39. package/dist/api/StoriesApi.js +264 -0
  40. package/dist/api/TagsApi.js +380 -0
  41. package/dist/api/TasksApi.js +1277 -0
  42. package/dist/api/TeamMembershipsApi.js +229 -0
  43. package/dist/api/TeamsApi.js +360 -0
  44. package/dist/api/TimePeriodsApi.js +139 -0
  45. package/dist/api/TimeTrackingEntriesApi.js +264 -0
  46. package/dist/api/TypeaheadApi.js +103 -0
  47. package/dist/api/UserTaskListsApi.js +137 -0
  48. package/dist/api/UsersApi.js +274 -0
  49. package/dist/api/WebhooksApi.js +258 -0
  50. package/dist/api/WorkspaceMembershipsApi.js +182 -0
  51. package/dist/api/WorkspacesApi.js +264 -0
  52. package/dist/index.js +3141 -0
  53. package/dist/model/AddCustomFieldSettingRequest.js +89 -0
  54. package/dist/model/AddFollowersRequest.js +68 -0
  55. package/dist/model/AddMembersRequest.js +68 -0
  56. package/dist/model/AllOfProjectResponseOwner.js +61 -0
  57. package/dist/model/AllOfProjectTemplateBaseOwner.js +61 -0
  58. package/dist/model/AllOfProjectTemplateResponseOwner.js +61 -0
  59. package/dist/model/AllOfStoryResponseNewDateValue.js +60 -0
  60. package/dist/model/AllOfStoryResponseOldDateValue.js +60 -0
  61. package/dist/model/AllOfUserTaskListBaseOwner.js +61 -0
  62. package/dist/model/AllOfUserTaskListBaseWorkspace.js +61 -0
  63. package/dist/model/AllOfUserTaskListCompactOwner.js +61 -0
  64. package/dist/model/AllOfUserTaskListCompactWorkspace.js +61 -0
  65. package/dist/model/AllOfUserTaskListRequestOwner.js +61 -0
  66. package/dist/model/AllOfUserTaskListRequestWorkspace.js +61 -0
  67. package/dist/model/AllOfUserTaskListResponseOwner.js +61 -0
  68. package/dist/model/AllOfUserTaskListResponseWorkspace.js +61 -0
  69. package/dist/model/AllOfWorkspaceMembershipResponseUserTaskListOwner.js +61 -0
  70. package/dist/model/AllOfWorkspaceMembershipResponseUserTaskListWorkspace.js +61 -0
  71. package/dist/model/AsanaNamedResource.js +81 -0
  72. package/dist/model/AsanaNamedResourceArray.js +75 -0
  73. package/dist/model/AsanaResource.js +74 -0
  74. package/dist/model/AttachmentBase.js +88 -0
  75. package/dist/model/AttachmentCompact.js +88 -0
  76. package/dist/model/AttachmentRequest.js +145 -0
  77. package/dist/model/AttachmentResponse.js +143 -0
  78. package/dist/model/AttachmentResponseArray.js +75 -0
  79. package/dist/model/AttachmentResponseData.js +68 -0
  80. package/dist/model/AttachmentResponseParent.js +88 -0
  81. package/dist/model/AuditLogEvent.js +116 -0
  82. package/dist/model/AuditLogEventActor.js +120 -0
  83. package/dist/model/AuditLogEventArray.js +75 -0
  84. package/dist/model/AuditLogEventContext.js +164 -0
  85. package/dist/model/AuditLogEventDetails.js +61 -0
  86. package/dist/model/AuditLogEventResource.js +95 -0
  87. package/dist/model/BatchBody.js +66 -0
  88. package/dist/model/BatchRequest.js +67 -0
  89. package/dist/model/BatchRequestAction.js +129 -0
  90. package/dist/model/BatchRequestActions.js +129 -0
  91. package/dist/model/BatchRequestOptions.js +81 -0
  92. package/dist/model/BatchResponse.js +81 -0
  93. package/dist/model/BatchResponseArray.js +75 -0
  94. package/dist/model/CreateMembershipRequest.js +80 -0
  95. package/dist/model/CreateTimeTrackingEntryRequest.js +73 -0
  96. package/dist/model/CustomFieldBase.js +1047 -0
  97. package/dist/model/CustomFieldBaseDateValue.js +74 -0
  98. package/dist/model/CustomFieldBaseEnumOptions.js +95 -0
  99. package/dist/model/CustomFieldBaseEnumValue.js +95 -0
  100. package/dist/model/CustomFieldCompact.js +233 -0
  101. package/dist/model/CustomFieldGidEnumOptionsBody.js +66 -0
  102. package/dist/model/CustomFieldRequest.js +1070 -0
  103. package/dist/model/CustomFieldResponse.js +1069 -0
  104. package/dist/model/CustomFieldResponseArray.js +75 -0
  105. package/dist/model/CustomFieldResponseCreatedBy.js +81 -0
  106. package/dist/model/CustomFieldResponseData.js +68 -0
  107. package/dist/model/CustomFieldResponsePeopleValue.js +81 -0
  108. package/dist/model/CustomFieldSettingBase.js +74 -0
  109. package/dist/model/CustomFieldSettingCompact.js +74 -0
  110. package/dist/model/CustomFieldSettingResponse.js +102 -0
  111. package/dist/model/CustomFieldSettingResponseArray.js +75 -0
  112. package/dist/model/CustomFieldSettingResponseCustomField.js +1069 -0
  113. package/dist/model/CustomFieldSettingResponseData.js +68 -0
  114. package/dist/model/CustomFieldSettingResponseParent.js +81 -0
  115. package/dist/model/CustomFieldSettingResponseProject.js +81 -0
  116. package/dist/model/CustomFieldsBody.js +66 -0
  117. package/dist/model/CustomFieldsCustomFieldGidBody.js +66 -0
  118. package/dist/model/DateVariableCompact.js +80 -0
  119. package/dist/model/DateVariableRequest.js +73 -0
  120. package/dist/model/EmptyResponse.js +61 -0
  121. package/dist/model/EmptyResponseData.js +68 -0
  122. package/dist/model/EnumOption.js +95 -0
  123. package/dist/model/EnumOptionBase.js +95 -0
  124. package/dist/model/EnumOptionData.js +68 -0
  125. package/dist/model/EnumOptionInsertRequest.js +82 -0
  126. package/dist/model/EnumOptionRequest.js +109 -0
  127. package/dist/model/EnumOptionsEnumOptionGidBody.js +66 -0
  128. package/dist/model/EnumOptionsInsertBody.js +66 -0
  129. package/dist/model/Error.js +80 -0
  130. package/dist/model/ErrorResponse.js +67 -0
  131. package/dist/model/ErrorResponseErrors.js +80 -0
  132. package/dist/model/EventResponse.js +109 -0
  133. package/dist/model/EventResponseArray.js +75 -0
  134. package/dist/model/EventResponseChange.js +95 -0
  135. package/dist/model/EventResponseParent.js +81 -0
  136. package/dist/model/EventResponseResource.js +81 -0
  137. package/dist/model/EventResponseUser.js +81 -0
  138. package/dist/model/GoalAddSubgoalRequest.js +82 -0
  139. package/dist/model/GoalAddSupportingRelationshipRequest.js +89 -0
  140. package/dist/model/GoalAddSupportingWorkRequest.js +68 -0
  141. package/dist/model/GoalBase.js +123 -0
  142. package/dist/model/GoalCompact.js +88 -0
  143. package/dist/model/GoalGidAddFollowersBody.js +66 -0
  144. package/dist/model/GoalGidAddSupportingRelationshipBody.js +66 -0
  145. package/dist/model/GoalGidRemoveFollowersBody.js +66 -0
  146. package/dist/model/GoalGidRemoveSupportingRelationshipBody.js +66 -0
  147. package/dist/model/GoalGidSetMetricBody.js +66 -0
  148. package/dist/model/GoalGidSetMetricCurrentValueBody.js +66 -0
  149. package/dist/model/GoalMembershipBase.js +102 -0
  150. package/dist/model/GoalMembershipBaseGoal.js +88 -0
  151. package/dist/model/GoalMembershipCompact.js +102 -0
  152. package/dist/model/GoalMembershipResponse.js +102 -0
  153. package/dist/model/GoalMetricBase.js +203 -0
  154. package/dist/model/GoalMetricCurrentValueRequest.js +81 -0
  155. package/dist/model/GoalMetricRequest.js +203 -0
  156. package/dist/model/GoalRelationshipBase.js +119 -0
  157. package/dist/model/GoalRelationshipBaseSupportedGoal.js +88 -0
  158. package/dist/model/GoalRelationshipBaseSupportingResource.js +81 -0
  159. package/dist/model/GoalRelationshipCompact.js +112 -0
  160. package/dist/model/GoalRelationshipRequest.js +119 -0
  161. package/dist/model/GoalRelationshipResponse.js +119 -0
  162. package/dist/model/GoalRelationshipResponseArray.js +75 -0
  163. package/dist/model/GoalRelationshipResponseData.js +68 -0
  164. package/dist/model/GoalRelationshipsGoalRelationshipGidBody.js +66 -0
  165. package/dist/model/GoalRemoveSubgoalRequest.js +68 -0
  166. package/dist/model/GoalRemoveSupportingRelationshipRequest.js +68 -0
  167. package/dist/model/GoalRequest.js +157 -0
  168. package/dist/model/GoalRequestBase.js +151 -0
  169. package/dist/model/GoalResponse.js +195 -0
  170. package/dist/model/GoalResponseArray.js +75 -0
  171. package/dist/model/GoalResponseCurrentStatusUpdate.js +110 -0
  172. package/dist/model/GoalResponseData.js +68 -0
  173. package/dist/model/GoalResponseLikes.js +74 -0
  174. package/dist/model/GoalResponseMetric.js +210 -0
  175. package/dist/model/GoalResponseTeam.js +81 -0
  176. package/dist/model/GoalResponseTimePeriod.js +144 -0
  177. package/dist/model/GoalResponseWorkspace.js +81 -0
  178. package/dist/model/GoalUpdateRequest.js +158 -0
  179. package/dist/model/GoalsBody.js +66 -0
  180. package/dist/model/GoalsGoalGidBody.js +66 -0
  181. package/dist/model/InlineResponse412.js +73 -0
  182. package/dist/model/InlineResponse412Errors.js +66 -0
  183. package/dist/model/JobBase.js +136 -0
  184. package/dist/model/JobBaseNewProject.js +81 -0
  185. package/dist/model/JobBaseNewProjectTemplate.js +81 -0
  186. package/dist/model/JobBaseNewTask.js +115 -0
  187. package/dist/model/JobCompact.js +136 -0
  188. package/dist/model/JobResponse.js +136 -0
  189. package/dist/model/JobResponseData.js +68 -0
  190. package/dist/model/Like.js +74 -0
  191. package/dist/model/MemberCompact.js +81 -0
  192. package/dist/model/MembershipRequest.js +66 -0
  193. package/dist/model/MembershipResponse.js +60 -0
  194. package/dist/model/MembershipResponseArray.js +75 -0
  195. package/dist/model/MembershipResponseData.js +68 -0
  196. package/dist/model/MembershipsBody.js +66 -0
  197. package/dist/model/ModifyDependenciesRequest.js +66 -0
  198. package/dist/model/ModifyDependentsRequest.js +67 -0
  199. package/dist/model/NextPage.js +81 -0
  200. package/dist/model/OrganizationExportBase.js +129 -0
  201. package/dist/model/OrganizationExportCompact.js +129 -0
  202. package/dist/model/OrganizationExportRequest.js +67 -0
  203. package/dist/model/OrganizationExportResponse.js +129 -0
  204. package/dist/model/OrganizationExportResponseData.js +68 -0
  205. package/dist/model/OrganizationExportsBody.js +66 -0
  206. package/dist/model/PortfolioAddItemRequest.js +82 -0
  207. package/dist/model/PortfolioBase.js +185 -0
  208. package/dist/model/PortfolioCompact.js +81 -0
  209. package/dist/model/PortfolioGidAddCustomFieldSettingBody.js +66 -0
  210. package/dist/model/PortfolioGidAddItemBody.js +66 -0
  211. package/dist/model/PortfolioGidAddMembersBody.js +66 -0
  212. package/dist/model/PortfolioGidRemoveCustomFieldSettingBody.js +66 -0
  213. package/dist/model/PortfolioGidRemoveItemBody.js +66 -0
  214. package/dist/model/PortfolioGidRemoveMembersBody.js +66 -0
  215. package/dist/model/PortfolioMembershipBase.js +88 -0
  216. package/dist/model/PortfolioMembershipBasePortfolio.js +81 -0
  217. package/dist/model/PortfolioMembershipCompact.js +88 -0
  218. package/dist/model/PortfolioMembershipResponse.js +88 -0
  219. package/dist/model/PortfolioMembershipResponseArray.js +75 -0
  220. package/dist/model/PortfolioMembershipResponseData.js +68 -0
  221. package/dist/model/PortfolioRemoveItemRequest.js +68 -0
  222. package/dist/model/PortfolioRequest.js +206 -0
  223. package/dist/model/PortfolioResponse.js +277 -0
  224. package/dist/model/PortfolioResponseArray.js +75 -0
  225. package/dist/model/PortfolioResponseCurrentStatusUpdate.js +110 -0
  226. package/dist/model/PortfolioResponseCustomFieldSettings.js +102 -0
  227. package/dist/model/PortfolioResponseCustomFields.js +233 -0
  228. package/dist/model/PortfolioResponseData.js +68 -0
  229. package/dist/model/PortfolioResponseWorkspace.js +81 -0
  230. package/dist/model/PortfoliosBody.js +66 -0
  231. package/dist/model/PortfoliosPortfolioGidBody.js +66 -0
  232. package/dist/model/Preview.js +116 -0
  233. package/dist/model/ProjectBase.js +329 -0
  234. package/dist/model/ProjectBaseCurrentStatus.js +160 -0
  235. package/dist/model/ProjectBaseCurrentStatusUpdate.js +110 -0
  236. package/dist/model/ProjectBaseWorkspace.js +81 -0
  237. package/dist/model/ProjectBriefBase.js +88 -0
  238. package/dist/model/ProjectBriefCompact.js +74 -0
  239. package/dist/model/ProjectBriefRequest.js +95 -0
  240. package/dist/model/ProjectBriefResponse.js +109 -0
  241. package/dist/model/ProjectBriefResponseData.js +68 -0
  242. package/dist/model/ProjectBriefResponseProject.js +81 -0
  243. package/dist/model/ProjectBriefsProjectBriefGidBody.js +66 -0
  244. package/dist/model/ProjectCompact.js +81 -0
  245. package/dist/model/ProjectDuplicateRequest.js +89 -0
  246. package/dist/model/ProjectDuplicateRequestScheduleDates.js +83 -0
  247. package/dist/model/ProjectGidAddCustomFieldSettingBody.js +66 -0
  248. package/dist/model/ProjectGidAddFollowersBody.js +66 -0
  249. package/dist/model/ProjectGidAddMembersBody.js +66 -0
  250. package/dist/model/ProjectGidDuplicateBody.js +66 -0
  251. package/dist/model/ProjectGidProjectBriefsBody.js +66 -0
  252. package/dist/model/ProjectGidProjectStatusesBody.js +66 -0
  253. package/dist/model/ProjectGidRemoveCustomFieldSettingBody.js +66 -0
  254. package/dist/model/ProjectGidRemoveFollowersBody.js +66 -0
  255. package/dist/model/ProjectGidRemoveMembersBody.js +66 -0
  256. package/dist/model/ProjectGidSaveAsTemplateBody.js +66 -0
  257. package/dist/model/ProjectGidSectionsBody.js +66 -0
  258. package/dist/model/ProjectMembershipBase.js +81 -0
  259. package/dist/model/ProjectMembershipCompact.js +81 -0
  260. package/dist/model/ProjectMembershipResponse.js +153 -0
  261. package/dist/model/ProjectMembershipResponseArray.js +75 -0
  262. package/dist/model/ProjectMembershipResponseData.js +68 -0
  263. package/dist/model/ProjectMembershipResponseMember.js +81 -0
  264. package/dist/model/ProjectRequest.js +359 -0
  265. package/dist/model/ProjectResponse.js +574 -0
  266. package/dist/model/ProjectResponseArray.js +75 -0
  267. package/dist/model/ProjectResponseCompletedBy.js +81 -0
  268. package/dist/model/ProjectResponseCreatedFromTemplate.js +81 -0
  269. package/dist/model/ProjectResponseData.js +68 -0
  270. package/dist/model/ProjectResponseProjectBrief.js +74 -0
  271. package/dist/model/ProjectResponseTeam.js +81 -0
  272. package/dist/model/ProjectSaveAsTemplateRequest.js +91 -0
  273. package/dist/model/ProjectSectionInsertRequest.js +82 -0
  274. package/dist/model/ProjectStatusBase.js +133 -0
  275. package/dist/model/ProjectStatusCompact.js +81 -0
  276. package/dist/model/ProjectStatusRequest.js +133 -0
  277. package/dist/model/ProjectStatusResponse.js +160 -0
  278. package/dist/model/ProjectStatusResponseArray.js +75 -0
  279. package/dist/model/ProjectStatusResponseData.js +68 -0
  280. package/dist/model/ProjectTemplateBase.js +241 -0
  281. package/dist/model/ProjectTemplateBaseRequestedDates.js +80 -0
  282. package/dist/model/ProjectTemplateBaseRequestedRoles.js +81 -0
  283. package/dist/model/ProjectTemplateBaseTeam.js +81 -0
  284. package/dist/model/ProjectTemplateCompact.js +81 -0
  285. package/dist/model/ProjectTemplateGidInstantiateProjectBody.js +66 -0
  286. package/dist/model/ProjectTemplateInstantiateProjectRequest.js +105 -0
  287. package/dist/model/ProjectTemplateInstantiateProjectRequestRequestedDates.js +73 -0
  288. package/dist/model/ProjectTemplateInstantiateProjectRequestRequestedRoles.js +73 -0
  289. package/dist/model/ProjectTemplateResponse.js +241 -0
  290. package/dist/model/ProjectTemplateResponseArray.js +75 -0
  291. package/dist/model/ProjectTemplateResponseData.js +68 -0
  292. package/dist/model/ProjectsBody.js +66 -0
  293. package/dist/model/ProjectsProjectGidBody.js +66 -0
  294. package/dist/model/RemoveCustomFieldSettingRequest.js +68 -0
  295. package/dist/model/RemoveFollowersRequest.js +68 -0
  296. package/dist/model/RemoveMembersRequest.js +68 -0
  297. package/dist/model/RequestedRoleRequest.js +73 -0
  298. package/dist/model/RuleTriggerGidRunBody.js +66 -0
  299. package/dist/model/RuleTriggerRequest.js +79 -0
  300. package/dist/model/RuleTriggerResponse.js +66 -0
  301. package/dist/model/RuleTriggerResponseData.js +68 -0
  302. package/dist/model/SectionBase.js +81 -0
  303. package/dist/model/SectionCompact.js +81 -0
  304. package/dist/model/SectionGidAddTaskBody.js +66 -0
  305. package/dist/model/SectionRequest.js +82 -0
  306. package/dist/model/SectionResponse.js +102 -0
  307. package/dist/model/SectionResponseArray.js +75 -0
  308. package/dist/model/SectionResponseData.js +68 -0
  309. package/dist/model/SectionTaskInsertRequest.js +82 -0
  310. package/dist/model/SectionsInsertBody.js +66 -0
  311. package/dist/model/SectionsSectionGidBody.js +66 -0
  312. package/dist/model/StatusUpdateBase.js +187 -0
  313. package/dist/model/StatusUpdateCompact.js +110 -0
  314. package/dist/model/StatusUpdateRequest.js +196 -0
  315. package/dist/model/StatusUpdateResponse.js +264 -0
  316. package/dist/model/StatusUpdateResponseArray.js +75 -0
  317. package/dist/model/StatusUpdateResponseData.js +68 -0
  318. package/dist/model/StatusUpdateResponseParent.js +81 -0
  319. package/dist/model/StatusUpdatesBody.js +66 -0
  320. package/dist/model/StoriesStoryGidBody.js +66 -0
  321. package/dist/model/StoryBase.js +183 -0
  322. package/dist/model/StoryCompact.js +102 -0
  323. package/dist/model/StoryRequest.js +183 -0
  324. package/dist/model/StoryResponse.js +540 -0
  325. package/dist/model/StoryResponseArray.js +75 -0
  326. package/dist/model/StoryResponseAssignee.js +81 -0
  327. package/dist/model/StoryResponseCustomField.js +233 -0
  328. package/dist/model/StoryResponseData.js +68 -0
  329. package/dist/model/StoryResponseDates.js +81 -0
  330. package/dist/model/StoryResponseOldDates.js +81 -0
  331. package/dist/model/StoryResponseOldEnumValue.js +95 -0
  332. package/dist/model/StoryResponseOldSection.js +81 -0
  333. package/dist/model/StoryResponsePreviews.js +116 -0
  334. package/dist/model/StoryResponseProject.js +81 -0
  335. package/dist/model/StoryResponseStory.js +102 -0
  336. package/dist/model/StoryResponseTag.js +81 -0
  337. package/dist/model/StoryResponseTarget.js +115 -0
  338. package/dist/model/StoryResponseTask.js +115 -0
  339. package/dist/model/TagBase.js +197 -0
  340. package/dist/model/TagCompact.js +81 -0
  341. package/dist/model/TagRequest.js +211 -0
  342. package/dist/model/TagResponse.js +226 -0
  343. package/dist/model/TagResponseArray.js +75 -0
  344. package/dist/model/TagResponseData.js +68 -0
  345. package/dist/model/TagsBody.js +66 -0
  346. package/dist/model/TaskAddFollowersRequest.js +68 -0
  347. package/dist/model/TaskAddProjectRequest.js +89 -0
  348. package/dist/model/TaskAddTagRequest.js +68 -0
  349. package/dist/model/TaskBase.js +359 -0
  350. package/dist/model/TaskBaseCompletedBy.js +81 -0
  351. package/dist/model/TaskBaseDependencies.js +74 -0
  352. package/dist/model/TaskBaseExternal.js +72 -0
  353. package/dist/model/TaskBaseMemberships.js +73 -0
  354. package/dist/model/TaskBaseSection.js +81 -0
  355. package/dist/model/TaskCompact.js +115 -0
  356. package/dist/model/TaskCountResponse.js +102 -0
  357. package/dist/model/TaskCountResponseData.js +68 -0
  358. package/dist/model/TaskDuplicateRequest.js +73 -0
  359. package/dist/model/TaskGidAddDependenciesBody.js +66 -0
  360. package/dist/model/TaskGidAddDependentsBody.js +66 -0
  361. package/dist/model/TaskGidAddFollowersBody.js +66 -0
  362. package/dist/model/TaskGidAddProjectBody.js +66 -0
  363. package/dist/model/TaskGidAddTagBody.js +66 -0
  364. package/dist/model/TaskGidDuplicateBody.js +66 -0
  365. package/dist/model/TaskGidRemoveDependenciesBody.js +66 -0
  366. package/dist/model/TaskGidRemoveDependentsBody.js +66 -0
  367. package/dist/model/TaskGidRemoveFollowersBody.js +66 -0
  368. package/dist/model/TaskGidRemoveProjectBody.js +66 -0
  369. package/dist/model/TaskGidRemoveTagBody.js +66 -0
  370. package/dist/model/TaskGidSetParentBody.js +66 -0
  371. package/dist/model/TaskGidStoriesBody.js +66 -0
  372. package/dist/model/TaskGidSubtasksBody.js +66 -0
  373. package/dist/model/TaskGidTimeTrackingEntriesBody.js +66 -0
  374. package/dist/model/TaskRemoveFollowersRequest.js +68 -0
  375. package/dist/model/TaskRemoveProjectRequest.js +68 -0
  376. package/dist/model/TaskRemoveTagRequest.js +68 -0
  377. package/dist/model/TaskRequest.js +417 -0
  378. package/dist/model/TaskResponse.js +426 -0
  379. package/dist/model/TaskResponseArray.js +75 -0
  380. package/dist/model/TaskResponseAssigneeSection.js +81 -0
  381. package/dist/model/TaskResponseCustomFields.js +1069 -0
  382. package/dist/model/TaskResponseData.js +68 -0
  383. package/dist/model/TaskResponseParent.js +115 -0
  384. package/dist/model/TaskResponseTags.js +81 -0
  385. package/dist/model/TaskResponseWorkspace.js +81 -0
  386. package/dist/model/TaskSetParentRequest.js +82 -0
  387. package/dist/model/TasksBody.js +66 -0
  388. package/dist/model/TasksTaskGidBody.js +66 -0
  389. package/dist/model/TeamAddUserRequest.js +67 -0
  390. package/dist/model/TeamBase.js +81 -0
  391. package/dist/model/TeamCompact.js +81 -0
  392. package/dist/model/TeamGidAddUserBody.js +66 -0
  393. package/dist/model/TeamGidProjectsBody.js +66 -0
  394. package/dist/model/TeamGidRemoveUserBody.js +66 -0
  395. package/dist/model/TeamMembershipBase.js +109 -0
  396. package/dist/model/TeamMembershipCompact.js +109 -0
  397. package/dist/model/TeamMembershipResponse.js +109 -0
  398. package/dist/model/TeamMembershipResponseArray.js +75 -0
  399. package/dist/model/TeamMembershipResponseData.js +68 -0
  400. package/dist/model/TeamRemoveUserRequest.js +67 -0
  401. package/dist/model/TeamRequest.js +275 -0
  402. package/dist/model/TeamResponse.js +282 -0
  403. package/dist/model/TeamResponseArray.js +75 -0
  404. package/dist/model/TeamResponseData.js +68 -0
  405. package/dist/model/TeamResponseOrganization.js +81 -0
  406. package/dist/model/TeamsBody.js +66 -0
  407. package/dist/model/TeamsTeamGidBody.js +66 -0
  408. package/dist/model/TemplateRole.js +81 -0
  409. package/dist/model/TimePeriodBase.js +151 -0
  410. package/dist/model/TimePeriodCompact.js +144 -0
  411. package/dist/model/TimePeriodResponse.js +151 -0
  412. package/dist/model/TimePeriodResponseArray.js +75 -0
  413. package/dist/model/TimePeriodResponseData.js +68 -0
  414. package/dist/model/TimeTrackingEntriesTimeTrackingEntryGidBody.js +66 -0
  415. package/dist/model/TimeTrackingEntryBase.js +109 -0
  416. package/dist/model/TimeTrackingEntryBaseData.js +68 -0
  417. package/dist/model/TimeTrackingEntryCompact.js +95 -0
  418. package/dist/model/TimeTrackingEntryCompactArray.js +75 -0
  419. package/dist/model/UpdateTimeTrackingEntryRequest.js +73 -0
  420. package/dist/model/UserBase.js +81 -0
  421. package/dist/model/UserBaseResponse.js +95 -0
  422. package/dist/model/UserBaseResponseData.js +68 -0
  423. package/dist/model/UserBaseResponsePhoto.js +96 -0
  424. package/dist/model/UserCompact.js +81 -0
  425. package/dist/model/UserRequest.js +81 -0
  426. package/dist/model/UserResponse.js +103 -0
  427. package/dist/model/UserResponseArray.js +75 -0
  428. package/dist/model/UserResponseData.js +68 -0
  429. package/dist/model/UserTaskListBase.js +95 -0
  430. package/dist/model/UserTaskListCompact.js +95 -0
  431. package/dist/model/UserTaskListRequest.js +95 -0
  432. package/dist/model/UserTaskListResponse.js +95 -0
  433. package/dist/model/UserTaskListResponseData.js +68 -0
  434. package/dist/model/WebhookCompact.js +95 -0
  435. package/dist/model/WebhookCompactResource.js +81 -0
  436. package/dist/model/WebhookFilter.js +88 -0
  437. package/dist/model/WebhookRequest.js +85 -0
  438. package/dist/model/WebhookRequestFilters.js +88 -0
  439. package/dist/model/WebhookResponse.js +131 -0
  440. package/dist/model/WebhookResponseArray.js +75 -0
  441. package/dist/model/WebhookResponseData.js +68 -0
  442. package/dist/model/WebhookUpdateRequest.js +67 -0
  443. package/dist/model/WebhooksBody.js +66 -0
  444. package/dist/model/WebhooksWebhookGidBody.js +66 -0
  445. package/dist/model/WorkspaceAddUserRequest.js +67 -0
  446. package/dist/model/WorkspaceBase.js +81 -0
  447. package/dist/model/WorkspaceCompact.js +81 -0
  448. package/dist/model/WorkspaceGidAddUserBody.js +66 -0
  449. package/dist/model/WorkspaceGidProjectsBody.js +66 -0
  450. package/dist/model/WorkspaceGidRemoveUserBody.js +66 -0
  451. package/dist/model/WorkspaceGidTagsBody.js +66 -0
  452. package/dist/model/WorkspaceMembershipBase.js +88 -0
  453. package/dist/model/WorkspaceMembershipCompact.js +88 -0
  454. package/dist/model/WorkspaceMembershipRequest.js +88 -0
  455. package/dist/model/WorkspaceMembershipResponse.js +130 -0
  456. package/dist/model/WorkspaceMembershipResponseArray.js +75 -0
  457. package/dist/model/WorkspaceMembershipResponseData.js +68 -0
  458. package/dist/model/WorkspaceMembershipResponseUserTaskList.js +95 -0
  459. package/dist/model/WorkspaceMembershipResponseVacationDates.js +74 -0
  460. package/dist/model/WorkspaceRemoveUserRequest.js +67 -0
  461. package/dist/model/WorkspaceRequest.js +81 -0
  462. package/dist/model/WorkspaceResponse.js +95 -0
  463. package/dist/model/WorkspaceResponseArray.js +75 -0
  464. package/dist/model/WorkspaceResponseData.js +68 -0
  465. package/dist/model/WorkspacesWorkspaceGidBody.js +66 -0
  466. package/mocha.opts +1 -0
  467. package/package.json +33 -44
  468. package/src/ApiClient.js +600 -0
  469. package/src/api/AttachmentsApi.js +238 -0
  470. package/src/api/AuditLogAPIApi.js +95 -0
  471. package/src/api/BatchAPIApi.js +89 -0
  472. package/src/api/CustomFieldSettingsApi.js +141 -0
  473. package/src/api/CustomFieldsApi.js +439 -0
  474. package/src/api/EventsApi.js +90 -0
  475. package/src/api/GoalRelationshipsApi.js +305 -0
  476. package/src/api/GoalsApi.js +563 -0
  477. package/src/api/JobsApi.js +88 -0
  478. package/src/api/MembershipsApi.js +181 -0
  479. package/src/api/OrganizationExportsApi.js +138 -0
  480. package/src/api/PortfolioMembershipsApi.js +190 -0
  481. package/src/api/PortfoliosApi.js +669 -0
  482. package/src/api/ProjectBriefsApi.js +246 -0
  483. package/src/api/ProjectMembershipsApi.js +141 -0
  484. package/src/api/ProjectStatusesApi.js +243 -0
  485. package/src/api/ProjectTemplatesApi.js +288 -0
  486. package/src/api/ProjectsApi.js +1040 -0
  487. package/src/api/RulesApi.js +92 -0
  488. package/src/api/SectionsApi.js +390 -0
  489. package/src/api/StatusUpdatesApi.js +241 -0
  490. package/src/api/StoriesApi.js +298 -0
  491. package/src/api/TagsApi.js +440 -0
  492. package/src/api/TasksApi.js +1454 -0
  493. package/src/api/TeamMembershipsApi.js +245 -0
  494. package/src/api/TeamsApi.js +411 -0
  495. package/src/api/TimePeriodsApi.js +142 -0
  496. package/src/api/TimeTrackingEntriesApi.js +298 -0
  497. package/src/api/TypeaheadApi.js +96 -0
  498. package/src/api/UserTaskListsApi.js +142 -0
  499. package/src/api/UsersApi.js +299 -0
  500. package/src/api/WebhooksApi.js +294 -0
  501. package/src/api/WorkspaceMembershipsApi.js +192 -0
  502. package/src/api/WorkspacesApi.js +300 -0
  503. package/src/index.js +3183 -0
  504. package/src/model/AddCustomFieldSettingRequest.js +79 -0
  505. package/src/model/AddFollowersRequest.js +55 -0
  506. package/src/model/AddMembersRequest.js +55 -0
  507. package/src/model/AllOfProjectResponseOwner.js +45 -0
  508. package/src/model/AllOfProjectTemplateBaseOwner.js +45 -0
  509. package/src/model/AllOfProjectTemplateResponseOwner.js +45 -0
  510. package/src/model/AllOfStoryResponseNewDateValue.js +44 -0
  511. package/src/model/AllOfStoryResponseOldDateValue.js +44 -0
  512. package/src/model/AllOfUserTaskListBaseOwner.js +45 -0
  513. package/src/model/AllOfUserTaskListBaseWorkspace.js +45 -0
  514. package/src/model/AllOfUserTaskListCompactOwner.js +45 -0
  515. package/src/model/AllOfUserTaskListCompactWorkspace.js +45 -0
  516. package/src/model/AllOfUserTaskListRequestOwner.js +45 -0
  517. package/src/model/AllOfUserTaskListRequestWorkspace.js +45 -0
  518. package/src/model/AllOfUserTaskListResponseOwner.js +45 -0
  519. package/src/model/AllOfUserTaskListResponseWorkspace.js +45 -0
  520. package/src/model/AllOfWorkspaceMembershipResponseUserTaskListOwner.js +45 -0
  521. package/src/model/AllOfWorkspaceMembershipResponseUserTaskListWorkspace.js +45 -0
  522. package/src/model/AsanaNamedResource.js +70 -0
  523. package/src/model/AsanaNamedResourceArray.js +63 -0
  524. package/src/model/AsanaResource.js +62 -0
  525. package/src/model/AttachmentBase.js +78 -0
  526. package/src/model/AttachmentCompact.js +78 -0
  527. package/src/model/AttachmentRequest.js +143 -0
  528. package/src/model/AttachmentResponse.js +141 -0
  529. package/src/model/AttachmentResponseArray.js +63 -0
  530. package/src/model/AttachmentResponseData.js +55 -0
  531. package/src/model/AttachmentResponseParent.js +78 -0
  532. package/src/model/AuditLogEvent.js +110 -0
  533. package/src/model/AuditLogEventActor.js +114 -0
  534. package/src/model/AuditLogEventArray.js +63 -0
  535. package/src/model/AuditLogEventContext.js +164 -0
  536. package/src/model/AuditLogEventDetails.js +45 -0
  537. package/src/model/AuditLogEventResource.js +86 -0
  538. package/src/model/BatchBody.js +53 -0
  539. package/src/model/BatchRequest.js +54 -0
  540. package/src/model/BatchRequestAction.js +124 -0
  541. package/src/model/BatchRequestActions.js +124 -0
  542. package/src/model/BatchRequestOptions.js +70 -0
  543. package/src/model/BatchResponse.js +70 -0
  544. package/src/model/BatchResponseArray.js +63 -0
  545. package/src/model/CreateMembershipRequest.js +69 -0
  546. package/src/model/CreateTimeTrackingEntryRequest.js +61 -0
  547. package/src/model/CustomFieldBase.js +1209 -0
  548. package/src/model/CustomFieldBaseDateValue.js +62 -0
  549. package/src/model/CustomFieldBaseEnumOptions.js +86 -0
  550. package/src/model/CustomFieldBaseEnumValue.js +86 -0
  551. package/src/model/CustomFieldCompact.js +243 -0
  552. package/src/model/CustomFieldGidEnumOptionsBody.js +53 -0
  553. package/src/model/CustomFieldRequest.js +1235 -0
  554. package/src/model/CustomFieldResponse.js +1234 -0
  555. package/src/model/CustomFieldResponseArray.js +63 -0
  556. package/src/model/CustomFieldResponseCreatedBy.js +70 -0
  557. package/src/model/CustomFieldResponseData.js +55 -0
  558. package/src/model/CustomFieldResponsePeopleValue.js +70 -0
  559. package/src/model/CustomFieldSettingBase.js +62 -0
  560. package/src/model/CustomFieldSettingCompact.js +62 -0
  561. package/src/model/CustomFieldSettingResponse.js +94 -0
  562. package/src/model/CustomFieldSettingResponseArray.js +63 -0
  563. package/src/model/CustomFieldSettingResponseCustomField.js +1234 -0
  564. package/src/model/CustomFieldSettingResponseData.js +55 -0
  565. package/src/model/CustomFieldSettingResponseParent.js +70 -0
  566. package/src/model/CustomFieldSettingResponseProject.js +70 -0
  567. package/src/model/CustomFieldsBody.js +53 -0
  568. package/src/model/CustomFieldsCustomFieldGidBody.js +53 -0
  569. package/src/model/DateVariableCompact.js +69 -0
  570. package/src/model/DateVariableRequest.js +61 -0
  571. package/src/model/EmptyResponse.js +45 -0
  572. package/src/model/EmptyResponseData.js +55 -0
  573. package/src/model/EnumOption.js +86 -0
  574. package/src/model/EnumOptionBase.js +86 -0
  575. package/src/model/EnumOptionData.js +55 -0
  576. package/src/model/EnumOptionInsertRequest.js +71 -0
  577. package/src/model/EnumOptionRequest.js +102 -0
  578. package/src/model/EnumOptionsEnumOptionGidBody.js +53 -0
  579. package/src/model/EnumOptionsInsertBody.js +53 -0
  580. package/src/model/Error.js +69 -0
  581. package/src/model/ErrorResponse.js +54 -0
  582. package/src/model/ErrorResponseErrors.js +69 -0
  583. package/src/model/EventResponse.js +102 -0
  584. package/src/model/EventResponseArray.js +63 -0
  585. package/src/model/EventResponseChange.js +86 -0
  586. package/src/model/EventResponseParent.js +70 -0
  587. package/src/model/EventResponseResource.js +70 -0
  588. package/src/model/EventResponseUser.js +70 -0
  589. package/src/model/GoalAddSubgoalRequest.js +71 -0
  590. package/src/model/GoalAddSupportingRelationshipRequest.js +79 -0
  591. package/src/model/GoalAddSupportingWorkRequest.js +55 -0
  592. package/src/model/GoalBase.js +118 -0
  593. package/src/model/GoalCompact.js +78 -0
  594. package/src/model/GoalGidAddFollowersBody.js +53 -0
  595. package/src/model/GoalGidAddSupportingRelationshipBody.js +53 -0
  596. package/src/model/GoalGidRemoveFollowersBody.js +53 -0
  597. package/src/model/GoalGidRemoveSupportingRelationshipBody.js +53 -0
  598. package/src/model/GoalGidSetMetricBody.js +53 -0
  599. package/src/model/GoalGidSetMetricCurrentValueBody.js +53 -0
  600. package/src/model/GoalMembershipBase.js +94 -0
  601. package/src/model/GoalMembershipBaseGoal.js +78 -0
  602. package/src/model/GoalMembershipCompact.js +94 -0
  603. package/src/model/GoalMembershipResponse.js +94 -0
  604. package/src/model/GoalMetricBase.js +206 -0
  605. package/src/model/GoalMetricCurrentValueRequest.js +70 -0
  606. package/src/model/GoalMetricRequest.js +206 -0
  607. package/src/model/GoalRelationshipBase.js +112 -0
  608. package/src/model/GoalRelationshipBaseSupportedGoal.js +78 -0
  609. package/src/model/GoalRelationshipBaseSupportingResource.js +70 -0
  610. package/src/model/GoalRelationshipCompact.js +104 -0
  611. package/src/model/GoalRelationshipRequest.js +112 -0
  612. package/src/model/GoalRelationshipResponse.js +112 -0
  613. package/src/model/GoalRelationshipResponseArray.js +63 -0
  614. package/src/model/GoalRelationshipResponseData.js +55 -0
  615. package/src/model/GoalRelationshipsGoalRelationshipGidBody.js +53 -0
  616. package/src/model/GoalRemoveSubgoalRequest.js +55 -0
  617. package/src/model/GoalRemoveSupportingRelationshipRequest.js +55 -0
  618. package/src/model/GoalRequest.js +157 -0
  619. package/src/model/GoalRequestBase.js +150 -0
  620. package/src/model/GoalResponse.js +200 -0
  621. package/src/model/GoalResponseArray.js +63 -0
  622. package/src/model/GoalResponseCurrentStatusUpdate.js +102 -0
  623. package/src/model/GoalResponseData.js +55 -0
  624. package/src/model/GoalResponseLikes.js +62 -0
  625. package/src/model/GoalResponseMetric.js +214 -0
  626. package/src/model/GoalResponseTeam.js +70 -0
  627. package/src/model/GoalResponseTimePeriod.js +142 -0
  628. package/src/model/GoalResponseWorkspace.js +70 -0
  629. package/src/model/GoalUpdateRequest.js +158 -0
  630. package/src/model/GoalsBody.js +53 -0
  631. package/src/model/GoalsGoalGidBody.js +53 -0
  632. package/src/model/InlineResponse412.js +61 -0
  633. package/src/model/InlineResponse412Errors.js +53 -0
  634. package/src/model/JobBase.js +132 -0
  635. package/src/model/JobBaseNewProject.js +70 -0
  636. package/src/model/JobBaseNewProjectTemplate.js +70 -0
  637. package/src/model/JobBaseNewTask.js +108 -0
  638. package/src/model/JobCompact.js +132 -0
  639. package/src/model/JobResponse.js +132 -0
  640. package/src/model/JobResponseData.js +55 -0
  641. package/src/model/Like.js +62 -0
  642. package/src/model/MemberCompact.js +70 -0
  643. package/src/model/MembershipRequest.js +53 -0
  644. package/src/model/MembershipResponse.js +44 -0
  645. package/src/model/MembershipResponseArray.js +63 -0
  646. package/src/model/MembershipResponseData.js +55 -0
  647. package/src/model/MembershipsBody.js +53 -0
  648. package/src/model/ModifyDependenciesRequest.js +53 -0
  649. package/src/model/ModifyDependentsRequest.js +54 -0
  650. package/src/model/NextPage.js +70 -0
  651. package/src/model/OrganizationExportBase.js +124 -0
  652. package/src/model/OrganizationExportCompact.js +124 -0
  653. package/src/model/OrganizationExportRequest.js +54 -0
  654. package/src/model/OrganizationExportResponse.js +124 -0
  655. package/src/model/OrganizationExportResponseData.js +55 -0
  656. package/src/model/OrganizationExportsBody.js +53 -0
  657. package/src/model/PortfolioAddItemRequest.js +71 -0
  658. package/src/model/PortfolioBase.js +192 -0
  659. package/src/model/PortfolioCompact.js +70 -0
  660. package/src/model/PortfolioGidAddCustomFieldSettingBody.js +53 -0
  661. package/src/model/PortfolioGidAddItemBody.js +53 -0
  662. package/src/model/PortfolioGidAddMembersBody.js +53 -0
  663. package/src/model/PortfolioGidRemoveCustomFieldSettingBody.js +53 -0
  664. package/src/model/PortfolioGidRemoveItemBody.js +53 -0
  665. package/src/model/PortfolioGidRemoveMembersBody.js +53 -0
  666. package/src/model/PortfolioMembershipBase.js +78 -0
  667. package/src/model/PortfolioMembershipBasePortfolio.js +70 -0
  668. package/src/model/PortfolioMembershipCompact.js +78 -0
  669. package/src/model/PortfolioMembershipResponse.js +78 -0
  670. package/src/model/PortfolioMembershipResponseArray.js +63 -0
  671. package/src/model/PortfolioMembershipResponseData.js +55 -0
  672. package/src/model/PortfolioRemoveItemRequest.js +55 -0
  673. package/src/model/PortfolioRequest.js +216 -0
  674. package/src/model/PortfolioResponse.js +297 -0
  675. package/src/model/PortfolioResponseArray.js +63 -0
  676. package/src/model/PortfolioResponseCurrentStatusUpdate.js +102 -0
  677. package/src/model/PortfolioResponseCustomFieldSettings.js +94 -0
  678. package/src/model/PortfolioResponseCustomFields.js +243 -0
  679. package/src/model/PortfolioResponseData.js +55 -0
  680. package/src/model/PortfolioResponseWorkspace.js +70 -0
  681. package/src/model/PortfoliosBody.js +53 -0
  682. package/src/model/PortfoliosPortfolioGidBody.js +53 -0
  683. package/src/model/Preview.js +110 -0
  684. package/src/model/ProjectBase.js +356 -0
  685. package/src/model/ProjectBaseCurrentStatus.js +159 -0
  686. package/src/model/ProjectBaseCurrentStatusUpdate.js +102 -0
  687. package/src/model/ProjectBaseWorkspace.js +70 -0
  688. package/src/model/ProjectBriefBase.js +78 -0
  689. package/src/model/ProjectBriefCompact.js +62 -0
  690. package/src/model/ProjectBriefRequest.js +86 -0
  691. package/src/model/ProjectBriefResponse.js +102 -0
  692. package/src/model/ProjectBriefResponseData.js +55 -0
  693. package/src/model/ProjectBriefResponseProject.js +70 -0
  694. package/src/model/ProjectBriefsProjectBriefGidBody.js +53 -0
  695. package/src/model/ProjectCompact.js +70 -0
  696. package/src/model/ProjectDuplicateRequest.js +79 -0
  697. package/src/model/ProjectDuplicateRequestScheduleDates.js +72 -0
  698. package/src/model/ProjectGidAddCustomFieldSettingBody.js +53 -0
  699. package/src/model/ProjectGidAddFollowersBody.js +53 -0
  700. package/src/model/ProjectGidAddMembersBody.js +53 -0
  701. package/src/model/ProjectGidDuplicateBody.js +53 -0
  702. package/src/model/ProjectGidProjectBriefsBody.js +53 -0
  703. package/src/model/ProjectGidProjectStatusesBody.js +53 -0
  704. package/src/model/ProjectGidRemoveCustomFieldSettingBody.js +53 -0
  705. package/src/model/ProjectGidRemoveFollowersBody.js +53 -0
  706. package/src/model/ProjectGidRemoveMembersBody.js +53 -0
  707. package/src/model/ProjectGidSaveAsTemplateBody.js +53 -0
  708. package/src/model/ProjectGidSectionsBody.js +53 -0
  709. package/src/model/ProjectMembershipBase.js +70 -0
  710. package/src/model/ProjectMembershipCompact.js +70 -0
  711. package/src/model/ProjectMembershipResponse.js +150 -0
  712. package/src/model/ProjectMembershipResponseArray.js +63 -0
  713. package/src/model/ProjectMembershipResponseData.js +55 -0
  714. package/src/model/ProjectMembershipResponseMember.js +70 -0
  715. package/src/model/ProjectRequest.js +388 -0
  716. package/src/model/ProjectResponse.js +643 -0
  717. package/src/model/ProjectResponseArray.js +63 -0
  718. package/src/model/ProjectResponseCompletedBy.js +70 -0
  719. package/src/model/ProjectResponseCreatedFromTemplate.js +70 -0
  720. package/src/model/ProjectResponseData.js +55 -0
  721. package/src/model/ProjectResponseProjectBrief.js +62 -0
  722. package/src/model/ProjectResponseTeam.js +70 -0
  723. package/src/model/ProjectSaveAsTemplateRequest.js +81 -0
  724. package/src/model/ProjectSectionInsertRequest.js +71 -0
  725. package/src/model/ProjectStatusBase.js +128 -0
  726. package/src/model/ProjectStatusCompact.js +70 -0
  727. package/src/model/ProjectStatusRequest.js +128 -0
  728. package/src/model/ProjectStatusResponse.js +159 -0
  729. package/src/model/ProjectStatusResponseArray.js +63 -0
  730. package/src/model/ProjectStatusResponseData.js +55 -0
  731. package/src/model/ProjectTemplateBase.js +256 -0
  732. package/src/model/ProjectTemplateBaseRequestedDates.js +69 -0
  733. package/src/model/ProjectTemplateBaseRequestedRoles.js +70 -0
  734. package/src/model/ProjectTemplateBaseTeam.js +70 -0
  735. package/src/model/ProjectTemplateCompact.js +70 -0
  736. package/src/model/ProjectTemplateGidInstantiateProjectBody.js +53 -0
  737. package/src/model/ProjectTemplateInstantiateProjectRequest.js +97 -0
  738. package/src/model/ProjectTemplateInstantiateProjectRequestRequestedDates.js +61 -0
  739. package/src/model/ProjectTemplateInstantiateProjectRequestRequestedRoles.js +61 -0
  740. package/src/model/ProjectTemplateResponse.js +256 -0
  741. package/src/model/ProjectTemplateResponseArray.js +63 -0
  742. package/src/model/ProjectTemplateResponseData.js +55 -0
  743. package/src/model/ProjectsBody.js +53 -0
  744. package/src/model/ProjectsProjectGidBody.js +53 -0
  745. package/src/model/RemoveCustomFieldSettingRequest.js +55 -0
  746. package/src/model/RemoveFollowersRequest.js +55 -0
  747. package/src/model/RemoveMembersRequest.js +55 -0
  748. package/src/model/RequestedRoleRequest.js +61 -0
  749. package/src/model/RuleTriggerGidRunBody.js +53 -0
  750. package/src/model/RuleTriggerRequest.js +65 -0
  751. package/src/model/RuleTriggerResponse.js +53 -0
  752. package/src/model/RuleTriggerResponseData.js +55 -0
  753. package/src/model/SectionBase.js +70 -0
  754. package/src/model/SectionCompact.js +70 -0
  755. package/src/model/SectionGidAddTaskBody.js +53 -0
  756. package/src/model/SectionRequest.js +71 -0
  757. package/src/model/SectionResponse.js +94 -0
  758. package/src/model/SectionResponseArray.js +63 -0
  759. package/src/model/SectionResponseData.js +55 -0
  760. package/src/model/SectionTaskInsertRequest.js +71 -0
  761. package/src/model/SectionsInsertBody.js +53 -0
  762. package/src/model/SectionsSectionGidBody.js +53 -0
  763. package/src/model/StatusUpdateBase.js +190 -0
  764. package/src/model/StatusUpdateCompact.js +102 -0
  765. package/src/model/StatusUpdateRequest.js +200 -0
  766. package/src/model/StatusUpdateResponse.js +278 -0
  767. package/src/model/StatusUpdateResponseArray.js +63 -0
  768. package/src/model/StatusUpdateResponseData.js +55 -0
  769. package/src/model/StatusUpdateResponseParent.js +70 -0
  770. package/src/model/StatusUpdatesBody.js +53 -0
  771. package/src/model/StoriesStoryGidBody.js +53 -0
  772. package/src/model/StoryBase.js +188 -0
  773. package/src/model/StoryCompact.js +94 -0
  774. package/src/model/StoryRequest.js +188 -0
  775. package/src/model/StoryResponse.js +595 -0
  776. package/src/model/StoryResponseArray.js +63 -0
  777. package/src/model/StoryResponseAssignee.js +70 -0
  778. package/src/model/StoryResponseCustomField.js +243 -0
  779. package/src/model/StoryResponseData.js +55 -0
  780. package/src/model/StoryResponseDates.js +70 -0
  781. package/src/model/StoryResponseOldDates.js +70 -0
  782. package/src/model/StoryResponseOldEnumValue.js +86 -0
  783. package/src/model/StoryResponseOldSection.js +70 -0
  784. package/src/model/StoryResponsePreviews.js +110 -0
  785. package/src/model/StoryResponseProject.js +70 -0
  786. package/src/model/StoryResponseStory.js +94 -0
  787. package/src/model/StoryResponseTag.js +70 -0
  788. package/src/model/StoryResponseTarget.js +108 -0
  789. package/src/model/StoryResponseTask.js +108 -0
  790. package/src/model/TagBase.js +206 -0
  791. package/src/model/TagCompact.js +70 -0
  792. package/src/model/TagRequest.js +222 -0
  793. package/src/model/TagResponse.js +239 -0
  794. package/src/model/TagResponseArray.js +63 -0
  795. package/src/model/TagResponseData.js +55 -0
  796. package/src/model/TagsBody.js +53 -0
  797. package/src/model/TaskAddFollowersRequest.js +55 -0
  798. package/src/model/TaskAddProjectRequest.js +79 -0
  799. package/src/model/TaskAddTagRequest.js +55 -0
  800. package/src/model/TaskBase.js +385 -0
  801. package/src/model/TaskBaseCompletedBy.js +70 -0
  802. package/src/model/TaskBaseDependencies.js +62 -0
  803. package/src/model/TaskBaseExternal.js +60 -0
  804. package/src/model/TaskBaseMemberships.js +61 -0
  805. package/src/model/TaskBaseSection.js +70 -0
  806. package/src/model/TaskCompact.js +108 -0
  807. package/src/model/TaskCountResponse.js +94 -0
  808. package/src/model/TaskCountResponseData.js +55 -0
  809. package/src/model/TaskDuplicateRequest.js +61 -0
  810. package/src/model/TaskGidAddDependenciesBody.js +53 -0
  811. package/src/model/TaskGidAddDependentsBody.js +53 -0
  812. package/src/model/TaskGidAddFollowersBody.js +53 -0
  813. package/src/model/TaskGidAddProjectBody.js +53 -0
  814. package/src/model/TaskGidAddTagBody.js +53 -0
  815. package/src/model/TaskGidDuplicateBody.js +53 -0
  816. package/src/model/TaskGidRemoveDependenciesBody.js +53 -0
  817. package/src/model/TaskGidRemoveDependentsBody.js +53 -0
  818. package/src/model/TaskGidRemoveFollowersBody.js +53 -0
  819. package/src/model/TaskGidRemoveProjectBody.js +53 -0
  820. package/src/model/TaskGidRemoveTagBody.js +53 -0
  821. package/src/model/TaskGidSetParentBody.js +53 -0
  822. package/src/model/TaskGidStoriesBody.js +53 -0
  823. package/src/model/TaskGidSubtasksBody.js +53 -0
  824. package/src/model/TaskGidTimeTrackingEntriesBody.js +53 -0
  825. package/src/model/TaskRemoveFollowersRequest.js +55 -0
  826. package/src/model/TaskRemoveProjectRequest.js +55 -0
  827. package/src/model/TaskRemoveTagRequest.js +55 -0
  828. package/src/model/TaskRequest.js +449 -0
  829. package/src/model/TaskResponse.js +461 -0
  830. package/src/model/TaskResponseArray.js +63 -0
  831. package/src/model/TaskResponseAssigneeSection.js +70 -0
  832. package/src/model/TaskResponseCustomFields.js +1234 -0
  833. package/src/model/TaskResponseData.js +55 -0
  834. package/src/model/TaskResponseParent.js +108 -0
  835. package/src/model/TaskResponseTags.js +70 -0
  836. package/src/model/TaskResponseWorkspace.js +70 -0
  837. package/src/model/TaskSetParentRequest.js +71 -0
  838. package/src/model/TasksBody.js +53 -0
  839. package/src/model/TasksTaskGidBody.js +53 -0
  840. package/src/model/TeamAddUserRequest.js +54 -0
  841. package/src/model/TeamBase.js +70 -0
  842. package/src/model/TeamCompact.js +70 -0
  843. package/src/model/TeamGidAddUserBody.js +53 -0
  844. package/src/model/TeamGidProjectsBody.js +53 -0
  845. package/src/model/TeamGidRemoveUserBody.js +53 -0
  846. package/src/model/TeamMembershipBase.js +102 -0
  847. package/src/model/TeamMembershipCompact.js +102 -0
  848. package/src/model/TeamMembershipResponse.js +102 -0
  849. package/src/model/TeamMembershipResponseArray.js +63 -0
  850. package/src/model/TeamMembershipResponseData.js +55 -0
  851. package/src/model/TeamRemoveUserRequest.js +54 -0
  852. package/src/model/TeamRequest.js +282 -0
  853. package/src/model/TeamResponse.js +290 -0
  854. package/src/model/TeamResponseArray.js +63 -0
  855. package/src/model/TeamResponseData.js +55 -0
  856. package/src/model/TeamResponseOrganization.js +70 -0
  857. package/src/model/TeamsBody.js +53 -0
  858. package/src/model/TeamsTeamGidBody.js +53 -0
  859. package/src/model/TemplateRole.js +70 -0
  860. package/src/model/TimePeriodBase.js +150 -0
  861. package/src/model/TimePeriodCompact.js +142 -0
  862. package/src/model/TimePeriodResponse.js +150 -0
  863. package/src/model/TimePeriodResponseArray.js +63 -0
  864. package/src/model/TimePeriodResponseData.js +55 -0
  865. package/src/model/TimeTrackingEntriesTimeTrackingEntryGidBody.js +53 -0
  866. package/src/model/TimeTrackingEntryBase.js +102 -0
  867. package/src/model/TimeTrackingEntryBaseData.js +55 -0
  868. package/src/model/TimeTrackingEntryCompact.js +86 -0
  869. package/src/model/TimeTrackingEntryCompactArray.js +63 -0
  870. package/src/model/UpdateTimeTrackingEntryRequest.js +61 -0
  871. package/src/model/UserBase.js +70 -0
  872. package/src/model/UserBaseResponse.js +86 -0
  873. package/src/model/UserBaseResponseData.js +55 -0
  874. package/src/model/UserBaseResponsePhoto.js +88 -0
  875. package/src/model/UserCompact.js +70 -0
  876. package/src/model/UserRequest.js +70 -0
  877. package/src/model/UserResponse.js +95 -0
  878. package/src/model/UserResponseArray.js +63 -0
  879. package/src/model/UserResponseData.js +55 -0
  880. package/src/model/UserTaskListBase.js +86 -0
  881. package/src/model/UserTaskListCompact.js +86 -0
  882. package/src/model/UserTaskListRequest.js +86 -0
  883. package/src/model/UserTaskListResponse.js +86 -0
  884. package/src/model/UserTaskListResponseData.js +55 -0
  885. package/src/model/WebhookCompact.js +86 -0
  886. package/src/model/WebhookCompactResource.js +70 -0
  887. package/src/model/WebhookFilter.js +78 -0
  888. package/src/model/WebhookRequest.js +74 -0
  889. package/src/model/WebhookRequestFilters.js +78 -0
  890. package/src/model/WebhookResponse.js +127 -0
  891. package/src/model/WebhookResponseArray.js +63 -0
  892. package/src/model/WebhookResponseData.js +55 -0
  893. package/src/model/WebhookUpdateRequest.js +54 -0
  894. package/src/model/WebhooksBody.js +53 -0
  895. package/src/model/WebhooksWebhookGidBody.js +53 -0
  896. package/src/model/WorkspaceAddUserRequest.js +54 -0
  897. package/src/model/WorkspaceBase.js +70 -0
  898. package/src/model/WorkspaceCompact.js +70 -0
  899. package/src/model/WorkspaceGidAddUserBody.js +53 -0
  900. package/src/model/WorkspaceGidProjectsBody.js +53 -0
  901. package/src/model/WorkspaceGidRemoveUserBody.js +53 -0
  902. package/src/model/WorkspaceGidTagsBody.js +53 -0
  903. package/src/model/WorkspaceMembershipBase.js +78 -0
  904. package/src/model/WorkspaceMembershipCompact.js +78 -0
  905. package/src/model/WorkspaceMembershipRequest.js +78 -0
  906. package/src/model/WorkspaceMembershipResponse.js +126 -0
  907. package/src/model/WorkspaceMembershipResponseArray.js +63 -0
  908. package/src/model/WorkspaceMembershipResponseData.js +55 -0
  909. package/src/model/WorkspaceMembershipResponseUserTaskList.js +86 -0
  910. package/src/model/WorkspaceMembershipResponseVacationDates.js +62 -0
  911. package/src/model/WorkspaceRemoveUserRequest.js +54 -0
  912. package/src/model/WorkspaceRequest.js +70 -0
  913. package/src/model/WorkspaceResponse.js +86 -0
  914. package/src/model/WorkspaceResponseArray.js +63 -0
  915. package/src/model/WorkspaceResponseData.js +55 -0
  916. package/src/model/WorkspacesWorkspaceGidBody.js +53 -0
  917. package/.github/workflows/build.yml +0 -27
  918. package/.github/workflows/publish-to-github-releases.yml +0 -26
  919. package/.github/workflows/publish-to-npmjs.yml +0 -21
  920. package/VERSION +0 -1
  921. package/bower.json +0 -29
  922. package/gulpfile.js +0 -205
  923. package/index.js +0 -7
  924. package/lib/auth/app.js +0 -136
  925. package/lib/auth/authenticator.js +0 -41
  926. package/lib/auth/auto_detect.js +0 -36
  927. package/lib/auth/base_browser_flow.js +0 -97
  928. package/lib/auth/basic_authenticator.js +0 -33
  929. package/lib/auth/chrome_extension_flow.js +0 -94
  930. package/lib/auth/index.js +0 -9
  931. package/lib/auth/native_flow.js +0 -106
  932. package/lib/auth/oauth_authenticator.js +0 -125
  933. package/lib/auth/oauth_error.js +0 -24
  934. package/lib/auth/oauth_util.js +0 -52
  935. package/lib/auth/popup_flow.js +0 -135
  936. package/lib/auth/redirect_flow.js +0 -54
  937. package/lib/client.js +0 -250
  938. package/lib/default_environment.js +0 -21
  939. package/lib/dispatcher.js +0 -438
  940. package/lib/errors/error.js +0 -12
  941. package/lib/errors/forbidden.js +0 -12
  942. package/lib/errors/index.js +0 -7
  943. package/lib/errors/invalid_request.js +0 -12
  944. package/lib/errors/no_authorization.js +0 -12
  945. package/lib/errors/not_found.js +0 -12
  946. package/lib/errors/premium_only.js +0 -12
  947. package/lib/errors/rate_limit_enforced.js +0 -17
  948. package/lib/errors/server_error.js +0 -12
  949. package/lib/resources/attachments.js +0 -43
  950. package/lib/resources/audit_log_api.js +0 -6
  951. package/lib/resources/batch_api.js +0 -3
  952. package/lib/resources/custom_field_settings.js +0 -41
  953. package/lib/resources/custom_fields.js +0 -195
  954. package/lib/resources/events.js +0 -41
  955. package/lib/resources/gen/attachments.js +0 -78
  956. package/lib/resources/gen/audit_log_api.js +0 -45
  957. package/lib/resources/gen/batch_api.js +0 -35
  958. package/lib/resources/gen/custom_field_settings.js +0 -63
  959. package/lib/resources/gen/custom_fields.js +0 -167
  960. package/lib/resources/gen/events.js +0 -39
  961. package/lib/resources/gen/goals.js +0 -321
  962. package/lib/resources/gen/jobs.js +0 -39
  963. package/lib/resources/gen/organization_exports.js +0 -55
  964. package/lib/resources/gen/portfolio_memberships.js +0 -85
  965. package/lib/resources/gen/portfolios.js +0 -243
  966. package/lib/resources/gen/project_briefs.js +0 -93
  967. package/lib/resources/gen/project_memberships.js +0 -62
  968. package/lib/resources/gen/project_statuses.js +0 -97
  969. package/lib/resources/gen/project_templates.js +0 -101
  970. package/lib/resources/gen/projects.js +0 -384
  971. package/lib/resources/gen/sections.js +0 -151
  972. package/lib/resources/gen/status_updates.js +0 -95
  973. package/lib/resources/gen/stories.js +0 -117
  974. package/lib/resources/gen/tags.js +0 -176
  975. package/lib/resources/gen/tasks.js +0 -579
  976. package/lib/resources/gen/team_memberships.js +0 -107
  977. package/lib/resources/gen/teams.js +0 -138
  978. package/lib/resources/gen/time_periods.js +0 -62
  979. package/lib/resources/gen/typeahead.js +0 -43
  980. package/lib/resources/gen/user_task_lists.js +0 -60
  981. package/lib/resources/gen/users.js +0 -125
  982. package/lib/resources/gen/webhooks.js +0 -113
  983. package/lib/resources/gen/workspace_memberships.js +0 -84
  984. package/lib/resources/gen/workspaces.js +0 -113
  985. package/lib/resources/index.js +0 -26
  986. package/lib/resources/jobs.js +0 -23
  987. package/lib/resources/organization_exports.js +0 -41
  988. package/lib/resources/portfolio_memberships.js +0 -61
  989. package/lib/resources/portfolios.js +0 -263
  990. package/lib/resources/project_memberships.js +0 -51
  991. package/lib/resources/project_statuses.js +0 -83
  992. package/lib/resources/projects.js +0 -359
  993. package/lib/resources/resource.js +0 -118
  994. package/lib/resources/sections.js +0 -158
  995. package/lib/resources/stories.js +0 -99
  996. package/lib/resources/tags.js +0 -167
  997. package/lib/resources/tasks.js +0 -702
  998. package/lib/resources/teams.js +0 -122
  999. package/lib/resources/typeahead.js +0 -3
  1000. package/lib/resources/user_task_lists.js +0 -78
  1001. package/lib/resources/users.js +0 -98
  1002. package/lib/resources/webhooks.js +0 -100
  1003. package/lib/resources/workspace_memberships.js +0 -3
  1004. package/lib/resources/workspaces.js +0 -135
  1005. package/lib/util/buffered_readable.js +0 -59
  1006. package/lib/util/collection.js +0 -133
  1007. package/lib/util/event_stream.js +0 -71
  1008. package/lib/util/resource_stream.js +0 -80
  1009. package/samples/attachments_sample.yaml +0 -45
  1010. package/samples/audit_log_api_sample.yaml +0 -12
  1011. package/samples/batch_api_sample.yaml +0 -12
  1012. package/samples/custom_field_settings_sample.yaml +0 -23
  1013. package/samples/custom_fields_sample.yaml +0 -89
  1014. package/samples/events_sample.yaml +0 -12
  1015. package/samples/goals_sample.yaml +0 -177
  1016. package/samples/jobs_sample.yaml +0 -12
  1017. package/samples/organization_exports_sample.yaml +0 -23
  1018. package/samples/portfolio_memberships_sample.yaml +0 -34
  1019. package/samples/portfolios_sample.yaml +0 -133
  1020. package/samples/project_briefs_sample.yaml +0 -45
  1021. package/samples/project_memberships_sample.yaml +0 -23
  1022. package/samples/project_statuses_sample.yaml +0 -45
  1023. package/samples/project_templates_sample.yaml +0 -45
  1024. package/samples/projects_sample.yaml +0 -210
  1025. package/samples/sections_sample.yaml +0 -78
  1026. package/samples/status_updates_sample.yaml +0 -45
  1027. package/samples/stories_sample.yaml +0 -56
  1028. package/samples/tags_sample.yaml +0 -89
  1029. package/samples/tasks_sample.yaml +0 -287
  1030. package/samples/team_memberships_sample.yaml +0 -45
  1031. package/samples/teams_sample.yaml +0 -67
  1032. package/samples/time_periods_sample.yaml +0 -23
  1033. package/samples/typeahead_sample.yaml +0 -12
  1034. package/samples/user_task_lists_sample.yaml +0 -23
  1035. package/samples/users_sample.yaml +0 -56
  1036. package/samples/webhooks_sample.yaml +0 -56
  1037. package/samples/workspace_memberships_sample.yaml +0 -34
  1038. package/samples/workspaces_sample.yaml +0 -56
  1039. package/swagger_templates/api.mustache +0 -60
  1040. package/swagger_templates/api_doc.mustache +0 -13
  1041. package/swagger_templates/node-config.json +0 -7
@@ -0,0 +1,1454 @@
1
+ /*
2
+ * Asana
3
+ * This is the interface for interacting with the [Asana Platform](https://developers.asana.com). Our API reference is generated from our [OpenAPI spec] (https://raw.githubusercontent.com/Asana/openapi/master/defs/asana_oas.yaml).
4
+ *
5
+ * OpenAPI spec version: 1.0
6
+ *
7
+ * NOTE: This class is auto generated by the swagger code generator program.
8
+ * https://github.com/swagger-api/swagger-codegen.git
9
+ *
10
+ * Swagger Codegen version: 3.0.46
11
+ *
12
+ * Do not edit the class manually.
13
+ *
14
+ */
15
+ import {ApiClient} from "../ApiClient";
16
+ import {EmptyResponseData} from '../model/EmptyResponseData';
17
+ import {ErrorResponse} from '../model/ErrorResponse';
18
+ import {JobResponseData} from '../model/JobResponseData';
19
+ import {TaskGidAddDependenciesBody} from '../model/TaskGidAddDependenciesBody';
20
+ import {TaskGidAddDependentsBody} from '../model/TaskGidAddDependentsBody';
21
+ import {TaskGidAddFollowersBody} from '../model/TaskGidAddFollowersBody';
22
+ import {TaskGidAddProjectBody} from '../model/TaskGidAddProjectBody';
23
+ import {TaskGidAddTagBody} from '../model/TaskGidAddTagBody';
24
+ import {TaskGidDuplicateBody} from '../model/TaskGidDuplicateBody';
25
+ import {TaskGidRemoveDependenciesBody} from '../model/TaskGidRemoveDependenciesBody';
26
+ import {TaskGidRemoveDependentsBody} from '../model/TaskGidRemoveDependentsBody';
27
+ import {TaskGidRemoveFollowersBody} from '../model/TaskGidRemoveFollowersBody';
28
+ import {TaskGidRemoveProjectBody} from '../model/TaskGidRemoveProjectBody';
29
+ import {TaskGidRemoveTagBody} from '../model/TaskGidRemoveTagBody';
30
+ import {TaskGidSetParentBody} from '../model/TaskGidSetParentBody';
31
+ import {TaskGidSubtasksBody} from '../model/TaskGidSubtasksBody';
32
+ import {TaskResponseArray} from '../model/TaskResponseArray';
33
+ import {TaskResponseData} from '../model/TaskResponseData';
34
+ import {TasksBody} from '../model/TasksBody';
35
+ import {TasksTaskGidBody} from '../model/TasksTaskGidBody';
36
+
37
+ /**
38
+ * Tasks service.
39
+ * @module api/TasksApi
40
+ * @version 2.0.0
41
+ */
42
+ export class TasksApi {
43
+
44
+ /**
45
+ * Constructs a new TasksApi.
46
+ * @alias module:api/TasksApi
47
+ * @class
48
+ * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
49
+ * default to {@link module:ApiClient#instanc
50
+ e} if unspecified.
51
+ */
52
+ constructor(apiClient) {
53
+ this.apiClient = apiClient || ApiClient.instance;
54
+ }
55
+
56
+ /**
57
+ * Callback function to receive the result of the addDependenciesForTask operation.
58
+ * @callback moduleapi/TasksApi~addDependenciesForTaskCallback
59
+ * @param {String} error Error message, if any.
60
+ * @param {module:model/EmptyResponseData{ data The data returned by the service call.
61
+ * @param {String} response The complete HTTP response.
62
+ */
63
+
64
+ /**
65
+ * Set dependencies for a task
66
+ * Marks a set of tasks as dependencies of this task, if they are not already dependencies. *A task can have at most 30 dependents and dependencies combined*.
67
+ * @param {module:model/TaskGidAddDependenciesBody} body The list of tasks to set as dependencies.
68
+ * @param {String} task_gid The task to operate on.
69
+ * @param {module:api/TasksApi~addDependenciesForTaskCallback} callback The callback function, accepting three arguments: error, data, response
70
+ * data is of type: {@link <&vendorExtensions.x-jsdoc-type>}
71
+ */
72
+ addDependenciesForTask(body, task_gid, callback) {
73
+
74
+ let postBody = body;
75
+ // verify the required parameter 'body' is set
76
+ if (body === undefined || body === null) {
77
+ throw new Error("Missing the required parameter 'body' when calling addDependenciesForTask");
78
+ }
79
+ // verify the required parameter 'task_gid' is set
80
+ if (task_gid === undefined || task_gid === null) {
81
+ throw new Error("Missing the required parameter 'task_gid' when calling addDependenciesForTask");
82
+ }
83
+
84
+ let pathParams = {
85
+ 'task_gid': task_gid
86
+ };
87
+ let queryParams = {
88
+
89
+ };
90
+ let headerParams = {
91
+
92
+ };
93
+ let formParams = {
94
+
95
+ };
96
+
97
+ let authNames = ['oauth2'];
98
+ let contentTypes = ['application/json; charset=UTF-8'];
99
+ let accepts = ['application/json; charset=UTF-8'];
100
+ let returnType = EmptyResponseData;
101
+
102
+ return this.apiClient.callApi(
103
+ '/tasks/{task_gid}/addDependencies', 'POST',
104
+ pathParams, queryParams, headerParams, formParams, postBody,
105
+ authNames, contentTypes, accepts, returnType, callback
106
+ );
107
+ }
108
+ /**
109
+ * Callback function to receive the result of the addDependentsForTask operation.
110
+ * @callback moduleapi/TasksApi~addDependentsForTaskCallback
111
+ * @param {String} error Error message, if any.
112
+ * @param {module:model/EmptyResponseData{ data The data returned by the service call.
113
+ * @param {String} response The complete HTTP response.
114
+ */
115
+
116
+ /**
117
+ * Set dependents for a task
118
+ * Marks a set of tasks as dependents of this task, if they are not already dependents. *A task can have at most 30 dependents and dependencies combined*.
119
+ * @param {module:model/TaskGidAddDependentsBody} body The list of tasks to add as dependents.
120
+ * @param {String} task_gid The task to operate on.
121
+ * @param {module:api/TasksApi~addDependentsForTaskCallback} callback The callback function, accepting three arguments: error, data, response
122
+ * data is of type: {@link <&vendorExtensions.x-jsdoc-type>}
123
+ */
124
+ addDependentsForTask(body, task_gid, callback) {
125
+
126
+ let postBody = body;
127
+ // verify the required parameter 'body' is set
128
+ if (body === undefined || body === null) {
129
+ throw new Error("Missing the required parameter 'body' when calling addDependentsForTask");
130
+ }
131
+ // verify the required parameter 'task_gid' is set
132
+ if (task_gid === undefined || task_gid === null) {
133
+ throw new Error("Missing the required parameter 'task_gid' when calling addDependentsForTask");
134
+ }
135
+
136
+ let pathParams = {
137
+ 'task_gid': task_gid
138
+ };
139
+ let queryParams = {
140
+
141
+ };
142
+ let headerParams = {
143
+
144
+ };
145
+ let formParams = {
146
+
147
+ };
148
+
149
+ let authNames = ['oauth2'];
150
+ let contentTypes = ['application/json; charset=UTF-8'];
151
+ let accepts = ['application/json; charset=UTF-8'];
152
+ let returnType = EmptyResponseData;
153
+
154
+ return this.apiClient.callApi(
155
+ '/tasks/{task_gid}/addDependents', 'POST',
156
+ pathParams, queryParams, headerParams, formParams, postBody,
157
+ authNames, contentTypes, accepts, returnType, callback
158
+ );
159
+ }
160
+ /**
161
+ * Callback function to receive the result of the addFollowersForTask operation.
162
+ * @callback moduleapi/TasksApi~addFollowersForTaskCallback
163
+ * @param {String} error Error message, if any.
164
+ * @param {module:model/TaskResponseData{ data The data returned by the service call.
165
+ * @param {String} response The complete HTTP response.
166
+ */
167
+
168
+ /**
169
+ * Add followers to a task
170
+ * Adds followers to a task. Returns an empty data block. Each task can be associated with zero or more followers in the system. Requests to add/remove followers, if successful, will return the complete updated task record, described above.
171
+ * @param {module:model/TaskGidAddFollowersBody} body The followers to add to the task.
172
+ * @param {String} task_gid The task to operate on.
173
+ * @param {Object} opts Optional parameters
174
+ * @param {Array.<module:model/String>} opts.opt_fields This endpoint returns a compact resource, which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include.
175
+ * @param {module:api/TasksApi~addFollowersForTaskCallback} callback The callback function, accepting three arguments: error, data, response
176
+ * data is of type: {@link <&vendorExtensions.x-jsdoc-type>}
177
+ */
178
+ addFollowersForTask(body, task_gid, opts, callback) {
179
+ opts = opts || {};
180
+ let postBody = body;
181
+ // verify the required parameter 'body' is set
182
+ if (body === undefined || body === null) {
183
+ throw new Error("Missing the required parameter 'body' when calling addFollowersForTask");
184
+ }
185
+ // verify the required parameter 'task_gid' is set
186
+ if (task_gid === undefined || task_gid === null) {
187
+ throw new Error("Missing the required parameter 'task_gid' when calling addFollowersForTask");
188
+ }
189
+
190
+ let pathParams = {
191
+ 'task_gid': task_gid
192
+ };
193
+ let queryParams = {
194
+ 'opt_fields': this.apiClient.buildCollectionParam(opts['opt_fields'], 'csv')
195
+ };
196
+ let headerParams = {
197
+
198
+ };
199
+ let formParams = {
200
+
201
+ };
202
+
203
+ let authNames = ['oauth2'];
204
+ let contentTypes = ['application/json; charset=UTF-8'];
205
+ let accepts = ['application/json; charset=UTF-8'];
206
+ let returnType = TaskResponseData;
207
+
208
+ return this.apiClient.callApi(
209
+ '/tasks/{task_gid}/addFollowers', 'POST',
210
+ pathParams, queryParams, headerParams, formParams, postBody,
211
+ authNames, contentTypes, accepts, returnType, callback
212
+ );
213
+ }
214
+ /**
215
+ * Callback function to receive the result of the addProjectForTask operation.
216
+ * @callback moduleapi/TasksApi~addProjectForTaskCallback
217
+ * @param {String} error Error message, if any.
218
+ * @param {module:model/EmptyResponseData{ data The data returned by the service call.
219
+ * @param {String} response The complete HTTP response.
220
+ */
221
+
222
+ /**
223
+ * Add a project to a task
224
+ * Adds the task to the specified project, in the optional location specified. If no location arguments are given, the task will be added to the end of the project. &#x60;addProject&#x60; can also be used to reorder a task within a project or section that already contains it. At most one of &#x60;insert_before&#x60;, &#x60;insert_after&#x60;, or &#x60;section&#x60; should be specified. Inserting into a section in an non-order-dependent way can be done by specifying section, otherwise, to insert within a section in a particular place, specify &#x60;insert_before&#x60; or &#x60;insert_after&#x60; and a task within the section to anchor the position of this task. Returns an empty data block.
225
+ * @param {module:model/TaskGidAddProjectBody} body The project to add the task to.
226
+ * @param {String} task_gid The task to operate on.
227
+ * @param {module:api/TasksApi~addProjectForTaskCallback} callback The callback function, accepting three arguments: error, data, response
228
+ * data is of type: {@link <&vendorExtensions.x-jsdoc-type>}
229
+ */
230
+ addProjectForTask(body, task_gid, callback) {
231
+
232
+ let postBody = body;
233
+ // verify the required parameter 'body' is set
234
+ if (body === undefined || body === null) {
235
+ throw new Error("Missing the required parameter 'body' when calling addProjectForTask");
236
+ }
237
+ // verify the required parameter 'task_gid' is set
238
+ if (task_gid === undefined || task_gid === null) {
239
+ throw new Error("Missing the required parameter 'task_gid' when calling addProjectForTask");
240
+ }
241
+
242
+ let pathParams = {
243
+ 'task_gid': task_gid
244
+ };
245
+ let queryParams = {
246
+
247
+ };
248
+ let headerParams = {
249
+
250
+ };
251
+ let formParams = {
252
+
253
+ };
254
+
255
+ let authNames = ['oauth2'];
256
+ let contentTypes = ['application/json; charset=UTF-8'];
257
+ let accepts = ['application/json; charset=UTF-8'];
258
+ let returnType = EmptyResponseData;
259
+
260
+ return this.apiClient.callApi(
261
+ '/tasks/{task_gid}/addProject', 'POST',
262
+ pathParams, queryParams, headerParams, formParams, postBody,
263
+ authNames, contentTypes, accepts, returnType, callback
264
+ );
265
+ }
266
+ /**
267
+ * Callback function to receive the result of the addTagForTask operation.
268
+ * @callback moduleapi/TasksApi~addTagForTaskCallback
269
+ * @param {String} error Error message, if any.
270
+ * @param {module:model/EmptyResponseData{ data The data returned by the service call.
271
+ * @param {String} response The complete HTTP response.
272
+ */
273
+
274
+ /**
275
+ * Add a tag to a task
276
+ * Adds a tag to a task. Returns an empty data block.
277
+ * @param {module:model/TaskGidAddTagBody} body The tag to add to the task.
278
+ * @param {String} task_gid The task to operate on.
279
+ * @param {module:api/TasksApi~addTagForTaskCallback} callback The callback function, accepting three arguments: error, data, response
280
+ * data is of type: {@link <&vendorExtensions.x-jsdoc-type>}
281
+ */
282
+ addTagForTask(body, task_gid, callback) {
283
+
284
+ let postBody = body;
285
+ // verify the required parameter 'body' is set
286
+ if (body === undefined || body === null) {
287
+ throw new Error("Missing the required parameter 'body' when calling addTagForTask");
288
+ }
289
+ // verify the required parameter 'task_gid' is set
290
+ if (task_gid === undefined || task_gid === null) {
291
+ throw new Error("Missing the required parameter 'task_gid' when calling addTagForTask");
292
+ }
293
+
294
+ let pathParams = {
295
+ 'task_gid': task_gid
296
+ };
297
+ let queryParams = {
298
+
299
+ };
300
+ let headerParams = {
301
+
302
+ };
303
+ let formParams = {
304
+
305
+ };
306
+
307
+ let authNames = ['oauth2'];
308
+ let contentTypes = ['application/json; charset=UTF-8'];
309
+ let accepts = ['application/json; charset=UTF-8'];
310
+ let returnType = EmptyResponseData;
311
+
312
+ return this.apiClient.callApi(
313
+ '/tasks/{task_gid}/addTag', 'POST',
314
+ pathParams, queryParams, headerParams, formParams, postBody,
315
+ authNames, contentTypes, accepts, returnType, callback
316
+ );
317
+ }
318
+ /**
319
+ * Callback function to receive the result of the createSubtaskForTask operation.
320
+ * @callback moduleapi/TasksApi~createSubtaskForTaskCallback
321
+ * @param {String} error Error message, if any.
322
+ * @param {module:model/TaskResponseData{ data The data returned by the service call.
323
+ * @param {String} response The complete HTTP response.
324
+ */
325
+
326
+ /**
327
+ * Create a subtask
328
+ * Creates a new subtask and adds it to the parent task. Returns the full record for the newly created subtask.
329
+ * @param {module:model/TaskGidSubtasksBody} body The new subtask to create.
330
+ * @param {String} task_gid The task to operate on.
331
+ * @param {Object} opts Optional parameters
332
+ * @param {Array.<module:model/String>} opts.opt_fields This endpoint returns a compact resource, which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include.
333
+ * @param {module:api/TasksApi~createSubtaskForTaskCallback} callback The callback function, accepting three arguments: error, data, response
334
+ * data is of type: {@link <&vendorExtensions.x-jsdoc-type>}
335
+ */
336
+ createSubtaskForTask(body, task_gid, opts, callback) {
337
+ opts = opts || {};
338
+ let postBody = body;
339
+ // verify the required parameter 'body' is set
340
+ if (body === undefined || body === null) {
341
+ throw new Error("Missing the required parameter 'body' when calling createSubtaskForTask");
342
+ }
343
+ // verify the required parameter 'task_gid' is set
344
+ if (task_gid === undefined || task_gid === null) {
345
+ throw new Error("Missing the required parameter 'task_gid' when calling createSubtaskForTask");
346
+ }
347
+
348
+ let pathParams = {
349
+ 'task_gid': task_gid
350
+ };
351
+ let queryParams = {
352
+ 'opt_fields': this.apiClient.buildCollectionParam(opts['opt_fields'], 'csv')
353
+ };
354
+ let headerParams = {
355
+
356
+ };
357
+ let formParams = {
358
+
359
+ };
360
+
361
+ let authNames = ['oauth2'];
362
+ let contentTypes = ['application/json; charset=UTF-8'];
363
+ let accepts = ['application/json; charset=UTF-8'];
364
+ let returnType = TaskResponseData;
365
+
366
+ return this.apiClient.callApi(
367
+ '/tasks/{task_gid}/subtasks', 'POST',
368
+ pathParams, queryParams, headerParams, formParams, postBody,
369
+ authNames, contentTypes, accepts, returnType, callback
370
+ );
371
+ }
372
+ /**
373
+ * Callback function to receive the result of the createTask operation.
374
+ * @callback moduleapi/TasksApi~createTaskCallback
375
+ * @param {String} error Error message, if any.
376
+ * @param {module:model/TaskResponseData{ data The data returned by the service call.
377
+ * @param {String} response The complete HTTP response.
378
+ */
379
+
380
+ /**
381
+ * Create a task
382
+ * Creating a new task is as easy as POSTing to the &#x60;/tasks&#x60; endpoint with a data block containing the fields you’d like to set on the task. Any unspecified fields will take on default values. Every task is required to be created in a specific workspace, and this workspace cannot be changed once set. The workspace need not be set explicitly if you specify &#x60;projects&#x60; or a &#x60;parent&#x60; task instead.
383
+ * @param {module:model/TasksBody} body The task to create.
384
+ * @param {Object} opts Optional parameters
385
+ * @param {Array.<module:model/String>} opts.opt_fields This endpoint returns a compact resource, which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include.
386
+ * @param {module:api/TasksApi~createTaskCallback} callback The callback function, accepting three arguments: error, data, response
387
+ * data is of type: {@link <&vendorExtensions.x-jsdoc-type>}
388
+ */
389
+ createTask(body, opts, callback) {
390
+ opts = opts || {};
391
+ let postBody = body;
392
+ // verify the required parameter 'body' is set
393
+ if (body === undefined || body === null) {
394
+ throw new Error("Missing the required parameter 'body' when calling createTask");
395
+ }
396
+
397
+ let pathParams = {
398
+
399
+ };
400
+ let queryParams = {
401
+ 'opt_fields': this.apiClient.buildCollectionParam(opts['opt_fields'], 'csv')
402
+ };
403
+ let headerParams = {
404
+
405
+ };
406
+ let formParams = {
407
+
408
+ };
409
+
410
+ let authNames = ['oauth2'];
411
+ let contentTypes = ['application/json; charset=UTF-8'];
412
+ let accepts = ['application/json; charset=UTF-8'];
413
+ let returnType = TaskResponseData;
414
+
415
+ return this.apiClient.callApi(
416
+ '/tasks', 'POST',
417
+ pathParams, queryParams, headerParams, formParams, postBody,
418
+ authNames, contentTypes, accepts, returnType, callback
419
+ );
420
+ }
421
+ /**
422
+ * Callback function to receive the result of the deleteTask operation.
423
+ * @callback moduleapi/TasksApi~deleteTaskCallback
424
+ * @param {String} error Error message, if any.
425
+ * @param {module:model/EmptyResponseData{ data The data returned by the service call.
426
+ * @param {String} response The complete HTTP response.
427
+ */
428
+
429
+ /**
430
+ * Delete a task
431
+ * A specific, existing task can be deleted by making a DELETE request on the URL for that task. Deleted tasks go into the “trash” of the user making the delete request. Tasks can be recovered from the trash within a period of 30 days; afterward they are completely removed from the system. Returns an empty data record.
432
+ * @param {String} task_gid The task to operate on.
433
+ * @param {module:api/TasksApi~deleteTaskCallback} callback The callback function, accepting three arguments: error, data, response
434
+ * data is of type: {@link <&vendorExtensions.x-jsdoc-type>}
435
+ */
436
+ deleteTask(task_gid, callback) {
437
+
438
+ let postBody = null;
439
+ // verify the required parameter 'task_gid' is set
440
+ if (task_gid === undefined || task_gid === null) {
441
+ throw new Error("Missing the required parameter 'task_gid' when calling deleteTask");
442
+ }
443
+
444
+ let pathParams = {
445
+ 'task_gid': task_gid
446
+ };
447
+ let queryParams = {
448
+
449
+ };
450
+ let headerParams = {
451
+
452
+ };
453
+ let formParams = {
454
+
455
+ };
456
+
457
+ let authNames = ['oauth2'];
458
+ let contentTypes = [];
459
+ let accepts = ['application/json; charset=UTF-8'];
460
+ let returnType = EmptyResponseData;
461
+
462
+ return this.apiClient.callApi(
463
+ '/tasks/{task_gid}', 'DELETE',
464
+ pathParams, queryParams, headerParams, formParams, postBody,
465
+ authNames, contentTypes, accepts, returnType, callback
466
+ );
467
+ }
468
+ /**
469
+ * Callback function to receive the result of the duplicateTask operation.
470
+ * @callback moduleapi/TasksApi~duplicateTaskCallback
471
+ * @param {String} error Error message, if any.
472
+ * @param {module:model/JobResponseData{ data The data returned by the service call.
473
+ * @param {String} response The complete HTTP response.
474
+ */
475
+
476
+ /**
477
+ * Duplicate a task
478
+ * Creates and returns a job that will asynchronously handle the duplication.
479
+ * @param {module:model/TaskGidDuplicateBody} body Describes the duplicate&#x27;s name and the fields that will be duplicated.
480
+ * @param {String} task_gid The task to operate on.
481
+ * @param {Object} opts Optional parameters
482
+ * @param {Array.<module:model/String>} opts.opt_fields This endpoint returns a compact resource, which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include.
483
+ * @param {module:api/TasksApi~duplicateTaskCallback} callback The callback function, accepting three arguments: error, data, response
484
+ * data is of type: {@link <&vendorExtensions.x-jsdoc-type>}
485
+ */
486
+ duplicateTask(body, task_gid, opts, callback) {
487
+ opts = opts || {};
488
+ let postBody = body;
489
+ // verify the required parameter 'body' is set
490
+ if (body === undefined || body === null) {
491
+ throw new Error("Missing the required parameter 'body' when calling duplicateTask");
492
+ }
493
+ // verify the required parameter 'task_gid' is set
494
+ if (task_gid === undefined || task_gid === null) {
495
+ throw new Error("Missing the required parameter 'task_gid' when calling duplicateTask");
496
+ }
497
+
498
+ let pathParams = {
499
+ 'task_gid': task_gid
500
+ };
501
+ let queryParams = {
502
+ 'opt_fields': this.apiClient.buildCollectionParam(opts['opt_fields'], 'csv')
503
+ };
504
+ let headerParams = {
505
+
506
+ };
507
+ let formParams = {
508
+
509
+ };
510
+
511
+ let authNames = ['oauth2'];
512
+ let contentTypes = ['application/json; charset=UTF-8'];
513
+ let accepts = ['application/json; charset=UTF-8'];
514
+ let returnType = JobResponseData;
515
+
516
+ return this.apiClient.callApi(
517
+ '/tasks/{task_gid}/duplicate', 'POST',
518
+ pathParams, queryParams, headerParams, formParams, postBody,
519
+ authNames, contentTypes, accepts, returnType, callback
520
+ );
521
+ }
522
+ /**
523
+ * Callback function to receive the result of the getDependenciesForTask operation.
524
+ * @callback moduleapi/TasksApi~getDependenciesForTaskCallback
525
+ * @param {String} error Error message, if any.
526
+ * @param {module:model/TaskResponseArray{ data The data returned by the service call.
527
+ * @param {String} response The complete HTTP response.
528
+ */
529
+
530
+ /**
531
+ * Get dependencies from a task
532
+ * Returns the compact representations of all of the dependencies of a task.
533
+ * @param {String} task_gid The task to operate on.
534
+ * @param {Object} opts Optional parameters
535
+ * @param {Number} opts.limit Results per page. The number of objects to return per page. The value must be between 1 and 100.
536
+ * @param {String} opts.offset Offset token. An offset to the next page returned by the API. A pagination request will return an offset token, which can be used as an input parameter to the next request. If an offset is not passed in, the API will return the first page of results. &#x27;Note: You can only pass in an offset that was returned to you via a previously paginated request.&#x27;
537
+ * @param {Array.<module:model/String>} opts.opt_fields This endpoint returns a compact resource, which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include.
538
+ * @param {module:api/TasksApi~getDependenciesForTaskCallback} callback The callback function, accepting three arguments: error, data, response
539
+ * data is of type: {@link <&vendorExtensions.x-jsdoc-type>}
540
+ */
541
+ getDependenciesForTask(task_gid, opts, callback) {
542
+ opts = opts || {};
543
+ let postBody = null;
544
+ // verify the required parameter 'task_gid' is set
545
+ if (task_gid === undefined || task_gid === null) {
546
+ throw new Error("Missing the required parameter 'task_gid' when calling getDependenciesForTask");
547
+ }
548
+
549
+ let pathParams = {
550
+ 'task_gid': task_gid
551
+ };
552
+ let queryParams = {
553
+ 'limit': opts['limit'],'offset': opts['offset'],'opt_fields': this.apiClient.buildCollectionParam(opts['opt_fields'], 'csv')
554
+ };
555
+ let headerParams = {
556
+
557
+ };
558
+ let formParams = {
559
+
560
+ };
561
+
562
+ let authNames = ['oauth2'];
563
+ let contentTypes = [];
564
+ let accepts = ['application/json; charset=UTF-8'];
565
+ let returnType = TaskResponseArray;
566
+
567
+ return this.apiClient.callApi(
568
+ '/tasks/{task_gid}/dependencies', 'GET',
569
+ pathParams, queryParams, headerParams, formParams, postBody,
570
+ authNames, contentTypes, accepts, returnType, callback
571
+ );
572
+ }
573
+ /**
574
+ * Callback function to receive the result of the getDependentsForTask operation.
575
+ * @callback moduleapi/TasksApi~getDependentsForTaskCallback
576
+ * @param {String} error Error message, if any.
577
+ * @param {module:model/TaskResponseArray{ data The data returned by the service call.
578
+ * @param {String} response The complete HTTP response.
579
+ */
580
+
581
+ /**
582
+ * Get dependents from a task
583
+ * Returns the compact representations of all of the dependents of a task.
584
+ * @param {String} task_gid The task to operate on.
585
+ * @param {Object} opts Optional parameters
586
+ * @param {Number} opts.limit Results per page. The number of objects to return per page. The value must be between 1 and 100.
587
+ * @param {String} opts.offset Offset token. An offset to the next page returned by the API. A pagination request will return an offset token, which can be used as an input parameter to the next request. If an offset is not passed in, the API will return the first page of results. &#x27;Note: You can only pass in an offset that was returned to you via a previously paginated request.&#x27;
588
+ * @param {Array.<module:model/String>} opts.opt_fields This endpoint returns a compact resource, which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include.
589
+ * @param {module:api/TasksApi~getDependentsForTaskCallback} callback The callback function, accepting three arguments: error, data, response
590
+ * data is of type: {@link <&vendorExtensions.x-jsdoc-type>}
591
+ */
592
+ getDependentsForTask(task_gid, opts, callback) {
593
+ opts = opts || {};
594
+ let postBody = null;
595
+ // verify the required parameter 'task_gid' is set
596
+ if (task_gid === undefined || task_gid === null) {
597
+ throw new Error("Missing the required parameter 'task_gid' when calling getDependentsForTask");
598
+ }
599
+
600
+ let pathParams = {
601
+ 'task_gid': task_gid
602
+ };
603
+ let queryParams = {
604
+ 'limit': opts['limit'],'offset': opts['offset'],'opt_fields': this.apiClient.buildCollectionParam(opts['opt_fields'], 'csv')
605
+ };
606
+ let headerParams = {
607
+
608
+ };
609
+ let formParams = {
610
+
611
+ };
612
+
613
+ let authNames = ['oauth2'];
614
+ let contentTypes = [];
615
+ let accepts = ['application/json; charset=UTF-8'];
616
+ let returnType = TaskResponseArray;
617
+
618
+ return this.apiClient.callApi(
619
+ '/tasks/{task_gid}/dependents', 'GET',
620
+ pathParams, queryParams, headerParams, formParams, postBody,
621
+ authNames, contentTypes, accepts, returnType, callback
622
+ );
623
+ }
624
+ /**
625
+ * Callback function to receive the result of the getSubtasksForTask operation.
626
+ * @callback moduleapi/TasksApi~getSubtasksForTaskCallback
627
+ * @param {String} error Error message, if any.
628
+ * @param {module:model/TaskResponseArray{ data The data returned by the service call.
629
+ * @param {String} response The complete HTTP response.
630
+ */
631
+
632
+ /**
633
+ * Get subtasks from a task
634
+ * Returns a compact representation of all of the subtasks of a task.
635
+ * @param {String} task_gid The task to operate on.
636
+ * @param {Object} opts Optional parameters
637
+ * @param {Number} opts.limit Results per page. The number of objects to return per page. The value must be between 1 and 100.
638
+ * @param {String} opts.offset Offset token. An offset to the next page returned by the API. A pagination request will return an offset token, which can be used as an input parameter to the next request. If an offset is not passed in, the API will return the first page of results. &#x27;Note: You can only pass in an offset that was returned to you via a previously paginated request.&#x27;
639
+ * @param {Array.<module:model/String>} opts.opt_fields This endpoint returns a compact resource, which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include.
640
+ * @param {module:api/TasksApi~getSubtasksForTaskCallback} callback The callback function, accepting three arguments: error, data, response
641
+ * data is of type: {@link <&vendorExtensions.x-jsdoc-type>}
642
+ */
643
+ getSubtasksForTask(task_gid, opts, callback) {
644
+ opts = opts || {};
645
+ let postBody = null;
646
+ // verify the required parameter 'task_gid' is set
647
+ if (task_gid === undefined || task_gid === null) {
648
+ throw new Error("Missing the required parameter 'task_gid' when calling getSubtasksForTask");
649
+ }
650
+
651
+ let pathParams = {
652
+ 'task_gid': task_gid
653
+ };
654
+ let queryParams = {
655
+ 'limit': opts['limit'],'offset': opts['offset'],'opt_fields': this.apiClient.buildCollectionParam(opts['opt_fields'], 'csv')
656
+ };
657
+ let headerParams = {
658
+
659
+ };
660
+ let formParams = {
661
+
662
+ };
663
+
664
+ let authNames = ['oauth2'];
665
+ let contentTypes = [];
666
+ let accepts = ['application/json; charset=UTF-8'];
667
+ let returnType = TaskResponseArray;
668
+
669
+ return this.apiClient.callApi(
670
+ '/tasks/{task_gid}/subtasks', 'GET',
671
+ pathParams, queryParams, headerParams, formParams, postBody,
672
+ authNames, contentTypes, accepts, returnType, callback
673
+ );
674
+ }
675
+ /**
676
+ * Callback function to receive the result of the getTask operation.
677
+ * @callback moduleapi/TasksApi~getTaskCallback
678
+ * @param {String} error Error message, if any.
679
+ * @param {module:model/TaskResponseData{ data The data returned by the service call.
680
+ * @param {String} response The complete HTTP response.
681
+ */
682
+
683
+ /**
684
+ * Get a task
685
+ * Returns the complete task record for a single task.
686
+ * @param {String} task_gid The task to operate on.
687
+ * @param {Object} opts Optional parameters
688
+ * @param {Array.<module:model/String>} opts.opt_fields This endpoint returns a compact resource, which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include.
689
+ * @param {module:api/TasksApi~getTaskCallback} callback The callback function, accepting three arguments: error, data, response
690
+ * data is of type: {@link <&vendorExtensions.x-jsdoc-type>}
691
+ */
692
+ getTask(task_gid, opts, callback) {
693
+ opts = opts || {};
694
+ let postBody = null;
695
+ // verify the required parameter 'task_gid' is set
696
+ if (task_gid === undefined || task_gid === null) {
697
+ throw new Error("Missing the required parameter 'task_gid' when calling getTask");
698
+ }
699
+
700
+ let pathParams = {
701
+ 'task_gid': task_gid
702
+ };
703
+ let queryParams = {
704
+ 'opt_fields': this.apiClient.buildCollectionParam(opts['opt_fields'], 'csv')
705
+ };
706
+ let headerParams = {
707
+
708
+ };
709
+ let formParams = {
710
+
711
+ };
712
+
713
+ let authNames = ['oauth2'];
714
+ let contentTypes = [];
715
+ let accepts = ['application/json; charset=UTF-8'];
716
+ let returnType = TaskResponseData;
717
+
718
+ return this.apiClient.callApi(
719
+ '/tasks/{task_gid}', 'GET',
720
+ pathParams, queryParams, headerParams, formParams, postBody,
721
+ authNames, contentTypes, accepts, returnType, callback
722
+ );
723
+ }
724
+ /**
725
+ * Callback function to receive the result of the getTasks operation.
726
+ * @callback moduleapi/TasksApi~getTasksCallback
727
+ * @param {String} error Error message, if any.
728
+ * @param {module:model/TaskResponseArray{ data The data returned by the service call.
729
+ * @param {String} response The complete HTTP response.
730
+ */
731
+
732
+ /**
733
+ * Get multiple tasks
734
+ * Returns the compact task records for some filtered set of tasks. Use one or more of the parameters provided to filter the tasks returned. You must specify a &#x60;project&#x60; or &#x60;tag&#x60; if you do not specify &#x60;assignee&#x60; and &#x60;workspace&#x60;. For more complex task retrieval, use [workspaces/{workspace_gid}/tasks/search](/reference/searchtasksforworkspace).
735
+ * @param {Object} opts Optional parameters
736
+ * @param {Number} opts.limit Results per page. The number of objects to return per page. The value must be between 1 and 100.
737
+ * @param {String} opts.offset Offset token. An offset to the next page returned by the API. A pagination request will return an offset token, which can be used as an input parameter to the next request. If an offset is not passed in, the API will return the first page of results. &#x27;Note: You can only pass in an offset that was returned to you via a previously paginated request.&#x27;
738
+ * @param {String} opts.assignee The assignee to filter tasks on. If searching for unassigned tasks, assignee.any &#x3D; null can be specified. *Note: If you specify &#x60;assignee&#x60;, you must also specify the &#x60;workspace&#x60; to filter on.*
739
+ * @param {String} opts.project The project to filter tasks on.
740
+ * @param {String} opts.section The section to filter tasks on.
741
+ * @param {String} opts.workspace The workspace to filter tasks on. *Note: If you specify &#x60;workspace&#x60;, you must also specify the &#x60;assignee&#x60; to filter on.*
742
+ * @param {Date} opts.completed_since Only return tasks that are either incomplete or that have been completed since this time.
743
+ * @param {Date} opts.modified_since Only return tasks that have been modified since the given time. *Note: A task is considered “modified” if any of its properties change, or associations between it and other objects are modified (e.g. a task being added to a project). A task is not considered modified just because another object it is associated with (e.g. a subtask) is modified. Actions that count as modifying the task include assigning, renaming, completing, and adding stories.*
744
+ * @param {Array.<module:model/String>} opts.opt_fields This endpoint returns a compact resource, which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include.
745
+ * @param {module:api/TasksApi~getTasksCallback} callback The callback function, accepting three arguments: error, data, response
746
+ * data is of type: {@link <&vendorExtensions.x-jsdoc-type>}
747
+ */
748
+ getTasks(opts, callback) {
749
+ opts = opts || {};
750
+ let postBody = null;
751
+
752
+ let pathParams = {
753
+
754
+ };
755
+ let queryParams = {
756
+ 'limit': opts['limit'],'offset': opts['offset'],'assignee': opts['assignee'],'project': opts['project'],'section': opts['section'],'workspace': opts['workspace'],'completed_since': opts['completed_since'],'modified_since': opts['modified_since'],'opt_fields': this.apiClient.buildCollectionParam(opts['opt_fields'], 'csv')
757
+ };
758
+ let headerParams = {
759
+
760
+ };
761
+ let formParams = {
762
+
763
+ };
764
+
765
+ let authNames = ['oauth2'];
766
+ let contentTypes = [];
767
+ let accepts = ['application/json; charset=UTF-8'];
768
+ let returnType = TaskResponseArray;
769
+
770
+ return this.apiClient.callApi(
771
+ '/tasks', 'GET',
772
+ pathParams, queryParams, headerParams, formParams, postBody,
773
+ authNames, contentTypes, accepts, returnType, callback
774
+ );
775
+ }
776
+ /**
777
+ * Callback function to receive the result of the getTasksForProject operation.
778
+ * @callback moduleapi/TasksApi~getTasksForProjectCallback
779
+ * @param {String} error Error message, if any.
780
+ * @param {module:model/TaskResponseArray{ data The data returned by the service call.
781
+ * @param {String} response The complete HTTP response.
782
+ */
783
+
784
+ /**
785
+ * Get tasks from a project
786
+ * Returns the compact task records for all tasks within the given project, ordered by their priority within the project. Tasks can exist in more than one project at a time.
787
+ * @param {String} project_gid Globally unique identifier for the project.
788
+ * @param {Object} opts Optional parameters
789
+ * @param {String} opts.completed_since Only return tasks that are either incomplete or that have been completed since this time. Accepts a date-time string or the keyword *now*.
790
+ * @param {Number} opts.limit Results per page. The number of objects to return per page. The value must be between 1 and 100.
791
+ * @param {String} opts.offset Offset token. An offset to the next page returned by the API. A pagination request will return an offset token, which can be used as an input parameter to the next request. If an offset is not passed in, the API will return the first page of results. &#x27;Note: You can only pass in an offset that was returned to you via a previously paginated request.&#x27;
792
+ * @param {Array.<module:model/String>} opts.opt_fields This endpoint returns a compact resource, which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include.
793
+ * @param {module:api/TasksApi~getTasksForProjectCallback} callback The callback function, accepting three arguments: error, data, response
794
+ * data is of type: {@link <&vendorExtensions.x-jsdoc-type>}
795
+ */
796
+ getTasksForProject(project_gid, opts, callback) {
797
+ opts = opts || {};
798
+ let postBody = null;
799
+ // verify the required parameter 'project_gid' is set
800
+ if (project_gid === undefined || project_gid === null) {
801
+ throw new Error("Missing the required parameter 'project_gid' when calling getTasksForProject");
802
+ }
803
+
804
+ let pathParams = {
805
+ 'project_gid': project_gid
806
+ };
807
+ let queryParams = {
808
+ 'completed_since': opts['completed_since'],'limit': opts['limit'],'offset': opts['offset'],'opt_fields': this.apiClient.buildCollectionParam(opts['opt_fields'], 'csv')
809
+ };
810
+ let headerParams = {
811
+
812
+ };
813
+ let formParams = {
814
+
815
+ };
816
+
817
+ let authNames = ['oauth2'];
818
+ let contentTypes = [];
819
+ let accepts = ['application/json; charset=UTF-8'];
820
+ let returnType = TaskResponseArray;
821
+
822
+ return this.apiClient.callApi(
823
+ '/projects/{project_gid}/tasks', 'GET',
824
+ pathParams, queryParams, headerParams, formParams, postBody,
825
+ authNames, contentTypes, accepts, returnType, callback
826
+ );
827
+ }
828
+ /**
829
+ * Callback function to receive the result of the getTasksForSection operation.
830
+ * @callback moduleapi/TasksApi~getTasksForSectionCallback
831
+ * @param {String} error Error message, if any.
832
+ * @param {module:model/TaskResponseArray{ data The data returned by the service call.
833
+ * @param {String} response The complete HTTP response.
834
+ */
835
+
836
+ /**
837
+ * Get tasks from a section
838
+ * *Board view only*: Returns the compact section records for all tasks within the given section.
839
+ * @param {String} section_gid The globally unique identifier for the section.
840
+ * @param {Object} opts Optional parameters
841
+ * @param {Number} opts.limit Results per page. The number of objects to return per page. The value must be between 1 and 100.
842
+ * @param {String} opts.offset Offset token. An offset to the next page returned by the API. A pagination request will return an offset token, which can be used as an input parameter to the next request. If an offset is not passed in, the API will return the first page of results. &#x27;Note: You can only pass in an offset that was returned to you via a previously paginated request.&#x27;
843
+ * @param {Array.<module:model/String>} opts.opt_fields This endpoint returns a compact resource, which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include.
844
+ * @param {module:api/TasksApi~getTasksForSectionCallback} callback The callback function, accepting three arguments: error, data, response
845
+ * data is of type: {@link <&vendorExtensions.x-jsdoc-type>}
846
+ */
847
+ getTasksForSection(section_gid, opts, callback) {
848
+ opts = opts || {};
849
+ let postBody = null;
850
+ // verify the required parameter 'section_gid' is set
851
+ if (section_gid === undefined || section_gid === null) {
852
+ throw new Error("Missing the required parameter 'section_gid' when calling getTasksForSection");
853
+ }
854
+
855
+ let pathParams = {
856
+ 'section_gid': section_gid
857
+ };
858
+ let queryParams = {
859
+ 'limit': opts['limit'],'offset': opts['offset'],'opt_fields': this.apiClient.buildCollectionParam(opts['opt_fields'], 'csv')
860
+ };
861
+ let headerParams = {
862
+
863
+ };
864
+ let formParams = {
865
+
866
+ };
867
+
868
+ let authNames = ['oauth2'];
869
+ let contentTypes = [];
870
+ let accepts = ['application/json; charset=UTF-8'];
871
+ let returnType = TaskResponseArray;
872
+
873
+ return this.apiClient.callApi(
874
+ '/sections/{section_gid}/tasks', 'GET',
875
+ pathParams, queryParams, headerParams, formParams, postBody,
876
+ authNames, contentTypes, accepts, returnType, callback
877
+ );
878
+ }
879
+ /**
880
+ * Callback function to receive the result of the getTasksForTag operation.
881
+ * @callback moduleapi/TasksApi~getTasksForTagCallback
882
+ * @param {String} error Error message, if any.
883
+ * @param {module:model/TaskResponseArray{ data The data returned by the service call.
884
+ * @param {String} response The complete HTTP response.
885
+ */
886
+
887
+ /**
888
+ * Get tasks from a tag
889
+ * Returns the compact task records for all tasks with the given tag. Tasks can have more than one tag at a time.
890
+ * @param {String} tag_gid Globally unique identifier for the tag.
891
+ * @param {Object} opts Optional parameters
892
+ * @param {Number} opts.limit Results per page. The number of objects to return per page. The value must be between 1 and 100.
893
+ * @param {String} opts.offset Offset token. An offset to the next page returned by the API. A pagination request will return an offset token, which can be used as an input parameter to the next request. If an offset is not passed in, the API will return the first page of results. &#x27;Note: You can only pass in an offset that was returned to you via a previously paginated request.&#x27;
894
+ * @param {Array.<module:model/String>} opts.opt_fields This endpoint returns a compact resource, which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include.
895
+ * @param {module:api/TasksApi~getTasksForTagCallback} callback The callback function, accepting three arguments: error, data, response
896
+ * data is of type: {@link <&vendorExtensions.x-jsdoc-type>}
897
+ */
898
+ getTasksForTag(tag_gid, opts, callback) {
899
+ opts = opts || {};
900
+ let postBody = null;
901
+ // verify the required parameter 'tag_gid' is set
902
+ if (tag_gid === undefined || tag_gid === null) {
903
+ throw new Error("Missing the required parameter 'tag_gid' when calling getTasksForTag");
904
+ }
905
+
906
+ let pathParams = {
907
+ 'tag_gid': tag_gid
908
+ };
909
+ let queryParams = {
910
+ 'limit': opts['limit'],'offset': opts['offset'],'opt_fields': this.apiClient.buildCollectionParam(opts['opt_fields'], 'csv')
911
+ };
912
+ let headerParams = {
913
+
914
+ };
915
+ let formParams = {
916
+
917
+ };
918
+
919
+ let authNames = ['oauth2'];
920
+ let contentTypes = [];
921
+ let accepts = ['application/json; charset=UTF-8'];
922
+ let returnType = TaskResponseArray;
923
+
924
+ return this.apiClient.callApi(
925
+ '/tags/{tag_gid}/tasks', 'GET',
926
+ pathParams, queryParams, headerParams, formParams, postBody,
927
+ authNames, contentTypes, accepts, returnType, callback
928
+ );
929
+ }
930
+ /**
931
+ * Callback function to receive the result of the getTasksForUserTaskList operation.
932
+ * @callback moduleapi/TasksApi~getTasksForUserTaskListCallback
933
+ * @param {String} error Error message, if any.
934
+ * @param {module:model/TaskResponseArray{ data The data returned by the service call.
935
+ * @param {String} response The complete HTTP response.
936
+ */
937
+
938
+ /**
939
+ * Get tasks from a user task list
940
+ * Returns the compact list of tasks in a user’s My Tasks list. *Note: Access control is enforced for this endpoint as with all Asana API endpoints, meaning a user’s private tasks will be filtered out if the API-authenticated user does not have access to them.* *Note: Both complete and incomplete tasks are returned by default unless they are filtered out (for example, setting &#x60;completed_since&#x3D;now&#x60; will return only incomplete tasks, which is the default view for “My Tasks” in Asana.)*
941
+ * @param {String} user_task_list_gid Globally unique identifier for the user task list.
942
+ * @param {Object} opts Optional parameters
943
+ * @param {String} opts.completed_since Only return tasks that are either incomplete or that have been completed since this time. Accepts a date-time string or the keyword *now*.
944
+ * @param {Number} opts.limit Results per page. The number of objects to return per page. The value must be between 1 and 100.
945
+ * @param {String} opts.offset Offset token. An offset to the next page returned by the API. A pagination request will return an offset token, which can be used as an input parameter to the next request. If an offset is not passed in, the API will return the first page of results. &#x27;Note: You can only pass in an offset that was returned to you via a previously paginated request.&#x27;
946
+ * @param {Array.<module:model/String>} opts.opt_fields This endpoint returns a compact resource, which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include.
947
+ * @param {module:api/TasksApi~getTasksForUserTaskListCallback} callback The callback function, accepting three arguments: error, data, response
948
+ * data is of type: {@link <&vendorExtensions.x-jsdoc-type>}
949
+ */
950
+ getTasksForUserTaskList(user_task_list_gid, opts, callback) {
951
+ opts = opts || {};
952
+ let postBody = null;
953
+ // verify the required parameter 'user_task_list_gid' is set
954
+ if (user_task_list_gid === undefined || user_task_list_gid === null) {
955
+ throw new Error("Missing the required parameter 'user_task_list_gid' when calling getTasksForUserTaskList");
956
+ }
957
+
958
+ let pathParams = {
959
+ 'user_task_list_gid': user_task_list_gid
960
+ };
961
+ let queryParams = {
962
+ 'completed_since': opts['completed_since'],'limit': opts['limit'],'offset': opts['offset'],'opt_fields': this.apiClient.buildCollectionParam(opts['opt_fields'], 'csv')
963
+ };
964
+ let headerParams = {
965
+
966
+ };
967
+ let formParams = {
968
+
969
+ };
970
+
971
+ let authNames = ['oauth2'];
972
+ let contentTypes = [];
973
+ let accepts = ['application/json; charset=UTF-8'];
974
+ let returnType = TaskResponseArray;
975
+
976
+ return this.apiClient.callApi(
977
+ '/user_task_lists/{user_task_list_gid}/tasks', 'GET',
978
+ pathParams, queryParams, headerParams, formParams, postBody,
979
+ authNames, contentTypes, accepts, returnType, callback
980
+ );
981
+ }
982
+ /**
983
+ * Callback function to receive the result of the removeDependenciesForTask operation.
984
+ * @callback moduleapi/TasksApi~removeDependenciesForTaskCallback
985
+ * @param {String} error Error message, if any.
986
+ * @param {module:model/EmptyResponseData{ data The data returned by the service call.
987
+ * @param {String} response The complete HTTP response.
988
+ */
989
+
990
+ /**
991
+ * Unlink dependencies from a task
992
+ * Unlinks a set of dependencies from this task.
993
+ * @param {module:model/TaskGidRemoveDependenciesBody} body The list of tasks to unlink as dependencies.
994
+ * @param {String} task_gid The task to operate on.
995
+ * @param {module:api/TasksApi~removeDependenciesForTaskCallback} callback The callback function, accepting three arguments: error, data, response
996
+ * data is of type: {@link <&vendorExtensions.x-jsdoc-type>}
997
+ */
998
+ removeDependenciesForTask(body, task_gid, callback) {
999
+
1000
+ let postBody = body;
1001
+ // verify the required parameter 'body' is set
1002
+ if (body === undefined || body === null) {
1003
+ throw new Error("Missing the required parameter 'body' when calling removeDependenciesForTask");
1004
+ }
1005
+ // verify the required parameter 'task_gid' is set
1006
+ if (task_gid === undefined || task_gid === null) {
1007
+ throw new Error("Missing the required parameter 'task_gid' when calling removeDependenciesForTask");
1008
+ }
1009
+
1010
+ let pathParams = {
1011
+ 'task_gid': task_gid
1012
+ };
1013
+ let queryParams = {
1014
+
1015
+ };
1016
+ let headerParams = {
1017
+
1018
+ };
1019
+ let formParams = {
1020
+
1021
+ };
1022
+
1023
+ let authNames = ['oauth2'];
1024
+ let contentTypes = ['application/json; charset=UTF-8'];
1025
+ let accepts = ['application/json; charset=UTF-8'];
1026
+ let returnType = EmptyResponseData;
1027
+
1028
+ return this.apiClient.callApi(
1029
+ '/tasks/{task_gid}/removeDependencies', 'POST',
1030
+ pathParams, queryParams, headerParams, formParams, postBody,
1031
+ authNames, contentTypes, accepts, returnType, callback
1032
+ );
1033
+ }
1034
+ /**
1035
+ * Callback function to receive the result of the removeDependentsForTask operation.
1036
+ * @callback moduleapi/TasksApi~removeDependentsForTaskCallback
1037
+ * @param {String} error Error message, if any.
1038
+ * @param {module:model/EmptyResponseData{ data The data returned by the service call.
1039
+ * @param {String} response The complete HTTP response.
1040
+ */
1041
+
1042
+ /**
1043
+ * Unlink dependents from a task
1044
+ * Unlinks a set of dependents from this task.
1045
+ * @param {module:model/TaskGidRemoveDependentsBody} body The list of tasks to remove as dependents.
1046
+ * @param {String} task_gid The task to operate on.
1047
+ * @param {module:api/TasksApi~removeDependentsForTaskCallback} callback The callback function, accepting three arguments: error, data, response
1048
+ * data is of type: {@link <&vendorExtensions.x-jsdoc-type>}
1049
+ */
1050
+ removeDependentsForTask(body, task_gid, callback) {
1051
+
1052
+ let postBody = body;
1053
+ // verify the required parameter 'body' is set
1054
+ if (body === undefined || body === null) {
1055
+ throw new Error("Missing the required parameter 'body' when calling removeDependentsForTask");
1056
+ }
1057
+ // verify the required parameter 'task_gid' is set
1058
+ if (task_gid === undefined || task_gid === null) {
1059
+ throw new Error("Missing the required parameter 'task_gid' when calling removeDependentsForTask");
1060
+ }
1061
+
1062
+ let pathParams = {
1063
+ 'task_gid': task_gid
1064
+ };
1065
+ let queryParams = {
1066
+
1067
+ };
1068
+ let headerParams = {
1069
+
1070
+ };
1071
+ let formParams = {
1072
+
1073
+ };
1074
+
1075
+ let authNames = ['oauth2'];
1076
+ let contentTypes = ['application/json; charset=UTF-8'];
1077
+ let accepts = ['application/json; charset=UTF-8'];
1078
+ let returnType = EmptyResponseData;
1079
+
1080
+ return this.apiClient.callApi(
1081
+ '/tasks/{task_gid}/removeDependents', 'POST',
1082
+ pathParams, queryParams, headerParams, formParams, postBody,
1083
+ authNames, contentTypes, accepts, returnType, callback
1084
+ );
1085
+ }
1086
+ /**
1087
+ * Callback function to receive the result of the removeFollowerForTask operation.
1088
+ * @callback moduleapi/TasksApi~removeFollowerForTaskCallback
1089
+ * @param {String} error Error message, if any.
1090
+ * @param {module:model/TaskResponseData{ data The data returned by the service call.
1091
+ * @param {String} response The complete HTTP response.
1092
+ */
1093
+
1094
+ /**
1095
+ * Remove followers from a task
1096
+ * Removes each of the specified followers from the task if they are following. Returns the complete, updated record for the affected task.
1097
+ * @param {module:model/TaskGidRemoveFollowersBody} body The followers to remove from the task.
1098
+ * @param {String} task_gid The task to operate on.
1099
+ * @param {Object} opts Optional parameters
1100
+ * @param {Array.<module:model/String>} opts.opt_fields This endpoint returns a compact resource, which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include.
1101
+ * @param {module:api/TasksApi~removeFollowerForTaskCallback} callback The callback function, accepting three arguments: error, data, response
1102
+ * data is of type: {@link <&vendorExtensions.x-jsdoc-type>}
1103
+ */
1104
+ removeFollowerForTask(body, task_gid, opts, callback) {
1105
+ opts = opts || {};
1106
+ let postBody = body;
1107
+ // verify the required parameter 'body' is set
1108
+ if (body === undefined || body === null) {
1109
+ throw new Error("Missing the required parameter 'body' when calling removeFollowerForTask");
1110
+ }
1111
+ // verify the required parameter 'task_gid' is set
1112
+ if (task_gid === undefined || task_gid === null) {
1113
+ throw new Error("Missing the required parameter 'task_gid' when calling removeFollowerForTask");
1114
+ }
1115
+
1116
+ let pathParams = {
1117
+ 'task_gid': task_gid
1118
+ };
1119
+ let queryParams = {
1120
+ 'opt_fields': this.apiClient.buildCollectionParam(opts['opt_fields'], 'csv')
1121
+ };
1122
+ let headerParams = {
1123
+
1124
+ };
1125
+ let formParams = {
1126
+
1127
+ };
1128
+
1129
+ let authNames = ['oauth2'];
1130
+ let contentTypes = ['application/json; charset=UTF-8'];
1131
+ let accepts = ['application/json; charset=UTF-8'];
1132
+ let returnType = TaskResponseData;
1133
+
1134
+ return this.apiClient.callApi(
1135
+ '/tasks/{task_gid}/removeFollowers', 'POST',
1136
+ pathParams, queryParams, headerParams, formParams, postBody,
1137
+ authNames, contentTypes, accepts, returnType, callback
1138
+ );
1139
+ }
1140
+ /**
1141
+ * Callback function to receive the result of the removeProjectForTask operation.
1142
+ * @callback moduleapi/TasksApi~removeProjectForTaskCallback
1143
+ * @param {String} error Error message, if any.
1144
+ * @param {module:model/EmptyResponseData{ data The data returned by the service call.
1145
+ * @param {String} response The complete HTTP response.
1146
+ */
1147
+
1148
+ /**
1149
+ * Remove a project from a task
1150
+ * Removes the task from the specified project. The task will still exist in the system, but it will not be in the project anymore. Returns an empty data block.
1151
+ * @param {module:model/TaskGidRemoveProjectBody} body The project to remove the task from.
1152
+ * @param {String} task_gid The task to operate on.
1153
+ * @param {module:api/TasksApi~removeProjectForTaskCallback} callback The callback function, accepting three arguments: error, data, response
1154
+ * data is of type: {@link <&vendorExtensions.x-jsdoc-type>}
1155
+ */
1156
+ removeProjectForTask(body, task_gid, callback) {
1157
+
1158
+ let postBody = body;
1159
+ // verify the required parameter 'body' is set
1160
+ if (body === undefined || body === null) {
1161
+ throw new Error("Missing the required parameter 'body' when calling removeProjectForTask");
1162
+ }
1163
+ // verify the required parameter 'task_gid' is set
1164
+ if (task_gid === undefined || task_gid === null) {
1165
+ throw new Error("Missing the required parameter 'task_gid' when calling removeProjectForTask");
1166
+ }
1167
+
1168
+ let pathParams = {
1169
+ 'task_gid': task_gid
1170
+ };
1171
+ let queryParams = {
1172
+
1173
+ };
1174
+ let headerParams = {
1175
+
1176
+ };
1177
+ let formParams = {
1178
+
1179
+ };
1180
+
1181
+ let authNames = ['oauth2'];
1182
+ let contentTypes = ['application/json; charset=UTF-8'];
1183
+ let accepts = ['application/json; charset=UTF-8'];
1184
+ let returnType = EmptyResponseData;
1185
+
1186
+ return this.apiClient.callApi(
1187
+ '/tasks/{task_gid}/removeProject', 'POST',
1188
+ pathParams, queryParams, headerParams, formParams, postBody,
1189
+ authNames, contentTypes, accepts, returnType, callback
1190
+ );
1191
+ }
1192
+ /**
1193
+ * Callback function to receive the result of the removeTagForTask operation.
1194
+ * @callback moduleapi/TasksApi~removeTagForTaskCallback
1195
+ * @param {String} error Error message, if any.
1196
+ * @param {module:model/EmptyResponseData{ data The data returned by the service call.
1197
+ * @param {String} response The complete HTTP response.
1198
+ */
1199
+
1200
+ /**
1201
+ * Remove a tag from a task
1202
+ * Removes a tag from a task. Returns an empty data block.
1203
+ * @param {module:model/TaskGidRemoveTagBody} body The tag to remove from the task.
1204
+ * @param {String} task_gid The task to operate on.
1205
+ * @param {module:api/TasksApi~removeTagForTaskCallback} callback The callback function, accepting three arguments: error, data, response
1206
+ * data is of type: {@link <&vendorExtensions.x-jsdoc-type>}
1207
+ */
1208
+ removeTagForTask(body, task_gid, callback) {
1209
+
1210
+ let postBody = body;
1211
+ // verify the required parameter 'body' is set
1212
+ if (body === undefined || body === null) {
1213
+ throw new Error("Missing the required parameter 'body' when calling removeTagForTask");
1214
+ }
1215
+ // verify the required parameter 'task_gid' is set
1216
+ if (task_gid === undefined || task_gid === null) {
1217
+ throw new Error("Missing the required parameter 'task_gid' when calling removeTagForTask");
1218
+ }
1219
+
1220
+ let pathParams = {
1221
+ 'task_gid': task_gid
1222
+ };
1223
+ let queryParams = {
1224
+
1225
+ };
1226
+ let headerParams = {
1227
+
1228
+ };
1229
+ let formParams = {
1230
+
1231
+ };
1232
+
1233
+ let authNames = ['oauth2'];
1234
+ let contentTypes = ['application/json; charset=UTF-8'];
1235
+ let accepts = ['application/json; charset=UTF-8'];
1236
+ let returnType = EmptyResponseData;
1237
+
1238
+ return this.apiClient.callApi(
1239
+ '/tasks/{task_gid}/removeTag', 'POST',
1240
+ pathParams, queryParams, headerParams, formParams, postBody,
1241
+ authNames, contentTypes, accepts, returnType, callback
1242
+ );
1243
+ }
1244
+ /**
1245
+ * Callback function to receive the result of the searchTasksForWorkspace operation.
1246
+ * @callback moduleapi/TasksApi~searchTasksForWorkspaceCallback
1247
+ * @param {String} error Error message, if any.
1248
+ * @param {module:model/TaskResponseArray{ data The data returned by the service call.
1249
+ * @param {String} response The complete HTTP response.
1250
+ */
1251
+
1252
+ /**
1253
+ * Search tasks in a workspace
1254
+ * To mirror the functionality of the Asana web app&#x27;s advanced search feature, the Asana API has a task search endpoint that allows you to build complex filters to find and retrieve the exact data you need. #### Premium access Like the Asana web product&#x27;s advance search feature, this search endpoint will only be available to premium Asana users. A user is premium if any of the following is true: - The workspace in which the search is being performed is a premium workspace - The user is a member of a premium team inside the workspace Even if a user is only a member of a premium team inside a non-premium workspace, search will allow them to find data anywhere in the workspace, not just inside the premium team. Making a search request using credentials of a non-premium user will result in a &#x60;402 Payment Required&#x60; error. #### Pagination Search results are not stable; repeating the same query multiple times may return the data in a different order, even if the data do not change. Because of this, the traditional [pagination](https://developers.asana.com/docs/#pagination) available elsewhere in the Asana API is not available here. However, you can paginate manually by sorting the search results by their creation time and then modifying each subsequent query to exclude data you have already seen. Page sizes are limited to a maximum of 100 items, and can be specified by the &#x60;limit&#x60; query parameter. #### Eventual consistency Changes in Asana (regardless of whether they’re made though the web product or the API) are forwarded to our search infrastructure to be indexed. This process can take between 10 and 60 seconds to complete under normal operation, and longer during some production incidents. Making a change to a task that would alter its presence in a particular search query will not be reflected immediately. This is also true of the advanced search feature in the web product. #### Rate limits You may receive a &#x60;429 Too Many Requests&#x60; response if you hit any of our [rate limits](https://developers.asana.com/docs/#rate-limits). #### Custom field parameters | Parameter name | Custom field type | Accepted type | |---|---|---| | custom_fields.{gid}.is_set | All | Boolean | | custom_fields.{gid}.value | Text | String | | custom_fields.{gid}.value | Number | Number | | custom_fields.{gid}.value | Enum | Enum option ID | | custom_fields.{gid}.starts_with | Text only | String | | custom_fields.{gid}.ends_with | Text only | String | | custom_fields.{gid}.contains | Text only | String | | custom_fields.{gid}.less_than | Number only | Number | | custom_fields.{gid}.greater_than | Number only | Number | For example, if the gid of the custom field is 12345, these query parameter to find tasks where it is set would be &#x60;custom_fields.12345.is_set&#x3D;true&#x60;. To match an exact value for an enum custom field, use the gid of the desired enum option and not the name of the enum option: &#x60;custom_fields.12345.value&#x3D;67890&#x60;. **Not Supported**: searching for multiple exact matches of a custom field, searching for multi-enum custom field *Note: If you specify &#x60;projects.any&#x60; and &#x60;sections.any&#x60;, you will receive tasks for the project **and** tasks for the section. If you&#x27;re looking for only tasks in a section, omit the &#x60;projects.any&#x60; from the request.*
1255
+ * @param {String} workspace_gid Globally unique identifier for the workspace or organization.
1256
+ * @param {Object} opts Optional parameters
1257
+ * @param {String} opts.text Performs full-text search on both task name and description
1258
+ * @param {module:model/String} opts.resource_subtype Filters results by the task&#x27;s resource_subtype (default to <.>)
1259
+ * @param {String} opts.assignee_any Comma-separated list of user identifiers
1260
+ * @param {String} opts.assignee_not Comma-separated list of user identifiers
1261
+ * @param {String} opts.portfolios_any Comma-separated list of portfolio IDs
1262
+ * @param {String} opts.projects_any Comma-separated list of project IDs
1263
+ * @param {String} opts.projects_not Comma-separated list of project IDs
1264
+ * @param {String} opts.projects_all Comma-separated list of project IDs
1265
+ * @param {String} opts.sections_any Comma-separated list of section or column IDs
1266
+ * @param {String} opts.sections_not Comma-separated list of section or column IDs
1267
+ * @param {String} opts.sections_all Comma-separated list of section or column IDs
1268
+ * @param {String} opts.tags_any Comma-separated list of tag IDs
1269
+ * @param {String} opts.tags_not Comma-separated list of tag IDs
1270
+ * @param {String} opts.tags_all Comma-separated list of tag IDs
1271
+ * @param {String} opts.teams_any Comma-separated list of team IDs
1272
+ * @param {String} opts.followers_not Comma-separated list of user identifiers
1273
+ * @param {String} opts.created_by_any Comma-separated list of user identifiers
1274
+ * @param {String} opts.created_by_not Comma-separated list of user identifiers
1275
+ * @param {String} opts.assigned_by_any Comma-separated list of user identifiers
1276
+ * @param {String} opts.assigned_by_not Comma-separated list of user identifiers
1277
+ * @param {String} opts.liked_by_not Comma-separated list of user identifiers
1278
+ * @param {String} opts.commented_on_by_not Comma-separated list of user identifiers
1279
+ * @param {Date} opts.due_on_before ISO 8601 date string
1280
+ * @param {Date} opts.due_on_after ISO 8601 date string
1281
+ * @param {Date} opts.due_on ISO 8601 date string or &#x60;null&#x60;
1282
+ * @param {Date} opts.due_at_before ISO 8601 datetime string
1283
+ * @param {Date} opts.due_at_after ISO 8601 datetime string
1284
+ * @param {Date} opts.start_on_before ISO 8601 date string
1285
+ * @param {Date} opts.start_on_after ISO 8601 date string
1286
+ * @param {Date} opts.start_on ISO 8601 date string or &#x60;null&#x60;
1287
+ * @param {Date} opts.created_on_before ISO 8601 date string
1288
+ * @param {Date} opts.created_on_after ISO 8601 date string
1289
+ * @param {Date} opts.created_on ISO 8601 date string or &#x60;null&#x60;
1290
+ * @param {Date} opts.created_at_before ISO 8601 datetime string
1291
+ * @param {Date} opts.created_at_after ISO 8601 datetime string
1292
+ * @param {Date} opts.completed_on_before ISO 8601 date string
1293
+ * @param {Date} opts.completed_on_after ISO 8601 date string
1294
+ * @param {Date} opts.completed_on ISO 8601 date string or &#x60;null&#x60;
1295
+ * @param {Date} opts.completed_at_before ISO 8601 datetime string
1296
+ * @param {Date} opts.completed_at_after ISO 8601 datetime string
1297
+ * @param {Date} opts.modified_on_before ISO 8601 date string
1298
+ * @param {Date} opts.modified_on_after ISO 8601 date string
1299
+ * @param {Date} opts.modified_on ISO 8601 date string or &#x60;null&#x60;
1300
+ * @param {Date} opts.modified_at_before ISO 8601 datetime string
1301
+ * @param {Date} opts.modified_at_after ISO 8601 datetime string
1302
+ * @param {Boolean} opts.is_blocking Filter to incomplete tasks with dependents
1303
+ * @param {Boolean} opts.is_blocked Filter to tasks with incomplete dependencies
1304
+ * @param {Boolean} opts.has_attachment Filter to tasks with attachments
1305
+ * @param {Boolean} opts.completed Filter to completed tasks
1306
+ * @param {Boolean} opts.is_subtask Filter to subtasks
1307
+ * @param {module:model/String} opts.sort_by One of &#x60;due_date&#x60;, &#x60;created_at&#x60;, &#x60;completed_at&#x60;, &#x60;likes&#x60;, or &#x60;modified_at&#x60;, defaults to &#x60;modified_at&#x60; (default to <.>)
1308
+ * @param {Boolean} opts.sort_ascending Default &#x60;false&#x60; (default to <.>)
1309
+ * @param {Array.<module:model/String>} opts.opt_fields This endpoint returns a compact resource, which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include.
1310
+ * @param {module:api/TasksApi~searchTasksForWorkspaceCallback} callback The callback function, accepting three arguments: error, data, response
1311
+ * data is of type: {@link <&vendorExtensions.x-jsdoc-type>}
1312
+ */
1313
+ searchTasksForWorkspace(workspace_gid, opts, callback) {
1314
+ opts = opts || {};
1315
+ let postBody = null;
1316
+ // verify the required parameter 'workspace_gid' is set
1317
+ if (workspace_gid === undefined || workspace_gid === null) {
1318
+ throw new Error("Missing the required parameter 'workspace_gid' when calling searchTasksForWorkspace");
1319
+ }
1320
+
1321
+ let pathParams = {
1322
+ 'workspace_gid': workspace_gid
1323
+ };
1324
+ let queryParams = {
1325
+ 'text': opts['text'],'resource_subtype': opts['resource_subtype'],'assignee.any': opts['assignee_any'],'assignee.not': opts['assignee_not'],'portfolios.any': opts['portfolios_any'],'projects.any': opts['projects_any'],'projects.not': opts['projects_not'],'projects.all': opts['projects_all'],'sections.any': opts['sections_any'],'sections.not': opts['sections_not'],'sections.all': opts['sections_all'],'tags.any': opts['tags_any'],'tags.not': opts['tags_not'],'tags.all': opts['tags_all'],'teams.any': opts['teams_any'],'followers.not': opts['followers_not'],'created_by.any': opts['created_by_any'],'created_by.not': opts['created_by_not'],'assigned_by.any': opts['assigned_by_any'],'assigned_by.not': opts['assigned_by_not'],'liked_by.not': opts['liked_by_not'],'commented_on_by.not': opts['commented_on_by_not'],'due_on.before': opts['due_on_before'],'due_on.after': opts['due_on_after'],'due_on': opts['due_on'],'due_at.before': opts['due_at_before'],'due_at.after': opts['due_at_after'],'start_on.before': opts['start_on_before'],'start_on.after': opts['start_on_after'],'start_on': opts['start_on'],'created_on.before': opts['created_on_before'],'created_on.after': opts['created_on_after'],'created_on': opts['created_on'],'created_at.before': opts['created_at_before'],'created_at.after': opts['created_at_after'],'completed_on.before': opts['completed_on_before'],'completed_on.after': opts['completed_on_after'],'completed_on': opts['completed_on'],'completed_at.before': opts['completed_at_before'],'completed_at.after': opts['completed_at_after'],'modified_on.before': opts['modified_on_before'],'modified_on.after': opts['modified_on_after'],'modified_on': opts['modified_on'],'modified_at.before': opts['modified_at_before'],'modified_at.after': opts['modified_at_after'],'is_blocking': opts['is_blocking'],'is_blocked': opts['is_blocked'],'has_attachment': opts['has_attachment'],'completed': opts['completed'],'is_subtask': opts['is_subtask'],'sort_by': opts['sort_by'],'sort_ascending': opts['sort_ascending'],'opt_fields': this.apiClient.buildCollectionParam(opts['opt_fields'], 'csv')
1326
+ };
1327
+ let headerParams = {
1328
+
1329
+ };
1330
+ let formParams = {
1331
+
1332
+ };
1333
+
1334
+ let authNames = ['oauth2'];
1335
+ let contentTypes = [];
1336
+ let accepts = ['application/json; charset=UTF-8'];
1337
+ let returnType = TaskResponseArray;
1338
+
1339
+ return this.apiClient.callApi(
1340
+ '/workspaces/{workspace_gid}/tasks/search', 'GET',
1341
+ pathParams, queryParams, headerParams, formParams, postBody,
1342
+ authNames, contentTypes, accepts, returnType, callback
1343
+ );
1344
+ }
1345
+ /**
1346
+ * Callback function to receive the result of the setParentForTask operation.
1347
+ * @callback moduleapi/TasksApi~setParentForTaskCallback
1348
+ * @param {String} error Error message, if any.
1349
+ * @param {module:model/TaskResponseData{ data The data returned by the service call.
1350
+ * @param {String} response The complete HTTP response.
1351
+ */
1352
+
1353
+ /**
1354
+ * Set the parent of a task
1355
+ * parent, or no parent task at all. Returns an empty data block. When using &#x60;insert_before&#x60; and &#x60;insert_after&#x60;, at most one of those two options can be specified, and they must already be subtasks of the parent.
1356
+ * @param {module:model/TaskGidSetParentBody} body The new parent of the subtask.
1357
+ * @param {String} task_gid The task to operate on.
1358
+ * @param {Object} opts Optional parameters
1359
+ * @param {Array.<module:model/String>} opts.opt_fields This endpoint returns a compact resource, which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include.
1360
+ * @param {module:api/TasksApi~setParentForTaskCallback} callback The callback function, accepting three arguments: error, data, response
1361
+ * data is of type: {@link <&vendorExtensions.x-jsdoc-type>}
1362
+ */
1363
+ setParentForTask(body, task_gid, opts, callback) {
1364
+ opts = opts || {};
1365
+ let postBody = body;
1366
+ // verify the required parameter 'body' is set
1367
+ if (body === undefined || body === null) {
1368
+ throw new Error("Missing the required parameter 'body' when calling setParentForTask");
1369
+ }
1370
+ // verify the required parameter 'task_gid' is set
1371
+ if (task_gid === undefined || task_gid === null) {
1372
+ throw new Error("Missing the required parameter 'task_gid' when calling setParentForTask");
1373
+ }
1374
+
1375
+ let pathParams = {
1376
+ 'task_gid': task_gid
1377
+ };
1378
+ let queryParams = {
1379
+ 'opt_fields': this.apiClient.buildCollectionParam(opts['opt_fields'], 'csv')
1380
+ };
1381
+ let headerParams = {
1382
+
1383
+ };
1384
+ let formParams = {
1385
+
1386
+ };
1387
+
1388
+ let authNames = ['oauth2'];
1389
+ let contentTypes = ['application/json; charset=UTF-8'];
1390
+ let accepts = ['application/json; charset=UTF-8'];
1391
+ let returnType = TaskResponseData;
1392
+
1393
+ return this.apiClient.callApi(
1394
+ '/tasks/{task_gid}/setParent', 'POST',
1395
+ pathParams, queryParams, headerParams, formParams, postBody,
1396
+ authNames, contentTypes, accepts, returnType, callback
1397
+ );
1398
+ }
1399
+ /**
1400
+ * Callback function to receive the result of the updateTask operation.
1401
+ * @callback moduleapi/TasksApi~updateTaskCallback
1402
+ * @param {String} error Error message, if any.
1403
+ * @param {module:model/TaskResponseData{ data The data returned by the service call.
1404
+ * @param {String} response The complete HTTP response.
1405
+ */
1406
+
1407
+ /**
1408
+ * Update a task
1409
+ * A specific, existing task can be updated by making a PUT request on the URL for that task. Only the fields provided in the &#x60;data&#x60; block will be updated; any unspecified fields will remain unchanged. When using this method, it is best to specify only those fields you wish to change, or else you may overwrite changes made by another user since you last retrieved the task. Returns the complete updated task record.
1410
+ * @param {module:model/TasksTaskGidBody} body The task to update.
1411
+ * @param {String} task_gid The task to operate on.
1412
+ * @param {Object} opts Optional parameters
1413
+ * @param {Array.<module:model/String>} opts.opt_fields This endpoint returns a compact resource, which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include.
1414
+ * @param {module:api/TasksApi~updateTaskCallback} callback The callback function, accepting three arguments: error, data, response
1415
+ * data is of type: {@link <&vendorExtensions.x-jsdoc-type>}
1416
+ */
1417
+ updateTask(body, task_gid, opts, callback) {
1418
+ opts = opts || {};
1419
+ let postBody = body;
1420
+ // verify the required parameter 'body' is set
1421
+ if (body === undefined || body === null) {
1422
+ throw new Error("Missing the required parameter 'body' when calling updateTask");
1423
+ }
1424
+ // verify the required parameter 'task_gid' is set
1425
+ if (task_gid === undefined || task_gid === null) {
1426
+ throw new Error("Missing the required parameter 'task_gid' when calling updateTask");
1427
+ }
1428
+
1429
+ let pathParams = {
1430
+ 'task_gid': task_gid
1431
+ };
1432
+ let queryParams = {
1433
+ 'opt_fields': this.apiClient.buildCollectionParam(opts['opt_fields'], 'csv')
1434
+ };
1435
+ let headerParams = {
1436
+
1437
+ };
1438
+ let formParams = {
1439
+
1440
+ };
1441
+
1442
+ let authNames = ['oauth2'];
1443
+ let contentTypes = ['application/json; charset=UTF-8'];
1444
+ let accepts = ['application/json; charset=UTF-8'];
1445
+ let returnType = TaskResponseData;
1446
+
1447
+ return this.apiClient.callApi(
1448
+ '/tasks/{task_gid}', 'PUT',
1449
+ pathParams, queryParams, headerParams, formParams, postBody,
1450
+ authNames, contentTypes, accepts, returnType, callback
1451
+ );
1452
+ }
1453
+
1454
+ }