@stack-spot/portal-network 0.198.4 → 0.199.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/dist/api/codeShift.d.ts +209 -26
- package/dist/api/codeShift.d.ts.map +1 -1
- package/dist/api/codeShift.js +102 -2
- package/dist/api/codeShift.js.map +1 -1
- package/dist/client/code-shift.d.ts +67 -2
- package/dist/client/code-shift.d.ts.map +1 -1
- package/dist/client/code-shift.js +55 -1
- package/dist/client/code-shift.js.map +1 -1
- package/package.json +1 -1
- package/src/api/codeShift.ts +421 -28
- package/src/client/code-shift.ts +35 -1
package/src/api/codeShift.ts
CHANGED
|
@@ -12,7 +12,7 @@ export const defaults: Oazapfts.Defaults<Oazapfts.CustomHeaders> = {
|
|
|
12
12
|
};
|
|
13
13
|
const oazapfts = Oazapfts.runtime(defaults);
|
|
14
14
|
export const servers = {};
|
|
15
|
-
export type CodeShiftRole = "list-applications" | "create-application" | "list-repository" | "create-repository" | "delete-repository" | "dispatch-module" | "create-module" | "account-settings" | "list-integration" | "create-integration" | "delete-integration" | "list-program-group" | "create-program-group" | "delete-program-group" | "view-analytics" | "account-discovery-repos";
|
|
15
|
+
export type CodeShiftRole = "list-applications" | "create-application" | "list-repository" | "create-repository" | "delete-repository" | "dispatch-module" | "create-module" | "account-settings" | "list-integration" | "create-integration" | "delete-integration" | "list-program-group" | "create-program-group" | "delete-program-group" | "view-analytics" | "account-discovery-repos" | "account-validate-repos";
|
|
16
16
|
export type RolesResponse = {
|
|
17
17
|
result: boolean;
|
|
18
18
|
};
|
|
@@ -66,11 +66,17 @@ export type GitAction = {
|
|
|
66
66
|
directory: string;
|
|
67
67
|
};
|
|
68
68
|
export type ModuleVisibility = "Personal" | "Account";
|
|
69
|
+
export type UserRequest = {
|
|
70
|
+
/** User ID */
|
|
71
|
+
id: string;
|
|
72
|
+
/** User username */
|
|
73
|
+
username: string;
|
|
74
|
+
/** User email */
|
|
75
|
+
email: string;
|
|
76
|
+
};
|
|
69
77
|
export type ModulePermission = "read" | "write";
|
|
70
78
|
export type SharedUserRequest = {
|
|
71
|
-
|
|
72
|
-
email: string;
|
|
73
|
-
/** Permission to grant: 'read' or 'write' */
|
|
79
|
+
user: UserRequest;
|
|
74
80
|
permission: ModulePermission;
|
|
75
81
|
};
|
|
76
82
|
export type CreateModuleRequest = {
|
|
@@ -190,6 +196,9 @@ export type SharedPermissionResponse = {
|
|
|
190
196
|
/** Permission type: 'read' (view/execute) or 'write' (edit/manage) */
|
|
191
197
|
permission: ModulePermission;
|
|
192
198
|
};
|
|
199
|
+
export type UserResponse = {
|
|
200
|
+
name: string;
|
|
201
|
+
};
|
|
193
202
|
export type GetModuleResponse = {
|
|
194
203
|
/** Module ID */
|
|
195
204
|
id: string;
|
|
@@ -226,6 +235,7 @@ export type GetModuleResponse = {
|
|
|
226
235
|
totalUsage: number;
|
|
227
236
|
/** Module users */
|
|
228
237
|
totalUsers: number;
|
|
238
|
+
createdBy: UserResponse | null;
|
|
229
239
|
};
|
|
230
240
|
export type ExternalItemsModel = {
|
|
231
241
|
source: string;
|
|
@@ -243,7 +253,7 @@ export type OutputModel = {
|
|
|
243
253
|
};
|
|
244
254
|
export type InputModel = {
|
|
245
255
|
label: string;
|
|
246
|
-
name: string;
|
|
256
|
+
name: string | null;
|
|
247
257
|
"type": string;
|
|
248
258
|
required: boolean;
|
|
249
259
|
pattern: string | null;
|
|
@@ -267,6 +277,9 @@ export type GetModuleInputsResponse = {
|
|
|
267
277
|
inputs: InputModel[];
|
|
268
278
|
computedInputs: ComputedInputModel[] | null;
|
|
269
279
|
};
|
|
280
|
+
export type GetModuleDocsResponse = {
|
|
281
|
+
content: string;
|
|
282
|
+
};
|
|
270
283
|
export type Mode = "scan" | "fix";
|
|
271
284
|
export type ModuleDispatchRequest = {
|
|
272
285
|
/** Module mode */
|
|
@@ -301,6 +314,9 @@ export type TargetFilesRequest = {
|
|
|
301
314
|
details?: string | null;
|
|
302
315
|
dependsOn?: DependsOnRequest[] | null;
|
|
303
316
|
issues?: IssuesRequest[] | null;
|
|
317
|
+
totalTokenSent?: number | null;
|
|
318
|
+
totalTokenReceived?: number | null;
|
|
319
|
+
modified?: boolean | null;
|
|
304
320
|
};
|
|
305
321
|
export type LanguageInfoRequest = {
|
|
306
322
|
bytes: number;
|
|
@@ -342,7 +358,7 @@ export type ExecutionResponse = {
|
|
|
342
358
|
status: string | null;
|
|
343
359
|
conclusion: string | null;
|
|
344
360
|
};
|
|
345
|
-
export type
|
|
361
|
+
export type UserResponse2 = {
|
|
346
362
|
id: string;
|
|
347
363
|
name: string;
|
|
348
364
|
email: string;
|
|
@@ -371,6 +387,9 @@ export type TargetFilesResponse = {
|
|
|
371
387
|
details?: string | null;
|
|
372
388
|
dependsOn?: DependsOnResponse[] | null;
|
|
373
389
|
issues?: IssuesResponse[] | null;
|
|
390
|
+
totalTokenSent?: number | null;
|
|
391
|
+
totalTokenReceived?: number | null;
|
|
392
|
+
modified?: boolean | null;
|
|
374
393
|
};
|
|
375
394
|
export type ReportStatus = "waiting_dispatch" | "waiting_runner" | "dispatch_failure" | "in_progress" | "suspended" | "error" | "success" | "cancelled";
|
|
376
395
|
export type PullRequestResponse = {
|
|
@@ -387,7 +406,7 @@ export type CustomerRatingResponse = {
|
|
|
387
406
|
report_id: string;
|
|
388
407
|
score: number;
|
|
389
408
|
commentary: string | null;
|
|
390
|
-
created_by:
|
|
409
|
+
created_by: UserResponse2;
|
|
391
410
|
created_at: string;
|
|
392
411
|
};
|
|
393
412
|
export type LanguageResponse = {
|
|
@@ -405,7 +424,7 @@ export type GetReportResponse = {
|
|
|
405
424
|
mode: string;
|
|
406
425
|
sourceBranch: string | null;
|
|
407
426
|
targetBranch?: string | null;
|
|
408
|
-
createdBy:
|
|
427
|
+
createdBy: UserResponse2;
|
|
409
428
|
createdAt: string;
|
|
410
429
|
updatedAt: string;
|
|
411
430
|
filesCount: number | null;
|
|
@@ -442,7 +461,7 @@ export type GetReportResponseRead = {
|
|
|
442
461
|
mode: string;
|
|
443
462
|
sourceBranch: string | null;
|
|
444
463
|
targetBranch?: string | null;
|
|
445
|
-
createdBy:
|
|
464
|
+
createdBy: UserResponse2;
|
|
446
465
|
createdAt: string;
|
|
447
466
|
updatedAt: string;
|
|
448
467
|
filesCount: number | null;
|
|
@@ -490,7 +509,7 @@ export type ModuleResponse3 = {
|
|
|
490
509
|
id: string;
|
|
491
510
|
name: string;
|
|
492
511
|
};
|
|
493
|
-
export type
|
|
512
|
+
export type UserResponse3 = {
|
|
494
513
|
id: string;
|
|
495
514
|
name: string;
|
|
496
515
|
email: string;
|
|
@@ -503,7 +522,7 @@ export type ReportResponse = {
|
|
|
503
522
|
mode: string;
|
|
504
523
|
sourceBranch: string;
|
|
505
524
|
targetBranch?: string | null;
|
|
506
|
-
createdBy:
|
|
525
|
+
createdBy: UserResponse3;
|
|
507
526
|
createdAt: string;
|
|
508
527
|
updatedAt: string;
|
|
509
528
|
filesCount: number | null;
|
|
@@ -520,7 +539,7 @@ export type ReportResponseRead = {
|
|
|
520
539
|
mode: string;
|
|
521
540
|
sourceBranch: string;
|
|
522
541
|
targetBranch?: string | null;
|
|
523
|
-
createdBy:
|
|
542
|
+
createdBy: UserResponse3;
|
|
524
543
|
createdAt: string;
|
|
525
544
|
updatedAt: string;
|
|
526
545
|
filesCount: number | null;
|
|
@@ -554,7 +573,7 @@ export type CreateRepositoryRequest = {
|
|
|
554
573
|
defaultBranch: string;
|
|
555
574
|
tags?: string[] | null;
|
|
556
575
|
};
|
|
557
|
-
export type
|
|
576
|
+
export type UserResponse4 = {
|
|
558
577
|
id: string;
|
|
559
578
|
name: string;
|
|
560
579
|
email: string;
|
|
@@ -567,7 +586,7 @@ export type ReportResponse2 = {
|
|
|
567
586
|
moduleId: string;
|
|
568
587
|
sourceBranch: string;
|
|
569
588
|
targetBranch?: string | null;
|
|
570
|
-
createdBy:
|
|
589
|
+
createdBy: UserResponse4 | null;
|
|
571
590
|
createdAt: string;
|
|
572
591
|
updatedAt: string;
|
|
573
592
|
filesCount: number | null;
|
|
@@ -584,7 +603,7 @@ export type ReportResponseRead2 = {
|
|
|
584
603
|
moduleId: string;
|
|
585
604
|
sourceBranch: string;
|
|
586
605
|
targetBranch?: string | null;
|
|
587
|
-
createdBy:
|
|
606
|
+
createdBy: UserResponse4 | null;
|
|
588
607
|
createdAt: string;
|
|
589
608
|
updatedAt: string;
|
|
590
609
|
filesCount: number | null;
|
|
@@ -648,6 +667,15 @@ export type PutRepositoryRequest = {
|
|
|
648
667
|
export type ValidateScmUrlRequest = {
|
|
649
668
|
url?: string | null;
|
|
650
669
|
};
|
|
670
|
+
export type ValidateScmUrlResponse = {
|
|
671
|
+
url: string;
|
|
672
|
+
name: string | null;
|
|
673
|
+
id: string | null;
|
|
674
|
+
defaultBranch: string | null;
|
|
675
|
+
lastCommitDate: string | null;
|
|
676
|
+
archived: boolean | null;
|
|
677
|
+
visibility: string | null;
|
|
678
|
+
};
|
|
651
679
|
export type GetAccountSettingsRequest = {
|
|
652
680
|
maxSimultaneousExecution: number | null;
|
|
653
681
|
createRepositoryValidateBranch: boolean | null;
|
|
@@ -708,7 +736,7 @@ export type BodyCreateProgramGroupServiceV1ProgramGroupsPost = {
|
|
|
708
736
|
export type CreateProgramGroupResponse = {
|
|
709
737
|
id: string;
|
|
710
738
|
};
|
|
711
|
-
export type
|
|
739
|
+
export type UserResponse5 = {
|
|
712
740
|
id: string;
|
|
713
741
|
name: string;
|
|
714
742
|
email: string;
|
|
@@ -719,7 +747,7 @@ export type ReportResponse3 = {
|
|
|
719
747
|
execution: ExecutionResponse | null;
|
|
720
748
|
mode: string;
|
|
721
749
|
moduleId: string;
|
|
722
|
-
createdBy:
|
|
750
|
+
createdBy: UserResponse5 | null;
|
|
723
751
|
createdAt: string;
|
|
724
752
|
updatedAt: string;
|
|
725
753
|
filesCount: number | null;
|
|
@@ -734,7 +762,7 @@ export type ReportResponseRead3 = {
|
|
|
734
762
|
execution: ExecutionResponse | null;
|
|
735
763
|
mode: string;
|
|
736
764
|
moduleId: string;
|
|
737
|
-
createdBy:
|
|
765
|
+
createdBy: UserResponse5 | null;
|
|
738
766
|
createdAt: string;
|
|
739
767
|
updatedAt: string;
|
|
740
768
|
filesCount: number | null;
|
|
@@ -799,7 +827,7 @@ export type ModuleResponse4 = {
|
|
|
799
827
|
id: string;
|
|
800
828
|
name: string;
|
|
801
829
|
};
|
|
802
|
-
export type
|
|
830
|
+
export type UserResponse6 = {
|
|
803
831
|
id: string;
|
|
804
832
|
name: string;
|
|
805
833
|
email: string;
|
|
@@ -810,7 +838,7 @@ export type ReportResponse4 = {
|
|
|
810
838
|
"module": ModuleResponse4;
|
|
811
839
|
execution: ExecutionResponse | null;
|
|
812
840
|
mode: string;
|
|
813
|
-
createdBy:
|
|
841
|
+
createdBy: UserResponse6;
|
|
814
842
|
createdAt: string;
|
|
815
843
|
updatedAt: string;
|
|
816
844
|
filesCount: number | null;
|
|
@@ -825,7 +853,7 @@ export type ReportResponseRead4 = {
|
|
|
825
853
|
"module": ModuleResponse4;
|
|
826
854
|
execution: ExecutionResponse | null;
|
|
827
855
|
mode: string;
|
|
828
|
-
createdBy:
|
|
856
|
+
createdBy: UserResponse6;
|
|
829
857
|
createdAt: string;
|
|
830
858
|
updatedAt: string;
|
|
831
859
|
filesCount: number | null;
|
|
@@ -1076,6 +1104,9 @@ export type ProgramGroupsTargetDetailsResponse = {
|
|
|
1076
1104
|
[key: string]: any;
|
|
1077
1105
|
} | null;
|
|
1078
1106
|
customerScore?: number | null;
|
|
1107
|
+
totalTokenSent: number | null;
|
|
1108
|
+
totalTokenReceived: number | null;
|
|
1109
|
+
modified: boolean | null;
|
|
1079
1110
|
};
|
|
1080
1111
|
export type AnalyticsProgramGroupsTargetDetailsResponse = {
|
|
1081
1112
|
totalComponents?: number;
|
|
@@ -1096,6 +1127,9 @@ export type RepositoryTargetDetailsItemResponse = {
|
|
|
1096
1127
|
reportCreatedAt: string | null;
|
|
1097
1128
|
reportId: string | null;
|
|
1098
1129
|
customerScore?: number | null;
|
|
1130
|
+
totalTokenSent: number | null;
|
|
1131
|
+
totalTokenReceived: number | null;
|
|
1132
|
+
modified: boolean | null;
|
|
1099
1133
|
};
|
|
1100
1134
|
export type AnalyticsRepositoryTargetDetailsResponse = {
|
|
1101
1135
|
totalFiles?: number;
|
|
@@ -1103,13 +1137,51 @@ export type AnalyticsRepositoryTargetDetailsResponse = {
|
|
|
1103
1137
|
totalItems?: number;
|
|
1104
1138
|
items?: RepositoryTargetDetailsItemResponse[];
|
|
1105
1139
|
};
|
|
1106
|
-
export type
|
|
1140
|
+
export type ModuleExecutionTimesDetailsResponse = {
|
|
1141
|
+
/** Name of the module */
|
|
1142
|
+
moduleName: string;
|
|
1143
|
+
/** Version of the module */
|
|
1144
|
+
moduleVersion: string;
|
|
1145
|
+
/** Average queue time in seconds */
|
|
1146
|
+
queueTimeAvg: number;
|
|
1147
|
+
/** 95th percentile queue time in seconds */
|
|
1148
|
+
queueTimeP95: number;
|
|
1149
|
+
/** Average execution time in seconds */
|
|
1150
|
+
executionTimeAvg: number;
|
|
1151
|
+
/** 95th percentile execution time in seconds */
|
|
1152
|
+
executionTimeP95: number;
|
|
1153
|
+
/** Average total time in seconds */
|
|
1154
|
+
totalTimeAvg: number;
|
|
1155
|
+
/** 95th percentile total time in seconds */
|
|
1156
|
+
totalTimeP95: number;
|
|
1157
|
+
/** Number of executions */
|
|
1158
|
+
executionCount: number | null;
|
|
1159
|
+
};
|
|
1160
|
+
export type AnalyticsModuleExecutionTimesResponse = {
|
|
1161
|
+
/** Total number of modules analyzed */
|
|
1162
|
+
modulesCount?: number;
|
|
1163
|
+
/** Overall average queue time */
|
|
1164
|
+
queueTimeAvg: number | null;
|
|
1165
|
+
/** Overall 95th percentile queue time */
|
|
1166
|
+
queueTimeP95: number | null;
|
|
1167
|
+
/** Overall average execution time */
|
|
1168
|
+
executionTimeAvg: number | null;
|
|
1169
|
+
/** Overall 95th percentile execution time */
|
|
1170
|
+
executionTimeP95: number | null;
|
|
1171
|
+
/** Overall average total time */
|
|
1172
|
+
totalTimeAvg: number | null;
|
|
1173
|
+
/** Overall 95th percentile total time */
|
|
1174
|
+
totalTimeP95: number | null;
|
|
1175
|
+
/** Detailed metrics per module */
|
|
1176
|
+
items?: ModuleExecutionTimesDetailsResponse[];
|
|
1177
|
+
};
|
|
1178
|
+
export type UserResponse7 = {
|
|
1107
1179
|
id: string;
|
|
1108
1180
|
name: string;
|
|
1109
1181
|
email: string;
|
|
1110
1182
|
};
|
|
1111
1183
|
export type ListUserResponse = {
|
|
1112
|
-
items:
|
|
1184
|
+
items: UserResponse7[];
|
|
1113
1185
|
itemsCount: number;
|
|
1114
1186
|
};
|
|
1115
1187
|
export type SearchReposInScmRequest = {
|
|
@@ -1154,6 +1226,52 @@ export type ResponseSearchRepoByIdResponseRead = {
|
|
|
1154
1226
|
exceptions: HttpErrorResponseRead[];
|
|
1155
1227
|
items?: SearchRepoByIdResponse[];
|
|
1156
1228
|
};
|
|
1229
|
+
export type BodyCreateReposBatchServiceV2ReposBatchPost = {
|
|
1230
|
+
file: Blob;
|
|
1231
|
+
};
|
|
1232
|
+
export type CreateRepoBatchResponse = {
|
|
1233
|
+
id: string;
|
|
1234
|
+
};
|
|
1235
|
+
export type ImportStatus = "COMPLETED" | "PENDING";
|
|
1236
|
+
export type ValidateRepositoryStatus = "PENDING" | "SUCCESS" | "FAILURE" | "CONFLICT";
|
|
1237
|
+
export type BatchRepositoryResponse = {
|
|
1238
|
+
repositoryId: string | null;
|
|
1239
|
+
repositoryUrl: string;
|
|
1240
|
+
repositoryBranch: string;
|
|
1241
|
+
repositoryTags: string[];
|
|
1242
|
+
status: ValidateRepositoryStatus;
|
|
1243
|
+
line: number;
|
|
1244
|
+
repositoryName: string | null;
|
|
1245
|
+
repositoryArchived: boolean | null;
|
|
1246
|
+
repositoryPushedAt: string | null;
|
|
1247
|
+
repositoryVisibility: string | null;
|
|
1248
|
+
exceptions: HttpErrorResponse[];
|
|
1249
|
+
};
|
|
1250
|
+
export type BatchRepositoryResponseRead = {
|
|
1251
|
+
repositoryId: string | null;
|
|
1252
|
+
repositoryUrl: string;
|
|
1253
|
+
repositoryBranch: string;
|
|
1254
|
+
repositoryTags: string[];
|
|
1255
|
+
status: ValidateRepositoryStatus;
|
|
1256
|
+
line: number;
|
|
1257
|
+
repositoryName: string | null;
|
|
1258
|
+
repositoryArchived: boolean | null;
|
|
1259
|
+
repositoryPushedAt: string | null;
|
|
1260
|
+
repositoryVisibility: string | null;
|
|
1261
|
+
exceptions: HttpErrorResponseRead[];
|
|
1262
|
+
};
|
|
1263
|
+
export type GetImportResultResponse = {
|
|
1264
|
+
status: ImportStatus;
|
|
1265
|
+
totalItems: number;
|
|
1266
|
+
items: BatchRepositoryResponse[];
|
|
1267
|
+
repositoriesIds: string[];
|
|
1268
|
+
};
|
|
1269
|
+
export type GetImportResultResponseRead = {
|
|
1270
|
+
status: ImportStatus;
|
|
1271
|
+
totalItems: number;
|
|
1272
|
+
items: BatchRepositoryResponseRead[];
|
|
1273
|
+
repositoriesIds: string[];
|
|
1274
|
+
};
|
|
1157
1275
|
/**
|
|
1158
1276
|
* Check Role Route
|
|
1159
1277
|
*/
|
|
@@ -1480,6 +1598,43 @@ export function getModuleInputsV1ModulesModuleIdInputsGet({ moduleId, authorizat
|
|
|
1480
1598
|
})
|
|
1481
1599
|
}));
|
|
1482
1600
|
}
|
|
1601
|
+
/**
|
|
1602
|
+
* Get Module Docs
|
|
1603
|
+
*/
|
|
1604
|
+
export function getModuleDocsV1ModulesModuleIdDocsGet({ moduleId, language, authorization }: {
|
|
1605
|
+
moduleId: string;
|
|
1606
|
+
language?: "pt-br" | "en-us";
|
|
1607
|
+
authorization: string;
|
|
1608
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1609
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1610
|
+
status: 200;
|
|
1611
|
+
data: GetModuleDocsResponse | null;
|
|
1612
|
+
} | {
|
|
1613
|
+
status: 400;
|
|
1614
|
+
data: HttpErrorResponseRead;
|
|
1615
|
+
} | {
|
|
1616
|
+
status: 401;
|
|
1617
|
+
data: HttpErrorResponseRead;
|
|
1618
|
+
} | {
|
|
1619
|
+
status: 404;
|
|
1620
|
+
data: HttpErrorResponseRead;
|
|
1621
|
+
} | {
|
|
1622
|
+
status: 422;
|
|
1623
|
+
} | {
|
|
1624
|
+
status: 500;
|
|
1625
|
+
data: HttpErrorResponseRead;
|
|
1626
|
+
} | {
|
|
1627
|
+
status: 503;
|
|
1628
|
+
data: HttpErrorResponseRead;
|
|
1629
|
+
}>(`/v1/modules/${encodeURIComponent(moduleId)}/docs${QS.query(QS.explode({
|
|
1630
|
+
language
|
|
1631
|
+
}))}`, {
|
|
1632
|
+
...opts,
|
|
1633
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1634
|
+
authorization
|
|
1635
|
+
})
|
|
1636
|
+
}));
|
|
1637
|
+
}
|
|
1483
1638
|
/**
|
|
1484
1639
|
* Dispatch Module Service
|
|
1485
1640
|
*/
|
|
@@ -2128,13 +2283,14 @@ export function updateRepositoryServiceV1ReposRepositoryIdPut({ repositoryId, au
|
|
|
2128
2283
|
/**
|
|
2129
2284
|
* Validate Scm Url Service
|
|
2130
2285
|
*/
|
|
2131
|
-
export function validateScmUrlServiceV1ReposValidateScmUrlPost({ authorization, validateScmUrlRequest }: {
|
|
2286
|
+
export function validateScmUrlServiceV1ReposValidateScmUrlPost({ raiseConflict, authorization, validateScmUrlRequest }: {
|
|
2287
|
+
raiseConflict?: boolean;
|
|
2132
2288
|
authorization: string;
|
|
2133
2289
|
validateScmUrlRequest: ValidateScmUrlRequest;
|
|
2134
2290
|
}, opts?: Oazapfts.RequestOpts) {
|
|
2135
2291
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2136
2292
|
status: 200;
|
|
2137
|
-
data:
|
|
2293
|
+
data: ValidateScmUrlResponse;
|
|
2138
2294
|
} | {
|
|
2139
2295
|
status: 400;
|
|
2140
2296
|
data: HttpErrorResponseRead;
|
|
@@ -2152,7 +2308,9 @@ export function validateScmUrlServiceV1ReposValidateScmUrlPost({ authorization,
|
|
|
2152
2308
|
} | {
|
|
2153
2309
|
status: 503;
|
|
2154
2310
|
data: HttpErrorResponseRead;
|
|
2155
|
-
}>(
|
|
2311
|
+
}>(`/v1/repos/validate-scm-url${QS.query(QS.explode({
|
|
2312
|
+
raiseConflict
|
|
2313
|
+
}))}`, oazapfts.json({
|
|
2156
2314
|
...opts,
|
|
2157
2315
|
method: "POST",
|
|
2158
2316
|
body: validateScmUrlRequest,
|
|
@@ -3592,6 +3750,108 @@ export function analyticsRepositoryTargetDetailsDownloadV1AnalyticsRepositoriesT
|
|
|
3592
3750
|
})
|
|
3593
3751
|
}));
|
|
3594
3752
|
}
|
|
3753
|
+
/**
|
|
3754
|
+
* Analytics Module Execution Times Report
|
|
3755
|
+
*/
|
|
3756
|
+
export function analyticsModuleExecutionTimesReportV1AnalyticsModulesExecutionTimesGet({ pageSize, page, moduleId, version, mode, startDate, endDate, orderBy, orderDirection, authorization }: {
|
|
3757
|
+
pageSize?: number;
|
|
3758
|
+
page?: number;
|
|
3759
|
+
moduleId?: string[] | null;
|
|
3760
|
+
version?: string[] | null;
|
|
3761
|
+
mode?: ("scan" | "fix") | null;
|
|
3762
|
+
startDate?: string;
|
|
3763
|
+
endDate?: string;
|
|
3764
|
+
orderBy?: ("moduleName" | "moduleVersion" | "queueTimeAvg" | "queueTimeP95" | "executionTimeAvg" | "executionTimeP95" | "totalTimeAvg" | "totalTimeP95" | "executionCount") | null;
|
|
3765
|
+
orderDirection?: ("ASC" | "DESC") | null;
|
|
3766
|
+
authorization: string;
|
|
3767
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
3768
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3769
|
+
status: 200;
|
|
3770
|
+
data: AnalyticsModuleExecutionTimesResponse;
|
|
3771
|
+
} | {
|
|
3772
|
+
status: 400;
|
|
3773
|
+
data: HttpErrorResponseRead;
|
|
3774
|
+
} | {
|
|
3775
|
+
status: 401;
|
|
3776
|
+
data: HttpErrorResponseRead;
|
|
3777
|
+
} | {
|
|
3778
|
+
status: 404;
|
|
3779
|
+
data: HttpErrorResponseRead;
|
|
3780
|
+
} | {
|
|
3781
|
+
status: 422;
|
|
3782
|
+
} | {
|
|
3783
|
+
status: 500;
|
|
3784
|
+
data: HttpErrorResponseRead;
|
|
3785
|
+
} | {
|
|
3786
|
+
status: 503;
|
|
3787
|
+
data: HttpErrorResponseRead;
|
|
3788
|
+
}>(`/v1/analytics/modules/execution-times${QS.query(QS.explode({
|
|
3789
|
+
pageSize,
|
|
3790
|
+
page,
|
|
3791
|
+
moduleId,
|
|
3792
|
+
version,
|
|
3793
|
+
mode,
|
|
3794
|
+
startDate,
|
|
3795
|
+
endDate,
|
|
3796
|
+
orderBy,
|
|
3797
|
+
orderDirection
|
|
3798
|
+
}))}`, {
|
|
3799
|
+
...opts,
|
|
3800
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
3801
|
+
authorization
|
|
3802
|
+
})
|
|
3803
|
+
}));
|
|
3804
|
+
}
|
|
3805
|
+
/**
|
|
3806
|
+
* Analytics Module Execution Times Download
|
|
3807
|
+
*/
|
|
3808
|
+
export function analyticsModuleExecutionTimesDownloadV1AnalyticsModulesExecutionTimesDownloadGet({ moduleId, version, mode, startDate, endDate, orderBy, orderDirection, extension, authorization }: {
|
|
3809
|
+
moduleId?: string[] | null;
|
|
3810
|
+
version?: string[] | null;
|
|
3811
|
+
mode?: ("scan" | "fix") | null;
|
|
3812
|
+
startDate?: string;
|
|
3813
|
+
endDate?: string;
|
|
3814
|
+
orderBy?: ("moduleName" | "moduleVersion" | "queueTimeAvg" | "queueTimeP95" | "executionTimeAvg" | "executionTimeP95" | "totalTimeAvg" | "totalTimeP95" | "executionCount") | null;
|
|
3815
|
+
orderDirection?: ("ASC" | "DESC") | null;
|
|
3816
|
+
extension?: "csv" | "xlsx";
|
|
3817
|
+
authorization: string;
|
|
3818
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
3819
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3820
|
+
status: 200;
|
|
3821
|
+
data: any;
|
|
3822
|
+
} | {
|
|
3823
|
+
status: 400;
|
|
3824
|
+
data: HttpErrorResponseRead;
|
|
3825
|
+
} | {
|
|
3826
|
+
status: 401;
|
|
3827
|
+
data: HttpErrorResponseRead;
|
|
3828
|
+
} | {
|
|
3829
|
+
status: 404;
|
|
3830
|
+
data: HttpErrorResponseRead;
|
|
3831
|
+
} | {
|
|
3832
|
+
status: 422;
|
|
3833
|
+
} | {
|
|
3834
|
+
status: 500;
|
|
3835
|
+
data: HttpErrorResponseRead;
|
|
3836
|
+
} | {
|
|
3837
|
+
status: 503;
|
|
3838
|
+
data: HttpErrorResponseRead;
|
|
3839
|
+
}>(`/v1/analytics/modules/execution-times/download${QS.query(QS.explode({
|
|
3840
|
+
moduleId,
|
|
3841
|
+
version,
|
|
3842
|
+
mode,
|
|
3843
|
+
startDate,
|
|
3844
|
+
endDate,
|
|
3845
|
+
orderBy,
|
|
3846
|
+
orderDirection,
|
|
3847
|
+
extension
|
|
3848
|
+
}))}`, {
|
|
3849
|
+
...opts,
|
|
3850
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
3851
|
+
authorization
|
|
3852
|
+
})
|
|
3853
|
+
}));
|
|
3854
|
+
}
|
|
3595
3855
|
/**
|
|
3596
3856
|
* List User Service
|
|
3597
3857
|
*/
|
|
@@ -3731,10 +3991,24 @@ export function downloadSearchReposScmV2V2ReposSearchScmSearchIdDownloadGet({ se
|
|
|
3731
3991
|
}, opts?: Oazapfts.RequestOpts) {
|
|
3732
3992
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3733
3993
|
status: 200;
|
|
3734
|
-
data:
|
|
3994
|
+
data: any;
|
|
3995
|
+
} | {
|
|
3996
|
+
status: 400;
|
|
3997
|
+
data: HttpErrorResponseRead;
|
|
3998
|
+
} | {
|
|
3999
|
+
status: 401;
|
|
4000
|
+
data: HttpErrorResponseRead;
|
|
4001
|
+
} | {
|
|
4002
|
+
status: 404;
|
|
4003
|
+
data: HttpErrorResponseRead;
|
|
3735
4004
|
} | {
|
|
3736
4005
|
status: 422;
|
|
3737
|
-
|
|
4006
|
+
} | {
|
|
4007
|
+
status: 500;
|
|
4008
|
+
data: HttpErrorResponseRead;
|
|
4009
|
+
} | {
|
|
4010
|
+
status: 503;
|
|
4011
|
+
data: HttpErrorResponseRead;
|
|
3738
4012
|
}>(`/v2/repos/search-scm/${encodeURIComponent(searchId)}/download${QS.query(QS.explode({
|
|
3739
4013
|
extension
|
|
3740
4014
|
}))}`, {
|
|
@@ -3744,6 +4018,125 @@ export function downloadSearchReposScmV2V2ReposSearchScmSearchIdDownloadGet({ se
|
|
|
3744
4018
|
})
|
|
3745
4019
|
}));
|
|
3746
4020
|
}
|
|
4021
|
+
/**
|
|
4022
|
+
* Create Repos Batch Service
|
|
4023
|
+
*/
|
|
4024
|
+
export function createReposBatchServiceV2ReposBatchPost({ tags, authorization, fastapiCompatV2BodyCreateReposBatchServiceV2ReposBatchPost }: {
|
|
4025
|
+
tags?: string[] | null;
|
|
4026
|
+
authorization: string;
|
|
4027
|
+
fastapiCompatV2BodyCreateReposBatchServiceV2ReposBatchPost: BodyCreateReposBatchServiceV2ReposBatchPost;
|
|
4028
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
4029
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
4030
|
+
status: 200;
|
|
4031
|
+
data: CreateRepoBatchResponse;
|
|
4032
|
+
} | {
|
|
4033
|
+
status: 400;
|
|
4034
|
+
data: HttpErrorResponseRead;
|
|
4035
|
+
} | {
|
|
4036
|
+
status: 401;
|
|
4037
|
+
data: HttpErrorResponseRead;
|
|
4038
|
+
} | {
|
|
4039
|
+
status: 404;
|
|
4040
|
+
data: HttpErrorResponseRead;
|
|
4041
|
+
} | {
|
|
4042
|
+
status: 422;
|
|
4043
|
+
} | {
|
|
4044
|
+
status: 500;
|
|
4045
|
+
data: HttpErrorResponseRead;
|
|
4046
|
+
} | {
|
|
4047
|
+
status: 503;
|
|
4048
|
+
data: HttpErrorResponseRead;
|
|
4049
|
+
}>(`/v2/repos/batch${QS.query(QS.explode({
|
|
4050
|
+
tags
|
|
4051
|
+
}))}`, oazapfts.multipart({
|
|
4052
|
+
...opts,
|
|
4053
|
+
method: "POST",
|
|
4054
|
+
body: fastapiCompatV2BodyCreateReposBatchServiceV2ReposBatchPost,
|
|
4055
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
4056
|
+
authorization
|
|
4057
|
+
})
|
|
4058
|
+
})));
|
|
4059
|
+
}
|
|
4060
|
+
/**
|
|
4061
|
+
* Get Import Result
|
|
4062
|
+
*/
|
|
4063
|
+
export function getImportResultV2ReposBatchImportIdGet({ importId, pageSize, page, authorization }: {
|
|
4064
|
+
importId: string;
|
|
4065
|
+
pageSize?: number;
|
|
4066
|
+
page?: number;
|
|
4067
|
+
authorization: string;
|
|
4068
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
4069
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
4070
|
+
status: 200;
|
|
4071
|
+
data: GetImportResultResponseRead;
|
|
4072
|
+
} | {
|
|
4073
|
+
status: 400;
|
|
4074
|
+
data: HttpErrorResponseRead;
|
|
4075
|
+
} | {
|
|
4076
|
+
status: 401;
|
|
4077
|
+
data: HttpErrorResponseRead;
|
|
4078
|
+
} | {
|
|
4079
|
+
status: 404;
|
|
4080
|
+
data: HttpErrorResponseRead;
|
|
4081
|
+
} | {
|
|
4082
|
+
status: 422;
|
|
4083
|
+
} | {
|
|
4084
|
+
status: 500;
|
|
4085
|
+
data: HttpErrorResponseRead;
|
|
4086
|
+
} | {
|
|
4087
|
+
status: 503;
|
|
4088
|
+
data: HttpErrorResponseRead;
|
|
4089
|
+
}>(`/v2/repos/batch/${encodeURIComponent(importId)}${QS.query(QS.explode({
|
|
4090
|
+
pageSize,
|
|
4091
|
+
page
|
|
4092
|
+
}))}`, {
|
|
4093
|
+
...opts,
|
|
4094
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
4095
|
+
authorization
|
|
4096
|
+
})
|
|
4097
|
+
}));
|
|
4098
|
+
}
|
|
4099
|
+
/**
|
|
4100
|
+
* Download Import Result
|
|
4101
|
+
*/
|
|
4102
|
+
export function downloadImportResultV2ReposBatchImportIdDownloadGet({ importId, language, status, extension, authorization }: {
|
|
4103
|
+
importId: string;
|
|
4104
|
+
language?: "ptBr" | "enUs";
|
|
4105
|
+
status?: ValidateRepositoryStatus | null;
|
|
4106
|
+
extension?: "csv" | "xlsx";
|
|
4107
|
+
authorization: string;
|
|
4108
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
4109
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
4110
|
+
status: 200;
|
|
4111
|
+
data: any;
|
|
4112
|
+
} | {
|
|
4113
|
+
status: 400;
|
|
4114
|
+
data: HttpErrorResponseRead;
|
|
4115
|
+
} | {
|
|
4116
|
+
status: 401;
|
|
4117
|
+
data: HttpErrorResponseRead;
|
|
4118
|
+
} | {
|
|
4119
|
+
status: 404;
|
|
4120
|
+
data: HttpErrorResponseRead;
|
|
4121
|
+
} | {
|
|
4122
|
+
status: 422;
|
|
4123
|
+
} | {
|
|
4124
|
+
status: 500;
|
|
4125
|
+
data: HttpErrorResponseRead;
|
|
4126
|
+
} | {
|
|
4127
|
+
status: 503;
|
|
4128
|
+
data: HttpErrorResponseRead;
|
|
4129
|
+
}>(`/v2/repos/batch/${encodeURIComponent(importId)}/download${QS.query(QS.explode({
|
|
4130
|
+
language,
|
|
4131
|
+
status,
|
|
4132
|
+
extension
|
|
4133
|
+
}))}`, {
|
|
4134
|
+
...opts,
|
|
4135
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
4136
|
+
authorization
|
|
4137
|
+
})
|
|
4138
|
+
}));
|
|
4139
|
+
}
|
|
3747
4140
|
/**
|
|
3748
4141
|
* Pat Health Check
|
|
3749
4142
|
*/
|