@otr-app/shared-backend-generated-client 2.3.139 → 2.3.141

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.
@@ -134,6 +134,7 @@ model/addNewCaseMessageRequest.ts
134
134
  model/addNoteToPhoneLeadRequest.ts
135
135
  model/addPenaltyRequest.ts
136
136
  model/addRedirectUrlRequest.ts
137
+ model/addReferralRequest.ts
137
138
  model/addReviewRequest.ts
138
139
  model/addViolationRequest.ts
139
140
  model/addViolationResponse.ts
@@ -584,7 +585,9 @@ model/noteEntity.ts
584
585
  model/noteModel.ts
585
586
  model/notificationEvent.ts
586
587
  model/notificationEvents.ts
588
+ model/oCRCourtModel.ts
587
589
  model/oCRPredictionCaseResponse.ts
590
+ model/oCRViolationModel.ts
588
591
  model/otherCase.ts
589
592
  model/outgoingContactDomain.ts
590
593
  model/paymentPlanTypeModel.ts
@@ -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 { AddReferralRequest } from '../model/addReferralRequest';
21
23
  // @ts-ignore
22
24
  import { GetReferralsHistoryResponse } from '../model/getReferralsHistoryResponse';
23
25
  // @ts-ignore
@@ -97,6 +99,73 @@ export class ReferralControllerService {
97
99
  return httpParams;
98
100
  }
99
101
 
102
+ /**
103
+ * addReferral
104
+ * @param request request
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 addReferralUsingPOST(request: AddReferralRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<any>;
109
+ public addReferralUsingPOST(request: AddReferralRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<HttpResponse<any>>;
110
+ public addReferralUsingPOST(request: AddReferralRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<HttpEvent<any>>;
111
+ public addReferralUsingPOST(request: AddReferralRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<any> {
112
+ if (request === null || request === undefined) {
113
+ throw new Error('Required parameter request was null or undefined when calling addReferralUsingPOST.');
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
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
124
+ }
125
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
126
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
127
+ }
128
+
129
+ let localVarHttpContext: HttpContext | undefined = options && options.context;
130
+ if (localVarHttpContext === undefined) {
131
+ localVarHttpContext = new HttpContext();
132
+ }
133
+
134
+
135
+ // to determine the Content-Type header
136
+ const consumes: string[] = [
137
+ 'application/json'
138
+ ];
139
+ const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
140
+ if (httpContentTypeSelected !== undefined) {
141
+ localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
142
+ }
143
+
144
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
145
+ if (localVarHttpHeaderAcceptSelected) {
146
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
147
+ responseType_ = 'text';
148
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
149
+ responseType_ = 'json';
150
+ } else {
151
+ responseType_ = 'blob';
152
+ }
153
+ }
154
+
155
+ let localVarPath = `/api/v1/referrals`;
156
+ return this.httpClient.request<any>('post', `${this.configuration.basePath}${localVarPath}`,
157
+ {
158
+ context: localVarHttpContext,
159
+ body: request,
160
+ responseType: <any>responseType_,
161
+ withCredentials: this.configuration.withCredentials,
162
+ headers: localVarHeaders,
163
+ observe: observe,
164
+ reportProgress: reportProgress
165
+ }
166
+ );
167
+ }
168
+
100
169
  /**
101
170
  * getReferralHistory
102
171
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
@@ -0,0 +1,29 @@
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 AddReferralRequest {
15
+ caseId?: string;
16
+ referralEvent?: AddReferralRequest.ReferralEventEnum;
17
+ referrerUserId?: number;
18
+ }
19
+ export namespace AddReferralRequest {
20
+ export type ReferralEventEnum = 'CASE_BOOKING' | 'CASE_MATCH' | 'INVITE' | 'REGISTRATION';
21
+ export const ReferralEventEnum = {
22
+ CaseBooking: 'CASE_BOOKING' as ReferralEventEnum,
23
+ CaseMatch: 'CASE_MATCH' as ReferralEventEnum,
24
+ Invite: 'INVITE' as ReferralEventEnum,
25
+ Registration: 'REGISTRATION' as ReferralEventEnum
26
+ };
27
+ }
28
+
29
+
@@ -21,6 +21,7 @@ export * from './addNewCaseMessageRequest';
21
21
  export * from './addNoteToPhoneLeadRequest';
22
22
  export * from './addPenaltyRequest';
23
23
  export * from './addRedirectUrlRequest';
24
+ export * from './addReferralRequest';
24
25
  export * from './addReviewRequest';
25
26
  export * from './addViolationRequest';
26
27
  export * from './addViolationResponse';
@@ -470,7 +471,9 @@ export * from './noteEntity';
470
471
  export * from './noteModel';
471
472
  export * from './notificationEvent';
472
473
  export * from './notificationEvents';
474
+ export * from './oCRCourtModel';
473
475
  export * from './oCRPredictionCaseResponse';
476
+ export * from './oCRViolationModel';
474
477
  export * from './otherCase';
475
478
  export * from './outgoingContactDomain';
476
479
  export * from './paymentPlanTypeModel';
@@ -0,0 +1,23 @@
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 OCRCourtModel {
15
+ city?: string;
16
+ countyName?: string;
17
+ courtId?: number;
18
+ courtName?: string;
19
+ courtNameAdditional?: string;
20
+ regionCode?: string;
21
+ timeZoneName?: string;
22
+ }
23
+
@@ -11,6 +11,8 @@
11
11
  */
