@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.
Files changed (66) hide show
  1. package/dist/angular/.openapi-generator/FILES +10 -0
  2. package/dist/angular/api/api.ts +3 -1
  3. package/dist/angular/api/ocrPipelineController.service.ts +234 -0
  4. package/dist/angular/api.module.ts +1 -0
  5. package/dist/angular/model/citationIssueDate.ts +17 -0
  6. package/dist/angular/model/courtName.ts +20 -0
  7. package/dist/angular/model/models.ts +9 -0
  8. package/dist/angular/model/predictCitationRequest.ts +19 -0
  9. package/dist/angular/model/predictCitationResponse.ts +18 -0
  10. package/dist/angular/model/predictRichCitationResponse.ts +18 -0
  11. package/dist/angular/model/richCitationInferenceResponse.ts +42 -0
  12. package/dist/angular/model/skipMap.ts +18 -0
  13. package/dist/angular/model/slimCitationInferenceResponse.ts +27 -0
  14. package/dist/angular/model/violationNames.ts +19 -0
  15. package/dist/otrBackendService.js +74 -0
  16. package/dist/otrBackendService.min.js +3 -3
  17. package/dist/typescript/api/OcrPipelineControllerApi.d.ts +33 -0
  18. package/dist/typescript/api/OcrPipelineControllerApi.js +79 -0
  19. package/dist/typescript/api/api.d.ts +3 -1
  20. package/dist/typescript/api/api.js +3 -1
  21. package/dist/typescript/api.module.js +1 -0
  22. package/dist/typescript/model/CitationIssueDate.d.ts +14 -0
  23. package/dist/typescript/model/CitationIssueDate.js +13 -0
  24. package/dist/typescript/model/CourtName.d.ts +17 -0
  25. package/dist/typescript/model/CourtName.js +13 -0
  26. package/dist/typescript/model/PredictCitationRequest.d.ts +16 -0
  27. package/dist/typescript/model/PredictCitationRequest.js +13 -0
  28. package/dist/typescript/model/PredictCitationResponse.d.ts +15 -0
  29. package/dist/typescript/model/PredictCitationResponse.js +13 -0
  30. package/dist/typescript/model/PredictRichCitationResponse.d.ts +15 -0
  31. package/dist/typescript/model/PredictRichCitationResponse.js +13 -0
  32. package/dist/typescript/model/RichCitationInferenceResponse.d.ts +39 -0
  33. package/dist/typescript/model/RichCitationInferenceResponse.js +13 -0
  34. package/dist/typescript/model/SkipMap.d.ts +15 -0
  35. package/dist/typescript/model/SkipMap.js +13 -0
  36. package/dist/typescript/model/SlimCitationInferenceResponse.d.ts +21 -0
  37. package/dist/typescript/model/SlimCitationInferenceResponse.js +13 -0
  38. package/dist/typescript/model/ViolationNames.d.ts +16 -0
  39. package/dist/typescript/model/ViolationNames.js +13 -0
  40. package/dist/typescript/model/models.d.ts +9 -0
  41. package/dist/typescript/model/models.js +9 -0
  42. package/dist/typescript-fetch/apis/OcrPipelineControllerApi.d.ts +40 -0
  43. package/dist/typescript-fetch/apis/OcrPipelineControllerApi.js +89 -0
  44. package/dist/typescript-fetch/apis/index.d.ts +1 -0
  45. package/dist/typescript-fetch/apis/index.js +1 -0
  46. package/dist/typescript-fetch/models/CitationIssueDate.d.ts +27 -0
  47. package/dist/typescript-fetch/models/CitationIssueDate.js +36 -0
  48. package/dist/typescript-fetch/models/CourtName.d.ts +45 -0
  49. package/dist/typescript-fetch/models/CourtName.js +42 -0
  50. package/dist/typescript-fetch/models/PredictCitationRequest.d.ts +39 -0
  51. package/dist/typescript-fetch/models/PredictCitationRequest.js +40 -0
  52. package/dist/typescript-fetch/models/PredictCitationResponse.d.ts +28 -0
  53. package/dist/typescript-fetch/models/PredictCitationResponse.js +37 -0
  54. package/dist/typescript-fetch/models/PredictRichCitationResponse.d.ts +28 -0
  55. package/dist/typescript-fetch/models/PredictRichCitationResponse.js +37 -0
  56. package/dist/typescript-fetch/models/RichCitationInferenceResponse.d.ts +177 -0
  57. package/dist/typescript-fetch/models/RichCitationInferenceResponse.js +86 -0
  58. package/dist/typescript-fetch/models/SkipMap.d.ts +33 -0
  59. package/dist/typescript-fetch/models/SkipMap.js +38 -0
  60. package/dist/typescript-fetch/models/SlimCitationInferenceResponse.d.ts +64 -0
  61. package/dist/typescript-fetch/models/SlimCitationInferenceResponse.js +49 -0
  62. package/dist/typescript-fetch/models/ViolationNames.d.ts +39 -0
  63. package/dist/typescript-fetch/models/ViolationNames.js +40 -0
  64. package/dist/typescript-fetch/models/index.d.ts +9 -0
  65. package/dist/typescript-fetch/models/index.js +9 -0
  66. package/package.json +1 -1
