Options
All
  • Public
  • Public/Protected
  • All
Menu

Module lib/model

Index

Type aliases

FieldCheck

FieldCheck: { checked: string[]; type: "CHECK" }

Type declaration

  • checked: string[]
  • type: "CHECK"

FieldDate

FieldDate: { date: Date; type: "DATE" }

Type declaration

  • date: Date
  • type: "DATE"

FieldInt

FieldInt: { type: "INT"; valueInt: number }

Type declaration

  • type: "INT"
  • valueInt: number

FieldList

FieldList: { text: string; type: "LIST" }

Type declaration

  • text: string
  • type: "LIST"

FieldNumber

FieldNumber: { type: "NUMBER"; value: number }

Type declaration

  • type: "NUMBER"
  • value: number

FieldRange

FieldRange: { max: number; min: number; type: "RANGE" }

Type declaration

  • max: number
  • min: number
  • type: "RANGE"

FieldText

FieldText: { text: string; type: "TEXT" }

Type declaration

  • text: string
  • type: "TEXT"

FieldType

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

Type declaration

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

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: { id: string; listLogic?: { logic: { r1: string; r2: string[] }[]; q1: string; q2: string }[]; markerStyle: MarkerStyle; name: string; questionGroups?: { name: string; questions: string[] }[]; questions: FieldType[] }

Type declaration

  • id: string
  • Optional listLogic?: { logic: { r1: string; r2: string[] }[]; q1: string; q2: string }[]
  • markerStyle: MarkerStyle
  • name: string
  • Optional questionGroups?: { name: string; questions: string[] }[]
  • questions: FieldType[]

MarkerStyle

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

image: file name of the icon list imageNumber: number of icon in the icon list iconFieldType?: id 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?: 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; resourceList: Resource[]; userList: ProjectUser[]; webHookList: WebHook[] }

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; formSpecificId: 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": FieldList
  • "CHECK": FieldCheck
  • "INT": FieldInt
  • "DATE": FieldDate

Type declaration

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

Resource

Resource: { boundingBox?: number[][]; filename: string; name: string; style?: any; type: "GEOJSON" | "IMAGE" }

Type declaration

  • Optional boundingBox?: number[][]
  • filename: string
  • name: string
  • Optional style?: any
  • type: "GEOJSON" | "IMAGE"

User

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

Type declaration

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

WebHook

WebHook: { name: string; url: string }

Type declaration

  • name: string
  • url: string

Generated using TypeDoc