@stack-spot/portal-network 0.173.1 → 0.175.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.
Files changed (39) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/api/codeShift.d.ts +488 -21
  3. package/dist/api/codeShift.d.ts.map +1 -1
  4. package/dist/api/codeShift.js +204 -0
  5. package/dist/api/codeShift.js.map +1 -1
  6. package/dist/api/discover.d.ts +294 -0
  7. package/dist/api/discover.d.ts.map +1 -0
  8. package/dist/api/discover.js +180 -0
  9. package/dist/api/discover.js.map +1 -0
  10. package/dist/apis.json +2 -2
  11. package/dist/client/code-shift.d.ts +174 -26
  12. package/dist/client/code-shift.d.ts.map +1 -1
  13. package/dist/client/code-shift.js +97 -7
  14. package/dist/client/code-shift.js.map +1 -1
  15. package/dist/client/discover.d.ts +64 -0
  16. package/dist/client/discover.d.ts.map +1 -0
  17. package/dist/client/discover.js +124 -0
  18. package/dist/client/discover.js.map +1 -0
  19. package/dist/index.d.ts +2 -1
  20. package/dist/index.d.ts.map +1 -1
  21. package/dist/index.js +2 -1
  22. package/dist/index.js.map +1 -1
  23. package/package.json +1 -1
  24. package/src/api/codeShift.ts +849 -32
  25. package/src/api/discover.ts +435 -0
  26. package/src/apis.json +2 -2
  27. package/src/client/code-shift.ts +68 -7
  28. package/src/client/discover.ts +89 -0
  29. package/src/index.ts +2 -1
  30. package/dist/api/discovery.d.ts +0 -494
  31. package/dist/api/discovery.d.ts.map +0 -1
  32. package/dist/api/discovery.js +0 -205
  33. package/dist/api/discovery.js.map +0 -1
  34. package/dist/client/discovery.d.ts +0 -110
  35. package/dist/client/discovery.d.ts.map +0 -1
  36. package/dist/client/discovery.js +0 -133
  37. package/dist/client/discovery.js.map +0 -1
  38. package/src/api/discovery.ts +0 -729
  39. package/src/client/discovery.ts +0 -73
