@otr-app/shared-backend-generated-client 2.5.129 → 2.5.130
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 +3 -0
- package/dist/angular/api/api.ts +3 -1
- package/dist/angular/api/lawfirmDashboardController.service.ts +173 -0
- package/dist/angular/api.module.ts +1 -0
- package/dist/angular/model/earningsByPeriodDto.ts +18 -0
- package/dist/angular/model/getLawfirmGrossEarningsResponse.ts +18 -0
- package/dist/angular/model/models.ts +2 -0
- package/dist/otrBackendService.js +54 -0
- package/dist/otrBackendService.min.js +4 -4
- package/dist/typescript/api/LawfirmDashboardControllerApi.d.ts +29 -0
- package/dist/typescript/api/LawfirmDashboardControllerApi.js +65 -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/EarningsByPeriodDto.d.ts +15 -0
- package/dist/typescript/model/EarningsByPeriodDto.js +12 -0
- package/dist/typescript/model/GetLawfirmGrossEarningsResponse.d.ts +15 -0
- package/dist/typescript/model/GetLawfirmGrossEarningsResponse.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 +42 -0
- package/dist/typescript-fetch/apis/LawfirmDashboardControllerApi.js +80 -0
- package/dist/typescript-fetch/apis/index.d.ts +1 -0
- package/dist/typescript-fetch/apis/index.js +1 -0
- package/dist/typescript-fetch/models/EarningsByPeriodDto.d.ts +33 -0
- package/dist/typescript-fetch/models/EarningsByPeriodDto.js +38 -0
- package/dist/typescript-fetch/models/GetLawfirmGrossEarningsResponse.d.ts +28 -0
- package/dist/typescript-fetch/models/GetLawfirmGrossEarningsResponse.js +37 -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 +85 -0
- package/dist/typescript-open-api/otr-backend.js +7 -0
- package/package.json +1 -1
|
@@ -62,6 +62,7 @@ api/intercomWebhookController.service.ts
|
|
|
62
62
|
api/lawfirmCaseDecisionController.service.ts
|
|
63
63
|
api/lawfirmCasesController.service.ts
|
|
64
64
|
api/lawfirmController.service.ts
|
|
65
|
+
api/lawfirmDashboardController.service.ts
|
|
65
66
|
api/lawfirmDocumentController.service.ts
|
|
66
67
|
api/lawfirmFeeCoverageController.service.ts
|
|
67
68
|
api/lawfirmPaymentModelController.service.ts
|
|
@@ -351,6 +352,7 @@ model/dripWebhookData.ts
|
|
|
351
352
|
model/dripWebhookEvent.ts
|
|
352
353
|
model/driverLicenseModel.ts
|
|
353
354
|
model/duration.ts
|
|
355
|
+
model/earningsByPeriodDto.ts
|
|
354
356
|
model/editConversationMessageRequest.ts
|
|
355
357
|
model/editCustomerReviewRequest.ts
|
|
356
358
|
model/enableViolationModel.ts
|
|
@@ -463,6 +465,7 @@ model/getLawfirmFeeCoverageResponse.ts
|
|
|
463
465
|
model/getLawfirmFeeModel.ts
|
|
464
466
|
model/getLawfirmFeesResponse.ts
|
|
465
467
|
model/getLawfirmFinancialTransactionsResponse.ts
|
|
468
|
+
model/getLawfirmGrossEarningsResponse.ts
|
|
466
469
|
model/getLawfirmInboxMessagesResponse.ts
|
|
467
470
|
model/getLawfirmJobTitleResponse.ts
|
|
468
471
|
model/getLawfirmLawyersResponse.ts
|
package/dist/angular/api/api.ts
CHANGED
|
@@ -118,6 +118,8 @@ export * from './lawfirmCasesController.service';
|
|
|
118
118
|
import { LawfirmCasesControllerService } from './lawfirmCasesController.service';
|
|
119
119
|
export * from './lawfirmController.service';
|
|
120
120
|
import { LawfirmControllerService } from './lawfirmController.service';
|
|
121
|
+
export * from './lawfirmDashboardController.service';
|
|
122
|
+
import { LawfirmDashboardControllerService } from './lawfirmDashboardController.service';
|
|
121
123
|
export * from './lawfirmDocumentController.service';
|
|
122
124
|
import { LawfirmDocumentControllerService } from './lawfirmDocumentController.service';
|
|
123
125
|
export * from './lawfirmFeeCoverageController.service';
|
|
@@ -228,4 +230,4 @@ export * from './websocketMessageController.service';
|
|
|
228
230
|
import { WebsocketMessageControllerService } from './websocketMessageController.service';
|
|
229
231
|
export * from './workflowStateController.service';
|
|
230
232
|
import { WorkflowStateControllerService } from './workflowStateController.service';
|
|
231
|
-
export const APIS = [ActionRequiredControllerService, ActivityFeedControllerService, AddressControllerService, AlertNotificationControllerService, AppEventsControllerService, AuditLawfirmEventsControllerService, AuditLogControllerService, AuthenticationControllerService, AwsCredentialsControllerService, BranchLinkControllerService, CaptchaControllerService, CaseActionsControllerService, CaseControllerService, CaseCounterOfferControllerService, CaseCreationControllerService, CaseDeclineControllerService, CaseNotesControllerService, CasePaymentControllerService, CaseReferralCodeControllerService, CaseRefundControllerService, CaseResolutionControllerService, CaseStatusControllerService, CaseTransferControllerService, CaseUserControllerService, CitationAuditControllerService, CitationControllerService, CoachingCardsControllerService, ConfigurationControllerService, ConsoleListControllerService, ContactLoopWebhookControllerService, ContactTimelineControllerService, ConversationControllerService, CountyControllerService, CourtControllerService, CrmControllerService, CustomerLeadControllerService, CustomerReviewControllerService, CustomerServiceAgentBookingsControllerService, CustomerServiceAgentControllerService, DashboardControllerService, DirectMailControllerService, DripControllerService, DripWebhooksControllerService, DriverLicenseControllerService, EmployeeControllerService, EventBridgeEmailNotificationControllerService, ExternalContentVoteControllerService, ExternalTicketLookupControllerService, FeedbackControllerService, FreshcallerControllerService, FreshdeskTicketControllerService, GetCaseControllerService, HouseholdMateControllerService, HubspotWebhookControllerService, InsuranceCalculatorControllerService, IntercomTicketControllerService, IntercomWebhookControllerService, LawfirmCaseDecisionControllerService, LawfirmCasesControllerService, LawfirmControllerService, LawfirmDocumentControllerService, LawfirmFeeCoverageControllerService, LawfirmPaymentModelControllerService, LawfirmRatesControllerService, LawfirmSettingsControllerService, LawfirmStorefrontControllerService, LawfirmSurchargeControllerService, LawfirmTransactionsControllerService, LawyerControllerService, LegalServicesControllerService, LineItemControllerService, ListCasesControllerService, MediaCreationControllerService, MessagesControllerService, NotesControllerService, OcrPipelineControllerService, 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, UserSocialProfileControllerService, UtilityControllerService, ValidationControllerService, VerificationControllerService, ViolationControllerService, ViolationPenaltyControllerService, WatchlistsControllerService, WebsocketMessageControllerService, WorkflowStateControllerService];
|
|
233
|
+
export const APIS = [ActionRequiredControllerService, ActivityFeedControllerService, AddressControllerService, AlertNotificationControllerService, AppEventsControllerService, AuditLawfirmEventsControllerService, AuditLogControllerService, AuthenticationControllerService, AwsCredentialsControllerService, BranchLinkControllerService, CaptchaControllerService, CaseActionsControllerService, CaseControllerService, CaseCounterOfferControllerService, CaseCreationControllerService, CaseDeclineControllerService, CaseNotesControllerService, CasePaymentControllerService, CaseReferralCodeControllerService, CaseRefundControllerService, CaseResolutionControllerService, CaseStatusControllerService, CaseTransferControllerService, CaseUserControllerService, CitationAuditControllerService, CitationControllerService, CoachingCardsControllerService, ConfigurationControllerService, ConsoleListControllerService, ContactLoopWebhookControllerService, ContactTimelineControllerService, ConversationControllerService, CountyControllerService, CourtControllerService, CrmControllerService, CustomerLeadControllerService, CustomerReviewControllerService, CustomerServiceAgentBookingsControllerService, CustomerServiceAgentControllerService, DashboardControllerService, DirectMailControllerService, DripControllerService, DripWebhooksControllerService, DriverLicenseControllerService, EmployeeControllerService, EventBridgeEmailNotificationControllerService, ExternalContentVoteControllerService, ExternalTicketLookupControllerService, FeedbackControllerService, FreshcallerControllerService, FreshdeskTicketControllerService, GetCaseControllerService, HouseholdMateControllerService, HubspotWebhookControllerService, InsuranceCalculatorControllerService, IntercomTicketControllerService, IntercomWebhookControllerService, LawfirmCaseDecisionControllerService, LawfirmCasesControllerService, LawfirmControllerService, LawfirmDashboardControllerService, LawfirmDocumentControllerService, LawfirmFeeCoverageControllerService, LawfirmPaymentModelControllerService, LawfirmRatesControllerService, LawfirmSettingsControllerService, LawfirmStorefrontControllerService, LawfirmSurchargeControllerService, LawfirmTransactionsControllerService, LawyerControllerService, LegalServicesControllerService, LineItemControllerService, ListCasesControllerService, MediaCreationControllerService, MessagesControllerService, NotesControllerService, OcrPipelineControllerService, 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, UserSocialProfileControllerService, UtilityControllerService, ValidationControllerService, VerificationControllerService, ViolationControllerService, ViolationPenaltyControllerService, WatchlistsControllerService, WebsocketMessageControllerService, WorkflowStateControllerService];
|
|
@@ -0,0 +1,173 @@
|
|
|
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 { GetLawfirmGrossEarningsResponse } from '../model/getLawfirmGrossEarningsResponse';
|
|
23
|
+
|
|
24
|
+
// @ts-ignore
|
|
25
|
+
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
|
26
|
+
import { Configuration } from '../configuration';
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
@Injectable({
|
|
31
|
+
providedIn: 'root'
|
|
32
|
+
})
|
|
33
|
+
export class LawfirmDashboardControllerService {
|
|
34
|
+
|
|
35
|
+
protected basePath = 'http://otr-backend-service-us-devo.offtherecord.com';
|
|
36
|
+
public defaultHeaders = new HttpHeaders();
|
|
37
|
+
public configuration = new Configuration();
|
|
38
|
+
public encoder: HttpParameterCodec;
|
|
39
|
+
|
|
40
|
+
constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) {
|
|
41
|
+
if (configuration) {
|
|
42
|
+
this.configuration = configuration;
|
|
43
|
+
}
|
|
44
|
+
if (typeof this.configuration.basePath !== 'string') {
|
|
45
|
+
if (Array.isArray(basePath) && basePath.length > 0) {
|
|
46
|
+
basePath = basePath[0];
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
if (typeof basePath !== 'string') {
|
|
50
|
+
basePath = this.basePath;
|
|
51
|
+
}
|
|
52
|
+
this.configuration.basePath = basePath;
|
|
53
|
+
}
|
|
54
|
+
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
// @ts-ignore
|
|
59
|
+
private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
|
|
60
|
+
if (typeof value === "object" && value instanceof Date === false) {
|
|
61
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value);
|
|
62
|
+
} else {
|
|
63
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
|
|
64
|
+
}
|
|
65
|
+
return httpParams;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams {
|
|
69
|
+
if (value == null) {
|
|
70
|
+
return httpParams;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
if (typeof value === "object") {
|
|
74
|
+
if (Array.isArray(value)) {
|
|
75
|
+
(value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
|
|
76
|
+
} else if (value instanceof Date) {
|
|
77
|
+
if (key != null) {
|
|
78
|
+
httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10));
|
|
79
|
+
} else {
|
|
80
|
+
throw Error("key may not be null if value is Date");
|
|
81
|
+
}
|
|
82
|
+
} else {
|
|
83
|
+
Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive(
|
|
84
|
+
httpParams, value[k], key != null ? `${key}.${k}` : k));
|
|
85
|
+
}
|
|
86
|
+
} else if (key != null) {
|
|
87
|
+
httpParams = httpParams.append(key, value);
|
|
88
|
+
} else {
|
|
89
|
+
throw Error("key may not be null if value is not object or array");
|
|
90
|
+
}
|
|
91
|
+
return httpParams;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* getLawfirmGrossEarnings
|
|
96
|
+
* @param lawfirmId lawfirmId
|
|
97
|
+
* @param period period
|
|
98
|
+
* @param endDate endDate
|
|
99
|
+
* @param startDate startDate
|
|
100
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
101
|
+
* @param reportProgress flag to report request and response progress.
|
|
102
|
+
*/
|
|
103
|
+
public getLawfirmGrossEarningsUsingGET(lawfirmId: number, period: 'DAILY' | 'HOURLY' | 'MONTHLY' | 'WEEKLY', endDate?: string, startDate?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<GetLawfirmGrossEarningsResponse>;
|
|
104
|
+
public getLawfirmGrossEarningsUsingGET(lawfirmId: number, period: 'DAILY' | 'HOURLY' | 'MONTHLY' | 'WEEKLY', endDate?: string, startDate?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<HttpResponse<GetLawfirmGrossEarningsResponse>>;
|
|
105
|
+
public getLawfirmGrossEarningsUsingGET(lawfirmId: number, period: 'DAILY' | 'HOURLY' | 'MONTHLY' | 'WEEKLY', endDate?: string, startDate?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<HttpEvent<GetLawfirmGrossEarningsResponse>>;
|
|
106
|
+
public getLawfirmGrossEarningsUsingGET(lawfirmId: number, period: 'DAILY' | 'HOURLY' | 'MONTHLY' | 'WEEKLY', endDate?: string, startDate?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<any> {
|
|
107
|
+
if (lawfirmId === null || lawfirmId === undefined) {
|
|
108
|
+
throw new Error('Required parameter lawfirmId was null or undefined when calling getLawfirmGrossEarningsUsingGET.');
|
|
109
|
+
}
|
|
110
|
+
if (period === null || period === undefined) {
|
|
111
|
+
throw new Error('Required parameter period was null or undefined when calling getLawfirmGrossEarningsUsingGET.');
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
let localVarQueryParameters = new HttpParams({encoder: this.encoder});
|
|
115
|
+
if (endDate !== undefined && endDate !== null) {
|
|
116
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
|
117
|
+
<any>endDate, 'endDate');
|
|
118
|
+
}
|
|
119
|
+
if (period !== undefined && period !== null) {
|
|
120
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
|
121
|
+
<any>period, 'period');
|
|
122
|
+
}
|
|
123
|
+
if (startDate !== undefined && startDate !== null) {
|
|
124
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
|
125
|
+
<any>startDate, 'startDate');
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
let localVarHeaders = this.defaultHeaders;
|
|
129
|
+
|
|
130
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
131
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
132
|
+
// to determine the Accept header
|
|
133
|
+
const httpHeaderAccepts: string[] = [
|
|
134
|
+
'*/*'
|
|
135
|
+
];
|
|
136
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
137
|
+
}
|
|
138
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
139
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
143
|
+
if (localVarHttpContext === undefined) {
|
|
144
|
+
localVarHttpContext = new HttpContext();
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
149
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
150
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
151
|
+
responseType_ = 'text';
|
|
152
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
153
|
+
responseType_ = 'json';
|
|
154
|
+
} else {
|
|
155
|
+
responseType_ = 'blob';
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
let localVarPath = `/api/v1/lawfirms/${this.configuration.encodeParam({name: "lawfirmId", value: lawfirmId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/dashboard/gross-earnings`;
|
|
160
|
+
return this.httpClient.request<GetLawfirmGrossEarningsResponse>('get', `${this.configuration.basePath}${localVarPath}`,
|
|
161
|
+
{
|
|
162
|
+
context: localVarHttpContext,
|
|
163
|
+
params: localVarQueryParameters,
|
|
164
|
+
responseType: <any>responseType_,
|
|
165
|
+
withCredentials: this.configuration.withCredentials,
|
|
166
|
+
headers: localVarHeaders,
|
|
167
|
+
observe: observe,
|
|
168
|
+
reportProgress: reportProgress
|
|
169
|
+
}
|
|
170
|
+
);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
}
|
|
@@ -62,6 +62,7 @@ import { IntercomWebhookControllerService } from './api/intercomWebhookControlle
|
|
|
62
62
|
import { LawfirmCaseDecisionControllerService } from './api/lawfirmCaseDecisionController.service';
|
|
63
63
|
import { LawfirmCasesControllerService } from './api/lawfirmCasesController.service';
|
|
64
64
|
import { LawfirmControllerService } from './api/lawfirmController.service';
|
|
65
|
+
import { LawfirmDashboardControllerService } from './api/lawfirmDashboardController.service';
|
|
65
66
|
import { LawfirmDocumentControllerService } from './api/lawfirmDocumentController.service';
|
|
66
67
|
import { LawfirmFeeCoverageControllerService } from './api/lawfirmFeeCoverageController.service';
|
|
67
68
|
import { LawfirmPaymentModelControllerService } from './api/lawfirmPaymentModelController.service';
|
|
@@ -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
|
+
|
|
13
|
+
|
|
14
|
+
export interface EarningsByPeriodDto {
|
|
15
|
+
periodDate?: string;
|
|
16
|
+
totalAmountInCents?: number;
|
|
17
|
+
}
|
|
18
|
+
|
|
@@ -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 { EarningsByPeriodDto } from './earningsByPeriodDto';
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
export interface GetLawfirmGrossEarningsResponse {
|
|
16
|
+
earnings?: Array<EarningsByPeriodDto>;
|
|
17
|
+
}
|
|
18
|
+
|
|
@@ -228,6 +228,7 @@ export * from './dripWebhookData';
|
|
|
228
228
|
export * from './dripWebhookEvent';
|
|
229
229
|
export * from './driverLicenseModel';
|
|
230
230
|
export * from './duration';
|
|
231
|
+
export * from './earningsByPeriodDto';
|
|
231
232
|
export * from './editConversationMessageRequest';
|
|
232
233
|
export * from './editCustomerReviewRequest';
|
|
233
234
|
export * from './enableViolationModel';
|
|
@@ -340,6 +341,7 @@ export * from './getLawfirmFeeCoverageResponse';
|
|
|
340
341
|
export * from './getLawfirmFeeModel';
|
|
341
342
|
export * from './getLawfirmFeesResponse';
|
|
342
343
|
export * from './getLawfirmFinancialTransactionsResponse';
|
|
344
|
+
export * from './getLawfirmGrossEarningsResponse';
|
|
343
345
|
export * from './getLawfirmInboxMessagesResponse';
|
|
344
346
|
export * from './getLawfirmJobTitleResponse';
|
|
345
347
|
export * from './getLawfirmLawyersResponse';
|
|
@@ -10797,6 +10797,60 @@ angular.module('otrBackendService', [])
|
|
|
10797
10797
|
|
|
10798
10798
|
return deferred.promise;
|
|
10799
10799
|
};
|
|
10800
|
+
/**
|
|
10801
|
+
* getLawfirmGrossEarnings
|
|
10802
|
+
* @method
|
|
10803
|
+
* @name OtrService#getLawfirmGrossEarningsUsingGET
|
|
10804
|
+
* @param {object} parameters - method options and parameters
|
|
10805
|
+
* @param {string} parameters.endDate - endDate
|
|
10806
|
+
* @param {integer} parameters.lawfirmId - lawfirmId
|
|
10807
|
+
* @param {string} parameters.period - period
|
|
10808
|
+
* @param {string} parameters.startDate - startDate
|
|
10809
|
+
*/
|
|
10810
|
+
OtrService.prototype.getLawfirmGrossEarningsUsingGET = function(parameters) {
|
|
10811
|
+
if (parameters === undefined) {
|
|
10812
|
+
parameters = {};
|
|
10813
|
+
}
|
|
10814
|
+
var deferred = $q.defer();
|
|
10815
|
+
var domain = this.domain,
|
|
10816
|
+
path = '/api/v1/lawfirms/{lawfirmId}/dashboard/gross-earnings';
|
|
10817
|
+
var body = {},
|
|
10818
|
+
queryParameters = {},
|
|
10819
|
+
headers = {},
|
|
10820
|
+
form = {};
|
|
10821
|
+
|
|
10822
|
+
headers['Accept'] = ['*/*'];
|
|
10823
|
+
|
|
10824
|
+
if (parameters['endDate'] !== undefined) {
|
|
10825
|
+
queryParameters['endDate'] = parameters['endDate'];
|
|
10826
|
+
}
|
|
10827
|
+
|
|
10828
|
+
path = path.replace('{lawfirmId}', parameters['lawfirmId']);
|
|
10829
|
+
|
|
10830
|
+
if (parameters['lawfirmId'] === undefined) {
|
|
10831
|
+
deferred.reject(new Error('Missing required parameter: lawfirmId'));
|
|
10832
|
+
return deferred.promise;
|
|
10833
|
+
}
|
|
10834
|
+
|
|
10835
|
+
if (parameters['period'] !== undefined) {
|
|
10836
|
+
queryParameters['period'] = parameters['period'];
|
|
10837
|
+
}
|
|
10838
|
+
|
|
10839
|
+
if (parameters['period'] === undefined) {
|
|
10840
|
+
deferred.reject(new Error('Missing required parameter: period'));
|
|
10841
|
+
return deferred.promise;
|
|
10842
|
+
}
|
|
10843
|
+
|
|
10844
|
+
if (parameters['startDate'] !== undefined) {
|
|
10845
|
+
queryParameters['startDate'] = parameters['startDate'];
|
|
10846
|
+
}
|
|
10847
|
+
|
|
10848
|
+
queryParameters = mergeQueryParams(parameters, queryParameters);
|
|
10849
|
+
|
|
10850
|
+
this.request('GET', domain + path, parameters, body, headers, queryParameters, form, deferred);
|
|
10851
|
+
|
|
10852
|
+
return deferred.promise;
|
|
10853
|
+
};
|
|
10800
10854
|
/**
|
|
10801
10855
|
* chargeFeeToLawfirm
|
|
10802
10856
|
* @method
|