diff --git a/CHANGELOG.md b/CHANGELOG.md index 450529e..f227587 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/lib/events/Events.ts b/lib/events/Events.ts index 6dc7440..b9a61bb 100644 --- a/lib/events/Events.ts +++ b/lib/events/Events.ts @@ -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 { diff --git a/lib/resources/WebsiteConversation.ts b/lib/resources/WebsiteConversation.ts index 557b977..67a5f0a 100644 --- a/lib/resources/WebsiteConversation.ts +++ b/lib/resources/WebsiteConversation.ts @@ -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; @@ -504,6 +505,7 @@ export interface ConversationBlock { export interface ConversationLock { locked?: boolean; + locks_at?: number; } export interface ConversationVerify { diff --git a/lib/resources/WebsiteSettings.ts b/lib/resources/WebsiteSettings.ts index f4a4b3f..05cb249 100644 --- a/lib/resources/WebsiteSettings.ts +++ b/lib/resources/WebsiteSettings.ts @@ -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; @@ -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;