UNPKG

@flagship.io/js-sdk

Version:
21 lines (20 loc) 762 B
import { IHit } from '../types'; import { HitAbstract, IHitAbstract } from './HitAbstract'; export interface IBatch extends IHitAbstract { hits: HitAbstract[]; } export declare const BATCH = "BATCH"; export interface BatchDTO { type: 'BATCH'; hits: (IHit | undefined)[]; } export declare const ERROR_MESSAGE = "Please check required fields"; export declare class Batch extends HitAbstract implements Omit<IBatch, 'visitorId' | 'anonymousId'> { private _hits; get hits(): HitAbstract[]; set hits(v: HitAbstract[]); constructor(params: Omit<IBatch, 'type' | 'createdAt' | 'visitorInstanceId' | 'traffic' | 'visitorId' | 'anonymousId'>); isReady(): boolean; toApiKeys(): Record<string, unknown>; getErrorMessage(): string; }