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