@bluecopa/core 0.1.50 → 0.1.52
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/api/emailEngine/getMessageBySenderId.d.ts +35 -15
- package/dist/api/index.d.ts +1 -0
- package/dist/api/tcn/agentDisconnect.d.ts +1 -0
- package/dist/api/tcn/agentGetConnectedParty.d.ts +5 -0
- package/dist/api/tcn/agentGetStatus.d.ts +4 -0
- package/dist/api/tcn/agentPause.d.ts +1 -0
- package/dist/api/tcn/agentSetReady.d.ts +1 -0
- package/dist/api/tcn/createSession.d.ts +9 -0
- package/dist/api/tcn/dialManualPrepare.d.ts +1 -0
- package/dist/api/tcn/exchangeCode.d.ts +5 -0
- package/dist/api/tcn/getAgentSkills.d.ts +4 -0
- package/dist/api/tcn/getAuthUrl.d.ts +4 -0
- package/dist/api/tcn/getCallData.d.ts +8 -0
- package/dist/api/tcn/getCurrentAgent.d.ts +6 -0
- package/dist/api/tcn/getHuntGroupAgentSettings.d.ts +9 -0
- package/dist/api/tcn/index.d.ts +17 -0
- package/dist/api/tcn/keepAlive.d.ts +5 -0
- package/dist/api/tcn/manualDialStart.d.ts +1 -0
- package/dist/api/tcn/processManualDial.d.ts +13 -0
- package/dist/api/tcn/refreshToken.d.ts +2 -0
- package/dist/index.d.ts +12 -1
- package/dist/index.es.js +3975 -3782
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,31 +1,51 @@
|
|
|
1
1
|
export interface FilterOnSenderId {
|
|
2
2
|
senderId: string;
|
|
3
|
-
direction
|
|
3
|
+
direction?: "INBOUND" | "OUTBOUND";
|
|
4
|
+
page?: number;
|
|
5
|
+
pageSize?: number;
|
|
6
|
+
orderByCreatedDate?: boolean;
|
|
4
7
|
}
|
|
5
8
|
export interface EmailMessage {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
conversationId: string;
|
|
10
|
+
direction: "INBOUND" | "OUTBOUND";
|
|
11
|
+
fromAddress: string;
|
|
12
|
+
toAddresses: string[];
|
|
13
|
+
ccAddresses?: string[];
|
|
14
|
+
bccAddresses?: string[];
|
|
12
15
|
subject?: string;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
emailengineId?: string;
|
|
17
|
+
emailMessageId?: string;
|
|
18
|
+
threadId?: string;
|
|
19
|
+
inReplyTo?: string;
|
|
20
|
+
senderId: string;
|
|
21
|
+
emlStorageKey?: string;
|
|
22
|
+
sentAt?: string;
|
|
23
|
+
receivedAt?: string;
|
|
18
24
|
createdBy?: string;
|
|
19
25
|
createdDate?: string;
|
|
20
26
|
lastModifiedBy?: string;
|
|
21
27
|
lastModifiedDate?: string;
|
|
28
|
+
id?: string;
|
|
29
|
+
workspaceId?: string;
|
|
30
|
+
entityVersion?: number;
|
|
31
|
+
}
|
|
32
|
+
export interface PageChunkEmailMessage {
|
|
33
|
+
content: EmailMessage[];
|
|
34
|
+
pageNumber: number;
|
|
35
|
+
pageSize: number;
|
|
36
|
+
totalPages: number;
|
|
37
|
+
totalElements: number;
|
|
38
|
+
isLast: boolean;
|
|
22
39
|
}
|
|
23
40
|
/**
|
|
24
41
|
* Filters email messages by sender ID
|
|
25
42
|
* @param params - The filter parameters
|
|
26
43
|
* @param params.senderId - Required: The sender email address
|
|
27
|
-
* @param params.direction -
|
|
28
|
-
* @
|
|
44
|
+
* @param params.direction - 'INBOUND' or 'OUTBOUND' (default: OUTBOUND)
|
|
45
|
+
* @param params.page - Page number (default: 1)
|
|
46
|
+
* @param params.pageSize - Page size (default: 10)
|
|
47
|
+
* @param params.orderByCreatedDate - Order by created date (default: false)
|
|
48
|
+
* @returns Promise<PageChunkEmailMessage> Paginated list of matching messages
|
|
29
49
|
* @throws Error if the request fails
|
|
30
50
|
*/
|
|
31
|
-
export declare function getMessageBySenderId(params: FilterOnSenderId): Promise<
|
|
51
|
+
export declare function getMessageBySenderId(params: FilterOnSenderId): Promise<PageChunkEmailMessage>;
|
package/dist/api/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function agentDisconnect(token: string, sessionSid: string, reason?: string): Promise<any>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function agentPause(token: string, sessionSid: string): Promise<any>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function agentSetReady(token: string, sessionSid: string): Promise<any>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export interface TcnSessionData {
|
|
2
|
+
voiceSessionSid: number;
|
|
3
|
+
voiceRegistration: {
|
|
4
|
+
username: string;
|
|
5
|
+
password: string;
|
|
6
|
+
dialUrl: string;
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
export declare function createSession(token: string, huntGroupSid: string, skills: Record<string, unknown>): Promise<TcnSessionData>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function dialManualPrepare(token: string, sessionSid: string): Promise<any>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export interface TcnDialSettings {
|
|
2
|
+
manualDial: {
|
|
3
|
+
defaultCallerId?: string;
|
|
4
|
+
callRecording?: boolean;
|
|
5
|
+
defaultCountrySid?: number;
|
|
6
|
+
scrubCellPhones?: boolean;
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
export declare function getHuntGroupAgentSettings(token: string, huntGroupSid: string): Promise<TcnDialSettings>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export * from './getAuthUrl';
|
|
2
|
+
export * from './exchangeCode';
|
|
3
|
+
export * from './refreshToken';
|
|
4
|
+
export * from './getCurrentAgent';
|
|
5
|
+
export * from './getAgentSkills';
|
|
6
|
+
export * from './createSession';
|
|
7
|
+
export * from './keepAlive';
|
|
8
|
+
export * from './agentGetStatus';
|
|
9
|
+
export * from './getHuntGroupAgentSettings';
|
|
10
|
+
export * from './dialManualPrepare';
|
|
11
|
+
export * from './processManualDial';
|
|
12
|
+
export * from './manualDialStart';
|
|
13
|
+
export * from './agentDisconnect';
|
|
14
|
+
export * from './agentPause';
|
|
15
|
+
export * from './agentSetReady';
|
|
16
|
+
export * from './agentGetConnectedParty';
|
|
17
|
+
export * from './getCallData';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function manualDialStart(token: string, agentSessionSid: string, huntGroupSid: string, simpleCallData: Record<string, unknown>): Promise<any>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface TcnProcessDialData {
|
|
2
|
+
scrubbedCall: {
|
|
3
|
+
callSid: string;
|
|
4
|
+
taskGroupSid: string;
|
|
5
|
+
callerId: string;
|
|
6
|
+
doRecord: string;
|
|
7
|
+
callerIdCountryCode: string;
|
|
8
|
+
countryCode: string;
|
|
9
|
+
callerIdCountrySid: number;
|
|
10
|
+
countrySid: number;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
export declare function processManualDial(token: string, call: Record<string, unknown>): Promise<TcnProcessDialData>;
|
package/dist/index.d.ts
CHANGED
|
@@ -29,4 +29,15 @@ export type { EmailConversation, GetAllConversationsParams, PageChunkEmailConver
|
|
|
29
29
|
export type { GetConversationRequest, } from './api/emailEngine/getConversation';
|
|
30
30
|
export type { CreateConversationRequest, } from './api/emailEngine/createConversation';
|
|
31
31
|
export type { ReplyToConversationRequest, } from './api/emailEngine/replyToConversation';
|
|
32
|
-
export type {
|
|
32
|
+
export type { TcnAuthUrlResponse } from './api/tcn/getAuthUrl';
|
|
33
|
+
export type { TcnTokenData } from './api/tcn/exchangeCode';
|
|
34
|
+
export type { TcnAgentData } from './api/tcn/getCurrentAgent';
|
|
35
|
+
export type { TcnSkillsData } from './api/tcn/getAgentSkills';
|
|
36
|
+
export type { TcnSessionData } from './api/tcn/createSession';
|
|
37
|
+
export type { TcnKeepAliveData } from './api/tcn/keepAlive';
|
|
38
|
+
export type { TcnStatusData } from './api/tcn/agentGetStatus';
|
|
39
|
+
export type { TcnDialSettings } from './api/tcn/getHuntGroupAgentSettings';
|
|
40
|
+
export type { TcnProcessDialData } from './api/tcn/processManualDial';
|
|
41
|
+
export type { TcnConnectedParty } from './api/tcn/agentGetConnectedParty';
|
|
42
|
+
export type { TcnCallData } from './api/tcn/getCallData';
|
|
43
|
+
export type { FilterOnSenderId, EmailMessage, PageChunkEmailMessage, } from './api/emailEngine/getMessageBySenderId';
|