@objectiv/schema
Version:
Objectiv TypeScript implementation of the open analytics taxonomy
26 lines (21 loc) • 657 B
text/typescript
/*
* Copyright 2021-2022 Objectiv B.V.
*/
import { AbstractGlobalContext, AbstractLocationContext } from './generated';
/**
* All discriminating properties start with this prefix.
*/
export type DiscriminatingPropertyPrefix = '__';
/**
* An interface coupling Location Stack and Global Contexts. Used by Tracker and Events.
*/
export interface Contexts {
/**
* A list of Location Contexts. Order matters as they must reconstruct a logical location in the UI or system.
*/
readonly location_stack: AbstractLocationContext[];
/**
* A list of Global Contexts. In any order.
*/
readonly global_contexts: AbstractGlobalContext[];
}