@otr-app/shared-backend-generated-client 2.4.52 → 2.4.53
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 +1 -0
- package/dist/angular/api/ocrPredictionController.service.ts +60 -0
- package/dist/angular/model/models.ts +1 -0
- package/dist/angular/model/oCRCitationPredictionResponse.ts +44 -0
- package/dist/otrBackendService.js +34 -0
- package/dist/otrBackendService.min.js +3 -3
- package/dist/typescript/api/OcrPredictionControllerApi.d.ts +6 -0
- package/dist/typescript/api/OcrPredictionControllerApi.js +25 -0
- package/dist/typescript/model/OCRCitationPredictionResponse.d.ts +38 -0
- package/dist/typescript/model/OCRCitationPredictionResponse.js +31 -0
- package/dist/typescript/model/models.d.ts +1 -0
- package/dist/typescript/model/models.js +1 -0
- package/dist/typescript-fetch/apis/OcrPredictionControllerApi.d.ts +12 -1
- package/dist/typescript-fetch/apis/OcrPredictionControllerApi.js +29 -1
- package/dist/typescript-fetch/models/OCRCitationPredictionResponse.d.ts +92 -0
- package/dist/typescript-fetch/models/OCRCitationPredictionResponse.js +75 -0
- package/dist/typescript-fetch/models/index.d.ts +1 -0
- package/dist/typescript-fetch/models/index.js +1 -0
- package/package.json +1 -1
|
@@ -18,6 +18,8 @@ import { HttpClient, HttpHeaders, HttpParams,
|
|
|
18
18
|
import { CustomHttpParameterCodec } from '../encoder';
|
|
19
19
|
import { Observable } from 'rxjs';
|
|
20
20
|
|
|
21
|
+
// @ts-ignore
|
|
22
|
+
import { OCRCitationPredictionResponse } from '../model/oCRCitationPredictionResponse';
|
|
21
23
|
// @ts-ignore
|
|
22
24
|
import { OCRPredictionCaseResponse } from '../model/oCRPredictionCaseResponse';
|
|
23
25
|
// @ts-ignore
|
|
@@ -97,6 +99,64 @@ export class OcrPredictionControllerService {
|
|
|
97
99
|
return httpParams;
|
|
98
100
|
}
|
|
99
101
|
|
|
102
|
+
/**
|
|
103
|
+
* getCitationPrediction
|
|
104
|
+
* @param citationId citationId
|
|
105
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
106
|
+
* @param reportProgress flag to report request and response progress.
|
|
107
|
+
*/
|
|
108
|
+
public getCitationPredictionUsingGET(citationId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<OCRCitationPredictionResponse>;
|
|
109
|
+
public getCitationPredictionUsingGET(citationId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<HttpResponse<OCRCitationPredictionResponse>>;
|
|
110
|
+
public getCitationPredictionUsingGET(citationId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<HttpEvent<OCRCitationPredictionResponse>>;
|
|
111
|
+
public getCitationPredictionUsingGET(citationId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<any> {
|
|
112
|
+
if (citationId === null || citationId === undefined) {
|
|
113
|
+
throw new Error('Required parameter citationId was null or undefined when calling getCitationPredictionUsingGET.');
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
let localVarHeaders = this.defaultHeaders;
|
|
117
|
+
|
|
118
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
119
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
120
|
+
// to determine the Accept header
|
|
121
|
+
const httpHeaderAccepts: string[] = [
|
|
122
|
+
'*/*'
|
|
123
|
+
];
|
|
124
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
125
|
+
}
|
|
126
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
127
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
131
|
+
if (localVarHttpContext === undefined) {
|
|
132
|
+
localVarHttpContext = new HttpContext();
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
137
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
138
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
139
|
+
responseType_ = 'text';
|
|
140
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
141
|
+
responseType_ = 'json';
|
|
142
|
+
} else {
|
|
143
|
+
responseType_ = 'blob';
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
let localVarPath = `/api/v1/predictions/citations/${this.configuration.encodeParam({name: "citationId", value: citationId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`;
|
|
148
|
+
return this.httpClient.request<OCRCitationPredictionResponse>('get', `${this.configuration.basePath}${localVarPath}`,
|
|
149
|
+
{
|
|
150
|
+
context: localVarHttpContext,
|
|
151
|
+
responseType: <any>responseType_,
|
|
152
|
+
withCredentials: this.configuration.withCredentials,
|
|
153
|
+
headers: localVarHeaders,
|
|
154
|
+
observe: observe,
|
|
155
|
+
reportProgress: reportProgress
|
|
156
|
+
}
|
|
157
|
+
);
|
|
158
|
+
}
|
|
159
|
+
|
|
100
160
|
/**
|
|
101
161
|
* predictCitationText
|
|
102
162
|
* @param request request
|
|
@@ -530,6 +530,7 @@ export * from './noteEntity';
|
|
|
530
530
|
export * from './noteModel';
|
|
531
531
|
export * from './notificationEvent';
|
|
532
532
|
export * from './notificationEvents';
|
|
533
|
+
export * from './oCRCitationPredictionResponse';
|
|
533
534
|
export * from './oCRCourtModel';
|
|
534
535
|
export * from './oCRPredictionCaseResponse';
|
|
535
536
|
export * from './oCRViolationModel';
|
|
@@ -0,0 +1,44 @@
|
|
|
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 interface OCRCitationPredictionResponse {
|
|
15
|
+
citationIssueDate?: string;
|
|
16
|
+
courtName?: string;
|
|
17
|
+
dateOfBirth?: string;
|
|
18
|
+
firstName?: string;
|
|
19
|
+
lastName?: string;
|
|
20
|
+
licenseNumber?: string;
|
|
21
|
+
race?: OCRCitationPredictionResponse.RaceEnum;
|
|
22
|
+
sex?: OCRCitationPredictionResponse.SexEnum;
|
|
23
|
+
}
|
|
24
|
+
export namespace OCRCitationPredictionResponse {
|
|
25
|
+
export type RaceEnum = 'american_indian' | 'asian' | 'black' | 'latino_hispanic' | 'middle_eastern' | 'other' | 'pacific_islander' | 'white';
|
|
26
|
+
export const RaceEnum = {
|
|
27
|
+
AmericanIndian: 'american_indian' as RaceEnum,
|
|
28
|
+
Asian: 'asian' as RaceEnum,
|
|
29
|
+
Black: 'black' as RaceEnum,
|
|
30
|
+
LatinoHispanic: 'latino_hispanic' as RaceEnum,
|
|
31
|
+
MiddleEastern: 'middle_eastern' as RaceEnum,
|
|
32
|
+
Other: 'other' as RaceEnum,
|
|
33
|
+
PacificIslander: 'pacific_islander' as RaceEnum,
|
|
34
|
+
White: 'white' as RaceEnum
|
|
35
|
+
};
|
|
36
|
+
export type SexEnum = 'F' | 'M' | 'U';
|
|
37
|
+
export const SexEnum = {
|
|
38
|
+
F: 'F' as SexEnum,
|
|
39
|
+
M: 'M' as SexEnum,
|
|
40
|
+
U: 'U' as SexEnum
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
|
|
@@ -12655,6 +12655,40 @@ angular.module('otrBackendService', [])
|
|
|
12655
12655
|
|
|
12656
12656
|
return deferred.promise;
|
|
12657
12657
|
};
|
|
12658
|
+
/**
|
|
12659
|
+
* getCitationPrediction
|
|
12660
|
+
* @method
|
|
12661
|
+
* @name OtrService#getCitationPredictionUsingGET
|
|
12662
|
+
* @param {object} parameters - method options and parameters
|
|
12663
|
+
* @param {integer} parameters.citationId - citationId
|
|
12664
|
+
*/
|
|
12665
|
+
OtrService.prototype.getCitationPredictionUsingGET = function(parameters) {
|
|
12666
|
+
if (parameters === undefined) {
|
|
12667
|
+
parameters = {};
|
|
12668
|
+
}
|
|
12669
|
+
var deferred = $q.defer();
|
|
12670
|
+
var domain = this.domain,
|
|
12671
|
+
path = '/api/v1/predictions/citations/{citationId}';
|
|
12672
|
+
var body = {},
|
|
12673
|
+
queryParameters = {},
|
|
12674
|
+
headers = {},
|
|
12675
|
+
form = {};
|
|
12676
|
+
|
|
12677
|
+
headers['Accept'] = ['*/*'];
|
|
12678
|
+
|
|
12679
|
+
path = path.replace('{citationId}', parameters['citationId']);
|
|
12680
|
+
|
|
12681
|
+
if (parameters['citationId'] === undefined) {
|
|
12682
|
+
deferred.reject(new Error('Missing required parameter: citationId'));
|
|
12683
|
+
return deferred.promise;
|
|
12684
|
+
}
|
|
12685
|
+
|
|
12686
|
+
queryParameters = mergeQueryParams(parameters, queryParameters);
|
|
12687
|
+
|
|
12688
|
+
this.request('GET', domain + path, parameters, body, headers, queryParameters, form, deferred);
|
|
12689
|
+
|
|
12690
|
+
return deferred.promise;
|
|
12691
|
+
};
|
|
12658
12692
|
/**
|
|
12659
12693
|
* predictImageClassification
|
|
12660
12694
|
* @method
|