@@ -78,6 +78,7 @@ api/listCasesController.service.ts
78
78
  api/mediaCreationController.service.ts
79
79
  api/messagesController.service.ts
80
80
  api/notesController.service.ts
81
+ api/ocrPipelineController.service.ts
81
82
  api/ocrPredictionController.service.ts
82
83
  api/onDemandRequestController.service.ts
83
84
  api/oneTimePasswordController.service.ts
@@ -244,6 +245,7 @@ model/chargeFeeToLawfirmResponse.ts
244
245
  model/citationAuditEventModel.ts
245
246
  model/citationAuditLog.ts
246
247
  model/citationInputRequest.ts
248
+ model/citationIssueDate.ts
247
249
  model/citationModel.ts
248
250
  model/citationModelReq.ts
249
251
  model/citationModelRes.ts
@@ -280,6 +282,7 @@ model/courtDomainReq.ts
280
282
  model/courtDomainRes.ts
281
283
  model/courtEntity.ts
282
284
  model/courtInputRequest.ts
285
+ model/courtName.ts
283
286
  model/courtResponseModel.ts
284
287
  model/coverageToRemove.ts
285
288
  model/createBillingSubscriptionItemModel.ts
@@ -672,9 +675,12 @@ model/phoneNumberDomainRes.ts
672
675
  model/postCourtCoverageRequest.ts
673
676
  model/postFeedbackRequest.ts
674
677
  model/potentialCustomerDomain.ts
678
+ model/predictCitationRequest.ts
679
+ model/predictCitationResponse.ts
675
680
  model/predictCitationTextRequest.ts
676
681
  model/predictImageClassificationRequest.ts
677
682
  model/predictImageClassificationResponse.ts
683
+ model/predictRichCitationResponse.ts
678
684
  model/previewDocumentRequest.ts
679
685
  model/priceMatchRequest.ts
680
686
  model/priceMatchResponse.ts
@@ -710,6 +716,7 @@ model/reverseLawfirmPayoutRequest.ts
710
716
  model/reviewCommentModel.ts
711
717
  model/reviewRatingModel.ts
712
718
  model/reviewVoteAggregateModel.ts
719
+ model/richCitationInferenceResponse.ts
713
720
  model/sNSNotificationRequest.ts
714
721
  model/sSLCertificateResponse.ts
715
722
  model/saveAgentBookingRequest.ts
@@ -767,6 +774,8 @@ model/signRecordingUrlRequest.ts
767
774
  model/signRecordingUrlResponse.ts
768
775
  model/simpleCredentialsResponse.ts
769
776
  model/singleSignOnResponse.ts
777
+ model/skipMap.ts
778
+ model/slimCitationInferenceResponse.ts
770
779
  model/socialLoginRequest.ts
771
780
  model/socialLoginResponse.ts
772
781
  model/socialLoginUser.ts
@@ -919,6 +928,7 @@ model/violationClassificationModel.ts
919
928
  model/violationInput.ts
920
929
  model/violationInputRequest.ts
