Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "lib/model"

Index

Type aliases

FieldType

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

Type declaration

  • immutable: boolean
  • name: string
  • 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" | "USER"; username: string }

Type declaration

  • formList: string[]
  • preferences: any
  • role: "ADMIN" | "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 responses, following these rules:

  • "NUMBER": number
  • "TEXT": string
  • "RANGE": { min: number; max: number }
  • "LIST": string

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 }

Type declaration

  • mail: string
  • password: string
  • username: string

Generated using TypeDoc