-
Notifications
You must be signed in to change notification settings - Fork 0
/
misc.proto
88 lines (61 loc) · 1.94 KB
/
misc.proto
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
syntax = "proto3";
import "google/protobuf/struct.proto";
import "google/protobuf/wrappers.proto";
import "scope.proto";
import "context.proto";
option csharp_namespace = "SquaredUp.Dashboard.Schema";
package squaredup;
//-------------------------------------------------------------------------------------
//
// Misc
//
//-------------------------------------------------------------------------------------
// tile/knowledge-editor
message KnowledgeEditorTileConfig {
KnowledgeEditorTileConfig_Source source = 1;
}
message KnowledgeEditorTileConfig_Source {
// Whether to allow editing of company knowledge
bool company_knowledge = 1;
}
//-------------------------------------------------------------------------------------
// tile/text
message TextTileConfig {
TextTileConfig_Display display = 1;
// Some instances of this tile supply an empty (redundant) context
CommonContext context = 2;
// And the same for source...
TextTileConfig_Source source = 3;
}
message TextTileConfig_Display {
string content_template = 1;
}
message TextTileConfig_Source {
}
//-------------------------------------------------------------------------------------
// region/newscomcontext
message NewScomContextRegion {
// region/newscomcontext
string _type = 1;
NewScomContextRegionConfig config = 2;
// Expected to be a root column or layout which nests further tiles
google.protobuf.Value content = 3;
}
message NewScomContextRegionConfig {
CommonScope scope = 1;
}
//-------------------------------------------------------------------------------------
// tile/button
message ButtonTileConfig {
ButtonTileConfig_Display display = 1;
}
message ButtonTileConfig_Display {
string icon = 1;
string url = 2;
string class = 3;
}
//-------------------------------------------------------------------------------------
// tile/alertcontext
message AlertContextTileConfig {
// No known fields
}