@otr-app/shared-backend-generated-client 2.3.282 → 2.4.0

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 (37) hide show
  1. package/dist/angular/.openapi-generator/FILES +1 -0
  2. package/dist/angular/api/lawfirmController.service.ts +4 -4
  3. package/dist/angular/model/lawfirmLeadDomain.ts +2 -6
  4. package/dist/typescript/.openapi-generator/VERSION +1 -1
  5. package/dist/typescript/api/LawfirmControllerApi.d.ts +1 -1
  6. package/dist/typescript/api/api.js +5 -1
  7. package/dist/typescript/index.js +5 -1
  8. package/dist/typescript/model/LawfirmLeadDomain.d.ts +1 -5
  9. package/dist/typescript/model/LawfirmLeadDomain.js +0 -4
  10. package/dist/typescript/model/models.js +5 -1
  11. package/package.json +1 -1
  12. package/dist/angular/api/trafficViolationController.service.ts +0 -504
  13. package/dist/angular/api/watchlistController.service.ts +0 -238
  14. package/dist/angular/model/acceptCaseCounterRequest.ts +0 -21
  15. package/dist/angular/model/caseDomain.ts +0 -108
  16. package/dist/angular/model/caseDomainReq.ts +0 -108
  17. package/dist/angular/model/caseDomainRes.ts +0 -108
  18. package/dist/angular/model/citationDomain.ts +0 -134
  19. package/dist/angular/model/citationDomainReq.ts +0 -134
  20. package/dist/angular/model/citationDomainRes.ts +0 -134
  21. package/dist/angular/model/coachingCardEntity.ts +0 -24
  22. package/dist/angular/model/contactLoopWebhookRequest.ts +0 -27
  23. package/dist/angular/model/externalContentVoteModel.ts +0 -19
  24. package/dist/angular/model/externalTicketSiteOutput.ts +0 -18
  25. package/dist/angular/model/externalUserContentVoteModel.ts +0 -30
  26. package/dist/angular/model/getCitationsResponse.ts +0 -18
  27. package/dist/angular/model/getExternalContentUserVotesResponse.ts +0 -18
  28. package/dist/angular/model/getExternalTicketModel.ts +0 -30
  29. package/dist/angular/model/getExternalTicketsResponse.ts +0 -29
  30. package/dist/angular/model/lawfirmCaseDomain.ts +0 -51
  31. package/dist/angular/model/lawfirmCaseDomainReq.ts +0 -51
  32. package/dist/angular/model/lawfirmCaseDomainRes.ts +0 -51
  33. package/dist/angular/model/listBillingSubscribersRequest.ts +0 -17
  34. package/dist/angular/model/trafficViolationTypeDomain.ts +0 -89
  35. package/dist/angular/model/userWatchlistsResponseModel.ts +0 -19
  36. package/dist/angular/model/watchlistItemsRequest.ts +0 -19
  37. package/dist/angular/model/workflowStateResponse.ts +0 -19
