Type aliases
AccessQuery
Access
Query: Query<AccessInfo, "name" | "active" | "created_at" | "updated_at">
ActionQuery
Action
Query: Query<ActionInfo, "name" | "active" | "last_triggered" | "created_at" | "updated_at">
ActionTriggerType
Action
TriggerType: { resource: "device" | "bucket" | "file" | "analysis" | "action" | "am" | "user" | "financial" | "profile"; tag_key: string; tag_value: string; when: "create" | "update" | "delete" } | { interval: string } | { cron: string; timezone: string | Date } | { device: string; is: Conditionals; second_value?: string; unlock?: boolean; value: string; value_type: "string" | "number" | "boolean" | "*"; variable: string }
ActionType
ActionType: "condition" | "resource" | "interval" | "schedule" | "mqtt_topic"
ActionTypeParams
Action
TypeParams: { script: GenericID[]; type: "script" } | { message: string; subject: string; type: "notification" } | { message: string; run_user: GenericID; subject: string; type: "notification_run" } | { message: string; subject: string; to: string; type: "email" } | { message: string; to: string; type: "sms" } | { bucket: string; payload: string; topic: string; type: "mqtt" } | { headers: {}; type: "post"; url: string }
AnalysisQuery
Analysis
Query: Query<AnalysisInfo, "name" | "active" | "run_on" | "last_run" | "created_at" | "updated_at">
BucketQuery
Bucket
Query: Query<BucketInfo, "name" | "visible" | "data_retention" | "created_at" | "updated_at">
Condition
Condition: "None" | "Pending" | "Accepted" | "Refused"
Conditionals
Conditionals: "<" | ">" | "=" | "!" | "><" | "*"
ConnectorQuery
Connector
Query: Query<ConnectorInfo, "name" | "id" | "description" | "logo_url" | "install_text" | "install_end_text" | "device_annotation" | "payload_decoder" | "networks">
DashboardQuery
Dashboard
Query: Query<DashboardInfo, "name" | "label" | "active" | "created_at" | "updated_at">
DataQueryAggregation
Data
QueryAggregation: Omit<DataQueryBase, "start_date"> & { query: "avg" | "sum"; start_date: Date | string }
DataQueryDefault
Data
QueryDefault: DataQueryBase & { details?: boolean; ordination?: "descending" | "ascending"; qty?: number; query?: "default"; skip?: number }
DataQueryFirstLast
Data
QueryFirstLast: DataQueryBase & { query: "last_item" | "last_value" | "last_location" | "last_insert" | "first_item" | "first_value" | "first_location" | "first_insert" }
DataQueryStreaming
Data
QueryStreaming: Omit<DataQueryDefault, "qty" | "skip" | "query" | "ordination">
DataQuerySummary
Data
QuerySummary: DataQueryBase & { query: "min" | "max" | "count" }
DataToSend
Data
ToSend: Omit<Data, "id" | "created_at" | "origin" | "time"> & { time?: Date | string }
DictionaryQuery
Dictionary
Query: Query<DictionaryInfo, "name" | "slug" | "languages" | "fallback" | "created_at" | "updated_at">
ExpireTimeOption
ExpireTimeOption: "never" | Date
ExportBucket
ExportBucket: { id: string; origin: string; variables: string[] }[]
ExportOption
ExportOption: "csv" | "json" | "xml"
GenericID
GenericID: string
GenericToken
GenericToken: string
NetworkQuery
Network
Query: Query<NetworkInfo, "name" | "description" | "logo_url" | "icon_url" | "banner_url" | "device_parameters" | "middleware_endpoint" | "payload_encoder" | "payload_decoder" | "serial_number" | "documentation_url" | "public" | "created_at" | "updated_at">
NotificationType
NotificationType: "dashboard" | "bucket" | "analysis" | "profile" | "tago" | "limit_alert"
PermissionOption
PermissionOption: "write" | "read" | "full" | "deny"
RecursivePartial
RecursivePartial<T>: {}
Type parameters
RefType
RefType: "dashboard"
Regions
Regions: "usa-1" | "env"
RunTypeOptions
RunTypeOptions: "node" | "python"
TagTypes
TagTypes: "bucket" | "device" | "dashboard" | "action" | "analysis"
ThemeOption
ThemeOption: "actionSchedule" | "actionTriggerByData" | "actionTriggerByResource" | "actionTriggerByMQTT" | "alertDangerBackground" | "alertInfoBackground" | "alertWarningBackground" | "analysisExternal" | "analysisInternal" | "buttonDanger" | "buttonDangerText" | "buttonDefault" | "buttonDefaultText" | "buttonDisabled" | "buttonDisabledText" | "buttonIconLabel" | "buttonPrimary" | "buttonPrimaryText" | "buttonSuccess" | "buttonSuccessText" | "buttonWarning" | "buttonWarningText" | "deviceInputOutput1Day" | "deviceInputOutput3Days" | "deviceInputOutput3Hours" | "deviceInputOutput6Hours" | "deviceInputOutputRest" | "dottedBorder" | "dropdownAccent" | "dropdownBackground" | "floatingSidebarTitle" | "footerBackground" | "formControlBorder" | "gaugeEmpty" | "gaugeFill" | "gaugePrimaryText" | "gaugeSecondaryText" | "iconRadioSelected" | "iconRadioSubTitle" | "informationIcon" | "inputBackground" | "inputBackgroundReadOnly" | "inputError" | "inputForeground" | "inputForegroundReadOnly" | "lightBorder" | "limitAlert" | "link" | "listNavColor" | "listTitleLabel" | "loading" | "loginButton" | "loginButtonText" | "loginForeground" | "loginForm" | "modalContainer" | "modalOverlay" | "navbar" | "navbarBetaDeveloperBorder" | "navbarButton" | "navbarDropdownBorder" | "navbarDropdownOption" | "navbarDropdownOptionBorder" | "navbarText" | "navDescription" | "notificationButtonAmount" | "notificationButtonAmountText" | "notificationFilterBackground" | "notificationFooter" | "notificationItemBorder" | "notificationItemDate" | "notificationItemTextAccepted" | "notificationItemUnread" | "primary" | "publicPageNavigationBar" | "sidebarAccessSelected" | "sidebarAccountSelected" | "sidebarActionSelected" | "sidebarAnalysisSelected" | "sidebarBackground" | "sidebarBillingSelected" | "sidebarBucketSelected" | "sidebarDashboardSelected" | "sidebarDeviceSelected" | "sidebarExploreSelected" | "sidebarFileSelected" | "sidebarForegroundIcon" | "sidebarForegroundText" | "sidebarHomeSelected" | "sidebarItem" | "sidebarRibbon" | "sidebarRunSelected" | "sidebarSeparator" | "sidebarSeparatorForeground" | "sidebarUserSelected" | "snakeButtonOutline" | "svgTagoFont" | "svgTagoIOHole" | "switchDisabledBackground" | "switchSlider" | "tabBackground" | "tabLabelBorder" | "tooltipContainer" | "tooltipText" | "verticalTabItem" | "verticalTabItemBorder" | "widgetCardBackground" | "widgetIconsAccent" | "widgetIconsBackground" | "widgetIconsColor" | "widgetIconsFooterBasic" | "widgetIconsFooterPremium" | "auth_bg_opacity" | "auth_bg_src" | "auth_bg_type" | "auth_form_opacity"
UserQuery
User
Query: Query<UserInfo, "name" | "active" | "last_login" | "created_at" | "updated_at">
analysisFunction
analysisFunction: (context: any, data: any) => any
Type declaration
-
- (context: any, data: any): any
expireTimestamp
expireTimestamp: number
valuesTypes
valuesTypes: string | number | boolean | void
widgetOverwrite
widgetOverwrite: {}
widgetOverwriteOptions
widgetOverwriteOptions: "start_date" | "end_date" | "timezone"
ID used on TagoIO, string with 24 character