class HitAbstract
implements IHitAbstract
Abstract
import { HitAbstract } from "https://deno.land/x/flagship_io_js_sdk@3.1.4/hit/index.ts";
Constructors
new
protected
HitAbstract(hit: Omit<IHitAbstract, "createdAt">)Methods
protected
isInteger(value: unknown, itemName: string): booleanprotected
isNotEmptyString(value: unknown, itemName: string): booleanReturn true if value is a string and not empty, otherwise return false
protected
isNumeric(value: unknown, itemName: string): booleanabstract
getErrorMessage(): stringThis 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>