fields

package
v0.0.35-beta.9 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AutoID

type AutoID struct {
	FieldBase
	GenerateMethod string `json:"generateMethod"` // "random"|"incremental"
	DigitsNumber   int64  `json:"digitsNumber"`
	Prefix         string `json:"prefix"`
	Suffix         string `json:"suffix"`
}

type AutoIDV3 added in v0.0.35

type AutoIDV3 struct {
	FieldBaseV3
	GenerateMethod string `json:"generateMethod"` // "random"|"incremental"
	DigitsNumber   int64  `json:"digitsNumber"`
	Prefix         string `json:"prefix"`
	Suffix         string `json:"suffix"`
}
type AvatarOrLogo struct {
	FieldBase
	DisplayStyle string `json:"displayStyle"`
}

type AvatarOrLogoV3 added in v0.0.35

type AvatarOrLogoV3 struct {
	FieldBaseV3
	DisplayStyle string `json:"displayStyle"`
}

type Bigint added in v0.0.32

type Bigint struct {
	FieldBase
	Required bool `json:"required"`
	Unique   bool `json:"unique"`
}

type BigintV3 added in v0.0.35

type BigintV3 struct {
	FieldBaseV3
	Required bool `json:"required"`
	Unique   bool `json:"unique"`
}

type Boolean

type Boolean struct {
	FieldBase
	DescriptionWhenTrue  structs.I18ns `json:"descriptionWhenTrue"`
	DescriptionWhenFalse structs.I18ns `json:"descriptionWhenFalse"`
	DefaultValue         bool          `json:"defaultValue"`
}

type BooleanV3 added in v0.0.35

type BooleanV3 struct {
	FieldBaseV3
	DescriptionWhenTrue  *faassdk.MultilingualV3 `json:"descriptionWhenTrue"`
	DescriptionWhenFalse *faassdk.MultilingualV3 `json:"descriptionWhenFalse"`
	DefaultValue         bool                    `json:"defaultValue"`
}

type CompositeType

type CompositeType struct {
	FieldBase
	CompositeTypeAPIName string                 `json:"compositeTypeAPIName"`
	Required             bool                   `json:"required"`
	Multiple             bool                   `json:"multiple"`
	SubFields            map[string]interface{} `json:"subFields"`
}

type CompositeTypeV3 added in v0.0.35

type CompositeTypeV3 struct {
	FieldBaseV3
	CompositeTypeAPIName string                 `json:"compositeTypeAPIName"`
	Required             bool                   `json:"required"`
	Multiple             bool                   `json:"multiple"`
	SubFields            map[string]interface{} `json:"subFields"`
}

type Date

type Date struct {
	FieldBase
	Required bool `json:"required"`
}

type DateTime

type DateTime struct {
	FieldBase
	Required bool `json:"required"`
}

type DateTimeV3 added in v0.0.35

type DateTimeV3 struct {
	FieldBaseV3
	Required bool `json:"required"`
}

type DateV3 added in v0.0.35

type DateV3 struct {
	FieldBaseV3
	Required bool `json:"required"`
}

type Decimal added in v0.0.32

type Decimal struct {
	FieldBase
	Required            bool `json:"required"`
	Unique              bool `json:"unique"`
	DisplayAsPercentage bool `json:"displayAsPercentage"`
	DecimalPlacesNumber int  `json:"decimalPlacesNumber"`
}

type DecimalV3 added in v0.0.35

type DecimalV3 struct {
	FieldBaseV3
	Required            bool `json:"required"`
	Unique              bool `json:"unique"`
	DisplayAsPercentage bool `json:"displayAsPercentage"`
	DecimalPlacesNumber int  `json:"decimalPlacesNumber"`
}

type Email

type Email struct {
	FieldBase
	Required bool `json:"required"`
	Unique   bool `json:"unique"`
}

type EmailV3 added in v0.0.35

type EmailV3 struct {
	FieldBaseV3
	Required bool `json:"required"`
	Unique   bool `json:"unique"`
}

type ExtractSingleRecord

type ExtractSingleRecord struct {
	FieldBase
	CompositeTypeAPIName string                 `json:"compositeTypeAPIName"`
	SubFields            map[string]interface{} `json:"subFields"`
	Filter               *structs.Criterion     `json:"filter"`
	SortConditions       *structs.Sorts         `json:"sortConditions"`
	RecordPosition       int64                  `json:"recordPosition"`
}

type ExtractSingleRecordV3 added in v0.0.35

