forked from longtao.wu/droboticflow
Include the accumulated workflow scheduling, run history, subtree rerun, operator UI, deployment, data asset, object storage, database browser, and documentation changes currently in the worktree.
109 lines
3.4 KiB
Go
109 lines
3.4 KiB
Go
package domain
|
|
|
|
type DatabaseCollectionSummary struct {
|
|
Name string `json:"name"`
|
|
DocumentCount int64 `json:"documentCount"`
|
|
SampleFields []string `json:"sampleFields,omitempty"`
|
|
}
|
|
|
|
type DatabaseIndexSummary struct {
|
|
Name string `json:"name"`
|
|
Keys map[string]any `json:"keys"`
|
|
Unique bool `json:"unique,omitempty"`
|
|
}
|
|
|
|
type DatabaseOverview struct {
|
|
Target string `json:"target"`
|
|
ConnectionID string `json:"connectionId,omitempty"`
|
|
ConnectionName string `json:"connectionName,omitempty"`
|
|
Provider string `json:"provider"`
|
|
Database string `json:"database"`
|
|
ReadOnly bool `json:"readOnly"`
|
|
Configured bool `json:"configured"`
|
|
Collections []DatabaseCollectionSummary `json:"collections"`
|
|
}
|
|
|
|
type DatabaseQueryInput struct {
|
|
Collection string `json:"collection"`
|
|
Filter map[string]any `json:"filter,omitempty"`
|
|
Limit int `json:"limit,omitempty"`
|
|
Skip int `json:"skip,omitempty"`
|
|
}
|
|
|
|
type DatabaseQueryResult struct {
|
|
Target string `json:"target"`
|
|
ConnectionID string `json:"connectionId,omitempty"`
|
|
ConnectionName string `json:"connectionName,omitempty"`
|
|
Provider string `json:"provider"`
|
|
Database string `json:"database"`
|
|
Collection string `json:"collection"`
|
|
Configured bool `json:"configured"`
|
|
Filter map[string]any `json:"filter,omitempty"`
|
|
Limit int `json:"limit"`
|
|
Skip int `json:"skip"`
|
|
Total int64 `json:"total"`
|
|
SampleFields []string `json:"sampleFields,omitempty"`
|
|
Documents []map[string]any `json:"documents"`
|
|
}
|
|
|
|
type DatabaseCollectionCreateInput struct {
|
|
Name string `json:"name"`
|
|
}
|
|
|
|
type DatabaseCollectionRenameInput struct {
|
|
NewName string `json:"newName"`
|
|
}
|
|
|
|
type DatabaseCollectionMutationResult struct {
|
|
Collection string `json:"collection"`
|
|
Summary DatabaseCollectionSummary `json:"summary"`
|
|
}
|
|
|
|
type DatabaseCollectionDeleteResult struct {
|
|
Collection string `json:"collection"`
|
|
Deleted bool `json:"deleted"`
|
|
}
|
|
|
|
type DatabaseIndexesResult struct {
|
|
Collection string `json:"collection"`
|
|
Indexes []DatabaseIndexSummary `json:"indexes"`
|
|
}
|
|
|
|
type DatabaseIndexCreateInput struct {
|
|
Name string `json:"name,omitempty"`
|
|
Keys map[string]any `json:"keys"`
|
|
Unique bool `json:"unique,omitempty"`
|
|
}
|
|
|
|
type DatabaseIndexMutationResult struct {
|
|
Collection string `json:"collection"`
|
|
Index DatabaseIndexSummary `json:"index"`
|
|
}
|
|
|
|
type DatabaseIndexDeleteResult struct {
|
|
Collection string `json:"collection"`
|
|
IndexName string `json:"indexName"`
|
|
Deleted bool `json:"deleted"`
|
|
}
|
|
|
|
type DatabaseDocumentMutationInput struct {
|
|
Document map[string]any `json:"document"`
|
|
}
|
|
|
|
type DatabaseDocumentMutationResult struct {
|
|
Collection string `json:"collection"`
|
|
Document map[string]any `json:"document"`
|
|
}
|
|
|
|
type DatabaseDocumentDeleteResult struct {
|
|
Collection string `json:"collection"`
|
|
DocumentID string `json:"documentId"`
|
|
Deleted bool `json:"deleted"`
|
|
}
|
|
|
|
type MongoConnectionTestInput struct {
|
|
ID string `json:"id,omitempty"`
|
|
URI string `json:"uri,omitempty"`
|
|
Database string `json:"database,omitempty"`
|
|
}
|