@deepdesk/deepdesk-sdk 17.0.0-rc.8 → 17.0.0-rc.9
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/index.cjs.js +6 -6
- package/dist/index.d.mts +4 -17
- package/dist/index.d.ts +4 -17
- package/dist/index.esm.js +7 -7
- package/dist/index.iife.js +42 -42
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -492,7 +492,6 @@ declare namespace Server {
|
|
|
492
492
|
visitor_name: string | null;
|
|
493
493
|
chat_start_time: string | null;
|
|
494
494
|
external_id: string;
|
|
495
|
-
messages: ConversationMessage[];
|
|
496
495
|
metadata: Metadata;
|
|
497
496
|
};
|
|
498
497
|
/**
|
|
@@ -871,10 +870,8 @@ declare namespace Server {
|
|
|
871
870
|
type ConversationMessage = CamelCaseKeys<Omit<Server.ConversationMessage, 'metadata'>> & {
|
|
872
871
|
metadata: Server.Metadata | null;
|
|
873
872
|
};
|
|
874
|
-
type Conversation = CamelCaseKeys<Omit<Server.Conversation, 'metadata'
|
|
873
|
+
type Conversation = CamelCaseKeys<Omit<Server.Conversation, 'metadata'>> & {
|
|
875
874
|
metadata: Server.Metadata;
|
|
876
|
-
} & {
|
|
877
|
-
messages: ConversationMessage[];
|
|
878
875
|
};
|
|
879
876
|
/**
|
|
880
877
|
* Create Conversation Options
|
|
@@ -1080,21 +1077,11 @@ declare class DeepdeskAPI {
|
|
|
1080
1077
|
/**
|
|
1081
1078
|
* Update converstation meta data
|
|
1082
1079
|
*/
|
|
1083
|
-
updateConversation(conversationId: string, data: Partial<
|
|
1080
|
+
updateConversation(conversationId: string, data: Partial<Conversation>): Promise<Conversation>;
|
|
1084
1081
|
/**
|
|
1085
1082
|
* Post converstation messages
|
|
1086
1083
|
*/
|
|
1087
|
-
postMessages(conversationId: string, messages: CamelCaseKeys<Server.ConversationMessage>[]): Promise<
|
|
1088
|
-
text: string;
|
|
1089
|
-
source: "agent" | "visitor" | "bot" | "system";
|
|
1090
|
-
time: string;
|
|
1091
|
-
externalId: string;
|
|
1092
|
-
authorId: string;
|
|
1093
|
-
authorName?: string | undefined;
|
|
1094
|
-
authorEmail?: string | undefined;
|
|
1095
|
-
} & {
|
|
1096
|
-
metadata: Server.Metadata | null;
|
|
1097
|
-
})[]>;
|
|
1084
|
+
postMessages(conversationId: string, messages: CamelCaseKeys<Server.ConversationMessage>[]): Promise<void>;
|
|
1098
1085
|
/**
|
|
1099
1086
|
* Send event with meta data for analytics
|
|
1100
1087
|
*/
|
|
@@ -2221,7 +2208,7 @@ declare class DeepdeskSDK {
|
|
|
2221
2208
|
* Method to call when the conversation is updated, either by an incoming message
|
|
2222
2209
|
* from the visitor, or a message sent by the agent.
|
|
2223
2210
|
*/
|
|
2224
|
-
postMessages(messages: ConversationMessage[]): Promise<
|
|
2211
|
+
postMessages(messages: ConversationMessage[]): Promise<void>;
|
|
2225
2212
|
/**
|
|
2226
2213
|
* Update converstation meta data
|
|
2227
2214
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -492,7 +492,6 @@ declare namespace Server {
|
|
|
492
492
|
visitor_name: string | null;
|
|
493
493
|
chat_start_time: string | null;
|
|
494
494
|
external_id: string;
|
|
495
|
-
messages: ConversationMessage[];
|
|
496
495
|
metadata: Metadata;
|
|
497
496
|
};
|
|
498
497
|
/**
|
|
@@ -871,10 +870,8 @@ declare namespace Server {
|
|
|
871
870
|
type ConversationMessage = CamelCaseKeys<Omit<Server.ConversationMessage, 'metadata'>> & {
|
|
872
871
|
metadata: Server.Metadata | null;
|
|
873
872
|
};
|
|
874
|
-
type Conversation = CamelCaseKeys<Omit<Server.Conversation, 'metadata'
|
|
873
|
+
type Conversation = CamelCaseKeys<Omit<Server.Conversation, 'metadata'>> & {
|
|
875
874
|
metadata: Server.Metadata;
|
|
876
|
-
} & {
|
|
877
|
-
messages: ConversationMessage[];
|
|
878
875
|
};
|
|
879
876
|
/**
|
|
880
877
|
* Create Conversation Options
|
|
@@ -1080,21 +1077,11 @@ declare class DeepdeskAPI {
|
|
|
1080
1077
|
/**
|
|
1081
1078
|
* Update converstation meta data
|
|
1082
1079
|
*/
|
|
1083
|
-
updateConversation(conversationId: string, data: Partial<
|
|
1080
|
+
updateConversation(conversationId: string, data: Partial<Conversation>): Promise<Conversation>;
|
|
1084
1081
|
/**
|
|
1085
1082
|
* Post converstation messages
|
|
1086
1083
|
*/
|
|
1087
|
-
postMessages(conversationId: string, messages: CamelCaseKeys<Server.ConversationMessage>[]): Promise<
|
|
1088
|
-
text: string;
|
|
1089
|
-
source: "agent" | "visitor" | "bot" | "system";
|
|
1090
|
-
time: string;
|
|
1091
|
-
externalId: string;
|
|
1092
|
-
authorId: string;
|
|
1093
|
-
authorName?: string | undefined;
|
|
1094
|
-
authorEmail?: string | undefined;
|
|
1095
|
-
} & {
|
|
1096
|
-
metadata: Server.Metadata | null;
|
|
1097
|
-
})[]>;
|
|
1084
|
+
postMessages(conversationId: string, messages: CamelCaseKeys<Server.ConversationMessage>[]): Promise<void>;
|
|
1098
1085
|
/**
|
|
1099
1086
|
* Send event with meta data for analytics
|
|
1100
1087
|
*/
|
|
@@ -2221,7 +2208,7 @@ declare class DeepdeskSDK {
|
|
|
2221
2208
|
* Method to call when the conversation is updated, either by an incoming message
|
|
2222
2209
|
* from the visitor, or a message sent by the agent.
|
|
2223
2210
|
*/
|
|
2224
|
-
postMessages(messages: ConversationMessage[]): Promise<
|
|
2211
|
+
postMessages(messages: ConversationMessage[]): Promise<void>;
|
|
2225
2212
|
/**
|
|
2226
2213
|
* Update converstation meta data
|
|
2227
2214
|
*/
|