@otr-app/shared-backend-generated-client 2.3.88 → 2.3.90

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 (32) hide show
  1. package/dist/angular/.openapi-generator/FILES +6 -0
  2. package/dist/angular/api/api.ts +3 -1
  3. package/dist/angular/api/caseUserController.service.ts +233 -0
  4. package/dist/angular/api.module.ts +1 -0
  5. package/dist/angular/model/caseUserDefendantAttributesRequest.ts +21 -0
  6. package/dist/angular/model/caseUserPermissionAttributes.ts +17 -0
  7. package/dist/angular/model/getCaseUserModel.ts +45 -0
  8. package/dist/angular/model/getCaseUsersResponse.ts +18 -0
  9. package/dist/angular/model/models.ts +5 -0
  10. package/dist/angular/model/saveCaseUserRequest.ts +41 -0
  11. package/dist/otrBackendService.js +84 -0
  12. package/dist/otrBackendService.min.js +5 -5
  13. package/dist/typescript/.openapi-generator/VERSION +1 -1
  14. package/dist/typescript/api/CaseUserControllerApi.d.ts +35 -0
  15. package/dist/typescript/api/CaseUserControllerApi.js +89 -0
  16. package/dist/typescript/api/api.d.ts +3 -1
  17. package/dist/typescript/api/api.js +4 -6
  18. package/dist/typescript/api.module.js +1 -0
  19. package/dist/typescript/index.js +1 -5
  20. package/dist/typescript/model/CaseUserDefendantAttributesRequest.d.ts +18 -0
  21. package/dist/typescript/model/CaseUserDefendantAttributesRequest.js +13 -0
  22. package/dist/typescript/model/CaseUserPermissionAttributes.d.ts +14 -0
  23. package/dist/typescript/model/CaseUserPermissionAttributes.js +13 -0
  24. package/dist/typescript/model/GetCaseUserModel.d.ts +40 -0
  25. package/dist/typescript/model/GetCaseUserModel.js +27 -0
  26. package/dist/typescript/model/GetCaseUsersResponse.d.ts +15 -0
  27. package/dist/typescript/model/GetCaseUsersResponse.js +13 -0
  28. package/dist/typescript/model/SaveCaseUserRequest.d.ts +35 -0
  29. package/dist/typescript/model/SaveCaseUserRequest.js +27 -0
  30. package/dist/typescript/model/models.d.ts +5 -0
  31. package/dist/typescript/model/models.js +6 -5
  32. package/package.json +1 -1
@@ -22,6 +22,7 @@ api/caseRefundController.service.ts
22
22
  api/caseResolutionController.service.ts
23
23
  api/caseStatusController.service.ts
24
24
  api/caseTransferController.service.ts
25
+ api/caseUserController.service.ts
25
26
  api/certificateController.service.ts
26
27
  api/citationAuditController.service.ts
27
28
  api/citationController.service.ts
@@ -196,6 +197,8 @@ model/caseStatusDomain.ts
196
197
  model/caseSummaryDomain.ts
197
198
  model/caseTransferHistory.ts
198
199
  model/caseTransferResponse.ts
200
+ model/caseUserDefendantAttributesRequest.ts
201
+ model/caseUserPermissionAttributes.ts
199
202
  model/caseViolationPenalty.ts
200
203
  model/caseWithCoverageObtained.ts
201
204
  model/changeUserPasswordRequest.ts
@@ -331,6 +334,8 @@ model/getCaseNotesResponse.ts
331
334
  model/getCasePaymentsResponse.ts
332
335
  model/getCaseResolutionStatusesResponse.ts
333
336
  model/getCaseResponse.ts
337
+ model/getCaseUserModel.ts
338
+ model/getCaseUsersResponse.ts
334
339
  model/getCasesWithCoverageObtainedResponse.ts
335
340
  model/getCasesWithMissingLawfirmPayoutsResponse.ts
336
341
  model/getCasesWithOverduePaymentsResponse.ts
@@ -612,6 +617,7 @@ model/sSLCertificateResponse.ts
612
617
  model/saveAgentBookingRequest.ts
613
618
  model/saveAgentBookingResponse.ts
614
619
  model/saveCaseNotesRequest.ts
620
+ model/saveCaseUserRequest.ts
615
621
  model/saveLawfirmSurchargeModel.ts
616
622
  model/saveLawfirmSurchargesRequest.ts
