@otr-app/shared-backend-generated-client 2.5.89 → 2.5.91
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/casePaymentController.service.ts +12 -4
- package/dist/angular/api/customerReviewController.service.ts +56 -0
- package/dist/angular/model/getCustomerReviewAggregatesResponse.ts +20 -0
- package/dist/angular/model/item.ts +31 -0
- package/dist/angular/model/models.ts +2 -0
- package/dist/otrBackendService.js +31 -0
- package/dist/otrBackendService.min.js +6 -6
- package/dist/typescript/api/CasePaymentControllerApi.d.ts +2 -1
- package/dist/typescript/api/CasePaymentControllerApi.js +5 -1
- package/dist/typescript/api/CustomerReviewControllerApi.d.ts +5 -0
- package/dist/typescript/api/CustomerReviewControllerApi.js +19 -0
- package/dist/typescript/model/GetCustomerReviewAggregatesResponse.d.ts +17 -0
- package/dist/typescript/model/GetCustomerReviewAggregatesResponse.js +12 -0
- package/dist/typescript/model/Item.d.ts +26 -0
- package/dist/typescript/model/Item.js +23 -0
- package/dist/typescript/model/models.d.ts +2 -0
- package/dist/typescript/model/models.js +2 -0
- package/dist/typescript-fetch/apis/CasePaymentControllerApi.d.ts +1 -0
- package/dist/typescript-fetch/apis/CasePaymentControllerApi.js +3 -0
- package/dist/typescript-fetch/apis/CustomerReviewControllerApi.d.ts +9 -1
- package/dist/typescript-fetch/apis/CustomerReviewControllerApi.js +26 -1
- package/dist/typescript-fetch/models/GetCustomerReviewAggregatesResponse.d.ts +40 -0
- package/dist/typescript-fetch/models/GetCustomerReviewAggregatesResponse.js +41 -0
- package/dist/typescript-fetch/models/Item.d.ts +51 -0
- package/dist/typescript-fetch/models/Item.js +53 -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 +79 -1
- package/package.json +1 -1
|
@@ -441,6 +441,7 @@ model/getCourtResponse.ts
|
|
|
441
441
|
model/getCourtsByQueryResponse.ts
|
|
442
442
|
model/getCourtsInnerResponse.ts
|
|
443
443
|
model/getCurrentUserResponse.ts
|
|
444
|
+
model/getCustomerReviewAggregatesResponse.ts
|
|
444
445
|
model/getCustomerServiceAgentsResponse.ts
|
|
445
446
|
model/getDeclinedCasesRequest.ts
|
|
446
447
|
model/getDeclinedCasesResponse.ts
|
|
@@ -558,6 +559,7 @@ model/inviteLawyerToLawfirmRequest.ts
|
|
|
558
559
|
model/invoiceLineItemModel.ts
|
|
559
560
|
model/isRefundEligibleResponse.ts
|
|
560
561
|
model/isUserLoggedInResponse.ts
|
|
562
|
+
model/item.ts
|
|
561
563
|
model/lastLoginAttributes.ts
|
|
562
564
|
model/lastLoginDateByUserAccount.ts
|
|
563
565
|
model/lastLoginDateModel.ts
|
|
@@ -477,17 +477,24 @@ export class CasePaymentControllerService {
|
|
|
477
477
|
/**
|
|
478
478
|
* getCasePayments
|
|
479
479
|
* @param caseId caseId
|
|
480
|
+
* @param includeInactiveLawfirmCases includeInactiveLawfirmCases
|
|
480
481
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
481
482
|
* @param reportProgress flag to report request and response progress.
|
|
482
483
|
*/
|
|
483
|
-
public getCasePaymentsUsingGET(caseId: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<GetCasePaymentsResponse>;
|
|
484
|
-
public getCasePaymentsUsingGET(caseId: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<HttpResponse<GetCasePaymentsResponse>>;
|
|
485
|
-
public getCasePaymentsUsingGET(caseId: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<HttpEvent<GetCasePaymentsResponse>>;
|
|
486
|
-
public getCasePaymentsUsingGET(caseId: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<any> {
|
|
484
|
+
public getCasePaymentsUsingGET(caseId: string, includeInactiveLawfirmCases?: boolean, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<GetCasePaymentsResponse>;
|
|
485
|
+
public getCasePaymentsUsingGET(caseId: string, includeInactiveLawfirmCases?: boolean, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<HttpResponse<GetCasePaymentsResponse>>;
|
|
486
|
+
public getCasePaymentsUsingGET(caseId: string, includeInactiveLawfirmCases?: boolean, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<HttpEvent<GetCasePaymentsResponse>>;
|
|
487
|
+
public getCasePaymentsUsingGET(caseId: string, includeInactiveLawfirmCases?: boolean, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<any> {
|
|
487
488
|
if (caseId === null || caseId === undefined) {
|
|
488
489
|
throw new Error('Required parameter caseId was null or undefined when calling getCasePaymentsUsingGET.');
|
|
489
490
|
}
|
|
490
491
|
|
|
492
|
+
let localVarQueryParameters = new HttpParams({encoder: this.encoder});
|
|
493
|
+
if (includeInactiveLawfirmCases !== undefined && includeInactiveLawfirmCases !== null) {
|
|
494
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
|
495
|
+
<any>includeInactiveLawfirmCases, 'includeInactiveLawfirmCases');
|
|
496
|
+
}
|
|
497
|
+
|
|
491
498
|
let localVarHeaders = this.defaultHeaders;
|
|
492
499
|
|
|
493
500
|
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
@@ -523,6 +530,7 @@ export class CasePaymentControllerService {
|
|
|
523
530
|
return this.httpClient.request<GetCasePaymentsResponse>('get', `${this.configuration.basePath}${localVarPath}`,
|
|
524
531
|
{
|
|
525
532
|
context: localVarHttpContext,
|
|
533
|
+
params: localVarQueryParameters,
|
|
526
534
|
responseType: <any>responseType_,
|
|
527
535
|
withCredentials: this.configuration.withCredentials,
|
|
528
536
|
headers: localVarHeaders,
|
|
@@ -23,6 +23,8 @@ import { AddReviewRequest } from '../model/addReviewRequest';
|
|
|
23
23
|
// @ts-ignore
|
|
24
24
|
import { EditCustomerReviewRequest } from '../model/editCustomerReviewRequest';
|
|
25
25
|
// @ts-ignore
|
|
26
|
+
import { GetCustomerReviewAggregatesResponse } from '../model/getCustomerReviewAggregatesResponse';
|
|
27
|
+
// @ts-ignore
|
|
26
28
|
import { ListEligibleStatusResponse } from '../model/listEligibleStatusResponse';
|
|
27
29
|
// @ts-ignore
|
|
28
30
|
import { ListReviewsResponse } from '../model/listReviewsResponse';
|
|
@@ -241,6 +243,60 @@ export class CustomerReviewControllerService {
|
|
|
241
243
|
);
|
|
242
244
|
}
|
|
243
245
|
|
|
246
|
+
/**
|
|
247
|
+
* getCustomerReviewAggregates
|
|
248
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
249
|
+
* @param reportProgress flag to report request and response progress.
|
|
250
|
+
*/
|
|
251
|
+
public getCustomerReviewAggregatesUsingGET(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<GetCustomerReviewAggregatesResponse>;
|
|
252
|
+
public getCustomerReviewAggregatesUsingGET(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<HttpResponse<GetCustomerReviewAggregatesResponse>>;
|
|
253
|
+
public getCustomerReviewAggregatesUsingGET(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<HttpEvent<GetCustomerReviewAggregatesResponse>>;
|
|
254
|
+
public getCustomerReviewAggregatesUsingGET(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<any> {
|
|
255
|
+
|
|
256
|
+
let localVarHeaders = this.defaultHeaders;
|
|
257
|
+
|
|
258
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
259
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
260
|
+
// to determine the Accept header
|
|
261
|
+
const httpHeaderAccepts: string[] = [
|
|
262
|
+
'*/*'
|
|
263
|
+
];
|
|
264
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
265
|
+
}
|
|
266
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
267
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
271
|
+
if (localVarHttpContext === undefined) {
|
|
272
|
+
localVarHttpContext = new HttpContext();
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
|
|
276
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
277
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
278
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
279
|
+
responseType_ = 'text';
|
|
280
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
281
|
+
responseType_ = 'json';
|
|
282
|
+
} else {
|
|
283
|
+
responseType_ = 'blob';
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
let localVarPath = `/api/v1/reviews/aggregates`;
|
|
288
|
+
return this.httpClient.request<GetCustomerReviewAggregatesResponse>('get', `${this.configuration.basePath}${localVarPath}`,
|
|
289
|
+
{
|
|
290
|
+
context: localVarHttpContext,
|
|
291
|
+
responseType: <any>responseType_,
|
|
292
|
+
withCredentials: this.configuration.withCredentials,
|
|
293
|
+
headers: localVarHeaders,
|
|
294
|
+
observe: observe,
|
|
295
|
+
reportProgress: reportProgress
|
|
296
|
+
}
|
|
297
|
+
);
|
|
298
|
+
}
|
|
299
|
+
|
|
244
300
|
/**
|
|
245
301
|
* listCustomerReviews
|
|
246
302
|
* @param includeAnonymous includeAnonymous
|
|
@@ -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
|
+
import { Item } from './item';
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
export interface GetCustomerReviewAggregatesResponse {
|
|
16
|
+
items?: Array<Item>;
|
|
17
|
+
totalCount?: number;
|
|
18
|
+
totalRatingScore?: number;
|
|
19
|
+
}
|
|
20
|
+
|
|
@@ -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 Item {
|
|
15
|
+
ratingScore?: number;
|
|
16
|
+
reviewSource?: Item.ReviewSourceEnum;
|
|
17
|
+
totalCount?: number;
|
|
18
|
+
}
|
|
19
|
+
export namespace Item {
|
|
20
|
+
export type ReviewSourceEnum = 'ANDROID' | 'APPLE' | 'FACEBOOK' | 'GOOGLE_BUSINESS' | 'OTR' | 'REVIEWS_IO';
|
|
21
|
+
export const ReviewSourceEnum = {
|
|
22
|
+
Android: 'ANDROID' as ReviewSourceEnum,
|
|
23
|
+
Apple: 'APPLE' as ReviewSourceEnum,
|
|
24
|
+
Facebook: 'FACEBOOK' as ReviewSourceEnum,
|
|
25
|
+
GoogleBusiness: 'GOOGLE_BUSINESS' as ReviewSourceEnum,
|
|
26
|
+
Otr: 'OTR' as ReviewSourceEnum,
|
|
27
|
+
ReviewsIo: 'REVIEWS_IO' as ReviewSourceEnum
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
|
|
@@ -316,6 +316,7 @@ export * from './getCourtResponse';
|
|
|
316
316
|
export * from './getCourtsByQueryResponse';
|
|
317
317
|
export * from './getCourtsInnerResponse';
|
|
318
318
|
export * from './getCurrentUserResponse';
|
|
319
|
+
export * from './getCustomerReviewAggregatesResponse';
|
|
319
320
|
export * from './getCustomerServiceAgentsResponse';
|
|
320
321
|
export * from './getDeclinedCasesRequest';
|
|
321
322
|
export * from './getDeclinedCasesResponse';
|
|
@@ -433,6 +434,7 @@ export * from './inviteLawyerToLawfirmRequest';
|
|
|
433
434
|
export * from './invoiceLineItemModel';
|
|
434
435
|
export * from './isRefundEligibleResponse';
|
|
435
436
|
export * from './isUserLoggedInResponse';
|
|
437
|
+
export * from './item';
|
|
436
438
|
export * from './lastLoginAttributes';
|
|
437
439
|
export * from './lastLoginDateByUserAccount';
|
|
438
440
|
export * from './lastLoginDateModel';
|
|
@@ -3370,6 +3370,7 @@ angular.module('otrBackendService', [])
|
|
|
3370
3370
|
* @name OtrService#getCasePaymentsUsingGET
|
|
3371
3371
|
* @param {object} parameters - method options and parameters
|
|
3372
3372
|
* @param {string} parameters.caseId - caseId
|
|
3373
|
+
* @param {boolean} parameters.includeInactiveLawfirmCases - includeInactiveLawfirmCases
|
|
3373
3374
|
*/
|
|
3374
3375
|
OtrService.prototype.getCasePaymentsUsingGET = function(parameters) {
|
|
3375
3376
|
if (parameters === undefined) {
|
|
@@ -3392,6 +3393,10 @@ angular.module('otrBackendService', [])
|
|
|
3392
3393
|
return deferred.promise;
|
|
3393
3394
|
}
|
|
3394
3395
|
|
|
3396
|
+
if (parameters['includeInactiveLawfirmCases'] !== undefined) {
|
|
3397
|
+
queryParameters['includeInactiveLawfirmCases'] = parameters['includeInactiveLawfirmCases'];
|
|
3398
|
+
}
|
|
3399
|
+
|
|
3395
3400
|
queryParameters = mergeQueryParams(parameters, queryParameters);
|
|
3396
3401
|
|
|
3397
3402
|
this.request('GET', domain + path, parameters, body, headers, queryParameters, form, deferred);
|
|
@@ -14078,6 +14083,32 @@ angular.module('otrBackendService', [])
|
|
|
14078
14083
|
|
|
14079
14084
|
return deferred.promise;
|
|
14080
14085
|
};
|
|
14086
|
+
/**
|
|
14087
|
+
* getCustomerReviewAggregates
|
|
14088
|
+
* @method
|
|
14089
|
+
* @name OtrService#getCustomerReviewAggregatesUsingGET
|
|
14090
|
+
* @param {object} parameters - method options and parameters
|
|
14091
|
+
*/
|
|
14092
|
+
OtrService.prototype.getCustomerReviewAggregatesUsingGET = function(parameters) {
|
|
14093
|
+
if (parameters === undefined) {
|
|
14094
|
+
parameters = {};
|
|
14095
|
+
}
|
|
14096
|
+
var deferred = $q.defer();
|
|
14097
|
+
var domain = this.domain,
|
|
14098
|
+
path = '/api/v1/reviews/aggregates';
|
|
14099
|
+
var body = {},
|
|
14100
|
+
queryParameters = {},
|
|
14101
|
+
headers = {},
|
|
14102
|
+
form = {};
|
|
14103
|
+
|
|
14104
|
+
headers['Accept'] = ['*/*'];
|
|
14105
|
+
|
|
14106
|
+
queryParameters = mergeQueryParams(parameters, queryParameters);
|
|
14107
|
+
|
|
14108
|
+
this.request('GET', domain + path, parameters, body, headers, queryParameters, form, deferred);
|
|
14109
|
+
|
|
14110
|
+
return deferred.promise;
|
|
14111
|
+
};
|
|
14081
14112
|
/**
|
|
14082
14113
|
* editCustomerReview
|
|
14083
14114
|
* @method
|