@otr-app/shared-backend-generated-client 2.3.124 → 2.3.126

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 +11 -2
  2. package/dist/angular/api/api.ts +5 -3
  3. package/dist/angular/api/auditLogController.service.ts +170 -0
  4. package/dist/angular/api/watchlistsController.service.ts +243 -0
  5. package/dist/angular/api.module.ts +2 -1
  6. package/dist/angular/model/addressEntity.ts +47 -0
  7. package/dist/angular/model/auditLog.ts +29 -0
  8. package/dist/angular/model/caseItem.ts +65 -0
  9. package/dist/angular/model/citationAuditLog.ts +35 -0
  10. package/dist/angular/model/countyEntity.ts +76 -0
  11. package/dist/angular/model/courtEntity.ts +42 -0
  12. package/dist/angular/model/getCitationAuditLogsResponse.ts +19 -0
  13. package/dist/angular/model/lawfirmItem.ts +78 -0
  14. package/dist/angular/model/listUserWatchlistsResponse.ts +3 -2
  15. package/dist/angular/model/models.ts +9 -1
  16. package/dist/angular/model/userItem.ts +20 -0
  17. package/dist/angular/model/watchlistItemsModel.ts +13 -1
  18. package/dist/otrBackendService.js +54 -0
  19. package/dist/otrBackendService.min.js +5 -5
  20. package/dist/typescript/api/AuditLogControllerApi.d.ts +30 -0
  21. package/dist/typescript/api/AuditLogControllerApi.js +66 -0
  22. package/dist/typescript/api/AuditLogControllerApi.ts +73 -0
  23. package/dist/typescript/api/WatchlistsControllerApi.d.ts +37 -0
  24. package/dist/typescript/api/WatchlistsControllerApi.js +97 -0
  25. package/dist/typescript/api/WatchlistsControllerApi.ts +109 -0
  26. package/dist/typescript/api/api.d.ts +5 -3
  27. package/dist/typescript/api/api.js +5 -3
  28. package/dist/typescript/api/api.ts +5 -3
  29. package/dist/typescript/api.module.js +2 -1
  30. package/dist/typescript/api.module.ts +2 -1
  31. package/dist/typescript/model/AddressEntity.d.ts +42 -0
  32. package/dist/typescript/model/AddressEntity.js +30 -0
  33. package/dist/typescript/model/AddressEntity.ts +45 -0
  34. package/dist/typescript/model/AuditLog.d.ts +24 -0
  35. package/dist/typescript/model/AuditLog.js +22 -0
  36. package/dist/typescript/model/AuditLog.ts +28 -0
  37. package/dist/typescript/model/CaseItem.d.ts +60 -0
  38. package/dist/typescript/model/CaseItem.js +57 -0
  39. package/dist/typescript/model/CaseItem.ts +63 -0
  40. package/dist/typescript/model/CitationAuditLog.d.ts +29 -0
  41. package/dist/typescript/model/CitationAuditLog.js +26 -0
  42. package/dist/typescript/model/CitationAuditLog.ts +32 -0
  43. package/dist/typescript/model/CountyEntity.d.ts +71 -0
  44. package/dist/typescript/model/CountyEntity.js +71 -0
  45. package/dist/typescript/model/CountyEntity.ts +75 -0
  46. package/dist/typescript/model/CourtEntity.d.ts +36 -0
  47. package/dist/typescript/model/CourtEntity.js +28 -0
  48. package/dist/typescript/model/CourtEntity.ts +39 -0
  49. package/dist/typescript/model/GetCitationAuditLogsResponse.d.ts +16 -0
  50. package/dist/typescript/model/GetCitationAuditLogsResponse.js +13 -0
  51. package/dist/typescript/model/GetCitationAuditLogsResponse.ts +19 -0
  52. package/dist/typescript/model/LawfirmItem.d.ts +73 -0
  53. package/dist/typescript/model/LawfirmItem.js +71 -0
  54. package/dist/typescript/model/LawfirmItem.ts +77 -0
  55. package/dist/typescript/model/ListUserWatchlistsResponse.d.ts +2 -1
  56. package/dist/typescript/model/ListUserWatchlistsResponse.ts +2 -1
  57. package/dist/typescript/model/UserItem.d.ts +17 -0
  58. package/dist/typescript/model/UserItem.js +13 -0
  59. package/dist/typescript/model/UserItem.ts +21 -0
  60. package/dist/typescript/model/WatchlistItemsModel.d.ts +10 -1
  61. package/dist/typescript/model/WatchlistItemsModel.js +6 -0
  62. package/dist/typescript/model/WatchlistItemsModel.ts +9 -1
  63. package/dist/typescript/model/models.d.ts +9 -1
  64. package/dist/typescript/model/models.js +9 -1
  65. package/dist/typescript/model/models.ts +9 -1
  66. package/package.json +1 -1
