@supermodeltools/sdk 0.9.2 → 0.9.4
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/dist/apis/DefaultApi.d.ts +60 -2
- package/dist/apis/DefaultApi.js +241 -1
- package/dist/esm/apis/DefaultApi.d.ts +60 -2
- package/dist/esm/apis/DefaultApi.js +242 -2
- package/dist/esm/models/AffectedEntryPoint.d.ts +53 -0
- package/dist/esm/models/AffectedEntryPoint.js +57 -0
- package/dist/esm/models/AffectedFile.d.ts +43 -0
- package/dist/esm/models/AffectedFile.js +48 -0
- package/dist/esm/models/AffectedFunction.d.ts +78 -0
- package/dist/esm/models/AffectedFunction.js +73 -0
- package/dist/esm/models/AliveCodeItem.d.ts +68 -0
- package/dist/esm/models/AliveCodeItem.js +68 -0
- package/dist/esm/models/BlastRadius.d.ts +71 -0
- package/dist/esm/models/BlastRadius.js +65 -0
- package/dist/esm/models/CircularDependencyCycle.d.ts +65 -0
- package/dist/esm/models/CircularDependencyCycle.js +63 -0
- package/dist/esm/models/CircularDependencyMetadata.d.ts +61 -0
- package/dist/esm/models/CircularDependencyMetadata.js +56 -0
- package/dist/esm/models/CircularDependencyResponse.d.ts +46 -0
- package/dist/esm/models/CircularDependencyResponse.js +51 -0
- package/dist/esm/models/CircularDependencyResponseAsync.d.ts +66 -0
- package/dist/esm/models/CircularDependencyResponseAsync.js +60 -0
- package/dist/esm/models/CircularDependencySummary.d.ts +55 -0
- package/dist/esm/models/CircularDependencySummary.js +56 -0
- package/dist/esm/models/ClassificationStats.d.ts +1 -1
- package/dist/esm/models/ClassificationStats.js +1 -1
- package/dist/esm/models/CodeGraphEnvelope.d.ts +1 -1
- package/dist/esm/models/CodeGraphEnvelope.js +1 -1
- package/dist/esm/models/CodeGraphEnvelopeAsync.d.ts +1 -1
- package/dist/esm/models/CodeGraphEnvelopeAsync.js +1 -1
- package/dist/esm/models/CodeGraphEnvelopeGraph.d.ts +1 -1
- package/dist/esm/models/CodeGraphEnvelopeGraph.js +1 -1
- package/dist/esm/models/CodeGraphEnvelopeMetadata.d.ts +1 -1
- package/dist/esm/models/CodeGraphEnvelopeMetadata.js +1 -1
- package/dist/esm/models/CodeGraphNode.d.ts +1 -1
- package/dist/esm/models/CodeGraphNode.js +1 -1
- package/dist/esm/models/CodeGraphRelationship.d.ts +1 -1
- package/dist/esm/models/CodeGraphRelationship.js +1 -1
- package/dist/esm/models/CodeGraphStats.d.ts +1 -1
- package/dist/esm/models/CodeGraphStats.js +1 -1
- package/dist/esm/models/CoverageByDomain.d.ts +49 -0
- package/dist/esm/models/CoverageByDomain.js +52 -0
- package/dist/esm/models/CoverageByFile.d.ts +55 -0
- package/dist/esm/models/CoverageByFile.js +56 -0
- package/dist/esm/models/CriticalFile.d.ts +53 -0
- package/dist/esm/models/CriticalFile.js +57 -0
- package/dist/esm/models/CrossDomainDependency.d.ts +43 -0
- package/dist/esm/models/CrossDomainDependency.js +48 -0
- package/dist/esm/models/CycleEdge.d.ts +43 -0
- package/dist/esm/models/CycleEdge.js +48 -0
- package/dist/esm/models/DeadCodeAnalysisMetadata.d.ts +79 -0
- package/dist/esm/models/DeadCodeAnalysisMetadata.js +62 -0
- package/dist/esm/models/DeadCodeAnalysisResponse.d.ts +53 -0
- package/dist/esm/models/DeadCodeAnalysisResponse.js +56 -0
- package/dist/esm/models/DeadCodeAnalysisResponseAsync.d.ts +66 -0
- package/dist/esm/models/DeadCodeAnalysisResponseAsync.js +60 -0
- package/dist/esm/models/DeadCodeCandidate.d.ts +83 -0
- package/dist/esm/models/DeadCodeCandidate.js +80 -0
- package/dist/esm/models/DomainClassAssignment.d.ts +1 -1
- package/dist/esm/models/DomainClassAssignment.js +1 -1
- package/dist/esm/models/DomainClassificationResponse.d.ts +1 -1
- package/dist/esm/models/DomainClassificationResponse.js +1 -1
- package/dist/esm/models/DomainClassificationResponseAsync.d.ts +1 -1
- package/dist/esm/models/DomainClassificationResponseAsync.js +1 -1
- package/dist/esm/models/DomainClassificationResponseGraph.d.ts +1 -1
- package/dist/esm/models/DomainClassificationResponseGraph.js +1 -1
- package/dist/esm/models/DomainFileAssignment.d.ts +1 -1
- package/dist/esm/models/DomainFileAssignment.js +1 -1
- package/dist/esm/models/DomainFunctionAssignment.d.ts +1 -1
- package/dist/esm/models/DomainFunctionAssignment.js +1 -1
- package/dist/esm/models/DomainRelationship.d.ts +1 -1
- package/dist/esm/models/DomainRelationship.js +1 -1
- package/dist/esm/models/DomainSummary.d.ts +1 -1
- package/dist/esm/models/DomainSummary.js +1 -1
- package/dist/esm/models/EntryPoint.d.ts +68 -0
- package/dist/esm/models/EntryPoint.js +68 -0
- package/dist/esm/models/ErrorDetailsInner.d.ts +1 -1
- package/dist/esm/models/ErrorDetailsInner.js +1 -1
- package/dist/esm/models/FunctionDescription.d.ts +1 -1
- package/dist/esm/models/FunctionDescription.js +1 -1
- package/dist/esm/models/ImpactAnalysisMetadata.d.ts +61 -0
- package/dist/esm/models/ImpactAnalysisMetadata.js +56 -0
- package/dist/esm/models/ImpactAnalysisResponse.d.ts +46 -0
- package/dist/esm/models/ImpactAnalysisResponse.js +51 -0
- package/dist/esm/models/ImpactAnalysisResponseAsync.d.ts +66 -0
- package/dist/esm/models/ImpactAnalysisResponseAsync.js +60 -0
- package/dist/esm/models/ImpactGlobalMetrics.d.ts +39 -0
- package/dist/esm/models/ImpactGlobalMetrics.js +42 -0
- package/dist/esm/models/ImpactResult.d.ts +60 -0
- package/dist/esm/models/ImpactResult.js +61 -0
- package/dist/esm/models/ImpactTarget.d.ts +59 -0
- package/dist/esm/models/ImpactTarget.js +57 -0
- package/dist/esm/models/JobStatus.d.ts +1 -1
- package/dist/esm/models/JobStatus.js +1 -1
- package/dist/esm/models/ModelError.d.ts +1 -1
- package/dist/esm/models/ModelError.js +1 -1
- package/dist/esm/models/NearestTestedCaller.d.ts +43 -0
- package/dist/esm/models/NearestTestedCaller.js +48 -0
- package/dist/esm/models/SubdomainSummary.d.ts +1 -1
- package/dist/esm/models/SubdomainSummary.js +1 -1
- package/dist/esm/models/SupermodelArtifact.d.ts +1 -1
- package/dist/esm/models/SupermodelArtifact.js +1 -1
- package/dist/esm/models/SupermodelIR.d.ts +1 -1
- package/dist/esm/models/SupermodelIR.js +1 -1
- package/dist/esm/models/SupermodelIRAsync.d.ts +1 -1
- package/dist/esm/models/SupermodelIRAsync.js +1 -1
- package/dist/esm/models/SupermodelIRGraph.d.ts +1 -1
- package/dist/esm/models/SupermodelIRGraph.js +1 -1
- package/dist/esm/models/SupermodelIRStats.d.ts +1 -1
- package/dist/esm/models/SupermodelIRStats.js +1 -1
- package/dist/esm/models/TestCoverageMapMetadata.d.ts +85 -0
- package/dist/esm/models/TestCoverageMapMetadata.js +72 -0
- package/dist/esm/models/TestCoverageMapResponse.d.ts +67 -0
- package/dist/esm/models/TestCoverageMapResponse.js +64 -0
- package/dist/esm/models/TestCoverageMapResponseAsync.d.ts +66 -0
- package/dist/esm/models/TestCoverageMapResponseAsync.js +60 -0
- package/dist/esm/models/TestFileInfo.d.ts +49 -0
- package/dist/esm/models/TestFileInfo.js +52 -0
- package/dist/esm/models/TestedFunction.d.ts +80 -0
- package/dist/esm/models/TestedFunction.js +76 -0
- package/dist/esm/models/TestedSibling.d.ts +43 -0
- package/dist/esm/models/TestedSibling.js +48 -0
- package/dist/esm/models/UnassignedFunction.d.ts +1 -1
- package/dist/esm/models/UnassignedFunction.js +1 -1
- package/dist/esm/models/UntestedFunction.d.ts +103 -0
- package/dist/esm/models/UntestedFunction.js +88 -0
- package/dist/esm/models/index.d.ts +34 -0
- package/dist/esm/models/index.js +34 -0
- package/dist/esm/runtime.d.ts +1 -1
- package/dist/esm/runtime.js +1 -1
- package/dist/models/AffectedEntryPoint.d.ts +53 -0
- package/dist/models/AffectedEntryPoint.js +64 -0
- package/dist/models/AffectedFile.d.ts +43 -0
- package/dist/models/AffectedFile.js +54 -0
- package/dist/models/AffectedFunction.d.ts +78 -0
- package/dist/models/AffectedFunction.js +80 -0
- package/dist/models/AliveCodeItem.d.ts +68 -0
- package/dist/models/AliveCodeItem.js +75 -0
- package/dist/models/BlastRadius.d.ts +71 -0
- package/dist/models/BlastRadius.js +72 -0
- package/dist/models/CircularDependencyCycle.d.ts +65 -0
- package/dist/models/CircularDependencyCycle.js +70 -0
- package/dist/models/CircularDependencyMetadata.d.ts +61 -0
- package/dist/models/CircularDependencyMetadata.js +62 -0
- package/dist/models/CircularDependencyResponse.d.ts +46 -0
- package/dist/models/CircularDependencyResponse.js +57 -0
- package/dist/models/CircularDependencyResponseAsync.d.ts +66 -0
- package/dist/models/CircularDependencyResponseAsync.js +67 -0
- package/dist/models/CircularDependencySummary.d.ts +55 -0
- package/dist/models/CircularDependencySummary.js +62 -0
- package/dist/models/ClassificationStats.d.ts +1 -1
- package/dist/models/ClassificationStats.js +1 -1
- package/dist/models/CodeGraphEnvelope.d.ts +1 -1
- package/dist/models/CodeGraphEnvelope.js +1 -1
- package/dist/models/CodeGraphEnvelopeAsync.d.ts +1 -1
- package/dist/models/CodeGraphEnvelopeAsync.js +1 -1
- package/dist/models/CodeGraphEnvelopeGraph.d.ts +1 -1
- package/dist/models/CodeGraphEnvelopeGraph.js +1 -1
- package/dist/models/CodeGraphEnvelopeMetadata.d.ts +1 -1
- package/dist/models/CodeGraphEnvelopeMetadata.js +1 -1
- package/dist/models/CodeGraphNode.d.ts +1 -1
- package/dist/models/CodeGraphNode.js +1 -1
- package/dist/models/CodeGraphRelationship.d.ts +1 -1
- package/dist/models/CodeGraphRelationship.js +1 -1
- package/dist/models/CodeGraphStats.d.ts +1 -1
- package/dist/models/CodeGraphStats.js +1 -1
- package/dist/models/CoverageByDomain.d.ts +49 -0
- package/dist/models/CoverageByDomain.js +58 -0
- package/dist/models/CoverageByFile.d.ts +55 -0
- package/dist/models/CoverageByFile.js +62 -0
- package/dist/models/CriticalFile.d.ts +53 -0
- package/dist/models/CriticalFile.js +64 -0
- package/dist/models/CrossDomainDependency.d.ts +43 -0
- package/dist/models/CrossDomainDependency.js +54 -0
- package/dist/models/CycleEdge.d.ts +43 -0
- package/dist/models/CycleEdge.js +54 -0
- package/dist/models/DeadCodeAnalysisMetadata.d.ts +79 -0
- package/dist/models/DeadCodeAnalysisMetadata.js +68 -0
- package/dist/models/DeadCodeAnalysisResponse.d.ts +53 -0
- package/dist/models/DeadCodeAnalysisResponse.js +62 -0
- package/dist/models/DeadCodeAnalysisResponseAsync.d.ts +66 -0
- package/dist/models/DeadCodeAnalysisResponseAsync.js +67 -0
- package/dist/models/DeadCodeCandidate.d.ts +83 -0
- package/dist/models/DeadCodeCandidate.js +87 -0
- package/dist/models/DomainClassAssignment.d.ts +1 -1
- package/dist/models/DomainClassAssignment.js +1 -1
- package/dist/models/DomainClassificationResponse.d.ts +1 -1
- package/dist/models/DomainClassificationResponse.js +1 -1
- package/dist/models/DomainClassificationResponseAsync.d.ts +1 -1
- package/dist/models/DomainClassificationResponseAsync.js +1 -1
- package/dist/models/DomainClassificationResponseGraph.d.ts +1 -1
- package/dist/models/DomainClassificationResponseGraph.js +1 -1
- package/dist/models/DomainFileAssignment.d.ts +1 -1
- package/dist/models/DomainFileAssignment.js +1 -1
- package/dist/models/DomainFunctionAssignment.d.ts +1 -1
- package/dist/models/DomainFunctionAssignment.js +1 -1
- package/dist/models/DomainRelationship.d.ts +1 -1
- package/dist/models/DomainRelationship.js +1 -1
- package/dist/models/DomainSummary.d.ts +1 -1
- package/dist/models/DomainSummary.js +1 -1
- package/dist/models/EntryPoint.d.ts +68 -0
- package/dist/models/EntryPoint.js +75 -0
- package/dist/models/ErrorDetailsInner.d.ts +1 -1
- package/dist/models/ErrorDetailsInner.js +1 -1
- package/dist/models/FunctionDescription.d.ts +1 -1
- package/dist/models/FunctionDescription.js +1 -1
- package/dist/models/ImpactAnalysisMetadata.d.ts +61 -0
- package/dist/models/ImpactAnalysisMetadata.js +62 -0
- package/dist/models/ImpactAnalysisResponse.d.ts +46 -0
- package/dist/models/ImpactAnalysisResponse.js +57 -0
- package/dist/models/ImpactAnalysisResponseAsync.d.ts +66 -0
- package/dist/models/ImpactAnalysisResponseAsync.js +67 -0
- package/dist/models/ImpactGlobalMetrics.d.ts +39 -0
- package/dist/models/ImpactGlobalMetrics.js +48 -0
- package/dist/models/ImpactResult.d.ts +60 -0
- package/dist/models/ImpactResult.js +67 -0
- package/dist/models/ImpactTarget.d.ts +59 -0
- package/dist/models/ImpactTarget.js +64 -0
- package/dist/models/JobStatus.d.ts +1 -1
- package/dist/models/JobStatus.js +1 -1
- package/dist/models/ModelError.d.ts +1 -1
- package/dist/models/ModelError.js +1 -1
- package/dist/models/NearestTestedCaller.d.ts +43 -0
- package/dist/models/NearestTestedCaller.js +54 -0
- package/dist/models/SubdomainSummary.d.ts +1 -1
- package/dist/models/SubdomainSummary.js +1 -1
- package/dist/models/SupermodelArtifact.d.ts +1 -1
- package/dist/models/SupermodelArtifact.js +1 -1
- package/dist/models/SupermodelIR.d.ts +1 -1
- package/dist/models/SupermodelIR.js +1 -1
- package/dist/models/SupermodelIRAsync.d.ts +1 -1
- package/dist/models/SupermodelIRAsync.js +1 -1
- package/dist/models/SupermodelIRGraph.d.ts +1 -1
- package/dist/models/SupermodelIRGraph.js +1 -1
- package/dist/models/SupermodelIRStats.d.ts +1 -1
- package/dist/models/SupermodelIRStats.js +1 -1
- package/dist/models/TestCoverageMapMetadata.d.ts +85 -0
- package/dist/models/TestCoverageMapMetadata.js +78 -0
- package/dist/models/TestCoverageMapResponse.d.ts +67 -0
- package/dist/models/TestCoverageMapResponse.js +70 -0
- package/dist/models/TestCoverageMapResponseAsync.d.ts +66 -0
- package/dist/models/TestCoverageMapResponseAsync.js +67 -0
- package/dist/models/TestFileInfo.d.ts +49 -0
- package/dist/models/TestFileInfo.js +58 -0
- package/dist/models/TestedFunction.d.ts +80 -0
- package/dist/models/TestedFunction.js +83 -0
- package/dist/models/TestedSibling.d.ts +43 -0
- package/dist/models/TestedSibling.js +54 -0
- package/dist/models/UnassignedFunction.d.ts +1 -1
- package/dist/models/UnassignedFunction.js +1 -1
- package/dist/models/UntestedFunction.d.ts +103 -0
- package/dist/models/UntestedFunction.js +95 -0
- package/dist/models/index.d.ts +34 -0
- package/dist/models/index.js +34 -0
- package/dist/runtime.d.ts +1 -1
- package/dist/runtime.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Supermodel
|
|
5
|
+
* Code Graphing & Analysis API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.9.4
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* @export
|
|
16
|
+
*/
|
|
17
|
+
export const TestedFunctionTypeEnum = {
|
|
18
|
+
Function: 'function',
|
|
19
|
+
Class: 'class',
|
|
20
|
+
Method: 'method',
|
|
21
|
+
Interface: 'interface',
|
|
22
|
+
Type: 'type',
|
|
23
|
+
Variable: 'variable',
|
|
24
|
+
Constant: 'constant'
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the TestedFunction interface.
|
|
28
|
+
*/
|
|
29
|
+
export function instanceOfTestedFunction(value) {
|
|
30
|
+
if (!('file' in value) || value['file'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('line' in value) || value['line'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('testFiles' in value) || value['testFiles'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('directTestCallers' in value) || value['directTestCallers'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('transitiveTestCallers' in value) || value['transitiveTestCallers'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
return true;
|
|
45
|
+
}
|
|
46
|
+
export function TestedFunctionFromJSON(json) {
|
|
47
|
+
return TestedFunctionFromJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
export function TestedFunctionFromJSONTyped(json, ignoreDiscriminator) {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'file': json['file'],
|
|
55
|
+
'name': json['name'],
|
|
56
|
+
'line': json['line'],
|
|
57
|
+
'type': json['type'],
|
|
58
|
+
'testFiles': json['testFiles'],
|
|
59
|
+
'directTestCallers': json['directTestCallers'],
|
|
60
|
+
'transitiveTestCallers': json['transitiveTestCallers'],
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
export function TestedFunctionToJSON(value) {
|
|
64
|
+
if (value == null) {
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
'file': value['file'],
|
|
69
|
+
'name': value['name'],
|
|
70
|
+
'line': value['line'],
|
|
71
|
+
'type': value['type'],
|
|
72
|
+
'testFiles': value['testFiles'],
|
|
73
|
+
'directTestCallers': value['directTestCallers'],
|
|
74
|
+
'transitiveTestCallers': value['transitiveTestCallers'],
|
|
75
|
+
};
|
|
76
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Supermodel
|
|
3
|
+
* Code Graphing & Analysis API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.9.4
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* A sibling function in the same file that has test coverage.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface TestedSibling
|
|
16
|
+
*/
|
|
17
|
+
export interface TestedSibling {
|
|
18
|
+
/**
|
|
19
|
+
* Name of the tested sibling function.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof TestedSibling
|
|
22
|
+
*/
|
|
23
|
+
name: string;
|
|
24
|
+
/**
|
|
25
|
+
* Line number where the sibling function is declared.
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof TestedSibling
|
|
28
|
+
*/
|
|
29
|
+
line: number;
|
|
30
|
+
/**
|
|
31
|
+
* Test files that cover this sibling function.
|
|
32
|
+
* @type {Array<string>}
|
|
33
|
+
* @memberof TestedSibling
|
|
34
|
+
*/
|
|
35
|
+
testFiles: Array<string>;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the TestedSibling interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfTestedSibling(value: object): value is TestedSibling;
|
|
41
|
+
export declare function TestedSiblingFromJSON(json: any): TestedSibling;
|
|
42
|
+
export declare function TestedSiblingFromJSONTyped(json: any, ignoreDiscriminator: boolean): TestedSibling;
|
|
43
|
+
export declare function TestedSiblingToJSON(value?: TestedSibling | null): any;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Supermodel
|
|
5
|
+
* Code Graphing & Analysis API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.9.4
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the TestedSibling interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfTestedSibling(value) {
|
|
18
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('line' in value) || value['line'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('testFiles' in value) || value['testFiles'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
export function TestedSiblingFromJSON(json) {
|
|
27
|
+
return TestedSiblingFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
export function TestedSiblingFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
if (json == null) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'name': json['name'],
|
|
35
|
+
'line': json['line'],
|
|
36
|
+
'testFiles': json['testFiles'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export function TestedSiblingToJSON(value) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'name': value['name'],
|
|
45
|
+
'line': value['line'],
|
|
46
|
+
'testFiles': value['testFiles'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Supermodel
|
|
3
|
+
* Code Graphing & Analysis API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.9.4
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { TestedSibling } from './TestedSibling';
|
|
13
|
+
import type { NearestTestedCaller } from './NearestTestedCaller';
|
|
14
|
+
/**
|
|
15
|
+
* A production function with no test coverage.
|
|
16
|
+
* @export
|
|
17
|
+
* @interface UntestedFunction
|
|
18
|
+
*/
|
|
19
|
+
export interface UntestedFunction {
|
|
20
|
+
/**
|
|
21
|
+
* File path relative to repository root.
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof UntestedFunction
|
|
24
|
+
*/
|
|
25
|
+
file: string;
|
|
26
|
+
/**
|
|
27
|
+
* Name of the function or method.
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof UntestedFunction
|
|
30
|
+
*/
|
|
31
|
+
name: string;
|
|
32
|
+
/**
|
|
33
|
+
* Line number where the function is declared.
|
|
34
|
+
* @type {number}
|
|
35
|
+
* @memberof UntestedFunction
|
|
36
|
+
*/
|
|
37
|
+
line: number;
|
|
38
|
+
/**
|
|
39
|
+
* Type of code element.
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof UntestedFunction
|
|
42
|
+
*/
|
|
43
|
+
type: UntestedFunctionTypeEnum;
|
|
44
|
+
/**
|
|
45
|
+
* Confidence level of the untested classification.
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof UntestedFunction
|
|
48
|
+
*/
|
|
49
|
+
confidence: UntestedFunctionConfidenceEnum;
|
|
50
|
+
/**
|
|
51
|
+
* Explanation of why this function is classified as untested.
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof UntestedFunction
|
|
54
|
+
*/
|
|
55
|
+
reason: string;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {NearestTestedCaller}
|
|
59
|
+
* @memberof UntestedFunction
|
|
60
|
+
*/
|
|
61
|
+
nearestTestedCaller?: NearestTestedCaller;
|
|
62
|
+
/**
|
|
63
|
+
* The test file that covers the most sibling functions in the same production file. This is the recommended file in which to add a test for this untested function.
|
|
64
|
+
* @type {string}
|
|
65
|
+
* @memberof UntestedFunction
|
|
66
|
+
*/
|
|
67
|
+
suggestedTestFile?: string;
|
|
68
|
+
/**
|
|
69
|
+
* Other functions in the same file that ARE tested, along with which test files cover them. Use this to see existing test patterns you can follow.
|
|
70
|
+
* @type {Array<TestedSibling>}
|
|
71
|
+
* @memberof UntestedFunction
|
|
72
|
+
*/
|
|
73
|
+
testedSiblings?: Array<TestedSibling>;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* @export
|
|
77
|
+
*/
|
|
78
|
+
export declare const UntestedFunctionTypeEnum: {
|
|
79
|
+
readonly Function: "function";
|
|
80
|
+
readonly Class: "class";
|
|
81
|
+
readonly Method: "method";
|
|
82
|
+
readonly Interface: "interface";
|
|
83
|
+
readonly Type: "type";
|
|
84
|
+
readonly Variable: "variable";
|
|
85
|
+
readonly Constant: "constant";
|
|
86
|
+
};
|
|
87
|
+
export type UntestedFunctionTypeEnum = typeof UntestedFunctionTypeEnum[keyof typeof UntestedFunctionTypeEnum];
|
|
88
|
+
/**
|
|
89
|
+
* @export
|
|
90
|
+
*/
|
|
91
|
+
export declare const UntestedFunctionConfidenceEnum: {
|
|
92
|
+
readonly High: "high";
|
|
93
|
+
readonly Medium: "medium";
|
|
94
|
+
readonly Low: "low";
|
|
95
|
+
};
|
|
96
|
+
export type UntestedFunctionConfidenceEnum = typeof UntestedFunctionConfidenceEnum[keyof typeof UntestedFunctionConfidenceEnum];
|
|
97
|
+
/**
|
|
98
|
+
* Check if a given object implements the UntestedFunction interface.
|
|
99
|
+
*/
|
|
100
|
+
export declare function instanceOfUntestedFunction(value: object): value is UntestedFunction;
|
|
101
|
+
export declare function UntestedFunctionFromJSON(json: any): UntestedFunction;
|
|
102
|
+
export declare function UntestedFunctionFromJSONTyped(json: any, ignoreDiscriminator: boolean): UntestedFunction;
|
|
103
|
+
export declare function UntestedFunctionToJSON(value?: UntestedFunction | null): any;
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Supermodel
|
|
5
|
+
* Code Graphing & Analysis API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.9.4
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { TestedSiblingFromJSON, TestedSiblingToJSON, } from './TestedSibling';
|
|
15
|
+
import { NearestTestedCallerFromJSON, NearestTestedCallerToJSON, } from './NearestTestedCaller';
|
|
16
|
+
/**
|
|
17
|
+
* @export
|
|
18
|
+
*/
|
|
19
|
+
export const UntestedFunctionTypeEnum = {
|
|
20
|
+
Function: 'function',
|
|
21
|
+
Class: 'class',
|
|
22
|
+
Method: 'method',
|
|
23
|
+
Interface: 'interface',
|
|
24
|
+
Type: 'type',
|
|
25
|
+
Variable: 'variable',
|
|
26
|
+
Constant: 'constant'
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* @export
|
|
30
|
+
*/
|
|
31
|
+
export const UntestedFunctionConfidenceEnum = {
|
|
32
|
+
High: 'high',
|
|
33
|
+
Medium: 'medium',
|
|
34
|
+
Low: 'low'
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the UntestedFunction interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfUntestedFunction(value) {
|
|
40
|
+
if (!('file' in value) || value['file'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
if (!('line' in value) || value['line'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
47
|
+
return false;
|
|
48
|
+
if (!('confidence' in value) || value['confidence'] === undefined)
|
|
49
|
+
return false;
|
|
50
|
+
if (!('reason' in value) || value['reason'] === undefined)
|
|
51
|
+
return false;
|
|
52
|
+
return true;
|
|
53
|
+
}
|
|
54
|
+
export function UntestedFunctionFromJSON(json) {
|
|
55
|
+
return UntestedFunctionFromJSONTyped(json, false);
|
|
56
|
+
}
|
|
57
|
+
export function UntestedFunctionFromJSONTyped(json, ignoreDiscriminator) {
|
|
58
|
+
if (json == null) {
|
|
59
|
+
return json;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
'file': json['file'],
|
|
63
|
+
'name': json['name'],
|
|
64
|
+
'line': json['line'],
|
|
65
|
+
'type': json['type'],
|
|
66
|
+
'confidence': json['confidence'],
|
|
67
|
+
'reason': json['reason'],
|
|
68
|
+
'nearestTestedCaller': json['nearestTestedCaller'] == null ? undefined : NearestTestedCallerFromJSON(json['nearestTestedCaller']),
|
|
69
|
+
'suggestedTestFile': json['suggestedTestFile'] == null ? undefined : json['suggestedTestFile'],
|
|
70
|
+
'testedSiblings': json['testedSiblings'] == null ? undefined : (json['testedSiblings'].map(TestedSiblingFromJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
export function UntestedFunctionToJSON(value) {
|
|
74
|
+
if (value == null) {
|
|
75
|
+
return value;
|
|
76
|
+
}
|
|
77
|
+
return {
|
|
78
|
+
'file': value['file'],
|
|
79
|
+
'name': value['name'],
|
|
80
|
+
'line': value['line'],
|
|
81
|
+
'type': value['type'],
|
|
82
|
+
'confidence': value['confidence'],
|
|
83
|
+
'reason': value['reason'],
|
|
84
|
+
'nearestTestedCaller': NearestTestedCallerToJSON(value['nearestTestedCaller']),
|
|
85
|
+
'suggestedTestFile': value['suggestedTestFile'],
|
|
86
|
+
'testedSiblings': value['testedSiblings'] == null ? undefined : (value['testedSiblings'].map(TestedSiblingToJSON)),
|
|
87
|
+
};
|
|
88
|
+
}
|
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
export * from './AffectedEntryPoint';
|
|
2
|
+
export * from './AffectedFile';
|
|
3
|
+
export * from './AffectedFunction';
|
|
4
|
+
export * from './AliveCodeItem';
|
|
5
|
+
export * from './BlastRadius';
|
|
6
|
+
export * from './CircularDependencyCycle';
|
|
7
|
+
export * from './CircularDependencyMetadata';
|
|
8
|
+
export * from './CircularDependencyResponse';
|
|
9
|
+
export * from './CircularDependencyResponseAsync';
|
|
10
|
+
export * from './CircularDependencySummary';
|
|
1
11
|
export * from './ClassificationStats';
|
|
2
12
|
export * from './CodeGraphEnvelope';
|
|
3
13
|
export * from './CodeGraphEnvelopeAsync';
|
|
@@ -6,6 +16,15 @@ export * from './CodeGraphEnvelopeMetadata';
|
|
|
6
16
|
export * from './CodeGraphNode';
|
|
7
17
|
export * from './CodeGraphRelationship';
|
|
8
18
|
export * from './CodeGraphStats';
|
|
19
|
+
export * from './CoverageByDomain';
|
|
20
|
+
export * from './CoverageByFile';
|
|
21
|
+
export * from './CriticalFile';
|
|
22
|
+
export * from './CrossDomainDependency';
|
|
23
|
+
export * from './CycleEdge';
|
|
24
|
+
export * from './DeadCodeAnalysisMetadata';
|
|
25
|
+
export * from './DeadCodeAnalysisResponse';
|
|
26
|
+
export * from './DeadCodeAnalysisResponseAsync';
|
|
27
|
+
export * from './DeadCodeCandidate';
|
|
9
28
|
export * from './DomainClassAssignment';
|
|
10
29
|
export * from './DomainClassificationResponse';
|
|
11
30
|
export * from './DomainClassificationResponseAsync';
|
|
@@ -14,14 +33,29 @@ export * from './DomainFileAssignment';
|
|
|
14
33
|
export * from './DomainFunctionAssignment';
|
|
15
34
|
export * from './DomainRelationship';
|
|
16
35
|
export * from './DomainSummary';
|
|
36
|
+
export * from './EntryPoint';
|
|
17
37
|
export * from './ErrorDetailsInner';
|
|
18
38
|
export * from './FunctionDescription';
|
|
39
|
+
export * from './ImpactAnalysisMetadata';
|
|
40
|
+
export * from './ImpactAnalysisResponse';
|
|
41
|
+
export * from './ImpactAnalysisResponseAsync';
|
|
42
|
+
export * from './ImpactGlobalMetrics';
|
|
43
|
+
export * from './ImpactResult';
|
|
44
|
+
export * from './ImpactTarget';
|
|
19
45
|
export * from './JobStatus';
|
|
20
46
|
export * from './ModelError';
|
|
47
|
+
export * from './NearestTestedCaller';
|
|
21
48
|
export * from './SubdomainSummary';
|
|
22
49
|
export * from './SupermodelArtifact';
|
|
23
50
|
export * from './SupermodelIR';
|
|
24
51
|
export * from './SupermodelIRAsync';
|
|
25
52
|
export * from './SupermodelIRGraph';
|
|
26
53
|
export * from './SupermodelIRStats';
|
|
54
|
+
export * from './TestCoverageMapMetadata';
|
|
55
|
+
export * from './TestCoverageMapResponse';
|
|
56
|
+
export * from './TestCoverageMapResponseAsync';
|
|
57
|
+
export * from './TestFileInfo';
|
|
58
|
+
export * from './TestedFunction';
|
|
59
|
+
export * from './TestedSibling';
|
|
27
60
|
export * from './UnassignedFunction';
|
|
61
|
+
export * from './UntestedFunction';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
+
export * from './AffectedEntryPoint';
|
|
4
|
+
export * from './AffectedFile';
|
|
5
|
+
export * from './AffectedFunction';
|
|
6
|
+
export * from './AliveCodeItem';
|
|
7
|
+
export * from './BlastRadius';
|
|
8
|
+
export * from './CircularDependencyCycle';
|
|
9
|
+
export * from './CircularDependencyMetadata';
|
|
10
|
+
export * from './CircularDependencyResponse';
|
|
11
|
+
export * from './CircularDependencyResponseAsync';
|
|
12
|
+
export * from './CircularDependencySummary';
|
|
3
13
|
export * from './ClassificationStats';
|
|
4
14
|
export * from './CodeGraphEnvelope';
|
|
5
15
|
export * from './CodeGraphEnvelopeAsync';
|
|
@@ -8,6 +18,15 @@ export * from './CodeGraphEnvelopeMetadata';
|
|
|
8
18
|
export * from './CodeGraphNode';
|
|
9
19
|
export * from './CodeGraphRelationship';
|
|
10
20
|
export * from './CodeGraphStats';
|
|
21
|
+
export * from './CoverageByDomain';
|
|
22
|
+
export * from './CoverageByFile';
|
|
23
|
+
export * from './CriticalFile';
|
|
24
|
+
export * from './CrossDomainDependency';
|
|
25
|
+
export * from './CycleEdge';
|
|
26
|
+
export * from './DeadCodeAnalysisMetadata';
|
|
27
|
+
export * from './DeadCodeAnalysisResponse';
|
|
28
|
+
export * from './DeadCodeAnalysisResponseAsync';
|
|
29
|
+
export * from './DeadCodeCandidate';
|
|
11
30
|
export * from './DomainClassAssignment';
|
|
12
31
|
export * from './DomainClassificationResponse';
|
|
13
32
|
export * from './DomainClassificationResponseAsync';
|
|
@@ -16,14 +35,29 @@ export * from './DomainFileAssignment';
|
|
|
16
35
|
export * from './DomainFunctionAssignment';
|
|
17
36
|
export * from './DomainRelationship';
|
|
18
37
|
export * from './DomainSummary';
|
|
38
|
+
export * from './EntryPoint';
|
|
19
39
|
export * from './ErrorDetailsInner';
|
|
20
40
|
export * from './FunctionDescription';
|
|
41
|
+
export * from './ImpactAnalysisMetadata';
|
|
42
|
+
export * from './ImpactAnalysisResponse';
|
|
43
|
+
export * from './ImpactAnalysisResponseAsync';
|
|
44
|
+
export * from './ImpactGlobalMetrics';
|
|
45
|
+
export * from './ImpactResult';
|
|
46
|
+
export * from './ImpactTarget';
|
|
21
47
|
export * from './JobStatus';
|
|
22
48
|
export * from './ModelError';
|
|
49
|
+
export * from './NearestTestedCaller';
|
|
23
50
|
export * from './SubdomainSummary';
|
|
24
51
|
export * from './SupermodelArtifact';
|
|
25
52
|
export * from './SupermodelIR';
|
|
26
53
|
export * from './SupermodelIRAsync';
|
|
27
54
|
export * from './SupermodelIRGraph';
|
|
28
55
|
export * from './SupermodelIRStats';
|
|
56
|
+
export * from './TestCoverageMapMetadata';
|
|
57
|
+
export * from './TestCoverageMapResponse';
|
|
58
|
+
export * from './TestCoverageMapResponseAsync';
|
|
59
|
+
export * from './TestFileInfo';
|
|
60
|
+
export * from './TestedFunction';
|
|
61
|
+
export * from './TestedSibling';
|
|
29
62
|
export * from './UnassignedFunction';
|
|
63
|
+
export * from './UntestedFunction';
|
package/dist/esm/runtime.d.ts
CHANGED
package/dist/esm/runtime.js
CHANGED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Supermodel
|
|
3
|
+
* Code Graphing & Analysis API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.9.4
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* An entry point affected by changes to the target.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface AffectedEntryPoint
|
|
16
|
+
*/
|
|
17
|
+
export interface AffectedEntryPoint {
|
|
18
|
+
/**
|
|
19
|
+
* File path relative to repository root.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AffectedEntryPoint
|
|
22
|
+
*/
|
|
23
|
+
file: string;
|
|
24
|
+
/**
|
|
25
|
+
* Name or route of the entry point.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AffectedEntryPoint
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
/**
|
|
31
|
+
* Type of entry point.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof AffectedEntryPoint
|
|
34
|
+
*/
|
|
35
|
+
type: AffectedEntryPointTypeEnum;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
export declare const AffectedEntryPointTypeEnum: {
|
|
41
|
+
readonly RouteHandler: "route_handler";
|
|
42
|
+
readonly ModuleExport: "module_export";
|
|
43
|
+
readonly MainFunction: "main_function";
|
|
44
|
+
readonly EventHandler: "event_handler";
|
|
45
|
+
};
|
|
46
|
+
export type AffectedEntryPointTypeEnum = typeof AffectedEntryPointTypeEnum[keyof typeof AffectedEntryPointTypeEnum];
|
|
47
|
+
/**
|
|
48
|
+
* Check if a given object implements the AffectedEntryPoint interface.
|
|
49
|
+
*/
|
|
50
|
+
export declare function instanceOfAffectedEntryPoint(value: object): value is AffectedEntryPoint;
|
|
51
|
+
export declare function AffectedEntryPointFromJSON(json: any): AffectedEntryPoint;
|
|
52
|
+
export declare function AffectedEntryPointFromJSONTyped(json: any, ignoreDiscriminator: boolean): AffectedEntryPoint;
|
|
53
|
+
export declare function AffectedEntryPointToJSON(value?: AffectedEntryPoint | null): any;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Supermodel
|
|
6
|
+
* Code Graphing & Analysis API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.9.4
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.AffectedEntryPointTypeEnum = void 0;
|
|
17
|
+
exports.instanceOfAffectedEntryPoint = instanceOfAffectedEntryPoint;
|
|
18
|
+
exports.AffectedEntryPointFromJSON = AffectedEntryPointFromJSON;
|
|
19
|
+
exports.AffectedEntryPointFromJSONTyped = AffectedEntryPointFromJSONTyped;
|
|
20
|
+
exports.AffectedEntryPointToJSON = AffectedEntryPointToJSON;
|
|
21
|
+
/**
|
|
22
|
+
* @export
|
|
23
|
+
*/
|
|
24
|
+
exports.AffectedEntryPointTypeEnum = {
|
|
25
|
+
RouteHandler: 'route_handler',
|
|
26
|
+
ModuleExport: 'module_export',
|
|
27
|
+
MainFunction: 'main_function',
|
|
28
|
+
EventHandler: 'event_handler'
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the AffectedEntryPoint interface.
|
|
32
|
+
*/
|
|
33
|
+
function instanceOfAffectedEntryPoint(value) {
|
|
34
|
+
if (!('file' in value) || value['file'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
function AffectedEntryPointFromJSON(json) {
|
|
43
|
+
return AffectedEntryPointFromJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
function AffectedEntryPointFromJSONTyped(json, ignoreDiscriminator) {
|
|
46
|
+
if (json == null) {
|
|
47
|
+
return json;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'file': json['file'],
|
|
51
|
+
'name': json['name'],
|
|
52
|
+
'type': json['type'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
function AffectedEntryPointToJSON(value) {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
'file': value['file'],
|
|
61
|
+
'name': value['name'],
|
|
62
|
+
'type': value['type'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Supermodel
|
|
3
|
+
* Code Graphing & Analysis API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.9.4
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* A file affected by changes to the target.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface AffectedFile
|
|
16
|
+
*/
|
|
17
|
+
export interface AffectedFile {
|
|
18
|
+
/**
|
|
19
|
+
* File path relative to repository root.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AffectedFile
|
|
22
|
+
*/
|
|
23
|
+
file: string;
|
|
24
|
+
/**
|
|
25
|
+
* Number of direct dependencies in this file.
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof AffectedFile
|
|
28
|
+
*/
|
|
29
|
+
directDependencies: number;
|
|
30
|
+
/**
|
|
31
|
+
* Number of transitive dependencies in this file.
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof AffectedFile
|
|
34
|
+
*/
|
|
35
|
+
transitiveDependencies: number;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the AffectedFile interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfAffectedFile(value: object): value is AffectedFile;
|
|
41
|
+
export declare function AffectedFileFromJSON(json: any): AffectedFile;
|
|
42
|
+
export declare function AffectedFileFromJSONTyped(json: any, ignoreDiscriminator: boolean): AffectedFile;
|
|
43
|
+
export declare function AffectedFileToJSON(value?: AffectedFile | null): any;
|