@@ -43,9 +43,9 @@ export type CreateModuleRequest = {
43
43
  /** Module description */
44
44
  description: string;
45
45
  /** Module workflow_name */
46
- workflowName: string;
46
+ workflowName?: string | null;
47
47
  /** Module version */
48
- version: string;
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: string;
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_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_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: string;
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: TargetFilesRequest[];
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;
@@ -697,7 +1016,7 @@ export function checkRoleRouteV1RolesRoleGet({ role, authorization }: {
697
1016
  */
698
1017
  export function createModuleServiceV1ModulesPost({ authorization, xAccountSlug, createModuleRequest }: {
699
1018
  authorization: string;
700
- xAccountSlug?: any;
1019
+ xAccountSlug?: string;
701
1020
  createModuleRequest: CreateModuleRequest;
702
1021
  }, opts?: Oazapfts.RequestOpts) {
703
1022
  return oazapfts.ok(oazapfts.fetchJson<{
@@ -738,7 +1057,7 @@ export function listModulesServiceV1ModulesGet({ pageSize, moduleType, page, las
738
1057
  moduleType?: ModuleType | null;
739
1058
  page?: number;
740
1059
  lastEvaluatedKey?: string;
741
- xAccountSlug?: any;
1060
+ xAccountSlug?: string;
742
1061
  authorization: string;
743
1062
  }, opts?: Oazapfts.RequestOpts) {
744
1063
  return oazapfts.ok(oazapfts.fetchJson<{
@@ -780,7 +1099,7 @@ export function listModulesServiceV1ModulesGet({ pageSize, moduleType, page, las
780
1099
  export function deleteModuleServiceV1ModulesModuleIdDelete({ moduleId, authorization, xAccountSlug }: {
781
1100
  moduleId: string;
782
1101
  authorization: string;
783
- xAccountSlug?: any;
1102
+ xAccountSlug?: string;
784
1103
  }, opts?: Oazapfts.RequestOpts) {
785
1104
  return oazapfts.ok(oazapfts.fetchJson<{
786
1105
  status: 200;
@@ -817,7 +1136,7 @@ export function deleteModuleServiceV1ModulesModuleIdDelete({ moduleId, authoriza
817
1136
  export function updateModuleServiceV1ModulesModuleIdPut({ moduleId, authorization, xAccountSlug, putModuleRequest }: {
818
1137
  moduleId: string;
819
1138
  authorization: string;
820
- xAccountSlug?: any;
1139
+ xAccountSlug?: string;
821
1140
  putModuleRequest: PutModuleRequest;
822
1141
  }, opts?: Oazapfts.RequestOpts) {
823
1142
  return oazapfts.ok(oazapfts.fetchJson<{
@@ -850,6 +1169,74 @@ export function updateModuleServiceV1ModulesModuleIdPut({ moduleId, authorizatio
850
1169
  })
851
1170
  })));
852
1171
  }
1172
+ /**
1173
+ * Get Module
1174
+ */
1175
+ export function getModuleV1ModulesModuleIdGet({ moduleId, authorization }: {
1176
+ moduleId: string;
1177
+ authorization: string;
1178
+ }, opts?: Oazapfts.RequestOpts) {
1179
+ return oazapfts.ok(oazapfts.fetchJson<{
1180
+ status: 200;
1181
+ data: GetModuleResponse;
1182
+ } | {
1183
+ status: 400;
1184
+ data: HttpErrorResponseRead;
1185
+ } | {
1186
+ status: 401;
1187
+ data: HttpErrorResponseRead;
1188
+ } | {
1189
+ status: 404;
1190
+ data: HttpErrorResponseRead;
1191
+ } | {
1192
+ status: 422;
1193
+ } | {
1194
+ status: 500;
1195
+ data: HttpErrorResponseRead;
1196
+ } | {
1197
+ status: 503;
1198
+ data: HttpErrorResponseRead;
1199
+ }>(`/v1/modules/${encodeURIComponent(moduleId)}`, {
1200
+ ...opts,
1201
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1202
+ authorization
1203
+ })
1204
+ }));
1205
+ }
1206
+ /**
1207
+ * Get Module Inputs
1208
+ */
1209
+ export function getModuleInputsV1ModulesModuleIdInputsGet({ moduleId, authorization }: {
1210
+ moduleId: string;
1211
+ authorization: string;
1212
+ }, opts?: Oazapfts.RequestOpts) {
1213
+ return oazapfts.ok(oazapfts.fetchJson<{
1214
+ status: 200;
1215
+ data: GetModuleInputsResponse;
1216
+ } | {
1217
+ status: 400;
1218
+ data: HttpErrorResponseRead;
1219
+ } | {
1220
+ status: 401;
1221
+ data: HttpErrorResponseRead;
1222
+ } | {
1223
+ status: 404;
1224
+ data: HttpErrorResponseRead;
1225
+ } | {
1226
+ status: 422;
1227
+ } | {
1228
+ status: 500;
1229
+ data: HttpErrorResponseRead;
1230
+ } | {
1231
+ status: 503;
1232
+ data: HttpErrorResponseRead;
1233
+ }>(`/v1/modules/${encodeURIComponent(moduleId)}/inputs`, {
1234
+ ...opts,
1235
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1236
+ authorization
1237
+ })
1238
+ }));
1239
+ }
853
1240
  /**
854
1241
  * Dispatch Module Service
855
1242
  */
@@ -932,7 +1319,7 @@ export function getReportV1ReportsReportIdGet({ reportId, authorization }: {
932
1319
  }, opts?: Oazapfts.RequestOpts) {
933
1320
  return oazapfts.ok(oazapfts.fetchJson<{
934
1321
  status: 200;
935
- data: GetReportResponse;
1322
+ data: GetReportResponseRead;
936
1323
  } | {
937
1324
  status: 400;
938
1325
  data: HttpErrorResponseRead;
@@ -1105,7 +1492,7 @@ export function listRepositoryReportV1ReposRepositoryIdReportsGet({ repositoryId
1105
1492
  }, opts?: Oazapfts.RequestOpts) {
1106
1493
  return oazapfts.ok(oazapfts.fetchJson<{
1107
1494
  status: 200;
1108
- data: ListRepositoryReportResponse;
1495
+ data: ListRepositoryReportResponseRead;
1109
1496
  } | {
1110
1497
  status: 400;
1111
1498
  data: HttpErrorResponseRead;
@@ -1223,14 +1610,14 @@ export function listRepositoryServiceV1ReposGet({ pageSize, page, lastEvaluatedK
1223
1610
  moduleId?: string;
1224
1611
  createdByEmail?: string | null;
1225
1612
  reportByEmail?: string | null;
1226
- orderBy?: string;
1613
+ 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";
1227
1614
  orderDirection?: string;
1228
1615
  tags?: string[] | null;
1229
1616
  authorization: string;
1230
1617
  }, opts?: Oazapfts.RequestOpts) {
1231
1618
  return oazapfts.ok(oazapfts.fetchJson<{
1232
1619
  status: 200;
1233
- data: ListRepositoryResponse;
1620
+ data: ListRepositoryResponseRead;
1234
1621
  } | {
1235
1622
  status: 400;
1236
1623
  data: HttpErrorResponseRead;
@@ -1267,15 +1654,22 @@ export function listRepositoryServiceV1ReposGet({ pageSize, page, lastEvaluatedK
1267
1654
  }));
1268
1655
  }
1269
1656
  /**
1270
- * List Branches Service
1657
+ * List Repository Download Service
1271
1658
  */
1272
- export function listBranchesServiceV1ReposBranchesGet({ repositoryUrl, authorization }: {
1273
- repositoryUrl: string;
1659
+ export function listRepositoryDownloadServiceV1ReposDownloadGet({ filter, moduleId, createdByEmail, reportByEmail, orderBy, orderDirection, tags, extension, authorization }: {
1660
+ filter?: string;
1661
+ moduleId?: string;
1662
+ createdByEmail?: string | null;
1663
+ reportByEmail?: string | null;
1664
+ 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";
1665
+ orderDirection?: string;
1666
+ tags?: string[] | null;
1667
+ extension?: "csv" | "xlsx";
1274
1668
  authorization: string;
1275
1669
  }, opts?: Oazapfts.RequestOpts) {
1276
1670
  return oazapfts.ok(oazapfts.fetchJson<{
1277
1671
  status: 200;
1278
- data: ListBranchesResponse;
1672
+ data: any;
1279
1673
  } | {
1280
1674
  status: 400;
1281
1675
  data: HttpErrorResponseRead;
@@ -1293,13 +1687,56 @@ export function listBranchesServiceV1ReposBranchesGet({ repositoryUrl, authoriza
1293
1687
  } | {
1294
1688
  status: 503;
1295
1689
  data: HttpErrorResponseRead;
1296
- }>(`/v1/repos/branches${QS.query(QS.explode({
1297
- repositoryUrl
1298
- }))}`, {
1299
- ...opts,
1300
- headers: oazapfts.mergeHeaders(opts?.headers, {
1301
- authorization
1302
- })
1690
+ }>(`/v1/repos/download${QS.query(QS.explode({
1691
+ filter,
1692
+ moduleId,
1693
+ createdByEmail,
1694
+ reportByEmail,
1695
+ orderBy,
1696
+ orderDirection,
1697
+ tags,
1698
+ extension
1699
+ }))}`, {
1700
+ ...opts,
1701
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1702
+ authorization
1703
+ })
1704
+ }));
1705
+ }
1706
+ /**
1707
+ * List Branches Service
1708
+ */
1709
+ export function listBranchesServiceV1ReposBranchesGet({ repositoryUrl, authorization }: {
1710
+ repositoryUrl: string;
1711
+ authorization: string;
1712
+ }, opts?: Oazapfts.RequestOpts) {
1713
+ return oazapfts.ok(oazapfts.fetchJson<{
1714
+ status: 200;
1715
+ data: ListBranchesResponse;
1716
+ } | {
1717
+ status: 400;
1718
+ data: HttpErrorResponseRead;
1719
+ } | {
1720
+ status: 401;
1721
+ data: HttpErrorResponseRead;
1722
+ } | {
1723
+ status: 404;
1724
+ data: HttpErrorResponseRead;
1725
+ } | {
1726
+ status: 422;
1727
+ } | {
1728
+ status: 500;
1729
+ data: HttpErrorResponseRead;
1730
+ } | {
1731
+ status: 503;
1732
+ data: HttpErrorResponseRead;
1733
+ }>(`/v1/repos/branches${QS.query(QS.explode({
1734
+ repositoryUrl
1735
+ }))}`, {
1736
+ ...opts,
1737
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1738
+ authorization
1739
+ })
1303
1740
  }));
1304
1741
  }
1305
1742
  /**
@@ -1311,7 +1748,7 @@ export function getRepositoryByIdServiceV1ReposRepositoryIdGet({ repositoryId, a
1311
1748
  }, opts?: Oazapfts.RequestOpts) {
1312
1749
  return oazapfts.ok(oazapfts.fetchJson<{
1313
1750
  status: 200;
1314
- data: RepositoryResponse;
1751
+ data: RepositoryResponseRead;
1315
1752
  } | {
1316
1753
  status: 400;
1317
1754
  data: HttpErrorResponseRead;
@@ -1637,14 +2074,14 @@ export function listProgramGroupServiceV1ProgramGroupsGet({ moduleId, createdByE
1637
2074
  name?: string | null;
1638
2075
  pageSize?: number;
1639
2076
  page?: number;
1640
- orderBy?: string;
2077
+ 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";
1641
2078
  orderDirection?: string;
1642
2079
  integrationId?: string;
1643
2080
  authorization: string;
1644
2081
  }, opts?: Oazapfts.RequestOpts) {
1645
2082
  return oazapfts.ok(oazapfts.fetchJson<{
1646
2083
  status: 200;
1647
- data: ListProgramGroupResponse;
2084
+ data: ListProgramGroupResponseRead;
1648
2085
  } | {
1649
2086
  status: 422;
1650
2087
  data: HttpValidationError;
@@ -1666,6 +2103,44 @@ export function listProgramGroupServiceV1ProgramGroupsGet({ moduleId, createdByE
1666
2103
  })
1667
2104
  }));
1668
2105
  }
2106
+ /**
2107
+ * List Program Group Download Service
2108
+ */
2109
+ export function listProgramGroupDownloadServiceV1ProgramGroupsDownloadGet({ moduleId, createdByEmail, reportByEmail, tags, name, orderBy, orderDirection, integrationId, extension, authorization }: {
2110
+ moduleId?: string | null;
2111
+ createdByEmail?: string | null;
2112
+ reportByEmail?: string | null;
2113
+ tags?: string[] | null;
2114
+ name?: string | null;
2115
+ 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";
2116
+ orderDirection?: string;
2117
+ integrationId?: string;
2118
+ extension?: "csv" | "xlsx";
2119
+ authorization: string;
2120
+ }, opts?: Oazapfts.RequestOpts) {
2121
+ return oazapfts.ok(oazapfts.fetchJson<{
2122
+ status: 200;
2123
+ data: any;
2124
+ } | {
2125
+ status: 422;
2126
+ data: HttpValidationError;
2127
+ }>(`/v1/program-groups/download${QS.query(QS.explode({
2128
+ moduleId,
2129
+ createdByEmail,
2130
+ reportByEmail,
2131
+ tags,
2132
+ name,
2133
+ orderBy,
2134
+ orderDirection,
2135
+ integrationId,
2136
+ extension
2137
+ }))}`, {
2138
+ ...opts,
2139
+ headers: oazapfts.mergeHeaders(opts?.headers, {
2140
+ authorization
2141
+ })
2142
+ }));
2143
+ }
1669
2144
  /**
1670
2145
  * Get Program Group By Id Service
1671
2146
  */
@@ -1772,7 +2247,7 @@ export function listProgramGroupReportServiceV1ProgramGroupsProgramGroupIdReport
1772
2247
  }, opts?: Oazapfts.RequestOpts) {
1773
2248
  return oazapfts.ok(oazapfts.fetchJson<{
1774
2249
  status: 200;
1775
- data: ListProgramGroupReportResponse;
2250
+ data: ListProgramGroupReportResponseRead;
1776
2251
  } | {
1777
2252
  status: 422;
1778
2253
  data: HttpValidationError;
@@ -1857,7 +2332,7 @@ export function analyticsRepositoryLastReportStatusV1AnalyticsRepositoriesLastRe
1857
2332
  executedBy?: string[] | null;
1858
2333
  repositoryUrl?: string | null;
1859
2334
  tags?: string[] | null;
1860
- orderBy?: ("repositoryUrl" | "moduleName" | "mode" | "reportCreatedAt" | "reportCreatedBy" | "totalFiles" | "totalFilesAnalyzed" | "totalFilesIssues" | "totalFilesChanged" | "totalIssues") | null;
2335
+ orderBy?: ("repositoryUrl" | "moduleName" | "merged" | "mode" | "reportCreatedAt" | "reportCreatedBy" | "totalFiles" | "totalFilesAnalyzed" | "totalFilesIssues" | "totalFilesChanged" | "totalIssues") | null;
1861
2336
  orderDirection?: ("ASC" | "DESC") | null;
1862
2337
  startDate?: string | null;
1863
2338
  endDate?: string | null;
@@ -2379,6 +2854,348 @@ export function analyticsProgramGroupsUsageDownloadV1AnalyticsProgramGroupsUsage
2379
2854
  })
2380
2855
  }));
2381
2856
  }
2857
+ /**
2858
+ * Analytics Program Groups Details
2859
+ */
2860
+ export function analyticsProgramGroupsDetailsV1AnalyticsProgramGroupsDetailsGet({ pageSize, page, programName, tags, mode, moduleId, programCreatedById, reportCreatedById, startDate, endDate, orderBy, orderDirection, authorization }: {
2861
+ pageSize?: number;
2862
+ page?: number;
2863
+ programName?: string | null;
2864
+ tags?: string[] | null;
2865
+ mode?: ("scan" | "fix") | null;
2866
+ moduleId?: string[] | null;
2867
+ programCreatedById?: string[] | null;
2868
+ reportCreatedById?: string[] | null;
2869
+ startDate?: string;
2870
+ endDate?: string;
2871
+ orderBy?: ("programGroupName" | "moduleName" | "mode" | "reportCreatedAt" | "reportCreatedByName" | "executionStartedAt" | "executionCompletedAt" | "totalFilesCount" | "analyzedFilesCount" | "issuesFilesCount" | "changedFilesCount" | "issuesCount" | "processingTimeSeconds") | null;
2872
+ orderDirection?: ("ASC" | "DESC") | null;
2873
+ authorization: string;
2874
+ }, opts?: Oazapfts.RequestOpts) {
2875
+ return oazapfts.ok(oazapfts.fetchJson<{
2876
+ status: 200;
2877
+ data: AnalyticsProgramGroupsDetailsResponse;
2878
+ } | {
2879
+ status: 400;
2880
+ data: HttpErrorResponseRead;
2881
+ } | {
2882
+ status: 401;
2883
+ data: HttpErrorResponseRead;
2884
+ } | {
2885
+ status: 404;
2886
+ data: HttpErrorResponseRead;
2887
+ } | {
2888
+ status: 422;
2889
+ } | {
2890
+ status: 500;
2891
+ data: HttpErrorResponseRead;
2892
+ } | {
2893
+ status: 503;
2894
+ data: HttpErrorResponseRead;
2895
+ }>(`/v1/analytics/program-groups/details${QS.query(QS.explode({
2896
+ pageSize,
2897
+ page,
2898
+ programName,
2899
+ tags,
2900
+ mode,
2901
+ moduleId,
2902
+ programCreatedById,
2903
+ reportCreatedById,
2904
+ startDate,
2905
+ endDate,
2906
+ orderBy,
2907
+ orderDirection
2908
+ }))}`, {
2909
+ ...opts,
2910
+ headers: oazapfts.mergeHeaders(opts?.headers, {
2911
+ authorization
2912
+ })
2913
+ }));
2914
+ }
2915
+ /**
2916
+ * Analytics Program Groups Details Download
2917
+ */
2918
+ export function analyticsProgramGroupsDetailsDownloadV1AnalyticsProgramGroupsDetailsDownloadGet({ programName, tags, mode, moduleId, programCreatedById, reportCreatedById, startDate, endDate, orderBy, orderDirection, extension, authorization }: {
2919
+ programName?: string | null;
2920
+ tags?: string[] | null;
2921
+ mode?: ("scan" | "fix") | null;
2922
+ moduleId?: string[] | null;
2923
+ programCreatedById?: string[] | null;
2924
+ reportCreatedById?: string[] | null;
2925
+ startDate?: string;
2926
+ endDate?: string;
2927
+ orderBy?: ("programGroupName" | "moduleName" | "mode" | "reportCreatedAt" | "reportCreatedByName" | "executionStartedAt" | "executionCompletedAt" | "totalFilesCount" | "analyzedFilesCount" | "issuesFilesCount" | "changedFilesCount" | "issuesCount" | "processingTimeSeconds") | null;
2928
+ orderDirection?: ("ASC" | "DESC") | null;
2929
+ extension?: "csv" | "xlsx";
2930
+ authorization: string;
2931
+ }, opts?: Oazapfts.RequestOpts) {
2932
+ return oazapfts.ok(oazapfts.fetchJson<{
2933
+ status: 200;
2934
+ data: any;
2935
+ } | {
2936
+ status: 400;
2937
+ data: HttpErrorResponseRead;
2938
+ } | {
2939
+ status: 401;
2940
+ data: HttpErrorResponseRead;
2941
+ } | {
2942
+ status: 404;
2943
+ data: HttpErrorResponseRead;
2944
+ } | {
2945
+ status: 422;
2946
+ } | {
2947
+ status: 500;
2948
+ data: HttpErrorResponseRead;
2949
+ } | {
2950
+ status: 503;
2951
+ data: HttpErrorResponseRead;
2952
+ }>(`/v1/analytics/program-groups/details/download${QS.query(QS.explode({
2953
+ programName,
2954
+ tags,
2955
+ mode,
2956
+ moduleId,
2957
+ programCreatedById,
2958
+ reportCreatedById,
2959
+ startDate,
2960
+ endDate,
2961
+ orderBy,
2962
+ orderDirection,
2963
+ extension
2964
+ }))}`, {
2965
+ ...opts,
2966
+ headers: oazapfts.mergeHeaders(opts?.headers, {
2967
+ authorization
2968
+ })
2969
+ }));
2970
+ }
2971
+ /**
2972
+ * Analytics Repository Detailed Report
2973
+ */
2974
+ export function analyticsRepositoryDetailedReportV1AnalyticsRepositoriesDetailsGet({ pageSize, page, repositoryUrl, tags, mode, moduleId, repositoryCreatedById, executedBy, startDate, endDate, orderBy, orderDirection, authorization }: {
2975
+ pageSize?: number;
2976
+ page?: number;
2977
+ repositoryUrl?: string | null;
2978
+ tags?: string[] | null;
2979
+ mode?: ("scan" | "fix") | null;
2980
+ moduleId?: string[] | null;
2981
+ repositoryCreatedById?: string[] | null;
2982
+ executedBy?: string[] | null;
2983
+ startDate?: string;
2984
+ endDate?: string;
2985
+ orderBy?: ("totalFilesCount" | "analyzedFilesCount" | "changedFilesCount" | "issuesCount" | "issuesFilesCount" | "reportCreatedAt" | "repositoryUrl" | "sourceBranch" | "targetBranch" | "executionCompletedAt" | "executionStartedAt" | "moduleName" | "moduleVersion" | "processingTimeSeconds" | "pullRequestLink" | "reportCreatedByEmail" | "reportCreatedByName" | "repositoryCreatedByEmail" | "repositoryCreatedByName") | null;
2986
+ orderDirection?: ("ASC" | "DESC") | null;
2987
+ authorization: string;
2988
+ }, opts?: Oazapfts.RequestOpts) {
2989
+ return oazapfts.ok(oazapfts.fetchJson<{
2990
+ status: 200;
2991
+ data: AnalyticsRepositoryDetailedReportResponse;
2992
+ } | {
2993
+ status: 400;
2994
+ data: HttpErrorResponseRead;
2995
+ } | {
2996
+ status: 401;
2997
+ data: HttpErrorResponseRead;
2998
+ } | {
2999
+ status: 404;
3000
+ data: HttpErrorResponseRead;
3001
+ } | {
3002
+ status: 422;
3003
+ } | {
3004
+ status: 500;
3005
+ data: HttpErrorResponseRead;
3006
+ } | {
3007
+ status: 503;
3008
+ data: HttpErrorResponseRead;
3009
+ }>(`/v1/analytics/repositories/details${QS.query(QS.explode({
3010
+ pageSize,
3011
+ page,
3012
+ repositoryUrl,
3013
+ tags,
3014
+ mode,
3015
+ moduleId,
3016
+ repositoryCreatedById,
3017
+ executedBy,
3018
+ startDate,
3019
+ endDate,
3020
+ orderBy,
3021
+ orderDirection
3022
+ }))}`, {
3023
+ ...opts,
3024
+ headers: oazapfts.mergeHeaders(opts?.headers, {
3025
+ authorization
3026
+ })
3027
+ }));
3028
+ }
3029
+ /**
3030
+ * Analytics Repository Detailed Report Download
3031
+ */
3032
+ export function analyticsRepositoryDetailedReportDownloadV1AnalyticsRepositoriesDetailsDownloadGet({ repositoryUrl, tags, mode, moduleId, repositoryCreatedById, reportCreatedById, startDate, endDate, orderBy, orderDirection, extension, authorization }: {
3033
+ repositoryUrl?: string | null;
3034
+ tags?: string[] | null;
3035
+ mode?: ("scan" | "fix") | null;
3036
+ moduleId?: string[] | null;
3037
+ repositoryCreatedById?: string[] | null;
3038
+ reportCreatedById?: string[] | null;
3039
+ startDate?: string;
3040
+ endDate?: string;
3041
+ orderBy?: ("totalFilesCount" | "analyzedFilesCount" | "changedFilesCount" | "issuesCount" | "issuesFilesCount" | "reportCreatedAt" | "repositoryUrl" | "sourceBranch" | "targetBranch" | "executionCompletedAt" | "executionStartedAt" | "moduleName" | "moduleVersion" | "processingTimeSeconds" | "pullRequestLink" | "reportCreatedByEmail" | "reportCreatedByName" | "repositoryCreatedByEmail" | "repositoryCreatedByName") | null;
3042
+ orderDirection?: ("ASC" | "DESC") | null;
3043
+ extension?: "csv" | "xlsx";
3044
+ authorization: string;
3045
+ }, opts?: Oazapfts.RequestOpts) {
3046
+ return oazapfts.ok(oazapfts.fetchJson<{
3047
+ status: 200;
3048
+ data: AnalyticsRepositoryDetailedReportResponse;
3049
+ } | {
3050
+ status: 400;
3051
+ data: HttpErrorResponseRead;
3052
+ } | {
3053
+ status: 401;
3054
+ data: HttpErrorResponseRead;
3055
+ } | {
3056
+ status: 404;
3057
+ data: HttpErrorResponseRead;
3058
+ } | {
3059
+ status: 422;
3060
+ } | {
3061
+ status: 500;
3062
+ data: HttpErrorResponseRead;
3063
+ } | {
3064
+ status: 503;
3065
+ data: HttpErrorResponseRead;
3066
+ }>(`/v1/analytics/repositories/details/download${QS.query(QS.explode({
3067
+ repositoryUrl,
3068
+ tags,
3069
+ mode,
3070
+ moduleId,
3071
+ repositoryCreatedById,
3072
+ reportCreatedById,
3073
+ startDate,
3074
+ endDate,
3075
+ orderBy,
3076
+ orderDirection,
3077
+ extension
3078
+ }))}`, {
3079
+ ...opts,
3080
+ headers: oazapfts.mergeHeaders(opts?.headers, {
3081
+ authorization
3082
+ })
3083
+ }));
3084
+ }
3085
+ /**
3086
+ * Analytics Program Groups Target Details
3087
+ */
3088
+ export function analyticsProgramGroupsTargetDetailsV1AnalyticsProgramGroupsTargetDetailsGet({ pageSize, page, programName, componentName, tags, mode, moduleId, reportCreatedById, startDate, endDate, orderBy, orderDirection, authorization }: {
3089
+ pageSize?: number;
3090
+ page?: number;
3091
+ programName?: string | null;
3092
+ componentName?: string | null;
3093
+ tags?: string[] | null;
3094
+ mode?: ("scan" | "fix") | null;
3095
+ moduleId?: string[] | null;
3096
+ reportCreatedById?: string[] | null;
3097
+ startDate?: string;
3098
+ endDate?: string;
3099
+ orderBy?: ("programGroupName" | "moduleName" | "mode" | "reportCreatedAt" | "executionStartedAt" | "executionCompletedAt" | "componentAppName" | "componentName" | "componentType" | "totalIssues" | "changedFilesCount") | null;
3100
+ orderDirection?: ("ASC" | "DESC") | null;
3101
+ authorization: string;
3102
+ }, opts?: Oazapfts.RequestOpts) {
3103
+ return oazapfts.ok(oazapfts.fetchJson<{
3104
+ status: 200;
3105
+ data: AnalyticsProgramGroupsTargetDetailsResponse;
3106
+ } | {
3107
+ status: 400;
3108
+ data: HttpErrorResponseRead;
3109
+ } | {
3110
+ status: 401;
3111
+ data: HttpErrorResponseRead;
3112
+ } | {
3113
+ status: 404;
3114
+ data: HttpErrorResponseRead;
3115
+ } | {
3116
+ status: 422;
3117
+ } | {
3118
+ status: 500;
3119
+ data: HttpErrorResponseRead;
3120
+ } | {
3121
+ status: 503;
3122
+ data: HttpErrorResponseRead;
3123
+ }>(`/v1/analytics/program-groups/target-details${QS.query(QS.explode({
3124
+ pageSize,
3125
+ page,
3126
+ programName,
3127
+ componentName,
3128
+ tags,
3129
+ mode,
3130
+ moduleId,
3131
+ reportCreatedById,
3132
+ startDate,
3133
+ endDate,
3134
+ orderBy,
3135
+ orderDirection
3136
+ }))}`, {
3137
+ ...opts,
3138
+ headers: oazapfts.mergeHeaders(opts?.headers, {
3139
+ authorization
3140
+ })
3141
+ }));
3142
+ }
3143
+ /**
3144
+ * Analytics Program Groups Target Details Download
3145
+ */
3146
+ export function analyticsProgramGroupsTargetDetailsDownloadV1AnalyticsProgramGroupsTargetDetailsDownloadGet({ programName, tags, mode, moduleId, componentName, reportCreatedById, startDate, endDate, orderBy, orderDirection, extension, authorization }: {
3147
+ programName?: string | null;
3148
+ tags?: string[] | null;
3149
+ mode?: ("scan" | "fix") | null;
3150
+ moduleId?: string[] | null;
3151
+ componentName?: string | null;
3152
+ reportCreatedById?: string[] | null;
3153
+ startDate?: string;
3154
+ endDate?: string;
3155
+ orderBy?: ("programGroupName" | "moduleName" | "mode" | "reportCreatedAt" | "executionStartedAt" | "executionCompletedAt" | "componentAppName" | "componentName" | "componentType" | "totalIssues" | "changedFilesCount") | null;
3156
+ orderDirection?: ("ASC" | "DESC") | null;
3157
+ extension?: "csv" | "xlsx";
3158
+ authorization: string;
3159
+ }, opts?: Oazapfts.RequestOpts) {
3160
+ return oazapfts.ok(oazapfts.fetchJson<{
3161
+ status: 200;
3162
+ data: any;
3163
+ } | {
3164
+ status: 400;
3165
+ data: HttpErrorResponseRead;
3166
+ } | {
3167
+ status: 401;
3168
+ data: HttpErrorResponseRead;
3169
+ } | {
3170
+ status: 404;
3171
+ data: HttpErrorResponseRead;
3172
+ } | {
3173
+ status: 422;
3174
+ } | {
3175
+ status: 500;
3176
+ data: HttpErrorResponseRead;
3177
+ } | {
3178
+ status: 503;
3179
+ data: HttpErrorResponseRead;
3180
+ }>(`/v1/analytics/program-groups/target-details/download${QS.query(QS.explode({
3181
+ programName,
3182
+ tags,
3183
+ mode,
3184
+ moduleId,
3185
+ componentName,
3186
+ reportCreatedById,
3187
+ startDate,
3188
+ endDate,
3189
+ orderBy,
3190
+ orderDirection,
3191
+ extension
3192
+ }))}`, {
3193
+ ...opts,
3194
+ headers: oazapfts.mergeHeaders(opts?.headers, {
3195
+ authorization
3196
+ })
3197
+ }));
3198
+ }
2382
3199
  /**
2383
3200
  * List User Service
2384
3201
  */