12
12
  import { Violation } from './violation';
13
13
  import { ConfidenceField } from './confidenceField';
14
+ import { OCRCourtModel } from './oCRCourtModel';
15
+ import { OCRViolationModel } from './oCRViolationModel';
14
16
 
15
17
 
16
18
  export interface OCRPredictionCaseResponse {
@@ -32,6 +34,8 @@ export interface OCRPredictionCaseResponse {
32
34
  driversState?: ConfidenceField;
33
35
  driversStreetAddress?: ConfidenceField;
34
36
  driversZip?: ConfidenceField;
37
+ eligibleCourtModels?: Array<OCRCourtModel>;
38
+ eligibleViolationModels?: Array<OCRViolationModel>;
35
39
  infractionNumber?: ConfidenceField;
36
40
  infractionType?: ConfidenceField;
37
41
  leaOri?: ConfidenceField;
@@ -0,0 +1,85 @@
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 OCRViolationModel {
15
+ classDescription?: string;
16
+ criminal?: boolean;
17
+ violationClassification?: OCRViolationModel.ViolationClassificationEnum;
18
+ violationDescription?: string;
19
+ violationId?: number;
20
+ wobblerToCriminal?: boolean;
21
+ }
22
+ export namespace OCRViolationModel {
23
+ export type ViolationClassificationEnum = 'CLASS_1_FELONY' | 'CLASS_1_MISDEMEANOR' | 'CLASS_2_FELONY' | 'CLASS_2_MISDEMEANOR' | 'CLASS_3_FELONY' | 'CLASS_3_MISDEMEANOR' | 'CLASS_4_FELONY' | 'CLASS_4_MISDEMEANOR' | 'CLASS_5_FELONY' | 'CLASS_6_FELONY' | 'CLASS_A1_MISDEMEANOR' | 'CLASS_A_FELONY' | 'CLASS_A_INFRACTION' | 'CLASS_A_MISDEMEANOR' | 'CLASS_A_VIOLATION' | 'CLASS_B_FELONY' | 'CLASS_B_INFRACTION' | 'CLASS_B_MISDEMEANOR' | 'CLASS_B_VIOLATION' | 'CLASS_C_FELONY' | 'CLASS_C_INFRACTION' | 'CLASS_C_MISDEMEANOR' | 'CLASS_C_VIOLATION' | 'CLASS_D_FELONY' | 'CLASS_D_MISDEMEANOR' | 'CLASS_D_VIOLATION' | 'CLASS_E_FELONY' | 'CLASS_F_FELONY' | 'CLASS_H_FELONY' | 'DISORDERLY_PERSONS_OFFENSE' | 'FELONY' | 'FELONY_1ST_DEGREE' | 'FELONY_2ND_DEGREE' | 'FELONY_3RD_DEGREE' | 'FELONY_4TH_DEGREE' | 'FELONY_5TH_DEGREE' | 'GROSS_MISDEMEANOR' | 'HIGH_AND_AGGRAVATED_MISDEMEANOR' | 'INFRACTION' | 'LEVEL_4_FELONY' | 'LEVEL_5_FELONY' | 'LEVEL_6_FELONY' | 'MINOR_MISDEMEANOR' | 'MISDEMEANOR' | 'MISDEMEANOR_1ST_DEGREE' | 'MISDEMEANOR_2ND_DEGREE' | 'MISDEMEANOR_3RD_DEGREE' | 'MISDEMEANOR_4TH_DEGREE' | 'MISDEMEANOR_WITH_REFUND' | 'NON_MOVING' | 'NON_REPORTABLE' | 'PETTY_MISDEMEANOR' | 'QUASI_CRIMINAL' | 'SUMMARY_OFFENSE' | 'SUMMARY_OFFENSE_NO_REFUND' | 'WOBBLER_TO_FELONY' | 'WOBBLER_TO_MISDEMEANOR';
24
+ export const ViolationClassificationEnum = {
25
+ Class1Felony: 'CLASS_1_FELONY' as ViolationClassificationEnum,
26
+ Class1Misdemeanor: 'CLASS_1_MISDEMEANOR' as ViolationClassificationEnum,
27
+ Class2Felony: 'CLASS_2_FELONY' as ViolationClassificationEnum,
28
+ Class2Misdemeanor: 'CLASS_2_MISDEMEANOR' as ViolationClassificationEnum,
29
+ Class3Felony: 'CLASS_3_FELONY' as ViolationClassificationEnum,
30
+ Class3Misdemeanor: 'CLASS_3_MISDEMEANOR' as ViolationClassificationEnum,
31
+ Class4Felony: 'CLASS_4_FELONY' as ViolationClassificationEnum,
32
+ Class4Misdemeanor: 'CLASS_4_MISDEMEANOR' as ViolationClassificationEnum,
33
+ Class5Felony: 'CLASS_5_FELONY' as ViolationClassificationEnum,
34
+ Class6Felony: 'CLASS_6_FELONY' as ViolationClassificationEnum,
35
+ ClassA1Misdemeanor: 'CLASS_A1_MISDEMEANOR' as ViolationClassificationEnum,
36
+ ClassAFelony: 'CLASS_A_FELONY' as ViolationClassificationEnum,
37
+ ClassAInfraction: 'CLASS_A_INFRACTION' as ViolationClassificationEnum,
38
+ ClassAMisdemeanor: 'CLASS_A_MISDEMEANOR' as ViolationClassificationEnum,
39
+ ClassAViolation: 'CLASS_A_VIOLATION' as ViolationClassificationEnum,
40
+ ClassBFelony: 'CLASS_B_FELONY' as ViolationClassificationEnum,
41
+ ClassBInfraction: 'CLASS_B_INFRACTION' as ViolationClassificationEnum,
42
+ ClassBMisdemeanor: 'CLASS_B_MISDEMEANOR' as ViolationClassificationEnum,
43
+ ClassBViolation: 'CLASS_B_VIOLATION' as ViolationClassificationEnum,
44
+ ClassCFelony: 'CLASS_C_FELONY' as ViolationClassificationEnum,
45
+ ClassCInfraction: 'CLASS_C_INFRACTION' as ViolationClassificationEnum,
46
+ ClassCMisdemeanor: 'CLASS_C_MISDEMEANOR' as ViolationClassificationEnum,
47
+ ClassCViolation: 'CLASS_C_VIOLATION' as ViolationClassificationEnum,
48
+ ClassDFelony: 'CLASS_D_FELONY' as ViolationClassificationEnum,
49
+ ClassDMisdemeanor: 'CLASS_D_MISDEMEANOR' as ViolationClassificationEnum,
50
+ ClassDViolation: 'CLASS_D_VIOLATION' as ViolationClassificationEnum,
51
+ ClassEFelony: 'CLASS_E_FELONY' as ViolationClassificationEnum,
52
+ ClassFFelony: 'CLASS_F_FELONY' as ViolationClassificationEnum,
53
+ ClassHFelony: 'CLASS_H_FELONY' as ViolationClassificationEnum,
54
+ DisorderlyPersonsOffense: 'DISORDERLY_PERSONS_OFFENSE' as ViolationClassificationEnum,
55
+ Felony: 'FELONY' as ViolationClassificationEnum,
56
+ Felony1StDegree: 'FELONY_1ST_DEGREE' as ViolationClassificationEnum,
57
+ Felony2NdDegree: 'FELONY_2ND_DEGREE' as ViolationClassificationEnum,
58
+ Felony3RdDegree: 'FELONY_3RD_DEGREE' as ViolationClassificationEnum,
59
+ Felony4ThDegree: 'FELONY_4TH_DEGREE' as ViolationClassificationEnum,
60
+ Felony5ThDegree: 'FELONY_5TH_DEGREE' as ViolationClassificationEnum,
61
+ GrossMisdemeanor: 'GROSS_MISDEMEANOR' as ViolationClassificationEnum,
62
+ HighAndAggravatedMisdemeanor: 'HIGH_AND_AGGRAVATED_MISDEMEANOR' as ViolationClassificationEnum,
63
+ Infraction: 'INFRACTION' as ViolationClassificationEnum,
64
+ Level4Felony: 'LEVEL_4_FELONY' as ViolationClassificationEnum,
65
+ Level5Felony: 'LEVEL_5_FELONY' as ViolationClassificationEnum,
66
+ Level6Felony: 'LEVEL_6_FELONY' as ViolationClassificationEnum,
67
+ MinorMisdemeanor: 'MINOR_MISDEMEANOR' as ViolationClassificationEnum,
68
+ Misdemeanor: 'MISDEMEANOR' as ViolationClassificationEnum,
69
+ Misdemeanor1StDegree: 'MISDEMEANOR_1ST_DEGREE' as ViolationClassificationEnum,
70
+ Misdemeanor2NdDegree: 'MISDEMEANOR_2ND_DEGREE' as ViolationClassificationEnum,
71
+ Misdemeanor3RdDegree: 'MISDEMEANOR_3RD_DEGREE' as ViolationClassificationEnum,
72
+ Misdemeanor4ThDegree: 'MISDEMEANOR_4TH_DEGREE' as ViolationClassificationEnum,
73
+ MisdemeanorWithRefund: 'MISDEMEANOR_WITH_REFUND' as ViolationClassificationEnum,
74
+ NonMoving: 'NON_MOVING' as ViolationClassificationEnum,
75
+ NonReportable: 'NON_REPORTABLE' as ViolationClassificationEnum,
76
+ PettyMisdemeanor: 'PETTY_MISDEMEANOR' as ViolationClassificationEnum,
77
+ QuasiCriminal: 'QUASI_CRIMINAL' as ViolationClassificationEnum,
78
+ SummaryOffense: 'SUMMARY_OFFENSE' as ViolationClassificationEnum,
79
+ SummaryOffenseNoRefund: 'SUMMARY_OFFENSE_NO_REFUND' as ViolationClassificationEnum,
80
+ WobblerToFelony: 'WOBBLER_TO_FELONY' as ViolationClassificationEnum,
81
+ WobblerToMisdemeanor: 'WOBBLER_TO_MISDEMEANOR' as ViolationClassificationEnum
82
+ };
83
+ }
84
+
85
+
@@ -11559,6 +11559,43 @@ angular.module('otrBackendService', [])
11559
11559
 
11560
11560
  return deferred.promise;
11561
11561
  };
11562
+ /**
11563
+ * addReferral
11564
+ * @method
11565
+ * @name OtrService#addReferralUsingPOST
11566
+ * @param {object} parameters - method options and parameters
11567
+ * @param {} parameters.request - request
11568
+ */
11569
+ OtrService.prototype.addReferralUsingPOST = function(parameters) {
11570
+ if (parameters === undefined) {
11571
+ parameters = {};
11572
+ }
11573
+ var deferred = $q.defer();
11574
+ var domain = this.domain,
11575
+ path = '/api/v1/referrals';
11576
+ var body = {},
11577
+ queryParameters = {},
11578
+ headers = {},
11579
+ form = {};
11580
+
11581
+ headers['Accept'] = ['application/json'];
11582
+ headers['Content-Type'] = ['application/json'];
11583
+
11584
+ if (parameters['request'] !== undefined) {
11585
+ body = parameters['request'];
11586
+ }
11587
+
11588
+ if (parameters['request'] === undefined) {
11589
+ deferred.reject(new Error('Missing required parameter: request'));
11590
+ return deferred.promise;
11591
+ }
11592
+
11593
+ queryParameters = mergeQueryParams(parameters, queryParameters);
11594
+
11595
+ this.request('POST', domain + path, parameters, body, headers, queryParameters, form, deferred);
11596
+
11597
+ return deferred.promise;
11598
+ };
11562
11599
  /**
11563
11600
  * getReferralCodes
11564
11601
  * @method