921
930
  model/violationModel.ts
931
+ model/violationNames.ts
922
932
  model/violationPenaltyModel.ts
923
933
  model/violationPenaltyResponse.ts
924
934
  model/violationResponse.ts
@@ -150,6 +150,8 @@ export * from './messagesController.service';
150
150
  import { MessagesControllerService } from './messagesController.service';
151
151
  export * from './notesController.service';
152
152
  import { NotesControllerService } from './notesController.service';
153
+ export * from './ocrPipelineController.service';
154
+ import { OcrPipelineControllerService } from './ocrPipelineController.service';
153
155
  export * from './ocrPredictionController.service';
154
156
  import { OcrPredictionControllerService } from './ocrPredictionController.service';
155
157
  export * from './onDemandRequestController.service';
@@ -228,4 +230,4 @@ export * from './websocketMessageController.service';
228
230
  import { WebsocketMessageControllerService } from './websocketMessageController.service';
229
231
  export * from './workflowStateController.service';
230
232
  import { WorkflowStateControllerService } from './workflowStateController.service';
231
- export const APIS = [ActionRequiredControllerService, ActivityFeedControllerService, AddressControllerService, AlertNotificationControllerService, AppEventsControllerService, AuditLawfirmEventsControllerService, AuditLogControllerService, AuthenticationControllerService, AwsCredentialsControllerService, BlogWebhookControllerService, BranchLinkControllerService, CaptchaControllerService, CaseActionsControllerService, CaseControllerService, CaseCounterOfferControllerService, CaseCreationControllerService, CaseDeclineControllerService, CaseNotesControllerService, CasePaymentControllerService, CaseReferralCodeControllerService, CaseRefundControllerService, CaseResolutionControllerService, CaseStatusControllerService, CaseTransferControllerService, CaseUserControllerService, CertificateControllerService, CitationAuditControllerService, CitationControllerService, CoachingCardsControllerService, ConfigurationControllerService, ConsoleListControllerService, ContactLoopWebhookControllerService, ContactTimelineControllerService, ConversationControllerService, CountyControllerService, CourtControllerService, CrmControllerService, CustomerLeadControllerService, CustomerReviewControllerService, CustomerServiceAgentBookingsControllerService, CustomerServiceAgentControllerService, DashboardControllerService, DirectMailControllerService, DripControllerService, DripWebhooksControllerService, DriverLicenseControllerService, EmailSubscriptionControllerService, EmployeeControllerService, ExternalContentVoteControllerService, ExternalTicketLookupControllerService, FeedbackControllerService, FreshcallerControllerService, FreshdeskTicketControllerService, GetCaseControllerService, HouseholdMateControllerService, HubspotWebhookControllerService, InsuranceCalculatorControllerService, IntercomTicketControllerService, 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, UrlRedirectControllerService, UserAccountControllerService, UserAuditControllerService, UserControllerService, UserPasswordControllerService, UserProfileControllerService, UserSearchControllerService, UserSettingsControllerService, UserSocialProfileControllerService, UtilityControllerService, ValidationControllerService, VerificationControllerService, ViolationControllerService, ViolationPenaltyControllerService, WatchlistsControllerService, WebsocketMessageControllerService, WorkflowStateControllerService];
233
+ export const APIS = [ActionRequiredControllerService, ActivityFeedControllerService, AddressControllerService, AlertNotificationControllerService, AppEventsControllerService, AuditLawfirmEventsControllerService, AuditLogControllerService, AuthenticationControllerService, AwsCredentialsControllerService, BlogWebhookControllerService, BranchLinkControllerService, CaptchaControllerService, CaseActionsControllerService, CaseControllerService, CaseCounterOfferControllerService, CaseCreationControllerService, CaseDeclineControllerService, CaseNotesControllerService, CasePaymentControllerService, CaseReferralCodeControllerService, CaseRefundControllerService, CaseResolutionControllerService, CaseStatusControllerService, CaseTransferControllerService, CaseUserControllerService, CertificateControllerService, CitationAuditControllerService, CitationControllerService, CoachingCardsControllerService, ConfigurationControllerService, ConsoleListControllerService, ContactLoopWebhookControllerService, ContactTimelineControllerService, ConversationControllerService, CountyControllerService, CourtControllerService, CrmControllerService, CustomerLeadControllerService, CustomerReviewControllerService, CustomerServiceAgentBookingsControllerService, CustomerServiceAgentControllerService, DashboardControllerService, DirectMailControllerService, DripControllerService, DripWebhooksControllerService, DriverLicenseControllerService, EmailSubscriptionControllerService, EmployeeControllerService, ExternalContentVoteControllerService, ExternalTicketLookupControllerService, FeedbackControllerService, FreshcallerControllerService, FreshdeskTicketControllerService, GetCaseControllerService, HouseholdMateControllerService, HubspotWebhookControllerService, InsuranceCalculatorControllerService, IntercomTicketControllerService, LawfirmCaseDecisionControllerService, LawfirmCasesControllerService, LawfirmControllerService, LawfirmDocumentControllerService, LawfirmFeeCoverageControllerService, LawfirmPaymentModelControllerService, LawfirmRatesControllerService, LawfirmSettingsControllerService, LawfirmStorefrontControllerService, LawfirmSurchargeControllerService, LawfirmTransactionsControllerService, LawyerControllerService, LegalServicesControllerService, LineItemControllerService, ListCasesControllerService, MediaCreationControllerService, MessagesControllerService, NotesControllerService, OcrPipelineControllerService, OcrPredictionControllerService, OnDemandRequestControllerService, OneTimePasswordControllerService, PhoneLeadsControllerService, PushNotificationControllerService, RecurringBillingControllerService, RefLinkControllerService, ReferralCodeControllerService, ReferralControllerService, ReferralSourceControllerService, RefundEligibilityControllerService, RegistrationControllerService, ReportingControllerService, ScheduledTaskControllerService, SingleSignOnControllerService, SnsListenerControllerService, SocialLoginControllerService, StripeCardControllerService, StripeControllerService, StripeSyncControllerService, StripeWebhookControllerService, TicketReviewControllerService, UrlRedirectControllerService, UserAccountControllerService, UserAuditControllerService, UserControllerService, UserPasswordControllerService, UserProfileControllerService, UserSearchControllerService, UserSettingsControllerService, UserSocialProfileControllerService, UtilityControllerService, ValidationControllerService, VerificationControllerService, ViolationControllerService, ViolationPenaltyControllerService, WatchlistsControllerService, WebsocketMessageControllerService, WorkflowStateControllerService];
@@ -0,0 +1,234 @@
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 { PredictCitationRequest } from '../model/predictCitationRequest';
23
+ // @ts-ignore
24
+ import { PredictCitationResponse } from '../model/predictCitationResponse';
25
+ // @ts-ignore
26
+ import { PredictRichCitationResponse } from '../model/predictRichCitationResponse';
27
+
28
+ // @ts-ignore
29
+ import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
30
+ import { Configuration } from '../configuration';
31
+
32
+
33
+
34
+ @Injectable({
35
+ providedIn: 'root'
36
+ })
37
+ export class OcrPipelineControllerService {
38
+
39
+ protected basePath = 'http://otr-backend-service-us-devo.offtherecord.com';
40
+ public defaultHeaders = new HttpHeaders();
41
+ public configuration = new Configuration();
42
+ public encoder: HttpParameterCodec;
43
+
44
+ constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) {
45
+ if (configuration) {
46
+ this.configuration = configuration;
47
+ }
48
+ if (typeof this.configuration.basePath !== 'string') {
49
+ if (Array.isArray(basePath) && basePath.length > 0) {
50
+ basePath = basePath[0];
51
+ }
52
+
53
+ if (typeof basePath !== 'string') {
54
+ basePath = this.basePath;
55
+ }
56
+ this.configuration.basePath = basePath;
57
+ }
58
+ this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
59
+ }
60
+
61
+
62
+ // @ts-ignore
63
+ private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
64
+ if (typeof value === "object" && value instanceof Date === false) {
65
+ httpParams = this.addToHttpParamsRecursive(httpParams, value);
66
+ } else {
67
+ httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
68
+ }
69
+ return httpParams;
70
+ }
71
+
72
+ private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams {
73
+ if (value == null) {
74
+ return httpParams;
75
+ }
76
+
77
+ if (typeof value === "object") {
78
+ if (Array.isArray(value)) {
79
+ (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
80
+ } else if (value instanceof Date) {
81
+ if (key != null) {
82
+ httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10));
83
+ } else {
84
+ throw Error("key may not be null if value is Date");
85
+ }
86
+ } else {
87
+ Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive(
88
+ httpParams, value[k], key != null ? `${key}.${k}` : k));
89
+ }
90
+ } else if (key != null) {
91
+ httpParams = httpParams.append(key, value);
92
+ } else {
93
+ throw Error("key may not be null if value is not object or array");
94
+ }
95
+ return httpParams;
96
+ }
97
+
98
+ /**
99
+ * predictCitationFields
100
+ * @param request request
101
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
102
+ * @param reportProgress flag to report request and response progress.
103
+ */
104
+ public predictCitationFieldsUsingPOST(request: PredictCitationRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<PredictCitationResponse>;
105
+ public predictCitationFieldsUsingPOST(request: PredictCitationRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<HttpResponse<PredictCitationResponse>>;
106
+ public predictCitationFieldsUsingPOST(request: PredictCitationRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<HttpEvent<PredictCitationResponse>>;
107
+ public predictCitationFieldsUsingPOST(request: PredictCitationRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<any> {
108
+ if (request === null || request === undefined) {
109
+ throw new Error('Required parameter request was null or undefined when calling predictCitationFieldsUsingPOST.');
110
+ }
111
+
112
+ let localVarHeaders = this.defaultHeaders;
113
+
114
+ let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
115
+ if (localVarHttpHeaderAcceptSelected === undefined) {
116
+ // to determine the Accept header
117
+ const httpHeaderAccepts: string[] = [
118
+ '*/*'
119
+ ];
120
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
121
+ }
122
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
123
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
124
+ }
125
+
126
+ let localVarHttpContext: HttpContext | undefined = options && options.context;
127
+ if (localVarHttpContext === undefined) {
128
+ localVarHttpContext = new HttpContext();
129
+ }
130
+
131
+
132
+ // to determine the Content-Type header
133
+ const consumes: string[] = [
134
+ 'application/json'
135
+ ];
136
+ const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
137
+ if (httpContentTypeSelected !== undefined) {
138
+ localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
139
+ }
140
+
141
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
142
+ if (localVarHttpHeaderAcceptSelected) {
143
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
144
+ responseType_ = 'text';
145
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
146
+ responseType_ = 'json';
147
+ } else {
148
+ responseType_ = 'blob';
149
+ }
150
+ }
151
+
152
+ let localVarPath = `/api/v1/ocr_pipeline/predict_citation`;
153
+ return this.httpClient.request<PredictCitationResponse>('post', `${this.configuration.basePath}${localVarPath}`,
154
+ {
155
+ context: localVarHttpContext,
156
+ body: request,
157
+ responseType: <any>responseType_,
158
+ withCredentials: this.configuration.withCredentials,
159
+ headers: localVarHeaders,
160
+ observe: observe,
161
+ reportProgress: reportProgress
162
+ }
163
+ );
164
+ }
165
+
166
+ /**
167
+ * predictRichCitationFields
168
+ * @param request request
169
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
170
+ * @param reportProgress flag to report request and response progress.
171
+ */
172
+ public predictRichCitationFieldsUsingPOST(request: PredictCitationRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<PredictRichCitationResponse>;
173
+ public predictRichCitationFieldsUsingPOST(request: PredictCitationRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<HttpResponse<PredictRichCitationResponse>>;
174
+ public predictRichCitationFieldsUsingPOST(request: PredictCitationRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<HttpEvent<PredictRichCitationResponse>>;
175
+ public predictRichCitationFieldsUsingPOST(request: PredictCitationRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<any> {
176
+ if (request === null || request === undefined) {
177
+ throw new Error('Required parameter request was null or undefined when calling predictRichCitationFieldsUsingPOST.');
178
+ }
179
+
180
+ let localVarHeaders = this.defaultHeaders;
181
+
182
+ let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
183
+ if (localVarHttpHeaderAcceptSelected === undefined) {
184
+ // to determine the Accept header
185
+ const httpHeaderAccepts: string[] = [
186
+ '*/*'
187
+ ];
188
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
189
+ }
190
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
191
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
192
+ }
193
+
194
+ let localVarHttpContext: HttpContext | undefined = options && options.context;
195
+ if (localVarHttpContext === undefined) {
196
+ localVarHttpContext = new HttpContext();
197
+ }
198
+
199
+
200
+ // to determine the Content-Type header
201
+ const consumes: string[] = [
202
+ 'application/json'
203
+ ];
204
+ const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
205
+ if (httpContentTypeSelected !== undefined) {
206
+ localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
207
+ }
208
+
209
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
210
+ if (localVarHttpHeaderAcceptSelected) {
211
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
212
+ responseType_ = 'text';
213
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
214
+ responseType_ = 'json';
215
+ } else {
216
+ responseType_ = 'blob';
217
+ }
218
+ }
219
+
220
+ let localVarPath = `/api/v1/ocr_pipeline/predict_rich_citation`;
221
+ return this.httpClient.request<PredictRichCitationResponse>('post', `${this.configuration.basePath}${localVarPath}`,
222
+ {
223
+ context: localVarHttpContext,
224
+ body: request,
225
+ responseType: <any>responseType_,
226
+ withCredentials: this.configuration.withCredentials,
227
+ headers: localVarHeaders,
228
+ observe: observe,
229
+ reportProgress: reportProgress
230
+ }
231
+ );
232
+ }
233
+
234
+ }
@@ -78,6 +78,7 @@ import { ListCasesControllerService } from './api/listCasesController.service';
78
78
  import { MediaCreationControllerService } from './api/mediaCreationController.service';
79
79
  import { MessagesControllerService } from './api/messagesController.service';
80
80
  import { NotesControllerService } from './api/notesController.service';
81
+ import { OcrPipelineControllerService } from './api/ocrPipelineController.service';
81
82
  import { OcrPredictionControllerService } from './api/ocrPredictionController.service';
82
83
  import { OnDemandRequestControllerService } from './api/onDemandRequestController.service';
83
84
  import { OneTimePasswordControllerService } from './api/oneTimePasswordController.service';
@@ -0,0 +1,17 @@
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 CitationIssueDate {
15
+ llm_prediction?: string;
16
+ }
17
+
@@ -0,0 +1,20 @@
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 CourtName {
15
+ llm_prediction?: string;
16
+ pinecone_match?: Array<string>;
17
+ pinecone_matches?: Array<string>;
18
+ pinecone_scores?: Array<number>;
19
+ }
20
+
@@ -121,6 +121,7 @@ export * from './chargeFeeToLawfirmResponse';
121
121
  export * from './citationAuditEventModel';
122
122
  export * from './citationAuditLog';
123
123
  export * from './citationInputRequest';
124
+ export * from './citationIssueDate';
124
125
  export * from './citationModel';
125
126
  export * from './citationModelReq';
126
127
  export * from './citationModelRes';
@@ -157,6 +158,7 @@ export * from './courtDomainReq';
157
158
  export * from './courtDomainRes';
158
159
  export * from './courtEntity';
159
160
  export * from './courtInputRequest';
161
+ export * from './courtName';
160
162
  export * from './courtResponseModel';
161
163
  export * from './coverageToRemove';
162
164
  export * from './createBillingSubscriptionItemModel';
@@ -548,9 +550,12 @@ export * from './phoneNumberDomainRes';
548
550
  export * from './postCourtCoverageRequest';
549
551
  export * from './postFeedbackRequest';
550
552
  export * from './potentialCustomerDomain';
553
+ export * from './predictCitationRequest';
554
+ export * from './predictCitationResponse';
551
555
  export * from './predictCitationTextRequest';
552
556
  export * from './predictImageClassificationRequest';
553
557
  export * from './predictImageClassificationResponse';
558
+ export * from './predictRichCitationResponse';
554
559
  export * from './previewDocumentRequest';
555
560
  export * from './priceMatchRequest';
556
561
  export * from './priceMatchResponse';
@@ -586,6 +591,7 @@ export * from './reverseLawfirmPayoutRequest';
586
591
  export * from './reviewCommentModel';
587
592
  export * from './reviewRatingModel';
588
593
  export * from './reviewVoteAggregateModel';
594
+ export * from './richCitationInferenceResponse';
589
595
  export * from './sNSNotificationRequest';
590
596
  export * from './sSLCertificateResponse';
591
597
  export * from './saveAgentBookingRequest';
@@ -643,6 +649,8 @@ export * from './signRecordingUrlRequest';
643
649
  export * from './signRecordingUrlResponse';
644
650
  export * from './simpleCredentialsResponse';
645
651
  export * from './singleSignOnResponse';
652
+ export * from './skipMap';
653
+ export * from './slimCitationInferenceResponse';
646
654
  export * from './socialLoginRequest';
647
655
  export * from './socialLoginResponse';
648
656
  export * from './socialLoginUser';
@@ -795,6 +803,7 @@ export * from './violationClassificationModel';
795
803
  export * from './violationInput';
796
804
  export * from './violationInputRequest';
797
805
  export * from './violationModel';
806
+ export * from './violationNames';
798
807
  export * from './violationPenaltyModel';
799
808
  export * from './violationPenaltyResponse';
800
809
  export * from './violationResponse';
@@ -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 PredictCitationRequest {
15
+ citationId?: string;
16
+ imageInBase64?: string;
17
+ regionCode?: string;
18
+ }
19
+
@@ -0,0 +1,18 @@
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 './slimCitationInferenceResponse';
13
+
14
+
15
+ export interface PredictCitationResponse {
16
+ ocrResult?: SlimCitationInferenceResponse;
17
+ }
18
+
@@ -0,0 +1,18 @@
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 './richCitationInferenceResponse';
13
+
14
+
15
+ export interface PredictRichCitationResponse {
16
+ ocrResult?: RichCitationInferenceResponse;
17
+ }
18
+
@@ -0,0 +1,42 @@
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 RichCitationInferenceResponse {
15
+ case_number?: string;
16
+ citation_city?: string;
17
+ citation_county?: string;
18
+ citation_id?: string;
19
+ citation_issue_date?: string;
20
+ citation_state?: string;
21
+ court_name?: string;
22
+ has_accident?: boolean;
23
+ is_cdl?: boolean;
24
+ offender_city?: string;
25
+ offender_county?: string;
26
+ offender_date_of_birth?: string;
27
+ offender_driver_license_number?: string;
28
+ offender_first_name?: string;
29
+ offender_last_name?: string;
30
+ offender_middle_name?: string;
31
+ offender_state?: string;
32
+ race?: string;
33
+ sex?: string;
34
+ total_penalty_amount?: string;
35
+ vehicle_color?: string;
36
+ vehicle_license_plate_number?: string;
37
+ vehicle_make?: string;
38
+ vehicle_model?: string;
39
+ vehicle_year?: string;
40
+ violation_names?: Array<string>;
41
+ }
42
+
@@ -0,0 +1,18 @@
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 SkipMap {
15
+ handwritten?: boolean;
16
+ template?: string;
17
+ }
18
+
@@ -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
+ import { CitationIssueDate } from './citationIssueDate';
13
+ import { CourtName } from './courtName';
14
+ import { ViolationNames } from './violationNames';
15
+ import { SkipMap } from './skipMap';
16
+
17
+
18
+ export interface SlimCitationInferenceResponse {
19
+ citation_issue_date?: CitationIssueDate;
20
+ court_name?: CourtName;
21
+ handwritten?: boolean;
22
+ ocr_output?: string;
23
+ skip_map?: SkipMap;
24
+ template?: string;
25
+ violation_names?: ViolationNames;
26
+ }
27
+
@@ -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 ViolationNames {
15
+ llm_prediction?: Array<string>;
16
+ pinecone_matches?: Array<string>;
17
+ pinecone_scores?: Array<number>;
18
+ }
19
+