UNPKG

avo-inspector

Version:

[![npm version](https://badge.fury.io/js/avo-inspector.svg)](https://badge.fury.io/js/avo-inspector)

17 lines (16 loc) 772 B
import type { EventProperty } from "./AvoNetworkCallsHandler"; export declare class AvoSchemaParser { /** * Returns true only if we have a valid encryption key and can send encrypted values. * If no key is present, returns false and no property values will be sent. */ private static canSendEncryptedValues; /** * Returns the encrypted property value if encryption is enabled, otherwise undefined. * Never returns unencrypted values - only encrypted or nothing. */ private static getEncryptedPropertyValueIfEnabled; static extractSchema(eventProperties: Record<string, any>, publicEncryptionKey?: string, env?: string): Promise<EventProperty[]>; private static removeDuplicates; private static getPropValueType; }