-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathcomponent_type.tpl
More file actions
74 lines (74 loc) · 2.07 KB
/
component_type.tpl
File metadata and controls
74 lines (74 loc) · 2.07 KB
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
{{- define "component_type_graphql" }}
{id,aliases,description,href,icon{color,name},isDefault,name,ownerRelationship{managementRules{operator,sourceProperty,sourcePropertyBuiltin,targetCategory,targetProperty,targetPropertyBuiltin,targetType}},systemRelationship{managementRules{operator,sourceProperty,sourcePropertyBuiltin,targetCategory,targetProperty,targetPropertyBuiltin,targetType}},timestamps{createdAt,updatedAt}}
{{end}}
{{- define "component_type_1_response" }}
{
{{ template "id1" }},
"aliases": [
"example1"
],
"name": "Example1",
"description": "Description",
"href": "https://app.opslevel-staging.com/catalog/domains/platformdomain",
"icon": {
"color": "#FFFFFF",
"name": "PhBird"
},
"ownerRelationship": {
"managementRules": [
{
"operator": "EQUALS",
"sourceProperty": "tag_key_eq:owner",
"sourcePropertyBuiltin": true,
"targetCategory": null,
"targetProperty": "name",
"targetPropertyBuiltin": true,
"targetType": "team"
}
]
},
"systemRelationship": {
"managementRules": [
{
"operator": "EQUALS",
"sourceProperty": "tag_key_eq:system",
"sourcePropertyBuiltin": true,
"targetCategory": null,
"targetProperty": "name",
"targetPropertyBuiltin": true,
"targetType": "system"
}
]
}
}
{{end}}
{{- define "component_type_2_response" }}
{
{{ template "id2" }},
"aliases": [
"example2"
],
"name": "Example2",
"description": "Description",
"href": "https://app.opslevel-staging.com/catalog/domains/platformdomain",
"icon": {
"color": "#FFFFFF",
"name": "PhBird"
}
}
{{end}}
{{- define "component_type_3_response" }}
{
{{ template "id3" }},
"aliases": [
"example3"
],
"name": "Example3",
"description": "Description",
"href": "https://app.opslevel-staging.com/catalog/domains/platformdomain",
"icon": {
"color": "#FFFFFF",
"name": "PhBird"
}
}
{{end}}