@resolution/jira-api-client 0.4.2 → 0.4.5
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 +23 -0
- package/README.md +4 -0
- package/lib/openapi/platform/BaseJiraPlatformApiClient.d.ts +28 -4
- package/lib/openapi/platform/BaseJiraPlatformApiClient.js +24 -1
- package/lib/openapi/platform/BaseJiraPlatformApiClient.js.map +1 -1
- package/lib/openapi/platform/models/common.d.ts +6 -0
- package/lib/openapi/platform/models/common.js +12 -1
- package/lib/openapi/platform/models/common.js.map +1 -1
- package/lib/openapi/platform/models/dynamicModules.d.ts +0 -9
- package/lib/openapi/platform/models/dynamicModules.js +0 -6
- package/lib/openapi/platform/models/dynamicModules.js.map +1 -1
- package/lib/openapi/platform/models/issueBulkOperations.d.ts +547 -0
- package/lib/openapi/platform/models/issueBulkOperations.js +437 -0
- package/lib/openapi/platform/models/issueBulkOperations.js.map +1 -0
- package/lib/openapi/platform/services/AnnouncementBannerService.d.ts +3 -3
- package/lib/openapi/platform/services/AnnouncementBannerService.js +65 -62
- package/lib/openapi/platform/services/AnnouncementBannerService.js.map +1 -1
- package/lib/openapi/platform/services/AppDataPoliciesService.d.ts +4 -4
- package/lib/openapi/platform/services/AppDataPoliciesService.js +70 -67
- package/lib/openapi/platform/services/AppDataPoliciesService.js.map +1 -1
- package/lib/openapi/platform/services/AppMigrationService.d.ts +6 -6
- package/lib/openapi/platform/services/AppMigrationService.js +139 -136
- package/lib/openapi/platform/services/AppMigrationService.js.map +1 -1
- package/lib/openapi/platform/services/AppPropertiesService.d.ts +12 -12
- package/lib/openapi/platform/services/AppPropertiesService.js +254 -251
- package/lib/openapi/platform/services/AppPropertiesService.js.map +1 -1
- package/lib/openapi/platform/services/ApplicationRolesService.d.ts +3 -3
- package/lib/openapi/platform/services/ApplicationRolesService.js +177 -174
- package/lib/openapi/platform/services/ApplicationRolesService.js.map +1 -1
- package/lib/openapi/platform/services/AuditRecordsService.d.ts +7 -7
- package/lib/openapi/platform/services/AuditRecordsService.js +97 -94
- package/lib/openapi/platform/services/AuditRecordsService.js.map +1 -1
- package/lib/openapi/platform/services/AvatarsService.d.ts +25 -31
- package/lib/openapi/platform/services/AvatarsService.js +412 -415
- package/lib/openapi/platform/services/AvatarsService.js.map +1 -1
- package/lib/openapi/platform/services/ClassificationLevelsService.d.ts +4 -4
- package/lib/openapi/platform/services/ClassificationLevelsService.js +79 -76
- package/lib/openapi/platform/services/ClassificationLevelsService.js.map +1 -1
- package/lib/openapi/platform/services/DashboardsService.d.ts +62 -50
- package/lib/openapi/platform/services/DashboardsService.js +983 -974
- package/lib/openapi/platform/services/DashboardsService.js.map +1 -1
- package/lib/openapi/platform/services/DynamicModulesService.d.ts +6 -6
- package/lib/openapi/platform/services/DynamicModulesService.js +68 -65
- package/lib/openapi/platform/services/DynamicModulesService.js.map +1 -1
- package/lib/openapi/platform/services/FilterSharingService.d.ts +11 -11
- package/lib/openapi/platform/services/FilterSharingService.js +512 -509
- package/lib/openapi/platform/services/FilterSharingService.js.map +1 -1
- package/lib/openapi/platform/services/FiltersService.d.ts +50 -50
- package/lib/openapi/platform/services/FiltersService.js +1262 -1259
- package/lib/openapi/platform/services/FiltersService.js.map +1 -1
- package/lib/openapi/platform/services/GroupAndUserPickerService.d.ts +10 -10
- package/lib/openapi/platform/services/GroupAndUserPickerService.js +112 -109
- package/lib/openapi/platform/services/GroupAndUserPickerService.js.map +1 -1
- package/lib/openapi/platform/services/GroupsService.d.ts +46 -46
- package/lib/openapi/platform/services/GroupsService.js +385 -382
- package/lib/openapi/platform/services/GroupsService.js.map +1 -1
- package/lib/openapi/platform/services/IssueAttachmentsService.d.ts +20 -20
- package/lib/openapi/platform/services/IssueAttachmentsService.js +644 -641
- package/lib/openapi/platform/services/IssueAttachmentsService.js.map +1 -1
- package/lib/openapi/platform/services/IssueBulkOperationsService.d.ts +325 -0
- package/lib/openapi/platform/services/IssueBulkOperationsService.js +353 -0
- package/lib/openapi/platform/services/IssueBulkOperationsService.js.map +1 -0
- package/lib/openapi/platform/services/IssueCommentPropertiesService.d.ts +8 -8
- package/lib/openapi/platform/services/IssueCommentPropertiesService.js +187 -184
- package/lib/openapi/platform/services/IssueCommentPropertiesService.js.map +1 -1
- package/lib/openapi/platform/services/IssueCommentsService.d.ts +22 -22
- package/lib/openapi/platform/services/IssueCommentsService.js +507 -504
- package/lib/openapi/platform/services/IssueCommentsService.js.map +1 -1
- package/lib/openapi/platform/services/IssueCustomFieldConfigurationAppsService.d.ts +11 -11
- package/lib/openapi/platform/services/IssueCustomFieldConfigurationAppsService.js +126 -123
- package/lib/openapi/platform/services/IssueCustomFieldConfigurationAppsService.js.map +1 -1
- package/lib/openapi/platform/services/IssueCustomFieldContextsService.d.ts +42 -42
- package/lib/openapi/platform/services/IssueCustomFieldContextsService.js +748 -745
- package/lib/openapi/platform/services/IssueCustomFieldContextsService.js.map +1 -1
- package/lib/openapi/platform/services/IssueCustomFieldOptionsAppsService.d.ts +28 -28
- package/lib/openapi/platform/services/IssueCustomFieldOptionsAppsService.js +535 -532
- package/lib/openapi/platform/services/IssueCustomFieldOptionsAppsService.js.map +1 -1
- package/lib/openapi/platform/services/IssueCustomFieldOptionsService.d.ts +20 -20
- package/lib/openapi/platform/services/IssueCustomFieldOptionsService.js +358 -355
- package/lib/openapi/platform/services/IssueCustomFieldOptionsService.js.map +1 -1
- package/lib/openapi/platform/services/IssueCustomFieldValuesAppsService.d.ts +6 -6
- package/lib/openapi/platform/services/IssueCustomFieldValuesAppsService.js +86 -83
- package/lib/openapi/platform/services/IssueCustomFieldValuesAppsService.js.map +1 -1
- package/lib/openapi/platform/services/IssueFieldConfigurationsService.d.ts +45 -45
- package/lib/openapi/platform/services/IssueFieldConfigurationsService.js +689 -686
- package/lib/openapi/platform/services/IssueFieldConfigurationsService.js.map +1 -1
- package/lib/openapi/platform/services/IssueFieldsService.d.ts +32 -32
- package/lib/openapi/platform/services/IssueFieldsService.js +484 -481
- package/lib/openapi/platform/services/IssueFieldsService.js.map +1 -1
- package/lib/openapi/platform/services/IssueLinkTypesService.d.ts +9 -9
- package/lib/openapi/platform/services/IssueLinkTypesService.js +212 -209
- package/lib/openapi/platform/services/IssueLinkTypesService.js.map +1 -1
- package/lib/openapi/platform/services/IssueLinksService.d.ts +6 -6
- package/lib/openapi/platform/services/IssueLinksService.js +230 -227
- package/lib/openapi/platform/services/IssueLinksService.js.map +1 -1
- package/lib/openapi/platform/services/IssueNavigatorSettingsService.d.ts +3 -3
- package/lib/openapi/platform/services/IssueNavigatorSettingsService.js +72 -69
- package/lib/openapi/platform/services/IssueNavigatorSettingsService.js.map +1 -1
- package/lib/openapi/platform/services/IssueNotificationSchemesService.d.ts +27 -27
- package/lib/openapi/platform/services/IssueNotificationSchemesService.js +816 -813
- package/lib/openapi/platform/services/IssueNotificationSchemesService.js.map +1 -1
- package/lib/openapi/platform/services/IssuePrioritiesService.d.ts +22 -22
- package/lib/openapi/platform/services/IssuePrioritiesService.js +307 -304
- package/lib/openapi/platform/services/IssuePrioritiesService.js.map +1 -1
- package/lib/openapi/platform/services/IssuePropertiesService.d.ts +16 -16
- package/lib/openapi/platform/services/IssuePropertiesService.js +390 -387
- package/lib/openapi/platform/services/IssuePropertiesService.js.map +1 -1
- package/lib/openapi/platform/services/IssueRemoteLinksService.d.ts +13 -13
- package/lib/openapi/platform/services/IssueRemoteLinksService.js +368 -365
- package/lib/openapi/platform/services/IssueRemoteLinksService.js.map +1 -1
- package/lib/openapi/platform/services/IssueResolutionsService.d.ts +19 -19
- package/lib/openapi/platform/services/IssueResolutionsService.js +283 -280
- package/lib/openapi/platform/services/IssueResolutionsService.js.map +1 -1
- package/lib/openapi/platform/services/IssueSearchService.d.ts +24 -24
- package/lib/openapi/platform/services/IssueSearchService.js +826 -823
- package/lib/openapi/platform/services/IssueSearchService.js.map +1 -1
- package/lib/openapi/platform/services/IssueSecurityLevelService.d.ts +8 -8
- package/lib/openapi/platform/services/IssueSecurityLevelService.js +137 -134
- package/lib/openapi/platform/services/IssueSecurityLevelService.js.map +1 -1
- package/lib/openapi/platform/services/IssueSecuritySchemesService.d.ts +51 -51
- package/lib/openapi/platform/services/IssueSecuritySchemesService.js +610 -607
- package/lib/openapi/platform/services/IssueSecuritySchemesService.js.map +1 -1
- package/lib/openapi/platform/services/IssueTypePropertiesService.d.ts +8 -8
- package/lib/openapi/platform/services/IssueTypePropertiesService.js +175 -172
- package/lib/openapi/platform/services/IssueTypePropertiesService.js.map +1 -1
- package/lib/openapi/platform/services/IssueTypeSchemesService.d.ts +31 -31
- package/lib/openapi/platform/services/IssueTypeSchemesService.js +527 -524
- package/lib/openapi/platform/services/IssueTypeSchemesService.js.map +1 -1
- package/lib/openapi/platform/services/IssueTypeScreenSchemesService.d.ts +36 -36
- package/lib/openapi/platform/services/IssueTypeScreenSchemesService.js +508 -505
- package/lib/openapi/platform/services/IssueTypeScreenSchemesService.js.map +1 -1
- package/lib/openapi/platform/services/IssueTypesService.d.ts +22 -28
- package/lib/openapi/platform/services/IssueTypesService.js +424 -427
- package/lib/openapi/platform/services/IssueTypesService.js.map +1 -1
- package/lib/openapi/platform/services/IssueVotesService.d.ts +6 -6
- package/lib/openapi/platform/services/IssueVotesService.js +148 -145
- package/lib/openapi/platform/services/IssueVotesService.js.map +1 -1
- package/lib/openapi/platform/services/IssueWatchersService.d.ts +10 -10
- package/lib/openapi/platform/services/IssueWatchersService.js +197 -194
- package/lib/openapi/platform/services/IssueWatchersService.js.map +1 -1
- package/lib/openapi/platform/services/IssueWorklogPropertiesService.d.ts +8 -8
- package/lib/openapi/platform/services/IssueWorklogPropertiesService.js +199 -196
- package/lib/openapi/platform/services/IssueWorklogPropertiesService.js.map +1 -1
- package/lib/openapi/platform/services/IssueWorklogsService.d.ts +44 -44
- package/lib/openapi/platform/services/IssueWorklogsService.js +636 -633
- package/lib/openapi/platform/services/IssueWorklogsService.js.map +1 -1
- package/lib/openapi/platform/services/IssuesService.d.ts +71 -71
- package/lib/openapi/platform/services/IssuesService.js +1856 -1853
- package/lib/openapi/platform/services/IssuesService.js.map +1 -1
- package/lib/openapi/platform/services/JiraExpressionsService.d.ts +6 -6
- package/lib/openapi/platform/services/JiraExpressionsService.js +238 -235
- package/lib/openapi/platform/services/JiraExpressionsService.js.map +1 -1
- package/lib/openapi/platform/services/JiraSettingsService.d.ts +9 -9
- package/lib/openapi/platform/services/JiraSettingsService.js +279 -276
- package/lib/openapi/platform/services/JiraSettingsService.js.map +1 -1
- package/lib/openapi/platform/services/JqlFunctionsAppsService.d.ts +8 -8
- package/lib/openapi/platform/services/JqlFunctionsAppsService.js +107 -104
- package/lib/openapi/platform/services/JqlFunctionsAppsService.js.map +1 -1
- package/lib/openapi/platform/services/JqlService.d.ts +15 -15
- package/lib/openapi/platform/services/JqlService.js +635 -632
- package/lib/openapi/platform/services/JqlService.js.map +1 -1
- package/lib/openapi/platform/services/LabelsService.d.ts +4 -4
- package/lib/openapi/platform/services/LabelsService.js +41 -38
- package/lib/openapi/platform/services/LabelsService.js.map +1 -1
- package/lib/openapi/platform/services/LicenseMetricsService.d.ts +4 -4
- package/lib/openapi/platform/services/LicenseMetricsService.js +120 -117
- package/lib/openapi/platform/services/LicenseMetricsService.js.map +1 -1
- package/lib/openapi/platform/services/MyselfService.d.ts +14 -14
- package/lib/openapi/platform/services/MyselfService.js +321 -318
- package/lib/openapi/platform/services/MyselfService.js.map +1 -1
- package/lib/openapi/platform/services/PermissionSchemesService.d.ts +25 -25
- package/lib/openapi/platform/services/PermissionSchemesService.js +548 -545
- package/lib/openapi/platform/services/PermissionSchemesService.js.map +1 -1
- package/lib/openapi/platform/services/PermissionsService.d.ts +15 -15
- package/lib/openapi/platform/services/PermissionsService.js +235 -232
- package/lib/openapi/platform/services/PermissionsService.js.map +1 -1
- package/lib/openapi/platform/services/PrioritySchemesService.d.ts +34 -34
- package/lib/openapi/platform/services/PrioritySchemesService.js +571 -568
- package/lib/openapi/platform/services/PrioritySchemesService.js.map +1 -1
- package/lib/openapi/platform/services/ProjectAvatarsService.d.ts +11 -11
- package/lib/openapi/platform/services/ProjectAvatarsService.js +213 -210
- package/lib/openapi/platform/services/ProjectAvatarsService.js.map +1 -1
- package/lib/openapi/platform/services/ProjectCategoriesService.d.ts +9 -9
- package/lib/openapi/platform/services/ProjectCategoriesService.js +180 -177
- package/lib/openapi/platform/services/ProjectCategoriesService.js.map +1 -1
- package/lib/openapi/platform/services/ProjectClassificationLevelsService.d.ts +6 -6
- package/lib/openapi/platform/services/ProjectClassificationLevelsService.js +125 -122
- package/lib/openapi/platform/services/ProjectClassificationLevelsService.js.map +1 -1
- package/lib/openapi/platform/services/ProjectComponentsService.d.ts +28 -28
- package/lib/openapi/platform/services/ProjectComponentsService.js +1009 -1006
- package/lib/openapi/platform/services/ProjectComponentsService.js.map +1 -1
- package/lib/openapi/platform/services/ProjectEmailService.d.ts +4 -4
- package/lib/openapi/platform/services/ProjectEmailService.js +78 -75
- package/lib/openapi/platform/services/ProjectEmailService.js.map +1 -1
- package/lib/openapi/platform/services/ProjectFeaturesService.d.ts +4 -4
- package/lib/openapi/platform/services/ProjectFeaturesService.js +119 -116
- package/lib/openapi/platform/services/ProjectFeaturesService.js.map +1 -1
- package/lib/openapi/platform/services/ProjectKeyAndNameValidationService.d.ts +8 -8
- package/lib/openapi/platform/services/ProjectKeyAndNameValidationService.js +100 -97
- package/lib/openapi/platform/services/ProjectKeyAndNameValidationService.js.map +1 -1
- package/lib/openapi/platform/services/ProjectPermissionSchemesService.d.ts +10 -10
- package/lib/openapi/platform/services/ProjectPermissionSchemesService.js +199 -196
- package/lib/openapi/platform/services/ProjectPermissionSchemesService.js.map +1 -1
- package/lib/openapi/platform/services/ProjectPropertiesService.d.ts +8 -8
- package/lib/openapi/platform/services/ProjectPropertiesService.js +172 -169
- package/lib/openapi/platform/services/ProjectPropertiesService.js.map +1 -1
- package/lib/openapi/platform/services/ProjectRoleActorsService.d.ts +18 -18
- package/lib/openapi/platform/services/ProjectRoleActorsService.js +362 -359
- package/lib/openapi/platform/services/ProjectRoleActorsService.js.map +1 -1
- package/lib/openapi/platform/services/ProjectRolesService.d.ts +21 -21
- package/lib/openapi/platform/services/ProjectRolesService.js +576 -573
- package/lib/openapi/platform/services/ProjectRolesService.js.map +1 -1
- package/lib/openapi/platform/services/ProjectTypesService.d.ts +6 -6
- package/lib/openapi/platform/services/ProjectTypesService.js +173 -170
- package/lib/openapi/platform/services/ProjectTypesService.js.map +1 -1
- package/lib/openapi/platform/services/ProjectVersionsService.d.ts +40 -40
- package/lib/openapi/platform/services/ProjectVersionsService.js +751 -748
- package/lib/openapi/platform/services/ProjectVersionsService.js.map +1 -1
- package/lib/openapi/platform/services/ProjectsService.d.ts +49 -49
- package/lib/openapi/platform/services/ProjectsService.js +1597 -1594
- package/lib/openapi/platform/services/ProjectsService.js.map +1 -1
- package/lib/openapi/platform/services/ScreenSchemesService.d.ts +14 -14
- package/lib/openapi/platform/services/ScreenSchemesService.js +177 -174
- package/lib/openapi/platform/services/ScreenSchemesService.js.map +1 -1
- package/lib/openapi/platform/services/ScreenTabFieldsService.d.ts +9 -9
- package/lib/openapi/platform/services/ScreenTabFieldsService.js +144 -141
- package/lib/openapi/platform/services/ScreenTabFieldsService.js.map +1 -1
- package/lib/openapi/platform/services/ScreenTabsService.d.ts +17 -17
- package/lib/openapi/platform/services/ScreenTabsService.js +229 -226
- package/lib/openapi/platform/services/ScreenTabsService.js.map +1 -1
- package/lib/openapi/platform/services/ScreensService.d.ts +23 -23
- package/lib/openapi/platform/services/ScreensService.js +281 -278
- package/lib/openapi/platform/services/ScreensService.js.map +1 -1
- package/lib/openapi/platform/services/ServerInfoService.d.ts +1 -1
- package/lib/openapi/platform/services/ServerInfoService.js +51 -48
- package/lib/openapi/platform/services/ServerInfoService.js.map +1 -1
- package/lib/openapi/platform/services/ServiceRegistryService.d.ts +2 -2
- package/lib/openapi/platform/services/ServiceRegistryService.js +30 -27
- package/lib/openapi/platform/services/ServiceRegistryService.js.map +1 -1
- package/lib/openapi/platform/services/StatusService.d.ts +17 -17
- package/lib/openapi/platform/services/StatusService.js +271 -268
- package/lib/openapi/platform/services/StatusService.js.map +1 -1
- package/lib/openapi/platform/services/TasksService.d.ts +4 -4
- package/lib/openapi/platform/services/TasksService.js +93 -90
- package/lib/openapi/platform/services/TasksService.js.map +1 -1
- package/lib/openapi/platform/services/TimeTrackingService.d.ts +7 -7
- package/lib/openapi/platform/services/TimeTrackingService.js +190 -187
- package/lib/openapi/platform/services/TimeTrackingService.js.map +1 -1
- package/lib/openapi/platform/services/UiModificationsAppsService.d.ts +11 -11
- package/lib/openapi/platform/services/UiModificationsAppsService.js +214 -211
- package/lib/openapi/platform/services/UiModificationsAppsService.js.map +1 -1
- package/lib/openapi/platform/services/UserPropertiesService.d.ts +20 -20
- package/lib/openapi/platform/services/UserPropertiesService.js +196 -193
- package/lib/openapi/platform/services/UserPropertiesService.js.map +1 -1
- package/lib/openapi/platform/services/UserSearchService.d.ts +61 -61
- package/lib/openapi/platform/services/UserSearchService.js +709 -706
- package/lib/openapi/platform/services/UserSearchService.js.map +1 -1
- package/lib/openapi/platform/services/UsersService.d.ts +51 -51
- package/lib/openapi/platform/services/UsersService.js +637 -634
- package/lib/openapi/platform/services/UsersService.js.map +1 -1
- package/lib/openapi/platform/services/WebhooksService.d.ts +14 -14
- package/lib/openapi/platform/services/WebhooksService.js +262 -259
- package/lib/openapi/platform/services/WebhooksService.js.map +1 -1
- package/lib/openapi/platform/services/WorkflowSchemeDraftsService.d.ts +30 -30
- package/lib/openapi/platform/services/WorkflowSchemeDraftsService.js +861 -858
- package/lib/openapi/platform/services/WorkflowSchemeDraftsService.js.map +1 -1
- package/lib/openapi/platform/services/WorkflowSchemeProjectAssociationsService.d.ts +4 -4
- package/lib/openapi/platform/services/WorkflowSchemeProjectAssociationsService.js +98 -95
- package/lib/openapi/platform/services/WorkflowSchemeProjectAssociationsService.js.map +1 -1
- package/lib/openapi/platform/services/WorkflowSchemesService.d.ts +45 -45
- package/lib/openapi/platform/services/WorkflowSchemesService.js +899 -896
- package/lib/openapi/platform/services/WorkflowSchemesService.js.map +1 -1
- package/lib/openapi/platform/services/WorkflowStatusCategoriesService.d.ts +3 -3
- package/lib/openapi/platform/services/WorkflowStatusCategoriesService.js +82 -79
- package/lib/openapi/platform/services/WorkflowStatusCategoriesService.js.map +1 -1
- package/lib/openapi/platform/services/WorkflowStatusesService.d.ts +3 -3
- package/lib/openapi/platform/services/WorkflowStatusesService.js +110 -107
- package/lib/openapi/platform/services/WorkflowStatusesService.js.map +1 -1
- package/lib/openapi/platform/services/WorkflowTransitionPropertiesService.d.ts +14 -14
- package/lib/openapi/platform/services/WorkflowTransitionPropertiesService.js +182 -179
- package/lib/openapi/platform/services/WorkflowTransitionPropertiesService.js.map +1 -1
- package/lib/openapi/platform/services/WorkflowTransitionRulesService.d.ts +13 -13
- package/lib/openapi/platform/services/WorkflowTransitionRulesService.js +283 -280
- package/lib/openapi/platform/services/WorkflowTransitionRulesService.js.map +1 -1
- package/lib/openapi/platform/services/WorkflowsService.d.ts +33 -33
- package/lib/openapi/platform/services/WorkflowsService.js +2451 -2448
- package/lib/openapi/platform/services/WorkflowsService.js.map +1 -1
- package/lib/openapi/software/services/BacklogService.d.ts +4 -4
- package/lib/openapi/software/services/BacklogService.js +81 -78
- package/lib/openapi/software/services/BacklogService.js.map +1 -1
- package/lib/openapi/software/services/BoardService.d.ts +124 -124
- package/lib/openapi/software/services/BoardService.js +2048 -2045
- package/lib/openapi/software/services/BoardService.js.map +1 -1
- package/lib/openapi/software/services/BuildsService.d.ts +10 -10
- package/lib/openapi/software/services/BuildsService.js +164 -161
- package/lib/openapi/software/services/BuildsService.js.map +1 -1
- package/lib/openapi/software/services/DeploymentsService.d.ts +12 -12
- package/lib/openapi/software/services/DeploymentsService.js +192 -189
- package/lib/openapi/software/services/DeploymentsService.js.map +1 -1
- package/lib/openapi/software/services/DevOpsComponentsService.d.ts +8 -8
- package/lib/openapi/software/services/DevOpsComponentsService.js +145 -142
- package/lib/openapi/software/services/DevOpsComponentsService.js.map +1 -1
- package/lib/openapi/software/services/DevelopmentInformationService.d.ts +16 -16
- package/lib/openapi/software/services/DevelopmentInformationService.js +178 -175
- package/lib/openapi/software/services/DevelopmentInformationService.js.map +1 -1
- package/lib/openapi/software/services/EpicService.d.ts +26 -26
- package/lib/openapi/software/services/EpicService.js +597 -594
- package/lib/openapi/software/services/EpicService.js.map +1 -1
- package/lib/openapi/software/services/FeatureFlagsService.d.ts +10 -10
- package/lib/openapi/software/services/FeatureFlagsService.js +151 -148
- package/lib/openapi/software/services/FeatureFlagsService.js.map +1 -1
- package/lib/openapi/software/services/IssueService.d.ts +13 -13
- package/lib/openapi/software/services/IssueService.js +359 -356
- package/lib/openapi/software/services/IssueService.js.map +1 -1
- package/lib/openapi/software/services/OperationsService.d.ts +24 -24
- package/lib/openapi/software/services/OperationsService.js +301 -298
- package/lib/openapi/software/services/OperationsService.js.map +1 -1
- package/lib/openapi/software/services/RemoteLinksService.d.ts +15 -15
- package/lib/openapi/software/services/RemoteLinksService.js +160 -157
- package/lib/openapi/software/services/RemoteLinksService.js.map +1 -1
- package/lib/openapi/software/services/SecurityInformationService.d.ts +16 -16
- package/lib/openapi/software/services/SecurityInformationService.js +262 -259
- package/lib/openapi/software/services/SecurityInformationService.js.map +1 -1
- package/lib/openapi/software/services/SprintService.d.ts +33 -33
- package/lib/openapi/software/services/SprintService.js +594 -591
- package/lib/openapi/software/services/SprintService.js.map +1 -1
- package/package.json +4 -3
|
@@ -20,712 +20,715 @@ const validationSchemaStorage_1 = require("../validationSchemaStorage");
|
|
|
20
20
|
* @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-user-search
|
|
21
21
|
*/
|
|
22
22
|
class UserSearchService extends CommonHttpService_1.CommonHttpService {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
23
|
+
constructor() {
|
|
24
|
+
super(...arguments);
|
|
25
|
+
/**
|
|
26
|
+
* Returns a list of users that can be assigned to an issue. Use this operation to
|
|
27
|
+
* find the list of users who can be assigned to:
|
|
28
|
+
*
|
|
29
|
+
* * a new issue, by providing the `projectKeyOrId`.
|
|
30
|
+
* * an updated issue, by providing the `issueKey`.
|
|
31
|
+
* * to an issue during a transition (workflow action), by providing the
|
|
32
|
+
* `issueKey` and the transition id in `actionDescriptorId`. You can obtain the
|
|
33
|
+
* IDs of an issue's valid transitions using the `transitions` option in the
|
|
34
|
+
* `expand` parameter of [ Get issue](#api-rest-api-3-issue-issueIdOrKey-get).
|
|
35
|
+
*
|
|
36
|
+
* In all these cases, you can pass an account ID to determine if a user can be
|
|
37
|
+
* assigned to an issue. The user is returned in the response if they can be
|
|
38
|
+
* assigned to the issue or issue transition.
|
|
39
|
+
*
|
|
40
|
+
* This operation takes the users in the range defined by `startAt` and
|
|
41
|
+
* `maxResults`, up to the thousandth user, and then returns only the users from
|
|
42
|
+
* that range that can be assigned the issue. This means the operation usually
|
|
43
|
+
* returns fewer users than specified in `maxResults`. To get all the users who
|
|
44
|
+
* can be assigned the issue, use [Get all
|
|
45
|
+
* users](#api-rest-api-3-users-search-get) and filter the records in your code.
|
|
46
|
+
*
|
|
47
|
+
* Privacy controls are applied to the response based on the users' preferences.
|
|
48
|
+
* This could mean, for example, that the user's email address is hidden. See the
|
|
49
|
+
* [Profile visibility
|
|
50
|
+
* overview](https://developer.atlassian.com/cloud/jira/platform/profile-visibility/)
|
|
51
|
+
* for more details.
|
|
52
|
+
*
|
|
53
|
+
* **[Permissions](#permissions) required:** *Browse users and groups* [global
|
|
54
|
+
* permission](https://confluence.atlassian.com/x/x4dKLg) or *Assign issues*
|
|
55
|
+
* [project permission](https://confluence.atlassian.com/x/yodKLg)
|
|
56
|
+
*
|
|
57
|
+
* @returns Returned if the request is successful.
|
|
58
|
+
*
|
|
59
|
+
* example: {
|
|
60
|
+
* "accountId": "5b10a2844c20165700ede21g",
|
|
61
|
+
* "accountType": "atlassian",
|
|
62
|
+
* "active": true,
|
|
63
|
+
* "applicationRoles": {
|
|
64
|
+
* "items": [],
|
|
65
|
+
* "size": 1
|
|
66
|
+
* },
|
|
67
|
+
* "avatarUrls": {
|
|
68
|
+
* "16x16":
|
|
69
|
+
* "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
|
|
70
|
+
* "24x24":
|
|
71
|
+
* "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
|
|
72
|
+
* "32x32":
|
|
73
|
+
* "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
|
|
74
|
+
* "48x48":
|
|
75
|
+
* "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
|
|
76
|
+
* },
|
|
77
|
+
* "displayName": "Mia Krystof",
|
|
78
|
+
* "emailAddress": "mia@example.com",
|
|
79
|
+
* "groups": {
|
|
80
|
+
* "items": [],
|
|
81
|
+
* "size": 3
|
|
82
|
+
* },
|
|
83
|
+
* "key": "",
|
|
84
|
+
* "name": "",
|
|
85
|
+
* "self":
|
|
86
|
+
* "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g",
|
|
87
|
+
* "timeZone": "Australia/Sydney"
|
|
88
|
+
* }
|
|
89
|
+
* @path {GET} /rest/api/3/user/assignable/search
|
|
90
|
+
* @scopes-current read:jira-user
|
|
91
|
+
* @scopes-beta read:issue:jira, read:project:jira, read:user:jira, read:application-role:jira,
|
|
92
|
+
* read:avatar:jira, read:group:jira
|
|
93
|
+
* @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-user-search#api-rest-api-3-user-assignable-search-get
|
|
94
|
+
*/
|
|
95
|
+
this.findAssignableUsers = ({ query, sessionId, username, accountId, project, issueKey, startAt, maxResults, actionDescriptorId, recommend, } = {}) => {
|
|
96
|
+
return this.getClientInstance()
|
|
97
|
+
.request({
|
|
98
|
+
path: "/rest/api/3/user/assignable/search",
|
|
99
|
+
method: "GET",
|
|
100
|
+
query: {
|
|
101
|
+
query,
|
|
102
|
+
sessionId,
|
|
103
|
+
username,
|
|
104
|
+
accountId,
|
|
105
|
+
project,
|
|
106
|
+
issueKey,
|
|
107
|
+
startAt,
|
|
108
|
+
maxResults,
|
|
109
|
+
actionDescriptorId,
|
|
110
|
+
recommend,
|
|
111
|
+
},
|
|
112
|
+
})
|
|
113
|
+
.then(this.getClientInstance().responseHandler({
|
|
114
|
+
200: {
|
|
115
|
+
"application/json": "json",
|
|
116
|
+
},
|
|
117
|
+
}))
|
|
118
|
+
.then(commonHttpClient.castResponse())
|
|
119
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("UserSearchService.findAssignableUsers.response"))
|
|
120
|
+
.then(commonHttpClient.getBody);
|
|
121
|
+
};
|
|
122
|
+
/**
|
|
123
|
+
* Returns a list of users who can be assigned issues in one or more projects. The
|
|
124
|
+
* list may be restricted to users whose attributes match a string.
|
|
125
|
+
*
|
|
126
|
+
* This operation takes the users in the range defined by `startAt` and
|
|
127
|
+
* `maxResults`, up to the thousandth user, and then returns only the users from
|
|
128
|
+
* that range that can be assigned issues in the projects. This means the
|
|
129
|
+
* operation usually returns fewer users than specified in `maxResults`. To get
|
|
130
|
+
* all the users who can be assigned issues in the projects, use [Get all
|
|
131
|
+
* users](#api-rest-api-3-users-search-get) and filter the records in your code.
|
|
132
|
+
*
|
|
133
|
+
* Privacy controls are applied to the response based on the users' preferences.
|
|
134
|
+
* This could mean, for example, that the user's email address is hidden. See the
|
|
135
|
+
* [Profile visibility
|
|
136
|
+
* overview](https://developer.atlassian.com/cloud/jira/platform/profile-visibility/)
|
|
137
|
+
* for more details.
|
|
138
|
+
*
|
|
139
|
+
* This operation can be accessed anonymously.
|
|
140
|
+
*
|
|
141
|
+
* **[Permissions](#permissions) required:** None.
|
|
142
|
+
*
|
|
143
|
+
* @returns Returned if the request is successful.
|
|
144
|
+
*
|
|
145
|
+
* example: [
|
|
146
|
+
* {
|
|
147
|
+
* "accountId": "5b10a2844c20165700ede21g",
|
|
148
|
+
* "accountType": "atlassian",
|
|
149
|
+
* "active": false,
|
|
150
|
+
* "avatarUrls": {
|
|
151
|
+
* "16x16":
|
|
152
|
+
* "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
|
|
153
|
+
* "24x24":
|
|
154
|
+
* "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
|
|
155
|
+
* "32x32":
|
|
156
|
+
* "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
|
|
157
|
+
* "48x48":
|
|
158
|
+
* "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
|
|
159
|
+
* },
|
|
160
|
+
* "displayName": "Mia Krystof",
|
|
161
|
+
* "key": "",
|
|
162
|
+
* "name": "",
|
|
163
|
+
* "self":
|
|
164
|
+
* "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
|
|
165
|
+
* },
|
|
166
|
+
* {
|
|
167
|
+
* "accountId": "5b10ac8d82e05b22cc7d4ef5",
|
|
168
|
+
* "accountType": "atlassian",
|
|
169
|
+
* "active": false,
|
|
170
|
+
* "avatarUrls": {
|
|
171
|
+
* "16x16":
|
|
172
|
+
* "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/AA-3.png?size=16&s=16",
|
|
173
|
+
* "24x24":
|
|
174
|
+
* "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/AA-3.png?size=24&s=24",
|
|
175
|
+
* "32x32":
|
|
176
|
+
* "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/AA-3.png?size=32&s=32",
|
|
177
|
+
* "48x48":
|
|
178
|
+
* "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/AA-3.png?size=48&s=48"
|
|
179
|
+
* },
|
|
180
|
+
* "displayName": "Emma Richards",
|
|
181
|
+
* "key": "",
|
|
182
|
+
* "name": "",
|
|
183
|
+
* "self":
|
|
184
|
+
* "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10ac8d82e05b22cc7d4ef5"
|
|
185
|
+
* }
|
|
186
|
+
* ]
|
|
187
|
+
* @path {GET} /rest/api/3/user/assignable/multiProjectSearch
|
|
188
|
+
* @scopes-current read:jira-user
|
|
189
|
+
* @scopes-beta read:project:jira, read:user:jira, read:application-role:jira,
|
|
190
|
+
* read:avatar:jira, read:group:jira
|
|
191
|
+
* @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-user-search#api-rest-api-3-user-assignable-multiprojectsearch-get
|
|
192
|
+
*/
|
|
193
|
+
this.findBulkAssignableUsers = ({ query, username, accountId, projectKeys, startAt, maxResults, }) => {
|
|
194
|
+
return this.getClientInstance()
|
|
195
|
+
.request({
|
|
196
|
+
path: "/rest/api/3/user/assignable/multiProjectSearch",
|
|
197
|
+
method: "GET",
|
|
198
|
+
query: {
|
|
199
|
+
query,
|
|
200
|
+
username,
|
|
201
|
+
accountId,
|
|
202
|
+
projectKeys,
|
|
203
|
+
startAt,
|
|
204
|
+
maxResults,
|
|
205
|
+
},
|
|
206
|
+
})
|
|
207
|
+
.then(this.getClientInstance().responseHandler({
|
|
208
|
+
200: {
|
|
209
|
+
"application/json": "json",
|
|
210
|
+
},
|
|
211
|
+
}))
|
|
212
|
+
.then(commonHttpClient.castResponse())
|
|
213
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("UserSearchService.findBulkAssignableUsers.response"))
|
|
214
|
+
.then(commonHttpClient.getBody);
|
|
215
|
+
};
|
|
216
|
+
/**
|
|
217
|
+
* Finds users with a structured query and returns a [paginated](#pagination) list
|
|
218
|
+
* of user keys.
|
|
219
|
+
*
|
|
220
|
+
* This operation takes the users in the range defined by `startAt` and
|
|
221
|
+
* `maxResults`, up to the thousandth user, and then returns only the users from
|
|
222
|
+
* that range that match the structured query. This means the operation usually
|
|
223
|
+
* returns fewer users than specified in `maxResults`. To get all the users who
|
|
224
|
+
* match the structured query, use [Get all
|
|
225
|
+
* users](#api-rest-api-3-users-search-get) and filter the records in your code.
|
|
226
|
+
*
|
|
227
|
+
* **[Permissions](#permissions) required:** *Browse users and groups* [global
|
|
228
|
+
* permission](https://confluence.atlassian.com/x/x4dKLg).
|
|
229
|
+
*
|
|
230
|
+
* The query statements are:
|
|
231
|
+
*
|
|
232
|
+
* * `is assignee of PROJ` Returns the users that are assignees of at least one
|
|
233
|
+
* issue in project *PROJ*.
|
|
234
|
+
* * `is assignee of (PROJ-1, PROJ-2)` Returns users that are assignees on the
|
|
235
|
+
* issues *PROJ-1* or *PROJ-2*.
|
|
236
|
+
* * `is reporter of (PROJ-1, PROJ-2)` Returns users that are reporters on the
|
|
237
|
+
* issues *PROJ-1* or *PROJ-2*.
|
|
238
|
+
* * `is watcher of (PROJ-1, PROJ-2)` Returns users that are watchers on the
|
|
239
|
+
* issues *PROJ-1* or *PROJ-2*.
|
|
240
|
+
* * `is voter of (PROJ-1, PROJ-2)` Returns users that are voters on the issues
|
|
241
|
+
* *PROJ-1* or *PROJ-2*.
|
|
242
|
+
* * `is commenter of (PROJ-1, PROJ-2)` Returns users that have posted a comment
|
|
243
|
+
* on the issues *PROJ-1* or *PROJ-2*.
|
|
244
|
+
* * `is transitioner of (PROJ-1, PROJ-2)` Returns users that have performed a
|
|
245
|
+
* transition on issues *PROJ-1* or *PROJ-2*.
|
|
246
|
+
* * `[propertyKey].entity.property.path is "property value"` Returns users with
|
|
247
|
+
* the entity property value.
|
|
248
|
+
*
|
|
249
|
+
* The list of issues can be extended as needed, as in *(PROJ-1, PROJ-2, ...
|
|
250
|
+
* PROJ-n)*. Statements can be combined using the `AND` and `OR` operators to form
|
|
251
|
+
* more complex queries. For example:
|
|
252
|
+
*
|
|
253
|
+
* `is assignee of PROJ AND [propertyKey].entity.property.path is "property value"`
|
|
254
|
+
*
|
|
255
|
+
* @returns Returned if the request is successful.
|
|
256
|
+
* @path {GET} /rest/api/3/user/search/query/key
|
|
257
|
+
* @scopes-current read:jira-user
|
|
258
|
+
* @scopes-beta read:comment:jira, read:issue:jira, read:issue.vote:jira,
|
|
259
|
+
* read:issue.watcher:jira, read:project:jira, read:user.property:jira,
|
|
260
|
+
* read:user:jira
|
|
261
|
+
* @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-user-search#api-rest-api-3-user-search-query-key-get
|
|
262
|
+
*/
|
|
263
|
+
this.findUserKeysByQuery = ({ query, startAt, maxResult, }) => {
|
|
264
|
+
return this.getClientInstance()
|
|
265
|
+
.request({
|
|
266
|
+
path: "/rest/api/3/user/search/query/key",
|
|
267
|
+
method: "GET",
|
|
268
|
+
query: {
|
|
269
|
+
query,
|
|
270
|
+
startAt,
|
|
271
|
+
maxResult,
|
|
272
|
+
},
|
|
273
|
+
})
|
|
274
|
+
.then(this.getClientInstance().responseHandler({
|
|
275
|
+
200: {
|
|
276
|
+
"application/json": "json",
|
|
277
|
+
},
|
|
278
|
+
}))
|
|
279
|
+
.then(commonHttpClient.castResponse())
|
|
280
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("UserSearchService.findUserKeysByQuery.response"))
|
|
281
|
+
.then(commonHttpClient.getBody);
|
|
282
|
+
};
|
|
283
|
+
/**
|
|
284
|
+
* Returns a list of active users that match the search string and property.
|
|
285
|
+
*
|
|
286
|
+
* This operation first applies a filter to match the search string and property,
|
|
287
|
+
* and then takes the filtered users in the range defined by `startAt` and
|
|
288
|
+
* `maxResults`, up to the thousandth user. To get all the users who match the
|
|
289
|
+
* search string and property, use [Get all
|
|
290
|
+
* users](#api-rest-api-3-users-search-get) and filter the records in your code.
|
|
291
|
+
*
|
|
292
|
+
* This operation can be accessed anonymously.
|
|
293
|
+
*
|
|
294
|
+
* Privacy controls are applied to the response based on the users' preferences.
|
|
295
|
+
* This could mean, for example, that the user's email address is hidden. See the
|
|
296
|
+
* [Profile visibility
|
|
297
|
+
* overview](https://developer.atlassian.com/cloud/jira/platform/profile-visibility/)
|
|
298
|
+
* for more details.
|
|
299
|
+
*
|
|
300
|
+
* **[Permissions](#permissions) required:** *Browse users and groups* [global
|
|
301
|
+
* permission](https://confluence.atlassian.com/x/x4dKLg). Anonymous calls or
|
|
302
|
+
* calls by users without the required permission return empty search results.
|
|
303
|
+
*
|
|
304
|
+
* @returns Returned if the request is successful.
|
|
305
|
+
*
|
|
306
|
+
* example: [
|
|
307
|
+
* {
|
|
308
|
+
* "accountId": "5b10a2844c20165700ede21g",
|
|
309
|
+
* "accountType": "atlassian",
|
|
310
|
+
* "active": false,
|
|
311
|
+
* "avatarUrls": {
|
|
312
|
+
* "16x16":
|
|
313
|
+
* "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
|
|
314
|
+
* "24x24":
|
|
315
|
+
* "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
|
|
316
|
+
* "32x32":
|
|
317
|
+
* "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
|
|
318
|
+
* "48x48":
|
|
319
|
+
* "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
|
|
320
|
+
* },
|
|
321
|
+
* "displayName": "Mia Krystof",
|
|
322
|
+
* "key": "",
|
|
323
|
+
* "name": "",
|
|
324
|
+
* "self":
|
|
325
|
+
* "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
|
|
326
|
+
* },
|
|
327
|
+
* {
|
|
328
|
+
* "accountId": "5b10ac8d82e05b22cc7d4ef5",
|
|
329
|
+
* "accountType": "atlassian",
|
|
330
|
+
* "active": false,
|
|
331
|
+
* "avatarUrls": {
|
|
332
|
+
* "16x16":
|
|
333
|
+
* "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/AA-3.png?size=16&s=16",
|
|
334
|
+
* "24x24":
|
|
335
|
+
* "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/AA-3.png?size=24&s=24",
|
|
336
|
+
* "32x32":
|
|
337
|
+
* "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/AA-3.png?size=32&s=32",
|
|
338
|
+
* "48x48":
|
|
339
|
+
* "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/AA-3.png?size=48&s=48"
|
|
340
|
+
* },
|
|
341
|
+
* "displayName": "Emma Richards",
|
|
342
|
+
* "key": "",
|
|
343
|
+
* "name": "",
|
|
344
|
+
* "self":
|
|
345
|
+
* "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10ac8d82e05b22cc7d4ef5"
|
|
346
|
+
* }
|
|
347
|
+
* ]
|
|
348
|
+
* @path {GET} /rest/api/3/user/search
|
|
349
|
+
* @scopes-current read:jira-user
|
|
350
|
+
* @scopes-beta read:user:jira, read:user.property:jira, read:application-role:jira,
|
|
351
|
+
* read:avatar:jira, read:group:jira
|
|
352
|
+
* @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-user-search#api-rest-api-3-user-search-get
|
|
353
|
+
*/
|
|
354
|
+
this.findUsers = ({ query, username, accountId, startAt, maxResults, property, } = {}) => {
|
|
355
|
+
return this.getClientInstance()
|
|
356
|
+
.request({
|
|
357
|
+
path: "/rest/api/3/user/search",
|
|
358
|
+
method: "GET",
|
|
359
|
+
query: {
|
|
360
|
+
query,
|
|
361
|
+
username,
|
|
362
|
+
accountId,
|
|
363
|
+
startAt,
|
|
364
|
+
maxResults,
|
|
365
|
+
property,
|
|
366
|
+
},
|
|
367
|
+
})
|
|
368
|
+
.then(this.getClientInstance().responseHandler({
|
|
369
|
+
200: {
|
|
370
|
+
"application/json": "json",
|
|
371
|
+
},
|
|
372
|
+
}))
|
|
373
|
+
.then(commonHttpClient.castResponse())
|
|
374
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("UserSearchService.findUsers.response"))
|
|
375
|
+
.then(commonHttpClient.getBody);
|
|
376
|
+
};
|
|
377
|
+
/**
|
|
378
|
+
* Finds users with a structured query and returns a [paginated](#pagination) list
|
|
379
|
+
* of user details.
|
|
380
|
+
*
|
|
381
|
+
* This operation takes the users in the range defined by `startAt` and
|
|
382
|
+
* `maxResults`, up to the thousandth user, and then returns only the users from
|
|
383
|
+
* that range that match the structured query. This means the operation usually
|
|
384
|
+
* returns fewer users than specified in `maxResults`. To get all the users who
|
|
385
|
+
* match the structured query, use [Get all
|
|
386
|
+
* users](#api-rest-api-3-users-search-get) and filter the records in your code.
|
|
387
|
+
*
|
|
388
|
+
* **[Permissions](#permissions) required:** *Browse users and groups* [global
|
|
389
|
+
* permission](https://confluence.atlassian.com/x/x4dKLg).
|
|
390
|
+
*
|
|
391
|
+
* The query statements are:
|
|
392
|
+
*
|
|
393
|
+
* * `is assignee of PROJ` Returns the users that are assignees of at least one
|
|
394
|
+
* issue in project *PROJ*.
|
|
395
|
+
* * `is assignee of (PROJ-1, PROJ-2)` Returns users that are assignees on the
|
|
396
|
+
* issues *PROJ-1* or *PROJ-2*.
|
|
397
|
+
* * `is reporter of (PROJ-1, PROJ-2)` Returns users that are reporters on the
|
|
398
|
+
* issues *PROJ-1* or *PROJ-2*.
|
|
399
|
+
* * `is watcher of (PROJ-1, PROJ-2)` Returns users that are watchers on the
|
|
400
|
+
* issues *PROJ-1* or *PROJ-2*.
|
|
401
|
+
* * `is voter of (PROJ-1, PROJ-2)` Returns users that are voters on the issues
|
|
402
|
+
* *PROJ-1* or *PROJ-2*.
|
|
403
|
+
* * `is commenter of (PROJ-1, PROJ-2)` Returns users that have posted a comment
|
|
404
|
+
* on the issues *PROJ-1* or *PROJ-2*.
|
|
405
|
+
* * `is transitioner of (PROJ-1, PROJ-2)` Returns users that have performed a
|
|
406
|
+
* transition on issues *PROJ-1* or *PROJ-2*.
|
|
407
|
+
* * `[propertyKey].entity.property.path is "property value"` Returns users with
|
|
408
|
+
* the entity property value.
|
|
409
|
+
*
|
|
410
|
+
* The list of issues can be extended as needed, as in *(PROJ-1, PROJ-2, ...
|
|
411
|
+
* PROJ-n)*. Statements can be combined using the `AND` and `OR` operators to form
|
|
412
|
+
* more complex queries. For example:
|
|
413
|
+
*
|
|
414
|
+
* `is assignee of PROJ AND [propertyKey].entity.property.path is "property value"`
|
|
415
|
+
*
|
|
416
|
+
* @returns Returned if the request is successful.
|
|
417
|
+
* @path {GET} /rest/api/3/user/search/query
|
|
418
|
+
* @scopes-current read:jira-user
|
|
419
|
+
* @scopes-beta read:comment:jira, read:issue:jira, read:issue.vote:jira,
|
|
420
|
+
* read:issue.watcher:jira, read:project:jira, read:user:jira,
|
|
421
|
+
* read:user.property:jira, read:application-role:jira, read:avatar:jira,
|
|
422
|
+
* read:group:jira
|
|
423
|
+
* @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-user-search#api-rest-api-3-user-search-query-get
|
|
424
|
+
*/
|
|
425
|
+
this.findUsersByQuery = ({ query, startAt, maxResults, }) => {
|
|
426
|
+
return this.getClientInstance()
|
|
427
|
+
.request({
|
|
428
|
+
path: "/rest/api/3/user/search/query",
|
|
429
|
+
method: "GET",
|
|
430
|
+
query: {
|
|
431
|
+
query,
|
|
432
|
+
startAt,
|
|
433
|
+
maxResults,
|
|
434
|
+
},
|
|
435
|
+
})
|
|
436
|
+
.then(this.getClientInstance().responseHandler({
|
|
437
|
+
200: {
|
|
438
|
+
"application/json": "json",
|
|
439
|
+
},
|
|
440
|
+
}))
|
|
441
|
+
.then(commonHttpClient.castResponse())
|
|
442
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("UserSearchService.findUsersByQuery.response"))
|
|
443
|
+
.then(commonHttpClient.getBody);
|
|
444
|
+
};
|
|
445
|
+
/**
|
|
446
|
+
* Returns a list of users whose attributes match the query term. The returned
|
|
447
|
+
* object includes the `html` field where the matched query term is highlighted
|
|
448
|
+
* with the HTML strong tag. A list of account IDs can be provided to exclude
|
|
449
|
+
* users from the results.
|
|
450
|
+
*
|
|
451
|
+
* This operation takes the users in the range defined by `maxResults`, up to the
|
|
452
|
+
* thousandth user, and then returns only the users from that range that match the
|
|
453
|
+
* query term. This means the operation usually returns fewer users than specified
|
|
454
|
+
* in `maxResults`. To get all the users who match the query term, use [Get all
|
|
455
|
+
* users](#api-rest-api-3-users-search-get) and filter the records in your code.
|
|
456
|
+
*
|
|
457
|
+
* Privacy controls are applied to the response based on the users' preferences.
|
|
458
|
+
* This could mean, for example, that the user's email address is hidden. See the
|
|
459
|
+
* [Profile visibility
|
|
460
|
+
* overview](https://developer.atlassian.com/cloud/jira/platform/profile-visibility/)
|
|
461
|
+
* for more details.
|
|
462
|
+
*
|
|
463
|
+
* This operation can be accessed anonymously.
|
|
464
|
+
*
|
|
465
|
+
* **[Permissions](#permissions) required:** *Browse users and groups* [global
|
|
466
|
+
* permission](https://confluence.atlassian.com/x/x4dKLg). Anonymous calls and
|
|
467
|
+
* calls by users without the required permission return search results for an
|
|
468
|
+
* exact name match only.
|
|
469
|
+
*
|
|
470
|
+
* @returns Returned if the request is successful.
|
|
471
|
+
*
|
|
472
|
+
* example: {
|
|
473
|
+
* "header": "Showing 20 of 25 matching groups",
|
|
474
|
+
* "total": 25,
|
|
475
|
+
* "users": [
|
|
476
|
+
* {
|
|
477
|
+
* "accountId": "5b10a2844c20165700ede21g",
|
|
478
|
+
* "accountType": "atlassian",
|
|
479
|
+
* "avatarUrl":
|
|
480
|
+
* "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
|
|
481
|
+
* "displayName": "Mia Krystof",
|
|
482
|
+
* "html": "<strong>Mi</strong>a Krystof - <strong>mi</strong>a@example.com
|
|
483
|
+
* (<strong>mi</strong>a)",
|
|
484
|
+
* "key": "mia",
|
|
485
|
+
* "name": "mia"
|
|
486
|
+
* }
|
|
487
|
+
* ]
|
|
488
|
+
* }
|
|
489
|
+
* @path {GET} /rest/api/3/user/picker
|
|
490
|
+
* @scopes-current read:jira-user
|
|
491
|
+
* @scopes-beta read:user:jira
|
|
492
|
+
* @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-user-search#api-rest-api-3-user-picker-get
|
|
493
|
+
*/
|
|
494
|
+
this.findUsersForPicker = ({ query, maxResults, showAvatar, exclude, excludeAccountIds, avatarSize, excludeConnectUsers, }) => {
|
|
495
|
+
return this.getClientInstance()
|
|
496
|
+
.request({
|
|
497
|
+
path: "/rest/api/3/user/picker",
|
|
498
|
+
method: "GET",
|
|
499
|
+
query: {
|
|
500
|
+
query,
|
|
501
|
+
maxResults,
|
|
502
|
+
showAvatar,
|
|
503
|
+
exclude,
|
|
504
|
+
excludeAccountIds,
|
|
505
|
+
avatarSize,
|
|
506
|
+
excludeConnectUsers,
|
|
507
|
+
},
|
|
508
|
+
})
|
|
509
|
+
.then(this.getClientInstance().responseHandler({
|
|
510
|
+
200: {
|
|
511
|
+
"application/json": "json",
|
|
512
|
+
},
|
|
513
|
+
}))
|
|
514
|
+
.then(commonHttpClient.castResponse())
|
|
515
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("UserSearchService.findUsersForPicker.response"))
|
|
516
|
+
.then(commonHttpClient.getBody);
|
|
517
|
+
};
|
|
518
|
+
/**
|
|
519
|
+
* Returns a list of users who fulfill these criteria:
|
|
520
|
+
*
|
|
521
|
+
* * their user attributes match a search string.
|
|
522
|
+
* * they have a set of permissions for a project or issue.
|
|
523
|
+
*
|
|
524
|
+
* If no search string is provided, a list of all users with the permissions is
|
|
525
|
+
* returned.
|
|
526
|
+
*
|
|
527
|
+
* This operation takes the users in the range defined by `startAt` and
|
|
528
|
+
* `maxResults`, up to the thousandth user, and then returns only the users from
|
|
529
|
+
* that range that match the search string and have permission for the project or
|
|
530
|
+
* issue. This means the operation usually returns fewer users than specified in
|
|
531
|
+
* `maxResults`. To get all the users who match the search string and have
|
|
532
|
+
* permission for the project or issue, use [Get all
|
|
533
|
+
* users](#api-rest-api-3-users-search-get) and filter the records in your code.
|
|
534
|
+
*
|
|
535
|
+
* Privacy controls are applied to the response based on the users' preferences.
|
|
536
|
+
* This could mean, for example, that the user's email address is hidden. See the
|
|
537
|
+
* [Profile visibility
|
|
538
|
+
* overview](https://developer.atlassian.com/cloud/jira/platform/profile-visibility/)
|
|
539
|
+
* for more details.
|
|
540
|
+
*
|
|
541
|
+
* This operation can be accessed anonymously.
|
|
542
|
+
*
|
|
543
|
+
* **[Permissions](#permissions) required:**
|
|
544
|
+
*
|
|
545
|
+
* * *Administer Jira* [global
|
|
546
|
+
* permission](https://confluence.atlassian.com/x/x4dKLg), to get users for any
|
|
547
|
+
* project.
|
|
548
|
+
* * *Administer Projects* [project
|
|
549
|
+
* permission](https://confluence.atlassian.com/x/yodKLg) for a project, to get
|
|
550
|
+
* users for that project.
|
|
551
|
+
*
|
|
552
|
+
* @returns Returned if the request is successful.
|
|
553
|
+
*
|
|
554
|
+
* example: [
|
|
555
|
+
* {
|
|
556
|
+
* "accountId": "5b10a2844c20165700ede21g",
|
|
557
|
+
* "accountType": "atlassian",
|
|
558
|
+
* "active": false,
|
|
559
|
+
* "avatarUrls": {
|
|
560
|
+
* "16x16":
|
|
561
|
+
* "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
|
|
562
|
+
* "24x24":
|
|
563
|
+
* "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
|
|
564
|
+
* "32x32":
|
|
565
|
+
* "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
|
|
566
|
+
* "48x48":
|
|
567
|
+
* "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
|
|
568
|
+
* },
|
|
569
|
+
* "displayName": "Mia Krystof",
|
|
570
|
+
* "key": "",
|
|
571
|
+
* "name": "",
|
|
572
|
+
* "self":
|
|
573
|
+
* "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
|
|
574
|
+
* },
|
|
575
|
+
* {
|
|
576
|
+
* "accountId": "5b10ac8d82e05b22cc7d4ef5",
|
|
577
|
+
* "accountType": "atlassian",
|
|
578
|
+
* "active": false,
|
|
579
|
+
* "avatarUrls": {
|
|
580
|
+
* "16x16":
|
|
581
|
+
* "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/AA-3.png?size=16&s=16",
|
|
582
|
+
* "24x24":
|
|
583
|
+
* "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/AA-3.png?size=24&s=24",
|
|
584
|
+
* "32x32":
|
|
585
|
+
* "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/AA-3.png?size=32&s=32",
|
|
586
|
+
* "48x48":
|
|
587
|
+
* "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/AA-3.png?size=48&s=48"
|
|
588
|
+
* },
|
|
589
|
+
* "displayName": "Emma Richards",
|
|
590
|
+
* "key": "",
|
|
591
|
+
* "name": "",
|
|
592
|
+
* "self":
|
|
593
|
+
* "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10ac8d82e05b22cc7d4ef5"
|
|
594
|
+
* }
|
|
595
|
+
* ]
|
|
596
|
+
* @path {GET} /rest/api/3/user/permission/search
|
|
597
|
+
* @scopes-current read:jira-user
|
|
598
|
+
* @scopes-beta read:issue:jira, read:project:jira, read:user:jira, read:application-role:jira,
|
|
599
|
+
* read:avatar:jira, read:group:jira
|
|
600
|
+
* @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-user-search#api-rest-api-3-user-permission-search-get
|
|
601
|
+
*/
|
|
602
|
+
this.findUsersWithAllPermissions = ({ query, username, accountId, permissions, issueKey, projectKey, startAt, maxResults, }) => {
|
|
603
|
+
return this.getClientInstance()
|
|
604
|
+
.request({
|
|
605
|
+
path: "/rest/api/3/user/permission/search",
|
|
606
|
+
method: "GET",
|
|
607
|
+
query: {
|
|
608
|
+
query,
|
|
609
|
+
username,
|
|
610
|
+
accountId,
|
|
611
|
+
permissions,
|
|
612
|
+
issueKey,
|
|
613
|
+
projectKey,
|
|
614
|
+
startAt,
|
|
615
|
+
maxResults,
|
|
616
|
+
},
|
|
617
|
+
})
|
|
618
|
+
.then(this.getClientInstance().responseHandler({
|
|
619
|
+
200: {
|
|
620
|
+
"application/json": "json",
|
|
621
|
+
},
|
|
622
|
+
}))
|
|
623
|
+
.then(commonHttpClient.castResponse())
|
|
624
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("UserSearchService.findUsersWithAllPermissions.response"))
|
|
625
|
+
.then(commonHttpClient.getBody);
|
|
626
|
+
};
|
|
627
|
+
/**
|
|
628
|
+
* Returns a list of users who fulfill these criteria:
|
|
629
|
+
*
|
|
630
|
+
* * their user attributes match a search string.
|
|
631
|
+
* * they have permission to browse issues.
|
|
632
|
+
*
|
|
633
|
+
* Use this resource to find users who can browse:
|
|
634
|
+
*
|
|
635
|
+
* * an issue, by providing the `issueKey`.
|
|
636
|
+
* * any issue in a project, by providing the `projectKey`.
|
|
637
|
+
*
|
|
638
|
+
* This operation takes the users in the range defined by `startAt` and
|
|
639
|
+
* `maxResults`, up to the thousandth user, and then returns only the users from
|
|
640
|
+
* that range that match the search string and have permission to browse issues.
|
|
641
|
+
* This means the operation usually returns fewer users than specified in
|
|
642
|
+
* `maxResults`. To get all the users who match the search string and have
|
|
643
|
+
* permission to browse issues, use [Get all
|
|
644
|
+
* users](#api-rest-api-3-users-search-get) and filter the records in your code.
|
|
645
|
+
*
|
|
646
|
+
* Privacy controls are applied to the response based on the users' preferences.
|
|
647
|
+
* This could mean, for example, that the user's email address is hidden. See the
|
|
648
|
+
* [Profile visibility
|
|
649
|
+
* overview](https://developer.atlassian.com/cloud/jira/platform/profile-visibility/)
|
|
650
|
+
* for more details.
|
|
651
|
+
*
|
|
652
|
+
* This operation can be accessed anonymously.
|
|
653
|
+
*
|
|
654
|
+
* **[Permissions](#permissions) required:** *Browse users and groups* [global
|
|
655
|
+
* permission](https://confluence.atlassian.com/x/x4dKLg). Anonymous calls and
|
|
656
|
+
* calls by users without the required permission return empty search results.
|
|
657
|
+
*
|
|
658
|
+
* @returns Returned if the request is successful.
|
|
659
|
+
*
|
|
660
|
+
* example: [
|
|
661
|
+
* {
|
|
662
|
+
* "accountId": "5b10a2844c20165700ede21g",
|
|
663
|
+
* "accountType": "atlassian",
|
|
664
|
+
* "active": false,
|
|
665
|
+
* "avatarUrls": {
|
|
666
|
+
* "16x16":
|
|
667
|
+
* "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
|
|
668
|
+
* "24x24":
|
|
669
|
+
* "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
|
|
670
|
+
* "32x32":
|
|
671
|
+
* "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
|
|
672
|
+
* "48x48":
|
|
673
|
+
* "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
|
|
674
|
+
* },
|
|
675
|
+
* "displayName": "Mia Krystof",
|
|
676
|
+
* "key": "",
|
|
677
|
+
* "name": "",
|
|
678
|
+
* "self":
|
|
679
|
+
* "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
|
|
680
|
+
* },
|
|
681
|
+
* {
|
|
682
|
+
* "accountId": "5b10ac8d82e05b22cc7d4ef5",
|
|
683
|
+
* "accountType": "atlassian",
|
|
684
|
+
* "active": false,
|
|
685
|
+
* "avatarUrls": {
|
|
686
|
+
* "16x16":
|
|
687
|
+
* "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/AA-3.png?size=16&s=16",
|
|
688
|
+
* "24x24":
|
|
689
|
+
* "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/AA-3.png?size=24&s=24",
|
|
690
|
+
* "32x32":
|
|
691
|
+
* "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/AA-3.png?size=32&s=32",
|
|
692
|
+
* "48x48":
|
|
693
|
+
* "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/AA-3.png?size=48&s=48"
|
|
694
|
+
* },
|
|
695
|
+
* "displayName": "Emma Richards",
|
|
696
|
+
* "key": "",
|
|
697
|
+
* "name": "",
|
|
698
|
+
* "self":
|
|
699
|
+
* "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10ac8d82e05b22cc7d4ef5"
|
|
700
|
+
* }
|
|
701
|
+
* ]
|
|
702
|
+
* @path {GET} /rest/api/3/user/viewissue/search
|
|
703
|
+
* @scopes-current read:jira-user
|
|
704
|
+
* @scopes-beta read:issue:jira, read:project:jira, read:user:jira, read:application-role:jira,
|
|
705
|
+
* read:avatar:jira, read:group:jira
|
|
706
|
+
* @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-user-search#api-rest-api-3-user-viewissue-search-get
|
|
707
|
+
*/
|
|
708
|
+
this.findUsersWithBrowsePermission = ({ query, username, accountId, issueKey, projectKey, startAt, maxResults, } = {}) => {
|
|
709
|
+
return this.getClientInstance()
|
|
710
|
+
.request({
|
|
711
|
+
path: "/rest/api/3/user/viewissue/search",
|
|
712
|
+
method: "GET",
|
|
713
|
+
query: {
|
|
714
|
+
query,
|
|
715
|
+
username,
|
|
716
|
+
accountId,
|
|
717
|
+
issueKey,
|
|
718
|
+
projectKey,
|
|
719
|
+
startAt,
|
|
720
|
+
maxResults,
|
|
721
|
+
},
|
|
722
|
+
})
|
|
723
|
+
.then(this.getClientInstance().responseHandler({
|
|
724
|
+
200: {
|
|
725
|
+
"application/json": "json",
|
|
726
|
+
},
|
|
727
|
+
}))
|
|
728
|
+
.then(commonHttpClient.castResponse())
|
|
729
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("UserSearchService.findUsersWithBrowsePermission.response"))
|
|
730
|
+
.then(commonHttpClient.getBody);
|
|
731
|
+
};
|
|
729
732
|
}
|
|
730
733
|
static initialize() {
|
|
731
734
|
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("UserSearchService.findBulkAssignableUsers.response", zod_1.z
|