@supermodeltools/sdk 0.5.4 → 0.6.2
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 +12 -12
- package/dist/apis/DefaultApi.js +6 -6
- package/dist/async.d.ts +152 -0
- package/dist/async.js +235 -0
- package/dist/esm/apis/DefaultApi.d.ts +12 -12
- package/dist/esm/apis/DefaultApi.js +7 -7
- package/dist/esm/async.d.ts +152 -0
- package/dist/esm/async.js +229 -0
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.js +1 -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 +66 -0
- package/dist/esm/models/CodeGraphEnvelopeAsync.js +60 -0
- package/dist/esm/models/CodeGraphEnvelopeGraph.d.ts +1 -1
- package/dist/esm/models/CodeGraphEnvelopeGraph.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/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 +66 -0
- package/dist/esm/models/DomainClassificationResponseAsync.js +60 -0
- 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/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/JobStatus.d.ts +59 -0
- package/dist/esm/models/JobStatus.js +57 -0
- package/dist/esm/models/ModelError.d.ts +1 -1
- package/dist/esm/models/ModelError.js +1 -1
- 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 +66 -0
- package/dist/esm/models/SupermodelIRAsync.js +60 -0
- package/dist/esm/models/SupermodelIRGraph.d.ts +1 -1
- package/dist/esm/models/SupermodelIRGraph.js +1 -1
- package/dist/esm/models/UnassignedFunction.d.ts +1 -1
- package/dist/esm/models/UnassignedFunction.js +1 -1
- package/dist/esm/models/index.d.ts +4 -0
- package/dist/esm/models/index.js +4 -0
- package/dist/esm/runtime.d.ts +1 -1
- package/dist/esm/runtime.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -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 +66 -0
- package/dist/models/CodeGraphEnvelopeAsync.js +67 -0
- package/dist/models/CodeGraphEnvelopeGraph.d.ts +1 -1
- package/dist/models/CodeGraphEnvelopeGraph.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/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 +66 -0
- package/dist/models/DomainClassificationResponseAsync.js +67 -0
- 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/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/JobStatus.d.ts +59 -0
- package/dist/models/JobStatus.js +64 -0
- package/dist/models/ModelError.d.ts +1 -1
- package/dist/models/ModelError.js +1 -1
- 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 +66 -0
- package/dist/models/SupermodelIRAsync.js +67 -0
- package/dist/models/SupermodelIRGraph.d.ts +1 -1
- package/dist/models/SupermodelIRGraph.js +1 -1
- package/dist/models/UnassignedFunction.d.ts +1 -1
- package/dist/models/UnassignedFunction.js +1 -1
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/dist/runtime.d.ts +1 -1
- package/dist/runtime.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Supermodel
|
|
3
|
+
* Code Graphing & Analysis API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.6.2
|
|
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 { DomainClassificationResponse } from './DomainClassificationResponse';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface DomainClassificationResponseAsync
|
|
17
|
+
*/
|
|
18
|
+
export interface DomainClassificationResponseAsync {
|
|
19
|
+
/**
|
|
20
|
+
* Current status of the job.
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof DomainClassificationResponseAsync
|
|
23
|
+
*/
|
|
24
|
+
status: DomainClassificationResponseAsyncStatusEnum;
|
|
25
|
+
/**
|
|
26
|
+
* Unique identifier for the job.
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof DomainClassificationResponseAsync
|
|
29
|
+
*/
|
|
30
|
+
jobId: string;
|
|
31
|
+
/**
|
|
32
|
+
* Recommended seconds to wait before polling again.
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof DomainClassificationResponseAsync
|
|
35
|
+
*/
|
|
36
|
+
retryAfter?: number;
|
|
37
|
+
/**
|
|
38
|
+
* Error message (present when status is failed).
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof DomainClassificationResponseAsync
|
|
41
|
+
*/
|
|
42
|
+
error?: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {DomainClassificationResponse}
|
|
46
|
+
* @memberof DomainClassificationResponseAsync
|
|
47
|
+
*/
|
|
48
|
+
result?: DomainClassificationResponse;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* @export
|
|
52
|
+
*/
|
|
53
|
+
export declare const DomainClassificationResponseAsyncStatusEnum: {
|
|
54
|
+
readonly Pending: "pending";
|
|
55
|
+
readonly Processing: "processing";
|
|
56
|
+
readonly Completed: "completed";
|
|
57
|
+
readonly Failed: "failed";
|
|
58
|
+
};
|
|
59
|
+
export type DomainClassificationResponseAsyncStatusEnum = typeof DomainClassificationResponseAsyncStatusEnum[keyof typeof DomainClassificationResponseAsyncStatusEnum];
|
|
60
|
+
/**
|
|
61
|
+
* Check if a given object implements the DomainClassificationResponseAsync interface.
|
|
62
|
+
*/
|
|
63
|
+
export declare function instanceOfDomainClassificationResponseAsync(value: object): value is DomainClassificationResponseAsync;
|
|
64
|
+
export declare function DomainClassificationResponseAsyncFromJSON(json: any): DomainClassificationResponseAsync;
|
|
65
|
+
export declare function DomainClassificationResponseAsyncFromJSONTyped(json: any, ignoreDiscriminator: boolean): DomainClassificationResponseAsync;
|
|
66
|
+
export declare function DomainClassificationResponseAsyncToJSON(value?: DomainClassificationResponseAsync | null): any;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Supermodel
|
|
5
|
+
* Code Graphing & Analysis API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.6.2
|
|
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 { DomainClassificationResponseFromJSON, DomainClassificationResponseToJSON, } from './DomainClassificationResponse';
|
|
15
|
+
/**
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export const DomainClassificationResponseAsyncStatusEnum = {
|
|
19
|
+
Pending: 'pending',
|
|
20
|
+
Processing: 'processing',
|
|
21
|
+
Completed: 'completed',
|
|
22
|
+
Failed: 'failed'
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* Check if a given object implements the DomainClassificationResponseAsync interface.
|
|
26
|
+
*/
|
|
27
|
+
export function instanceOfDomainClassificationResponseAsync(value) {
|
|
28
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('jobId' in value) || value['jobId'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
export function DomainClassificationResponseAsyncFromJSON(json) {
|
|
35
|
+
return DomainClassificationResponseAsyncFromJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function DomainClassificationResponseAsyncFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
+
if (json == null) {
|
|
39
|
+
return json;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'status': json['status'],
|
|
43
|
+
'jobId': json['jobId'],
|
|
44
|
+
'retryAfter': json['retryAfter'] == null ? undefined : json['retryAfter'],
|
|
45
|
+
'error': json['error'] == null ? undefined : json['error'],
|
|
46
|
+
'result': json['result'] == null ? undefined : DomainClassificationResponseFromJSON(json['result']),
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
export function DomainClassificationResponseAsyncToJSON(value) {
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'status': value['status'],
|
|
55
|
+
'jobId': value['jobId'],
|
|
56
|
+
'retryAfter': value['retryAfter'],
|
|
57
|
+
'error': value['error'],
|
|
58
|
+
'result': DomainClassificationResponseToJSON(value['result']),
|
|
59
|
+
};
|
|
60
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Supermodel
|
|
3
|
+
* Code Graphing & Analysis API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.6.2
|
|
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
|
+
* Common fields for async job status tracking.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface JobStatus
|
|
16
|
+
*/
|
|
17
|
+
export interface JobStatus {
|
|
18
|
+
/**
|
|
19
|
+
* Current status of the job.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof JobStatus
|
|
22
|
+
*/
|
|
23
|
+
status: JobStatusStatusEnum;
|
|
24
|
+
/**
|
|
25
|
+
* Unique identifier for the job.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof JobStatus
|
|
28
|
+
*/
|
|
29
|
+
jobId: string;
|
|
30
|
+
/**
|
|
31
|
+
* Recommended seconds to wait before polling again.
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof JobStatus
|
|
34
|
+
*/
|
|
35
|
+
retryAfter?: number;
|
|
36
|
+
/**
|
|
37
|
+
* Error message (present when status is failed).
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof JobStatus
|
|
40
|
+
*/
|
|
41
|
+
error?: string;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* @export
|
|
45
|
+
*/
|
|
46
|
+
export declare const JobStatusStatusEnum: {
|
|
47
|
+
readonly Pending: "pending";
|
|
48
|
+
readonly Processing: "processing";
|
|
49
|
+
readonly Completed: "completed";
|
|
50
|
+
readonly Failed: "failed";
|
|
51
|
+
};
|
|
52
|
+
export type JobStatusStatusEnum = typeof JobStatusStatusEnum[keyof typeof JobStatusStatusEnum];
|
|
53
|
+
/**
|
|
54
|
+
* Check if a given object implements the JobStatus interface.
|
|
55
|
+
*/
|
|
56
|
+
export declare function instanceOfJobStatus(value: object): value is JobStatus;
|
|
57
|
+
export declare function JobStatusFromJSON(json: any): JobStatus;
|
|
58
|
+
export declare function JobStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): JobStatus;
|
|
59
|
+
export declare function JobStatusToJSON(value?: JobStatus | null): any;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Supermodel
|
|
5
|
+
* Code Graphing & Analysis API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.6.2
|
|
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 JobStatusStatusEnum = {
|
|
18
|
+
Pending: 'pending',
|
|
19
|
+
Processing: 'processing',
|
|
20
|
+
Completed: 'completed',
|
|
21
|
+
Failed: 'failed'
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the JobStatus interface.
|
|
25
|
+
*/
|
|
26
|
+
export function instanceOfJobStatus(value) {
|
|
27
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('jobId' in value) || value['jobId'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
export function JobStatusFromJSON(json) {
|
|
34
|
+
return JobStatusFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function JobStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'status': json['status'],
|
|
42
|
+
'jobId': json['jobId'],
|
|
43
|
+
'retryAfter': json['retryAfter'] == null ? undefined : json['retryAfter'],
|
|
44
|
+
'error': json['error'] == null ? undefined : json['error'],
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
export function JobStatusToJSON(value) {
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'status': value['status'],
|
|
53
|
+
'jobId': value['jobId'],
|
|
54
|
+
'retryAfter': value['retryAfter'],
|
|
55
|
+
'error': value['error'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Supermodel
|
|
3
|
+
* Code Graphing & Analysis API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.6.2
|
|
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 { SupermodelIR } from './SupermodelIR';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface SupermodelIRAsync
|
|
17
|
+
*/
|
|
18
|
+
export interface SupermodelIRAsync {
|
|
19
|
+
/**
|
|
20
|
+
* Current status of the job.
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof SupermodelIRAsync
|
|
23
|
+
*/
|
|
24
|
+
status: SupermodelIRAsyncStatusEnum;
|
|
25
|
+
/**
|
|
26
|
+
* Unique identifier for the job.
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof SupermodelIRAsync
|
|
29
|
+
*/
|
|
30
|
+
jobId: string;
|
|
31
|
+
/**
|
|
32
|
+
* Recommended seconds to wait before polling again.
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof SupermodelIRAsync
|
|
35
|
+
*/
|
|
36
|
+
retryAfter?: number;
|
|
37
|
+
/**
|
|
38
|
+
* Error message (present when status is failed).
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof SupermodelIRAsync
|
|
41
|
+
*/
|
|
42
|
+
error?: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {SupermodelIR}
|
|
46
|
+
* @memberof SupermodelIRAsync
|
|
47
|
+
*/
|
|
48
|
+
result?: SupermodelIR;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* @export
|
|
52
|
+
*/
|
|
53
|
+
export declare const SupermodelIRAsyncStatusEnum: {
|
|
54
|
+
readonly Pending: "pending";
|
|
55
|
+
readonly Processing: "processing";
|
|
56
|
+
readonly Completed: "completed";
|
|
57
|
+
readonly Failed: "failed";
|
|
58
|
+
};
|
|
59
|
+
export type SupermodelIRAsyncStatusEnum = typeof SupermodelIRAsyncStatusEnum[keyof typeof SupermodelIRAsyncStatusEnum];
|
|
60
|
+
/**
|
|
61
|
+
* Check if a given object implements the SupermodelIRAsync interface.
|
|
62
|
+
*/
|
|
63
|
+
export declare function instanceOfSupermodelIRAsync(value: object): value is SupermodelIRAsync;
|
|
64
|
+
export declare function SupermodelIRAsyncFromJSON(json: any): SupermodelIRAsync;
|
|
65
|
+
export declare function SupermodelIRAsyncFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupermodelIRAsync;
|
|
66
|
+
export declare function SupermodelIRAsyncToJSON(value?: SupermodelIRAsync | null): any;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Supermodel
|
|
5
|
+
* Code Graphing & Analysis API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.6.2
|
|
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 { SupermodelIRFromJSON, SupermodelIRToJSON, } from './SupermodelIR';
|
|
15
|
+
/**
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export const SupermodelIRAsyncStatusEnum = {
|
|
19
|
+
Pending: 'pending',
|
|
20
|
+
Processing: 'processing',
|
|
21
|
+
Completed: 'completed',
|
|
22
|
+
Failed: 'failed'
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* Check if a given object implements the SupermodelIRAsync interface.
|
|
26
|
+
*/
|
|
27
|
+
export function instanceOfSupermodelIRAsync(value) {
|
|
28
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('jobId' in value) || value['jobId'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
export function SupermodelIRAsyncFromJSON(json) {
|
|
35
|
+
return SupermodelIRAsyncFromJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function SupermodelIRAsyncFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
+
if (json == null) {
|
|
39
|
+
return json;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'status': json['status'],
|
|
43
|
+
'jobId': json['jobId'],
|
|
44
|
+
'retryAfter': json['retryAfter'] == null ? undefined : json['retryAfter'],
|
|
45
|
+
'error': json['error'] == null ? undefined : json['error'],
|
|
46
|
+
'result': json['result'] == null ? undefined : SupermodelIRFromJSON(json['result']),
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
export function SupermodelIRAsyncToJSON(value) {
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'status': value['status'],
|
|
55
|
+
'jobId': value['jobId'],
|
|
56
|
+
'retryAfter': value['retryAfter'],
|
|
57
|
+
'error': value['error'],
|
|
58
|
+
'result': SupermodelIRToJSON(value['result']),
|
|
59
|
+
};
|
|
60
|
+
}
|
|
@@ -1,20 +1,24 @@
|
|
|
1
1
|
export * from './ClassificationStats';
|
|
2
2
|
export * from './CodeGraphEnvelope';
|
|
3
|
+
export * from './CodeGraphEnvelopeAsync';
|
|
3
4
|
export * from './CodeGraphEnvelopeGraph';
|
|
4
5
|
export * from './CodeGraphNode';
|
|
5
6
|
export * from './CodeGraphRelationship';
|
|
6
7
|
export * from './CodeGraphStats';
|
|
7
8
|
export * from './DomainClassAssignment';
|
|
8
9
|
export * from './DomainClassificationResponse';
|
|
10
|
+
export * from './DomainClassificationResponseAsync';
|
|
9
11
|
export * from './DomainFileAssignment';
|
|
10
12
|
export * from './DomainFunctionAssignment';
|
|
11
13
|
export * from './DomainRelationship';
|
|
12
14
|
export * from './DomainSummary';
|
|
13
15
|
export * from './ErrorDetailsInner';
|
|
14
16
|
export * from './FunctionDescription';
|
|
17
|
+
export * from './JobStatus';
|
|
15
18
|
export * from './ModelError';
|
|
16
19
|
export * from './SubdomainSummary';
|
|
17
20
|
export * from './SupermodelArtifact';
|
|
18
21
|
export * from './SupermodelIR';
|
|
22
|
+
export * from './SupermodelIRAsync';
|
|
19
23
|
export * from './SupermodelIRGraph';
|
|
20
24
|
export * from './UnassignedFunction';
|