@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
|
@@ -26,4 +26,13 @@ export declare class LawfirmDashboardControllerApi {
|
|
|
26
26
|
* @param startDate startDate
|
|
27
27
|
*/
|
|
28
28
|
getLawfirmGrossEarningsUsingGET(lawfirmId: number, period: 'DAILY' | 'HOURLY' | 'MONTHLY' | 'WEEKLY', endDate?: string, startDate?: string, extraHttpRequestParams?: any): ng.IHttpPromise<models.GetLawfirmGrossEarningsResponse>;
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @summary getTopCourtEarnings
|
|
32
|
+
* @param lawfirmId lawfirmId
|
|
33
|
+
* @param endDate endDate
|
|
34
|
+
* @param limit limit
|
|
35
|
+
* @param startDate startDate
|
|
36
|
+
*/
|
|
37
|
+
getTopCourtEarningsUsingGET(lawfirmId: number, endDate?: string, limit?: number, startDate?: string, extraHttpRequestParams?: any): ng.IHttpPromise<models.GetTopCourtEarningsResponse>;
|
|
29
38
|
}
|
|
@@ -61,5 +61,42 @@ export class LawfirmDashboardControllerApi {
|
|
|
61
61
|
}
|
|
62
62
|
return this.$http(httpRequestParams);
|
|
63
63
|
}
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @summary getTopCourtEarnings
|
|
67
|
+
* @param lawfirmId lawfirmId
|
|
68
|
+
* @param endDate endDate
|
|
69
|
+
* @param limit limit
|
|
70
|
+
* @param startDate startDate
|
|
71
|
+
*/
|
|
72
|
+
getTopCourtEarningsUsingGET(lawfirmId, endDate, limit, startDate, extraHttpRequestParams) {
|
|
73
|
+
const localVarPath = this.basePath + '/api/v1/lawfirms/{lawfirmId}/dashboard/earnings/top-courts'
|
|
74
|
+
.replace('{' + 'lawfirmId' + '}', encodeURIComponent(String(lawfirmId)));
|
|
75
|
+
let queryParameters = {};
|
|
76
|
+
let headerParams = Object.assign({}, this.defaultHeaders);
|
|
77
|
+
// verify required parameter 'lawfirmId' is not null or undefined
|
|
78
|
+
if (lawfirmId === null || lawfirmId === undefined) {
|
|
79
|
+
throw new Error('Required parameter lawfirmId was null or undefined when calling getTopCourtEarningsUsingGET.');
|
|
80
|
+
}
|
|
81
|
+
if (endDate !== undefined) {
|
|
82
|
+
queryParameters['endDate'] = endDate;
|
|
83
|
+
}
|
|
84
|
+
if (limit !== undefined) {
|
|
85
|
+
queryParameters['limit'] = limit;
|
|
86
|
+
}
|
|
87
|
+
if (startDate !== undefined) {
|
|
88
|
+
queryParameters['startDate'] = startDate;
|
|
89
|
+
}
|
|
90
|
+
let httpRequestParams = {
|
|
91
|
+
method: 'GET',
|
|
92
|
+
url: localVarPath,
|
|
93
|
+
params: queryParameters,
|
|
94
|
+
headers: headerParams
|
|
95
|
+
};
|
|
96
|
+
if (extraHttpRequestParams) {
|
|
97
|
+
httpRequestParams = Object.assign(httpRequestParams, extraHttpRequestParams);
|
|
98
|
+
}
|
|
99
|
+
return this.$http(httpRequestParams);
|
|
100
|
+
}
|
|
64
101
|
}
|
|
65
102
|
LawfirmDashboardControllerApi.$inject = ['$http', '$httpParamSerializer', 'basePath'];
|
|
@@ -0,0 +1,16 @@
|
|
|
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 * as models from './models';
|
|
13
|
+
export interface GetTopCourtEarningsResponse {
|
|
14
|
+
"data"?: Array<models.TopCourtEarningsModel>;
|
|
15
|
+
"totalGrossEarningsInCents"?: number;
|
|
16
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
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
|
+
export {};
|
|
@@ -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
|
+
export interface TopCourtEarningsModel {
|
|
13
|
+
"caseCount"?: number;
|
|
14
|
+
"courtName"?: string;
|
|
15
|
+
"grossEarningsInCents"?: number;
|
|
16
|
+
"percentageOfTotal"?: number;
|
|
17
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
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
|
+
export {};
|
|
@@ -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';
|
|
@@ -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';
|
|
@@ -10,13 +10,19 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import { GetLawfirmGrossEarningsResponse } from '../models';
|
|
13
|
+
import { GetLawfirmGrossEarningsResponse, GetTopCourtEarningsResponse } from '../models';
|
|
14
14
|
export interface GetLawfirmGrossEarningsUsingGETRequest {
|
|
15
15
|
lawfirmId: number;
|
|
16
16
|
period: GetLawfirmGrossEarningsUsingGETPeriodEnum;
|
|
17
17
|
endDate?: Date;
|
|
18
18
|
startDate?: Date;
|
|
19
19
|
}
|
|
20
|
+
export interface GetTopCourtEarningsUsingGETRequest {
|
|
21
|
+
lawfirmId: number;
|
|
22
|
+
endDate?: Date;
|
|
23
|
+
limit?: number;
|
|
24
|
+
startDate?: Date;
|
|
25
|
+
}
|
|
20
26
|
/**
|
|
21
27
|
*
|
|
22
28
|
*/
|
|
@@ -29,6 +35,14 @@ export declare class LawfirmDashboardControllerApi extends runtime.BaseAPI {
|
|
|
29
35
|
* getLawfirmGrossEarnings
|
|
30
36
|
*/
|
|
31
37
|
getLawfirmGrossEarningsUsingGET(requestParameters: GetLawfirmGrossEarningsUsingGETRequest): Promise<GetLawfirmGrossEarningsResponse>;
|
|
38
|
+
/**
|
|
39
|
+
* getTopCourtEarnings
|
|
40
|
+
*/
|
|
41
|
+
getTopCourtEarningsUsingGETRaw(requestParameters: GetTopCourtEarningsUsingGETRequest): Promise<runtime.ApiResponse<GetTopCourtEarningsResponse>>;
|
|
42
|
+
/**
|
|
43
|
+
* getTopCourtEarnings
|
|
44
|
+
*/
|
|
45
|
+
getTopCourtEarningsUsingGET(requestParameters: GetTopCourtEarningsUsingGETRequest): Promise<GetTopCourtEarningsResponse>;
|
|
32
46
|
}
|
|
33
47
|
/**
|
|
34
48
|
* @export
|
|
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
23
|
import * as runtime from '../runtime';
|
|
24
|
-
import { GetLawfirmGrossEarningsResponseFromJSON, } from '../models';
|
|
24
|
+
import { GetLawfirmGrossEarningsResponseFromJSON, GetTopCourtEarningsResponseFromJSON, } from '../models';
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
@@ -66,6 +66,43 @@ export class LawfirmDashboardControllerApi extends runtime.BaseAPI {
|
|
|
66
66
|
return yield response.value();
|
|
67
67
|
});
|
|
68
68
|
}
|
|
69
|
+
/**
|
|
70
|
+
* getTopCourtEarnings
|
|
71
|
+
*/
|
|
72
|
+
getTopCourtEarningsUsingGETRaw(requestParameters) {
|
|
73
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
74
|
+
if (requestParameters.lawfirmId === null || requestParameters.lawfirmId === undefined) {
|
|
75
|
+
throw new runtime.RequiredError('lawfirmId', 'Required parameter requestParameters.lawfirmId was null or undefined when calling getTopCourtEarningsUsingGET.');
|
|
76
|
+
}
|
|
77
|
+
const queryParameters = {};
|
|
78
|
+
if (requestParameters.endDate !== undefined) {
|
|
79
|
+
queryParameters['endDate'] = requestParameters.endDate.toISOString().substr(0, 10);
|
|
80
|
+
}
|
|
81
|
+
if (requestParameters.limit !== undefined) {
|
|
82
|
+
queryParameters['limit'] = requestParameters.limit;
|
|
83
|
+
}
|
|
84
|
+
if (requestParameters.startDate !== undefined) {
|
|
85
|
+
queryParameters['startDate'] = requestParameters.startDate.toISOString().substr(0, 10);
|
|
86
|
+
}
|
|
87
|
+
const headerParameters = {};
|
|
88
|
+
const response = yield this.request({
|
|
89
|
+
path: `/api/v1/lawfirms/{lawfirmId}/dashboard/earnings/top-courts`.replace(`{${"lawfirmId"}}`, encodeURIComponent(String(requestParameters.lawfirmId))),
|
|
90
|
+
method: 'GET',
|
|
91
|
+
headers: headerParameters,
|
|
92
|
+
query: queryParameters,
|
|
93
|
+
});
|
|
94
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetTopCourtEarningsResponseFromJSON(jsonValue));
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* getTopCourtEarnings
|
|
99
|
+
*/
|
|
100
|
+
getTopCourtEarningsUsingGET(requestParameters) {
|
|
101
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
102
|
+
const response = yield this.getTopCourtEarningsUsingGETRaw(requestParameters);
|
|
103
|
+
return yield response.value();
|
|
104
|
+
});
|
|
105
|
+
}
|
|
69
106
|
}
|
|
70
107
|
/**
|
|
71
108
|
* @export
|
|
@@ -0,0 +1,34 @@
|
|
|
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 './';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface GetTopCourtEarningsResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface GetTopCourtEarningsResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<TopCourtEarningsModel>}
|
|
22
|
+
* @memberof GetTopCourtEarningsResponse
|
|
23
|
+
*/
|
|
24
|
+
data?: Array<TopCourtEarningsModel>;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof GetTopCourtEarningsResponse
|
|
29
|
+
*/
|
|
30
|
+
totalGrossEarningsInCents?: number;
|
|
31
|
+
}
|
|
32
|
+
export declare function GetTopCourtEarningsResponseFromJSON(json: any): GetTopCourtEarningsResponse;
|
|
33
|
+
export declare function GetTopCourtEarningsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetTopCourtEarningsResponse;
|
|
34
|
+
export declare function GetTopCourtEarningsResponseToJSON(value?: GetTopCourtEarningsResponse | null): any;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* OffTheRecord Rest Service API - Devo
|
|
5
|
+
* A service to handle your traffic tickets
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { exists } from '../runtime';
|
|
15
|
+
import { TopCourtEarningsModelFromJSON, TopCourtEarningsModelToJSON, } from './';
|
|
16
|
+
export function GetTopCourtEarningsResponseFromJSON(json) {
|
|
17
|
+
return GetTopCourtEarningsResponseFromJSONTyped(json, false);
|
|
18
|
+
}
|
|
19
|
+
export function GetTopCourtEarningsResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
20
|
+
if ((json === undefined) || (json === null)) {
|
|
21
|
+
return json;
|
|
22
|
+
}
|
|
23
|
+
return {
|
|
24
|
+
'data': !exists(json, 'data') ? undefined : (json['data'].map(TopCourtEarningsModelFromJSON)),
|
|
25
|
+
'totalGrossEarningsInCents': !exists(json, 'totalGrossEarningsInCents') ? undefined : json['totalGrossEarningsInCents'],
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
export function GetTopCourtEarningsResponseToJSON(value) {
|
|
29
|
+
if (value === undefined) {
|
|
30
|
+
return undefined;
|
|
31
|
+
}
|
|
32
|
+
if (value === null) {
|
|
33
|
+
return null;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'data': value.data === undefined ? undefined : (value.data.map(TopCourtEarningsModelToJSON)),
|
|
37
|
+
'totalGrossEarningsInCents': value.totalGrossEarningsInCents,
|
|
38
|
+
};
|
|
39
|
+
}
|
|
@@ -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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface TopCourtEarningsModel
|
|
16
|
+
*/
|
|
17
|
+
export interface TopCourtEarningsModel {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof TopCourtEarningsModel
|
|
22
|
+
*/
|
|
23
|
+
caseCount?: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof TopCourtEarningsModel
|
|
28
|
+
*/
|
|
29
|
+
courtName?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof TopCourtEarningsModel
|
|
34
|
+
*/
|
|
35
|
+
grossEarningsInCents?: number;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof TopCourtEarningsModel
|
|
40
|
+
*/
|
|
41
|
+
percentageOfTotal?: number;
|
|
42
|
+
}
|
|
43
|
+
export declare function TopCourtEarningsModelFromJSON(json: any): TopCourtEarningsModel;
|
|
44
|
+
export declare function TopCourtEarningsModelFromJSONTyped(json: any, ignoreDiscriminator: boolean): TopCourtEarningsModel;
|
|
45
|
+
export declare function TopCourtEarningsModelToJSON(value?: TopCourtEarningsModel | null): any;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* OffTheRecord Rest Service API - Devo
|
|
5
|
+
* A service to handle your traffic tickets
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { exists } from '../runtime';
|
|
15
|
+
export function TopCourtEarningsModelFromJSON(json) {
|
|
16
|
+
return TopCourtEarningsModelFromJSONTyped(json, false);
|
|
17
|
+
}
|
|
18
|
+
export function TopCourtEarningsModelFromJSONTyped(json, ignoreDiscriminator) {
|
|
19
|
+
if ((json === undefined) || (json === null)) {
|
|
20
|
+
return json;
|
|
21
|
+
}
|
|
22
|
+
return {
|
|
23
|
+
'caseCount': !exists(json, 'caseCount') ? undefined : json['caseCount'],
|
|
24
|
+
'courtName': !exists(json, 'courtName') ? undefined : json['courtName'],
|
|
25
|
+
'grossEarningsInCents': !exists(json, 'grossEarningsInCents') ? undefined : json['grossEarningsInCents'],
|
|
26
|
+
'percentageOfTotal': !exists(json, 'percentageOfTotal') ? undefined : json['percentageOfTotal'],
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
export function TopCourtEarningsModelToJSON(value) {
|
|
30
|
+
if (value === undefined) {
|
|
31
|
+
return undefined;
|
|
32
|
+
}
|
|
33
|
+
if (value === null) {
|
|
34
|
+
return null;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'caseCount': value.caseCount,
|
|
38
|
+
'courtName': value.courtName,
|
|
39
|
+
'grossEarningsInCents': value.grossEarningsInCents,
|
|
40
|
+
'percentageOfTotal': value.percentageOfTotal,
|
|
41
|
+
};
|
|
42
|
+
}
|
|
@@ -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';
|
|
@@ -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';
|
|
@@ -3862,6 +3862,23 @@ export interface paths {
|
|
|
3862
3862
|
patch?: never;
|
|
3863
3863
|
trace?: never;
|
|
3864
3864
|
};
|
|
3865
|
+
"/api/v1/lawfirms/{lawfirmId}/dashboard/earnings/top-courts": {
|
|
3866
|
+
parameters: {
|
|
3867
|
+
query?: never;
|
|
3868
|
+
header?: never;
|
|
3869
|
+
path?: never;
|
|
3870
|
+
cookie?: never;
|
|
3871
|
+
};
|
|
3872
|
+
/** getTopCourtEarnings */
|
|
3873
|
+
get: operations["getTopCourtEarningsUsingGET"];
|
|
3874
|
+
put?: never;
|
|
3875
|
+
post?: never;
|
|
3876
|
+
delete?: never;
|
|
3877
|
+
options?: never;
|
|
3878
|
+
head?: never;
|
|
3879
|
+
patch?: never;
|
|
3880
|
+
trace?: never;
|
|
3881
|
+
};
|
|
3865
3882
|
"/api/v1/lawfirms/{lawfirmId}/dashboard/gross-earnings": {
|
|
3866
3883
|
parameters: {
|
|
3867
3884
|
query?: never;
|
|
@@ -11717,6 +11734,12 @@ export interface components {
|
|
|
11717
11734
|
GetTicketReviewResponse: {
|
|
11718
11735
|
ticketReview?: components["schemas"]["TicketReviewRequestRes"];
|
|
11719
11736
|
};
|
|
11737
|
+
/** GetTopCourtEarningsResponse */
|
|
11738
|
+
GetTopCourtEarningsResponse: {
|
|
11739
|
+
data?: components["schemas"]["TopCourtEarningsModel"][];
|
|
11740
|
+
/** Format: int64 */
|
|
11741
|
+
totalGrossEarningsInCents?: number;
|
|
11742
|
+
};
|
|
11720
11743
|
/** GetTrafficViolationModel */
|
|
11721
11744
|
GetTrafficViolationModel: {
|
|
11722
11745
|
classDescription?: string;
|
|
@@ -15811,6 +15834,16 @@ export interface components {
|
|
|
15811
15834
|
/** Format: int32 */
|
|
15812
15835
|
year?: number;
|
|
15813
15836
|
};
|
|
15837
|
+
/** TopCourtEarningsModel */
|
|
15838
|
+
TopCourtEarningsModel: {
|
|
15839
|
+
/** Format: int32 */
|
|
15840
|
+
caseCount?: number;
|
|
15841
|
+
courtName?: string;
|
|
15842
|
+
/** Format: int64 */
|
|
15843
|
+
grossEarningsInCents?: number;
|
|
15844
|
+
/** Format: double */
|
|
15845
|
+
percentageOfTotal?: number;
|
|
15846
|
+
};
|
|
15814
15847
|
/** Topic */
|
|
15815
15848
|
Topic: {
|
|
15816
15849
|
id?: string;
|
|
@@ -29464,6 +29497,57 @@ export interface operations {
|
|
|
29464
29497
|
};
|
|
29465
29498
|
};
|
|
29466
29499
|
};
|
|
29500
|
+
getTopCourtEarningsUsingGET: {
|
|
29501
|
+
parameters: {
|
|
29502
|
+
query?: {
|
|
29503
|
+
/** @description limit */
|
|
29504
|
+
limit?: number;
|
|
29505
|
+
/** @description startDate */
|
|
29506
|
+
startDate?: string;
|
|
29507
|
+
/** @description endDate */
|
|
29508
|
+
endDate?: string;
|
|
29509
|
+
};
|
|
29510
|
+
header?: never;
|
|
29511
|
+
path: {
|
|
29512
|
+
/** @description lawfirmId */
|
|
29513
|
+
lawfirmId: number;
|
|
29514
|
+
};
|
|
29515
|
+
cookie?: never;
|
|
29516
|
+
};
|
|
29517
|
+
requestBody?: never;
|
|
29518
|
+
responses: {
|
|
29519
|
+
/** @description OK */
|
|
29520
|
+
200: {
|
|
29521
|
+
headers: {
|
|
29522
|
+
[name: string]: unknown;
|
|
29523
|
+
};
|
|
29524
|
+
content: {
|
|
29525
|
+
"*/*": components["schemas"]["GetTopCourtEarningsResponse"];
|
|
29526
|
+
};
|
|
29527
|
+
};
|
|
29528
|
+
/** @description Unauthorized */
|
|
29529
|
+
401: {
|
|
29530
|
+
headers: {
|
|
29531
|
+
[name: string]: unknown;
|
|
29532
|
+
};
|
|
29533
|
+
content?: never;
|
|
29534
|
+
};
|
|
29535
|
+
/** @description Forbidden */
|
|
29536
|
+
403: {
|
|
29537
|
+
headers: {
|
|
29538
|
+
[name: string]: unknown;
|
|
29539
|
+
};
|
|
29540
|
+
content?: never;
|
|
29541
|
+
};
|
|
29542
|
+
/** @description Not Found */
|
|
29543
|
+
404: {
|
|
29544
|
+
headers: {
|
|
29545
|
+
[name: string]: unknown;
|
|
29546
|
+
};
|
|
29547
|
+
content?: never;
|
|
29548
|
+
};
|
|
29549
|
+
};
|
|
29550
|
+
};
|
|
29467
29551
|
getLawfirmGrossEarningsUsingGET: {
|
|
29468
29552
|
parameters: {
|
|
29469
29553
|
query: {
|