@giosg/types
Advanced tools
Comparing version 4.4.2 to 4.4.4
@@ -7,2 +7,10 @@ # Changelog | ||
## 4.4.4 | ||
- Add new rule condition | ||
## 4.4.3 | ||
- Added `estimated_waiting_time` into public room | ||
## 4.4.2 | ||
@@ -9,0 +17,0 @@ |
@@ -1024,18 +1024,11 @@ import { NestedAvatar } from "./customer"; | ||
* | ||
* 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()}] | ||
* ); | ||
* Visitor name is set by visitor variables. | ||
* Further information is here https://developers.giosg.com/javascript_api.html#submit-visitor-variables | ||
*/ | ||
name: string | null; | ||
/** | ||
* Containts URL of visitor avatar. Check "name" field comment | ||
* Containts URL of visitor avatar. | ||
* | ||
* Visitor avatar url is set by visitor variables. | ||
* Further information is here https://developers.giosg.com/javascript_api.html#submit-visitor-variables | ||
*/ | ||
@@ -1042,0 +1035,0 @@ visitor_avatar: string | null; |
@@ -74,6 +74,8 @@ export declare const ConditionTypes: { | ||
readonly TARGET_PREDICTION_CONVERSION_PROBABILITY: 36; | ||
/** value: prediction for waiting time in this room */ | ||
readonly AVERAGE_WAITING_TIME: 37; | ||
}; | ||
export declare type ConditionType = typeof ConditionTypes[keyof typeof ConditionTypes]; | ||
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")[]; | ||
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 interface ConditionWeeklyScheduleSettings { | ||
@@ -80,0 +82,0 @@ timezone: string; |
@@ -76,3 +76,5 @@ "use strict"; | ||
TARGET_PREDICTION_CONVERSION_PROBABILITY: 36, | ||
/** value: prediction for waiting time in this room */ | ||
AVERAGE_WAITING_TIME: 37, | ||
}; | ||
exports.CONDITION_TYPES = Object.keys(exports.ConditionTypes); |
@@ -332,2 +332,4 @@ import { NestedAvatar } from "./customer"; | ||
brand: any; | ||
/** How much usually visitors waits for initial answer, in seconds. Null if unknown */ | ||
estimated_waiting_time: number | null; | ||
} | ||
@@ -334,0 +336,0 @@ export interface PublicRoomVisitorCreatePayload { |
@@ -24,2 +24,3 @@ import { NestedUser } from "./customer"; | ||
"Content-MD5": string; | ||
"Content-Disposition": string; | ||
"x-amz-algorithm": string; | ||
@@ -26,0 +27,0 @@ "x-amz-credential": string; |
{ | ||
"name": "@giosg/types", | ||
"version": "4.4.2", | ||
"version": "4.4.4", | ||
"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
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
350212