type ExtractSingleRecordV3 struct {
	FieldBaseV3
	CompositeTypeAPIName string                 `json:"compositeTypeAPIName"`
	SubFields            map[string]interface{} `json:"subFields"`
	Filter               *structs.Criterion     `json:"filter"`
	SortConditions       *structs.Sorts         `json:"sortConditions"`
	RecordPosition       int64                  `json:"recordPosition"`
}

type FieldBase

type FieldBase struct {
	Type    string        `json:"type"`
	APIName string        `json:"apiName"`
	Label   structs.I18ns `json:"label"`
}

func (*FieldBase) ToFieldBaseV3 added in v0.0.35

func (f *FieldBase) ToFieldBaseV3() FieldBaseV3

type FieldBaseV3 added in v0.0.35

type FieldBaseV3 struct {
	Type    string                  `json:"type"`
	APIName string                  `json:"apiName"`
	Label   *faassdk.MultilingualV3 `json:"label"`
}

type File

type File struct {
	FieldBase
	Required  bool     `json:"required"`
	Multiple  bool     `json:"multiple"`
	FileTypes []string `json:"fileTypes"`
}

type FileV3 added in v0.0.35

type FileV3 struct {
	FieldBaseV3
	Required  bool     `json:"required"`
	Multiple  bool     `json:"multiple"`
	FileTypes []string `json:"fileTypes"`
}

type Formula

type Formula struct {
	FieldBase
	ReturnType string        `json:"returnType"`
	Formula    structs.I18ns `json:"formula"`
}

type FormulaV3 added in v0.0.35

type FormulaV3 struct {
	FieldBaseV3
	ReturnType string                  `json:"returnType"`
	Formula    *faassdk.MultilingualV3 `json:"formula"`
}

type Lookup

type Lookup struct {
	FieldBase
	Required       bool            `json:"required"`
	Multiple       bool            `json:"multiple"`
	ObjectAPIName  string          `json:"objectAPIName"`
	Hierarchy      bool            `json:"hierarchy"`
	DisplayStyle   string          `json:"displayStyle"`
	SortConditions []SortCondition `json:"sortConditions"`
	Filter         []interface{}   `json:"filter"` // TODO 未返回
}

type LookupV3 added in v0.0.35

type LookupV3 struct {
	FieldBaseV3
	Required       bool            `json:"required"`
	Multiple       bool            `json:"multiple"`
	ObjectAPIName  string          `json:"objectAPIName"`
	Hierarchy      bool            `json:"hierarchy"`
	DisplayStyle   string          `json:"displayStyle"`
	SortConditions []SortCondition `json:"sortConditions"`
	Filter         []interface{}   `json:"filter"` // TODO 未返回
}

type MobileNumber

type MobileNumber struct {
	FieldBase
	Required bool `json:"required"`
	Unique   bool `json:"unique"`
}

type MobileNumberV3 added in v0.0.35

type MobileNumberV3 struct {
	FieldBaseV3
	Required bool `json:"required"`
	Unique   bool `json:"unique"`
}

type Multilingual

type Multilingual struct {
	FieldBase
	Required      bool  `json:"required"`
	Unique        bool  `json:"unique"`
	CaseSensitive bool  `json:"caseSensitive"`
	Multiline     bool  `json:"multiline"`
	MaxLength     int64 `json:"maxLength"`
}

type MultilingualV3 added in v0.0.35

type MultilingualV3 struct {
	FieldBaseV3
	Required      bool  `json:"required"`
	Unique        bool  `json:"unique"`
	CaseSensitive bool  `json:"caseSensitive"`
	Multiline     bool  `json:"multiline"`
	MaxLength     int64 `json:"maxLength"`
}

type Number

type Number struct {
	FieldBase
	Required            bool `json:"required"`
	Unique              bool `json:"unique"`
	DisplayAsPercentage bool `json:"displayAsPercentage"`
	DecimalPlacesNumber int  `json:"decimalPlacesNumber"`
}

type NumberV3 added in v0.0.35

type NumberV3 struct {
	FieldBaseV3
	Required            bool `json:"required"`
	Unique              bool `json:"unique"`
	DisplayAsPercentage bool `json:"displayAsPercentage"`
	DecimalPlacesNumber int  `json:"decimalPlacesNumber"`
}

type Option

type Option struct {
	FieldBase
	Required            bool          `json:"required"`
	Multiple            bool          `json:"multiple"`
	OptionSource        string        `json:"optionSource"` // 暴露给开发者:custom, global; 底层存储:local,  global
	GlobalOptionAPIName string        `json:"globalOptionAPIName"`
	OptionList          []*OptionItem `json:"optionList"`
}

func (*Option) ToOptionV3 added in v0.0.35

func (o *Option) ToOptionV3() *OptionV3

type OptionItem

