fantasia-archive/src/interfaces/I_Blueprint.ts

52 lines
994 B
TypeScript
Raw Normal View History

2021-01-31 02:43:13 +13:00
export interface I_ExtraFields {
id: string
name: string,
icon?: string,
sizing: number
2021-02-21 01:06:21 +13:00
tooltip?: string
isLegacy?: boolean
2021-06-14 04:15:40 +12:00
isSpoiler?: boolean
2021-01-31 02:43:13 +13:00
type:
"text" |
"number" |
2021-02-21 01:06:21 +13:00
"colorPicker" |
"switch" |
2021-01-31 02:43:13 +13:00
"list" |
"wysiwyg" |
"singleSelect" |
"multiSelect" |
"singleToNoneRelationship" |
"manyToNoneRelationship" |
"singleToSingleRelationship" |
"singleToManyRelationship" |
"manyToSingleRelationship" |
2021-02-09 15:21:48 +13:00
"manyToManyRelationship" |
"break" |
"tags"|
"documentTemplate"
2021-01-31 02:43:13 +13:00
predefinedListExtras?: {
reverse?: boolean
2021-01-31 02:43:13 +13:00
affix?: string
extraSelectValueList?: (string | {
title: string,
values: string[]
}) []
2021-01-31 02:43:13 +13:00
}
predefinedSelectValues?: string[]
relationshipSettings?: {
connectedObjectType: string
connectedField?: string
}
}
export interface I_Blueprint{
_id: string
_rev?: string
order: number,
2021-01-31 02:43:13 +13:00
namePlural: string
nameSingular: string,
icon: string
category: string
2021-01-31 02:43:13 +13:00
extraFields: I_ExtraFields[]
}