@resolution/jira-api-client 0.14.0 → 0.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/openapi/core/CommonHttpClient.d.ts +7 -1
- package/lib/openapi/core/CommonHttpClient.js +15 -1
- package/lib/openapi/core/CommonHttpClient.js.map +1 -1
- package/lib/openapi/platform/BaseJiraPlatformApiClient.d.ts +19 -9
- package/lib/openapi/platform/BaseJiraPlatformApiClient.js +18 -4
- package/lib/openapi/platform/BaseJiraPlatformApiClient.js.map +1 -1
- package/lib/openapi/platform/models/common.d.ts +0 -17
- package/lib/openapi/platform/models/common.js +0 -12
- package/lib/openapi/platform/models/common.js.map +1 -1
- package/lib/openapi/platform/models/groupAndUserPicker.d.ts +9 -0
- package/lib/openapi/platform/models/groupAndUserPicker.js +1 -0
- package/lib/openapi/platform/models/groupAndUserPicker.js.map +1 -1
- package/lib/openapi/platform/models/groups.d.ts +20 -0
- package/lib/openapi/platform/models/groups.js +4 -1
- package/lib/openapi/platform/models/groups.js.map +1 -1
- package/lib/openapi/platform/models/issueBulkOperations.d.ts +10 -7
- package/lib/openapi/platform/models/issueBulkOperations.js +3 -3
- package/lib/openapi/platform/models/issueBulkOperations.js.map +1 -1
- package/lib/openapi/platform/models/issueRedaction.d.ts +136 -0
- package/lib/openapi/platform/models/issueRedaction.js +55 -0
- package/lib/openapi/platform/models/issueRedaction.js.map +1 -0
- package/lib/openapi/platform/models/issueSearch.d.ts +2 -30
- package/lib/openapi/platform/models/issueSearch.js +1 -9
- package/lib/openapi/platform/models/issueSearch.js.map +1 -1
- package/lib/openapi/platform/models/issueTypes.d.ts +9 -1
- package/lib/openapi/platform/models/issueTypes.js.map +1 -1
- package/lib/openapi/platform/models/jiraExpressions.d.ts +2 -0
- package/lib/openapi/platform/models/jiraExpressions.js +1 -0
- package/lib/openapi/platform/models/jiraExpressions.js.map +1 -1
- package/lib/openapi/platform/models/projectTemplates.d.ts +102 -5
- package/lib/openapi/platform/models/projectTemplates.js +53 -5
- package/lib/openapi/platform/models/projectTemplates.js.map +1 -1
- package/lib/openapi/platform/models/status.d.ts +1 -40
- package/lib/openapi/platform/models/status.js +1 -23
- package/lib/openapi/platform/models/status.js.map +1 -1
- package/lib/openapi/platform/models/webhooks.d.ts +2 -0
- package/lib/openapi/platform/models/webhooks.js +2 -1
- package/lib/openapi/platform/models/webhooks.js.map +1 -1
- package/lib/openapi/platform/models/workflowSchemes.d.ts +0 -33
- package/lib/openapi/platform/models/workflowSchemes.js +0 -6
- package/lib/openapi/platform/models/workflowSchemes.js.map +1 -1
- package/lib/openapi/platform/models/workflows.d.ts +5 -24
- package/lib/openapi/platform/models/workflows.js +4 -19
- package/lib/openapi/platform/models/workflows.js.map +1 -1
- package/lib/openapi/platform/services/ApplicationRolesService.d.ts +4 -0
- package/lib/openapi/platform/services/ApplicationRolesService.js +4 -0
- package/lib/openapi/platform/services/ApplicationRolesService.js.map +1 -1
- package/lib/openapi/platform/services/GroupsService.d.ts +2 -1
- package/lib/openapi/platform/services/GroupsService.js +3 -2
- package/lib/openapi/platform/services/GroupsService.js.map +1 -1
- package/lib/openapi/platform/services/IssueBulkOperationsService.d.ts +20 -10
- package/lib/openapi/platform/services/IssueBulkOperationsService.js +20 -10
- package/lib/openapi/platform/services/IssueBulkOperationsService.js.map +1 -1
- package/lib/openapi/platform/services/IssueFieldConfigurationsService.d.ts +4 -0
- package/lib/openapi/platform/services/IssueFieldConfigurationsService.js +4 -0
- package/lib/openapi/platform/services/IssueFieldConfigurationsService.js.map +1 -1
- package/lib/openapi/platform/services/IssueFieldsService.d.ts +5 -2
- package/lib/openapi/platform/services/IssueFieldsService.js +1 -2
- package/lib/openapi/platform/services/IssueFieldsService.js.map +1 -1
- package/lib/openapi/platform/services/IssueRedactionService.d.ts +46 -0
- package/lib/openapi/platform/services/IssueRedactionService.js +91 -0
- package/lib/openapi/platform/services/IssueRedactionService.js.map +1 -0
- package/lib/openapi/platform/services/IssueSearchService.d.ts +8 -56
- package/lib/openapi/platform/services/IssueSearchService.js +7 -59
- package/lib/openapi/platform/services/IssueSearchService.js.map +1 -1
- package/lib/openapi/platform/services/JiraExpressionsService.d.ts +5 -1
- package/lib/openapi/platform/services/JiraExpressionsService.js +5 -1
- package/lib/openapi/platform/services/JiraExpressionsService.js.map +1 -1
- package/lib/openapi/platform/services/MyselfService.d.ts +0 -15
- package/lib/openapi/platform/services/MyselfService.js +0 -29
- package/lib/openapi/platform/services/MyselfService.js.map +1 -1
- package/lib/openapi/platform/services/ProjectComponentsService.d.ts +1 -1
- package/lib/openapi/platform/services/ProjectComponentsService.js +1 -1
- package/lib/openapi/platform/services/ProjectKeyAndNameValidationService.d.ts +4 -0
- package/lib/openapi/platform/services/ProjectKeyAndNameValidationService.js +4 -0
- package/lib/openapi/platform/services/ProjectKeyAndNameValidationService.js.map +1 -1
- package/lib/openapi/platform/services/ProjectTemplatesService.d.ts +83 -1
- package/lib/openapi/platform/services/ProjectTemplatesService.js +138 -0
- package/lib/openapi/platform/services/ProjectTemplatesService.js.map +1 -1
- package/lib/openapi/platform/services/ProjectsService.d.ts +5 -1
- package/lib/openapi/platform/services/ProjectsService.js.map +1 -1
- package/lib/openapi/platform/services/StatusService.d.ts +5 -65
- package/lib/openapi/platform/services/StatusService.js +5 -41
- package/lib/openapi/platform/services/StatusService.js.map +1 -1
- package/lib/openapi/platform/services/UsersService.d.ts +10 -3
- package/lib/openapi/platform/services/UsersService.js +4 -0
- package/lib/openapi/platform/services/UsersService.js.map +1 -1
- package/lib/openapi/platform/services/WebhooksService.d.ts +6 -3
- package/lib/openapi/platform/services/WebhooksService.js +6 -3
- package/lib/openapi/platform/services/WebhooksService.js.map +1 -1
- package/lib/openapi/platform/services/WorkflowSchemesService.d.ts +1 -30
- package/lib/openapi/platform/services/WorkflowSchemesService.js +1 -21
- package/lib/openapi/platform/services/WorkflowSchemesService.js.map +1 -1
- package/lib/openapi/platform/services/WorkflowTransitionPropertiesService.d.ts +29 -0
- package/lib/openapi/platform/services/WorkflowTransitionPropertiesService.js +29 -0
- package/lib/openapi/platform/services/WorkflowTransitionPropertiesService.js.map +1 -1
- package/lib/openapi/platform/services/WorkflowsService.d.ts +87 -98
- package/lib/openapi/platform/services/WorkflowsService.js +100 -77
- package/lib/openapi/platform/services/WorkflowsService.js.map +1 -1
- package/lib/openapi/serviceManagement/BaseJiraServiceManagementApiClient.d.ts +1 -1
- package/lib/openapi/serviceManagement/BaseJiraServiceManagementApiClient.js +1 -1
- package/lib/openapi/serviceManagement/models/common.d.ts +2 -0
- package/lib/openapi/serviceManagement/models/common.js +2 -1
- package/lib/openapi/serviceManagement/models/common.js.map +1 -1
- package/lib/openapi/software/BaseJiraSoftwareApiClient.d.ts +64 -341
- package/lib/openapi/software/BaseJiraSoftwareApiClient.js +58 -335
- package/lib/openapi/software/BaseJiraSoftwareApiClient.js.map +1 -1
- package/lib/openapi/software/models/builds.d.ts +30 -2
- package/lib/openapi/software/models/builds.js +5 -2
- package/lib/openapi/software/models/builds.js.map +1 -1
- package/lib/openapi/software/models/common.d.ts +68 -5
- package/lib/openapi/software/models/common.js +9 -1
- package/lib/openapi/software/models/common.js.map +1 -1
- package/lib/openapi/software/models/deployments.d.ts +33 -90
- package/lib/openapi/software/models/deployments.js +8 -29
- package/lib/openapi/software/models/deployments.js.map +1 -1
- package/lib/openapi/software/models/devOpsComponents.d.ts +1 -1
- package/lib/openapi/software/models/devOpsComponents.js +1 -1
- package/lib/openapi/software/models/devOpsComponents.js.map +1 -1
- package/lib/openapi/software/models/developmentInformation.d.ts +14 -653
- package/lib/openapi/software/models/developmentInformation.js +2 -84
- package/lib/openapi/software/models/developmentInformation.js.map +1 -1
- package/lib/openapi/software/models/featureFlags.d.ts +21 -2
- package/lib/openapi/software/models/featureFlags.js +6 -2
- package/lib/openapi/software/models/featureFlags.js.map +1 -1
- package/lib/openapi/software/models/remoteLinks.d.ts +2 -121
- package/lib/openapi/software/models/remoteLinks.js +1 -16
- package/lib/openapi/software/models/remoteLinks.js.map +1 -1
- package/lib/openapi/software/services/BuildsService.d.ts +11 -23
- package/lib/openapi/software/services/BuildsService.js +11 -23
- package/lib/openapi/software/services/BuildsService.js.map +1 -1
- package/lib/openapi/software/services/DeploymentsService.d.ts +11 -23
- package/lib/openapi/software/services/DeploymentsService.js +11 -23
- package/lib/openapi/software/services/DeploymentsService.js.map +1 -1
- package/lib/openapi/software/services/DevOpsComponentsService.d.ts +8 -111
- package/lib/openapi/software/services/DevOpsComponentsService.js +15 -118
- package/lib/openapi/software/services/DevOpsComponentsService.js.map +1 -1
- package/lib/openapi/software/services/DevelopmentInformationService.d.ts +11 -4
- package/lib/openapi/software/services/DevelopmentInformationService.js +11 -4
- package/lib/openapi/software/services/DevelopmentInformationService.js.map +1 -1
- package/lib/openapi/software/services/FeatureFlagsService.d.ts +9 -21
- package/lib/openapi/software/services/FeatureFlagsService.js +9 -21
- package/lib/openapi/software/services/FeatureFlagsService.js.map +1 -1
- package/lib/openapi/software/services/OperationsService.d.ts +5 -99
- package/lib/openapi/software/services/OperationsService.js +5 -99
- package/lib/openapi/software/services/OperationsService.js.map +1 -1
- package/lib/openapi/software/services/RemoteLinksService.d.ts +10 -123
- package/lib/openapi/software/services/RemoteLinksService.js +10 -123
- package/lib/openapi/software/services/RemoteLinksService.js.map +1 -1
- package/lib/openapi/software/services/SecurityInformationService.d.ts +2 -2
- package/lib/openapi/software/services/SecurityInformationService.js +2 -2
- package/package.json +3 -3
|
@@ -4,44 +4,6 @@ exports.registerDevelopmentInformationValidationSchemas = void 0;
|
|
|
4
4
|
const common_1 = require("./common");
|
|
5
5
|
const zod_1 = require("zod");
|
|
6
6
|
function registerDevelopmentInformationValidationSchemas(validationSchemaStorage) {
|
|
7
|
-
validationSchemaStorage.register("Author", zod_1.z.object({
|
|
8
|
-
name: zod_1.z.string().max(255).optional(),
|
|
9
|
-
email: zod_1.z.string().max(255).optional(),
|
|
10
|
-
username: zod_1.z.string().max(255).optional(),
|
|
11
|
-
url: zod_1.z.string().max(2000).optional(),
|
|
12
|
-
avatar: zod_1.z.string().max(2000).optional()
|
|
13
|
-
}).catchall(zod_1.z.unknown()).describe("Author"));
|
|
14
|
-
validationSchemaStorage.register("Branch", zod_1.z.object({
|
|
15
|
-
id: zod_1.z.string().max(1024),
|
|
16
|
-
issueKeys: zod_1.z.array(zod_1.z.string()).min(1).max(500),
|
|
17
|
-
updateSequenceId: zod_1.z.number().int(),
|
|
18
|
-
name: zod_1.z.string().max(512),
|
|
19
|
-
lastCommit: validationSchemaStorage.lazy("Commit"),
|
|
20
|
-
createPullRequestUrl: zod_1.z.string().max(2000).optional(),
|
|
21
|
-
url: zod_1.z.string().max(2000)
|
|
22
|
-
}).catchall(zod_1.z.unknown()).describe("Branch"));
|
|
23
|
-
validationSchemaStorage.register("Commit", zod_1.z.object({
|
|
24
|
-
id: zod_1.z.string(),
|
|
25
|
-
issueKeys: zod_1.z.array(zod_1.z.string()).min(1).max(500),
|
|
26
|
-
updateSequenceId: zod_1.z.number().int(),
|
|
27
|
-
hash: zod_1.z.string().max(255).optional(),
|
|
28
|
-
flags: zod_1.z.array(zod_1.z.literal("MERGE_COMMIT")).superRefine((items, ctx) => {
|
|
29
|
-
if (new Set(items).size !== items.length) {
|
|
30
|
-
ctx.addIssue({
|
|
31
|
-
code: zod_1.z.ZodIssueCode.custom,
|
|
32
|
-
path: [],
|
|
33
|
-
message: "Array items must be unique"
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
}).optional(),
|
|
37
|
-
message: zod_1.z.string().max(1024),
|
|
38
|
-
author: validationSchemaStorage.lazy("Author"),
|
|
39
|
-
fileCount: zod_1.z.number().int().min(0),
|
|
40
|
-
url: zod_1.z.string().max(2000),
|
|
41
|
-
files: zod_1.z.array(validationSchemaStorage.lazy("File")).max(10).optional(),
|
|
42
|
-
authorTimestamp: zod_1.z.string(),
|
|
43
|
-
displayId: zod_1.z.string().max(255)
|
|
44
|
-
}).catchall(zod_1.z.unknown()).describe("Commit"));
|
|
45
7
|
validationSchemaStorage.register("DevInformation", zod_1.z.object({
|
|
46
8
|
repositories: zod_1.z.array(validationSchemaStorage.lazy("Repository")).max(100),
|
|
47
9
|
preventTransitions: zod_1.z.boolean().optional(),
|
|
@@ -64,43 +26,6 @@ function registerDevelopmentInformationValidationSchemas(validationSchemaStorage
|
|
|
64
26
|
validationSchemaStorage.register("ExistsForPropertiesResponse", zod_1.z.object({
|
|
65
27
|
hasDataMatchingProperties: zod_1.z.boolean().optional()
|
|
66
28
|
}).catchall(zod_1.z.unknown()).describe("ExistsForPropertiesResponse"));
|
|
67
|
-
validationSchemaStorage.register("File", zod_1.z.object({
|
|
68
|
-
path: zod_1.z.string().max(1024),
|
|
69
|
-
url: zod_1.z.string().max(2000),
|
|
70
|
-
changeType: zod_1.z.enum(["ADDED", "COPIED", "DELETED", "MODIFIED", "MOVED", "UNKNOWN"]),
|
|
71
|
-
linesAdded: zod_1.z.number().int().min(0),
|
|
72
|
-
linesRemoved: zod_1.z.number().int().min(0)
|
|
73
|
-
}).catchall(zod_1.z.unknown()).describe("File"));
|
|
74
|
-
validationSchemaStorage.register("PullRequest", zod_1.z.object({
|
|
75
|
-
id: zod_1.z.string(),
|
|
76
|
-
issueKeys: zod_1.z.array(zod_1.z.string()).min(1).max(500),
|
|
77
|
-
updateSequenceId: zod_1.z.number().int(),
|
|
78
|
-
status: zod_1.z.enum(["OPEN", "MERGED", "DECLINED", "UNKNOWN"]),
|
|
79
|
-
title: zod_1.z.string().max(1024),
|
|
80
|
-
author: validationSchemaStorage.lazy("Author"),
|
|
81
|
-
commentCount: zod_1.z.number().int(),
|
|
82
|
-
sourceBranch: zod_1.z.string().max(255),
|
|
83
|
-
sourceBranchUrl: zod_1.z.string().max(2000).optional(),
|
|
84
|
-
lastUpdate: zod_1.z.string(),
|
|
85
|
-
destinationBranch: zod_1.z.string().max(255).optional(),
|
|
86
|
-
destinationBranchUrl: zod_1.z.string().max(2000).optional(),
|
|
87
|
-
reviewers: zod_1.z.array(validationSchemaStorage.lazy("Reviewer")).optional(),
|
|
88
|
-
url: zod_1.z.string().max(2000),
|
|
89
|
-
displayId: zod_1.z.string().max(255)
|
|
90
|
-
}).catchall(zod_1.z.unknown()).describe("PullRequest"));
|
|
91
|
-
validationSchemaStorage.register("Repository", zod_1.z.object({
|
|
92
|
-
name: zod_1.z.string().max(255),
|
|
93
|
-
description: zod_1.z.string().max(1024).optional(),
|
|
94
|
-
forkOf: zod_1.z.string().max(1024).optional(),
|
|
95
|
-
url: zod_1.z.string().max(2000),
|
|
96
|
-
commits: zod_1.z.array(validationSchemaStorage.lazy("Commit")).min(0).max(400).optional(),
|
|
97
|
-
branches: zod_1.z.array(validationSchemaStorage.lazy("Branch")).min(0).max(400).optional(),
|
|
98
|
-
pullRequests: zod_1.z.array(validationSchemaStorage.lazy("PullRequest")).min(0).max(400).optional(),
|
|
99
|
-
avatar: zod_1.z.string().max(2000).optional(),
|
|
100
|
-
avatarDescription: zod_1.z.string().max(1024).optional(),
|
|
101
|
-
id: zod_1.z.string().max(1024),
|
|
102
|
-
updateSequenceId: zod_1.z.number().int()
|
|
103
|
-
}).catchall(zod_1.z.unknown()).describe("Repository"));
|
|
104
29
|
validationSchemaStorage.register("RepositoryErrors", zod_1.z.object({
|
|
105
30
|
errorMessages: zod_1.z.array(zod_1.z.object({
|
|
106
31
|
message: zod_1.z.string(),
|
|
@@ -110,18 +35,11 @@ function registerDevelopmentInformationValidationSchemas(validationSchemaStorage
|
|
|
110
35
|
branches: zod_1.z.array(validationSchemaStorage.lazy("EntityError")).optional(),
|
|
111
36
|
pullRequests: zod_1.z.array(validationSchemaStorage.lazy("EntityError")).optional()
|
|
112
37
|
}).catchall(zod_1.z.unknown()).describe("RepositoryErrors"));
|
|
113
|
-
validationSchemaStorage.register("Reviewer", zod_1.z.object({
|
|
114
|
-
name: zod_1.z.string().max(255).optional(),
|
|
115
|
-
approvalStatus: zod_1.z.enum(["APPROVED", "UNAPPROVED"]).optional(),
|
|
116
|
-
url: zod_1.z.string().max(2000).optional(),
|
|
117
|
-
avatar: zod_1.z.string().max(2000).optional(),
|
|
118
|
-
email: zod_1.z.string().max(254).optional(),
|
|
119
|
-
accountId: zod_1.z.string().max(128).optional()
|
|
120
|
-
}).catchall(zod_1.z.unknown()).describe("Reviewer"));
|
|
121
38
|
validationSchemaStorage.register("StoreDevinfoResult", zod_1.z.object({
|
|
122
39
|
acceptedDevinfoEntities: zod_1.z.object({}).catchall(validationSchemaStorage.lazy("EntityIds")).optional(),
|
|
123
40
|
failedDevinfoEntities: zod_1.z.object({}).catchall(validationSchemaStorage.lazy("RepositoryErrors")).optional(),
|
|
124
|
-
unknownIssueKeys: zod_1.z.array(zod_1.z.string()).optional()
|
|
41
|
+
unknownIssueKeys: zod_1.z.array(zod_1.z.string()).optional(),
|
|
42
|
+
unknownAssociations: zod_1.z.array(validationSchemaStorage.lazy("IssueIdOrKeysAssociation")).optional()
|
|
125
43
|
}).catchall(zod_1.z.unknown()).describe("StoreDevinfoResult"));
|
|
126
44
|
validationSchemaStorage.registerOnce([common_1.registerCommonValidationSchemas]);
|
|
127
45
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"developmentInformation.js","sourceRoot":"","sources":["../../../../src/openapi/software/models/developmentInformation.ts"],"names":[],"mappings":";;;AAIA,
|
|
1
|
+
{"version":3,"file":"developmentInformation.js","sourceRoot":"","sources":["../../../../src/openapi/software/models/developmentInformation.ts"],"names":[],"mappings":";;;AAIA,qCAAkI;AAClI,6BAAyC;AA+LzC,SAAgB,+CAA+C,CAAC,uBAAkE;IAChI,uBAAuB,CAAC,QAAQ,CAAC,gBAAgB,EAAE,OAAC,CAAC,MAAM,CAAC;QAC1D,YAAY,EAAE,OAAC,CAAC,KAAK,CAAC,uBAAuB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;QAC1E,kBAAkB,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QA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,EAAE,CAAC,CAAC,QAAQ,CAAC,uBAAuB,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,QAAQ,EAAE;QACpG,qBAAqB,EAAE,OAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,uBAAuB,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC,CAAC,QAAQ,EAAE;QACzG,gBAAgB,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;QAChD,mBAAmB,EAAE,OAAC,CAAC,KAAK,CAAC,uBAAuB,CAAC,IAAI,CAAC,0BAA0B,CAAC,CAAC,CAAC,QAAQ,EAAE;KAClG,CAAC,CAAC,QAAQ,CAAC,OAAC,CAAC,OAAO,EAAE,CAAC,CAAC,QAAQ,CAAC,oBAAoB,CAAC,CAAC,CAAC;IACzD,uBAAuB,CAAC,YAAY,CAAC,CAAC,wCAA+B,CAAC,CAAC,CAAC;AAC1E,CAAC;AAvCD,0GAuCC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { CommonValidationSchemaStorage } from "../../core/CommonValidationSchemaStorage";
|
|
2
|
+
import { type IssueIdOrKeysAssociation } from "./common";
|
|
2
3
|
import { type ZodTypeAny } from "zod";
|
|
3
4
|
/**
|
|
4
5
|
* FeatureFlagData
|
|
@@ -70,8 +71,14 @@ export interface FeatureFlagData extends Record<string, unknown> {
|
|
|
70
71
|
* ```
|
|
71
72
|
*/
|
|
72
73
|
displayName?: string;
|
|
73
|
-
/**
|
|
74
|
-
|
|
74
|
+
/**
|
|
75
|
+
* The Jira issue keys to associate the Feature Flag information with.
|
|
76
|
+
*
|
|
77
|
+
* @deprecated
|
|
78
|
+
*/
|
|
79
|
+
issueKeys?: string[];
|
|
80
|
+
/** The Jira issue keys or IDs to associate the feature flag with. */
|
|
81
|
+
associations?: IssueIdOrKeysAssociation[];
|
|
75
82
|
/**
|
|
76
83
|
* FeatureFlagSummary
|
|
77
84
|
*
|
|
@@ -206,5 +213,17 @@ export interface SubmitFeatureFlagsResponse extends Record<string, unknown> {
|
|
|
206
213
|
* won't be persisted.
|
|
207
214
|
*/
|
|
208
215
|
unknownIssueKeys?: string[];
|
|
216
|
+
/**
|
|
217
|
+
* Associations that are not known on this Jira instance (if any).
|
|
218
|
+
*
|
|
219
|
+
* These may be invalid keys (e.g. `UTF-8` is sometimes incorrectly identified as
|
|
220
|
+
* a Jira issue key), or they may be for projects that no longer exist.
|
|
221
|
+
*
|
|
222
|
+
* If a feature flag has been associated with any other association other than
|
|
223
|
+
* those in this array it will still be stored against those valid associations.
|
|
224
|
+
* If a feature flag was only associated with the associations in this array, it
|
|
225
|
+
* is deemed to be invalid and it won't be persisted.
|
|
226
|
+
*/
|
|
227
|
+
unknownAssociations?: IssueIdOrKeysAssociation[];
|
|
209
228
|
}
|
|
210
229
|
export declare function registerFeatureFlagsValidationSchemas(validationSchemaStorage: CommonValidationSchemaStorage<ZodTypeAny>): void;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.registerFeatureFlagsValidationSchemas = void 0;
|
|
4
|
+
const common_1 = require("./common");
|
|
4
5
|
const zod_1 = require("zod");
|
|
5
6
|
function registerFeatureFlagsValidationSchemas(validationSchemaStorage) {
|
|
6
7
|
validationSchemaStorage.register("FeatureFlagData", zod_1.z.object({
|
|
@@ -9,7 +10,8 @@ function registerFeatureFlagsValidationSchemas(validationSchemaStorage) {
|
|
|
9
10
|
key: zod_1.z.string().max(255),
|
|
10
11
|
updateSequenceId: zod_1.z.number().int(),
|
|
11
12
|
displayName: zod_1.z.string().max(255).optional(),
|
|
12
|
-
issueKeys: zod_1.z.array(zod_1.z.string().regex(new RegExp("^\\w{1,255}-\\d{1,255}$"))).min(1).max(100),
|
|
13
|
+
issueKeys: zod_1.z.array(zod_1.z.string().regex(new RegExp("^\\w{1,255}-\\d{1,255}$"))).min(1).max(100).optional(),
|
|
14
|
+
associations: zod_1.z.array(validationSchemaStorage.lazy("IssueIdOrKeysAssociation")).optional(),
|
|
13
15
|
summary: zod_1.z.unknown(),
|
|
14
16
|
details: zod_1.z.array(zod_1.z.unknown()).min(1)
|
|
15
17
|
}).catchall(zod_1.z.unknown()).describe("FeatureFlagData"));
|
|
@@ -31,8 +33,10 @@ function registerFeatureFlagsValidationSchemas(validationSchemaStorage) {
|
|
|
31
33
|
validationSchemaStorage.register("SubmitFeatureFlagsResponse", zod_1.z.object({
|
|
32
34
|
acceptedFeatureFlags: zod_1.z.array(zod_1.z.string()).optional(),
|
|
33
35
|
failedFeatureFlags: zod_1.z.object({}).catchall(zod_1.z.array(zod_1.z.unknown())).optional(),
|
|
34
|
-
unknownIssueKeys: zod_1.z.array(zod_1.z.string().regex(new RegExp("^\\w{1,255}-\\d{1,255}$"))).optional()
|
|
36
|
+
unknownIssueKeys: zod_1.z.array(zod_1.z.string().regex(new RegExp("^\\w{1,255}-\\d{1,255}$"))).optional(),
|
|
37
|
+
unknownAssociations: zod_1.z.array(validationSchemaStorage.lazy("IssueIdOrKeysAssociation")).optional()
|
|
35
38
|
}).catchall(zod_1.z.unknown()).describe("SubmitFeatureFlagsResponse"));
|
|
39
|
+
validationSchemaStorage.registerOnce([common_1.registerCommonValidationSchemas]);
|
|
36
40
|
}
|
|
37
41
|
exports.registerFeatureFlagsValidationSchemas = registerFeatureFlagsValidationSchemas;
|
|
38
42
|
//# sourceMappingURL=featureFlags.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"featureFlags.js","sourceRoot":"","sources":["../../../../src/openapi/software/models/featureFlags.ts"],"names":[],"mappings":";;;AAIA,6BAAyC;
|
|
1
|
+
{"version":3,"file":"featureFlags.js","sourceRoot":"","sources":["../../../../src/openapi/software/models/featureFlags.ts"],"names":[],"mappings":";;;AAIA,qCAA0F;AAC1F,6BAAyC;AAkOzC,SAAgB,qCAAqC,CA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AAQ,EAAE;QAC7F,mBAAmB,EAAE,OAAC,CAAC,KAAK,CAAC,uBAAuB,CAAC,IAAI,CAAC,0BAA0B,CAAC,CAAC,CAAC,QAAQ,EAAE;KAClG,CAAC,CAAC,QAAQ,CAAC,OAAC,CAAC,OAAO,EAAE,CAAC,CAAC,QAAQ,CAAC,4BAA4B,CAAC,CAAC,CAAC;IACjE,uBAAuB,CAAC,YAAY,CAAC,CAAC,wCAA+B,CAAC,CAAC,CAAC;AAC1E,CAAC;AAlCD,sFAkCC"}
|
|
@@ -1,41 +1,6 @@
|
|
|
1
1
|
import type { CommonValidationSchemaStorage } from "../../core/CommonValidationSchemaStorage";
|
|
2
|
-
import { type
|
|
2
|
+
import { type IssueIdOrKeysAssociation, type ServiceIdOrKeysAssociation, type Properties, type ProviderMetadata } from "./common";
|
|
3
3
|
import { type ZodTypeAny } from "zod";
|
|
4
|
-
/**
|
|
5
|
-
* IssueKeysAssociation
|
|
6
|
-
*
|
|
7
|
-
* An association type referencing issues in Jira.
|
|
8
|
-
*
|
|
9
|
-
* @example
|
|
10
|
-
* ```
|
|
11
|
-
* {
|
|
12
|
-
* "associationType": "issueKeys",
|
|
13
|
-
* "values": [
|
|
14
|
-
* "ABC-123",
|
|
15
|
-
* "ABC-456"
|
|
16
|
-
* ]
|
|
17
|
-
* }
|
|
18
|
-
* ```
|
|
19
|
-
* @category Models
|
|
20
|
-
*/
|
|
21
|
-
export interface IssueKeysAssociation extends Record<string, unknown> {
|
|
22
|
-
/**
|
|
23
|
-
* Defines the asssociation type.
|
|
24
|
-
*
|
|
25
|
-
* @example
|
|
26
|
-
* ```
|
|
27
|
-
* issueKeys
|
|
28
|
-
* ```
|
|
29
|
-
*/
|
|
30
|
-
associationType: "issueKeys";
|
|
31
|
-
/**
|
|
32
|
-
* The Jira issue keys to associate the Remote Link information with.
|
|
33
|
-
*
|
|
34
|
-
* The number of values counted across all associationTypes (issueKeys,
|
|
35
|
-
* issueIdOrKeys and serviceIdOrKeys) must not exceed a limit of 500.
|
|
36
|
-
*/
|
|
37
|
-
values: IssueKey[];
|
|
38
|
-
}
|
|
39
4
|
/**
|
|
40
5
|
* RemoteLinkData
|
|
41
6
|
*
|
|
@@ -129,45 +94,7 @@ export interface RemoteLinkData extends Record<string, unknown> {
|
|
|
129
94
|
*/
|
|
130
95
|
lastUpdated: string;
|
|
131
96
|
/** The entities to associate the Remote Link information with. */
|
|
132
|
-
associations?: (
|
|
133
|
-
/**
|
|
134
|
-
* Defines the asssociation type.
|
|
135
|
-
*
|
|
136
|
-
* @example
|
|
137
|
-
* ```
|
|
138
|
-
* issueKeys
|
|
139
|
-
* ```
|
|
140
|
-
*/
|
|
141
|
-
associationType: "issueKeys";
|
|
142
|
-
/**
|
|
143
|
-
* The Jira issue keys to associate the Remote Link information with.
|
|
144
|
-
*
|
|
145
|
-
* The number of values counted across all associationTypes (issueKeys,
|
|
146
|
-
* issueIdOrKeys and serviceIdOrKeys) must not exceed a limit of 500.
|
|
147
|
-
*/
|
|
148
|
-
values: string[];
|
|
149
|
-
} & {
|
|
150
|
-
[key: string]: unknown;
|
|
151
|
-
}) | ({
|
|
152
|
-
/**
|
|
153
|
-
* Defines the asssociation type.
|
|
154
|
-
*
|
|
155
|
-
* @example
|
|
156
|
-
* ```
|
|
157
|
-
* serviceIdOrKeys
|
|
158
|
-
* ```
|
|
159
|
-
*/
|
|
160
|
-
associationType: "serviceIdOrKeys";
|
|
161
|
-
/**
|
|
162
|
-
* The service id or keys to associate the Remote Link information with.
|
|
163
|
-
*
|
|
164
|
-
* The number of values counted across all associationTypes (issueKeys,
|
|
165
|
-
* issueIdOrKeys and serviceIdOrKeys) must not exceed a limit of 500.
|
|
166
|
-
*/
|
|
167
|
-
values: string[];
|
|
168
|
-
} & {
|
|
169
|
-
[key: string]: unknown;
|
|
170
|
-
}))[];
|
|
97
|
+
associations?: (IssueIdOrKeysAssociation | ServiceIdOrKeysAssociation)[];
|
|
171
98
|
/**
|
|
172
99
|
* RemoteLinkStatus
|
|
173
100
|
*
|
|
@@ -226,52 +153,6 @@ export interface RemoteLinkData extends Record<string, unknown> {
|
|
|
226
153
|
[key: string]: string;
|
|
227
154
|
};
|
|
228
155
|
}
|
|
229
|
-
/**
|
|
230
|
-
* ServiceIdOrKeys
|
|
231
|
-
*
|
|
232
|
-
* A service id or service key.
|
|
233
|
-
*
|
|
234
|
-
* @example
|
|
235
|
-
* ```
|
|
236
|
-
* some-service-key
|
|
237
|
-
* ```
|
|
238
|
-
* @category Models
|
|
239
|
-
*/
|
|
240
|
-
export type ServiceIdOrKeys = string;
|
|
241
|
-
/**
|
|
242
|
-
* ServiceIdOrKeysAssociation
|
|
243
|
-
*
|
|
244
|
-
* An association type referencing service id or keys.
|
|
245
|
-
*
|
|
246
|
-
* @example
|
|
247
|
-
* ```
|
|
248
|
-
* {
|
|
249
|
-
* "associationType": "serviceIdOrKeys",
|
|
250
|
-
* "values": [
|
|
251
|
-
* "some-service-key"
|
|
252
|
-
* ]
|
|
253
|
-
* }
|
|
254
|
-
* ```
|
|
255
|
-
* @category Models
|
|
256
|
-
*/
|
|
257
|
-
export interface ServiceIdOrKeysAssociation extends Record<string, unknown> {
|
|
258
|
-
/**
|
|
259
|
-
* Defines the asssociation type.
|
|
260
|
-
*
|
|
261
|
-
* @example
|
|
262
|
-
* ```
|
|
263
|
-
* serviceIdOrKeys
|
|
264
|
-
* ```
|
|
265
|
-
*/
|
|
266
|
-
associationType: "serviceIdOrKeys";
|
|
267
|
-
/**
|
|
268
|
-
* The service id or keys to associate the Remote Link information with.
|
|
269
|
-
*
|
|
270
|
-
* The number of values counted across all associationTypes (issueKeys,
|
|
271
|
-
* issueIdOrKeys and serviceIdOrKeys) must not exceed a limit of 500.
|
|
272
|
-
*/
|
|
273
|
-
values: ServiceIdOrKeys[];
|
|
274
|
-
}
|
|
275
156
|
/**
|
|
276
157
|
* SubmitRemoteLinksRequest
|
|
277
158
|
*
|
|
@@ -4,10 +4,6 @@ exports.registerRemoteLinksValidationSchemas = void 0;
|
|
|
4
4
|
const common_1 = require("./common");
|
|
5
5
|
const zod_1 = require("zod");
|
|
6
6
|
function registerRemoteLinksValidationSchemas(validationSchemaStorage) {
|
|
7
|
-
validationSchemaStorage.register("IssueKeysAssociation", zod_1.z.object({
|
|
8
|
-
associationType: zod_1.z.literal("issueKeys"),
|
|
9
|
-
values: zod_1.z.array(validationSchemaStorage.lazy("IssueKey")).min(1).max(500)
|
|
10
|
-
}).catchall(zod_1.z.unknown()).describe("IssueKeysAssociation"));
|
|
11
7
|
validationSchemaStorage.register("RemoteLinkData", zod_1.z.object({
|
|
12
8
|
schemaVersion: zod_1.z.literal("1.0").optional(),
|
|
13
9
|
id: zod_1.z.string().max(255),
|
|
@@ -17,13 +13,7 @@ function registerRemoteLinksValidationSchemas(validationSchemaStorage) {
|
|
|
17
13
|
type: zod_1.z.enum(["document", "alert", "test", "security", "logFile", "prototype", "coverage", "bugReport", "other"]),
|
|
18
14
|
description: zod_1.z.string().max(255).optional(),
|
|
19
15
|
lastUpdated: zod_1.z.string(),
|
|
20
|
-
associations: zod_1.z.array(zod_1.z.union([
|
|
21
|
-
associationType: zod_1.z.literal("issueKeys"),
|
|
22
|
-
values: zod_1.z.array(zod_1.z.string().regex(new RegExp("^\\w{1,255}-\\d{1,255}$"))).min(1).max(500)
|
|
23
|
-
}).catchall(zod_1.z.unknown()), zod_1.z.object({
|
|
24
|
-
associationType: zod_1.z.literal("serviceIdOrKeys"),
|
|
25
|
-
values: zod_1.z.array(zod_1.z.string().max(255)).min(1).max(500)
|
|
26
|
-
}).catchall(zod_1.z.unknown())])).min(1).max(2).optional(),
|
|
16
|
+
associations: zod_1.z.array(zod_1.z.union([validationSchemaStorage.lazy("IssueIdOrKeysAssociation"), validationSchemaStorage.lazy("ServiceIdOrKeysAssociation")])).min(1).max(2).optional(),
|
|
27
17
|
status: zod_1.z.object({
|
|
28
18
|
appearance: zod_1.z.enum(["default", "inprogress", "moved", "new", "removed", "prototype", "success"]),
|
|
29
19
|
label: zod_1.z.string().max(255)
|
|
@@ -31,11 +21,6 @@ function registerRemoteLinksValidationSchemas(validationSchemaStorage) {
|
|
|
31
21
|
actionIds: zod_1.z.array(zod_1.z.string()).max(10).optional(),
|
|
32
22
|
attributeMap: zod_1.z.object({}).catchall(zod_1.z.string()).optional()
|
|
33
23
|
}).catchall(zod_1.z.unknown()).describe("RemoteLinkData"));
|
|
34
|
-
validationSchemaStorage.register("ServiceIdOrKeys", zod_1.z.string().max(255).describe("ServiceIdOrKeys"));
|
|
35
|
-
validationSchemaStorage.register("ServiceIdOrKeysAssociation", zod_1.z.object({
|
|
36
|
-
associationType: zod_1.z.literal("serviceIdOrKeys"),
|
|
37
|
-
values: zod_1.z.array(validationSchemaStorage.lazy("ServiceIdOrKeys")).min(1).max(500)
|
|
38
|
-
}).catchall(zod_1.z.unknown()).describe("ServiceIdOrKeysAssociation"));
|
|
39
24
|
validationSchemaStorage.register("SubmitRemoteLinksRequest", zod_1.z.object({
|
|
40
25
|
properties: validationSchemaStorage.lazy("Properties").optional(),
|
|
41
26
|
remoteLinks: zod_1.z.array(validationSchemaStorage.lazy("RemoteLinkData")).min(1).max(100),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remoteLinks.js","sourceRoot":"","sources":["../../../../src/openapi/software/models/remoteLinks.ts"],"names":[],"mappings":";;;AAIA,
|
|
1
|
+
{"version":3,"file":"remoteLinks.js","sourceRoot":"","sources":["../../../../src/openapi/software/models/remoteLinks.ts"],"names":[],"mappings":";;;AAIA,qCAAmK;AACnK,6BAAyC;AA+MzC,SAAgB,oCAAoC,CAAC,uBAAkE;IACrH,uBAAuB,CAAC,QAAQ,CAAC,gBAAgB,EAAE,OAAC,CAAC,MAAM,CAAC;QAC1D,aAAa,EAAE,OAAC,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,QAAQ,EAAE;QAC1C,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC;QACvB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AAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;KAC3D,CAAC,CAAC,QAAQ,CAAC,OAAC,CAAC,OAAO,EAAE,CAAC,CAAC,QAAQ,CAAC,gBAAgB,CAAC,CAAC,CAAC;IACrD,uBAAuB,CAAC,QAAQ,CAAC,0BAA0B,EAAE,OAAC,CAAC,MAAM,CAAC;QACpE,UAAU,EAAE,uBAAuB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,QAAQ,EAAE;QACjE,WAAW,EAAE,OAAC,CAAC,KAAK,CAAC,uBAAuB,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;QACpF,gBAAgB,EAAE,uBAAuB,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC,QAAQ,EAAE;KAC9E,CAAC,CAAC,QAAQ,CAAC,OAAC,CAAC,OAAO,EAAE,CAAC,CAAC,QAAQ,CAAC,0BAA0B,CAAC,CAAC,CAAC;IAC/D,uBAAuB,CAAC,YAAY,CAAC,CAAC,wCAA+B,CAAC,CAAC,CAAC;AAC1E,CAAC;AAxBD,oFAwBC"}
|
|
@@ -1,15 +1,19 @@
|
|
|
1
1
|
import { CommonHttpService } from "../../core/CommonHttpService";
|
|
2
2
|
import { type SubmitBuildsRequest, type SubmitBuildsResponse, type BuildData } from "../models/builds";
|
|
3
3
|
/**
|
|
4
|
-
* APIs related to integrating
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* Software Cloud with on-premises tools using
|
|
10
|
-
* OAuth 2.0 credentials
|
|
4
|
+
* APIs related to integrating build data with Jira Software.
|
|
5
|
+
*
|
|
6
|
+
* These APIs are available to Atlassian Connect apps. To use these APIs you must
|
|
7
|
+
* have the `jiraBuildInfoProvider` module in your Connect app's descriptor. See
|
|
8
|
+
* https://developer.atlassian.com/cloud/jira/software/modules/build/. They are
|
|
9
|
+
* also related to integrating Jira Software Cloud with on-premises tools using
|
|
10
|
+
* OAuth 2.0 credentials. See
|
|
11
11
|
* https://developer.atlassian.com/cloud/jira/software/integrate-jsw-cloud-with-onpremises-tools/.
|
|
12
12
|
*
|
|
13
|
+
* These APIs are available to Forge apps with the `devops:buildInfoProvider`
|
|
14
|
+
* module in the Forge app's manifest. See
|
|
15
|
+
* https://developer.atlassian.com/platform/forge/manifest-reference/modules/jira-software-build-info/.
|
|
16
|
+
*
|
|
13
17
|
* @see https://developer.atlassian.com/cloud/jira/software/rest/api-group-builds
|
|
14
18
|
* @category Services
|
|
15
19
|
*/
|
|
@@ -22,10 +26,6 @@ export declare class BuildsService extends CommonHttpService {
|
|
|
22
26
|
* to confirm that data has been
|
|
23
27
|
* deleted successfully (if needed).
|
|
24
28
|
*
|
|
25
|
-
* Only Connect apps that define the `jiraBuildInfoProvider` module, and
|
|
26
|
-
* on-premise integrations, can access this resource.
|
|
27
|
-
* This resource requires the 'DELETE' scope for Connect apps.
|
|
28
|
-
*
|
|
29
29
|
* @path DELETE `/rest/builds/0.1/pipelines/{pipelineId}/builds/{buildNumber}`
|
|
30
30
|
* @see https://developer.atlassian.com/cloud/jira/software/rest/api-group-builds#api-rest-builds-0-1-pipelines-pipelineid-builds-buildnumber-delete
|
|
31
31
|
* @param params
|
|
@@ -80,10 +80,6 @@ export declare class BuildsService extends CommonHttpService {
|
|
|
80
80
|
* to confirm that data has been
|
|
81
81
|
* deleted successfully (if needed).
|
|
82
82
|
*
|
|
83
|
-
* Only Connect apps that define the `jiraBuildInfoProvider` module, and
|
|
84
|
-
* on-premise integrations, can access this resource.
|
|
85
|
-
* This resource requires the 'DELETE' scope for Connect apps.
|
|
86
|
-
*
|
|
87
83
|
* @path DELETE `/rest/builds/0.1/bulkByProperties`
|
|
88
84
|
* @see https://developer.atlassian.com/cloud/jira/software/rest/api-group-builds#api-rest-builds-0-1-bulkbyproperties-delete
|
|
89
85
|
* @param params
|
|
@@ -126,10 +122,6 @@ export declare class BuildsService extends CommonHttpService {
|
|
|
126
122
|
* The result will be what is currently stored, ignoring any pending updates or
|
|
127
123
|
* deletes.
|
|
128
124
|
*
|
|
129
|
-
* Only Connect apps that define the `jiraBuildInfoProvider` module, and
|
|
130
|
-
* on-premise integrations, can access this resource.
|
|
131
|
-
* This resource requires the 'READ' scope for Connect apps.
|
|
132
|
-
*
|
|
133
125
|
* @returns The build data currently stored for the given key.
|
|
134
126
|
* @path GET `/rest/builds/0.1/pipelines/{pipelineId}/builds/{buildNumber}`
|
|
135
127
|
* @see https://developer.atlassian.com/cloud/jira/software/rest/api-group-builds#api-rest-builds-0-1-pipelines-pipelineid-builds-buildnumber-get
|
|
@@ -176,10 +168,6 @@ export declare class BuildsService extends CommonHttpService {
|
|
|
176
168
|
* submission. Details of which build failed submission (if any) are available in
|
|
177
169
|
* the response object.
|
|
178
170
|
*
|
|
179
|
-
* Only Connect apps that define the `jiraBuildInfoProvider` module, and
|
|
180
|
-
* on-premise integrations, can access this resource.
|
|
181
|
-
* This resource requires the 'WRITE' scope for Connect apps.
|
|
182
|
-
*
|
|
183
171
|
* @returns Submission accepted. Each submitted build that is of a valid format will be eventually available in Jira.
|
|
184
172
|
*
|
|
185
173
|
* Details of which builds were submitted and which failed submission (due to data format problems etc.)
|
|
@@ -10,15 +10,19 @@ const builds_1 = require("../models/builds");
|
|
|
10
10
|
const validationSchemaStorage_1 = require("../validationSchemaStorage");
|
|
11
11
|
const zod_1 = require("zod");
|
|
12
12
|
/**
|
|
13
|
-
* APIs related to integrating
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
* Software Cloud with on-premises tools using
|
|
19
|
-
* OAuth 2.0 credentials
|
|
13
|
+
* APIs related to integrating build data with Jira Software.
|
|
14
|
+
*
|
|
15
|
+
* These APIs are available to Atlassian Connect apps. To use these APIs you must
|
|
16
|
+
* have the `jiraBuildInfoProvider` module in your Connect app's descriptor. See
|
|
17
|
+
* https://developer.atlassian.com/cloud/jira/software/modules/build/. They are
|
|
18
|
+
* also related to integrating Jira Software Cloud with on-premises tools using
|
|
19
|
+
* OAuth 2.0 credentials. See
|
|
20
20
|
* https://developer.atlassian.com/cloud/jira/software/integrate-jsw-cloud-with-onpremises-tools/.
|
|
21
21
|
*
|
|
22
|
+
* These APIs are available to Forge apps with the `devops:buildInfoProvider`
|
|
23
|
+
* module in the Forge app's manifest. See
|
|
24
|
+
* https://developer.atlassian.com/platform/forge/manifest-reference/modules/jira-software-build-info/.
|
|
25
|
+
*
|
|
22
26
|
* @see https://developer.atlassian.com/cloud/jira/software/rest/api-group-builds
|
|
23
27
|
* @category Services
|
|
24
28
|
*/
|
|
@@ -33,10 +37,6 @@ class BuildsService extends CommonHttpService_1.CommonHttpService {
|
|
|
33
37
|
* to confirm that data has been
|
|
34
38
|
* deleted successfully (if needed).
|
|
35
39
|
*
|
|
36
|
-
* Only Connect apps that define the `jiraBuildInfoProvider` module, and
|
|
37
|
-
* on-premise integrations, can access this resource.
|
|
38
|
-
* This resource requires the 'DELETE' scope for Connect apps.
|
|
39
|
-
*
|
|
40
40
|
* @path DELETE `/rest/builds/0.1/pipelines/{pipelineId}/builds/{buildNumber}`
|
|
41
41
|
* @see https://developer.atlassian.com/cloud/jira/software/rest/api-group-builds#api-rest-builds-0-1-pipelines-pipelineid-builds-buildnumber-delete
|
|
42
42
|
* @param params
|
|
@@ -74,10 +74,6 @@ class BuildsService extends CommonHttpService_1.CommonHttpService {
|
|
|
74
74
|
* to confirm that data has been
|
|
75
75
|
* deleted successfully (if needed).
|
|
76
76
|
*
|
|
77
|
-
* Only Connect apps that define the `jiraBuildInfoProvider` module, and
|
|
78
|
-
* on-premise integrations, can access this resource.
|
|
79
|
-
* This resource requires the 'DELETE' scope for Connect apps.
|
|
80
|
-
*
|
|
81
77
|
* @path DELETE `/rest/builds/0.1/bulkByProperties`
|
|
82
78
|
* @see https://developer.atlassian.com/cloud/jira/software/rest/api-group-builds#api-rest-builds-0-1-bulkbyproperties-delete
|
|
83
79
|
* @param params
|
|
@@ -101,10 +97,6 @@ class BuildsService extends CommonHttpService_1.CommonHttpService {
|
|
|
101
97
|
* The result will be what is currently stored, ignoring any pending updates or
|
|
102
98
|
* deletes.
|
|
103
99
|
*
|
|
104
|
-
* Only Connect apps that define the `jiraBuildInfoProvider` module, and
|
|
105
|
-
* on-premise integrations, can access this resource.
|
|
106
|
-
* This resource requires the 'READ' scope for Connect apps.
|
|
107
|
-
*
|
|
108
100
|
* @returns The build data currently stored for the given key.
|
|
109
101
|
* @path GET `/rest/builds/0.1/pipelines/{pipelineId}/builds/{buildNumber}`
|
|
110
102
|
* @see https://developer.atlassian.com/cloud/jira/software/rest/api-group-builds#api-rest-builds-0-1-pipelines-pipelineid-builds-buildnumber-get
|
|
@@ -148,10 +140,6 @@ class BuildsService extends CommonHttpService_1.CommonHttpService {
|
|
|
148
140
|
* submission. Details of which build failed submission (if any) are available in
|
|
149
141
|
* the response object.
|
|
150
142
|
*
|
|
151
|
-
* Only Connect apps that define the `jiraBuildInfoProvider` module, and
|
|
152
|
-
* on-premise integrations, can access this resource.
|
|
153
|
-
* This resource requires the 'WRITE' scope for Connect apps.
|
|
154
|
-
*
|
|
155
143
|
* @returns Submission accepted. Each submitted build that is of a valid format will be eventually available in Jira.
|
|
156
144
|
*
|
|
157
145
|
* Details of which builds were submitted and which failed submission (due to data format problems etc.)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BuildsService.js","sourceRoot":"","sources":["../../../../src/openapi/software/services/BuildsService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,gEAAgE;AAChE,oEAAiE;AACjE,6CAAwI;AACxI,wEAAqE;AACrE,6BAAwB;AACxB
|
|
1
|
+
{"version":3,"file":"BuildsService.js","sourceRoot":"","sources":["../../../../src/openapi/software/services/BuildsService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