dto

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 31, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActionItem

type ActionItem struct {
	Id           string
	Name         string
	Description  string
	SpaceId      *string
	SpaceName    *string
	DatabaseId   *string
	TriggerType  string
	Active       bool
	LastRunAt    *time.Time
	LastError    string
	RunCount     int
	SuccessCount int
	FailureCount int
	CreatedAt    time.Time
}

type ActionStep

type ActionStep struct {
	Type   string                 `json:"type"`
	Config map[string]interface{} `json:"config"`
}

Step configuration

type CreateActionInput

type CreateActionInput struct {
	UserId        string
	SpaceId       *string
	DatabaseId    *string
	Name          string
	Description   string
	TriggerType   string
	TriggerConfig map[string]interface{}
	Steps         []ActionStep
}

Create action

type CreateActionOutput

type CreateActionOutput struct {
	Id          string
	Name        string
	Description string
	TriggerType string
	Active      bool
	CreatedAt   time.Time
}

type DeleteActionInput

type DeleteActionInput struct {
	UserId   string
	ActionId string
}

Delete action

type ExecuteActionInput

type ExecuteActionInput struct {
	TriggerType string
	SpaceId     *string
	DatabaseId  *string
	TriggerData map[string]interface{}
}

Execute action (internal)

type GetActionInput

type GetActionInput struct {
	UserId   string
	ActionId string
}

Get action

type GetActionOutput

type GetActionOutput struct {
	Id            string
	Name          string
	Description   string
	SpaceId       *string
	SpaceName     *string
	DatabaseId    *string
	TriggerType   string
	TriggerConfig map[string]interface{}
	Steps         []ActionStep
	Active        bool
	LastRunAt     *time.Time
	LastError     string
	RunCount      int
	SuccessCount  int
	FailureCount  int
	CreatedAt     time.Time
	UpdatedAt     time.Time
}

type GetRunsInput

type GetRunsInput struct {
	UserId   string
	ActionId string
	Limit    int
}

Get runs

type GetRunsOutput

type GetRunsOutput struct {
	Runs []RunItem
}

type ListActionsInput

type ListActionsInput struct {
	UserId string
}

List actions

type ListActionsOutput

type ListActionsOutput struct {
	Actions []ActionItem
}

type RunItem

type RunItem struct {
	Id        string
	Success   bool
	Error     string
	Duration  int
	CreatedAt time.Time
}

type UpdateActionInput

type UpdateActionInput struct {
	UserId        string
	ActionId      string
	Name          *string
	Description   *string
	TriggerType   *string
	TriggerConfig map[string]interface{}
	Steps         *[]ActionStep
	Active        *bool
}

Update action

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL