@supermodeltools/sdk 0.3.7
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/.openapi-generator/FILES +32 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator/openapi.yaml-generate-typescript-client.sha256 +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +46 -0
- package/dist/apis/DefaultApi.d.ts +88 -0
- package/dist/apis/DefaultApi.js +323 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +19 -0
- package/dist/esm/apis/DefaultApi.d.ts +88 -0
- package/dist/esm/apis/DefaultApi.js +319 -0
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +3 -0
- package/dist/esm/index.d.ts +3 -0
- package/dist/esm/index.js +5 -0
- package/dist/esm/models/ClassificationStats.d.ts +61 -0
- package/dist/esm/models/ClassificationStats.js +60 -0
- package/dist/esm/models/CodeGraphEnvelope.d.ts +51 -0
- package/dist/esm/models/CodeGraphEnvelope.js +48 -0
- package/dist/esm/models/CodeGraphEnvelopeGraph.d.ts +39 -0
- package/dist/esm/models/CodeGraphEnvelopeGraph.js +46 -0
- package/dist/esm/models/CodeGraphNode.d.ts +45 -0
- package/dist/esm/models/CodeGraphNode.js +44 -0
- package/dist/esm/models/CodeGraphRelationship.d.ts +57 -0
- package/dist/esm/models/CodeGraphRelationship.js +54 -0
- package/dist/esm/models/CodeGraphStats.d.ts +55 -0
- package/dist/esm/models/CodeGraphStats.js +46 -0
- package/dist/esm/models/DomainClassAssignment.d.ts +37 -0
- package/dist/esm/models/DomainClassAssignment.js +44 -0
- package/dist/esm/models/DomainClassificationResponse.d.ts +87 -0
- package/dist/esm/models/DomainClassificationResponse.js +78 -0
- package/dist/esm/models/DomainFileAssignment.d.ts +37 -0
- package/dist/esm/models/DomainFileAssignment.js +44 -0
- package/dist/esm/models/DomainFunctionAssignment.d.ts +43 -0
- package/dist/esm/models/DomainFunctionAssignment.js +46 -0
- package/dist/esm/models/DomainRelationship.d.ts +55 -0
- package/dist/esm/models/DomainRelationship.js +54 -0
- package/dist/esm/models/DomainSummary.d.ts +56 -0
- package/dist/esm/models/DomainSummary.js +57 -0
- package/dist/esm/models/ErrorDetailsInner.d.ts +43 -0
- package/dist/esm/models/ErrorDetailsInner.js +46 -0
- package/dist/esm/models/FunctionDescription.d.ts +43 -0
- package/dist/esm/models/FunctionDescription.js +46 -0
- package/dist/esm/models/ModelError.d.ts +62 -0
- package/dist/esm/models/ModelError.js +57 -0
- package/dist/esm/models/SubdomainSummary.d.ts +37 -0
- package/dist/esm/models/SubdomainSummary.js +44 -0
- package/dist/esm/models/SupermodelArtifact.d.ts +51 -0
- package/dist/esm/models/SupermodelArtifact.js +50 -0
- package/dist/esm/models/SupermodelIR.d.ts +71 -0
- package/dist/esm/models/SupermodelIR.js +62 -0
- package/dist/esm/models/SupermodelIRGraph.d.ts +39 -0
- package/dist/esm/models/SupermodelIRGraph.js +46 -0
- package/dist/esm/models/UnassignedFunction.d.ts +37 -0
- package/dist/esm/models/UnassignedFunction.js +44 -0
- package/dist/esm/models/index.d.ts +20 -0
- package/dist/esm/models/index.js +22 -0
- package/dist/esm/runtime.d.ts +181 -0
- package/dist/esm/runtime.js +326 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +21 -0
- package/dist/models/ClassificationStats.d.ts +61 -0
- package/dist/models/ClassificationStats.js +66 -0
- package/dist/models/CodeGraphEnvelope.d.ts +51 -0
- package/dist/models/CodeGraphEnvelope.js +54 -0
- package/dist/models/CodeGraphEnvelopeGraph.d.ts +39 -0
- package/dist/models/CodeGraphEnvelopeGraph.js +52 -0
- package/dist/models/CodeGraphNode.d.ts +45 -0
- package/dist/models/CodeGraphNode.js +50 -0
- package/dist/models/CodeGraphRelationship.d.ts +57 -0
- package/dist/models/CodeGraphRelationship.js +60 -0
- package/dist/models/CodeGraphStats.d.ts +55 -0
- package/dist/models/CodeGraphStats.js +52 -0
- package/dist/models/DomainClassAssignment.d.ts +37 -0
- package/dist/models/DomainClassAssignment.js +50 -0
- package/dist/models/DomainClassificationResponse.d.ts +87 -0
- package/dist/models/DomainClassificationResponse.js +84 -0
- package/dist/models/DomainFileAssignment.d.ts +37 -0
- package/dist/models/DomainFileAssignment.js +50 -0
- package/dist/models/DomainFunctionAssignment.d.ts +43 -0
- package/dist/models/DomainFunctionAssignment.js +52 -0
- package/dist/models/DomainRelationship.d.ts +55 -0
- package/dist/models/DomainRelationship.js +60 -0
- package/dist/models/DomainSummary.d.ts +56 -0
- package/dist/models/DomainSummary.js +63 -0
- package/dist/models/ErrorDetailsInner.d.ts +43 -0
- package/dist/models/ErrorDetailsInner.js +52 -0
- package/dist/models/FunctionDescription.d.ts +43 -0
- package/dist/models/FunctionDescription.js +52 -0
- package/dist/models/ModelError.d.ts +62 -0
- package/dist/models/ModelError.js +63 -0
- package/dist/models/SubdomainSummary.d.ts +37 -0
- package/dist/models/SubdomainSummary.js +50 -0
- package/dist/models/SupermodelArtifact.d.ts +51 -0
- package/dist/models/SupermodelArtifact.js +56 -0
- package/dist/models/SupermodelIR.d.ts +71 -0
- package/dist/models/SupermodelIR.js +68 -0
- package/dist/models/SupermodelIRGraph.d.ts +39 -0
- package/dist/models/SupermodelIRGraph.js +52 -0
- package/dist/models/UnassignedFunction.d.ts +37 -0
- package/dist/models/UnassignedFunction.js +50 -0
- package/dist/models/index.d.ts +20 -0
- package/dist/models/index.js +38 -0
- package/dist/runtime.d.ts +181 -0
- package/dist/runtime.js +341 -0
- package/package.json +21 -0
- package/src/apis/DefaultApi.ts +416 -0
- package/src/apis/index.ts +3 -0
- package/src/index.ts +5 -0
- package/src/models/ClassificationStats.ts +106 -0
- package/src/models/CodeGraphEnvelope.ts +98 -0
- package/src/models/CodeGraphEnvelopeGraph.ts +83 -0
- package/src/models/CodeGraphNode.ts +77 -0
- package/src/models/CodeGraphRelationship.ts +96 -0
- package/src/models/CodeGraphStats.ts +92 -0
- package/src/models/DomainClassAssignment.ts +70 -0
- package/src/models/DomainClassificationResponse.ts +181 -0
- package/src/models/DomainFileAssignment.ts +70 -0
- package/src/models/DomainFunctionAssignment.ts +78 -0
- package/src/models/DomainRelationship.ts +96 -0
- package/src/models/DomainSummary.ts +104 -0
- package/src/models/ErrorDetailsInner.ts +78 -0
- package/src/models/FunctionDescription.ts +78 -0
- package/src/models/ModelError.ts +111 -0
- package/src/models/SubdomainSummary.ts +70 -0
- package/src/models/SupermodelArtifact.ts +87 -0
- package/src/models/SupermodelIR.ts +126 -0
- package/src/models/SupermodelIRGraph.ts +83 -0
- package/src/models/UnassignedFunction.ts +70 -0
- package/src/models/index.ts +22 -0
- package/src/runtime.ts +426 -0
- package/tsconfig.esm.json +7 -0
- package/tsconfig.json +16 -0
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Supermodel
|
|
3
|
+
* Code Graphing & Analysis API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.3.7
|
|
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
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface CodeGraphNode
|
|
16
|
+
*/
|
|
17
|
+
export interface CodeGraphNode {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CodeGraphNode
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {Array<string>}
|
|
27
|
+
* @memberof CodeGraphNode
|
|
28
|
+
*/
|
|
29
|
+
labels?: Array<string>;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {{ [key: string]: any; }}
|
|
33
|
+
* @memberof CodeGraphNode
|
|
34
|
+
*/
|
|
35
|
+
properties?: {
|
|
36
|
+
[key: string]: any;
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Check if a given object implements the CodeGraphNode interface.
|
|
41
|
+
*/
|
|
42
|
+
export declare function instanceOfCodeGraphNode(value: object): value is CodeGraphNode;
|
|
43
|
+
export declare function CodeGraphNodeFromJSON(json: any): CodeGraphNode;
|
|
44
|
+
export declare function CodeGraphNodeFromJSONTyped(json: any, ignoreDiscriminator: boolean): CodeGraphNode;
|
|
45
|
+
export declare function CodeGraphNodeToJSON(value?: CodeGraphNode | null): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
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.3.7
|
|
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.instanceOfCodeGraphNode = instanceOfCodeGraphNode;
|
|
17
|
+
exports.CodeGraphNodeFromJSON = CodeGraphNodeFromJSON;
|
|
18
|
+
exports.CodeGraphNodeFromJSONTyped = CodeGraphNodeFromJSONTyped;
|
|
19
|
+
exports.CodeGraphNodeToJSON = CodeGraphNodeToJSON;
|
|
20
|
+
/**
|
|
21
|
+
* Check if a given object implements the CodeGraphNode interface.
|
|
22
|
+
*/
|
|
23
|
+
function instanceOfCodeGraphNode(value) {
|
|
24
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function CodeGraphNodeFromJSON(json) {
|
|
29
|
+
return CodeGraphNodeFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function CodeGraphNodeFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'id': json['id'],
|
|
37
|
+
'labels': json['labels'] == null ? undefined : json['labels'],
|
|
38
|
+
'properties': json['properties'] == null ? undefined : json['properties'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function CodeGraphNodeToJSON(value) {
|
|
42
|
+
if (value == null) {
|
|
43
|
+
return value;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'id': value['id'],
|
|
47
|
+
'labels': value['labels'],
|
|
48
|
+
'properties': value['properties'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Supermodel
|
|
3
|
+
* Code Graphing & Analysis API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.3.7
|
|
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
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface CodeGraphRelationship
|
|
16
|
+
*/
|
|
17
|
+
export interface CodeGraphRelationship {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CodeGraphRelationship
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof CodeGraphRelationship
|
|
28
|
+
*/
|
|
29
|
+
type: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof CodeGraphRelationship
|
|
34
|
+
*/
|
|
35
|
+
startNode: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof CodeGraphRelationship
|
|
40
|
+
*/
|
|
41
|
+
endNode: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {{ [key: string]: any; }}
|
|
45
|
+
* @memberof CodeGraphRelationship
|
|
46
|
+
*/
|
|
47
|
+
properties?: {
|
|
48
|
+
[key: string]: any;
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the CodeGraphRelationship interface.
|
|
53
|
+
*/
|
|
54
|
+
export declare function instanceOfCodeGraphRelationship(value: object): value is CodeGraphRelationship;
|
|
55
|
+
export declare function CodeGraphRelationshipFromJSON(json: any): CodeGraphRelationship;
|
|
56
|
+
export declare function CodeGraphRelationshipFromJSONTyped(json: any, ignoreDiscriminator: boolean): CodeGraphRelationship;
|
|
57
|
+
export declare function CodeGraphRelationshipToJSON(value?: CodeGraphRelationship | null): any;
|
|
@@ -0,0 +1,60 @@
|
|
|
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.3.7
|
|
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.instanceOfCodeGraphRelationship = instanceOfCodeGraphRelationship;
|
|
17
|
+
exports.CodeGraphRelationshipFromJSON = CodeGraphRelationshipFromJSON;
|
|
18
|
+
exports.CodeGraphRelationshipFromJSONTyped = CodeGraphRelationshipFromJSONTyped;
|
|
19
|
+
exports.CodeGraphRelationshipToJSON = CodeGraphRelationshipToJSON;
|
|
20
|
+
/**
|
|
21
|
+
* Check if a given object implements the CodeGraphRelationship interface.
|
|
22
|
+
*/
|
|
23
|
+
function instanceOfCodeGraphRelationship(value) {
|
|
24
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('startNode' in value) || value['startNode'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('endNode' in value) || value['endNode'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
function CodeGraphRelationshipFromJSON(json) {
|
|
35
|
+
return CodeGraphRelationshipFromJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
function CodeGraphRelationshipFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
+
if (json == null) {
|
|
39
|
+
return json;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'id': json['id'],
|
|
43
|
+
'type': json['type'],
|
|
44
|
+
'startNode': json['startNode'],
|
|
45
|
+
'endNode': json['endNode'],
|
|
46
|
+
'properties': json['properties'] == null ? undefined : json['properties'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function CodeGraphRelationshipToJSON(value) {
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'id': value['id'],
|
|
55
|
+
'type': value['type'],
|
|
56
|
+
'startNode': value['startNode'],
|
|
57
|
+
'endNode': value['endNode'],
|
|
58
|
+
'properties': value['properties'],
|
|
59
|
+
};
|
|
60
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Supermodel
|
|
3
|
+
* Code Graphing & Analysis API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.3.7
|
|
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
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface CodeGraphStats
|
|
16
|
+
*/
|
|
17
|
+
export interface CodeGraphStats {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof CodeGraphStats
|
|
22
|
+
*/
|
|
23
|
+
filesProcessed?: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof CodeGraphStats
|
|
28
|
+
*/
|
|
29
|
+
classes?: number;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof CodeGraphStats
|
|
34
|
+
*/
|
|
35
|
+
functions?: number;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof CodeGraphStats
|
|
40
|
+
*/
|
|
41
|
+
types?: number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof CodeGraphStats
|
|
46
|
+
*/
|
|
47
|
+
processingTimeMs?: number;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the CodeGraphStats interface.
|
|
51
|
+
*/
|
|
52
|
+
export declare function instanceOfCodeGraphStats(value: object): value is CodeGraphStats;
|
|
53
|
+
export declare function CodeGraphStatsFromJSON(json: any): CodeGraphStats;
|
|
54
|
+
export declare function CodeGraphStatsFromJSONTyped(json: any, ignoreDiscriminator: boolean): CodeGraphStats;
|
|
55
|
+
export declare function CodeGraphStatsToJSON(value?: CodeGraphStats | null): any;
|
|
@@ -0,0 +1,52 @@
|
|
|
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.3.7
|
|
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.instanceOfCodeGraphStats = instanceOfCodeGraphStats;
|
|
17
|
+
exports.CodeGraphStatsFromJSON = CodeGraphStatsFromJSON;
|
|
18
|
+
exports.CodeGraphStatsFromJSONTyped = CodeGraphStatsFromJSONTyped;
|
|
19
|
+
exports.CodeGraphStatsToJSON = CodeGraphStatsToJSON;
|
|
20
|
+
/**
|
|
21
|
+
* Check if a given object implements the CodeGraphStats interface.
|
|
22
|
+
*/
|
|
23
|
+
function instanceOfCodeGraphStats(value) {
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
function CodeGraphStatsFromJSON(json) {
|
|
27
|
+
return CodeGraphStatsFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
function CodeGraphStatsFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
if (json == null) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'filesProcessed': json['filesProcessed'] == null ? undefined : json['filesProcessed'],
|
|
35
|
+
'classes': json['classes'] == null ? undefined : json['classes'],
|
|
36
|
+
'functions': json['functions'] == null ? undefined : json['functions'],
|
|
37
|
+
'types': json['types'] == null ? undefined : json['types'],
|
|
38
|
+
'processingTimeMs': json['processingTimeMs'] == null ? undefined : json['processingTimeMs'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function CodeGraphStatsToJSON(value) {
|
|
42
|
+
if (value == null) {
|
|
43
|
+
return value;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'filesProcessed': value['filesProcessed'],
|
|
47
|
+
'classes': value['classes'],
|
|
48
|
+
'functions': value['functions'],
|
|
49
|
+
'types': value['types'],
|
|
50
|
+
'processingTimeMs': value['processingTimeMs'],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Supermodel
|
|
3
|
+
* Code Graphing & Analysis API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.3.7
|
|
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
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface DomainClassAssignment
|
|
16
|
+
*/
|
|
17
|
+
export interface DomainClassAssignment {
|
|
18
|
+
/**
|
|
19
|
+
* Class identifier
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof DomainClassAssignment
|
|
22
|
+
*/
|
|
23
|
+
classId: string;
|
|
24
|
+
/**
|
|
25
|
+
* Assigned domain
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof DomainClassAssignment
|
|
28
|
+
*/
|
|
29
|
+
domainName: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the DomainClassAssignment interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfDomainClassAssignment(value: object): value is DomainClassAssignment;
|
|
35
|
+
export declare function DomainClassAssignmentFromJSON(json: any): DomainClassAssignment;
|
|
36
|
+
export declare function DomainClassAssignmentFromJSONTyped(json: any, ignoreDiscriminator: boolean): DomainClassAssignment;
|
|
37
|
+
export declare function DomainClassAssignmentToJSON(value?: DomainClassAssignment | null): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
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.3.7
|
|
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.instanceOfDomainClassAssignment = instanceOfDomainClassAssignment;
|
|
17
|
+
exports.DomainClassAssignmentFromJSON = DomainClassAssignmentFromJSON;
|
|
18
|
+
exports.DomainClassAssignmentFromJSONTyped = DomainClassAssignmentFromJSONTyped;
|
|
19
|
+
exports.DomainClassAssignmentToJSON = DomainClassAssignmentToJSON;
|
|
20
|
+
/**
|
|
21
|
+
* Check if a given object implements the DomainClassAssignment interface.
|
|
22
|
+
*/
|
|
23
|
+
function instanceOfDomainClassAssignment(value) {
|
|
24
|
+
if (!('classId' in value) || value['classId'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('domainName' in value) || value['domainName'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
function DomainClassAssignmentFromJSON(json) {
|
|
31
|
+
return DomainClassAssignmentFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
function DomainClassAssignmentFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'classId': json['classId'],
|
|
39
|
+
'domainName': json['domainName'],
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
function DomainClassAssignmentToJSON(value) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'classId': value['classId'],
|
|
48
|
+
'domainName': value['domainName'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Supermodel
|
|
3
|
+
* Code Graphing & Analysis API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.3.7
|
|
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 { UnassignedFunction } from './UnassignedFunction';
|
|
13
|
+
import type { DomainClassAssignment } from './DomainClassAssignment';
|
|
14
|
+
import type { DomainFileAssignment } from './DomainFileAssignment';
|
|
15
|
+
import type { DomainFunctionAssignment } from './DomainFunctionAssignment';
|
|
16
|
+
import type { FunctionDescription } from './FunctionDescription';
|
|
17
|
+
import type { DomainRelationship } from './DomainRelationship';
|
|
18
|
+
import type { DomainSummary } from './DomainSummary';
|
|
19
|
+
import type { ClassificationStats } from './ClassificationStats';
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @export
|
|
23
|
+
* @interface DomainClassificationResponse
|
|
24
|
+
*/
|
|
25
|
+
export interface DomainClassificationResponse {
|
|
26
|
+
/**
|
|
27
|
+
* Unique identifier for this classification run
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof DomainClassificationResponse
|
|
30
|
+
*/
|
|
31
|
+
runId: string;
|
|
32
|
+
/**
|
|
33
|
+
* Array of primary domain entities
|
|
34
|
+
* @type {Array<DomainSummary>}
|
|
35
|
+
* @memberof DomainClassificationResponse
|
|
36
|
+
*/
|
|
37
|
+
domains: Array<DomainSummary>;
|
|
38
|
+
/**
|
|
39
|
+
* High-level relationships between domains/subdomains
|
|
40
|
+
* @type {Array<DomainRelationship>}
|
|
41
|
+
* @memberof DomainClassificationResponse
|
|
42
|
+
*/
|
|
43
|
+
relationships: Array<DomainRelationship>;
|
|
44
|
+
/**
|
|
45
|
+
* Mapping of files to domains
|
|
46
|
+
* @type {Array<DomainFileAssignment>}
|
|
47
|
+
* @memberof DomainClassificationResponse
|
|
48
|
+
*/
|
|
49
|
+
fileAssignments: Array<DomainFileAssignment>;
|
|
50
|
+
/**
|
|
51
|
+
* Mapping of functions to subdomains
|
|
52
|
+
* @type {Array<DomainFunctionAssignment>}
|
|
53
|
+
* @memberof DomainClassificationResponse
|
|
54
|
+
*/
|
|
55
|
+
functionAssignments: Array<DomainFunctionAssignment>;
|
|
56
|
+
/**
|
|
57
|
+
* Functions that could not be assigned to a domain/subdomain
|
|
58
|
+
* @type {Array<UnassignedFunction>}
|
|
59
|
+
* @memberof DomainClassificationResponse
|
|
60
|
+
*/
|
|
61
|
+
unassignedFunctions: Array<UnassignedFunction>;
|
|
62
|
+
/**
|
|
63
|
+
* Mapping of classes to domains
|
|
64
|
+
* @type {Array<DomainClassAssignment>}
|
|
65
|
+
* @memberof DomainClassificationResponse
|
|
66
|
+
*/
|
|
67
|
+
classAssignments: Array<DomainClassAssignment>;
|
|
68
|
+
/**
|
|
69
|
+
* Optional enriched descriptions per function
|
|
70
|
+
* @type {Array<FunctionDescription>}
|
|
71
|
+
* @memberof DomainClassificationResponse
|
|
72
|
+
*/
|
|
73
|
+
functionDescriptions?: Array<FunctionDescription>;
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @type {ClassificationStats}
|
|
77
|
+
* @memberof DomainClassificationResponse
|
|
78
|
+
*/
|
|
79
|
+
stats: ClassificationStats;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Check if a given object implements the DomainClassificationResponse interface.
|
|
83
|
+
*/
|
|
84
|
+
export declare function instanceOfDomainClassificationResponse(value: object): value is DomainClassificationResponse;
|
|
85
|
+
export declare function DomainClassificationResponseFromJSON(json: any): DomainClassificationResponse;
|
|
86
|
+
export declare function DomainClassificationResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DomainClassificationResponse;
|
|
87
|
+
export declare function DomainClassificationResponseToJSON(value?: DomainClassificationResponse | null): any;
|
|
@@ -0,0 +1,84 @@
|
|
|
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.3.7
|
|
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.instanceOfDomainClassificationResponse = instanceOfDomainClassificationResponse;
|
|
17
|
+
exports.DomainClassificationResponseFromJSON = DomainClassificationResponseFromJSON;
|
|
18
|
+
exports.DomainClassificationResponseFromJSONTyped = DomainClassificationResponseFromJSONTyped;
|
|
19
|
+
exports.DomainClassificationResponseToJSON = DomainClassificationResponseToJSON;
|
|
20
|
+
const UnassignedFunction_1 = require("./UnassignedFunction");
|
|
21
|
+
const DomainClassAssignment_1 = require("./DomainClassAssignment");
|
|
22
|
+
const DomainFileAssignment_1 = require("./DomainFileAssignment");
|
|
23
|
+
const DomainFunctionAssignment_1 = require("./DomainFunctionAssignment");
|
|
24
|
+
const FunctionDescription_1 = require("./FunctionDescription");
|
|
25
|
+
const DomainRelationship_1 = require("./DomainRelationship");
|
|
26
|
+
const DomainSummary_1 = require("./DomainSummary");
|
|
27
|
+
const ClassificationStats_1 = require("./ClassificationStats");
|
|
28
|
+
/**
|
|
29
|
+
* Check if a given object implements the DomainClassificationResponse interface.
|
|
30
|
+
*/
|
|
31
|
+
function instanceOfDomainClassificationResponse(value) {
|
|
32
|
+
if (!('runId' in value) || value['runId'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('domains' in value) || value['domains'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('relationships' in value) || value['relationships'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('fileAssignments' in value) || value['fileAssignments'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('functionAssignments' in value) || value['functionAssignments'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('unassignedFunctions' in value) || value['unassignedFunctions'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
if (!('classAssignments' in value) || value['classAssignments'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
if (!('stats' in value) || value['stats'] === undefined)
|
|
47
|
+
return false;
|
|
48
|
+
return true;
|
|
49
|
+
}
|
|
50
|
+
function DomainClassificationResponseFromJSON(json) {
|
|
51
|
+
return DomainClassificationResponseFromJSONTyped(json, false);
|
|
52
|
+
}
|
|
53
|
+
function DomainClassificationResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
54
|
+
if (json == null) {
|
|
55
|
+
return json;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'runId': json['runId'],
|
|
59
|
+
'domains': (json['domains'].map(DomainSummary_1.DomainSummaryFromJSON)),
|
|
60
|
+
'relationships': (json['relationships'].map(DomainRelationship_1.DomainRelationshipFromJSON)),
|
|
61
|
+
'fileAssignments': (json['fileAssignments'].map(DomainFileAssignment_1.DomainFileAssignmentFromJSON)),
|
|
62
|
+
'functionAssignments': (json['functionAssignments'].map(DomainFunctionAssignment_1.DomainFunctionAssignmentFromJSON)),
|
|
63
|
+
'unassignedFunctions': (json['unassignedFunctions'].map(UnassignedFunction_1.UnassignedFunctionFromJSON)),
|
|
64
|
+
'classAssignments': (json['classAssignments'].map(DomainClassAssignment_1.DomainClassAssignmentFromJSON)),
|
|
65
|
+
'functionDescriptions': json['functionDescriptions'] == null ? undefined : (json['functionDescriptions'].map(FunctionDescription_1.FunctionDescriptionFromJSON)),
|
|
66
|
+
'stats': (0, ClassificationStats_1.ClassificationStatsFromJSON)(json['stats']),
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
function DomainClassificationResponseToJSON(value) {
|
|
70
|
+
if (value == null) {
|
|
71
|
+
return value;
|
|
72
|
+
}
|
|
73
|
+
return {
|
|
74
|
+
'runId': value['runId'],
|
|
75
|
+
'domains': (value['domains'].map(DomainSummary_1.DomainSummaryToJSON)),
|
|
76
|
+
'relationships': (value['relationships'].map(DomainRelationship_1.DomainRelationshipToJSON)),
|
|
77
|
+
'fileAssignments': (value['fileAssignments'].map(DomainFileAssignment_1.DomainFileAssignmentToJSON)),
|
|
78
|
+
'functionAssignments': (value['functionAssignments'].map(DomainFunctionAssignment_1.DomainFunctionAssignmentToJSON)),
|
|
79
|
+
'unassignedFunctions': (value['unassignedFunctions'].map(UnassignedFunction_1.UnassignedFunctionToJSON)),
|
|
80
|
+
'classAssignments': (value['classAssignments'].map(DomainClassAssignment_1.DomainClassAssignmentToJSON)),
|
|
81
|
+
'functionDescriptions': value['functionDescriptions'] == null ? undefined : (value['functionDescriptions'].map(FunctionDescription_1.FunctionDescriptionToJSON)),
|
|
82
|
+
'stats': (0, ClassificationStats_1.ClassificationStatsToJSON)(value['stats']),
|
|
83
|
+
};
|
|
84
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Supermodel
|
|
3
|
+
* Code Graphing & Analysis API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.3.7
|
|
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
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface DomainFileAssignment
|
|
16
|
+
*/
|
|
17
|
+
export interface DomainFileAssignment {
|
|
18
|
+
/**
|
|
19
|
+
* Repository-relative file path
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof DomainFileAssignment
|
|
22
|
+
*/
|
|
23
|
+
filePath: string;
|
|
24
|
+
/**
|
|
25
|
+
* Assigned domain
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof DomainFileAssignment
|
|
28
|
+
*/
|
|
29
|
+
domainName: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the DomainFileAssignment interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfDomainFileAssignment(value: object): value is DomainFileAssignment;
|
|
35
|
+
export declare function DomainFileAssignmentFromJSON(json: any): DomainFileAssignment;
|
|
36
|
+
export declare function DomainFileAssignmentFromJSONTyped(json: any, ignoreDiscriminator: boolean): DomainFileAssignment;
|
|
37
|
+
export declare function DomainFileAssignmentToJSON(value?: DomainFileAssignment | null): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
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.3.7
|
|
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.instanceOfDomainFileAssignment = instanceOfDomainFileAssignment;
|
|
17
|
+
exports.DomainFileAssignmentFromJSON = DomainFileAssignmentFromJSON;
|
|
18
|
+
exports.DomainFileAssignmentFromJSONTyped = DomainFileAssignmentFromJSONTyped;
|
|
19
|
+
exports.DomainFileAssignmentToJSON = DomainFileAssignmentToJSON;
|
|
20
|
+
/**
|
|
21
|
+
* Check if a given object implements the DomainFileAssignment interface.
|
|
22
|
+
*/
|
|
23
|
+
function instanceOfDomainFileAssignment(value) {
|
|
24
|
+
if (!('filePath' in value) || value['filePath'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('domainName' in value) || value['domainName'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
function DomainFileAssignmentFromJSON(json) {
|
|
31
|
+
return DomainFileAssignmentFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
function DomainFileAssignmentFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'filePath': json['filePath'],
|
|
39
|
+
'domainName': json['domainName'],
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
function DomainFileAssignmentToJSON(value) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'filePath': value['filePath'],
|
|
48
|
+
'domainName': value['domainName'],
|
|
49
|
+
};
|
|
50
|
+
}
|