@otr-app/shared-backend-generated-client 2.3.54 → 2.3.55
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 +4 -0
- package/dist/angular/api/api.ts +3 -1
- package/dist/angular/api/ocrPredictionController.service.ts +164 -0
- package/dist/angular/api.module.ts +1 -0
- package/dist/angular/model/models.ts +3 -0
- package/dist/angular/model/oCRPredictionCaseResponse.ts +63 -0
- package/dist/angular/model/predictCitationTextRequest.ts +26 -0
- package/dist/angular/model/violation.ts +19 -0
- package/dist/otrBackendService.js +37 -0
- package/dist/otrBackendService.min.js +3 -3
- package/dist/typescript/api/OcrPredictionControllerApi.d.ts +27 -0
- package/dist/typescript/api/OcrPredictionControllerApi.js +54 -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/api.module.ts +1 -0
- package/dist/typescript/model/OCRPredictionCaseResponse.d.ts +60 -0
- package/dist/typescript/model/OCRPredictionCaseResponse.js +13 -0
- package/dist/typescript/model/PredictCitationTextRequest.d.ts +21 -0
- package/dist/typescript/model/PredictCitationTextRequest.js +22 -0
- package/dist/typescript/model/Violation.d.ts +16 -0
- package/dist/typescript/model/Violation.js +13 -0
- package/dist/typescript/model/models.d.ts +3 -0
- package/dist/typescript/model/models.js +3 -0
- package/package.json +1 -1
|
@@ -65,6 +65,7 @@ api/listCasesController.service.ts
|
|
|
65
65
|
api/mediaCreationController.service.ts
|
|
66
66
|
api/messagesController.service.ts
|
|
67
67
|
api/notesController.service.ts
|
|
68
|
+
api/ocrPredictionController.service.ts
|
|
68
69
|
api/onDemandRequestController.service.ts
|
|
69
70
|
api/oneTimePasswordController.service.ts
|
|
70
71
|
api/phoneLeadsController.service.ts
|
|
@@ -544,6 +545,7 @@ model/noteEntity.ts
|
|
|
544
545
|
model/noteModel.ts
|
|
545
546
|
model/notificationEvent.ts
|
|
546
547
|
model/notificationEvents.ts
|
|
548
|
+
model/oCRPredictionCaseResponse.ts
|
|
547
549
|
model/outgoingContactDomain.ts
|
|
548
550
|
model/paymentPlanTypeModel.ts
|
|
549
551
|
model/paymentPlanTypeModelReq.ts
|
|
@@ -558,6 +560,7 @@ model/phoneNumberDomainRes.ts
|
|
|
558
560
|
model/postCourtCoverageRequest.ts
|
|
559
561
|
model/postFeedbackRequest.ts
|
|
560
562
|
model/potentialCustomerDomain.ts
|
|
563
|
+
model/predictCitationTextRequest.ts
|
|
561
564
|
model/previewDocumentRequest.ts
|
|
562
565
|
model/priceMatchRequest.ts
|
|
563
566
|
model/priceMatchResponse.ts
|
|
@@ -746,6 +749,7 @@ model/verifyMailingAddressRequest.ts
|
|
|
746
749
|
model/verifyMailingAddressResponse.ts
|
|
747
750
|
model/verifyPasswordResetTokenResponse.ts
|
|
748
751
|
model/verifyUserAccountResponse.ts
|
|
752
|
+
model/violation.ts
|
|
749
753
|
model/violationClassificationModel.ts
|
|
750
754
|
model/violationInput.ts
|
|
751
755
|
model/violationInputRequest.ts
|
package/dist/angular/api/api.ts
CHANGED
|
@@ -124,6 +124,8 @@ export * from './messagesController.service';
|
|
|
124
124
|
import { MessagesControllerService } from './messagesController.service';
|
|
125
125
|
export * from './notesController.service';
|
|
126
126
|
import { NotesControllerService } from './notesController.service';
|
|
127
|
+
export * from './ocrPredictionController.service';
|
|
128
|
+
import { OcrPredictionControllerService } from './ocrPredictionController.service';
|
|
127
129
|
export * from './onDemandRequestController.service';
|
|
128
130
|
import { OnDemandRequestControllerService } from './onDemandRequestController.service';
|
|
129
131
|
export * from './oneTimePasswordController.service';
|
|
@@ -192,4 +194,4 @@ export * from './verificationController.service';
|
|
|
192
194
|
import { VerificationControllerService } from './verificationController.service';
|
|
193
195
|
export * from './violationPenaltyController.service';
|
|
194
196
|
import { ViolationPenaltyControllerService } from './violationPenaltyController.service';
|
|
195
|
-
export const APIS = [ActionRequiredControllerService, ActivityFeedControllerService, AddressControllerService, AlertNotificationControllerService, AppEventsControllerService, AuditLawfirmEventsControllerService, AuthenticationControllerService, AwsCredentialsControllerService, BlogWebhookControllerService, BranchLinkControllerService, CaseActionsControllerService, CaseControllerService, CaseCreationControllerService, CaseNotesControllerService, CasePaymentControllerService, CaseReferralCodeControllerService, CaseRefundControllerService, CaseStatusControllerService, CaseTransferControllerService, CertificateControllerService, CitationAuditControllerService, CitationControllerService, ConfigurationControllerService, ConsoleListControllerService, ContactTimelineControllerService, ConversationControllerService, CountyControllerService, CourtControllerService, CrmControllerService, CustomerLeadControllerService, CustomerReviewControllerService, CustomerServiceAgentBookingsControllerService, CustomerServiceAgentControllerService, DashboardControllerService, DirectMailControllerService, DripControllerService, DripWebhooksControllerService, EmailSubscriptionControllerService, ExternalTicketLookupControllerService, FeedbackControllerService, FreshcallerControllerService, FreshdeskTicketControllerService, GetCaseControllerService, HouseholdMateControllerService, InsuranceCalculatorControllerService, LawfirmCaseDecisionControllerService, LawfirmCasesControllerService, LawfirmControllerService, LawfirmDocumentControllerService, LawfirmFeeCoverageControllerService, LawfirmPaymentModelControllerService, LawfirmRatesControllerService, LawfirmSettingsControllerService, LawfirmStorefrontControllerService, LawfirmSurchargeControllerService, LawfirmTransactionsControllerService, LawyerControllerService, LegalServicesControllerService, LineItemControllerService, ListCasesControllerService, MediaCreationControllerService, MessagesControllerService, NotesControllerService, OnDemandRequestControllerService, OneTimePasswordControllerService, PhoneLeadsControllerService, PushNotificationControllerService, RecurringBillingControllerService, RefLinkControllerService, ReferralCodeControllerService, ReferralControllerService, ReferralSourceControllerService, RefundEligibilityControllerService, RegistrationControllerService, ReportingControllerService, ScheduledTaskControllerService, SingleSignOnControllerService, SnsListenerControllerService, SocialLoginControllerService, StripeCardControllerService, StripeControllerService, StripeSyncControllerService, StripeWebhookControllerService, TicketReviewControllerService, TrafficViolationControllerService, UrlRedirectControllerService, UserAccountControllerService, UserAuditControllerService, UserControllerService, UserPasswordControllerService, UserProfileControllerService, UserSearchControllerService, UserSettingsControllerService, UtilityControllerService, ValidationControllerService, VerificationControllerService, ViolationPenaltyControllerService];
|
|
197
|
+
export const APIS = [ActionRequiredControllerService, ActivityFeedControllerService, AddressControllerService, AlertNotificationControllerService, AppEventsControllerService, AuditLawfirmEventsControllerService, AuthenticationControllerService, AwsCredentialsControllerService, BlogWebhookControllerService, BranchLinkControllerService, CaseActionsControllerService, CaseControllerService, CaseCreationControllerService, CaseNotesControllerService, CasePaymentControllerService, CaseReferralCodeControllerService, CaseRefundControllerService, CaseStatusControllerService, CaseTransferControllerService, CertificateControllerService, CitationAuditControllerService, CitationControllerService, ConfigurationControllerService, ConsoleListControllerService, ContactTimelineControllerService, ConversationControllerService, CountyControllerService, CourtControllerService, CrmControllerService, CustomerLeadControllerService, CustomerReviewControllerService, CustomerServiceAgentBookingsControllerService, CustomerServiceAgentControllerService, DashboardControllerService, DirectMailControllerService, DripControllerService, DripWebhooksControllerService, EmailSubscriptionControllerService, ExternalTicketLookupControllerService, FeedbackControllerService, FreshcallerControllerService, FreshdeskTicketControllerService, GetCaseControllerService, HouseholdMateControllerService, InsuranceCalculatorControllerService, LawfirmCaseDecisionControllerService, LawfirmCasesControllerService, LawfirmControllerService, LawfirmDocumentControllerService, LawfirmFeeCoverageControllerService, LawfirmPaymentModelControllerService, LawfirmRatesControllerService, LawfirmSettingsControllerService, LawfirmStorefrontControllerService, LawfirmSurchargeControllerService, LawfirmTransactionsControllerService, LawyerControllerService, LegalServicesControllerService, LineItemControllerService, ListCasesControllerService, MediaCreationControllerService, MessagesControllerService, NotesControllerService, OcrPredictionControllerService, OnDemandRequestControllerService, OneTimePasswordControllerService, PhoneLeadsControllerService, PushNotificationControllerService, RecurringBillingControllerService, RefLinkControllerService, ReferralCodeControllerService, ReferralControllerService, ReferralSourceControllerService, RefundEligibilityControllerService, RegistrationControllerService, ReportingControllerService, ScheduledTaskControllerService, SingleSignOnControllerService, SnsListenerControllerService, SocialLoginControllerService, StripeCardControllerService, StripeControllerService, StripeSyncControllerService, StripeWebhookControllerService, TicketReviewControllerService, TrafficViolationControllerService, UrlRedirectControllerService, UserAccountControllerService, UserAuditControllerService, UserControllerService, UserPasswordControllerService, UserProfileControllerService, UserSearchControllerService, UserSettingsControllerService, UtilityControllerService, ValidationControllerService, VerificationControllerService, ViolationPenaltyControllerService];
|
|
@@ -0,0 +1,164 @@
|
|
|
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
|
+
/* tslint:disable:no-unused-variable member-ordering */
|
|
13
|
+
|
|
14
|
+
import { Inject, Injectable, Optional } from '@angular/core';
|
|
15
|
+
import { HttpClient, HttpHeaders, HttpParams,
|
|
16
|
+
HttpResponse, HttpEvent, HttpParameterCodec, HttpContext
|
|
17
|
+
} from '@angular/common/http';
|
|
18
|
+
import { CustomHttpParameterCodec } from '../encoder';
|
|
19
|
+
import { Observable } from 'rxjs';
|
|
20
|
+
|
|
21
|
+
// @ts-ignore
|
|
22
|
+
import { OCRPredictionCaseResponse } from '../model/oCRPredictionCaseResponse';
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
import { PredictCitationTextRequest } from '../model/predictCitationTextRequest';
|
|
25
|
+
|
|
26
|
+
// @ts-ignore
|
|
27
|
+
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
|
28
|
+
import { Configuration } from '../configuration';
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
@Injectable({
|
|
33
|
+
providedIn: 'root'
|
|
34
|
+
})
|
|
35
|
+
export class OcrPredictionControllerService {
|
|
36
|
+
|
|
37
|
+
protected basePath = 'http://otr-backend-service-us-devo.offtherecord.com';
|
|
38
|
+
public defaultHeaders = new HttpHeaders();
|
|
39
|
+
public configuration = new Configuration();
|
|
40
|
+
public encoder: HttpParameterCodec;
|
|
41
|
+
|
|
42
|
+
constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) {
|
|
43
|
+
if (configuration) {
|
|
44
|
+
this.configuration = configuration;
|
|
45
|
+
}
|
|
46
|
+
if (typeof this.configuration.basePath !== 'string') {
|
|
47
|
+
if (Array.isArray(basePath) && basePath.length > 0) {
|
|
48
|
+
basePath = basePath[0];
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
if (typeof basePath !== 'string') {
|
|
52
|
+
basePath = this.basePath;
|
|
53
|
+
}
|
|
54
|
+
this.configuration.basePath = basePath;
|
|
55
|
+
}
|
|
56
|
+
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
// @ts-ignore
|
|
61
|
+
private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
|
|
62
|
+
if (typeof value === "object" && value instanceof Date === false) {
|
|
63
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value);
|
|
64
|
+
} else {
|
|
65
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
|
|
66
|
+
}
|
|
67
|
+
return httpParams;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams {
|
|
71
|
+
if (value == null) {
|
|
72
|
+
return httpParams;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
if (typeof value === "object") {
|
|
76
|
+
if (Array.isArray(value)) {
|
|
77
|
+
(value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
|
|
78
|
+
} else if (value instanceof Date) {
|
|
79
|
+
if (key != null) {
|
|
80
|
+
httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10));
|
|
81
|
+
} else {
|
|
82
|
+
throw Error("key may not be null if value is Date");
|
|
83
|
+
}
|
|
84
|
+
} else {
|
|
85
|
+
Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive(
|
|
86
|
+
httpParams, value[k], key != null ? `${key}.${k}` : k));
|
|
87
|
+
}
|
|
88
|
+
} else if (key != null) {
|
|
89
|
+
httpParams = httpParams.append(key, value);
|
|
90
|
+
} else {
|
|
91
|
+
throw Error("key may not be null if value is not object or array");
|
|
92
|
+
}
|
|
93
|
+
return httpParams;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* predictCitationText
|
|
98
|
+
* @param request request
|
|
99
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
100
|
+
* @param reportProgress flag to report request and response progress.
|
|
101
|
+
*/
|
|
102
|
+
public predictCitationTextUsingPOST(request: PredictCitationTextRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<OCRPredictionCaseResponse>;
|
|
103
|
+
public predictCitationTextUsingPOST(request: PredictCitationTextRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<HttpResponse<OCRPredictionCaseResponse>>;
|
|
104
|
+
public predictCitationTextUsingPOST(request: PredictCitationTextRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<HttpEvent<OCRPredictionCaseResponse>>;
|
|
105
|
+
public predictCitationTextUsingPOST(request: PredictCitationTextRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<any> {
|
|
106
|
+
if (request === null || request === undefined) {
|
|
107
|
+
throw new Error('Required parameter request was null or undefined when calling predictCitationTextUsingPOST.');
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
let localVarHeaders = this.defaultHeaders;
|
|
111
|
+
|
|
112
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
113
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
114
|
+
// to determine the Accept header
|
|
115
|
+
const httpHeaderAccepts: string[] = [
|
|
116
|
+
'*/*'
|
|
117
|
+
];
|
|
118
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
119
|
+
}
|
|
120
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
121
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
125
|
+
if (localVarHttpContext === undefined) {
|
|
126
|
+
localVarHttpContext = new HttpContext();
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
// to determine the Content-Type header
|
|
131
|
+
const consumes: string[] = [
|
|
132
|
+
'application/json'
|
|
133
|
+
];
|
|
134
|
+
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
|
|
135
|
+
if (httpContentTypeSelected !== undefined) {
|
|
136
|
+
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
140
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
141
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
142
|
+
responseType_ = 'text';
|
|
143
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
144
|
+
responseType_ = 'json';
|
|
145
|
+
} else {
|
|
146
|
+
responseType_ = 'blob';
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
let localVarPath = `/api/v1/predictions/predict-citation-text`;
|
|
151
|
+
return this.httpClient.request<OCRPredictionCaseResponse>('post', `${this.configuration.basePath}${localVarPath}`,
|
|
152
|
+
{
|
|
153
|
+
context: localVarHttpContext,
|
|
154
|
+
body: request,
|
|
155
|
+
responseType: <any>responseType_,
|
|
156
|
+
withCredentials: this.configuration.withCredentials,
|
|
157
|
+
headers: localVarHeaders,
|
|
158
|
+
observe: observe,
|
|
159
|
+
reportProgress: reportProgress
|
|
160
|
+
}
|
|
161
|
+
);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
}
|
|
@@ -65,6 +65,7 @@ import { ListCasesControllerService } from './api/listCasesController.service';
|
|
|
65
65
|
import { MediaCreationControllerService } from './api/mediaCreationController.service';
|
|
66
66
|
import { MessagesControllerService } from './api/messagesController.service';
|
|
67
67
|
import { NotesControllerService } from './api/notesController.service';
|
|
68
|
+
import { OcrPredictionControllerService } from './api/ocrPredictionController.service';
|
|
68
69
|
import { OnDemandRequestControllerService } from './api/onDemandRequestController.service';
|
|
69
70
|
import { OneTimePasswordControllerService } from './api/oneTimePasswordController.service';
|
|
70
71
|
import { PhoneLeadsControllerService } from './api/phoneLeadsController.service';
|
|
@@ -438,6 +438,7 @@ export * from './noteEntity';
|
|
|
438
438
|
export * from './noteModel';
|
|
439
439
|
export * from './notificationEvent';
|
|
440
440
|
export * from './notificationEvents';
|
|
441
|
+
export * from './oCRPredictionCaseResponse';
|
|
441
442
|
export * from './outgoingContactDomain';
|
|
442
443
|
export * from './paymentPlanTypeModel';
|
|
443
444
|
export * from './paymentPlanTypeModelReq';
|
|
@@ -452,6 +453,7 @@ export * from './phoneNumberDomainRes';
|
|
|
452
453
|
export * from './postCourtCoverageRequest';
|
|
453
454
|
export * from './postFeedbackRequest';
|
|
454
455
|
export * from './potentialCustomerDomain';
|
|
456
|
+
export * from './predictCitationTextRequest';
|
|
455
457
|
export * from './previewDocumentRequest';
|
|
456
458
|
export * from './priceMatchRequest';
|
|
457
459
|
export * from './priceMatchResponse';
|
|
@@ -640,6 +642,7 @@ export * from './verifyMailingAddressRequest';
|
|
|
640
642
|
export * from './verifyMailingAddressResponse';
|
|
641
643
|
export * from './verifyPasswordResetTokenResponse';
|
|
642
644
|
export * from './verifyUserAccountResponse';
|
|
645
|
+
export * from './violation';
|
|
643
646
|
export * from './violationClassificationModel';
|
|
644
647
|
export * from './violationInput';
|
|
645
648
|
export * from './violationInputRequest';
|
|
@@ -0,0 +1,63 @@
|
|
|
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 { Violation } from './violation';
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
export interface OCRPredictionCaseResponse {
|
|
16
|
+
accident?: string;
|
|
17
|
+
cdlClp?: string;
|
|
18
|
+
classification?: string;
|
|
19
|
+
court?: string;
|
|
20
|
+
courtOri?: string;
|
|
21
|
+
driversCity?: string;
|
|
22
|
+
driversDOB?: string;
|
|
23
|
+
driversFirstName?: string;
|
|
24
|
+
driversLastName?: string;
|
|
25
|
+
driversLicenseExpDate?: string;
|
|
26
|
+
driversLicenseNumber?: string;
|
|
27
|
+
driversLicenseState?: string;
|
|
28
|
+
driversMiddleName?: string;
|
|
29
|
+
driversRace?: string;
|
|
30
|
+
driversSex?: string;
|
|
31
|
+
driversState?: string;
|
|
32
|
+
driversStreetAddress?: string;
|
|
33
|
+
driversZip?: string;
|
|
34
|
+
infractionNumber?: string;
|
|
35
|
+
infractionType?: string;
|
|
36
|
+
leaOri?: string;
|
|
37
|
+
officerBadgeNumber?: string;
|
|
38
|
+
officerName?: string;
|
|
39
|
+
ownerCity?: string;
|
|
40
|
+
ownerFirstName?: string;
|
|
41
|
+
ownerLastName?: string;
|
|
42
|
+
ownerState?: string;
|
|
43
|
+
ownerStreetAddress?: string;
|
|
44
|
+
ownerZip?: string;
|
|
45
|
+
smd?: string;
|
|
46
|
+
totalPenalty?: string;
|
|
47
|
+
vehicleActualSpeed?: string;
|
|
48
|
+
vehicleColor?: string;
|
|
49
|
+
vehicleMake?: string;
|
|
50
|
+
vehicleModel?: string;
|
|
51
|
+
vehiclePlateExp?: string;
|
|
52
|
+
vehiclePlateNumber?: string;
|
|
53
|
+
vehiclePlateState?: string;
|
|
54
|
+
vehicleStyle?: string;
|
|
55
|
+
vehicleYear?: string;
|
|
56
|
+
violationCity?: string;
|
|
57
|
+
violationDate?: string;
|
|
58
|
+
violationLocation?: string;
|
|
59
|
+
violationTime?: string;
|
|
60
|
+
violations?: Array<Violation>;
|
|
61
|
+
zoneSpeedLimit?: string;
|
|
62
|
+
}
|
|
63
|
+
|
|
@@ -0,0 +1,26 @@
|
|
|
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 PredictCitationTextRequest {
|
|
15
|
+
documentPredictionType?: PredictCitationTextRequest.DocumentPredictionTypeEnum;
|
|
16
|
+
imageInBase64?: string;
|
|
17
|
+
}
|
|
18
|
+
export namespace PredictCitationTextRequest {
|
|
19
|
+
export type DocumentPredictionTypeEnum = 'PARKING_TICKET' | 'TRAFFIC_TICKET';
|
|
20
|
+
export const DocumentPredictionTypeEnum = {
|
|
21
|
+
ParkingTicket: 'PARKING_TICKET' as DocumentPredictionTypeEnum,
|
|
22
|
+
TrafficTicket: 'TRAFFIC_TICKET' as DocumentPredictionTypeEnum
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
|
|
@@ -0,0 +1,19 @@
|
|
|
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 Violation {
|
|
15
|
+
code?: string;
|
|
16
|
+
description?: string;
|
|
17
|
+
penalty?: string;
|
|
18
|
+
}
|
|
19
|
+
|
|
@@ -10947,6 +10947,43 @@ angular.module('otrBackendService', [])
|
|
|
10947
10947
|
|
|
10948
10948
|
return deferred.promise;
|
|
10949
10949
|
};
|
|
10950
|
+
/**
|
|
10951
|
+
* predictCitationText
|
|
10952
|
+
* @method
|
|
10953
|
+
* @name OtrService#predictCitationTextUsingPOST
|
|
10954
|
+
* @param {object} parameters - method options and parameters
|
|
10955
|
+
* @param {} parameters.request - request
|
|
10956
|
+
*/
|
|
10957
|
+
OtrService.prototype.predictCitationTextUsingPOST = function(parameters) {
|
|
10958
|
+
if (parameters === undefined) {
|
|
10959
|
+
parameters = {};
|
|
10960
|
+
}
|
|
10961
|
+
var deferred = $q.defer();
|
|
10962
|
+
var domain = this.domain,
|
|
10963
|
+
path = '/api/v1/predictions/predict-citation-text';
|
|
10964
|
+
var body = {},
|
|
10965
|
+
queryParameters = {},
|
|
10966
|
+
headers = {},
|
|
10967
|
+
form = {};
|
|
10968
|
+
|
|
10969
|
+
headers['Accept'] = ['*/*'];
|
|
10970
|
+
headers['Content-Type'] = ['application/json'];
|
|
10971
|
+
|
|
10972
|
+
if (parameters['request'] !== undefined) {
|
|
10973
|
+
body = parameters['request'];
|
|
10974
|
+
}
|
|
10975
|
+
|
|
10976
|
+
if (parameters['request'] === undefined) {
|
|
10977
|
+
deferred.reject(new Error('Missing required parameter: request'));
|
|
10978
|
+
return deferred.promise;
|
|
10979
|
+
}
|
|
10980
|
+
|
|
10981
|
+
queryParameters = mergeQueryParams(parameters, queryParameters);
|
|
10982
|
+
|
|
10983
|
+
this.request('POST', domain + path, parameters, body, headers, queryParameters, form, deferred);
|
|
10984
|
+
|
|
10985
|
+
return deferred.promise;
|
|
10986
|
+
};
|
|
10950
10987
|
/**
|
|
10951
10988
|
* getActiveRatesByArea
|
|
10952
10989
|
* @method
|