@otr-app/shared-backend-generated-client 2.5.160 → 2.5.161
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 +2 -0
- package/dist/angular/api/lawfirmDashboardController.service.ts +78 -0
- package/dist/angular/model/getTopCourtEarningsResponse.ts +19 -0
- package/dist/angular/model/models.ts +2 -0
- package/dist/angular/model/topCourtEarningsModel.ts +20 -0
- package/dist/otrBackendService.js +52 -0
- package/dist/otrBackendService.min.js +5 -5
- package/dist/typescript/api/LawfirmDashboardControllerApi.d.ts +9 -0
- package/dist/typescript/api/LawfirmDashboardControllerApi.js +37 -0
- package/dist/typescript/model/GetTopCourtEarningsResponse.d.ts +16 -0
- package/dist/typescript/model/GetTopCourtEarningsResponse.js +12 -0
- package/dist/typescript/model/TopCourtEarningsModel.d.ts +17 -0
- package/dist/typescript/model/TopCourtEarningsModel.js +12 -0
- package/dist/typescript/model/models.d.ts +2 -0
- package/dist/typescript/model/models.js +2 -0
- package/dist/typescript-fetch/apis/LawfirmDashboardControllerApi.d.ts +15 -1
- package/dist/typescript-fetch/apis/LawfirmDashboardControllerApi.js +38 -1
- package/dist/typescript-fetch/models/GetTopCourtEarningsResponse.d.ts +34 -0
- package/dist/typescript-fetch/models/GetTopCourtEarningsResponse.js +39 -0
- package/dist/typescript-fetch/models/TopCourtEarningsModel.d.ts +45 -0
- package/dist/typescript-fetch/models/TopCourtEarningsModel.js +42 -0
- package/dist/typescript-fetch/models/index.d.ts +2 -0
- package/dist/typescript-fetch/models/index.js +2 -0
- package/dist/typescript-open-api/otr-backend.d.ts +84 -0
- package/package.json +1 -1
|
@@ -520,6 +520,7 @@ model/getStripeChargesResponse.ts
|
|
|
520
520
|
model/getStripeConnectedAccountsResponse.ts
|
|
521
521
|
model/getSupportTicketsResponse.ts
|
|
522
522
|
model/getTicketReviewResponse.ts
|
|
523
|
+
model/getTopCourtEarningsResponse.ts
|
|
523
524
|
model/getTrafficViolationModel.ts
|
|
524
525
|
model/getTrafficViolationTypesResponse.ts
|
|
525
526
|
model/getUserAddressesResponse.ts
|
|
@@ -897,6 +898,7 @@ model/timelineItem.ts
|
|
|
897
898
|
model/timestamp.ts
|
|
898
899
|
model/timestampReq.ts
|
|
899
900
|
model/timestampRes.ts
|
|
901
|
+
model/topCourtEarningsModel.ts
|
|
900
902
|
model/topic.ts
|
|
901
903
|
model/topics.ts
|
|
902
904
|
model/trafficViolationInputRequest.ts
|
|
@@ -20,6 +20,8 @@ import { Observable } from 'rxjs';
|
|
|
20
20
|
|
|
21
21
|
// @ts-ignore
|
|
22
22
|
import { GetLawfirmGrossEarningsResponse } from '../model/getLawfirmGrossEarningsResponse';
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
import { GetTopCourtEarningsResponse } from '../model/getTopCourtEarningsResponse';
|
|
23
25
|
|
|
24
26
|
// @ts-ignore
|
|
25
27
|
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
|
@@ -170,4 +172,80 @@ export class LawfirmDashboardControllerService {
|
|
|
170
172
|
);
|
|
171
173
|
}
|
|
172
174
|
|
|
175
|
+
/**
|
|
176
|
+
* getTopCourtEarnings
|
|
177
|
+
* @param lawfirmId lawfirmId
|
|
178
|
+
* @param endDate endDate
|
|
179
|
+
* @param limit limit
|
|
180
|
+
* @param startDate startDate
|
|
181
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
182
|
+
* @param reportProgress flag to report request and response progress.
|
|
183
|
+
*/
|
|
184
|
+
public getTopCourtEarningsUsingGET(lawfirmId: number, endDate?: string, limit?: number, startDate?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<GetTopCourtEarningsResponse>;
|
|
185
|
+
public getTopCourtEarningsUsingGET(lawfirmId: number, endDate?: string, limit?: number, startDate?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<HttpResponse<GetTopCourtEarningsResponse>>;
|
|
186
|
+
public getTopCourtEarningsUsingGET(lawfirmId: number, endDate?: string, limit?: number, startDate?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<HttpEvent<GetTopCourtEarningsResponse>>;
|
|
187
|
+
public getTopCourtEarningsUsingGET(lawfirmId: number, endDate?: string, limit?: number, startDate?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<any> {
|
|
188
|
+
if (lawfirmId === null || lawfirmId === undefined) {
|
|
189
|
+
throw new Error('Required parameter lawfirmId was null or undefined when calling getTopCourtEarningsUsingGET.');
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
let localVarQueryParameters = new HttpParams({encoder: this.encoder});
|
|
193
|
+
if (endDate !== undefined && endDate !== null) {
|
|
194
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
|
195
|
+
<any>endDate, 'endDate');
|
|
196
|
+
}
|
|
197
|
+
if (limit !== undefined && limit !== null) {
|
|
198
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
|
199
|
+
<any>limit, 'limit');
|
|
200
|
+
}
|
|
201
|
+
if (startDate !== undefined && startDate !== null) {
|
|
202
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
|
203
|
+
<any>startDate, 'startDate');
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
let localVarHeaders = this.defaultHeaders;
|
|
207
|
+
|
|
208
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
209
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
210
|
+
// to determine the Accept header
|
|
211
|
+
const httpHeaderAccepts: string[] = [
|
|
212
|
+
'*/*'
|
|
213
|
+
];
|
|
214
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
215
|
+
}
|
|
216
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
217
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
221
|
+
if (localVarHttpContext === undefined) {
|
|
222
|
+
localVarHttpContext = new HttpContext();
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
227
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
228
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
229
|
+
responseType_ = 'text';
|
|
230
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
231
|
+
responseType_ = 'json';
|
|
232
|
+
} else {
|
|
233
|
+
responseType_ = 'blob';
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
let localVarPath = `/api/v1/lawfirms/${this.configuration.encodeParam({name: "lawfirmId", value: lawfirmId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/dashboard/earnings/top-courts`;
|
|
238
|
+
return this.httpClient.request<GetTopCourtEarningsResponse>('get', `${this.configuration.basePath}${localVarPath}`,
|
|
239
|
+
{
|
|
240
|
+
context: localVarHttpContext,
|
|
241
|
+
params: localVarQueryParameters,
|
|
242
|
+
responseType: <any>responseType_,
|
|
243
|
+
withCredentials: this.configuration.withCredentials,
|
|
244
|
+
headers: localVarHeaders,
|
|
245
|
+
observe: observe,
|
|
246
|
+
reportProgress: reportProgress
|
|
247
|
+
}
|
|
248
|
+
);
|
|
249
|
+
}
|
|
250
|
+
|
|
173
251
|
}
|
|
@@ -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
|
+
import { TopCourtEarningsModel } from './topCourtEarningsModel';
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
export interface GetTopCourtEarningsResponse {
|
|
16
|
+
data?: Array<TopCourtEarningsModel>;
|
|
17
|
+
totalGrossEarningsInCents?: number;
|
|
18
|
+
}
|
|
19
|
+
|
|
@@ -396,6 +396,7 @@ export * from './getStripeChargesResponse';
|
|
|
396
396
|
export * from './getStripeConnectedAccountsResponse';
|
|
397
397
|
export * from './getSupportTicketsResponse';
|
|
398
398
|
export * from './getTicketReviewResponse';
|
|
399
|
+
export * from './getTopCourtEarningsResponse';
|
|
399
400
|
export * from './getTrafficViolationModel';
|
|
400
401
|
export * from './getTrafficViolationTypesResponse';
|
|
401
402
|
export * from './getUserAddressesResponse';
|
|
@@ -772,6 +773,7 @@ export * from './timelineItem';
|
|
|
772
773
|
export * from './timestamp';
|
|
773
774
|
export * from './timestampReq';
|
|
774
775
|
export * from './timestampRes';
|
|
776
|
+
export * from './topCourtEarningsModel';
|
|
775
777
|
export * from './topic';
|
|
776
778
|
export * from './topics';
|
|
777
779
|
export * from './trafficViolationInputRequest';
|
|
@@ -0,0 +1,20 @@
|
|
|
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 TopCourtEarningsModel {
|
|
15
|
+
caseCount?: number;
|
|
16
|
+
courtName?: string;
|
|
17
|
+
grossEarningsInCents?: number;
|
|
18
|
+
percentageOfTotal?: number;
|
|
19
|
+
}
|
|
20
|
+
|
|
@@ -10917,6 +10917,58 @@ angular.module('otrBackendService', [])
|
|
|
10917
10917
|
|
|
10918
10918
|
return deferred.promise;
|
|
10919
10919
|
};
|
|
10920
|
+
/**
|
|
10921
|
+
* getTopCourtEarnings
|
|
10922
|
+
* @method
|
|
10923
|
+
* @name OtrService#getTopCourtEarningsUsingGET
|
|
10924
|
+
* @param {object} parameters - method options and parameters
|
|
10925
|
+
* @param {string} parameters.endDate - endDate
|
|
10926
|
+
* @param {integer} parameters.lawfirmId - lawfirmId
|
|
10927
|
+
* @param {integer} parameters.limit - limit
|
|
10928
|
+
* @param {string} parameters.startDate - startDate
|
|
10929
|
+
*/
|
|
10930
|
+
OtrService.prototype.getTopCourtEarningsUsingGET = function(parameters) {
|
|
10931
|
+
if (parameters === undefined) {
|
|
10932
|
+
parameters = {};
|
|
10933
|
+
}
|
|
10934
|
+
var deferred = $q.defer();
|
|
10935
|
+
var domain = this.domain,
|
|
10936
|
+
path = '/api/v1/lawfirms/{lawfirmId}/dashboard/earnings/top-courts';
|
|
10937
|
+
var body = {},
|
|
10938
|
+
queryParameters = {},
|
|
10939
|
+
headers = {},
|
|
10940
|
+
form = {};
|
|
10941
|
+
|
|
10942
|
+
headers['Accept'] = ['*/*'];
|
|
10943
|
+
|
|
10944
|
+
if (parameters['endDate'] !== undefined) {
|
|
10945
|
+
queryParameters['endDate'] = parameters['endDate'];
|
|
10946
|
+
}
|
|
10947
|
+
|
|
10948
|
+
path = path.replace('{lawfirmId}', parameters['lawfirmId']);
|
|
10949
|
+
|
|
10950
|
+
if (parameters['lawfirmId'] === undefined) {
|
|
10951
|
+
deferred.reject(new Error('Missing required parameter: lawfirmId'));
|
|
10952
|
+
return deferred.promise;
|
|
10953
|
+
}
|
|
10954
|
+
|
|
10955
|
+
/** set default value **/
|
|
10956
|
+
queryParameters['limit'] = 10;
|
|
10957
|
+
|
|
10958
|
+
if (parameters['limit'] !== undefined) {
|
|
10959
|
+
queryParameters['limit'] = parameters['limit'];
|
|
10960
|
+
}
|
|
10961
|
+
|
|
10962
|
+
if (parameters['startDate'] !== undefined) {
|
|
10963
|
+
queryParameters['startDate'] = parameters['startDate'];
|
|
10964
|
+
}
|
|
10965
|
+
|
|
10966
|
+
queryParameters = mergeQueryParams(parameters, queryParameters);
|
|
10967
|
+
|
|
10968
|
+
this.request('GET', domain + path, parameters, body, headers, queryParameters, form, deferred);
|
|
10969
|
+
|
|
10970
|
+
return deferred.promise;
|
|
10971
|
+
};
|
|
10920
10972
|
/**
|
|
10921
10973
|
* getLawfirmGrossEarnings
|
|
10922
10974
|
* @method
|