@@ -8,6 +8,7 @@ api/alertNotificationController.service.ts
8
8
  api/api.ts
9
9
  api/appEventsController.service.ts
10
10
  api/auditLawfirmEventsController.service.ts
11
+ api/auditLogController.service.ts
11
12
  api/authenticationController.service.ts
12
13
  api/awsCredentialsController.service.ts
13
14
  api/blogWebhookController.service.ts
@@ -102,7 +103,7 @@ api/validationController.service.ts
102
103
  api/verificationController.service.ts
103
104
  api/violationController.service.ts
104
105
  api/violationPenaltyController.service.ts
105
- api/watchlistController.service.ts
106
+ api/watchlistsController.service.ts
106
107
  api/websocketMessageController.service.ts
107
108
  api/workflowStateController.service.ts
108
109
  configuration.ts
@@ -138,6 +139,7 @@ model/addViolationsToCitationRequest.ts
138
139
  model/addressDomain.ts
139
140
  model/addressDomainReq.ts
140
141
  model/addressDomainRes.ts
142
+ model/addressEntity.ts
141
143
  model/agentBookingStats.ts
142
144
  model/agentBookingsSummary.ts
143
145
  model/aggregateBySource.ts
@@ -150,6 +152,7 @@ model/appEventCreateRequest.ts
150
152
  model/appearanceAttorneyDomain.ts
151
153
  model/appleLoginRequest.ts
152
154
  model/assignCitationOwnerRequest.ts
155
+ model/auditLog.ts
153
156
  model/authorModel.ts
154
157
  model/authorizeChargeForCasePaymentRequest.ts
155
158
  model/authorizeChargeForCasePaymentResponse.ts
@@ -185,6 +188,7 @@ model/caseAlert.ts
185
188
  model/caseBookingsStats.ts
186
189
  model/caseChargeResponsePojo.ts
187
190
  model/caseCreationRequest.ts
191
+ model/caseItem.ts
188
192
  model/caseLineItemDomainReq.ts
189
193
  model/caseLineItemDomainRes.ts
190
194
  model/caseLineItemsSummary.ts
@@ -210,6 +214,7 @@ model/changeUserPasswordRequest.ts
210
214
  model/chargeFeeToLawfirmRequest.ts
211
215
  model/chargeFeeToLawfirmResponse.ts
212
216
  model/citationAuditEventModel.ts
217
+ model/citationAuditLog.ts
213
218
  model/citationInputRequest.ts
214
219
  model/citationModel.ts
215
220
  model/citationModelReq.ts
@@ -230,12 +235,14 @@ model/convertPdfToImageResponse.ts
230
235
  model/countryDomain.ts
231
236
  model/countryRegion.ts
232
237
  model/countyDomain.ts
238
+ model/countyEntity.ts
233
239
  model/courtCoverageCountyRecord.ts
234
240
  model/courtCoverageRecord.ts
235
241
  model/courtCoverageStateRecord.ts
236
242
  model/courtDomain.ts
237
243
  model/courtDomainReq.ts
238
244
  model/courtDomainRes.ts
245
+ model/courtEntity.ts
239
246
  model/courtInputRequest.ts
240
247
  model/courtResponseModel.ts
241
248
  model/coverageToRemove.ts
@@ -346,6 +353,7 @@ model/getCasesWithCoverageObtainedResponse.ts
346
353
  model/getCasesWithMissingLawfirmPayoutsResponse.ts
347
354
  model/getCasesWithOverduePaymentsResponse.ts
348
355
  model/getCasesWithUncapturedChargesRequest.ts
356
+ model/getCitationAuditLogsResponse.ts
349
357
  model/getCitationPhoneLeadsRequest.ts
