Skip to main content
Latest
class HitAbstract
implements IHitAbstract
Abstract
import { HitAbstract } from "https://deno.land/x/flagship_io_js_sdk@3.3.2/index.ts";

Constructors

new
protected
HitAbstract(hit: Omit<IHitAbstract, "createdAt" | "traffic">)

Properties

private
optional
_anonymousId: string | null
private
_config: IFlagshipConfig
private
_createdAt: number
private
_ds: string
private
_key: string
private
_locale: string
private
_screenResolution: string
private
_sessionNumber: string
private
_userIp: string
private
_visitorId: string
protected
_type: InternalHitType
anonymousId: string | undefined | null
createdAt: number
ds: string
key: string
locale: string
screenResolution: string
sessionNumber: string
readonly
type: InternalHitType
userIp: string
visitorId: string

Methods

protected
isInteger(value: unknown, itemName: string): boolean
protected
isNotEmptyString(value: unknown, itemName: string): boolean

Return true if value is a string and not empty, otherwise return false

protected
isNumeric(value: unknown, itemName: string): boolean
abstract
getErrorMessage(): string

This function return the error message according to required attributes of class

isReady(_checkParent?): boolean

Return true if all required attributes are given, otherwise return false

toApiKeys(): Record<string, unknown>

Return an object with Api parameters as keys

toObject(): Record<string, unknown>