-
Notifications
You must be signed in to change notification settings - Fork 2
/
const.go
49 lines (39 loc) · 1.79 KB
/
const.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
package consts
const (
GeneratedGqlgenPackageName = "generated"
GeneratedModelsPackageName = "models"
ExcludeArgumentFromType = "ExcludeArgumentFromType"
ToObjectType = "ToObjectType"
ResourceSortableFieldEnumSuffix = "_SORTABLE_FIELD"
SingleSortInputSuffix = "SingleSortInput"
SortInputSuffix = "SortInput"
SortQueryArgumentName = "sort"
MapToGolangStructTagName = "mapto"
// Field names
SchemaDefActionDirectiveArgSchemaFieldName = "SchemaFieldName"
SchemaDefActionDirectiveArgResource = "Resource"
SchemaDefActionDirectiveActionArgAction = "Action"
SortDirectionAsc = "ASC"
SortDirectionDesc = "DESC"
// Schema definition constants
SchemaDefResourceActionType = "XgenResourceActionType"
SchemaDefResourceListActionType = "XgenResourceListActionType"
SchemaDefFieldDbConfigInputType = "XgenResourceFieldDbConfigInput"
SchemaDefDirectiveResourceName = "Resource"
SchemaDefDirectiveActionName = "Action"
SchemaDefDirectiveListActionName = "ListAction"
SchemaDefDirectiveActionFieldName = "ActionField"
SchemaDefDirectiveFieldName = "Field"
SchemaDefFieldDirectiveArgLabel = "Label"
SchemaDefFieldDirectiveArgDescription = "Description"
SchemaDefFieldDirectiveArgDb = "DB"
SchemaDefResourceDirectiveArgName = "Name"
SchemaDefResourceDirectiveArgDb = "DB"
SchemaDefActionFieldDirectiveArgMapTo = "MapTo"
ActionTypeCreateMutation = "CREATE_MUTATION"
ActionTypeReadQuery = "READ_QUERY"
ActionTypeUpdateMutation = "UPDATE_MUTATION"
ActionTypeDeleteMutation = "DELETE_MUTATION"
SchemaDefListActionTypeBrowseQuery = "BROWSE_QUERY"
SchemaDefListActionTypeBatchDeleteMutation = "BATCH_DELETE_MUTATION"
)