350
358
  model/getCitationPhoneLeadsResponse.ts
351
359
  model/getCitationResponse.ts
@@ -479,6 +487,7 @@ model/lawfirmDocumentTemplate.ts
479
487
  model/lawfirmDocumentTemplateResponse.ts
480
488
  model/lawfirmFeeDomain.ts
481
489
  model/lawfirmInboxMessageDomain.ts
490
+ model/lawfirmItem.ts
482
491
  model/lawfirmLeadDomain.ts
483
492
  model/lawfirmPayoutDomain.ts
484
493
  model/lawfirmPictureRequest.ts
@@ -760,6 +769,7 @@ model/userDetails.ts
760
769
  model/userDomain.ts
761
770
  model/userDomainReq.ts
762
771
  model/userDomainRes.ts
772
+ model/userItem.ts
763
773
  model/userRefLinkDomain.ts
764
774
  model/userReferralSourceTypeModel.ts
765
775
  model/userRegistrationStats.ts
@@ -769,7 +779,6 @@ model/userSubscriptionPlanModelReq.ts
769
779
  model/userSubscriptionPlanModelRes.ts
770
780
  model/userToContact.ts
771
781
  model/userWatchlistsModel.ts
772
- model/userWatchlistsResponseModel.ts
773
782
  model/validateDirectMailRequest.ts
774
783
  model/validateDirectMailResponse.ts
775
784
  model/validateUserEmailResponse.ts
@@ -10,6 +10,8 @@ export * from './appEventsController.service';
10
10
  import { AppEventsControllerService } from './appEventsController.service';
11
11
  export * from './auditLawfirmEventsController.service';
12
12
  import { AuditLawfirmEventsControllerService } from './auditLawfirmEventsController.service';
13
+ export * from './auditLogController.service';
14
+ import { AuditLogControllerService } from './auditLogController.service';
13
15
  export * from './authenticationController.service';
14
16
  import { AuthenticationControllerService } from './authenticationController.service';
15
17
  export * from './awsCredentialsController.service';
@@ -198,10 +200,10 @@ export * from './violationController.service';
198
200
  import { ViolationControllerService } from './violationController.service';
199
201
  export * from './violationPenaltyController.service';
200
202
  import { ViolationPenaltyControllerService } from './violationPenaltyController.service';
201
- export * from './watchlistController.service';
202
- import { WatchlistControllerService } from './watchlistController.service';
203
+ export * from './watchlistsController.service';
204
+ import { WatchlistsControllerService } from './watchlistsController.service';
203
205
  export * from './websocketMessageController.service';
204
206
  import { WebsocketMessageControllerService } from './websocketMessageController.service';
205
207
  export * from './workflowStateController.service';
206
208
  import { WorkflowStateControllerService } from './workflowStateController.service';
