@otr-app/shared-backend-generated-client 2.5.120 → 2.5.121

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.
@@ -432,7 +432,6 @@ model/getCitationPhoneLeadsResponse.ts
432
432
  model/getCitationResponse.ts
433
433
  model/getCitationsWithMissingFieldsRequest.ts
434
434
  model/getCitationsWithMissingFieldsResponse.ts
435
- model/getClientCasesResponse.ts
436
435
  model/getClientConfirmedUnpaidCasesResponse.ts
437
436
  model/getCoachingCardCategoriesResponse.ts
438
437
  model/getCompetitionResponseModel.ts
@@ -524,7 +523,6 @@ model/getTrafficViolationTypesResponse.ts
524
523
  model/getUserAddressesResponse.ts
525
524
  model/getUserByEmailRequest.ts
526
525
  model/getUserByEmailResponse.ts
527
- model/getUserCasesResponse.ts
528
526
  model/getUserDetailsResponse.ts
529
527
  model/getUserRefLinksResponse.ts
530
528
  model/getUserReferralSourceTypesResponse.ts
@@ -18,10 +18,6 @@ import { HttpClient, HttpHeaders, HttpParams,
18
18
  import { CustomHttpParameterCodec } from '../encoder';
19
19
  import { Observable } from 'rxjs';
20
20
 
21
- // @ts-ignore
22
- import { GetClientCasesResponse } from '../model/getClientCasesResponse';
23
- // @ts-ignore
24
- import { GetUserCasesResponse } from '../model/getUserCasesResponse';
25
21
  // @ts-ignore
26
22
  import { ListDashboardCasesResponse } from '../model/listDashboardCasesResponse';
27
23
 
@@ -95,124 +91,6 @@ export class ListCasesControllerService {
95
91
  return httpParams;
96
92
  }
97
93
 
98
- /**
99
- * getCasesForUser
100
- * @param userId userId
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
- * @deprecated
104
- */
105
- public getCasesForUserUsingGET(userId: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<GetClientCasesResponse>;
106
- public getCasesForUserUsingGET(userId: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<HttpResponse<GetClientCasesResponse>>;
107
- public getCasesForUserUsingGET(userId: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<HttpEvent<GetClientCasesResponse>>;
108
- public getCasesForUserUsingGET(userId: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<any> {
109
- if (userId === null || userId === undefined) {
110
- throw new Error('Required parameter userId was null or undefined when calling getCasesForUserUsingGET.');
111
- }
112
-
113
- let localVarHeaders = this.defaultHeaders;
114
-
115
- let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
116
- if (localVarHttpHeaderAcceptSelected === undefined) {
117
- // to determine the Accept header
118
- const httpHeaderAccepts: string[] = [
119
- '*/*'
120
- ];
121
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
122
- }
123
- if (localVarHttpHeaderAcceptSelected !== undefined) {
124
- localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
125
- }
126
-
127
- let localVarHttpContext: HttpContext | undefined = options && options.context;
128
- if (localVarHttpContext === undefined) {
129
- localVarHttpContext = new HttpContext();
130
- }
131
-
132
-
133
- let responseType_: 'text' | 'json' | 'blob' = 'json';
134
- if (localVarHttpHeaderAcceptSelected) {
135
- if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
136
- responseType_ = 'text';
137
- } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
138
- responseType_ = 'json';
139
- } else {
140
- responseType_ = 'blob';
141
- }
142
- }
143
-
144
- let localVarPath = `/api/v1/users/${this.configuration.encodeParam({name: "userId", value: userId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/cases`;
145
- return this.httpClient.request<GetClientCasesResponse>('get', `${this.configuration.basePath}${localVarPath}`,
146
- {
147
- context: localVarHttpContext,
148
- responseType: <any>responseType_,
149
- withCredentials: this.configuration.withCredentials,
150
- headers: localVarHeaders,
151
- observe: observe,
152
- reportProgress: reportProgress
153
- }
154
- );
155
- }
156
-
157
- /**
158
- * getUserCases
159
- * @param userId userId
160
- * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
161
- * @param reportProgress flag to report request and response progress.
162
- * @deprecated
163
- */
164
- public getUserCasesUsingGET(userId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<GetUserCasesResponse>;
165
- public getUserCasesUsingGET(userId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<HttpResponse<GetUserCasesResponse>>;
166
- public getUserCasesUsingGET(userId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<HttpEvent<GetUserCasesResponse>>;
167
- public getUserCasesUsingGET(userId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<any> {
168
- if (userId === null || userId === undefined) {
169
- throw new Error('Required parameter userId was null or undefined when calling getUserCasesUsingGET.');
170
- }
171
-
172
- let localVarHeaders = this.defaultHeaders;
173
-
174
- let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
175
- if (localVarHttpHeaderAcceptSelected === undefined) {
176
- // to determine the Accept header
177
- const httpHeaderAccepts: string[] = [
178
- '*/*'
179
- ];
180
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
181
- }
182
- if (localVarHttpHeaderAcceptSelected !== undefined) {
183
- localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
184
- }
185
-
186
- let localVarHttpContext: HttpContext | undefined = options && options.context;
187
- if (localVarHttpContext === undefined) {
188
- localVarHttpContext = new HttpContext();
189
- }
190
-
191
-
192
- let responseType_: 'text' | 'json' | 'blob' = 'json';
193
- if (localVarHttpHeaderAcceptSelected) {
194
- if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
195
- responseType_ = 'text';
196
- } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
197
- responseType_ = 'json';
198
- } else {
199
- responseType_ = 'blob';
200
- }
201
- }
202
-
203
- let localVarPath = `/api/v2/users/${this.configuration.encodeParam({name: "userId", value: userId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/cases`;
204
- return this.httpClient.request<GetUserCasesResponse>('get', `${this.configuration.basePath}${localVarPath}`,
205
- {
206
- context: localVarHttpContext,
207
- responseType: <any>responseType_,
208
- withCredentials: this.configuration.withCredentials,
209
- headers: localVarHeaders,
210
- observe: observe,
211
- reportProgress: reportProgress
212
- }
213
- );
214
- }
215
-
216
94
  /**
217
95
  * listDashboardCasesByPage
218
96
  * @param userId userId
@@ -306,7 +306,6 @@ export * from './getCitationPhoneLeadsResponse';
306
306
  export * from './getCitationResponse';
307
307
  export * from './getCitationsWithMissingFieldsRequest';
308
308
  export * from './getCitationsWithMissingFieldsResponse';
309
- export * from './getClientCasesResponse';
310
309
  export * from './getClientConfirmedUnpaidCasesResponse';
311
310
  export * from './getCoachingCardCategoriesResponse';
312
311
  export * from './getCompetitionResponseModel';
@@ -398,7 +397,6 @@ export * from './getTrafficViolationTypesResponse';
398
397
  export * from './getUserAddressesResponse';
399
398
  export * from './getUserByEmailRequest';
400
399
  export * from './getUserByEmailResponse';
401
- export * from './getUserCasesResponse';
402
400
  export * from './getUserDetailsResponse';
403
401
  export * from './getUserRefLinksResponse';
404
402
  export * from './getUserReferralSourceTypesResponse';
@@ -9,22 +9,15 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { ViolationPenaltyModel } from './violationPenaltyModel';
12
+ import { MatchCaseViolationPenaltyModel } from './matchCaseViolationPenaltyModel';
13
13
 
14
14
 
15
15
  export interface ViolationModel {
16
- classDescription?: string;
17
- criminal?: boolean;
18
- insuranceIncreasePercent?: number;
19
16
  isCriminal?: boolean;
20
- isMovingViolation?: boolean;
21
17
  isWobblerToCriminal?: boolean;
22
- penalties?: Array<ViolationPenaltyModel>;
18
+ penalties?: Array<MatchCaseViolationPenaltyModel>;
23
19
  trafficViolationDesc?: string;
24
20
  trafficViolationTypeId?: number;
25
- uniqueId?: string;
26
- userFriendlyName?: string;
27
- userFriendlyShortForm?: string;
28
21
  violationClassification?: ViolationModel.ViolationClassificationEnum;
29
22
  violationCode?: string;
30
23
  }
@@ -17018,40 +17018,6 @@ angular.module('otrBackendService', [])
17018
17018
 
17019
17019
  return deferred.promise;
17020
17020
  };
17021
- /**
17022
- * getCasesForUser
17023
- * @method
17024
- * @name OtrService#getCasesForUserUsingGET
17025
- * @param {object} parameters - method options and parameters
17026
- * @param {string} parameters.userId - userId
17027
- */
17028
- OtrService.prototype.getCasesForUserUsingGET = function(parameters) {
17029
- if (parameters === undefined) {
17030
- parameters = {};
17031
- }
17032
- var deferred = $q.defer();
17033
- var domain = this.domain,
17034
- path = '/api/v1/users/{userId}/cases';
17035
- var body = {},
17036
- queryParameters = {},
17037
- headers = {},
17038
- form = {};
17039
-
17040
- headers['Accept'] = ['*/*'];
17041
-
17042
- path = path.replace('{userId}', parameters['userId']);
17043
-
17044
- if (parameters['userId'] === undefined) {
17045
- deferred.reject(new Error('Missing required parameter: userId'));
17046
- return deferred.promise;
17047
- }
17048
-
17049
- queryParameters = mergeQueryParams(parameters, queryParameters);
17050
-
17051
- this.request('GET', domain + path, parameters, body, headers, queryParameters, form, deferred);
17052
-
17053
- return deferred.promise;
17054
- };
17055
17021
  /**
17056
17022
  * listContactTimeline
17057
17023
  * @method
@@ -19562,40 +19528,6 @@ angular.module('otrBackendService', [])
19562
19528
 
19563
19529
  return deferred.promise;
19564
19530
  };
19565
- /**
19566
- * getUserCases
19567
- * @method
19568
- * @name OtrService#getUserCasesUsingGET
19569
- * @param {object} parameters - method options and parameters
19570
- * @param {integer} parameters.userId - userId
19571
- */
19572
- OtrService.prototype.getUserCasesUsingGET = function(parameters) {
19573
- if (parameters === undefined) {
19574
- parameters = {};
19575
- }
19576
- var deferred = $q.defer();
19577
- var domain = this.domain,
19578
- path = '/api/v2/users/{userId}/cases';
19579
- var body = {},
19580
- queryParameters = {},
19581
- headers = {},
19582
- form = {};
19583
-
19584
- headers['Accept'] = ['*/*'];
19585
-
19586
- path = path.replace('{userId}', parameters['userId']);
19587
-
19588
- if (parameters['userId'] === undefined) {
19589
- deferred.reject(new Error('Missing required parameter: userId'));
19590
- return deferred.promise;
19591
- }
19592
-
19593
- queryParameters = mergeQueryParams(parameters, queryParameters);
19594
-
19595
- this.request('GET', domain + path, parameters, body, headers, queryParameters, form, deferred);
19596
-
19597
- return deferred.promise;
19598
- };
19599
19531
  /**
19600
19532
  * listDashboardCases
19601
19533
  * @method