@otr-app/shared-backend-generated-client 2.3.45 → 2.3.46
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 +1 -0
- package/dist/angular/api/api.ts +3 -1
- package/dist/angular/api/legalServicesController.service.ts +154 -0
- package/dist/angular/api.module.ts +1 -0
- package/dist/otrBackendService.js +43 -0
- package/dist/otrBackendService.min.js +5 -5
- package/dist/typescript/api/LegalServicesControllerApi.d.ts +27 -0
- package/dist/typescript/api/LegalServicesControllerApi.js +60 -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/api.module.ts +1 -0
- package/package.json +1 -1
|
@@ -59,6 +59,7 @@ api/lawfirmStorefrontController.service.ts
|
|
|
59
59
|
api/lawfirmSurchargeController.service.ts
|
|
60
60
|
api/lawfirmTransactionsController.service.ts
|
|
61
61
|
api/lawyerController.service.ts
|
|
62
|
+
api/legalServicesController.service.ts
|
|
62
63
|
api/lineItemController.service.ts
|
|
63
64
|
api/listCasesController.service.ts
|
|
64
65
|
api/mediaCreationController.service.ts
|
package/dist/angular/api/api.ts
CHANGED
|
@@ -112,6 +112,8 @@ export * from './lawfirmTransactionsController.service';
|
|
|
112
112
|
import { LawfirmTransactionsControllerService } from './lawfirmTransactionsController.service';
|
|
113
113
|
export * from './lawyerController.service';
|
|
114
114
|
import { LawyerControllerService } from './lawyerController.service';
|
|
115
|
+
export * from './legalServicesController.service';
|
|
116
|
+
import { LegalServicesControllerService } from './legalServicesController.service';
|
|
115
117
|
export * from './lineItemController.service';
|
|
116
118
|
import { LineItemControllerService } from './lineItemController.service';
|
|
117
119
|
export * from './listCasesController.service';
|
|
@@ -190,4 +192,4 @@ export * from './verificationController.service';
|
|
|
190
192
|
import { VerificationControllerService } from './verificationController.service';
|
|
191
193
|
export * from './violationPenaltyController.service';
|
|
192
194
|
import { ViolationPenaltyControllerService } from './violationPenaltyController.service';
|
|
193
|
-
export const APIS = [ActionRequiredControllerService, ActivityFeedControllerService, AddressControllerService, AlertNotificationControllerService, AppEventsControllerService, AuditLawfirmEventsControllerService, AuthenticationControllerService, AwsCredentialsControllerService, BlogWebhookControllerService, BranchLinkControllerService, CaseActionsControllerService, CaseControllerService, CaseCreationControllerService, CaseNotesControllerService, CasePaymentControllerService, CaseReferralCodeControllerService, CaseRefundControllerService, 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, LineItemControllerService, ListCasesControllerService, MediaCreationControllerService, MessagesControllerService, NotesControllerService, OnDemandRequestControllerService, OneTimePasswordControllerService, PhoneLeadsControllerService, PushNotificationControllerService, RecurringBillingControllerService, RefLinkControllerService, ReferralCodeControllerService, ReferralControllerService, ReferralSourceControllerService, RefundEligibilityControllerService, RegistrationControllerService, ReportingControllerService, ScheduledTaskControllerService, SingleSignOnControllerService, SnsListenerControllerService, SocialLoginControllerService, StripeCardControllerService, StripeControllerService, StripeSyncControllerService, StripeWebhookControllerService, TicketReviewControllerService, TrafficViolationControllerService, UrlRedirectControllerService, UserAccountControllerService, UserAuditControllerService, UserControllerService, UserPasswordControllerService, UserProfileControllerService, UserSearchControllerService, UserSettingsControllerService, UtilityControllerService, ValidationControllerService, VerificationControllerService, ViolationPenaltyControllerService];
|
|
195
|
+
export const APIS = [ActionRequiredControllerService, ActivityFeedControllerService, AddressControllerService, AlertNotificationControllerService, AppEventsControllerService, AuditLawfirmEventsControllerService, AuthenticationControllerService, AwsCredentialsControllerService, BlogWebhookControllerService, BranchLinkControllerService, CaseActionsControllerService, CaseControllerService, CaseCreationControllerService, CaseNotesControllerService, CasePaymentControllerService, CaseReferralCodeControllerService, CaseRefundControllerService, 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, OnDemandRequestControllerService, OneTimePasswordControllerService, PhoneLeadsControllerService, PushNotificationControllerService, RecurringBillingControllerService, RefLinkControllerService, ReferralCodeControllerService, ReferralControllerService, ReferralSourceControllerService, RefundEligibilityControllerService, RegistrationControllerService, ReportingControllerService, ScheduledTaskControllerService, SingleSignOnControllerService, SnsListenerControllerService, SocialLoginControllerService, StripeCardControllerService, StripeControllerService, StripeSyncControllerService, StripeWebhookControllerService, TicketReviewControllerService, TrafficViolationControllerService, UrlRedirectControllerService, UserAccountControllerService, UserAuditControllerService, UserControllerService, UserPasswordControllerService, UserProfileControllerService, UserSearchControllerService, UserSettingsControllerService, UtilityControllerService, ValidationControllerService, VerificationControllerService, ViolationPenaltyControllerService];
|
|
@@ -0,0 +1,154 @@
|
|
|
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
|
+
|
|
22
|
+
// @ts-ignore
|
|
23
|
+
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
|
24
|
+
import { Configuration } from '../configuration';
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
@Injectable({
|
|
29
|
+
providedIn: 'root'
|
|
30
|
+
})
|
|
31
|
+
export class LegalServicesControllerService {
|
|
32
|
+
|
|
33
|
+
protected basePath = 'http://otr-backend-service-us-devo.offtherecord.com';
|
|
34
|
+
public defaultHeaders = new HttpHeaders();
|
|
35
|
+
public configuration = new Configuration();
|
|
36
|
+
public encoder: HttpParameterCodec;
|
|
37
|
+
|
|
38
|
+
constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) {
|
|
39
|
+
if (configuration) {
|
|
40
|
+
this.configuration = configuration;
|
|
41
|
+
}
|
|
42
|
+
if (typeof this.configuration.basePath !== 'string') {
|
|
43
|
+
if (Array.isArray(basePath) && basePath.length > 0) {
|
|
44
|
+
basePath = basePath[0];
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
if (typeof basePath !== 'string') {
|
|
48
|
+
basePath = this.basePath;
|
|
49
|
+
}
|
|
50
|
+
this.configuration.basePath = basePath;
|
|
51
|
+
}
|
|
52
|
+
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
// @ts-ignore
|
|
57
|
+
private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
|
|
58
|
+
if (typeof value === "object" && value instanceof Date === false) {
|
|
59
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value);
|
|
60
|
+
} else {
|
|
61
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
|
|
62
|
+
}
|
|
63
|
+
return httpParams;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams {
|
|
67
|
+
if (value == null) {
|
|
68
|
+
return httpParams;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
if (typeof value === "object") {
|
|
72
|
+
if (Array.isArray(value)) {
|
|
73
|
+
(value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
|
|
74
|
+
} else if (value instanceof Date) {
|
|
75
|
+
if (key != null) {
|
|
76
|
+
httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10));
|
|
77
|
+
} else {
|
|
78
|
+
throw Error("key may not be null if value is Date");
|
|
79
|
+
}
|
|
80
|
+
} else {
|
|
81
|
+
Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive(
|
|
82
|
+
httpParams, value[k], key != null ? `${key}.${k}` : k));
|
|
83
|
+
}
|
|
84
|
+
} else if (key != null) {
|
|
85
|
+
httpParams = httpParams.append(key, value);
|
|
86
|
+
} else {
|
|
87
|
+
throw Error("key may not be null if value is not object or array");
|
|
88
|
+
}
|
|
89
|
+
return httpParams;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* selectLegalService
|
|
94
|
+
* @param citationId citationId
|
|
95
|
+
* @param serviceId serviceId
|
|
96
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
97
|
+
* @param reportProgress flag to report request and response progress.
|
|
98
|
+
*/
|
|
99
|
+
public selectLegalServiceUsingPUT(citationId: number, serviceId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<object>;
|
|
100
|
+
public selectLegalServiceUsingPUT(citationId: number, serviceId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<HttpResponse<object>>;
|
|
101
|
+
public selectLegalServiceUsingPUT(citationId: number, serviceId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<HttpEvent<object>>;
|
|
102
|
+
public selectLegalServiceUsingPUT(citationId: number, serviceId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<any> {
|
|
103
|
+
if (citationId === null || citationId === undefined) {
|
|
104
|
+
throw new Error('Required parameter citationId was null or undefined when calling selectLegalServiceUsingPUT.');
|
|
105
|
+
}
|
|
106
|
+
if (serviceId === null || serviceId === undefined) {
|
|
107
|
+
throw new Error('Required parameter serviceId was null or undefined when calling selectLegalServiceUsingPUT.');
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
let localVarHeaders = this.defaultHeaders;
|
|
111
|
+
|
|
112
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
113
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
114
|
+
// to determine the Accept header
|
|
115
|
+
const httpHeaderAccepts: string[] = [
|
|
116
|
+
'*/*'
|
|
117
|
+
];
|
|
118
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
119
|
+
}
|
|
120
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
121
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
125
|
+
if (localVarHttpContext === undefined) {
|
|
126
|
+
localVarHttpContext = new HttpContext();
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
131
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
132
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
133
|
+
responseType_ = 'text';
|
|
134
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
135
|
+
responseType_ = 'json';
|
|
136
|
+
} else {
|
|
137
|
+
responseType_ = 'blob';
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
let localVarPath = `/api/v1/citations/${this.configuration.encodeParam({name: "citationId", value: citationId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/legal-services/${this.configuration.encodeParam({name: "serviceId", value: serviceId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`;
|
|
142
|
+
return this.httpClient.request<object>('put', `${this.configuration.basePath}${localVarPath}`,
|
|
143
|
+
{
|
|
144
|
+
context: localVarHttpContext,
|
|
145
|
+
responseType: <any>responseType_,
|
|
146
|
+
withCredentials: this.configuration.withCredentials,
|
|
147
|
+
headers: localVarHeaders,
|
|
148
|
+
observe: observe,
|
|
149
|
+
reportProgress: reportProgress
|
|
150
|
+
}
|
|
151
|
+
);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
}
|
|
@@ -59,6 +59,7 @@ import { LawfirmStorefrontControllerService } from './api/lawfirmStorefrontContr
|
|
|
59
59
|
import { LawfirmSurchargeControllerService } from './api/lawfirmSurchargeController.service';
|
|
60
60
|
import { LawfirmTransactionsControllerService } from './api/lawfirmTransactionsController.service';
|
|
61
61
|
import { LawyerControllerService } from './api/lawyerController.service';
|
|
62
|
+
import { LegalServicesControllerService } from './api/legalServicesController.service';
|
|
62
63
|
import { LineItemControllerService } from './api/lineItemController.service';
|
|
63
64
|
import { ListCasesControllerService } from './api/listCasesController.service';
|
|
64
65
|
import { MediaCreationControllerService } from './api/mediaCreationController.service';
|
|
@@ -4038,6 +4038,49 @@ angular.module('otrBackendService', [])
|
|
|
4038
4038
|
|
|
4039
4039
|
return deferred.promise;
|
|
4040
4040
|
};
|
|
4041
|
+
/**
|
|
4042
|
+
* selectLegalService
|
|
4043
|
+
* @method
|
|
4044
|
+
* @name OtrService#selectLegalServiceUsingPUT
|
|
4045
|
+
* @param {object} parameters - method options and parameters
|
|
4046
|
+
* @param {integer} parameters.citationId - citationId
|
|
4047
|
+
* @param {integer} parameters.serviceId - serviceId
|
|
4048
|
+
*/
|
|
4049
|
+
OtrService.prototype.selectLegalServiceUsingPUT = function(parameters) {
|
|
4050
|
+
if (parameters === undefined) {
|
|
4051
|
+
parameters = {};
|
|
4052
|
+
}
|
|
4053
|
+
var deferred = $q.defer();
|
|
4054
|
+
var domain = this.domain,
|
|
4055
|
+
path = '/api/v1/citations/{citationId}/legal-services/{serviceId}';
|
|
4056
|
+
var body = {},
|
|
4057
|
+
queryParameters = {},
|
|
4058
|
+
headers = {},
|
|
4059
|
+
form = {};
|
|
4060
|
+
|
|
4061
|
+
headers['Accept'] = ['*/*'];
|
|
4062
|
+
headers['Content-Type'] = ['application/json'];
|
|
4063
|
+
|
|
4064
|
+
path = path.replace('{citationId}', parameters['citationId']);
|
|
4065
|
+
|
|
4066
|
+
if (parameters['citationId'] === undefined) {
|
|
4067
|
+
deferred.reject(new Error('Missing required parameter: citationId'));
|
|
4068
|
+
return deferred.promise;
|
|
4069
|
+
}
|
|
4070
|
+
|
|
4071
|
+
path = path.replace('{serviceId}', parameters['serviceId']);
|
|
4072
|
+
|
|
4073
|
+
if (parameters['serviceId'] === undefined) {
|
|
4074
|
+
deferred.reject(new Error('Missing required parameter: serviceId'));
|
|
4075
|
+
return deferred.promise;
|
|
4076
|
+
}
|
|
4077
|
+
|
|
4078
|
+
queryParameters = mergeQueryParams(parameters, queryParameters);
|
|
4079
|
+
|
|
4080
|
+
this.request('PUT', domain + path, parameters, body, headers, queryParameters, form, deferred);
|
|
4081
|
+
|
|
4082
|
+
return deferred.promise;
|
|
4083
|
+
};
|
|
4041
4084
|
/**
|
|
4042
4085
|
* setLockForCitation
|
|
4043
4086
|
* @method
|