Socket
Socket
Sign inDemoInstall

@giosg/types

Package Overview
Dependencies
Maintainers
9
Versions
97
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@giosg/types - npm Package Compare versions

Comparing version 4.3.2 to 4.4.2

7

CHANGELOG.md
# 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

21

lib/chat.d.ts

@@ -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 @@ */

4

lib/types.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc