@giosg/types
Advanced tools
Comparing version 4.6.0 to 5.0.0
@@ -7,2 +7,6 @@ # Changelog | ||
## 5.0.0 | ||
- Rename `VISITOR_BELONGS_TO_AN_TARGET_EXPERIMENT_GROUP` to `VISITOR_BELONGS_TO_A_TARGET_EXPERIMENT_GROUP`. | ||
- Add `ComposingStatus`, `ChatWithRoom`, `ChatMessageWithChat` and `RulePrediction`. | ||
- Correctly mark the domain on `NestedRoom` as a potentially `null` value. | ||
@@ -9,0 +13,0 @@ ## 4.6.0 |
@@ -43,4 +43,2 @@ import { UserUid } from "./types"; | ||
readonly INJECT_CSS: 23; | ||
/** value: unique identifier of the element asset, settings: none */ | ||
readonly LOAD_INTERACTION_DESIGNER_ELEMENT: 24; | ||
/** value: message as a string, settings: ActionSendChatMessageSettings */ | ||
@@ -55,3 +53,3 @@ readonly SEND_SYSTEM_MESSAGE: 25; | ||
export declare type ActionTypeString = keyof typeof ActionTypes; | ||
export declare const ACTION_TYPES: ("SEND_AUTOSUGGEST" | "JOIN_ROOMS" | "NO_CHATBUTTON" | "NO_AUTOSUGGEST" | "RUN_JAVASCRIPT" | "ENABLE_CHATBUTTON" | "SHOW_ELEMENTS" | "HIDE_ELEMENTS" | "REDIRECT" | "LOAD_LEAD_FORM" | "CHANGE_CB_TEXT" | "CHANGE_CB_TARGET" | "CHANGE_LANGUAGE" | "SHOW_LEAD_FORM" | "SET_LEAD_FORM_PROCESSOR" | "SHOW_BUTTON" | "SHOW_CHAT_DIALOG" | "SET_VISITOR_PRIORITY" | "DISABLE_CAPACITY_CHECK" | "INJECT_CSS" | "LOAD_INTERACTION_DESIGNER_ELEMENT" | "SEND_SYSTEM_MESSAGE" | "LOAD_INTERACTION" | "SEND_INTERACTION_TO_CHAT")[]; | ||
export declare const ACTION_TYPES: ("SEND_AUTOSUGGEST" | "JOIN_ROOMS" | "NO_CHATBUTTON" | "NO_AUTOSUGGEST" | "RUN_JAVASCRIPT" | "ENABLE_CHATBUTTON" | "SHOW_ELEMENTS" | "HIDE_ELEMENTS" | "REDIRECT" | "LOAD_LEAD_FORM" | "CHANGE_CB_TEXT" | "CHANGE_CB_TARGET" | "CHANGE_LANGUAGE" | "SHOW_LEAD_FORM" | "SET_LEAD_FORM_PROCESSOR" | "SHOW_BUTTON" | "SHOW_CHAT_DIALOG" | "SET_VISITOR_PRIORITY" | "DISABLE_CAPACITY_CHECK" | "INJECT_CSS" | "SEND_SYSTEM_MESSAGE" | "LOAD_INTERACTION" | "SEND_INTERACTION_TO_CHAT")[]; | ||
export interface ActionShowAutosuggestSettings { | ||
@@ -58,0 +56,0 @@ /** Unique identifier of the user from whom the message shall be sent */ |
@@ -44,4 +44,2 @@ "use strict"; | ||
INJECT_CSS: 23, | ||
/** value: unique identifier of the element asset, settings: none */ | ||
LOAD_INTERACTION_DESIGNER_ELEMENT: 24, | ||
/** value: message as a string, settings: ActionSendChatMessageSettings */ | ||
@@ -48,0 +46,0 @@ SEND_SYSTEM_MESSAGE: 25, |
@@ -67,3 +67,3 @@ export declare const ConditionTypes: { | ||
/** value: experiment group as a string, settings: none */ | ||
readonly VISITOR_BELONGS_TO_AN_TARGET_EXPERIMENT_GROUP: 33; | ||
readonly VISITOR_BELONGS_TO_A_TARGET_EXPERIMENT_GROUP: 33; | ||
/** value: number of seconds as an integer number, settings: none */ | ||
@@ -80,3 +80,3 @@ readonly VISITOR_HAS_WAITED_FOR_THE_FIRST_ANSWER: 34; | ||
export declare type ConditionTypeString = keyof typeof ConditionTypes; | ||
export declare const CONDITION_TYPES: ("VISITOR_CITY" | "CSS_SELECTOR" | "PREVIOUS_PAGE_URL_REGEXP" | "REFERRER_URL_REGEXP" | "PAGE_URL_REGEXP" | "VISITOR_COUNTRY" | "VISIT_COUNT_MORE_THAN" | "CART_SIZE_MORE_THAN" | "CART_SIZE_LESS_THAN" | "PRODUCT_NAMES_IN_CART" | "PIPELINE_STEP" | "JS_FUNCTION_RETURNS_TRUE" | "VISIT_COUNT_LESS_THAN" | "PURCHASE_COUNT_MORE_THAN" | "VISITOR_IP_ADDR" | "PAGE_URL_SIMPLE" | "OPERATOR_PRESENCE" | "AFTER_TIMEOUT" | "CLICK_ELEMENT" | "CLICK_BUTTON" | "DEVICE_TYPE" | "WEEKLY_SCHEDULE" | "VISITOR_PRIORITY_MORE_THAN" | "VISITOR_PRIORITY_LESS_THAN" | "VISITOR_TARGETED" | "VISITOR_CART_LOCKED" | "VISITOR_SENT_LEAD" | "PREVIOUS_PAGE_URL_SIMPLE" | "REFERRER_URL_SIMPLE" | "VISITOR_HAS_WAITED_FOR" | "HAS_CHATTED" | "CHAT_HAS_AT_LEAST_ONE_OF_TAGS" | "VISITOR_BELONGS_TO_AN_TARGET_EXPERIMENT_GROUP" | "VISITOR_HAS_WAITED_FOR_THE_FIRST_ANSWER" | "VISITOR_BELONGS_TO_AN_USER_EXPERIMENT_GROUP" | "TARGET_PREDICTION_CONVERSION_PROBABILITY" | "AVERAGE_WAITING_TIME")[]; | ||
export declare const CONDITION_TYPES: ("VISITOR_CITY" | "CSS_SELECTOR" | "PREVIOUS_PAGE_URL_REGEXP" | "REFERRER_URL_REGEXP" | "PAGE_URL_REGEXP" | "VISITOR_COUNTRY" | "VISIT_COUNT_MORE_THAN" | "CART_SIZE_MORE_THAN" | "CART_SIZE_LESS_THAN" | "PRODUCT_NAMES_IN_CART" | "PIPELINE_STEP" | "JS_FUNCTION_RETURNS_TRUE" | "VISIT_COUNT_LESS_THAN" | "PURCHASE_COUNT_MORE_THAN" | "VISITOR_IP_ADDR" | "PAGE_URL_SIMPLE" | "OPERATOR_PRESENCE" | "AFTER_TIMEOUT" | "CLICK_ELEMENT" | "CLICK_BUTTON" | "DEVICE_TYPE" | "WEEKLY_SCHEDULE" | "VISITOR_PRIORITY_MORE_THAN" | "VISITOR_PRIORITY_LESS_THAN" | "VISITOR_TARGETED" | "VISITOR_CART_LOCKED" | "VISITOR_SENT_LEAD" | "PREVIOUS_PAGE_URL_SIMPLE" | "REFERRER_URL_SIMPLE" | "VISITOR_HAS_WAITED_FOR" | "HAS_CHATTED" | "CHAT_HAS_AT_LEAST_ONE_OF_TAGS" | "VISITOR_BELONGS_TO_A_TARGET_EXPERIMENT_GROUP" | "VISITOR_HAS_WAITED_FOR_THE_FIRST_ANSWER" | "VISITOR_BELONGS_TO_AN_USER_EXPERIMENT_GROUP" | "TARGET_PREDICTION_CONVERSION_PROBABILITY" | "AVERAGE_WAITING_TIME")[]; | ||
export interface ConditionWeeklyScheduleSettings { | ||
@@ -83,0 +83,0 @@ timezone: string; |
@@ -69,3 +69,3 @@ "use strict"; | ||
/** value: experiment group as a string, settings: none */ | ||
VISITOR_BELONGS_TO_AN_TARGET_EXPERIMENT_GROUP: 33, | ||
VISITOR_BELONGS_TO_A_TARGET_EXPERIMENT_GROUP: 33, | ||
/** value: number of seconds as an integer number, settings: none */ | ||
@@ -72,0 +72,0 @@ VISITOR_HAS_WAITED_FOR_THE_FIRST_ANSWER: 34, |
@@ -32,4 +32,4 @@ export { ActionTypes, ActionType, ActionTypeString, ACTION_TYPES, ActionShowAutosuggestSettings, ActionSendChatMessageSettings, ActionSendInteractionToChatSettings, ActionSettingsType, ACTION_STYLES, ActionStyle, } from "./actions"; | ||
export { VisitorVariable, VisitorVariablePayload } from "./variables"; | ||
export { BlackList, BlackListPayload, CartLockedResponse, RoomVisitorPageView, RoomVisitor, } from "./visitor"; | ||
export { BlackList, BlackListPayload, CartLockedResponse, RoomVisitorPageView, RoomVisitor, ComposingStatus, ChatWithRoom, ChatMessageWithChat, RulePrediction, } from "./visitor"; | ||
export { NestedWebhookChannelSubscription, NestedWebhookChannelSubscriptionPayload, WebhookRequestLogEntry, Webhook, WebhookPayload, } from "./webhooks"; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -11,3 +11,3 @@ import { NestedOrganization, NestedUser } from "./customer"; | ||
/** Domain hostname of the room. Exists only if the room is a domain room, otherwise null */ | ||
domain: string; | ||
domain: string | null; | ||
/** Unique identifier of the organization that owns the room */ | ||
@@ -14,0 +14,0 @@ organization_id: OrganizationUid; |
import { NestedUser } from "./customer"; | ||
import { BlackListUid, VisitorCid, RoomUid, UserUid, VisitorSessionCid } from "./types"; | ||
import { BlackListUid, VisitorCid, RoomUid, UserUid, VisitorSessionCid, RuleUid } from "./types"; | ||
import { LanguageCode, Currency } from "./common"; | ||
import { PublicChat, PublicChatMessage, PublicRoom } from "./public"; | ||
/** | ||
@@ -195,2 +196,16 @@ * You may need to add room visitor to blacklist. | ||
} | ||
export declare type ComposingStatus = "idle" | "typing" | "typed"; | ||
export interface ChatWithRoom extends PublicChat { | ||
room: PublicRoom; | ||
} | ||
export declare type ChatMessageWithChat = PublicChatMessage & { | ||
chat: ChatWithRoom; | ||
}; | ||
export interface RulePrediction { | ||
[key: string]: any; | ||
id: string; | ||
created_at: string; | ||
room_id: string; | ||
rule_id: RuleUid; | ||
} | ||
//# sourceMappingURL=visitor.d.ts.map |
{ | ||
"name": "@giosg/types", | ||
"version": "4.6.0", | ||
"version": "5.0.0", | ||
"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
Sorry, the diff of this file is not supported yet
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
351814
5542