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
package/lib/resources/tasks.js
DELETED
|
@@ -1,702 +0,0 @@
|
|
|
1
|
-
var Tasks = require('./gen/tasks');
|
|
2
|
-
/* jshint ignore:start */
|
|
3
|
-
var util = require('util');
|
|
4
|
-
var _ = require('lodash');
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Returns the task named by the given external ID
|
|
8
|
-
* @param {String} externalId The task id
|
|
9
|
-
* @param {Object} [params] Extra params for the dispatcher
|
|
10
|
-
* @return {Promise} The result of the API call
|
|
11
|
-
*/
|
|
12
|
-
Tasks.prototype.findByExternalId = function(externalId, params) {
|
|
13
|
-
var path = util.format(
|
|
14
|
-
'/tasks/%s', encodeURIComponent('external:' + externalId));
|
|
15
|
-
return this.dispatchGet(path, params);
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* Changes the parent of a task. Each task may only be a subtask of a single
|
|
20
|
-
* parent, or no parent task at all. Returns an empty data block.
|
|
21
|
-
* @param {String} task The task to change the parent of.
|
|
22
|
-
* @param {String} parent The new parent of the task, or `null` for no parent.
|
|
23
|
-
* @param {Object} [data] Data for the request
|
|
24
|
-
* @return {Promise} The response from the API
|
|
25
|
-
*/
|
|
26
|
-
Tasks.prototype.setParent = function(
|
|
27
|
-
task,
|
|
28
|
-
parent,
|
|
29
|
-
data
|
|
30
|
-
) {
|
|
31
|
-
var path = util.format('/tasks/%s/setParent', task);
|
|
32
|
-
|
|
33
|
-
data = _.extend({}, data || {}, {
|
|
34
|
-
parent: parent !== null ? String(parent) : null
|
|
35
|
-
});
|
|
36
|
-
return this.dispatchPost(path, data);
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* Creating a new task is as easy as POSTing to the `/tasks` endpoint
|
|
41
|
-
* with a data block containing the fields you'd like to set on the task.
|
|
42
|
-
* Any unspecified fields will take on default values.
|
|
43
|
-
*
|
|
44
|
-
* Every task is required to be created in a specific workspace, and this
|
|
45
|
-
* workspace cannot be changed once set. The workspace need not be set
|
|
46
|
-
* explicitly if you specify `projects` or a `parent` task instead.
|
|
47
|
-
*
|
|
48
|
-
* `projects` can be a comma separated list of projects, or just a single
|
|
49
|
-
* project the task should belong to.
|
|
50
|
-
* @param {Object} data Data for the request
|
|
51
|
-
* @param {String} [data.workspace] The workspace to create a task in.
|
|
52
|
-
* @param {Object} [dispatchOptions] Options, if any, to pass the dispatcher for the request
|
|
53
|
-
* @return {Promise} The response from the API
|
|
54
|
-
*/
|
|
55
|
-
Tasks.prototype.create = function(
|
|
56
|
-
data,
|
|
57
|
-
dispatchOptions
|
|
58
|
-
) {
|
|
59
|
-
var path = util.format('/tasks');
|
|
60
|
-
|
|
61
|
-
return this.dispatchPost(path, data, dispatchOptions);
|
|
62
|
-
};
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
* Creating a new task is as easy as POSTing to the `/tasks` endpoint
|
|
66
|
-
* with a data block containing the fields you'd like to set on the task.
|
|
67
|
-
* Any unspecified fields will take on default values.
|
|
68
|
-
*
|
|
69
|
-
* Every task is required to be created in a specific workspace, and this
|
|
70
|
-
* workspace cannot be changed once set. The workspace need not be set
|
|
71
|
-
* explicitly if you specify a `project` or a `parent` task instead.
|
|
72
|
-
* @param {String} workspace The workspace to create a task in.
|
|
73
|
-
* @param {Object} data Data for the request
|
|
74
|
-
* @param {Object} [dispatchOptions] Options, if any, to pass the dispatcher for the request
|
|
75
|
-
* @return {Promise} The response from the API
|
|
76
|
-
*/
|
|
77
|
-
Tasks.prototype.createInWorkspace = function(
|
|
78
|
-
workspace,
|
|
79
|
-
data,
|
|
80
|
-
dispatchOptions
|
|
81
|
-
) {
|
|
82
|
-
var path = util.format('/workspaces/%s/tasks', workspace);
|
|
83
|
-
|
|
84
|
-
return this.dispatchPost(path, data, dispatchOptions);
|
|
85
|
-
};
|
|
86
|
-
|
|
87
|
-
/**
|
|
88
|
-
* Returns the complete task record for a single task.
|
|
89
|
-
* @param {String} task The task to get.
|
|
90
|
-
* @param {Object} [params] Parameters for the request
|
|
91
|
-
* @param {Object} [dispatchOptions] Options, if any, to pass the dispatcher for the request
|
|
92
|
-
* @return {Promise} The requested resource
|
|
93
|
-
*/
|
|
94
|
-
Tasks.prototype.findById = function(
|
|
95
|
-
task,
|
|
96
|
-
params,
|
|
97
|
-
dispatchOptions
|
|
98
|
-
) {
|
|
99
|
-
var path = util.format('/tasks/%s', task);
|
|
100
|
-
|
|
101
|
-
return this.dispatchGet(path, params, dispatchOptions);
|
|
102
|
-
};
|
|
103
|
-
|
|
104
|
-
/**
|
|
105
|
-
* A specific, existing task can be updated by making a PUT request on the
|
|
106
|
-
* URL for that task. Only the fields provided in the `data` block will be
|
|
107
|
-
* updated; any unspecified fields will remain unchanged.
|
|
108
|
-
*
|
|
109
|
-
* When using this method, it is best to specify only those fields you wish
|
|
110
|
-
* to change, or else you may overwrite changes made by another user since
|
|
111
|
-
* you last retrieved the task.
|
|
112
|
-
*
|
|
113
|
-
* Returns the complete updated task record.
|
|
114
|
-
* @param {String} task The task to update.
|
|
115
|
-
* @param {Object} data Data for the request
|
|
116
|
-
* @param {Object} [dispatchOptions] Options, if any, to pass the dispatcher for the request
|
|
117
|
-
* @return {Promise} The response from the API
|
|
118
|
-
*/
|
|
119
|
-
Tasks.prototype.update = function(
|
|
120
|
-
task,
|
|
121
|
-
data,
|
|
122
|
-
dispatchOptions
|
|
123
|
-
) {
|
|
124
|
-
var path = util.format('/tasks/%s', task);
|
|
125
|
-
|
|
126
|
-
return this.dispatchPut(path, data, dispatchOptions);
|
|
127
|
-
};
|
|
128
|
-
|
|
129
|
-
/**
|
|
130
|
-
* A specific, existing task can be deleted by making a DELETE request on the
|
|
131
|
-
* URL for that task. Deleted tasks go into the "trash" of the user making
|
|
132
|
-
* the delete request. Tasks can be recovered from the trash within a period
|
|
133
|
-
* of 30 days; afterward they are completely removed from the system.
|
|
134
|
-
*
|
|
135
|
-
* Returns an empty data record.
|
|
136
|
-
* @param {String} task The task to delete.
|
|
137
|
-
* @param {Object} [dispatchOptions] Options, if any, to pass the dispatcher for the request
|
|
138
|
-
* @return {Promise} The response from the API
|
|
139
|
-
*/
|
|
140
|
-
Tasks.prototype.delete = function(
|
|
141
|
-
task,
|
|
142
|
-
dispatchOptions
|
|
143
|
-
) {
|
|
144
|
-
var path = util.format('/tasks/%s', task);
|
|
145
|
-
|
|
146
|
-
return this.dispatchDelete(path, dispatchOptions);
|
|
147
|
-
};
|
|
148
|
-
|
|
149
|
-
/**
|
|
150
|
-
* Creates and returns a job that will asynchronously handle the duplication.
|
|
151
|
-
* @param {String} task The task to duplicate.
|
|
152
|
-
* @param {Object} data Data for the request
|
|
153
|
-
* @param {String} data.name The name of the new task.
|
|
154
|
-
* @param {Array} [data.include] The fields that will be duplicated to the new task.
|
|
155
|
-
* @param {Object} [dispatchOptions] Options, if any, to pass the dispatcher for the request
|
|
156
|
-
* @return {Promise} The response from the API
|
|
157
|
-
*/
|
|
158
|
-
Tasks.prototype.duplicateTask = function(
|
|
159
|
-
task,
|
|
160
|
-
data,
|
|
161
|
-
dispatchOptions
|
|
162
|
-
) {
|
|
163
|
-
var path = util.format('/tasks/%s/duplicate', task);
|
|
164
|
-
|
|
165
|
-
return this.dispatchPost(path, data, dispatchOptions);
|
|
166
|
-
};
|
|
167
|
-
|
|
168
|
-
/**
|
|
169
|
-
* Returns the compact task records for all tasks within the given project,
|
|
170
|
-
* ordered by their priority within the project.
|
|
171
|
-
* @param {String} project The project in which to search for tasks.
|
|
172
|
-
* @param {Object} [params] Parameters for the request
|
|
173
|
-
* @param {Object} [dispatchOptions] Options, if any, to pass the dispatcher for the request
|
|
174
|
-
* @return {Promise} The response from the API
|
|
175
|
-
*/
|
|
176
|
-
Tasks.prototype.findByProject = function(
|
|
177
|
-
project,
|
|
178
|
-
params,
|
|
179
|
-
dispatchOptions
|
|
180
|
-
) {
|
|
181
|
-
var path = util.format('/projects/%s/tasks', project);
|
|
182
|
-
|
|
183
|
-
return this.dispatchGetCollection(path, params, dispatchOptions);
|
|
184
|
-
};
|
|
185
|
-
|
|
186
|
-
/**
|
|
187
|
-
* Returns the compact task records for all tasks with the given tag.
|
|
188
|
-
* @param {String} tag The tag in which to search for tasks.
|
|
189
|
-
* @param {Object} [params] Parameters for the request
|
|
190
|
-
* @param {Object} [dispatchOptions] Options, if any, to pass the dispatcher for the request
|
|
191
|
-
* @return {Promise} The response from the API
|
|
192
|
-
*/
|
|
193
|
-
Tasks.prototype.findByTag = function(
|
|
194
|
-
tag,
|
|
195
|
-
params,
|
|
196
|
-
dispatchOptions
|
|
197
|
-
) {
|
|
198
|
-
var path = util.format('/tags/%s/tasks', tag);
|
|
199
|
-
|
|
200
|
-
return this.dispatchGetCollection(path, params, dispatchOptions);
|
|
201
|
-
};
|
|
202
|
-
|
|
203
|
-
/**
|
|
204
|
-
* <b>Board view only:</b> Returns the compact section records for all tasks within the given section.
|
|
205
|
-
* @param {String} section The section in which to search for tasks.
|
|
206
|
-
* @param {Object} [params] Parameters for the request
|
|
207
|
-
* @param {Object} [dispatchOptions] Options, if any, to pass the dispatcher for the request
|
|
208
|
-
* @return {Promise} The response from the API
|
|
209
|
-
*/
|
|
210
|
-
Tasks.prototype.findBySection = function(
|
|
211
|
-
section,
|
|
212
|
-
params,
|
|
213
|
-
dispatchOptions
|
|
214
|
-
) {
|
|
215
|
-
var path = util.format('/sections/%s/tasks', section);
|
|
216
|
-
|
|
217
|
-
return this.dispatchGetCollection(path, params, dispatchOptions);
|
|
218
|
-
};
|
|
219
|
-
|
|
220
|
-
/**
|
|
221
|
-
* Returns the compact list of tasks in a user's My Tasks list. The returned
|
|
222
|
-
* tasks will be in order within each assignee status group of `Inbox`,
|
|
223
|
-
* `Today`, and `Upcoming`.
|
|
224
|
-
*
|
|
225
|
-
* **Note:** tasks in `Later` have a different ordering in the Asana web app
|
|
226
|
-
* than the other assignee status groups; this endpoint will still return
|
|
227
|
-
* them in list order in `Later` (differently than they show up in Asana,
|
|
228
|
-
* but the same order as in Asana's mobile apps).
|
|
229
|
-
*
|
|
230
|
-
* **Note:** Access control is enforced for this endpoint as with all Asana
|
|
231
|
-
* API endpoints, meaning a user's private tasks will be filtered out if the
|
|
232
|
-
* API-authenticated user does not have access to them.
|
|
233
|
-
*
|
|
234
|
-
* **Note:** Both complete and incomplete tasks are returned by default
|
|
235
|
-
* unless they are filtered out (for example, setting `completed_since=now`
|
|
236
|
-
* will return only incomplete tasks, which is the default view for "My
|
|
237
|
-
* Tasks" in Asana.)
|
|
238
|
-
* @param {String} user_task_list The user task list in which to search for tasks.
|
|
239
|
-
* @param {Object} [params] Parameters for the request
|
|
240
|
-
* @param {String} [params.completed_since] Only return tasks that are either incomplete or that have been
|
|
241
|
-
* completed since this time.
|
|
242
|
-
* @param {Object} [dispatchOptions] Options, if any, to pass the dispatcher for the request
|
|
243
|
-
* @return {Promise} The response from the API
|
|
244
|
-
*/
|
|
245
|
-
Tasks.prototype.findByUserTaskList = function(
|
|
246
|
-
userTaskList,
|
|
247
|
-
params,
|
|
248
|
-
dispatchOptions
|
|
249
|
-
) {
|
|
250
|
-
var path = util.format('/user_task_lists/%s/tasks', userTaskList);
|
|
251
|
-
|
|
252
|
-
return this.dispatchGetCollection(path, params, dispatchOptions);
|
|
253
|
-
};
|
|
254
|
-
|
|
255
|
-
/**
|
|
256
|
-
* Returns the compact task records for some filtered set of tasks. Use one
|
|
257
|
-
* or more of the parameters provided to filter the tasks returned. You must
|
|
258
|
-
* specify a `project`, `section`, `tag`, or `user_task_list` if you do not
|
|
259
|
-
* specify `assignee` and `workspace`.
|
|
260
|
-
* @param {Object} [params] Parameters for the request
|
|
261
|
-
* @param {String} [params.assignee] The assignee to filter tasks on.
|
|
262
|
-
* @param {String} [params.workspace] The workspace or organization to filter tasks on.
|
|
263
|
-
* @param {String} [params.project] The project to filter tasks on.
|
|
264
|
-
* @param {String} [params.section] The section to filter tasks on.
|
|
265
|
-
* @param {String} [params.tag] The tag to filter tasks on.
|
|
266
|
-
* @param {String} [params.user_task_list] The user task list to filter tasks on.
|
|
267
|
-
* @param {String} [params.completed_since] Only return tasks that are either incomplete or that have been
|
|
268
|
-
* completed since this time.
|
|
269
|
-
* @param {String} [params.modified_since] Only return tasks that have been modified since the given time.
|
|
270
|
-
* @param {Object} [dispatchOptions] Options, if any, to pass the dispatcher for the request
|
|
271
|
-
* @return {Promise} The response from the API
|
|
272
|
-
*/
|
|
273
|
-
Tasks.prototype.findAll = function(
|
|
274
|
-
params,
|
|
275
|
-
dispatchOptions
|
|
276
|
-
) {
|
|
277
|
-
var path = util.format('/tasks');
|
|
278
|
-
|
|
279
|
-
return this.dispatchGetCollection(path, params, dispatchOptions);
|
|
280
|
-
};
|
|
281
|
-
|
|
282
|
-
/**
|
|
283
|
-
* Returns the compact task records for all tasks with the given tag.
|
|
284
|
-
* Tasks can have more than one tag at a time.
|
|
285
|
-
* @param {String} tag The tag to fetch tasks from.
|
|
286
|
-
* @param {Object} [params] Parameters for the request
|
|
287
|
-
* @param {Object} [dispatchOptions] Options, if any, to pass the dispatcher for the request
|
|
288
|
-
* @return {Promise} The response from the API
|
|
289
|
-
*/
|
|
290
|
-
Tasks.prototype.getTasksWithTag = function(
|
|
291
|
-
tag,
|
|
292
|
-
params,
|
|
293
|
-
dispatchOptions
|
|
294
|
-
) {
|
|
295
|
-
var path = util.format('/tags/%s/tasks', tag);
|
|
296
|
-
|
|
297
|
-
return this.dispatchGetCollection(path, params, dispatchOptions);
|
|
298
|
-
};
|
|
299
|
-
|
|
300
|
-
/**
|
|
301
|
-
* The search endpoint allows you to build complex queries to find and fetch exactly the data you need from Asana. For a more comprehensive description of all the query parameters and limitations of this endpoint, see our [long-form documentation](/developers/documentation/getting-started/search-api) for this feature.
|
|
302
|
-
* @param {String} workspace The workspace or organization in which to search for tasks.
|
|
303
|
-
* @param {Object} [params] Parameters for the request
|
|
304
|
-
* @param {String} [params.resource_subtype] Filters results by the task's resource_subtype.
|
|
305
|
-
* @param {Object} [dispatchOptions] Options, if any, to pass the dispatcher for the request
|
|
306
|
-
* @return {Promise} The response from the API
|
|
307
|
-
*/
|
|
308
|
-
Tasks.prototype.searchInWorkspace = function(
|
|
309
|
-
workspace,
|
|
310
|
-
params,
|
|
311
|
-
dispatchOptions
|
|
312
|
-
) {
|
|
313
|
-
var path = util.format('/workspaces/%s/tasks/search', workspace);
|
|
314
|
-
|
|
315
|
-
return this.dispatchGetCollection(path, params, dispatchOptions);
|
|
316
|
-
};
|
|
317
|
-
|
|
318
|
-
/**
|
|
319
|
-
* Returns the compact representations of all of the dependencies of a task.
|
|
320
|
-
* @param {String} task The task to get dependencies on.
|
|
321
|
-
* @param {Object} [params] Parameters for the request
|
|
322
|
-
* @param {Object} [dispatchOptions] Options, if any, to pass the dispatcher for the request
|
|
323
|
-
* @return {Promise} The requested resource
|
|
324
|
-
*/
|
|
325
|
-
Tasks.prototype.dependencies = function(
|
|
326
|
-
task,
|
|
327
|
-
params,
|
|
328
|
-
dispatchOptions
|
|
329
|
-
) {
|
|
330
|
-
var path = util.format('/tasks/%s/dependencies', task);
|
|
331
|
-
|
|
332
|
-
return this.dispatchGet(path, params, dispatchOptions);
|
|
333
|
-
};
|
|
334
|
-
|
|
335
|
-
/**
|
|
336
|
-
* Returns the compact representations of all of the dependents of a task.
|
|
337
|
-
* @param {String} task The task to get dependents on.
|
|
338
|
-
* @param {Object} [params] Parameters for the request
|
|
339
|
-
* @param {Object} [dispatchOptions] Options, if any, to pass the dispatcher for the request
|
|
340
|
-
* @return {Promise} The requested resource
|
|
341
|
-
*/
|
|
342
|
-
Tasks.prototype.dependents = function(
|
|
343
|
-
task,
|
|
344
|
-
params,
|
|
345
|
-
dispatchOptions
|
|
346
|
-
) {
|
|
347
|
-
var path = util.format('/tasks/%s/dependents', task);
|
|
348
|
-
|
|
349
|
-
return this.dispatchGet(path, params, dispatchOptions);
|
|
350
|
-
};
|
|
351
|
-
|
|
352
|
-
/**
|
|
353
|
-
* Marks a set of tasks as dependencies of this task, if they are not
|
|
354
|
-
* already dependencies. *A task can have at most 15 dependencies.*
|
|
355
|
-
* @param {String} task The task to add dependencies to.
|
|
356
|
-
* @param {Object} data Data for the request
|
|
357
|
-
* @param {Array} data.dependencies An array of task IDs that this task should depend on.
|
|
358
|
-
* @param {Object} [dispatchOptions] Options, if any, to pass the dispatcher for the request
|
|
359
|
-
* @return {Promise} The response from the API
|
|
360
|
-
*/
|
|
361
|
-
Tasks.prototype.addDependencies = function(
|
|
362
|
-
task,
|
|
363
|
-
data,
|
|
364
|
-
dispatchOptions
|
|
365
|
-
) {
|
|
366
|
-
var path = util.format('/tasks/%s/addDependencies', task);
|
|
367
|
-
|
|
368
|
-
return this.dispatchPost(path, data, dispatchOptions);
|
|
369
|
-
};
|
|
370
|
-
|
|
371
|
-
/**
|
|
372
|
-
* Marks a set of tasks as dependents of this task, if they are not already
|
|
373
|
-
* dependents. *A task can have at most 30 dependents.*
|
|
374
|
-
* @param {String} task The task to add dependents to.
|
|
375
|
-
* @param {Object} data Data for the request
|
|
376
|
-
* @param {Array} data.dependents An array of task IDs that should depend on this task.
|
|
377
|
-
* @param {Object} [dispatchOptions] Options, if any, to pass the dispatcher for the request
|
|
378
|
-
* @return {Promise} The response from the API
|
|
379
|
-
*/
|
|
380
|
-
Tasks.prototype.addDependents = function(
|
|
381
|
-
task,
|
|
382
|
-
data,
|
|
383
|
-
dispatchOptions
|
|
384
|
-
) {
|
|
385
|
-
var path = util.format('/tasks/%s/addDependents', task);
|
|
386
|
-
|
|
387
|
-
return this.dispatchPost(path, data, dispatchOptions);
|
|
388
|
-
};
|
|
389
|
-
|
|
390
|
-
/**
|
|
391
|
-
* Unlinks a set of dependencies from this task.
|
|
392
|
-
* @param {String} task The task to remove dependencies from.
|
|
393
|
-
* @param {Object} data Data for the request
|
|
394
|
-
* @param {Array} data.dependencies An array of task IDs to remove as dependencies.
|
|
395
|
-
* @param {Object} [dispatchOptions] Options, if any, to pass the dispatcher for the request
|
|
396
|
-
* @return {Promise} The response from the API
|
|
397
|
-
*/
|
|
398
|
-
Tasks.prototype.removeDependencies = function(
|
|
399
|
-
task,
|
|
400
|
-
data,
|
|
401
|
-
dispatchOptions
|
|
402
|
-
) {
|
|
403
|
-
var path = util.format('/tasks/%s/removeDependencies', task);
|
|
404
|
-
|
|
405
|
-
return this.dispatchPost(path, data, dispatchOptions);
|
|
406
|
-
};
|
|
407
|
-
|
|
408
|
-
/**
|
|
409
|
-
* Unlinks a set of dependents from this task.
|
|
410
|
-
* @param {String} task The task to remove dependents from.
|
|
411
|
-
* @param {Object} data Data for the request
|
|
412
|
-
* @param {Array} data.dependents An array of task IDs to remove as dependents.
|
|
413
|
-
* @param {Object} [dispatchOptions] Options, if any, to pass the dispatcher for the request
|
|
414
|
-
* @return {Promise} The response from the API
|
|
415
|
-
*/
|
|
416
|
-
Tasks.prototype.removeDependents = function(
|
|
417
|
-
task,
|
|
418
|
-
data,
|
|
419
|
-
dispatchOptions
|
|
420
|
-
) {
|
|
421
|
-
var path = util.format('/tasks/%s/removeDependents', task);
|
|
422
|
-
|
|
423
|
-
return this.dispatchPost(path, data, dispatchOptions);
|
|
424
|
-
};
|
|
425
|
-
|
|
426
|
-
/**
|
|
427
|
-
* Adds each of the specified followers to the task, if they are not already
|
|
428
|
-
* following. Returns the complete, updated record for the affected task.
|
|
429
|
-
* @param {String} task The task to add followers to.
|
|
430
|
-
* @param {Object} data Data for the request
|
|
431
|
-
* @param {Array} data.followers An array of followers to add to the task.
|
|
432
|
-
* @param {Object} [dispatchOptions] Options, if any, to pass the dispatcher for the request
|
|
433
|
-
* @return {Promise} The response from the API
|
|
434
|
-
*/
|
|
435
|
-
Tasks.prototype.addFollowers = function(
|
|
436
|
-
task,
|
|
437
|
-
data,
|
|
438
|
-
dispatchOptions
|
|
439
|
-
) {
|
|
440
|
-
var path = util.format('/tasks/%s/addFollowers', task);
|
|
441
|
-
|
|
442
|
-
return this.dispatchPost(path, data, dispatchOptions);
|
|
443
|
-
};
|
|
444
|
-
|
|
445
|
-
/**
|
|
446
|
-
* Removes each of the specified followers from the task if they are
|
|
447
|
-
* following. Returns the complete, updated record for the affected task.
|
|
448
|
-
* @param {String} task The task to remove followers from.
|
|
449
|
-
* @param {Object} data Data for the request
|
|
450
|
-
* @param {Array} data.followers An array of followers to remove from the task.
|
|
451
|
-
* @param {Object} [dispatchOptions] Options, if any, to pass the dispatcher for the request
|
|
452
|
-
* @return {Promise} The response from the API
|
|
453
|
-
*/
|
|
454
|
-
Tasks.prototype.removeFollowers = function(
|
|
455
|
-
task,
|
|
456
|
-
data,
|
|
457
|
-
dispatchOptions
|
|
458
|
-
) {
|
|
459
|
-
var path = util.format('/tasks/%s/removeFollowers', task);
|
|
460
|
-
|
|
461
|
-
return this.dispatchPost(path, data, dispatchOptions);
|
|
462
|
-
};
|
|
463
|
-
|
|
464
|
-
/**
|
|
465
|
-
* Returns a compact representation of all of the projects the task is in.
|
|
466
|
-
* @param {String} task The task to get projects on.
|
|
467
|
-
* @param {Object} [params] Parameters for the request
|
|
468
|
-
* @param {Object} [dispatchOptions] Options, if any, to pass the dispatcher for the request
|
|
469
|
-
* @return {Promise} The response from the API
|
|
470
|
-
*/
|
|
471
|
-
Tasks.prototype.projects = function(
|
|
472
|
-
task,
|
|
473
|
-
params,
|
|
474
|
-
dispatchOptions
|
|
475
|
-
) {
|
|
476
|
-
var path = util.format('/tasks/%s/projects', task);
|
|
477
|
-
|
|
478
|
-
return this.dispatchGetCollection(path, params, dispatchOptions);
|
|
479
|
-
};
|
|
480
|
-
|
|
481
|
-
/**
|
|
482
|
-
* Adds the task to the specified project, in the optional location
|
|
483
|
-
* specified. If no location arguments are given, the task will be added to
|
|
484
|
-
* the end of the project.
|
|
485
|
-
*
|
|
486
|
-
* `addProject` can also be used to reorder a task within a project or section that
|
|
487
|
-
* already contains it.
|
|
488
|
-
*
|
|
489
|
-
* At most one of `insert_before`, `insert_after`, or `section` should be
|
|
490
|
-
* specified. Inserting into a section in an non-order-dependent way can be
|
|
491
|
-
* done by specifying `section`, otherwise, to insert within a section in a
|
|
492
|
-
* particular place, specify `insert_before` or `insert_after` and a task
|
|
493
|
-
* within the section to anchor the position of this task.
|
|
494
|
-
*
|
|
495
|
-
* Returns an empty data block.
|
|
496
|
-
* @param {String} task The task to add to a project.
|
|
497
|
-
* @param {Object} data Data for the request
|
|
498
|
-
* @param {String} data.project The project to add the task to.
|
|
499
|
-
* @param {String} [data.insert_after] A task in the project to insert the task after, or `null` to
|
|
500
|
-
* insert at the beginning of the list.
|
|
501
|
-
* @param {String} [data.insert_before] A task in the project to insert the task before, or `null` to
|
|
502
|
-
* insert at the end of the list.
|
|
503
|
-
* @param {String} [data.section] A section in the project to insert the task into. The task will be
|
|
504
|
-
* inserted at the bottom of the section.
|
|
505
|
-
* @param {Object} [dispatchOptions] Options, if any, to pass the dispatcher for the request
|
|
506
|
-
* @return {Promise} The response from the API
|
|
507
|
-
*/
|
|
508
|
-
Tasks.prototype.addProject = function(
|
|
509
|
-
task,
|
|
510
|
-
data,
|
|
511
|
-
dispatchOptions
|
|
512
|
-
) {
|
|
513
|
-
var path = util.format('/tasks/%s/addProject', task);
|
|
514
|
-
|
|
515
|
-
return this.dispatchPost(path, data, dispatchOptions);
|
|
516
|
-
};
|
|
517
|
-
|
|
518
|
-
/**
|
|
519
|
-
* Removes the task from the specified project. The task will still exist
|
|
520
|
-
* in the system, but it will not be in the project anymore.
|
|
521
|
-
*
|
|
522
|
-
* Returns an empty data block.
|
|
523
|
-
* @param {String} task The task to remove from a project.
|
|
524
|
-
* @param {Object} data Data for the request
|
|
525
|
-
* @param {String} data.project The project to remove the task from.
|
|
526
|
-
* @param {Object} [dispatchOptions] Options, if any, to pass the dispatcher for the request
|
|
527
|
-
* @return {Promise} The response from the API
|
|
528
|
-
*/
|
|
529
|
-
Tasks.prototype.removeProject = function(
|
|
530
|
-
task,
|
|
531
|
-
data,
|
|
532
|
-
dispatchOptions
|
|
533
|
-
) {
|
|
534
|
-
var path = util.format('/tasks/%s/removeProject', task);
|
|
535
|
-
|
|
536
|
-
return this.dispatchPost(path, data, dispatchOptions);
|
|
537
|
-
};
|
|
538
|
-
|
|
539
|
-
/**
|
|
540
|
-
* Returns a compact representation of all of the tags the task has.
|
|
541
|
-
* @param {String} task The task to get tags on.
|
|
542
|
-
* @param {Object} [params] Parameters for the request
|
|
543
|
-
* @param {Object} [dispatchOptions] Options, if any, to pass the dispatcher for the request
|
|
544
|
-
* @return {Promise} The response from the API
|
|
545
|
-
*/
|
|
546
|
-
Tasks.prototype.tags = function(
|
|
547
|
-
task,
|
|
548
|
-
params,
|
|
549
|
-
dispatchOptions
|
|
550
|
-
) {
|
|
551
|
-
var path = util.format('/tasks/%s/tags', task);
|
|
552
|
-
|
|
553
|
-
return this.dispatchGetCollection(path, params, dispatchOptions);
|
|
554
|
-
};
|
|
555
|
-
|
|
556
|
-
/**
|
|
557
|
-
* Adds a tag to a task. Returns an empty data block.
|
|
558
|
-
* @param {String} task The task to add a tag to.
|
|
559
|
-
* @param {Object} data Data for the request
|
|
560
|
-
* @param {String} data.tag The tag to add to the task.
|
|
561
|
-
* @param {Object} [dispatchOptions] Options, if any, to pass the dispatcher for the request
|
|
562
|
-
* @return {Promise} The response from the API
|
|
563
|
-
*/
|
|
564
|
-
Tasks.prototype.addTag = function(
|
|
565
|
-
task,
|
|
566
|
-
data,
|
|
567
|
-
dispatchOptions
|
|
568
|
-
) {
|
|
569
|
-
var path = util.format('/tasks/%s/addTag', task);
|
|
570
|
-
|
|
571
|
-
return this.dispatchPost(path, data, dispatchOptions);
|
|
572
|
-
};
|
|
573
|
-
|
|
574
|
-
/**
|
|
575
|
-
* Removes a tag from the task. Returns an empty data block.
|
|
576
|
-
* @param {String} task The task to remove a tag from.
|
|
577
|
-
* @param {Object} data Data for the request
|
|
578
|
-
* @param {String} data.tag The tag to remove from the task.
|
|
579
|
-
* @param {Object} [dispatchOptions] Options, if any, to pass the dispatcher for the request
|
|
580
|
-
* @return {Promise} The response from the API
|
|
581
|
-
*/
|
|
582
|
-
Tasks.prototype.removeTag = function(
|
|
583
|
-
task,
|
|
584
|
-
data,
|
|
585
|
-
dispatchOptions
|
|
586
|
-
) {
|
|
587
|
-
var path = util.format('/tasks/%s/removeTag', task);
|
|
588
|
-
|
|
589
|
-
return this.dispatchPost(path, data, dispatchOptions);
|
|
590
|
-
};
|
|
591
|
-
|
|
592
|
-
/**
|
|
593
|
-
* Returns a compact representation of all of the subtasks of a task.
|
|
594
|
-
* @param {String} task The task to get the subtasks of.
|
|
595
|
-
* @param {Object} [params] Parameters for the request
|
|
596
|
-
* @param {Object} [dispatchOptions] Options, if any, to pass the dispatcher for the request
|
|
597
|
-
* @return {Promise} The response from the API
|
|
598
|
-
*/
|
|
599
|
-
Tasks.prototype.subtasks = function(
|
|
600
|
-
task,
|
|
601
|
-
params,
|
|
602
|
-
dispatchOptions
|
|
603
|
-
) {
|
|
604
|
-
var path = util.format('/tasks/%s/subtasks', task);
|
|
605
|
-
|
|
606
|
-
return this.dispatchGetCollection(path, params, dispatchOptions);
|
|
607
|
-
};
|
|
608
|
-
|
|
609
|
-
/**
|
|
610
|
-
* Creates a new subtask and adds it to the parent task. Returns the full record
|
|
611
|
-
* for the newly created subtask.
|
|
612
|
-
* @param {String} task The task to add a subtask to.
|
|
613
|
-
* @param {Object} data Data for the request
|
|
614
|
-
* @param {Object} [dispatchOptions] Options, if any, to pass the dispatcher for the request
|
|
615
|
-
* @return {Promise} The response from the API
|
|
616
|
-
*/
|
|
617
|
-
Tasks.prototype.addSubtask = function(
|
|
618
|
-
task,
|
|
619
|
-
data,
|
|
620
|
-
dispatchOptions
|
|
621
|
-
) {
|
|
622
|
-
var path = util.format('/tasks/%s/subtasks', task);
|
|
623
|
-
|
|
624
|
-
return this.dispatchPost(path, data, dispatchOptions);
|
|
625
|
-
};
|
|
626
|
-
|
|
627
|
-
/**
|
|
628
|
-
* Returns a compact representation of all of the stories on the task.
|
|
629
|
-
* @param {String} task The task containing the stories to get.
|
|
630
|
-
* @param {Object} [params] Parameters for the request
|
|
631
|
-
* @param {Object} [dispatchOptions] Options, if any, to pass the dispatcher for the request
|
|
632
|
-
* @return {Promise} The response from the API
|
|
633
|
-
*/
|
|
634
|
-
Tasks.prototype.stories = function(
|
|
635
|
-
task,
|
|
636
|
-
params,
|
|
637
|
-
dispatchOptions
|
|
638
|
-
) {
|
|
639
|
-
var path = util.format('/tasks/%s/stories', task);
|
|
640
|
-
|
|
641
|
-
return this.dispatchGetCollection(path, params, dispatchOptions);
|
|
642
|
-
};
|
|
643
|
-
|
|
644
|
-
/**
|
|
645
|
-
* Adds a comment to a task. The comment will be authored by the
|
|
646
|
-
* currently authenticated user, and timestamped when the server receives
|
|
647
|
-
* the request.
|
|
648
|
-
*
|
|
649
|
-
* Returns the full record for the new story added to the task.
|
|
650
|
-
* @param {String} task Globally unique identifier for the task.
|
|
651
|
-
* @param {Object} data Data for the request
|
|
652
|
-
* @param {String} data.text The plain text of the comment to add.
|
|
653
|
-
* @param {Object} [dispatchOptions] Options, if any, to pass the dispatcher for the request
|
|
654
|
-
* @return {Promise} The response from the API
|
|
655
|
-
*/
|
|
656
|
-
Tasks.prototype.addComment = function(
|
|
657
|
-
task,
|
|
658
|
-
data,
|
|
659
|
-
dispatchOptions
|
|
660
|
-
) {
|
|
661
|
-
var path = util.format('/tasks/%s/stories', task);
|
|
662
|
-
|
|
663
|
-
return this.dispatchPost(path, data, dispatchOptions);
|
|
664
|
-
};
|
|
665
|
-
|
|
666
|
-
/**
|
|
667
|
-
* Insert or reorder tasks in a user's My Tasks list. If the task was not
|
|
668
|
-
* assigned to the owner of the user task list it will be reassigned when
|
|
669
|
-
* this endpoint is called. If neither `insert_before` nor `insert_after`
|
|
670
|
-
* are provided the task will be inserted at the top of the assignee's
|
|
671
|
-
* inbox.
|
|
672
|
-
*
|
|
673
|
-
* Returns an empty data block.
|
|
674
|
-
* @param {String} user_task_list Globally unique identifier for the user task list.
|
|
675
|
-
* @param {Object} data Data for the request
|
|
676
|
-
* @param {String} data.task Globally unique identifier for the task.
|
|
677
|
-
* @param {String} [data.insert_before] Insert the task before the task specified by this field. The inserted
|
|
678
|
-
* task will inherit the `assignee_status` of this task. `insert_before`
|
|
679
|
-
* and `insert_after` parameters cannot both be specified.
|
|
680
|
-
* @param {String} [data.insert_after] Insert the task after the task specified by this field. The inserted
|
|
681
|
-
* task will inherit the `assignee_status` of this task. `insert_before`
|
|
682
|
-
* and `insert_after` parameters cannot both be specified.
|
|
683
|
-
* @param {Object} [dispatchOptions] Options, if any, to pass the dispatcher for the request
|
|
684
|
-
* @return {Promise} The response from the API
|
|
685
|
-
*/
|
|
686
|
-
Tasks.prototype.insertInUserTaskList = function(
|
|
687
|
-
userTaskList,
|
|
688
|
-
data,
|
|
689
|
-
dispatchOptions
|
|
690
|
-
) {
|
|
691
|
-
var path = util.format('/user_task_lists/%s/tasks/insert', userTaskList);
|
|
692
|
-
|
|
693
|
-
return this.dispatchPost(path, data, dispatchOptions);
|
|
694
|
-
};
|
|
695
|
-
|
|
696
|
-
/**
|
|
697
|
-
* This is for compatibility reasons. Please use searchInWorkspace.
|
|
698
|
-
*/
|
|
699
|
-
Tasks.prototype.search = Tasks.prototype.searchInWorkspace;
|
|
700
|
-
|
|
701
|
-
/* jshint ignore:end */
|
|
702
|
-
module.exports = Tasks;
|