@otr-app/shared-backend-generated-client 2.3.171 → 2.3.173
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.
- package/dist/angular/.openapi-generator/FILES +7 -0
- package/dist/angular/api/api.ts +3 -1
- package/dist/angular/api/driverLicenseController.service.ts +312 -0
- package/dist/angular/api.module.ts +1 -0
- package/dist/angular/model/driverLicenseModel.ts +40 -0
- package/dist/angular/model/getDriverLicensesResponse.ts +18 -0
- package/dist/angular/model/models.ts +6 -0
- package/dist/angular/model/saveDriverLicensePictureRequest.ts +19 -0
- package/dist/angular/model/saveDriverLicensePictureResponse.ts +18 -0
- package/dist/angular/model/saveDriverLicenseRequest.ts +31 -0
- package/dist/angular/model/userAssetModel.ts +21 -0
- package/dist/otrBackendService.js +129 -0
- package/dist/otrBackendService.min.js +2 -2
- package/dist/typescript/api/DriverLicenseControllerApi.d.ts +42 -0
- package/dist/typescript/api/DriverLicenseControllerApi.js +120 -0
- package/dist/typescript/api/api.d.ts +3 -1
- package/dist/typescript/api/api.js +3 -1
- package/dist/typescript/api.module.js +1 -0
- package/dist/typescript/model/DriverLicenseModel.d.ts +36 -0
- package/dist/typescript/model/DriverLicenseModel.js +13 -0
- package/dist/typescript/model/GetDriverLicensesResponse.d.ts +15 -0
- package/dist/typescript/model/GetDriverLicensesResponse.js +13 -0
- package/dist/typescript/model/SaveDriverLicensePictureRequest.d.ts +16 -0
- package/dist/typescript/model/SaveDriverLicensePictureRequest.js +13 -0
- package/dist/typescript/model/SaveDriverLicensePictureResponse.d.ts +15 -0
- package/dist/typescript/model/SaveDriverLicensePictureResponse.js +13 -0
- package/dist/typescript/model/SaveDriverLicenseRequest.d.ts +28 -0
- package/dist/typescript/model/SaveDriverLicenseRequest.js +13 -0
- package/dist/typescript/model/UserAssetModel.d.ts +18 -0
- package/dist/typescript/model/UserAssetModel.js +13 -0
- package/dist/typescript/model/models.d.ts +6 -0
- package/dist/typescript/model/models.js +6 -0
- package/package.json +1 -1
|
@@ -46,6 +46,7 @@ api/dashboardController.service.ts
|
|
|
46
46
|
api/directMailController.service.ts
|
|
47
47
|
api/dripController.service.ts
|
|
48
48
|
api/dripWebhooksController.service.ts
|
|
49
|
+
api/driverLicenseController.service.ts
|
|
49
50
|
api/emailSubscriptionController.service.ts
|
|
50
51
|
api/externalContentVoteController.service.ts
|
|
51
52
|
api/externalTicketLookupController.service.ts
|
|
@@ -320,6 +321,7 @@ model/documentDecisionRequest.ts
|
|
|
320
321
|
model/dripRemoveRequest.ts
|
|
321
322
|
model/dripWebhookData.ts
|
|
322
323
|
model/dripWebhookEvent.ts
|
|
324
|
+
model/driverLicenseModel.ts
|
|
323
325
|
model/duration.ts
|
|
324
326
|
model/editConversationMessageRequest.ts
|
|
325
327
|
model/enableViolationModel.ts
|
|
@@ -411,6 +413,7 @@ model/getCustomerServiceAgentsResponse.ts
|
|
|
411
413
|
model/getDeclinedCasesRequest.ts
|
|
412
414
|
model/getDeclinedCasesResponse.ts
|
|
413
415
|
model/getDocumentsRequest.ts
|
|
416
|
+
model/getDriverLicensesResponse.ts
|
|
414
417
|
model/getEmailTemplateResponse.ts
|
|
415
418
|
model/getExternalContentUserVotesResponse.ts
|
|
416
419
|
model/getExternalTicketInputParamsResponse.ts
|
|
@@ -680,6 +683,9 @@ model/saveCaseNotesRequest.ts
|
|
|
680
683
|
model/saveCaseUserRequest.ts
|
|
681
684
|
model/saveCoachingCardRequest.ts
|
|
682
685
|
model/saveCoachingCardUserRequest.ts
|
|
686
|
+
model/saveDriverLicensePictureRequest.ts
|
|
687
|
+
model/saveDriverLicensePictureResponse.ts
|
|
688
|
+
model/saveDriverLicenseRequest.ts
|
|
683
689
|
model/saveExternalContentVoteRequest.ts
|
|
684
690
|
model/saveItemToWatchlistRequest.ts
|
|
685
691
|
model/saveLawfirmSurchargeModel.ts
|
|
@@ -815,6 +821,7 @@ model/updateViolationRequest.ts
|
|
|
815
821
|
model/upsertAddressRequest.ts
|
|
816
822
|
model/user.ts
|
|
817
823
|
model/userAccountModel.ts
|
|
824
|
+
model/userAssetModel.ts
|
|
818
825
|
model/userAuditEventModel.ts
|
|
819
826
|
model/userBookingsDomain.ts
|
|
820
827
|
model/userDetails.ts
|
package/dist/angular/api/api.ts
CHANGED
|
@@ -86,6 +86,8 @@ export * from './dripController.service';
|
|
|
86
86
|
import { DripControllerService } from './dripController.service';
|
|
87
87
|
export * from './dripWebhooksController.service';
|
|
88
88
|
import { DripWebhooksControllerService } from './dripWebhooksController.service';
|
|
89
|
+
export * from './driverLicenseController.service';
|
|
90
|
+
import { DriverLicenseControllerService } from './driverLicenseController.service';
|
|
89
91
|
export * from './emailSubscriptionController.service';
|
|
90
92
|
import { EmailSubscriptionControllerService } from './emailSubscriptionController.service';
|
|
91
93
|
export * from './externalContentVoteController.service';
|
|
@@ -218,4 +220,4 @@ export * from './websocketMessageController.service';
|
|
|
218
220
|
import { WebsocketMessageControllerService } from './websocketMessageController.service';
|
|
219
221
|
export * from './workflowStateController.service';
|
|
220
222
|
import { WorkflowStateControllerService } from './workflowStateController.service';
|
|
221
|
-
export const APIS = [ActionRequiredControllerService, ActivityFeedControllerService, AddressControllerService, AlertNotificationControllerService, AppEventsControllerService, AuditLawfirmEventsControllerService, AuditLogControllerService, AuthenticationControllerService, AwsCredentialsControllerService, BlogWebhookControllerService, BranchLinkControllerService, CaptchaControllerService, CaseActionsControllerService, CaseControllerService, CaseCounterOfferControllerService, CaseCreationControllerService, CaseDeclineControllerService, CaseNotesControllerService, CasePaymentControllerService, CaseReferralCodeControllerService, CaseRefundControllerService, CaseResolutionControllerService, CaseStatusControllerService, CaseTransferControllerService, CaseUserControllerService, CertificateControllerService, CitationAuditControllerService, CitationControllerService, CoachingCardsControllerService, ConfigurationControllerService, ConsoleListControllerService, ContactTimelineControllerService, ConversationControllerService, CountyControllerService, CourtControllerService, CrmControllerService, CustomerLeadControllerService, CustomerReviewControllerService, CustomerServiceAgentBookingsControllerService, CustomerServiceAgentControllerService, DashboardControllerService, DirectMailControllerService, DripControllerService, DripWebhooksControllerService, EmailSubscriptionControllerService, ExternalContentVoteControllerService, ExternalTicketLookupControllerService, FeedbackControllerService, FreshcallerControllerService, FreshdeskTicketControllerService, GetCaseControllerService, HouseholdMateControllerService, HubspotWebhookControllerService, 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];
|
|
223
|
+
export const APIS = [ActionRequiredControllerService, ActivityFeedControllerService, AddressControllerService, AlertNotificationControllerService, AppEventsControllerService, AuditLawfirmEventsControllerService, AuditLogControllerService, AuthenticationControllerService, AwsCredentialsControllerService, BlogWebhookControllerService, BranchLinkControllerService, CaptchaControllerService, CaseActionsControllerService, CaseControllerService, CaseCounterOfferControllerService, CaseCreationControllerService, CaseDeclineControllerService, CaseNotesControllerService, CasePaymentControllerService, CaseReferralCodeControllerService, CaseRefundControllerService, CaseResolutionControllerService, CaseStatusControllerService, CaseTransferControllerService, CaseUserControllerService, CertificateControllerService, CitationAuditControllerService, CitationControllerService, CoachingCardsControllerService, ConfigurationControllerService, ConsoleListControllerService, ContactTimelineControllerService, ConversationControllerService, CountyControllerService, CourtControllerService, CrmControllerService, CustomerLeadControllerService, CustomerReviewControllerService, CustomerServiceAgentBookingsControllerService, CustomerServiceAgentControllerService, DashboardControllerService, DirectMailControllerService, DripControllerService, DripWebhooksControllerService, DriverLicenseControllerService, EmailSubscriptionControllerService, ExternalContentVoteControllerService, ExternalTicketLookupControllerService, FeedbackControllerService, FreshcallerControllerService, FreshdeskTicketControllerService, GetCaseControllerService, HouseholdMateControllerService, HubspotWebhookControllerService, 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,312 @@
|
|
|
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 { DriverLicenseModel } from '../model/driverLicenseModel';
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
import { GetDriverLicensesResponse } from '../model/getDriverLicensesResponse';
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { SaveDriverLicensePictureRequest } from '../model/saveDriverLicensePictureRequest';
|
|
27
|
+
// @ts-ignore
|
|
28
|
+
import { SaveDriverLicensePictureResponse } from '../model/saveDriverLicensePictureResponse';
|
|
29
|
+
// @ts-ignore
|
|
30
|
+
import { SaveDriverLicenseRequest } from '../model/saveDriverLicenseRequest';
|
|
31
|
+
|
|
32
|
+
// @ts-ignore
|
|
33
|
+
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
|
34
|
+
import { Configuration } from '../configuration';
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
@Injectable({
|
|
39
|
+
providedIn: 'root'
|
|
40
|
+
})
|
|
41
|
+
export class DriverLicenseControllerService {
|
|
42
|
+
|
|
43
|
+
protected basePath = 'http://otr-backend-service-us-devo.offtherecord.com';
|
|
44
|
+
public defaultHeaders = new HttpHeaders();
|
|
45
|
+
public configuration = new Configuration();
|
|
46
|
+
public encoder: HttpParameterCodec;
|
|
47
|
+
|
|
48
|
+
constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) {
|
|
49
|
+
if (configuration) {
|
|
50
|
+
this.configuration = configuration;
|
|
51
|
+
}
|
|
52
|
+
if (typeof this.configuration.basePath !== 'string') {
|
|
53
|
+
if (Array.isArray(basePath) && basePath.length > 0) {
|
|
54
|
+
basePath = basePath[0];
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
if (typeof basePath !== 'string') {
|
|
58
|
+
basePath = this.basePath;
|
|
59
|
+
}
|
|
60
|
+
this.configuration.basePath = basePath;
|
|
61
|
+
}
|
|
62
|
+
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
// @ts-ignore
|
|
67
|
+
private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
|
|
68
|
+
if (typeof value === "object" && value instanceof Date === false) {
|
|
69
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value);
|
|
70
|
+
} else {
|
|
71
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
|
|
72
|
+
}
|
|
73
|
+
return httpParams;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams {
|
|
77
|
+
if (value == null) {
|
|
78
|
+
return httpParams;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
if (typeof value === "object") {
|
|
82
|
+
if (Array.isArray(value)) {
|
|
83
|
+
(value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
|
|
84
|
+
} else if (value instanceof Date) {
|
|
85
|
+
if (key != null) {
|
|
86
|
+
httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10));
|
|
87
|
+
} else {
|
|
88
|
+
throw Error("key may not be null if value is Date");
|
|
89
|
+
}
|
|
90
|
+
} else {
|
|
91
|
+
Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive(
|
|
92
|
+
httpParams, value[k], key != null ? `${key}.${k}` : k));
|
|
93
|
+
}
|
|
94
|
+
} else if (key != null) {
|
|
95
|
+
httpParams = httpParams.append(key, value);
|
|
96
|
+
} else {
|
|
97
|
+
throw Error("key may not be null if value is not object or array");
|
|
98
|
+
}
|
|
99
|
+
return httpParams;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* getDriverLicenses
|
|
104
|
+
* @param userId userId
|
|
105
|
+
* @param getDeleted getDeleted
|
|
106
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
107
|
+
* @param reportProgress flag to report request and response progress.
|
|
108
|
+
*/
|
|
109
|
+
public getDriverLicensesUsingGET(userId: string, getDeleted?: boolean, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<GetDriverLicensesResponse>;
|
|
110
|
+
public getDriverLicensesUsingGET(userId: string, getDeleted?: boolean, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<HttpResponse<GetDriverLicensesResponse>>;
|
|
111
|
+
public getDriverLicensesUsingGET(userId: string, getDeleted?: boolean, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<HttpEvent<GetDriverLicensesResponse>>;
|
|
112
|
+
public getDriverLicensesUsingGET(userId: string, getDeleted?: boolean, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<any> {
|
|
113
|
+
if (userId === null || userId === undefined) {
|
|
114
|
+
throw new Error('Required parameter userId was null or undefined when calling getDriverLicensesUsingGET.');
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
let localVarQueryParameters = new HttpParams({encoder: this.encoder});
|
|
118
|
+
if (getDeleted !== undefined && getDeleted !== null) {
|
|
119
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
|
120
|
+
<any>getDeleted, 'getDeleted');
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
let localVarHeaders = this.defaultHeaders;
|
|
124
|
+
|
|
125
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
126
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
127
|
+
// to determine the Accept header
|
|
128
|
+
const httpHeaderAccepts: string[] = [
|
|
129
|
+
'*/*'
|
|
130
|
+
];
|
|
131
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
132
|
+
}
|
|
133
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
134
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
138
|
+
if (localVarHttpContext === undefined) {
|
|
139
|
+
localVarHttpContext = new HttpContext();
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
144
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
145
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
146
|
+
responseType_ = 'text';
|
|
147
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
148
|
+
responseType_ = 'json';
|
|
149
|
+
} else {
|
|
150
|
+
responseType_ = 'blob';
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
let localVarPath = `/api/v1/users/${this.configuration.encodeParam({name: "userId", value: userId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/driver-license`;
|
|
155
|
+
return this.httpClient.request<GetDriverLicensesResponse>('get', `${this.configuration.basePath}${localVarPath}`,
|
|
156
|
+
{
|
|
157
|
+
context: localVarHttpContext,
|
|
158
|
+
params: localVarQueryParameters,
|
|
159
|
+
responseType: <any>responseType_,
|
|
160
|
+
withCredentials: this.configuration.withCredentials,
|
|
161
|
+
headers: localVarHeaders,
|
|
162
|
+
observe: observe,
|
|
163
|
+
reportProgress: reportProgress
|
|
164
|
+
}
|
|
165
|
+
);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* saveDriverLicensePicture
|
|
170
|
+
* @param userId userId
|
|
171
|
+
* @param request request
|
|
172
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
173
|
+
* @param reportProgress flag to report request and response progress.
|
|
174
|
+
*/
|
|
175
|
+
public saveDriverLicensePictureUsingPOST(userId: string, request: SaveDriverLicensePictureRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<SaveDriverLicensePictureResponse>;
|
|
176
|
+
public saveDriverLicensePictureUsingPOST(userId: string, request: SaveDriverLicensePictureRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<HttpResponse<SaveDriverLicensePictureResponse>>;
|
|
177
|
+
public saveDriverLicensePictureUsingPOST(userId: string, request: SaveDriverLicensePictureRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<HttpEvent<SaveDriverLicensePictureResponse>>;
|
|
178
|
+
public saveDriverLicensePictureUsingPOST(userId: string, request: SaveDriverLicensePictureRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<any> {
|
|
179
|
+
if (userId === null || userId === undefined) {
|
|
180
|
+
throw new Error('Required parameter userId was null or undefined when calling saveDriverLicensePictureUsingPOST.');
|
|
181
|
+
}
|
|
182
|
+
if (request === null || request === undefined) {
|
|
183
|
+
throw new Error('Required parameter request was null or undefined when calling saveDriverLicensePictureUsingPOST.');
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
let localVarHeaders = this.defaultHeaders;
|
|
187
|
+
|
|
188
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
189
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
190
|
+
// to determine the Accept header
|
|
191
|
+
const httpHeaderAccepts: string[] = [
|
|
192
|
+
'*/*'
|
|
193
|
+
];
|
|
194
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
195
|
+
}
|
|
196
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
197
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
201
|
+
if (localVarHttpContext === undefined) {
|
|
202
|
+
localVarHttpContext = new HttpContext();
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
// to determine the Content-Type header
|
|
207
|
+
const consumes: string[] = [
|
|
208
|
+
'application/json'
|
|
209
|
+
];
|
|
210
|
+
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
|
|
211
|
+
if (httpContentTypeSelected !== undefined) {
|
|
212
|
+
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
216
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
217
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
218
|
+
responseType_ = 'text';
|
|
219
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
220
|
+
responseType_ = 'json';
|
|
221
|
+
} else {
|
|
222
|
+
responseType_ = 'blob';
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
let localVarPath = `/api/v1/users/${this.configuration.encodeParam({name: "userId", value: userId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/driver-license/picture`;
|
|
227
|
+
return this.httpClient.request<SaveDriverLicensePictureResponse>('post', `${this.configuration.basePath}${localVarPath}`,
|
|
228
|
+
{
|
|
229
|
+
context: localVarHttpContext,
|
|
230
|
+
body: request,
|
|
231
|
+
responseType: <any>responseType_,
|
|
232
|
+
withCredentials: this.configuration.withCredentials,
|
|
233
|
+
headers: localVarHeaders,
|
|
234
|
+
observe: observe,
|
|
235
|
+
reportProgress: reportProgress
|
|
236
|
+
}
|
|
237
|
+
);
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
/**
|
|
241
|
+
* saveDriverLicense
|
|
242
|
+
* @param userId userId
|
|
243
|
+
* @param request request
|
|
244
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
245
|
+
* @param reportProgress flag to report request and response progress.
|
|
246
|
+
*/
|
|
247
|
+
public saveDriverLicenseUsingPOST(userId: string, request: SaveDriverLicenseRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<DriverLicenseModel>;
|
|
248
|
+
public saveDriverLicenseUsingPOST(userId: string, request: SaveDriverLicenseRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<HttpResponse<DriverLicenseModel>>;
|
|
249
|
+
public saveDriverLicenseUsingPOST(userId: string, request: SaveDriverLicenseRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<HttpEvent<DriverLicenseModel>>;
|
|
250
|
+
public saveDriverLicenseUsingPOST(userId: string, request: SaveDriverLicenseRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<any> {
|
|
251
|
+
if (userId === null || userId === undefined) {
|
|
252
|
+
throw new Error('Required parameter userId was null or undefined when calling saveDriverLicenseUsingPOST.');
|
|
253
|
+
}
|
|
254
|
+
if (request === null || request === undefined) {
|
|
255
|
+
throw new Error('Required parameter request was null or undefined when calling saveDriverLicenseUsingPOST.');
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
let localVarHeaders = this.defaultHeaders;
|
|
259
|
+
|
|
260
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
261
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
262
|
+
// to determine the Accept header
|
|
263
|
+
const httpHeaderAccepts: string[] = [
|
|
264
|
+
'*/*'
|
|
265
|
+
];
|
|
266
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
267
|
+
}
|
|
268
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
269
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
273
|
+
if (localVarHttpContext === undefined) {
|
|
274
|
+
localVarHttpContext = new HttpContext();
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
|
|
278
|
+
// to determine the Content-Type header
|
|
279
|
+
const consumes: string[] = [
|
|
280
|
+
'application/json'
|
|
281
|
+
];
|
|
282
|
+
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
|
|
283
|
+
if (httpContentTypeSelected !== undefined) {
|
|
284
|
+
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
288
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
289
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
290
|
+
responseType_ = 'text';
|
|
291
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
292
|
+
responseType_ = 'json';
|
|
293
|
+
} else {
|
|
294
|
+
responseType_ = 'blob';
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
let localVarPath = `/api/v1/users/${this.configuration.encodeParam({name: "userId", value: userId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/driver-license`;
|
|
299
|
+
return this.httpClient.request<DriverLicenseModel>('post', `${this.configuration.basePath}${localVarPath}`,
|
|
300
|
+
{
|
|
301
|
+
context: localVarHttpContext,
|
|
302
|
+
body: request,
|
|
303
|
+
responseType: <any>responseType_,
|
|
304
|
+
withCredentials: this.configuration.withCredentials,
|
|
305
|
+
headers: localVarHeaders,
|
|
306
|
+
observe: observe,
|
|
307
|
+
reportProgress: reportProgress
|
|
308
|
+
}
|
|
309
|
+
);
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
}
|
|
@@ -46,6 +46,7 @@ import { DashboardControllerService } from './api/dashboardController.service';
|
|
|
46
46
|
import { DirectMailControllerService } from './api/directMailController.service';
|
|
47
47
|
import { DripControllerService } from './api/dripController.service';
|
|
48
48
|
import { DripWebhooksControllerService } from './api/dripWebhooksController.service';
|
|
49
|
+
import { DriverLicenseControllerService } from './api/driverLicenseController.service';
|
|
49
50
|
import { EmailSubscriptionControllerService } from './api/emailSubscriptionController.service';
|
|
50
51
|
import { ExternalContentVoteControllerService } from './api/externalContentVoteController.service';
|
|
51
52
|
import { ExternalTicketLookupControllerService } from './api/externalTicketLookupController.service';
|
|
@@ -0,0 +1,40 @@
|
|
|
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 { UserAssetModel } from './userAssetModel';
|
|
13
|
+
import { AddressDomain } from './addressDomain';
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
export interface DriverLicenseModel {
|
|
17
|
+
address?: AddressDomain;
|
|
18
|
+
deleted?: boolean;
|
|
19
|
+
dob?: string;
|
|
20
|
+
documentDiscriminatorId?: string;
|
|
21
|
+
driverLicenseBackAsset?: UserAssetModel;
|
|
22
|
+
driverLicenseFrontAsset?: UserAssetModel;
|
|
23
|
+
driverLicenseId?: number;
|
|
24
|
+
driverLicenseNumber?: string;
|
|
25
|
+
expirationDate?: string;
|
|
26
|
+
eyeColor?: string;
|
|
27
|
+
firstName?: string;
|
|
28
|
+
height?: string;
|
|
29
|
+
isOrganDonor?: boolean;
|
|
30
|
+
issueDate?: string;
|
|
31
|
+
lastName?: string;
|
|
32
|
+
licenseClass?: string;
|
|
33
|
+
licenseClassEndorsements?: string;
|
|
34
|
+
licenseRestrictions?: string;
|
|
35
|
+
sex?: string;
|
|
36
|
+
stateName?: string;
|
|
37
|
+
userId?: number;
|
|
38
|
+
weight?: string;
|
|
39
|
+
}
|
|
40
|
+
|
|
@@ -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 { DriverLicenseModel } from './driverLicenseModel';
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
export interface GetDriverLicensesResponse {
|
|
16
|
+
driverLicenses?: Array<DriverLicenseModel>;
|
|
17
|
+
}
|
|
18
|
+
|
|
@@ -202,6 +202,7 @@ export * from './documentDecisionRequest';
|
|
|
202
202
|
export * from './dripRemoveRequest';
|
|
203
203
|
export * from './dripWebhookData';
|
|
204
204
|
export * from './dripWebhookEvent';
|
|
205
|
+
export * from './driverLicenseModel';
|
|
205
206
|
export * from './duration';
|
|
206
207
|
export * from './editConversationMessageRequest';
|
|
207
208
|
export * from './enableViolationModel';
|
|
@@ -293,6 +294,7 @@ export * from './getCustomerServiceAgentsResponse';
|
|
|
293
294
|
export * from './getDeclinedCasesRequest';
|
|
294
295
|
export * from './getDeclinedCasesResponse';
|
|
295
296
|
export * from './getDocumentsRequest';
|
|
297
|
+
export * from './getDriverLicensesResponse';
|
|
296
298
|
export * from './getEmailTemplateResponse';
|
|
297
299
|
export * from './getExternalContentUserVotesResponse';
|
|
298
300
|
export * from './getExternalTicketInputParamsResponse';
|
|
@@ -561,6 +563,9 @@ export * from './saveCaseNotesRequest';
|
|
|
561
563
|
export * from './saveCaseUserRequest';
|
|
562
564
|
export * from './saveCoachingCardRequest';
|
|
563
565
|
export * from './saveCoachingCardUserRequest';
|
|
566
|
+
export * from './saveDriverLicensePictureRequest';
|
|
567
|
+
export * from './saveDriverLicensePictureResponse';
|
|
568
|
+
export * from './saveDriverLicenseRequest';
|
|
564
569
|
export * from './saveExternalContentVoteRequest';
|
|
565
570
|
export * from './saveItemToWatchlistRequest';
|
|
566
571
|
export * from './saveLawfirmSurchargeModel';
|
|
@@ -696,6 +701,7 @@ export * from './updateViolationRequest';
|
|
|
696
701
|
export * from './upsertAddressRequest';
|
|
697
702
|
export * from './user';
|
|
698
703
|
export * from './userAccountModel';
|
|
704
|
+
export * from './userAssetModel';
|
|
699
705
|
export * from './userAuditEventModel';
|
|
700
706
|
export * from './userBookingsDomain';
|
|
701
707
|
export * from './userDetails';
|
|
@@ -0,0 +1,19 @@
|
|
|
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 SaveDriverLicensePictureRequest {
|
|
15
|
+
base64ImageData?: string;
|
|
16
|
+
imageContentType?: string;
|
|
17
|
+
isBackOfLicense?: boolean;
|
|
18
|
+
}
|
|
19
|
+
|
|
@@ -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 { DriverLicenseModel } from './driverLicenseModel';
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
export interface SaveDriverLicensePictureResponse {
|
|
16
|
+
userAssetModel?: DriverLicenseModel;
|
|
17
|
+
}
|
|
18
|
+
|
|
@@ -0,0 +1,31 @@
|
|
|
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 SaveDriverLicenseRequest {
|
|
15
|
+
address?: string;
|
|
16
|
+
dob?: string;
|
|
17
|
+
driverLicenseBackUserAssetId?: number;
|
|
18
|
+
driverLicenseFrontUserAssetId?: number;
|
|
19
|
+
driverLicenseId?: number;
|
|
20
|
+
driverLicenseNumber?: string;
|
|
21
|
+
expirationDate?: string;
|
|
22
|
+
firstName?: string;
|
|
23
|
+
isDeleted?: boolean;
|
|
24
|
+
issueDate?: string;
|
|
25
|
+
lastName?: string;
|
|
26
|
+
licenseClass?: string;
|
|
27
|
+
licenseClassEndorsements?: string;
|
|
28
|
+
licenseRestrictions?: string;
|
|
29
|
+
stateName?: string;
|
|
30
|
+
}
|
|
31
|
+
|
|
@@ -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 UserAssetModel {
|
|
15
|
+
assetSizeInBytes?: number;
|
|
16
|
+
assetType?: string;
|
|
17
|
+
assetUrl?: string;
|
|
18
|
+
signedAssetUrl?: string;
|
|
19
|
+
userAssetId?: number;
|
|
20
|
+
}
|
|
21
|
+
|