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

Constructors

new
protected
HitAbstract(hit: IHitAbstract)

Properties

private
_anonymousId: string | null
private
_config: IFlagshipConfig
private
_ds: string
private
_locale: string
private
_screenResolution: string
private
_sessionNumber: string
private
_userIp: string
private
_visitorId: string
protected
_type: HitType | "BATCH"
anonymousId: string | null
ds: string
locale: string
screenResolution: string
sessionNumber: string
readonly
type: HitType | "BATCH"
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>