@otr-app/shared-backend-generated-client 2.4.32 → 2.4.33
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/angular/.openapi-generator/FILES +10 -0
- package/dist/angular/api/api.ts +3 -1
- package/dist/angular/api/ocrPipelineController.service.ts +234 -0
- package/dist/angular/api.module.ts +1 -0
- package/dist/angular/model/citationIssueDate.ts +17 -0
- package/dist/angular/model/courtName.ts +20 -0
- package/dist/angular/model/models.ts +9 -0
- package/dist/angular/model/predictCitationRequest.ts +19 -0
- package/dist/angular/model/predictCitationResponse.ts +18 -0
- package/dist/angular/model/predictRichCitationResponse.ts +18 -0
- package/dist/angular/model/richCitationInferenceResponse.ts +42 -0
- package/dist/angular/model/skipMap.ts +18 -0
- package/dist/angular/model/slimCitationInferenceResponse.ts +27 -0
- package/dist/angular/model/violationNames.ts +19 -0
- package/dist/otrBackendService.js +74 -0
- package/dist/otrBackendService.min.js +3 -3
- package/dist/typescript/api/OcrPipelineControllerApi.d.ts +33 -0
- package/dist/typescript/api/OcrPipelineControllerApi.js +79 -0
- package/dist/typescript/api/api.d.ts +3 -1
- package/dist/typescript/api/api.js +3 -1
- package/dist/typescript/api.module.js +1 -0
- package/dist/typescript/model/CitationIssueDate.d.ts +14 -0
- package/dist/typescript/model/CitationIssueDate.js +13 -0
- package/dist/typescript/model/CourtName.d.ts +17 -0
- package/dist/typescript/model/CourtName.js +13 -0
- package/dist/typescript/model/PredictCitationRequest.d.ts +16 -0
- package/dist/typescript/model/PredictCitationRequest.js +13 -0
- package/dist/typescript/model/PredictCitationResponse.d.ts +15 -0
- package/dist/typescript/model/PredictCitationResponse.js +13 -0
- package/dist/typescript/model/PredictRichCitationResponse.d.ts +15 -0
- package/dist/typescript/model/PredictRichCitationResponse.js +13 -0
- package/dist/typescript/model/RichCitationInferenceResponse.d.ts +39 -0
- package/dist/typescript/model/RichCitationInferenceResponse.js +13 -0
- package/dist/typescript/model/SkipMap.d.ts +15 -0
- package/dist/typescript/model/SkipMap.js +13 -0
- package/dist/typescript/model/SlimCitationInferenceResponse.d.ts +21 -0
- package/dist/typescript/model/SlimCitationInferenceResponse.js +13 -0
- package/dist/typescript/model/ViolationNames.d.ts +16 -0
- package/dist/typescript/model/ViolationNames.js +13 -0
- package/dist/typescript/model/models.d.ts +9 -0
- package/dist/typescript/model/models.js +9 -0
- package/dist/typescript-fetch/apis/OcrPipelineControllerApi.d.ts +40 -0
- package/dist/typescript-fetch/apis/OcrPipelineControllerApi.js +89 -0
- package/dist/typescript-fetch/apis/index.d.ts +1 -0
- package/dist/typescript-fetch/apis/index.js +1 -0
- package/dist/typescript-fetch/models/CitationIssueDate.d.ts +27 -0
- package/dist/typescript-fetch/models/CitationIssueDate.js +36 -0
- package/dist/typescript-fetch/models/CourtName.d.ts +45 -0
- package/dist/typescript-fetch/models/CourtName.js +42 -0
- package/dist/typescript-fetch/models/PredictCitationRequest.d.ts +39 -0
- package/dist/typescript-fetch/models/PredictCitationRequest.js +40 -0
- package/dist/typescript-fetch/models/PredictCitationResponse.d.ts +28 -0
- package/dist/typescript-fetch/models/PredictCitationResponse.js +37 -0
- package/dist/typescript-fetch/models/PredictRichCitationResponse.d.ts +28 -0
- package/dist/typescript-fetch/models/PredictRichCitationResponse.js +37 -0
- package/dist/typescript-fetch/models/RichCitationInferenceResponse.d.ts +177 -0
- package/dist/typescript-fetch/models/RichCitationInferenceResponse.js +86 -0
- package/dist/typescript-fetch/models/SkipMap.d.ts +33 -0
- package/dist/typescript-fetch/models/SkipMap.js +38 -0
- package/dist/typescript-fetch/models/SlimCitationInferenceResponse.d.ts +64 -0
- package/dist/typescript-fetch/models/SlimCitationInferenceResponse.js +49 -0
- package/dist/typescript-fetch/models/ViolationNames.d.ts +39 -0
- package/dist/typescript-fetch/models/ViolationNames.js +40 -0
- package/dist/typescript-fetch/models/index.d.ts +9 -0
- package/dist/typescript-fetch/models/index.js +9 -0
- package/package.json +1 -1
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OffTheRecord Rest Service API - Devo
|
|
3
|
+
* A service to handle your traffic tickets
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
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 * as runtime from '../runtime';
|
|
13
|
+
import { PredictCitationRequest, PredictCitationResponse, PredictRichCitationResponse } from '../models';
|
|
14
|
+
export interface PredictCitationFieldsUsingPOSTRequest {
|
|
15
|
+
request: PredictCitationRequest;
|
|
16
|
+
}
|
|
17
|
+
export interface PredictRichCitationFieldsUsingPOSTRequest {
|
|
18
|
+
request: PredictCitationRequest;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
export declare class OcrPipelineControllerApi extends runtime.BaseAPI {
|
|
24
|
+
/**
|
|
25
|
+
* predictCitationFields
|
|
26
|
+
*/
|
|
27
|
+
predictCitationFieldsUsingPOSTRaw(requestParameters: PredictCitationFieldsUsingPOSTRequest): Promise<runtime.ApiResponse<PredictCitationResponse>>;
|
|
28
|
+
/**
|
|
29
|
+
* predictCitationFields
|
|
30
|
+
*/
|
|
31
|
+
predictCitationFieldsUsingPOST(requestParameters: PredictCitationFieldsUsingPOSTRequest): Promise<PredictCitationResponse>;
|
|
32
|
+
/**
|
|
33
|
+
* predictRichCitationFields
|
|
34
|
+
*/
|
|
35
|
+
predictRichCitationFieldsUsingPOSTRaw(requestParameters: PredictRichCitationFieldsUsingPOSTRequest): Promise<runtime.ApiResponse<PredictRichCitationResponse>>;
|
|
36
|
+
/**
|
|
37
|
+
* predictRichCitationFields
|
|
38
|
+
*/
|
|
39
|
+
predictRichCitationFieldsUsingPOST(requestParameters: PredictRichCitationFieldsUsingPOSTRequest): Promise<PredictRichCitationResponse>;
|
|
40
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* OffTheRecord Rest Service API - Devo
|
|
5
|
+
* A service to handle your traffic tickets
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
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
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
import * as runtime from '../runtime';
|
|
24
|
+
import { PredictCitationRequestToJSON, PredictCitationResponseFromJSON, PredictRichCitationResponseFromJSON, } from '../models';
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
export class OcrPipelineControllerApi extends runtime.BaseAPI {
|
|
29
|
+
/**
|
|
30
|
+
* predictCitationFields
|
|
31
|
+
*/
|
|
32
|
+
predictCitationFieldsUsingPOSTRaw(requestParameters) {
|
|
33
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
34
|
+
if (requestParameters.request === null || requestParameters.request === undefined) {
|
|
35
|
+
throw new runtime.RequiredError('request', 'Required parameter requestParameters.request was null or undefined when calling predictCitationFieldsUsingPOST.');
|
|
36
|
+
}
|
|
37
|
+
const queryParameters = {};
|
|
38
|
+
const headerParameters = {};
|
|
39
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
40
|
+
const response = yield this.request({
|
|
41
|
+
path: `/api/v1/ocr_pipeline/predict_citation`,
|
|
42
|
+
method: 'POST',
|
|
43
|
+
headers: headerParameters,
|
|
44
|
+
query: queryParameters,
|
|
45
|
+
body: PredictCitationRequestToJSON(requestParameters.request),
|
|
46
|
+
});
|
|
47
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PredictCitationResponseFromJSON(jsonValue));
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* predictCitationFields
|
|
52
|
+
*/
|
|
53
|
+
predictCitationFieldsUsingPOST(requestParameters) {
|
|
54
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
55
|
+
const response = yield this.predictCitationFieldsUsingPOSTRaw(requestParameters);
|
|
56
|
+
return yield response.value();
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* predictRichCitationFields
|
|
61
|
+
*/
|
|
62
|
+
predictRichCitationFieldsUsingPOSTRaw(requestParameters) {
|
|
63
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
64
|
+
if (requestParameters.request === null || requestParameters.request === undefined) {
|
|
65
|
+
throw new runtime.RequiredError('request', 'Required parameter requestParameters.request was null or undefined when calling predictRichCitationFieldsUsingPOST.');
|
|
66
|
+
}
|
|
67
|
+
const queryParameters = {};
|
|
68
|
+
const headerParameters = {};
|
|
69
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
70
|
+
const response = yield this.request({
|
|
71
|
+
path: `/api/v1/ocr_pipeline/predict_rich_citation`,
|
|
72
|
+
method: 'POST',
|
|
73
|
+
headers: headerParameters,
|
|
74
|
+
query: queryParameters,
|
|
75
|
+
body: PredictCitationRequestToJSON(requestParameters.request),
|
|
76
|
+
});
|
|
77
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PredictRichCitationResponseFromJSON(jsonValue));
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* predictRichCitationFields
|
|
82
|
+
*/
|
|
83
|
+
predictRichCitationFieldsUsingPOST(requestParameters) {
|
|
84
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
85
|
+
const response = yield this.predictRichCitationFieldsUsingPOSTRaw(requestParameters);
|
|
86
|
+
return yield response.value();
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
}
|
|
@@ -74,6 +74,7 @@ export * from './ListCasesControllerApi';
|
|
|
74
74
|
export * from './MediaCreationControllerApi';
|
|
75
75
|
export * from './MessagesControllerApi';
|
|
76
76
|
export * from './NotesControllerApi';
|
|
77
|
+
export * from './OcrPipelineControllerApi';
|
|
77
78
|
export * from './OcrPredictionControllerApi';
|
|
78
79
|
export * from './OnDemandRequestControllerApi';
|
|
79
80
|
export * from './OneTimePasswordControllerApi';
|
|
@@ -74,6 +74,7 @@ export * from './ListCasesControllerApi';
|
|
|
74
74
|
export * from './MediaCreationControllerApi';
|
|
75
75
|
export * from './MessagesControllerApi';
|
|
76
76
|
export * from './NotesControllerApi';
|
|
77
|
+
export * from './OcrPipelineControllerApi';
|
|
77
78
|
export * from './OcrPredictionControllerApi';
|
|
78
79
|
export * from './OnDemandRequestControllerApi';
|
|
79
80
|
export * from './OneTimePasswordControllerApi';
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OffTheRecord Rest Service API - Devo
|
|
3
|
+
* A service to handle your traffic tickets
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
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 CitationIssueDate
|
|
16
|
+
*/
|
|
17
|
+
export interface CitationIssueDate {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CitationIssueDate
|
|
22
|
+
*/
|
|
23
|
+
llmPrediction?: string;
|
|
24
|
+
}
|
|
25
|
+
export declare function CitationIssueDateFromJSON(json: any): CitationIssueDate;
|
|
26
|
+
export declare function CitationIssueDateFromJSONTyped(json: any, ignoreDiscriminator: boolean): CitationIssueDate;
|
|
27
|
+
export declare function CitationIssueDateToJSON(value?: CitationIssueDate | null): any;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* OffTheRecord Rest Service API - Devo
|
|
5
|
+
* A service to handle your traffic tickets
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
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 { exists } from '../runtime';
|
|
15
|
+
export function CitationIssueDateFromJSON(json) {
|
|
16
|
+
return CitationIssueDateFromJSONTyped(json, false);
|
|
17
|
+
}
|
|
18
|
+
export function CitationIssueDateFromJSONTyped(json, ignoreDiscriminator) {
|
|
19
|
+
if ((json === undefined) || (json === null)) {
|
|
20
|
+
return json;
|
|
21
|
+
}
|
|
22
|
+
return {
|
|
23
|
+
'llmPrediction': !exists(json, 'llm_prediction') ? undefined : json['llm_prediction'],
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
export function CitationIssueDateToJSON(value) {
|
|
27
|
+
if (value === undefined) {
|
|
28
|
+
return undefined;
|
|
29
|
+
}
|
|
30
|
+
if (value === null) {
|
|
31
|
+
return null;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'llm_prediction': value.llmPrediction,
|
|
35
|
+
};
|
|
36
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OffTheRecord Rest Service API - Devo
|
|
3
|
+
* A service to handle your traffic tickets
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
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 CourtName
|
|
16
|
+
*/
|
|
17
|
+
export interface CourtName {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CourtName
|
|
22
|
+
*/
|
|
23
|
+
llmPrediction?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {Array<string>}
|
|
27
|
+
* @memberof CourtName
|
|
28
|
+
*/
|
|
29
|
+
pineconeMatch?: Array<string>;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<string>}
|
|
33
|
+
* @memberof CourtName
|
|
34
|
+
*/
|
|
35
|
+
pineconeMatches?: Array<string>;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {Array<number>}
|
|
39
|
+
* @memberof CourtName
|
|
40
|
+
*/
|
|
41
|
+
pineconeScores?: Array<number>;
|
|
42
|
+
}
|
|
43
|
+
export declare function CourtNameFromJSON(json: any): CourtName;
|
|
44
|
+
export declare function CourtNameFromJSONTyped(json: any, ignoreDiscriminator: boolean): CourtName;
|
|
45
|
+
export declare function CourtNameToJSON(value?: CourtName | null): any;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* OffTheRecord Rest Service API - Devo
|
|
5
|
+
* A service to handle your traffic tickets
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
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 { exists } from '../runtime';
|
|
15
|
+
export function CourtNameFromJSON(json) {
|
|
16
|
+
return CourtNameFromJSONTyped(json, false);
|
|
17
|
+
}
|
|
18
|
+
export function CourtNameFromJSONTyped(json, ignoreDiscriminator) {
|
|
19
|
+
if ((json === undefined) || (json === null)) {
|
|
20
|
+
return json;
|
|
21
|
+
}
|
|
22
|
+
return {
|
|
23
|
+
'llmPrediction': !exists(json, 'llm_prediction') ? undefined : json['llm_prediction'],
|
|
24
|
+
'pineconeMatch': !exists(json, 'pinecone_match') ? undefined : json['pinecone_match'],
|
|
25
|
+
'pineconeMatches': !exists(json, 'pinecone_matches') ? undefined : json['pinecone_matches'],
|
|
26
|
+
'pineconeScores': !exists(json, 'pinecone_scores') ? undefined : json['pinecone_scores'],
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
export function CourtNameToJSON(value) {
|
|
30
|
+
if (value === undefined) {
|
|
31
|
+
return undefined;
|
|
32
|
+
}
|
|
33
|
+
if (value === null) {
|
|
34
|
+
return null;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'llm_prediction': value.llmPrediction,
|
|
38
|
+
'pinecone_match': value.pineconeMatch,
|
|
39
|
+
'pinecone_matches': value.pineconeMatches,
|
|
40
|
+
'pinecone_scores': value.pineconeScores,
|
|
41
|
+
};
|
|
42
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OffTheRecord Rest Service API - Devo
|
|
3
|
+
* A service to handle your traffic tickets
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
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 PredictCitationRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface PredictCitationRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof PredictCitationRequest
|
|
22
|
+
*/
|
|
23
|
+
citationId?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof PredictCitationRequest
|
|
28
|
+
*/
|
|
29
|
+
imageInBase64?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof PredictCitationRequest
|
|
34
|
+
*/
|
|
35
|
+
regionCode?: string;
|
|
36
|
+
}
|
|
37
|
+
export declare function PredictCitationRequestFromJSON(json: any): PredictCitationRequest;
|
|
38
|
+
export declare function PredictCitationRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PredictCitationRequest;
|
|
39
|
+
export declare function PredictCitationRequestToJSON(value?: PredictCitationRequest | null): any;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* OffTheRecord Rest Service API - Devo
|
|
5
|
+
* A service to handle your traffic tickets
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
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 { exists } from '../runtime';
|
|
15
|
+
export function PredictCitationRequestFromJSON(json) {
|
|
16
|
+
return PredictCitationRequestFromJSONTyped(json, false);
|
|
17
|
+
}
|
|
18
|
+
export function PredictCitationRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
19
|
+
if ((json === undefined) || (json === null)) {
|
|
20
|
+
return json;
|
|
21
|
+
}
|
|
22
|
+
return {
|
|
23
|
+
'citationId': !exists(json, 'citationId') ? undefined : json['citationId'],
|
|
24
|
+
'imageInBase64': !exists(json, 'imageInBase64') ? undefined : json['imageInBase64'],
|
|
25
|
+
'regionCode': !exists(json, 'regionCode') ? undefined : json['regionCode'],
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
export function PredictCitationRequestToJSON(value) {
|
|
29
|
+
if (value === undefined) {
|
|
30
|
+
return undefined;
|
|
31
|
+
}
|
|
32
|
+
if (value === null) {
|
|
33
|
+
return null;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'citationId': value.citationId,
|
|
37
|
+
'imageInBase64': value.imageInBase64,
|
|
38
|
+
'regionCode': value.regionCode,
|
|
39
|
+
};
|
|
40
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OffTheRecord Rest Service API - Devo
|
|
3
|
+
* A service to handle your traffic tickets
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
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 { SlimCitationInferenceResponse } from './';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface PredictCitationResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface PredictCitationResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {SlimCitationInferenceResponse}
|
|
22
|
+
* @memberof PredictCitationResponse
|
|
23
|
+
*/
|
|
24
|
+
ocrResult?: SlimCitationInferenceResponse;
|
|
25
|
+
}
|
|
26
|
+
export declare function PredictCitationResponseFromJSON(json: any): PredictCitationResponse;
|
|
27
|
+
export declare function PredictCitationResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PredictCitationResponse;
|
|
28
|
+
export declare function PredictCitationResponseToJSON(value?: PredictCitationResponse | null): any;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* OffTheRecord Rest Service API - Devo
|
|
5
|
+
* A service to handle your traffic tickets
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
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 { exists } from '../runtime';
|
|
15
|
+
import { SlimCitationInferenceResponseFromJSON, SlimCitationInferenceResponseToJSON, } from './';
|
|
16
|
+
export function PredictCitationResponseFromJSON(json) {
|
|
17
|
+
return PredictCitationResponseFromJSONTyped(json, false);
|
|
18
|
+
}
|
|
19
|
+
export function PredictCitationResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
20
|
+
if ((json === undefined) || (json === null)) {
|
|
21
|
+
return json;
|
|
22
|
+
}
|
|
23
|
+
return {
|
|
24
|
+
'ocrResult': !exists(json, 'ocrResult') ? undefined : SlimCitationInferenceResponseFromJSON(json['ocrResult']),
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
export function PredictCitationResponseToJSON(value) {
|
|
28
|
+
if (value === undefined) {
|
|
29
|
+
return undefined;
|
|
30
|
+
}
|
|
31
|
+
if (value === null) {
|
|
32
|
+
return null;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'ocrResult': SlimCitationInferenceResponseToJSON(value.ocrResult),
|
|
36
|
+
};
|
|
37
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OffTheRecord Rest Service API - Devo
|
|
3
|
+
* A service to handle your traffic tickets
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
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 { RichCitationInferenceResponse } from './';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface PredictRichCitationResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface PredictRichCitationResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {RichCitationInferenceResponse}
|
|
22
|
+
* @memberof PredictRichCitationResponse
|
|
23
|
+
*/
|
|
24
|
+
ocrResult?: RichCitationInferenceResponse;
|
|
25
|
+
}
|
|
26
|
+
export declare function PredictRichCitationResponseFromJSON(json: any): PredictRichCitationResponse;
|
|
27
|
+
export declare function PredictRichCitationResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PredictRichCitationResponse;
|
|
28
|
+
export declare function PredictRichCitationResponseToJSON(value?: PredictRichCitationResponse | null): any;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* OffTheRecord Rest Service API - Devo
|
|
5
|
+
* A service to handle your traffic tickets
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
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 { exists } from '../runtime';
|
|
15
|
+
import { RichCitationInferenceResponseFromJSON, RichCitationInferenceResponseToJSON, } from './';
|
|
16
|
+
export function PredictRichCitationResponseFromJSON(json) {
|
|
17
|
+
return PredictRichCitationResponseFromJSONTyped(json, false);
|
|
18
|
+
}
|
|
19
|
+
export function PredictRichCitationResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
20
|
+
if ((json === undefined) || (json === null)) {
|
|
21
|
+
return json;
|
|
22
|
+
}
|
|
23
|
+
return {
|
|
24
|
+
'ocrResult': !exists(json, 'ocrResult') ? undefined : RichCitationInferenceResponseFromJSON(json['ocrResult']),
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
export function PredictRichCitationResponseToJSON(value) {
|
|
28
|
+
if (value === undefined) {
|
|
29
|
+
return undefined;
|
|
30
|
+
}
|
|
31
|
+
if (value === null) {
|
|
32
|
+
return null;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'ocrResult': RichCitationInferenceResponseToJSON(value.ocrResult),
|
|
36
|
+
};
|
|
37
|
+
}
|