@otr-app/shared-backend-generated-client 2.3.157 → 2.3.158
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/dashboardController.service.ts +119 -0
- package/dist/angular/model/listPhoneCallsCountModel.ts +18 -0
- package/dist/angular/model/listPhoneCallsModel.ts +37 -0
- package/dist/angular/model/listPhoneCallsResponse.ts +20 -0
- package/dist/angular/model/models.ts +3 -0
- package/dist/otrBackendService.js +92 -0
- package/dist/otrBackendService.min.js +5 -5
- package/dist/typescript/api/DashboardControllerApi.d.ts +17 -0
- package/dist/typescript/api/DashboardControllerApi.js +67 -0
- package/dist/typescript/model/ListPhoneCallsCountModel.d.ts +15 -0
- package/dist/typescript/model/ListPhoneCallsCountModel.js +13 -0
- package/dist/typescript/model/ListPhoneCallsModel.d.ts +32 -0
- package/dist/typescript/model/ListPhoneCallsModel.js +22 -0
- package/dist/typescript/model/ListPhoneCallsResponse.d.ts +16 -0
- package/dist/typescript/model/ListPhoneCallsResponse.js +13 -0
- package/dist/typescript/model/models.d.ts +3 -0
- package/dist/typescript/model/models.js +3 -0
- package/package.json +1 -1
|
@@ -544,6 +544,9 @@ model/listLawfirmSurchargeModel.ts
|
|
|
544
544
|
model/listLawfirmSurchargeTypeModel.ts
|
|
545
545
|
model/listLawfirmSurchargesResponse.ts
|
|
546
546
|
model/listNotesResponse.ts
|
|
547
|
+
model/listPhoneCallsCountModel.ts
|
|
548
|
+
model/listPhoneCallsModel.ts
|
|
549
|
+
model/listPhoneCallsResponse.ts
|
|
547
550
|
model/listReferralsResponse.ts
|
|
548
551
|
model/listReviewsResponse.ts
|
|
549
552
|
model/listSubscriptionInvoicesResponse.ts
|
|
@@ -33,6 +33,8 @@ import { ListCitationsRequest } from '../model/listCitationsRequest';
|
|
|
33
33
|
// @ts-ignore
|
|
34
34
|
import { ListCitationsResponse } from '../model/listCitationsResponse';
|
|
35
35
|
// @ts-ignore
|
|
36
|
+
import { ListPhoneCallsResponse } from '../model/listPhoneCallsResponse';
|
|
37
|
+
// @ts-ignore
|
|
36
38
|
import { SqlResponse } from '../model/sqlResponse';
|
|
37
39
|
|
|
38
40
|
// @ts-ignore
|
|
@@ -581,4 +583,121 @@ export class DashboardControllerService {
|
|
|
581
583
|
);
|
|
582
584
|
}
|
|
583
585
|
|
|
586
|
+
/**
|
|
587
|
+
* listPhoneCalls
|
|
588
|
+
* @param agentId agentId
|
|
589
|
+
* @param agentName agentName
|
|
590
|
+
* @param callStatus callStatus
|
|
591
|
+
* @param endDate endDate
|
|
592
|
+
* @param length length
|
|
593
|
+
* @param page page
|
|
594
|
+
* @param shouldIncludePhoneCalls shouldIncludePhoneCalls
|
|
595
|
+
* @param sortBy sortBy
|
|
596
|
+
* @param sortOrder sortOrder
|
|
597
|
+
* @param startDate startDate
|
|
598
|
+
* @param teamName teamName
|
|
599
|
+
* @param timeZoneId timeZoneId
|
|
600
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
601
|
+
* @param reportProgress flag to report request and response progress.
|
|
602
|
+
*/
|
|
603
|
+
public listPhoneCallsUsingGET(agentId?: number, agentName?: string, callStatus?: 'ABANDONED' | 'BLOCKED' | 'BUSY' | 'COMPLETED' | 'CONNECTING' | 'CONNECTION_FAILED' | 'DEFAULT' | 'DISCONNECTED' | 'ENQUEUED' | 'IN_PROGRESS' | 'MISSED_CALL' | 'ON_HOLD' | 'RECENTLY_COMPLETED' | 'RESTRICTED' | 'VOICEMAIL' | 'VOICEMAIL_RECORDING_IN_PROGRESS', endDate?: string, length?: number, page?: number, shouldIncludePhoneCalls?: boolean, sortBy?: string, sortOrder?: string, startDate?: string, teamName?: string, timeZoneId?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable<ListPhoneCallsResponse>;
|
|
604
|
+
public listPhoneCallsUsingGET(agentId?: number, agentName?: string, callStatus?: 'ABANDONED' | 'BLOCKED' | 'BUSY' | 'COMPLETED' | 'CONNECTING' | 'CONNECTION_FAILED' | 'DEFAULT' | 'DISCONNECTED' | 'ENQUEUED' | 'IN_PROGRESS' | 'MISSED_CALL' | 'ON_HOLD' | 'RECENTLY_COMPLETED' | 'RESTRICTED' | 'VOICEMAIL' | 'VOICEMAIL_RECORDING_IN_PROGRESS', endDate?: string, length?: number, page?: number, shouldIncludePhoneCalls?: boolean, sortBy?: string, sortOrder?: string, startDate?: string, teamName?: string, timeZoneId?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable<HttpResponse<ListPhoneCallsResponse>>;
|
|
605
|
+
public listPhoneCallsUsingGET(agentId?: number, agentName?: string, callStatus?: 'ABANDONED' | 'BLOCKED' | 'BUSY' | 'COMPLETED' | 'CONNECTING' | 'CONNECTION_FAILED' | 'DEFAULT' | 'DISCONNECTED' | 'ENQUEUED' | 'IN_PROGRESS' | 'MISSED_CALL' | 'ON_HOLD' | 'RECENTLY_COMPLETED' | 'RESTRICTED' | 'VOICEMAIL' | 'VOICEMAIL_RECORDING_IN_PROGRESS', endDate?: string, length?: number, page?: number, shouldIncludePhoneCalls?: boolean, sortBy?: string, sortOrder?: string, startDate?: string, teamName?: string, timeZoneId?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable<HttpEvent<ListPhoneCallsResponse>>;
|
|
606
|
+
public listPhoneCallsUsingGET(agentId?: number, agentName?: string, callStatus?: 'ABANDONED' | 'BLOCKED' | 'BUSY' | 'COMPLETED' | 'CONNECTING' | 'CONNECTION_FAILED' | 'DEFAULT' | 'DISCONNECTED' | 'ENQUEUED' | 'IN_PROGRESS' | 'MISSED_CALL' | 'ON_HOLD' | 'RECENTLY_COMPLETED' | 'RESTRICTED' | 'VOICEMAIL' | 'VOICEMAIL_RECORDING_IN_PROGRESS', endDate?: string, length?: number, page?: number, shouldIncludePhoneCalls?: boolean, sortBy?: string, sortOrder?: string, startDate?: string, teamName?: string, timeZoneId?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable<any> {
|
|
607
|
+
|
|
608
|
+
let localVarQueryParameters = new HttpParams({encoder: this.encoder});
|
|
609
|
+
if (agentId !== undefined && agentId !== null) {
|
|
610
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
|
611
|
+
<any>agentId, 'agentId');
|
|
612
|
+
}
|
|
613
|
+
if (agentName !== undefined && agentName !== null) {
|
|
614
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
|
615
|
+
<any>agentName, 'agentName');
|
|
616
|
+
}
|
|
617
|
+
if (callStatus !== undefined && callStatus !== null) {
|
|
618
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
|
619
|
+
<any>callStatus, 'callStatus');
|
|
620
|
+
}
|
|
621
|
+
if (endDate !== undefined && endDate !== null) {
|
|
622
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
|
623
|
+
<any>endDate, 'endDate');
|
|
624
|
+
}
|
|
625
|
+
if (length !== undefined && length !== null) {
|
|
626
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
|
627
|
+
<any>length, 'length');
|
|
628
|
+
}
|
|
629
|
+
if (page !== undefined && page !== null) {
|
|
630
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
|
631
|
+
<any>page, 'page');
|
|
632
|
+
}
|
|
633
|
+
if (shouldIncludePhoneCalls !== undefined && shouldIncludePhoneCalls !== null) {
|
|
634
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
|
635
|
+
<any>shouldIncludePhoneCalls, 'shouldIncludePhoneCalls');
|
|
636
|
+
}
|
|
637
|
+
if (sortBy !== undefined && sortBy !== null) {
|
|
638
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
|
639
|
+
<any>sortBy, 'sortBy');
|
|
640
|
+
}
|
|
641
|
+
if (sortOrder !== undefined && sortOrder !== null) {
|
|
642
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
|
643
|
+
<any>sortOrder, 'sortOrder');
|
|
644
|
+
}
|
|
645
|
+
if (startDate !== undefined && startDate !== null) {
|
|
646
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
|
647
|
+
<any>startDate, 'startDate');
|
|
648
|
+
}
|
|
649
|
+
if (teamName !== undefined && teamName !== null) {
|
|
650
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
|
651
|
+
<any>teamName, 'teamName');
|
|
652
|
+
}
|
|
653
|
+
if (timeZoneId !== undefined && timeZoneId !== null) {
|
|
654
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
|
655
|
+
<any>timeZoneId, 'timeZoneId');
|
|
656
|
+
}
|
|
657
|
+
|
|
658
|
+
let localVarHeaders = this.defaultHeaders;
|
|
659
|
+
|
|
660
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
661
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
662
|
+
// to determine the Accept header
|
|
663
|
+
const httpHeaderAccepts: string[] = [
|
|
664
|
+
'application/json'
|
|
665
|
+
];
|
|
666
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
667
|
+
}
|
|
668
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
669
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
673
|
+
if (localVarHttpContext === undefined) {
|
|
674
|
+
localVarHttpContext = new HttpContext();
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
|
|
678
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
679
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
680
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
681
|
+
responseType_ = 'text';
|
|
682
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
683
|
+
responseType_ = 'json';
|
|
684
|
+
} else {
|
|
685
|
+
responseType_ = 'blob';
|
|
686
|
+
}
|
|
687
|
+
}
|
|
688
|
+
|
|
689
|
+
let localVarPath = `/api/v1/console/phone-calls`;
|
|
690
|
+
return this.httpClient.request<ListPhoneCallsResponse>('get', `${this.configuration.basePath}${localVarPath}`,
|
|
691
|
+
{
|
|
692
|
+
context: localVarHttpContext,
|
|
693
|
+
params: localVarQueryParameters,
|
|
694
|
+
responseType: <any>responseType_,
|
|
695
|
+
withCredentials: this.configuration.withCredentials,
|
|
696
|
+
headers: localVarHeaders,
|
|
697
|
+
observe: observe,
|
|
698
|
+
reportProgress: reportProgress
|
|
699
|
+
}
|
|
700
|
+
);
|
|
701
|
+
}
|
|
702
|
+
|
|
584
703
|
}
|
|
@@ -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 ListPhoneCallsCountModel {
|
|
15
|
+
matchingRecords?: number;
|
|
16
|
+
totalRecords?: number;
|
|
17
|
+
}
|
|
18
|
+
|
|
@@ -0,0 +1,37 @@
|
|
|
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 ListPhoneCallsModel {
|
|
15
|
+
agentId?: number;
|
|
16
|
+
agentName?: string;
|
|
17
|
+
callDirection?: ListPhoneCallsModel.CallDirectionEnum;
|
|
18
|
+
callDurationInSeconds?: number;
|
|
19
|
+
callQueueName?: string;
|
|
20
|
+
callStartDateUtc?: string;
|
|
21
|
+
callStatus?: number;
|
|
22
|
+
customerName?: string;
|
|
23
|
+
holdDurationInSeconds?: number;
|
|
24
|
+
ivrDurationInSeconds?: number;
|
|
25
|
+
ivrName?: string;
|
|
26
|
+
talkDurationInSeconds?: number;
|
|
27
|
+
teamName?: string;
|
|
28
|
+
}
|
|
29
|
+
export namespace ListPhoneCallsModel {
|
|
30
|
+
export type CallDirectionEnum = 'INCOMING' | 'OUTGOING';
|
|
31
|
+
export const CallDirectionEnum = {
|
|
32
|
+
Incoming: 'INCOMING' as CallDirectionEnum,
|
|
33
|
+
Outgoing: 'OUTGOING' as CallDirectionEnum
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
|
|
@@ -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 { ListPhoneCallsCountModel } from './listPhoneCallsCountModel';
|
|
13
|
+
import { ListPhoneCallsModel } from './listPhoneCallsModel';
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
export interface ListPhoneCallsResponse {
|
|
17
|
+
phoneCalls?: Array<ListPhoneCallsModel>;
|
|
18
|
+
phoneCallsCount?: ListPhoneCallsCountModel;
|
|
19
|
+
}
|
|
20
|
+
|
|
@@ -429,6 +429,9 @@ export * from './listLawfirmSurchargeModel';
|
|
|
429
429
|
export * from './listLawfirmSurchargeTypeModel';
|
|
430
430
|
export * from './listLawfirmSurchargesResponse';
|
|
431
431
|
export * from './listNotesResponse';
|
|
432
|
+
export * from './listPhoneCallsCountModel';
|
|
433
|
+
export * from './listPhoneCallsModel';
|
|
434
|
+
export * from './listPhoneCallsResponse';
|
|
432
435
|
export * from './listReferralsResponse';
|
|
433
436
|
export * from './listReviewsResponse';
|
|
434
437
|
export * from './listSubscriptionInvoicesResponse';
|
|
@@ -5436,6 +5436,98 @@ angular.module('otrBackendService', [])
|
|
|
5436
5436
|
|
|
5437
5437
|
return deferred.promise;
|
|
5438
5438
|
};
|
|
5439
|
+
/**
|
|
5440
|
+
* listPhoneCalls
|
|
5441
|
+
* @method
|
|
5442
|
+
* @name OtrService#listPhoneCallsUsingGET
|
|
5443
|
+
* @param {object} parameters - method options and parameters
|
|
5444
|
+
* @param {integer} parameters.agentId - agentId
|
|
5445
|
+
* @param {string} parameters.agentName - agentName
|
|
5446
|
+
* @param {string} parameters.callStatus - callStatus
|
|
5447
|
+
* @param {string} parameters.endDate - endDate
|
|
5448
|
+
* @param {integer} parameters.length - length
|
|
5449
|
+
* @param {integer} parameters.page - page
|
|
5450
|
+
* @param {boolean} parameters.shouldIncludePhoneCalls - shouldIncludePhoneCalls
|
|
5451
|
+
* @param {string} parameters.sortBy - sortBy
|
|
5452
|
+
* @param {string} parameters.sortOrder - sortOrder
|
|
5453
|
+
* @param {string} parameters.startDate - startDate
|
|
5454
|
+
* @param {string} parameters.teamName - teamName
|
|
5455
|
+
* @param {string} parameters.timeZoneId - timeZoneId
|
|
5456
|
+
*/
|
|
5457
|
+
OtrService.prototype.listPhoneCallsUsingGET = function(parameters) {
|
|
5458
|
+
if (parameters === undefined) {
|
|
5459
|
+
parameters = {};
|
|
5460
|
+
}
|
|
5461
|
+
var deferred = $q.defer();
|
|
5462
|
+
var domain = this.domain,
|
|
5463
|
+
path = '/api/v1/console/phone-calls';
|
|
5464
|
+
var body = {},
|
|
5465
|
+
queryParameters = {},
|
|
5466
|
+
headers = {},
|
|
5467
|
+
form = {};
|
|
5468
|
+
|
|
5469
|
+
headers['Accept'] = ['application/json'];
|
|
5470
|
+
|
|
5471
|
+
if (parameters['agentId'] !== undefined) {
|
|
5472
|
+
queryParameters['agentId'] = parameters['agentId'];
|
|
5473
|
+
}
|
|
5474
|
+
|
|
5475
|
+
if (parameters['agentName'] !== undefined) {
|
|
5476
|
+
queryParameters['agentName'] = parameters['agentName'];
|
|
5477
|
+
}
|
|
5478
|
+
|
|
5479
|
+
if (parameters['callStatus'] !== undefined) {
|
|
5480
|
+
queryParameters['callStatus'] = parameters['callStatus'];
|
|
5481
|
+
}
|
|
5482
|
+
|
|
5483
|
+
if (parameters['endDate'] !== undefined) {
|
|
5484
|
+
queryParameters['endDate'] = parameters['endDate'];
|
|
5485
|
+
}
|
|
5486
|
+
|
|
5487
|
+
/** set default value **/
|
|
5488
|
+
queryParameters['length'] = 50;
|
|
5489
|
+
|
|
5490
|
+
if (parameters['length'] !== undefined) {
|
|
5491
|
+
queryParameters['length'] = parameters['length'];
|
|
5492
|
+
}
|
|
5493
|
+
|
|
5494
|
+
if (parameters['page'] !== undefined) {
|
|
5495
|
+
queryParameters['page'] = parameters['page'];
|
|
5496
|
+
}
|
|
5497
|
+
|
|
5498
|
+
/** set default value **/
|
|
5499
|
+
queryParameters['shouldIncludePhoneCalls'] = true;
|
|
5500
|
+
|
|
5501
|
+
if (parameters['shouldIncludePhoneCalls'] !== undefined) {
|
|
5502
|
+
queryParameters['shouldIncludePhoneCalls'] = parameters['shouldIncludePhoneCalls'];
|
|
5503
|
+
}
|
|
5504
|
+
|
|
5505
|
+
if (parameters['sortBy'] !== undefined) {
|
|
5506
|
+
queryParameters['sortBy'] = parameters['sortBy'];
|
|
5507
|
+
}
|
|
5508
|
+
|
|
5509
|
+
if (parameters['sortOrder'] !== undefined) {
|
|
5510
|
+
queryParameters['sortOrder'] = parameters['sortOrder'];
|
|
5511
|
+
}
|
|
5512
|
+
|
|
5513
|
+
if (parameters['startDate'] !== undefined) {
|
|
5514
|
+
queryParameters['startDate'] = parameters['startDate'];
|
|
5515
|
+
}
|
|
5516
|
+
|
|
5517
|
+
if (parameters['teamName'] !== undefined) {
|
|
5518
|
+
queryParameters['teamName'] = parameters['teamName'];
|
|
5519
|
+
}
|
|
5520
|
+
|
|
5521
|
+
if (parameters['timeZoneId'] !== undefined) {
|
|
5522
|
+
queryParameters['timeZoneId'] = parameters['timeZoneId'];
|
|
5523
|
+
}
|
|
5524
|
+
|
|
5525
|
+
queryParameters = mergeQueryParams(parameters, queryParameters);
|
|
5526
|
+
|
|
5527
|
+
this.request('GET', domain + path, parameters, body, headers, queryParameters, form, deferred);
|
|
5528
|
+
|
|
5529
|
+
return deferred.promise;
|
|
5530
|
+
};
|
|
5439
5531
|
/**
|
|
5440
5532
|
* listPotentialCustomers
|
|
5441
5533
|
* @method
|