@stack-spot/portal-network 0.161.0 → 0.162.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 CHANGED
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.162.1](https://github.com/stack-spot/portal-commons/compare/portal-network@v0.162.0...portal-network@v0.162.1) (2025-07-24)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * ensure getting correct agent default ([#1282](https://github.com/stack-spot/portal-commons/issues/1282)) ([c35495c](https://github.com/stack-spot/portal-commons/commit/c35495c72023064777aec25a8913e00100b877e1))
9
+
10
+ ## [0.162.0](https://github.com/stack-spot/portal-commons/compare/portal-network@v0.161.0...portal-network@v0.162.0) (2025-07-23)
11
+
12
+
13
+ ### Features
14
+
15
+ * Adds support for suggested error messages in API response ([#1201](https://github.com/stack-spot/portal-commons/issues/1201)) ([9f99742](https://github.com/stack-spot/portal-commons/commit/9f99742c6dfe1b5d554ba4bbcf901e27aa8d5b05))
16
+
3
17
  ## [0.161.0](https://github.com/stack-spot/portal-commons/compare/portal-network@v0.160.1...portal-network@v0.161.0) (2025-07-22)
4
18
 
5
19
 
@@ -19,122 +19,6 @@ export type ValidationError = {
19
19
  export type HttpValidationError = {
20
20
  detail?: ValidationError[];
21
21
  };
22
- export type ModuleResponse = {
23
- id: string;
24
- name: string;
25
- };
26
- export type ExecutionResponse = {
27
- id: string;
28
- startedAt: string | null;
29
- completedAt: string | null;
30
- status: string | null;
31
- conclusion: string | null;
32
- };
33
- export type UserResponse = {
34
- id: string;
35
- name: string;
36
- email: string;
37
- ip?: string | null;
38
- };
39
- export type ReportResponse = {
40
- id: string;
41
- "module": ModuleResponse | null;
42
- execution: ExecutionResponse | null;
43
- mode: string;
44
- sourceBranch: string;
45
- targetBranch?: string | null;
46
- createdBy: UserResponse;
47
- createdAt: string;
48
- updatedAt: string;
49
- filesCount: number | null;
50
- issuesCount: number | null;
51
- pullRequestLink?: string | null;
52
- errorLog?: string | null;
53
- };
54
- export type ListApplicationReportResponse = {
55
- /** List of reports */
56
- items: ReportResponse[];
57
- /** Number of reports */
58
- itemsCount: number;
59
- /** Last evaluated key */
60
- lastEvaluatedKey: string | null;
61
- };
62
- 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_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_4000_ACCOUNTS_API_PAT_FAILURE" | "CODE_SHIFT_API_4001_ACCOUNTS_API_PAT_FORBIDDEN" | "CODE_SHIFT_API_4002_ACCOUNTS_API_PAT_FORBIDDEN" | "CODE_SHIFT_API_4009_ACCOUNTS_API_PAT_PARSE_ERROR" | "CODE_SHIFT_API_6000_IAM_GENERATE_TOKEN_FAILURE" | "CODE_SHIFT_API_6000_IAM_INTROSPECT_TOKEN_FAILURE";
63
- 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";
64
- export type InvalidPayloadDetails = {
65
- code: BadRequestExceptionTypes | ExceptionType;
66
- field: string | null;
67
- message?: string | null;
68
- };
69
- export type HttpErrorResponse = {
70
- status: string;
71
- code: ExceptionType;
72
- details: string;
73
- validationDetails?: InvalidPayloadDetails[] | null;
74
- };
75
- export type BodyCreateApplicationsBatchServiceV1ApplicationsBatchPost = {
76
- file: Blob;
77
- };
78
- export type RepositoryRequest = {
79
- url: string;
80
- defaultBranch: string;
81
- };
82
- export type CreateApplicationRequest = {
83
- /** Application name */
84
- name?: string | null;
85
- /** Repository */
86
- repository: RepositoryRequest;
87
- };
88
- export type RepositoryResponse = {
89
- url: string;
90
- defaultBranch: string;
91
- };
92
- export type ReportResponse2 = {
93
- id: string;
94
- execution: ExecutionResponse | null;
95
- mode: string;
96
- moduleId: string | null;
97
- sourceBranch: string;
98
- targetBranch?: string | null;
99
- createdBy: UserResponse;
100
- createdAt: string;
101
- updatedAt: string;
102
- filesCount: number | null;
103
- issuesCount: number | null;
104
- pullRequestLink?: string | null;
105
- errorLog?: string | null;
106
- };
107
- export type ApplicationResponse = {
108
- /** Application ID */
109
- id: string;
110
- /** Application name */
111
- name: string;
112
- /** Application creation date */
113
- createdAt?: string | null;
114
- /** Application creation user */
115
- createdBy?: string | null;
116
- /** Repository */
117
- repository: RepositoryResponse | null;
118
- lastModuleReport: ReportResponse2 | null;
119
- };
120
- export type ListApplicationResponse = {
121
- /** List of applications */
122
- items: ApplicationResponse[];
123
- /** Number of applications */
124
- itemsCount: number;
125
- /** Last evaluated key */
126
- lastEvaluatedKey: string | null;
127
- };
128
- export type RepositoryRequest2 = {
129
- url?: string | null;
130
- defaultBranch?: string | null;
131
- };
132
- export type PutApplicationRequest = {
133
- /** Application name */
134
- name?: string | null;
135
- /** Repository */
136
- repository?: RepositoryRequest2 | null;
137
- };
138
22
  export type ModuleType = "repository" | "program_group";
139
23
  export type InputRequest = {
140
24
  name: string;
@@ -160,13 +44,47 @@ export type CreateModuleRequest = {
160
44
  inputs: InputRequest[];
161
45
  /** Module studio */
162
46
  studio: string;
47
+ /** Module studio */
48
+ constants?: {
49
+ [key: string]: any;
50
+ } | null;
51
+ };
52
+ 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_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_4000_ACCOUNTS_API_PAT_FAILURE" | "CODE_SHIFT_API_4001_ACCOUNTS_API_PAT_FORBIDDEN" | "CODE_SHIFT_API_4002_ACCOUNTS_API_PAT_FORBIDDEN" | "CODE_SHIFT_API_4009_ACCOUNTS_API_PAT_PARSE_ERROR" | "CODE_SHIFT_API_6000_IAM_GENERATE_TOKEN_FAILURE" | "CODE_SHIFT_API_6000_IAM_INTROSPECT_TOKEN_FAILURE";
53
+ 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";
54
+ export type InvalidPayloadDetails = {
55
+ code: BadRequestExceptionTypes | ExceptionType;
56
+ field: string | null;
57
+ message?: string | null;
58
+ };
59
+ export type SuggestedMessage = {
60
+ ptBr: string | null;
61
+ enUs: string | null;
62
+ };
63
+ export type InvalidPayloadDetailsRead = {
64
+ code: BadRequestExceptionTypes | ExceptionType;
65
+ field: string | null;
66
+ message?: string | null;
67
+ suggestedMessages: SuggestedMessage | null;
68
+ };
69
+ export type HttpErrorResponse = {
70
+ status: string;
71
+ code: ExceptionType;
72
+ details: string;
73
+ validationDetails?: InvalidPayloadDetails[] | null;
74
+ };
75
+ export type HttpErrorResponseRead = {
76
+ status: string;
77
+ code: ExceptionType;
78
+ details: string;
79
+ validationDetails?: InvalidPayloadDetailsRead[] | null;
80
+ suggestedMessages: SuggestedMessage | null;
163
81
  };
164
82
  export type InputResponse = {
165
83
  name: string;
166
84
  required: boolean;
167
85
  "default": string;
168
86
  };
169
- export type ModuleResponse2 = {
87
+ export type ModuleResponse = {
170
88
  /** Module ID */
171
89
  id: string;
172
90
  /** Module type */
@@ -187,10 +105,14 @@ export type ModuleResponse2 = {
187
105
  tags: string[];
188
106
  /** Module inputs */
189
107
  inputs: InputResponse[];
108
+ /** Module studio */
109
+ constants?: {
110
+ [key: string]: any;
111
+ } | null;
190
112
  };
191
113
  export type ListModuleResponse = {
192
114
  /** List of modules */
193
- items: ModuleResponse2[];
115
+ items: ModuleResponse[];
194
116
  /** Number of modules */
195
117
  itemsCount: number;
196
118
  /** Last evaluated key */
@@ -213,6 +135,10 @@ export type PutModuleRequest = {
213
135
  tags?: string[] | null;
214
136
  /** Inputs of module */
215
137
  inputs?: InputRequest[] | null;
138
+ /** Module studio */
139
+ constants?: {
140
+ [key: string]: any;
141
+ } | null;
216
142
  };
217
143
  export type Mode = "scan" | "fix";
218
144
  export type ModuleDispatchRequest = {
@@ -236,8 +162,8 @@ export type DependsOnRequest = {
236
162
  description: string;
237
163
  };
238
164
  export type IssuesRequest = {
239
- ref: string;
240
- line: number;
165
+ ref?: string | null;
166
+ line?: number | null;
241
167
  description: string;
242
168
  severity?: string | null;
243
169
  recommendation?: string | null;
@@ -246,27 +172,41 @@ export type TargetFilesRequest = {
246
172
  fileName: string;
247
173
  filePath: string;
248
174
  details?: string | null;
249
- dependsOn: DependsOnRequest[];
250
- issues: IssuesRequest[];
175
+ dependsOn?: DependsOnRequest[] | null;
176
+ issues?: IssuesRequest[] | null;
251
177
  };
252
178
  export type PutReportRequest = {
253
179
  filesCount?: number;
254
180
  issuesCount: number;
255
181
  totalFilesCount?: number | null;
256
182
  analyzedFilesCount?: number | null;
183
+ changedFilesCount?: number | null;
257
184
  pullRequestLink?: string | null;
258
185
  commitHash?: string | null;
259
186
  targetFiles: TargetFilesRequest[];
260
187
  };
261
- export type ModuleResponse3 = {
188
+ export type ModuleResponse2 = {
262
189
  id: string;
263
190
  name: string;
264
191
  };
265
- export type ApplicationResponse2 = {
192
+ export type ApplicationResponse = {
266
193
  id: string;
267
194
  name: string;
268
195
  url: string;
269
196
  };
197
+ export type ExecutionResponse = {
198
+ id: string;
199
+ startedAt: string | null;
200
+ completedAt: string | null;
201
+ status: string | null;
202
+ conclusion: string | null;
203
+ };
204
+ export type UserResponse = {
205
+ id: string;
206
+ name: string;
207
+ email: string;
208
+ ip?: string | null;
209
+ };
270
210
  export type ProgramGroupResponse = {
271
211
  id: string;
272
212
  name: string;
@@ -277,8 +217,8 @@ export type DependsOnResponse = {
277
217
  description: string;
278
218
  };
279
219
  export type IssuesResponse = {
280
- ref: string;
281
- line: number;
220
+ ref?: string | null;
221
+ line?: number | null;
282
222
  description: string;
283
223
  lineLink?: string | null;
284
224
  severity?: string | null;
@@ -288,13 +228,14 @@ export type TargetFilesResponse = {
288
228
  fileName: string;
289
229
  filePath: string;
290
230
  details?: string | null;
291
- dependsOn: DependsOnResponse[];
292
- issues: IssuesResponse[];
231
+ dependsOn?: DependsOnResponse[] | null;
232
+ issues?: IssuesResponse[] | null;
293
233
  };
234
+ export type ReportStatus = "waiting_dispatch" | "waiting_runner" | "dispatch_failure" | "in_progress" | "suspended" | "error" | "success" | "cancelled";
294
235
  export type GetReportResponse = {
295
236
  id: string;
296
- "module": ModuleResponse3 | null;
297
- application: ApplicationResponse2 | null;
237
+ "module": ModuleResponse2 | null;
238
+ application: ApplicationResponse | null;
298
239
  execution: ExecutionResponse | null;
299
240
  mode: string;
300
241
  sourceBranch: string | null;
@@ -304,6 +245,7 @@ export type GetReportResponse = {
304
245
  updatedAt: string;
305
246
  filesCount: number | null;
306
247
  totalFilesCount: number | null;
248
+ changedFilesCount: number | null;
307
249
  analyzedFilesCount: number | null;
308
250
  issuesFilesCount: number | null;
309
251
  issuesCount: number | null;
@@ -312,6 +254,10 @@ export type GetReportResponse = {
312
254
  programGroup: ProgramGroupResponse | null;
313
255
  targetFiles: TargetFilesResponse[];
314
256
  errorLog?: string | null;
257
+ status: ReportStatus | null;
258
+ };
259
+ export type GetPullRequest = {
260
+ content: string;
315
261
  };
316
262
  export type SearchRepoScmResponse = {
317
263
  id: string;
@@ -321,13 +267,13 @@ export type GetStatusSearchRepoScmResponse = {
321
267
  status: SearchRepositoryStatus;
322
268
  errorLog?: string | null;
323
269
  };
324
- export type ModuleResponse4 = {
270
+ export type ModuleResponse3 = {
325
271
  id: string;
326
272
  name: string;
327
273
  };
328
- export type ReportResponse3 = {
274
+ export type ReportResponse = {
329
275
  id: string;
330
- "module": ModuleResponse4;
276
+ "module": ModuleResponse3;
331
277
  execution: ExecutionResponse | null;
332
278
  mode: string;
333
279
  sourceBranch: string;
@@ -339,10 +285,11 @@ export type ReportResponse3 = {
339
285
  issuesCount: number | null;
340
286
  pullRequestLink?: string | null;
341
287
  errorLog?: string | null;
288
+ status: ReportStatus | null;
342
289
  };
343
290
  export type ListRepositoryReportResponse = {
344
291
  /** List of reports */
345
- items: ReportResponse3[];
292
+ items: ReportResponse[];
346
293
  /** Number of reports */
347
294
  itemsCount: number;
348
295
  /** Last evaluated key */
@@ -356,51 +303,63 @@ export type CreateRepositoryRequest = {
356
303
  defaultBranch: string;
357
304
  tags?: string[] | null;
358
305
  };
359
- export type ReportResponse4 = {
306
+ export type ReportResponse2 = {
360
307
  id: string;
361
308
  execution: ExecutionResponse | null;
362
309
  mode: string;
363
310
  moduleId: string;
364
311
  sourceBranch: string;
365
312
  targetBranch?: string | null;
366
- createdBy: UserResponse;
313
+ createdBy: UserResponse | null;
367
314
  createdAt: string;
368
315
  updatedAt: string;
369
316
  filesCount: number | null;
370
317
  issuesCount: number | null;
371
318
  pullRequestLink?: string | null;
372
319
  errorLog?: string | null;
320
+ status: ReportStatus | null;
373
321
  };
374
- export type RepositoryResponse2 = {
322
+ export type RepositoryResponse = {
375
323
  /** Repository ID */
376
324
  id: string;
377
325
  /** Repository creation date */
378
326
  createdAt?: string | null;
379
327
  /** Repository creation user */
380
328
  createdBy?: string | null;
381
- lastModuleReport: ReportResponse4 | null;
329
+ lastModuleReport: ReportResponse2 | null;
382
330
  tags: string[];
383
331
  url: string;
384
332
  defaultBranch: string;
385
333
  };
386
334
  export type ListRepositoryResponse = {
387
335
  /** List of applications */
388
- items: RepositoryResponse2[];
336
+ items: RepositoryResponse[];
389
337
  /** Number of applications */
390
338
  itemsCount: number;
391
339
  /** Last evaluated key */
392
340
  lastEvaluatedKey?: string | null;
393
341
  };
342
+ export type ListBranchesResponse = {
343
+ /** List of all branches */
344
+ branches: string[];
345
+ };
394
346
  export type PutRepositoryRequest = {
395
347
  url?: string | null;
396
348
  defaultBranch?: string | null;
397
349
  tags?: string[] | null;
398
350
  };
351
+ export type ValidateScmUrlRequest = {
352
+ url?: string | null;
353
+ };
399
354
  export type GetAccountSettingsRequest = {
400
355
  maxSimultaneousExecution: number | null;
401
356
  };
402
357
  export type CreateAccountSettingsRequest = {
403
- maxSimultaneousExecution: number;
358
+ maxSimultaneousExecution?: number | null;
359
+ pullRequestSyncEnabled?: boolean | null;
360
+ pullRequestSyncMinHours?: number | null;
361
+ pullRequestSyncMaxHours?: number | null;
362
+ pullRequestSyncReprocessTime?: number | null;
404
363
  };
405
364
  export type CreateIntegrationRequest = {
406
365
  name: string;
@@ -440,7 +399,7 @@ export type BodyCreateProgramGroupServiceV1ProgramGroupsPost = {
440
399
  export type CreateProgramGroupResponse = {
441
400
  id: string;
442
401
  };
443
- export type ReportResponse5 = {
402
+ export type ReportResponse3 = {
444
403
  id: string;
445
404
  execution: ExecutionResponse | null;
446
405
  mode: string;
@@ -452,6 +411,7 @@ export type ReportResponse5 = {
452
411
  issuesCount: number | null;
453
412
  pullRequestLink?: string | null;
454
413
  errorLog?: string | null;
414
+ status: ReportStatus | null;
455
415
  };
456
416
  export type ProgramGroupResponse2 = {
457
417
  id: string;
@@ -460,10 +420,10 @@ export type ProgramGroupResponse2 = {
460
420
  tags: string[];
461
421
  components: any[];
462
422
  accountId: string;
463
- createdBy: string;
423
+ createdBy: string | null;
464
424
  createdAt: string;
465
425
  updatedAt: string;
466
- lastModuleReport: ReportResponse5 | null;
426
+ lastModuleReport: ReportResponse3 | null;
467
427
  };
468
428
  export type ListProgramGroupResponse = {
469
429
  items: ProgramGroupResponse2[];
@@ -483,13 +443,18 @@ export type ProgramGroupResponse3 = {
483
443
  export type BodyUpdateProgramGroupServiceV1ProgramGroupsProgramGroupIdPut = {
484
444
  file?: Blob | null;
485
445
  };
486
- export type ModuleResponse5 = {
446
+ export type PutProgramGroupComponentsRequest = {
447
+ appl_name: string;
448
+ component_type: string;
449
+ component: string;
450
+ };
451
+ export type ModuleResponse4 = {
487
452
  id: string;
488
453
  name: string;
489
454
  };
490
- export type ReportResponse6 = {
455
+ export type ReportResponse4 = {
491
456
  id: string;
492
- "module": ModuleResponse5;
457
+ "module": ModuleResponse4;
493
458
  execution: ExecutionResponse | null;
494
459
  mode: string;
495
460
  createdBy: UserResponse;
@@ -499,10 +464,11 @@ export type ReportResponse6 = {
499
464
  issuesCount: number | null;
500
465
  pullRequestLink?: string | null;
501
466
  errorLog?: string | null;
467
+ status: ReportStatus | null;
502
468
  };
503
469
  export type ListProgramGroupReportResponse = {
504
470
  /** List of reports */
505
- items: ReportResponse6[];
471
+ items: ReportResponse4[];
506
472
  /** Number of reports */
507
473
  itemsCount: number;
508
474
  };
@@ -520,63 +486,6 @@ export declare function checkRoleRouteV1RolesRoleGet({ role, authorization }: {
520
486
  role: CodeShiftRole;
521
487
  authorization: string;
522
488
  }, opts?: Oazapfts.RequestOpts): Promise<RolesResponse>;
523
- /**
524
- * List Application Report
525
- */
526
- export declare function listApplicationReportV1ApplicationsApplicationIdReportsGet({ applicationId, pageSize, page, lastEvaluatedKey, authorization }: {
527
- applicationId: string;
528
- pageSize?: number;
529
- page?: number;
530
- lastEvaluatedKey?: string;
531
- authorization: string;
532
- }, opts?: Oazapfts.RequestOpts): Promise<ListApplicationReportResponse>;
533
- /**
534
- * Create Applications Batch Service
535
- */
536
- export declare function createApplicationsBatchServiceV1ApplicationsBatchPost({ authorization, bodyCreateApplicationsBatchServiceV1ApplicationsBatchPost }: {
537
- authorization: string;
538
- bodyCreateApplicationsBatchServiceV1ApplicationsBatchPost: BodyCreateApplicationsBatchServiceV1ApplicationsBatchPost;
539
- }, opts?: Oazapfts.RequestOpts): Promise<any>;
540
- /**
541
- * Create Application Service
542
- */
543
- export declare function createApplicationServiceV1ApplicationsPost({ authorization, createApplicationRequest }: {
544
- authorization: string;
545
- createApplicationRequest: CreateApplicationRequest;
546
- }, opts?: Oazapfts.RequestOpts): Promise<any>;
547
- /**
548
- * List Application Service
549
- */
550
- export declare function listApplicationServiceV1ApplicationsGet({ pageSize, page, lastEvaluatedKey, filter, moduleId, authorization }: {
551
- pageSize?: number;
552
- page?: number;
553
- lastEvaluatedKey?: string;
554
- filter?: string;
555
- moduleId?: string;
556
- authorization: string;
557
- }, opts?: Oazapfts.RequestOpts): Promise<ListApplicationResponse>;
558
- /**
559
- * Get Application By Id Service
560
- */
561
- export declare function getApplicationByIdServiceV1ApplicationsApplicationIdGet({ applicationId, authorization }: {
562
- applicationId: string;
563
- authorization: string;
564
- }, opts?: Oazapfts.RequestOpts): Promise<ApplicationResponse>;
565
- /**
566
- * Delete Application Service
567
- */
568
- export declare function deleteApplicationServiceV1ApplicationsApplicationIdDelete({ applicationId, authorization }: {
569
- applicationId: string;
570
- authorization: string;
571
- }, opts?: Oazapfts.RequestOpts): Promise<any>;
572
- /**
573
- * Update Application Service
574
- */
575
- export declare function updateApplicationServiceV1ApplicationsApplicationIdPut({ applicationId, authorization, putApplicationRequest }: {
576
- applicationId: string;
577
- authorization: string;
578
- putApplicationRequest: PutApplicationRequest;
579
- }, opts?: Oazapfts.RequestOpts): Promise<any>;
580
489
  /**
581
490
  * Create Module Service
582
491
  */
@@ -635,6 +544,13 @@ export declare function getReportV1ReportsReportIdGet({ reportId, authorization
635
544
  reportId: string;
636
545
  authorization: string;
637
546
  }, opts?: Oazapfts.RequestOpts): Promise<GetReportResponse>;
547
+ /**
548
+ * Get Report Pull Request Content
549
+ */
550
+ export declare function getReportPullRequestContentV1ReportsReportIdPullRequestGet({ reportId, authorization }: {
551
+ reportId: string;
552
+ authorization: string;
553
+ }, opts?: Oazapfts.RequestOpts): Promise<GetPullRequest>;
638
554
  /**
639
555
  * Download Report
640
556
  */
@@ -706,13 +622,20 @@ export declare function listRepositoryServiceV1ReposGet({ pageSize, page, lastEv
706
622
  tags?: string[] | null;
707
623
  authorization: string;
708
624
  }, opts?: Oazapfts.RequestOpts): Promise<ListRepositoryResponse>;
625
+ /**
626
+ * List Branches Service
627
+ */
628
+ export declare function listBranchesServiceV1ReposBranchesGet({ repositoryUrl, authorization }: {
629
+ repositoryUrl: string;
630
+ authorization: string;
631
+ }, opts?: Oazapfts.RequestOpts): Promise<ListBranchesResponse>;
709
632
  /**
710
633
  * Get Repository By Id Service
711
634
  */
712
635
  export declare function getRepositoryByIdServiceV1ReposRepositoryIdGet({ repositoryId, authorization }: {
713
636
  repositoryId: string;
714
637
  authorization: string;
715
- }, opts?: Oazapfts.RequestOpts): Promise<RepositoryResponse2>;
638
+ }, opts?: Oazapfts.RequestOpts): Promise<RepositoryResponse>;
716
639
  /**
717
640
  * Delete Repository Service
718
641
  */
@@ -728,6 +651,13 @@ export declare function updateRepositoryServiceV1ReposRepositoryIdPut({ reposito
728
651
  authorization: string;
729
652
  putRepositoryRequest: PutRepositoryRequest;
730
653
  }, opts?: Oazapfts.RequestOpts): Promise<any>;
654
+ /**
655
+ * Validate Scm Url Service
656
+ */
657
+ export declare function validateScmUrlServiceV1ReposValidateScmUrlPost({ authorization, validateScmUrlRequest }: {
658
+ authorization: string;
659
+ validateScmUrlRequest: ValidateScmUrlRequest;
660
+ }, opts?: Oazapfts.RequestOpts): Promise<any>;
731
661
  /**
732
662
  * Get Account Settings
733
663
  */
@@ -830,6 +760,14 @@ export declare function deleteProgramGroupServiceV1ProgramGroupsProgramGroupIdDe
830
760
  programGroupId: string;
831
761
  authorization: string;
832
762
  }, opts?: Oazapfts.RequestOpts): Promise<any>;
763
+ /**
764
+ * Update Program Group Components Service
765
+ */
766
+ export declare function updateProgramGroupComponentsServiceV1ProgramGroupsProgramGroupIdComponentsPut({ programGroupId, authorization, body }: {
767
+ programGroupId: string;
768
+ authorization: string;
769
+ body: PutProgramGroupComponentsRequest[];
770
+ }, opts?: Oazapfts.RequestOpts): Promise<any>;
833
771
  /**
834
772
  * List Program Group Report Service
835
773
  */