@giosg/types
Advanced tools
Comparing version 1.2.7 to 1.2.8
import { NestedAvatar } from "./customer"; | ||
import { NestedUser } from "./customer"; | ||
import { UserUid, VisitorUid, RoomUid, ChatUid, UserLegacyId, OrganizationUid, ChatInvitationUid, TeamUid, ChatMessageUid, RuleUid, ChatReplySuggestionUid, ChatMessageAttachmentActionUid, ChatMessageAttachmentUid, RoomLegacyId, InteractionUid, ChatMessageType } from "./types"; | ||
import { UserUid, VisitorCid, RoomUid, ChatUid, UserLegacyId, OrganizationUid, ChatInvitationUid, TeamUid, ChatMessageUid, RuleUid, ChatReplySuggestionUid, ChatMessageAttachmentActionUid, ChatMessageAttachmentUid, RoomLegacyId, InteractionUid, ChatMessageType } from "./types"; | ||
import { LanguageCode } from "./common"; | ||
@@ -186,3 +186,3 @@ import { ActionStyle } from "./actions"; | ||
/** Unique identifier of the user/visitor being present at the chat */ | ||
member_id: UserUid | VisitorUid; | ||
member_id: UserUid | VisitorCid; | ||
/** Defines whether the user/visitor is present at the chat */ | ||
@@ -252,3 +252,3 @@ member_type: "user" | "visitor"; | ||
/** Unique identifier of the sender. Could be user, visitor or rule */ | ||
sender_id: UserUid | VisitorUid | RuleUid; | ||
sender_id: UserUid | VisitorCid | RuleUid; | ||
/** Display name of the sender as the visitor would see it */ | ||
@@ -494,3 +494,3 @@ sender_public_name: string; | ||
/** Unique identifier of the sender. Could be user, visitor or rule */ | ||
sender_id: UserUid | VisitorUid | RuleUid; | ||
sender_id: UserUid | VisitorCid | RuleUid; | ||
/** Display name of the sender as the visitor would see it */ | ||
@@ -706,3 +706,3 @@ sender_public_name: string; | ||
/** Unique identifier of the user/visitor being present at the chat */ | ||
member_id: UserUid | VisitorUid; | ||
member_id: UserUid | VisitorCid; | ||
/** Defines whether the user/visitor is present at the chat */ | ||
@@ -751,3 +751,3 @@ member_type: "user" | "visitor"; | ||
/** Unique identifier of the user/visitor being present at the chat */ | ||
member_id: UserUid | VisitorUid; | ||
member_id: UserUid | VisitorCid; | ||
/** | ||
@@ -754,0 +754,0 @@ * Defines whether the user/visitor has the chat “open”. In practice this reflects the state of the chat window. |
@@ -13,3 +13,3 @@ export { ActionTypes, ActionType, ActionTypeString, ACTION_TYPES, ActionShowAutosuggestSettings, ActionSendChatMessageSettings, ActionSettingsType, ACTION_STYLES, ActionStyle, } from "./actions"; | ||
export { UserPermission, UserPermissionPayload } from "./permissions"; | ||
export { AutosuggestPermissionOptions, AutoSuggestPermissionOption, AutosuggestPermissionOptionString, AUTOSUGGEST_PERMISSION_OPTIONS, PublicAutosuggestPermission, PublicAutosuggestPermissionPayload, PublicAutosuggest, PublicAutosuggestPayload, PublicChatMessage, PublicChatMessagePayload, PublicChat, PublicChatPayload, PublicCustomVisitorId, PublicCustomVisitorIdPayload, PublicLogin, PublicLoginPayload, PublicRoom, PublicRoomVisitorCreate, PublicRoomVisitorCreatePayload, PublicRoomVisitor, PublicRoomVisitorUpdate, PublicRoomVisitorUpdatePayload, PublicUser, PublicVisitorChatTag, } from "./public"; | ||
export { AutosuggestPermissionOptions, AutoSuggestPermissionOption, AutosuggestPermissionOptionString, AUTOSUGGEST_PERMISSION_OPTIONS, PublicAutosuggestPermission, PublicAutosuggestPermissionPayload, PublicAutosuggest, PublicAutosuggestPayload, PublicChatMessage, PublicChatMessagePayload, PublicChat, PublicChatPayload, PublicCustomVisitorId, PublicCustomVisitorIdPayload, PublicLogin, PublicLoginPayload, PublicRoom, PublicRoomVisitorCreatePayload, PublicRoomVisitor, PublicRoomVisitorUpdate, PublicRoomVisitorUpdatePayload, PublicUser, PublicVisitorChatTag, } from "./public"; | ||
export { NestedRoom, OrganizationRoomSettings, OrganizationRoomSettingsPayload, RoomAllowedDomainLink, RoomAllowedDomainLinkPayload, RoomCreate, RoomCreatePayload, Room, RoomPayload, } from "./rooms"; | ||
@@ -16,0 +16,0 @@ export { ExperimentRuleCondition, ExperimentRuleConditionPayload, ExperimentRule, ExperimentRulePayload, RuleAction, RuleActionPayload, RuleCondition, RuleConditionPayload, Rule, RulePayload, RuleUpdatePayload, } from "./rules"; |
@@ -5,3 +5,3 @@ import { NestedAvatar } from "./customer"; | ||
import { NestedChatMessageResponseAttachment } from "./chat"; | ||
import { OrganizationUid, RoomUid, VisitorUid, UserUid, UserLegacyId, ChatLegacyId, ChatMessageUid, ChatUid, RuleUid, VisitorLegacyId, RuleLegacyId, RoomLegacyId, ChatMessageAttachmentUid, ChatMessageAttachmentActionUid, ChatSessionUid, VisitorSessionId, VisitorGlobalId, VisitorGlobalSessionId, VisitorSecretId, ChatMessageType } from "./types"; | ||
import { OrganizationUid, RoomUid, VisitorUid, UserUid, UserLegacyId, ChatLegacyId, ChatMessageUid, ChatUid, RuleUid, VisitorLegacyId, RuleLegacyId, RoomLegacyId, ChatMessageAttachmentUid, ChatMessageAttachmentActionUid, ChatSessionUid, VisitorSessionId, VisitorGlobalId, VisitorGlobalSessionId, VisitorSecretId, ChatMessageType, VisitorCid } from "./types"; | ||
import { LanguageCode } from "./common"; | ||
@@ -83,3 +83,3 @@ export declare const AutosuggestPermissionOptions: { | ||
/** Unique identifier of the sender. Could be user, visitor or rule */ | ||
sender_id: UserUid | VisitorUid | RuleUid; | ||
sender_id: UserUid | VisitorCid | RuleUid; | ||
/** Display name of the sender as the visitor would see it */ | ||
@@ -146,3 +146,3 @@ sender_public_name: string; | ||
/** Unique identifier of the sender. Could be user, visitor or rule */ | ||
sender_id?: UserUid | VisitorUid | RuleUid; | ||
sender_id?: UserUid | VisitorCid | RuleUid; | ||
/** Display name of the sender as the visitor would see it */ | ||
@@ -306,22 +306,18 @@ sender_public_name?: string; | ||
} | ||
export interface PublicRoomVisitorCreate { | ||
/** Unique identifier of the visitor */ | ||
id: VisitorUid; | ||
/** TODO: add documentation */ | ||
room_id: RoomUid; | ||
/** TODO: add documentation */ | ||
presence_expires_in: number; | ||
} | ||
export interface PublicRoomVisitorCreatePayload { | ||
/** Unique identifier of the visitor */ | ||
id: VisitorUid; | ||
/** TODO: add documentation */ | ||
id: VisitorCid; | ||
/** The number of seconds the system should | ||
* keep this visitor present. Only the latest | ||
* provided value applies for the visitor. */ | ||
presence_expires_in?: number; | ||
} | ||
export interface PublicRoomVisitor { | ||
/** Unique identifier of the visitor */ | ||
/** Unique identifier for the visitor. | ||
* This is the same for the same visitor regardless | ||
* of the room from which the visitor was requested. */ | ||
id: VisitorUid; | ||
/** TODO: add documentation */ | ||
/** ID of the room from which this room visitor resource was requested */ | ||
room_id: RoomUid; | ||
/** TODO: add documentation */ | ||
/** The number of seconds the system should keep this visitor present. */ | ||
presence_expires_in: number; | ||
@@ -328,0 +324,0 @@ } |
@@ -88,2 +88,7 @@ export declare type ApplicationUid = string & { | ||
}; | ||
/** | ||
* @deprecated | ||
* | ||
* This type is a TODO for all visitorId-related things. | ||
* It should be replaced with one of VisitorCid or UnpackedVisitorCid or VisitorGlobalId */ | ||
export declare type VisitorUid = string & { | ||
@@ -90,0 +95,0 @@ readonly __nominal: unique symbol; |
{ | ||
"name": "@giosg/types", | ||
"version": "1.2.7", | ||
"version": "1.2.8", | ||
"description": "TypeScript interfaces for GiosgAPI", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
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
172899
3962