@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
|
@@ -84,6 +84,13 @@ export declare class ConsoleListControllerApi {
|
|
|
84
84
|
* @param request request
|
|
85
85
|
*/
|
|
86
86
|
getLostCasesWithTransferNotReversedUsingPOST(request: models.GetLostCasesWithTransferNotReversedRequest, extraHttpRequestParams?: any): ng.IHttpPromise<models.GetLostCasesWithTransferNotReversedResponse>;
|
|
87
|
+
/**
|
|
88
|
+
*
|
|
89
|
+
* @summary getPendingCases
|
|
90
|
+
* @param length length
|
|
91
|
+
* @param page page
|
|
92
|
+
*/
|
|
93
|
+
getPendingCasesUsingGET(length?: number, page?: number, extraHttpRequestParams?: any): ng.IHttpPromise<models.GetPendingCasesResponse>;
|
|
87
94
|
/**
|
|
88
95
|
*
|
|
89
96
|
* @summary getPendingCases
|
|
@@ -295,6 +295,33 @@ export class ConsoleListControllerApi {
|
|
|
295
295
|
}
|
|
296
296
|
return this.$http(httpRequestParams);
|
|
297
297
|
}
|
|
298
|
+
/**
|
|
299
|
+
*
|
|
300
|
+
* @summary getPendingCases
|
|
301
|
+
* @param length length
|
|
302
|
+
* @param page page
|
|
303
|
+
*/
|
|
304
|
+
getPendingCasesUsingGET(length, page, extraHttpRequestParams) {
|
|
305
|
+
const localVarPath = this.basePath + '/api/v1/cases/pending';
|
|
306
|
+
let queryParameters = {};
|
|
307
|
+
let headerParams = Object.assign({}, this.defaultHeaders);
|
|
308
|
+
if (length !== undefined) {
|
|
309
|
+
queryParameters['length'] = length;
|
|
310
|
+
}
|
|
311
|
+
if (page !== undefined) {
|
|
312
|
+
queryParameters['page'] = page;
|
|
313
|
+
}
|
|
314
|
+
let httpRequestParams = {
|
|
315
|
+
method: 'GET',
|
|
316
|
+
url: localVarPath,
|
|
317
|
+
params: queryParameters,
|
|
318
|
+
headers: headerParams
|
|
319
|
+
};
|
|
320
|
+
if (extraHttpRequestParams) {
|
|
321
|
+
httpRequestParams = Object.assign(httpRequestParams, extraHttpRequestParams);
|
|
322
|
+
}
|
|
323
|
+
return this.$http(httpRequestParams);
|
|
324
|
+
}
|
|
298
325
|
/**
|
|
299
326
|
*
|
|
300
327
|
* @summary getPendingCases
|
|
@@ -18,6 +18,12 @@ export declare class OcrPredictionControllerApi {
|
|
|
18
18
|
defaultHeaders: any;
|
|
19
19
|
static $inject: string[];
|
|
20
20
|
constructor($http: ng.IHttpService, $httpParamSerializer?: (d: any) => any, basePath?: string);
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @summary getCitationPrediction
|
|
24
|
+
* @param citationId citationId
|
|
25
|
+
*/
|
|
26
|
+
getCitationPredictionUsingGET(citationId: number, extraHttpRequestParams?: any): ng.IHttpPromise<models.OCRCitationPredictionResponse>;
|
|
21
27
|
/**
|
|
22
28
|
*
|
|
23
29
|
* @summary predictCitationText
|
|
@@ -20,6 +20,31 @@ export class OcrPredictionControllerApi {
|
|
|
20
20
|
this.basePath = basePath;
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @summary getCitationPrediction
|
|
26
|
+
* @param citationId citationId
|
|
27
|
+
*/
|
|
28
|
+
getCitationPredictionUsingGET(citationId, extraHttpRequestParams) {
|
|
29
|
+
const localVarPath = this.basePath + '/api/v1/predictions/citations/{citationId}'
|
|
30
|
+
.replace('{' + 'citationId' + '}', encodeURIComponent(String(citationId)));
|
|
31
|
+
let queryParameters = {};
|
|
32
|
+
let headerParams = Object.assign({}, this.defaultHeaders);
|
|
33
|
+
// verify required parameter 'citationId' is not null or undefined
|
|
34
|
+
if (citationId === null || citationId === undefined) {
|
|
35
|
+
throw new Error('Required parameter citationId was null or undefined when calling getCitationPredictionUsingGET.');
|
|
36
|
+
}
|
|
37
|
+
let httpRequestParams = {
|
|
38
|
+
method: 'GET',
|
|
39
|
+
url: localVarPath,
|
|
40
|
+
params: queryParameters,
|
|
41
|
+
headers: headerParams
|
|
42
|
+
};
|
|
43
|
+
if (extraHttpRequestParams) {
|
|
44
|
+
httpRequestParams = Object.assign(httpRequestParams, extraHttpRequestParams);
|
|
45
|
+
}
|
|
46
|
+
return this.$http(httpRequestParams);
|
|
47
|
+
}
|
|
23
48
|
/**
|
|
24
49
|
*
|
|
25
50
|
* @summary predictCitationText
|
|
@@ -0,0 +1,38 @@
|
|
|
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
|
+
export interface OCRCitationPredictionResponse {
|
|
13
|
+
"citationIssueDate"?: string;
|
|
14
|
+
"courtName"?: string;
|
|
15
|
+
"dateOfBirth"?: string;
|
|
16
|
+
"firstName"?: string;
|
|
17
|
+
"lastName"?: string;
|
|
18
|
+
"licenseNumber"?: string;
|
|
19
|
+
"race"?: OCRCitationPredictionResponse.RaceEnum;
|
|
20
|
+
"sex"?: OCRCitationPredictionResponse.SexEnum;
|
|
21
|
+
}
|
|
22
|
+
export declare namespace OCRCitationPredictionResponse {
|
|
23
|
+
enum RaceEnum {
|
|
24
|
+
AmericanIndian,
|
|
25
|
+
Asian,
|
|
26
|
+
Black,
|
|
27
|
+
LatinoHispanic,
|
|
28
|
+
MiddleEastern,
|
|
29
|
+
Other,
|
|
30
|
+
PacificIslander,
|
|
31
|
+
White
|
|
32
|
+
}
|
|
33
|
+
enum SexEnum {
|
|
34
|
+
F,
|
|
35
|
+
M,
|
|
36
|
+
U
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
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
|
+
export var OCRCitationPredictionResponse;
|
|
13
|
+
(function (OCRCitationPredictionResponse) {
|
|
14
|
+
let RaceEnum;
|
|
15
|
+
(function (RaceEnum) {
|
|
16
|
+
RaceEnum[RaceEnum["AmericanIndian"] = 'american_indian'] = "AmericanIndian";
|
|
17
|
+
RaceEnum[RaceEnum["Asian"] = 'asian'] = "Asian";
|
|
18
|
+
RaceEnum[RaceEnum["Black"] = 'black'] = "Black";
|
|
19
|
+
RaceEnum[RaceEnum["LatinoHispanic"] = 'latino_hispanic'] = "LatinoHispanic";
|
|
20
|
+
RaceEnum[RaceEnum["MiddleEastern"] = 'middle_eastern'] = "MiddleEastern";
|
|
21
|
+
RaceEnum[RaceEnum["Other"] = 'other'] = "Other";
|
|
22
|
+
RaceEnum[RaceEnum["PacificIslander"] = 'pacific_islander'] = "PacificIslander";
|
|
23
|
+
RaceEnum[RaceEnum["White"] = 'white'] = "White";
|
|
24
|
+
})(RaceEnum = OCRCitationPredictionResponse.RaceEnum || (OCRCitationPredictionResponse.RaceEnum = {}));
|
|
25
|
+
let SexEnum;
|
|
26
|
+
(function (SexEnum) {
|
|
27
|
+
SexEnum[SexEnum["F"] = 'F'] = "F";
|
|
28
|
+
SexEnum[SexEnum["M"] = 'M'] = "M";
|
|
29
|
+
SexEnum[SexEnum["U"] = 'U'] = "U";
|
|
30
|
+
})(SexEnum = OCRCitationPredictionResponse.SexEnum || (OCRCitationPredictionResponse.SexEnum = {}));
|
|
31
|
+
})(OCRCitationPredictionResponse || (OCRCitationPredictionResponse = {}));
|
|
@@ -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';
|
|
@@ -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';
|
|
@@ -44,6 +44,10 @@ export interface GetInvalidCasesWithStripeChargeUsingPOSTRequest {
|
|
|
44
44
|
export interface GetLostCasesWithTransferNotReversedUsingPOSTRequest {
|
|
45
45
|
request: GetLostCasesWithTransferNotReversedRequest;
|
|
46
46
|
}
|
|
47
|
+
export interface GetPendingCasesUsingGETRequest {
|
|
48
|
+
length?: number;
|
|
49
|
+
page?: number;
|
|
50
|
+
}
|
|
47
51
|
export interface GetPendingCasesUsingPOSTRequest {
|
|
48
52
|
request: object;
|
|
49
53
|
}
|
|
@@ -163,6 +167,14 @@ export declare class ConsoleListControllerApi extends runtime.BaseAPI {
|
|
|
163
167
|
* getLostCasesWithTransferNotReversed
|
|
164
168
|
*/
|
|
165
169
|
getLostCasesWithTransferNotReversedUsingPOST(requestParameters: GetLostCasesWithTransferNotReversedUsingPOSTRequest): Promise<GetLostCasesWithTransferNotReversedResponse>;
|
|
170
|
+
/**
|
|
171
|
+
* getPendingCases
|
|
172
|
+
*/
|
|
173
|
+
getPendingCasesUsingGETRaw(requestParameters: GetPendingCasesUsingGETRequest): Promise<runtime.ApiResponse<GetPendingCasesResponse>>;
|
|
174
|
+
/**
|
|
175
|
+
* getPendingCases
|
|
176
|
+
*/
|
|
177
|
+
getPendingCasesUsingGET(requestParameters: GetPendingCasesUsingGETRequest): Promise<GetPendingCasesResponse>;
|
|
166
178
|
/**
|
|
167
179
|
* getPendingCases
|
|
168
180
|
*/
|
|
@@ -356,6 +356,37 @@ export class ConsoleListControllerApi extends runtime.BaseAPI {
|
|
|
356
356
|
return yield response.value();
|
|
357
357
|
});
|
|
358
358
|
}
|
|
359
|
+
/**
|
|
360
|
+
* getPendingCases
|
|
361
|
+
*/
|
|
362
|
+
getPendingCasesUsingGETRaw(requestParameters) {
|
|
363
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
364
|
+
const queryParameters = {};
|
|
365
|
+
if (requestParameters.length !== undefined) {
|
|
366
|
+
queryParameters['length'] = requestParameters.length;
|
|
367
|
+
}
|
|
368
|
+
if (requestParameters.page !== undefined) {
|
|
369
|
+
queryParameters['page'] = requestParameters.page;
|
|
370
|
+
}
|
|
371
|
+
const headerParameters = {};
|
|
372
|
+
const response = yield this.request({
|
|
373
|
+
path: `/api/v1/cases/pending`,
|
|
374
|
+
method: 'GET',
|
|
375
|
+
headers: headerParameters,
|
|
376
|
+
query: queryParameters,
|
|
377
|
+
});
|
|
378
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetPendingCasesResponseFromJSON(jsonValue));
|
|
379
|
+
});
|
|
380
|
+
}
|
|
381
|
+
/**
|
|
382
|
+
* getPendingCases
|
|
383
|
+
*/
|
|
384
|
+
getPendingCasesUsingGET(requestParameters) {
|
|
385
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
386
|
+
const response = yield this.getPendingCasesUsingGETRaw(requestParameters);
|
|
387
|
+
return yield response.value();
|
|
388
|
+
});
|
|
389
|
+
}
|
|
359
390
|
/**
|
|
360
391
|
* getPendingCases
|
|
361
392
|
*/
|
|
@@ -10,7 +10,10 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import { OCRPredictionCaseResponse, PredictCitationTextRequest, PredictImageClassificationRequest, PredictImageClassificationResponse } from '../models';
|
|
13
|
+
import { OCRCitationPredictionResponse, OCRPredictionCaseResponse, PredictCitationTextRequest, PredictImageClassificationRequest, PredictImageClassificationResponse } from '../models';
|
|
14
|
+
export interface GetCitationPredictionUsingGETRequest {
|
|
15
|
+
citationId: number;
|
|
16
|
+
}
|
|
14
17
|
export interface PredictCitationTextUsingPOSTRequest {
|
|
15
18
|
request: PredictCitationTextRequest;
|
|
16
19
|
}
|
|
@@ -21,6 +24,14 @@ export interface PredictImageClassificationUsingPOSTRequest {
|
|
|
21
24
|
*
|
|
22
25
|
*/
|
|
23
26
|
export declare class OcrPredictionControllerApi extends runtime.BaseAPI {
|
|
27
|
+
/**
|
|
28
|
+
* getCitationPrediction
|
|
29
|
+
*/
|
|
30
|
+
getCitationPredictionUsingGETRaw(requestParameters: GetCitationPredictionUsingGETRequest): Promise<runtime.ApiResponse<OCRCitationPredictionResponse>>;
|
|
31
|
+
/**
|
|
32
|
+
* getCitationPrediction
|
|
33
|
+
*/
|
|
34
|
+
getCitationPredictionUsingGET(requestParameters: GetCitationPredictionUsingGETRequest): Promise<OCRCitationPredictionResponse>;
|
|
24
35
|
/**
|
|
25
36
|
* predictCitationText
|
|
26
37
|
*/
|
|
@@ -21,11 +21,39 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
23
|
import * as runtime from '../runtime';
|
|
24
|
-
import { OCRPredictionCaseResponseFromJSON, PredictCitationTextRequestToJSON, PredictImageClassificationRequestToJSON, PredictImageClassificationResponseFromJSON, } from '../models';
|
|
24
|
+
import { OCRCitationPredictionResponseFromJSON, OCRPredictionCaseResponseFromJSON, PredictCitationTextRequestToJSON, PredictImageClassificationRequestToJSON, PredictImageClassificationResponseFromJSON, } from '../models';
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
28
28
|
export class OcrPredictionControllerApi extends runtime.BaseAPI {
|
|
29
|
+
/**
|
|
30
|
+
* getCitationPrediction
|
|
31
|
+
*/
|
|
32
|
+
getCitationPredictionUsingGETRaw(requestParameters) {
|
|
33
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
34
|
+
if (requestParameters.citationId === null || requestParameters.citationId === undefined) {
|
|
35
|
+
throw new runtime.RequiredError('citationId', 'Required parameter requestParameters.citationId was null or undefined when calling getCitationPredictionUsingGET.');
|
|
36
|
+
}
|
|
37
|
+
const queryParameters = {};
|
|
38
|
+
const headerParameters = {};
|
|
39
|
+
const response = yield this.request({
|
|
40
|
+
path: `/api/v1/predictions/citations/{citationId}`.replace(`{${"citationId"}}`, encodeURIComponent(String(requestParameters.citationId))),
|
|
41
|
+
method: 'GET',
|
|
42
|
+
headers: headerParameters,
|
|
43
|
+
query: queryParameters,
|
|
44
|
+
});
|
|
45
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => OCRCitationPredictionResponseFromJSON(jsonValue));
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* getCitationPrediction
|
|
50
|
+
*/
|
|
51
|
+
getCitationPredictionUsingGET(requestParameters) {
|
|
52
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
53
|
+
const response = yield this.getCitationPredictionUsingGETRaw(requestParameters);
|
|
54
|
+
return yield response.value();
|
|
55
|
+
});
|
|
56
|
+
}
|
|
29
57
|
/**
|
|
30
58
|
* predictCitationText
|
|
31
59
|
*/
|
|
@@ -22,6 +22,12 @@ export interface GetPendingCasesResponse {
|
|
|
22
22
|
* @memberof GetPendingCasesResponse
|
|
23
23
|
*/
|
|
24
24
|
pendingCases?: Array<CaseModel>;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof GetPendingCasesResponse
|
|
29
|
+
*/
|
|
30
|
+
totalPendingCases?: number;
|
|
25
31
|
}
|
|
26
32
|
export declare function GetPendingCasesResponseFromJSON(json: any): GetPendingCasesResponse;
|
|
27
33
|
export declare function GetPendingCasesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetPendingCasesResponse;
|
|
@@ -22,6 +22,7 @@ export function GetPendingCasesResponseFromJSONTyped(json, ignoreDiscriminator)
|
|
|
22
22
|
}
|
|
23
23
|
return {
|
|
24
24
|
'pendingCases': !exists(json, 'pendingCases') ? undefined : (json['pendingCases'].map(CaseModelFromJSON)),
|
|
25
|
+
'totalPendingCases': !exists(json, 'totalPendingCases') ? undefined : json['totalPendingCases'],
|
|
25
26
|
};
|
|
26
27
|
}
|
|
27
28
|
export function GetPendingCasesResponseToJSON(value) {
|
|
@@ -33,5 +34,6 @@ export function GetPendingCasesResponseToJSON(value) {
|
|
|
33
34
|
}
|
|
34
35
|
return {
|
|
35
36
|
'pendingCases': value.pendingCases === undefined ? undefined : (value.pendingCases.map(CaseModelToJSON)),
|
|
37
|
+
'totalPendingCases': value.totalPendingCases,
|
|
36
38
|
};
|
|
37
39
|
}
|
|
@@ -0,0 +1,92 @@
|
|
|
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 OCRCitationPredictionResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface OCRCitationPredictionResponse {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {Date}
|
|
21
|
+
* @memberof OCRCitationPredictionResponse
|
|
22
|
+
*/
|
|
23
|
+
citationIssueDate?: Date;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof OCRCitationPredictionResponse
|
|
28
|
+
*/
|
|
29
|
+
courtName?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Date}
|
|
33
|
+
* @memberof OCRCitationPredictionResponse
|
|
34
|
+
*/
|
|
35
|
+
dateOfBirth?: Date;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof OCRCitationPredictionResponse
|
|
40
|
+
*/
|
|
41
|
+
firstName?: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof OCRCitationPredictionResponse
|
|
46
|
+
*/
|
|
47
|
+
lastName?: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof OCRCitationPredictionResponse
|
|
52
|
+
*/
|
|
53
|
+
licenseNumber?: string;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof OCRCitationPredictionResponse
|
|
58
|
+
*/
|
|
59
|
+
race?: OCRCitationPredictionResponseRaceEnum;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof OCRCitationPredictionResponse
|
|
64
|
+
*/
|
|
65
|
+
sex?: OCRCitationPredictionResponseSexEnum;
|
|
66
|
+
}
|
|
67
|
+
export declare function OCRCitationPredictionResponseFromJSON(json: any): OCRCitationPredictionResponse;
|
|
68
|
+
export declare function OCRCitationPredictionResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): OCRCitationPredictionResponse;
|
|
69
|
+
export declare function OCRCitationPredictionResponseToJSON(value?: OCRCitationPredictionResponse | null): any;
|
|
70
|
+
/**
|
|
71
|
+
* @export
|
|
72
|
+
* @enum {string}
|
|
73
|
+
*/
|
|
74
|
+
export declare enum OCRCitationPredictionResponseRaceEnum {
|
|
75
|
+
AmericanIndian = "american_indian",
|
|
76
|
+
Asian = "asian",
|
|
77
|
+
Black = "black",
|
|
78
|
+
LatinoHispanic = "latino_hispanic",
|
|
79
|
+
MiddleEastern = "middle_eastern",
|
|
80
|
+
Other = "other",
|
|
81
|
+
PacificIslander = "pacific_islander",
|
|
82
|
+
White = "white"
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* @export
|
|
86
|
+
* @enum {string}
|
|
87
|
+
*/
|
|
88
|
+
export declare enum OCRCitationPredictionResponseSexEnum {
|
|
89
|
+
F = "F",
|
|
90
|
+
M = "M",
|
|
91
|
+
U = "U"
|
|
92
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
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 OCRCitationPredictionResponseFromJSON(json) {
|
|
16
|
+
return OCRCitationPredictionResponseFromJSONTyped(json, false);
|
|
17
|
+
}
|
|
18
|
+
export function OCRCitationPredictionResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
19
|
+
if ((json === undefined) || (json === null)) {
|
|
20
|
+
return json;
|
|
21
|
+
}
|
|
22
|
+
return {
|
|
23
|
+
'citationIssueDate': !exists(json, 'citationIssueDate') ? undefined : (new Date(json['citationIssueDate'])),
|
|
24
|
+
'courtName': !exists(json, 'courtName') ? undefined : json['courtName'],
|
|
25
|
+
'dateOfBirth': !exists(json, 'dateOfBirth') ? undefined : (new Date(json['dateOfBirth'])),
|
|
26
|
+
'firstName': !exists(json, 'firstName') ? undefined : json['firstName'],
|
|
27
|
+
'lastName': !exists(json, 'lastName') ? undefined : json['lastName'],
|
|
28
|
+
'licenseNumber': !exists(json, 'licenseNumber') ? undefined : json['licenseNumber'],
|
|
29
|
+
'race': !exists(json, 'race') ? undefined : json['race'],
|
|
30
|
+
'sex': !exists(json, 'sex') ? undefined : json['sex'],
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export function OCRCitationPredictionResponseToJSON(value) {
|
|
34
|
+
if (value === undefined) {
|
|
35
|
+
return undefined;
|
|
36
|
+
}
|
|
37
|
+
if (value === null) {
|
|
38
|
+
return null;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'citationIssueDate': value.citationIssueDate === undefined ? undefined : (value.citationIssueDate.toISOString().substr(0, 10)),
|
|
42
|
+
'courtName': value.courtName,
|
|
43
|
+
'dateOfBirth': value.dateOfBirth === undefined ? undefined : (value.dateOfBirth.toISOString().substr(0, 10)),
|
|
44
|
+
'firstName': value.firstName,
|
|
45
|
+
'lastName': value.lastName,
|
|
46
|
+
'licenseNumber': value.licenseNumber,
|
|
47
|
+
'race': value.race,
|
|
48
|
+
'sex': value.sex,
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* @export
|
|
53
|
+
* @enum {string}
|
|
54
|
+
*/
|
|
55
|
+
export var OCRCitationPredictionResponseRaceEnum;
|
|
56
|
+
(function (OCRCitationPredictionResponseRaceEnum) {
|
|
57
|
+
OCRCitationPredictionResponseRaceEnum["AmericanIndian"] = "american_indian";
|
|
58
|
+
OCRCitationPredictionResponseRaceEnum["Asian"] = "asian";
|
|
59
|
+
OCRCitationPredictionResponseRaceEnum["Black"] = "black";
|
|
60
|
+
OCRCitationPredictionResponseRaceEnum["LatinoHispanic"] = "latino_hispanic";
|
|
61
|
+
OCRCitationPredictionResponseRaceEnum["MiddleEastern"] = "middle_eastern";
|
|
62
|
+
OCRCitationPredictionResponseRaceEnum["Other"] = "other";
|
|
63
|
+
OCRCitationPredictionResponseRaceEnum["PacificIslander"] = "pacific_islander";
|
|
64
|
+
OCRCitationPredictionResponseRaceEnum["White"] = "white";
|
|
65
|
+
})(OCRCitationPredictionResponseRaceEnum || (OCRCitationPredictionResponseRaceEnum = {}));
|
|
66
|
+
/**
|
|
67
|
+
* @export
|
|
68
|
+
* @enum {string}
|
|
69
|
+
*/
|
|
70
|
+
export var OCRCitationPredictionResponseSexEnum;
|
|
71
|
+
(function (OCRCitationPredictionResponseSexEnum) {
|
|
72
|
+
OCRCitationPredictionResponseSexEnum["F"] = "F";
|
|
73
|
+
OCRCitationPredictionResponseSexEnum["M"] = "M";
|
|
74
|
+
OCRCitationPredictionResponseSexEnum["U"] = "U";
|
|
75
|
+
})(OCRCitationPredictionResponseSexEnum || (OCRCitationPredictionResponseSexEnum = {}));
|
|
@@ -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';
|
|
@@ -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';
|