@@ -1,504 +0,0 @@
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 { AddViolationRequest } from '../model/addViolationRequest';
23
- // @ts-ignore
24
- import { AddViolationResponse } from '../model/addViolationResponse';
25
- // @ts-ignore
26
- import { GetRegionsWithViolationsResponse } from '../model/getRegionsWithViolationsResponse';
27
- // @ts-ignore
28
- import { GetTrafficViolationTypesResponse } from '../model/getTrafficViolationTypesResponse';
29
- // @ts-ignore
30
- import { ListViolationClassificationResponse } from '../model/listViolationClassificationResponse';
31
- // @ts-ignore
32
- import { UpdateViolationRequest } from '../model/updateViolationRequest';
33
-
34
- // @ts-ignore
35
- import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
36
- import { Configuration } from '../configuration';
37
-
38
-
39
-
40
- @Injectable({
41
- providedIn: 'root'
42
- })
43
- export class TrafficViolationControllerService {
44
-
45
- protected basePath = 'http://otr-backend-service-us-devo.offtherecord.com';
46
- public defaultHeaders = new HttpHeaders();
47
- public configuration = new Configuration();
48
- public encoder: HttpParameterCodec;
49
-
50
- constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) {
51
- if (configuration) {
52
- this.configuration = configuration;
53
- }
54
- if (typeof this.configuration.basePath !== 'string') {
55
- if (Array.isArray(basePath) && basePath.length > 0) {
56
- basePath = basePath[0];
57
- }
58
-
59
- if (typeof basePath !== 'string') {
60
- basePath = this.basePath;
61
- }
62
- this.configuration.basePath = basePath;
63
- }
64
- this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
65
- }
66
-
67
-
68
- // @ts-ignore
69
- private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
70
- if (typeof value === "object" && value instanceof Date === false) {
71
- httpParams = this.addToHttpParamsRecursive(httpParams, value);
72
- } else {
73
- httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
74
- }
75
- return httpParams;
76
- }
77
-
78
- private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams {
79
- if (value == null) {
80
- return httpParams;
81
- }
82
-
83
- if (typeof value === "object") {
84
- if (Array.isArray(value)) {
85
- (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
86
- } else if (value instanceof Date) {
87
- if (key != null) {
88
- httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10));
89
- } else {
90
- throw Error("key may not be null if value is Date");
91
- }
92
- } else {
93
- Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive(
94
- httpParams, value[k], key != null ? `${key}.${k}` : k));
95
- }
96
- } else if (key != null) {
97
- httpParams = httpParams.append(key, value);
98
- } else {
99
- throw Error("key may not be null if value is not object or array");
100
- }
101
- return httpParams;
102
- }
103
-
104
- /**
105
- * addViolation
106
- * @param isLive isLive
107
- * @param request request
108
- * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
109
- * @param reportProgress flag to report request and response progress.
110
- */
111
- public addViolationUsingPOST(isLive: boolean, request: AddViolationRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<AddViolationResponse>;
112
- public addViolationUsingPOST(isLive: boolean, request: AddViolationRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<HttpResponse<AddViolationResponse>>;
113
- public addViolationUsingPOST(isLive: boolean, request: AddViolationRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<HttpEvent<AddViolationResponse>>;
114
- public addViolationUsingPOST(isLive: boolean, request: AddViolationRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<any> {
115
- if (isLive === null || isLive === undefined) {
116
- throw new Error('Required parameter isLive was null or undefined when calling addViolationUsingPOST.');
117
- }
118
- if (request === null || request === undefined) {
119
- throw new Error('Required parameter request was null or undefined when calling addViolationUsingPOST.');
120
- }
121
-
122
- let localVarQueryParameters = new HttpParams({encoder: this.encoder});
123
- if (isLive !== undefined && isLive !== null) {
124
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
125
- <any>isLive, 'isLive');
126
- }
127
-
128
- let localVarHeaders = this.defaultHeaders;
129
-
130
- let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
131
- if (localVarHttpHeaderAcceptSelected === undefined) {
132
- // to determine the Accept header
133
- const httpHeaderAccepts: string[] = [
134
- '*/*'
135
- ];
136
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
137
- }
138
- if (localVarHttpHeaderAcceptSelected !== undefined) {
139
- localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
140
- }
141
-
142
- let localVarHttpContext: HttpContext | undefined = options && options.context;
143
- if (localVarHttpContext === undefined) {
144
- localVarHttpContext = new HttpContext();
145
- }
146
-
147
-
148
- // to determine the Content-Type header
149
- const consumes: string[] = [
150
- 'application/json'
151
- ];
152
- const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
153
- if (httpContentTypeSelected !== undefined) {
154
- localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
155
- }
156
-
157
- let responseType_: 'text' | 'json' | 'blob' = 'json';
158
- if (localVarHttpHeaderAcceptSelected) {
159
- if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
160
- responseType_ = 'text';
161
- } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
162
- responseType_ = 'json';
163
- } else {
164
- responseType_ = 'blob';
165
- }
166
- }
167
-
168
- let localVarPath = `/api/v1/violations`;
169
- return this.httpClient.request<AddViolationResponse>('post', `${this.configuration.basePath}${localVarPath}`,
170
- {
171
- context: localVarHttpContext,
172
- body: request,
173
- params: localVarQueryParameters,
174
- responseType: <any>responseType_,
175
- withCredentials: this.configuration.withCredentials,
176
- headers: localVarHeaders,
177
- observe: observe,
178
- reportProgress: reportProgress
179
- }
180
- );
181
- }
182
-
183
- /**
184
- * deleteViolation
185
- * @param violationId violationId
186
- * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
187
- * @param reportProgress flag to report request and response progress.
188
- */
189
- public deleteViolationUsingDELETE(violationId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<any>;
190
- public deleteViolationUsingDELETE(violationId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<HttpResponse<any>>;
191
- public deleteViolationUsingDELETE(violationId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<HttpEvent<any>>;
192
- public deleteViolationUsingDELETE(violationId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<any> {
193
- if (violationId === null || violationId === undefined) {
194
- throw new Error('Required parameter violationId was null or undefined when calling deleteViolationUsingDELETE.');
195
- }
196
-
197
- let localVarHeaders = this.defaultHeaders;
198
-
199
- let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
200
- if (localVarHttpHeaderAcceptSelected === undefined) {
201
- // to determine the Accept header
202
- const httpHeaderAccepts: string[] = [
203
- ];
204
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
205
- }
206
- if (localVarHttpHeaderAcceptSelected !== undefined) {
207
- localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
208
- }
209
-
210
- let localVarHttpContext: HttpContext | undefined = options && options.context;
211
- if (localVarHttpContext === undefined) {
212
- localVarHttpContext = new HttpContext();
213
- }
214
-
215
-
216
- let responseType_: 'text' | 'json' | 'blob' = 'json';
217
- if (localVarHttpHeaderAcceptSelected) {
218
- if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
219
- responseType_ = 'text';
220
- } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
221
- responseType_ = 'json';
222
- } else {
223
- responseType_ = 'blob';
224
- }
225
- }
226
-
227
- let localVarPath = `/api/v1/violations/${this.configuration.encodeParam({name: "violationId", value: violationId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`;
228
- return this.httpClient.request<any>('delete', `${this.configuration.basePath}${localVarPath}`,
229
- {
230
- context: localVarHttpContext,
231
- responseType: <any>responseType_,
232
- withCredentials: this.configuration.withCredentials,
233
- headers: localVarHeaders,
234
- observe: observe,
235
- reportProgress: reportProgress
236
- }
237
- );
238
- }
239
-
240
- /**
241
- * getRegionsWithViolations
242
- * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
243
- * @param reportProgress flag to report request and response progress.
244
- */
245
- public getRegionsWithViolationsUsingGET(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<GetRegionsWithViolationsResponse>;
246
- public getRegionsWithViolationsUsingGET(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<HttpResponse<GetRegionsWithViolationsResponse>>;
247
- public getRegionsWithViolationsUsingGET(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<HttpEvent<GetRegionsWithViolationsResponse>>;
248
- public getRegionsWithViolationsUsingGET(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<any> {
249
-
250
- let localVarHeaders = this.defaultHeaders;
251
-
252
- let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
253
- if (localVarHttpHeaderAcceptSelected === undefined) {
254
- // to determine the Accept header
255
- const httpHeaderAccepts: string[] = [
256
- '*/*'
257
- ];
258
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
259
- }
260
- if (localVarHttpHeaderAcceptSelected !== undefined) {
261
- localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
262
- }
263
-
264
- let localVarHttpContext: HttpContext | undefined = options && options.context;
265
- if (localVarHttpContext === undefined) {
266
- localVarHttpContext = new HttpContext();
267
- }
268
-
269
-
270
- let responseType_: 'text' | 'json' | 'blob' = 'json';
271
- if (localVarHttpHeaderAcceptSelected) {
272
- if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
273
- responseType_ = 'text';
274
- } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
275
- responseType_ = 'json';
276
- } else {
277
- responseType_ = 'blob';
278
- }
279
- }
280
-
281
- let localVarPath = `/api/v1/violations/region-availability`;
282
- return this.httpClient.request<GetRegionsWithViolationsResponse>('get', `${this.configuration.basePath}${localVarPath}`,
283
- {
284
- context: localVarHttpContext,
285
- responseType: <any>responseType_,
286
- withCredentials: this.configuration.withCredentials,
287
- headers: localVarHeaders,
288
- observe: observe,
289
- reportProgress: reportProgress
290
- }
291
- );
292
- }
293
-
294
- /**
295
- * getTrafficViolationTypes
296
- * @param audience audience
297
- * @param flavor flavor
298
- * @param includePenalties includePenalties
299
- * @param state state
300
- * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
301
- * @param reportProgress flag to report request and response progress.
302
- */
303
- public getTrafficViolationTypesUsingGET(audience?: string, flavor?: string, includePenalties?: boolean, state?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<GetTrafficViolationTypesResponse>;
304
- public getTrafficViolationTypesUsingGET(audience?: string, flavor?: string, includePenalties?: boolean, state?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<HttpResponse<GetTrafficViolationTypesResponse>>;
305
- public getTrafficViolationTypesUsingGET(audience?: string, flavor?: string, includePenalties?: boolean, state?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<HttpEvent<GetTrafficViolationTypesResponse>>;
306
- public getTrafficViolationTypesUsingGET(audience?: string, flavor?: string, includePenalties?: boolean, state?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<any> {
307
-
308
- let localVarQueryParameters = new HttpParams({encoder: this.encoder});
309
- if (audience !== undefined && audience !== null) {
310
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
311
- <any>audience, 'audience');
312
- }
313
- if (flavor !== undefined && flavor !== null) {
314
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
315
- <any>flavor, 'flavor');
316
- }
317
- if (includePenalties !== undefined && includePenalties !== null) {
318
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
319
- <any>includePenalties, 'includePenalties');
320
- }
321
- if (state !== undefined && state !== null) {
322
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
323
- <any>state, 'state');
324
- }
325
-
326
- let localVarHeaders = this.defaultHeaders;
327
-
328
- let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
329
- if (localVarHttpHeaderAcceptSelected === undefined) {
330
- // to determine the Accept header
331
- const httpHeaderAccepts: string[] = [
332
- '*/*'
333
- ];
334
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
335
- }
336
- if (localVarHttpHeaderAcceptSelected !== undefined) {
337
- localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
338
- }
339
-
340
- let localVarHttpContext: HttpContext | undefined = options && options.context;
341
- if (localVarHttpContext === undefined) {
342
- localVarHttpContext = new HttpContext();
343
- }
344
-
345
-
346
- let responseType_: 'text' | 'json' | 'blob' = 'json';
347
- if (localVarHttpHeaderAcceptSelected) {
348
- if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
349
- responseType_ = 'text';
350
- } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
351
- responseType_ = 'json';
352
- } else {
353
- responseType_ = 'blob';
354
- }
355
- }
356
-
357
- let localVarPath = `/api/v1/violations`;
358
- return this.httpClient.request<GetTrafficViolationTypesResponse>('get', `${this.configuration.basePath}${localVarPath}`,
359
- {
360
- context: localVarHttpContext,
361
- params: localVarQueryParameters,
362
- responseType: <any>responseType_,
363
- withCredentials: this.configuration.withCredentials,
364
- headers: localVarHeaders,
365
- observe: observe,
366
- reportProgress: reportProgress
367
- }
368
- );
369
- }
370
-
371
- /**
372
- * listViolationClassifications
373
- * @param regionCode regionCode
374
- * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
375
- * @param reportProgress flag to report request and response progress.
376
- */
377
- public listViolationClassificationsUsingGET(regionCode?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<ListViolationClassificationResponse>;
378
- public listViolationClassificationsUsingGET(regionCode?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<HttpResponse<ListViolationClassificationResponse>>;
379
- public listViolationClassificationsUsingGET(regionCode?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<HttpEvent<ListViolationClassificationResponse>>;
380
- public listViolationClassificationsUsingGET(regionCode?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<any> {
381
-
382
- let localVarQueryParameters = new HttpParams({encoder: this.encoder});
383
- if (regionCode !== undefined && regionCode !== null) {
384
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
385
- <any>regionCode, 'regionCode');
386
- }
387
-
388
- let localVarHeaders = this.defaultHeaders;
389
-
390
- let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
391
- if (localVarHttpHeaderAcceptSelected === undefined) {
392
- // to determine the Accept header
393
- const httpHeaderAccepts: string[] = [
394
- '*/*'
395
- ];
396
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
397
- }
398
- if (localVarHttpHeaderAcceptSelected !== undefined) {
399
- localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
400
- }
401
-
402
- let localVarHttpContext: HttpContext | undefined = options && options.context;
403
- if (localVarHttpContext === undefined) {
404
- localVarHttpContext = new HttpContext();
405
- }
406
-
407
-
408
- let responseType_: 'text' | 'json' | 'blob' = 'json';
409
- if (localVarHttpHeaderAcceptSelected) {
410
- if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
411
- responseType_ = 'text';
412
- } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
413
- responseType_ = 'json';
414
- } else {
415
- responseType_ = 'blob';
416
- }
417
- }
418
-
419
- let localVarPath = `/api/v1/violations/classifications`;
420
- return this.httpClient.request<ListViolationClassificationResponse>('get', `${this.configuration.basePath}${localVarPath}`,
421
- {
422
- context: localVarHttpContext,
423
- params: localVarQueryParameters,
424
- responseType: <any>responseType_,
425
- withCredentials: this.configuration.withCredentials,
426
- headers: localVarHeaders,
427
- observe: observe,
428
- reportProgress: reportProgress
429
- }
430
- );
431
- }
432
-
433
- /**
434
- * updateViolation
435
- * @param violationId violationId
436
- * @param request request
437
- * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
438
- * @param reportProgress flag to report request and response progress.
439
- */
440
- public updateViolationUsingPUT(violationId: number, request: UpdateViolationRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<any>;
441
- public updateViolationUsingPUT(violationId: number, request: UpdateViolationRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<HttpResponse<any>>;
442
- public updateViolationUsingPUT(violationId: number, request: UpdateViolationRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<HttpEvent<any>>;
443
- public updateViolationUsingPUT(violationId: number, request: UpdateViolationRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<any> {
444
- if (violationId === null || violationId === undefined) {
445
- throw new Error('Required parameter violationId was null or undefined when calling updateViolationUsingPUT.');
446
- }
447
- if (request === null || request === undefined) {
448
- throw new Error('Required parameter request was null or undefined when calling updateViolationUsingPUT.');
449
- }
450
-
451
- let localVarHeaders = this.defaultHeaders;
452
-
453
- let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
454
- if (localVarHttpHeaderAcceptSelected === undefined) {
455
- // to determine the Accept header
456
- const httpHeaderAccepts: string[] = [
457
- ];
458
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
459
- }
460
- if (localVarHttpHeaderAcceptSelected !== undefined) {
461
- localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
462
- }
463
-
464
- let localVarHttpContext: HttpContext | undefined = options && options.context;
465
- if (localVarHttpContext === undefined) {
466
- localVarHttpContext = new HttpContext();
467
- }
468
-
469
-
470
- // to determine the Content-Type header
471
- const consumes: string[] = [
472
- 'application/json'
473
- ];
474
- const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
475
- if (httpContentTypeSelected !== undefined) {
476
- localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
477
- }
478
-
479
- let responseType_: 'text' | 'json' | 'blob' = 'json';
480
- if (localVarHttpHeaderAcceptSelected) {
481
- if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
482
- responseType_ = 'text';
483
- } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
484
- responseType_ = 'json';
485
- } else {
486
- responseType_ = 'blob';
487
- }
488
- }
489
-
490
- let localVarPath = `/api/v1/violations/${this.configuration.encodeParam({name: "violationId", value: violationId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`;
491
- return this.httpClient.request<any>('put', `${this.configuration.basePath}${localVarPath}`,
492
- {
493
- context: localVarHttpContext,
494
- body: request,
495
- responseType: <any>responseType_,
496
- withCredentials: this.configuration.withCredentials,
497
- headers: localVarHeaders,
498
- observe: observe,
499
- reportProgress: reportProgress
500
- }
501
- );
502
- }
503
-
504
- }