@giosg/types
Advanced tools
Comparing version 4.3.2 to 4.4.2
# Changelog | ||
Hint: use `git diff <commithash>..HEAD src/` to see changes | ||
## x.x.x (Not published yet) | ||
## 4.4.2 | ||
- Added `is_bot` field to `ChatMembershipUser` interface | ||
- Removed deprecated `RoomCreate` interface | ||
- Add visitor_avatar url | ||
- Add new chat type=task | ||
- Add new message types | ||
@@ -8,0 +15,0 @@ ## 4.3.1 |
@@ -421,3 +421,3 @@ import { NestedAvatar } from "./customer"; | ||
} | ||
export declare type ChatType = "operator" | "visitor" | "external" | "group"; | ||
export declare type ChatType = "operator" | "visitor" | "external" | "group" | "task"; | ||
export interface Chat { | ||
@@ -1023,6 +1023,23 @@ /** Unique identifier of the chat */ | ||
* Chat name | ||
* Can be visitor name or chat conversation name | ||
* Can be visitor name or chat conversation name. | ||
* | ||
* Visitor name is set on visitor-side by | ||
* _giosg( | ||
* 'visitor', | ||
* 'submit', | ||
* { | ||
* username: "Superman", | ||
* avatar: "https://spacerangers.gitlab.io/favicon.png" | ||
* }, | ||
* 'plain', | ||
* false, | ||
* [{ id: GiosgClient.joinedRooms.slice(-1).shift()}] | ||
* ); | ||
*/ | ||
name: string | null; | ||
/** | ||
* Containts URL of visitor avatar. Check "name" field comment | ||
*/ | ||
visitor_avatar: string | null; | ||
/** | ||
* Contains VisitorCid if chat type is "visitor" | ||
@@ -1029,0 +1046,0 @@ */ |
@@ -216,5 +216,5 @@ export declare type ApplicationUid = string & { | ||
export declare type ExperimentGroupType = typeof EXPERIMENT_GROUP_TYPES[number]; | ||
export declare const CHAT_STATUS_MESSAGE_TYPES: readonly ["join", "leave", "shoppingcart_locked", "action"]; | ||
export declare const CHAT_STATUS_MESSAGE_TYPES: readonly ["join", "leave", "shoppingcart_locked", "action", "call_ended"]; | ||
export declare type ChatStatusMessageType = typeof CHAT_STATUS_MESSAGE_TYPES[number]; | ||
export declare const CHAT_DATA_MESSAGE_TYPES: readonly ["msg", "autosuggest", "system"]; | ||
export declare const CHAT_DATA_MESSAGE_TYPES: readonly ["msg", "autosuggest", "system", "interaction_submit", "call_request"]; | ||
export declare type ChatDataMessageType = typeof CHAT_DATA_MESSAGE_TYPES[number]; | ||
@@ -221,0 +221,0 @@ export declare type ChatMessageType = ChatStatusMessageType | ChatDataMessageType; |
@@ -19,4 +19,11 @@ "use strict"; | ||
"action", | ||
"call_ended", | ||
]; | ||
exports.CHAT_DATA_MESSAGE_TYPES = ["msg", "autosuggest", "system"]; | ||
exports.CHAT_DATA_MESSAGE_TYPES = [ | ||
"msg", | ||
"autosuggest", | ||
"system", | ||
"interaction_submit", | ||
"call_request", | ||
]; | ||
exports.USER_PERMISSION_SCOPES = ["settings", "reports", "users"]; |
{ | ||
"name": "@giosg/types", | ||
"version": "4.3.2", | ||
"version": "4.4.2", | ||
"description": "TypeScript interfaces for GiosgAPI", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
349709
5528