@cleardu/types 1.0.364 → 1.0.366

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.
@@ -369,6 +369,12 @@ export declare const BrokerMessages: {
369
369
  FIND_ONE: string;
370
370
  FIND_ALL_HISTORY: string;
371
371
  };
372
+ ALLOCATION_TYPE: {
373
+ CREATE: string;
374
+ UPDATE: string;
375
+ FIND_ONE: string;
376
+ FIND_ALL: string;
377
+ };
372
378
  };
373
379
  CDR: {
374
380
  PROCESS_CDR: string;
@@ -478,6 +484,17 @@ export declare const BrokerMessages: {
478
484
  FIND: string;
479
485
  UPDATE: string;
480
486
  MIGRATE: string;
487
+ WABLY: {
488
+ SEND: string;
489
+ CREATE: string;
490
+ FIND_ALL: string;
491
+ FIND: string;
492
+ UPDATE: string;
493
+ TEMPLATE: {
494
+ FIND_ALL: string;
495
+ FIND_ONE: string;
496
+ };
497
+ };
481
498
  };
482
499
  IVR: {
483
500
  TEST_CREATE: string;
@@ -372,6 +372,12 @@ exports.BrokerMessages = {
372
372
  FIND_ONE: 'FIND-DNC-NUMBERS',
373
373
  FIND_ALL_HISTORY: 'FIND_ALL_HISTORY',
374
374
  },
375
+ ALLOCATION_TYPE: {
376
+ CREATE: 'CREATE_ALLOCATION_TYPE',
377
+ UPDATE: 'UPDATE_ALLOCATION_TYPE',
378
+ FIND_ONE: 'FIND_ALLOCATION_TYPE',
379
+ FIND_ALL: 'FIND_AND_COUNT_ALL_ALLOCATION_TYPE',
380
+ },
375
381
  },
376
382
  CDR: {
377
383
  PROCESS_CDR: 'PROCESS-CDR',
@@ -481,6 +487,17 @@ exports.BrokerMessages = {
481
487
  FIND: 'FIND_WHATSAPP',
482
488
  UPDATE: 'WHATSAPP_UPDATE',
483
489
  MIGRATE: 'MIGRATE-WHATSAPP',
490
+ WABLY: {
491
+ SEND: 'SEND_WABLY_WHATSAPP',
492
+ CREATE: 'CREATE_WABLY_WHATSAPP',
493
+ FIND_ALL: 'FIND_ALL_WABLY_WHATSAPP',
494
+ FIND: 'FIND_WABLY_WHATSAPP',
495
+ UPDATE: 'WABLY_WHATSAPP_STATUS_UPDATE',
496
+ TEMPLATE: {
497
+ FIND_ALL: 'WABLY_WHATSAPP_TEMPLATES_LIST',
498
+ FIND_ONE: 'WABLY_WHATSAPP_TEMPLATES_FIND_ONE',
499
+ }
500
+ }
484
501
  },
485
502
  IVR: {
486
503
  TEST_CREATE: 'TEST_IVR',
@@ -372,6 +372,12 @@ export const BrokerMessages = {
372
372
  FIND_ONE: 'FIND-DNC-NUMBERS',
373
373
  FIND_ALL_HISTORY: 'FIND_ALL_HISTORY',
374
374
  },
375
+ ALLOCATION_TYPE: {
376
+ CREATE: 'CREATE_ALLOCATION_TYPE',
377
+ UPDATE: 'UPDATE_ALLOCATION_TYPE',
378
+ FIND_ONE: 'FIND_ALLOCATION_TYPE',
379
+ FIND_ALL: 'FIND_AND_COUNT_ALL_ALLOCATION_TYPE',
380
+ },
375
381
  },
376
382
  CDR: {
377
383
  PROCESS_CDR: 'PROCESS-CDR',
@@ -483,6 +489,17 @@ export const BrokerMessages = {
483
489
  FIND: 'FIND_WHATSAPP',
484
490
  UPDATE: 'WHATSAPP_UPDATE',
485
491
  MIGRATE: 'MIGRATE-WHATSAPP',
492
+ WABLY: {
493
+ SEND: 'SEND_WABLY_WHATSAPP',
494
+ CREATE: 'CREATE_WABLY_WHATSAPP',
495
+ FIND_ALL: 'FIND_ALL_WABLY_WHATSAPP',
496
+ FIND: 'FIND_WABLY_WHATSAPP',
497
+ UPDATE: 'WABLY_WHATSAPP_STATUS_UPDATE',
498
+ TEMPLATE: {
499
+ FIND_ALL: 'WABLY_WHATSAPP_TEMPLATES_LIST',
500
+ FIND_ONE: 'WABLY_WHATSAPP_TEMPLATES_FIND_ONE',
501
+ }
502
+ }
486
503
  },
487
504
  IVR: {
488
505
  TEST_CREATE: 'TEST_IVR',
@@ -115,6 +115,7 @@ export declare const userModules: {
115
115
  Dropdown: number;
116
116
  DNCNumbers: number;
117
117
  ClientPerformanceReport: number;
118
+ AllocationTypes: number;
118
119
  };
119
120
  export declare const dispoSubDispo: {
120
121
  dispositions: {
@@ -1234,6 +1235,26 @@ export declare const Constants: {
1234
1235
  MODULE_ID: number;
1235
1236
  };
1236
1237
  };
1238
+ ALLOCATION_TYPE: {
1239
+ ADD: {
1240
+ TITLE: string;
1241
+ SLUG: string;
1242
+ DESCRIPTION: string;
1243
+ MODULE_ID: number;
1244
+ };
1245
+ UPDATE: {
1246
+ TITLE: string;
1247
+ SLUG: string;
1248
+ DESCRIPTION: string;
1249
+ MODULE_ID: number;
1250
+ };
1251
+ LIST: {
1252
+ TITLE: string;
1253
+ SLUG: string;
1254
+ DESCRIPTION: string;
1255
+ MODULE_ID: number;
1256
+ };
1257
+ };
1237
1258
  };
1238
1259
  };
1239
1260
  };
@@ -145,6 +145,7 @@ exports.userModules = {
145
145
  Dropdown: 23,
146
146
  DNCNumbers: 24,
147
147
  ClientPerformanceReport: 25,
148
+ AllocationTypes: 26,
148
149
  // Templates: 24,
149
150
  // Merchants: 25,
150
151
  // PaymentModes: 26,
@@ -1274,6 +1275,26 @@ exports.Constants = {
1274
1275
  MODULE_ID: exports.userModules.ClientPerformanceReport,
1275
1276
  },
1276
1277
  },
1278
+ ALLOCATION_TYPE: {
1279
+ ADD: {
1280
+ TITLE: 'Add Allocation Type',
1281
+ SLUG: 'create_allocation_type',
1282
+ DESCRIPTION: 'Create Allocation Type',
1283
+ MODULE_ID: exports.userModules.AllocationTypes,
1284
+ },
1285
+ UPDATE: {
1286
+ TITLE: 'Update Allocation Type',
1287
+ SLUG: 'update_allocation_type',
1288
+ DESCRIPTION: 'Update Allocation Type',
1289
+ MODULE_ID: exports.userModules.AllocationTypes,
1290
+ },
1291
+ LIST: {
1292
+ TITLE: 'List Allocation Types',
1293
+ SLUG: 'list_allocation_type',
1294
+ DESCRIPTION: 'List of Allocation Types',
1295
+ MODULE_ID: exports.userModules.AllocationTypes,
1296
+ },
1297
+ },
1277
1298
  //
1278
1299
  // },
1279
1300
  // TEMPLATE: {
@@ -150,6 +150,7 @@ export const userModules = {
150
150
  Dropdown: 23,
151
151
  DNCNumbers: 24,
152
152
  ClientPerformanceReport: 25,
153
+ AllocationTypes: 26,
153
154
  // Templates: 24,
154
155
  // Merchants: 25,
155
156
  // PaymentModes: 26,
@@ -1297,6 +1298,26 @@ export const Constants = {
1297
1298
  MODULE_ID: userModules.ClientPerformanceReport,
1298
1299
  },
1299
1300
  },
1301
+ ALLOCATION_TYPE: {
1302
+ ADD: {
1303
+ TITLE: 'Add Allocation Type',
1304
+ SLUG: 'create_allocation_type',
1305
+ DESCRIPTION: 'Create Allocation Type',
1306
+ MODULE_ID: userModules.AllocationTypes,
1307
+ },
1308
+ UPDATE: {
1309
+ TITLE: 'Update Allocation Type',
1310
+ SLUG: 'update_allocation_type',
1311
+ DESCRIPTION: 'Update Allocation Type',
1312
+ MODULE_ID: userModules.AllocationTypes,
1313
+ },
1314
+ LIST: {
1315
+ TITLE: 'List Allocation Types',
1316
+ SLUG: 'list_allocation_type',
1317
+ DESCRIPTION: 'List of Allocation Types',
1318
+ MODULE_ID: userModules.AllocationTypes,
1319
+ },
1320
+ },
1300
1321
 
1301
1322
  //
1302
1323
  // },
@@ -0,0 +1,15 @@
1
+ import { DatabaseObject } from '../baseObject';
2
+ export interface IAllocationTypes extends DatabaseObject {
3
+ id?: number;
4
+ name: string;
5
+ code: string;
6
+ colorCode: string;
7
+ isActive: boolean;
8
+ }
9
+ export interface CreateUpdateAllocation {
10
+ name: string;
11
+ code: string;
12
+ colorCode: string;
13
+ isActive: boolean;
14
+ createdBy: number;
15
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,17 @@
1
+ import { DatabaseObject } from '../baseObject';
2
+
3
+ export interface IAllocationTypes extends DatabaseObject {
4
+ id?: number;
5
+ name: string;
6
+ code: string;
7
+ colorCode: string;
8
+ isActive: boolean;
9
+ }
10
+
11
+ export interface CreateUpdateAllocation {
12
+ name: string;
13
+ code: string;
14
+ colorCode: string;
15
+ isActive: boolean;
16
+ createdBy: number;
17
+ }
@@ -66,6 +66,7 @@ export * from './userActivity';
66
66
  export * from './DNCNumbers';
67
67
  export * from './DNCNumbersHistory';
68
68
  export * from './clientPerformanceReport';
69
+ export * from './allocationTypes';
69
70
  import { ConnectionOptions, Dialect, ReplicationOptions } from 'sequelize/types';
70
71
  export interface DBConnection extends ConnectionOptions {
71
72
  host: string;
@@ -69,3 +69,4 @@ tslib_1.__exportStar(require("./userActivity"), exports);
69
69
  tslib_1.__exportStar(require("./DNCNumbers"), exports);
70
70
  tslib_1.__exportStar(require("./DNCNumbersHistory"), exports);
71
71
  tslib_1.__exportStar(require("./clientPerformanceReport"), exports);
72
+ tslib_1.__exportStar(require("./allocationTypes"), exports);
@@ -66,6 +66,8 @@ export * from './userActivity';
66
66
  export * from './DNCNumbers';
67
67
  export * from './DNCNumbersHistory';
68
68
  export * from './clientPerformanceReport';
69
+ export * from './allocationTypes';
70
+
69
71
  import {
70
72
  ConnectionOptions,
71
73
  Dialect,
@@ -72,6 +72,7 @@ export interface ILoans extends DatabaseObject {
72
72
  latestRealizePaymentAmount?: number | null;
73
73
  paymentHistoryStatus?: PaymentHistoryStatus;
74
74
  isDNC: boolean;
75
+ allocationTypesId: number;
75
76
  }
76
77
  export interface ILoanMapingUser extends ILoans {
77
78
  loanUsers?: ILoanUsers[];
@@ -73,6 +73,7 @@ export interface ILoans extends DatabaseObject {
73
73
  latestRealizePaymentAmount?: number | null;
74
74
  paymentHistoryStatus?: PaymentHistoryStatus;
75
75
  isDNC: boolean;
76
+ allocationTypesId: number;
76
77
  }
77
78
  export interface ILoanMapingUser extends ILoans {
78
79
  loanUsers?: ILoanUsers[];
@@ -4,6 +4,7 @@ export interface IReassignmentCorrectCSVData extends DatabaseObject {
4
4
  loanNumber: string;
5
5
  agentEmail: string;
6
6
  newProcess: string;
7
+ allocationType: string;
7
8
  }
8
9
  export interface IIncorrectReassignmentCSVData extends IReassignmentCorrectCSVData {
9
10
  errors: string;
@@ -5,6 +5,7 @@ export interface IReassignmentCorrectCSVData extends DatabaseObject {
5
5
  loanNumber: string;
6
6
  agentEmail: string;
7
7
  newProcess: string;
8
+ allocationType: string;
8
9
  }
9
10
 
10
11
  export interface IIncorrectReassignmentCSVData
@@ -36,9 +36,8 @@ export interface IMessageFileRecordsParams {
36
36
  smsTemplateId?: number;
37
37
  smsScheduleAt?: Date;
38
38
  smsMessage?: string;
39
- whatsAppTemplateId?: string;
39
+ whatsAppTemplateName?: string;
40
40
  whatsAppScheduleAt?: Date;
41
- whatsAppMessage?: string;
42
41
  ivrDialerCampaignId?: string;
43
42
  ivrDialerCampaignName?: string;
44
43
  ivrScheduleAt?: Date;
@@ -41,9 +41,8 @@ export interface IMessageFileRecordsParams {
41
41
  smsTemplateId?: number;
42
42
  smsScheduleAt?: Date;
43
43
  smsMessage?: string;
44
- whatsAppTemplateId?: string;
44
+ whatsAppTemplateName?: string;
45
45
  whatsAppScheduleAt?: Date;
46
- whatsAppMessage?: string;
47
46
  ivrDialerCampaignId?: string;
48
47
  ivrDialerCampaignName?: string;
49
48
  ivrScheduleAt?: Date;
@@ -65,4 +65,45 @@ export interface ICommunicationDashboardLoansActions {
65
65
  filters: ICommunicationDashboardLoansActionsFilters;
66
66
  allSelected: boolean;
67
67
  }
68
+ interface IMessage {
69
+ content: {
70
+ language: string;
71
+ templateData: {
72
+ body: {
73
+ placeholders: string[];
74
+ };
75
+ buttons?: IButton[];
76
+ };
77
+ templateName: string;
78
+ };
79
+ from: string;
80
+ to: string;
81
+ }
82
+ interface IButton {
83
+ type: string;
84
+ text: string;
85
+ url: string;
86
+ parameter: string;
87
+ }
88
+ export interface IWablyMessagesPayload {
89
+ messages: IMessage[];
90
+ }
91
+ export interface wablyWhatsAppSendRes {
92
+ success: boolean;
93
+ status: number;
94
+ result: {
95
+ status: string;
96
+ recipient: string;
97
+ messageId: string;
98
+ };
99
+ }
100
+ interface wablyWhatsAppTemplateCategory {
101
+ name: string;
102
+ }
103
+ export interface wablyWhatsAppTemplate {
104
+ id: number;
105
+ name: string;
106
+ message: string;
107
+ category: wablyWhatsAppTemplateCategory;
108
+ }
68
109
  export {};
@@ -89,3 +89,50 @@ export interface ICommunicationDashboardLoansActions {
89
89
  filters: ICommunicationDashboardLoansActionsFilters;
90
90
  allSelected: boolean;
91
91
  }
92
+
93
+ interface IMessage {
94
+ content: {
95
+ language: string;
96
+ templateData: {
97
+ body: {
98
+ placeholders: string[];
99
+ };
100
+ buttons?: IButton[];
101
+ };
102
+ templateName: string;
103
+ };
104
+ from: string;
105
+ to: string;
106
+ }
107
+
108
+ interface IButton {
109
+ type: string;
110
+ text: string;
111
+ url: string;
112
+ parameter: string;
113
+ }
114
+
115
+ export interface IWablyMessagesPayload {
116
+ messages: IMessage[];
117
+ }
118
+
119
+ export interface wablyWhatsAppSendRes {
120
+ success: boolean;
121
+ status: number;
122
+ result: {
123
+ status: string;
124
+ recipient: string;
125
+ messageId: string;
126
+ };
127
+ }
128
+
129
+ interface wablyWhatsAppTemplateCategory {
130
+ name: string;
131
+ }
132
+
133
+ export interface wablyWhatsAppTemplate {
134
+ id: number;
135
+ name: string;
136
+ message: string;
137
+ category: wablyWhatsAppTemplateCategory;
138
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cleardu/types",
3
- "version": "1.0.364",
3
+ "version": "1.0.366",
4
4
  "description": "Nest - modern, fast, powerful node.js web framework (@aws)",
5
5
  "author": "Kamil Mysliwiec",
6
6
  "license": "MIT",