Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Changelog
* Added `getLockStatusForConversation` and `lockOrUnlockConversation` methods, and `is_locked` and `resolved_at` to conversation types.
* Added `conversations_encouraged` and `conversations_lock` chatbox settings to website settings types.
* Added `session:set_lock` event.
* Added `locks_at` to conversation and conversation lock types, and to the `session:set_lock` event, and `conversations_lock_delay` chatbox setting to website settings types.

## v12.0.2

Expand Down
1 change: 1 addition & 0 deletions lib/events/Events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ export interface EventsSessionSetBlock extends EventsSessionGeneric {

export interface EventsSessionSetLock extends EventsSessionGeneric {
is_locked: boolean;
locks_at: number;
}

export interface EventsSessionSetOpened extends EventsSessionGeneric {
Expand Down
2 changes: 2 additions & 0 deletions lib/resources/WebsiteConversation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export interface Conversation {
is_blocked?: boolean;
is_locked?: boolean;
resolved_at?: number;
locks_at?: number;
availability?: string;
active?: ConversationActive;
last_message?: string;
Expand Down Expand Up @@ -504,6 +505,7 @@ export interface ConversationBlock {

export interface ConversationLock {
locked?: boolean;
locks_at?: number;
}

export interface ConversationVerify {
Expand Down
2 changes: 2 additions & 0 deletions lib/resources/WebsiteSettings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ export interface WebsiteSettingsChatbox {
conversations?: boolean;
conversations_encouraged?: boolean;
conversations_lock?: "disabled" | "resolve_and_lock" | "resolve_or_lock";
conversations_lock_delay?: number;
wait_game?: boolean;
website_logo?: boolean;
last_operator_face?: boolean;
Expand Down Expand Up @@ -153,6 +154,7 @@ export interface WebsiteSettingsUpdateChatbox {
conversations?: boolean;
conversations_encouraged?: boolean;
conversations_lock?: "disabled" | "resolve_and_lock" | "resolve_or_lock";
conversations_lock_delay?: number;
wait_game?: boolean;
website_logo?: boolean;
last_operator_face?: boolean;
Expand Down
Loading