Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "lib/model"

Index

Type aliases

FieldNumber

FieldNumber: { value: number }

Type declaration

  • value: number

FieldRange

FieldRange: { max: number; min: number }

Type declaration

  • max: number
  • min: number

FieldText

FieldText: { text: string }

Type declaration

  • text: string

FieldType

FieldType: { immutable: boolean; info?: undefined | string; name: string; options?: string[]; required: boolean; type: "NUMBER" | "TEXT" | "RANGE" | "LIST" }

Type declaration

  • immutable: boolean
  • Optional info?: undefined | string
  • name: string
  • Optional options?: string[]
  • required: boolean
  • type: "NUMBER" | "TEXT" | "RANGE" | "LIST"

Form

Form: { allowAudio: boolean; allowImage: boolean; allowVideo: boolean; id: string; name: string; specificList: FormSpecific[] }

Type declaration

  • allowAudio: boolean
  • allowImage: boolean
  • allowVideo: boolean
  • id: string
  • name: string
  • specificList: FormSpecific[]

FormSpecific

FormSpecific: { markerStyle: MarkerStyle; name: string; questions: FieldType[] }

Type declaration

MarkerStyle

MarkerStyle: { iconFieldType?: undefined | string; iconNumberRanges?: number[]; image: string; imageNumber: number }

image: file name of the icon list imageNumber: number of icon in the icon list iconFieldType?: name of the field that controls the icon (FieldList or FieldText) iconNumberRanges?: ranges for the icon if the field is type number

Type declaration

  • Optional iconFieldType?: undefined | string
  • Optional iconNumberRanges?: number[]
  • image: string
  • imageNumber: number

Media

Media: { fileName: string; type: "IMAGE" | "AUDIO" | "VIDEO" }

Type declaration

  • fileName: string
  • type: "IMAGE" | "AUDIO" | "VIDEO"

Project

Project: { formList: Form[]; name: string; userList: ProjectUser[] }

Type declaration

ProjectUser

ProjectUser: { formList: string[]; preferences: any; role: "ADMIN" | "MOD" | "USER"; username: string }

Type declaration

  • formList: string[]
  • preferences: any
  • role: "ADMIN" | "MOD" | "USER"
  • username: string

Record

Record: { altitude: number; data: unknown; datetimeUtc: Date; featureId: string; formId: string; formSpecificName: string; latitude: number; longitude: number; mediaList: Media[]; projectName: string; recordId: string; username: string; zone: string }

zone: "Europe/Paris"

data is an object where the keys are the FieldType names and the values are the Fields, following these rules:

  • "NUMBER": FieldNumber
  • "TEXT": FieldText
  • "RANGE": FieldRange
  • "LIST": FieldText

Type declaration

  • altitude: number
  • data: unknown
  • datetimeUtc: Date
  • featureId: string
  • formId: string
  • formSpecificName: string
  • latitude: number
  • longitude: number
  • mediaList: Media[]
  • projectName: string
  • recordId: string
  • username: string
  • zone: string

User

User: { mail: string; password: string; username: string; verified: boolean }

Type declaration

  • mail: string
  • password: string
  • username: string
  • verified: boolean

Generated using TypeDoc