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,1040 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Asana
|
|
3
|
+
* This is the interface for interacting with the [Asana Platform](https://developers.asana.com). Our API reference is generated from our [OpenAPI spec] (https://raw.githubusercontent.com/Asana/openapi/master/defs/asana_oas.yaml).
|
|
4
|
+
*
|
|
5
|
+
* OpenAPI spec version: 1.0
|
|
6
|
+
*
|
|
7
|
+
* NOTE: This class is auto generated by the swagger code generator program.
|
|
8
|
+
* https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
*
|
|
10
|
+
* Swagger Codegen version: 3.0.46
|
|
11
|
+
*
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*
|
|
14
|
+
*/
|
|
15
|
+
import {ApiClient} from "../ApiClient";
|
|
16
|
+
import {CustomFieldSettingResponseData} from '../model/CustomFieldSettingResponseData';
|
|
17
|
+
import {EmptyResponseData} from '../model/EmptyResponseData';
|
|
18
|
+
import {ErrorResponse} from '../model/ErrorResponse';
|
|
19
|
+
import {JobResponseData} from '../model/JobResponseData';
|
|
20
|
+
import {ProjectGidAddCustomFieldSettingBody} from '../model/ProjectGidAddCustomFieldSettingBody';
|
|
21
|
+
import {ProjectGidAddFollowersBody} from '../model/ProjectGidAddFollowersBody';
|
|
22
|
+
import {ProjectGidAddMembersBody} from '../model/ProjectGidAddMembersBody';
|
|
23
|
+
import {ProjectGidDuplicateBody} from '../model/ProjectGidDuplicateBody';
|
|
24
|
+
import {ProjectGidRemoveCustomFieldSettingBody} from '../model/ProjectGidRemoveCustomFieldSettingBody';
|
|
25
|
+
import {ProjectGidRemoveFollowersBody} from '../model/ProjectGidRemoveFollowersBody';
|
|
26
|
+
import {ProjectGidRemoveMembersBody} from '../model/ProjectGidRemoveMembersBody';
|
|
27
|
+
import {ProjectGidSaveAsTemplateBody} from '../model/ProjectGidSaveAsTemplateBody';
|
|
28
|
+
import {ProjectResponseArray} from '../model/ProjectResponseArray';
|
|
29
|
+
import {ProjectResponseData} from '../model/ProjectResponseData';
|
|
30
|
+
import {ProjectsBody} from '../model/ProjectsBody';
|
|
31
|
+
import {ProjectsProjectGidBody} from '../model/ProjectsProjectGidBody';
|
|
32
|
+
import {TaskCountResponseData} from '../model/TaskCountResponseData';
|
|
33
|
+
import {TeamGidProjectsBody} from '../model/TeamGidProjectsBody';
|
|
34
|
+
import {WorkspaceGidProjectsBody} from '../model/WorkspaceGidProjectsBody';
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Projects service.
|
|
38
|
+
* @module api/ProjectsApi
|
|
39
|
+
* @version 2.0.0
|
|
40
|
+
*/
|
|
41
|
+
export class ProjectsApi {
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Constructs a new ProjectsApi.
|
|
45
|
+
* @alias module:api/ProjectsApi
|
|
46
|
+
* @class
|
|
47
|
+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
48
|
+
* default to {@link module:ApiClient#instanc
|
|
49
|
+
e} if unspecified.
|
|
50
|
+
*/
|
|
51
|
+
constructor(apiClient) {
|
|
52
|
+
this.apiClient = apiClient || ApiClient.instance;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Callback function to receive the result of the addCustomFieldSettingForProject operation.
|
|
57
|
+
* @callback moduleapi/ProjectsApi~addCustomFieldSettingForProjectCallback
|
|
58
|
+
* @param {String} error Error message, if any.
|
|
59
|
+
* @param {module:model/CustomFieldSettingResponseData{ data The data returned by the service call.
|
|
60
|
+
* @param {String} response The complete HTTP response.
|
|
61
|
+
*/
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Add a custom field to a project
|
|
65
|
+
* Custom fields are associated with projects by way of custom field settings. This method creates a setting for the project.
|
|
66
|
+
* @param {module:model/ProjectGidAddCustomFieldSettingBody} body Information about the custom field setting.
|
|
67
|
+
* @param {String} project_gid Globally unique identifier for the project.
|
|
68
|
+
* @param {module:api/ProjectsApi~addCustomFieldSettingForProjectCallback} callback The callback function, accepting three arguments: error, data, response
|
|
69
|
+
* data is of type: {@link <&vendorExtensions.x-jsdoc-type>}
|
|
70
|
+
*/
|
|
71
|
+
addCustomFieldSettingForProject(body, project_gid, callback) {
|
|
72
|
+
|
|
73
|
+
let postBody = body;
|
|
74
|
+
// verify the required parameter 'body' is set
|
|
75
|
+
if (body === undefined || body === null) {
|
|
76
|
+
throw new Error("Missing the required parameter 'body' when calling addCustomFieldSettingForProject");
|
|
77
|
+
}
|
|
78
|
+
// verify the required parameter 'project_gid' is set
|
|
79
|
+
if (project_gid === undefined || project_gid === null) {
|
|
80
|
+
throw new Error("Missing the required parameter 'project_gid' when calling addCustomFieldSettingForProject");
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
let pathParams = {
|
|
84
|
+
'project_gid': project_gid
|
|
85
|
+
};
|
|
86
|
+
let queryParams = {
|
|
87
|
+
|
|
88
|
+
};
|
|
89
|
+
let headerParams = {
|
|
90
|
+
|
|
91
|
+
};
|
|
92
|
+
let formParams = {
|
|
93
|
+
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
let authNames = ['oauth2'];
|
|
97
|
+
let contentTypes = ['application/json; charset=UTF-8'];
|
|
98
|
+
let accepts = ['application/json; charset=UTF-8'];
|
|
99
|
+
let returnType = CustomFieldSettingResponseData;
|
|
100
|
+
|
|
101
|
+
return this.apiClient.callApi(
|
|
102
|
+
'/projects/{project_gid}/addCustomFieldSetting', 'POST',
|
|
103
|
+
pathParams, queryParams, headerParams, formParams, postBody,
|
|
104
|
+
authNames, contentTypes, accepts, returnType, callback
|
|
105
|
+
);
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Callback function to receive the result of the addFollowersForProject operation.
|
|
109
|
+
* @callback moduleapi/ProjectsApi~addFollowersForProjectCallback
|
|
110
|
+
* @param {String} error Error message, if any.
|
|
111
|
+
* @param {module:model/ProjectResponseData{ data The data returned by the service call.
|
|
112
|
+
* @param {String} response The complete HTTP response.
|
|
113
|
+
*/
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* Add followers to a project
|
|
117
|
+
* Adds the specified list of users as followers to the project. Followers are a subset of members who have opted in to receive \"tasks added\" notifications for a project. Therefore, if the users are not already members of the project, they will also become members as a result of this operation. Returns the updated project record.
|
|
118
|
+
* @param {module:model/ProjectGidAddFollowersBody} body Information about the followers being added.
|
|
119
|
+
* @param {String} project_gid Globally unique identifier for the project.
|
|
120
|
+
* @param {Object} opts Optional parameters
|
|
121
|
+
* @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.
|
|
122
|
+
* @param {module:api/ProjectsApi~addFollowersForProjectCallback} callback The callback function, accepting three arguments: error, data, response
|
|
123
|
+
* data is of type: {@link <&vendorExtensions.x-jsdoc-type>}
|
|
124
|
+
*/
|
|
125
|
+
addFollowersForProject(body, project_gid, opts, callback) {
|
|
126
|
+
opts = opts || {};
|
|
127
|
+
let postBody = body;
|
|
128
|
+
// verify the required parameter 'body' is set
|
|
129
|
+
if (body === undefined || body === null) {
|
|
130
|
+
throw new Error("Missing the required parameter 'body' when calling addFollowersForProject");
|
|
131
|
+
}
|
|
132
|
+
// verify the required parameter 'project_gid' is set
|
|
133
|
+
if (project_gid === undefined || project_gid === null) {
|
|
134
|
+
throw new Error("Missing the required parameter 'project_gid' when calling addFollowersForProject");
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
let pathParams = {
|
|
138
|
+
'project_gid': project_gid
|
|
139
|
+
};
|
|
140
|
+
let queryParams = {
|
|
141
|
+
'opt_fields': this.apiClient.buildCollectionParam(opts['opt_fields'], 'csv')
|
|
142
|
+
};
|
|
143
|
+
let headerParams = {
|
|
144
|
+
|
|
145
|
+
};
|
|
146
|
+
let formParams = {
|
|
147
|
+
|
|
148
|
+
};
|
|
149
|
+
|
|
150
|
+
let authNames = ['oauth2'];
|
|
151
|
+
let contentTypes = ['application/json; charset=UTF-8'];
|
|
152
|
+
let accepts = ['application/json; charset=UTF-8'];
|
|
153
|
+
let returnType = ProjectResponseData;
|
|
154
|
+
|
|
155
|
+
return this.apiClient.callApi(
|
|
156
|
+
'/projects/{project_gid}/addFollowers', 'POST',
|
|
157
|
+
pathParams, queryParams, headerParams, formParams, postBody,
|
|
158
|
+
authNames, contentTypes, accepts, returnType, callback
|
|
159
|
+
);
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
* Callback function to receive the result of the addMembersForProject operation.
|
|
163
|
+
* @callback moduleapi/ProjectsApi~addMembersForProjectCallback
|
|
164
|
+
* @param {String} error Error message, if any.
|
|
165
|
+
* @param {module:model/ProjectResponseData{ data The data returned by the service call.
|
|
166
|
+
* @param {String} response The complete HTTP response.
|
|
167
|
+
*/
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* Add users to a project
|
|
171
|
+
* Adds the specified list of users as members of the project. Note that a user being added as a member may also be added as a *follower* as a result of this operation. This is because the user's default notification settings (i.e., in the \"Notifcations\" tab of \"My Profile Settings\") will override this endpoint's default behavior of setting \"Tasks added\" notifications to `false`. Returns the updated project record.
|
|
172
|
+
* @param {module:model/ProjectGidAddMembersBody} body Information about the members being added.
|
|
173
|
+
* @param {String} project_gid Globally unique identifier for the project.
|
|
174
|
+
* @param {Object} opts Optional parameters
|
|
175
|
+
* @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.
|
|
176
|
+
* @param {module:api/ProjectsApi~addMembersForProjectCallback} callback The callback function, accepting three arguments: error, data, response
|
|
177
|
+
* data is of type: {@link <&vendorExtensions.x-jsdoc-type>}
|
|
178
|
+
*/
|
|
179
|
+
addMembersForProject(body, project_gid, opts, callback) {
|
|
180
|
+
opts = opts || {};
|
|
181
|
+
let postBody = body;
|
|
182
|
+
// verify the required parameter 'body' is set
|
|
183
|
+
if (body === undefined || body === null) {
|
|
184
|
+
throw new Error("Missing the required parameter 'body' when calling addMembersForProject");
|
|
185
|
+
}
|
|
186
|
+
// verify the required parameter 'project_gid' is set
|
|
187
|
+
if (project_gid === undefined || project_gid === null) {
|
|
188
|
+
throw new Error("Missing the required parameter 'project_gid' when calling addMembersForProject");
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
let pathParams = {
|
|
192
|
+
'project_gid': project_gid
|
|
193
|
+
};
|
|
194
|
+
let queryParams = {
|
|
195
|
+
'opt_fields': this.apiClient.buildCollectionParam(opts['opt_fields'], 'csv')
|
|
196
|
+
};
|
|
197
|
+
let headerParams = {
|
|
198
|
+
|
|
199
|
+
};
|
|
200
|
+
let formParams = {
|
|
201
|
+
|
|
202
|
+
};
|
|
203
|
+
|
|
204
|
+
let authNames = ['oauth2'];
|
|
205
|
+
let contentTypes = ['application/json; charset=UTF-8'];
|
|
206
|
+
let accepts = ['application/json; charset=UTF-8'];
|
|
207
|
+
let returnType = ProjectResponseData;
|
|
208
|
+
|
|
209
|
+
return this.apiClient.callApi(
|
|
210
|
+
'/projects/{project_gid}/addMembers', 'POST',
|
|
211
|
+
pathParams, queryParams, headerParams, formParams, postBody,
|
|
212
|
+
authNames, contentTypes, accepts, returnType, callback
|
|
213
|
+
);
|
|
214
|
+
}
|
|
215
|
+
/**
|
|
216
|
+
* Callback function to receive the result of the createProject operation.
|
|
217
|
+
* @callback moduleapi/ProjectsApi~createProjectCallback
|
|
218
|
+
* @param {String} error Error message, if any.
|
|
219
|
+
* @param {module:model/ProjectResponseData{ data The data returned by the service call.
|
|
220
|
+
* @param {String} response The complete HTTP response.
|
|
221
|
+
*/
|
|
222
|
+
|
|
223
|
+
/**
|
|
224
|
+
* Create a project
|
|
225
|
+
* Create a new project in a workspace or team. Every project is required to be created in a specific workspace or organization, and this cannot be changed once set. Note that you can use the `workspace` parameter regardless of whether or not it is an organization. If the workspace for your project is an organization, you must also supply a `team` to share the project with. Returns the full record of the newly created project.
|
|
226
|
+
* @param {module:model/ProjectsBody} body The project to create.
|
|
227
|
+
* @param {Object} opts Optional parameters
|
|
228
|
+
* @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.
|
|
229
|
+
* @param {module:api/ProjectsApi~createProjectCallback} callback The callback function, accepting three arguments: error, data, response
|
|
230
|
+
* data is of type: {@link <&vendorExtensions.x-jsdoc-type>}
|
|
231
|
+
*/
|
|
232
|
+
createProject(body, opts, callback) {
|
|
233
|
+
opts = opts || {};
|
|
234
|
+
let postBody = body;
|
|
235
|
+
// verify the required parameter 'body' is set
|
|
236
|
+
if (body === undefined || body === null) {
|
|
237
|
+
throw new Error("Missing the required parameter 'body' when calling createProject");
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
let pathParams = {
|
|
241
|
+
|
|
242
|
+
};
|
|
243
|
+
let queryParams = {
|
|
244
|
+
'opt_fields': this.apiClient.buildCollectionParam(opts['opt_fields'], 'csv')
|
|
245
|
+
};
|
|
246
|
+
let headerParams = {
|
|
247
|
+
|
|
248
|
+
};
|
|
249
|
+
let formParams = {
|
|
250
|
+
|
|
251
|
+
};
|
|
252
|
+
|
|
253
|
+
let authNames = ['oauth2'];
|
|
254
|
+
let contentTypes = ['application/json; charset=UTF-8'];
|
|
255
|
+
let accepts = ['application/json; charset=UTF-8'];
|
|
256
|
+
let returnType = ProjectResponseData;
|
|
257
|
+
|
|
258
|
+
return this.apiClient.callApi(
|
|
259
|
+
'/projects', 'POST',
|
|
260
|
+
pathParams, queryParams, headerParams, formParams, postBody,
|
|
261
|
+
authNames, contentTypes, accepts, returnType, callback
|
|
262
|
+
);
|
|
263
|
+
}
|
|
264
|
+
/**
|
|
265
|
+
* Callback function to receive the result of the createProjectForTeam operation.
|
|
266
|
+
* @callback moduleapi/ProjectsApi~createProjectForTeamCallback
|
|
267
|
+
* @param {String} error Error message, if any.
|
|
268
|
+
* @param {module:model/ProjectResponseData{ data The data returned by the service call.
|
|
269
|
+
* @param {String} response The complete HTTP response.
|
|
270
|
+
*/
|
|
271
|
+
|
|
272
|
+
/**
|
|
273
|
+
* Create a project in a team
|
|
274
|
+
* Creates a project shared with the given team. Returns the full record of the newly created project.
|
|
275
|
+
* @param {module:model/TeamGidProjectsBody} body The new project to create.
|
|
276
|
+
* @param {String} team_gid Globally unique identifier for the team.
|
|
277
|
+
* @param {Object} opts Optional parameters
|
|
278
|
+
* @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.
|
|
279
|
+
* @param {module:api/ProjectsApi~createProjectForTeamCallback} callback The callback function, accepting three arguments: error, data, response
|
|
280
|
+
* data is of type: {@link <&vendorExtensions.x-jsdoc-type>}
|
|
281
|
+
*/
|
|
282
|
+
createProjectForTeam(body, team_gid, opts, callback) {
|
|
283
|
+
opts = opts || {};
|
|
284
|
+
let postBody = body;
|
|
285
|
+
// verify the required parameter 'body' is set
|
|
286
|
+
if (body === undefined || body === null) {
|
|
287
|
+
throw new Error("Missing the required parameter 'body' when calling createProjectForTeam");
|
|
288
|
+
}
|
|
289
|
+
// verify the required parameter 'team_gid' is set
|
|
290
|
+
if (team_gid === undefined || team_gid === null) {
|
|
291
|
+
throw new Error("Missing the required parameter 'team_gid' when calling createProjectForTeam");
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
let pathParams = {
|
|
295
|
+
'team_gid': team_gid
|
|
296
|
+
};
|
|
297
|
+
let queryParams = {
|
|
298
|
+
'opt_fields': this.apiClient.buildCollectionParam(opts['opt_fields'], 'csv')
|
|
299
|
+
};
|
|
300
|
+
let headerParams = {
|
|
301
|
+
|
|
302
|
+
};
|
|
303
|
+
let formParams = {
|
|
304
|
+
|
|
305
|
+
};
|
|
306
|
+
|
|
307
|
+
let authNames = ['oauth2'];
|
|
308
|
+
let contentTypes = ['application/json; charset=UTF-8'];
|
|
309
|
+
let accepts = ['application/json; charset=UTF-8'];
|
|
310
|
+
let returnType = ProjectResponseData;
|
|
311
|
+
|
|
312
|
+
return this.apiClient.callApi(
|
|
313
|
+
'/teams/{team_gid}/projects', 'POST',
|
|
314
|
+
pathParams, queryParams, headerParams, formParams, postBody,
|
|
315
|
+
authNames, contentTypes, accepts, returnType, callback
|
|
316
|
+
);
|
|
317
|
+
}
|
|
318
|
+
/**
|
|
319
|
+
* Callback function to receive the result of the createProjectForWorkspace operation.
|
|
320
|
+
* @callback moduleapi/ProjectsApi~createProjectForWorkspaceCallback
|
|
321
|
+
* @param {String} error Error message, if any.
|
|
322
|
+
* @param {module:model/ProjectResponseData{ data The data returned by the service call.
|
|
323
|
+
* @param {String} response The complete HTTP response.
|
|
324
|
+
*/
|
|
325
|
+
|
|
326
|
+
/**
|
|
327
|
+
* Create a project in a workspace
|
|
328
|
+
* Creates a project in the workspace. If the workspace for your project is an organization, you must also supply a team to share the project with. Returns the full record of the newly created project.
|
|
329
|
+
* @param {module:model/WorkspaceGidProjectsBody} body The new project to create.
|
|
330
|
+
* @param {String} workspace_gid Globally unique identifier for the workspace or organization.
|
|
331
|
+
* @param {Object} opts Optional parameters
|
|
332
|
+
* @param {Array.<module:model/String>} opts.opt_fields This endpoint returns a compact resource, which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include.
|
|
333
|
+
* @param {module:api/ProjectsApi~createProjectForWorkspaceCallback} callback The callback function, accepting three arguments: error, data, response
|
|
334
|
+
* data is of type: {@link <&vendorExtensions.x-jsdoc-type>}
|
|
335
|
+
*/
|
|
336
|
+
createProjectForWorkspace(body, workspace_gid, opts, callback) {
|
|
337
|
+
opts = opts || {};
|
|
338
|
+
let postBody = body;
|
|
339
|
+
// verify the required parameter 'body' is set
|
|
340
|
+
if (body === undefined || body === null) {
|
|
341
|
+
throw new Error("Missing the required parameter 'body' when calling createProjectForWorkspace");
|
|
342
|
+
}
|
|
343
|
+
// verify the required parameter 'workspace_gid' is set
|
|
344
|
+
if (workspace_gid === undefined || workspace_gid === null) {
|
|
345
|
+
throw new Error("Missing the required parameter 'workspace_gid' when calling createProjectForWorkspace");
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
let pathParams = {
|
|
349
|
+
'workspace_gid': workspace_gid
|
|
350
|
+
};
|
|
351
|
+
let queryParams = {
|
|
352
|
+
'opt_fields': this.apiClient.buildCollectionParam(opts['opt_fields'], 'csv')
|
|
353
|
+
};
|
|
354
|
+
let headerParams = {
|
|
355
|
+
|
|
356
|
+
};
|
|
357
|
+
let formParams = {
|
|
358
|
+
|
|
359
|
+
};
|
|
360
|
+
|
|
361
|
+
let authNames = ['oauth2'];
|
|
362
|
+
let contentTypes = ['application/json; charset=UTF-8'];
|
|
363
|
+
let accepts = ['application/json; charset=UTF-8'];
|
|
364
|
+
let returnType = ProjectResponseData;
|
|
365
|
+
|
|
366
|
+
return this.apiClient.callApi(
|
|
367
|
+
'/workspaces/{workspace_gid}/projects', 'POST',
|
|
368
|
+
pathParams, queryParams, headerParams, formParams, postBody,
|
|
369
|
+
authNames, contentTypes, accepts, returnType, callback
|
|
370
|
+
);
|
|
371
|
+
}
|
|
372
|
+
/**
|
|
373
|
+
* Callback function to receive the result of the deleteProject operation.
|
|
374
|
+
* @callback moduleapi/ProjectsApi~deleteProjectCallback
|
|
375
|
+
* @param {String} error Error message, if any.
|
|
376
|
+
* @param {module:model/EmptyResponseData{ data The data returned by the service call.
|
|
377
|
+
* @param {String} response The complete HTTP response.
|
|
378
|
+
*/
|
|
379
|
+
|
|
380
|
+
/**
|
|
381
|
+
* Delete a project
|
|
382
|
+
* A specific, existing project can be deleted by making a DELETE request on the URL for that project. Returns an empty data record.
|
|
383
|
+
* @param {String} project_gid Globally unique identifier for the project.
|
|
384
|
+
* @param {module:api/ProjectsApi~deleteProjectCallback} callback The callback function, accepting three arguments: error, data, response
|
|
385
|
+
* data is of type: {@link <&vendorExtensions.x-jsdoc-type>}
|
|
386
|
+
*/
|
|
387
|
+
deleteProject(project_gid, callback) {
|
|
388
|
+
|
|
389
|
+
let postBody = null;
|
|
390
|
+
// verify the required parameter 'project_gid' is set
|
|
391
|
+
if (project_gid === undefined || project_gid === null) {
|
|
392
|
+
throw new Error("Missing the required parameter 'project_gid' when calling deleteProject");
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
let pathParams = {
|
|
396
|
+
'project_gid': project_gid
|
|
397
|
+
};
|
|
398
|
+
let queryParams = {
|
|
399
|
+
|
|
400
|
+
};
|
|
401
|
+
let headerParams = {
|
|
402
|
+
|
|
403
|
+
};
|
|
404
|
+
let formParams = {
|
|
405
|
+
|
|
406
|
+
};
|
|
407
|
+
|
|
408
|
+
let authNames = ['oauth2'];
|
|
409
|
+
let contentTypes = [];
|
|
410
|
+
let accepts = ['application/json; charset=UTF-8'];
|
|
411
|
+
let returnType = EmptyResponseData;
|
|
412
|
+
|
|
413
|
+
return this.apiClient.callApi(
|
|
414
|
+
'/projects/{project_gid}', 'DELETE',
|
|
415
|
+
pathParams, queryParams, headerParams, formParams, postBody,
|
|
416
|
+
authNames, contentTypes, accepts, returnType, callback
|
|
417
|
+
);
|
|
418
|
+
}
|
|
419
|
+
/**
|
|
420
|
+
* Callback function to receive the result of the duplicateProject operation.
|
|
421
|
+
* @callback moduleapi/ProjectsApi~duplicateProjectCallback
|
|
422
|
+
* @param {String} error Error message, if any.
|
|
423
|
+
* @param {module:model/JobResponseData{ data The data returned by the service call.
|
|
424
|
+
* @param {String} response The complete HTTP response.
|
|
425
|
+
*/
|
|
426
|
+
|
|
427
|
+
/**
|
|
428
|
+
* Duplicate a project
|
|
429
|
+
* Creates and returns a job that will asynchronously handle the duplication.
|
|
430
|
+
* @param {String} project_gid Globally unique identifier for the project.
|
|
431
|
+
* @param {Object} opts Optional parameters
|
|
432
|
+
* @param {module:model/ProjectGidDuplicateBody} opts.body Describes the duplicate's name and the elements that will be duplicated.
|
|
433
|
+
* @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.
|
|
434
|
+
* @param {module:api/ProjectsApi~duplicateProjectCallback} callback The callback function, accepting three arguments: error, data, response
|
|
435
|
+
* data is of type: {@link <&vendorExtensions.x-jsdoc-type>}
|
|
436
|
+
*/
|
|
437
|
+
duplicateProject(project_gid, opts, callback) {
|
|
438
|
+
opts = opts || {};
|
|
439
|
+
let postBody = opts['body'];
|
|
440
|
+
// verify the required parameter 'project_gid' is set
|
|
441
|
+
if (project_gid === undefined || project_gid === null) {
|
|
442
|
+
throw new Error("Missing the required parameter 'project_gid' when calling duplicateProject");
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
let pathParams = {
|
|
446
|
+
'project_gid': project_gid
|
|
447
|
+
};
|
|
448
|
+
let queryParams = {
|
|
449
|
+
'opt_fields': this.apiClient.buildCollectionParam(opts['opt_fields'], 'csv')
|
|
450
|
+
};
|
|
451
|
+
let headerParams = {
|
|
452
|
+
|
|
453
|
+
};
|
|
454
|
+
let formParams = {
|
|
455
|
+
|
|
456
|
+
};
|
|
457
|
+
|
|
458
|
+
let authNames = ['oauth2'];
|
|
459
|
+
let contentTypes = ['application/json; charset=UTF-8'];
|
|
460
|
+
let accepts = ['application/json; charset=UTF-8'];
|
|
461
|
+
let returnType = JobResponseData;
|
|
462
|
+
|
|
463
|
+
return this.apiClient.callApi(
|
|
464
|
+
'/projects/{project_gid}/duplicate', 'POST',
|
|
465
|
+
pathParams, queryParams, headerParams, formParams, postBody,
|
|
466
|
+
authNames, contentTypes, accepts, returnType, callback
|
|
467
|
+
);
|
|
468
|
+
}
|
|
469
|
+
/**
|
|
470
|
+
* Callback function to receive the result of the getProject operation.
|
|
471
|
+
* @callback moduleapi/ProjectsApi~getProjectCallback
|
|
472
|
+
* @param {String} error Error message, if any.
|
|
473
|
+
* @param {module:model/ProjectResponseData{ data The data returned by the service call.
|
|
474
|
+
* @param {String} response The complete HTTP response.
|
|
475
|
+
*/
|
|
476
|
+
|
|
477
|
+
/**
|
|
478
|
+
* Get a project
|
|
479
|
+
* Returns the complete project record for a single project.
|
|
480
|
+
* @param {String} project_gid Globally unique identifier for the project.
|
|
481
|
+
* @param {Object} opts Optional parameters
|
|
482
|
+
* @param {Array.<module:model/String>} opts.opt_fields This endpoint returns a compact resource, which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include.
|
|
483
|
+
* @param {module:api/ProjectsApi~getProjectCallback} callback The callback function, accepting three arguments: error, data, response
|
|
484
|
+
* data is of type: {@link <&vendorExtensions.x-jsdoc-type>}
|
|
485
|
+
*/
|
|
486
|
+
getProject(project_gid, opts, callback) {
|
|
487
|
+
opts = opts || {};
|
|
488
|
+
let postBody = null;
|
|
489
|
+
// verify the required parameter 'project_gid' is set
|
|
490
|
+
if (project_gid === undefined || project_gid === null) {
|
|
491
|
+
throw new Error("Missing the required parameter 'project_gid' when calling getProject");
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
let pathParams = {
|
|
495
|
+
'project_gid': project_gid
|
|
496
|
+
};
|
|
497
|
+
let queryParams = {
|
|
498
|
+
'opt_fields': this.apiClient.buildCollectionParam(opts['opt_fields'], 'csv')
|
|
499
|
+
};
|
|
500
|
+
let headerParams = {
|
|
501
|
+
|
|
502
|
+
};
|
|
503
|
+
let formParams = {
|
|
504
|
+
|
|
505
|
+
};
|
|
506
|
+
|
|
507
|
+
let authNames = ['oauth2'];
|
|
508
|
+
let contentTypes = [];
|
|
509
|
+
let accepts = ['application/json; charset=UTF-8'];
|
|
510
|
+
let returnType = ProjectResponseData;
|
|
511
|
+
|
|
512
|
+
return this.apiClient.callApi(
|
|
513
|
+
'/projects/{project_gid}', 'GET',
|
|
514
|
+
pathParams, queryParams, headerParams, formParams, postBody,
|
|
515
|
+
authNames, contentTypes, accepts, returnType, callback
|
|
516
|
+
);
|
|
517
|
+
}
|
|
518
|
+
/**
|
|
519
|
+
* Callback function to receive the result of the getProjects operation.
|
|
520
|
+
* @callback moduleapi/ProjectsApi~getProjectsCallback
|
|
521
|
+
* @param {String} error Error message, if any.
|
|
522
|
+
* @param {module:model/ProjectResponseArray{ data The data returned by the service call.
|
|
523
|
+
* @param {String} response The complete HTTP response.
|
|
524
|
+
*/
|
|
525
|
+
|
|
526
|
+
/**
|
|
527
|
+
* Get multiple projects
|
|
528
|
+
* Returns the compact project records for some filtered set of projects. Use one or more of the parameters provided to filter the projects returned. *Note: This endpoint may timeout for large domains. Try filtering by team!*
|
|
529
|
+
* @param {Object} opts Optional parameters
|
|
530
|
+
* @param {Number} opts.limit Results per page. The number of objects to return per page. The value must be between 1 and 100.
|
|
531
|
+
* @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.'
|
|
532
|
+
* @param {String} opts.workspace The workspace or organization to filter projects on.
|
|
533
|
+
* @param {String} opts.team The team to filter projects on.
|
|
534
|
+
* @param {Boolean} opts.archived Only return projects whose `archived` field takes on the value of this parameter.
|
|
535
|
+
* @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.
|
|
536
|
+
* @param {module:api/ProjectsApi~getProjectsCallback} callback The callback function, accepting three arguments: error, data, response
|
|
537
|
+
* data is of type: {@link <&vendorExtensions.x-jsdoc-type>}
|
|
538
|
+
*/
|
|
539
|
+
getProjects(opts, callback) {
|
|
540
|
+
opts = opts || {};
|
|
541
|
+
let postBody = null;
|
|
542
|
+
|
|
543
|
+
let pathParams = {
|
|
544
|
+
|
|
545
|
+
};
|
|
546
|
+
let queryParams = {
|
|
547
|
+
'limit': opts['limit'],'offset': opts['offset'],'workspace': opts['workspace'],'team': opts['team'],'archived': opts['archived'],'opt_fields': this.apiClient.buildCollectionParam(opts['opt_fields'], 'csv')
|
|
548
|
+
};
|
|
549
|
+
let headerParams = {
|
|
550
|
+
|
|
551
|
+
};
|
|
552
|
+
let formParams = {
|
|
553
|
+
|
|
554
|
+
};
|
|
555
|
+
|
|
556
|
+
let authNames = ['oauth2'];
|
|
557
|
+
let contentTypes = [];
|
|
558
|
+
let accepts = ['application/json; charset=UTF-8'];
|
|
559
|
+
let returnType = ProjectResponseArray;
|
|
560
|
+
|
|
561
|
+
return this.apiClient.callApi(
|
|
562
|
+
'/projects', 'GET',
|
|
563
|
+
pathParams, queryParams, headerParams, formParams, postBody,
|
|
564
|
+
authNames, contentTypes, accepts, returnType, callback
|
|
565
|
+
);
|
|
566
|
+
}
|
|
567
|
+
/**
|
|
568
|
+
* Callback function to receive the result of the getProjectsForTask operation.
|
|
569
|
+
* @callback moduleapi/ProjectsApi~getProjectsForTaskCallback
|
|
570
|
+
* @param {String} error Error message, if any.
|
|
571
|
+
* @param {module:model/ProjectResponseArray{ data The data returned by the service call.
|
|
572
|
+
* @param {String} response The complete HTTP response.
|
|
573
|
+
*/
|
|
574
|
+
|
|
575
|
+
/**
|
|
576
|
+
* Get projects a task is in
|
|
577
|
+
* Returns a compact representation of all of the projects the task is in.
|
|
578
|
+
* @param {String} task_gid The task to operate on.
|
|
579
|
+
* @param {Object} opts Optional parameters
|
|
580
|
+
* @param {Number} opts.limit Results per page. The number of objects to return per page. The value must be between 1 and 100.
|
|
581
|
+
* @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.'
|
|
582
|
+
* @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.
|
|
583
|
+
* @param {module:api/ProjectsApi~getProjectsForTaskCallback} callback The callback function, accepting three arguments: error, data, response
|
|
584
|
+
* data is of type: {@link <&vendorExtensions.x-jsdoc-type>}
|
|
585
|
+
*/
|
|
586
|
+
getProjectsForTask(task_gid, opts, callback) {
|
|
587
|
+
opts = opts || {};
|
|
588
|
+
let postBody = null;
|
|
589
|
+
// verify the required parameter 'task_gid' is set
|
|
590
|
+
if (task_gid === undefined || task_gid === null) {
|
|
591
|
+
throw new Error("Missing the required parameter 'task_gid' when calling getProjectsForTask");
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
let pathParams = {
|
|
595
|
+
'task_gid': task_gid
|
|
596
|
+
};
|
|
597
|
+
let queryParams = {
|
|
598
|
+
'limit': opts['limit'],'offset': opts['offset'],'opt_fields': this.apiClient.buildCollectionParam(opts['opt_fields'], 'csv')
|
|
599
|
+
};
|
|
600
|
+
let headerParams = {
|
|
601
|
+
|
|
602
|
+
};
|
|
603
|
+
let formParams = {
|
|
604
|
+
|
|
605
|
+
};
|
|
606
|
+
|
|
607
|
+
let authNames = ['oauth2'];
|
|
608
|
+
let contentTypes = [];
|
|
609
|
+
let accepts = ['application/json; charset=UTF-8'];
|
|
610
|
+
let returnType = ProjectResponseArray;
|
|
611
|
+
|
|
612
|
+
return this.apiClient.callApi(
|
|
613
|
+
'/tasks/{task_gid}/projects', 'GET',
|
|
614
|
+
pathParams, queryParams, headerParams, formParams, postBody,
|
|
615
|
+
authNames, contentTypes, accepts, returnType, callback
|
|
616
|
+
);
|
|
617
|
+
}
|
|
618
|
+
/**
|
|
619
|
+
* Callback function to receive the result of the getProjectsForTeam operation.
|
|
620
|
+
* @callback moduleapi/ProjectsApi~getProjectsForTeamCallback
|
|
621
|
+
* @param {String} error Error message, if any.
|
|
622
|
+
* @param {module:model/ProjectResponseArray{ data The data returned by the service call.
|
|
623
|
+
* @param {String} response The complete HTTP response.
|
|
624
|
+
*/
|
|
625
|
+
|
|
626
|
+
/**
|
|
627
|
+
* Get a team's projects
|
|
628
|
+
* Returns the compact project records for all projects in the team.
|
|
629
|
+
* @param {String} team_gid Globally unique identifier for the team.
|
|
630
|
+
* @param {Object} opts Optional parameters
|
|
631
|
+
* @param {Number} opts.limit Results per page. The number of objects to return per page. The value must be between 1 and 100.
|
|
632
|
+
* @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.'
|
|
633
|
+
* @param {Boolean} opts.archived Only return projects whose `archived` field takes on the value of this parameter.
|
|
634
|
+
* @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.
|
|
635
|
+
* @param {module:api/ProjectsApi~getProjectsForTeamCallback} callback The callback function, accepting three arguments: error, data, response
|
|
636
|
+
* data is of type: {@link <&vendorExtensions.x-jsdoc-type>}
|
|
637
|
+
*/
|
|
638
|
+
getProjectsForTeam(team_gid, opts, callback) {
|
|
639
|
+
opts = opts || {};
|
|
640
|
+
let postBody = null;
|
|
641
|
+
// verify the required parameter 'team_gid' is set
|
|
642
|
+
if (team_gid === undefined || team_gid === null) {
|
|
643
|
+
throw new Error("Missing the required parameter 'team_gid' when calling getProjectsForTeam");
|
|
644
|
+
}
|
|
645
|
+
|
|
646
|
+
let pathParams = {
|
|
647
|
+
'team_gid': team_gid
|
|
648
|
+
};
|
|
649
|
+
let queryParams = {
|
|
650
|
+
'limit': opts['limit'],'offset': opts['offset'],'archived': opts['archived'],'opt_fields': this.apiClient.buildCollectionParam(opts['opt_fields'], 'csv')
|
|
651
|
+
};
|
|
652
|
+
let headerParams = {
|
|
653
|
+
|
|
654
|
+
};
|
|
655
|
+
let formParams = {
|
|
656
|
+
|
|
657
|
+
};
|
|
658
|
+
|
|
659
|
+
let authNames = ['oauth2'];
|
|
660
|
+
let contentTypes = [];
|
|
661
|
+
let accepts = ['application/json; charset=UTF-8'];
|
|
662
|
+
let returnType = ProjectResponseArray;
|
|
663
|
+
|
|
664
|
+
return this.apiClient.callApi(
|
|
665
|
+
'/teams/{team_gid}/projects', 'GET',
|
|
666
|
+
pathParams, queryParams, headerParams, formParams, postBody,
|
|
667
|
+
authNames, contentTypes, accepts, returnType, callback
|
|
668
|
+
);
|
|
669
|
+
}
|
|
670
|
+
/**
|
|
671
|
+
* Callback function to receive the result of the getProjectsForWorkspace operation.
|
|
672
|
+
* @callback moduleapi/ProjectsApi~getProjectsForWorkspaceCallback
|
|
673
|
+
* @param {String} error Error message, if any.
|
|
674
|
+
* @param {module:model/ProjectResponseArray{ data The data returned by the service call.
|
|
675
|
+
* @param {String} response The complete HTTP response.
|
|
676
|
+
*/
|
|
677
|
+
|
|
678
|
+
/**
|
|
679
|
+
* Get all projects in a workspace
|
|
680
|
+
* Returns the compact project records for all projects in the workspace. *Note: This endpoint may timeout for large domains. Prefer the `/teams/{team_gid}/projects` endpoint.*
|
|
681
|
+
* @param {String} workspace_gid Globally unique identifier for the workspace or organization.
|
|
682
|
+
* @param {Object} opts Optional parameters
|
|
683
|
+
* @param {Number} opts.limit Results per page. The number of objects to return per page. The value must be between 1 and 100.
|
|
684
|
+
* @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.'
|
|
685
|
+
* @param {Boolean} opts.archived Only return projects whose `archived` field takes on the value of this parameter.
|
|
686
|
+
* @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.
|
|
687
|
+
* @param {module:api/ProjectsApi~getProjectsForWorkspaceCallback} callback The callback function, accepting three arguments: error, data, response
|
|
688
|
+
* data is of type: {@link <&vendorExtensions.x-jsdoc-type>}
|
|
689
|
+
*/
|
|
690
|
+
getProjectsForWorkspace(workspace_gid, opts, callback) {
|
|
691
|
+
opts = opts || {};
|
|
692
|
+
let postBody = null;
|
|
693
|
+
// verify the required parameter 'workspace_gid' is set
|
|
694
|
+
if (workspace_gid === undefined || workspace_gid === null) {
|
|
695
|
+
throw new Error("Missing the required parameter 'workspace_gid' when calling getProjectsForWorkspace");
|
|
696
|
+
}
|
|
697
|
+
|
|
698
|
+
let pathParams = {
|
|
699
|
+
'workspace_gid': workspace_gid
|
|
700
|
+
};
|
|
701
|
+
let queryParams = {
|
|
702
|
+
'limit': opts['limit'],'offset': opts['offset'],'archived': opts['archived'],'opt_fields': this.apiClient.buildCollectionParam(opts['opt_fields'], 'csv')
|
|
703
|
+
};
|
|
704
|
+
let headerParams = {
|
|
705
|
+
|
|
706
|
+
};
|
|
707
|
+
let formParams = {
|
|
708
|
+
|
|
709
|
+
};
|
|
710
|
+
|
|
711
|
+
let authNames = ['oauth2'];
|
|
712
|
+
let contentTypes = [];
|
|
713
|
+
let accepts = ['application/json; charset=UTF-8'];
|
|
714
|
+
let returnType = ProjectResponseArray;
|
|
715
|
+
|
|
716
|
+
return this.apiClient.callApi(
|
|
717
|
+
'/workspaces/{workspace_gid}/projects', 'GET',
|
|
718
|
+
pathParams, queryParams, headerParams, formParams, postBody,
|
|
719
|
+
authNames, contentTypes, accepts, returnType, callback
|
|
720
|
+
);
|
|
721
|
+
}
|
|
722
|
+
/**
|
|
723
|
+
* Callback function to receive the result of the getTaskCountsForProject operation.
|
|
724
|
+
* @callback moduleapi/ProjectsApi~getTaskCountsForProjectCallback
|
|
725
|
+
* @param {String} error Error message, if any.
|
|
726
|
+
* @param {module:model/TaskCountResponseData{ data The data returned by the service call.
|
|
727
|
+
* @param {String} response The complete HTTP response.
|
|
728
|
+
*/
|
|
729
|
+
|
|
730
|
+
/**
|
|
731
|
+
* Get task count of a project
|
|
732
|
+
* Get an object that holds task count fields. **All fields are excluded by default**. You must [opt in](/docs/inputoutput-options) using `opt_fields` to get any information from this endpoint. This endpoint has an additional [rate limit](/docs/rate-limits) and each field counts especially high against our [cost limits](/docs/rate-limits#cost-limits). Milestones are just tasks, so they are included in the `num_tasks`, `num_incomplete_tasks`, and `num_completed_tasks` counts.
|
|
733
|
+
* @param {String} project_gid Globally unique identifier for the project.
|
|
734
|
+
* @param {Object} opts Optional parameters
|
|
735
|
+
* @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.
|
|
736
|
+
* @param {module:api/ProjectsApi~getTaskCountsForProjectCallback} callback The callback function, accepting three arguments: error, data, response
|
|
737
|
+
* data is of type: {@link <&vendorExtensions.x-jsdoc-type>}
|
|
738
|
+
*/
|
|
739
|
+
getTaskCountsForProject(project_gid, opts, callback) {
|
|
740
|
+
opts = opts || {};
|
|
741
|
+
let postBody = null;
|
|
742
|
+
// verify the required parameter 'project_gid' is set
|
|
743
|
+
if (project_gid === undefined || project_gid === null) {
|
|
744
|
+
throw new Error("Missing the required parameter 'project_gid' when calling getTaskCountsForProject");
|
|
745
|
+
}
|
|
746
|
+
|
|
747
|
+
let pathParams = {
|
|
748
|
+
'project_gid': project_gid
|
|
749
|
+
};
|
|
750
|
+
let queryParams = {
|
|
751
|
+
'opt_fields': this.apiClient.buildCollectionParam(opts['opt_fields'], 'csv')
|
|
752
|
+
};
|
|
753
|
+
let headerParams = {
|
|
754
|
+
|
|
755
|
+
};
|
|
756
|
+
let formParams = {
|
|
757
|
+
|
|
758
|
+
};
|
|
759
|
+
|
|
760
|
+
let authNames = ['oauth2'];
|
|
761
|
+
let contentTypes = [];
|
|
762
|
+
let accepts = ['application/json; charset=UTF-8'];
|
|
763
|
+
let returnType = TaskCountResponseData;
|
|
764
|
+
|
|
765
|
+
return this.apiClient.callApi(
|
|
766
|
+
'/projects/{project_gid}/task_counts', 'GET',
|
|
767
|
+
pathParams, queryParams, headerParams, formParams, postBody,
|
|
768
|
+
authNames, contentTypes, accepts, returnType, callback
|
|
769
|
+
);
|
|
770
|
+
}
|
|
771
|
+
/**
|
|
772
|
+
* Callback function to receive the result of the projectSaveAsTemplate operation.
|
|
773
|
+
* @callback moduleapi/ProjectsApi~projectSaveAsTemplateCallback
|
|
774
|
+
* @param {String} error Error message, if any.
|
|
775
|
+
* @param {module:model/JobResponseData{ data The data returned by the service call.
|
|
776
|
+
* @param {String} response The complete HTTP response.
|
|
777
|
+
*/
|
|
778
|
+
|
|
779
|
+
/**
|
|
780
|
+
* Create a project template from a project
|
|
781
|
+
* Creates and returns a job that will asynchronously handle the project template creation. Note that while the resulting project template can be accessed with the API, it won't be visible in the Asana UI until Project Templates 2.0 is launched in the app. See more in [this forum post](https://forum.asana.com/t/a-new-api-for-project-templates/156432).
|
|
782
|
+
* @param {module:model/ProjectGidSaveAsTemplateBody} body Describes the inputs used for creating a project template, such as the resulting project template's name, which team it should be created in.
|
|
783
|
+
* @param {String} project_gid Globally unique identifier for the project.
|
|
784
|
+
* @param {Object} opts Optional parameters
|
|
785
|
+
* @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.
|
|
786
|
+
* @param {module:api/ProjectsApi~projectSaveAsTemplateCallback} callback The callback function, accepting three arguments: error, data, response
|
|
787
|
+
* data is of type: {@link <&vendorExtensions.x-jsdoc-type>}
|
|
788
|
+
*/
|
|
789
|
+
projectSaveAsTemplate(body, project_gid, opts, callback) {
|
|
790
|
+
opts = opts || {};
|
|
791
|
+
let postBody = body;
|
|
792
|
+
// verify the required parameter 'body' is set
|
|
793
|
+
if (body === undefined || body === null) {
|
|
794
|
+
throw new Error("Missing the required parameter 'body' when calling projectSaveAsTemplate");
|
|
795
|
+
}
|
|
796
|
+
// verify the required parameter 'project_gid' is set
|
|
797
|
+
if (project_gid === undefined || project_gid === null) {
|
|
798
|
+
throw new Error("Missing the required parameter 'project_gid' when calling projectSaveAsTemplate");
|
|
799
|
+
}
|
|
800
|
+
|
|
801
|
+
let pathParams = {
|
|
802
|
+
'project_gid': project_gid
|
|
803
|
+
};
|
|
804
|
+
let queryParams = {
|
|
805
|
+
'opt_fields': this.apiClient.buildCollectionParam(opts['opt_fields'], 'csv')
|
|
806
|
+
};
|
|
807
|
+
let headerParams = {
|
|
808
|
+
|
|
809
|
+
};
|
|
810
|
+
let formParams = {
|
|
811
|
+
|
|
812
|
+
};
|
|
813
|
+
|
|
814
|
+
let authNames = ['oauth2'];
|
|
815
|
+
let contentTypes = ['application/json; charset=UTF-8'];
|
|
816
|
+
let accepts = ['application/json; charset=UTF-8'];
|
|
817
|
+
let returnType = JobResponseData;
|
|
818
|
+
|
|
819
|
+
return this.apiClient.callApi(
|
|
820
|
+
'/projects/{project_gid}/saveAsTemplate', 'POST',
|
|
821
|
+
pathParams, queryParams, headerParams, formParams, postBody,
|
|
822
|
+
authNames, contentTypes, accepts, returnType, callback
|
|
823
|
+
);
|
|
824
|
+
}
|
|
825
|
+
/**
|
|
826
|
+
* Callback function to receive the result of the removeCustomFieldSettingForProject operation.
|
|
827
|
+
* @callback moduleapi/ProjectsApi~removeCustomFieldSettingForProjectCallback
|
|
828
|
+
* @param {String} error Error message, if any.
|
|
829
|
+
* @param {module:model/EmptyResponseData{ data The data returned by the service call.
|
|
830
|
+
* @param {String} response The complete HTTP response.
|
|
831
|
+
*/
|
|
832
|
+
|
|
833
|
+
/**
|
|
834
|
+
* Remove a custom field from a project
|
|
835
|
+
* Removes a custom field setting from a project.
|
|
836
|
+
* @param {module:model/ProjectGidRemoveCustomFieldSettingBody} body Information about the custom field setting being removed.
|
|
837
|
+
* @param {String} project_gid Globally unique identifier for the project.
|
|
838
|
+
* @param {module:api/ProjectsApi~removeCustomFieldSettingForProjectCallback} callback The callback function, accepting three arguments: error, data, response
|
|
839
|
+
* data is of type: {@link <&vendorExtensions.x-jsdoc-type>}
|
|
840
|
+
*/
|
|
841
|
+
removeCustomFieldSettingForProject(body, project_gid, callback) {
|
|
842
|
+
|
|
843
|
+
let postBody = body;
|
|
844
|
+
// verify the required parameter 'body' is set
|
|
845
|
+
if (body === undefined || body === null) {
|
|
846
|
+
throw new Error("Missing the required parameter 'body' when calling removeCustomFieldSettingForProject");
|
|
847
|
+
}
|
|
848
|
+
// verify the required parameter 'project_gid' is set
|
|
849
|
+
if (project_gid === undefined || project_gid === null) {
|
|
850
|
+
throw new Error("Missing the required parameter 'project_gid' when calling removeCustomFieldSettingForProject");
|
|
851
|
+
}
|
|
852
|
+
|
|
853
|
+
let pathParams = {
|
|
854
|
+
'project_gid': project_gid
|
|
855
|
+
};
|
|
856
|
+
let queryParams = {
|
|
857
|
+
|
|
858
|
+
};
|
|
859
|
+
let headerParams = {
|
|
860
|
+
|
|
861
|
+
};
|
|
862
|
+
let formParams = {
|
|
863
|
+
|
|
864
|
+
};
|
|
865
|
+
|
|
866
|
+
let authNames = ['oauth2'];
|
|
867
|
+
let contentTypes = ['application/json; charset=UTF-8'];
|
|
868
|
+
let accepts = ['application/json; charset=UTF-8'];
|
|
869
|
+
let returnType = EmptyResponseData;
|
|
870
|
+
|
|
871
|
+
return this.apiClient.callApi(
|
|
872
|
+
'/projects/{project_gid}/removeCustomFieldSetting', 'POST',
|
|
873
|
+
pathParams, queryParams, headerParams, formParams, postBody,
|
|
874
|
+
authNames, contentTypes, accepts, returnType, callback
|
|
875
|
+
);
|
|
876
|
+
}
|
|
877
|
+
/**
|
|
878
|
+
* Callback function to receive the result of the removeFollowersForProject operation.
|
|
879
|
+
* @callback moduleapi/ProjectsApi~removeFollowersForProjectCallback
|
|
880
|
+
* @param {String} error Error message, if any.
|
|
881
|
+
* @param {module:model/ProjectResponseData{ data The data returned by the service call.
|
|
882
|
+
* @param {String} response The complete HTTP response.
|
|
883
|
+
*/
|
|
884
|
+
|
|
885
|
+
/**
|
|
886
|
+
* Remove followers from a project
|
|
887
|
+
* Removes the specified list of users from following the project, this will not affect project membership status. Returns the updated project record.
|
|
888
|
+
* @param {module:model/ProjectGidRemoveFollowersBody} body Information about the followers being removed.
|
|
889
|
+
* @param {String} project_gid Globally unique identifier for the project.
|
|
890
|
+
* @param {Object} opts Optional parameters
|
|
891
|
+
* @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.
|
|
892
|
+
* @param {module:api/ProjectsApi~removeFollowersForProjectCallback} callback The callback function, accepting three arguments: error, data, response
|
|
893
|
+
* data is of type: {@link <&vendorExtensions.x-jsdoc-type>}
|
|
894
|
+
*/
|
|
895
|
+
removeFollowersForProject(body, project_gid, opts, callback) {
|
|
896
|
+
opts = opts || {};
|
|
897
|
+
let postBody = body;
|
|
898
|
+
// verify the required parameter 'body' is set
|
|
899
|
+
if (body === undefined || body === null) {
|
|
900
|
+
throw new Error("Missing the required parameter 'body' when calling removeFollowersForProject");
|
|
901
|
+
}
|
|
902
|
+
// verify the required parameter 'project_gid' is set
|
|
903
|
+
if (project_gid === undefined || project_gid === null) {
|
|
904
|
+
throw new Error("Missing the required parameter 'project_gid' when calling removeFollowersForProject");
|
|
905
|
+
}
|
|
906
|
+
|
|
907
|
+
let pathParams = {
|
|
908
|
+
'project_gid': project_gid
|
|
909
|
+
};
|
|
910
|
+
let queryParams = {
|
|
911
|
+
'opt_fields': this.apiClient.buildCollectionParam(opts['opt_fields'], 'csv')
|
|
912
|
+
};
|
|
913
|
+
let headerParams = {
|
|
914
|
+
|
|
915
|
+
};
|
|
916
|
+
let formParams = {
|
|
917
|
+
|
|
918
|
+
};
|
|
919
|
+
|
|
920
|
+
let authNames = ['oauth2'];
|
|
921
|
+
let contentTypes = ['application/json; charset=UTF-8'];
|
|
922
|
+
let accepts = ['application/json; charset=UTF-8'];
|
|
923
|
+
let returnType = ProjectResponseData;
|
|
924
|
+
|
|
925
|
+
return this.apiClient.callApi(
|
|
926
|
+
'/projects/{project_gid}/removeFollowers', 'POST',
|
|
927
|
+
pathParams, queryParams, headerParams, formParams, postBody,
|
|
928
|
+
authNames, contentTypes, accepts, returnType, callback
|
|
929
|
+
);
|
|
930
|
+
}
|
|
931
|
+
/**
|
|
932
|
+
* Callback function to receive the result of the removeMembersForProject operation.
|
|
933
|
+
* @callback moduleapi/ProjectsApi~removeMembersForProjectCallback
|
|
934
|
+
* @param {String} error Error message, if any.
|
|
935
|
+
* @param {module:model/ProjectResponseData{ data The data returned by the service call.
|
|
936
|
+
* @param {String} response The complete HTTP response.
|
|
937
|
+
*/
|
|
938
|
+
|
|
939
|
+
/**
|
|
940
|
+
* Remove users from a project
|
|
941
|
+
* Removes the specified list of users from members of the project. Returns the updated project record.
|
|
942
|
+
* @param {module:model/ProjectGidRemoveMembersBody} body Information about the members being removed.
|
|
943
|
+
* @param {String} project_gid Globally unique identifier for the project.
|
|
944
|
+
* @param {Object} opts Optional parameters
|
|
945
|
+
* @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.
|
|
946
|
+
* @param {module:api/ProjectsApi~removeMembersForProjectCallback} callback The callback function, accepting three arguments: error, data, response
|
|
947
|
+
* data is of type: {@link <&vendorExtensions.x-jsdoc-type>}
|
|
948
|
+
*/
|
|
949
|
+
removeMembersForProject(body, project_gid, opts, callback) {
|
|
950
|
+
opts = opts || {};
|
|
951
|
+
let postBody = body;
|
|
952
|
+
// verify the required parameter 'body' is set
|
|
953
|
+
if (body === undefined || body === null) {
|
|
954
|
+
throw new Error("Missing the required parameter 'body' when calling removeMembersForProject");
|
|
955
|
+
}
|
|
956
|
+
// verify the required parameter 'project_gid' is set
|
|
957
|
+
if (project_gid === undefined || project_gid === null) {
|
|
958
|
+
throw new Error("Missing the required parameter 'project_gid' when calling removeMembersForProject");
|
|
959
|
+
}
|
|
960
|
+
|
|
961
|
+
let pathParams = {
|
|
962
|
+
'project_gid': project_gid
|
|
963
|
+
};
|
|
964
|
+
let queryParams = {
|
|
965
|
+
'opt_fields': this.apiClient.buildCollectionParam(opts['opt_fields'], 'csv')
|
|
966
|
+
};
|
|
967
|
+
let headerParams = {
|
|
968
|
+
|
|
969
|
+
};
|
|
970
|
+
let formParams = {
|
|
971
|
+
|
|
972
|
+
};
|
|
973
|
+
|
|
974
|
+
let authNames = ['oauth2'];
|
|
975
|
+
let contentTypes = ['application/json; charset=UTF-8'];
|
|
976
|
+
let accepts = ['application/json; charset=UTF-8'];
|
|
977
|
+
let returnType = ProjectResponseData;
|
|
978
|
+
|
|
979
|
+
return this.apiClient.callApi(
|
|
980
|
+
'/projects/{project_gid}/removeMembers', 'POST',
|
|
981
|
+
pathParams, queryParams, headerParams, formParams, postBody,
|
|
982
|
+
authNames, contentTypes, accepts, returnType, callback
|
|
983
|
+
);
|
|
984
|
+
}
|
|
985
|
+
/**
|
|
986
|
+
* Callback function to receive the result of the updateProject operation.
|
|
987
|
+
* @callback moduleapi/ProjectsApi~updateProjectCallback
|
|
988
|
+
* @param {String} error Error message, if any.
|
|
989
|
+
* @param {module:model/ProjectResponseData{ data The data returned by the service call.
|
|
990
|
+
* @param {String} response The complete HTTP response.
|
|
991
|
+
*/
|
|
992
|
+
|
|
993
|
+
/**
|
|
994
|
+
* Update a project
|
|
995
|
+
* A specific, existing project can be updated by making a PUT request on the URL for that project. 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 project record.
|
|
996
|
+
* @param {module:model/ProjectsProjectGidBody} body The updated fields for the project.
|
|
997
|
+
* @param {String} project_gid Globally unique identifier for the project.
|
|
998
|
+
* @param {Object} opts Optional parameters
|
|
999
|
+
* @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.
|
|
1000
|
+
* @param {module:api/ProjectsApi~updateProjectCallback} callback The callback function, accepting three arguments: error, data, response
|
|
1001
|
+
* data is of type: {@link <&vendorExtensions.x-jsdoc-type>}
|
|
1002
|
+
*/
|
|
1003
|
+
updateProject(body, project_gid, opts, callback) {
|
|
1004
|
+
opts = opts || {};
|
|
1005
|
+
let postBody = body;
|
|
1006
|
+
// verify the required parameter 'body' is set
|
|
1007
|
+
if (body === undefined || body === null) {
|
|
1008
|
+
throw new Error("Missing the required parameter 'body' when calling updateProject");
|
|
1009
|
+
}
|
|
1010
|
+
// verify the required parameter 'project_gid' is set
|
|
1011
|
+
if (project_gid === undefined || project_gid === null) {
|
|
1012
|
+
throw new Error("Missing the required parameter 'project_gid' when calling updateProject");
|
|
1013
|
+
}
|
|
1014
|
+
|
|
1015
|
+
let pathParams = {
|
|
1016
|
+
'project_gid': project_gid
|
|
1017
|
+
};
|
|
1018
|
+
let queryParams = {
|
|
1019
|
+
'opt_fields': this.apiClient.buildCollectionParam(opts['opt_fields'], 'csv')
|
|
1020
|
+
};
|
|
1021
|
+
let headerParams = {
|
|
1022
|
+
|
|
1023
|
+
};
|
|
1024
|
+
let formParams = {
|
|
1025
|
+
|
|
1026
|
+
};
|
|
1027
|
+
|
|
1028
|
+
let authNames = ['oauth2'];
|
|
1029
|
+
let contentTypes = ['application/json; charset=UTF-8'];
|
|
1030
|
+
let accepts = ['application/json; charset=UTF-8'];
|
|
1031
|
+
let returnType = ProjectResponseData;
|
|
1032
|
+
|
|
1033
|
+
return this.apiClient.callApi(
|
|
1034
|
+
'/projects/{project_gid}', 'PUT',
|
|
1035
|
+
pathParams, queryParams, headerParams, formParams, postBody,
|
|
1036
|
+
authNames, contentTypes, accepts, returnType, callback
|
|
1037
|
+
);
|
|
1038
|
+
}
|
|
1039
|
+
|
|
1040
|
+
}
|