TagoIO SDK for JavaScript and TypeScript
    Preparing search index...

    Type Alias ActionTriggerType

    ActionTriggerType:
        | {
            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;
        }
        | {
            condition: "="
            | ">";
            condition_value: number;
            service_or_resource:
                | "input"
                | "output"
                | "analysis"
                | "data_records"
                | "sms"
                | "email"
                | "run_users"
                | "push_notification"
                | "file_storage"
                | "device"
                | "dashboard"
                | "action"
                | "tcore"
                | "team_members"
                | "am";
        }
        | {
            device: string;
            is: "IN"
            | "OUT";
            unlock?: boolean;
            value: TriggerGeofenceValueType;
            variable: string;
        }

    Type declaration

    • {
          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 }
      • cron: string

        The cron expression

      • timezone: string | Date
    • {
          device: string;
          is: Conditionals;
          second_value?: string;
          unlock?: boolean;
          value: string;
          value_type: "string" | "number" | "boolean" | "*";
          variable: string;
      }
    • {
          condition: "=" | ">";
          condition_value: number;
          service_or_resource:
              | "input"
              | "output"
              | "analysis"
              | "data_records"
              | "sms"
              | "email"
              | "run_users"
              | "push_notification"
              | "file_storage"
              | "device"
              | "dashboard"
              | "action"
              | "tcore"
              | "team_members"
              | "am";
      }
    • {
          device: string;
          is: "IN" | "OUT";
          unlock?: boolean;
          value: TriggerGeofenceValueType;
          variable: string;
      }