617
623
  model/saveLawyerLeadRequest.ts
@@ -38,6 +38,8 @@ export * from './caseStatusController.service';
38
38
  import { CaseStatusControllerService } from './caseStatusController.service';
39
39
  export * from './caseTransferController.service';
40
40
  import { CaseTransferControllerService } from './caseTransferController.service';
41
+ export * from './caseUserController.service';
42
+ import { CaseUserControllerService } from './caseUserController.service';
41
43
  export * from './certificateController.service';
42
44
  import { CertificateControllerService } from './certificateController.service';
43
45
  export * from './citationAuditController.service';
@@ -198,4 +200,4 @@ export * from './violationPenaltyController.service';
198
200
  import { ViolationPenaltyControllerService } from './violationPenaltyController.service';
199
201
  export * from './workflowStateController.service';
200
202
  import { WorkflowStateControllerService } from './workflowStateController.service';
201
- export const APIS = [ActionRequiredControllerService, ActivityFeedControllerService, AddressControllerService, AlertNotificationControllerService, AppEventsControllerService, AuditLawfirmEventsControllerService, AuthenticationControllerService, AwsCredentialsControllerService, BlogWebhookControllerService, BranchLinkControllerService, CaseActionsControllerService, CaseControllerService, CaseCreationControllerService, CaseNotesControllerService, CasePaymentControllerService, CaseReferralCodeControllerService, CaseRefundControllerService, CaseResolutionControllerService, CaseStatusControllerService, CaseTransferControllerService, 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, WorkflowStateControllerService];
203
+ 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, WorkflowStateControllerService];
@@ -0,0 +1,233 @@
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 { GetCaseUsersResponse } from '../model/getCaseUsersResponse';
23
+ // @ts-ignore
24
+ import { SaveCaseUserRequest } from '../model/saveCaseUserRequest';
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 CaseUserControllerService {
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
+ * getCaseUsersByCase
98
+ * @param caseId caseId
99
+ * @param getRemovedUsers getRemovedUsers
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 getCaseUsersByCaseUsingGET(caseId: string, getRemovedUsers?: boolean, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<GetCaseUsersResponse>;
104
+ public getCaseUsersByCaseUsingGET(caseId: string, getRemovedUsers?: boolean, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<HttpResponse<GetCaseUsersResponse>>;
105
+ public getCaseUsersByCaseUsingGET(caseId: string, getRemovedUsers?: boolean, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<HttpEvent<GetCaseUsersResponse>>;
106
+ public getCaseUsersByCaseUsingGET(caseId: string, getRemovedUsers?: boolean, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<any> {
107
+ if (caseId === null || caseId === undefined) {
108
+ throw new Error('Required parameter caseId was null or undefined when calling getCaseUsersByCaseUsingGET.');
109
+ }
110
+
111
+ let localVarQueryParameters = new HttpParams({encoder: this.encoder});
112
+ if (getRemovedUsers !== undefined && getRemovedUsers !== null) {
113
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
114
+ <any>getRemovedUsers, 'getRemovedUsers');
115
+ }
116
+
117
+ let localVarHeaders = this.defaultHeaders;
118
+
119
+ let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
120
+ if (localVarHttpHeaderAcceptSelected === undefined) {
121
+ // to determine the Accept header
122
+ const httpHeaderAccepts: string[] = [
123
+ '*/*'
124
+ ];
125
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
126
+ }
127
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
128
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
129
+ }
130
+
131
+ let localVarHttpContext: HttpContext | undefined = options && options.context;
132
+ if (localVarHttpContext === undefined) {
133
+ localVarHttpContext = new HttpContext();
134
+ }
135
+
136
+
137
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
138
+ if (localVarHttpHeaderAcceptSelected) {
139
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
140
+ responseType_ = 'text';
141
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
142
+ responseType_ = 'json';
143
+ } else {
144
+ responseType_ = 'blob';
145
+ }
146
+ }
147
+
148
+ let localVarPath = `/api/v1/cases/${this.configuration.encodeParam({name: "caseId", value: caseId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/users`;
149
+ return this.httpClient.request<GetCaseUsersResponse>('get', `${this.configuration.basePath}${localVarPath}`,
150
+ {
151
+ context: localVarHttpContext,
152
+ params: localVarQueryParameters,
153
+ responseType: <any>responseType_,
154
+ withCredentials: this.configuration.withCredentials,
155
+ headers: localVarHeaders,
156
+ observe: observe,
157
+ reportProgress: reportProgress
158
+ }
159
+ );
160
+ }
161
+
162
+ /**
163
+ * saveCaseUser
164
+ * @param caseId caseId
165
+ * @param request request
166
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
167
+ * @param reportProgress flag to report request and response progress.
168
+ */
169
+ public saveCaseUserUsingPOST(caseId: string, request: SaveCaseUserRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<any>;
170
+ public saveCaseUserUsingPOST(caseId: string, request: SaveCaseUserRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<HttpResponse<any>>;
171
+ public saveCaseUserUsingPOST(caseId: string, request: SaveCaseUserRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<HttpEvent<any>>;
172
+ public saveCaseUserUsingPOST(caseId: string, request: SaveCaseUserRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<any> {
173
+ if (caseId === null || caseId === undefined) {
174
+ throw new Error('Required parameter caseId was null or undefined when calling saveCaseUserUsingPOST.');
175
+ }
176
+ if (request === null || request === undefined) {
177
+ throw new Error('Required parameter request was null or undefined when calling saveCaseUserUsingPOST.');
178
+ }
179
+
180
+ let localVarHeaders = this.defaultHeaders;
181
+
182
+ let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
183
+ if (localVarHttpHeaderAcceptSelected === undefined) {
184
+ // to determine the Accept header
185
+ const httpHeaderAccepts: string[] = [
186
+ ];
187
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
188
+ }
189
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
190
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
191
+ }
192
+
193
+ let localVarHttpContext: HttpContext | undefined = options && options.context;
194
+ if (localVarHttpContext === undefined) {
195
+ localVarHttpContext = new HttpContext();
196
+ }
197
+
198
+
199
+ // to determine the Content-Type header
200
+ const consumes: string[] = [
201
+ 'application/json'
202
+ ];
203
+ const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
204
+ if (httpContentTypeSelected !== undefined) {
205
+ localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
206
+ }
207
+
208
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
209
+ if (localVarHttpHeaderAcceptSelected) {
210
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
211
+ responseType_ = 'text';
212
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
213
+ responseType_ = 'json';
214
+ } else {
215
+ responseType_ = 'blob';
216
+ }
217
+ }
218
+
219
+ let localVarPath = `/api/v1/cases/${this.configuration.encodeParam({name: "caseId", value: caseId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/users`;
220
+ return this.httpClient.request<any>('post', `${this.configuration.basePath}${localVarPath}`,
221
+ {
222
+ context: localVarHttpContext,
223
+ body: request,
224
+ responseType: <any>responseType_,
225
+ withCredentials: this.configuration.withCredentials,
226
+ headers: localVarHeaders,
227
+ observe: observe,
228
+ reportProgress: reportProgress
229
+ }
230
+ );
231
+ }
232
+
233
+ }
@@ -22,6 +22,7 @@ import { CaseRefundControllerService } from './api/caseRefundController.service'
22
22
  import { CaseResolutionControllerService } from './api/caseResolutionController.service';
23
23
  import { CaseStatusControllerService } from './api/caseStatusController.service';
24
24
  import { CaseTransferControllerService } from './api/caseTransferController.service';
25
+ import { CaseUserControllerService } from './api/caseUserController.service';
25
26
  import { CertificateControllerService } from './api/certificateController.service';
26
27
  import { CitationAuditControllerService } from './api/citationAuditController.service';
27
28
  import { CitationControllerService } from './api/citationController.service';
@@ -0,0 +1,21 @@
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 CaseUserDefendantAttributesRequest {
15
+ dateOfBirth?: string;
16
+ firstName?: string;
17
+ lastName?: string;
18
+ licenseNumber?: string;
19
+ licenseState?: string;
20
+ }
21
+
@@ -0,0 +1,17 @@
1
+ /**
2
+ * OffTheRecord Rest Service API - Devo
3
+ * A service to handle your traffic tickets
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+
13
+
14
+ export interface CaseUserPermissionAttributes {
15
+ hasFinancialAccess?: boolean;
16
+ }
17
+
@@ -0,0 +1,45 @@
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 { CaseUserPermissionAttributes } from './caseUserPermissionAttributes';
13
+
14
+
15
+ export interface GetCaseUserModel {
16
+ additionalNote?: string;
17
+ caseId?: string;
18
+ dateOfBirth?: string;
19
+ emailAddress?: string;
20
+ firstName?: string;
21
+ isBookingAgent?: boolean;
22
+ isDefendant?: boolean;
23
+ isOwner?: boolean;
24
+ isRemoved?: boolean;
25
+ lastName?: string;
26
+ licenseNumber?: string;
27
+ licenseState?: string;
28
+ permissionAttributes?: CaseUserPermissionAttributes;
29
+ relationshipToClient?: GetCaseUserModel.RelationshipToClientEnum;
30
+ userId?: number;
31
+ }
32
+ export namespace GetCaseUserModel {
33
+ export type RelationshipToClientEnum = 'EMPLOYER' | 'FAMILY_MEMBER' | 'FRIEND' | 'LAWYER' | 'OTHER' | 'SELF' | 'UNKNOWN';
34
+ export const RelationshipToClientEnum = {
35
+ Employer: 'EMPLOYER' as RelationshipToClientEnum,
36
+ FamilyMember: 'FAMILY_MEMBER' as RelationshipToClientEnum,
37
+ Friend: 'FRIEND' as RelationshipToClientEnum,
38
+ Lawyer: 'LAWYER' as RelationshipToClientEnum,
39
+ Other: 'OTHER' as RelationshipToClientEnum,
40
+ Self: 'SELF' as RelationshipToClientEnum,
41
+ Unknown: 'UNKNOWN' as RelationshipToClientEnum
42
+ };
43
+ }
44
+
45
+
@@ -0,0 +1,18 @@
1
+ /**
2
+ * OffTheRecord Rest Service API - Devo
3
+ * A service to handle your traffic tickets
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { GetCaseUserModel } from './getCaseUserModel';
13
+
14
+
15
+ export interface GetCaseUsersResponse {
16
+ users?: Array<GetCaseUserModel>;
17
+ }
18
+
@@ -88,6 +88,8 @@ export * from './caseStatusDomain';
88
88
  export * from './caseSummaryDomain';
89
89
  export * from './caseTransferHistory';
90
90
  export * from './caseTransferResponse';
91
+ export * from './caseUserDefendantAttributesRequest';
92
+ export * from './caseUserPermissionAttributes';
91
93
  export * from './caseViolationPenalty';
92
94
  export * from './caseWithCoverageObtained';
93
95
  export * from './changeUserPasswordRequest';
@@ -223,6 +225,8 @@ export * from './getCaseNotesResponse';
223
225
  export * from './getCasePaymentsResponse';
224
226
  export * from './getCaseResolutionStatusesResponse';
225
227
  export * from './getCaseResponse';
228
+ export * from './getCaseUserModel';
229
+ export * from './getCaseUsersResponse';
226
230
  export * from './getCasesWithCoverageObtainedResponse';
227
231
  export * from './getCasesWithMissingLawfirmPayoutsResponse';
228
232
  export * from './getCasesWithOverduePaymentsResponse';
@@ -503,6 +507,7 @@ export * from './sSLCertificateResponse';
503
507
  export * from './saveAgentBookingRequest';
504
508
  export * from './saveAgentBookingResponse';
505
509
  export * from './saveCaseNotesRequest';
510
+ export * from './saveCaseUserRequest';
506
511
  export * from './saveLawfirmSurchargeModel';
507
512
  export * from './saveLawfirmSurchargesRequest';
508
513
  export * from './saveLawyerLeadRequest';
@@ -0,0 +1,41 @@
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 { CaseUserDefendantAttributesRequest } from './caseUserDefendantAttributesRequest';
13
+ import { CaseUserPermissionAttributes } from './caseUserPermissionAttributes';
14
+
15
+
16
+ export interface SaveCaseUserRequest {
17
+ additionalNote?: string;
18
+ defendantAttributes?: CaseUserDefendantAttributesRequest;
19
+ emailAddress?: string;
20
+ isBookingAgent?: boolean;
21
+ isDefendant?: boolean;
22
+ isOwner?: boolean;
23
+ isRemoved?: boolean;
24
+ permissionAttributes?: CaseUserPermissionAttributes;
25
+ relationshipToClient?: SaveCaseUserRequest.RelationshipToClientEnum;
26
+ userId?: number;
27
+ }
28
+ export namespace SaveCaseUserRequest {
29
+ export type RelationshipToClientEnum = 'EMPLOYER' | 'FAMILY_MEMBER' | 'FRIEND' | 'LAWYER' | 'OTHER' | 'SELF' | 'UNKNOWN';
30
+ export const RelationshipToClientEnum = {
31
+ Employer: 'EMPLOYER' as RelationshipToClientEnum,
32
+ FamilyMember: 'FAMILY_MEMBER' as RelationshipToClientEnum,
33
+ Friend: 'FRIEND' as RelationshipToClientEnum,
34
+ Lawyer: 'LAWYER' as RelationshipToClientEnum,
35
+ Other: 'OTHER' as RelationshipToClientEnum,
36
+ Self: 'SELF' as RelationshipToClientEnum,
37
+ Unknown: 'UNKNOWN' as RelationshipToClientEnum
38
+ };
39
+ }
40
+
41
+
@@ -3451,6 +3451,90 @@ angular.module('otrBackendService', [])
3451
3451
 
3452
3452
  return deferred.promise;
3453
3453
  };
3454
+ /**
3455
+ * getCaseUsersByCase
3456
+ * @method
3457
+ * @name OtrService#getCaseUsersByCaseUsingGET
3458
+ * @param {object} parameters - method options and parameters
3459
+ * @param {string} parameters.caseId - caseId
3460
+ * @param {boolean} parameters.getRemovedUsers - getRemovedUsers
3461
+ */
3462
+ OtrService.prototype.getCaseUsersByCaseUsingGET = function(parameters) {
3463
+ if (parameters === undefined) {
3464
+ parameters = {};
3465
+ }
3466
+ var deferred = $q.defer();
3467
+ var domain = this.domain,
3468
+ path = '/api/v1/cases/{caseId}/users';
3469
+ var body = {},
3470
+ queryParameters = {},
3471
+ headers = {},
3472
+ form = {};
3473
+
3474
+ headers['Accept'] = ['*/*'];
3475
+
3476
+ path = path.replace('{caseId}', parameters['caseId']);
3477
+
3478
+ if (parameters['caseId'] === undefined) {
3479
+ deferred.reject(new Error('Missing required parameter: caseId'));
3480
+ return deferred.promise;
3481
+ }
3482
+
3483
+ if (parameters['getRemovedUsers'] !== undefined) {
3484
+ queryParameters['getRemovedUsers'] = parameters['getRemovedUsers'];
3485
+ }
3486
+
3487
+ queryParameters = mergeQueryParams(parameters, queryParameters);
3488
+
3489
+ this.request('GET', domain + path, parameters, body, headers, queryParameters, form, deferred);
3490
+
3491
+ return deferred.promise;
3492
+ };
3493
+ /**
3494
+ * saveCaseUser
3495
+ * @method
3496
+ * @name OtrService#saveCaseUserUsingPOST
3497
+ * @param {object} parameters - method options and parameters
3498
+ * @param {string} parameters.caseId - caseId
3499
+ * @param {} parameters.request - request
3500
+ */
3501
+ OtrService.prototype.saveCaseUserUsingPOST = function(parameters) {
3502
+ if (parameters === undefined) {
3503
+ parameters = {};
3504
+ }
3505
+ var deferred = $q.defer();
3506
+ var domain = this.domain,
3507
+ path = '/api/v1/cases/{caseId}/users';
3508
+ var body = {},
3509
+ queryParameters = {},
3510
+ headers = {},
3511
+ form = {};
3512
+
3513
+ headers['Accept'] = ['*/*'];
3514
+ headers['Content-Type'] = ['application/json'];
3515
+
3516
+ path = path.replace('{caseId}', parameters['caseId']);
3517
+
3518
+ if (parameters['caseId'] === undefined) {
3519
+ deferred.reject(new Error('Missing required parameter: caseId'));
3520
+ return deferred.promise;
3521
+ }
3522
+
3523
+ if (parameters['request'] !== undefined) {
3524
+ body = parameters['request'];
3525
+ }
3526
+
3527
+ if (parameters['request'] === undefined) {
3528
+ deferred.reject(new Error('Missing required parameter: request'));
3529
+ return deferred.promise;
3530
+ }
3531
+
3532
+ queryParameters = mergeQueryParams(parameters, queryParameters);
3533
+
3534
+ this.request('POST', domain + path, parameters, body, headers, queryParameters, form, deferred);
3535
+
3536
+ return deferred.promise;
3537
+ };
3454
3538
  /**
3455
3539
  * getSSLPublicCertFile
3456
3540
  * @method