@otr-app/shared-backend-generated-client 2.4.51 → 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/consoleListController.service.ts +68 -0
- package/dist/angular/api/ocrPredictionController.service.ts +60 -0
- package/dist/angular/model/getPendingCasesResponse.ts +1 -0
- package/dist/angular/model/models.ts +1 -0
- package/dist/angular/model/oCRCitationPredictionResponse.ts +44 -0
- package/dist/otrBackendService.js +73 -0
- package/dist/otrBackendService.min.js +7 -7
- package/dist/typescript/api/ConsoleListControllerApi.d.ts +7 -0
- package/dist/typescript/api/ConsoleListControllerApi.js +27 -0
- package/dist/typescript/api/OcrPredictionControllerApi.d.ts +6 -0
- package/dist/typescript/api/OcrPredictionControllerApi.js +25 -0
- package/dist/typescript/model/GetPendingCasesResponse.d.ts +1 -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/ConsoleListControllerApi.d.ts +12 -0
- package/dist/typescript-fetch/apis/ConsoleListControllerApi.js +31 -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/GetPendingCasesResponse.d.ts +6 -0
- package/dist/typescript-fetch/models/GetPendingCasesResponse.js +2 -0
- 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
|
@@ -890,11 +890,79 @@ export class ConsoleListControllerService {
|
|
|
890
890
|
);
|
|
891
891
|
}
|
|
892
892
|
|
|
893
|
+
/**
|
|
894
|
+
* getPendingCases
|
|
895
|
+
* @param length length
|
|
896
|
+
* @param page page
|
|
897
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
898
|
+
* @param reportProgress flag to report request and response progress.
|
|
899
|
+
*/
|
|
900
|
+
public getPendingCasesUsingGET(length?: number, page?: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable<GetPendingCasesResponse>;
|
|
901
|
+
public getPendingCasesUsingGET(length?: number, page?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable<HttpResponse<GetPendingCasesResponse>>;
|
|
902
|
+
public getPendingCasesUsingGET(length?: number, page?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable<HttpEvent<GetPendingCasesResponse>>;
|
|
903
|
+
public getPendingCasesUsingGET(length?: number, page?: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable<any> {
|
|
904
|
+
|
|
905
|
+
let localVarQueryParameters = new HttpParams({encoder: this.encoder});
|
|
906
|
+
if (length !== undefined && length !== null) {
|
|
907
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
|
908
|
+
<any>length, 'length');
|
|
909
|
+
}
|
|
910
|
+
if (page !== undefined && page !== null) {
|
|
911
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
|
912
|
+
<any>page, 'page');
|
|
913
|
+
}
|
|
914
|
+
|
|
915
|
+
let localVarHeaders = this.defaultHeaders;
|
|
916
|
+
|
|
917
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
918
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
919
|
+
// to determine the Accept header
|
|
920
|
+
const httpHeaderAccepts: string[] = [
|
|
921
|
+
'application/json'
|
|
922
|
+
];
|
|
923
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
924
|
+
}
|
|
925
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
926
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
927
|
+
}
|
|
928
|
+
|
|
929
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
930
|
+
if (localVarHttpContext === undefined) {
|
|
931
|
+
localVarHttpContext = new HttpContext();
|
|
932
|
+
}
|
|
933
|
+
|
|
934
|
+
|
|
935
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
936
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
937
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
938
|
+
responseType_ = 'text';
|
|
939
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
940
|
+
responseType_ = 'json';
|
|
941
|
+
} else {
|
|
942
|
+
responseType_ = 'blob';
|
|
943
|
+
}
|
|
944
|
+
}
|
|
945
|
+
|
|
946
|
+
let localVarPath = `/api/v1/cases/pending`;
|
|
947
|
+
return this.httpClient.request<GetPendingCasesResponse>('get', `${this.configuration.basePath}${localVarPath}`,
|
|
948
|
+
{
|
|
949
|
+
context: localVarHttpContext,
|
|
950
|
+
params: localVarQueryParameters,
|
|
951
|
+
responseType: <any>responseType_,
|
|
952
|
+
withCredentials: this.configuration.withCredentials,
|
|
953
|
+
headers: localVarHeaders,
|
|
954
|
+
observe: observe,
|
|
955
|
+
reportProgress: reportProgress
|
|
956
|
+
}
|
|
957
|
+
);
|
|
958
|
+
}
|
|
959
|
+
|
|
893
960
|
/**
|
|
894
961
|
* getPendingCases
|
|
895
962
|
* @param request request
|
|
896
963
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
897
964
|
* @param reportProgress flag to report request and response progress.
|
|
965
|
+
* @deprecated
|
|
898
966
|
*/
|
|
899
967
|
public getPendingCasesUsingPOST(request: object, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable<GetPendingCasesResponse>;
|
|
900
968
|
public getPendingCasesUsingPOST(request: object, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable<HttpResponse<GetPendingCasesResponse>>;
|
|
@@ -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
|
+
|
|
@@ -1250,6 +1250,45 @@ angular.module('otrBackendService', [])
|
|
|
1250
1250
|
|
|
1251
1251
|
return deferred.promise;
|
|
1252
1252
|
};
|
|
1253
|
+
/**
|
|
1254
|
+
* getPendingCases
|
|
1255
|
+
* @method
|
|
1256
|
+
* @name OtrService#getPendingCasesUsingGET
|
|
1257
|
+
* @param {object} parameters - method options and parameters
|
|
1258
|
+
* @param {integer} parameters.length - length
|
|
1259
|
+
* @param {integer} parameters.page - page
|
|
1260
|
+
*/
|
|
1261
|
+
OtrService.prototype.getPendingCasesUsingGET = function(parameters) {
|
|
1262
|
+
if (parameters === undefined) {
|
|
1263
|
+
parameters = {};
|
|
1264
|
+
}
|
|
1265
|
+
var deferred = $q.defer();
|
|
1266
|
+
var domain = this.domain,
|
|
1267
|
+
path = '/api/v1/cases/pending';
|
|
1268
|
+
var body = {},
|
|
1269
|
+
queryParameters = {},
|
|
1270
|
+
headers = {},
|
|
1271
|
+
form = {};
|
|
1272
|
+
|
|
1273
|
+
headers['Accept'] = ['application/json'];
|
|
1274
|
+
|
|
1275
|
+
/** set default value **/
|
|
1276
|
+
queryParameters['length'] = 50;
|
|
1277
|
+
|
|
1278
|
+
if (parameters['length'] !== undefined) {
|
|
1279
|
+
queryParameters['length'] = parameters['length'];
|
|
1280
|
+
}
|
|
1281
|
+
|
|
1282
|
+
if (parameters['page'] !== undefined) {
|
|
1283
|
+
queryParameters['page'] = parameters['page'];
|
|
1284
|
+
}
|
|
1285
|
+
|
|
1286
|
+
queryParameters = mergeQueryParams(parameters, queryParameters);
|
|
1287
|
+
|
|
1288
|
+
this.request('GET', domain + path, parameters, body, headers, queryParameters, form, deferred);
|
|
1289
|
+
|
|
1290
|
+
return deferred.promise;
|
|
1291
|
+
};
|
|
1253
1292
|
/**
|
|
1254
1293
|
* getPendingCases
|
|
1255
1294
|
* @method
|
|
@@ -12616,6 +12655,40 @@ angular.module('otrBackendService', [])
|
|
|
12616
12655
|
|
|
12617
12656
|
return deferred.promise;
|
|
12618
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
|
+
};
|
|
12619
12692
|
/**
|
|
12620
12693
|
* predictImageClassification
|
|
12621
12694
|
* @method
|