@types/smooch
Advanced tools
Comparing version 5.3.4 to 5.3.5
@@ -53,3 +53,3 @@ interface InitOptions { | ||
*/ | ||
displayStyle?: 'button' | 'tab'; | ||
displayStyle?: "button" | "tab"; | ||
/** | ||
@@ -108,3 +108,3 @@ * When the displayStyle is button, you have the option of selecting your own button icon. The image must be at least 200 x 200 pixels and must be in either JPG, PNG, or GIF format. | ||
*/ | ||
browserStorage?: 'localStorage' | 'sessionStorage'; | ||
browserStorage?: "localStorage" | "sessionStorage"; | ||
/** | ||
@@ -674,3 +674,3 @@ * Sets a delegate on the conversation. | ||
interface PrechatCaptureField { | ||
type: 'text' | 'select' | 'email'; | ||
type: "text" | "select" | "email"; | ||
name: string; | ||
@@ -709,14 +709,15 @@ label: string; | ||
type ContentType = 'text' | ||
| 'carousel' | ||
| 'file' | ||
| 'form' | ||
| 'formResponse' | ||
| 'image' | ||
| 'list' | ||
| 'location' | ||
| 'template'; | ||
type ContentType = | ||
| "text" | ||
| "carousel" | ||
| "file" | ||
| "form" | ||
| "formResponse" | ||
| "image" | ||
| "list" | ||
| "location" | ||
| "template"; | ||
interface Message { | ||
role: 'user' | 'business'; | ||
role: "user" | "business"; | ||
userId: string; | ||
@@ -737,3 +738,3 @@ displayName: string; | ||
interface MessageSource { | ||
type: 'web' | 'slack'; | ||
type: "web" | "slack"; | ||
id: string; | ||
@@ -750,3 +751,3 @@ integrationId: string; | ||
iconUrl: string; | ||
type: 'sdkGroup' | string; | ||
type: "sdkGroup" | string; | ||
participants: ConversationParticipant[]; | ||
@@ -758,3 +759,3 @@ metadata: Metadata; | ||
interface Status { | ||
status: 'resolved' | 'pending' | string; | ||
status: "resolved" | "pending" | string; | ||
} | ||
@@ -761,0 +762,0 @@ |
@@ -205,7 +205,7 @@ // Type definitions for smooch 5.3 | ||
*/ | ||
function on(event: 'ready', callback: () => void): void; | ||
function on(event: "ready", callback: () => void): void; | ||
/** | ||
* This event triggers when the widget is destroyed. | ||
*/ | ||
function on(event: 'destroy', callback: () => void): void; | ||
function on(event: "destroy", callback: () => void): void; | ||
/** | ||
@@ -215,3 +215,3 @@ * This event triggers when a participant is added to a conversation | ||
function on( | ||
event: 'participant:added', | ||
event: "participant:added", | ||
callback: (participant: ConversationParticipant, data: ConversationData) => void, | ||
@@ -223,3 +223,3 @@ ): void; | ||
function on( | ||
event: 'participant:removed', | ||
event: "participant:removed", | ||
callback: (participant: ConversationParticipant, data: ConversationData) => void, | ||
@@ -231,3 +231,3 @@ ): void; | ||
function on( | ||
event: 'conversation:added', | ||
event: "conversation:added", | ||
callback: (participants: ConversationParticipant[], data: ConversationData) => void, | ||
@@ -239,3 +239,3 @@ ): void; | ||
function on( | ||
event: 'conversation:read', | ||
event: "conversation:read", | ||
callback: (payload: ConversationReadEventPayload, data: ConversationData) => void, | ||
@@ -246,31 +246,31 @@ ): void; | ||
*/ | ||
function on(event: 'conversation:removed', callback: (data: ConversationData) => void): void; | ||
function on(event: "conversation:removed", callback: (data: ConversationData) => void): void; | ||
/** | ||
* This event triggers when the user receives a message | ||
*/ | ||
function on(event: 'message:received', callback: (message: Message, data: ConversationData) => void): void; | ||
function on(event: "message:received", callback: (message: Message, data: ConversationData) => void): void; | ||
/** | ||
* This event triggers when the user sends a message | ||
*/ | ||
function on(event: 'message:sent', callback: (message: Message, data: ConversationData) => void): void; | ||
function on(event: "message:sent", callback: (message: Message, data: ConversationData) => void): void; | ||
/** | ||
* This event triggers when a message was added to the conversation | ||
*/ | ||
function on(event: 'message', callback: (message: Message, data: ConversationData) => void): void; | ||
function on(event: "message", callback: (message: Message, data: ConversationData) => void): void; | ||
/** | ||
* This event triggers when the number of unread messages changes | ||
*/ | ||
function on(event: 'unreadCount', callback: (unreadCount: number, data: ConversationData) => void): void; | ||
function on(event: "unreadCount", callback: (unreadCount: number, data: ConversationData) => void): void; | ||
/** | ||
* This event triggers when the widget is opened | ||
*/ | ||
function on(event: 'widget:opened', callback: () => void): void; | ||
function on(event: "widget:opened", callback: () => void): void; | ||
/** | ||
* This event triggers when the widget is closed | ||
*/ | ||
function on(event: 'widget:closed', callback: () => void): void; | ||
function on(event: "widget:closed", callback: () => void): void; | ||
/** | ||
* This event triggers when the codes emits debug information | ||
*/ | ||
function on(event: 'log:debug', callback: (e: DebugLog) => void): void; | ||
function on(event: "log:debug", callback: (e: DebugLog) => void): void; | ||
/** | ||
@@ -280,3 +280,3 @@ * This event triggers when an active connection has been established for the first time, | ||
*/ | ||
function on(event: 'connected', callback: (data: ConversationData) => void): void; | ||
function on(event: "connected", callback: (data: ConversationData) => void): void; | ||
/** | ||
@@ -286,3 +286,3 @@ * This event triggers when an active connection is lost | ||
*/ | ||
function on(event: 'disconnected', callback: (data: ConversationData) => void): void; | ||
function on(event: "disconnected", callback: (data: ConversationData) => void): void; | ||
/** | ||
@@ -292,3 +292,3 @@ * This event triggers when an active connection is lost and there is an attempt to reconnect | ||
*/ | ||
function on(event: 'reconnecting', callback: (data: ConversationData) => void): void; | ||
function on(event: "reconnecting", callback: (data: ConversationData) => void): void; | ||
/** | ||
@@ -298,3 +298,3 @@ * This event triggers when the business starts typing. The associated conversation is passed in the argument. | ||
function on( | ||
event: 'typing:start', | ||
event: "typing:start", | ||
callback: (data: ConversationData & { avatarUrl: string; name: string }) => void, | ||
@@ -305,3 +305,3 @@ ): void; | ||
*/ | ||
function on(event: 'typing:stop', callback: (data: ConversationData) => void): void; | ||
function on(event: "typing:stop", callback: (data: ConversationData) => void): void; | ||
// tslint:enable:unified-signatures | ||
@@ -308,0 +308,0 @@ } |
{ | ||
"name": "@types/smooch", | ||
"version": "5.3.4", | ||
"version": "5.3.5", | ||
"description": "TypeScript definitions for smooch", | ||
@@ -23,4 +23,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/smooch", | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "2df99e76f7e77c10ff1d15129bde8fad0d683c18f49882918562af47cbc48682", | ||
"typeScriptVersion": "4.3" | ||
"typesPublisherContentHash": "86d30d955a96047873e92ac3f2b58a479730854a068b48689dbe33137a2f77c8", | ||
"typeScriptVersion": "4.5" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Thu, 24 Aug 2023 03:03:06 GMT | ||
* Last updated: Mon, 25 Sep 2023 13:39:06 GMT | ||
* Dependencies: none | ||
@@ -14,0 +14,0 @@ * Global values: `Smooch` |
39740
1067