@resolution/jira-api-client 0.5.2 → 0.5.4
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/CHANGELOG.md +22 -0
- package/README.md +51 -19
- package/lib/openapi/{platform/core → core}/CommonHttpClient.d.ts +54 -3
- package/lib/openapi/{serviceManagement/core → core}/CommonHttpClient.js +14 -0
- package/lib/openapi/core/CommonHttpClient.js.map +1 -0
- package/lib/openapi/{software/core → core}/CommonHttpService.d.ts +17 -0
- package/lib/openapi/{platform/core → core}/CommonHttpService.js +11 -0
- package/lib/openapi/core/CommonHttpService.js.map +1 -0
- package/lib/openapi/core/CommonValidationSchemaStorage.js.map +1 -0
- package/lib/openapi/platform/BaseJiraPlatformApiClient.d.ts +5 -5
- package/lib/openapi/platform/BaseJiraPlatformApiClient.js +3 -3
- package/lib/openapi/platform/BaseJiraPlatformApiClient.js.map +1 -1
- package/lib/openapi/platform/models/announcementBanner.d.ts +1 -1
- package/lib/openapi/platform/models/appDataPolicies.d.ts +1 -1
- package/lib/openapi/platform/models/appMigration.d.ts +13 -7
- package/lib/openapi/platform/models/appMigration.js.map +1 -1
- package/lib/openapi/platform/models/appProperties.d.ts +3 -2
- package/lib/openapi/platform/models/appProperties.js.map +1 -1
- package/lib/openapi/platform/models/auditRecords.d.ts +1 -1
- package/lib/openapi/platform/models/avatars.d.ts +1 -1
- package/lib/openapi/platform/models/classificationLevels.d.ts +1 -1
- package/lib/openapi/platform/models/common.d.ts +3 -5
- package/lib/openapi/platform/models/common.js.map +1 -1
- package/lib/openapi/platform/models/dashboards.d.ts +2 -3
- package/lib/openapi/platform/models/dashboards.js.map +1 -1
- package/lib/openapi/platform/models/dynamicModules.d.ts +5 -3
- package/lib/openapi/platform/models/dynamicModules.js.map +1 -1
- package/lib/openapi/platform/models/filterSharing.d.ts +1 -1
- package/lib/openapi/platform/models/filters.d.ts +1 -1
- package/lib/openapi/platform/models/groupAndUserPicker.d.ts +1 -1
- package/lib/openapi/platform/models/groups.d.ts +1 -1
- package/lib/openapi/platform/models/issueAttachments.d.ts +1 -1
- package/lib/openapi/platform/models/issueBulkOperations.d.ts +2 -3
- package/lib/openapi/platform/models/issueBulkOperations.js.map +1 -1
- package/lib/openapi/platform/models/issueCommentProperties.d.ts +1 -1
- package/lib/openapi/platform/models/issueComments.d.ts +1 -1
- package/lib/openapi/platform/models/issueCustomFieldConfigurationApps.d.ts +1 -1
- package/lib/openapi/platform/models/issueCustomFieldContexts.d.ts +1 -1
- package/lib/openapi/platform/models/issueCustomFieldOptions.d.ts +1 -1
- package/lib/openapi/platform/models/issueCustomFieldOptionsApps.d.ts +1 -1
- package/lib/openapi/platform/models/issueCustomFieldValuesApps.d.ts +1 -1
- package/lib/openapi/platform/models/issueFieldConfigurations.d.ts +1 -1
- package/lib/openapi/platform/models/issueFields.d.ts +1 -1
- package/lib/openapi/platform/models/issueLinkTypes.d.ts +1 -1
- package/lib/openapi/platform/models/issueLinks.d.ts +1 -1
- package/lib/openapi/platform/models/issueNotificationSchemes.d.ts +1 -1
- package/lib/openapi/platform/models/issuePriorities.d.ts +1 -1
- package/lib/openapi/platform/models/issueProperties.d.ts +1 -1
- package/lib/openapi/platform/models/issueRemoteLinks.d.ts +1 -1
- package/lib/openapi/platform/models/issueResolutions.d.ts +1 -1
- package/lib/openapi/platform/models/issueSearch.d.ts +2 -3
- package/lib/openapi/platform/models/issueSearch.js.map +1 -1
- package/lib/openapi/platform/models/issueSecurityLevel.d.ts +1 -1
- package/lib/openapi/platform/models/issueSecuritySchemes.d.ts +1 -1
- package/lib/openapi/platform/models/issueTypeSchemes.d.ts +1 -1
- package/lib/openapi/platform/models/issueTypeScreenSchemes.d.ts +1 -1
- package/lib/openapi/platform/models/issueTypes.d.ts +1 -1
- package/lib/openapi/platform/models/issueVotes.d.ts +1 -1
- package/lib/openapi/platform/models/issueWatchers.d.ts +1 -1
- package/lib/openapi/platform/models/issueWorklogs.d.ts +1 -1
- package/lib/openapi/platform/models/issues.d.ts +16 -14
- package/lib/openapi/platform/models/issues.js.map +1 -1
- package/lib/openapi/platform/models/jiraExpressions.d.ts +8 -6
- package/lib/openapi/platform/models/jiraExpressions.js.map +1 -1
- package/lib/openapi/platform/models/jiraSettings.d.ts +1 -1
- package/lib/openapi/platform/models/jql.d.ts +9 -5
- package/lib/openapi/platform/models/jql.js.map +1 -1
- package/lib/openapi/platform/models/jqlFunctionsApps.d.ts +1 -1
- package/lib/openapi/platform/models/labels.d.ts +1 -1
- package/lib/openapi/platform/models/licenseMetrics.d.ts +1 -1
- package/lib/openapi/platform/models/myself.d.ts +1 -1
- package/lib/openapi/platform/models/permissionSchemes.d.ts +1 -1
- package/lib/openapi/platform/models/permissions.d.ts +2 -3
- package/lib/openapi/platform/models/permissions.js.map +1 -1
- package/lib/openapi/platform/models/prioritySchemes.d.ts +1 -1
- package/lib/openapi/platform/models/projectAvatars.d.ts +1 -1
- package/lib/openapi/platform/models/projectClassificationLevels.d.ts +1 -1
- package/lib/openapi/platform/models/projectComponents.d.ts +1 -1
- package/lib/openapi/platform/models/projectEmail.d.ts +1 -1
- package/lib/openapi/platform/models/projectFeatures.d.ts +1 -1
- package/lib/openapi/platform/models/projectPermissionSchemes.d.ts +1 -1
- package/lib/openapi/platform/models/projectRoleActors.d.ts +1 -1
- package/lib/openapi/platform/models/projectRoles.d.ts +1 -1
- package/lib/openapi/platform/models/projectTypes.d.ts +1 -1
- package/lib/openapi/platform/models/projectVersions.d.ts +1 -1
- package/lib/openapi/platform/models/projects.d.ts +1 -1
- package/lib/openapi/platform/models/screenSchemes.d.ts +2 -2
- package/lib/openapi/platform/models/screenSchemes.js +1 -1
- package/lib/openapi/platform/models/screenSchemes.js.map +1 -1
- package/lib/openapi/platform/models/screenTabFields.d.ts +1 -1
- package/lib/openapi/platform/models/screens.d.ts +1 -1
- package/lib/openapi/platform/models/serverInfo.d.ts +1 -1
- package/lib/openapi/platform/models/serviceRegistry.d.ts +3 -2
- package/lib/openapi/platform/models/serviceRegistry.js.map +1 -1
- package/lib/openapi/platform/models/status.d.ts +1 -1
- package/lib/openapi/platform/models/timeTracking.d.ts +1 -1
- package/lib/openapi/platform/models/uiModificationsApps.d.ts +1 -1
- package/lib/openapi/platform/models/userSearch.d.ts +1 -1
- package/lib/openapi/platform/models/users.d.ts +1 -1
- package/lib/openapi/platform/models/webhooks.d.ts +1 -1
- package/lib/openapi/platform/models/workflowSchemeDrafts.d.ts +1 -1
- package/lib/openapi/platform/models/workflowSchemeProjectAssociations.d.ts +1 -1
- package/lib/openapi/platform/models/workflowSchemes.d.ts +1 -1
- package/lib/openapi/platform/models/workflowTransitionProperties.d.ts +1 -1
- package/lib/openapi/platform/models/workflowTransitionRules.d.ts +1 -1
- package/lib/openapi/platform/models/workflows.d.ts +104 -70
- package/lib/openapi/platform/models/workflows.js +12 -0
- package/lib/openapi/platform/models/workflows.js.map +1 -1
- package/lib/openapi/platform/services/AnnouncementBannerService.d.ts +12 -9
- package/lib/openapi/platform/services/AnnouncementBannerService.js +10 -7
- package/lib/openapi/platform/services/AnnouncementBannerService.js.map +1 -1
- package/lib/openapi/platform/services/AppDataPoliciesService.d.ts +12 -5
- package/lib/openapi/platform/services/AppDataPoliciesService.js +13 -6
- package/lib/openapi/platform/services/AppDataPoliciesService.js.map +1 -1
- package/lib/openapi/platform/services/AppMigrationService.d.ts +13 -6
- package/lib/openapi/platform/services/AppMigrationService.js +12 -6
- package/lib/openapi/platform/services/AppMigrationService.js.map +1 -1
- package/lib/openapi/platform/services/AppPropertiesService.d.ts +43 -19
- package/lib/openapi/platform/services/AppPropertiesService.js +44 -20
- package/lib/openapi/platform/services/AppPropertiesService.js.map +1 -1
- package/lib/openapi/platform/services/ApplicationRolesService.d.ts +20 -21
- package/lib/openapi/platform/services/ApplicationRolesService.js +21 -22
- package/lib/openapi/platform/services/ApplicationRolesService.js.map +1 -1
- package/lib/openapi/platform/services/AuditRecordsService.d.ts +7 -3
- package/lib/openapi/platform/services/AuditRecordsService.js +8 -4
- package/lib/openapi/platform/services/AuditRecordsService.js.map +1 -1
- package/lib/openapi/platform/services/AvatarsService.d.ts +45 -38
- package/lib/openapi/platform/services/AvatarsService.js +45 -38
- package/lib/openapi/platform/services/AvatarsService.js.map +1 -1
- package/lib/openapi/platform/services/ClassificationLevelsService.d.ts +16 -22
- package/lib/openapi/platform/services/ClassificationLevelsService.js +17 -23
- package/lib/openapi/platform/services/ClassificationLevelsService.js.map +1 -1
- package/lib/openapi/platform/services/DashboardsService.d.ts +140 -146
- package/lib/openapi/platform/services/DashboardsService.js +122 -130
- package/lib/openapi/platform/services/DashboardsService.js.map +1 -1
- package/lib/openapi/platform/services/DynamicModulesService.d.ts +6 -4
- package/lib/openapi/platform/services/DynamicModulesService.js +7 -5
- package/lib/openapi/platform/services/DynamicModulesService.js.map +1 -1
- package/lib/openapi/platform/services/FilterSharingService.d.ts +73 -96
- package/lib/openapi/platform/services/FilterSharingService.js +70 -95
- package/lib/openapi/platform/services/FilterSharingService.js.map +1 -1
- package/lib/openapi/platform/services/FiltersService.d.ts +179 -258
- package/lib/openapi/platform/services/FiltersService.js +174 -256
- package/lib/openapi/platform/services/FiltersService.js.map +1 -1
- package/lib/openapi/platform/services/GroupAndUserPickerService.d.ts +9 -7
- package/lib/openapi/platform/services/GroupAndUserPickerService.js +10 -8
- package/lib/openapi/platform/services/GroupAndUserPickerService.js.map +1 -1
- package/lib/openapi/platform/services/GroupsService.d.ts +43 -27
- package/lib/openapi/platform/services/GroupsService.js +40 -26
- package/lib/openapi/platform/services/GroupsService.js.map +1 -1
- package/lib/openapi/platform/services/IssueAttachmentsService.d.ts +174 -170
- package/lib/openapi/platform/services/IssueAttachmentsService.js +175 -171
- package/lib/openapi/platform/services/IssueAttachmentsService.js.map +1 -1
- package/lib/openapi/platform/services/IssueBulkOperationsService.d.ts +36 -20
- package/lib/openapi/platform/services/IssueBulkOperationsService.js +35 -20
- package/lib/openapi/platform/services/IssueBulkOperationsService.js.map +1 -1
- package/lib/openapi/platform/services/IssueCommentPropertiesService.d.ts +20 -10
- package/lib/openapi/platform/services/IssueCommentPropertiesService.js +21 -11
- package/lib/openapi/platform/services/IssueCommentPropertiesService.js.map +1 -1
- package/lib/openapi/platform/services/IssueCommentsService.d.ts +66 -81
- package/lib/openapi/platform/services/IssueCommentsService.js +59 -71
- package/lib/openapi/platform/services/IssueCommentsService.js.map +1 -1
- package/lib/openapi/platform/services/IssueCustomFieldConfigurationAppsService.d.ts +11 -5
- package/lib/openapi/platform/services/IssueCustomFieldConfigurationAppsService.js +10 -5
- package/lib/openapi/platform/services/IssueCustomFieldConfigurationAppsService.js.map +1 -1
- package/lib/openapi/platform/services/IssueCustomFieldContextsService.d.ts +72 -38
- package/lib/openapi/platform/services/IssueCustomFieldContextsService.js +55 -27
- package/lib/openapi/platform/services/IssueCustomFieldContextsService.js.map +1 -1
- package/lib/openapi/platform/services/IssueCustomFieldOptionsAppsService.d.ts +51 -29
- package/lib/openapi/platform/services/IssueCustomFieldOptionsAppsService.js +48 -28
- package/lib/openapi/platform/services/IssueCustomFieldOptionsAppsService.js.map +1 -1
- package/lib/openapi/platform/services/IssueCustomFieldOptionsService.d.ts +38 -17
- package/lib/openapi/platform/services/IssueCustomFieldOptionsService.js +33 -15
- package/lib/openapi/platform/services/IssueCustomFieldOptionsService.js.map +1 -1
- package/lib/openapi/platform/services/IssueCustomFieldValuesAppsService.d.ts +9 -5
- package/lib/openapi/platform/services/IssueCustomFieldValuesAppsService.js +6 -4
- package/lib/openapi/platform/services/IssueCustomFieldValuesAppsService.js.map +1 -1
- package/lib/openapi/platform/services/IssueFieldConfigurationsService.d.ts +78 -35
- package/lib/openapi/platform/services/IssueFieldConfigurationsService.js +63 -28
- package/lib/openapi/platform/services/IssueFieldConfigurationsService.js.map +1 -1
- package/lib/openapi/platform/services/IssueFieldsService.d.ts +57 -47
- package/lib/openapi/platform/services/IssueFieldsService.js +52 -42
- package/lib/openapi/platform/services/IssueFieldsService.js.map +1 -1
- package/lib/openapi/platform/services/IssueLinkTypesService.d.ts +30 -12
- package/lib/openapi/platform/services/IssueLinkTypesService.js +27 -11
- package/lib/openapi/platform/services/IssueLinkTypesService.js.map +1 -1
- package/lib/openapi/platform/services/IssueLinksService.d.ts +21 -24
- package/lib/openapi/platform/services/IssueLinksService.js +20 -24
- package/lib/openapi/platform/services/IssueLinksService.js.map +1 -1
- package/lib/openapi/platform/services/IssueNavigatorSettingsService.d.ts +8 -4
- package/lib/openapi/platform/services/IssueNavigatorSettingsService.js +9 -5
- package/lib/openapi/platform/services/IssueNavigatorSettingsService.js.map +1 -1
- package/lib/openapi/platform/services/IssueNotificationSchemesService.d.ts +64 -70
- package/lib/openapi/platform/services/IssueNotificationSchemesService.js +59 -68
- package/lib/openapi/platform/services/IssueNotificationSchemesService.js.map +1 -1
- package/lib/openapi/platform/services/IssuePrioritiesService.d.ts +45 -27
- package/lib/openapi/platform/services/IssuePrioritiesService.js +38 -24
- package/lib/openapi/platform/services/IssuePrioritiesService.js.map +1 -1
- package/lib/openapi/platform/services/IssuePropertiesService.d.ts +34 -17
- package/lib/openapi/platform/services/IssuePropertiesService.js +29 -15
- package/lib/openapi/platform/services/IssuePropertiesService.js.map +1 -1
- package/lib/openapi/platform/services/IssueRemoteLinksService.d.ts +42 -28
- package/lib/openapi/platform/services/IssueRemoteLinksService.js +39 -27
- package/lib/openapi/platform/services/IssueRemoteLinksService.js.map +1 -1
- package/lib/openapi/platform/services/IssueResolutionsService.d.ts +40 -17
- package/lib/openapi/platform/services/IssueResolutionsService.js +33 -14
- package/lib/openapi/platform/services/IssueResolutionsService.js.map +1 -1
- package/lib/openapi/platform/services/IssueSearchService.d.ts +86 -139
- package/lib/openapi/platform/services/IssueSearchService.js +81 -137
- package/lib/openapi/platform/services/IssueSearchService.js.map +1 -1
- package/lib/openapi/platform/services/IssueSecurityLevelService.d.ts +20 -19
- package/lib/openapi/platform/services/IssueSecurityLevelService.js +21 -20
- package/lib/openapi/platform/services/IssueSecurityLevelService.js.map +1 -1
- package/lib/openapi/platform/services/IssueSecuritySchemesService.d.ts +78 -40
- package/lib/openapi/platform/services/IssueSecuritySchemesService.js +65 -34
- package/lib/openapi/platform/services/IssueSecuritySchemesService.js.map +1 -1
- package/lib/openapi/platform/services/IssueTypePropertiesService.d.ts +22 -11
- package/lib/openapi/platform/services/IssueTypePropertiesService.js +21 -11
- package/lib/openapi/platform/services/IssueTypePropertiesService.js.map +1 -1
- package/lib/openapi/platform/services/IssueTypeSchemesService.d.ts +53 -34
- package/lib/openapi/platform/services/IssueTypeSchemesService.js +42 -26
- package/lib/openapi/platform/services/IssueTypeSchemesService.js.map +1 -1
- package/lib/openapi/platform/services/IssueTypeScreenSchemesService.d.ts +56 -27
- package/lib/openapi/platform/services/IssueTypeScreenSchemesService.js +45 -22
- package/lib/openapi/platform/services/IssueTypeScreenSchemesService.js.map +1 -1
- package/lib/openapi/platform/services/IssueTypesService.d.ts +53 -42
- package/lib/openapi/platform/services/IssueTypesService.js +50 -41
- package/lib/openapi/platform/services/IssueTypesService.js.map +1 -1
- package/lib/openapi/platform/services/IssueVotesService.d.ts +17 -17
- package/lib/openapi/platform/services/IssueVotesService.js +18 -18
- package/lib/openapi/platform/services/IssueVotesService.js.map +1 -1
- package/lib/openapi/platform/services/IssueWatchersService.d.ts +20 -10
- package/lib/openapi/platform/services/IssueWatchersService.js +19 -10
- package/lib/openapi/platform/services/IssueWatchersService.js.map +1 -1
- package/lib/openapi/platform/services/IssueWorklogPropertiesService.d.ts +20 -13
- package/lib/openapi/platform/services/IssueWorklogPropertiesService.js +21 -14
- package/lib/openapi/platform/services/IssueWorklogPropertiesService.js.map +1 -1
- package/lib/openapi/platform/services/IssueWorklogsService.d.ts +69 -67
- package/lib/openapi/platform/services/IssueWorklogsService.js +64 -65
- package/lib/openapi/platform/services/IssueWorklogsService.js.map +1 -1
- package/lib/openapi/platform/services/IssuesService.d.ts +226 -228
- package/lib/openapi/platform/services/IssuesService.js +197 -209
- package/lib/openapi/platform/services/IssuesService.js.map +1 -1
- package/lib/openapi/platform/services/JiraExpressionsService.d.ts +25 -24
- package/lib/openapi/platform/services/JiraExpressionsService.js +21 -20
- package/lib/openapi/platform/services/JiraExpressionsService.js.map +1 -1
- package/lib/openapi/platform/services/JiraSettingsService.d.ts +21 -9
- package/lib/openapi/platform/services/JiraSettingsService.js +20 -9
- package/lib/openapi/platform/services/JiraSettingsService.js.map +1 -1
- package/lib/openapi/platform/services/JqlFunctionsAppsService.d.ts +13 -9
- package/lib/openapi/platform/services/JqlFunctionsAppsService.js +12 -9
- package/lib/openapi/platform/services/JqlFunctionsAppsService.js.map +1 -1
- package/lib/openapi/platform/services/JqlService.d.ts +55 -43
- package/lib/openapi/platform/services/JqlService.js +45 -33
- package/lib/openapi/platform/services/JqlService.js.map +1 -1
- package/lib/openapi/platform/services/LabelsService.d.ts +7 -3
- package/lib/openapi/platform/services/LabelsService.js +8 -4
- package/lib/openapi/platform/services/LabelsService.js.map +1 -1
- package/lib/openapi/platform/services/LicenseMetricsService.d.ts +17 -7
- package/lib/openapi/platform/services/LicenseMetricsService.js +18 -8
- package/lib/openapi/platform/services/LicenseMetricsService.js.map +1 -1
- package/lib/openapi/platform/services/MyselfService.d.ts +28 -21
- package/lib/openapi/platform/services/MyselfService.js +27 -21
- package/lib/openapi/platform/services/MyselfService.js.map +1 -1
- package/lib/openapi/platform/services/PermissionSchemesService.d.ts +67 -55
- package/lib/openapi/platform/services/PermissionSchemesService.js +62 -53
- package/lib/openapi/platform/services/PermissionSchemesService.js.map +1 -1
- package/lib/openapi/platform/services/PermissionsService.d.ts +23 -11
- package/lib/openapi/platform/services/PermissionsService.js +22 -11
- package/lib/openapi/platform/services/PermissionsService.js.map +1 -1
- package/lib/openapi/platform/services/PrioritySchemesService.d.ts +60 -26
- package/lib/openapi/platform/services/PrioritySchemesService.js +54 -23
- package/lib/openapi/platform/services/PrioritySchemesService.js.map +1 -1
- package/lib/openapi/platform/services/ProjectAvatarsService.d.ts +27 -24
- package/lib/openapi/platform/services/ProjectAvatarsService.js +26 -24
- package/lib/openapi/platform/services/ProjectAvatarsService.js.map +1 -1
- package/lib/openapi/platform/services/ProjectCategoriesService.d.ts +30 -12
- package/lib/openapi/platform/services/ProjectCategoriesService.js +27 -11
- package/lib/openapi/platform/services/ProjectCategoriesService.js.map +1 -1
- package/lib/openapi/platform/services/ProjectClassificationLevelsService.d.ts +17 -14
- package/lib/openapi/platform/services/ProjectClassificationLevelsService.js +15 -12
- package/lib/openapi/platform/services/ProjectClassificationLevelsService.js.map +1 -1
- package/lib/openapi/platform/services/ProjectComponentsService.d.ts +198 -321
- package/lib/openapi/platform/services/ProjectComponentsService.js +195 -320
- package/lib/openapi/platform/services/ProjectComponentsService.js.map +1 -1
- package/lib/openapi/platform/services/ProjectEmailService.d.ts +11 -5
- package/lib/openapi/platform/services/ProjectEmailService.js +10 -5
- package/lib/openapi/platform/services/ProjectEmailService.js.map +1 -1
- package/lib/openapi/platform/services/ProjectFeaturesService.d.ts +23 -22
- package/lib/openapi/platform/services/ProjectFeaturesService.js +22 -22
- package/lib/openapi/platform/services/ProjectFeaturesService.js.map +1 -1
- package/lib/openapi/platform/services/ProjectKeyAndNameValidationService.d.ts +19 -7
- package/lib/openapi/platform/services/ProjectKeyAndNameValidationService.js +20 -8
- package/lib/openapi/platform/services/ProjectKeyAndNameValidationService.js.map +1 -1
- package/lib/openapi/platform/services/ProjectPermissionSchemesService.d.ts +32 -23
- package/lib/openapi/platform/services/ProjectPermissionSchemesService.js +31 -23
- package/lib/openapi/platform/services/ProjectPermissionSchemesService.js.map +1 -1
- package/lib/openapi/platform/services/ProjectPropertiesService.d.ts +22 -11
- package/lib/openapi/platform/services/ProjectPropertiesService.js +21 -11
- package/lib/openapi/platform/services/ProjectPropertiesService.js.map +1 -1
- package/lib/openapi/platform/services/ProjectRoleActorsService.d.ts +47 -33
- package/lib/openapi/platform/services/ProjectRoleActorsService.js +42 -31
- package/lib/openapi/platform/services/ProjectRoleActorsService.js.map +1 -1
- package/lib/openapi/platform/services/ProjectRolesService.d.ts +67 -43
- package/lib/openapi/platform/services/ProjectRolesService.js +62 -41
- package/lib/openapi/platform/services/ProjectRolesService.js.map +1 -1
- package/lib/openapi/platform/services/ProjectTypesService.d.ts +29 -21
- package/lib/openapi/platform/services/ProjectTypesService.js +30 -22
- package/lib/openapi/platform/services/ProjectTypesService.js.map +1 -1
- package/lib/openapi/platform/services/ProjectVersionsService.d.ts +87 -36
- package/lib/openapi/platform/services/ProjectVersionsService.js +78 -32
- package/lib/openapi/platform/services/ProjectVersionsService.js.map +1 -1
- package/lib/openapi/platform/services/ProjectsService.d.ts +207 -313
- package/lib/openapi/platform/services/ProjectsService.js +203 -310
- package/lib/openapi/platform/services/ProjectsService.js.map +1 -1
- package/lib/openapi/platform/services/ScreenSchemesService.d.ts +22 -11
- package/lib/openapi/platform/services/ScreenSchemesService.js +19 -10
- package/lib/openapi/platform/services/ScreenSchemesService.js.map +1 -1
- package/lib/openapi/platform/services/ScreenTabFieldsService.d.ts +15 -7
- package/lib/openapi/platform/services/ScreenTabFieldsService.js +14 -7
- package/lib/openapi/platform/services/ScreenTabFieldsService.js.map +1 -1
- package/lib/openapi/platform/services/ScreenTabsService.d.ts +27 -11
- package/lib/openapi/platform/services/ScreenTabsService.js +26 -11
- package/lib/openapi/platform/services/ScreenTabsService.js.map +1 -1
- package/lib/openapi/platform/services/ScreensService.d.ts +42 -28
- package/lib/openapi/platform/services/ScreensService.js +38 -25
- package/lib/openapi/platform/services/ScreensService.js.map +1 -1
- package/lib/openapi/platform/services/ServerInfoService.d.ts +6 -3
- package/lib/openapi/platform/services/ServerInfoService.js +7 -4
- package/lib/openapi/platform/services/ServerInfoService.js.map +1 -1
- package/lib/openapi/platform/services/ServiceRegistryService.d.ts +5 -3
- package/lib/openapi/platform/services/ServiceRegistryService.js +4 -3
- package/lib/openapi/platform/services/ServiceRegistryService.js.map +1 -1
- package/lib/openapi/platform/services/StatusService.d.ts +29 -15
- package/lib/openapi/platform/services/StatusService.js +26 -14
- package/lib/openapi/platform/services/StatusService.js.map +1 -1
- package/lib/openapi/platform/services/TasksService.d.ts +9 -4
- package/lib/openapi/platform/services/TasksService.js +10 -5
- package/lib/openapi/platform/services/TasksService.js.map +1 -1
- package/lib/openapi/platform/services/TimeTrackingService.d.ts +31 -14
- package/lib/openapi/platform/services/TimeTrackingService.js +27 -12
- package/lib/openapi/platform/services/TimeTrackingService.js.map +1 -1
- package/lib/openapi/platform/services/UiModificationsAppsService.d.ts +26 -19
- package/lib/openapi/platform/services/UiModificationsAppsService.js +23 -18
- package/lib/openapi/platform/services/UiModificationsAppsService.js.map +1 -1
- package/lib/openapi/platform/services/UserPropertiesService.d.ts +20 -10
- package/lib/openapi/platform/services/UserPropertiesService.js +21 -11
- package/lib/openapi/platform/services/UserPropertiesService.js.map +1 -1
- package/lib/openapi/platform/services/UserSearchService.d.ts +95 -126
- package/lib/openapi/platform/services/UserSearchService.js +96 -127
- package/lib/openapi/platform/services/UserSearchService.js.map +1 -1
- package/lib/openapi/platform/services/UsersService.d.ts +97 -95
- package/lib/openapi/platform/services/UsersService.js +96 -95
- package/lib/openapi/platform/services/UsersService.js.map +1 -1
- package/lib/openapi/platform/services/WebhooksService.d.ts +35 -18
- package/lib/openapi/platform/services/WebhooksService.js +30 -16
- package/lib/openapi/platform/services/WebhooksService.js.map +1 -1
- package/lib/openapi/platform/services/WorkflowSchemeDraftsService.d.ts +133 -147
- package/lib/openapi/platform/services/WorkflowSchemeDraftsService.js +124 -143
- package/lib/openapi/platform/services/WorkflowSchemeDraftsService.js.map +1 -1
- package/lib/openapi/platform/services/WorkflowSchemeProjectAssociationsService.d.ts +13 -10
- package/lib/openapi/platform/services/WorkflowSchemeProjectAssociationsService.js +12 -10
- package/lib/openapi/platform/services/WorkflowSchemeProjectAssociationsService.js.map +1 -1
- package/lib/openapi/platform/services/WorkflowSchemesService.d.ts +121 -82
- package/lib/openapi/platform/services/WorkflowSchemesService.js +106 -75
- package/lib/openapi/platform/services/WorkflowSchemesService.js.map +1 -1
- package/lib/openapi/platform/services/WorkflowStatusCategoriesService.d.ts +12 -5
- package/lib/openapi/platform/services/WorkflowStatusCategoriesService.js +13 -6
- package/lib/openapi/platform/services/WorkflowStatusCategoriesService.js.map +1 -1
- package/lib/openapi/platform/services/WorkflowStatusesService.d.ts +12 -5
- package/lib/openapi/platform/services/WorkflowStatusesService.js +13 -6
- package/lib/openapi/platform/services/WorkflowStatusesService.js.map +1 -1
- package/lib/openapi/platform/services/WorkflowTransitionPropertiesService.d.ts +25 -10
- package/lib/openapi/platform/services/WorkflowTransitionPropertiesService.js +22 -9
- package/lib/openapi/platform/services/WorkflowTransitionPropertiesService.js.map +1 -1
- package/lib/openapi/platform/services/WorkflowTransitionRulesService.d.ts +25 -13
- package/lib/openapi/platform/services/WorkflowTransitionRulesService.js +22 -12
- package/lib/openapi/platform/services/WorkflowTransitionRulesService.js.map +1 -1
- package/lib/openapi/platform/services/WorkflowsService.d.ts +791 -693
- package/lib/openapi/platform/services/WorkflowsService.js +754 -644
- package/lib/openapi/platform/services/WorkflowsService.js.map +1 -1
- package/lib/openapi/platform/validationSchemaStorage.d.ts +1 -1
- package/lib/openapi/platform/validationSchemaStorage.js +1 -1
- package/lib/openapi/platform/validationSchemaStorage.js.map +1 -1
- package/lib/openapi/serviceManagement/BaseJiraServiceManagementApiClient.d.ts +3 -3
- package/lib/openapi/serviceManagement/BaseJiraServiceManagementApiClient.js +3 -3
- package/lib/openapi/serviceManagement/BaseJiraServiceManagementApiClient.js.map +1 -1
- package/lib/openapi/serviceManagement/models/assets.d.ts +1 -1
- package/lib/openapi/serviceManagement/models/common.d.ts +1 -1
- package/lib/openapi/serviceManagement/models/customer.d.ts +1 -1
- package/lib/openapi/serviceManagement/models/info.d.ts +1 -1
- package/lib/openapi/serviceManagement/models/knowledgebase.d.ts +1 -1
- package/lib/openapi/serviceManagement/models/organization.d.ts +1 -1
- package/lib/openapi/serviceManagement/models/request.d.ts +1 -1
- package/lib/openapi/serviceManagement/models/servicedesk.d.ts +4 -7
- package/lib/openapi/serviceManagement/models/servicedesk.js.map +1 -1
- package/lib/openapi/serviceManagement/services/AssetsService.d.ts +11 -8
- package/lib/openapi/serviceManagement/services/AssetsService.js +12 -9
- package/lib/openapi/serviceManagement/services/AssetsService.js.map +1 -1
- package/lib/openapi/serviceManagement/services/CustomerService.d.ts +17 -20
- package/lib/openapi/serviceManagement/services/CustomerService.js +16 -20
- package/lib/openapi/serviceManagement/services/CustomerService.js.map +1 -1
- package/lib/openapi/serviceManagement/services/InfoService.d.ts +6 -3
- package/lib/openapi/serviceManagement/services/InfoService.js +7 -4
- package/lib/openapi/serviceManagement/services/InfoService.js.map +1 -1
- package/lib/openapi/serviceManagement/services/KnowledgebaseService.d.ts +11 -11
- package/lib/openapi/serviceManagement/services/KnowledgebaseService.js +12 -12
- package/lib/openapi/serviceManagement/services/KnowledgebaseService.js.map +1 -1
- package/lib/openapi/serviceManagement/services/OrganizationService.d.ts +108 -104
- package/lib/openapi/serviceManagement/services/OrganizationService.js +97 -99
- package/lib/openapi/serviceManagement/services/OrganizationService.js.map +1 -1
- package/lib/openapi/serviceManagement/services/RequestService.d.ts +420 -578
- package/lib/openapi/serviceManagement/services/RequestService.js +405 -571
- package/lib/openapi/serviceManagement/services/RequestService.js.map +1 -1
- package/lib/openapi/serviceManagement/services/RequesttypeService.d.ts +25 -39
- package/lib/openapi/serviceManagement/services/RequesttypeService.js +26 -40
- package/lib/openapi/serviceManagement/services/RequesttypeService.js.map +1 -1
- package/lib/openapi/serviceManagement/services/ServicedeskService.d.ts +195 -215
- package/lib/openapi/serviceManagement/services/ServicedeskService.js +190 -213
- package/lib/openapi/serviceManagement/services/ServicedeskService.js.map +1 -1
- package/lib/openapi/serviceManagement/validationSchemaStorage.d.ts +1 -1
- package/lib/openapi/serviceManagement/validationSchemaStorage.js +1 -1
- package/lib/openapi/serviceManagement/validationSchemaStorage.js.map +1 -1
- package/lib/openapi/software/BaseJiraSoftwareApiClient.d.ts +2 -2
- package/lib/openapi/software/BaseJiraSoftwareApiClient.js +2 -2
- package/lib/openapi/software/BaseJiraSoftwareApiClient.js.map +1 -1
- package/lib/openapi/software/models/board.d.ts +4 -7
- package/lib/openapi/software/models/board.js.map +1 -1
- package/lib/openapi/software/models/builds.d.ts +39 -20
- package/lib/openapi/software/models/builds.js.map +1 -1
- package/lib/openapi/software/models/common.d.ts +8 -6
- package/lib/openapi/software/models/common.js.map +1 -1
- package/lib/openapi/software/models/deployments.d.ts +37 -18
- package/lib/openapi/software/models/deployments.js.map +1 -1
- package/lib/openapi/software/models/devOpsComponents.d.ts +7 -4
- package/lib/openapi/software/models/devOpsComponents.js.map +1 -1
- package/lib/openapi/software/models/developmentInformation.d.ts +107 -55
- package/lib/openapi/software/models/developmentInformation.js.map +1 -1
- package/lib/openapi/software/models/epic.d.ts +1 -1
- package/lib/openapi/software/models/featureFlags.d.ts +17 -9
- package/lib/openapi/software/models/featureFlags.js.map +1 -1
- package/lib/openapi/software/models/issue.d.ts +1 -1
- package/lib/openapi/software/models/operations.d.ts +61 -31
- package/lib/openapi/software/models/operations.js.map +1 -1
- package/lib/openapi/software/models/remoteLinks.d.ts +37 -19
- package/lib/openapi/software/models/remoteLinks.js.map +1 -1
- package/lib/openapi/software/models/securityInformation.d.ts +53 -27
- package/lib/openapi/software/models/securityInformation.js.map +1 -1
- package/lib/openapi/software/models/sprint.d.ts +1 -1
- package/lib/openapi/software/services/BacklogService.d.ts +14 -8
- package/lib/openapi/software/services/BacklogService.js +11 -7
- package/lib/openapi/software/services/BacklogService.js.map +1 -1
- package/lib/openapi/software/services/BoardService.d.ts +200 -204
- package/lib/openapi/software/services/BoardService.js +197 -203
- package/lib/openapi/software/services/BoardService.js.map +1 -1
- package/lib/openapi/software/services/BuildsService.d.ts +11 -9
- package/lib/openapi/software/services/BuildsService.js +12 -10
- package/lib/openapi/software/services/BuildsService.js.map +1 -1
- package/lib/openapi/software/services/DeploymentsService.d.ts +13 -13
- package/lib/openapi/software/services/DeploymentsService.js +14 -14
- package/lib/openapi/software/services/DeploymentsService.js.map +1 -1
- package/lib/openapi/software/services/DevOpsComponentsService.d.ts +33 -20
- package/lib/openapi/software/services/DevOpsComponentsService.js +12 -10
- package/lib/openapi/software/services/DevOpsComponentsService.js.map +1 -1
- package/lib/openapi/software/services/DevelopmentInformationService.d.ts +14 -9
- package/lib/openapi/software/services/DevelopmentInformationService.js +15 -10
- package/lib/openapi/software/services/DevelopmentInformationService.js.map +1 -1
- package/lib/openapi/software/services/EpicService.d.ts +67 -76
- package/lib/openapi/software/services/EpicService.js +60 -73
- package/lib/openapi/software/services/EpicService.js.map +1 -1
- package/lib/openapi/software/services/FeatureFlagsService.d.ts +11 -9
- package/lib/openapi/software/services/FeatureFlagsService.js +12 -10
- package/lib/openapi/software/services/FeatureFlagsService.js.map +1 -1
- package/lib/openapi/software/services/IssueService.d.ts +45 -44
- package/lib/openapi/software/services/IssueService.js +42 -43
- package/lib/openapi/software/services/IssueService.js.map +1 -1
- package/lib/openapi/software/services/OperationsService.d.ts +66 -38
- package/lib/openapi/software/services/OperationsService.js +23 -17
- package/lib/openapi/software/services/OperationsService.js.map +1 -1
- package/lib/openapi/software/services/RemoteLinksService.d.ts +18 -13
- package/lib/openapi/software/services/RemoteLinksService.js +12 -10
- package/lib/openapi/software/services/RemoteLinksService.js.map +1 -1
- package/lib/openapi/software/services/SecurityInformationService.d.ts +19 -13
- package/lib/openapi/software/services/SecurityInformationService.js +20 -14
- package/lib/openapi/software/services/SecurityInformationService.js.map +1 -1
- package/lib/openapi/software/services/SprintService.d.ts +79 -55
- package/lib/openapi/software/services/SprintService.js +70 -51
- package/lib/openapi/software/services/SprintService.js.map +1 -1
- package/lib/openapi/software/validationSchemaStorage.d.ts +1 -1
- package/lib/openapi/software/validationSchemaStorage.js +1 -1
- package/lib/openapi/software/validationSchemaStorage.js.map +1 -1
- package/package.json +3 -3
- package/lib/openapi/platform/core/CommonHttpClient.js +0 -390
- package/lib/openapi/platform/core/CommonHttpClient.js.map +0 -1
- package/lib/openapi/platform/core/CommonHttpService.d.ts +0 -9
- package/lib/openapi/platform/core/CommonHttpService.js.map +0 -1
- package/lib/openapi/platform/core/CommonValidationSchemaStorage.js.map +0 -1
- package/lib/openapi/serviceManagement/core/CommonHttpClient.d.ts +0 -196
- package/lib/openapi/serviceManagement/core/CommonHttpClient.js.map +0 -1
- package/lib/openapi/serviceManagement/core/CommonHttpService.d.ts +0 -9
- package/lib/openapi/serviceManagement/core/CommonHttpService.js +0 -29
- package/lib/openapi/serviceManagement/core/CommonHttpService.js.map +0 -1
- package/lib/openapi/serviceManagement/core/CommonValidationSchemaStorage.d.ts +0 -35
- package/lib/openapi/serviceManagement/core/CommonValidationSchemaStorage.js +0 -65
- package/lib/openapi/serviceManagement/core/CommonValidationSchemaStorage.js.map +0 -1
- package/lib/openapi/software/core/CommonHttpClient.d.ts +0 -196
- package/lib/openapi/software/core/CommonHttpClient.js +0 -390
- package/lib/openapi/software/core/CommonHttpClient.js.map +0 -1
- package/lib/openapi/software/core/CommonHttpService.js +0 -29
- package/lib/openapi/software/core/CommonHttpService.js.map +0 -1
- package/lib/openapi/software/core/CommonValidationSchemaStorage.d.ts +0 -35
- package/lib/openapi/software/core/CommonValidationSchemaStorage.js +0 -65
- package/lib/openapi/software/core/CommonValidationSchemaStorage.js.map +0 -1
- /package/lib/openapi/{platform/core → core}/CommonValidationSchemaStorage.d.ts +0 -0
- /package/lib/openapi/{platform/core → core}/CommonValidationSchemaStorage.js +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CommonHttpService } from "
|
|
1
|
+
import { CommonHttpService } from "../../core/CommonHttpService";
|
|
2
2
|
import { type Attachment, type AttachmentArchiveImpl, type AttachmentArchiveMetadataReadable, type AttachmentMetadata, type AttachmentSettings, type MultipartFile } from "../models/issueAttachments";
|
|
3
3
|
/**
|
|
4
4
|
* This resource represents issue attachments and the attachment settings for
|
|
@@ -24,142 +24,148 @@ export declare class IssueAttachmentsService extends CommonHttpService {
|
|
|
24
24
|
* *TEST-123*:
|
|
25
25
|
*
|
|
26
26
|
* #### curl ####
|
|
27
|
-
*
|
|
28
|
-
*
|
|
27
|
+
* ```
|
|
28
|
+
* curl --location --request POST
|
|
29
29
|
* 'https://your-domain.atlassian.net/rest/api/3/issue/TEST-123/attachments'
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
30
|
+
* -u 'email@example.com:<api_token>'
|
|
31
|
+
* -H 'X-Atlassian-Token: no-check'
|
|
32
|
+
* --form 'file=@"myfile.txt"'
|
|
33
|
+
* ```
|
|
33
34
|
*
|
|
34
35
|
* #### Node.js ####
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
*
|
|
47
|
-
*
|
|
48
|
-
*
|
|
49
|
-
*
|
|
50
|
-
*
|
|
51
|
-
*
|
|
36
|
+
* ```
|
|
37
|
+
* // This code sample uses the 'node-fetch' and 'form-data' libraries:
|
|
38
|
+
* // https://www.npmjs.com/package/node-fetch
|
|
39
|
+
* // https://www.npmjs.com/package/form-data
|
|
40
|
+
* const fetch = require('node-fetch');
|
|
41
|
+
* const FormData = require('form-data');
|
|
42
|
+
* const fs = require('fs');
|
|
43
|
+
*
|
|
44
|
+
* const filePath = 'myfile.txt';
|
|
45
|
+
* const form = new FormData();
|
|
46
|
+
* const stats = fs.statSync(filePath);
|
|
47
|
+
* const fileSizeInBytes = stats.size;
|
|
48
|
+
* const fileStream = fs.createReadStream(filePath);
|
|
49
|
+
*
|
|
50
|
+
* form.append('file', fileStream, {knownLength: fileSizeInBytes});
|
|
51
|
+
*
|
|
52
|
+
* fetch('https://your-domain.atlassian.net/rest/api/3/issue/TEST-123/attachments',
|
|
52
53
|
* {
|
|
53
|
-
*
|
|
54
|
-
*
|
|
55
|
-
*
|
|
56
|
-
*
|
|
57
|
-
*
|
|
58
|
-
*
|
|
59
|
-
*
|
|
60
|
-
*
|
|
61
|
-
*
|
|
54
|
+
* method: 'POST',
|
|
55
|
+
* body: form,
|
|
56
|
+
* headers: {
|
|
57
|
+
* 'Authorization': `Basic ${Buffer.from(
|
|
58
|
+
* 'email@example.com:'
|
|
59
|
+
* ).toString('base64')}`,
|
|
60
|
+
* 'Accept': 'application/json',
|
|
61
|
+
* 'X-Atlassian-Token': 'no-check'
|
|
62
|
+
* }
|
|
63
|
+
* })
|
|
64
|
+
* .then(response => {
|
|
65
|
+
* console.log(
|
|
66
|
+
* `Response: ${response.status} ${response.statusText}`
|
|
67
|
+
* );
|
|
68
|
+
* return response.text();
|
|
62
69
|
* })
|
|
63
|
-
*
|
|
64
|
-
*
|
|
65
|
-
*
|
|
66
|
-
* );
|
|
67
|
-
* return response.text();
|
|
68
|
-
* })
|
|
69
|
-
* .then(text => console.log(text))
|
|
70
|
-
* .catch(err => console.error(err));
|
|
70
|
+
* .then(text => console.log(text))
|
|
71
|
+
* .catch(err => console.error(err));
|
|
72
|
+
* ```
|
|
71
73
|
*
|
|
72
74
|
* #### Java ####
|
|
73
|
-
*
|
|
74
|
-
*
|
|
75
|
-
*
|
|
76
|
-
*
|
|
75
|
+
* ```
|
|
76
|
+
* // This code sample uses the 'Unirest' library:
|
|
77
|
+
* // http://unirest.io/java.html
|
|
78
|
+
* HttpResponse response =
|
|
77
79
|
* Unirest.post("https://your-domain.atlassian.net/rest/api/2/issue/{issueIdOrKey}/attachments")
|
|
78
|
-
*
|
|
79
|
-
*
|
|
80
|
-
*
|
|
81
|
-
*
|
|
82
|
-
*
|
|
80
|
+
* .basicAuth("email@example.com", "")
|
|
81
|
+
* .header("Accept", "application/json")
|
|
82
|
+
* .header("X-Atlassian-Token", "no-check")
|
|
83
|
+
* .field("file", new File("myfile.txt"))
|
|
84
|
+
* .asJson();
|
|
83
85
|
*
|
|
84
|
-
*
|
|
86
|
+
* System.out.println(response.getBody());
|
|
87
|
+
* ```
|
|
85
88
|
*
|
|
86
89
|
* #### Python ####
|
|
87
|
-
*
|
|
88
|
-
*
|
|
89
|
-
*
|
|
90
|
-
*
|
|
91
|
-
*
|
|
92
|
-
*
|
|
93
|
-
*
|
|
94
|
-
*
|
|
90
|
+
* ```
|
|
91
|
+
* # This code sample uses the 'requests' library:
|
|
92
|
+
* # http://docs.python-requests.org
|
|
93
|
+
* import requests
|
|
94
|
+
* from requests.auth import HTTPBasicAuth
|
|
95
|
+
* import json
|
|
96
|
+
*
|
|
97
|
+
* url =
|
|
95
98
|
* "https://your-domain.atlassian.net/rest/api/2/issue/{issueIdOrKey}/attachments"
|
|
96
99
|
*
|
|
97
|
-
*
|
|
100
|
+
* auth = HTTPBasicAuth("email@example.com", "")
|
|
98
101
|
*
|
|
99
|
-
*
|
|
100
|
-
*
|
|
101
|
-
*
|
|
102
|
-
*
|
|
102
|
+
* headers = {
|
|
103
|
+
* "Accept": "application/json",
|
|
104
|
+
* "X-Atlassian-Token": "no-check"
|
|
105
|
+
* }
|
|
103
106
|
*
|
|
104
|
-
*
|
|
105
|
-
*
|
|
106
|
-
*
|
|
107
|
-
*
|
|
108
|
-
*
|
|
109
|
-
*
|
|
110
|
-
*
|
|
111
|
-
*
|
|
112
|
-
*
|
|
113
|
-
*
|
|
114
|
-
*
|
|
107
|
+
* response = requests.request(
|
|
108
|
+
* "POST",
|
|
109
|
+
* url,
|
|
110
|
+
* headers = headers,
|
|
111
|
+
* auth = auth,
|
|
112
|
+
* files = {
|
|
113
|
+
* "file": ("myfile.txt", open("myfile.txt","rb"), "application-type")
|
|
114
|
+
* }
|
|
115
|
+
* )
|
|
116
|
+
*
|
|
117
|
+
* print(json.dumps(json.loads(response.text), sort_keys=True, indent=4,
|
|
115
118
|
* separators=(",", ": ")))
|
|
119
|
+
* ```
|
|
116
120
|
*
|
|
117
121
|
* #### PHP ####
|
|
122
|
+
* ```
|
|
123
|
+
* // This code sample uses the 'Unirest' library:
|
|
124
|
+
* // http://unirest.io/php.html
|
|
125
|
+
* Unirest\Request::auth('email@example.com', '');
|
|
118
126
|
*
|
|
119
|
-
*
|
|
120
|
-
*
|
|
121
|
-
*
|
|
122
|
-
*
|
|
123
|
-
* $headers = array(
|
|
124
|
-
* 'Accept' => 'application/json',
|
|
125
|
-
* 'X-Atlassian-Token' => 'no-check'
|
|
126
|
-
* );
|
|
127
|
+
* $headers = array(
|
|
128
|
+
* 'Accept' => 'application/json',
|
|
129
|
+
* 'X-Atlassian-Token' => 'no-check'
|
|
130
|
+
* );
|
|
127
131
|
*
|
|
128
|
-
*
|
|
129
|
-
*
|
|
130
|
-
*
|
|
132
|
+
* $parameters = array(
|
|
133
|
+
* 'file' => File::add('myfile.txt')
|
|
134
|
+
* );
|
|
131
135
|
*
|
|
132
|
-
*
|
|
133
|
-
*
|
|
134
|
-
*
|
|
135
|
-
*
|
|
136
|
-
*
|
|
136
|
+
* $response = Unirest\Request::post(
|
|
137
|
+
* 'https://your-domain.atlassian.net/rest/api/2/issue/{issueIdOrKey}/attachments',
|
|
138
|
+
* $headers,
|
|
139
|
+
* $parameters
|
|
140
|
+
* );
|
|
137
141
|
*
|
|
138
|
-
*
|
|
142
|
+
* var_dump($response)
|
|
143
|
+
* ```
|
|
139
144
|
*
|
|
140
145
|
* #### Forge ####
|
|
146
|
+
* ```
|
|
147
|
+
* // This sample uses Atlassian Forge and the `form-data` library.
|
|
148
|
+
* // https://developer.atlassian.com/platform/forge/
|
|
149
|
+
* // https://www.npmjs.com/package/form-data
|
|
150
|
+
* import api from "@forge/api";
|
|
151
|
+
* import FormData from "form-data";
|
|
141
152
|
*
|
|
142
|
-
*
|
|
143
|
-
*
|
|
144
|
-
* // https://www.npmjs.com/package/form-data
|
|
145
|
-
* import api from "@forge/api";
|
|
146
|
-
* import FormData from "form-data";
|
|
153
|
+
* const form = new FormData();
|
|
154
|
+
* form.append('file', fileStream, {knownLength: fileSizeInBytes});
|
|
147
155
|
*
|
|
148
|
-
*
|
|
149
|
-
* form.append('file', fileStream, {knownLength: fileSizeInBytes});
|
|
150
|
-
*
|
|
151
|
-
* const response = await
|
|
156
|
+
* const response = await
|
|
152
157
|
* api.asApp().requestJira('/rest/api/2/issue/{issueIdOrKey}/attachments', {
|
|
153
|
-
*
|
|
154
|
-
*
|
|
155
|
-
*
|
|
156
|
-
*
|
|
157
|
-
*
|
|
158
|
-
*
|
|
159
|
-
*
|
|
158
|
+
* method: 'POST',
|
|
159
|
+
* body: form,
|
|
160
|
+
* headers: {
|
|
161
|
+
* 'Accept': 'application/json',
|
|
162
|
+
* 'X-Atlassian-Token': 'no-check'
|
|
163
|
+
* }
|
|
164
|
+
* });
|
|
160
165
|
*
|
|
161
|
-
*
|
|
162
|
-
*
|
|
166
|
+
* console.log(`Response: ${response.status} ${response.statusText}`);
|
|
167
|
+
* console.log(await response.json());
|
|
168
|
+
* ```
|
|
163
169
|
*
|
|
164
170
|
* Tip: Use a client library. Many client libraries have classes for handling
|
|
165
171
|
* multipart POST operations. For example, in Java, the Apache HTTP Components
|
|
@@ -179,60 +185,49 @@ export declare class IssueAttachmentsService extends CommonHttpService {
|
|
|
179
185
|
*
|
|
180
186
|
* @returns Returned if the request is successful.
|
|
181
187
|
*
|
|
182
|
-
* example:
|
|
188
|
+
* example:
|
|
189
|
+
* ```
|
|
190
|
+
* [
|
|
183
191
|
* {
|
|
184
192
|
* "author": {
|
|
185
193
|
* "accountId": "5b10a2844c20165700ede21g",
|
|
186
194
|
* "active": true,
|
|
187
195
|
* "avatarUrls": {
|
|
188
|
-
* "16x16":
|
|
189
|
-
* "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=
|
|
190
|
-
* "
|
|
191
|
-
* "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=
|
|
192
|
-
* "32x32":
|
|
193
|
-
* "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
|
|
194
|
-
* "48x48":
|
|
195
|
-
* "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
|
|
196
|
+
* "16x16": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
|
|
197
|
+
* "24x24": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
|
|
198
|
+
* "32x32": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
|
|
199
|
+
* "48x48": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
|
|
196
200
|
* },
|
|
197
201
|
* "displayName": "Mia Krystof",
|
|
198
202
|
* "emailAddress": "mia@example.com",
|
|
199
|
-
* "self":
|
|
200
|
-
* "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g",
|
|
203
|
+
* "self": "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g",
|
|
201
204
|
* "timeZone": "Australia/Sydney"
|
|
202
205
|
* },
|
|
203
|
-
* "content":
|
|
204
|
-
* "https://your-domain.atlassian.net/rest/api/3/attachment/content/10000",
|
|
206
|
+
* "content": "https://your-domain.atlassian.net/rest/api/3/attachment/content/10000",
|
|
205
207
|
* "created": 1651316514000,
|
|
206
208
|
* "filename": "picture.jpg",
|
|
207
209
|
* "id": "10001",
|
|
208
210
|
* "mimeType": "image/jpeg",
|
|
209
211
|
* "self": "https://your-domain.atlassian.net/rest/api/3/attachments/10000",
|
|
210
212
|
* "size": 23123,
|
|
211
|
-
* "thumbnail":
|
|
212
|
-
* "https://your-domain.atlassian.net/rest/api/3/attachment/thumbnail/10000"
|
|
213
|
+
* "thumbnail": "https://your-domain.atlassian.net/rest/api/3/attachment/thumbnail/10000"
|
|
213
214
|
* },
|
|
214
215
|
* {
|
|
215
216
|
* "author": {
|
|
216
217
|
* "accountId": "5b10a2844c20165700ede21g",
|
|
217
218
|
* "active": true,
|
|
218
219
|
* "avatarUrls": {
|
|
219
|
-
* "16x16":
|
|
220
|
-
* "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=
|
|
221
|
-
* "
|
|
222
|
-
* "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=
|
|
223
|
-
* "32x32":
|
|
224
|
-
* "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
|
|
225
|
-
* "48x48":
|
|
226
|
-
* "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
|
|
220
|
+
* "16x16": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
|
|
221
|
+
* "24x24": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
|
|
222
|
+
* "32x32": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
|
|
223
|
+
* "48x48": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
|
|
227
224
|
* },
|
|
228
225
|
* "displayName": "Mia Krystof",
|
|
229
226
|
* "emailAddress": "mia@example.com",
|
|
230
|
-
* "self":
|
|
231
|
-
* "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g",
|
|
227
|
+
* "self": "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g",
|
|
232
228
|
* "timeZone": "Australia/Sydney"
|
|
233
229
|
* },
|
|
234
|
-
* "content":
|
|
235
|
-
* "https://your-domain.atlassian.net/rest/api/3/attachment/content/10001",
|
|
230
|
+
* "content": "https://your-domain.atlassian.net/rest/api/3/attachment/content/10001",
|
|
236
231
|
* "created": 1658898511000,
|
|
237
232
|
* "filename": "dbeuglog.txt",
|
|
238
233
|
* "mimeType": "text/plain",
|
|
@@ -240,10 +235,12 @@ export declare class IssueAttachmentsService extends CommonHttpService {
|
|
|
240
235
|
* "size": 2460
|
|
241
236
|
* }
|
|
242
237
|
* ]
|
|
243
|
-
*
|
|
238
|
+
* ```
|
|
239
|
+
* @path POST `/rest/api/3/issue/{issueIdOrKey}/attachments`
|
|
244
240
|
* @scopes-current write:jira-work
|
|
245
241
|
* @scopes-beta read:user:jira, write:attachment:jira, read:attachment:jira, read:avatar:jira
|
|
246
242
|
* @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-attachments#api-rest-api-3-issue-issueidorkey-attachments-post
|
|
243
|
+
* @param params
|
|
247
244
|
*/
|
|
248
245
|
addAttachment: ({ issueIdOrKey, requestBody, }: {
|
|
249
246
|
/** The ID or key of the issue that attachments are added to. */
|
|
@@ -276,10 +273,11 @@ export declare class IssueAttachmentsService extends CommonHttpService {
|
|
|
276
273
|
* * If [issue-level security](https://confluence.atlassian.com/x/J4lKLg) is
|
|
277
274
|
* configured, issue-level security permission to view the issue.
|
|
278
275
|
*
|
|
279
|
-
* @returns Returned if the request is successful. If an empty list is returned in the
|
|
280
|
-
* response, the attachment is empty, corrupt, or not an archive.
|
|
276
|
+
* @returns Returned if the request is successful. If an empty list is returned in the response, the attachment is empty, corrupt, or not an archive.
|
|
281
277
|
*
|
|
282
|
-
* example:
|
|
278
|
+
* example:
|
|
279
|
+
* ```
|
|
280
|
+
* {
|
|
283
281
|
* "entries": [
|
|
284
282
|
* {
|
|
285
283
|
* "index": 0,
|
|
@@ -299,8 +297,7 @@ export declare class IssueAttachmentsService extends CommonHttpService {
|
|
|
299
297
|
* "index": 2,
|
|
300
298
|
* "label": "long/path/thanks/to/.../reach/the/leaf.txt",
|
|
301
299
|
* "mediaType": "text/plain",
|
|
302
|
-
* "path":
|
|
303
|
-
* "long/path/thanks/to/lots/of/subdirectories/inside/making/it/quite/hard/to/reach/the/leaf.txt",
|
|
300
|
+
* "path": "long/path/thanks/to/lots/of/subdirectories/inside/making/it/quite/hard/to/reach/the/leaf.txt",
|
|
304
301
|
* "size": "0.0 k"
|
|
305
302
|
* }
|
|
306
303
|
* ],
|
|
@@ -309,10 +306,12 @@ export declare class IssueAttachmentsService extends CommonHttpService {
|
|
|
309
306
|
* "name": "images.zip",
|
|
310
307
|
* "totalEntryCount": 39
|
|
311
308
|
* }
|
|
312
|
-
*
|
|
309
|
+
* ```
|
|
310
|
+
* @path GET `/rest/api/3/attachment/{id}/expand/human`
|
|
313
311
|
* @scopes-current read:jira-work
|
|
314
312
|
* @scopes-beta read:attachment:jira
|
|
315
313
|
* @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-attachments#api-rest-api-3-attachment-id-expand-human-get
|
|
314
|
+
* @param params
|
|
316
315
|
*/
|
|
317
316
|
expandAttachmentForHumans: ({ id, }: {
|
|
318
317
|
/** The ID of the attachment. */
|
|
@@ -342,10 +341,11 @@ export declare class IssueAttachmentsService extends CommonHttpService {
|
|
|
342
341
|
* * If [issue-level security](https://confluence.atlassian.com/x/J4lKLg) is
|
|
343
342
|
* configured, issue-level security permission to view the issue.
|
|
344
343
|
*
|
|
345
|
-
* @returns Returned if the request is successful. If an empty list is returned in the
|
|
346
|
-
* response, the attachment is empty, corrupt, or not an archive.
|
|
344
|
+
* @returns Returned if the request is successful. If an empty list is returned in the response, the attachment is empty, corrupt, or not an archive.
|
|
347
345
|
*
|
|
348
|
-
* example:
|
|
346
|
+
* example:
|
|
347
|
+
* ```
|
|
348
|
+
* {
|
|
349
349
|
* "entries": [
|
|
350
350
|
* {
|
|
351
351
|
* "entryIndex": 0,
|
|
@@ -362,10 +362,12 @@ export declare class IssueAttachmentsService extends CommonHttpService {
|
|
|
362
362
|
* ],
|
|
363
363
|
* "totalEntryCount": 24
|
|
364
364
|
* }
|
|
365
|
-
*
|
|
365
|
+
* ```
|
|
366
|
+
* @path GET `/rest/api/3/attachment/{id}/expand/raw`
|
|
366
367
|
* @scopes-current read:jira-work
|
|
367
368
|
* @scopes-beta read:attachment:jira
|
|
368
369
|
* @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-attachments#api-rest-api-3-attachment-id-expand-raw-get
|
|
370
|
+
* @param params
|
|
369
371
|
*/
|
|
370
372
|
expandAttachmentForMachines: ({ id, }: {
|
|
371
373
|
/** The ID of the attachment. */
|
|
@@ -387,43 +389,39 @@ export declare class IssueAttachmentsService extends CommonHttpService {
|
|
|
387
389
|
*
|
|
388
390
|
* @returns Returned if the request is successful.
|
|
389
391
|
*
|
|
390
|
-
* example:
|
|
392
|
+
* example:
|
|
393
|
+
* ```
|
|
394
|
+
* {
|
|
391
395
|
* "author": {
|
|
392
396
|
* "accountId": "5b10a2844c20165700ede21g",
|
|
393
397
|
* "accountType": "atlassian",
|
|
394
398
|
* "active": false,
|
|
395
399
|
* "avatarUrls": {
|
|
396
|
-
* "16x16":
|
|
397
|
-
* "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=
|
|
398
|
-
* "
|
|
399
|
-
* "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=
|
|
400
|
-
* "32x32":
|
|
401
|
-
* "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
|
|
402
|
-
* "48x48":
|
|
403
|
-
* "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
|
|
400
|
+
* "16x16": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
|
|
401
|
+
* "24x24": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
|
|
402
|
+
* "32x32": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
|
|
403
|
+
* "48x48": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
|
|
404
404
|
* },
|
|
405
405
|
* "displayName": "Mia Krystof",
|
|
406
406
|
* "key": "",
|
|
407
407
|
* "name": "",
|
|
408
|
-
* "self":
|
|
409
|
-
* "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
|
|
408
|
+
* "self": "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
|
|
410
409
|
* },
|
|
411
|
-
* "content":
|
|
412
|
-
* "https://your-domain.atlassian.net/jira/rest/api/3/attachment/content/10000",
|
|
410
|
+
* "content": "https://your-domain.atlassian.net/jira/rest/api/3/attachment/content/10000",
|
|
413
411
|
* "created": "2022-10-06T07:32:47.000+0000",
|
|
414
412
|
* "filename": "picture.jpg",
|
|
415
413
|
* "id": 10000,
|
|
416
414
|
* "mimeType": "image/jpeg",
|
|
417
415
|
* "self": "https://your-domain.atlassian.net/rest/api/3/attachments/10000",
|
|
418
416
|
* "size": 23123,
|
|
419
|
-
* "thumbnail":
|
|
420
|
-
* "https://your-domain.atlassian.net/jira/rest/api/3/attachment/thumbnail/10000"
|
|
417
|
+
* "thumbnail": "https://your-domain.atlassian.net/jira/rest/api/3/attachment/thumbnail/10000"
|
|
421
418
|
* }
|
|
422
|
-
*
|
|
419
|
+
* ```
|
|
420
|
+
* @path GET `/rest/api/3/attachment/{id}`
|
|
423
421
|
* @scopes-current read:jira-work
|
|
424
|
-
* @scopes-beta read:attachment:jira, read:user:jira, read:application-role:jira,
|
|
425
|
-
* read:avatar:jira, read:group:jira
|
|
422
|
+
* @scopes-beta read:attachment:jira, read:user:jira, read:application-role:jira, read:avatar:jira, read:group:jira
|
|
426
423
|
* @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-attachments#api-rest-api-3-attachment-id-get
|
|
424
|
+
* @param params
|
|
427
425
|
*/
|
|
428
426
|
getAttachment: ({ id, }: {
|
|
429
427
|
/** The ID of the attachment. */
|
|
@@ -450,10 +448,11 @@ export declare class IssueAttachmentsService extends CommonHttpService {
|
|
|
450
448
|
* configured, issue-level security permission to view the issue.
|
|
451
449
|
*
|
|
452
450
|
* @returns Returned if the request is successful when `redirect` is set to `false`.
|
|
453
|
-
* @path
|
|
451
|
+
* @path GET `/rest/api/3/attachment/content/{id}`
|
|
454
452
|
* @scopes-current read:jira-work
|
|
455
453
|
* @scopes-beta read:attachment:jira
|
|
456
454
|
* @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-attachments#api-rest-api-3-attachment-content-id-get
|
|
455
|
+
* @param params
|
|
457
456
|
*/
|
|
458
457
|
getAttachmentContent: ({ id, redirect, }: {
|
|
459
458
|
/** The ID of the attachment. */
|
|
@@ -479,11 +478,14 @@ export declare class IssueAttachmentsService extends CommonHttpService {
|
|
|
479
478
|
*
|
|
480
479
|
* @returns Returned if the request is successful.
|
|
481
480
|
*
|
|
482
|
-
* example:
|
|
481
|
+
* example:
|
|
482
|
+
* ```
|
|
483
|
+
* {
|
|
483
484
|
* "enabled": true,
|
|
484
485
|
* "uploadLimit": 1000000
|
|
485
486
|
* }
|
|
486
|
-
*
|
|
487
|
+
* ```
|
|
488
|
+
* @path GET `/rest/api/3/attachment/meta`
|
|
487
489
|
* @scopes-current read:jira-work
|
|
488
490
|
* @scopes-beta read:instance-configuration:jira
|
|
489
491
|
* @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-attachments#api-rest-api-3-attachment-meta-get
|
|
@@ -507,10 +509,11 @@ export declare class IssueAttachmentsService extends CommonHttpService {
|
|
|
507
509
|
* configured, issue-level security permission to view the issue.
|
|
508
510
|
*
|
|
509
511
|
* @returns Returned if the request is successful when `redirect` is set to `false`.
|
|
510
|
-
* @path
|
|
512
|
+
* @path GET `/rest/api/3/attachment/thumbnail/{id}`
|
|
511
513
|
* @scopes-current read:jira-work
|
|
512
514
|
* @scopes-beta read:attachment:jira
|
|
513
515
|
* @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-attachments#api-rest-api-3-attachment-thumbnail-id-get
|
|
516
|
+
* @param params
|
|
514
517
|
*/
|
|
515
518
|
getAttachmentThumbnail: ({ id, redirect, fallbackToDefault, width, height, }: {
|
|
516
519
|
/** The ID of the attachment. */
|
|
@@ -546,10 +549,11 @@ export declare class IssueAttachmentsService extends CommonHttpService {
|
|
|
546
549
|
* permission](https://confluence.atlassian.com/x/yodKLg) to delete an attachment
|
|
547
550
|
* created by any user.
|
|
548
551
|
*
|
|
549
|
-
* @path
|
|
552
|
+
* @path DELETE `/rest/api/3/attachment/{id}`
|
|
550
553
|
* @scopes-current write:jira-work
|
|
551
554
|
* @scopes-beta delete:attachment:jira
|
|
552
555
|
* @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-attachments#api-rest-api-3-attachment-id-delete
|
|
556
|
+
* @param params
|
|
553
557
|
*/
|
|
554
558
|
removeAttachment: ({ id, }: {
|
|
555
559
|
/** The ID of the attachment. */
|