@stack-spot/portal-network 0.173.1 → 0.174.0-beta.1
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 +230 -0
- package/dist/api/ai.d.ts +2 -0
- package/dist/api/ai.d.ts.map +1 -1
- package/dist/api/ai.js.map +1 -1
- package/dist/api/codeShift.d.ts +504 -23
- package/dist/api/codeShift.d.ts.map +1 -1
- package/dist/api/codeShift.js +217 -0
- package/dist/api/codeShift.js.map +1 -1
- package/dist/api/discover.d.ts +294 -0
- package/dist/api/discover.d.ts.map +1 -0
- package/dist/api/discover.js +180 -0
- package/dist/api/discover.js.map +1 -0
- package/dist/api-addresses.d.ts +11 -3
- package/dist/api-addresses.d.ts.map +1 -1
- package/dist/api-addresses.js +22 -2
- package/dist/api-addresses.js.map +1 -1
- package/dist/apis-itau.json +225 -0
- package/dist/apis.json +2 -2
- package/dist/client/code-shift.d.ts +183 -28
- package/dist/client/code-shift.d.ts.map +1 -1
- package/dist/client/code-shift.js +106 -7
- package/dist/client/code-shift.js.map +1 -1
- package/dist/client/data-integration.d.ts +9 -0
- package/dist/client/data-integration.d.ts.map +1 -1
- package/dist/client/data-integration.js +10 -1
- package/dist/client/data-integration.js.map +1 -1
- package/dist/client/discover.d.ts +64 -0
- package/dist/client/discover.d.ts.map +1 -0
- package/dist/client/discover.js +124 -0
- package/dist/client/discover.js.map +1 -0
- package/dist/client/workspace-manager.d.ts +9 -0
- package/dist/client/workspace-manager.d.ts.map +1 -1
- package/dist/client/workspace-manager.js +11 -2
- package/dist/client/workspace-manager.js.map +1 -1
- package/dist/error/dictionary/cloud-platform.d.ts +70 -8
- package/dist/error/dictionary/cloud-platform.d.ts.map +1 -1
- package/dist/error/dictionary/cloud-platform.js +74 -12
- package/dist/error/dictionary/cloud-platform.js.map +1 -1
- package/dist/index.d.ts +4 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/network/NetworkClient.d.ts +4 -2
- package/dist/network/NetworkClient.d.ts.map +1 -1
- package/dist/network/NetworkClient.js +5 -3
- package/dist/network/NetworkClient.js.map +1 -1
- package/dist/network/types.d.ts +1 -0
- package/dist/network/types.d.ts.map +1 -1
- package/package.json +2 -2
- package/readme.md +1 -1
- package/src/api/account.ts +1 -0
- package/src/api/agent-tools.ts +3 -0
- package/src/api/agent.ts +2 -0
- package/src/api/ai.ts +2 -0
- package/src/api/codeShift.ts +898 -33
- package/src/api/discover.ts +435 -0
- package/src/api/notification.ts +2 -0
- package/src/api-addresses.ts +26 -3
- package/src/apis-itau.json +225 -0
- package/src/apis.json +2 -2
- package/src/client/ai.ts +1 -0
- package/src/client/code-shift.ts +73 -7
- package/src/client/data-integration.ts +6 -0
- package/src/client/discover.ts +89 -0
- package/src/client/workspace-manager.ts +8 -1
- package/src/error/dictionary/cloud-platform.ts +74 -12
- package/src/index.ts +5 -3
- package/src/network/NetworkClient.ts +7 -4
- package/src/network/types.ts +2 -0
- package/dist/api/discovery.d.ts +0 -494
- package/dist/api/discovery.d.ts.map +0 -1
- package/dist/api/discovery.js +0 -205
- package/dist/api/discovery.js.map +0 -1
- package/dist/client/discovery.d.ts +0 -110
- package/dist/client/discovery.d.ts.map +0 -1
- package/dist/client/discovery.js +0 -133
- package/dist/client/discovery.js.map +0 -1
- package/src/api/discovery.ts +0 -729
- package/src/client/discovery.ts +0 -73
package/src/api/codeShift.ts
CHANGED
|
@@ -43,9 +43,9 @@ export type CreateModuleRequest = {
|
|
|
43
43
|
/** Module description */
|
|
44
44
|
description: string;
|
|
45
45
|
/** Module workflow_name */
|
|
46
|
-
workflowName
|
|
46
|
+
workflowName?: string | null;
|
|
47
47
|
/** Module version */
|
|
48
|
-
version
|
|
48
|
+
version?: string | null;
|
|
49
49
|
/** Module mode */
|
|
50
50
|
modes: string[];
|
|
51
51
|
/** Module tags */
|
|
@@ -53,14 +53,14 @@ export type CreateModuleRequest = {
|
|
|
53
53
|
/** Inputs of module */
|
|
54
54
|
inputs: InputRequest[];
|
|
55
55
|
/** Module studio */
|
|
56
|
-
studio
|
|
56
|
+
studio?: string | null;
|
|
57
57
|
/** Module studio */
|
|
58
58
|
constants?: {
|
|
59
59
|
[key: string]: any;
|
|
60
60
|
} | null;
|
|
61
61
|
gitAction?: GitAction | null;
|
|
62
62
|
};
|
|
63
|
-
export type ExceptionType = "CODE_SHIFT_API_0000_UNEXPECTED_ERROR" | "CODE_SHIFT_API_0001_INVALID_VALUE" | "CODE_SHIFT_API_0002_NOT_IMPLEMENTED" | "CODE_SHIFT_API_0003_NOT_FOUND" | "CODE_SHIFT_API_0004_VALIDATION_ERROR" | "CODE_SHIFT_API_0005_CONFLICT" | "CODE_SHIFT_API_0006_INVALID_REPO_URL" | "CODE_SHIFT_API_0007_FORBIDDEN" | "CODE_SHIFT_API_0008_DEFAULT_BRANCH" | "CODE_SHIFT_API_0009_INVALID_SPREADSHEET" | "CODE_SHIFT_API_0010_PR_LINK_NOT_EXISTS" | "CODE_SHIFT_API_0011_EMPTY_SPREADSHEET" | "CODE_SHIFT_API_0012_REPOSITORY_NOT_EXISTS_IN_SCM" | "CODE_SHIFT_API_0013_SCM_BRANCH_NOT_EXISTS_EXCEPTION" | "CODE_SHIFT_API_0014_ACCOUNT_NOT_FOUND_EXCEPTION" | "CODE_SHIFT_API_3000_WORKFLOW_API_DISPATCH_FAILURE" | "CODE_SHIFT_API_3001_WORKFLOW_API_DISPATCH_FORBIDDEN" | "CODE_SHIFT_API_3009_WORKFLOW_API_DISPATCH_PARSE_ERROR" | "CODE_SHIFT_API_3010_AWS_SECRET_MANAGER_GET_SECRET_FAILURE" | "CODE_SHIFT_API_3011_AWS_SECRET_MANAGER_PARSE_SECRET_ERROR" | "CODE_SHIFT_API_3100_SCM_GET_REPOSITORIES_FAILURE" | "CODE_SHIFT_API_3110_SCM_GET_PULL_REQUEST_FAILURE" | "CODE_SHIFT_API_3120_SCM_GET_BRANCHES_FAILURE" | "CODE_SHIFT_API_3130_SCM_GET_SCM_REPOSITORY_FETCH_FAILURE" | "CODE_SHIFT_API_3131_SCM_REPOSITORY_NOT_FOUND" | "CODE_SHIFT_API_3140_SCM_GET_BRANCH_FAILURE" | "CODE_SHIFT_API_3142_SCM_GET_BRANCHES_NOT_FOUND" | "CODE_SHIFT_API_4000_ACCOUNTS_API_PAT_FAILURE" | "CODE_SHIFT_API_4001_ACCOUNTS_API_PAT_FORBIDDEN" | "CODE_SHIFT_API_4002_ACCOUNTS_API_PAT_NOT_FOUND" | "CODE_SHIFT_API_4009_ACCOUNTS_API_PAT_PARSE_ERROR" | "CODE_SHIFT_API_4010_GET_SCM_CREDENTIALS_FAILURE" | "CODE_SHIFT_API_4011_GET_SCM_CREDENTIALS_FORBIDDEN" | "CODE_SHIFT_API_4012_GET_SCM_CREDENTIALS_NOT_FOUND" | "CODE_SHIFT_API_4019_GET_SCM_CREDENTIALS_PARSE_ERROR" | "CODE_SHIFT_API_6000_IAM_GENERATE_TOKEN_FAILURE" | "CODE_SHIFT_API_6000_IAM_INTROSPECT_TOKEN_FAILURE";
|
|
63
|
+
export type ExceptionType = "CODE_SHIFT_API_0000_UNEXPECTED_ERROR" | "CODE_SHIFT_API_0001_INVALID_VALUE" | "CODE_SHIFT_API_0002_NOT_IMPLEMENTED" | "CODE_SHIFT_API_0003_NOT_FOUND" | "CODE_SHIFT_API_0004_VALIDATION_ERROR" | "CODE_SHIFT_API_0005_CONFLICT" | "CODE_SHIFT_API_0006_INVALID_REPO_URL" | "CODE_SHIFT_API_0007_FORBIDDEN" | "CODE_SHIFT_API_0008_DEFAULT_BRANCH" | "CODE_SHIFT_API_0009_INVALID_SPREADSHEET" | "CODE_SHIFT_API_0010_PR_LINK_NOT_EXISTS" | "CODE_SHIFT_API_0011_EMPTY_SPREADSHEET" | "CODE_SHIFT_API_0012_REPOSITORY_NOT_EXISTS_IN_SCM" | "CODE_SHIFT_API_0013_SCM_BRANCH_NOT_EXISTS_EXCEPTION" | "CODE_SHIFT_API_0014_ACCOUNT_NOT_FOUND_EXCEPTION" | "CODE_SHIFT_API_0015_INVALID_WORKFLOW_URL_EXCEPTION" | "CODE_SHIFT_API_0016_INVALID_ACTION_YAML_EXCEPTION" | "CODE_SHIFT_API_0017_FAIL_READING_ACTION_INPUTS_EXCEPTION" | "CODE_SHIFT_API_0018_MODULE_DISPATCHER_GENERIC_EXCEPTION" | "CODE_SHIFT_API_0019_GITHUB_DISPATCH_WORKFLOW_UNAUTHORIZED_EXCEPTION" | "CODE_SHIFT_API_0020_GITHUB_SAML_EXCEPTION" | "CODE_SHIFT_API_0021_GITHUB_AUTHORIZATION_ENCODING_EXCEPTION" | "CODE_SHIFT_API_0022_GITHUB_DISPATCH_WORKFLOW_NOT_FOUND_EXCEPTION" | "CODE_SHIFT_API_0023_GENERIC_FAILURE_SEARCHING_REPOSITORY_EXCEPTION" | "CODE_SHIFT_API_0024_COMPONENTS_MAX_SIZE_ALLOWED_EXCEPTION" | "CODE_SHIFT_API_3000_WORKFLOW_API_DISPATCH_FAILURE" | "CODE_SHIFT_API_3001_WORKFLOW_API_DISPATCH_FORBIDDEN" | "CODE_SHIFT_API_3009_WORKFLOW_API_DISPATCH_PARSE_ERROR" | "CODE_SHIFT_API_3010_AWS_SECRET_MANAGER_GET_SECRET_FAILURE" | "CODE_SHIFT_API_3011_AWS_SECRET_MANAGER_PARSE_SECRET_ERROR" | "CODE_SHIFT_API_3100_SCM_GET_REPOSITORIES_FAILURE" | "CODE_SHIFT_API_3110_SCM_GET_PULL_REQUEST_FAILURE" | "CODE_SHIFT_API_3120_SCM_GET_BRANCHES_FAILURE" | "CODE_SHIFT_API_3130_SCM_GET_SCM_REPOSITORY_FETCH_FAILURE" | "CODE_SHIFT_API_3131_SCM_REPOSITORY_NOT_FOUND" | "CODE_SHIFT_API_3140_SCM_GET_BRANCH_FAILURE" | "CODE_SHIFT_API_3142_SCM_GET_BRANCHES_NOT_FOUND" | "CODE_SHIFT_API_3150_SCM_GET_REPOSITORY_FILE_FAILURE" | "CODE_SHIFT_API_3151_SCM_GET_REPOSITORY_FILE_NOT_FOUND" | "CODE_SHIFT_API_3160_SCM_GET_REPOSITORY_FILE_FAILURE" | "CODE_SHIFT_API_3500_CONTENT_API_GET_WORKFLOW_VERSION_FAILURE" | "CODE_SHIFT_API_4000_ACCOUNTS_API_PAT_FAILURE" | "CODE_SHIFT_API_4001_ACCOUNTS_API_PAT_FORBIDDEN" | "CODE_SHIFT_API_4002_ACCOUNTS_API_PAT_NOT_FOUND" | "CODE_SHIFT_API_4009_ACCOUNTS_API_PAT_PARSE_ERROR" | "CODE_SHIFT_API_4010_GET_SCM_CREDENTIALS_FAILURE" | "CODE_SHIFT_API_4011_GET_SCM_CREDENTIALS_FORBIDDEN" | "CODE_SHIFT_API_4012_GET_SCM_CREDENTIALS_NOT_FOUND" | "CODE_SHIFT_API_4019_GET_SCM_CREDENTIALS_PARSE_ERROR" | "CODE_SHIFT_API_6000_IAM_GENERATE_TOKEN_FAILURE" | "CODE_SHIFT_API_6000_IAM_INTROSPECT_TOKEN_FAILURE";
|
|
64
64
|
export type BadRequestExceptionTypes = "CODE_SHIFT_API_1001_DECODE_JWT_ERROR" | "CODE_SHIFT_API_2001_BAD_REQUEST_REQUIRED_FIELD" | "CODE_SHIFT_API_2002_BAD_REQUEST_EMPTY_FIELD_NOT_ALLOWED" | "CODE_SHIFT_API_2003_BAD_REQUEST_TYPE_FIELD_NOT_ALLOWED" | "CODE_SHIFT_API_2004_BAD_REQUEST_VALUE_FIELD_NOT_ALLOWED" | "CODE_SHIFT_API_2005_BAD_REQUEST_VALUE_FIELD_MAX_LENGTH" | "CODE_SHIFT_API_2006_BAD_REQUEST_VALUE_FIELD_MIN_LENGTH" | "CODE_SHIFT_API_2007_BAD_REQUEST_VALUE_REGEX_DOESNT_MATCH" | "CODE_SHIFT_API_2008_BAD_REQUEST_VALUE_FIELD_NUMBER_NOT_LT" | "CODE_SHIFT_API_2100_CREATE_BODY_REPO_AND_REPO_CREATE_ACTION" | "CODE_SHIFT_API_2101_CREATE_BODY_NOT_REPO_AND_NOT_REPO_CREATE_ACTION" | "CODE_SHIFT_API_2102_BAD_REQUEST_DATE_MAX_INTERVAL" | "CODE_SHIFT_API_2103_BAD_REQUEST_INVALID_PAGE" | "CODE_SHIFT_API_2104_BAD_REQUEST_DUPLICATED_ALIAS" | "CODE_SHIFT_API_2105_BAD_REQUEST_INVALID_REPO_URL" | "CODE_SHIFT_API_2110_BAD_REQUEST_PUT_STEP_STATUS_COMPLETED_WITHOUT_CONCLUSION" | "CODE_SHIFT_API_2112_BAD_REQUEST_PUT_STEP_STATUS_NOT_COMPLETED_AND_CONCLUSION_DEFINED" | "CODE_SHIFT_API_2113_BAD_REQUEST_PUT_STEP_STATUS_COMPLETED_AND_COMPLETED_AT_NOT_DEFINED" | "CODE_SHIFT_API_2114_BAD_REQUEST_PUT_STEP_STATUS_IN_PROGRESS_AND_STARTED_AT_NOT_DEFINED" | "CODE_SHIFT_API_2115_BAD_REQUEST_PUT_STEP_COMPLETED_AT_DEFINED_AND_STATUS_NOT_COMPLETED" | "CODE_SHIFT_API_2116_BAD_REQUEST_PUT_STEP_STARTED_AT_DEFINED_AND_STATUS_PENDING" | "CODE_SHIFT_API_2117_BAD_REQUEST_PUT_STEP_LOG_DEFINED_AND_CONCLUSION_IS_NOT_FAILURE" | "CODE_SHIFT_API_2120_BAD_REQUEST_MULTIPLE_INTEGRATION" | "CODE_SHIFT_API_2121_BAD_REQUEST_EMPTY_INTEGRATION" | "CODE_SHIFT_API_2121_BAD_REQUEST_EMPTY_TARGET" | "CODE_SHIFT_API_2121_BAD_REQUEST_FILLED_TARGET" | "CODE_SHIFT_API_2999_BAD_REQUEST_UNMAPPED";
|
|
65
65
|
export type InvalidPayloadDetails = {
|
|
66
66
|
code: BadRequestExceptionTypes | ExceptionType;
|
|
@@ -105,9 +105,9 @@ export type ModuleResponse = {
|
|
|
105
105
|
/** Module description */
|
|
106
106
|
description: string;
|
|
107
107
|
/** Workflow name */
|
|
108
|
-
workflowName: string;
|
|
108
|
+
workflowName: string | null;
|
|
109
109
|
/** Studio */
|
|
110
|
-
studio: string;
|
|
110
|
+
studio: string | null;
|
|
111
111
|
/** Module modes */
|
|
112
112
|
modes: string[];
|
|
113
113
|
/** Module versions */
|
|
@@ -153,6 +153,69 @@ export type PutModuleRequest = {
|
|
|
153
153
|
} | null;
|
|
154
154
|
gitAction?: GitAction | null;
|
|
155
155
|
};
|
|
156
|
+
export type GetModuleResponse = {
|
|
157
|
+
/** Module ID */
|
|
158
|
+
id: string;
|
|
159
|
+
/** Module type */
|
|
160
|
+
"type": ModuleType;
|
|
161
|
+
/** Module name */
|
|
162
|
+
name: string;
|
|
163
|
+
/** Module description */
|
|
164
|
+
description: string;
|
|
165
|
+
/** Workflow name */
|
|
166
|
+
workflowName: string | null;
|
|
167
|
+
/** Studio */
|
|
168
|
+
studio: string | null;
|
|
169
|
+
/** Module modes */
|
|
170
|
+
modes: string[];
|
|
171
|
+
/** Module versions */
|
|
172
|
+
version: string | null;
|
|
173
|
+
/** Module studio */
|
|
174
|
+
constants?: {
|
|
175
|
+
[key: string]: any;
|
|
176
|
+
} | null;
|
|
177
|
+
gitAction?: GitAction | null;
|
|
178
|
+
};
|
|
179
|
+
export type ExternalItemsModel = {
|
|
180
|
+
source: string;
|
|
181
|
+
value: string;
|
|
182
|
+
label: string;
|
|
183
|
+
};
|
|
184
|
+
export type ConditionModel = {
|
|
185
|
+
variable: string;
|
|
186
|
+
operator: string;
|
|
187
|
+
value: any;
|
|
188
|
+
};
|
|
189
|
+
export type OutputModel = {
|
|
190
|
+
"from": string;
|
|
191
|
+
to: string;
|
|
192
|
+
};
|
|
193
|
+
export type InputModel = {
|
|
194
|
+
label: string;
|
|
195
|
+
name: string;
|
|
196
|
+
"type": string;
|
|
197
|
+
required: boolean;
|
|
198
|
+
pattern: string | null;
|
|
199
|
+
help: string | null;
|
|
200
|
+
"default": any | null;
|
|
201
|
+
items: string[] | null;
|
|
202
|
+
externalItems: ExternalItemsModel | null;
|
|
203
|
+
itemsValues: string[] | null;
|
|
204
|
+
condition: ConditionModel | null;
|
|
205
|
+
connectionInterfaceType: string | null;
|
|
206
|
+
outputs: OutputModel[] | null;
|
|
207
|
+
input: InputModel | null;
|
|
208
|
+
inputs: InputModel[] | null;
|
|
209
|
+
scope: string | null;
|
|
210
|
+
};
|
|
211
|
+
export type ComputedInputModel = {
|
|
212
|
+
name: string;
|
|
213
|
+
expression: string;
|
|
214
|
+
};
|
|
215
|
+
export type GetModuleInputsResponse = {
|
|
216
|
+
inputs: InputModel[];
|
|
217
|
+
computedInputs: ComputedInputModel[] | null;
|
|
218
|
+
};
|
|
156
219
|
export type Mode = "scan" | "fix";
|
|
157
220
|
export type ModuleDispatchRequest = {
|
|
158
221
|
/** Module mode */
|
|
@@ -183,7 +246,7 @@ export type IssuesRequest = {
|
|
|
183
246
|
};
|
|
184
247
|
export type TargetFilesRequest = {
|
|
185
248
|
fileName: string;
|
|
186
|
-
filePath
|
|
249
|
+
filePath?: string | null;
|
|
187
250
|
details?: string | null;
|
|
188
251
|
dependsOn?: DependsOnRequest[] | null;
|
|
189
252
|
issues?: IssuesRequest[] | null;
|
|
@@ -196,7 +259,7 @@ export type PutReportRequest = {
|
|
|
196
259
|
changedFilesCount?: number | null;
|
|
197
260
|
pullRequestLink?: string | null;
|
|
198
261
|
commitHash?: string | null;
|
|
199
|
-
targetFiles
|
|
262
|
+
targetFiles?: TargetFilesRequest[];
|
|
200
263
|
moduleVersion?: string | null;
|
|
201
264
|
customOutputs?: {
|
|
202
265
|
[key: string]: any;
|
|
@@ -284,6 +347,40 @@ export type GetReportResponse = {
|
|
|
284
347
|
} | null;
|
|
285
348
|
targetFiles: TargetFilesResponse[];
|
|
286
349
|
errorLog?: string | null;
|
|
350
|
+
exceptions: HttpErrorResponse[];
|
|
351
|
+
status: ReportStatus | null;
|
|
352
|
+
scmPullRequestData: PullRequestResponse | null;
|
|
353
|
+
inputs?: {
|
|
354
|
+
[key: string]: any;
|
|
355
|
+
} | null;
|
|
356
|
+
};
|
|
357
|
+
export type GetReportResponseRead = {
|
|
358
|
+
id: string;
|
|
359
|
+
"module": ModuleResponse2 | null;
|
|
360
|
+
application: ApplicationResponse | null;
|
|
361
|
+
execution: ExecutionResponse | null;
|
|
362
|
+
mode: string;
|
|
363
|
+
sourceBranch: string | null;
|
|
364
|
+
targetBranch?: string | null;
|
|
365
|
+
createdBy: UserResponse;
|
|
366
|
+
createdAt: string;
|
|
367
|
+
updatedAt: string;
|
|
368
|
+
filesCount: number | null;
|
|
369
|
+
totalFilesCount: number | null;
|
|
370
|
+
changedFilesCount: number | null;
|
|
371
|
+
analyzedFilesCount: number | null;
|
|
372
|
+
issuesFilesCount: number | null;
|
|
373
|
+
issuesCount: number | null;
|
|
374
|
+
commitHash: string | null;
|
|
375
|
+
pullRequestLink?: string | null;
|
|
376
|
+
programGroup: ProgramGroupResponse | null;
|
|
377
|
+
moduleVersion?: string | null;
|
|
378
|
+
customOutputs?: {
|
|
379
|
+
[key: string]: any;
|
|
380
|
+
} | null;
|
|
381
|
+
targetFiles: TargetFilesResponse[];
|
|
382
|
+
errorLog?: string | null;
|
|
383
|
+
exceptions: HttpErrorResponseRead[];
|
|
287
384
|
status: ReportStatus | null;
|
|
288
385
|
scmPullRequestData: PullRequestResponse | null;
|
|
289
386
|
inputs?: {
|
|
@@ -325,6 +422,24 @@ export type ReportResponse = {
|
|
|
325
422
|
issuesCount: number | null;
|
|
326
423
|
pullRequestLink?: string | null;
|
|
327
424
|
errorLog?: string | null;
|
|
425
|
+
exceptions: HttpErrorResponse[];
|
|
426
|
+
status: ReportStatus | null;
|
|
427
|
+
};
|
|
428
|
+
export type ReportResponseRead = {
|
|
429
|
+
id: string;
|
|
430
|
+
"module": ModuleResponse3;
|
|
431
|
+
execution: ExecutionResponse | null;
|
|
432
|
+
mode: string;
|
|
433
|
+
sourceBranch: string;
|
|
434
|
+
targetBranch?: string | null;
|
|
435
|
+
createdBy: UserResponse2;
|
|
436
|
+
createdAt: string;
|
|
437
|
+
updatedAt: string;
|
|
438
|
+
filesCount: number | null;
|
|
439
|
+
issuesCount: number | null;
|
|
440
|
+
pullRequestLink?: string | null;
|
|
441
|
+
errorLog?: string | null;
|
|
442
|
+
exceptions: HttpErrorResponseRead[];
|
|
328
443
|
status: ReportStatus | null;
|
|
329
444
|
};
|
|
330
445
|
export type ListRepositoryReportResponse = {
|
|
@@ -335,6 +450,14 @@ export type ListRepositoryReportResponse = {
|
|
|
335
450
|
/** Last evaluated key */
|
|
336
451
|
lastEvaluatedKey: string | null;
|
|
337
452
|
};
|
|
453
|
+
export type ListRepositoryReportResponseRead = {
|
|
454
|
+
/** List of reports */
|
|
455
|
+
items: ReportResponseRead[];
|
|
456
|
+
/** Number of reports */
|
|
457
|
+
itemsCount: number;
|
|
458
|
+
/** Last evaluated key */
|
|
459
|
+
lastEvaluatedKey: string | null;
|
|
460
|
+
};
|
|
338
461
|
export type BodyCreateReposBatchServiceV1ReposBatchPost = {
|
|
339
462
|
file: Blob;
|
|
340
463
|
};
|
|
@@ -363,6 +486,24 @@ export type ReportResponse2 = {
|
|
|
363
486
|
issuesCount: number | null;
|
|
364
487
|
pullRequestLink?: string | null;
|
|
365
488
|
errorLog?: string | null;
|
|
489
|
+
exceptions: HttpErrorResponse[];
|
|
490
|
+
status: ReportStatus | null;
|
|
491
|
+
};
|
|
492
|
+
export type ReportResponseRead2 = {
|
|
493
|
+
id: string;
|
|
494
|
+
execution: ExecutionResponse | null;
|
|
495
|
+
mode: string;
|
|
496
|
+
moduleId: string;
|
|
497
|
+
sourceBranch: string;
|
|
498
|
+
targetBranch?: string | null;
|
|
499
|
+
createdBy: UserResponse3 | null;
|
|
500
|
+
createdAt: string;
|
|
501
|
+
updatedAt: string;
|
|
502
|
+
filesCount: number | null;
|
|
503
|
+
issuesCount: number | null;
|
|
504
|
+
pullRequestLink?: string | null;
|
|
505
|
+
errorLog?: string | null;
|
|
506
|
+
exceptions: HttpErrorResponseRead[];
|
|
366
507
|
status: ReportStatus | null;
|
|
367
508
|
};
|
|
368
509
|
export type RepositoryResponse = {
|
|
@@ -377,6 +518,18 @@ export type RepositoryResponse = {
|
|
|
377
518
|
url: string;
|
|
378
519
|
defaultBranch: string;
|
|
379
520
|
};
|
|
521
|
+
export type RepositoryResponseRead = {
|
|
522
|
+
/** Repository ID */
|
|
523
|
+
id: string;
|
|
524
|
+
/** Repository creation date */
|
|
525
|
+
createdAt?: string | null;
|
|
526
|
+
/** Repository creation user */
|
|
527
|
+
createdBy?: string | null;
|
|
528
|
+
lastModuleReport: ReportResponseRead2 | null;
|
|
529
|
+
tags: string[];
|
|
530
|
+
url: string;
|
|
531
|
+
defaultBranch: string;
|
|
532
|
+
};
|
|
380
533
|
export type ListRepositoryResponse = {
|
|
381
534
|
/** List of applications */
|
|
382
535
|
items: RepositoryResponse[];
|
|
@@ -385,6 +538,14 @@ export type ListRepositoryResponse = {
|
|
|
385
538
|
/** Last evaluated key */
|
|
386
539
|
lastEvaluatedKey?: string | null;
|
|
387
540
|
};
|
|
541
|
+
export type ListRepositoryResponseRead = {
|
|
542
|
+
/** List of applications */
|
|
543
|
+
items: RepositoryResponseRead[];
|
|
544
|
+
/** Number of applications */
|
|
545
|
+
itemsCount: number;
|
|
546
|
+
/** Last evaluated key */
|
|
547
|
+
lastEvaluatedKey?: string | null;
|
|
548
|
+
};
|
|
388
549
|
export type ListBranchesResponse = {
|
|
389
550
|
/** List of all branches */
|
|
390
551
|
branches: string[];
|
|
@@ -475,6 +636,22 @@ export type ReportResponse3 = {
|
|
|
475
636
|
issuesCount: number | null;
|
|
476
637
|
pullRequestLink?: string | null;
|
|
477
638
|
errorLog?: string | null;
|
|
639
|
+
exceptions: HttpErrorResponse[];
|
|
640
|
+
status: ReportStatus | null;
|
|
641
|
+
};
|
|
642
|
+
export type ReportResponseRead3 = {
|
|
643
|
+
id: string;
|
|
644
|
+
execution: ExecutionResponse | null;
|
|
645
|
+
mode: string;
|
|
646
|
+
moduleId: string;
|
|
647
|
+
createdBy: UserResponse4 | null;
|
|
648
|
+
createdAt: string;
|
|
649
|
+
updatedAt: string;
|
|
650
|
+
filesCount: number | null;
|
|
651
|
+
issuesCount: number | null;
|
|
652
|
+
pullRequestLink?: string | null;
|
|
653
|
+
errorLog?: string | null;
|
|
654
|
+
exceptions: HttpErrorResponseRead[];
|
|
478
655
|
status: ReportStatus | null;
|
|
479
656
|
};
|
|
480
657
|
export type ProgramGroupResponse2 = {
|
|
@@ -489,10 +666,26 @@ export type ProgramGroupResponse2 = {
|
|
|
489
666
|
updatedAt: string;
|
|
490
667
|
lastModuleReport: ReportResponse3 | null;
|
|
491
668
|
};
|
|
669
|
+
export type ProgramGroupResponseRead = {
|
|
670
|
+
id: string;
|
|
671
|
+
name: string;
|
|
672
|
+
integrationId: string | null;
|
|
673
|
+
tags: string[];
|
|
674
|
+
components: any[];
|
|
675
|
+
accountId: string;
|
|
676
|
+
createdBy: string | null;
|
|
677
|
+
createdAt: string;
|
|
678
|
+
updatedAt: string;
|
|
679
|
+
lastModuleReport: ReportResponseRead3 | null;
|
|
680
|
+
};
|
|
492
681
|
export type ListProgramGroupResponse = {
|
|
493
682
|
items: ProgramGroupResponse2[];
|
|
494
683
|
itemsCount: number;
|
|
495
684
|
};
|
|
685
|
+
export type ListProgramGroupResponseRead = {
|
|
686
|
+
items: ProgramGroupResponseRead[];
|
|
687
|
+
itemsCount: number;
|
|
688
|
+
};
|
|
496
689
|
export type ProgramGroupResponse3 = {
|
|
497
690
|
id: string;
|
|
498
691
|
name: string;
|
|
@@ -534,6 +727,22 @@ export type ReportResponse4 = {
|
|
|
534
727
|
issuesCount: number | null;
|
|
535
728
|
pullRequestLink?: string | null;
|
|
536
729
|
errorLog?: string | null;
|
|
730
|
+
exceptions: HttpErrorResponse[];
|
|
731
|
+
status: ReportStatus | null;
|
|
732
|
+
};
|
|
733
|
+
export type ReportResponseRead4 = {
|
|
734
|
+
id: string;
|
|
735
|
+
"module": ModuleResponse4;
|
|
736
|
+
execution: ExecutionResponse | null;
|
|
737
|
+
mode: string;
|
|
738
|
+
createdBy: UserResponse5;
|
|
739
|
+
createdAt: string;
|
|
740
|
+
updatedAt: string;
|
|
741
|
+
filesCount: number | null;
|
|
742
|
+
issuesCount: number | null;
|
|
743
|
+
pullRequestLink?: string | null;
|
|
744
|
+
errorLog?: string | null;
|
|
745
|
+
exceptions: HttpErrorResponseRead[];
|
|
537
746
|
status: ReportStatus | null;
|
|
538
747
|
};
|
|
539
748
|
export type ListProgramGroupReportResponse = {
|
|
@@ -542,6 +751,12 @@ export type ListProgramGroupReportResponse = {
|
|
|
542
751
|
/** Number of reports */
|
|
543
752
|
itemsCount: number;
|
|
544
753
|
};
|
|
754
|
+
export type ListProgramGroupReportResponseRead = {
|
|
755
|
+
/** List of reports */
|
|
756
|
+
items: ReportResponseRead4[];
|
|
757
|
+
/** Number of reports */
|
|
758
|
+
itemsCount: number;
|
|
759
|
+
};
|
|
545
760
|
export type TagResponse = {
|
|
546
761
|
name: string;
|
|
547
762
|
};
|
|
@@ -574,6 +789,8 @@ export type RepositoryLastReportStatusResponse = {
|
|
|
574
789
|
totalFilesIssues: number | null;
|
|
575
790
|
totalFilesChanged: number | null;
|
|
576
791
|
totalIssues: number | null;
|
|
792
|
+
pullRequestLink: string | null;
|
|
793
|
+
merged: boolean | null;
|
|
577
794
|
};
|
|
578
795
|
export type AnalyticsRepositoryLastReportStatusResponse = {
|
|
579
796
|
totalFiles?: number;
|
|
@@ -582,6 +799,8 @@ export type AnalyticsRepositoryLastReportStatusResponse = {
|
|
|
582
799
|
totalFilesChanged?: number;
|
|
583
800
|
totalIssues?: number;
|
|
584
801
|
items: RepositoryLastReportStatusResponse[];
|
|
802
|
+
totalPullRequests?: number;
|
|
803
|
+
totalMergedPullRequests?: number;
|
|
585
804
|
totalItems?: number;
|
|
586
805
|
};
|
|
587
806
|
export type RepositoryUsageResponse = {
|
|
@@ -592,6 +811,8 @@ export type RepositoryUsageResponse = {
|
|
|
592
811
|
totalFix?: number;
|
|
593
812
|
totalFixSuccess?: number;
|
|
594
813
|
totalFixFailure?: number;
|
|
814
|
+
totalPullRequests?: number;
|
|
815
|
+
mergedPullRequests?: number;
|
|
595
816
|
};
|
|
596
817
|
export type AnalyticsRepositoryUsageResponse = {
|
|
597
818
|
totalScan?: number;
|
|
@@ -600,6 +821,8 @@ export type AnalyticsRepositoryUsageResponse = {
|
|
|
600
821
|
totalFix?: number;
|
|
601
822
|
totalFixSuccess?: number;
|
|
602
823
|
totalFixFailure?: number;
|
|
824
|
+
totalPullRequests?: number;
|
|
825
|
+
mergedPullRequests?: number;
|
|
603
826
|
items: RepositoryUsageResponse[];
|
|
604
827
|
totalItems?: number;
|
|
605
828
|
};
|
|
@@ -663,6 +886,102 @@ export type AnalyticsProgramGroupsUsageResponse = {
|
|
|
663
886
|
items: ProgramGroupsUsageResponse[];
|
|
664
887
|
totalItems?: number;
|
|
665
888
|
};
|
|
889
|
+
export type ProgramGroupsDetailsResponse = {
|
|
890
|
+
programGroupName: string;
|
|
891
|
+
programGroupTags?: string | null;
|
|
892
|
+
integrationName?: string | null;
|
|
893
|
+
programGroupCreatedByName?: string | null;
|
|
894
|
+
programGroupCreatedByEmail?: string | null;
|
|
895
|
+
moduleName: string;
|
|
896
|
+
reportInputs?: string | null;
|
|
897
|
+
mode: string;
|
|
898
|
+
reportCreatedAt: string;
|
|
899
|
+
reportCreatedByName?: string | null;
|
|
900
|
+
reportCreatedByEmail?: string | null;
|
|
901
|
+
reportOutputs?: string | null;
|
|
902
|
+
executionStartedAt?: string | null;
|
|
903
|
+
executionCompletedAt?: string | null;
|
|
904
|
+
processingTimeSeconds?: number | null;
|
|
905
|
+
totalFilesCount?: number;
|
|
906
|
+
analyzedFilesCount?: number;
|
|
907
|
+
issuesFilesCount?: number;
|
|
908
|
+
changedFilesCount?: number;
|
|
909
|
+
issuesCount?: number;
|
|
910
|
+
};
|
|
911
|
+
export type AnalyticsProgramGroupsDetailsResponse = {
|
|
912
|
+
programsCount?: number;
|
|
913
|
+
totalFilesCount?: number;
|
|
914
|
+
analyzedFilesCount?: number;
|
|
915
|
+
issuesFilesCount?: number;
|
|
916
|
+
changedFilesCount?: number;
|
|
917
|
+
issuesCount?: number;
|
|
918
|
+
processingTime95Percentile?: number | null;
|
|
919
|
+
totalItems?: number;
|
|
920
|
+
items?: ProgramGroupsDetailsResponse[];
|
|
921
|
+
};
|
|
922
|
+
export type RepositoryDetailedReportItemResponse = {
|
|
923
|
+
analyzedFilesCount?: number;
|
|
924
|
+
changedFilesCount?: number;
|
|
925
|
+
errorLog?: string | null;
|
|
926
|
+
executionCompletedAt?: string | null;
|
|
927
|
+
executionConclusion?: string | null;
|
|
928
|
+
executionStartedAt?: string | null;
|
|
929
|
+
executionStatus?: string | null;
|
|
930
|
+
inputs?: string;
|
|
931
|
+
issuesCount?: number;
|
|
932
|
+
issuesFilesCount?: number;
|
|
933
|
+
mode?: string | null;
|
|
934
|
+
moduleName?: string | null;
|
|
935
|
+
moduleVersion?: string | null;
|
|
936
|
+
processingTimeSeconds?: number | null;
|
|
937
|
+
pullRequestLink?: string | null;
|
|
938
|
+
reportCreatedAt?: string | null;
|
|
939
|
+
reportCreatedByEmail?: string | null;
|
|
940
|
+
reportCreatedByName?: string | null;
|
|
941
|
+
repositoryCreatedByEmail?: string | null;
|
|
942
|
+
repositoryCreatedByName?: string | null;
|
|
943
|
+
repositoryTags?: string;
|
|
944
|
+
repositoryUrl: string;
|
|
945
|
+
sourceBranch?: string | null;
|
|
946
|
+
targetBranch?: string | null;
|
|
947
|
+
totalFilesCount?: number;
|
|
948
|
+
status?: string | null;
|
|
949
|
+
};
|
|
950
|
+
export type AnalyticsRepositoryDetailedReportResponse = {
|
|
951
|
+
reposCount?: number;
|
|
952
|
+
totalFilesCount?: number;
|
|
953
|
+
analyzedFilesCount?: number;
|
|
954
|
+
issuesFilesCount?: number;
|
|
955
|
+
changedFilesCount?: number;
|
|
956
|
+
issuesCount?: number;
|
|
957
|
+
processingTime95Percentile?: number | null;
|
|
958
|
+
totalItems?: number;
|
|
959
|
+
items?: RepositoryDetailedReportItemResponse[];
|
|
960
|
+
};
|
|
961
|
+
export type ProgramGroupsTargetDetailsResponse = {
|
|
962
|
+
programGroupName: string;
|
|
963
|
+
programGroupTags?: string | null;
|
|
964
|
+
mode: string;
|
|
965
|
+
moduleName: string;
|
|
966
|
+
reportCreatedAt: string;
|
|
967
|
+
executionStartedAt?: string | null;
|
|
968
|
+
executionCompletedAt?: string | null;
|
|
969
|
+
componentAppName: string;
|
|
970
|
+
componentName: string;
|
|
971
|
+
componentType: string;
|
|
972
|
+
totalIssues?: number;
|
|
973
|
+
changedFilesCount?: number;
|
|
974
|
+
reportOutputs?: string | null;
|
|
975
|
+
aiAdjusted?: string | null;
|
|
976
|
+
changemanPackage?: string | null;
|
|
977
|
+
};
|
|
978
|
+
export type AnalyticsProgramGroupsTargetDetailsResponse = {
|
|
979
|
+
totalComponents?: number;
|
|
980
|
+
totalIssues?: number;
|
|
981
|
+
totalChangedFiles?: number;
|
|
982
|
+
totalItems?: number;
|
|
983
|
+
items?: ProgramGroupsTargetDetailsResponse[];
|
|
984
|
+
};
|
|
666
985
|
export type UserResponse6 = {
|
|
667
986
|
id: string;
|
|
668
987
|
name: string;
|
|
@@ -672,6 +991,13 @@ export type ListUserResponse = {
|
|
|
672
991
|
items: UserResponse6[];
|
|
673
992
|
itemsCount: number;
|
|
674
993
|
};
|
|
994
|
+
export type SearchReposInScmRequest = {
|
|
995
|
+
repository_name?: string;
|
|
996
|
+
code_term?: string | null;
|
|
997
|
+
};
|
|
998
|
+
export type SearchReposInScmResponse = {
|
|
999
|
+
search_id: string;
|
|
1000
|
+
};
|
|
675
1001
|
/**
|
|
676
1002
|
* Check Role Route
|
|
677
1003
|
*/
|
|
@@ -697,7 +1023,7 @@ export function checkRoleRouteV1RolesRoleGet({ role, authorization }: {
|
|
|
697
1023
|
*/
|
|
698
1024
|
export function createModuleServiceV1ModulesPost({ authorization, xAccountSlug, createModuleRequest }: {
|
|
699
1025
|
authorization: string;
|
|
700
|
-
xAccountSlug?:
|
|
1026
|
+
xAccountSlug?: string;
|
|
701
1027
|
createModuleRequest: CreateModuleRequest;
|
|
702
1028
|
}, opts?: Oazapfts.RequestOpts) {
|
|
703
1029
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
@@ -738,7 +1064,7 @@ export function listModulesServiceV1ModulesGet({ pageSize, moduleType, page, las
|
|
|
738
1064
|
moduleType?: ModuleType | null;
|
|
739
1065
|
page?: number;
|
|
740
1066
|
lastEvaluatedKey?: string;
|
|
741
|
-
xAccountSlug?:
|
|
1067
|
+
xAccountSlug?: string;
|
|
742
1068
|
authorization: string;
|
|
743
1069
|
}, opts?: Oazapfts.RequestOpts) {
|
|
744
1070
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
@@ -780,7 +1106,7 @@ export function listModulesServiceV1ModulesGet({ pageSize, moduleType, page, las
|
|
|
780
1106
|
export function deleteModuleServiceV1ModulesModuleIdDelete({ moduleId, authorization, xAccountSlug }: {
|
|
781
1107
|
moduleId: string;
|
|
782
1108
|
authorization: string;
|
|
783
|
-
xAccountSlug?:
|
|
1109
|
+
xAccountSlug?: string;
|
|
784
1110
|
}, opts?: Oazapfts.RequestOpts) {
|
|
785
1111
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
786
1112
|
status: 200;
|
|
@@ -817,7 +1143,7 @@ export function deleteModuleServiceV1ModulesModuleIdDelete({ moduleId, authoriza
|
|
|
817
1143
|
export function updateModuleServiceV1ModulesModuleIdPut({ moduleId, authorization, xAccountSlug, putModuleRequest }: {
|
|
818
1144
|
moduleId: string;
|
|
819
1145
|
authorization: string;
|
|
820
|
-
xAccountSlug?:
|
|
1146
|
+
xAccountSlug?: string;
|
|
821
1147
|
putModuleRequest: PutModuleRequest;
|
|
822
1148
|
}, opts?: Oazapfts.RequestOpts) {
|
|
823
1149
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
@@ -850,6 +1176,74 @@ export function updateModuleServiceV1ModulesModuleIdPut({ moduleId, authorizatio
|
|
|
850
1176
|
})
|
|
851
1177
|
})));
|
|
852
1178
|
}
|
|
1179
|
+
/**
|
|
1180
|
+
* Get Module
|
|
1181
|
+
*/
|
|
1182
|
+
export function getModuleV1ModulesModuleIdGet({ moduleId, authorization }: {
|
|
1183
|
+
moduleId: string;
|
|
1184
|
+
authorization: string;
|
|
1185
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1186
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1187
|
+
status: 200;
|
|
1188
|
+
data: GetModuleResponse;
|
|
1189
|
+
} | {
|
|
1190
|
+
status: 400;
|
|
1191
|
+
data: HttpErrorResponseRead;
|
|
1192
|
+
} | {
|
|
1193
|
+
status: 401;
|
|
1194
|
+
data: HttpErrorResponseRead;
|
|
1195
|
+
} | {
|
|
1196
|
+
status: 404;
|
|
1197
|
+
data: HttpErrorResponseRead;
|
|
1198
|
+
} | {
|
|
1199
|
+
status: 422;
|
|
1200
|
+
} | {
|
|
1201
|
+
status: 500;
|
|
1202
|
+
data: HttpErrorResponseRead;
|
|
1203
|
+
} | {
|
|
1204
|
+
status: 503;
|
|
1205
|
+
data: HttpErrorResponseRead;
|
|
1206
|
+
}>(`/v1/modules/${encodeURIComponent(moduleId)}`, {
|
|
1207
|
+
...opts,
|
|
1208
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1209
|
+
authorization
|
|
1210
|
+
})
|
|
1211
|
+
}));
|
|
1212
|
+
}
|
|
1213
|
+
/**
|
|
1214
|
+
* Get Module Inputs
|
|
1215
|
+
*/
|
|
1216
|
+
export function getModuleInputsV1ModulesModuleIdInputsGet({ moduleId, authorization }: {
|
|
1217
|
+
moduleId: string;
|
|
1218
|
+
authorization: string;
|
|
1219
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1220
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1221
|
+
status: 200;
|
|
1222
|
+
data: GetModuleInputsResponse;
|
|
1223
|
+
} | {
|
|
1224
|
+
status: 400;
|
|
1225
|
+
data: HttpErrorResponseRead;
|
|
1226
|
+
} | {
|
|
1227
|
+
status: 401;
|
|
1228
|
+
data: HttpErrorResponseRead;
|
|
1229
|
+
} | {
|
|
1230
|
+
status: 404;
|
|
1231
|
+
data: HttpErrorResponseRead;
|
|
1232
|
+
} | {
|
|
1233
|
+
status: 422;
|
|
1234
|
+
} | {
|
|
1235
|
+
status: 500;
|
|
1236
|
+
data: HttpErrorResponseRead;
|
|
1237
|
+
} | {
|
|
1238
|
+
status: 503;
|
|
1239
|
+
data: HttpErrorResponseRead;
|
|
1240
|
+
}>(`/v1/modules/${encodeURIComponent(moduleId)}/inputs`, {
|
|
1241
|
+
...opts,
|
|
1242
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1243
|
+
authorization
|
|
1244
|
+
})
|
|
1245
|
+
}));
|
|
1246
|
+
}
|
|
853
1247
|
/**
|
|
854
1248
|
* Dispatch Module Service
|
|
855
1249
|
*/
|
|
@@ -932,7 +1326,7 @@ export function getReportV1ReportsReportIdGet({ reportId, authorization }: {
|
|
|
932
1326
|
}, opts?: Oazapfts.RequestOpts) {
|
|
933
1327
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
934
1328
|
status: 200;
|
|
935
|
-
data:
|
|
1329
|
+
data: GetReportResponseRead;
|
|
936
1330
|
} | {
|
|
937
1331
|
status: 400;
|
|
938
1332
|
data: HttpErrorResponseRead;
|
|
@@ -1105,7 +1499,7 @@ export function listRepositoryReportV1ReposRepositoryIdReportsGet({ repositoryId
|
|
|
1105
1499
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1106
1500
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1107
1501
|
status: 200;
|
|
1108
|
-
data:
|
|
1502
|
+
data: ListRepositoryReportResponseRead;
|
|
1109
1503
|
} | {
|
|
1110
1504
|
status: 400;
|
|
1111
1505
|
data: HttpErrorResponseRead;
|
|
@@ -1223,14 +1617,14 @@ export function listRepositoryServiceV1ReposGet({ pageSize, page, lastEvaluatedK
|
|
|
1223
1617
|
moduleId?: string;
|
|
1224
1618
|
createdByEmail?: string | null;
|
|
1225
1619
|
reportByEmail?: string | null;
|
|
1226
|
-
orderBy?:
|
|
1227
|
-
orderDirection?:
|
|
1620
|
+
orderBy?: "repository.url" | "repository.created_at" | "repository.updated_at" | "report.issues_count" | "report.total_files_count" | "report.analyzed_files_count" | "report.issues_files_count" | "report.created_at" | "report.updated_at" | "execution.status";
|
|
1621
|
+
orderDirection?: "asc" | "desc" | "ASC" | "DESC";
|
|
1228
1622
|
tags?: string[] | null;
|
|
1229
1623
|
authorization: string;
|
|
1230
1624
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1231
1625
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1232
1626
|
status: 200;
|
|
1233
|
-
data:
|
|
1627
|
+
data: ListRepositoryResponseRead;
|
|
1234
1628
|
} | {
|
|
1235
1629
|
status: 400;
|
|
1236
1630
|
data: HttpErrorResponseRead;
|
|
@@ -1267,15 +1661,22 @@ export function listRepositoryServiceV1ReposGet({ pageSize, page, lastEvaluatedK
|
|
|
1267
1661
|
}));
|
|
1268
1662
|
}
|
|
1269
1663
|
/**
|
|
1270
|
-
* List
|
|
1664
|
+
* List Repository Download Service
|
|
1271
1665
|
*/
|
|
1272
|
-
export function
|
|
1273
|
-
|
|
1666
|
+
export function listRepositoryDownloadServiceV1ReposDownloadGet({ filter, moduleId, createdByEmail, reportByEmail, orderBy, orderDirection, tags, extension, authorization }: {
|
|
1667
|
+
filter?: string;
|
|
1668
|
+
moduleId?: string;
|
|
1669
|
+
createdByEmail?: string | null;
|
|
1670
|
+
reportByEmail?: string | null;
|
|
1671
|
+
orderBy?: "repository.url" | "repository.created_at" | "repository.updated_at" | "report.issues_count" | "report.total_files_count" | "report.analyzed_files_count" | "report.issues_files_count" | "report.created_at" | "report.updated_at" | "execution.status";
|
|
1672
|
+
orderDirection?: "asc" | "desc" | "ASC" | "DESC";
|
|
1673
|
+
tags?: string[] | null;
|
|
1674
|
+
extension?: "csv" | "xlsx";
|
|
1274
1675
|
authorization: string;
|
|
1275
1676
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1276
1677
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1277
1678
|
status: 200;
|
|
1278
|
-
data:
|
|
1679
|
+
data: any;
|
|
1279
1680
|
} | {
|
|
1280
1681
|
status: 400;
|
|
1281
1682
|
data: HttpErrorResponseRead;
|
|
@@ -1293,12 +1694,55 @@ export function listBranchesServiceV1ReposBranchesGet({ repositoryUrl, authoriza
|
|
|
1293
1694
|
} | {
|
|
1294
1695
|
status: 503;
|
|
1295
1696
|
data: HttpErrorResponseRead;
|
|
1296
|
-
}>(`/v1/repos/
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1697
|
+
}>(`/v1/repos/download${QS.query(QS.explode({
|
|
1698
|
+
filter,
|
|
1699
|
+
moduleId,
|
|
1700
|
+
createdByEmail,
|
|
1701
|
+
reportByEmail,
|
|
1702
|
+
orderBy,
|
|
1703
|
+
orderDirection,
|
|
1704
|
+
tags,
|
|
1705
|
+
extension
|
|
1706
|
+
}))}`, {
|
|
1707
|
+
...opts,
|
|
1708
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1709
|
+
authorization
|
|
1710
|
+
})
|
|
1711
|
+
}));
|
|
1712
|
+
}
|
|
1713
|
+
/**
|
|
1714
|
+
* List Branches Service
|
|
1715
|
+
*/
|
|
1716
|
+
export function listBranchesServiceV1ReposBranchesGet({ repositoryUrl, authorization }: {
|
|
1717
|
+
repositoryUrl: string;
|
|
1718
|
+
authorization: string;
|
|
1719
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1720
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1721
|
+
status: 200;
|
|
1722
|
+
data: ListBranchesResponse;
|
|
1723
|
+
} | {
|
|
1724
|
+
status: 400;
|
|
1725
|
+
data: HttpErrorResponseRead;
|
|
1726
|
+
} | {
|
|
1727
|
+
status: 401;
|
|
1728
|
+
data: HttpErrorResponseRead;
|
|
1729
|
+
} | {
|
|
1730
|
+
status: 404;
|
|
1731
|
+
data: HttpErrorResponseRead;
|
|
1732
|
+
} | {
|
|
1733
|
+
status: 422;
|
|
1734
|
+
} | {
|
|
1735
|
+
status: 500;
|
|
1736
|
+
data: HttpErrorResponseRead;
|
|
1737
|
+
} | {
|
|
1738
|
+
status: 503;
|
|
1739
|
+
data: HttpErrorResponseRead;
|
|
1740
|
+
}>(`/v1/repos/branches${QS.query(QS.explode({
|
|
1741
|
+
repositoryUrl
|
|
1742
|
+
}))}`, {
|
|
1743
|
+
...opts,
|
|
1744
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1745
|
+
authorization
|
|
1302
1746
|
})
|
|
1303
1747
|
}));
|
|
1304
1748
|
}
|
|
@@ -1311,7 +1755,7 @@ export function getRepositoryByIdServiceV1ReposRepositoryIdGet({ repositoryId, a
|
|
|
1311
1755
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1312
1756
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1313
1757
|
status: 200;
|
|
1314
|
-
data:
|
|
1758
|
+
data: RepositoryResponseRead;
|
|
1315
1759
|
} | {
|
|
1316
1760
|
status: 400;
|
|
1317
1761
|
data: HttpErrorResponseRead;
|
|
@@ -1637,14 +2081,14 @@ export function listProgramGroupServiceV1ProgramGroupsGet({ moduleId, createdByE
|
|
|
1637
2081
|
name?: string | null;
|
|
1638
2082
|
pageSize?: number;
|
|
1639
2083
|
page?: number;
|
|
1640
|
-
orderBy?:
|
|
1641
|
-
orderDirection?:
|
|
2084
|
+
orderBy?: "program_group.name" | "program_group.created_at" | "program_group.updated_at" | "report.issues_count" | "report.total_files_count" | "report.analyzed_files_count" | "report.issues_files_count" | "report.created_at" | "report.updated_at" | "execution.status";
|
|
2085
|
+
orderDirection?: "asc" | "desc" | "ASC" | "DESC";
|
|
1642
2086
|
integrationId?: string;
|
|
1643
2087
|
authorization: string;
|
|
1644
2088
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1645
2089
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1646
2090
|
status: 200;
|
|
1647
|
-
data:
|
|
2091
|
+
data: ListProgramGroupResponseRead;
|
|
1648
2092
|
} | {
|
|
1649
2093
|
status: 422;
|
|
1650
2094
|
data: HttpValidationError;
|
|
@@ -1666,6 +2110,44 @@ export function listProgramGroupServiceV1ProgramGroupsGet({ moduleId, createdByE
|
|
|
1666
2110
|
})
|
|
1667
2111
|
}));
|
|
1668
2112
|
}
|
|
2113
|
+
/**
|
|
2114
|
+
* List Program Group Download Service
|
|
2115
|
+
*/
|
|
2116
|
+
export function listProgramGroupDownloadServiceV1ProgramGroupsDownloadGet({ moduleId, createdByEmail, reportByEmail, tags, name, orderBy, orderDirection, integrationId, extension, authorization }: {
|
|
2117
|
+
moduleId?: string | null;
|
|
2118
|
+
createdByEmail?: string | null;
|
|
2119
|
+
reportByEmail?: string | null;
|
|
2120
|
+
tags?: string[] | null;
|
|
2121
|
+
name?: string | null;
|
|
2122
|
+
orderBy?: "program_group.name" | "program_group.created_at" | "program_group.updated_at" | "report.issues_count" | "report.total_files_count" | "report.analyzed_files_count" | "report.issues_files_count" | "report.created_at" | "report.updated_at" | "execution.status";
|
|
2123
|
+
orderDirection?: "asc" | "desc" | "ASC" | "DESC";
|
|
2124
|
+
integrationId?: string;
|
|
2125
|
+
extension?: "csv" | "xlsx";
|
|
2126
|
+
authorization: string;
|
|
2127
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2128
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2129
|
+
status: 200;
|
|
2130
|
+
data: any;
|
|
2131
|
+
} | {
|
|
2132
|
+
status: 422;
|
|
2133
|
+
data: HttpValidationError;
|
|
2134
|
+
}>(`/v1/program-groups/download${QS.query(QS.explode({
|
|
2135
|
+
moduleId,
|
|
2136
|
+
createdByEmail,
|
|
2137
|
+
reportByEmail,
|
|
2138
|
+
tags,
|
|
2139
|
+
name,
|
|
2140
|
+
orderBy,
|
|
2141
|
+
orderDirection,
|
|
2142
|
+
integrationId,
|
|
2143
|
+
extension
|
|
2144
|
+
}))}`, {
|
|
2145
|
+
...opts,
|
|
2146
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
2147
|
+
authorization
|
|
2148
|
+
})
|
|
2149
|
+
}));
|
|
2150
|
+
}
|
|
1669
2151
|
/**
|
|
1670
2152
|
* Get Program Group By Id Service
|
|
1671
2153
|
*/
|
|
@@ -1772,7 +2254,7 @@ export function listProgramGroupReportServiceV1ProgramGroupsProgramGroupIdReport
|
|
|
1772
2254
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1773
2255
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1774
2256
|
status: 200;
|
|
1775
|
-
data:
|
|
2257
|
+
data: ListProgramGroupReportResponseRead;
|
|
1776
2258
|
} | {
|
|
1777
2259
|
status: 422;
|
|
1778
2260
|
data: HttpValidationError;
|
|
@@ -1857,7 +2339,7 @@ export function analyticsRepositoryLastReportStatusV1AnalyticsRepositoriesLastRe
|
|
|
1857
2339
|
executedBy?: string[] | null;
|
|
1858
2340
|
repositoryUrl?: string | null;
|
|
1859
2341
|
tags?: string[] | null;
|
|
1860
|
-
orderBy?: ("repositoryUrl" | "moduleName" | "mode" | "reportCreatedAt" | "reportCreatedBy" | "totalFiles" | "totalFilesAnalyzed" | "totalFilesIssues" | "totalFilesChanged" | "totalIssues") | null;
|
|
2342
|
+
orderBy?: ("repositoryUrl" | "moduleName" | "merged" | "mode" | "reportCreatedAt" | "reportCreatedBy" | "totalFiles" | "totalFilesAnalyzed" | "totalFilesIssues" | "totalFilesChanged" | "totalIssues") | null;
|
|
1861
2343
|
orderDirection?: ("ASC" | "DESC") | null;
|
|
1862
2344
|
startDate?: string | null;
|
|
1863
2345
|
endDate?: string | null;
|
|
@@ -2379,6 +2861,348 @@ export function analyticsProgramGroupsUsageDownloadV1AnalyticsProgramGroupsUsage
|
|
|
2379
2861
|
})
|
|
2380
2862
|
}));
|
|
2381
2863
|
}
|
|
2864
|
+
/**
|
|
2865
|
+
* Analytics Program Groups Details
|
|
2866
|
+
*/
|
|
2867
|
+
export function analyticsProgramGroupsDetailsV1AnalyticsProgramGroupsDetailsGet({ pageSize, page, programName, tags, mode, moduleId, programCreatedById, reportCreatedById, startDate, endDate, orderBy, orderDirection, authorization }: {
|
|
2868
|
+
pageSize?: number;
|
|
2869
|
+
page?: number;
|
|
2870
|
+
programName?: string | null;
|
|
2871
|
+
tags?: string[] | null;
|
|
2872
|
+
mode?: ("scan" | "fix") | null;
|
|
2873
|
+
moduleId?: string[] | null;
|
|
2874
|
+
programCreatedById?: string[] | null;
|
|
2875
|
+
reportCreatedById?: string[] | null;
|
|
2876
|
+
startDate?: string;
|
|
2877
|
+
endDate?: string;
|
|
2878
|
+
orderBy?: ("programGroupName" | "moduleName" | "mode" | "reportCreatedAt" | "reportCreatedByName" | "executionStartedAt" | "executionCompletedAt" | "totalFilesCount" | "analyzedFilesCount" | "issuesFilesCount" | "changedFilesCount" | "issuesCount" | "processingTimeSeconds") | null;
|
|
2879
|
+
orderDirection?: ("ASC" | "DESC") | null;
|
|
2880
|
+
authorization: string;
|
|
2881
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2882
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2883
|
+
status: 200;
|
|
2884
|
+
data: AnalyticsProgramGroupsDetailsResponse;
|
|
2885
|
+
} | {
|
|
2886
|
+
status: 400;
|
|
2887
|
+
data: HttpErrorResponseRead;
|
|
2888
|
+
} | {
|
|
2889
|
+
status: 401;
|
|
2890
|
+
data: HttpErrorResponseRead;
|
|
2891
|
+
} | {
|
|
2892
|
+
status: 404;
|
|
2893
|
+
data: HttpErrorResponseRead;
|
|
2894
|
+
} | {
|
|
2895
|
+
status: 422;
|
|
2896
|
+
} | {
|
|
2897
|
+
status: 500;
|
|
2898
|
+
data: HttpErrorResponseRead;
|
|
2899
|
+
} | {
|
|
2900
|
+
status: 503;
|
|
2901
|
+
data: HttpErrorResponseRead;
|
|
2902
|
+
}>(`/v1/analytics/program-groups/details${QS.query(QS.explode({
|
|
2903
|
+
pageSize,
|
|
2904
|
+
page,
|
|
2905
|
+
programName,
|
|
2906
|
+
tags,
|
|
2907
|
+
mode,
|
|
2908
|
+
moduleId,
|
|
2909
|
+
programCreatedById,
|
|
2910
|
+
reportCreatedById,
|
|
2911
|
+
startDate,
|
|
2912
|
+
endDate,
|
|
2913
|
+
orderBy,
|
|
2914
|
+
orderDirection
|
|
2915
|
+
}))}`, {
|
|
2916
|
+
...opts,
|
|
2917
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
2918
|
+
authorization
|
|
2919
|
+
})
|
|
2920
|
+
}));
|
|
2921
|
+
}
|
|
2922
|
+
/**
|
|
2923
|
+
* Analytics Program Groups Details Download
|
|
2924
|
+
*/
|
|
2925
|
+
export function analyticsProgramGroupsDetailsDownloadV1AnalyticsProgramGroupsDetailsDownloadGet({ programName, tags, mode, moduleId, programCreatedById, reportCreatedById, startDate, endDate, orderBy, orderDirection, extension, authorization }: {
|
|
2926
|
+
programName?: string | null;
|
|
2927
|
+
tags?: string[] | null;
|
|
2928
|
+
mode?: ("scan" | "fix") | null;
|
|
2929
|
+
moduleId?: string[] | null;
|
|
2930
|
+
programCreatedById?: string[] | null;
|
|
2931
|
+
reportCreatedById?: string[] | null;
|
|
2932
|
+
startDate?: string;
|
|
2933
|
+
endDate?: string;
|
|
2934
|
+
orderBy?: ("programGroupName" | "moduleName" | "mode" | "reportCreatedAt" | "reportCreatedByName" | "executionStartedAt" | "executionCompletedAt" | "totalFilesCount" | "analyzedFilesCount" | "issuesFilesCount" | "changedFilesCount" | "issuesCount" | "processingTimeSeconds") | null;
|
|
2935
|
+
orderDirection?: ("ASC" | "DESC") | null;
|
|
2936
|
+
extension?: "csv" | "xlsx";
|
|
2937
|
+
authorization: string;
|
|
2938
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2939
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2940
|
+
status: 200;
|
|
2941
|
+
data: any;
|
|
2942
|
+
} | {
|
|
2943
|
+
status: 400;
|
|
2944
|
+
data: HttpErrorResponseRead;
|
|
2945
|
+
} | {
|
|
2946
|
+
status: 401;
|
|
2947
|
+
data: HttpErrorResponseRead;
|
|
2948
|
+
} | {
|
|
2949
|
+
status: 404;
|
|
2950
|
+
data: HttpErrorResponseRead;
|
|
2951
|
+
} | {
|
|
2952
|
+
status: 422;
|
|
2953
|
+
} | {
|
|
2954
|
+
status: 500;
|
|
2955
|
+
data: HttpErrorResponseRead;
|
|
2956
|
+
} | {
|
|
2957
|
+
status: 503;
|
|
2958
|
+
data: HttpErrorResponseRead;
|
|
2959
|
+
}>(`/v1/analytics/program-groups/details/download${QS.query(QS.explode({
|
|
2960
|
+
programName,
|
|
2961
|
+
tags,
|
|
2962
|
+
mode,
|
|
2963
|
+
moduleId,
|
|
2964
|
+
programCreatedById,
|
|
2965
|
+
reportCreatedById,
|
|
2966
|
+
startDate,
|
|
2967
|
+
endDate,
|
|
2968
|
+
orderBy,
|
|
2969
|
+
orderDirection,
|
|
2970
|
+
extension
|
|
2971
|
+
}))}`, {
|
|
2972
|
+
...opts,
|
|
2973
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
2974
|
+
authorization
|
|
2975
|
+
})
|
|
2976
|
+
}));
|
|
2977
|
+
}
|
|
2978
|
+
/**
|
|
2979
|
+
* Analytics Repository Detailed Report
|
|
2980
|
+
*/
|
|
2981
|
+
export function analyticsRepositoryDetailedReportV1AnalyticsRepositoriesDetailsGet({ pageSize, page, repositoryUrl, tags, mode, moduleId, repositoryCreatedById, executedBy, startDate, endDate, orderBy, orderDirection, authorization }: {
|
|
2982
|
+
pageSize?: number;
|
|
2983
|
+
page?: number;
|
|
2984
|
+
repositoryUrl?: string | null;
|
|
2985
|
+
tags?: string[] | null;
|
|
2986
|
+
mode?: ("scan" | "fix") | null;
|
|
2987
|
+
moduleId?: string[] | null;
|
|
2988
|
+
repositoryCreatedById?: string[] | null;
|
|
2989
|
+
executedBy?: string[] | null;
|
|
2990
|
+
startDate?: string;
|
|
2991
|
+
endDate?: string;
|
|
2992
|
+
orderBy?: ("totalFilesCount" | "analyzedFilesCount" | "changedFilesCount" | "issuesCount" | "issuesFilesCount" | "reportCreatedAt" | "repositoryUrl" | "sourceBranch" | "targetBranch" | "executionCompletedAt" | "executionStartedAt" | "moduleName" | "moduleVersion" | "processingTimeSeconds" | "pullRequestLink" | "reportCreatedByEmail" | "reportCreatedByName" | "repositoryCreatedByEmail" | "repositoryCreatedByName") | null;
|
|
2993
|
+
orderDirection?: ("ASC" | "DESC") | null;
|
|
2994
|
+
authorization: string;
|
|
2995
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2996
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2997
|
+
status: 200;
|
|
2998
|
+
data: AnalyticsRepositoryDetailedReportResponse;
|
|
2999
|
+
} | {
|
|
3000
|
+
status: 400;
|
|
3001
|
+
data: HttpErrorResponseRead;
|
|
3002
|
+
} | {
|
|
3003
|
+
status: 401;
|
|
3004
|
+
data: HttpErrorResponseRead;
|
|
3005
|
+
} | {
|
|
3006
|
+
status: 404;
|
|
3007
|
+
data: HttpErrorResponseRead;
|
|
3008
|
+
} | {
|
|
3009
|
+
status: 422;
|
|
3010
|
+
} | {
|
|
3011
|
+
status: 500;
|
|
3012
|
+
data: HttpErrorResponseRead;
|
|
3013
|
+
} | {
|
|
3014
|
+
status: 503;
|
|
3015
|
+
data: HttpErrorResponseRead;
|
|
3016
|
+
}>(`/v1/analytics/repositories/details${QS.query(QS.explode({
|
|
3017
|
+
pageSize,
|
|
3018
|
+
page,
|
|
3019
|
+
repositoryUrl,
|
|
3020
|
+
tags,
|
|
3021
|
+
mode,
|
|
3022
|
+
moduleId,
|
|
3023
|
+
repositoryCreatedById,
|
|
3024
|
+
executedBy,
|
|
3025
|
+
startDate,
|
|
3026
|
+
endDate,
|
|
3027
|
+
orderBy,
|
|
3028
|
+
orderDirection
|
|
3029
|
+
}))}`, {
|
|
3030
|
+
...opts,
|
|
3031
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
3032
|
+
authorization
|
|
3033
|
+
})
|
|
3034
|
+
}));
|
|
3035
|
+
}
|
|
3036
|
+
/**
|
|
3037
|
+
* Analytics Repository Detailed Report Download
|
|
3038
|
+
*/
|
|
3039
|
+
export function analyticsRepositoryDetailedReportDownloadV1AnalyticsRepositoriesDetailsDownloadGet({ repositoryUrl, tags, mode, moduleId, repositoryCreatedById, reportCreatedById, startDate, endDate, orderBy, orderDirection, extension, authorization }: {
|
|
3040
|
+
repositoryUrl?: string | null;
|
|
3041
|
+
tags?: string[] | null;
|
|
3042
|
+
mode?: ("scan" | "fix") | null;
|
|
3043
|
+
moduleId?: string[] | null;
|
|
3044
|
+
repositoryCreatedById?: string[] | null;
|
|
3045
|
+
reportCreatedById?: string[] | null;
|
|
3046
|
+
startDate?: string;
|
|
3047
|
+
endDate?: string;
|
|
3048
|
+
orderBy?: ("totalFilesCount" | "analyzedFilesCount" | "changedFilesCount" | "issuesCount" | "issuesFilesCount" | "reportCreatedAt" | "repositoryUrl" | "sourceBranch" | "targetBranch" | "executionCompletedAt" | "executionStartedAt" | "moduleName" | "moduleVersion" | "processingTimeSeconds" | "pullRequestLink" | "reportCreatedByEmail" | "reportCreatedByName" | "repositoryCreatedByEmail" | "repositoryCreatedByName") | null;
|
|
3049
|
+
orderDirection?: ("ASC" | "DESC") | null;
|
|
3050
|
+
extension?: "csv" | "xlsx";
|
|
3051
|
+
authorization: string;
|
|
3052
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
3053
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3054
|
+
status: 200;
|
|
3055
|
+
data: AnalyticsRepositoryDetailedReportResponse;
|
|
3056
|
+
} | {
|
|
3057
|
+
status: 400;
|
|
3058
|
+
data: HttpErrorResponseRead;
|
|
3059
|
+
} | {
|
|
3060
|
+
status: 401;
|
|
3061
|
+
data: HttpErrorResponseRead;
|
|
3062
|
+
} | {
|
|
3063
|
+
status: 404;
|
|
3064
|
+
data: HttpErrorResponseRead;
|
|
3065
|
+
} | {
|
|
3066
|
+
status: 422;
|
|
3067
|
+
} | {
|
|
3068
|
+
status: 500;
|
|
3069
|
+
data: HttpErrorResponseRead;
|
|
3070
|
+
} | {
|
|
3071
|
+
status: 503;
|
|
3072
|
+
data: HttpErrorResponseRead;
|
|
3073
|
+
}>(`/v1/analytics/repositories/details/download${QS.query(QS.explode({
|
|
3074
|
+
repositoryUrl,
|
|
3075
|
+
tags,
|
|
3076
|
+
mode,
|
|
3077
|
+
moduleId,
|
|
3078
|
+
repositoryCreatedById,
|
|
3079
|
+
reportCreatedById,
|
|
3080
|
+
startDate,
|
|
3081
|
+
endDate,
|
|
3082
|
+
orderBy,
|
|
3083
|
+
orderDirection,
|
|
3084
|
+
extension
|
|
3085
|
+
}))}`, {
|
|
3086
|
+
...opts,
|
|
3087
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
3088
|
+
authorization
|
|
3089
|
+
})
|
|
3090
|
+
}));
|
|
3091
|
+
}
|
|
3092
|
+
/**
|
|
3093
|
+
* Analytics Program Groups Target Details
|
|
3094
|
+
*/
|
|
3095
|
+
export function analyticsProgramGroupsTargetDetailsV1AnalyticsProgramGroupsTargetDetailsGet({ pageSize, page, programName, componentName, tags, mode, moduleId, reportCreatedById, startDate, endDate, orderBy, orderDirection, authorization }: {
|
|
3096
|
+
pageSize?: number;
|
|
3097
|
+
page?: number;
|
|
3098
|
+
programName?: string | null;
|
|
3099
|
+
componentName?: string | null;
|
|
3100
|
+
tags?: string[] | null;
|
|
3101
|
+
mode?: ("scan" | "fix") | null;
|
|
3102
|
+
moduleId?: string[] | null;
|
|
3103
|
+
reportCreatedById?: string[] | null;
|
|
3104
|
+
startDate?: string;
|
|
3105
|
+
endDate?: string;
|
|
3106
|
+
orderBy?: ("programGroupName" | "moduleName" | "mode" | "reportCreatedAt" | "executionStartedAt" | "executionCompletedAt" | "componentAppName" | "componentName" | "componentType" | "totalIssues" | "changedFilesCount") | null;
|
|
3107
|
+
orderDirection?: ("ASC" | "DESC") | null;
|
|
3108
|
+
authorization: string;
|
|
3109
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
3110
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3111
|
+
status: 200;
|
|
3112
|
+
data: AnalyticsProgramGroupsTargetDetailsResponse;
|
|
3113
|
+
} | {
|
|
3114
|
+
status: 400;
|
|
3115
|
+
data: HttpErrorResponseRead;
|
|
3116
|
+
} | {
|
|
3117
|
+
status: 401;
|
|
3118
|
+
data: HttpErrorResponseRead;
|
|
3119
|
+
} | {
|
|
3120
|
+
status: 404;
|
|
3121
|
+
data: HttpErrorResponseRead;
|
|
3122
|
+
} | {
|
|
3123
|
+
status: 422;
|
|
3124
|
+
} | {
|
|
3125
|
+
status: 500;
|
|
3126
|
+
data: HttpErrorResponseRead;
|
|
3127
|
+
} | {
|
|
3128
|
+
status: 503;
|
|
3129
|
+
data: HttpErrorResponseRead;
|
|
3130
|
+
}>(`/v1/analytics/program-groups/target-details${QS.query(QS.explode({
|
|
3131
|
+
pageSize,
|
|
3132
|
+
page,
|
|
3133
|
+
programName,
|
|
3134
|
+
componentName,
|
|
3135
|
+
tags,
|
|
3136
|
+
mode,
|
|
3137
|
+
moduleId,
|
|
3138
|
+
reportCreatedById,
|
|
3139
|
+
startDate,
|
|
3140
|
+
endDate,
|
|
3141
|
+
orderBy,
|
|
3142
|
+
orderDirection
|
|
3143
|
+
}))}`, {
|
|
3144
|
+
...opts,
|
|
3145
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
3146
|
+
authorization
|
|
3147
|
+
})
|
|
3148
|
+
}));
|
|
3149
|
+
}
|
|
3150
|
+
/**
|
|
3151
|
+
* Analytics Program Groups Target Details Download
|
|
3152
|
+
*/
|
|
3153
|
+
export function analyticsProgramGroupsTargetDetailsDownloadV1AnalyticsProgramGroupsTargetDetailsDownloadGet({ programName, tags, mode, moduleId, componentName, reportCreatedById, startDate, endDate, orderBy, orderDirection, extension, authorization }: {
|
|
3154
|
+
programName?: string | null;
|
|
3155
|
+
tags?: string[] | null;
|
|
3156
|
+
mode?: ("scan" | "fix") | null;
|
|
3157
|
+
moduleId?: string[] | null;
|
|
3158
|
+
componentName?: string | null;
|
|
3159
|
+
reportCreatedById?: string[] | null;
|
|
3160
|
+
startDate?: string;
|
|
3161
|
+
endDate?: string;
|
|
3162
|
+
orderBy?: ("programGroupName" | "moduleName" | "mode" | "reportCreatedAt" | "executionStartedAt" | "executionCompletedAt" | "componentAppName" | "componentName" | "componentType" | "totalIssues" | "changedFilesCount") | null;
|
|
3163
|
+
orderDirection?: ("ASC" | "DESC") | null;
|
|
3164
|
+
extension?: "csv" | "xlsx";
|
|
3165
|
+
authorization: string;
|
|
3166
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
3167
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3168
|
+
status: 200;
|
|
3169
|
+
data: any;
|
|
3170
|
+
} | {
|
|
3171
|
+
status: 400;
|
|
3172
|
+
data: HttpErrorResponseRead;
|
|
3173
|
+
} | {
|
|
3174
|
+
status: 401;
|
|
3175
|
+
data: HttpErrorResponseRead;
|
|
3176
|
+
} | {
|
|
3177
|
+
status: 404;
|
|
3178
|
+
data: HttpErrorResponseRead;
|
|
3179
|
+
} | {
|
|
3180
|
+
status: 422;
|
|
3181
|
+
} | {
|
|
3182
|
+
status: 500;
|
|
3183
|
+
data: HttpErrorResponseRead;
|
|
3184
|
+
} | {
|
|
3185
|
+
status: 503;
|
|
3186
|
+
data: HttpErrorResponseRead;
|
|
3187
|
+
}>(`/v1/analytics/program-groups/target-details/download${QS.query(QS.explode({
|
|
3188
|
+
programName,
|
|
3189
|
+
tags,
|
|
3190
|
+
mode,
|
|
3191
|
+
moduleId,
|
|
3192
|
+
componentName,
|
|
3193
|
+
reportCreatedById,
|
|
3194
|
+
startDate,
|
|
3195
|
+
endDate,
|
|
3196
|
+
orderBy,
|
|
3197
|
+
orderDirection,
|
|
3198
|
+
extension
|
|
3199
|
+
}))}`, {
|
|
3200
|
+
...opts,
|
|
3201
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
3202
|
+
authorization
|
|
3203
|
+
})
|
|
3204
|
+
}));
|
|
3205
|
+
}
|
|
2382
3206
|
/**
|
|
2383
3207
|
* List User Service
|
|
2384
3208
|
*/
|
|
@@ -2398,3 +3222,44 @@ export function listUserServiceV1UsersGet({ authorization }: {
|
|
|
2398
3222
|
})
|
|
2399
3223
|
}));
|
|
2400
3224
|
}
|
|
3225
|
+
/**
|
|
3226
|
+
* Search Repos Scm Service
|
|
3227
|
+
*/
|
|
3228
|
+
export function searchReposScmServiceV2ReposSearchScmPost({ authorization, searchReposInScmRequest }: {
|
|
3229
|
+
authorization: string;
|
|
3230
|
+
searchReposInScmRequest: SearchReposInScmRequest;
|
|
3231
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
3232
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3233
|
+
status: 200;
|
|
3234
|
+
} | {
|
|
3235
|
+
status: 201;
|
|
3236
|
+
data: SearchReposInScmResponse;
|
|
3237
|
+
} | {
|
|
3238
|
+
status: 207;
|
|
3239
|
+
data: HttpErrorResponseRead;
|
|
3240
|
+
} | {
|
|
3241
|
+
status: 400;
|
|
3242
|
+
data: HttpErrorResponseRead;
|
|
3243
|
+
} | {
|
|
3244
|
+
status: 401;
|
|
3245
|
+
data: HttpErrorResponseRead;
|
|
3246
|
+
} | {
|
|
3247
|
+
status: 404;
|
|
3248
|
+
data: HttpErrorResponseRead;
|
|
3249
|
+
} | {
|
|
3250
|
+
status: 422;
|
|
3251
|
+
} | {
|
|
3252
|
+
status: 500;
|
|
3253
|
+
data: HttpErrorResponseRead;
|
|
3254
|
+
} | {
|
|
3255
|
+
status: 503;
|
|
3256
|
+
data: HttpErrorResponseRead;
|
|
3257
|
+
}>("/v2/repos/search-scm", oazapfts.json({
|
|
3258
|
+
...opts,
|
|
3259
|
+
method: "POST",
|
|
3260
|
+
body: searchReposInScmRequest,
|
|
3261
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
3262
|
+
authorization
|
|
3263
|
+
})
|
|
3264
|
+
})));
|
|
3265
|
+
}
|