type OptionItem struct {
	Label       structs.I18ns `json:"label"`
	APIName     string        `json:"apiName"`
	Description structs.I18ns `json:"description"`
	Color       string        `json:"color"`
	Active      bool          `json:"active"`
}

func (*OptionItem) ToOptionItemV3 added in v0.0.35

func (o *OptionItem) ToOptionItemV3() *OptionItemV3

type OptionItemV3 added in v0.0.35

type OptionItemV3 struct {
	Label       *faassdk.MultilingualV3 `json:"label"`
	APIName     string                  `json:"apiName"`
	Description *faassdk.MultilingualV3 `json:"description"`
	Color       string                  `json:"color"`
	Active      bool                    `json:"active"`
}

type OptionV3 added in v0.0.35

type OptionV3 struct {
	FieldBaseV3
	Required            bool            `json:"required"`
	Multiple            bool            `json:"multiple"`
	OptionSource        string          `json:"optionSource"` // 暴露给开发者:custom, global; 底层存储:local,  global
	GlobalOptionAPIName string          `json:"globalOptionAPIName"`
	OptionList          []*OptionItemV3 `json:"optionList"`
}

type ReferenceField

type ReferenceField struct {
	FieldBase
	GuideFieldAPIName string `json:"guideFieldAPIName"`
	FieldAPIName      string `json:"fieldAPIName"`
}

type ReferenceFieldV3 added in v0.0.35

type ReferenceFieldV3 struct {
	FieldBaseV3
	GuideFieldAPIName string `json:"guideFieldAPIName"`
	FieldAPIName      string `json:"fieldAPIName"`
}

type Region added in v0.0.32

type Region struct {
	FieldBase
	Required    bool                    `json:"required"`
	Multiple    bool                    `json:"multiple"`
	OptionLevel bool                    `json:"optionLevel"`
	StrictLevel int64                   `json:"strictLevel"`
	Filter      []*structs.RegionFilter `json:"filter"`
}

type RegionV3 added in v0.0.35

type RegionV3 struct {
	FieldBaseV3
	Required    bool                      `json:"required"`
	Multiple    bool                      `json:"multiple"`
	OptionLevel bool                      `json:"optionLevel"`
	StrictLevel int64                     `json:"strictLevel"`
	Filter      []*structs.RegionFilterV3 `json:"filter"`
}

type RichText

type RichText struct {
	FieldBase
	Required  bool `json:"required"`  // 默认值:false
	MaxLength int  `json:"maxLength"` // 默认值:1000
}

type RichTextV3 added in v0.0.35

type RichTextV3 struct {
	FieldBaseV3
	Required  bool `json:"required"`  // 默认值:false
	MaxLength int  `json:"maxLength"` // 默认值:1000
}

type Rollup added in v0.0.32

type Rollup struct {
	FieldBase

	RollupType               string             `json:"rollupType"`
	RollupObjectApiName      string             `json:"rollupObjectApiName"`
	RollupFieldApiName       string             `json:"rollupFieldApiName"`
	RollupLookupFieldApiName string             `json:"rollupLookupFieldApiName"`
	Filter                   *structs.Criterion `json:"filter"`
}

type RollupV3 added in v0.0.35

type RollupV3 struct {
	FieldBaseV3

	RollupType               string             `json:"rollupType"`
	RollupObjectApiName      string             `json:"rollupObjectApiName"`
	RollupFieldApiName       string             `json:"rollupFieldApiName"`
	RollupLookupFieldApiName string             `json:"rollupLookupFieldApiName"`
	Filter                   *structs.Criterion `json:"filter"` // todo wby 待确认
}

type SortCondition

type SortCondition struct {
	FieldAPIName string `json:"fieldAPIName"`
	Sort         string `json:"sort"` //"asc"|"desc"
}

type Text

type Text struct {
	FieldBase
	Required        bool   `json:"required"`
	Unique          bool   `json:"unique"`
	CaseSensitive   bool   `json:"caseSensitive"`
	Multiline       bool   `json:"multiline"`
	MaxLength       int64  `json:"maxLength"`
	ValidationRegex string `json:"validationRegex"`
	ErrorMsg        string `json:"errorMsg"`
}

type TextV3 added in v0.0.35

type TextV3 struct {
	FieldBaseV3
	Required        bool   `json:"required"`
	Unique          bool   `json:"unique"`
	CaseSensitive   bool   `json:"caseSensitive"`
	Multiline       bool   `json:"multiline"`
	MaxLength       int64  `json:"maxLength"`
	ValidationRegex string `json:"validationRegex"`
	ErrorMsg        string `json:"errorMsg"`
}

Jump to

Keyboard shortcuts

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