@cleardu/types 1.0.43
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/constants/brokerMessages/index.d.ts +164 -0
- package/constants/brokerMessages/index.js +167 -0
- package/constants/brokerMessages/index.ts +165 -0
- package/constants/index.d.ts +177 -0
- package/constants/index.js +192 -0
- package/constants/index.ts +200 -0
- package/index.d.ts +2 -0
- package/index.js +5 -0
- package/index.ts +2 -0
- package/interfaces/baseObject/index.d.ts +12 -0
- package/interfaces/baseObject/index.js +2 -0
- package/interfaces/baseObject/index.ts +12 -0
- package/interfaces/borrowers/index.d.ts +140 -0
- package/interfaces/borrowers/index.js +2 -0
- package/interfaces/borrowers/index.ts +146 -0
- package/interfaces/borrowersDispositions/index.d.ts +15 -0
- package/interfaces/borrowersDispositions/index.js +2 -0
- package/interfaces/borrowersDispositions/index.ts +16 -0
- package/interfaces/borrowersHistory/index.d.ts +3 -0
- package/interfaces/borrowersHistory/index.js +2 -0
- package/interfaces/borrowersHistory/index.ts +3 -0
- package/interfaces/break/index.d.ts +7 -0
- package/interfaces/break/index.js +2 -0
- package/interfaces/break/index.ts +8 -0
- package/interfaces/campaignUsers/index.d.ts +13 -0
- package/interfaces/campaignUsers/index.js +2 -0
- package/interfaces/campaignUsers/index.ts +15 -0
- package/interfaces/campaigns/index.d.ts +13 -0
- package/interfaces/campaigns/index.js +2 -0
- package/interfaces/campaigns/index.ts +14 -0
- package/interfaces/cdr/index.d.ts +66 -0
- package/interfaces/cdr/index.js +10 -0
- package/interfaces/cdr/index.ts +73 -0
- package/interfaces/centers/index.d.ts +13 -0
- package/interfaces/centers/index.js +2 -0
- package/interfaces/centers/index.ts +14 -0
- package/interfaces/cities/index.d.ts +5 -0
- package/interfaces/cities/index.js +2 -0
- package/interfaces/cities/index.ts +6 -0
- package/interfaces/clientCities/index.d.ts +6 -0
- package/interfaces/clientCities/index.js +2 -0
- package/interfaces/clientCities/index.ts +6 -0
- package/interfaces/clientStates/index.d.ts +6 -0
- package/interfaces/clientStates/index.js +2 -0
- package/interfaces/clientStates/index.ts +7 -0
- package/interfaces/clients/index.d.ts +15 -0
- package/interfaces/clients/index.js +2 -0
- package/interfaces/clients/index.ts +16 -0
- package/interfaces/customer/index.d.ts +164 -0
- package/interfaces/customer/index.js +2 -0
- package/interfaces/customer/index.ts +172 -0
- package/interfaces/dialers/index.d.ts +8 -0
- package/interfaces/dialers/index.js +2 -0
- package/interfaces/dialers/index.ts +9 -0
- package/interfaces/dispositions/index.d.ts +9 -0
- package/interfaces/dispositions/index.js +2 -0
- package/interfaces/dispositions/index.ts +10 -0
- package/interfaces/docCategory/index.d.ts +6 -0
- package/interfaces/docCategory/index.js +2 -0
- package/interfaces/docCategory/index.ts +7 -0
- package/interfaces/emailReports/index.d.ts +6 -0
- package/interfaces/emailReports/index.js +2 -0
- package/interfaces/emailReports/index.ts +6 -0
- package/interfaces/idObject/index.d.ts +4 -0
- package/interfaces/idObject/index.js +2 -0
- package/interfaces/idObject/index.ts +4 -0
- package/interfaces/index.d.ts +72 -0
- package/interfaces/index.js +49 -0
- package/interfaces/index.ts +81 -0
- package/interfaces/integration/ezsip/index.d.ts +218 -0
- package/interfaces/integration/ezsip/index.js +2 -0
- package/interfaces/integration/ezsip/index.ts +299 -0
- package/interfaces/integration/index.d.ts +1 -0
- package/interfaces/integration/index.js +4 -0
- package/interfaces/integration/index.ts +1 -0
- package/interfaces/jobs/index.d.ts +67 -0
- package/interfaces/jobs/index.js +2 -0
- package/interfaces/jobs/index.ts +91 -0
- package/interfaces/loanGroups/index.d.ts +12 -0
- package/interfaces/loanGroups/index.js +2 -0
- package/interfaces/loanGroups/index.ts +13 -0
- package/interfaces/loanHistory/index.d.ts +3 -0
- package/interfaces/loanHistory/index.js +2 -0
- package/interfaces/loanHistory/index.ts +3 -0
- package/interfaces/loanParticipantHistory/index.d.ts +3 -0
- package/interfaces/loanParticipantHistory/index.js +2 -0
- package/interfaces/loanParticipantHistory/index.ts +3 -0
- package/interfaces/loanParticipants/index.d.ts +25 -0
- package/interfaces/loanParticipants/index.js +2 -0
- package/interfaces/loanParticipants/index.ts +26 -0
- package/interfaces/loans/index.d.ts +55 -0
- package/interfaces/loans/index.js +2 -0
- package/interfaces/loans/index.ts +56 -0
- package/interfaces/loginDetails/index.d.ts +5 -0
- package/interfaces/loginDetails/index.js +2 -0
- package/interfaces/loginDetails/index.ts +6 -0
- package/interfaces/merchants/index.d.ts +16 -0
- package/interfaces/merchants/index.js +2 -0
- package/interfaces/merchants/index.ts +17 -0
- package/interfaces/modules/index.d.ts +8 -0
- package/interfaces/modules/index.js +2 -0
- package/interfaces/modules/index.ts +8 -0
- package/interfaces/payload/index.d.ts +10 -0
- package/interfaces/payload/index.js +2 -0
- package/interfaces/payload/index.ts +11 -0
- package/interfaces/paymentAccounts/index.d.ts +8 -0
- package/interfaces/paymentAccounts/index.js +2 -0
- package/interfaces/paymentAccounts/index.ts +9 -0
- package/interfaces/payments/index.d.ts +42 -0
- package/interfaces/payments/index.js +2 -0
- package/interfaces/payments/index.ts +46 -0
- package/interfaces/permissions/index.d.ts +15 -0
- package/interfaces/permissions/index.js +2 -0
- package/interfaces/permissions/index.ts +17 -0
- package/interfaces/portfolios/index.d.ts +15 -0
- package/interfaces/portfolios/index.js +2 -0
- package/interfaces/portfolios/index.ts +16 -0
- package/interfaces/portfoliosTarget/index.d.ts +6 -0
- package/interfaces/portfoliosTarget/index.js +2 -0
- package/interfaces/portfoliosTarget/index.ts +7 -0
- package/interfaces/reassignment/index.d.ts +27 -0
- package/interfaces/reassignment/index.js +2 -0
- package/interfaces/reassignment/index.ts +31 -0
- package/interfaces/response.interface.d.ts +11 -0
- package/interfaces/response.interface.js +11 -0
- package/interfaces/response.interface.ts +17 -0
- package/interfaces/responseType/index.d.ts +13 -0
- package/interfaces/responseType/index.js +2 -0
- package/interfaces/responseType/index.ts +16 -0
- package/interfaces/role/index.d.ts +9 -0
- package/interfaces/role/index.js +2 -0
- package/interfaces/role/index.ts +9 -0
- package/interfaces/rolePermissions/index.d.ts +10 -0
- package/interfaces/rolePermissions/index.js +2 -0
- package/interfaces/rolePermissions/index.ts +11 -0
- package/interfaces/settlementHistory/index.d.ts +26 -0
- package/interfaces/settlementHistory/index.js +2 -0
- package/interfaces/settlementHistory/index.ts +27 -0
- package/interfaces/settlementNotes/index.d.ts +14 -0
- package/interfaces/settlementNotes/index.js +2 -0
- package/interfaces/settlementNotes/index.ts +14 -0
- package/interfaces/settlements/index.d.ts +10 -0
- package/interfaces/settlements/index.js +2 -0
- package/interfaces/settlements/index.ts +11 -0
- package/interfaces/states/index.d.ts +5 -0
- package/interfaces/states/index.js +2 -0
- package/interfaces/states/index.ts +7 -0
- package/interfaces/statsBorrowerLoan/index.d.ts +15 -0
- package/interfaces/statsBorrowerLoan/index.js +2 -0
- package/interfaces/statsBorrowerLoan/index.ts +15 -0
- package/interfaces/statsClientCall/index.d.ts +38 -0
- package/interfaces/statsClientCall/index.js +2 -0
- package/interfaces/statsClientCall/index.ts +38 -0
- package/interfaces/statsHourlyCall/index.d.ts +23 -0
- package/interfaces/statsHourlyCall/index.js +2 -0
- package/interfaces/statsHourlyCall/index.ts +23 -0
- package/interfaces/tags/index.d.ts +9 -0
- package/interfaces/tags/index.js +2 -0
- package/interfaces/tags/index.ts +10 -0
- package/interfaces/userPermissions/index.d.ts +69 -0
- package/interfaces/userPermissions/index.js +2 -0
- package/interfaces/userPermissions/index.ts +69 -0
- package/interfaces/userTaskCustomers/index.d.ts +14 -0
- package/interfaces/userTaskCustomers/index.js +2 -0
- package/interfaces/userTaskCustomers/index.ts +15 -0
- package/interfaces/userTasks/index.d.ts +10 -0
- package/interfaces/userTasks/index.js +2 -0
- package/interfaces/userTasks/index.ts +11 -0
- package/interfaces/users/index.d.ts +65 -0
- package/interfaces/users/index.js +2 -0
- package/interfaces/users/index.ts +76 -0
- package/package.json +31 -0
- package/tsconfig.build.json +10 -0
- package/tsconfig.build.tsbuildinfo +1 -0
- package/tsconfig.json +13 -0
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
export interface IAgentLogin {
|
|
2
|
+
agentId: string;
|
|
3
|
+
campaignId: string;
|
|
4
|
+
extension: number;
|
|
5
|
+
}
|
|
6
|
+
export interface IEzsipBaseResponse {
|
|
7
|
+
statusCode: number;
|
|
8
|
+
message: string | string[];
|
|
9
|
+
data?: IEzsipResponse;
|
|
10
|
+
error?: string;
|
|
11
|
+
}
|
|
12
|
+
interface IEzsipResponse {
|
|
13
|
+
id?: string;
|
|
14
|
+
agent: {
|
|
15
|
+
callCenterAgentUuid?: string;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
export interface AxiosRequestConfig<D = any> {
|
|
19
|
+
url?: string;
|
|
20
|
+
method?: Method | string;
|
|
21
|
+
baseURL?: string;
|
|
22
|
+
transformRequest?: AxiosRequestTransformer | AxiosRequestTransformer[];
|
|
23
|
+
transformResponse?: AxiosResponseTransformer | AxiosResponseTransformer[];
|
|
24
|
+
headers?: AxiosRequestHeaders;
|
|
25
|
+
params?: any;
|
|
26
|
+
paramsSerializer?: (params: any) => string;
|
|
27
|
+
data?: D;
|
|
28
|
+
timeout?: number;
|
|
29
|
+
timeoutErrorMessage?: string;
|
|
30
|
+
withCredentials?: boolean;
|
|
31
|
+
adapter?: AxiosAdapter;
|
|
32
|
+
auth?: AxiosBasicCredentials;
|
|
33
|
+
responseType?: ResponseType;
|
|
34
|
+
responseEncoding?: responseEncoding | string;
|
|
35
|
+
xsrfCookieName?: string;
|
|
36
|
+
xsrfHeaderName?: string;
|
|
37
|
+
onUploadProgress?: (progressEvent: any) => void;
|
|
38
|
+
onDownloadProgress?: (progressEvent: any) => void;
|
|
39
|
+
maxContentLength?: number;
|
|
40
|
+
validateStatus?: ((status: number) => boolean) | null;
|
|
41
|
+
maxBodyLength?: number;
|
|
42
|
+
maxRedirects?: number;
|
|
43
|
+
beforeRedirect?: (options: Record<string, any>, responseDetails: {
|
|
44
|
+
headers: Record<string, string>;
|
|
45
|
+
}) => void;
|
|
46
|
+
socketPath?: string | null;
|
|
47
|
+
httpAgent?: any;
|
|
48
|
+
httpsAgent?: any;
|
|
49
|
+
proxy?: AxiosProxyConfig | false;
|
|
50
|
+
cancelToken?: CancelToken;
|
|
51
|
+
decompress?: boolean;
|
|
52
|
+
transitional?: TransitionalOptions;
|
|
53
|
+
signal?: AbortSignal;
|
|
54
|
+
insecureHTTPParser?: boolean;
|
|
55
|
+
env?: {
|
|
56
|
+
FormData?: new (...args: any[]) => object;
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
export interface AxiosRequestTransformer {
|
|
60
|
+
(data: any, headers?: AxiosRequestHeaders): any;
|
|
61
|
+
}
|
|
62
|
+
export interface AxiosResponseTransformer {
|
|
63
|
+
(data: any, headers?: AxiosResponseHeaders): any;
|
|
64
|
+
}
|
|
65
|
+
export type AxiosRequestHeaders = Record<string, string | number | boolean>;
|
|
66
|
+
export interface AxiosAdapter {
|
|
67
|
+
(config: AxiosRequestConfig): AxiosPromise;
|
|
68
|
+
}
|
|
69
|
+
export type Method = 'get' | 'GET' | 'delete' | 'DELETE' | 'head' | 'HEAD' | 'options' | 'OPTIONS' | 'post' | 'POST' | 'put' | 'PUT' | 'patch' | 'PATCH' | 'purge' | 'PURGE' | 'link' | 'LINK' | 'unlink' | 'UNLINK';
|
|
70
|
+
export interface AxiosBasicCredentials {
|
|
71
|
+
username: string;
|
|
72
|
+
password: string;
|
|
73
|
+
}
|
|
74
|
+
export type responseEncoding = 'ascii' | 'ASCII' | 'ansi' | 'ANSI' | 'binary' | 'BINARY' | 'base64' | 'BASE64' | 'base64url' | 'BASE64URL' | 'hex' | 'HEX' | 'latin1' | 'LATIN1' | 'ucs-2' | 'UCS-2' | 'ucs2' | 'UCS2' | 'utf-8' | 'UTF-8' | 'utf8' | 'UTF8' | 'utf16le' | 'UTF16LE';
|
|
75
|
+
export interface AxiosProxyConfig {
|
|
76
|
+
host: string;
|
|
77
|
+
port: number;
|
|
78
|
+
auth?: {
|
|
79
|
+
username: string;
|
|
80
|
+
password: string;
|
|
81
|
+
};
|
|
82
|
+
protocol?: string;
|
|
83
|
+
}
|
|
84
|
+
export interface CancelToken {
|
|
85
|
+
promise: Promise<Cancel>;
|
|
86
|
+
reason?: Cancel;
|
|
87
|
+
throwIfRequested(): void;
|
|
88
|
+
}
|
|
89
|
+
export interface TransitionalOptions {
|
|
90
|
+
silentJSONParsing?: boolean;
|
|
91
|
+
forcedJSONParsing?: boolean;
|
|
92
|
+
clarifyTimeoutError?: boolean;
|
|
93
|
+
}
|
|
94
|
+
export type AxiosResponseHeaders = Record<string, string> & {
|
|
95
|
+
'set-cookie'?: string[];
|
|
96
|
+
};
|
|
97
|
+
export interface AxiosPromise<T = any> extends Promise<AxiosResponse<T>> {
|
|
98
|
+
}
|
|
99
|
+
export interface AxiosResponse<T = any, D = any> {
|
|
100
|
+
data: T;
|
|
101
|
+
status: number;
|
|
102
|
+
statusText: string;
|
|
103
|
+
headers: AxiosResponseHeaders;
|
|
104
|
+
config: AxiosRequestConfig<D>;
|
|
105
|
+
request?: any;
|
|
106
|
+
}
|
|
107
|
+
export interface Cancel {
|
|
108
|
+
message: string | undefined;
|
|
109
|
+
}
|
|
110
|
+
export interface ICreateAgent {
|
|
111
|
+
roles: string[];
|
|
112
|
+
agentStatus: string;
|
|
113
|
+
rolesName: string[];
|
|
114
|
+
agentType: string;
|
|
115
|
+
userEnabled: boolean;
|
|
116
|
+
firstName: string;
|
|
117
|
+
userEmail: string;
|
|
118
|
+
confirmPassword: string;
|
|
119
|
+
username: string;
|
|
120
|
+
lastName?: string;
|
|
121
|
+
password: string;
|
|
122
|
+
agentContact: string;
|
|
123
|
+
}
|
|
124
|
+
export interface IUpdateAgent extends Partial<ICreateAgent> {
|
|
125
|
+
id: string;
|
|
126
|
+
agentName: string;
|
|
127
|
+
}
|
|
128
|
+
export interface IExtension {
|
|
129
|
+
extension: number;
|
|
130
|
+
isMultiple: boolean;
|
|
131
|
+
}
|
|
132
|
+
export interface IAgent {
|
|
133
|
+
agentId: string;
|
|
134
|
+
campaignId: string;
|
|
135
|
+
extension: number;
|
|
136
|
+
}
|
|
137
|
+
export interface ICreateCampaign {
|
|
138
|
+
type: string;
|
|
139
|
+
name: string;
|
|
140
|
+
agents: string[];
|
|
141
|
+
strategy: string;
|
|
142
|
+
maxRatio: number;
|
|
143
|
+
}
|
|
144
|
+
export interface IUpdateCampaign extends Partial<ICreateCampaign> {
|
|
145
|
+
id: string;
|
|
146
|
+
}
|
|
147
|
+
export interface IManyLeadsDeleted {
|
|
148
|
+
campaignId: string;
|
|
149
|
+
uId: string[];
|
|
150
|
+
}
|
|
151
|
+
export interface ICampaignToggle {
|
|
152
|
+
id: string;
|
|
153
|
+
status: boolean;
|
|
154
|
+
}
|
|
155
|
+
export interface IManualCall {
|
|
156
|
+
agentId: string;
|
|
157
|
+
uId: string;
|
|
158
|
+
campaignId: string;
|
|
159
|
+
phoneNumber: number;
|
|
160
|
+
}
|
|
161
|
+
export interface IClickToCall {
|
|
162
|
+
agentId: string;
|
|
163
|
+
uId: string;
|
|
164
|
+
phoneNumber: number;
|
|
165
|
+
}
|
|
166
|
+
export interface IEndCall {
|
|
167
|
+
callId: string;
|
|
168
|
+
shouldBreak: boolean;
|
|
169
|
+
shouldPause: boolean;
|
|
170
|
+
}
|
|
171
|
+
export interface IAgentPause {
|
|
172
|
+
agentId: string;
|
|
173
|
+
campaignId: string;
|
|
174
|
+
}
|
|
175
|
+
export interface IAgentReportFilter {
|
|
176
|
+
offset?: number;
|
|
177
|
+
limit?: number;
|
|
178
|
+
duration?: string;
|
|
179
|
+
agentId?: string[];
|
|
180
|
+
campaignId?: string[];
|
|
181
|
+
startDate?: string;
|
|
182
|
+
endDate?: string;
|
|
183
|
+
}
|
|
184
|
+
export interface ICampaignFilter {
|
|
185
|
+
offset?: number;
|
|
186
|
+
limit?: number;
|
|
187
|
+
}
|
|
188
|
+
export interface ILead {
|
|
189
|
+
firstName: string;
|
|
190
|
+
lastName: string;
|
|
191
|
+
phoneNumber: string;
|
|
192
|
+
uId: string;
|
|
193
|
+
}
|
|
194
|
+
export interface ICreateMultipleLeads {
|
|
195
|
+
campaignId: string;
|
|
196
|
+
data: ILead[];
|
|
197
|
+
}
|
|
198
|
+
export interface IActivateDeactivateAgent {
|
|
199
|
+
id: string;
|
|
200
|
+
extension: number;
|
|
201
|
+
}
|
|
202
|
+
export interface IFilter {
|
|
203
|
+
offset?: number;
|
|
204
|
+
limit?: number;
|
|
205
|
+
search?: string;
|
|
206
|
+
}
|
|
207
|
+
export interface IWhatsAppReport extends IFilter {
|
|
208
|
+
to?: string;
|
|
209
|
+
}
|
|
210
|
+
export interface IWhatsAppRecipient {
|
|
211
|
+
phoneNumber: string;
|
|
212
|
+
}
|
|
213
|
+
export interface IWhatsAppSendPayload {
|
|
214
|
+
type: string;
|
|
215
|
+
recipient: IWhatsAppRecipient;
|
|
216
|
+
message: string;
|
|
217
|
+
}
|
|
218
|
+
export {};
|
|
@@ -0,0 +1,299 @@
|
|
|
1
|
+
export interface IAgentLogin {
|
|
2
|
+
agentId: string;
|
|
3
|
+
campaignId: string;
|
|
4
|
+
extension: number;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export interface IEzsipBaseResponse {
|
|
8
|
+
statusCode: number;
|
|
9
|
+
message: string | string[];
|
|
10
|
+
data?: IEzsipResponse;
|
|
11
|
+
error?: string;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
interface IEzsipResponse {
|
|
15
|
+
id?: string;
|
|
16
|
+
agent: {
|
|
17
|
+
callCenterAgentUuid?: string;
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export interface AxiosRequestConfig<D = any> {
|
|
22
|
+
url?: string;
|
|
23
|
+
method?: Method | string;
|
|
24
|
+
baseURL?: string;
|
|
25
|
+
transformRequest?: AxiosRequestTransformer | AxiosRequestTransformer[];
|
|
26
|
+
transformResponse?: AxiosResponseTransformer | AxiosResponseTransformer[];
|
|
27
|
+
headers?: AxiosRequestHeaders;
|
|
28
|
+
params?: any;
|
|
29
|
+
paramsSerializer?: (params: any) => string;
|
|
30
|
+
data?: D;
|
|
31
|
+
timeout?: number;
|
|
32
|
+
timeoutErrorMessage?: string;
|
|
33
|
+
withCredentials?: boolean;
|
|
34
|
+
adapter?: AxiosAdapter;
|
|
35
|
+
auth?: AxiosBasicCredentials;
|
|
36
|
+
responseType?: ResponseType;
|
|
37
|
+
responseEncoding?: responseEncoding | string;
|
|
38
|
+
xsrfCookieName?: string;
|
|
39
|
+
xsrfHeaderName?: string;
|
|
40
|
+
onUploadProgress?: (progressEvent: any) => void;
|
|
41
|
+
onDownloadProgress?: (progressEvent: any) => void;
|
|
42
|
+
maxContentLength?: number;
|
|
43
|
+
validateStatus?: ((status: number) => boolean) | null;
|
|
44
|
+
maxBodyLength?: number;
|
|
45
|
+
maxRedirects?: number;
|
|
46
|
+
beforeRedirect?: (
|
|
47
|
+
options: Record<string, any>,
|
|
48
|
+
responseDetails: { headers: Record<string, string> },
|
|
49
|
+
) => void;
|
|
50
|
+
socketPath?: string | null;
|
|
51
|
+
httpAgent?: any;
|
|
52
|
+
httpsAgent?: any;
|
|
53
|
+
proxy?: AxiosProxyConfig | false;
|
|
54
|
+
cancelToken?: CancelToken;
|
|
55
|
+
decompress?: boolean;
|
|
56
|
+
transitional?: TransitionalOptions;
|
|
57
|
+
signal?: AbortSignal;
|
|
58
|
+
insecureHTTPParser?: boolean;
|
|
59
|
+
env?: {
|
|
60
|
+
FormData?: new (...args: any[]) => object;
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export interface AxiosRequestTransformer {
|
|
65
|
+
(data: any, headers?: AxiosRequestHeaders): any;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export interface AxiosResponseTransformer {
|
|
69
|
+
(data: any, headers?: AxiosResponseHeaders): any;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export type AxiosRequestHeaders = Record<string, string | number | boolean>;
|
|
73
|
+
|
|
74
|
+
export interface AxiosAdapter {
|
|
75
|
+
(config: AxiosRequestConfig): AxiosPromise;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export type Method =
|
|
79
|
+
| 'get'
|
|
80
|
+
| 'GET'
|
|
81
|
+
| 'delete'
|
|
82
|
+
| 'DELETE'
|
|
83
|
+
| 'head'
|
|
84
|
+
| 'HEAD'
|
|
85
|
+
| 'options'
|
|
86
|
+
| 'OPTIONS'
|
|
87
|
+
| 'post'
|
|
88
|
+
| 'POST'
|
|
89
|
+
| 'put'
|
|
90
|
+
| 'PUT'
|
|
91
|
+
| 'patch'
|
|
92
|
+
| 'PATCH'
|
|
93
|
+
| 'purge'
|
|
94
|
+
| 'PURGE'
|
|
95
|
+
| 'link'
|
|
96
|
+
| 'LINK'
|
|
97
|
+
| 'unlink'
|
|
98
|
+
| 'UNLINK';
|
|
99
|
+
|
|
100
|
+
export interface AxiosBasicCredentials {
|
|
101
|
+
username: string;
|
|
102
|
+
password: string;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export type responseEncoding =
|
|
106
|
+
| 'ascii'
|
|
107
|
+
| 'ASCII'
|
|
108
|
+
| 'ansi'
|
|
109
|
+
| 'ANSI'
|
|
110
|
+
| 'binary'
|
|
111
|
+
| 'BINARY'
|
|
112
|
+
| 'base64'
|
|
113
|
+
| 'BASE64'
|
|
114
|
+
| 'base64url'
|
|
115
|
+
| 'BASE64URL'
|
|
116
|
+
| 'hex'
|
|
117
|
+
| 'HEX'
|
|
118
|
+
| 'latin1'
|
|
119
|
+
| 'LATIN1'
|
|
120
|
+
| 'ucs-2'
|
|
121
|
+
| 'UCS-2'
|
|
122
|
+
| 'ucs2'
|
|
123
|
+
| 'UCS2'
|
|
124
|
+
| 'utf-8'
|
|
125
|
+
| 'UTF-8'
|
|
126
|
+
| 'utf8'
|
|
127
|
+
| 'UTF8'
|
|
128
|
+
| 'utf16le'
|
|
129
|
+
| 'UTF16LE';
|
|
130
|
+
|
|
131
|
+
export interface AxiosProxyConfig {
|
|
132
|
+
host: string;
|
|
133
|
+
port: number;
|
|
134
|
+
auth?: {
|
|
135
|
+
username: string;
|
|
136
|
+
password: string;
|
|
137
|
+
};
|
|
138
|
+
protocol?: string;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
export interface CancelToken {
|
|
142
|
+
promise: Promise<Cancel>;
|
|
143
|
+
reason?: Cancel;
|
|
144
|
+
throwIfRequested(): void;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
export interface TransitionalOptions {
|
|
148
|
+
silentJSONParsing?: boolean;
|
|
149
|
+
forcedJSONParsing?: boolean;
|
|
150
|
+
clarifyTimeoutError?: boolean;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
export type AxiosResponseHeaders = Record<string, string> & {
|
|
154
|
+
'set-cookie'?: string[];
|
|
155
|
+
};
|
|
156
|
+
|
|
157
|
+
export interface AxiosPromise<T = any> extends Promise<AxiosResponse<T>> {}
|
|
158
|
+
|
|
159
|
+
export interface AxiosResponse<T = any, D = any> {
|
|
160
|
+
data: T;
|
|
161
|
+
status: number;
|
|
162
|
+
statusText: string;
|
|
163
|
+
headers: AxiosResponseHeaders;
|
|
164
|
+
config: AxiosRequestConfig<D>;
|
|
165
|
+
request?: any;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
export interface Cancel {
|
|
169
|
+
message: string | undefined;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
export interface ICreateAgent {
|
|
173
|
+
roles: string[];
|
|
174
|
+
agentStatus: string;
|
|
175
|
+
rolesName: string[];
|
|
176
|
+
agentType: string;
|
|
177
|
+
userEnabled: boolean;
|
|
178
|
+
firstName: string;
|
|
179
|
+
userEmail: string;
|
|
180
|
+
confirmPassword: string;
|
|
181
|
+
username: string;
|
|
182
|
+
lastName?: string;
|
|
183
|
+
password: string;
|
|
184
|
+
agentContact: string;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
export interface IUpdateAgent extends Partial<ICreateAgent> {
|
|
188
|
+
id: string;
|
|
189
|
+
agentName: string;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
export interface IExtension {
|
|
193
|
+
extension: number;
|
|
194
|
+
isMultiple: boolean;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
export interface IAgent {
|
|
198
|
+
agentId: string;
|
|
199
|
+
campaignId: string;
|
|
200
|
+
extension: number;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
export interface ICreateCampaign {
|
|
204
|
+
type: string;
|
|
205
|
+
name: string;
|
|
206
|
+
agents: string[];
|
|
207
|
+
strategy: string;
|
|
208
|
+
maxRatio: number;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
export interface IUpdateCampaign extends Partial<ICreateCampaign> {
|
|
212
|
+
id: string;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
export interface IManyLeadsDeleted {
|
|
216
|
+
campaignId: string;
|
|
217
|
+
uId: string[];
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
export interface ICampaignToggle {
|
|
221
|
+
id: string;
|
|
222
|
+
status: boolean;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
export interface IManualCall {
|
|
226
|
+
agentId: string;
|
|
227
|
+
uId: string;
|
|
228
|
+
campaignId: string;
|
|
229
|
+
phoneNumber: number;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
export interface IClickToCall {
|
|
233
|
+
agentId: string;
|
|
234
|
+
uId: string;
|
|
235
|
+
phoneNumber: number;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
export interface IEndCall {
|
|
239
|
+
callId: string;
|
|
240
|
+
shouldBreak: boolean;
|
|
241
|
+
shouldPause: boolean;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
export interface IAgentPause {
|
|
245
|
+
agentId: string;
|
|
246
|
+
campaignId: string;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
export interface IAgentReportFilter {
|
|
250
|
+
offset?: number; // Optional with default value in DTO
|
|
251
|
+
limit?: number; // Optional with default value in DTO
|
|
252
|
+
duration?: string;
|
|
253
|
+
agentId?: string[];
|
|
254
|
+
campaignId?: string[];
|
|
255
|
+
startDate?: string;
|
|
256
|
+
endDate?: string;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
export interface ICampaignFilter {
|
|
260
|
+
offset?: number;
|
|
261
|
+
limit?: number;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
export interface ILead {
|
|
265
|
+
firstName: string;
|
|
266
|
+
lastName: string;
|
|
267
|
+
phoneNumber: string;
|
|
268
|
+
uId: string;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
export interface ICreateMultipleLeads {
|
|
272
|
+
campaignId: string;
|
|
273
|
+
data: ILead[];
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
export interface IActivateDeactivateAgent {
|
|
277
|
+
id: string;
|
|
278
|
+
extension: number;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
export interface IFilter {
|
|
282
|
+
offset?: number;
|
|
283
|
+
limit?: number;
|
|
284
|
+
search?: string;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
export interface IWhatsAppReport extends IFilter {
|
|
288
|
+
to?: string;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
export interface IWhatsAppRecipient {
|
|
292
|
+
phoneNumber: string;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
export interface IWhatsAppSendPayload {
|
|
296
|
+
type: string;
|
|
297
|
+
recipient: IWhatsAppRecipient;
|
|
298
|
+
message: string;
|
|
299
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ezsip';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ezsip';
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { JobTypeEnum } from '../../constants';
|
|
2
|
+
import { DatabaseObject } from '../baseObject';
|
|
3
|
+
export interface ResponseBase {
|
|
4
|
+
success: boolean;
|
|
5
|
+
message: string;
|
|
6
|
+
}
|
|
7
|
+
export interface PaginatedResponse<T> extends ResponseBase {
|
|
8
|
+
count: number;
|
|
9
|
+
current: number;
|
|
10
|
+
rows: T[];
|
|
11
|
+
}
|
|
12
|
+
export interface ObjectResponse<T> extends ResponseBase {
|
|
13
|
+
obj: T;
|
|
14
|
+
}
|
|
15
|
+
export interface IJob extends DatabaseObject {
|
|
16
|
+
id: number;
|
|
17
|
+
type: JobTypeEnum;
|
|
18
|
+
clientId: number;
|
|
19
|
+
portfolioId: number;
|
|
20
|
+
totalRecords?: number;
|
|
21
|
+
correctRecords?: number;
|
|
22
|
+
incorrectRecords?: number;
|
|
23
|
+
insertedCount?: number;
|
|
24
|
+
lastInsertedIndex?: number;
|
|
25
|
+
progressPercentage?: number;
|
|
26
|
+
status?: 'waiting' | 'pending' | 'completed' | 'failed' | 'inprogress' | 'paused';
|
|
27
|
+
errorMsg?: string;
|
|
28
|
+
errorFileKey?: string;
|
|
29
|
+
fileKey: string;
|
|
30
|
+
isPaused?: boolean;
|
|
31
|
+
newLoans?: number[];
|
|
32
|
+
missingLoans?: number[];
|
|
33
|
+
existLoans?: number[];
|
|
34
|
+
loansId?: number[];
|
|
35
|
+
duplicateLoans?: number[];
|
|
36
|
+
failedRecords: string;
|
|
37
|
+
}
|
|
38
|
+
export interface IJobResult {
|
|
39
|
+
result: string;
|
|
40
|
+
errorFile?: string | null;
|
|
41
|
+
}
|
|
42
|
+
export interface IJobProgress {
|
|
43
|
+
jobId: string;
|
|
44
|
+
insertedCount: number;
|
|
45
|
+
totalRecords: number;
|
|
46
|
+
progressPercentage: number;
|
|
47
|
+
lastInsertedIndex?: number;
|
|
48
|
+
isPaused?: boolean;
|
|
49
|
+
}
|
|
50
|
+
export interface IJobResponse {
|
|
51
|
+
job: IJob;
|
|
52
|
+
jobResult: IJobResult;
|
|
53
|
+
jobProgress: IJobProgress;
|
|
54
|
+
}
|
|
55
|
+
export interface ICsvOptions {
|
|
56
|
+
fileKey: string;
|
|
57
|
+
lastIndex?: number;
|
|
58
|
+
jobId: string;
|
|
59
|
+
}
|
|
60
|
+
export type JobStatus = 'completed' | 'failed' | 'delayed' | 'prioritized' | 'waiting' | 'waitingChildren' | 'unknown' | 'discarded';
|
|
61
|
+
export interface SearchJobs {
|
|
62
|
+
clientId?: string;
|
|
63
|
+
keyword?: string;
|
|
64
|
+
page?: number;
|
|
65
|
+
limit?: number;
|
|
66
|
+
filename: string;
|
|
67
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { JobTypeEnum } from '../../constants';
|
|
2
|
+
import { DatabaseObject } from '../baseObject';
|
|
3
|
+
|
|
4
|
+
export interface ResponseBase {
|
|
5
|
+
success: boolean;
|
|
6
|
+
message: string;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export interface PaginatedResponse<T> extends ResponseBase {
|
|
10
|
+
count: number;
|
|
11
|
+
current: number;
|
|
12
|
+
rows: T[];
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export interface ObjectResponse<T> extends ResponseBase {
|
|
16
|
+
obj: T;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export interface IJob extends DatabaseObject {
|
|
20
|
+
id: number;
|
|
21
|
+
type: JobTypeEnum;
|
|
22
|
+
clientId: number;
|
|
23
|
+
portfolioId: number;
|
|
24
|
+
totalRecords?: number;
|
|
25
|
+
correctRecords?: number;
|
|
26
|
+
incorrectRecords?: number;
|
|
27
|
+
insertedCount?: number;
|
|
28
|
+
lastInsertedIndex?: number;
|
|
29
|
+
progressPercentage?: number;
|
|
30
|
+
status?:
|
|
31
|
+
| 'waiting'
|
|
32
|
+
| 'pending'
|
|
33
|
+
| 'completed'
|
|
34
|
+
| 'failed'
|
|
35
|
+
| 'inprogress'
|
|
36
|
+
| 'paused';
|
|
37
|
+
errorMsg?: string;
|
|
38
|
+
errorFileKey?: string;
|
|
39
|
+
fileKey: string;
|
|
40
|
+
isPaused?: boolean;
|
|
41
|
+
newLoans?: number[];
|
|
42
|
+
missingLoans?: number[];
|
|
43
|
+
existLoans?: number[];
|
|
44
|
+
loansId?: number[];
|
|
45
|
+
duplicateLoans?: number[];
|
|
46
|
+
failedRecords: string;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export interface IJobResult {
|
|
50
|
+
result: string;
|
|
51
|
+
errorFile?: string | null;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export interface IJobProgress {
|
|
55
|
+
jobId: string;
|
|
56
|
+
insertedCount: number;
|
|
57
|
+
totalRecords: number;
|
|
58
|
+
progressPercentage: number;
|
|
59
|
+
lastInsertedIndex?: number;
|
|
60
|
+
isPaused?: boolean;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export interface IJobResponse {
|
|
64
|
+
job: IJob;
|
|
65
|
+
jobResult: IJobResult;
|
|
66
|
+
jobProgress: IJobProgress;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export interface ICsvOptions {
|
|
70
|
+
fileKey: string;
|
|
71
|
+
lastIndex?: number;
|
|
72
|
+
jobId: string;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export type JobStatus =
|
|
76
|
+
| 'completed'
|
|
77
|
+
| 'failed'
|
|
78
|
+
| 'delayed'
|
|
79
|
+
| 'prioritized'
|
|
80
|
+
| 'waiting'
|
|
81
|
+
| 'waitingChildren'
|
|
82
|
+
| 'unknown'
|
|
83
|
+
| 'discarded';
|
|
84
|
+
|
|
85
|
+
export interface SearchJobs {
|
|
86
|
+
clientId?: string;
|
|
87
|
+
keyword?: string;
|
|
88
|
+
page?: number;
|
|
89
|
+
limit?: number;
|
|
90
|
+
filename: string;
|
|
91
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { DatabaseObject } from '../baseObject';
|
|
2
|
+
export interface ILoanGroups extends DatabaseObject {
|
|
3
|
+
id?: number;
|
|
4
|
+
groupId?: string;
|
|
5
|
+
clientBorrowerId?: string;
|
|
6
|
+
name?: string;
|
|
7
|
+
leaderId?: string;
|
|
8
|
+
pos?: number;
|
|
9
|
+
tos?: number;
|
|
10
|
+
loanCounts?: number;
|
|
11
|
+
borrowerId?: number;
|
|
12
|
+
}
|