Class DataType<TDataStore, TTable, TSchemaName, TDoc, TValue>

Type Parameters

Hierarchy

Constructors

  • Type Parameters

    • TDataStore extends DataStore<"auth" | "config" | "data",
          | "translation"
          | "track"
          | "role"
          | "remoteDetectionAlert"
          | "projectSettings"
          | "preset"
          | "observation"
          | "icon"
          | "field"
          | "deviceInfo"
          | "coreOwnership">
    • TTable extends MapeoDocTables
    • TSchemaName extends
          | "translation"
          | "track"
          | "role"
          | "remoteDetectionAlert"
          | "projectSettings"
          | "preset"
          | "observation"
          | "icon"
          | "field"
          | "deviceInfo"
          | "coreOwnership"
    • TDoc extends
          | {
              schemaName: TSchemaName;
          } & {}
          | {
              schemaName: TSchemaName;
          } & {}
          | {
              schemaName: TSchemaName;
          } & {}
          | {
              schemaName: TSchemaName;
          } & {}
          | {
              schemaName: TSchemaName;
          } & {}
          | {
              schemaName: TSchemaName;
          } & {}
          | {
              schemaName: TSchemaName;
          } & {}
          | {
              schemaName: TSchemaName;
          } & {}
          | {
              schemaName: TSchemaName;
          } & {}
          | {
              schemaName: TSchemaName;
          } & {}
          | {
              schemaName: TSchemaName;
          } & {}
    • TValue extends
          | {
              schemaName: TSchemaName;
          } & {}
          | {
              schemaName: TSchemaName;
          } & {}
          | {
              schemaName: TSchemaName;
          } & {}
          | {
              schemaName: TSchemaName;
          } & {}
          | {
              schemaName: TSchemaName;
          } & {}
          | {
              schemaName: TSchemaName;
          } & {}
          | {
              schemaName: TSchemaName;
          } & {}
          | {
              schemaName: TSchemaName;
          } & {}
          | {
              schemaName: TSchemaName;
          } & {}
          | {
              schemaName: TSchemaName;
          } & {}
          | {
              schemaName: TSchemaName;
          } & {}

    Parameters

    • __namedParameters: {
          dataStore: TDataStore;
          db: BetterSQLite3Database<Record<string, never>>;
          getTranslations: ((value: {} & {
              docRef: {};
          }) => Promise<{}[]>);
          table: TTable;
      }
      • dataStore: TDataStore
      • db: BetterSQLite3Database<Record<string, never>>
      • getTranslations: ((value: {} & {
            docRef: {};
        }) => Promise<{}[]>)
          • (value): Promise<{}[]>
          • Parameters

            • value: {} & {
                  docRef: {};
              }

            Returns Promise<{}[]>

      • table: TTable

    Returns DataType<TDataStore, TTable, TSchemaName, TDoc, TValue>

Accessors

  • get namespace(): namespace
  • Returns namespace

Methods

  • Parameters

    Returns Promise<TDoc & {
        forks: string[];
    }>

  • Returns Promise<any>

  • Type Parameters

    • T extends unknown

    Parameters

    • value: T

    Returns Promise<TDoc & {
        forks: string[];
    }>

  • Parameters

    • docId: string

    Returns Promise<TDoc & {
        forks: string[];
    }>

  • Parameters

    • docId: string
    • Optionalopts: {
          lang?: string;
          mustBeFound?: true;
      }
      • Optionallang?: string
      • OptionalmustBeFound?: true

    Returns Promise<TDoc & {
        forks: string[];
    }>

  • Parameters

    • docId: string
    • Optionalopts: {
          lang?: string;
          mustBeFound?: boolean;
      }
      • Optionallang?: string
      • OptionalmustBeFound?: boolean

    Returns Promise<null | TDoc & {
        forks: string[];
    }>

  • Parameters

    • versionId: string
    • Optionalopts: {
          lang?: string;
      }
      • Optionallang?: string

    Returns Promise<TDoc>

  • Parameters

    • Optionalopts: {
          includeDeleted?: boolean;
          lang?: string;
      }
      • OptionalincludeDeleted?: boolean
      • Optionallang?: string

    Returns Promise<(TDoc & {
        forks: string[];
    })[]>

  • Type Parameters

    • T extends unknown

    Parameters

    • versionId: string | string[]
    • value: T

    Returns Promise<TDoc & {
        forks: string[];
    }>