207
- export const APIS = [ActionRequiredControllerService, ActivityFeedControllerService, AddressControllerService, AlertNotificationControllerService, AppEventsControllerService, AuditLawfirmEventsControllerService, AuthenticationControllerService, AwsCredentialsControllerService, BlogWebhookControllerService, BranchLinkControllerService, CaseActionsControllerService, CaseControllerService, CaseCreationControllerService, CaseNotesControllerService, CasePaymentControllerService, CaseReferralCodeControllerService, CaseRefundControllerService, CaseResolutionControllerService, CaseStatusControllerService, CaseTransferControllerService, CaseUserControllerService, 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, UrlRedirectControllerService, UserAccountControllerService, UserAuditControllerService, UserControllerService, UserPasswordControllerService, UserProfileControllerService, UserSearchControllerService, UserSettingsControllerService, UtilityControllerService, ValidationControllerService, VerificationControllerService, ViolationControllerService, ViolationPenaltyControllerService, WatchlistControllerService, WebsocketMessageControllerService, WorkflowStateControllerService];
209
+ export const APIS = [ActionRequiredControllerService, ActivityFeedControllerService, AddressControllerService, AlertNotificationControllerService, AppEventsControllerService, AuditLawfirmEventsControllerService, AuditLogControllerService, AuthenticationControllerService, AwsCredentialsControllerService, BlogWebhookControllerService, BranchLinkControllerService, CaseActionsControllerService, CaseControllerService, CaseCreationControllerService, CaseNotesControllerService, CasePaymentControllerService, CaseReferralCodeControllerService, CaseRefundControllerService, CaseResolutionControllerService, CaseStatusControllerService, CaseTransferControllerService, CaseUserControllerService, 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, UrlRedirectControllerService, UserAccountControllerService, UserAuditControllerService, UserControllerService, UserPasswordControllerService, UserProfileControllerService, UserSearchControllerService, UserSettingsControllerService, UtilityControllerService, ValidationControllerService, VerificationControllerService, ViolationControllerService, ViolationPenaltyControllerService, WatchlistsControllerService, WebsocketMessageControllerService, WorkflowStateControllerService];
@@ -0,0 +1,170 @@
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 { GetCitationAuditLogsResponse } from '../model/getCitationAuditLogsResponse';
23
+
24
+ // @ts-ignore
25
+ import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
26
+ import { Configuration } from '../configuration';
27
+
28
+
29
+
30
+ @Injectable({
31
+ providedIn: 'root'
32
+ })
33
+ export class AuditLogControllerService {
34
+
35
+ protected basePath = 'http://otr-backend-service-us-devo.offtherecord.com';
36
+ public defaultHeaders = new HttpHeaders();
37
+ public configuration = new Configuration();
38
+ public encoder: HttpParameterCodec;
39
+
40
+ constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) {
41
+ if (configuration) {
42
+ this.configuration = configuration;
43
+ }
44
+ if (typeof this.configuration.basePath !== 'string') {
45
+ if (Array.isArray(basePath) && basePath.length > 0) {
46
+ basePath = basePath[0];
47
+ }
48
+
49
+ if (typeof basePath !== 'string') {
50
+ basePath = this.basePath;
51
+ }
52
+ this.configuration.basePath = basePath;
53
+ }
54
+ this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
55
+ }
56
+
57
+
58
+ // @ts-ignore
59
+ private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
60
+ if (typeof value === "object" && value instanceof Date === false) {
61
+ httpParams = this.addToHttpParamsRecursive(httpParams, value);
62
+ } else {
63
+ httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
64
+ }
65
+ return httpParams;
66
+ }
67
+
68
+ private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams {
69
+ if (value == null) {
70
+ return httpParams;
71
+ }
72
+
73
+ if (typeof value === "object") {
74
+ if (Array.isArray(value)) {
75
+ (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
76
+ } else if (value instanceof Date) {
77
+ if (key != null) {
78
+ httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10));
79
+ } else {
80
+ throw Error("key may not be null if value is Date");
81
+ }
82
+ } else {
83
+ Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive(
84
+ httpParams, value[k], key != null ? `${key}.${k}` : k));
85
+ }
86
+ } else if (key != null) {
87
+ httpParams = httpParams.append(key, value);
88
+ } else {
89
+ throw Error("key may not be null if value is not object or array");
90
+ }
91
+ return httpParams;
92
+ }
93
+
94
+ /**
95
+ * getAuditLogs
96
+ * @param citationId citationId
97
+ * @param logLevel logLevel
98
+ * @param logType logType
99
+ * @param showActiveOnly showActiveOnly
100
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
101
+ * @param reportProgress flag to report request and response progress.
102
+ */
103
+ public getAuditLogsUsingGET(citationId: number, logLevel?: 'NON_TECHNICAL' | 'TECHNICAL', logType?: 'APPLY_REFERRAL_CODE' | 'CREATE_LEGAL_SERVICES' | 'INITIATE_CASE' | 'MATCH_CASE' | 'OTHER' | 'TRANSFER_CASE', showActiveOnly?: boolean, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<GetCitationAuditLogsResponse>;
104
+ public getAuditLogsUsingGET(citationId: number, logLevel?: 'NON_TECHNICAL' | 'TECHNICAL', logType?: 'APPLY_REFERRAL_CODE' | 'CREATE_LEGAL_SERVICES' | 'INITIATE_CASE' | 'MATCH_CASE' | 'OTHER' | 'TRANSFER_CASE', showActiveOnly?: boolean, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<HttpResponse<GetCitationAuditLogsResponse>>;
105
+ public getAuditLogsUsingGET(citationId: number, logLevel?: 'NON_TECHNICAL' | 'TECHNICAL', logType?: 'APPLY_REFERRAL_CODE' | 'CREATE_LEGAL_SERVICES' | 'INITIATE_CASE' | 'MATCH_CASE' | 'OTHER' | 'TRANSFER_CASE', showActiveOnly?: boolean, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<HttpEvent<GetCitationAuditLogsResponse>>;
106
+ public getAuditLogsUsingGET(citationId: number, logLevel?: 'NON_TECHNICAL' | 'TECHNICAL', logType?: 'APPLY_REFERRAL_CODE' | 'CREATE_LEGAL_SERVICES' | 'INITIATE_CASE' | 'MATCH_CASE' | 'OTHER' | 'TRANSFER_CASE', showActiveOnly?: boolean, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<any> {
107
+ if (citationId === null || citationId === undefined) {
108
+ throw new Error('Required parameter citationId was null or undefined when calling getAuditLogsUsingGET.');
109
+ }
110
+
111
+ let localVarQueryParameters = new HttpParams({encoder: this.encoder});
112
+ if (logLevel !== undefined && logLevel !== null) {
113
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
114
+ <any>logLevel, 'logLevel');
115
+ }
116
+ if (logType !== undefined && logType !== null) {
117
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
118
+ <any>logType, 'logType');
119
+ }
120
+ if (showActiveOnly !== undefined && showActiveOnly !== null) {
121
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
122
+ <any>showActiveOnly, 'showActiveOnly');
123
+ }
124
+
125
+ let localVarHeaders = this.defaultHeaders;
126
+
127
+ let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
128
+ if (localVarHttpHeaderAcceptSelected === undefined) {
129
+ // to determine the Accept header
130
+ const httpHeaderAccepts: string[] = [
131
+ '*/*'
132
+ ];
133
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
134
+ }
135
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
136
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
137
+ }
138
+
139
+ let localVarHttpContext: HttpContext | undefined = options && options.context;
140
+ if (localVarHttpContext === undefined) {
141
+ localVarHttpContext = new HttpContext();
142
+ }
143
+
144
+
145
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
146
+ if (localVarHttpHeaderAcceptSelected) {
147
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
148
+ responseType_ = 'text';
149
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
150
+ responseType_ = 'json';
151
+ } else {
152
+ responseType_ = 'blob';
153
+ }
154
+ }
155
+
156
+ let localVarPath = `/api/v1/citations/${this.configuration.encodeParam({name: "citationId", value: citationId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/audit-logs`;
157
+ return this.httpClient.request<GetCitationAuditLogsResponse>('get', `${this.configuration.basePath}${localVarPath}`,
158
+ {
159
+ context: localVarHttpContext,
160
+ params: localVarQueryParameters,
161
+ responseType: <any>responseType_,
162
+ withCredentials: this.configuration.withCredentials,
163
+ headers: localVarHeaders,
164
+ observe: observe,
165
+ reportProgress: reportProgress
166
+ }
167
+ );
168
+ }
169
+
170
+ }
@@ -0,0 +1,243 @@
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 { ListUserWatchlistsResponse } from '../model/listUserWatchlistsResponse';
23
+ // @ts-ignore
24
+ import { SaveUserWatchlistsRequest } from '../model/saveUserWatchlistsRequest';
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 WatchlistsControllerService {
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
+ * listUserWatchlists
98
+ * @param userId userId
99
+ * @param isArchived isArchived
100
+ * @param isDeleted isDeleted
101
+ * @param watchlistId watchlistId
102
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
103
+ * @param reportProgress flag to report request and response progress.
104
+ */
105
+ public listUserWatchlistsUsingGET(userId: number, isArchived?: boolean, isDeleted?: boolean, watchlistId?: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<ListUserWatchlistsResponse>;
106
+ public listUserWatchlistsUsingGET(userId: number, isArchived?: boolean, isDeleted?: boolean, watchlistId?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<HttpResponse<ListUserWatchlistsResponse>>;
107
+ public listUserWatchlistsUsingGET(userId: number, isArchived?: boolean, isDeleted?: boolean, watchlistId?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<HttpEvent<ListUserWatchlistsResponse>>;
108
+ public listUserWatchlistsUsingGET(userId: number, isArchived?: boolean, isDeleted?: boolean, watchlistId?: number, 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 listUserWatchlistsUsingGET.');
111
+ }
112
+
113
+ let localVarQueryParameters = new HttpParams({encoder: this.encoder});
114
+ if (isArchived !== undefined && isArchived !== null) {
115
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
116
+ <any>isArchived, 'isArchived');
117
+ }
118
+ if (isDeleted !== undefined && isDeleted !== null) {
119
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
120
+ <any>isDeleted, 'isDeleted');
121
+ }
122
+ if (watchlistId !== undefined && watchlistId !== null) {
123
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
124
+ <any>watchlistId, 'watchlistId');
125
+ }
126
+
127
+ let localVarHeaders = this.defaultHeaders;
128
+
129
+ let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
130
+ if (localVarHttpHeaderAcceptSelected === undefined) {
131
+ // to determine the Accept header
132
+ const httpHeaderAccepts: string[] = [
133
+ '*/*'
134
+ ];
135
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
136
+ }
137
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
138
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
139
+ }
140
+
141
+ let localVarHttpContext: HttpContext | undefined = options && options.context;
142
+ if (localVarHttpContext === undefined) {
143
+ localVarHttpContext = new HttpContext();
144
+ }
145
+
146
+
147
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
148
+ if (localVarHttpHeaderAcceptSelected) {
149
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
150
+ responseType_ = 'text';
151
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
152
+ responseType_ = 'json';
153
+ } else {
154
+ responseType_ = 'blob';
155
+ }
156
+ }
157
+
158
+ let localVarPath = `/api/v1/watchlists/${this.configuration.encodeParam({name: "userId", value: userId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/lists`;
159
+ return this.httpClient.request<ListUserWatchlistsResponse>('get', `${this.configuration.basePath}${localVarPath}`,
160
+ {
161
+ context: localVarHttpContext,
162
+ params: localVarQueryParameters,
163
+ responseType: <any>responseType_,
164
+ withCredentials: this.configuration.withCredentials,
165
+ headers: localVarHeaders,
166
+ observe: observe,
167
+ reportProgress: reportProgress
168
+ }
169
+ );
170
+ }
171
+
172
+ /**
173
+ * saveUserWatchlists
174
+ * @param userId userId
175
+ * @param request request
176
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
177
+ * @param reportProgress flag to report request and response progress.
178
+ */
179
+ public saveUserWatchlistsUsingPOST(userId: number, request: SaveUserWatchlistsRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<any>;
180
+ public saveUserWatchlistsUsingPOST(userId: number, request: SaveUserWatchlistsRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<HttpResponse<any>>;
181
+ public saveUserWatchlistsUsingPOST(userId: number, request: SaveUserWatchlistsRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<HttpEvent<any>>;
182
+ public saveUserWatchlistsUsingPOST(userId: number, request: SaveUserWatchlistsRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<any> {
183
+ if (userId === null || userId === undefined) {
184
+ throw new Error('Required parameter userId was null or undefined when calling saveUserWatchlistsUsingPOST.');
185
+ }
186
+ if (request === null || request === undefined) {
187
+ throw new Error('Required parameter request was null or undefined when calling saveUserWatchlistsUsingPOST.');
188
+ }
189
+
190
+ let localVarHeaders = this.defaultHeaders;
191
+
192
+ let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
193
+ if (localVarHttpHeaderAcceptSelected === undefined) {
194
+ // to determine the Accept header
195
+ const httpHeaderAccepts: string[] = [
196
+ ];
197
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
198
+ }
199
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
200
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
201
+ }
202
+
203
+ let localVarHttpContext: HttpContext | undefined = options && options.context;
204
+ if (localVarHttpContext === undefined) {
205
+ localVarHttpContext = new HttpContext();
206
+ }
207
+
208
+
209
+ // to determine the Content-Type header
210
+ const consumes: string[] = [
211
+ 'application/json'
212
+ ];
213
+ const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
214
+ if (httpContentTypeSelected !== undefined) {
215
+ localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
216
+ }
217
+
218
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
219
+ if (localVarHttpHeaderAcceptSelected) {
220
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
221
+ responseType_ = 'text';
222
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
223
+ responseType_ = 'json';
224
+ } else {
225
+ responseType_ = 'blob';
226
+ }
227
+ }
228
+
229
+ let localVarPath = `/api/v1/watchlists/${this.configuration.encodeParam({name: "userId", value: userId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/lists`;
230
+ return this.httpClient.request<any>('post', `${this.configuration.basePath}${localVarPath}`,
231
+ {
232
+ context: localVarHttpContext,
233
+ body: request,
234
+ responseType: <any>responseType_,
235
+ withCredentials: this.configuration.withCredentials,
236
+ headers: localVarHeaders,
237
+ observe: observe,
238
+ reportProgress: reportProgress
239
+ }
240
+ );
241
+ }
242
+
243
+ }
@@ -8,6 +8,7 @@ import { AddressControllerService } from './api/addressController.service';
8
8
  import { AlertNotificationControllerService } from './api/alertNotificationController.service';
9
9
  import { AppEventsControllerService } from './api/appEventsController.service';
10
10
  import { AuditLawfirmEventsControllerService } from './api/auditLawfirmEventsController.service';
11
+ import { AuditLogControllerService } from './api/auditLogController.service';
11
12
  import { AuthenticationControllerService } from './api/authenticationController.service';
12
13
  import { AwsCredentialsControllerService } from './api/awsCredentialsController.service';
13
14
  import { BlogWebhookControllerService } from './api/blogWebhookController.service';
@@ -102,7 +103,7 @@ import { ValidationControllerService } from './api/validationController.service'
102
103
  import { VerificationControllerService } from './api/verificationController.service';
103
104
  import { ViolationControllerService } from './api/violationController.service';
104
105
  import { ViolationPenaltyControllerService } from './api/violationPenaltyController.service';
105
- import { WatchlistControllerService } from './api/watchlistController.service';
106
+ import { WatchlistsControllerService } from './api/watchlistsController.service';
106
107
  import { WebsocketMessageControllerService } from './api/websocketMessageController.service';
107
108
  import { WorkflowStateControllerService } from './api/workflowStateController.service';
108
109
 
@@ -0,0 +1,47 @@
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 { CountryRegion } from './countryRegion';
13
+
14
+
15
+ export interface AddressEntity {
16
+ addressId?: number;
17
+ addressLine1?: string;
18
+ addressLine2?: string;
19
+ city?: string;
20
+ cityRegion?: string;
21
+ countryCode?: string;
22
+ countryRegion?: CountryRegion;
23
+ entityType?: AddressEntity.EntityTypeEnum;
24
+ fullAddress?: string;
25
+ phoneNumber?: string;
26
+ postalCode?: string;
27
+ referenceId?: number;
28
+ regionCode?: string;
29
+ timeZoneName?: string;
30
+ }
31
+ export namespace AddressEntity {
32
+ export type EntityTypeEnum = 'CASE' | 'CASE_PAYMENT' | 'CITATION' | 'COURT' | 'LAWFIRM' | 'LAWFIRM_CASE' | 'LAWYER' | 'LINE_ITEM' | 'STRIPE_CHARGE' | 'USER';
33
+ export const EntityTypeEnum = {
34
+ Case: 'CASE' as EntityTypeEnum,
35
+ CasePayment: 'CASE_PAYMENT' as EntityTypeEnum,
36
+ Citation: 'CITATION' as EntityTypeEnum,
37
+ Court: 'COURT' as EntityTypeEnum,
38
+ Lawfirm: 'LAWFIRM' as EntityTypeEnum,
39
+ LawfirmCase: 'LAWFIRM_CASE' as EntityTypeEnum,
40
+ Lawyer: 'LAWYER' as EntityTypeEnum,
41
+ LineItem: 'LINE_ITEM' as EntityTypeEnum,
42
+ StripeCharge: 'STRIPE_CHARGE' as EntityTypeEnum,
43
+ User: 'USER' as EntityTypeEnum
44
+ };
45
+ }
46
+
47
+
@@ -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 AuditLog {
15
+ date?: string;
16
+ key?: string;
17
+ level?: AuditLog.LevelEnum;
18
+ message?: string;
19
+ source?: string;
20
+ }
21
+ export namespace AuditLog {
22
+ export type LevelEnum = 'NON_TECHNICAL' | 'TECHNICAL';
23
+ export const LevelEnum = {
24
+ NonTechnical: 'NON_TECHNICAL' as LevelEnum,
25
+ Technical: 'TECHNICAL' as LevelEnum
26
+ };
27
+ }
28
+
29
+