@cleardu/types 1.0.559 → 1.0.560

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.
@@ -110,6 +110,16 @@ export declare const BrokerMessages: {
110
110
  REFRESH_CAMPAIGN: string;
111
111
  DELETE_AUTO_CALLING_TEMP_DATA: string;
112
112
  };
113
+ IVR_CAMPAIGN: {
114
+ CREATE: string;
115
+ FIND_ALL: string;
116
+ FIND_ONE: string;
117
+ START_STOP: string;
118
+ PROCESS_DETAIL: string;
119
+ FIND_ALL_DETAILS: string;
120
+ FIND_IVR_DETAILS_REPORT: string;
121
+ CREATE_PARTITION: string;
122
+ };
113
123
  DIALER: {
114
124
  LOGIN: string;
115
125
  LOGOUT: string;
@@ -525,6 +535,49 @@ export declare const BrokerMessages: {
525
535
  DIALER_CAMPAIGN_DETAILS: string;
526
536
  GET_CAMPAIGN_USER_LEADS: string;
527
537
  };
538
+ IVR_EZSIP: {
539
+ CREATE_IVR: string;
540
+ FETCH_ALL_IVR: string;
541
+ FETCH_IVR_BY_ID: string;
542
+ LOGIN: string;
543
+ LOGOUT: string;
544
+ UPDATE_AGENT_TO_READY: string;
545
+ SET_AGENT_ON_BREAK: string;
546
+ CREATE_AGENT: string;
547
+ UPDATE_AGENT: string;
548
+ DELETE_AGENT: string;
549
+ CREATE_EXTENSION: string;
550
+ DELETE_EXTENSION: string;
551
+ EXTENSIONS_DROPDOWN: string;
552
+ FETCH_ALL_AGENTS: string;
553
+ CREATE_CAMPAIGN: string;
554
+ UPDATE_CAMPAIGN: string;
555
+ FETCH_CAMPAIGN_BY_ID: string;
556
+ DELETE_MULTIPLE_LEADS: string;
557
+ TOGGLE_CAMPAIGN: string;
558
+ FETCH_ALL_CAMPAIGNS: string;
559
+ MANUAL_CALL: string;
560
+ CLICK_TO_CALL: string;
561
+ END_CALL: string;
562
+ PAUSE_CALL: string;
563
+ FETCH_ALL_IVR_DROPDOWN_OPTIONS: string;
564
+ FETCH_AGENT_LIVE_STATUS: string;
565
+ PRODUCTIVITY_REPORT: string;
566
+ ACTIVITY_REPORT: string;
567
+ FETCH_ALL_AGENTS_BREAK_TYPES: string;
568
+ DOWNLOAD_RECORDING_BY_REFERENCE_ID: string;
569
+ CREATE_MULTIPLE_LEADS: string;
570
+ CLEAR_LEADS_BY_CAMPAIGN_ID: string;
571
+ ACTIVATE_DEACTIVATE_AGENT: string;
572
+ WHATSAPP_TEMPLATE_LIST: string;
573
+ WHATSAPP_TEMPLATE_LIST_DROP_DOWN: string;
574
+ WHATSAPP_REPORT: string;
575
+ TRIGGER_WHATSAPP_MESSAGE: string;
576
+ CAMPAIGN_LEAD_RESET: string;
577
+ CAMPAIGN_LEAD_CLEAR: string;
578
+ DIALER_CAMPAIGN_DETAILS: string;
579
+ GET_CAMPAIGN_USER_LEADS: string;
580
+ };
528
581
  LEGAL_PORTAL: {
529
582
  GET_CLIENT: string;
530
583
  GET_LOAN_TIMELINE: string;
@@ -113,6 +113,16 @@ exports.BrokerMessages = {
113
113
  REFRESH_CAMPAIGN: 'REFRESH-CAMPAIGN',
114
114
  DELETE_AUTO_CALLING_TEMP_DATA: 'DELETE-AUTO-CALLING-TEMP-DATA',
115
115
  },
116
+ IVR_CAMPAIGN: {
117
+ CREATE: 'create-ivr-campaign',
118
+ FIND_ALL: 'list-ivr-campaigns',
119
+ FIND_ONE: 'get-ivr-campaign-detail',
120
+ START_STOP: 'ivr-campaign-start-stop',
121
+ PROCESS_DETAIL: 'PROCESS-IVR-DETAIL',
122
+ FIND_ALL_DETAILS: 'FIND-ALL-IVR-DETAILS',
123
+ FIND_IVR_DETAILS_REPORT: 'FIND-IVR-DETAILS-REPORT',
124
+ CREATE_PARTITION: 'CREATE-PARTITION-IVR-DETAILS',
125
+ },
116
126
  DIALER: {
117
127
  LOGIN: 'dialer-login',
118
128
  LOGOUT: 'dialer-logout',
@@ -528,6 +538,49 @@ exports.BrokerMessages = {
528
538
  DIALER_CAMPAIGN_DETAILS: 'DIALER-CAMPAIGN-DETAILS',
529
539
  GET_CAMPAIGN_USER_LEADS: 'GET-CAMPAIGN-USER-LEADS',
530
540
  },
541
+ IVR_EZSIP: {
542
+ CREATE_IVR: 'IVR-EZSIP-CREATE-IVR',
543
+ FETCH_ALL_IVR: 'IVR-EZSIP-FETCH-ALL-IVR',
544
+ FETCH_IVR_BY_ID: 'IVR-EZSIP-FETCH-IVR-BY-ID',
545
+ LOGIN: 'IVR-EZSIP-LOGIN',
546
+ LOGOUT: 'IVR-EZSIP-LOGOUT',
547
+ UPDATE_AGENT_TO_READY: 'IVR-EZSIP-UPDATE-AGENT-to-ready',
548
+ SET_AGENT_ON_BREAK: 'IVR-EZSIP-set-AGENT-on-break',
549
+ CREATE_AGENT: 'IVR-EZSIP-CREATE-AGENT',
550
+ UPDATE_AGENT: 'IVR-EZSIP-UPDATE-AGENT',
551
+ DELETE_AGENT: 'IVR-EZSIP-DELETE-AGENT',
552
+ CREATE_EXTENSION: 'IVR-EZSIP-CREATE-EXTENSION',
553
+ DELETE_EXTENSION: 'IVR-EZSIP-DELETE-EXTENSION',
554
+ EXTENSIONS_DROPDOWN: 'IVR-EZSIP-EXTENSIONS-DROPDOWN',
555
+ FETCH_ALL_AGENTS: 'IVR-EZSIP-FETCH-ALL-AGENT',
556
+ CREATE_CAMPAIGN: 'IVR-EZSIP-CREATE-CAMPAIGN',
557
+ UPDATE_CAMPAIGN: 'IVR-EZSIP-UPDATE-CAMPAIGN',
558
+ FETCH_CAMPAIGN_BY_ID: 'IVR-EZSIP-FETCH-CAMPAIGN-BY-ID',
559
+ DELETE_MULTIPLE_LEADS: 'IVR-EZSIP-DELETE-MULTIPLE-LEADS',
560
+ TOGGLE_CAMPAIGN: 'IVR-EZSIP-CAMPAIGN-TOGGLE',
561
+ FETCH_ALL_CAMPAIGNS: 'IVR-EZSIP-FETCH-ALL-CAMPAIGN',
562
+ MANUAL_CALL: 'IVR-EZSIP-MANUAL-CALL',
563
+ CLICK_TO_CALL: 'IVR-EZSIP-CLICK-TO-CALL',
564
+ END_CALL: 'IVR-EZSIP-END-CALL',
565
+ PAUSE_CALL: 'IVR-EZSIP-PAUSE-CALL',
566
+ FETCH_ALL_IVR_DROPDOWN_OPTIONS: 'IVR-EZSIP-FETCH-ALL-IVR-DROPDOWN-OPTIONS',
567
+ FETCH_AGENT_LIVE_STATUS: 'IVR-EZSIP-FETCH-AGENT-LIVE-STATUS',
568
+ PRODUCTIVITY_REPORT: 'IVR-EZSIP-PRODUCTIVITY-REPORT',
569
+ ACTIVITY_REPORT: 'IVR-EZSIP-ACTIVITY-REPORT',
570
+ FETCH_ALL_AGENTS_BREAK_TYPES: 'IVR-EZSIP-FETCH-ALL-AGENT-ON-BREAK-TYPES',
571
+ DOWNLOAD_RECORDING_BY_REFERENCE_ID: 'IVR-EZSIP-DOWNLOAD-RECORDING-BY-REFERENCE-ID',
572
+ CREATE_MULTIPLE_LEADS: 'IVR-EZSIP-CREATE-MULTIPLE-LEADS',
573
+ CLEAR_LEADS_BY_CAMPAIGN_ID: 'IVR-EZSIP-CLEAR-LEADS-BY-CAMPAIGN-ID',
574
+ ACTIVATE_DEACTIVATE_AGENT: 'IVR-EZSIP-ACTIVATE-DEACTIVATE-AGENT',
575
+ WHATSAPP_TEMPLATE_LIST: 'IVR-EZSIP-WHATSAPP-TEMPLATE-LIST',
576
+ WHATSAPP_TEMPLATE_LIST_DROP_DOWN: 'IVR-EZSIP-WHATSAPP-TEMPLATE-LIST-DROPDOWN',
577
+ WHATSAPP_REPORT: 'IVR-EZSIP-WHATSAPP-REPORT',
578
+ TRIGGER_WHATSAPP_MESSAGE: 'IVR-EZSIP-TRIGGER-WHATSAPP-MESSAGE',
579
+ CAMPAIGN_LEAD_RESET: 'IVR-EZSIP-LEAD-RESET',
580
+ CAMPAIGN_LEAD_CLEAR: 'IVR-EZSIP-LEAD-CLEAR',
581
+ DIALER_CAMPAIGN_DETAILS: 'IVR-EZSIP-DIALER-CAMPAIGN-DETAILS',
582
+ GET_CAMPAIGN_USER_LEADS: 'IVR-EZSIP-GET-CAMPAIGN-USER-LEADS',
583
+ },
531
584
  LEGAL_PORTAL: {
532
585
  GET_CLIENT: 'INTEGRATION-LEGAL-PORTAL-GET-CLIENT',
533
586
  GET_LOAN_TIMELINE: 'INTEGRATION-LEGAL-PORTAL-GET-LOAN-TIMELINE',
@@ -114,6 +114,16 @@ export const BrokerMessages = {
114
114
  REFRESH_CAMPAIGN: 'REFRESH-CAMPAIGN',
115
115
  DELETE_AUTO_CALLING_TEMP_DATA: 'DELETE-AUTO-CALLING-TEMP-DATA',
116
116
  },
117
+ IVR_CAMPAIGN: {
118
+ CREATE: 'create-ivr-campaign',
119
+ FIND_ALL: 'list-ivr-campaigns',
120
+ FIND_ONE: 'get-ivr-campaign-detail',
121
+ START_STOP: 'ivr-campaign-start-stop',
122
+ PROCESS_DETAIL: 'PROCESS-IVR-DETAIL',
123
+ FIND_ALL_DETAILS: 'FIND-ALL-IVR-DETAILS',
124
+ FIND_IVR_DETAILS_REPORT: 'FIND-IVR-DETAILS-REPORT',
125
+ CREATE_PARTITION: 'CREATE-PARTITION-IVR-DETAILS',
126
+ },
117
127
  DIALER: {
118
128
  LOGIN: 'dialer-login',
119
129
  LOGOUT: 'dialer-logout',
@@ -537,6 +547,51 @@ export const BrokerMessages = {
537
547
  DIALER_CAMPAIGN_DETAILS: 'DIALER-CAMPAIGN-DETAILS',
538
548
  GET_CAMPAIGN_USER_LEADS: 'GET-CAMPAIGN-USER-LEADS',
539
549
  },
550
+ IVR_EZSIP: {
551
+ CREATE_IVR: 'IVR-EZSIP-CREATE-IVR',
552
+ FETCH_ALL_IVR: 'IVR-EZSIP-FETCH-ALL-IVR',
553
+ FETCH_IVR_BY_ID: 'IVR-EZSIP-FETCH-IVR-BY-ID',
554
+ LOGIN: 'IVR-EZSIP-LOGIN',
555
+ LOGOUT: 'IVR-EZSIP-LOGOUT',
556
+ UPDATE_AGENT_TO_READY: 'IVR-EZSIP-UPDATE-AGENT-to-ready',
557
+ SET_AGENT_ON_BREAK: 'IVR-EZSIP-set-AGENT-on-break',
558
+ CREATE_AGENT: 'IVR-EZSIP-CREATE-AGENT',
559
+ UPDATE_AGENT: 'IVR-EZSIP-UPDATE-AGENT',
560
+ DELETE_AGENT: 'IVR-EZSIP-DELETE-AGENT',
561
+ CREATE_EXTENSION: 'IVR-EZSIP-CREATE-EXTENSION',
562
+ DELETE_EXTENSION: 'IVR-EZSIP-DELETE-EXTENSION',
563
+ EXTENSIONS_DROPDOWN: 'IVR-EZSIP-EXTENSIONS-DROPDOWN',
564
+ FETCH_ALL_AGENTS: 'IVR-EZSIP-FETCH-ALL-AGENT',
565
+ CREATE_CAMPAIGN: 'IVR-EZSIP-CREATE-CAMPAIGN',
566
+ UPDATE_CAMPAIGN: 'IVR-EZSIP-UPDATE-CAMPAIGN',
567
+ FETCH_CAMPAIGN_BY_ID: 'IVR-EZSIP-FETCH-CAMPAIGN-BY-ID',
568
+ DELETE_MULTIPLE_LEADS: 'IVR-EZSIP-DELETE-MULTIPLE-LEADS',
569
+ TOGGLE_CAMPAIGN: 'IVR-EZSIP-CAMPAIGN-TOGGLE',
570
+ FETCH_ALL_CAMPAIGNS: 'IVR-EZSIP-FETCH-ALL-CAMPAIGN',
571
+ MANUAL_CALL: 'IVR-EZSIP-MANUAL-CALL',
572
+ CLICK_TO_CALL: 'IVR-EZSIP-CLICK-TO-CALL',
573
+ END_CALL: 'IVR-EZSIP-END-CALL',
574
+ PAUSE_CALL: 'IVR-EZSIP-PAUSE-CALL',
575
+ FETCH_ALL_IVR_DROPDOWN_OPTIONS: 'IVR-EZSIP-FETCH-ALL-IVR-DROPDOWN-OPTIONS',
576
+ FETCH_AGENT_LIVE_STATUS: 'IVR-EZSIP-FETCH-AGENT-LIVE-STATUS',
577
+ PRODUCTIVITY_REPORT: 'IVR-EZSIP-PRODUCTIVITY-REPORT',
578
+ ACTIVITY_REPORT: 'IVR-EZSIP-ACTIVITY-REPORT',
579
+ FETCH_ALL_AGENTS_BREAK_TYPES: 'IVR-EZSIP-FETCH-ALL-AGENT-ON-BREAK-TYPES',
580
+ DOWNLOAD_RECORDING_BY_REFERENCE_ID:
581
+ 'IVR-EZSIP-DOWNLOAD-RECORDING-BY-REFERENCE-ID',
582
+ CREATE_MULTIPLE_LEADS: 'IVR-EZSIP-CREATE-MULTIPLE-LEADS',
583
+ CLEAR_LEADS_BY_CAMPAIGN_ID: 'IVR-EZSIP-CLEAR-LEADS-BY-CAMPAIGN-ID',
584
+ ACTIVATE_DEACTIVATE_AGENT: 'IVR-EZSIP-ACTIVATE-DEACTIVATE-AGENT',
585
+ WHATSAPP_TEMPLATE_LIST: 'IVR-EZSIP-WHATSAPP-TEMPLATE-LIST',
586
+ WHATSAPP_TEMPLATE_LIST_DROP_DOWN:
587
+ 'IVR-EZSIP-WHATSAPP-TEMPLATE-LIST-DROPDOWN',
588
+ WHATSAPP_REPORT: 'IVR-EZSIP-WHATSAPP-REPORT',
589
+ TRIGGER_WHATSAPP_MESSAGE: 'IVR-EZSIP-TRIGGER-WHATSAPP-MESSAGE',
590
+ CAMPAIGN_LEAD_RESET: 'IVR-EZSIP-LEAD-RESET',
591
+ CAMPAIGN_LEAD_CLEAR: 'IVR-EZSIP-LEAD-CLEAR',
592
+ DIALER_CAMPAIGN_DETAILS: 'IVR-EZSIP-DIALER-CAMPAIGN-DETAILS',
593
+ GET_CAMPAIGN_USER_LEADS: 'IVR-EZSIP-GET-CAMPAIGN-USER-LEADS',
594
+ },
540
595
  LEGAL_PORTAL: {
541
596
  GET_CLIENT: 'INTEGRATION-LEGAL-PORTAL-GET-CLIENT',
542
597
  GET_LOAN_TIMELINE: 'INTEGRATION-LEGAL-PORTAL-GET-LOAN-TIMELINE',
@@ -245,7 +245,8 @@ export declare enum JobTypeEnum {
245
245
  EXPORT_BORROWER_COLLECTION_REPORT = "EXPORT-BORROWER-COLLECTION-REPORT",
246
246
  EXPORT_USER_BREAK_REPORT = "EXPORT-USER-BREAK-REPORT",
247
247
  UPLOAD_BORROWER_DISPOSITION = "UPLOAD-BORROWER-DISPOSITION",
248
- UPLOAD_SKIP_RECORDS = "UPLOAD-SKIP-RECORDS"
248
+ UPLOAD_SKIP_RECORDS = "UPLOAD-SKIP-RECORDS",
249
+ IVR_LEAD_FILE = "ivr-lead-file-parser"
249
250
  }
250
251
  export declare enum PaymentStatus {
251
252
  UNPAID = 1,
@@ -306,6 +307,7 @@ export declare const Constants: {
306
307
  PAYMENT_FILE: string;
307
308
  REASSIGNMENT_FILE: string;
308
309
  COMMUNICATIONS_FILE: string;
310
+ IVR_LEAD_FILE: string;
309
311
  };
310
312
  SLUG: {
311
313
  SEEDER: {
@@ -271,6 +271,7 @@ var JobTypeEnum;
271
271
  JobTypeEnum["EXPORT_USER_BREAK_REPORT"] = "EXPORT-USER-BREAK-REPORT";
272
272
  JobTypeEnum["UPLOAD_BORROWER_DISPOSITION"] = "UPLOAD-BORROWER-DISPOSITION";
273
273
  JobTypeEnum["UPLOAD_SKIP_RECORDS"] = "UPLOAD-SKIP-RECORDS";
274
+ JobTypeEnum["IVR_LEAD_FILE"] = "ivr-lead-file-parser";
274
275
  })(JobTypeEnum || (exports.JobTypeEnum = JobTypeEnum = {}));
275
276
  var PaymentStatus;
276
277
  (function (PaymentStatus) {
@@ -333,6 +334,7 @@ exports.Constants = {
333
334
  PAYMENT_FILE: 'payment-file-parser',
334
335
  REASSIGNMENT_FILE: 'reassign-file-parser',
335
336
  COMMUNICATIONS_FILE: 'message-file-parser',
337
+ IVR_LEAD_FILE: 'ivr-lead-file-parser',
336
338
  },
337
339
  SLUG: {
338
340
  SEEDER: {
@@ -276,6 +276,7 @@ export enum JobTypeEnum {
276
276
  EXPORT_USER_BREAK_REPORT = 'EXPORT-USER-BREAK-REPORT',
277
277
  UPLOAD_BORROWER_DISPOSITION = 'UPLOAD-BORROWER-DISPOSITION',
278
278
  UPLOAD_SKIP_RECORDS = 'UPLOAD-SKIP-RECORDS',
279
+ IVR_LEAD_FILE = 'ivr-lead-file-parser',
279
280
  }
280
281
 
281
282
  export enum PaymentStatus {
@@ -355,6 +356,7 @@ export const Constants = {
355
356
  PAYMENT_FILE: 'payment-file-parser',
356
357
  REASSIGNMENT_FILE: 'reassign-file-parser',
357
358
  COMMUNICATIONS_FILE: 'message-file-parser',
359
+ IVR_LEAD_FILE: 'ivr-lead-file-parser',
358
360
  },
359
361
  SLUG: {
360
362
  SEEDER: {
@@ -4,6 +4,9 @@ export * from './borrowersDispositions';
4
4
  export * from './borrowersHistory';
5
5
  export * from './break';
6
6
  export * from './campaigns';
7
+ export * from './ivrCampaigns';
8
+ export * from './ivrDetails';
9
+ export * from './ivrLead';
7
10
  export * from './cdr';
8
11
  export * from './centers';
9
12
  export * from './cities';
@@ -7,6 +7,9 @@ tslib_1.__exportStar(require("./borrowersDispositions"), exports);
7
7
  tslib_1.__exportStar(require("./borrowersHistory"), exports);
8
8
  tslib_1.__exportStar(require("./break"), exports);
9
9
  tslib_1.__exportStar(require("./campaigns"), exports);
10
+ tslib_1.__exportStar(require("./ivrCampaigns"), exports);
11
+ tslib_1.__exportStar(require("./ivrDetails"), exports);
12
+ tslib_1.__exportStar(require("./ivrLead"), exports);
10
13
  tslib_1.__exportStar(require("./cdr"), exports);
11
14
  tslib_1.__exportStar(require("./centers"), exports);
12
15
  tslib_1.__exportStar(require("./cities"), exports);
@@ -4,6 +4,9 @@ export * from './borrowersDispositions';
4
4
  export * from './borrowersHistory';
5
5
  export * from './break';
6
6
  export * from './campaigns';
7
+ export * from './ivrCampaigns';
8
+ export * from './ivrDetails';
9
+ export * from './ivrLead';
7
10
  export * from './cdr';
8
11
  export * from './centers';
9
12
  export * from './cities';
@@ -1,2 +1,3 @@
1
1
  export * from './ezsip';
2
+ export * from './ivrEzsip';
2
3
  export * from './legalPortal';
@@ -2,4 +2,5 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  tslib_1.__exportStar(require("./ezsip"), exports);
5
+ tslib_1.__exportStar(require("./ivrEzsip"), exports);
5
6
  tslib_1.__exportStar(require("./legalPortal"), exports);
@@ -1,2 +1,3 @@
1
1
  export * from './ezsip';
2
+ export * from './ivrEzsip';
2
3
  export * from './legalPortal';
@@ -0,0 +1,26 @@
1
+ export interface IIvrEzsipFilePayload {
2
+ buffer: string;
3
+ originalname: string;
4
+ mimetype: string;
5
+ }
6
+ export interface IIvrEzsipListFilter {
7
+ offset?: number;
8
+ limit?: number;
9
+ search?: string;
10
+ fetchType?: string;
11
+ }
12
+ export interface IIvrEzsipCreatePayload {
13
+ name: string;
14
+ type: string;
15
+ recording?: string;
16
+ prefix?: string;
17
+ maxRatio?: number;
18
+ timeout?: number;
19
+ gatewayUuid?: string;
20
+ description?: string;
21
+ options?: string | Record<string, unknown> | unknown[];
22
+ file?: IIvrEzsipFilePayload;
23
+ clientId: number;
24
+ isActive: boolean;
25
+ IsStarted?: boolean;
26
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,28 @@
1
+ export interface IIvrEzsipFilePayload {
2
+ buffer: string;
3
+ originalname: string;
4
+ mimetype: string;
5
+ }
6
+
7
+ export interface IIvrEzsipListFilter {
8
+ offset?: number;
9
+ limit?: number;
10
+ search?: string;
11
+ fetchType?: string;
12
+ }
13
+
14
+ export interface IIvrEzsipCreatePayload {
15
+ name: string;
16
+ type: string;
17
+ recording?: string;
18
+ prefix?: string;
19
+ maxRatio?: number;
20
+ timeout?: number;
21
+ gatewayUuid?: string;
22
+ description?: string;
23
+ options?: string | Record<string, unknown> | unknown[];
24
+ file?: IIvrEzsipFilePayload;
25
+ clientId: number;
26
+ isActive: boolean;
27
+ IsStarted?: boolean;
28
+ }
@@ -0,0 +1,25 @@
1
+ import { DatabaseObject } from '../baseObject';
2
+ export interface IIvrCampaignStartStop {
3
+ dialerCampaignId: string;
4
+ status: boolean;
5
+ }
6
+ export interface IIvrCampaigns extends DatabaseObject {
7
+ clientId: number;
8
+ clientName?: string;
9
+ name: string;
10
+ type: string;
11
+ ivrDialerCampaignId: string;
12
+ dialerCampaignId: string;
13
+ recording?: string;
14
+ prefix?: string;
15
+ maxRatio?: number;
16
+ timeout?: number;
17
+ gatewayUuid?: string;
18
+ description?: string;
19
+ options?: string;
20
+ isStarted?: boolean;
21
+ isActive: boolean;
22
+ totalLeads?: number;
23
+ dialLeads?: number;
24
+ queuedLeads?: number;
25
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,27 @@
1
+ import { DatabaseObject } from '../baseObject';
2
+
3
+ export interface IIvrCampaignStartStop {
4
+ dialerCampaignId: string;
5
+ status: boolean;
6
+ }
7
+
8
+ export interface IIvrCampaigns extends DatabaseObject {
9
+ clientId: number;
10
+ clientName?: string;
11
+ name: string;
12
+ type: string;
13
+ ivrDialerCampaignId: string;
14
+ dialerCampaignId: string;
15
+ recording?: string;
16
+ prefix?: string;
17
+ maxRatio?: number;
18
+ timeout?: number;
19
+ gatewayUuid?: string;
20
+ description?: string;
21
+ options?: string;
22
+ isStarted?: boolean;
23
+ isActive: boolean;
24
+ totalLeads?: number;
25
+ dialLeads?: number;
26
+ queuedLeads?: number;
27
+ }
@@ -0,0 +1,68 @@
1
+ import { IListPayload } from '../payload';
2
+ export interface IIvrDetails {
3
+ id?: number;
4
+ referenceId: string;
5
+ date: string;
6
+ hour?: number | null;
7
+ minute?: number | null;
8
+ mobile: string;
9
+ loanId: number;
10
+ ivrCampaignId: number;
11
+ leadId?: string | null;
12
+ type?: string | null;
13
+ status?: string | null;
14
+ duration?: number | null;
15
+ talkSec?: number | null;
16
+ waitingSec?: number | null;
17
+ startTime?: string | null;
18
+ endTime?: string | null;
19
+ createdAt?: Date;
20
+ updatedAt?: Date;
21
+ }
22
+ export interface IIvrDetailWebhookPayload {
23
+ leadId?: string;
24
+ campaignId?: string;
25
+ number: string;
26
+ callUid: string;
27
+ uId: string;
28
+ /**
29
+ * Some senders may include this, but IVR details ingestion
30
+ * should rely on `uId` formatted as `${ivrCampaignId}-${loanId}`.
31
+ */
32
+ preferenceType?: string;
33
+ subType?: string;
34
+ type?: string;
35
+ status?: string;
36
+ duration?: number;
37
+ talkSec?: number;
38
+ waitingSec?: number;
39
+ startTime?: string;
40
+ endTime?: string;
41
+ domainUuid?: string;
42
+ }
43
+ export interface IFetchAllIvrDetails extends Omit<IListPayload, 'startDate' | 'endDate'> {
44
+ startDate?: string;
45
+ endDate?: string;
46
+ status?: string;
47
+ loanId?: number;
48
+ ivrCampaignId?: number;
49
+ clientIds?: string;
50
+ }
51
+ export interface IIvrDetailsReportRow {
52
+ id: number;
53
+ ivrDate: string;
54
+ ivrTime: string;
55
+ loanNumber: string;
56
+ borrowerName: string;
57
+ mobile: string;
58
+ mobileType: string;
59
+ campaign: string;
60
+ callDuration: string;
61
+ talkTime: string;
62
+ callAnsweredTime: string;
63
+ callStartTime: string;
64
+ callEndTime: string;
65
+ ivrDispo: string;
66
+ ivrStatus: string;
67
+ ivrResponse: string;
68
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,73 @@
1
+ import { IListPayload } from '../payload';
2
+
3
+ export interface IIvrDetails {
4
+ id?: number;
5
+ referenceId: string;
6
+ date: string;
7
+ hour?: number | null;
8
+ minute?: number | null;
9
+ mobile: string;
10
+ loanId: number;
11
+ ivrCampaignId: number;
12
+ leadId?: string | null;
13
+ type?: string | null;
14
+ status?: string | null;
15
+ duration?: number | null;
16
+ talkSec?: number | null;
17
+ waitingSec?: number | null;
18
+ startTime?: string | null;
19
+ endTime?: string | null;
20
+ createdAt?: Date;
21
+ updatedAt?: Date;
22
+ }
23
+
24
+ export interface IIvrDetailWebhookPayload {
25
+ leadId?: string;
26
+ campaignId?: string;
27
+ number: string;
28
+ callUid: string;
29
+ uId: string;
30
+ /**
31
+ * Some senders may include this, but IVR details ingestion
32
+ * should rely on `uId` formatted as `${ivrCampaignId}-${loanId}`.
33
+ */
34
+ preferenceType?: string;
35
+ subType?: string;
36
+ type?: string;
37
+ status?: string;
38
+ duration?: number;
39
+ talkSec?: number;
40
+ waitingSec?: number;
41
+ startTime?: string;
42
+ endTime?: string;
43
+ domainUuid?: string;
44
+ }
45
+
46
+ export interface IFetchAllIvrDetails
47
+ extends Omit<IListPayload, 'startDate' | 'endDate'> {
48
+ startDate?: string;
49
+ endDate?: string;
50
+ status?: string;
51
+ loanId?: number;
52
+ ivrCampaignId?: number;
53
+ clientIds?: string;
54
+ }
55
+
56
+ export interface IIvrDetailsReportRow {
57
+ id: number;
58
+ ivrDate: string;
59
+ ivrTime: string;
60
+ loanNumber: string;
61
+ borrowerName: string;
62
+ mobile: string;
63
+ mobileType: string;
64
+ campaign: string;
65
+ callDuration: string;
66
+ talkTime: string;
67
+ callAnsweredTime: string;
68
+ callStartTime: string;
69
+ callEndTime: string;
70
+ ivrDispo: string;
71
+ ivrStatus: string;
72
+ ivrResponse: string;
73
+ }
@@ -0,0 +1,15 @@
1
+ export interface IIvrLeadCorrectCSVData {
2
+ loanNumber: string;
3
+ ivrCampaignName: string;
4
+ }
5
+ export interface IIncorrectIvrLeadCSVData extends IIvrLeadCorrectCSVData {
6
+ errors: string;
7
+ }
8
+ export interface IIvrLeadValidatedRecord extends IIvrLeadCorrectCSVData {
9
+ ivrCampaignId: number;
10
+ dialerCampaignId: string;
11
+ loanId: number;
12
+ firstName: string;
13
+ lastName: string;
14
+ phoneNumber: string;
15
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,17 @@
1
+ export interface IIvrLeadCorrectCSVData {
2
+ loanNumber: string;
3
+ ivrCampaignName: string;
4
+ }
5
+
6
+ export interface IIncorrectIvrLeadCSVData extends IIvrLeadCorrectCSVData {
7
+ errors: string;
8
+ }
9
+
10
+ export interface IIvrLeadValidatedRecord extends IIvrLeadCorrectCSVData {
11
+ ivrCampaignId: number;
12
+ dialerCampaignId: string;
13
+ loanId: number;
14
+ firstName: string;
15
+ lastName: string;
16
+ phoneNumber: string;
17
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cleardu/types",
3
- "version": "1.0.559",
3
+ "version": "1.0.560",
4
4
  "description": "Nest - modern, fast, powerful node.js web framework (@aws)",
5
5
  "author": "Kamil Mysliwiec",
6
6
  "license": "MIT",